[03:24:02]OFD Sender: No OFD packet to send [03:24:07]OFD Sender: No OFD packet to send [03:24:12]OFD Sender: No OFD packet to send [03:24:17]OFD Sender: No OFD packet to send [03:24:22]OFD Sender: No OFD packet to send [03:24:27]OFD Sender: No OFD packet to send [03:24:32]OFD Sender: No OFD packet to send [03:24:37]OFD Sender: No OFD packet to send [03:24:42]OFD Sender: No OFD packet to send [03:24:47]OFD Sender: No OFD packet to send [03:24:52]OFD Sender: No OFD packet to send [03:24:57]OFD Sender: No OFD packet to send [03:25:02]OFD Sender: No OFD packet to send [03:25:07]OFD Sender: No OFD packet to send [03:25:12]OFD Sender: No OFD packet to send [03:25:17]OFD Sender: No OFD packet to send [03:25:22]OFD Sender: No OFD packet to send [03:25:27]OFD Sender: No OFD packet to send [03:25:32]OFD Sender: No OFD packet to send [03:25:37]OFD Sender: No OFD packet to send [03:25:42]OFD Sender: No OFD packet to send [03:25:47]OFD Sender: No OFD packet to send [03:25:52]OFD Sender: No OFD packet to send [03:25:57]OFD Sender: No OFD packet to send [03:26:02]OFD Sender: No OFD packet to send [03:26:07]OFD Sender: No OFD packet to send [03:26:12]OFD Sender: No OFD packet to send [03:26:17]OFD Sender: No OFD packet to send [03:26:22]OFD Sender: No OFD packet to send [03:26:27]OFD Sender: No OFD packet to send [03:26:32]OFD Sender: No OFD packet to send [03:26:37]OFD Sender: No OFD packet to send [03:26:42]OFD Sender: No OFD packet to send [03:26:47]OFD Sender: No OFD packet to send [03:26:53]OFD Sender: No OFD packet to send [03:26:58]OFD Sender: No OFD packet to send [03:27:03]OFD Sender: No OFD packet to send [03:27:08]OFD Sender: No OFD packet to send [03:27:13]OFD Sender: No OFD packet to send [03:27:18]OFD Sender: No OFD packet to send [03:27:23]OFD Sender: No OFD packet to send [03:27:28]OFD Sender: No OFD packet to send [03:27:33]OFD Sender: No OFD packet to send [03:27:38]OFD Sender: No OFD packet to send [03:27:43]OFD Sender: No OFD packet to send [03:27:48]OFD Sender: No OFD packet to send [03:27:53]OFD Sender: No OFD packet to send [03:27:58]OFD Sender: No OFD packet to send [03:28:03]OFD Sender: No OFD packet to send [03:28:08]OFD Sender: No OFD packet to send [03:28:13]OFD Sender: No OFD packet to send [03:28:18]OFD Sender: No OFD packet to send [03:28:23]OFD Sender: No OFD packet to send [03:28:28]OFD Sender: No OFD packet to send [03:28:33]OFD Sender: No OFD packet to send [03:28:38]OFD Sender: No OFD packet to send [03:28:43]OFD Sender: No OFD packet to send [03:28:48]OFD Sender: No OFD packet to send [03:28:53]OFD Sender: No OFD packet to send [03:28:58]OFD Sender: No OFD packet to send [03:29:03]OFD Sender: No OFD packet to send [03:29:08]OFD Sender: No OFD packet to send [03:29:13]OFD Sender: No OFD packet to send [03:29:18]OFD Sender: No OFD packet to send [03:29:23]OFD Sender: No OFD packet to send [03:29:28]OFD Sender: No OFD packet to send [03:29:33]OFD Sender: No OFD packet to send [03:29:38]OFD Sender: No OFD packet to send [03:29:43]OFD Sender: No OFD packet to send [03:29:48]OFD Sender: No OFD packet to send [03:29:53]OFD Sender: No OFD packet to send [03:29:58]OFD Sender: No OFD packet to send [03:30:03]OFD Sender: No OFD packet to send [03:30:08]OFD Sender: No OFD packet to send [03:30:13]OFD Sender: No OFD packet to send [03:30:18]OFD Sender: No OFD packet to send [03:30:23]OFD Sender: No OFD packet to send [03:30:28]OFD Sender: No OFD packet to send [03:30:30]accept exits with 7 [03:30:30]New connection [03:30:30]New thread 3067276644 created [03:30:30]Thread 3067133284 joined [03:30:30]Waiting for new connection... [03:30:30] Sock 7.Parse request [03:30:30]Sock 7.Check first char [03:30:30]Sock 7.First char is OK [03:30:30]request: POST /json_proto HTTP/1.0 [03:30:30]Method: POST [03:30:30]URL: /json_proto [03:30:30]Method is POST - this is cgi request [03:30:30]url: /json_proto [03:30:30]query_string will be loaded in cgi processing [03:30:30]execute_cgi json_proto POST (null) [03:30:30]execute_cgi path=json_proto method=POST [03:30:30]POST find Content-Length [03:30:30]Host: 172.17.52.3:8080 [03:30:30]Content-Length: 677 [03:30:30]Content-Type: application/json [03:30:30] [03:30:30]POST finish read [03:30:30]Found Content-Length = 677 [03:30:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [03:30:30]execute_script... [03:30: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)210378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [03:30:30]POST & json_proto [03:30:30]process_json_proto [03:30:30]json parsed OK: [03:30:30]protocol is kg_v1.0 [03:30:30]action value=close_receipt [03:30:30]process_action close_receipt [03:30:30]cmd_close_receipt [03:30:30]MH_GetDate [03:30:30]Write to MH i2c: F0 00 00 37 26 4C [03:30:30]Write i2c OK [03:30:30]MH_I2C_Read... [03:30:30]Read from MH i2c: F0 [03:30:30]MH_I2C_Read... [03:30:30]Read from MH i2c: F0 09 00 [03:30:30]MH_I2C_Read... [03:30:30]Read from MH i2c: F0 09 00 37 26 00 DD 6D 18 67 D7 68 A5 64 66 [03:30:30]GetLastDocTimeStamp 1729648162 [03:30:30]current date 1729654237 [03:30:30]FM_GetShiftState [03:30:30]SAM_PROTO_GetShiftState [03:30:30]wFMCommunicate request_size=4 [03:30:30]MH_SAM_APDU [03:30:30]CAPDU: 80 13 01 00 [03:30:30]Write to MH i2c: E2 08 00 38 26 80 13 01 00 00 00 00 00 DB [03:30:30]Write i2c OK [03:30:30]MH_I2C_Read... [03:30:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:30:30]Read from MH i2c: E2 [03:30:30]MH_I2C_Read... [03:30:30]Read from MH i2c: E2 0E 00 [03:30:30]MH_I2C_Read... [03:30:30]Read from MH i2c: E2 0E 00 38 26 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 4A [03:30:30]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [03:30:30]wFMCommunicate OK [03:30:30]SAM_PROTO_GetShiftState done [03:30:30]FM_GetShiftState done [03:30:30]opened in 1729641385 [03:30:30]opened+sec_in_day 1729727785 [03:30:30]quantity*price = 50041 [03:30:30]sum+1 = 50042 [03:30:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 4 23.10.2024 03:30 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68381 ФПД: 212216220338051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T033037&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68381&fm=212216220338051&tin=02508201610067®Number=0000000000091756&sum=50000 [03:30:31]StoreToDocumentArchive [03:30:31]shift 507 fd 68381 [03:30:31]save to /storage/0507/doc_00068381 [03:30:31]save last doc name /storage/0507/doc_00068381 to /storage/kkm_last_doc_name [03:30:31]save OK [03:30:31]Clear old archive folders... [03:30:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:30:31]tlvbuf is 02017720 [03:30:31]SAM_PROTO_ClearQueue [03:30:31]wFMCommunicate request_size=4 [03:30:31]MH_SAM_APDU [03:30:31]CAPDU: 80 09 00 00 [03:30:31]Write to MH i2c: E2 08 00 45 26 80 09 00 00 00 00 00 00 DD [03:30:31]Write i2c OK [03:30:31]MH_I2C_Read... [03:30:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:30:31]Read from MH i2c: E2 [03:30:31]MH_I2C_Read... [03:30:31]Read from MH i2c: E2 03 00 [03:30:31]MH_I2C_Read... [03:30:31]Read from MH i2c: E2 03 00 45 26 00 90 00 DF [03:30:31]RAPDU: 90 00 [03:30:31]wFMCommunicate OK [03:30:31]SAM_PROTO_ClearQueue done [03:30:31]KKMCreateOFDPacket [03:30:31]OFDProtocolAddRootSTLVToBuf [03:30:31]FM_MakeSignedData [03:30:31]FM_MakeSignedData [03:30:31]SAM_PROTO_SignData [03:30:31]wFMCommunicate request_size=4 [03:30:31]MH_SAM_APDU [03:30:31]CAPDU: 80 0D 01 02 [03:30:31]Write to MH i2c: E2 08 00 46 26 80 0D 01 02 00 00 00 00 E5 [03:30:31]Write i2c OK [03:30:31]MH_I2C_Read... [03:30:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:30:31]Read from MH i2c: E2 [03:30:31]MH_I2C_Read... [03:30:31]Read from MH i2c: E2 03 00 [03:30:31]MH_I2C_Read... [03:30:31]Read from MH i2c: E2 03 00 46 26 00 90 00 E0 [03:30:31]RAPDU: 90 00 [03:30:31]wFMCommunicate OK [03:30:31]wFMCommunicate request_size=255 [03:30:31]MH_SAM_APDU [03:30: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 DD 6D 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 1D 0B 01 00 35 04 06 00 C1 [03:30:31]Write to MH i2c: E2 02 01 47 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 DD 6D 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 1D 0B 01 00 35 04 06 00 C1 00 00 28 [03:30:31]Write i2c OK [03:30:31]MH_I2C_Read... [03:30:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:30:32]Read from MH i2c: E2 [03:30:32]MH_I2C_Read... [03:30:32]Read from MH i2c: E2 03 00 [03:30:32]MH_I2C_Read... [03:30:32]Read from MH i2c: E2 03 00 47 26 00 90 00 E1 [03:30:32]RAPDU: 90 00 [03:30:32]wFMCommunicate OK [03:30:32]wFMCommunicate request_size=10 [03:30:32]MH_SAM_APDU [03:30:32]CAPDU: 80 0D 02 02 05 02 70 6D C7 83 [03:30:32]Write to MH i2c: E2 0D 00 48 26 80 0D 02 02 05 00 02 70 6D C7 83 00 00 1B [03:30:32]Write i2c OK [03:30:32]MH_I2C_Read... [03:30:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:30:32]Read from MH i2c: E2 [03:30:32]MH_I2C_Read... [03:30:32]Read from MH i2c: E2 03 00 [03:30:32]MH_I2C_Read... [03:30:32]Read from MH i2c: E2 03 00 48 26 00 90 00 E2 [03:30:32]RAPDU: 90 00 [03:30:32]wFMCommunicate OK [03:30:32]wFMCommunicate request_size=4 [03:30:32]MH_SAM_APDU [03:30:32]CAPDU: 80 0D 03 02 [03:30:32]Write to MH i2c: E2 08 00 49 26 80 0D 03 02 00 00 00 00 EA [03:30:32]Write i2c OK [03:30:32]MH_I2C_Read... [03:30:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:30:32]Read from MH i2c: E2 [03:30:32]MH_I2C_Read... [03:30:32]Read from MH i2c: E2 0B 00 [03:30:32]MH_I2C_Read... [03:30:32]Read from MH i2c: E2 0B 00 49 26 00 AA 4D D8 5F EC 06 DC 8C 90 00 73 [03:30:32]RAPDU: AA 4D D8 5F EC 06 DC 8C 90 00 [03:30:32]wFMCommunicate OK [03:30:32]SAM_PROTO_SignData done [03:30:32]FM_MakeSignedData done [03:30:32]CreateOFDProtocolMessage [03:30:32]wFMCommunicate request_size=4 [03:30:32]MH_SAM_APDU [03:30:32]CAPDU: 80 11 00 00 [03:30:32]Write to MH i2c: E2 08 00 4A 26 80 11 00 00 00 00 00 00 EA [03:30:32]Write i2c OK [03:30:32]MH_I2C_Read... [03:30:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:30:32]Read from MH i2c: E2 [03:30:32]MH_I2C_Read... [03:30:32]Read from MH i2c: E2 17 00 [03:30:32]MH_I2C_Read... [03:30:32]Read from MH i2c: E2 17 00 4A 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 3E [03:30:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [03:30:32]wFMCommunicate OK [03:30:32]CreateOFDProtocolMessage done [03:30:32]OFDSenderStorePacket 68381 [03:30:32]StoreOFDPacket docnum=68381 [03:30:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 41 1B 07 01 88 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 DD 6D 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 1D 0B 01 00 35 04 06 00 C1 02 70 6D C7 83 AA 4D D8 5F EC 06 DC 8C [03:30:32]CheckFolder [03:30:32]dirname=/storage/ofd_packets [03:30:32]CheckFolder done [03:30:32]ProducePacketName [03:30:32]name=ofd_packets/00068381 [03:30:32]NVStorageSaveData ofd_packets/00068381 [03:30:32]File name is /storage/ofd_packets/00068381 [03:30:32]Write 301 bytes [03:30:32]NVStorageSaveData done [03:30:32]OFDSenderStorePacket done [03:30:32]KKMCreateOFDPacket done [03:30:32]NVStorageSaveData kkm_last_timestamp [03:30:32]File name is /storage/kkm_last_timestamp [03:30:32]Write 4 bytes [03:30:32]NVStorageSaveData done [03:30:32]ExternCall_PrintAddStr [03:30:32]wPrintStart [03:30:32]Write to MH i2c: 01 00 00 4B 26 71 [03:30:32]Write i2c OK [03:30:32]MH_I2C_Read... [03:30:32]Read from MH i2c: 01 [03:30:32]MH_I2C_Read... [03:30:32]Read from MH i2c: 01 07 00 [03:30:32]MH_I2C_Read... [03:30:32]Read from MH i2c: 01 07 00 4B 26 00 04 00 00 00 FF 0F 8A [03:30:32]RasterBufferAndPrint [03:30:32]line Счет N : (1)210378 [03:30:32]line ИНН: 02508201610067 [03:30:32]line Контрольно-Кассовый Чек [03:30:32]line ПРОДАЖА [03:30:32]line ТРК (МРК, ГНК) : 11 [03:30:32]line Товар: 2710124130 [03:30:32]line Аи-92-К-2 [03:30:32]line 7.480 * 66.90 [03:30:32]line = 500.41 [03:30:32]line НДС 12% НСП 1% [03:30:32]line > о реализуемом товаре [03:30:32]line ОКРУГЛЕНИЕ: -0.41 [03:30:32]line ИТОГО: 500.00 [03:30:32]line Внесено: 500.00 [03:30:32]line СДАЧА: 0.00 [03:30:32]line НСП 1% : 4.43 [03:30:32]line НДС 12% : 53.14 [03:30:32]line Наличными: 500.00 [03:30:32]line Безнал.: 0.00 [03:30:32]line Место: АЗС № 147 "Партнер Нефть" [03:30:32]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [03:30:32]line СНО: Общий режим [03:30:32]line Чек 4 23.10.2024 03:30 [03:30:32]line Смена: 507 ФФД: 1.0 [03:30:32]line ЗНМ: 0300000094 [03:30:32]line РНМ: 0000000000091756 [03:30:32]line Версия ККМ: 001 [03:30:32]line ФМ: 0000000000871809 [03:30:32]line ФД: 68381 [03:30:32]line ФПД: 212216220338051 [03:30:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T033037&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68381&fm=212216220338051&tin=02508201610067®Number=0000000000091756&sum=50000 [03:30:32]OFD Sender: Processing packet 68381 [packets to send 8, broken 7] [03:30:32]ProducePacketName [03:30:32]name=ofd_packets/00068381 [03:30:32]OFD Sender: To server: pG, [03:30:32]CommunicateWithHost lk.salyk.kg:30040 [03:30:32]ConnectInit lk.salyk.kg [03:30:32]written 0, free lines is 4095 [03:30:32]Connected sock=10 [03:30:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 41 1B 07 01 88 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 DD 6D 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 1D 0B 01 00 35 04 06 00 C1 02 70 6D C7 83 AA 4D D8 5F EC 06 DC 8C [03:30:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 20 E9 47 00 75 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 1D 0B 01 00 F4 03 04 00 D3 13 18 67 B6 04 01 00 00 86 57 E2 E7 C4 34 AA 44 [03:30:32]CommunicateWithHost err = 0 [03:30:32]CheckOFDResponse [03:30:32]1017 (14) - 77093643461234 [03:30:32]1041 (16) - 0000000000871809 [03:30:32]1040 (4) - 68381 [03:30:32]1012 (4) - 22.10.2024 21:06 [03:30:32]1206 (1) - 0 [03:30:32]OFD Sender: Remove packet 68381 [03:30:32]ProducePacketName [03:30:32]name=ofd_packets/00068381 [03:30:32]NVStorageDeleteData [03:30:33]Write to MH i2c: 01 00 00 75 26 9B [03:30:33]Write i2c OK [03:30:33]MH_I2C_Read... [03:30:33]Read from MH i2c: 01 [03:30:33]MH_I2C_Read... [03:30:33]Read from MH i2c: 01 07 00 [03:30:33]MH_I2C_Read... [03:30:33]Read from MH i2c: 01 07 00 75 26 00 04 00 00 00 AF 0C 61 [03:30:33]RasterBufferAndPrint [03:30:33]line [03:30:33]line [03:30:33]line [03:30:33]line [03:30:33]line [03:30:33]written 0, free lines is 3251 [03:30:33]MH_Cut [03:30:33]Write to MH i2c: D1 01 00 7C 26 01 74 [03:30:33]Write i2c OK [03:30:33]MH_I2C_Read... [03:30:33]Read from MH i2c: D1 [03:30:33]MH_I2C_Read... [03:30:33]Read from MH i2c: D1 01 00 [03:30:33]MH_I2C_Read... [03:30:33]Read from MH i2c: D1 01 00 7C 26 00 73 [03:30:33]Write to MH i2c: 01 00 00 7D 26 A3 [03:30:33]Write i2c OK [03:30:33]MH_I2C_Read... [03:30:33]OFD Sender: No OFD packet to send [03:30:33]*** Cut start [03:30:33]*** Partial cut [03:30:33]*** CUTSNS_PIN = 1 [03:30:33]*** CUTSNS_PIN = 0 [03:30:34]*** Brake cut motor [03:30:34]Read from MH i2c: 01 [03:30:34]MH_I2C_Read... [03:30:34]*** Stop cut motor [03:30:34]*** Cut end [03:30:34]Read from MH i2c: 01 07 00 [03:30:34]MH_I2C_Read... [03:30:34]Read from MH i2c: 01 07 00 7D 26 00 04 00 00 00 FF 0F BC [03:30:34]process_action close_receipt done [03:30:34]requested_data is exist [03:30:34]produce_requested_data [03:30:34]requested_item fm.sn is exist - process it [03:30:34]wFMCommunicate request_size=4 [03:30:34]MH_SAM_APDU [03:30:34]CAPDU: 80 11 00 00 [03:30:34]Write to MH i2c: E2 08 00 7E 26 80 11 00 00 00 00 00 00 1E [03:30:34]Write i2c OK [03:30:34]MH_I2C_Read... [03:30:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:30:34]Read from MH i2c: E2 [03:30:34]MH_I2C_Read... [03:30:34]Read from MH i2c: E2 17 00 [03:30:34]MH_I2C_Read... [03:30:34]Read from MH i2c: E2 17 00 7E 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 72 [03:30:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [03:30:34]wFMCommunicate OK [03:30:34]requested_item fd.num is exist - process it [03:30:34]SAM_PROTO_GetFieldsCounters [03:30:34]wFMCommunicate request_size=4 [03:30:34]MH_SAM_APDU [03:30:34]CAPDU: 80 13 00 00 [03:30:34]Write to MH i2c: E2 08 00 7F 26 80 13 00 00 00 00 00 00 21 [03:30:34]Write i2c OK [03:30:34]MH_I2C_Read... [03:30:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:30:34]Read from MH i2c: E2 [03:30:34]MH_I2C_Read... [03:30:34]Read from MH i2c: E2 62 00 [03:30:34]MH_I2C_Read... [03:30:34]Read from MH i2c: E2 62 00 7F 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 1D 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [03:30:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 1D 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:30:34]wFMCommunicate OK [03:30:34]SAM_PROTO_GetFieldsCounters done [03:30:34]requested_item shift.num is exist - process it [03:30:34]requested_item shift.opened is exist - process it [03:30:34]req_shift_opened [03:30:34]FM_GetShiftState [03:30:34]SAM_PROTO_GetShiftState [03:30:34]wFMCommunicate request_size=4 [03:30:34]MH_SAM_APDU [03:30:34]CAPDU: 80 13 01 00 [03:30:34]Write to MH i2c: E2 08 00 80 26 80 13 01 00 00 00 00 00 23 [03:30:34]Write i2c OK [03:30:34]MH_I2C_Read... [03:30:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:30:34]Read from MH i2c: E2 [03:30:34]MH_I2C_Read... [03:30:34]Read from MH i2c: E2 0E 00 [03:30:34]MH_I2C_Read... [03:30:34]Read from MH i2c: E2 0E 00 80 26 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 92 [03:30:34]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [03:30:34]wFMCommunicate OK [03:30:34]SAM_PROTO_GetShiftState done [03:30:34]FM_GetShiftState done [03:30:34]req_shift_opened done [03:30:34]requested_item shift.open_date is exist - process it [03:30:34]req_shift_open_date [03:30:34]req_shift_open_date done [03:30:34]produce_requested_data done [03:30:34]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68381,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [03:30:34]process_action_free close_receipt [03:30:34]json_value_free [03:30:34]json_value_free done [03:30:34]process_json_proto returns [03:30:34]Send response to host [03:30:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68381,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [03:30:34]free response buf [03:30:34]execute_script done [03:30:34]execute_script returns [03:30:34]free content buf [03:30:34]Sock 7.Close socket [03:30:34]Sock 7.Thread stoped [03:30:38]OFD Sender: No OFD packet to send [03:30:43]OFD Sender: No OFD packet to send [03:30:48]OFD Sender: No OFD packet to send [03:30:53]OFD Sender: No OFD packet to send [03:30:58]OFD Sender: No OFD packet to send [03:31:03]OFD Sender: No OFD packet to send [03:31:08]OFD Sender: No OFD packet to send [03:31:13]OFD Sender: No OFD packet to send [03:31:18]OFD Sender: No OFD packet to send [03:31:23]OFD Sender: No OFD packet to send [03:31:28]OFD Sender: No OFD packet to send [03:31:33]OFD Sender: No OFD packet to send [03:31:38]OFD Sender: No OFD packet to send [03:31:43]OFD Sender: No OFD packet to send [03:31:48]OFD Sender: No OFD packet to send [03:31:53]OFD Sender: No OFD packet to send [03:31:58]OFD Sender: No OFD packet to send [03:32:03]OFD Sender: No OFD packet to send [03:32:08]OFD Sender: No OFD packet to send [03:32:13]OFD Sender: No OFD packet to send [03:32:18]OFD Sender: No OFD packet to send [03:32:23]OFD Sender: No OFD packet to send [03:32:28]OFD Sender: No OFD packet to send [03:32:33]OFD Sender: No OFD packet to send [03:32:38]OFD Sender: No OFD packet to send [03:32:43]OFD Sender: No OFD packet to send [03:32:48]OFD Sender: No OFD packet to send [03:32:53]OFD Sender: No OFD packet to send [03:32:58]OFD Sender: No OFD packet to send [03:33:03]OFD Sender: No OFD packet to send [03:33:08]OFD Sender: No OFD packet to send [03:33:13]OFD Sender: No OFD packet to send [03:33:18]OFD Sender: No OFD packet to send [03:33:23]OFD Sender: No OFD packet to send [03:33:28]OFD Sender: No OFD packet to send [03:33:33]OFD Sender: No OFD packet to send [03:33:38]OFD Sender: No OFD packet to send [03:33:43]OFD Sender: No OFD packet to send [03:33:48]OFD Sender: No OFD packet to send [03:33:53]OFD Sender: No OFD packet to send [03:33:58]OFD Sender: No OFD packet to send [03:34:03]OFD Sender: No OFD packet to send [03:34:08]OFD Sender: No OFD packet to send [03:34:13]OFD Sender: No OFD packet to send [03:34:18]OFD Sender: No OFD packet to send [03:34:23]OFD Sender: No OFD packet to send [03:34:28]OFD Sender: No OFD packet to send [03:34:33]OFD Sender: No OFD packet to send [03:34:38]OFD Sender: No OFD packet to send [03:34:43]OFD Sender: No OFD packet to send [03:34:48]OFD Sender: No OFD packet to send [03:34:53]OFD Sender: No OFD packet to send [03:34:58]OFD Sender: No OFD packet to send [03:35:03]OFD Sender: No OFD packet to send [03:35:08]OFD Sender: No OFD packet to send [03:35:13]OFD Sender: No OFD packet to send [03:35:18]OFD Sender: No OFD packet to send [03:35:23]OFD Sender: No OFD packet to send [03:35:28]OFD Sender: No OFD packet to send [03:35:33]OFD Sender: No OFD packet to send [03:35:38]OFD Sender: No OFD packet to send [03:35:43]OFD Sender: No OFD packet to send [03:35:48]OFD Sender: No OFD packet to send [03:35:53]OFD Sender: No OFD packet to send [03:35:58]OFD Sender: No OFD packet to send [03:36:03]OFD Sender: No OFD packet to send [03:36:08]OFD Sender: No OFD packet to send [03:36:13]OFD Sender: No OFD packet to send [03:36:18]OFD Sender: No OFD packet to send [03:36:23]OFD Sender: No OFD packet to send [03:36:28]OFD Sender: No OFD packet to send [03:36:33]OFD Sender: No OFD packet to send [03:36:38]OFD Sender: No OFD packet to send [03:36:43]OFD Sender: No OFD packet to send [03:36:48]OFD Sender: No OFD packet to send [03:36:53]OFD Sender: No OFD packet to send [03:36:58]OFD Sender: No OFD packet to send [03:37:03]OFD Sender: No OFD packet to send [03:37:08]OFD Sender: No OFD packet to send [03:37:13]OFD Sender: No OFD packet to send [03:37:18]OFD Sender: No OFD packet to send [03:37:23]OFD Sender: No OFD packet to send [03:37:28]OFD Sender: No OFD packet to send [03:37:33]OFD Sender: No OFD packet to send [03:37:38]OFD Sender: No OFD packet to send [03:37:43]OFD Sender: No OFD packet to send [03:37:48]OFD Sender: No OFD packet to send [03:37:53]OFD Sender: No OFD packet to send [03:37:58]OFD Sender: No OFD packet to send [03:38:03]OFD Sender: No OFD packet to send [03:38:08]OFD Sender: No OFD packet to send [03:38:13]OFD Sender: No OFD packet to send [03:38:18]OFD Sender: No OFD packet to send [03:38:23]OFD Sender: No OFD packet to send [03:38:28]OFD Sender: No OFD packet to send [03:38:33]OFD Sender: No OFD packet to send [03:38:38]OFD Sender: No OFD packet to send [03:38:43]OFD Sender: No OFD packet to send [03:38:48]OFD Sender: No OFD packet to send [03:38:53]OFD Sender: No OFD packet to send [03:38:58]OFD Sender: No OFD packet to send [03:39:03]OFD Sender: No OFD packet to send [03:39:08]OFD Sender: No OFD packet to send [03:39:13]OFD Sender: No OFD packet to send [03:39:18]OFD Sender: No OFD packet to send [03:39:23]OFD Sender: No OFD packet to send [03:39:28]OFD Sender: No OFD packet to send [03:39:33]OFD Sender: No OFD packet to send [03:39:38]OFD Sender: No OFD packet to send [03:39:43]OFD Sender: No OFD packet to send [03:39:48]OFD Sender: No OFD packet to send [03:39:53]OFD Sender: No OFD packet to send [03:39:58]OFD Sender: No OFD packet to send [03:40:03]OFD Sender: No OFD packet to send [03:40:08]OFD Sender: No OFD packet to send [03:40:13]OFD Sender: No OFD packet to send [03:40:18]OFD Sender: No OFD packet to send [03:40:23]OFD Sender: No OFD packet to send [03:40:28]OFD Sender: No OFD packet to send [03:40:33]OFD Sender: No OFD packet to send [03:40:38]OFD Sender: No OFD packet to send [03:40:43]OFD Sender: No OFD packet to send [03:40:48]OFD Sender: No OFD packet to send [03:40:53]OFD Sender: No OFD packet to send [03:40:58]OFD Sender: No OFD packet to send [03:41:03]OFD Sender: No OFD packet to send [03:41:08]OFD Sender: No OFD packet to send [03:41:14]OFD Sender: No OFD packet to send [03:41:19]OFD Sender: No OFD packet to send [03:41:24]OFD Sender: No OFD packet to send [03:41:29]OFD Sender: No OFD packet to send [03:41:34]OFD Sender: No OFD packet to send [03:41:39]OFD Sender: No OFD packet to send [03:41:44]OFD Sender: No OFD packet to send [03:41:49]OFD Sender: No OFD packet to send [03:41:54]OFD Sender: No OFD packet to send [03:41:59]OFD Sender: No OFD packet to send [03:42:04]OFD Sender: No OFD packet to send [03:42:09]OFD Sender: No OFD packet to send [03:42:14]OFD Sender: No OFD packet to send [03:42:19]OFD Sender: No OFD packet to send [03:42:24]OFD Sender: No OFD packet to send [03:42:29]OFD Sender: No OFD packet to send [03:42:34]OFD Sender: No OFD packet to send [03:42:39]OFD Sender: No OFD packet to send [03:42:44]OFD Sender: No OFD packet to send [03:42:49]OFD Sender: No OFD packet to send [03:42:54]OFD Sender: No OFD packet to send [03:42:59]OFD Sender: No OFD packet to send [03:43:04]OFD Sender: No OFD packet to send [03:43:09]OFD Sender: No OFD packet to send [03:43:14]OFD Sender: No OFD packet to send [03:43:19]OFD Sender: No OFD packet to send [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: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: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: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: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: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: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:49]OFD Sender: No OFD packet to send [03:47:54]OFD Sender: No OFD packet to send [03:47:59]OFD Sender: No OFD packet to send [03:48:04]OFD Sender: No OFD packet to send [03:48:09]OFD Sender: No OFD packet to send [03:48:14]OFD Sender: No OFD packet to send [03:48:19]OFD Sender: No OFD packet to send [03:48:24]OFD Sender: No OFD packet to send [03:48:29]OFD Sender: No OFD packet to send [03:48:34]OFD Sender: No OFD packet to send [03:48:39]OFD Sender: No OFD packet to send [03:48:44]OFD Sender: No OFD packet to send [03:48:49]OFD Sender: No OFD packet to send [03:48:54]OFD Sender: No OFD packet to send [03:48:59]OFD Sender: No OFD packet to send [03:49:04]OFD Sender: No OFD packet to send [03:49:09]OFD Sender: No OFD packet to send [03:49:14]OFD Sender: No OFD packet to send [03:49:19]OFD Sender: No OFD packet to send [03:49:24]OFD Sender: No OFD packet to send [03:49:29]OFD Sender: No OFD packet to send [03:49:34]OFD Sender: No OFD packet to send [03:49:39]OFD Sender: No OFD packet to send [03:49: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: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:19]OFD Sender: No OFD packet to send [03:52:24]OFD Sender: No OFD packet to send [03:52:29]OFD Sender: No OFD packet to send [03:52:34]OFD Sender: No OFD packet to send [03:52:39]OFD Sender: No OFD packet to send [03:52:44]OFD Sender: No OFD packet to send [03:52:49]OFD Sender: No OFD packet to send [03:52:54]OFD Sender: No OFD packet to send [03:52:59]OFD Sender: No OFD packet to send [03:53:04]OFD Sender: No OFD packet to send [03:53:09]OFD Sender: No OFD packet to send [03:53:14]OFD Sender: No OFD packet to send [03:53:19]OFD Sender: No OFD packet to send [03:53:24]OFD Sender: No OFD packet to send [03:53:29]OFD Sender: No OFD packet to send [03:53:34]OFD Sender: No OFD packet to send [03:53:39]OFD Sender: No OFD packet to send [03:53:44]OFD Sender: No OFD packet to send [03:53:49]OFD Sender: No OFD packet to send [03:53:54]OFD Sender: No OFD packet to send [03:53:59]OFD Sender: No OFD packet to send [03:54:04]OFD Sender: No OFD packet to send [03:54:09]OFD Sender: No OFD packet to send [03:54:14]OFD Sender: No OFD packet to send [03:54:19]OFD Sender: No OFD packet to send [03:54:24]OFD Sender: No OFD packet to send [03:54:29]OFD Sender: No OFD packet to send [03:54:34]OFD Sender: No OFD packet to send [03:54:39]OFD Sender: No OFD packet to send [03:54:44]OFD Sender: No OFD packet to send [03:54:49]OFD Sender: No OFD packet to send [03:54:54]OFD Sender: No OFD packet to send [03:54:59]OFD Sender: No OFD packet to send [03:55:04]OFD Sender: No OFD packet to send [03:55:09]OFD Sender: No OFD packet to send [03:55:14]OFD Sender: No OFD packet to send [03:55:19]OFD Sender: No OFD packet to send [03:55:24]OFD Sender: No OFD packet to send [03:55:29]OFD Sender: No OFD packet to send [03:55:34]OFD Sender: No OFD packet to send [03:55:39]OFD Sender: No OFD packet to send [03:55:44]OFD Sender: No OFD packet to send [03:55:49]OFD Sender: No OFD packet to send [03:55:54]OFD Sender: No OFD packet to send [03:55:59]OFD Sender: No OFD packet to send [03:56:04]OFD Sender: No OFD packet to send [03:56:09]OFD Sender: No OFD packet to send [03:56:14]OFD Sender: No OFD packet to send [03:56:19]OFD Sender: No OFD packet to send [03:56:24]OFD Sender: No OFD packet to send [03:56:29]OFD Sender: No OFD packet to send [03:56:34]OFD Sender: No OFD packet to send [03:56:39]OFD Sender: No OFD packet to send [03:56:44]OFD Sender: No OFD packet to send [03:56:49]OFD Sender: No OFD packet to send [03:56:54]OFD Sender: No OFD packet to send [03:56:59]OFD Sender: No OFD packet to send [03:57:04]OFD Sender: No OFD packet to send [03:57:09]OFD Sender: No OFD packet to send [03:57:14]OFD Sender: No OFD packet to send [03:57:19]OFD Sender: No OFD packet to send [03:57:24]OFD Sender: No OFD packet to send [03:57:29]OFD Sender: No OFD packet to send [03:57:34]OFD Sender: No OFD packet to send [03:57:39]OFD Sender: No OFD packet to send [03:57:44]OFD Sender: No OFD packet to send [03:57:49]OFD Sender: No OFD packet to send [03:57:54]OFD Sender: No OFD packet to send [03:57:59]OFD Sender: No OFD packet to send [03:58:04]OFD Sender: No OFD packet to send [03:58:09]OFD Sender: No OFD packet to send [03:58:14]OFD Sender: No OFD packet to send [03:58:19]OFD Sender: No OFD packet to send [03:58:24]OFD Sender: No OFD packet to send [03:58:29]OFD Sender: No OFD packet to send [03:58:34]OFD Sender: No OFD packet to send [03:58:39]OFD Sender: No OFD packet to send [03:58:44]OFD Sender: No OFD packet to send [03:58:49]OFD Sender: No OFD packet to send [03:58:54]OFD Sender: No OFD packet to send [03:58:59]OFD Sender: No OFD packet to send [03:59:04]OFD Sender: No OFD packet to send [03:59:09]OFD Sender: No OFD packet to send [03:59:14]OFD Sender: No OFD packet to send [03:59:19]OFD Sender: No OFD packet to send [03:59:24]OFD Sender: No OFD packet to send [03:59:29]OFD Sender: No OFD packet to send [03:59:34]OFD Sender: No OFD packet to send [03:59:39]OFD Sender: No OFD packet to send [03:59:44]OFD Sender: No OFD packet to send [03:59:49]OFD Sender: No OFD packet to send [03:59:54]OFD Sender: No OFD packet to send [03:59:59]OFD Sender: No OFD packet to send [04:00:04]OFD Sender: No OFD packet to send [04:00:09]OFD Sender: No OFD packet to send [04:00:14]OFD Sender: No OFD packet to send [04:00:19]OFD Sender: No OFD packet to send [04:00:24]OFD Sender: No OFD packet to send [04:00:29]OFD Sender: No OFD packet to send [04:00:34]OFD Sender: No OFD packet to send [04:00:39]OFD Sender: No OFD packet to send [04:00:44]OFD Sender: No OFD packet to send [04:00:49]OFD Sender: No OFD packet to send [04:00:54]OFD Sender: No OFD packet to send [04:00:59]OFD Sender: No OFD packet to send [04:01:04]OFD Sender: No OFD packet to send [04:01:09]OFD Sender: No OFD packet to send [04:01:14]OFD Sender: No OFD packet to send [04:01:19]OFD Sender: No OFD packet to send [04:01:24]OFD Sender: No OFD packet to send [04:01:29]OFD Sender: No OFD packet to send [04:01:34]OFD Sender: No OFD packet to send [04:01:39]OFD Sender: No OFD packet to send [04:01:44]OFD Sender: No OFD packet to send [04:01:49]OFD Sender: No OFD packet to send [04:01:54]OFD Sender: No OFD packet to send [04:01:59]OFD Sender: No OFD packet to send [04:02:04]OFD Sender: No OFD packet to send [04:02:09]OFD Sender: No OFD packet to send [04:02:14]OFD Sender: No OFD packet to send [04:02:19]OFD Sender: No OFD packet to send [04:02:24]OFD Sender: No OFD packet to send [04:02:30]OFD Sender: No OFD packet to send [04:02:35]OFD Sender: No OFD packet to send [04:02:40]OFD Sender: No OFD packet to send [04:02:45]OFD Sender: No OFD packet to send [04:02:50]OFD Sender: No OFD packet to send [04:02:55]OFD Sender: No OFD packet to send [04:03:00]OFD Sender: No OFD packet to send [04:03:05]OFD Sender: No OFD packet to send [04:03:10]OFD Sender: No OFD packet to send [04:03:15]OFD Sender: No OFD packet to send [04:03:20]OFD Sender: No OFD packet to send [04:03:25]OFD Sender: No OFD packet to send [04:03:30]OFD Sender: No OFD packet to send [04:03:35]OFD Sender: No OFD packet to send [04:03:40]OFD Sender: No OFD packet to send [04:03:45]OFD Sender: No OFD packet to send [04:03:50]OFD Sender: No OFD packet to send [04:03:55]OFD Sender: No OFD packet to send [04:04:00]OFD Sender: No OFD packet to send [04:04:05]OFD Sender: No OFD packet to send [04:04:10]OFD Sender: No OFD packet to send [04:04:15]OFD Sender: No OFD packet to send [04:04:20]OFD Sender: No OFD packet to send [04:04:25]OFD Sender: No OFD packet to send [04:04:30]OFD Sender: No OFD packet to send [04:04:35]OFD Sender: No OFD packet to send [04:04:40]OFD Sender: No OFD packet to send [04:04:45]OFD Sender: No OFD packet to send [04:04:50]OFD Sender: No OFD packet to send [04:04:55]OFD Sender: No OFD packet to send [04:05:00]OFD Sender: No OFD packet to send [04:05:05]OFD Sender: No OFD packet to send [04:05:10]OFD Sender: No OFD packet to send [04:05:15]OFD Sender: No OFD packet to send [04:05:20]OFD Sender: No OFD packet to send [04:05:25]OFD Sender: No OFD packet to send [04:05:30]OFD Sender: No OFD packet to send [04:05:35]OFD Sender: No OFD packet to send [04:05:40]OFD Sender: No OFD packet to send [04:05:45]OFD Sender: No OFD packet to send [04:05:50]OFD Sender: No OFD packet to send [04:05:55]OFD Sender: No OFD packet to send [04:06:00]OFD Sender: No OFD packet to send [04:06:05]OFD Sender: No OFD packet to send [04:06:10]OFD Sender: No OFD packet to send [04:06:15]OFD Sender: No OFD packet to send [04:06:20]OFD Sender: No OFD packet to send [04:06:25]OFD Sender: No OFD packet to send [04:06:30]OFD Sender: No OFD packet to send [04:06:35]OFD Sender: No OFD packet to send [04:06:40]OFD Sender: No OFD packet to send [04:06:45]OFD Sender: No OFD packet to send [04:06:50]OFD Sender: No OFD packet to send [04:06:55]OFD Sender: No OFD packet to send [04:07:00]OFD Sender: No OFD packet to send [04:07:05]OFD Sender: No OFD packet to send [04:07:10]OFD Sender: No OFD packet to send [04:07:15]OFD Sender: No OFD packet to send [04:07:20]OFD Sender: No OFD packet to send [04:07:25]OFD Sender: No OFD packet to send [04:07:30]OFD Sender: No OFD packet to send [04:07:35]OFD Sender: No OFD packet to send [04:07:40]OFD Sender: No OFD packet to send [04:07:45]OFD Sender: No OFD packet to send [04:07:50]OFD Sender: No OFD packet to send [04:07:55]OFD Sender: No OFD packet to send [04:08:00]OFD Sender: No OFD packet to send [04:13:27]ConnectInit Can't connect to host [04:13:30]OFD Sender: No OFD packet to send [04:13:35]OFD Sender: No OFD packet to send [04:13:40]OFD Sender: No OFD packet to send [04:13:45]OFD Sender: No OFD packet to send [04:13:50]OFD Sender: No OFD packet to send [04:13:55]OFD Sender: No OFD packet to send [04:19:40]ConnectInit Can't connect to host [04:19:40]OFD Sender: No OFD packet to send [04:19:45]OFD Sender: No OFD packet to send [04:19:50]OFD Sender: No OFD packet to send [04:19:55]OFD Sender: No OFD packet to send [04:20:00]OFD Sender: No OFD packet to send [04:20:05]OFD Sender: No OFD packet to send [04:20:10]OFD Sender: No OFD packet to send [04:20:15]OFD Sender: No OFD packet to send [04:20:20]OFD Sender: No OFD packet to send [04:20:25]OFD Sender: No OFD packet to send [04:20:30]OFD Sender: No OFD packet to send [04:20:35]OFD Sender: No OFD packet to send [04:20:40]OFD Sender: No OFD packet to send [04:20:45]OFD Sender: No OFD packet to send [04:20:50]OFD Sender: No OFD packet to send [04:20:55]OFD Sender: No OFD packet to send [04:21:00]OFD Sender: No OFD packet to send [04:21:05]OFD Sender: No OFD packet to send [04:21:10]OFD Sender: No OFD packet to send [04:21:15]OFD Sender: No OFD packet to send [04:21:20]OFD Sender: No OFD packet to send [04:21:25]OFD Sender: No OFD packet to send [04:21:30]OFD Sender: No OFD packet to send [04:21:35]OFD Sender: No OFD packet to send [04:21:40]OFD Sender: No OFD packet to send [04:21:45]OFD Sender: No OFD packet to send [04:21:50]OFD Sender: No OFD packet to send [04:21:55]OFD Sender: No OFD packet to send [04:22:00]OFD Sender: No OFD packet to send [04:22:05]OFD Sender: No OFD packet to send [04:22:10]OFD Sender: No OFD packet to send [04:22:15]OFD Sender: No OFD packet to send [04:22:20]OFD Sender: No OFD packet to send [04:22:25]OFD Sender: No OFD packet to send [04:22:30]OFD Sender: No OFD packet to send [04:22:35]OFD Sender: No OFD packet to send [04:22:40]OFD Sender: No OFD packet to send [04:22:45]OFD Sender: No OFD packet to send [04:22:50]OFD Sender: No OFD packet to send [04:22:55]OFD Sender: No OFD packet to send [04:23:00]OFD Sender: No OFD packet to send [04:23:05]OFD Sender: No OFD packet to send [04:23:10]OFD Sender: No OFD packet to send [04:23:15]OFD Sender: No OFD packet to send [04:23:20]OFD Sender: No OFD packet to send [04:23:25]OFD Sender: No OFD packet to send [04:23:30]OFD Sender: No OFD packet to send [04:23:35]OFD Sender: No OFD packet to send [04:23:40]OFD Sender: No OFD packet to send [04:23:45]OFD Sender: No OFD packet to send [04:23:50]OFD Sender: No OFD packet to send [04:23:56]OFD Sender: No OFD packet to send [04:24:01]OFD Sender: No OFD packet to send [04:24:06]OFD Sender: No OFD packet to send [04:24:11]OFD Sender: No OFD packet to send [04:24:16]OFD Sender: No OFD packet to send [04:24:21]OFD Sender: No OFD packet to send [04:24:26]OFD Sender: No OFD packet to send [04:24:31]OFD Sender: No OFD packet to send [04:24:36]OFD Sender: No OFD packet to send [04:24:41]OFD Sender: No OFD packet to send [04:24:46]OFD Sender: No OFD packet to send [04:24:51]OFD Sender: No OFD packet to send [04:24:56]OFD Sender: No OFD packet to send [04:25:01]OFD Sender: No OFD packet to send [04:25:06]OFD Sender: No OFD packet to send [04:25:11]OFD Sender: No OFD packet to send [04:25:16]OFD Sender: No OFD packet to send [04:25:21]OFD Sender: No OFD packet to send [04:25:26]OFD Sender: No OFD packet to send [04:25:31]OFD Sender: No OFD packet to send [04:25:36]OFD Sender: No OFD packet to send [04:25:41]OFD Sender: No OFD packet to send [04:25:46]OFD Sender: No OFD packet to send [04:25:51]OFD Sender: No OFD packet to send [04:25:56]OFD Sender: No OFD packet to send [04:26:01]OFD Sender: No OFD packet to send [04:26:06]OFD Sender: No OFD packet to send [04:26:11]OFD Sender: No OFD packet to send [04:26:16]OFD Sender: No OFD packet to send [04:26:21]OFD Sender: No OFD packet to send [04:26:26]OFD Sender: No OFD packet to send [04:26:31]OFD Sender: No OFD packet to send [04:26:36]OFD Sender: No OFD packet to send [04:26:41]OFD Sender: No OFD packet to send [04:26:46]OFD Sender: No OFD packet to send [04:26:51]OFD Sender: No OFD packet to send [04:26:56]OFD Sender: No OFD packet to send [04:27:01]OFD Sender: No OFD packet to send [04:27:06]OFD Sender: No OFD packet to send [04:27:11]OFD Sender: No OFD packet to send [04:27:16]OFD Sender: No OFD packet to send [04:27:21]OFD Sender: No OFD packet to send [04:27:26]OFD Sender: No OFD packet to send [04:27:31]OFD Sender: No OFD packet to send [04:27:36]OFD Sender: No OFD packet to send [04:27:41]OFD Sender: No OFD packet to send [04:27:46]OFD Sender: No OFD packet to send [04:27:51]OFD Sender: No OFD packet to send [04:27:56]OFD Sender: No OFD packet to send [04:28:01]OFD Sender: No OFD packet to send [04:28:06]OFD Sender: No OFD packet to send [04:28:11]OFD Sender: No OFD packet to send [04:28:16]OFD Sender: No OFD packet to send [04:28:21]OFD Sender: No OFD packet to send [04:28:26]OFD Sender: No OFD packet to send [04:28:31]OFD Sender: No OFD packet to send [04:28:36]OFD Sender: No OFD packet to send [04:28:41]OFD Sender: No OFD packet to send [04:28:46]OFD Sender: No OFD packet to send [04:28:51]OFD Sender: No OFD packet to send [04:28:56]OFD Sender: No OFD packet to send [04:29:01]OFD Sender: No OFD packet to send [04:29:06]OFD Sender: No OFD packet to send [04:29:11]OFD Sender: No OFD packet to send [04:29:16]OFD Sender: No OFD packet to send [04:29:21]OFD Sender: No OFD packet to send [04:29:26]OFD Sender: No OFD packet to send [04:29:31]OFD Sender: No OFD packet to send [04:29:36]OFD Sender: No OFD packet to send [04:29:41]OFD Sender: No OFD packet to send [04:29:46]OFD Sender: No OFD packet to send [04:29:51]OFD Sender: No OFD packet to send [04:29:56]OFD Sender: No OFD packet to send [04:30:01]OFD Sender: No OFD packet to send [04:30:06]OFD Sender: No OFD packet to send [04:30:11]OFD Sender: No OFD packet to send [04:30:16]OFD Sender: No OFD packet to send [04:30:21]OFD Sender: No OFD packet to send [04:30:26]OFD Sender: No OFD packet to send [04:30:31]OFD Sender: No OFD packet to send [04:30:36]OFD Sender: No OFD packet to send [04:30:41]OFD Sender: No OFD packet to send [04:30:46]OFD Sender: No OFD packet to send [04:30:51]OFD Sender: No OFD packet to send [04:30:56]OFD Sender: No OFD packet to send [04:31:01]OFD Sender: No OFD packet to send [04:31:06]OFD Sender: No OFD packet to send [04:31:11]OFD Sender: No OFD packet to send [04:31:16]OFD Sender: No OFD packet to send [04:31:21]OFD Sender: No OFD packet to send [04:31:26]OFD Sender: No OFD packet to send [04:31:31]OFD Sender: No OFD packet to send [04:31:36]OFD Sender: No OFD packet to send [04:31:41]OFD Sender: No OFD packet to send [04:31:46]OFD Sender: No OFD packet to send [04:31:51]OFD Sender: No OFD packet to send [04:31:56]OFD Sender: No OFD packet to send [04:32:01]OFD Sender: No OFD packet to send [04:32:06]OFD Sender: No OFD packet to send [04:32:11]OFD Sender: No OFD packet to send [04:32:16]OFD Sender: No OFD packet to send [04:32:21]OFD Sender: No OFD packet to send [04:32:26]OFD Sender: No OFD packet to send [04:32:31]OFD Sender: No OFD packet to send [04:32:36]OFD Sender: No OFD packet to send [04:32:41]OFD Sender: No OFD packet to send [04:32:46]OFD Sender: No OFD packet to send [04:32:51]OFD Sender: No OFD packet to send [04:32:56]OFD Sender: No OFD packet to send [04:33:01]OFD Sender: No OFD packet to send [04:33:06]OFD Sender: No OFD packet to send [04:33:11]OFD Sender: No OFD packet to send [04:33:16]OFD Sender: No OFD packet to send [04:33:21]OFD Sender: No OFD packet to send [04:33:26]OFD Sender: No OFD packet to send [04:33:31]OFD Sender: No OFD packet to send [04:33:36]OFD Sender: No OFD packet to send [04:33:41]OFD Sender: No OFD packet to send [04:33:46]OFD Sender: No OFD packet to send [04:33:51]OFD Sender: No OFD packet to send [04:33:56]OFD Sender: No OFD packet to send [04:34:01]OFD Sender: No OFD packet to send [04:34:06]OFD Sender: No OFD packet to send [04:34:11]OFD Sender: No OFD packet to send [04:34:16]OFD Sender: No OFD packet to send [04:34:21]OFD Sender: No OFD packet to send [04:34:26]OFD Sender: No OFD packet to send [04:34:31]OFD Sender: No OFD packet to send [04:34:36]OFD Sender: No OFD packet to send [04:34:41]OFD Sender: No OFD packet to send [04:34:46]OFD Sender: No OFD packet to send [04:34:51]OFD Sender: No OFD packet to send [04:34:56]OFD Sender: No OFD packet to send [04:35:01]OFD Sender: No OFD packet to send [04:35:06]OFD Sender: No OFD packet to send [04:35:11]OFD Sender: No OFD packet to send [04:35:16]OFD Sender: No OFD packet to send [04:35:21]OFD Sender: No OFD packet to send [04:35:26]OFD Sender: No OFD packet to send [04:35:31]OFD Sender: No OFD packet to send [04:35:36]OFD Sender: No OFD packet to send [04:35:41]OFD Sender: No OFD packet to send [04:35:46]OFD Sender: No OFD packet to send [04:35:51]OFD Sender: No OFD packet to send [04:35:56]OFD Sender: No OFD packet to send [04:36:01]OFD Sender: No OFD packet to send [04:36:06]OFD Sender: No OFD packet to send [04:36:11]OFD Sender: No OFD packet to send [04:36:16]OFD Sender: No OFD packet to send [04:36:21]OFD Sender: No OFD packet to send [04:36: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:46]OFD Sender: No OFD packet to send [04:36:51]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: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: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: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:41]OFD Sender: No OFD packet to send [04:44:46]OFD Sender: No OFD packet to send [04:44:52]OFD Sender: No OFD packet to send [04:44:57]OFD Sender: No OFD packet to send [04:45:02]OFD Sender: No OFD packet to send [04:45:07]OFD Sender: No OFD packet to send [04:45:12]OFD Sender: No OFD packet to send [04:45:17]OFD Sender: No OFD packet to send [04:45:22]OFD Sender: No OFD packet to send [04:45:27]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: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: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: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: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: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]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: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]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: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]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:22]OFD Sender: No OFD packet to send [04:55:27]OFD Sender: No OFD packet to send [04:55:32]OFD Sender: No OFD packet to send [04:55:37]OFD Sender: No OFD packet to send [04:55:42]OFD Sender: No OFD packet to send [04:55:47]OFD Sender: No OFD packet to send [04:55:52]OFD Sender: No OFD packet to send [04:55:57]OFD Sender: No OFD packet to send [04:56:02]OFD Sender: No OFD packet to send [04:56:07]OFD Sender: No OFD packet to send [04:56:12]OFD Sender: No OFD packet to send [04:56:17]OFD Sender: No OFD packet to send [04:56:22]OFD Sender: No OFD packet to send [04:56:27]OFD Sender: No OFD packet to send [04:56:32]OFD Sender: No OFD packet to send [04:56:37]OFD Sender: No OFD packet to send [04:56:42]OFD Sender: No OFD packet to send [04:56:47]OFD Sender: No OFD packet to send [04:56:52]OFD Sender: No OFD packet to send [04:56:57]OFD Sender: No OFD packet to send [04:57:02]OFD Sender: No OFD packet to send [04:57:07]OFD Sender: No OFD packet to send [04:57:12]OFD Sender: No OFD packet to send [04:57:17]OFD Sender: No OFD packet to send [04:57:22]OFD Sender: No OFD packet to send [04:57:27]OFD Sender: No OFD packet to send [04:57:32]OFD Sender: No OFD packet to send [04:57:37]OFD Sender: No OFD packet to send [04:57:42]OFD Sender: No OFD packet to send [04:57:47]OFD Sender: No OFD packet to send [04:57:52]OFD Sender: No OFD packet to send [04:57:57]OFD Sender: No OFD packet to send [04:58:02]OFD Sender: No OFD packet to send [04:58:07]OFD Sender: No OFD packet to send [04:58:12]OFD Sender: No OFD packet to send [04:58:17]OFD Sender: No OFD packet to send [04:58:22]OFD Sender: No OFD packet to send [04:58:27]OFD Sender: No OFD packet to send [04:58:32]OFD Sender: No OFD packet to send [04:58:37]OFD Sender: No OFD packet to send [04:58:42]OFD Sender: No OFD packet to send [04:58:47]OFD Sender: No OFD packet to send [04:58:52]OFD Sender: No OFD packet to send [04:58:57]OFD Sender: No OFD packet to send [04:59:02]OFD Sender: No OFD packet to send [04:59:07]OFD Sender: No OFD packet to send [04:59:12]OFD Sender: No OFD packet to send [04:59:17]OFD Sender: No OFD packet to send [04:59:22]OFD Sender: No OFD packet to send [04:59:27]OFD Sender: No OFD packet to send [04:59:32]OFD Sender: No OFD packet to send [04:59:37]OFD Sender: No OFD packet to send [04:59:42]OFD Sender: No OFD packet to send [04:59:47]OFD Sender: No OFD packet to send [04:59:52]OFD Sender: No OFD packet to send [04:59:57]OFD Sender: No OFD packet to send [05:00:02]OFD Sender: No OFD packet to send [05:00:07]OFD Sender: No OFD packet to send [05:00:12]OFD Sender: No OFD packet to send [05:00:17]OFD Sender: No OFD packet to send [05:00:22]OFD Sender: No OFD packet to send [05:00:27]OFD Sender: No OFD packet to send [05:00:32]OFD Sender: No OFD packet to send [05:00:37]OFD Sender: No OFD packet to send [05:00:42]OFD Sender: No OFD packet to send [05:00:47]OFD Sender: No OFD packet to send [05:00:52]OFD Sender: No OFD packet to send [05:00:57]OFD Sender: No OFD packet to send [05:01:02]OFD Sender: No OFD packet to send [05:01:07]OFD Sender: No OFD packet to send [05:01:12]OFD Sender: No OFD packet to send [05:01:17]OFD Sender: No OFD packet to send [05:01:22]OFD Sender: No OFD packet to send [05:01:27]OFD Sender: No OFD packet to send [05:01:32]OFD Sender: No OFD packet to send [05:01:37]OFD Sender: No OFD packet to send [05:01:42]OFD Sender: No OFD packet to send [05:01:47]OFD Sender: No OFD packet to send [05:01:52]OFD Sender: No OFD packet to send [05:01:57]OFD Sender: No OFD packet to send [05:02:02]OFD Sender: No OFD packet to send [05:02:07]OFD Sender: No OFD packet to send [05:02:12]OFD Sender: No OFD packet to send [05:02:17]OFD Sender: No OFD packet to send [05:02:22]OFD Sender: No OFD packet to send [05:02:27]OFD Sender: No OFD packet to send [05:02:32]OFD Sender: No OFD packet to send [05:02:37]OFD Sender: No OFD packet to send [05:02:42]OFD Sender: No OFD packet to send [05:02:47]OFD Sender: No OFD packet to send [05:02:52]OFD Sender: No OFD packet to send [05:02:57]OFD Sender: No OFD packet to send [05:03:02]OFD Sender: No OFD packet to send [05:03:07]OFD Sender: No OFD packet to send [05:03:12]OFD Sender: No OFD packet to send [05:03:17]OFD Sender: No OFD packet to send [05:03:22]OFD Sender: No OFD packet to send [05:03:27]OFD Sender: No OFD packet to send [05:03:32]OFD Sender: No OFD packet to send [05:03:37]OFD Sender: No OFD packet to send [05:03:42]OFD Sender: No OFD packet to send [05:03:47]OFD Sender: No OFD packet to send [05:03:52]OFD Sender: No OFD packet to send [05:03:57]OFD Sender: No OFD packet to send [05:04:02]OFD Sender: No OFD packet to send [05:04:07]OFD Sender: No OFD packet to send [05:04:12]OFD Sender: No OFD packet to send [05:04:17]OFD Sender: No OFD packet to send [05:04:22]OFD Sender: No OFD packet to send [05:04:27]OFD Sender: No OFD packet to send [05:04:32]OFD Sender: No OFD packet to send [05:04:37]OFD Sender: No OFD packet to send [05:04:42]OFD Sender: No OFD packet to send [05:04:47]OFD Sender: No OFD packet to send [05:04:52]OFD Sender: No OFD packet to send [05:04:57]OFD Sender: No OFD packet to send [05:05:02]OFD Sender: No OFD packet to send [05:05:07]OFD Sender: No OFD packet to send [05:05:12]OFD Sender: No OFD packet to send [05:05:17]OFD Sender: No OFD packet to send [05:05:22]OFD Sender: No OFD packet to send [05:05:27]OFD Sender: No OFD packet to send [05:05:32]OFD Sender: No OFD packet to send [05:05:37]OFD Sender: No OFD packet to send [05:05:42]OFD Sender: No OFD packet to send [05:05:47]OFD Sender: No OFD packet to send [05:05:53]OFD Sender: No OFD packet to send [05:05:58]OFD Sender: No OFD packet to send [05:06:03]OFD Sender: No OFD packet to send [05:06:08]OFD Sender: No OFD packet to send [05:06:13]OFD Sender: No OFD packet to send [05:06:18]OFD Sender: No OFD packet to send [05:06:23]OFD Sender: No OFD packet to send [05:06:28]OFD Sender: No OFD packet to send [05:06:33]OFD Sender: No OFD packet to send [05:06:38]OFD Sender: No OFD packet to send [05:06:43]OFD Sender: No OFD packet to send [05:06:48]OFD Sender: No OFD packet to send [05:06:53]OFD Sender: No OFD packet to send [05:06:58]OFD Sender: No OFD packet to send [05:07:03]OFD Sender: No OFD packet to send [05:07:08]OFD Sender: No OFD packet to send [05:07:13]OFD Sender: No OFD packet to send [05:07:18]OFD Sender: No OFD packet to send [05:07:23]OFD Sender: No OFD packet to send [05:07:28]OFD Sender: No OFD packet to send [05:07:33]OFD Sender: No OFD packet to send [05:07:38]OFD Sender: No OFD packet to send [05:07:43]OFD Sender: No OFD packet to send [05:07:48]OFD Sender: No OFD packet to send [05:07:53]OFD Sender: No OFD packet to send [05:07:58]OFD Sender: No OFD packet to send [05:08:03]OFD Sender: No OFD packet to send [05:08:08]OFD Sender: No OFD packet to send [05:08:13]OFD Sender: No OFD packet to send [05:08:18]OFD Sender: No OFD packet to send [05:08:23]OFD Sender: No OFD packet to send [05:08:28]OFD Sender: No OFD packet to send [05:08:33]OFD Sender: No OFD packet to send [05:08:38]OFD Sender: No OFD packet to send [05:08:43]OFD Sender: No OFD packet to send [05:08:48]OFD Sender: No OFD packet to send [05:08:53]OFD Sender: No OFD packet to send [05:08:58]OFD Sender: No OFD packet to send [05:09:03]OFD Sender: No OFD packet to send [05:09:08]OFD Sender: No OFD packet to send [05:09:13]OFD Sender: No OFD packet to send [05:09:18]OFD Sender: No OFD packet to send [05:09:23]OFD Sender: No OFD packet to send [05:09:28]OFD Sender: No OFD packet to send [05:09:33]OFD Sender: No OFD packet to send [05:09:38]OFD Sender: No OFD packet to send [05:09:43]OFD Sender: No OFD packet to send [05:09:48]OFD Sender: No OFD packet to send [05:09:53]OFD Sender: No OFD packet to send [05:09:58]OFD Sender: No OFD packet to send [05:10:03]OFD Sender: No OFD packet to send [05:10:08]OFD Sender: No OFD packet to send [05:10:13]OFD Sender: No OFD packet to send [05:10:18]OFD Sender: No OFD packet to send [05:10:23]OFD Sender: No OFD packet to send [05:10:28]OFD Sender: No OFD packet to send [05:10:33]OFD Sender: No OFD packet to send [05:10:38]OFD Sender: No OFD packet to send [05:10:43]OFD Sender: No OFD packet to send [05:10:48]OFD Sender: No OFD packet to send [05:10:53]OFD Sender: No OFD packet to send [05:10:58]OFD Sender: No OFD packet to send [05:11:03]OFD Sender: No OFD packet to send [05:11:08]OFD Sender: No OFD packet to send [05:11:13]OFD Sender: No OFD packet to send [05:11:18]OFD Sender: No OFD packet to send [05:11:23]OFD Sender: No OFD packet to send [05:11:28]OFD Sender: No OFD packet to send [05:11:33]OFD Sender: No OFD packet to send [05:11:38]OFD Sender: No OFD packet to send [05:11:43]OFD Sender: No OFD packet to send [05:11:48]OFD Sender: No OFD packet to send [05:11:53]OFD Sender: No OFD packet to send [05:11:58]OFD Sender: No OFD packet to send [05:12:03]OFD Sender: No OFD packet to send [05:12:08]OFD Sender: No OFD packet to send [05:12:13]OFD Sender: No OFD packet to send [05:12:18]OFD Sender: No OFD packet to send [05:12:23]OFD Sender: No OFD packet to send [05:12:28]OFD Sender: No OFD packet to send [05:12:33]OFD Sender: No OFD packet to send [05:12:38]OFD Sender: No OFD packet to send [05:12:43]OFD Sender: No OFD packet to send [05:12:48]OFD Sender: No OFD packet to send [05:12:53]OFD Sender: No OFD packet to send [05:12:58]OFD Sender: No OFD packet to send [05:13:03]OFD Sender: No OFD packet to send [05:13:08]OFD Sender: No OFD packet to send [05:13:13]OFD Sender: No OFD packet to send [05:13:18]OFD Sender: No OFD packet to send [05:13:23]OFD Sender: No OFD packet to send [05:13:28]OFD Sender: No OFD packet to send [05:13:33]OFD Sender: No OFD packet to send [05:13:38]OFD Sender: No OFD packet to send [05:13:43]OFD Sender: No OFD packet to send [05:13:48]OFD Sender: No OFD packet to send [05:13:53]OFD Sender: No OFD packet to send [05:13:58]OFD Sender: No OFD packet to send [05:14:03]OFD Sender: No OFD packet to send [05:14:08]OFD Sender: No OFD packet to send [05:14:13]OFD Sender: No OFD packet to send [05:14:18]OFD Sender: No OFD packet to send [05:14:23]OFD Sender: No OFD packet to send [05:14:28]OFD Sender: No OFD packet to send [05:14:33]OFD Sender: No OFD packet to send [05:14:38]OFD Sender: No OFD packet to send [05:14:43]OFD Sender: No OFD packet to send [05:14:48]OFD Sender: No OFD packet to send [05:14:53]OFD Sender: No OFD packet to send [05:14:58]OFD Sender: No OFD packet to send [05:15:03]OFD Sender: No OFD packet to send [05:15:08]OFD Sender: No OFD packet to send [05:15:13]OFD Sender: No OFD packet to send [05:15:18]OFD Sender: No OFD packet to send [05:15:23]OFD Sender: No OFD packet to send [05:15:28]OFD Sender: No OFD packet to send [05:15:33]OFD Sender: No OFD packet to send [05:15:38]OFD Sender: No OFD packet to send [05:15:43]OFD Sender: No OFD packet to send [05:15:48]OFD Sender: No OFD packet to send [05:15:53]OFD Sender: No OFD packet to send [05:15:58]OFD Sender: No OFD packet to send [05:16:03]OFD Sender: No OFD packet to send [05:16:08]OFD Sender: No OFD packet to send [05:16:13]OFD Sender: No OFD packet to send [05:16:18]OFD Sender: No OFD packet to send [05:16:23]OFD Sender: No OFD packet to send [05:16:28]OFD Sender: No OFD packet to send [05:16:33]OFD Sender: No OFD packet to send [05:16:38]OFD Sender: No OFD packet to send [05:16:43]OFD Sender: No OFD packet to send [05:16:48]OFD Sender: No OFD packet to send [05:16:53]OFD Sender: No OFD packet to send [05:16:58]OFD Sender: No OFD packet to send [05:17:03]OFD Sender: No OFD packet to send [05:17:08]OFD Sender: No OFD packet to send [05:17:13]OFD Sender: No OFD packet to send [05:17:18]OFD Sender: No OFD packet to send [05:17:23]OFD Sender: No OFD packet to send [05:17:28]OFD Sender: No OFD packet to send [05:17:33]OFD Sender: No OFD packet to send [05:17:38]OFD Sender: No OFD packet to send [05:17:43]OFD Sender: No OFD packet to send [05:17:48]OFD Sender: No OFD packet to send [05:17:53]OFD Sender: No OFD packet to send [05:17:58]OFD Sender: No OFD packet to send [05:18:03]OFD Sender: No OFD packet to send [05:18:08]OFD Sender: No OFD packet to send [05:18:13]OFD Sender: No OFD packet to send [05:18:18]OFD Sender: No OFD packet to send [05:18:23]OFD Sender: No OFD packet to send [05:18:28]OFD Sender: No OFD packet to send [05:18:33]OFD Sender: No OFD packet to send [05:18:38]OFD Sender: No OFD packet to send [05:18:43]OFD Sender: No OFD packet to send [05:18:48]OFD Sender: No OFD packet to send [05:18:53]OFD Sender: No OFD packet to send [05:18:58]OFD Sender: No OFD packet to send [05:19:03]OFD Sender: No OFD packet to send [05:19:08]OFD Sender: No OFD packet to send [05:19:13]OFD Sender: No OFD packet to send [05:19:18]OFD Sender: No OFD packet to send [05:19:23]OFD Sender: No OFD packet to send [05:19:28]OFD Sender: No OFD packet to send [05:19:33]OFD Sender: No OFD packet to send [05:19:38]OFD Sender: No OFD packet to send [05:19:43]OFD Sender: No OFD packet to send [05:19:48]OFD Sender: No OFD packet to send [05:19:53]OFD Sender: No OFD packet to send [05:19:58]OFD Sender: No OFD packet to send [05:20:03]OFD Sender: No OFD packet to send [05:20:08]OFD Sender: No OFD packet to send [05:20:13]OFD Sender: No OFD packet to send [05:20:18]OFD Sender: No OFD packet to send [05:20:23]OFD Sender: No OFD packet to send [05:20:28]OFD Sender: No OFD packet to send [05:20:33]OFD Sender: No OFD packet to send [05:20:38]OFD Sender: No OFD packet to send [05:20:43]OFD Sender: No OFD packet to send [05:20:48]OFD Sender: No OFD packet to send [05:20:53]OFD Sender: No OFD packet to send [05:20:58]OFD Sender: No OFD packet to send [05:21:03]OFD Sender: No OFD packet to send [05:21:08]OFD Sender: No OFD packet to send [05:21:13]OFD Sender: No OFD packet to send [05:21:18]OFD Sender: No OFD packet to send [05:21:23]OFD Sender: No OFD packet to send [05:21:28]OFD Sender: No OFD packet to send [05:21:33]OFD Sender: No OFD packet to send [05:21:38]OFD Sender: No OFD packet to send [05:21:43]OFD Sender: No OFD packet to send [05:21:48]OFD Sender: No OFD packet to send [05:21:53]OFD Sender: No OFD packet to send [05:21:58]OFD Sender: No OFD packet to send [05:22:03]OFD Sender: No OFD packet to send [05:22:08]OFD Sender: No OFD packet to send [05:22:13]OFD Sender: No OFD packet to send [05:22:18]OFD Sender: No OFD packet to send [05:22:23]OFD Sender: No OFD packet to send [05:22:28]OFD Sender: No OFD packet to send [05:22:33]OFD Sender: No OFD packet to send [05:22:38]OFD Sender: No OFD packet to send [05:22:43]OFD Sender: No OFD packet to send [05:22:48]OFD Sender: No OFD packet to send [05:22:53]OFD Sender: No OFD packet to send [05:22:58]OFD Sender: No OFD packet to send [05:23:03]OFD Sender: No OFD packet to send [05:23:08]OFD Sender: No OFD packet to send [05:23:13]OFD Sender: No OFD packet to send [05:23:18]OFD Sender: No OFD packet to send [05:23:23]OFD Sender: No OFD packet to send [05:23:28]OFD Sender: No OFD packet to send [05:23:33]OFD Sender: No OFD packet to send [05:23:38]OFD Sender: No OFD packet to send [05:23:43]OFD Sender: No OFD packet to send [05:23:48]OFD Sender: No OFD packet to send [05:23:53]OFD Sender: No OFD packet to send [05:23:58]OFD Sender: No OFD packet to send [05:24:03]OFD Sender: No OFD packet to send [05:24:08]OFD Sender: No OFD packet to send [05:24:13]OFD Sender: No OFD packet to send [05:24:18]OFD Sender: No OFD packet to send [05:24:23]OFD Sender: No OFD packet to send [05:24:28]OFD Sender: No OFD packet to send [05:24:33]OFD Sender: No OFD packet to send [05:24:38]OFD Sender: No OFD packet to send [05:24:43]OFD Sender: No OFD packet to send [05:24:48]OFD Sender: No OFD packet to send [05:24:53]OFD Sender: No OFD packet to send [05:24:58]OFD Sender: No OFD packet to send [05:25:03]OFD Sender: No OFD packet to send [05:25:08]OFD Sender: No OFD packet to send [05:25:13]OFD Sender: No OFD packet to send [05:25:18]OFD Sender: No OFD packet to send [05:25:23]OFD Sender: No OFD packet to send [05:25:28]OFD Sender: No OFD packet to send [05:25:33]OFD Sender: No OFD packet to send [05:25:38]OFD Sender: No OFD packet to send [05:25:43]OFD Sender: No OFD packet to send [05:25:48]OFD Sender: No OFD packet to send [05:25:53]OFD Sender: No OFD packet to send [05:25:58]OFD Sender: No OFD packet to send [05:26:03]OFD Sender: No OFD packet to send [05:26:08]OFD Sender: No OFD packet to send [05:26:13]OFD Sender: No OFD packet to send [05:26:18]OFD Sender: No OFD packet to send [05:26:23]OFD Sender: No OFD packet to send [05:26:28]OFD Sender: No OFD packet to send [05:26:33]OFD Sender: No OFD packet to send [05:26:38]OFD Sender: No OFD packet to send [05:26:43]OFD Sender: No OFD packet to send [05:26:48]OFD Sender: No OFD packet to send [05:26:53]OFD Sender: No OFD packet to send [05:26:58]OFD Sender: No OFD packet to send [05:27:03]OFD Sender: No OFD packet to send [05:27:09]OFD Sender: No OFD packet to send [05:27:14]OFD Sender: No OFD packet to send [05:27:19]OFD Sender: No OFD packet to send [05:27:24]OFD Sender: No OFD packet to send [05:27:29]OFD Sender: No OFD packet to send [05:27:34]OFD Sender: No OFD packet to send [05:27:39]OFD Sender: No OFD packet to send [05:27:44]OFD Sender: No OFD packet to send [05:27:49]OFD Sender: No OFD packet to send [05:27:54]OFD Sender: No OFD packet to send [05:27:59]OFD Sender: No OFD packet to send [05:28:04]OFD Sender: No OFD packet to send [05:28:09]OFD Sender: No OFD packet to send [05:28:14]OFD Sender: No OFD packet to send [05:28:19]OFD Sender: No OFD packet to send [05:28:24]OFD Sender: No OFD packet to send [05:28:29]OFD Sender: No OFD packet to send [05:28:34]OFD Sender: No OFD packet to send [05:28:39]OFD Sender: No OFD packet to send [05:28:44]OFD Sender: No OFD packet to send [05:28:49]OFD Sender: No OFD packet to send [05:28:54]OFD Sender: No OFD packet to send [05:28:59]OFD Sender: No OFD packet to send [05:29:04]OFD Sender: No OFD packet to send [05:29:09]OFD Sender: No OFD packet to send [05:29:14]OFD Sender: No OFD packet to send [05:29:19]OFD Sender: No OFD packet to send [05:29:24]OFD Sender: No OFD packet to send [05:29:29]OFD Sender: No OFD packet to send [05:29:34]OFD Sender: No OFD packet to send [05:29:39]OFD Sender: No OFD packet to send [05:29:44]OFD Sender: No OFD packet to send [05:29:49]OFD Sender: No OFD packet to send [05:29:54]OFD Sender: No OFD packet to send [05:29:59]OFD Sender: No OFD packet to send [05:30:04]OFD Sender: No OFD packet to send [05:30:09]OFD Sender: No OFD packet to send [05:30:14]OFD Sender: No OFD packet to send [05:30:19]OFD Sender: No OFD packet to send [05:30:24]OFD Sender: No OFD packet to send [05:30:29]OFD Sender: No OFD packet to send [05:30:34]OFD Sender: No OFD packet to send [05:30:39]OFD Sender: No OFD packet to send [05:30:44]OFD Sender: No OFD packet to send [05:30:49]OFD Sender: No OFD packet to send [05:30:54]OFD Sender: No OFD packet to send [05:30:59]OFD Sender: No OFD packet to send [05:31:04]OFD Sender: No OFD packet to send [05:31:09]OFD Sender: No OFD packet to send [05:31:14]OFD Sender: No OFD packet to send [05:31:19]OFD Sender: No OFD packet to send [05:31:24]OFD Sender: No OFD packet to send [05:31:29]OFD Sender: No OFD packet to send [05:31:34]OFD Sender: No OFD packet to send [05:31:39]OFD Sender: No OFD packet to send [05:31:44]OFD Sender: No OFD packet to send [05:31:49]OFD Sender: No OFD packet to send [05:31:54]OFD Sender: No OFD packet to send [05:31:59]OFD Sender: No OFD packet to send [05:32:04]OFD Sender: No OFD packet to send [05:32:09]OFD Sender: No OFD packet to send [05:32:14]OFD Sender: No OFD packet to send [05:32:19]OFD Sender: No OFD packet to send [05:32:24]OFD Sender: No OFD packet to send [05:32:29]OFD Sender: No OFD packet to send [05:32:34]OFD Sender: No OFD packet to send [05:32:39]OFD Sender: No OFD packet to send [05:32:44]OFD Sender: No OFD packet to send [05:32:49]OFD Sender: No OFD packet to send [05:32:54]OFD Sender: No OFD packet to send [05:32:59]OFD Sender: No OFD packet to send [05:33:04]OFD Sender: No OFD packet to send [05:33:09]OFD Sender: No OFD packet to send [05:33:14]OFD Sender: No OFD packet to send [05:33:19]OFD Sender: No OFD packet to send [05:33:24]OFD Sender: No OFD packet to send [05:33:29]OFD Sender: No OFD packet to send [05:33:34]OFD Sender: No OFD packet to send [05:33:39]OFD Sender: No OFD packet to send [05:33:44]OFD Sender: No OFD packet to send [05:33:49]OFD Sender: No OFD packet to send [05:33:54]OFD Sender: No OFD packet to send [05:33:59]OFD Sender: No OFD packet to send [05:34:04]OFD Sender: No OFD packet to send [05:34:09]OFD Sender: No OFD packet to send [05:34:14]OFD Sender: No OFD packet to send [05:34:19]OFD Sender: No OFD packet to send [05:34:24]OFD Sender: No OFD packet to send [05:34:29]OFD Sender: No OFD packet to send [05:34:34]OFD Sender: No OFD packet to send [05:34:39]OFD Sender: No OFD packet to send [05:34:44]OFD Sender: No OFD packet to send [05:34:49]OFD Sender: No OFD packet to send [05:34:54]OFD Sender: No OFD packet to send [05:34:59]OFD Sender: No OFD packet to send [05:35:04]OFD Sender: No OFD packet to send [05:35:09]OFD Sender: No OFD packet to send [05:35:14]OFD Sender: No OFD packet to send [05:35:19]OFD Sender: No OFD packet to send [05:35:24]OFD Sender: No OFD packet to send [05:35:29]OFD Sender: No OFD packet to send [05:35:34]OFD Sender: No OFD packet to send [05:35:39]OFD Sender: No OFD packet to send [05:35:44]OFD Sender: No OFD packet to send [05:35:49]OFD Sender: No OFD packet to send [05:35:54]OFD Sender: No OFD packet to send [05:35:59]OFD Sender: No OFD packet to send [05:36:04]OFD Sender: No OFD packet to send [05:36:09]OFD Sender: No OFD packet to send [05:36:14]OFD Sender: No OFD packet to send [05:36:19]OFD Sender: No OFD packet to send [05:36:24]OFD Sender: No OFD packet to send [05:36:29]OFD Sender: No OFD packet to send [05:36:34]OFD Sender: No OFD packet to send [05:36:39]OFD Sender: No OFD packet to send [05:36:44]OFD Sender: No OFD packet to send [05:36:49]OFD Sender: No OFD packet to send [05:36:54]OFD Sender: No OFD packet to send [05:36:59]OFD Sender: No OFD packet to send [05:37:04]OFD Sender: No OFD packet to send [05:37:09]OFD Sender: No OFD packet to send [05:37:14]OFD Sender: No OFD packet to send [05:37:19]OFD Sender: No OFD packet to send [05:37:24]OFD Sender: No OFD packet to send [05:37:29]OFD Sender: No OFD packet to send [05:37:34]OFD Sender: No OFD packet to send [05:37:39]OFD Sender: No OFD packet to send [05:37:44]OFD Sender: No OFD packet to send [05:37:49]OFD Sender: No OFD packet to send [05:37:54]OFD Sender: No OFD packet to send [05:37:59]OFD Sender: No OFD packet to send [05:38:04]OFD Sender: No OFD packet to send [05:38:09]OFD Sender: No OFD packet to send [05:38:14]OFD Sender: No OFD packet to send [05:38:19]OFD Sender: No OFD packet to send [05:38:24]OFD Sender: No OFD packet to send [05:38:29]OFD Sender: No OFD packet to send [05:38:34]OFD Sender: No OFD packet to send [05:38:39]OFD Sender: No OFD packet to send [05:38:44]OFD Sender: No OFD packet to send [05:38:49]OFD Sender: No OFD packet to send [05:38:54]OFD Sender: No OFD packet to send [05:38:59]OFD Sender: No OFD packet to send [05:39:04]OFD Sender: No OFD packet to send [05:39:09]OFD Sender: No OFD packet to send [05:39:14]OFD Sender: No OFD packet to send [05:39:19]OFD Sender: No OFD packet to send [05:39:24]OFD Sender: No OFD packet to send [05:39:29]OFD Sender: No OFD packet to send [05:39:34]OFD Sender: No OFD packet to send [05:39:39]OFD Sender: No OFD packet to send [05:39:44]OFD Sender: No OFD packet to send [05:39:49]OFD Sender: No OFD packet to send [05:39:54]OFD Sender: No OFD packet to send [05:39:59]OFD Sender: No OFD packet to send [05:40:04]OFD Sender: No OFD packet to send [05:40:09]OFD Sender: No OFD packet to send [05:40:14]OFD Sender: No OFD packet to send [05:40:19]OFD Sender: No OFD packet to send [05:40:24]OFD Sender: No OFD packet to send [05:40:29]OFD Sender: No OFD packet to send [05:40:34]OFD Sender: No OFD packet to send [05:40:39]OFD Sender: No OFD packet to send [05:40:44]OFD Sender: No OFD packet to send [05:40:49]OFD Sender: No OFD packet to send [05:40:54]OFD Sender: No OFD packet to send [05:40:59]OFD Sender: No OFD packet to send [05:41:04]OFD Sender: No OFD packet to send [05:41:09]OFD Sender: No OFD packet to send [05:41:14]OFD Sender: No OFD packet to send [05:41:19]OFD Sender: No OFD packet to send [05:41:24]OFD Sender: No OFD packet to send [05:41:29]OFD Sender: No OFD packet to send [05:41:34]OFD Sender: No OFD packet to send [05:41:39]OFD Sender: No OFD packet to send [05:41:44]OFD Sender: No OFD packet to send [05:41:49]OFD Sender: No OFD packet to send [05:41:54]OFD Sender: No OFD packet to send [05:41:59]OFD Sender: No OFD packet to send [05:42:04]OFD Sender: No OFD packet to send [05:42:09]OFD Sender: No OFD packet to send [05:42:14]OFD Sender: No OFD packet to send [05:42:19]OFD Sender: No OFD packet to send [05:42:24]OFD Sender: No OFD packet to send [05:42:29]OFD Sender: No OFD packet to send [05:42:34]OFD Sender: No OFD packet to send [05:42:39]OFD Sender: No OFD packet to send [05:42:44]OFD Sender: No OFD packet to send [05:42:49]OFD Sender: No OFD packet to send [05:42:54]OFD Sender: No OFD packet to send [05:42:59]OFD Sender: No OFD packet to send [05:43:04]OFD Sender: No OFD packet to send [05:43:09]OFD Sender: No OFD packet to send [05:43:14]OFD Sender: No OFD packet to send [05:43:19]OFD Sender: No OFD packet to send [05:43:24]OFD Sender: No OFD packet to send [05:43:29]OFD Sender: No OFD packet to send [05:43:34]OFD Sender: No OFD packet to send [05:43:39]OFD Sender: No OFD packet to send [05:43:44]OFD Sender: No OFD packet to send [05:43:49]OFD Sender: No OFD packet to send [05:43:54]OFD Sender: No OFD packet to send [05:43:59]OFD Sender: No OFD packet to send [05:44:04]OFD Sender: No OFD packet to send [05:44:09]OFD Sender: No OFD packet to send [05:44:14]OFD Sender: No OFD packet to send [05:44:19]OFD Sender: No OFD packet to send [05:44:24]OFD Sender: No OFD packet to send [05:44:29]OFD Sender: No OFD packet to send [05:44:34]OFD Sender: No OFD packet to send [05:44:39]OFD Sender: No OFD packet to send [05:44:44]OFD Sender: No OFD packet to send [05:44:49]OFD Sender: No OFD packet to send [05:44:54]OFD Sender: No OFD packet to send [05:44:59]OFD Sender: No OFD packet to send [05:45:04]OFD Sender: No OFD packet to send [05:45:09]OFD Sender: No OFD packet to send [05:45:14]OFD Sender: No OFD packet to send [05:45:19]OFD Sender: No OFD packet to send [05:45:24]OFD Sender: No OFD packet to send [05:45:29]OFD Sender: No OFD packet to send [05:45:34]OFD Sender: No OFD packet to send [05:45:39]OFD Sender: No OFD packet to send [05:45:44]OFD Sender: No OFD packet to send [05:45:49]OFD Sender: No OFD packet to send [05:45:54]OFD Sender: No OFD packet to send [05:45:59]OFD Sender: No OFD packet to send [05:46:04]OFD Sender: No OFD packet to send [05:46:09]OFD Sender: No OFD packet to send [05:46:14]OFD Sender: No OFD packet to send [05:46:19]OFD Sender: No OFD packet to send [05:46:24]OFD Sender: No OFD packet to send [05:46:29]OFD Sender: No OFD packet to send [05:46:34]OFD Sender: No OFD packet to send [05:46:39]OFD Sender: No OFD packet to send [05:46:44]OFD Sender: No OFD packet to send [05:46:49]OFD Sender: No OFD packet to send [05:46:54]OFD Sender: No OFD packet to send [05:46:59]OFD Sender: No OFD packet to send [05:47:04]OFD Sender: No OFD packet to send [05:47:09]OFD Sender: No OFD packet to send [05:47:14]OFD Sender: No OFD packet to send [05:47:19]OFD Sender: No OFD packet to send [05:47:24]OFD Sender: No OFD packet to send [05:47:29]OFD Sender: No OFD packet to send [05:47:34]OFD Sender: No OFD packet to send [05:47:39]OFD Sender: No OFD packet to send [05:47:44]OFD Sender: No OFD packet to send [05:47:49]OFD Sender: No OFD packet to send [05:47:54]OFD Sender: No OFD packet to send [05:47:59]OFD Sender: No OFD packet to send [05:48:04]OFD Sender: No OFD packet to send [05:48:09]OFD Sender: No OFD packet to send [05:48:14]OFD Sender: No OFD packet to send [05:48:19]OFD Sender: No OFD packet to send [05:48:25]OFD Sender: No OFD packet to send [05:48:30]OFD Sender: No OFD packet to send [05:48:35]OFD Sender: No OFD packet to send [05:48:40]OFD Sender: No OFD packet to send [05:48:45]OFD Sender: No OFD packet to send [05:48:50]OFD Sender: No OFD packet to send [05:48:55]OFD Sender: No OFD packet to send [05:49:00]OFD Sender: No OFD packet to send [05:49:05]OFD Sender: No OFD packet to send [05:49:10]OFD Sender: No OFD packet to send [05:49:15]OFD Sender: No OFD packet to send [05:49:20]OFD Sender: No OFD packet to send [05:49:25]OFD Sender: No OFD packet to send [05:49:30]OFD Sender: No OFD packet to send [05:49:35]OFD Sender: No OFD packet to send [05:49:40]OFD Sender: No OFD packet to send [05:49:45]OFD Sender: No OFD packet to send [05:49:50]OFD Sender: No OFD packet to send [05:49:55]OFD Sender: No OFD packet to send [05:50:00]OFD Sender: No OFD packet to send [05:50:05]OFD Sender: No OFD packet to send [05:50:10]OFD Sender: No OFD packet to send [05:50:15]OFD Sender: No OFD packet to send [05:50:20]OFD Sender: No OFD packet to send [05:50:25]OFD Sender: No OFD packet to send [05:50:30]OFD Sender: No OFD packet to send [05:50:35]OFD Sender: No OFD packet to send [05:50:40]OFD Sender: No OFD packet to send [05:50:45]OFD Sender: No OFD packet to send [05:50:50]OFD Sender: No OFD packet to send [05:50:55]OFD Sender: No OFD packet to send [05:51:00]OFD Sender: No OFD packet to send [05:51:05]OFD Sender: No OFD packet to send [05:51:10]OFD Sender: No OFD packet to send [05:51:15]OFD Sender: No OFD packet to send [05:51:20]OFD Sender: No OFD packet to send [05:51:25]OFD Sender: No OFD packet to send [05:51:30]OFD Sender: No OFD packet to send [05:51:35]OFD Sender: No OFD packet to send [05:51:40]OFD Sender: No OFD packet to send [05:51:45]OFD Sender: No OFD packet to send [05:51:50]OFD Sender: No OFD packet to send [05:51:55]OFD Sender: No OFD packet to send [05:52:00]OFD Sender: No OFD packet to send [05:52:05]OFD Sender: No OFD packet to send [05:52:10]OFD Sender: No OFD packet to send [05:52:15]OFD Sender: No OFD packet to send [05:52:20]OFD Sender: No OFD packet to send [05:52:25]OFD Sender: No OFD packet to send [05:52:30]OFD Sender: No OFD packet to send [05:52:35]OFD Sender: No OFD packet to send [05:52:40]OFD Sender: No OFD packet to send [05:52:45]OFD Sender: No OFD packet to send [05:52:50]OFD Sender: No OFD packet to send [05:52:55]OFD Sender: No OFD packet to send [05:53:00]OFD Sender: No OFD packet to send [05:53:05]OFD Sender: No OFD packet to send [05:53:10]OFD Sender: No OFD packet to send [05:53:15]OFD Sender: No OFD packet to send [05:53:20]OFD Sender: No OFD packet to send [05:53:25]OFD Sender: No OFD packet to send [05:53:30]OFD Sender: No OFD packet to send [05:53:35]OFD Sender: No OFD packet to send [05:53:40]OFD Sender: No OFD packet to send [05:53:45]OFD Sender: No OFD packet to send [05:53:50]OFD Sender: No OFD packet to send [05:53:55]OFD Sender: No OFD packet to send [05:54:00]OFD Sender: No OFD packet to send [05:54:05]OFD Sender: No OFD packet to send [05:54:10]OFD Sender: No OFD packet to send [05:54:15]OFD Sender: No OFD packet to send [05:54:20]OFD Sender: No OFD packet to send [05:54:25]OFD Sender: No OFD packet to send [05:54:30]OFD Sender: No OFD packet to send [05:54:35]OFD Sender: No OFD packet to send [05:54:40]OFD Sender: No OFD packet to send [05:54:45]OFD Sender: No OFD packet to send [05:54:50]OFD Sender: No OFD packet to send [05:54:55]OFD Sender: No OFD packet to send [05:55:00]OFD Sender: No OFD packet to send [05:55:05]OFD Sender: No OFD packet to send [05:55:10]OFD Sender: No OFD packet to send [05:55:15]OFD Sender: No OFD packet to send [05:55:20]OFD Sender: No OFD packet to send [05:55:25]OFD Sender: No OFD packet to send [05:55:30]OFD Sender: No OFD packet to send [05:55:35]OFD Sender: No OFD packet to send [05:55:40]OFD Sender: No OFD packet to send [05:55:45]OFD Sender: No OFD packet to send [05:55:50]OFD Sender: No OFD packet to send [05:55:55]OFD Sender: No OFD packet to send [05:56:00]OFD Sender: No OFD packet to send [05:56:05]OFD Sender: No OFD packet to send [05:56:10]OFD Sender: No OFD packet to send [05:56:15]OFD Sender: No OFD packet to send [05:56:20]OFD Sender: No OFD packet to send [05:56:25]OFD Sender: No OFD packet to send [05:56:30]OFD Sender: No OFD packet to send [05:56:35]OFD Sender: No OFD packet to send [05:56:40]OFD Sender: No OFD packet to send [05:56:45]OFD Sender: No OFD packet to send [05:56:50]OFD Sender: No OFD packet to send [05:56:55]OFD Sender: No OFD packet to send [05:57:00]OFD Sender: No OFD packet to send [05:57:05]OFD Sender: No OFD packet to send [05:57:10]OFD Sender: No OFD packet to send [05:57:15]OFD Sender: No OFD packet to send [05:57:20]OFD Sender: No OFD packet to send [05:57:25]OFD Sender: No OFD packet to send [05:57:30]OFD Sender: No OFD packet to send [05:57:35]OFD Sender: No OFD packet to send [05:57:40]OFD Sender: No OFD packet to send [05:57:45]OFD Sender: No OFD packet to send [05:57:50]OFD Sender: No OFD packet to send [05:57:55]OFD Sender: No OFD packet to send [05:58:00]OFD Sender: No OFD packet to send [05:58:05]OFD Sender: No OFD packet to send [05:58:10]OFD Sender: No OFD packet to send [05:58:15]OFD Sender: No OFD packet to send [05:58:20]OFD Sender: No OFD packet to send [05:58:25]OFD Sender: No OFD packet to send [05:58:30]OFD Sender: No OFD packet to send [05:58:35]OFD Sender: No OFD packet to send [05:58:40]OFD Sender: No OFD packet to send [05:58:45]OFD Sender: No OFD packet to send [05:58:50]OFD Sender: No OFD packet to send [05:58:55]OFD Sender: No OFD packet to send [05:59:00]OFD Sender: No OFD packet to send [05:59:05]OFD Sender: No OFD packet to send [05:59:10]OFD Sender: No OFD packet to send [05:59:15]OFD Sender: No OFD packet to send [05:59:20]OFD Sender: No OFD packet to send [05:59:25]OFD Sender: No OFD packet to send [05:59:30]OFD Sender: No OFD packet to send [05:59:35]OFD Sender: No OFD packet to send [05:59:40]OFD Sender: No OFD packet to send [05:59:45]OFD Sender: No OFD packet to send [05:59:50]OFD Sender: No OFD packet to send [05:59:55]OFD Sender: No OFD packet to send [06:00:00]OFD Sender: No OFD packet to send [06:00:05]OFD Sender: No OFD packet to send [06:00:10]OFD Sender: No OFD packet to send [06:00:15]OFD Sender: No OFD packet to send [06:00:20]OFD Sender: No OFD packet to send [06:00:25]OFD Sender: No OFD packet to send [06:00:30]OFD Sender: No OFD packet to send [06:00:35]OFD Sender: No OFD packet to send [06:00:40]OFD Sender: No OFD packet to send [06:00:45]OFD Sender: No OFD packet to send [06:00:50]OFD Sender: No OFD packet to send [06:00:55]OFD Sender: No OFD packet to send [06:01:00]OFD Sender: No OFD packet to send [06:01:05]OFD Sender: No OFD packet to send [06:01:10]OFD Sender: No OFD packet to send [06:01:15]OFD Sender: No OFD packet to send [06:01:20]OFD Sender: No OFD packet to send [06:01:25]OFD Sender: No OFD packet to send [06:01:30]OFD Sender: No OFD packet to send [06:01:35]OFD Sender: No OFD packet to send [06:01:40]OFD Sender: No OFD packet to send [06:01:45]OFD Sender: No OFD packet to send [06:01:50]OFD Sender: No OFD packet to send [06:01:55]OFD Sender: No OFD packet to send [06:02:00]OFD Sender: No OFD packet to send [06:02:05]OFD Sender: No OFD packet to send [06:02:10]OFD Sender: No OFD packet to send [06:02:15]OFD Sender: No OFD packet to send [06:02:20]OFD Sender: No OFD packet to send [06:02:25]OFD Sender: No OFD packet to send [06:02:30]OFD Sender: No OFD packet to send [06:02:35]OFD Sender: No OFD packet to send [06:02:40]OFD Sender: No OFD packet to send [06:02:45]OFD Sender: No OFD packet to send [06:02:50]OFD Sender: No OFD packet to send [06:02:55]OFD Sender: No OFD packet to send [06:03:00]OFD Sender: No OFD packet to send [06:03:05]OFD Sender: No OFD packet to send [06:03:10]OFD Sender: No OFD packet to send [06:03:15]OFD Sender: No OFD packet to send [06:03:20]OFD Sender: No OFD packet to send [06:03:25]OFD Sender: No OFD packet to send [06:03:30]OFD Sender: No OFD packet to send [06:03:35]OFD Sender: No OFD packet to send [06:03:40]OFD Sender: No OFD packet to send [06:03:45]OFD Sender: No OFD packet to send [06:03:50]OFD Sender: No OFD packet to send [06:03:55]OFD Sender: No OFD packet to send [06:04:00]OFD Sender: No OFD packet to send [06:04:05]OFD Sender: No OFD packet to send [06:04:10]OFD Sender: No OFD packet to send [06:04:15]OFD Sender: No OFD packet to send [06:04:20]OFD Sender: No OFD packet to send [06:04:25]OFD Sender: No OFD packet to send [06:04:30]OFD Sender: No OFD packet to send [06:04:35]OFD Sender: No OFD packet to send [06:04:40]OFD Sender: No OFD packet to send [06:04:45]OFD Sender: No OFD packet to send [06:04:50]OFD Sender: No OFD packet to send [06:04:55]OFD Sender: No OFD packet to send [06:05:00]OFD Sender: No OFD packet to send [06:05:05]OFD Sender: No OFD packet to send [06:05:10]OFD Sender: No OFD packet to send [06:05:15]OFD Sender: No OFD packet to send [06:05:20]OFD Sender: No OFD packet to send [06:05:25]OFD Sender: No OFD packet to send [06:05:30]OFD Sender: No OFD packet to send [06:05:35]OFD Sender: No OFD packet to send [06:05:40]OFD Sender: No OFD packet to send [06:05:45]OFD Sender: No OFD packet to send [06:05:50]OFD Sender: No OFD packet to send [06:05:55]OFD Sender: No OFD packet to send [06:06:00]OFD Sender: No OFD packet to send [06:06:05]OFD Sender: No OFD packet to send [06:06:10]OFD Sender: No OFD packet to send [06:06:15]OFD Sender: No OFD packet to send [06:06:20]OFD Sender: No OFD packet to send [06:06:25]OFD Sender: No OFD packet to send [06:06:30]OFD Sender: No OFD packet to send [06:06:35]OFD Sender: No OFD packet to send [06:06:40]OFD Sender: No OFD packet to send [06:06:45]OFD Sender: No OFD packet to send [06:06:50]OFD Sender: No OFD packet to send [06:06:55]OFD Sender: No OFD packet to send [06:07:00]OFD Sender: No OFD packet to send [06:07:05]OFD Sender: No OFD packet to send [06:07:10]OFD Sender: No OFD packet to send [06:07:15]OFD Sender: No OFD packet to send [06:07:20]OFD Sender: No OFD packet to send [06:07:25]OFD Sender: No OFD packet to send [06:07:30]OFD Sender: No OFD packet to send [06:07:35]OFD Sender: No OFD packet to send [06:07:40]OFD Sender: No OFD packet to send [06:07:45]OFD Sender: No OFD packet to send [06:07:50]OFD Sender: No OFD packet to send [06:07:55]OFD Sender: No OFD packet to send [06:08:00]OFD Sender: No OFD packet to send [06:08:05]OFD Sender: No OFD packet to send [06:08:10]OFD Sender: No OFD packet to send [06:08:15]OFD Sender: No OFD packet to send [06:08:20]OFD Sender: No OFD packet to send [06:08:25]OFD Sender: No OFD packet to send [06:08:30]OFD Sender: No OFD packet to send [06:08:35]OFD Sender: No OFD packet to send [06:08:40]OFD Sender: No OFD packet to send [06:08:45]OFD Sender: No OFD packet to send [06:08:50]OFD Sender: No OFD packet to send [06:08:55]OFD Sender: No OFD packet to send [06:09:00]OFD Sender: No OFD packet to send [06:09:05]OFD Sender: No OFD packet to send [06:09:10]OFD Sender: No OFD packet to send [06:09:15]OFD Sender: No OFD packet to send [06:09:20]OFD Sender: No OFD packet to send [06:09:25]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]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:46]OFD Sender: No OFD packet to send [06:11:51]OFD Sender: No OFD packet to send [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: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: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:11]OFD Sender: No OFD packet to send [06:13:16]OFD Sender: No OFD packet to send [06:13:21]OFD Sender: No OFD packet to send [06:13:26]OFD Sender: No OFD packet to send [06:13:31]OFD Sender: No OFD packet to send [06:13:36]OFD Sender: No OFD packet to send [06:13:41]OFD Sender: No OFD packet to send [06:13:46]OFD Sender: No OFD packet to send [06:13:51]OFD Sender: No OFD packet to send [06:13:56]OFD Sender: No OFD packet to send [06:14:01]OFD Sender: No OFD packet to send [06:14:06]OFD Sender: No OFD packet to send [06:14:11]OFD Sender: No OFD packet to send [06:14:16]OFD Sender: No OFD packet to send [06:14:21]OFD Sender: No OFD packet to send [06:14:26]OFD Sender: No OFD packet to send [06:14:31]OFD Sender: No OFD packet to send [06:14:36]OFD Sender: No OFD packet to send [06:14:41]OFD Sender: No OFD packet to send [06:14:46]OFD Sender: No OFD packet to send [06:14:51]OFD Sender: No OFD packet to send [06:14:56]OFD Sender: No OFD packet to send [06:15:01]OFD Sender: No OFD packet to send [06:15:06]OFD Sender: No OFD packet to send [06:15:11]OFD Sender: No OFD packet to send [06:15:16]OFD Sender: No OFD packet to send [06:15:21]OFD Sender: No OFD packet to send [06:15:26]OFD Sender: No OFD packet to send [06:15:31]OFD Sender: No OFD packet to send [06:15:36]OFD Sender: No OFD packet to send [06:15:41]OFD Sender: No OFD packet to send [06:15:46]OFD Sender: No OFD packet to send [06:15:51]OFD Sender: No OFD packet to send [06:15:56]OFD Sender: No OFD packet to send [06:16:01]OFD Sender: No OFD packet to send [06:16:06]OFD Sender: No OFD packet to send [06:16:11]OFD Sender: No OFD packet to send [06:16:16]OFD Sender: No OFD packet to send [06:16:21]OFD Sender: No OFD packet to send [06:16:26]OFD Sender: No OFD packet to send [06:16:31]OFD Sender: No OFD packet to send [06:16:36]OFD Sender: No OFD packet to send [06:16:41]OFD Sender: No OFD packet to send [06:16:46]OFD Sender: No OFD packet to send [06:16:51]OFD Sender: No OFD packet to send [06:16:56]OFD Sender: No OFD packet to send [06:17:01]OFD Sender: No OFD packet to send [06:17:06]OFD Sender: No OFD packet to send [06:17:11]OFD Sender: No OFD packet to send [06:17:16]OFD Sender: No OFD packet to send [06:17:21]OFD Sender: No OFD packet to send [06:17:26]OFD Sender: No OFD packet to send [06:17:31]OFD Sender: No OFD packet to send [06:17:36]OFD Sender: No OFD packet to send [06:17:41]OFD Sender: No OFD packet to send [06:17:46]OFD Sender: No OFD packet to send [06:17:51]OFD Sender: No OFD packet to send [06:17:56]OFD Sender: No OFD packet to send [06:18:01]OFD Sender: No OFD packet to send [06:18:06]OFD Sender: No OFD packet to send [06:18:11]OFD Sender: No OFD packet to send [06:18:16]OFD Sender: No OFD packet to send [06:18:21]OFD Sender: No OFD packet to send [06:18:26]OFD Sender: No OFD packet to send [06:18:31]OFD Sender: No OFD packet to send [06:18:36]OFD Sender: No OFD packet to send [06:18:41]OFD Sender: No OFD packet to send [06:18:46]OFD Sender: No OFD packet to send [06:18:51]OFD Sender: No OFD packet to send [06:18:56]OFD Sender: No OFD packet to send [06:19:01]OFD Sender: No OFD packet to send [06:19:06]OFD Sender: No OFD packet to send [06:19:11]OFD Sender: No OFD packet to send [06:19:16]OFD Sender: No OFD packet to send [06:19:21]OFD Sender: No OFD packet to send [06:19:26]OFD Sender: No OFD packet to send [06:19:31]OFD Sender: No OFD packet to send [06:19:36]OFD Sender: No OFD packet to send [06:19:41]OFD Sender: No OFD packet to send [06:19:46]OFD Sender: No OFD packet to send [06:19:51]OFD Sender: No OFD packet to send [06:19:56]OFD Sender: No OFD packet to send [06:20:01]OFD Sender: No OFD packet to send [06:20:06]OFD Sender: No OFD packet to send [06:20:11]OFD Sender: No OFD packet to send [06:20:16]OFD Sender: No OFD packet to send [06:20:21]OFD Sender: No OFD packet to send [06:20:26]OFD Sender: No OFD packet to send [06:20:31]OFD Sender: No OFD packet to send [06:20:36]OFD Sender: No OFD packet to send [06:20:41]OFD Sender: No OFD packet to send [06:20:46]OFD Sender: No OFD packet to send [06:20:51]OFD Sender: No OFD packet to send [06:20:56]OFD Sender: No OFD packet to send [06:21:01]OFD Sender: No OFD packet to send [06:21:06]OFD Sender: No OFD packet to send [06:21:11]OFD Sender: No OFD packet to send [06:21:16]OFD Sender: No OFD packet to send [06:21:21]OFD Sender: No OFD packet to send [06:21:26]OFD Sender: No OFD packet to send [06:21:31]OFD Sender: No OFD packet to send [06:21:36]OFD Sender: No OFD packet to send [06:21:41]OFD Sender: No OFD packet to send [06:21:46]OFD Sender: No OFD packet to send [06:21:51]OFD Sender: No OFD packet to send [06:21:56]OFD Sender: No OFD packet to send [06:22:01]OFD Sender: No OFD packet to send [06:22:06]OFD Sender: No OFD packet to send [06:22:11]OFD Sender: No OFD packet to send [06:22:16]OFD Sender: No OFD packet to send [06:22:21]OFD Sender: No OFD packet to send [06:22:26]OFD Sender: No OFD packet to send [06:22:31]OFD Sender: No OFD packet to send [06:22:36]OFD Sender: No OFD packet to send [06:22:41]OFD Sender: No OFD packet to send [06:22:46]OFD Sender: No OFD packet to send [06:22:51]OFD Sender: No OFD packet to send [06:22:56]OFD Sender: No OFD packet to send [06:23:01]OFD Sender: No OFD packet to send [06:23:06]OFD Sender: No OFD packet to send [06:23:11]OFD Sender: No OFD packet to send [06:23:16]OFD Sender: No OFD packet to send [06:23:21]OFD Sender: No OFD packet to send [06:23:26]OFD Sender: No OFD packet to send [06:23:31]OFD Sender: No OFD packet to send [06:23:36]OFD Sender: No OFD packet to send [06:23:41]OFD Sender: No OFD packet to send [06:23:46]OFD Sender: No OFD packet to send [06:23:51]OFD Sender: No OFD packet to send [06:23:56]OFD Sender: No OFD packet to send [06:24:01]OFD Sender: No OFD packet to send [06:24:06]OFD Sender: No OFD packet to send [06:24:11]OFD Sender: No OFD packet to send [06:24:16]OFD Sender: No OFD packet to send [06:24:21]OFD Sender: No OFD packet to send [06:24:26]OFD Sender: No OFD packet to send [06:24:31]OFD Sender: No OFD packet to send [06:24:36]OFD Sender: No OFD packet to send [06:24:41]OFD Sender: No OFD packet to send [06:24:46]OFD Sender: No OFD packet to send [06:24:51]OFD Sender: No OFD packet to send [06:24:56]OFD Sender: No OFD packet to send [06:25:01]OFD Sender: No OFD packet to send [06:25:06]OFD Sender: No OFD packet to send [06:25:11]OFD Sender: No OFD packet to send [06:25:16]OFD Sender: No OFD packet to send [06:25:21]OFD Sender: No OFD packet to send [06:25:26]OFD Sender: No OFD packet to send [06:25:31]OFD Sender: No OFD packet to send [06:25:36]OFD Sender: No OFD packet to send [06:25:41]OFD Sender: No OFD packet to send [06:25:46]OFD Sender: No OFD packet to send [06:25:51]OFD Sender: No OFD packet to send [06:25:56]OFD Sender: No OFD packet to send [06:26:01]OFD Sender: No OFD packet to send [06:26:06]OFD Sender: No OFD packet to send [06:26:11]OFD Sender: No OFD packet to send [06:26:16]OFD Sender: No OFD packet to send [06:26:21]OFD Sender: No OFD packet to send [06:26:26]OFD Sender: No OFD packet to send [06:26:31]OFD Sender: No OFD packet to send [06:26:36]OFD Sender: No OFD packet to send [06:26:41]OFD Sender: No OFD packet to send [06:26:46]OFD Sender: No OFD packet to send [06:26:51]OFD Sender: No OFD packet to send [06:26:56]OFD Sender: No OFD packet to send [06:27:01]OFD Sender: No OFD packet to send [06:27:06]OFD Sender: No OFD packet to send [06:27:11]OFD Sender: No OFD packet to send [06:27:16]OFD Sender: No OFD packet to send [06:27:21]OFD Sender: No OFD packet to send [06:27:26]OFD Sender: No OFD packet to send [06:27:31]OFD Sender: No OFD packet to send [06:27:36]OFD Sender: No OFD packet to send [06:27:41]OFD Sender: No OFD packet to send [06:27:46]OFD Sender: No OFD packet to send [06:27:51]OFD Sender: No OFD packet to send [06:27:56]OFD Sender: No OFD packet to send [06:28:01]OFD Sender: No OFD packet to send [06:28:06]OFD Sender: No OFD packet to send [06:28:11]OFD Sender: No OFD packet to send [06:28:16]OFD Sender: No OFD packet to send [06:28:21]OFD Sender: No OFD packet to send [06:28:26]OFD Sender: No OFD packet to send [06:28:31]OFD Sender: No OFD packet to send [06:28:36]OFD Sender: No OFD packet to send [06:28:41]OFD Sender: No OFD packet to send [06:28:46]OFD Sender: No OFD packet to send [06:28:51]OFD Sender: No OFD packet to send [06:28:56]OFD Sender: No OFD packet to send [06:29:01]OFD Sender: No OFD packet to send [06:29:06]OFD Sender: No OFD packet to send [06:29:11]OFD Sender: No OFD packet to send [06:29:16]OFD Sender: No OFD packet to send [06:29:21]OFD Sender: No OFD packet to send [06:29:26]OFD Sender: No OFD packet to send [06:29:31]OFD Sender: No OFD packet to send [06:29:36]OFD Sender: No OFD packet to send [06:29:41]OFD Sender: No OFD packet to send [06:29:46]OFD Sender: No OFD packet to send [06:29:51]OFD Sender: No OFD packet to send [06:29:56]OFD Sender: No OFD packet to send [06:30:01]OFD Sender: No OFD packet to send [06:30:06]OFD Sender: No OFD packet to send [06:30:11]OFD Sender: No OFD packet to send [06:30:16]OFD Sender: No OFD packet to send [06:30:21]OFD Sender: No OFD packet to send [06:30:26]OFD Sender: No OFD packet to send [06:30:31]OFD Sender: No OFD packet to send [06:30:36]OFD Sender: No OFD packet to send [06:30:41]OFD Sender: No OFD packet to send [06:30:47]OFD Sender: No OFD packet to send [06:30:52]OFD Sender: No OFD packet to send [06:30:57]OFD Sender: No OFD packet to send [06:31:02]OFD Sender: No OFD packet to send [06:31:07]OFD Sender: No OFD packet to send [06:31:12]OFD Sender: No OFD packet to send [06:31:17]OFD Sender: No OFD packet to send [06:31:22]OFD Sender: No OFD packet to send [06:31:27]OFD Sender: No OFD packet to send [06:31:32]OFD Sender: No OFD packet to send [06:31:37]OFD Sender: No OFD packet to send [06:31:42]OFD Sender: No OFD packet to send [06:31:47]OFD Sender: No OFD packet to send [06:31:52]OFD Sender: No OFD packet to send [06:31:57]OFD Sender: No OFD packet to send [06:32:02]OFD Sender: No OFD packet to send [06:32:07]OFD Sender: No OFD packet to send [06:32:12]OFD Sender: No OFD packet to send [06:32:17]OFD Sender: No OFD packet to send [06:32:22]OFD Sender: No OFD packet to send [06:32:27]OFD Sender: No OFD packet to send [06:32:32]OFD Sender: No OFD packet to send [06:32:37]OFD Sender: No OFD packet to send [06:32:42]OFD Sender: No OFD packet to send [06:32:47]OFD Sender: No OFD packet to send [06:32:52]OFD Sender: No OFD packet to send [06:32:57]OFD Sender: No OFD packet to send [06:33:02]OFD Sender: No OFD packet to send [06:33:07]OFD Sender: No OFD packet to send [06:33:12]OFD Sender: No OFD packet to send [06:33:17]OFD Sender: No OFD packet to send [06:33:22]OFD Sender: No OFD packet to send [06:33:27]OFD Sender: No OFD packet to send [06:33:32]OFD Sender: No OFD packet to send [06:33:37]OFD Sender: No OFD packet to send [06:33:42]OFD Sender: No OFD packet to send [06:33:47]OFD Sender: No OFD packet to send [06:33:52]OFD Sender: No OFD packet to send [06:33:57]OFD Sender: No OFD packet to send [06:34:02]OFD Sender: No OFD packet to send [06:34:07]OFD Sender: No OFD packet to send [06:34:12]OFD Sender: No OFD packet to send [06:34:17]OFD Sender: No OFD packet to send [06:34:22]OFD Sender: No OFD packet to send [06:34:27]OFD Sender: No OFD packet to send [06:34:32]OFD Sender: No OFD packet to send [06:34:37]OFD Sender: No OFD packet to send [06:34:42]OFD Sender: No OFD packet to send [06:34:47]OFD Sender: No OFD packet to send [06:34:52]OFD Sender: No OFD packet to send [06:34:57]OFD Sender: No OFD packet to send [06:35:02]OFD Sender: No OFD packet to send [06:35:07]OFD Sender: No OFD packet to send [06:35:12]OFD Sender: No OFD packet to send [06:35:17]OFD Sender: No OFD packet to send [06:35:22]OFD Sender: No OFD packet to send [06:35:27]OFD Sender: No OFD packet to send [06:35:32]OFD Sender: No OFD packet to send [06:35:37]OFD Sender: No OFD packet to send [06:35:42]OFD Sender: No OFD packet to send [06:35:47]OFD Sender: No OFD packet to send [06:35:52]OFD Sender: No OFD packet to send [06:35:57]OFD Sender: No OFD packet to send [06:36:02]OFD Sender: No OFD packet to send [06:36:07]OFD Sender: No OFD packet to send [06:36:12]OFD Sender: No OFD packet to send [06:36:17]OFD Sender: No OFD packet to send [06:36:22]OFD Sender: No OFD packet to send [06:36:27]OFD Sender: No OFD packet to send [06:36:32]OFD Sender: No OFD packet to send [06:36:37]OFD Sender: No OFD packet to send [06:36:42]OFD Sender: No OFD packet to send [06:36:47]OFD Sender: No OFD packet to send [06:36:52]OFD Sender: No OFD packet to send [06:36:57]OFD Sender: No OFD packet to send [06:37:02]OFD Sender: No OFD packet to send [06:37:07]OFD Sender: No OFD packet to send [06:37:12]OFD Sender: No OFD packet to send [06:37:17]OFD Sender: No OFD packet to send [06:37:22]OFD Sender: No OFD packet to send [06:37:27]OFD Sender: No OFD packet to send [06:37:32]OFD Sender: No OFD packet to send [06:37:37]OFD Sender: No OFD packet to send [06:37:42]OFD Sender: No OFD packet to send [06:37:47]OFD Sender: No OFD packet to send [06:37:52]OFD Sender: No OFD packet to send [06:37:57]OFD Sender: No OFD packet to send [06:38:02]OFD Sender: No OFD packet to send [06:38:07]OFD Sender: No OFD packet to send [06:38:12]OFD Sender: No OFD packet to send [06:38:17]OFD Sender: No OFD packet to send [06:38:22]OFD Sender: No OFD packet to send [06:38:27]OFD Sender: No OFD packet to send [06:38:32]OFD Sender: No OFD packet to send [06:38:37]OFD Sender: No OFD packet to send [06:38:42]OFD Sender: No OFD packet to send [06:38:47]OFD Sender: No OFD packet to send [06:38:52]OFD Sender: No OFD packet to send [06:38:57]OFD Sender: No OFD packet to send [06:39:02]OFD Sender: No OFD packet to send [06:39:07]OFD Sender: No OFD packet to send [06:39:12]OFD Sender: No OFD packet to send [06:39:17]OFD Sender: No OFD packet to send [06:39:22]OFD Sender: No OFD packet to send [06:39:27]OFD Sender: No OFD packet to send [06:39:32]OFD Sender: No OFD packet to send [06:39:37]OFD Sender: No OFD packet to send [06:39:42]OFD Sender: No OFD packet to send [06:39:47]OFD Sender: No OFD packet to send [06:39:52]OFD Sender: No OFD packet to send [06:39:57]OFD Sender: No OFD packet to send [06:40:02]OFD Sender: No OFD packet to send [06:40:07]OFD Sender: No OFD packet to send [06:40:12]OFD Sender: No OFD packet to send [06:40:17]OFD Sender: No OFD packet to send [06:40:22]OFD Sender: No OFD packet to send [06:40:27]OFD Sender: No OFD packet to send [06:40:32]OFD Sender: No OFD packet to send [06:40:37]OFD Sender: No OFD packet to send [06:40:42]OFD Sender: No OFD packet to send [06:40:47]OFD Sender: No OFD packet to send [06:40:52]OFD Sender: No OFD packet to send [06:40:57]OFD Sender: No OFD packet to send [06:41:02]OFD Sender: No OFD packet to send [06:41:07]OFD Sender: No OFD packet to send [06:41:12]OFD Sender: No OFD packet to send [06:41:17]OFD Sender: No OFD packet to send [06:41:22]OFD Sender: No OFD packet to send [06:41:27]OFD Sender: No OFD packet to send [06:41:32]OFD Sender: No OFD packet to send [06:41:37]OFD Sender: No OFD packet to send [06:41:42]OFD Sender: No OFD packet to send [06:41:47]OFD Sender: No OFD packet to send [06:41:52]OFD Sender: No OFD packet to send [06:41:57]OFD Sender: No OFD packet to send [06:42:02]OFD Sender: No OFD packet to send [06:42:07]OFD Sender: No OFD packet to send [06:42:12]OFD Sender: No OFD packet to send [06:42:17]OFD Sender: No OFD packet to send [06:42:22]OFD Sender: No OFD packet to send [06:42:27]OFD Sender: No OFD packet to send [06:42:32]OFD Sender: No OFD packet to send [06:42:37]OFD Sender: No OFD packet to send [06:42:42]OFD Sender: No OFD packet to send [06:42:47]OFD Sender: No OFD packet to send [06:42:52]OFD Sender: No OFD packet to send [06:42:57]OFD Sender: No OFD packet to send [06:43:02]OFD Sender: No OFD packet to send [06:43:07]OFD Sender: No OFD packet to send [06:43:12]OFD Sender: No OFD packet to send [06:43:17]OFD Sender: No OFD packet to send [06:43:22]OFD Sender: No OFD packet to send [06:43:27]OFD Sender: No OFD packet to send [06:43:32]OFD Sender: No OFD packet to send [06:43:37]OFD Sender: No OFD packet to send [06:43:42]OFD Sender: No OFD packet to send [06:43:47]OFD Sender: No OFD packet to send [06:43:52]OFD Sender: No OFD packet to send [06:43:57]OFD Sender: No OFD packet to send [06:44:02]OFD Sender: No OFD packet to send [06:44:07]OFD Sender: No OFD packet to send [06:44:12]OFD Sender: No OFD packet to send [06:44:17]OFD Sender: No OFD packet to send [06:44:22]OFD Sender: No OFD packet to send [06:44:27]OFD Sender: No OFD packet to send [06:44:32]OFD Sender: No OFD packet to send [06:44:37]OFD Sender: No OFD packet to send [06:44:42]OFD Sender: No OFD packet to send [06:44:47]OFD Sender: No OFD packet to send [06:44:52]OFD Sender: No OFD packet to send [06:44:57]OFD Sender: No OFD packet to send [06:45:02]OFD Sender: No OFD packet to send [06:45:07]OFD Sender: No OFD packet to send [06:45:12]OFD Sender: No OFD packet to send [06:45:17]OFD Sender: No OFD packet to send [06:45:22]OFD Sender: No OFD packet to send [06:45:27]OFD Sender: No OFD packet to send [06:45:32]OFD Sender: No OFD packet to send [06:45:37]OFD Sender: No OFD packet to send [06:45:42]OFD Sender: No OFD packet to send [06:45:47]OFD Sender: No OFD packet to send [06:45:52]OFD Sender: No OFD packet to send [06:45:57]OFD Sender: No OFD packet to send [06:46:02]OFD Sender: No OFD packet to send [06:46:07]OFD Sender: No OFD packet to send [06:46:12]OFD Sender: No OFD packet to send [06:46:17]OFD Sender: No OFD packet to send [06:46:22]OFD Sender: No OFD packet to send [06:46:27]OFD Sender: No OFD packet to send [06:46:32]OFD Sender: No OFD packet to send [06:46:37]OFD Sender: No OFD packet to send [06:46:42]OFD Sender: No OFD packet to send [06:46:47]OFD Sender: No OFD packet to send [06:46:52]OFD Sender: No OFD packet to send [06:46:57]OFD Sender: No OFD packet to send [06:47:02]OFD Sender: No OFD packet to send [06:47:07]OFD Sender: No OFD packet to send [06:47:12]OFD Sender: No OFD packet to send [06:47:17]OFD Sender: No OFD packet to send [06:47:22]OFD Sender: No OFD packet to send [06:47:27]OFD Sender: No OFD packet to send [06:47:32]OFD Sender: No OFD packet to send [06:47:37]OFD Sender: No OFD packet to send [06:47:42]OFD Sender: No OFD packet to send [06:47:47]OFD Sender: No OFD packet to send [06:47:52]OFD Sender: No OFD packet to send [06:47:57]OFD Sender: No OFD packet to send [06:48:02]OFD Sender: No OFD packet to send [06:48:07]OFD Sender: No OFD packet to send [06:48:12]OFD Sender: No OFD packet to send [06:48:17]OFD Sender: No OFD packet to send [06:48:22]OFD Sender: No OFD packet to send [06:48:27]OFD Sender: No OFD packet to send [06:48:32]OFD Sender: No OFD packet to send [06:48:37]OFD Sender: No OFD packet to send [06:48:42]OFD Sender: No OFD packet to send [06:48:47]OFD Sender: No OFD packet to send [06:48:52]OFD Sender: No OFD packet to send [06:48:57]OFD Sender: No OFD packet to send [06:49:02]OFD Sender: No OFD packet to send [06:49:07]OFD Sender: No OFD packet to send [06:49:12]OFD Sender: No OFD packet to send [06:49:17]OFD Sender: No OFD packet to send [06:49:22]OFD Sender: No OFD packet to send [06:49:27]OFD Sender: No OFD packet to send [06:49:32]OFD Sender: No OFD packet to send [06:49:37]OFD Sender: No OFD packet to send [06:49:42]OFD Sender: No OFD packet to send [06:49:47]OFD Sender: No OFD packet to send [06:49:52]OFD Sender: No OFD packet to send [06:49:57]OFD Sender: No OFD packet to send [06:50:02]OFD Sender: No OFD packet to send [06:50:07]OFD Sender: No OFD packet to send [06:50:12]OFD Sender: No OFD packet to send [06:50:17]OFD Sender: No OFD packet to send [06:50:22]OFD Sender: No OFD packet to send [06:50:27]OFD Sender: No OFD packet to send [06:50:32]OFD Sender: No OFD packet to send [06:50:37]OFD Sender: No OFD packet to send [06:50:42]OFD Sender: No OFD packet to send [06:50:47]OFD Sender: No OFD packet to send [06:50:52]OFD Sender: No OFD packet to send [06:50:57]OFD Sender: No OFD packet to send [06:51:02]OFD Sender: No OFD packet to send [06:51:07]OFD Sender: No OFD packet to send [06:51:12]OFD Sender: No OFD packet to send [06:51:17]OFD Sender: No OFD packet to send [06:51:22]OFD Sender: No OFD packet to send [06:51:27]OFD Sender: No OFD packet to send [06:51:32]OFD Sender: No OFD packet to send [06:51:37]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: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: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: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:03]OFD Sender: No OFD packet to send [06:56:08]OFD Sender: No OFD packet to send [06:56:13]OFD Sender: No OFD packet to send [06:56:18]OFD Sender: No OFD packet to send [06:56:23]OFD Sender: No OFD packet to send [06:56:28]OFD Sender: No OFD packet to send [06:56:33]OFD Sender: No OFD packet to send [06:56:38]OFD Sender: No OFD packet to send [06:56:43]OFD Sender: No OFD packet to send [06:56:48]OFD Sender: No OFD packet to send [06:56:53]OFD Sender: No OFD packet to send [06:56:58]OFD Sender: No OFD packet to send [06:57:03]OFD Sender: No OFD packet to send [06:57:08]OFD Sender: No OFD packet to send [06:57:13]OFD Sender: No OFD packet to send [06:57:18]OFD Sender: No OFD packet to send [06:57:23]OFD Sender: No OFD packet to send [06:57:28]OFD Sender: No OFD packet to send [06:57:33]OFD Sender: No OFD packet to send [06:57:38]OFD Sender: No OFD packet to send [06:57:43]OFD Sender: No OFD packet to send [06:57:48]OFD Sender: No OFD packet to send [06:57:53]OFD Sender: No OFD packet to send [06:57:58]OFD Sender: No OFD packet to send [06:58:03]OFD Sender: No OFD packet to send [06:58:08]OFD Sender: No OFD packet to send [06:58:13]OFD Sender: No OFD packet to send [06:58:18]OFD Sender: No OFD packet to send [06:58:23]OFD Sender: No OFD packet to send [06:58:28]OFD Sender: No OFD packet to send [06:58:33]OFD Sender: No OFD packet to send [06:58:38]OFD Sender: No OFD packet to send [06:58:43]OFD Sender: No OFD packet to send [06:58:48]OFD Sender: No OFD packet to send [06:58:53]OFD Sender: No OFD packet to send [06:58:58]OFD Sender: No OFD packet to send [06:59:03]OFD Sender: No OFD packet to send [06:59:08]OFD Sender: No OFD packet to send [06:59:13]OFD Sender: No OFD packet to send [06:59:18]OFD Sender: No OFD packet to send [06:59:23]OFD Sender: No OFD packet to send [06:59:28]OFD Sender: No OFD packet to send [06:59:33]OFD Sender: No OFD packet to send [06:59:38]OFD Sender: No OFD packet to send [06:59:43]OFD Sender: No OFD packet to send [06:59:48]OFD Sender: No OFD packet to send [06:59:53]OFD Sender: No OFD packet to send [06:59:58]OFD Sender: No OFD packet to send [07:00:03]OFD Sender: No OFD packet to send [07:00:08]OFD Sender: No OFD packet to send [07:00:13]OFD Sender: No OFD packet to send [07:00:18]OFD Sender: No OFD packet to send [07:00:23]OFD Sender: No OFD packet to send [07:00:28]OFD Sender: No OFD packet to send [07:00:33]OFD Sender: No OFD packet to send [07:00:38]OFD Sender: No OFD packet to send [07:00:43]OFD Sender: No OFD packet to send [07:00:48]OFD Sender: No OFD packet to send [07:00:53]OFD Sender: No OFD packet to send [07:00:58]OFD Sender: No OFD packet to send [07:01:03]OFD Sender: No OFD packet to send [07:01:08]OFD Sender: No OFD packet to send [07:01:13]OFD Sender: No OFD packet to send [07:01:18]OFD Sender: No OFD packet to send [07:01:23]OFD Sender: No OFD packet to send [07:01:28]OFD Sender: No OFD packet to send [07:01:33]OFD Sender: No OFD packet to send [07:01:38]OFD Sender: No OFD packet to send [07:01:43]OFD Sender: No OFD packet to send [07:01:48]OFD Sender: No OFD packet to send [07:01:53]OFD Sender: No OFD packet to send [07:01:58]OFD Sender: No OFD packet to send [07:02:03]OFD Sender: No OFD packet to send [07:02:08]OFD Sender: No OFD packet to send [07:02:13]OFD Sender: No OFD packet to send [07:02:18]OFD Sender: No OFD packet to send [07:02:23]OFD Sender: No OFD packet to send [07:02:28]OFD Sender: No OFD packet to send [07:02:33]OFD Sender: No OFD packet to send [07:02:38]OFD Sender: No OFD packet to send [07:02:43]OFD Sender: No OFD packet to send [07:02:48]OFD Sender: No OFD packet to send [07:02:53]OFD Sender: No OFD packet to send [07:02:58]OFD Sender: No OFD packet to send [07:03:03]OFD Sender: No OFD packet to send [07:03:08]OFD Sender: No OFD packet to send [07:03:13]OFD Sender: No OFD packet to send [07:03:18]OFD Sender: No OFD packet to send [07:03:23]OFD Sender: No OFD packet to send [07:03:28]OFD Sender: No OFD packet to send [07:03:33]OFD Sender: No OFD packet to send [07:03:38]OFD Sender: No OFD packet to send [07:03:43]OFD Sender: No OFD packet to send [07:03:48]OFD Sender: No OFD packet to send [07:03:53]OFD Sender: No OFD packet to send [07:03:58]OFD Sender: No OFD packet to send [07:04:03]OFD Sender: No OFD packet to send [07:04:08]OFD Sender: No OFD packet to send [07:04:13]OFD Sender: No OFD packet to send [07:04:18]OFD Sender: No OFD packet to send [07:04:23]OFD Sender: No OFD packet to send [07:04:28]OFD Sender: No OFD packet to send [07:04:33]OFD Sender: No OFD packet to send [07:04:38]OFD Sender: No OFD packet to send [07:04:43]OFD Sender: No OFD packet to send [07:04:48]OFD Sender: No OFD packet to send [07:04:53]OFD Sender: No OFD packet to send [07:04:58]OFD Sender: No OFD packet to send [07:05:03]OFD Sender: No OFD packet to send [07:05:08]OFD Sender: No OFD packet to send [07:05:13]OFD Sender: No OFD packet to send [07:05:18]OFD Sender: No OFD packet to send [07:05:23]OFD Sender: No OFD packet to send [07:05:28]OFD Sender: No OFD packet to send [07:05:33]OFD Sender: No OFD packet to send [07:05:38]OFD Sender: No OFD packet to send [07:05:43]OFD Sender: No OFD packet to send [07:05:48]OFD Sender: No OFD packet to send [07:05:53]OFD Sender: No OFD packet to send [07:05:58]OFD Sender: No OFD packet to send [07:06:03]OFD Sender: No OFD packet to send [07:06:08]OFD Sender: No OFD packet to send [07:06:13]OFD Sender: No OFD packet to send [07:06:18]OFD Sender: No OFD packet to send [07:06:23]OFD Sender: No OFD packet to send [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:23]OFD Sender: No OFD packet to send [07:07:28]OFD Sender: No OFD packet to send [07:07:33]OFD Sender: No OFD packet to send [07:07:38]OFD Sender: No OFD packet to send [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]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: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]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: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: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: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: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:54]OFD Sender: No OFD packet to send [07:12:59]OFD Sender: No OFD packet to send [07:13:04]OFD Sender: No OFD packet to send [07:13:09]OFD Sender: No OFD packet to send [07:13:14]OFD Sender: No OFD packet to send [07:13:19]OFD Sender: No OFD packet to send [07:13:24]OFD Sender: No OFD packet to send [07:13:29]OFD Sender: No OFD packet to send [07:13:34]OFD Sender: No OFD packet to send [07:13:39]OFD Sender: No OFD packet to send [07:13:44]OFD Sender: No OFD packet to send [07:13:49]OFD Sender: No OFD packet to send [07:13:54]OFD Sender: No OFD packet to send [07:13:59]OFD Sender: No OFD packet to send [07:14:04]OFD Sender: No OFD packet to send [07:14:09]OFD Sender: No OFD packet to send [07:14:14]OFD Sender: No OFD packet to send [07:14:19]OFD Sender: No OFD packet to send [07:14:24]OFD Sender: No OFD packet to send [07:14:29]OFD Sender: No OFD packet to send [07:14:34]OFD Sender: No OFD packet to send [07:14:39]OFD Sender: No OFD packet to send [07:14:44]OFD Sender: No OFD packet to send [07:14:49]OFD Sender: No OFD packet to send [07:14:54]OFD Sender: No OFD packet to send [07:14:59]OFD Sender: No OFD packet to send [07:15:04]OFD Sender: No OFD packet to send [07:15:09]OFD Sender: No OFD packet to send [07:15:14]OFD Sender: No OFD packet to send [07:15:19]OFD Sender: No OFD packet to send [07:15:24]OFD Sender: No OFD packet to send [07:15:29]OFD Sender: No OFD packet to send [07:15:34]OFD Sender: No OFD packet to send [07:15:39]OFD Sender: No OFD packet to send [07:15:44]OFD Sender: No OFD packet to send [07:15:49]OFD Sender: No OFD packet to send [07:15:54]OFD Sender: No OFD packet to send [07:15:59]OFD Sender: No OFD packet to send [07:16:04]OFD Sender: No OFD packet to send [07:16:09]OFD Sender: No OFD packet to send [07:16:14]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: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: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]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: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:19]OFD Sender: No OFD packet to send [07:22:24]OFD Sender: No OFD packet to send [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: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: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:39]OFD Sender: No OFD packet to send [07:23:44]OFD Sender: No OFD packet to send [07:23:49]OFD Sender: No OFD packet to send [07:23:54]OFD Sender: No OFD packet to send [07:23:59]OFD Sender: No OFD packet to send [07:24:04]OFD Sender: No OFD packet to send [07:24:09]OFD Sender: No OFD packet to send [07:24:14]OFD Sender: No OFD packet to send [07:24:19]OFD Sender: No OFD packet to send [07:24:24]OFD Sender: No OFD packet to send [07:24:29]OFD Sender: No OFD packet to send [07:24:34]OFD Sender: No OFD packet to send [07:24:39]OFD Sender: No OFD packet to send [07:24:44]OFD Sender: No OFD packet to send [07:24:49]OFD Sender: No OFD packet to send [07:24:54]OFD Sender: No OFD packet to send [07:24:59]OFD Sender: No OFD packet to send [07:25:04]OFD Sender: No OFD packet to send [07:25:09]OFD Sender: No OFD packet to send [07:25:14]OFD Sender: No OFD packet to send [07:25:19]OFD Sender: No OFD packet to send [07:25:24]OFD Sender: No OFD packet to send [07:25:29]OFD Sender: No OFD packet to send [07:25:34]OFD Sender: No OFD packet to send [07:25:39]OFD Sender: No OFD packet to send [07:25:44]OFD Sender: No OFD packet to send [07:25:49]OFD Sender: No OFD packet to send [07:25:54]OFD Sender: No OFD packet to send [07:25:59]OFD Sender: No OFD packet to send [07:26:04]OFD Sender: No OFD packet to send [07:26:09]OFD Sender: No OFD packet to send [07:26:14]OFD Sender: No OFD packet to send [07:26:19]OFD Sender: No OFD packet to send [07:26:24]OFD Sender: No OFD packet to send [07:26:29]OFD Sender: No OFD packet to send [07:26:34]OFD Sender: No OFD packet to send [07:26:39]OFD Sender: No OFD packet to send [07:26:44]OFD Sender: No OFD packet to send [07:26:49]OFD Sender: No OFD packet to send [07:26:54]OFD Sender: No OFD packet to send [07:26:59]OFD Sender: No OFD packet to send [07:27:04]OFD Sender: No OFD packet to send [07:27:09]OFD Sender: No OFD packet to send [07:27:14]OFD Sender: No OFD packet to send [07:27:19]OFD Sender: No OFD packet to send [07:27:24]OFD Sender: No OFD packet to send [07:27:29]OFD Sender: No OFD packet to send [07:27:34]OFD Sender: No OFD packet to send [07:27:39]OFD Sender: No OFD packet to send [07:27:44]OFD Sender: No OFD packet to send [07:27:49]OFD Sender: No OFD packet to send [07:27:54]OFD Sender: No OFD packet to send [07:27:59]OFD Sender: No OFD packet to send [07:28:04]OFD Sender: No OFD packet to send [07:28:09]OFD Sender: No OFD packet to send [07:28:14]OFD Sender: No OFD packet to send [07:28:19]OFD Sender: No OFD packet to send [07:28:24]OFD Sender: No OFD packet to send [07:28:29]OFD Sender: No OFD packet to send [07:28:34]OFD Sender: No OFD packet to send [07:28:39]OFD Sender: No OFD packet to send [07:28:44]OFD Sender: No OFD packet to send [07:28:49]OFD Sender: No OFD packet to send [07:28:54]OFD Sender: No OFD packet to send [07:28:59]OFD Sender: No OFD packet to send [07:29:04]OFD Sender: No OFD packet to send [07:29:09]OFD Sender: No OFD packet to send [07:29:14]OFD Sender: No OFD packet to send [07:29:19]OFD Sender: No OFD packet to send [07:29:24]OFD Sender: No OFD packet to send [07:29:29]OFD Sender: No OFD packet to send [07:29:34]OFD Sender: No OFD packet to send [07:29:39]OFD Sender: No OFD packet to send [07:29:44]OFD Sender: No OFD packet to send [07:29:49]OFD Sender: No OFD packet to send [07:29:54]OFD Sender: No OFD packet to send [07:29:59]OFD Sender: No OFD packet to send [07:30:04]OFD Sender: No OFD packet to send [07:30:09]OFD Sender: No OFD packet to send [07:30:14]OFD Sender: No OFD packet to send [07:30:19]OFD Sender: No OFD packet to send [07:30:24]OFD Sender: No OFD packet to send [07:30:29]OFD Sender: No OFD packet to send [07:30:34]OFD Sender: No OFD packet to send [07:30:39]OFD Sender: No OFD packet to send [07:30:44]OFD Sender: No OFD packet to send [07:30:49]OFD Sender: No OFD packet to send [07:30:54]OFD Sender: No OFD packet to send [07:30:59]OFD Sender: No OFD packet to send [07:31:04]OFD Sender: No OFD packet to send [07:31:09]OFD Sender: No OFD packet to send [07:31:14]OFD Sender: No OFD packet to send [07:31:19]OFD Sender: No OFD packet to send [07:31:24]OFD Sender: No OFD packet to send [07:31:29]OFD Sender: No OFD packet to send [07:31:34]OFD Sender: No OFD packet to send [07:31:39]OFD Sender: No OFD packet to send [07:31:44]OFD Sender: No OFD packet to send [07:31:49]OFD Sender: No OFD packet to send [07:31:54]OFD Sender: No OFD packet to send [07:31:59]OFD Sender: No OFD packet to send [07:32:04]OFD Sender: No OFD packet to send [07:32:09]OFD Sender: No OFD packet to send [07:32:14]OFD Sender: No OFD packet to send [07:32:19]OFD Sender: No OFD packet to send [07:32:24]OFD Sender: No OFD packet to send [07:32:29]OFD Sender: No OFD packet to send [07:32:34]OFD Sender: No OFD packet to send [07:32:39]OFD Sender: No OFD packet to send [07:32:44]OFD Sender: No OFD packet to send [07:32:49]OFD Sender: No OFD packet to send [07:32:54]OFD Sender: No OFD packet to send [07:32:59]OFD Sender: No OFD packet to send [07:33:04]OFD Sender: No OFD packet to send [07:33:09]OFD Sender: No OFD packet to send [07:33:14]OFD Sender: No OFD packet to send [07:33:19]OFD Sender: No OFD packet to send [07:33:24]OFD Sender: No OFD packet to send [07:33:29]OFD Sender: No OFD packet to send [07:33:34]OFD Sender: No OFD packet to send [07:33:39]OFD Sender: No OFD packet to send [07:33:44]OFD Sender: No OFD packet to send [07:33:49]OFD Sender: No OFD packet to send [07:33:54]OFD Sender: No OFD packet to send [07:33:59]OFD Sender: No OFD packet to send [07:34:05]OFD Sender: No OFD packet to send [07:34:10]OFD Sender: No OFD packet to send [07:34:15]OFD Sender: No OFD packet to send [07:34:20]OFD Sender: No OFD packet to send [07:34:25]OFD Sender: No OFD packet to send [07:34:30]OFD Sender: No OFD packet to send [07:34:35]OFD Sender: No OFD packet to send [07:34:40]OFD Sender: No OFD packet to send [07:34:45]OFD Sender: No OFD packet to send [07:34:50]OFD Sender: No OFD packet to send [07:34:55]OFD Sender: No OFD packet to send [07:35:00]OFD Sender: No OFD packet to send [07:35:05]OFD Sender: No OFD packet to send [07:35:10]OFD Sender: No OFD packet to send [07:35:15]OFD Sender: No OFD packet to send [07:35:20]OFD Sender: No OFD packet to send [07:35:25]OFD Sender: No OFD packet to send [07:35:30]OFD Sender: No OFD packet to send [07:35:35]OFD Sender: No OFD packet to send [07:35:40]OFD Sender: No OFD packet to send [07:35:45]OFD Sender: No OFD packet to send [07:35:50]OFD Sender: No OFD packet to send [07:35:55]OFD Sender: No OFD packet to send [07:36:00]OFD Sender: No OFD packet to send [07:36:05]OFD Sender: No OFD packet to send [07:36:10]OFD Sender: No OFD packet to send [07:36:15]OFD Sender: No OFD packet to send [07:36:20]OFD Sender: No OFD packet to send [07:36:25]OFD Sender: No OFD packet to send [07:36:30]OFD Sender: No OFD packet to send [07:36:35]OFD Sender: No OFD packet to send [07:36:40]OFD Sender: No OFD packet to send [07:36:45]OFD Sender: No OFD packet to send [07:36:50]OFD Sender: No OFD packet to send [07:36:55]OFD Sender: No OFD packet to send [07:37:00]OFD Sender: No OFD packet to send [07:37:05]OFD Sender: No OFD packet to send [07:37:10]OFD Sender: No OFD packet to send [07:37:15]OFD Sender: No OFD packet to send [07:37:20]OFD Sender: No OFD packet to send [07:37:25]OFD Sender: No OFD packet to send [07:37:30]OFD Sender: No OFD packet to send [07:37:35]OFD Sender: No OFD packet to send [07:37:40]OFD Sender: No OFD packet to send [07:37:45]OFD Sender: No OFD packet to send [07:37:50]OFD Sender: No OFD packet to send [07:37:55]OFD Sender: No OFD packet to send [07:38:00]OFD Sender: No OFD packet to send [07:38:05]OFD Sender: No OFD packet to send [07:38:10]OFD Sender: No OFD packet to send [07:38:15]OFD Sender: No OFD packet to send [07:38:20]OFD Sender: No OFD packet to send [07:38:25]OFD Sender: No OFD packet to send [07:38:30]OFD Sender: No OFD packet to send [07:38:35]OFD Sender: No OFD packet to send [07:38:40]OFD Sender: No OFD packet to send [07:38:45]OFD Sender: No OFD packet to send [07:38:50]OFD Sender: No OFD packet to send [07:38:55]OFD Sender: No OFD packet to send [07:39:00]OFD Sender: No OFD packet to send [07:39:05]OFD Sender: No OFD packet to send [07:39:10]OFD Sender: No OFD packet to send [07:39:15]OFD Sender: No OFD packet to send [07:39:20]OFD Sender: No OFD packet to send [07:39:25]OFD Sender: No OFD packet to send [07:39:30]OFD Sender: No OFD packet to send [07:39:35]OFD Sender: No OFD packet to send [07:39:40]OFD Sender: No OFD packet to send [07:39:45]OFD Sender: No OFD packet to send [07:39:50]OFD Sender: No OFD packet to send [07:39:55]OFD Sender: No OFD packet to send [07:40:00]OFD Sender: No OFD packet to send [07:40:05]OFD Sender: No OFD packet to send [07:40:10]OFD Sender: No OFD packet to send [07:40:15]OFD Sender: No OFD packet to send [07:40:20]OFD Sender: No OFD packet to send [07:40:25]OFD Sender: No OFD packet to send [07:40:30]OFD Sender: No OFD packet to send [07:40:35]OFD Sender: No OFD packet to send [07:40:40]OFD Sender: No OFD packet to send [07:40:45]OFD Sender: No OFD packet to send [07:40:50]OFD Sender: No OFD packet to send [07:40:55]OFD Sender: No OFD packet to send [07:41:00]OFD Sender: No OFD packet to send [07:41:05]OFD Sender: No OFD packet to send [07:41:10]OFD Sender: No OFD packet to send [07:41:15]OFD Sender: No OFD packet to send [07:41:20]OFD Sender: No OFD packet to send [07:41:25]OFD Sender: No OFD packet to send [07:41:30]OFD Sender: No OFD packet to send [07:41:35]OFD Sender: No OFD packet to send [07:41:40]OFD Sender: No OFD packet to send [07:41:45]OFD Sender: No OFD packet to send [07:41:50]OFD Sender: No OFD packet to send [07:41:55]OFD Sender: No OFD packet to send [07:42:00]OFD Sender: No OFD packet to send [07:42:05]OFD Sender: No OFD packet to send [07:42:10]OFD Sender: No OFD packet to send [07:42:15]OFD Sender: No OFD packet to send [07:42:20]OFD Sender: No OFD packet to send [07:42:25]OFD Sender: No OFD packet to send [07:42:30]OFD Sender: No OFD packet to send [07:42:35]OFD Sender: No OFD packet to send [07:42:40]OFD Sender: No OFD packet to send [07:42:45]OFD Sender: No OFD packet to send [07:42:50]OFD Sender: No OFD packet to send [07:42:55]OFD Sender: No OFD packet to send [07:43:00]OFD Sender: No OFD packet to send [07:43:05]OFD Sender: No OFD packet to send [07:43:10]OFD Sender: No OFD packet to send [07:43:15]OFD Sender: No OFD packet to send [07:43:20]OFD Sender: No OFD packet to send [07:43:25]OFD Sender: No OFD packet to send [07:43:30]OFD Sender: No OFD packet to send [07:43:35]OFD Sender: No OFD packet to send [07:43:40]OFD Sender: No OFD packet to send [07:43:45]OFD Sender: No OFD packet to send [07:43:50]OFD Sender: No OFD packet to send [07:43:55]OFD Sender: No OFD packet to send [07:44:00]OFD Sender: No OFD packet to send [07:44:05]OFD Sender: No OFD packet to send [07:44:10]OFD Sender: No OFD packet to send [07:44:15]OFD Sender: No OFD packet to send [07:44:20]OFD Sender: No OFD packet to send [07:44:25]OFD Sender: No OFD packet to send [07:44:30]OFD Sender: No OFD packet to send [07:44:35]OFD Sender: No OFD packet to send [07:44:40]OFD Sender: No OFD packet to send [07:44:45]OFD Sender: No OFD packet to send [07:44:50]OFD Sender: No OFD packet to send [07:44:55]OFD Sender: No OFD packet to send [07:44:57]accept exits with 9 [07:44:57]New connection [07:44:57]New thread 3067133284 created [07:44:57]Thread 3067276644 joined [07:44:57]Waiting for new connection... [07:44:57] Sock 9.Parse request [07:44:57]Sock 9.Check first char [07:44:57]Sock 9.First char is OK [07:44:57]request: POST /json_proto HTTP/1.0 [07:44:57]Method: POST [07:44:57]URL: /json_proto [07:44:57]Method is POST - this is cgi request [07:44:57]url: /json_proto [07:44:57]query_string will be loaded in cgi processing [07:44:57]execute_cgi json_proto POST (null) [07:44:57]execute_cgi path=json_proto method=POST [07:44:57]POST find Content-Length [07:44:57]Host: 172.17.52.3:8080 [07:44:57]Content-Length: 677 [07:44:57]Content-Type: application/json [07:44:57] [07:44:57]POST finish read [07:44:57]Found Content-Length = 677 [07:44:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [07:44:57]execute_script... [07:44:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [07:44:57]POST & json_proto [07:44:57]process_json_proto [07:44:57]json parsed OK: [07:44:57]protocol is kg_v1.0 [07:44:57]action value=close_receipt [07:44:57]process_action close_receipt [07:44:57]cmd_close_receipt [07:44:57]MH_GetDate [07:44:57]Write to MH i2c: F0 00 00 81 26 96 [07:44:57]Write i2c OK [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: F0 [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: F0 09 00 [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: F0 09 00 81 26 00 80 A9 18 67 D7 68 A5 64 8F [07:44:57]GetLastDocTimeStamp 1729654237 [07:44:57]current date 1729669504 [07:44:57]FM_GetShiftState [07:44:57]SAM_PROTO_GetShiftState [07:44:57]wFMCommunicate request_size=4 [07:44:57]MH_SAM_APDU [07:44:57]CAPDU: 80 13 01 00 [07:44:57]Write to MH i2c: E2 08 00 82 26 80 13 01 00 00 00 00 00 25 [07:44:57]Write i2c OK [07:44:57]MH_I2C_Read... [07:44:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:44:57]Read from MH i2c: E2 [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: E2 0E 00 [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: E2 0E 00 82 26 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 94 [07:44:57]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [07:44:57]wFMCommunicate OK [07:44:57]SAM_PROTO_GetShiftState done [07:44:57]FM_GetShiftState done [07:44:57]opened in 1729641385 [07:44:57]opened+sec_in_day 1729727785 [07:44:57]quantity*price = 50041 [07:44:57]sum+1 = 50042 [07:44:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 5 23.10.2024 07:45 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68382 ФПД: 238058916441458 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T074505&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68382&fm=238058916441458&tin=02508201610067®Number=0000000000091756&sum=50000 [07:44:58]StoreToDocumentArchive [07:44:58]shift 507 fd 68382 [07:44:58]save to /storage/0507/doc_00068382 [07:44:58]save last doc name /storage/0507/doc_00068382 to /storage/kkm_last_doc_name [07:44:58]save OK [07:44:58]Clear old archive folders... [07:44:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:44:58]tlvbuf is 01FF90A0 [07:44:58]SAM_PROTO_ClearQueue [07:44:58]wFMCommunicate request_size=4 [07:44:58]MH_SAM_APDU [07:44:58]CAPDU: 80 09 00 00 [07:44:58]Write to MH i2c: E2 08 00 8F 26 80 09 00 00 00 00 00 00 27 [07:44:58]Write i2c OK [07:44:58]MH_I2C_Read... [07:44:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:44:58]Read from MH i2c: E2 [07:44:58]MH_I2C_Read... [07:44:58]Read from MH i2c: E2 03 00 [07:44:58]MH_I2C_Read... [07:44:58]Read from MH i2c: E2 03 00 8F 26 00 90 00 29 [07:44:58]RAPDU: 90 00 [07:44:58]wFMCommunicate OK [07:44:58]SAM_PROTO_ClearQueue done [07:44:58]KKMCreateOFDPacket [07:44:58]OFDProtocolAddRootSTLVToBuf [07:44:58]FM_MakeSignedData [07:44:58]FM_MakeSignedData [07:44:58]SAM_PROTO_SignData [07:44:58]wFMCommunicate request_size=4 [07:44:58]MH_SAM_APDU [07:44:58]CAPDU: 80 0D 01 02 [07:44:58]Write to MH i2c: E2 08 00 90 26 80 0D 01 02 00 00 00 00 2F [07:44:58]Write i2c OK [07:44:58]MH_I2C_Read... [07:44:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:44:58]Read from MH i2c: E2 [07:44:58]MH_I2C_Read... [07:44:58]Read from MH i2c: E2 03 00 [07:44:58]MH_I2C_Read... [07:44:58]Read from MH i2c: E2 03 00 90 26 00 90 00 2A [07:44:58]RAPDU: 90 00 [07:44:58]wFMCommunicate OK [07:44:58]wFMCommunicate request_size=255 [07:44:58]MH_SAM_APDU [07:44: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 32 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 81 A9 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 1E 0B 01 00 35 04 06 00 D8 [07:44:58]Write to MH i2c: E2 02 01 91 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 81 A9 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 1E 0B 01 00 35 04 06 00 D8 00 00 6B [07:44:58]Write i2c OK [07:44:58]MH_I2C_Read... [07:44:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:58]Read from MH i2c: E2 [07:44:58]MH_I2C_Read... [07:44:58]Read from MH i2c: E2 03 00 [07:44:58]MH_I2C_Read... [07:44:58]Read from MH i2c: E2 03 00 91 26 00 90 00 2B [07:44:58]RAPDU: 90 00 [07:44:58]wFMCommunicate OK [07:44:58]wFMCommunicate request_size=10 [07:44:58]MH_SAM_APDU [07:44:58]CAPDU: 80 0D 02 02 05 83 69 26 6D 72 [07:44:58]Write to MH i2c: E2 0D 00 92 26 80 0D 02 02 05 00 83 69 26 6D 72 00 00 2D [07:44:58]Write i2c OK [07:44:58]MH_I2C_Read... [07:44:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:58]Read from MH i2c: E2 [07:44:58]MH_I2C_Read... [07:44:58]Read from MH i2c: E2 03 00 [07:44:58]MH_I2C_Read... [07:44:58]Read from MH i2c: E2 03 00 92 26 00 90 00 2C [07:44:58]RAPDU: 90 00 [07:44:58]wFMCommunicate OK [07:44:58]wFMCommunicate request_size=4 [07:44:58]MH_SAM_APDU [07:44:58]CAPDU: 80 0D 03 02 [07:44:58]Write to MH i2c: E2 08 00 93 26 80 0D 03 02 00 00 00 00 34 [07:44:58]Write i2c OK [07:44:58]MH_I2C_Read... [07:44:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:44:58]Read from MH i2c: E2 [07:44:58]MH_I2C_Read... [07:44:58]Read from MH i2c: E2 0B 00 [07:44:58]MH_I2C_Read... [07:44:58]Read from MH i2c: E2 0B 00 93 26 00 EF 6D D8 2F 4C 00 10 88 90 00 7C [07:44:58]RAPDU: EF 6D D8 2F 4C 00 10 88 90 00 [07:44:58]wFMCommunicate OK [07:44:58]SAM_PROTO_SignData done [07:44:58]FM_MakeSignedData done [07:44:58]CreateOFDProtocolMessage [07:44:58]wFMCommunicate request_size=4 [07:44:58]MH_SAM_APDU [07:44:58]CAPDU: 80 11 00 00 [07:44:58]Write to MH i2c: E2 08 00 94 26 80 11 00 00 00 00 00 00 34 [07:44:58]Write i2c OK [07:44:58]MH_I2C_Read... [07:44:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:44:58]Read from MH i2c: E2 [07:44:58]MH_I2C_Read... [07:44:58]Read from MH i2c: E2 17 00 [07:44:58]MH_I2C_Read... [07:44:58]Read from MH i2c: E2 17 00 94 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 88 [07:44:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [07:44:58]wFMCommunicate OK [07:44:58]CreateOFDProtocolMessage done [07:44:58]OFDSenderStorePacket 68382 [07:44:58]StoreOFDPacket docnum=68382 [07:44:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 A0 CF 07 01 5D 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 81 A9 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 1E 0B 01 00 35 04 06 00 D8 83 69 26 6D 72 EF 6D D8 2F 4C 00 10 88 [07:44:58]CheckFolder [07:44:58]dirname=/storage/ofd_packets [07:44:58]CheckFolder done [07:44:58]ProducePacketName [07:44:58]name=ofd_packets/00068382 [07:44:58]NVStorageSaveData ofd_packets/00068382 [07:44:58]File name is /storage/ofd_packets/00068382 [07:44:58]Write 301 bytes [07:44:58]NVStorageSaveData done [07:44:58]OFDSenderStorePacket done [07:44:58]KKMCreateOFDPacket done [07:44:58]NVStorageSaveData kkm_last_timestamp [07:44:58]File name is /storage/kkm_last_timestamp [07:44:58]Write 4 bytes [07:44:58]NVStorageSaveData done [07:44:58]ExternCall_PrintAddStr [07:44:58]wPrintStart [07:44:58]Write to MH i2c: 01 00 00 95 26 BB [07:44:58]Write i2c OK [07:44:58]MH_I2C_Read... [07:44:58]Read from MH i2c: 01 [07:44:58]MH_I2C_Read... [07:44:58]Read from MH i2c: 01 07 00 [07:44:58]MH_I2C_Read... [07:44:58]Read from MH i2c: 01 07 00 95 26 00 04 00 00 00 FF 0F D4 [07:44:58]RasterBufferAndPrint [07:44:58]line Счет N : (1)210379 [07:44:58]line ИНН: 02508201610067 [07:44:58]line Контрольно-Кассовый Чек [07:44:58]line ПРОДАЖА [07:44:58]line ТРК (МРК, ГНК) : 11 [07:44:58]line Товар: 2710124130 [07:44:58]line Аи-92-К-2 [07:44:58]line 7.480 * 66.90 [07:44:58]line = 500.41 [07:44:58]line НДС 12% НСП 1% [07:44:58]line > о реализуемом товаре [07:44:58]line ОКРУГЛЕНИЕ: -0.41 [07:44:58]line ИТОГО: 500.00 [07:44:58]line Внесено: 500.00 [07:44:58]line СДАЧА: 0.00 [07:44:58]line НСП 1% : 4.43 [07:44:58]line НДС 12% : 53.14 [07:44:58]line Наличными: 500.00 [07:44:58]line Безнал.: 0.00 [07:44:58]line Место: АЗС № 147 "Партнер Нефть" [07:44:58]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [07:44:58]line СНО: Общий режим [07:44:58]line Чек 5 23.10.2024 07:45 [07:44:58]line Смена: 507 ФФД: 1.0 [07:44:58]line ЗНМ: 0300000094 [07:44:58]line РНМ: 0000000000091756 [07:44:58]line Версия ККМ: 001 [07:44:58]line ФМ: 0000000000871809 [07:44:58]line ФД: 68382 [07:44:58]line ФПД: 238058916441458 [07:44:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T074505&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68382&fm=238058916441458&tin=02508201610067®Number=0000000000091756&sum=50000 [07:44:58]written 0, free lines is 4095 [07:44:58]OFD Sender: Processing packet 68382 [packets to send 8, broken 7] [07:44:58]ProducePacketName [07:44:58]name=ofd_packets/00068382 [07:44:58]OFD Sender: To server: pG, [07:44:58]CommunicateWithHost lk.salyk.kg:30040 [07:44:58]ConnectInit lk.salyk.kg [07:44:59]Connected sock=10 [07:44:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 A0 CF 07 01 5D 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 81 A9 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 1E 0B 01 00 35 04 06 00 D8 83 69 26 6D 72 EF 6D D8 2F 4C 00 10 88 [07:44:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 04 0B 47 00 69 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 1E 0B 01 00 F4 03 04 00 76 4F 18 67 B6 04 01 00 00 25 73 56 F7 27 75 CD 7F [07:44:59]CommunicateWithHost err = 0 [07:44:59]CheckOFDResponse [07:44:59]1017 (14) - 77093643461234 [07:44:59]1041 (16) - 0000000000871809 [07:44:59]1040 (4) - 68382 [07:44:59]1012 (4) - 23.10.2024 01:20 [07:44:59]1206 (1) - 0 [07:44:59]OFD Sender: Remove packet 68382 [07:44:59]ProducePacketName [07:44:59]name=ofd_packets/00068382 [07:44:59]NVStorageDeleteData [07:44:59]Write to MH i2c: 01 00 00 BF 26 E5 [07:44:59]Write i2c OK [07:44:59]MH_I2C_Read... [07:44:59]Read from MH i2c: 01 [07:44:59]MH_I2C_Read... [07:44:59]Read from MH i2c: 01 07 00 [07:44:59]MH_I2C_Read... [07:44:59]Read from MH i2c: 01 07 00 BF 26 00 04 00 00 00 B5 0C B1 [07:44:59]RasterBufferAndPrint [07:44:59]line [07:44:59]line [07:44:59]line [07:44:59]line [07:44:59]line [07:44:59]written 0, free lines is 3257 [07:44:59]MH_Cut [07:44:59]Write to MH i2c: D1 01 00 C6 26 01 BE [07:44:59]Write i2c OK [07:44:59]MH_I2C_Read... [07:44:59]Read from MH i2c: D1 [07:44:59]MH_I2C_Read... [07:44:59]Read from MH i2c: D1 01 00 [07:44:59]MH_I2C_Read... [07:44:59]Read from MH i2c: D1 01 00 C6 26 00 BD [07:44:59]Write to MH i2c: 01 00 00 C7 26 ED [07:44:59]Write i2c OK [07:44:59]MH_I2C_Read... [07:44:59]OFD Sender: No OFD packet to send [07:45:00]*** Cut start [07:45:00]*** Partial cut [07:45:00]*** CUTSNS_PIN = 1 [07:45:00]*** CUTSNS_PIN = 0 [07:45:00]*** Brake cut motor [07:45:00]Read from MH i2c: 01 [07:45:00]MH_I2C_Read... [07:45:00]*** Stop cut motor [07:45:00]*** Cut end [07:45:00]Read from MH i2c: 01 07 00 [07:45:00]MH_I2C_Read... [07:45:00]Read from MH i2c: 01 07 00 C7 26 00 04 00 00 00 FF 0F 06 [07:45:00]process_action close_receipt done [07:45:00]requested_data is exist [07:45:00]produce_requested_data [07:45:00]requested_item fm.sn is exist - process it [07:45:00]wFMCommunicate request_size=4 [07:45:00]MH_SAM_APDU [07:45:00]CAPDU: 80 11 00 00 [07:45:00]Write to MH i2c: E2 08 00 C8 26 80 11 00 00 00 00 00 00 68 [07:45:00]Write i2c OK [07:45:00]MH_I2C_Read... [07:45:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:45:00]Read from MH i2c: E2 [07:45:00]MH_I2C_Read... [07:45:00]Read from MH i2c: E2 17 00 [07:45:00]MH_I2C_Read... [07:45:00]Read from MH i2c: E2 17 00 C8 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 BC [07:45:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [07:45:00]wFMCommunicate OK [07:45:00]requested_item fd.num is exist - process it [07:45:00]SAM_PROTO_GetFieldsCounters [07:45:00]wFMCommunicate request_size=4 [07:45:00]MH_SAM_APDU [07:45:00]CAPDU: 80 13 00 00 [07:45:00]Write to MH i2c: E2 08 00 C9 26 80 13 00 00 00 00 00 00 6B [07:45:00]Write i2c OK [07:45:00]MH_I2C_Read... [07:45:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:45:00]Read from MH i2c: E2 [07:45:00]MH_I2C_Read... [07:45:00]Read from MH i2c: E2 62 00 [07:45:00]MH_I2C_Read... [07:45:00]Read from MH i2c: E2 62 00 C9 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 1E 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [07:45:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 1E 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:45:00]wFMCommunicate OK [07:45:00]SAM_PROTO_GetFieldsCounters done [07:45:00]requested_item shift.num is exist - process it [07:45:00]requested_item shift.opened is exist - process it [07:45:00]req_shift_opened [07:45:01]FM_GetShiftState [07:45:01]SAM_PROTO_GetShiftState [07:45:01]wFMCommunicate request_size=4 [07:45:01]MH_SAM_APDU [07:45:01]CAPDU: 80 13 01 00 [07:45:01]Write to MH i2c: E2 08 00 CA 26 80 13 01 00 00 00 00 00 6D [07:45:01]Write i2c OK [07:45:01]MH_I2C_Read... [07:45:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:45:01]Read from MH i2c: E2 [07:45:01]MH_I2C_Read... [07:45:01]Read from MH i2c: E2 0E 00 [07:45:01]MH_I2C_Read... [07:45:01]Read from MH i2c: E2 0E 00 CA 26 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 DC [07:45:01]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [07:45:01]wFMCommunicate OK [07:45:01]SAM_PROTO_GetShiftState done [07:45:01]FM_GetShiftState done [07:45:01]req_shift_opened done [07:45:01]requested_item shift.open_date is exist - process it [07:45:01]req_shift_open_date [07:45:01]req_shift_open_date done [07:45:01]produce_requested_data done [07:45:01]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68382,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [07:45:01]process_action_free close_receipt [07:45:01]json_value_free [07:45:01]json_value_free done [07:45:01]process_json_proto returns [07:45:01]Send response to host [07:45:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68382,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [07:45:01]free response buf [07:45:01]execute_script done [07:45:01]execute_script returns [07:45:01]free content buf [07:45:01]Sock 9.Close socket [07:45:01]Sock 9.Thread stoped [07:45:04]OFD Sender: No OFD packet to send [07:45:09]OFD Sender: No OFD packet to send [07:45:14]OFD Sender: No OFD packet to send [07:45:19]OFD Sender: No OFD packet to send [07:45:24]OFD Sender: No OFD packet to send [07:45:29]OFD Sender: No OFD packet to send [07:45:34]OFD Sender: No OFD packet to send [07:45:39]OFD Sender: No OFD packet to send [07:45:44]OFD Sender: No OFD packet to send [07:45:49]OFD Sender: No OFD packet to send [07:45:54]OFD Sender: No OFD packet to send [07:45:59]OFD Sender: No OFD packet to send [07:46:04]OFD Sender: No OFD packet to send [07:46:09]OFD Sender: No OFD packet to send [07:46:14]OFD Sender: No OFD packet to send [07:46:19]OFD Sender: No OFD packet to send [07:46:24]OFD Sender: No OFD packet to send [07:46:29]OFD Sender: No OFD packet to send [07:46:34]OFD Sender: No OFD packet to send [07:46:39]OFD Sender: No OFD packet to send [07:46:44]OFD Sender: No OFD packet to send [07:46:46]accept exits with 7 [07:46:46]New connection [07:46:46]New thread 3067276644 created [07:46:46]Thread 3067133284 joined [07:46:46]Waiting for new connection... [07:46:46] Sock 7.Parse request [07:46:46]Sock 7.Check first char [07:46:46]Sock 7.First char is OK [07:46:46]request: POST /json_proto HTTP/1.0 [07:46:46]Method: POST [07:46:46]URL: /json_proto [07:46:46]Method is POST - this is cgi request [07:46:46]url: /json_proto [07:46:46]query_string will be loaded in cgi processing [07:46:46]execute_cgi json_proto POST (null) [07:46:46]execute_cgi path=json_proto method=POST [07:46:46]POST find Content-Length [07:46:46]Host: 172.17.52.3:8080 [07:46:46]Content-Length: 677 [07:46:46]Content-Type: application/json [07:46:46] [07:46:46]POST finish read [07:46:46]Found Content-Length = 677 [07:46:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [07:46:46]execute_script... [07:46: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)210380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [07:46:46]POST & json_proto [07:46:46]process_json_proto [07:46:46]json parsed OK: [07:46:46]protocol is kg_v1.0 [07:46:46]action value=close_receipt [07:46:46]process_action close_receipt [07:46:46]cmd_close_receipt [07:46:46]MH_GetDate [07:46:46]Write to MH i2c: F0 00 00 CB 26 E0 [07:46:46]Write i2c OK [07:46:46]MH_I2C_Read... [07:46:46]Read from MH i2c: F0 [07:46:46]MH_I2C_Read... [07:46:46]Read from MH i2c: F0 09 00 [07:46:46]MH_I2C_Read... [07:46:46]Read from MH i2c: F0 09 00 CB 26 00 ED A9 18 67 D7 68 A5 64 46 [07:46:46]GetLastDocTimeStamp 1729669505 [07:46:46]current date 1729669613 [07:46:46]FM_GetShiftState [07:46:46]SAM_PROTO_GetShiftState [07:46:46]wFMCommunicate request_size=4 [07:46:46]MH_SAM_APDU [07:46:46]CAPDU: 80 13 01 00 [07:46:46]Write to MH i2c: E2 08 00 CC 26 80 13 01 00 00 00 00 00 6F [07:46:46]Write i2c OK [07:46:46]MH_I2C_Read... [07:46:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:46]Read from MH i2c: E2 [07:46:46]MH_I2C_Read... [07:46:46]Read from MH i2c: E2 0E 00 [07:46:46]MH_I2C_Read... [07:46:46]Read from MH i2c: E2 0E 00 CC 26 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 DE [07:46:46]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [07:46:46]wFMCommunicate OK [07:46:46]SAM_PROTO_GetShiftState done [07:46:46]FM_GetShiftState done [07:46:46]opened in 1729641385 [07:46:46]opened+sec_in_day 1729727785 [07:46:46]quantity*price = 40006 [07:46:46]sum+1 = 40007 [07:46:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 6 23.10.2024 07:46 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68383 ФПД: 74705468066307 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T074653&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68383&fm=74705468066307&tin=02508201610067®Number=0000000000091756&sum=40000 [07:46:47]StoreToDocumentArchive [07:46:47]shift 507 fd 68383 [07:46:47]save to /storage/0507/doc_00068383 [07:46:47]save last doc name /storage/0507/doc_00068383 to /storage/kkm_last_doc_name [07:46:47]save OK [07:46:47]Clear old archive folders... [07:46:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:46:47]tlvbuf is 0200A0B0 [07:46:47]SAM_PROTO_ClearQueue [07:46:47]wFMCommunicate request_size=4 [07:46:47]MH_SAM_APDU [07:46:47]CAPDU: 80 09 00 00 [07:46:47]Write to MH i2c: E2 08 00 D9 26 80 09 00 00 00 00 00 00 71 [07:46:47]Write i2c OK [07:46:47]MH_I2C_Read... [07:46:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:46:47]Read from MH i2c: E2 [07:46:47]MH_I2C_Read... [07:46:47]Read from MH i2c: E2 03 00 [07:46:47]MH_I2C_Read... [07:46:47]Read from MH i2c: E2 03 00 D9 26 00 90 00 73 [07:46:47]RAPDU: 90 00 [07:46:47]wFMCommunicate OK [07:46:47]SAM_PROTO_ClearQueue done [07:46:47]KKMCreateOFDPacket [07:46:47]OFDProtocolAddRootSTLVToBuf [07:46:47]FM_MakeSignedData [07:46:47]FM_MakeSignedData [07:46:47]SAM_PROTO_SignData [07:46:47]wFMCommunicate request_size=4 [07:46:47]MH_SAM_APDU [07:46:47]CAPDU: 80 0D 01 02 [07:46:47]Write to MH i2c: E2 08 00 DA 26 80 0D 01 02 00 00 00 00 79 [07:46:47]Write i2c OK [07:46:47]MH_I2C_Read... [07:46:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:46:47]Read from MH i2c: E2 [07:46:47]MH_I2C_Read... [07:46:47]Read from MH i2c: E2 03 00 [07:46:47]MH_I2C_Read... [07:46:47]Read from MH i2c: E2 03 00 DA 26 00 90 00 74 [07:46:47]RAPDU: 90 00 [07:46:47]wFMCommunicate OK [07:46:47]wFMCommunicate request_size=255 [07:46:47]MH_SAM_APDU [07:46: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 32 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 06 00 00 00 F4 03 04 00 ED A9 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 1F 0B 01 00 35 04 06 00 43 [07:46:47]Write to MH i2c: E2 02 01 DB 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 06 00 00 00 F4 03 04 00 ED A9 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 1F 0B 01 00 35 04 06 00 43 00 00 5D [07:46:47]Write i2c OK [07:46:47]MH_I2C_Read... [07:46:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:47]Read from MH i2c: E2 [07:46:47]MH_I2C_Read... [07:46:47]Read from MH i2c: E2 03 00 [07:46:47]MH_I2C_Read... [07:46:47]Read from MH i2c: E2 03 00 DB 26 00 90 00 75 [07:46:47]RAPDU: 90 00 [07:46:47]wFMCommunicate OK [07:46:47]wFMCommunicate request_size=10 [07:46:47]MH_SAM_APDU [07:46:47]CAPDU: 80 0D 02 02 05 F1 B8 E3 0A 03 [07:46:47]Write to MH i2c: E2 0D 00 DC 26 80 0D 02 02 05 00 F1 B8 E3 0A 03 00 00 1F [07:46:47]Write i2c OK [07:46:47]MH_I2C_Read... [07:46:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:47]Read from MH i2c: E2 [07:46:47]MH_I2C_Read... [07:46:47]Read from MH i2c: E2 03 00 [07:46:47]MH_I2C_Read... [07:46:47]Read from MH i2c: E2 03 00 DC 26 00 90 00 76 [07:46:47]RAPDU: 90 00 [07:46:47]wFMCommunicate OK [07:46:47]wFMCommunicate request_size=4 [07:46:47]MH_SAM_APDU [07:46:47]CAPDU: 80 0D 03 02 [07:46:47]Write to MH i2c: E2 08 00 DD 26 80 0D 03 02 00 00 00 00 7E [07:46:47]Write i2c OK [07:46:47]MH_I2C_Read... [07:46:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:46:47]Read from MH i2c: E2 [07:46:47]MH_I2C_Read... [07:46:47]Read from MH i2c: E2 0B 00 [07:46:47]MH_I2C_Read... [07:46:47]Read from MH i2c: E2 0B 00 DD 26 00 DD 27 3E 74 F6 F5 F7 8A 90 00 A1 [07:46:47]RAPDU: DD 27 3E 74 F6 F5 F7 8A 90 00 [07:46:47]wFMCommunicate OK [07:46:47]SAM_PROTO_SignData done [07:46:47]FM_MakeSignedData done [07:46:47]CreateOFDProtocolMessage [07:46:47]wFMCommunicate request_size=4 [07:46:47]MH_SAM_APDU [07:46:47]CAPDU: 80 11 00 00 [07:46:47]Write to MH i2c: E2 08 00 DE 26 80 11 00 00 00 00 00 00 7E [07:46:47]Write i2c OK [07:46:47]MH_I2C_Read... [07:46:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:47]Read from MH i2c: E2 [07:46:47]MH_I2C_Read... [07:46:47]Read from MH i2c: E2 17 00 [07:46:47]MH_I2C_Read... [07:46:47]Read from MH i2c: E2 17 00 DE 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 D2 [07:46:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [07:46:47]wFMCommunicate OK [07:46:47]CreateOFDProtocolMessage done [07:46:47]OFDSenderStorePacket 68383 [07:46:47]StoreOFDPacket docnum=68383 [07:46:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 D7 59 07 01 30 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 06 00 00 00 F4 03 04 00 ED A9 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 1F 0B 01 00 35 04 06 00 43 F1 B8 E3 0A 03 DD 27 3E 74 F6 F5 F7 8A [07:46:47]CheckFolder [07:46:47]dirname=/storage/ofd_packets [07:46:47]CheckFolder done [07:46:47]ProducePacketName [07:46:47]name=ofd_packets/00068383 [07:46:47]NVStorageSaveData ofd_packets/00068383 [07:46:47]File name is /storage/ofd_packets/00068383 [07:46:47]Write 301 bytes [07:46:47]NVStorageSaveData done [07:46:47]OFDSenderStorePacket done [07:46:47]KKMCreateOFDPacket done [07:46:47]NVStorageSaveData kkm_last_timestamp [07:46:47]File name is /storage/kkm_last_timestamp [07:46:47]Write 4 bytes [07:46:47]NVStorageSaveData done [07:46:47]ExternCall_PrintAddStr [07:46:47]wPrintStart [07:46:47]Write to MH i2c: 01 00 00 DF 26 05 [07:46:47]Write i2c OK [07:46:47]MH_I2C_Read... [07:46:47]Read from MH i2c: 01 [07:46:47]MH_I2C_Read... [07:46:47]Read from MH i2c: 01 07 00 [07:46:47]MH_I2C_Read... [07:46:47]Read from MH i2c: 01 07 00 DF 26 00 04 00 00 00 FF 0F 1E [07:46:47]RasterBufferAndPrint [07:46:47]line Счет N : (1)210380 [07:46:47]line ИНН: 02508201610067 [07:46:47]line Контрольно-Кассовый Чек [07:46:47]line ПРОДАЖА [07:46:47]line ТРК (МРК, ГНК) : 11 [07:46:47]line Товар: 2710124130 [07:46:47]line Аи-92-К-2 [07:46:47]line 5.980 * 66.90 [07:46:47]line = 400.06 [07:46:47]line НДС 12% НСП 1% [07:46:47]line > о реализуемом товаре [07:46:47]line ОКРУГЛЕНИЕ: -0.06 [07:46:47]line ИТОГО: 400.00 [07:46:47]line Внесено: 400.00 [07:46:47]line СДАЧА: 0.00 [07:46:47]line НСП 1% : 3.54 [07:46:47]line НДС 12% : 42.48 [07:46:47]line Наличными: 400.00 [07:46:47]line Безнал.: 0.00 [07:46:47]line Место: АЗС № 147 "Партнер Нефть" [07:46:47]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [07:46:47]line СНО: Общий режим [07:46:47]line Чек 6 23.10.2024 07:46 [07:46:47]line Смена: 507 ФФД: 1.0 [07:46:47]line ЗНМ: 0300000094 [07:46:47]line РНМ: 0000000000091756 [07:46:47]line Версия ККМ: 001 [07:46:47]line ФМ: 0000000000871809 [07:46:47]line ФД: 68383 [07:46:47]line ФПД: 74705468066307 [07:46:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T074653&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68383&fm=74705468066307&tin=02508201610067®Number=0000000000091756&sum=40000 [07:46:47]written 0, free lines is 4095 [07:46:47]OFD Sender: Processing packet 68383 [packets to send 8, broken 7] [07:46:47]ProducePacketName [07:46:47]name=ofd_packets/00068383 [07:46:48]OFD Sender: To server: pG, [07:46:48]CommunicateWithHost lk.salyk.kg:30040 [07:46:48]ConnectInit lk.salyk.kg [07:46:48]Connected sock=10 [07:46:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 D7 59 07 01 30 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 06 00 00 00 F4 03 04 00 ED A9 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 1F 0B 01 00 35 04 06 00 43 F1 B8 E3 0A 03 DD 27 3E 74 F6 F5 F7 8A [07:46:48]Write to MH i2c: 01 00 00 09 27 30 [07:46:48]Write i2c OK [07:46:48]MH_I2C_Read... [07:46:48]Read from MH i2c: 01 [07:46:48]MH_I2C_Read... [07:46:48]Read from MH i2c: 01 07 00 [07:46:48]MH_I2C_Read... [07:46:48]Read from MH i2c: 01 07 00 09 27 00 04 00 00 00 BB 0C 02 [07:46:48]RasterBufferAndPrint [07:46:48]line [07:46:48]line [07:46:48]line [07:46:48]line [07:46:48]line [07:46:48]written 0, free lines is 3266 [07:46:48]MH_Cut [07:46:48]Write to MH i2c: D1 01 00 10 27 01 09 [07:46:48]Write i2c OK [07:46:48]MH_I2C_Read... [07:46:48]Read from MH i2c: D1 [07:46:48]MH_I2C_Read... [07:46:48]Read from MH i2c: D1 01 00 [07:46:48]MH_I2C_Read... [07:46:48]Read from MH i2c: D1 01 00 10 27 00 08 [07:46:48]Write to MH i2c: 01 00 00 11 27 38 [07:46:48]Write i2c OK [07:46:48]MH_I2C_Read... [07:46:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 78 6A 47 00 7F D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 1F 0B 01 00 F4 03 04 00 E3 4F 18 67 B6 04 01 00 00 B0 61 86 81 9D 08 0D 28 [07:46:48]CommunicateWithHost err = 0 [07:46:48]CheckOFDResponse [07:46:48]1017 (14) - 77093643461234 [07:46:48]1041 (16) - 0000000000871809 [07:46:48]1040 (4) - 68383 [07:46:48]1012 (4) - 23.10.2024 01:22 [07:46:48]1206 (1) - 0 [07:46:48]OFD Sender: Remove packet 68383 [07:46:48]ProducePacketName [07:46:48]name=ofd_packets/00068383 [07:46:48]NVStorageDeleteData [07:46:49]OFD Sender: No OFD packet to send [07:46:49]*** Cut start [07:46:49]*** Partial cut [07:46:49]*** CUTSNS_PIN = 1 [07:46:49]*** CUTSNS_PIN = 0 [07:46:49]*** Brake cut motor [07:46:49]Read from MH i2c: 01 [07:46:49]MH_I2C_Read... [07:46:49]*** Stop cut motor [07:46:49]*** Cut end [07:46:49]Read from MH i2c: 01 07 00 [07:46:49]MH_I2C_Read... [07:46:49]Read from MH i2c: 01 07 00 11 27 00 04 00 00 00 FF 0F 51 [07:46:49]process_action close_receipt done [07:46:49]requested_data is exist [07:46:49]produce_requested_data [07:46:49]requested_item fm.sn is exist - process it [07:46:49]wFMCommunicate request_size=4 [07:46:49]MH_SAM_APDU [07:46:49]CAPDU: 80 11 00 00 [07:46:49]Write to MH i2c: E2 08 00 12 27 80 11 00 00 00 00 00 00 B3 [07:46:49]Write i2c OK [07:46:49]MH_I2C_Read... [07:46:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:49]Read from MH i2c: E2 [07:46:49]MH_I2C_Read... [07:46:49]Read from MH i2c: E2 17 00 [07:46:49]MH_I2C_Read... [07:46:49]Read from MH i2c: E2 17 00 12 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 07 [07:46:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [07:46:49]wFMCommunicate OK [07:46:49]requested_item fd.num is exist - process it [07:46:49]SAM_PROTO_GetFieldsCounters [07:46:49]wFMCommunicate request_size=4 [07:46:49]MH_SAM_APDU [07:46:49]CAPDU: 80 13 00 00 [07:46:49]Write to MH i2c: E2 08 00 13 27 80 13 00 00 00 00 00 00 B6 [07:46:49]Write i2c OK [07:46:49]MH_I2C_Read... [07:46:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:46:49]Read from MH i2c: E2 [07:46:49]MH_I2C_Read... [07:46:49]Read from MH i2c: E2 62 00 [07:46:49]MH_I2C_Read... [07:46:49]Read from MH i2c: E2 62 00 13 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 1F 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [07:46:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 1F 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:46:49]wFMCommunicate OK [07:46:49]SAM_PROTO_GetFieldsCounters done [07:46:49]requested_item shift.num is exist - process it [07:46:49]requested_item shift.opened is exist - process it [07:46:49]req_shift_opened [07:46:49]FM_GetShiftState [07:46:49]SAM_PROTO_GetShiftState [07:46:49]wFMCommunicate request_size=4 [07:46:49]MH_SAM_APDU [07:46:49]CAPDU: 80 13 01 00 [07:46:49]Write to MH i2c: E2 08 00 14 27 80 13 01 00 00 00 00 00 B8 [07:46:49]Write i2c OK [07:46:49]MH_I2C_Read... [07:46:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:50]Read from MH i2c: E2 [07:46:50]MH_I2C_Read... [07:46:50]Read from MH i2c: E2 0E 00 [07:46:50]MH_I2C_Read... [07:46:50]Read from MH i2c: E2 0E 00 14 27 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 27 [07:46:50]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [07:46:50]wFMCommunicate OK [07:46:50]SAM_PROTO_GetShiftState done [07:46:50]FM_GetShiftState done [07:46:50]req_shift_opened done [07:46:50]requested_item shift.open_date is exist - process it [07:46:50]req_shift_open_date [07:46:50]req_shift_open_date done [07:46:50]produce_requested_data done [07:46:50]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68383,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [07:46:50]process_action_free close_receipt [07:46:50]json_value_free [07:46:50]json_value_free done [07:46:50]process_json_proto returns [07:46:50]Send response to host [07:46:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68383,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [07:46:50]free response buf [07:46:50]execute_script done [07:46:50]execute_script returns [07:46:50]free content buf [07:46:50]Sock 7.Close socket [07:46:50]Sock 7.Thread stoped [07:46:54]OFD Sender: No OFD packet to send [07:46:59]OFD Sender: No OFD packet to send [07:47:04]OFD Sender: No OFD packet to send [07:47:09]OFD Sender: No OFD packet to send [07:47:14]OFD Sender: No OFD packet to send [07:47:19]OFD Sender: No OFD packet to send [07:47:24]OFD Sender: No OFD packet to send [07:47:29]OFD Sender: No OFD packet to send [07:47:34]OFD Sender: No OFD packet to send [07:47:39]OFD Sender: No OFD packet to send [07:47:44]OFD Sender: No OFD packet to send [07:47:49]OFD Sender: No OFD packet to send [07:47:54]OFD Sender: No OFD packet to send [07:47:59]OFD Sender: No OFD packet to send [07:48:04]OFD Sender: No OFD packet to send [07:48:09]OFD Sender: No OFD packet to send [07:48:14]OFD Sender: No OFD packet to send [07:48:19]OFD Sender: No OFD packet to send [07:48:24]OFD Sender: No OFD packet to send [07:48:29]OFD Sender: No OFD packet to send [07:48:34]OFD Sender: No OFD packet to send [07:48:39]OFD Sender: No OFD packet to send [07:48:44]OFD Sender: No OFD packet to send [07:48:49]OFD Sender: No OFD packet to send [07:48:54]OFD Sender: No OFD packet to send [07:48:59]OFD Sender: No OFD packet to send [07:49:04]OFD Sender: No OFD packet to send [07:49:09]OFD Sender: No OFD packet to send [07:49:14]OFD Sender: No OFD packet to send [07:49:19]OFD Sender: No OFD packet to send [07:49:24]OFD Sender: No OFD packet to send [07:49:29]OFD Sender: No OFD packet to send [07:49:34]OFD Sender: No OFD packet to send [07:49:39]OFD Sender: No OFD packet to send [07:49:44]OFD Sender: No OFD packet to send [07:49:49]OFD Sender: No OFD packet to send [07:49:54]OFD Sender: No OFD packet to send [07:49:59]OFD Sender: No OFD packet to send [07:50:04]OFD Sender: No OFD packet to send [07:50:09]OFD Sender: No OFD packet to send [07:50:14]OFD Sender: No OFD packet to send [07:50:19]OFD Sender: No OFD packet to send [07:50:24]OFD Sender: No OFD packet to send [07:50:29]OFD Sender: No OFD packet to send [07:50:34]OFD Sender: No OFD packet to send [07:50:39]OFD Sender: No OFD packet to send [07:50:44]OFD Sender: No OFD packet to send [07:50:49]OFD Sender: No OFD packet to send [07:50:54]OFD Sender: No OFD packet to send [07:50:59]OFD Sender: No OFD packet to send [07:51:04]OFD Sender: No OFD packet to send [07:51:09]OFD Sender: No OFD packet to send [07:51:14]OFD Sender: No OFD packet to send [07:51:19]OFD Sender: No OFD packet to send [07:51:24]OFD Sender: No OFD packet to send [07:51:29]OFD Sender: No OFD packet to send [07:51:34]OFD Sender: No OFD packet to send [07:51:39]OFD Sender: No OFD packet to send [07:51:44]OFD Sender: No OFD packet to send [07:51:49]OFD Sender: No OFD packet to send [07:51:54]OFD Sender: No OFD packet to send [07:51:59]OFD Sender: No OFD packet to send [07:52:04]OFD Sender: No OFD packet to send [07:52:09]OFD Sender: No OFD packet to send [07:52:14]OFD Sender: No OFD packet to send [07:52:19]OFD Sender: No OFD packet to send [07:52:24]OFD Sender: No OFD packet to send [07:52:29]OFD Sender: No OFD packet to send [07:52:34]OFD Sender: No OFD packet to send [07:52:39]OFD Sender: No OFD packet to send [07:52:44]OFD Sender: No OFD packet to send [07:52:49]OFD Sender: No OFD packet to send [07:52:54]OFD Sender: No OFD packet to send [07:52:59]OFD Sender: No OFD packet to send [07:53:04]OFD Sender: No OFD packet to send [07:53:09]OFD Sender: No OFD packet to send [07:53:14]OFD Sender: No OFD packet to send [07:53:19]OFD Sender: No OFD packet to send [07:53:24]OFD Sender: No OFD packet to send [07:53:29]OFD Sender: No OFD packet to send [07:53:34]OFD Sender: No OFD packet to send [07:53:39]OFD Sender: No OFD packet to send [07:53:44]OFD Sender: No OFD packet to send [07:53:49]OFD Sender: No OFD packet to send [07:53:54]OFD Sender: No OFD packet to send [07:53:59]OFD Sender: No OFD packet to send [07:54:04]OFD Sender: No OFD packet to send [07:54:09]OFD Sender: No OFD packet to send [07:54:14]OFD Sender: No OFD packet to send [07:54:19]OFD Sender: No OFD packet to send [07:54:24]OFD Sender: No OFD packet to send [07:54:29]OFD Sender: No OFD packet to send [07:54:34]OFD Sender: No OFD packet to send [07:54:39]OFD Sender: No OFD packet to send [07:54:44]OFD Sender: No OFD packet to send [07:54:49]OFD Sender: No OFD packet to send [07:54:54]OFD Sender: No OFD packet to send [07:54:59]OFD Sender: No OFD packet to send [07:55:04]OFD Sender: No OFD packet to send [07:55:09]OFD Sender: No OFD packet to send [07:55:14]OFD Sender: No OFD packet to send [07:55:16]accept exits with 9 [07:55:16]New connection [07:55:16]New thread 3067133284 created [07:55:16]Thread 3067276644 joined [07:55:16]Waiting for new connection... [07:55:16] Sock 9.Parse request [07:55:16]Sock 9.Check first char [07:55:16]Sock 9.First char is OK [07:55:16]request: POST /json_proto HTTP/1.0 [07:55:16]Method: POST [07:55:16]URL: /json_proto [07:55:16]Method is POST - this is cgi request [07:55:16]url: /json_proto [07:55:16]query_string will be loaded in cgi processing [07:55:16]execute_cgi json_proto POST (null) [07:55:16]execute_cgi path=json_proto method=POST [07:55:16]POST find Content-Length [07:55:16]Host: 172.17.52.3:8080 [07:55:16]Content-Length: 791 [07:55:16]Content-Type: application/json [07:55:16] [07:55:16]POST finish read [07:55:16]Found Content-Length = 791 [07:55:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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\u000A97787", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:55:16]execute_script... [07:55: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)210381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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\u000A97787", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:55:16]POST & json_proto [07:55:16]process_json_proto [07:55:16]json parsed OK: [07:55:16]protocol is kg_v1.0 [07:55:16]action value=close_receipt [07:55:16]process_action close_receipt [07:55:16]cmd_close_receipt [07:55:16]MH_GetDate [07:55:16]Write to MH i2c: F0 00 00 15 27 2B [07:55:16]Write i2c OK [07:55:16]MH_I2C_Read... [07:55:16]Read from MH i2c: F0 [07:55:16]MH_I2C_Read... [07:55:16]Read from MH i2c: F0 09 00 [07:55:16]MH_I2C_Read... [07:55:16]Read from MH i2c: F0 09 00 15 27 00 EC AB 18 67 D7 68 A5 64 92 [07:55:16]GetLastDocTimeStamp 1729669613 [07:55:16]current date 1729670124 [07:55:16]FM_GetShiftState [07:55:16]SAM_PROTO_GetShiftState [07:55:16]wFMCommunicate request_size=4 [07:55:16]MH_SAM_APDU [07:55:16]CAPDU: 80 13 01 00 [07:55:16]Write to MH i2c: E2 08 00 16 27 80 13 01 00 00 00 00 00 BA [07:55:16]Write i2c OK [07:55:16]MH_I2C_Read... [07:55:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:55:16]Read from MH i2c: E2 [07:55:16]MH_I2C_Read... [07:55:16]Read from MH i2c: E2 0E 00 [07:55:16]MH_I2C_Read... [07:55:16]Read from MH i2c: E2 0E 00 16 27 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 29 [07:55:16]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [07:55:16]wFMCommunicate OK [07:55:16]SAM_PROTO_GetShiftState done [07:55:16]FM_GetShiftState done [07:55:16]opened in 1729641385 [07:55:16]opened+sec_in_day 1729727785 [07:55:16]quantity*price = 0 [07:55:16]sum+1 = 1 [07:55:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 7 23.10.2024 07:55 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 Талоны: Топливная Карта 97787 ФМ: 0000000000871809 ФД: 68384 ФПД: 198421490618618 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T075524&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68384&fm=198421490618618&tin=02508201610067®Number=0000000000091756&sum=0 [07:55:17]StoreToDocumentArchive [07:55:17]shift 507 fd 68384 [07:55:17]save to /storage/0507/doc_00068384 [07:55:17]save last doc name /storage/0507/doc_00068384 to /storage/kkm_last_doc_name [07:55:17]save OK [07:55:17]Clear old archive folders... [07:55:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:55:17]tlvbuf is 02013F40 [07:55:17]SAM_PROTO_ClearQueue [07:55:17]wFMCommunicate request_size=4 [07:55:17]MH_SAM_APDU [07:55:17]CAPDU: 80 09 00 00 [07:55:17]Write to MH i2c: E2 08 00 23 27 80 09 00 00 00 00 00 00 BC [07:55:17]Write i2c OK [07:55:17]MH_I2C_Read... [07:55:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:55:17]Read from MH i2c: E2 [07:55:17]MH_I2C_Read... [07:55:17]Read from MH i2c: E2 03 00 [07:55:17]MH_I2C_Read... [07:55:17]Read from MH i2c: E2 03 00 23 27 00 90 00 BE [07:55:17]RAPDU: 90 00 [07:55:17]wFMCommunicate OK [07:55:17]SAM_PROTO_ClearQueue done [07:55:17]KKMCreateOFDPacket [07:55:17]OFDProtocolAddRootSTLVToBuf [07:55:17]FM_MakeSignedData [07:55:17]FM_MakeSignedData [07:55:17]SAM_PROTO_SignData [07:55:17]wFMCommunicate request_size=4 [07:55:17]MH_SAM_APDU [07:55:17]CAPDU: 80 0D 01 02 [07:55:17]Write to MH i2c: E2 08 00 24 27 80 0D 01 02 00 00 00 00 C4 [07:55:17]Write i2c OK [07:55:17]MH_I2C_Read... [07:55:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:55:17]Read from MH i2c: E2 [07:55:17]MH_I2C_Read... [07:55:17]Read from MH i2c: E2 03 00 [07:55:17]MH_I2C_Read... [07:55:17]Read from MH i2c: E2 03 00 24 27 00 90 00 BF [07:55:17]RAPDU: 90 00 [07:55:17]wFMCommunicate OK [07:55:17]wFMCommunicate request_size=255 [07:55:17]MH_SAM_APDU [07:55: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 32 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 07 00 00 00 F4 03 04 00 EC AB 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 20 0B 01 00 35 04 06 00 B4 [07:55:17]Write to MH i2c: E2 02 01 25 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 07 00 00 00 F4 03 04 00 EC AB 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 20 0B 01 00 35 04 06 00 B4 00 00 1D [07:55:17]Write i2c OK [07:55:17]MH_I2C_Read... [07:55:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:55:18]Read from MH i2c: E2 [07:55:18]MH_I2C_Read... [07:55:18]Read from MH i2c: E2 03 00 [07:55:18]MH_I2C_Read... [07:55:18]Read from MH i2c: E2 03 00 25 27 00 90 00 C0 [07:55:18]RAPDU: 90 00 [07:55:18]wFMCommunicate OK [07:55:18]wFMCommunicate request_size=10 [07:55:18]MH_SAM_APDU [07:55:18]CAPDU: 80 0D 02 02 05 76 9A 76 D0 FA [07:55:18]Write to MH i2c: E2 0D 00 26 27 80 0D 02 02 05 00 76 9A 76 D0 FA 00 00 21 [07:55:18]Write i2c OK [07:55:18]MH_I2C_Read... [07:55:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:55:18]Read from MH i2c: E2 [07:55:18]MH_I2C_Read... [07:55:18]Read from MH i2c: E2 03 00 [07:55:18]MH_I2C_Read... [07:55:18]Read from MH i2c: E2 03 00 26 27 00 90 00 C1 [07:55:18]RAPDU: 90 00 [07:55:18]wFMCommunicate OK [07:55:18]wFMCommunicate request_size=4 [07:55:18]MH_SAM_APDU [07:55:18]CAPDU: 80 0D 03 02 [07:55:18]Write to MH i2c: E2 08 00 27 27 80 0D 03 02 00 00 00 00 C9 [07:55:18]Write i2c OK [07:55:18]MH_I2C_Read... [07:55:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:55:18]Read from MH i2c: E2 [07:55:18]MH_I2C_Read... [07:55:18]Read from MH i2c: E2 0B 00 [07:55:18]MH_I2C_Read... [07:55:18]Read from MH i2c: E2 0B 00 27 27 00 43 E5 DF 19 1F 69 2D 12 90 00 B1 [07:55:18]RAPDU: 43 E5 DF 19 1F 69 2D 12 90 00 [07:55:18]wFMCommunicate OK [07:55:18]SAM_PROTO_SignData done [07:55:18]FM_MakeSignedData done [07:55:18]CreateOFDProtocolMessage [07:55:18]wFMCommunicate request_size=4 [07:55:18]MH_SAM_APDU [07:55:18]CAPDU: 80 11 00 00 [07:55:18]Write to MH i2c: E2 08 00 28 27 80 11 00 00 00 00 00 00 C9 [07:55:18]Write i2c OK [07:55:18]MH_I2C_Read... [07:55:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:55:18]Read from MH i2c: E2 [07:55:18]MH_I2C_Read... [07:55:18]Read from MH i2c: E2 17 00 [07:55:18]MH_I2C_Read... [07:55:18]Read from MH i2c: E2 17 00 28 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 1D [07:55:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [07:55:18]wFMCommunicate OK [07:55:18]CreateOFDProtocolMessage done [07:55:18]OFDSenderStorePacket 68384 [07:55:18]StoreOFDPacket docnum=68384 [07:55:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 C6 6F 07 01 F6 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 32 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 07 00 00 00 F4 03 04 00 EC AB 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 20 0B 01 00 35 04 06 00 B4 76 9A 76 D0 FA 43 E5 DF 19 1F 69 2D 12 [07:55:18]CheckFolder [07:55:18]dirname=/storage/ofd_packets [07:55:18]CheckFolder done [07:55:18]ProducePacketName [07:55:18]name=ofd_packets/00068384 [07:55:18]NVStorageSaveData ofd_packets/00068384 [07:55:18]File name is /storage/ofd_packets/00068384 [07:55:18]Write 301 bytes [07:55:18]NVStorageSaveData done [07:55:18]OFDSenderStorePacket done [07:55:18]KKMCreateOFDPacket done [07:55:18]NVStorageSaveData kkm_last_timestamp [07:55:18]File name is /storage/kkm_last_timestamp [07:55:18]Write 4 bytes [07:55:18]NVStorageSaveData done [07:55:18]ExternCall_PrintAddStr [07:55:18]wPrintStart [07:55:18]Write to MH i2c: 01 00 00 29 27 50 [07:55:18]Write i2c OK [07:55:18]MH_I2C_Read... [07:55:18]Read from MH i2c: 01 [07:55:18]MH_I2C_Read... [07:55:18]Read from MH i2c: 01 07 00 [07:55:18]MH_I2C_Read... [07:55:18]Read from MH i2c: 01 07 00 29 27 00 04 00 00 00 FF 0F 69 [07:55:18]RasterBufferAndPrint [07:55:18]line Счет N : (1)210381 [07:55:18]line ИНН: 02508201610067 [07:55:18]line Контрольно-Кассовый Чек [07:55:18]line ПРОДАЖА [07:55:18]line ТРК (МРК, ГНК) : 11 [07:55:18]line Товар: 2710124130 [07:55:18]line Аи-92-К-2 [07:55:18]line 7.480 * 0.00 [07:55:18]line = 0.00 [07:55:18]line НДС 12% НСП 1% [07:55:18]line > о реализуемом товаре [07:55:18]line ИТОГО: 0.00 [07:55:18]line НСП 1% : 0.00 [07:55:18]line НДС 12% : 0.00 [07:55:18]line Наличными: 0.00 [07:55:18]line Безнал.: 0.00 [07:55:18]line Место: АЗС № 147 "Партнер Нефть" [07:55:18]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [07:55:18]line СНО: Общий режим [07:55:18]line Чек 7 23.10.2024 07:55 [07:55:18]line Смена: 507 ФФД: 1.0 [07:55:18]line ЗНМ: 0300000094 [07:55:18]line РНМ: 0000000000091756 [07:55:18]line Версия ККМ: 001 [07:55:18]line Талоны: Топливная Карта [07:55:18]line 97787 [07:55:18]line ФМ: 0000000000871809 [07:55:18]line ФД: 68384 [07:55:18]line ФПД: 198421490618618 [07:55:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T075524&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68384&fm=198421490618618&tin=02508201610067®Number=0000000000091756&sum=0 [07:55:18]OFD Sender: Processing packet 68384 [packets to send 8, broken 7] [07:55:18]ProducePacketName [07:55:18]name=ofd_packets/00068384 [07:55:18]OFD Sender: To server: pG, [07:55:18]CommunicateWithHost lk.salyk.kg:30040 [07:55:18]ConnectInit lk.salyk.kg [07:55:18]written 0, free lines is 4095 [07:55:18]Connected sock=10 [07:55:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 C6 6F 07 01 F6 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 32 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 07 00 00 00 F4 03 04 00 EC AB 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 20 0B 01 00 35 04 06 00 B4 76 9A 76 D0 FA 43 E5 DF 19 1F 69 2D 12 [07:55:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 3C E1 47 00 64 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 20 0B 01 00 F4 03 04 00 E2 51 18 67 B6 04 01 00 00 FC 93 51 60 CA 59 DF 94 [07:55:18]CommunicateWithHost err = 0 [07:55:18]CheckOFDResponse [07:55:18]1017 (14) - 77093643461234 [07:55:18]1041 (16) - 0000000000871809 [07:55:18]1040 (4) - 68384 [07:55:18]1012 (4) - 23.10.2024 01:31 [07:55:18]1206 (1) - 0 [07:55:18]OFD Sender: Remove packet 68384 [07:55:18]ProducePacketName [07:55:18]name=ofd_packets/00068384 [07:55:18]NVStorageDeleteData [07:55:19]Write to MH i2c: 01 00 00 52 27 79 [07:55:19]Write i2c OK [07:55:19]MH_I2C_Read... [07:55:19]Read from MH i2c: 01 [07:55:19]MH_I2C_Read... [07:55:19]Read from MH i2c: 01 07 00 [07:55:19]MH_I2C_Read... [07:55:19]Read from MH i2c: 01 07 00 52 27 00 04 00 00 00 C3 0C 53 [07:55:19]RasterBufferAndPrint [07:55:19]line [07:55:19]line [07:55:19]line [07:55:19]line [07:55:19]line [07:55:19]written 0, free lines is 3270 [07:55:19]MH_Cut [07:55:19]Write to MH i2c: D1 01 00 59 27 01 52 [07:55:19]Write i2c OK [07:55:19]MH_I2C_Read... [07:55:19]Read from MH i2c: D1 [07:55:19]MH_I2C_Read... [07:55:19]Read from MH i2c: D1 01 00 [07:55:19]MH_I2C_Read... [07:55:19]Read from MH i2c: D1 01 00 59 27 00 51 [07:55:19]Write to MH i2c: 01 00 00 5A 27 81 [07:55:19]Write i2c OK [07:55:19]MH_I2C_Read... [07:55:19]OFD Sender: No OFD packet to send [07:55:19]*** Cut start [07:55:19]*** Partial cut [07:55:19]*** CUTSNS_PIN = 1 [07:55:19]*** CUTSNS_PIN = 0 [07:55:20]*** Brake cut motor [07:55:20]Read from MH i2c: 01 [07:55:20]MH_I2C_Read... [07:55:20]*** Stop cut motor [07:55:20]*** Cut end [07:55:20]Read from MH i2c: 01 07 00 [07:55:20]MH_I2C_Read... [07:55:20]Read from MH i2c: 01 07 00 5A 27 00 04 00 00 00 FF 0F 9A [07:55:20]process_action close_receipt done [07:55:20]requested_data is exist [07:55:20]produce_requested_data [07:55:20]requested_item fm.sn is exist - process it [07:55:20]wFMCommunicate request_size=4 [07:55:20]MH_SAM_APDU [07:55:20]CAPDU: 80 11 00 00 [07:55:20]Write to MH i2c: E2 08 00 5B 27 80 11 00 00 00 00 00 00 FC [07:55:20]Write i2c OK [07:55:20]MH_I2C_Read... [07:55:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:55:20]Read from MH i2c: E2 [07:55:20]MH_I2C_Read... [07:55:20]Read from MH i2c: E2 17 00 [07:55:20]MH_I2C_Read... [07:55:20]Read from MH i2c: E2 17 00 5B 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 50 [07:55:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [07:55:20]wFMCommunicate OK [07:55:20]requested_item fd.num is exist - process it [07:55:20]SAM_PROTO_GetFieldsCounters [07:55:20]wFMCommunicate request_size=4 [07:55:20]MH_SAM_APDU [07:55:20]CAPDU: 80 13 00 00 [07:55:20]Write to MH i2c: E2 08 00 5C 27 80 13 00 00 00 00 00 00 FF [07:55:20]Write i2c OK [07:55:20]MH_I2C_Read... [07:55:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:55:20]Read from MH i2c: E2 [07:55:20]MH_I2C_Read... [07:55:20]Read from MH i2c: E2 62 00 [07:55:20]MH_I2C_Read... [07:55:20]Read from MH i2c: E2 62 00 5C 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 20 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [07:55:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 20 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:55:20]wFMCommunicate OK [07:55:20]SAM_PROTO_GetFieldsCounters done [07:55:20]requested_item shift.num is exist - process it [07:55:20]requested_item shift.opened is exist - process it [07:55:20]req_shift_opened [07:55:20]FM_GetShiftState [07:55:20]SAM_PROTO_GetShiftState [07:55:20]wFMCommunicate request_size=4 [07:55:20]MH_SAM_APDU [07:55:20]CAPDU: 80 13 01 00 [07:55:20]Write to MH i2c: E2 08 00 5D 27 80 13 01 00 00 00 00 00 01 [07:55:20]Write i2c OK [07:55:20]MH_I2C_Read... [07:55:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:55:20]Read from MH i2c: E2 [07:55:20]MH_I2C_Read... [07:55:20]Read from MH i2c: E2 0E 00 [07:55:20]MH_I2C_Read... [07:55:20]Read from MH i2c: E2 0E 00 5D 27 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 70 [07:55:20]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [07:55:20]wFMCommunicate OK [07:55:20]SAM_PROTO_GetShiftState done [07:55:20]FM_GetShiftState done [07:55:20]req_shift_opened done [07:55:20]requested_item shift.open_date is exist - process it [07:55:20]req_shift_open_date [07:55:20]req_shift_open_date done [07:55:20]produce_requested_data done [07:55:20]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68384,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [07:55:20]process_action_free close_receipt [07:55:20]json_value_free [07:55:20]json_value_free done [07:55:20]process_json_proto returns [07:55:20]Send response to host [07:55:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68384,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [07:55:20]free response buf [07:55:20]execute_script done [07:55:20]execute_script returns [07:55:20]free content buf [07:55:20]Sock 9.Close socket [07:55:20]Sock 9.Thread stoped [07:55:24]OFD Sender: No OFD packet to send [07:55:29]OFD Sender: No OFD packet to send [07:55:34]OFD Sender: No OFD packet to send [07:55:39]OFD Sender: No OFD packet to send [07:55:44]OFD Sender: No OFD packet to send [07:55:49]OFD Sender: No OFD packet to send [07:55:54]OFD Sender: No OFD packet to send [07:55:59]OFD Sender: No OFD packet to send [07:56:04]OFD Sender: No OFD packet to send [07:56:09]OFD Sender: No OFD packet to send [07:56:14]OFD Sender: No OFD packet to send [07:56:19]OFD Sender: No OFD packet to send [07:56:24]OFD Sender: No OFD packet to send [07:56:29]OFD Sender: No OFD packet to send [07:56:34]OFD Sender: No OFD packet to send [07:56:39]OFD Sender: No OFD packet to send [07:56:44]OFD Sender: No OFD packet to send [07:56:49]OFD Sender: No OFD packet to send [07:56:54]OFD Sender: No OFD packet to send [07:56:59]OFD Sender: No OFD packet to send [07:57:04]OFD Sender: No OFD packet to send [07:57:09]OFD Sender: No OFD packet to send [07:57:14]OFD Sender: No OFD packet to send [07:57:19]OFD Sender: No OFD packet to send [07:57:24]OFD Sender: No OFD packet to send [07:57:29]OFD Sender: No OFD packet to send [07:57:34]OFD Sender: No OFD packet to send [07:57:39]OFD Sender: No OFD packet to send [07:57:44]OFD Sender: No OFD packet to send [07:57:49]OFD Sender: No OFD packet to send [07:57:54]OFD Sender: No OFD packet to send [07:57:59]OFD Sender: No OFD packet to send [07:58:04]OFD Sender: No OFD packet to send [07:58:09]OFD Sender: No OFD packet to send [07:58:14]OFD Sender: No OFD packet to send [07:58:19]OFD Sender: No OFD packet to send [07:58:24]OFD Sender: No OFD packet to send [07:58:29]OFD Sender: No OFD packet to send [07:58:34]OFD Sender: No OFD packet to send [07:58:39]OFD Sender: No OFD packet to send [07:58:44]OFD Sender: No OFD packet to send [07:58:49]OFD Sender: No OFD packet to send [07:58:54]OFD Sender: No OFD packet to send [07:58:59]OFD Sender: No OFD packet to send [07:59:04]OFD Sender: No OFD packet to send [07:59:09]OFD Sender: No OFD packet to send [07:59:14]OFD Sender: No OFD packet to send [07:59:19]OFD Sender: No OFD packet to send [07:59:24]OFD Sender: No OFD packet to send [07:59:29]OFD Sender: No OFD packet to send [07:59:34]OFD Sender: No OFD packet to send [07:59:39]OFD Sender: No OFD packet to send [07:59:44]OFD Sender: No OFD packet to send [07:59:49]OFD Sender: No OFD packet to send [07:59:54]OFD Sender: No OFD packet to send [07:59:59]OFD Sender: No OFD packet to send [08:00:04]OFD Sender: No OFD packet to send [08:00:09]OFD Sender: No OFD packet to send [08:00:14]OFD Sender: No OFD packet to send [08:00:19]OFD Sender: No OFD packet to send [08:00:24]OFD Sender: No OFD packet to send [08:00:29]OFD Sender: No OFD packet to send [08:00:34]OFD Sender: No OFD packet to send [08:00:39]OFD Sender: No OFD packet to send [08:00:44]OFD Sender: No OFD packet to send [08:00:49]OFD Sender: No OFD packet to send [08:00:54]OFD Sender: No OFD packet to send [08:00:59]OFD Sender: No OFD packet to send [08:01:04]OFD Sender: No OFD packet to send [08:01:09]OFD Sender: No OFD packet to send [08:01:14]OFD Sender: No OFD packet to send [08:01:19]OFD Sender: No OFD packet to send [08:01:24]OFD Sender: No OFD packet to send [08:01:29]OFD Sender: No OFD packet to send [08:01:34]OFD Sender: No OFD packet to send [08:01:39]OFD Sender: No OFD packet to send [08:01:44]OFD Sender: No OFD packet to send [08:01:49]OFD Sender: No OFD packet to send [08:01:54]OFD Sender: No OFD packet to send [08:01:59]OFD Sender: No OFD packet to send [08:02:04]OFD Sender: No OFD packet to send [08:02:09]OFD Sender: No OFD packet to send [08:02:14]OFD Sender: No OFD packet to send [08:02:19]OFD Sender: No OFD packet to send [08:02:24]OFD Sender: No OFD packet to send [08:02:29]OFD Sender: No OFD packet to send [08:02:34]OFD Sender: No OFD packet to send [08:02:39]OFD Sender: No OFD packet to send [08:02:44]OFD Sender: No OFD packet to send [08:02:49]OFD Sender: No OFD packet to send [08:02:54]OFD Sender: No OFD packet to send [08:02:59]OFD Sender: No OFD packet to send [08:03:04]OFD Sender: No OFD packet to send [08:03:09]OFD Sender: No OFD packet to send [08:03:14]OFD Sender: No OFD packet to send [08:03:19]OFD Sender: No OFD packet to send [08:03:24]OFD Sender: No OFD packet to send [08:03:29]OFD Sender: No OFD packet to send [08:03:34]OFD Sender: No OFD packet to send [08:03:39]OFD Sender: No OFD packet to send [08:03:44]OFD Sender: No OFD packet to send [08:03:49]OFD Sender: No OFD packet to send [08:03:54]OFD Sender: No OFD packet to send [08:03:59]OFD Sender: No OFD packet to send [08:04:04]OFD Sender: No OFD packet to send [08:04:09]OFD Sender: No OFD packet to send [08:04:14]OFD Sender: No OFD packet to send [08:04:19]OFD Sender: No OFD packet to send [08:04:24]OFD Sender: No OFD packet to send [08:04:29]OFD Sender: No OFD packet to send [08:04:34]OFD Sender: No OFD packet to send [08:04:39]OFD Sender: No OFD packet to send [08:04:44]OFD Sender: No OFD packet to send [08:04:49]OFD Sender: No OFD packet to send [08:04:54]OFD Sender: No OFD packet to send [08:04:59]OFD Sender: No OFD packet to send [08:05:04]OFD Sender: No OFD packet to send [08:05:09]OFD Sender: No OFD packet to send [08:05:14]OFD Sender: No OFD packet to send [08:05:19]OFD Sender: No OFD packet to send [08:05:24]OFD Sender: No OFD packet to send [08:05:29]OFD Sender: No OFD packet to send [08:05:34]OFD Sender: No OFD packet to send [08:05:39]OFD Sender: No OFD packet to send [08:05:44]OFD Sender: No OFD packet to send [08:05:49]OFD Sender: No OFD packet to send [08:05:54]OFD Sender: No OFD packet to send [08:05:59]OFD Sender: No OFD packet to send [08:06:04]OFD Sender: No OFD packet to send [08:06:09]OFD Sender: No OFD packet to send [08:06:14]OFD Sender: No OFD packet to send [08:06:20]OFD Sender: No OFD packet to send [08:06:25]OFD Sender: No OFD packet to send [08:06:30]OFD Sender: No OFD packet to send [08:06:35]OFD Sender: No OFD packet to send [08:06:40]OFD Sender: No OFD packet to send [08:06:45]OFD Sender: No OFD packet to send [08:06:50]OFD Sender: No OFD packet to send [08:06:55]OFD Sender: No OFD packet to send [08:07:00]OFD Sender: No OFD packet to send [08:07:05]OFD Sender: No OFD packet to send [08:07:10]OFD Sender: No OFD packet to send [08:07:15]OFD Sender: No OFD packet to send [08:07:20]OFD Sender: No OFD packet to send [08:07:25]OFD Sender: No OFD packet to send [08:07:30]OFD Sender: No OFD packet to send [08:07:35]OFD Sender: No OFD packet to send [08:07:40]OFD Sender: No OFD packet to send [08:07:45]OFD Sender: No OFD packet to send [08:07:50]OFD Sender: No OFD packet to send [08:07:55]OFD Sender: No OFD packet to send [08:08:00]OFD Sender: No OFD packet to send [08:08:05]OFD Sender: No OFD packet to send [08:08:10]OFD Sender: No OFD packet to send [08:08:15]OFD Sender: No OFD packet to send [08:08:20]OFD Sender: No OFD packet to send [08:08:25]OFD Sender: No OFD packet to send [08:08:30]OFD Sender: No OFD packet to send [08:08:35]OFD Sender: No OFD packet to send [08:08:40]OFD Sender: No OFD packet to send [08:08:45]OFD Sender: No OFD packet to send [08:08:50]OFD Sender: No OFD packet to send [08:08:55]OFD Sender: No OFD packet to send [08:09:00]OFD Sender: No OFD packet to send [08:09:05]OFD Sender: No OFD packet to send [08:09:10]OFD Sender: No OFD packet to send [08:09:15]OFD Sender: No OFD packet to send [08:09:20]OFD Sender: No OFD packet to send [08:09:25]OFD Sender: No OFD packet to send [08:09:30]OFD Sender: No OFD packet to send [08:09:35]OFD Sender: No OFD packet to send [08:09:40]OFD Sender: No OFD packet to send [08:09:45]OFD Sender: No OFD packet to send [08:09:50]OFD Sender: No OFD packet to send [08:09:55]OFD Sender: No OFD packet to send [08:10:00]OFD Sender: No OFD packet to send [08:10:05]OFD Sender: No OFD packet to send [08:10:10]OFD Sender: No OFD packet to send [08:10:15]OFD Sender: No OFD packet to send [08:10:20]OFD Sender: No OFD packet to send [08:10:25]OFD Sender: No OFD packet to send [08:10:30]OFD Sender: No OFD packet to send [08:10:35]OFD Sender: No OFD packet to send [08:10:40]OFD Sender: No OFD packet to send [08:10:45]OFD Sender: No OFD packet to send [08:10:50]OFD Sender: No OFD packet to send [08:10:55]OFD Sender: No OFD packet to send [08:11:00]OFD Sender: No OFD packet to send [08:11:05]OFD Sender: No OFD packet to send [08:11:10]OFD Sender: No OFD packet to send [08:11:15]OFD Sender: No OFD packet to send [08:11:20]OFD Sender: No OFD packet to send [08:11:25]OFD Sender: No OFD packet to send [08:11:30]OFD Sender: No OFD packet to send [08:11:35]OFD Sender: No OFD packet to send [08:11:40]OFD Sender: No OFD packet to send [08:11:45]OFD Sender: No OFD packet to send [08:11:50]OFD Sender: No OFD packet to send [08:11:55]OFD Sender: No OFD packet to send [08:12:00]OFD Sender: No OFD packet to send [08:12:05]OFD Sender: No OFD packet to send [08:12:10]OFD Sender: No OFD packet to send [08:12:15]OFD Sender: No OFD packet to send [08:12:20]OFD Sender: No OFD packet to send [08:12:25]OFD Sender: No OFD packet to send [08:12:30]OFD Sender: No OFD packet to send [08:12:35]OFD Sender: No OFD packet to send [08:12:40]OFD Sender: No OFD packet to send [08:12:45]OFD Sender: No OFD packet to send [08:12:50]OFD Sender: No OFD packet to send [08:12:55]OFD Sender: No OFD packet to send [08:13:00]OFD Sender: No OFD packet to send [08:13:05]OFD Sender: No OFD packet to send [08:13:10]OFD Sender: No OFD packet to send [08:13:15]OFD Sender: No OFD packet to send [08:13:20]OFD Sender: No OFD packet to send [08:13:25]OFD Sender: No OFD packet to send [08:13:30]OFD Sender: No OFD packet to send [08:13:35]OFD Sender: No OFD packet to send [08:13:40]OFD Sender: No OFD packet to send [08:13:45]OFD Sender: No OFD packet to send [08:13:50]OFD Sender: No OFD packet to send [08:13:55]OFD Sender: No OFD packet to send [08:14:00]OFD Sender: No OFD packet to send [08:14:05]OFD Sender: No OFD packet to send [08:14:10]OFD Sender: No OFD packet to send [08:14:15]OFD Sender: No OFD packet to send [08:14:20]OFD Sender: No OFD packet to send [08:14:25]OFD Sender: No OFD packet to send [08:14:30]OFD Sender: No OFD packet to send [08:14:35]OFD Sender: No OFD packet to send [08:14:40]OFD Sender: No OFD packet to send [08:14:45]OFD Sender: No OFD packet to send [08:14:50]OFD Sender: No OFD packet to send [08:14:55]OFD Sender: No OFD packet to send [08:15:00]OFD Sender: No OFD packet to send [08:15:05]OFD Sender: No OFD packet to send [08:15:10]OFD Sender: No OFD packet to send [08:15:15]OFD Sender: No OFD packet to send [08:15:20]OFD Sender: No OFD packet to send [08:15:25]OFD Sender: No OFD packet to send [08:15:30]OFD Sender: No OFD packet to send [08:15:35]OFD Sender: No OFD packet to send [08:15:40]OFD Sender: No OFD packet to send [08:15:45]OFD Sender: No OFD packet to send [08:15:50]OFD Sender: No OFD packet to send [08:15:55]OFD Sender: No OFD packet to send [08:16:00]OFD Sender: No OFD packet to send [08:16:05]OFD Sender: No OFD packet to send [08:16:10]OFD Sender: No OFD packet to send [08:16:15]OFD Sender: No OFD packet to send [08:16:20]OFD Sender: No OFD packet to send [08:16:25]OFD Sender: No OFD packet to send [08:16:30]OFD Sender: No OFD packet to send [08:16:35]OFD Sender: No OFD packet to send [08:16:40]OFD Sender: No OFD packet to send [08:16:45]OFD Sender: No OFD packet to send [08:16:50]OFD Sender: No OFD packet to send [08:16:55]OFD Sender: No OFD packet to send [08:17:00]OFD Sender: No OFD packet to send [08:17:05]OFD Sender: No OFD packet to send [08:17:10]OFD Sender: No OFD packet to send [08:17:15]OFD Sender: No OFD packet to send [08:17:20]OFD Sender: No OFD packet to send [08:17:25]OFD Sender: No OFD packet to send [08:17:30]OFD Sender: No OFD packet to send [08:17:35]OFD Sender: No OFD packet to send [08:17:40]OFD Sender: No OFD packet to send [08:17:45]OFD Sender: No OFD packet to send [08:17:50]OFD Sender: No OFD packet to send [08:17:55]OFD Sender: No OFD packet to send [08:18:00]OFD Sender: No OFD packet to send [08:18:05]OFD Sender: No OFD packet to send [08:18:10]OFD Sender: No OFD packet to send [08:18:15]OFD Sender: No OFD packet to send [08:18:20]OFD Sender: No OFD packet to send [08:18:25]OFD Sender: No OFD packet to send [08:18:30]OFD Sender: No OFD packet to send [08:18:35]OFD Sender: No OFD packet to send [08:18:40]OFD Sender: No OFD packet to send [08:18:45]OFD Sender: No OFD packet to send [08:18:50]OFD Sender: No OFD packet to send [08:18:55]OFD Sender: No OFD packet to send [08:19:00]OFD Sender: No OFD packet to send [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:24]accept exits with 7 [08:19:24]New connection [08:19:24]New thread 3067276644 created [08:19:24]Thread 3067133284 joined [08:19:24]Waiting for new connection... [08:19:24] Sock 7.Parse request [08:19:24]Sock 7.Check first char [08:19:24]Sock 7.First char is OK [08:19:24]request: POST /json_proto HTTP/1.0 [08:19:24]Method: POST [08:19:24]URL: /json_proto [08:19:24]Method is POST - this is cgi request [08:19:24]url: /json_proto [08:19:24]query_string will be loaded in cgi processing [08:19:24]execute_cgi json_proto POST (null) [08:19:24]execute_cgi path=json_proto method=POST [08:19:24]POST find Content-Length [08:19:24]Host: 172.17.52.3:8080 [08:19:24]Content-Length: 789 [08:19:24]Content-Type: application/json [08:19:24] [08:19:24]POST finish read [08:19:24]Found Content-Length = 789 [08:19:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 13.130, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A97787", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:24]execute_script... [08:19: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)210382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 13.130, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A97787", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:24]POST & json_proto [08:19:24]process_json_proto [08:19:24]json parsed OK: [08:19:24]protocol is kg_v1.0 [08:19:24]action value=close_receipt [08:19:24]process_action close_receipt [08:19:24]cmd_close_receipt [08:19:24]MH_GetDate [08:19:24]Write to MH i2c: F0 00 00 5E 27 74 [08:19:24]Write i2c OK [08:19:24]MH_I2C_Read... [08:19:24]Read from MH i2c: F0 [08:19:24]MH_I2C_Read... [08:19:24]Read from MH i2c: F0 09 00 [08:19:24]MH_I2C_Read... [08:19:24]Read from MH i2c: F0 09 00 5E 27 00 94 B1 18 67 D7 68 A5 64 89 [08:19:24]GetLastDocTimeStamp 1729670124 [08:19:24]current date 1729671572 [08:19:24]FM_GetShiftState [08:19:24]SAM_PROTO_GetShiftState [08:19:24]wFMCommunicate request_size=4 [08:19:24]MH_SAM_APDU [08:19:24]CAPDU: 80 13 01 00 [08:19:24]Write to MH i2c: E2 08 00 5F 27 80 13 01 00 00 00 00 00 03 [08:19:24]Write i2c OK [08:19:24]MH_I2C_Read... [08:19:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:24]Read from MH i2c: E2 [08:19:24]MH_I2C_Read... [08:19:24]Read from MH i2c: E2 0E 00 [08:19:24]MH_I2C_Read... [08:19:24]Read from MH i2c: E2 0E 00 5F 27 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 72 [08:19:24]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [08:19:24]wFMCommunicate OK [08:19:24]SAM_PROTO_GetShiftState done [08:19:24]FM_GetShiftState done [08:19:24]opened in 1729641385 [08:19:24]opened+sec_in_day 1729727785 [08:19:24]quantity*price = 0 [08:19:24]sum+1 = 1 [08:19:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 8 23.10.2024 08:19 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 Талоны: Топливная Карта 97787 ФМ: 0000000000871809 ФД: 68385 ФПД: 262073593321119 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T081932&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68385&fm=262073593321119&tin=02508201610067®Number=0000000000091756&sum=0 [08:19:25]StoreToDocumentArchive [08:19:25]shift 507 fd 68385 [08:19:25]save to /storage/0507/doc_00068385 [08:19:25]save last doc name /storage/0507/doc_00068385 to /storage/kkm_last_doc_name [08:19:25]save OK [08:19:25]Clear old archive folders... [08:19:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:19:25]tlvbuf is 020579A0 [08:19:25]SAM_PROTO_ClearQueue [08:19:25]wFMCommunicate request_size=4 [08:19:25]MH_SAM_APDU [08:19:25]CAPDU: 80 09 00 00 [08:19:25]Write to MH i2c: E2 08 00 6C 27 80 09 00 00 00 00 00 00 05 [08:19:25]Write i2c OK [08:19:25]MH_I2C_Read... [08:19:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:19:25]Read from MH i2c: E2 [08:19:25]MH_I2C_Read... [08:19:25]Read from MH i2c: E2 03 00 [08:19:25]MH_I2C_Read... [08:19:25]Read from MH i2c: E2 03 00 6C 27 00 90 00 07 [08:19:25]RAPDU: 90 00 [08:19:25]wFMCommunicate OK [08:19:25]SAM_PROTO_ClearQueue done [08:19:25]KKMCreateOFDPacket [08:19:25]OFDProtocolAddRootSTLVToBuf [08:19:25]FM_MakeSignedData [08:19:25]FM_MakeSignedData [08:19:25]SAM_PROTO_SignData [08:19:25]wFMCommunicate request_size=4 [08:19:25]MH_SAM_APDU [08:19:25]CAPDU: 80 0D 01 02 [08:19:25]Write to MH i2c: E2 08 00 6D 27 80 0D 01 02 00 00 00 00 0D [08:19:25]Write i2c OK [08:19:25]MH_I2C_Read... [08:19:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:19:25]Read from MH i2c: E2 [08:19:25]MH_I2C_Read... [08:19:25]Read from MH i2c: E2 03 00 [08:19:25]MH_I2C_Read... [08:19:25]Read from MH i2c: E2 03 00 6D 27 00 90 00 08 [08:19:25]RAPDU: 90 00 [08:19:25]wFMCommunicate OK [08:19:25]wFMCommunicate request_size=255 [08:19:25]MH_SAM_APDU [08:19:25]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 94 B1 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 21 0B 01 00 35 04 06 00 EE 5A C3 6F [08:19:25]Write to MH i2c: E2 02 01 6E 27 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 94 B1 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 21 0B 01 00 35 04 06 00 EE 5A C3 6F 00 00 57 [08:19:25]Write i2c OK [08:19:25]MH_I2C_Read... [08:19:25]OFD Sender: No OFD packet to send [08:19:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:25]Read from MH i2c: E2 [08:19:25]MH_I2C_Read... [08:19:25]Read from MH i2c: E2 03 00 [08:19:25]MH_I2C_Read... [08:19:25]Read from MH i2c: E2 03 00 6E 27 00 90 00 09 [08:19:25]RAPDU: 90 00 [08:19:25]wFMCommunicate OK [08:19:25]wFMCommunicate request_size=7 [08:19:25]MH_SAM_APDU [08:19:25]CAPDU: 80 0D 02 02 02 56 9F [08:19:25]Write to MH i2c: E2 0A 00 6F 27 80 0D 02 02 02 00 56 9F 00 00 09 [08:19:25]Write i2c OK [08:19:25]MH_I2C_Read... [08:19:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:25]Read from MH i2c: E2 [08:19:25]MH_I2C_Read... [08:19:25]Read from MH i2c: E2 03 00 [08:19:25]MH_I2C_Read... [08:19:25]Read from MH i2c: E2 03 00 6F 27 00 90 00 0A [08:19:25]RAPDU: 90 00 [08:19:25]wFMCommunicate OK [08:19:25]wFMCommunicate request_size=4 [08:19:25]MH_SAM_APDU [08:19:25]CAPDU: 80 0D 03 02 [08:19:25]Write to MH i2c: E2 08 00 70 27 80 0D 03 02 00 00 00 00 12 [08:19:25]Write i2c OK [08:19:25]MH_I2C_Read... [08:19:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:19:25]Read from MH i2c: E2 [08:19:25]MH_I2C_Read... [08:19:25]Read from MH i2c: E2 0B 00 [08:19:25]MH_I2C_Read... [08:19:25]Read from MH i2c: E2 0B 00 70 27 00 BE 27 32 5B 50 DE C5 4F 90 00 C7 [08:19:25]RAPDU: BE 27 32 5B 50 DE C5 4F 90 00 [08:19:25]wFMCommunicate OK [08:19:25]SAM_PROTO_SignData done [08:19:25]FM_MakeSignedData done [08:19:25]CreateOFDProtocolMessage [08:19:25]wFMCommunicate request_size=4 [08:19:25]MH_SAM_APDU [08:19:25]CAPDU: 80 11 00 00 [08:19:25]Write to MH i2c: E2 08 00 71 27 80 11 00 00 00 00 00 00 12 [08:19:25]Write i2c OK [08:19:25]MH_I2C_Read... [08:19:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:25]Read from MH i2c: E2 [08:19:25]MH_I2C_Read... [08:19:25]Read from MH i2c: E2 17 00 [08:19:25]MH_I2C_Read... [08:19:25]Read from MH i2c: E2 17 00 71 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 66 [08:19:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [08:19:25]wFMCommunicate OK [08:19:25]CreateOFDProtocolMessage done [08:19:25]OFDSenderStorePacket 68385 [08:19:25]StoreOFDPacket docnum=68385 [08:19:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0C 01 00 00 7D 84 04 01 61 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 94 B1 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 21 0B 01 00 35 04 06 00 EE 5A C3 6F 56 9F BE 27 32 5B 50 DE C5 4F [08:19:25]CheckFolder [08:19:25]dirname=/storage/ofd_packets [08:19:25]CheckFolder done [08:19:25]ProducePacketName [08:19:25]name=ofd_packets/00068385 [08:19:25]NVStorageSaveData ofd_packets/00068385 [08:19:25]File name is /storage/ofd_packets/00068385 [08:19:25]Write 298 bytes [08:19:25]NVStorageSaveData done [08:19:25]OFDSenderStorePacket done [08:19:25]KKMCreateOFDPacket done [08:19:25]NVStorageSaveData kkm_last_timestamp [08:19:25]File name is /storage/kkm_last_timestamp [08:19:25]Write 4 bytes [08:19:25]NVStorageSaveData done [08:19:25]ExternCall_PrintAddStr [08:19:25]wPrintStart [08:19:25]Write to MH i2c: 01 00 00 72 27 99 [08:19:25]Write i2c OK [08:19:25]MH_I2C_Read... [08:19:25]Read from MH i2c: 01 [08:19:25]MH_I2C_Read... [08:19:25]Read from MH i2c: 01 07 00 [08:19:25]MH_I2C_Read... [08:19:25]Read from MH i2c: 01 07 00 72 27 00 04 00 00 00 FF 0F B2 [08:19:25]RasterBufferAndPrint [08:19:25]line Счет N : (1)210382 [08:19:25]line ИНН: 02508201610067 [08:19:25]line Контрольно-Кассовый Чек [08:19:25]line ПРОДАЖА [08:19:25]line ТРК (МРК, ГНК) : 21 [08:19:25]line Товар: 2710194210 [08:19:25]line ДТ-К-2 [08:19:25]line 13.130 * 0.00 [08:19:25]line = 0.00 [08:19:25]line НДС 12% НСП 1% [08:19:25]line > о реализуемом товаре [08:19:25]line ИТОГО: 0.00 [08:19:25]line НСП 1% : 0.00 [08:19:25]line НДС 12% : 0.00 [08:19:25]line Наличными: 0.00 [08:19:25]line Безнал.: 0.00 [08:19:25]line Место: АЗС № 147 "Партнер Нефть" [08:19:25]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [08:19:25]line СНО: Общий режим [08:19:25]line Чек 8 23.10.2024 08:19 [08:19:25]line Смена: 507 ФФД: 1.0 [08:19:25]line ЗНМ: 0300000094 [08:19:25]line РНМ: 0000000000091756 [08:19:25]line Версия ККМ: 001 [08:19:25]line Талоны: Топливная Карта [08:19:25]line 97787 [08:19:25]line ФМ: 0000000000871809 [08:19:25]line ФД: 68385 [08:19:25]line ФПД: 262073593321119 [08:19:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T081932&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68385&fm=262073593321119&tin=02508201610067®Number=0000000000091756&sum=0 [08:19:26]OFD Sender: Processing packet 68385 [packets to send 8, broken 7] [08:19:26]ProducePacketName [08:19:26]name=ofd_packets/00068385 [08:19:26]OFD Sender: To server: pG, [08:19:26]CommunicateWithHost lk.salyk.kg:30040 [08:19:26]ConnectInit lk.salyk.kg [08:19:26]written 0, free lines is 4095 [08:19:26]Connected sock=10 [08:19:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0C 01 00 00 7D 84 04 01 61 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 94 B1 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 21 0B 01 00 35 04 06 00 EE 5A C3 6F 56 9F BE 27 32 5B 50 DE C5 4F [08:19:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 B9 9D 47 00 65 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 21 0B 01 00 F4 03 04 00 89 57 18 67 B6 04 01 00 00 75 DD 61 33 1B 38 77 B3 [08:19:26]CommunicateWithHost err = 0 [08:19:26]CheckOFDResponse [08:19:26]1017 (14) - 77093643461234 [08:19:26]1041 (16) - 0000000000871809 [08:19:26]1040 (4) - 68385 [08:19:26]1012 (4) - 23.10.2024 01:55 [08:19:26]1206 (1) - 0 [08:19:26]OFD Sender: Remove packet 68385 [08:19:26]ProducePacketName [08:19:26]name=ofd_packets/00068385 [08:19:26]NVStorageDeleteData [08:19:26]Write to MH i2c: 01 00 00 9B 27 C2 [08:19:26]Write i2c OK [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: 01 [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: 01 07 00 [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: 01 07 00 9B 27 00 04 00 00 00 C9 0C A2 [08:19:26]RasterBufferAndPrint [08:19:26]line [08:19:26]line [08:19:26]line [08:19:26]line [08:19:26]line [08:19:26]written 0, free lines is 3276 [08:19:26]MH_Cut [08:19:26]Write to MH i2c: D1 01 00 A2 27 01 9B [08:19:26]Write i2c OK [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: D1 [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: D1 01 00 [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: D1 01 00 A2 27 00 9A [08:19:26]Write to MH i2c: 01 00 00 A3 27 CA [08:19:26]Write i2c OK [08:19:26]MH_I2C_Read... [08:19:27]OFD Sender: No OFD packet to send [08:19:27]*** Cut start [08:19:27]*** Partial cut [08:19:27]*** CUTSNS_PIN = 1 [08:19:27]*** CUTSNS_PIN = 0 [08:19:27]*** Brake cut motor [08:19:28]Read from MH i2c: 01 [08:19:28]MH_I2C_Read... [08:19:28]*** Stop cut motor [08:19:28]*** Cut end [08:19:28]Read from MH i2c: 01 07 00 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: 01 07 00 A3 27 00 04 00 00 00 FF 0F E3 [08:19:28]process_action close_receipt done [08:19:28]requested_data is exist [08:19:28]produce_requested_data [08:19:28]requested_item fm.sn is exist - process it [08:19:28]wFMCommunicate request_size=4 [08:19:28]MH_SAM_APDU [08:19:28]CAPDU: 80 11 00 00 [08:19:28]Write to MH i2c: E2 08 00 A4 27 80 11 00 00 00 00 00 00 45 [08:19:28]Write i2c OK [08:19:28]MH_I2C_Read... [08:19:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:28]Read from MH i2c: E2 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: E2 17 00 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: E2 17 00 A4 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 99 [08:19:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [08:19:28]wFMCommunicate OK [08:19:28]requested_item fd.num is exist - process it [08:19:28]SAM_PROTO_GetFieldsCounters [08:19:28]wFMCommunicate request_size=4 [08:19:28]MH_SAM_APDU [08:19:28]CAPDU: 80 13 00 00 [08:19:28]Write to MH i2c: E2 08 00 A5 27 80 13 00 00 00 00 00 00 48 [08:19:28]Write i2c OK [08:19:28]MH_I2C_Read... [08:19:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:19:28]Read from MH i2c: E2 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: E2 62 00 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: E2 62 00 A5 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 21 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [08:19:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 21 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:19:28]wFMCommunicate OK [08:19:28]SAM_PROTO_GetFieldsCounters done [08:19:28]requested_item shift.num is exist - process it [08:19:28]requested_item shift.opened is exist - process it [08:19:28]req_shift_opened [08:19:28]FM_GetShiftState [08:19:28]SAM_PROTO_GetShiftState [08:19:28]wFMCommunicate request_size=4 [08:19:28]MH_SAM_APDU [08:19:28]CAPDU: 80 13 01 00 [08:19:28]Write to MH i2c: E2 08 00 A6 27 80 13 01 00 00 00 00 00 4A [08:19:28]Write i2c OK [08:19:28]MH_I2C_Read... [08:19:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:28]Read from MH i2c: E2 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: E2 0E 00 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: E2 0E 00 A6 27 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 B9 [08:19:28]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [08:19:28]wFMCommunicate OK [08:19:28]SAM_PROTO_GetShiftState done [08:19:28]FM_GetShiftState done [08:19:28]req_shift_opened done [08:19:28]requested_item shift.open_date is exist - process it [08:19:28]req_shift_open_date [08:19:28]req_shift_open_date done [08:19:28]produce_requested_data done [08:19:28]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68385,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [08:19:28]process_action_free close_receipt [08:19:28]json_value_free [08:19:28]json_value_free done [08:19:28]process_json_proto returns [08:19:28]Send response to host [08:19:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68385,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [08:19:28]free response buf [08:19:28]execute_script done [08:19:28]execute_script returns [08:19:28]free content buf [08:19:28]Sock 7.Close socket [08:19:28]Sock 7.Thread stoped [08:19:32]OFD Sender: No OFD packet to send [08:19:37]OFD Sender: No OFD packet to send [08:19:42]OFD Sender: No OFD packet to send [08:19:47]OFD Sender: No OFD packet to send [08:19:52]OFD Sender: No OFD packet to send [08:19:57]OFD Sender: No OFD packet to send [08:20:02]OFD Sender: No OFD packet to send [08:20:07]OFD Sender: No OFD packet to send [08:20:12]OFD Sender: No OFD packet to send [08:20:17]OFD Sender: No OFD packet to send [08:20:22]OFD Sender: No OFD packet to send [08:20:27]OFD Sender: No OFD packet to send [08:20:32]OFD Sender: No OFD packet to send [08:20:37]OFD Sender: No OFD packet to send [08:20:42]OFD Sender: No OFD packet to send [08:20:47]OFD Sender: No OFD packet to send [08:20:52]OFD Sender: No OFD packet to send [08:20:57]OFD Sender: No OFD packet to send [08:21:02]OFD Sender: No OFD packet to send [08:21:07]OFD Sender: No OFD packet to send [08:21:12]OFD Sender: No OFD packet to send [08:21:17]OFD Sender: No OFD packet to send [08:21:22]OFD Sender: No OFD packet to send [08:21:27]OFD Sender: No OFD packet to send [08:21:32]OFD Sender: No OFD packet to send [08:21:37]OFD Sender: No OFD packet to send [08:21:42]OFD Sender: No OFD packet to send [08:21:47]OFD Sender: No OFD packet to send [08:21:52]OFD Sender: No OFD packet to send [08:21:57]OFD Sender: No OFD packet to send [08:22:02]OFD Sender: No OFD packet to send [08:22:07]OFD Sender: No OFD packet to send [08:22:12]OFD Sender: No OFD packet to send [08:22:17]OFD Sender: No OFD packet to send [08:22:22]OFD Sender: No OFD packet to send [08:22:27]OFD Sender: No OFD packet to send [08:22:32]OFD Sender: No OFD packet to send [08:22:37]OFD Sender: No OFD packet to send [08:22:42]OFD Sender: No OFD packet to send [08:22:47]OFD Sender: No OFD packet to send [08:22:52]OFD Sender: No OFD packet to send [08:22:57]OFD Sender: No OFD packet to send [08:23:02]OFD Sender: No OFD packet to send [08:23:02]accept exits with 9 [08:23:02]New connection [08:23:02]New thread 3067133284 created [08:23:02]Thread 3067276644 joined [08:23:02]Waiting for new connection... [08:23:02] Sock 9.Parse request [08:23:02]Sock 9.Check first char [08:23:02]Sock 9.First char is OK [08:23:02]request: POST /json_proto HTTP/1.0 [08:23:02]Method: POST [08:23:02]URL: /json_proto [08:23:02]Method is POST - this is cgi request [08:23:02]url: /json_proto [08:23:02]query_string will be loaded in cgi processing [08:23:02]execute_cgi json_proto POST (null) [08:23:02]execute_cgi path=json_proto method=POST [08:23:02]POST find Content-Length [08:23:02]Host: 172.17.52.3:8080 [08:23:02]Content-Length: 789 [08:23:02]Content-Type: application/json [08:23:02] [08:23:02]POST finish read [08:23:02]Found Content-Length = 789 [08:23:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 13.130, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A97787", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:02]execute_script... [08:23: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)210383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 13.130, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A97787", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:02]POST & json_proto [08:23:02]process_json_proto [08:23:02]json parsed OK: [08:23:02]protocol is kg_v1.0 [08:23:02]action value=close_receipt [08:23:02]process_action close_receipt [08:23:02]cmd_close_receipt [08:23:02]MH_GetDate [08:23:02]Write to MH i2c: F0 00 00 A7 27 BD [08:23:02]Write i2c OK [08:23:02]MH_I2C_Read... [08:23:02]Read from MH i2c: F0 [08:23:02]MH_I2C_Read... [08:23:02]Read from MH i2c: F0 09 00 [08:23:02]MH_I2C_Read... [08:23:02]Read from MH i2c: F0 09 00 A7 27 00 6E B2 18 67 D7 68 A5 64 AD [08:23:02]GetLastDocTimeStamp 1729671572 [08:23:02]current date 1729671790 [08:23:02]FM_GetShiftState [08:23:02]SAM_PROTO_GetShiftState [08:23:02]wFMCommunicate request_size=4 [08:23:02]MH_SAM_APDU [08:23:02]CAPDU: 80 13 01 00 [08:23:02]Write to MH i2c: E2 08 00 A8 27 80 13 01 00 00 00 00 00 4C [08:23:02]Write i2c OK [08:23:02]MH_I2C_Read... [08:23:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:02]Read from MH i2c: E2 [08:23:02]MH_I2C_Read... [08:23:02]Read from MH i2c: E2 0E 00 [08:23:02]MH_I2C_Read... [08:23:02]Read from MH i2c: E2 0E 00 A8 27 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 BB [08:23:02]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [08:23:02]wFMCommunicate OK [08:23:02]SAM_PROTO_GetShiftState done [08:23:02]FM_GetShiftState done [08:23:02]opened in 1729641385 [08:23:02]opened+sec_in_day 1729727785 [08:23:02]quantity*price = 0 [08:23:02]sum+1 = 1 [08:23:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 9 23.10.2024 08:23 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 Талоны: Топливная Карта 97787 ФМ: 0000000000871809 ФД: 68386 ФПД: 164844810468978 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T082310&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68386&fm=164844810468978&tin=02508201610067®Number=0000000000091756&sum=0 [08:23:03]StoreToDocumentArchive [08:23:03]shift 507 fd 68386 [08:23:03]save to /storage/0507/doc_00068386 [08:23:03]save last doc name /storage/0507/doc_00068386 to /storage/kkm_last_doc_name [08:23:03]save OK [08:23:03]Clear old archive folders... [08:23:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:23:03]tlvbuf is 020175A0 [08:23:03]SAM_PROTO_ClearQueue [08:23:03]wFMCommunicate request_size=4 [08:23:03]MH_SAM_APDU [08:23:03]CAPDU: 80 09 00 00 [08:23:03]Write to MH i2c: E2 08 00 B5 27 80 09 00 00 00 00 00 00 4E [08:23:03]Write i2c OK [08:23:03]MH_I2C_Read... [08:23:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:23:03]Read from MH i2c: E2 [08:23:03]MH_I2C_Read... [08:23:03]Read from MH i2c: E2 03 00 [08:23:03]MH_I2C_Read... [08:23:03]Read from MH i2c: E2 03 00 B5 27 00 90 00 50 [08:23:03]RAPDU: 90 00 [08:23:03]wFMCommunicate OK [08:23:03]SAM_PROTO_ClearQueue done [08:23:03]KKMCreateOFDPacket [08:23:03]OFDProtocolAddRootSTLVToBuf [08:23:03]FM_MakeSignedData [08:23:03]FM_MakeSignedData [08:23:03]SAM_PROTO_SignData [08:23:03]wFMCommunicate request_size=4 [08:23:03]MH_SAM_APDU [08:23:03]CAPDU: 80 0D 01 02 [08:23:03]Write to MH i2c: E2 08 00 B6 27 80 0D 01 02 00 00 00 00 56 [08:23:03]Write i2c OK [08:23:03]MH_I2C_Read... [08:23:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:23:03]Read from MH i2c: E2 [08:23:03]MH_I2C_Read... [08:23:03]Read from MH i2c: E2 03 00 [08:23:03]MH_I2C_Read... [08:23:03]Read from MH i2c: E2 03 00 B6 27 00 90 00 51 [08:23:03]RAPDU: 90 00 [08:23:03]wFMCommunicate OK [08:23:03]wFMCommunicate request_size=255 [08:23:03]MH_SAM_APDU [08:23:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 6E B2 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 22 0B 01 00 35 04 06 00 95 EC EC 5E [08:23:03]Write to MH i2c: E2 02 01 B7 27 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 6E B2 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 22 0B 01 00 35 04 06 00 95 EC EC 5E 00 00 CE [08:23:03]Write i2c OK [08:23:03]MH_I2C_Read... [08:23:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:04]Read from MH i2c: E2 [08:23:04]MH_I2C_Read... [08:23:04]Read from MH i2c: E2 03 00 [08:23:04]MH_I2C_Read... [08:23:04]Read from MH i2c: E2 03 00 B7 27 00 90 00 52 [08:23:04]RAPDU: 90 00 [08:23:04]wFMCommunicate OK [08:23:04]wFMCommunicate request_size=7 [08:23:04]MH_SAM_APDU [08:23:04]CAPDU: 80 0D 02 02 02 FE 72 [08:23:04]Write to MH i2c: E2 0A 00 B8 27 80 0D 02 02 02 00 FE 72 00 00 CD [08:23:04]Write i2c OK [08:23:04]MH_I2C_Read... [08:23:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:04]Read from MH i2c: E2 [08:23:04]MH_I2C_Read... [08:23:04]Read from MH i2c: E2 03 00 [08:23:04]MH_I2C_Read... [08:23:04]Read from MH i2c: E2 03 00 B8 27 00 90 00 53 [08:23:04]RAPDU: 90 00 [08:23:04]wFMCommunicate OK [08:23:04]wFMCommunicate request_size=4 [08:23:04]MH_SAM_APDU [08:23:04]CAPDU: 80 0D 03 02 [08:23:04]Write to MH i2c: E2 08 00 B9 27 80 0D 03 02 00 00 00 00 5B [08:23:04]Write i2c OK [08:23:04]MH_I2C_Read... [08:23:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:23:04]Read from MH i2c: E2 [08:23:04]MH_I2C_Read... [08:23:04]Read from MH i2c: E2 0B 00 [08:23:04]MH_I2C_Read... [08:23:04]Read from MH i2c: E2 0B 00 B9 27 00 88 8F 09 98 35 28 3B 7B 90 00 27 [08:23:04]RAPDU: 88 8F 09 98 35 28 3B 7B 90 00 [08:23:04]wFMCommunicate OK [08:23:04]SAM_PROTO_SignData done [08:23:04]FM_MakeSignedData done [08:23:04]CreateOFDProtocolMessage [08:23:04]wFMCommunicate request_size=4 [08:23:04]MH_SAM_APDU [08:23:04]CAPDU: 80 11 00 00 [08:23:04]Write to MH i2c: E2 08 00 BA 27 80 11 00 00 00 00 00 00 5B [08:23:04]Write i2c OK [08:23:04]MH_I2C_Read... [08:23:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:04]Read from MH i2c: E2 [08:23:04]MH_I2C_Read... [08:23:04]Read from MH i2c: E2 17 00 [08:23:04]MH_I2C_Read... [08:23:04]Read from MH i2c: E2 17 00 BA 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 AF [08:23:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [08:23:04]wFMCommunicate OK [08:23:04]CreateOFDProtocolMessage done [08:23:04]OFDSenderStorePacket 68386 [08:23:04]StoreOFDPacket docnum=68386 [08:23:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0C 01 00 00 06 DB 04 01 DC 09 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 6E B2 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 22 0B 01 00 35 04 06 00 95 EC EC 5E FE 72 88 8F 09 98 35 28 3B 7B [08:23:04]CheckFolder [08:23:04]dirname=/storage/ofd_packets [08:23:04]CheckFolder done [08:23:04]ProducePacketName [08:23:04]name=ofd_packets/00068386 [08:23:04]NVStorageSaveData ofd_packets/00068386 [08:23:04]File name is /storage/ofd_packets/00068386 [08:23:04]Write 298 bytes [08:23:04]NVStorageSaveData done [08:23:04]OFDSenderStorePacket done [08:23:04]KKMCreateOFDPacket done [08:23:04]NVStorageSaveData kkm_last_timestamp [08:23:04]File name is /storage/kkm_last_timestamp [08:23:04]Write 4 bytes [08:23:04]NVStorageSaveData done [08:23:04]ExternCall_PrintAddStr [08:23:04]wPrintStart [08:23:04]Write to MH i2c: 01 00 00 BB 27 E2 [08:23:04]Write i2c OK [08:23:04]MH_I2C_Read... [08:23:04]Read from MH i2c: 01 [08:23:04]MH_I2C_Read... [08:23:04]Read from MH i2c: 01 07 00 [08:23:04]MH_I2C_Read... [08:23:04]Read from MH i2c: 01 07 00 BB 27 00 04 00 00 00 FF 0F FB [08:23:04]RasterBufferAndPrint [08:23:04]line Счет N : (1)210383 [08:23:04]line ИНН: 02508201610067 [08:23:04]line Контрольно-Кассовый Чек [08:23:04]line ПРОДАЖА [08:23:04]line ТРК (МРК, ГНК) : 21 [08:23:04]line Товар: 2710194210 [08:23:04]line ДТ-К-2 [08:23:04]line 13.130 * 0.00 [08:23:04]line = 0.00 [08:23:04]line НДС 12% НСП 1% [08:23:04]line > о реализуемом товаре [08:23:04]line ИТОГО: 0.00 [08:23:04]line НСП 1% : 0.00 [08:23:04]line НДС 12% : 0.00 [08:23:04]line Наличными: 0.00 [08:23:04]line Безнал.: 0.00 [08:23:04]line Место: АЗС № 147 "Партнер Нефть" [08:23:04]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [08:23:04]line СНО: Общий режим [08:23:04]line Чек 9 23.10.2024 08:23 [08:23:04]line Смена: 507 ФФД: 1.0 [08:23:04]line ЗНМ: 0300000094 [08:23:04]line РНМ: 0000000000091756 [08:23:04]line Версия ККМ: 001 [08:23:04]line Талоны: Топливная Карта [08:23:04]line 97787 [08:23:04]line ФМ: 0000000000871809 [08:23:04]line ФД: 68386 [08:23:04]line ФПД: 164844810468978 [08:23:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T082310&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68386&fm=164844810468978&tin=02508201610067®Number=0000000000091756&sum=0 [08:23:04]OFD Sender: Processing packet 68386 [packets to send 8, broken 7] [08:23:04]ProducePacketName [08:23:04]name=ofd_packets/00068386 [08:23:04]OFD Sender: To server: pG, [08:23:04]CommunicateWithHost lk.salyk.kg:30040 [08:23:04]ConnectInit lk.salyk.kg [08:23:04]written 0, free lines is 4095 [08:23:04]Connected sock=10 [08:23:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0C 01 00 00 06 DB 04 01 DC 09 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 6E B2 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 22 0B 01 00 35 04 06 00 95 EC EC 5E FE 72 88 8F 09 98 35 28 3B 7B [08:23:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 62 38 47 00 61 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 31 38 30 39 10 04 04 00 22 0B 01 00 F4 03 04 00 63 58 18 67 B6 04 01 00 00 A0 80 14 0A BF C1 27 DF [08:23:04]CommunicateWithHost err = 0 [08:23:04]CheckOFDResponse [08:23:04]1017 (14) - 77093643461234 [08:23:04]1041 (16) - 0000000000871809 [08:23:04]1040 (4) - 68386 [08:23:04]1012 (4) - 23.10.2024 01:58 [08:23:04]1206 (1) - 0 [08:23:04]OFD Sender: Remove packet 68386 [08:23:04]ProducePacketName [08:23:04]name=ofd_packets/00068386 [08:23:04]NVStorageDeleteData [08:23:04]Write to MH i2c: 01 00 00 E4 27 0B [08:23:04]Write i2c OK [08:23:04]MH_I2C_Read... [08:23:04]Read from MH i2c: 01 [08:23:04]MH_I2C_Read... [08:23:04]Read from MH i2c: 01 07 00 [08:23:04]MH_I2C_Read... [08:23:04]Read from MH i2c: 01 07 00 E4 27 00 04 00 00 00 C5 0C E7 [08:23:04]RasterBufferAndPrint [08:23:04]line [08:23:04]line [08:23:04]line [08:23:04]line [08:23:04]line [08:23:04]written 0, free lines is 3272 [08:23:04]MH_Cut [08:23:04]Write to MH i2c: D1 01 00 EB 27 01 E4 [08:23:04]Write i2c OK [08:23:04]MH_I2C_Read... [08:23:04]Read from MH i2c: D1 [08:23:04]MH_I2C_Read... [08:23:04]Read from MH i2c: D1 01 00 [08:23:04]MH_I2C_Read... [08:23:04]Read from MH i2c: D1 01 00 EB 27 00 E3 [08:23:04]Write to MH i2c: 01 00 00 EC 27 13 [08:23:04]Write i2c OK [08:23:04]MH_I2C_Read... [08:23:05]OFD Sender: No OFD packet to send [08:23:05]*** Cut start [08:23:05]*** Partial cut [08:23:05]*** CUTSNS_PIN = 1 [08:23:05]*** CUTSNS_PIN = 0 [08:23:06]*** Brake cut motor [08:23:06]Read from MH i2c: 01 [08:23:06]MH_I2C_Read... [08:23:06]*** Stop cut motor [08:23:06]*** Cut end [08:23:06]Read from MH i2c: 01 07 00 [08:23:06]MH_I2C_Read... [08:23:06]Read from MH i2c: 01 07 00 EC 27 00 04 00 00 00 FF 0F 2C [08:23:06]process_action close_receipt done [08:23:06]requested_data is exist [08:23:06]produce_requested_data [08:23:06]requested_item fm.sn is exist - process it [08:23:06]wFMCommunicate request_size=4 [08:23:06]MH_SAM_APDU [08:23:06]CAPDU: 80 11 00 00 [08:23:06]Write to MH i2c: E2 08 00 ED 27 80 11 00 00 00 00 00 00 8E [08:23:06]Write i2c OK [08:23:06]MH_I2C_Read... [08:23:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:06]Read from MH i2c: E2 [08:23:06]MH_I2C_Read... [08:23:06]Read from MH i2c: E2 17 00 [08:23:06]MH_I2C_Read... [08:23:06]Read from MH i2c: E2 17 00 ED 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 E2 [08:23:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [08:23:06]wFMCommunicate OK [08:23:06]requested_item fd.num is exist - process it [08:23:06]SAM_PROTO_GetFieldsCounters [08:23:06]wFMCommunicate request_size=4 [08:23:06]MH_SAM_APDU [08:23:06]CAPDU: 80 13 00 00 [08:23:06]Write to MH i2c: E2 08 00 EE 27 80 13 00 00 00 00 00 00 91 [08:23:06]Write i2c OK [08:23:06]MH_I2C_Read... [08:23:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:23:06]Read from MH i2c: E2 [08:23:06]MH_I2C_Read... [08:23:06]Read from MH i2c: E2 62 00 [08:23:06]MH_I2C_Read... [08:23:06]Read from MH i2c: E2 62 00 EE 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 22 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [08:23:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 22 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:23:06]wFMCommunicate OK [08:23:06]SAM_PROTO_GetFieldsCounters done [08:23:06]requested_item shift.num is exist - process it [08:23:06]requested_item shift.opened is exist - process it [08:23:06]req_shift_opened [08:23:06]FM_GetShiftState [08:23:06]SAM_PROTO_GetShiftState [08:23:06]wFMCommunicate request_size=4 [08:23:06]MH_SAM_APDU [08:23:06]CAPDU: 80 13 01 00 [08:23:06]Write to MH i2c: E2 08 00 EF 27 80 13 01 00 00 00 00 00 93 [08:23:06]Write i2c OK [08:23:06]MH_I2C_Read... [08:23:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:06]Read from MH i2c: E2 [08:23:06]MH_I2C_Read... [08:23:06]Read from MH i2c: E2 0E 00 [08:23:06]MH_I2C_Read... [08:23:06]Read from MH i2c: E2 0E 00 EF 27 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 02 [08:23:06]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [08:23:06]wFMCommunicate OK [08:23:06]SAM_PROTO_GetShiftState done [08:23:06]FM_GetShiftState done [08:23:06]req_shift_opened done [08:23:06]requested_item shift.open_date is exist - process it [08:23:06]req_shift_open_date [08:23:06]req_shift_open_date done [08:23:06]produce_requested_data done [08:23:06]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68386,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [08:23:06]process_action_free close_receipt [08:23:06]json_value_free [08:23:06]json_value_free done [08:23:06]process_json_proto returns [08:23:06]Send response to host [08:23:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68386,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [08:23:06]free response buf [08:23:06]execute_script done [08:23:06]execute_script returns [08:23:06]free content buf [08:23:06]Sock 9.Close socket [08:23:06]Sock 9.Thread stoped [08:23:10]OFD Sender: No OFD packet to send [08:23:15]OFD Sender: No OFD packet to send [08:23:20]OFD Sender: No OFD packet to send [08:23:25]OFD Sender: No OFD packet to send [08:23:30]OFD Sender: No OFD packet to send [08:23:35]OFD Sender: No OFD packet to send [08:23:40]OFD Sender: No OFD packet to send [08:23:45]OFD Sender: No OFD packet to send [08:23:50]OFD Sender: No OFD packet to send [08:23:52]accept exits with 7 [08:23:52]New connection [08:23:52]New thread 3067276644 created [08:23:52]Thread 3067133284 joined [08:23:52]Waiting for new connection... [08:23:52] Sock 7.Parse request [08:23:52]Sock 7.Check first char [08:23:52]Sock 7.First char is OK [08:23:52]request: POST /json_proto HTTP/1.0 [08:23:52]Method: POST [08:23:52]URL: /json_proto [08:23:52]Method is POST - this is cgi request [08:23:52]url: /json_proto [08:23:52]query_string will be loaded in cgi processing [08:23:52]execute_cgi json_proto POST (null) [08:23:52]execute_cgi path=json_proto method=POST [08:23:52]POST find Content-Length [08:23:52]Host: 172.17.52.3:8080 [08:23:52]Content-Length: 788 [08:23:52]Content-Type: application/json [08:23:52] [08:23:52]POST finish read [08:23:52]Found Content-Length = 788 [08:23:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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\u000A97787", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:52]execute_script... [08:23: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)210384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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\u000A97787", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:52]POST & json_proto [08:23:52]process_json_proto [08:23:52]json parsed OK: [08:23:52]protocol is kg_v1.0 [08:23:52]action value=close_receipt [08:23:52]process_action close_receipt [08:23:52]cmd_close_receipt [08:23:52]MH_GetDate [08:23:52]Write to MH i2c: F0 00 00 F0 27 06 [08:23:52]Write i2c OK [08:23:52]MH_I2C_Read... [08:23:52]Read from MH i2c: F0 [08:23:52]MH_I2C_Read... [08:23:52]Read from MH i2c: F0 09 00 [08:23:52]MH_I2C_Read... [08:23:52]Read from MH i2c: F0 09 00 F0 27 00 A0 B2 18 67 D7 68 A5 64 28 [08:23:52]GetLastDocTimeStamp 1729671790 [08:23:52]current date 1729671840 [08:23:52]FM_GetShiftState [08:23:52]SAM_PROTO_GetShiftState [08:23:52]wFMCommunicate request_size=4 [08:23:52]MH_SAM_APDU [08:23:52]CAPDU: 80 13 01 00 [08:23:52]Write to MH i2c: E2 08 00 F1 27 80 13 01 00 00 00 00 00 95 [08:23:52]Write i2c OK [08:23:52]MH_I2C_Read... [08:23:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:52]Read from MH i2c: E2 [08:23:52]MH_I2C_Read... [08:23:52]Read from MH i2c: E2 0E 00 [08:23:52]MH_I2C_Read... [08:23:52]Read from MH i2c: E2 0E 00 F1 27 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 04 [08:23:52]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [08:23:52]wFMCommunicate OK [08:23:52]SAM_PROTO_GetShiftState done [08:23:52]FM_GetShiftState done [08:23:52]opened in 1729641385 [08:23:52]opened+sec_in_day 1729727785 [08:23:52]quantity*price = 0 [08:23:52]sum+1 = 1 [08:23:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 10 23.10.2024 08:24 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 Талоны: Топливная Карта 97787 ФМ: 0000000000871809 ФД: 68387 ФПД: 210575978523538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T082400&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68387&fm=210575978523538&tin=02508201610067®Number=0000000000091756&sum=0 [08:23:53]StoreToDocumentArchive [08:23:53]shift 507 fd 68387 [08:23:53]save to /storage/0507/doc_00068387 [08:23:53]save last doc name /storage/0507/doc_00068387 to /storage/kkm_last_doc_name [08:23:53]save OK [08:23:53]Clear old archive folders... [08:23:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:23:53]tlvbuf is 02005F20 [08:23:53]SAM_PROTO_ClearQueue [08:23:53]wFMCommunicate request_size=4 [08:23:53]MH_SAM_APDU [08:23:53]CAPDU: 80 09 00 00 [08:23:53]Write to MH i2c: E2 08 00 FE 27 80 09 00 00 00 00 00 00 97 [08:23:53]Write i2c OK [08:23:53]MH_I2C_Read... [08:23:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:23:53]Read from MH i2c: E2 [08:23:53]MH_I2C_Read... [08:23:53]Read from MH i2c: E2 03 00 [08:23:53]MH_I2C_Read... [08:23:53]Read from MH i2c: E2 03 00 FE 27 00 90 00 99 [08:23:53]RAPDU: 90 00 [08:23:53]wFMCommunicate OK [08:23:53]SAM_PROTO_ClearQueue done [08:23:53]KKMCreateOFDPacket [08:23:53]OFDProtocolAddRootSTLVToBuf [08:23:53]FM_MakeSignedData [08:23:53]FM_MakeSignedData [08:23:53]SAM_PROTO_SignData [08:23:53]wFMCommunicate request_size=4 [08:23:53]MH_SAM_APDU [08:23:53]CAPDU: 80 0D 01 02 [08:23:53]Write to MH i2c: E2 08 00 FF 27 80 0D 01 02 00 00 00 00 9F [08:23:53]Write i2c OK [08:23:53]MH_I2C_Read... [08:23:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:23:53]Read from MH i2c: E2 [08:23:53]MH_I2C_Read... [08:23:53]Read from MH i2c: E2 03 00 [08:23:53]MH_I2C_Read... [08:23:53]Read from MH i2c: E2 03 00 FF 27 00 90 00 9A [08:23:53]RAPDU: 90 00 [08:23:53]wFMCommunicate OK [08:23:53]wFMCommunicate request_size=255 [08:23:53]MH_SAM_APDU [08:23:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 0A 00 00 00 F4 03 04 00 A0 B2 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 23 0B 01 00 35 04 06 00 BF 84 8A 65 [08:23:53]Write to MH i2c: E2 02 01 00 28 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 0A 00 00 00 F4 03 04 00 A0 B2 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 23 0B 01 00 35 04 06 00 BF 84 8A 65 00 00 8B [08:23:54]Write i2c OK [08:23:54]MH_I2C_Read... [08:23:54]*** iso7816_exchange 80 0D 02 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 00 28 00 90 00 9C [08:23:54]RAPDU: 90 00 [08:23:54]wFMCommunicate OK [08:23:54]wFMCommunicate request_size=7 [08:23:54]MH_SAM_APDU [08:23:54]CAPDU: 80 0D 02 02 02 EB 92 [08:23:54]Write to MH i2c: E2 0A 00 01 28 80 0D 02 02 02 00 EB 92 00 00 24 [08:23:54]Write i2c OK [08:23:54]MH_I2C_Read... [08:23:54]*** iso7816_exchange 80 0D 02 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 01 28 00 90 00 9D [08:23:54]RAPDU: 90 00 [08:23:54]wFMCommunicate OK [08:23:54]wFMCommunicate request_size=4 [08:23:54]MH_SAM_APDU [08:23:54]CAPDU: 80 0D 03 02 [08:23:54]Write to MH i2c: E2 08 00 02 28 80 0D 03 02 00 00 00 00 A5 [08:23:54]Write i2c OK [08:23:54]MH_I2C_Read... [08:23:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:23:54]Read from MH i2c: E2 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: E2 0B 00 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: E2 0B 00 02 28 00 1D 95 A7 1D 8C 98 67 ED 90 00 94 [08:23:54]RAPDU: 1D 95 A7 1D 8C 98 67 ED 90 00 [08:23:54]wFMCommunicate OK [08:23:54]SAM_PROTO_SignData done [08:23:54]FM_MakeSignedData done [08:23:54]CreateOFDProtocolMessage [08:23:54]wFMCommunicate request_size=4 [08:23:54]MH_SAM_APDU [08:23:54]CAPDU: 80 11 00 00 [08:23:54]Write to MH i2c: E2 08 00 03 28 80 11 00 00 00 00 00 00 A5 [08:23:54]Write i2c OK [08:23:54]MH_I2C_Read... [08:23:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:54]Read from MH i2c: E2 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: E2 17 00 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: E2 17 00 03 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 F9 [08:23:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [08:23:54]wFMCommunicate OK [08:23:54]CreateOFDProtocolMessage done [08:23:54]OFDSenderStorePacket 68387 [08:23:54]StoreOFDPacket docnum=68387 [08:23:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0C 01 00 00 89 01 04 01 18 0E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 0A 00 00 00 F4 03 04 00 A0 B2 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 23 0B 01 00 35 04 06 00 BF 84 8A 65 EB 92 1D 95 A7 1D 8C 98 67 ED [08:23:54]CheckFolder [08:23:54]dirname=/storage/ofd_packets [08:23:54]CheckFolder done [08:23:54]ProducePacketName [08:23:54]name=ofd_packets/00068387 [08:23:54]NVStorageSaveData ofd_packets/00068387 [08:23:54]File name is /storage/ofd_packets/00068387 [08:23:54]Write 298 bytes [08:23:54]NVStorageSaveData done [08:23:54]OFDSenderStorePacket done [08:23:54]KKMCreateOFDPacket done [08:23:54]NVStorageSaveData kkm_last_timestamp [08:23:54]File name is /storage/kkm_last_timestamp [08:23:54]Write 4 bytes [08:23:54]NVStorageSaveData done [08:23:54]ExternCall_PrintAddStr [08:23:54]wPrintStart [08:23:54]Write to MH i2c: 01 00 00 04 28 2C [08:23:54]Write i2c OK [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: 01 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: 01 07 00 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: 01 07 00 04 28 00 04 00 00 00 FF 0F 45 [08:23:54]RasterBufferAndPrint [08:23:54]line Счет N : (1)210384 [08:23:54]line ИНН: 02508201610067 [08:23:54]line Контрольно-Кассовый Чек [08:23:54]line ПРОДАЖА [08:23:54]line ТРК (МРК, ГНК) : 32 [08:23:54]line Товар: 2710194210 [08:23:54]line ДТ-К-2 [08:23:54]line 7.480 * 0.00 [08:23:54]line = 0.00 [08:23:54]line НДС 12% НСП 1% [08:23:54]line > о реализуемом товаре [08:23:54]line ИТОГО: 0.00 [08:23:54]line НСП 1% : 0.00 [08:23:54]line НДС 12% : 0.00 [08:23:54]line Наличными: 0.00 [08:23:54]line Безнал.: 0.00 [08:23:54]line Место: АЗС № 147 "Партнер Нефть" [08:23:54]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [08:23:54]line СНО: Общий режим [08:23:54]line Чек 10 23.10.2024 08:24 [08:23:54]line Смена: 507 ФФД: 1.0 [08:23:54]line ЗНМ: 0300000094 [08:23:54]line РНМ: 0000000000091756 [08:23:54]line Версия ККМ: 001 [08:23:54]line Талоны: Топливная Карта [08:23:54]line 97787 [08:23:54]line ФМ: 0000000000871809 [08:23:54]line ФД: 68387 [08:23:54]line ФПД: 210575978523538 [08:23:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T082400&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68387&fm=210575978523538&tin=02508201610067®Number=0000000000091756&sum=0 [08:23:54]OFD Sender: Processing packet 68387 [packets to send 8, broken 7] [08:23:54]ProducePacketName [08:23:54]name=ofd_packets/00068387 [08:23:54]OFD Sender: To server: pG, [08:23:54]CommunicateWithHost lk.salyk.kg:30040 [08:23:54]ConnectInit lk.salyk.kg [08:23:54]written 0, free lines is 4095 [08:23:54]Connected sock=10 [08:23:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0C 01 00 00 89 01 04 01 18 0E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 0A 00 00 00 F4 03 04 00 A0 B2 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 23 0B 01 00 35 04 06 00 BF 84 8A 65 EB 92 1D 95 A7 1D 8C 98 67 ED [08:23:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 88 44 47 00 AE 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 31 38 30 39 10 04 04 00 23 0B 01 00 F4 03 04 00 96 58 18 67 B6 04 01 00 00 02 B2 82 69 87 56 D9 C7 [08:23:55]CommunicateWithHost err = 0 [08:23:55]CheckOFDResponse [08:23:55]1017 (14) - 77093643461234 [08:23:55]1041 (16) - 0000000000871809 [08:23:55]1040 (4) - 68387 [08:23:55]1012 (4) - 23.10.2024 01:59 [08:23:55]1206 (1) - 0 [08:23:55]OFD Sender: Remove packet 68387 [08:23:55]ProducePacketName [08:23:55]name=ofd_packets/00068387 [08:23:55]NVStorageDeleteData [08:23:55]Write to MH i2c: 01 00 00 2D 28 55 [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 2D 28 00 04 00 00 00 C6 0C 32 [08:23:55]RasterBufferAndPrint [08:23:55]line [08:23:55]line [08:23:55]line [08:23:55]line [08:23:55]line [08:23:55]written 0, free lines is 3274 [08:23:55]MH_Cut [08:23:55]Write to MH i2c: D1 01 00 34 28 01 2E [08:23:55]Write i2c OK [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: D1 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: D1 01 00 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: D1 01 00 34 28 00 2D [08:23:55]Write to MH i2c: 01 00 00 35 28 5D [08:23:55]Write i2c OK [08:23:55]MH_I2C_Read... [08:23:55]OFD Sender: No OFD packet to send [08:23:56]*** Cut start [08:23:56]*** Partial cut [08:23:56]*** CUTSNS_PIN = 1 [08:23:56]*** CUTSNS_PIN = 0 [08:23:56]*** Brake cut motor [08:23:56]Read from MH i2c: 01 [08:23:56]MH_I2C_Read... [08:23:56]*** Stop cut motor [08:23:56]*** Cut end [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 35 28 00 04 00 00 00 FF 0F 76 [08:23:56]process_action close_receipt done [08:23:56]requested_data is exist [08:23:56]produce_requested_data [08:23:56]requested_item fm.sn is exist - process it [08:23:56]wFMCommunicate request_size=4 [08:23:56]MH_SAM_APDU [08:23:56]CAPDU: 80 11 00 00 [08:23:56]Write to MH i2c: E2 08 00 36 28 80 11 00 00 00 00 00 00 D8 [08:23:56]Write i2c OK [08:23:56]MH_I2C_Read... [08:23:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:56]Read from MH i2c: E2 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: E2 17 00 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: E2 17 00 36 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 2C [08:23:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [08:23:56]wFMCommunicate OK [08:23:56]requested_item fd.num is exist - process it [08:23:56]SAM_PROTO_GetFieldsCounters [08:23:56]wFMCommunicate request_size=4 [08:23:56]MH_SAM_APDU [08:23:56]CAPDU: 80 13 00 00 [08:23:56]Write to MH i2c: E2 08 00 37 28 80 13 00 00 00 00 00 00 DB [08:23:56]Write i2c OK [08:23:56]MH_I2C_Read... [08:23:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:23:56]Read from MH i2c: E2 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: E2 62 00 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: E2 62 00 37 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 23 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [08:23:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 23 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:23:56]wFMCommunicate OK [08:23:56]SAM_PROTO_GetFieldsCounters done [08:23:56]requested_item shift.num is exist - process it [08:23:56]requested_item shift.opened is exist - process it [08:23:56]req_shift_opened [08:23:56]FM_GetShiftState [08:23:56]SAM_PROTO_GetShiftState [08:23:56]wFMCommunicate request_size=4 [08:23:56]MH_SAM_APDU [08:23:56]CAPDU: 80 13 01 00 [08:23:56]Write to MH i2c: E2 08 00 38 28 80 13 01 00 00 00 00 00 DD [08:23:56]Write i2c OK [08:23:56]MH_I2C_Read... [08:23:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:56]Read from MH i2c: E2 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: E2 0E 00 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: E2 0E 00 38 28 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 4C [08:23:56]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [08:23:56]wFMCommunicate OK [08:23:56]SAM_PROTO_GetShiftState done [08:23:56]FM_GetShiftState done [08:23:56]req_shift_opened done [08:23:56]requested_item shift.open_date is exist - process it [08:23:56]req_shift_open_date [08:23:56]req_shift_open_date done [08:23:56]produce_requested_data done [08:23:56]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68387,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [08:23:56]process_action_free close_receipt [08:23:56]json_value_free [08:23:56]json_value_free done [08:23:56]process_json_proto returns [08:23:56]Send response to host [08:23:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68387,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [08:23:56]free response buf [08:23:56]execute_script done [08:23:56]execute_script returns [08:23:56]free content buf [08:23:56]Sock 7.Close socket [08:23:56]Sock 7.Thread stoped [08:24:00]OFD Sender: No OFD packet to send [08:24:05]OFD Sender: No OFD packet to send [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: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: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:55]OFD Sender: No OFD packet to send [08:28:00]OFD Sender: No OFD packet to send [08:28:05]OFD Sender: No OFD packet to send [08:28:10]OFD Sender: No OFD packet to send [08:28:15]OFD Sender: No OFD packet to send [08:28:20]OFD Sender: No OFD packet to send [08:28:25]OFD Sender: No OFD packet to send [08:28:30]OFD Sender: No OFD packet to send [08:28:35]OFD Sender: No OFD packet to send [08:28:40]OFD Sender: No OFD packet to send [08:28:45]OFD Sender: No OFD packet to send [08:28:50]OFD Sender: No OFD packet to send [08:28:55]OFD Sender: No OFD packet to send [08:29:00]OFD Sender: No OFD packet to send [08:29:05]OFD Sender: No OFD packet to send [08:29:10]OFD Sender: No OFD packet to send [08:29:15]OFD Sender: No OFD packet to send [08:29:20]OFD Sender: No OFD packet to send [08:29:25]OFD Sender: No OFD packet to send [08:29:30]OFD Sender: No OFD packet to send [08:29:35]OFD Sender: No OFD packet to send [08:29:40]OFD Sender: No OFD packet to send [08:29:45]OFD Sender: No OFD packet to send [08:29:50]OFD Sender: No OFD packet to send [08:29:55]OFD Sender: No OFD packet to send [08:30:00]OFD Sender: No OFD packet to send [08:30:05]OFD Sender: No OFD packet to send [08:30:10]OFD Sender: No OFD packet to send [08:30:15]OFD Sender: No OFD packet to send [08:30:20]OFD Sender: No OFD packet to send [08:30:25]OFD Sender: No OFD packet to send [08:30:30]OFD Sender: No OFD packet to send [08:30:35]OFD Sender: No OFD packet to send [08:30:40]OFD Sender: No OFD packet to send [08:30:45]OFD Sender: No OFD packet to send [08:30:47]accept exits with 9 [08:30:47]New connection [08:30:47]New thread 3067133284 created [08:30:47]Thread 3067276644 joined [08:30:47]Waiting for new connection... [08:30:47] Sock 9.Parse request [08:30:47]Sock 9.Check first char [08:30:47]Sock 9.First char is OK [08:30:47]request: POST /json_proto HTTP/1.0 [08:30:47]Method: POST [08:30:47]URL: /json_proto [08:30:47]Method is POST - this is cgi request [08:30:47]url: /json_proto [08:30:47]query_string will be loaded in cgi processing [08:30:47]execute_cgi json_proto POST (null) [08:30:47]execute_cgi path=json_proto method=POST [08:30:47]POST find Content-Length [08:30:47]Host: 172.17.52.3:8080 [08:30:47]Content-Length: 791 [08:30:47]Content-Type: application/json [08:30:47] [08:30:47]POST finish read [08:30:47]Found Content-Length = 791 [08:30:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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\u000A97787", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:47]execute_script... [08:30: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)210385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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\u000A97787", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:47]POST & json_proto [08:30:47]process_json_proto [08:30:47]json parsed OK: [08:30:47]protocol is kg_v1.0 [08:30:47]action value=close_receipt [08:30:47]process_action close_receipt [08:30:47]cmd_close_receipt [08:30:47]MH_GetDate [08:30:47]Write to MH i2c: F0 00 00 39 28 50 [08:30:47]Write i2c OK [08:30:47]MH_I2C_Read... [08:30:47]Read from MH i2c: F0 [08:30:47]MH_I2C_Read... [08:30:47]Read from MH i2c: F0 09 00 [08:30:47]MH_I2C_Read... [08:30:47]Read from MH i2c: F0 09 00 39 28 00 3F B4 18 67 D7 68 A5 64 13 [08:30:47]GetLastDocTimeStamp 1729671840 [08:30:47]current date 1729672255 [08:30:47]FM_GetShiftState [08:30:47]SAM_PROTO_GetShiftState [08:30:47]wFMCommunicate request_size=4 [08:30:47]MH_SAM_APDU [08:30:47]CAPDU: 80 13 01 00 [08:30:47]Write to MH i2c: E2 08 00 3A 28 80 13 01 00 00 00 00 00 DF [08:30:47]Write i2c OK [08:30:47]MH_I2C_Read... [08:30:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:47]Read from MH i2c: E2 [08:30:47]MH_I2C_Read... [08:30:47]Read from MH i2c: E2 0E 00 [08:30:47]MH_I2C_Read... [08:30:47]Read from MH i2c: E2 0E 00 3A 28 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 4E [08:30:47]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [08:30:47]wFMCommunicate OK [08:30:47]SAM_PROTO_GetShiftState done [08:30:47]FM_GetShiftState done [08:30:47]opened in 1729641385 [08:30:47]opened+sec_in_day 1729727785 [08:30:47]quantity*price = 0 [08:30:47]sum+1 = 1 [08:30:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 11 23.10.2024 08:30 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 Талоны: Топливная Карта 97787 ФМ: 0000000000871809 ФД: 68388 ФПД: 123932571081407 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083055&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68388&fm=123932571081407&tin=02508201610067®Number=0000000000091756&sum=0 [08:30:48]StoreToDocumentArchive [08:30:48]shift 507 fd 68388 [08:30:48]save to /storage/0507/doc_00068388 [08:30:48]save last doc name /storage/0507/doc_00068388 to /storage/kkm_last_doc_name [08:30:48]save OK [08:30:48]Clear old archive folders... [08:30:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:30:48]tlvbuf is 0206F040 [08:30:48]SAM_PROTO_ClearQueue [08:30:48]wFMCommunicate request_size=4 [08:30:48]MH_SAM_APDU [08:30:48]CAPDU: 80 09 00 00 [08:30:48]Write to MH i2c: E2 08 00 47 28 80 09 00 00 00 00 00 00 E1 [08:30:48]Write i2c OK [08:30:48]MH_I2C_Read... [08:30:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:30:48]Read from MH i2c: E2 [08:30:48]MH_I2C_Read... [08:30:48]Read from MH i2c: E2 03 00 [08:30:48]MH_I2C_Read... [08:30:48]Read from MH i2c: E2 03 00 47 28 00 90 00 E3 [08:30:48]RAPDU: 90 00 [08:30:48]wFMCommunicate OK [08:30:48]SAM_PROTO_ClearQueue done [08:30:48]KKMCreateOFDPacket [08:30:48]OFDProtocolAddRootSTLVToBuf [08:30:48]FM_MakeSignedData [08:30:48]FM_MakeSignedData [08:30:48]SAM_PROTO_SignData [08:30:48]wFMCommunicate request_size=4 [08:30:48]MH_SAM_APDU [08:30:48]CAPDU: 80 0D 01 02 [08:30:48]Write to MH i2c: E2 08 00 48 28 80 0D 01 02 00 00 00 00 E9 [08:30:48]Write i2c OK [08:30:48]MH_I2C_Read... [08:30:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:30:48]Read from MH i2c: E2 [08:30:48]MH_I2C_Read... [08:30:48]Read from MH i2c: E2 03 00 [08:30:48]MH_I2C_Read... [08:30:48]Read from MH i2c: E2 03 00 48 28 00 90 00 E4 [08:30:48]RAPDU: 90 00 [08:30:48]wFMCommunicate OK [08:30:48]wFMCommunicate request_size=255 [08:30:48]MH_SAM_APDU [08:30: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 32 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 0B 00 00 00 F4 03 04 00 3F B4 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 24 0B 01 00 35 04 06 00 70 [08:30:48]Write to MH i2c: E2 02 01 49 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 0B 00 00 00 F4 03 04 00 3F B4 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 24 0B 01 00 35 04 06 00 70 00 00 62 [08:30:48]Write i2c OK [08:30:48]MH_I2C_Read... [08:30:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:48]Read from MH i2c: E2 [08:30:48]MH_I2C_Read... [08:30:48]Read from MH i2c: E2 03 00 [08:30:48]MH_I2C_Read... [08:30:48]Read from MH i2c: E2 03 00 49 28 00 90 00 E5 [08:30:48]RAPDU: 90 00 [08:30:48]wFMCommunicate OK [08:30:48]wFMCommunicate request_size=10 [08:30:48]MH_SAM_APDU [08:30:48]CAPDU: 80 0D 02 02 05 B7 4C E0 1A BF [08:30:48]Write to MH i2c: E2 0D 00 4A 28 80 0D 02 02 05 00 B7 4C E0 1A BF 00 00 B2 [08:30:48]Write i2c OK [08:30:48]MH_I2C_Read... [08:30:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:49]Read from MH i2c: E2 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: E2 03 00 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: E2 03 00 4A 28 00 90 00 E6 [08:30:49]RAPDU: 90 00 [08:30:49]wFMCommunicate OK [08:30:49]wFMCommunicate request_size=4 [08:30:49]MH_SAM_APDU [08:30:49]CAPDU: 80 0D 03 02 [08:30:49]Write to MH i2c: E2 08 00 4B 28 80 0D 03 02 00 00 00 00 EE [08:30:49]Write i2c OK [08:30:49]MH_I2C_Read... [08:30:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:30:49]Read from MH i2c: E2 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: E2 0B 00 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: E2 0B 00 4B 28 00 4B 4E B4 AD 9F 3F 01 70 90 00 38 [08:30:49]RAPDU: 4B 4E B4 AD 9F 3F 01 70 90 00 [08:30:49]wFMCommunicate OK [08:30:49]SAM_PROTO_SignData done [08:30:49]FM_MakeSignedData done [08:30:49]CreateOFDProtocolMessage [08:30:49]wFMCommunicate request_size=4 [08:30:49]MH_SAM_APDU [08:30:49]CAPDU: 80 11 00 00 [08:30:49]Write to MH i2c: E2 08 00 4C 28 80 11 00 00 00 00 00 00 EE [08:30:49]Write i2c OK [08:30:49]MH_I2C_Read... [08:30:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:49]Read from MH i2c: E2 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: E2 17 00 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: E2 17 00 4C 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 42 [08:30:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [08:30:49]wFMCommunicate OK [08:30:49]CreateOFDProtocolMessage done [08:30:49]OFDSenderStorePacket 68388 [08:30:49]StoreOFDPacket docnum=68388 [08:30:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 2E 03 07 01 8B E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 0B 00 00 00 F4 03 04 00 3F B4 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 24 0B 01 00 35 04 06 00 70 B7 4C E0 1A BF 4B 4E B4 AD 9F 3F 01 70 [08:30:49]CheckFolder [08:30:49]dirname=/storage/ofd_packets [08:30:49]CheckFolder done [08:30:49]ProducePacketName [08:30:49]name=ofd_packets/00068388 [08:30:49]NVStorageSaveData ofd_packets/00068388 [08:30:49]File name is /storage/ofd_packets/00068388 [08:30:49]Write 301 bytes [08:30:49]NVStorageSaveData done [08:30:49]OFDSenderStorePacket done [08:30:49]KKMCreateOFDPacket done [08:30:49]NVStorageSaveData kkm_last_timestamp [08:30:49]File name is /storage/kkm_last_timestamp [08:30:49]Write 4 bytes [08:30:49]NVStorageSaveData done [08:30:49]ExternCall_PrintAddStr [08:30:49]wPrintStart [08:30:49]Write to MH i2c: 01 00 00 4D 28 75 [08:30:49]Write i2c OK [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: 01 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: 01 07 00 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: 01 07 00 4D 28 00 04 00 00 00 FF 0F 8E [08:30:49]RasterBufferAndPrint [08:30:49]line Счет N : (1)210385 [08:30:49]line ИНН: 02508201610067 [08:30:49]line Контрольно-Кассовый Чек [08:30:49]line ПРОДАЖА [08:30:49]line ТРК (МРК, ГНК) : 11 [08:30:49]line Товар: 2710124130 [08:30:49]line Аи-92-К-2 [08:30:49]line 7.480 * 0.00 [08:30:49]line = 0.00 [08:30:49]line НДС 12% НСП 1% [08:30:49]line > о реализуемом товаре [08:30:49]line ИТОГО: 0.00 [08:30:49]line НСП 1% : 0.00 [08:30:49]line НДС 12% : 0.00 [08:30:49]line Наличными: 0.00 [08:30:49]line Безнал.: 0.00 [08:30:49]line Место: АЗС № 147 "Партнер Нефть" [08:30:49]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [08:30:49]line СНО: Общий режим [08:30:49]line Чек 11 23.10.2024 08:30 [08:30:49]line Смена: 507 ФФД: 1.0 [08:30:49]line ЗНМ: 0300000094 [08:30:49]line РНМ: 0000000000091756 [08:30:49]line Версия ККМ: 001 [08:30:49]line Талоны: Топливная Карта [08:30:49]line 97787 [08:30:49]line ФМ: 0000000000871809 [08:30:49]line ФД: 68388 [08:30:49]line ФПД: 123932571081407 [08:30:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083055&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68388&fm=123932571081407&tin=02508201610067®Number=0000000000091756&sum=0 [08:30:49]written 0, free lines is 4095 [08:30:49]OFD Sender: Processing packet 68388 [packets to send 8, broken 7] [08:30:49]ProducePacketName [08:30:49]name=ofd_packets/00068388 [08:30:49]OFD Sender: To server: pG, [08:30:49]CommunicateWithHost lk.salyk.kg:30040 [08:30:49]ConnectInit lk.salyk.kg [08:30:49]Connected sock=10 [08:30:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 2E 03 07 01 8B E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 0B 00 00 00 F4 03 04 00 3F B4 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 24 0B 01 00 35 04 06 00 70 B7 4C E0 1A BF 4B 4E B4 AD 9F 3F 01 70 [08:30:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 04 34 47 00 EA 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 24 0B 01 00 F4 03 04 00 34 5A 18 67 B6 04 01 00 00 C8 E9 12 E6 16 DB 26 EC [08:30:49]CommunicateWithHost err = 0 [08:30:49]CheckOFDResponse [08:30:49]1017 (14) - 77093643461234 [08:30:49]1041 (16) - 0000000000871809 [08:30:49]1040 (4) - 68388 [08:30:49]1012 (4) - 23.10.2024 02:06 [08:30:49]1206 (1) - 0 [08:30:49]OFD Sender: Remove packet 68388 [08:30:49]ProducePacketName [08:30:49]name=ofd_packets/00068388 [08:30:49]NVStorageDeleteData [08:30:49]Write to MH i2c: 01 00 00 76 28 9E [08:30:49]Write i2c OK [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: 01 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: 01 07 00 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: 01 07 00 76 28 00 04 00 00 00 C5 0C 7A [08:30:49]RasterBufferAndPrint [08:30:49]line [08:30:49]line [08:30:49]line [08:30:49]line [08:30:49]line [08:30:49]written 0, free lines is 3273 [08:30:49]MH_Cut [08:30:49]Write to MH i2c: D1 01 00 7D 28 01 77 [08:30:49]Write i2c OK [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: D1 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: D1 01 00 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: D1 01 00 7D 28 00 76 [08:30:49]Write to MH i2c: 01 00 00 7E 28 A6 [08:30:49]Write i2c OK [08:30:49]MH_I2C_Read... [08:30:49]OFD Sender: No OFD packet to send [08:30:50]*** Cut start [08:30:50]*** Partial cut [08:30:50]*** CUTSNS_PIN = 1 [08:30:50]*** CUTSNS_PIN = 0 [08:30:50]*** Brake cut motor [08:30:50]Read from MH i2c: 01 [08:30:50]MH_I2C_Read... [08:30:50]*** Stop cut motor [08:30:50]*** Cut end [08:30:50]Read from MH i2c: 01 07 00 [08:30:51]MH_I2C_Read... [08:30:51]Read from MH i2c: 01 07 00 7E 28 00 04 00 00 00 FF 0F BF [08:30:51]process_action close_receipt done [08:30:51]requested_data is exist [08:30:51]produce_requested_data [08:30:51]requested_item fm.sn is exist - process it [08:30:51]wFMCommunicate request_size=4 [08:30:51]MH_SAM_APDU [08:30:51]CAPDU: 80 11 00 00 [08:30:51]Write to MH i2c: E2 08 00 7F 28 80 11 00 00 00 00 00 00 21 [08:30:51]Write i2c OK [08:30:51]MH_I2C_Read... [08:30:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:51]Read from MH i2c: E2 [08:30:51]MH_I2C_Read... [08:30:51]Read from MH i2c: E2 17 00 [08:30:51]MH_I2C_Read... [08:30:51]Read from MH i2c: E2 17 00 7F 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 75 [08:30:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [08:30:51]wFMCommunicate OK [08:30:51]requested_item fd.num is exist - process it [08:30:51]SAM_PROTO_GetFieldsCounters [08:30:51]wFMCommunicate request_size=4 [08:30:51]MH_SAM_APDU [08:30:51]CAPDU: 80 13 00 00 [08:30:51]Write to MH i2c: E2 08 00 80 28 80 13 00 00 00 00 00 00 24 [08:30:51]Write i2c OK [08:30:51]MH_I2C_Read... [08:30:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:30:51]Read from MH i2c: E2 [08:30:51]MH_I2C_Read... [08:30:51]Read from MH i2c: E2 62 00 [08:30:51]MH_I2C_Read... [08:30:51]Read from MH i2c: E2 62 00 80 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 24 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [08:30:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 24 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:30:51]wFMCommunicate OK [08:30:51]SAM_PROTO_GetFieldsCounters done [08:30:51]requested_item shift.num is exist - process it [08:30:51]requested_item shift.opened is exist - process it [08:30:51]req_shift_opened [08:30:51]FM_GetShiftState [08:30:51]SAM_PROTO_GetShiftState [08:30:51]wFMCommunicate request_size=4 [08:30:51]MH_SAM_APDU [08:30:51]CAPDU: 80 13 01 00 [08:30:51]Write to MH i2c: E2 08 00 81 28 80 13 01 00 00 00 00 00 26 [08:30:51]Write i2c OK [08:30:51]MH_I2C_Read... [08:30:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:51]Read from MH i2c: E2 [08:30:51]MH_I2C_Read... [08:30:51]Read from MH i2c: E2 0E 00 [08:30:51]MH_I2C_Read... [08:30:51]Read from MH i2c: E2 0E 00 81 28 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 95 [08:30:51]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [08:30:51]wFMCommunicate OK [08:30:51]SAM_PROTO_GetShiftState done [08:30:51]FM_GetShiftState done [08:30:51]req_shift_opened done [08:30:51]requested_item shift.open_date is exist - process it [08:30:51]req_shift_open_date [08:30:51]req_shift_open_date done [08:30:51]produce_requested_data done [08:30:51]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68388,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [08:30:51]process_action_free close_receipt [08:30:51]json_value_free [08:30:51]json_value_free done [08:30:51]process_json_proto returns [08:30:51]Send response to host [08:30:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68388,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [08:30:51]free response buf [08:30:51]execute_script done [08:30:51]execute_script returns [08:30:51]free content buf [08:30:51]Sock 9.Close socket [08:30:51]Sock 9.Thread stoped [08:30:54]OFD Sender: No OFD packet to send [08:30:59]OFD Sender: No OFD packet to send [08:31:04]OFD Sender: No OFD packet to send [08:31:09]OFD Sender: No OFD packet to send [08:31:14]OFD Sender: No OFD packet to send [08:31:20]OFD Sender: No OFD packet to send [08:31:25]OFD Sender: No OFD packet to send [08:31:30]OFD Sender: No OFD packet to send [08:31:35]OFD Sender: No OFD packet to send [08:31:40]OFD Sender: No OFD packet to send [08:31:45]OFD Sender: No OFD packet to send [08:31:50]OFD Sender: No OFD packet to send [08:31:55]OFD Sender: No OFD packet to send [08:32:00]OFD Sender: No OFD packet to send [08:32:05]OFD Sender: No OFD packet to send [08:32:10]OFD Sender: No OFD packet to send [08:32:15]OFD Sender: No OFD packet to send [08:32:20]OFD Sender: No OFD packet to send [08:32:25]OFD Sender: No OFD packet to send [08:32:30]OFD Sender: No OFD packet to send [08:32:35]OFD Sender: No OFD packet to send [08:32:40]OFD Sender: No OFD packet to send [08:32:45]OFD Sender: No OFD packet to send [08:32:50]OFD Sender: No OFD packet to send [08:32:55]OFD Sender: No OFD packet to send [08:33:00]OFD Sender: No OFD packet to send [08:33:05]OFD Sender: No OFD packet to send [08:33:10]OFD Sender: No OFD packet to send [08:33:15]OFD Sender: No OFD packet to send [08:33:20]OFD Sender: No OFD packet to send [08:33:25]OFD Sender: No OFD packet to send [08:33:30]OFD Sender: No OFD packet to send [08:33:35]OFD Sender: No OFD packet to send [08:33:40]OFD Sender: No OFD packet to send [08:33:45]OFD Sender: No OFD packet to send [08:33:50]OFD Sender: No OFD packet to send [08:33:55]OFD Sender: No OFD packet to send [08:34:00]OFD Sender: No OFD packet to send [08:34:05]OFD Sender: No OFD packet to send [08:34:10]OFD Sender: No OFD packet to send [08:34:15]OFD Sender: No OFD packet to send [08:34:20]OFD Sender: No OFD packet to send [08:34:25]OFD Sender: No OFD packet to send [08:34:30]OFD Sender: No OFD packet to send [08:34:35]OFD Sender: No OFD packet to send [08:34:40]OFD Sender: No OFD packet to send [08:34:45]OFD Sender: No OFD packet to send [08:34:50]OFD Sender: No OFD packet to send [08:34:55]OFD Sender: No OFD packet to send [08:35:00]OFD Sender: No OFD packet to send [08:35:05]OFD Sender: No OFD packet to send [08:35:10]OFD Sender: No OFD packet to send [08:35:15]OFD Sender: No OFD packet to send [08:35:20]OFD Sender: No OFD packet to send [08:35:25]OFD Sender: No OFD packet to send [08:35:30]OFD Sender: No OFD packet to send [08:35:35]OFD Sender: No OFD packet to send [08:35:40]OFD Sender: No OFD packet to send [08:35:45]OFD Sender: No OFD packet to send [08:35:50]OFD Sender: No OFD packet to send [08:35:55]OFD Sender: No OFD packet to send [08:36:00]OFD Sender: No OFD packet to send [08:36:05]OFD Sender: No OFD packet to send [08:36:10]OFD Sender: No OFD packet to send [08:36:15]OFD Sender: No OFD packet to send [08:36:20]OFD Sender: No OFD packet to send [08:36:25]OFD Sender: No OFD packet to send [08:36:30]OFD Sender: No OFD packet to send [08:36:35]OFD Sender: No OFD packet to send [08:36:40]OFD Sender: No OFD packet to send [08:36:45]OFD Sender: No OFD packet to send [08:36:50]OFD Sender: No OFD packet to send [08:36:55]OFD Sender: No OFD packet to send [08:37:00]OFD Sender: No OFD packet to send [08:37:05]OFD Sender: No OFD packet to send [08:37:10]OFD Sender: No OFD packet to send [08:37:15]OFD Sender: No OFD packet to send [08:37:20]OFD Sender: No OFD packet to send [08:37:25]OFD Sender: No OFD packet to send [08:37:30]OFD Sender: No OFD packet to send [08:37:35]OFD Sender: No OFD packet to send [08:37:40]OFD Sender: No OFD packet to send [08:37:45]OFD Sender: No OFD packet to send [08:37:50]OFD Sender: No OFD packet to send [08:37:55]OFD Sender: No OFD packet to send [08:38:00]OFD Sender: No OFD packet to send [08:38:05]OFD Sender: No OFD packet to send [08:38:10]OFD Sender: No OFD packet to send [08:38:15]OFD Sender: No OFD packet to send [08:38:20]OFD Sender: No OFD packet to send [08:38:25]OFD Sender: No OFD packet to send [08:38:30]OFD Sender: No OFD packet to send [08:38:35]OFD Sender: No OFD packet to send [08:38:40]OFD Sender: No OFD packet to send [08:38:45]OFD Sender: No OFD packet to send [08:38:50]OFD Sender: No OFD packet to send [08:38:55]OFD Sender: No OFD packet to send [08:39:00]OFD Sender: No OFD packet to send [08:39:05]OFD Sender: No OFD packet to send [08:39:10]OFD Sender: No OFD packet to send [08:39:15]OFD Sender: No OFD packet to send [08:39:20]OFD Sender: No OFD packet to send [08:39:25]OFD Sender: No OFD packet to send [08:39:30]OFD Sender: No OFD packet to send [08:39:35]OFD Sender: No OFD packet to send [08:39:40]OFD Sender: No OFD packet to send [08:39:45]OFD Sender: No OFD packet to send [08:39:50]OFD Sender: No OFD packet to send [08:39:55]OFD Sender: No OFD packet to send [08:40:00]OFD Sender: No OFD packet to send [08:40:05]OFD Sender: No OFD packet to send [08:40:10]OFD Sender: No OFD packet to send [08:40:15]OFD Sender: No OFD packet to send [08:40:20]OFD Sender: No OFD packet to send [08:40:25]OFD Sender: No OFD packet to send [08:40:30]OFD Sender: No OFD packet to send [08:40:35]OFD Sender: No OFD packet to send [08:40:40]OFD Sender: No OFD packet to send [08:40:45]OFD Sender: No OFD packet to send [08:40:50]OFD Sender: No OFD packet to send [08:40:55]OFD Sender: No OFD packet to send [08:41:00]OFD Sender: No OFD packet to send [08:41:05]OFD Sender: No OFD packet to send [08:41:10]OFD Sender: No OFD packet to send [08:41:15]OFD Sender: No OFD packet to send [08:41:20]OFD Sender: No OFD packet to send [08:41:25]OFD Sender: No OFD packet to send [08:41:30]OFD Sender: No OFD packet to send [08:41:35]OFD Sender: No OFD packet to send [08:41:40]OFD Sender: No OFD packet to send [08:41:45]OFD Sender: No OFD packet to send [08:41:50]OFD Sender: No OFD packet to send [08:41:55]OFD Sender: No OFD packet to send [08:42:00]OFD Sender: No OFD packet to send [08:42:05]OFD Sender: No OFD packet to send [08:42:10]OFD Sender: No OFD packet to send [08:42:15]OFD Sender: No OFD packet to send [08:42:20]OFD Sender: No OFD packet to send [08:42:25]OFD Sender: No OFD packet to send [08:42:30]OFD Sender: No OFD packet to send [08:42:35]OFD Sender: No OFD packet to send [08:42:40]OFD Sender: No OFD packet to send [08:42:45]OFD Sender: No OFD packet to send [08:42:50]OFD Sender: No OFD packet to send [08:42:55]OFD Sender: No OFD packet to send [08:43:00]OFD Sender: No OFD packet to send [08:43:05]OFD Sender: No OFD packet to send [08:43:10]OFD Sender: No OFD packet to send [08:43:15]OFD Sender: No OFD packet to send [08:43:20]OFD Sender: No OFD packet to send [08:43:25]OFD Sender: No OFD packet to send [08:43:30]OFD Sender: No OFD packet to send [08:43:35]OFD Sender: No OFD packet to send [08:43:40]OFD Sender: No OFD packet to send [08:43:45]OFD Sender: No OFD packet to send [08:43:50]OFD Sender: No OFD packet to send [08:43:55]OFD Sender: No OFD packet to send [08:44:00]OFD Sender: No OFD packet to send [08:44:05]OFD Sender: No OFD packet to send [08:44:10]OFD Sender: No OFD packet to send [08:44:15]OFD Sender: No OFD packet to send [08:44:20]OFD Sender: No OFD packet to send [08:44:25]OFD Sender: No OFD packet to send [08:44:30]OFD Sender: No OFD packet to send [08:44:35]OFD Sender: No OFD packet to send [08:44:40]OFD Sender: No OFD packet to send [08:44:45]OFD Sender: No OFD packet to send [08:44:50]OFD Sender: No OFD packet to send [08:44:55]OFD Sender: No OFD packet to send [08:45:00]OFD Sender: No OFD packet to send [08:45:05]OFD Sender: No OFD packet to send [08:45:10]OFD Sender: No OFD packet to send [08:45:15]OFD Sender: No OFD packet to send [08:45:20]OFD Sender: No OFD packet to send [08:45:25]OFD Sender: No OFD packet to send [08:45:30]OFD Sender: No OFD packet to send [08:45:35]OFD Sender: No OFD packet to send [08:45:40]OFD Sender: No OFD packet to send [08:45:45]OFD Sender: No OFD packet to send [08:45:50]OFD Sender: No OFD packet to send [08:45:55]OFD Sender: No OFD packet to send [08:46:00]OFD Sender: No OFD packet to send [08:46:05]OFD Sender: No OFD packet to send [08:46:10]OFD Sender: No OFD packet to send [08:46:15]OFD Sender: No OFD packet to send [08:46:20]OFD Sender: No OFD packet to send [08:46:25]OFD Sender: No OFD packet to send [08:46:30]OFD Sender: No OFD packet to send [08:46:35]OFD Sender: No OFD packet to send [08:46:40]OFD Sender: No OFD packet to send [08:46:45]OFD Sender: No OFD packet to send [08:46:50]OFD Sender: No OFD packet to send [08:46:55]OFD Sender: No OFD packet to send [08:47:00]OFD Sender: No OFD packet to send [08:47:05]OFD Sender: No OFD packet to send [08:47:10]OFD Sender: No OFD packet to send [08:47:15]OFD Sender: No OFD packet to send [08:47:20]OFD Sender: No OFD packet to send [08:47:25]OFD Sender: No OFD packet to send [08:47:30]OFD Sender: No OFD packet to send [08:47:35]OFD Sender: No OFD packet to send [08:47:40]OFD Sender: No OFD packet to send [08:47:45]OFD Sender: No OFD packet to send [08:47:50]OFD Sender: No OFD packet to send [08:47:55]OFD Sender: No OFD packet to send [08:48:00]OFD Sender: No OFD packet to send [08:48:05]OFD Sender: No OFD packet to send [08:48:10]OFD Sender: No OFD packet to send [08:48:15]OFD Sender: No OFD packet to send [08:48:20]OFD Sender: No OFD packet to send [08:48:25]OFD Sender: No OFD packet to send [08:48:30]OFD Sender: No OFD packet to send [08:48:35]OFD Sender: No OFD packet to send [08:48:40]OFD Sender: No OFD packet to send [08:48:45]OFD Sender: No OFD packet to send [08:48:50]OFD Sender: No OFD packet to send [08:48:55]OFD Sender: No OFD packet to send [08:49:00]OFD Sender: No OFD packet to send [08:49:05]OFD Sender: No OFD packet to send [08:49:10]OFD Sender: No OFD packet to send [08:49:15]OFD Sender: No OFD packet to send [08:49:20]OFD Sender: No OFD packet to send [08:49:25]OFD Sender: No OFD packet to send [08:49:30]OFD Sender: No OFD packet to send [08:49:35]OFD Sender: No OFD packet to send [08:49:40]OFD Sender: No OFD packet to send [08:49:45]OFD Sender: No OFD packet to send [08:49:50]OFD Sender: No OFD packet to send [08:49:55]OFD Sender: No OFD packet to send [08:50:00]OFD Sender: No OFD packet to send [08:50:05]OFD Sender: No OFD packet to send [08:50:10]OFD Sender: No OFD packet to send [08:50:15]OFD Sender: No OFD packet to send [08:50:20]OFD Sender: No OFD packet to send [08:50:25]OFD Sender: No OFD packet to send [08:50:30]OFD Sender: No OFD packet to send [08:50:35]OFD Sender: No OFD packet to send [08:50:40]OFD Sender: No OFD packet to send [08:50:45]OFD Sender: No OFD packet to send [08:50:50]OFD Sender: No OFD packet to send [08:50:55]OFD Sender: No OFD packet to send [08:51:00]OFD Sender: No OFD packet to send [08:51:05]OFD Sender: No OFD packet to send [08:51:10]OFD Sender: No OFD packet to send [08:51:15]OFD Sender: No OFD packet to send [08:51:20]OFD Sender: No OFD packet to send [08:51:25]OFD Sender: No OFD packet to send [08:51:30]OFD Sender: No OFD packet to send [08:51:35]OFD Sender: No OFD packet to send [08:51:40]OFD Sender: No OFD packet to send [08:51:45]OFD Sender: No OFD packet to send [08:51:50]OFD Sender: No OFD packet to send [08:51:55]OFD Sender: No OFD packet to send [08:52:00]OFD Sender: No OFD packet to send [08:52:05]OFD Sender: No OFD packet to send [08:52:10]OFD Sender: No OFD packet to send [08:52:15]OFD Sender: No OFD packet to send [08:52:20]OFD Sender: No OFD packet to send [08:52:25]OFD Sender: No OFD packet to send [08:52:31]OFD Sender: No OFD packet to send [08:52:36]OFD Sender: No OFD packet to send [08:52:41]OFD Sender: No OFD packet to send [08:52:46]OFD Sender: No OFD packet to send [08:52:51]OFD Sender: No OFD packet to send [08:52:56]OFD Sender: No OFD packet to send [08:53:01]OFD Sender: No OFD packet to send [08:53:06]OFD Sender: No OFD packet to send [08:53:11]OFD Sender: No OFD packet to send [08:53:16]OFD Sender: No OFD packet to send [08:53:21]OFD Sender: No OFD packet to send [08:53:26]OFD Sender: No OFD packet to send [08:53:31]OFD Sender: No OFD packet to send [08:53:36]OFD Sender: No OFD packet to send [08:53:41]OFD Sender: No OFD packet to send [08:53:46]OFD Sender: No OFD packet to send [08:53:51]OFD Sender: No OFD packet to send [08:53:56]OFD Sender: No OFD packet to send [08:54:01]OFD Sender: No OFD packet to send [08:54:06]OFD Sender: No OFD packet to send [08:54:11]OFD Sender: No OFD packet to send [08:54:16]OFD Sender: No OFD packet to send [08:54:21]OFD Sender: No OFD packet to send [08:54:26]OFD Sender: No OFD packet to send [08:54:31]OFD Sender: No OFD packet to send [08:54:36]OFD Sender: No OFD packet to send [08:54:41]OFD Sender: No OFD packet to send [08:54:46]OFD Sender: No OFD packet to send [08:54:51]OFD Sender: No OFD packet to send [08:54:56]OFD Sender: No OFD packet to send [08:55:01]OFD Sender: No OFD packet to send [08:55:06]OFD Sender: No OFD packet to send [08:55:11]OFD Sender: No OFD packet to send [08:55:16]OFD Sender: No OFD packet to send [08:55:21]OFD Sender: No OFD packet to send [08:55:26]OFD Sender: No OFD packet to send [08:55:31]OFD Sender: No OFD packet to send [08:55:36]OFD Sender: No OFD packet to send [08:55:41]OFD Sender: No OFD packet to send [08:55:46]OFD Sender: No OFD packet to send [08:55:51]OFD Sender: No OFD packet to send [08:55:56]OFD Sender: No OFD packet to send [08:56:01]OFD Sender: No OFD packet to send [08:56:06]OFD Sender: No OFD packet to send [08:56:11]OFD Sender: No OFD packet to send [08:56:16]OFD Sender: No OFD packet to send [08:56:21]OFD Sender: No OFD packet to send [08:56:26]OFD Sender: No OFD packet to send [08:56:31]OFD Sender: No OFD packet to send [08:56:36]OFD Sender: No OFD packet to send [08:56:41]OFD Sender: No OFD packet to send [08:56:46]OFD Sender: No OFD packet to send [08:56:51]OFD Sender: No OFD packet to send [08:56:56]OFD Sender: No OFD packet to send [08:57:01]OFD Sender: No OFD packet to send [08:57:06]OFD Sender: No OFD packet to send [08:57:11]OFD Sender: No OFD packet to send [08:57:16]OFD Sender: No OFD packet to send [08:57:21]OFD Sender: No OFD packet to send [08:57:26]OFD Sender: No OFD packet to send [08:57:31]OFD Sender: No OFD packet to send [08:57:36]OFD Sender: No OFD packet to send [08:57:41]OFD Sender: No OFD packet to send [08:57:46]OFD Sender: No OFD packet to send [08:57:51]OFD Sender: No OFD packet to send [08:57:56]OFD Sender: No OFD packet to send [08:58:01]OFD Sender: No OFD packet to send [08:58:06]OFD Sender: No OFD packet to send [08:58:11]OFD Sender: No OFD packet to send [08:58:16]OFD Sender: No OFD packet to send [08:58:21]OFD Sender: No OFD packet to send [08:58:26]OFD Sender: No OFD packet to send [08:58:31]OFD Sender: No OFD packet to send [08:58:36]OFD Sender: No OFD packet to send [08:58:41]OFD Sender: No OFD packet to send [08:58:46]OFD Sender: No OFD packet to send [08:58:51]OFD Sender: No OFD packet to send [08:58:56]OFD Sender: No OFD packet to send [08:59:01]OFD Sender: No OFD packet to send [08:59:06]OFD Sender: No OFD packet to send [08:59:11]OFD Sender: No OFD packet to send [08:59:16]OFD Sender: No OFD packet to send [08:59:21]OFD Sender: No OFD packet to send [08:59:26]OFD Sender: No OFD packet to send [08:59:31]OFD Sender: No OFD packet to send [08:59:36]OFD Sender: No OFD packet to send [08:59:41]OFD Sender: No OFD packet to send [08:59:46]OFD Sender: No OFD packet to send [08:59:51]OFD Sender: No OFD packet to send [08:59:56]OFD Sender: No OFD packet to send [09:00:01]OFD Sender: No OFD packet to send [09:00:06]OFD Sender: No OFD packet to send [09:00:11]OFD Sender: No OFD packet to send [09:00:16]OFD Sender: No OFD packet to send [09:00:21]OFD Sender: No OFD packet to send [09:00:26]OFD Sender: No OFD packet to send [09:00:31]OFD Sender: No OFD packet to send [09:00:36]OFD Sender: No OFD packet to send [09:00:41]OFD Sender: No OFD packet to send [09:00:46]OFD Sender: No OFD packet to send [09:00:51]OFD Sender: No OFD packet to send [09:00:56]OFD Sender: No OFD packet to send [09:01:01]OFD Sender: No OFD packet to send [09:01:06]OFD Sender: No OFD packet to send [09:01:11]OFD Sender: No OFD packet to send [09:01:16]OFD Sender: No OFD packet to send [09:01:21]OFD Sender: No OFD packet to send [09:01:26]OFD Sender: No OFD packet to send [09:01:31]OFD Sender: No OFD packet to send [09:01:36]OFD Sender: No OFD packet to send [09:01:41]OFD Sender: No OFD packet to send [09:01:46]OFD Sender: No OFD packet to send [09:01:51]OFD Sender: No OFD packet to send [09:01:56]OFD Sender: No OFD packet to send [09:02: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:16]OFD Sender: No OFD packet to send [09:02:21]OFD Sender: No OFD packet to send [09:02:26]OFD Sender: No OFD packet to send [09:02:31]OFD Sender: No OFD packet to send [09:02:36]OFD Sender: No OFD packet to send [09:02:41]OFD Sender: No OFD packet to send [09:02:46]OFD Sender: No OFD packet to send [09:02:51]OFD Sender: No OFD packet to send [09:02:56]OFD Sender: No OFD packet to send [09:03: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:41]OFD Sender: No OFD packet to send [09:03:46]OFD Sender: No OFD packet to send [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:51]OFD Sender: No OFD packet to send [09:04:56]accept exits with 7 [09:04:56]New connection [09:04:56]New thread 3067276644 created [09:04:56]Thread 3067133284 joined [09:04:56]Waiting for new connection... [09:04:56] Sock 7.Parse request [09:04:56]Sock 7.Check first char [09:04:56]Sock 7.First char is OK [09:04:56]request: POST /json_proto HTTP/1.0 [09:04:56]Method: POST [09:04:56]URL: /json_proto [09:04:56]Method is POST - this is cgi request [09:04:56]url: /json_proto [09:04:56]query_string will be loaded in cgi processing [09:04:56]execute_cgi json_proto POST (null) [09:04:56]execute_cgi path=json_proto method=POST [09:04:56]POST find Content-Length [09:04:56]Host: 172.17.52.3:8080 [09:04:56]Content-Length: 791 [09:04:56]Content-Type: application/json [09:04:56] [09:04:56]POST finish read [09:04:56]Found Content-Length = 791 [09:04:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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\u000A97787", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:56]execute_script... [09:04: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)210386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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\u000A97787", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:56]POST & json_proto [09:04:56]process_json_proto [09:04:56]json parsed OK: [09:04:56]protocol is kg_v1.0 [09:04:56]action value=close_receipt [09:04:56]process_action close_receipt [09:04:56]cmd_close_receipt [09:04:56]MH_GetDate [09:04:56]Write to MH i2c: F0 00 00 82 28 99 [09:04:56]Write i2c OK [09:04:56]MH_I2C_Read... [09:04:56]Read from MH i2c: F0 [09:04:56]MH_I2C_Read... [09:04:56]Read from MH i2c: F0 09 00 [09:04:56]MH_I2C_Read... [09:04:56]Read from MH i2c: F0 09 00 82 28 00 40 BC 18 67 D7 68 A5 64 65 [09:04:56]GetLastDocTimeStamp 1729672255 [09:04:56]current date 1729674304 [09:04:56]FM_GetShiftState [09:04:56]SAM_PROTO_GetShiftState [09:04:56]wFMCommunicate request_size=4 [09:04:56]MH_SAM_APDU [09:04:56]CAPDU: 80 13 01 00 [09:04:56]Write to MH i2c: E2 08 00 83 28 80 13 01 00 00 00 00 00 28 [09:04:56]Write i2c OK [09:04:56]MH_I2C_Read... [09:04:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:56]Read from MH i2c: E2 [09:04:56]MH_I2C_Read... [09:04:56]Read from MH i2c: E2 0E 00 [09:04:56]MH_I2C_Read... [09:04:56]Read from MH i2c: E2 0E 00 83 28 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 97 [09:04:56]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [09:04:56]wFMCommunicate OK [09:04:56]SAM_PROTO_GetShiftState done [09:04:56]FM_GetShiftState done [09:04:56]opened in 1729641385 [09:04:56]opened+sec_in_day 1729727785 [09:04:56]quantity*price = 0 [09:04:56]sum+1 = 1 [09:04:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 12 23.10.2024 09:05 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 Талоны: Топливная Карта 97787 ФМ: 0000000000871809 ФД: 68389 ФПД: 97345763503859 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T090504&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68389&fm=97345763503859&tin=02508201610067®Number=0000000000091756&sum=0 [09:04:57]StoreToDocumentArchive [09:04:57]shift 507 fd 68389 [09:04:57]save to /storage/0507/doc_00068389 [09:04:57]save last doc name /storage/0507/doc_00068389 to /storage/kkm_last_doc_name [09:04:57]save OK [09:04:57]Clear old archive folders... [09:04:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:04:57]tlvbuf is 01FEE430 [09:04:57]SAM_PROTO_ClearQueue [09:04:57]wFMCommunicate request_size=4 [09:04:57]MH_SAM_APDU [09:04:57]CAPDU: 80 09 00 00 [09:04:57]Write to MH i2c: E2 08 00 90 28 80 09 00 00 00 00 00 00 2A [09:04:57]Write i2c OK [09:04:57]MH_I2C_Read... [09:04:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:04:57]Read from MH i2c: E2 [09:04:57]MH_I2C_Read... [09:04:57]Read from MH i2c: E2 03 00 [09:04:57]MH_I2C_Read... [09:04:57]Read from MH i2c: E2 03 00 90 28 00 90 00 2C [09:04:57]RAPDU: 90 00 [09:04:57]wFMCommunicate OK [09:04:57]SAM_PROTO_ClearQueue done [09:04:57]KKMCreateOFDPacket [09:04:57]OFDProtocolAddRootSTLVToBuf [09:04:57]FM_MakeSignedData [09:04:57]FM_MakeSignedData [09:04:57]SAM_PROTO_SignData [09:04:57]wFMCommunicate request_size=4 [09:04:57]MH_SAM_APDU [09:04:57]CAPDU: 80 0D 01 02 [09:04:57]Write to MH i2c: E2 08 00 91 28 80 0D 01 02 00 00 00 00 32 [09:04:57]Write i2c OK [09:04:57]MH_I2C_Read... [09:04:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:04:57]Read from MH i2c: E2 [09:04:57]MH_I2C_Read... [09:04:57]Read from MH i2c: E2 03 00 [09:04:57]MH_I2C_Read... [09:04:57]Read from MH i2c: E2 03 00 91 28 00 90 00 2D [09:04:57]RAPDU: 90 00 [09:04:57]wFMCommunicate OK [09:04:57]wFMCommunicate request_size=255 [09:04:57]MH_SAM_APDU [09:04: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 32 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 0C 00 00 00 F4 03 04 00 40 BC 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 25 0B 01 00 35 04 06 00 58 [09:04:57]Write to MH i2c: E2 02 01 92 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 0C 00 00 00 F4 03 04 00 40 BC 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 25 0B 01 00 35 04 06 00 58 00 00 BC [09:04:57]Write i2c OK [09:04:57]MH_I2C_Read... [09:04:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:57]Read from MH i2c: E2 [09:04:57]MH_I2C_Read... [09:04:57]Read from MH i2c: E2 03 00 [09:04:57]MH_I2C_Read... [09:04:57]Read from MH i2c: E2 03 00 92 28 00 90 00 2E [09:04:57]RAPDU: 90 00 [09:04:57]wFMCommunicate OK [09:04:57]wFMCommunicate request_size=10 [09:04:57]MH_SAM_APDU [09:04:57]CAPDU: 80 0D 02 02 05 89 13 A7 6E F3 [09:04:57]Write to MH i2c: E2 0D 00 93 28 80 0D 02 02 05 00 89 13 A7 6E F3 00 00 E3 [09:04:57]Write i2c OK [09:04:57]MH_I2C_Read... [09:04:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:57]Read from MH i2c: E2 [09:04:57]MH_I2C_Read... [09:04:57]Read from MH i2c: E2 03 00 [09:04:57]MH_I2C_Read... [09:04:57]Read from MH i2c: E2 03 00 93 28 00 90 00 2F [09:04:57]RAPDU: 90 00 [09:04:57]wFMCommunicate OK [09:04:57]wFMCommunicate request_size=4 [09:04:57]MH_SAM_APDU [09:04:57]CAPDU: 80 0D 03 02 [09:04:57]Write to MH i2c: E2 08 00 94 28 80 0D 03 02 00 00 00 00 37 [09:04:57]Write i2c OK [09:04:57]MH_I2C_Read... [09:04:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:04:57]Read from MH i2c: E2 [09:04:57]MH_I2C_Read... [09:04:57]Read from MH i2c: E2 0B 00 [09:04:57]MH_I2C_Read... [09:04:57]Read from MH i2c: E2 0B 00 94 28 00 B8 59 B8 FF BC A2 34 06 90 00 98 [09:04:57]RAPDU: B8 59 B8 FF BC A2 34 06 90 00 [09:04:57]wFMCommunicate OK [09:04:57]SAM_PROTO_SignData done [09:04:57]FM_MakeSignedData done [09:04:57]CreateOFDProtocolMessage [09:04:57]wFMCommunicate request_size=4 [09:04:57]MH_SAM_APDU [09:04:57]CAPDU: 80 11 00 00 [09:04:57]Write to MH i2c: E2 08 00 95 28 80 11 00 00 00 00 00 00 37 [09:04:57]Write i2c OK [09:04:57]MH_I2C_Read... [09:04:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:57]Read from MH i2c: E2 [09:04:57]MH_I2C_Read... [09:04:57]Read from MH i2c: E2 17 00 [09:04:57]MH_I2C_Read... [09:04:57]Read from MH i2c: E2 17 00 95 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 8B [09:04:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [09:04:57]wFMCommunicate OK [09:04:57]CreateOFDProtocolMessage done [09:04:57]OFDSenderStorePacket 68389 [09:04:57]StoreOFDPacket docnum=68389 [09:04:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 CE C2 07 01 98 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 32 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 0C 00 00 00 F4 03 04 00 40 BC 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 25 0B 01 00 35 04 06 00 58 89 13 A7 6E F3 B8 59 B8 FF BC A2 34 06 [09:04:57]CheckFolder [09:04:57]dirname=/storage/ofd_packets [09:04:57]CheckFolder done [09:04:57]ProducePacketName [09:04:57]name=ofd_packets/00068389 [09:04:57]NVStorageSaveData ofd_packets/00068389 [09:04:57]File name is /storage/ofd_packets/00068389 [09:04:57]Write 301 bytes [09:04:57]NVStorageSaveData done [09:04:57]OFDSenderStorePacket done [09:04:57]KKMCreateOFDPacket done [09:04:57]NVStorageSaveData kkm_last_timestamp [09:04:57]File name is /storage/kkm_last_timestamp [09:04:57]Write 4 bytes [09:04:57]NVStorageSaveData done [09:04:57]ExternCall_PrintAddStr [09:04:57]wPrintStart [09:04:57]Write to MH i2c: 01 00 00 96 28 BE [09:04:57]Write i2c OK [09:04:57]MH_I2C_Read... [09:04:57]Read from MH i2c: 01 [09:04:57]MH_I2C_Read... [09:04:57]Read from MH i2c: 01 07 00 [09:04:57]MH_I2C_Read... [09:04:57]Read from MH i2c: 01 07 00 96 28 00 04 00 00 00 FF 0F D7 [09:04:57]RasterBufferAndPrint [09:04:57]line Счет N : (1)210386 [09:04:57]line ИНН: 02508201610067 [09:04:57]line Контрольно-Кассовый Чек [09:04:57]line ПРОДАЖА [09:04:57]line ТРК (МРК, ГНК) : 11 [09:04:57]line Товар: 2710124130 [09:04:57]line Аи-92-К-2 [09:04:57]line 5.980 * 0.00 [09:04:57]line = 0.00 [09:04:57]line НДС 12% НСП 1% [09:04:57]line > о реализуемом товаре [09:04:57]line ИТОГО: 0.00 [09:04:57]line НСП 1% : 0.00 [09:04:57]line НДС 12% : 0.00 [09:04:57]line Наличными: 0.00 [09:04:57]line Безнал.: 0.00 [09:04:57]line Место: АЗС № 147 "Партнер Нефть" [09:04:57]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [09:04:57]line СНО: Общий режим [09:04:57]line Чек 12 23.10.2024 09:05 [09:04:57]line Смена: 507 ФФД: 1.0 [09:04:57]line ЗНМ: 0300000094 [09:04:57]line РНМ: 0000000000091756 [09:04:57]line Версия ККМ: 001 [09:04:57]line Талоны: Топливная Карта [09:04:57]line 97787 [09:04:57]line ФМ: 0000000000871809 [09:04:57]line ФД: 68389 [09:04:57]line ФПД: 97345763503859 [09:04:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T090504&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68389&fm=97345763503859&tin=02508201610067®Number=0000000000091756&sum=0 [09:04:57]written 0, free lines is 4095 [09:04:57]OFD Sender: Processing packet 68389 [packets to send 8, broken 7] [09:04:57]ProducePacketName [09:04:57]name=ofd_packets/00068389 [09:04:57]OFD Sender: To server: pG, [09:04:57]CommunicateWithHost lk.salyk.kg:30040 [09:04:57]ConnectInit lk.salyk.kg [09:04:57]Connected sock=10 [09:04:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 CE C2 07 01 98 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 32 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 0C 00 00 00 F4 03 04 00 40 BC 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 25 0B 01 00 35 04 06 00 58 89 13 A7 6E F3 B8 59 B8 FF BC A2 34 06 [09:04:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 47 71 47 00 D6 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 25 0B 01 00 F4 03 04 00 35 62 18 67 B6 04 01 00 00 A6 EF 0F 03 95 EF CD C6 [09:04:58]CommunicateWithHost err = 0 [09:04:58]CheckOFDResponse [09:04:58]1017 (14) - 77093643461234 [09:04:58]1041 (16) - 0000000000871809 [09:04:58]1040 (4) - 68389 [09:04:58]1012 (4) - 23.10.2024 02:40 [09:04:58]1206 (1) - 0 [09:04:58]OFD Sender: Remove packet 68389 [09:04:58]ProducePacketName [09:04:58]name=ofd_packets/00068389 [09:04:58]NVStorageDeleteData [09:04:58]Write to MH i2c: 01 00 00 BF 28 E7 [09:04:58]Write i2c OK [09:04:58]MH_I2C_Read... [09:04:58]Read from MH i2c: 01 [09:04:58]MH_I2C_Read... [09:04:58]Read from MH i2c: 01 07 00 [09:04:58]MH_I2C_Read... [09:04:58]Read from MH i2c: 01 07 00 BF 28 00 04 00 00 00 C3 0C C1 [09:04:58]RasterBufferAndPrint [09:04:58]line [09:04:58]line [09:04:58]line [09:04:58]line [09:04:58]line [09:04:58]written 0, free lines is 3270 [09:04:58]MH_Cut [09:04:58]Write to MH i2c: D1 01 00 C6 28 01 C0 [09:04:58]Write i2c OK [09:04:58]MH_I2C_Read... [09:04:58]Read from MH i2c: D1 [09:04:58]MH_I2C_Read... [09:04:58]Read from MH i2c: D1 01 00 [09:04:58]MH_I2C_Read... [09:04:58]Read from MH i2c: D1 01 00 C6 28 00 BF [09:04:58]Write to MH i2c: 01 00 00 C7 28 EF [09:04:58]Write i2c OK [09:04:58]MH_I2C_Read... [09:04:58]OFD Sender: No OFD packet to send [09:04:59]*** Cut start [09:04:59]*** Partial cut [09:04:59]*** CUTSNS_PIN = 1 [09:04:59]*** CUTSNS_PIN = 0 [09:04:59]*** Brake cut motor [09:04:59]Read from MH i2c: 01 [09:04:59]MH_I2C_Read... [09:04:59]*** Stop cut motor [09:04:59]*** Cut end [09:04:59]Read from MH i2c: 01 07 00 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: 01 07 00 C7 28 00 04 00 00 00 FF 0F 08 [09:04:59]process_action close_receipt done [09:04:59]requested_data is exist [09:04:59]produce_requested_data [09:04:59]requested_item fm.sn is exist - process it [09:04:59]wFMCommunicate request_size=4 [09:04:59]MH_SAM_APDU [09:04:59]CAPDU: 80 11 00 00 [09:04:59]Write to MH i2c: E2 08 00 C8 28 80 11 00 00 00 00 00 00 6A [09:04:59]Write i2c OK [09:04:59]MH_I2C_Read... [09:04:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:59]Read from MH i2c: E2 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 17 00 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 17 00 C8 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 BE [09:04:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [09:04:59]wFMCommunicate OK [09:04:59]requested_item fd.num is exist - process it [09:04:59]SAM_PROTO_GetFieldsCounters [09:04:59]wFMCommunicate request_size=4 [09:04:59]MH_SAM_APDU [09:04:59]CAPDU: 80 13 00 00 [09:04:59]Write to MH i2c: E2 08 00 C9 28 80 13 00 00 00 00 00 00 6D [09:04:59]Write i2c OK [09:04:59]MH_I2C_Read... [09:04:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:04:59]Read from MH i2c: E2 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 62 00 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 62 00 C9 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 25 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [09:04:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 25 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:04:59]wFMCommunicate OK [09:04:59]SAM_PROTO_GetFieldsCounters done [09:04:59]requested_item shift.num is exist - process it [09:04:59]requested_item shift.opened is exist - process it [09:04:59]req_shift_opened [09:04:59]FM_GetShiftState [09:04:59]SAM_PROTO_GetShiftState [09:04:59]wFMCommunicate request_size=4 [09:04:59]MH_SAM_APDU [09:04:59]CAPDU: 80 13 01 00 [09:04:59]Write to MH i2c: E2 08 00 CA 28 80 13 01 00 00 00 00 00 6F [09:04:59]Write i2c OK [09:04:59]MH_I2C_Read... [09:04:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:59]Read from MH i2c: E2 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 0E 00 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 0E 00 CA 28 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 DE [09:04:59]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [09:04:59]wFMCommunicate OK [09:04:59]SAM_PROTO_GetShiftState done [09:04:59]FM_GetShiftState done [09:04:59]req_shift_opened done [09:04:59]requested_item shift.open_date is exist - process it [09:04:59]req_shift_open_date [09:04:59]req_shift_open_date done [09:04:59]produce_requested_data done [09:04:59]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68389,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [09:04:59]process_action_free close_receipt [09:04:59]json_value_free [09:04:59]json_value_free done [09:04:59]process_json_proto returns [09:04:59]Send response to host [09:04:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68389,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [09:04:59]free response buf [09:04:59]execute_script done [09:04:59]execute_script returns [09:04:59]free content buf [09:04:59]Sock 7.Close socket [09:04:59]Sock 7.Thread stoped [09:05:03]OFD Sender: No OFD packet to send [09:05:08]OFD Sender: No OFD packet to send [09:05:13]OFD Sender: No OFD packet to send [09:05:18]OFD Sender: No OFD packet to send [09:05:23]OFD Sender: No OFD packet to send [09:05:28]OFD Sender: No OFD packet to send [09:05:33]OFD Sender: No OFD packet to send [09:05:38]OFD Sender: No OFD packet to send [09:05:43]OFD Sender: No OFD packet to send [09:05:48]OFD Sender: No OFD packet to send [09:05:53]OFD Sender: No OFD packet to send [09:05:58]OFD Sender: No OFD packet to send [09:06:03]OFD Sender: No OFD packet to send [09:06:08]OFD Sender: No OFD packet to send [09:06:13]OFD Sender: No OFD packet to send [09:06:18]OFD Sender: No OFD packet to send [09:06:23]OFD Sender: No OFD packet to send [09:06:28]OFD Sender: No OFD packet to send [09:06:33]OFD Sender: No OFD packet to send [09:06:38]OFD Sender: No OFD packet to send [09:06:43]OFD Sender: No OFD packet to send [09:06:48]OFD Sender: No OFD packet to send [09:06:53]OFD Sender: No OFD packet to send [09:06:58]OFD Sender: No OFD packet to send [09:07:03]OFD Sender: No OFD packet to send [09:07:08]OFD Sender: No OFD packet to send [09:07:13]OFD Sender: No OFD packet to send [09:07:18]OFD Sender: No OFD packet to send [09:07:23]OFD Sender: No OFD packet to send [09:07:28]OFD Sender: No OFD packet to send [09:07:33]OFD Sender: No OFD packet to send [09:07:38]OFD Sender: No OFD packet to send [09:07:43]OFD Sender: No OFD packet to send [09:07:48]OFD Sender: No OFD packet to send [09:07:53]OFD Sender: No OFD packet to send [09:07:58]OFD Sender: No OFD packet to send [09:08:03]OFD Sender: No OFD packet to send [09:08:08]OFD Sender: No OFD packet to send [09:08:10]accept exits with 9 [09:08:10]New connection [09:08:10]New thread 3067133284 created [09:08:10]Thread 3067276644 joined [09:08:10]Waiting for new connection... [09:08:10] Sock 9.Parse request [09:08:10]Sock 9.Check first char [09:08:10]Sock 9.First char is OK [09:08:10]request: POST /json_proto HTTP/1.0 [09:08:10]Method: POST [09:08:10]URL: /json_proto [09:08:10]Method is POST - this is cgi request [09:08:10]url: /json_proto [09:08:10]query_string will be loaded in cgi processing [09:08:10]execute_cgi json_proto POST (null) [09:08:10]execute_cgi path=json_proto method=POST [09:08:10]POST find Content-Length [09:08:10]Host: 172.17.52.3:8080 [09:08:10]Content-Length: 677 [09:08:10]Content-Type: application/json [09:08:10] [09:08:10]POST finish read [09:08:10]Found Content-Length = 677 [09:08:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:08:10]execute_script... [09:08: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)210387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:08:10]POST & json_proto [09:08:10]process_json_proto [09:08:10]json parsed OK: [09:08:10]protocol is kg_v1.0 [09:08:10]action value=close_receipt [09:08:10]process_action close_receipt [09:08:10]cmd_close_receipt [09:08:10]MH_GetDate [09:08:10]Write to MH i2c: F0 00 00 CB 28 E2 [09:08:10]Write i2c OK [09:08:10]MH_I2C_Read... [09:08:10]Read from MH i2c: F0 [09:08:10]MH_I2C_Read... [09:08:10]Read from MH i2c: F0 09 00 [09:08:10]MH_I2C_Read... [09:08:10]Read from MH i2c: F0 09 00 CB 28 00 03 BD 18 67 D7 68 A5 64 72 [09:08:10]GetLastDocTimeStamp 1729674304 [09:08:10]current date 1729674499 [09:08:10]FM_GetShiftState [09:08:10]SAM_PROTO_GetShiftState [09:08:10]wFMCommunicate request_size=4 [09:08:10]MH_SAM_APDU [09:08:10]CAPDU: 80 13 01 00 [09:08:10]Write to MH i2c: E2 08 00 CC 28 80 13 01 00 00 00 00 00 71 [09:08:10]Write i2c OK [09:08:10]MH_I2C_Read... [09:08:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:10]Read from MH i2c: E2 [09:08:10]MH_I2C_Read... [09:08:10]Read from MH i2c: E2 0E 00 [09:08:10]MH_I2C_Read... [09:08:10]Read from MH i2c: E2 0E 00 CC 28 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 E0 [09:08:10]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [09:08:10]wFMCommunicate OK [09:08:10]SAM_PROTO_GetShiftState done [09:08:10]FM_GetShiftState done [09:08:10]opened in 1729641385 [09:08:10]opened+sec_in_day 1729727785 [09:08:10]quantity*price = 20003 [09:08:10]sum+1 = 20004 [09:08:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 13 23.10.2024 09:08 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68390 ФПД: 252563082244783 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T090819&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68390&fm=252563082244783&tin=02508201610067®Number=0000000000091756&sum=20000 [09:08:12]StoreToDocumentArchive [09:08:12]shift 507 fd 68390 [09:08:12]save to /storage/0507/doc_00068390 [09:08:12]save last doc name /storage/0507/doc_00068390 to /storage/kkm_last_doc_name [09:08:12]save OK [09:08:12]Clear old archive folders... [09:08:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:08:12]tlvbuf is 0205B800 [09:08:12]SAM_PROTO_ClearQueue [09:08:12]wFMCommunicate request_size=4 [09:08:12]MH_SAM_APDU [09:08:12]CAPDU: 80 09 00 00 [09:08:12]Write to MH i2c: E2 08 00 D9 28 80 09 00 00 00 00 00 00 73 [09:08:12]Write i2c OK [09:08:12]MH_I2C_Read... [09:08:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:12]Read from MH i2c: E2 [09:08:12]MH_I2C_Read... [09:08:12]Read from MH i2c: E2 03 00 [09:08:12]MH_I2C_Read... [09:08:12]Read from MH i2c: E2 03 00 D9 28 00 90 00 75 [09:08:12]RAPDU: 90 00 [09:08:12]wFMCommunicate OK [09:08:12]SAM_PROTO_ClearQueue done [09:08:12]KKMCreateOFDPacket [09:08:12]OFDProtocolAddRootSTLVToBuf [09:08:12]FM_MakeSignedData [09:08:12]FM_MakeSignedData [09:08:12]SAM_PROTO_SignData [09:08:12]wFMCommunicate request_size=4 [09:08:12]MH_SAM_APDU [09:08:12]CAPDU: 80 0D 01 02 [09:08:12]Write to MH i2c: E2 08 00 DA 28 80 0D 01 02 00 00 00 00 7B [09:08:12]Write i2c OK [09:08:12]MH_I2C_Read... [09:08:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:12]Read from MH i2c: E2 [09:08:12]MH_I2C_Read... [09:08:12]Read from MH i2c: E2 03 00 [09:08:12]MH_I2C_Read... [09:08:12]Read from MH i2c: E2 03 00 DA 28 00 90 00 76 [09:08:12]RAPDU: 90 00 [09:08:12]wFMCommunicate OK [09:08:12]wFMCommunicate request_size=255 [09:08:12]MH_SAM_APDU [09:08: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 32 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 0D 00 00 00 F4 03 04 00 03 BD 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 26 0B 01 00 35 04 06 00 E5 [09:08:12]Write to MH i2c: E2 02 01 DB 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 0D 00 00 00 F4 03 04 00 03 BD 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 26 0B 01 00 35 04 06 00 E5 00 00 2C [09:08:12]Write i2c OK [09:08:12]MH_I2C_Read... [09:08:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:12]Read from MH i2c: E2 [09:08:12]MH_I2C_Read... [09:08:12]Read from MH i2c: E2 03 00 [09:08:12]MH_I2C_Read... [09:08:12]Read from MH i2c: E2 03 00 DB 28 00 90 00 77 [09:08:12]RAPDU: 90 00 [09:08:12]wFMCommunicate OK [09:08:12]wFMCommunicate request_size=10 [09:08:12]MH_SAM_APDU [09:08:12]CAPDU: 80 0D 02 02 05 B4 6C CC F2 AF [09:08:12]Write to MH i2c: E2 0D 00 DC 28 80 0D 02 02 05 00 B4 6C CC F2 AF 00 00 15 [09:08:12]Write i2c OK [09:08:12]MH_I2C_Read... [09:08:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:12]Read from MH i2c: E2 [09:08:12]MH_I2C_Read... [09:08:12]Read from MH i2c: E2 03 00 [09:08:12]MH_I2C_Read... [09:08:12]Read from MH i2c: E2 03 00 DC 28 00 90 00 78 [09:08:12]RAPDU: 90 00 [09:08:12]wFMCommunicate OK [09:08:12]wFMCommunicate request_size=4 [09:08:12]MH_SAM_APDU [09:08:12]CAPDU: 80 0D 03 02 [09:08:12]Write to MH i2c: E2 08 00 DD 28 80 0D 03 02 00 00 00 00 80 [09:08:12]Write i2c OK [09:08:12]MH_I2C_Read... [09:08:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:12]Read from MH i2c: E2 [09:08:12]MH_I2C_Read... [09:08:12]Read from MH i2c: E2 0B 00 [09:08:12]MH_I2C_Read... [09:08:12]Read from MH i2c: E2 0B 00 DD 28 00 05 27 0F 22 75 48 B6 A1 90 00 F2 [09:08:12]RAPDU: 05 27 0F 22 75 48 B6 A1 90 00 [09:08:12]wFMCommunicate OK [09:08:12]SAM_PROTO_SignData done [09:08:12]FM_MakeSignedData done [09:08:12]CreateOFDProtocolMessage [09:08:12]wFMCommunicate request_size=4 [09:08:12]MH_SAM_APDU [09:08:12]CAPDU: 80 11 00 00 [09:08:12]Write to MH i2c: E2 08 00 DE 28 80 11 00 00 00 00 00 00 80 [09:08:12]Write i2c OK [09:08:12]MH_I2C_Read... [09:08:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:12]Read from MH i2c: E2 [09:08:12]MH_I2C_Read... [09:08:12]Read from MH i2c: E2 17 00 [09:08:12]MH_I2C_Read... [09:08:12]Read from MH i2c: E2 17 00 DE 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 D4 [09:08:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [09:08:12]wFMCommunicate OK [09:08:12]CreateOFDProtocolMessage done [09:08:12]OFDSenderStorePacket 68390 [09:08:12]StoreOFDPacket docnum=68390 [09:08:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 0E DF 07 01 C7 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 32 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 0D 00 00 00 F4 03 04 00 03 BD 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 26 0B 01 00 35 04 06 00 E5 B4 6C CC F2 AF 05 27 0F 22 75 48 B6 A1 [09:08:12]CheckFolder [09:08:12]dirname=/storage/ofd_packets [09:08:12]CheckFolder done [09:08:12]ProducePacketName [09:08:12]name=ofd_packets/00068390 [09:08:12]NVStorageSaveData ofd_packets/00068390 [09:08:12]File name is /storage/ofd_packets/00068390 [09:08:12]Write 301 bytes [09:08:12]NVStorageSaveData done [09:08:12]OFDSenderStorePacket done [09:08:12]KKMCreateOFDPacket done [09:08:12]NVStorageSaveData kkm_last_timestamp [09:08:12]File name is /storage/kkm_last_timestamp [09:08:12]Write 4 bytes [09:08:12]NVStorageSaveData done [09:08:12]ExternCall_PrintAddStr [09:08:12]wPrintStart [09:08:12]Write to MH i2c: 01 00 00 DF 28 07 [09:08:12]Write i2c OK [09:08:12]MH_I2C_Read... [09:08:12]Read from MH i2c: 01 [09:08:12]MH_I2C_Read... [09:08:12]Read from MH i2c: 01 07 00 [09:08:12]MH_I2C_Read... [09:08:12]Read from MH i2c: 01 07 00 DF 28 00 04 00 00 00 FF 0F 20 [09:08:12]RasterBufferAndPrint [09:08:12]line Счет N : (1)210387 [09:08:12]line ИНН: 02508201610067 [09:08:12]line Контрольно-Кассовый Чек [09:08:12]line ПРОДАЖА [09:08:12]line ТРК (МРК, ГНК) : 11 [09:08:12]line Товар: 2710124130 [09:08:12]line Аи-92-К-2 [09:08:12]line 2.990 * 66.90 [09:08:12]line = 200.03 [09:08:12]line НДС 12% НСП 1% [09:08:12]line > о реализуемом товаре [09:08:12]line ОКРУГЛЕНИЕ: -0.03 [09:08:12]line ИТОГО: 200.00 [09:08:12]line Внесено: 200.00 [09:08:12]line СДАЧА: 0.00 [09:08:12]line НСП 1% : 1.77 [09:08:12]line НДС 12% : 21.24 [09:08:12]line Наличными: 200.00 [09:08:12]line Безнал.: 0.00 [09:08:12]line Место: АЗС № 147 "Партнер Нефть" [09:08:12]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [09:08:12]line СНО: Общий режим [09:08:12]line Чек 13 23.10.2024 09:08 [09:08:12]line Смена: 507 ФФД: 1.0 [09:08:12]line ЗНМ: 0300000094 [09:08:12]line РНМ: 0000000000091756 [09:08:12]line Версия ККМ: 001 [09:08:12]line ФМ: 0000000000871809 [09:08:12]line ФД: 68390 [09:08:12]line ФПД: 252563082244783 [09:08:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T090819&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68390&fm=252563082244783&tin=02508201610067®Number=0000000000091756&sum=20000 [09:08:12]written 0, free lines is 4095 [09:08:12]OFD Sender: Processing packet 68390 [packets to send 8, broken 7] [09:08:12]ProducePacketName [09:08:12]name=ofd_packets/00068390 [09:08:12]OFD Sender: To server: pG, [09:08:12]CommunicateWithHost lk.salyk.kg:30040 [09:08:12]ConnectInit lk.salyk.kg [09:08:13]Write to MH i2c: 01 00 00 09 29 32 [09:08:13]Write i2c OK [09:08:13]MH_I2C_Read... [09:08:13]Read from MH i2c: 01 [09:08:13]MH_I2C_Read... [09:08:13]Read from MH i2c: 01 07 00 [09:08:13]MH_I2C_Read... [09:08:13]Read from MH i2c: 01 07 00 09 29 00 04 00 00 00 A2 0C EB [09:08:13]RasterBufferAndPrint [09:08:13]line [09:08:13]line [09:08:13]line [09:08:13]line [09:08:13]line [09:08:13]written 0, free lines is 3238 [09:08:13]MH_Cut [09:08:13]Write to MH i2c: D1 01 00 10 29 01 0B [09:08:13]Write i2c OK [09:08:13]MH_I2C_Read... [09:08:13]Read from MH i2c: D1 [09:08:13]MH_I2C_Read... [09:08:13]Read from MH i2c: D1 01 00 [09:08:13]MH_I2C_Read... [09:08:13]Read from MH i2c: D1 01 00 10 29 00 0A [09:08:13]Write to MH i2c: 01 00 00 11 29 3A [09:08:13]Write i2c OK [09:08:13]MH_I2C_Read... [09:08:13]*** Cut start [09:08:13]*** Partial cut [09:08:13]*** CUTSNS_PIN = 1 [09:08:14]*** CUTSNS_PIN = 0 [09:08:14]*** Brake cut motor [09:08:14]Read from MH i2c: 01 [09:08:14]MH_I2C_Read... [09:08:14]*** Stop cut motor [09:08:14]*** Cut end [09:08:14]Read from MH i2c: 01 07 00 [09:08:14]MH_I2C_Read... [09:08:14]Read from MH i2c: 01 07 00 11 29 00 04 00 00 00 FF 0F 53 [09:08:14]process_action close_receipt done [09:08:14]requested_data is exist [09:08:14]produce_requested_data [09:08:14]requested_item fm.sn is exist - process it [09:08:14]wFMCommunicate request_size=4 [09:08:14]MH_SAM_APDU [09:08:14]CAPDU: 80 11 00 00 [09:08:14]Write to MH i2c: E2 08 00 12 29 80 11 00 00 00 00 00 00 B5 [09:08:14]Write i2c OK [09:08:14]MH_I2C_Read... [09:08:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:14]Read from MH i2c: E2 [09:08:14]MH_I2C_Read... [09:08:14]Read from MH i2c: E2 17 00 [09:08:14]MH_I2C_Read... [09:08:14]Read from MH i2c: E2 17 00 12 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 09 [09:08:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [09:08:14]wFMCommunicate OK [09:08:14]requested_item fd.num is exist - process it [09:08:14]SAM_PROTO_GetFieldsCounters [09:08:14]wFMCommunicate request_size=4 [09:08:14]MH_SAM_APDU [09:08:14]CAPDU: 80 13 00 00 [09:08:14]Write to MH i2c: E2 08 00 13 29 80 13 00 00 00 00 00 00 B8 [09:08:14]Write i2c OK [09:08:14]MH_I2C_Read... [09:08:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:14]Read from MH i2c: E2 [09:08:14]MH_I2C_Read... [09:08:14]Read from MH i2c: E2 62 00 [09:08:14]MH_I2C_Read... [09:08:14]Read from MH i2c: E2 62 00 13 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 26 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [09:08:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 26 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:08:14]wFMCommunicate OK [09:08:14]SAM_PROTO_GetFieldsCounters done [09:08:14]requested_item shift.num is exist - process it [09:08:14]requested_item shift.opened is exist - process it [09:08:14]req_shift_opened [09:08:14]FM_GetShiftState [09:08:14]SAM_PROTO_GetShiftState [09:08:14]wFMCommunicate request_size=4 [09:08:14]MH_SAM_APDU [09:08:14]CAPDU: 80 13 01 00 [09:08:14]Write to MH i2c: E2 08 00 14 29 80 13 01 00 00 00 00 00 BA [09:08:14]Write i2c OK [09:08:14]MH_I2C_Read... [09:08:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:14]Read from MH i2c: E2 [09:08:14]MH_I2C_Read... [09:08:14]Read from MH i2c: E2 0E 00 [09:08:14]MH_I2C_Read... [09:08:14]Read from MH i2c: E2 0E 00 14 29 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 29 [09:08:14]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [09:08:14]wFMCommunicate OK [09:08:14]SAM_PROTO_GetShiftState done [09:08:14]FM_GetShiftState done [09:08:14]req_shift_opened done [09:08:14]requested_item shift.open_date is exist - process it [09:08:14]req_shift_open_date [09:08:14]req_shift_open_date done [09:08:14]produce_requested_data done [09:08:14]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68390,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [09:08:14]process_action_free close_receipt [09:08:14]json_value_free [09:08:14]json_value_free done [09:08:14]process_json_proto returns [09:08:14]Send response to host [09:08:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68390,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [09:08:14]free response buf [09:08:14]execute_script done [09:08:14]execute_script returns [09:08:14]free content buf [09:08:14]Sock 9.Close socket [09:08:14]Sock 9.Thread stoped [09:10:24]ConnectInit Can't connect to host [09:10:24]CommunicateWithHost connect error [09:10:24]CommunicateWithHost err = -1 [09:10:24]OFD Sender: Server communicate error [09:10:29]OFD Sender: Processing packet 68390 [packets to send 8, broken 7] [09:10:29]ProducePacketName [09:10:29]name=ofd_packets/00068390 [09:10:29]OFD Sender: To server: pG, [09:10:29]CommunicateWithHost lk.salyk.kg:30040 [09:10:29]ConnectInit lk.salyk.kg [09:10:29]Connected sock=9 [09: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 31 38 30 39 0F 01 00 00 0E DF 07 01 C7 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 32 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 0D 00 00 00 F4 03 04 00 03 BD 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 26 0B 01 00 35 04 06 00 E5 B4 6C CC F2 AF 05 27 0F 22 75 48 B6 A1 [09:10:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 DB DE 47 00 58 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 26 0B 01 00 F4 03 04 00 80 63 18 67 B6 04 01 00 00 8D AD EE 37 A4 1C A3 B4 [09:10:29]CommunicateWithHost err = 0 [09:10:29]CheckOFDResponse [09:10:29]1017 (14) - 77093643461234 [09:10:29]1041 (16) - 0000000000871809 [09:10:29]1040 (4) - 68390 [09:10:29]1012 (4) - 23.10.2024 02:46 [09:10:29]1206 (1) - 0 [09:10:29]OFD Sender: Remove packet 68390 [09:10:29]ProducePacketName [09:10:29]name=ofd_packets/00068390 [09:10:29]NVStorageDeleteData [09:10:29]OFD Sender: No OFD packet to send [09:10:34]OFD Sender: No OFD packet to send [09:10:39]OFD Sender: No OFD packet to send [09:10:44]OFD Sender: No OFD packet to send [09:10:49]OFD Sender: No OFD packet to send [09:10:54]OFD Sender: No OFD packet to send [09:10:59]OFD Sender: No OFD packet to send [09:11:04]OFD Sender: No OFD packet to send [09:11:09]OFD Sender: No OFD packet to send [09:11:14]OFD Sender: No OFD packet to send [09:11:19]OFD Sender: No OFD packet to send [09:11:24]OFD Sender: No OFD packet to send [09:11:29]OFD Sender: No OFD packet to send [09:11:34]OFD Sender: No OFD packet to send [09:11:39]OFD Sender: No OFD packet to send [09:11:44]OFD Sender: No OFD packet to send [09:11:49]OFD Sender: No OFD packet to send [09:11:54]OFD Sender: No OFD packet to send [09:11:59]OFD Sender: No OFD packet to send [09:12:04]OFD Sender: No OFD packet to send [09:12:09]OFD Sender: No OFD packet to send [09:12:14]OFD Sender: No OFD packet to send [09:12:19]OFD Sender: No OFD packet to send [09:12:24]OFD Sender: No OFD packet to send [09:12:29]OFD Sender: No OFD packet to send [09:12:34]OFD Sender: No OFD packet to send [09:12:39]OFD Sender: No OFD packet to send [09:12:44]OFD Sender: No OFD packet to send [09:12:49]OFD Sender: No OFD packet to send [09:12:54]OFD Sender: No OFD packet to send [09:12:59]OFD Sender: No OFD packet to send [09:13:04]OFD Sender: No OFD packet to send [09:13:09]OFD Sender: No OFD packet to send [09:13:14]OFD Sender: No OFD packet to send [09:13:19]OFD Sender: No OFD packet to send [09:13:24]OFD Sender: No OFD packet to send [09:13:29]OFD Sender: No OFD packet to send [09:13:34]OFD Sender: No OFD packet to send [09:13:39]OFD Sender: No OFD packet to send [09:13:44]OFD Sender: No OFD packet to send [09:13: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:15]OFD Sender: No OFD packet to send [09:15:20]OFD Sender: No OFD packet to send [09:15:25]OFD Sender: No OFD packet to send [09:15:30]OFD Sender: No OFD packet to send [09:15:35]OFD Sender: No OFD packet to send [09:15:40]OFD Sender: No OFD packet to send [09:15:45]OFD Sender: No OFD packet to send [09:15:50]OFD Sender: No OFD packet to send [09:15:55]OFD Sender: No OFD packet to send [09:16:00]OFD Sender: No OFD packet to send [09:16:05]OFD Sender: No OFD packet to send [09:16:10]OFD Sender: No OFD packet to send [09:16:15]OFD Sender: No OFD packet to send [09:16:20]OFD Sender: No OFD packet to send [09:16:25]OFD Sender: No OFD packet to send [09:16:30]OFD Sender: No OFD packet to send [09:16:35]OFD Sender: No OFD packet to send [09:16:40]OFD Sender: No OFD packet to send [09:16:45]OFD Sender: No OFD packet to send [09:16:50]OFD Sender: No OFD packet to send [09:16:55]OFD Sender: No OFD packet to send [09:17:00]OFD Sender: No OFD packet to send [09:17:05]OFD Sender: No OFD packet to send [09:17:10]OFD Sender: No OFD packet to send [09:17:15]OFD Sender: No OFD packet to send [09:17:20]OFD Sender: No OFD packet to send [09:17:25]OFD Sender: No OFD packet to send [09:17:30]OFD Sender: No OFD packet to send [09:17:35]OFD Sender: No OFD packet to send [09:17:40]OFD Sender: No OFD packet to send [09:17:45]OFD Sender: No OFD packet to send [09:17:50]OFD Sender: No OFD packet to send [09:17:55]OFD Sender: No OFD packet to send [09:18:00]OFD Sender: No OFD packet to send [09:18:05]OFD Sender: No OFD packet to send [09:18:10]OFD Sender: No OFD packet to send [09:18:15]OFD Sender: No OFD packet to send [09:18:20]OFD Sender: No OFD packet to send [09:18:25]OFD Sender: No OFD packet to send [09:18:30]OFD Sender: No OFD packet to send [09:18:35]OFD Sender: No OFD packet to send [09:18:40]OFD Sender: No OFD packet to send [09:18:45]OFD Sender: No OFD packet to send [09:18:50]OFD Sender: No OFD packet to send [09:18:55]OFD Sender: No OFD packet to send [09:19:00]OFD Sender: No OFD packet to send [09:19:05]OFD Sender: No OFD packet to send [09:19:10]OFD Sender: No OFD packet to send [09:19:15]OFD Sender: No OFD packet to send [09:19:20]OFD Sender: No OFD packet to send [09:19:25]OFD Sender: No OFD packet to send [09:19:28]accept exits with 7 [09:19:28]New connection [09:19:28]New thread 3067276644 created [09:19:28]Thread 3067133284 joined [09:19:28]Waiting for new connection... [09:19:28] Sock 7.Parse request [09:19:28]Sock 7.Check first char [09:19:28]Sock 7.First char is OK [09:19:28]request: POST /json_proto HTTP/1.0 [09:19:28]Method: POST [09:19:28]URL: /json_proto [09:19:28]Method is POST - this is cgi request [09:19:28]url: /json_proto [09:19:28]query_string will be loaded in cgi processing [09:19:28]execute_cgi json_proto POST (null) [09:19:28]execute_cgi path=json_proto method=POST [09:19:28]POST find Content-Length [09:19:28]Host: 172.17.52.3:8080 [09:19:28]Content-Length: 766 [09:19:28]Content-Type: application/json [09:19:28] [09:19:28]POST finish read [09:19:28]Found Content-Length = 766 [09:19:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210388", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:28]execute_script... [09:19: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)210388", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:28]POST & json_proto [09:19:28]process_json_proto [09:19:28]json parsed OK: [09:19:28]protocol is kg_v1.0 [09:19:28]action value=close_receipt [09:19:28]process_action close_receipt [09:19:28]cmd_close_receipt [09:19:28]MH_GetDate [09:19:28]Write to MH i2c: F0 00 00 15 29 2D [09:19:28]Write i2c OK [09:19:28]MH_I2C_Read... [09:19:28]Read from MH i2c: F0 [09:19:28]MH_I2C_Read... [09:19:28]Read from MH i2c: F0 09 00 [09:19:28]MH_I2C_Read... [09:19:28]Read from MH i2c: F0 09 00 15 29 00 A8 BF 18 67 D7 68 A5 64 64 [09:19:28]GetLastDocTimeStamp 1729674499 [09:19:28]current date 1729675176 [09:19:28]FM_GetShiftState [09:19:28]SAM_PROTO_GetShiftState [09:19:28]wFMCommunicate request_size=4 [09:19:28]MH_SAM_APDU [09:19:28]CAPDU: 80 13 01 00 [09:19:28]Write to MH i2c: E2 08 00 16 29 80 13 01 00 00 00 00 00 BC [09:19:28]Write i2c OK [09:19:28]MH_I2C_Read... [09:19:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:28]Read from MH i2c: E2 [09:19:28]MH_I2C_Read... [09:19:28]Read from MH i2c: E2 0E 00 [09:19:28]MH_I2C_Read... [09:19:28]Read from MH i2c: E2 0E 00 16 29 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 2B [09:19:28]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [09:19:28]wFMCommunicate OK [09:19:28]SAM_PROTO_GetShiftState done [09:19:28]FM_GetShiftState done [09:19:28]opened in 1729641385 [09:19:28]opened+sec_in_day 1729727785 [09:19:28]quantity*price = 40006 [09:19:28]sum+1 = 40007 [09:19:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 14 23.10.2024 09:19 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871809 ФД: 68391 ФПД: 137418498502419 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091936&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68391&fm=137418498502419&tin=02508201610067®Number=0000000000091756&sum=40006 [09:19:29]StoreToDocumentArchive [09:19:29]shift 507 fd 68391 [09:19:29]save to /storage/0507/doc_00068391 [09:19:29]save last doc name /storage/0507/doc_00068391 to /storage/kkm_last_doc_name [09:19:29]save OK [09:19:29]Clear old archive folders... [09:19:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:19:29]tlvbuf is 02009680 [09:19:29]SAM_PROTO_ClearQueue [09:19:29]wFMCommunicate request_size=4 [09:19:29]MH_SAM_APDU [09:19:29]CAPDU: 80 09 00 00 [09:19:29]Write to MH i2c: E2 08 00 23 29 80 09 00 00 00 00 00 00 BE [09:19:29]Write i2c OK [09:19:29]MH_I2C_Read... [09:19:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:19:29]Read from MH i2c: E2 [09:19:29]MH_I2C_Read... [09:19:29]Read from MH i2c: E2 03 00 [09:19:29]MH_I2C_Read... [09:19:29]Read from MH i2c: E2 03 00 23 29 00 90 00 C0 [09:19:29]RAPDU: 90 00 [09:19:29]wFMCommunicate OK [09:19:29]SAM_PROTO_ClearQueue done [09:19:29]KKMCreateOFDPacket [09:19:29]OFDProtocolAddRootSTLVToBuf [09:19:29]FM_MakeSignedData [09:19:29]FM_MakeSignedData [09:19:29]SAM_PROTO_SignData [09:19:29]wFMCommunicate request_size=4 [09:19:29]MH_SAM_APDU [09:19:29]CAPDU: 80 0D 01 02 [09:19:29]Write to MH i2c: E2 08 00 24 29 80 0D 01 02 00 00 00 00 C6 [09:19:29]Write i2c OK [09:19:29]MH_I2C_Read... [09:19:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:19:29]Read from MH i2c: E2 [09:19:29]MH_I2C_Read... [09:19:29]Read from MH i2c: E2 03 00 [09:19:29]MH_I2C_Read... [09:19:29]Read from MH i2c: E2 03 00 24 29 00 90 00 C1 [09:19:29]RAPDU: 90 00 [09:19:29]wFMCommunicate OK [09:19:29]wFMCommunicate request_size=255 [09:19:29]MH_SAM_APDU [09:19:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 0E 00 00 00 F4 03 04 00 A8 BF 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 27 0B 01 00 35 04 06 00 7C [09:19:29]Write to MH i2c: E2 02 01 25 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 0E 00 00 00 F4 03 04 00 A8 BF 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 27 0B 01 00 35 04 06 00 7C 00 00 D0 [09:19:29]Write i2c OK [09:19:29]MH_I2C_Read... [09:19:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:29]Read from MH i2c: E2 [09:19:29]MH_I2C_Read... [09:19:29]Read from MH i2c: E2 03 00 [09:19:29]MH_I2C_Read... [09:19:29]Read from MH i2c: E2 03 00 25 29 00 90 00 C2 [09:19:29]RAPDU: 90 00 [09:19:29]wFMCommunicate OK [09:19:29]wFMCommunicate request_size=10 [09:19:29]MH_SAM_APDU [09:19:29]CAPDU: 80 0D 02 02 05 FB 3C C9 EF 13 [09:19:29]Write to MH i2c: E2 0D 00 26 29 80 0D 02 02 05 00 FB 3C C9 EF 13 00 00 D5 [09:19:29]Write i2c OK [09:19:29]MH_I2C_Read... [09:19:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:29]Read from MH i2c: E2 [09:19:29]MH_I2C_Read... [09:19:29]Read from MH i2c: E2 03 00 [09:19:29]MH_I2C_Read... [09:19:29]Read from MH i2c: E2 03 00 26 29 00 90 00 C3 [09:19:29]RAPDU: 90 00 [09:19:29]wFMCommunicate OK [09:19:29]wFMCommunicate request_size=4 [09:19:29]MH_SAM_APDU [09:19:29]CAPDU: 80 0D 03 02 [09:19:29]Write to MH i2c: E2 08 00 27 29 80 0D 03 02 00 00 00 00 CB [09:19:29]Write i2c OK [09:19:29]MH_I2C_Read... [09:19:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:19:29]Read from MH i2c: E2 [09:19:29]MH_I2C_Read... [09:19:29]Read from MH i2c: E2 0B 00 [09:19:29]MH_I2C_Read... [09:19:29]Read from MH i2c: E2 0B 00 27 29 00 91 6B 2D 68 F8 C6 FF 27 90 00 41 [09:19:29]RAPDU: 91 6B 2D 68 F8 C6 FF 27 90 00 [09:19:29]wFMCommunicate OK [09:19:29]SAM_PROTO_SignData done [09:19:29]FM_MakeSignedData done [09:19:29]CreateOFDProtocolMessage [09:19:29]wFMCommunicate request_size=4 [09:19:29]MH_SAM_APDU [09:19:29]CAPDU: 80 11 00 00 [09:19:29]Write to MH i2c: E2 08 00 28 29 80 11 00 00 00 00 00 00 CB [09:19:29]Write i2c OK [09:19:29]MH_I2C_Read... [09:19:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:29]Read from MH i2c: E2 [09:19:29]MH_I2C_Read... [09:19:29]Read from MH i2c: E2 17 00 [09:19:29]MH_I2C_Read... [09:19:29]Read from MH i2c: E2 17 00 28 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 1F [09:19:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [09:19:29]wFMCommunicate OK [09:19:29]CreateOFDProtocolMessage done [09:19:29]OFDSenderStorePacket 68391 [09:19:29]StoreOFDPacket docnum=68391 [09:19:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 68 80 07 01 61 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 32 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 0E 00 00 00 F4 03 04 00 A8 BF 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 27 0B 01 00 35 04 06 00 7C FB 3C C9 EF 13 91 6B 2D 68 F8 C6 FF 27 [09:19:29]CheckFolder [09:19:29]dirname=/storage/ofd_packets [09:19:29]CheckFolder done [09:19:29]ProducePacketName [09:19:29]name=ofd_packets/00068391 [09:19:29]NVStorageSaveData ofd_packets/00068391 [09:19:29]File name is /storage/ofd_packets/00068391 [09:19:29]Write 301 bytes [09:19:29]NVStorageSaveData done [09:19:29]OFDSenderStorePacket done [09:19:29]KKMCreateOFDPacket done [09:19:29]NVStorageSaveData kkm_last_timestamp [09:19:29]File name is /storage/kkm_last_timestamp [09:19:29]Write 4 bytes [09:19:29]NVStorageSaveData done [09:19:29]ExternCall_PrintAddStr [09:19:29]wPrintStart [09:19:29]Write to MH i2c: 01 00 00 29 29 52 [09:19:29]Write i2c OK [09:19:29]MH_I2C_Read... [09:19:29]Read from MH i2c: 01 [09:19:29]MH_I2C_Read... [09:19:29]Read from MH i2c: 01 07 00 [09:19:29]MH_I2C_Read... [09:19:29]Read from MH i2c: 01 07 00 29 29 00 04 00 00 00 FF 0F 6B [09:19:29]RasterBufferAndPrint [09:19:29]line Счет N : (1)210388 [09:19:29]line ИНН: 02508201610067 [09:19:29]line Контрольно-Кассовый Чек [09:19:30]line ПРОДАЖА [09:19:30]line ТРК (МРК, ГНК) : 11 [09:19:30]line Товар: 2710124130 [09:19:30]line Аи-92-К-2 [09:19:30]line 5.980 * 66.90 [09:19:30]line = 400.06 [09:19:30]line НДС 12% НСП 1% [09:19:30]line > о реализуемом товаре [09:19:30]line ИТОГО: 400.06 [09:19:30]line НСП 1% : 3.54 [09:19:30]line НДС 12% : 42.48 [09:19:30]line Наличными: 0.00 [09:19:30]line Безнал.: 400.06 [09:19:30]line Место: АЗС № 147 "Партнер Нефть" [09:19:30]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [09:19:30]line СНО: Общий режим [09:19:30]line Чек 14 23.10.2024 09:19 [09:19:30]line Смена: 507 ФФД: 1.0 [09:19:30]line ЗНМ: 0300000094 [09:19:30]line РНМ: 0000000000091756 [09:19:30]line Версия ККМ: 001 [09:19:30]line Платежная система: Mbank [09:19:30]line ФМ: 0000000000871809 [09:19:30]line ФД: 68391 [09:19:30]line ФПД: 137418498502419 [09:19:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091936&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68391&fm=137418498502419&tin=02508201610067®Number=0000000000091756&sum=40006 [09:19:30]written 0, free lines is 4095 [09:19:30]OFD Sender: Processing packet 68391 [packets to send 8, broken 7] [09:19:30]ProducePacketName [09:19:30]name=ofd_packets/00068391 [09:19:30]OFD Sender: To server: pG, [09:19:30]CommunicateWithHost lk.salyk.kg:30040 [09:19:30]ConnectInit lk.salyk.kg [09:19:30]Write to MH i2c: 01 00 00 51 29 7A [09:19:30]Write i2c OK [09:19:30]MH_I2C_Read... [09:19:30]Read from MH i2c: 01 [09:19:30]MH_I2C_Read... [09:19:30]Read from MH i2c: 01 07 00 [09:19:30]MH_I2C_Read... [09:19:30]Read from MH i2c: 01 07 00 51 29 00 04 00 00 00 CA 0C 5B [09:19:30]RasterBufferAndPrint [09:19:30]line [09:19:30]line [09:19:30]line [09:19:30]line [09:19:30]line [09:19:30]written 0, free lines is 3277 [09:19:30]Connected sock=9 [09:19:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 68 80 07 01 61 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 32 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 0E 00 00 00 F4 03 04 00 A8 BF 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 27 0B 01 00 35 04 06 00 7C FB 3C C9 EF 13 91 6B 2D 68 F8 C6 FF 27 [09:19:30]MH_Cut [09:19:30]Write to MH i2c: D1 01 00 58 29 01 53 [09:19:30]Write i2c OK [09:19:30]MH_I2C_Read... [09:19:30]Read from MH i2c: D1 [09:19:30]MH_I2C_Read... [09:19:30]Read from MH i2c: D1 01 00 [09:19:30]MH_I2C_Read... [09:19:30]Read from MH i2c: D1 01 00 58 29 00 52 [09:19:30]Write to MH i2c: 01 00 00 59 29 82 [09:19:30]Write i2c OK [09:19:30]MH_I2C_Read... [09:19:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 39 05 47 00 1C E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 27 0B 01 00 F4 03 04 00 9D 65 18 67 B6 04 01 00 00 C9 ED AE BA A5 0B D6 87 [09:19:30]CommunicateWithHost err = 0 [09:19:30]CheckOFDResponse [09:19:30]1017 (14) - 77093643461234 [09:19:30]1041 (16) - 0000000000871809 [09:19:30]1040 (4) - 68391 [09:19:30]1012 (4) - 23.10.2024 02:55 [09:19:30]1206 (1) - 0 [09:19:30]OFD Sender: Remove packet 68391 [09:19:30]ProducePacketName [09:19:30]name=ofd_packets/00068391 [09:19:30]NVStorageDeleteData [09:19:31]OFD Sender: No OFD packet to send [09:19:31]*** Cut start [09:19:31]*** Partial cut [09:19:31]*** CUTSNS_PIN = 1 [09:19:31]*** CUTSNS_PIN = 0 [09:19:31]*** Brake cut motor [09:19:31]Read from MH i2c: 01 [09:19:31]MH_I2C_Read... [09:19:31]*** Stop cut motor [09:19:31]*** Cut end [09:19:31]Read from MH i2c: 01 07 00 [09:19:31]MH_I2C_Read... [09:19:31]Read from MH i2c: 01 07 00 59 29 00 04 00 00 00 FF 0F 9B [09:19:31]process_action close_receipt done [09:19:31]requested_data is exist [09:19:31]produce_requested_data [09:19:31]requested_item fm.sn is exist - process it [09:19:31]wFMCommunicate request_size=4 [09:19:31]MH_SAM_APDU [09:19:31]CAPDU: 80 11 00 00 [09:19:31]Write to MH i2c: E2 08 00 5A 29 80 11 00 00 00 00 00 00 FD [09:19:31]Write i2c OK [09:19:31]MH_I2C_Read... [09:19:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:31]Read from MH i2c: E2 [09:19:31]MH_I2C_Read... [09:19:31]Read from MH i2c: E2 17 00 [09:19:31]MH_I2C_Read... [09:19:31]Read from MH i2c: E2 17 00 5A 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 51 [09:19:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [09:19:31]wFMCommunicate OK [09:19:31]requested_item fd.num is exist - process it [09:19:31]SAM_PROTO_GetFieldsCounters [09:19:31]wFMCommunicate request_size=4 [09:19:31]MH_SAM_APDU [09:19:31]CAPDU: 80 13 00 00 [09:19:31]Write to MH i2c: E2 08 00 5B 29 80 13 00 00 00 00 00 00 00 [09:19:31]Write i2c OK [09:19:31]MH_I2C_Read... [09:19:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:32]Read from MH i2c: E2 [09:19:32]MH_I2C_Read... [09:19:32]Read from MH i2c: E2 62 00 [09:19:32]MH_I2C_Read... [09:19:32]Read from MH i2c: E2 62 00 5B 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 27 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [09:19:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 27 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:19:32]wFMCommunicate OK [09:19:32]SAM_PROTO_GetFieldsCounters done [09:19:32]requested_item shift.num is exist - process it [09:19:32]requested_item shift.opened is exist - process it [09:19:32]req_shift_opened [09:19:32]FM_GetShiftState [09:19:32]SAM_PROTO_GetShiftState [09:19:32]wFMCommunicate request_size=4 [09:19:32]MH_SAM_APDU [09:19:32]CAPDU: 80 13 01 00 [09:19:32]Write to MH i2c: E2 08 00 5C 29 80 13 01 00 00 00 00 00 02 [09:19:32]Write i2c OK [09:19:32]MH_I2C_Read... [09:19:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:32]Read from MH i2c: E2 [09:19:32]MH_I2C_Read... [09:19:32]Read from MH i2c: E2 0E 00 [09:19:32]MH_I2C_Read... [09:19:32]Read from MH i2c: E2 0E 00 5C 29 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 71 [09:19:32]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [09:19:32]wFMCommunicate OK [09:19:32]SAM_PROTO_GetShiftState done [09:19:32]FM_GetShiftState done [09:19:32]req_shift_opened done [09:19:32]requested_item shift.open_date is exist - process it [09:19:32]req_shift_open_date [09:19:32]req_shift_open_date done [09:19:32]produce_requested_data done [09:19:32]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68391,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [09:19:32]process_action_free close_receipt [09:19:32]json_value_free [09:19:32]json_value_free done [09:19:32]process_json_proto returns [09:19:32]Send response to host [09:19:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68391,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [09:19:32]free response buf [09:19:32]execute_script done [09:19:32]execute_script returns [09:19:32]free content buf [09:19:32]Sock 7.Close socket [09:19:32]Sock 7.Thread stoped [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: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:41]OFD Sender: No OFD packet to send [09:21:46]OFD Sender: No OFD packet to send [09:21:51]OFD Sender: No OFD packet to send [09:21:56]OFD Sender: No OFD packet to send [09:22:01]OFD Sender: No OFD packet to send [09:22:06]OFD Sender: No OFD packet to send [09:22:11]OFD Sender: No OFD packet to send [09:22:16]OFD Sender: No OFD packet to send [09:22:21]OFD Sender: No OFD packet to send [09:22:26]OFD Sender: No OFD packet to send [09:22:31]OFD Sender: No OFD packet to send [09:22:36]OFD Sender: No OFD packet to send [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:21]OFD Sender: No OFD packet to send [09:23:26]OFD Sender: No OFD packet to send [09:23:31]OFD Sender: No OFD packet to send [09:23:36]OFD Sender: No OFD packet to send [09:23:41]OFD Sender: No OFD packet to send [09:23:46]OFD Sender: No OFD packet to send [09:23:51]OFD Sender: No OFD packet to send [09:23:56]OFD Sender: No OFD packet to send [09:24:01]OFD Sender: No OFD packet to send [09:24:06]OFD Sender: No OFD packet to send [09:24:11]OFD Sender: No OFD packet to send [09:24:16]OFD Sender: No OFD packet to send [09:24:21]OFD Sender: No OFD packet to send [09:24:26]OFD Sender: No OFD packet to send [09:24:31]OFD Sender: No OFD packet to send [09:24:36]OFD Sender: No OFD packet to send [09:24:41]OFD Sender: No OFD packet to send [09:24:46]OFD Sender: No OFD packet to send [09:24:51]OFD Sender: No OFD packet to send [09:24:56]OFD Sender: No OFD packet to send [09:25:01]OFD Sender: No OFD packet to send [09:25:06]OFD Sender: No OFD packet to send [09:25:11]OFD Sender: No OFD packet to send [09:25:16]OFD Sender: No OFD packet to send [09:25:21]OFD Sender: No OFD packet to send [09:25:26]OFD Sender: No OFD packet to send [09:25:31]OFD Sender: No OFD packet to send [09:25:36]OFD Sender: No OFD packet to send [09:25:41]OFD Sender: No OFD packet to send [09:25:46]OFD Sender: No OFD packet to send [09:25:51]OFD Sender: No OFD packet to send [09:25:56]OFD Sender: No OFD packet to send [09:26:01]OFD Sender: No OFD packet to send [09:26:06]OFD Sender: No OFD packet to send [09:26:11]OFD Sender: No OFD packet to send [09:26:11]accept exits with 10 [09:26:11]New connection [09:26:11]New thread 3067133284 created [09:26:11]Thread 3067276644 joined [09:26:11]Waiting for new connection... [09:26:11] Sock 10.Parse request [09:26:11]Sock 10.Check first char [09:26:11]Sock 10.First char is OK [09:26:11]request: POST /json_proto HTTP/1.0 [09:26:11]Method: POST [09:26:11]URL: /json_proto [09:26:11]Method is POST - this is cgi request [09:26:11]url: /json_proto [09:26:11]query_string will be loaded in cgi processing [09:26:11]execute_cgi json_proto POST (null) [09:26:11]execute_cgi path=json_proto method=POST [09:26:11]POST find Content-Length [09:26:11]Host: 172.17.52.3:8080 [09:26:11]Content-Length: 677 [09:26:11]Content-Type: application/json [09:26:11] [09:26:11]POST finish read [09:26:11]Found Content-Length = 677 [09:26:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:26:11]execute_script... [09:26: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)210389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:26:11]POST & json_proto [09:26:11]process_json_proto [09:26:11]json parsed OK: [09:26:11]protocol is kg_v1.0 [09:26:11]action value=close_receipt [09:26:11]process_action close_receipt [09:26:11]cmd_close_receipt [09:26:11]MH_GetDate [09:26:11]Write to MH i2c: F0 00 00 5D 29 75 [09:26:11]Write i2c OK [09:26:11]MH_I2C_Read... [09:26:11]Read from MH i2c: F0 [09:26:11]MH_I2C_Read... [09:26:11]Read from MH i2c: F0 09 00 [09:26:11]MH_I2C_Read... [09:26:11]Read from MH i2c: F0 09 00 5D 29 00 3B C1 18 67 D7 68 A5 64 41 [09:26:11]GetLastDocTimeStamp 1729675176 [09:26:11]current date 1729675579 [09:26:11]FM_GetShiftState [09:26:11]SAM_PROTO_GetShiftState [09:26:11]wFMCommunicate request_size=4 [09:26:11]MH_SAM_APDU [09:26:11]CAPDU: 80 13 01 00 [09:26:11]Write to MH i2c: E2 08 00 5E 29 80 13 01 00 00 00 00 00 04 [09:26:11]Write i2c OK [09:26:11]MH_I2C_Read... [09:26:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:11]Read from MH i2c: E2 [09:26:11]MH_I2C_Read... [09:26:11]Read from MH i2c: E2 0E 00 [09:26:11]MH_I2C_Read... [09:26:11]Read from MH i2c: E2 0E 00 5E 29 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 73 [09:26:11]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [09:26:11]wFMCommunicate OK [09:26:11]SAM_PROTO_GetShiftState done [09:26:11]FM_GetShiftState done [09:26:11]opened in 1729641385 [09:26:11]opened+sec_in_day 1729727785 [09:26:11]quantity*price = 20003 [09:26:11]sum+1 = 20004 [09:26:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 15 23.10.2024 09:26 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68392 ФПД: 201703850220562 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T092619&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68392&fm=201703850220562&tin=02508201610067®Number=0000000000091756&sum=20000 [09:26:12]StoreToDocumentArchive [09:26:12]shift 507 fd 68392 [09:26:12]save to /storage/0507/doc_00068392 [09:26:12]save last doc name /storage/0507/doc_00068392 to /storage/kkm_last_doc_name [09:26:12]save OK [09:26:12]Clear old archive folders... [09:26:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:26:12]tlvbuf is 0203C780 [09:26:12]SAM_PROTO_ClearQueue [09:26:12]wFMCommunicate request_size=4 [09:26:12]MH_SAM_APDU [09:26:12]CAPDU: 80 09 00 00 [09:26:12]Write to MH i2c: E2 08 00 6B 29 80 09 00 00 00 00 00 00 06 [09:26:12]Write i2c OK [09:26:12]MH_I2C_Read... [09:26:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:12]Read from MH i2c: E2 [09:26:12]MH_I2C_Read... [09:26:12]Read from MH i2c: E2 03 00 [09:26:12]MH_I2C_Read... [09:26:12]Read from MH i2c: E2 03 00 6B 29 00 90 00 08 [09:26:12]RAPDU: 90 00 [09:26:12]wFMCommunicate OK [09:26:12]SAM_PROTO_ClearQueue done [09:26:12]KKMCreateOFDPacket [09:26:12]OFDProtocolAddRootSTLVToBuf [09:26:12]FM_MakeSignedData [09:26:12]FM_MakeSignedData [09:26:12]SAM_PROTO_SignData [09:26:12]wFMCommunicate request_size=4 [09:26:12]MH_SAM_APDU [09:26:12]CAPDU: 80 0D 01 02 [09:26:12]Write to MH i2c: E2 08 00 6C 29 80 0D 01 02 00 00 00 00 0E [09:26:12]Write i2c OK [09:26:12]MH_I2C_Read... [09:26:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:12]Read from MH i2c: E2 [09:26:12]MH_I2C_Read... [09:26:12]Read from MH i2c: E2 03 00 [09:26:12]MH_I2C_Read... [09:26:12]Read from MH i2c: E2 03 00 6C 29 00 90 00 09 [09:26:12]RAPDU: 90 00 [09:26:12]wFMCommunicate OK [09:26:12]wFMCommunicate request_size=255 [09:26:12]MH_SAM_APDU [09:26: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 32 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 0F 00 00 00 F4 03 04 00 3B C1 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 28 0B 01 00 35 04 06 00 B7 [09:26:12]Write to MH i2c: E2 02 01 6D 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 0F 00 00 00 F4 03 04 00 3B C1 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 28 0B 01 00 35 04 06 00 B7 00 00 D1 [09:26:12]Write i2c OK [09:26:12]MH_I2C_Read... [09:26:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:13]Read from MH i2c: E2 [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: E2 03 00 [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: E2 03 00 6D 29 00 90 00 0A [09:26:13]RAPDU: 90 00 [09:26:13]wFMCommunicate OK [09:26:13]wFMCommunicate request_size=10 [09:26:13]MH_SAM_APDU [09:26:13]CAPDU: 80 0D 02 02 05 72 D6 57 9C 12 [09:26:13]Write to MH i2c: E2 0D 00 6E 29 80 0D 02 02 05 00 72 D6 57 9C 12 00 00 68 [09:26:13]Write i2c OK [09:26:13]MH_I2C_Read... [09:26:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:13]Read from MH i2c: E2 [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: E2 03 00 [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: E2 03 00 6E 29 00 90 00 0B [09:26:13]RAPDU: 90 00 [09:26:13]wFMCommunicate OK [09:26:13]wFMCommunicate request_size=4 [09:26:13]MH_SAM_APDU [09:26:13]CAPDU: 80 0D 03 02 [09:26:13]Write to MH i2c: E2 08 00 6F 29 80 0D 03 02 00 00 00 00 13 [09:26:13]Write i2c OK [09:26:13]MH_I2C_Read... [09:26:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:13]Read from MH i2c: E2 [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: E2 0B 00 [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: E2 0B 00 6F 29 00 11 E1 AE 8F F1 7E CF 02 90 00 83 [09:26:13]RAPDU: 11 E1 AE 8F F1 7E CF 02 90 00 [09:26:13]wFMCommunicate OK [09:26:13]SAM_PROTO_SignData done [09:26:13]FM_MakeSignedData done [09:26:13]CreateOFDProtocolMessage [09:26:13]wFMCommunicate request_size=4 [09:26:13]MH_SAM_APDU [09:26:13]CAPDU: 80 11 00 00 [09:26:13]Write to MH i2c: E2 08 00 70 29 80 11 00 00 00 00 00 00 13 [09:26:13]Write i2c OK [09:26:13]MH_I2C_Read... [09:26:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:13]Read from MH i2c: E2 [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: E2 17 00 [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: E2 17 00 70 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 67 [09:26:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [09:26:13]wFMCommunicate OK [09:26:13]CreateOFDProtocolMessage done [09:26:13]OFDSenderStorePacket 68392 [09:26:13]StoreOFDPacket docnum=68392 [09:26:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 6E 0B 07 01 A0 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 0F 00 00 00 F4 03 04 00 3B C1 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 28 0B 01 00 35 04 06 00 B7 72 D6 57 9C 12 11 E1 AE 8F F1 7E CF 02 [09:26:13]CheckFolder [09:26:13]dirname=/storage/ofd_packets [09:26:13]CheckFolder done [09:26:13]ProducePacketName [09:26:13]name=ofd_packets/00068392 [09:26:13]NVStorageSaveData ofd_packets/00068392 [09:26:13]File name is /storage/ofd_packets/00068392 [09:26:13]Write 301 bytes [09:26:13]NVStorageSaveData done [09:26:13]OFDSenderStorePacket done [09:26:13]KKMCreateOFDPacket done [09:26:13]NVStorageSaveData kkm_last_timestamp [09:26:13]File name is /storage/kkm_last_timestamp [09:26:13]Write 4 bytes [09:26:13]NVStorageSaveData done [09:26:13]ExternCall_PrintAddStr [09:26:13]wPrintStart [09:26:13]Write to MH i2c: 01 00 00 71 29 9A [09:26:13]Write i2c OK [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: 01 [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: 01 07 00 [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: 01 07 00 71 29 00 04 00 00 00 FF 0F B3 [09:26:13]RasterBufferAndPrint [09:26:13]line Счет N : (1)210389 [09:26:13]line ИНН: 02508201610067 [09:26:13]line Контрольно-Кассовый Чек [09:26:13]line ПРОДАЖА [09:26:13]line ТРК (МРК, ГНК) : 11 [09:26:13]line Товар: 2710124130 [09:26:13]line Аи-92-К-2 [09:26:13]line 2.990 * 66.90 [09:26:13]line = 200.03 [09:26:13]line НДС 12% НСП 1% [09:26:13]line > о реализуемом товаре [09:26:13]line ОКРУГЛЕНИЕ: -0.03 [09:26:13]line ИТОГО: 200.00 [09:26:13]line Внесено: 200.00 [09:26:13]line СДАЧА: 0.00 [09:26:13]line НСП 1% : 1.77 [09:26:13]line НДС 12% : 21.24 [09:26:13]line Наличными: 200.00 [09:26:13]line Безнал.: 0.00 [09:26:13]line Место: АЗС № 147 "Партнер Нефть" [09:26:13]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [09:26:13]line СНО: Общий режим [09:26:13]line Чек 15 23.10.2024 09:26 [09:26:13]line Смена: 507 ФФД: 1.0 [09:26:13]line ЗНМ: 0300000094 [09:26:13]line РНМ: 0000000000091756 [09:26:13]line Версия ККМ: 001 [09:26:13]line ФМ: 0000000000871809 [09:26:13]line ФД: 68392 [09:26:13]line ФПД: 201703850220562 [09:26:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T092619&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68392&fm=201703850220562&tin=02508201610067®Number=0000000000091756&sum=20000 [09:26:13]written 0, free lines is 4095 [09:26:13]OFD Sender: Processing packet 68392 [packets to send 8, broken 7] [09:26:13]ProducePacketName [09:26:13]name=ofd_packets/00068392 [09:26:13]OFD Sender: To server: pG, [09:26:13]CommunicateWithHost lk.salyk.kg:30040 [09:26:13]ConnectInit lk.salyk.kg [09:26:13]Connected sock=9 [09:26:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 6E 0B 07 01 A0 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 0F 00 00 00 F4 03 04 00 3B C1 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 28 0B 01 00 35 04 06 00 B7 72 D6 57 9C 12 11 E1 AE 8F F1 7E CF 02 [09:26:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 07 BA 47 00 F1 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 28 0B 01 00 F4 03 04 00 30 67 18 67 B6 04 01 00 00 74 3C E5 69 6F 93 16 47 [09:26:13]CommunicateWithHost err = 0 [09:26:13]CheckOFDResponse [09:26:13]1017 (14) - 77093643461234 [09:26:13]1041 (16) - 0000000000871809 [09:26:13]1040 (4) - 68392 [09:26:13]1012 (4) - 23.10.2024 03:02 [09:26:13]1206 (1) - 0 [09:26:13]OFD Sender: Remove packet 68392 [09:26:13]ProducePacketName [09:26:13]name=ofd_packets/00068392 [09:26:13]NVStorageDeleteData [09:26:13]Write to MH i2c: 01 00 00 9B 29 C4 [09:26:13]Write i2c OK [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: 01 [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: 01 07 00 [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: 01 07 00 9B 29 00 04 00 00 00 A6 0C 81 [09:26:13]RasterBufferAndPrint [09:26:13]line [09:26:13]line [09:26:13]line [09:26:13]line [09:26:13]line [09:26:13]written 0, free lines is 3241 [09:26:13]MH_Cut [09:26:13]Write to MH i2c: D1 01 00 A2 29 01 9D [09:26:13]Write i2c OK [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: D1 [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: D1 01 00 [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: D1 01 00 A2 29 00 9C [09:26:13]Write to MH i2c: 01 00 00 A3 29 CC [09:26:13]Write i2c OK [09:26:13]MH_I2C_Read... [09:26:14]OFD Sender: No OFD packet to send [09:26:14]*** Cut start [09:26:14]*** Partial cut [09:26:14]*** CUTSNS_PIN = 1 [09:26:14]*** CUTSNS_PIN = 0 [09:26:14]*** Brake cut motor [09:26:15]Read from MH i2c: 01 [09:26:15]MH_I2C_Read... [09:26:15]*** Stop cut motor [09:26:15]*** Cut end [09:26:15]Read from MH i2c: 01 07 00 [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: 01 07 00 A3 29 00 04 00 00 00 FF 0F E5 [09:26:15]process_action close_receipt done [09:26:15]requested_data is exist [09:26:15]produce_requested_data [09:26:15]requested_item fm.sn is exist - process it [09:26:15]wFMCommunicate request_size=4 [09:26:15]MH_SAM_APDU [09:26:15]CAPDU: 80 11 00 00 [09:26:15]Write to MH i2c: E2 08 00 A4 29 80 11 00 00 00 00 00 00 47 [09:26:15]Write i2c OK [09:26:15]MH_I2C_Read... [09:26:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:15]Read from MH i2c: E2 [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: E2 17 00 [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: E2 17 00 A4 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 9B [09:26:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [09:26:15]wFMCommunicate OK [09:26:15]requested_item fd.num is exist - process it [09:26:15]SAM_PROTO_GetFieldsCounters [09:26:15]wFMCommunicate request_size=4 [09:26:15]MH_SAM_APDU [09:26:15]CAPDU: 80 13 00 00 [09:26:15]Write to MH i2c: E2 08 00 A5 29 80 13 00 00 00 00 00 00 4A [09:26:15]Write i2c OK [09:26:15]MH_I2C_Read... [09:26:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:15]Read from MH i2c: E2 [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: E2 62 00 [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: E2 62 00 A5 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 28 0B 01 00 0E 04 04 00 FB 01 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 CC [09:26:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 28 0B 01 00 0E 04 04 00 FB 01 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 [09:26:15]wFMCommunicate OK [09:26:15]SAM_PROTO_GetFieldsCounters done [09:26:15]requested_item shift.num is exist - process it [09:26:15]requested_item shift.opened is exist - process it [09:26:15]req_shift_opened [09:26:15]FM_GetShiftState [09:26:15]SAM_PROTO_GetShiftState [09:26:15]wFMCommunicate request_size=4 [09:26:15]MH_SAM_APDU [09:26:15]CAPDU: 80 13 01 00 [09:26:15]Write to MH i2c: E2 08 00 A6 29 80 13 01 00 00 00 00 00 4C [09:26:15]Write i2c OK [09:26:15]MH_I2C_Read... [09:26:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:15]Read from MH i2c: E2 [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: E2 0E 00 [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: E2 0E 00 A6 29 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 BB [09:26:15]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [09:26:15]wFMCommunicate OK [09:26:15]SAM_PROTO_GetShiftState done [09:26:15]FM_GetShiftState done [09:26:15]req_shift_opened done [09:26:15]requested_item shift.open_date is exist - process it [09:26:15]req_shift_open_date [09:26:15]req_shift_open_date done [09:26:15]produce_requested_data done [09:26:15]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68392,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [09:26:15]process_action_free close_receipt [09:26:15]json_value_free [09:26:15]json_value_free done [09:26:15]process_json_proto returns [09:26:15]Send response to host [09:26:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68392,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [09:26:15]free response buf [09:26:15]execute_script done [09:26:15]execute_script returns [09:26:15]free content buf [09:26:15]Sock 10.Close socket [09:26:15]Sock 10.Thread stoped [09:26:19]OFD Sender: No OFD packet to send [09:26:24]OFD Sender: No OFD packet to send [09:26:29]OFD Sender: No OFD packet to send [09:26:34]OFD Sender: No OFD packet to send [09:26:39]OFD Sender: No OFD packet to send [09:26:44]OFD Sender: No OFD packet to send [09:26:49]OFD Sender: No OFD packet to send [09:26:54]OFD Sender: No OFD packet to send [09:26:59]OFD Sender: No OFD packet to send [09:27:04]OFD Sender: No OFD packet to send [09:27:09]OFD Sender: No OFD packet to send [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: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]OFD Sender: No OFD packet to send [09:28:04]OFD Sender: No OFD packet to send [09:28:09]OFD Sender: No OFD packet to send [09:28:14]OFD Sender: No OFD packet to send [09:28:19]OFD Sender: No OFD packet to send [09:28:24]OFD Sender: No OFD packet to send [09:28:29]OFD Sender: No OFD packet to send [09:28:34]OFD Sender: No OFD packet to send [09:28:39]OFD Sender: No OFD packet to send [09:28:44]OFD Sender: No OFD packet to send [09:28:49]OFD Sender: No OFD packet to send [09:28:54]OFD Sender: No OFD packet to send [09:28:59]OFD Sender: No OFD packet to send [09:29:04]OFD Sender: No OFD packet to send [09:29:09]OFD Sender: No OFD packet to send [09:29:14]OFD Sender: No OFD packet to send [09:29:19]OFD Sender: No OFD packet to send [09:29:24]OFD Sender: No OFD packet to send [09:29:29]OFD Sender: No OFD packet to send [09:29:34]OFD Sender: No OFD packet to send [09:29:39]OFD Sender: No OFD packet to send [09:29:44]OFD Sender: No OFD packet to send [09:29:49]OFD Sender: No OFD packet to send [09:29:54]OFD Sender: No OFD packet to send [09:29:59]OFD Sender: No OFD packet to send [09:30:04]OFD Sender: No OFD packet to send [09:30:09]OFD Sender: No OFD packet to send [09:30:14]OFD Sender: No OFD packet to send [09:30:19]OFD Sender: No OFD packet to send [09:30:24]OFD Sender: No OFD packet to send [09:30:29]OFD Sender: No OFD packet to send [09:30:34]OFD Sender: No OFD packet to send [09:30:39]OFD Sender: No OFD packet to send [09:30:44]OFD Sender: No OFD packet to send [09:30:49]OFD Sender: No OFD packet to send [09:30:54]OFD Sender: No OFD packet to send [09:30:59]OFD Sender: No OFD packet to send [09:31:04]OFD Sender: No OFD packet to send [09:31:09]OFD Sender: No OFD packet to send [09:31:14]OFD Sender: No OFD packet to send [09:31:19]OFD Sender: No OFD packet to send [09:31:24]OFD Sender: No OFD packet to send [09:31:29]OFD Sender: No OFD packet to send [09:31:34]OFD Sender: No OFD packet to send [09:31:39]OFD Sender: No OFD packet to send [09:31:44]OFD Sender: No OFD packet to send [09:31:49]OFD Sender: No OFD packet to send [09:31:54]OFD Sender: No OFD packet to send [09:31:59]OFD Sender: No OFD packet to send [09:32:04]OFD Sender: No OFD packet to send [09:32:09]OFD Sender: No OFD packet to send [09:32:14]OFD Sender: No OFD packet to send [09:32:19]OFD Sender: No OFD packet to send [09:32:24]OFD Sender: No OFD packet to send [09:32:29]OFD Sender: No OFD packet to send [09:32:34]OFD Sender: No OFD packet to send [09:32:39]OFD Sender: No OFD packet to send [09:32:44]OFD Sender: No OFD packet to send [09:32:49]OFD Sender: No OFD packet to send [09:32:54]OFD Sender: No OFD packet to send [09:32:59]OFD Sender: No OFD packet to send [09:33:04]OFD Sender: No OFD packet to send [09:33:09]OFD Sender: No OFD packet to send [09:33:14]OFD Sender: No OFD packet to send [09:33:19]OFD Sender: No OFD packet to send [09:33:24]OFD Sender: No OFD packet to send [09:33:29]OFD Sender: No OFD packet to send [09:33:34]OFD Sender: No OFD packet to send [09:33:39]OFD Sender: No OFD packet to send [09:33:44]OFD Sender: No OFD packet to send [09:33:49]OFD Sender: No OFD packet to send [09:33:54]OFD Sender: No OFD packet to send [09:33:59]OFD Sender: No OFD packet to send [09:34:04]OFD Sender: No OFD packet to send [09:34:09]OFD Sender: No OFD packet to send [09:34:14]OFD Sender: No OFD packet to send [09:34:19]OFD Sender: No OFD packet to send [09:34:24]OFD Sender: No OFD packet to send [09:34:29]OFD Sender: No OFD packet to send [09:34:34]OFD Sender: No OFD packet to send [09:34:39]OFD Sender: No OFD packet to send [09:34:44]OFD Sender: No OFD packet to send [09:34:49]OFD Sender: No OFD packet to send [09:34:54]OFD Sender: No OFD packet to send [09:34:59]OFD Sender: No OFD packet to send [09:35:04]OFD Sender: No OFD packet to send [09:35:09]OFD Sender: No OFD packet to send [09:35:14]OFD Sender: No OFD packet to send [09:35:19]OFD Sender: No OFD packet to send [09:35:24]OFD Sender: No OFD packet to send [09:35:29]OFD Sender: No OFD packet to send [09:35:34]OFD Sender: No OFD packet to send [09:35:39]OFD Sender: No OFD packet to send [09:35:44]OFD Sender: No OFD packet to send [09:35:49]OFD Sender: No OFD packet to send [09:35:54]OFD Sender: No OFD packet to send [09:35:59]OFD Sender: No OFD packet to send [09:36:04]OFD Sender: No OFD packet to send [09:36:09]OFD Sender: No OFD packet to send [09:36:14]OFD Sender: No OFD packet to send [09:36:19]OFD Sender: No OFD packet to send [09:36:24]OFD Sender: No OFD packet to send [09:36:29]OFD Sender: No OFD packet to send [09:36:34]OFD Sender: No OFD packet to send [09:36:39]OFD Sender: No OFD packet to send [09:36:44]OFD Sender: No OFD packet to send [09:36:49]OFD Sender: No OFD packet to send [09:36:54]OFD Sender: No OFD packet to send [09:36:59]OFD Sender: No OFD packet to send [09:37:04]OFD Sender: No OFD packet to send [09:37:09]OFD Sender: No OFD packet to send [09:37:14]OFD Sender: No OFD packet to send [09:37:19]OFD Sender: No OFD packet to send [09:37:24]OFD Sender: No OFD packet to send [09:37:29]OFD Sender: No OFD packet to send [09:37:34]OFD Sender: No OFD packet to send [09:37:39]OFD Sender: No OFD packet to send [09:37:44]OFD Sender: No OFD packet to send [09:37:49]OFD Sender: No OFD packet to send [09:37:54]OFD Sender: No OFD packet to send [09:37:59]OFD Sender: No OFD packet to send [09:38:04]OFD Sender: No OFD packet to send [09:38:09]OFD Sender: No OFD packet to send [09:38:14]OFD Sender: No OFD packet to send [09:38:19]OFD Sender: No OFD packet to send [09:38:24]OFD Sender: No OFD packet to send [09:38:29]OFD Sender: No OFD packet to send [09:38:34]OFD Sender: No OFD packet to send [09:38:39]OFD Sender: No OFD packet to send [09:38:44]OFD Sender: No OFD packet to send [09:38:49]OFD Sender: No OFD packet to send [09:38:54]OFD Sender: No OFD packet to send [09:38:59]OFD Sender: No OFD packet to send [09:39:04]OFD Sender: No OFD packet to send [09:39:09]OFD Sender: No OFD packet to send [09:39:14]OFD Sender: No OFD packet to send [09:39:19]OFD Sender: No OFD packet to send [09:39:24]OFD Sender: No OFD packet to send [09:39:25]accept exits with 7 [09:39:25]New connection [09:39:25]New thread 3067276644 created [09:39:25]Thread 3067133284 joined [09:39:25]Waiting for new connection... [09:39:25] Sock 7.Parse request [09:39:25]Sock 7.Check first char [09:39:25]Sock 7.First char is OK [09:39:25]request: POST /json_proto HTTP/1.0 [09:39:25]Method: POST [09:39:25]URL: /json_proto [09:39:25]Method is POST - this is cgi request [09:39:25]url: /json_proto [09:39:25]query_string will be loaded in cgi processing [09:39:25]execute_cgi json_proto POST (null) [09:39:25]execute_cgi path=json_proto method=POST [09:39:25]POST find Content-Length [09:39:25]Host: 172.17.52.3:8080 [09:39:25]Content-Length: 677 [09:39:25]Content-Type: application/json [09:39:25] [09:39:25]POST finish read [09:39:25]Found Content-Length = 677 [09:39:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:39:25]execute_script... [09:39: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)210390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:39:25]POST & json_proto [09:39:25]process_json_proto [09:39:25]json parsed OK: [09:39:25]protocol is kg_v1.0 [09:39:25]action value=close_receipt [09:39:25]process_action close_receipt [09:39:25]cmd_close_receipt [09:39:25]MH_GetDate [09:39:25]Write to MH i2c: F0 00 00 A7 29 BF [09:39:25]Write i2c OK [09:39:25]MH_I2C_Read... [09:39:25]Read from MH i2c: F0 [09:39:25]MH_I2C_Read... [09:39:25]Read from MH i2c: F0 09 00 [09:39:25]MH_I2C_Read... [09:39:25]Read from MH i2c: F0 09 00 A7 29 00 55 C4 18 67 D7 68 A5 64 A8 [09:39:25]GetLastDocTimeStamp 1729675579 [09:39:25]current date 1729676373 [09:39:25]FM_GetShiftState [09:39:25]SAM_PROTO_GetShiftState [09:39:25]wFMCommunicate request_size=4 [09:39:25]MH_SAM_APDU [09:39:25]CAPDU: 80 13 01 00 [09:39:25]Write to MH i2c: E2 08 00 A8 29 80 13 01 00 00 00 00 00 4E [09:39:25]Write i2c OK [09:39:25]MH_I2C_Read... [09:39:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:25]Read from MH i2c: E2 [09:39:25]MH_I2C_Read... [09:39:25]Read from MH i2c: E2 0E 00 [09:39:25]MH_I2C_Read... [09:39:25]Read from MH i2c: E2 0E 00 A8 29 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 BD [09:39:25]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [09:39:25]wFMCommunicate OK [09:39:25]SAM_PROTO_GetShiftState done [09:39:25]FM_GetShiftState done [09:39:25]opened in 1729641385 [09:39:25]opened+sec_in_day 1729727785 [09:39:25]quantity*price = 30038 [09:39:25]sum+1 = 30039 [09:39:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 16 23.10.2024 09:39 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68393 ФПД: 246440261754468 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T093933&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68393&fm=246440261754468&tin=02508201610067®Number=0000000000091756&sum=30000 [09:39:26]StoreToDocumentArchive [09:39:26]shift 507 fd 68393 [09:39:26]save to /storage/0507/doc_00068393 [09:39:26]save last doc name /storage/0507/doc_00068393 to /storage/kkm_last_doc_name [09:39:26]save OK [09:39:26]Clear old archive folders... [09:39:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:39:26]tlvbuf is B6F29350 [09:39:26]SAM_PROTO_ClearQueue [09:39:26]wFMCommunicate request_size=4 [09:39:26]MH_SAM_APDU [09:39:26]CAPDU: 80 09 00 00 [09:39:26]Write to MH i2c: E2 08 00 B5 29 80 09 00 00 00 00 00 00 50 [09:39:26]Write i2c OK [09:39:26]MH_I2C_Read... [09:39:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:26]Read from MH i2c: E2 [09:39:26]MH_I2C_Read... [09:39:26]Read from MH i2c: E2 03 00 [09:39:26]MH_I2C_Read... [09:39:26]Read from MH i2c: E2 03 00 B5 29 00 90 00 52 [09:39:26]RAPDU: 90 00 [09:39:26]wFMCommunicate OK [09:39:26]SAM_PROTO_ClearQueue done [09:39:26]KKMCreateOFDPacket [09:39:26]OFDProtocolAddRootSTLVToBuf [09:39:26]FM_MakeSignedData [09:39:26]FM_MakeSignedData [09:39:26]SAM_PROTO_SignData [09:39:26]wFMCommunicate request_size=4 [09:39:26]MH_SAM_APDU [09:39:26]CAPDU: 80 0D 01 02 [09:39:26]Write to MH i2c: E2 08 00 B6 29 80 0D 01 02 00 00 00 00 58 [09:39:26]Write i2c OK [09:39:26]MH_I2C_Read... [09:39:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:27]Read from MH i2c: E2 [09:39:27]MH_I2C_Read... [09:39:27]Read from MH i2c: E2 03 00 [09:39:27]MH_I2C_Read... [09:39:27]Read from MH i2c: E2 03 00 B6 29 00 90 00 53 [09:39:27]RAPDU: 90 00 [09:39:27]wFMCommunicate OK [09:39:27]wFMCommunicate request_size=255 [09:39:27]MH_SAM_APDU [09:39: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 55 C4 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 29 0B 01 00 35 04 06 00 E0 [09:39:27]Write to MH i2c: E2 02 01 B7 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 55 C4 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 29 0B 01 00 35 04 06 00 E0 00 00 95 [09:39:27]Write i2c OK [09:39:27]MH_I2C_Read... [09:39:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:27]Read from MH i2c: E2 [09:39:27]MH_I2C_Read... [09:39:27]Read from MH i2c: E2 03 00 [09:39:27]MH_I2C_Read... [09:39:27]Read from MH i2c: E2 03 00 B7 29 00 90 00 54 [09:39:27]RAPDU: 90 00 [09:39:27]wFMCommunicate OK [09:39:27]wFMCommunicate request_size=10 [09:39:27]MH_SAM_APDU [09:39:27]CAPDU: 80 0D 02 02 05 22 D8 42 9E 64 [09:39:27]Write to MH i2c: E2 0D 00 B8 29 80 0D 02 02 05 00 22 D8 42 9E 64 00 00 A3 [09:39:27]Write i2c OK [09:39:27]MH_I2C_Read... [09:39:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:27]Read from MH i2c: E2 [09:39:27]MH_I2C_Read... [09:39:27]Read from MH i2c: E2 03 00 [09:39:27]MH_I2C_Read... [09:39:27]Read from MH i2c: E2 03 00 B8 29 00 90 00 55 [09:39:27]RAPDU: 90 00 [09:39:27]wFMCommunicate OK [09:39:27]wFMCommunicate request_size=4 [09:39:27]MH_SAM_APDU [09:39:27]CAPDU: 80 0D 03 02 [09:39:27]Write to MH i2c: E2 08 00 B9 29 80 0D 03 02 00 00 00 00 5D [09:39:27]Write i2c OK [09:39:27]MH_I2C_Read... [09:39:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:27]Read from MH i2c: E2 [09:39:27]MH_I2C_Read... [09:39:27]Read from MH i2c: E2 0B 00 [09:39:27]MH_I2C_Read... [09:39:27]Read from MH i2c: E2 0B 00 B9 29 00 45 06 16 9A E7 85 80 C7 90 00 0C [09:39:27]RAPDU: 45 06 16 9A E7 85 80 C7 90 00 [09:39:27]wFMCommunicate OK [09:39:27]SAM_PROTO_SignData done [09:39:27]FM_MakeSignedData done [09:39:27]CreateOFDProtocolMessage [09:39:27]wFMCommunicate request_size=4 [09:39:27]MH_SAM_APDU [09:39:27]CAPDU: 80 11 00 00 [09:39:27]Write to MH i2c: E2 08 00 BA 29 80 11 00 00 00 00 00 00 5D [09:39:27]Write i2c OK [09:39:27]MH_I2C_Read... [09:39:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:27]Read from MH i2c: E2 [09:39:27]MH_I2C_Read... [09:39:27]Read from MH i2c: E2 17 00 [09:39:27]MH_I2C_Read... [09:39:27]Read from MH i2c: E2 17 00 BA 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 B1 [09:39:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [09:39:27]wFMCommunicate OK [09:39:27]CreateOFDProtocolMessage done [09:39:27]OFDSenderStorePacket 68393 [09:39:27]StoreOFDPacket docnum=68393 [09:39:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 E9 38 07 01 86 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 55 C4 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 29 0B 01 00 35 04 06 00 E0 22 D8 42 9E 64 45 06 16 9A E7 85 80 C7 [09:39:27]CheckFolder [09:39:27]dirname=/storage/ofd_packets [09:39:27]CheckFolder done [09:39:27]ProducePacketName [09:39:27]name=ofd_packets/00068393 [09:39:27]NVStorageSaveData ofd_packets/00068393 [09:39:27]File name is /storage/ofd_packets/00068393 [09:39:27]Write 301 bytes [09:39:27]NVStorageSaveData done [09:39:27]OFDSenderStorePacket done [09:39:27]KKMCreateOFDPacket done [09:39:27]NVStorageSaveData kkm_last_timestamp [09:39:27]File name is /storage/kkm_last_timestamp [09:39:27]Write 4 bytes [09:39:27]NVStorageSaveData done [09:39:27]ExternCall_PrintAddStr [09:39:27]wPrintStart [09:39:27]Write to MH i2c: 01 00 00 BB 29 E4 [09:39:27]Write i2c OK [09:39:27]MH_I2C_Read... [09:39:27]Read from MH i2c: 01 [09:39:27]MH_I2C_Read... [09:39:27]Read from MH i2c: 01 07 00 [09:39:27]MH_I2C_Read... [09:39:27]Read from MH i2c: 01 07 00 BB 29 00 04 00 00 00 FF 0F FD [09:39:27]RasterBufferAndPrint [09:39:27]line Счет N : (1)210390 [09:39:27]line ИНН: 02508201610067 [09:39:27]line Контрольно-Кассовый Чек [09:39:27]line ПРОДАЖА [09:39:27]line ТРК (МРК, ГНК) : 11 [09:39:27]line Товар: 2710124130 [09:39:27]line Аи-92-К-2 [09:39:27]line 4.490 * 66.90 [09:39:27]line = 300.38 [09:39:27]line НДС 12% НСП 1% [09:39:27]line > о реализуемом товаре [09:39:27]line ОКРУГЛЕНИЕ: -0.38 [09:39:27]line ИТОГО: 300.00 [09:39:27]line Внесено: 300.00 [09:39:27]line СДАЧА: 0.00 [09:39:27]line НСП 1% : 2.66 [09:39:27]line НДС 12% : 31.90 [09:39:27]line Наличными: 300.00 [09:39:27]line Безнал.: 0.00 [09:39:27]line Место: АЗС № 147 "Партнер Нефть" [09:39:27]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [09:39:27]line СНО: Общий режим [09:39:27]line Чек 16 23.10.2024 09:39 [09:39:27]line Смена: 507 ФФД: 1.0 [09:39:27]line ЗНМ: 0300000094 [09:39:27]line РНМ: 0000000000091756 [09:39:27]line Версия ККМ: 001 [09:39:27]line ФМ: 0000000000871809 [09:39:27]line ФД: 68393 [09:39:27]line ФПД: 246440261754468 [09:39:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T093933&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68393&fm=246440261754468&tin=02508201610067®Number=0000000000091756&sum=30000 [09:39:27]OFD Sender: Processing packet 68393 [packets to send 8, broken 7] [09:39:27]ProducePacketName [09:39:27]name=ofd_packets/00068393 [09:39:27]OFD Sender: To server: pG, [09:39:27]CommunicateWithHost lk.salyk.kg:30040 [09:39:27]ConnectInit lk.salyk.kg [09:39:27]written 0, free lines is 4095 [09:39:27]Connected sock=10 [09:39:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 E9 38 07 01 86 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 55 C4 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 29 0B 01 00 35 04 06 00 E0 22 D8 42 9E 64 45 06 16 9A E7 85 80 C7 [09:39:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 86 67 47 00 44 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 31 38 30 39 10 04 04 00 29 0B 01 00 F4 03 04 00 4B 6A 18 67 B6 04 01 00 00 BF 74 A9 A9 58 5D 2E D7 [09:39:28]CommunicateWithHost err = 0 [09:39:28]CheckOFDResponse [09:39:28]1017 (14) - 77093643461234 [09:39:28]1041 (16) - 0000000000871809 [09:39:28]1040 (4) - 68393 [09:39:28]1012 (4) - 23.10.2024 03:15 [09:39:28]1206 (1) - 0 [09:39:28]OFD Sender: Remove packet 68393 [09:39:28]ProducePacketName [09:39:28]name=ofd_packets/00068393 [09:39:28]NVStorageDeleteData [09:39:28]Write to MH i2c: 01 00 00 E5 29 0E [09:39:28]Write i2c OK [09:39:28]MH_I2C_Read... [09:39:28]Read from MH i2c: 01 [09:39:28]MH_I2C_Read... [09:39:28]Read from MH i2c: 01 07 00 [09:39:28]MH_I2C_Read... [09:39:28]Read from MH i2c: 01 07 00 E5 29 00 04 00 00 00 9E 0C C3 [09:39:28]RasterBufferAndPrint [09:39:28]line [09:39:28]line [09:39:28]line [09:39:28]line [09:39:28]line [09:39:28]written 0, free lines is 3235 [09:39:28]MH_Cut [09:39:28]Write to MH i2c: D1 01 00 EC 29 01 E7 [09:39:28]Write i2c OK [09:39:28]MH_I2C_Read... [09:39:28]Read from MH i2c: D1 [09:39:28]MH_I2C_Read... [09:39:28]Read from MH i2c: D1 01 00 [09:39:28]MH_I2C_Read... [09:39:28]Read from MH i2c: D1 01 00 EC 29 00 E6 [09:39:28]Write to MH i2c: 01 00 00 ED 29 16 [09:39:28]Write i2c OK [09:39:28]MH_I2C_Read... [09:39:28]OFD Sender: No OFD packet to send [09:39:29]*** Cut start [09:39:29]*** Partial cut [09:39:29]*** CUTSNS_PIN = 1 [09:39:29]*** CUTSNS_PIN = 0 [09:39:29]*** Brake cut motor [09:39:29]Read from MH i2c: 01 [09:39:29]MH_I2C_Read... [09:39:29]*** Stop cut motor [09:39:29]*** Cut end [09:39:29]Read from MH i2c: 01 07 00 [09:39:29]MH_I2C_Read... [09:39:29]Read from MH i2c: 01 07 00 ED 29 00 04 00 00 00 FF 0F 2F [09:39:29]process_action close_receipt done [09:39:29]requested_data is exist [09:39:29]produce_requested_data [09:39:29]requested_item fm.sn is exist - process it [09:39:29]wFMCommunicate request_size=4 [09:39:29]MH_SAM_APDU [09:39:29]CAPDU: 80 11 00 00 [09:39:29]Write to MH i2c: E2 08 00 EE 29 80 11 00 00 00 00 00 00 91 [09:39:29]Write i2c OK [09:39:29]MH_I2C_Read... [09:39:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:29]Read from MH i2c: E2 [09:39:29]MH_I2C_Read... [09:39:29]Read from MH i2c: E2 17 00 [09:39:29]MH_I2C_Read... [09:39:29]Read from MH i2c: E2 17 00 EE 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 E5 [09:39:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [09:39:29]wFMCommunicate OK [09:39:29]requested_item fd.num is exist - process it [09:39:29]SAM_PROTO_GetFieldsCounters [09:39:29]wFMCommunicate request_size=4 [09:39:29]MH_SAM_APDU [09:39:29]CAPDU: 80 13 00 00 [09:39:29]Write to MH i2c: E2 08 00 EF 29 80 13 00 00 00 00 00 00 94 [09:39:29]Write i2c OK [09:39:29]MH_I2C_Read... [09:39:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:29]Read from MH i2c: E2 [09:39:29]MH_I2C_Read... [09:39:29]Read from MH i2c: E2 62 00 [09:39:29]MH_I2C_Read... [09:39:29]Read from MH i2c: E2 62 00 EF 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 29 0B 01 00 0E 04 04 00 FB 01 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 1A [09:39:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 29 0B 01 00 0E 04 04 00 FB 01 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 [09:39:29]wFMCommunicate OK [09:39:29]SAM_PROTO_GetFieldsCounters done [09:39:29]requested_item shift.num is exist - process it [09:39:29]requested_item shift.opened is exist - process it [09:39:29]req_shift_opened [09:39:29]FM_GetShiftState [09:39:29]SAM_PROTO_GetShiftState [09:39:29]wFMCommunicate request_size=4 [09:39:29]MH_SAM_APDU [09:39:29]CAPDU: 80 13 01 00 [09:39:29]Write to MH i2c: E2 08 00 F0 29 80 13 01 00 00 00 00 00 96 [09:39:29]Write i2c OK [09:39:29]MH_I2C_Read... [09:39:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:29]Read from MH i2c: E2 [09:39:29]MH_I2C_Read... [09:39:29]Read from MH i2c: E2 0E 00 [09:39:29]MH_I2C_Read... [09:39:29]Read from MH i2c: E2 0E 00 F0 29 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 05 [09:39:29]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [09:39:29]wFMCommunicate OK [09:39:29]SAM_PROTO_GetShiftState done [09:39:29]FM_GetShiftState done [09:39:29]req_shift_opened done [09:39:29]requested_item shift.open_date is exist - process it [09:39:29]req_shift_open_date [09:39:29]req_shift_open_date done [09:39:29]produce_requested_data done [09:39:29]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68393,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [09:39:29]process_action_free close_receipt [09:39:29]json_value_free [09:39:29]json_value_free done [09:39:29]process_json_proto returns [09:39:29]Send response to host [09:39:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68393,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [09:39:29]free response buf [09:39:29]execute_script done [09:39:29]execute_script returns [09:39:29]free content buf [09:39:29]Sock 7.Close socket [09:39:29]Sock 7.Thread stoped [09:39:33]OFD Sender: No OFD packet to send [09:39:38]OFD Sender: No OFD packet to send [09:39:43]OFD Sender: No OFD packet to send [09:39:48]OFD Sender: No OFD packet to send [09:39:53]OFD Sender: No OFD packet to send [09:39:58]OFD Sender: No OFD packet to send [09:40:03]OFD Sender: No OFD packet to send [09:40:08]OFD Sender: No OFD packet to send [09:40:13]OFD Sender: No OFD packet to send [09:40:18]OFD Sender: No OFD packet to send [09:40:23]OFD Sender: No OFD packet to send [09:40:28]OFD Sender: No OFD packet to send [09:40:33]OFD Sender: No OFD packet to send [09:40:38]OFD Sender: No OFD packet to send [09:40:43]OFD Sender: No OFD packet to send [09:40:48]OFD Sender: No OFD packet to send [09:40:53]OFD Sender: No OFD packet to send [09:40:58]OFD Sender: No OFD packet to send [09:41:03]OFD Sender: No OFD packet to send [09:41:08]OFD Sender: No OFD packet to send [09:41:13]OFD Sender: No OFD packet to send [09:41:18]OFD Sender: No OFD packet to send [09:41:23]OFD Sender: No OFD packet to send [09:41:28]OFD Sender: No OFD packet to send [09:41:33]OFD Sender: No OFD packet to send [09:41:38]OFD Sender: No OFD packet to send [09:41:43]OFD Sender: No OFD packet to send [09:41:48]OFD Sender: No OFD packet to send [09:41:53]OFD Sender: No OFD packet to send [09:41:58]OFD Sender: No OFD packet to send [09:42:03]OFD Sender: No OFD packet to send [09:42:08]OFD Sender: No OFD packet to send [09:42:13]OFD Sender: No OFD packet to send [09:42:18]OFD Sender: No OFD packet to send [09:42:23]OFD Sender: No OFD packet to send [09:42:28]OFD Sender: No OFD packet to send [09:42:33]OFD Sender: No OFD packet to send [09:42:38]OFD Sender: No OFD packet to send [09:42:43]OFD Sender: No OFD packet to send [09:42:48]OFD Sender: No OFD packet to send [09:42:53]OFD Sender: No OFD packet to send [09:42:58]OFD Sender: No OFD packet to send [09:43:03]OFD Sender: No OFD packet to send [09:43:08]OFD Sender: No OFD packet to send [09:43:13]OFD Sender: No OFD packet to send [09:43:18]OFD Sender: No OFD packet to send [09:43:23]OFD Sender: No OFD packet to send [09:43:28]OFD Sender: No OFD packet to send [09:43:33]OFD Sender: No OFD packet to send [09:43:38]OFD Sender: No OFD packet to send [09:43:43]OFD Sender: No OFD packet to send [09:43:48]OFD Sender: No OFD packet to send [09:43:53]OFD Sender: No OFD packet to send [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: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: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:44]OFD Sender: No OFD packet to send [09:47:49]OFD Sender: No OFD packet to send [09:47:54]OFD Sender: No OFD packet to send [09:47:59]OFD Sender: No OFD packet to send [09:48:04]OFD Sender: No OFD packet to send [09:48:04]accept exits with 9 [09:48:04]New connection [09:48:04]New thread 3067133284 created [09:48:04]Thread 3067276644 joined [09:48:04]Waiting for new connection... [09:48:04] Sock 9.Parse request [09:48:04]Sock 9.Check first char [09:48:04]Sock 9.First char is OK [09:48:04]request: POST /json_proto HTTP/1.0 [09:48:04]Method: POST [09:48:04]URL: /json_proto [09:48:04]Method is POST - this is cgi request [09:48:04]url: /json_proto [09:48:04]query_string will be loaded in cgi processing [09:48:04]execute_cgi json_proto POST (null) [09:48:04]execute_cgi path=json_proto method=POST [09:48:04]POST find Content-Length [09:48:04]Host: 172.17.52.3:8080 [09:48:04]Content-Length: 682 [09:48:04]Content-Type: application/json [09:48:04] [09:48:04]POST finish read [09:48:04]Found Content-Length = 682 [09:48:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210391", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:48:04]execute_script... [09:48: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)210391", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:48:04]POST & json_proto [09:48:04]process_json_proto [09:48:04]json parsed OK: [09:48:04]protocol is kg_v1.0 [09:48:04]action value=close_receipt [09:48:04]process_action close_receipt [09:48:04]cmd_close_receipt [09:48:04]MH_GetDate [09:48:04]Write to MH i2c: F0 00 00 F1 29 09 [09:48:04]Write i2c OK [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: F0 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: F0 09 00 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: F0 09 00 F1 29 00 5C C6 18 67 D7 68 A5 64 FB [09:48:04]GetLastDocTimeStamp 1729676373 [09:48:04]current date 1729676892 [09:48:04]FM_GetShiftState [09:48:04]SAM_PROTO_GetShiftState [09:48:04]wFMCommunicate request_size=4 [09:48:04]MH_SAM_APDU [09:48:04]CAPDU: 80 13 01 00 [09:48:04]Write to MH i2c: E2 08 00 F2 29 80 13 01 00 00 00 00 00 98 [09:48:04]Write i2c OK [09:48:04]MH_I2C_Read... [09:48:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:04]Read from MH i2c: E2 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: E2 0E 00 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: E2 0E 00 F2 29 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 07 [09:48:04]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [09:48:04]wFMCommunicate OK [09:48:04]SAM_PROTO_GetShiftState done [09:48:04]FM_GetShiftState done [09:48:04]opened in 1729641385 [09:48:04]opened+sec_in_day 1729727785 [09:48:04]quantity*price = 100015 [09:48:04]sum+1 = 100017 [09:48:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 17 23.10.2024 09:48 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68394 ФПД: 260617612772478 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094812&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68394&fm=260617612772478&tin=02508201610067®Number=0000000000091756&sum=100000 [09:48:05]StoreToDocumentArchive [09:48:05]shift 507 fd 68394 [09:48:05]save to /storage/0507/doc_00068394 [09:48:05]save last doc name /storage/0507/doc_00068394 to /storage/kkm_last_doc_name [09:48:05]save OK [09:48:05]Clear old archive folders... [09:48:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:48:05]tlvbuf is 0208D2C0 [09:48:05]SAM_PROTO_ClearQueue [09:48:05]wFMCommunicate request_size=4 [09:48:05]MH_SAM_APDU [09:48:05]CAPDU: 80 09 00 00 [09:48:05]Write to MH i2c: E2 08 00 FF 29 80 09 00 00 00 00 00 00 9A [09:48:05]Write i2c OK [09:48:05]MH_I2C_Read... [09:48:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:05]Read from MH i2c: E2 [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: E2 03 00 [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: E2 03 00 FF 29 00 90 00 9C [09:48:05]RAPDU: 90 00 [09:48:05]wFMCommunicate OK [09:48:05]SAM_PROTO_ClearQueue done [09:48:05]KKMCreateOFDPacket [09:48:05]OFDProtocolAddRootSTLVToBuf [09:48:05]FM_MakeSignedData [09:48:05]FM_MakeSignedData [09:48:05]SAM_PROTO_SignData [09:48:05]wFMCommunicate request_size=4 [09:48:05]MH_SAM_APDU [09:48:05]CAPDU: 80 0D 01 02 [09:48:05]Write to MH i2c: E2 08 00 00 2A 80 0D 01 02 00 00 00 00 A3 [09:48:05]Write i2c OK [09:48:05]MH_I2C_Read... [09:48:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:05]Read from MH i2c: E2 [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: E2 03 00 [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: E2 03 00 00 2A 00 90 00 9E [09:48:05]RAPDU: 90 00 [09:48:05]wFMCommunicate OK [09:48:05]wFMCommunicate request_size=255 [09:48:05]MH_SAM_APDU [09:48: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 32 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 11 00 00 00 F4 03 04 00 5C C6 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 2A 0B 01 00 35 04 06 00 ED [09:48:05]Write to MH i2c: E2 02 01 01 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 11 00 00 00 F4 03 04 00 5C C6 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 2A 0B 01 00 35 04 06 00 ED 00 00 FE [09:48:05]Write i2c OK [09:48:05]MH_I2C_Read... [09:48:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:05]Read from MH i2c: E2 [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: E2 03 00 [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: E2 03 00 01 2A 00 90 00 9F [09:48:05]RAPDU: 90 00 [09:48:05]wFMCommunicate OK [09:48:05]wFMCommunicate request_size=10 [09:48:05]MH_SAM_APDU [09:48:05]CAPDU: 80 0D 02 02 05 07 C4 3B 44 7E [09:48:05]Write to MH i2c: E2 0D 00 02 2A 80 0D 02 02 05 00 07 C4 3B 44 7E 00 00 78 [09:48:05]Write i2c OK [09:48:05]MH_I2C_Read... [09:48:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:05]Read from MH i2c: E2 [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: E2 03 00 [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: E2 03 00 02 2A 00 90 00 A0 [09:48:05]RAPDU: 90 00 [09:48:05]wFMCommunicate OK [09:48:05]wFMCommunicate request_size=4 [09:48:05]MH_SAM_APDU [09:48:05]CAPDU: 80 0D 03 02 [09:48:05]Write to MH i2c: E2 08 00 03 2A 80 0D 03 02 00 00 00 00 A8 [09:48:05]Write i2c OK [09:48:05]MH_I2C_Read... [09:48:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:06]Read from MH i2c: E2 [09:48:06]MH_I2C_Read... [09:48:06]Read from MH i2c: E2 0B 00 [09:48:06]MH_I2C_Read... [09:48:06]Read from MH i2c: E2 0B 00 03 2A 00 77 09 C6 83 D5 11 B4 06 90 00 12 [09:48:06]RAPDU: 77 09 C6 83 D5 11 B4 06 90 00 [09:48:06]wFMCommunicate OK [09:48:06]SAM_PROTO_SignData done [09:48:06]FM_MakeSignedData done [09:48:06]CreateOFDProtocolMessage [09:48:06]wFMCommunicate request_size=4 [09:48:06]MH_SAM_APDU [09:48:06]CAPDU: 80 11 00 00 [09:48:06]Write to MH i2c: E2 08 00 04 2A 80 11 00 00 00 00 00 00 A8 [09:48:06]Write i2c OK [09:48:06]MH_I2C_Read... [09:48:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:06]Read from MH i2c: E2 [09:48:06]MH_I2C_Read... [09:48:06]Read from MH i2c: E2 17 00 [09:48:06]MH_I2C_Read... [09:48:06]Read from MH i2c: E2 17 00 04 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 FC [09:48:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [09:48:06]wFMCommunicate OK [09:48:06]CreateOFDProtocolMessage done [09:48:06]OFDSenderStorePacket 68394 [09:48:06]StoreOFDPacket docnum=68394 [09:48:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 64 91 07 01 C6 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 11 00 00 00 F4 03 04 00 5C C6 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 2A 0B 01 00 35 04 06 00 ED 07 C4 3B 44 7E 77 09 C6 83 D5 11 B4 06 [09:48:06]CheckFolder [09:48:06]dirname=/storage/ofd_packets [09:48:06]CheckFolder done [09:48:06]ProducePacketName [09:48:06]name=ofd_packets/00068394 [09:48:06]NVStorageSaveData ofd_packets/00068394 [09:48:06]File name is /storage/ofd_packets/00068394 [09:48:06]Write 301 bytes [09:48:06]NVStorageSaveData done [09:48:06]OFDSenderStorePacket done [09:48:06]KKMCreateOFDPacket done [09:48:06]NVStorageSaveData kkm_last_timestamp [09:48:06]File name is /storage/kkm_last_timestamp [09:48:06]Write 4 bytes [09:48:06]NVStorageSaveData done [09:48:06]ExternCall_PrintAddStr [09:48:06]wPrintStart [09:48:06]Write to MH i2c: 01 00 00 05 2A 2F [09:48:06]Write i2c OK [09:48:06]MH_I2C_Read... [09:48:06]Read from MH i2c: 01 [09:48:06]MH_I2C_Read... [09:48:06]Read from MH i2c: 01 07 00 [09:48:06]MH_I2C_Read... [09:48:06]Read from MH i2c: 01 07 00 05 2A 00 04 00 00 00 FF 0F 48 [09:48:06]RasterBufferAndPrint [09:48:06]line Счет N : (1)210391 [09:48:06]line ИНН: 02508201610067 [09:48:06]line Контрольно-Кассовый Чек [09:48:06]line ПРОДАЖА [09:48:06]line ТРК (МРК, ГНК) : 11 [09:48:06]line Товар: 2710124130 [09:48:06]line Аи-92-К-2 [09:48:06]line 14.950 * 66.90 [09:48:06]line = 1000.16 [09:48:06]line НДС 12% НСП 1% [09:48:06]line > о реализуемом товаре [09:48:06]line ОКРУГЛЕНИЕ: -0.16 [09:48:06]line ИТОГО: 1000.00 [09:48:06]line Внесено: 1000.00 [09:48:06]line СДАЧА: 0.00 [09:48:06]line НСП 1% : 8.85 [09:48:06]line НДС 12% : 106.21 [09:48:06]line Наличными: 1000.00 [09:48:06]line Безнал.: 0.00 [09:48:06]line Место: АЗС № 147 "Партнер Нефть" [09:48:06]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [09:48:06]line СНО: Общий режим [09:48:06]line Чек 17 23.10.2024 09:48 [09:48:06]line Смена: 507 ФФД: 1.0 [09:48:06]line ЗНМ: 0300000094 [09:48:06]line РНМ: 0000000000091756 [09:48:06]line Версия ККМ: 001 [09:48:06]line ФМ: 0000000000871809 [09:48:06]line ФД: 68394 [09:48:06]line ФПД: 260617612772478 [09:48:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094812&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68394&fm=260617612772478&tin=02508201610067®Number=0000000000091756&sum=100000 [09:48:06]written 0, free lines is 4095 [09:48:06]OFD Sender: Processing packet 68394 [packets to send 8, broken 7] [09:48:06]ProducePacketName [09:48:06]name=ofd_packets/00068394 [09:48:06]OFD Sender: To server: pG, [09:48:06]CommunicateWithHost lk.salyk.kg:30040 [09:48:06]ConnectInit lk.salyk.kg [09:48:06]Connected sock=11 [09:48:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 64 91 07 01 C6 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 11 00 00 00 F4 03 04 00 5C C6 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 2A 0B 01 00 35 04 06 00 ED 07 C4 3B 44 7E 77 09 C6 83 D5 11 B4 06 [09:48:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 12 63 47 00 79 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 2A 0B 01 00 F4 03 04 00 52 6C 18 67 B6 04 01 00 00 15 B3 4A 19 DC F4 64 9B [09:48:06]CommunicateWithHost err = 0 [09:48:06]CheckOFDResponse [09:48:06]1017 (14) - 77093643461234 [09:48:06]1041 (16) - 0000000000871809 [09:48:06]1040 (4) - 68394 [09:48:06]1012 (4) - 23.10.2024 03:24 [09:48:06]1206 (1) - 0 [09:48:06]OFD Sender: Remove packet 68394 [09:48:06]ProducePacketName [09:48:06]name=ofd_packets/00068394 [09:48:06]NVStorageDeleteData [09:48:06]Write to MH i2c: 01 00 00 2F 2A 59 [09:48:06]Write i2c OK [09:48:06]MH_I2C_Read... [09:48:06]Read from MH i2c: 01 [09:48:06]MH_I2C_Read... [09:48:06]Read from MH i2c: 01 07 00 [09:48:06]MH_I2C_Read... [09:48:06]Read from MH i2c: 01 07 00 2F 2A 00 04 00 00 00 A0 0C 10 [09:48:06]RasterBufferAndPrint [09:48:06]line [09:48:06]line [09:48:06]line [09:48:06]line [09:48:06]line [09:48:06]written 0, free lines is 3236 [09:48:06]MH_Cut [09:48:06]Write to MH i2c: D1 01 00 36 2A 01 32 [09:48:06]Write i2c OK [09:48:06]MH_I2C_Read... [09:48:06]Read from MH i2c: D1 [09:48:06]MH_I2C_Read... [09:48:06]Read from MH i2c: D1 01 00 [09:48:06]MH_I2C_Read... [09:48:06]Read from MH i2c: D1 01 00 36 2A 00 31 [09:48:06]Write to MH i2c: 01 00 00 37 2A 61 [09:48:06]Write i2c OK [09:48:06]MH_I2C_Read... [09:48:07]OFD Sender: No OFD packet to send [09:48:07]*** Cut start [09:48:07]*** Partial cut [09:48:07]*** CUTSNS_PIN = 1 [09:48:07]*** CUTSNS_PIN = 0 [09:48:08]*** Brake cut motor [09:48:08]Read from MH i2c: 01 [09:48:08]MH_I2C_Read... [09:48:08]*** Stop cut motor [09:48:08]*** Cut end [09:48:08]Read from MH i2c: 01 07 00 [09:48:08]MH_I2C_Read... [09:48:08]Read from MH i2c: 01 07 00 37 2A 00 04 00 00 00 FF 0F 7A [09:48:08]process_action close_receipt done [09:48:08]requested_data is exist [09:48:08]produce_requested_data [09:48:08]requested_item fm.sn is exist - process it [09:48:08]wFMCommunicate request_size=4 [09:48:08]MH_SAM_APDU [09:48:08]CAPDU: 80 11 00 00 [09:48:08]Write to MH i2c: E2 08 00 38 2A 80 11 00 00 00 00 00 00 DC [09:48:08]Write i2c OK [09:48:08]MH_I2C_Read... [09:48:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:08]Read from MH i2c: E2 [09:48:08]MH_I2C_Read... [09:48:08]Read from MH i2c: E2 17 00 [09:48:08]MH_I2C_Read... [09:48:08]Read from MH i2c: E2 17 00 38 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 30 [09:48:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [09:48:08]wFMCommunicate OK [09:48:08]requested_item fd.num is exist - process it [09:48:08]SAM_PROTO_GetFieldsCounters [09:48:08]wFMCommunicate request_size=4 [09:48:08]MH_SAM_APDU [09:48:08]CAPDU: 80 13 00 00 [09:48:08]Write to MH i2c: E2 08 00 39 2A 80 13 00 00 00 00 00 00 DF [09:48:08]Write i2c OK [09:48:08]MH_I2C_Read... [09:48:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:08]Read from MH i2c: E2 [09:48:08]MH_I2C_Read... [09:48:08]Read from MH i2c: E2 62 00 [09:48:08]MH_I2C_Read... [09:48:08]Read from MH i2c: E2 62 00 39 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 2A 0B 01 00 0E 04 04 00 FB 01 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 69 [09:48:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 2A 0B 01 00 0E 04 04 00 FB 01 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 [09:48:08]wFMCommunicate OK [09:48:08]SAM_PROTO_GetFieldsCounters done [09:48:08]requested_item shift.num is exist - process it [09:48:08]requested_item shift.opened is exist - process it [09:48:08]req_shift_opened [09:48:08]FM_GetShiftState [09:48:08]SAM_PROTO_GetShiftState [09:48:08]wFMCommunicate request_size=4 [09:48:08]MH_SAM_APDU [09:48:08]CAPDU: 80 13 01 00 [09:48:08]Write to MH i2c: E2 08 00 3A 2A 80 13 01 00 00 00 00 00 E1 [09:48:08]Write i2c OK [09:48:08]MH_I2C_Read... [09:48:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:08]Read from MH i2c: E2 [09:48:08]MH_I2C_Read... [09:48:08]Read from MH i2c: E2 0E 00 [09:48:08]MH_I2C_Read... [09:48:08]Read from MH i2c: E2 0E 00 3A 2A 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 50 [09:48:08]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [09:48:08]wFMCommunicate OK [09:48:08]SAM_PROTO_GetShiftState done [09:48:08]FM_GetShiftState done [09:48:08]req_shift_opened done [09:48:08]requested_item shift.open_date is exist - process it [09:48:08]req_shift_open_date [09:48:08]req_shift_open_date done [09:48:08]produce_requested_data done [09:48:08]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68394,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [09:48:08]process_action_free close_receipt [09:48:08]json_value_free [09:48:08]json_value_free done [09:48:08]process_json_proto returns [09:48:08]Send response to host [09:48:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68394,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [09:48:08]free response buf [09:48:08]execute_script done [09:48:08]execute_script returns [09:48:08]free content buf [09:48:08]Sock 9.Close socket [09:48:08]Sock 9.Thread stoped [09:48:12]OFD Sender: No OFD packet to send [09:48:17]OFD Sender: No OFD packet to send [09:48:22]OFD Sender: No OFD packet to send [09:48:27]OFD Sender: No OFD packet to send [09:48:32]OFD Sender: No OFD packet to send [09:48:37]OFD Sender: No OFD packet to send [09:48:42]OFD Sender: No OFD packet to send [09:48:47]OFD Sender: No OFD packet to send [09:48:52]OFD Sender: No OFD packet to send [09:48:57]OFD Sender: No OFD packet to send [09:49:02]OFD Sender: No OFD packet to send [09:49:07]OFD Sender: No OFD packet to send [09:49:12]OFD Sender: No OFD packet to send [09:49:17]OFD Sender: No OFD packet to send [09:49:19]accept exits with 7 [09:49:19]New connection [09:49:19]New thread 3067276644 created [09:49:19]Thread 3067133284 joined [09:49:19]Waiting for new connection... [09:49:19] Sock 7.Parse request [09:49:19]Sock 7.Check first char [09:49:19]Sock 7.First char is OK [09:49:19]request: POST /json_proto HTTP/1.0 [09:49:19]Method: POST [09:49:19]URL: /json_proto [09:49:19]Method is POST - this is cgi request [09:49:19]url: /json_proto [09:49:19]query_string will be loaded in cgi processing [09:49:19]execute_cgi json_proto POST (null) [09:49:19]execute_cgi path=json_proto method=POST [09:49:19]POST find Content-Length [09:49:19]Host: 172.17.52.3:8080 [09:49:19]Content-Length: 791 [09:49:19]Content-Type: application/json [09:49:19] [09:49:19]POST finish read [09:49:19]Found Content-Length = 791 [09:49:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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\u000A97787", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:19]execute_script... [09:49: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)210392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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\u000A97787", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:19]POST & json_proto [09:49:19]process_json_proto [09:49:19]json parsed OK: [09:49:19]protocol is kg_v1.0 [09:49:19]action value=close_receipt [09:49:19]process_action close_receipt [09:49:19]cmd_close_receipt [09:49:19]MH_GetDate [09:49:19]Write to MH i2c: F0 00 00 3B 2A 54 [09:49:19]Write i2c OK [09:49:19]MH_I2C_Read... [09:49:19]Read from MH i2c: F0 [09:49:19]MH_I2C_Read... [09:49:19]Read from MH i2c: F0 09 00 [09:49:19]MH_I2C_Read... [09:49:19]Read from MH i2c: F0 09 00 3B 2A 00 A7 C6 18 67 D7 68 A5 64 91 [09:49:19]GetLastDocTimeStamp 1729676892 [09:49:19]current date 1729676967 [09:49:19]FM_GetShiftState [09:49:19]SAM_PROTO_GetShiftState [09:49:19]wFMCommunicate request_size=4 [09:49:19]MH_SAM_APDU [09:49:19]CAPDU: 80 13 01 00 [09:49:19]Write to MH i2c: E2 08 00 3C 2A 80 13 01 00 00 00 00 00 E3 [09:49:19]Write i2c OK [09:49:19]MH_I2C_Read... [09:49:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:19]Read from MH i2c: E2 [09:49:19]MH_I2C_Read... [09:49:19]Read from MH i2c: E2 0E 00 [09:49:19]MH_I2C_Read... [09:49:19]Read from MH i2c: E2 0E 00 3C 2A 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 52 [09:49:19]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [09:49:19]wFMCommunicate OK [09:49:19]SAM_PROTO_GetShiftState done [09:49:19]FM_GetShiftState done [09:49:19]opened in 1729641385 [09:49:19]opened+sec_in_day 1729727785 [09:49:19]quantity*price = 0 [09:49:19]sum+1 = 1 [09:49:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 18 23.10.2024 09:49 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 Талоны: Топливная Карта 97787 ФМ: 0000000000871809 ФД: 68395 ФПД: 23646185343948 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094927&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68395&fm=23646185343948&tin=02508201610067®Number=0000000000091756&sum=0 [09:49:20]StoreToDocumentArchive [09:49:20]shift 507 fd 68395 [09:49:20]save to /storage/0507/doc_00068395 [09:49:20]save last doc name /storage/0507/doc_00068395 to /storage/kkm_last_doc_name [09:49:20]save OK [09:49:20]Clear old archive folders... [09:49:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:49:20]tlvbuf is 01FDDB40 [09:49:20]SAM_PROTO_ClearQueue [09:49:20]wFMCommunicate request_size=4 [09:49:20]MH_SAM_APDU [09:49:20]CAPDU: 80 09 00 00 [09:49:20]Write to MH i2c: E2 08 00 49 2A 80 09 00 00 00 00 00 00 E5 [09:49:20]Write i2c OK [09:49:20]MH_I2C_Read... [09:49:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:49:20]Read from MH i2c: E2 [09:49:20]MH_I2C_Read... [09:49:20]Read from MH i2c: E2 03 00 [09:49:20]MH_I2C_Read... [09:49:20]Read from MH i2c: E2 03 00 49 2A 00 90 00 E7 [09:49:20]RAPDU: 90 00 [09:49:20]wFMCommunicate OK [09:49:20]SAM_PROTO_ClearQueue done [09:49:20]KKMCreateOFDPacket [09:49:20]OFDProtocolAddRootSTLVToBuf [09:49:20]FM_MakeSignedData [09:49:20]FM_MakeSignedData [09:49:20]SAM_PROTO_SignData [09:49:20]wFMCommunicate request_size=4 [09:49:20]MH_SAM_APDU [09:49:20]CAPDU: 80 0D 01 02 [09:49:20]Write to MH i2c: E2 08 00 4A 2A 80 0D 01 02 00 00 00 00 ED [09:49:20]Write i2c OK [09:49:20]MH_I2C_Read... [09:49:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:49:20]Read from MH i2c: E2 [09:49:20]MH_I2C_Read... [09:49:20]Read from MH i2c: E2 03 00 [09:49:20]MH_I2C_Read... [09:49:20]Read from MH i2c: E2 03 00 4A 2A 00 90 00 E8 [09:49:20]RAPDU: 90 00 [09:49:20]wFMCommunicate OK [09:49:20]wFMCommunicate request_size=255 [09:49:20]MH_SAM_APDU [09:49:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 12 00 00 00 F4 03 04 00 A7 C6 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 2B 0B 01 00 35 04 06 00 15 [09:49:20]Write to MH i2c: E2 02 01 4B 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 12 00 00 00 F4 03 04 00 A7 C6 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 2B 0B 01 00 35 04 06 00 15 00 00 B1 [09:49:20]Write i2c OK [09:49:20]MH_I2C_Read... [09:49:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:20]Read from MH i2c: E2 [09:49:20]MH_I2C_Read... [09:49:20]Read from MH i2c: E2 03 00 [09:49:20]MH_I2C_Read... [09:49:20]Read from MH i2c: E2 03 00 4B 2A 00 90 00 E9 [09:49:20]RAPDU: 90 00 [09:49:20]wFMCommunicate OK [09:49:20]wFMCommunicate request_size=10 [09:49:20]MH_SAM_APDU [09:49:20]CAPDU: 80 0D 02 02 05 81 8E 7A 4B CC [09:49:20]Write to MH i2c: E2 0D 00 4C 2A 80 0D 02 02 05 00 81 8E 7A 4B CC 00 00 9A [09:49:20]Write i2c OK [09:49:20]MH_I2C_Read... [09:49:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:20]Read from MH i2c: E2 [09:49:20]MH_I2C_Read... [09:49:20]Read from MH i2c: E2 03 00 [09:49:20]MH_I2C_Read... [09:49:20]Read from MH i2c: E2 03 00 4C 2A 00 90 00 EA [09:49:20]RAPDU: 90 00 [09:49:20]wFMCommunicate OK [09:49:20]wFMCommunicate request_size=4 [09:49:20]MH_SAM_APDU [09:49:20]CAPDU: 80 0D 03 02 [09:49:20]Write to MH i2c: E2 08 00 4D 2A 80 0D 03 02 00 00 00 00 F2 [09:49:20]Write i2c OK [09:49:20]MH_I2C_Read... [09:49:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:49:20]Read from MH i2c: E2 [09:49:20]MH_I2C_Read... [09:49:20]Read from MH i2c: E2 0B 00 [09:49:20]MH_I2C_Read... [09:49:20]Read from MH i2c: E2 0B 00 4D 2A 00 42 9B 81 F4 D8 A5 AC EE 90 00 5C [09:49:20]RAPDU: 42 9B 81 F4 D8 A5 AC EE 90 00 [09:49:20]wFMCommunicate OK [09:49:20]SAM_PROTO_SignData done [09:49:20]FM_MakeSignedData done [09:49:20]CreateOFDProtocolMessage [09:49:20]wFMCommunicate request_size=4 [09:49:20]MH_SAM_APDU [09:49:20]CAPDU: 80 11 00 00 [09:49:20]Write to MH i2c: E2 08 00 4E 2A 80 11 00 00 00 00 00 00 F2 [09:49:20]Write i2c OK [09:49:20]MH_I2C_Read... [09:49:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:20]Read from MH i2c: E2 [09:49:20]MH_I2C_Read... [09:49:20]Read from MH i2c: E2 17 00 [09:49:20]MH_I2C_Read... [09:49:20]Read from MH i2c: E2 17 00 4E 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 46 [09:49:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [09:49:20]wFMCommunicate OK [09:49:20]CreateOFDProtocolMessage done [09:49:20]OFDSenderStorePacket 68395 [09:49:20]StoreOFDPacket docnum=68395 [09:49:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 4A 62 07 01 53 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 12 00 00 00 F4 03 04 00 A7 C6 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 2B 0B 01 00 35 04 06 00 15 81 8E 7A 4B CC 42 9B 81 F4 D8 A5 AC EE [09:49:20]CheckFolder [09:49:20]dirname=/storage/ofd_packets [09:49:20]CheckFolder done [09:49:20]ProducePacketName [09:49:20]name=ofd_packets/00068395 [09:49:20]NVStorageSaveData ofd_packets/00068395 [09:49:20]File name is /storage/ofd_packets/00068395 [09:49:20]Write 301 bytes [09:49:20]NVStorageSaveData done [09:49:20]OFDSenderStorePacket done [09:49:20]KKMCreateOFDPacket done [09:49:20]NVStorageSaveData kkm_last_timestamp [09:49:20]File name is /storage/kkm_last_timestamp [09:49:20]Write 4 bytes [09:49:20]NVStorageSaveData done [09:49:20]ExternCall_PrintAddStr [09:49:20]wPrintStart [09:49:20]Write to MH i2c: 01 00 00 4F 2A 79 [09:49:20]Write i2c OK [09:49:20]MH_I2C_Read... [09:49:20]Read from MH i2c: 01 [09:49:20]MH_I2C_Read... [09:49:20]Read from MH i2c: 01 07 00 [09:49:20]MH_I2C_Read... [09:49:20]Read from MH i2c: 01 07 00 4F 2A 00 04 00 00 00 FF 0F 92 [09:49:20]RasterBufferAndPrint [09:49:20]line Счет N : (1)210392 [09:49:20]line ИНН: 02508201610067 [09:49:20]line Контрольно-Кассовый Чек [09:49:20]line ПРОДАЖА [09:49:20]line ТРК (МРК, ГНК) : 11 [09:49:20]line Товар: 2710124130 [09:49:20]line Аи-92-К-2 [09:49:20]line 5.980 * 0.00 [09:49:20]line = 0.00 [09:49:20]line НДС 12% НСП 1% [09:49:20]line > о реализуемом товаре [09:49:20]line ИТОГО: 0.00 [09:49:20]line НСП 1% : 0.00 [09:49:20]line НДС 12% : 0.00 [09:49:20]line Наличными: 0.00 [09:49:20]line Безнал.: 0.00 [09:49:20]line Место: АЗС № 147 "Партнер Нефть" [09:49:20]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [09:49:20]line СНО: Общий режим [09:49:20]line Чек 18 23.10.2024 09:49 [09:49:20]line Смена: 507 ФФД: 1.0 [09:49:20]line ЗНМ: 0300000094 [09:49:20]line РНМ: 0000000000091756 [09:49:20]line Версия ККМ: 001 [09:49:20]line Талоны: Топливная Карта [09:49:20]line 97787 [09:49:20]line ФМ: 0000000000871809 [09:49:20]line ФД: 68395 [09:49:20]line ФПД: 23646185343948 [09:49:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094927&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68395&fm=23646185343948&tin=02508201610067®Number=0000000000091756&sum=0 [09:49:21]OFD Sender: Processing packet 68395 [packets to send 8, broken 7] [09:49:21]ProducePacketName [09:49:21]name=ofd_packets/00068395 [09:49:21]OFD Sender: To server: pG, [09:49:21]CommunicateWithHost lk.salyk.kg:30040 [09:49:21]ConnectInit lk.salyk.kg [09:49:21]written 0, free lines is 4095 [09:49:21]Connected sock=10 [09:49:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 4A 62 07 01 53 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 12 00 00 00 F4 03 04 00 A7 C6 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 2B 0B 01 00 35 04 06 00 15 81 8E 7A 4B CC 42 9B 81 F4 D8 A5 AC EE [09:49:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 EB 11 47 00 59 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 31 38 30 39 10 04 04 00 2B 0B 01 00 F4 03 04 00 9C 6C 18 67 B6 04 01 00 00 C7 90 14 13 0B E5 9F 3D [09:49:21]CommunicateWithHost err = 0 [09:49:21]CheckOFDResponse [09:49:21]1017 (14) - 77093643461234 [09:49:21]1041 (16) - 0000000000871809 [09:49:21]1040 (4) - 68395 [09:49:21]1012 (4) - 23.10.2024 03:25 [09:49:21]1206 (1) - 0 [09:49:21]OFD Sender: Remove packet 68395 [09:49:21]ProducePacketName [09:49:21]name=ofd_packets/00068395 [09:49:21]NVStorageDeleteData [09:49:21]Write to MH i2c: 01 00 00 78 2A A2 [09:49:21]Write i2c OK [09:49:21]MH_I2C_Read... [09:49:21]Read from MH i2c: 01 [09:49:21]MH_I2C_Read... [09:49:21]Read from MH i2c: 01 07 00 [09:49:21]MH_I2C_Read... [09:49:21]Read from MH i2c: 01 07 00 78 2A 00 04 00 00 00 BD 0C 76 [09:49:21]RasterBufferAndPrint [09:49:21]line [09:49:21]line [09:49:21]line [09:49:21]line [09:49:21]line [09:49:21]written 0, free lines is 3263 [09:49:21]MH_Cut [09:49:21]Write to MH i2c: D1 01 00 7F 2A 01 7B [09:49:21]Write i2c OK [09:49:21]MH_I2C_Read... [09:49:21]Read from MH i2c: D1 [09:49:21]MH_I2C_Read... [09:49:21]Read from MH i2c: D1 01 00 [09:49:21]MH_I2C_Read... [09:49:21]Read from MH i2c: D1 01 00 7F 2A 00 7A [09:49:21]Write to MH i2c: 01 00 00 80 2A AA [09:49:21]Write i2c OK [09:49:21]MH_I2C_Read... [09:49:21]OFD Sender: No OFD packet to send [09:49:22]*** Cut start [09:49:22]*** Partial cut [09:49:22]*** CUTSNS_PIN = 1 [09:49:22]*** CUTSNS_PIN = 0 [09:49:22]*** Brake cut motor [09:49:23]Read from MH i2c: 01 [09:49:23]MH_I2C_Read... [09:49:23]*** Stop cut motor [09:49:23]*** Cut end [09:49:23]Read from MH i2c: 01 07 00 [09:49:23]MH_I2C_Read... [09:49:23]Read from MH i2c: 01 07 00 80 2A 00 04 00 00 00 FF 0F C3 [09:49:23]process_action close_receipt done [09:49:23]requested_data is exist [09:49:23]produce_requested_data [09:49:23]requested_item fm.sn is exist - process it [09:49:23]wFMCommunicate request_size=4 [09:49:23]MH_SAM_APDU [09:49:23]CAPDU: 80 11 00 00 [09:49:23]Write to MH i2c: E2 08 00 81 2A 80 11 00 00 00 00 00 00 25 [09:49:23]Write i2c OK [09:49:23]MH_I2C_Read... [09:49:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:23]Read from MH i2c: E2 [09:49:23]MH_I2C_Read... [09:49:23]Read from MH i2c: E2 17 00 [09:49:23]MH_I2C_Read... [09:49:23]Read from MH i2c: E2 17 00 81 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 79 [09:49:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [09:49:23]wFMCommunicate OK [09:49:23]requested_item fd.num is exist - process it [09:49:23]SAM_PROTO_GetFieldsCounters [09:49:23]wFMCommunicate request_size=4 [09:49:23]MH_SAM_APDU [09:49:23]CAPDU: 80 13 00 00 [09:49:23]Write to MH i2c: E2 08 00 82 2A 80 13 00 00 00 00 00 00 28 [09:49:23]Write i2c OK [09:49:23]MH_I2C_Read... [09:49:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:49:23]Read from MH i2c: E2 [09:49:23]MH_I2C_Read... [09:49:23]Read from MH i2c: E2 62 00 [09:49:23]MH_I2C_Read... [09:49:23]Read from MH i2c: E2 62 00 82 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 2B 0B 01 00 0E 04 04 00 FB 01 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 B6 [09:49:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 2B 0B 01 00 0E 04 04 00 FB 01 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 [09:49:23]wFMCommunicate OK [09:49:23]SAM_PROTO_GetFieldsCounters done [09:49:23]requested_item shift.num is exist - process it [09:49:23]requested_item shift.opened is exist - process it [09:49:23]req_shift_opened [09:49:23]FM_GetShiftState [09:49:23]SAM_PROTO_GetShiftState [09:49:23]wFMCommunicate request_size=4 [09:49:23]MH_SAM_APDU [09:49:23]CAPDU: 80 13 01 00 [09:49:23]Write to MH i2c: E2 08 00 83 2A 80 13 01 00 00 00 00 00 2A [09:49:23]Write i2c OK [09:49:23]MH_I2C_Read... [09:49:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:23]Read from MH i2c: E2 [09:49:23]MH_I2C_Read... [09:49:23]Read from MH i2c: E2 0E 00 [09:49:23]MH_I2C_Read... [09:49:23]Read from MH i2c: E2 0E 00 83 2A 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 99 [09:49:23]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [09:49:23]wFMCommunicate OK [09:49:23]SAM_PROTO_GetShiftState done [09:49:23]FM_GetShiftState done [09:49:23]req_shift_opened done [09:49:23]requested_item shift.open_date is exist - process it [09:49:23]req_shift_open_date [09:49:23]req_shift_open_date done [09:49:23]produce_requested_data done [09:49:23]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68395,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [09:49:23]process_action_free close_receipt [09:49:23]json_value_free [09:49:23]json_value_free done [09:49:23]process_json_proto returns [09:49:23]Send response to host [09:49:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68395,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [09:49:23]free response buf [09:49:23]execute_script done [09:49:23]execute_script returns [09:49:23]free content buf [09:49:23]Sock 7.Close socket [09:49:23]Sock 7.Thread stoped [09:49:26]OFD Sender: No OFD packet to send [09:49:31]OFD Sender: No OFD packet to send [09:49:36]OFD Sender: No OFD packet to send [09:49:41]OFD Sender: No OFD packet to send [09:49:46]OFD Sender: No OFD packet to send [09:49:51]OFD Sender: No OFD packet to send [09:49:56]OFD Sender: No OFD packet to send [09:50:01]OFD Sender: No OFD packet to send [09:50:06]OFD Sender: No OFD packet to send [09:50:11]OFD Sender: No OFD packet to send [09:50:17]OFD Sender: No OFD packet to send [09:50:22]OFD Sender: No OFD packet to send [09:50:27]OFD Sender: No OFD packet to send [09:50:32]OFD Sender: No OFD packet to send [09:50:37]OFD Sender: No OFD packet to send [09:50:42]OFD Sender: No OFD packet to send [09:50:47]OFD Sender: No OFD packet to send [09:50:52]OFD Sender: No OFD packet to send [09:50:57]OFD Sender: No OFD packet to send [09:51:02]OFD Sender: No OFD packet to send [09:51:07]OFD Sender: No OFD packet to send [09:51:12]OFD Sender: No OFD packet to send [09:51:17]OFD Sender: No OFD packet to send [09:51:22]OFD Sender: No OFD packet to send [09:51:27]OFD Sender: No OFD packet to send [09:51:32]OFD Sender: No OFD packet to send [09:51:37]OFD Sender: No OFD packet to send [09:51:42]OFD Sender: No OFD packet to send [09:51:47]OFD Sender: No OFD packet to send [09:51:52]OFD Sender: No OFD packet to send [09:51:57]OFD Sender: No OFD packet to send [09:52:02]OFD Sender: No OFD packet to send [09:52:07]OFD Sender: No OFD packet to send [09:52:12]OFD Sender: No OFD packet to send [09:52:17]OFD Sender: No OFD packet to send [09:52:22]OFD Sender: No OFD packet to send [09:52:27]OFD Sender: No OFD packet to send [09:52:32]OFD Sender: No OFD packet to send [09:52:37]OFD Sender: No OFD packet to send [09:52:42]OFD Sender: No OFD packet to send [09:52:47]OFD Sender: No OFD packet to send [09:52:52]OFD Sender: No OFD packet to send [09:52:57]OFD Sender: No OFD packet to send [09:53:02]OFD Sender: No OFD packet to send [09:53:07]OFD Sender: No OFD packet to send [09:53:12]OFD Sender: No OFD packet to send [09:53:17]OFD Sender: No OFD packet to send [09:53:22]OFD Sender: No OFD packet to send [09:53:27]OFD Sender: No OFD packet to send [09:53:32]OFD Sender: No OFD packet to send [09:53:37]OFD Sender: No OFD packet to send [09:53:42]OFD Sender: No OFD packet to send [09:53:47]OFD Sender: No OFD packet to send [09:53:52]OFD Sender: No OFD packet to send [09:53:57]OFD Sender: No OFD packet to send [09:54:02]OFD Sender: No OFD packet to send [09:54:07]OFD Sender: No OFD packet to send [09:54:12]OFD Sender: No OFD packet to send [09:54:17]OFD Sender: No OFD packet to send [09:54:22]OFD Sender: No OFD packet to send [09:54:27]OFD Sender: No OFD packet to send [09:54:32]OFD Sender: No OFD packet to send [09:54:37]OFD Sender: No OFD packet to send [09:54:42]OFD Sender: No OFD packet to send [09:54:47]OFD Sender: No OFD packet to send [09:54:52]OFD Sender: No OFD packet to send [09:54:57]OFD Sender: No OFD packet to send [09:55:02]OFD Sender: No OFD packet to send [09:55:07]OFD Sender: No OFD packet to send [09:55:12]OFD Sender: No OFD packet to send [09:55:17]OFD Sender: No OFD packet to send [09:55:22]OFD Sender: No OFD packet to send [09:55:27]OFD Sender: No OFD packet to send [09:55:27]accept exits with 9 [09:55:27]New connection [09:55:27]New thread 3067133284 created [09:55:27]Thread 3067276644 joined [09:55:27]Waiting for new connection... [09:55:27] Sock 9.Parse request [09:55:27]Sock 9.Check first char [09:55:27]Sock 9.First char is OK [09:55:27]request: POST /json_proto HTTP/1.0 [09:55:27]Method: POST [09:55:27]URL: /json_proto [09:55:27]Method is POST - this is cgi request [09:55:27]url: /json_proto [09:55:27]query_string will be loaded in cgi processing [09:55:27]execute_cgi json_proto POST (null) [09:55:27]execute_cgi path=json_proto method=POST [09:55:27]POST find Content-Length [09:55:27]Host: 172.17.52.3:8080 [09:55:27]Content-Length: 674 [09:55:27]Content-Type: application/json [09:55:27] [09:55:27]POST finish read [09:55:27]Found Content-Length = 674 [09:55:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 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" ] } } [09:55:27]execute_script... [09:55: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)210393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 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" ] } } [09:55:27]POST & json_proto [09:55:27]process_json_proto [09:55:27]json parsed OK: [09:55:27]protocol is kg_v1.0 [09:55:27]action value=close_receipt [09:55:27]process_action close_receipt [09:55:27]cmd_close_receipt [09:55:27]MH_GetDate [09:55:27]Write to MH i2c: F0 00 00 84 2A 9D [09:55:27]Write i2c OK [09:55:27]MH_I2C_Read... [09:55:27]Read from MH i2c: F0 [09:55:27]MH_I2C_Read... [09:55:27]Read from MH i2c: F0 09 00 [09:55:27]MH_I2C_Read... [09:55:27]Read from MH i2c: F0 09 00 84 2A 00 17 C8 18 67 D7 68 A5 64 4C [09:55:27]GetLastDocTimeStamp 1729676967 [09:55:27]current date 1729677335 [09:55:27]FM_GetShiftState [09:55:27]SAM_PROTO_GetShiftState [09:55:27]wFMCommunicate request_size=4 [09:55:27]MH_SAM_APDU [09:55:27]CAPDU: 80 13 01 00 [09:55:27]Write to MH i2c: E2 08 00 85 2A 80 13 01 00 00 00 00 00 2C [09:55:27]Write i2c OK [09:55:27]MH_I2C_Read... [09:55:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:27]Read from MH i2c: E2 [09:55:27]MH_I2C_Read... [09:55:27]Read from MH i2c: E2 0E 00 [09:55:27]MH_I2C_Read... [09:55:27]Read from MH i2c: E2 0E 00 85 2A 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 9B [09:55:27]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [09:55:27]wFMCommunicate OK [09:55:27]SAM_PROTO_GetShiftState done [09:55:27]FM_GetShiftState done [09:55:27]opened in 1729641385 [09:55:27]opened+sec_in_day 1729727785 [09:55:27]quantity*price = 20040 [09:55:27]sum+1 = 20042 [09:55:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 19 23.10.2024 09:55 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68396 ФПД: 17885808628873 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095535&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68396&fm=17885808628873&tin=02508201610067®Number=0000000000091756&sum=20000 [09:55:28]StoreToDocumentArchive [09:55:28]shift 507 fd 68396 [09:55:28]save to /storage/0507/doc_00068396 [09:55:28]save last doc name /storage/0507/doc_00068396 to /storage/kkm_last_doc_name [09:55:28]save OK [09:55:28]Clear old archive folders... [09:55:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:55:28]tlvbuf is 020555F0 [09:55:28]SAM_PROTO_ClearQueue [09:55:28]wFMCommunicate request_size=4 [09:55:28]MH_SAM_APDU [09:55:28]CAPDU: 80 09 00 00 [09:55:28]Write to MH i2c: E2 08 00 92 2A 80 09 00 00 00 00 00 00 2E [09:55:28]Write i2c OK [09:55:28]MH_I2C_Read... [09:55:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:28]Read from MH i2c: E2 [09:55:28]MH_I2C_Read... [09:55:28]Read from MH i2c: E2 03 00 [09:55:28]MH_I2C_Read... [09:55:28]Read from MH i2c: E2 03 00 92 2A 00 90 00 30 [09:55:28]RAPDU: 90 00 [09:55:28]wFMCommunicate OK [09:55:28]SAM_PROTO_ClearQueue done [09:55:28]KKMCreateOFDPacket [09:55:28]OFDProtocolAddRootSTLVToBuf [09:55:28]FM_MakeSignedData [09:55:28]FM_MakeSignedData [09:55:28]SAM_PROTO_SignData [09:55:28]wFMCommunicate request_size=4 [09:55:28]MH_SAM_APDU [09:55:28]CAPDU: 80 0D 01 02 [09:55:28]Write to MH i2c: E2 08 00 93 2A 80 0D 01 02 00 00 00 00 36 [09:55:28]Write i2c OK [09:55:28]MH_I2C_Read... [09:55:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:28]Read from MH i2c: E2 [09:55:28]MH_I2C_Read... [09:55:28]Read from MH i2c: E2 03 00 [09:55:28]MH_I2C_Read... [09:55:28]Read from MH i2c: E2 03 00 93 2A 00 90 00 31 [09:55:28]RAPDU: 90 00 [09:55:28]wFMCommunicate OK [09:55:28]wFMCommunicate request_size=255 [09:55:28]MH_SAM_APDU [09:55:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 17 C8 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 2C 0B 01 00 35 04 06 00 10 44 5D 45 [09:55:28]Write to MH i2c: E2 02 01 94 2A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 17 C8 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 2C 0B 01 00 35 04 06 00 10 44 5D 45 00 00 DC [09:55:28]Write i2c OK [09:55:28]MH_I2C_Read... [09:55:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:28]Read from MH i2c: E2 [09:55:28]MH_I2C_Read... [09:55:28]Read from MH i2c: E2 03 00 [09:55:28]MH_I2C_Read... [09:55:28]Read from MH i2c: E2 03 00 94 2A 00 90 00 32 [09:55:28]RAPDU: 90 00 [09:55:28]wFMCommunicate OK [09:55:28]wFMCommunicate request_size=7 [09:55:28]MH_SAM_APDU [09:55:28]CAPDU: 80 0D 02 02 02 14 89 [09:55:28]Write to MH i2c: E2 0A 00 95 2A 80 0D 02 02 02 00 14 89 00 00 DA [09:55:28]Write i2c OK [09:55:28]MH_I2C_Read... [09:55:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:29]Read from MH i2c: E2 [09:55:29]MH_I2C_Read... [09:55:29]Read from MH i2c: E2 03 00 [09:55:29]MH_I2C_Read... [09:55:29]Read from MH i2c: E2 03 00 95 2A 00 90 00 33 [09:55:29]RAPDU: 90 00 [09:55:29]wFMCommunicate OK [09:55:29]wFMCommunicate request_size=4 [09:55:29]MH_SAM_APDU [09:55:29]CAPDU: 80 0D 03 02 [09:55:29]Write to MH i2c: E2 08 00 96 2A 80 0D 03 02 00 00 00 00 3B [09:55:29]Write i2c OK [09:55:29]MH_I2C_Read... [09:55:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:29]Read from MH i2c: E2 [09:55:29]MH_I2C_Read... [09:55:29]Read from MH i2c: E2 0B 00 [09:55:29]MH_I2C_Read... [09:55:29]Read from MH i2c: E2 0B 00 96 2A 00 59 E9 03 CA 49 CA 81 A8 90 00 87 [09:55:29]RAPDU: 59 E9 03 CA 49 CA 81 A8 90 00 [09:55:29]wFMCommunicate OK [09:55:29]SAM_PROTO_SignData done [09:55:29]FM_MakeSignedData done [09:55:29]CreateOFDProtocolMessage [09:55:29]wFMCommunicate request_size=4 [09:55:29]MH_SAM_APDU [09:55:29]CAPDU: 80 11 00 00 [09:55:29]Write to MH i2c: E2 08 00 97 2A 80 11 00 00 00 00 00 00 3B [09:55:29]Write i2c OK [09:55:29]MH_I2C_Read... [09:55:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:29]Read from MH i2c: E2 [09:55:29]MH_I2C_Read... [09:55:29]Read from MH i2c: E2 17 00 [09:55:29]MH_I2C_Read... [09:55:29]Read from MH i2c: E2 17 00 97 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 8F [09:55:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [09:55:29]wFMCommunicate OK [09:55:29]CreateOFDProtocolMessage done [09:55:29]OFDSenderStorePacket 68396 [09:55:29]StoreOFDPacket docnum=68396 [09:55:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0C 01 00 00 6A B8 04 01 21 48 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 17 C8 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 2C 0B 01 00 35 04 06 00 10 44 5D 45 14 89 59 E9 03 CA 49 CA 81 A8 [09:55:29]CheckFolder [09:55:29]dirname=/storage/ofd_packets [09:55:29]CheckFolder done [09:55:29]ProducePacketName [09:55:29]name=ofd_packets/00068396 [09:55:29]NVStorageSaveData ofd_packets/00068396 [09:55:29]File name is /storage/ofd_packets/00068396 [09:55:29]Write 298 bytes [09:55:29]NVStorageSaveData done [09:55:29]OFDSenderStorePacket done [09:55:29]KKMCreateOFDPacket done [09:55:29]NVStorageSaveData kkm_last_timestamp [09:55:29]File name is /storage/kkm_last_timestamp [09:55:29]Write 4 bytes [09:55:29]NVStorageSaveData done [09:55:29]ExternCall_PrintAddStr [09:55:29]wPrintStart [09:55:29]Write to MH i2c: 01 00 00 98 2A C2 [09:55:29]Write i2c OK [09:55:29]MH_I2C_Read... [09:55:29]Read from MH i2c: 01 [09:55:29]MH_I2C_Read... [09:55:29]Read from MH i2c: 01 07 00 [09:55:29]MH_I2C_Read... [09:55:29]Read from MH i2c: 01 07 00 98 2A 00 04 00 00 00 FF 0F DB [09:55:29]RasterBufferAndPrint [09:55:29]line Счет N : (1)210393 [09:55:29]line ИНН: 02508201610067 [09:55:29]line Контрольно-Кассовый Чек [09:55:29]line ПРОДАЖА [09:55:29]line ТРК (МРК, ГНК) : 21 [09:55:29]line Товар: 2710194210 [09:55:29]line ДТ-К-2 [09:55:29]line 2.630 * 76.20 [09:55:29]line = 200.41 [09:55:29]line НДС 12% НСП 1% [09:55:29]line > о реализуемом товаре [09:55:29]line ОКРУГЛЕНИЕ: -0.41 [09:55:29]line ИТОГО: 200.00 [09:55:29]line Внесено: 200.00 [09:55:29]line СДАЧА: 0.00 [09:55:29]line НСП 1% : 1.77 [09:55:29]line НДС 12% : 21.28 [09:55:29]line Наличными: 200.00 [09:55:29]line Безнал.: 0.00 [09:55:29]line Место: АЗС № 147 "Партнер Нефть" [09:55:29]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [09:55:29]line СНО: Общий режим [09:55:29]line Чек 19 23.10.2024 09:55 [09:55:29]line Смена: 507 ФФД: 1.0 [09:55:29]line ЗНМ: 0300000094 [09:55:29]line РНМ: 0000000000091756 [09:55:29]line Версия ККМ: 001 [09:55:29]line ФМ: 0000000000871809 [09:55:29]line ФД: 68396 [09:55:29]line ФПД: 17885808628873 [09:55:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095535&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68396&fm=17885808628873&tin=02508201610067®Number=0000000000091756&sum=20000 [09:55:29]OFD Sender: Processing packet 68396 [packets to send 8, broken 7] [09:55:29]ProducePacketName [09:55:29]name=ofd_packets/00068396 [09:55:29]OFD Sender: To server: pG, [09:55:29]CommunicateWithHost lk.salyk.kg:30040 [09:55:29]ConnectInit lk.salyk.kg [09:55:29]written 0, free lines is 4095 [09:55:29]Connected sock=10 [09:55:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0C 01 00 00 6A B8 04 01 21 48 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 17 C8 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 2C 0B 01 00 35 04 06 00 10 44 5D 45 14 89 59 E9 03 CA 49 CA 81 A8 [09:55:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 DF 38 47 00 81 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 2C 0B 01 00 F4 03 04 00 0D 6E 18 67 B6 04 01 00 00 76 1C 85 8D 54 CD CE 69 [09:55:29]CommunicateWithHost err = 0 [09:55:29]CheckOFDResponse [09:55:29]1017 (14) - 77093643461234 [09:55:29]1041 (16) - 0000000000871809 [09:55:29]1040 (4) - 68396 [09:55:29]1012 (4) - 23.10.2024 03:31 [09:55:29]1206 (1) - 0 [09:55:29]OFD Sender: Remove packet 68396 [09:55:29]ProducePacketName [09:55:29]name=ofd_packets/00068396 [09:55:29]NVStorageDeleteData [09:55:29]Write to MH i2c: 01 00 00 C2 2A EC [09:55:29]Write i2c OK [09:55:29]MH_I2C_Read... [09:55:29]Read from MH i2c: 01 [09:55:29]MH_I2C_Read... [09:55:29]Read from MH i2c: 01 07 00 [09:55:29]MH_I2C_Read... [09:55:29]Read from MH i2c: 01 07 00 C2 2A 00 04 00 00 00 9D 0C A0 [09:55:29]RasterBufferAndPrint [09:55:29]line [09:55:29]line [09:55:29]line [09:55:29]line [09:55:29]line [09:55:29]written 0, free lines is 3234 [09:55:29]MH_Cut [09:55:29]Write to MH i2c: D1 01 00 C9 2A 01 C5 [09:55:29]Write i2c OK [09:55:29]MH_I2C_Read... [09:55:29]Read from MH i2c: D1 [09:55:29]MH_I2C_Read... [09:55:29]Read from MH i2c: D1 01 00 [09:55:29]MH_I2C_Read... [09:55:29]Read from MH i2c: D1 01 00 C9 2A 00 C4 [09:55:29]Write to MH i2c: 01 00 00 CA 2A F4 [09:55:29]Write i2c OK [09:55:29]MH_I2C_Read... [09:55:30]OFD Sender: No OFD packet to send [09:55:30]*** Cut start [09:55:30]*** Partial cut [09:55:30]*** CUTSNS_PIN = 1 [09:55:30]*** CUTSNS_PIN = 0 [09:55:31]*** Brake cut motor [09:55:31]Read from MH i2c: 01 [09:55:31]MH_I2C_Read... [09:55:31]*** Stop cut motor [09:55:31]*** Cut end [09:55:31]Read from MH i2c: 01 07 00 [09:55:31]MH_I2C_Read... [09:55:31]Read from MH i2c: 01 07 00 CA 2A 00 04 00 00 00 FF 0F 0D [09:55:31]process_action close_receipt done [09:55:31]requested_data is exist [09:55:31]produce_requested_data [09:55:31]requested_item fm.sn is exist - process it [09:55:31]wFMCommunicate request_size=4 [09:55:31]MH_SAM_APDU [09:55:31]CAPDU: 80 11 00 00 [09:55:31]Write to MH i2c: E2 08 00 CB 2A 80 11 00 00 00 00 00 00 6F [09:55:31]Write i2c OK [09:55:31]MH_I2C_Read... [09:55:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:31]Read from MH i2c: E2 [09:55:31]MH_I2C_Read... [09:55:31]Read from MH i2c: E2 17 00 [09:55:31]MH_I2C_Read... [09:55:31]Read from MH i2c: E2 17 00 CB 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 C3 [09:55:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [09:55:31]wFMCommunicate OK [09:55:31]requested_item fd.num is exist - process it [09:55:31]SAM_PROTO_GetFieldsCounters [09:55:31]wFMCommunicate request_size=4 [09:55:31]MH_SAM_APDU [09:55:31]CAPDU: 80 13 00 00 [09:55:31]Write to MH i2c: E2 08 00 CC 2A 80 13 00 00 00 00 00 00 72 [09:55:31]Write i2c OK [09:55:31]MH_I2C_Read... [09:55:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:31]Read from MH i2c: E2 [09:55:31]MH_I2C_Read... [09:55:31]Read from MH i2c: E2 62 00 [09:55:31]MH_I2C_Read... [09:55:31]Read from MH i2c: E2 62 00 CC 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 2C 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [09:55:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 2C 0B 01 00 0E 04 04 00 FB 01 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 [09:55:31]wFMCommunicate OK [09:55:31]SAM_PROTO_GetFieldsCounters done [09:55:31]requested_item shift.num is exist - process it [09:55:31]requested_item shift.opened is exist - process it [09:55:31]req_shift_opened [09:55:31]FM_GetShiftState [09:55:31]SAM_PROTO_GetShiftState [09:55:31]wFMCommunicate request_size=4 [09:55:31]MH_SAM_APDU [09:55:31]CAPDU: 80 13 01 00 [09:55:31]Write to MH i2c: E2 08 00 CD 2A 80 13 01 00 00 00 00 00 74 [09:55:31]Write i2c OK [09:55:31]MH_I2C_Read... [09:55:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:31]Read from MH i2c: E2 [09:55:31]MH_I2C_Read... [09:55:31]Read from MH i2c: E2 0E 00 [09:55:31]MH_I2C_Read... [09:55:31]Read from MH i2c: E2 0E 00 CD 2A 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 E3 [09:55:31]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [09:55:31]wFMCommunicate OK [09:55:31]SAM_PROTO_GetShiftState done [09:55:31]FM_GetShiftState done [09:55:31]req_shift_opened done [09:55:31]requested_item shift.open_date is exist - process it [09:55:31]req_shift_open_date [09:55:31]req_shift_open_date done [09:55:31]produce_requested_data done [09:55:31]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68396,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [09:55:31]process_action_free close_receipt [09:55:31]json_value_free [09:55:31]json_value_free done [09:55:31]process_json_proto returns [09:55:31]Send response to host [09:55:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68396,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [09:55:31]free response buf [09:55:31]execute_script done [09:55:31]execute_script returns [09:55:31]free content buf [09:55:31]Sock 9.Close socket [09:55:31]Sock 9.Thread stoped [09:55:35]OFD Sender: No OFD packet to send [09:55:40]OFD Sender: No OFD packet to send [09:55:45]OFD Sender: No OFD packet to send [09:55:50]OFD Sender: No OFD packet to send [09:55:55]OFD Sender: No OFD packet to send [09:56:00]OFD Sender: No OFD packet to send [09:56:05]OFD Sender: No OFD packet to send [09:56:10]OFD Sender: No OFD packet to send [09:56:15]OFD Sender: No OFD packet to send [09:56:20]OFD Sender: No OFD packet to send [09:56:25]OFD Sender: No OFD packet to send [09:56:30]OFD Sender: No OFD packet to send [09:56:35]OFD Sender: No OFD packet to send [09:56:40]OFD Sender: No OFD packet to send [09:56:45]OFD Sender: No OFD packet to send [09:56:50]OFD Sender: No OFD packet to send [09:56:55]OFD Sender: No OFD packet to send [09:57:00]OFD Sender: No OFD packet to send [09:57:05]OFD Sender: No OFD packet to send [09:57:10]OFD Sender: No OFD packet to send [09:57:15]OFD Sender: No OFD packet to send [09:57:20]OFD Sender: No OFD packet to send [09:57:25]OFD Sender: No OFD packet to send [09:57:30]OFD Sender: No OFD packet to send [09:57:35]OFD Sender: No OFD packet to send [09:57:40]OFD Sender: No OFD packet to send [09:57:45]OFD Sender: No OFD packet to send [09:57:50]OFD Sender: No OFD packet to send [09:57:55]OFD Sender: No OFD packet to send [09:58:00]OFD Sender: No OFD packet to send [09:58:05]OFD Sender: No OFD packet to send [09:58:10]OFD Sender: No OFD packet to send [09:58:15]OFD Sender: No OFD packet to send [09:58:20]OFD Sender: No OFD packet to send [09:58:25]OFD Sender: No OFD packet to send [09:58:30]OFD Sender: No OFD packet to send [09:58:35]OFD Sender: No OFD packet to send [09:58:40]OFD Sender: No OFD packet to send [09:58:45]OFD Sender: No OFD packet to send [09:58:50]OFD Sender: No OFD packet to send [09:58:55]OFD Sender: No OFD packet to send [09:59:00]OFD Sender: No OFD packet to send [09:59:05]OFD Sender: No OFD packet to send [09:59:10]OFD Sender: No OFD packet to send [09:59:15]OFD Sender: No OFD packet to send [09:59:20]OFD Sender: No OFD packet to send [09:59:25]OFD Sender: No OFD packet to send [09:59:30]OFD Sender: No OFD packet to send [09:59:35]OFD Sender: No OFD packet to send [09:59:40]OFD Sender: No OFD packet to send [09:59:45]OFD Sender: No OFD packet to send [09:59:50]OFD Sender: No OFD packet to send [09:59:55]OFD Sender: No OFD packet to send [10:00:00]OFD Sender: No OFD packet to send [10:00:05]OFD Sender: No OFD packet to send [10:00:10]OFD Sender: No OFD packet to send [10:00:15]OFD Sender: No OFD packet to send [10:00:20]OFD Sender: No OFD packet to send [10:00:25]OFD Sender: No OFD packet to send [10:00:30]OFD Sender: No OFD packet to send [10:00:35]OFD Sender: No OFD packet to send [10:00:40]OFD Sender: No OFD packet to send [10:00:45]OFD Sender: No OFD packet to send [10:00:50]OFD Sender: No OFD packet to send [10:00:55]OFD Sender: No OFD packet to send [10:01:00]OFD Sender: No OFD packet to send [10:01:05]OFD Sender: No OFD packet to send [10:01:10]OFD Sender: No OFD packet to send [10:01:15]OFD Sender: No OFD packet to send [10:01:20]OFD Sender: No OFD packet to send [10:01:25]OFD Sender: No OFD packet to send [10:01:30]OFD Sender: No OFD packet to send [10:01:35]OFD Sender: No OFD packet to send [10:01:40]OFD Sender: No OFD packet to send [10:01:45]OFD Sender: No OFD packet to send [10:01:50]OFD Sender: No OFD packet to send [10:01:55]OFD Sender: No OFD packet to send [10:02:00]OFD Sender: No OFD packet to send [10:02:05]OFD Sender: No OFD packet to send [10:02:10]OFD Sender: No OFD packet to send [10:02:15]OFD Sender: No OFD packet to send [10:02:20]OFD Sender: No OFD packet to send [10:02:25]OFD Sender: No OFD packet to send [10:02:30]OFD Sender: No OFD packet to send [10:02:35]OFD Sender: No OFD packet to send [10:02:40]OFD Sender: No OFD packet to send [10:02:45]OFD Sender: No OFD packet to send [10:02:50]OFD Sender: No OFD packet to send [10:02:55]OFD Sender: No OFD packet to send [10:03:00]OFD Sender: No OFD packet to send [10:03:05]OFD Sender: No OFD packet to send [10:03:10]OFD Sender: No OFD packet to send [10:03:15]OFD Sender: No OFD packet to send [10:03:20]OFD Sender: No OFD packet to send [10:03:25]OFD Sender: No OFD packet to send [10:03:30]OFD Sender: No OFD packet to send [10:03:35]OFD Sender: No OFD packet to send [10:03:40]OFD Sender: No OFD packet to send [10:03:45]OFD Sender: No OFD packet to send [10:03:50]OFD Sender: No OFD packet to send [10:03:55]OFD Sender: No OFD packet to send [10:04:00]OFD Sender: No OFD packet to send [10:04:05]OFD Sender: No OFD packet to send [10:04:10]OFD Sender: No OFD packet to send [10:04:15]OFD Sender: No OFD packet to send [10:04:20]OFD Sender: No OFD packet to send [10:04:25]OFD Sender: No OFD packet to send [10:04:30]OFD Sender: No OFD packet to send [10:04:35]OFD Sender: No OFD packet to send [10:04:40]OFD Sender: No OFD packet to send [10:04:45]OFD Sender: No OFD packet to send [10:04:50]OFD Sender: No OFD packet to send [10:04:55]OFD Sender: No OFD packet to send [10:05:00]OFD Sender: No OFD packet to send [10:05:05]OFD Sender: No OFD packet to send [10:05:10]OFD Sender: No OFD packet to send [10:05:15]OFD Sender: No OFD packet to send [10:05:20]OFD Sender: No OFD packet to send [10:05:25]OFD Sender: No OFD packet to send [10:05:30]OFD Sender: No OFD packet to send [10:05:35]OFD Sender: No OFD packet to send [10:05:40]OFD Sender: No OFD packet to send [10:05:45]OFD Sender: No OFD packet to send [10:05:50]OFD Sender: No OFD packet to send [10:05:55]OFD Sender: No OFD packet to send [10:06:00]OFD Sender: No OFD packet to send [10:06:05]OFD Sender: No OFD packet to send [10:06:10]OFD Sender: No OFD packet to send [10:06:15]OFD Sender: No OFD packet to send [10:06:20]OFD Sender: No OFD packet to send [10:06:25]OFD Sender: No OFD packet to send [10:06:30]OFD Sender: No OFD packet to send [10:06:35]OFD Sender: No OFD packet to send [10:06:40]OFD Sender: No OFD packet to send [10:06:45]OFD Sender: No OFD packet to send [10:06:50]OFD Sender: No OFD packet to send [10:06:55]OFD Sender: No OFD packet to send [10:07:00]OFD Sender: No OFD packet to send [10:07:05]OFD Sender: No OFD packet to send [10:07:10]OFD Sender: No OFD packet to send [10:07:15]OFD Sender: No OFD packet to send [10:07:20]OFD Sender: No OFD packet to send [10:07:25]OFD Sender: No OFD packet to send [10:07:30]OFD Sender: No OFD packet to send [10:07:35]OFD Sender: No OFD packet to send [10:07:40]OFD Sender: No OFD packet to send [10:07:45]OFD Sender: No OFD packet to send [10:07:50]OFD Sender: No OFD packet to send [10:07:55]OFD Sender: No OFD packet to send [10:08:00]OFD Sender: No OFD packet to send [10:08:05]OFD Sender: No OFD packet to send [10:08:10]OFD Sender: No OFD packet to send [10:08:15]OFD Sender: No OFD packet to send [10:08:20]OFD Sender: No OFD packet to send [10:08:25]OFD Sender: No OFD packet to send [10:08:30]OFD Sender: No OFD packet to send [10:08:35]OFD Sender: No OFD packet to send [10:08:40]OFD Sender: No OFD packet to send [10:08:45]OFD Sender: No OFD packet to send [10:08:50]OFD Sender: No OFD packet to send [10:08:55]OFD Sender: No OFD packet to send [10:09:00]OFD Sender: No OFD packet to send [10:09:05]OFD Sender: No OFD packet to send [10:09:10]OFD Sender: No OFD packet to send [10:09:15]OFD Sender: No OFD packet to send [10:09:20]OFD Sender: No OFD packet to send [10:09:25]OFD Sender: No OFD packet to send [10:09:30]OFD Sender: No OFD packet to send [10:09:35]OFD Sender: No OFD packet to send [10:09:40]OFD Sender: No OFD packet to send [10:09:45]OFD Sender: No OFD packet to send [10:09:50]OFD Sender: No OFD packet to send [10:09:55]OFD Sender: No OFD packet to send [10:10:00]OFD Sender: No OFD packet to send [10:10:05]OFD Sender: No OFD packet to send [10:10:10]OFD Sender: No OFD packet to send [10:10:16]OFD Sender: No OFD packet to send [10:10:21]OFD Sender: No OFD packet to send [10:10:26]OFD Sender: No OFD packet to send [10:10:31]OFD Sender: No OFD packet to send [10:10:36]OFD Sender: No OFD packet to send [10:10:41]OFD Sender: No OFD packet to send [10:10:46]OFD Sender: No OFD packet to send [10:10:51]OFD Sender: No OFD packet to send [10:10:56]OFD Sender: No OFD packet to send [10:11:01]OFD Sender: No OFD packet to send [10:11:06]OFD Sender: No OFD packet to send [10:11:11]OFD Sender: No OFD packet to send [10:11:16]OFD Sender: No OFD packet to send [10:11:18]accept exits with 7 [10:11:18]New connection [10:11:18]New thread 3067276644 created [10:11:18]Thread 3067133284 joined [10:11:18]Waiting for new connection... [10:11:18] Sock 7.Parse request [10:11:18]Sock 7.Check first char [10:11:18]Sock 7.First char is OK [10:11:18]request: POST /json_proto HTTP/1.0 [10:11:18]Method: POST [10:11:18]URL: /json_proto [10:11:18]Method is POST - this is cgi request [10:11:18]url: /json_proto [10:11:18]query_string will be loaded in cgi processing [10:11:18]execute_cgi json_proto POST (null) [10:11:18]execute_cgi path=json_proto method=POST [10:11:18]POST find Content-Length [10:11:18]Host: 172.17.52.3:8080 [10:11:18]Content-Length: 677 [10:11:18]Content-Type: application/json [10:11:18] [10:11:18]POST finish read [10:11:18]Found Content-Length = 677 [10:11:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:11:18]execute_script... [10:11: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)210394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:11:18]POST & json_proto [10:11:18]process_json_proto [10:11:18]json parsed OK: [10:11:18]protocol is kg_v1.0 [10:11:18]action value=close_receipt [10:11:18]process_action close_receipt [10:11:18]cmd_close_receipt [10:11:18]MH_GetDate [10:11:18]Write to MH i2c: F0 00 00 CE 2A E7 [10:11:18]Write i2c OK [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: F0 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: F0 09 00 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: F0 09 00 CE 2A 00 CE CB 18 67 D7 68 A5 64 50 [10:11:18]GetLastDocTimeStamp 1729677335 [10:11:18]current date 1729678286 [10:11:18]FM_GetShiftState [10:11:18]SAM_PROTO_GetShiftState [10:11:18]wFMCommunicate request_size=4 [10:11:18]MH_SAM_APDU [10:11:18]CAPDU: 80 13 01 00 [10:11:18]Write to MH i2c: E2 08 00 CF 2A 80 13 01 00 00 00 00 00 76 [10:11:18]Write i2c OK [10:11:18]MH_I2C_Read... [10:11:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:18]Read from MH i2c: E2 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: E2 0E 00 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: E2 0E 00 CF 2A 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 E5 [10:11:18]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [10:11:18]wFMCommunicate OK [10:11:18]SAM_PROTO_GetShiftState done [10:11:18]FM_GetShiftState done [10:11:18]opened in 1729641385 [10:11:18]opened+sec_in_day 1729727785 [10:11:18]quantity*price = 50041 [10:11:18]sum+1 = 50042 [10:11:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 20 23.10.2024 10:11 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68397 ФПД: 135225142905372 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101126&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68397&fm=135225142905372&tin=02508201610067®Number=0000000000091756&sum=50000 [10:11:19]StoreToDocumentArchive [10:11:19]shift 507 fd 68397 [10:11:19]save to /storage/0507/doc_00068397 [10:11:19]save last doc name /storage/0507/doc_00068397 to /storage/kkm_last_doc_name [10:11:19]save OK [10:11:19]Clear old archive folders... [10:11:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:11:19]tlvbuf is B6DF7190 [10:11:19]SAM_PROTO_ClearQueue [10:11:19]wFMCommunicate request_size=4 [10:11:19]MH_SAM_APDU [10:11:19]CAPDU: 80 09 00 00 [10:11:19]Write to MH i2c: E2 08 00 DC 2A 80 09 00 00 00 00 00 00 78 [10:11:19]Write i2c OK [10:11:19]MH_I2C_Read... [10:11:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:19]Read from MH i2c: E2 [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: E2 03 00 [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: E2 03 00 DC 2A 00 90 00 7A [10:11:19]RAPDU: 90 00 [10:11:19]wFMCommunicate OK [10:11:19]SAM_PROTO_ClearQueue done [10:11:19]KKMCreateOFDPacket [10:11:19]OFDProtocolAddRootSTLVToBuf [10:11:19]FM_MakeSignedData [10:11:19]FM_MakeSignedData [10:11:19]SAM_PROTO_SignData [10:11:19]wFMCommunicate request_size=4 [10:11:19]MH_SAM_APDU [10:11:19]CAPDU: 80 0D 01 02 [10:11:19]Write to MH i2c: E2 08 00 DD 2A 80 0D 01 02 00 00 00 00 80 [10:11:19]Write i2c OK [10:11:19]MH_I2C_Read... [10:11:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:19]Read from MH i2c: E2 [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: E2 03 00 [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: E2 03 00 DD 2A 00 90 00 7B [10:11:19]RAPDU: 90 00 [10:11:19]wFMCommunicate OK [10:11:19]wFMCommunicate request_size=255 [10:11:19]MH_SAM_APDU [10:11: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 32 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 14 00 00 00 F4 03 04 00 CE CB 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 2D 0B 01 00 35 04 06 00 7A [10:11:19]Write to MH i2c: E2 02 01 DE 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 14 00 00 00 F4 03 04 00 CE CB 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 2D 0B 01 00 35 04 06 00 7A 00 00 EB [10:11:19]Write i2c OK [10:11:19]MH_I2C_Read... [10:11:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:19]Read from MH i2c: E2 [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: E2 03 00 [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: E2 03 00 DE 2A 00 90 00 7C [10:11:19]RAPDU: 90 00 [10:11:19]wFMCommunicate OK [10:11:19]wFMCommunicate request_size=10 [10:11:19]MH_SAM_APDU [10:11:19]CAPDU: 80 0D 02 02 05 FC 8E 9B 8A 1C [10:11:19]Write to MH i2c: E2 0D 00 DF 2A 80 0D 02 02 05 00 FC 8E 9B 8A 1C 00 00 58 [10:11:19]Write i2c OK [10:11:19]MH_I2C_Read... [10:11:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:19]Read from MH i2c: E2 [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: E2 03 00 [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: E2 03 00 DF 2A 00 90 00 7D [10:11:19]RAPDU: 90 00 [10:11:19]wFMCommunicate OK [10:11:19]wFMCommunicate request_size=4 [10:11:19]MH_SAM_APDU [10:11:19]CAPDU: 80 0D 03 02 [10:11:19]Write to MH i2c: E2 08 00 E0 2A 80 0D 03 02 00 00 00 00 85 [10:11:19]Write i2c OK [10:11:19]MH_I2C_Read... [10:11:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:20]Read from MH i2c: E2 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 0B 00 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 0B 00 E0 2A 00 96 CE FE DB 4B 02 D6 09 90 00 EF [10:11:20]RAPDU: 96 CE FE DB 4B 02 D6 09 90 00 [10:11:20]wFMCommunicate OK [10:11:20]SAM_PROTO_SignData done [10:11:20]FM_MakeSignedData done [10:11:20]CreateOFDProtocolMessage [10:11:20]wFMCommunicate request_size=4 [10:11:20]MH_SAM_APDU [10:11:20]CAPDU: 80 11 00 00 [10:11:20]Write to MH i2c: E2 08 00 E1 2A 80 11 00 00 00 00 00 00 85 [10:11:20]Write i2c OK [10:11:20]MH_I2C_Read... [10:11:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:20]Read from MH i2c: E2 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 17 00 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 17 00 E1 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 D9 [10:11:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [10:11:20]wFMCommunicate OK [10:11:20]CreateOFDProtocolMessage done [10:11:20]OFDSenderStorePacket 68397 [10:11:20]StoreOFDPacket docnum=68397 [10:11:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 99 4E 07 01 B0 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 14 00 00 00 F4 03 04 00 CE CB 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 2D 0B 01 00 35 04 06 00 7A FC 8E 9B 8A 1C 96 CE FE DB 4B 02 D6 09 [10:11:20]CheckFolder [10:11:20]dirname=/storage/ofd_packets [10:11:20]CheckFolder done [10:11:20]ProducePacketName [10:11:20]name=ofd_packets/00068397 [10:11:20]NVStorageSaveData ofd_packets/00068397 [10:11:20]File name is /storage/ofd_packets/00068397 [10:11:20]Write 301 bytes [10:11:20]NVStorageSaveData done [10:11:20]OFDSenderStorePacket done [10:11:20]KKMCreateOFDPacket done [10:11:20]NVStorageSaveData kkm_last_timestamp [10:11:20]File name is /storage/kkm_last_timestamp [10:11:20]Write 4 bytes [10:11:20]NVStorageSaveData done [10:11:20]ExternCall_PrintAddStr [10:11:20]wPrintStart [10:11:20]Write to MH i2c: 01 00 00 E2 2A 0C [10:11:20]Write i2c OK [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: 01 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: 01 07 00 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: 01 07 00 E2 2A 00 04 00 00 00 FF 0F 25 [10:11:20]RasterBufferAndPrint [10:11:20]line Счет N : (1)210394 [10:11:20]line ИНН: 02508201610067 [10:11:20]line Контрольно-Кассовый Чек [10:11:20]line ПРОДАЖА [10:11:20]line ТРК (МРК, ГНК) : 11 [10:11:20]line Товар: 2710124130 [10:11:20]line Аи-92-К-2 [10:11:20]line 7.480 * 66.90 [10:11:20]line = 500.41 [10:11:20]line НДС 12% НСП 1% [10:11:20]line > о реализуемом товаре [10:11:20]line ОКРУГЛЕНИЕ: -0.41 [10:11:20]line ИТОГО: 500.00 [10:11:20]line Внесено: 500.00 [10:11:20]line СДАЧА: 0.00 [10:11:20]line НСП 1% : 4.43 [10:11:20]line НДС 12% : 53.14 [10:11:20]line Наличными: 500.00 [10:11:20]line Безнал.: 0.00 [10:11:20]line Место: АЗС № 147 "Партнер Нефть" [10:11:20]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [10:11:20]line СНО: Общий режим [10:11:20]line Чек 20 23.10.2024 10:11 [10:11:20]line Смена: 507 ФФД: 1.0 [10:11:20]line ЗНМ: 0300000094 [10:11:20]line РНМ: 0000000000091756 [10:11:20]line Версия ККМ: 001 [10:11:20]line ФМ: 0000000000871809 [10:11:20]line ФД: 68397 [10:11:20]line ФПД: 135225142905372 [10:11:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101126&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68397&fm=135225142905372&tin=02508201610067®Number=0000000000091756&sum=50000 [10:11:20]OFD Sender: Processing packet 68397 [packets to send 8, broken 7] [10:11:20]ProducePacketName [10:11:20]name=ofd_packets/00068397 [10:11:20]OFD Sender: To server: pG, [10:11:20]CommunicateWithHost lk.salyk.kg:30040 [10:11:20]ConnectInit lk.salyk.kg [10:11:20]written 0, free lines is 4095 [10:11:20]Connected sock=10 [10:11:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 99 4E 07 01 B0 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 14 00 00 00 F4 03 04 00 CE CB 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 2D 0B 01 00 35 04 06 00 7A FC 8E 9B 8A 1C 96 CE FE DB 4B 02 D6 09 [10:11:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 44 F3 47 00 D6 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 31 38 30 39 10 04 04 00 2D 0B 01 00 F4 03 04 00 C3 71 18 67 B6 04 01 00 00 BB 50 37 8B 4A D2 2F B0 [10:11:20]CommunicateWithHost err = 0 [10:11:20]CheckOFDResponse [10:11:20]1017 (14) - 77093643461234 [10:11:20]1041 (16) - 0000000000871809 [10:11:20]1040 (4) - 68397 [10:11:20]1012 (4) - 23.10.2024 03:47 [10:11:20]1206 (1) - 0 [10:11:20]OFD Sender: Remove packet 68397 [10:11:20]ProducePacketName [10:11:20]name=ofd_packets/00068397 [10:11:20]NVStorageDeleteData [10:11:20]Write to MH i2c: 01 00 00 0C 2B 37 [10:11:20]Write i2c OK [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: 01 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: 01 07 00 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: 01 07 00 0C 2B 00 04 00 00 00 A2 0C F0 [10:11:20]RasterBufferAndPrint [10:11:20]line [10:11:20]line [10:11:20]line [10:11:20]line [10:11:20]line [10:11:20]written 0, free lines is 3238 [10:11:20]MH_Cut [10:11:20]Write to MH i2c: D1 01 00 13 2B 01 10 [10:11:20]Write i2c OK [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: D1 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: D1 01 00 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: D1 01 00 13 2B 00 0F [10:11:20]Write to MH i2c: 01 00 00 14 2B 3F [10:11:20]Write i2c OK [10:11:20]MH_I2C_Read... [10:11:21]OFD Sender: No OFD packet to send [10:11:21]*** Cut start [10:11:21]*** Partial cut [10:11:21]*** CUTSNS_PIN = 1 [10:11:21]*** CUTSNS_PIN = 0 [10:11:21]*** Brake cut motor [10:11:22]Read from MH i2c: 01 [10:11:22]MH_I2C_Read... [10:11:22]*** Stop cut motor [10:11:22]*** Cut end [10:11:22]Read from MH i2c: 01 07 00 [10:11:22]MH_I2C_Read... [10:11:22]Read from MH i2c: 01 07 00 14 2B 00 04 00 00 00 FF 0F 58 [10:11:22]process_action close_receipt done [10:11:22]requested_data is exist [10:11:22]produce_requested_data [10:11:22]requested_item fm.sn is exist - process it [10:11:22]wFMCommunicate request_size=4 [10:11:22]MH_SAM_APDU [10:11:22]CAPDU: 80 11 00 00 [10:11:22]Write to MH i2c: E2 08 00 15 2B 80 11 00 00 00 00 00 00 BA [10:11:22]Write i2c OK [10:11:22]MH_I2C_Read... [10:11:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:22]Read from MH i2c: E2 [10:11:22]MH_I2C_Read... [10:11:22]Read from MH i2c: E2 17 00 [10:11:22]MH_I2C_Read... [10:11:22]Read from MH i2c: E2 17 00 15 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 0E [10:11:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [10:11:22]wFMCommunicate OK [10:11:22]requested_item fd.num is exist - process it [10:11:22]SAM_PROTO_GetFieldsCounters [10:11:22]wFMCommunicate request_size=4 [10:11:22]MH_SAM_APDU [10:11:22]CAPDU: 80 13 00 00 [10:11:22]Write to MH i2c: E2 08 00 16 2B 80 13 00 00 00 00 00 00 BD [10:11:22]Write i2c OK [10:11:22]MH_I2C_Read... [10:11:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:22]Read from MH i2c: E2 [10:11:22]MH_I2C_Read... [10:11:22]Read from MH i2c: E2 62 00 [10:11:22]MH_I2C_Read... [10:11:22]Read from MH i2c: E2 62 00 16 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 2D 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [10:11:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 2D 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:11:22]wFMCommunicate OK [10:11:22]SAM_PROTO_GetFieldsCounters done [10:11:22]requested_item shift.num is exist - process it [10:11:22]requested_item shift.opened is exist - process it [10:11:22]req_shift_opened [10:11:22]FM_GetShiftState [10:11:22]SAM_PROTO_GetShiftState [10:11:22]wFMCommunicate request_size=4 [10:11:22]MH_SAM_APDU [10:11:22]CAPDU: 80 13 01 00 [10:11:22]Write to MH i2c: E2 08 00 17 2B 80 13 01 00 00 00 00 00 BF [10:11:22]Write i2c OK [10:11:22]MH_I2C_Read... [10:11:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:22]Read from MH i2c: E2 [10:11:22]MH_I2C_Read... [10:11:22]Read from MH i2c: E2 0E 00 [10:11:22]MH_I2C_Read... [10:11:22]Read from MH i2c: E2 0E 00 17 2B 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 2E [10:11:22]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [10:11:22]wFMCommunicate OK [10:11:22]SAM_PROTO_GetShiftState done [10:11:22]FM_GetShiftState done [10:11:22]req_shift_opened done [10:11:22]requested_item shift.open_date is exist - process it [10:11:22]req_shift_open_date [10:11:22]req_shift_open_date done [10:11:22]produce_requested_data done [10:11:22]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68397,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [10:11:22]process_action_free close_receipt [10:11:22]json_value_free [10:11:22]json_value_free done [10:11:22]process_json_proto returns [10:11:22]Send response to host [10:11:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68397,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [10:11:22]free response buf [10:11:22]execute_script done [10:11:22]execute_script returns [10:11:22]free content buf [10:11:22]Sock 7.Close socket [10:11:22]Sock 7.Thread stoped [10:11:26]OFD Sender: No OFD packet to send [10:11:31]OFD Sender: No OFD packet to send [10:11:36]OFD Sender: No OFD packet to send [10:11:41]OFD Sender: No OFD packet to send [10:11:46]OFD Sender: No OFD packet to send [10:11:51]OFD Sender: No OFD packet to send [10:11:56]OFD Sender: No OFD packet to send [10:12:01]OFD Sender: No OFD packet to send [10:12:06]OFD Sender: No OFD packet to send [10:12:11]OFD Sender: No OFD packet to send [10:12:16]OFD Sender: No OFD packet to send [10:12:21]OFD Sender: No OFD packet to send [10:12:26]OFD Sender: No OFD packet to send [10:12:31]OFD Sender: No OFD packet to send [10:12:36]OFD Sender: No OFD packet to send [10:12:41]OFD Sender: No OFD packet to send [10:12:46]OFD Sender: No OFD packet to send [10:12:51]OFD Sender: No OFD packet to send [10:12:56]OFD Sender: No OFD packet to send [10:13:01]OFD Sender: No OFD packet to send [10:13:06]OFD Sender: No OFD packet to send [10:13:11]OFD Sender: No OFD packet to send [10:13:16]OFD Sender: No OFD packet to send [10:13:21]OFD Sender: No OFD packet to send [10:13:26]OFD Sender: No OFD packet to send [10:13:31]OFD Sender: No OFD packet to send [10:13:36]OFD Sender: No OFD packet to send [10:13:41]OFD Sender: No OFD packet to send [10:13:46]OFD Sender: No OFD packet to send [10:13:51]OFD Sender: No OFD packet to send [10:13:56]OFD Sender: No OFD packet to send [10:14:01]OFD Sender: No OFD packet to send [10:14:06]OFD Sender: No OFD packet to send [10:14:11]OFD Sender: No OFD packet to send [10:14:16]OFD Sender: No OFD packet to send [10:14:21]OFD Sender: No OFD packet to send [10:14:26]OFD Sender: No OFD packet to send [10:14:31]OFD Sender: No OFD packet to send [10:14:36]OFD Sender: No OFD packet to send [10:14:41]OFD Sender: No OFD packet to send [10:14:46]OFD Sender: No OFD packet to send [10:14:51]OFD Sender: No OFD packet to send [10:14:56]OFD Sender: No OFD packet to send [10:15:01]OFD Sender: No OFD packet to send [10:15:06]OFD Sender: No OFD packet to send [10:15:09]accept exits with 9 [10:15:09]New connection [10:15:09]New thread 3067133284 created [10:15:09]Thread 3067276644 joined [10:15:09]Waiting for new connection... [10:15:09] Sock 9.Parse request [10:15:09]Sock 9.Check first char [10:15:09]Sock 9.First char is OK [10:15:09]request: POST /json_proto HTTP/1.0 [10:15:09]Method: POST [10:15:09]URL: /json_proto [10:15:09]Method is POST - this is cgi request [10:15:09]url: /json_proto [10:15:09]query_string will be loaded in cgi processing [10:15:09]execute_cgi json_proto POST (null) [10:15:09]execute_cgi path=json_proto method=POST [10:15:09]POST find Content-Length [10:15:09]Host: 172.17.52.3:8080 [10:15:09]Content-Length: 677 [10:15:09]Content-Type: application/json [10:15:09] [10:15:09]POST finish read [10:15:09]Found Content-Length = 677 [10:15:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:15:09]execute_script... [10:15: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)210395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:15:09]POST & json_proto [10:15:09]process_json_proto [10:15:09]json parsed OK: [10:15:09]protocol is kg_v1.0 [10:15:09]action value=close_receipt [10:15:09]process_action close_receipt [10:15:09]cmd_close_receipt [10:15:09]MH_GetDate [10:15:09]Write to MH i2c: F0 00 00 18 2B 32 [10:15:09]Write i2c OK [10:15:09]MH_I2C_Read... [10:15:09]Read from MH i2c: F0 [10:15:09]MH_I2C_Read... [10:15:09]Read from MH i2c: F0 09 00 [10:15:09]MH_I2C_Read... [10:15:09]Read from MH i2c: F0 09 00 18 2B 00 B5 CC 18 67 D7 68 A5 64 83 [10:15:09]GetLastDocTimeStamp 1729678286 [10:15:09]current date 1729678517 [10:15:09]FM_GetShiftState [10:15:09]SAM_PROTO_GetShiftState [10:15:09]wFMCommunicate request_size=4 [10:15:09]MH_SAM_APDU [10:15:09]CAPDU: 80 13 01 00 [10:15:09]Write to MH i2c: E2 08 00 19 2B 80 13 01 00 00 00 00 00 C1 [10:15:09]Write i2c OK [10:15:09]MH_I2C_Read... [10:15:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:09]Read from MH i2c: E2 [10:15:09]MH_I2C_Read... [10:15:09]Read from MH i2c: E2 0E 00 [10:15:09]MH_I2C_Read... [10:15:09]Read from MH i2c: E2 0E 00 19 2B 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 30 [10:15:09]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [10:15:09]wFMCommunicate OK [10:15:09]SAM_PROTO_GetShiftState done [10:15:09]FM_GetShiftState done [10:15:09]opened in 1729641385 [10:15:09]opened+sec_in_day 1729727785 [10:15:09]quantity*price = 40006 [10:15:09]sum+1 = 40007 [10:15:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 21 23.10.2024 10:15 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68398 ФПД: 169689240662345 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101517&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68398&fm=169689240662345&tin=02508201610067®Number=0000000000091756&sum=40000 [10:15:10]StoreToDocumentArchive [10:15:10]shift 507 fd 68398 [10:15:10]save to /storage/0507/doc_00068398 [10:15:10]save last doc name /storage/0507/doc_00068398 to /storage/kkm_last_doc_name [10:15:10]save OK [10:15:10]Clear old archive folders... [10:15:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:15:10]tlvbuf is B6FA4010 [10:15:10]SAM_PROTO_ClearQueue [10:15:10]wFMCommunicate request_size=4 [10:15:10]MH_SAM_APDU [10:15:10]CAPDU: 80 09 00 00 [10:15:10]Write to MH i2c: E2 08 00 26 2B 80 09 00 00 00 00 00 00 C3 [10:15:10]Write i2c OK [10:15:10]MH_I2C_Read... [10:15:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:10]Read from MH i2c: E2 [10:15:10]MH_I2C_Read... [10:15:10]Read from MH i2c: E2 03 00 [10:15:10]MH_I2C_Read... [10:15:10]Read from MH i2c: E2 03 00 26 2B 00 90 00 C5 [10:15:10]RAPDU: 90 00 [10:15:10]wFMCommunicate OK [10:15:10]SAM_PROTO_ClearQueue done [10:15:10]KKMCreateOFDPacket [10:15:10]OFDProtocolAddRootSTLVToBuf [10:15:10]FM_MakeSignedData [10:15:10]FM_MakeSignedData [10:15:10]SAM_PROTO_SignData [10:15:10]wFMCommunicate request_size=4 [10:15:10]MH_SAM_APDU [10:15:10]CAPDU: 80 0D 01 02 [10:15:10]Write to MH i2c: E2 08 00 27 2B 80 0D 01 02 00 00 00 00 CB [10:15:10]Write i2c OK [10:15:10]MH_I2C_Read... [10:15:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:10]Read from MH i2c: E2 [10:15:10]MH_I2C_Read... [10:15:10]Read from MH i2c: E2 03 00 [10:15:10]MH_I2C_Read... [10:15:10]Read from MH i2c: E2 03 00 27 2B 00 90 00 C6 [10:15:10]RAPDU: 90 00 [10:15:10]wFMCommunicate OK [10:15:10]wFMCommunicate request_size=255 [10:15:10]MH_SAM_APDU [10:15: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 32 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 15 00 00 00 F4 03 04 00 B5 CC 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 2E 0B 01 00 35 04 06 00 9A [10:15:10]Write to MH i2c: E2 02 01 28 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 15 00 00 00 F4 03 04 00 B5 CC 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 2E 0B 01 00 35 04 06 00 9A 00 00 0F [10:15:10]Write i2c OK [10:15:10]MH_I2C_Read... [10:15:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:11]Read from MH i2c: E2 [10:15:11]MH_I2C_Read... [10:15:11]Read from MH i2c: E2 03 00 [10:15:11]MH_I2C_Read... [10:15:11]Read from MH i2c: E2 03 00 28 2B 00 90 00 C7 [10:15:11]RAPDU: 90 00 [10:15:11]wFMCommunicate OK [10:15:11]wFMCommunicate request_size=10 [10:15:11]MH_SAM_APDU [10:15:11]CAPDU: 80 0D 02 02 05 54 DA E9 71 49 [10:15:11]Write to MH i2c: E2 0D 00 29 2B 80 0D 02 02 05 00 54 DA E9 71 49 00 00 A9 [10:15:11]Write i2c OK [10:15:11]MH_I2C_Read... [10:15:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:11]Read from MH i2c: E2 [10:15:11]MH_I2C_Read... [10:15:11]Read from MH i2c: E2 03 00 [10:15:11]MH_I2C_Read... [10:15:11]Read from MH i2c: E2 03 00 29 2B 00 90 00 C8 [10:15:11]RAPDU: 90 00 [10:15:11]wFMCommunicate OK [10:15:11]wFMCommunicate request_size=4 [10:15:11]MH_SAM_APDU [10:15:11]CAPDU: 80 0D 03 02 [10:15:11]Write to MH i2c: E2 08 00 2A 2B 80 0D 03 02 00 00 00 00 D0 [10:15:11]Write i2c OK [10:15:11]MH_I2C_Read... [10:15:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:11]Read from MH i2c: E2 [10:15:11]MH_I2C_Read... [10:15:11]Read from MH i2c: E2 0B 00 [10:15:11]MH_I2C_Read... [10:15:11]Read from MH i2c: E2 0B 00 2A 2B 00 A2 B4 5D 83 30 88 DA 6A 90 00 03 [10:15:11]RAPDU: A2 B4 5D 83 30 88 DA 6A 90 00 [10:15:11]wFMCommunicate OK [10:15:11]SAM_PROTO_SignData done [10:15:11]FM_MakeSignedData done [10:15:11]CreateOFDProtocolMessage [10:15:11]wFMCommunicate request_size=4 [10:15:11]MH_SAM_APDU [10:15:11]CAPDU: 80 11 00 00 [10:15:11]Write to MH i2c: E2 08 00 2B 2B 80 11 00 00 00 00 00 00 D0 [10:15:11]Write i2c OK [10:15:11]MH_I2C_Read... [10:15:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:11]Read from MH i2c: E2 [10:15:11]MH_I2C_Read... [10:15:11]Read from MH i2c: E2 17 00 [10:15:11]MH_I2C_Read... [10:15:11]Read from MH i2c: E2 17 00 2B 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 24 [10:15:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [10:15:11]wFMCommunicate OK [10:15:11]CreateOFDProtocolMessage done [10:15:11]OFDSenderStorePacket 68398 [10:15:11]StoreOFDPacket docnum=68398 [10:15:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 96 D1 07 01 F7 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 15 00 00 00 F4 03 04 00 B5 CC 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 2E 0B 01 00 35 04 06 00 9A 54 DA E9 71 49 A2 B4 5D 83 30 88 DA 6A [10:15:11]CheckFolder [10:15:11]dirname=/storage/ofd_packets [10:15:11]CheckFolder done [10:15:11]ProducePacketName [10:15:11]name=ofd_packets/00068398 [10:15:11]NVStorageSaveData ofd_packets/00068398 [10:15:11]File name is /storage/ofd_packets/00068398 [10:15:11]Write 301 bytes [10:15:11]NVStorageSaveData done [10:15:11]OFDSenderStorePacket done [10:15:11]KKMCreateOFDPacket done [10:15:11]NVStorageSaveData kkm_last_timestamp [10:15:11]File name is /storage/kkm_last_timestamp [10:15:11]Write 4 bytes [10:15:11]NVStorageSaveData done [10:15:11]ExternCall_PrintAddStr [10:15:11]wPrintStart [10:15:11]Write to MH i2c: 01 00 00 2C 2B 57 [10:15:11]Write i2c OK [10:15:11]MH_I2C_Read... [10:15:11]Read from MH i2c: 01 [10:15:11]MH_I2C_Read... [10:15:11]Read from MH i2c: 01 07 00 [10:15:11]MH_I2C_Read... [10:15:11]Read from MH i2c: 01 07 00 2C 2B 00 04 00 00 00 FF 0F 70 [10:15:11]RasterBufferAndPrint [10:15:11]line Счет N : (1)210395 [10:15:11]line ИНН: 02508201610067 [10:15:11]line Контрольно-Кассовый Чек [10:15:11]line ПРОДАЖА [10:15:11]line ТРК (МРК, ГНК) : 11 [10:15:11]line Товар: 2710124130 [10:15:11]line Аи-92-К-2 [10:15:11]line 5.980 * 66.90 [10:15:11]line = 400.06 [10:15:11]line НДС 12% НСП 1% [10:15:11]line > о реализуемом товаре [10:15:11]line ОКРУГЛЕНИЕ: -0.06 [10:15:11]line ИТОГО: 400.00 [10:15:11]line Внесено: 400.00 [10:15:11]line СДАЧА: 0.00 [10:15:11]line НСП 1% : 3.54 [10:15:11]line НДС 12% : 42.48 [10:15:11]line Наличными: 400.00 [10:15:11]line Безнал.: 0.00 [10:15:11]line Место: АЗС № 147 "Партнер Нефть" [10:15:11]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [10:15:11]line СНО: Общий режим [10:15:11]line Чек 21 23.10.2024 10:15 [10:15:11]line Смена: 507 ФФД: 1.0 [10:15:11]line ЗНМ: 0300000094 [10:15:11]line РНМ: 0000000000091756 [10:15:11]line Версия ККМ: 001 [10:15:11]line ФМ: 0000000000871809 [10:15:11]line ФД: 68398 [10:15:11]line ФПД: 169689240662345 [10:15:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101517&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68398&fm=169689240662345&tin=02508201610067®Number=0000000000091756&sum=40000 [10:15:11]written 0, free lines is 4095 [10:15:11]OFD Sender: Processing packet 68398 [packets to send 8, broken 7] [10:15:11]ProducePacketName [10:15:11]name=ofd_packets/00068398 [10:15:11]OFD Sender: To server: pG, [10:15:11]CommunicateWithHost lk.salyk.kg:30040 [10:15:11]ConnectInit lk.salyk.kg [10:15:11]Write to MH i2c: 01 00 00 56 2B 81 [10:15:11]Write i2c OK [10:15:11]MH_I2C_Read... [10:15:11]Read from MH i2c: 01 [10:15:11]MH_I2C_Read... [10:15:11]Read from MH i2c: 01 07 00 [10:15:11]MH_I2C_Read... [10:15:11]Connected sock=10 [10:15:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 96 D1 07 01 F7 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 15 00 00 00 F4 03 04 00 B5 CC 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 2E 0B 01 00 35 04 06 00 9A 54 DA E9 71 49 A2 B4 5D 83 30 88 DA 6A [10:15:11]Read from MH i2c: 01 07 00 56 2B 00 04 00 00 00 9E 0C 36 [10:15:11]RasterBufferAndPrint [10:15:11]line [10:15:11]line [10:15:11]line [10:15:11]line [10:15:11]line [10:15:11]written 0, free lines is 3255 [10:15:11]MH_Cut [10:15:11]Write to MH i2c: D1 01 00 5D 2B 01 5A [10:15:11]Write i2c OK [10:15:11]MH_I2C_Read... [10:15:11]Read from MH i2c: D1 [10:15:11]MH_I2C_Read... [10:15:11]Read from MH i2c: D1 01 00 [10:15:11]MH_I2C_Read... [10:15:11]Read from MH i2c: D1 01 00 5D 2B 00 59 [10:15:11]Write to MH i2c: 01 00 00 5E 2B 89 [10:15:11]Write i2c OK [10:15:11]MH_I2C_Read... [10:15:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 68 73 47 00 AB 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 31 38 30 39 10 04 04 00 2E 0B 01 00 F4 03 04 00 AB 72 18 67 B6 04 01 00 00 93 36 96 A5 6A 85 12 CD [10:15:11]CommunicateWithHost err = 0 [10:15:11]CheckOFDResponse [10:15:11]1017 (14) - 77093643461234 [10:15:11]1041 (16) - 0000000000871809 [10:15:11]1040 (4) - 68398 [10:15:11]1012 (4) - 23.10.2024 03:51 [10:15:11]1206 (1) - 0 [10:15:11]OFD Sender: Remove packet 68398 [10:15:11]ProducePacketName [10:15:11]name=ofd_packets/00068398 [10:15:11]NVStorageDeleteData [10:15:12]OFD Sender: No OFD packet to send [10:15:12]*** Cut start [10:15:12]*** Partial cut [10:15:12]*** CUTSNS_PIN = 1 [10:15:12]*** CUTSNS_PIN = 0 [10:15:12]*** Brake cut motor [10:15:13]Read from MH i2c: 01 [10:15:13]MH_I2C_Read... [10:15:13]*** Stop cut motor [10:15:13]*** Cut end [10:15:13]Read from MH i2c: 01 07 00 [10:15:13]MH_I2C_Read... [10:15:13]Read from MH i2c: 01 07 00 5E 2B 00 04 00 00 00 FF 0F A2 [10:15:13]process_action close_receipt done [10:15:13]requested_data is exist [10:15:13]produce_requested_data [10:15:13]requested_item fm.sn is exist - process it [10:15:13]wFMCommunicate request_size=4 [10:15:13]MH_SAM_APDU [10:15:13]CAPDU: 80 11 00 00 [10:15:13]Write to MH i2c: E2 08 00 5F 2B 80 11 00 00 00 00 00 00 04 [10:15:13]Write i2c OK [10:15:13]MH_I2C_Read... [10:15:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:13]Read from MH i2c: E2 [10:15:13]MH_I2C_Read... [10:15:13]Read from MH i2c: E2 17 00 [10:15:13]MH_I2C_Read... [10:15:13]Read from MH i2c: E2 17 00 5F 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 58 [10:15:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [10:15:13]wFMCommunicate OK [10:15:13]requested_item fd.num is exist - process it [10:15:13]SAM_PROTO_GetFieldsCounters [10:15:13]wFMCommunicate request_size=4 [10:15:13]MH_SAM_APDU [10:15:13]CAPDU: 80 13 00 00 [10:15:13]Write to MH i2c: E2 08 00 60 2B 80 13 00 00 00 00 00 00 07 [10:15:13]Write i2c OK [10:15:13]MH_I2C_Read... [10:15:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:13]Read from MH i2c: E2 [10:15:13]MH_I2C_Read... [10:15:13]Read from MH i2c: E2 62 00 [10:15:13]MH_I2C_Read... [10:15:13]Read from MH i2c: E2 62 00 60 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 2E 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [10:15:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 2E 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:15:13]wFMCommunicate OK [10:15:13]SAM_PROTO_GetFieldsCounters done [10:15:13]requested_item shift.num is exist - process it [10:15:13]requested_item shift.opened is exist - process it [10:15:13]req_shift_opened [10:15:13]FM_GetShiftState [10:15:13]SAM_PROTO_GetShiftState [10:15:13]wFMCommunicate request_size=4 [10:15:13]MH_SAM_APDU [10:15:13]CAPDU: 80 13 01 00 [10:15:13]Write to MH i2c: E2 08 00 61 2B 80 13 01 00 00 00 00 00 09 [10:15:13]Write i2c OK [10:15:13]MH_I2C_Read... [10:15:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:13]Read from MH i2c: E2 [10:15:13]MH_I2C_Read... [10:15:13]Read from MH i2c: E2 0E 00 [10:15:13]MH_I2C_Read... [10:15:13]Read from MH i2c: E2 0E 00 61 2B 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 78 [10:15:13]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [10:15:13]wFMCommunicate OK [10:15:13]SAM_PROTO_GetShiftState done [10:15:13]FM_GetShiftState done [10:15:13]req_shift_opened done [10:15:13]requested_item shift.open_date is exist - process it [10:15:13]req_shift_open_date [10:15:13]req_shift_open_date done [10:15:13]produce_requested_data done [10:15:13]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68398,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [10:15:13]process_action_free close_receipt [10:15:13]json_value_free [10:15:13]json_value_free done [10:15:13]process_json_proto returns [10:15:13]Send response to host [10:15:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68398,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [10:15:13]free response buf [10:15:13]execute_script done [10:15:13]execute_script returns [10:15:13]free content buf [10:15:13]Sock 9.Close socket [10:15:13]Sock 9.Thread stoped [10:15:17]OFD Sender: No OFD packet to send [10:15:22]OFD Sender: No OFD packet to send [10:15:27]OFD Sender: No OFD packet to send [10:15:32]OFD Sender: No OFD packet to send [10:15:37]OFD Sender: No OFD packet to send [10:15:42]OFD Sender: No OFD packet to send [10:15:47]OFD Sender: No OFD packet to send [10:15:52]OFD Sender: No OFD packet to send [10:15:57]OFD Sender: No OFD packet to send [10:16:02]OFD Sender: No OFD packet to send [10:16:07]OFD Sender: No OFD packet to send [10:16:12]OFD Sender: No OFD packet to send [10:16:17]OFD Sender: No OFD packet to send [10:16:22]OFD Sender: No OFD packet to send [10:16:27]OFD Sender: No OFD packet to send [10:16:32]OFD Sender: No OFD packet to send [10:16:37]OFD Sender: No OFD packet to send [10:16:42]OFD Sender: No OFD packet to send [10:16:47]OFD Sender: No OFD packet to send [10:16:52]OFD Sender: No OFD packet to send [10:16:57]OFD Sender: No OFD packet to send [10:17:02]OFD Sender: No OFD packet to send [10:17:07]OFD Sender: No OFD packet to send [10:17:12]OFD Sender: No OFD packet to send [10:17:17]OFD Sender: No OFD packet to send [10:17:22]OFD Sender: No OFD packet to send [10:17:27]OFD Sender: No OFD packet to send [10:17:32]OFD Sender: No OFD packet to send [10:17:37]OFD Sender: No OFD packet to send [10:17:42]OFD Sender: No OFD packet to send [10:17:47]OFD Sender: No OFD packet to send [10:17:52]OFD Sender: No OFD packet to send [10:17:57]OFD Sender: No OFD packet to send [10:18:02]OFD Sender: No OFD packet to send [10:18:07]OFD Sender: No OFD packet to send [10:18:12]OFD Sender: No OFD packet to send [10:18:17]OFD Sender: No OFD packet to send [10:18:22]OFD Sender: No OFD packet to send [10:18:27]OFD Sender: No OFD packet to send [10:18:32]OFD Sender: No OFD packet to send [10:18:37]OFD Sender: No OFD packet to send [10:18:42]OFD Sender: No OFD packet to send [10:18:47]OFD Sender: No OFD packet to send [10:18:52]OFD Sender: No OFD packet to send [10:18:57]OFD Sender: No OFD packet to send [10:19:02]OFD Sender: No OFD packet to send [10:19:07]OFD Sender: No OFD packet to send [10:19:12]OFD Sender: No OFD packet to send [10:19:17]OFD Sender: No OFD packet to send [10:19:22]OFD Sender: No OFD packet to send [10:19:27]accept exits with 7 [10:19:27]New connection [10:19:27]New thread 3067276644 created [10:19:27]Thread 3067133284 joined [10:19:27]Waiting for new connection... [10:19:27] Sock 7.Parse request [10:19:27]Sock 7.Check first char [10:19:27]Sock 7.First char is OK [10:19:27]request: POST /json_proto HTTP/1.0 [10:19:27]Method: POST [10:19:27]URL: /json_proto [10:19:27]Method is POST - this is cgi request [10:19:27]url: /json_proto [10:19:27]query_string will be loaded in cgi processing [10:19:27]execute_cgi json_proto POST (null) [10:19:27]execute_cgi path=json_proto method=POST [10:19:27]POST find Content-Length [10:19:27]Host: 172.17.52.3:8080 [10:19:27]Content-Length: 677 [10:19:27]Content-Type: application/json [10:19:27] [10:19:27]POST finish read [10:19:27]Found Content-Length = 677 [10:19:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:19:27]execute_script... [10:19: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)210396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:19:27]POST & json_proto [10:19:27]process_json_proto [10:19:27]json parsed OK: [10:19:27]protocol is kg_v1.0 [10:19:27]action value=close_receipt [10:19:27]process_action close_receipt [10:19:27]cmd_close_receipt [10:19:27]MH_GetDate [10:19:27]Write to MH i2c: F0 00 00 62 2B 7C [10:19:27]Write i2c OK [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: F0 [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: F0 09 00 [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: F0 09 00 62 2B 00 B7 CD 18 67 D7 68 A5 64 D0 [10:19:27]GetLastDocTimeStamp 1729678517 [10:19:27]current date 1729678775 [10:19:27]FM_GetShiftState [10:19:27]SAM_PROTO_GetShiftState [10:19:27]wFMCommunicate request_size=4 [10:19:27]MH_SAM_APDU [10:19:27]CAPDU: 80 13 01 00 [10:19:27]Write to MH i2c: E2 08 00 63 2B 80 13 01 00 00 00 00 00 0B [10:19:27]Write i2c OK [10:19:27]MH_I2C_Read... [10:19:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:27]Read from MH i2c: E2 [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: E2 0E 00 [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: E2 0E 00 63 2B 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 7A [10:19:27]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [10:19:27]wFMCommunicate OK [10:19:27]SAM_PROTO_GetShiftState done [10:19:27]FM_GetShiftState done [10:19:27]opened in 1729641385 [10:19:27]opened+sec_in_day 1729727785 [10:19:27]quantity*price = 50041 [10:19:27]sum+1 = 50042 [10:19:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 22 23.10.2024 10:19 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68399 ФПД: 3248958013725 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101935&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68399&fm=3248958013725&tin=02508201610067®Number=0000000000091756&sum=50000 [10:19:28]StoreToDocumentArchive [10:19:28]shift 507 fd 68399 [10:19:28]save to /storage/0507/doc_00068399 [10:19:28]save last doc name /storage/0507/doc_00068399 to /storage/kkm_last_doc_name [10:19:28]save OK [10:19:28]Clear old archive folders... [10:19:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:19:28]tlvbuf is 0206F460 [10:19:28]SAM_PROTO_ClearQueue [10:19:28]wFMCommunicate request_size=4 [10:19:28]MH_SAM_APDU [10:19:28]CAPDU: 80 09 00 00 [10:19:28]Write to MH i2c: E2 08 00 70 2B 80 09 00 00 00 00 00 00 0D [10:19:28]Write i2c OK [10:19:28]MH_I2C_Read... [10:19:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:28]Read from MH i2c: E2 [10:19:28]MH_I2C_Read... [10:19:28]Read from MH i2c: E2 03 00 [10:19:28]MH_I2C_Read... [10:19:28]Read from MH i2c: E2 03 00 70 2B 00 90 00 0F [10:19:28]RAPDU: 90 00 [10:19:28]wFMCommunicate OK [10:19:28]SAM_PROTO_ClearQueue done [10:19:28]KKMCreateOFDPacket [10:19:28]OFDProtocolAddRootSTLVToBuf [10:19:28]FM_MakeSignedData [10:19:28]FM_MakeSignedData [10:19:28]SAM_PROTO_SignData [10:19:28]wFMCommunicate request_size=4 [10:19:28]MH_SAM_APDU [10:19:28]CAPDU: 80 0D 01 02 [10:19:28]Write to MH i2c: E2 08 00 71 2B 80 0D 01 02 00 00 00 00 15 [10:19:28]Write i2c OK [10:19:28]MH_I2C_Read... [10:19:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:28]Read from MH i2c: E2 [10:19:28]MH_I2C_Read... [10:19:28]Read from MH i2c: E2 03 00 [10:19:28]MH_I2C_Read... [10:19:28]Read from MH i2c: E2 03 00 71 2B 00 90 00 10 [10:19:28]RAPDU: 90 00 [10:19:28]wFMCommunicate OK [10:19:28]wFMCommunicate request_size=255 [10:19:28]MH_SAM_APDU [10:19:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 16 00 00 00 F4 03 04 00 B7 CD 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 2F 0B 01 00 35 04 06 00 02 [10:19:28]Write to MH i2c: E2 02 01 72 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 16 00 00 00 F4 03 04 00 B7 CD 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 2F 0B 01 00 35 04 06 00 02 00 00 F7 [10:19:28]Write i2c OK [10:19:28]MH_I2C_Read... [10:19:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:28]Read from MH i2c: E2 [10:19:28]MH_I2C_Read... [10:19:28]Read from MH i2c: E2 03 00 [10:19:28]MH_I2C_Read... [10:19:28]Read from MH i2c: E2 03 00 72 2B 00 90 00 11 [10:19:28]RAPDU: 90 00 [10:19:28]wFMCommunicate OK [10:19:28]wFMCommunicate request_size=10 [10:19:28]MH_SAM_APDU [10:19:28]CAPDU: 80 0D 02 02 05 F4 74 FD 01 1D [10:19:28]Write to MH i2c: E2 0D 00 73 2B 80 0D 02 02 05 00 F4 74 FD 01 1D 00 00 A5 [10:19:28]Write i2c OK [10:19:28]MH_I2C_Read... [10:19:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:28]Read from MH i2c: E2 [10:19:28]MH_I2C_Read... [10:19:28]Read from MH i2c: E2 03 00 [10:19:28]MH_I2C_Read... [10:19:28]Read from MH i2c: E2 03 00 73 2B 00 90 00 12 [10:19:28]RAPDU: 90 00 [10:19:28]wFMCommunicate OK [10:19:28]wFMCommunicate request_size=4 [10:19:28]MH_SAM_APDU [10:19:28]CAPDU: 80 0D 03 02 [10:19:28]Write to MH i2c: E2 08 00 74 2B 80 0D 03 02 00 00 00 00 1A [10:19:28]Write i2c OK [10:19:28]MH_I2C_Read... [10:19:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:28]Read from MH i2c: E2 [10:19:28]MH_I2C_Read... [10:19:28]Read from MH i2c: E2 0B 00 [10:19:28]MH_I2C_Read... [10:19:28]Read from MH i2c: E2 0B 00 74 2B 00 00 9A B9 62 6C 83 5A FB 90 00 14 [10:19:28]RAPDU: 00 9A B9 62 6C 83 5A FB 90 00 [10:19:28]wFMCommunicate OK [10:19:28]SAM_PROTO_SignData done [10:19:28]FM_MakeSignedData done [10:19:28]CreateOFDProtocolMessage [10:19:28]wFMCommunicate request_size=4 [10:19:28]MH_SAM_APDU [10:19:28]CAPDU: 80 11 00 00 [10:19:28]Write to MH i2c: E2 08 00 75 2B 80 11 00 00 00 00 00 00 1A [10:19:28]Write i2c OK [10:19:28]MH_I2C_Read... [10:19:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:28]Read from MH i2c: E2 [10:19:28]MH_I2C_Read... [10:19:28]Read from MH i2c: E2 17 00 [10:19:28]MH_I2C_Read... [10:19:28]Read from MH i2c: E2 17 00 75 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 6E [10:19:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [10:19:28]wFMCommunicate OK [10:19:28]CreateOFDProtocolMessage done [10:19:28]OFDSenderStorePacket 68399 [10:19:28]StoreOFDPacket docnum=68399 [10:19:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 83 F2 07 01 73 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 16 00 00 00 F4 03 04 00 B7 CD 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 2F 0B 01 00 35 04 06 00 02 F4 74 FD 01 1D 00 9A B9 62 6C 83 5A FB [10:19:28]CheckFolder [10:19:28]dirname=/storage/ofd_packets [10:19:28]CheckFolder done [10:19:28]ProducePacketName [10:19:28]name=ofd_packets/00068399 [10:19:28]NVStorageSaveData ofd_packets/00068399 [10:19:28]File name is /storage/ofd_packets/00068399 [10:19:28]Write 301 bytes [10:19:28]NVStorageSaveData done [10:19:28]OFDSenderStorePacket done [10:19:28]KKMCreateOFDPacket done [10:19:28]NVStorageSaveData kkm_last_timestamp [10:19:28]File name is /storage/kkm_last_timestamp [10:19:28]Write 4 bytes [10:19:28]NVStorageSaveData done [10:19:28]ExternCall_PrintAddStr [10:19:28]wPrintStart [10:19:28]Write to MH i2c: 01 00 00 76 2B A1 [10:19:28]OFD Sender: Processing packet 68399 [packets to send 8, broken 7] [10:19:28]ProducePacketName [10:19:28]name=ofd_packets/00068399 [10:19:28]OFD Sender: To server: pG, [10:19:28]CommunicateWithHost lk.salyk.kg:30040 [10:19:28]ConnectInit lk.salyk.kg [10:19:28]Write i2c OK [10:19:28]MH_I2C_Read... [10:19:28]Read from MH i2c: 01 [10:19:28]MH_I2C_Read... [10:19:28]Read from MH i2c: 01 07 00 [10:19:28]MH_I2C_Read... [10:19:28]Read from MH i2c: 01 07 00 76 2B 00 04 00 00 00 FF 0F BA [10:19:28]RasterBufferAndPrint [10:19:28]line Счет N : (1)210396 [10:19:28]line ИНН: 02508201610067 [10:19:28]line Контрольно-Кассовый Чек [10:19:28]line ПРОДАЖА [10:19:28]line ТРК (МРК, ГНК) : 11 [10:19:28]line Товар: 2710124130 [10:19:28]line Аи-92-К-2 [10:19:28]line 7.480 * 66.90 [10:19:28]line = 500.41 [10:19:28]line НДС 12% НСП 1% [10:19:28]line > о реализуемом товаре [10:19:28]line ОКРУГЛЕНИЕ: -0.41 [10:19:28]line ИТОГО: 500.00 [10:19:28]line Внесено: 500.00 [10:19:28]line СДАЧА: 0.00 [10:19:28]line НСП 1% : 4.43 [10:19:28]line НДС 12% : 53.14 [10:19:28]line Наличными: 500.00 [10:19:28]line Безнал.: 0.00 [10:19:28]line Место: АЗС № 147 "Партнер Нефть" [10:19:28]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [10:19:28]line СНО: Общий режим [10:19:28]line Чек 22 23.10.2024 10:19 [10:19:28]line Смена: 507 ФФД: 1.0 [10:19:28]line ЗНМ: 0300000094 [10:19:28]line РНМ: 0000000000091756 [10:19:28]line Версия ККМ: 001 [10:19:28]line ФМ: 0000000000871809 [10:19:28]line ФД: 68399 [10:19:28]line ФПД: 3248958013725 [10:19:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101935&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68399&fm=3248958013725&tin=02508201610067®Number=0000000000091756&sum=50000 [10:19:29]Connected sock=10 [10:19:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 83 F2 07 01 73 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 16 00 00 00 F4 03 04 00 B7 CD 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 2F 0B 01 00 35 04 06 00 02 F4 74 FD 01 1D 00 9A B9 62 6C 83 5A FB [10:19:29]written 0, free lines is 4095 [10:19:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 E9 2F 47 00 08 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 2F 0B 01 00 F4 03 04 00 AC 73 18 67 B6 04 01 00 00 EE CA 00 1F 3E 8F 48 E3 [10:19:29]CommunicateWithHost err = 0 [10:19:29]CheckOFDResponse [10:19:29]1017 (14) - 77093643461234 [10:19:29]1041 (16) - 0000000000871809 [10:19:29]1040 (4) - 68399 [10:19:29]1012 (4) - 23.10.2024 03:55 [10:19:29]1206 (1) - 0 [10:19:29]OFD Sender: Remove packet 68399 [10:19:29]ProducePacketName [10:19:29]name=ofd_packets/00068399 [10:19:29]NVStorageDeleteData [10:19:29]Write to MH i2c: 01 00 00 A0 2B CB [10:19:29]Write i2c OK [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: 01 [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: 01 07 00 [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: 01 07 00 A0 2B 00 04 00 00 00 9D 0C 7F [10:19:29]RasterBufferAndPrint [10:19:29]line [10:19:29]line [10:19:29]line [10:19:29]line [10:19:29]line [10:19:29]written 0, free lines is 3234 [10:19:29]MH_Cut [10:19:29]Write to MH i2c: D1 01 00 A7 2B 01 A4 [10:19:29]Write i2c OK [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: D1 [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: D1 01 00 [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: D1 01 00 A7 2B 00 A3 [10:19:29]Write to MH i2c: 01 00 00 A8 2B D3 [10:19:29]Write i2c OK [10:19:29]MH_I2C_Read... [10:19:29]OFD Sender: No OFD packet to send [10:19:30]*** Cut start [10:19:30]*** Partial cut [10:19:30]*** CUTSNS_PIN = 1 [10:19:30]*** CUTSNS_PIN = 0 [10:19:30]*** Brake cut motor [10:19:31]Read from MH i2c: 01 [10:19:31]MH_I2C_Read... [10:19:31]*** Stop cut motor [10:19:31]*** Cut end [10:19:31]Read from MH i2c: 01 07 00 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: 01 07 00 A8 2B 00 04 00 00 00 FF 0F EC [10:19:31]process_action close_receipt done [10:19:31]requested_data is exist [10:19:31]produce_requested_data [10:19:31]requested_item fm.sn is exist - process it [10:19:31]wFMCommunicate request_size=4 [10:19:31]MH_SAM_APDU [10:19:31]CAPDU: 80 11 00 00 [10:19:31]Write to MH i2c: E2 08 00 A9 2B 80 11 00 00 00 00 00 00 4E [10:19:31]Write i2c OK [10:19:31]MH_I2C_Read... [10:19:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:31]Read from MH i2c: E2 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: E2 17 00 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: E2 17 00 A9 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 A2 [10:19:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [10:19:31]wFMCommunicate OK [10:19:31]requested_item fd.num is exist - process it [10:19:31]SAM_PROTO_GetFieldsCounters [10:19:31]wFMCommunicate request_size=4 [10:19:31]MH_SAM_APDU [10:19:31]CAPDU: 80 13 00 00 [10:19:31]Write to MH i2c: E2 08 00 AA 2B 80 13 00 00 00 00 00 00 51 [10:19:31]Write i2c OK [10:19:31]MH_I2C_Read... [10:19:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:31]Read from MH i2c: E2 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: E2 62 00 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: E2 62 00 AA 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 2F 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [10:19:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 2F 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:19:31]wFMCommunicate OK [10:19:31]SAM_PROTO_GetFieldsCounters done [10:19:31]requested_item shift.num is exist - process it [10:19:31]requested_item shift.opened is exist - process it [10:19:31]req_shift_opened [10:19:31]FM_GetShiftState [10:19:31]SAM_PROTO_GetShiftState [10:19:31]wFMCommunicate request_size=4 [10:19:31]MH_SAM_APDU [10:19:31]CAPDU: 80 13 01 00 [10:19:31]Write to MH i2c: E2 08 00 AB 2B 80 13 01 00 00 00 00 00 53 [10:19:31]Write i2c OK [10:19:31]MH_I2C_Read... [10:19:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:31]Read from MH i2c: E2 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: E2 0E 00 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: E2 0E 00 AB 2B 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 C2 [10:19:31]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [10:19:31]wFMCommunicate OK [10:19:31]SAM_PROTO_GetShiftState done [10:19:31]FM_GetShiftState done [10:19:31]req_shift_opened done [10:19:31]requested_item shift.open_date is exist - process it [10:19:31]req_shift_open_date [10:19:31]req_shift_open_date done [10:19:31]produce_requested_data done [10:19:31]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68399,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [10:19:31]process_action_free close_receipt [10:19:31]json_value_free [10:19:31]json_value_free done [10:19:31]process_json_proto returns [10:19:31]Send response to host [10:19:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68399,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [10:19:31]free response buf [10:19:31]execute_script done [10:19:31]execute_script returns [10:19:31]free content buf [10:19:31]Sock 7.Close socket [10:19:31]Sock 7.Thread stoped [10:19:34]OFD Sender: No OFD packet to send [10:19:39]OFD Sender: No OFD packet to send [10:19:44]OFD Sender: No OFD packet to send [10:19:49]OFD Sender: No OFD packet to send [10:19:54]OFD Sender: No OFD packet to send [10:19:59]OFD Sender: No OFD packet to send [10:20:04]OFD Sender: No OFD packet to send [10:20:09]OFD Sender: No OFD packet to send [10:20:14]OFD Sender: No OFD packet to send [10:20:19]OFD Sender: No OFD packet to send [10:20:24]OFD Sender: No OFD packet to send [10:20:29]OFD Sender: No OFD packet to send [10:20:34]OFD Sender: No OFD packet to send [10:20:39]OFD Sender: No OFD packet to send [10:20:44]OFD Sender: No OFD packet to send [10:20:49]OFD Sender: No OFD packet to send [10:20:50]accept exits with 9 [10:20:50]New connection [10:20:50]New thread 3067133284 created [10:20:50]Thread 3067276644 joined [10:20:50]Waiting for new connection... [10:20:50] Sock 9.Parse request [10:20:50]Sock 9.Check first char [10:20:50]Sock 9.First char is OK [10:20:50]request: POST /json_proto HTTP/1.0 [10:20:50]Method: POST [10:20:50]URL: /json_proto [10:20:50]Method is POST - this is cgi request [10:20:50]url: /json_proto [10:20:50]query_string will be loaded in cgi processing [10:20:50]execute_cgi json_proto POST (null) [10:20:50]execute_cgi path=json_proto method=POST [10:20:50]POST find Content-Length [10:20:50]Host: 172.17.52.3:8080 [10:20:50]Content-Length: 677 [10:20:50]Content-Type: application/json [10:20:50] [10:20:50]POST finish read [10:20:50]Found Content-Length = 677 [10:20:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:50]execute_script... [10:20: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)210397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:50]POST & json_proto [10:20:50]process_json_proto [10:20:50]json parsed OK: [10:20:50]protocol is kg_v1.0 [10:20:50]action value=close_receipt [10:20:50]process_action close_receipt [10:20:50]cmd_close_receipt [10:20:50]MH_GetDate [10:20:50]Write to MH i2c: F0 00 00 AC 2B C6 [10:20:50]Write i2c OK [10:20:50]MH_I2C_Read... [10:20:50]Read from MH i2c: F0 [10:20:50]MH_I2C_Read... [10:20:50]Read from MH i2c: F0 09 00 [10:20:50]MH_I2C_Read... [10:20:50]Read from MH i2c: F0 09 00 AC 2B 00 0B CE 18 67 D7 68 A5 64 6F [10:20:50]GetLastDocTimeStamp 1729678775 [10:20:50]current date 1729678859 [10:20:50]FM_GetShiftState [10:20:50]SAM_PROTO_GetShiftState [10:20:50]wFMCommunicate request_size=4 [10:20:50]MH_SAM_APDU [10:20:50]CAPDU: 80 13 01 00 [10:20:50]Write to MH i2c: E2 08 00 AD 2B 80 13 01 00 00 00 00 00 55 [10:20:50]Write i2c OK [10:20:50]MH_I2C_Read... [10:20:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:50]Read from MH i2c: E2 [10:20:50]MH_I2C_Read... [10:20:50]Read from MH i2c: E2 0E 00 [10:20:50]MH_I2C_Read... [10:20:50]Read from MH i2c: E2 0E 00 AD 2B 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 C4 [10:20:50]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [10:20:50]wFMCommunicate OK [10:20:50]SAM_PROTO_GetShiftState done [10:20:50]FM_GetShiftState done [10:20:50]opened in 1729641385 [10:20:50]opened+sec_in_day 1729727785 [10:20:50]quantity*price = 30038 [10:20:50]sum+1 = 30039 [10:20:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 23 23.10.2024 10:20 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68400 ФПД: 29529864103266 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102059&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68400&fm=29529864103266&tin=02508201610067®Number=0000000000091756&sum=30000 [10:20:51]StoreToDocumentArchive [10:20:51]shift 507 fd 68400 [10:20:51]save to /storage/0507/doc_00068400 [10:20:51]save last doc name /storage/0507/doc_00068400 to /storage/kkm_last_doc_name [10:20:51]save OK [10:20:51]Clear old archive folders... [10:20:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:20:51]tlvbuf is 0208D540 [10:20:51]SAM_PROTO_ClearQueue [10:20:51]wFMCommunicate request_size=4 [10:20:51]MH_SAM_APDU [10:20:51]CAPDU: 80 09 00 00 [10:20:51]Write to MH i2c: E2 08 00 BA 2B 80 09 00 00 00 00 00 00 57 [10:20:51]Write i2c OK [10:20:51]MH_I2C_Read... [10:20:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:51]Read from MH i2c: E2 [10:20:51]MH_I2C_Read... [10:20:51]Read from MH i2c: E2 03 00 [10:20:51]MH_I2C_Read... [10:20:51]Read from MH i2c: E2 03 00 BA 2B 00 90 00 59 [10:20:51]RAPDU: 90 00 [10:20:51]wFMCommunicate OK [10:20:51]SAM_PROTO_ClearQueue done [10:20:51]KKMCreateOFDPacket [10:20:51]OFDProtocolAddRootSTLVToBuf [10:20:51]FM_MakeSignedData [10:20:51]FM_MakeSignedData [10:20:51]SAM_PROTO_SignData [10:20:51]wFMCommunicate request_size=4 [10:20:51]MH_SAM_APDU [10:20:51]CAPDU: 80 0D 01 02 [10:20:51]Write to MH i2c: E2 08 00 BB 2B 80 0D 01 02 00 00 00 00 5F [10:20:51]Write i2c OK [10:20:51]MH_I2C_Read... [10:20:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:51]Read from MH i2c: E2 [10:20:51]MH_I2C_Read... [10:20:51]Read from MH i2c: E2 03 00 [10:20:51]MH_I2C_Read... [10:20:51]Read from MH i2c: E2 03 00 BB 2B 00 90 00 5A [10:20:51]RAPDU: 90 00 [10:20:51]wFMCommunicate OK [10:20:51]wFMCommunicate request_size=255 [10:20:51]MH_SAM_APDU [10:20: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 32 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 17 00 00 00 F4 03 04 00 0B CE 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 30 0B 01 00 35 04 06 00 1A [10:20:51]Write to MH i2c: E2 02 01 BC 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 17 00 00 00 F4 03 04 00 0B CE 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 30 0B 01 00 35 04 06 00 1A 00 00 A4 [10:20:52]Write i2c OK [10:20:52]MH_I2C_Read... [10:20:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:52]Read from MH i2c: E2 [10:20:52]MH_I2C_Read... [10:20:52]Read from MH i2c: E2 03 00 [10:20:52]MH_I2C_Read... [10:20:52]Read from MH i2c: E2 03 00 BC 2B 00 90 00 5B [10:20:52]RAPDU: 90 00 [10:20:52]wFMCommunicate OK [10:20:52]wFMCommunicate request_size=10 [10:20:52]MH_SAM_APDU [10:20:52]CAPDU: 80 0D 02 02 05 DB 75 0F 65 62 [10:20:52]Write to MH i2c: E2 0D 00 BD 2B 80 0D 02 02 05 00 DB 75 0F 65 62 00 00 92 [10:20:52]Write i2c OK [10:20:52]MH_I2C_Read... [10:20:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:52]Read from MH i2c: E2 [10:20:52]MH_I2C_Read... [10:20:52]Read from MH i2c: E2 03 00 [10:20:52]MH_I2C_Read... [10:20:52]Read from MH i2c: E2 03 00 BD 2B 00 90 00 5C [10:20:52]RAPDU: 90 00 [10:20:52]wFMCommunicate OK [10:20:52]wFMCommunicate request_size=4 [10:20:52]MH_SAM_APDU [10:20:52]CAPDU: 80 0D 03 02 [10:20:52]Write to MH i2c: E2 08 00 BE 2B 80 0D 03 02 00 00 00 00 64 [10:20:52]Write i2c OK [10:20:52]MH_I2C_Read... [10:20:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:52]Read from MH i2c: E2 [10:20:52]MH_I2C_Read... [10:20:52]Read from MH i2c: E2 0B 00 [10:20:52]MH_I2C_Read... [10:20:52]Read from MH i2c: E2 0B 00 BE 2B 00 0F 98 52 11 00 8C 4B 52 90 00 98 [10:20:52]RAPDU: 0F 98 52 11 00 8C 4B 52 90 00 [10:20:52]wFMCommunicate OK [10:20:52]SAM_PROTO_SignData done [10:20:52]FM_MakeSignedData done [10:20:52]CreateOFDProtocolMessage [10:20:52]wFMCommunicate request_size=4 [10:20:52]MH_SAM_APDU [10:20:52]CAPDU: 80 11 00 00 [10:20:52]Write to MH i2c: E2 08 00 BF 2B 80 11 00 00 00 00 00 00 64 [10:20:52]Write i2c OK [10:20:52]MH_I2C_Read... [10:20:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:52]Read from MH i2c: E2 [10:20:52]MH_I2C_Read... [10:20:52]Read from MH i2c: E2 17 00 [10:20:52]MH_I2C_Read... [10:20:52]Read from MH i2c: E2 17 00 BF 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 B8 [10:20:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [10:20:52]wFMCommunicate OK [10:20:52]CreateOFDProtocolMessage done [10:20:52]OFDSenderStorePacket 68400 [10:20:52]StoreOFDPacket docnum=68400 [10:20:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 21 B8 07 01 C5 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 17 00 00 00 F4 03 04 00 0B CE 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 30 0B 01 00 35 04 06 00 1A DB 75 0F 65 62 0F 98 52 11 00 8C 4B 52 [10:20:52]CheckFolder [10:20:52]dirname=/storage/ofd_packets [10:20:52]CheckFolder done [10:20:52]ProducePacketName [10:20:52]name=ofd_packets/00068400 [10:20:52]NVStorageSaveData ofd_packets/00068400 [10:20:52]File name is /storage/ofd_packets/00068400 [10:20:52]Write 301 bytes [10:20:52]NVStorageSaveData done [10:20:52]OFDSenderStorePacket done [10:20:52]KKMCreateOFDPacket done [10:20:52]NVStorageSaveData kkm_last_timestamp [10:20:52]File name is /storage/kkm_last_timestamp [10:20:52]Write 4 bytes [10:20:52]NVStorageSaveData done [10:20:52]ExternCall_PrintAddStr [10:20:52]wPrintStart [10:20:52]Write to MH i2c: 01 00 00 C0 2B EB [10:20:52]Write i2c OK [10:20:52]MH_I2C_Read... [10:20:52]Read from MH i2c: 01 [10:20:52]MH_I2C_Read... [10:20:52]Read from MH i2c: 01 07 00 [10:20:52]MH_I2C_Read... [10:20:52]Read from MH i2c: 01 07 00 C0 2B 00 04 00 00 00 FF 0F 04 [10:20:52]RasterBufferAndPrint [10:20:52]line Счет N : (1)210397 [10:20:52]line ИНН: 02508201610067 [10:20:52]line Контрольно-Кассовый Чек [10:20:52]line ПРОДАЖА [10:20:52]line ТРК (МРК, ГНК) : 11 [10:20:52]line Товар: 2710124130 [10:20:52]line Аи-92-К-2 [10:20:52]line 4.490 * 66.90 [10:20:52]line = 300.38 [10:20:52]line НДС 12% НСП 1% [10:20:52]line > о реализуемом товаре [10:20:52]line ОКРУГЛЕНИЕ: -0.38 [10:20:52]line ИТОГО: 300.00 [10:20:52]line Внесено: 300.00 [10:20:52]line СДАЧА: 0.00 [10:20:52]line НСП 1% : 2.66 [10:20:52]line НДС 12% : 31.90 [10:20:52]line Наличными: 300.00 [10:20:52]line Безнал.: 0.00 [10:20:52]line Место: АЗС № 147 "Партнер Нефть" [10:20:52]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [10:20:52]line СНО: Общий режим [10:20:52]line Чек 23 23.10.2024 10:20 [10:20:52]line Смена: 507 ФФД: 1.0 [10:20:52]line ЗНМ: 0300000094 [10:20:52]line РНМ: 0000000000091756 [10:20:52]line Версия ККМ: 001 [10:20:52]line ФМ: 0000000000871809 [10:20:52]line ФД: 68400 [10:20:52]line ФПД: 29529864103266 [10:20:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102059&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68400&fm=29529864103266&tin=02508201610067®Number=0000000000091756&sum=30000 [10:20:52]OFD Sender: Processing packet 68400 [packets to send 8, broken 7] [10:20:52]ProducePacketName [10:20:52]name=ofd_packets/00068400 [10:20:52]OFD Sender: To server: pG, [10:20:52]CommunicateWithHost lk.salyk.kg:30040 [10:20:52]ConnectInit lk.salyk.kg [10:20:52]written 0, free lines is 4095 [10:20:52]Connected sock=10 [10:20:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 21 B8 07 01 C5 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 17 00 00 00 F4 03 04 00 0B CE 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 30 0B 01 00 35 04 06 00 1A DB 75 0F 65 62 0F 98 52 11 00 8C 4B 52 [10:20:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 1C 68 47 00 AC ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 30 0B 01 00 F4 03 04 00 00 74 18 67 B6 04 01 00 00 A5 5D CE F7 E2 76 68 FF [10:20:53]CommunicateWithHost err = 0 [10:20:53]CheckOFDResponse [10:20:53]1017 (14) - 77093643461234 [10:20:53]1041 (16) - 0000000000871809 [10:20:53]1040 (4) - 68400 [10:20:53]1012 (4) - 23.10.2024 03:56 [10:20:53]1206 (1) - 0 [10:20:53]OFD Sender: Remove packet 68400 [10:20:53]ProducePacketName [10:20:53]name=ofd_packets/00068400 [10:20:53]NVStorageDeleteData [10:20:53]Write to MH i2c: 01 00 00 EA 2B 15 [10:20:53]Write i2c OK [10:20:53]MH_I2C_Read... [10:20:53]Read from MH i2c: 01 [10:20:53]MH_I2C_Read... [10:20:53]Read from MH i2c: 01 07 00 [10:20:53]MH_I2C_Read... [10:20:53]Read from MH i2c: 01 07 00 EA 2B 00 04 00 00 00 AA 0C D6 [10:20:53]RasterBufferAndPrint [10:20:53]line [10:20:53]line [10:20:53]line [10:20:53]line [10:20:53]line [10:20:53]written 0, free lines is 3246 [10:20:53]MH_Cut [10:20:53]Write to MH i2c: D1 01 00 F1 2B 01 EE [10:20:53]Write i2c OK [10:20:53]MH_I2C_Read... [10:20:53]Read from MH i2c: D1 [10:20:53]MH_I2C_Read... [10:20:53]Read from MH i2c: D1 01 00 [10:20:53]MH_I2C_Read... [10:20:53]Read from MH i2c: D1 01 00 F1 2B 00 ED [10:20:53]Write to MH i2c: 01 00 00 F2 2B 1D [10:20:53]Write i2c OK [10:20:53]MH_I2C_Read... [10:20:53]OFD Sender: No OFD packet to send [10:20:54]*** Cut start [10:20:54]*** Partial cut [10:20:54]*** CUTSNS_PIN = 1 [10:20:54]*** CUTSNS_PIN = 0 [10:20:54]*** Brake cut motor [10:20:54]Read from MH i2c: 01 [10:20:54]MH_I2C_Read... [10:20:54]*** Stop cut motor [10:20:54]*** Cut end [10:20:54]Read from MH i2c: 01 07 00 [10:20:54]MH_I2C_Read... [10:20:54]Read from MH i2c: 01 07 00 F2 2B 00 04 00 00 00 FF 0F 36 [10:20:54]process_action close_receipt done [10:20:54]requested_data is exist [10:20:54]produce_requested_data [10:20:54]requested_item fm.sn is exist - process it [10:20:54]wFMCommunicate request_size=4 [10:20:54]MH_SAM_APDU [10:20:54]CAPDU: 80 11 00 00 [10:20:54]Write to MH i2c: E2 08 00 F3 2B 80 11 00 00 00 00 00 00 98 [10:20:54]Write i2c OK [10:20:54]MH_I2C_Read... [10:20:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:54]Read from MH i2c: E2 [10:20:54]MH_I2C_Read... [10:20:54]Read from MH i2c: E2 17 00 [10:20:54]MH_I2C_Read... [10:20:54]Read from MH i2c: E2 17 00 F3 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 EC [10:20:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [10:20:54]wFMCommunicate OK [10:20:54]requested_item fd.num is exist - process it [10:20:54]SAM_PROTO_GetFieldsCounters [10:20:54]wFMCommunicate request_size=4 [10:20:54]MH_SAM_APDU [10:20:54]CAPDU: 80 13 00 00 [10:20:54]Write to MH i2c: E2 08 00 F4 2B 80 13 00 00 00 00 00 00 9B [10:20:54]Write i2c OK [10:20:54]MH_I2C_Read... [10:20:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:54]Read from MH i2c: E2 [10:20:54]MH_I2C_Read... [10:20:54]Read from MH i2c: E2 62 00 [10:20:54]MH_I2C_Read... [10:20:54]Read from MH i2c: E2 62 00 F4 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 30 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [10:20:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 30 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:20:54]wFMCommunicate OK [10:20:54]SAM_PROTO_GetFieldsCounters done [10:20:54]requested_item shift.num is exist - process it [10:20:54]requested_item shift.opened is exist - process it [10:20:54]req_shift_opened [10:20:54]FM_GetShiftState [10:20:54]SAM_PROTO_GetShiftState [10:20:54]wFMCommunicate request_size=4 [10:20:54]MH_SAM_APDU [10:20:54]CAPDU: 80 13 01 00 [10:20:54]Write to MH i2c: E2 08 00 F5 2B 80 13 01 00 00 00 00 00 9D [10:20:54]Write i2c OK [10:20:54]MH_I2C_Read... [10:20:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:54]Read from MH i2c: E2 [10:20:54]MH_I2C_Read... [10:20:54]Read from MH i2c: E2 0E 00 [10:20:54]MH_I2C_Read... [10:20:54]Read from MH i2c: E2 0E 00 F5 2B 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 0C [10:20:54]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [10:20:54]wFMCommunicate OK [10:20:54]SAM_PROTO_GetShiftState done [10:20:54]FM_GetShiftState done [10:20:54]req_shift_opened done [10:20:54]requested_item shift.open_date is exist - process it [10:20:54]req_shift_open_date [10:20:54]req_shift_open_date done [10:20:54]produce_requested_data done [10:20:54]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68400,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [10:20:54]process_action_free close_receipt [10:20:54]json_value_free [10:20:54]json_value_free done [10:20:54]process_json_proto returns [10:20:54]Send response to host [10:20:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68400,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [10:20:54]free response buf [10:20:54]execute_script done [10:20:54]execute_script returns [10:20:54]free content buf [10:20:54]Sock 9.Close socket [10:20:54]Sock 9.Thread stoped [10:20:58]OFD Sender: No OFD packet to send [10:21:03]OFD Sender: No OFD packet to send [10:21:08]OFD Sender: No OFD packet to send [10:21:13]OFD Sender: No OFD packet to send [10:21:18]OFD Sender: No OFD packet to send [10:21:21]accept exits with 7 [10:21:21]New connection [10:21:21]New thread 3067276644 created [10:21:21]Thread 3067133284 joined [10:21:21]Waiting for new connection... [10:21:21] Sock 7.Parse request [10:21:21]Sock 7.Check first char [10:21:21]Sock 7.First char is OK [10:21:21]request: POST /json_proto HTTP/1.0 [10:21:21]Method: POST [10:21:21]URL: /json_proto [10:21:21]Method is POST - this is cgi request [10:21:21]url: /json_proto [10:21:21]query_string will be loaded in cgi processing [10:21:21]execute_cgi json_proto POST (null) [10:21:21]execute_cgi path=json_proto method=POST [10:21:21]POST find Content-Length [10:21:21]Host: 172.17.52.3:8080 [10:21:21]Content-Length: 677 [10:21:21]Content-Type: application/json [10:21:21] [10:21:21]POST finish read [10:21:21]Found Content-Length = 677 [10:21:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:21]execute_script... [10:21: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)210398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:21]POST & json_proto [10:21:21]process_json_proto [10:21:21]json parsed OK: [10:21:21]protocol is kg_v1.0 [10:21:21]action value=close_receipt [10:21:21]process_action close_receipt [10:21:21]cmd_close_receipt [10:21:21]MH_GetDate [10:21:21]Write to MH i2c: F0 00 00 F6 2B 10 [10:21:21]Write i2c OK [10:21:21]MH_I2C_Read... [10:21:21]Read from MH i2c: F0 [10:21:21]MH_I2C_Read... [10:21:21]Read from MH i2c: F0 09 00 [10:21:21]MH_I2C_Read... [10:21:21]Read from MH i2c: F0 09 00 F6 2B 00 29 CE 18 67 D7 68 A5 64 D7 [10:21:21]GetLastDocTimeStamp 1729678859 [10:21:21]current date 1729678889 [10:21:21]FM_GetShiftState [10:21:21]SAM_PROTO_GetShiftState [10:21:21]wFMCommunicate request_size=4 [10:21:21]MH_SAM_APDU [10:21:21]CAPDU: 80 13 01 00 [10:21:21]Write to MH i2c: E2 08 00 F7 2B 80 13 01 00 00 00 00 00 9F [10:21:21]Write i2c OK [10:21:21]MH_I2C_Read... [10:21:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:21]Read from MH i2c: E2 [10:21:21]MH_I2C_Read... [10:21:21]Read from MH i2c: E2 0E 00 [10:21:21]MH_I2C_Read... [10:21:21]Read from MH i2c: E2 0E 00 F7 2B 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 0E [10:21:21]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [10:21:21]wFMCommunicate OK [10:21:21]SAM_PROTO_GetShiftState done [10:21:21]FM_GetShiftState done [10:21:21]opened in 1729641385 [10:21:21]opened+sec_in_day 1729727785 [10:21:21]quantity*price = 30038 [10:21:21]sum+1 = 30039 [10:21:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 24 23.10.2024 10:21 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68401 ФПД: 235791367789849 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102129&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68401&fm=235791367789849&tin=02508201610067®Number=0000000000091756&sum=30000 [10:21:22]StoreToDocumentArchive [10:21:22]shift 507 fd 68401 [10:21:22]save to /storage/0507/doc_00068401 [10:21:22]save last doc name /storage/0507/doc_00068401 to /storage/kkm_last_doc_name [10:21:22]save OK [10:21:22]Clear old archive folders... [10:21:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:21:22]tlvbuf is 01FDDCD0 [10:21:22]SAM_PROTO_ClearQueue [10:21:22]wFMCommunicate request_size=4 [10:21:22]MH_SAM_APDU [10:21:22]CAPDU: 80 09 00 00 [10:21:22]Write to MH i2c: E2 08 00 04 2C 80 09 00 00 00 00 00 00 A2 [10:21:22]Write i2c OK [10:21:22]MH_I2C_Read... [10:21:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:22]Read from MH i2c: E2 [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: E2 03 00 [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: E2 03 00 04 2C 00 90 00 A4 [10:21:22]RAPDU: 90 00 [10:21:22]wFMCommunicate OK [10:21:22]SAM_PROTO_ClearQueue done [10:21:22]KKMCreateOFDPacket [10:21:22]OFDProtocolAddRootSTLVToBuf [10:21:22]FM_MakeSignedData [10:21:22]FM_MakeSignedData [10:21:22]SAM_PROTO_SignData [10:21:22]wFMCommunicate request_size=4 [10:21:22]MH_SAM_APDU [10:21:22]CAPDU: 80 0D 01 02 [10:21:22]Write to MH i2c: E2 08 00 05 2C 80 0D 01 02 00 00 00 00 AA [10:21:22]Write i2c OK [10:21:22]MH_I2C_Read... [10:21:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:22]Read from MH i2c: E2 [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: E2 03 00 [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: E2 03 00 05 2C 00 90 00 A5 [10:21:22]RAPDU: 90 00 [10:21:22]wFMCommunicate OK [10:21:22]wFMCommunicate request_size=255 [10:21:22]MH_SAM_APDU [10:21: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 32 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 18 00 00 00 F4 03 04 00 29 CE 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 31 0B 01 00 35 04 06 00 D6 [10:21:22]Write to MH i2c: E2 02 01 06 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 18 00 00 00 F4 03 04 00 29 CE 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 31 0B 01 00 35 04 06 00 D6 00 00 CB [10:21:22]Write i2c OK [10:21:22]MH_I2C_Read... [10:21:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:22]Read from MH i2c: E2 [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: E2 03 00 [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: E2 03 00 06 2C 00 90 00 A6 [10:21:22]RAPDU: 90 00 [10:21:22]wFMCommunicate OK [10:21:22]wFMCommunicate request_size=10 [10:21:22]MH_SAM_APDU [10:21:22]CAPDU: 80 0D 02 02 05 73 74 B7 DD 19 [10:21:22]Write to MH i2c: E2 0D 00 07 2C 80 0D 02 02 05 00 73 74 B7 DD 19 00 00 4B [10:21:22]Write i2c OK [10:21:22]MH_I2C_Read... [10:21:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:22]Read from MH i2c: E2 [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: E2 03 00 [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: E2 03 00 07 2C 00 90 00 A7 [10:21:22]RAPDU: 90 00 [10:21:22]wFMCommunicate OK [10:21:22]wFMCommunicate request_size=4 [10:21:22]MH_SAM_APDU [10:21:22]CAPDU: 80 0D 03 02 [10:21:22]Write to MH i2c: E2 08 00 08 2C 80 0D 03 02 00 00 00 00 AF [10:21:22]Write i2c OK [10:21:22]MH_I2C_Read... [10:21:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:22]Read from MH i2c: E2 [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: E2 0B 00 [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: E2 0B 00 08 2C 00 96 A4 1B 92 9C 8A 19 AC 90 00 82 [10:21:22]RAPDU: 96 A4 1B 92 9C 8A 19 AC 90 00 [10:21:22]wFMCommunicate OK [10:21:22]SAM_PROTO_SignData done [10:21:22]FM_MakeSignedData done [10:21:22]CreateOFDProtocolMessage [10:21:22]wFMCommunicate request_size=4 [10:21:22]MH_SAM_APDU [10:21:22]CAPDU: 80 11 00 00 [10:21:22]Write to MH i2c: E2 08 00 09 2C 80 11 00 00 00 00 00 00 AF [10:21:22]Write i2c OK [10:21:22]MH_I2C_Read... [10:21:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:22]Read from MH i2c: E2 [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: E2 17 00 [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: E2 17 00 09 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 03 [10:21:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [10:21:22]wFMCommunicate OK [10:21:22]CreateOFDProtocolMessage done [10:21:22]OFDSenderStorePacket 68401 [10:21:22]StoreOFDPacket docnum=68401 [10:21:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 6E A7 07 01 09 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 18 00 00 00 F4 03 04 00 29 CE 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 31 0B 01 00 35 04 06 00 D6 73 74 B7 DD 19 96 A4 1B 92 9C 8A 19 AC [10:21:22]CheckFolder [10:21:22]dirname=/storage/ofd_packets [10:21:22]CheckFolder done [10:21:22]ProducePacketName [10:21:22]name=ofd_packets/00068401 [10:21:22]NVStorageSaveData ofd_packets/00068401 [10:21:22]File name is /storage/ofd_packets/00068401 [10:21:22]Write 301 bytes [10:21:22]NVStorageSaveData done [10:21:22]OFDSenderStorePacket done [10:21:22]KKMCreateOFDPacket done [10:21:22]NVStorageSaveData kkm_last_timestamp [10:21:22]File name is /storage/kkm_last_timestamp [10:21:22]Write 4 bytes [10:21:22]NVStorageSaveData done [10:21:22]ExternCall_PrintAddStr [10:21:22]wPrintStart [10:21:22]Write to MH i2c: 01 00 00 0A 2C 36 [10:21:22]Write i2c OK [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: 01 [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: 01 07 00 [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: 01 07 00 0A 2C 00 04 00 00 00 FF 0F 4F [10:21:22]RasterBufferAndPrint [10:21:22]line Счет N : (1)210398 [10:21:22]line ИНН: 02508201610067 [10:21:22]line Контрольно-Кассовый Чек [10:21:22]line ПРОДАЖА [10:21:22]line ТРК (МРК, ГНК) : 11 [10:21:22]line Товар: 2710124130 [10:21:22]line Аи-92-К-2 [10:21:22]line 4.490 * 66.90 [10:21:22]line = 300.38 [10:21:22]line НДС 12% НСП 1% [10:21:22]line > о реализуемом товаре [10:21:22]line ОКРУГЛЕНИЕ: -0.38 [10:21:22]line ИТОГО: 300.00 [10:21:22]line Внесено: 300.00 [10:21:22]line СДАЧА: 0.00 [10:21:22]line НСП 1% : 2.66 [10:21:22]line НДС 12% : 31.90 [10:21:22]line Наличными: 300.00 [10:21:22]line Безнал.: 0.00 [10:21:22]line Место: АЗС № 147 "Партнер Нефть" [10:21:22]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [10:21:22]line СНО: Общий режим [10:21:22]line Чек 24 23.10.2024 10:21 [10:21:22]line Смена: 507 ФФД: 1.0 [10:21:22]line ЗНМ: 0300000094 [10:21:22]line РНМ: 0000000000091756 [10:21:22]line Версия ККМ: 001 [10:21:22]line ФМ: 0000000000871809 [10:21:22]line ФД: 68401 [10:21:22]line ФПД: 235791367789849 [10:21:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102129&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68401&fm=235791367789849&tin=02508201610067®Number=0000000000091756&sum=30000 [10:21:22]written 0, free lines is 4095 [10:21:22]OFD Sender: Processing packet 68401 [packets to send 8, broken 7] [10:21:22]ProducePacketName [10:21:22]name=ofd_packets/00068401 [10:21:22]OFD Sender: To server: pG, [10:21:22]CommunicateWithHost lk.salyk.kg:30040 [10:21:22]ConnectInit lk.salyk.kg [10:21:23]Connected sock=10 [10:21:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 6E A7 07 01 09 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 18 00 00 00 F4 03 04 00 29 CE 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 31 0B 01 00 35 04 06 00 D6 73 74 B7 DD 19 96 A4 1B 92 9C 8A 19 AC [10:21:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 EE 14 47 00 8A 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 31 0B 01 00 F4 03 04 00 1E 74 18 67 B6 04 01 00 00 EF E8 DC EA A5 12 39 33 [10:21:23]CommunicateWithHost err = 0 [10:21:23]CheckOFDResponse [10:21:23]1017 (14) - 77093643461234 [10:21:23]1041 (16) - 0000000000871809 [10:21:23]1040 (4) - 68401 [10:21:23]1012 (4) - 23.10.2024 03:57 [10:21:23]1206 (1) - 0 [10:21:23]OFD Sender: Remove packet 68401 [10:21:23]ProducePacketName [10:21:23]name=ofd_packets/00068401 [10:21:23]NVStorageDeleteData [10:21:23]Write to MH i2c: 01 00 00 34 2C 60 [10:21:23]Write i2c OK [10:21:23]MH_I2C_Read... [10:21:23]Read from MH i2c: 01 [10:21:23]MH_I2C_Read... [10:21:23]Read from MH i2c: 01 07 00 [10:21:23]MH_I2C_Read... [10:21:23]Read from MH i2c: 01 07 00 34 2C 00 04 00 00 00 AF 0C 26 [10:21:23]RasterBufferAndPrint [10:21:23]line [10:21:23]line [10:21:23]line [10:21:23]line [10:21:23]line [10:21:23]written 0, free lines is 3251 [10:21:23]MH_Cut [10:21:23]Write to MH i2c: D1 01 00 3B 2C 01 39 [10:21:23]Write i2c OK [10:21:23]MH_I2C_Read... [10:21:23]Read from MH i2c: D1 [10:21:23]MH_I2C_Read... [10:21:23]Read from MH i2c: D1 01 00 [10:21:23]MH_I2C_Read... [10:21:23]Read from MH i2c: D1 01 00 3B 2C 00 38 [10:21:23]Write to MH i2c: 01 00 00 3C 2C 68 [10:21:23]Write i2c OK [10:21:23]MH_I2C_Read... [10:21:23]OFD Sender: No OFD packet to send [10:21:24]*** Cut start [10:21:24]*** Partial cut [10:21:24]*** CUTSNS_PIN = 1 [10:21:24]*** CUTSNS_PIN = 0 [10:21:24]*** Brake cut motor [10:21:24]Read from MH i2c: 01 [10:21:24]MH_I2C_Read... [10:21:24]*** Stop cut motor [10:21:24]*** Cut end [10:21:24]Read from MH i2c: 01 07 00 [10:21:24]MH_I2C_Read... [10:21:24]Read from MH i2c: 01 07 00 3C 2C 00 04 00 00 00 FF 0F 81 [10:21:24]process_action close_receipt done [10:21:24]requested_data is exist [10:21:24]produce_requested_data [10:21:24]requested_item fm.sn is exist - process it [10:21:24]wFMCommunicate request_size=4 [10:21:24]MH_SAM_APDU [10:21:24]CAPDU: 80 11 00 00 [10:21:24]Write to MH i2c: E2 08 00 3D 2C 80 11 00 00 00 00 00 00 E3 [10:21:24]Write i2c OK [10:21:24]MH_I2C_Read... [10:21:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:24]Read from MH i2c: E2 [10:21:24]MH_I2C_Read... [10:21:24]Read from MH i2c: E2 17 00 [10:21:24]MH_I2C_Read... [10:21:24]Read from MH i2c: E2 17 00 3D 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 37 [10:21:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [10:21:24]wFMCommunicate OK [10:21:24]requested_item fd.num is exist - process it [10:21:24]SAM_PROTO_GetFieldsCounters [10:21:24]wFMCommunicate request_size=4 [10:21:24]MH_SAM_APDU [10:21:24]CAPDU: 80 13 00 00 [10:21:24]Write to MH i2c: E2 08 00 3E 2C 80 13 00 00 00 00 00 00 E6 [10:21:24]Write i2c OK [10:21:24]MH_I2C_Read... [10:21:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:25]Read from MH i2c: E2 [10:21:25]MH_I2C_Read... [10:21:25]Read from MH i2c: E2 62 00 [10:21:25]MH_I2C_Read... [10:21:25]Read from MH i2c: E2 62 00 3E 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 31 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [10:21:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 31 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:21:25]wFMCommunicate OK [10:21:25]SAM_PROTO_GetFieldsCounters done [10:21:25]requested_item shift.num is exist - process it [10:21:25]requested_item shift.opened is exist - process it [10:21:25]req_shift_opened [10:21:25]FM_GetShiftState [10:21:25]SAM_PROTO_GetShiftState [10:21:25]wFMCommunicate request_size=4 [10:21:25]MH_SAM_APDU [10:21:25]CAPDU: 80 13 01 00 [10:21:25]Write to MH i2c: E2 08 00 3F 2C 80 13 01 00 00 00 00 00 E8 [10:21:25]Write i2c OK [10:21:25]MH_I2C_Read... [10:21:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:25]Read from MH i2c: E2 [10:21:25]MH_I2C_Read... [10:21:25]Read from MH i2c: E2 0E 00 [10:21:25]MH_I2C_Read... [10:21:25]Read from MH i2c: E2 0E 00 3F 2C 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 57 [10:21:25]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [10:21:25]wFMCommunicate OK [10:21:25]SAM_PROTO_GetShiftState done [10:21:25]FM_GetShiftState done [10:21:25]req_shift_opened done [10:21:25]requested_item shift.open_date is exist - process it [10:21:25]req_shift_open_date [10:21:25]req_shift_open_date done [10:21:25]produce_requested_data done [10:21:25]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68401,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [10:21:25]process_action_free close_receipt [10:21:25]json_value_free [10:21:25]json_value_free done [10:21:25]process_json_proto returns [10:21:25]Send response to host [10:21:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68401,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [10:21:25]free response buf [10:21:25]execute_script done [10:21:25]execute_script returns [10:21:25]free content buf [10:21:25]Sock 7.Close socket [10:21:25]Sock 7.Thread stoped [10:21:28]OFD Sender: No OFD packet to send [10:21:33]OFD Sender: No OFD packet to send [10:21:38]OFD Sender: No OFD packet to send [10:21:43]OFD Sender: No OFD packet to send [10:21:48]OFD Sender: No OFD packet to send [10:21:53]OFD Sender: No OFD packet to send [10:21:58]OFD Sender: No OFD packet to send [10:22:03]OFD Sender: No OFD packet to send [10:22:08]OFD Sender: No OFD packet to send [10:22:13]OFD Sender: No OFD packet to send [10:22:18]OFD Sender: No OFD packet to send [10:22:23]OFD Sender: No OFD packet to send [10:22:28]OFD Sender: No OFD packet to send [10:22:33]OFD Sender: No OFD packet to send [10:22:38]OFD Sender: No OFD packet to send [10:22:43]OFD Sender: No OFD packet to send [10:22:48]OFD Sender: No OFD packet to send [10:22:53]OFD Sender: No OFD packet to send [10:22:58]OFD Sender: No OFD packet to send [10:23:03]OFD Sender: No OFD packet to send [10:23:08]OFD Sender: No OFD packet to send [10:23:13]OFD Sender: No OFD packet to send [10:23:18]OFD Sender: No OFD packet to send [10:23:23]OFD Sender: No OFD packet to send [10:23:28]OFD Sender: No OFD packet to send [10:23:33]OFD Sender: No OFD packet to send [10:23:38]OFD Sender: No OFD packet to send [10:23:43]OFD Sender: No OFD packet to send [10:23:48]OFD Sender: No OFD packet to send [10:23:53]OFD Sender: No OFD packet to send [10:23:58]OFD Sender: No OFD packet to send [10:24:03]OFD Sender: No OFD packet to send [10:24:08]OFD Sender: No OFD packet to send [10:24:13]OFD Sender: No OFD packet to send [10:24:18]OFD Sender: No OFD packet to send [10:24:23]OFD Sender: No OFD packet to send [10:24:28]OFD Sender: No OFD packet to send [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:48]OFD Sender: No OFD packet to send [10:24:53]OFD Sender: No OFD packet to send [10:24:58]OFD Sender: No OFD packet to send [10:25:03]OFD Sender: No OFD packet to send [10:25:08]OFD Sender: No OFD packet to send [10:25:13]OFD Sender: No OFD packet to send [10:25:18]OFD Sender: No OFD packet to send [10:25:23]OFD Sender: No OFD packet to send [10:25:28]OFD Sender: No OFD packet to send [10:25:33]OFD Sender: No OFD packet to send [10:25:38]OFD Sender: No OFD packet to send [10:25:43]OFD Sender: No OFD packet to send [10:25:48]OFD Sender: No OFD packet to send [10:25:53]OFD Sender: No OFD packet to send [10:25:58]OFD Sender: No OFD packet to send [10:26:03]OFD Sender: No OFD packet to send [10:26:08]OFD Sender: No OFD packet to send [10:26:13]OFD Sender: No OFD packet to send [10:26:18]OFD Sender: No OFD packet to send [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:59]OFD Sender: No OFD packet to send [10:27:04]OFD Sender: No OFD packet to send [10:27:09]OFD Sender: No OFD packet to send [10:27:14]OFD Sender: No OFD packet to send [10:27:19]OFD Sender: No OFD packet to send [10:27:24]OFD Sender: No OFD packet to send [10:27:29]OFD Sender: No OFD packet to send [10:27:34]OFD Sender: No OFD packet to send [10:27:39]OFD Sender: No OFD packet to send [10:27:44]OFD Sender: No OFD packet to send [10:27:49]OFD Sender: No OFD packet to send [10:27:54]OFD Sender: No OFD packet to send [10:27:59]OFD Sender: No OFD packet to send [10:28:04]OFD Sender: No OFD packet to send [10:28:09]OFD Sender: No OFD packet to send [10:28:14]OFD Sender: No OFD packet to send [10:28:19]OFD Sender: No OFD packet to send [10:28:24]OFD Sender: No OFD packet to send [10:28:29]OFD Sender: No OFD packet to send [10:28:34]OFD Sender: No OFD packet to send [10:28:39]OFD Sender: No OFD packet to send [10:28:44]OFD Sender: No OFD packet to send [10:28:49]OFD Sender: No OFD packet to send [10:28:54]OFD Sender: No OFD packet to send [10:28:59]OFD Sender: No OFD packet to send [10:29:04]OFD Sender: No OFD packet to send [10:29:09]OFD Sender: No OFD packet to send [10:29:14]OFD Sender: No OFD packet to send [10:29:19]OFD Sender: No OFD packet to send [10:29:24]OFD Sender: No OFD packet to send [10:29:29]OFD Sender: No OFD packet to send [10:29:34]OFD Sender: No OFD packet to send [10:29:39]OFD Sender: No OFD packet to send [10:29:44]OFD Sender: No OFD packet to send [10:29:49]OFD Sender: No OFD packet to send [10:29:54]OFD Sender: No OFD packet to send [10:29:59]OFD Sender: No OFD packet to send [10:30:04]OFD Sender: No OFD packet to send [10:30:09]OFD Sender: No OFD packet to send [10:30:14]OFD Sender: No OFD packet to send [10:30:17]accept exits with 9 [10:30:17]New connection [10:30:17]New thread 3067133284 created [10:30:17]Thread 3067276644 joined [10:30:17]Waiting for new connection... [10:30:17] Sock 9.Parse request [10:30:17]Sock 9.Check first char [10:30:17]Sock 9.First char is OK [10:30:17]request: POST /json_proto HTTP/1.0 [10:30:17]Method: POST [10:30:17]URL: /json_proto [10:30:17]Method is POST - this is cgi request [10:30:17]url: /json_proto [10:30:17]query_string will be loaded in cgi processing [10:30:17]execute_cgi json_proto POST (null) [10:30:17]execute_cgi path=json_proto method=POST [10:30:17]POST find Content-Length [10:30:17]Host: 172.17.52.3:8080 [10:30:17]Content-Length: 674 [10:30:17]Content-Type: application/json [10:30:17] [10:30:17]POST finish read [10:30:17]Found Content-Length = 674 [10:30:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:17]execute_script... [10:30: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)210399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:17]POST & json_proto [10:30:17]process_json_proto [10:30:17]json parsed OK: [10:30:17]protocol is kg_v1.0 [10:30:17]action value=close_receipt [10:30:17]process_action close_receipt [10:30:17]cmd_close_receipt [10:30:17]MH_GetDate [10:30:17]Write to MH i2c: F0 00 00 40 2C 5B [10:30:17]Write i2c OK [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: F0 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: F0 09 00 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: F0 09 00 40 2C 00 42 D0 18 67 D7 68 A5 64 3D [10:30:17]GetLastDocTimeStamp 1729678889 [10:30:17]current date 1729679426 [10:30:17]FM_GetShiftState [10:30:17]SAM_PROTO_GetShiftState [10:30:17]wFMCommunicate request_size=4 [10:30:17]MH_SAM_APDU [10:30:17]CAPDU: 80 13 01 00 [10:30:17]Write to MH i2c: E2 08 00 41 2C 80 13 01 00 00 00 00 00 EA [10:30:17]Write i2c OK [10:30:17]MH_I2C_Read... [10:30:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:17]Read from MH i2c: E2 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: E2 0E 00 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: E2 0E 00 41 2C 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 59 [10:30:17]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [10:30:17]wFMCommunicate OK [10:30:17]SAM_PROTO_GetShiftState done [10:30:17]FM_GetShiftState done [10:30:17]opened in 1729641385 [10:30:17]opened+sec_in_day 1729727785 [10:30:17]quantity*price = 40005 [10:30:17]sum+1 = 40006 [10:30:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 25 23.10.2024 10:30 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68402 ФПД: 243019987697802 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103026&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68402&fm=243019987697802&tin=02508201610067®Number=0000000000091756&sum=40000 [10:30:19]StoreToDocumentArchive [10:30:19]shift 507 fd 68402 [10:30:19]save to /storage/0507/doc_00068402 [10:30:19]save last doc name /storage/0507/doc_00068402 to /storage/kkm_last_doc_name [10:30:19]save OK [10:30:19]Clear old archive folders... [10:30:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:30:19]tlvbuf is B6F29860 [10:30:19]SAM_PROTO_ClearQueue [10:30:19]wFMCommunicate request_size=4 [10:30:19]MH_SAM_APDU [10:30:19]CAPDU: 80 09 00 00 [10:30:19]Write to MH i2c: E2 08 00 4E 2C 80 09 00 00 00 00 00 00 EC [10:30:19]Write i2c OK [10:30:19]MH_I2C_Read... [10:30:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:19]Read from MH i2c: E2 [10:30:19]MH_I2C_Read... [10:30:19]Read from MH i2c: E2 03 00 [10:30:19]MH_I2C_Read... [10:30:19]Read from MH i2c: E2 03 00 4E 2C 00 90 00 EE [10:30:19]RAPDU: 90 00 [10:30:19]wFMCommunicate OK [10:30:19]SAM_PROTO_ClearQueue done [10:30:19]KKMCreateOFDPacket [10:30:19]OFDProtocolAddRootSTLVToBuf [10:30:19]FM_MakeSignedData [10:30:19]FM_MakeSignedData [10:30:19]SAM_PROTO_SignData [10:30:19]wFMCommunicate request_size=4 [10:30:19]MH_SAM_APDU [10:30:19]CAPDU: 80 0D 01 02 [10:30:19]Write to MH i2c: E2 08 00 4F 2C 80 0D 01 02 00 00 00 00 F4 [10:30:19]Write i2c OK [10:30:19]MH_I2C_Read... [10:30:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:19]Read from MH i2c: E2 [10:30:19]MH_I2C_Read... [10:30:19]Read from MH i2c: E2 03 00 [10:30:19]MH_I2C_Read... [10:30:19]Read from MH i2c: E2 03 00 4F 2C 00 90 00 EF [10:30:19]RAPDU: 90 00 [10:30:19]wFMCommunicate OK [10:30:19]wFMCommunicate request_size=255 [10:30:19]MH_SAM_APDU [10:30:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 42 D0 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 32 0B 01 00 35 04 06 00 DD 06 80 0A [10:30:19]Write to MH i2c: E2 02 01 50 2C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 42 D0 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 32 0B 01 00 35 04 06 00 DD 06 80 0A 00 00 BE [10:30:19]Write i2c OK [10:30:19]MH_I2C_Read... [10:30:19]OFD Sender: No OFD packet to send [10:30:19]Read from MH i2c: E2 [10:30:19]MH_I2C_Read... [10:30:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:19]Read from MH i2c: E2 03 00 [10:30:19]MH_I2C_Read... [10:30:19]Read from MH i2c: E2 03 00 50 2C 00 90 00 F0 [10:30:19]RAPDU: 90 00 [10:30:19]wFMCommunicate OK [10:30:19]wFMCommunicate request_size=7 [10:30:19]MH_SAM_APDU [10:30:19]CAPDU: 80 0D 02 02 02 40 8A [10:30:19]Write to MH i2c: E2 0A 00 51 2C 80 0D 02 02 02 00 40 8A 00 00 C5 [10:30:19]Write i2c OK [10:30:19]MH_I2C_Read... [10:30:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:19]Read from MH i2c: E2 [10:30:19]MH_I2C_Read... [10:30:19]Read from MH i2c: E2 03 00 [10:30:19]MH_I2C_Read... [10:30:19]Read from MH i2c: E2 03 00 51 2C 00 90 00 F1 [10:30:19]RAPDU: 90 00 [10:30:19]wFMCommunicate OK [10:30:19]wFMCommunicate request_size=4 [10:30:19]MH_SAM_APDU [10:30:19]CAPDU: 80 0D 03 02 [10:30:19]Write to MH i2c: E2 08 00 52 2C 80 0D 03 02 00 00 00 00 F9 [10:30:19]Write i2c OK [10:30:19]MH_I2C_Read... [10:30:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:19]Read from MH i2c: E2 [10:30:19]MH_I2C_Read... [10:30:19]Read from MH i2c: E2 0B 00 [10:30:19]MH_I2C_Read... [10:30:19]Read from MH i2c: E2 0B 00 52 2C 00 A5 51 24 8B 72 17 1A 7C 90 00 BE [10:30:19]RAPDU: A5 51 24 8B 72 17 1A 7C 90 00 [10:30:19]wFMCommunicate OK [10:30:19]SAM_PROTO_SignData done [10:30:19]FM_MakeSignedData done [10:30:19]CreateOFDProtocolMessage [10:30:19]wFMCommunicate request_size=4 [10:30:19]MH_SAM_APDU [10:30:19]CAPDU: 80 11 00 00 [10:30:19]Write to MH i2c: E2 08 00 53 2C 80 11 00 00 00 00 00 00 F9 [10:30:19]Write i2c OK [10:30:19]MH_I2C_Read... [10:30:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:19]Read from MH i2c: E2 [10:30:19]MH_I2C_Read... [10:30:19]Read from MH i2c: E2 17 00 [10:30:19]MH_I2C_Read... [10:30:19]Read from MH i2c: E2 17 00 53 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 4D [10:30:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [10:30:19]wFMCommunicate OK [10:30:19]CreateOFDProtocolMessage done [10:30:19]OFDSenderStorePacket 68402 [10:30:19]StoreOFDPacket docnum=68402 [10:30:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0C 01 00 00 9B DF 04 01 80 7D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 42 D0 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 32 0B 01 00 35 04 06 00 DD 06 80 0A 40 8A A5 51 24 8B 72 17 1A 7C [10:30:19]CheckFolder [10:30:19]dirname=/storage/ofd_packets [10:30:19]CheckFolder done [10:30:19]ProducePacketName [10:30:19]name=ofd_packets/00068402 [10:30:19]NVStorageSaveData ofd_packets/00068402 [10:30:19]File name is /storage/ofd_packets/00068402 [10:30:19]Write 298 bytes [10:30:19]NVStorageSaveData done [10:30:19]OFDSenderStorePacket done [10:30:19]KKMCreateOFDPacket done [10:30:19]NVStorageSaveData kkm_last_timestamp [10:30:19]File name is /storage/kkm_last_timestamp [10:30:19]Write 4 bytes [10:30:19]NVStorageSaveData done [10:30:19]ExternCall_PrintAddStr [10:30:19]wPrintStart [10:30:19]Write to MH i2c: 01 00 00 54 2C 80 [10:30:19]Write i2c OK [10:30:19]MH_I2C_Read... [10:30:19]Read from MH i2c: 01 [10:30:19]MH_I2C_Read... [10:30:19]Read from MH i2c: 01 07 00 [10:30:19]MH_I2C_Read... [10:30:19]Read from MH i2c: 01 07 00 54 2C 00 04 00 00 00 FF 0F 99 [10:30:19]RasterBufferAndPrint [10:30:19]line Счет N : (1)210399 [10:30:19]line ИНН: 02508201610067 [10:30:19]line Контрольно-Кассовый Чек [10:30:19]line ПРОДАЖА [10:30:19]line ТРК (МРК, ГНК) : 21 [10:30:19]line Товар: 2710194210 [10:30:19]line ДТ-К-2 [10:30:19]line 5.250 * 76.20 [10:30:19]line = 400.05 [10:30:19]line НДС 12% НСП 1% [10:30:19]line > о реализуемом товаре [10:30:19]line ОКРУГЛЕНИЕ: -0.05 [10:30:19]line ИТОГО: 400.00 [10:30:19]line Внесено: 400.00 [10:30:19]line СДАЧА: 0.00 [10:30:19]line НСП 1% : 3.54 [10:30:19]line НДС 12% : 42.48 [10:30:19]line Наличными: 400.00 [10:30:19]line Безнал.: 0.00 [10:30:19]line Место: АЗС № 147 "Партнер Нефть" [10:30:19]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [10:30:19]line СНО: Общий режим [10:30:19]line Чек 25 23.10.2024 10:30 [10:30:19]line Смена: 507 ФФД: 1.0 [10:30:19]line ЗНМ: 0300000094 [10:30:19]line РНМ: 0000000000091756 [10:30:19]line Версия ККМ: 001 [10:30:19]line ФМ: 0000000000871809 [10:30:19]line ФД: 68402 [10:30:19]line ФПД: 243019987697802 [10:30:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103026&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68402&fm=243019987697802&tin=02508201610067®Number=0000000000091756&sum=40000 [10:30:19]OFD Sender: Processing packet 68402 [packets to send 8, broken 7] [10:30:19]ProducePacketName [10:30:19]name=ofd_packets/00068402 [10:30:19]OFD Sender: To server: pG, [10:30:19]CommunicateWithHost lk.salyk.kg:30040 [10:30:19]ConnectInit lk.salyk.kg [10:30:19]written 0, free lines is 4095 [10:30:19]Connected sock=10 [10:30:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0C 01 00 00 9B DF 04 01 80 7D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 42 D0 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 32 0B 01 00 35 04 06 00 DD 06 80 0A 40 8A A5 51 24 8B 72 17 1A 7C [10:30:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 DF 37 47 00 6E 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 31 38 30 39 10 04 04 00 32 0B 01 00 F4 03 04 00 37 76 18 67 B6 04 01 00 00 9A 1E 62 95 0D 16 6E DE [10:30:20]CommunicateWithHost err = 0 [10:30:20]CheckOFDResponse [10:30:20]1017 (14) - 77093643461234 [10:30:20]1041 (16) - 0000000000871809 [10:30:20]1040 (4) - 68402 [10:30:20]1012 (4) - 23.10.2024 04:06 [10:30:20]1206 (1) - 0 [10:30:20]OFD Sender: Remove packet 68402 [10:30:20]ProducePacketName [10:30:20]name=ofd_packets/00068402 [10:30:20]NVStorageDeleteData [10:30:20]Write to MH i2c: 01 00 00 7E 2C AA [10:30:20]Write i2c OK [10:30:20]MH_I2C_Read... [10:30:20]Read from MH i2c: 01 [10:30:20]MH_I2C_Read... [10:30:20]Read from MH i2c: 01 07 00 [10:30:20]MH_I2C_Read... [10:30:20]Read from MH i2c: 01 07 00 7E 2C 00 04 00 00 00 A6 0C 67 [10:30:20]RasterBufferAndPrint [10:30:20]line [10:30:20]line [10:30:20]line [10:30:20]line [10:30:20]line [10:30:20]written 0, free lines is 3242 [10:30:20]MH_Cut [10:30:20]Write to MH i2c: D1 01 00 85 2C 01 83 [10:30:20]Write i2c OK [10:30:20]MH_I2C_Read... [10:30:20]Read from MH i2c: D1 [10:30:20]MH_I2C_Read... [10:30:20]Read from MH i2c: D1 01 00 [10:30:20]MH_I2C_Read... [10:30:20]Read from MH i2c: D1 01 00 85 2C 00 82 [10:30:20]Write to MH i2c: 01 00 00 86 2C B2 [10:30:20]Write i2c OK [10:30:20]MH_I2C_Read... [10:30:20]OFD Sender: No OFD packet to send [10:30:21]*** Cut start [10:30:21]*** Partial cut [10:30:21]*** CUTSNS_PIN = 1 [10:30:21]*** CUTSNS_PIN = 0 [10:30:21]*** Brake cut motor [10:30:21]Read from MH i2c: 01 [10:30:21]MH_I2C_Read... [10:30:21]*** Stop cut motor [10:30:21]*** Cut end [10:30:21]Read from MH i2c: 01 07 00 [10:30:21]MH_I2C_Read... [10:30:21]Read from MH i2c: 01 07 00 86 2C 00 04 00 00 00 FF 0F CB [10:30:21]process_action close_receipt done [10:30:21]requested_data is exist [10:30:21]produce_requested_data [10:30:21]requested_item fm.sn is exist - process it [10:30:21]wFMCommunicate request_size=4 [10:30:21]MH_SAM_APDU [10:30:21]CAPDU: 80 11 00 00 [10:30:21]Write to MH i2c: E2 08 00 87 2C 80 11 00 00 00 00 00 00 2D [10:30:21]Write i2c OK [10:30:21]MH_I2C_Read... [10:30:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:21]Read from MH i2c: E2 [10:30:21]MH_I2C_Read... [10:30:21]Read from MH i2c: E2 17 00 [10:30:21]MH_I2C_Read... [10:30:21]Read from MH i2c: E2 17 00 87 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 81 [10:30:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [10:30:21]wFMCommunicate OK [10:30:21]requested_item fd.num is exist - process it [10:30:21]SAM_PROTO_GetFieldsCounters [10:30:21]wFMCommunicate request_size=4 [10:30:21]MH_SAM_APDU [10:30:21]CAPDU: 80 13 00 00 [10:30:21]Write to MH i2c: E2 08 00 88 2C 80 13 00 00 00 00 00 00 30 [10:30:21]Write i2c OK [10:30:21]MH_I2C_Read... [10:30:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:21]Read from MH i2c: E2 [10:30:21]MH_I2C_Read... [10:30:21]Read from MH i2c: E2 62 00 [10:30:21]MH_I2C_Read... [10:30:21]Read from MH i2c: E2 62 00 88 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 32 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [10:30:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 32 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:30:21]wFMCommunicate OK [10:30:21]SAM_PROTO_GetFieldsCounters done [10:30:21]requested_item shift.num is exist - process it [10:30:21]requested_item shift.opened is exist - process it [10:30:21]req_shift_opened [10:30:21]FM_GetShiftState [10:30:21]SAM_PROTO_GetShiftState [10:30:21]wFMCommunicate request_size=4 [10:30:21]MH_SAM_APDU [10:30:21]CAPDU: 80 13 01 00 [10:30:21]Write to MH i2c: E2 08 00 89 2C 80 13 01 00 00 00 00 00 32 [10:30:21]Write i2c OK [10:30:21]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 89 2C 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 A1 [10:30:22]RAPDU: 09 00 01 A9 3B 18 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]req_shift_opened done [10:30:22]requested_item shift.open_date is exist - process it [10:30:22]req_shift_open_date [10:30:22]req_shift_open_date done [10:30:22]produce_requested_data done [10:30:22]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68402,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [10:30:22]process_action_free close_receipt [10:30:22]json_value_free [10:30:22]json_value_free done [10:30:22]process_json_proto returns [10:30:22]Send response to host [10:30:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68402,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [10:30:22]free response buf [10:30:22]execute_script done [10:30:22]execute_script returns [10:30:22]free content buf [10:30:22]Sock 9.Close socket [10:30:22]Sock 9.Thread stoped [10:30:25]OFD Sender: No OFD packet to send [10:30:30]OFD Sender: No OFD packet to send [10:30:35]OFD Sender: No OFD packet to send [10:30:40]OFD Sender: No OFD packet to send [10:30:45]OFD Sender: No OFD packet to send [10:30:50]OFD Sender: No OFD packet to send [10:30:55]OFD Sender: No OFD packet to send [10:31:00]OFD Sender: No OFD packet to send [10:31:05]OFD Sender: No OFD packet to send [10:31:10]OFD Sender: No OFD packet to send [10:31:15]OFD Sender: No OFD packet to send [10:31:20]OFD Sender: No OFD packet to send [10:31:25]OFD Sender: No OFD packet to send [10:31:30]OFD Sender: No OFD packet to send [10:31:35]OFD Sender: No OFD packet to send [10:31:40]OFD Sender: No OFD packet to send [10:31:45]OFD Sender: No OFD packet to send [10:31:50]OFD Sender: No OFD packet to send [10:31:55]OFD Sender: No OFD packet to send [10:32:00]OFD Sender: No OFD packet to send [10:32:05]OFD Sender: No OFD packet to send [10:32:10]OFD Sender: No OFD packet to send [10:32:15]OFD Sender: No OFD packet to send [10:32:20]OFD Sender: No OFD packet to send [10:32:25]OFD Sender: No OFD packet to send [10:32:30]OFD Sender: No OFD packet to send [10:32:35]OFD Sender: No OFD packet to send [10:32:40]OFD Sender: No OFD packet to send [10:32:45]OFD Sender: No OFD packet to send [10:32:50]OFD Sender: No OFD packet to send [10:32:55]OFD Sender: No OFD packet to send [10:33:00]OFD Sender: No OFD packet to send [10:33:05]OFD Sender: No OFD packet to send [10:33:10]OFD Sender: No OFD packet to send [10:33:15]OFD Sender: No OFD packet to send [10:33:20]OFD Sender: No OFD packet to send [10:33:25]OFD Sender: No OFD packet to send [10:33:30]OFD Sender: No OFD packet to send [10:33:35]OFD Sender: No OFD packet to send [10:33:40]OFD Sender: No OFD packet to send [10:33:45]OFD Sender: No OFD packet to send [10:33:50]OFD Sender: No OFD packet to send [10:33:55]OFD Sender: No OFD packet to send [10:34:00]OFD Sender: No OFD packet to send [10:34:05]OFD Sender: No OFD packet to send [10:34:10]OFD Sender: No OFD packet to send [10:34:15]OFD Sender: No OFD packet to send [10:34:20]OFD Sender: No OFD packet to send [10:34:25]OFD Sender: No OFD packet to send [10:34:30]OFD Sender: No OFD packet to send [10:34:35]OFD Sender: No OFD packet to send [10:34:40]OFD Sender: No OFD packet to send [10:34:45]OFD Sender: No OFD packet to send [10:34:50]OFD Sender: No OFD packet to send [10:34:55]OFD Sender: No OFD packet to send [10:35:00]OFD Sender: No OFD packet to send [10:35:05]OFD Sender: No OFD packet to send [10:35:10]OFD Sender: No OFD packet to send [10:35:15]OFD Sender: No OFD packet to send [10:35:20]OFD Sender: No OFD packet to send [10:35:25]OFD Sender: No OFD packet to send [10:35:30]OFD Sender: No OFD packet to send [10:35:35]OFD Sender: No OFD packet to send [10:35:40]OFD Sender: No OFD packet to send [10:35:45]OFD Sender: No OFD packet to send [10:35:50]OFD Sender: No OFD packet to send [10:35:55]OFD Sender: No OFD packet to send [10:36:00]OFD Sender: No OFD packet to send [10:36:05]OFD Sender: No OFD packet to send [10:36:10]OFD Sender: No OFD packet to send [10:36:15]OFD Sender: No OFD packet to send [10:36:20]OFD Sender: No OFD packet to send [10:36:25]OFD Sender: No OFD packet to send [10:36:30]OFD Sender: No OFD packet to send [10:36:35]OFD Sender: No OFD packet to send [10:36:40]OFD Sender: No OFD packet to send [10:36:45]OFD Sender: No OFD packet to send [10:36: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:52]accept exits with 7 [10:37:52]New connection [10:37:52]New thread 3067276644 created [10:37:52]Thread 3067133284 joined [10:37:52]Waiting for new connection... [10:37:52] Sock 7.Parse request [10:37:52]Sock 7.Check first char [10:37:52]Sock 7.First char is OK [10:37:52]request: POST /json_proto HTTP/1.0 [10:37:52]Method: POST [10:37:52]URL: /json_proto [10:37:52]Method is POST - this is cgi request [10:37:52]url: /json_proto [10:37:52]query_string will be loaded in cgi processing [10:37:52]execute_cgi json_proto POST (null) [10:37:52]execute_cgi path=json_proto method=POST [10:37:52]POST find Content-Length [10:37:52]Host: 172.17.52.3:8080 [10:37:52]Content-Length: 674 [10:37:52]Content-Type: application/json [10:37:52] [10:37:52]POST finish read [10:37:52]Found Content-Length = 674 [10:37:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:52]execute_script... [10:37:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:52]POST & json_proto [10:37:52]process_json_proto [10:37:52]json parsed OK: [10:37:52]protocol is kg_v1.0 [10:37:52]action value=close_receipt [10:37:52]process_action close_receipt [10:37:52]cmd_close_receipt [10:37:52]MH_GetDate [10:37:52]Write to MH i2c: F0 00 00 8A 2C A5 [10:37:52]Write i2c OK [10:37:52]MH_I2C_Read... [10:37:52]Read from MH i2c: F0 [10:37:52]MH_I2C_Read... [10:37:52]Read from MH i2c: F0 09 00 [10:37:52]MH_I2C_Read... [10:37:52]Read from MH i2c: F0 09 00 8A 2C 00 08 D2 18 67 D7 68 A5 64 4F [10:37:52]GetLastDocTimeStamp 1729679426 [10:37:52]current date 1729679880 [10:37:52]FM_GetShiftState [10:37:52]SAM_PROTO_GetShiftState [10:37:52]wFMCommunicate request_size=4 [10:37:52]MH_SAM_APDU [10:37:52]CAPDU: 80 13 01 00 [10:37:52]Write to MH i2c: E2 08 00 8B 2C 80 13 01 00 00 00 00 00 34 [10:37:52]Write i2c OK [10:37:52]MH_I2C_Read... [10:37:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:52]Read from MH i2c: E2 [10:37:52]MH_I2C_Read... [10:37:52]Read from MH i2c: E2 0E 00 [10:37:52]MH_I2C_Read... [10:37:52]Read from MH i2c: E2 0E 00 8B 2C 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 A3 [10:37:52]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [10:37:52]wFMCommunicate OK [10:37:52]SAM_PROTO_GetShiftState done [10:37:52]FM_GetShiftState done [10:37:52]opened in 1729641385 [10:37:52]opened+sec_in_day 1729727785 [10:37:52]quantity*price = 70027 [10:37:52]sum+1 = 70029 [10:37:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 26 23.10.2024 10:38 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68403 ФПД: 169378780288089 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103800&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68403&fm=169378780288089&tin=02508201610067®Number=0000000000091756&sum=70000 [10:37:53]StoreToDocumentArchive [10:37:53]shift 507 fd 68403 [10:37:53]save to /storage/0507/doc_00068403 [10:37:53]save last doc name /storage/0507/doc_00068403 to /storage/kkm_last_doc_name [10:37:53]save OK [10:37:53]Clear old archive folders... [10:37:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:37:53]tlvbuf is B6FA7230 [10:37:53]SAM_PROTO_ClearQueue [10:37:53]wFMCommunicate request_size=4 [10:37:53]MH_SAM_APDU [10:37:53]CAPDU: 80 09 00 00 [10:37:53]Write to MH i2c: E2 08 00 98 2C 80 09 00 00 00 00 00 00 36 [10:37:53]Write i2c OK [10:37:53]MH_I2C_Read... [10:37:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:53]Read from MH i2c: E2 [10:37:53]MH_I2C_Read... [10:37:53]Read from MH i2c: E2 03 00 [10:37:53]MH_I2C_Read... [10:37:53]Read from MH i2c: E2 03 00 98 2C 00 90 00 38 [10:37:53]RAPDU: 90 00 [10:37:53]wFMCommunicate OK [10:37:53]SAM_PROTO_ClearQueue done [10:37:53]KKMCreateOFDPacket [10:37:53]OFDProtocolAddRootSTLVToBuf [10:37:53]FM_MakeSignedData [10:37:53]FM_MakeSignedData [10:37:53]SAM_PROTO_SignData [10:37:53]wFMCommunicate request_size=4 [10:37:53]MH_SAM_APDU [10:37:53]CAPDU: 80 0D 01 02 [10:37:53]Write to MH i2c: E2 08 00 99 2C 80 0D 01 02 00 00 00 00 3E [10:37:53]Write i2c OK [10:37:53]MH_I2C_Read... [10:37:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:53]Read from MH i2c: E2 [10:37:53]MH_I2C_Read... [10:37:53]Read from MH i2c: E2 03 00 [10:37:53]MH_I2C_Read... [10:37:53]Read from MH i2c: E2 03 00 99 2C 00 90 00 39 [10:37:53]RAPDU: 90 00 [10:37:53]wFMCommunicate OK [10:37:53]wFMCommunicate request_size=255 [10:37:53]MH_SAM_APDU [10:37:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 08 D2 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 33 0B 01 00 35 04 06 00 9A 0C 92 08 [10:37:53]Write to MH i2c: E2 02 01 9A 2C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 08 D2 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 33 0B 01 00 35 04 06 00 9A 0C 92 08 00 00 AE [10:37:53]Write i2c OK [10:37:53]MH_I2C_Read... [10:37:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:53]Read from MH i2c: E2 [10:37:53]MH_I2C_Read... [10:37:53]Read from MH i2c: E2 03 00 [10:37:53]MH_I2C_Read... [10:37:53]Read from MH i2c: E2 03 00 9A 2C 00 90 00 3A [10:37:53]RAPDU: 90 00 [10:37:53]wFMCommunicate OK [10:37:53]wFMCommunicate request_size=7 [10:37:53]MH_SAM_APDU [10:37:53]CAPDU: 80 0D 02 02 02 14 59 [10:37:53]Write to MH i2c: E2 0A 00 9B 2C 80 0D 02 02 02 00 14 59 00 00 B2 [10:37:53]Write i2c OK [10:37:53]MH_I2C_Read... [10:37:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:53]Read from MH i2c: E2 [10:37:53]MH_I2C_Read... [10:37:53]Read from MH i2c: E2 03 00 [10:37:53]MH_I2C_Read... [10:37:53]Read from MH i2c: E2 03 00 9B 2C 00 90 00 3B [10:37:53]RAPDU: 90 00 [10:37:53]wFMCommunicate OK [10:37:53]wFMCommunicate request_size=4 [10:37:53]MH_SAM_APDU [10:37:53]CAPDU: 80 0D 03 02 [10:37:53]Write to MH i2c: E2 08 00 9C 2C 80 0D 03 02 00 00 00 00 43 [10:37:53]Write i2c OK [10:37:53]MH_I2C_Read... [10:37:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:53]Read from MH i2c: E2 [10:37:53]MH_I2C_Read... [10:37:53]Read from MH i2c: E2 0B 00 [10:37:53]MH_I2C_Read... [10:37:53]Read from MH i2c: E2 0B 00 9C 2C 00 AF E2 B5 79 BC 05 66 6D 90 00 97 [10:37:53]RAPDU: AF E2 B5 79 BC 05 66 6D 90 00 [10:37:53]wFMCommunicate OK [10:37:53]SAM_PROTO_SignData done [10:37:53]FM_MakeSignedData done [10:37:53]CreateOFDProtocolMessage [10:37:53]wFMCommunicate request_size=4 [10:37:53]MH_SAM_APDU [10:37:53]CAPDU: 80 11 00 00 [10:37:53]Write to MH i2c: E2 08 00 9D 2C 80 11 00 00 00 00 00 00 43 [10:37:53]Write i2c OK [10:37:53]MH_I2C_Read... [10:37:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:53]Read from MH i2c: E2 [10:37:53]MH_I2C_Read... [10:37:53]Read from MH i2c: E2 17 00 [10:37:53]MH_I2C_Read... [10:37:53]Read from MH i2c: E2 17 00 9D 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 97 [10:37:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [10:37:53]wFMCommunicate OK [10:37:53]CreateOFDProtocolMessage done [10:37:53]OFDSenderStorePacket 68403 [10:37:53]StoreOFDPacket docnum=68403 [10:37:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0C 01 00 00 BB 81 04 01 65 C8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 08 D2 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 33 0B 01 00 35 04 06 00 9A 0C 92 08 14 59 AF E2 B5 79 BC 05 66 6D [10:37:53]CheckFolder [10:37:53]dirname=/storage/ofd_packets [10:37:53]CheckFolder done [10:37:53]ProducePacketName [10:37:53]name=ofd_packets/00068403 [10:37:53]NVStorageSaveData ofd_packets/00068403 [10:37:53]File name is /storage/ofd_packets/00068403 [10:37:53]Write 298 bytes [10:37:53]NVStorageSaveData done [10:37:53]OFDSenderStorePacket done [10:37:53]KKMCreateOFDPacket done [10:37:53]NVStorageSaveData kkm_last_timestamp [10:37:53]File name is /storage/kkm_last_timestamp [10:37:53]Write 4 bytes [10:37:53]NVStorageSaveData done [10:37:53]ExternCall_PrintAddStr [10:37:53]wPrintStart [10:37:53]Write to MH i2c: 01 00 00 9E 2C CA [10:37:53]Write i2c OK [10:37:53]MH_I2C_Read... [10:37:53]Read from MH i2c: 01 [10:37:53]MH_I2C_Read... [10:37:53]Read from MH i2c: 01 07 00 [10:37:53]MH_I2C_Read... [10:37:53]Read from MH i2c: 01 07 00 9E 2C 00 04 00 00 00 FF 0F E3 [10:37:53]RasterBufferAndPrint [10:37:53]line Счет N : (1)210400 [10:37:53]line ИНН: 02508201610067 [10:37:53]line Контрольно-Кассовый Чек [10:37:53]line ПРОДАЖА [10:37:53]line ТРК (МРК, ГНК) : 32 [10:37:53]line Товар: 2710194210 [10:37:53]line ДТ-К-2 [10:37:53]line 9.190 * 76.20 [10:37:53]line = 700.28 [10:37:53]line НДС 12% НСП 1% [10:37:53]line > о реализуемом товаре [10:37:53]line ОКРУГЛЕНИЕ: -0.28 [10:37:53]line ИТОГО: 700.00 [10:37:53]line Внесено: 700.00 [10:37:53]line СДАЧА: 0.00 [10:37:53]line НСП 1% : 6.20 [10:37:53]line НДС 12% : 74.37 [10:37:53]line Наличными: 700.00 [10:37:53]line Безнал.: 0.00 [10:37:53]line Место: АЗС № 147 "Партнер Нефть" [10:37:53]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [10:37:53]line СНО: Общий режим [10:37:53]line Чек 26 23.10.2024 10:38 [10:37:53]line Смена: 507 ФФД: 1.0 [10:37:53]line ЗНМ: 0300000094 [10:37:53]line РНМ: 0000000000091756 [10:37:53]line Версия ККМ: 001 [10:37:53]line ФМ: 0000000000871809 [10:37:53]line ФД: 68403 [10:37:53]line ФПД: 169378780288089 [10:37:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103800&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68403&fm=169378780288089&tin=02508201610067®Number=0000000000091756&sum=70000 [10:37:54]OFD Sender: Processing packet 68403 [packets to send 8, broken 7] [10:37:54]ProducePacketName [10:37:54]name=ofd_packets/00068403 [10:37:54]OFD Sender: To server: pG, [10:37:54]CommunicateWithHost lk.salyk.kg:30040 [10:37:54]ConnectInit lk.salyk.kg [10:37:54]written 0, free lines is 4095 [10:37:54]Connected sock=11 [10:37:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0C 01 00 00 BB 81 04 01 65 C8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 08 D2 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 33 0B 01 00 35 04 06 00 9A 0C 92 08 14 59 AF E2 B5 79 BC 05 66 6D [10:37:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 7A E6 47 00 83 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 33 0B 01 00 F4 03 04 00 FD 77 18 67 B6 04 01 00 00 78 71 45 C4 EE 27 7E 88 [10:37:54]CommunicateWithHost err = 0 [10:37:54]CheckOFDResponse [10:37:54]1017 (14) - 77093643461234 [10:37:54]1041 (16) - 0000000000871809 [10:37:54]1040 (4) - 68403 [10:37:54]1012 (4) - 23.10.2024 04:13 [10:37:54]1206 (1) - 0 [10:37:54]OFD Sender: Remove packet 68403 [10:37:54]ProducePacketName [10:37:54]name=ofd_packets/00068403 [10:37:54]NVStorageDeleteData [10:37:54]Write to MH i2c: 01 00 00 C8 2C F4 [10:37:54]Write i2c OK [10:37:54]MH_I2C_Read... [10:37:54]Read from MH i2c: 01 [10:37:54]MH_I2C_Read... [10:37:54]Read from MH i2c: 01 07 00 [10:37:54]MH_I2C_Read... [10:37:54]Read from MH i2c: 01 07 00 C8 2C 00 04 00 00 00 A4 0C AF [10:37:54]RasterBufferAndPrint [10:37:54]line [10:37:54]line [10:37:54]line [10:37:54]line [10:37:54]line [10:37:54]written 0, free lines is 3240 [10:37:54]MH_Cut [10:37:54]Write to MH i2c: D1 01 00 CF 2C 01 CD [10:37:54]Write i2c OK [10:37:54]MH_I2C_Read... [10:37:54]Read from MH i2c: D1 [10:37:54]MH_I2C_Read... [10:37:54]Read from MH i2c: D1 01 00 [10:37:54]MH_I2C_Read... [10:37:54]Read from MH i2c: D1 01 00 CF 2C 00 CC [10:37:54]Write to MH i2c: 01 00 00 D0 2C FC [10:37:54]Write i2c OK [10:37:54]MH_I2C_Read... [10:37:54]OFD Sender: No OFD packet to send [10:37:55]*** Cut start [10:37:55]*** Partial cut [10:37:55]*** CUTSNS_PIN = 1 [10:37:55]*** CUTSNS_PIN = 0 [10:37:55]*** Brake cut motor [10:37:55]Read from MH i2c: 01 [10:37:55]MH_I2C_Read... [10:37:55]*** Stop cut motor [10:37:55]*** Cut end [10:37:55]Read from MH i2c: 01 07 00 [10:37:55]MH_I2C_Read... [10:37:55]Read from MH i2c: 01 07 00 D0 2C 00 04 00 00 00 FF 0F 15 [10:37:55]process_action close_receipt done [10:37:55]requested_data is exist [10:37:55]produce_requested_data [10:37:55]requested_item fm.sn is exist - process it [10:37:55]wFMCommunicate request_size=4 [10:37:55]MH_SAM_APDU [10:37:55]CAPDU: 80 11 00 00 [10:37:55]Write to MH i2c: E2 08 00 D1 2C 80 11 00 00 00 00 00 00 77 [10:37:55]Write i2c OK [10:37:55]MH_I2C_Read... [10:37:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:56]Read from MH i2c: E2 [10:37:56]MH_I2C_Read... [10:37:56]Read from MH i2c: E2 17 00 [10:37:56]MH_I2C_Read... [10:37:56]Read from MH i2c: E2 17 00 D1 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 CB [10:37:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [10:37:56]wFMCommunicate OK [10:37:56]requested_item fd.num is exist - process it [10:37:56]SAM_PROTO_GetFieldsCounters [10:37:56]wFMCommunicate request_size=4 [10:37:56]MH_SAM_APDU [10:37:56]CAPDU: 80 13 00 00 [10:37:56]Write to MH i2c: E2 08 00 D2 2C 80 13 00 00 00 00 00 00 7A [10:37:56]Write i2c OK [10:37:56]MH_I2C_Read... [10:37:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:56]Read from MH i2c: E2 [10:37:56]MH_I2C_Read... [10:37:56]Read from MH i2c: E2 62 00 [10:37:56]MH_I2C_Read... [10:37:56]Read from MH i2c: E2 62 00 D2 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 33 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [10:37:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 33 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:37:56]wFMCommunicate OK [10:37:56]SAM_PROTO_GetFieldsCounters done [10:37:56]requested_item shift.num is exist - process it [10:37:56]requested_item shift.opened is exist - process it [10:37:56]req_shift_opened [10:37:56]FM_GetShiftState [10:37:56]SAM_PROTO_GetShiftState [10:37:56]wFMCommunicate request_size=4 [10:37:56]MH_SAM_APDU [10:37:56]CAPDU: 80 13 01 00 [10:37:56]Write to MH i2c: E2 08 00 D3 2C 80 13 01 00 00 00 00 00 7C [10:37:56]Write i2c OK [10:37:56]MH_I2C_Read... [10:37:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:56]Read from MH i2c: E2 [10:37:56]MH_I2C_Read... [10:37:56]Read from MH i2c: E2 0E 00 [10:37:56]MH_I2C_Read... [10:37:56]Read from MH i2c: E2 0E 00 D3 2C 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 EB [10:37:56]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [10:37:56]wFMCommunicate OK [10:37:56]SAM_PROTO_GetShiftState done [10:37:56]FM_GetShiftState done [10:37:56]req_shift_opened done [10:37:56]requested_item shift.open_date is exist - process it [10:37:56]req_shift_open_date [10:37:56]req_shift_open_date done [10:37:56]produce_requested_data done [10:37:56]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68403,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [10:37:56]process_action_free close_receipt [10:37:56]json_value_free [10:37:56]json_value_free done [10:37:56]process_json_proto returns [10:37:56]Send response to host [10:37:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68403,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [10:37:56]free response buf [10:37:56]execute_script done [10:37:56]execute_script returns [10:37:56]free content buf [10:37:56]Sock 7.Close socket [10:37:56]Sock 7.Thread stoped [10:37:59]OFD Sender: No OFD packet to send [10:38:04]OFD Sender: No OFD packet to send [10:38:09]OFD Sender: No OFD packet to send [10:38:14]OFD Sender: No OFD packet to send [10:38:19]OFD Sender: No OFD packet to send [10:38:24]OFD Sender: No OFD packet to send [10:38:29]OFD Sender: No OFD packet to send [10:38:34]OFD Sender: No OFD packet to send [10:38:39]OFD Sender: No OFD packet to send [10:38:44]OFD Sender: No OFD packet to send [10:38:49]OFD Sender: No OFD packet to send [10:38:54]OFD Sender: No OFD packet to send [10:38:59]OFD Sender: No OFD packet to send [10:39:04]OFD Sender: No OFD packet to send [10:39:09]OFD Sender: No OFD packet to send [10:39:14]OFD Sender: No OFD packet to send [10:39:19]OFD Sender: No OFD packet to send [10:39:24]OFD Sender: No OFD packet to send [10:39:29]OFD Sender: No OFD packet to send [10:39:34]OFD Sender: No OFD packet to send [10:39:39]OFD Sender: No OFD packet to send [10:39:44]OFD Sender: No OFD packet to send [10:39:49]OFD Sender: No OFD packet to send [10:39:54]OFD Sender: No OFD packet to send [10:39:59]OFD Sender: No OFD packet to send [10:40:04]OFD Sender: No OFD packet to send [10:40:09]OFD Sender: No OFD packet to send [10:40:14]OFD Sender: No OFD packet to send [10:40:19]OFD Sender: No OFD packet to send [10:40:24]OFD Sender: No OFD packet to send [10:40:30]OFD Sender: No OFD packet to send [10:40:35]OFD Sender: No OFD packet to send [10:40:40]OFD Sender: No OFD packet to send [10:40:45]OFD Sender: No OFD packet to send [10:40:50]OFD Sender: No OFD packet to send [10:40:55]OFD Sender: No OFD packet to send [10:41:00]OFD Sender: No OFD packet to send [10:41:05]OFD Sender: No OFD packet to send [10:41:10]OFD Sender: No OFD packet to send [10:41:15]OFD Sender: No OFD packet to send [10:41:20]OFD Sender: No OFD packet to send [10:41:25]OFD Sender: No OFD packet to send [10:41:30]OFD Sender: No OFD packet to send [10:41:35]OFD Sender: No OFD packet to send [10:41:40]OFD Sender: No OFD packet to send [10:41:45]OFD Sender: No OFD packet to send [10:41:50]OFD Sender: No OFD packet to send [10:41:55]OFD Sender: No OFD packet to send [10:42:00]OFD Sender: No OFD packet to send [10:42:05]OFD Sender: No OFD packet to send [10:42:10]OFD Sender: No OFD packet to send [10:42:15]OFD Sender: No OFD packet to send [10:42:20]OFD Sender: No OFD packet to send [10:42:25]OFD Sender: No OFD packet to send [10:42:30]OFD Sender: No OFD packet to send [10:42:35]OFD Sender: No OFD packet to send [10:42:40]OFD Sender: No OFD packet to send [10:42:45]OFD Sender: No OFD packet to send [10:42:50]OFD Sender: No OFD packet to send [10:42:55]OFD Sender: No OFD packet to send [10:43:00]OFD Sender: No OFD packet to send [10:43:05]OFD Sender: No OFD packet to send [10:43:10]OFD Sender: No OFD packet to send [10:43:15]OFD Sender: No OFD packet to send [10:43:20]OFD Sender: No OFD packet to send [10:43:25]OFD Sender: No OFD packet to send [10:43:30]OFD Sender: No OFD packet to send [10:43:35]OFD Sender: No OFD packet to send [10:43:40]OFD Sender: No OFD packet to send [10:43:45]OFD Sender: No OFD packet to send [10:43:50]OFD Sender: No OFD packet to send [10:43:55]OFD Sender: No OFD packet to send [10:44:00]OFD Sender: No OFD packet to send [10:44:05]OFD Sender: No OFD packet to send [10:44:10]OFD Sender: No OFD packet to send [10:44:15]OFD Sender: No OFD packet to send [10:44:20]OFD Sender: No OFD packet to send [10:44:25]OFD Sender: No OFD packet to send [10:44:30]OFD Sender: No OFD packet to send [10:44:35]OFD Sender: No OFD packet to send [10:44:40]OFD Sender: No OFD packet to send [10:44:45]OFD Sender: No OFD packet to send [10:44:50]OFD Sender: No OFD packet to send [10:44:55]OFD Sender: No OFD packet to send [10:45:00]OFD Sender: No OFD packet to send [10:45:05]OFD Sender: No OFD packet to send [10:45:10]OFD Sender: No OFD packet to send [10:45:15]OFD Sender: No OFD packet to send [10:45:20]OFD Sender: No OFD packet to send [10:45:25]OFD Sender: No OFD packet to send [10:45:30]OFD Sender: No OFD packet to send [10:45:35]OFD Sender: No OFD packet to send [10:45:40]OFD Sender: No OFD packet to send [10:45:45]OFD Sender: No OFD packet to send [10:45:50]OFD Sender: No OFD packet to send [10:45:55]OFD Sender: No OFD packet to send [10:46:00]OFD Sender: No OFD packet to send [10:46:05]OFD Sender: No OFD packet to send [10:46:10]OFD Sender: No OFD packet to send [10:46:15]OFD Sender: No OFD packet to send [10:46:20]OFD Sender: No OFD packet to send [10:46:25]OFD Sender: No OFD packet to send [10:46:30]OFD Sender: No OFD packet to send [10:46:35]OFD Sender: No OFD packet to send [10:46:40]OFD Sender: No OFD packet to send [10:46:45]OFD Sender: No OFD packet to send [10:46:50]OFD Sender: No OFD packet to send [10:46:55]OFD Sender: No OFD packet to send [10:47:00]OFD Sender: No OFD packet to send [10:47:05]OFD Sender: No OFD packet to send [10:47:10]OFD Sender: No OFD packet to send [10:47:15]OFD Sender: No OFD packet to send [10:47:20]OFD Sender: No OFD packet to send [10:47:25]OFD Sender: No OFD packet to send [10:47:30]OFD Sender: No OFD packet to send [10:47:35]OFD Sender: No OFD packet to send [10:47:40]OFD Sender: No OFD packet to send [10:47:45]OFD Sender: No OFD packet to send [10:47:50]OFD Sender: No OFD packet to send [10:47:55]OFD Sender: No OFD packet to send [10:48:00]OFD Sender: No OFD packet to send [10:48:05]OFD Sender: No OFD packet to send [10:48:10]OFD Sender: No OFD packet to send [10:48:15]OFD Sender: No OFD packet to send [10:48:20]OFD Sender: No OFD packet to send [10:48:25]OFD Sender: No OFD packet to send [10:48:30]OFD Sender: No OFD packet to send [10:48:35]OFD Sender: No OFD packet to send [10:48:40]OFD Sender: No OFD packet to send [10:48:45]OFD Sender: No OFD packet to send [10:48:50]OFD Sender: No OFD packet to send [10:48:55]OFD Sender: No OFD packet to send [10:49:00]OFD Sender: No OFD packet to send [10:49:05]OFD Sender: No OFD packet to send [10:49:10]OFD Sender: No OFD packet to send [10:49:15]OFD Sender: No OFD packet to send [10:49:20]OFD Sender: No OFD packet to send [10:49:25]OFD Sender: No OFD packet to send [10:49:30]OFD Sender: No OFD packet to send [10:49:35]OFD Sender: No OFD packet to send [10:49:40]OFD Sender: No OFD packet to send [10:49:45]OFD Sender: No OFD packet to send [10:49:50]OFD Sender: No OFD packet to send [10:49:55]OFD Sender: No OFD packet to send [10:50:00]OFD Sender: No OFD packet to send [10:50:04]accept exits with 9 [10:50:04]New connection [10:50:04]New thread 3067133284 created [10:50:04]Thread 3067276644 joined [10:50:04]Waiting for new connection... [10:50:04] Sock 9.Parse request [10:50:04]Sock 9.Check first char [10:50:04]Sock 9.First char is OK [10:50:04]request: POST /json_proto HTTP/1.0 [10:50:04]Method: POST [10:50:04]URL: /json_proto [10:50:04]Method is POST - this is cgi request [10:50:04]url: /json_proto [10:50:04]query_string will be loaded in cgi processing [10:50:04]execute_cgi json_proto POST (null) [10:50:04]execute_cgi path=json_proto method=POST [10:50:04]POST find Content-Length [10:50:04]Host: 172.17.52.3:8080 [10:50:04]Content-Length: 677 [10:50:04]Content-Type: application/json [10:50:04] [10:50:04]POST finish read [10:50:04]Found Content-Length = 677 [10:50:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210401", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:04]execute_script... [10:50: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)210401", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:04]POST & json_proto [10:50:04]process_json_proto [10:50:04]json parsed OK: [10:50:04]protocol is kg_v1.0 [10:50:04]action value=close_receipt [10:50:04]process_action close_receipt [10:50:04]cmd_close_receipt [10:50:04]MH_GetDate [10:50:04]Write to MH i2c: F0 00 00 D4 2C EF [10:50:04]Write i2c OK [10:50:04]MH_I2C_Read... [10:50:04]Read from MH i2c: F0 [10:50:04]MH_I2C_Read... [10:50:04]Read from MH i2c: F0 09 00 [10:50:04]MH_I2C_Read... [10:50:04]Read from MH i2c: F0 09 00 D4 2C 00 E4 D4 18 67 D7 68 A5 64 77 [10:50:04]GetLastDocTimeStamp 1729679880 [10:50:04]current date 1729680612 [10:50:04]FM_GetShiftState [10:50:04]SAM_PROTO_GetShiftState [10:50:04]wFMCommunicate request_size=4 [10:50:04]MH_SAM_APDU [10:50:04]CAPDU: 80 13 01 00 [10:50:04]Write to MH i2c: E2 08 00 D5 2C 80 13 01 00 00 00 00 00 7E [10:50:04]Write i2c OK [10:50:04]MH_I2C_Read... [10:50:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:04]Read from MH i2c: E2 [10:50:04]MH_I2C_Read... [10:50:04]Read from MH i2c: E2 0E 00 [10:50:04]MH_I2C_Read... [10:50:04]Read from MH i2c: E2 0E 00 D5 2C 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 ED [10:50:04]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [10:50:04]wFMCommunicate OK [10:50:04]SAM_PROTO_GetShiftState done [10:50:04]FM_GetShiftState done [10:50:04]opened in 1729641385 [10:50:04]opened+sec_in_day 1729727785 [10:50:04]quantity*price = 30038 [10:50:04]sum+1 = 30039 [10:50:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 27 23.10.2024 10:50 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68404 ФПД: 60277940353675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105012&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68404&fm=60277940353675&tin=02508201610067®Number=0000000000091756&sum=30000 [10:50:05]StoreToDocumentArchive [10:50:05]shift 507 fd 68404 [10:50:05]save to /storage/0507/doc_00068404 [10:50:05]save last doc name /storage/0507/doc_00068404 to /storage/kkm_last_doc_name [10:50:05]save OK [10:50:05]Clear old archive folders... [10:50:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:50:05]tlvbuf is 02022940 [10:50:05]SAM_PROTO_ClearQueue [10:50:05]wFMCommunicate request_size=4 [10:50:05]MH_SAM_APDU [10:50:05]CAPDU: 80 09 00 00 [10:50:05]Write to MH i2c: E2 08 00 E2 2C 80 09 00 00 00 00 00 00 80 [10:50:05]Write i2c OK [10:50:05]MH_I2C_Read... [10:50:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:05]Read from MH i2c: E2 [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: E2 03 00 [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: E2 03 00 E2 2C 00 90 00 82 [10:50:05]RAPDU: 90 00 [10:50:05]wFMCommunicate OK [10:50:05]SAM_PROTO_ClearQueue done [10:50:05]KKMCreateOFDPacket [10:50:05]OFDProtocolAddRootSTLVToBuf [10:50:05]FM_MakeSignedData [10:50:05]FM_MakeSignedData [10:50:05]SAM_PROTO_SignData [10:50:05]wFMCommunicate request_size=4 [10:50:05]MH_SAM_APDU [10:50:05]CAPDU: 80 0D 01 02 [10:50:05]Write to MH i2c: E2 08 00 E3 2C 80 0D 01 02 00 00 00 00 88 [10:50:05]Write i2c OK [10:50:05]MH_I2C_Read... [10:50:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:05]Read from MH i2c: E2 [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: E2 03 00 [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: E2 03 00 E3 2C 00 90 00 83 [10:50:05]RAPDU: 90 00 [10:50:05]wFMCommunicate OK [10:50:05]wFMCommunicate request_size=255 [10:50:05]MH_SAM_APDU [10:50: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 32 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 1B 00 00 00 F4 03 04 00 E4 D4 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 34 0B 01 00 35 04 06 00 36 [10:50:05]Write to MH i2c: E2 02 01 E4 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 1B 00 00 00 F4 03 04 00 E4 D4 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 34 0B 01 00 35 04 06 00 36 00 00 D0 [10:50:05]Write i2c OK [10:50:05]MH_I2C_Read... [10:50:05]OFD Sender: No OFD packet to send [10:50:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:05]Read from MH i2c: E2 [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: E2 03 00 [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: E2 03 00 E4 2C 00 90 00 84 [10:50:05]RAPDU: 90 00 [10:50:05]wFMCommunicate OK [10:50:05]wFMCommunicate request_size=10 [10:50:05]MH_SAM_APDU [10:50:05]CAPDU: 80 0D 02 02 05 D2 8D 38 FA 8B [10:50:05]Write to MH i2c: E2 0D 00 E5 2C 80 0D 02 02 05 00 D2 8D 38 FA 8B 00 00 B1 [10:50:05]Write i2c OK [10:50:05]MH_I2C_Read... [10:50:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:05]Read from MH i2c: E2 [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: E2 03 00 [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: E2 03 00 E5 2C 00 90 00 85 [10:50:05]RAPDU: 90 00 [10:50:05]wFMCommunicate OK [10:50:05]wFMCommunicate request_size=4 [10:50:05]MH_SAM_APDU [10:50:05]CAPDU: 80 0D 03 02 [10:50:05]Write to MH i2c: E2 08 00 E6 2C 80 0D 03 02 00 00 00 00 8D [10:50:05]Write i2c OK [10:50:05]MH_I2C_Read... [10:50:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:05]Read from MH i2c: E2 [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: E2 0B 00 [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: E2 0B 00 E6 2C 00 CB 4E EC 1E 70 51 D8 01 90 00 4B [10:50:05]RAPDU: CB 4E EC 1E 70 51 D8 01 90 00 [10:50:05]wFMCommunicate OK [10:50:05]SAM_PROTO_SignData done [10:50:05]FM_MakeSignedData done [10:50:05]CreateOFDProtocolMessage [10:50:05]wFMCommunicate request_size=4 [10:50:05]MH_SAM_APDU [10:50:05]CAPDU: 80 11 00 00 [10:50:05]Write to MH i2c: E2 08 00 E7 2C 80 11 00 00 00 00 00 00 8D [10:50:05]Write i2c OK [10:50:05]MH_I2C_Read... [10:50:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:05]Read from MH i2c: E2 [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: E2 17 00 [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: E2 17 00 E7 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 E1 [10:50:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [10:50:05]wFMCommunicate OK [10:50:05]CreateOFDProtocolMessage done [10:50:05]OFDSenderStorePacket 68404 [10:50:05]StoreOFDPacket docnum=68404 [10:50:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 DC E0 07 01 DE 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 1B 00 00 00 F4 03 04 00 E4 D4 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 34 0B 01 00 35 04 06 00 36 D2 8D 38 FA 8B CB 4E EC 1E 70 51 D8 01 [10:50:05]CheckFolder [10:50:05]dirname=/storage/ofd_packets [10:50:05]CheckFolder done [10:50:05]ProducePacketName [10:50:05]name=ofd_packets/00068404 [10:50:05]NVStorageSaveData ofd_packets/00068404 [10:50:05]File name is /storage/ofd_packets/00068404 [10:50:05]Write 301 bytes [10:50:05]NVStorageSaveData done [10:50:05]OFDSenderStorePacket done [10:50:05]KKMCreateOFDPacket done [10:50:05]NVStorageSaveData kkm_last_timestamp [10:50:05]File name is /storage/kkm_last_timestamp [10:50:05]Write 4 bytes [10:50:05]NVStorageSaveData done [10:50:05]ExternCall_PrintAddStr [10:50:05]wPrintStart [10:50:05]Write to MH i2c: 01 00 00 E8 2C 14 [10:50:05]Write i2c OK [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: 01 [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: 01 07 00 [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: 01 07 00 E8 2C 00 04 00 00 00 FF 0F 2D [10:50:05]RasterBufferAndPrint [10:50:05]line Счет N : (1)210401 [10:50:05]line ИНН: 02508201610067 [10:50:05]line Контрольно-Кассовый Чек [10:50:05]line ПРОДАЖА [10:50:05]line ТРК (МРК, ГНК) : 11 [10:50:05]line Товар: 2710124130 [10:50:05]line Аи-92-К-2 [10:50:05]line 4.490 * 66.90 [10:50:05]line = 300.38 [10:50:05]line НДС 12% НСП 1% [10:50:05]line > о реализуемом товаре [10:50:05]line ОКРУГЛЕНИЕ: -0.38 [10:50:05]line ИТОГО: 300.00 [10:50:05]line Внесено: 300.00 [10:50:05]line СДАЧА: 0.00 [10:50:05]line НСП 1% : 2.66 [10:50:05]line НДС 12% : 31.90 [10:50:05]line Наличными: 300.00 [10:50:05]line Безнал.: 0.00 [10:50:05]line Место: АЗС № 147 "Партнер Нефть" [10:50:05]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [10:50:05]line СНО: Общий режим [10:50:05]line Чек 27 23.10.2024 10:50 [10:50:05]line Смена: 507 ФФД: 1.0 [10:50:05]line ЗНМ: 0300000094 [10:50:05]line РНМ: 0000000000091756 [10:50:05]line Версия ККМ: 001 [10:50:05]line ФМ: 0000000000871809 [10:50:05]line ФД: 68404 [10:50:05]line ФПД: 60277940353675 [10:50:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105012&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68404&fm=60277940353675&tin=02508201610067®Number=0000000000091756&sum=30000 [10:50:06]OFD Sender: Processing packet 68404 [packets to send 8, broken 7] [10:50:06]ProducePacketName [10:50:06]name=ofd_packets/00068404 [10:50:06]OFD Sender: To server: pG, [10:50:06]CommunicateWithHost lk.salyk.kg:30040 [10:50:06]ConnectInit lk.salyk.kg [10:50:06]written 0, free lines is 4095 [10:50:06]Connected sock=10 [10:50:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 DC E0 07 01 DE 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 1B 00 00 00 F4 03 04 00 E4 D4 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 34 0B 01 00 35 04 06 00 36 D2 8D 38 FA 8B CB 4E EC 1E 70 51 D8 01 [10:50:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 6D F8 47 00 A2 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 34 0B 01 00 F4 03 04 00 D9 7A 18 67 B6 04 01 00 00 AD EE A7 83 D6 91 9B DE [10:50:06]CommunicateWithHost err = 0 [10:50:06]CheckOFDResponse [10:50:06]1017 (14) - 77093643461234 [10:50:06]1041 (16) - 0000000000871809 [10:50:06]1040 (4) - 68404 [10:50:06]1012 (4) - 23.10.2024 04:26 [10:50:06]1206 (1) - 0 [10:50:06]OFD Sender: Remove packet 68404 [10:50:06]ProducePacketName [10:50:06]name=ofd_packets/00068404 [10:50:06]NVStorageDeleteData [10:50:06]Write to MH i2c: 01 00 00 12 2D 3F [10:50:06]Write i2c OK [10:50:06]MH_I2C_Read... [10:50:06]Read from MH i2c: 01 [10:50:06]MH_I2C_Read... [10:50:06]Read from MH i2c: 01 07 00 [10:50:06]MH_I2C_Read... [10:50:06]Read from MH i2c: 01 07 00 12 2D 00 04 00 00 00 9A 0C F0 [10:50:06]RasterBufferAndPrint [10:50:06]line [10:50:06]line [10:50:06]line [10:50:06]line [10:50:06]line [10:50:06]written 0, free lines is 3229 [10:50:06]MH_Cut [10:50:06]Write to MH i2c: D1 01 00 19 2D 01 18 [10:50:06]Write i2c OK [10:50:06]MH_I2C_Read... [10:50:06]Read from MH i2c: D1 [10:50:06]MH_I2C_Read... [10:50:06]Read from MH i2c: D1 01 00 [10:50:06]MH_I2C_Read... [10:50:06]Read from MH i2c: D1 01 00 19 2D 00 17 [10:50:06]Write to MH i2c: 01 00 00 1A 2D 47 [10:50:06]Write i2c OK [10:50:06]MH_I2C_Read... [10:50:07]OFD Sender: No OFD packet to send [10:50:07]*** Cut start [10:50:07]*** Partial cut [10:50:07]*** CUTSNS_PIN = 1 [10:50:07]*** CUTSNS_PIN = 0 [10:50:07]*** Brake cut motor [10:50:08]Read from MH i2c: 01 [10:50:08]MH_I2C_Read... [10:50:08]*** Stop cut motor [10:50:08]*** Cut end [10:50:08]Read from MH i2c: 01 07 00 [10:50:08]MH_I2C_Read... [10:50:08]Read from MH i2c: 01 07 00 1A 2D 00 04 00 00 00 FF 0F 60 [10:50:08]process_action close_receipt done [10:50:08]requested_data is exist [10:50:08]produce_requested_data [10:50:08]requested_item fm.sn is exist - process it [10:50:08]wFMCommunicate request_size=4 [10:50:08]MH_SAM_APDU [10:50:08]CAPDU: 80 11 00 00 [10:50:08]Write to MH i2c: E2 08 00 1B 2D 80 11 00 00 00 00 00 00 C2 [10:50:08]Write i2c OK [10:50:08]MH_I2C_Read... [10:50:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:08]Read from MH i2c: E2 [10:50:08]MH_I2C_Read... [10:50:08]Read from MH i2c: E2 17 00 [10:50:08]MH_I2C_Read... [10:50:08]Read from MH i2c: E2 17 00 1B 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 16 [10:50:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [10:50:08]wFMCommunicate OK [10:50:08]requested_item fd.num is exist - process it [10:50:08]SAM_PROTO_GetFieldsCounters [10:50:08]wFMCommunicate request_size=4 [10:50:08]MH_SAM_APDU [10:50:08]CAPDU: 80 13 00 00 [10:50:08]Write to MH i2c: E2 08 00 1C 2D 80 13 00 00 00 00 00 00 C5 [10:50:08]Write i2c OK [10:50:08]MH_I2C_Read... [10:50:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:08]Read from MH i2c: E2 [10:50:08]MH_I2C_Read... [10:50:08]Read from MH i2c: E2 62 00 [10:50:08]MH_I2C_Read... [10:50:08]Read from MH i2c: E2 62 00 1C 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 34 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [10:50:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 34 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:50:08]wFMCommunicate OK [10:50:08]SAM_PROTO_GetFieldsCounters done [10:50:08]requested_item shift.num is exist - process it [10:50:08]requested_item shift.opened is exist - process it [10:50:08]req_shift_opened [10:50:08]FM_GetShiftState [10:50:08]SAM_PROTO_GetShiftState [10:50:08]wFMCommunicate request_size=4 [10:50:08]MH_SAM_APDU [10:50:08]CAPDU: 80 13 01 00 [10:50:08]Write to MH i2c: E2 08 00 1D 2D 80 13 01 00 00 00 00 00 C7 [10:50:08]Write i2c OK [10:50:08]MH_I2C_Read... [10:50:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:08]Read from MH i2c: E2 [10:50:08]MH_I2C_Read... [10:50:08]Read from MH i2c: E2 0E 00 [10:50:08]MH_I2C_Read... [10:50:08]Read from MH i2c: E2 0E 00 1D 2D 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 36 [10:50:08]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [10:50:08]wFMCommunicate OK [10:50:08]SAM_PROTO_GetShiftState done [10:50:08]FM_GetShiftState done [10:50:08]req_shift_opened done [10:50:08]requested_item shift.open_date is exist - process it [10:50:08]req_shift_open_date [10:50:08]req_shift_open_date done [10:50:08]produce_requested_data done [10:50:08]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68404,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [10:50:08]process_action_free close_receipt [10:50:08]json_value_free [10:50:08]json_value_free done [10:50:08]process_json_proto returns [10:50:08]Send response to host [10:50:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68404,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [10:50:08]free response buf [10:50:08]execute_script done [10:50:08]execute_script returns [10:50:08]free content buf [10:50:08]Sock 9.Close socket [10:50:08]Sock 9.Thread stoped [10:50:12]OFD Sender: No OFD packet to send [10:50:17]OFD Sender: No OFD packet to send [10:50:22]OFD Sender: No OFD packet to send [10:50:27]OFD Sender: No OFD packet to send [10:50:32]OFD Sender: No OFD packet to send [10:50:37]OFD Sender: No OFD packet to send [10:50:42]OFD Sender: No OFD packet to send [10:50:47]OFD Sender: No OFD packet to send [10:50:52]OFD Sender: No OFD packet to send [10:50:57]OFD Sender: No OFD packet to send [10:51:02]OFD Sender: No OFD packet to send [10:51:07]OFD Sender: No OFD packet to send [10:51:12]OFD Sender: No OFD packet to send [10:51:17]OFD Sender: No OFD packet to send [10:51:22]OFD Sender: No OFD packet to send [10:51:27]OFD Sender: No OFD packet to send [10:51:32]OFD Sender: No OFD packet to send [10:51:37]OFD Sender: No OFD packet to send [10:51:42]OFD Sender: No OFD packet to send [10:51:47]OFD Sender: No OFD packet to send [10:51:52]OFD Sender: No OFD packet to send [10:51:57]OFD Sender: No OFD packet to send [10:52:02]OFD Sender: No OFD packet to send [10:52:07]OFD Sender: No OFD packet to send [10:52:12]OFD Sender: No OFD packet to send [10:52:17]OFD Sender: No OFD packet to send [10:52:22]OFD Sender: No OFD packet to send [10:52:27]OFD Sender: No OFD packet to send [10:52:32]OFD Sender: No OFD packet to send [10:52:37]OFD Sender: No OFD packet to send [10:52:42]OFD Sender: No OFD packet to send [10:52:47]OFD Sender: No OFD packet to send [10:52:52]OFD Sender: No OFD packet to send [10:52:57]OFD Sender: No OFD packet to send [10:53:02]OFD Sender: No OFD packet to send [10:53:07]OFD Sender: No OFD packet to send [10:53:12]OFD Sender: No OFD packet to send [10:53:17]OFD Sender: No OFD packet to send [10:53:22]OFD Sender: No OFD packet to send [10:53:27]OFD Sender: No OFD packet to send [10:53:32]OFD Sender: No OFD packet to send [10:53:37]OFD Sender: No OFD packet to send [10:53:42]OFD Sender: No OFD packet to send [10:53:47]OFD Sender: No OFD packet to send [10:53:52]OFD Sender: No OFD packet to send [10:53:57]OFD Sender: No OFD packet to send [10:54:02]OFD Sender: No OFD packet to send [10:54:07]OFD Sender: No OFD packet to send [10:54:12]OFD Sender: No OFD packet to send [10:54:17]OFD Sender: No OFD packet to send [10:54:22]OFD Sender: No OFD packet to send [10:54:27]OFD Sender: No OFD packet to send [10:54:32]OFD Sender: No OFD packet to send [10:54:37]OFD Sender: No OFD packet to send [10:54:42]OFD Sender: No OFD packet to send [10:54:47]OFD Sender: No OFD packet to send [10:54:52]OFD Sender: No OFD packet to send [10:54:57]OFD Sender: No OFD packet to send [10:55:02]OFD Sender: No OFD packet to send [10:55:07]OFD Sender: No OFD packet to send [10:55:12]OFD Sender: No OFD packet to send [10:55:17]OFD Sender: No OFD packet to send [10:55:22]OFD Sender: No OFD packet to send [10:55:27]OFD Sender: No OFD packet to send [10:55:32]OFD Sender: No OFD packet to send [10:55:37]OFD Sender: No OFD packet to send [10:55:42]OFD Sender: No OFD packet to send [10:55:47]OFD Sender: No OFD packet to send [10:55:52]OFD Sender: No OFD packet to send [10:55:57]OFD Sender: No OFD packet to send [10:56:02]OFD Sender: No OFD packet to send [10:56:07]OFD Sender: No OFD packet to send [10:56:12]OFD Sender: No OFD packet to send [10:56:17]OFD Sender: No OFD packet to send [10:56:22]OFD Sender: No OFD packet to send [10:56:27]OFD Sender: No OFD packet to send [10:56:32]OFD Sender: No OFD packet to send [10:56:37]OFD Sender: No OFD packet to send [10:56:42]OFD Sender: No OFD packet to send [10:56:47]OFD Sender: No OFD packet to send [10:56:52]OFD Sender: No OFD packet to send [10:56:57]OFD Sender: No OFD packet to send [10:57:02]OFD Sender: No OFD packet to send [10:57:07]OFD Sender: No OFD packet to send [10:57:12]OFD Sender: No OFD packet to send [10:57:17]OFD Sender: No OFD packet to send [10:57:22]OFD Sender: No OFD packet to send [10:57:27]OFD Sender: No OFD packet to send [10:57:32]OFD Sender: No OFD packet to send [10:57:37]OFD Sender: No OFD packet to send [10:57:42]OFD Sender: No OFD packet to send [10:57:47]OFD Sender: No OFD packet to send [10:57:52]OFD Sender: No OFD packet to send [10:57:57]OFD Sender: No OFD packet to send [10:58:02]OFD Sender: No OFD packet to send [10:58:07]OFD Sender: No OFD packet to send [10:58:12]OFD Sender: No OFD packet to send [10:58:17]OFD Sender: No OFD packet to send [10:58:22]OFD Sender: No OFD packet to send [10:58:27]OFD Sender: No OFD packet to send [10:58:32]OFD Sender: No OFD packet to send [10:58:37]OFD Sender: No OFD packet to send [10:58:42]OFD Sender: No OFD packet to send [10:58:47]OFD Sender: No OFD packet to send [10:58:52]OFD Sender: No OFD packet to send [10:58:57]OFD Sender: No OFD packet to send [10:59:02]OFD Sender: No OFD packet to send [10:59:07]OFD Sender: No OFD packet to send [10:59:12]OFD Sender: No OFD packet to send [10:59:17]OFD Sender: No OFD packet to send [10:59:22]OFD Sender: No OFD packet to send [10:59:27]OFD Sender: No OFD packet to send [10:59:32]OFD Sender: No OFD packet to send [10:59:37]OFD Sender: No OFD packet to send [10:59:42]OFD Sender: No OFD packet to send [10:59:47]OFD Sender: No OFD packet to send [10:59:52]OFD Sender: No OFD packet to send [10:59:57]OFD Sender: No OFD packet to send [11:00:02]OFD Sender: No OFD packet to send [11:00:07]OFD Sender: No OFD packet to send [11:00:12]OFD Sender: No OFD packet to send [11:00:17]OFD Sender: No OFD packet to send [11:00:22]OFD Sender: No OFD packet to send [11:00:27]OFD Sender: No OFD packet to send [11:00:32]OFD Sender: No OFD packet to send [11:00:37]OFD Sender: No OFD packet to send [11:00:42]OFD Sender: No OFD packet to send [11:00:47]OFD Sender: No OFD packet to send [11:00:52]OFD Sender: No OFD packet to send [11:00:57]OFD Sender: No OFD packet to send [11:01:02]OFD Sender: No OFD packet to send [11:01:07]OFD Sender: No OFD packet to send [11:01:12]OFD Sender: No OFD packet to send [11:01:17]OFD Sender: No OFD packet to send [11:01:22]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: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: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]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:06:02]OFD Sender: No OFD packet to send [11:06:07]OFD Sender: No OFD packet to send [11:06:12]OFD Sender: No OFD packet to send [11:06:17]OFD Sender: No OFD packet to send [11:06:22]OFD Sender: No OFD packet to send [11:06:27]OFD Sender: No OFD packet to send [11:06:32]OFD Sender: No OFD packet to send [11:06:37]OFD Sender: No OFD packet to send [11:06:42]OFD Sender: No OFD packet to send [11:06:47]OFD Sender: No OFD packet to send [11:06:52]OFD Sender: No OFD packet to send [11:06:57]OFD Sender: No OFD packet to send [11:07:02]OFD Sender: No OFD packet to send [11:07:07]OFD Sender: No OFD packet to send [11:07:12]OFD Sender: No OFD packet to send [11:07:17]OFD Sender: No OFD packet to send [11:07:22]OFD Sender: No OFD packet to send [11:07:27]OFD Sender: No OFD packet to send [11:07: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]OFD Sender: No OFD packet to send [11:08:52]OFD Sender: No OFD packet to send [11:08:57]OFD Sender: No OFD packet to send [11:09:02]OFD Sender: No OFD packet to send [11:09:07]OFD Sender: No OFD packet to send [11:09:12]OFD Sender: No OFD packet to send [11:09:17]OFD Sender: No OFD packet to send [11:09:22]OFD Sender: No OFD packet to send [11:09:27]OFD Sender: No OFD packet to send [11:09:32]OFD Sender: No OFD packet to send [11:09:37]OFD Sender: No OFD packet to send [11:09:42]OFD Sender: No OFD packet to send [11:09:47]OFD Sender: No OFD packet to send [11:09:52]OFD Sender: No OFD packet to send [11:09:57]OFD Sender: No OFD packet to send [11:10:02]OFD Sender: No OFD packet to send [11:10:07]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:38]OFD Sender: No OFD packet to send [11:10:43]OFD Sender: No OFD packet to send [11:10:48]OFD Sender: No OFD packet to send [11:10:53]OFD Sender: No OFD packet to send [11:10:58]OFD Sender: No OFD packet to send [11:11:03]OFD Sender: No OFD packet to send [11:11:08]OFD Sender: No OFD packet to send [11:11:13]OFD Sender: No OFD packet to send [11:11:18]OFD Sender: No OFD packet to send [11:11:23]OFD Sender: No OFD packet to send [11:11:28]OFD Sender: No OFD packet to send [11:11:28]accept exits with 7 [11:11:28]New connection [11:11:28]New thread 3067276644 created [11:11:28]Thread 3067133284 joined [11:11:28]Waiting for new connection... [11:11:28] Sock 7.Parse request [11:11:28]Sock 7.Check first char [11:11:28]Sock 7.First char is OK [11:11:28]request: POST /json_proto HTTP/1.0 [11:11:28]Method: POST [11:11:28]URL: /json_proto [11:11:28]Method is POST - this is cgi request [11:11:28]url: /json_proto [11:11:28]query_string will be loaded in cgi processing [11:11:28]execute_cgi json_proto POST (null) [11:11:28]execute_cgi path=json_proto method=POST [11:11:28]POST find Content-Length [11:11:28]Host: 172.17.52.3:8080 [11:11:28]Content-Length: 766 [11:11:28]Content-Type: application/json [11:11:28] [11:11:28]POST finish read [11:11:28]Found Content-Length = 766 [11:11:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.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: Mbank", "payments": [ { "type": 1, "sum" : 2500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:28]execute_script... [11:11: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)210402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.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: Mbank", "payments": [ { "type": 1, "sum" : 2500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:28]POST & json_proto [11:11:28]process_json_proto [11:11:28]json parsed OK: [11:11:28]protocol is kg_v1.0 [11:11:28]action value=close_receipt [11:11:28]process_action close_receipt [11:11:28]cmd_close_receipt [11:11:28]MH_GetDate [11:11:28]Write to MH i2c: F0 00 00 1E 2D 3A [11:11:28]Write i2c OK [11:11:28]MH_I2C_Read... [11:11:28]Read from MH i2c: F0 [11:11:28]MH_I2C_Read... [11:11:28]Read from MH i2c: F0 09 00 [11:11:28]MH_I2C_Read... [11:11:28]Read from MH i2c: F0 09 00 1E 2D 00 E8 D9 18 67 D7 68 A5 64 CB [11:11:28]GetLastDocTimeStamp 1729680612 [11:11:28]current date 1729681896 [11:11:28]FM_GetShiftState [11:11:28]SAM_PROTO_GetShiftState [11:11:28]wFMCommunicate request_size=4 [11:11:28]MH_SAM_APDU [11:11:28]CAPDU: 80 13 01 00 [11:11:28]Write to MH i2c: E2 08 00 1F 2D 80 13 01 00 00 00 00 00 C9 [11:11:28]Write i2c OK [11:11:28]MH_I2C_Read... [11:11:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:28]Read from MH i2c: E2 [11:11:28]MH_I2C_Read... [11:11:28]Read from MH i2c: E2 0E 00 [11:11:28]MH_I2C_Read... [11:11:28]Read from MH i2c: E2 0E 00 1F 2D 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 38 [11:11:28]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [11:11:28]wFMCommunicate OK [11:11:28]SAM_PROTO_GetShiftState done [11:11:28]FM_GetShiftState done [11:11:28]opened in 1729641385 [11:11:28]opened+sec_in_day 1729727785 [11:11:28]quantity*price = 250012 [11:11:28]sum+1 = 250013 [11:11:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.12 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 0.00 Безнал.: 2500.12 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 28 23.10.2024 11:11 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871809 ФД: 68405 ФПД: 67756518057480 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111136&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68405&fm=67756518057480&tin=02508201610067®Number=0000000000091756&sum=250012 [11:11:29]StoreToDocumentArchive [11:11:29]shift 507 fd 68405 [11:11:29]save to /storage/0507/doc_00068405 [11:11:29]save last doc name /storage/0507/doc_00068405 to /storage/kkm_last_doc_name [11:11:29]save OK [11:11:29]Clear old archive folders... [11:11:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:11:29]tlvbuf is 0203C360 [11:11:29]SAM_PROTO_ClearQueue [11:11:29]wFMCommunicate request_size=4 [11:11:29]MH_SAM_APDU [11:11:29]CAPDU: 80 09 00 00 [11:11:29]Write to MH i2c: E2 08 00 2C 2D 80 09 00 00 00 00 00 00 CB [11:11:29]Write i2c OK [11:11:29]MH_I2C_Read... [11:11:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:29]Read from MH i2c: E2 [11:11:29]MH_I2C_Read... [11:11:29]Read from MH i2c: E2 03 00 [11:11:29]MH_I2C_Read... [11:11:29]Read from MH i2c: E2 03 00 2C 2D 00 90 00 CD [11:11:29]RAPDU: 90 00 [11:11:29]wFMCommunicate OK [11:11:29]SAM_PROTO_ClearQueue done [11:11:29]KKMCreateOFDPacket [11:11:29]OFDProtocolAddRootSTLVToBuf [11:11:29]FM_MakeSignedData [11:11:29]FM_MakeSignedData [11:11:29]SAM_PROTO_SignData [11:11:29]wFMCommunicate request_size=4 [11:11:29]MH_SAM_APDU [11:11:29]CAPDU: 80 0D 01 02 [11:11:29]Write to MH i2c: E2 08 00 2D 2D 80 0D 01 02 00 00 00 00 D3 [11:11:29]Write i2c OK [11:11:29]MH_I2C_Read... [11:11:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:29]Read from MH i2c: E2 [11:11:29]MH_I2C_Read... [11:11:29]Read from MH i2c: E2 03 00 [11:11:29]MH_I2C_Read... [11:11:29]Read from MH i2c: E2 03 00 2D 2D 00 90 00 CE [11:11:29]RAPDU: 90 00 [11:11:29]wFMCommunicate OK [11:11:29]wFMCommunicate request_size=255 [11:11:29]MH_SAM_APDU [11:11:29]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 9C 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 00 00 00 00 00 00 39 04 06 00 9C D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 E8 D9 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 35 0B 01 00 35 04 06 00 3D 9F CB 30 [11:11:29]Write to MH i2c: E2 02 01 2E 2D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 9C 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 00 00 00 00 00 00 39 04 06 00 9C D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 E8 D9 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 35 0B 01 00 35 04 06 00 3D 9F CB 30 00 00 42 [11:11:29]Write i2c OK [11:11:29]MH_I2C_Read... [11:11:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:29]Read from MH i2c: E2 [11:11:29]MH_I2C_Read... [11:11:29]Read from MH i2c: E2 03 00 [11:11:29]MH_I2C_Read... [11:11:29]Read from MH i2c: E2 03 00 2E 2D 00 90 00 CF [11:11:29]RAPDU: 90 00 [11:11:29]wFMCommunicate OK [11:11:29]wFMCommunicate request_size=7 [11:11:29]MH_SAM_APDU [11:11:29]CAPDU: 80 0D 02 02 02 A6 08 [11:11:29]Write to MH i2c: E2 0A 00 2F 2D 80 0D 02 02 02 00 A6 08 00 00 88 [11:11:29]Write i2c OK [11:11:29]MH_I2C_Read... [11:11:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:29]Read from MH i2c: E2 [11:11:29]MH_I2C_Read... [11:11:29]Read from MH i2c: E2 03 00 [11:11:29]MH_I2C_Read... [11:11:29]Read from MH i2c: E2 03 00 2F 2D 00 90 00 D0 [11:11:29]RAPDU: 90 00 [11:11:29]wFMCommunicate OK [11:11:29]wFMCommunicate request_size=4 [11:11:29]MH_SAM_APDU [11:11:29]CAPDU: 80 0D 03 02 [11:11:29]Write to MH i2c: E2 08 00 30 2D 80 0D 03 02 00 00 00 00 D8 [11:11:29]Write i2c OK [11:11:29]MH_I2C_Read... [11:11:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:11:29]Read from MH i2c: E2 [11:11:29]MH_I2C_Read... [11:11:29]Read from MH i2c: E2 0B 00 [11:11:29]MH_I2C_Read... [11:11:29]Read from MH i2c: E2 0B 00 30 2D 00 7A 13 AE 77 98 21 A4 74 90 00 5C [11:11:29]RAPDU: 7A 13 AE 77 98 21 A4 74 90 00 [11:11:29]wFMCommunicate OK [11:11:29]SAM_PROTO_SignData done [11:11:29]FM_MakeSignedData done [11:11:29]CreateOFDProtocolMessage [11:11:29]wFMCommunicate request_size=4 [11:11:29]MH_SAM_APDU [11:11:29]CAPDU: 80 11 00 00 [11:11:29]Write to MH i2c: E2 08 00 31 2D 80 11 00 00 00 00 00 00 D8 [11:11:29]Write i2c OK [11:11:29]MH_I2C_Read... [11:11:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:29]Read from MH i2c: E2 [11:11:29]MH_I2C_Read... [11:11:29]Read from MH i2c: E2 17 00 [11:11:29]MH_I2C_Read... [11:11:29]Read from MH i2c: E2 17 00 31 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 2C [11:11:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [11:11:29]wFMCommunicate OK [11:11:29]CreateOFDProtocolMessage done [11:11:29]OFDSenderStorePacket 68405 [11:11:29]StoreOFDPacket docnum=68405 [11:11:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0C 01 00 00 68 F2 04 01 14 90 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 9C 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 00 00 00 00 00 00 39 04 06 00 9C D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 E8 D9 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 35 0B 01 00 35 04 06 00 3D 9F CB 30 A6 08 7A 13 AE 77 98 21 A4 74 [11:11:29]CheckFolder [11:11:29]dirname=/storage/ofd_packets [11:11:29]CheckFolder done [11:11:29]ProducePacketName [11:11:29]name=ofd_packets/00068405 [11:11:29]NVStorageSaveData ofd_packets/00068405 [11:11:29]File name is /storage/ofd_packets/00068405 [11:11:29]Write 298 bytes [11:11:29]NVStorageSaveData done [11:11:29]OFDSenderStorePacket done [11:11:29]KKMCreateOFDPacket done [11:11:29]NVStorageSaveData kkm_last_timestamp [11:11:29]File name is /storage/kkm_last_timestamp [11:11:29]Write 4 bytes [11:11:29]NVStorageSaveData done [11:11:29]ExternCall_PrintAddStr [11:11:29]wPrintStart [11:11:29]Write to MH i2c: 01 00 00 32 2D 5F [11:11:29]Write i2c OK [11:11:29]MH_I2C_Read... [11:11:29]Read from MH i2c: 01 [11:11:29]MH_I2C_Read... [11:11:29]Read from MH i2c: 01 07 00 [11:11:29]MH_I2C_Read... [11:11:29]Read from MH i2c: 01 07 00 32 2D 00 04 00 00 00 FF 0F 78 [11:11:29]RasterBufferAndPrint [11:11:29]line Счет N : (1)210402 [11:11:29]line ИНН: 02508201610067 [11:11:29]line Контрольно-Кассовый Чек [11:11:29]line ПРОДАЖА [11:11:29]line ТРК (МРК, ГНК) : 32 [11:11:29]line Товар: 2710194210 [11:11:29]line ДТ-К-2 [11:11:29]line 32.810 * 76.20 [11:11:29]line = 2500.12 [11:11:29]line НДС 12% НСП 1% [11:11:29]line > о реализуемом товаре [11:11:29]line ИТОГО: 2500.12 [11:11:29]line НСП 1% : 22.12 [11:11:29]line НДС 12% : 265.50 [11:11:29]line Наличными: 0.00 [11:11:29]line Безнал.: 2500.12 [11:11:29]line Место: АЗС № 147 "Партнер Нефть" [11:11:29]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [11:11:29]line СНО: Общий режим [11:11:29]line Чек 28 23.10.2024 11:11 [11:11:29]line Смена: 507 ФФД: 1.0 [11:11:29]line ЗНМ: 0300000094 [11:11:29]line РНМ: 0000000000091756 [11:11:29]line Версия ККМ: 001 [11:11:29]line Платежная система: Mbank [11:11:29]line ФМ: 0000000000871809 [11:11:29]line ФД: 68405 [11:11:29]line ФПД: 67756518057480 [11:11:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111136&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68405&fm=67756518057480&tin=02508201610067®Number=0000000000091756&sum=250012 [11:11:30]OFD Sender: Processing packet 68405 [packets to send 8, broken 7] [11:11:30]ProducePacketName [11:11:30]name=ofd_packets/00068405 [11:11:30]OFD Sender: To server: pG, [11:11:30]CommunicateWithHost lk.salyk.kg:30040 [11:11:30]ConnectInit lk.salyk.kg [11:11:30]written 0, free lines is 4095 [11:11:30]Connected sock=10 [11:11:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0C 01 00 00 68 F2 04 01 14 90 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 9C 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 00 00 00 00 00 00 39 04 06 00 9C D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 E8 D9 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 35 0B 01 00 35 04 06 00 3D 9F CB 30 A6 08 7A 13 AE 77 98 21 A4 74 [11:11:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 80 45 47 00 C0 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 35 0B 01 00 F4 03 04 00 DD 7F 18 67 B6 04 01 00 00 0F DD AF EB 4F 18 0A 32 [11:11:30]CommunicateWithHost err = 0 [11:11:30]CheckOFDResponse [11:11:30]1017 (14) - 77093643461234 [11:11:30]1041 (16) - 0000000000871809 [11:11:30]1040 (4) - 68405 [11:11:30]1012 (4) - 23.10.2024 04:47 [11:11:30]1206 (1) - 0 [11:11:30]OFD Sender: Remove packet 68405 [11:11:30]ProducePacketName [11:11:30]name=ofd_packets/00068405 [11:11:30]NVStorageDeleteData [11:11:30]Write to MH i2c: 01 00 00 5A 2D 87 [11:11:30]Write i2c OK [11:11:30]MH_I2C_Read... [11:11:30]Read from MH i2c: 01 [11:11:30]MH_I2C_Read... [11:11:30]Read from MH i2c: 01 07 00 [11:11:30]MH_I2C_Read... [11:11:30]Read from MH i2c: 01 07 00 5A 2D 00 04 00 00 00 D7 0C 75 [11:11:30]RasterBufferAndPrint [11:11:30]line [11:11:30]line [11:11:30]line [11:11:30]line [11:11:30]line [11:11:30]written 0, free lines is 3292 [11:11:30]MH_Cut [11:11:30]Write to MH i2c: D1 01 00 61 2D 01 60 [11:11:30]Write i2c OK [11:11:30]MH_I2C_Read... [11:11:30]Read from MH i2c: D1 [11:11:30]MH_I2C_Read... [11:11:30]Read from MH i2c: D1 01 00 [11:11:30]MH_I2C_Read... [11:11:30]Read from MH i2c: D1 01 00 61 2D 00 5F [11:11:30]Write to MH i2c: 01 00 00 62 2D 8F [11:11:30]Write i2c OK [11:11:30]MH_I2C_Read... [11:11:31]OFD Sender: No OFD packet to send [11:11:31]*** Cut start [11:11:31]*** Partial cut [11:11:31]*** CUTSNS_PIN = 1 [11:11:31]*** CUTSNS_PIN = 0 [11:11:31]*** Brake cut motor [11:11:32]Read from MH i2c: 01 [11:11:32]MH_I2C_Read... [11:11:32]*** Stop cut motor [11:11:32]*** Cut end [11:11:32]Read from MH i2c: 01 07 00 [11:11:32]MH_I2C_Read... [11:11:32]Read from MH i2c: 01 07 00 62 2D 00 04 00 00 00 FF 0F A8 [11:11:32]process_action close_receipt done [11:11:32]requested_data is exist [11:11:32]produce_requested_data [11:11:32]requested_item fm.sn is exist - process it [11:11:32]wFMCommunicate request_size=4 [11:11:32]MH_SAM_APDU [11:11:32]CAPDU: 80 11 00 00 [11:11:32]Write to MH i2c: E2 08 00 63 2D 80 11 00 00 00 00 00 00 0A [11:11:32]Write i2c OK [11:11:32]MH_I2C_Read... [11:11:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:32]Read from MH i2c: E2 [11:11:32]MH_I2C_Read... [11:11:32]Read from MH i2c: E2 17 00 [11:11:32]MH_I2C_Read... [11:11:32]Read from MH i2c: E2 17 00 63 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 5E [11:11:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [11:11:32]wFMCommunicate OK [11:11:32]requested_item fd.num is exist - process it [11:11:32]SAM_PROTO_GetFieldsCounters [11:11:32]wFMCommunicate request_size=4 [11:11:32]MH_SAM_APDU [11:11:32]CAPDU: 80 13 00 00 [11:11:32]Write to MH i2c: E2 08 00 64 2D 80 13 00 00 00 00 00 00 0D [11:11:32]Write i2c OK [11:11:32]MH_I2C_Read... [11:11:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:32]Read from MH i2c: E2 [11:11:32]MH_I2C_Read... [11:11:32]Read from MH i2c: E2 62 00 [11:11:32]MH_I2C_Read... [11:11:32]Read from MH i2c: E2 62 00 64 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 35 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [11:11:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 35 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:11:32]wFMCommunicate OK [11:11:32]SAM_PROTO_GetFieldsCounters done [11:11:32]requested_item shift.num is exist - process it [11:11:32]requested_item shift.opened is exist - process it [11:11:32]req_shift_opened [11:11:32]FM_GetShiftState [11:11:32]SAM_PROTO_GetShiftState [11:11:32]wFMCommunicate request_size=4 [11:11:32]MH_SAM_APDU [11:11:32]CAPDU: 80 13 01 00 [11:11:32]Write to MH i2c: E2 08 00 65 2D 80 13 01 00 00 00 00 00 0F [11:11:32]Write i2c OK [11:11:32]MH_I2C_Read... [11:11:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:32]Read from MH i2c: E2 [11:11:32]MH_I2C_Read... [11:11:32]Read from MH i2c: E2 0E 00 [11:11:32]MH_I2C_Read... [11:11:32]Read from MH i2c: E2 0E 00 65 2D 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 7E [11:11:32]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [11:11:32]wFMCommunicate OK [11:11:32]SAM_PROTO_GetShiftState done [11:11:32]FM_GetShiftState done [11:11:32]req_shift_opened done [11:11:32]requested_item shift.open_date is exist - process it [11:11:32]req_shift_open_date [11:11:32]req_shift_open_date done [11:11:32]produce_requested_data done [11:11:32]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68405,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [11:11:32]process_action_free close_receipt [11:11:32]json_value_free [11:11:32]json_value_free done [11:11:32]process_json_proto returns [11:11:32]Send response to host [11:11:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68405,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [11:11:32]free response buf [11:11:32]execute_script done [11:11:32]execute_script returns [11:11:32]free content buf [11:11:32]Sock 7.Close socket [11:11:32]Sock 7.Thread stoped [11:11:36]OFD Sender: No OFD packet to send [11:11:41]OFD Sender: No OFD packet to send [11:11:46]OFD Sender: No OFD packet to send [11:11:51]OFD Sender: No OFD packet to send [11:11:56]OFD Sender: No OFD packet to send [11:12:01]OFD Sender: No OFD packet to send [11:12:06]OFD Sender: No OFD packet to send [11:12:11]OFD Sender: No OFD packet to send [11:12:16]OFD Sender: No OFD packet to send [11:12:21]OFD Sender: No OFD packet to send [11:12:26]OFD Sender: No OFD packet to send [11:12:31]OFD Sender: No OFD packet to send [11:12:33]accept exits with 9 [11:12:33]New connection [11:12:33]New thread 3067133284 created [11:12:33]Thread 3067276644 joined [11:12:33]Waiting for new connection... [11:12:33] Sock 9.Parse request [11:12:33]Sock 9.Check first char [11:12:33]Sock 9.First char is OK [11:12:33]request: POST /json_proto HTTP/1.0 [11:12:33]Method: POST [11:12:33]URL: /json_proto [11:12:33]Method is POST - this is cgi request [11:12:33]url: /json_proto [11:12:33]query_string will be loaded in cgi processing [11:12:33]execute_cgi json_proto POST (null) [11:12:33]execute_cgi path=json_proto method=POST [11:12:33]POST find Content-Length [11:12:33]Host: 172.17.52.3:8080 [11:12:33]Content-Length: 677 [11:12:33]Content-Type: application/json [11:12:33] [11:12:33]POST finish read [11:12:33]Found Content-Length = 677 [11:12:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:12:33]execute_script... [11:12: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)210403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:12:33]POST & json_proto [11:12:33]process_json_proto [11:12:33]json parsed OK: [11:12:33]protocol is kg_v1.0 [11:12:33]action value=close_receipt [11:12:33]process_action close_receipt [11:12:33]cmd_close_receipt [11:12:33]MH_GetDate [11:12:33]Write to MH i2c: F0 00 00 66 2D 82 [11:12:33]Write i2c OK [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: F0 [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: F0 09 00 [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: F0 09 00 66 2D 00 2A DA 18 67 D7 68 A5 64 56 [11:12:33]GetLastDocTimeStamp 1729681896 [11:12:33]current date 1729681962 [11:12:33]FM_GetShiftState [11:12:33]SAM_PROTO_GetShiftState [11:12:33]wFMCommunicate request_size=4 [11:12:33]MH_SAM_APDU [11:12:33]CAPDU: 80 13 01 00 [11:12:33]Write to MH i2c: E2 08 00 67 2D 80 13 01 00 00 00 00 00 11 [11:12:33]Write i2c OK [11:12:33]MH_I2C_Read... [11:12:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:33]Read from MH i2c: E2 [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: E2 0E 00 [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: E2 0E 00 67 2D 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 80 [11:12:33]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [11:12:33]wFMCommunicate OK [11:12:33]SAM_PROTO_GetShiftState done [11:12:33]FM_GetShiftState done [11:12:33]opened in 1729641385 [11:12:33]opened+sec_in_day 1729727785 [11:12:33]quantity*price = 50041 [11:12:33]sum+1 = 50042 [11:12:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 29 23.10.2024 11:12 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68406 ФПД: 39818999883824 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111242&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68406&fm=39818999883824&tin=02508201610067®Number=0000000000091756&sum=50000 [11:12:34]StoreToDocumentArchive [11:12:34]shift 507 fd 68406 [11:12:34]save to /storage/0507/doc_00068406 [11:12:34]save last doc name /storage/0507/doc_00068406 to /storage/kkm_last_doc_name [11:12:34]save OK [11:12:34]Clear old archive folders... [11:12:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:12:34]tlvbuf is 01FC9B70 [11:12:34]SAM_PROTO_ClearQueue [11:12:34]wFMCommunicate request_size=4 [11:12:34]MH_SAM_APDU [11:12:34]CAPDU: 80 09 00 00 [11:12:34]Write to MH i2c: E2 08 00 74 2D 80 09 00 00 00 00 00 00 13 [11:12:34]Write i2c OK [11:12:34]MH_I2C_Read... [11:12:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:34]Read from MH i2c: E2 [11:12:34]MH_I2C_Read... [11:12:34]Read from MH i2c: E2 03 00 [11:12:34]MH_I2C_Read... [11:12:34]Read from MH i2c: E2 03 00 74 2D 00 90 00 15 [11:12:34]RAPDU: 90 00 [11:12:34]wFMCommunicate OK [11:12:34]SAM_PROTO_ClearQueue done [11:12:34]KKMCreateOFDPacket [11:12:34]OFDProtocolAddRootSTLVToBuf [11:12:34]FM_MakeSignedData [11:12:34]FM_MakeSignedData [11:12:34]SAM_PROTO_SignData [11:12:34]wFMCommunicate request_size=4 [11:12:34]MH_SAM_APDU [11:12:34]CAPDU: 80 0D 01 02 [11:12:34]Write to MH i2c: E2 08 00 75 2D 80 0D 01 02 00 00 00 00 1B [11:12:34]Write i2c OK [11:12:34]MH_I2C_Read... [11:12:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:34]Read from MH i2c: E2 [11:12:34]MH_I2C_Read... [11:12:34]Read from MH i2c: E2 03 00 [11:12:34]MH_I2C_Read... [11:12:34]Read from MH i2c: E2 03 00 75 2D 00 90 00 16 [11:12:34]RAPDU: 90 00 [11:12:34]wFMCommunicate OK [11:12:34]wFMCommunicate request_size=255 [11:12:34]MH_SAM_APDU [11:12: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 2A DA 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 36 0B 01 00 35 04 06 00 24 [11:12:34]Write to MH i2c: E2 02 01 76 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 2A DA 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 36 0B 01 00 35 04 06 00 24 00 00 AD [11:12:34]Write i2c OK [11:12:34]MH_I2C_Read... [11:12:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:35]Read from MH i2c: E2 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: E2 03 00 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: E2 03 00 76 2D 00 90 00 17 [11:12:35]RAPDU: 90 00 [11:12:35]wFMCommunicate OK [11:12:35]wFMCommunicate request_size=10 [11:12:35]MH_SAM_APDU [11:12:35]CAPDU: 80 0D 02 02 05 37 15 57 E8 30 [11:12:35]Write to MH i2c: E2 0D 00 77 2D 80 0D 02 02 05 00 37 15 57 E8 30 00 00 E3 [11:12:35]Write i2c OK [11:12:35]MH_I2C_Read... [11:12:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:35]Read from MH i2c: E2 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: E2 03 00 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: E2 03 00 77 2D 00 90 00 18 [11:12:35]RAPDU: 90 00 [11:12:35]wFMCommunicate OK [11:12:35]wFMCommunicate request_size=4 [11:12:35]MH_SAM_APDU [11:12:35]CAPDU: 80 0D 03 02 [11:12:35]Write to MH i2c: E2 08 00 78 2D 80 0D 03 02 00 00 00 00 20 [11:12:35]Write i2c OK [11:12:35]MH_I2C_Read... [11:12:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:35]Read from MH i2c: E2 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: E2 0B 00 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: E2 0B 00 78 2D 00 23 BF 5D 4A 53 5C 55 DC 90 00 8A [11:12:35]RAPDU: 23 BF 5D 4A 53 5C 55 DC 90 00 [11:12:35]wFMCommunicate OK [11:12:35]SAM_PROTO_SignData done [11:12:35]FM_MakeSignedData done [11:12:35]CreateOFDProtocolMessage [11:12:35]wFMCommunicate request_size=4 [11:12:35]MH_SAM_APDU [11:12:35]CAPDU: 80 11 00 00 [11:12:35]Write to MH i2c: E2 08 00 79 2D 80 11 00 00 00 00 00 00 20 [11:12:35]Write i2c OK [11:12:35]MH_I2C_Read... [11:12:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:35]Read from MH i2c: E2 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: E2 17 00 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: E2 17 00 79 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 74 [11:12:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [11:12:35]wFMCommunicate OK [11:12:35]CreateOFDProtocolMessage done [11:12:35]OFDSenderStorePacket 68406 [11:12:35]StoreOFDPacket docnum=68406 [11:12:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 EF 64 07 01 17 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 2A DA 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 36 0B 01 00 35 04 06 00 24 37 15 57 E8 30 23 BF 5D 4A 53 5C 55 DC [11:12:35]CheckFolder [11:12:35]dirname=/storage/ofd_packets [11:12:35]CheckFolder done [11:12:35]ProducePacketName [11:12:35]name=ofd_packets/00068406 [11:12:35]NVStorageSaveData ofd_packets/00068406 [11:12:35]File name is /storage/ofd_packets/00068406 [11:12:35]Write 301 bytes [11:12:35]NVStorageSaveData done [11:12:35]OFDSenderStorePacket done [11:12:35]KKMCreateOFDPacket done [11:12:35]NVStorageSaveData kkm_last_timestamp [11:12:35]File name is /storage/kkm_last_timestamp [11:12:35]Write 4 bytes [11:12:35]NVStorageSaveData done [11:12:35]ExternCall_PrintAddStr [11:12:35]wPrintStart [11:12:35]Write to MH i2c: 01 00 00 7A 2D A7 [11:12:35]Write i2c OK [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: 01 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: 01 07 00 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: 01 07 00 7A 2D 00 04 00 00 00 FF 0F C0 [11:12:35]RasterBufferAndPrint [11:12:35]line Счет N : (1)210403 [11:12:35]line ИНН: 02508201610067 [11:12:35]line Контрольно-Кассовый Чек [11:12:35]line ПРОДАЖА [11:12:35]line ТРК (МРК, ГНК) : 11 [11:12:35]line Товар: 2710124130 [11:12:35]line Аи-92-К-2 [11:12:35]line 7.480 * 66.90 [11:12:35]line = 500.41 [11:12:35]line НДС 12% НСП 1% [11:12:35]line > о реализуемом товаре [11:12:35]line ОКРУГЛЕНИЕ: -0.41 [11:12:35]line ИТОГО: 500.00 [11:12:35]line Внесено: 500.00 [11:12:35]line СДАЧА: 0.00 [11:12:35]line НСП 1% : 4.43 [11:12:35]line НДС 12% : 53.14 [11:12:35]line Наличными: 500.00 [11:12:35]line Безнал.: 0.00 [11:12:35]line Место: АЗС № 147 "Партнер Нефть" [11:12:35]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [11:12:35]line СНО: Общий режим [11:12:35]line Чек 29 23.10.2024 11:12 [11:12:35]line Смена: 507 ФФД: 1.0 [11:12:35]line ЗНМ: 0300000094 [11:12:35]line РНМ: 0000000000091756 [11:12:35]line Версия ККМ: 001 [11:12:35]line ФМ: 0000000000871809 [11:12:35]line ФД: 68406 [11:12:35]line ФПД: 39818999883824 [11:12:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111242&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68406&fm=39818999883824&tin=02508201610067®Number=0000000000091756&sum=50000 [11:12:35]written 0, free lines is 4095 [11:12:35]OFD Sender: Processing packet 68406 [packets to send 8, broken 7] [11:12:35]ProducePacketName [11:12:35]name=ofd_packets/00068406 [11:12:35]OFD Sender: To server: pG, [11:12:35]CommunicateWithHost lk.salyk.kg:30040 [11:12:35]ConnectInit lk.salyk.kg [11:12:35]Connected sock=10 [11:12:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 EF 64 07 01 17 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 2A DA 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 36 0B 01 00 35 04 06 00 24 37 15 57 E8 30 23 BF 5D 4A 53 5C 55 DC [11:12:35]Write to MH i2c: 01 00 00 A4 2D D1 [11:12:35]Write i2c OK [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: 01 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: 01 07 00 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: 01 07 00 A4 2D 00 04 00 00 00 AA 0C 92 [11:12:35]RasterBufferAndPrint [11:12:35]line [11:12:35]line [11:12:35]line [11:12:35]line [11:12:35]line [11:12:35]written 0, free lines is 3247 [11:12:35]MH_Cut [11:12:35]Write to MH i2c: D1 01 00 AB 2D 01 AA [11:12:35]Write i2c OK [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: D1 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: D1 01 00 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: D1 01 00 AB 2D 00 A9 [11:12:35]Write to MH i2c: 01 00 00 AC 2D D9 [11:12:35]Write i2c OK [11:12:35]MH_I2C_Read... [11:12:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 A4 16 47 00 85 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 36 0B 01 00 F4 03 04 00 1F 80 18 67 B6 04 01 00 00 17 25 35 68 43 89 33 51 [11:12:36]CommunicateWithHost err = 0 [11:12:36]CheckOFDResponse [11:12:36]1017 (14) - 77093643461234 [11:12:36]1041 (16) - 0000000000871809 [11:12:36]1040 (4) - 68406 [11:12:36]1012 (4) - 23.10.2024 04:48 [11:12:36]1206 (1) - 0 [11:12:36]OFD Sender: Remove packet 68406 [11:12:36]ProducePacketName [11:12:36]name=ofd_packets/00068406 [11:12:36]NVStorageDeleteData [11:12:36]OFD Sender: No OFD packet to send [11:12:36]*** Cut start [11:12:36]*** Partial cut [11:12:36]*** CUTSNS_PIN = 1 [11:12:36]*** CUTSNS_PIN = 0 [11:12:36]*** Brake cut motor [11:12:37]Read from MH i2c: 01 [11:12:37]MH_I2C_Read... [11:12:37]*** Stop cut motor [11:12:37]*** Cut end [11:12:37]Read from MH i2c: 01 07 00 [11:12:37]MH_I2C_Read... [11:12:37]Read from MH i2c: 01 07 00 AC 2D 00 04 00 00 00 FF 0F F2 [11:12:37]process_action close_receipt done [11:12:37]requested_data is exist [11:12:37]produce_requested_data [11:12:37]requested_item fm.sn is exist - process it [11:12:37]wFMCommunicate request_size=4 [11:12:37]MH_SAM_APDU [11:12:37]CAPDU: 80 11 00 00 [11:12:37]Write to MH i2c: E2 08 00 AD 2D 80 11 00 00 00 00 00 00 54 [11:12:37]Write i2c OK [11:12:37]MH_I2C_Read... [11:12:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:37]Read from MH i2c: E2 [11:12:37]MH_I2C_Read... [11:12:37]Read from MH i2c: E2 17 00 [11:12:37]MH_I2C_Read... [11:12:37]Read from MH i2c: E2 17 00 AD 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 A8 [11:12:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [11:12:37]wFMCommunicate OK [11:12:37]requested_item fd.num is exist - process it [11:12:37]SAM_PROTO_GetFieldsCounters [11:12:37]wFMCommunicate request_size=4 [11:12:37]MH_SAM_APDU [11:12:37]CAPDU: 80 13 00 00 [11:12:37]Write to MH i2c: E2 08 00 AE 2D 80 13 00 00 00 00 00 00 57 [11:12:37]Write i2c OK [11:12:37]MH_I2C_Read... [11:12:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:37]Read from MH i2c: E2 [11:12:37]MH_I2C_Read... [11:12:37]Read from MH i2c: E2 62 00 [11:12:37]MH_I2C_Read... [11:12:37]Read from MH i2c: E2 62 00 AE 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 36 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [11:12:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 36 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:12:37]wFMCommunicate OK [11:12:37]SAM_PROTO_GetFieldsCounters done [11:12:37]requested_item shift.num is exist - process it [11:12:37]requested_item shift.opened is exist - process it [11:12:37]req_shift_opened [11:12:37]FM_GetShiftState [11:12:37]SAM_PROTO_GetShiftState [11:12:37]wFMCommunicate request_size=4 [11:12:37]MH_SAM_APDU [11:12:37]CAPDU: 80 13 01 00 [11:12:37]Write to MH i2c: E2 08 00 AF 2D 80 13 01 00 00 00 00 00 59 [11:12:37]Write i2c OK [11:12:37]MH_I2C_Read... [11:12:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:37]Read from MH i2c: E2 [11:12:37]MH_I2C_Read... [11:12:37]Read from MH i2c: E2 0E 00 [11:12:37]MH_I2C_Read... [11:12:37]Read from MH i2c: E2 0E 00 AF 2D 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 C8 [11:12:37]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [11:12:37]wFMCommunicate OK [11:12:37]SAM_PROTO_GetShiftState done [11:12:37]FM_GetShiftState done [11:12:37]req_shift_opened done [11:12:37]requested_item shift.open_date is exist - process it [11:12:37]req_shift_open_date [11:12:37]req_shift_open_date done [11:12:37]produce_requested_data done [11:12:37]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68406,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [11:12:37]process_action_free close_receipt [11:12:37]json_value_free [11:12:37]json_value_free done [11:12:37]process_json_proto returns [11:12:37]Send response to host [11:12:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68406,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [11:12:37]free response buf [11:12:37]execute_script done [11:12:37]execute_script returns [11:12:37]free content buf [11:12:37]Sock 9.Close socket [11:12:37]Sock 9.Thread stoped [11:12:41]OFD Sender: No OFD packet to send [11:12:46]OFD Sender: No OFD packet to send [11:12:51]OFD Sender: No OFD packet to send [11:12:56]OFD Sender: No OFD packet to send [11:13:01]OFD Sender: No OFD packet to send [11:13:06]OFD Sender: No OFD packet to send [11:13:11]OFD Sender: No OFD packet to send [11:13:16]OFD Sender: No OFD packet to send [11:13:21]OFD Sender: No OFD packet to send [11:13:26]OFD Sender: No OFD packet to send [11:13:31]OFD Sender: No OFD packet to send [11:13:36]OFD Sender: No OFD packet to send [11:13:41]OFD Sender: No OFD packet to send [11:13:46]OFD Sender: No OFD packet to send [11:13:51]OFD Sender: No OFD packet to send [11:13:56]OFD Sender: No OFD packet to send [11:14:01]OFD Sender: No OFD packet to send [11:14:06]OFD Sender: No OFD packet to send [11:14:11]OFD Sender: No OFD packet to send [11:14:16]OFD Sender: No OFD packet to send [11:14:21]OFD Sender: No OFD packet to send [11:14:26]OFD Sender: No OFD packet to send [11:14:31]OFD Sender: No OFD packet to send [11:14:36]OFD Sender: No OFD packet to send [11:14:41]OFD Sender: No OFD packet to send [11:14:46]OFD Sender: No OFD packet to send [11:14:51]OFD Sender: No OFD packet to send [11:14:56]OFD Sender: No OFD packet to send [11:15:01]OFD Sender: No OFD packet to send [11:15:06]OFD Sender: No OFD packet to send [11:15:11]OFD Sender: No OFD packet to send [11:15:16]OFD Sender: No OFD packet to send [11:15:21]OFD Sender: No OFD packet to send [11:15:26]OFD Sender: No OFD packet to send [11:15:31]OFD Sender: No OFD packet to send [11:15:36]OFD Sender: No OFD packet to send [11:15:41]OFD Sender: No OFD packet to send [11:15:46]OFD Sender: No OFD packet to send [11:15:51]OFD Sender: No OFD packet to send [11:15:56]OFD Sender: No OFD packet to send [11:16:01]OFD Sender: No OFD packet to send [11:16:06]OFD Sender: No OFD packet to send [11:16:11]OFD Sender: No OFD packet to send [11:16:16]OFD Sender: No OFD packet to send [11:16:21]OFD Sender: No OFD packet to send [11:16:26]OFD Sender: No OFD packet to send [11:16:31]OFD Sender: No OFD packet to send [11:16:36]OFD Sender: No OFD packet to send [11:16:41]OFD Sender: No OFD packet to send [11:16:46]OFD Sender: No OFD packet to send [11:16:51]OFD Sender: No OFD packet to send [11:16:56]OFD Sender: No OFD packet to send [11:17:01]OFD Sender: No OFD packet to send [11:17:06]OFD Sender: No OFD packet to send [11:17:11]OFD Sender: No OFD packet to send [11:17:16]OFD Sender: No OFD packet to send [11:17:21]OFD Sender: No OFD packet to send [11:17:26]OFD Sender: No OFD packet to send [11:17:31]OFD Sender: No OFD packet to send [11:17:36]OFD Sender: No OFD packet to send [11:17:41]OFD Sender: No OFD packet to send [11:17:46]OFD Sender: No OFD packet to send [11:17:51]OFD Sender: No OFD packet to send [11:17:56]OFD Sender: No OFD packet to send [11:18:01]OFD Sender: No OFD packet to send [11:18:06]OFD Sender: No OFD packet to send [11:18:11]OFD Sender: No OFD packet to send [11:18:16]OFD Sender: No OFD packet to send [11:18:21]OFD Sender: No OFD packet to send [11:18:26]OFD Sender: No OFD packet to send [11:18:31]OFD Sender: No OFD packet to send [11:18:36]OFD Sender: No OFD packet to send [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]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]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:26]OFD Sender: No OFD packet to send [11:19:31]OFD Sender: No OFD packet to send [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: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]OFD Sender: No OFD packet to send [11:21:42]OFD Sender: No OFD packet to send [11:21:47]OFD Sender: No OFD packet to send [11:21:52]OFD Sender: No OFD packet to send [11:21:57]OFD Sender: No OFD packet to send [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: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: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:22]OFD Sender: No OFD packet to send [11:23:27]OFD Sender: No OFD packet to send [11:23:32]OFD Sender: No OFD packet to send [11:23:37]OFD Sender: No OFD packet to send [11:23:42]OFD Sender: No OFD packet to send [11:23:47]OFD Sender: No OFD packet to send [11:23:52]OFD Sender: No OFD packet to send [11:23:57]OFD Sender: No OFD packet to send [11:24:02]OFD Sender: No OFD packet to send [11:24:07]OFD Sender: No OFD packet to send [11:24:12]OFD Sender: No OFD packet to send [11:24:17]OFD Sender: No OFD packet to send [11:24:22]OFD Sender: No OFD packet to send [11:24:27]OFD Sender: No OFD packet to send [11:24:32]OFD Sender: No OFD packet to send [11:24:37]OFD Sender: No OFD packet to send [11:24:42]OFD Sender: No OFD packet to send [11:24:47]OFD Sender: No OFD packet to send [11:24:52]OFD Sender: No OFD packet to send [11:24:57]OFD Sender: No OFD packet to send [11:25:02]OFD Sender: No OFD packet to send [11:25:07]OFD Sender: No OFD packet to send [11:25:12]OFD Sender: No OFD packet to send [11:25:17]OFD Sender: No OFD packet to send [11:25:22]OFD Sender: No OFD packet to send [11:25:27]OFD Sender: No OFD packet to send [11:25:32]OFD Sender: No OFD packet to send [11:25:37]OFD Sender: No OFD packet to send [11:25:42]OFD Sender: No OFD packet to send [11:25:47]OFD Sender: No OFD packet to send [11:25:52]OFD Sender: No OFD packet to send [11:25:57]OFD Sender: No OFD packet to send [11:26:02]OFD Sender: No OFD packet to send [11:26:07]OFD Sender: No OFD packet to send [11:26:12]OFD Sender: No OFD packet to send [11:26:17]OFD Sender: No OFD packet to send [11:26:22]OFD Sender: No OFD packet to send [11:26:27]OFD Sender: No OFD packet to send [11:26:32]OFD Sender: No OFD packet to send [11:26:37]OFD Sender: No OFD packet to send [11:26:42]OFD Sender: No OFD packet to send [11:26:47]OFD Sender: No OFD packet to send [11:26:52]OFD Sender: No OFD packet to send [11:26:57]OFD Sender: No OFD packet to send [11:27:02]OFD Sender: No OFD packet to send [11:27:07]OFD Sender: No OFD packet to send [11:27:12]OFD Sender: No OFD packet to send [11:27:17]OFD Sender: No OFD packet to send [11:27:22]OFD Sender: No OFD packet to send [11:27:27]OFD Sender: No OFD packet to send [11:27:32]OFD Sender: No OFD packet to send [11:27:37]OFD Sender: No OFD packet to send [11:27:42]OFD Sender: No OFD packet to send [11:27:47]OFD Sender: No OFD packet to send [11:27:52]OFD Sender: No OFD packet to send [11:27:57]OFD Sender: No OFD packet to send [11:28:02]OFD Sender: No OFD packet to send [11:28:07]OFD Sender: No OFD packet to send [11:28:12]OFD Sender: No OFD packet to send [11:28:17]OFD Sender: No OFD packet to send [11:28:22]OFD Sender: No OFD packet to send [11:28:27]OFD Sender: No OFD packet to send [11:28:32]OFD Sender: No OFD packet to send [11:28:37]OFD Sender: No OFD packet to send [11:28:42]OFD Sender: No OFD packet to send [11:28:47]OFD Sender: No OFD packet to send [11:28:48]accept exits with 7 [11:28:48]New connection [11:28:48]New thread 3067276644 created [11:28:48]Thread 3067133284 joined [11:28:48]Waiting for new connection... [11:28:48] Sock 7.Parse request [11:28:48]Sock 7.Check first char [11:28:48]Sock 7.First char is OK [11:28:48]request: POST /json_proto HTTP/1.0 [11:28:48]Method: POST [11:28:48]URL: /json_proto [11:28:48]Method is POST - this is cgi request [11:28:48]url: /json_proto [11:28:48]query_string will be loaded in cgi processing [11:28:48]execute_cgi json_proto POST (null) [11:28:48]execute_cgi path=json_proto method=POST [11:28:48]POST find Content-Length [11:28:48]Host: 172.17.52.3:8080 [11:28:48]Content-Length: 678 [11:28:48]Content-Type: application/json [11:28:48] [11:28:48]POST finish read [11:28:48]Found Content-Length = 678 [11:28:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:28:48]execute_script... [11:28:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:28:48]POST & json_proto [11:28:48]process_json_proto [11:28:48]json parsed OK: [11:28:48]protocol is kg_v1.0 [11:28:48]action value=close_receipt [11:28:48]process_action close_receipt [11:28:48]cmd_close_receipt [11:28:48]MH_GetDate [11:28:48]Write to MH i2c: F0 00 00 B0 2D CC [11:28:48]Write i2c OK [11:28:48]MH_I2C_Read... [11:28:48]Read from MH i2c: F0 [11:28:48]MH_I2C_Read... [11:28:48]Read from MH i2c: F0 09 00 [11:28:48]MH_I2C_Read... [11:28:48]Read from MH i2c: F0 09 00 B0 2D 00 F9 DD 18 67 D7 68 A5 64 72 [11:28:48]GetLastDocTimeStamp 1729681962 [11:28:48]current date 1729682937 [11:28:48]FM_GetShiftState [11:28:48]SAM_PROTO_GetShiftState [11:28:48]wFMCommunicate request_size=4 [11:28:48]MH_SAM_APDU [11:28:48]CAPDU: 80 13 01 00 [11:28:48]Write to MH i2c: E2 08 00 B1 2D 80 13 01 00 00 00 00 00 5B [11:28:48]Write i2c OK [11:28:48]MH_I2C_Read... [11:28:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:48]Read from MH i2c: E2 [11:28:48]MH_I2C_Read... [11:28:48]Read from MH i2c: E2 0E 00 [11:28:48]MH_I2C_Read... [11:28:48]Read from MH i2c: E2 0E 00 B1 2D 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 CA [11:28:48]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [11:28:48]wFMCommunicate OK [11:28:48]SAM_PROTO_GetShiftState done [11:28:48]FM_GetShiftState done [11:28:48]opened in 1729641385 [11:28:48]opened+sec_in_day 1729727785 [11:28:48]quantity*price = 70044 [11:28:48]sum+1 = 70045 [11:28:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 30 23.10.2024 11:28 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68407 ФПД: 181115129804603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112857&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68407&fm=181115129804603&tin=02508201610067®Number=0000000000091756&sum=70000 [11:28:49]StoreToDocumentArchive [11:28:49]shift 507 fd 68407 [11:28:49]save to /storage/0507/doc_00068407 [11:28:49]save last doc name /storage/0507/doc_00068407 to /storage/kkm_last_doc_name [11:28:49]save OK [11:28:49]Clear old archive folders... [11:28:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:28:49]tlvbuf is 02089270 [11:28:49]SAM_PROTO_ClearQueue [11:28:49]wFMCommunicate request_size=4 [11:28:49]MH_SAM_APDU [11:28:49]CAPDU: 80 09 00 00 [11:28:49]Write to MH i2c: E2 08 00 BE 2D 80 09 00 00 00 00 00 00 5D [11:28:49]Write i2c OK [11:28:49]MH_I2C_Read... [11:28:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:49]Read from MH i2c: E2 [11:28:49]MH_I2C_Read... [11:28:49]Read from MH i2c: E2 03 00 [11:28:49]MH_I2C_Read... [11:28:49]Read from MH i2c: E2 03 00 BE 2D 00 90 00 5F [11:28:49]RAPDU: 90 00 [11:28:49]wFMCommunicate OK [11:28:49]SAM_PROTO_ClearQueue done [11:28:49]KKMCreateOFDPacket [11:28:49]OFDProtocolAddRootSTLVToBuf [11:28:49]FM_MakeSignedData [11:28:49]FM_MakeSignedData [11:28:49]SAM_PROTO_SignData [11:28:49]wFMCommunicate request_size=4 [11:28:49]MH_SAM_APDU [11:28:49]CAPDU: 80 0D 01 02 [11:28:49]Write to MH i2c: E2 08 00 BF 2D 80 0D 01 02 00 00 00 00 65 [11:28:49]Write i2c OK [11:28:49]MH_I2C_Read... [11:28:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:49]Read from MH i2c: E2 [11:28:49]MH_I2C_Read... [11:28:49]Read from MH i2c: E2 03 00 [11:28:49]MH_I2C_Read... [11:28:49]Read from MH i2c: E2 03 00 BF 2D 00 90 00 60 [11:28:49]RAPDU: 90 00 [11:28:49]wFMCommunicate OK [11:28:49]wFMCommunicate request_size=255 [11:28:49]MH_SAM_APDU [11:28: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 32 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 1E 00 00 00 F4 03 04 00 F9 DD 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 37 0B 01 00 35 04 06 00 A4 [11:28:49]Write to MH i2c: E2 02 01 C0 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 1E 00 00 00 F4 03 04 00 F9 DD 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 37 0B 01 00 35 04 06 00 A4 00 00 5B [11:28:49]Write i2c OK [11:28:49]MH_I2C_Read... [11:28:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:50]Read from MH i2c: E2 [11:28:50]MH_I2C_Read... [11:28:50]Read from MH i2c: E2 03 00 [11:28:50]MH_I2C_Read... [11:28:50]Read from MH i2c: E2 03 00 C0 2D 00 90 00 61 [11:28:50]RAPDU: 90 00 [11:28:50]wFMCommunicate OK [11:28:50]wFMCommunicate request_size=10 [11:28:50]MH_SAM_APDU [11:28:50]CAPDU: 80 0D 02 02 05 B9 26 F9 B7 3B [11:28:50]Write to MH i2c: E2 0D 00 C1 2D 80 0D 02 02 05 00 B9 26 F9 B7 3B 00 00 3C [11:28:50]Write i2c OK [11:28:50]MH_I2C_Read... [11:28:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:50]Read from MH i2c: E2 [11:28:50]MH_I2C_Read... [11:28:50]Read from MH i2c: E2 03 00 [11:28:50]MH_I2C_Read... [11:28:50]Read from MH i2c: E2 03 00 C1 2D 00 90 00 62 [11:28:50]RAPDU: 90 00 [11:28:50]wFMCommunicate OK [11:28:50]wFMCommunicate request_size=4 [11:28:50]MH_SAM_APDU [11:28:50]CAPDU: 80 0D 03 02 [11:28:50]Write to MH i2c: E2 08 00 C2 2D 80 0D 03 02 00 00 00 00 6A [11:28:50]Write i2c OK [11:28:50]MH_I2C_Read... [11:28:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:50]Read from MH i2c: E2 [11:28:50]MH_I2C_Read... [11:28:50]Read from MH i2c: E2 0B 00 [11:28:50]MH_I2C_Read... [11:28:50]Read from MH i2c: E2 0B 00 C2 2D 00 97 00 57 EA 0A A7 FE A4 90 00 96 [11:28:50]RAPDU: 97 00 57 EA 0A A7 FE A4 90 00 [11:28:50]wFMCommunicate OK [11:28:50]SAM_PROTO_SignData done [11:28:50]FM_MakeSignedData done [11:28:50]CreateOFDProtocolMessage [11:28:50]wFMCommunicate request_size=4 [11:28:50]MH_SAM_APDU [11:28:50]CAPDU: 80 11 00 00 [11:28:50]Write to MH i2c: E2 08 00 C3 2D 80 11 00 00 00 00 00 00 6A [11:28:50]Write i2c OK [11:28:50]MH_I2C_Read... [11:28:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:50]Read from MH i2c: E2 [11:28:50]MH_I2C_Read... [11:28:50]Read from MH i2c: E2 17 00 [11:28:50]MH_I2C_Read... [11:28:50]Read from MH i2c: E2 17 00 C3 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 BE [11:28:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [11:28:50]wFMCommunicate OK [11:28:50]CreateOFDProtocolMessage done [11:28:50]OFDSenderStorePacket 68407 [11:28:50]StoreOFDPacket docnum=68407 [11:28:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 A7 DF 07 01 41 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 32 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 1E 00 00 00 F4 03 04 00 F9 DD 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 37 0B 01 00 35 04 06 00 A4 B9 26 F9 B7 3B 97 00 57 EA 0A A7 FE A4 [11:28:50]CheckFolder [11:28:50]dirname=/storage/ofd_packets [11:28:50]CheckFolder done [11:28:50]ProducePacketName [11:28:50]name=ofd_packets/00068407 [11:28:50]NVStorageSaveData ofd_packets/00068407 [11:28:50]File name is /storage/ofd_packets/00068407 [11:28:50]Write 301 bytes [11:28:50]NVStorageSaveData done [11:28:50]OFDSenderStorePacket done [11:28:50]KKMCreateOFDPacket done [11:28:50]NVStorageSaveData kkm_last_timestamp [11:28:50]File name is /storage/kkm_last_timestamp [11:28:50]Write 4 bytes [11:28:50]NVStorageSaveData done [11:28:50]ExternCall_PrintAddStr [11:28:50]wPrintStart [11:28:50]Write to MH i2c: 01 00 00 C4 2D F1 [11:28:50]Write i2c OK [11:28:50]MH_I2C_Read... [11:28:50]Read from MH i2c: 01 [11:28:50]MH_I2C_Read... [11:28:50]Read from MH i2c: 01 07 00 [11:28:50]MH_I2C_Read... [11:28:50]Read from MH i2c: 01 07 00 C4 2D 00 04 00 00 00 FF 0F 0A [11:28:50]RasterBufferAndPrint [11:28:50]line Счет N : (1)210404 [11:28:50]line ИНН: 02508201610067 [11:28:50]line Контрольно-Кассовый Чек [11:28:50]line ПРОДАЖА [11:28:50]line ТРК (МРК, ГНК) : 11 [11:28:50]line Товар: 2710124130 [11:28:50]line Аи-92-К-2 [11:28:50]line 10.470 * 66.90 [11:28:50]line = 700.44 [11:28:50]line НДС 12% НСП 1% [11:28:50]line > о реализуемом товаре [11:28:50]line ОКРУГЛЕНИЕ: -0.44 [11:28:50]line ИТОГО: 700.00 [11:28:50]line Внесено: 700.00 [11:28:50]line СДАЧА: 0.00 [11:28:50]line НСП 1% : 6.20 [11:28:50]line НДС 12% : 74.38 [11:28:50]line Наличными: 700.00 [11:28:50]line Безнал.: 0.00 [11:28:50]line Место: АЗС № 147 "Партнер Нефть" [11:28:50]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [11:28:50]line СНО: Общий режим [11:28:50]line Чек 30 23.10.2024 11:28 [11:28:50]line Смена: 507 ФФД: 1.0 [11:28:50]line ЗНМ: 0300000094 [11:28:50]line РНМ: 0000000000091756 [11:28:50]line Версия ККМ: 001 [11:28:50]line ФМ: 0000000000871809 [11:28:50]line ФД: 68407 [11:28:50]line ФПД: 181115129804603 [11:28:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112857&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68407&fm=181115129804603&tin=02508201610067®Number=0000000000091756&sum=70000 [11:28:50]written 0, free lines is 4095 [11:28:50]OFD Sender: Processing packet 68407 [packets to send 8, broken 7] [11:28:50]ProducePacketName [11:28:50]name=ofd_packets/00068407 [11:28:50]OFD Sender: To server: pG, [11:28:50]CommunicateWithHost lk.salyk.kg:30040 [11:28:50]ConnectInit lk.salyk.kg [11:28:50]Write to MH i2c: 01 00 00 EE 2D 1B [11:28:50]Write i2c OK [11:28:50]MH_I2C_Read... [11:28:50]Read from MH i2c: 01 [11:28:50]MH_I2C_Read... [11:28:50]Read from MH i2c: 01 07 00 [11:28:50]MH_I2C_Read... [11:28:50]Connected sock=10 [11:28:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 A7 DF 07 01 41 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 32 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 1E 00 00 00 F4 03 04 00 F9 DD 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 37 0B 01 00 35 04 06 00 A4 B9 26 F9 B7 3B 97 00 57 EA 0A A7 FE A4 [11:28:50]Read from MH i2c: 01 07 00 EE 2D 00 04 00 00 00 9B 0C CD [11:28:50]RasterBufferAndPrint [11:28:50]line [11:28:50]line [11:28:50]line [11:28:50]line [11:28:50]line [11:28:50]written 0, free lines is 3249 [11:28:50]MH_Cut [11:28:50]Write to MH i2c: D1 01 00 F5 2D 01 F4 [11:28:50]Write i2c OK [11:28:50]MH_I2C_Read... [11:28:50]Read from MH i2c: D1 [11:28:50]MH_I2C_Read... [11:28:50]Read from MH i2c: D1 01 00 [11:28:50]MH_I2C_Read... [11:28:50]Read from MH i2c: D1 01 00 F5 2D 00 F3 [11:28:50]Write to MH i2c: 01 00 00 F6 2D 23 [11:28:50]Write i2c OK [11:28:50]MH_I2C_Read... [11:28:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 24 B1 47 00 39 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 31 38 30 39 10 04 04 00 37 0B 01 00 F4 03 04 00 EE 83 18 67 B6 04 01 00 00 FC B8 BC 5B 98 63 BD 07 [11:28:50]CommunicateWithHost err = 0 [11:28:50]CheckOFDResponse [11:28:50]1017 (14) - 77093643461234 [11:28:50]1041 (16) - 0000000000871809 [11:28:50]1040 (4) - 68407 [11:28:50]1012 (4) - 23.10.2024 05:04 [11:28:50]1206 (1) - 0 [11:28:50]OFD Sender: Remove packet 68407 [11:28:50]ProducePacketName [11:28:50]name=ofd_packets/00068407 [11:28:50]NVStorageDeleteData [11:28:51]OFD Sender: No OFD packet to send [11:28:51]*** Cut start [11:28:51]*** Partial cut [11:28:51]*** CUTSNS_PIN = 1 [11:28:51]*** CUTSNS_PIN = 0 [11:28:51]*** Brake cut motor [11:28:52]Read from MH i2c: 01 [11:28:52]MH_I2C_Read... [11:28:52]*** Stop cut motor [11:28:52]*** Cut end [11:28:52]Read from MH i2c: 01 07 00 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: 01 07 00 F6 2D 00 04 00 00 00 FF 0F 3C [11:28:52]process_action close_receipt done [11:28:52]requested_data is exist [11:28:52]produce_requested_data [11:28:52]requested_item fm.sn is exist - process it [11:28:52]wFMCommunicate request_size=4 [11:28:52]MH_SAM_APDU [11:28:52]CAPDU: 80 11 00 00 [11:28:52]Write to MH i2c: E2 08 00 F7 2D 80 11 00 00 00 00 00 00 9E [11:28:52]Write i2c OK [11:28:52]MH_I2C_Read... [11:28:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:52]Read from MH i2c: E2 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: E2 17 00 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: E2 17 00 F7 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 F2 [11:28:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [11:28:52]wFMCommunicate OK [11:28:52]requested_item fd.num is exist - process it [11:28:52]SAM_PROTO_GetFieldsCounters [11:28:52]wFMCommunicate request_size=4 [11:28:52]MH_SAM_APDU [11:28:52]CAPDU: 80 13 00 00 [11:28:52]Write to MH i2c: E2 08 00 F8 2D 80 13 00 00 00 00 00 00 A1 [11:28:52]Write i2c OK [11:28:52]MH_I2C_Read... [11:28:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:52]Read from MH i2c: E2 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: E2 62 00 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: E2 62 00 F8 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 37 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [11:28:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 37 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:52]wFMCommunicate OK [11:28:52]SAM_PROTO_GetFieldsCounters done [11:28:52]requested_item shift.num is exist - process it [11:28:52]requested_item shift.opened is exist - process it [11:28:52]req_shift_opened [11:28:52]FM_GetShiftState [11:28:52]SAM_PROTO_GetShiftState [11:28:52]wFMCommunicate request_size=4 [11:28:52]MH_SAM_APDU [11:28:52]CAPDU: 80 13 01 00 [11:28:52]Write to MH i2c: E2 08 00 F9 2D 80 13 01 00 00 00 00 00 A3 [11:28:52]Write i2c OK [11:28:52]MH_I2C_Read... [11:28:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:52]Read from MH i2c: E2 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: E2 0E 00 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: E2 0E 00 F9 2D 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 12 [11:28:52]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [11:28:52]wFMCommunicate OK [11:28:52]SAM_PROTO_GetShiftState done [11:28:52]FM_GetShiftState done [11:28:52]req_shift_opened done [11:28:52]requested_item shift.open_date is exist - process it [11:28:52]req_shift_open_date [11:28:52]req_shift_open_date done [11:28:52]produce_requested_data done [11:28:52]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68407,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [11:28:52]process_action_free close_receipt [11:28:52]json_value_free [11:28:52]json_value_free done [11:28:52]process_json_proto returns [11:28:52]Send response to host [11:28:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68407,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [11:28:52]free response buf [11:28:52]execute_script done [11:28:52]execute_script returns [11:28:52]free content buf [11:28:52]Sock 7.Close socket [11:28:52]Sock 7.Thread stoped [11:28:56]OFD Sender: No OFD packet to send [11:29:01]OFD Sender: No OFD packet to send [11:29:06]OFD Sender: No OFD packet to send [11:29:11]OFD Sender: No OFD packet to send [11:29:16]OFD Sender: No OFD packet to send [11:29:21]OFD Sender: No OFD packet to send [11:29:26]OFD Sender: No OFD packet to send [11:29:31]OFD Sender: No OFD packet to send [11:29:36]OFD Sender: No OFD packet to send [11:29:41]OFD Sender: No OFD packet to send [11:29:46]OFD Sender: No OFD packet to send [11:29:51]OFD Sender: No OFD packet to send [11:29:56]OFD Sender: No OFD packet to send [11:30:01]OFD Sender: No OFD packet to send [11:30:06]OFD Sender: No OFD packet to send [11:30:11]OFD Sender: No OFD packet to send [11:30:16]OFD Sender: No OFD packet to send [11:30:21]OFD Sender: No OFD packet to send [11:30:26]OFD Sender: No OFD packet to send [11:30:31]OFD Sender: No OFD packet to send [11:30:36]OFD Sender: No OFD packet to send [11:30:41]OFD Sender: No OFD packet to send [11:30:46]OFD Sender: No OFD packet to send [11:30:51]OFD Sender: No OFD packet to send [11:30:56]OFD Sender: No OFD packet to send [11:31:01]OFD Sender: No OFD packet to send [11:31:06]OFD Sender: No OFD packet to send [11:31:11]OFD Sender: No OFD packet to send [11:31:16]OFD Sender: No OFD packet to send [11:31:21]OFD Sender: No OFD packet to send [11:31:26]OFD Sender: No OFD packet to send [11:31:31]OFD Sender: No OFD packet to send [11:31:36]OFD Sender: No OFD packet to send [11:31:41]OFD Sender: No OFD packet to send [11:31:46]OFD Sender: No OFD packet to send [11:31:51]OFD Sender: No OFD packet to send [11:31:56]OFD Sender: No OFD packet to send [11:32:01]OFD Sender: No OFD packet to send [11:32:06]OFD Sender: No OFD packet to send [11:32:11]OFD Sender: No OFD packet to send [11:32:16]OFD Sender: No OFD packet to send [11:32:21]OFD Sender: No OFD packet to send [11:32:26]OFD Sender: No OFD packet to send [11:32:31]OFD Sender: No OFD packet to send [11:32:36]OFD Sender: No OFD packet to send [11:32:41]OFD Sender: No OFD packet to send [11:32:46]OFD Sender: No OFD packet to send [11:32:51]OFD Sender: No OFD packet to send [11:32:56]OFD Sender: No OFD packet to send [11:33:01]OFD Sender: No OFD packet to send [11:33:06]OFD Sender: No OFD packet to send [11:33:11]OFD Sender: No OFD packet to send [11:33:16]OFD Sender: No OFD packet to send [11:33:21]OFD Sender: No OFD packet to send [11:33:26]OFD Sender: No OFD packet to send [11:33:31]OFD Sender: No OFD packet to send [11:33:36]OFD Sender: No OFD packet to send [11:33:41]OFD Sender: No OFD packet to send [11:33:46]OFD Sender: No OFD packet to send [11:33:51]OFD Sender: No OFD packet to send [11:33:56]OFD Sender: No OFD packet to send [11:34:01]OFD Sender: No OFD packet to send [11:34:06]OFD Sender: No OFD packet to send [11:34:11]OFD Sender: No OFD packet to send [11:34:16]OFD Sender: No OFD packet to send [11:34:21]OFD Sender: No OFD packet to send [11:34:26]OFD Sender: No OFD packet to send [11:34:31]OFD Sender: No OFD packet to send [11:34:36]OFD Sender: No OFD packet to send [11:34:41]OFD Sender: No OFD packet to send [11:34:46]OFD Sender: No OFD packet to send [11:34:51]OFD Sender: No OFD packet to send [11:34:56]OFD Sender: No OFD packet to send [11:35:01]OFD Sender: No OFD packet to send [11:35:06]OFD Sender: No OFD packet to send [11:35:11]OFD Sender: No OFD packet to send [11:35:16]OFD Sender: No OFD packet to send [11:35:21]OFD Sender: No OFD packet to send [11:35:26]OFD Sender: No OFD packet to send [11:35:31]OFD Sender: No OFD packet to send [11:35:36]OFD Sender: No OFD packet to send [11:35:41]OFD Sender: No OFD packet to send [11:35:46]OFD Sender: No OFD packet to send [11:35:51]OFD Sender: No OFD packet to send [11:35:56]OFD Sender: No OFD packet to send [11:36:01]OFD Sender: No OFD packet to send [11:36:06]OFD Sender: No OFD packet to send [11:36:11]OFD Sender: No OFD packet to send [11:36:16]OFD Sender: No OFD packet to send [11:36:21]OFD Sender: No OFD packet to send [11:36:26]OFD Sender: No OFD packet to send [11:36:31]OFD Sender: No OFD packet to send [11:36:36]OFD Sender: No OFD packet to send [11:36:41]OFD Sender: No OFD packet to send [11:36:46]OFD Sender: No OFD packet to send [11:36:51]OFD Sender: No OFD packet to send [11:36:56]OFD Sender: No OFD packet to send [11:37:01]OFD Sender: No OFD packet to send [11:37:06]OFD Sender: No OFD packet to send [11:37:11]OFD Sender: No OFD packet to send [11:37:16]OFD Sender: No OFD packet to send [11:37:21]OFD Sender: No OFD packet to send [11:37:26]OFD Sender: No OFD packet to send [11:37:31]OFD Sender: No OFD packet to send [11:37:36]OFD Sender: No OFD packet to send [11:37:41]OFD Sender: No OFD packet to send [11:37:46]OFD Sender: No OFD packet to send [11:37:51]OFD Sender: No OFD packet to send [11:37:56]OFD Sender: No OFD packet to send [11:38:01]OFD Sender: No OFD packet to send [11:38:02]accept exits with 9 [11:38:02]New connection [11:38:02]New thread 3067133284 created [11:38:02]Thread 3067276644 joined [11:38:02]Waiting for new connection... [11:38:02] Sock 9.Parse request [11:38:02]Sock 9.Check first char [11:38:02]Sock 9.First char is OK [11:38:02]request: POST /json_proto HTTP/1.0 [11:38:02]Method: POST [11:38:02]URL: /json_proto [11:38:02]Method is POST - this is cgi request [11:38:02]url: /json_proto [11:38:02]query_string will be loaded in cgi processing [11:38:02]execute_cgi json_proto POST (null) [11:38:02]execute_cgi path=json_proto method=POST [11:38:02]POST find Content-Length [11:38:02]Host: 172.17.52.3:8080 [11:38:02]Content-Length: 677 [11:38:02]Content-Type: application/json [11:38:02] [11:38:02]POST finish read [11:38:02]Found Content-Length = 677 [11:38:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:38:02]execute_script... [11:38: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)210405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:38:02]POST & json_proto [11:38:02]process_json_proto [11:38:02]json parsed OK: [11:38:02]protocol is kg_v1.0 [11:38:02]action value=close_receipt [11:38:02]process_action close_receipt [11:38:02]cmd_close_receipt [11:38:02]MH_GetDate [11:38:02]Write to MH i2c: F0 00 00 FA 2D 16 [11:38:02]Write i2c OK [11:38:02]MH_I2C_Read... [11:38:02]Read from MH i2c: F0 [11:38:02]MH_I2C_Read... [11:38:02]Read from MH i2c: F0 09 00 [11:38:02]MH_I2C_Read... [11:38:02]Read from MH i2c: F0 09 00 FA 2D 00 23 E0 18 67 D7 68 A5 64 E9 [11:38:02]GetLastDocTimeStamp 1729682937 [11:38:02]current date 1729683491 [11:38:02]FM_GetShiftState [11:38:02]SAM_PROTO_GetShiftState [11:38:02]wFMCommunicate request_size=4 [11:38:02]MH_SAM_APDU [11:38:02]CAPDU: 80 13 01 00 [11:38:02]Write to MH i2c: E2 08 00 FB 2D 80 13 01 00 00 00 00 00 A5 [11:38:02]Write i2c OK [11:38:02]MH_I2C_Read... [11:38:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:02]Read from MH i2c: E2 [11:38:02]MH_I2C_Read... [11:38:02]Read from MH i2c: E2 0E 00 [11:38:02]MH_I2C_Read... [11:38:02]Read from MH i2c: E2 0E 00 FB 2D 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 14 [11:38:02]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [11:38:02]wFMCommunicate OK [11:38:02]SAM_PROTO_GetShiftState done [11:38:02]FM_GetShiftState done [11:38:02]opened in 1729641385 [11:38:02]opened+sec_in_day 1729727785 [11:38:02]quantity*price = 50041 [11:38:02]sum+1 = 50042 [11:38:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 31 23.10.2024 11:38 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68408 ФПД: 107982642779030 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T113811&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68408&fm=107982642779030&tin=02508201610067®Number=0000000000091756&sum=50000 [11:38:03]StoreToDocumentArchive [11:38:03]shift 507 fd 68408 [11:38:03]save to /storage/0507/doc_00068408 [11:38:03]save last doc name /storage/0507/doc_00068408 to /storage/kkm_last_doc_name [11:38:03]save OK [11:38:03]Clear old archive folders... [11:38:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:38:03]tlvbuf is 01FF0F20 [11:38:03]SAM_PROTO_ClearQueue [11:38:03]wFMCommunicate request_size=4 [11:38:03]MH_SAM_APDU [11:38:03]CAPDU: 80 09 00 00 [11:38:03]Write to MH i2c: E2 08 00 08 2E 80 09 00 00 00 00 00 00 A8 [11:38:03]Write i2c OK [11:38:03]MH_I2C_Read... [11:38:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:03]Read from MH i2c: E2 [11:38:03]MH_I2C_Read... [11:38:03]Read from MH i2c: E2 03 00 [11:38:03]MH_I2C_Read... [11:38:03]Read from MH i2c: E2 03 00 08 2E 00 90 00 AA [11:38:03]RAPDU: 90 00 [11:38:03]wFMCommunicate OK [11:38:03]SAM_PROTO_ClearQueue done [11:38:03]KKMCreateOFDPacket [11:38:03]OFDProtocolAddRootSTLVToBuf [11:38:03]FM_MakeSignedData [11:38:03]FM_MakeSignedData [11:38:03]SAM_PROTO_SignData [11:38:03]wFMCommunicate request_size=4 [11:38:03]MH_SAM_APDU [11:38:03]CAPDU: 80 0D 01 02 [11:38:03]Write to MH i2c: E2 08 00 09 2E 80 0D 01 02 00 00 00 00 B0 [11:38:03]Write i2c OK [11:38:03]MH_I2C_Read... [11:38:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:03]Read from MH i2c: E2 [11:38:03]MH_I2C_Read... [11:38:03]Read from MH i2c: E2 03 00 [11:38:03]MH_I2C_Read... [11:38:03]Read from MH i2c: E2 03 00 09 2E 00 90 00 AB [11:38:03]RAPDU: 90 00 [11:38:03]wFMCommunicate OK [11:38:03]wFMCommunicate request_size=255 [11:38:03]MH_SAM_APDU [11:38: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 32 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 1F 00 00 00 F4 03 04 00 23 E0 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 38 0B 01 00 35 04 06 00 62 [11:38:03]Write to MH i2c: E2 02 01 0A 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 1F 00 00 00 F4 03 04 00 23 E0 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 38 0B 01 00 35 04 06 00 62 00 00 83 [11:38:03]Write i2c OK [11:38:03]MH_I2C_Read... [11:38:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:04]Read from MH i2c: E2 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 03 00 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 03 00 0A 2E 00 90 00 AC [11:38:04]RAPDU: 90 00 [11:38:04]wFMCommunicate OK [11:38:04]wFMCommunicate request_size=10 [11:38:04]MH_SAM_APDU [11:38:04]CAPDU: 80 0D 02 02 05 35 AB 10 93 96 [11:38:04]Write to MH i2c: E2 0D 00 0B 2E 80 0D 02 02 05 00 35 AB 10 93 96 00 00 D6 [11:38:04]Write i2c OK [11:38:04]MH_I2C_Read... [11:38:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:04]Read from MH i2c: E2 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 03 00 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 03 00 0B 2E 00 90 00 AD [11:38:04]RAPDU: 90 00 [11:38:04]wFMCommunicate OK [11:38:04]wFMCommunicate request_size=4 [11:38:04]MH_SAM_APDU [11:38:04]CAPDU: 80 0D 03 02 [11:38:04]Write to MH i2c: E2 08 00 0C 2E 80 0D 03 02 00 00 00 00 B5 [11:38:04]Write i2c OK [11:38:04]MH_I2C_Read... [11:38:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:04]Read from MH i2c: E2 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 0B 00 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 0B 00 0C 2E 00 BA 64 10 B6 12 CA E4 98 90 00 F2 [11:38:04]RAPDU: BA 64 10 B6 12 CA E4 98 90 00 [11:38:04]wFMCommunicate OK [11:38:04]SAM_PROTO_SignData done [11:38:04]FM_MakeSignedData done [11:38:04]CreateOFDProtocolMessage [11:38:04]wFMCommunicate request_size=4 [11:38:04]MH_SAM_APDU [11:38:04]CAPDU: 80 11 00 00 [11:38:04]Write to MH i2c: E2 08 00 0D 2E 80 11 00 00 00 00 00 00 B5 [11:38:04]Write i2c OK [11:38:04]MH_I2C_Read... [11:38:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:04]Read from MH i2c: E2 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 17 00 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 17 00 0D 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 09 [11:38:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [11:38:04]wFMCommunicate OK [11:38:04]CreateOFDProtocolMessage done [11:38:04]OFDSenderStorePacket 68408 [11:38:04]StoreOFDPacket docnum=68408 [11:38:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 1B A6 07 01 91 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 32 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 1F 00 00 00 F4 03 04 00 23 E0 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 38 0B 01 00 35 04 06 00 62 35 AB 10 93 96 BA 64 10 B6 12 CA E4 98 [11:38:04]CheckFolder [11:38:04]dirname=/storage/ofd_packets [11:38:04]CheckFolder done [11:38:04]ProducePacketName [11:38:04]name=ofd_packets/00068408 [11:38:04]NVStorageSaveData ofd_packets/00068408 [11:38:04]File name is /storage/ofd_packets/00068408 [11:38:04]Write 301 bytes [11:38:04]NVStorageSaveData done [11:38:04]OFDSenderStorePacket done [11:38:04]KKMCreateOFDPacket done [11:38:04]NVStorageSaveData kkm_last_timestamp [11:38:04]File name is /storage/kkm_last_timestamp [11:38:04]Write 4 bytes [11:38:04]NVStorageSaveData done [11:38:04]ExternCall_PrintAddStr [11:38:04]wPrintStart [11:38:04]Write to MH i2c: 01 00 00 0E 2E 3C [11:38:04]Write i2c OK [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: 01 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: 01 07 00 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: 01 07 00 0E 2E 00 04 00 00 00 FF 0F 55 [11:38:04]RasterBufferAndPrint [11:38:04]line Счет N : (1)210405 [11:38:04]line ИНН: 02508201610067 [11:38:04]line Контрольно-Кассовый Чек [11:38:04]line ПРОДАЖА [11:38:04]line ТРК (МРК, ГНК) : 11 [11:38:04]line Товар: 2710124130 [11:38:04]line Аи-92-К-2 [11:38:04]line 7.480 * 66.90 [11:38:04]line = 500.41 [11:38:04]line НДС 12% НСП 1% [11:38:04]line > о реализуемом товаре [11:38:04]line ОКРУГЛЕНИЕ: -0.41 [11:38:04]line ИТОГО: 500.00 [11:38:04]line Внесено: 500.00 [11:38:04]line СДАЧА: 0.00 [11:38:04]line НСП 1% : 4.43 [11:38:04]line НДС 12% : 53.14 [11:38:04]line Наличными: 500.00 [11:38:04]line Безнал.: 0.00 [11:38:04]line Место: АЗС № 147 "Партнер Нефть" [11:38:04]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [11:38:04]line СНО: Общий режим [11:38:04]line Чек 31 23.10.2024 11:38 [11:38:04]line Смена: 507 ФФД: 1.0 [11:38:04]line ЗНМ: 0300000094 [11:38:04]line РНМ: 0000000000091756 [11:38:04]line Версия ККМ: 001 [11:38:04]line ФМ: 0000000000871809 [11:38:04]line ФД: 68408 [11:38:04]line ФПД: 107982642779030 [11:38:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T113811&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68408&fm=107982642779030&tin=02508201610067®Number=0000000000091756&sum=50000 [11:38:04]OFD Sender: Processing packet 68408 [packets to send 8, broken 7] [11:38:04]ProducePacketName [11:38:04]name=ofd_packets/00068408 [11:38:04]OFD Sender: To server: pG, [11:38:04]CommunicateWithHost lk.salyk.kg:30040 [11:38:04]ConnectInit lk.salyk.kg [11:38:04]written 0, free lines is 4095 [11:38:04]Connected sock=10 [11:38:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 1B A6 07 01 91 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 32 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 1F 00 00 00 F4 03 04 00 23 E0 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 38 0B 01 00 35 04 06 00 62 35 AB 10 93 96 BA 64 10 B6 12 CA E4 98 [11:38:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 50 78 47 00 2E B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 38 0B 01 00 F4 03 04 00 18 86 18 67 B6 04 01 00 00 E5 35 35 08 D6 AD 8D 21 [11:38:04]CommunicateWithHost err = 0 [11:38:04]CheckOFDResponse [11:38:04]1017 (14) - 77093643461234 [11:38:04]1041 (16) - 0000000000871809 [11:38:04]1040 (4) - 68408 [11:38:04]1012 (4) - 23.10.2024 05:14 [11:38:04]1206 (1) - 0 [11:38:04]OFD Sender: Remove packet 68408 [11:38:04]ProducePacketName [11:38:04]name=ofd_packets/00068408 [11:38:04]NVStorageDeleteData [11:38:05]Write to MH i2c: 01 00 00 38 2E 66 [11:38:05]Write i2c OK [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: 01 [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: 01 07 00 [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: 01 07 00 38 2E 00 04 00 00 00 A0 0C 1D [11:38:05]RasterBufferAndPrint [11:38:05]line [11:38:05]line [11:38:05]line [11:38:05]line [11:38:05]line [11:38:05]written 0, free lines is 3235 [11:38:05]MH_Cut [11:38:05]Write to MH i2c: D1 01 00 3F 2E 01 3F [11:38:05]Write i2c OK [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: D1 [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: D1 01 00 [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: D1 01 00 3F 2E 00 3E [11:38:05]Write to MH i2c: 01 00 00 40 2E 6E [11:38:05]Write i2c OK [11:38:05]MH_I2C_Read... [11:38:05]OFD Sender: No OFD packet to send [11:38:06]*** Cut start [11:38:06]*** Partial cut [11:38:06]*** CUTSNS_PIN = 1 [11:38:06]*** CUTSNS_PIN = 0 [11:38:06]*** Brake cut motor [11:38:06]Read from MH i2c: 01 [11:38:06]MH_I2C_Read... [11:38:06]*** Stop cut motor [11:38:06]*** Cut end [11:38:06]Read from MH i2c: 01 07 00 [11:38:06]MH_I2C_Read... [11:38:06]Read from MH i2c: 01 07 00 40 2E 00 04 00 00 00 FF 0F 87 [11:38:06]process_action close_receipt done [11:38:06]requested_data is exist [11:38:06]produce_requested_data [11:38:06]requested_item fm.sn is exist - process it [11:38:06]wFMCommunicate request_size=4 [11:38:06]MH_SAM_APDU [11:38:06]CAPDU: 80 11 00 00 [11:38:06]Write to MH i2c: E2 08 00 41 2E 80 11 00 00 00 00 00 00 E9 [11:38:06]Write i2c OK [11:38:06]MH_I2C_Read... [11:38:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:06]Read from MH i2c: E2 [11:38:06]MH_I2C_Read... [11:38:06]Read from MH i2c: E2 17 00 [11:38:06]MH_I2C_Read... [11:38:06]Read from MH i2c: E2 17 00 41 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 3D [11:38:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [11:38:06]wFMCommunicate OK [11:38:06]requested_item fd.num is exist - process it [11:38:06]SAM_PROTO_GetFieldsCounters [11:38:06]wFMCommunicate request_size=4 [11:38:06]MH_SAM_APDU [11:38:06]CAPDU: 80 13 00 00 [11:38:06]Write to MH i2c: E2 08 00 42 2E 80 13 00 00 00 00 00 00 EC [11:38:06]Write i2c OK [11:38:06]MH_I2C_Read... [11:38:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:06]Read from MH i2c: E2 [11:38:06]MH_I2C_Read... [11:38:06]Read from MH i2c: E2 62 00 [11:38:06]MH_I2C_Read... [11:38:06]Read from MH i2c: E2 62 00 42 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 38 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [11:38:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 38 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:38:06]wFMCommunicate OK [11:38:06]SAM_PROTO_GetFieldsCounters done [11:38:06]requested_item shift.num is exist - process it [11:38:06]requested_item shift.opened is exist - process it [11:38:06]req_shift_opened [11:38:06]FM_GetShiftState [11:38:06]SAM_PROTO_GetShiftState [11:38:06]wFMCommunicate request_size=4 [11:38:06]MH_SAM_APDU [11:38:06]CAPDU: 80 13 01 00 [11:38:06]Write to MH i2c: E2 08 00 43 2E 80 13 01 00 00 00 00 00 EE [11:38:06]Write i2c OK [11:38:06]MH_I2C_Read... [11:38:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:06]Read from MH i2c: E2 [11:38:06]MH_I2C_Read... [11:38:06]Read from MH i2c: E2 0E 00 [11:38:06]MH_I2C_Read... [11:38:06]Read from MH i2c: E2 0E 00 43 2E 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 5D [11:38:06]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [11:38:06]wFMCommunicate OK [11:38:06]SAM_PROTO_GetShiftState done [11:38:06]FM_GetShiftState done [11:38:06]req_shift_opened done [11:38:06]requested_item shift.open_date is exist - process it [11:38:06]req_shift_open_date [11:38:06]req_shift_open_date done [11:38:06]produce_requested_data done [11:38:06]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68408,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [11:38:06]process_action_free close_receipt [11:38:06]json_value_free [11:38:06]json_value_free done [11:38:06]process_json_proto returns [11:38:06]Send response to host [11:38:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68408,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [11:38:06]free response buf [11:38:06]execute_script done [11:38:06]execute_script returns [11:38:06]free content buf [11:38:06]Sock 9.Close socket [11:38:06]Sock 9.Thread stoped [11:38:10]OFD Sender: No OFD packet to send [11:38:15]OFD Sender: No OFD packet to send [11:38:20]OFD Sender: No OFD packet to send [11:38:25]OFD Sender: No OFD packet to send [11:38:30]OFD Sender: No OFD packet to send [11:38:35]OFD Sender: No OFD packet to send [11:38:40]OFD Sender: No OFD packet to send [11:38:45]OFD Sender: No OFD packet to send [11:38:50]OFD Sender: No OFD packet to send [11:38:55]OFD Sender: No OFD packet to send [11:39:00]OFD Sender: No OFD packet to send [11:39:05]OFD Sender: No OFD packet to send [11:39:10]OFD Sender: No OFD packet to send [11:39:15]OFD Sender: No OFD packet to send [11:39:20]OFD Sender: No OFD packet to send [11:39:25]OFD Sender: No OFD packet to send [11:39:30]OFD Sender: No OFD packet to send [11:39:35]OFD Sender: No OFD packet to send [11:39:40]OFD Sender: No OFD packet to send [11:39:45]OFD Sender: No OFD packet to send [11:39:50]OFD Sender: No OFD packet to send [11:39:55]OFD Sender: No OFD packet to send [11:40:00]OFD Sender: No OFD packet to send [11:40:05]OFD Sender: No OFD packet to send [11:40:10]OFD Sender: No OFD packet to send [11:40:15]OFD Sender: No OFD packet to send [11:40:20]OFD Sender: No OFD packet to send [11:40:25]OFD Sender: No OFD packet to send [11:40:30]OFD Sender: No OFD packet to send [11:40:35]OFD Sender: No OFD packet to send [11:40:40]OFD Sender: No OFD packet to send [11:40:45]OFD Sender: No OFD packet to send [11:40:50]OFD Sender: No OFD packet to send [11:40:55]OFD Sender: No OFD packet to send [11:41:00]OFD Sender: No OFD packet to send [11:41:05]OFD Sender: No OFD packet to send [11:41:10]OFD Sender: No OFD packet to send [11:41:15]OFD Sender: No OFD packet to send [11:41:20]OFD Sender: No OFD packet to send [11:41:25]OFD Sender: No OFD packet to send [11:41:30]OFD Sender: No OFD packet to send [11:41:35]OFD Sender: No OFD packet to send [11:41:40]OFD Sender: No OFD packet to send [11:41:45]OFD Sender: No OFD packet to send [11:41:50]OFD Sender: No OFD packet to send [11:41:55]OFD Sender: No OFD packet to send [11:42:00]OFD Sender: No OFD packet to send [11:42:05]OFD Sender: No OFD packet to send [11:42:09]accept exits with 7 [11:42:09]New connection [11:42:09]New thread 3067276644 created [11:42:09]Thread 3067133284 joined [11:42:09]Waiting for new connection... [11:42:09] Sock 7.Parse request [11:42:09]Sock 7.Check first char [11:42:09]Sock 7.First char is OK [11:42:09]request: POST /json_proto HTTP/1.0 [11:42:09]Method: POST [11:42:09]URL: /json_proto [11:42:09]Method is POST - this is cgi request [11:42:09]url: /json_proto [11:42:09]query_string will be loaded in cgi processing [11:42:09]execute_cgi json_proto POST (null) [11:42:09]execute_cgi path=json_proto method=POST [11:42:09]POST find Content-Length [11:42:09]Host: 172.17.52.3:8080 [11:42:09]Content-Length: 677 [11:42:09]Content-Type: application/json [11:42:09] [11:42:09]POST finish read [11:42:09]Found Content-Length = 677 [11:42:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:42:09]execute_script... [11:42: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)210406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:42:09]POST & json_proto [11:42:09]process_json_proto [11:42:09]json parsed OK: [11:42:09]protocol is kg_v1.0 [11:42:09]action value=close_receipt [11:42:09]process_action close_receipt [11:42:09]cmd_close_receipt [11:42:09]MH_GetDate [11:42:09]Write to MH i2c: F0 00 00 44 2E 61 [11:42:09]Write i2c OK [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: F0 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: F0 09 00 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: F0 09 00 44 2E 00 19 E1 18 67 D7 68 A5 64 2B [11:42:09]GetLastDocTimeStamp 1729683491 [11:42:09]current date 1729683737 [11:42:09]FM_GetShiftState [11:42:09]SAM_PROTO_GetShiftState [11:42:09]wFMCommunicate request_size=4 [11:42:09]MH_SAM_APDU [11:42:09]CAPDU: 80 13 01 00 [11:42:09]Write to MH i2c: E2 08 00 45 2E 80 13 01 00 00 00 00 00 F0 [11:42:09]Write i2c OK [11:42:09]MH_I2C_Read... [11:42:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:09]Read from MH i2c: E2 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: E2 0E 00 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: E2 0E 00 45 2E 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 5F [11:42:09]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [11:42:09]wFMCommunicate OK [11:42:09]SAM_PROTO_GetShiftState done [11:42:09]FM_GetShiftState done [11:42:09]opened in 1729641385 [11:42:09]opened+sec_in_day 1729727785 [11:42:09]quantity*price = 30038 [11:42:09]sum+1 = 30039 [11:42:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 32 23.10.2024 11:42 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68409 ФПД: 23048577902330 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114217&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68409&fm=23048577902330&tin=02508201610067®Number=0000000000091756&sum=30000 [11:42:10]StoreToDocumentArchive [11:42:10]shift 507 fd 68409 [11:42:10]save to /storage/0507/doc_00068409 [11:42:10]save last doc name /storage/0507/doc_00068409 to /storage/kkm_last_doc_name [11:42:10]save OK [11:42:10]Clear old archive folders... [11:42:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:42:10]tlvbuf is 01FF0BB0 [11:42:10]SAM_PROTO_ClearQueue [11:42:10]wFMCommunicate request_size=4 [11:42:10]MH_SAM_APDU [11:42:10]CAPDU: 80 09 00 00 [11:42:10]Write to MH i2c: E2 08 00 52 2E 80 09 00 00 00 00 00 00 F2 [11:42:10]Write i2c OK [11:42:10]MH_I2C_Read... [11:42:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:10]Read from MH i2c: E2 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: E2 03 00 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: E2 03 00 52 2E 00 90 00 F4 [11:42:10]RAPDU: 90 00 [11:42:10]wFMCommunicate OK [11:42:10]SAM_PROTO_ClearQueue done [11:42:10]KKMCreateOFDPacket [11:42:10]OFDProtocolAddRootSTLVToBuf [11:42:10]FM_MakeSignedData [11:42:10]FM_MakeSignedData [11:42:10]SAM_PROTO_SignData [11:42:10]wFMCommunicate request_size=4 [11:42:10]MH_SAM_APDU [11:42:10]CAPDU: 80 0D 01 02 [11:42:10]Write to MH i2c: E2 08 00 53 2E 80 0D 01 02 00 00 00 00 FA [11:42:10]Write i2c OK [11:42:10]MH_I2C_Read... [11:42:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:10]Read from MH i2c: E2 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: E2 03 00 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: E2 03 00 53 2E 00 90 00 F5 [11:42:10]RAPDU: 90 00 [11:42:10]wFMCommunicate OK [11:42:10]wFMCommunicate request_size=255 [11:42:10]MH_SAM_APDU [11:42: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 32 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 20 00 00 00 F4 03 04 00 19 E1 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 39 0B 01 00 35 04 06 00 14 [11:42:10]Write to MH i2c: E2 02 01 54 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 20 00 00 00 F4 03 04 00 19 E1 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 39 0B 01 00 35 04 06 00 14 00 00 6C [11:42:10]Write i2c OK [11:42:10]MH_I2C_Read... [11:42:10]OFD Sender: No OFD packet to send [11:42:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:10]Read from MH i2c: E2 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: E2 03 00 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: E2 03 00 54 2E 00 90 00 F6 [11:42:10]RAPDU: 90 00 [11:42:10]wFMCommunicate OK [11:42:10]wFMCommunicate request_size=10 [11:42:10]MH_SAM_APDU [11:42:10]CAPDU: 80 0D 02 02 05 F6 6A 4C 66 FA [11:42:10]Write to MH i2c: E2 0D 00 55 2E 80 0D 02 02 05 00 F6 6A 4C 66 FA 00 00 13 [11:42:10]Write i2c OK [11:42:10]MH_I2C_Read... [11:42:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:10]Read from MH i2c: E2 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: E2 03 00 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: E2 03 00 55 2E 00 90 00 F7 [11:42:10]RAPDU: 90 00 [11:42:10]wFMCommunicate OK [11:42:10]wFMCommunicate request_size=4 [11:42:10]MH_SAM_APDU [11:42:10]CAPDU: 80 0D 03 02 [11:42:10]Write to MH i2c: E2 08 00 56 2E 80 0D 03 02 00 00 00 00 FF [11:42:10]Write i2c OK [11:42:10]MH_I2C_Read... [11:42:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:10]Read from MH i2c: E2 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: E2 0B 00 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: E2 0B 00 56 2E 00 DC 8E C9 73 F8 D7 24 D9 90 00 72 [11:42:10]RAPDU: DC 8E C9 73 F8 D7 24 D9 90 00 [11:42:10]wFMCommunicate OK [11:42:10]SAM_PROTO_SignData done [11:42:10]FM_MakeSignedData done [11:42:10]CreateOFDProtocolMessage [11:42:10]wFMCommunicate request_size=4 [11:42:10]MH_SAM_APDU [11:42:10]CAPDU: 80 11 00 00 [11:42:10]Write to MH i2c: E2 08 00 57 2E 80 11 00 00 00 00 00 00 FF [11:42:10]Write i2c OK [11:42:10]MH_I2C_Read... [11:42:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:10]Read from MH i2c: E2 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: E2 17 00 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: E2 17 00 57 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 53 [11:42:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [11:42:10]wFMCommunicate OK [11:42:10]CreateOFDProtocolMessage done [11:42:10]OFDSenderStorePacket 68409 [11:42:10]StoreOFDPacket docnum=68409 [11:42:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 66 55 07 01 10 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 20 00 00 00 F4 03 04 00 19 E1 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 39 0B 01 00 35 04 06 00 14 F6 6A 4C 66 FA DC 8E C9 73 F8 D7 24 D9 [11:42:10]CheckFolder [11:42:10]dirname=/storage/ofd_packets [11:42:10]CheckFolder done [11:42:10]ProducePacketName [11:42:10]name=ofd_packets/00068409 [11:42:10]NVStorageSaveData ofd_packets/00068409 [11:42:10]File name is /storage/ofd_packets/00068409 [11:42:10]Write 301 bytes [11:42:10]NVStorageSaveData done [11:42:10]OFDSenderStorePacket done [11:42:10]KKMCreateOFDPacket done [11:42:10]NVStorageSaveData kkm_last_timestamp [11:42:10]File name is /storage/kkm_last_timestamp [11:42:10]Write 4 bytes [11:42:10]NVStorageSaveData done [11:42:10]ExternCall_PrintAddStr [11:42:10]wPrintStart [11:42:10]Write to MH i2c: 01 00 00 58 2E 86 [11:42:10]Write i2c OK [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: 01 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: 01 07 00 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: 01 07 00 58 2E 00 04 00 00 00 FF 0F 9F [11:42:10]RasterBufferAndPrint [11:42:10]line Счет N : (1)210406 [11:42:10]line ИНН: 02508201610067 [11:42:10]line Контрольно-Кассовый Чек [11:42:10]line ПРОДАЖА [11:42:10]line ТРК (МРК, ГНК) : 11 [11:42:10]line Товар: 2710124130 [11:42:10]line Аи-92-К-2 [11:42:10]line 4.490 * 66.90 [11:42:10]line = 300.38 [11:42:10]line НДС 12% НСП 1% [11:42:10]line > о реализуемом товаре [11:42:10]line ОКРУГЛЕНИЕ: -0.38 [11:42:10]line ИТОГО: 300.00 [11:42:10]line Внесено: 300.00 [11:42:10]line СДАЧА: 0.00 [11:42:10]line НСП 1% : 2.66 [11:42:10]line НДС 12% : 31.90 [11:42:10]line Наличными: 300.00 [11:42:10]line Безнал.: 0.00 [11:42:10]line Место: АЗС № 147 "Партнер Нефть" [11:42:10]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [11:42:10]line СНО: Общий режим [11:42:10]line Чек 32 23.10.2024 11:42 [11:42:10]line Смена: 507 ФФД: 1.0 [11:42:10]line ЗНМ: 0300000094 [11:42:10]line РНМ: 0000000000091756 [11:42:10]line Версия ККМ: 001 [11:42:10]line ФМ: 0000000000871809 [11:42:10]line ФД: 68409 [11:42:10]line ФПД: 23048577902330 [11:42:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114217&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68409&fm=23048577902330&tin=02508201610067®Number=0000000000091756&sum=30000 [11:42:11]written 0, free lines is 4095 [11:42:11]OFD Sender: Processing packet 68409 [packets to send 8, broken 7] [11:42:11]ProducePacketName [11:42:11]name=ofd_packets/00068409 [11:42:11]OFD Sender: To server: pG, [11:42:11]CommunicateWithHost lk.salyk.kg:30040 [11:42:11]ConnectInit lk.salyk.kg [11:42:11]Connected sock=10 [11:42:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 66 55 07 01 10 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 20 00 00 00 F4 03 04 00 19 E1 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 39 0B 01 00 35 04 06 00 14 F6 6A 4C 66 FA DC 8E C9 73 F8 D7 24 D9 [11:42:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 F5 8D 47 00 E7 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 39 0B 01 00 F4 03 04 00 0E 87 18 67 B6 04 01 00 00 17 8A A9 03 A7 11 BB 9C [11:42:11]CommunicateWithHost err = 0 [11:42:11]CheckOFDResponse [11:42:11]1017 (14) - 77093643461234 [11:42:11]1041 (16) - 0000000000871809 [11:42:11]1040 (4) - 68409 [11:42:11]1012 (4) - 23.10.2024 05:18 [11:42:11]1206 (1) - 0 [11:42:11]OFD Sender: Remove packet 68409 [11:42:11]ProducePacketName [11:42:11]name=ofd_packets/00068409 [11:42:11]NVStorageDeleteData [11:42:11]Write to MH i2c: 01 00 00 82 2E B0 [11:42:11]Write i2c OK [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: 01 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: 01 07 00 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: 01 07 00 82 2E 00 04 00 00 00 A6 0C 6D [11:42:11]RasterBufferAndPrint [11:42:11]line [11:42:11]line [11:42:11]line [11:42:11]line [11:42:11]line [11:42:11]written 0, free lines is 3241 [11:42:11]MH_Cut [11:42:11]Write to MH i2c: D1 01 00 89 2E 01 89 [11:42:11]Write i2c OK [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: D1 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: D1 01 00 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: D1 01 00 89 2E 00 88 [11:42:11]Write to MH i2c: 01 00 00 8A 2E B8 [11:42:11]Write i2c OK [11:42:11]MH_I2C_Read... [11:42:12]OFD Sender: No OFD packet to send [11:42:12]*** Cut start [11:42:12]*** Partial cut [11:42:12]*** CUTSNS_PIN = 1 [11:42:12]*** CUTSNS_PIN = 0 [11:42:12]*** Brake cut motor [11:42:13]Read from MH i2c: 01 [11:42:13]MH_I2C_Read... [11:42:13]*** Stop cut motor [11:42:13]*** Cut end [11:42:13]Read from MH i2c: 01 07 00 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: 01 07 00 8A 2E 00 04 00 00 00 FF 0F D1 [11:42:13]process_action close_receipt done [11:42:13]requested_data is exist [11:42:13]produce_requested_data [11:42:13]requested_item fm.sn is exist - process it [11:42:13]wFMCommunicate request_size=4 [11:42:13]MH_SAM_APDU [11:42:13]CAPDU: 80 11 00 00 [11:42:13]Write to MH i2c: E2 08 00 8B 2E 80 11 00 00 00 00 00 00 33 [11:42:13]Write i2c OK [11:42:13]MH_I2C_Read... [11:42:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:13]Read from MH i2c: E2 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: E2 17 00 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: E2 17 00 8B 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 87 [11:42:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [11:42:13]wFMCommunicate OK [11:42:13]requested_item fd.num is exist - process it [11:42:13]SAM_PROTO_GetFieldsCounters [11:42:13]wFMCommunicate request_size=4 [11:42:13]MH_SAM_APDU [11:42:13]CAPDU: 80 13 00 00 [11:42:13]Write to MH i2c: E2 08 00 8C 2E 80 13 00 00 00 00 00 00 36 [11:42:13]Write i2c OK [11:42:13]MH_I2C_Read... [11:42:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:13]Read from MH i2c: E2 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: E2 62 00 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: E2 62 00 8C 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 39 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [11:42:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 39 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:42:13]wFMCommunicate OK [11:42:13]SAM_PROTO_GetFieldsCounters done [11:42:13]requested_item shift.num is exist - process it [11:42:13]requested_item shift.opened is exist - process it [11:42:13]req_shift_opened [11:42:13]FM_GetShiftState [11:42:13]SAM_PROTO_GetShiftState [11:42:13]wFMCommunicate request_size=4 [11:42:13]MH_SAM_APDU [11:42:13]CAPDU: 80 13 01 00 [11:42:13]Write to MH i2c: E2 08 00 8D 2E 80 13 01 00 00 00 00 00 38 [11:42:13]Write i2c OK [11:42:13]MH_I2C_Read... [11:42:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:13]Read from MH i2c: E2 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: E2 0E 00 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: E2 0E 00 8D 2E 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 A7 [11:42:13]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [11:42:13]wFMCommunicate OK [11:42:13]SAM_PROTO_GetShiftState done [11:42:13]FM_GetShiftState done [11:42:13]req_shift_opened done [11:42:13]requested_item shift.open_date is exist - process it [11:42:13]req_shift_open_date [11:42:13]req_shift_open_date done [11:42:13]produce_requested_data done [11:42:13]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68409,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [11:42:13]process_action_free close_receipt [11:42:13]json_value_free [11:42:13]json_value_free done [11:42:13]process_json_proto returns [11:42:13]Send response to host [11:42:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68409,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [11:42:13]free response buf [11:42:13]execute_script done [11:42:13]execute_script returns [11:42:13]free content buf [11:42:13]Sock 7.Close socket [11:42:13]Sock 7.Thread stoped [11:42:17]OFD Sender: No OFD packet to send [11:42:22]OFD Sender: No OFD packet to send [11:42:27]OFD Sender: No OFD packet to send [11:42:32]OFD Sender: No OFD packet to send [11:42:37]OFD Sender: No OFD packet to send [11:42:42]OFD Sender: No OFD packet to send [11:42:47]OFD Sender: No OFD packet to send [11:42:52]OFD Sender: No OFD packet to send [11:42:57]OFD Sender: No OFD packet to send [11:43:02]OFD Sender: No OFD packet to send [11:43:07]OFD Sender: No OFD packet to send [11:43:12]OFD Sender: No OFD packet to send [11:43:17]OFD Sender: No OFD packet to send [11:43:22]OFD Sender: No OFD packet to send [11:43:27]OFD Sender: No OFD packet to send [11:43:32]OFD Sender: No OFD packet to send [11:43:37]OFD Sender: No OFD packet to send [11:43:42]OFD Sender: No OFD packet to send [11:43:47]OFD Sender: No OFD packet to send [11:43:52]OFD Sender: No OFD packet to send [11:43:57]OFD Sender: No OFD packet to send [11:44:02]OFD Sender: No OFD packet to send [11:44:07]OFD Sender: No OFD packet to send [11:44:12]OFD Sender: No OFD packet to send [11:44:17]OFD Sender: No OFD packet to send [11:44:22]OFD Sender: No OFD packet to send [11:44:27]OFD Sender: No OFD packet to send [11:44:32]OFD Sender: No OFD packet to send [11:44:37]OFD Sender: No OFD packet to send [11:44:42]OFD Sender: No OFD packet to send [11:44:47]OFD Sender: No OFD packet to send [11:44:52]OFD Sender: No OFD packet to send [11:44:57]OFD Sender: No OFD packet to send [11:45:02]OFD Sender: No OFD packet to send [11:45:07]OFD Sender: No OFD packet to send [11:45:12]OFD Sender: No OFD packet to send [11:45:17]OFD Sender: No OFD packet to send [11:45:22]OFD Sender: No OFD packet to send [11:45:27]OFD Sender: No OFD packet to send [11:45:32]OFD Sender: No OFD packet to send [11:45:37]OFD Sender: No OFD packet to send [11:45:42]OFD Sender: No OFD packet to send [11:45:47]OFD Sender: No OFD packet to send [11:45:52]OFD Sender: No OFD packet to send [11:45:57]OFD Sender: No OFD packet to send [11:46:02]OFD Sender: No OFD packet to send [11:46:07]OFD Sender: No OFD packet to send [11:46:12]OFD Sender: No OFD packet to send [11:46:17]OFD Sender: No OFD packet to send [11:46:22]OFD Sender: No OFD packet to send [11:46:27]OFD Sender: No OFD packet to send [11:46:32]OFD Sender: No OFD packet to send [11:46:37]OFD Sender: No OFD packet to send [11:46:42]OFD Sender: No OFD packet to send [11:46:47]OFD Sender: No OFD packet to send [11:46:52]OFD Sender: No OFD packet to send [11:46:57]OFD Sender: No OFD packet to send [11:47:02]OFD Sender: No OFD packet to send [11:47:07]OFD Sender: No OFD packet to send [11:47:12]OFD Sender: No OFD packet to send [11:47:17]OFD Sender: No OFD packet to send [11:47:22]OFD Sender: No OFD packet to send [11:47:27]OFD Sender: No OFD packet to send [11:47:32]OFD Sender: No OFD packet to send [11:47:37]OFD Sender: No OFD packet to send [11:47:42]OFD Sender: No OFD packet to send [11:47:47]OFD Sender: No OFD packet to send [11:47:52]OFD Sender: No OFD packet to send [11:47:57]OFD Sender: No OFD packet to send [11:48:02]OFD Sender: No OFD packet to send [11:48:07]OFD Sender: No OFD packet to send [11:48:12]OFD Sender: No OFD packet to send [11:48:17]OFD Sender: No OFD packet to send [11:48:22]OFD Sender: No OFD packet to send [11:48:27]OFD Sender: No OFD packet to send [11:48:32]OFD Sender: No OFD packet to send [11:48:37]OFD Sender: No OFD packet to send [11:48:42]OFD Sender: No OFD packet to send [11:48:47]OFD Sender: No OFD packet to send [11:48:50]accept exits with 9 [11:48:50]New connection [11:48:50]New thread 3067133284 created [11:48:50]Thread 3067276644 joined [11:48:50]Waiting for new connection... [11:48:50] Sock 9.Parse request [11:48:50]Sock 9.Check first char [11:48:50]Sock 9.First char is OK [11:48:50]request: POST /json_proto HTTP/1.0 [11:48:50]Method: POST [11:48:50]URL: /json_proto [11:48:50]Method is POST - this is cgi request [11:48:50]url: /json_proto [11:48:50]query_string will be loaded in cgi processing [11:48:50]execute_cgi json_proto POST (null) [11:48:50]execute_cgi path=json_proto method=POST [11:48:50]POST find Content-Length [11:48:50]Host: 172.17.52.3:8080 [11:48:50]Content-Length: 766 [11:48:50]Content-Type: application/json [11:48:50] [11:48:50]POST finish read [11:48:50]Found Content-Length = 766 [11:48:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:50]execute_script... [11:48:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:50]POST & json_proto [11:48:50]process_json_proto [11:48:50]json parsed OK: [11:48:50]protocol is kg_v1.0 [11:48:50]action value=close_receipt [11:48:50]process_action close_receipt [11:48:50]cmd_close_receipt [11:48:50]MH_GetDate [11:48:50]Write to MH i2c: F0 00 00 8E 2E AB [11:48:50]Write i2c OK [11:48:50]MH_I2C_Read... [11:48:50]Read from MH i2c: F0 [11:48:50]MH_I2C_Read... [11:48:50]Read from MH i2c: F0 09 00 [11:48:50]MH_I2C_Read... [11:48:50]Read from MH i2c: F0 09 00 8E 2E 00 AB E2 18 67 D7 68 A5 64 08 [11:48:50]GetLastDocTimeStamp 1729683737 [11:48:50]current date 1729684139 [11:48:50]FM_GetShiftState [11:48:50]SAM_PROTO_GetShiftState [11:48:50]wFMCommunicate request_size=4 [11:48:50]MH_SAM_APDU [11:48:50]CAPDU: 80 13 01 00 [11:48:50]Write to MH i2c: E2 08 00 8F 2E 80 13 01 00 00 00 00 00 3A [11:48:50]Write i2c OK [11:48:50]MH_I2C_Read... [11:48:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:50]Read from MH i2c: E2 [11:48:50]MH_I2C_Read... [11:48:50]Read from MH i2c: E2 0E 00 [11:48:50]MH_I2C_Read... [11:48:50]Read from MH i2c: E2 0E 00 8F 2E 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 A9 [11:48:50]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [11:48:50]wFMCommunicate OK [11:48:50]SAM_PROTO_GetShiftState done [11:48:50]FM_GetShiftState done [11:48:50]opened in 1729641385 [11:48:50]opened+sec_in_day 1729727785 [11:48:50]quantity*price = 50041 [11:48:50]sum+1 = 50042 [11:48:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 33 23.10.2024 11:48 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871809 ФД: 68410 ФПД: 65559669874461 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114859&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68410&fm=65559669874461&tin=02508201610067®Number=0000000000091756&sum=50041 [11:48:51]StoreToDocumentArchive [11:48:51]shift 507 fd 68410 [11:48:51]save to /storage/0507/doc_00068410 [11:48:51]save last doc name /storage/0507/doc_00068410 to /storage/kkm_last_doc_name [11:48:51]save OK [11:48:51]Clear old archive folders... [11:48:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:48:51]tlvbuf is 02005660 [11:48:51]SAM_PROTO_ClearQueue [11:48:51]wFMCommunicate request_size=4 [11:48:51]MH_SAM_APDU [11:48:51]CAPDU: 80 09 00 00 [11:48:51]Write to MH i2c: E2 08 00 9C 2E 80 09 00 00 00 00 00 00 3C [11:48:51]Write i2c OK [11:48:51]MH_I2C_Read... [11:48:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:51]Read from MH i2c: E2 [11:48:51]MH_I2C_Read... [11:48:51]Read from MH i2c: E2 03 00 [11:48:51]MH_I2C_Read... [11:48:51]Read from MH i2c: E2 03 00 9C 2E 00 90 00 3E [11:48:51]RAPDU: 90 00 [11:48:51]wFMCommunicate OK [11:48:51]SAM_PROTO_ClearQueue done [11:48:51]KKMCreateOFDPacket [11:48:51]OFDProtocolAddRootSTLVToBuf [11:48:51]FM_MakeSignedData [11:48:51]FM_MakeSignedData [11:48:51]SAM_PROTO_SignData [11:48:51]wFMCommunicate request_size=4 [11:48:51]MH_SAM_APDU [11:48:51]CAPDU: 80 0D 01 02 [11:48:51]Write to MH i2c: E2 08 00 9D 2E 80 0D 01 02 00 00 00 00 44 [11:48:51]Write i2c OK [11:48:51]MH_I2C_Read... [11:48:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:51]Read from MH i2c: E2 [11:48:51]MH_I2C_Read... [11:48:51]Read from MH i2c: E2 03 00 [11:48:51]MH_I2C_Read... [11:48:51]Read from MH i2c: E2 03 00 9D 2E 00 90 00 3F [11:48:51]RAPDU: 90 00 [11:48:51]wFMCommunicate OK [11:48:51]wFMCommunicate request_size=255 [11:48:51]MH_SAM_APDU [11:48: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 AB E2 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 3A 0B 01 00 35 04 06 00 3B [11:48:51]Write to MH i2c: E2 02 01 9E 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 AB E2 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 3A 0B 01 00 35 04 06 00 3B 00 00 D0 [11:48:51]Write i2c OK [11:48:51]MH_I2C_Read... [11:48:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:52]Read from MH i2c: E2 [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: E2 03 00 [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: E2 03 00 9E 2E 00 90 00 40 [11:48:52]RAPDU: 90 00 [11:48:52]wFMCommunicate OK [11:48:52]wFMCommunicate request_size=10 [11:48:52]MH_SAM_APDU [11:48:52]CAPDU: 80 0D 02 02 05 A0 4C D5 9F 1D [11:48:52]Write to MH i2c: E2 0D 00 9F 2E 80 0D 02 02 05 00 A0 4C D5 9F 1D 00 00 CE [11:48:52]Write i2c OK [11:48:52]MH_I2C_Read... [11:48:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:52]Read from MH i2c: E2 [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: E2 03 00 [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: E2 03 00 9F 2E 00 90 00 41 [11:48:52]RAPDU: 90 00 [11:48:52]wFMCommunicate OK [11:48:52]wFMCommunicate request_size=4 [11:48:52]MH_SAM_APDU [11:48:52]CAPDU: 80 0D 03 02 [11:48:52]Write to MH i2c: E2 08 00 A0 2E 80 0D 03 02 00 00 00 00 49 [11:48:52]Write i2c OK [11:48:52]MH_I2C_Read... [11:48:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:52]Read from MH i2c: E2 [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: E2 0B 00 [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: E2 0B 00 A0 2E 00 E5 5B F0 7E 6D 6E 27 74 90 00 6E [11:48:52]RAPDU: E5 5B F0 7E 6D 6E 27 74 90 00 [11:48:52]wFMCommunicate OK [11:48:52]SAM_PROTO_SignData done [11:48:52]FM_MakeSignedData done [11:48:52]CreateOFDProtocolMessage [11:48:52]wFMCommunicate request_size=4 [11:48:52]MH_SAM_APDU [11:48:52]CAPDU: 80 11 00 00 [11:48:52]Write to MH i2c: E2 08 00 A1 2E 80 11 00 00 00 00 00 00 49 [11:48:52]Write i2c OK [11:48:52]MH_I2C_Read... [11:48:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:52]Read from MH i2c: E2 [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: E2 17 00 [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: E2 17 00 A1 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 9D [11:48:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [11:48:52]wFMCommunicate OK [11:48:52]CreateOFDProtocolMessage done [11:48:52]OFDSenderStorePacket 68410 [11:48:52]StoreOFDPacket docnum=68410 [11:48:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 B2 7E 07 01 8A 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 AB E2 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 3A 0B 01 00 35 04 06 00 3B A0 4C D5 9F 1D E5 5B F0 7E 6D 6E 27 74 [11:48:52]CheckFolder [11:48:52]dirname=/storage/ofd_packets [11:48:52]CheckFolder done [11:48:52]ProducePacketName [11:48:52]name=ofd_packets/00068410 [11:48:52]NVStorageSaveData ofd_packets/00068410 [11:48:52]File name is /storage/ofd_packets/00068410 [11:48:52]Write 301 bytes [11:48:52]NVStorageSaveData done [11:48:52]OFDSenderStorePacket done [11:48:52]KKMCreateOFDPacket done [11:48:52]NVStorageSaveData kkm_last_timestamp [11:48:52]File name is /storage/kkm_last_timestamp [11:48:52]Write 4 bytes [11:48:52]NVStorageSaveData done [11:48:52]ExternCall_PrintAddStr [11:48:52]wPrintStart [11:48:52]Write to MH i2c: 01 00 00 A2 2E D0 [11:48:52]Write i2c OK [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: 01 [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: 01 07 00 [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: 01 07 00 A2 2E 00 04 00 00 00 FF 0F E9 [11:48:52]RasterBufferAndPrint [11:48:52]line Счет N : (1)210407 [11:48:52]line ИНН: 02508201610067 [11:48:52]line Контрольно-Кассовый Чек [11:48:52]line ПРОДАЖА [11:48:52]line ТРК (МРК, ГНК) : 11 [11:48:52]line Товар: 2710124130 [11:48:52]line Аи-92-К-2 [11:48:52]line 7.480 * 66.90 [11:48:52]line = 500.41 [11:48:52]line НДС 12% НСП 1% [11:48:52]line > о реализуемом товаре [11:48:52]line ИТОГО: 500.41 [11:48:52]line НСП 1% : 4.43 [11:48:52]line НДС 12% : 53.14 [11:48:52]line Наличными: 0.00 [11:48:52]line Безнал.: 500.41 [11:48:52]line Место: АЗС № 147 "Партнер Нефть" [11:48:52]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [11:48:52]line СНО: Общий режим [11:48:52]line Чек 33 23.10.2024 11:48 [11:48:52]line Смена: 507 ФФД: 1.0 [11:48:52]line ЗНМ: 0300000094 [11:48:52]line РНМ: 0000000000091756 [11:48:52]line Версия ККМ: 001 [11:48:52]line Платежная система: Mbank [11:48:52]line ФМ: 0000000000871809 [11:48:52]line ФД: 68410 [11:48:52]line ФПД: 65559669874461 [11:48:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114859&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68410&fm=65559669874461&tin=02508201610067®Number=0000000000091756&sum=50041 [11:48:52]written 0, free lines is 4095 [11:48:52]OFD Sender: Processing packet 68410 [packets to send 8, broken 7] [11:48:52]ProducePacketName [11:48:52]name=ofd_packets/00068410 [11:48:52]OFD Sender: To server: pG, [11:48:52]CommunicateWithHost lk.salyk.kg:30040 [11:48:52]ConnectInit lk.salyk.kg [11:48:52]Connected sock=10 [11:48:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 B2 7E 07 01 8A 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 AB E2 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 3A 0B 01 00 35 04 06 00 3B A0 4C D5 9F 1D E5 5B F0 7E 6D 6E 27 74 [11:48:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 B2 0A 47 00 43 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 3A 0B 01 00 F4 03 04 00 A0 88 18 67 B6 04 01 00 00 26 5C 4D 32 8E B7 37 FC [11:48:52]CommunicateWithHost err = 0 [11:48:52]CheckOFDResponse [11:48:52]1017 (14) - 77093643461234 [11:48:52]1041 (16) - 0000000000871809 [11:48:52]1040 (4) - 68410 [11:48:52]1012 (4) - 23.10.2024 05:24 [11:48:52]1206 (1) - 0 [11:48:52]OFD Sender: Remove packet 68410 [11:48:52]ProducePacketName [11:48:52]name=ofd_packets/00068410 [11:48:52]NVStorageDeleteData [11:48:52]Write to MH i2c: 01 00 00 CA 2E F8 [11:48:52]Write i2c OK [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: 01 [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: 01 07 00 [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: 01 07 00 CA 2E 00 04 00 00 00 D3 0C E2 [11:48:52]RasterBufferAndPrint [11:48:52]line [11:48:52]line [11:48:52]line [11:48:52]line [11:48:52]line [11:48:52]written 0, free lines is 3287 [11:48:52]MH_Cut [11:48:52]Write to MH i2c: D1 01 00 D1 2E 01 D1 [11:48:52]Write i2c OK [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: D1 [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: D1 01 00 [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: D1 01 00 D1 2E 00 D0 [11:48:52]Write to MH i2c: 01 00 00 D2 2E 00 [11:48:52]Write i2c OK [11:48:52]MH_I2C_Read... [11:48:53]OFD Sender: No OFD packet to send [11:48:53]*** Cut start [11:48:53]*** Partial cut [11:48:53]*** CUTSNS_PIN = 1 [11:48:53]*** CUTSNS_PIN = 0 [11:48:53]*** Brake cut motor [11:48:54]Read from MH i2c: 01 [11:48:54]MH_I2C_Read... [11:48:54]*** Stop cut motor [11:48:54]*** Cut end [11:48:54]Read from MH i2c: 01 07 00 [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: 01 07 00 D2 2E 00 04 00 00 00 FF 0F 19 [11:48:54]process_action close_receipt done [11:48:54]requested_data is exist [11:48:54]produce_requested_data [11:48:54]requested_item fm.sn is exist - process it [11:48:54]wFMCommunicate request_size=4 [11:48:54]MH_SAM_APDU [11:48:54]CAPDU: 80 11 00 00 [11:48:54]Write to MH i2c: E2 08 00 D3 2E 80 11 00 00 00 00 00 00 7B [11:48:54]Write i2c OK [11:48:54]MH_I2C_Read... [11:48:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:54]Read from MH i2c: E2 [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: E2 17 00 [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: E2 17 00 D3 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 CF [11:48:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [11:48:54]wFMCommunicate OK [11:48:54]requested_item fd.num is exist - process it [11:48:54]SAM_PROTO_GetFieldsCounters [11:48:54]wFMCommunicate request_size=4 [11:48:54]MH_SAM_APDU [11:48:54]CAPDU: 80 13 00 00 [11:48:54]Write to MH i2c: E2 08 00 D4 2E 80 13 00 00 00 00 00 00 7E [11:48:54]Write i2c OK [11:48:54]MH_I2C_Read... [11:48:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:54]Read from MH i2c: E2 [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: E2 62 00 [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: E2 62 00 D4 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 3A 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [11:48:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 3A 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:48:54]wFMCommunicate OK [11:48:54]SAM_PROTO_GetFieldsCounters done [11:48:54]requested_item shift.num is exist - process it [11:48:54]requested_item shift.opened is exist - process it [11:48:54]req_shift_opened [11:48:54]FM_GetShiftState [11:48:54]SAM_PROTO_GetShiftState [11:48:54]wFMCommunicate request_size=4 [11:48:54]MH_SAM_APDU [11:48:54]CAPDU: 80 13 01 00 [11:48:54]Write to MH i2c: E2 08 00 D5 2E 80 13 01 00 00 00 00 00 80 [11:48:54]Write i2c OK [11:48:54]MH_I2C_Read... [11:48:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:54]Read from MH i2c: E2 [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: E2 0E 00 [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: E2 0E 00 D5 2E 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 EF [11:48:54]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [11:48:54]wFMCommunicate OK [11:48:54]SAM_PROTO_GetShiftState done [11:48:54]FM_GetShiftState done [11:48:54]req_shift_opened done [11:48:54]requested_item shift.open_date is exist - process it [11:48:54]req_shift_open_date [11:48:54]req_shift_open_date done [11:48:54]produce_requested_data done [11:48:54]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68410,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [11:48:54]process_action_free close_receipt [11:48:54]json_value_free [11:48:54]json_value_free done [11:48:54]process_json_proto returns [11:48:54]Send response to host [11:48:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68410,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [11:48:54]free response buf [11:48:54]execute_script done [11:48:54]execute_script returns [11:48:54]free content buf [11:48:54]Sock 9.Close socket [11:48:54]Sock 9.Thread stoped [11:48:58]OFD Sender: No OFD packet to send [11:49:03]OFD Sender: No OFD packet to send [11:49:08]OFD Sender: No OFD packet to send [11:49:13]OFD Sender: No OFD packet to send [11:49:18]OFD Sender: No OFD packet to send [11:49:23]OFD Sender: No OFD packet to send [11:49:28]OFD Sender: No OFD packet to send [11:49:33]OFD Sender: No OFD packet to send [11:49:38]OFD Sender: No OFD packet to send [11:49:43]OFD Sender: No OFD packet to send [11:49:48]OFD Sender: No OFD packet to send [11:49:53]OFD Sender: No OFD packet to send [11:49:58]OFD Sender: No OFD packet to send [11:50:03]OFD Sender: No OFD packet to send [11:50:08]OFD Sender: No OFD packet to send [11:50:13]OFD Sender: No OFD packet to send [11:50:18]OFD Sender: No OFD packet to send [11:50:23]OFD Sender: No OFD packet to send [11:50:28]OFD Sender: No OFD packet to send [11:50:33]OFD Sender: No OFD packet to send [11:50:38]OFD Sender: No OFD packet to send [11:50:43]OFD Sender: No OFD packet to send [11:50:48]OFD Sender: No OFD packet to send [11:50:53]OFD Sender: No OFD packet to send [11:50:58]OFD Sender: No OFD packet to send [11:51:03]OFD Sender: No OFD packet to send [11:51:08]OFD Sender: No OFD packet to send [11:51:13]OFD Sender: No OFD packet to send [11:51:18]OFD Sender: No OFD packet to send [11:51:23]OFD Sender: No OFD packet to send [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:11]accept exits with 7 [11:52:11]New connection [11:52:11]New thread 3067276644 created [11:52:11]Thread 3067133284 joined [11:52:11]Waiting for new connection... [11:52:11] Sock 7.Parse request [11:52:11]Sock 7.Check first char [11:52:11]Sock 7.First char is OK [11:52:11]request: POST /json_proto HTTP/1.0 [11:52:11]Method: POST [11:52:11]URL: /json_proto [11:52:11]Method is POST - this is cgi request [11:52:11]url: /json_proto [11:52:11]query_string will be loaded in cgi processing [11:52:11]execute_cgi json_proto POST (null) [11:52:11]execute_cgi path=json_proto method=POST [11:52:11]POST find Content-Length [11:52:11]Host: 172.17.52.3:8080 [11:52:11]Content-Length: 677 [11:52:11]Content-Type: application/json [11:52:11] [11:52:11]POST finish read [11:52:11]Found Content-Length = 677 [11:52:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:52:11]execute_script... [11:52:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:52:11]POST & json_proto [11:52:11]process_json_proto [11:52:11]json parsed OK: [11:52:11]protocol is kg_v1.0 [11:52:11]action value=close_receipt [11:52:11]process_action close_receipt [11:52:11]cmd_close_receipt [11:52:11]MH_GetDate [11:52:11]Write to MH i2c: F0 00 00 D6 2E F3 [11:52:11]Write i2c OK [11:52:11]MH_I2C_Read... [11:52:11]Read from MH i2c: F0 [11:52:11]MH_I2C_Read... [11:52:11]Read from MH i2c: F0 09 00 [11:52:11]MH_I2C_Read... [11:52:11]Read from MH i2c: F0 09 00 D6 2E 00 74 E3 18 67 D7 68 A5 64 1A [11:52:11]GetLastDocTimeStamp 1729684139 [11:52:11]current date 1729684340 [11:52:11]FM_GetShiftState [11:52:11]SAM_PROTO_GetShiftState [11:52:11]wFMCommunicate request_size=4 [11:52:11]MH_SAM_APDU [11:52:11]CAPDU: 80 13 01 00 [11:52:11]Write to MH i2c: E2 08 00 D7 2E 80 13 01 00 00 00 00 00 82 [11:52:11]Write i2c OK [11:52:11]MH_I2C_Read... [11:52:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:11]Read from MH i2c: E2 [11:52:11]MH_I2C_Read... [11:52:11]Read from MH i2c: E2 0E 00 [11:52:11]MH_I2C_Read... [11:52:11]Read from MH i2c: E2 0E 00 D7 2E 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 F1 [11:52:11]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [11:52:11]wFMCommunicate OK [11:52:11]SAM_PROTO_GetShiftState done [11:52:11]FM_GetShiftState done [11:52:11]opened in 1729641385 [11:52:11]opened+sec_in_day 1729727785 [11:52:11]quantity*price = 50041 [11:52:11]sum+1 = 50042 [11:52: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 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 34 23.10.2024 11:52 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68411 ФПД: 267646939755877 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115220&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68411&fm=267646939755877&tin=02508201610067®Number=0000000000091756&sum=50000 [11:52:12]StoreToDocumentArchive [11:52:12]shift 507 fd 68411 [11:52:12]save to /storage/0507/doc_00068411 [11:52:12]save last doc name /storage/0507/doc_00068411 to /storage/kkm_last_doc_name [11:52:12]save OK [11:52:12]Clear old archive folders... [11:52:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:52:12]tlvbuf is B6FA4310 [11:52:12]SAM_PROTO_ClearQueue [11:52:12]wFMCommunicate request_size=4 [11:52:12]MH_SAM_APDU [11:52:12]CAPDU: 80 09 00 00 [11:52:12]Write to MH i2c: E2 08 00 E4 2E 80 09 00 00 00 00 00 00 84 [11:52:12]Write i2c OK [11:52:12]MH_I2C_Read... [11:52:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:13]Read from MH i2c: E2 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 03 00 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 03 00 E4 2E 00 90 00 86 [11:52:13]RAPDU: 90 00 [11:52:13]wFMCommunicate OK [11:52:13]SAM_PROTO_ClearQueue done [11:52:13]KKMCreateOFDPacket [11:52:13]OFDProtocolAddRootSTLVToBuf [11:52:13]FM_MakeSignedData [11:52:13]FM_MakeSignedData [11:52:13]SAM_PROTO_SignData [11:52:13]wFMCommunicate request_size=4 [11:52:13]MH_SAM_APDU [11:52:13]CAPDU: 80 0D 01 02 [11:52:13]Write to MH i2c: E2 08 00 E5 2E 80 0D 01 02 00 00 00 00 8C [11:52:13]Write i2c OK [11:52:13]MH_I2C_Read... [11:52:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:13]Read from MH i2c: E2 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 03 00 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 03 00 E5 2E 00 90 00 87 [11:52:13]RAPDU: 90 00 [11:52:13]wFMCommunicate OK [11:52:13]wFMCommunicate request_size=255 [11:52:13]MH_SAM_APDU [11:52: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 32 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 22 00 00 00 F4 03 04 00 74 E3 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 3B 0B 01 00 35 04 06 00 F3 [11:52:13]Write to MH i2c: E2 02 01 E6 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 22 00 00 00 F4 03 04 00 74 E3 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 3B 0B 01 00 35 04 06 00 F3 00 00 4A [11:52:13]Write i2c OK [11:52:13]MH_I2C_Read... [11:52:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:13]Read from MH i2c: E2 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 03 00 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 03 00 E6 2E 00 90 00 88 [11:52:13]RAPDU: 90 00 [11:52:13]wFMCommunicate OK [11:52:13]wFMCommunicate request_size=10 [11:52:13]MH_SAM_APDU [11:52:13]CAPDU: 80 0D 02 02 05 6C 68 C4 F5 65 [11:52:13]Write to MH i2c: E2 0D 00 E7 2E 80 0D 02 02 05 00 6C 68 C4 F5 65 00 00 8B [11:52:13]Write i2c OK [11:52:13]MH_I2C_Read... [11:52:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:13]Read from MH i2c: E2 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 03 00 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 03 00 E7 2E 00 90 00 89 [11:52:13]RAPDU: 90 00 [11:52:13]wFMCommunicate OK [11:52:13]wFMCommunicate request_size=4 [11:52:13]MH_SAM_APDU [11:52:13]CAPDU: 80 0D 03 02 [11:52:13]Write to MH i2c: E2 08 00 E8 2E 80 0D 03 02 00 00 00 00 91 [11:52:13]Write i2c OK [11:52:13]MH_I2C_Read... [11:52:13]OFD Sender: No OFD packet to send [11:52:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:13]Read from MH i2c: E2 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 0B 00 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 0B 00 E8 2E 00 61 0A 86 DC 4F 61 41 EB 90 00 3B [11:52:13]RAPDU: 61 0A 86 DC 4F 61 41 EB 90 00 [11:52:13]wFMCommunicate OK [11:52:13]SAM_PROTO_SignData done [11:52:13]FM_MakeSignedData done [11:52:13]CreateOFDProtocolMessage [11:52:13]wFMCommunicate request_size=4 [11:52:13]MH_SAM_APDU [11:52:13]CAPDU: 80 11 00 00 [11:52:13]Write to MH i2c: E2 08 00 E9 2E 80 11 00 00 00 00 00 00 91 [11:52:13]Write i2c OK [11:52:13]MH_I2C_Read... [11:52:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:13]Read from MH i2c: E2 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 17 00 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 17 00 E9 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 E5 [11:52:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [11:52:13]wFMCommunicate OK [11:52:13]CreateOFDProtocolMessage done [11:52:13]OFDSenderStorePacket 68411 [11:52:13]StoreOFDPacket docnum=68411 [11:52:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 83 67 07 01 DE 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 32 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 22 00 00 00 F4 03 04 00 74 E3 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 3B 0B 01 00 35 04 06 00 F3 6C 68 C4 F5 65 61 0A 86 DC 4F 61 41 EB [11:52:13]CheckFolder [11:52:13]dirname=/storage/ofd_packets [11:52:13]CheckFolder done [11:52:13]ProducePacketName [11:52:13]name=ofd_packets/00068411 [11:52:13]NVStorageSaveData ofd_packets/00068411 [11:52:13]File name is /storage/ofd_packets/00068411 [11:52:13]Write 301 bytes [11:52:13]NVStorageSaveData done [11:52:13]OFDSenderStorePacket done [11:52:13]KKMCreateOFDPacket done [11:52:13]NVStorageSaveData kkm_last_timestamp [11:52:13]File name is /storage/kkm_last_timestamp [11:52:13]Write 4 bytes [11:52:13]NVStorageSaveData done [11:52:13]ExternCall_PrintAddStr [11:52:13]wPrintStart [11:52:13]Write to MH i2c: 01 00 00 EA 2E 18 [11:52:13]Write i2c OK [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: 01 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: 01 07 00 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: 01 07 00 EA 2E 00 04 00 00 00 FF 0F 31 [11:52:13]RasterBufferAndPrint [11:52:13]line Счет N : (1)210408 [11:52:13]line ИНН: 02508201610067 [11:52:13]line Контрольно-Кассовый Чек [11:52:13]line ПРОДАЖА [11:52:13]line ТРК (МРК, ГНК) : 11 [11:52:13]line Товар: 2710124130 [11:52:13]line Аи-92-К-2 [11:52:13]line 7.480 * 66.90 [11:52:13]line = 500.41 [11:52:13]line НДС 12% НСП 1% [11:52:13]line > о реализуемом товаре [11:52:13]line ОКРУГЛЕНИЕ: -0.41 [11:52:13]line ИТОГО: 500.00 [11:52:13]line Внесено: 500.00 [11:52:13]line СДАЧА: 0.00 [11:52:13]line НСП 1% : 4.43 [11:52:13]line НДС 12% : 53.14 [11:52:13]line Наличными: 500.00 [11:52:13]line Безнал.: 0.00 [11:52:13]line Место: АЗС № 147 "Партнер Нефть" [11:52:13]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [11:52:13]line СНО: Общий режим [11:52:13]line Чек 34 23.10.2024 11:52 [11:52:13]line Смена: 507 ФФД: 1.0 [11:52:13]line ЗНМ: 0300000094 [11:52:13]line РНМ: 0000000000091756 [11:52:13]line Версия ККМ: 001 [11:52:13]line ФМ: 0000000000871809 [11:52:13]line ФД: 68411 [11:52:13]line ФПД: 267646939755877 [11:52:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115220&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68411&fm=267646939755877&tin=02508201610067®Number=0000000000091756&sum=50000 [11:52:13]written 0, free lines is 4095 [11:52:13]OFD Sender: Processing packet 68411 [packets to send 8, broken 7] [11:52:13]ProducePacketName [11:52:13]name=ofd_packets/00068411 [11:52:13]OFD Sender: To server: pG, [11:52:13]CommunicateWithHost lk.salyk.kg:30040 [11:52:13]ConnectInit lk.salyk.kg [11:52:13]Connected sock=10 [11:52:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 83 67 07 01 DE 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 32 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 22 00 00 00 F4 03 04 00 74 E3 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 3B 0B 01 00 35 04 06 00 F3 6C 68 C4 F5 65 61 0A 86 DC 4F 61 41 EB [11:52:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 F7 62 47 00 37 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 3B 0B 01 00 F4 03 04 00 69 89 18 67 B6 04 01 00 00 C9 57 6B 00 83 EE 8E 36 [11:52:14]CommunicateWithHost err = 0 [11:52:14]CheckOFDResponse [11:52:14]1017 (14) - 77093643461234 [11:52:14]1041 (16) - 0000000000871809 [11:52:14]1040 (4) - 68411 [11:52:14]1012 (4) - 23.10.2024 05:28 [11:52:14]1206 (1) - 0 [11:52:14]OFD Sender: Remove packet 68411 [11:52:14]ProducePacketName [11:52:14]name=ofd_packets/00068411 [11:52:14]NVStorageDeleteData [11:52:14]Write to MH i2c: 01 00 00 14 2F 43 [11:52:14]Write i2c OK [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: 01 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: 01 07 00 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: 01 07 00 14 2F 00 04 00 00 00 A2 0C FC [11:52:14]RasterBufferAndPrint [11:52:14]line [11:52:14]line [11:52:14]line [11:52:14]line [11:52:14]line [11:52:14]written 0, free lines is 3239 [11:52:14]MH_Cut [11:52:14]Write to MH i2c: D1 01 00 1B 2F 01 1C [11:52:14]Write i2c OK [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: D1 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: D1 01 00 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: D1 01 00 1B 2F 00 1B [11:52:14]Write to MH i2c: 01 00 00 1C 2F 4B [11:52:14]Write i2c OK [11:52:14]MH_I2C_Read... [11:52:14]OFD Sender: No OFD packet to send [11:52:15]*** Cut start [11:52:15]*** Partial cut [11:52:15]*** CUTSNS_PIN = 1 [11:52:15]*** CUTSNS_PIN = 0 [11:52:15]*** Brake cut motor [11:52:15]Read from MH i2c: 01 [11:52:15]MH_I2C_Read... [11:52:15]*** Stop cut motor [11:52:15]*** Cut end [11:52:15]Read from MH i2c: 01 07 00 [11:52:15]MH_I2C_Read... [11:52:15]Read from MH i2c: 01 07 00 1C 2F 00 04 00 00 00 FF 0F 64 [11:52:15]process_action close_receipt done [11:52:15]requested_data is exist [11:52:15]produce_requested_data [11:52:15]requested_item fm.sn is exist - process it [11:52:15]wFMCommunicate request_size=4 [11:52:15]MH_SAM_APDU [11:52:15]CAPDU: 80 11 00 00 [11:52:15]Write to MH i2c: E2 08 00 1D 2F 80 11 00 00 00 00 00 00 C6 [11:52:15]Write i2c OK [11:52:15]MH_I2C_Read... [11:52:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:15]Read from MH i2c: E2 [11:52:15]MH_I2C_Read... [11:52:15]Read from MH i2c: E2 17 00 [11:52:15]MH_I2C_Read... [11:52:15]Read from MH i2c: E2 17 00 1D 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 1A [11:52:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [11:52:15]wFMCommunicate OK [11:52:15]requested_item fd.num is exist - process it [11:52:15]SAM_PROTO_GetFieldsCounters [11:52:15]wFMCommunicate request_size=4 [11:52:15]MH_SAM_APDU [11:52:15]CAPDU: 80 13 00 00 [11:52:15]Write to MH i2c: E2 08 00 1E 2F 80 13 00 00 00 00 00 00 C9 [11:52:15]Write i2c OK [11:52:15]MH_I2C_Read... [11:52:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:15]Read from MH i2c: E2 [11:52:15]MH_I2C_Read... [11:52:15]Read from MH i2c: E2 62 00 [11:52:15]MH_I2C_Read... [11:52:15]Read from MH i2c: E2 62 00 1E 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 3B 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [11:52:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 3B 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:52:15]wFMCommunicate OK [11:52:15]SAM_PROTO_GetFieldsCounters done [11:52:15]requested_item shift.num is exist - process it [11:52:15]requested_item shift.opened is exist - process it [11:52:15]req_shift_opened [11:52:15]FM_GetShiftState [11:52:15]SAM_PROTO_GetShiftState [11:52:15]wFMCommunicate request_size=4 [11:52:15]MH_SAM_APDU [11:52:15]CAPDU: 80 13 01 00 [11:52:15]Write to MH i2c: E2 08 00 1F 2F 80 13 01 00 00 00 00 00 CB [11:52:15]Write i2c OK [11:52:15]MH_I2C_Read... [11:52:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:16]Read from MH i2c: E2 [11:52:16]MH_I2C_Read... [11:52:16]Read from MH i2c: E2 0E 00 [11:52:16]MH_I2C_Read... [11:52:16]Read from MH i2c: E2 0E 00 1F 2F 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 3A [11:52:16]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [11:52:16]wFMCommunicate OK [11:52:16]SAM_PROTO_GetShiftState done [11:52:16]FM_GetShiftState done [11:52:16]req_shift_opened done [11:52:16]requested_item shift.open_date is exist - process it [11:52:16]req_shift_open_date [11:52:16]req_shift_open_date done [11:52:16]produce_requested_data done [11:52:16]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68411,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [11:52:16]process_action_free close_receipt [11:52:16]json_value_free [11:52:16]json_value_free done [11:52:16]process_json_proto returns [11:52:16]Send response to host [11:52:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68411,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [11:52:16]free response buf [11:52:16]execute_script done [11:52:16]execute_script returns [11:52:16]free content buf [11:52:16]Sock 7.Close socket [11:52:16]Sock 7.Thread stoped [11:52:19]OFD Sender: No OFD packet to send [11:52:24]OFD Sender: No OFD packet to send [11:52:29]OFD Sender: No OFD packet to send [11:52:34]OFD Sender: No OFD packet to send [11:52:39]OFD Sender: No OFD packet to send [11:52:44]OFD Sender: No OFD packet to send [11:52:49]OFD Sender: No OFD packet to send [11:52:54]OFD Sender: No OFD packet to send [11:52:59]OFD Sender: No OFD packet to send [11:53:04]OFD Sender: No OFD packet to send [11:53:09]OFD Sender: No OFD packet to send [11:53:14]OFD Sender: No OFD packet to send [11:53:19]OFD Sender: No OFD packet to send [11:53:24]OFD Sender: No OFD packet to send [11:53:29]OFD Sender: No OFD packet to send [11:53:34]OFD Sender: No OFD packet to send [11:53:39]OFD Sender: No OFD packet to send [11:53:44]OFD Sender: No OFD packet to send [11:53:49]OFD Sender: No OFD packet to send [11:53:54]OFD Sender: No OFD packet to send [11:53:59]OFD Sender: No OFD packet to send [11:54:04]OFD Sender: No OFD packet to send [11:54:09]OFD Sender: No OFD packet to send [11:54:14]OFD Sender: No OFD packet to send [11:54:19]OFD Sender: No OFD packet to send [11:54:24]OFD Sender: No OFD packet to send [11:54:29]OFD Sender: No OFD packet to send [11:54:34]OFD Sender: No OFD packet to send [11:54:39]OFD Sender: No OFD packet to send [11:54:44]OFD Sender: No OFD packet to send [11:54:49]OFD Sender: No OFD packet to send [11:54:54]OFD Sender: No OFD packet to send [11:54:59]OFD Sender: No OFD packet to send [11:55:04]OFD Sender: No OFD packet to send [11:55:09]OFD Sender: No OFD packet to send [11:55:14]OFD Sender: No OFD packet to send [11:55:19]OFD Sender: No OFD packet to send [11:55:24]accept exits with 9 [11:55:24]New connection [11:55:24]New thread 3067133284 created [11:55:24]Thread 3067276644 joined [11:55:24]Waiting for new connection... [11:55:24] Sock 9.Parse request [11:55:24]Sock 9.Check first char [11:55:24]Sock 9.First char is OK [11:55:24]request: POST /json_proto HTTP/1.0 [11:55:24]Method: POST [11:55:24]URL: /json_proto [11:55:24]Method is POST - this is cgi request [11:55:24]url: /json_proto [11:55:24]query_string will be loaded in cgi processing [11:55:24]execute_cgi json_proto POST (null) [11:55:24]execute_cgi path=json_proto method=POST [11:55:24]POST find Content-Length [11:55:24]Host: 172.17.52.3:8080 [11:55:24]Content-Length: 678 [11:55:24]Content-Type: application/json [11:55:24] [11:55:24]POST finish read [11:55:24]Found Content-Length = 678 [11:55:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:55:24]execute_script... [11:55: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)210409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:55:24]POST & json_proto [11:55:24]process_json_proto [11:55:24]json parsed OK: [11:55:24]protocol is kg_v1.0 [11:55:24]action value=close_receipt [11:55:24]process_action close_receipt [11:55:24]cmd_close_receipt [11:55:24]MH_GetDate [11:55:24]Write to MH i2c: F0 00 00 20 2F 3E [11:55:24]Write i2c OK [11:55:24]MH_I2C_Read... [11:55:24]Read from MH i2c: F0 [11:55:24]MH_I2C_Read... [11:55:24]Read from MH i2c: F0 09 00 [11:55:24]MH_I2C_Read... [11:55:24]Read from MH i2c: F0 09 00 20 2F 00 35 E4 18 67 D7 68 A5 64 27 [11:55:24]GetLastDocTimeStamp 1729684340 [11:55:24]current date 1729684533 [11:55:24]FM_GetShiftState [11:55:24]SAM_PROTO_GetShiftState [11:55:24]wFMCommunicate request_size=4 [11:55:24]MH_SAM_APDU [11:55:24]CAPDU: 80 13 01 00 [11:55:24]Write to MH i2c: E2 08 00 21 2F 80 13 01 00 00 00 00 00 CD [11:55:24]Write i2c OK [11:55:24]MH_I2C_Read... [11:55:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:24]Read from MH i2c: E2 [11:55:24]MH_I2C_Read... [11:55:24]Read from MH i2c: E2 0E 00 [11:55:24]MH_I2C_Read... [11:55:24]Read from MH i2c: E2 0E 00 21 2F 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 3C [11:55:24]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [11:55:24]wFMCommunicate OK [11:55:24]SAM_PROTO_GetShiftState done [11:55:24]FM_GetShiftState done [11:55:24]opened in 1729641385 [11:55:24]opened+sec_in_day 1729727785 [11:55:24]quantity*price = 80012 [11:55:24]sum+1 = 80013 [11:55:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 35 23.10.2024 11:55 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68412 ФПД: 135209478456354 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115533&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68412&fm=135209478456354&tin=02508201610067®Number=0000000000091756&sum=80000 [11:55:25]StoreToDocumentArchive [11:55:25]shift 507 fd 68412 [11:55:25]save to /storage/0507/doc_00068412 [11:55:25]save last doc name /storage/0507/doc_00068412 to /storage/kkm_last_doc_name [11:55:25]save OK [11:55:25]Clear old archive folders... [11:55:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:55:25]tlvbuf is 0208D5F0 [11:55:25]SAM_PROTO_ClearQueue [11:55:25]wFMCommunicate request_size=4 [11:55:25]MH_SAM_APDU [11:55:25]CAPDU: 80 09 00 00 [11:55:25]Write to MH i2c: E2 08 00 2E 2F 80 09 00 00 00 00 00 00 CF [11:55:25]Write i2c OK [11:55:25]MH_I2C_Read... [11:55:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:25]Read from MH i2c: E2 [11:55:25]MH_I2C_Read... [11:55:25]Read from MH i2c: E2 03 00 [11:55:25]MH_I2C_Read... [11:55:25]Read from MH i2c: E2 03 00 2E 2F 00 90 00 D1 [11:55:25]RAPDU: 90 00 [11:55:25]wFMCommunicate OK [11:55:25]SAM_PROTO_ClearQueue done [11:55:25]KKMCreateOFDPacket [11:55:25]OFDProtocolAddRootSTLVToBuf [11:55:25]FM_MakeSignedData [11:55:25]FM_MakeSignedData [11:55:25]SAM_PROTO_SignData [11:55:25]wFMCommunicate request_size=4 [11:55:25]MH_SAM_APDU [11:55:25]CAPDU: 80 0D 01 02 [11:55:25]Write to MH i2c: E2 08 00 2F 2F 80 0D 01 02 00 00 00 00 D7 [11:55:25]Write i2c OK [11:55:25]MH_I2C_Read... [11:55:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:26]Read from MH i2c: E2 [11:55:26]MH_I2C_Read... [11:55:26]Read from MH i2c: E2 03 00 [11:55:26]MH_I2C_Read... [11:55:26]Read from MH i2c: E2 03 00 2F 2F 00 90 00 D2 [11:55:26]RAPDU: 90 00 [11:55:26]wFMCommunicate OK [11:55:26]wFMCommunicate request_size=255 [11:55:26]MH_SAM_APDU [11:55:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 23 00 00 00 F4 03 04 00 35 E4 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 3C 0B 01 00 35 04 06 00 7A [11:55:26]Write to MH i2c: E2 02 01 30 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 23 00 00 00 F4 03 04 00 35 E4 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 3C 0B 01 00 35 04 06 00 7A 00 00 CC [11:55:26]Write i2c OK [11:55:26]MH_I2C_Read... [11:55:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:26]Read from MH i2c: E2 [11:55:26]MH_I2C_Read... [11:55:26]Read from MH i2c: E2 03 00 [11:55:26]MH_I2C_Read... [11:55:26]Read from MH i2c: E2 03 00 30 2F 00 90 00 D3 [11:55:26]RAPDU: 90 00 [11:55:26]wFMCommunicate OK [11:55:26]wFMCommunicate request_size=10 [11:55:26]MH_SAM_APDU [11:55:26]CAPDU: 80 0D 02 02 05 F8 E8 EF 04 22 [11:55:26]Write to MH i2c: E2 0D 00 31 2F 80 0D 02 02 05 00 F8 E8 EF 04 22 00 00 D9 [11:55:26]Write i2c OK [11:55:26]MH_I2C_Read... [11:55:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:26]Read from MH i2c: E2 [11:55:26]MH_I2C_Read... [11:55:26]Read from MH i2c: E2 03 00 [11:55:26]MH_I2C_Read... [11:55:26]Read from MH i2c: E2 03 00 31 2F 00 90 00 D4 [11:55:26]RAPDU: 90 00 [11:55:26]wFMCommunicate OK [11:55:26]wFMCommunicate request_size=4 [11:55:26]MH_SAM_APDU [11:55:26]CAPDU: 80 0D 03 02 [11:55:26]Write to MH i2c: E2 08 00 32 2F 80 0D 03 02 00 00 00 00 DC [11:55:26]Write i2c OK [11:55:26]MH_I2C_Read... [11:55:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:26]Read from MH i2c: E2 [11:55:26]MH_I2C_Read... [11:55:26]Read from MH i2c: E2 0B 00 [11:55:26]MH_I2C_Read... [11:55:26]Read from MH i2c: E2 0B 00 32 2F 00 DB BE 53 C3 96 7C D1 DB 90 00 4A [11:55:26]RAPDU: DB BE 53 C3 96 7C D1 DB 90 00 [11:55:26]wFMCommunicate OK [11:55:26]SAM_PROTO_SignData done [11:55:26]FM_MakeSignedData done [11:55:26]CreateOFDProtocolMessage [11:55:26]wFMCommunicate request_size=4 [11:55:26]MH_SAM_APDU [11:55:26]CAPDU: 80 11 00 00 [11:55:26]Write to MH i2c: E2 08 00 33 2F 80 11 00 00 00 00 00 00 DC [11:55:26]Write i2c OK [11:55:26]MH_I2C_Read... [11:55:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:26]Read from MH i2c: E2 [11:55:26]MH_I2C_Read... [11:55:26]Read from MH i2c: E2 17 00 [11:55:26]MH_I2C_Read... [11:55:26]Read from MH i2c: E2 17 00 33 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 30 [11:55:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [11:55:26]wFMCommunicate OK [11:55:26]CreateOFDProtocolMessage done [11:55:26]OFDSenderStorePacket 68412 [11:55:26]StoreOFDPacket docnum=68412 [11:55:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 A7 2A 07 01 A3 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 23 00 00 00 F4 03 04 00 35 E4 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 3C 0B 01 00 35 04 06 00 7A F8 E8 EF 04 22 DB BE 53 C3 96 7C D1 DB [11:55:26]CheckFolder [11:55:26]dirname=/storage/ofd_packets [11:55:26]CheckFolder done [11:55:26]ProducePacketName [11:55:26]name=ofd_packets/00068412 [11:55:26]NVStorageSaveData ofd_packets/00068412 [11:55:26]File name is /storage/ofd_packets/00068412 [11:55:26]Write 301 bytes [11:55:26]NVStorageSaveData done [11:55:26]OFDSenderStorePacket done [11:55:26]KKMCreateOFDPacket done [11:55:26]NVStorageSaveData kkm_last_timestamp [11:55:26]File name is /storage/kkm_last_timestamp [11:55:26]Write 4 bytes [11:55:26]NVStorageSaveData done [11:55:26]ExternCall_PrintAddStr [11:55:26]wPrintStart [11:55:26]Write to MH i2c: 01 00 00 34 2F 63 [11:55:26]Write i2c OK [11:55:26]MH_I2C_Read... [11:55:26]Read from MH i2c: 01 [11:55:26]MH_I2C_Read... [11:55:26]Read from MH i2c: 01 07 00 [11:55:26]MH_I2C_Read... [11:55:26]Read from MH i2c: 01 07 00 34 2F 00 04 00 00 00 FF 0F 7C [11:55:26]RasterBufferAndPrint [11:55:26]line Счет N : (1)210409 [11:55:26]line ИНН: 02508201610067 [11:55:26]line Контрольно-Кассовый Чек [11:55:26]line ПРОДАЖА [11:55:26]line ТРК (МРК, ГНК) : 11 [11:55:26]line Товар: 2710124130 [11:55:26]line Аи-92-К-2 [11:55:26]line 11.960 * 66.90 [11:55:26]line = 800.12 [11:55:26]line НДС 12% НСП 1% [11:55:26]line > о реализуемом товаре [11:55:26]line ОКРУГЛЕНИЕ: -0.12 [11:55:26]line ИТОГО: 800.00 [11:55:26]line Внесено: 800.00 [11:55:26]line СДАЧА: 0.00 [11:55:26]line НСП 1% : 7.08 [11:55:26]line НДС 12% : 84.97 [11:55:26]line Наличными: 800.00 [11:55:26]line Безнал.: 0.00 [11:55:26]line Место: АЗС № 147 "Партнер Нефть" [11:55:26]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [11:55:26]line СНО: Общий режим [11:55:26]line Чек 35 23.10.2024 11:55 [11:55:26]line Смена: 507 ФФД: 1.0 [11:55:26]line ЗНМ: 0300000094 [11:55:26]line РНМ: 0000000000091756 [11:55:26]line Версия ККМ: 001 [11:55:26]line ФМ: 0000000000871809 [11:55:26]line ФД: 68412 [11:55:26]line ФПД: 135209478456354 [11:55:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115533&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68412&fm=135209478456354&tin=02508201610067®Number=0000000000091756&sum=80000 [11:55:26]written 0, free lines is 4095 [11:55:26]OFD Sender: Processing packet 68412 [packets to send 8, broken 7] [11:55:26]ProducePacketName [11:55:26]name=ofd_packets/00068412 [11:55:26]OFD Sender: To server: pG, [11:55:26]CommunicateWithHost lk.salyk.kg:30040 [11:55:26]ConnectInit lk.salyk.kg [11:55:26]Write to MH i2c: 01 00 00 5E 2F 8D [11:55:26]Write i2c OK [11:55:26]MH_I2C_Read... [11:55:26]Read from MH i2c: 01 [11:55:26]MH_I2C_Read... [11:55:26]Connected sock=10 [11:55:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 A7 2A 07 01 A3 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 23 00 00 00 F4 03 04 00 35 E4 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 3C 0B 01 00 35 04 06 00 7A F8 E8 EF 04 22 DB BE 53 C3 96 7C D1 DB [11:55:26]Read from MH i2c: 01 07 00 [11:55:26]MH_I2C_Read... [11:55:26]Read from MH i2c: 01 07 00 5E 2F 00 04 00 00 00 9B 0C 3F [11:55:26]RasterBufferAndPrint [11:55:26]line [11:55:26]line [11:55:26]line [11:55:26]line [11:55:26]line [11:55:26]written 0, free lines is 3272 [11:55:26]MH_Cut [11:55:26]Write to MH i2c: D1 01 00 65 2F 01 66 [11:55:26]Write i2c OK [11:55:26]MH_I2C_Read... [11:55:26]Read from MH i2c: D1 [11:55:26]MH_I2C_Read... [11:55:26]Read from MH i2c: D1 01 00 [11:55:26]MH_I2C_Read... [11:55:26]Read from MH i2c: D1 01 00 65 2F 00 65 [11:55:26]Write to MH i2c: 01 00 00 66 2F 95 [11:55:26]Write i2c OK [11:55:26]MH_I2C_Read... [11:55:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 FB 3B 47 00 53 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 3C 0B 01 00 F4 03 04 00 2A 8A 18 67 B6 04 01 00 00 5F 4E 0E 41 79 61 3F 0B [11:55:27]CommunicateWithHost err = 0 [11:55:27]CheckOFDResponse [11:55:27]1017 (14) - 77093643461234 [11:55:27]1041 (16) - 0000000000871809 [11:55:27]1040 (4) - 68412 [11:55:27]1012 (4) - 23.10.2024 05:31 [11:55:27]1206 (1) - 0 [11:55:27]OFD Sender: Remove packet 68412 [11:55:27]ProducePacketName [11:55:27]name=ofd_packets/00068412 [11:55:27]NVStorageDeleteData [11:55:27]OFD Sender: No OFD packet to send [11:55:27]*** Cut start [11:55:27]*** Partial cut [11:55:27]*** CUTSNS_PIN = 1 [11:55:27]*** CUTSNS_PIN = 0 [11:55:28]*** Brake cut motor [11:55:28]Read from MH i2c: 01 [11:55:28]MH_I2C_Read... [11:55:28]*** Stop cut motor [11:55:28]*** Cut end [11:55:28]Read from MH i2c: 01 07 00 [11:55:28]MH_I2C_Read... [11:55:28]Read from MH i2c: 01 07 00 66 2F 00 04 00 00 00 FF 0F AE [11:55:28]process_action close_receipt done [11:55:28]requested_data is exist [11:55:28]produce_requested_data [11:55:28]requested_item fm.sn is exist - process it [11:55:28]wFMCommunicate request_size=4 [11:55:28]MH_SAM_APDU [11:55:28]CAPDU: 80 11 00 00 [11:55:28]Write to MH i2c: E2 08 00 67 2F 80 11 00 00 00 00 00 00 10 [11:55:28]Write i2c OK [11:55:28]MH_I2C_Read... [11:55:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:28]Read from MH i2c: E2 [11:55:28]MH_I2C_Read... [11:55:28]Read from MH i2c: E2 17 00 [11:55:28]MH_I2C_Read... [11:55:28]Read from MH i2c: E2 17 00 67 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 64 [11:55:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [11:55:28]wFMCommunicate OK [11:55:28]requested_item fd.num is exist - process it [11:55:28]SAM_PROTO_GetFieldsCounters [11:55:28]wFMCommunicate request_size=4 [11:55:28]MH_SAM_APDU [11:55:28]CAPDU: 80 13 00 00 [11:55:28]Write to MH i2c: E2 08 00 68 2F 80 13 00 00 00 00 00 00 13 [11:55:28]Write i2c OK [11:55:28]MH_I2C_Read... [11:55:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:28]Read from MH i2c: E2 [11:55:28]MH_I2C_Read... [11:55:28]Read from MH i2c: E2 62 00 [11:55:28]MH_I2C_Read... [11:55:28]Read from MH i2c: E2 62 00 68 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 3C 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [11:55:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 3C 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:55:28]wFMCommunicate OK [11:55:28]SAM_PROTO_GetFieldsCounters done [11:55:28]requested_item shift.num is exist - process it [11:55:28]requested_item shift.opened is exist - process it [11:55:28]req_shift_opened [11:55:28]FM_GetShiftState [11:55:28]SAM_PROTO_GetShiftState [11:55:28]wFMCommunicate request_size=4 [11:55:28]MH_SAM_APDU [11:55:28]CAPDU: 80 13 01 00 [11:55:28]Write to MH i2c: E2 08 00 69 2F 80 13 01 00 00 00 00 00 15 [11:55:28]Write i2c OK [11:55:28]MH_I2C_Read... [11:55:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:28]Read from MH i2c: E2 [11:55:28]MH_I2C_Read... [11:55:28]Read from MH i2c: E2 0E 00 [11:55:28]MH_I2C_Read... [11:55:28]Read from MH i2c: E2 0E 00 69 2F 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 84 [11:55:28]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [11:55:28]wFMCommunicate OK [11:55:28]SAM_PROTO_GetShiftState done [11:55:28]FM_GetShiftState done [11:55:28]req_shift_opened done [11:55:28]requested_item shift.open_date is exist - process it [11:55:28]req_shift_open_date [11:55:28]req_shift_open_date done [11:55:28]produce_requested_data done [11:55:28]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68412,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [11:55:28]process_action_free close_receipt [11:55:28]json_value_free [11:55:28]json_value_free done [11:55:28]process_json_proto returns [11:55:28]Send response to host [11:55:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68412,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [11:55:28]free response buf [11:55:28]execute_script done [11:55:28]execute_script returns [11:55:28]free content buf [11:55:28]Sock 9.Close socket [11:55:28]Sock 9.Thread stoped [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:02]OFD Sender: No OFD packet to send [11:56:07]OFD Sender: No OFD packet to send [11:56:12]OFD Sender: No OFD packet to send [11:56:17]OFD Sender: No OFD packet to send [11:56:22]OFD Sender: No OFD packet to send [11:56:27]OFD Sender: No OFD packet to send [11:56:32]OFD Sender: No OFD packet to send [11:56:37]OFD Sender: No OFD packet to send [11:56:42]OFD Sender: No OFD packet to send [11:56:47]OFD Sender: No OFD packet to send [11:56:52]OFD Sender: No OFD packet to send [11:56:57]OFD Sender: No OFD packet to send [11:57:02]OFD Sender: No OFD packet to send [11:57:07]OFD Sender: No OFD packet to send [11:57:12]OFD Sender: No OFD packet to send [11:57:17]OFD Sender: No OFD packet to send [11:57:22]OFD Sender: No OFD packet to send [11:57:27]OFD Sender: No OFD packet to send [11:57:32]OFD Sender: No OFD packet to send [11:57:37]OFD Sender: No OFD packet to send [11:57:37]accept exits with 7 [11:57:37]New connection [11:57:37]New thread 3067276644 created [11:57:37]Thread 3067133284 joined [11:57:37]Waiting for new connection... [11:57:37] Sock 7.Parse request [11:57:37]Sock 7.Check first char [11:57:37]Sock 7.First char is OK [11:57:37]request: POST /json_proto HTTP/1.0 [11:57:37]Method: POST [11:57:37]URL: /json_proto [11:57:37]Method is POST - this is cgi request [11:57:37]url: /json_proto [11:57:37]query_string will be loaded in cgi processing [11:57:37]execute_cgi json_proto POST (null) [11:57:37]execute_cgi path=json_proto method=POST [11:57:37]POST find Content-Length [11:57:37]Host: 172.17.52.3:8080 [11:57:37]Content-Length: 677 [11:57:37]Content-Type: application/json [11:57:37] [11:57:37]POST finish read [11:57:37]Found Content-Length = 677 [11:57:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:57:37]execute_script... [11:57: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)210410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:57:37]POST & json_proto [11:57:37]process_json_proto [11:57:37]json parsed OK: [11:57:37]protocol is kg_v1.0 [11:57:37]action value=close_receipt [11:57:37]process_action close_receipt [11:57:37]cmd_close_receipt [11:57:37]MH_GetDate [11:57:37]Write to MH i2c: F0 00 00 6A 2F 88 [11:57:37]Write i2c OK [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: F0 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: F0 09 00 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: F0 09 00 6A 2F 00 BA E4 18 67 D7 68 A5 64 F6 [11:57:37]GetLastDocTimeStamp 1729684533 [11:57:37]current date 1729684666 [11:57:37]FM_GetShiftState [11:57:37]SAM_PROTO_GetShiftState [11:57:37]wFMCommunicate request_size=4 [11:57:37]MH_SAM_APDU [11:57:37]CAPDU: 80 13 01 00 [11:57:37]Write to MH i2c: E2 08 00 6B 2F 80 13 01 00 00 00 00 00 17 [11:57:37]Write i2c OK [11:57:37]MH_I2C_Read... [11:57:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:37]Read from MH i2c: E2 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 0E 00 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 0E 00 6B 2F 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 86 [11:57:37]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [11:57:37]wFMCommunicate OK [11:57:37]SAM_PROTO_GetShiftState done [11:57:37]FM_GetShiftState done [11:57:37]opened in 1729641385 [11:57:37]opened+sec_in_day 1729727785 [11:57:37]quantity*price = 50041 [11:57:37]sum+1 = 50042 [11:57:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 36 23.10.2024 11:57 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68413 ФПД: 13970717274055 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115746&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68413&fm=13970717274055&tin=02508201610067®Number=0000000000091756&sum=50000 [11:57:39]StoreToDocumentArchive [11:57:39]shift 507 fd 68413 [11:57:39]save to /storage/0507/doc_00068413 [11:57:39]save last doc name /storage/0507/doc_00068413 to /storage/kkm_last_doc_name [11:57:39]save OK [11:57:39]Clear old archive folders... [11:57:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:57:39]tlvbuf is 02066580 [11:57:39]SAM_PROTO_ClearQueue [11:57:39]wFMCommunicate request_size=4 [11:57:39]MH_SAM_APDU [11:57:39]CAPDU: 80 09 00 00 [11:57:39]Write to MH i2c: E2 08 00 78 2F 80 09 00 00 00 00 00 00 19 [11:57:39]Write i2c OK [11:57:39]MH_I2C_Read... [11:57:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:39]Read from MH i2c: E2 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 03 00 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 03 00 78 2F 00 90 00 1B [11:57:39]RAPDU: 90 00 [11:57:39]wFMCommunicate OK [11:57:39]SAM_PROTO_ClearQueue done [11:57:39]KKMCreateOFDPacket [11:57:39]OFDProtocolAddRootSTLVToBuf [11:57:39]FM_MakeSignedData [11:57:39]FM_MakeSignedData [11:57:39]SAM_PROTO_SignData [11:57:39]wFMCommunicate request_size=4 [11:57:39]MH_SAM_APDU [11:57:39]CAPDU: 80 0D 01 02 [11:57:39]Write to MH i2c: E2 08 00 79 2F 80 0D 01 02 00 00 00 00 21 [11:57:39]Write i2c OK [11:57:39]MH_I2C_Read... [11:57:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:39]Read from MH i2c: E2 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 03 00 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 03 00 79 2F 00 90 00 1C [11:57:39]RAPDU: 90 00 [11:57:39]wFMCommunicate OK [11:57:39]wFMCommunicate request_size=255 [11:57:39]MH_SAM_APDU [11:57:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 BA E4 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 3D 0B 01 00 35 04 06 00 0C [11:57:39]Write to MH i2c: E2 02 01 7A 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 BA E4 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 3D 0B 01 00 35 04 06 00 0C 00 00 43 [11:57:39]Write i2c OK [11:57:39]MH_I2C_Read... [11:57:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:39]Read from MH i2c: E2 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 03 00 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 03 00 7A 2F 00 90 00 1D [11:57:39]RAPDU: 90 00 [11:57:39]wFMCommunicate OK [11:57:39]wFMCommunicate request_size=10 [11:57:39]MH_SAM_APDU [11:57:39]CAPDU: 80 0D 02 02 05 B4 CF A3 EF C7 [11:57:39]Write to MH i2c: E2 0D 00 7B 2F 80 0D 02 02 05 00 B4 CF A3 EF C7 00 00 0A [11:57:39]Write i2c OK [11:57:39]MH_I2C_Read... [11:57:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:39]Read from MH i2c: E2 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 03 00 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 03 00 7B 2F 00 90 00 1E [11:57:39]RAPDU: 90 00 [11:57:39]wFMCommunicate OK [11:57:39]wFMCommunicate request_size=4 [11:57:39]MH_SAM_APDU [11:57:39]CAPDU: 80 0D 03 02 [11:57:39]Write to MH i2c: E2 08 00 7C 2F 80 0D 03 02 00 00 00 00 26 [11:57:39]Write i2c OK [11:57:39]MH_I2C_Read... [11:57:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:39]Read from MH i2c: E2 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 0B 00 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 0B 00 7C 2F 00 E1 58 DF 9A D0 7C 0E F2 90 00 25 [11:57:39]RAPDU: E1 58 DF 9A D0 7C 0E F2 90 00 [11:57:39]wFMCommunicate OK [11:57:39]SAM_PROTO_SignData done [11:57:39]FM_MakeSignedData done [11:57:39]CreateOFDProtocolMessage [11:57:39]wFMCommunicate request_size=4 [11:57:39]MH_SAM_APDU [11:57:39]CAPDU: 80 11 00 00 [11:57:39]Write to MH i2c: E2 08 00 7D 2F 80 11 00 00 00 00 00 00 26 [11:57:39]Write i2c OK [11:57:39]MH_I2C_Read... [11:57:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:39]Read from MH i2c: E2 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 17 00 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 17 00 7D 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 7A [11:57:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [11:57:39]wFMCommunicate OK [11:57:39]CreateOFDProtocolMessage done [11:57:39]OFDSenderStorePacket 68413 [11:57:39]StoreOFDPacket docnum=68413 [11:57:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 2E C3 07 01 39 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 BA E4 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 3D 0B 01 00 35 04 06 00 0C B4 CF A3 EF C7 E1 58 DF 9A D0 7C 0E F2 [11:57:39]CheckFolder [11:57:39]dirname=/storage/ofd_packets [11:57:39]CheckFolder done [11:57:39]ProducePacketName [11:57:39]name=ofd_packets/00068413 [11:57:39]NVStorageSaveData ofd_packets/00068413 [11:57:39]File name is /storage/ofd_packets/00068413 [11:57:39]Write 301 bytes [11:57:39]NVStorageSaveData done [11:57:39]OFDSenderStorePacket done [11:57:39]KKMCreateOFDPacket done [11:57:39]NVStorageSaveData kkm_last_timestamp [11:57:39]File name is /storage/kkm_last_timestamp [11:57:39]Write 4 bytes [11:57:39]NVStorageSaveData done [11:57:39]ExternCall_PrintAddStr [11:57:39]wPrintStart [11:57:39]Write to MH i2c: 01 00 00 7E 2F AD [11:57:39]Write i2c OK [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: 01 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: 01 07 00 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: 01 07 00 7E 2F 00 04 00 00 00 FF 0F C6 [11:57:39]RasterBufferAndPrint [11:57:39]line Счет N : (1)210410 [11:57:39]line ИНН: 02508201610067 [11:57:39]line Контрольно-Кассовый Чек [11:57:39]line ПРОДАЖА [11:57:39]line ТРК (МРК, ГНК) : 11 [11:57:39]line Товар: 2710124130 [11:57:39]line Аи-92-К-2 [11:57:39]line 7.480 * 66.90 [11:57:39]line = 500.41 [11:57:39]line НДС 12% НСП 1% [11:57:39]line > о реализуемом товаре [11:57:39]line ОКРУГЛЕНИЕ: -0.41 [11:57:39]line ИТОГО: 500.00 [11:57:39]line Внесено: 500.00 [11:57:39]line СДАЧА: 0.00 [11:57:39]line НСП 1% : 4.43 [11:57:39]line НДС 12% : 53.14 [11:57:39]line Наличными: 500.00 [11:57:39]line Безнал.: 0.00 [11:57:39]line Место: АЗС № 147 "Партнер Нефть" [11:57:39]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [11:57:39]line СНО: Общий режим [11:57:39]line Чек 36 23.10.2024 11:57 [11:57:39]line Смена: 507 ФФД: 1.0 [11:57:39]line ЗНМ: 0300000094 [11:57:39]line РНМ: 0000000000091756 [11:57:39]line Версия ККМ: 001 [11:57:39]line ФМ: 0000000000871809 [11:57:39]line ФД: 68413 [11:57:39]line ФПД: 13970717274055 [11:57:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115746&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68413&fm=13970717274055&tin=02508201610067®Number=0000000000091756&sum=50000 [11:57:39]written 0, free lines is 4095 [11:57:39]OFD Sender: Processing packet 68413 [packets to send 8, broken 7] [11:57:39]ProducePacketName [11:57:39]name=ofd_packets/00068413 [11:57:39]OFD Sender: To server: pG, [11:57:39]CommunicateWithHost lk.salyk.kg:30040 [11:57:39]ConnectInit lk.salyk.kg [11:57:39]Connected sock=10 [11:57:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 2E C3 07 01 39 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 BA E4 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 3D 0B 01 00 35 04 06 00 0C B4 CF A3 EF C7 E1 58 DF 9A D0 7C 0E F2 [11:57:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 07 2C 47 00 78 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 31 38 30 39 10 04 04 00 3D 0B 01 00 F4 03 04 00 AF 8A 18 67 B6 04 01 00 00 7C 06 54 66 6A 27 34 BB [11:57:39]CommunicateWithHost err = 0 [11:57:39]CheckOFDResponse [11:57:39]1017 (14) - 77093643461234 [11:57:39]1041 (16) - 0000000000871809 [11:57:39]1040 (4) - 68413 [11:57:39]1012 (4) - 23.10.2024 05:33 [11:57:39]1206 (1) - 0 [11:57:39]OFD Sender: Remove packet 68413 [11:57:39]ProducePacketName [11:57:39]name=ofd_packets/00068413 [11:57:39]NVStorageDeleteData [11:57:40]Write to MH i2c: 01 00 00 A8 2F D7 [11:57:40]Write i2c OK [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: 01 [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: 01 07 00 [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: 01 07 00 A8 2F 00 04 00 00 00 9D 0C 8B [11:57:40]RasterBufferAndPrint [11:57:40]line [11:57:40]line [11:57:40]line [11:57:40]line [11:57:40]line [11:57:40]written 0, free lines is 3233 [11:57:40]MH_Cut [11:57:40]Write to MH i2c: D1 01 00 AF 2F 01 B0 [11:57:40]Write i2c OK [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: D1 [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: D1 01 00 [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: D1 01 00 AF 2F 00 AF [11:57:40]Write to MH i2c: 01 00 00 B0 2F DF [11:57:40]Write i2c OK [11:57:40]MH_I2C_Read... [11:57:40]OFD Sender: No OFD packet to send [11:57:40]*** Cut start [11:57:40]*** Partial cut [11:57:40]*** CUTSNS_PIN = 1 [11:57:40]*** CUTSNS_PIN = 0 [11:57:41]*** Brake cut motor [11:57:41]Read from MH i2c: 01 [11:57:41]MH_I2C_Read... [11:57:41]*** Stop cut motor [11:57:41]*** Cut end [11:57:41]Read from MH i2c: 01 07 00 [11:57:41]MH_I2C_Read... [11:57:41]Read from MH i2c: 01 07 00 B0 2F 00 04 00 00 00 FF 0F F8 [11:57:41]process_action close_receipt done [11:57:41]requested_data is exist [11:57:41]produce_requested_data [11:57:41]requested_item fm.sn is exist - process it [11:57:41]wFMCommunicate request_size=4 [11:57:41]MH_SAM_APDU [11:57:41]CAPDU: 80 11 00 00 [11:57:41]Write to MH i2c: E2 08 00 B1 2F 80 11 00 00 00 00 00 00 5A [11:57:41]Write i2c OK [11:57:41]MH_I2C_Read... [11:57:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:41]Read from MH i2c: E2 [11:57:41]MH_I2C_Read... [11:57:41]Read from MH i2c: E2 17 00 [11:57:41]MH_I2C_Read... [11:57:41]Read from MH i2c: E2 17 00 B1 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 AE [11:57:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [11:57:41]wFMCommunicate OK [11:57:41]requested_item fd.num is exist - process it [11:57:41]SAM_PROTO_GetFieldsCounters [11:57:41]wFMCommunicate request_size=4 [11:57:41]MH_SAM_APDU [11:57:41]CAPDU: 80 13 00 00 [11:57:41]Write to MH i2c: E2 08 00 B2 2F 80 13 00 00 00 00 00 00 5D [11:57:41]Write i2c OK [11:57:41]MH_I2C_Read... [11:57:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:41]Read from MH i2c: E2 [11:57:41]MH_I2C_Read... [11:57:41]Read from MH i2c: E2 62 00 [11:57:41]MH_I2C_Read... [11:57:41]Read from MH i2c: E2 62 00 B2 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 3D 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [11:57:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 3D 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:57:41]wFMCommunicate OK [11:57:41]SAM_PROTO_GetFieldsCounters done [11:57:41]requested_item shift.num is exist - process it [11:57:41]requested_item shift.opened is exist - process it [11:57:41]req_shift_opened [11:57:41]FM_GetShiftState [11:57:41]SAM_PROTO_GetShiftState [11:57:41]wFMCommunicate request_size=4 [11:57:41]MH_SAM_APDU [11:57:41]CAPDU: 80 13 01 00 [11:57:41]Write to MH i2c: E2 08 00 B3 2F 80 13 01 00 00 00 00 00 5F [11:57:41]Write i2c OK [11:57:41]MH_I2C_Read... [11:57:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:41]Read from MH i2c: E2 [11:57:41]MH_I2C_Read... [11:57:41]Read from MH i2c: E2 0E 00 [11:57:41]MH_I2C_Read... [11:57:41]Read from MH i2c: E2 0E 00 B3 2F 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 CE [11:57:41]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [11:57:41]wFMCommunicate OK [11:57:41]SAM_PROTO_GetShiftState done [11:57:41]FM_GetShiftState done [11:57:41]req_shift_opened done [11:57:41]requested_item shift.open_date is exist - process it [11:57:41]req_shift_open_date [11:57:41]req_shift_open_date done [11:57:41]produce_requested_data done [11:57:41]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68413,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [11:57:41]process_action_free close_receipt [11:57:41]json_value_free [11:57:41]json_value_free done [11:57:41]process_json_proto returns [11:57:41]Send response to host [11:57:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68413,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [11:57:41]free response buf [11:57:41]execute_script done [11:57:41]execute_script returns [11:57:41]free content buf [11:57:41]Sock 7.Close socket [11:57:41]Sock 7.Thread stoped [11:57:45]OFD Sender: No OFD packet to send [11:57:50]OFD Sender: No OFD packet to send [11:57:55]OFD Sender: No OFD packet to send [11:58:00]OFD Sender: No OFD packet to send [11:58:05]OFD Sender: No OFD packet to send [11:58:10]OFD Sender: No OFD packet to send [11:58:15]OFD Sender: No OFD packet to send [11:58:20]OFD Sender: No OFD packet to send [11:58:25]OFD Sender: No OFD packet to send [11:58:30]OFD Sender: No OFD packet to send [11:58:35]OFD Sender: No OFD packet to send [11:58:40]OFD Sender: No OFD packet to send [11:58:45]OFD Sender: No OFD packet to send [11:58:50]OFD Sender: No OFD packet to send [11:58:55]OFD Sender: No OFD packet to send [11:59:00]OFD Sender: No OFD packet to send [11:59:05]OFD Sender: No OFD packet to send [11:59:10]OFD Sender: No OFD packet to send [11:59:15]OFD Sender: No OFD packet to send [11:59:20]OFD Sender: No OFD packet to send [11:59:25]OFD Sender: No OFD packet to send [11:59:30]OFD Sender: No OFD packet to send [11:59:35]OFD Sender: No OFD packet to send [11:59:40]OFD Sender: No OFD packet to send [11:59:45]OFD Sender: No OFD packet to send [11:59:50]OFD Sender: No OFD packet to send [11:59:55]OFD Sender: No OFD packet to send [12:00:00]OFD Sender: No OFD packet to send [12:00:05]OFD Sender: No OFD packet to send [12:00:10]OFD Sender: No OFD packet to send [12:00:15]OFD Sender: No OFD packet to send [12:00:20]OFD Sender: No OFD packet to send [12:00:25]OFD Sender: No OFD packet to send [12:00:30]OFD Sender: No OFD packet to send [12:00:35]OFD Sender: No OFD packet to send [12:00:40]OFD Sender: No OFD packet to send [12:00:45]OFD Sender: No OFD packet to send [12:00:50]OFD Sender: No OFD packet to send [12:00:55]OFD Sender: No OFD packet to send [12:01:00]OFD Sender: No OFD packet to send [12:01:05]OFD Sender: No OFD packet to send [12:01:10]OFD Sender: No OFD packet to send [12:01:15]OFD Sender: No OFD packet to send [12:01:20]OFD Sender: No OFD packet to send [12:01:25]OFD Sender: No OFD packet to send [12:01:30]OFD Sender: No OFD packet to send [12:01:35]OFD Sender: No OFD packet to send [12:01:40]OFD Sender: No OFD packet to send [12:01:45]OFD Sender: No OFD packet to send [12:01:50]OFD Sender: No OFD packet to send [12:01:55]OFD Sender: No OFD packet to send [12:02:00]OFD Sender: No OFD packet to send [12:02:05]OFD Sender: No OFD packet to send [12:02:10]OFD Sender: No OFD packet to send [12:02:15]OFD Sender: No OFD packet to send [12:02:20]OFD Sender: No OFD packet to send [12:02:25]OFD Sender: No OFD packet to send [12:02:30]OFD Sender: No OFD packet to send [12:02:35]OFD Sender: No OFD packet to send [12:02:40]OFD Sender: No OFD packet to send [12:02:45]OFD Sender: No OFD packet to send [12:02:50]OFD Sender: No OFD packet to send [12:02:55]OFD Sender: No OFD packet to send [12:03:00]OFD Sender: No OFD packet to send [12:03:05]OFD Sender: No OFD packet to send [12:03:10]OFD Sender: No OFD packet to send [12:03:15]OFD Sender: No OFD packet to send [12:03:20]accept exits with 9 [12:03:20]New connection [12:03:20]New thread 3067133284 created [12:03:20]Thread 3067276644 joined [12:03:20]Waiting for new connection... [12:03:20] Sock 9.Parse request [12:03:20]Sock 9.Check first char [12:03:20]Sock 9.First char is OK [12:03:20]request: POST /json_proto HTTP/1.0 [12:03:20]Method: POST [12:03:20]URL: /json_proto [12:03:20]Method is POST - this is cgi request [12:03:20]url: /json_proto [12:03:20]query_string will be loaded in cgi processing [12:03:20]execute_cgi json_proto POST (null) [12:03:20]execute_cgi path=json_proto method=POST [12:03:20]POST find Content-Length [12:03:20]Host: 172.17.52.3:8080 [12:03:20]Content-Length: 677 [12:03:20]Content-Type: application/json [12:03:20] [12:03:20]POST finish read [12:03:20]Found Content-Length = 677 [12:03:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 1.960, "sum" : 131.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 131.00, "payments": [ { "type": 0, "sum" : 131.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:20]execute_script... [12: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)210411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 1.960, "sum" : 131.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 131.00, "payments": [ { "type": 0, "sum" : 131.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:20]POST & json_proto [12:03:20]process_json_proto [12:03:20]json parsed OK: [12:03:20]protocol is kg_v1.0 [12:03:20]action value=close_receipt [12:03:20]process_action close_receipt [12:03:20]cmd_close_receipt [12:03:20]MH_GetDate [12:03:20]Write to MH i2c: F0 00 00 B4 2F D2 [12:03:20]Write i2c OK [12:03:20]MH_I2C_Read... [12:03:20]Read from MH i2c: F0 [12:03:20]MH_I2C_Read... [12:03:20]Read from MH i2c: F0 09 00 [12:03:20]MH_I2C_Read... [12:03:20]Read from MH i2c: F0 09 00 B4 2F 00 11 E6 18 67 D7 68 A5 64 99 [12:03:20]GetLastDocTimeStamp 1729684666 [12:03:20]current date 1729685009 [12:03:20]FM_GetShiftState [12:03:20]SAM_PROTO_GetShiftState [12:03:20]wFMCommunicate request_size=4 [12:03:20]MH_SAM_APDU [12:03:20]CAPDU: 80 13 01 00 [12:03:20]Write to MH i2c: E2 08 00 B5 2F 80 13 01 00 00 00 00 00 61 [12:03:20]Write i2c OK [12:03:20]MH_I2C_Read... [12:03:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:20]Read from MH i2c: E2 [12:03:20]MH_I2C_Read... [12:03:20]Read from MH i2c: E2 0E 00 [12:03:20]MH_I2C_Read... [12:03:20]Read from MH i2c: E2 0E 00 B5 2F 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 D0 [12:03:20]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [12:03:20]wFMCommunicate OK [12:03:20]SAM_PROTO_GetShiftState done [12:03:20]FM_GetShiftState done [12:03:20]opened in 1729641385 [12:03:20]opened+sec_in_day 1729727785 [12:03:20]quantity*price = 13112 [12:03:20]sum+1 = 13113 [12:03:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 131.00 Внесено: 150.00 СДАЧА: 19.00 НСП 1% : 1.16 НДС 12% : 13.92 Наличными: 131.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 37 23.10.2024 12:03 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68414 ФПД: 40085163010033 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120329&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68414&fm=40085163010033&tin=02508201610067®Number=0000000000091756&sum=13100 [12:03:21]StoreToDocumentArchive [12:03:21]shift 507 fd 68414 [12:03:21]save to /storage/0507/doc_00068414 [12:03:21]save last doc name /storage/0507/doc_00068414 to /storage/kkm_last_doc_name [12:03:21]save OK [12:03:21]Clear old archive folders... [12:03:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:03:21]tlvbuf is B6FA7360 [12:03:21]SAM_PROTO_ClearQueue [12:03:21]wFMCommunicate request_size=4 [12:03:21]MH_SAM_APDU [12:03:21]CAPDU: 80 09 00 00 [12:03:21]Write to MH i2c: E2 08 00 C2 2F 80 09 00 00 00 00 00 00 63 [12:03:21]Write i2c OK [12:03:21]MH_I2C_Read... [12:03:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:21]Read from MH i2c: E2 [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: E2 03 00 [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: E2 03 00 C2 2F 00 90 00 65 [12:03:21]RAPDU: 90 00 [12:03:21]wFMCommunicate OK [12:03:21]SAM_PROTO_ClearQueue done [12:03:21]KKMCreateOFDPacket [12:03:21]OFDProtocolAddRootSTLVToBuf [12:03:21]FM_MakeSignedData [12:03:21]FM_MakeSignedData [12:03:21]SAM_PROTO_SignData [12:03:21]wFMCommunicate request_size=4 [12:03:21]MH_SAM_APDU [12:03:21]CAPDU: 80 0D 01 02 [12:03:21]Write to MH i2c: E2 08 00 C3 2F 80 0D 01 02 00 00 00 00 6B [12:03:21]Write i2c OK [12:03:21]MH_I2C_Read... [12:03:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:21]Read from MH i2c: E2 [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: E2 03 00 [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: E2 03 00 C3 2F 00 90 00 66 [12:03:21]RAPDU: 90 00 [12:03:21]wFMCommunicate OK [12:03:21]wFMCommunicate request_size=255 [12:03:21]MH_SAM_APDU [12:03: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 32 FF 03 08 00 03 A8 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 38 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 05 00 00 00 00 07 04 06 00 2C 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 11 E6 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 3E 0B 01 00 35 04 06 00 24 [12:03:21]Write to MH i2c: E2 02 01 C4 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A8 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 38 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 05 00 00 00 00 07 04 06 00 2C 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 11 E6 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 3E 0B 01 00 35 04 06 00 24 00 00 78 [12:03:21]Write i2c OK [12:03:21]MH_I2C_Read... [12:03:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:21]Read from MH i2c: E2 [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: E2 03 00 [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: E2 03 00 C4 2F 00 90 00 67 [12:03:21]RAPDU: 90 00 [12:03:21]wFMCommunicate OK [12:03:21]wFMCommunicate request_size=10 [12:03:21]MH_SAM_APDU [12:03:21]CAPDU: 80 0D 02 02 05 75 0D E6 E7 F1 [12:03:21]Write to MH i2c: E2 0D 00 C5 2F 80 0D 02 02 05 00 75 0D E6 E7 F1 00 00 B8 [12:03:21]Write i2c OK [12:03:21]MH_I2C_Read... [12:03:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:21]Read from MH i2c: E2 [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: E2 03 00 [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: E2 03 00 C5 2F 00 90 00 68 [12:03:21]RAPDU: 90 00 [12:03:21]wFMCommunicate OK [12:03:21]wFMCommunicate request_size=4 [12:03:21]MH_SAM_APDU [12:03:21]CAPDU: 80 0D 03 02 [12:03:21]Write to MH i2c: E2 08 00 C6 2F 80 0D 03 02 00 00 00 00 70 [12:03:21]Write i2c OK [12:03:21]MH_I2C_Read... [12:03:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:21]Read from MH i2c: E2 [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: E2 0B 00 [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: E2 0B 00 C6 2F 00 94 D9 3A 82 4C B2 44 57 90 00 33 [12:03:21]RAPDU: 94 D9 3A 82 4C B2 44 57 90 00 [12:03:21]wFMCommunicate OK [12:03:21]SAM_PROTO_SignData done [12:03:21]FM_MakeSignedData done [12:03:21]CreateOFDProtocolMessage [12:03:21]wFMCommunicate request_size=4 [12:03:21]MH_SAM_APDU [12:03:21]CAPDU: 80 11 00 00 [12:03:21]Write to MH i2c: E2 08 00 C7 2F 80 11 00 00 00 00 00 00 70 [12:03:21]Write i2c OK [12:03:21]MH_I2C_Read... [12:03:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:22]Read from MH i2c: E2 [12:03:22]MH_I2C_Read... [12:03:22]Read from MH i2c: E2 17 00 [12:03:22]MH_I2C_Read... [12:03:22]Read from MH i2c: E2 17 00 C7 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 C4 [12:03:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [12:03:22]wFMCommunicate OK [12:03:22]CreateOFDProtocolMessage done [12:03:22]OFDSenderStorePacket 68414 [12:03:22]StoreOFDPacket docnum=68414 [12:03:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 E9 AD 07 01 2B 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 32 FF 03 08 00 03 A8 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 38 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 05 00 00 00 00 07 04 06 00 2C 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 11 E6 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 3E 0B 01 00 35 04 06 00 24 75 0D E6 E7 F1 94 D9 3A 82 4C B2 44 57 [12:03:22]CheckFolder [12:03:22]dirname=/storage/ofd_packets [12:03:22]CheckFolder done [12:03:22]ProducePacketName [12:03:22]name=ofd_packets/00068414 [12:03:22]NVStorageSaveData ofd_packets/00068414 [12:03:22]File name is /storage/ofd_packets/00068414 [12:03:22]Write 301 bytes [12:03:22]NVStorageSaveData done [12:03:22]OFDSenderStorePacket done [12:03:22]KKMCreateOFDPacket done [12:03:22]NVStorageSaveData kkm_last_timestamp [12:03:22]File name is /storage/kkm_last_timestamp [12:03:22]Write 4 bytes [12:03:22]NVStorageSaveData done [12:03:22]ExternCall_PrintAddStr [12:03:22]wPrintStart [12:03:22]Write to MH i2c: 01 00 00 C8 2F F7 [12:03:22]Write i2c OK [12:03:22]MH_I2C_Read... [12:03:22]Read from MH i2c: 01 [12:03:22]MH_I2C_Read... [12:03:22]Read from MH i2c: 01 07 00 [12:03:22]MH_I2C_Read... [12:03:22]Read from MH i2c: 01 07 00 C8 2F 00 04 00 00 00 FF 0F 10 [12:03:22]RasterBufferAndPrint [12:03:22]line Счет N : (1)210411 [12:03:22]line ИНН: 02508201610067 [12:03:22]line Контрольно-Кассовый Чек [12:03:22]line ПРОДАЖА [12:03:22]line ТРК (МРК, ГНК) : 11 [12:03:22]line Товар: 2710124130 [12:03:22]line Аи-92-К-2 [12:03:22]line 1.960 * 66.90 [12:03:22]line = 131.12 [12:03:22]line НДС 12% НСП 1% [12:03:22]line > о реализуемом товаре [12:03:22]line ОКРУГЛЕНИЕ: -0.12 [12:03:22]line ИТОГО: 131.00 [12:03:22]line Внесено: 150.00 [12:03:22]line СДАЧА: 19.00 [12:03:22]line НСП 1% : 1.16 [12:03:22]line НДС 12% : 13.92 [12:03:22]line Наличными: 131.00 [12:03:22]line Безнал.: 0.00 [12:03:22]line Место: АЗС № 147 "Партнер Нефть" [12:03:22]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [12:03:22]line СНО: Общий режим [12:03:22]line Чек 37 23.10.2024 12:03 [12:03:22]line Смена: 507 ФФД: 1.0 [12:03:22]line ЗНМ: 0300000094 [12:03:22]line РНМ: 0000000000091756 [12:03:22]line Версия ККМ: 001 [12:03:22]line ФМ: 0000000000871809 [12:03:22]line ФД: 68414 [12:03:22]line ФПД: 40085163010033 [12:03:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120329&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68414&fm=40085163010033&tin=02508201610067®Number=0000000000091756&sum=13100 [12:03:22]written 0, free lines is 4095 [12:03:22]OFD Sender: Processing packet 68414 [packets to send 8, broken 7] [12:03:22]ProducePacketName [12:03:22]name=ofd_packets/00068414 [12:03:22]OFD Sender: To server: pG, [12:03:22]CommunicateWithHost lk.salyk.kg:30040 [12:03:22]ConnectInit lk.salyk.kg [12:03:22]Write to MH i2c: 01 00 00 F2 2F 21 [12:03:22]Connected sock=10 [12:03:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 E9 AD 07 01 2B 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 32 FF 03 08 00 03 A8 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 38 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 05 00 00 00 00 07 04 06 00 2C 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 11 E6 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 3E 0B 01 00 35 04 06 00 24 75 0D E6 E7 F1 94 D9 3A 82 4C B2 44 57 [12:03:22]Write i2c OK [12:03:22]MH_I2C_Read... [12:03:22]Read from MH i2c: 01 [12:03:22]MH_I2C_Read... [12:03:22]Read from MH i2c: 01 07 00 [12:03:22]MH_I2C_Read... [12:03:22]Read from MH i2c: 01 07 00 F2 2F 00 04 00 00 00 99 0C D1 [12:03:22]RasterBufferAndPrint [12:03:22]line [12:03:22]line [12:03:22]line [12:03:22]line [12:03:22]line [12:03:22]written 0, free lines is 3240 [12:03:22]MH_Cut [12:03:22]Write to MH i2c: D1 01 00 F9 2F 01 FA [12:03:22]Write i2c OK [12:03:22]MH_I2C_Read... [12:03:22]Read from MH i2c: D1 [12:03:22]MH_I2C_Read... [12:03:22]Read from MH i2c: D1 01 00 [12:03:22]MH_I2C_Read... [12:03:22]Read from MH i2c: D1 01 00 F9 2F 00 F9 [12:03:22]Write to MH i2c: 01 00 00 FA 2F 29 [12:03:22]Write i2c OK [12:03:22]MH_I2C_Read... [12:03:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 1C D9 47 00 D6 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 3E 0B 01 00 F4 03 04 00 06 8C 18 67 B6 04 01 00 00 F6 91 5A EA D8 D9 47 46 [12:03:22]CommunicateWithHost err = 0 [12:03:22]CheckOFDResponse [12:03:22]1017 (14) - 77093643461234 [12:03:22]1041 (16) - 0000000000871809 [12:03:22]1040 (4) - 68414 [12:03:22]1012 (4) - 23.10.2024 05:39 [12:03:22]1206 (1) - 0 [12:03:22]OFD Sender: Remove packet 68414 [12:03:22]ProducePacketName [12:03:22]name=ofd_packets/00068414 [12:03:22]NVStorageDeleteData [12:03:23]OFD Sender: No OFD packet to send [12:03:23]*** Cut start [12:03:23]*** Partial cut [12:03:23]*** CUTSNS_PIN = 1 [12:03:23]*** CUTSNS_PIN = 0 [12:03:23]*** Brake cut motor [12:03:23]Read from MH i2c: 01 [12:03:23]MH_I2C_Read... [12:03:23]*** Stop cut motor [12:03:23]*** Cut end [12:03:23]Read from MH i2c: 01 07 00 [12:03:23]MH_I2C_Read... [12:03:23]Read from MH i2c: 01 07 00 FA 2F 00 04 00 00 00 FF 0F 42 [12:03:23]process_action close_receipt done [12:03:23]requested_data is exist [12:03:23]produce_requested_data [12:03:23]requested_item fm.sn is exist - process it [12:03:23]wFMCommunicate request_size=4 [12:03:23]MH_SAM_APDU [12:03:23]CAPDU: 80 11 00 00 [12:03:23]Write to MH i2c: E2 08 00 FB 2F 80 11 00 00 00 00 00 00 A4 [12:03:23]Write i2c OK [12:03:23]MH_I2C_Read... [12:03:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:24]Read from MH i2c: E2 [12:03:24]MH_I2C_Read... [12:03:24]Read from MH i2c: E2 17 00 [12:03:24]MH_I2C_Read... [12:03:24]Read from MH i2c: E2 17 00 FB 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 F8 [12:03:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [12:03:24]wFMCommunicate OK [12:03:24]requested_item fd.num is exist - process it [12:03:24]SAM_PROTO_GetFieldsCounters [12:03:24]wFMCommunicate request_size=4 [12:03:24]MH_SAM_APDU [12:03:24]CAPDU: 80 13 00 00 [12:03:24]Write to MH i2c: E2 08 00 FC 2F 80 13 00 00 00 00 00 00 A7 [12:03:24]Write i2c OK [12:03:24]MH_I2C_Read... [12:03:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:24]Read from MH i2c: E2 [12:03:24]MH_I2C_Read... [12:03:24]Read from MH i2c: E2 62 00 [12:03:24]MH_I2C_Read... [12:03:24]Read from MH i2c: E2 62 00 FC 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 3E 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [12: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 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 3E 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:03:24]wFMCommunicate OK [12:03:24]SAM_PROTO_GetFieldsCounters done [12:03:24]requested_item shift.num is exist - process it [12:03:24]requested_item shift.opened is exist - process it [12:03:24]req_shift_opened [12:03:24]FM_GetShiftState [12:03:24]SAM_PROTO_GetShiftState [12:03:24]wFMCommunicate request_size=4 [12:03:24]MH_SAM_APDU [12:03:24]CAPDU: 80 13 01 00 [12:03:24]Write to MH i2c: E2 08 00 FD 2F 80 13 01 00 00 00 00 00 A9 [12:03:24]Write i2c OK [12:03:24]MH_I2C_Read... [12:03:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:24]Read from MH i2c: E2 [12:03:24]MH_I2C_Read... [12:03:24]Read from MH i2c: E2 0E 00 [12:03:24]MH_I2C_Read... [12:03:24]Read from MH i2c: E2 0E 00 FD 2F 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 18 [12:03:24]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [12:03:24]wFMCommunicate OK [12:03:24]SAM_PROTO_GetShiftState done [12:03:24]FM_GetShiftState done [12:03:24]req_shift_opened done [12:03:24]requested_item shift.open_date is exist - process it [12:03:24]req_shift_open_date [12:03:24]req_shift_open_date done [12:03:24]produce_requested_data done [12:03:24]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68414,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [12:03:24]process_action_free close_receipt [12:03:24]json_value_free [12:03:24]json_value_free done [12:03:24]process_json_proto returns [12:03:24]Send response to host [12:03:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68414,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [12:03:24]free response buf [12:03:24]execute_script done [12:03:24]execute_script returns [12:03:24]free content buf [12:03:24]Sock 9.Close socket [12:03:24]Sock 9.Thread stoped [12:03:28]OFD Sender: No OFD packet to send [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:58]OFD Sender: No OFD packet to send [12:06:03]OFD Sender: No OFD packet to send [12:06:08]OFD Sender: No OFD packet to send [12:06:13]OFD Sender: No OFD packet to send [12:06:18]OFD Sender: No OFD packet to send [12:06:23]OFD Sender: No OFD packet to send [12:06:28]OFD Sender: No OFD packet to send [12:06:33]OFD Sender: No OFD packet to send [12:06:38]OFD Sender: No OFD packet to send [12:06:43]OFD Sender: No OFD packet to send [12:06:48]OFD Sender: No OFD packet to send [12:06:53]OFD Sender: No OFD packet to send [12:06:58]OFD Sender: No OFD packet to send [12:07:03]OFD Sender: No OFD packet to send [12:07:08]OFD Sender: No OFD packet to send [12:07:13]OFD Sender: No OFD packet to send [12:07:18]OFD Sender: No OFD packet to send [12:07:23]OFD Sender: No OFD packet to send [12:07:28]OFD Sender: No OFD packet to send [12:07:33]OFD Sender: No OFD packet to send [12:07:38]OFD Sender: No OFD packet to send [12:07:43]OFD Sender: No OFD packet to send [12:07:48]OFD Sender: No OFD packet to send [12:07:53]OFD Sender: No OFD packet to send [12:07:58]OFD Sender: No OFD packet to send [12:08:03]OFD Sender: No OFD packet to send [12:08:08]OFD Sender: No OFD packet to send [12:08:13]OFD Sender: No OFD packet to send [12:08:18]OFD Sender: No OFD packet to send [12:08:23]OFD Sender: No OFD packet to send [12:08:28]OFD Sender: No OFD packet to send [12:08:33]OFD Sender: No OFD packet to send [12:08:38]OFD Sender: No OFD packet to send [12:08:43]OFD Sender: No OFD packet to send [12:08:48]OFD Sender: No OFD packet to send [12:08:53]OFD Sender: No OFD packet to send [12:08:58]OFD Sender: No OFD packet to send [12:09:03]OFD Sender: No OFD packet to send [12:09:08]OFD Sender: No OFD packet to send [12:09:13]OFD Sender: No OFD packet to send [12:09:18]OFD Sender: No OFD packet to send [12:09:23]OFD Sender: No OFD packet to send [12:09:28]OFD Sender: No OFD packet to send [12:09:33]OFD Sender: No OFD packet to send [12:09:38]OFD Sender: No OFD packet to send [12:09:43]OFD Sender: No OFD packet to send [12:09:48]OFD Sender: No OFD packet to send [12:09:53]OFD Sender: No OFD packet to send [12:09:58]OFD Sender: No OFD packet to send [12:10:03]OFD Sender: No OFD packet to send [12:10:08]OFD Sender: No OFD packet to send [12:10:13]OFD Sender: No OFD packet to send [12:10:18]OFD Sender: No OFD packet to send [12:10:23]OFD Sender: No OFD packet to send [12:10:28]OFD Sender: No OFD packet to send [12:10:33]OFD Sender: No OFD packet to send [12:10:38]OFD Sender: No OFD packet to send [12:10:43]OFD Sender: No OFD packet to send [12:10:48]OFD Sender: No OFD packet to send [12:10:50]accept exits with 7 [12:10:50]New connection [12:10:50]New thread 3067276644 created [12:10:50]Thread 3067133284 joined [12:10:50]Waiting for new connection... [12:10:50] Sock 7.Parse request [12:10:50]Sock 7.Check first char [12:10:50]Sock 7.First char is OK [12:10:50]request: POST /json_proto HTTP/1.0 [12:10:50]Method: POST [12:10:50]URL: /json_proto [12:10:50]Method is POST - this is cgi request [12:10:50]url: /json_proto [12:10:50]query_string will be loaded in cgi processing [12:10:50]execute_cgi json_proto POST (null) [12:10:50]execute_cgi path=json_proto method=POST [12:10:50]POST find Content-Length [12:10:50]Host: 172.17.52.3:8080 [12:10:50]Content-Length: 677 [12:10:50]Content-Type: application/json [12:10:50] [12:10:50]POST finish read [12:10:50]Found Content-Length = 677 [12:10:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:10:50]execute_script... [12:10: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)210412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:10:50]POST & json_proto [12:10:50]process_json_proto [12:10:50]json parsed OK: [12:10:50]protocol is kg_v1.0 [12:10:50]action value=close_receipt [12:10:50]process_action close_receipt [12:10:50]cmd_close_receipt [12:10:50]MH_GetDate [12:10:50]Write to MH i2c: F0 00 00 FE 2F 1C [12:10:50]Write i2c OK [12:10:50]MH_I2C_Read... [12:10:50]Read from MH i2c: F0 [12:10:50]MH_I2C_Read... [12:10:50]Read from MH i2c: F0 09 00 [12:10:50]MH_I2C_Read... [12:10:50]Read from MH i2c: F0 09 00 FE 2F 00 D3 E7 18 67 D7 68 A5 64 A6 [12:10:50]GetLastDocTimeStamp 1729685009 [12:10:50]current date 1729685459 [12:10:50]FM_GetShiftState [12:10:50]SAM_PROTO_GetShiftState [12:10:50]wFMCommunicate request_size=4 [12:10:50]MH_SAM_APDU [12:10:50]CAPDU: 80 13 01 00 [12:10:50]Write to MH i2c: E2 08 00 FF 2F 80 13 01 00 00 00 00 00 AB [12:10:50]Write i2c OK [12:10:50]MH_I2C_Read... [12:10:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:50]Read from MH i2c: E2 [12:10:50]MH_I2C_Read... [12:10:50]Read from MH i2c: E2 0E 00 [12:10:50]MH_I2C_Read... [12:10:50]Read from MH i2c: E2 0E 00 FF 2F 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 1A [12:10:50]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [12:10:50]wFMCommunicate OK [12:10:50]SAM_PROTO_GetShiftState done [12:10:50]FM_GetShiftState done [12:10:50]opened in 1729641385 [12:10:50]opened+sec_in_day 1729727785 [12:10:50]quantity*price = 20003 [12:10:50]sum+1 = 20004 [12:10:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 38 23.10.2024 12:10 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68415 ФПД: 226831149349115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121059&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68415&fm=226831149349115&tin=02508201610067®Number=0000000000091756&sum=20000 [12:10:51]StoreToDocumentArchive [12:10:51]shift 507 fd 68415 [12:10:51]save to /storage/0507/doc_00068415 [12:10:51]save last doc name /storage/0507/doc_00068415 to /storage/kkm_last_doc_name [12:10:51]save OK [12:10:51]Clear old archive folders... [12:10:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:10:51]tlvbuf is 02057820 [12:10:51]SAM_PROTO_ClearQueue [12:10:51]wFMCommunicate request_size=4 [12:10:51]MH_SAM_APDU [12:10:51]CAPDU: 80 09 00 00 [12:10:51]Write to MH i2c: E2 08 00 0C 30 80 09 00 00 00 00 00 00 AE [12:10:51]Write i2c OK [12:10:51]MH_I2C_Read... [12:10:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:51]Read from MH i2c: E2 [12:10:51]MH_I2C_Read... [12:10:51]Read from MH i2c: E2 03 00 [12:10:51]MH_I2C_Read... [12:10:51]Read from MH i2c: E2 03 00 0C 30 00 90 00 B0 [12:10:51]RAPDU: 90 00 [12:10:51]wFMCommunicate OK [12:10:51]SAM_PROTO_ClearQueue done [12:10:51]KKMCreateOFDPacket [12:10:51]OFDProtocolAddRootSTLVToBuf [12:10:51]FM_MakeSignedData [12:10:51]FM_MakeSignedData [12:10:51]SAM_PROTO_SignData [12:10:51]wFMCommunicate request_size=4 [12:10:51]MH_SAM_APDU [12:10:51]CAPDU: 80 0D 01 02 [12:10:51]Write to MH i2c: E2 08 00 0D 30 80 0D 01 02 00 00 00 00 B6 [12:10:51]Write i2c OK [12:10:51]MH_I2C_Read... [12:10:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:51]Read from MH i2c: E2 [12:10:51]MH_I2C_Read... [12:10:51]Read from MH i2c: E2 03 00 [12:10:51]MH_I2C_Read... [12:10:51]Read from MH i2c: E2 03 00 0D 30 00 90 00 B1 [12:10:51]RAPDU: 90 00 [12:10:51]wFMCommunicate OK [12:10:51]wFMCommunicate request_size=255 [12:10:51]MH_SAM_APDU [12:10: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 32 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 26 00 00 00 F4 03 04 00 D3 E7 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 3F 0B 01 00 35 04 06 00 CE [12:10:51]Write to MH i2c: E2 02 01 0E 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 26 00 00 00 F4 03 04 00 D3 E7 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 3F 0B 01 00 35 04 06 00 CE 00 00 7C [12:10:51]Write i2c OK [12:10:51]MH_I2C_Read... [12:10:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:52]Read from MH i2c: E2 [12:10:52]MH_I2C_Read... [12:10:52]Read from MH i2c: E2 03 00 [12:10:52]MH_I2C_Read... [12:10:52]Read from MH i2c: E2 03 00 0E 30 00 90 00 B2 [12:10:52]RAPDU: 90 00 [12:10:52]wFMCommunicate OK [12:10:52]wFMCommunicate request_size=10 [12:10:52]MH_SAM_APDU [12:10:52]CAPDU: 80 0D 02 02 05 4D 3E 14 B8 FB [12:10:52]Write to MH i2c: E2 0D 00 0F 30 80 0D 02 02 05 00 4D 3E 14 B8 FB 00 00 15 [12:10:52]Write i2c OK [12:10:52]MH_I2C_Read... [12:10:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:52]Read from MH i2c: E2 [12:10:52]MH_I2C_Read... [12:10:52]Read from MH i2c: E2 03 00 [12:10:52]MH_I2C_Read... [12:10:52]Read from MH i2c: E2 03 00 0F 30 00 90 00 B3 [12:10:52]RAPDU: 90 00 [12:10:52]wFMCommunicate OK [12:10:52]wFMCommunicate request_size=4 [12:10:52]MH_SAM_APDU [12:10:52]CAPDU: 80 0D 03 02 [12:10:52]Write to MH i2c: E2 08 00 10 30 80 0D 03 02 00 00 00 00 BB [12:10:52]Write i2c OK [12:10:52]MH_I2C_Read... [12:10:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:52]Read from MH i2c: E2 [12:10:52]MH_I2C_Read... [12:10:52]Read from MH i2c: E2 0B 00 [12:10:52]MH_I2C_Read... [12:10:52]Read from MH i2c: E2 0B 00 10 30 00 7D 48 B1 D2 72 F2 3B 43 90 00 E6 [12:10:52]RAPDU: 7D 48 B1 D2 72 F2 3B 43 90 00 [12:10:52]wFMCommunicate OK [12:10:52]SAM_PROTO_SignData done [12:10:52]FM_MakeSignedData done [12:10:52]CreateOFDProtocolMessage [12:10:52]wFMCommunicate request_size=4 [12:10:52]MH_SAM_APDU [12:10:52]CAPDU: 80 11 00 00 [12:10:52]Write to MH i2c: E2 08 00 11 30 80 11 00 00 00 00 00 00 BB [12:10:52]Write i2c OK [12:10:52]MH_I2C_Read... [12:10:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:52]Read from MH i2c: E2 [12:10:52]MH_I2C_Read... [12:10:52]Read from MH i2c: E2 17 00 [12:10:52]MH_I2C_Read... [12:10:52]Read from MH i2c: E2 17 00 11 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 0F [12:10:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [12:10:52]wFMCommunicate OK [12:10:52]CreateOFDProtocolMessage done [12:10:52]OFDSenderStorePacket 68415 [12:10:52]StoreOFDPacket docnum=68415 [12:10:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 19 AB 07 01 04 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 26 00 00 00 F4 03 04 00 D3 E7 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 3F 0B 01 00 35 04 06 00 CE 4D 3E 14 B8 FB 7D 48 B1 D2 72 F2 3B 43 [12:10:52]CheckFolder [12:10:52]dirname=/storage/ofd_packets [12:10:52]CheckFolder done [12:10:52]ProducePacketName [12:10:52]name=ofd_packets/00068415 [12:10:52]NVStorageSaveData ofd_packets/00068415 [12:10:52]File name is /storage/ofd_packets/00068415 [12:10:52]Write 301 bytes [12:10:52]NVStorageSaveData done [12:10:52]OFDSenderStorePacket done [12:10:52]KKMCreateOFDPacket done [12:10:52]NVStorageSaveData kkm_last_timestamp [12:10:52]File name is /storage/kkm_last_timestamp [12:10:52]Write 4 bytes [12:10:52]NVStorageSaveData done [12:10:52]ExternCall_PrintAddStr [12:10:52]wPrintStart [12:10:52]Write to MH i2c: 01 00 00 12 30 42 [12:10:52]Write i2c OK [12:10:52]MH_I2C_Read... [12:10:52]Read from MH i2c: 01 [12:10:52]MH_I2C_Read... [12:10:52]Read from MH i2c: 01 07 00 [12:10:52]MH_I2C_Read... [12:10:52]Read from MH i2c: 01 07 00 12 30 00 04 00 00 00 FF 0F 5B [12:10:52]RasterBufferAndPrint [12:10:52]line Счет N : (1)210412 [12:10:52]line ИНН: 02508201610067 [12:10:52]line Контрольно-Кассовый Чек [12:10:52]line ПРОДАЖА [12:10:52]line ТРК (МРК, ГНК) : 11 [12:10:52]line Товар: 2710124130 [12:10:52]line Аи-92-К-2 [12:10:52]line 2.990 * 66.90 [12:10:52]line = 200.03 [12:10:52]line НДС 12% НСП 1% [12:10:52]line > о реализуемом товаре [12:10:52]line ОКРУГЛЕНИЕ: -0.03 [12:10:52]line ИТОГО: 200.00 [12:10:52]line Внесено: 200.00 [12:10:52]line СДАЧА: 0.00 [12:10:52]line НСП 1% : 1.77 [12:10:52]line НДС 12% : 21.24 [12:10:52]line Наличными: 200.00 [12:10:52]line Безнал.: 0.00 [12:10:52]line Место: АЗС № 147 "Партнер Нефть" [12:10:52]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [12:10:52]line СНО: Общий режим [12:10:52]line Чек 38 23.10.2024 12:10 [12:10:52]line Смена: 507 ФФД: 1.0 [12:10:52]line ЗНМ: 0300000094 [12:10:52]line РНМ: 0000000000091756 [12:10:52]line Версия ККМ: 001 [12:10:52]line ФМ: 0000000000871809 [12:10:52]line ФД: 68415 [12:10:52]line ФПД: 226831149349115 [12:10:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121059&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68415&fm=226831149349115&tin=02508201610067®Number=0000000000091756&sum=20000 [12:10:52]written 0, free lines is 4095 [12:10:52]OFD Sender: Processing packet 68415 [packets to send 8, broken 7] [12:10:52]ProducePacketName [12:10:52]name=ofd_packets/00068415 [12:10:52]OFD Sender: To server: pG, [12:10:52]CommunicateWithHost lk.salyk.kg:30040 [12:10:52]ConnectInit lk.salyk.kg [12:10:52]Connected sock=10 [12:10:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 19 AB 07 01 04 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 26 00 00 00 F4 03 04 00 D3 E7 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 3F 0B 01 00 35 04 06 00 CE 4D 3E 14 B8 FB 7D 48 B1 D2 72 F2 3B 43 [12:10:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 2F 8C 47 00 E1 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 3F 0B 01 00 F4 03 04 00 C8 8D 18 67 B6 04 01 00 00 25 45 2A 67 5E 69 07 4D [12:10:52]CommunicateWithHost err = 0 [12:10:52]CheckOFDResponse [12:10:52]1017 (14) - 77093643461234 [12:10:52]1041 (16) - 0000000000871809 [12:10:52]1040 (4) - 68415 [12:10:52]1012 (4) - 23.10.2024 05:46 [12:10:52]1206 (1) - 0 [12:10:52]OFD Sender: Remove packet 68415 [12:10:52]ProducePacketName [12:10:52]name=ofd_packets/00068415 [12:10:52]NVStorageDeleteData [12:10:52]Write to MH i2c: 01 00 00 3C 30 6C [12:10:52]Write i2c OK [12:10:52]MH_I2C_Read... [12:10:52]Read from MH i2c: 01 [12:10:52]MH_I2C_Read... [12:10:52]Read from MH i2c: 01 07 00 [12:10:52]MH_I2C_Read... [12:10:52]Read from MH i2c: 01 07 00 3C 30 00 04 00 00 00 A5 0C 28 [12:10:52]RasterBufferAndPrint [12:10:52]line [12:10:52]line [12:10:52]line [12:10:52]line [12:10:52]line [12:10:52]written 0, free lines is 3241 [12:10:52]MH_Cut [12:10:52]Write to MH i2c: D1 01 00 43 30 01 45 [12:10:52]Write i2c OK [12:10:52]MH_I2C_Read... [12:10:52]Read from MH i2c: D1 [12:10:52]MH_I2C_Read... [12:10:52]Read from MH i2c: D1 01 00 [12:10:52]MH_I2C_Read... [12:10:52]Read from MH i2c: D1 01 00 43 30 00 44 [12:10:52]Write to MH i2c: 01 00 00 44 30 74 [12:10:52]Write i2c OK [12:10:52]MH_I2C_Read... [12:10:53]OFD Sender: No OFD packet to send [12:10:53]*** Cut start [12:10:53]*** Partial cut [12:10:53]*** CUTSNS_PIN = 1 [12:10:53]*** CUTSNS_PIN = 0 [12:10:54]*** Brake cut motor [12:10:54]Read from MH i2c: 01 [12:10:54]MH_I2C_Read... [12:10:54]*** Stop cut motor [12:10:54]*** Cut end [12:10:54]Read from MH i2c: 01 07 00 [12:10:54]MH_I2C_Read... [12:10:54]Read from MH i2c: 01 07 00 44 30 00 04 00 00 00 FF 0F 8D [12:10:54]process_action close_receipt done [12:10:54]requested_data is exist [12:10:54]produce_requested_data [12:10:54]requested_item fm.sn is exist - process it [12:10:54]wFMCommunicate request_size=4 [12:10:54]MH_SAM_APDU [12:10:54]CAPDU: 80 11 00 00 [12:10:54]Write to MH i2c: E2 08 00 45 30 80 11 00 00 00 00 00 00 EF [12:10:54]Write i2c OK [12:10:54]MH_I2C_Read... [12:10:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:54]Read from MH i2c: E2 [12:10:54]MH_I2C_Read... [12:10:54]Read from MH i2c: E2 17 00 [12:10:54]MH_I2C_Read... [12:10:54]Read from MH i2c: E2 17 00 45 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 43 [12:10:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [12:10:54]wFMCommunicate OK [12:10:54]requested_item fd.num is exist - process it [12:10:54]SAM_PROTO_GetFieldsCounters [12:10:54]wFMCommunicate request_size=4 [12:10:54]MH_SAM_APDU [12:10:54]CAPDU: 80 13 00 00 [12:10:54]Write to MH i2c: E2 08 00 46 30 80 13 00 00 00 00 00 00 F2 [12:10:54]Write i2c OK [12:10:54]MH_I2C_Read... [12:10:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:54]Read from MH i2c: E2 [12:10:54]MH_I2C_Read... [12:10:54]Read from MH i2c: E2 62 00 [12:10:54]MH_I2C_Read... [12:10:54]Read from MH i2c: E2 62 00 46 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 3F 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [12:10:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 3F 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:10:54]wFMCommunicate OK [12:10:54]SAM_PROTO_GetFieldsCounters done [12:10:54]requested_item shift.num is exist - process it [12:10:54]requested_item shift.opened is exist - process it [12:10:54]req_shift_opened [12:10:54]FM_GetShiftState [12:10:54]SAM_PROTO_GetShiftState [12:10:54]wFMCommunicate request_size=4 [12:10:54]MH_SAM_APDU [12:10:54]CAPDU: 80 13 01 00 [12:10:54]Write to MH i2c: E2 08 00 47 30 80 13 01 00 00 00 00 00 F4 [12:10:54]Write i2c OK [12:10:54]MH_I2C_Read... [12:10:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:54]Read from MH i2c: E2 [12:10:54]MH_I2C_Read... [12:10:54]Read from MH i2c: E2 0E 00 [12:10:54]MH_I2C_Read... [12:10:54]Read from MH i2c: E2 0E 00 47 30 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 63 [12:10:54]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [12:10:54]wFMCommunicate OK [12:10:54]SAM_PROTO_GetShiftState done [12:10:54]FM_GetShiftState done [12:10:54]req_shift_opened done [12:10:54]requested_item shift.open_date is exist - process it [12:10:54]req_shift_open_date [12:10:54]req_shift_open_date done [12:10:54]produce_requested_data done [12:10:54]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68415,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [12:10:54]process_action_free close_receipt [12:10:54]json_value_free [12:10:54]json_value_free done [12:10:54]process_json_proto returns [12:10:54]Send response to host [12:10:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68415,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [12:10:54]free response buf [12:10:54]execute_script done [12:10:54]execute_script returns [12:10:54]free content buf [12:10:54]Sock 7.Close socket [12:10:54]Sock 7.Thread stoped [12:10:58]OFD Sender: No OFD packet to send [12:11:03]OFD Sender: No OFD packet to send [12:11:08]OFD Sender: No OFD packet to send [12:11:13]OFD Sender: No OFD packet to send [12:11:18]OFD Sender: No OFD packet to send [12:11:23]OFD Sender: No OFD packet to send [12:11:28]OFD Sender: No OFD packet to send [12:11:33]OFD Sender: No OFD packet to send [12:11:38]OFD Sender: No OFD packet to send [12:11:43]OFD Sender: No OFD packet to send [12:11:48]OFD Sender: No OFD packet to send [12:11:53]OFD Sender: No OFD packet to send [12:11:58]OFD Sender: No OFD packet to send [12:12:03]OFD Sender: No OFD packet to send [12:12:08]OFD Sender: No OFD packet to send [12:12:13]OFD Sender: No OFD packet to send [12:12:18]OFD Sender: No OFD packet to send [12:12:23]OFD Sender: No OFD packet to send [12:12:28]OFD Sender: No OFD packet to send [12:12:33]OFD Sender: No OFD packet to send [12:12:38]OFD Sender: No OFD packet to send [12:12:43]OFD Sender: No OFD packet to send [12:12:48]OFD Sender: No OFD packet to send [12:12:53]OFD Sender: No OFD packet to send [12:12:58]OFD Sender: No OFD packet to send [12:13:03]OFD Sender: No OFD packet to send [12:13:08]OFD Sender: No OFD packet to send [12:13:13]OFD Sender: No OFD packet to send [12:13:18]OFD Sender: No OFD packet to send [12:13:23]OFD Sender: No OFD packet to send [12:13:28]OFD Sender: No OFD packet to send [12:13:33]OFD Sender: No OFD packet to send [12:13:38]OFD Sender: No OFD packet to send [12:13:43]OFD Sender: No OFD packet to send [12:13:48]OFD Sender: No OFD packet to send [12:13:53]OFD Sender: No OFD packet to send [12:13:58]OFD Sender: No OFD packet to send [12:14:03]OFD Sender: No OFD packet to send [12:14:08]OFD Sender: No OFD packet to send [12:14:13]OFD Sender: No OFD packet to send [12:14:18]OFD Sender: No OFD packet to send [12:14:23]OFD Sender: No OFD packet to send [12:14:28]OFD Sender: No OFD packet to send [12:14:33]OFD Sender: No OFD packet to send [12:14:38]OFD Sender: No OFD packet to send [12:14:43]OFD Sender: No OFD packet to send [12:14:48]OFD Sender: No OFD packet to send [12:14:53]OFD Sender: No OFD packet to send [12:14:58]OFD Sender: No OFD packet to send [12:15:03]OFD Sender: No OFD packet to send [12:15:08]OFD Sender: No OFD packet to send [12:15:13]OFD Sender: No OFD packet to send [12:15:18]OFD Sender: No OFD packet to send [12:15:23]OFD Sender: No OFD packet to send [12:15:28]OFD Sender: No OFD packet to send [12:15:33]OFD Sender: No OFD packet to send [12:15:38]OFD Sender: No OFD packet to send [12:15:43]OFD Sender: No OFD packet to send [12:15:48]OFD Sender: No OFD packet to send [12:15:53]OFD Sender: No OFD packet to send [12:15:58]OFD Sender: No OFD packet to send [12:16:03]OFD Sender: No OFD packet to send [12:16:08]OFD Sender: No OFD packet to send [12:16:13]OFD Sender: No OFD packet to send [12:16:18]OFD Sender: No OFD packet to send [12:16:23]OFD Sender: No OFD packet to send [12:16:28]OFD Sender: No OFD packet to send [12:16:33]OFD Sender: No OFD packet to send [12:16:38]OFD Sender: No OFD packet to send [12:16:43]OFD Sender: No OFD packet to send [12:16:48]OFD Sender: No OFD packet to send [12:16:53]OFD Sender: No OFD packet to send [12:16:58]OFD Sender: No OFD packet to send [12:17:03]OFD Sender: No OFD packet to send [12:17:08]OFD Sender: No OFD packet to send [12:17:13]OFD Sender: No OFD packet to send [12:17:18]OFD Sender: No OFD packet to send [12:17:23]OFD Sender: No OFD packet to send [12:17:28]OFD Sender: No OFD packet to send [12:17:33]OFD Sender: No OFD packet to send [12:17:38]OFD Sender: No OFD packet to send [12:17:43]OFD Sender: No OFD packet to send [12:17:48]OFD Sender: No OFD packet to send [12:17:50]accept exits with 9 [12:17:50]New connection [12:17:50]New thread 3067133284 created [12:17:50]Thread 3067276644 joined [12:17:50]Waiting for new connection... [12:17:50] Sock 9.Parse request [12:17:50]Sock 9.Check first char [12:17:50]Sock 9.First char is OK [12:17:50]request: POST /json_proto HTTP/1.0 [12:17:50]Method: POST [12:17:50]URL: /json_proto [12:17:50]Method is POST - this is cgi request [12:17:50]url: /json_proto [12:17:50]query_string will be loaded in cgi processing [12:17:50]execute_cgi json_proto POST (null) [12:17:50]execute_cgi path=json_proto method=POST [12:17:50]POST find Content-Length [12:17:50]Host: 172.17.52.3:8080 [12:17:50]Content-Length: 677 [12:17:50]Content-Type: application/json [12:17:50] [12:17:50]POST finish read [12:17:50]Found Content-Length = 677 [12:17:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:17:50]execute_script... [12:17: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)210413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:17:50]POST & json_proto [12:17:50]process_json_proto [12:17:50]json parsed OK: [12:17:50]protocol is kg_v1.0 [12:17:50]action value=close_receipt [12:17:50]process_action close_receipt [12:17:50]cmd_close_receipt [12:17:50]MH_GetDate [12:17:50]Write to MH i2c: F0 00 00 48 30 67 [12:17:50]Write i2c OK [12:17:50]MH_I2C_Read... [12:17:50]Read from MH i2c: F0 [12:17:50]MH_I2C_Read... [12:17:50]Read from MH i2c: F0 09 00 [12:17:50]MH_I2C_Read... [12:17:50]Read from MH i2c: F0 09 00 48 30 00 77 E9 18 67 D7 68 A5 64 97 [12:17:50]GetLastDocTimeStamp 1729685459 [12:17:50]current date 1729685879 [12:17:50]FM_GetShiftState [12:17:50]SAM_PROTO_GetShiftState [12:17:50]wFMCommunicate request_size=4 [12:17:50]MH_SAM_APDU [12:17:50]CAPDU: 80 13 01 00 [12:17:50]Write to MH i2c: E2 08 00 49 30 80 13 01 00 00 00 00 00 F6 [12:17:50]Write i2c OK [12:17:50]MH_I2C_Read... [12:17:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:50]Read from MH i2c: E2 [12:17:50]MH_I2C_Read... [12:17:50]Read from MH i2c: E2 0E 00 [12:17:50]MH_I2C_Read... [12:17:50]Read from MH i2c: E2 0E 00 49 30 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 65 [12:17:50]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [12:17:50]wFMCommunicate OK [12:17:50]SAM_PROTO_GetShiftState done [12:17:50]FM_GetShiftState done [12:17:50]opened in 1729641385 [12:17:50]opened+sec_in_day 1729727785 [12:17:50]quantity*price = 30038 [12:17:50]sum+1 = 30039 [12:17:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 39 23.10.2024 12:17 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68416 ФПД: 88569677025973 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121759&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68416&fm=88569677025973&tin=02508201610067®Number=0000000000091756&sum=30000 [12:17:51]StoreToDocumentArchive [12:17:51]shift 507 fd 68416 [12:17:51]save to /storage/0507/doc_00068416 [12:17:51]save last doc name /storage/0507/doc_00068416 to /storage/kkm_last_doc_name [12:17:51]save OK [12:17:51]Clear old archive folders... [12:17:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:17:51]tlvbuf is 01FC1060 [12:17:51]SAM_PROTO_ClearQueue [12:17:51]wFMCommunicate request_size=4 [12:17:51]MH_SAM_APDU [12:17:51]CAPDU: 80 09 00 00 [12:17:51]Write to MH i2c: E2 08 00 56 30 80 09 00 00 00 00 00 00 F8 [12:17:51]Write i2c OK [12:17:51]MH_I2C_Read... [12:17:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:51]Read from MH i2c: E2 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: E2 03 00 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: E2 03 00 56 30 00 90 00 FA [12:17:51]RAPDU: 90 00 [12:17:51]wFMCommunicate OK [12:17:51]SAM_PROTO_ClearQueue done [12:17:51]KKMCreateOFDPacket [12:17:51]OFDProtocolAddRootSTLVToBuf [12:17:51]FM_MakeSignedData [12:17:51]FM_MakeSignedData [12:17:51]SAM_PROTO_SignData [12:17:51]wFMCommunicate request_size=4 [12:17:51]MH_SAM_APDU [12:17:51]CAPDU: 80 0D 01 02 [12:17:51]Write to MH i2c: E2 08 00 57 30 80 0D 01 02 00 00 00 00 00 [12:17:51]Write i2c OK [12:17:51]MH_I2C_Read... [12:17:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:51]Read from MH i2c: E2 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: E2 03 00 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: E2 03 00 57 30 00 90 00 FB [12:17:51]RAPDU: 90 00 [12:17:51]wFMCommunicate OK [12:17:51]wFMCommunicate request_size=255 [12:17:51]MH_SAM_APDU [12:17: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 32 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 27 00 00 00 F4 03 04 00 77 E9 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 40 0B 01 00 35 04 06 00 50 [12:17:51]Write to MH i2c: E2 02 01 58 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 27 00 00 00 F4 03 04 00 77 E9 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 40 0B 01 00 35 04 06 00 50 00 00 22 [12:17:51]Write i2c OK [12:17:51]MH_I2C_Read... [12:17:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:52]Read from MH i2c: E2 [12:17:52]MH_I2C_Read... [12:17:52]Read from MH i2c: E2 03 00 [12:17:52]MH_I2C_Read... [12:17:52]Read from MH i2c: E2 03 00 58 30 00 90 00 FC [12:17:52]RAPDU: 90 00 [12:17:52]wFMCommunicate OK [12:17:52]wFMCommunicate request_size=10 [12:17:52]MH_SAM_APDU [12:17:52]CAPDU: 80 0D 02 02 05 8D BC 23 12 B5 [12:17:52]Write to MH i2c: E2 0D 00 59 30 80 0D 02 02 05 00 8D BC 23 12 B5 00 00 40 [12:17:52]Write i2c OK [12:17:52]MH_I2C_Read... [12:17:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:52]Read from MH i2c: E2 [12:17:52]MH_I2C_Read... [12:17:52]Read from MH i2c: E2 03 00 [12:17:52]MH_I2C_Read... [12:17:52]Read from MH i2c: E2 03 00 59 30 00 90 00 FD [12:17:52]RAPDU: 90 00 [12:17:52]wFMCommunicate OK [12:17:52]wFMCommunicate request_size=4 [12:17:52]MH_SAM_APDU [12:17:52]CAPDU: 80 0D 03 02 [12:17:52]Write to MH i2c: E2 08 00 5A 30 80 0D 03 02 00 00 00 00 05 [12:17:52]Write i2c OK [12:17:52]MH_I2C_Read... [12:17:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:52]Read from MH i2c: E2 [12:17:52]MH_I2C_Read... [12:17:52]Read from MH i2c: E2 0B 00 [12:17:52]MH_I2C_Read... [12:17:52]Read from MH i2c: E2 0B 00 5A 30 00 10 80 C9 0C 45 83 C3 5C 90 00 52 [12:17:52]RAPDU: 10 80 C9 0C 45 83 C3 5C 90 00 [12:17:52]wFMCommunicate OK [12:17:52]SAM_PROTO_SignData done [12:17:52]FM_MakeSignedData done [12:17:52]CreateOFDProtocolMessage [12:17:52]wFMCommunicate request_size=4 [12:17:52]MH_SAM_APDU [12:17:52]CAPDU: 80 11 00 00 [12:17:52]Write to MH i2c: E2 08 00 5B 30 80 11 00 00 00 00 00 00 05 [12:17:52]Write i2c OK [12:17:52]MH_I2C_Read... [12:17:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:52]Read from MH i2c: E2 [12:17:52]MH_I2C_Read... [12:17:52]Read from MH i2c: E2 17 00 [12:17:52]MH_I2C_Read... [12:17:52]Read from MH i2c: E2 17 00 5B 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 59 [12:17:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [12:17:52]wFMCommunicate OK [12:17:52]CreateOFDProtocolMessage done [12:17:52]OFDSenderStorePacket 68416 [12:17:52]StoreOFDPacket docnum=68416 [12:17:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 8B 2D 07 01 92 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 32 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 27 00 00 00 F4 03 04 00 77 E9 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 40 0B 01 00 35 04 06 00 50 8D BC 23 12 B5 10 80 C9 0C 45 83 C3 5C [12:17:52]CheckFolder [12:17:52]dirname=/storage/ofd_packets [12:17:52]CheckFolder done [12:17:52]ProducePacketName [12:17:52]name=ofd_packets/00068416 [12:17:52]NVStorageSaveData ofd_packets/00068416 [12:17:52]File name is /storage/ofd_packets/00068416 [12:17:52]Write 301 bytes [12:17:52]NVStorageSaveData done [12:17:52]OFDSenderStorePacket done [12:17:52]KKMCreateOFDPacket done [12:17:52]NVStorageSaveData kkm_last_timestamp [12:17:52]File name is /storage/kkm_last_timestamp [12:17:52]Write 4 bytes [12:17:52]NVStorageSaveData done [12:17:52]ExternCall_PrintAddStr [12:17:52]wPrintStart [12:17:52]Write to MH i2c: 01 00 00 5C 30 8C [12:17:52]Write i2c OK [12:17:52]MH_I2C_Read... [12:17:52]Read from MH i2c: 01 [12:17:52]MH_I2C_Read... [12:17:52]Read from MH i2c: 01 07 00 [12:17:52]MH_I2C_Read... [12:17:52]Read from MH i2c: 01 07 00 5C 30 00 04 00 00 00 FF 0F A5 [12:17:52]RasterBufferAndPrint [12:17:52]line Счет N : (1)210413 [12:17:52]line ИНН: 02508201610067 [12:17:52]line Контрольно-Кассовый Чек [12:17:52]line ПРОДАЖА [12:17:52]line ТРК (МРК, ГНК) : 11 [12:17:52]line Товар: 2710124130 [12:17:52]line Аи-92-К-2 [12:17:52]line 4.490 * 66.90 [12:17:52]line = 300.38 [12:17:52]line НДС 12% НСП 1% [12:17:52]line > о реализуемом товаре [12:17:52]line ОКРУГЛЕНИЕ: -0.38 [12:17:52]line ИТОГО: 300.00 [12:17:52]line Внесено: 300.00 [12:17:52]line СДАЧА: 0.00 [12:17:52]line НСП 1% : 2.66 [12:17:52]line НДС 12% : 31.90 [12:17:52]line Наличными: 300.00 [12:17:52]line Безнал.: 0.00 [12:17:52]line Место: АЗС № 147 "Партнер Нефть" [12:17:52]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [12:17:52]line СНО: Общий режим [12:17:52]line Чек 39 23.10.2024 12:17 [12:17:52]line Смена: 507 ФФД: 1.0 [12:17:52]line ЗНМ: 0300000094 [12:17:52]line РНМ: 0000000000091756 [12:17:52]line Версия ККМ: 001 [12:17:52]line ФМ: 0000000000871809 [12:17:52]line ФД: 68416 [12:17:52]line ФПД: 88569677025973 [12:17:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121759&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68416&fm=88569677025973&tin=02508201610067®Number=0000000000091756&sum=30000 [12:17:52]written 0, free lines is 4095 [12:17:52]OFD Sender: Processing packet 68416 [packets to send 8, broken 7] [12:17:52]ProducePacketName [12:17:52]name=ofd_packets/00068416 [12:17:52]OFD Sender: To server: pG, [12:17:52]CommunicateWithHost lk.salyk.kg:30040 [12:17:52]ConnectInit lk.salyk.kg [12:17:52]Write to MH i2c: 01 00 00 86 30 B6 [12:17:52]Write i2c OK [12:17:52]MH_I2C_Read... [12:17:52]Read from MH i2c: 01 [12:17:52]MH_I2C_Read... [12:17:52]Read from MH i2c: 01 07 00 [12:17:52]MH_I2C_Read... [12:17:52]Read from MH i2c: 01 07 00 86 30 00 04 00 00 00 98 0C 65 [12:17:52]RasterBufferAndPrint [12:17:52]line [12:17:52]line [12:17:52]line [12:17:52]line [12:17:52]line [12:17:52]written 0, free lines is 3227 [12:17:52]MH_Cut [12:17:52]Write to MH i2c: D1 01 00 8D 30 01 8F [12:17:52]Write i2c OK [12:17:52]MH_I2C_Read... [12:17:52]Read from MH i2c: D1 [12:17:52]MH_I2C_Read... [12:17:52]Read from MH i2c: D1 01 00 [12:17:52]MH_I2C_Read... [12:17:52]Read from MH i2c: D1 01 00 8D 30 00 8E [12:17:52]Write to MH i2c: 01 00 00 8E 30 BE [12:17:52]Write i2c OK [12:17:52]MH_I2C_Read... [12:17:52]Connected sock=10 [12:17:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 8B 2D 07 01 92 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 32 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 27 00 00 00 F4 03 04 00 77 E9 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 40 0B 01 00 35 04 06 00 50 8D BC 23 12 B5 10 80 C9 0C 45 83 C3 5C [12:17:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 19 F7 47 00 AB 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 31 38 30 39 10 04 04 00 40 0B 01 00 F4 03 04 00 6C 8F 18 67 B6 04 01 00 00 64 AA 91 D3 27 B9 D4 42 [12:17:53]CommunicateWithHost err = 0 [12:17:53]CheckOFDResponse [12:17:53]1017 (14) - 77093643461234 [12:17:53]1041 (16) - 0000000000871809 [12:17:53]1040 (4) - 68416 [12:17:53]1012 (4) - 23.10.2024 05:53 [12:17:53]1206 (1) - 0 [12:17:53]OFD Sender: Remove packet 68416 [12:17:53]ProducePacketName [12:17:53]name=ofd_packets/00068416 [12:17:53]NVStorageDeleteData [12:17:53]OFD Sender: No OFD packet to send [12:17:53]*** Cut start [12:17:53]*** Partial cut [12:17:53]*** CUTSNS_PIN = 1 [12:17:53]*** CUTSNS_PIN = 0 [12:17:53]*** Brake cut motor [12:17:54]Read from MH i2c: 01 [12:17:54]MH_I2C_Read... [12:17:54]*** Stop cut motor [12:17:54]*** Cut end [12:17:54]Read from MH i2c: 01 07 00 [12:17:54]MH_I2C_Read... [12:17:54]Read from MH i2c: 01 07 00 8E 30 00 04 00 00 00 FF 0F D7 [12:17:54]process_action close_receipt done [12:17:54]requested_data is exist [12:17:54]produce_requested_data [12:17:54]requested_item fm.sn is exist - process it [12:17:54]wFMCommunicate request_size=4 [12:17:54]MH_SAM_APDU [12:17:54]CAPDU: 80 11 00 00 [12:17:54]Write to MH i2c: E2 08 00 8F 30 80 11 00 00 00 00 00 00 39 [12:17:54]Write i2c OK [12:17:54]MH_I2C_Read... [12:17:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:54]Read from MH i2c: E2 [12:17:54]MH_I2C_Read... [12:17:54]Read from MH i2c: E2 17 00 [12:17:54]MH_I2C_Read... [12:17:54]Read from MH i2c: E2 17 00 8F 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 8D [12:17:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [12:17:54]wFMCommunicate OK [12:17:54]requested_item fd.num is exist - process it [12:17:54]SAM_PROTO_GetFieldsCounters [12:17:54]wFMCommunicate request_size=4 [12:17:54]MH_SAM_APDU [12:17:54]CAPDU: 80 13 00 00 [12:17:54]Write to MH i2c: E2 08 00 90 30 80 13 00 00 00 00 00 00 3C [12:17:54]Write i2c OK [12:17:54]MH_I2C_Read... [12:17:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:54]Read from MH i2c: E2 [12:17:54]MH_I2C_Read... [12:17:54]Read from MH i2c: E2 62 00 [12:17:54]MH_I2C_Read... [12:17:54]Read from MH i2c: E2 62 00 90 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 40 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [12:17:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 40 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:17:54]wFMCommunicate OK [12:17:54]SAM_PROTO_GetFieldsCounters done [12:17:54]requested_item shift.num is exist - process it [12:17:54]requested_item shift.opened is exist - process it [12:17:54]req_shift_opened [12:17:54]FM_GetShiftState [12:17:54]SAM_PROTO_GetShiftState [12:17:54]wFMCommunicate request_size=4 [12:17:54]MH_SAM_APDU [12:17:54]CAPDU: 80 13 01 00 [12:17:54]Write to MH i2c: E2 08 00 91 30 80 13 01 00 00 00 00 00 3E [12:17:54]Write i2c OK [12:17:54]MH_I2C_Read... [12:17:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:54]Read from MH i2c: E2 [12:17:54]MH_I2C_Read... [12:17:54]Read from MH i2c: E2 0E 00 [12:17:54]MH_I2C_Read... [12:17:54]Read from MH i2c: E2 0E 00 91 30 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 AD [12:17:54]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [12:17:54]wFMCommunicate OK [12:17:54]SAM_PROTO_GetShiftState done [12:17:54]FM_GetShiftState done [12:17:54]req_shift_opened done [12:17:54]requested_item shift.open_date is exist - process it [12:17:54]req_shift_open_date [12:17:54]req_shift_open_date done [12:17:54]produce_requested_data done [12:17:54]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68416,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [12:17:54]process_action_free close_receipt [12:17:54]json_value_free [12:17:54]json_value_free done [12:17:54]process_json_proto returns [12:17:54]Send response to host [12:17:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68416,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [12:17:54]free response buf [12:17:54]execute_script done [12:17:54]execute_script returns [12:17:54]free content buf [12:17:54]Sock 9.Close socket [12:17:54]Sock 9.Thread stoped [12:17:58]OFD Sender: No OFD packet to send [12:18:03]OFD Sender: No OFD packet to send [12:18:08]OFD Sender: No OFD packet to send [12:18:13]OFD Sender: No OFD packet to send [12:18:18]OFD Sender: No OFD packet to send [12:18:23]OFD Sender: No OFD packet to send [12:18:28]OFD Sender: No OFD packet to send [12:18:33]OFD Sender: No OFD packet to send [12:18:38]OFD Sender: No OFD packet to send [12:18:43]OFD Sender: No OFD packet to send [12:18:48]OFD Sender: No OFD packet to send [12:18:53]OFD Sender: No OFD packet to send [12:18:58]OFD Sender: No OFD packet to send [12:19:03]OFD Sender: No OFD packet to send [12:19:08]OFD Sender: No OFD packet to send [12:19:13]OFD Sender: No OFD packet to send [12:19:18]OFD Sender: No OFD packet to send [12:19:23]OFD Sender: No OFD packet to send [12:19:28]OFD Sender: No OFD packet to send [12:19:33]OFD Sender: No OFD packet to send [12:19:38]OFD Sender: No OFD packet to send [12:19:43]OFD Sender: No OFD packet to send [12:19:48]OFD Sender: No OFD packet to send [12:19:53]OFD Sender: No OFD packet to send [12:19:58]OFD Sender: No OFD packet to send [12:20:03]OFD Sender: No OFD packet to send [12:20:08]OFD Sender: No OFD packet to send [12:20:13]OFD Sender: No OFD packet to send [12:20:18]OFD Sender: No OFD packet to send [12:20:23]OFD Sender: No OFD packet to send [12:20:28]OFD Sender: No OFD packet to send [12:20:33]OFD Sender: No OFD packet to send [12:20:38]OFD Sender: No OFD packet to send [12:20:43]OFD Sender: No OFD packet to send [12:20:48]OFD Sender: No OFD packet to send [12:20:53]OFD Sender: No OFD packet to send [12:20:58]OFD Sender: No OFD packet to send [12:21:03]OFD Sender: No OFD packet to send [12:21:08]OFD Sender: No OFD packet to send [12:21:13]OFD Sender: No OFD packet to send [12:21:18]OFD Sender: No OFD packet to send [12:21:23]OFD Sender: No OFD packet to send [12:21:28]OFD Sender: No OFD packet to send [12:21:33]OFD Sender: No OFD packet to send [12:21:38]OFD Sender: No OFD packet to send [12:21:43]OFD Sender: No OFD packet to send [12:21:48]OFD Sender: No OFD packet to send [12:21:53]OFD Sender: No OFD packet to send [12:21:57]accept exits with 7 [12:21:57]New connection [12:21:57]New thread 3067276644 created [12:21:57]Thread 3067133284 joined [12:21:57]Waiting for new connection... [12:21:57] Sock 7.Parse request [12:21:57]Sock 7.Check first char [12:21:57]Sock 7.First char is OK [12:21:57]request: POST /json_proto HTTP/1.0 [12:21:57]Method: POST [12:21:57]URL: /json_proto [12:21:57]Method is POST - this is cgi request [12:21:57]url: /json_proto [12:21:57]query_string will be loaded in cgi processing [12:21:57]execute_cgi json_proto POST (null) [12:21:57]execute_cgi path=json_proto method=POST [12:21:57]POST find Content-Length [12:21:57]Host: 172.17.52.3:8080 [12:21:57]Content-Length: 677 [12:21:57]Content-Type: application/json [12:21:57] [12:21:57]POST finish read [12:21:57]Found Content-Length = 677 [12:21:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.300, "sum" : 555.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 555.00, "total" : 555.00, "payments": [ { "type": 0, "sum" : 555.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:57]execute_script... [12:21: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)210414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.300, "sum" : 555.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 555.00, "total" : 555.00, "payments": [ { "type": 0, "sum" : 555.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:57]POST & json_proto [12:21:57]process_json_proto [12:21:57]json parsed OK: [12:21:57]protocol is kg_v1.0 [12:21:57]action value=close_receipt [12:21:57]process_action close_receipt [12:21:57]cmd_close_receipt [12:21:57]MH_GetDate [12:21:57]Write to MH i2c: F0 00 00 92 30 B1 [12:21:57]Write i2c OK [12:21:57]MH_I2C_Read... [12:21:57]Read from MH i2c: F0 [12:21:57]MH_I2C_Read... [12:21:57]Read from MH i2c: F0 09 00 [12:21:57]MH_I2C_Read... [12:21:57]Read from MH i2c: F0 09 00 92 30 00 6D EA 18 67 D7 68 A5 64 D8 [12:21:57]GetLastDocTimeStamp 1729685879 [12:21:57]current date 1729686125 [12:21:57]FM_GetShiftState [12:21:57]SAM_PROTO_GetShiftState [12:21:57]wFMCommunicate request_size=4 [12:21:57]MH_SAM_APDU [12:21:57]CAPDU: 80 13 01 00 [12:21:57]Write to MH i2c: E2 08 00 93 30 80 13 01 00 00 00 00 00 40 [12:21:57]Write i2c OK [12:21:57]MH_I2C_Read... [12:21:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:57]Read from MH i2c: E2 [12:21:57]MH_I2C_Read... [12:21:57]Read from MH i2c: E2 0E 00 [12:21:57]MH_I2C_Read... [12:21:57]Read from MH i2c: E2 0E 00 93 30 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 AF [12:21:57]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [12:21:57]wFMCommunicate OK [12:21:57]SAM_PROTO_GetShiftState done [12:21:57]FM_GetShiftState done [12:21:57]opened in 1729641385 [12:21:57]opened+sec_in_day 1729727785 [12:21:57]quantity*price = 55527 [12:21:57]sum+1 = 55528 [12:21:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 555.00 Внесено: 555.00 СДАЧА: 0.00 НСП 1% : 4.91 НДС 12% : 58.97 Наличными: 555.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 40 23.10.2024 12:22 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68417 ФПД: 132677440601418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T122205&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68417&fm=132677440601418&tin=02508201610067®Number=0000000000091756&sum=55500 [12:21:58]StoreToDocumentArchive [12:21:58]shift 507 fd 68417 [12:21:58]save to /storage/0507/doc_00068417 [12:21:58]save last doc name /storage/0507/doc_00068417 to /storage/kkm_last_doc_name [12:21:58]save OK [12:21:58]Clear old archive folders... [12:21:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:21:58]tlvbuf is 020B3EE0 [12:21:58]SAM_PROTO_ClearQueue [12:21:58]wFMCommunicate request_size=4 [12:21:58]MH_SAM_APDU [12:21:58]CAPDU: 80 09 00 00 [12:21:58]Write to MH i2c: E2 08 00 A0 30 80 09 00 00 00 00 00 00 42 [12:21:58]Write i2c OK [12:21:58]MH_I2C_Read... [12:21:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:21:58]Read from MH i2c: E2 [12:21:58]MH_I2C_Read... [12:21:58]Read from MH i2c: E2 03 00 [12:21:58]MH_I2C_Read... [12:21:58]Read from MH i2c: E2 03 00 A0 30 00 90 00 44 [12:21:58]RAPDU: 90 00 [12:21:58]wFMCommunicate OK [12:21:58]SAM_PROTO_ClearQueue done [12:21:58]KKMCreateOFDPacket [12:21:58]OFDProtocolAddRootSTLVToBuf [12:21:58]FM_MakeSignedData [12:21:58]FM_MakeSignedData [12:21:58]SAM_PROTO_SignData [12:21:58]wFMCommunicate request_size=4 [12:21:58]MH_SAM_APDU [12:21:58]CAPDU: 80 0D 01 02 [12:21:58]Write to MH i2c: E2 08 00 A1 30 80 0D 01 02 00 00 00 00 4A [12:21:58]Write i2c OK [12:21:58]MH_I2C_Read... [12:21:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:21:58]Read from MH i2c: E2 [12:21:58]MH_I2C_Read... [12:21:58]Read from MH i2c: E2 03 00 [12:21:58]MH_I2C_Read... [12:21:58]Read from MH i2c: E2 03 00 A1 30 00 90 00 45 [12:21:58]RAPDU: 90 00 [12:21:58]wFMCommunicate OK [12:21:58]wFMCommunicate request_size=255 [12:21:58]MH_SAM_APDU [12:21: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 32 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E7 D8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC D8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 17 00 00 00 00 07 04 06 00 CC D8 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 6D EA 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 41 0B 01 00 35 04 06 00 78 [12:21:58]Write to MH i2c: E2 02 01 A2 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E7 D8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC D8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 17 00 00 00 00 07 04 06 00 CC D8 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 6D EA 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 41 0B 01 00 35 04 06 00 78 00 00 EF [12:21:58]Write i2c OK [12:21:58]MH_I2C_Read... [12:21:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:58]Read from MH i2c: E2 [12:21:58]MH_I2C_Read... [12:21:58]Read from MH i2c: E2 03 00 [12:21:58]MH_I2C_Read... [12:21:58]Read from MH i2c: E2 03 00 A2 30 00 90 00 46 [12:21:58]RAPDU: 90 00 [12:21:58]wFMCommunicate OK [12:21:58]wFMCommunicate request_size=10 [12:21:58]MH_SAM_APDU [12:21:58]CAPDU: 80 0D 02 02 05 AB 5F B7 7D 4A [12:21:58]Write to MH i2c: E2 0D 00 A3 30 80 0D 02 02 05 00 AB 5F B7 7D 4A 00 00 DF [12:21:58]Write i2c OK [12:21:58]MH_I2C_Read... [12:21:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:58]Read from MH i2c: E2 [12:21:58]MH_I2C_Read... [12:21:58]Read from MH i2c: E2 03 00 [12:21:58]MH_I2C_Read... [12:21:58]Read from MH i2c: E2 03 00 A3 30 00 90 00 47 [12:21:58]RAPDU: 90 00 [12:21:58]wFMCommunicate OK [12:21:58]wFMCommunicate request_size=4 [12:21:58]MH_SAM_APDU [12:21:58]CAPDU: 80 0D 03 02 [12:21:58]Write to MH i2c: E2 08 00 A4 30 80 0D 03 02 00 00 00 00 4F [12:21:58]Write i2c OK [12:21:58]MH_I2C_Read... [12:21:58]OFD Sender: No OFD packet to send [12:21:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:21:58]Read from MH i2c: E2 [12:21:58]MH_I2C_Read... [12:21:58]Read from MH i2c: E2 0B 00 [12:21:58]MH_I2C_Read... [12:21:58]Read from MH i2c: E2 0B 00 A4 30 00 42 CA 3B 8D D5 7F C3 94 90 00 CF [12:21:58]RAPDU: 42 CA 3B 8D D5 7F C3 94 90 00 [12:21:58]wFMCommunicate OK [12:21:58]SAM_PROTO_SignData done [12:21:58]FM_MakeSignedData done [12:21:58]CreateOFDProtocolMessage [12:21:58]wFMCommunicate request_size=4 [12:21:58]MH_SAM_APDU [12:21:58]CAPDU: 80 11 00 00 [12:21:58]Write to MH i2c: E2 08 00 A5 30 80 11 00 00 00 00 00 00 4F [12:21:58]Write i2c OK [12:21:58]MH_I2C_Read... [12:21:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:58]Read from MH i2c: E2 [12:21:58]MH_I2C_Read... [12:21:58]Read from MH i2c: E2 17 00 [12:21:58]MH_I2C_Read... [12:21:58]Read from MH i2c: E2 17 00 A5 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 A3 [12:21:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [12:21:58]wFMCommunicate OK [12:21:58]CreateOFDProtocolMessage done [12:21:58]OFDSenderStorePacket 68417 [12:21:58]StoreOFDPacket docnum=68417 [12:21:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 FE 01 07 01 F2 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E7 D8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC D8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 17 00 00 00 00 07 04 06 00 CC D8 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 6D EA 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 41 0B 01 00 35 04 06 00 78 AB 5F B7 7D 4A 42 CA 3B 8D D5 7F C3 94 [12:21:58]CheckFolder [12:21:58]dirname=/storage/ofd_packets [12:21:58]CheckFolder done [12:21:58]ProducePacketName [12:21:58]name=ofd_packets/00068417 [12:21:58]NVStorageSaveData ofd_packets/00068417 [12:21:58]File name is /storage/ofd_packets/00068417 [12:21:58]Write 301 bytes [12:21:58]NVStorageSaveData done [12:21:58]OFDSenderStorePacket done [12:21:58]KKMCreateOFDPacket done [12:21:58]NVStorageSaveData kkm_last_timestamp [12:21:58]File name is /storage/kkm_last_timestamp [12:21:58]Write 4 bytes [12:21:58]NVStorageSaveData done [12:21:58]ExternCall_PrintAddStr [12:21:58]wPrintStart [12:21:58]Write to MH i2c: 01 00 00 A6 30 D6 [12:21:58]Write i2c OK [12:21:58]MH_I2C_Read... [12:21:58]Read from MH i2c: 01 [12:21:58]MH_I2C_Read... [12:21:58]Read from MH i2c: 01 07 00 [12:21:58]MH_I2C_Read... [12:21:58]Read from MH i2c: 01 07 00 A6 30 00 04 00 00 00 FF 0F EF [12:21:58]RasterBufferAndPrint [12:21:58]line Счет N : (1)210414 [12:21:58]line ИНН: 02508201610067 [12:21:58]line Контрольно-Кассовый Чек [12:21:58]line ПРОДАЖА [12:21:58]line ТРК (МРК, ГНК) : 11 [12:21:58]line Товар: 2710124130 [12:21:58]line Аи-92-К-2 [12:21:58]line 8.300 * 66.90 [12:21:58]line = 555.27 [12:21:58]line НДС 12% НСП 1% [12:21:58]line > о реализуемом товаре [12:21:58]line ОКРУГЛЕНИЕ: -0.27 [12:21:58]line ИТОГО: 555.00 [12:21:58]line Внесено: 555.00 [12:21:58]line СДАЧА: 0.00 [12:21:58]line НСП 1% : 4.91 [12:21:58]line НДС 12% : 58.97 [12:21:58]line Наличными: 555.00 [12:21:58]line Безнал.: 0.00 [12:21:58]line Место: АЗС № 147 "Партнер Нефть" [12:21:58]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [12:21:58]line СНО: Общий режим [12:21:58]line Чек 40 23.10.2024 12:22 [12:21:58]line Смена: 507 ФФД: 1.0 [12:21:58]line ЗНМ: 0300000094 [12:21:58]line РНМ: 0000000000091756 [12:21:58]line Версия ККМ: 001 [12:21:58]line ФМ: 0000000000871809 [12:21:58]line ФД: 68417 [12:21:58]line ФПД: 132677440601418 [12:21:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T122205&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68417&fm=132677440601418&tin=02508201610067®Number=0000000000091756&sum=55500 [12:21:59]written 0, free lines is 4095 [12:21:59]OFD Sender: Processing packet 68417 [packets to send 8, broken 7] [12:21:59]ProducePacketName [12:21:59]name=ofd_packets/00068417 [12:21:59]OFD Sender: To server: pG, [12:21:59]CommunicateWithHost lk.salyk.kg:30040 [12:21:59]ConnectInit lk.salyk.kg [12:21:59]Connected sock=10 [12:21:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 FE 01 07 01 F2 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E7 D8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC D8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 17 00 00 00 00 07 04 06 00 CC D8 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 6D EA 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 41 0B 01 00 35 04 06 00 78 AB 5F B7 7D 4A 42 CA 3B 8D D5 7F C3 94 [12:21:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 82 47 47 00 C5 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 41 0B 01 00 F4 03 04 00 62 90 18 67 B6 04 01 00 00 7E C7 22 38 A8 74 FD 5C [12:21:59]CommunicateWithHost err = 0 [12:21:59]CheckOFDResponse [12:21:59]1017 (14) - 77093643461234 [12:21:59]1041 (16) - 0000000000871809 [12:21:59]1040 (4) - 68417 [12:21:59]1012 (4) - 23.10.2024 05:57 [12:21:59]1206 (1) - 0 [12:21:59]OFD Sender: Remove packet 68417 [12:21:59]ProducePacketName [12:21:59]name=ofd_packets/00068417 [12:21:59]NVStorageDeleteData [12:21:59]Write to MH i2c: 01 00 00 D0 30 00 [12:21:59]Write i2c OK [12:21:59]MH_I2C_Read... [12:21:59]Read from MH i2c: 01 [12:21:59]MH_I2C_Read... [12:21:59]Read from MH i2c: 01 07 00 [12:21:59]MH_I2C_Read... [12:21:59]Read from MH i2c: 01 07 00 D0 30 00 04 00 00 00 9A 0C B1 [12:21:59]RasterBufferAndPrint [12:21:59]line [12:21:59]line [12:21:59]line [12:21:59]line [12:21:59]line [12:21:59]written 0, free lines is 3230 [12:21:59]MH_Cut [12:21:59]Write to MH i2c: D1 01 00 D7 30 01 D9 [12:21:59]Write i2c OK [12:21:59]MH_I2C_Read... [12:21:59]Read from MH i2c: D1 [12:21:59]MH_I2C_Read... [12:21:59]Read from MH i2c: D1 01 00 [12:21:59]MH_I2C_Read... [12:21:59]Read from MH i2c: D1 01 00 D7 30 00 D8 [12:21:59]Write to MH i2c: 01 00 00 D8 30 08 [12:21:59]Write i2c OK [12:21:59]MH_I2C_Read... [12:22:00]OFD Sender: No OFD packet to send [12:22:00]*** Cut start [12:22:00]*** Partial cut [12:22:00]*** CUTSNS_PIN = 1 [12:22:00]*** CUTSNS_PIN = 0 [12:22:00]*** Brake cut motor [12:22:01]Read from MH i2c: 01 [12:22:01]MH_I2C_Read... [12:22:01]*** Stop cut motor [12:22:01]*** Cut end [12:22:01]Read from MH i2c: 01 07 00 [12:22:01]MH_I2C_Read... [12:22:01]Read from MH i2c: 01 07 00 D8 30 00 04 00 00 00 FF 0F 21 [12:22:01]process_action close_receipt done [12:22:01]requested_data is exist [12:22:01]produce_requested_data [12:22:01]requested_item fm.sn is exist - process it [12:22:01]wFMCommunicate request_size=4 [12:22:01]MH_SAM_APDU [12:22:01]CAPDU: 80 11 00 00 [12:22:01]Write to MH i2c: E2 08 00 D9 30 80 11 00 00 00 00 00 00 83 [12:22:01]Write i2c OK [12:22:01]MH_I2C_Read... [12:22:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:01]Read from MH i2c: E2 [12:22:01]MH_I2C_Read... [12:22:01]Read from MH i2c: E2 17 00 [12:22:01]MH_I2C_Read... [12:22:01]Read from MH i2c: E2 17 00 D9 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 D7 [12:22:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [12:22:01]wFMCommunicate OK [12:22:01]requested_item fd.num is exist - process it [12:22:01]SAM_PROTO_GetFieldsCounters [12:22:01]wFMCommunicate request_size=4 [12:22:01]MH_SAM_APDU [12:22:01]CAPDU: 80 13 00 00 [12:22:01]Write to MH i2c: E2 08 00 DA 30 80 13 00 00 00 00 00 00 86 [12:22:01]Write i2c OK [12:22:01]MH_I2C_Read... [12:22:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:22:01]Read from MH i2c: E2 [12:22:01]MH_I2C_Read... [12:22:01]Read from MH i2c: E2 62 00 [12:22:01]MH_I2C_Read... [12:22:01]Read from MH i2c: E2 62 00 DA 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 41 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [12:22:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 41 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:22:01]wFMCommunicate OK [12:22:01]SAM_PROTO_GetFieldsCounters done [12:22:01]requested_item shift.num is exist - process it [12:22:01]requested_item shift.opened is exist - process it [12:22:01]req_shift_opened [12:22:01]FM_GetShiftState [12:22:01]SAM_PROTO_GetShiftState [12:22:01]wFMCommunicate request_size=4 [12:22:01]MH_SAM_APDU [12:22:01]CAPDU: 80 13 01 00 [12:22:01]Write to MH i2c: E2 08 00 DB 30 80 13 01 00 00 00 00 00 88 [12:22:01]Write i2c OK [12:22:01]MH_I2C_Read... [12:22:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:01]Read from MH i2c: E2 [12:22:01]MH_I2C_Read... [12:22:01]Read from MH i2c: E2 0E 00 [12:22:01]MH_I2C_Read... [12:22:01]Read from MH i2c: E2 0E 00 DB 30 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 F7 [12:22:01]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [12:22:01]wFMCommunicate OK [12:22:01]SAM_PROTO_GetShiftState done [12:22:01]FM_GetShiftState done [12:22:01]req_shift_opened done [12:22:01]requested_item shift.open_date is exist - process it [12:22:01]req_shift_open_date [12:22:01]req_shift_open_date done [12:22:01]produce_requested_data done [12:22:01]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68417,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [12:22:01]process_action_free close_receipt [12:22:01]json_value_free [12:22:01]json_value_free done [12:22:01]process_json_proto returns [12:22:01]Send response to host [12:22:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68417,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [12:22:01]free response buf [12:22:01]execute_script done [12:22:01]execute_script returns [12:22:01]free content buf [12:22:01]Sock 7.Close socket [12:22:01]Sock 7.Thread stoped [12:22:05]OFD Sender: No OFD packet to send [12:22:10]OFD Sender: No OFD packet to send [12:22:15]OFD Sender: No OFD packet to send [12:22:20]OFD Sender: No OFD packet to send [12:22:25]OFD Sender: No OFD packet to send [12:22:30]OFD Sender: No OFD packet to send [12:22:35]OFD Sender: No OFD packet to send [12:22:40]OFD Sender: No OFD packet to send [12:22:45]OFD Sender: No OFD packet to send [12:22:50]OFD Sender: No OFD packet to send [12:22:55]OFD Sender: No OFD packet to send [12:23:00]OFD Sender: No OFD packet to send [12:23:05]OFD Sender: No OFD packet to send [12:23:10]OFD Sender: No OFD packet to send [12:23:15]OFD Sender: No OFD packet to send [12:23:20]OFD Sender: No OFD packet to send [12:23:25]OFD Sender: No OFD packet to send [12:23:30]OFD Sender: No OFD packet to send [12:23:35]OFD Sender: No OFD packet to send [12:23:40]OFD Sender: No OFD packet to send [12:23:45]OFD Sender: No OFD packet to send [12:23:50]OFD Sender: No OFD packet to send [12:23:55]OFD Sender: No OFD packet to send [12:24:00]OFD Sender: No OFD packet to send [12:24:05]OFD Sender: No OFD packet to send [12:24:10]OFD Sender: No OFD packet to send [12:24:15]OFD Sender: No OFD packet to send [12:24:20]OFD Sender: No OFD packet to send [12:24:25]OFD Sender: No OFD packet to send [12:24:30]OFD Sender: No OFD packet to send [12:24:35]OFD Sender: No OFD packet to send [12:24:40]OFD Sender: No OFD packet to send [12:24:45]OFD Sender: No OFD packet to send [12:24:50]OFD Sender: No OFD packet to send [12:24:55]OFD Sender: No OFD packet to send [12:25:00]OFD Sender: No OFD packet to send [12:25:05]OFD Sender: No OFD packet to send [12:25:10]OFD Sender: No OFD packet to send [12:25:15]OFD Sender: No OFD packet to send [12:25:20]OFD Sender: No OFD packet to send [12:25:25]OFD Sender: No OFD packet to send [12:25:30]OFD Sender: No OFD packet to send [12:25:34]accept exits with 9 [12:25:34]New connection [12:25:34]New thread 3067133284 created [12:25:34]Thread 3067276644 joined [12:25:34]Waiting for new connection... [12:25:34] Sock 9.Parse request [12:25:34]Sock 9.Check first char [12:25:34]Sock 9.First char is OK [12:25:34]request: POST /json_proto HTTP/1.0 [12:25:34]Method: POST [12:25:34]URL: /json_proto [12:25:34]Method is POST - this is cgi request [12:25:34]url: /json_proto [12:25:34]query_string will be loaded in cgi processing [12:25:34]execute_cgi json_proto POST (null) [12:25:34]execute_cgi path=json_proto method=POST [12:25:34]POST find Content-Length [12:25:34]Host: 172.17.52.3:8080 [12:25:34]Content-Length: 679 [12:25:34]Content-Type: application/json [12:25:34] [12:25:34]POST finish read [12:25:34]Found Content-Length = 679 [12:25:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:34]execute_script... [12:25: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)210415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:34]POST & json_proto [12:25:34]process_json_proto [12:25:34]json parsed OK: [12:25:34]protocol is kg_v1.0 [12:25:34]action value=close_receipt [12:25:34]process_action close_receipt [12:25:34]cmd_close_receipt [12:25:34]MH_GetDate [12:25:34]Write to MH i2c: F0 00 00 DC 30 FB [12:25:34]Write i2c OK [12:25:34]MH_I2C_Read... [12:25:34]Read from MH i2c: F0 [12:25:34]MH_I2C_Read... [12:25:34]Read from MH i2c: F0 09 00 [12:25:34]MH_I2C_Read... [12:25:34]Read from MH i2c: F0 09 00 DC 30 00 47 EB 18 67 D7 68 A5 64 FD [12:25:34]GetLastDocTimeStamp 1729686125 [12:25:34]current date 1729686343 [12:25:34]FM_GetShiftState [12:25:34]SAM_PROTO_GetShiftState [12:25:34]wFMCommunicate request_size=4 [12:25:34]MH_SAM_APDU [12:25:34]CAPDU: 80 13 01 00 [12:25:34]Write to MH i2c: E2 08 00 DD 30 80 13 01 00 00 00 00 00 8A [12:25:34]Write i2c OK [12:25:34]MH_I2C_Read... [12:25:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:34]Read from MH i2c: E2 [12:25:34]MH_I2C_Read... [12:25:34]Read from MH i2c: E2 0E 00 [12:25:34]MH_I2C_Read... [12:25:34]Read from MH i2c: E2 0E 00 DD 30 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 F9 [12:25:34]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [12:25:34]wFMCommunicate OK [12:25:34]SAM_PROTO_GetShiftState done [12:25:34]FM_GetShiftState done [12:25:34]opened in 1729641385 [12:25:34]opened+sec_in_day 1729727785 [12:25:34]quantity*price = 100050 [12:25:34]sum+1 = 100052 [12:25:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 41 23.10.2024 12:25 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68418 ФПД: 154915872918796 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T122543&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68418&fm=154915872918796&tin=02508201610067®Number=0000000000091756&sum=100000 [12:25:35]StoreToDocumentArchive [12:25:35]shift 507 fd 68418 [12:25:35]save to /storage/0507/doc_00068418 [12:25:35]save last doc name /storage/0507/doc_00068418 to /storage/kkm_last_doc_name [12:25:35]save OK [12:25:35]Clear old archive folders... [12:25:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:25:35]tlvbuf is 01FAAFA0 [12:25:35]SAM_PROTO_ClearQueue [12:25:35]wFMCommunicate request_size=4 [12:25:35]MH_SAM_APDU [12:25:35]CAPDU: 80 09 00 00 [12:25:35]Write to MH i2c: E2 08 00 EA 30 80 09 00 00 00 00 00 00 8C [12:25:35]Write i2c OK [12:25:35]MH_I2C_Read... [12:25:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:35]Read from MH i2c: E2 [12:25:35]MH_I2C_Read... [12:25:35]Read from MH i2c: E2 03 00 [12:25:35]MH_I2C_Read... [12:25:35]Read from MH i2c: E2 03 00 EA 30 00 90 00 8E [12:25:35]RAPDU: 90 00 [12:25:35]wFMCommunicate OK [12:25:35]SAM_PROTO_ClearQueue done [12:25:35]KKMCreateOFDPacket [12:25:35]OFDProtocolAddRootSTLVToBuf [12:25:35]FM_MakeSignedData [12:25:35]FM_MakeSignedData [12:25:35]SAM_PROTO_SignData [12:25:35]wFMCommunicate request_size=4 [12:25:35]MH_SAM_APDU [12:25:35]CAPDU: 80 0D 01 02 [12:25:35]Write to MH i2c: E2 08 00 EB 30 80 0D 01 02 00 00 00 00 94 [12:25:35]Write i2c OK [12:25:35]MH_I2C_Read... [12:25:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:35]Read from MH i2c: E2 [12:25:35]MH_I2C_Read... [12:25:35]Read from MH i2c: E2 03 00 [12:25:35]MH_I2C_Read... [12:25:35]Read from MH i2c: E2 03 00 EB 30 00 90 00 8F [12:25:35]RAPDU: 90 00 [12:25:35]wFMCommunicate OK [12:25:35]wFMCommunicate request_size=255 [12:25:35]MH_SAM_APDU [12:25:35]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 29 00 00 00 F4 03 04 00 47 EB 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 42 0B 01 00 35 04 06 00 8C E5 29 93 [12:25:35]Write to MH i2c: E2 02 01 EC 30 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 29 00 00 00 F4 03 04 00 47 EB 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 42 0B 01 00 35 04 06 00 8C E5 29 93 00 00 6B [12:25:35]Write i2c OK [12:25:35]MH_I2C_Read... [12:25:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:36]Read from MH i2c: E2 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: E2 03 00 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: E2 03 00 EC 30 00 90 00 90 [12:25:36]RAPDU: 90 00 [12:25:36]wFMCommunicate OK [12:25:36]wFMCommunicate request_size=7 [12:25:36]MH_SAM_APDU [12:25:36]CAPDU: 80 0D 02 02 02 4D 0C [12:25:36]Write to MH i2c: E2 0A 00 ED 30 80 0D 02 02 02 00 4D 0C 00 00 F4 [12:25:36]Write i2c OK [12:25:36]MH_I2C_Read... [12:25:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:36]Read from MH i2c: E2 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: E2 03 00 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: E2 03 00 ED 30 00 90 00 91 [12:25:36]RAPDU: 90 00 [12:25:36]wFMCommunicate OK [12:25:36]wFMCommunicate request_size=4 [12:25:36]MH_SAM_APDU [12:25:36]CAPDU: 80 0D 03 02 [12:25:36]Write to MH i2c: E2 08 00 EE 30 80 0D 03 02 00 00 00 00 99 [12:25:36]Write i2c OK [12:25:36]MH_I2C_Read... [12:25:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:36]Read from MH i2c: E2 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: E2 0B 00 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: E2 0B 00 EE 30 00 37 84 B1 50 98 30 C9 66 90 00 4D [12:25:36]RAPDU: 37 84 B1 50 98 30 C9 66 90 00 [12:25:36]wFMCommunicate OK [12:25:36]SAM_PROTO_SignData done [12:25:36]FM_MakeSignedData done [12:25:36]CreateOFDProtocolMessage [12:25:36]wFMCommunicate request_size=4 [12:25:36]MH_SAM_APDU [12:25:36]CAPDU: 80 11 00 00 [12:25:36]Write to MH i2c: E2 08 00 EF 30 80 11 00 00 00 00 00 00 99 [12:25:36]Write i2c OK [12:25:36]MH_I2C_Read... [12:25:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:36]Read from MH i2c: E2 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: E2 17 00 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: E2 17 00 EF 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 ED [12:25:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [12:25:36]wFMCommunicate OK [12:25:36]CreateOFDProtocolMessage done [12:25:36]OFDSenderStorePacket 68418 [12:25:36]StoreOFDPacket docnum=68418 [12:25:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0C 01 00 00 C0 B1 04 01 C9 19 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 29 00 00 00 F4 03 04 00 47 EB 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 42 0B 01 00 35 04 06 00 8C E5 29 93 4D 0C 37 84 B1 50 98 30 C9 66 [12:25:36]CheckFolder [12:25:36]dirname=/storage/ofd_packets [12:25:36]CheckFolder done [12:25:36]ProducePacketName [12:25:36]name=ofd_packets/00068418 [12:25:36]NVStorageSaveData ofd_packets/00068418 [12:25:36]File name is /storage/ofd_packets/00068418 [12:25:36]Write 298 bytes [12:25:36]NVStorageSaveData done [12:25:36]OFDSenderStorePacket done [12:25:36]KKMCreateOFDPacket done [12:25:36]NVStorageSaveData kkm_last_timestamp [12:25:36]File name is /storage/kkm_last_timestamp [12:25:36]Write 4 bytes [12:25:36]NVStorageSaveData done [12:25:36]ExternCall_PrintAddStr [12:25:36]wPrintStart [12:25:36]Write to MH i2c: 01 00 00 F0 30 20 [12:25:36]Write i2c OK [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: 01 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: 01 07 00 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: 01 07 00 F0 30 00 04 00 00 00 FF 0F 39 [12:25:36]RasterBufferAndPrint [12:25:36]line Счет N : (1)210415 [12:25:36]line ИНН: 02508201610067 [12:25:36]line Контрольно-Кассовый Чек [12:25:36]line ПРОДАЖА [12:25:36]line ТРК (МРК, ГНК) : 21 [12:25:36]line Товар: 2710194210 [12:25:36]line ДТ-К-2 [12:25:36]line 13.130 * 76.20 [12:25:36]line = 1000.51 [12:25:36]line НДС 12% НСП 1% [12:25:36]line > о реализуемом товаре [12:25:36]line ОКРУГЛЕНИЕ: -0.51 [12:25:36]line ИТОГО: 1000.00 [12:25:36]line Внесено: 1000.00 [12:25:36]line СДАЧА: 0.00 [12:25:36]line НСП 1% : 8.85 [12:25:36]line НДС 12% : 106.25 [12:25:36]line Наличными: 1000.00 [12:25:36]line Безнал.: 0.00 [12:25:36]line Место: АЗС № 147 "Партнер Нефть" [12:25:36]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [12:25:36]line СНО: Общий режим [12:25:36]line Чек 41 23.10.2024 12:25 [12:25:36]line Смена: 507 ФФД: 1.0 [12:25:36]line ЗНМ: 0300000094 [12:25:36]line РНМ: 0000000000091756 [12:25:36]line Версия ККМ: 001 [12:25:36]line ФМ: 0000000000871809 [12:25:36]line ФД: 68418 [12:25:36]line ФПД: 154915872918796 [12:25:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T122543&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68418&fm=154915872918796&tin=02508201610067®Number=0000000000091756&sum=100000 [12:25:36]OFD Sender: Processing packet 68418 [packets to send 8, broken 7] [12:25:36]ProducePacketName [12:25:36]name=ofd_packets/00068418 [12:25:36]OFD Sender: To server: pG, [12:25:36]CommunicateWithHost lk.salyk.kg:30040 [12:25:36]ConnectInit lk.salyk.kg [12:25:36]written 0, free lines is 4095 [12:25:36]Connected sock=10 [12:25:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0C 01 00 00 C0 B1 04 01 C9 19 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 29 00 00 00 F4 03 04 00 47 EB 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 42 0B 01 00 35 04 06 00 8C E5 29 93 4D 0C 37 84 B1 50 98 30 C9 66 [12:25:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 E0 04 47 00 DB 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 31 38 30 39 10 04 04 00 42 0B 01 00 F4 03 04 00 3C 91 18 67 B6 04 01 00 00 09 89 D9 65 9C 96 63 E3 [12:25:37]CommunicateWithHost err = 0 [12:25:37]CheckOFDResponse [12:25:37]1017 (14) - 77093643461234 [12:25:37]1041 (16) - 0000000000871809 [12:25:37]1040 (4) - 68418 [12:25:37]1012 (4) - 23.10.2024 06:01 [12:25:37]1206 (1) - 0 [12:25:37]OFD Sender: Remove packet 68418 [12:25:37]ProducePacketName [12:25:37]name=ofd_packets/00068418 [12:25:37]NVStorageDeleteData [12:25:37]Write to MH i2c: 01 00 00 1A 31 4B [12:25:37]Write i2c OK [12:25:37]MH_I2C_Read... [12:25:37]Read from MH i2c: 01 [12:25:37]MH_I2C_Read... [12:25:37]Read from MH i2c: 01 07 00 [12:25:37]MH_I2C_Read... [12:25:37]Read from MH i2c: 01 07 00 1A 31 00 04 00 00 00 A2 0C 04 [12:25:37]RasterBufferAndPrint [12:25:37]line [12:25:37]line [12:25:37]line [12:25:37]line [12:25:37]line [12:25:37]written 0, free lines is 3239 [12:25:37]MH_Cut [12:25:37]Write to MH i2c: D1 01 00 21 31 01 24 [12:25:37]Write i2c OK [12:25:37]MH_I2C_Read... [12:25:37]Read from MH i2c: D1 [12:25:37]MH_I2C_Read... [12:25:37]Read from MH i2c: D1 01 00 [12:25:37]MH_I2C_Read... [12:25:37]Read from MH i2c: D1 01 00 21 31 00 23 [12:25:37]Write to MH i2c: 01 00 00 22 31 53 [12:25:37]Write i2c OK [12:25:37]MH_I2C_Read... [12:25:37]OFD Sender: No OFD packet to send [12:25:38]*** Cut start [12:25:38]*** Partial cut [12:25:38]*** CUTSNS_PIN = 1 [12:25:38]*** CUTSNS_PIN = 0 [12:25:38]*** Brake cut motor [12:25:38]Read from MH i2c: 01 [12:25:38]MH_I2C_Read... [12:25:38]*** Stop cut motor [12:25:38]*** Cut end [12:25:38]Read from MH i2c: 01 07 00 [12:25:38]MH_I2C_Read... [12:25:38]Read from MH i2c: 01 07 00 22 31 00 04 00 00 00 FF 0F 6C [12:25:38]process_action close_receipt done [12:25:38]requested_data is exist [12:25:38]produce_requested_data [12:25:38]requested_item fm.sn is exist - process it [12:25:38]wFMCommunicate request_size=4 [12:25:38]MH_SAM_APDU [12:25:38]CAPDU: 80 11 00 00 [12:25:38]Write to MH i2c: E2 08 00 23 31 80 11 00 00 00 00 00 00 CE [12:25:38]Write i2c OK [12:25:38]MH_I2C_Read... [12:25:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:38]Read from MH i2c: E2 [12:25:38]MH_I2C_Read... [12:25:38]Read from MH i2c: E2 17 00 [12:25:38]MH_I2C_Read... [12:25:38]Read from MH i2c: E2 17 00 23 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 22 [12:25:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [12:25:38]wFMCommunicate OK [12:25:38]requested_item fd.num is exist - process it [12:25:38]SAM_PROTO_GetFieldsCounters [12:25:38]wFMCommunicate request_size=4 [12:25:38]MH_SAM_APDU [12:25:38]CAPDU: 80 13 00 00 [12:25:38]Write to MH i2c: E2 08 00 24 31 80 13 00 00 00 00 00 00 D1 [12:25:38]Write i2c OK [12:25:38]MH_I2C_Read... [12:25:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:38]Read from MH i2c: E2 [12:25:38]MH_I2C_Read... [12:25:38]Read from MH i2c: E2 62 00 [12:25:38]MH_I2C_Read... [12:25:38]Read from MH i2c: E2 62 00 24 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 42 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [12:25:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 42 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:25:38]wFMCommunicate OK [12:25:38]SAM_PROTO_GetFieldsCounters done [12:25:38]requested_item shift.num is exist - process it [12:25:38]requested_item shift.opened is exist - process it [12:25:38]req_shift_opened [12:25:38]FM_GetShiftState [12:25:38]SAM_PROTO_GetShiftState [12:25:38]wFMCommunicate request_size=4 [12:25:38]MH_SAM_APDU [12:25:38]CAPDU: 80 13 01 00 [12:25:38]Write to MH i2c: E2 08 00 25 31 80 13 01 00 00 00 00 00 D3 [12:25:38]Write i2c OK [12:25:38]MH_I2C_Read... [12:25:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:38]Read from MH i2c: E2 [12:25:38]MH_I2C_Read... [12:25:38]Read from MH i2c: E2 0E 00 [12:25:38]MH_I2C_Read... [12:25:38]Read from MH i2c: E2 0E 00 25 31 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 42 [12:25:38]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [12:25:38]wFMCommunicate OK [12:25:38]SAM_PROTO_GetShiftState done [12:25:38]FM_GetShiftState done [12:25:38]req_shift_opened done [12:25:38]requested_item shift.open_date is exist - process it [12:25:38]req_shift_open_date [12:25:38]req_shift_open_date done [12:25:38]produce_requested_data done [12:25:38]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68418,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [12:25:38]process_action_free close_receipt [12:25:38]json_value_free [12:25:38]json_value_free done [12:25:38]process_json_proto returns [12:25:38]Send response to host [12:25:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68418,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [12:25:38]free response buf [12:25:38]execute_script done [12:25:38]execute_script returns [12:25:38]free content buf [12:25:38]Sock 9.Close socket [12:25:38]Sock 9.Thread stoped [12:25:42]OFD Sender: No OFD packet to send [12:25:47]OFD Sender: No OFD packet to send [12:25:52]OFD Sender: No OFD packet to send [12:25:57]OFD Sender: No OFD packet to send [12:26:02]OFD Sender: No OFD packet to send [12:26:07]OFD Sender: No OFD packet to send [12:26:12]OFD Sender: No OFD packet to send [12:26:17]OFD Sender: No OFD packet to send [12:26:22]OFD Sender: No OFD packet to send [12:26:27]OFD Sender: No OFD packet to send [12:26:32]OFD Sender: No OFD packet to send [12:26:37]OFD Sender: No OFD packet to send [12:26:42]OFD Sender: No OFD packet to send [12:26:47]OFD Sender: No OFD packet to send [12:26:52]OFD Sender: No OFD packet to send [12:26:57]OFD Sender: No OFD packet to send [12:27:02]OFD Sender: No OFD packet to send [12:27:07]OFD Sender: No OFD packet to send [12:27:12]OFD Sender: No OFD packet to send [12:27:17]OFD Sender: No OFD packet to send [12:27:22]OFD Sender: No OFD packet to send [12:27:27]OFD Sender: No OFD packet to send [12:27:32]OFD Sender: No OFD packet to send [12:27:37]OFD Sender: No OFD packet to send [12:27:42]OFD Sender: No OFD packet to send [12:27:47]OFD Sender: No OFD packet to send [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: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: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: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]OFD Sender: No OFD packet to send [12:33:47]OFD Sender: No OFD packet to send [12:33:52]OFD Sender: No OFD packet to send [12:33:57]OFD Sender: No OFD packet to send [12:34:02]OFD Sender: No OFD packet to send [12:34:07]OFD Sender: No OFD packet to send [12:34:12]OFD Sender: No OFD packet to send [12:34:17]OFD Sender: No OFD packet to send [12:34:22]OFD Sender: No OFD packet to send [12:34:27]OFD Sender: No OFD packet to send [12:34:32]OFD Sender: No OFD packet to send [12:34:37]OFD Sender: No OFD packet to send [12:34:42]OFD Sender: No OFD packet to send [12:34:47]OFD Sender: No OFD packet to send [12:34:52]OFD Sender: No OFD packet to send [12:34:57]OFD Sender: No OFD packet to send [12:35:02]OFD Sender: No OFD packet to send [12:35:07]OFD Sender: No OFD packet to send [12:35:12]OFD Sender: No OFD packet to send [12:35:17]OFD Sender: No OFD packet to send [12:35:23]OFD Sender: No OFD packet to send [12:35:28]OFD Sender: No OFD packet to send [12:35:33]OFD Sender: No OFD packet to send [12:35:38]OFD Sender: No OFD packet to send [12:35:43]OFD Sender: No OFD packet to send [12:35:48]OFD Sender: No OFD packet to send [12:35:53]OFD Sender: No OFD packet to send [12:35:58]OFD Sender: No OFD packet to send [12:36:03]OFD Sender: No OFD packet to send [12:36:08]OFD Sender: No OFD packet to send [12:36:13]OFD Sender: No OFD packet to send [12:36:18]OFD Sender: No OFD packet to send [12:36:23]OFD Sender: No OFD packet to send [12:36:28]OFD Sender: No OFD packet to send [12:36:33]OFD Sender: No OFD packet to send [12:36:38]OFD Sender: No OFD packet to send [12:36:43]OFD Sender: No OFD packet to send [12:36:48]OFD Sender: No OFD packet to send [12:36:53]OFD Sender: No OFD packet to send [12:36:58]OFD Sender: No OFD packet to send [12:37:03]OFD Sender: No OFD packet to send [12:37:08]OFD Sender: No OFD packet to send [12:37:13]OFD Sender: No OFD packet to send [12:37:18]OFD Sender: No OFD packet to send [12:37:23]OFD Sender: No OFD packet to send [12:37:28]OFD Sender: No OFD packet to send [12:37:33]OFD Sender: No OFD packet to send [12:37:38]OFD Sender: No OFD packet to send [12:37:43]OFD Sender: No OFD packet to send [12:37:48]OFD Sender: No OFD packet to send [12:37:53]OFD Sender: No OFD packet to send [12:37:58]OFD Sender: No OFD packet to send [12:38:03]OFD Sender: No OFD packet to send [12:38:08]OFD Sender: No OFD packet to send [12:38:13]OFD Sender: No OFD packet to send [12:38:18]OFD Sender: No OFD packet to send [12:38:23]OFD Sender: No OFD packet to send [12:38:28]OFD Sender: No OFD packet to send [12:38:33]OFD Sender: No OFD packet to send [12:38:38]OFD Sender: No OFD packet to send [12:38:43]OFD Sender: No OFD packet to send [12:38:48]OFD Sender: No OFD packet to send [12:38:53]OFD Sender: No OFD packet to send [12:38:58]OFD Sender: No OFD packet to send [12:39:03]OFD Sender: No OFD packet to send [12:39:08]OFD Sender: No OFD packet to send [12:39:13]OFD Sender: No OFD packet to send [12:39:18]OFD Sender: No OFD packet to send [12:39:23]OFD Sender: No OFD packet to send [12:39:28]OFD Sender: No OFD packet to send [12:39:33]OFD Sender: No OFD packet to send [12:39:38]OFD Sender: No OFD packet to send [12:39:43]OFD Sender: No OFD packet to send [12:39:48]OFD Sender: No OFD packet to send [12:39:53]OFD Sender: No OFD packet to send [12:39:58]OFD Sender: No OFD packet to send [12:40:03]OFD Sender: No OFD packet to send [12:40:08]OFD Sender: No OFD packet to send [12:40:13]OFD Sender: No OFD packet to send [12:40:18]OFD Sender: No OFD packet to send [12:40:23]OFD Sender: No OFD packet to send [12:40:28]OFD Sender: No OFD packet to send [12:40:29]accept exits with 7 [12:40:29]New connection [12:40:29]New thread 3067276644 created [12:40:29]Thread 3067133284 joined [12:40:29]Waiting for new connection... [12:40:29] Sock 7.Parse request [12:40:29]Sock 7.Check first char [12:40:29]Sock 7.First char is OK [12:40:29]request: POST /json_proto HTTP/1.0 [12:40:29]Method: POST [12:40:29]URL: /json_proto [12:40:29]Method is POST - this is cgi request [12:40:29]url: /json_proto [12:40:29]query_string will be loaded in cgi processing [12:40:29]execute_cgi json_proto POST (null) [12:40:29]execute_cgi path=json_proto method=POST [12:40:29]POST find Content-Length [12:40:29]Host: 172.17.52.3:8080 [12:40:29]Content-Length: 677 [12:40:29]Content-Type: application/json [12:40:29] [12:40:29]POST finish read [12:40:29]Found Content-Length = 677 [12:40:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:29]execute_script... [12:40: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)210416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:29]POST & json_proto [12:40:29]process_json_proto [12:40:29]json parsed OK: [12:40:29]protocol is kg_v1.0 [12:40:29]action value=close_receipt [12:40:29]process_action close_receipt [12:40:29]cmd_close_receipt [12:40:29]MH_GetDate [12:40:29]Write to MH i2c: F0 00 00 26 31 46 [12:40:29]Write i2c OK [12:40:29]MH_I2C_Read... [12:40:29]Read from MH i2c: F0 [12:40:29]MH_I2C_Read... [12:40:29]Read from MH i2c: F0 09 00 [12:40:29]MH_I2C_Read... [12:40:29]Read from MH i2c: F0 09 00 26 31 00 C6 EE 18 67 D7 68 A5 64 CA [12:40:29]GetLastDocTimeStamp 1729686343 [12:40:29]current date 1729687238 [12:40:29]FM_GetShiftState [12:40:29]SAM_PROTO_GetShiftState [12:40:29]wFMCommunicate request_size=4 [12:40:29]MH_SAM_APDU [12:40:29]CAPDU: 80 13 01 00 [12:40:29]Write to MH i2c: E2 08 00 27 31 80 13 01 00 00 00 00 00 D5 [12:40:29]Write i2c OK [12:40:29]MH_I2C_Read... [12:40:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:29]Read from MH i2c: E2 [12:40:29]MH_I2C_Read... [12:40:29]Read from MH i2c: E2 0E 00 [12:40:29]MH_I2C_Read... [12:40:29]Read from MH i2c: E2 0E 00 27 31 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 44 [12:40:29]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [12:40:29]wFMCommunicate OK [12:40:29]SAM_PROTO_GetShiftState done [12:40:29]FM_GetShiftState done [12:40:29]opened in 1729641385 [12:40:29]opened+sec_in_day 1729727785 [12:40:29]quantity*price = 50041 [12:40:29]sum+1 = 50042 [12:40: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 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 42 23.10.2024 12:40 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68419 ФПД: 69417358208695 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124038&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68419&fm=69417358208695&tin=02508201610067®Number=0000000000091756&sum=50000 [12:40:30]StoreToDocumentArchive [12:40:30]shift 507 fd 68419 [12:40:30]save to /storage/0507/doc_00068419 [12:40:30]save last doc name /storage/0507/doc_00068419 to /storage/kkm_last_doc_name [12:40:30]save OK [12:40:30]Clear old archive folders... [12:40:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:40:30]tlvbuf is 0208D490 [12:40:30]SAM_PROTO_ClearQueue [12:40:30]wFMCommunicate request_size=4 [12:40:30]MH_SAM_APDU [12:40:30]CAPDU: 80 09 00 00 [12:40:30]Write to MH i2c: E2 08 00 34 31 80 09 00 00 00 00 00 00 D7 [12:40:30]Write i2c OK [12:40:30]MH_I2C_Read... [12:40:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:40:30]Read from MH i2c: E2 [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: E2 03 00 [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: E2 03 00 34 31 00 90 00 D9 [12:40:30]RAPDU: 90 00 [12:40:30]wFMCommunicate OK [12:40:30]SAM_PROTO_ClearQueue done [12:40:30]KKMCreateOFDPacket [12:40:30]OFDProtocolAddRootSTLVToBuf [12:40:30]FM_MakeSignedData [12:40:30]FM_MakeSignedData [12:40:30]SAM_PROTO_SignData [12:40:30]wFMCommunicate request_size=4 [12:40:30]MH_SAM_APDU [12:40:30]CAPDU: 80 0D 01 02 [12:40:30]Write to MH i2c: E2 08 00 35 31 80 0D 01 02 00 00 00 00 DF [12:40:30]Write i2c OK [12:40:30]MH_I2C_Read... [12:40:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:40:30]Read from MH i2c: E2 [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: E2 03 00 [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: E2 03 00 35 31 00 90 00 DA [12:40:30]RAPDU: 90 00 [12:40:30]wFMCommunicate OK [12:40:30]wFMCommunicate request_size=255 [12:40:30]MH_SAM_APDU [12:40: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 32 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 2A 00 00 00 F4 03 04 00 C6 EE 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 43 0B 01 00 35 04 06 00 3F [12:40:30]Write to MH i2c: E2 02 01 36 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2A 00 00 00 F4 03 04 00 C6 EE 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 43 0B 01 00 35 04 06 00 3F 00 00 56 [12:40:30]Write i2c OK [12:40:30]MH_I2C_Read... [12:40:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:30]Read from MH i2c: E2 [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: E2 03 00 [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: E2 03 00 36 31 00 90 00 DB [12:40:30]RAPDU: 90 00 [12:40:30]wFMCommunicate OK [12:40:30]wFMCommunicate request_size=10 [12:40:30]MH_SAM_APDU [12:40:30]CAPDU: 80 0D 02 02 05 22 7C FA 2E B7 [12:40:30]Write to MH i2c: E2 0D 00 37 31 80 0D 02 02 05 00 22 7C FA 2E B7 00 00 69 [12:40:30]Write i2c OK [12:40:30]MH_I2C_Read... [12:40:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:30]Read from MH i2c: E2 [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: E2 03 00 [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: E2 03 00 37 31 00 90 00 DC [12:40:30]RAPDU: 90 00 [12:40:30]wFMCommunicate OK [12:40:30]wFMCommunicate request_size=4 [12:40:30]MH_SAM_APDU [12:40:30]CAPDU: 80 0D 03 02 [12:40:30]Write to MH i2c: E2 08 00 38 31 80 0D 03 02 00 00 00 00 E4 [12:40:30]Write i2c OK [12:40:30]MH_I2C_Read... [12:40:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:40:31]Read from MH i2c: E2 [12:40:31]MH_I2C_Read... [12:40:31]Read from MH i2c: E2 0B 00 [12:40:31]MH_I2C_Read... [12:40:31]Read from MH i2c: E2 0B 00 38 31 00 2E D2 9D A1 2E 28 9B 09 90 00 1D [12:40:31]RAPDU: 2E D2 9D A1 2E 28 9B 09 90 00 [12:40:31]wFMCommunicate OK [12:40:31]SAM_PROTO_SignData done [12:40:31]FM_MakeSignedData done [12:40:31]CreateOFDProtocolMessage [12:40:31]wFMCommunicate request_size=4 [12:40:31]MH_SAM_APDU [12:40:31]CAPDU: 80 11 00 00 [12:40:31]Write to MH i2c: E2 08 00 39 31 80 11 00 00 00 00 00 00 E4 [12:40:31]Write i2c OK [12:40:31]MH_I2C_Read... [12:40:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:31]Read from MH i2c: E2 [12:40:31]MH_I2C_Read... [12:40:31]Read from MH i2c: E2 17 00 [12:40:31]MH_I2C_Read... [12:40:31]Read from MH i2c: E2 17 00 39 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 38 [12:40:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [12:40:31]wFMCommunicate OK [12:40:31]CreateOFDProtocolMessage done [12:40:31]OFDSenderStorePacket 68419 [12:40:31]StoreOFDPacket docnum=68419 [12:40:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 17 CF 07 01 56 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 32 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 2A 00 00 00 F4 03 04 00 C6 EE 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 43 0B 01 00 35 04 06 00 3F 22 7C FA 2E B7 2E D2 9D A1 2E 28 9B 09 [12:40:31]CheckFolder [12:40:31]dirname=/storage/ofd_packets [12:40:31]CheckFolder done [12:40:31]ProducePacketName [12:40:31]name=ofd_packets/00068419 [12:40:31]NVStorageSaveData ofd_packets/00068419 [12:40:31]File name is /storage/ofd_packets/00068419 [12:40:31]Write 301 bytes [12:40:31]NVStorageSaveData done [12:40:31]OFDSenderStorePacket done [12:40:31]KKMCreateOFDPacket done [12:40:31]NVStorageSaveData kkm_last_timestamp [12:40:31]File name is /storage/kkm_last_timestamp [12:40:31]Write 4 bytes [12:40:31]NVStorageSaveData done [12:40:31]ExternCall_PrintAddStr [12:40:31]wPrintStart [12:40:31]Write to MH i2c: 01 00 00 3A 31 6B [12:40:31]Write i2c OK [12:40:31]MH_I2C_Read... [12:40:31]Read from MH i2c: 01 [12:40:31]MH_I2C_Read... [12:40:31]Read from MH i2c: 01 07 00 [12:40:31]MH_I2C_Read... [12:40:31]Read from MH i2c: 01 07 00 3A 31 00 04 00 00 00 FF 0F 84 [12:40:31]RasterBufferAndPrint [12:40:31]line Счет N : (1)210416 [12:40:31]line ИНН: 02508201610067 [12:40:31]line Контрольно-Кассовый Чек [12:40:31]line ПРОДАЖА [12:40:31]line ТРК (МРК, ГНК) : 11 [12:40:31]line Товар: 2710124130 [12:40:31]line Аи-92-К-2 [12:40:31]line 7.480 * 66.90 [12:40:31]line = 500.41 [12:40:31]line НДС 12% НСП 1% [12:40:31]line > о реализуемом товаре [12:40:31]line ОКРУГЛЕНИЕ: -0.41 [12:40:31]line ИТОГО: 500.00 [12:40:31]line Внесено: 500.00 [12:40:31]line СДАЧА: 0.00 [12:40:31]line НСП 1% : 4.43 [12:40:31]line НДС 12% : 53.14 [12:40:31]line Наличными: 500.00 [12:40:31]line Безнал.: 0.00 [12:40:31]line Место: АЗС № 147 "Партнер Нефть" [12:40:31]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [12:40:31]line СНО: Общий режим [12:40:31]line Чек 42 23.10.2024 12:40 [12:40:31]line Смена: 507 ФФД: 1.0 [12:40:31]line ЗНМ: 0300000094 [12:40:31]line РНМ: 0000000000091756 [12:40:31]line Версия ККМ: 001 [12:40:31]line ФМ: 0000000000871809 [12:40:31]line ФД: 68419 [12:40:31]line ФПД: 69417358208695 [12:40:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124038&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68419&fm=69417358208695&tin=02508201610067®Number=0000000000091756&sum=50000 [12:40:31]written 0, free lines is 4095 [12:40:31]OFD Sender: Processing packet 68419 [packets to send 8, broken 7] [12:40:31]ProducePacketName [12:40:31]name=ofd_packets/00068419 [12:40:31]OFD Sender: To server: pG, [12:40:31]CommunicateWithHost lk.salyk.kg:30040 [12:40:31]ConnectInit lk.salyk.kg [12:40:31]Connected sock=10 [12:40:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 17 CF 07 01 56 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 32 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 2A 00 00 00 F4 03 04 00 C6 EE 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 43 0B 01 00 35 04 06 00 3F 22 7C FA 2E B7 2E D2 9D A1 2E 28 9B 09 [12:40:31]Write to MH i2c: 01 00 00 64 31 95 [12:40:31]Write i2c OK [12:40:31]MH_I2C_Read... [12:40:31]Read from MH i2c: 01 [12:40:31]MH_I2C_Read... [12:40:31]Read from MH i2c: 01 07 00 [12:40:31]MH_I2C_Read... [12:40:31]Read from MH i2c: 01 07 00 64 31 00 04 00 00 00 A7 0C 53 [12:40:31]RasterBufferAndPrint [12:40:31]line [12:40:31]line [12:40:31]line [12:40:31]line [12:40:31]line [12:40:31]written 0, free lines is 3243 [12:40:31]MH_Cut [12:40:31]Write to MH i2c: D1 01 00 6B 31 01 6E [12:40:31]Write i2c OK [12:40:31]MH_I2C_Read... [12:40:31]Read from MH i2c: D1 [12:40:31]MH_I2C_Read... [12:40:31]Read from MH i2c: D1 01 00 [12:40:31]MH_I2C_Read... [12:40:31]Read from MH i2c: D1 01 00 6B 31 00 6D [12:40:31]Write to MH i2c: 01 00 00 6C 31 9D [12:40:31]Write i2c OK [12:40:31]MH_I2C_Read... [12:40:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 AB 86 47 00 B4 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 43 0B 01 00 F4 03 04 00 BB 94 18 67 B6 04 01 00 00 01 09 96 31 79 22 1D 8C [12:40:31]CommunicateWithHost err = 0 [12:40:31]CheckOFDResponse [12:40:31]1017 (14) - 77093643461234 [12:40:31]1041 (16) - 0000000000871809 [12:40:31]1040 (4) - 68419 [12:40:31]1012 (4) - 23.10.2024 06:16 [12:40:31]1206 (1) - 0 [12:40:31]OFD Sender: Remove packet 68419 [12:40:31]ProducePacketName [12:40:31]name=ofd_packets/00068419 [12:40:31]NVStorageDeleteData [12:40:32]OFD Sender: No OFD packet to send [12:40:32]*** Cut start [12:40:32]*** Partial cut [12:40:32]*** CUTSNS_PIN = 1 [12:40:32]*** CUTSNS_PIN = 0 [12:40:32]*** Brake cut motor [12:40:33]Read from MH i2c: 01 [12:40:33]MH_I2C_Read... [12:40:33]*** Stop cut motor [12:40:33]*** Cut end [12:40:33]Read from MH i2c: 01 07 00 [12:40:33]MH_I2C_Read... [12:40:33]Read from MH i2c: 01 07 00 6C 31 00 04 00 00 00 FF 0F B6 [12:40:33]process_action close_receipt done [12:40:33]requested_data is exist [12:40:33]produce_requested_data [12:40:33]requested_item fm.sn is exist - process it [12:40:33]wFMCommunicate request_size=4 [12:40:33]MH_SAM_APDU [12:40:33]CAPDU: 80 11 00 00 [12:40:33]Write to MH i2c: E2 08 00 6D 31 80 11 00 00 00 00 00 00 18 [12:40:33]Write i2c OK [12:40:33]MH_I2C_Read... [12:40:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:33]Read from MH i2c: E2 [12:40:33]MH_I2C_Read... [12:40:33]Read from MH i2c: E2 17 00 [12:40:33]MH_I2C_Read... [12:40:33]Read from MH i2c: E2 17 00 6D 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 6C [12:40:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [12:40:33]wFMCommunicate OK [12:40:33]requested_item fd.num is exist - process it [12:40:33]SAM_PROTO_GetFieldsCounters [12:40:33]wFMCommunicate request_size=4 [12:40:33]MH_SAM_APDU [12:40:33]CAPDU: 80 13 00 00 [12:40:33]Write to MH i2c: E2 08 00 6E 31 80 13 00 00 00 00 00 00 1B [12:40:33]Write i2c OK [12:40:33]MH_I2C_Read... [12:40:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:40:33]Read from MH i2c: E2 [12:40:33]MH_I2C_Read... [12:40:33]Read from MH i2c: E2 62 00 [12:40:33]MH_I2C_Read... [12:40:33]Read from MH i2c: E2 62 00 6E 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 43 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [12:40:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 43 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:40:33]wFMCommunicate OK [12:40:33]SAM_PROTO_GetFieldsCounters done [12:40:33]requested_item shift.num is exist - process it [12:40:33]requested_item shift.opened is exist - process it [12:40:33]req_shift_opened [12:40:33]FM_GetShiftState [12:40:33]SAM_PROTO_GetShiftState [12:40:33]wFMCommunicate request_size=4 [12:40:33]MH_SAM_APDU [12:40:33]CAPDU: 80 13 01 00 [12:40:33]Write to MH i2c: E2 08 00 6F 31 80 13 01 00 00 00 00 00 1D [12:40:33]Write i2c OK [12:40:33]MH_I2C_Read... [12:40:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:33]Read from MH i2c: E2 [12:40:33]MH_I2C_Read... [12:40:33]Read from MH i2c: E2 0E 00 [12:40:33]MH_I2C_Read... [12:40:33]Read from MH i2c: E2 0E 00 6F 31 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 8C [12:40:33]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [12:40:33]wFMCommunicate OK [12:40:33]SAM_PROTO_GetShiftState done [12:40:33]FM_GetShiftState done [12:40:33]req_shift_opened done [12:40:33]requested_item shift.open_date is exist - process it [12:40:33]req_shift_open_date [12:40:33]req_shift_open_date done [12:40:33]produce_requested_data done [12:40:33]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68419,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [12:40:33]process_action_free close_receipt [12:40:33]json_value_free [12:40:33]json_value_free done [12:40:33]process_json_proto returns [12:40:33]Send response to host [12:40:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68419,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [12:40:33]free response buf [12:40:33]execute_script done [12:40:33]execute_script returns [12:40:33]free content buf [12:40:33]Sock 7.Close socket [12:40:33]Sock 7.Thread stoped [12:40:37]OFD Sender: No OFD packet to send [12:40:42]OFD Sender: No OFD packet to send [12:40:47]OFD Sender: No OFD packet to send [12:40:52]OFD Sender: No OFD packet to send [12:40:57]OFD Sender: No OFD packet to send [12:41:02]OFD Sender: No OFD packet to send [12:41:07]OFD Sender: No OFD packet to send [12:41:12]OFD Sender: No OFD packet to send [12:41:17]OFD Sender: No OFD packet to send [12:41:22]OFD Sender: No OFD packet to send [12:41:27]OFD Sender: No OFD packet to send [12:41:32]OFD Sender: No OFD packet to send [12:41:37]OFD Sender: No OFD packet to send [12:41:42]OFD Sender: No OFD packet to send [12:41:47]OFD Sender: No OFD packet to send [12:41:52]OFD Sender: No OFD packet to send [12:41:57]OFD Sender: No OFD packet to send [12:42:02]OFD Sender: No OFD packet to send [12:42:07]OFD Sender: No OFD packet to send [12:42:12]OFD Sender: No OFD packet to send [12:42:17]OFD Sender: No OFD packet to send [12:42:21]accept exits with 9 [12:42:21]New connection [12:42:21]New thread 3067133284 created [12:42:21]Thread 3067276644 joined [12:42:21]Waiting for new connection... [12:42:21] Sock 9.Parse request [12:42:21]Sock 9.Check first char [12:42:21]Sock 9.First char is OK [12:42:21]request: POST /json_proto HTTP/1.0 [12:42:21]Method: POST [12:42:21]URL: /json_proto [12:42:21]Method is POST - this is cgi request [12:42:21]url: /json_proto [12:42:21]query_string will be loaded in cgi processing [12:42:21]execute_cgi json_proto POST (null) [12:42:21]execute_cgi path=json_proto method=POST [12:42:21]POST find Content-Length [12:42:21]Host: 172.17.52.3:8080 [12:42:21]Content-Length: 677 [12:42:21]Content-Type: application/json [12:42:21] [12:42:21]POST finish read [12:42:21]Found Content-Length = 677 [12:42:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:42:21]execute_script... [12:42:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:42:21]POST & json_proto [12:42:21]process_json_proto [12:42:21]json parsed OK: [12:42:21]protocol is kg_v1.0 [12:42:21]action value=close_receipt [12:42:21]process_action close_receipt [12:42:21]cmd_close_receipt [12:42:21]MH_GetDate [12:42:21]Write to MH i2c: F0 00 00 70 31 90 [12:42:21]Write i2c OK [12:42:21]MH_I2C_Read... [12:42:21]Read from MH i2c: F0 [12:42:21]MH_I2C_Read... [12:42:21]Read from MH i2c: F0 09 00 [12:42:21]MH_I2C_Read... [12:42:21]Read from MH i2c: F0 09 00 70 31 00 36 EF 18 67 D7 68 A5 64 85 [12:42:21]GetLastDocTimeStamp 1729687238 [12:42:21]current date 1729687350 [12:42:21]FM_GetShiftState [12:42:21]SAM_PROTO_GetShiftState [12:42:21]wFMCommunicate request_size=4 [12:42:21]MH_SAM_APDU [12:42:21]CAPDU: 80 13 01 00 [12:42:21]Write to MH i2c: E2 08 00 71 31 80 13 01 00 00 00 00 00 1F [12:42:21]Write i2c OK [12:42:21]MH_I2C_Read... [12:42:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:21]Read from MH i2c: E2 [12:42:21]MH_I2C_Read... [12:42:21]Read from MH i2c: E2 0E 00 [12:42:21]MH_I2C_Read... [12:42:21]Read from MH i2c: E2 0E 00 71 31 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 8E [12:42:21]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [12:42:21]wFMCommunicate OK [12:42:21]SAM_PROTO_GetShiftState done [12:42:21]FM_GetShiftState done [12:42:21]opened in 1729641385 [12:42:21]opened+sec_in_day 1729727785 [12:42:21]quantity*price = 60009 [12:42:21]sum+1 = 60010 [12:42:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 43 23.10.2024 12:42 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68420 ФПД: 187794880602573 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124230&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68420&fm=187794880602573&tin=02508201610067®Number=0000000000091756&sum=60000 [12:42:22]StoreToDocumentArchive [12:42:22]shift 507 fd 68420 [12:42:22]save to /storage/0507/doc_00068420 [12:42:22]save last doc name /storage/0507/doc_00068420 to /storage/kkm_last_doc_name [12:42:22]save OK [12:42:22]Clear old archive folders... [12:42:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:42:22]tlvbuf is 0208D2A0 [12:42:22]SAM_PROTO_ClearQueue [12:42:22]wFMCommunicate request_size=4 [12:42:22]MH_SAM_APDU [12:42:22]CAPDU: 80 09 00 00 [12:42:22]Write to MH i2c: E2 08 00 7E 31 80 09 00 00 00 00 00 00 21 [12:42:22]Write i2c OK [12:42:22]MH_I2C_Read... [12:42:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:42:22]Read from MH i2c: E2 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 03 00 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 03 00 7E 31 00 90 00 23 [12:42:22]RAPDU: 90 00 [12:42:22]wFMCommunicate OK [12:42:22]SAM_PROTO_ClearQueue done [12:42:22]KKMCreateOFDPacket [12:42:22]OFDProtocolAddRootSTLVToBuf [12:42:22]FM_MakeSignedData [12:42:22]FM_MakeSignedData [12:42:22]SAM_PROTO_SignData [12:42:22]wFMCommunicate request_size=4 [12:42:22]MH_SAM_APDU [12:42:22]CAPDU: 80 0D 01 02 [12:42:22]Write to MH i2c: E2 08 00 7F 31 80 0D 01 02 00 00 00 00 29 [12:42:22]Write i2c OK [12:42:22]MH_I2C_Read... [12:42:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:42:22]Read from MH i2c: E2 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 03 00 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 03 00 7F 31 00 90 00 24 [12:42:22]RAPDU: 90 00 [12:42:22]wFMCommunicate OK [12:42:22]wFMCommunicate request_size=255 [12:42:22]MH_SAM_APDU [12:42: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 32 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 2B 00 00 00 F4 03 04 00 36 EF 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 44 0B 01 00 35 04 06 00 AA [12:42:22]Write to MH i2c: E2 02 01 80 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2B 00 00 00 F4 03 04 00 36 EF 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 44 0B 01 00 35 04 06 00 AA 00 00 5B [12:42:22]Write i2c OK [12:42:22]MH_I2C_Read... [12:42:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:22]Read from MH i2c: E2 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 03 00 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 03 00 80 31 00 90 00 25 [12:42:22]RAPDU: 90 00 [12:42:22]wFMCommunicate OK [12:42:22]wFMCommunicate request_size=10 [12:42:22]MH_SAM_APDU [12:42:22]CAPDU: 80 0D 02 02 05 CC 67 26 21 CD [12:42:22]Write to MH i2c: E2 0D 00 81 31 80 0D 02 02 05 00 CC 67 26 21 CD 00 00 7D [12:42:22]Write i2c OK [12:42:22]MH_I2C_Read... [12:42:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:22]Read from MH i2c: E2 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 03 00 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 03 00 81 31 00 90 00 26 [12:42:22]RAPDU: 90 00 [12:42:22]wFMCommunicate OK [12:42:22]wFMCommunicate request_size=4 [12:42:22]MH_SAM_APDU [12:42:22]CAPDU: 80 0D 03 02 [12:42:22]Write to MH i2c: E2 08 00 82 31 80 0D 03 02 00 00 00 00 2E [12:42:22]Write i2c OK [12:42:22]MH_I2C_Read... [12:42:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:22]Read from MH i2c: E2 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 0B 00 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 0B 00 82 31 00 BB 1B 11 EC 84 6A C9 A4 90 00 5D [12:42:22]RAPDU: BB 1B 11 EC 84 6A C9 A4 90 00 [12:42:22]wFMCommunicate OK [12:42:22]SAM_PROTO_SignData done [12:42:22]FM_MakeSignedData done [12:42:22]CreateOFDProtocolMessage [12:42:22]wFMCommunicate request_size=4 [12:42:22]MH_SAM_APDU [12:42:22]CAPDU: 80 11 00 00 [12:42:22]Write to MH i2c: E2 08 00 83 31 80 11 00 00 00 00 00 00 2E [12:42:22]Write i2c OK [12:42:22]MH_I2C_Read... [12:42:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:22]Read from MH i2c: E2 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 17 00 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 17 00 83 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 82 [12:42:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [12:42:22]wFMCommunicate OK [12:42:22]CreateOFDProtocolMessage done [12:42:22]OFDSenderStorePacket 68420 [12:42:22]StoreOFDPacket docnum=68420 [12:42:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 24 22 07 01 A6 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2B 00 00 00 F4 03 04 00 36 EF 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 44 0B 01 00 35 04 06 00 AA CC 67 26 21 CD BB 1B 11 EC 84 6A C9 A4 [12:42:22]CheckFolder [12:42:22]dirname=/storage/ofd_packets [12:42:22]CheckFolder done [12:42:22]ProducePacketName [12:42:22]name=ofd_packets/00068420 [12:42:22]NVStorageSaveData ofd_packets/00068420 [12:42:22]File name is /storage/ofd_packets/00068420 [12:42:22]Write 301 bytes [12:42:22]NVStorageSaveData done [12:42:22]OFDSenderStorePacket done [12:42:22]KKMCreateOFDPacket done [12:42:22]NVStorageSaveData kkm_last_timestamp [12:42:22]File name is /storage/kkm_last_timestamp [12:42:22]Write 4 bytes [12:42:22]NVStorageSaveData done [12:42:22]ExternCall_PrintAddStr [12:42:22]wPrintStart [12:42:22]Write to MH i2c: 01 00 00 84 31 B5 [12:42:22]Write i2c OK [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: 01 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: 01 07 00 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: 01 07 00 84 31 00 04 00 00 00 FF 0F CE [12:42:22]RasterBufferAndPrint [12:42:22]line Счет N : (1)210417 [12:42:22]line ИНН: 02508201610067 [12:42:22]line Контрольно-Кассовый Чек [12:42:22]line ПРОДАЖА [12:42:22]line ТРК (МРК, ГНК) : 11 [12:42:22]line Товар: 2710124130 [12:42:22]line Аи-92-К-2 [12:42:22]line 8.970 * 66.90 [12:42:22]line = 600.09 [12:42:22]line НДС 12% НСП 1% [12:42:22]line > о реализуемом товаре [12:42:22]line ОКРУГЛЕНИЕ: -0.09 [12:42:22]line ИТОГО: 600.00 [12:42:22]line Внесено: 600.00 [12:42:22]line СДАЧА: 0.00 [12:42:22]line НСП 1% : 5.31 [12:42:22]line НДС 12% : 63.73 [12:42:22]line Наличными: 600.00 [12:42:22]line Безнал.: 0.00 [12:42:22]line Место: АЗС № 147 "Партнер Нефть" [12:42:22]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [12:42:22]line СНО: Общий режим [12:42:22]line Чек 43 23.10.2024 12:42 [12:42:22]line Смена: 507 ФФД: 1.0 [12:42:22]line ЗНМ: 0300000094 [12:42:22]line РНМ: 0000000000091756 [12:42:22]line Версия ККМ: 001 [12:42:22]line ФМ: 0000000000871809 [12:42:22]line ФД: 68420 [12:42:22]line ФПД: 187794880602573 [12:42:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124230&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68420&fm=187794880602573&tin=02508201610067®Number=0000000000091756&sum=60000 [12:42:22]written 0, free lines is 4095 [12:42:23]OFD Sender: Processing packet 68420 [packets to send 8, broken 7] [12:42:23]ProducePacketName [12:42:23]name=ofd_packets/00068420 [12:42:23]OFD Sender: To server: pG, [12:42:23]CommunicateWithHost lk.salyk.kg:30040 [12:42:23]ConnectInit lk.salyk.kg [12:42:23]Connected sock=10 [12:42:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 24 22 07 01 A6 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2B 00 00 00 F4 03 04 00 36 EF 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 44 0B 01 00 35 04 06 00 AA CC 67 26 21 CD BB 1B 11 EC 84 6A C9 A4 [12:42:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 9C 65 47 00 CD AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 44 0B 01 00 F4 03 04 00 2A 95 18 67 B6 04 01 00 00 5E 2C 33 8C 74 57 A0 6C [12:42:23]CommunicateWithHost err = 0 [12:42:23]CheckOFDResponse [12:42:23]1017 (14) - 77093643461234 [12:42:23]1041 (16) - 0000000000871809 [12:42:23]1040 (4) - 68420 [12:42:23]1012 (4) - 23.10.2024 06:18 [12:42:23]1206 (1) - 0 [12:42:23]OFD Sender: Remove packet 68420 [12:42:23]ProducePacketName [12:42:23]name=ofd_packets/00068420 [12:42:23]NVStorageDeleteData [12:42:23]Write to MH i2c: 01 00 00 AE 31 DF [12:42:23]Write i2c OK [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: 01 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: 01 07 00 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: 01 07 00 AE 31 00 04 00 00 00 A9 0C 9F [12:42:23]RasterBufferAndPrint [12:42:23]line [12:42:23]line [12:42:23]line [12:42:23]line [12:42:23]line [12:42:23]written 0, free lines is 3245 [12:42:23]MH_Cut [12:42:23]Write to MH i2c: D1 01 00 B5 31 01 B8 [12:42:23]Write i2c OK [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: D1 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: D1 01 00 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: D1 01 00 B5 31 00 B7 [12:42:23]Write to MH i2c: 01 00 00 B6 31 E7 [12:42:23]Write i2c OK [12:42:23]MH_I2C_Read... [12:42:23]OFD Sender: No OFD packet to send [12:42:24]*** Cut start [12:42:24]*** Partial cut [12:42:24]*** CUTSNS_PIN = 1 [12:42:24]*** CUTSNS_PIN = 0 [12:42:24]*** Brake cut motor [12:42:24]Read from MH i2c: 01 [12:42:24]MH_I2C_Read... [12:42:24]*** Stop cut motor [12:42:24]*** Cut end [12:42:24]Read from MH i2c: 01 07 00 [12:42:24]MH_I2C_Read... [12:42:24]Read from MH i2c: 01 07 00 B6 31 00 04 00 00 00 FF 0F 00 [12:42:24]process_action close_receipt done [12:42:24]requested_data is exist [12:42:24]produce_requested_data [12:42:24]requested_item fm.sn is exist - process it [12:42:24]wFMCommunicate request_size=4 [12:42:24]MH_SAM_APDU [12:42:24]CAPDU: 80 11 00 00 [12:42:24]Write to MH i2c: E2 08 00 B7 31 80 11 00 00 00 00 00 00 62 [12:42:24]Write i2c OK [12:42:24]MH_I2C_Read... [12:42:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:24]Read from MH i2c: E2 [12:42:24]MH_I2C_Read... [12:42:24]Read from MH i2c: E2 17 00 [12:42:24]MH_I2C_Read... [12:42:24]Read from MH i2c: E2 17 00 B7 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 B6 [12:42:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [12:42:24]wFMCommunicate OK [12:42:24]requested_item fd.num is exist - process it [12:42:24]SAM_PROTO_GetFieldsCounters [12:42:24]wFMCommunicate request_size=4 [12:42:24]MH_SAM_APDU [12:42:24]CAPDU: 80 13 00 00 [12:42:24]Write to MH i2c: E2 08 00 B8 31 80 13 00 00 00 00 00 00 65 [12:42:24]Write i2c OK [12:42:24]MH_I2C_Read... [12:42:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:25]Read from MH i2c: E2 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 62 00 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 62 00 B8 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 44 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [12:42:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 44 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:42:25]wFMCommunicate OK [12:42:25]SAM_PROTO_GetFieldsCounters done [12:42:25]requested_item shift.num is exist - process it [12:42:25]requested_item shift.opened is exist - process it [12:42:25]req_shift_opened [12:42:25]FM_GetShiftState [12:42:25]SAM_PROTO_GetShiftState [12:42:25]wFMCommunicate request_size=4 [12:42:25]MH_SAM_APDU [12:42:25]CAPDU: 80 13 01 00 [12:42:25]Write to MH i2c: E2 08 00 B9 31 80 13 01 00 00 00 00 00 67 [12:42:25]Write i2c OK [12:42:25]MH_I2C_Read... [12:42:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:25]Read from MH i2c: E2 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 0E 00 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 0E 00 B9 31 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 D6 [12:42:25]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [12:42:25]wFMCommunicate OK [12:42:25]SAM_PROTO_GetShiftState done [12:42:25]FM_GetShiftState done [12:42:25]req_shift_opened done [12:42:25]requested_item shift.open_date is exist - process it [12:42:25]req_shift_open_date [12:42:25]req_shift_open_date done [12:42:25]produce_requested_data done [12:42:25]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68420,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [12:42:25]process_action_free close_receipt [12:42:25]json_value_free [12:42:25]json_value_free done [12:42:25]process_json_proto returns [12:42:25]Send response to host [12:42:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68420,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [12:42:25]free response buf [12:42:25]execute_script done [12:42:25]execute_script returns [12:42:25]free content buf [12:42:25]Sock 9.Close socket [12:42:25]Sock 9.Thread stoped [12:42:28]OFD Sender: No OFD packet to send [12:42:33]OFD Sender: No OFD packet to send [12:42:38]OFD Sender: No OFD packet to send [12:42:43]OFD Sender: No OFD packet to send [12:42:48]OFD Sender: No OFD packet to send [12:42:53]OFD Sender: No OFD packet to send [12:42:58]OFD Sender: No OFD packet to send [12:43:03]OFD Sender: No OFD packet to send [12:43:08]OFD Sender: No OFD packet to send [12:43:13]OFD Sender: No OFD packet to send [12:43:18]OFD Sender: No OFD packet to send [12:43:23]OFD Sender: No OFD packet to send [12:43:28]OFD Sender: No OFD packet to send [12:43:33]OFD Sender: No OFD packet to send [12:43:38]OFD Sender: No OFD packet to send [12:43:43]OFD Sender: No OFD packet to send [12:43:48]OFD Sender: No OFD packet to send [12:43:53]OFD Sender: No OFD packet to send [12:43:58]OFD Sender: No OFD packet to send [12:44:03]OFD Sender: No OFD packet to send [12:44:08]OFD Sender: No OFD packet to send [12:44:13]OFD Sender: No OFD packet to send [12:44:18]OFD Sender: No OFD packet to send [12:44:23]OFD Sender: No OFD packet to send [12:44:28]OFD Sender: No OFD packet to send [12:44:33]OFD Sender: No OFD packet to send [12:44:38]OFD Sender: No OFD packet to send [12:44:43]OFD Sender: No OFD packet to send [12:44:48]OFD Sender: No OFD packet to send [12:44:53]OFD Sender: No OFD packet to send [12:44:58]OFD Sender: No OFD packet to send [12:45:03]OFD Sender: No OFD packet to send [12:45:08]OFD Sender: No OFD packet to send [12:45:13]OFD Sender: No OFD packet to send [12:45:16]accept exits with 7 [12:45:16]New connection [12:45:16]New thread 3067276644 created [12:45:16]Thread 3067133284 joined [12:45:16]Waiting for new connection... [12:45:16] Sock 7.Parse request [12:45:16]Sock 7.Check first char [12:45:16]Sock 7.First char is OK [12:45:16]request: POST /json_proto HTTP/1.0 [12:45:16]Method: POST [12:45:16]URL: /json_proto [12:45:16]Method is POST - this is cgi request [12:45:16]url: /json_proto [12:45:16]query_string will be loaded in cgi processing [12:45:16]execute_cgi json_proto POST (null) [12:45:16]execute_cgi path=json_proto method=POST [12:45:16]POST find Content-Length [12:45:16]Host: 172.17.52.3:8080 [12:45:16]Content-Length: 682 [12:45:16]Content-Type: application/json [12:45:16] [12:45:16]POST finish read [12:45:16]Found Content-Length = 682 [12:45:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:45:16]execute_script... [12:45: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)210418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:45:16]POST & json_proto [12:45:16]process_json_proto [12:45:16]json parsed OK: [12:45:16]protocol is kg_v1.0 [12:45:16]action value=close_receipt [12:45:16]process_action close_receipt [12:45:16]cmd_close_receipt [12:45:16]MH_GetDate [12:45:16]Write to MH i2c: F0 00 00 BA 31 DA [12:45:16]Write i2c OK [12:45:16]MH_I2C_Read... [12:45:16]Read from MH i2c: F0 [12:45:16]MH_I2C_Read... [12:45:16]Read from MH i2c: F0 09 00 [12:45:16]MH_I2C_Read... [12:45:16]Read from MH i2c: F0 09 00 BA 31 00 E5 EF 18 67 D7 68 A5 64 7E [12:45:16]GetLastDocTimeStamp 1729687350 [12:45:16]current date 1729687525 [12:45:16]FM_GetShiftState [12:45:16]SAM_PROTO_GetShiftState [12:45:16]wFMCommunicate request_size=4 [12:45:16]MH_SAM_APDU [12:45:16]CAPDU: 80 13 01 00 [12:45:16]Write to MH i2c: E2 08 00 BB 31 80 13 01 00 00 00 00 00 69 [12:45:16]Write i2c OK [12:45:16]MH_I2C_Read... [12:45:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:16]Read from MH i2c: E2 [12:45:16]MH_I2C_Read... [12:45:16]Read from MH i2c: E2 0E 00 [12:45:16]MH_I2C_Read... [12:45:16]Read from MH i2c: E2 0E 00 BB 31 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 D8 [12:45:16]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [12:45:16]wFMCommunicate OK [12:45:16]SAM_PROTO_GetShiftState done [12:45:16]FM_GetShiftState done [12:45:16]opened in 1729641385 [12:45:16]opened+sec_in_day 1729727785 [12:45:16]quantity*price = 100015 [12:45:16]sum+1 = 100017 [12:45:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 44 23.10.2024 12:45 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68421 ФПД: 196187294131691 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124525&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68421&fm=196187294131691&tin=02508201610067®Number=0000000000091756&sum=100000 [12:45:17]StoreToDocumentArchive [12:45:17]shift 507 fd 68421 [12:45:17]save to /storage/0507/doc_00068421 [12:45:17]save last doc name /storage/0507/doc_00068421 to /storage/kkm_last_doc_name [12:45:17]save OK [12:45:17]Clear old archive folders... [12:45:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:45:17]tlvbuf is 0203C360 [12:45:17]SAM_PROTO_ClearQueue [12:45:17]wFMCommunicate request_size=4 [12:45:17]MH_SAM_APDU [12:45:17]CAPDU: 80 09 00 00 [12:45:17]Write to MH i2c: E2 08 00 C8 31 80 09 00 00 00 00 00 00 6B [12:45:17]Write i2c OK [12:45:17]MH_I2C_Read... [12:45:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:45:17]Read from MH i2c: E2 [12:45:17]MH_I2C_Read... [12:45:17]Read from MH i2c: E2 03 00 [12:45:17]MH_I2C_Read... [12:45:17]Read from MH i2c: E2 03 00 C8 31 00 90 00 6D [12:45:17]RAPDU: 90 00 [12:45:17]wFMCommunicate OK [12:45:17]SAM_PROTO_ClearQueue done [12:45:17]KKMCreateOFDPacket [12:45:17]OFDProtocolAddRootSTLVToBuf [12:45:17]FM_MakeSignedData [12:45:17]FM_MakeSignedData [12:45:17]SAM_PROTO_SignData [12:45:17]wFMCommunicate request_size=4 [12:45:17]MH_SAM_APDU [12:45:17]CAPDU: 80 0D 01 02 [12:45:17]Write to MH i2c: E2 08 00 C9 31 80 0D 01 02 00 00 00 00 73 [12:45:17]Write i2c OK [12:45:17]MH_I2C_Read... [12:45:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:45:17]Read from MH i2c: E2 [12:45:17]MH_I2C_Read... [12:45:17]Read from MH i2c: E2 03 00 [12:45:17]MH_I2C_Read... [12:45:17]Read from MH i2c: E2 03 00 C9 31 00 90 00 6E [12:45:17]RAPDU: 90 00 [12:45:17]wFMCommunicate OK [12:45:17]wFMCommunicate request_size=255 [12:45:17]MH_SAM_APDU [12:45: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 32 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 2C 00 00 00 F4 03 04 00 E5 EF 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 45 0B 01 00 35 04 06 00 B2 [12:45:17]Write to MH i2c: E2 02 01 CA 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2C 00 00 00 F4 03 04 00 E5 EF 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 45 0B 01 00 35 04 06 00 B2 00 00 7B [12:45:17]Write i2c OK [12:45:17]MH_I2C_Read... [12:45:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:18]Read from MH i2c: E2 [12:45:18]MH_I2C_Read... [12:45:18]Read from MH i2c: E2 03 00 [12:45:18]MH_I2C_Read... [12:45:18]Read from MH i2c: E2 03 00 CA 31 00 90 00 6F [12:45:18]RAPDU: 90 00 [12:45:18]wFMCommunicate OK [12:45:18]wFMCommunicate request_size=10 [12:45:18]MH_SAM_APDU [12:45:18]CAPDU: 80 0D 02 02 05 6E 69 F9 E5 EB [12:45:18]Write to MH i2c: E2 0D 00 CB 31 80 0D 02 02 05 00 6E 69 F9 E5 EB 00 00 20 [12:45:18]Write i2c OK [12:45:18]MH_I2C_Read... [12:45:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:18]Read from MH i2c: E2 [12:45:18]MH_I2C_Read... [12:45:18]Read from MH i2c: E2 03 00 [12:45:18]MH_I2C_Read... [12:45:18]Read from MH i2c: E2 03 00 CB 31 00 90 00 70 [12:45:18]RAPDU: 90 00 [12:45:18]wFMCommunicate OK [12:45:18]wFMCommunicate request_size=4 [12:45:18]MH_SAM_APDU [12:45:18]CAPDU: 80 0D 03 02 [12:45:18]Write to MH i2c: E2 08 00 CC 31 80 0D 03 02 00 00 00 00 78 [12:45:18]Write i2c OK [12:45:18]MH_I2C_Read... [12:45:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:45:18]Read from MH i2c: E2 [12:45:18]MH_I2C_Read... [12:45:18]Read from MH i2c: E2 0B 00 [12:45:18]MH_I2C_Read... [12:45:18]Read from MH i2c: E2 0B 00 CC 31 00 40 98 B2 B9 C0 F8 EB F0 90 00 4F [12:45:18]RAPDU: 40 98 B2 B9 C0 F8 EB F0 90 00 [12:45:18]wFMCommunicate OK [12:45:18]SAM_PROTO_SignData done [12:45:18]FM_MakeSignedData done [12:45:18]CreateOFDProtocolMessage [12:45:18]wFMCommunicate request_size=4 [12:45:18]MH_SAM_APDU [12:45:18]CAPDU: 80 11 00 00 [12:45:18]Write to MH i2c: E2 08 00 CD 31 80 11 00 00 00 00 00 00 78 [12:45:18]Write i2c OK [12:45:18]MH_I2C_Read... [12:45:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:18]Read from MH i2c: E2 [12:45:18]MH_I2C_Read... [12:45:18]Read from MH i2c: E2 17 00 [12:45:18]MH_I2C_Read... [12:45:18]Read from MH i2c: E2 17 00 CD 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 CC [12:45:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [12:45:18]wFMCommunicate OK [12:45:18]CreateOFDProtocolMessage done [12:45:18]OFDSenderStorePacket 68421 [12:45:18]StoreOFDPacket docnum=68421 [12:45:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 E8 60 07 01 F7 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2C 00 00 00 F4 03 04 00 E5 EF 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 45 0B 01 00 35 04 06 00 B2 6E 69 F9 E5 EB 40 98 B2 B9 C0 F8 EB F0 [12:45:18]CheckFolder [12:45:18]dirname=/storage/ofd_packets [12:45:18]CheckFolder done [12:45:18]ProducePacketName [12:45:18]name=ofd_packets/00068421 [12:45:18]NVStorageSaveData ofd_packets/00068421 [12:45:18]File name is /storage/ofd_packets/00068421 [12:45:18]Write 301 bytes [12:45:18]NVStorageSaveData done [12:45:18]OFDSenderStorePacket done [12:45:18]KKMCreateOFDPacket done [12:45:18]NVStorageSaveData kkm_last_timestamp [12:45:18]File name is /storage/kkm_last_timestamp [12:45:18]Write 4 bytes [12:45:18]NVStorageSaveData done [12:45:18]ExternCall_PrintAddStr [12:45:18]wPrintStart [12:45:18]Write to MH i2c: 01 00 00 CE 31 FF [12:45:18]Write i2c OK [12:45:18]MH_I2C_Read... [12:45:18]Read from MH i2c: 01 [12:45:18]MH_I2C_Read... [12:45:18]Read from MH i2c: 01 07 00 [12:45:18]MH_I2C_Read... [12:45:18]Read from MH i2c: 01 07 00 CE 31 00 04 00 00 00 FF 0F 18 [12:45:18]RasterBufferAndPrint [12:45:18]line Счет N : (1)210418 [12:45:18]line ИНН: 02508201610067 [12:45:18]line Контрольно-Кассовый Чек [12:45:18]line ПРОДАЖА [12:45:18]line ТРК (МРК, ГНК) : 11 [12:45:18]line Товар: 2710124130 [12:45:18]line Аи-92-К-2 [12:45:18]line 14.950 * 66.90 [12:45:18]line = 1000.16 [12:45:18]line НДС 12% НСП 1% [12:45:18]line > о реализуемом товаре [12:45:18]line ОКРУГЛЕНИЕ: -0.16 [12:45:18]line ИТОГО: 1000.00 [12:45:18]line Внесено: 1000.00 [12:45:18]line СДАЧА: 0.00 [12:45:18]line НСП 1% : 8.85 [12:45:18]line НДС 12% : 106.21 [12:45:18]line Наличными: 1000.00 [12:45:18]line Безнал.: 0.00 [12:45:18]line Место: АЗС № 147 "Партнер Нефть" [12:45:18]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [12:45:18]line СНО: Общий режим [12:45:18]line Чек 44 23.10.2024 12:45 [12:45:18]line Смена: 507 ФФД: 1.0 [12:45:18]line ЗНМ: 0300000094 [12:45:18]line РНМ: 0000000000091756 [12:45:18]line Версия ККМ: 001 [12:45:18]line ФМ: 0000000000871809 [12:45:18]line ФД: 68421 [12:45:18]line ФПД: 196187294131691 [12:45:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124525&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68421&fm=196187294131691&tin=02508201610067®Number=0000000000091756&sum=100000 [12:45:18]written 0, free lines is 4095 [12:45:18]OFD Sender: Processing packet 68421 [packets to send 8, broken 7] [12:45:18]ProducePacketName [12:45:18]name=ofd_packets/00068421 [12:45:18]OFD Sender: To server: pG, [12:45:18]CommunicateWithHost lk.salyk.kg:30040 [12:45:18]ConnectInit lk.salyk.kg [12:45:18]Connected sock=10 [12:45:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 E8 60 07 01 F7 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2C 00 00 00 F4 03 04 00 E5 EF 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 45 0B 01 00 35 04 06 00 B2 6E 69 F9 E5 EB 40 98 B2 B9 C0 F8 EB F0 [12:45:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 E4 FA 47 00 34 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 45 0B 01 00 F4 03 04 00 DA 95 18 67 B6 04 01 00 00 B9 5B EE 0F 04 CA 40 F9 [12:45:18]CommunicateWithHost err = 0 [12:45:18]CheckOFDResponse [12:45:18]1017 (14) - 77093643461234 [12:45:18]1041 (16) - 0000000000871809 [12:45:18]1040 (4) - 68421 [12:45:18]1012 (4) - 23.10.2024 06:21 [12:45:18]1206 (1) - 0 [12:45:18]OFD Sender: Remove packet 68421 [12:45:18]ProducePacketName [12:45:18]name=ofd_packets/00068421 [12:45:18]NVStorageDeleteData [12:45:19]Write to MH i2c: 01 00 00 F8 31 29 [12:45:19]Write i2c OK [12:45:19]MH_I2C_Read... [12:45:19]Read from MH i2c: 01 [12:45:19]MH_I2C_Read... [12:45:19]Read from MH i2c: 01 07 00 [12:45:19]MH_I2C_Read... [12:45:19]Read from MH i2c: 01 07 00 F8 31 00 04 00 00 00 A0 0C E0 [12:45:19]RasterBufferAndPrint [12:45:19]line [12:45:19]line [12:45:19]line [12:45:19]line [12:45:19]line [12:45:19]written 0, free lines is 3238 [12:45:19]MH_Cut [12:45:19]Write to MH i2c: D1 01 00 FF 31 01 02 [12:45:19]Write i2c OK [12:45:19]MH_I2C_Read... [12:45:19]Read from MH i2c: D1 [12:45:19]MH_I2C_Read... [12:45:19]Read from MH i2c: D1 01 00 [12:45:19]MH_I2C_Read... [12:45:19]Read from MH i2c: D1 01 00 FF 31 00 01 [12:45:19]Write to MH i2c: 01 00 00 00 32 32 [12:45:19]Write i2c OK [12:45:19]MH_I2C_Read... [12:45:19]OFD Sender: No OFD packet to send [12:45:19]*** Cut start [12:45:19]*** Partial cut [12:45:19]*** CUTSNS_PIN = 1 [12:45:20]*** CUTSNS_PIN = 0 [12:45:20]*** Brake cut motor [12:45:20]Read from MH i2c: 01 [12:45:20]MH_I2C_Read... [12:45:20]*** Stop cut motor [12:45:20]*** Cut end [12:45:20]Read from MH i2c: 01 07 00 [12:45:20]MH_I2C_Read... [12:45:20]Read from MH i2c: 01 07 00 00 32 00 04 00 00 00 FF 0F 4B [12:45:20]process_action close_receipt done [12:45:20]requested_data is exist [12:45:20]produce_requested_data [12:45:20]requested_item fm.sn is exist - process it [12:45:20]wFMCommunicate request_size=4 [12:45:20]MH_SAM_APDU [12:45:20]CAPDU: 80 11 00 00 [12:45:20]Write to MH i2c: E2 08 00 01 32 80 11 00 00 00 00 00 00 AD [12:45:20]Write i2c OK [12:45:20]MH_I2C_Read... [12:45:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:20]Read from MH i2c: E2 [12:45:20]MH_I2C_Read... [12:45:20]Read from MH i2c: E2 17 00 [12:45:20]MH_I2C_Read... [12:45:20]Read from MH i2c: E2 17 00 01 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 01 [12:45:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [12:45:20]wFMCommunicate OK [12:45:20]requested_item fd.num is exist - process it [12:45:20]SAM_PROTO_GetFieldsCounters [12:45:20]wFMCommunicate request_size=4 [12:45:20]MH_SAM_APDU [12:45:20]CAPDU: 80 13 00 00 [12:45:20]Write to MH i2c: E2 08 00 02 32 80 13 00 00 00 00 00 00 B0 [12:45:20]Write i2c OK [12:45:20]MH_I2C_Read... [12:45:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:45:20]Read from MH i2c: E2 [12:45:20]MH_I2C_Read... [12:45:20]Read from MH i2c: E2 62 00 [12:45:20]MH_I2C_Read... [12:45:20]Read from MH i2c: E2 62 00 02 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 45 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [12:45:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 45 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:45:20]wFMCommunicate OK [12:45:20]SAM_PROTO_GetFieldsCounters done [12:45:20]requested_item shift.num is exist - process it [12:45:20]requested_item shift.opened is exist - process it [12:45:20]req_shift_opened [12:45:20]FM_GetShiftState [12:45:20]SAM_PROTO_GetShiftState [12:45:20]wFMCommunicate request_size=4 [12:45:20]MH_SAM_APDU [12:45:20]CAPDU: 80 13 01 00 [12:45:20]Write to MH i2c: E2 08 00 03 32 80 13 01 00 00 00 00 00 B2 [12:45:20]Write i2c OK [12:45:20]MH_I2C_Read... [12:45:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:20]Read from MH i2c: E2 [12:45:20]MH_I2C_Read... [12:45:20]Read from MH i2c: E2 0E 00 [12:45:20]MH_I2C_Read... [12:45:20]Read from MH i2c: E2 0E 00 03 32 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 21 [12:45:20]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [12:45:20]wFMCommunicate OK [12:45:20]SAM_PROTO_GetShiftState done [12:45:20]FM_GetShiftState done [12:45:20]req_shift_opened done [12:45:20]requested_item shift.open_date is exist - process it [12:45:20]req_shift_open_date [12:45:20]req_shift_open_date done [12:45:20]produce_requested_data done [12:45:20]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68421,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [12:45:20]process_action_free close_receipt [12:45:20]json_value_free [12:45:20]json_value_free done [12:45:20]process_json_proto returns [12:45:20]Send response to host [12:45:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68421,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [12:45:20]free response buf [12:45:20]execute_script done [12:45:20]execute_script returns [12:45:20]free content buf [12:45:20]Sock 7.Close socket [12:45:20]Sock 7.Thread stoped [12:45:24]OFD Sender: No OFD packet to send [12:45:29]OFD Sender: No OFD packet to send [12:45:34]OFD Sender: No OFD packet to send [12:45:39]OFD Sender: No OFD packet to send [12:45:44]OFD Sender: No OFD packet to send [12:45:49]OFD Sender: No OFD packet to send [12:45:54]OFD Sender: No OFD packet to send [12:45:59]OFD Sender: No OFD packet to send [12:46:04]OFD Sender: No OFD packet to send [12:46:09]OFD Sender: No OFD packet to send [12:46:14]OFD Sender: No OFD packet to send [12:46:19]OFD Sender: No OFD packet to send [12:46:24]OFD Sender: No OFD packet to send [12:46:29]OFD Sender: No OFD packet to send [12:46:34]OFD Sender: No OFD packet to send [12:46:39]OFD Sender: No OFD packet to send [12:46:44]OFD Sender: No OFD packet to send [12:46:49]OFD Sender: No OFD packet to send [12:46:54]OFD Sender: No OFD packet to send [12:46:59]OFD Sender: No OFD packet to send [12:47:04]OFD Sender: No OFD packet to send [12:47:09]OFD Sender: No OFD packet to send [12:47:14]OFD Sender: No OFD packet to send [12:47:19]OFD Sender: No OFD packet to send [12:47:24]OFD Sender: No OFD packet to send [12:47:29]OFD Sender: No OFD packet to send [12:47:34]OFD Sender: No OFD packet to send [12:47:39]OFD Sender: No OFD packet to send [12:47:44]OFD Sender: No OFD packet to send [12:47:49]OFD Sender: No OFD packet to send [12:47:54]OFD Sender: No OFD packet to send [12:47:59]OFD Sender: No OFD packet to send [12:48:04]OFD Sender: No OFD packet to send [12:48:09]OFD Sender: No OFD packet to send [12:48:14]OFD Sender: No OFD packet to send [12:48:19]OFD Sender: No OFD packet to send [12:48:24]OFD Sender: No OFD packet to send [12:48:29]OFD Sender: No OFD packet to send [12:48:34]OFD Sender: No OFD packet to send [12:48:39]OFD Sender: No OFD packet to send [12:48:44]OFD Sender: No OFD packet to send [12:48:49]OFD Sender: No OFD packet to send [12:48:54]OFD Sender: No OFD packet to send [12:48:59]OFD Sender: No OFD packet to send [12:49:04]OFD Sender: No OFD packet to send [12:49:09]OFD Sender: No OFD packet to send [12:49:14]OFD Sender: No OFD packet to send [12:49:19]OFD Sender: No OFD packet to send [12:49:24]OFD Sender: No OFD packet to send [12:49:29]OFD Sender: No OFD packet to send [12:49:34]OFD Sender: No OFD packet to send [12:49:39]OFD Sender: No OFD packet to send [12:49:44]OFD Sender: No OFD packet to send [12:49:49]OFD Sender: No OFD packet to send [12:49:54]OFD Sender: No OFD packet to send [12:49:59]OFD Sender: No OFD packet to send [12:50:04]OFD Sender: No OFD packet to send [12:50:09]OFD Sender: No OFD packet to send [12:50:14]OFD Sender: No OFD packet to send [12:50:19]OFD Sender: No OFD packet to send [12:50:24]OFD Sender: No OFD packet to send [12:50:29]OFD Sender: No OFD packet to send [12:50:34]OFD Sender: No OFD packet to send [12:50:39]OFD Sender: No OFD packet to send [12:50:44]OFD Sender: No OFD packet to send [12:50:49]OFD Sender: No OFD packet to send [12:50:54]OFD Sender: No OFD packet to send [12:50:59]OFD Sender: No OFD packet to send [12:51:04]OFD Sender: No OFD packet to send [12:51:09]OFD Sender: No OFD packet to send [12:51:14]OFD Sender: No OFD packet to send [12:51:19]OFD Sender: No OFD packet to send [12:51:24]OFD Sender: No OFD packet to send [12:51:29]OFD Sender: No OFD packet to send [12:51:34]OFD Sender: No OFD packet to send [12:51:39]OFD Sender: No OFD packet to send [12:51:44]OFD Sender: No OFD packet to send [12:51:49]OFD Sender: No OFD packet to send [12:51:54]OFD Sender: No OFD packet to send [12:51:59]OFD Sender: No OFD packet to send [12:52:04]OFD Sender: No OFD packet to send [12:52:09]OFD Sender: No OFD packet to send [12:52:14]OFD Sender: No OFD packet to send [12:52:19]OFD Sender: No OFD packet to send [12:52:24]OFD Sender: No OFD packet to send [12:52:29]OFD Sender: No OFD packet to send [12:52:34]OFD Sender: No OFD packet to send [12:52:39]OFD Sender: No OFD packet to send [12:52:44]OFD Sender: No OFD packet to send [12:52:49]OFD Sender: No OFD packet to send [12:52:54]OFD Sender: No OFD packet to send [12:52:59]OFD Sender: No OFD packet to send [12:53:04]OFD Sender: No OFD packet to send [12:53:09]OFD Sender: No OFD packet to send [12:53:14]OFD Sender: No OFD packet to send [12:53:19]OFD Sender: No OFD packet to send [12:53:24]OFD Sender: No OFD packet to send [12:53:29]OFD Sender: No OFD packet to send [12:53:34]OFD Sender: No OFD packet to send [12:53:39]OFD Sender: No OFD packet to send [12:53:44]OFD Sender: No OFD packet to send [12:53:49]OFD Sender: No OFD packet to send [12:53:54]OFD Sender: No OFD packet to send [12:53:59]OFD Sender: No OFD packet to send [12:54:04]OFD Sender: No OFD packet to send [12:54:09]OFD Sender: No OFD packet to send [12:54:14]OFD Sender: No OFD packet to send [12:54:19]OFD Sender: No OFD packet to send [12:54:24]OFD Sender: No OFD packet to send [12:54:29]OFD Sender: No OFD packet to send [12:54:34]OFD Sender: No OFD packet to send [12:54:39]OFD Sender: No OFD packet to send [12:54:44]OFD Sender: No OFD packet to send [12:54:49]OFD Sender: No OFD packet to send [12:54:54]OFD Sender: No OFD packet to send [12:54:59]OFD Sender: No OFD packet to send [12:55:04]OFD Sender: No OFD packet to send [12:55:09]OFD Sender: No OFD packet to send [12:55:14]OFD Sender: No OFD packet to send [12:55:19]OFD Sender: No OFD packet to send [12:55:24]OFD Sender: No OFD packet to send [12:55:29]OFD Sender: No OFD packet to send [12:55:34]OFD Sender: No OFD packet to send [12:55:39]OFD Sender: No OFD packet to send [12:55:44]OFD Sender: No OFD packet to send [12:55:49]OFD Sender: No OFD packet to send [12:55:54]OFD Sender: No OFD packet to send [12:55:59]OFD Sender: No OFD packet to send [12:56:04]OFD Sender: No OFD packet to send [12:56:09]OFD Sender: No OFD packet to send [12:56:14]OFD Sender: No OFD packet to send [12:56:19]OFD Sender: No OFD packet to send [12:56:24]OFD Sender: No OFD packet to send [12:56:29]OFD Sender: No OFD packet to send [12:56:34]OFD Sender: No OFD packet to send [12:56:39]OFD Sender: No OFD packet to send [12:56:45]OFD Sender: No OFD packet to send [12:56:50]OFD Sender: No OFD packet to send [12:56:55]OFD Sender: No OFD packet to send [12:57:00]OFD Sender: No OFD packet to send [12:57:05]OFD Sender: No OFD packet to send [12:57:10]OFD Sender: No OFD packet to send [12:57:15]OFD Sender: No OFD packet to send [12:57:20]OFD Sender: No OFD packet to send [12:57:25]OFD Sender: No OFD packet to send [12:57:30]OFD Sender: No OFD packet to send [12:57:35]OFD Sender: No OFD packet to send [12:57:40]OFD Sender: No OFD packet to send [12:57:45]OFD Sender: No OFD packet to send [12:57:50]OFD Sender: No OFD packet to send [12:57:55]OFD Sender: No OFD packet to send [12:58:00]OFD Sender: No OFD packet to send [12:58:05]OFD Sender: No OFD packet to send [12:58:10]OFD Sender: No OFD packet to send [12:58:15]OFD Sender: No OFD packet to send [12:58:20]OFD Sender: No OFD packet to send [12:58:25]OFD Sender: No OFD packet to send [12:58:30]OFD Sender: No OFD packet to send [12:58:35]OFD Sender: No OFD packet to send [12:58:40]OFD Sender: No OFD packet to send [12:58:45]OFD Sender: No OFD packet to send [12:58:50]OFD Sender: No OFD packet to send [12:58:55]OFD Sender: No OFD packet to send [12:59:00]OFD Sender: No OFD packet to send [12:59:05]OFD Sender: No OFD packet to send [12:59:10]OFD Sender: No OFD packet to send [12:59:15]OFD Sender: No OFD packet to send [12:59:20]OFD Sender: No OFD packet to send [12:59:25]OFD Sender: No OFD packet to send [12:59:30]OFD Sender: No OFD packet to send [12:59:35]OFD Sender: No OFD packet to send [12:59:40]OFD Sender: No OFD packet to send [12:59:45]OFD Sender: No OFD packet to send [12:59:50]OFD Sender: No OFD packet to send [12:59:55]OFD Sender: No OFD packet to send [13:00:00]OFD Sender: No OFD packet to send [13:00:05]OFD Sender: No OFD packet to send [13:00:10]OFD Sender: No OFD packet to send [13:00:15]OFD Sender: No OFD packet to send [13:00:20]OFD Sender: No OFD packet to send [13:00:25]OFD Sender: No OFD packet to send [13:00:30]OFD Sender: No OFD packet to send [13:00:35]OFD Sender: No OFD packet to send [13:00:40]OFD Sender: No OFD packet to send [13:00:45]OFD Sender: No OFD packet to send [13:00:50]OFD Sender: No OFD packet to send [13:00:55]OFD Sender: No OFD packet to send [13:01:00]OFD Sender: No OFD packet to send [13:01:05]OFD Sender: No OFD packet to send [13:01:10]OFD Sender: No OFD packet to send [13:01:15]OFD Sender: No OFD packet to send [13:01:20]OFD Sender: No OFD packet to send [13:01:25]OFD Sender: No OFD packet to send [13:01:30]OFD Sender: No OFD packet to send [13:01:35]OFD Sender: No OFD packet to send [13:01:40]OFD Sender: No OFD packet to send [13:01:45]OFD Sender: No OFD packet to send [13:01:50]OFD Sender: No OFD packet to send [13:01:55]OFD Sender: No OFD packet to send [13:02:00]OFD Sender: No OFD packet to send [13:02:05]OFD Sender: No OFD packet to send [13:02:10]OFD Sender: No OFD packet to send [13:02:15]OFD Sender: No OFD packet to send [13:02:20]OFD Sender: No OFD packet to send [13:02:25]OFD Sender: No OFD packet to send [13:02:30]OFD Sender: No OFD packet to send [13:02:35]OFD Sender: No OFD packet to send [13:02:40]OFD Sender: No OFD packet to send [13:02:45]OFD Sender: No OFD packet to send [13:02:50]OFD Sender: No OFD packet to send [13:02:55]OFD Sender: No OFD packet to send [13:03:00]OFD Sender: No OFD packet to send [13:03:05]OFD Sender: No OFD packet to send [13:03:10]OFD Sender: No OFD packet to send [13:03:15]OFD Sender: No OFD packet to send [13:03:20]OFD Sender: No OFD packet to send [13:03:25]OFD Sender: No OFD packet to send [13:03:30]OFD Sender: No OFD packet to send [13:03:35]OFD Sender: No OFD packet to send [13:03:40]OFD Sender: No OFD packet to send [13:03:45]OFD Sender: No OFD packet to send [13:03:50]OFD Sender: No OFD packet to send [13:03:55]OFD Sender: No OFD packet to send [13:04:00]OFD Sender: No OFD packet to send [13:04:05]OFD Sender: No OFD packet to send [13:04:10]OFD Sender: No OFD packet to send [13:04:15]OFD Sender: No OFD packet to send [13:04:20]OFD Sender: No OFD packet to send [13:04:25]OFD Sender: No OFD packet to send [13:04:30]OFD Sender: No OFD packet to send [13:04:35]OFD Sender: No OFD packet to send [13:04:40]OFD Sender: No OFD packet to send [13:04:45]OFD Sender: No OFD packet to send [13:04:50]OFD Sender: No OFD packet to send [13:04:55]OFD Sender: No OFD packet to send [13:05:00]OFD Sender: No OFD packet to send [13:05:05]OFD Sender: No OFD packet to send [13:05:10]OFD Sender: No OFD packet to send [13:05:15]OFD Sender: No OFD packet to send [13:05:20]OFD Sender: No OFD packet to send [13:05:25]OFD Sender: No OFD packet to send [13:05:30]OFD Sender: No OFD packet to send [13:05:35]OFD Sender: No OFD packet to send [13:05:40]OFD Sender: No OFD packet to send [13:05:45]OFD Sender: No OFD packet to send [13:05:50]OFD Sender: No OFD packet to send [13:05:55]OFD Sender: No OFD packet to send [13:06:00]OFD Sender: No OFD packet to send [13:06:05]OFD Sender: No OFD packet to send [13:06:10]OFD Sender: No OFD packet to send [13:06:15]OFD Sender: No OFD packet to send [13:06:20]OFD Sender: No OFD packet to send [13:06:25]OFD Sender: No OFD packet to send [13:06:30]OFD Sender: No OFD packet to send [13:06:35]OFD Sender: No OFD packet to send [13:06:40]OFD Sender: No OFD packet to send [13:06:45]OFD Sender: No OFD packet to send [13:06:50]OFD Sender: No OFD packet to send [13:06:55]OFD Sender: No OFD packet to send [13:07:00]OFD Sender: No OFD packet to send [13:07:05]OFD Sender: No OFD packet to send [13:07:10]OFD Sender: No OFD packet to send [13:07:15]OFD Sender: No OFD packet to send [13:07:20]OFD Sender: No OFD packet to send [13:07:25]OFD Sender: No OFD packet to send [13:07:30]OFD Sender: No OFD packet to send [13:07:35]OFD Sender: No OFD packet to send [13:07:40]OFD Sender: No OFD packet to send [13:07:45]OFD Sender: No OFD packet to send [13:07:50]OFD Sender: No OFD packet to send [13:07:55]OFD Sender: No OFD packet to send [13:08:00]OFD Sender: No OFD packet to send [13:08:05]OFD Sender: No OFD packet to send [13:08:10]OFD Sender: No OFD packet to send [13:08:15]OFD Sender: No OFD packet to send [13:08:20]OFD Sender: No OFD packet to send [13:08:25]OFD Sender: No OFD packet to send [13:08:30]OFD Sender: No OFD packet to send [13:08:35]OFD Sender: No OFD packet to send [13:08:40]OFD Sender: No OFD packet to send [13:08:45]OFD Sender: No OFD packet to send [13:08:50]OFD Sender: No OFD packet to send [13:08:55]OFD Sender: No OFD packet to send [13:09:00]OFD Sender: No OFD packet to send [13:09:05]OFD Sender: No OFD packet to send [13:09:10]OFD Sender: No OFD packet to send [13:09:15]OFD Sender: No OFD packet to send [13:09:20]OFD Sender: No OFD packet to send [13:09:25]OFD Sender: No OFD packet to send [13:09:30]OFD Sender: No OFD packet to send [13:09:35]OFD Sender: No OFD packet to send [13:09:40]OFD Sender: No OFD packet to send [13:09:45]OFD Sender: No OFD packet to send [13:09:50]OFD Sender: No OFD packet to send [13:09:55]OFD Sender: No OFD packet to send [13:10:00]OFD Sender: No OFD packet to send [13:10:05]OFD Sender: No OFD packet to send [13:10:10]OFD Sender: No OFD packet to send [13:10:15]OFD Sender: No OFD packet to send [13:10:20]OFD Sender: No OFD packet to send [13:10:25]OFD Sender: No OFD packet to send [13:10:30]OFD Sender: No OFD packet to send [13:10:35]OFD Sender: No OFD packet to send [13:10:40]OFD Sender: No OFD packet to send [13:10:45]OFD Sender: No OFD packet to send [13:10:50]OFD Sender: No OFD packet to send [13:10:55]OFD Sender: No OFD packet to send [13:11:00]OFD Sender: No OFD packet to send [13:11:05]OFD Sender: No OFD packet to send [13:11:10]OFD Sender: No OFD packet to send [13:11:15]OFD Sender: No OFD packet to send [13:11:20]OFD Sender: No OFD packet to send [13:11:25]OFD Sender: No OFD packet to send [13:11:30]OFD Sender: No OFD packet to send [13:11:35]OFD Sender: No OFD packet to send [13:11:40]OFD Sender: No OFD packet to send [13:11:45]OFD Sender: No OFD packet to send [13:11:50]OFD Sender: No OFD packet to send [13:11:55]OFD Sender: No OFD packet to send [13:12:00]OFD Sender: No OFD packet to send [13:12:05]OFD Sender: No OFD packet to send [13:12:10]OFD Sender: No OFD packet to send [13:12:15]OFD Sender: No OFD packet to send [13:12:20]OFD Sender: No OFD packet to send [13:12:25]OFD Sender: No OFD packet to send [13:12:30]OFD Sender: No OFD packet to send [13:12:33]accept exits with 9 [13:12:33]New connection [13:12:33]New thread 3067133284 created [13:12:33]Thread 3067276644 joined [13:12:33]Waiting for new connection... [13:12:33] Sock 9.Parse request [13:12:33]Sock 9.Check first char [13:12:33]Sock 9.First char is OK [13:12:33]request: POST /json_proto HTTP/1.0 [13:12:33]Method: POST [13:12:33]URL: /json_proto [13:12:33]Method is POST - this is cgi request [13:12:33]url: /json_proto [13:12:33]query_string will be loaded in cgi processing [13:12:33]execute_cgi json_proto POST (null) [13:12:33]execute_cgi path=json_proto method=POST [13:12:33]POST find Content-Length [13:12:33]Host: 172.17.52.3:8080 [13:12:33]Content-Length: 674 [13:12:33]Content-Type: application/json [13:12:33] [13:12:33]POST finish read [13:12:33]Found Content-Length = 674 [13:12:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 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" ] } } [13:12:33]execute_script... [13:12: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)210419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 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" ] } } [13:12:33]POST & json_proto [13:12:33]process_json_proto [13:12:33]json parsed OK: [13:12:33]protocol is kg_v1.0 [13:12:33]action value=close_receipt [13:12:33]process_action close_receipt [13:12:33]cmd_close_receipt [13:12:33]MH_GetDate [13:12:33]Write to MH i2c: F0 00 00 04 32 25 [13:12:33]Write i2c OK [13:12:33]MH_I2C_Read... [13:12:33]Read from MH i2c: F0 [13:12:33]MH_I2C_Read... [13:12:33]Read from MH i2c: F0 09 00 [13:12:33]MH_I2C_Read... [13:12:33]Read from MH i2c: F0 09 00 04 32 00 4A F6 18 67 D7 68 A5 64 35 [13:12:33]GetLastDocTimeStamp 1729687525 [13:12:33]current date 1729689162 [13:12:33]FM_GetShiftState [13:12:33]SAM_PROTO_GetShiftState [13:12:33]wFMCommunicate request_size=4 [13:12:33]MH_SAM_APDU [13:12:33]CAPDU: 80 13 01 00 [13:12:33]Write to MH i2c: E2 08 00 05 32 80 13 01 00 00 00 00 00 B4 [13:12:33]Write i2c OK [13:12:33]MH_I2C_Read... [13:12:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:33]Read from MH i2c: E2 [13:12:33]MH_I2C_Read... [13:12:33]Read from MH i2c: E2 0E 00 [13:12:33]MH_I2C_Read... [13:12:33]Read from MH i2c: E2 0E 00 05 32 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 23 [13:12:33]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [13:12:33]wFMCommunicate OK [13:12:33]SAM_PROTO_GetShiftState done [13:12:33]FM_GetShiftState done [13:12:33]opened in 1729641385 [13:12:33]opened+sec_in_day 1729727785 [13:12:33]quantity*price = 50063 [13:12:33]sum+1 = 50064 [13:12:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 45 23.10.2024 13:12 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68422 ФПД: 230446210380716 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131242&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68422&fm=230446210380716&tin=02508201610067®Number=0000000000091756&sum=50000 [13:12:34]StoreToDocumentArchive [13:12:34]shift 507 fd 68422 [13:12:34]save to /storage/0507/doc_00068422 [13:12:34]save last doc name /storage/0507/doc_00068422 to /storage/kkm_last_doc_name [13:12:34]save OK [13:12:34]Clear old archive folders... [13:12:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:12:34]tlvbuf is B6F298F0 [13:12:34]SAM_PROTO_ClearQueue [13:12:34]wFMCommunicate request_size=4 [13:12:34]MH_SAM_APDU [13:12:34]CAPDU: 80 09 00 00 [13:12:34]Write to MH i2c: E2 08 00 12 32 80 09 00 00 00 00 00 00 B6 [13:12:34]Write i2c OK [13:12:34]MH_I2C_Read... [13:12:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:34]Read from MH i2c: E2 [13:12:34]MH_I2C_Read... [13:12:34]Read from MH i2c: E2 03 00 [13:12:34]MH_I2C_Read... [13:12:34]Read from MH i2c: E2 03 00 12 32 00 90 00 B8 [13:12:34]RAPDU: 90 00 [13:12:34]wFMCommunicate OK [13:12:34]SAM_PROTO_ClearQueue done [13:12:34]KKMCreateOFDPacket [13:12:34]OFDProtocolAddRootSTLVToBuf [13:12:34]FM_MakeSignedData [13:12:34]FM_MakeSignedData [13:12:34]SAM_PROTO_SignData [13:12:34]wFMCommunicate request_size=4 [13:12:34]MH_SAM_APDU [13:12:34]CAPDU: 80 0D 01 02 [13:12:34]Write to MH i2c: E2 08 00 13 32 80 0D 01 02 00 00 00 00 BE [13:12:34]Write i2c OK [13:12:34]MH_I2C_Read... [13:12:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:34]Read from MH i2c: E2 [13:12:34]MH_I2C_Read... [13:12:34]Read from MH i2c: E2 03 00 [13:12:34]MH_I2C_Read... [13:12:34]Read from MH i2c: E2 03 00 13 32 00 90 00 B9 [13:12:34]RAPDU: 90 00 [13:12:34]wFMCommunicate OK [13:12:34]wFMCommunicate request_size=255 [13:12:34]MH_SAM_APDU [13:12:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 2D 00 00 00 F4 03 04 00 4A F6 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 46 0B 01 00 35 04 06 00 D1 96 F0 82 [13:12:34]Write to MH i2c: E2 02 01 14 32 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 2D 00 00 00 F4 03 04 00 4A F6 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 46 0B 01 00 35 04 06 00 D1 96 F0 82 00 00 DF [13:12:34]Write i2c OK [13:12:34]MH_I2C_Read... [13:12:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:34]Read from MH i2c: E2 [13:12:34]MH_I2C_Read... [13:12:34]Read from MH i2c: E2 03 00 [13:12:34]MH_I2C_Read... [13:12:34]Read from MH i2c: E2 03 00 14 32 00 90 00 BA [13:12:34]RAPDU: 90 00 [13:12:34]wFMCommunicate OK [13:12:34]wFMCommunicate request_size=7 [13:12:34]MH_SAM_APDU [13:12:34]CAPDU: 80 0D 02 02 02 73 AC [13:12:34]Write to MH i2c: E2 0A 00 15 32 80 0D 02 02 02 00 73 AC 00 00 E4 [13:12:34]Write i2c OK [13:12:34]MH_I2C_Read... [13:12:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:34]Read from MH i2c: E2 [13:12:34]MH_I2C_Read... [13:12:34]Read from MH i2c: E2 03 00 [13:12:34]MH_I2C_Read... [13:12:34]Read from MH i2c: E2 03 00 15 32 00 90 00 BB [13:12:34]RAPDU: 90 00 [13:12:34]wFMCommunicate OK [13:12:34]wFMCommunicate request_size=4 [13:12:34]MH_SAM_APDU [13:12:34]CAPDU: 80 0D 03 02 [13:12:34]Write to MH i2c: E2 08 00 16 32 80 0D 03 02 00 00 00 00 C3 [13:12:34]Write i2c OK [13:12:34]MH_I2C_Read... [13:12:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:34]Read from MH i2c: E2 [13:12:34]MH_I2C_Read... [13:12:34]Read from MH i2c: E2 0B 00 [13:12:34]MH_I2C_Read... [13:12:34]Read from MH i2c: E2 0B 00 16 32 00 13 E7 7F 41 2B AF 77 E8 90 00 B7 [13:12:34]RAPDU: 13 E7 7F 41 2B AF 77 E8 90 00 [13:12:34]wFMCommunicate OK [13:12:34]SAM_PROTO_SignData done [13:12:34]FM_MakeSignedData done [13:12:34]CreateOFDProtocolMessage [13:12:34]wFMCommunicate request_size=4 [13:12:34]MH_SAM_APDU [13:12:34]CAPDU: 80 11 00 00 [13:12:34]Write to MH i2c: E2 08 00 17 32 80 11 00 00 00 00 00 00 C3 [13:12:34]Write i2c OK [13:12:34]MH_I2C_Read... [13:12:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:34]Read from MH i2c: E2 [13:12:34]MH_I2C_Read... [13:12:34]Read from MH i2c: E2 17 00 [13:12:34]MH_I2C_Read... [13:12:34]Read from MH i2c: E2 17 00 17 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 17 [13:12:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [13:12:34]wFMCommunicate OK [13:12:34]CreateOFDProtocolMessage done [13:12:34]OFDSenderStorePacket 68422 [13:12:34]StoreOFDPacket docnum=68422 [13:12:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0C 01 00 00 08 D0 04 01 7D A6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 2D 00 00 00 F4 03 04 00 4A F6 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 46 0B 01 00 35 04 06 00 D1 96 F0 82 73 AC 13 E7 7F 41 2B AF 77 E8 [13:12:34]CheckFolder [13:12:34]dirname=/storage/ofd_packets [13:12:34]CheckFolder done [13:12:34]ProducePacketName [13:12:34]name=ofd_packets/00068422 [13:12:34]NVStorageSaveData ofd_packets/00068422 [13:12:34]File name is /storage/ofd_packets/00068422 [13:12:34]Write 298 bytes [13:12:34]NVStorageSaveData done [13:12:34]OFDSenderStorePacket done [13:12:34]KKMCreateOFDPacket done [13:12:34]NVStorageSaveData kkm_last_timestamp [13:12:34]File name is /storage/kkm_last_timestamp [13:12:34]Write 4 bytes [13:12:34]NVStorageSaveData done [13:12:34]ExternCall_PrintAddStr [13:12:34]wPrintStart [13:12:34]Write to MH i2c: 01 00 00 18 32 4A [13:12:34]Write i2c OK [13:12:34]MH_I2C_Read... [13:12:34]Read from MH i2c: 01 [13:12:34]MH_I2C_Read... [13:12:34]Read from MH i2c: 01 07 00 [13:12:34]MH_I2C_Read... [13:12:34]Read from MH i2c: 01 07 00 18 32 00 04 00 00 00 FF 0F 63 [13:12:34]RasterBufferAndPrint [13:12:34]line Счет N : (1)210419 [13:12:34]line ИНН: 02508201610067 [13:12:34]line Контрольно-Кассовый Чек [13:12:34]line ПРОДАЖА [13:12:34]line ТРК (МРК, ГНК) : 21 [13:12:34]line Товар: 2710194210 [13:12:34]line ДТ-К-2 [13:12:34]line 6.570 * 76.20 [13:12:34]line = 500.63 [13:12:34]line НДС 12% НСП 1% [13:12:34]line > о реализуемом товаре [13:12:34]line ОКРУГЛЕНИЕ: -0.63 [13:12:34]line ИТОГО: 500.00 [13:12:34]line Внесено: 500.00 [13:12:34]line СДАЧА: 0.00 [13:12:34]line НСП 1% : 4.43 [13:12:34]line НДС 12% : 53.16 [13:12:34]line Наличными: 500.00 [13:12:34]line Безнал.: 0.00 [13:12:34]line Место: АЗС № 147 "Партнер Нефть" [13:12:34]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [13:12:34]line СНО: Общий режим [13:12:34]line Чек 45 23.10.2024 13:12 [13:12:34]line Смена: 507 ФФД: 1.0 [13:12:34]line ЗНМ: 0300000094 [13:12:34]line РНМ: 0000000000091756 [13:12:34]line Версия ККМ: 001 [13:12:34]line ФМ: 0000000000871809 [13:12:34]line ФД: 68422 [13:12:34]line ФПД: 230446210380716 [13:12:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131242&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68422&fm=230446210380716&tin=02508201610067®Number=0000000000091756&sum=50000 [13:12:35]OFD Sender: Processing packet 68422 [packets to send 8, broken 7] [13:12:35]ProducePacketName [13:12:35]name=ofd_packets/00068422 [13:12:35]OFD Sender: To server: pG, [13:12:35]CommunicateWithHost lk.salyk.kg:30040 [13:12:35]ConnectInit lk.salyk.kg [13:12:35]written 0, free lines is 4095 [13:12:35]Connected sock=10 [13:12:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0C 01 00 00 08 D0 04 01 7D A6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 2D 00 00 00 F4 03 04 00 4A F6 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 46 0B 01 00 35 04 06 00 D1 96 F0 82 73 AC 13 E7 7F 41 2B AF 77 E8 [13:12:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 20 1F 47 00 62 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 46 0B 01 00 F4 03 04 00 3F 9C 18 67 B6 04 01 00 00 7B F0 B9 E2 DD 56 EC 75 [13:12:35]CommunicateWithHost err = 0 [13:12:35]CheckOFDResponse [13:12:35]1017 (14) - 77093643461234 [13:12:35]1041 (16) - 0000000000871809 [13:12:35]1040 (4) - 68422 [13:12:35]1012 (4) - 23.10.2024 06:48 [13:12:35]1206 (1) - 0 [13:12:35]OFD Sender: Remove packet 68422 [13:12:35]ProducePacketName [13:12:35]name=ofd_packets/00068422 [13:12:35]NVStorageDeleteData [13:12:35]Write to MH i2c: 01 00 00 42 32 74 [13:12:35]Write i2c OK [13:12:35]MH_I2C_Read... [13:12:35]Read from MH i2c: 01 [13:12:35]MH_I2C_Read... [13:12:35]Read from MH i2c: 01 07 00 [13:12:35]MH_I2C_Read... [13:12:35]Read from MH i2c: 01 07 00 42 32 00 04 00 00 00 97 0C 22 [13:12:35]RasterBufferAndPrint [13:12:35]line [13:12:35]line [13:12:35]line [13:12:35]line [13:12:35]line [13:12:35]written 0, free lines is 3227 [13:12:35]MH_Cut [13:12:35]Write to MH i2c: D1 01 00 49 32 01 4D [13:12:35]Write i2c OK [13:12:35]MH_I2C_Read... [13:12:35]Read from MH i2c: D1 [13:12:35]MH_I2C_Read... [13:12:35]Read from MH i2c: D1 01 00 [13:12:35]MH_I2C_Read... [13:12:35]Read from MH i2c: D1 01 00 49 32 00 4C [13:12:35]Write to MH i2c: 01 00 00 4A 32 7C [13:12:35]Write i2c OK [13:12:35]MH_I2C_Read... [13:12:36]OFD Sender: No OFD packet to send [13:12:36]*** Cut start [13:12:36]*** Partial cut [13:12:36]*** CUTSNS_PIN = 1 [13:12:36]*** CUTSNS_PIN = 0 [13:12:36]*** Brake cut motor [13:12:37]Read from MH i2c: 01 [13:12:37]MH_I2C_Read... [13:12:37]*** Stop cut motor [13:12:37]*** Cut end [13:12:37]Read from MH i2c: 01 07 00 [13:12:37]MH_I2C_Read... [13:12:37]Read from MH i2c: 01 07 00 4A 32 00 04 00 00 00 FF 0F 95 [13:12:37]process_action close_receipt done [13:12:37]requested_data is exist [13:12:37]produce_requested_data [13:12:37]requested_item fm.sn is exist - process it [13:12:37]wFMCommunicate request_size=4 [13:12:37]MH_SAM_APDU [13:12:37]CAPDU: 80 11 00 00 [13:12:37]Write to MH i2c: E2 08 00 4B 32 80 11 00 00 00 00 00 00 F7 [13:12:37]Write i2c OK [13:12:37]MH_I2C_Read... [13:12:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:37]Read from MH i2c: E2 [13:12:37]MH_I2C_Read... [13:12:37]Read from MH i2c: E2 17 00 [13:12:37]MH_I2C_Read... [13:12:37]Read from MH i2c: E2 17 00 4B 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 4B [13:12:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [13:12:37]wFMCommunicate OK [13:12:37]requested_item fd.num is exist - process it [13:12:37]SAM_PROTO_GetFieldsCounters [13:12:37]wFMCommunicate request_size=4 [13:12:37]MH_SAM_APDU [13:12:37]CAPDU: 80 13 00 00 [13:12:37]Write to MH i2c: E2 08 00 4C 32 80 13 00 00 00 00 00 00 FA [13:12:37]Write i2c OK [13:12:37]MH_I2C_Read... [13:12:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:37]Read from MH i2c: E2 [13:12:37]MH_I2C_Read... [13:12:37]Read from MH i2c: E2 62 00 [13:12:37]MH_I2C_Read... [13:12:37]Read from MH i2c: E2 62 00 4C 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 46 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [13:12:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 46 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:12:37]wFMCommunicate OK [13:12:37]SAM_PROTO_GetFieldsCounters done [13:12:37]requested_item shift.num is exist - process it [13:12:37]requested_item shift.opened is exist - process it [13:12:37]req_shift_opened [13:12:37]FM_GetShiftState [13:12:37]SAM_PROTO_GetShiftState [13:12:37]wFMCommunicate request_size=4 [13:12:37]MH_SAM_APDU [13:12:37]CAPDU: 80 13 01 00 [13:12:37]Write to MH i2c: E2 08 00 4D 32 80 13 01 00 00 00 00 00 FC [13:12:37]Write i2c OK [13:12:37]MH_I2C_Read... [13:12:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:37]Read from MH i2c: E2 [13:12:37]MH_I2C_Read... [13:12:37]Read from MH i2c: E2 0E 00 [13:12:37]MH_I2C_Read... [13:12:37]Read from MH i2c: E2 0E 00 4D 32 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 6B [13:12:37]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [13:12:37]wFMCommunicate OK [13:12:37]SAM_PROTO_GetShiftState done [13:12:37]FM_GetShiftState done [13:12:37]req_shift_opened done [13:12:37]requested_item shift.open_date is exist - process it [13:12:37]req_shift_open_date [13:12:37]req_shift_open_date done [13:12:37]produce_requested_data done [13:12:37]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68422,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [13:12:37]process_action_free close_receipt [13:12:37]json_value_free [13:12:37]json_value_free done [13:12:37]process_json_proto returns [13:12:37]Send response to host [13:12:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68422,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [13:12:37]free response buf [13:12:37]execute_script done [13:12:37]execute_script returns [13:12:37]free content buf [13:12:37]Sock 9.Close socket [13:12:37]Sock 9.Thread stoped [13:12:41]OFD Sender: No OFD packet to send [13:12:46]OFD Sender: No OFD packet to send [13:12:51]OFD Sender: No OFD packet to send [13:12:56]OFD Sender: No OFD packet to send [13:13:01]OFD Sender: No OFD packet to send [13:13:06]OFD Sender: No OFD packet to send [13:13:11]OFD Sender: No OFD packet to send [13:13:16]OFD Sender: No OFD packet to send [13:13:21]OFD Sender: No OFD packet to send [13:13:26]OFD Sender: No OFD packet to send [13:13:31]OFD Sender: No OFD packet to send [13:13:36]OFD Sender: No OFD packet to send [13:13:41]OFD Sender: No OFD packet to send [13:13:46]OFD Sender: No OFD packet to send [13:13:51]OFD Sender: No OFD packet to send [13:13:56]OFD Sender: No OFD packet to send [13:14:01]OFD Sender: No OFD packet to send [13:14:06]OFD Sender: No OFD packet to send [13:14:11]OFD Sender: No OFD packet to send [13:14:16]OFD Sender: No OFD packet to send [13:14:21]OFD Sender: No OFD packet to send [13:14:26]OFD Sender: No OFD packet to send [13:14:31]OFD Sender: No OFD packet to send [13:14:36]OFD Sender: No OFD packet to send [13:14:41]OFD Sender: No OFD packet to send [13:14:46]OFD Sender: No OFD packet to send [13:14:51]OFD Sender: No OFD packet to send [13:14:56]OFD Sender: No OFD packet to send [13:15:01]OFD Sender: No OFD packet to send [13:15:06]OFD Sender: No OFD packet to send [13:15:11]OFD Sender: No OFD packet to send [13:15:16]OFD Sender: No OFD packet to send [13:15:21]OFD Sender: No OFD packet to send [13:15:26]OFD Sender: No OFD packet to send [13:15:31]OFD Sender: No OFD packet to send [13:15:36]OFD Sender: No OFD packet to send [13:15:41]OFD Sender: No OFD packet to send [13:15:46]OFD Sender: No OFD packet to send [13:15:51]OFD Sender: No OFD packet to send [13:15:56]OFD Sender: No OFD packet to send [13:16:01]OFD Sender: No OFD packet to send [13:16:06]OFD Sender: No OFD packet to send [13:16:11]OFD Sender: No OFD packet to send [13:16:16]OFD Sender: No OFD packet to send [13:16:21]OFD Sender: No OFD packet to send [13:16:26]OFD Sender: No OFD packet to send [13:16:31]OFD Sender: No OFD packet to send [13:16:36]OFD Sender: No OFD packet to send [13:16:41]OFD Sender: No OFD packet to send [13:16:46]OFD Sender: No OFD packet to send [13:16:51]OFD Sender: No OFD packet to send [13:16:56]OFD Sender: No OFD packet to send [13:17:01]OFD Sender: No OFD packet to send [13:17:06]OFD Sender: No OFD packet to send [13:17:11]OFD Sender: No OFD packet to send [13:17:16]OFD Sender: No OFD packet to send [13:17:21]OFD Sender: No OFD packet to send [13:17:26]OFD Sender: No OFD packet to send [13:17:31]OFD Sender: No OFD packet to send [13:17:36]OFD Sender: No OFD packet to send [13:17:41]OFD Sender: No OFD packet to send [13:17:46]OFD Sender: No OFD packet to send [13:17:51]OFD Sender: No OFD packet to send [13:17:56]OFD Sender: No OFD packet to send [13:18:01]OFD Sender: No OFD packet to send [13:18:06]OFD Sender: No OFD packet to send [13:18:11]OFD Sender: No OFD packet to send [13:18:16]OFD Sender: No OFD packet to send [13:18:21]OFD Sender: No OFD packet to send [13:18:26]OFD Sender: No OFD packet to send [13:18:31]OFD Sender: No OFD packet to send [13:18:36]OFD Sender: No OFD packet to send [13:18:41]OFD Sender: No OFD packet to send [13:18:46]OFD Sender: No OFD packet to send [13:18:51]OFD Sender: No OFD packet to send [13:18:56]OFD Sender: No OFD packet to send [13:19:01]OFD Sender: No OFD packet to send [13:19:06]OFD Sender: No OFD packet to send [13:19:11]OFD Sender: No OFD packet to send [13:19:16]OFD Sender: No OFD packet to send [13:19:21]OFD Sender: No OFD packet to send [13:19:26]OFD Sender: No OFD packet to send [13:19:31]OFD Sender: No OFD packet to send [13:19:36]OFD Sender: No OFD packet to send [13:19:41]OFD Sender: No OFD packet to send [13:19:46]OFD Sender: No OFD packet to send [13:19:51]OFD Sender: No OFD packet to send [13:19:56]OFD Sender: No OFD packet to send [13:20:01]OFD Sender: No OFD packet to send [13:20:06]OFD Sender: No OFD packet to send [13:20:11]OFD Sender: No OFD packet to send [13:20:16]OFD Sender: No OFD packet to send [13:20:21]OFD Sender: No OFD packet to send [13:20:26]OFD Sender: No OFD packet to send [13:20:31]OFD Sender: No OFD packet to send [13:20:36]OFD Sender: No OFD packet to send [13:20:41]OFD Sender: No OFD packet to send [13:20:46]OFD Sender: No OFD packet to send [13:20:51]OFD Sender: No OFD packet to send [13:20:56]OFD Sender: No OFD packet to send [13:21:01]OFD Sender: No OFD packet to send [13:21:06]OFD Sender: No OFD packet to send [13:21:11]OFD Sender: No OFD packet to send [13:21:16]OFD Sender: No OFD packet to send [13:21:21]OFD Sender: No OFD packet to send [13:21:26]OFD Sender: No OFD packet to send [13:21:31]OFD Sender: No OFD packet to send [13:21:36]OFD Sender: No OFD packet to send [13:21:41]OFD Sender: No OFD packet to send [13:21:46]OFD Sender: No OFD packet to send [13:21:51]OFD Sender: No OFD packet to send [13:21:56]OFD Sender: No OFD packet to send [13:22:01]OFD Sender: No OFD packet to send [13:22:06]OFD Sender: No OFD packet to send [13:22:11]OFD Sender: No OFD packet to send [13:22:16]OFD Sender: No OFD packet to send [13:22:21]OFD Sender: No OFD packet to send [13:22:26]OFD Sender: No OFD packet to send [13:22:31]OFD Sender: No OFD packet to send [13:22:36]OFD Sender: No OFD packet to send [13:22:41]OFD Sender: No OFD packet to send [13:22:46]OFD Sender: No OFD packet to send [13:22:51]OFD Sender: No OFD packet to send [13:22:56]OFD Sender: No OFD packet to send [13:23:01]OFD Sender: No OFD packet to send [13:23:06]OFD Sender: No OFD packet to send [13:23:11]OFD Sender: No OFD packet to send [13:23:16]OFD Sender: No OFD packet to send [13:23:21]OFD Sender: No OFD packet to send [13:23:26]OFD Sender: No OFD packet to send [13:23:31]OFD Sender: No OFD packet to send [13:23:36]OFD Sender: No OFD packet to send [13:23:41]OFD Sender: No OFD packet to send [13:23:46]OFD Sender: No OFD packet to send [13:23:51]OFD Sender: No OFD packet to send [13:23:56]OFD Sender: No OFD packet to send [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:21]OFD Sender: No OFD packet to send [13:24:26]OFD Sender: No OFD packet to send [13:24:31]OFD Sender: No OFD packet to send [13:24:36]OFD Sender: No OFD packet to send [13:24:41]OFD Sender: No OFD packet to send [13:24:46]OFD Sender: No OFD packet to send [13:24:51]OFD Sender: No OFD packet to send [13:24:56]OFD Sender: No OFD packet to send [13:25:01]OFD Sender: No OFD packet to send [13:25:06]OFD Sender: No OFD packet to send [13:25:11]OFD Sender: No OFD packet to send [13:25:16]OFD Sender: No OFD packet to send [13:25:21]OFD Sender: No OFD packet to send [13:25:26]OFD Sender: No OFD packet to send [13:25:31]OFD Sender: No OFD packet to send [13:25:36]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: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:28:06]OFD Sender: No OFD packet to send [13:28:11]OFD Sender: No OFD packet to send [13:28:16]OFD Sender: No OFD packet to send [13:28:21]OFD Sender: No OFD packet to send [13:28:26]OFD Sender: No OFD packet to send [13:28:31]OFD Sender: No OFD packet to send [13:28:36]OFD Sender: No OFD packet to send [13:28:41]OFD Sender: No OFD packet to send [13:28:46]OFD Sender: No OFD packet to send [13:28:51]OFD Sender: No OFD packet to send [13:28:56]OFD Sender: No OFD packet to send [13:29:01]OFD Sender: No OFD packet to send [13:29:06]OFD Sender: No OFD packet to send [13:29:11]OFD Sender: No OFD packet to send [13:29:16]OFD Sender: No OFD packet to send [13:29:21]OFD Sender: No OFD packet to send [13:29:26]OFD Sender: No OFD packet to send [13:29:31]OFD Sender: No OFD packet to send [13:29:36]OFD Sender: No OFD packet to send [13:29:41]OFD Sender: No OFD packet to send [13:29:46]OFD Sender: No OFD packet to send [13:29:51]OFD Sender: No OFD packet to send [13:29:56]OFD Sender: No OFD packet to send [13:30:01]OFD Sender: No OFD packet to send [13:30:06]OFD Sender: No OFD packet to send [13:30:11]OFD Sender: No OFD packet to send [13:30:16]OFD Sender: No OFD packet to send [13:30:21]OFD Sender: No OFD packet to send [13:30:26]OFD Sender: No OFD packet to send [13:30:31]OFD Sender: No OFD packet to send [13:30:36]OFD Sender: No OFD packet to send [13:30:42]OFD Sender: No OFD packet to send [13:30:47]OFD Sender: No OFD packet to send [13:30:52]OFD Sender: No OFD packet to send [13:30:57]OFD Sender: No OFD packet to send [13:31:02]OFD Sender: No OFD packet to send [13:31:07]OFD Sender: No OFD packet to send [13:31:12]OFD Sender: No OFD packet to send [13:31:17]OFD Sender: No OFD packet to send [13:31:22]OFD Sender: No OFD packet to send [13:31:27]OFD Sender: No OFD packet to send [13:31:32]OFD Sender: No OFD packet to send [13:31:37]OFD Sender: No OFD packet to send [13:31:42]OFD Sender: No OFD packet to send [13:31:47]OFD Sender: No OFD packet to send [13:31:52]OFD Sender: No OFD packet to send [13:31:57]OFD Sender: No OFD packet to send [13:32:02]OFD Sender: No OFD packet to send [13:32:07]OFD Sender: No OFD packet to send [13:32:12]OFD Sender: No OFD packet to send [13:32:17]OFD Sender: No OFD packet to send [13:32:22]OFD Sender: No OFD packet to send [13:32:27]OFD Sender: No OFD packet to send [13:32:32]OFD Sender: No OFD packet to send [13:32:37]OFD Sender: No OFD packet to send [13:32:42]OFD Sender: No OFD packet to send [13:32:47]OFD Sender: No OFD packet to send [13:32:52]OFD Sender: No OFD packet to send [13:32:57]OFD Sender: No OFD packet to send [13:33:02]OFD Sender: No OFD packet to send [13:33:07]OFD Sender: No OFD packet to send [13:33:12]OFD Sender: No OFD packet to send [13:33:17]OFD Sender: No OFD packet to send [13:33:22]OFD Sender: No OFD packet to send [13:33:27]OFD Sender: No OFD packet to send [13:33:32]OFD Sender: No OFD packet to send [13:33:37]OFD Sender: No OFD packet to send [13:33:42]OFD Sender: No OFD packet to send [13:33:47]OFD Sender: No OFD packet to send [13:33:52]OFD Sender: No OFD packet to send [13:33:57]OFD Sender: No OFD packet to send [13:34:02]accept exits with 7 [13:34:02]New connection [13:34:02]New thread 3067276644 created [13:34:02]Thread 3067133284 joined [13:34:02]Waiting for new connection... [13:34:02] Sock 7.Parse request [13:34:02]Sock 7.Check first char [13:34:02]Sock 7.First char is OK [13:34:02]request: POST /json_proto HTTP/1.0 [13:34:02]Method: POST [13:34:02]URL: /json_proto [13:34:02]Method is POST - this is cgi request [13:34:02]url: /json_proto [13:34:02]query_string will be loaded in cgi processing [13:34:02]execute_cgi json_proto POST (null) [13:34:02]execute_cgi path=json_proto method=POST [13:34:02]POST find Content-Length [13:34:02]Host: 172.17.52.3:8080 [13:34:02]Content-Length: 677 [13:34:02]Content-Type: application/json [13:34:02] [13:34:02]POST finish read [13:34:02]Found Content-Length = 677 [13:34:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:02]execute_script... [13:34: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)210420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:02]POST & json_proto [13:34:02]process_json_proto [13:34:02]json parsed OK: [13:34:02]protocol is kg_v1.0 [13:34:02]action value=close_receipt [13:34:02]process_action close_receipt [13:34:02]cmd_close_receipt [13:34:02]MH_GetDate [13:34:02]Write to MH i2c: F0 00 00 4E 32 6F [13:34:02]Write i2c OK [13:34:02]MH_I2C_Read... [13:34:02]Read from MH i2c: F0 [13:34:02]MH_I2C_Read... [13:34:02]Read from MH i2c: F0 09 00 [13:34:02]MH_I2C_Read... [13:34:02]Read from MH i2c: F0 09 00 4E 32 00 53 FB 18 67 D7 68 A5 64 8D [13:34:02]GetLastDocTimeStamp 1729689162 [13:34:02]current date 1729690451 [13:34:02]FM_GetShiftState [13:34:02]SAM_PROTO_GetShiftState [13:34:02]wFMCommunicate request_size=4 [13:34:02]MH_SAM_APDU [13:34:02]CAPDU: 80 13 01 00 [13:34:02]Write to MH i2c: E2 08 00 4F 32 80 13 01 00 00 00 00 00 FE [13:34:02]Write i2c OK [13:34:02]MH_I2C_Read... [13:34:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:02]Read from MH i2c: E2 [13:34:02]MH_I2C_Read... [13:34:02]Read from MH i2c: E2 0E 00 [13:34:02]MH_I2C_Read... [13:34:02]Read from MH i2c: E2 0E 00 4F 32 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 6D [13:34:02]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [13:34:02]wFMCommunicate OK [13:34:02]SAM_PROTO_GetShiftState done [13:34:02]FM_GetShiftState done [13:34:02]opened in 1729641385 [13:34:02]opened+sec_in_day 1729727785 [13:34:02]quantity*price = 50041 [13:34:02]sum+1 = 50042 [13:34:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 46 23.10.2024 13:34 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68423 ФПД: 25774080359175 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T133411&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68423&fm=25774080359175&tin=02508201610067®Number=0000000000091756&sum=50000 [13:34:03]StoreToDocumentArchive [13:34:03]shift 507 fd 68423 [13:34:03]save to /storage/0507/doc_00068423 [13:34:03]save last doc name /storage/0507/doc_00068423 to /storage/kkm_last_doc_name [13:34:03]save OK [13:34:03]Clear old archive folders... [13:34:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:34:03]tlvbuf is 0203C510 [13:34:03]SAM_PROTO_ClearQueue [13:34:03]wFMCommunicate request_size=4 [13:34:03]MH_SAM_APDU [13:34:03]CAPDU: 80 09 00 00 [13:34:03]Write to MH i2c: E2 08 00 5C 32 80 09 00 00 00 00 00 00 00 [13:34:03]Write i2c OK [13:34:03]MH_I2C_Read... [13:34:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:34:03]Read from MH i2c: E2 [13:34:03]MH_I2C_Read... [13:34:03]Read from MH i2c: E2 03 00 [13:34:03]MH_I2C_Read... [13:34:03]Read from MH i2c: E2 03 00 5C 32 00 90 00 02 [13:34:03]RAPDU: 90 00 [13:34:03]wFMCommunicate OK [13:34:03]SAM_PROTO_ClearQueue done [13:34:03]KKMCreateOFDPacket [13:34:03]OFDProtocolAddRootSTLVToBuf [13:34:03]FM_MakeSignedData [13:34:03]FM_MakeSignedData [13:34:03]SAM_PROTO_SignData [13:34:03]wFMCommunicate request_size=4 [13:34:03]MH_SAM_APDU [13:34:03]CAPDU: 80 0D 01 02 [13:34:03]Write to MH i2c: E2 08 00 5D 32 80 0D 01 02 00 00 00 00 08 [13:34:03]Write i2c OK [13:34:03]MH_I2C_Read... [13:34:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:34:03]Read from MH i2c: E2 [13:34:03]MH_I2C_Read... [13:34:03]Read from MH i2c: E2 03 00 [13:34:03]MH_I2C_Read... [13:34:03]Read from MH i2c: E2 03 00 5D 32 00 90 00 03 [13:34:03]RAPDU: 90 00 [13:34:03]wFMCommunicate OK [13:34:03]wFMCommunicate request_size=255 [13:34:03]MH_SAM_APDU [13:34:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2E 00 00 00 F4 03 04 00 53 FB 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 47 0B 01 00 35 04 06 00 17 [13:34:03]Write to MH i2c: E2 02 01 5E 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2E 00 00 00 F4 03 04 00 53 FB 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 47 0B 01 00 35 04 06 00 17 00 00 F9 [13:34:03]Write i2c OK [13:34:03]MH_I2C_Read... [13:34:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:03]Read from MH i2c: E2 [13:34:03]MH_I2C_Read... [13:34:03]Read from MH i2c: E2 03 00 [13:34:03]MH_I2C_Read... [13:34:03]Read from MH i2c: E2 03 00 5E 32 00 90 00 04 [13:34:03]RAPDU: 90 00 [13:34:03]wFMCommunicate OK [13:34:03]wFMCommunicate request_size=10 [13:34:03]MH_SAM_APDU [13:34:03]CAPDU: 80 0D 02 02 05 70 FE E7 7B 07 [13:34:03]Write to MH i2c: E2 0D 00 5F 32 80 0D 02 02 05 00 70 FE E7 7B 07 00 00 EC [13:34:03]Write i2c OK [13:34:03]MH_I2C_Read... [13:34:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:03]Read from MH i2c: E2 [13:34:03]MH_I2C_Read... [13:34:03]Read from MH i2c: E2 03 00 [13:34:03]MH_I2C_Read... [13:34:03]Read from MH i2c: E2 03 00 5F 32 00 90 00 05 [13:34:03]RAPDU: 90 00 [13:34:03]wFMCommunicate OK [13:34:03]wFMCommunicate request_size=4 [13:34:03]MH_SAM_APDU [13:34:03]CAPDU: 80 0D 03 02 [13:34:03]Write to MH i2c: E2 08 00 60 32 80 0D 03 02 00 00 00 00 0D [13:34:03]Write i2c OK [13:34:03]MH_I2C_Read... [13:34:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:34:03]Read from MH i2c: E2 [13:34:03]MH_I2C_Read... [13:34:03]Read from MH i2c: E2 0B 00 [13:34:03]MH_I2C_Read... [13:34:03]Read from MH i2c: E2 0B 00 60 32 00 D4 A5 62 D4 33 F0 20 87 90 00 87 [13:34:03]RAPDU: D4 A5 62 D4 33 F0 20 87 90 00 [13:34:03]wFMCommunicate OK [13:34:03]SAM_PROTO_SignData done [13:34:03]FM_MakeSignedData done [13:34:03]CreateOFDProtocolMessage [13:34:03]wFMCommunicate request_size=4 [13:34:03]MH_SAM_APDU [13:34:03]CAPDU: 80 11 00 00 [13:34:03]Write to MH i2c: E2 08 00 61 32 80 11 00 00 00 00 00 00 0D [13:34:03]Write i2c OK [13:34:03]MH_I2C_Read... [13:34:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:03]Read from MH i2c: E2 [13:34:03]MH_I2C_Read... [13:34:03]Read from MH i2c: E2 17 00 [13:34:03]MH_I2C_Read... [13:34:03]Read from MH i2c: E2 17 00 61 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 61 [13:34:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [13:34:03]wFMCommunicate OK [13:34:03]CreateOFDProtocolMessage done [13:34:03]OFDSenderStorePacket 68423 [13:34:03]StoreOFDPacket docnum=68423 [13:34:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 6F 55 07 01 ED 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2E 00 00 00 F4 03 04 00 53 FB 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 47 0B 01 00 35 04 06 00 17 70 FE E7 7B 07 D4 A5 62 D4 33 F0 20 87 [13:34:03]CheckFolder [13:34:03]dirname=/storage/ofd_packets [13:34:03]CheckFolder done [13:34:03]ProducePacketName [13:34:03]name=ofd_packets/00068423 [13:34:03]NVStorageSaveData ofd_packets/00068423 [13:34:03]File name is /storage/ofd_packets/00068423 [13:34:03]Write 301 bytes [13:34:03]NVStorageSaveData done [13:34:03]OFDSenderStorePacket done [13:34:03]KKMCreateOFDPacket done [13:34:03]NVStorageSaveData kkm_last_timestamp [13:34:03]File name is /storage/kkm_last_timestamp [13:34:03]Write 4 bytes [13:34:03]NVStorageSaveData done [13:34:03]ExternCall_PrintAddStr [13:34:03]wPrintStart [13:34:03]Write to MH i2c: 01 00 00 62 32 94 [13:34:03]Write i2c OK [13:34:03]MH_I2C_Read... [13:34:03]Read from MH i2c: 01 [13:34:03]MH_I2C_Read... [13:34:03]Read from MH i2c: 01 07 00 [13:34:03]MH_I2C_Read... [13:34:03]Read from MH i2c: 01 07 00 62 32 00 04 00 00 00 FF 0F AD [13:34:03]RasterBufferAndPrint [13:34:03]line Счет N : (1)210420 [13:34:03]line ИНН: 02508201610067 [13:34:03]line Контрольно-Кассовый Чек [13:34:03]line ПРОДАЖА [13:34:03]line ТРК (МРК, ГНК) : 11 [13:34:03]line Товар: 2710124130 [13:34:03]line Аи-92-К-2 [13:34:03]line 7.480 * 66.90 [13:34:03]line = 500.41 [13:34:03]line НДС 12% НСП 1% [13:34:03]line > о реализуемом товаре [13:34:03]line ОКРУГЛЕНИЕ: -0.41 [13:34:03]line ИТОГО: 500.00 [13:34:03]line Внесено: 500.00 [13:34:03]line СДАЧА: 0.00 [13:34:03]line НСП 1% : 4.43 [13:34:03]line НДС 12% : 53.14 [13:34:03]line Наличными: 500.00 [13:34:03]line Безнал.: 0.00 [13:34:03]line Место: АЗС № 147 "Партнер Нефть" [13:34:03]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [13:34:03]line СНО: Общий режим [13:34:03]line Чек 46 23.10.2024 13:34 [13:34:03]line Смена: 507 ФФД: 1.0 [13:34:03]line ЗНМ: 0300000094 [13:34:03]line РНМ: 0000000000091756 [13:34:03]line Версия ККМ: 001 [13:34:03]line ФМ: 0000000000871809 [13:34:03]line ФД: 68423 [13:34:03]line ФПД: 25774080359175 [13:34:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T133411&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68423&fm=25774080359175&tin=02508201610067®Number=0000000000091756&sum=50000 [13:34:04]OFD Sender: Processing packet 68423 [packets to send 8, broken 7] [13:34:04]ProducePacketName [13:34:04]name=ofd_packets/00068423 [13:34:04]OFD Sender: To server: pG, [13:34:04]CommunicateWithHost lk.salyk.kg:30040 [13:34:04]ConnectInit lk.salyk.kg [13:34:04]written 0, free lines is 4095 [13:34:04]Connected sock=10 [13:34:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 6F 55 07 01 ED 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2E 00 00 00 F4 03 04 00 53 FB 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 47 0B 01 00 35 04 06 00 17 70 FE E7 7B 07 D4 A5 62 D4 33 F0 20 87 [13:34:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 40 16 47 00 BD 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 47 0B 01 00 F4 03 04 00 47 A1 18 67 B6 04 01 00 00 C1 82 D6 EA 99 B9 44 84 [13:34:04]CommunicateWithHost err = 0 [13:34:04]CheckOFDResponse [13:34:04]1017 (14) - 77093643461234 [13:34:04]1041 (16) - 0000000000871809 [13:34:04]1040 (4) - 68423 [13:34:04]1012 (4) - 23.10.2024 07:09 [13:34:04]1206 (1) - 0 [13:34:04]OFD Sender: Remove packet 68423 [13:34:04]ProducePacketName [13:34:04]name=ofd_packets/00068423 [13:34:04]NVStorageDeleteData [13:34:04]Write to MH i2c: 01 00 00 8C 32 BE [13:34:04]Write i2c OK [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: 01 [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: 01 07 00 [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: 01 07 00 8C 32 00 04 00 00 00 A3 0C 78 [13:34:04]RasterBufferAndPrint [13:34:04]line [13:34:04]line [13:34:04]line [13:34:04]line [13:34:04]line [13:34:04]written 0, free lines is 3240 [13:34:04]MH_Cut [13:34:04]Write to MH i2c: D1 01 00 93 32 01 97 [13:34:04]Write i2c OK [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: D1 [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: D1 01 00 [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: D1 01 00 93 32 00 96 [13:34:04]Write to MH i2c: 01 00 00 94 32 C6 [13:34:04]Write i2c OK [13:34:04]MH_I2C_Read... [13:34:04]OFD Sender: No OFD packet to send [13:34:05]*** Cut start [13:34:05]*** Partial cut [13:34:05]*** CUTSNS_PIN = 1 [13:34:05]*** CUTSNS_PIN = 0 [13:34:05]*** Brake cut motor [13:34:06]Read from MH i2c: 01 [13:34:06]MH_I2C_Read... [13:34:06]*** Stop cut motor [13:34:06]*** Cut end [13:34:06]Read from MH i2c: 01 07 00 [13:34:06]MH_I2C_Read... [13:34:06]Read from MH i2c: 01 07 00 94 32 00 04 00 00 00 FF 0F DF [13:34:06]process_action close_receipt done [13:34:06]requested_data is exist [13:34:06]produce_requested_data [13:34:06]requested_item fm.sn is exist - process it [13:34:06]wFMCommunicate request_size=4 [13:34:06]MH_SAM_APDU [13:34:06]CAPDU: 80 11 00 00 [13:34:06]Write to MH i2c: E2 08 00 95 32 80 11 00 00 00 00 00 00 41 [13:34:06]Write i2c OK [13:34:06]MH_I2C_Read... [13:34:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:06]Read from MH i2c: E2 [13:34:06]MH_I2C_Read... [13:34:06]Read from MH i2c: E2 17 00 [13:34:06]MH_I2C_Read... [13:34:06]Read from MH i2c: E2 17 00 95 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 95 [13:34:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [13:34:06]wFMCommunicate OK [13:34:06]requested_item fd.num is exist - process it [13:34:06]SAM_PROTO_GetFieldsCounters [13:34:06]wFMCommunicate request_size=4 [13:34:06]MH_SAM_APDU [13:34:06]CAPDU: 80 13 00 00 [13:34:06]Write to MH i2c: E2 08 00 96 32 80 13 00 00 00 00 00 00 44 [13:34:06]Write i2c OK [13:34:06]MH_I2C_Read... [13:34:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:34:06]Read from MH i2c: E2 [13:34:06]MH_I2C_Read... [13:34:06]Read from MH i2c: E2 62 00 [13:34:06]MH_I2C_Read... [13:34:06]Read from MH i2c: E2 62 00 96 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 47 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [13:34:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 47 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:34:06]wFMCommunicate OK [13:34:06]SAM_PROTO_GetFieldsCounters done [13:34:06]requested_item shift.num is exist - process it [13:34:06]requested_item shift.opened is exist - process it [13:34:06]req_shift_opened [13:34:06]FM_GetShiftState [13:34:06]SAM_PROTO_GetShiftState [13:34:06]wFMCommunicate request_size=4 [13:34:06]MH_SAM_APDU [13:34:06]CAPDU: 80 13 01 00 [13:34:06]Write to MH i2c: E2 08 00 97 32 80 13 01 00 00 00 00 00 46 [13:34:06]Write i2c OK [13:34:06]MH_I2C_Read... [13:34:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:06]Read from MH i2c: E2 [13:34:06]MH_I2C_Read... [13:34:06]Read from MH i2c: E2 0E 00 [13:34:06]MH_I2C_Read... [13:34:06]Read from MH i2c: E2 0E 00 97 32 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 B5 [13:34:06]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [13:34:06]wFMCommunicate OK [13:34:06]SAM_PROTO_GetShiftState done [13:34:06]FM_GetShiftState done [13:34:06]req_shift_opened done [13:34:06]requested_item shift.open_date is exist - process it [13:34:06]req_shift_open_date [13:34:06]req_shift_open_date done [13:34:06]produce_requested_data done [13:34:06]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68423,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [13:34:06]process_action_free close_receipt [13:34:06]json_value_free [13:34:06]json_value_free done [13:34:06]process_json_proto returns [13:34:06]Send response to host [13:34:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68423,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [13:34:06]free response buf [13:34:06]execute_script done [13:34:06]execute_script returns [13:34:06]free content buf [13:34:06]Sock 7.Close socket [13:34:06]Sock 7.Thread stoped [13:34:09]OFD Sender: No OFD packet to send [13:34:14]OFD Sender: No OFD packet to send [13:34:19]OFD Sender: No OFD packet to send [13:34:24]OFD Sender: No OFD packet to send [13:34:29]OFD Sender: No OFD packet to send [13:34:34]OFD Sender: No OFD packet to send [13:34:39]OFD Sender: No OFD packet to send [13:34:44]OFD Sender: No OFD packet to send [13:34:49]OFD Sender: No OFD packet to send [13:34:54]OFD Sender: No OFD packet to send [13:35:00]OFD Sender: No OFD packet to send [13:35:05]OFD Sender: No OFD packet to send [13:35:10]OFD Sender: No OFD packet to send [13:35:15]OFD Sender: No OFD packet to send [13:35:20]OFD Sender: No OFD packet to send [13:35:25]OFD Sender: No OFD packet to send [13:35:30]OFD Sender: No OFD packet to send [13:35:35]OFD Sender: No OFD packet to send [13:35:40]OFD Sender: No OFD packet to send [13:35:45]OFD Sender: No OFD packet to send [13:35:50]OFD Sender: No OFD packet to send [13:35:55]OFD Sender: No OFD packet to send [13:36:00]OFD Sender: No OFD packet to send [13:36:05]OFD Sender: No OFD packet to send [13:36:10]OFD Sender: No OFD packet to send [13:36:15]OFD Sender: No OFD packet to send [13:36:20]OFD Sender: No OFD packet to send [13:36:25]OFD Sender: No OFD packet to send [13:36:30]OFD Sender: No OFD packet to send [13:36:35]OFD Sender: No OFD packet to send [13:36:40]OFD Sender: No OFD packet to send [13:36:45]OFD Sender: No OFD packet to send [13:36:50]OFD Sender: No OFD packet to send [13:36:55]OFD Sender: No OFD packet to send [13:37:00]OFD Sender: No OFD packet to send [13:37:05]OFD Sender: No OFD packet to send [13:37:10]OFD Sender: No OFD packet to send [13:37:15]OFD Sender: No OFD packet to send [13:37:20]OFD Sender: No OFD packet to send [13:37:25]OFD Sender: No OFD packet to send [13:37:30]OFD Sender: No OFD packet to send [13:37:35]OFD Sender: No OFD packet to send [13:37:40]OFD Sender: No OFD packet to send [13:37:45]OFD Sender: No OFD packet to send [13:37:50]OFD Sender: No OFD packet to send [13:37:55]OFD Sender: No OFD packet to send [13:38:00]OFD Sender: No OFD packet to send [13:38:05]OFD Sender: No OFD packet to send [13:38:10]OFD Sender: No OFD packet to send [13:38:15]OFD Sender: No OFD packet to send [13:38:20]OFD Sender: No OFD packet to send [13:38:25]OFD Sender: No OFD packet to send [13:38:30]OFD Sender: No OFD packet to send [13:38:35]OFD Sender: No OFD packet to send [13:38:40]OFD Sender: No OFD packet to send [13:38:45]OFD Sender: No OFD packet to send [13:38:50]OFD Sender: No OFD packet to send [13:38:55]OFD Sender: No OFD packet to send [13:39:00]OFD Sender: No OFD packet to send [13:39:05]OFD Sender: No OFD packet to send [13:39:10]OFD Sender: No OFD packet to send [13:39:15]OFD Sender: No OFD packet to send [13:39:20]OFD Sender: No OFD packet to send [13:39:25]OFD Sender: No OFD packet to send [13:39:30]OFD Sender: No OFD packet to send [13:39:35]OFD Sender: No OFD packet to send [13:39:40]OFD Sender: No OFD packet to send [13:39:45]OFD Sender: No OFD packet to send [13:39:50]OFD Sender: No OFD packet to send [13:39:55]OFD Sender: No OFD packet to send [13:40:00]OFD Sender: No OFD packet to send [13:40:05]OFD Sender: No OFD packet to send [13:40:10]OFD Sender: No OFD packet to send [13:40:15]OFD Sender: No OFD packet to send [13:40:20]OFD Sender: No OFD packet to send [13:40:25]OFD Sender: No OFD packet to send [13:40:30]OFD Sender: No OFD packet to send [13:40:35]OFD Sender: No OFD packet to send [13:40:40]OFD Sender: No OFD packet to send [13:40:45]OFD Sender: No OFD packet to send [13:40:50]OFD Sender: No OFD packet to send [13:40:55]OFD Sender: No OFD packet to send [13:41:00]OFD Sender: No OFD packet to send [13:41:05]OFD Sender: No OFD packet to send [13:41:10]OFD Sender: No OFD packet to send [13:41:15]OFD Sender: No OFD packet to send [13:41:20]OFD Sender: No OFD packet to send [13:41:25]OFD Sender: No OFD packet to send [13:41:30]OFD Sender: No OFD packet to send [13:41:35]OFD Sender: No OFD packet to send [13:41:40]OFD Sender: No OFD packet to send [13:41:45]OFD Sender: No OFD packet to send [13:41:50]OFD Sender: No OFD packet to send [13:41:55]OFD Sender: No OFD packet to send [13:42:00]OFD Sender: No OFD packet to send [13:42:05]OFD Sender: No OFD packet to send [13:42:10]OFD Sender: No OFD packet to send [13:42:15]OFD Sender: No OFD packet to send [13:42:20]OFD Sender: No OFD packet to send [13:42:25]OFD Sender: No OFD packet to send [13:42:30]OFD Sender: No OFD packet to send [13:42:35]OFD Sender: No OFD packet to send [13:42:40]OFD Sender: No OFD packet to send [13:42:45]OFD Sender: No OFD packet to send [13:42:50]OFD Sender: No OFD packet to send [13:42:55]OFD Sender: No OFD packet to send [13:43:00]OFD Sender: No OFD packet to send [13:43:05]OFD Sender: No OFD packet to send [13:43:10]OFD Sender: No OFD packet to send [13:43:15]OFD Sender: No OFD packet to send [13:43:20]OFD Sender: No OFD packet to send [13:43:25]OFD Sender: No OFD packet to send [13:43:30]OFD Sender: No OFD packet to send [13:43:35]OFD Sender: No OFD packet to send [13:43:40]OFD Sender: No OFD packet to send [13:43:45]OFD Sender: No OFD packet to send [13:43:50]OFD Sender: No OFD packet to send [13:43:55]OFD Sender: No OFD packet to send [13:44:00]OFD Sender: No OFD packet to send [13:44:05]OFD Sender: No OFD packet to send [13:44:10]OFD Sender: No OFD packet to send [13:44:15]OFD Sender: No OFD packet to send [13:44:20]OFD Sender: No OFD packet to send [13:44:25]OFD Sender: No OFD packet to send [13:44:30]OFD Sender: No OFD packet to send [13:44:35]OFD Sender: No OFD packet to send [13:44:40]OFD Sender: No OFD packet to send [13:44:41]accept exits with 9 [13:44:41]New connection [13:44:41]New thread 3067133284 created [13:44:41]Thread 3067276644 joined [13:44:41]Waiting for new connection... [13:44:41] Sock 9.Parse request [13:44:41]Sock 9.Check first char [13:44:41]Sock 9.First char is OK [13:44:41]request: POST /json_proto HTTP/1.0 [13:44:41]Method: POST [13:44:41]URL: /json_proto [13:44:41]Method is POST - this is cgi request [13:44:41]url: /json_proto [13:44:41]query_string will be loaded in cgi processing [13:44:41]execute_cgi json_proto POST (null) [13:44:41]execute_cgi path=json_proto method=POST [13:44:41]POST find Content-Length [13:44:41]Host: 172.17.52.3:8080 [13:44:41]Content-Length: 674 [13:44:41]Content-Type: application/json [13:44:41] [13:44:41]POST finish read [13:44:41]Found Content-Length = 674 [13:44:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 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" ] } } [13:44:41]execute_script... [13: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)210421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 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" ] } } [13:44:41]POST & json_proto [13:44:41]process_json_proto [13:44:41]json parsed OK: [13:44:41]protocol is kg_v1.0 [13:44:41]action value=close_receipt [13:44:41]process_action close_receipt [13:44:41]cmd_close_receipt [13:44:41]MH_GetDate [13:44:41]Write to MH i2c: F0 00 00 98 32 B9 [13:44:41]Write i2c OK [13:44:41]MH_I2C_Read... [13:44:41]Read from MH i2c: F0 [13:44:41]MH_I2C_Read... [13:44:41]Read from MH i2c: F0 09 00 [13:44:41]MH_I2C_Read... [13:44:41]Read from MH i2c: F0 09 00 98 32 00 D2 FD 18 67 D7 68 A5 64 58 [13:44:41]GetLastDocTimeStamp 1729690451 [13:44:41]current date 1729691090 [13:44:41]FM_GetShiftState [13:44:41]SAM_PROTO_GetShiftState [13:44:41]wFMCommunicate request_size=4 [13:44:41]MH_SAM_APDU [13:44:41]CAPDU: 80 13 01 00 [13:44:41]Write to MH i2c: E2 08 00 99 32 80 13 01 00 00 00 00 00 48 [13:44:41]Write i2c OK [13:44:41]MH_I2C_Read... [13:44:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:41]Read from MH i2c: E2 [13:44:41]MH_I2C_Read... [13:44:41]Read from MH i2c: E2 0E 00 [13:44:41]MH_I2C_Read... [13:44:41]Read from MH i2c: E2 0E 00 99 32 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 B7 [13:44:41]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [13:44:41]wFMCommunicate OK [13:44:41]SAM_PROTO_GetShiftState done [13:44:41]FM_GetShiftState done [13:44:41]opened in 1729641385 [13:44:41]opened+sec_in_day 1729727785 [13:44:41]quantity*price = 50063 [13:44:41]sum+1 = 50064 [13:44:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 47 23.10.2024 13:44 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68424 ФПД: 14325997238716 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134450&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68424&fm=14325997238716&tin=02508201610067®Number=0000000000091756&sum=50000 [13:44:42]StoreToDocumentArchive [13:44:42]shift 507 fd 68424 [13:44:42]save to /storage/0507/doc_00068424 [13:44:42]save last doc name /storage/0507/doc_00068424 to /storage/kkm_last_doc_name [13:44:42]save OK [13:44:42]Clear old archive folders... [13:44:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:44:42]tlvbuf is 020056B0 [13:44:42]SAM_PROTO_ClearQueue [13:44:42]wFMCommunicate request_size=4 [13:44:42]MH_SAM_APDU [13:44:42]CAPDU: 80 09 00 00 [13:44:42]Write to MH i2c: E2 08 00 A6 32 80 09 00 00 00 00 00 00 4A [13:44:42]Write i2c OK [13:44:42]MH_I2C_Read... [13:44:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:44:42]Read from MH i2c: E2 [13:44:42]MH_I2C_Read... [13:44:42]Read from MH i2c: E2 03 00 [13:44:42]MH_I2C_Read... [13:44:42]Read from MH i2c: E2 03 00 A6 32 00 90 00 4C [13:44:42]RAPDU: 90 00 [13:44:42]wFMCommunicate OK [13:44:42]SAM_PROTO_ClearQueue done [13:44:42]KKMCreateOFDPacket [13:44:42]OFDProtocolAddRootSTLVToBuf [13:44:42]FM_MakeSignedData [13:44:42]FM_MakeSignedData [13:44:42]SAM_PROTO_SignData [13:44:42]wFMCommunicate request_size=4 [13:44:42]MH_SAM_APDU [13:44:42]CAPDU: 80 0D 01 02 [13:44:42]Write to MH i2c: E2 08 00 A7 32 80 0D 01 02 00 00 00 00 52 [13:44:42]Write i2c OK [13:44:42]MH_I2C_Read... [13:44:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:44:42]Read from MH i2c: E2 [13:44:42]MH_I2C_Read... [13:44:42]Read from MH i2c: E2 03 00 [13:44:42]MH_I2C_Read... [13:44:42]Read from MH i2c: E2 03 00 A7 32 00 90 00 4D [13:44:42]RAPDU: 90 00 [13:44:42]wFMCommunicate OK [13:44:42]wFMCommunicate request_size=255 [13:44:42]MH_SAM_APDU [13:44:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 2F 00 00 00 F4 03 04 00 D2 FD 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 48 0B 01 00 35 04 06 00 0D 07 87 F9 [13:44:42]Write to MH i2c: E2 02 01 A8 32 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 2F 00 00 00 F4 03 04 00 D2 FD 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 48 0B 01 00 35 04 06 00 0D 07 87 F9 00 00 C1 [13:44:42]Write i2c OK [13:44:42]MH_I2C_Read... [13:44:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:43]Read from MH i2c: E2 [13:44:43]MH_I2C_Read... [13:44:43]Read from MH i2c: E2 03 00 [13:44:43]MH_I2C_Read... [13:44:43]Read from MH i2c: E2 03 00 A8 32 00 90 00 4E [13:44:43]RAPDU: 90 00 [13:44:43]wFMCommunicate OK [13:44:43]wFMCommunicate request_size=7 [13:44:43]MH_SAM_APDU [13:44:43]CAPDU: 80 0D 02 02 02 F9 BC [13:44:43]Write to MH i2c: E2 0A 00 A9 32 80 0D 02 02 02 00 F9 BC 00 00 0E [13:44:43]Write i2c OK [13:44:43]MH_I2C_Read... [13:44:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:43]Read from MH i2c: E2 [13:44:43]MH_I2C_Read... [13:44:43]Read from MH i2c: E2 03 00 [13:44:43]MH_I2C_Read... [13:44:43]Read from MH i2c: E2 03 00 A9 32 00 90 00 4F [13:44:43]RAPDU: 90 00 [13:44:43]wFMCommunicate OK [13:44:43]wFMCommunicate request_size=4 [13:44:43]MH_SAM_APDU [13:44:43]CAPDU: 80 0D 03 02 [13:44:43]Write to MH i2c: E2 08 00 AA 32 80 0D 03 02 00 00 00 00 57 [13:44:43]Write i2c OK [13:44:43]MH_I2C_Read... [13:44:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:44:43]Read from MH i2c: E2 [13:44:43]MH_I2C_Read... [13:44:43]Read from MH i2c: E2 0B 00 [13:44:43]MH_I2C_Read... [13:44:43]Read from MH i2c: E2 0B 00 AA 32 00 19 20 A4 5B 26 2A 9B AA 90 00 25 [13:44:43]RAPDU: 19 20 A4 5B 26 2A 9B AA 90 00 [13:44:43]wFMCommunicate OK [13:44:43]SAM_PROTO_SignData done [13:44:43]FM_MakeSignedData done [13:44:43]CreateOFDProtocolMessage [13:44:43]wFMCommunicate request_size=4 [13:44:43]MH_SAM_APDU [13:44:43]CAPDU: 80 11 00 00 [13:44:43]Write to MH i2c: E2 08 00 AB 32 80 11 00 00 00 00 00 00 57 [13:44:43]Write i2c OK [13:44:43]MH_I2C_Read... [13:44:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:43]Read from MH i2c: E2 [13:44:43]MH_I2C_Read... [13:44:43]Read from MH i2c: E2 17 00 [13:44:43]MH_I2C_Read... [13:44:43]Read from MH i2c: E2 17 00 AB 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 AB [13:44:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [13:44:43]wFMCommunicate OK [13:44:43]CreateOFDProtocolMessage done [13:44:43]OFDSenderStorePacket 68424 [13:44:43]StoreOFDPacket docnum=68424 [13:44:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0C 01 00 00 9C CA 04 01 2C 28 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 2F 00 00 00 F4 03 04 00 D2 FD 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 48 0B 01 00 35 04 06 00 0D 07 87 F9 F9 BC 19 20 A4 5B 26 2A 9B AA [13:44:43]CheckFolder [13:44:43]dirname=/storage/ofd_packets [13:44:43]CheckFolder done [13:44:43]ProducePacketName [13:44:43]name=ofd_packets/00068424 [13:44:43]NVStorageSaveData ofd_packets/00068424 [13:44:43]File name is /storage/ofd_packets/00068424 [13:44:43]Write 298 bytes [13:44:43]NVStorageSaveData done [13:44:43]OFDSenderStorePacket done [13:44:43]KKMCreateOFDPacket done [13:44:43]NVStorageSaveData kkm_last_timestamp [13:44:43]File name is /storage/kkm_last_timestamp [13:44:43]Write 4 bytes [13:44:43]NVStorageSaveData done [13:44:43]ExternCall_PrintAddStr [13:44:43]wPrintStart [13:44:43]Write to MH i2c: 01 00 00 AC 32 DE [13:44:43]Write i2c OK [13:44:43]MH_I2C_Read... [13:44:43]Read from MH i2c: 01 [13:44:43]MH_I2C_Read... [13:44:43]Read from MH i2c: 01 07 00 [13:44:43]MH_I2C_Read... [13:44:43]Read from MH i2c: 01 07 00 AC 32 00 04 00 00 00 FF 0F F7 [13:44:43]RasterBufferAndPrint [13:44:43]line Счет N : (1)210421 [13:44:43]line ИНН: 02508201610067 [13:44:43]line Контрольно-Кассовый Чек [13:44:43]line ПРОДАЖА [13:44:43]line ТРК (МРК, ГНК) : 21 [13:44:43]line Товар: 2710194210 [13:44:43]line ДТ-К-2 [13:44:43]line 6.570 * 76.20 [13:44:43]line = 500.63 [13:44:43]line НДС 12% НСП 1% [13:44:43]line > о реализуемом товаре [13:44:43]line ОКРУГЛЕНИЕ: -0.63 [13:44:43]line ИТОГО: 500.00 [13:44:43]line Внесено: 500.00 [13:44:43]line СДАЧА: 0.00 [13:44:43]line НСП 1% : 4.43 [13:44:43]line НДС 12% : 53.16 [13:44:43]line Наличными: 500.00 [13:44:43]line Безнал.: 0.00 [13:44:43]line Место: АЗС № 147 "Партнер Нефть" [13:44:43]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [13:44:43]line СНО: Общий режим [13:44:43]line Чек 47 23.10.2024 13:44 [13:44:43]line Смена: 507 ФФД: 1.0 [13:44:43]line ЗНМ: 0300000094 [13:44:43]line РНМ: 0000000000091756 [13:44:43]line Версия ККМ: 001 [13:44:43]line ФМ: 0000000000871809 [13:44:43]line ФД: 68424 [13:44:43]line ФПД: 14325997238716 [13:44:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134450&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68424&fm=14325997238716&tin=02508201610067®Number=0000000000091756&sum=50000 [13:44:43]OFD Sender: Processing packet 68424 [packets to send 8, broken 7] [13:44:43]ProducePacketName [13:44:43]name=ofd_packets/00068424 [13:44:43]OFD Sender: To server: pG, [13:44:43]CommunicateWithHost lk.salyk.kg:30040 [13:44:43]ConnectInit lk.salyk.kg [13:44:43]written 0, free lines is 4095 [13:44:43]Connected sock=10 [13:44:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0C 01 00 00 9C CA 04 01 2C 28 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 2F 00 00 00 F4 03 04 00 D2 FD 18 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 48 0B 01 00 35 04 06 00 0D 07 87 F9 F9 BC 19 20 A4 5B 26 2A 9B AA [13:44:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 99 CA 47 00 A6 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 31 38 30 39 10 04 04 00 48 0B 01 00 F4 03 04 00 C7 A3 18 67 B6 04 01 00 00 A1 C0 7F 09 F6 48 D6 6B [13:44:44]CommunicateWithHost err = 0 [13:44:44]CheckOFDResponse [13:44:44]1017 (14) - 77093643461234 [13:44:44]1041 (16) - 0000000000871809 [13:44:44]1040 (4) - 68424 [13:44:44]1012 (4) - 23.10.2024 07:20 [13:44:44]1206 (1) - 0 [13:44:44]OFD Sender: Remove packet 68424 [13:44:44]ProducePacketName [13:44:44]name=ofd_packets/00068424 [13:44:44]NVStorageDeleteData [13:44:44]Write to MH i2c: 01 00 00 D6 32 08 [13:44:44]Write i2c OK [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: 01 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: 01 07 00 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: 01 07 00 D6 32 00 04 00 00 00 AF 0C CE [13:44:44]RasterBufferAndPrint [13:44:44]line [13:44:44]line [13:44:44]line [13:44:44]line [13:44:44]line [13:44:44]written 0, free lines is 3253 [13:44:44]MH_Cut [13:44:44]Write to MH i2c: D1 01 00 DD 32 01 E1 [13:44:44]Write i2c OK [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: D1 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: D1 01 00 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: D1 01 00 DD 32 00 E0 [13:44:44]Write to MH i2c: 01 00 00 DE 32 10 [13:44:44]Write i2c OK [13:44:44]MH_I2C_Read... [13:44:44]OFD Sender: No OFD packet to send [13:44:45]*** Cut start [13:44:45]*** Partial cut [13:44:45]*** CUTSNS_PIN = 1 [13:44:45]*** CUTSNS_PIN = 0 [13:44:45]*** Brake cut motor [13:44:45]Read from MH i2c: 01 [13:44:45]MH_I2C_Read... [13:44:45]*** Stop cut motor [13:44:45]*** Cut end [13:44:45]Read from MH i2c: 01 07 00 [13:44:45]MH_I2C_Read... [13:44:45]Read from MH i2c: 01 07 00 DE 32 00 04 00 00 00 FF 0F 29 [13:44:45]process_action close_receipt done [13:44:45]requested_data is exist [13:44:45]produce_requested_data [13:44:45]requested_item fm.sn is exist - process it [13:44:45]wFMCommunicate request_size=4 [13:44:45]MH_SAM_APDU [13:44:45]CAPDU: 80 11 00 00 [13:44:45]Write to MH i2c: E2 08 00 DF 32 80 11 00 00 00 00 00 00 8B [13:44:45]Write i2c OK [13:44:45]MH_I2C_Read... [13:44:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:45]Read from MH i2c: E2 [13:44:45]MH_I2C_Read... [13:44:45]Read from MH i2c: E2 17 00 [13:44:45]MH_I2C_Read... [13:44:45]Read from MH i2c: E2 17 00 DF 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 DF [13:44:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [13:44:45]wFMCommunicate OK [13:44:45]requested_item fd.num is exist - process it [13:44:45]SAM_PROTO_GetFieldsCounters [13:44:45]wFMCommunicate request_size=4 [13:44:45]MH_SAM_APDU [13:44:45]CAPDU: 80 13 00 00 [13:44:45]Write to MH i2c: E2 08 00 E0 32 80 13 00 00 00 00 00 00 8E [13:44:45]Write i2c OK [13:44:45]MH_I2C_Read... [13:44:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:44:45]Read from MH i2c: E2 [13:44:45]MH_I2C_Read... [13:44:45]Read from MH i2c: E2 62 00 [13:44:45]MH_I2C_Read... [13:44:45]Read from MH i2c: E2 62 00 E0 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 48 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [13: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 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 48 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:44:45]wFMCommunicate OK [13:44:45]SAM_PROTO_GetFieldsCounters done [13:44:45]requested_item shift.num is exist - process it [13:44:45]requested_item shift.opened is exist - process it [13:44:45]req_shift_opened [13:44:45]FM_GetShiftState [13:44:45]SAM_PROTO_GetShiftState [13:44:45]wFMCommunicate request_size=4 [13:44:45]MH_SAM_APDU [13:44:45]CAPDU: 80 13 01 00 [13:44:45]Write to MH i2c: E2 08 00 E1 32 80 13 01 00 00 00 00 00 90 [13:44:45]Write i2c OK [13:44:45]MH_I2C_Read... [13:44:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:45]Read from MH i2c: E2 [13:44:45]MH_I2C_Read... [13:44:45]Read from MH i2c: E2 0E 00 [13:44:45]MH_I2C_Read... [13:44:45]Read from MH i2c: E2 0E 00 E1 32 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 FF [13:44:45]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [13:44:45]wFMCommunicate OK [13:44:45]SAM_PROTO_GetShiftState done [13:44:45]FM_GetShiftState done [13:44:45]req_shift_opened done [13:44:45]requested_item shift.open_date is exist - process it [13:44:45]req_shift_open_date [13:44:45]req_shift_open_date done [13:44:45]produce_requested_data done [13:44:45]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68424,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [13:44:45]process_action_free close_receipt [13:44:45]json_value_free [13:44:45]json_value_free done [13:44:45]process_json_proto returns [13:44:45]Send response to host [13:44:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68424,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [13:44:45]free response buf [13:44:45]execute_script done [13:44:45]execute_script returns [13:44:45]free content buf [13:44:45]Sock 9.Close socket [13:44:45]Sock 9.Thread stoped [13:44:49]OFD Sender: No OFD packet to send [13:44:54]OFD Sender: No OFD packet to send [13:44:59]OFD Sender: No OFD packet to send [13:45:04]OFD Sender: No OFD packet to send [13:45:09]OFD Sender: No OFD packet to send [13:45:14]OFD Sender: No OFD packet to send [13:45:19]OFD Sender: No OFD packet to send [13:45:24]OFD Sender: No OFD packet to send [13:45:29]OFD Sender: No OFD packet to send [13:45:34]OFD Sender: No OFD packet to send [13:45:39]OFD Sender: No OFD packet to send [13:45:44]OFD Sender: No OFD packet to send [13:45:49]OFD Sender: No OFD packet to send [13:45:54]OFD Sender: No OFD packet to send [13:45:59]OFD Sender: No OFD packet to send [13:46:04]OFD Sender: No OFD packet to send [13:46:09]OFD Sender: No OFD packet to send [13:46:14]OFD Sender: No OFD packet to send [13:46:19]OFD Sender: No OFD packet to send [13:46:24]OFD Sender: No OFD packet to send [13:46:29]OFD Sender: No OFD packet to send [13:46:34]OFD Sender: No OFD packet to send [13:46:39]OFD Sender: No OFD packet to send [13:46:44]OFD Sender: No OFD packet to send [13:46:49]OFD Sender: No OFD packet to send [13:46:54]OFD Sender: No OFD packet to send [13:46:59]OFD Sender: No OFD packet to send [13:47:04]OFD Sender: No OFD packet to send [13:47:09]OFD Sender: No OFD packet to send [13:47:14]OFD Sender: No OFD packet to send [13:47:19]OFD Sender: No OFD packet to send [13:47:24]OFD Sender: No OFD packet to send [13:47:29]OFD Sender: No OFD packet to send [13:47:34]OFD Sender: No OFD packet to send [13:47:39]OFD Sender: No OFD packet to send [13:47:44]OFD Sender: No OFD packet to send [13:47:49]OFD Sender: No OFD packet to send [13:47:54]OFD Sender: No OFD packet to send [13:47:59]OFD Sender: No OFD packet to send [13:48:04]OFD Sender: No OFD packet to send [13:48:09]OFD Sender: No OFD packet to send [13:48:14]OFD Sender: No OFD packet to send [13:48:19]OFD Sender: No OFD packet to send [13:48:24]OFD Sender: No OFD packet to send [13:48:29]OFD Sender: No OFD packet to send [13:48:34]OFD Sender: No OFD packet to send [13:48:39]OFD Sender: No OFD packet to send [13:48:44]OFD Sender: No OFD packet to send [13:48:49]OFD Sender: No OFD packet to send [13:48:54]OFD Sender: No OFD packet to send [13:48:59]OFD Sender: No OFD packet to send [13:49:04]OFD Sender: No OFD packet to send [13:49:09]OFD Sender: No OFD packet to send [13:49:14]OFD Sender: No OFD packet to send [13:49:19]OFD Sender: No OFD packet to send [13:49:24]OFD Sender: No OFD packet to send [13:49:29]OFD Sender: No OFD packet to send [13:49:34]OFD Sender: No OFD packet to send [13:49:39]OFD Sender: No OFD packet to send [13:49:44]OFD Sender: No OFD packet to send [13:49:49]OFD Sender: No OFD packet to send [13:49:54]OFD Sender: No OFD packet to send [13:49:59]OFD Sender: No OFD packet to send [13:50:04]OFD Sender: No OFD packet to send [13:50:09]OFD Sender: No OFD packet to send [13:50:14]OFD Sender: No OFD packet to send [13:50:19]OFD Sender: No OFD packet to send [13:50:24]OFD Sender: No OFD packet to send [13:50:29]OFD Sender: No OFD packet to send [13:50:34]OFD Sender: No OFD packet to send [13:50:39]OFD Sender: No OFD packet to send [13:50:44]OFD Sender: No OFD packet to send [13:50:49]OFD Sender: No OFD packet to send [13:50:54]OFD Sender: No OFD packet to send [13:50:59]OFD Sender: No OFD packet to send [13:51:04]OFD Sender: No OFD packet to send [13:51:09]OFD Sender: No OFD packet to send [13:51:14]OFD Sender: No OFD packet to send [13:51:19]OFD Sender: No OFD packet to send [13:51:24]OFD Sender: No OFD packet to send [13:51:29]OFD Sender: No OFD packet to send [13:51:34]OFD Sender: No OFD packet to send [13:51:39]OFD Sender: No OFD packet to send [13:51:44]OFD Sender: No OFD packet to send [13:51:49]OFD Sender: No OFD packet to send [13:51:54]OFD Sender: No OFD packet to send [13:51:59]OFD Sender: No OFD packet to send [13:52:04]OFD Sender: No OFD packet to send [13:52:09]OFD Sender: No OFD packet to send [13:52:14]OFD Sender: No OFD packet to send [13:52:19]OFD Sender: No OFD packet to send [13:52:24]OFD Sender: No OFD packet to send [13:52:29]OFD Sender: No OFD packet to send [13:52:34]OFD Sender: No OFD packet to send [13:52:39]OFD Sender: No OFD packet to send [13:52:44]OFD Sender: No OFD packet to send [13:52:49]OFD Sender: No OFD packet to send [13:52:54]OFD Sender: No OFD packet to send [13:52:59]OFD Sender: No OFD packet to send [13:53:04]OFD Sender: No OFD packet to send [13:53:09]OFD Sender: No OFD packet to send [13:53:14]OFD Sender: No OFD packet to send [13:53:19]OFD Sender: No OFD packet to send [13:53:24]OFD Sender: No OFD packet to send [13:53:29]OFD Sender: No OFD packet to send [13:53:34]OFD Sender: No OFD packet to send [13:53:39]OFD Sender: No OFD packet to send [13:53:44]OFD Sender: No OFD packet to send [13:53:49]OFD Sender: No OFD packet to send [13:53:54]OFD Sender: No OFD packet to send [13:53:59]OFD Sender: No OFD packet to send [13:54:04]OFD Sender: No OFD packet to send [13:54:09]OFD Sender: No OFD packet to send [13:54:14]OFD Sender: No OFD packet to send [13:54:19]OFD Sender: No OFD packet to send [13:54:24]OFD Sender: No OFD packet to send [13:54:29]OFD Sender: No OFD packet to send [13:54:34]OFD Sender: No OFD packet to send [13:54:39]OFD Sender: No OFD packet to send [13:54:44]OFD Sender: No OFD packet to send [13:54:50]OFD Sender: No OFD packet to send [13:54:55]OFD Sender: No OFD packet to send [13:55:00]OFD Sender: No OFD packet to send [13:55:02]accept exits with 7 [13:55:02]New connection [13:55:02]New thread 3067276644 created [13:55:02]Thread 3067133284 joined [13:55:02]Waiting for new connection... [13:55:02] Sock 7.Parse request [13:55:02]Sock 7.Check first char [13:55:02]Sock 7.First char is OK [13:55:02]request: POST /json_proto HTTP/1.0 [13:55:02]Method: POST [13:55:02]URL: /json_proto [13:55:02]Method is POST - this is cgi request [13:55:02]url: /json_proto [13:55:02]query_string will be loaded in cgi processing [13:55:02]execute_cgi json_proto POST (null) [13:55:02]execute_cgi path=json_proto method=POST [13:55:02]POST find Content-Length [13:55:02]Host: 172.17.52.3:8080 [13:55:02]Content-Length: 679 [13:55:02]Content-Type: application/json [13:55:02] [13:55:02]POST finish read [13:55:02]Found Content-Length = 679 [13:55:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 22.310, "sum" : 1700.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:02]execute_script... [13:55: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)210422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 22.310, "sum" : 1700.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:02]POST & json_proto [13:55:02]process_json_proto [13:55:02]json parsed OK: [13:55:02]protocol is kg_v1.0 [13:55:02]action value=close_receipt [13:55:02]process_action close_receipt [13:55:02]cmd_close_receipt [13:55:02]MH_GetDate [13:55:02]Write to MH i2c: F0 00 00 E2 32 03 [13:55:02]Write i2c OK [13:55:02]MH_I2C_Read... [13:55:02]Read from MH i2c: F0 [13:55:02]MH_I2C_Read... [13:55:02]Read from MH i2c: F0 09 00 [13:55:02]MH_I2C_Read... [13:55:02]Read from MH i2c: F0 09 00 E2 32 00 3F 00 19 67 D7 68 A5 64 13 [13:55:02]GetLastDocTimeStamp 1729691090 [13:55:02]current date 1729691711 [13:55:02]FM_GetShiftState [13:55:02]SAM_PROTO_GetShiftState [13:55:02]wFMCommunicate request_size=4 [13:55:02]MH_SAM_APDU [13:55:02]CAPDU: 80 13 01 00 [13:55:02]Write to MH i2c: E2 08 00 E3 32 80 13 01 00 00 00 00 00 92 [13:55:02]Write i2c OK [13:55:02]MH_I2C_Read... [13:55:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:02]Read from MH i2c: E2 [13:55:02]MH_I2C_Read... [13:55:02]Read from MH i2c: E2 0E 00 [13:55:02]MH_I2C_Read... [13:55:02]Read from MH i2c: E2 0E 00 E3 32 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 01 [13:55:02]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [13:55:02]wFMCommunicate OK [13:55:02]SAM_PROTO_GetShiftState done [13:55:02]FM_GetShiftState done [13:55:02]opened in 1729641385 [13:55:02]opened+sec_in_day 1729727785 [13:55:02]quantity*price = 170002 [13:55:02]sum+1 = 170003 [13:55:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 1700.00 Внесено: 1700.00 СДАЧА: 0.00 НСП 1% : 15.04 НДС 12% : 180.53 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 48 23.10.2024 13:55 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68425 ФПД: 43012434636265 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135511&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68425&fm=43012434636265&tin=02508201610067®Number=0000000000091756&sum=170000 [13:55:03]StoreToDocumentArchive [13:55:03]shift 507 fd 68425 [13:55:03]save to /storage/0507/doc_00068425 [13:55:03]save last doc name /storage/0507/doc_00068425 to /storage/kkm_last_doc_name [13:55:03]save OK [13:55:03]Clear old archive folders... [13:55:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:55:03]tlvbuf is 01FAAD10 [13:55:03]SAM_PROTO_ClearQueue [13:55:03]wFMCommunicate request_size=4 [13:55:03]MH_SAM_APDU [13:55:03]CAPDU: 80 09 00 00 [13:55:03]Write to MH i2c: E2 08 00 F0 32 80 09 00 00 00 00 00 00 94 [13:55:03]Write i2c OK [13:55:03]MH_I2C_Read... [13:55:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:03]Read from MH i2c: E2 [13:55:03]MH_I2C_Read... [13:55:03]Read from MH i2c: E2 03 00 [13:55:03]MH_I2C_Read... [13:55:03]Read from MH i2c: E2 03 00 F0 32 00 90 00 96 [13:55:03]RAPDU: 90 00 [13:55:03]wFMCommunicate OK [13:55:03]SAM_PROTO_ClearQueue done [13:55:03]KKMCreateOFDPacket [13:55:03]OFDProtocolAddRootSTLVToBuf [13:55:03]FM_MakeSignedData [13:55:03]FM_MakeSignedData [13:55:03]SAM_PROTO_SignData [13:55:03]wFMCommunicate request_size=4 [13:55:03]MH_SAM_APDU [13:55:03]CAPDU: 80 0D 01 02 [13:55:03]Write to MH i2c: E2 08 00 F1 32 80 0D 01 02 00 00 00 00 9C [13:55:03]Write i2c OK [13:55:03]MH_I2C_Read... [13:55:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:03]Read from MH i2c: E2 [13:55:03]MH_I2C_Read... [13:55:03]Read from MH i2c: E2 03 00 [13:55:03]MH_I2C_Read... [13:55:03]Read from MH i2c: E2 03 00 F1 32 00 90 00 97 [13:55:03]RAPDU: 90 00 [13:55:03]wFMCommunicate OK [13:55:03]wFMCommunicate request_size=255 [13:55:03]MH_SAM_APDU [13:55:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 3F 00 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 49 0B 01 00 35 04 06 00 27 1E 9C E3 [13:55:03]Write to MH i2c: E2 02 01 F2 32 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 3F 00 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 49 0B 01 00 35 04 06 00 27 1E 9C E3 00 00 0C [13:55:03]Write i2c OK [13:55:03]MH_I2C_Read... [13:55:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:03]Read from MH i2c: E2 [13:55:03]MH_I2C_Read... [13:55:03]Read from MH i2c: E2 03 00 [13:55:03]MH_I2C_Read... [13:55:03]Read from MH i2c: E2 03 00 F2 32 00 90 00 98 [13:55:03]RAPDU: 90 00 [13:55:03]wFMCommunicate OK [13:55:03]wFMCommunicate request_size=7 [13:55:03]MH_SAM_APDU [13:55:03]CAPDU: 80 0D 02 02 02 2D E9 [13:55:03]Write to MH i2c: E2 0A 00 F3 32 80 0D 02 02 02 00 2D E9 00 00 B9 [13:55:03]Write i2c OK [13:55:03]MH_I2C_Read... [13:55:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:03]Read from MH i2c: E2 [13:55:03]MH_I2C_Read... [13:55:03]Read from MH i2c: E2 03 00 [13:55:03]MH_I2C_Read... [13:55:03]Read from MH i2c: E2 03 00 F3 32 00 90 00 99 [13:55:03]RAPDU: 90 00 [13:55:03]wFMCommunicate OK [13:55:03]wFMCommunicate request_size=4 [13:55:03]MH_SAM_APDU [13:55:03]CAPDU: 80 0D 03 02 [13:55:03]Write to MH i2c: E2 08 00 F4 32 80 0D 03 02 00 00 00 00 A1 [13:55:03]Write i2c OK [13:55:03]MH_I2C_Read... [13:55:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:03]Read from MH i2c: E2 [13:55:03]MH_I2C_Read... [13:55:03]Read from MH i2c: E2 0B 00 [13:55:03]MH_I2C_Read... [13:55:03]Read from MH i2c: E2 0B 00 F4 32 00 57 FA 7B EC 44 2E 8A 50 90 00 A6 [13:55:03]RAPDU: 57 FA 7B EC 44 2E 8A 50 90 00 [13:55:03]wFMCommunicate OK [13:55:03]SAM_PROTO_SignData done [13:55:03]FM_MakeSignedData done [13:55:03]CreateOFDProtocolMessage [13:55:03]wFMCommunicate request_size=4 [13:55:03]MH_SAM_APDU [13:55:03]CAPDU: 80 11 00 00 [13:55:03]Write to MH i2c: E2 08 00 F5 32 80 11 00 00 00 00 00 00 A1 [13:55:03]Write i2c OK [13:55:03]MH_I2C_Read... [13:55:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:04]Read from MH i2c: E2 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: E2 17 00 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: E2 17 00 F5 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 F5 [13:55:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [13:55:04]wFMCommunicate OK [13:55:04]CreateOFDProtocolMessage done [13:55:04]OFDSenderStorePacket 68425 [13:55:04]StoreOFDPacket docnum=68425 [13:55:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0C 01 00 00 33 CF 04 01 AF DA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 3F 00 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 49 0B 01 00 35 04 06 00 27 1E 9C E3 2D E9 57 FA 7B EC 44 2E 8A 50 [13:55:04]CheckFolder [13:55:04]dirname=/storage/ofd_packets [13:55:04]CheckFolder done [13:55:04]ProducePacketName [13:55:04]name=ofd_packets/00068425 [13:55:04]NVStorageSaveData ofd_packets/00068425 [13:55:04]File name is /storage/ofd_packets/00068425 [13:55:04]Write 298 bytes [13:55:04]NVStorageSaveData done [13:55:04]OFDSenderStorePacket done [13:55:04]KKMCreateOFDPacket done [13:55:04]NVStorageSaveData kkm_last_timestamp [13:55:04]File name is /storage/kkm_last_timestamp [13:55:04]Write 4 bytes [13:55:04]NVStorageSaveData done [13:55:04]ExternCall_PrintAddStr [13:55:04]wPrintStart [13:55:04]Write to MH i2c: 01 00 00 F6 32 28 [13:55:04]Write i2c OK [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: 01 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: 01 07 00 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: 01 07 00 F6 32 00 04 00 00 00 FF 0F 41 [13:55:04]RasterBufferAndPrint [13:55:04]line Счет N : (1)210422 [13:55:04]line ИНН: 02508201610067 [13:55:04]line Контрольно-Кассовый Чек [13:55:04]line ПРОДАЖА [13:55:04]line ТРК (МРК, ГНК) : 32 [13:55:04]line Товар: 2710194210 [13:55:04]line ДТ-К-2 [13:55:04]line 22.310 * 76.20 [13:55:04]line = 1700.02 [13:55:04]line НДС 12% НСП 1% [13:55:04]line > о реализуемом товаре [13:55:04]line ОКРУГЛЕНИЕ: -0.02 [13:55:04]line ИТОГО: 1700.00 [13:55:04]line Внесено: 1700.00 [13:55:04]line СДАЧА: 0.00 [13:55:04]line НСП 1% : 15.04 [13:55:04]line НДС 12% : 180.53 [13:55:04]line Наличными: 1700.00 [13:55:04]line Безнал.: 0.00 [13:55:04]line Место: АЗС № 147 "Партнер Нефть" [13:55:04]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [13:55:04]line СНО: Общий режим [13:55:04]line Чек 48 23.10.2024 13:55 [13:55:04]line Смена: 507 ФФД: 1.0 [13:55:04]line ЗНМ: 0300000094 [13:55:04]line РНМ: 0000000000091756 [13:55:04]line Версия ККМ: 001 [13:55:04]line ФМ: 0000000000871809 [13:55:04]line ФД: 68425 [13:55:04]line ФПД: 43012434636265 [13:55:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135511&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68425&fm=43012434636265&tin=02508201610067®Number=0000000000091756&sum=170000 [13:55:04]OFD Sender: Processing packet 68425 [packets to send 8, broken 7] [13:55:04]ProducePacketName [13:55:04]name=ofd_packets/00068425 [13:55:04]OFD Sender: To server: pG, [13:55:04]CommunicateWithHost lk.salyk.kg:30040 [13:55:04]ConnectInit lk.salyk.kg [13:55:04]written 0, free lines is 4095 [13:55:04]Connected sock=10 [13:55:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0C 01 00 00 33 CF 04 01 AF DA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 3F 00 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 49 0B 01 00 35 04 06 00 27 1E 9C E3 2D E9 57 FA 7B EC 44 2E 8A 50 [13:55:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 A7 F8 47 00 65 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 31 38 30 39 10 04 04 00 49 0B 01 00 F4 03 04 00 34 A6 18 67 B6 04 01 00 00 44 44 D9 45 3E B9 C4 21 [13:55:04]CommunicateWithHost err = 0 [13:55:04]CheckOFDResponse [13:55:04]1017 (14) - 77093643461234 [13:55:04]1041 (16) - 0000000000871809 [13:55:04]1040 (4) - 68425 [13:55:04]1012 (4) - 23.10.2024 07:31 [13:55:04]1206 (1) - 0 [13:55:04]OFD Sender: Remove packet 68425 [13:55:04]ProducePacketName [13:55:04]name=ofd_packets/00068425 [13:55:04]NVStorageDeleteData [13:55:04]Write to MH i2c: 01 00 00 20 33 53 [13:55:04]Write i2c OK [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: 01 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: 01 07 00 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: 01 07 00 20 33 00 04 00 00 00 B7 0C 21 [13:55:04]RasterBufferAndPrint [13:55:04]line [13:55:04]line [13:55:04]line [13:55:04]line [13:55:04]line [13:55:04]written 0, free lines is 3262 [13:55:04]MH_Cut [13:55:04]Write to MH i2c: D1 01 00 27 33 01 2C [13:55:04]Write i2c OK [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: D1 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: D1 01 00 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: D1 01 00 27 33 00 2B [13:55:04]Write to MH i2c: 01 00 00 28 33 5B [13:55:04]Write i2c OK [13:55:04]MH_I2C_Read... [13:55:05]OFD Sender: No OFD packet to send [13:55:05]*** Cut start [13:55:05]*** Partial cut [13:55:05]*** CUTSNS_PIN = 1 [13:55:05]*** CUTSNS_PIN = 0 [13:55:05]*** Brake cut motor [13:55:06]Read from MH i2c: 01 [13:55:06]MH_I2C_Read... [13:55:06]*** Stop cut motor [13:55:06]*** Cut end [13:55:06]Read from MH i2c: 01 07 00 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: 01 07 00 28 33 00 04 00 00 00 FF 0F 74 [13:55:06]process_action close_receipt done [13:55:06]requested_data is exist [13:55:06]produce_requested_data [13:55:06]requested_item fm.sn is exist - process it [13:55:06]wFMCommunicate request_size=4 [13:55:06]MH_SAM_APDU [13:55:06]CAPDU: 80 11 00 00 [13:55:06]Write to MH i2c: E2 08 00 29 33 80 11 00 00 00 00 00 00 D6 [13:55:06]Write i2c OK [13:55:06]MH_I2C_Read... [13:55:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:06]Read from MH i2c: E2 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: E2 17 00 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: E2 17 00 29 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 2A [13:55:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [13:55:06]wFMCommunicate OK [13:55:06]requested_item fd.num is exist - process it [13:55:06]SAM_PROTO_GetFieldsCounters [13:55:06]wFMCommunicate request_size=4 [13:55:06]MH_SAM_APDU [13:55:06]CAPDU: 80 13 00 00 [13:55:06]Write to MH i2c: E2 08 00 2A 33 80 13 00 00 00 00 00 00 D9 [13:55:06]Write i2c OK [13:55:06]MH_I2C_Read... [13:55:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:06]Read from MH i2c: E2 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: E2 62 00 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: E2 62 00 2A 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 49 0B 01 00 0E 04 04 00 FB 01 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 DF [13:55:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 49 0B 01 00 0E 04 04 00 FB 01 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 [13:55:06]wFMCommunicate OK [13:55:06]SAM_PROTO_GetFieldsCounters done [13:55:06]requested_item shift.num is exist - process it [13:55:06]requested_item shift.opened is exist - process it [13:55:06]req_shift_opened [13:55:06]FM_GetShiftState [13:55:06]SAM_PROTO_GetShiftState [13:55:06]wFMCommunicate request_size=4 [13:55:06]MH_SAM_APDU [13:55:06]CAPDU: 80 13 01 00 [13:55:06]Write to MH i2c: E2 08 00 2B 33 80 13 01 00 00 00 00 00 DB [13:55:06]Write i2c OK [13:55:06]MH_I2C_Read... [13:55:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:06]Read from MH i2c: E2 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: E2 0E 00 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: E2 0E 00 2B 33 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 4A [13:55:06]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [13:55:06]wFMCommunicate OK [13:55:06]SAM_PROTO_GetShiftState done [13:55:06]FM_GetShiftState done [13:55:06]req_shift_opened done [13:55:06]requested_item shift.open_date is exist - process it [13:55:06]req_shift_open_date [13:55:06]req_shift_open_date done [13:55:06]produce_requested_data done [13:55:06]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68425,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [13:55:06]process_action_free close_receipt [13:55:06]json_value_free [13:55:06]json_value_free done [13:55:06]process_json_proto returns [13:55:06]Send response to host [13:55:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68425,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [13:55:06]free response buf [13:55:06]execute_script done [13:55:06]execute_script returns [13:55:06]free content buf [13:55:06]Sock 7.Close socket [13:55:06]Sock 7.Thread stoped [13:55:10]OFD Sender: No OFD packet to send [13:55:15]OFD Sender: No OFD packet to send [13:55:20]OFD Sender: No OFD packet to send [13:55:25]OFD Sender: No OFD packet to send [13:55:30]OFD Sender: No OFD packet to send [13:55:35]OFD Sender: No OFD packet to send [13:55:40]OFD Sender: No OFD packet to send [13:55:45]OFD Sender: No OFD packet to send [13:55:50]OFD Sender: No OFD packet to send [13:55:55]OFD Sender: No OFD packet to send [13:56:00]OFD Sender: No OFD packet to send [13:56:05]OFD Sender: No OFD packet to send [13:56:10]OFD Sender: No OFD packet to send [13:56:15]OFD Sender: No OFD packet to send [13:56:20]OFD Sender: No OFD packet to send [13:56:25]OFD Sender: No OFD packet to send [13:56:30]OFD Sender: No OFD packet to send [13:56:35]OFD Sender: No OFD packet to send [13:56:40]OFD Sender: No OFD packet to send [13:56:45]OFD Sender: No OFD packet to send [13:56:50]OFD Sender: No OFD packet to send [13:56:55]OFD Sender: No OFD packet to send [13:57:00]OFD Sender: No OFD packet to send [13:57:05]accept exits with 9 [13:57:05]New connection [13:57:05]New thread 3067133284 created [13:57:05]Thread 3067276644 joined [13:57:05]Waiting for new connection... [13:57:05] Sock 9.Parse request [13:57:05]Sock 9.Check first char [13:57:05]Sock 9.First char is OK [13:57:05]request: POST /json_proto HTTP/1.0 [13:57:05]Method: POST [13:57:05]URL: /json_proto [13:57:05]Method is POST - this is cgi request [13:57:05]url: /json_proto [13:57:05]query_string will be loaded in cgi processing [13:57:05]execute_cgi json_proto POST (null) [13:57:05]execute_cgi path=json_proto method=POST [13:57:05]POST find Content-Length [13:57:05]Host: 172.17.52.3:8080 [13:57:05]Content-Length: 677 [13:57:05]Content-Type: application/json [13:57:05] [13:57:05]POST finish read [13:57:05]Found Content-Length = 677 [13:57:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:57:05]execute_script... [13:57:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:57:05]POST & json_proto [13:57:05]process_json_proto [13:57:05]json parsed OK: [13:57:05]protocol is kg_v1.0 [13:57:05]action value=close_receipt [13:57:05]process_action close_receipt [13:57:05]cmd_close_receipt [13:57:05]MH_GetDate [13:57:05]Write to MH i2c: F0 00 00 2C 33 4E [13:57:05]Write i2c OK [13:57:05]MH_I2C_Read... [13:57:05]Read from MH i2c: F0 [13:57:05]MH_I2C_Read... [13:57:05]Read from MH i2c: F0 09 00 [13:57:05]MH_I2C_Read... [13:57:05]Read from MH i2c: F0 09 00 2C 33 00 BA 00 19 67 D7 68 A5 64 D9 [13:57:05]GetLastDocTimeStamp 1729691711 [13:57:05]current date 1729691834 [13:57:05]FM_GetShiftState [13:57:05]SAM_PROTO_GetShiftState [13:57:05]wFMCommunicate request_size=4 [13:57:05]MH_SAM_APDU [13:57:05]CAPDU: 80 13 01 00 [13:57:05]Write to MH i2c: E2 08 00 2D 33 80 13 01 00 00 00 00 00 DD [13:57:05]Write i2c OK [13:57:05]MH_I2C_Read... [13:57:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:05]Read from MH i2c: E2 [13:57:05]MH_I2C_Read... [13:57:05]Read from MH i2c: E2 0E 00 [13:57:05]MH_I2C_Read... [13:57:05]Read from MH i2c: E2 0E 00 2D 33 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 4C [13:57:05]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [13:57:05]wFMCommunicate OK [13:57:05]SAM_PROTO_GetShiftState done [13:57:05]FM_GetShiftState done [13:57:05]opened in 1729641385 [13:57:05]opened+sec_in_day 1729727785 [13:57:05]quantity*price = 30038 [13:57:05]sum+1 = 30039 [13:57:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 49 23.10.2024 13:57 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68426 ФПД: 195811167393363 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135714&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68426&fm=195811167393363&tin=02508201610067®Number=0000000000091756&sum=30000 [13:57:06]StoreToDocumentArchive [13:57:06]shift 507 fd 68426 [13:57:06]save to /storage/0507/doc_00068426 [13:57:06]save last doc name /storage/0507/doc_00068426 to /storage/kkm_last_doc_name [13:57:06]save OK [13:57:06]Clear old archive folders... [13:57:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:57:06]tlvbuf is 0206F0F0 [13:57:06]SAM_PROTO_ClearQueue [13:57:06]wFMCommunicate request_size=4 [13:57:06]MH_SAM_APDU [13:57:06]CAPDU: 80 09 00 00 [13:57:06]Write to MH i2c: E2 08 00 3A 33 80 09 00 00 00 00 00 00 DF [13:57:06]Write i2c OK [13:57:06]MH_I2C_Read... [13:57:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:57:06]Read from MH i2c: E2 [13:57:06]MH_I2C_Read... [13:57:06]Read from MH i2c: E2 03 00 [13:57:06]MH_I2C_Read... [13:57:06]Read from MH i2c: E2 03 00 3A 33 00 90 00 E1 [13:57:06]RAPDU: 90 00 [13:57:06]wFMCommunicate OK [13:57:06]SAM_PROTO_ClearQueue done [13:57:06]KKMCreateOFDPacket [13:57:06]OFDProtocolAddRootSTLVToBuf [13:57:06]FM_MakeSignedData [13:57:06]FM_MakeSignedData [13:57:06]SAM_PROTO_SignData [13:57:06]wFMCommunicate request_size=4 [13:57:06]MH_SAM_APDU [13:57:06]CAPDU: 80 0D 01 02 [13:57:06]Write to MH i2c: E2 08 00 3B 33 80 0D 01 02 00 00 00 00 E7 [13:57:06]Write i2c OK [13:57:06]MH_I2C_Read... [13:57:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:57:06]Read from MH i2c: E2 [13:57:06]MH_I2C_Read... [13:57:06]Read from MH i2c: E2 03 00 [13:57:06]MH_I2C_Read... [13:57:06]Read from MH i2c: E2 03 00 3B 33 00 90 00 E2 [13:57:06]RAPDU: 90 00 [13:57:06]wFMCommunicate OK [13:57:06]wFMCommunicate request_size=255 [13:57:06]MH_SAM_APDU [13:57: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 32 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 31 00 00 00 F4 03 04 00 BA 00 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 4A 0B 01 00 35 04 06 00 B2 [13:57:06]Write to MH i2c: E2 02 01 3C 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 31 00 00 00 F4 03 04 00 BA 00 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 4A 0B 01 00 35 04 06 00 B2 00 00 DA [13:57:06]Write i2c OK [13:57:06]MH_I2C_Read... [13:57:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:06]Read from MH i2c: E2 [13:57:06]MH_I2C_Read... [13:57:06]Read from MH i2c: E2 03 00 [13:57:06]MH_I2C_Read... [13:57:06]Read from MH i2c: E2 03 00 3C 33 00 90 00 E3 [13:57:06]RAPDU: 90 00 [13:57:06]wFMCommunicate OK [13:57:06]wFMCommunicate request_size=10 [13:57:06]MH_SAM_APDU [13:57:06]CAPDU: 80 0D 02 02 05 16 D7 13 56 53 [13:57:06]Write to MH i2c: E2 0D 00 3D 33 80 0D 02 02 05 00 16 D7 13 56 53 00 00 9D [13:57:06]Write i2c OK [13:57:06]MH_I2C_Read... [13:57:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:06]Read from MH i2c: E2 [13:57:06]MH_I2C_Read... [13:57:06]Read from MH i2c: E2 03 00 [13:57:06]MH_I2C_Read... [13:57:06]Read from MH i2c: E2 03 00 3D 33 00 90 00 E4 [13:57:06]RAPDU: 90 00 [13:57:06]wFMCommunicate OK [13:57:06]wFMCommunicate request_size=4 [13:57:06]MH_SAM_APDU [13:57:06]CAPDU: 80 0D 03 02 [13:57:06]Write to MH i2c: E2 08 00 3E 33 80 0D 03 02 00 00 00 00 EC [13:57:06]Write i2c OK [13:57:06]MH_I2C_Read... [13:57:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:57:06]Read from MH i2c: E2 [13:57:06]MH_I2C_Read... [13:57:06]Read from MH i2c: E2 0B 00 [13:57:06]MH_I2C_Read... [13:57:06]Read from MH i2c: E2 0B 00 3E 33 00 91 02 C8 B7 F8 93 D2 38 90 00 94 [13:57:06]RAPDU: 91 02 C8 B7 F8 93 D2 38 90 00 [13:57:06]wFMCommunicate OK [13:57:06]SAM_PROTO_SignData done [13:57:06]FM_MakeSignedData done [13:57:06]CreateOFDProtocolMessage [13:57:06]wFMCommunicate request_size=4 [13:57:06]MH_SAM_APDU [13:57:06]CAPDU: 80 11 00 00 [13:57:06]Write to MH i2c: E2 08 00 3F 33 80 11 00 00 00 00 00 00 EC [13:57:06]Write i2c OK [13:57:06]MH_I2C_Read... [13:57:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:06]Read from MH i2c: E2 [13:57:06]MH_I2C_Read... [13:57:06]Read from MH i2c: E2 17 00 [13:57:06]MH_I2C_Read... [13:57:06]Read from MH i2c: E2 17 00 3F 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 40 [13:57:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [13:57:06]wFMCommunicate OK [13:57:06]CreateOFDProtocolMessage done [13:57:06]OFDSenderStorePacket 68426 [13:57:06]StoreOFDPacket docnum=68426 [13:57:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 66 AF 07 01 3F C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 31 00 00 00 F4 03 04 00 BA 00 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 4A 0B 01 00 35 04 06 00 B2 16 D7 13 56 53 91 02 C8 B7 F8 93 D2 38 [13:57:06]CheckFolder [13:57:06]dirname=/storage/ofd_packets [13:57:06]CheckFolder done [13:57:06]ProducePacketName [13:57:06]name=ofd_packets/00068426 [13:57:06]NVStorageSaveData ofd_packets/00068426 [13:57:06]File name is /storage/ofd_packets/00068426 [13:57:06]Write 301 bytes [13:57:06]NVStorageSaveData done [13:57:06]OFDSenderStorePacket done [13:57:06]KKMCreateOFDPacket done [13:57:06]NVStorageSaveData kkm_last_timestamp [13:57:06]File name is /storage/kkm_last_timestamp [13:57:06]Write 4 bytes [13:57:06]NVStorageSaveData done [13:57:06]ExternCall_PrintAddStr [13:57:06]wPrintStart [13:57:06]Write to MH i2c: 01 00 00 40 33 73 [13:57:06]Write i2c OK [13:57:06]MH_I2C_Read... [13:57:06]Read from MH i2c: 01 [13:57:06]MH_I2C_Read... [13:57:06]Read from MH i2c: 01 07 00 [13:57:06]MH_I2C_Read... [13:57:06]Read from MH i2c: 01 07 00 40 33 00 04 00 00 00 FF 0F 8C [13:57:06]RasterBufferAndPrint [13:57:06]line Счет N : (1)210423 [13:57:06]line ИНН: 02508201610067 [13:57:06]line Контрольно-Кассовый Чек [13:57:06]line ПРОДАЖА [13:57:06]line ТРК (МРК, ГНК) : 11 [13:57:06]line Товар: 2710124130 [13:57:06]line Аи-92-К-2 [13:57:06]line 4.490 * 66.90 [13:57:06]line = 300.38 [13:57:06]line НДС 12% НСП 1% [13:57:06]line > о реализуемом товаре [13:57:06]line ОКРУГЛЕНИЕ: -0.38 [13:57:06]line ИТОГО: 300.00 [13:57:06]line Внесено: 300.00 [13:57:06]line СДАЧА: 0.00 [13:57:06]line НСП 1% : 2.66 [13:57:06]line НДС 12% : 31.90 [13:57:06]line Наличными: 300.00 [13:57:06]line Безнал.: 0.00 [13:57:06]line Место: АЗС № 147 "Партнер Нефть" [13:57:06]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [13:57:06]line СНО: Общий режим [13:57:06]line Чек 49 23.10.2024 13:57 [13:57:06]line Смена: 507 ФФД: 1.0 [13:57:06]line ЗНМ: 0300000094 [13:57:06]line РНМ: 0000000000091756 [13:57:06]line Версия ККМ: 001 [13:57:06]line ФМ: 0000000000871809 [13:57:06]line ФД: 68426 [13:57:06]line ФПД: 195811167393363 [13:57:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135714&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68426&fm=195811167393363&tin=02508201610067®Number=0000000000091756&sum=30000 [13:57:06]written 0, free lines is 4095 [13:57:06]OFD Sender: Processing packet 68426 [packets to send 8, broken 7] [13:57:06]ProducePacketName [13:57:06]name=ofd_packets/00068426 [13:57:07]OFD Sender: To server: pG, [13:57:07]CommunicateWithHost lk.salyk.kg:30040 [13:57:07]ConnectInit lk.salyk.kg [13:57:07]Write to MH i2c: 01 00 00 6A 33 9D [13:57:07]Write i2c OK [13:57:07]MH_I2C_Read... [13:57:07]Read from MH i2c: 01 [13:57:07]MH_I2C_Read... [13:57:07]Read from MH i2c: 01 07 00 [13:57:07]MH_I2C_Read... [13:57:07]Read from MH i2c: 01 07 00 6A 33 00 04 00 00 00 AD 0C 61 [13:57:07]RasterBufferAndPrint [13:57:07]line [13:57:07]line [13:57:07]line [13:57:07]line [13:57:07]line [13:57:07]written 0, free lines is 3249 [13:57:07]MH_Cut [13:57:07]Write to MH i2c: D1 01 00 71 33 01 76 [13:57:07]Write i2c OK [13:57:07]MH_I2C_Read... [13:57:07]Read from MH i2c: D1 [13:57:07]MH_I2C_Read... [13:57:07]Read from MH i2c: D1 01 00 [13:57:07]MH_I2C_Read... [13:57:07]Read from MH i2c: D1 01 00 71 33 00 75 [13:57:07]Write to MH i2c: 01 00 00 72 33 A5 [13:57:07]Write i2c OK [13:57:07]MH_I2C_Read... [13:57:07]Connected sock=11 [13:57:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 66 AF 07 01 3F C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 31 00 00 00 F4 03 04 00 BA 00 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 4A 0B 01 00 35 04 06 00 B2 16 D7 13 56 53 91 02 C8 B7 F8 93 D2 38 [13:57:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 67 E3 47 00 FF 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 4A 0B 01 00 F4 03 04 00 AF A6 18 67 B6 04 01 00 00 42 27 E0 62 F4 9E AB 6C [13:57:07]CommunicateWithHost err = 0 [13:57:07]CheckOFDResponse [13:57:07]1017 (14) - 77093643461234 [13:57:07]1041 (16) - 0000000000871809 [13:57:07]1040 (4) - 68426 [13:57:07]1012 (4) - 23.10.2024 07:33 [13:57:07]1206 (1) - 0 [13:57:07]OFD Sender: Remove packet 68426 [13:57:07]ProducePacketName [13:57:07]name=ofd_packets/00068426 [13:57:07]NVStorageDeleteData [13:57:08]OFD Sender: No OFD packet to send [13:57:08]*** Cut start [13:57:08]*** Partial cut [13:57:08]*** CUTSNS_PIN = 1 [13:57:08]*** CUTSNS_PIN = 0 [13:57:08]*** Brake cut motor [13:57:08]Read from MH i2c: 01 [13:57:08]MH_I2C_Read... [13:57:08]*** Stop cut motor [13:57:08]*** Cut end [13:57:08]Read from MH i2c: 01 07 00 [13:57:08]MH_I2C_Read... [13:57:08]Read from MH i2c: 01 07 00 72 33 00 04 00 00 00 FF 0F BE [13:57:08]process_action close_receipt done [13:57:08]requested_data is exist [13:57:08]produce_requested_data [13:57:08]requested_item fm.sn is exist - process it [13:57:08]wFMCommunicate request_size=4 [13:57:08]MH_SAM_APDU [13:57:08]CAPDU: 80 11 00 00 [13:57:08]Write to MH i2c: E2 08 00 73 33 80 11 00 00 00 00 00 00 20 [13:57:08]Write i2c OK [13:57:08]MH_I2C_Read... [13:57:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:08]Read from MH i2c: E2 [13:57:08]MH_I2C_Read... [13:57:08]Read from MH i2c: E2 17 00 [13:57:08]MH_I2C_Read... [13:57:08]Read from MH i2c: E2 17 00 73 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 74 [13:57:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [13:57:08]wFMCommunicate OK [13:57:08]requested_item fd.num is exist - process it [13:57:08]SAM_PROTO_GetFieldsCounters [13:57:08]wFMCommunicate request_size=4 [13:57:08]MH_SAM_APDU [13:57:08]CAPDU: 80 13 00 00 [13:57:08]Write to MH i2c: E2 08 00 74 33 80 13 00 00 00 00 00 00 23 [13:57:08]Write i2c OK [13:57:08]MH_I2C_Read... [13:57:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:57:08]Read from MH i2c: E2 [13:57:08]MH_I2C_Read... [13:57:08]Read from MH i2c: E2 62 00 [13:57:08]MH_I2C_Read... [13:57:08]Read from MH i2c: E2 62 00 74 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 4A 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [13:57:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 4A 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:57:08]wFMCommunicate OK [13:57:08]SAM_PROTO_GetFieldsCounters done [13:57:08]requested_item shift.num is exist - process it [13:57:08]requested_item shift.opened is exist - process it [13:57:08]req_shift_opened [13:57:08]FM_GetShiftState [13:57:08]SAM_PROTO_GetShiftState [13:57:08]wFMCommunicate request_size=4 [13:57:08]MH_SAM_APDU [13:57:08]CAPDU: 80 13 01 00 [13:57:08]Write to MH i2c: E2 08 00 75 33 80 13 01 00 00 00 00 00 25 [13:57:08]Write i2c OK [13:57:08]MH_I2C_Read... [13:57:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:09]Read from MH i2c: E2 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: E2 0E 00 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: E2 0E 00 75 33 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 94 [13:57:09]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [13:57:09]wFMCommunicate OK [13:57:09]SAM_PROTO_GetShiftState done [13:57:09]FM_GetShiftState done [13:57:09]req_shift_opened done [13:57:09]requested_item shift.open_date is exist - process it [13:57:09]req_shift_open_date [13:57:09]req_shift_open_date done [13:57:09]produce_requested_data done [13:57:09]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68426,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [13:57:09]process_action_free close_receipt [13:57:09]json_value_free [13:57:09]json_value_free done [13:57:09]process_json_proto returns [13:57:09]Send response to host [13:57:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68426,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [13:57:09]free response buf [13:57:09]execute_script done [13:57:09]execute_script returns [13:57:09]free content buf [13:57:09]Sock 9.Close socket [13:57:09]Sock 9.Thread stoped [13:57:13]OFD Sender: No OFD packet to send [13:57:18]OFD Sender: No OFD packet to send [13:57:23]OFD Sender: No OFD packet to send [13:57:28]OFD Sender: No OFD packet to send [13:57:33]OFD Sender: No OFD packet to send [13:57:38]OFD Sender: No OFD packet to send [13:57:43]OFD Sender: No OFD packet to send [13:57:48]OFD Sender: No OFD packet to send [13:57:53]OFD Sender: No OFD packet to send [13:57:58]OFD Sender: No OFD packet to send [13:58:03]OFD Sender: No OFD packet to send [13:58:08]OFD Sender: No OFD packet to send [13:58:13]OFD Sender: No OFD packet to send [13:58:18]OFD Sender: No OFD packet to send [13:58:23]OFD Sender: No OFD packet to send [13:58:28]OFD Sender: No OFD packet to send [13:58:33]OFD Sender: No OFD packet to send [13:58:38]OFD Sender: No OFD packet to send [13:58:43]OFD Sender: No OFD packet to send [13:58:48]OFD Sender: No OFD packet to send [13:58:53]OFD Sender: No OFD packet to send [13:58:58]OFD Sender: No OFD packet to send [13:59:03]OFD Sender: No OFD packet to send [13:59:08]OFD Sender: No OFD packet to send [13:59:13]OFD Sender: No OFD packet to send [13:59:18]OFD Sender: No OFD packet to send [13:59:23]OFD Sender: No OFD packet to send [13:59:28]OFD Sender: No OFD packet to send [13:59:33]OFD Sender: No OFD packet to send [13:59:38]OFD Sender: No OFD packet to send [13:59:43]OFD Sender: No OFD packet to send [13:59:48]OFD Sender: No OFD packet to send [13:59:53]OFD Sender: No OFD packet to send [13:59:58]OFD Sender: No OFD packet to send [14:00:03]OFD Sender: No OFD packet to send [14:00:08]OFD Sender: No OFD packet to send [14:00:13]OFD Sender: No OFD packet to send [14:00:18]OFD Sender: No OFD packet to send [14:00:23]OFD Sender: No OFD packet to send [14:00:28]OFD Sender: No OFD packet to send [14:00:33]OFD Sender: No OFD packet to send [14:00:38]OFD Sender: No OFD packet to send [14:00:43]OFD Sender: No OFD packet to send [14:00:48]OFD Sender: No OFD packet to send [14:00:53]OFD Sender: No OFD packet to send [14:00:58]OFD Sender: No OFD packet to send [14:01:03]OFD Sender: No OFD packet to send [14:01:08]OFD Sender: No OFD packet to send [14:01:13]OFD Sender: No OFD packet to send [14:01:18]OFD Sender: No OFD packet to send [14:01:23]OFD Sender: No OFD packet to send [14:01:28]OFD Sender: No OFD packet to send [14:01:33]OFD Sender: No OFD packet to send [14:01:38]OFD Sender: No OFD packet to send [14:01:43]OFD Sender: No OFD packet to send [14:01:48]OFD Sender: No OFD packet to send [14:01:53]OFD Sender: No OFD packet to send [14:01:58]OFD Sender: No OFD packet to send [14:02:03]OFD Sender: No OFD packet to send [14:02:08]OFD Sender: No OFD packet to send [14:02:13]OFD Sender: No OFD packet to send [14:02:18]OFD Sender: No OFD packet to send [14:02:23]OFD Sender: No OFD packet to send [14:02:28]OFD Sender: No OFD packet to send [14:02:33]OFD Sender: No OFD packet to send [14:02:38]OFD Sender: No OFD packet to send [14:02:43]OFD Sender: No OFD packet to send [14:02:48]OFD Sender: No OFD packet to send [14:02:53]OFD Sender: No OFD packet to send [14:02:58]OFD Sender: No OFD packet to send [14:03:03]OFD Sender: No OFD packet to send [14:03:08]OFD Sender: No OFD packet to send [14:03:13]OFD Sender: No OFD packet to send [14:03:18]OFD Sender: No OFD packet to send [14:03:23]OFD Sender: No OFD packet to send [14:03:28]OFD Sender: No OFD packet to send [14:03:33]OFD Sender: No OFD packet to send [14:03:38]OFD Sender: No OFD packet to send [14:03:43]OFD Sender: No OFD packet to send [14:03:48]OFD Sender: No OFD packet to send [14:03:53]OFD Sender: No OFD packet to send [14:03:58]OFD Sender: No OFD packet to send [14:04:03]OFD Sender: No OFD packet to send [14:04:08]OFD Sender: No OFD packet to send [14:04:13]OFD Sender: No OFD packet to send [14:04:18]OFD Sender: No OFD packet to send [14:04:23]OFD Sender: No OFD packet to send [14:04:28]OFD Sender: No OFD packet to send [14:04:33]OFD Sender: No OFD packet to send [14:04:38]OFD Sender: No OFD packet to send [14:04:43]OFD Sender: No OFD packet to send [14:04:48]OFD Sender: No OFD packet to send [14:04:53]OFD Sender: No OFD packet to send [14:04:58]OFD Sender: No OFD packet to send [14:05:03]OFD Sender: No OFD packet to send [14:05:08]OFD Sender: No OFD packet to send [14:05:13]OFD Sender: No OFD packet to send [14:05:18]OFD Sender: No OFD packet to send [14:05:23]OFD Sender: No OFD packet to send [14:05:28]OFD Sender: No OFD packet to send [14:05:33]OFD Sender: No OFD packet to send [14:05:38]OFD Sender: No OFD packet to send [14:05:43]OFD Sender: No OFD packet to send [14:05:48]OFD Sender: No OFD packet to send [14:05:53]OFD Sender: No OFD packet to send [14:05:58]OFD Sender: No OFD packet to send [14:06:03]OFD Sender: No OFD packet to send [14:06:08]OFD Sender: No OFD packet to send [14:06:13]OFD Sender: No OFD packet to send [14:06:18]OFD Sender: No OFD packet to send [14:06:23]OFD Sender: No OFD packet to send [14:06:28]OFD Sender: No OFD packet to send [14:06:33]OFD Sender: No OFD packet to send [14:06:38]OFD Sender: No OFD packet to send [14:06:43]OFD Sender: No OFD packet to send [14:06:48]OFD Sender: No OFD packet to send [14:06:53]OFD Sender: No OFD packet to send [14:06:58]OFD Sender: No OFD packet to send [14:07:03]OFD Sender: No OFD packet to send [14:07:08]OFD Sender: No OFD packet to send [14:07:13]OFD Sender: No OFD packet to send [14:07:18]OFD Sender: No OFD packet to send [14:07:23]OFD Sender: No OFD packet to send [14:07:28]OFD Sender: No OFD packet to send [14:07:33]OFD Sender: No OFD packet to send [14:07:38]OFD Sender: No OFD packet to send [14:07:43]OFD Sender: No OFD packet to send [14:07:48]OFD Sender: No OFD packet to send [14:07:53]OFD Sender: No OFD packet to send [14:07:58]OFD Sender: No OFD packet to send [14:08:03]OFD Sender: No OFD packet to send [14:08:08]OFD Sender: No OFD packet to send [14:08:13]OFD Sender: No OFD packet to send [14:08:18]OFD Sender: No OFD packet to send [14:08:23]OFD Sender: No OFD packet to send [14:08:28]OFD Sender: No OFD packet to send [14:08:33]OFD Sender: No OFD packet to send [14:08:38]OFD Sender: No OFD packet to send [14:08:43]OFD Sender: No OFD packet to send [14:08:48]OFD Sender: No OFD packet to send [14:08:53]OFD Sender: No OFD packet to send [14:08:58]OFD Sender: No OFD packet to send [14:09:03]OFD Sender: No OFD packet to send [14:09:08]OFD Sender: No OFD packet to send [14:09:13]OFD Sender: No OFD packet to send [14:09:18]OFD Sender: No OFD packet to send [14:09:23]OFD Sender: No OFD packet to send [14:09:28]OFD Sender: No OFD packet to send [14:09:33]OFD Sender: No OFD packet to send [14:09:38]OFD Sender: No OFD packet to send [14:09:43]OFD Sender: No OFD packet to send [14:09:48]OFD Sender: No OFD packet to send [14:09:53]OFD Sender: No OFD packet to send [14:09:58]OFD Sender: No OFD packet to send [14:10:03]OFD Sender: No OFD packet to send [14:10:08]OFD Sender: No OFD packet to send [14:10:13]OFD Sender: No OFD packet to send [14:10:18]OFD Sender: No OFD packet to send [14:10:23]OFD Sender: No OFD packet to send [14:10:28]OFD Sender: No OFD packet to send [14:10:33]OFD Sender: No OFD packet to send [14:10:38]OFD Sender: No OFD packet to send [14:10:43]OFD Sender: No OFD packet to send [14:10:48]OFD Sender: No OFD packet to send [14:10:53]OFD Sender: No OFD packet to send [14:10:58]OFD Sender: No OFD packet to send [14:11:03]OFD Sender: No OFD packet to send [14:11:05]accept exits with 7 [14:11:05]New connection [14:11:05]New thread 3067276644 created [14:11:05]Thread 3067133284 joined [14:11:05]Waiting for new connection... [14:11:05] Sock 7.Parse request [14:11:05]Sock 7.Check first char [14:11:05]Sock 7.First char is OK [14:11:05]request: POST /json_proto HTTP/1.0 [14:11:05]Method: POST [14:11:05]URL: /json_proto [14:11:05]Method is POST - this is cgi request [14:11:05]url: /json_proto [14:11:05]query_string will be loaded in cgi processing [14:11:05]execute_cgi json_proto POST (null) [14:11:05]execute_cgi path=json_proto method=POST [14:11:05]POST find Content-Length [14:11:05]Host: 172.17.52.3:8080 [14:11:05]Content-Length: 677 [14:11:05]Content-Type: application/json [14:11:05] [14:11:05]POST finish read [14:11:05]Found Content-Length = 677 [14:11:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:05]execute_script... [14:11: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)210424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:05]POST & json_proto [14:11:05]process_json_proto [14:11:05]json parsed OK: [14:11:05]protocol is kg_v1.0 [14:11:05]action value=close_receipt [14:11:05]process_action close_receipt [14:11:05]cmd_close_receipt [14:11:05]MH_GetDate [14:11:05]Write to MH i2c: F0 00 00 76 33 98 [14:11:05]Write i2c OK [14:11:05]MH_I2C_Read... [14:11:05]Read from MH i2c: F0 [14:11:05]MH_I2C_Read... [14:11:05]Read from MH i2c: F0 09 00 [14:11:05]MH_I2C_Read... [14:11:05]Read from MH i2c: F0 09 00 76 33 00 02 04 19 67 D7 68 A5 64 6F [14:11:05]GetLastDocTimeStamp 1729691834 [14:11:05]current date 1729692674 [14:11:05]FM_GetShiftState [14:11:05]SAM_PROTO_GetShiftState [14:11:05]wFMCommunicate request_size=4 [14:11:05]MH_SAM_APDU [14:11:05]CAPDU: 80 13 01 00 [14:11:05]Write to MH i2c: E2 08 00 77 33 80 13 01 00 00 00 00 00 27 [14:11:05]Write i2c OK [14:11:05]MH_I2C_Read... [14:11:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:05]Read from MH i2c: E2 [14:11:05]MH_I2C_Read... [14:11:05]Read from MH i2c: E2 0E 00 [14:11:05]MH_I2C_Read... [14:11:05]Read from MH i2c: E2 0E 00 77 33 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 96 [14:11:05]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [14:11:05]wFMCommunicate OK [14:11:05]SAM_PROTO_GetShiftState done [14:11:05]FM_GetShiftState done [14:11:05]opened in 1729641385 [14:11:05]opened+sec_in_day 1729727785 [14:11:05]quantity*price = 35055 [14:11:05]sum+1 = 35057 [14:11:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 50 23.10.2024 14:11 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68427 ФПД: 50873888583900 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T141114&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68427&fm=50873888583900&tin=02508201610067®Number=0000000000091756&sum=35000 [14:11:06]StoreToDocumentArchive [14:11:06]shift 507 fd 68427 [14:11:06]save to /storage/0507/doc_00068427 [14:11:06]save last doc name /storage/0507/doc_00068427 to /storage/kkm_last_doc_name [14:11:06]save OK [14:11:06]Clear old archive folders... [14:11:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:11:06]tlvbuf is 01FDDE90 [14:11:06]SAM_PROTO_ClearQueue [14:11:06]wFMCommunicate request_size=4 [14:11:06]MH_SAM_APDU [14:11:06]CAPDU: 80 09 00 00 [14:11:06]Write to MH i2c: E2 08 00 84 33 80 09 00 00 00 00 00 00 29 [14:11:06]Write i2c OK [14:11:06]MH_I2C_Read... [14:11:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:11:06]Read from MH i2c: E2 [14:11:06]MH_I2C_Read... [14:11:06]Read from MH i2c: E2 03 00 [14:11:06]MH_I2C_Read... [14:11:06]Read from MH i2c: E2 03 00 84 33 00 90 00 2B [14:11:06]RAPDU: 90 00 [14:11:06]wFMCommunicate OK [14:11:06]SAM_PROTO_ClearQueue done [14:11:06]KKMCreateOFDPacket [14:11:06]OFDProtocolAddRootSTLVToBuf [14:11:06]FM_MakeSignedData [14:11:06]FM_MakeSignedData [14:11:06]SAM_PROTO_SignData [14:11:06]wFMCommunicate request_size=4 [14:11:06]MH_SAM_APDU [14:11:06]CAPDU: 80 0D 01 02 [14:11:06]Write to MH i2c: E2 08 00 85 33 80 0D 01 02 00 00 00 00 31 [14:11:06]Write i2c OK [14:11:06]MH_I2C_Read... [14:11:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:11:06]Read from MH i2c: E2 [14:11:06]MH_I2C_Read... [14:11:06]Read from MH i2c: E2 03 00 [14:11:06]MH_I2C_Read... [14:11:06]Read from MH i2c: E2 03 00 85 33 00 90 00 2C [14:11:06]RAPDU: 90 00 [14:11:06]wFMCommunicate OK [14:11:06]wFMCommunicate request_size=255 [14:11:06]MH_SAM_APDU [14:11: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 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 02 04 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 4B 0B 01 00 35 04 06 00 2E [14:11:06]Write to MH i2c: E2 02 01 86 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 02 04 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 4B 0B 01 00 35 04 06 00 2E 00 00 05 [14:11:06]Write i2c OK [14:11:06]MH_I2C_Read... [14:11:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:07]Read from MH i2c: E2 [14:11:07]MH_I2C_Read... [14:11:07]Read from MH i2c: E2 03 00 [14:11:07]MH_I2C_Read... [14:11:07]Read from MH i2c: E2 03 00 86 33 00 90 00 2D [14:11:07]RAPDU: 90 00 [14:11:07]wFMCommunicate OK [14:11:07]wFMCommunicate request_size=10 [14:11:07]MH_SAM_APDU [14:11:07]CAPDU: 80 0D 02 02 05 45 00 0E B0 DC [14:11:07]Write to MH i2c: E2 0D 00 87 33 80 0D 02 02 05 00 45 00 0E B0 DC 00 00 1D [14:11:07]Write i2c OK [14:11:07]MH_I2C_Read... [14:11:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:07]Read from MH i2c: E2 [14:11:07]MH_I2C_Read... [14:11:07]Read from MH i2c: E2 03 00 [14:11:07]MH_I2C_Read... [14:11:07]Read from MH i2c: E2 03 00 87 33 00 90 00 2E [14:11:07]RAPDU: 90 00 [14:11:07]wFMCommunicate OK [14:11:07]wFMCommunicate request_size=4 [14:11:07]MH_SAM_APDU [14:11:07]CAPDU: 80 0D 03 02 [14:11:07]Write to MH i2c: E2 08 00 88 33 80 0D 03 02 00 00 00 00 36 [14:11:07]Write i2c OK [14:11:07]MH_I2C_Read... [14:11:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:11:07]Read from MH i2c: E2 [14:11:07]MH_I2C_Read... [14:11:07]Read from MH i2c: E2 0B 00 [14:11:07]MH_I2C_Read... [14:11:07]Read from MH i2c: E2 0B 00 88 33 00 CD B3 95 A9 95 3C 3E D9 90 00 DD [14:11:07]RAPDU: CD B3 95 A9 95 3C 3E D9 90 00 [14:11:07]wFMCommunicate OK [14:11:07]SAM_PROTO_SignData done [14:11:07]FM_MakeSignedData done [14:11:07]CreateOFDProtocolMessage [14:11:07]wFMCommunicate request_size=4 [14:11:07]MH_SAM_APDU [14:11:07]CAPDU: 80 11 00 00 [14:11:07]Write to MH i2c: E2 08 00 89 33 80 11 00 00 00 00 00 00 36 [14:11:07]Write i2c OK [14:11:07]MH_I2C_Read... [14:11:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:07]Read from MH i2c: E2 [14:11:07]MH_I2C_Read... [14:11:07]Read from MH i2c: E2 17 00 [14:11:07]MH_I2C_Read... [14:11:07]Read from MH i2c: E2 17 00 89 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 8A [14:11:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [14:11:07]wFMCommunicate OK [14:11:07]CreateOFDProtocolMessage done [14:11:07]OFDSenderStorePacket 68427 [14:11:07]StoreOFDPacket docnum=68427 [14:11:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 69 C9 07 01 CE 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 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 02 04 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 4B 0B 01 00 35 04 06 00 2E 45 00 0E B0 DC CD B3 95 A9 95 3C 3E D9 [14:11:07]CheckFolder [14:11:07]dirname=/storage/ofd_packets [14:11:07]CheckFolder done [14:11:07]ProducePacketName [14:11:07]name=ofd_packets/00068427 [14:11:07]NVStorageSaveData ofd_packets/00068427 [14:11:07]File name is /storage/ofd_packets/00068427 [14:11:07]Write 301 bytes [14:11:07]NVStorageSaveData done [14:11:07]OFDSenderStorePacket done [14:11:07]KKMCreateOFDPacket done [14:11:07]NVStorageSaveData kkm_last_timestamp [14:11:07]File name is /storage/kkm_last_timestamp [14:11:07]Write 4 bytes [14:11:07]NVStorageSaveData done [14:11:07]ExternCall_PrintAddStr [14:11:07]wPrintStart [14:11:07]Write to MH i2c: 01 00 00 8A 33 BD [14:11:07]Write i2c OK [14:11:07]MH_I2C_Read... [14:11:07]Read from MH i2c: 01 [14:11:07]MH_I2C_Read... [14:11:07]Read from MH i2c: 01 07 00 [14:11:07]MH_I2C_Read... [14:11:07]Read from MH i2c: 01 07 00 8A 33 00 04 00 00 00 FF 0F D6 [14:11:07]RasterBufferAndPrint [14:11:07]line Счет N : (1)210424 [14:11:07]line ИНН: 02508201610067 [14:11:07]line Контрольно-Кассовый Чек [14:11:07]line ПРОДАЖА [14:11:07]line ТРК (МРК, ГНК) : 11 [14:11:07]line Товар: 2710124130 [14:11:07]line Аи-92-К-2 [14:11:07]line 5.240 * 66.90 [14:11:07]line = 350.56 [14:11:07]line НДС 12% НСП 1% [14:11:07]line > о реализуемом товаре [14:11:07]line ОКРУГЛЕНИЕ: -0.56 [14:11:07]line ИТОГО: 350.00 [14:11:07]line Внесено: 350.00 [14:11:07]line СДАЧА: 0.00 [14:11:07]line НСП 1% : 3.10 [14:11:07]line НДС 12% : 37.23 [14:11:07]line Наличными: 350.00 [14:11:07]line Безнал.: 0.00 [14:11:07]line Место: АЗС № 147 "Партнер Нефть" [14:11:07]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [14:11:07]line СНО: Общий режим [14:11:07]line Чек 50 23.10.2024 14:11 [14:11:07]line Смена: 507 ФФД: 1.0 [14:11:07]line ЗНМ: 0300000094 [14:11:07]line РНМ: 0000000000091756 [14:11:07]line Версия ККМ: 001 [14:11:07]line ФМ: 0000000000871809 [14:11:07]line ФД: 68427 [14:11:07]line ФПД: 50873888583900 [14:11:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T141114&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68427&fm=50873888583900&tin=02508201610067®Number=0000000000091756&sum=35000 [14:11:07]written 0, free lines is 4095 [14:11:07]OFD Sender: Processing packet 68427 [packets to send 8, broken 7] [14:11:07]ProducePacketName [14:11:07]name=ofd_packets/00068427 [14:11:07]OFD Sender: To server: pG, [14:11:07]CommunicateWithHost lk.salyk.kg:30040 [14:11:07]ConnectInit lk.salyk.kg [14:11:07]Write to MH i2c: 01 00 00 B4 33 E7 [14:11:07]Write i2c OK [14:11:07]MH_I2C_Read... [14:11:07]Read from MH i2c: 01 [14:11:07]MH_I2C_Read... [14:11:07]Read from MH i2c: 01 07 00 [14:11:07]MH_I2C_Read... [14:11:07]Read from MH i2c: 01 07 00 B4 33 00 04 00 00 00 AA 0C A8 [14:11:07]RasterBufferAndPrint [14:11:07]line [14:11:07]line [14:11:07]line [14:11:07]line [14:11:07]line [14:11:07]Connected sock=10 [14:11:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 69 C9 07 01 CE 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 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 02 04 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 4B 0B 01 00 35 04 06 00 2E 45 00 0E B0 DC CD B3 95 A9 95 3C 3E D9 [14:11:07]written 0, free lines is 3262 [14:11:07]MH_Cut [14:11:07]Write to MH i2c: D1 01 00 BB 33 01 C0 [14:11:07]Write i2c OK [14:11:07]MH_I2C_Read... [14:11:07]Read from MH i2c: D1 [14:11:07]MH_I2C_Read... [14:11:07]Read from MH i2c: D1 01 00 [14:11:07]MH_I2C_Read... [14:11:07]Read from MH i2c: D1 01 00 BB 33 00 BF [14:11:07]Write to MH i2c: 01 00 00 BC 33 EF [14:11:07]Write i2c OK [14:11:07]MH_I2C_Read... [14:11:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 21 93 47 00 7C 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 4B 0B 01 00 F4 03 04 00 F7 A9 18 67 B6 04 01 00 00 C4 8B 0B 0F 8C 0B AF D6 [14:11:07]CommunicateWithHost err = 0 [14:11:07]CheckOFDResponse [14:11:07]1017 (14) - 77093643461234 [14:11:07]1041 (16) - 0000000000871809 [14:11:07]1040 (4) - 68427 [14:11:07]1012 (4) - 23.10.2024 07:47 [14:11:07]1206 (1) - 0 [14:11:07]OFD Sender: Remove packet 68427 [14:11:07]ProducePacketName [14:11:07]name=ofd_packets/00068427 [14:11:07]NVStorageDeleteData [14:11:08]OFD Sender: No OFD packet to send [14:11:08]*** Cut start [14:11:08]*** Partial cut [14:11:08]*** CUTSNS_PIN = 1 [14:11:08]*** CUTSNS_PIN = 0 [14:11:08]*** Brake cut motor [14:11:09]Read from MH i2c: 01 [14:11:09]MH_I2C_Read... [14:11:09]*** Stop cut motor [14:11:09]*** Cut end [14:11:09]Read from MH i2c: 01 07 00 [14:11:09]MH_I2C_Read... [14:11:09]Read from MH i2c: 01 07 00 BC 33 00 04 00 00 00 FF 0F 08 [14:11:09]process_action close_receipt done [14:11:09]requested_data is exist [14:11:09]produce_requested_data [14:11:09]requested_item fm.sn is exist - process it [14:11:09]wFMCommunicate request_size=4 [14:11:09]MH_SAM_APDU [14:11:09]CAPDU: 80 11 00 00 [14:11:09]Write to MH i2c: E2 08 00 BD 33 80 11 00 00 00 00 00 00 6A [14:11:09]Write i2c OK [14:11:09]MH_I2C_Read... [14:11:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:09]Read from MH i2c: E2 [14:11:09]MH_I2C_Read... [14:11:09]Read from MH i2c: E2 17 00 [14:11:09]MH_I2C_Read... [14:11:09]Read from MH i2c: E2 17 00 BD 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 BE [14:11:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [14:11:09]wFMCommunicate OK [14:11:09]requested_item fd.num is exist - process it [14:11:09]SAM_PROTO_GetFieldsCounters [14:11:09]wFMCommunicate request_size=4 [14:11:09]MH_SAM_APDU [14:11:09]CAPDU: 80 13 00 00 [14:11:09]Write to MH i2c: E2 08 00 BE 33 80 13 00 00 00 00 00 00 6D [14:11:09]Write i2c OK [14:11:09]MH_I2C_Read... [14:11:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:11:09]Read from MH i2c: E2 [14:11:09]MH_I2C_Read... [14:11:09]Read from MH i2c: E2 62 00 [14:11:09]MH_I2C_Read... [14:11:09]Read from MH i2c: E2 62 00 BE 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 4B 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [14:11:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 4B 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:11:09]wFMCommunicate OK [14:11:09]SAM_PROTO_GetFieldsCounters done [14:11:09]requested_item shift.num is exist - process it [14:11:09]requested_item shift.opened is exist - process it [14:11:09]req_shift_opened [14:11:09]FM_GetShiftState [14:11:09]SAM_PROTO_GetShiftState [14:11:09]wFMCommunicate request_size=4 [14:11:09]MH_SAM_APDU [14:11:09]CAPDU: 80 13 01 00 [14:11:09]Write to MH i2c: E2 08 00 BF 33 80 13 01 00 00 00 00 00 6F [14:11:09]Write i2c OK [14:11:09]MH_I2C_Read... [14:11:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:09]Read from MH i2c: E2 [14:11:09]MH_I2C_Read... [14:11:09]Read from MH i2c: E2 0E 00 [14:11:09]MH_I2C_Read... [14:11:09]Read from MH i2c: E2 0E 00 BF 33 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 DE [14:11:09]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [14:11:09]wFMCommunicate OK [14:11:09]SAM_PROTO_GetShiftState done [14:11:09]FM_GetShiftState done [14:11:09]req_shift_opened done [14:11:09]requested_item shift.open_date is exist - process it [14:11:09]req_shift_open_date [14:11:09]req_shift_open_date done [14:11:09]produce_requested_data done [14:11:09]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68427,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [14:11:09]process_action_free close_receipt [14:11:09]json_value_free [14:11:09]json_value_free done [14:11:09]process_json_proto returns [14:11:09]Send response to host [14:11:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68427,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [14:11:09]free response buf [14:11:09]execute_script done [14:11:09]execute_script returns [14:11:09]free content buf [14:11:09]Sock 7.Close socket [14:11:09]Sock 7.Thread stoped [14:11:13]OFD Sender: No OFD packet to send [14:11:18]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: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: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]OFD Sender: No OFD packet to send [14:13:03]OFD Sender: No OFD packet to send [14:13:08]OFD Sender: No OFD packet to send [14:13:13]OFD Sender: No OFD packet to send [14:13:18]OFD Sender: No OFD packet to send [14:13:23]OFD Sender: No OFD packet to send [14:13:28]OFD Sender: No OFD packet to send [14:13:33]OFD Sender: No OFD packet to send [14:13:38]OFD Sender: No OFD packet to send [14:13:43]OFD Sender: No OFD packet to send [14:13:48]OFD Sender: No OFD packet to send [14:13:53]OFD Sender: No OFD packet to send [14:13:58]OFD Sender: No OFD packet to send [14:14:03]OFD Sender: No OFD packet to send [14:14:08]OFD Sender: No OFD packet to send [14:14:13]OFD Sender: No OFD packet to send [14:14:18]OFD Sender: No OFD packet to send [14:14:23]OFD Sender: No OFD packet to send [14:14:28]OFD Sender: No OFD packet to send [14:14:33]OFD Sender: No OFD packet to send [14:14:38]OFD Sender: No OFD packet to send [14:14:43]OFD Sender: No OFD packet to send [14:14:48]OFD Sender: No OFD packet to send [14:14:53]OFD Sender: No OFD packet to send [14:14:58]OFD Sender: No OFD packet to send [14:15:03]OFD Sender: No OFD packet to send [14:15:08]OFD Sender: No OFD packet to send [14:15:13]OFD Sender: No OFD packet to send [14:15:18]OFD Sender: No OFD packet to send [14:15:23]OFD Sender: No OFD packet to send [14:15:28]OFD Sender: No OFD packet to send [14:15:33]OFD Sender: No OFD packet to send [14:15:38]OFD Sender: No OFD packet to send [14:15:43]OFD Sender: No OFD packet to send [14:15:48]OFD Sender: No OFD packet to send [14:15:53]OFD Sender: No OFD packet to send [14:15:58]OFD Sender: No OFD packet to send [14:16:03]OFD Sender: No OFD packet to send [14:16:08]OFD Sender: No OFD packet to send [14:16:13]OFD Sender: No OFD packet to send [14:16:18]OFD Sender: No OFD packet to send [14:16:23]OFD Sender: No OFD packet to send [14:16:28]OFD Sender: No OFD packet to send [14:16:33]OFD Sender: No OFD packet to send [14:16:38]OFD Sender: No OFD packet to send [14:16:43]OFD Sender: No OFD packet to send [14:16:48]OFD Sender: No OFD packet to send [14:16:53]OFD Sender: No OFD packet to send [14:16:58]OFD Sender: No OFD packet to send [14:17:03]OFD Sender: No OFD packet to send [14:17:08]OFD Sender: No OFD packet to send [14:17:13]OFD Sender: No OFD packet to send [14:17:18]OFD Sender: No OFD packet to send [14:17:23]OFD Sender: No OFD packet to send [14:17:28]OFD Sender: No OFD packet to send [14:17:33]OFD Sender: No OFD packet to send [14:17:38]OFD Sender: No OFD packet to send [14:17:43]OFD Sender: No OFD packet to send [14:17:48]OFD Sender: No OFD packet to send [14:17:53]OFD Sender: No OFD packet to send [14:17:58]OFD Sender: No OFD packet to send [14:18:03]OFD Sender: No OFD packet to send [14:18:08]OFD Sender: No OFD packet to send [14:18:13]OFD Sender: No OFD packet to send [14:18:18]OFD Sender: No OFD packet to send [14:18:23]OFD Sender: No OFD packet to send [14:18:28]OFD Sender: No OFD packet to send [14:18:33]OFD Sender: No OFD packet to send [14:18:38]OFD Sender: No OFD packet to send [14:18:43]OFD Sender: No OFD packet to send [14:18:48]OFD Sender: No OFD packet to send [14:18:53]OFD Sender: No OFD packet to send [14:18:58]OFD Sender: No OFD packet to send [14:19:03]OFD Sender: No OFD packet to send [14:19:08]OFD Sender: No OFD packet to send [14:19:13]OFD Sender: No OFD packet to send [14:19:18]OFD Sender: No OFD packet to send [14:19:23]OFD Sender: No OFD packet to send [14:19:28]OFD Sender: No OFD packet to send [14:19:33]OFD Sender: No OFD packet to send [14:19:38]OFD Sender: No OFD packet to send [14:19:43]OFD Sender: No OFD packet to send [14:19:48]OFD Sender: No OFD packet to send [14:19:53]OFD Sender: No OFD packet to send [14:19:58]OFD Sender: No OFD packet to send [14:20:03]OFD Sender: No OFD packet to send [14:20:08]OFD Sender: No OFD packet to send [14:20:13]OFD Sender: No OFD packet to send [14:20:18]OFD Sender: No OFD packet to send [14:20:23]OFD Sender: No OFD packet to send [14:20:28]OFD Sender: No OFD packet to send [14:20:33]OFD Sender: No OFD packet to send [14:20:38]OFD Sender: No OFD packet to send [14:20:43]OFD Sender: No OFD packet to send [14:20:48]OFD Sender: No OFD packet to send [14:20:53]OFD Sender: No OFD packet to send [14:20:58]OFD Sender: No OFD packet to send [14:21:03]OFD Sender: No OFD packet to send [14:21:08]OFD Sender: No OFD packet to send [14:21:13]OFD Sender: No OFD packet to send [14:21:18]accept exits with 9 [14:21:18]New connection [14:21:18]New thread 3067133284 created [14:21:18]Thread 3067276644 joined [14:21:18]Waiting for new connection... [14:21:18] Sock 9.Parse request [14:21:18]Sock 9.Check first char [14:21:18]Sock 9.First char is OK [14:21:18]request: POST /json_proto HTTP/1.0 [14:21:18]Method: POST [14:21:18]URL: /json_proto [14:21:18]Method is POST - this is cgi request [14:21:18]url: /json_proto [14:21:18]query_string will be loaded in cgi processing [14:21:18]execute_cgi json_proto POST (null) [14:21:18]execute_cgi path=json_proto method=POST [14:21:18]POST find Content-Length [14:21:18]Host: 172.17.52.3:8080 [14:21:18]Content-Length: 766 [14:21:18]Content-Type: application/json [14:21:18] [14:21:18]POST finish read [14:21:18]Found Content-Length = 766 [14:21:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:18]execute_script... [14:21: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)210425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:18]POST & json_proto [14:21:18]process_json_proto [14:21:18]json parsed OK: [14:21:18]protocol is kg_v1.0 [14:21:18]action value=close_receipt [14:21:18]process_action close_receipt [14:21:18]cmd_close_receipt [14:21:18]MH_GetDate [14:21:18]Write to MH i2c: F0 00 00 C0 33 E2 [14:21:18]Write i2c OK [14:21:18]MH_I2C_Read... [14:21:18]Read from MH i2c: F0 [14:21:18]MH_I2C_Read... [14:21:18]Read from MH i2c: F0 09 00 [14:21:18]MH_I2C_Read... [14:21:18]Read from MH i2c: F0 09 00 C0 33 00 67 06 19 67 D7 68 A5 64 20 [14:21:18]GetLastDocTimeStamp 1729692674 [14:21:18]current date 1729693287 [14:21:18]FM_GetShiftState [14:21:18]SAM_PROTO_GetShiftState [14:21:18]wFMCommunicate request_size=4 [14:21:18]MH_SAM_APDU [14:21:18]CAPDU: 80 13 01 00 [14:21:18]Write to MH i2c: E2 08 00 C1 33 80 13 01 00 00 00 00 00 71 [14:21:18]Write i2c OK [14:21:18]MH_I2C_Read... [14:21:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:18]Read from MH i2c: E2 [14:21:18]MH_I2C_Read... [14:21:18]Read from MH i2c: E2 0E 00 [14:21:18]MH_I2C_Read... [14:21:18]Read from MH i2c: E2 0E 00 C1 33 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 E0 [14:21:18]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [14:21:18]wFMCommunicate OK [14:21:18]SAM_PROTO_GetShiftState done [14:21:18]FM_GetShiftState done [14:21:18]opened in 1729641385 [14:21:18]opened+sec_in_day 1729727785 [14:21:18]quantity*price = 30038 [14:21:18]sum+1 = 30039 [14:21:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 51 23.10.2024 14:21 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871809 ФД: 68428 ФПД: 69331577650970 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T142127&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68428&fm=69331577650970&tin=02508201610067®Number=0000000000091756&sum=30038 [14:21:19]StoreToDocumentArchive [14:21:19]shift 507 fd 68428 [14:21:19]save to /storage/0507/doc_00068428 [14:21:19]save last doc name /storage/0507/doc_00068428 to /storage/kkm_last_doc_name [14:21:19]save OK [14:21:19]Clear old archive folders... [14:21:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:21:19]tlvbuf is 0209E580 [14:21:19]SAM_PROTO_ClearQueue [14:21:19]wFMCommunicate request_size=4 [14:21:19]MH_SAM_APDU [14:21:19]CAPDU: 80 09 00 00 [14:21:19]Write to MH i2c: E2 08 00 CE 33 80 09 00 00 00 00 00 00 73 [14:21:19]Write i2c OK [14:21:19]MH_I2C_Read... [14:21:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:19]Read from MH i2c: E2 [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: E2 03 00 [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: E2 03 00 CE 33 00 90 00 75 [14:21:19]RAPDU: 90 00 [14:21:19]wFMCommunicate OK [14:21:19]SAM_PROTO_ClearQueue done [14:21:19]KKMCreateOFDPacket [14:21:19]OFDProtocolAddRootSTLVToBuf [14:21:19]FM_MakeSignedData [14:21:19]FM_MakeSignedData [14:21:19]SAM_PROTO_SignData [14:21:19]wFMCommunicate request_size=4 [14:21:19]MH_SAM_APDU [14:21:19]CAPDU: 80 0D 01 02 [14:21:19]Write to MH i2c: E2 08 00 CF 33 80 0D 01 02 00 00 00 00 7B [14:21:19]Write i2c OK [14:21:19]MH_I2C_Read... [14:21:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:19]Read from MH i2c: E2 [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: E2 03 00 [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: E2 03 00 CF 33 00 90 00 76 [14:21:19]RAPDU: 90 00 [14:21:19]wFMCommunicate OK [14:21:19]wFMCommunicate request_size=255 [14:21:19]MH_SAM_APDU [14:21: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 32 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 33 00 00 00 F4 03 04 00 67 06 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 4C 0B 01 00 35 04 06 00 3F [14:21:19]Write to MH i2c: E2 02 01 D0 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 33 00 00 00 F4 03 04 00 67 06 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 4C 0B 01 00 35 04 06 00 3F 00 00 FE [14:21:19]Write i2c OK [14:21:19]MH_I2C_Read... [14:21:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:19]Read from MH i2c: E2 [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: E2 03 00 [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: E2 03 00 D0 33 00 90 00 77 [14:21:19]RAPDU: 90 00 [14:21:19]wFMCommunicate OK [14:21:19]wFMCommunicate request_size=10 [14:21:19]MH_SAM_APDU [14:21:19]CAPDU: 80 0D 02 02 05 0E 84 0E BF 1A [14:21:19]Write to MH i2c: E2 0D 00 D1 33 80 0D 02 02 05 00 0E 84 0E BF 1A 00 00 01 [14:21:19]Write i2c OK [14:21:19]MH_I2C_Read... [14:21:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:19]Read from MH i2c: E2 [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: E2 03 00 [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: E2 03 00 D1 33 00 90 00 78 [14:21:19]RAPDU: 90 00 [14:21:19]wFMCommunicate OK [14:21:19]wFMCommunicate request_size=4 [14:21:19]MH_SAM_APDU [14:21:19]CAPDU: 80 0D 03 02 [14:21:19]Write to MH i2c: E2 08 00 D2 33 80 0D 03 02 00 00 00 00 80 [14:21:19]Write i2c OK [14:21:19]MH_I2C_Read... [14:21:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:19]Read from MH i2c: E2 [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: E2 0B 00 [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: E2 0B 00 D2 33 00 A8 87 80 12 36 F7 93 2E 90 00 30 [14:21:19]RAPDU: A8 87 80 12 36 F7 93 2E 90 00 [14:21:19]wFMCommunicate OK [14:21:19]SAM_PROTO_SignData done [14:21:19]FM_MakeSignedData done [14:21:19]CreateOFDProtocolMessage [14:21:19]wFMCommunicate request_size=4 [14:21:19]MH_SAM_APDU [14:21:19]CAPDU: 80 11 00 00 [14:21:19]Write to MH i2c: E2 08 00 D3 33 80 11 00 00 00 00 00 00 80 [14:21:19]Write i2c OK [14:21:19]MH_I2C_Read... [14:21:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:19]Read from MH i2c: E2 [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: E2 17 00 [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: E2 17 00 D3 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 D4 [14:21:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [14:21:19]wFMCommunicate OK [14:21:19]CreateOFDProtocolMessage done [14:21:19]OFDSenderStorePacket 68428 [14:21:19]StoreOFDPacket docnum=68428 [14:21:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 31 83 07 01 6D 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 33 00 00 00 F4 03 04 00 67 06 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 4C 0B 01 00 35 04 06 00 3F 0E 84 0E BF 1A A8 87 80 12 36 F7 93 2E [14:21:19]CheckFolder [14:21:19]dirname=/storage/ofd_packets [14:21:19]CheckFolder done [14:21:19]ProducePacketName [14:21:19]name=ofd_packets/00068428 [14:21:19]NVStorageSaveData ofd_packets/00068428 [14:21:19]File name is /storage/ofd_packets/00068428 [14:21:19]Write 301 bytes [14:21:19]NVStorageSaveData done [14:21:19]OFDSenderStorePacket done [14:21:19]KKMCreateOFDPacket done [14:21:19]NVStorageSaveData kkm_last_timestamp [14:21:19]File name is /storage/kkm_last_timestamp [14:21:19]Write 4 bytes [14:21:19]NVStorageSaveData done [14:21:19]ExternCall_PrintAddStr [14:21:19]wPrintStart [14:21:19]Write to MH i2c: 01 00 00 D4 33 07 [14:21:19]Write i2c OK [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: 01 [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: 01 07 00 [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: 01 07 00 D4 33 00 04 00 00 00 FF 0F 20 [14:21:19]RasterBufferAndPrint [14:21:19]line Счет N : (1)210425 [14:21:19]line ИНН: 02508201610067 [14:21:19]line Контрольно-Кассовый Чек [14:21:19]line ПРОДАЖА [14:21:19]line ТРК (МРК, ГНК) : 11 [14:21:19]line Товар: 2710124130 [14:21:19]line Аи-92-К-2 [14:21:19]line 4.490 * 66.90 [14:21:19]line = 300.38 [14:21:19]line НДС 12% НСП 1% [14:21:19]line > о реализуемом товаре [14:21:19]line ИТОГО: 300.38 [14:21:19]line НСП 1% : 2.66 [14:21:19]line НДС 12% : 31.90 [14:21:19]line Наличными: 0.00 [14:21:19]line Безнал.: 300.38 [14:21:19]line Место: АЗС № 147 "Партнер Нефть" [14:21:19]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [14:21:19]line СНО: Общий режим [14:21:19]line Чек 51 23.10.2024 14:21 [14:21:19]line Смена: 507 ФФД: 1.0 [14:21:19]line ЗНМ: 0300000094 [14:21:19]line РНМ: 0000000000091756 [14:21:19]line Версия ККМ: 001 [14:21:19]line Платежная система: Mbank [14:21:19]line ФМ: 0000000000871809 [14:21:19]line ФД: 68428 [14:21:19]line ФПД: 69331577650970 [14:21:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T142127&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68428&fm=69331577650970&tin=02508201610067®Number=0000000000091756&sum=30038 [14:21:20]OFD Sender: Processing packet 68428 [packets to send 8, broken 7] [14:21:20]ProducePacketName [14:21:20]name=ofd_packets/00068428 [14:21:20]OFD Sender: To server: pG, [14:21:20]CommunicateWithHost lk.salyk.kg:30040 [14:21:20]ConnectInit lk.salyk.kg [14:21:20]written 0, free lines is 4095 [14:21:20]Connected sock=10 [14:21:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 31 83 07 01 6D 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 33 00 00 00 F4 03 04 00 67 06 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 4C 0B 01 00 35 04 06 00 3F 0E 84 0E BF 1A A8 87 80 12 36 F7 93 2E [14:21:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 E9 37 47 00 5B 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 4C 0B 01 00 F4 03 04 00 5C AC 18 67 B6 04 01 00 00 F7 69 17 45 38 36 A9 23 [14:21:20]CommunicateWithHost err = 0 [14:21:20]CheckOFDResponse [14:21:20]1017 (14) - 77093643461234 [14:21:20]1041 (16) - 0000000000871809 [14:21:20]1040 (4) - 68428 [14:21:20]1012 (4) - 23.10.2024 07:57 [14:21:20]1206 (1) - 0 [14:21:20]OFD Sender: Remove packet 68428 [14:21:20]ProducePacketName [14:21:20]name=ofd_packets/00068428 [14:21:20]NVStorageDeleteData [14:21:20]Write to MH i2c: 01 00 00 FC 33 2F [14:21:20]Write i2c OK [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: 01 [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: 01 07 00 [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: 01 07 00 FC 33 00 04 00 00 00 E0 0C 26 [14:21:20]RasterBufferAndPrint [14:21:20]line [14:21:20]line [14:21:20]line [14:21:20]line [14:21:20]line [14:21:20]written 0, free lines is 3300 [14:21:20]MH_Cut [14:21:20]Write to MH i2c: D1 01 00 03 34 01 09 [14:21:20]Write i2c OK [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: D1 [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: D1 01 00 [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: D1 01 00 03 34 00 08 [14:21:20]Write to MH i2c: 01 00 00 04 34 38 [14:21:20]Write i2c OK [14:21:20]MH_I2C_Read... [14:21:20]OFD Sender: No OFD packet to send [14:21:21]*** Cut start [14:21:21]*** Partial cut [14:21:21]*** CUTSNS_PIN = 1 [14:21:21]*** CUTSNS_PIN = 0 [14:21:21]*** Brake cut motor [14:21:21]Read from MH i2c: 01 [14:21:21]MH_I2C_Read... [14:21:21]*** Stop cut motor [14:21:21]*** Cut end [14:21:21]Read from MH i2c: 01 07 00 [14:21:21]MH_I2C_Read... [14:21:21]Read from MH i2c: 01 07 00 04 34 00 04 00 00 00 FF 0F 51 [14:21:21]process_action close_receipt done [14:21:21]requested_data is exist [14:21:21]produce_requested_data [14:21:21]requested_item fm.sn is exist - process it [14:21:21]wFMCommunicate request_size=4 [14:21:21]MH_SAM_APDU [14:21:21]CAPDU: 80 11 00 00 [14:21:21]Write to MH i2c: E2 08 00 05 34 80 11 00 00 00 00 00 00 B3 [14:21:21]Write i2c OK [14:21:21]MH_I2C_Read... [14:21:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:22]Read from MH i2c: E2 [14:21:22]MH_I2C_Read... [14:21:22]Read from MH i2c: E2 17 00 [14:21:22]MH_I2C_Read... [14:21:22]Read from MH i2c: E2 17 00 05 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 07 [14:21:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [14:21:22]wFMCommunicate OK [14:21:22]requested_item fd.num is exist - process it [14:21:22]SAM_PROTO_GetFieldsCounters [14:21:22]wFMCommunicate request_size=4 [14:21:22]MH_SAM_APDU [14:21:22]CAPDU: 80 13 00 00 [14:21:22]Write to MH i2c: E2 08 00 06 34 80 13 00 00 00 00 00 00 B6 [14:21:22]Write i2c OK [14:21:22]MH_I2C_Read... [14:21:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:22]Read from MH i2c: E2 [14:21:22]MH_I2C_Read... [14:21:22]Read from MH i2c: E2 62 00 [14:21:22]MH_I2C_Read... [14:21:22]Read from MH i2c: E2 62 00 06 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 4C 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [14:21:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 4C 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:21:22]wFMCommunicate OK [14:21:22]SAM_PROTO_GetFieldsCounters done [14:21:22]requested_item shift.num is exist - process it [14:21:22]requested_item shift.opened is exist - process it [14:21:22]req_shift_opened [14:21:22]FM_GetShiftState [14:21:22]SAM_PROTO_GetShiftState [14:21:22]wFMCommunicate request_size=4 [14:21:22]MH_SAM_APDU [14:21:22]CAPDU: 80 13 01 00 [14:21:22]Write to MH i2c: E2 08 00 07 34 80 13 01 00 00 00 00 00 B8 [14:21:22]Write i2c OK [14:21:22]MH_I2C_Read... [14:21:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:22]Read from MH i2c: E2 [14:21:22]MH_I2C_Read... [14:21:22]Read from MH i2c: E2 0E 00 [14:21:22]MH_I2C_Read... [14:21:22]Read from MH i2c: E2 0E 00 07 34 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 27 [14:21:22]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [14:21:22]wFMCommunicate OK [14:21:22]SAM_PROTO_GetShiftState done [14:21:22]FM_GetShiftState done [14:21:22]req_shift_opened done [14:21:22]requested_item shift.open_date is exist - process it [14:21:22]req_shift_open_date [14:21:22]req_shift_open_date done [14:21:22]produce_requested_data done [14:21:22]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68428,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [14:21:22]process_action_free close_receipt [14:21:22]json_value_free [14:21:22]json_value_free done [14:21:22]process_json_proto returns [14:21:22]Send response to host [14:21:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68428,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [14:21:22]free response buf [14:21:22]execute_script done [14:21:22]execute_script returns [14:21:22]free content buf [14:21:22]Sock 9.Close socket [14:21:22]Sock 9.Thread stoped [14:21:25]OFD Sender: No OFD packet to send [14:21:30]OFD Sender: No OFD packet to send [14:21:35]OFD Sender: No OFD packet to send [14:21:40]OFD Sender: No OFD packet to send [14:21:45]OFD Sender: No OFD packet to send [14:21:50]OFD Sender: No OFD packet to send [14:21:55]OFD Sender: No OFD packet to send [14:22:00]OFD Sender: No OFD packet to send [14:22:06]OFD Sender: No OFD packet to send [14:22:11]OFD Sender: No OFD packet to send [14:22:16]OFD Sender: No OFD packet to send [14:22:21]OFD Sender: No OFD packet to send [14:22:26]OFD Sender: No OFD packet to send [14:22:31]OFD Sender: No OFD packet to send [14:22:36]OFD Sender: No OFD packet to send [14:22:41]OFD Sender: No OFD packet to send [14:22:46]OFD Sender: No OFD packet to send [14:22:51]OFD Sender: No OFD packet to send [14:22:56]OFD Sender: No OFD packet to send [14:23:01]OFD Sender: No OFD packet to send [14:23:06]OFD Sender: No OFD packet to send [14:23:11]OFD Sender: No OFD packet to send [14:23:16]OFD Sender: No OFD packet to send [14:23:21]OFD Sender: No OFD packet to send [14:23:26]OFD Sender: No OFD packet to send [14:23:31]OFD Sender: No OFD packet to send [14:23:36]OFD Sender: No OFD packet to send [14:23:41]OFD Sender: No OFD packet to send [14:23:46]OFD Sender: No OFD packet to send [14:23:51]OFD Sender: No OFD packet to send [14:23:56]OFD Sender: No OFD packet to send [14:24:01]OFD Sender: No OFD packet to send [14:24:06]OFD Sender: No OFD packet to send [14:24:11]OFD Sender: No OFD packet to send [14:24:16]OFD Sender: No OFD packet to send [14:24:21]OFD Sender: No OFD packet to send [14:24:26]OFD Sender: No OFD packet to send [14:24:31]OFD Sender: No OFD packet to send [14:24:36]OFD Sender: No OFD packet to send [14:24:41]OFD Sender: No OFD packet to send [14:24:46]OFD Sender: No OFD packet to send [14:24:51]OFD Sender: No OFD packet to send [14:24:56]OFD Sender: No OFD packet to send [14:25:01]OFD Sender: No OFD packet to send [14:25:06]OFD Sender: No OFD packet to send [14:25:11]OFD Sender: No OFD packet to send [14:25:16]OFD Sender: No OFD packet to send [14:25:21]OFD Sender: No OFD packet to send [14:25:26]OFD Sender: No OFD packet to send [14:25:31]OFD Sender: No OFD packet to send [14:25:36]OFD Sender: No OFD packet to send [14:25:41]OFD Sender: No OFD packet to send [14:25:46]OFD Sender: No OFD packet to send [14:25:51]OFD Sender: No OFD packet to send [14:25:56]OFD Sender: No OFD packet to send [14:26:01]OFD Sender: No OFD packet to send [14:26:06]OFD Sender: No OFD packet to send [14:26:11]OFD Sender: No OFD packet to send [14:26:16]OFD Sender: No OFD packet to send [14:26:21]OFD Sender: No OFD packet to send [14:26:26]OFD Sender: No OFD packet to send [14:26:31]OFD Sender: No OFD packet to send [14:26:36]OFD Sender: No OFD packet to send [14:26:41]OFD Sender: No OFD packet to send [14:26:46]OFD Sender: No OFD packet to send [14:26:51]OFD Sender: No OFD packet to send [14:26:56]OFD Sender: No OFD packet to send [14:27:01]OFD Sender: No OFD packet to send [14:27:06]OFD Sender: No OFD packet to send [14:27:11]OFD Sender: No OFD packet to send [14:27:16]OFD Sender: No OFD packet to send [14:27:21]OFD Sender: No OFD packet to send [14:27:26]OFD Sender: No OFD packet to send [14:27:31]OFD Sender: No OFD packet to send [14:27:36]OFD Sender: No OFD packet to send [14:27:41]OFD Sender: No OFD packet to send [14:27:46]OFD Sender: No OFD packet to send [14:27:51]OFD Sender: No OFD packet to send [14:27:56]OFD Sender: No OFD packet to send [14:28:01]OFD Sender: No OFD packet to send [14:28:06]OFD Sender: No OFD packet to send [14:28:11]OFD Sender: No OFD packet to send [14:28:16]OFD Sender: No OFD packet to send [14:28:21]OFD Sender: No OFD packet to send [14:28:26]OFD Sender: No OFD packet to send [14:28:31]OFD Sender: No OFD packet to send [14:28:36]OFD Sender: No OFD packet to send [14:28:41]OFD Sender: No OFD packet to send [14:28:46]OFD Sender: No OFD packet to send [14:28:51]OFD Sender: No OFD packet to send [14:28:56]OFD Sender: No OFD packet to send [14:29:01]OFD Sender: No OFD packet to send [14:29:06]OFD Sender: No OFD packet to send [14:29:11]OFD Sender: No OFD packet to send [14:29:16]OFD Sender: No OFD packet to send [14:29:21]OFD Sender: No OFD packet to send [14:29:26]OFD Sender: No OFD packet to send [14:29:31]OFD Sender: No OFD packet to send [14:29:36]OFD Sender: No OFD packet to send [14:29:41]OFD Sender: No OFD packet to send [14:29:46]OFD Sender: No OFD packet to send [14:29:51]OFD Sender: No OFD packet to send [14:29:56]OFD Sender: No OFD packet to send [14:30:01]OFD Sender: No OFD packet to send [14:30:06]OFD Sender: No OFD packet to send [14:30:09]accept exits with 7 [14:30:09]New connection [14:30:09]New thread 3067276644 created [14:30:09]Thread 3067133284 joined [14:30:09]Waiting for new connection... [14:30:09] Sock 7.Parse request [14:30:09]Sock 7.Check first char [14:30:09]Sock 7.First char is OK [14:30:09]request: POST /json_proto HTTP/1.0 [14:30:09]Method: POST [14:30:09]URL: /json_proto [14:30:09]Method is POST - this is cgi request [14:30:09]url: /json_proto [14:30:09]query_string will be loaded in cgi processing [14:30:09]execute_cgi json_proto POST (null) [14:30:09]execute_cgi path=json_proto method=POST [14:30:09]POST find Content-Length [14:30:09]Host: 172.17.52.3:8080 [14:30:09]Content-Length: 674 [14:30:09]Content-Type: application/json [14:30:09] [14:30:09]POST finish read [14:30:09]Found Content-Length = 674 [14:30:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210426", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 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" ] } } [14:30:09]execute_script... [14:30:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210426", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 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" ] } } [14:30:09]POST & json_proto [14:30:09]process_json_proto [14:30:09]json parsed OK: [14:30:09]protocol is kg_v1.0 [14:30:09]action value=close_receipt [14:30:09]process_action close_receipt [14:30:09]cmd_close_receipt [14:30:09]MH_GetDate [14:30:09]Write to MH i2c: F0 00 00 08 34 2B [14:30:09]Write i2c OK [14:30:09]MH_I2C_Read... [14:30:09]Read from MH i2c: F0 [14:30:09]MH_I2C_Read... [14:30:09]Read from MH i2c: F0 09 00 [14:30:09]MH_I2C_Read... [14:30:09]Read from MH i2c: F0 09 00 08 34 00 7A 08 19 67 D7 68 A5 64 7E [14:30:09]GetLastDocTimeStamp 1729693287 [14:30:09]current date 1729693818 [14:30:09]FM_GetShiftState [14:30:09]SAM_PROTO_GetShiftState [14:30:09]wFMCommunicate request_size=4 [14:30:09]MH_SAM_APDU [14:30:09]CAPDU: 80 13 01 00 [14:30:09]Write to MH i2c: E2 08 00 09 34 80 13 01 00 00 00 00 00 BA [14:30:09]Write i2c OK [14:30:09]MH_I2C_Read... [14:30:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:09]Read from MH i2c: E2 [14:30:09]MH_I2C_Read... [14:30:09]Read from MH i2c: E2 0E 00 [14:30:09]MH_I2C_Read... [14:30:09]Read from MH i2c: E2 0E 00 09 34 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 29 [14:30:09]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [14:30:09]wFMCommunicate OK [14:30:09]SAM_PROTO_GetShiftState done [14:30:09]FM_GetShiftState done [14:30:09]opened in 1729641385 [14:30:09]opened+sec_in_day 1729727785 [14:30:09]quantity*price = 20040 [14:30:09]sum+1 = 20042 [14:30:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 52 23.10.2024 14:30 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68429 ФПД: 101717344526390 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143018&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68429&fm=101717344526390&tin=02508201610067®Number=0000000000091756&sum=20000 [14:30:10]StoreToDocumentArchive [14:30:10]shift 507 fd 68429 [14:30:10]save to /storage/0507/doc_00068429 [14:30:10]save last doc name /storage/0507/doc_00068429 to /storage/kkm_last_doc_name [14:30:10]save OK [14:30:10]Clear old archive folders... [14:30:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:30:10]tlvbuf is 02057B80 [14:30:10]SAM_PROTO_ClearQueue [14:30:10]wFMCommunicate request_size=4 [14:30:10]MH_SAM_APDU [14:30:10]CAPDU: 80 09 00 00 [14:30:10]Write to MH i2c: E2 08 00 16 34 80 09 00 00 00 00 00 00 BC [14:30:10]Write i2c OK [14:30:10]MH_I2C_Read... [14:30:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:10]Read from MH i2c: E2 [14:30:10]MH_I2C_Read... [14:30:10]Read from MH i2c: E2 03 00 [14:30:10]MH_I2C_Read... [14:30:10]Read from MH i2c: E2 03 00 16 34 00 90 00 BE [14:30:10]RAPDU: 90 00 [14:30:10]wFMCommunicate OK [14:30:10]SAM_PROTO_ClearQueue done [14:30:10]KKMCreateOFDPacket [14:30:10]OFDProtocolAddRootSTLVToBuf [14:30:10]FM_MakeSignedData [14:30:10]FM_MakeSignedData [14:30:10]SAM_PROTO_SignData [14:30:10]wFMCommunicate request_size=4 [14:30:10]MH_SAM_APDU [14:30:10]CAPDU: 80 0D 01 02 [14:30:10]Write to MH i2c: E2 08 00 17 34 80 0D 01 02 00 00 00 00 C4 [14:30:10]Write i2c OK [14:30:10]MH_I2C_Read... [14:30:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:10]Read from MH i2c: E2 [14:30:10]MH_I2C_Read... [14:30:10]Read from MH i2c: E2 03 00 [14:30:10]MH_I2C_Read... [14:30:10]Read from MH i2c: E2 03 00 17 34 00 90 00 BF [14:30:10]RAPDU: 90 00 [14:30:10]wFMCommunicate OK [14:30:10]wFMCommunicate request_size=255 [14:30:10]MH_SAM_APDU [14:30:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 7A 08 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 4D 0B 01 00 35 04 06 00 5C 82 EA 30 [14:30:10]Write to MH i2c: E2 02 01 18 34 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 7A 08 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 4D 0B 01 00 35 04 06 00 5C 82 EA 30 00 00 52 [14:30:10]Write i2c OK [14:30:10]MH_I2C_Read... [14:30:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:10]Read from MH i2c: E2 [14:30:10]MH_I2C_Read... [14:30:10]Read from MH i2c: E2 03 00 [14:30:10]MH_I2C_Read... [14:30:10]Read from MH i2c: E2 03 00 18 34 00 90 00 C0 [14:30:10]RAPDU: 90 00 [14:30:10]wFMCommunicate OK [14:30:10]wFMCommunicate request_size=7 [14:30:10]MH_SAM_APDU [14:30:10]CAPDU: 80 0D 02 02 02 20 36 [14:30:10]Write to MH i2c: E2 0A 00 19 34 80 0D 02 02 02 00 20 36 00 00 21 [14:30:10]Write i2c OK [14:30:10]MH_I2C_Read... [14:30:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:10]Read from MH i2c: E2 [14:30:10]MH_I2C_Read... [14:30:10]Read from MH i2c: E2 03 00 [14:30:10]MH_I2C_Read... [14:30:10]Read from MH i2c: E2 03 00 19 34 00 90 00 C1 [14:30:10]RAPDU: 90 00 [14:30:10]wFMCommunicate OK [14:30:10]wFMCommunicate request_size=4 [14:30:10]MH_SAM_APDU [14:30:10]CAPDU: 80 0D 03 02 [14:30:10]Write to MH i2c: E2 08 00 1A 34 80 0D 03 02 00 00 00 00 C9 [14:30:10]Write i2c OK [14:30:10]MH_I2C_Read... [14:30:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:10]Read from MH i2c: E2 [14:30:10]MH_I2C_Read... [14:30:10]Read from MH i2c: E2 0B 00 [14:30:10]MH_I2C_Read... [14:30:10]Read from MH i2c: E2 0B 00 1A 34 00 02 CE CD CE A7 52 55 CB 90 00 4E [14:30:10]RAPDU: 02 CE CD CE A7 52 55 CB 90 00 [14:30:10]wFMCommunicate OK [14:30:10]SAM_PROTO_SignData done [14:30:10]FM_MakeSignedData done [14:30:10]CreateOFDProtocolMessage [14:30:10]wFMCommunicate request_size=4 [14:30:10]MH_SAM_APDU [14:30:10]CAPDU: 80 11 00 00 [14:30:10]Write to MH i2c: E2 08 00 1B 34 80 11 00 00 00 00 00 00 C9 [14:30:10]Write i2c OK [14:30:10]MH_I2C_Read... [14:30:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:10]Read from MH i2c: E2 [14:30:10]MH_I2C_Read... [14:30:10]Read from MH i2c: E2 17 00 [14:30:10]MH_I2C_Read... [14:30:10]Read from MH i2c: E2 17 00 1B 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 1D [14:30:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [14:30:10]wFMCommunicate OK [14:30:10]CreateOFDProtocolMessage done [14:30:10]OFDSenderStorePacket 68429 [14:30:10]StoreOFDPacket docnum=68429 [14:30:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0C 01 00 00 BC 15 04 01 6B DD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 7A 08 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 4D 0B 01 00 35 04 06 00 5C 82 EA 30 20 36 02 CE CD CE A7 52 55 CB [14:30:10]CheckFolder [14:30:10]dirname=/storage/ofd_packets [14:30:10]CheckFolder done [14:30:10]ProducePacketName [14:30:10]name=ofd_packets/00068429 [14:30:10]NVStorageSaveData ofd_packets/00068429 [14:30:10]File name is /storage/ofd_packets/00068429 [14:30:10]Write 298 bytes [14:30:10]NVStorageSaveData done [14:30:10]OFDSenderStorePacket done [14:30:10]KKMCreateOFDPacket done [14:30:10]NVStorageSaveData kkm_last_timestamp [14:30:10]File name is /storage/kkm_last_timestamp [14:30:10]Write 4 bytes [14:30:10]NVStorageSaveData done [14:30:10]ExternCall_PrintAddStr [14:30:10]wPrintStart [14:30:10]Write to MH i2c: 01 00 00 1C 34 50 [14:30:10]Write i2c OK [14:30:10]MH_I2C_Read... [14:30:10]Read from MH i2c: 01 [14:30:10]MH_I2C_Read... [14:30:10]Read from MH i2c: 01 07 00 [14:30:10]MH_I2C_Read... [14:30:10]Read from MH i2c: 01 07 00 1C 34 00 04 00 00 00 FF 0F 69 [14:30:10]RasterBufferAndPrint [14:30:10]line Счет N : (1)210426 [14:30:10]line ИНН: 02508201610067 [14:30:10]line Контрольно-Кассовый Чек [14:30:10]line ПРОДАЖА [14:30:10]line ТРК (МРК, ГНК) : 21 [14:30:10]line Товар: 2710194210 [14:30:10]line ДТ-К-2 [14:30:10]line 2.630 * 76.20 [14:30:10]line = 200.41 [14:30:10]line НДС 12% НСП 1% [14:30:10]line > о реализуемом товаре [14:30:10]line ОКРУГЛЕНИЕ: -0.41 [14:30:10]line ИТОГО: 200.00 [14:30:10]line Внесено: 200.00 [14:30:10]line СДАЧА: 0.00 [14:30:10]line НСП 1% : 1.77 [14:30:10]line НДС 12% : 21.28 [14:30:10]line Наличными: 200.00 [14:30:10]line Безнал.: 0.00 [14:30:10]line Место: АЗС № 147 "Партнер Нефть" [14:30:10]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [14:30:10]line СНО: Общий режим [14:30:10]line Чек 52 23.10.2024 14:30 [14:30:10]line Смена: 507 ФФД: 1.0 [14:30:10]line ЗНМ: 0300000094 [14:30:10]line РНМ: 0000000000091756 [14:30:10]line Версия ККМ: 001 [14:30:10]line ФМ: 0000000000871809 [14:30:10]line ФД: 68429 [14:30:10]line ФПД: 101717344526390 [14:30:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143018&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68429&fm=101717344526390&tin=02508201610067®Number=0000000000091756&sum=20000 [14:30:11]OFD Sender: Processing packet 68429 [packets to send 8, broken 7] [14:30:11]ProducePacketName [14:30:11]name=ofd_packets/00068429 [14:30:11]OFD Sender: To server: pG, [14:30:11]CommunicateWithHost lk.salyk.kg:30040 [14:30:11]ConnectInit lk.salyk.kg [14:30:11]written 0, free lines is 4095 [14:30:11]Connected sock=9 [14:30:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0C 01 00 00 BC 15 04 01 6B DD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 7A 08 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 4D 0B 01 00 35 04 06 00 5C 82 EA 30 20 36 02 CE CD CE A7 52 55 CB [14:30:11]Write to MH i2c: 01 00 00 46 34 7A [14:30:11]Write i2c OK [14:30:11]MH_I2C_Read... [14:30:11]Read from MH i2c: 01 [14:30:11]MH_I2C_Read... [14:30:11]Read from MH i2c: 01 07 00 [14:30:11]MH_I2C_Read... [14:30:11]Read from MH i2c: 01 07 00 46 34 00 04 00 00 00 B2 0C 43 [14:30:11]RasterBufferAndPrint [14:30:11]line [14:30:11]line [14:30:11]line [14:30:11]line [14:30:11]line [14:30:11]written 0, free lines is 3256 [14:30:11]MH_Cut [14:30:11]Write to MH i2c: D1 01 00 4D 34 01 53 [14:30:11]Write i2c OK [14:30:11]MH_I2C_Read... [14:30:11]Read from MH i2c: D1 [14:30:11]MH_I2C_Read... [14:30:11]Read from MH i2c: D1 01 00 [14:30:11]MH_I2C_Read... [14:30:11]Read from MH i2c: D1 01 00 4D 34 00 52 [14:30:11]Write to MH i2c: 01 00 00 4E 34 82 [14:30:11]Write i2c OK [14:30:11]MH_I2C_Read... [14:30:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 08 97 47 00 A1 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 4D 0B 01 00 F4 03 04 00 6F AE 18 67 B6 04 01 00 00 F6 24 B1 28 F6 28 08 C6 [14:30:11]CommunicateWithHost err = 0 [14:30:11]CheckOFDResponse [14:30:11]1017 (14) - 77093643461234 [14:30:11]1041 (16) - 0000000000871809 [14:30:11]1040 (4) - 68429 [14:30:11]1012 (4) - 23.10.2024 08:06 [14:30:11]1206 (1) - 0 [14:30:11]OFD Sender: Remove packet 68429 [14:30:11]ProducePacketName [14:30:11]name=ofd_packets/00068429 [14:30:11]NVStorageDeleteData [14:30:12]OFD Sender: No OFD packet to send [14:30:12]*** Cut start [14:30:12]*** Partial cut [14:30:12]*** CUTSNS_PIN = 1 [14:30:12]*** CUTSNS_PIN = 0 [14:30:12]*** Brake cut motor [14:30:13]Read from MH i2c: 01 [14:30:13]MH_I2C_Read... [14:30:13]*** Stop cut motor [14:30:13]*** Cut end [14:30:13]Read from MH i2c: 01 07 00 [14:30:13]MH_I2C_Read... [14:30:13]Read from MH i2c: 01 07 00 4E 34 00 04 00 00 00 FF 0F 9B [14:30:13]process_action close_receipt done [14:30:13]requested_data is exist [14:30:13]produce_requested_data [14:30:13]requested_item fm.sn is exist - process it [14:30:13]wFMCommunicate request_size=4 [14:30:13]MH_SAM_APDU [14:30:13]CAPDU: 80 11 00 00 [14:30:13]Write to MH i2c: E2 08 00 4F 34 80 11 00 00 00 00 00 00 FD [14:30:13]Write i2c OK [14:30:13]MH_I2C_Read... [14:30:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:13]Read from MH i2c: E2 [14:30:13]MH_I2C_Read... [14:30:13]Read from MH i2c: E2 17 00 [14:30:13]MH_I2C_Read... [14:30:13]Read from MH i2c: E2 17 00 4F 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 51 [14:30:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [14:30:13]wFMCommunicate OK [14:30:13]requested_item fd.num is exist - process it [14:30:13]SAM_PROTO_GetFieldsCounters [14:30:13]wFMCommunicate request_size=4 [14:30:13]MH_SAM_APDU [14:30:13]CAPDU: 80 13 00 00 [14:30:13]Write to MH i2c: E2 08 00 50 34 80 13 00 00 00 00 00 00 00 [14:30:13]Write i2c OK [14:30:13]MH_I2C_Read... [14:30:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:13]Read from MH i2c: E2 [14:30:13]MH_I2C_Read... [14:30:13]Read from MH i2c: E2 62 00 [14:30:13]MH_I2C_Read... [14:30:13]Read from MH i2c: E2 62 00 50 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 4D 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [14:30:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 4D 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:30:13]wFMCommunicate OK [14:30:13]SAM_PROTO_GetFieldsCounters done [14:30:13]requested_item shift.num is exist - process it [14:30:13]requested_item shift.opened is exist - process it [14:30:13]req_shift_opened [14:30:13]FM_GetShiftState [14:30:13]SAM_PROTO_GetShiftState [14:30:13]wFMCommunicate request_size=4 [14:30:13]MH_SAM_APDU [14:30:13]CAPDU: 80 13 01 00 [14:30:13]Write to MH i2c: E2 08 00 51 34 80 13 01 00 00 00 00 00 02 [14:30:13]Write i2c OK [14:30:13]MH_I2C_Read... [14:30:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:13]Read from MH i2c: E2 [14:30:13]MH_I2C_Read... [14:30:13]Read from MH i2c: E2 0E 00 [14:30:13]MH_I2C_Read... [14:30:13]Read from MH i2c: E2 0E 00 51 34 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 71 [14:30:13]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [14:30:13]wFMCommunicate OK [14:30:13]SAM_PROTO_GetShiftState done [14:30:13]FM_GetShiftState done [14:30:13]req_shift_opened done [14:30:13]requested_item shift.open_date is exist - process it [14:30:13]req_shift_open_date [14:30:13]req_shift_open_date done [14:30:13]produce_requested_data done [14:30:13]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68429,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [14:30:13]process_action_free close_receipt [14:30:13]json_value_free [14:30:13]json_value_free done [14:30:13]process_json_proto returns [14:30:13]Send response to host [14:30:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68429,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [14:30:13]free response buf [14:30:13]execute_script done [14:30:13]execute_script returns [14:30:13]free content buf [14:30:13]Sock 7.Close socket [14:30:13]Sock 7.Thread stoped [14:30:17]OFD Sender: No OFD packet to send [14:30:22]OFD Sender: No OFD packet to send [14:30:27]OFD Sender: No OFD packet to send [14:30:32]OFD Sender: No OFD packet to send [14:30:37]OFD Sender: No OFD packet to send [14:30:42]OFD Sender: No OFD packet to send [14:30:47]OFD Sender: No OFD packet to send [14:30:52]OFD Sender: No OFD packet to send [14:30:57]OFD Sender: No OFD packet to send [14:31:02]OFD Sender: No OFD packet to send [14:31:07]OFD Sender: No OFD packet to send [14:31:12]OFD Sender: No OFD packet to send [14:31:17]OFD Sender: No OFD packet to send [14:31:22]OFD Sender: No OFD packet to send [14:31:27]OFD Sender: No OFD packet to send [14:31:32]OFD Sender: No OFD packet to send [14:31:37]OFD Sender: No OFD packet to send [14:31:42]OFD Sender: No OFD packet to send [14:31:46]accept exits with 10 [14:31:46]New connection [14:31:46]New thread 3067133284 created [14:31:46]Thread 3067276644 joined [14:31:46]Waiting for new connection... [14:31:46] Sock 10.Parse request [14:31:46]Sock 10.Check first char [14:31:46]Sock 10.First char is OK [14:31:46]request: POST /json_proto HTTP/1.0 [14:31:46]Method: POST [14:31:46]URL: /json_proto [14:31:46]Method is POST - this is cgi request [14:31:46]url: /json_proto [14:31:46]query_string will be loaded in cgi processing [14:31:46]execute_cgi json_proto POST (null) [14:31:46]execute_cgi path=json_proto method=POST [14:31:46]POST find Content-Length [14:31:46]Host: 172.17.52.3:8080 [14:31:46]Content-Length: 763 [14:31:46]Content-Type: application/json [14:31:46] [14:31:46]POST finish read [14:31:46]Found Content-Length = 763 [14:31:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:46]execute_script... [14:31:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:46]POST & json_proto [14:31:46]process_json_proto [14:31:46]json parsed OK: [14:31:46]protocol is kg_v1.0 [14:31:46]action value=close_receipt [14:31:46]process_action close_receipt [14:31:46]cmd_close_receipt [14:31:46]MH_GetDate [14:31:46]Write to MH i2c: F0 00 00 52 34 75 [14:31:46]Write i2c OK [14:31:46]MH_I2C_Read... [14:31:46]Read from MH i2c: F0 [14:31:46]MH_I2C_Read... [14:31:46]Read from MH i2c: F0 09 00 [14:31:46]MH_I2C_Read... [14:31:46]Read from MH i2c: F0 09 00 52 34 00 DB 08 19 67 D7 68 A5 64 29 [14:31:46]GetLastDocTimeStamp 1729693818 [14:31:46]current date 1729693915 [14:31:46]FM_GetShiftState [14:31:46]SAM_PROTO_GetShiftState [14:31:46]wFMCommunicate request_size=4 [14:31:46]MH_SAM_APDU [14:31:46]CAPDU: 80 13 01 00 [14:31:46]Write to MH i2c: E2 08 00 53 34 80 13 01 00 00 00 00 00 04 [14:31:46]Write i2c OK [14:31:46]MH_I2C_Read... [14:31:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:46]Read from MH i2c: E2 [14:31:46]MH_I2C_Read... [14:31:46]Read from MH i2c: E2 0E 00 [14:31:46]MH_I2C_Read... [14:31:46]Read from MH i2c: E2 0E 00 53 34 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 73 [14:31:46]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [14:31:46]wFMCommunicate OK [14:31:46]SAM_PROTO_GetShiftState done [14:31:46]FM_GetShiftState done [14:31:46]opened in 1729641385 [14:31:46]opened+sec_in_day 1729727785 [14:31:46]quantity*price = 50063 [14:31:46]sum+1 = 50064 [14:31:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.63 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.63 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 53 23.10.2024 14:31 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871809 ФД: 68430 ФПД: 267165051705114 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143155&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68430&fm=267165051705114&tin=02508201610067®Number=0000000000091756&sum=50063 [14:31:47]StoreToDocumentArchive [14:31:47]shift 507 fd 68430 [14:31:47]save to /storage/0507/doc_00068430 [14:31:47]save last doc name /storage/0507/doc_00068430 to /storage/kkm_last_doc_name [14:31:47]save OK [14:31:47]Clear old archive folders... [14:31:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:31:47]tlvbuf is 020096D0 [14:31:47]SAM_PROTO_ClearQueue [14:31:47]wFMCommunicate request_size=4 [14:31:47]MH_SAM_APDU [14:31:47]CAPDU: 80 09 00 00 [14:31:47]Write to MH i2c: E2 08 00 60 34 80 09 00 00 00 00 00 00 06 [14:31:47]Write i2c OK [14:31:47]MH_I2C_Read... [14:31:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:47]Read from MH i2c: E2 [14:31:47]MH_I2C_Read... [14:31:47]Read from MH i2c: E2 03 00 [14:31:47]MH_I2C_Read... [14:31:47]Read from MH i2c: E2 03 00 60 34 00 90 00 08 [14:31:47]RAPDU: 90 00 [14:31:47]wFMCommunicate OK [14:31:47]SAM_PROTO_ClearQueue done [14:31:47]KKMCreateOFDPacket [14:31:47]OFDProtocolAddRootSTLVToBuf [14:31:47]FM_MakeSignedData [14:31:47]FM_MakeSignedData [14:31:47]SAM_PROTO_SignData [14:31:47]wFMCommunicate request_size=4 [14:31:47]MH_SAM_APDU [14:31:47]CAPDU: 80 0D 01 02 [14:31:47]Write to MH i2c: E2 08 00 61 34 80 0D 01 02 00 00 00 00 0E [14:31:47]Write i2c OK [14:31:47]MH_I2C_Read... [14:31:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:47]Read from MH i2c: E2 [14:31:47]MH_I2C_Read... [14:31:47]Read from MH i2c: E2 03 00 [14:31:47]MH_I2C_Read... [14:31:47]Read from MH i2c: E2 03 00 61 34 00 90 00 09 [14:31:47]RAPDU: 90 00 [14:31:47]wFMCommunicate OK [14:31:47]wFMCommunicate request_size=255 [14:31:47]MH_SAM_APDU [14:31:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 DB 08 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 4E 0B 01 00 35 04 06 00 F2 FC 36 00 [14:31:47]Write to MH i2c: E2 02 01 62 34 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 DB 08 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 4E 0B 01 00 35 04 06 00 F2 FC 36 00 00 00 AC [14:31:47]Write i2c OK [14:31:47]MH_I2C_Read... [14:31:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:48]Read from MH i2c: E2 [14:31:48]MH_I2C_Read... [14:31:48]Read from MH i2c: E2 03 00 [14:31:48]MH_I2C_Read... [14:31:48]Read from MH i2c: E2 03 00 62 34 00 90 00 0A [14:31:48]RAPDU: 90 00 [14:31:48]wFMCommunicate OK [14:31:48]wFMCommunicate request_size=7 [14:31:48]MH_SAM_APDU [14:31:48]CAPDU: 80 0D 02 02 02 D7 1A [14:31:48]Write to MH i2c: E2 0A 00 63 34 80 0D 02 02 02 00 D7 1A 00 00 06 [14:31:48]Write i2c OK [14:31:48]MH_I2C_Read... [14:31:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:48]Read from MH i2c: E2 [14:31:48]MH_I2C_Read... [14:31:48]Read from MH i2c: E2 03 00 [14:31:48]MH_I2C_Read... [14:31:48]Read from MH i2c: E2 03 00 63 34 00 90 00 0B [14:31:48]RAPDU: 90 00 [14:31:48]wFMCommunicate OK [14:31:48]wFMCommunicate request_size=4 [14:31:48]MH_SAM_APDU [14:31:48]CAPDU: 80 0D 03 02 [14:31:48]Write to MH i2c: E2 08 00 64 34 80 0D 03 02 00 00 00 00 13 [14:31:48]Write i2c OK [14:31:48]MH_I2C_Read... [14:31:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:48]Read from MH i2c: E2 [14:31:48]MH_I2C_Read... [14:31:48]Read from MH i2c: E2 0B 00 [14:31:48]MH_I2C_Read... [14:31:48]Read from MH i2c: E2 0B 00 64 34 00 B9 FC FD D3 75 27 26 66 90 00 C1 [14:31:48]RAPDU: B9 FC FD D3 75 27 26 66 90 00 [14:31:48]wFMCommunicate OK [14:31:48]SAM_PROTO_SignData done [14:31:48]FM_MakeSignedData done [14:31:48]CreateOFDProtocolMessage [14:31:48]wFMCommunicate request_size=4 [14:31:48]MH_SAM_APDU [14:31:48]CAPDU: 80 11 00 00 [14:31:48]Write to MH i2c: E2 08 00 65 34 80 11 00 00 00 00 00 00 13 [14:31:48]Write i2c OK [14:31:48]MH_I2C_Read... [14:31:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:48]Read from MH i2c: E2 [14:31:48]MH_I2C_Read... [14:31:48]Read from MH i2c: E2 17 00 [14:31:48]MH_I2C_Read... [14:31:48]Read from MH i2c: E2 17 00 65 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 67 [14:31:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [14:31:48]wFMCommunicate OK [14:31:48]CreateOFDProtocolMessage done [14:31:48]OFDSenderStorePacket 68430 [14:31:48]StoreOFDPacket docnum=68430 [14:31:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0C 01 00 00 28 B4 04 01 01 4F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 DB 08 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 4E 0B 01 00 35 04 06 00 F2 FC 36 00 D7 1A B9 FC FD D3 75 27 26 66 [14:31:48]CheckFolder [14:31:48]dirname=/storage/ofd_packets [14:31:48]CheckFolder done [14:31:48]ProducePacketName [14:31:48]name=ofd_packets/00068430 [14:31:48]NVStorageSaveData ofd_packets/00068430 [14:31:48]File name is /storage/ofd_packets/00068430 [14:31:48]Write 298 bytes [14:31:48]NVStorageSaveData done [14:31:48]OFDSenderStorePacket done [14:31:48]KKMCreateOFDPacket done [14:31:48]NVStorageSaveData kkm_last_timestamp [14:31:48]File name is /storage/kkm_last_timestamp [14:31:48]Write 4 bytes [14:31:48]NVStorageSaveData done [14:31:48]ExternCall_PrintAddStr [14:31:48]wPrintStart [14:31:48]Write to MH i2c: 01 00 00 66 34 9A [14:31:48]Write i2c OK [14:31:48]MH_I2C_Read... [14:31:48]Read from MH i2c: 01 [14:31:48]MH_I2C_Read... [14:31:48]Read from MH i2c: 01 07 00 [14:31:48]MH_I2C_Read... [14:31:48]Read from MH i2c: 01 07 00 66 34 00 04 00 00 00 FF 0F B3 [14:31:48]RasterBufferAndPrint [14:31:48]line Счет N : (1)210427 [14:31:48]line ИНН: 02508201610067 [14:31:48]line Контрольно-Кассовый Чек [14:31:48]line ПРОДАЖА [14:31:48]line ТРК (МРК, ГНК) : 21 [14:31:48]line Товар: 2710194210 [14:31:48]line ДТ-К-2 [14:31:48]line 6.570 * 76.20 [14:31:48]line = 500.63 [14:31:48]line НДС 12% НСП 1% [14:31:48]line > о реализуемом товаре [14:31:48]line ИТОГО: 500.63 [14:31:48]line НСП 1% : 4.43 [14:31:48]line НДС 12% : 53.16 [14:31:48]line Наличными: 0.00 [14:31:48]line Безнал.: 500.63 [14:31:48]line Место: АЗС № 147 "Партнер Нефть" [14:31:48]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [14:31:48]line СНО: Общий режим [14:31:48]line Чек 53 23.10.2024 14:31 [14:31:48]line Смена: 507 ФФД: 1.0 [14:31:48]line ЗНМ: 0300000094 [14:31:48]line РНМ: 0000000000091756 [14:31:48]line Версия ККМ: 001 [14:31:48]line Платежная система: Mbank [14:31:48]line ФМ: 0000000000871809 [14:31:48]line ФД: 68430 [14:31:48]line ФПД: 267165051705114 [14:31:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143155&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68430&fm=267165051705114&tin=02508201610067®Number=0000000000091756&sum=50063 [14:31:48]OFD Sender: Processing packet 68430 [packets to send 8, broken 7] [14:31:48]ProducePacketName [14:31:48]name=ofd_packets/00068430 [14:31:48]OFD Sender: To server: pG, [14:31:48]CommunicateWithHost lk.salyk.kg:30040 [14:31:48]ConnectInit lk.salyk.kg [14:31:48]written 0, free lines is 4095 [14:31:48]Connected sock=9 [14:31:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0C 01 00 00 28 B4 04 01 01 4F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 DB 08 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 4E 0B 01 00 35 04 06 00 F2 FC 36 00 D7 1A B9 FC FD D3 75 27 26 66 [14:31:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 4E 06 47 00 EC D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 4E 0B 01 00 F4 03 04 00 D0 AE 18 67 B6 04 01 00 00 58 A3 D2 79 CF 8A 0E 37 [14:31:48]CommunicateWithHost err = 0 [14:31:48]CheckOFDResponse [14:31:48]1017 (14) - 77093643461234 [14:31:48]1041 (16) - 0000000000871809 [14:31:48]1040 (4) - 68430 [14:31:48]1012 (4) - 23.10.2024 08:07 [14:31:48]1206 (1) - 0 [14:31:48]OFD Sender: Remove packet 68430 [14:31:48]ProducePacketName [14:31:48]name=ofd_packets/00068430 [14:31:48]NVStorageDeleteData [14:31:49]Write to MH i2c: 01 00 00 8E 34 C2 [14:31:49]Write i2c OK [14:31:49]MH_I2C_Read... [14:31:49]Read from MH i2c: 01 [14:31:49]MH_I2C_Read... [14:31:49]Read from MH i2c: 01 07 00 [14:31:49]MH_I2C_Read... [14:31:49]Read from MH i2c: 01 07 00 8E 34 00 04 00 00 00 D8 0C B1 [14:31:49]RasterBufferAndPrint [14:31:49]line [14:31:49]line [14:31:49]line [14:31:49]line [14:31:49]line [14:31:49]written 0, free lines is 3293 [14:31:49]MH_Cut [14:31:49]Write to MH i2c: D1 01 00 95 34 01 9B [14:31:49]Write i2c OK [14:31:49]MH_I2C_Read... [14:31:49]Read from MH i2c: D1 [14:31:49]MH_I2C_Read... [14:31:49]Read from MH i2c: D1 01 00 [14:31:49]MH_I2C_Read... [14:31:49]Read from MH i2c: D1 01 00 95 34 00 9A [14:31:49]Write to MH i2c: 01 00 00 96 34 CA [14:31:49]Write i2c OK [14:31:49]MH_I2C_Read... [14:31:49]OFD Sender: No OFD packet to send [14:31:49]*** Cut start [14:31:49]*** Partial cut [14:31:49]*** CUTSNS_PIN = 1 [14:31:49]*** CUTSNS_PIN = 0 [14:31:50]*** Brake cut motor [14:31:50]Read from MH i2c: 01 [14:31:50]MH_I2C_Read... [14:31:50]*** Stop cut motor [14:31:50]*** Cut end [14:31:50]Read from MH i2c: 01 07 00 [14:31:50]MH_I2C_Read... [14:31:50]Read from MH i2c: 01 07 00 96 34 00 04 00 00 00 FF 0F E3 [14:31:50]process_action close_receipt done [14:31:50]requested_data is exist [14:31:50]produce_requested_data [14:31:50]requested_item fm.sn is exist - process it [14:31:50]wFMCommunicate request_size=4 [14:31:50]MH_SAM_APDU [14:31:50]CAPDU: 80 11 00 00 [14:31:50]Write to MH i2c: E2 08 00 97 34 80 11 00 00 00 00 00 00 45 [14:31:50]Write i2c OK [14:31:50]MH_I2C_Read... [14:31:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:50]Read from MH i2c: E2 [14:31:50]MH_I2C_Read... [14:31:50]Read from MH i2c: E2 17 00 [14:31:50]MH_I2C_Read... [14:31:50]Read from MH i2c: E2 17 00 97 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 99 [14:31:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [14:31:50]wFMCommunicate OK [14:31:50]requested_item fd.num is exist - process it [14:31:50]SAM_PROTO_GetFieldsCounters [14:31:50]wFMCommunicate request_size=4 [14:31:50]MH_SAM_APDU [14:31:50]CAPDU: 80 13 00 00 [14:31:50]Write to MH i2c: E2 08 00 98 34 80 13 00 00 00 00 00 00 48 [14:31:50]Write i2c OK [14:31:50]MH_I2C_Read... [14:31:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:31:50]Read from MH i2c: E2 [14:31:50]MH_I2C_Read... [14:31:50]Read from MH i2c: E2 62 00 [14:31:50]MH_I2C_Read... [14:31:50]Read from MH i2c: E2 62 00 98 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 4E 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [14:31:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 4E 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:31:50]wFMCommunicate OK [14:31:50]SAM_PROTO_GetFieldsCounters done [14:31:50]requested_item shift.num is exist - process it [14:31:50]requested_item shift.opened is exist - process it [14:31:50]req_shift_opened [14:31:50]FM_GetShiftState [14:31:50]SAM_PROTO_GetShiftState [14:31:50]wFMCommunicate request_size=4 [14:31:50]MH_SAM_APDU [14:31:50]CAPDU: 80 13 01 00 [14:31:50]Write to MH i2c: E2 08 00 99 34 80 13 01 00 00 00 00 00 4A [14:31:50]Write i2c OK [14:31:50]MH_I2C_Read... [14:31:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:50]Read from MH i2c: E2 [14:31:50]MH_I2C_Read... [14:31:50]Read from MH i2c: E2 0E 00 [14:31:50]MH_I2C_Read... [14:31:50]Read from MH i2c: E2 0E 00 99 34 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 B9 [14:31:50]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [14:31:50]wFMCommunicate OK [14:31:50]SAM_PROTO_GetShiftState done [14:31:50]FM_GetShiftState done [14:31:50]req_shift_opened done [14:31:50]requested_item shift.open_date is exist - process it [14:31:50]req_shift_open_date [14:31:50]req_shift_open_date done [14:31:50]produce_requested_data done [14:31:50]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68430,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [14:31:50]process_action_free close_receipt [14:31:50]json_value_free [14:31:50]json_value_free done [14:31:50]process_json_proto returns [14:31:50]Send response to host [14:31:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68430,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [14:31:50]free response buf [14:31:50]execute_script done [14:31:50]execute_script returns [14:31:50]free content buf [14:31:50]Sock 10.Close socket [14:31:50]Sock 10.Thread stoped [14:31:54]OFD Sender: No OFD packet to send [14:31:59]OFD Sender: No OFD packet to send [14:32:04]OFD Sender: No OFD packet to send [14:32:09]OFD Sender: No OFD packet to send [14:32:14]OFD Sender: No OFD packet to send [14:32:19]OFD Sender: No OFD packet to send [14:32:24]OFD Sender: No OFD packet to send [14:32:29]OFD Sender: No OFD packet to send [14:32:34]OFD Sender: No OFD packet to send [14:32:39]OFD Sender: No OFD packet to send [14:32:44]OFD Sender: No OFD packet to send [14:32:49]OFD Sender: No OFD packet to send [14:32:54]OFD Sender: No OFD packet to send [14:32:59]OFD Sender: No OFD packet to send [14:33:04]OFD Sender: No OFD packet to send [14:33:09]OFD Sender: No OFD packet to send [14:33:14]OFD Sender: No OFD packet to send [14:33:17]accept exits with 7 [14:33:17]New connection [14:33:17]New thread 3067276644 created [14:33:17]Thread 3067133284 joined [14:33:17]Waiting for new connection... [14:33:17] Sock 7.Parse request [14:33:17]Sock 7.Check first char [14:33:17]Sock 7.First char is OK [14:33:17]request: POST /json_proto HTTP/1.0 [14:33:17]Method: POST [14:33:17]URL: /json_proto [14:33:17]Method is POST - this is cgi request [14:33:17]url: /json_proto [14:33:17]query_string will be loaded in cgi processing [14:33:17]execute_cgi json_proto POST (null) [14:33:17]execute_cgi path=json_proto method=POST [14:33:17]POST find Content-Length [14:33:17]Host: 172.17.52.3:8080 [14:33:17]Content-Length: 674 [14:33:17]Content-Type: application/json [14:33:17] [14:33:17]POST finish read [14:33:17]Found Content-Length = 674 [14:33:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210428", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:17]execute_script... [14:33: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)210428", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:17]POST & json_proto [14:33:17]process_json_proto [14:33:17]json parsed OK: [14:33:17]protocol is kg_v1.0 [14:33:17]action value=close_receipt [14:33:17]process_action close_receipt [14:33:17]cmd_close_receipt [14:33:17]MH_GetDate [14:33:17]Write to MH i2c: F0 00 00 9A 34 BD [14:33:17]Write i2c OK [14:33:17]MH_I2C_Read... [14:33:17]Read from MH i2c: F0 [14:33:17]MH_I2C_Read... [14:33:17]Read from MH i2c: F0 09 00 [14:33:17]MH_I2C_Read... [14:33:17]Read from MH i2c: F0 09 00 9A 34 00 37 09 19 67 D7 68 A5 64 CE [14:33:17]GetLastDocTimeStamp 1729693915 [14:33:17]current date 1729694007 [14:33:17]FM_GetShiftState [14:33:17]SAM_PROTO_GetShiftState [14:33:17]wFMCommunicate request_size=4 [14:33:17]MH_SAM_APDU [14:33:17]CAPDU: 80 13 01 00 [14:33:17]Write to MH i2c: E2 08 00 9B 34 80 13 01 00 00 00 00 00 4C [14:33:17]Write i2c OK [14:33:17]MH_I2C_Read... [14:33:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:17]Read from MH i2c: E2 [14:33:17]MH_I2C_Read... [14:33:17]Read from MH i2c: E2 0E 00 [14:33:17]MH_I2C_Read... [14:33:17]Read from MH i2c: E2 0E 00 9B 34 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 BB [14:33:17]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [14:33:17]wFMCommunicate OK [14:33:17]SAM_PROTO_GetShiftState done [14:33:17]FM_GetShiftState done [14:33:17]opened in 1729641385 [14:33:17]opened+sec_in_day 1729727785 [14:33:17]quantity*price = 30022 [14:33:17]sum+1 = 30024 [14:33:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 54 23.10.2024 14:33 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68431 ФПД: 165211389665580 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143327&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68431&fm=165211389665580&tin=02508201610067®Number=0000000000091756&sum=30000 [14:33:19]StoreToDocumentArchive [14:33:19]shift 507 fd 68431 [14:33:19]save to /storage/0507/doc_00068431 [14:33:19]save last doc name /storage/0507/doc_00068431 to /storage/kkm_last_doc_name [14:33:19]save OK [14:33:19]Clear old archive folders... [14:33:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:33:19]tlvbuf is 02089210 [14:33:19]SAM_PROTO_ClearQueue [14:33:19]wFMCommunicate request_size=4 [14:33:19]MH_SAM_APDU [14:33:19]CAPDU: 80 09 00 00 [14:33:19]Write to MH i2c: E2 08 00 A8 34 80 09 00 00 00 00 00 00 4E [14:33:19]Write i2c OK [14:33:19]MH_I2C_Read... [14:33:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:19]Read from MH i2c: E2 [14:33:19]MH_I2C_Read... [14:33:19]Read from MH i2c: E2 03 00 [14:33:19]MH_I2C_Read... [14:33:19]Read from MH i2c: E2 03 00 A8 34 00 90 00 50 [14:33:19]RAPDU: 90 00 [14:33:19]wFMCommunicate OK [14:33:19]SAM_PROTO_ClearQueue done [14:33:19]KKMCreateOFDPacket [14:33:19]OFDProtocolAddRootSTLVToBuf [14:33:19]FM_MakeSignedData [14:33:19]FM_MakeSignedData [14:33:19]SAM_PROTO_SignData [14:33:19]wFMCommunicate request_size=4 [14:33:19]MH_SAM_APDU [14:33:19]CAPDU: 80 0D 01 02 [14:33:19]Write to MH i2c: E2 08 00 A9 34 80 0D 01 02 00 00 00 00 56 [14:33:19]Write i2c OK [14:33:19]MH_I2C_Read... [14:33:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:19]Read from MH i2c: E2 [14:33:19]MH_I2C_Read... [14:33:19]Read from MH i2c: E2 03 00 [14:33:19]MH_I2C_Read... [14:33:19]Read from MH i2c: E2 03 00 A9 34 00 90 00 51 [14:33:19]RAPDU: 90 00 [14:33:19]wFMCommunicate OK [14:33:19]wFMCommunicate request_size=255 [14:33:19]MH_SAM_APDU [14:33:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 37 09 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 4F 0B 01 00 35 04 06 00 96 42 46 31 [14:33:19]Write to MH i2c: E2 02 01 AA 34 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 37 09 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 4F 0B 01 00 35 04 06 00 96 42 46 31 00 00 35 [14:33:19]Write i2c OK [14:33:19]MH_I2C_Read... [14:33:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:19]Read from MH i2c: E2 [14:33:19]MH_I2C_Read... [14:33:19]Read from MH i2c: E2 03 00 [14:33:19]MH_I2C_Read... [14:33:19]Read from MH i2c: E2 03 00 AA 34 00 90 00 52 [14:33:19]RAPDU: 90 00 [14:33:19]wFMCommunicate OK [14:33:19]wFMCommunicate request_size=7 [14:33:19]MH_SAM_APDU [14:33:19]CAPDU: 80 0D 02 02 02 A1 2C [14:33:19]Write to MH i2c: E2 0A 00 AB 34 80 0D 02 02 02 00 A1 2C 00 00 2A [14:33:19]Write i2c OK [14:33:19]MH_I2C_Read... [14:33:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:19]Read from MH i2c: E2 [14:33:19]MH_I2C_Read... [14:33:19]Read from MH i2c: E2 03 00 [14:33:19]MH_I2C_Read... [14:33:19]Read from MH i2c: E2 03 00 AB 34 00 90 00 53 [14:33:19]RAPDU: 90 00 [14:33:19]wFMCommunicate OK [14:33:19]wFMCommunicate request_size=4 [14:33:19]MH_SAM_APDU [14:33:19]CAPDU: 80 0D 03 02 [14:33:19]Write to MH i2c: E2 08 00 AC 34 80 0D 03 02 00 00 00 00 5B [14:33:19]Write i2c OK [14:33:19]MH_I2C_Read... [14:33:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:19]Read from MH i2c: E2 [14:33:19]MH_I2C_Read... [14:33:19]Read from MH i2c: E2 0B 00 [14:33:19]MH_I2C_Read... [14:33:19]Read from MH i2c: E2 0B 00 AC 34 00 B5 4F EE E2 1E 48 98 E1 90 00 0F [14:33:19]RAPDU: B5 4F EE E2 1E 48 98 E1 90 00 [14:33:19]wFMCommunicate OK [14:33:19]SAM_PROTO_SignData done [14:33:19]FM_MakeSignedData done [14:33:19]CreateOFDProtocolMessage [14:33:19]wFMCommunicate request_size=4 [14:33:19]MH_SAM_APDU [14:33:19]CAPDU: 80 11 00 00 [14:33:19]Write to MH i2c: E2 08 00 AD 34 80 11 00 00 00 00 00 00 5B [14:33:19]Write i2c OK [14:33:19]MH_I2C_Read... [14:33:19]OFD Sender: No OFD packet to send [14:33:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:19]Read from MH i2c: E2 [14:33:19]MH_I2C_Read... [14:33:19]Read from MH i2c: E2 17 00 [14:33:19]MH_I2C_Read... [14:33:19]Read from MH i2c: E2 17 00 AD 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 AF [14:33:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [14:33:19]wFMCommunicate OK [14:33:19]CreateOFDProtocolMessage done [14:33:19]OFDSenderStorePacket 68431 [14:33:19]StoreOFDPacket docnum=68431 [14:33:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0C 01 00 00 88 D4 04 01 05 0C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 37 09 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 4F 0B 01 00 35 04 06 00 96 42 46 31 A1 2C B5 4F EE E2 1E 48 98 E1 [14:33:19]CheckFolder [14:33:19]dirname=/storage/ofd_packets [14:33:19]CheckFolder done [14:33:19]ProducePacketName [14:33:19]name=ofd_packets/00068431 [14:33:19]NVStorageSaveData ofd_packets/00068431 [14:33:19]File name is /storage/ofd_packets/00068431 [14:33:19]Write 298 bytes [14:33:19]NVStorageSaveData done [14:33:19]OFDSenderStorePacket done [14:33:19]KKMCreateOFDPacket done [14:33:19]NVStorageSaveData kkm_last_timestamp [14:33:19]File name is /storage/kkm_last_timestamp [14:33:19]Write 4 bytes [14:33:19]NVStorageSaveData done [14:33:19]ExternCall_PrintAddStr [14:33:19]wPrintStart [14:33:19]Write to MH i2c: 01 00 00 AE 34 E2 [14:33:19]Write i2c OK [14:33:19]MH_I2C_Read... [14:33:19]Read from MH i2c: 01 [14:33:19]MH_I2C_Read... [14:33:19]Read from MH i2c: 01 07 00 [14:33:19]MH_I2C_Read... [14:33:19]Read from MH i2c: 01 07 00 AE 34 00 04 00 00 00 FF 0F FB [14:33:19]RasterBufferAndPrint [14:33:19]line Счет N : (1)210428 [14:33:19]line ИНН: 02508201610067 [14:33:19]line Контрольно-Кассовый Чек [14:33:19]line ПРОДАЖА [14:33:19]line ТРК (МРК, ГНК) : 32 [14:33:19]line Товар: 2710194210 [14:33:19]line ДТ-К-2 [14:33:19]line 3.940 * 76.20 [14:33:19]line = 300.23 [14:33:19]line НДС 12% НСП 1% [14:33:19]line > о реализуемом товаре [14:33:19]line ОКРУГЛЕНИЕ: -0.23 [14:33:19]line ИТОГО: 300.00 [14:33:19]line Внесено: 300.00 [14:33:19]line СДАЧА: 0.00 [14:33:19]line НСП 1% : 2.66 [14:33:19]line НДС 12% : 31.88 [14:33:19]line Наличными: 300.00 [14:33:19]line Безнал.: 0.00 [14:33:19]line Место: АЗС № 147 "Партнер Нефть" [14:33:19]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [14:33:19]line СНО: Общий режим [14:33:19]line Чек 54 23.10.2024 14:33 [14:33:19]line Смена: 507 ФФД: 1.0 [14:33:19]line ЗНМ: 0300000094 [14:33:19]line РНМ: 0000000000091756 [14:33:19]line Версия ККМ: 001 [14:33:19]line ФМ: 0000000000871809 [14:33:19]line ФД: 68431 [14:33:19]line ФПД: 165211389665580 [14:33:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143327&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68431&fm=165211389665580&tin=02508201610067®Number=0000000000091756&sum=30000 [14:33:19]written 0, free lines is 4095 [14:33:19]OFD Sender: Processing packet 68431 [packets to send 8, broken 7] [14:33:19]ProducePacketName [14:33:19]name=ofd_packets/00068431 [14:33:19]OFD Sender: To server: pG, [14:33:19]CommunicateWithHost lk.salyk.kg:30040 [14:33:19]ConnectInit lk.salyk.kg [14:33:19]Connected sock=10 [14:33:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0C 01 00 00 88 D4 04 01 05 0C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 37 09 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 4F 0B 01 00 35 04 06 00 96 42 46 31 A1 2C B5 4F EE E2 1E 48 98 E1 [14:33:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 C9 28 47 00 1A 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 4F 0B 01 00 F4 03 04 00 2B AF 18 67 B6 04 01 00 00 67 C4 00 FA BB 9A E0 E9 [14:33:19]CommunicateWithHost err = 0 [14:33:19]CheckOFDResponse [14:33:19]1017 (14) - 77093643461234 [14:33:19]1041 (16) - 0000000000871809 [14:33:19]1040 (4) - 68431 [14:33:19]1012 (4) - 23.10.2024 08:09 [14:33:19]1206 (1) - 0 [14:33:19]OFD Sender: Remove packet 68431 [14:33:19]ProducePacketName [14:33:19]name=ofd_packets/00068431 [14:33:19]NVStorageDeleteData [14:33:20]Write to MH i2c: 01 00 00 D8 34 0C [14:33:20]Write i2c OK [14:33:20]MH_I2C_Read... [14:33:20]Read from MH i2c: 01 [14:33:20]MH_I2C_Read... [14:33:20]Read from MH i2c: 01 07 00 [14:33:20]MH_I2C_Read... [14:33:20]Read from MH i2c: 01 07 00 D8 34 00 04 00 00 00 B3 0C D6 [14:33:20]RasterBufferAndPrint [14:33:20]line [14:33:20]line [14:33:20]line [14:33:20]line [14:33:20]line [14:33:20]written 0, free lines is 3257 [14:33:20]MH_Cut [14:33:20]Write to MH i2c: D1 01 00 DF 34 01 E5 [14:33:20]Write i2c OK [14:33:20]MH_I2C_Read... [14:33:20]Read from MH i2c: D1 [14:33:20]MH_I2C_Read... [14:33:20]Read from MH i2c: D1 01 00 [14:33:20]MH_I2C_Read... [14:33:20]Read from MH i2c: D1 01 00 DF 34 00 E4 [14:33:20]Write to MH i2c: 01 00 00 E0 34 14 [14:33:20]Write i2c OK [14:33:20]MH_I2C_Read... [14:33:20]OFD Sender: No OFD packet to send [14:33:20]*** Cut start [14:33:20]*** Partial cut [14:33:20]*** CUTSNS_PIN = 1 [14:33:20]*** CUTSNS_PIN = 0 [14:33:21]*** Brake cut motor [14:33:21]Read from MH i2c: 01 [14:33:21]MH_I2C_Read... [14:33:21]*** Stop cut motor [14:33:21]*** Cut end [14:33:21]Read from MH i2c: 01 07 00 [14:33:21]MH_I2C_Read... [14:33:21]Read from MH i2c: 01 07 00 E0 34 00 04 00 00 00 FF 0F 2D [14:33:21]process_action close_receipt done [14:33:21]requested_data is exist [14:33:21]produce_requested_data [14:33:21]requested_item fm.sn is exist - process it [14:33:21]wFMCommunicate request_size=4 [14:33:21]MH_SAM_APDU [14:33:21]CAPDU: 80 11 00 00 [14:33:21]Write to MH i2c: E2 08 00 E1 34 80 11 00 00 00 00 00 00 8F [14:33:21]Write i2c OK [14:33:21]MH_I2C_Read... [14:33:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:21]Read from MH i2c: E2 [14:33:21]MH_I2C_Read... [14:33:21]Read from MH i2c: E2 17 00 [14:33:21]MH_I2C_Read... [14:33:21]Read from MH i2c: E2 17 00 E1 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 E3 [14:33:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [14:33:21]wFMCommunicate OK [14:33:21]requested_item fd.num is exist - process it [14:33:21]SAM_PROTO_GetFieldsCounters [14:33:21]wFMCommunicate request_size=4 [14:33:21]MH_SAM_APDU [14:33:21]CAPDU: 80 13 00 00 [14:33:21]Write to MH i2c: E2 08 00 E2 34 80 13 00 00 00 00 00 00 92 [14:33:21]Write i2c OK [14:33:21]MH_I2C_Read... [14:33:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:21]Read from MH i2c: E2 [14:33:21]MH_I2C_Read... [14:33:21]Read from MH i2c: E2 62 00 [14:33:21]MH_I2C_Read... [14:33:21]Read from MH i2c: E2 62 00 E2 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 4F 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [14:33:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 4F 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:33:21]wFMCommunicate OK [14:33:21]SAM_PROTO_GetFieldsCounters done [14:33:21]requested_item shift.num is exist - process it [14:33:21]requested_item shift.opened is exist - process it [14:33:21]req_shift_opened [14:33:21]FM_GetShiftState [14:33:21]SAM_PROTO_GetShiftState [14:33:21]wFMCommunicate request_size=4 [14:33:21]MH_SAM_APDU [14:33:21]CAPDU: 80 13 01 00 [14:33:21]Write to MH i2c: E2 08 00 E3 34 80 13 01 00 00 00 00 00 94 [14:33:21]Write i2c OK [14:33:21]MH_I2C_Read... [14:33:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:21]Read from MH i2c: E2 [14:33:21]MH_I2C_Read... [14:33:21]Read from MH i2c: E2 0E 00 [14:33:21]MH_I2C_Read... [14:33:21]Read from MH i2c: E2 0E 00 E3 34 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 03 [14:33:21]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [14:33:21]wFMCommunicate OK [14:33:21]SAM_PROTO_GetShiftState done [14:33:21]FM_GetShiftState done [14:33:21]req_shift_opened done [14:33:21]requested_item shift.open_date is exist - process it [14:33:21]req_shift_open_date [14:33:21]req_shift_open_date done [14:33:21]produce_requested_data done [14:33:21]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68431,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [14:33:21]process_action_free close_receipt [14:33:21]json_value_free [14:33:21]json_value_free done [14:33:21]process_json_proto returns [14:33:21]Send response to host [14:33:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68431,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [14:33:21]free response buf [14:33:21]execute_script done [14:33:21]execute_script returns [14:33:21]free content buf [14:33:21]Sock 7.Close socket [14:33:21]Sock 7.Thread stoped [14:33:23]accept exits with 9 [14:33:23]New connection [14:33:23]New thread 3067133284 created [14:33:23]Thread 3067276644 joined [14:33:23]Waiting for new connection... [14:33:23] Sock 9.Parse request [14:33:23]Sock 9.Check first char [14:33:23]Sock 9.First char is OK [14:33:23]request: POST /json_proto HTTP/1.0 [14:33:23]Method: POST [14:33:23]URL: /json_proto [14:33:23]Method is POST - this is cgi request [14:33:23]url: /json_proto [14:33:23]query_string will be loaded in cgi processing [14:33:23]execute_cgi json_proto POST (null) [14:33:23]execute_cgi path=json_proto method=POST [14:33:23]POST find Content-Length [14:33:23]Host: 172.17.52.3:8080 [14:33:23]Content-Length: 677 [14:33:23]Content-Type: application/json [14:33:23] [14:33:23]POST finish read [14:33:23]Found Content-Length = 677 [14:33:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:23]execute_script... [14:33:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:23]POST & json_proto [14:33:23]process_json_proto [14:33:23]json parsed OK: [14:33:23]protocol is kg_v1.0 [14:33:23]action value=close_receipt [14:33:23]process_action close_receipt [14:33:23]cmd_close_receipt [14:33:23]MH_GetDate [14:33:23]Write to MH i2c: F0 00 00 E4 34 07 [14:33:23]Write i2c OK [14:33:23]MH_I2C_Read... [14:33:23]Read from MH i2c: F0 [14:33:23]MH_I2C_Read... [14:33:23]Read from MH i2c: F0 09 00 [14:33:23]MH_I2C_Read... [14:33:23]Read from MH i2c: F0 09 00 E4 34 00 3C 09 19 67 D7 68 A5 64 1D [14:33:23]GetLastDocTimeStamp 1729694007 [14:33:23]current date 1729694012 [14:33:23]FM_GetShiftState [14:33:23]SAM_PROTO_GetShiftState [14:33:23]wFMCommunicate request_size=4 [14:33:23]MH_SAM_APDU [14:33:23]CAPDU: 80 13 01 00 [14:33:23]Write to MH i2c: E2 08 00 E5 34 80 13 01 00 00 00 00 00 96 [14:33:23]Write i2c OK [14:33:23]MH_I2C_Read... [14:33:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:23]Read from MH i2c: E2 [14:33:23]MH_I2C_Read... [14:33:23]Read from MH i2c: E2 0E 00 [14:33:23]MH_I2C_Read... [14:33:23]Read from MH i2c: E2 0E 00 E5 34 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 05 [14:33:23]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [14:33:23]wFMCommunicate OK [14:33:23]SAM_PROTO_GetShiftState done [14:33:23]FM_GetShiftState done [14:33:23]opened in 1729641385 [14:33:23]opened+sec_in_day 1729727785 [14:33:23]quantity*price = 50041 [14:33:23]sum+1 = 50042 [14:33:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 55 23.10.2024 14:33 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68432 ФПД: 180374643373754 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143332&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68432&fm=180374643373754&tin=02508201610067®Number=0000000000091756&sum=50000 [14:33:24]StoreToDocumentArchive [14:33:24]shift 507 fd 68432 [14:33:24]save to /storage/0507/doc_00068432 [14:33:24]save last doc name /storage/0507/doc_00068432 to /storage/kkm_last_doc_name [14:33:24]save OK [14:33:24]Clear old archive folders... [14:33:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:33:24]tlvbuf is 020D08D0 [14:33:24]SAM_PROTO_ClearQueue [14:33:24]wFMCommunicate request_size=4 [14:33:24]MH_SAM_APDU [14:33:24]CAPDU: 80 09 00 00 [14:33:24]Write to MH i2c: E2 08 00 F2 34 80 09 00 00 00 00 00 00 98 [14:33:24]Write i2c OK [14:33:24]MH_I2C_Read... [14:33:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:24]Read from MH i2c: E2 [14:33:24]MH_I2C_Read... [14:33:24]Read from MH i2c: E2 03 00 [14:33:24]MH_I2C_Read... [14:33:24]Read from MH i2c: E2 03 00 F2 34 00 90 00 9A [14:33:24]RAPDU: 90 00 [14:33:24]wFMCommunicate OK [14:33:24]SAM_PROTO_ClearQueue done [14:33:24]KKMCreateOFDPacket [14:33:24]OFDProtocolAddRootSTLVToBuf [14:33:24]FM_MakeSignedData [14:33:24]FM_MakeSignedData [14:33:24]SAM_PROTO_SignData [14:33:24]wFMCommunicate request_size=4 [14:33:24]MH_SAM_APDU [14:33:24]CAPDU: 80 0D 01 02 [14:33:24]Write to MH i2c: E2 08 00 F3 34 80 0D 01 02 00 00 00 00 A0 [14:33:24]Write i2c OK [14:33:24]MH_I2C_Read... [14:33:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:24]Read from MH i2c: E2 [14:33:24]MH_I2C_Read... [14:33:24]Read from MH i2c: E2 03 00 [14:33:24]MH_I2C_Read... [14:33:24]Read from MH i2c: E2 03 00 F3 34 00 90 00 9B [14:33:24]RAPDU: 90 00 [14:33:24]wFMCommunicate OK [14:33:24]wFMCommunicate request_size=255 [14:33:24]MH_SAM_APDU [14:33: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 3C 09 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 50 0B 01 00 35 04 06 00 A4 [14:33:24]Write to MH i2c: E2 02 01 F4 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 3C 09 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 50 0B 01 00 35 04 06 00 A4 00 00 28 [14:33:24]Write i2c OK [14:33:24]MH_I2C_Read... [14:33:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:24]Read from MH i2c: E2 [14:33:24]MH_I2C_Read... [14:33:24]Read from MH i2c: E2 03 00 [14:33:24]MH_I2C_Read... [14:33:24]Read from MH i2c: E2 03 00 F4 34 00 90 00 9C [14:33:24]RAPDU: 90 00 [14:33:24]wFMCommunicate OK [14:33:24]wFMCommunicate request_size=10 [14:33:24]MH_SAM_APDU [14:33:24]CAPDU: 80 0D 02 02 05 0C BE 8B 76 BA [14:33:24]Write to MH i2c: E2 0D 00 F5 34 80 0D 02 02 05 00 0C BE 8B 76 BA 00 00 32 [14:33:24]Write i2c OK [14:33:24]MH_I2C_Read... [14:33:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:24]Read from MH i2c: E2 [14:33:24]MH_I2C_Read... [14:33:24]Read from MH i2c: E2 03 00 [14:33:24]MH_I2C_Read... [14:33:24]Read from MH i2c: E2 03 00 F5 34 00 90 00 9D [14:33:24]RAPDU: 90 00 [14:33:24]wFMCommunicate OK [14:33:24]wFMCommunicate request_size=4 [14:33:24]MH_SAM_APDU [14:33:24]CAPDU: 80 0D 03 02 [14:33:24]Write to MH i2c: E2 08 00 F6 34 80 0D 03 02 00 00 00 00 A5 [14:33:24]Write i2c OK [14:33:24]MH_I2C_Read... [14:33:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:24]Read from MH i2c: E2 [14:33:24]MH_I2C_Read... [14:33:24]Read from MH i2c: E2 0B 00 [14:33:24]MH_I2C_Read... [14:33:24]Read from MH i2c: E2 0B 00 F6 34 00 F3 FA 85 F2 9B CE B3 BB 90 00 E1 [14:33:24]RAPDU: F3 FA 85 F2 9B CE B3 BB 90 00 [14:33:24]wFMCommunicate OK [14:33:24]SAM_PROTO_SignData done [14:33:24]FM_MakeSignedData done [14:33:24]CreateOFDProtocolMessage [14:33:24]wFMCommunicate request_size=4 [14:33:24]MH_SAM_APDU [14:33:24]CAPDU: 80 11 00 00 [14:33:24]Write to MH i2c: E2 08 00 F7 34 80 11 00 00 00 00 00 00 A5 [14:33:24]Write i2c OK [14:33:24]MH_I2C_Read... [14:33:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:25]Read from MH i2c: E2 [14:33:25]MH_I2C_Read... [14:33:25]Read from MH i2c: E2 17 00 [14:33:25]MH_I2C_Read... [14:33:25]Read from MH i2c: E2 17 00 F7 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 F9 [14:33:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [14:33:25]wFMCommunicate OK [14:33:25]CreateOFDProtocolMessage done [14:33:25]OFDSenderStorePacket 68432 [14:33:25]StoreOFDPacket docnum=68432 [14:33:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 BE 11 07 01 F6 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 3C 09 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 50 0B 01 00 35 04 06 00 A4 0C BE 8B 76 BA F3 FA 85 F2 9B CE B3 BB [14:33:25]CheckFolder [14:33:25]dirname=/storage/ofd_packets [14:33:25]CheckFolder done [14:33:25]ProducePacketName [14:33:25]name=ofd_packets/00068432 [14:33:25]NVStorageSaveData ofd_packets/00068432 [14:33:25]File name is /storage/ofd_packets/00068432 [14:33:25]Write 301 bytes [14:33:25]NVStorageSaveData done [14:33:25]OFDSenderStorePacket done [14:33:25]KKMCreateOFDPacket done [14:33:25]NVStorageSaveData kkm_last_timestamp [14:33:25]File name is /storage/kkm_last_timestamp [14:33:25]Write 4 bytes [14:33:25]NVStorageSaveData done [14:33:25]ExternCall_PrintAddStr [14:33:25]wPrintStart [14:33:25]Write to MH i2c: 01 00 00 F8 34 2C [14:33:25]Write i2c OK [14:33:25]MH_I2C_Read... [14:33:25]Read from MH i2c: 01 [14:33:25]MH_I2C_Read... [14:33:25]Read from MH i2c: 01 07 00 [14:33:25]MH_I2C_Read... [14:33:25]Read from MH i2c: 01 07 00 F8 34 00 04 00 00 00 FF 0F 45 [14:33:25]RasterBufferAndPrint [14:33:25]line Счет N : (1)210429 [14:33:25]line ИНН: 02508201610067 [14:33:25]line Контрольно-Кассовый Чек [14:33:25]line ПРОДАЖА [14:33:25]line ТРК (МРК, ГНК) : 11 [14:33:25]line Товар: 2710124130 [14:33:25]line Аи-92-К-2 [14:33:25]line 7.480 * 66.90 [14:33:25]line = 500.41 [14:33:25]line НДС 12% НСП 1% [14:33:25]line > о реализуемом товаре [14:33:25]line ОКРУГЛЕНИЕ: -0.41 [14:33:25]line ИТОГО: 500.00 [14:33:25]line Внесено: 500.00 [14:33:25]line СДАЧА: 0.00 [14:33:25]line НСП 1% : 4.43 [14:33:25]line НДС 12% : 53.14 [14:33:25]line Наличными: 500.00 [14:33:25]line Безнал.: 0.00 [14:33:25]line Место: АЗС № 147 "Партнер Нефть" [14:33:25]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [14:33:25]line СНО: Общий режим [14:33:25]line Чек 55 23.10.2024 14:33 [14:33:25]line Смена: 507 ФФД: 1.0 [14:33:25]line ЗНМ: 0300000094 [14:33:25]line РНМ: 0000000000091756 [14:33:25]line Версия ККМ: 001 [14:33:25]line ФМ: 0000000000871809 [14:33:25]line ФД: 68432 [14:33:25]line ФПД: 180374643373754 [14:33:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143332&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68432&fm=180374643373754&tin=02508201610067®Number=0000000000091756&sum=50000 [14:33:25]written 0, free lines is 4095 [14:33:25]OFD Sender: Processing packet 68432 [packets to send 8, broken 7] [14:33:25]ProducePacketName [14:33:25]name=ofd_packets/00068432 [14:33:25]OFD Sender: To server: pG, [14:33:25]CommunicateWithHost lk.salyk.kg:30040 [14:33:25]ConnectInit lk.salyk.kg [14:33:25]Connected sock=10 [14:33:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 BE 11 07 01 F6 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 3C 09 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 50 0B 01 00 35 04 06 00 A4 0C BE 8B 76 BA F3 FA 85 F2 9B CE B3 BB [14:33:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 06 4E 47 00 47 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 50 0B 01 00 F4 03 04 00 31 AF 18 67 B6 04 01 00 00 9F 1F 22 F7 9C 70 96 48 [14:33:25]CommunicateWithHost err = 0 [14:33:25]CheckOFDResponse [14:33:25]1017 (14) - 77093643461234 [14:33:25]1041 (16) - 0000000000871809 [14:33:25]1040 (4) - 68432 [14:33:25]1012 (4) - 23.10.2024 08:09 [14:33:25]1206 (1) - 0 [14:33:25]OFD Sender: Remove packet 68432 [14:33:25]ProducePacketName [14:33:25]name=ofd_packets/00068432 [14:33:25]NVStorageDeleteData [14:33:25]Write to MH i2c: 01 00 00 22 35 57 [14:33:25]Write i2c OK [14:33:25]MH_I2C_Read... [14:33:25]Read from MH i2c: 01 [14:33:25]MH_I2C_Read... [14:33:25]Read from MH i2c: 01 07 00 [14:33:25]MH_I2C_Read... [14:33:25]Read from MH i2c: 01 07 00 22 35 00 04 00 00 00 B3 0C 21 [14:33:25]RasterBufferAndPrint [14:33:25]line [14:33:25]line [14:33:25]line [14:33:25]line [14:33:25]line [14:33:25]written 0, free lines is 3265 [14:33:25]MH_Cut [14:33:25]Write to MH i2c: D1 01 00 29 35 01 30 [14:33:25]Write i2c OK [14:33:25]MH_I2C_Read... [14:33:25]Read from MH i2c: D1 [14:33:25]MH_I2C_Read... [14:33:25]Read from MH i2c: D1 01 00 [14:33:25]MH_I2C_Read... [14:33:25]Read from MH i2c: D1 01 00 29 35 00 2F [14:33:25]Write to MH i2c: 01 00 00 2A 35 5F [14:33:25]Write i2c OK [14:33:25]MH_I2C_Read... [14:33:25]OFD Sender: No OFD packet to send [14:33:26]*** Cut start [14:33:26]*** Partial cut [14:33:26]*** CUTSNS_PIN = 1 [14:33:26]*** CUTSNS_PIN = 0 [14:33:26]*** Brake cut motor [14:33:26]Read from MH i2c: 01 [14:33:26]MH_I2C_Read... [14:33:26]*** Stop cut motor [14:33:26]*** Cut end [14:33:26]Read from MH i2c: 01 07 00 [14:33:26]MH_I2C_Read... [14:33:26]Read from MH i2c: 01 07 00 2A 35 00 04 00 00 00 FF 0F 78 [14:33:26]process_action close_receipt done [14:33:26]requested_data is exist [14:33:26]produce_requested_data [14:33:26]requested_item fm.sn is exist - process it [14:33:26]wFMCommunicate request_size=4 [14:33:26]MH_SAM_APDU [14:33:26]CAPDU: 80 11 00 00 [14:33:26]Write to MH i2c: E2 08 00 2B 35 80 11 00 00 00 00 00 00 DA [14:33:26]Write i2c OK [14:33:26]MH_I2C_Read... [14:33:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:26]Read from MH i2c: E2 [14:33:26]MH_I2C_Read... [14:33:26]Read from MH i2c: E2 17 00 [14:33:26]MH_I2C_Read... [14:33:26]Read from MH i2c: E2 17 00 2B 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 2E [14:33:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [14:33:26]wFMCommunicate OK [14:33:26]requested_item fd.num is exist - process it [14:33:26]SAM_PROTO_GetFieldsCounters [14:33:26]wFMCommunicate request_size=4 [14:33:26]MH_SAM_APDU [14:33:26]CAPDU: 80 13 00 00 [14:33:26]Write to MH i2c: E2 08 00 2C 35 80 13 00 00 00 00 00 00 DD [14:33:26]Write i2c OK [14:33:26]MH_I2C_Read... [14:33:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:27]Read from MH i2c: E2 [14:33:27]MH_I2C_Read... [14:33:27]Read from MH i2c: E2 62 00 [14:33:27]MH_I2C_Read... [14:33:27]Read from MH i2c: E2 62 00 2C 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 50 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [14:33:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 50 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:33:27]wFMCommunicate OK [14:33:27]SAM_PROTO_GetFieldsCounters done [14:33:27]requested_item shift.num is exist - process it [14:33:27]requested_item shift.opened is exist - process it [14:33:27]req_shift_opened [14:33:27]FM_GetShiftState [14:33:27]SAM_PROTO_GetShiftState [14:33:27]wFMCommunicate request_size=4 [14:33:27]MH_SAM_APDU [14:33:27]CAPDU: 80 13 01 00 [14:33:27]Write to MH i2c: E2 08 00 2D 35 80 13 01 00 00 00 00 00 DF [14:33:27]Write i2c OK [14:33:27]MH_I2C_Read... [14:33:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:27]Read from MH i2c: E2 [14:33:27]MH_I2C_Read... [14:33:27]Read from MH i2c: E2 0E 00 [14:33:27]MH_I2C_Read... [14:33:27]Read from MH i2c: E2 0E 00 2D 35 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 4E [14:33:27]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [14:33:27]wFMCommunicate OK [14:33:27]SAM_PROTO_GetShiftState done [14:33:27]FM_GetShiftState done [14:33:27]req_shift_opened done [14:33:27]requested_item shift.open_date is exist - process it [14:33:27]req_shift_open_date [14:33:27]req_shift_open_date done [14:33:27]produce_requested_data done [14:33:27]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68432,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [14:33:27]process_action_free close_receipt [14:33:27]json_value_free [14:33:27]json_value_free done [14:33:27]process_json_proto returns [14:33:27]Send response to host [14:33:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68432,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [14:33:27]free response buf [14:33:27]execute_script done [14:33:27]execute_script returns [14:33:27]free content buf [14:33:27]Sock 9.Close socket [14:33:27]Sock 9.Thread stoped [14:33:30]OFD Sender: No OFD packet to send [14:33:35]OFD Sender: No OFD packet to send [14:33:40]OFD Sender: No OFD packet to send [14:33:45]OFD Sender: No OFD packet to send [14:33:50]OFD Sender: No OFD packet to send [14:33:55]OFD Sender: No OFD packet to send [14:34:00]OFD Sender: No OFD packet to send [14:34:05]OFD Sender: No OFD packet to send [14:34:10]OFD Sender: No OFD packet to send [14:34:15]OFD Sender: No OFD packet to send [14:34:20]OFD Sender: No OFD packet to send [14:34:25]OFD Sender: No OFD packet to send [14:34:30]OFD Sender: No OFD packet to send [14:34:34]accept exits with 7 [14:34:34]New connection [14:34:34]New thread 3067276644 created [14:34:34]Thread 3067133284 joined [14:34:34]Waiting for new connection... [14:34:34] Sock 7.Parse request [14:34:34]Sock 7.Check first char [14:34:34]Sock 7.First char is OK [14:34:34]request: POST /json_proto HTTP/1.0 [14:34:34]Method: POST [14:34:34]URL: /json_proto [14:34:34]Method is POST - this is cgi request [14:34:34]url: /json_proto [14:34:34]query_string will be loaded in cgi processing [14:34:34]execute_cgi json_proto POST (null) [14:34:34]execute_cgi path=json_proto method=POST [14:34:34]POST find Content-Length [14:34:34]Host: 172.17.52.3:8080 [14:34:34]Content-Length: 677 [14:34:34]Content-Type: application/json [14:34:34] [14:34:34]POST finish read [14:34:34]Found Content-Length = 677 [14:34:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:34]execute_script... [14:34: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)210430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:34]POST & json_proto [14:34:34]process_json_proto [14:34:34]json parsed OK: [14:34:34]protocol is kg_v1.0 [14:34:34]action value=close_receipt [14:34:34]process_action close_receipt [14:34:34]cmd_close_receipt [14:34:34]MH_GetDate [14:34:34]Write to MH i2c: F0 00 00 2E 35 52 [14:34:34]Write i2c OK [14:34:34]MH_I2C_Read... [14:34:34]Read from MH i2c: F0 [14:34:34]MH_I2C_Read... [14:34:34]Read from MH i2c: F0 09 00 [14:34:34]MH_I2C_Read... [14:34:34]Read from MH i2c: F0 09 00 2E 35 00 83 09 19 67 D7 68 A5 64 AF [14:34:34]GetLastDocTimeStamp 1729694012 [14:34:34]current date 1729694083 [14:34:34]FM_GetShiftState [14:34:34]SAM_PROTO_GetShiftState [14:34:34]wFMCommunicate request_size=4 [14:34:34]MH_SAM_APDU [14:34:34]CAPDU: 80 13 01 00 [14:34:34]Write to MH i2c: E2 08 00 2F 35 80 13 01 00 00 00 00 00 E1 [14:34:34]Write i2c OK [14:34:34]MH_I2C_Read... [14:34:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:34]Read from MH i2c: E2 [14:34:34]MH_I2C_Read... [14:34:34]Read from MH i2c: E2 0E 00 [14:34:34]MH_I2C_Read... [14:34:34]Read from MH i2c: E2 0E 00 2F 35 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 50 [14:34:34]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [14:34:34]wFMCommunicate OK [14:34:34]SAM_PROTO_GetShiftState done [14:34:34]FM_GetShiftState done [14:34:34]opened in 1729641385 [14:34:34]opened+sec_in_day 1729727785 [14:34:34]quantity*price = 50041 [14:34:34]sum+1 = 50042 [14:34:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 56 23.10.2024 14:34 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68433 ФПД: 140803293746585 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143444&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68433&fm=140803293746585&tin=02508201610067®Number=0000000000091756&sum=50000 [14:34:35]StoreToDocumentArchive [14:34:35]shift 507 fd 68433 [14:34:35]save to /storage/0507/doc_00068433 [14:34:35]save last doc name /storage/0507/doc_00068433 to /storage/kkm_last_doc_name [14:34:35]save OK [14:34:35]Clear old archive folders... [14:34:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:34:35]tlvbuf is 01FC9C20 [14:34:35]SAM_PROTO_ClearQueue [14:34:35]wFMCommunicate request_size=4 [14:34:35]MH_SAM_APDU [14:34:35]CAPDU: 80 09 00 00 [14:34:35]Write to MH i2c: E2 08 00 3C 35 80 09 00 00 00 00 00 00 E3 [14:34:35]Write i2c OK [14:34:35]MH_I2C_Read... [14:34:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:34:35]Read from MH i2c: E2 [14:34:35]MH_I2C_Read... [14:34:35]Read from MH i2c: E2 03 00 [14:34:35]MH_I2C_Read... [14:34:35]Read from MH i2c: E2 03 00 3C 35 00 90 00 E5 [14:34:35]RAPDU: 90 00 [14:34:35]wFMCommunicate OK [14:34:35]SAM_PROTO_ClearQueue done [14:34:35]KKMCreateOFDPacket [14:34:35]OFDProtocolAddRootSTLVToBuf [14:34:35]FM_MakeSignedData [14:34:35]FM_MakeSignedData [14:34:35]SAM_PROTO_SignData [14:34:35]wFMCommunicate request_size=4 [14:34:35]MH_SAM_APDU [14:34:35]CAPDU: 80 0D 01 02 [14:34:35]Write to MH i2c: E2 08 00 3D 35 80 0D 01 02 00 00 00 00 EB [14:34:35]Write i2c OK [14:34:35]MH_I2C_Read... [14:34:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:34:36]Read from MH i2c: E2 [14:34:36]MH_I2C_Read... [14:34:36]Read from MH i2c: E2 03 00 [14:34:36]MH_I2C_Read... [14:34:36]Read from MH i2c: E2 03 00 3D 35 00 90 00 E6 [14:34:36]RAPDU: 90 00 [14:34:36]wFMCommunicate OK [14:34:36]wFMCommunicate request_size=255 [14:34:36]MH_SAM_APDU [14:34:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 38 00 00 00 F4 03 04 00 84 09 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 51 0B 01 00 35 04 06 00 80 [14:34:36]Write to MH i2c: E2 02 01 3E 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 38 00 00 00 F4 03 04 00 84 09 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 51 0B 01 00 35 04 06 00 80 00 00 99 [14:34:36]Write i2c OK [14:34:36]MH_I2C_Read... [14:34:36]OFD Sender: No OFD packet to send [14:34:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:36]Read from MH i2c: E2 [14:34:36]MH_I2C_Read... [14:34:36]Read from MH i2c: E2 03 00 [14:34:36]MH_I2C_Read... [14:34:36]Read from MH i2c: E2 03 00 3E 35 00 90 00 E7 [14:34:36]RAPDU: 90 00 [14:34:36]wFMCommunicate OK [14:34:36]wFMCommunicate request_size=10 [14:34:36]MH_SAM_APDU [14:34:36]CAPDU: 80 0D 02 02 05 0F 52 4E 95 99 [14:34:36]Write to MH i2c: E2 0D 00 3F 35 80 0D 02 02 05 00 0F 52 4E 95 99 00 00 D5 [14:34:36]Write i2c OK [14:34:36]MH_I2C_Read... [14:34:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:36]Read from MH i2c: E2 [14:34:36]MH_I2C_Read... [14:34:36]Read from MH i2c: E2 03 00 [14:34:36]MH_I2C_Read... [14:34:36]Read from MH i2c: E2 03 00 3F 35 00 90 00 E8 [14:34:36]RAPDU: 90 00 [14:34:36]wFMCommunicate OK [14:34:36]wFMCommunicate request_size=4 [14:34:36]MH_SAM_APDU [14:34:36]CAPDU: 80 0D 03 02 [14:34:36]Write to MH i2c: E2 08 00 40 35 80 0D 03 02 00 00 00 00 F0 [14:34:36]Write i2c OK [14:34:36]MH_I2C_Read... [14:34:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:34:36]Read from MH i2c: E2 [14:34:36]MH_I2C_Read... [14:34:36]Read from MH i2c: E2 0B 00 [14:34:36]MH_I2C_Read... [14:34:36]Read from MH i2c: E2 0B 00 40 35 00 B3 C7 72 AF 2A DC A0 F9 90 00 2B [14:34:36]RAPDU: B3 C7 72 AF 2A DC A0 F9 90 00 [14:34:36]wFMCommunicate OK [14:34:36]SAM_PROTO_SignData done [14:34:36]FM_MakeSignedData done [14:34:36]CreateOFDProtocolMessage [14:34:36]wFMCommunicate request_size=4 [14:34:36]MH_SAM_APDU [14:34:36]CAPDU: 80 11 00 00 [14:34:36]Write to MH i2c: E2 08 00 41 35 80 11 00 00 00 00 00 00 F0 [14:34:36]Write i2c OK [14:34:36]MH_I2C_Read... [14:34:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:36]Read from MH i2c: E2 [14:34:36]MH_I2C_Read... [14:34:36]Read from MH i2c: E2 17 00 [14:34:36]MH_I2C_Read... [14:34:36]Read from MH i2c: E2 17 00 41 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 44 [14:34:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [14:34:36]wFMCommunicate OK [14:34:36]CreateOFDProtocolMessage done [14:34:36]OFDSenderStorePacket 68433 [14:34:36]StoreOFDPacket docnum=68433 [14:34:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 E7 33 07 01 D1 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 38 00 00 00 F4 03 04 00 84 09 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 51 0B 01 00 35 04 06 00 80 0F 52 4E 95 99 B3 C7 72 AF 2A DC A0 F9 [14:34:36]CheckFolder [14:34:36]dirname=/storage/ofd_packets [14:34:36]CheckFolder done [14:34:36]ProducePacketName [14:34:36]name=ofd_packets/00068433 [14:34:36]NVStorageSaveData ofd_packets/00068433 [14:34:36]File name is /storage/ofd_packets/00068433 [14:34:36]Write 301 bytes [14:34:36]NVStorageSaveData done [14:34:36]OFDSenderStorePacket done [14:34:36]KKMCreateOFDPacket done [14:34:36]NVStorageSaveData kkm_last_timestamp [14:34:36]File name is /storage/kkm_last_timestamp [14:34:36]Write 4 bytes [14:34:36]NVStorageSaveData done [14:34:36]ExternCall_PrintAddStr [14:34:36]wPrintStart [14:34:36]Write to MH i2c: 01 00 00 42 35 77 [14:34:36]Write i2c OK [14:34:36]MH_I2C_Read... [14:34:36]Read from MH i2c: 01 [14:34:36]MH_I2C_Read... [14:34:36]Read from MH i2c: 01 07 00 [14:34:36]MH_I2C_Read... [14:34:36]Read from MH i2c: 01 07 00 42 35 00 04 00 00 00 FF 0F 90 [14:34:36]RasterBufferAndPrint [14:34:36]line Счет N : (1)210430 [14:34:36]line ИНН: 02508201610067 [14:34:36]line Контрольно-Кассовый Чек [14:34:36]line ПРОДАЖА [14:34:36]line ТРК (МРК, ГНК) : 11 [14:34:36]line Товар: 2710124130 [14:34:36]line Аи-92-К-2 [14:34:36]line 7.480 * 66.90 [14:34:36]line = 500.41 [14:34:36]line НДС 12% НСП 1% [14:34:36]line > о реализуемом товаре [14:34:36]line ОКРУГЛЕНИЕ: -0.41 [14:34:36]line ИТОГО: 500.00 [14:34:36]line Внесено: 500.00 [14:34:36]line СДАЧА: 0.00 [14:34:36]line НСП 1% : 4.43 [14:34:36]line НДС 12% : 53.14 [14:34:36]line Наличными: 500.00 [14:34:36]line Безнал.: 0.00 [14:34:36]line Место: АЗС № 147 "Партнер Нефть" [14:34:36]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [14:34:36]line СНО: Общий режим [14:34:36]line Чек 56 23.10.2024 14:34 [14:34:36]line Смена: 507 ФФД: 1.0 [14:34:36]line ЗНМ: 0300000094 [14:34:36]line РНМ: 0000000000091756 [14:34:36]line Версия ККМ: 001 [14:34:36]line ФМ: 0000000000871809 [14:34:36]line ФД: 68433 [14:34:36]line ФПД: 140803293746585 [14:34:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143444&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68433&fm=140803293746585&tin=02508201610067®Number=0000000000091756&sum=50000 [14:34:36]OFD Sender: Processing packet 68433 [packets to send 8, broken 7] [14:34:36]ProducePacketName [14:34:36]name=ofd_packets/00068433 [14:34:36]OFD Sender: To server: pG, [14:34:36]CommunicateWithHost lk.salyk.kg:30040 [14:34:36]ConnectInit lk.salyk.kg [14:34:36]written 0, free lines is 4095 [14:34:36]Connected sock=10 [14:34:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 E7 33 07 01 D1 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 38 00 00 00 F4 03 04 00 84 09 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 51 0B 01 00 35 04 06 00 80 0F 52 4E 95 99 B3 C7 72 AF 2A DC A0 F9 [14:34:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 F7 F7 47 00 0C E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 51 0B 01 00 F4 03 04 00 78 AF 18 67 B6 04 01 00 00 9D A7 F0 05 A5 5C FE 01 [14:34:37]CommunicateWithHost err = 0 [14:34:37]CheckOFDResponse [14:34:37]1017 (14) - 77093643461234 [14:34:37]1041 (16) - 0000000000871809 [14:34:37]1040 (4) - 68433 [14:34:37]1012 (4) - 23.10.2024 08:10 [14:34:37]1206 (1) - 0 [14:34:37]OFD Sender: Remove packet 68433 [14:34:37]ProducePacketName [14:34:37]name=ofd_packets/00068433 [14:34:37]NVStorageDeleteData [14:34:37]Write to MH i2c: 01 00 00 6C 35 A1 [14:34:37]Write i2c OK [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: 01 [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: 01 07 00 [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: 01 07 00 6C 35 00 04 00 00 00 B3 0C 6B [14:34:37]RasterBufferAndPrint [14:34:37]line [14:34:37]line [14:34:37]line [14:34:37]line [14:34:37]line [14:34:37]written 0, free lines is 3257 [14:34:37]MH_Cut [14:34:37]Write to MH i2c: D1 01 00 73 35 01 7A [14:34:37]Write i2c OK [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: D1 [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: D1 01 00 [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: D1 01 00 73 35 00 79 [14:34:37]Write to MH i2c: 01 00 00 74 35 A9 [14:34:37]Write i2c OK [14:34:37]MH_I2C_Read... [14:34:37]OFD Sender: No OFD packet to send [14:34:38]*** Cut start [14:34:38]*** Partial cut [14:34:38]*** CUTSNS_PIN = 1 [14:34:38]*** CUTSNS_PIN = 0 [14:34:38]*** Brake cut motor [14:34:38]Read from MH i2c: 01 [14:34:38]MH_I2C_Read... [14:34:38]*** Stop cut motor [14:34:38]*** Cut end [14:34:38]Read from MH i2c: 01 07 00 [14:34:38]MH_I2C_Read... [14:34:38]Read from MH i2c: 01 07 00 74 35 00 04 00 00 00 FF 0F C2 [14:34:38]process_action close_receipt done [14:34:38]requested_data is exist [14:34:38]produce_requested_data [14:34:38]requested_item fm.sn is exist - process it [14:34:38]wFMCommunicate request_size=4 [14:34:38]MH_SAM_APDU [14:34:38]CAPDU: 80 11 00 00 [14:34:38]Write to MH i2c: E2 08 00 75 35 80 11 00 00 00 00 00 00 24 [14:34:38]Write i2c OK [14:34:38]MH_I2C_Read... [14:34:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:38]Read from MH i2c: E2 [14:34:38]MH_I2C_Read... [14:34:38]Read from MH i2c: E2 17 00 [14:34:38]MH_I2C_Read... [14:34:38]Read from MH i2c: E2 17 00 75 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 78 [14:34:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [14:34:38]wFMCommunicate OK [14:34:38]requested_item fd.num is exist - process it [14:34:38]SAM_PROTO_GetFieldsCounters [14:34:38]wFMCommunicate request_size=4 [14:34:38]MH_SAM_APDU [14:34:38]CAPDU: 80 13 00 00 [14:34:38]Write to MH i2c: E2 08 00 76 35 80 13 00 00 00 00 00 00 27 [14:34:38]Write i2c OK [14:34:38]MH_I2C_Read... [14:34:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:34:38]Read from MH i2c: E2 [14:34:38]MH_I2C_Read... [14:34:38]Read from MH i2c: E2 62 00 [14:34:38]MH_I2C_Read... [14:34:38]Read from MH i2c: E2 62 00 76 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 51 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [14:34:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 51 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:34:38]wFMCommunicate OK [14:34:38]SAM_PROTO_GetFieldsCounters done [14:34:38]requested_item shift.num is exist - process it [14:34:38]requested_item shift.opened is exist - process it [14:34:38]req_shift_opened [14:34:38]FM_GetShiftState [14:34:38]SAM_PROTO_GetShiftState [14:34:38]wFMCommunicate request_size=4 [14:34:38]MH_SAM_APDU [14:34:38]CAPDU: 80 13 01 00 [14:34:38]Write to MH i2c: E2 08 00 77 35 80 13 01 00 00 00 00 00 29 [14:34:38]Write i2c OK [14:34:38]MH_I2C_Read... [14:34:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:38]Read from MH i2c: E2 [14:34:38]MH_I2C_Read... [14:34:38]Read from MH i2c: E2 0E 00 [14:34:38]MH_I2C_Read... [14:34:38]Read from MH i2c: E2 0E 00 77 35 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 98 [14:34:38]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [14:34:38]wFMCommunicate OK [14:34:38]SAM_PROTO_GetShiftState done [14:34:38]FM_GetShiftState done [14:34:38]req_shift_opened done [14:34:38]requested_item shift.open_date is exist - process it [14:34:38]req_shift_open_date [14:34:38]req_shift_open_date done [14:34:38]produce_requested_data done [14:34:38]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68433,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [14:34:38]process_action_free close_receipt [14:34:38]json_value_free [14:34:38]json_value_free done [14:34:38]process_json_proto returns [14:34:38]Send response to host [14:34:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68433,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [14:34:38]free response buf [14:34:38]execute_script done [14:34:38]execute_script returns [14:34:38]free content buf [14:34:38]Sock 7.Close socket [14:34:38]Sock 7.Thread stoped [14:34:42]OFD Sender: No OFD packet to send [14:34:47]OFD Sender: No OFD packet to send [14:34:52]OFD Sender: No OFD packet to send [14:34:57]OFD Sender: No OFD packet to send [14:35:02]OFD Sender: No OFD packet to send [14:35:07]OFD Sender: No OFD packet to send [14:35:12]OFD Sender: No OFD packet to send [14:35:17]OFD Sender: No OFD packet to send [14:35:22]OFD Sender: No OFD packet to send [14:35:27]OFD Sender: No OFD packet to send [14:35:32]OFD Sender: No OFD packet to send [14:35:37]OFD Sender: No OFD packet to send [14:35:42]OFD Sender: No OFD packet to send [14:35:47]OFD Sender: No OFD packet to send [14:35:52]OFD Sender: No OFD packet to send [14:35:57]OFD Sender: No OFD packet to send [14:36:02]OFD Sender: No OFD packet to send [14:36:07]OFD Sender: No OFD packet to send [14:36:12]OFD Sender: No OFD packet to send [14:36:17]OFD Sender: No OFD packet to send [14:36:22]OFD Sender: No OFD packet to send [14:36:27]OFD Sender: No OFD packet to send [14:36:32]OFD Sender: No OFD packet to send [14:36:37]OFD Sender: No OFD packet to send [14:36:42]OFD Sender: No OFD packet to send [14:36:47]OFD Sender: No OFD packet to send [14:36:52]OFD Sender: No OFD packet to send [14:36:57]OFD Sender: No OFD packet to send [14:37:02]OFD Sender: No OFD packet to send [14:37:07]OFD Sender: No OFD packet to send [14:37:12]OFD Sender: No OFD packet to send [14:37:17]OFD Sender: No OFD packet to send [14:37:22]OFD Sender: No OFD packet to send [14:37:27]OFD Sender: No OFD packet to send [14:37:32]OFD Sender: No OFD packet to send [14:37:37]OFD Sender: No OFD packet to send [14:37:42]OFD Sender: No OFD packet to send [14:37:47]OFD Sender: No OFD packet to send [14:37:52]OFD Sender: No OFD packet to send [14:37:57]OFD Sender: No OFD packet to send [14:38:02]OFD Sender: No OFD packet to send [14:38:07]OFD Sender: No OFD packet to send [14:38:12]OFD Sender: No OFD packet to send [14:38:17]OFD Sender: No OFD packet to send [14:38:22]OFD Sender: No OFD packet to send [14:38:27]OFD Sender: No OFD packet to send [14:38:32]OFD Sender: No OFD packet to send [14:38:37]OFD Sender: No OFD packet to send [14:38:42]OFD Sender: No OFD packet to send [14:38:47]OFD Sender: No OFD packet to send [14:38:52]OFD Sender: No OFD packet to send [14:38:57]OFD Sender: No OFD packet to send [14:39:02]OFD Sender: No OFD packet to send [14:39:07]OFD Sender: No OFD packet to send [14:39:12]OFD Sender: No OFD packet to send [14:39:17]OFD Sender: No OFD packet to send [14:39:22]OFD Sender: No OFD packet to send [14:39:27]OFD Sender: No OFD packet to send [14:39:32]OFD Sender: No OFD packet to send [14:39:37]OFD Sender: No OFD packet to send [14:39:42]OFD Sender: No OFD packet to send [14:39:47]OFD Sender: No OFD packet to send [14:39:52]OFD Sender: No OFD packet to send [14:39:57]OFD Sender: No OFD packet to send [14:40:02]OFD Sender: No OFD packet to send [14:40:07]OFD Sender: No OFD packet to send [14:40:12]OFD Sender: No OFD packet to send [14:40:17]OFD Sender: No OFD packet to send [14:40:22]OFD Sender: No OFD packet to send [14:40:27]OFD Sender: No OFD packet to send [14:40:32]OFD Sender: No OFD packet to send [14:40:37]OFD Sender: No OFD packet to send [14:40:42]OFD Sender: No OFD packet to send [14:40:47]OFD Sender: No OFD packet to send [14:40:52]OFD Sender: No OFD packet to send [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: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:28]OFD Sender: No OFD packet to send [14:42:33]OFD Sender: No OFD packet to send [14:42:38]OFD Sender: No OFD packet to send [14:42:43]OFD Sender: No OFD packet to send [14:42:48]OFD Sender: No OFD packet to send [14:42:53]OFD Sender: No OFD packet to send [14:42:58]OFD Sender: No OFD packet to send [14:43:03]OFD Sender: No OFD packet to send [14:43:08]OFD Sender: No OFD packet to send [14:43:13]OFD Sender: No OFD packet to send [14:43:18]OFD Sender: No OFD packet to send [14:43:23]OFD Sender: No OFD packet to send [14:43:28]OFD Sender: No OFD packet to send [14:43:33]OFD Sender: No OFD packet to send [14:43:38]OFD Sender: No OFD packet to send [14:43:43]OFD Sender: No OFD packet to send [14:43:48]OFD Sender: No OFD packet to send [14:43:53]OFD Sender: No OFD packet to send [14:43:58]OFD Sender: No OFD packet to send [14:44:03]OFD Sender: No OFD packet to send [14:44:08]OFD Sender: No OFD packet to send [14:44:13]OFD Sender: No OFD packet to send [14:44:18]OFD Sender: No OFD packet to send [14:44:23]OFD Sender: No OFD packet to send [14:44:28]OFD Sender: No OFD packet to send [14:44:33]OFD Sender: No OFD packet to send [14:44:38]OFD Sender: No OFD packet to send [14:44: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: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: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: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:32]accept exits with 9 [14:46:32]New connection [14:46:32]New thread 3067133284 created [14:46:32]Thread 3067276644 joined [14:46:32]Waiting for new connection... [14:46:32] Sock 9.Parse request [14:46:32]Sock 9.Check first char [14:46:32]Sock 9.First char is OK [14:46:32]request: POST /json_proto HTTP/1.0 [14:46:32]Method: POST [14:46:32]URL: /json_proto [14:46:32]Method is POST - this is cgi request [14:46:32]url: /json_proto [14:46:32]query_string will be loaded in cgi processing [14:46:32]execute_cgi json_proto POST (null) [14:46:32]execute_cgi path=json_proto method=POST [14:46:32]POST find Content-Length [14:46:32]Host: 172.17.52.3:8080 [14:46:32]Content-Length: 677 [14:46:32]Content-Type: application/json [14:46:32] [14:46:32]POST finish read [14:46:32]Found Content-Length = 677 [14:46:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:32]execute_script... [14:46: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)210431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:32]POST & json_proto [14:46:32]process_json_proto [14:46:32]json parsed OK: [14:46:32]protocol is kg_v1.0 [14:46:32]action value=close_receipt [14:46:32]process_action close_receipt [14:46:32]cmd_close_receipt [14:46:32]MH_GetDate [14:46:32]Write to MH i2c: F0 00 00 78 35 9C [14:46:32]Write i2c OK [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: F0 [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: F0 09 00 [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: F0 09 00 78 35 00 51 0C 19 67 D7 68 A5 64 CA [14:46:32]GetLastDocTimeStamp 1729694084 [14:46:32]current date 1729694801 [14:46:32]FM_GetShiftState [14:46:32]SAM_PROTO_GetShiftState [14:46:32]wFMCommunicate request_size=4 [14:46:32]MH_SAM_APDU [14:46:32]CAPDU: 80 13 01 00 [14:46:32]Write to MH i2c: E2 08 00 79 35 80 13 01 00 00 00 00 00 2B [14:46:32]Write i2c OK [14:46:32]MH_I2C_Read... [14:46:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:32]Read from MH i2c: E2 [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: E2 0E 00 [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: E2 0E 00 79 35 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 9A [14:46:32]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [14:46:32]wFMCommunicate OK [14:46:32]SAM_PROTO_GetShiftState done [14:46:32]FM_GetShiftState done [14:46:32]opened in 1729641385 [14:46:32]opened+sec_in_day 1729727785 [14:46:32]quantity*price = 60009 [14:46:32]sum+1 = 60010 [14:46:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 57 23.10.2024 14:46 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68434 ФПД: 39034577304051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144641&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68434&fm=39034577304051&tin=02508201610067®Number=0000000000091756&sum=60000 [14:46:33]StoreToDocumentArchive [14:46:33]shift 507 fd 68434 [14:46:33]save to /storage/0507/doc_00068434 [14:46:33]save last doc name /storage/0507/doc_00068434 to /storage/kkm_last_doc_name [14:46:33]save OK [14:46:33]Clear old archive folders... [14:46:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:46:33]tlvbuf is 01FE1CE0 [14:46:33]SAM_PROTO_ClearQueue [14:46:33]wFMCommunicate request_size=4 [14:46:33]MH_SAM_APDU [14:46:33]CAPDU: 80 09 00 00 [14:46:33]Write to MH i2c: E2 08 00 86 35 80 09 00 00 00 00 00 00 2D [14:46:33]Write i2c OK [14:46:33]MH_I2C_Read... [14:46:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:33]Read from MH i2c: E2 [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: E2 03 00 [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: E2 03 00 86 35 00 90 00 2F [14:46:33]RAPDU: 90 00 [14:46:33]wFMCommunicate OK [14:46:33]SAM_PROTO_ClearQueue done [14:46:33]KKMCreateOFDPacket [14:46:33]OFDProtocolAddRootSTLVToBuf [14:46:33]FM_MakeSignedData [14:46:33]FM_MakeSignedData [14:46:33]SAM_PROTO_SignData [14:46:33]wFMCommunicate request_size=4 [14:46:33]MH_SAM_APDU [14:46:33]CAPDU: 80 0D 01 02 [14:46:33]Write to MH i2c: E2 08 00 87 35 80 0D 01 02 00 00 00 00 35 [14:46:33]Write i2c OK [14:46:33]MH_I2C_Read... [14:46:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:33]Read from MH i2c: E2 [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: E2 03 00 [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: E2 03 00 87 35 00 90 00 30 [14:46:33]RAPDU: 90 00 [14:46:33]wFMCommunicate OK [14:46:33]wFMCommunicate request_size=255 [14:46:33]MH_SAM_APDU [14:46: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 32 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 39 00 00 00 F4 03 04 00 51 0C 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 52 0B 01 00 35 04 06 00 23 [14:46:33]Write to MH i2c: E2 02 01 88 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 39 00 00 00 F4 03 04 00 51 0C 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 52 0B 01 00 35 04 06 00 23 00 00 35 [14:46:33]Write i2c OK [14:46:33]MH_I2C_Read... [14:46:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:33]Read from MH i2c: E2 [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: E2 03 00 [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: E2 03 00 88 35 00 90 00 31 [14:46:33]RAPDU: 90 00 [14:46:33]wFMCommunicate OK [14:46:33]wFMCommunicate request_size=10 [14:46:33]MH_SAM_APDU [14:46:33]CAPDU: 80 0D 02 02 05 80 72 1D 39 F3 [14:46:33]Write to MH i2c: E2 0D 00 89 35 80 0D 02 02 05 00 80 72 1D 39 F3 00 00 7D [14:46:33]Write i2c OK [14:46:33]MH_I2C_Read... [14:46:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:34]Read from MH i2c: E2 [14:46:34]MH_I2C_Read... [14:46:34]Read from MH i2c: E2 03 00 [14:46:34]MH_I2C_Read... [14:46:34]Read from MH i2c: E2 03 00 89 35 00 90 00 32 [14:46:34]RAPDU: 90 00 [14:46:34]wFMCommunicate OK [14:46:34]wFMCommunicate request_size=4 [14:46:34]MH_SAM_APDU [14:46:34]CAPDU: 80 0D 03 02 [14:46:34]Write to MH i2c: E2 08 00 8A 35 80 0D 03 02 00 00 00 00 3A [14:46:34]Write i2c OK [14:46:34]MH_I2C_Read... [14:46:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:34]Read from MH i2c: E2 [14:46:34]MH_I2C_Read... [14:46:34]Read from MH i2c: E2 0B 00 [14:46:34]MH_I2C_Read... [14:46:34]Read from MH i2c: E2 0B 00 8A 35 00 37 2F 51 52 1B EE 0E 95 90 00 F0 [14:46:34]RAPDU: 37 2F 51 52 1B EE 0E 95 90 00 [14:46:34]wFMCommunicate OK [14:46:34]SAM_PROTO_SignData done [14:46:34]FM_MakeSignedData done [14:46:34]CreateOFDProtocolMessage [14:46:34]wFMCommunicate request_size=4 [14:46:34]MH_SAM_APDU [14:46:34]CAPDU: 80 11 00 00 [14:46:34]Write to MH i2c: E2 08 00 8B 35 80 11 00 00 00 00 00 00 3A [14:46:34]Write i2c OK [14:46:34]MH_I2C_Read... [14:46:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:34]Read from MH i2c: E2 [14:46:34]MH_I2C_Read... [14:46:34]Read from MH i2c: E2 17 00 [14:46:34]MH_I2C_Read... [14:46:34]Read from MH i2c: E2 17 00 8B 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 8E [14:46:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [14:46:34]wFMCommunicate OK [14:46:34]CreateOFDProtocolMessage done [14:46:34]OFDSenderStorePacket 68434 [14:46:34]StoreOFDPacket docnum=68434 [14:46:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 90 F3 07 01 BD 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 32 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 39 00 00 00 F4 03 04 00 51 0C 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 52 0B 01 00 35 04 06 00 23 80 72 1D 39 F3 37 2F 51 52 1B EE 0E 95 [14:46:34]CheckFolder [14:46:34]dirname=/storage/ofd_packets [14:46:34]CheckFolder done [14:46:34]ProducePacketName [14:46:34]name=ofd_packets/00068434 [14:46:34]NVStorageSaveData ofd_packets/00068434 [14:46:34]File name is /storage/ofd_packets/00068434 [14:46:34]Write 301 bytes [14:46:34]NVStorageSaveData done [14:46:34]OFDSenderStorePacket done [14:46:34]KKMCreateOFDPacket done [14:46:34]NVStorageSaveData kkm_last_timestamp [14:46:34]File name is /storage/kkm_last_timestamp [14:46:34]Write 4 bytes [14:46:34]NVStorageSaveData done [14:46:34]ExternCall_PrintAddStr [14:46:34]wPrintStart [14:46:34]Write to MH i2c: 01 00 00 8C 35 C1 [14:46:34]Write i2c OK [14:46:34]MH_I2C_Read... [14:46:34]Read from MH i2c: 01 [14:46:34]MH_I2C_Read... [14:46:34]Read from MH i2c: 01 07 00 [14:46:34]MH_I2C_Read... [14:46:34]Read from MH i2c: 01 07 00 8C 35 00 04 00 00 00 FF 0F DA [14:46:34]RasterBufferAndPrint [14:46:34]line Счет N : (1)210431 [14:46:34]line ИНН: 02508201610067 [14:46:34]line Контрольно-Кассовый Чек [14:46:34]line ПРОДАЖА [14:46:34]line ТРК (МРК, ГНК) : 11 [14:46:34]line Товар: 2710124130 [14:46:34]line Аи-92-К-2 [14:46:34]line 8.970 * 66.90 [14:46:34]line = 600.09 [14:46:34]line НДС 12% НСП 1% [14:46:34]line > о реализуемом товаре [14:46:34]line ОКРУГЛЕНИЕ: -0.09 [14:46:34]line ИТОГО: 600.00 [14:46:34]line Внесено: 600.00 [14:46:34]line СДАЧА: 0.00 [14:46:34]line НСП 1% : 5.31 [14:46:34]line НДС 12% : 63.73 [14:46:34]line Наличными: 600.00 [14:46:34]line Безнал.: 0.00 [14:46:34]line Место: АЗС № 147 "Партнер Нефть" [14:46:34]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [14:46:34]line СНО: Общий режим [14:46:34]line Чек 57 23.10.2024 14:46 [14:46:34]line Смена: 507 ФФД: 1.0 [14:46:34]line ЗНМ: 0300000094 [14:46:34]line РНМ: 0000000000091756 [14:46:34]line Версия ККМ: 001 [14:46:34]line ФМ: 0000000000871809 [14:46:34]line ФД: 68434 [14:46:34]line ФПД: 39034577304051 [14:46:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144641&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68434&fm=39034577304051&tin=02508201610067®Number=0000000000091756&sum=60000 [14:46:34]written 0, free lines is 4095 [14:46:34]OFD Sender: Processing packet 68434 [packets to send 8, broken 7] [14:46:34]ProducePacketName [14:46:34]name=ofd_packets/00068434 [14:46:34]OFD Sender: To server: pG, [14:46:34]CommunicateWithHost lk.salyk.kg:30040 [14:46:34]ConnectInit lk.salyk.kg [14:46:34]Connected sock=10 [14:46:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 90 F3 07 01 BD 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 32 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 39 00 00 00 F4 03 04 00 51 0C 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 52 0B 01 00 35 04 06 00 23 80 72 1D 39 F3 37 2F 51 52 1B EE 0E 95 [14:46:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 50 63 47 00 CF 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 52 0B 01 00 F4 03 04 00 46 B2 18 67 B6 04 01 00 00 7B 9E 47 A4 B2 59 1A 96 [14:46:34]CommunicateWithHost err = 0 [14:46:34]CheckOFDResponse [14:46:34]1017 (14) - 77093643461234 [14:46:34]1041 (16) - 0000000000871809 [14:46:34]1040 (4) - 68434 [14:46:34]1012 (4) - 23.10.2024 08:22 [14:46:34]1206 (1) - 0 [14:46:34]OFD Sender: Remove packet 68434 [14:46:34]ProducePacketName [14:46:34]name=ofd_packets/00068434 [14:46:34]NVStorageDeleteData [14:46:34]Write to MH i2c: 01 00 00 B6 35 EB [14:46:34]Write i2c OK [14:46:34]MH_I2C_Read... [14:46:34]Read from MH i2c: 01 [14:46:34]MH_I2C_Read... [14:46:34]Read from MH i2c: 01 07 00 [14:46:34]MH_I2C_Read... [14:46:34]Read from MH i2c: 01 07 00 B6 35 00 04 00 00 00 AF 0C B1 [14:46:34]RasterBufferAndPrint [14:46:34]line [14:46:34]line [14:46:34]line [14:46:34]line [14:46:34]line [14:46:34]written 0, free lines is 3253 [14:46:34]MH_Cut [14:46:34]Write to MH i2c: D1 01 00 BD 35 01 C4 [14:46:34]Write i2c OK [14:46:34]MH_I2C_Read... [14:46:34]Read from MH i2c: D1 [14:46:34]MH_I2C_Read... [14:46:34]Read from MH i2c: D1 01 00 [14:46:34]MH_I2C_Read... [14:46:34]Read from MH i2c: D1 01 00 BD 35 00 C3 [14:46:34]Write to MH i2c: 01 00 00 BE 35 F3 [14:46:34]Write i2c OK [14:46:34]MH_I2C_Read... [14:46:35]OFD Sender: No OFD packet to send [14:46:35]*** Cut start [14:46:35]*** Partial cut [14:46:35]*** CUTSNS_PIN = 1 [14:46:35]*** CUTSNS_PIN = 0 [14:46:35]*** Brake cut motor [14:46:36]Read from MH i2c: 01 [14:46:36]MH_I2C_Read... [14:46:36]*** Stop cut motor [14:46:36]*** Cut end [14:46:36]Read from MH i2c: 01 07 00 [14:46:36]MH_I2C_Read... [14:46:36]Read from MH i2c: 01 07 00 BE 35 00 04 00 00 00 FF 0F 0C [14:46:36]process_action close_receipt done [14:46:36]requested_data is exist [14:46:36]produce_requested_data [14:46:36]requested_item fm.sn is exist - process it [14:46:36]wFMCommunicate request_size=4 [14:46:36]MH_SAM_APDU [14:46:36]CAPDU: 80 11 00 00 [14:46:36]Write to MH i2c: E2 08 00 BF 35 80 11 00 00 00 00 00 00 6E [14:46:36]Write i2c OK [14:46:36]MH_I2C_Read... [14:46:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:36]Read from MH i2c: E2 [14:46:36]MH_I2C_Read... [14:46:36]Read from MH i2c: E2 17 00 [14:46:36]MH_I2C_Read... [14:46:36]Read from MH i2c: E2 17 00 BF 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 C2 [14:46:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [14:46:36]wFMCommunicate OK [14:46:36]requested_item fd.num is exist - process it [14:46:36]SAM_PROTO_GetFieldsCounters [14:46:36]wFMCommunicate request_size=4 [14:46:36]MH_SAM_APDU [14:46:36]CAPDU: 80 13 00 00 [14:46:36]Write to MH i2c: E2 08 00 C0 35 80 13 00 00 00 00 00 00 71 [14:46:36]Write i2c OK [14:46:36]MH_I2C_Read... [14:46:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:36]Read from MH i2c: E2 [14:46:36]MH_I2C_Read... [14:46:36]Read from MH i2c: E2 62 00 [14:46:36]MH_I2C_Read... [14:46:36]Read from MH i2c: E2 62 00 C0 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 52 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [14:46:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 52 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:46:36]wFMCommunicate OK [14:46:36]SAM_PROTO_GetFieldsCounters done [14:46:36]requested_item shift.num is exist - process it [14:46:36]requested_item shift.opened is exist - process it [14:46:36]req_shift_opened [14:46:36]FM_GetShiftState [14:46:36]SAM_PROTO_GetShiftState [14:46:36]wFMCommunicate request_size=4 [14:46:36]MH_SAM_APDU [14:46:36]CAPDU: 80 13 01 00 [14:46:36]Write to MH i2c: E2 08 00 C1 35 80 13 01 00 00 00 00 00 73 [14:46:36]Write i2c OK [14:46:36]MH_I2C_Read... [14:46:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:36]Read from MH i2c: E2 [14:46:36]MH_I2C_Read... [14:46:36]Read from MH i2c: E2 0E 00 [14:46:36]MH_I2C_Read... [14:46:36]Read from MH i2c: E2 0E 00 C1 35 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 E2 [14:46:36]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [14:46:36]wFMCommunicate OK [14:46:36]SAM_PROTO_GetShiftState done [14:46:36]FM_GetShiftState done [14:46:36]req_shift_opened done [14:46:36]requested_item shift.open_date is exist - process it [14:46:36]req_shift_open_date [14:46:36]req_shift_open_date done [14:46:36]produce_requested_data done [14:46:36]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68434,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [14:46:36]process_action_free close_receipt [14:46:36]json_value_free [14:46:36]json_value_free done [14:46:36]process_json_proto returns [14:46:36]Send response to host [14:46:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68434,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [14:46:36]free response buf [14:46:36]execute_script done [14:46:36]execute_script returns [14:46:36]free content buf [14:46:36]Sock 9.Close socket [14:46:36]Sock 9.Thread stoped [14:46:40]OFD Sender: No OFD packet to send [14:46:45]OFD Sender: No OFD packet to send [14:46:50]OFD Sender: No OFD packet to send [14:46:55]OFD Sender: No OFD packet to send [14:47:00]OFD Sender: No OFD packet to send [14:47:05]OFD Sender: No OFD packet to send [14:47:10]OFD Sender: No OFD packet to send [14:47:15]OFD Sender: No OFD packet to send [14:47:20]OFD Sender: No OFD packet to send [14:47:25]OFD Sender: No OFD packet to send [14:47:30]OFD Sender: No OFD packet to send [14:47:35]OFD Sender: No OFD packet to send [14:47:40]OFD Sender: No OFD packet to send [14:47:45]OFD Sender: No OFD packet to send [14:47:50]OFD Sender: No OFD packet to send [14:47:55]OFD Sender: No OFD packet to send [14:48:00]OFD Sender: No OFD packet to send [14:48:05]OFD Sender: No OFD packet to send [14:48:10]OFD Sender: No OFD packet to send [14:48:15]OFD Sender: No OFD packet to send [14:48:20]OFD Sender: No OFD packet to send [14:48:25]OFD Sender: No OFD packet to send [14:48:30]OFD Sender: No OFD packet to send [14:48:35]OFD Sender: No OFD packet to send [14:48:40]OFD Sender: No OFD packet to send [14:48:45]OFD Sender: No OFD packet to send [14:48:50]OFD Sender: No OFD packet to send [14:48:55]OFD Sender: No OFD packet to send [14:49:00]OFD Sender: No OFD packet to send [14:49:05]OFD Sender: No OFD packet to send [14:49:10]OFD Sender: No OFD packet to send [14:49:15]OFD Sender: No OFD packet to send [14:49:20]OFD Sender: No OFD packet to send [14:49:25]OFD Sender: No OFD packet to send [14:49:30]OFD Sender: No OFD packet to send [14:49:35]OFD Sender: No OFD packet to send [14:49:40]OFD Sender: No OFD packet to send [14:49:45]OFD Sender: No OFD packet to send [14:49:50]OFD Sender: No OFD packet to send [14:49:55]OFD Sender: No OFD packet to send [14:50:00]OFD Sender: No OFD packet to send [14:50:05]OFD Sender: No OFD packet to send [14:50:10]OFD Sender: No OFD packet to send [14:50:15]OFD Sender: No OFD packet to send [14:50:20]OFD Sender: No OFD packet to send [14:50:25]OFD Sender: No OFD packet to send [14:50:30]OFD Sender: No OFD packet to send [14:50:35]OFD Sender: No OFD packet to send [14:50:40]OFD Sender: No OFD packet to send [14:50:45]OFD Sender: No OFD packet to send [14:50:50]OFD Sender: No OFD packet to send [14:50:55]OFD Sender: No OFD packet to send [14:51:00]OFD Sender: No OFD packet to send [14:51:05]OFD Sender: No OFD packet to send [14:51:10]OFD Sender: No OFD packet to send [14:51:15]OFD Sender: No OFD packet to send [14:51:20]OFD Sender: No OFD packet to send [14:51:25]OFD Sender: No OFD packet to send [14:51:30]OFD Sender: No OFD packet to send [14:51:35]OFD Sender: No OFD packet to send [14:51:40]OFD Sender: No OFD packet to send [14:51:45]OFD Sender: No OFD packet to send [14:51:50]OFD Sender: No OFD packet to send [14:51:55]OFD Sender: No OFD packet to send [14:52:00]OFD Sender: No OFD packet to send [14:52:05]OFD Sender: No OFD packet to send [14:52:10]OFD Sender: No OFD packet to send [14:52:15]OFD Sender: No OFD packet to send [14:52:20]OFD Sender: No OFD packet to send [14:52:25]OFD Sender: No OFD packet to send [14:52:30]OFD Sender: No OFD packet to send [14:52:35]OFD Sender: No OFD packet to send [14:52:40]OFD Sender: No OFD packet to send [14:52:45]OFD Sender: No OFD packet to send [14:52:50]OFD Sender: No OFD packet to send [14:52:55]OFD Sender: No OFD packet to send [14:53:00]OFD Sender: No OFD packet to send [14:53:05]OFD Sender: No OFD packet to send [14:53:10]OFD Sender: No OFD packet to send [14:53:15]OFD Sender: No OFD packet to send [14:53:20]OFD Sender: No OFD packet to send [14:53:25]OFD Sender: No OFD packet to send [14:53:30]OFD Sender: No OFD packet to send [14:53:35]OFD Sender: No OFD packet to send [14:53:40]OFD Sender: No OFD packet to send [14:53:45]OFD Sender: No OFD packet to send [14:53:50]OFD Sender: No OFD packet to send [14:53:55]OFD Sender: No OFD packet to send [14:53:58]accept exits with 7 [14:53:58]New connection [14:53:58]New thread 3067276644 created [14:53:58]Thread 3067133284 joined [14:53:58]Waiting for new connection... [14:53:58] Sock 7.Parse request [14:53:58]Sock 7.Check first char [14:53:58]Sock 7.First char is OK [14:53:58]request: POST /json_proto HTTP/1.0 [14:53:58]Method: POST [14:53:58]URL: /json_proto [14:53:58]Method is POST - this is cgi request [14:53:58]url: /json_proto [14:53:58]query_string will be loaded in cgi processing [14:53:58]execute_cgi json_proto POST (null) [14:53:58]execute_cgi path=json_proto method=POST [14:53:58]POST find Content-Length [14:53:58]Host: 172.17.52.3:8080 [14:53:58]Content-Length: 677 [14:53:58]Content-Type: application/json [14:53:58] [14:53:58]POST finish read [14:53:58]Found Content-Length = 677 [14:53:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:58]execute_script... [14: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)210432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:58]POST & json_proto [14:53:58]process_json_proto [14:53:58]json parsed OK: [14:53:58]protocol is kg_v1.0 [14:53:58]action value=close_receipt [14:53:58]process_action close_receipt [14:53:58]cmd_close_receipt [14:53:58]MH_GetDate [14:53:58]Write to MH i2c: F0 00 00 C2 35 E6 [14:53:58]Write i2c OK [14:53:58]MH_I2C_Read... [14:53:58]Read from MH i2c: F0 [14:53:58]MH_I2C_Read... [14:53:58]Read from MH i2c: F0 09 00 [14:53:58]MH_I2C_Read... [14:53:58]Read from MH i2c: F0 09 00 C2 35 00 0F 0E 19 67 D7 68 A5 64 D4 [14:53:58]GetLastDocTimeStamp 1729694801 [14:53:58]current date 1729695247 [14:53:58]FM_GetShiftState [14:53:58]SAM_PROTO_GetShiftState [14:53:58]wFMCommunicate request_size=4 [14:53:58]MH_SAM_APDU [14:53:58]CAPDU: 80 13 01 00 [14:53:58]Write to MH i2c: E2 08 00 C3 35 80 13 01 00 00 00 00 00 75 [14:53:58]Write i2c OK [14:53:58]MH_I2C_Read... [14:53:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:58]Read from MH i2c: E2 [14:53:58]MH_I2C_Read... [14:53:58]Read from MH i2c: E2 0E 00 [14:53:58]MH_I2C_Read... [14:53:58]Read from MH i2c: E2 0E 00 C3 35 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 E4 [14:53:58]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [14:53:58]wFMCommunicate OK [14:53:58]SAM_PROTO_GetShiftState done [14:53:58]FM_GetShiftState done [14:53:58]opened in 1729641385 [14:53:58]opened+sec_in_day 1729727785 [14:53:58]quantity*price = 50041 [14:53:58]sum+1 = 50042 [14:53:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 58 23.10.2024 14:54 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68435 ФПД: 38269654496001 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145407&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68435&fm=38269654496001&tin=02508201610067®Number=0000000000091756&sum=50000 [14:53:59]StoreToDocumentArchive [14:53:59]shift 507 fd 68435 [14:53:59]save to /storage/0507/doc_00068435 [14:53:59]save last doc name /storage/0507/doc_00068435 to /storage/kkm_last_doc_name [14:53:59]save OK [14:53:59]Clear old archive folders... [14:53:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:53:59]tlvbuf is B6F29490 [14:53:59]SAM_PROTO_ClearQueue [14:53:59]wFMCommunicate request_size=4 [14:53:59]MH_SAM_APDU [14:53:59]CAPDU: 80 09 00 00 [14:53:59]Write to MH i2c: E2 08 00 D0 35 80 09 00 00 00 00 00 00 77 [14:53:59]Write i2c OK [14:53:59]MH_I2C_Read... [14:53:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:53:59]Read from MH i2c: E2 [14:53:59]MH_I2C_Read... [14:53:59]Read from MH i2c: E2 03 00 [14:53:59]MH_I2C_Read... [14:53:59]Read from MH i2c: E2 03 00 D0 35 00 90 00 79 [14:53:59]RAPDU: 90 00 [14:53:59]wFMCommunicate OK [14:53:59]SAM_PROTO_ClearQueue done [14:53:59]KKMCreateOFDPacket [14:53:59]OFDProtocolAddRootSTLVToBuf [14:53:59]FM_MakeSignedData [14:53:59]FM_MakeSignedData [14:53:59]SAM_PROTO_SignData [14:53:59]wFMCommunicate request_size=4 [14:53:59]MH_SAM_APDU [14:53:59]CAPDU: 80 0D 01 02 [14:53:59]Write to MH i2c: E2 08 00 D1 35 80 0D 01 02 00 00 00 00 7F [14:53:59]Write i2c OK [14:53:59]MH_I2C_Read... [14:53:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:53:59]Read from MH i2c: E2 [14:53:59]MH_I2C_Read... [14:53:59]Read from MH i2c: E2 03 00 [14:53:59]MH_I2C_Read... [14:53:59]Read from MH i2c: E2 03 00 D1 35 00 90 00 7A [14:53:59]RAPDU: 90 00 [14:53:59]wFMCommunicate OK [14:53:59]wFMCommunicate request_size=255 [14:53:59]MH_SAM_APDU [14: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 32 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 3A 00 00 00 F4 03 04 00 0F 0E 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 53 0B 01 00 35 04 06 00 22 [14:53:59]Write to MH i2c: E2 02 01 D2 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3A 00 00 00 F4 03 04 00 0F 0E 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 53 0B 01 00 35 04 06 00 22 00 00 63 [14:53:59]Write i2c OK [14:53:59]MH_I2C_Read... [14:53:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:59]Read from MH i2c: E2 [14:53:59]MH_I2C_Read... [14:53:59]Read from MH i2c: E2 03 00 [14:53:59]MH_I2C_Read... [14:53:59]Read from MH i2c: E2 03 00 D2 35 00 90 00 7B [14:53:59]RAPDU: 90 00 [14:53:59]wFMCommunicate OK [14:53:59]wFMCommunicate request_size=10 [14:53:59]MH_SAM_APDU [14:53:59]CAPDU: 80 0D 02 02 05 CE 59 29 73 01 [14:53:59]Write to MH i2c: E2 0D 00 D3 35 80 0D 02 02 05 00 CE 59 29 73 01 00 00 50 [14:53:59]Write i2c OK [14:53:59]MH_I2C_Read... [14:53:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:59]Read from MH i2c: E2 [14:53:59]MH_I2C_Read... [14:53:59]Read from MH i2c: E2 03 00 [14:53:59]MH_I2C_Read... [14:53:59]Read from MH i2c: E2 03 00 D3 35 00 90 00 7C [14:53:59]RAPDU: 90 00 [14:53:59]wFMCommunicate OK [14:53:59]wFMCommunicate request_size=4 [14:53:59]MH_SAM_APDU [14:53:59]CAPDU: 80 0D 03 02 [14:53:59]Write to MH i2c: E2 08 00 D4 35 80 0D 03 02 00 00 00 00 84 [14:53:59]Write i2c OK [14:53:59]MH_I2C_Read... [14:53:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:53:59]Read from MH i2c: E2 [14:53:59]MH_I2C_Read... [14:53:59]Read from MH i2c: E2 0B 00 [14:53:59]MH_I2C_Read... [14:53:59]Read from MH i2c: E2 0B 00 D4 35 00 BA 14 BE 7E A3 4B B6 79 90 00 AC [14:53:59]RAPDU: BA 14 BE 7E A3 4B B6 79 90 00 [14:53:59]wFMCommunicate OK [14:53:59]SAM_PROTO_SignData done [14:53:59]FM_MakeSignedData done [14:53:59]CreateOFDProtocolMessage [14:53:59]wFMCommunicate request_size=4 [14:53:59]MH_SAM_APDU [14:53:59]CAPDU: 80 11 00 00 [14:53:59]Write to MH i2c: E2 08 00 D5 35 80 11 00 00 00 00 00 00 84 [14:53:59]Write i2c OK [14:53:59]MH_I2C_Read... [14:53:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:59]Read from MH i2c: E2 [14:53:59]MH_I2C_Read... [14:53:59]Read from MH i2c: E2 17 00 [14:53:59]MH_I2C_Read... [14:53:59]Read from MH i2c: E2 17 00 D5 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 D8 [14:53:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [14:53:59]wFMCommunicate OK [14:53:59]CreateOFDProtocolMessage done [14:53:59]OFDSenderStorePacket 68435 [14:53:59]StoreOFDPacket docnum=68435 [14:53:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 1E CC 07 01 32 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3A 00 00 00 F4 03 04 00 0F 0E 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 53 0B 01 00 35 04 06 00 22 CE 59 29 73 01 BA 14 BE 7E A3 4B B6 79 [14:53:59]CheckFolder [14:53:59]dirname=/storage/ofd_packets [14:53:59]CheckFolder done [14:53:59]ProducePacketName [14:53:59]name=ofd_packets/00068435 [14:53:59]NVStorageSaveData ofd_packets/00068435 [14:53:59]File name is /storage/ofd_packets/00068435 [14:53:59]Write 301 bytes [14:53:59]NVStorageSaveData done [14:53:59]OFDSenderStorePacket done [14:53:59]KKMCreateOFDPacket done [14:53:59]NVStorageSaveData kkm_last_timestamp [14:53:59]File name is /storage/kkm_last_timestamp [14:53:59]Write 4 bytes [14:53:59]NVStorageSaveData done [14:53:59]ExternCall_PrintAddStr [14:53:59]wPrintStart [14:53:59]Write to MH i2c: 01 00 00 D6 35 0B [14:53:59]Write i2c OK [14:53:59]MH_I2C_Read... [14:53:59]Read from MH i2c: 01 [14:53:59]MH_I2C_Read... [14:53:59]Read from MH i2c: 01 07 00 [14:53:59]MH_I2C_Read... [14:53:59]Read from MH i2c: 01 07 00 D6 35 00 04 00 00 00 FF 0F 24 [14:53:59]RasterBufferAndPrint [14:53:59]line Счет N : (1)210432 [14:53:59]line ИНН: 02508201610067 [14:53:59]line Контрольно-Кассовый Чек [14:53:59]line ПРОДАЖА [14:53:59]line ТРК (МРК, ГНК) : 11 [14:53:59]line Товар: 2710124130 [14:53:59]line Аи-92-К-2 [14:53:59]line 7.480 * 66.90 [14:53:59]line = 500.41 [14:53:59]line НДС 12% НСП 1% [14:53:59]line > о реализуемом товаре [14:53:59]line ОКРУГЛЕНИЕ: -0.41 [14:53:59]line ИТОГО: 500.00 [14:53:59]line Внесено: 500.00 [14:53:59]line СДАЧА: 0.00 [14:53:59]line НСП 1% : 4.43 [14:53:59]line НДС 12% : 53.14 [14:53:59]line Наличными: 500.00 [14:53:59]line Безнал.: 0.00 [14:53:59]line Место: АЗС № 147 "Партнер Нефть" [14:53:59]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [14:53:59]line СНО: Общий режим [14:53:59]line Чек 58 23.10.2024 14:54 [14:53:59]line Смена: 507 ФФД: 1.0 [14:53:59]line ЗНМ: 0300000094 [14:53:59]line РНМ: 0000000000091756 [14:53:59]line Версия ККМ: 001 [14:53:59]line ФМ: 0000000000871809 [14:53:59]line ФД: 68435 [14:53:59]line ФПД: 38269654496001 [14:53:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145407&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68435&fm=38269654496001&tin=02508201610067®Number=0000000000091756&sum=50000 [14:53:59]written 0, free lines is 4095 [14:53:59]OFD Sender: Processing packet 68435 [packets to send 8, broken 7] [14:53:59]ProducePacketName [14:53:59]name=ofd_packets/00068435 [14:54:00]OFD Sender: To server: pG, [14:54:00]CommunicateWithHost lk.salyk.kg:30040 [14:54:00]ConnectInit lk.salyk.kg [14:54:00]Write to MH i2c: 01 00 00 00 36 36 [14:54:00]Write i2c OK [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: 01 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: 01 07 00 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: 01 07 00 00 36 00 04 00 00 00 A2 0C EF [14:54:00]RasterBufferAndPrint [14:54:00]line [14:54:00]line [14:54:00]line [14:54:00]line [14:54:00]line [14:54:00]written 0, free lines is 3238 [14:54:00]MH_Cut [14:54:00]Write to MH i2c: D1 01 00 07 36 01 0F [14:54:00]Write i2c OK [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: D1 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: D1 01 00 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: D1 01 00 07 36 00 0E [14:54:00]Write to MH i2c: 01 00 00 08 36 3E [14:54:00]Write i2c OK [14:54:00]MH_I2C_Read... [14:54:01]*** Cut start [14:54:01]*** Partial cut [14:54:01]*** CUTSNS_PIN = 1 [14:54:01]*** CUTSNS_PIN = 0 [14:54:01]*** Brake cut motor [14:54:01]Read from MH i2c: 01 [14:54:01]MH_I2C_Read... [14:54:01]*** Stop cut motor [14:54:01]*** Cut end [14:54:01]Read from MH i2c: 01 07 00 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: 01 07 00 08 36 00 04 00 00 00 FF 0F 57 [14:54:01]process_action close_receipt done [14:54:01]requested_data is exist [14:54:01]produce_requested_data [14:54:01]requested_item fm.sn is exist - process it [14:54:01]wFMCommunicate request_size=4 [14:54:01]MH_SAM_APDU [14:54:01]CAPDU: 80 11 00 00 [14:54:01]Write to MH i2c: E2 08 00 09 36 80 11 00 00 00 00 00 00 B9 [14:54:01]Write i2c OK [14:54:01]MH_I2C_Read... [14:54:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:01]Read from MH i2c: E2 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: E2 17 00 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: E2 17 00 09 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 0D [14:54:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [14:54:01]wFMCommunicate OK [14:54:01]requested_item fd.num is exist - process it [14:54:01]SAM_PROTO_GetFieldsCounters [14:54:01]wFMCommunicate request_size=4 [14:54:01]MH_SAM_APDU [14:54:01]CAPDU: 80 13 00 00 [14:54:01]Write to MH i2c: E2 08 00 0A 36 80 13 00 00 00 00 00 00 BC [14:54:01]Write i2c OK [14:54:01]MH_I2C_Read... [14:54:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:01]Read from MH i2c: E2 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: E2 62 00 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: E2 62 00 0A 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 53 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [14:54:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 53 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:54:01]wFMCommunicate OK [14:54:01]SAM_PROTO_GetFieldsCounters done [14:54:01]requested_item shift.num is exist - process it [14:54:02]requested_item shift.opened is exist - process it [14:54:02]req_shift_opened [14:54:02]FM_GetShiftState [14:54:02]SAM_PROTO_GetShiftState [14:54:02]wFMCommunicate request_size=4 [14:54:02]MH_SAM_APDU [14:54:02]CAPDU: 80 13 01 00 [14:54:02]Write to MH i2c: E2 08 00 0B 36 80 13 01 00 00 00 00 00 BE [14:54:02]Write i2c OK [14:54:02]MH_I2C_Read... [14:54:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:02]Read from MH i2c: E2 [14:54:02]MH_I2C_Read... [14:54:02]Read from MH i2c: E2 0E 00 [14:54:02]MH_I2C_Read... [14:54:02]Read from MH i2c: E2 0E 00 0B 36 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 2D [14:54:02]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [14:54:02]wFMCommunicate OK [14:54:02]SAM_PROTO_GetShiftState done [14:54:02]FM_GetShiftState done [14:54:02]req_shift_opened done [14:54:02]requested_item shift.open_date is exist - process it [14:54:02]req_shift_open_date [14:54:02]req_shift_open_date done [14:54:02]produce_requested_data done [14:54:02]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68435,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [14:54:02]process_action_free close_receipt [14:54:02]json_value_free [14:54:02]json_value_free done [14:54:02]process_json_proto returns [14:54:02]Send response to host [14:54:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68435,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [14:54:02]free response buf [14:54:02]execute_script done [14:54:02]execute_script returns [14:54:02]free content buf [14:54:02]Sock 7.Close socket [14:54:02]Sock 7.Thread stoped [14:56:10]ConnectInit Can't connect to host [14:56:10]CommunicateWithHost connect error [14:56:10]CommunicateWithHost err = -1 [14:56:10]OFD Sender: Server communicate error [14:56:15]OFD Sender: Processing packet 68435 [packets to send 8, broken 7] [14:56:15]ProducePacketName [14:56:15]name=ofd_packets/00068435 [14:56:15]OFD Sender: To server: pG, [14:56:15]CommunicateWithHost lk.salyk.kg:30040 [14:56:15]ConnectInit lk.salyk.kg [14:56:15]Connected sock=7 [14:56:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 1E CC 07 01 32 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3A 00 00 00 F4 03 04 00 0F 0E 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 53 0B 01 00 35 04 06 00 22 CE 59 29 73 01 BA 14 BE 7E A3 4B B6 79 [14:56:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 CD F1 47 00 63 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 53 0B 01 00 F4 03 04 00 8B B4 18 67 B6 04 01 00 00 66 4D A8 C0 21 13 36 B8 [14:56:15]CommunicateWithHost err = 0 [14:56:15]CheckOFDResponse [14:56:15]1017 (14) - 77093643461234 [14:56:15]1041 (16) - 0000000000871809 [14:56:15]1040 (4) - 68435 [14:56:15]1012 (4) - 23.10.2024 08:32 [14:56:15]1206 (1) - 0 [14:56:15]OFD Sender: Remove packet 68435 [14:56:15]ProducePacketName [14:56:15]name=ofd_packets/00068435 [14:56:15]NVStorageDeleteData [14:56:16]OFD Sender: No OFD packet to send [14:56:21]OFD Sender: No OFD packet to send [14:56:26]OFD Sender: No OFD packet to send [14:56:31]OFD Sender: No OFD packet to send [14:56:36]OFD Sender: No OFD packet to send [14:56:41]OFD Sender: No OFD packet to send [14:56:46]OFD Sender: No OFD packet to send [14:56:51]OFD Sender: No OFD packet to send [14:56:56]OFD Sender: No OFD packet to send [14:57:01]OFD Sender: No OFD packet to send [14:57:06]OFD Sender: No OFD packet to send [14:57:11]OFD Sender: No OFD packet to send [14:57:16]OFD Sender: No OFD packet to send [14:57:21]OFD Sender: No OFD packet to send [14:57:26]OFD Sender: No OFD packet to send [14:57:31]OFD Sender: No OFD packet to send [14:57:36]OFD Sender: No OFD packet to send [14:57:41]OFD Sender: No OFD packet to send [14:57:46]OFD Sender: No OFD packet to send [14:57:47]accept exits with 9 [14:57:47]New connection [14:57:47]New thread 3067133284 created [14:57:47]Thread 3067276644 joined [14:57:47]Waiting for new connection... [14:57:47] Sock 9.Parse request [14:57:47]Sock 9.Check first char [14:57:47]Sock 9.First char is OK [14:57:47]request: POST /json_proto HTTP/1.0 [14:57:47]Method: POST [14:57:47]URL: /json_proto [14:57:47]Method is POST - this is cgi request [14:57:47]url: /json_proto [14:57:47]query_string will be loaded in cgi processing [14:57:47]execute_cgi json_proto POST (null) [14:57:47]execute_cgi path=json_proto method=POST [14:57:47]POST find Content-Length [14:57:47]Host: 172.17.52.3:8080 [14:57:47]Content-Length: 677 [14:57:47]Content-Type: application/json [14:57:47] [14:57:47]POST finish read [14:57:47]Found Content-Length = 677 [14:57:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210433", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:47]execute_script... [14:57: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)210433", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:47]POST & json_proto [14:57:47]process_json_proto [14:57:47]json parsed OK: [14:57:47]protocol is kg_v1.0 [14:57:47]action value=close_receipt [14:57:47]process_action close_receipt [14:57:47]cmd_close_receipt [14:57:47]MH_GetDate [14:57:47]Write to MH i2c: F0 00 00 0C 36 31 [14:57:47]Write i2c OK [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: F0 [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: F0 09 00 [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: F0 09 00 0C 36 00 F5 0E 19 67 D7 68 A5 64 05 [14:57:47]GetLastDocTimeStamp 1729695247 [14:57:47]current date 1729695477 [14:57:47]FM_GetShiftState [14:57:47]SAM_PROTO_GetShiftState [14:57:47]wFMCommunicate request_size=4 [14:57:47]MH_SAM_APDU [14:57:47]CAPDU: 80 13 01 00 [14:57:47]Write to MH i2c: E2 08 00 0D 36 80 13 01 00 00 00 00 00 C0 [14:57:47]Write i2c OK [14:57:47]MH_I2C_Read... [14:57:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:47]Read from MH i2c: E2 [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: E2 0E 00 [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: E2 0E 00 0D 36 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 2F [14:57:47]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [14:57:47]wFMCommunicate OK [14:57:47]SAM_PROTO_GetShiftState done [14:57:47]FM_GetShiftState done [14:57:47]opened in 1729641385 [14:57:47]opened+sec_in_day 1729727785 [14:57:47]quantity*price = 20003 [14:57:47]sum+1 = 20004 [14:57:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 59 23.10.2024 14:57 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68436 ФПД: 47503488783684 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145757&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68436&fm=47503488783684&tin=02508201610067®Number=0000000000091756&sum=20000 [14:57:49]StoreToDocumentArchive [14:57:49]shift 507 fd 68436 [14:57:49]save to /storage/0507/doc_00068436 [14:57:49]save last doc name /storage/0507/doc_00068436 to /storage/kkm_last_doc_name [14:57:49]save OK [14:57:49]Clear old archive folders... [14:57:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:57:49]tlvbuf is 02005660 [14:57:49]SAM_PROTO_ClearQueue [14:57:49]wFMCommunicate request_size=4 [14:57:49]MH_SAM_APDU [14:57:49]CAPDU: 80 09 00 00 [14:57:49]Write to MH i2c: E2 08 00 1A 36 80 09 00 00 00 00 00 00 C2 [14:57:49]Write i2c OK [14:57:49]MH_I2C_Read... [14:57:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:49]Read from MH i2c: E2 [14:57:49]MH_I2C_Read... [14:57:49]Read from MH i2c: E2 03 00 [14:57:49]MH_I2C_Read... [14:57:49]Read from MH i2c: E2 03 00 1A 36 00 90 00 C4 [14:57:49]RAPDU: 90 00 [14:57:49]wFMCommunicate OK [14:57:49]SAM_PROTO_ClearQueue done [14:57:49]KKMCreateOFDPacket [14:57:49]OFDProtocolAddRootSTLVToBuf [14:57:49]FM_MakeSignedData [14:57:49]FM_MakeSignedData [14:57:49]SAM_PROTO_SignData [14:57:49]wFMCommunicate request_size=4 [14:57:49]MH_SAM_APDU [14:57:49]CAPDU: 80 0D 01 02 [14:57:49]Write to MH i2c: E2 08 00 1B 36 80 0D 01 02 00 00 00 00 CA [14:57:49]Write i2c OK [14:57:49]MH_I2C_Read... [14:57:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:49]Read from MH i2c: E2 [14:57:49]MH_I2C_Read... [14:57:49]Read from MH i2c: E2 03 00 [14:57:49]MH_I2C_Read... [14:57:49]Read from MH i2c: E2 03 00 1B 36 00 90 00 C5 [14:57:49]RAPDU: 90 00 [14:57:49]wFMCommunicate OK [14:57:49]wFMCommunicate request_size=255 [14:57:49]MH_SAM_APDU [14:57: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 32 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 3B 00 00 00 F4 03 04 00 F5 0E 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 54 0B 01 00 35 04 06 00 2B [14:57:49]Write to MH i2c: E2 02 01 1C 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3B 00 00 00 F4 03 04 00 F5 0E 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 54 0B 01 00 35 04 06 00 2B 00 00 61 [14:57:49]Write i2c OK [14:57:49]MH_I2C_Read... [14:57:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:49]Read from MH i2c: E2 [14:57:49]MH_I2C_Read... [14:57:49]Read from MH i2c: E2 03 00 [14:57:49]MH_I2C_Read... [14:57:49]Read from MH i2c: E2 03 00 1C 36 00 90 00 C6 [14:57:49]RAPDU: 90 00 [14:57:49]wFMCommunicate OK [14:57:49]wFMCommunicate request_size=10 [14:57:49]MH_SAM_APDU [14:57:49]CAPDU: 80 0D 02 02 05 34 44 93 15 44 [14:57:49]Write to MH i2c: E2 0D 00 1D 36 80 0D 02 02 05 00 34 44 93 15 44 00 00 3B [14:57:49]Write i2c OK [14:57:49]MH_I2C_Read... [14:57:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:49]Read from MH i2c: E2 [14:57:49]MH_I2C_Read... [14:57:49]Read from MH i2c: E2 03 00 [14:57:49]MH_I2C_Read... [14:57:49]Read from MH i2c: E2 03 00 1D 36 00 90 00 C7 [14:57:49]RAPDU: 90 00 [14:57:49]wFMCommunicate OK [14:57:49]wFMCommunicate request_size=4 [14:57:49]MH_SAM_APDU [14:57:49]CAPDU: 80 0D 03 02 [14:57:49]Write to MH i2c: E2 08 00 1E 36 80 0D 03 02 00 00 00 00 CF [14:57:49]Write i2c OK [14:57:49]MH_I2C_Read... [14:57:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:49]Read from MH i2c: E2 [14:57:49]MH_I2C_Read... [14:57:49]Read from MH i2c: E2 0B 00 [14:57:49]MH_I2C_Read... [14:57:49]Read from MH i2c: E2 0B 00 1E 36 00 CD 6D 75 C4 67 9C 9D AB 90 00 8E [14:57:49]RAPDU: CD 6D 75 C4 67 9C 9D AB 90 00 [14:57:49]wFMCommunicate OK [14:57:49]SAM_PROTO_SignData done [14:57:49]FM_MakeSignedData done [14:57:49]CreateOFDProtocolMessage [14:57:49]wFMCommunicate request_size=4 [14:57:49]MH_SAM_APDU [14:57:49]CAPDU: 80 11 00 00 [14:57:49]Write to MH i2c: E2 08 00 1F 36 80 11 00 00 00 00 00 00 CF [14:57:49]Write i2c OK [14:57:49]MH_I2C_Read... [14:57:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:49]Read from MH i2c: E2 [14:57:49]MH_I2C_Read... [14:57:49]Read from MH i2c: E2 17 00 [14:57:49]MH_I2C_Read... [14:57:49]Read from MH i2c: E2 17 00 1F 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 23 [14:57:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [14:57:49]wFMCommunicate OK [14:57:49]CreateOFDProtocolMessage done [14:57:49]OFDSenderStorePacket 68436 [14:57:49]StoreOFDPacket docnum=68436 [14:57:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 25 3E 07 01 16 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3B 00 00 00 F4 03 04 00 F5 0E 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 54 0B 01 00 35 04 06 00 2B 34 44 93 15 44 CD 6D 75 C4 67 9C 9D AB [14:57:49]CheckFolder [14:57:49]dirname=/storage/ofd_packets [14:57:49]CheckFolder done [14:57:49]ProducePacketName [14:57:49]name=ofd_packets/00068436 [14:57:49]NVStorageSaveData ofd_packets/00068436 [14:57:49]File name is /storage/ofd_packets/00068436 [14:57:49]Write 301 bytes [14:57:49]NVStorageSaveData done [14:57:49]OFDSenderStorePacket done [14:57:49]KKMCreateOFDPacket done [14:57:49]NVStorageSaveData kkm_last_timestamp [14:57:49]File name is /storage/kkm_last_timestamp [14:57:49]Write 4 bytes [14:57:49]NVStorageSaveData done [14:57:49]ExternCall_PrintAddStr [14:57:49]wPrintStart [14:57:49]Write to MH i2c: 01 00 00 20 36 56 [14:57:49]Write i2c OK [14:57:49]MH_I2C_Read... [14:57:49]Read from MH i2c: 01 [14:57:49]MH_I2C_Read... [14:57:49]Read from MH i2c: 01 07 00 [14:57:49]MH_I2C_Read... [14:57:49]Read from MH i2c: 01 07 00 20 36 00 04 00 00 00 FF 0F 6F [14:57:49]RasterBufferAndPrint [14:57:49]line Счет N : (1)210433 [14:57:49]line ИНН: 02508201610067 [14:57:49]line Контрольно-Кассовый Чек [14:57:49]line ПРОДАЖА [14:57:49]line ТРК (МРК, ГНК) : 11 [14:57:49]line Товар: 2710124130 [14:57:49]line Аи-92-К-2 [14:57:49]line 2.990 * 66.90 [14:57:49]line = 200.03 [14:57:49]line НДС 12% НСП 1% [14:57:49]line > о реализуемом товаре [14:57:49]line ОКРУГЛЕНИЕ: -0.03 [14:57:49]line ИТОГО: 200.00 [14:57:49]line Внесено: 200.00 [14:57:49]line СДАЧА: 0.00 [14:57:49]line НСП 1% : 1.77 [14:57:49]line НДС 12% : 21.24 [14:57:49]line Наличными: 200.00 [14:57:49]line Безнал.: 0.00 [14:57:49]line Место: АЗС № 147 "Партнер Нефть" [14:57:49]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [14:57:49]line СНО: Общий режим [14:57:49]line Чек 59 23.10.2024 14:57 [14:57:49]line Смена: 507 ФФД: 1.0 [14:57:49]line ЗНМ: 0300000094 [14:57:49]line РНМ: 0000000000091756 [14:57:49]line Версия ККМ: 001 [14:57:49]line ФМ: 0000000000871809 [14:57:49]line ФД: 68436 [14:57:49]line ФПД: 47503488783684 [14:57:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145757&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68436&fm=47503488783684&tin=02508201610067®Number=0000000000091756&sum=20000 [14:57:49]written 0, free lines is 4095 [14:57:49]OFD Sender: Processing packet 68436 [packets to send 8, broken 7] [14:57:49]ProducePacketName [14:57:49]name=ofd_packets/00068436 [14:57:49]OFD Sender: To server: pG, [14:57:49]CommunicateWithHost lk.salyk.kg:30040 [14:57:49]ConnectInit lk.salyk.kg [14:57:49]Connected sock=10 [14:57:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 25 3E 07 01 16 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3B 00 00 00 F4 03 04 00 F5 0E 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 54 0B 01 00 35 04 06 00 2B 34 44 93 15 44 CD 6D 75 C4 67 9C 9D AB [14:57:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 FC 5C 47 00 1B BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 54 0B 01 00 F4 03 04 00 E9 B4 18 67 B6 04 01 00 00 7E 6D E5 6C 1F AC 38 FD [14:57:50]CommunicateWithHost err = 0 [14:57:50]CheckOFDResponse [14:57:50]1017 (14) - 77093643461234 [14:57:50]1041 (16) - 0000000000871809 [14:57:50]1040 (4) - 68436 [14:57:50]1012 (4) - 23.10.2024 08:33 [14:57:50]1206 (1) - 0 [14:57:50]OFD Sender: Remove packet 68436 [14:57:50]ProducePacketName [14:57:50]name=ofd_packets/00068436 [14:57:50]NVStorageDeleteData [14:57:50]Write to MH i2c: 01 00 00 4A 36 80 [14:57:50]Write i2c OK [14:57:50]MH_I2C_Read... [14:57:50]Read from MH i2c: 01 [14:57:50]MH_I2C_Read... [14:57:50]Read from MH i2c: 01 07 00 [14:57:50]MH_I2C_Read... [14:57:50]Read from MH i2c: 01 07 00 4A 36 00 04 00 00 00 AA 0C 41 [14:57:50]RasterBufferAndPrint [14:57:50]line [14:57:50]line [14:57:50]line [14:57:50]line [14:57:50]line [14:57:50]written 0, free lines is 3247 [14:57:50]MH_Cut [14:57:50]Write to MH i2c: D1 01 00 51 36 01 59 [14:57:50]Write i2c OK [14:57:50]MH_I2C_Read... [14:57:50]Read from MH i2c: D1 [14:57:50]MH_I2C_Read... [14:57:50]Read from MH i2c: D1 01 00 [14:57:50]MH_I2C_Read... [14:57:50]Read from MH i2c: D1 01 00 51 36 00 58 [14:57:50]Write to MH i2c: 01 00 00 52 36 88 [14:57:50]Write i2c OK [14:57:50]MH_I2C_Read... [14:57:50]OFD Sender: No OFD packet to send [14:57:50]*** Cut start [14:57:50]*** Partial cut [14:57:50]*** CUTSNS_PIN = 1 [14:57:50]*** CUTSNS_PIN = 0 [14:57:51]*** Brake cut motor [14:57:51]Read from MH i2c: 01 [14:57:51]MH_I2C_Read... [14:57:51]*** Stop cut motor [14:57:51]*** Cut end [14:57:51]Read from MH i2c: 01 07 00 [14:57:51]MH_I2C_Read... [14:57:51]Read from MH i2c: 01 07 00 52 36 00 04 00 00 00 FF 0F A1 [14:57:51]process_action close_receipt done [14:57:51]requested_data is exist [14:57:51]produce_requested_data [14:57:51]requested_item fm.sn is exist - process it [14:57:51]wFMCommunicate request_size=4 [14:57:51]MH_SAM_APDU [14:57:51]CAPDU: 80 11 00 00 [14:57:51]Write to MH i2c: E2 08 00 53 36 80 11 00 00 00 00 00 00 03 [14:57:51]Write i2c OK [14:57:51]MH_I2C_Read... [14:57:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:51]Read from MH i2c: E2 [14:57:51]MH_I2C_Read... [14:57:51]Read from MH i2c: E2 17 00 [14:57:51]MH_I2C_Read... [14:57:51]Read from MH i2c: E2 17 00 53 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 57 [14:57:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [14:57:51]wFMCommunicate OK [14:57:51]requested_item fd.num is exist - process it [14:57:51]SAM_PROTO_GetFieldsCounters [14:57:51]wFMCommunicate request_size=4 [14:57:51]MH_SAM_APDU [14:57:51]CAPDU: 80 13 00 00 [14:57:51]Write to MH i2c: E2 08 00 54 36 80 13 00 00 00 00 00 00 06 [14:57:51]Write i2c OK [14:57:51]MH_I2C_Read... [14:57:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:51]Read from MH i2c: E2 [14:57:51]MH_I2C_Read... [14:57:51]Read from MH i2c: E2 62 00 [14:57:51]MH_I2C_Read... [14:57:51]Read from MH i2c: E2 62 00 54 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 54 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [14:57:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 54 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:57:51]wFMCommunicate OK [14:57:51]SAM_PROTO_GetFieldsCounters done [14:57:51]requested_item shift.num is exist - process it [14:57:51]requested_item shift.opened is exist - process it [14:57:51]req_shift_opened [14:57:51]FM_GetShiftState [14:57:51]SAM_PROTO_GetShiftState [14:57:51]wFMCommunicate request_size=4 [14:57:51]MH_SAM_APDU [14:57:51]CAPDU: 80 13 01 00 [14:57:51]Write to MH i2c: E2 08 00 55 36 80 13 01 00 00 00 00 00 08 [14:57:51]Write i2c OK [14:57:51]MH_I2C_Read... [14:57:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:51]Read from MH i2c: E2 [14:57:51]MH_I2C_Read... [14:57:51]Read from MH i2c: E2 0E 00 [14:57:51]MH_I2C_Read... [14:57:51]Read from MH i2c: E2 0E 00 55 36 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 77 [14:57:51]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [14:57:51]wFMCommunicate OK [14:57:51]SAM_PROTO_GetShiftState done [14:57:51]FM_GetShiftState done [14:57:51]req_shift_opened done [14:57:51]requested_item shift.open_date is exist - process it [14:57:51]req_shift_open_date [14:57:51]req_shift_open_date done [14:57:51]produce_requested_data done [14:57:51]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68436,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [14:57:51]process_action_free close_receipt [14:57:51]json_value_free [14:57:51]json_value_free done [14:57:51]process_json_proto returns [14:57:51]Send response to host [14:57:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68436,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [14:57:51]free response buf [14:57:51]execute_script done [14:57:51]execute_script returns [14:57:51]free content buf [14:57:51]Sock 9.Close socket [14:57:51]Sock 9.Thread stoped [14:57:55]OFD Sender: No OFD packet to send [14:58:00]OFD Sender: No OFD packet to send [14:58:05]OFD Sender: No OFD packet to send [14:58:10]OFD Sender: No OFD packet to send [14:58:15]OFD Sender: No OFD packet to send [14:58:20]OFD Sender: No OFD packet to send [14:58:25]OFD Sender: No OFD packet to send [14:58:30]OFD Sender: No OFD packet to send [14:58:35]OFD Sender: No OFD packet to send [14:58:40]OFD Sender: No OFD packet to send [14:58:45]OFD Sender: No OFD packet to send [14:58:50]OFD Sender: No OFD packet to send [14:58:55]OFD Sender: No OFD packet to send [14:59:00]OFD Sender: No OFD packet to send [14:59:05]OFD Sender: No OFD packet to send [14:59:10]OFD Sender: No OFD packet to send [14:59:15]OFD Sender: No OFD packet to send [14:59:20]OFD Sender: No OFD packet to send [14:59:25]OFD Sender: No OFD packet to send [14:59:30]OFD Sender: No OFD packet to send [14:59:35]OFD Sender: No OFD packet to send [14:59:40]OFD Sender: No OFD packet to send [14:59:45]OFD Sender: No OFD packet to send [14:59:50]OFD Sender: No OFD packet to send [14:59:55]OFD Sender: No OFD packet to send [15:00:00]OFD Sender: No OFD packet to send [15:00:05]OFD Sender: No OFD packet to send [15:00:10]OFD Sender: No OFD packet to send [15:00:15]OFD Sender: No OFD packet to send [15:00: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]OFD Sender: No OFD packet to send [15:01:15]OFD Sender: No OFD packet to send [15:01:20]OFD Sender: No OFD packet to send [15:01:25]OFD Sender: No OFD packet to send [15:01:30]OFD Sender: No OFD packet to send [15:01:35]OFD Sender: No OFD packet to send [15:01:40]OFD Sender: No OFD packet to send [15:01:45]OFD Sender: No OFD packet to send [15:01:50]OFD Sender: No OFD packet to send [15:01:55]OFD Sender: No OFD packet to send [15:02:00]OFD Sender: No OFD packet to send [15:02:05]OFD Sender: No OFD packet to send [15:02:10]OFD Sender: No OFD packet to send [15:02:15]OFD Sender: No OFD packet to send [15:02:20]OFD Sender: No OFD packet to send [15:02:25]OFD Sender: No OFD packet to send [15:02:30]OFD Sender: No OFD packet to send [15:02:35]OFD Sender: No OFD packet to send [15:02:40]OFD Sender: No OFD packet to send [15:02:45]OFD Sender: No OFD packet to send [15:02:50]OFD Sender: No OFD packet to send [15:02:55]OFD Sender: No OFD packet to send [15:03:00]OFD Sender: No OFD packet to send [15:03:05]OFD Sender: No OFD packet to send [15:03:10]OFD Sender: No OFD packet to send [15:03:15]OFD Sender: No OFD packet to send [15:03:20]OFD Sender: No OFD packet to send [15:03:25]OFD Sender: No OFD packet to send [15:03:30]OFD Sender: No OFD packet to send [15:03:35]OFD Sender: No OFD packet to send [15:03:40]OFD Sender: No OFD packet to send [15:03:45]OFD Sender: No OFD packet to send [15:03:50]OFD Sender: No OFD packet to send [15:03:55]OFD Sender: No OFD packet to send [15:04:00]OFD Sender: No OFD packet to send [15:04:05]OFD Sender: No OFD packet to send [15:04:10]OFD Sender: No OFD packet to send [15:04:15]OFD Sender: No OFD packet to send [15:04:20]OFD Sender: No OFD packet to send [15:04:25]OFD Sender: No OFD packet to send [15:04:30]OFD Sender: No OFD packet to send [15:04:35]OFD Sender: No OFD packet to send [15:04:40]OFD Sender: No OFD packet to send [15:04:45]OFD Sender: No OFD packet to send [15:04:50]OFD Sender: No OFD packet to send [15:04:55]OFD Sender: No OFD packet to send [15:05:00]OFD Sender: No OFD packet to send [15:05:05]OFD Sender: No OFD packet to send [15:05:10]OFD Sender: No OFD packet to send [15:05:15]OFD Sender: No OFD packet to send [15:05:20]OFD Sender: No OFD packet to send [15:05:25]OFD Sender: No OFD packet to send [15:05:30]OFD Sender: No OFD packet to send [15:05:35]OFD Sender: No OFD packet to send [15:05:40]OFD Sender: No OFD packet to send [15:05:45]OFD Sender: No OFD packet to send [15:05:50]OFD Sender: No OFD packet to send [15:05:55]OFD Sender: No OFD packet to send [15:06:00]OFD Sender: No OFD packet to send [15:06:05]OFD Sender: No OFD packet to send [15:06:10]OFD Sender: No OFD packet to send [15:06:15]OFD Sender: No OFD packet to send [15:06:20]OFD Sender: No OFD packet to send [15:06:25]OFD Sender: No OFD packet to send [15:06:30]OFD Sender: No OFD packet to send [15:06:35]OFD Sender: No OFD packet to send [15:06:40]OFD Sender: No OFD packet to send [15:06:45]OFD Sender: No OFD packet to send [15:06:50]OFD Sender: No OFD packet to send [15:06:55]OFD Sender: No OFD packet to send [15:07:00]OFD Sender: No OFD packet to send [15:07:05]OFD Sender: No OFD packet to send [15:07:10]OFD Sender: No OFD packet to send [15:07:15]OFD Sender: No OFD packet to send [15:07:20]OFD Sender: No OFD packet to send [15:07:25]OFD Sender: No OFD packet to send [15:07:30]OFD Sender: No OFD packet to send [15:07:35]OFD Sender: No OFD packet to send [15:07:40]OFD Sender: No OFD packet to send [15:07:45]OFD Sender: No OFD packet to send [15:07:50]OFD Sender: No OFD packet to send [15:07:55]OFD Sender: No OFD packet to send [15:08:00]OFD Sender: No OFD packet to send [15:08:05]OFD Sender: No OFD packet to send [15:08:10]OFD Sender: No OFD packet to send [15:08:15]OFD Sender: No OFD packet to send [15:08:21]OFD Sender: No OFD packet to send [15:08:26]OFD Sender: No OFD packet to send [15:08:31]OFD Sender: No OFD packet to send [15:08:36]OFD Sender: No OFD packet to send [15:08:41]OFD Sender: No OFD packet to send [15:08:46]OFD Sender: No OFD packet to send [15:08:51]OFD Sender: No OFD packet to send [15:08:56]OFD Sender: No OFD packet to send [15:09:01]OFD Sender: No OFD packet to send [15:09:06]OFD Sender: No OFD packet to send [15:09:11]OFD Sender: No OFD packet to send [15:09:16]OFD Sender: No OFD packet to send [15:09:21]OFD Sender: No OFD packet to send [15:09:26]OFD Sender: No OFD packet to send [15:09:31]OFD Sender: No OFD packet to send [15:09:36]OFD Sender: No OFD packet to send [15:09:41]OFD Sender: No OFD packet to send [15:09:46]OFD Sender: No OFD packet to send [15:09:51]OFD Sender: No OFD packet to send [15:09:56]OFD Sender: No OFD packet to send [15:10:01]OFD Sender: No OFD packet to send [15:10:06]OFD Sender: No OFD packet to send [15:10:11]OFD Sender: No OFD packet to send [15:10:16]OFD Sender: No OFD packet to send [15:10:21]OFD Sender: No OFD packet to send [15:10:26]OFD Sender: No OFD packet to send [15:10:31]OFD Sender: No OFD packet to send [15:10:36]OFD Sender: No OFD packet to send [15:10:41]OFD Sender: No OFD packet to send [15:10:46]OFD Sender: No OFD packet to send [15:10:51]OFD Sender: No OFD packet to send [15:10:56]OFD Sender: No OFD packet to send [15:11:01]OFD Sender: No OFD packet to send [15:11:06]OFD Sender: No OFD packet to send [15:11:11]OFD Sender: No OFD packet to send [15:11:16]OFD Sender: No OFD packet to send [15:11:21]OFD Sender: No OFD packet to send [15:11:26]OFD Sender: No OFD packet to send [15:11:31]OFD Sender: No OFD packet to send [15:11:36]OFD Sender: No OFD packet to send [15:11:41]OFD Sender: No OFD packet to send [15:11:46]OFD Sender: No OFD packet to send [15:11:51]OFD Sender: No OFD packet to send [15:11:56]OFD Sender: No OFD packet to send [15:12:01]OFD Sender: No OFD packet to send [15:12:06]OFD Sender: No OFD packet to send [15:12:11]OFD Sender: No OFD packet to send [15:12:16]OFD Sender: No OFD packet to send [15:12:21]OFD Sender: No OFD packet to send [15:12:26]OFD Sender: No OFD packet to send [15:12:31]OFD Sender: No OFD packet to send [15:12:36]OFD Sender: No OFD packet to send [15:12:41]OFD Sender: No OFD packet to send [15:12:46]OFD Sender: No OFD packet to send [15:12:51]OFD Sender: No OFD packet to send [15:12:56]OFD Sender: No OFD packet to send [15:13:01]OFD Sender: No OFD packet to send [15:13:06]OFD Sender: No OFD packet to send [15:13:11]OFD Sender: No OFD packet to send [15:13:16]OFD Sender: No OFD packet to send [15:13:21]OFD Sender: No OFD packet to send [15:13:26]OFD Sender: No OFD packet to send [15:13:31]OFD Sender: No OFD packet to send [15:13:36]OFD Sender: No OFD packet to send [15:13:41]OFD Sender: No OFD packet to send [15:13:46]OFD Sender: No OFD packet to send [15:13:51]OFD Sender: No OFD packet to send [15:13:56]OFD Sender: No OFD packet to send [15:14:01]OFD Sender: No OFD packet to send [15:14:06]OFD Sender: No OFD packet to send [15:14:11]OFD Sender: No OFD packet to send [15:14:16]OFD Sender: No OFD packet to send [15:14:21]OFD Sender: No OFD packet to send [15:14:26]OFD Sender: No OFD packet to send [15:14:31]OFD Sender: No OFD packet to send [15:14:36]OFD Sender: No OFD packet to send [15:14:41]OFD Sender: No OFD packet to send [15:14:46]OFD Sender: No OFD packet to send [15:14:51]OFD Sender: No OFD packet to send [15:14:56]OFD Sender: No OFD packet to send [15:15:01]OFD Sender: No OFD packet to send [15:15:06]OFD Sender: No OFD packet to send [15:15:11]OFD Sender: No OFD packet to send [15:15:16]OFD Sender: No OFD packet to send [15:15:21]OFD Sender: No OFD packet to send [15:15:26]OFD Sender: No OFD packet to send [15:15:31]OFD Sender: No OFD packet to send [15:15:36]OFD Sender: No OFD packet to send [15:15:41]OFD Sender: No OFD packet to send [15:15:46]OFD Sender: No OFD packet to send [15:15:51]OFD Sender: No OFD packet to send [15:15:56]OFD Sender: No OFD packet to send [15:16:01]OFD Sender: No OFD packet to send [15:16:06]OFD Sender: No OFD packet to send [15:16:11]OFD Sender: No OFD packet to send [15:16:16]OFD Sender: No OFD packet to send [15:16:21]OFD Sender: No OFD packet to send [15:16:26]OFD Sender: No OFD packet to send [15:16:31]OFD Sender: No OFD packet to send [15:16:36]OFD Sender: No OFD packet to send [15:16:41]OFD Sender: No OFD packet to send [15:16:46]OFD Sender: No OFD packet to send [15:16:51]OFD Sender: No OFD packet to send [15:16:56]OFD Sender: No OFD packet to send [15:17:01]OFD Sender: No OFD packet to send [15:17:06]OFD Sender: No OFD packet to send [15:17:11]OFD Sender: No OFD packet to send [15:17:16]OFD Sender: No OFD packet to send [15:17:21]OFD Sender: No OFD packet to send [15:17:26]OFD Sender: No OFD packet to send [15:17:31]OFD Sender: No OFD packet to send [15:17:36]OFD Sender: No OFD packet to send [15:17:41]OFD Sender: No OFD packet to send [15:17:46]OFD Sender: No OFD packet to send [15:17:51]OFD Sender: No OFD packet to send [15:17:56]OFD Sender: No OFD packet to send [15:18:01]OFD Sender: No OFD packet to send [15:18:06]OFD Sender: No OFD packet to send [15:18:11]OFD Sender: No OFD packet to send [15:18:16]OFD Sender: No OFD packet to send [15:18:21]OFD Sender: No OFD packet to send [15:18:26]OFD Sender: No OFD packet to send [15:18:31]OFD Sender: No OFD packet to send [15:18:36]OFD Sender: No OFD packet to send [15:18:41]OFD Sender: No OFD packet to send [15:18:46]OFD Sender: No OFD packet to send [15:18:51]OFD Sender: No OFD packet to send [15:18:56]OFD Sender: No OFD packet to send [15:19:01]OFD Sender: No OFD packet to send [15:19:06]OFD Sender: No OFD packet to send [15:19:11]OFD Sender: No OFD packet to send [15:19:16]OFD Sender: No OFD packet to send [15:19:21]OFD Sender: No OFD packet to send [15:19:26]OFD Sender: No OFD packet to send [15:19:31]OFD Sender: No OFD packet to send [15:19:36]OFD Sender: No OFD packet to send [15:19:41]OFD Sender: No OFD packet to send [15:19:46]OFD Sender: No OFD packet to send [15:19:51]OFD Sender: No OFD packet to send [15:19:56]OFD Sender: No OFD packet to send [15:20:01]OFD Sender: No OFD packet to send [15:20:06]OFD Sender: No OFD packet to send [15:20:11]OFD Sender: No OFD packet to send [15:20:16]OFD Sender: No OFD packet to send [15:20:21]OFD Sender: No OFD packet to send [15:20:26]OFD Sender: No OFD packet to send [15:20:31]OFD Sender: No OFD packet to send [15:20:36]OFD Sender: No OFD packet to send [15:20:41]OFD Sender: No OFD packet to send [15:20:46]OFD Sender: No OFD packet to send [15:20:51]OFD Sender: No OFD packet to send [15:20:56]OFD Sender: No OFD packet to send [15:21:01]OFD Sender: No OFD packet to send [15:21:06]OFD Sender: No OFD packet to send [15:21:11]OFD Sender: No OFD packet to send [15:21:16]OFD Sender: No OFD packet to send [15:21:21]OFD Sender: No OFD packet to send [15:21:26]OFD Sender: No OFD packet to send [15:21:31]OFD Sender: No OFD packet to send [15:21:36]OFD Sender: No OFD packet to send [15:21:41]OFD Sender: No OFD packet to send [15:21:46]OFD Sender: No OFD packet to send [15:21:51]OFD Sender: No OFD packet to send [15:21:56]OFD Sender: No OFD packet to send [15:22:01]OFD Sender: No OFD packet to send [15:22:06]OFD Sender: No OFD packet to send [15:22:11]OFD Sender: No OFD packet to send [15:22:16]OFD Sender: No OFD packet to send [15:22:21]OFD Sender: No OFD packet to send [15:22:26]OFD Sender: No OFD packet to send [15:22:31]OFD Sender: No OFD packet to send [15:22:36]OFD Sender: No OFD packet to send [15:22:41]OFD Sender: No OFD packet to send [15:22:46]OFD Sender: No OFD packet to send [15:22:51]OFD Sender: No OFD packet to send [15:22:56]OFD Sender: No OFD packet to send [15:23:01]OFD Sender: No OFD packet to send [15:23:06]OFD Sender: No OFD packet to send [15:23:11]OFD Sender: No OFD packet to send [15:23:16]OFD Sender: No OFD packet to send [15:23:21]OFD Sender: No OFD packet to send [15:23:26]OFD Sender: No OFD packet to send [15:23:31]OFD Sender: No OFD packet to send [15:23:36]OFD Sender: No OFD packet to send [15:23:41]OFD Sender: No OFD packet to send [15:23:46]OFD Sender: No OFD packet to send [15:23:51]OFD Sender: No OFD packet to send [15:23:56]OFD Sender: No OFD packet to send [15:24:01]OFD Sender: No OFD packet to send [15:24:06]OFD Sender: No OFD packet to send [15:24:11]OFD Sender: No OFD packet to send [15:24:16]OFD Sender: No OFD packet to send [15:24:21]OFD Sender: No OFD packet to send [15:24:26]OFD Sender: No OFD packet to send [15:24:31]OFD Sender: No OFD packet to send [15:24:36]OFD Sender: No OFD packet to send [15:24:41]OFD Sender: No OFD packet to send [15:24:46]OFD Sender: No OFD packet to send [15:24:51]OFD Sender: No OFD packet to send [15:24:56]OFD Sender: No OFD packet to send [15:25:01]OFD Sender: No OFD packet to send [15:25:06]OFD Sender: No OFD packet to send [15:25:11]OFD Sender: No OFD packet to send [15:25:16]OFD Sender: No OFD packet to send [15:25:21]OFD Sender: No OFD packet to send [15:25:26]OFD Sender: No OFD packet to send [15:25:31]OFD Sender: No OFD packet to send [15:25:36]OFD Sender: No OFD packet to send [15:25:41]OFD Sender: No OFD packet to send [15:25:46]OFD Sender: No OFD packet to send [15:25:51]OFD Sender: No OFD packet to send [15:25:56]OFD Sender: No OFD packet to send [15:26:01]OFD Sender: No OFD packet to send [15:26:06]OFD Sender: No OFD packet to send [15:26:11]OFD Sender: No OFD packet to send [15:26:16]OFD Sender: No OFD packet to send [15:26:21]OFD Sender: No OFD packet to send [15:26:26]OFD Sender: No OFD packet to send [15:26:31]OFD Sender: No OFD packet to send [15:26:36]accept exits with 7 [15:26:36]New connection [15:26:36]New thread 3067276644 created [15:26:36]Thread 3067133284 joined [15:26:36]Waiting for new connection... [15:26:36] Sock 7.Parse request [15:26:36]Sock 7.Check first char [15:26:36]Sock 7.First char is OK [15:26:36]request: POST /json_proto HTTP/1.0 [15:26:36]Method: POST [15:26:36]URL: /json_proto [15:26:36]Method is POST - this is cgi request [15:26:36]url: /json_proto [15:26:36]query_string will be loaded in cgi processing [15:26:36]execute_cgi json_proto POST (null) [15:26:36]execute_cgi path=json_proto method=POST [15:26:36]POST find Content-Length [15:26:36]Host: 172.17.52.3:8080 [15:26:36]Content-Length: 766 [15:26:36]Content-Type: application/json [15:26:36] [15:26:36]POST finish read [15:26:36]Found Content-Length = 766 [15:26:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210434", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.030, "sum" : 470.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 470.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:36]execute_script... [15:26:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210434", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.030, "sum" : 470.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 470.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:36]POST & json_proto [15:26:36]process_json_proto [15:26:36]json parsed OK: [15:26:36]protocol is kg_v1.0 [15:26:36]action value=close_receipt [15:26:36]process_action close_receipt [15:26:36]cmd_close_receipt [15:26:36]MH_GetDate [15:26:36]Write to MH i2c: F0 00 00 56 36 7B [15:26:36]Write i2c OK [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: F0 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: F0 09 00 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: F0 09 00 56 36 00 B5 15 19 67 D7 68 A5 64 16 [15:26:36]GetLastDocTimeStamp 1729695477 [15:26:36]current date 1729697205 [15:26:36]FM_GetShiftState [15:26:36]SAM_PROTO_GetShiftState [15:26:36]wFMCommunicate request_size=4 [15:26:36]MH_SAM_APDU [15:26:36]CAPDU: 80 13 01 00 [15:26:36]Write to MH i2c: E2 08 00 57 36 80 13 01 00 00 00 00 00 0A [15:26:36]Write i2c OK [15:26:36]MH_I2C_Read... [15:26:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:36]Read from MH i2c: E2 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 0E 00 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 0E 00 57 36 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 79 [15:26:36]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [15:26:36]wFMCommunicate OK [15:26:36]SAM_PROTO_GetShiftState done [15:26:36]FM_GetShiftState done [15:26:36]opened in 1729641385 [15:26:36]opened+sec_in_day 1729727785 [15:26:36]quantity*price = 47030 [15:26:36]sum+1 = 47032 [15:26:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 470.31 НСП 1% : 4.16 НДС 12% : 49.94 Наличными: 0.00 Безнал.: 470.31 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 60 23.10.2024 15:26 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871809 ФД: 68437 ФПД: 110613825341774 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T152646&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68437&fm=110613825341774&tin=02508201610067®Number=0000000000091756&sum=47031 [15:26:37]StoreToDocumentArchive [15:26:37]shift 507 fd 68437 [15:26:37]save to /storage/0507/doc_00068437 [15:26:37]save last doc name /storage/0507/doc_00068437 to /storage/kkm_last_doc_name [15:26:37]save OK [15:26:37]Clear old archive folders... [15:26:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:26:37]tlvbuf is 0205B780 [15:26:37]SAM_PROTO_ClearQueue [15:26:37]wFMCommunicate request_size=4 [15:26:37]MH_SAM_APDU [15:26:37]CAPDU: 80 09 00 00 [15:26:37]Write to MH i2c: E2 08 00 64 36 80 09 00 00 00 00 00 00 0C [15:26:37]Write i2c OK [15:26:37]MH_I2C_Read... [15:26:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:26:37]Read from MH i2c: E2 [15:26:37]MH_I2C_Read... [15:26:37]Read from MH i2c: E2 03 00 [15:26:37]MH_I2C_Read... [15:26:37]Read from MH i2c: E2 03 00 64 36 00 90 00 0E [15:26:37]RAPDU: 90 00 [15:26:37]wFMCommunicate OK [15:26:37]SAM_PROTO_ClearQueue done [15:26:37]KKMCreateOFDPacket [15:26:37]OFDProtocolAddRootSTLVToBuf [15:26:37]FM_MakeSignedData [15:26:37]FM_MakeSignedData [15:26:37]SAM_PROTO_SignData [15:26:37]wFMCommunicate request_size=4 [15:26:37]MH_SAM_APDU [15:26:37]CAPDU: 80 0D 01 02 [15:26:37]Write to MH i2c: E2 08 00 65 36 80 0D 01 02 00 00 00 00 14 [15:26:37]Write i2c OK [15:26:37]MH_I2C_Read... [15:26:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:26:37]Read from MH i2c: E2 [15:26:37]MH_I2C_Read... [15:26:37]Read from MH i2c: E2 03 00 [15:26:37]MH_I2C_Read... [15:26:37]Read from MH i2c: E2 03 00 65 36 00 90 00 0F [15:26:37]RAPDU: 90 00 [15:26:37]wFMCommunicate OK [15:26:37]wFMCommunicate request_size=255 [15:26:37]MH_SAM_APDU [15:26:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 76 1B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B7 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 B7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 B6 15 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 55 0B 01 00 35 04 06 00 64 [15:26:37]Write to MH i2c: E2 02 01 66 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 76 1B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B7 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 B7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 B6 15 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 55 0B 01 00 35 04 06 00 64 00 00 B4 [15:26:37]Write i2c OK [15:26:37]MH_I2C_Read... [15:26:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:38]Read from MH i2c: E2 [15:26:38]MH_I2C_Read... [15:26:38]Read from MH i2c: E2 03 00 [15:26:38]MH_I2C_Read... [15:26:38]Read from MH i2c: E2 03 00 66 36 00 90 00 10 [15:26:38]RAPDU: 90 00 [15:26:38]wFMCommunicate OK [15:26:38]wFMCommunicate request_size=10 [15:26:38]MH_SAM_APDU [15:26:38]CAPDU: 80 0D 02 02 05 9A 49 C4 49 4E [15:26:38]Write to MH i2c: E2 0D 00 67 36 80 0D 02 02 05 00 9A 49 C4 49 4E 00 00 5F [15:26:38]Write i2c OK [15:26:38]MH_I2C_Read... [15:26:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:38]Read from MH i2c: E2 [15:26:38]MH_I2C_Read... [15:26:38]Read from MH i2c: E2 03 00 [15:26:38]MH_I2C_Read... [15:26:38]Read from MH i2c: E2 03 00 67 36 00 90 00 11 [15:26:38]RAPDU: 90 00 [15:26:38]wFMCommunicate OK [15:26:38]wFMCommunicate request_size=4 [15:26:38]MH_SAM_APDU [15:26:38]CAPDU: 80 0D 03 02 [15:26:38]Write to MH i2c: E2 08 00 68 36 80 0D 03 02 00 00 00 00 19 [15:26:38]Write i2c OK [15:26:38]MH_I2C_Read... [15:26:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:26:38]Read from MH i2c: E2 [15:26:38]MH_I2C_Read... [15:26:38]Read from MH i2c: E2 0B 00 [15:26:38]MH_I2C_Read... [15:26:38]Read from MH i2c: E2 0B 00 68 36 00 49 E2 54 91 3D 20 35 7C 90 00 38 [15:26:38]RAPDU: 49 E2 54 91 3D 20 35 7C 90 00 [15:26:38]wFMCommunicate OK [15:26:38]SAM_PROTO_SignData done [15:26:38]FM_MakeSignedData done [15:26:38]CreateOFDProtocolMessage [15:26:38]wFMCommunicate request_size=4 [15:26:38]MH_SAM_APDU [15:26:38]CAPDU: 80 11 00 00 [15:26:38]Write to MH i2c: E2 08 00 69 36 80 11 00 00 00 00 00 00 19 [15:26:38]Write i2c OK [15:26:38]MH_I2C_Read... [15:26:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:38]Read from MH i2c: E2 [15:26:38]MH_I2C_Read... [15:26:38]Read from MH i2c: E2 17 00 [15:26:38]MH_I2C_Read... [15:26:38]Read from MH i2c: E2 17 00 69 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 6D [15:26:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [15:26:38]wFMCommunicate OK [15:26:38]CreateOFDProtocolMessage done [15:26:38]OFDSenderStorePacket 68437 [15:26:38]StoreOFDPacket docnum=68437 [15:26:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 25 8C 07 01 AC DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 76 1B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B7 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 B7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 B6 15 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 55 0B 01 00 35 04 06 00 64 9A 49 C4 49 4E 49 E2 54 91 3D 20 35 7C [15:26:38]CheckFolder [15:26:38]dirname=/storage/ofd_packets [15:26:38]CheckFolder done [15:26:38]ProducePacketName [15:26:38]name=ofd_packets/00068437 [15:26:38]NVStorageSaveData ofd_packets/00068437 [15:26:38]File name is /storage/ofd_packets/00068437 [15:26:38]Write 301 bytes [15:26:38]NVStorageSaveData done [15:26:38]OFDSenderStorePacket done [15:26:38]KKMCreateOFDPacket done [15:26:38]NVStorageSaveData kkm_last_timestamp [15:26:38]File name is /storage/kkm_last_timestamp [15:26:38]Write 4 bytes [15:26:38]NVStorageSaveData done [15:26:38]ExternCall_PrintAddStr [15:26:38]wPrintStart [15:26:38]Write to MH i2c: 01 00 00 6A 36 A0 [15:26:38]Write i2c OK [15:26:38]MH_I2C_Read... [15:26:38]Read from MH i2c: 01 [15:26:38]MH_I2C_Read... [15:26:38]Read from MH i2c: 01 07 00 [15:26:38]MH_I2C_Read... [15:26:38]Read from MH i2c: 01 07 00 6A 36 00 04 00 00 00 FF 0F B9 [15:26:38]RasterBufferAndPrint [15:26:38]line Счет N : (1)210434 [15:26:38]line ИНН: 02508201610067 [15:26:38]line Контрольно-Кассовый Чек [15:26:38]line ПРОДАЖА [15:26:38]line ТРК (МРК, ГНК) : 11 [15:26:38]line Товар: 2710124130 [15:26:38]line Аи-92-К-2 [15:26:38]line 7.030 * 66.90 [15:26:38]line = 470.31 [15:26:38]line НДС 12% НСП 1% [15:26:38]line > о реализуемом товаре [15:26:38]line ИТОГО: 470.31 [15:26:38]line НСП 1% : 4.16 [15:26:38]line НДС 12% : 49.94 [15:26:38]line Наличными: 0.00 [15:26:38]line Безнал.: 470.31 [15:26:38]line Место: АЗС № 147 "Партнер Нефть" [15:26:38]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [15:26:38]line СНО: Общий режим [15:26:38]line Чек 60 23.10.2024 15:26 [15:26:38]line Смена: 507 ФФД: 1.0 [15:26:38]line ЗНМ: 0300000094 [15:26:38]line РНМ: 0000000000091756 [15:26:38]line Версия ККМ: 001 [15:26:38]line Платежная система: Mbank [15:26:38]line ФМ: 0000000000871809 [15:26:38]line ФД: 68437 [15:26:38]line ФПД: 110613825341774 [15:26:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T152646&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68437&fm=110613825341774&tin=02508201610067®Number=0000000000091756&sum=47031 [15:26:38]OFD Sender: Processing packet 68437 [packets to send 8, broken 7] [15:26:38]ProducePacketName [15:26:38]name=ofd_packets/00068437 [15:26:38]OFD Sender: To server: pG, [15:26:38]CommunicateWithHost lk.salyk.kg:30040 [15:26:38]ConnectInit lk.salyk.kg [15:26:38]written 0, free lines is 4095 [15:26:38]Connected sock=11 [15:26:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 25 8C 07 01 AC DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 76 1B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B7 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 B7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 B6 15 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 55 0B 01 00 35 04 06 00 64 9A 49 C4 49 4E 49 E2 54 91 3D 20 35 7C [15:26:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 27 81 47 00 B7 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 55 0B 01 00 F4 03 04 00 AA BB 18 67 B6 04 01 00 00 35 17 95 78 9D 7C 8F D1 [15:26:38]CommunicateWithHost err = 0 [15:26:38]CheckOFDResponse [15:26:38]1017 (14) - 77093643461234 [15:26:38]1041 (16) - 0000000000871809 [15:26:38]1040 (4) - 68437 [15:26:38]1012 (4) - 23.10.2024 09:02 [15:26:38]1206 (1) - 0 [15:26:38]OFD Sender: Remove packet 68437 [15:26:38]ProducePacketName [15:26:38]name=ofd_packets/00068437 [15:26:38]NVStorageDeleteData [15:26:38]Write to MH i2c: 01 00 00 92 36 C8 [15:26:38]Write i2c OK [15:26:38]MH_I2C_Read... [15:26:38]Read from MH i2c: 01 [15:26:38]MH_I2C_Read... [15:26:38]Read from MH i2c: 01 07 00 [15:26:38]MH_I2C_Read... [15:26:38]Read from MH i2c: 01 07 00 92 36 00 04 00 00 00 DC 0C BB [15:26:38]RasterBufferAndPrint [15:26:38]line [15:26:38]line [15:26:38]line [15:26:38]line [15:26:38]line [15:26:38]written 0, free lines is 3295 [15:26:38]MH_Cut [15:26:38]Write to MH i2c: D1 01 00 99 36 01 A1 [15:26:38]Write i2c OK [15:26:38]MH_I2C_Read... [15:26:38]Read from MH i2c: D1 [15:26:38]MH_I2C_Read... [15:26:38]Read from MH i2c: D1 01 00 [15:26:38]MH_I2C_Read... [15:26:38]Read from MH i2c: D1 01 00 99 36 00 A0 [15:26:38]Write to MH i2c: 01 00 00 9A 36 D0 [15:26:38]Write i2c OK [15:26:38]MH_I2C_Read... [15:26:39]OFD Sender: No OFD packet to send [15:26:39]*** Cut start [15:26:39]*** Partial cut [15:26:39]*** CUTSNS_PIN = 1 [15:26:39]*** CUTSNS_PIN = 0 [15:26:39]*** Brake cut motor [15:26:40]Read from MH i2c: 01 [15:26:40]MH_I2C_Read... [15:26:40]*** Stop cut motor [15:26:40]*** Cut end [15:26:40]Read from MH i2c: 01 07 00 [15:26:40]MH_I2C_Read... [15:26:40]Read from MH i2c: 01 07 00 9A 36 00 04 00 00 00 FF 0F E9 [15:26:40]process_action close_receipt done [15:26:40]requested_data is exist [15:26:40]produce_requested_data [15:26:40]requested_item fm.sn is exist - process it [15:26:40]wFMCommunicate request_size=4 [15:26:40]MH_SAM_APDU [15:26:40]CAPDU: 80 11 00 00 [15:26:40]Write to MH i2c: E2 08 00 9B 36 80 11 00 00 00 00 00 00 4B [15:26:40]Write i2c OK [15:26:40]MH_I2C_Read... [15:26:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:40]Read from MH i2c: E2 [15:26:40]MH_I2C_Read... [15:26:40]Read from MH i2c: E2 17 00 [15:26:40]MH_I2C_Read... [15:26:40]Read from MH i2c: E2 17 00 9B 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 9F [15:26:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [15:26:40]wFMCommunicate OK [15:26:40]requested_item fd.num is exist - process it [15:26:40]SAM_PROTO_GetFieldsCounters [15:26:40]wFMCommunicate request_size=4 [15:26:40]MH_SAM_APDU [15:26:40]CAPDU: 80 13 00 00 [15:26:40]Write to MH i2c: E2 08 00 9C 36 80 13 00 00 00 00 00 00 4E [15:26:40]Write i2c OK [15:26:40]MH_I2C_Read... [15:26:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:40]Read from MH i2c: E2 [15:26:40]MH_I2C_Read... [15:26:40]Read from MH i2c: E2 62 00 [15:26:40]MH_I2C_Read... [15:26:40]Read from MH i2c: E2 62 00 9C 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 55 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [15:26:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 55 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:26:40]wFMCommunicate OK [15:26:40]SAM_PROTO_GetFieldsCounters done [15:26:40]requested_item shift.num is exist - process it [15:26:40]requested_item shift.opened is exist - process it [15:26:40]req_shift_opened [15:26:40]FM_GetShiftState [15:26:40]SAM_PROTO_GetShiftState [15:26:40]wFMCommunicate request_size=4 [15:26:40]MH_SAM_APDU [15:26:40]CAPDU: 80 13 01 00 [15:26:40]Write to MH i2c: E2 08 00 9D 36 80 13 01 00 00 00 00 00 50 [15:26:40]Write i2c OK [15:26:40]MH_I2C_Read... [15:26:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:40]Read from MH i2c: E2 [15:26:40]MH_I2C_Read... [15:26:40]Read from MH i2c: E2 0E 00 [15:26:40]MH_I2C_Read... [15:26:40]Read from MH i2c: E2 0E 00 9D 36 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 BF [15:26:40]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [15:26:40]wFMCommunicate OK [15:26:40]SAM_PROTO_GetShiftState done [15:26:40]FM_GetShiftState done [15:26:40]req_shift_opened done [15:26:40]requested_item shift.open_date is exist - process it [15:26:40]req_shift_open_date [15:26:40]req_shift_open_date done [15:26:40]produce_requested_data done [15:26:40]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68437,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [15:26:40]process_action_free close_receipt [15:26:40]json_value_free [15:26:40]json_value_free done [15:26:40]process_json_proto returns [15:26:40]Send response to host [15:26:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68437,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [15:26:40]free response buf [15:26:40]execute_script done [15:26:40]execute_script returns [15:26:40]free content buf [15:26:40]Sock 7.Close socket [15:26:40]Sock 7.Thread stoped [15:26:44]OFD Sender: No OFD packet to send [15:26:49]OFD Sender: No OFD packet to send [15:26:54]OFD Sender: No OFD packet to send [15:26:59]OFD Sender: No OFD packet to send [15:27:04]OFD Sender: No OFD packet to send [15:27:09]OFD Sender: No OFD packet to send [15:27:14]OFD Sender: No OFD packet to send [15:27:19]OFD Sender: No OFD packet to send [15:27:24]OFD Sender: No OFD packet to send [15:27:29]OFD Sender: No OFD packet to send [15:27:34]OFD Sender: No OFD packet to send [15:27:39]OFD Sender: No OFD packet to send [15:27:44]OFD Sender: No OFD packet to send [15:27:49]OFD Sender: No OFD packet to send [15:27:54]OFD Sender: No OFD packet to send [15:27:59]OFD Sender: No OFD packet to send [15:28:04]OFD Sender: No OFD packet to send [15:28:09]OFD Sender: No OFD packet to send [15:28:14]OFD Sender: No OFD packet to send [15:28:19]OFD Sender: No OFD packet to send [15:28:24]OFD Sender: No OFD packet to send [15:28:29]OFD Sender: No OFD packet to send [15:28:34]OFD Sender: No OFD packet to send [15:28:39]OFD Sender: No OFD packet to send [15:28:44]OFD Sender: No OFD packet to send [15:28:49]OFD Sender: No OFD packet to send [15:28:54]OFD Sender: No OFD packet to send [15:28:59]OFD Sender: No OFD packet to send [15:29:04]OFD Sender: No OFD packet to send [15:29:09]OFD Sender: No OFD packet to send [15:29:14]OFD Sender: No OFD packet to send [15:29:19]OFD Sender: No OFD packet to send [15:29:24]OFD Sender: No OFD packet to send [15:29:29]OFD Sender: No OFD packet to send [15:29:34]OFD Sender: No OFD packet to send [15:29:39]OFD Sender: No OFD packet to send [15:29:44]OFD Sender: No OFD packet to send [15:29:49]OFD Sender: No OFD packet to send [15:29:54]OFD Sender: No OFD packet to send [15:29:59]OFD Sender: No OFD packet to send [15:30:04]OFD Sender: No OFD packet to send [15:30:09]OFD Sender: No OFD packet to send [15:30:14]OFD Sender: No OFD packet to send [15:30:19]OFD Sender: No OFD packet to send [15:30:24]OFD Sender: No OFD packet to send [15:30:29]OFD Sender: No OFD packet to send [15:30:34]OFD Sender: No OFD packet to send [15:30:39]OFD Sender: No OFD packet to send [15:30:44]OFD Sender: No OFD packet to send [15:30:49]OFD Sender: No OFD packet to send [15:30:54]OFD Sender: No OFD packet to send [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: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:54]OFD Sender: No OFD packet to send [15:31:59]OFD Sender: No OFD packet to send [15:32:04]OFD Sender: No OFD packet to send [15:32:09]OFD Sender: No OFD packet to send [15:32:14]OFD Sender: No OFD packet to send [15:32:19]OFD Sender: No OFD packet to send [15:32: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:24]OFD Sender: No OFD packet to send [15:33:29]OFD Sender: No OFD packet to send [15:33:34]OFD Sender: No OFD packet to send [15:33:39]OFD Sender: No OFD packet to send [15:33:44]OFD Sender: No OFD packet to send [15:33:49]OFD Sender: No OFD packet to send [15:33:54]OFD Sender: No OFD packet to send [15:33:59]OFD Sender: No OFD packet to send [15:34:04]OFD Sender: No OFD packet to send [15:34:09]OFD Sender: No OFD packet to send [15:34:14]OFD Sender: No OFD packet to send [15:34:19]OFD Sender: No OFD packet to send [15:34:24]OFD Sender: No OFD packet to send [15:34:29]OFD Sender: No OFD packet to send [15:34:34]OFD Sender: No OFD packet to send [15:34:39]OFD Sender: No OFD packet to send [15:34:44]OFD Sender: No OFD packet to send [15:34:49]OFD Sender: No OFD packet to send [15:34:54]OFD Sender: No OFD packet to send [15:34:59]OFD Sender: No OFD packet to send [15:35:04]OFD Sender: No OFD packet to send [15:35:09]OFD Sender: No OFD packet to send [15:35:14]OFD Sender: No OFD packet to send [15:35:19]OFD Sender: No OFD packet to send [15:35:24]OFD Sender: No OFD packet to send [15:35:29]OFD Sender: No OFD packet to send [15:35:34]OFD Sender: No OFD packet to send [15:35:39]OFD Sender: No OFD packet to send [15:35:44]OFD Sender: No OFD packet to send [15:35:49]OFD Sender: No OFD packet to send [15:35:54]OFD Sender: No OFD packet to send [15:35:59]OFD Sender: No OFD packet to send [15:36:04]OFD Sender: No OFD packet to send [15:36:09]OFD Sender: No OFD packet to send [15:36:14]OFD Sender: No OFD packet to send [15:36:19]OFD Sender: No OFD packet to send [15:36: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:19]OFD Sender: No OFD packet to send [15:39:24]OFD Sender: No OFD packet to send [15:39:29]OFD Sender: No OFD packet to send [15:39:34]OFD Sender: No OFD packet to send [15:39:39]OFD Sender: No OFD packet to send [15:39:44]OFD Sender: No OFD packet to send [15:39:49]OFD Sender: No OFD packet to send [15:39:54]OFD Sender: No OFD packet to send [15:39:59]OFD Sender: No OFD packet to send [15:40:04]OFD Sender: No OFD packet to send [15:40:09]OFD Sender: No OFD packet to send [15:40:14]OFD Sender: No OFD packet to send [15:40:19]OFD Sender: No OFD packet to send [15:40:24]OFD Sender: No OFD packet to send [15:40:29]OFD Sender: No OFD packet to send [15:40:34]OFD Sender: No OFD packet to send [15:40:39]OFD Sender: No OFD packet to send [15:40:44]OFD Sender: No OFD packet to send [15:40:49]OFD Sender: No OFD packet to send [15:40:54]OFD Sender: No OFD packet to send [15:40:59]OFD Sender: No OFD packet to send [15:41:04]OFD Sender: No OFD packet to send [15:41:09]OFD Sender: No OFD packet to send [15:41:14]OFD Sender: No OFD packet to send [15:41:19]OFD Sender: No OFD packet to send [15:41:24]OFD Sender: No OFD packet to send [15:41:29]OFD Sender: No OFD packet to send [15:41:34]OFD Sender: No OFD packet to send [15:41:39]OFD Sender: No OFD packet to send [15:41:44]OFD Sender: No OFD packet to send [15:41:49]OFD Sender: No OFD packet to send [15:41:54]OFD Sender: No OFD packet to send [15:41:59]OFD Sender: No OFD packet to send [15:42:04]OFD Sender: No OFD packet to send [15:42:09]OFD Sender: No OFD packet to send [15:42:14]OFD Sender: No OFD packet to send [15:42:19]OFD Sender: No OFD packet to send [15:42:24]OFD Sender: No OFD packet to send [15:42:29]OFD Sender: No OFD packet to send [15:42:34]OFD Sender: No OFD packet to send [15:42:39]OFD Sender: No OFD packet to send [15:42:44]OFD Sender: No OFD packet to send [15:42:49]OFD Sender: No OFD packet to send [15:42:54]OFD Sender: No OFD packet to send [15:42:59]OFD Sender: No OFD packet to send [15:43:04]OFD Sender: No OFD packet to send [15:43:09]OFD Sender: No OFD packet to send [15:43:14]OFD Sender: No OFD packet to send [15:43:19]OFD Sender: No OFD packet to send [15:43:24]OFD Sender: No OFD packet to send [15:43:29]OFD Sender: No OFD packet to send [15:43:34]OFD Sender: No OFD packet to send [15:43:39]OFD Sender: No OFD packet to send [15:43:44]OFD Sender: No OFD packet to send [15:43:49]OFD Sender: No OFD packet to send [15:43:54]OFD Sender: No OFD packet to send [15:43:59]OFD Sender: No OFD packet to send [15:44:04]OFD Sender: No OFD packet to send [15:44:09]OFD Sender: No OFD packet to send [15:44:14]OFD Sender: No OFD packet to send [15:44:19]OFD Sender: No OFD packet to send [15:44:24]OFD Sender: No OFD packet to send [15:44:29]OFD Sender: No OFD packet to send [15:44:34]OFD Sender: No OFD packet to send [15:44:39]OFD Sender: No OFD packet to send [15:44:44]OFD Sender: No OFD packet to send [15:44:49]OFD Sender: No OFD packet to send [15:44:54]OFD Sender: No OFD packet to send [15:45:00]OFD Sender: No OFD packet to send [15:45:05]OFD Sender: No OFD packet to send [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:40]OFD Sender: No OFD packet to send [15:45:45]OFD Sender: No OFD packet to send [15:45:50]OFD Sender: No OFD packet to send [15:45:55]OFD Sender: No OFD packet to send [15:46:00]OFD Sender: No OFD packet to send [15:46:05]OFD Sender: No OFD packet to send [15:46:10]OFD Sender: No OFD packet to send [15:46:15]OFD Sender: No OFD packet to send [15:46:20]OFD Sender: No OFD packet to send [15:46:25]OFD Sender: No OFD packet to send [15:46:30]OFD Sender: No OFD packet to send [15:46:35]OFD Sender: No OFD packet to send [15:46:40]OFD Sender: No OFD packet to send [15:46:45]OFD Sender: No OFD packet to send [15:46:50]OFD Sender: No OFD packet to send [15:46:55]OFD Sender: No OFD packet to send [15:47:00]OFD Sender: No OFD packet to send [15:47:05]OFD Sender: No OFD packet to send [15:47:10]OFD Sender: No OFD packet to send [15:47:15]OFD Sender: No OFD packet to send [15:47:20]OFD Sender: No OFD packet to send [15:47:25]OFD Sender: No OFD packet to send [15:47:30]OFD Sender: No OFD packet to send [15:47:35]OFD Sender: No OFD packet to send [15:47:40]OFD Sender: No OFD packet to send [15:47:45]OFD Sender: No OFD packet to send [15:47:50]OFD Sender: No OFD packet to send [15:47:55]OFD Sender: No OFD packet to send [15:48:00]OFD Sender: No OFD packet to send [15:48:05]OFD Sender: No OFD packet to send [15:48:10]OFD Sender: No OFD packet to send [15:48:15]OFD Sender: No OFD packet to send [15:48:20]OFD Sender: No OFD packet to send [15:48:25]OFD Sender: No OFD packet to send [15:48:30]OFD Sender: No OFD packet to send [15:48:35]OFD Sender: No OFD packet to send [15:48:40]OFD Sender: No OFD packet to send [15:48:45]OFD Sender: No OFD packet to send [15:48:50]OFD Sender: No OFD packet to send [15:48:55]OFD Sender: No OFD packet to send [15:49:00]OFD Sender: No OFD packet to send [15:49:05]OFD Sender: No OFD packet to send [15:49:10]OFD Sender: No OFD packet to send [15:49:15]OFD Sender: No OFD packet to send [15:49:20]OFD Sender: No OFD packet to send [15:49:25]OFD Sender: No OFD packet to send [15:49:30]OFD Sender: No OFD packet to send [15:49:35]OFD Sender: No OFD packet to send [15:49:40]OFD Sender: No OFD packet to send [15:49:45]OFD Sender: No OFD packet to send [15:49:50]OFD Sender: No OFD packet to send [15:49:55]OFD Sender: No OFD packet to send [15:50:00]OFD Sender: No OFD packet to send [15:50:05]OFD Sender: No OFD packet to send [15:50:10]OFD Sender: No OFD packet to send [15:50:15]OFD Sender: No OFD packet to send [15:50:20]OFD Sender: No OFD packet to send [15:50:25]OFD Sender: No OFD packet to send [15:50:30]OFD Sender: No OFD packet to send [15:50:35]OFD Sender: No OFD packet to send [15:50:40]OFD Sender: No OFD packet to send [15:50:45]OFD Sender: No OFD packet to send [15:50:50]OFD Sender: No OFD packet to send [15:50:55]OFD Sender: No OFD packet to send [15:51:00]OFD Sender: No OFD packet to send [15:51:05]OFD Sender: No OFD packet to send [15:51:10]OFD Sender: No OFD packet to send [15:51:15]OFD Sender: No OFD packet to send [15:51:20]OFD Sender: No OFD packet to send [15:51:25]OFD Sender: No OFD packet to send [15:51:30]OFD Sender: No OFD packet to send [15:51:35]OFD Sender: No OFD packet to send [15:51:40]OFD Sender: No OFD packet to send [15:51:45]OFD Sender: No OFD packet to send [15:51:50]OFD Sender: No OFD packet to send [15:51:55]OFD Sender: No OFD packet to send [15:52:00]OFD Sender: No OFD packet to send [15:52:05]OFD Sender: No OFD packet to send [15:52:10]OFD Sender: No OFD packet to send [15:52:15]OFD Sender: No OFD packet to send [15:52:20]OFD Sender: No OFD packet to send [15:52:25]OFD Sender: No OFD packet to send [15:52:30]OFD Sender: No OFD packet to send [15:52:35]OFD Sender: No OFD packet to send [15:52:40]OFD Sender: No OFD packet to send [15:52:45]OFD Sender: No OFD packet to send [15:52:50]OFD Sender: No OFD packet to send [15:52:55]OFD Sender: No OFD packet to send [15:53:00]OFD Sender: No OFD packet to send [15:53:05]OFD Sender: No OFD packet to send [15:53:10]OFD Sender: No OFD packet to send [15:53:15]OFD Sender: No OFD packet to send [15:53:20]OFD Sender: No OFD packet to send [15:53:25]OFD Sender: No OFD packet to send [15:53:30]OFD Sender: No OFD packet to send [15:53:35]OFD Sender: No OFD packet to send [15:53:40]OFD Sender: No OFD packet to send [15:53:45]OFD Sender: No OFD packet to send [15:53:50]OFD Sender: No OFD packet to send [15:53:55]OFD Sender: No OFD packet to send [15:54:00]OFD Sender: No OFD packet to send [15:54:04]accept exits with 9 [15:54:04]New connection [15:54:04]New thread 3067133284 created [15:54:04]Thread 3067276644 joined [15:54:04]Waiting for new connection... [15:54:04] Sock 9.Parse request [15:54:04]Sock 9.Check first char [15:54:04]Sock 9.First char is OK [15:54:04]request: POST /json_proto HTTP/1.0 [15:54:04]Method: POST [15:54:04]URL: /json_proto [15:54:04]Method is POST - this is cgi request [15:54:04]url: /json_proto [15:54:04]query_string will be loaded in cgi processing [15:54:04]execute_cgi json_proto POST (null) [15:54:04]execute_cgi path=json_proto method=POST [15:54:04]POST find Content-Length [15:54:04]Host: 172.17.52.3:8080 [15:54:04]Content-Length: 677 [15:54:04]Content-Type: application/json [15:54:04] [15:54:04]POST finish read [15:54:04]Found Content-Length = 677 [15:54:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210435", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:54:04]execute_script... [15:54: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)210435", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:54:04]POST & json_proto [15:54:04]process_json_proto [15:54:04]json parsed OK: [15:54:04]protocol is kg_v1.0 [15:54:04]action value=close_receipt [15:54:04]process_action close_receipt [15:54:04]cmd_close_receipt [15:54:04]MH_GetDate [15:54:04]Write to MH i2c: F0 00 00 9E 36 C3 [15:54:04]Write i2c OK [15:54:04]MH_I2C_Read... [15:54:04]Read from MH i2c: F0 [15:54:04]MH_I2C_Read... [15:54:04]Read from MH i2c: F0 09 00 [15:54:04]MH_I2C_Read... [15:54:04]Read from MH i2c: F0 09 00 9E 36 00 26 1C 19 67 D7 68 A5 64 D6 [15:54:04]GetLastDocTimeStamp 1729697206 [15:54:04]current date 1729698854 [15:54:04]FM_GetShiftState [15:54:04]SAM_PROTO_GetShiftState [15:54:04]wFMCommunicate request_size=4 [15:54:04]MH_SAM_APDU [15:54:04]CAPDU: 80 13 01 00 [15:54:04]Write to MH i2c: E2 08 00 9F 36 80 13 01 00 00 00 00 00 52 [15:54:04]Write i2c OK [15:54:04]MH_I2C_Read... [15:54:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:54:04]Read from MH i2c: E2 [15:54:04]MH_I2C_Read... [15:54:04]Read from MH i2c: E2 0E 00 [15:54:04]MH_I2C_Read... [15:54:04]Read from MH i2c: E2 0E 00 9F 36 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 C1 [15:54:04]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [15:54:04]wFMCommunicate OK [15:54:04]SAM_PROTO_GetShiftState done [15:54:04]FM_GetShiftState done [15:54:04]opened in 1729641385 [15:54:04]opened+sec_in_day 1729727785 [15:54:04]quantity*price = 50041 [15:54:04]sum+1 = 50042 [15:54:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 61 23.10.2024 15:54 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68438 ФПД: 74842253526850 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T155414&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68438&fm=74842253526850&tin=02508201610067®Number=0000000000091756&sum=50000 [15:54:05]StoreToDocumentArchive [15:54:05]shift 507 fd 68438 [15:54:05]save to /storage/0507/doc_00068438 [15:54:05]save last doc name /storage/0507/doc_00068438 to /storage/kkm_last_doc_name [15:54:05]save OK [15:54:05]Clear old archive folders... [15:54:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:54:05]tlvbuf is 020A07A0 [15:54:05]SAM_PROTO_ClearQueue [15:54:05]wFMCommunicate request_size=4 [15:54:05]MH_SAM_APDU [15:54:05]CAPDU: 80 09 00 00 [15:54:05]Write to MH i2c: E2 08 00 AC 36 80 09 00 00 00 00 00 00 54 [15:54:05]Write i2c OK [15:54:05]MH_I2C_Read... [15:54:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:54:05]Read from MH i2c: E2 [15:54:05]MH_I2C_Read... [15:54:05]Read from MH i2c: E2 03 00 [15:54:05]MH_I2C_Read... [15:54:05]Read from MH i2c: E2 03 00 AC 36 00 90 00 56 [15:54:05]RAPDU: 90 00 [15:54:05]wFMCommunicate OK [15:54:05]SAM_PROTO_ClearQueue done [15:54:05]KKMCreateOFDPacket [15:54:05]OFDProtocolAddRootSTLVToBuf [15:54:05]FM_MakeSignedData [15:54:05]FM_MakeSignedData [15:54:05]SAM_PROTO_SignData [15:54:05]wFMCommunicate request_size=4 [15:54:05]MH_SAM_APDU [15:54:05]CAPDU: 80 0D 01 02 [15:54:05]Write to MH i2c: E2 08 00 AD 36 80 0D 01 02 00 00 00 00 5C [15:54:05]Write i2c OK [15:54:05]MH_I2C_Read... [15:54:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:54:05]Read from MH i2c: E2 [15:54:05]MH_I2C_Read... [15:54:05]Read from MH i2c: E2 03 00 [15:54:05]MH_I2C_Read... [15:54:05]Read from MH i2c: E2 03 00 AD 36 00 90 00 57 [15:54:05]RAPDU: 90 00 [15:54:05]wFMCommunicate OK [15:54:05]wFMCommunicate request_size=255 [15:54:05]MH_SAM_APDU [15:54: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 32 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 3D 00 00 00 F4 03 04 00 26 1C 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 56 0B 01 00 35 04 06 00 44 [15:54:05]Write to MH i2c: E2 02 01 AE 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3D 00 00 00 F4 03 04 00 26 1C 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 56 0B 01 00 35 04 06 00 44 00 00 8D [15:54:05]Write i2c OK [15:54:05]MH_I2C_Read... [15:54:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:54:06]Read from MH i2c: E2 [15:54:06]MH_I2C_Read... [15:54:06]Read from MH i2c: E2 03 00 [15:54:06]MH_I2C_Read... [15:54:06]Read from MH i2c: E2 03 00 AE 36 00 90 00 58 [15:54:06]RAPDU: 90 00 [15:54:06]wFMCommunicate OK [15:54:06]wFMCommunicate request_size=10 [15:54:06]MH_SAM_APDU [15:54:06]CAPDU: 80 0D 02 02 05 11 91 EF 87 42 [15:54:06]Write to MH i2c: E2 0D 00 AF 36 80 0D 02 02 05 00 11 91 EF 87 42 00 00 C3 [15:54:06]Write i2c OK [15:54:06]MH_I2C_Read... [15:54:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:54:06]Read from MH i2c: E2 [15:54:06]MH_I2C_Read... [15:54:06]Read from MH i2c: E2 03 00 [15:54:06]MH_I2C_Read... [15:54:06]Read from MH i2c: E2 03 00 AF 36 00 90 00 59 [15:54:06]RAPDU: 90 00 [15:54:06]wFMCommunicate OK [15:54:06]wFMCommunicate request_size=4 [15:54:06]MH_SAM_APDU [15:54:06]CAPDU: 80 0D 03 02 [15:54:06]Write to MH i2c: E2 08 00 B0 36 80 0D 03 02 00 00 00 00 61 [15:54:06]Write i2c OK [15:54:06]MH_I2C_Read... [15:54:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:54:06]Read from MH i2c: E2 [15:54:06]MH_I2C_Read... [15:54:06]Read from MH i2c: E2 0B 00 [15:54:06]MH_I2C_Read... [15:54:06]Read from MH i2c: E2 0B 00 B0 36 00 96 4A 5B 99 AD 5D 3D 57 90 00 D4 [15:54:06]RAPDU: 96 4A 5B 99 AD 5D 3D 57 90 00 [15:54:06]wFMCommunicate OK [15:54:06]SAM_PROTO_SignData done [15:54:06]FM_MakeSignedData done [15:54:06]CreateOFDProtocolMessage [15:54:06]wFMCommunicate request_size=4 [15:54:06]MH_SAM_APDU [15:54:06]CAPDU: 80 11 00 00 [15:54:06]Write to MH i2c: E2 08 00 B1 36 80 11 00 00 00 00 00 00 61 [15:54:06]Write i2c OK [15:54:06]MH_I2C_Read... [15:54:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:06]Read from MH i2c: E2 [15:54:06]MH_I2C_Read... [15:54:06]Read from MH i2c: E2 17 00 [15:54:06]MH_I2C_Read... [15:54:06]Read from MH i2c: E2 17 00 B1 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 B5 [15:54:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [15:54:06]wFMCommunicate OK [15:54:06]CreateOFDProtocolMessage done [15:54:06]OFDSenderStorePacket 68438 [15:54:06]StoreOFDPacket docnum=68438 [15:54:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 10 B6 07 01 F4 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3D 00 00 00 F4 03 04 00 26 1C 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 56 0B 01 00 35 04 06 00 44 11 91 EF 87 42 96 4A 5B 99 AD 5D 3D 57 [15:54:06]CheckFolder [15:54:06]dirname=/storage/ofd_packets [15:54:06]CheckFolder done [15:54:06]ProducePacketName [15:54:06]name=ofd_packets/00068438 [15:54:06]NVStorageSaveData ofd_packets/00068438 [15:54:06]File name is /storage/ofd_packets/00068438 [15:54:06]Write 301 bytes [15:54:06]NVStorageSaveData done [15:54:06]OFDSenderStorePacket done [15:54:06]KKMCreateOFDPacket done [15:54:06]NVStorageSaveData kkm_last_timestamp [15:54:06]File name is /storage/kkm_last_timestamp [15:54:06]Write 4 bytes [15:54:06]NVStorageSaveData done [15:54:06]ExternCall_PrintAddStr [15:54:06]wPrintStart [15:54:06]Write to MH i2c: 01 00 00 B2 36 E8 [15:54:06]Write i2c OK [15:54:06]MH_I2C_Read... [15:54:06]Read from MH i2c: 01 [15:54:06]MH_I2C_Read... [15:54:06]Read from MH i2c: 01 07 00 [15:54:06]MH_I2C_Read... [15:54:06]Read from MH i2c: 01 07 00 B2 36 00 04 00 00 00 FF 0F 01 [15:54:06]RasterBufferAndPrint [15:54:06]line Счет N : (1)210435 [15:54:06]line ИНН: 02508201610067 [15:54:06]line Контрольно-Кассовый Чек [15:54:06]line ПРОДАЖА [15:54:06]line ТРК (МРК, ГНК) : 11 [15:54:06]line Товар: 2710124130 [15:54:06]line Аи-92-К-2 [15:54:06]line 7.480 * 66.90 [15:54:06]line = 500.41 [15:54:06]line НДС 12% НСП 1% [15:54:06]line > о реализуемом товаре [15:54:06]line ОКРУГЛЕНИЕ: -0.41 [15:54:06]line ИТОГО: 500.00 [15:54:06]line Внесено: 500.00 [15:54:06]line СДАЧА: 0.00 [15:54:06]line НСП 1% : 4.43 [15:54:06]line НДС 12% : 53.14 [15:54:06]line Наличными: 500.00 [15:54:06]line Безнал.: 0.00 [15:54:06]line Место: АЗС № 147 "Партнер Нефть" [15:54:06]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [15:54:06]line СНО: Общий режим [15:54:06]line Чек 61 23.10.2024 15:54 [15:54:06]line Смена: 507 ФФД: 1.0 [15:54:06]line ЗНМ: 0300000094 [15:54:06]line РНМ: 0000000000091756 [15:54:06]line Версия ККМ: 001 [15:54:06]line ФМ: 0000000000871809 [15:54:06]line ФД: 68438 [15:54:06]line ФПД: 74842253526850 [15:54:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T155414&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68438&fm=74842253526850&tin=02508201610067®Number=0000000000091756&sum=50000 [15:54:06]written 0, free lines is 4095 [15:54:06]OFD Sender: Processing packet 68438 [packets to send 8, broken 7] [15:54:06]ProducePacketName [15:54:06]name=ofd_packets/00068438 [15:54:06]OFD Sender: To server: pG, [15:54:06]CommunicateWithHost lk.salyk.kg:30040 [15:54:06]ConnectInit lk.salyk.kg [15:54:06]Write to MH i2c: 01 00 00 DC 36 12 [15:54:06]Write i2c OK [15:54:06]MH_I2C_Read... [15:54:06]Read from MH i2c: 01 [15:54:06]MH_I2C_Read... [15:54:06]Read from MH i2c: 01 07 00 [15:54:06]MH_I2C_Read... [15:54:06]Read from MH i2c: 01 07 00 DC 36 00 04 00 00 00 A8 0C D1 [15:54:06]RasterBufferAndPrint [15:54:06]line [15:54:06]line [15:54:06]line [15:54:06]line [15:54:06]line [15:54:06]written 0, free lines is 3243 [15:54:06]MH_Cut [15:54:06]Write to MH i2c: D1 01 00 E3 36 01 EB [15:54:06]Write i2c OK [15:54:06]MH_I2C_Read... [15:54:06]Read from MH i2c: D1 [15:54:06]MH_I2C_Read... [15:54:06]Read from MH i2c: D1 01 00 [15:54:06]MH_I2C_Read... [15:54:06]Read from MH i2c: D1 01 00 E3 36 00 EA [15:54:06]Write to MH i2c: 01 00 00 E4 36 1A [15:54:06]Write i2c OK [15:54:06]MH_I2C_Read... [15:54:06]Connected sock=10 [15:54:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 10 B6 07 01 F4 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3D 00 00 00 F4 03 04 00 26 1C 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 56 0B 01 00 35 04 06 00 44 11 91 EF 87 42 96 4A 5B 99 AD 5D 3D 57 [15:54:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 15 1C 47 00 41 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 56 0B 01 00 F4 03 04 00 1A C2 18 67 B6 04 01 00 00 52 33 40 DE 74 97 65 4E [15:54:07]CommunicateWithHost err = 0 [15:54:07]CheckOFDResponse [15:54:07]1017 (14) - 77093643461234 [15:54:07]1041 (16) - 0000000000871809 [15:54:07]1040 (4) - 68438 [15:54:07]1012 (4) - 23.10.2024 09:30 [15:54:07]1206 (1) - 0 [15:54:07]OFD Sender: Remove packet 68438 [15:54:07]ProducePacketName [15:54:07]name=ofd_packets/00068438 [15:54:07]NVStorageDeleteData [15:54:07]OFD Sender: No OFD packet to send [15:54:07]*** Cut start [15:54:07]*** Partial cut [15:54:07]*** CUTSNS_PIN = 1 [15:54:07]*** CUTSNS_PIN = 0 [15:54:07]*** Brake cut motor [15:54:08]Read from MH i2c: 01 [15:54:08]MH_I2C_Read... [15:54:08]*** Stop cut motor [15:54:08]*** Cut end [15:54:08]Read from MH i2c: 01 07 00 [15:54:08]MH_I2C_Read... [15:54:08]Read from MH i2c: 01 07 00 E4 36 00 04 00 00 00 FF 0F 33 [15:54:08]process_action close_receipt done [15:54:08]requested_data is exist [15:54:08]produce_requested_data [15:54:08]requested_item fm.sn is exist - process it [15:54:08]wFMCommunicate request_size=4 [15:54:08]MH_SAM_APDU [15:54:08]CAPDU: 80 11 00 00 [15:54:08]Write to MH i2c: E2 08 00 E5 36 80 11 00 00 00 00 00 00 95 [15:54:08]Write i2c OK [15:54:08]MH_I2C_Read... [15:54:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:08]Read from MH i2c: E2 [15:54:08]MH_I2C_Read... [15:54:08]Read from MH i2c: E2 17 00 [15:54:08]MH_I2C_Read... [15:54:08]Read from MH i2c: E2 17 00 E5 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 E9 [15:54:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [15:54:08]wFMCommunicate OK [15:54:08]requested_item fd.num is exist - process it [15:54:08]SAM_PROTO_GetFieldsCounters [15:54:08]wFMCommunicate request_size=4 [15:54:08]MH_SAM_APDU [15:54:08]CAPDU: 80 13 00 00 [15:54:08]Write to MH i2c: E2 08 00 E6 36 80 13 00 00 00 00 00 00 98 [15:54:08]Write i2c OK [15:54:08]MH_I2C_Read... [15:54:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:54:08]Read from MH i2c: E2 [15:54:08]MH_I2C_Read... [15:54:08]Read from MH i2c: E2 62 00 [15:54:08]MH_I2C_Read... [15:54:08]Read from MH i2c: E2 62 00 E6 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 56 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [15:54:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 56 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:54:08]wFMCommunicate OK [15:54:08]SAM_PROTO_GetFieldsCounters done [15:54:08]requested_item shift.num is exist - process it [15:54:08]requested_item shift.opened is exist - process it [15:54:08]req_shift_opened [15:54:08]FM_GetShiftState [15:54:08]SAM_PROTO_GetShiftState [15:54:08]wFMCommunicate request_size=4 [15:54:08]MH_SAM_APDU [15:54:08]CAPDU: 80 13 01 00 [15:54:08]Write to MH i2c: E2 08 00 E7 36 80 13 01 00 00 00 00 00 9A [15:54:08]Write i2c OK [15:54:08]MH_I2C_Read... [15:54:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:54:08]Read from MH i2c: E2 [15:54:08]MH_I2C_Read... [15:54:08]Read from MH i2c: E2 0E 00 [15:54:08]MH_I2C_Read... [15:54:08]Read from MH i2c: E2 0E 00 E7 36 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 09 [15:54:08]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [15:54:08]wFMCommunicate OK [15:54:08]SAM_PROTO_GetShiftState done [15:54:08]FM_GetShiftState done [15:54:08]req_shift_opened done [15:54:08]requested_item shift.open_date is exist - process it [15:54:08]req_shift_open_date [15:54:08]req_shift_open_date done [15:54:08]produce_requested_data done [15:54:08]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68438,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [15:54:08]process_action_free close_receipt [15:54:08]json_value_free [15:54:08]json_value_free done [15:54:08]process_json_proto returns [15:54:08]Send response to host [15:54:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68438,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [15:54:08]free response buf [15:54:08]execute_script done [15:54:08]execute_script returns [15:54:08]free content buf [15:54:08]Sock 9.Close socket [15:54:08]Sock 9.Thread stoped [15:54:12]OFD Sender: No OFD packet to send [15:54:17]OFD Sender: No OFD packet to send [15:54:22]OFD Sender: No OFD packet to send [15:54:27]OFD Sender: No OFD packet to send [15:54:32]OFD Sender: No OFD packet to send [15:54:37]OFD Sender: No OFD packet to send [15:54:42]OFD Sender: No OFD packet to send [15:54:47]OFD Sender: No OFD packet to send [15:54:52]OFD Sender: No OFD packet to send [15:54:57]OFD Sender: No OFD packet to send [15:55:02]OFD Sender: No OFD packet to send [15:55:07]OFD Sender: No OFD packet to send [15:55:12]OFD Sender: No OFD packet to send [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: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]accept exits with 7 [15:56:02]New connection [15:56:02]New thread 3067276644 created [15:56:02]Thread 3067133284 joined [15:56:02]Waiting for new connection... [15:56:02] Sock 7.Parse request [15:56:02]Sock 7.Check first char [15:56:02]Sock 7.First char is OK [15:56:02]request: POST /json_proto HTTP/1.0 [15:56:02]Method: POST [15:56:02]URL: /json_proto [15:56:02]Method is POST - this is cgi request [15:56:02]url: /json_proto [15:56:02]query_string will be loaded in cgi processing [15:56:02]execute_cgi json_proto POST (null) [15:56:02]execute_cgi path=json_proto method=POST [15:56:02]POST find Content-Length [15:56:02]Host: 172.17.52.3:8080 [15:56:02]Content-Length: 677 [15:56:02]Content-Type: application/json [15:56:02] [15:56:02]POST finish read [15:56:02]Found Content-Length = 677 [15:56:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [15:56:02]execute_script... [15:56: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)210436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [15:56:02]POST & json_proto [15:56:02]process_json_proto [15:56:02]json parsed OK: [15:56:02]protocol is kg_v1.0 [15:56:02]action value=close_receipt [15:56:02]process_action close_receipt [15:56:02]cmd_close_receipt [15:56:02]MH_GetDate [15:56:02]Write to MH i2c: F0 00 00 E8 36 0D [15:56:02]Write i2c OK [15:56:02]MH_I2C_Read... [15:56:02]Read from MH i2c: F0 [15:56:02]MH_I2C_Read... [15:56:02]Read from MH i2c: F0 09 00 [15:56:02]MH_I2C_Read... [15:56:02]Read from MH i2c: F0 09 00 E8 36 00 9B 1C 19 67 D7 68 A5 64 95 [15:56:02]GetLastDocTimeStamp 1729698854 [15:56:02]current date 1729698971 [15:56:02]FM_GetShiftState [15:56:02]SAM_PROTO_GetShiftState [15:56:02]wFMCommunicate request_size=4 [15:56:02]MH_SAM_APDU [15:56:02]CAPDU: 80 13 01 00 [15:56:02]Write to MH i2c: E2 08 00 E9 36 80 13 01 00 00 00 00 00 9C [15:56:02]Write i2c OK [15:56:02]MH_I2C_Read... [15:56:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:02]Read from MH i2c: E2 [15:56:02]MH_I2C_Read... [15:56:02]Read from MH i2c: E2 0E 00 [15:56:02]MH_I2C_Read... [15:56:02]Read from MH i2c: E2 0E 00 E9 36 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 0B [15:56:02]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [15:56:02]wFMCommunicate OK [15:56:02]SAM_PROTO_GetShiftState done [15:56:02]FM_GetShiftState done [15:56:02]opened in 1729641385 [15:56:02]opened+sec_in_day 1729727785 [15:56:02]quantity*price = 40006 [15:56:02]sum+1 = 40007 [15:56:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 62 23.10.2024 15:56 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68439 ФПД: 259003627728408 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T155611&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68439&fm=259003627728408&tin=02508201610067®Number=0000000000091756&sum=40000 [15:56:03]StoreToDocumentArchive [15:56:03]shift 507 fd 68439 [15:56:03]save to /storage/0507/doc_00068439 [15:56:03]save last doc name /storage/0507/doc_00068439 to /storage/kkm_last_doc_name [15:56:03]save OK [15:56:03]Clear old archive folders... [15:56:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:56:03]tlvbuf is 0203C520 [15:56:03]SAM_PROTO_ClearQueue [15:56:03]wFMCommunicate request_size=4 [15:56:03]MH_SAM_APDU [15:56:03]CAPDU: 80 09 00 00 [15:56:03]Write to MH i2c: E2 08 00 F6 36 80 09 00 00 00 00 00 00 9E [15:56:03]Write i2c OK [15:56:03]MH_I2C_Read... [15:56:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:56:03]Read from MH i2c: E2 [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: E2 03 00 [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: E2 03 00 F6 36 00 90 00 A0 [15:56:03]RAPDU: 90 00 [15:56:03]wFMCommunicate OK [15:56:03]SAM_PROTO_ClearQueue done [15:56:03]KKMCreateOFDPacket [15:56:03]OFDProtocolAddRootSTLVToBuf [15:56:03]FM_MakeSignedData [15:56:03]FM_MakeSignedData [15:56:03]SAM_PROTO_SignData [15:56:03]wFMCommunicate request_size=4 [15:56:03]MH_SAM_APDU [15:56:03]CAPDU: 80 0D 01 02 [15:56:03]Write to MH i2c: E2 08 00 F7 36 80 0D 01 02 00 00 00 00 A6 [15:56:03]Write i2c OK [15:56:03]MH_I2C_Read... [15:56:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:56:03]Read from MH i2c: E2 [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: E2 03 00 [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: E2 03 00 F7 36 00 90 00 A1 [15:56:03]RAPDU: 90 00 [15:56:03]wFMCommunicate OK [15:56:03]wFMCommunicate request_size=255 [15:56:03]MH_SAM_APDU [15:56: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 32 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 3E 00 00 00 F4 03 04 00 9B 1C 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 57 0B 01 00 35 04 06 00 EB [15:56:03]Write to MH i2c: E2 02 01 F8 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3E 00 00 00 F4 03 04 00 9B 1C 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 57 0B 01 00 35 04 06 00 EB 00 00 C4 [15:56:03]Write i2c OK [15:56:03]MH_I2C_Read... [15:56:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:03]Read from MH i2c: E2 [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: E2 03 00 [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: E2 03 00 F8 36 00 90 00 A2 [15:56:03]RAPDU: 90 00 [15:56:03]wFMCommunicate OK [15:56:03]wFMCommunicate request_size=10 [15:56:03]MH_SAM_APDU [15:56:03]CAPDU: 80 0D 02 02 05 8F FB 39 EE 18 [15:56:03]Write to MH i2c: E2 0D 00 F9 36 80 0D 02 02 05 00 8F FB 39 EE 18 00 00 7C [15:56:03]Write i2c OK [15:56:03]MH_I2C_Read... [15:56:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:04]Read from MH i2c: E2 [15:56:04]MH_I2C_Read... [15:56:04]Read from MH i2c: E2 03 00 [15:56:04]MH_I2C_Read... [15:56:04]Read from MH i2c: E2 03 00 F9 36 00 90 00 A3 [15:56:04]RAPDU: 90 00 [15:56:04]wFMCommunicate OK [15:56:04]wFMCommunicate request_size=4 [15:56:04]MH_SAM_APDU [15:56:04]CAPDU: 80 0D 03 02 [15:56:04]Write to MH i2c: E2 08 00 FA 36 80 0D 03 02 00 00 00 00 AB [15:56:04]Write i2c OK [15:56:04]MH_I2C_Read... [15:56:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:56:04]Read from MH i2c: E2 [15:56:04]MH_I2C_Read... [15:56:04]Read from MH i2c: E2 0B 00 [15:56:04]MH_I2C_Read... [15:56:04]Read from MH i2c: E2 0B 00 FA 36 00 7F C7 93 DE 54 BF 53 A3 90 00 6C [15:56:04]RAPDU: 7F C7 93 DE 54 BF 53 A3 90 00 [15:56:04]wFMCommunicate OK [15:56:04]SAM_PROTO_SignData done [15:56:04]FM_MakeSignedData done [15:56:04]CreateOFDProtocolMessage [15:56:04]wFMCommunicate request_size=4 [15:56:04]MH_SAM_APDU [15:56:04]CAPDU: 80 11 00 00 [15:56:04]Write to MH i2c: E2 08 00 FB 36 80 11 00 00 00 00 00 00 AB [15:56:04]Write i2c OK [15:56:04]MH_I2C_Read... [15:56:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:04]Read from MH i2c: E2 [15:56:04]MH_I2C_Read... [15:56:04]Read from MH i2c: E2 17 00 [15:56:04]MH_I2C_Read... [15:56:04]Read from MH i2c: E2 17 00 FB 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 FF [15:56:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [15:56:04]wFMCommunicate OK [15:56:04]CreateOFDProtocolMessage done [15:56:04]OFDSenderStorePacket 68439 [15:56:04]StoreOFDPacket docnum=68439 [15:56:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 4D 99 07 01 39 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3E 00 00 00 F4 03 04 00 9B 1C 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 57 0B 01 00 35 04 06 00 EB 8F FB 39 EE 18 7F C7 93 DE 54 BF 53 A3 [15:56:04]CheckFolder [15:56:04]dirname=/storage/ofd_packets [15:56:04]CheckFolder done [15:56:04]ProducePacketName [15:56:04]name=ofd_packets/00068439 [15:56:04]NVStorageSaveData ofd_packets/00068439 [15:56:04]File name is /storage/ofd_packets/00068439 [15:56:04]Write 301 bytes [15:56:04]NVStorageSaveData done [15:56:04]OFDSenderStorePacket done [15:56:04]KKMCreateOFDPacket done [15:56:04]NVStorageSaveData kkm_last_timestamp [15:56:04]File name is /storage/kkm_last_timestamp [15:56:04]Write 4 bytes [15:56:04]NVStorageSaveData done [15:56:04]ExternCall_PrintAddStr [15:56:04]wPrintStart [15:56:04]Write to MH i2c: 01 00 00 FC 36 32 [15:56:04]Write i2c OK [15:56:04]MH_I2C_Read... [15:56:04]Read from MH i2c: 01 [15:56:04]MH_I2C_Read... [15:56:04]Read from MH i2c: 01 07 00 [15:56:04]MH_I2C_Read... [15:56:04]Read from MH i2c: 01 07 00 FC 36 00 04 00 00 00 FF 0F 4B [15:56:04]RasterBufferAndPrint [15:56:04]line Счет N : (1)210436 [15:56:04]line ИНН: 02508201610067 [15:56:04]line Контрольно-Кассовый Чек [15:56:04]line ПРОДАЖА [15:56:04]line ТРК (МРК, ГНК) : 11 [15:56:04]line Товар: 2710124130 [15:56:04]line Аи-92-К-2 [15:56:04]line 5.980 * 66.90 [15:56:04]line = 400.06 [15:56:04]line НДС 12% НСП 1% [15:56:04]line > о реализуемом товаре [15:56:04]line ОКРУГЛЕНИЕ: -0.06 [15:56:04]line ИТОГО: 400.00 [15:56:04]line Внесено: 400.00 [15:56:04]line СДАЧА: 0.00 [15:56:04]line НСП 1% : 3.54 [15:56:04]line НДС 12% : 42.48 [15:56:04]line Наличными: 400.00 [15:56:04]line Безнал.: 0.00 [15:56:04]line Место: АЗС № 147 "Партнер Нефть" [15:56:04]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [15:56:04]line СНО: Общий режим [15:56:04]line Чек 62 23.10.2024 15:56 [15:56:04]line Смена: 507 ФФД: 1.0 [15:56:04]line ЗНМ: 0300000094 [15:56:04]line РНМ: 0000000000091756 [15:56:04]line Версия ККМ: 001 [15:56:04]line ФМ: 0000000000871809 [15:56:04]line ФД: 68439 [15:56:04]line ФПД: 259003627728408 [15:56:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T155611&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68439&fm=259003627728408&tin=02508201610067®Number=0000000000091756&sum=40000 [15:56:04]written 0, free lines is 4095 [15:56:04]OFD Sender: Processing packet 68439 [packets to send 8, broken 7] [15:56:04]ProducePacketName [15:56:04]name=ofd_packets/00068439 [15:56:04]OFD Sender: To server: pG, [15:56:04]CommunicateWithHost lk.salyk.kg:30040 [15:56:04]ConnectInit lk.salyk.kg [15:56:04]Write to MH i2c: 01 00 00 26 37 5D [15:56:04]Write i2c OK [15:56:04]MH_I2C_Read... [15:56:04]Read from MH i2c: 01 [15:56:04]MH_I2C_Read... [15:56:04]Read from MH i2c: 01 07 00 [15:56:04]MH_I2C_Read... [15:56:04]Connected sock=10 [15:56:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 4D 99 07 01 39 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3E 00 00 00 F4 03 04 00 9B 1C 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 57 0B 01 00 35 04 06 00 EB 8F FB 39 EE 18 7F C7 93 DE 54 BF 53 A3 [15:56:04]Read from MH i2c: 01 07 00 26 37 00 04 00 00 00 B1 0C 25 [15:56:04]RasterBufferAndPrint [15:56:04]line [15:56:04]line [15:56:04]line [15:56:04]line [15:56:04]line [15:56:04]written 0, free lines is 3288 [15:56:04]MH_Cut [15:56:04]Write to MH i2c: D1 01 00 2D 37 01 36 [15:56:04]Write i2c OK [15:56:04]MH_I2C_Read... [15:56:04]Read from MH i2c: D1 [15:56:04]MH_I2C_Read... [15:56:04]Read from MH i2c: D1 01 00 [15:56:04]MH_I2C_Read... [15:56:04]Read from MH i2c: D1 01 00 2D 37 00 35 [15:56:04]Write to MH i2c: 01 00 00 2E 37 65 [15:56:04]Write i2c OK [15:56:04]MH_I2C_Read... [15:56:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 B9 2C 47 00 59 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 57 0B 01 00 F4 03 04 00 90 C2 18 67 B6 04 01 00 00 40 71 69 2D 0C B3 D2 47 [15:56:04]CommunicateWithHost err = 0 [15:56:04]CheckOFDResponse [15:56:04]1017 (14) - 77093643461234 [15:56:04]1041 (16) - 0000000000871809 [15:56:04]1040 (4) - 68439 [15:56:04]1012 (4) - 23.10.2024 09:32 [15:56:04]1206 (1) - 0 [15:56:04]OFD Sender: Remove packet 68439 [15:56:04]ProducePacketName [15:56:04]name=ofd_packets/00068439 [15:56:04]NVStorageDeleteData [15:56:05]OFD Sender: No OFD packet to send [15:56:05]*** Cut start [15:56:05]*** Partial cut [15:56:05]*** CUTSNS_PIN = 1 [15:56:05]*** CUTSNS_PIN = 0 [15:56:05]*** Brake cut motor [15:56:05]Read from MH i2c: 01 [15:56:05]MH_I2C_Read... [15:56:05]*** Stop cut motor [15:56:05]*** Cut end [15:56:05]Read from MH i2c: 01 07 00 [15:56:05]MH_I2C_Read... [15:56:05]Read from MH i2c: 01 07 00 2E 37 00 04 00 00 00 FF 0F 7E [15:56:05]process_action close_receipt done [15:56:05]requested_data is exist [15:56:05]produce_requested_data [15:56:05]requested_item fm.sn is exist - process it [15:56:05]wFMCommunicate request_size=4 [15:56:05]MH_SAM_APDU [15:56:05]CAPDU: 80 11 00 00 [15:56:05]Write to MH i2c: E2 08 00 2F 37 80 11 00 00 00 00 00 00 E0 [15:56:05]Write i2c OK [15:56:05]MH_I2C_Read... [15:56:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:06]Read from MH i2c: E2 [15:56:06]MH_I2C_Read... [15:56:06]Read from MH i2c: E2 17 00 [15:56:06]MH_I2C_Read... [15:56:06]Read from MH i2c: E2 17 00 2F 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 34 [15:56:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [15:56:06]wFMCommunicate OK [15:56:06]requested_item fd.num is exist - process it [15:56:06]SAM_PROTO_GetFieldsCounters [15:56:06]wFMCommunicate request_size=4 [15:56:06]MH_SAM_APDU [15:56:06]CAPDU: 80 13 00 00 [15:56:06]Write to MH i2c: E2 08 00 30 37 80 13 00 00 00 00 00 00 E3 [15:56:06]Write i2c OK [15:56:06]MH_I2C_Read... [15:56:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:06]Read from MH i2c: E2 [15:56:06]MH_I2C_Read... [15:56:06]Read from MH i2c: E2 62 00 [15:56:06]MH_I2C_Read... [15:56:06]Read from MH i2c: E2 62 00 30 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 57 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [15:56:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 57 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:56:06]wFMCommunicate OK [15:56:06]SAM_PROTO_GetFieldsCounters done [15:56:06]requested_item shift.num is exist - process it [15:56:06]requested_item shift.opened is exist - process it [15:56:06]req_shift_opened [15:56:06]FM_GetShiftState [15:56:06]SAM_PROTO_GetShiftState [15:56:06]wFMCommunicate request_size=4 [15:56:06]MH_SAM_APDU [15:56:06]CAPDU: 80 13 01 00 [15:56:06]Write to MH i2c: E2 08 00 31 37 80 13 01 00 00 00 00 00 E5 [15:56:06]Write i2c OK [15:56:06]MH_I2C_Read... [15:56:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:06]Read from MH i2c: E2 [15:56:06]MH_I2C_Read... [15:56:06]Read from MH i2c: E2 0E 00 [15:56:06]MH_I2C_Read... [15:56:06]Read from MH i2c: E2 0E 00 31 37 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 54 [15:56:06]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [15:56:06]wFMCommunicate OK [15:56:06]SAM_PROTO_GetShiftState done [15:56:06]FM_GetShiftState done [15:56:06]req_shift_opened done [15:56:06]requested_item shift.open_date is exist - process it [15:56:06]req_shift_open_date [15:56:06]req_shift_open_date done [15:56:06]produce_requested_data done [15:56:06]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68439,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [15:56:06]process_action_free close_receipt [15:56:06]json_value_free [15:56:06]json_value_free done [15:56:06]process_json_proto returns [15:56:06]Send response to host [15:56:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68439,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [15:56:06]free response buf [15:56:06]execute_script done [15:56:06]execute_script returns [15:56:06]free content buf [15:56:06]Sock 7.Close socket [15:56:06]Sock 7.Thread stoped [15:56:10]OFD Sender: No OFD packet to send [15:56:15]OFD Sender: No OFD packet to send [15:56:20]OFD Sender: No OFD packet to send [15:56:25]OFD Sender: No OFD packet to send [15:56:30]OFD Sender: No OFD packet to send [15:56:35]OFD Sender: No OFD packet to send [15:56:40]OFD Sender: No OFD packet to send [15:56:45]OFD Sender: No OFD packet to send [15:56:50]OFD Sender: No OFD packet to send [15:56:55]OFD Sender: No OFD packet to send [15:57:00]OFD Sender: No OFD packet to send [15:57:05]OFD Sender: No OFD packet to send [15:57:10]OFD Sender: No OFD packet to send [15:57:15]OFD Sender: No OFD packet to send [15:57:20]OFD Sender: No OFD packet to send [15:57:25]OFD Sender: No OFD packet to send [15:57:30]OFD Sender: No OFD packet to send [15:57:35]OFD Sender: No OFD packet to send [15:57:40]OFD Sender: No OFD packet to send [15:57:45]OFD Sender: No OFD packet to send [15:57:50]OFD Sender: No OFD packet to send [15:57:55]OFD Sender: No OFD packet to send [15:58:00]OFD Sender: No OFD packet to send [15:58:05]OFD Sender: No OFD packet to send [15:58:10]OFD Sender: No OFD packet to send [15:58:15]OFD Sender: No OFD packet to send [15:58:20]OFD Sender: No OFD packet to send [15:58:25]OFD Sender: No OFD packet to send [15:58:30]OFD Sender: No OFD packet to send [15:58:35]OFD Sender: No OFD packet to send [15:58:40]OFD Sender: No OFD packet to send [15:58:45]OFD Sender: No OFD packet to send [15:58:50]OFD Sender: No OFD packet to send [15:58:55]OFD Sender: No OFD packet to send [15:59:00]OFD Sender: No OFD packet to send [15:59:05]OFD Sender: No OFD packet to send [15:59:10]OFD Sender: No OFD packet to send [15:59:15]OFD Sender: No OFD packet to send [15:59:20]OFD Sender: No OFD packet to send [15:59:25]OFD Sender: No OFD packet to send [15:59:30]OFD Sender: No OFD packet to send [15:59:35]OFD Sender: No OFD packet to send [15:59:40]OFD Sender: No OFD packet to send [15:59:45]OFD Sender: No OFD packet to send [15:59:50]OFD Sender: No OFD packet to send [15:59:55]OFD Sender: No OFD packet to send [16:00:00]OFD Sender: No OFD packet to send [16:00:05]OFD Sender: No OFD packet to send [16:00:10]OFD Sender: No OFD packet to send [16:00:15]OFD Sender: No OFD packet to send [16:00:20]OFD Sender: No OFD packet to send [16:00:25]OFD Sender: No OFD packet to send [16:00:30]OFD Sender: No OFD packet to send [16:00:35]OFD Sender: No OFD packet to send [16:00:40]OFD Sender: No OFD packet to send [16:00:45]OFD Sender: No OFD packet to send [16:00:50]OFD Sender: No OFD packet to send [16:00:55]OFD Sender: No OFD packet to send [16:01:00]OFD Sender: No OFD packet to send [16:01:05]OFD Sender: No OFD packet to send [16:01:10]OFD Sender: No OFD packet to send [16:01:15]OFD Sender: No OFD packet to send [16:01:20]OFD Sender: No OFD packet to send [16:01:25]OFD Sender: No OFD packet to send [16:01:30]OFD Sender: No OFD packet to send [16:01:35]OFD Sender: No OFD packet to send [16:01:40]OFD Sender: No OFD packet to send [16:01:45]OFD Sender: No OFD packet to send [16:01:50]OFD Sender: No OFD packet to send [16:01:55]OFD Sender: No OFD packet to send [16:02:00]OFD Sender: No OFD packet to send [16:02:05]OFD Sender: No OFD packet to send [16:02:10]OFD Sender: No OFD packet to send [16:02:15]OFD Sender: No OFD packet to send [16:02:20]OFD Sender: No OFD packet to send [16:02:25]OFD Sender: No OFD packet to send [16:02:30]OFD Sender: No OFD packet to send [16:02:35]OFD Sender: No OFD packet to send [16:02:40]OFD Sender: No OFD packet to send [16:02:45]OFD Sender: No OFD packet to send [16:02:50]OFD Sender: No OFD packet to send [16:02:55]OFD Sender: No OFD packet to send [16:03:00]OFD Sender: No OFD packet to send [16:03:05]OFD Sender: No OFD packet to send [16:03:10]OFD Sender: No OFD packet to send [16:03:15]OFD Sender: No OFD packet to send [16:03:20]OFD Sender: No OFD packet to send [16:03:25]OFD Sender: No OFD packet to send [16:03:30]OFD Sender: No OFD packet to send [16:03:35]OFD Sender: No OFD packet to send [16:03:40]OFD Sender: No OFD packet to send [16:03:45]OFD Sender: No OFD packet to send [16:03:50]OFD Sender: No OFD packet to send [16:03:55]OFD Sender: No OFD packet to send [16:04:00]OFD Sender: No OFD packet to send [16:04:05]OFD Sender: No OFD packet to send [16:04:10]OFD Sender: No OFD packet to send [16:04:15]OFD Sender: No OFD packet to send [16:04:20]OFD Sender: No OFD packet to send [16:04:25]OFD Sender: No OFD packet to send [16:04:30]OFD Sender: No OFD packet to send [16:04:35]OFD Sender: No OFD packet to send [16:04:40]OFD Sender: No OFD packet to send [16:04:45]OFD Sender: No OFD packet to send [16:04:50]OFD Sender: No OFD packet to send [16:04:55]OFD Sender: No OFD packet to send [16:05:00]OFD Sender: No OFD packet to send [16:05:05]OFD Sender: No OFD packet to send [16:05:10]OFD Sender: No OFD packet to send [16:05:15]OFD Sender: No OFD packet to send [16:05:20]OFD Sender: No OFD packet to send [16:05:25]OFD Sender: No OFD packet to send [16:05:30]OFD Sender: No OFD packet to send [16:05:35]OFD Sender: No OFD packet to send [16:05:40]OFD Sender: No OFD packet to send [16:05:42]accept exits with 9 [16:05:42]New connection [16:05:42]New thread 3067133284 created [16:05:42]Thread 3067276644 joined [16:05:42]Waiting for new connection... [16:05:42] Sock 9.Parse request [16:05:42]Sock 9.Check first char [16:05:42]Sock 9.First char is OK [16:05:42]request: POST /json_proto HTTP/1.0 [16:05:42]Method: POST [16:05:42]URL: /json_proto [16:05:42]Method is POST - this is cgi request [16:05:42]url: /json_proto [16:05:42]query_string will be loaded in cgi processing [16:05:42]execute_cgi json_proto POST (null) [16:05:42]execute_cgi path=json_proto method=POST [16:05:42]POST find Content-Length [16:05:42]Host: 172.17.52.3:8080 [16:05:42]Content-Length: 677 [16:05:42]Content-Type: application/json [16:05:42] [16:05:42]POST finish read [16:05:42]Found Content-Length = 677 [16:05:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:42]execute_script... [16:05: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)210437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:42]POST & json_proto [16:05:42]process_json_proto [16:05:42]json parsed OK: [16:05:42]protocol is kg_v1.0 [16:05:42]action value=close_receipt [16:05:42]process_action close_receipt [16:05:42]cmd_close_receipt [16:05:42]MH_GetDate [16:05:42]Write to MH i2c: F0 00 00 32 37 58 [16:05:42]Write i2c OK [16:05:42]MH_I2C_Read... [16:05:42]Read from MH i2c: F0 [16:05:42]MH_I2C_Read... [16:05:42]Read from MH i2c: F0 09 00 [16:05:42]MH_I2C_Read... [16:05:42]Read from MH i2c: F0 09 00 32 37 00 E0 1E 19 67 D7 68 A5 64 27 [16:05:42]GetLastDocTimeStamp 1729698971 [16:05:42]current date 1729699552 [16:05:42]FM_GetShiftState [16:05:42]SAM_PROTO_GetShiftState [16:05:42]wFMCommunicate request_size=4 [16:05:42]MH_SAM_APDU [16:05:42]CAPDU: 80 13 01 00 [16:05:42]Write to MH i2c: E2 08 00 33 37 80 13 01 00 00 00 00 00 E7 [16:05:42]Write i2c OK [16:05:42]MH_I2C_Read... [16:05:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:42]Read from MH i2c: E2 [16:05:42]MH_I2C_Read... [16:05:42]Read from MH i2c: E2 0E 00 [16:05:42]MH_I2C_Read... [16:05:42]Read from MH i2c: E2 0E 00 33 37 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 56 [16:05:42]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [16:05:42]wFMCommunicate OK [16:05:42]SAM_PROTO_GetShiftState done [16:05:42]FM_GetShiftState done [16:05:42]opened in 1729641385 [16:05:42]opened+sec_in_day 1729727785 [16:05:42]quantity*price = 25020 [16:05:42]sum+1 = 25022 [16:05:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 63 23.10.2024 16:05 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68440 ФПД: 5829983020675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T160552&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68440&fm=5829983020675&tin=02508201610067®Number=0000000000091756&sum=25000 [16:05:43]StoreToDocumentArchive [16:05:43]shift 507 fd 68440 [16:05:43]save to /storage/0507/doc_00068440 [16:05:43]save last doc name /storage/0507/doc_00068440 to /storage/kkm_last_doc_name [16:05:43]save OK [16:05:43]Clear old archive folders... [16:05:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:05:43]tlvbuf is 0202A110 [16:05:43]SAM_PROTO_ClearQueue [16:05:43]wFMCommunicate request_size=4 [16:05:43]MH_SAM_APDU [16:05:43]CAPDU: 80 09 00 00 [16:05:43]Write to MH i2c: E2 08 00 40 37 80 09 00 00 00 00 00 00 E9 [16:05:43]Write i2c OK [16:05:43]MH_I2C_Read... [16:05:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:05:43]Read from MH i2c: E2 [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: E2 03 00 [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: E2 03 00 40 37 00 90 00 EB [16:05:43]RAPDU: 90 00 [16:05:43]wFMCommunicate OK [16:05:43]SAM_PROTO_ClearQueue done [16:05:43]KKMCreateOFDPacket [16:05:43]OFDProtocolAddRootSTLVToBuf [16:05:43]FM_MakeSignedData [16:05:43]FM_MakeSignedData [16:05:43]SAM_PROTO_SignData [16:05:43]wFMCommunicate request_size=4 [16:05:43]MH_SAM_APDU [16:05:43]CAPDU: 80 0D 01 02 [16:05:43]Write to MH i2c: E2 08 00 41 37 80 0D 01 02 00 00 00 00 F1 [16:05:43]Write i2c OK [16:05:43]MH_I2C_Read... [16:05:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:05:44]Read from MH i2c: E2 [16:05:44]MH_I2C_Read... [16:05:44]Read from MH i2c: E2 03 00 [16:05:44]MH_I2C_Read... [16:05:44]Read from MH i2c: E2 03 00 41 37 00 90 00 EC [16:05:44]RAPDU: 90 00 [16:05:44]wFMCommunicate OK [16:05:44]wFMCommunicate request_size=255 [16:05:44]MH_SAM_APDU [16:05:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 E0 1E 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 58 0B 01 00 35 04 06 00 05 [16:05:44]Write to MH i2c: E2 02 01 42 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 E0 1E 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 58 0B 01 00 35 04 06 00 05 00 00 7C [16:05:44]Write i2c OK [16:05:44]MH_I2C_Read... [16:05:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:44]Read from MH i2c: E2 [16:05:44]MH_I2C_Read... [16:05:44]Read from MH i2c: E2 03 00 [16:05:44]MH_I2C_Read... [16:05:44]Read from MH i2c: E2 03 00 42 37 00 90 00 ED [16:05:44]RAPDU: 90 00 [16:05:44]wFMCommunicate OK [16:05:44]wFMCommunicate request_size=10 [16:05:44]MH_SAM_APDU [16:05:44]CAPDU: 80 0D 02 02 05 4D 66 11 26 83 [16:05:44]Write to MH i2c: E2 0D 00 43 37 80 0D 02 02 05 00 4D 66 11 26 83 00 00 6B [16:05:44]Write i2c OK [16:05:44]MH_I2C_Read... [16:05:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:44]Read from MH i2c: E2 [16:05:44]MH_I2C_Read... [16:05:44]Read from MH i2c: E2 03 00 [16:05:44]MH_I2C_Read... [16:05:44]Read from MH i2c: E2 03 00 43 37 00 90 00 EE [16:05:44]RAPDU: 90 00 [16:05:44]wFMCommunicate OK [16:05:44]wFMCommunicate request_size=4 [16:05:44]MH_SAM_APDU [16:05:44]CAPDU: 80 0D 03 02 [16:05:44]Write to MH i2c: E2 08 00 44 37 80 0D 03 02 00 00 00 00 F6 [16:05:44]Write i2c OK [16:05:44]MH_I2C_Read... [16:05:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:05:44]Read from MH i2c: E2 [16:05:44]MH_I2C_Read... [16:05:44]Read from MH i2c: E2 0B 00 [16:05:44]MH_I2C_Read... [16:05:44]Read from MH i2c: E2 0B 00 44 37 00 B7 EF D1 FD 70 0F 03 2C 90 00 19 [16:05:44]RAPDU: B7 EF D1 FD 70 0F 03 2C 90 00 [16:05:44]wFMCommunicate OK [16:05:44]SAM_PROTO_SignData done [16:05:44]FM_MakeSignedData done [16:05:44]CreateOFDProtocolMessage [16:05:44]wFMCommunicate request_size=4 [16:05:44]MH_SAM_APDU [16:05:44]CAPDU: 80 11 00 00 [16:05:44]Write to MH i2c: E2 08 00 45 37 80 11 00 00 00 00 00 00 F6 [16:05:44]Write i2c OK [16:05:44]MH_I2C_Read... [16:05:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:44]Read from MH i2c: E2 [16:05:44]MH_I2C_Read... [16:05:44]Read from MH i2c: E2 17 00 [16:05:44]MH_I2C_Read... [16:05:44]Read from MH i2c: E2 17 00 45 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 4A [16:05:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [16:05:44]wFMCommunicate OK [16:05:44]CreateOFDProtocolMessage done [16:05:44]OFDSenderStorePacket 68440 [16:05:44]StoreOFDPacket docnum=68440 [16:05:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 C7 4F 07 01 60 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 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 E0 1E 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 58 0B 01 00 35 04 06 00 05 4D 66 11 26 83 B7 EF D1 FD 70 0F 03 2C [16:05:44]CheckFolder [16:05:44]dirname=/storage/ofd_packets [16:05:44]CheckFolder done [16:05:44]ProducePacketName [16:05:44]name=ofd_packets/00068440 [16:05:44]NVStorageSaveData ofd_packets/00068440 [16:05:44]File name is /storage/ofd_packets/00068440 [16:05:44]Write 301 bytes [16:05:44]NVStorageSaveData done [16:05:44]OFDSenderStorePacket done [16:05:44]KKMCreateOFDPacket done [16:05:44]NVStorageSaveData kkm_last_timestamp [16:05:44]File name is /storage/kkm_last_timestamp [16:05:44]Write 4 bytes [16:05:44]NVStorageSaveData done [16:05:44]ExternCall_PrintAddStr [16:05:44]wPrintStart [16:05:44]Write to MH i2c: 01 00 00 46 37 7D [16:05:44]Write i2c OK [16:05:44]MH_I2C_Read... [16:05:44]Read from MH i2c: 01 [16:05:44]MH_I2C_Read... [16:05:44]Read from MH i2c: 01 07 00 [16:05:44]MH_I2C_Read... [16:05:44]Read from MH i2c: 01 07 00 46 37 00 04 00 00 00 FF 0F 96 [16:05:44]RasterBufferAndPrint [16:05:44]line Счет N : (1)210437 [16:05:44]line ИНН: 02508201610067 [16:05:44]line Контрольно-Кассовый Чек [16:05:44]line ПРОДАЖА [16:05:44]line ТРК (МРК, ГНК) : 11 [16:05:44]line Товар: 2710124130 [16:05:44]line Аи-92-К-2 [16:05:44]line 3.740 * 66.90 [16:05:44]line = 250.21 [16:05:44]line НДС 12% НСП 1% [16:05:44]line > о реализуемом товаре [16:05:44]line ОКРУГЛЕНИЕ: -0.21 [16:05:44]line ИТОГО: 250.00 [16:05:44]line Внесено: 250.00 [16:05:44]line СДАЧА: 0.00 [16:05:44]line НСП 1% : 2.21 [16:05:44]line НДС 12% : 26.57 [16:05:44]line Наличными: 250.00 [16:05:44]line Безнал.: 0.00 [16:05:44]line Место: АЗС № 147 "Партнер Нефть" [16:05:44]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [16:05:44]line СНО: Общий режим [16:05:44]line Чек 63 23.10.2024 16:05 [16:05:44]line Смена: 507 ФФД: 1.0 [16:05:44]line ЗНМ: 0300000094 [16:05:44]line РНМ: 0000000000091756 [16:05:44]line Версия ККМ: 001 [16:05:44]line ФМ: 0000000000871809 [16:05:44]line ФД: 68440 [16:05:44]line ФПД: 5829983020675 [16:05:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T160552&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68440&fm=5829983020675&tin=02508201610067®Number=0000000000091756&sum=25000 [16:05:44]OFD Sender: Processing packet 68440 [packets to send 8, broken 7] [16:05:44]ProducePacketName [16:05:44]name=ofd_packets/00068440 [16:05:44]OFD Sender: To server: pG, [16:05:44]CommunicateWithHost lk.salyk.kg:30040 [16:05:44]ConnectInit lk.salyk.kg [16:05:44]written 0, free lines is 4095 [16:05:44]Connected sock=10 [16:05:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 C7 4F 07 01 60 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 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 E0 1E 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 58 0B 01 00 35 04 06 00 05 4D 66 11 26 83 B7 EF D1 FD 70 0F 03 2C [16:05:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 D6 86 47 00 0C 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 58 0B 01 00 F4 03 04 00 D4 C4 18 67 B6 04 01 00 00 BA 50 F4 CD 74 2A 4F E4 [16:05:45]CommunicateWithHost err = 0 [16:05:45]CheckOFDResponse [16:05:45]1017 (14) - 77093643461234 [16:05:45]1041 (16) - 0000000000871809 [16:05:45]1040 (4) - 68440 [16:05:45]1012 (4) - 23.10.2024 09:41 [16:05:45]1206 (1) - 0 [16:05:45]OFD Sender: Remove packet 68440 [16:05:45]ProducePacketName [16:05:45]name=ofd_packets/00068440 [16:05:45]NVStorageDeleteData [16:05:45]Write to MH i2c: 01 00 00 70 37 A7 [16:05:45]Write i2c OK [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: 01 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: 01 07 00 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: 01 07 00 70 37 00 04 00 00 00 AD 0C 6B [16:05:45]RasterBufferAndPrint [16:05:45]line [16:05:45]line [16:05:45]line [16:05:45]line [16:05:45]line [16:05:45]written 0, free lines is 3249 [16:05:45]MH_Cut [16:05:45]Write to MH i2c: D1 01 00 77 37 01 80 [16:05:45]Write i2c OK [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: D1 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: D1 01 00 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: D1 01 00 77 37 00 7F [16:05:45]Write to MH i2c: 01 00 00 78 37 AF [16:05:45]Write i2c OK [16:05:45]MH_I2C_Read... [16:05:45]OFD Sender: No OFD packet to send [16:05:46]*** Cut start [16:05:46]*** Partial cut [16:05:46]*** CUTSNS_PIN = 1 [16:05:46]*** CUTSNS_PIN = 0 [16:05:46]*** Brake cut motor [16:05:46]Read from MH i2c: 01 [16:05:46]MH_I2C_Read... [16:05:46]*** Stop cut motor [16:05:46]*** Cut end [16:05:46]Read from MH i2c: 01 07 00 [16:05:46]MH_I2C_Read... [16:05:46]Read from MH i2c: 01 07 00 78 37 00 04 00 00 00 FF 0F C8 [16:05:46]process_action close_receipt done [16:05:46]requested_data is exist [16:05:46]produce_requested_data [16:05:46]requested_item fm.sn is exist - process it [16:05:46]wFMCommunicate request_size=4 [16:05:46]MH_SAM_APDU [16:05:46]CAPDU: 80 11 00 00 [16:05:46]Write to MH i2c: E2 08 00 79 37 80 11 00 00 00 00 00 00 2A [16:05:46]Write i2c OK [16:05:46]MH_I2C_Read... [16:05:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:46]Read from MH i2c: E2 [16:05:46]MH_I2C_Read... [16:05:46]Read from MH i2c: E2 17 00 [16:05:46]MH_I2C_Read... [16:05:46]Read from MH i2c: E2 17 00 79 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 7E [16:05:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [16:05:46]wFMCommunicate OK [16:05:46]requested_item fd.num is exist - process it [16:05:46]SAM_PROTO_GetFieldsCounters [16:05:46]wFMCommunicate request_size=4 [16:05:46]MH_SAM_APDU [16:05:46]CAPDU: 80 13 00 00 [16:05:46]Write to MH i2c: E2 08 00 7A 37 80 13 00 00 00 00 00 00 2D [16:05:46]Write i2c OK [16:05:46]MH_I2C_Read... [16:05:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:46]Read from MH i2c: E2 [16:05:46]MH_I2C_Read... [16:05:46]Read from MH i2c: E2 62 00 [16:05:46]MH_I2C_Read... [16:05:46]Read from MH i2c: E2 62 00 7A 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 58 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [16:05:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 58 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:05:46]wFMCommunicate OK [16:05:46]SAM_PROTO_GetFieldsCounters done [16:05:46]requested_item shift.num is exist - process it [16:05:46]requested_item shift.opened is exist - process it [16:05:46]req_shift_opened [16:05:46]FM_GetShiftState [16:05:46]SAM_PROTO_GetShiftState [16:05:46]wFMCommunicate request_size=4 [16:05:46]MH_SAM_APDU [16:05:46]CAPDU: 80 13 01 00 [16:05:46]Write to MH i2c: E2 08 00 7B 37 80 13 01 00 00 00 00 00 2F [16:05:46]Write i2c OK [16:05:46]MH_I2C_Read... [16:05:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:46]Read from MH i2c: E2 [16:05:46]MH_I2C_Read... [16:05:46]Read from MH i2c: E2 0E 00 [16:05:46]MH_I2C_Read... [16:05:46]Read from MH i2c: E2 0E 00 7B 37 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 9E [16:05:46]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [16:05:46]wFMCommunicate OK [16:05:46]SAM_PROTO_GetShiftState done [16:05:46]FM_GetShiftState done [16:05:46]req_shift_opened done [16:05:46]requested_item shift.open_date is exist - process it [16:05:46]req_shift_open_date [16:05:46]req_shift_open_date done [16:05:46]produce_requested_data done [16:05:46]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68440,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [16:05:46]process_action_free close_receipt [16:05:46]json_value_free [16:05:46]json_value_free done [16:05:46]process_json_proto returns [16:05:46]Send response to host [16:05:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68440,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [16:05:46]free response buf [16:05:46]execute_script done [16:05:46]execute_script returns [16:05:46]free content buf [16:05:46]Sock 9.Close socket [16:05:46]Sock 9.Thread stoped [16:05:50]OFD Sender: No OFD packet to send [16:05:55]OFD Sender: No OFD packet to send [16:06:00]OFD Sender: No OFD packet to send [16:06:05]OFD Sender: No OFD packet to send [16:06:10]OFD Sender: No OFD packet to send [16:06:15]OFD Sender: No OFD packet to send [16:06:20]OFD Sender: No OFD packet to send [16:06:25]OFD Sender: No OFD packet to send [16:06:30]OFD Sender: No OFD packet to send [16:06:35]OFD Sender: No OFD packet to send [16:06:40]OFD Sender: No OFD packet to send [16:06:45]OFD Sender: No OFD packet to send [16:06:48]accept exits with 7 [16:06:48]New connection [16:06:48]New thread 3067276644 created [16:06:48]Thread 3067133284 joined [16:06:48]Waiting for new connection... [16:06:48] Sock 7.Parse request [16:06:48]Sock 7.Check first char [16:06:48]Sock 7.First char is OK [16:06:48]request: POST /json_proto HTTP/1.0 [16:06:48]Method: POST [16:06:48]URL: /json_proto [16:06:48]Method is POST - this is cgi request [16:06:48]url: /json_proto [16:06:48]query_string will be loaded in cgi processing [16:06:48]execute_cgi json_proto POST (null) [16:06:48]execute_cgi path=json_proto method=POST [16:06:48]POST find Content-Length [16:06:48]Host: 172.17.52.3:8080 [16:06:48]Content-Length: 679 [16:06:48]Content-Type: application/json [16:06:48] [16:06:48]POST finish read [16:06:48]Found Content-Length = 679 [16:06:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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:06:48]execute_script... [16:06: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)210438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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:06:48]POST & json_proto [16:06:48]process_json_proto [16:06:48]json parsed OK: [16:06:48]protocol is kg_v1.0 [16:06:48]action value=close_receipt [16:06:48]process_action close_receipt [16:06:48]cmd_close_receipt [16:06:48]MH_GetDate [16:06:48]Write to MH i2c: F0 00 00 7C 37 A2 [16:06:48]Write i2c OK [16:06:48]MH_I2C_Read... [16:06:48]Read from MH i2c: F0 [16:06:48]MH_I2C_Read... [16:06:48]Read from MH i2c: F0 09 00 [16:06:48]MH_I2C_Read... [16:06:48]Read from MH i2c: F0 09 00 7C 37 00 22 1F 19 67 D7 68 A5 64 B4 [16:06:48]GetLastDocTimeStamp 1729699552 [16:06:48]current date 1729699618 [16:06:48]FM_GetShiftState [16:06:48]SAM_PROTO_GetShiftState [16:06:48]wFMCommunicate request_size=4 [16:06:48]MH_SAM_APDU [16:06:48]CAPDU: 80 13 01 00 [16:06:48]Write to MH i2c: E2 08 00 7D 37 80 13 01 00 00 00 00 00 31 [16:06:48]Write i2c OK [16:06:48]MH_I2C_Read... [16:06:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:48]Read from MH i2c: E2 [16:06:48]MH_I2C_Read... [16:06:48]Read from MH i2c: E2 0E 00 [16:06:48]MH_I2C_Read... [16:06:48]Read from MH i2c: E2 0E 00 7D 37 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 A0 [16:06:48]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [16:06:48]wFMCommunicate OK [16:06:48]SAM_PROTO_GetShiftState done [16:06:48]FM_GetShiftState done [16:06:48]opened in 1729641385 [16:06:48]opened+sec_in_day 1729727785 [16:06:48]quantity*price = 100050 [16:06:48]sum+1 = 100052 [16:06:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 64 23.10.2024 16:06 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68441 ФПД: 271351227920021 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T160658&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68441&fm=271351227920021&tin=02508201610067®Number=0000000000091756&sum=100000 [16:06:49]StoreToDocumentArchive [16:06:49]shift 507 fd 68441 [16:06:49]save to /storage/0507/doc_00068441 [16:06:49]save last doc name /storage/0507/doc_00068441 to /storage/kkm_last_doc_name [16:06:49]save OK [16:06:49]Clear old archive folders... [16:06:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:06:49]tlvbuf is 02057780 [16:06:49]SAM_PROTO_ClearQueue [16:06:49]wFMCommunicate request_size=4 [16:06:49]MH_SAM_APDU [16:06:49]CAPDU: 80 09 00 00 [16:06:49]Write to MH i2c: E2 08 00 8A 37 80 09 00 00 00 00 00 00 33 [16:06:49]Write i2c OK [16:06:49]MH_I2C_Read... [16:06:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:06:49]Read from MH i2c: E2 [16:06:49]MH_I2C_Read... [16:06:49]Read from MH i2c: E2 03 00 [16:06:49]MH_I2C_Read... [16:06:49]Read from MH i2c: E2 03 00 8A 37 00 90 00 35 [16:06:49]RAPDU: 90 00 [16:06:49]wFMCommunicate OK [16:06:49]SAM_PROTO_ClearQueue done [16:06:49]KKMCreateOFDPacket [16:06:49]OFDProtocolAddRootSTLVToBuf [16:06:49]FM_MakeSignedData [16:06:49]FM_MakeSignedData [16:06:49]SAM_PROTO_SignData [16:06:49]wFMCommunicate request_size=4 [16:06:49]MH_SAM_APDU [16:06:49]CAPDU: 80 0D 01 02 [16:06:49]Write to MH i2c: E2 08 00 8B 37 80 0D 01 02 00 00 00 00 3B [16:06:49]Write i2c OK [16:06:49]MH_I2C_Read... [16:06:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:06:50]Read from MH i2c: E2 [16:06:50]MH_I2C_Read... [16:06:50]Read from MH i2c: E2 03 00 [16:06:50]MH_I2C_Read... [16:06:50]Read from MH i2c: E2 03 00 8B 37 00 90 00 36 [16:06:50]RAPDU: 90 00 [16:06:50]wFMCommunicate OK [16:06:50]wFMCommunicate request_size=255 [16:06:50]MH_SAM_APDU [16:06:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 22 1F 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 59 0B 01 00 35 04 06 00 F6 CA E1 8C [16:06:50]Write to MH i2c: E2 02 01 8C 37 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 22 1F 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 59 0B 01 00 35 04 06 00 F6 CA E1 8C 00 00 50 [16:06:50]Write i2c OK [16:06:50]MH_I2C_Read... [16:06:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:50]Read from MH i2c: E2 [16:06:50]MH_I2C_Read... [16:06:50]Read from MH i2c: E2 03 00 [16:06:50]MH_I2C_Read... [16:06:50]Read from MH i2c: E2 03 00 8C 37 00 90 00 37 [16:06:50]RAPDU: 90 00 [16:06:50]wFMCommunicate OK [16:06:50]wFMCommunicate request_size=7 [16:06:50]MH_SAM_APDU [16:06:50]CAPDU: 80 0D 02 02 02 AE 95 [16:06:50]Write to MH i2c: E2 0A 00 8D 37 80 0D 02 02 02 00 AE 95 00 00 85 [16:06:50]Write i2c OK [16:06:50]MH_I2C_Read... [16:06:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:50]Read from MH i2c: E2 [16:06:50]MH_I2C_Read... [16:06:50]Read from MH i2c: E2 03 00 [16:06:50]MH_I2C_Read... [16:06:50]Read from MH i2c: E2 03 00 8D 37 00 90 00 38 [16:06:50]RAPDU: 90 00 [16:06:50]wFMCommunicate OK [16:06:50]wFMCommunicate request_size=4 [16:06:50]MH_SAM_APDU [16:06:50]CAPDU: 80 0D 03 02 [16:06:50]Write to MH i2c: E2 08 00 8E 37 80 0D 03 02 00 00 00 00 40 [16:06:50]Write i2c OK [16:06:50]MH_I2C_Read... [16:06:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:06:50]Read from MH i2c: E2 [16:06:50]MH_I2C_Read... [16:06:50]Read from MH i2c: E2 0B 00 [16:06:50]MH_I2C_Read... [16:06:50]Read from MH i2c: E2 0B 00 8E 37 00 64 7C 10 8E F0 13 BC D9 90 00 57 [16:06:50]RAPDU: 64 7C 10 8E F0 13 BC D9 90 00 [16:06:50]wFMCommunicate OK [16:06:50]SAM_PROTO_SignData done [16:06:50]FM_MakeSignedData done [16:06:50]CreateOFDProtocolMessage [16:06:50]wFMCommunicate request_size=4 [16:06:50]MH_SAM_APDU [16:06:50]CAPDU: 80 11 00 00 [16:06:50]Write to MH i2c: E2 08 00 8F 37 80 11 00 00 00 00 00 00 40 [16:06:50]Write i2c OK [16:06:50]MH_I2C_Read... [16:06:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:50]Read from MH i2c: E2 [16:06:50]MH_I2C_Read... [16:06:50]Read from MH i2c: E2 17 00 [16:06:50]MH_I2C_Read... [16:06:50]Read from MH i2c: E2 17 00 8F 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 94 [16:06:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [16:06:50]wFMCommunicate OK [16:06:50]CreateOFDProtocolMessage done [16:06:50]OFDSenderStorePacket 68441 [16:06:50]StoreOFDPacket docnum=68441 [16:06:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0C 01 00 00 33 E1 04 01 D0 49 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 22 1F 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 59 0B 01 00 35 04 06 00 F6 CA E1 8C AE 95 64 7C 10 8E F0 13 BC D9 [16:06:50]CheckFolder [16:06:50]dirname=/storage/ofd_packets [16:06:50]CheckFolder done [16:06:50]ProducePacketName [16:06:50]name=ofd_packets/00068441 [16:06:50]NVStorageSaveData ofd_packets/00068441 [16:06:50]File name is /storage/ofd_packets/00068441 [16:06:50]Write 298 bytes [16:06:50]NVStorageSaveData done [16:06:50]OFDSenderStorePacket done [16:06:50]KKMCreateOFDPacket done [16:06:50]NVStorageSaveData kkm_last_timestamp [16:06:50]File name is /storage/kkm_last_timestamp [16:06:50]Write 4 bytes [16:06:50]NVStorageSaveData done [16:06:50]ExternCall_PrintAddStr [16:06:50]wPrintStart [16:06:50]Write to MH i2c: 01 00 00 90 37 C7 [16:06:50]Write i2c OK [16:06:50]MH_I2C_Read... [16:06:50]Read from MH i2c: 01 [16:06:50]MH_I2C_Read... [16:06:50]Read from MH i2c: 01 07 00 [16:06:50]MH_I2C_Read... [16:06:50]Read from MH i2c: 01 07 00 90 37 00 04 00 00 00 FF 0F E0 [16:06:50]RasterBufferAndPrint [16:06:50]line Счет N : (1)210438 [16:06:50]line ИНН: 02508201610067 [16:06:50]line Контрольно-Кассовый Чек [16:06:50]line ПРОДАЖА [16:06:50]line ТРК (МРК, ГНК) : 32 [16:06:50]line Товар: 2710194210 [16:06:50]line ДТ-К-2 [16:06:50]line 13.130 * 76.20 [16:06:50]line = 1000.51 [16:06:50]line НДС 12% НСП 1% [16:06:50]line > о реализуемом товаре [16:06:50]line ОКРУГЛЕНИЕ: -0.51 [16:06:50]line ИТОГО: 1000.00 [16:06:50]line Внесено: 1000.00 [16:06:50]line СДАЧА: 0.00 [16:06:50]line НСП 1% : 8.85 [16:06:50]line НДС 12% : 106.25 [16:06:50]line Наличными: 1000.00 [16:06:50]line Безнал.: 0.00 [16:06:50]line Место: АЗС № 147 "Партнер Нефть" [16:06:50]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [16:06:50]line СНО: Общий режим [16:06:50]line Чек 64 23.10.2024 16:06 [16:06:50]line Смена: 507 ФФД: 1.0 [16:06:50]line ЗНМ: 0300000094 [16:06:50]line РНМ: 0000000000091756 [16:06:50]line Версия ККМ: 001 [16:06:50]line ФМ: 0000000000871809 [16:06:50]line ФД: 68441 [16:06:50]line ФПД: 271351227920021 [16:06:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T160658&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68441&fm=271351227920021&tin=02508201610067®Number=0000000000091756&sum=100000 [16:06:50]OFD Sender: Processing packet 68441 [packets to send 8, broken 7] [16:06:50]ProducePacketName [16:06:50]name=ofd_packets/00068441 [16:06:50]OFD Sender: To server: pG, [16:06:50]CommunicateWithHost lk.salyk.kg:30040 [16:06:50]ConnectInit lk.salyk.kg [16:06:50]written 0, free lines is 4095 [16:06:50]Connected sock=10 [16:06:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0C 01 00 00 33 E1 04 01 D0 49 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 22 1F 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 59 0B 01 00 35 04 06 00 F6 CA E1 8C AE 95 64 7C 10 8E F0 13 BC D9 [16:06:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 C6 1E 47 00 AB E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 59 0B 01 00 F4 03 04 00 16 C5 18 67 B6 04 01 00 00 AB E6 51 C9 EC E7 0B 79 [16:06:51]CommunicateWithHost err = 0 [16:06:51]CheckOFDResponse [16:06:51]1017 (14) - 77093643461234 [16:06:51]1041 (16) - 0000000000871809 [16:06:51]1040 (4) - 68441 [16:06:51]1012 (4) - 23.10.2024 09:42 [16:06:51]1206 (1) - 0 [16:06:51]OFD Sender: Remove packet 68441 [16:06:51]ProducePacketName [16:06:51]name=ofd_packets/00068441 [16:06:51]NVStorageDeleteData [16:06:51]Write to MH i2c: 01 00 00 BA 37 F1 [16:06:51]Write i2c OK [16:06:51]MH_I2C_Read... [16:06:51]Read from MH i2c: 01 [16:06:51]MH_I2C_Read... [16:06:51]Read from MH i2c: 01 07 00 [16:06:51]MH_I2C_Read... [16:06:51]Read from MH i2c: 01 07 00 BA 37 00 04 00 00 00 AA 0C B2 [16:06:51]RasterBufferAndPrint [16:06:51]line [16:06:51]line [16:06:51]line [16:06:51]line [16:06:51]line [16:06:51]written 0, free lines is 3248 [16:06:51]MH_Cut [16:06:51]Write to MH i2c: D1 01 00 C1 37 01 CA [16:06:51]Write i2c OK [16:06:51]MH_I2C_Read... [16:06:51]Read from MH i2c: D1 [16:06:51]MH_I2C_Read... [16:06:51]Read from MH i2c: D1 01 00 [16:06:51]MH_I2C_Read... [16:06:51]Read from MH i2c: D1 01 00 C1 37 00 C9 [16:06:51]Write to MH i2c: 01 00 00 C2 37 F9 [16:06:51]Write i2c OK [16:06:51]MH_I2C_Read... [16:06:51]OFD Sender: No OFD packet to send [16:06:52]*** Cut start [16:06:52]*** Partial cut [16:06:52]*** CUTSNS_PIN = 1 [16:06:52]*** CUTSNS_PIN = 0 [16:06:52]*** Brake cut motor [16:06:52]Read from MH i2c: 01 [16:06:52]MH_I2C_Read... [16:06:52]*** Stop cut motor [16:06:52]*** Cut end [16:06:52]Read from MH i2c: 01 07 00 [16:06:52]MH_I2C_Read... [16:06:52]Read from MH i2c: 01 07 00 C2 37 00 04 00 00 00 FF 0F 12 [16:06:52]process_action close_receipt done [16:06:52]requested_data is exist [16:06:52]produce_requested_data [16:06:52]requested_item fm.sn is exist - process it [16:06:52]wFMCommunicate request_size=4 [16:06:52]MH_SAM_APDU [16:06:52]CAPDU: 80 11 00 00 [16:06:52]Write to MH i2c: E2 08 00 C3 37 80 11 00 00 00 00 00 00 74 [16:06:52]Write i2c OK [16:06:52]MH_I2C_Read... [16:06:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:52]Read from MH i2c: E2 [16:06:52]MH_I2C_Read... [16:06:52]Read from MH i2c: E2 17 00 [16:06:52]MH_I2C_Read... [16:06:52]Read from MH i2c: E2 17 00 C3 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 C8 [16:06:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [16:06:52]wFMCommunicate OK [16:06:52]requested_item fd.num is exist - process it [16:06:52]SAM_PROTO_GetFieldsCounters [16:06:52]wFMCommunicate request_size=4 [16:06:52]MH_SAM_APDU [16:06:52]CAPDU: 80 13 00 00 [16:06:52]Write to MH i2c: E2 08 00 C4 37 80 13 00 00 00 00 00 00 77 [16:06:52]Write i2c OK [16:06:52]MH_I2C_Read... [16:06:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:06:52]Read from MH i2c: E2 [16:06:52]MH_I2C_Read... [16:06:52]Read from MH i2c: E2 62 00 [16:06:52]MH_I2C_Read... [16:06:52]Read from MH i2c: E2 62 00 C4 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 59 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [16:06:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 59 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:06:52]wFMCommunicate OK [16:06:52]SAM_PROTO_GetFieldsCounters done [16:06:52]requested_item shift.num is exist - process it [16:06:52]requested_item shift.opened is exist - process it [16:06:52]req_shift_opened [16:06:52]FM_GetShiftState [16:06:52]SAM_PROTO_GetShiftState [16:06:52]wFMCommunicate request_size=4 [16:06:52]MH_SAM_APDU [16:06:52]CAPDU: 80 13 01 00 [16:06:52]Write to MH i2c: E2 08 00 C5 37 80 13 01 00 00 00 00 00 79 [16:06:52]Write i2c OK [16:06:52]MH_I2C_Read... [16:06:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:52]Read from MH i2c: E2 [16:06:52]MH_I2C_Read... [16:06:52]Read from MH i2c: E2 0E 00 [16:06:52]MH_I2C_Read... [16:06:52]Read from MH i2c: E2 0E 00 C5 37 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 E8 [16:06:52]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [16:06:52]wFMCommunicate OK [16:06:52]SAM_PROTO_GetShiftState done [16:06:52]FM_GetShiftState done [16:06:52]req_shift_opened done [16:06:52]requested_item shift.open_date is exist - process it [16:06:52]req_shift_open_date [16:06:52]req_shift_open_date done [16:06:52]produce_requested_data done [16:06:52]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68441,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [16:06:52]process_action_free close_receipt [16:06:52]json_value_free [16:06:52]json_value_free done [16:06:52]process_json_proto returns [16:06:52]Send response to host [16:06:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68441,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [16:06:52]free response buf [16:06:52]execute_script done [16:06:52]execute_script returns [16:06:52]free content buf [16:06:52]Sock 7.Close socket [16:06:52]Sock 7.Thread stoped [16:06:56]OFD Sender: No OFD packet to send [16:07:01]OFD Sender: No OFD packet to send [16:07:06]OFD Sender: No OFD packet to send [16:07:11]OFD Sender: No OFD packet to send [16:07:16]OFD Sender: No OFD packet to send [16:07:21]OFD Sender: No OFD packet to send [16:07:26]OFD Sender: No OFD packet to send [16:07:31]OFD Sender: No OFD packet to send [16:07:36]OFD Sender: No OFD packet to send [16:07:41]OFD Sender: No OFD packet to send [16:07:46]OFD Sender: No OFD packet to send [16:07:51]OFD Sender: No OFD packet to send [16:07:56]OFD Sender: No OFD packet to send [16:08:01]OFD Sender: No OFD packet to send [16:08:06]OFD Sender: No OFD packet to send [16:08:11]OFD Sender: No OFD packet to send [16:08:16]OFD Sender: No OFD packet to send [16:08:21]OFD Sender: No OFD packet to send [16:08:26]OFD Sender: No OFD packet to send [16:08:31]OFD Sender: No OFD packet to send [16:08:36]OFD Sender: No OFD packet to send [16:08:41]OFD Sender: No OFD packet to send [16:08:46]OFD Sender: No OFD packet to send [16:08:51]OFD Sender: No OFD packet to send [16:08:56]OFD Sender: No OFD packet to send [16:09:01]OFD Sender: No OFD packet to send [16:09:06]OFD Sender: No OFD packet to send [16:09:11]OFD Sender: No OFD packet to send [16:09:16]OFD Sender: No OFD packet to send [16:09:21]OFD Sender: No OFD packet to send [16:09:26]OFD Sender: No OFD packet to send [16:09:31]OFD Sender: No OFD packet to send [16:09:36]OFD Sender: No OFD packet to send [16:09:41]OFD Sender: No OFD packet to send [16:09:46]OFD Sender: No OFD packet to send [16:09:51]OFD Sender: No OFD packet to send [16:09:56]OFD Sender: No OFD packet to send [16:10:01]OFD Sender: No OFD packet to send [16:10:06]OFD Sender: No OFD packet to send [16:10:11]OFD Sender: No OFD packet to send [16:10:16]OFD Sender: No OFD packet to send [16:10:21]OFD Sender: No OFD packet to send [16:10:26]OFD Sender: No OFD packet to send [16:10:31]OFD Sender: No OFD packet to send [16:10:36]OFD Sender: No OFD packet to send [16:10:41]OFD Sender: No OFD packet to send [16:10:46]OFD Sender: No OFD packet to send [16:10:51]OFD Sender: No OFD packet to send [16:10:56]OFD Sender: No OFD packet to send [16:11:01]OFD Sender: No OFD packet to send [16:11:06]OFD Sender: No OFD packet to send [16:11:11]OFD Sender: No OFD packet to send [16:11:16]OFD Sender: No OFD packet to send [16:11:21]OFD Sender: No OFD packet to send [16:11:26]OFD Sender: No OFD packet to send [16:11:31]OFD Sender: No OFD packet to send [16:11:36]OFD Sender: No OFD packet to send [16:11:41]OFD Sender: No OFD packet to send [16:11:46]OFD Sender: No OFD packet to send [16:11:51]OFD Sender: No OFD packet to send [16:11:56]OFD Sender: No OFD packet to send [16:12:01]OFD Sender: No OFD packet to send [16:12:06]OFD Sender: No OFD packet to send [16:12:11]OFD Sender: No OFD packet to send [16:12:16]OFD Sender: No OFD packet to send [16:12:21]OFD Sender: No OFD packet to send [16:12:26]OFD Sender: No OFD packet to send [16:12:31]OFD Sender: No OFD packet to send [16:12:36]OFD Sender: No OFD packet to send [16:12:41]OFD Sender: No OFD packet to send [16:12:46]OFD Sender: No OFD packet to send [16:12:51]OFD Sender: No OFD packet to send [16:12:56]OFD Sender: No OFD packet to send [16:13:01]OFD Sender: No OFD packet to send [16:13:06]OFD Sender: No OFD packet to send [16:13:11]OFD Sender: No OFD packet to send [16:13:16]OFD Sender: No OFD packet to send [16:13:21]OFD Sender: No OFD packet to send [16:13:26]OFD Sender: No OFD packet to send [16:13:31]OFD Sender: No OFD packet to send [16:13:36]OFD Sender: No OFD packet to send [16:13:41]OFD Sender: No OFD packet to send [16:13:46]OFD Sender: No OFD packet to send [16:13:52]OFD Sender: No OFD packet to send [16:13:57]OFD Sender: No OFD packet to send [16:14:02]OFD Sender: No OFD packet to send [16:14:07]OFD Sender: No OFD packet to send [16:14:12]OFD Sender: No OFD packet to send [16:14:17]OFD Sender: No OFD packet to send [16:14:22]OFD Sender: No OFD packet to send [16:14:27]OFD Sender: No OFD packet to send [16:14:32]OFD Sender: No OFD packet to send [16:14:37]OFD Sender: No OFD packet to send [16:14:42]OFD Sender: No OFD packet to send [16:14:47]OFD Sender: No OFD packet to send [16:14:52]OFD Sender: No OFD packet to send [16:14:57]OFD Sender: No OFD packet to send [16:15:02]OFD Sender: No OFD packet to send [16:15:07]OFD Sender: No OFD packet to send [16:15:12]OFD Sender: No OFD packet to send [16:15:17]OFD Sender: No OFD packet to send [16:15:22]OFD Sender: No OFD packet to send [16:15:27]OFD Sender: No OFD packet to send [16:15:32]OFD Sender: No OFD packet to send [16:15:37]OFD Sender: No OFD packet to send [16:15:42]OFD Sender: No OFD packet to send [16:15:47]OFD Sender: No OFD packet to send [16:15:52]OFD Sender: No OFD packet to send [16:15:57]OFD Sender: No OFD packet to send [16:16:02]OFD Sender: No OFD packet to send [16:16:07]OFD Sender: No OFD packet to send [16:16:12]OFD Sender: No OFD packet to send [16:16:17]OFD Sender: No OFD packet to send [16:16:22]OFD Sender: No OFD packet to send [16:16:27]OFD Sender: No OFD packet to send [16:16:32]OFD Sender: No OFD packet to send [16:16:37]OFD Sender: No OFD packet to send [16:16:42]OFD Sender: No OFD packet to send [16:16:47]OFD Sender: No OFD packet to send [16:16:52]OFD Sender: No OFD packet to send [16:16:57]OFD Sender: No OFD packet to send [16:17:02]OFD Sender: No OFD packet to send [16:17:07]OFD Sender: No OFD packet to send [16:17:07]accept exits with 9 [16:17:07]New connection [16:17:07]New thread 3067133284 created [16:17:07]Thread 3067276644 joined [16:17:07]Waiting for new connection... [16:17:07] Sock 9.Parse request [16:17:07]Sock 9.Check first char [16:17:07]Sock 9.First char is OK [16:17:07]request: POST /json_proto HTTP/1.0 [16:17:07]Method: POST [16:17:07]URL: /json_proto [16:17:07]Method is POST - this is cgi request [16:17:07]url: /json_proto [16:17:07]query_string will be loaded in cgi processing [16:17:07]execute_cgi json_proto POST (null) [16:17:07]execute_cgi path=json_proto method=POST [16:17:07]POST find Content-Length [16:17:07]Host: 172.17.52.3:8080 [16:17:07]Content-Length: 679 [16:17:07]Content-Type: application/json [16:17:07] [16:17:07]POST finish read [16:17:07]Found Content-Length = 679 [16:17:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 18.380, "sum" : 1400.56, "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" ] } } [16:17:07]execute_script... [16:17: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)210439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 18.380, "sum" : 1400.56, "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" ] } } [16:17:07]POST & json_proto [16:17:07]process_json_proto [16:17:07]json parsed OK: [16:17:07]protocol is kg_v1.0 [16:17:07]action value=close_receipt [16:17:07]process_action close_receipt [16:17:07]cmd_close_receipt [16:17:07]MH_GetDate [16:17:07]Write to MH i2c: F0 00 00 C6 37 EC [16:17:07]Write i2c OK [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: F0 [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: F0 09 00 [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: F0 09 00 C6 37 00 8C 21 19 67 D7 68 A5 64 6A [16:17:07]GetLastDocTimeStamp 1729699618 [16:17:07]current date 1729700236 [16:17:07]FM_GetShiftState [16:17:07]SAM_PROTO_GetShiftState [16:17:07]wFMCommunicate request_size=4 [16:17:07]MH_SAM_APDU [16:17:07]CAPDU: 80 13 01 00 [16:17:07]Write to MH i2c: E2 08 00 C7 37 80 13 01 00 00 00 00 00 7B [16:17:07]Write i2c OK [16:17:07]MH_I2C_Read... [16:17:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:07]Read from MH i2c: E2 [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: E2 0E 00 [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: E2 0E 00 C7 37 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 EA [16:17:07]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [16:17:07]wFMCommunicate OK [16:17:07]SAM_PROTO_GetShiftState done [16:17:07]FM_GetShiftState done [16:17:07]opened in 1729641385 [16:17:07]opened+sec_in_day 1729727785 [16:17:07]quantity*price = 140055 [16:17:07]sum+1 = 140057 [16:17:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.73 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 65 23.10.2024 16:17 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68442 ФПД: 182763612475105 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T161716&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68442&fm=182763612475105&tin=02508201610067®Number=0000000000091756&sum=140000 [16:17:08]StoreToDocumentArchive [16:17:08]shift 507 fd 68442 [16:17:08]save to /storage/0507/doc_00068442 [16:17:08]save last doc name /storage/0507/doc_00068442 to /storage/kkm_last_doc_name [16:17:08]save OK [16:17:08]Clear old archive folders... [16:17:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:17:08]tlvbuf is 01FE1CF0 [16:17:08]SAM_PROTO_ClearQueue [16:17:08]wFMCommunicate request_size=4 [16:17:08]MH_SAM_APDU [16:17:08]CAPDU: 80 09 00 00 [16:17:08]Write to MH i2c: E2 08 00 D4 37 80 09 00 00 00 00 00 00 7D [16:17:08]Write i2c OK [16:17:08]MH_I2C_Read... [16:17:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:17:08]Read from MH i2c: E2 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 03 00 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 03 00 D4 37 00 90 00 7F [16:17:08]RAPDU: 90 00 [16:17:08]wFMCommunicate OK [16:17:08]SAM_PROTO_ClearQueue done [16:17:08]KKMCreateOFDPacket [16:17:08]OFDProtocolAddRootSTLVToBuf [16:17:08]FM_MakeSignedData [16:17:08]FM_MakeSignedData [16:17:08]SAM_PROTO_SignData [16:17:08]wFMCommunicate request_size=4 [16:17:08]MH_SAM_APDU [16:17:08]CAPDU: 80 0D 01 02 [16:17:08]Write to MH i2c: E2 08 00 D5 37 80 0D 01 02 00 00 00 00 85 [16:17:08]Write i2c OK [16:17:08]MH_I2C_Read... [16:17:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:17:08]Read from MH i2c: E2 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 03 00 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 03 00 D5 37 00 90 00 80 [16:17:08]RAPDU: 90 00 [16:17:08]wFMCommunicate OK [16:17:08]wFMCommunicate request_size=255 [16:17:08]MH_SAM_APDU [16:17:08]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 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 19 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 41 00 00 00 F4 03 04 00 8C 21 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 5A 0B 01 00 35 04 06 00 A6 38 F8 33 [16:17:08]Write to MH i2c: E2 02 01 D6 37 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 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 19 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 41 00 00 00 F4 03 04 00 8C 21 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 5A 0B 01 00 35 04 06 00 A6 38 F8 33 00 00 23 [16:17:08]Write i2c OK [16:17:08]MH_I2C_Read... [16:17:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:08]Read from MH i2c: E2 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 03 00 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 03 00 D6 37 00 90 00 81 [16:17:08]RAPDU: 90 00 [16:17:08]wFMCommunicate OK [16:17:08]wFMCommunicate request_size=7 [16:17:08]MH_SAM_APDU [16:17:08]CAPDU: 80 0D 02 02 02 0E E1 [16:17:08]Write to MH i2c: E2 0A 00 D7 37 80 0D 02 02 02 00 0E E1 00 00 7B [16:17:08]Write i2c OK [16:17:08]MH_I2C_Read... [16:17:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:08]Read from MH i2c: E2 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 03 00 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 03 00 D7 37 00 90 00 82 [16:17:08]RAPDU: 90 00 [16:17:08]wFMCommunicate OK [16:17:08]wFMCommunicate request_size=4 [16:17:08]MH_SAM_APDU [16:17:08]CAPDU: 80 0D 03 02 [16:17:08]Write to MH i2c: E2 08 00 D8 37 80 0D 03 02 00 00 00 00 8A [16:17:08]Write i2c OK [16:17:08]MH_I2C_Read... [16:17:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:17:08]Read from MH i2c: E2 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 0B 00 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 0B 00 D8 37 00 9E 30 A6 E2 AE 35 BC F6 90 00 76 [16:17:08]RAPDU: 9E 30 A6 E2 AE 35 BC F6 90 00 [16:17:08]wFMCommunicate OK [16:17:08]SAM_PROTO_SignData done [16:17:08]FM_MakeSignedData done [16:17:08]CreateOFDProtocolMessage [16:17:08]wFMCommunicate request_size=4 [16:17:08]MH_SAM_APDU [16:17:08]CAPDU: 80 11 00 00 [16:17:08]Write to MH i2c: E2 08 00 D9 37 80 11 00 00 00 00 00 00 8A [16:17:08]Write i2c OK [16:17:08]MH_I2C_Read... [16:17:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:08]Read from MH i2c: E2 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 17 00 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 17 00 D9 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 DE [16:17:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [16:17:08]wFMCommunicate OK [16:17:08]CreateOFDProtocolMessage done [16:17:08]OFDSenderStorePacket 68442 [16:17:08]StoreOFDPacket docnum=68442 [16:17:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0C 01 00 00 D4 C5 04 01 B6 24 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 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 19 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 41 00 00 00 F4 03 04 00 8C 21 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 5A 0B 01 00 35 04 06 00 A6 38 F8 33 0E E1 9E 30 A6 E2 AE 35 BC F6 [16:17:08]CheckFolder [16:17:08]dirname=/storage/ofd_packets [16:17:08]CheckFolder done [16:17:08]ProducePacketName [16:17:08]name=ofd_packets/00068442 [16:17:08]NVStorageSaveData ofd_packets/00068442 [16:17:08]File name is /storage/ofd_packets/00068442 [16:17:08]Write 298 bytes [16:17:08]NVStorageSaveData done [16:17:08]OFDSenderStorePacket done [16:17:08]KKMCreateOFDPacket done [16:17:08]NVStorageSaveData kkm_last_timestamp [16:17:08]File name is /storage/kkm_last_timestamp [16:17:08]Write 4 bytes [16:17:08]NVStorageSaveData done [16:17:08]ExternCall_PrintAddStr [16:17:08]wPrintStart [16:17:08]Write to MH i2c: 01 00 00 DA 37 11 [16:17:08]Write i2c OK [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: 01 [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: 01 07 00 [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: 01 07 00 DA 37 00 04 00 00 00 FF 0F 2A [16:17:09]RasterBufferAndPrint [16:17:09]line Счет N : (1)210439 [16:17:09]line ИНН: 02508201610067 [16:17:09]line Контрольно-Кассовый Чек [16:17:09]line ПРОДАЖА [16:17:09]line ТРК (МРК, ГНК) : 21 [16:17:09]line Товар: 2710194210 [16:17:09]line ДТ-К-2 [16:17:09]line 18.380 * 76.20 [16:17:09]line = 1400.56 [16:17:09]line НДС 12% НСП 1% [16:17:09]line > о реализуемом товаре [16:17:09]line ОКРУГЛЕНИЕ: -0.56 [16:17:09]line ИТОГО: 1400.00 [16:17:09]line Внесено: 1400.00 [16:17:09]line СДАЧА: 0.00 [16:17:09]line НСП 1% : 12.39 [16:17:09]line НДС 12% : 148.73 [16:17:09]line Наличными: 1400.00 [16:17:09]line Безнал.: 0.00 [16:17:09]line Место: АЗС № 147 "Партнер Нефть" [16:17:09]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [16:17:09]line СНО: Общий режим [16:17:09]line Чек 65 23.10.2024 16:17 [16:17:09]line Смена: 507 ФФД: 1.0 [16:17:09]line ЗНМ: 0300000094 [16:17:09]line РНМ: 0000000000091756 [16:17:09]line Версия ККМ: 001 [16:17:09]line ФМ: 0000000000871809 [16:17:09]line ФД: 68442 [16:17:09]line ФПД: 182763612475105 [16:17:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T161716&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68442&fm=182763612475105&tin=02508201610067®Number=0000000000091756&sum=140000 [16:17:09]OFD Sender: Processing packet 68442 [packets to send 8, broken 7] [16:17:09]ProducePacketName [16:17:09]name=ofd_packets/00068442 [16:17:09]OFD Sender: To server: pG, [16:17:09]CommunicateWithHost lk.salyk.kg:30040 [16:17:09]ConnectInit lk.salyk.kg [16:17:09]written 0, free lines is 4095 [16:17:09]Connected sock=10 [16:17:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0C 01 00 00 D4 C5 04 01 B6 24 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 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 19 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 41 00 00 00 F4 03 04 00 8C 21 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 5A 0B 01 00 35 04 06 00 A6 38 F8 33 0E E1 9E 30 A6 E2 AE 35 BC F6 [16:17:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 20 0B 47 00 2A 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 31 38 30 39 10 04 04 00 5A 0B 01 00 F4 03 04 00 81 C7 18 67 B6 04 01 00 00 57 81 C5 79 E8 C3 69 6B [16:17:09]CommunicateWithHost err = 0 [16:17:09]CheckOFDResponse [16:17:09]1017 (14) - 77093643461234 [16:17:09]1041 (16) - 0000000000871809 [16:17:09]1040 (4) - 68442 [16:17:09]1012 (4) - 23.10.2024 09:53 [16:17:09]1206 (1) - 0 [16:17:09]OFD Sender: Remove packet 68442 [16:17:09]ProducePacketName [16:17:09]name=ofd_packets/00068442 [16:17:09]NVStorageDeleteData [16:17:09]Write to MH i2c: 01 00 00 04 38 3C [16:17:09]Write i2c OK [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: 01 [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: 01 07 00 [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: 01 07 00 04 38 00 04 00 00 00 B6 0C 09 [16:17:09]RasterBufferAndPrint [16:17:09]line [16:17:09]line [16:17:09]line [16:17:09]line [16:17:09]line [16:17:09]written 0, free lines is 3258 [16:17:09]MH_Cut [16:17:09]Write to MH i2c: D1 01 00 0B 38 01 15 [16:17:09]Write i2c OK [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: D1 [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: D1 01 00 [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: D1 01 00 0B 38 00 14 [16:17:09]Write to MH i2c: 01 00 00 0C 38 44 [16:17:09]Write i2c OK [16:17:09]MH_I2C_Read... [16:17:10]OFD Sender: No OFD packet to send [16:17:10]*** Cut start [16:17:10]*** Partial cut [16:17:10]*** CUTSNS_PIN = 1 [16:17:10]*** CUTSNS_PIN = 0 [16:17:10]*** Brake cut motor [16:17:11]Read from MH i2c: 01 [16:17:11]MH_I2C_Read... [16:17:11]*** Stop cut motor [16:17:11]*** Cut end [16:17:11]Read from MH i2c: 01 07 00 [16:17:11]MH_I2C_Read... [16:17:11]Read from MH i2c: 01 07 00 0C 38 00 04 00 00 00 FF 0F 5D [16:17:11]process_action close_receipt done [16:17:11]requested_data is exist [16:17:11]produce_requested_data [16:17:11]requested_item fm.sn is exist - process it [16:17:11]wFMCommunicate request_size=4 [16:17:11]MH_SAM_APDU [16:17:11]CAPDU: 80 11 00 00 [16:17:11]Write to MH i2c: E2 08 00 0D 38 80 11 00 00 00 00 00 00 BF [16:17:11]Write i2c OK [16:17:11]MH_I2C_Read... [16:17:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:11]Read from MH i2c: E2 [16:17:11]MH_I2C_Read... [16:17:11]Read from MH i2c: E2 17 00 [16:17:11]MH_I2C_Read... [16:17:11]Read from MH i2c: E2 17 00 0D 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 13 [16:17:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [16:17:11]wFMCommunicate OK [16:17:11]requested_item fd.num is exist - process it [16:17:11]SAM_PROTO_GetFieldsCounters [16:17:11]wFMCommunicate request_size=4 [16:17:11]MH_SAM_APDU [16:17:11]CAPDU: 80 13 00 00 [16:17:11]Write to MH i2c: E2 08 00 0E 38 80 13 00 00 00 00 00 00 C2 [16:17:11]Write i2c OK [16:17:11]MH_I2C_Read... [16:17:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:17:11]Read from MH i2c: E2 [16:17:11]MH_I2C_Read... [16:17:11]Read from MH i2c: E2 62 00 [16:17:11]MH_I2C_Read... [16:17:11]Read from MH i2c: E2 62 00 0E 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 5A 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [16:17:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 5A 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:17:11]wFMCommunicate OK [16:17:11]SAM_PROTO_GetFieldsCounters done [16:17:11]requested_item shift.num is exist - process it [16:17:11]requested_item shift.opened is exist - process it [16:17:11]req_shift_opened [16:17:11]FM_GetShiftState [16:17:11]SAM_PROTO_GetShiftState [16:17:11]wFMCommunicate request_size=4 [16:17:11]MH_SAM_APDU [16:17:11]CAPDU: 80 13 01 00 [16:17:11]Write to MH i2c: E2 08 00 0F 38 80 13 01 00 00 00 00 00 C4 [16:17:11]Write i2c OK [16:17:11]MH_I2C_Read... [16:17:11]Read from MH i2c: E2 [16:17:11]MH_I2C_Read... [16:17:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:11]Read from MH i2c: E2 0E 00 [16:17:11]MH_I2C_Read... [16:17:11]Read from MH i2c: E2 0E 00 0F 38 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 33 [16:17:11]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [16:17:11]wFMCommunicate OK [16:17:11]SAM_PROTO_GetShiftState done [16:17:11]FM_GetShiftState done [16:17:11]req_shift_opened done [16:17:11]requested_item shift.open_date is exist - process it [16:17:11]req_shift_open_date [16:17:11]req_shift_open_date done [16:17:11]produce_requested_data done [16:17:11]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68442,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [16:17:11]process_action_free close_receipt [16:17:11]json_value_free [16:17:11]json_value_free done [16:17:11]process_json_proto returns [16:17:11]Send response to host [16:17:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68442,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [16:17:11]free response buf [16:17:11]execute_script done [16:17:11]execute_script returns [16:17:11]free content buf [16:17:11]Sock 9.Close socket [16:17:11]Sock 9.Thread stoped [16:17:15]OFD Sender: No OFD packet to send [16:17:20]OFD Sender: No OFD packet to send [16:17:25]OFD Sender: No OFD packet to send [16:17:30]OFD Sender: No OFD packet to send [16:17:35]OFD Sender: No OFD packet to send [16:17:40]OFD Sender: No OFD packet to send [16:17:45]OFD Sender: No OFD packet to send [16:17:50]OFD Sender: No OFD packet to send [16:17:55]OFD Sender: No OFD packet to send [16:18:00]OFD Sender: No OFD packet to send [16:18:05]OFD Sender: No OFD packet to send [16:18:10]OFD Sender: No OFD packet to send [16:18:15]OFD Sender: No OFD packet to send [16:18:20]OFD Sender: No OFD packet to send [16:18:25]OFD Sender: No OFD packet to send [16:18:30]OFD Sender: No OFD packet to send [16:18:35]OFD Sender: No OFD packet to send [16:18:40]OFD Sender: No OFD packet to send [16:18:45]OFD Sender: No OFD packet to send [16:18:50]OFD Sender: No OFD packet to send [16:18:55]OFD Sender: No OFD packet to send [16:19:00]OFD Sender: No OFD packet to send [16:19:05]OFD Sender: No OFD packet to send [16:19:10]OFD Sender: No OFD packet to send [16:19:15]OFD Sender: No OFD packet to send [16:19:20]OFD Sender: No OFD packet to send [16:19:25]OFD Sender: No OFD packet to send [16:19:30]OFD Sender: No OFD packet to send [16:19:35]OFD Sender: No OFD packet to send [16:19:40]OFD Sender: No OFD packet to send [16:19:45]OFD Sender: No OFD packet to send [16:19:50]OFD Sender: No OFD packet to send [16:19:55]OFD Sender: No OFD packet to send [16:20:00]OFD Sender: No OFD packet to send [16:20:05]OFD Sender: No OFD packet to send [16:20:10]OFD Sender: No OFD packet to send [16:20:15]OFD Sender: No OFD packet to send [16:20:20]OFD Sender: No OFD packet to send [16:20:25]OFD Sender: No OFD packet to send [16:20:30]OFD Sender: No OFD packet to send [16:20:35]OFD Sender: No OFD packet to send [16:20:40]OFD Sender: No OFD packet to send [16:20:45]OFD Sender: No OFD packet to send [16:20:50]OFD Sender: No OFD packet to send [16:20:55]OFD Sender: No OFD packet to send [16:21:00]OFD Sender: No OFD packet to send [16:21:05]OFD Sender: No OFD packet to send [16:21:10]OFD Sender: No OFD packet to send [16:21:15]OFD Sender: No OFD packet to send [16:21:20]OFD Sender: No OFD packet to send [16:21:25]OFD Sender: No OFD packet to send [16:21:30]OFD Sender: No OFD packet to send [16:21:35]OFD Sender: No OFD packet to send [16:21:40]OFD Sender: No OFD packet to send [16:21:45]OFD Sender: No OFD packet to send [16:21:50]OFD Sender: No OFD packet to send [16:21:55]OFD Sender: No OFD packet to send [16:22:00]OFD Sender: No OFD packet to send [16:22:05]OFD Sender: No OFD packet to send [16:22:10]OFD Sender: No OFD packet to send [16:22:15]OFD Sender: No OFD packet to send [16:22:20]OFD Sender: No OFD packet to send [16:22:25]OFD Sender: No OFD packet to send [16:22:30]OFD Sender: No OFD packet to send [16:22:35]OFD Sender: No OFD packet to send [16:22:40]OFD Sender: No OFD packet to send [16:22:45]OFD Sender: No OFD packet to send [16:22:50]OFD Sender: No OFD packet to send [16:22:55]OFD Sender: No OFD packet to send [16:23:00]OFD Sender: No OFD packet to send [16:23:05]OFD Sender: No OFD packet to send [16:23:10]OFD Sender: No OFD packet to send [16:23:15]OFD Sender: No OFD packet to send [16:23:20]OFD Sender: No OFD packet to send [16:23:25]OFD Sender: No OFD packet to send [16:23:30]OFD Sender: No OFD packet to send [16:23:35]OFD Sender: No OFD packet to send [16:23:40]OFD Sender: No OFD packet to send [16:23:45]OFD Sender: No OFD packet to send [16:23:50]OFD Sender: No OFD packet to send [16:23:55]OFD Sender: No OFD packet to send [16:24:00]OFD Sender: No OFD packet to send [16:24:05]OFD Sender: No OFD packet to send [16:24:10]OFD Sender: No OFD packet to send [16:24:15]OFD Sender: No OFD packet to send [16:24:20]OFD Sender: No OFD packet to send [16:24:25]OFD Sender: No OFD packet to send [16:24:30]OFD Sender: No OFD packet to send [16:24:35]OFD Sender: No OFD packet to send [16:24:40]OFD Sender: No OFD packet to send [16:24:45]OFD Sender: No OFD packet to send [16:24:50]OFD Sender: No OFD packet to send [16:24:55]OFD Sender: No OFD packet to send [16:25:00]OFD Sender: No OFD packet to send [16:25:05]OFD Sender: No OFD packet to send [16:25:10]OFD Sender: No OFD packet to send [16:25:15]OFD Sender: No OFD packet to send [16:25:20]OFD Sender: No OFD packet to send [16:25:25]OFD Sender: No OFD packet to send [16:25:30]OFD Sender: No OFD packet to send [16:25:35]OFD Sender: No OFD packet to send [16:25:40]OFD Sender: No OFD packet to send [16:25:45]OFD Sender: No OFD packet to send [16:25:50]OFD Sender: No OFD packet to send [16:25:55]OFD Sender: No OFD packet to send [16:26:00]OFD Sender: No OFD packet to send [16:26:05]OFD Sender: No OFD packet to send [16:26:10]OFD Sender: No OFD packet to send [16:26:15]OFD Sender: No OFD packet to send [16:26:20]OFD Sender: No OFD packet to send [16:26:25]OFD Sender: No OFD packet to send [16:26:30]OFD Sender: No OFD packet to send [16:26:35]OFD Sender: No OFD packet to send [16:26:40]OFD Sender: No OFD packet to send [16:26:45]OFD Sender: No OFD packet to send [16:26:50]OFD Sender: No OFD packet to send [16:26:55]OFD Sender: No OFD packet to send [16:27:00]OFD Sender: No OFD packet to send [16:27:05]OFD Sender: No OFD packet to send [16:27:10]OFD Sender: No OFD packet to send [16:27:15]OFD Sender: No OFD packet to send [16:27:20]OFD Sender: No OFD packet to send [16:27:25]OFD Sender: No OFD packet to send [16:27:30]OFD Sender: No OFD packet to send [16:27:35]OFD Sender: No OFD packet to send [16:27:40]OFD Sender: No OFD packet to send [16:27:45]OFD Sender: No OFD packet to send [16:27:50]OFD Sender: No OFD packet to send [16:27:55]OFD Sender: No OFD packet to send [16:28:00]OFD Sender: No OFD packet to send [16:28:05]OFD Sender: No OFD packet to send [16:28:10]OFD Sender: No OFD packet to send [16:28:15]OFD Sender: No OFD packet to send [16:28:20]OFD Sender: No OFD packet to send [16:28:25]OFD Sender: No OFD packet to send [16:28:30]OFD Sender: No OFD packet to send [16:28:35]OFD Sender: No OFD packet to send [16:28:40]OFD Sender: No OFD packet to send [16:28:45]OFD Sender: No OFD packet to send [16:28:50]OFD Sender: No OFD packet to send [16:28:55]OFD Sender: No OFD packet to send [16:29:00]OFD Sender: No OFD packet to send [16:29:05]OFD Sender: No OFD packet to send [16:29:10]OFD Sender: No OFD packet to send [16:29:15]OFD Sender: No OFD packet to send [16:29:20]OFD Sender: No OFD packet to send [16:29:25]OFD Sender: No OFD packet to send [16:29:30]OFD Sender: No OFD packet to send [16:29:35]OFD Sender: No OFD packet to send [16:29:40]OFD Sender: No OFD packet to send [16:29:45]OFD Sender: No OFD packet to send [16:29:50]OFD Sender: No OFD packet to send [16:29:55]OFD Sender: No OFD packet to send [16:30:00]OFD Sender: No OFD packet to send [16:30:05]OFD Sender: No OFD packet to send [16:30:10]OFD Sender: No OFD packet to send [16:30:15]OFD Sender: No OFD packet to send [16:30:20]OFD Sender: No OFD packet to send [16:30:25]OFD Sender: No OFD packet to send [16:30:30]OFD Sender: No OFD packet to send [16:30:35]OFD Sender: No OFD packet to send [16:30:40]OFD Sender: No OFD packet to send [16:30:45]OFD Sender: No OFD packet to send [16:30:50]OFD Sender: No OFD packet to send [16:30:55]OFD Sender: No OFD packet to send [16:31:00]OFD Sender: No OFD packet to send [16:31:05]OFD Sender: No OFD packet to send [16:31: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:30]OFD Sender: No OFD packet to send [16:32:35]OFD Sender: No OFD packet to send [16:32:40]OFD Sender: No OFD packet to send [16:32:45]OFD Sender: No OFD packet to send [16:32:50]OFD Sender: No OFD packet to send [16:32:55]OFD Sender: No OFD packet to send [16:33:00]OFD Sender: No OFD packet to send [16:33:05]OFD Sender: No OFD packet to send [16:33:10]OFD Sender: No OFD packet to send [16:33:15]OFD Sender: No OFD packet to send [16:33:20]OFD Sender: No OFD packet to send [16:33:25]OFD Sender: No OFD packet to send [16:33:30]OFD Sender: No OFD packet to send [16:33:35]OFD Sender: No OFD packet to send [16:33:40]OFD Sender: No OFD packet to send [16:33:45]OFD Sender: No OFD packet to send [16:33:50]OFD Sender: No OFD packet to send [16:33:55]OFD Sender: No OFD packet to send [16:34:00]OFD Sender: No OFD packet to send [16:34:05]OFD Sender: No OFD packet to send [16:34:10]OFD Sender: No OFD packet to send [16:34:15]OFD Sender: No OFD packet to send [16:34:20]OFD Sender: No OFD packet to send [16:34:26]OFD Sender: No OFD packet to send [16:34:31]OFD Sender: No OFD packet to send [16:34:36]OFD Sender: No OFD packet to send [16:34:41]OFD Sender: No OFD packet to send [16:34:46]OFD Sender: No OFD packet to send [16:34:51]OFD Sender: No OFD packet to send [16:34:56]OFD Sender: No OFD packet to send [16:35:01]OFD Sender: No OFD packet to send [16:35:06]OFD Sender: No OFD packet to send [16:35:11]OFD Sender: No OFD packet to send [16:35:16]OFD Sender: No OFD packet to send [16:35:21]OFD Sender: No OFD packet to send [16:35:26]OFD Sender: No OFD packet to send [16:35:31]OFD Sender: No OFD packet to send [16:35:36]OFD Sender: No OFD packet to send [16:35:41]OFD Sender: No OFD packet to send [16:35:46]OFD Sender: No OFD packet to send [16:35:51]OFD Sender: No OFD packet to send [16:35:56]OFD Sender: No OFD packet to send [16:36:01]OFD Sender: No OFD packet to send [16:36:06]OFD Sender: No OFD packet to send [16:36:11]OFD Sender: No OFD packet to send [16:36:16]OFD Sender: No OFD packet to send [16:36:21]OFD Sender: No OFD packet to send [16:36:26]OFD Sender: No OFD packet to send [16:36:31]OFD Sender: No OFD packet to send [16:36:36]OFD Sender: No OFD packet to send [16:36:41]OFD Sender: No OFD packet to send [16:36:46]OFD Sender: No OFD packet to send [16:36:51]OFD Sender: No OFD packet to send [16:36:56]OFD Sender: No OFD packet to send [16:37:01]OFD Sender: No OFD packet to send [16:37:06]OFD Sender: No OFD packet to send [16:37:11]OFD Sender: No OFD packet to send [16:37:16]OFD Sender: No OFD packet to send [16:37:21]OFD Sender: No OFD packet to send [16:37:26]OFD Sender: No OFD packet to send [16:37:31]OFD Sender: No OFD packet to send [16:37:36]OFD Sender: No OFD packet to send [16:37:41]OFD Sender: No OFD packet to send [16:37:46]OFD Sender: No OFD packet to send [16:37:51]OFD Sender: No OFD packet to send [16:37:56]OFD Sender: No OFD packet to send [16:38:01]OFD Sender: No OFD packet to send [16:38:06]OFD Sender: No OFD packet to send [16:38:11]OFD Sender: No OFD packet to send [16:38:16]OFD Sender: No OFD packet to send [16:38:21]OFD Sender: No OFD packet to send [16:38:26]OFD Sender: No OFD packet to send [16:38:31]OFD Sender: No OFD packet to send [16:38:36]OFD Sender: No OFD packet to send [16:38:41]OFD Sender: No OFD packet to send [16:38:46]OFD Sender: No OFD packet to send [16:38:51]OFD Sender: No OFD packet to send [16:38:56]OFD Sender: No OFD packet to send [16:39:01]OFD Sender: No OFD packet to send [16:39:06]OFD Sender: No OFD packet to send [16:39:11]OFD Sender: No OFD packet to send [16:39:16]OFD Sender: No OFD packet to send [16:39:21]OFD Sender: No OFD packet to send [16:39:26]OFD Sender: No OFD packet to send [16:39:31]OFD Sender: No OFD packet to send [16:39:36]OFD Sender: No OFD packet to send [16:39:41]OFD Sender: No OFD packet to send [16:39:46]OFD Sender: No OFD packet to send [16:39:51]OFD Sender: No OFD packet to send [16:39:56]OFD Sender: No OFD packet to send [16:40:01]OFD Sender: No OFD packet to send [16:40:06]OFD Sender: No OFD packet to send [16:40:11]OFD Sender: No OFD packet to send [16:40:16]OFD Sender: No OFD packet to send [16:40:21]OFD Sender: No OFD packet to send [16:40:26]OFD Sender: No OFD packet to send [16:40:31]OFD Sender: No OFD packet to send [16:40:36]OFD Sender: No OFD packet to send [16:40:41]OFD Sender: No OFD packet to send [16:40:46]OFD Sender: No OFD packet to send [16:40:51]OFD Sender: No OFD packet to send [16:40:56]OFD Sender: No OFD packet to send [16:41:01]OFD Sender: No OFD packet to send [16:41:06]OFD Sender: No OFD packet to send [16:41:11]OFD Sender: No OFD packet to send [16:41:16]OFD Sender: No OFD packet to send [16:41:21]OFD Sender: No OFD packet to send [16:41:26]OFD Sender: No OFD packet to send [16:41:31]OFD Sender: No OFD packet to send [16:41:36]OFD Sender: No OFD packet to send [16:41:41]OFD Sender: No OFD packet to send [16:41:46]OFD Sender: No OFD packet to send [16:41:51]OFD Sender: No OFD packet to send [16:41:56]OFD Sender: No OFD packet to send [16:42:01]OFD Sender: No OFD packet to send [16:42:06]OFD Sender: No OFD packet to send [16:42:11]OFD Sender: No OFD packet to send [16:42:16]OFD Sender: No OFD packet to send [16:42:21]OFD Sender: No OFD packet to send [16:42:26]OFD Sender: No OFD packet to send [16:42:31]OFD Sender: No OFD packet to send [16:42:36]OFD Sender: No OFD packet to send [16:42:41]OFD Sender: No OFD packet to send [16:42:46]OFD Sender: No OFD packet to send [16:42:51]OFD Sender: No OFD packet to send [16:42:56]OFD Sender: No OFD packet to send [16:43:01]OFD Sender: No OFD packet to send [16:43:06]OFD Sender: No OFD packet to send [16:43:11]OFD Sender: No OFD packet to send [16:43:16]OFD Sender: No OFD packet to send [16:43:21]OFD Sender: No OFD packet to send [16:43:26]OFD Sender: No OFD packet to send [16:43:31]OFD Sender: No OFD packet to send [16:43:36]OFD Sender: No OFD packet to send [16:43:41]OFD Sender: No OFD packet to send [16:43:46]OFD Sender: No OFD packet to send [16:43:51]OFD Sender: No OFD packet to send [16:43:56]OFD Sender: No OFD packet to send [16:44:01]OFD Sender: No OFD packet to send [16:44:06]OFD Sender: No OFD packet to send [16:44:11]OFD Sender: No OFD packet to send [16:44:16]OFD Sender: No OFD packet to send [16:44:21]OFD Sender: No OFD packet to send [16:44:26]OFD Sender: No OFD packet to send [16:44:31]OFD Sender: No OFD packet to send [16:44:36]OFD Sender: No OFD packet to send [16:44:41]OFD Sender: No OFD packet to send [16:44:46]OFD Sender: No OFD packet to send [16:44:51]OFD Sender: No OFD packet to send [16:44:56]OFD Sender: No OFD packet to send [16:45:01]OFD Sender: No OFD packet to send [16:45:06]OFD Sender: No OFD packet to send [16:45:11]OFD Sender: No OFD packet to send [16:45:16]OFD Sender: No OFD packet to send [16:45:21]OFD Sender: No OFD packet to send [16:45:26]OFD Sender: No OFD packet to send [16:45:31]OFD Sender: No OFD packet to send [16:45:36]OFD Sender: No OFD packet to send [16:45:41]OFD Sender: No OFD packet to send [16:45:46]OFD Sender: No OFD packet to send [16:45:51]OFD Sender: No OFD packet to send [16:45:56]OFD Sender: No OFD packet to send [16:46:01]OFD Sender: No OFD packet to send [16:46:06]OFD Sender: No OFD packet to send [16:46:11]OFD Sender: No OFD packet to send [16:46:16]OFD Sender: No OFD packet to send [16:46:21]OFD Sender: No OFD packet to send [16:46:26]OFD Sender: No OFD packet to send [16:46:31]OFD Sender: No OFD packet to send [16:46:33]accept exits with 7 [16:46:33]New connection [16:46:33]New thread 3067276644 created [16:46:33]Thread 3067133284 joined [16:46:33]Waiting for new connection... [16:46:33] Sock 7.Parse request [16:46:33]Sock 7.Check first char [16:46:33]Sock 7.First char is OK [16:46:33]request: POST /json_proto HTTP/1.0 [16:46:33]Method: POST [16:46:33]URL: /json_proto [16:46:33]Method is POST - this is cgi request [16:46:33]url: /json_proto [16:46:33]query_string will be loaded in cgi processing [16:46:33]execute_cgi json_proto POST (null) [16:46:33]execute_cgi path=json_proto method=POST [16:46:33]POST find Content-Length [16:46:33]Host: 172.17.52.3:8080 [16:46:33]Content-Length: 677 [16:46:33]Content-Type: application/json [16:46:33] [16:46:33]POST finish read [16:46:33]Found Content-Length = 677 [16:46:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:33]execute_script... [16:46: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)210440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:33]POST & json_proto [16:46:33]process_json_proto [16:46:33]json parsed OK: [16:46:33]protocol is kg_v1.0 [16:46:33]action value=close_receipt [16:46:33]process_action close_receipt [16:46:33]cmd_close_receipt [16:46:33]MH_GetDate [16:46:33]Write to MH i2c: F0 00 00 10 38 37 [16:46:33]Write i2c OK [16:46:33]MH_I2C_Read... [16:46:33]Read from MH i2c: F0 [16:46:33]MH_I2C_Read... [16:46:33]Read from MH i2c: F0 09 00 [16:46:33]MH_I2C_Read... [16:46:33]Read from MH i2c: F0 09 00 10 38 00 73 28 19 67 D7 68 A5 64 A3 [16:46:33]GetLastDocTimeStamp 1729700236 [16:46:33]current date 1729702003 [16:46:33]FM_GetShiftState [16:46:33]SAM_PROTO_GetShiftState [16:46:33]wFMCommunicate request_size=4 [16:46:33]MH_SAM_APDU [16:46:33]CAPDU: 80 13 01 00 [16:46:33]Write to MH i2c: E2 08 00 11 38 80 13 01 00 00 00 00 00 C6 [16:46:33]Write i2c OK [16:46:33]MH_I2C_Read... [16:46:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:33]Read from MH i2c: E2 [16:46:33]MH_I2C_Read... [16:46:33]Read from MH i2c: E2 0E 00 [16:46:33]MH_I2C_Read... [16:46:33]Read from MH i2c: E2 0E 00 11 38 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 35 [16:46:33]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [16:46:33]wFMCommunicate OK [16:46:33]SAM_PROTO_GetShiftState done [16:46:33]FM_GetShiftState done [16:46:33]opened in 1729641385 [16:46:33]opened+sec_in_day 1729727785 [16:46:33]quantity*price = 50041 [16:46:33]sum+1 = 50042 [16:46:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 66 23.10.2024 16:46 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68443 ФПД: 81511054628518 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164643&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68443&fm=81511054628518&tin=02508201610067®Number=0000000000091756&sum=50000 [16:46:34]StoreToDocumentArchive [16:46:34]shift 507 fd 68443 [16:46:34]save to /storage/0507/doc_00068443 [16:46:34]save last doc name /storage/0507/doc_00068443 to /storage/kkm_last_doc_name [16:46:34]save OK [16:46:34]Clear old archive folders... [16:46:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:46:34]tlvbuf is 02006050 [16:46:34]SAM_PROTO_ClearQueue [16:46:34]wFMCommunicate request_size=4 [16:46:34]MH_SAM_APDU [16:46:34]CAPDU: 80 09 00 00 [16:46:34]Write to MH i2c: E2 08 00 1E 38 80 09 00 00 00 00 00 00 C8 [16:46:34]Write i2c OK [16:46:34]MH_I2C_Read... [16:46:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:46:34]Read from MH i2c: E2 [16:46:34]MH_I2C_Read... [16:46:34]Read from MH i2c: E2 03 00 [16:46:34]MH_I2C_Read... [16:46:34]Read from MH i2c: E2 03 00 1E 38 00 90 00 CA [16:46:34]RAPDU: 90 00 [16:46:34]wFMCommunicate OK [16:46:34]SAM_PROTO_ClearQueue done [16:46:34]KKMCreateOFDPacket [16:46:34]OFDProtocolAddRootSTLVToBuf [16:46:34]FM_MakeSignedData [16:46:34]FM_MakeSignedData [16:46:34]SAM_PROTO_SignData [16:46:34]wFMCommunicate request_size=4 [16:46:34]MH_SAM_APDU [16:46:34]CAPDU: 80 0D 01 02 [16:46:34]Write to MH i2c: E2 08 00 1F 38 80 0D 01 02 00 00 00 00 D0 [16:46:34]Write i2c OK [16:46:34]MH_I2C_Read... [16:46:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:46:34]Read from MH i2c: E2 [16:46:34]MH_I2C_Read... [16:46:34]Read from MH i2c: E2 03 00 [16:46:34]MH_I2C_Read... [16:46:34]Read from MH i2c: E2 03 00 1F 38 00 90 00 CB [16:46:34]RAPDU: 90 00 [16:46:34]wFMCommunicate OK [16:46:34]wFMCommunicate request_size=255 [16:46:34]MH_SAM_APDU [16:46: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 32 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 42 00 00 00 F4 03 04 00 73 28 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 5B 0B 01 00 35 04 06 00 4A [16:46:34]Write to MH i2c: E2 02 01 20 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 42 00 00 00 F4 03 04 00 73 28 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 5B 0B 01 00 35 04 06 00 4A 00 00 6A [16:46:34]Write i2c OK [16:46:34]MH_I2C_Read... [16:46:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:34]Read from MH i2c: E2 [16:46:34]MH_I2C_Read... [16:46:34]Read from MH i2c: E2 03 00 [16:46:34]MH_I2C_Read... [16:46:34]Read from MH i2c: E2 03 00 20 38 00 90 00 CC [16:46:34]RAPDU: 90 00 [16:46:34]wFMCommunicate OK [16:46:34]wFMCommunicate request_size=10 [16:46:34]MH_SAM_APDU [16:46:34]CAPDU: 80 0D 02 02 05 22 45 74 D6 A6 [16:46:34]Write to MH i2c: E2 0D 00 21 38 80 0D 02 02 05 00 22 45 74 D6 A6 00 00 34 [16:46:34]Write i2c OK [16:46:34]MH_I2C_Read... [16:46:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:34]Read from MH i2c: E2 [16:46:34]MH_I2C_Read... [16:46:34]Read from MH i2c: E2 03 00 [16:46:34]MH_I2C_Read... [16:46:34]Read from MH i2c: E2 03 00 21 38 00 90 00 CD [16:46:34]RAPDU: 90 00 [16:46:34]wFMCommunicate OK [16:46:34]wFMCommunicate request_size=4 [16:46:34]MH_SAM_APDU [16:46:34]CAPDU: 80 0D 03 02 [16:46:34]Write to MH i2c: E2 08 00 22 38 80 0D 03 02 00 00 00 00 D5 [16:46:34]Write i2c OK [16:46:34]MH_I2C_Read... [16:46:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:46:35]Read from MH i2c: E2 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: E2 0B 00 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: E2 0B 00 22 38 00 56 27 62 79 12 5E 0E A0 90 00 4C [16:46:35]RAPDU: 56 27 62 79 12 5E 0E A0 90 00 [16:46:35]wFMCommunicate OK [16:46:35]SAM_PROTO_SignData done [16:46:35]FM_MakeSignedData done [16:46:35]CreateOFDProtocolMessage [16:46:35]wFMCommunicate request_size=4 [16:46:35]MH_SAM_APDU [16:46:35]CAPDU: 80 11 00 00 [16:46:35]Write to MH i2c: E2 08 00 23 38 80 11 00 00 00 00 00 00 D5 [16:46:35]Write i2c OK [16:46:35]MH_I2C_Read... [16:46:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:35]Read from MH i2c: E2 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: E2 17 00 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: E2 17 00 23 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 29 [16:46:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [16:46:35]wFMCommunicate OK [16:46:35]CreateOFDProtocolMessage done [16:46:35]OFDSenderStorePacket 68443 [16:46:35]StoreOFDPacket docnum=68443 [16:46:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 61 BF 07 01 23 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 32 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 42 00 00 00 F4 03 04 00 73 28 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 5B 0B 01 00 35 04 06 00 4A 22 45 74 D6 A6 56 27 62 79 12 5E 0E A0 [16:46:35]CheckFolder [16:46:35]dirname=/storage/ofd_packets [16:46:35]CheckFolder done [16:46:35]ProducePacketName [16:46:35]name=ofd_packets/00068443 [16:46:35]NVStorageSaveData ofd_packets/00068443 [16:46:35]File name is /storage/ofd_packets/00068443 [16:46:35]Write 301 bytes [16:46:35]NVStorageSaveData done [16:46:35]OFDSenderStorePacket done [16:46:35]KKMCreateOFDPacket done [16:46:35]NVStorageSaveData kkm_last_timestamp [16:46:35]File name is /storage/kkm_last_timestamp [16:46:35]Write 4 bytes [16:46:35]NVStorageSaveData done [16:46:35]ExternCall_PrintAddStr [16:46:35]wPrintStart [16:46:35]Write to MH i2c: 01 00 00 24 38 5C [16:46:35]Write i2c OK [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: 01 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: 01 07 00 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: 01 07 00 24 38 00 04 00 00 00 FF 0F 75 [16:46:35]RasterBufferAndPrint [16:46:35]line Счет N : (1)210440 [16:46:35]line ИНН: 02508201610067 [16:46:35]line Контрольно-Кассовый Чек [16:46:35]line ПРОДАЖА [16:46:35]line ТРК (МРК, ГНК) : 11 [16:46:35]line Товар: 2710124130 [16:46:35]line Аи-92-К-2 [16:46:35]line 7.480 * 66.90 [16:46:35]line = 500.41 [16:46:35]line НДС 12% НСП 1% [16:46:35]line > о реализуемом товаре [16:46:35]line ОКРУГЛЕНИЕ: -0.41 [16:46:35]line ИТОГО: 500.00 [16:46:35]line Внесено: 500.00 [16:46:35]line СДАЧА: 0.00 [16:46:35]line НСП 1% : 4.43 [16:46:35]line НДС 12% : 53.14 [16:46:35]line Наличными: 500.00 [16:46:35]line Безнал.: 0.00 [16:46:35]line Место: АЗС № 147 "Партнер Нефть" [16:46:35]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [16:46:35]line СНО: Общий режим [16:46:35]line Чек 66 23.10.2024 16:46 [16:46:35]line Смена: 507 ФФД: 1.0 [16:46:35]line ЗНМ: 0300000094 [16:46:35]line РНМ: 0000000000091756 [16:46:35]line Версия ККМ: 001 [16:46:35]line ФМ: 0000000000871809 [16:46:35]line ФД: 68443 [16:46:35]line ФПД: 81511054628518 [16:46:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164643&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68443&fm=81511054628518&tin=02508201610067®Number=0000000000091756&sum=50000 [16:46:35]written 0, free lines is 4095 [16:46:35]OFD Sender: Processing packet 68443 [packets to send 8, broken 7] [16:46:35]ProducePacketName [16:46:35]name=ofd_packets/00068443 [16:46:35]OFD Sender: To server: pG, [16:46:35]CommunicateWithHost lk.salyk.kg:30040 [16:46:35]ConnectInit lk.salyk.kg [16:46:35]Write to MH i2c: 01 00 00 4E 38 86 [16:46:35]Write i2c OK [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: 01 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: 01 07 00 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: 01 07 00 4E 38 00 04 00 00 00 A9 0C 46 [16:46:35]RasterBufferAndPrint [16:46:35]line [16:46:35]line [16:46:35]line [16:46:35]line [16:46:35]line [16:46:35]Connected sock=10 [16:46:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 61 BF 07 01 23 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 32 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 42 00 00 00 F4 03 04 00 73 28 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 5B 0B 01 00 35 04 06 00 4A 22 45 74 D6 A6 56 27 62 79 12 5E 0E A0 [16:46:35]written 0, free lines is 3245 [16:46:35]MH_Cut [16:46:35]Write to MH i2c: D1 01 00 55 38 01 5F [16:46:35]Write i2c OK [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: D1 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: D1 01 00 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: D1 01 00 55 38 00 5E [16:46:35]Write to MH i2c: 01 00 00 56 38 8E [16:46:35]Write i2c OK [16:46:35]MH_I2C_Read... [16:46:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 F0 4D 47 00 DE 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 5B 0B 01 00 F4 03 04 00 67 CE 18 67 B6 04 01 00 00 D7 55 08 77 0A 71 D0 9D [16:46:35]CommunicateWithHost err = 0 [16:46:35]CheckOFDResponse [16:46:35]1017 (14) - 77093643461234 [16:46:35]1041 (16) - 0000000000871809 [16:46:35]1040 (4) - 68443 [16:46:35]1012 (4) - 23.10.2024 10:22 [16:46:35]1206 (1) - 0 [16:46:35]OFD Sender: Remove packet 68443 [16:46:35]ProducePacketName [16:46:35]name=ofd_packets/00068443 [16:46:35]NVStorageDeleteData [16:46:36]OFD Sender: No OFD packet to send [16:46:36]*** Cut start [16:46:36]*** Partial cut [16:46:36]*** CUTSNS_PIN = 1 [16:46:36]*** CUTSNS_PIN = 0 [16:46:36]*** Brake cut motor [16:46:36]Read from MH i2c: 01 [16:46:36]MH_I2C_Read... [16:46:36]*** Stop cut motor [16:46:36]*** Cut end [16:46:36]Read from MH i2c: 01 07 00 [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: 01 07 00 56 38 00 04 00 00 00 FF 0F A7 [16:46:36]process_action close_receipt done [16:46:36]requested_data is exist [16:46:36]produce_requested_data [16:46:36]requested_item fm.sn is exist - process it [16:46:36]wFMCommunicate request_size=4 [16:46:36]MH_SAM_APDU [16:46:36]CAPDU: 80 11 00 00 [16:46:36]Write to MH i2c: E2 08 00 57 38 80 11 00 00 00 00 00 00 09 [16:46:36]Write i2c OK [16:46:36]MH_I2C_Read... [16:46:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:37]Read from MH i2c: E2 [16:46:37]MH_I2C_Read... [16:46:37]Read from MH i2c: E2 17 00 [16:46:37]MH_I2C_Read... [16:46:37]Read from MH i2c: E2 17 00 57 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 5D [16:46:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [16:46:37]wFMCommunicate OK [16:46:37]requested_item fd.num is exist - process it [16:46:37]SAM_PROTO_GetFieldsCounters [16:46:37]wFMCommunicate request_size=4 [16:46:37]MH_SAM_APDU [16:46:37]CAPDU: 80 13 00 00 [16:46:37]Write to MH i2c: E2 08 00 58 38 80 13 00 00 00 00 00 00 0C [16:46:37]Write i2c OK [16:46:37]MH_I2C_Read... [16:46:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:46:37]Read from MH i2c: E2 [16:46:37]MH_I2C_Read... [16:46:37]Read from MH i2c: E2 62 00 [16:46:37]MH_I2C_Read... [16:46:37]Read from MH i2c: E2 62 00 58 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 5B 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [16:46:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 5B 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:46:37]wFMCommunicate OK [16:46:37]SAM_PROTO_GetFieldsCounters done [16:46:37]requested_item shift.num is exist - process it [16:46:37]requested_item shift.opened is exist - process it [16:46:37]req_shift_opened [16:46:37]FM_GetShiftState [16:46:37]SAM_PROTO_GetShiftState [16:46:37]wFMCommunicate request_size=4 [16:46:37]MH_SAM_APDU [16:46:37]CAPDU: 80 13 01 00 [16:46:37]Write to MH i2c: E2 08 00 59 38 80 13 01 00 00 00 00 00 0E [16:46:37]Write i2c OK [16:46:37]MH_I2C_Read... [16:46:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:37]Read from MH i2c: E2 [16:46:37]MH_I2C_Read... [16:46:37]Read from MH i2c: E2 0E 00 [16:46:37]MH_I2C_Read... [16:46:37]Read from MH i2c: E2 0E 00 59 38 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 7D [16:46:37]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [16:46:37]wFMCommunicate OK [16:46:37]SAM_PROTO_GetShiftState done [16:46:37]FM_GetShiftState done [16:46:37]req_shift_opened done [16:46:37]requested_item shift.open_date is exist - process it [16:46:37]req_shift_open_date [16:46:37]req_shift_open_date done [16:46:37]produce_requested_data done [16:46:37]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68443,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [16:46:37]process_action_free close_receipt [16:46:37]json_value_free [16:46:37]json_value_free done [16:46:37]process_json_proto returns [16:46:37]Send response to host [16:46:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68443,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [16:46:37]free response buf [16:46:37]execute_script done [16:46:37]execute_script returns [16:46:37]free content buf [16:46:37]Sock 7.Close socket [16:46:37]Sock 7.Thread stoped [16:46:41]OFD Sender: No OFD packet to send [16:46:46]OFD Sender: No OFD packet to send [16:46:51]OFD Sender: No OFD packet to send [16:46:56]OFD Sender: No OFD packet to send [16:47:01]OFD Sender: No OFD packet to send [16:47:02]accept exits with 9 [16:47:02]New connection [16:47:02]New thread 3067133284 created [16:47:02]Thread 3067276644 joined [16:47:02]Waiting for new connection... [16:47:02] Sock 9.Parse request [16:47:02]Sock 9.Check first char [16:47:02]Sock 9.First char is OK [16:47:02]request: POST /json_proto HTTP/1.0 [16:47:02]Method: POST [16:47:02]URL: /json_proto [16:47:02]Method is POST - this is cgi request [16:47:02]url: /json_proto [16:47:02]query_string will be loaded in cgi processing [16:47:02]execute_cgi json_proto POST (null) [16:47:02]execute_cgi path=json_proto method=POST [16:47:02]POST find Content-Length [16:47:02]Host: 172.17.52.3:8080 [16:47:02]Content-Length: 677 [16:47:02]Content-Type: application/json [16:47:02] [16:47:02]POST finish read [16:47:02]Found Content-Length = 677 [16:47:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210441", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:02]execute_script... [16:47: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)210441", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:02]POST & json_proto [16:47:02]process_json_proto [16:47:02]json parsed OK: [16:47:02]protocol is kg_v1.0 [16:47:02]action value=close_receipt [16:47:02]process_action close_receipt [16:47:02]cmd_close_receipt [16:47:02]MH_GetDate [16:47:02]Write to MH i2c: F0 00 00 5A 38 81 [16:47:02]Write i2c OK [16:47:02]MH_I2C_Read... [16:47:02]Read from MH i2c: F0 [16:47:02]MH_I2C_Read... [16:47:02]Read from MH i2c: F0 09 00 [16:47:02]MH_I2C_Read... [16:47:02]Read from MH i2c: F0 09 00 5A 38 00 90 28 19 67 D7 68 A5 64 0A [16:47:02]GetLastDocTimeStamp 1729702003 [16:47:02]current date 1729702032 [16:47:02]FM_GetShiftState [16:47:02]SAM_PROTO_GetShiftState [16:47:02]wFMCommunicate request_size=4 [16:47:02]MH_SAM_APDU [16:47:02]CAPDU: 80 13 01 00 [16:47:02]Write to MH i2c: E2 08 00 5B 38 80 13 01 00 00 00 00 00 10 [16:47:02]Write i2c OK [16:47:02]MH_I2C_Read... [16:47:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:02]Read from MH i2c: E2 [16:47:02]MH_I2C_Read... [16:47:02]Read from MH i2c: E2 0E 00 [16:47:02]MH_I2C_Read... [16:47:02]Read from MH i2c: E2 0E 00 5B 38 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 7F [16:47:02]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [16:47:02]wFMCommunicate OK [16:47:02]SAM_PROTO_GetShiftState done [16:47:02]FM_GetShiftState done [16:47:02]opened in 1729641385 [16:47:02]opened+sec_in_day 1729727785 [16:47:02]quantity*price = 50041 [16:47:02]sum+1 = 50042 [16:47:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 67 23.10.2024 16:47 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68444 ФПД: 168168192643138 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164712&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68444&fm=168168192643138&tin=02508201610067®Number=0000000000091756&sum=50000 [16:47:03]StoreToDocumentArchive [16:47:03]shift 507 fd 68444 [16:47:03]save to /storage/0507/doc_00068444 [16:47:03]save last doc name /storage/0507/doc_00068444 to /storage/kkm_last_doc_name [16:47:03]save OK [16:47:03]Clear old archive folders... [16:47:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:47:03]tlvbuf is 0201EF00 [16:47:03]SAM_PROTO_ClearQueue [16:47:03]wFMCommunicate request_size=4 [16:47:03]MH_SAM_APDU [16:47:03]CAPDU: 80 09 00 00 [16:47:03]Write to MH i2c: E2 08 00 68 38 80 09 00 00 00 00 00 00 12 [16:47:03]Write i2c OK [16:47:03]MH_I2C_Read... [16:47:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:47:03]Read from MH i2c: E2 [16:47:03]MH_I2C_Read... [16:47:03]Read from MH i2c: E2 03 00 [16:47:03]MH_I2C_Read... [16:47:03]Read from MH i2c: E2 03 00 68 38 00 90 00 14 [16:47:03]RAPDU: 90 00 [16:47:03]wFMCommunicate OK [16:47:03]SAM_PROTO_ClearQueue done [16:47:03]KKMCreateOFDPacket [16:47:03]OFDProtocolAddRootSTLVToBuf [16:47:03]FM_MakeSignedData [16:47:03]FM_MakeSignedData [16:47:03]SAM_PROTO_SignData [16:47:03]wFMCommunicate request_size=4 [16:47:03]MH_SAM_APDU [16:47:03]CAPDU: 80 0D 01 02 [16:47:03]Write to MH i2c: E2 08 00 69 38 80 0D 01 02 00 00 00 00 1A [16:47:03]Write i2c OK [16:47:03]MH_I2C_Read... [16:47:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:47:04]Read from MH i2c: E2 [16:47:04]MH_I2C_Read... [16:47:04]Read from MH i2c: E2 03 00 [16:47:04]MH_I2C_Read... [16:47:04]Read from MH i2c: E2 03 00 69 38 00 90 00 15 [16:47:04]RAPDU: 90 00 [16:47:04]wFMCommunicate OK [16:47:04]wFMCommunicate request_size=255 [16:47:04]MH_SAM_APDU [16:47:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 43 00 00 00 F4 03 04 00 90 28 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 5C 0B 01 00 35 04 06 00 98 [16:47:04]Write to MH i2c: E2 02 01 6A 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 43 00 00 00 F4 03 04 00 90 28 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 5C 0B 01 00 35 04 06 00 98 00 00 21 [16:47:04]Write i2c OK [16:47:04]MH_I2C_Read... [16:47:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:04]Read from MH i2c: E2 [16:47:04]MH_I2C_Read... [16:47:04]Read from MH i2c: E2 03 00 [16:47:04]MH_I2C_Read... [16:47:04]Read from MH i2c: E2 03 00 6A 38 00 90 00 16 [16:47:04]RAPDU: 90 00 [16:47:04]wFMCommunicate OK [16:47:04]wFMCommunicate request_size=10 [16:47:04]MH_SAM_APDU [16:47:04]CAPDU: 80 0D 02 02 05 F2 B5 62 90 42 [16:47:04]Write to MH i2c: E2 0D 00 6B 38 80 0D 02 02 05 00 F2 B5 62 90 42 00 00 02 [16:47:04]Write i2c OK [16:47:04]MH_I2C_Read... [16:47:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:04]Read from MH i2c: E2 [16:47:04]MH_I2C_Read... [16:47:04]Read from MH i2c: E2 03 00 [16:47:04]MH_I2C_Read... [16:47:04]Read from MH i2c: E2 03 00 6B 38 00 90 00 17 [16:47:04]RAPDU: 90 00 [16:47:04]wFMCommunicate OK [16:47:04]wFMCommunicate request_size=4 [16:47:04]MH_SAM_APDU [16:47:04]CAPDU: 80 0D 03 02 [16:47:04]Write to MH i2c: E2 08 00 6C 38 80 0D 03 02 00 00 00 00 1F [16:47:04]Write i2c OK [16:47:04]MH_I2C_Read... [16:47:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:47:04]Read from MH i2c: E2 [16:47:04]MH_I2C_Read... [16:47:04]Read from MH i2c: E2 0B 00 [16:47:04]MH_I2C_Read... [16:47:04]Read from MH i2c: E2 0B 00 6C 38 00 08 71 44 04 11 F8 35 22 90 00 41 [16:47:04]RAPDU: 08 71 44 04 11 F8 35 22 90 00 [16:47:04]wFMCommunicate OK [16:47:04]SAM_PROTO_SignData done [16:47:04]FM_MakeSignedData done [16:47:04]CreateOFDProtocolMessage [16:47:04]wFMCommunicate request_size=4 [16:47:04]MH_SAM_APDU [16:47:04]CAPDU: 80 11 00 00 [16:47:04]Write to MH i2c: E2 08 00 6D 38 80 11 00 00 00 00 00 00 1F [16:47:04]Write i2c OK [16:47:04]MH_I2C_Read... [16:47:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:04]Read from MH i2c: E2 [16:47:04]MH_I2C_Read... [16:47:04]Read from MH i2c: E2 17 00 [16:47:04]MH_I2C_Read... [16:47:04]Read from MH i2c: E2 17 00 6D 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 73 [16:47:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [16:47:04]wFMCommunicate OK [16:47:04]CreateOFDProtocolMessage done [16:47:04]OFDSenderStorePacket 68444 [16:47:04]StoreOFDPacket docnum=68444 [16:47:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 C0 A9 07 01 80 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 43 00 00 00 F4 03 04 00 90 28 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 5C 0B 01 00 35 04 06 00 98 F2 B5 62 90 42 08 71 44 04 11 F8 35 22 [16:47:04]CheckFolder [16:47:04]dirname=/storage/ofd_packets [16:47:04]CheckFolder done [16:47:04]ProducePacketName [16:47:04]name=ofd_packets/00068444 [16:47:04]NVStorageSaveData ofd_packets/00068444 [16:47:04]File name is /storage/ofd_packets/00068444 [16:47:04]Write 301 bytes [16:47:04]NVStorageSaveData done [16:47:04]OFDSenderStorePacket done [16:47:04]KKMCreateOFDPacket done [16:47:04]NVStorageSaveData kkm_last_timestamp [16:47:04]File name is /storage/kkm_last_timestamp [16:47:04]Write 4 bytes [16:47:04]NVStorageSaveData done [16:47:04]ExternCall_PrintAddStr [16:47:04]wPrintStart [16:47:04]Write to MH i2c: 01 00 00 6E 38 A6 [16:47:04]Write i2c OK [16:47:04]MH_I2C_Read... [16:47:04]Read from MH i2c: 01 [16:47:04]MH_I2C_Read... [16:47:04]Read from MH i2c: 01 07 00 [16:47:04]MH_I2C_Read... [16:47:04]Read from MH i2c: 01 07 00 6E 38 00 04 00 00 00 FF 0F BF [16:47:04]RasterBufferAndPrint [16:47:04]line Счет N : (1)210441 [16:47:04]line ИНН: 02508201610067 [16:47:04]line Контрольно-Кассовый Чек [16:47:04]line ПРОДАЖА [16:47:04]line ТРК (МРК, ГНК) : 11 [16:47:04]line Товар: 2710124130 [16:47:04]line Аи-92-К-2 [16:47:04]line 7.480 * 66.90 [16:47:04]line = 500.41 [16:47:04]line НДС 12% НСП 1% [16:47:04]line > о реализуемом товаре [16:47:04]line ОКРУГЛЕНИЕ: -0.41 [16:47:04]line ИТОГО: 500.00 [16:47:04]line Внесено: 500.00 [16:47:04]line СДАЧА: 0.00 [16:47:04]line НСП 1% : 4.43 [16:47:04]line НДС 12% : 53.14 [16:47:04]line Наличными: 500.00 [16:47:04]line Безнал.: 0.00 [16:47:04]line Место: АЗС № 147 "Партнер Нефть" [16:47:04]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [16:47:04]line СНО: Общий режим [16:47:04]line Чек 67 23.10.2024 16:47 [16:47:04]line Смена: 507 ФФД: 1.0 [16:47:04]line ЗНМ: 0300000094 [16:47:04]line РНМ: 0000000000091756 [16:47:04]line Версия ККМ: 001 [16:47:04]line ФМ: 0000000000871809 [16:47:04]line ФД: 68444 [16:47:04]line ФПД: 168168192643138 [16:47:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164712&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68444&fm=168168192643138&tin=02508201610067®Number=0000000000091756&sum=50000 [16:47:04]OFD Sender: Processing packet 68444 [packets to send 8, broken 7] [16:47:04]ProducePacketName [16:47:04]name=ofd_packets/00068444 [16:47:04]OFD Sender: To server: pG, [16:47:04]CommunicateWithHost lk.salyk.kg:30040 [16:47:04]ConnectInit lk.salyk.kg [16:47:04]written 0, free lines is 4095 [16:47:04]Connected sock=10 [16:47:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 C0 A9 07 01 80 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 43 00 00 00 F4 03 04 00 90 28 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 5C 0B 01 00 35 04 06 00 98 F2 B5 62 90 42 08 71 44 04 11 F8 35 22 [16:47:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 72 AC 47 00 B8 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 5C 0B 01 00 F4 03 04 00 84 CE 18 67 B6 04 01 00 00 A9 77 A3 F6 02 04 86 9F [16:47:05]CommunicateWithHost err = 0 [16:47:05]CheckOFDResponse [16:47:05]1017 (14) - 77093643461234 [16:47:05]1041 (16) - 0000000000871809 [16:47:05]1040 (4) - 68444 [16:47:05]1012 (4) - 23.10.2024 10:23 [16:47:05]1206 (1) - 0 [16:47:05]OFD Sender: Remove packet 68444 [16:47:05]ProducePacketName [16:47:05]name=ofd_packets/00068444 [16:47:05]NVStorageDeleteData [16:47:05]Write to MH i2c: 01 00 00 98 38 D0 [16:47:05]Write i2c OK [16:47:05]MH_I2C_Read... [16:47:05]Read from MH i2c: 01 [16:47:05]MH_I2C_Read... [16:47:05]Read from MH i2c: 01 07 00 [16:47:05]MH_I2C_Read... [16:47:05]Read from MH i2c: 01 07 00 98 38 00 04 00 00 00 AF 0C 96 [16:47:05]RasterBufferAndPrint [16:47:05]line [16:47:05]line [16:47:05]line [16:47:05]line [16:47:05]line [16:47:05]written 0, free lines is 3253 [16:47:05]MH_Cut [16:47:05]Write to MH i2c: D1 01 00 9F 38 01 A9 [16:47:05]Write i2c OK [16:47:05]MH_I2C_Read... [16:47:05]Read from MH i2c: D1 [16:47:05]MH_I2C_Read... [16:47:05]Read from MH i2c: D1 01 00 [16:47:05]MH_I2C_Read... [16:47:05]Read from MH i2c: D1 01 00 9F 38 00 A8 [16:47:05]Write to MH i2c: 01 00 00 A0 38 D8 [16:47:05]Write i2c OK [16:47:05]MH_I2C_Read... [16:47:05]OFD Sender: No OFD packet to send [16:47:06]*** Cut start [16:47:06]*** Partial cut [16:47:06]*** CUTSNS_PIN = 1 [16:47:06]*** CUTSNS_PIN = 0 [16:47:06]*** Brake cut motor [16:47:06]Read from MH i2c: 01 [16:47:06]MH_I2C_Read... [16:47:06]*** Stop cut motor [16:47:06]*** Cut end [16:47:06]Read from MH i2c: 01 07 00 [16:47:06]MH_I2C_Read... [16:47:06]Read from MH i2c: 01 07 00 A0 38 00 04 00 00 00 FF 0F F1 [16:47:06]process_action close_receipt done [16:47:06]requested_data is exist [16:47:06]produce_requested_data [16:47:06]requested_item fm.sn is exist - process it [16:47:06]wFMCommunicate request_size=4 [16:47:06]MH_SAM_APDU [16:47:06]CAPDU: 80 11 00 00 [16:47:06]Write to MH i2c: E2 08 00 A1 38 80 11 00 00 00 00 00 00 53 [16:47:06]Write i2c OK [16:47:06]MH_I2C_Read... [16:47:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:06]Read from MH i2c: E2 [16:47:06]MH_I2C_Read... [16:47:06]Read from MH i2c: E2 17 00 [16:47:06]MH_I2C_Read... [16:47:06]Read from MH i2c: E2 17 00 A1 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 A7 [16:47:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [16:47:06]wFMCommunicate OK [16:47:06]requested_item fd.num is exist - process it [16:47:06]SAM_PROTO_GetFieldsCounters [16:47:06]wFMCommunicate request_size=4 [16:47:06]MH_SAM_APDU [16:47:06]CAPDU: 80 13 00 00 [16:47:06]Write to MH i2c: E2 08 00 A2 38 80 13 00 00 00 00 00 00 56 [16:47:06]Write i2c OK [16:47:06]MH_I2C_Read... [16:47:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:06]Read from MH i2c: E2 [16:47:06]MH_I2C_Read... [16:47:06]Read from MH i2c: E2 62 00 [16:47:06]MH_I2C_Read... [16:47:06]Read from MH i2c: E2 62 00 A2 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 5C 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [16:47:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 5C 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:47:06]wFMCommunicate OK [16:47:06]SAM_PROTO_GetFieldsCounters done [16:47:06]requested_item shift.num is exist - process it [16:47:06]requested_item shift.opened is exist - process it [16:47:06]req_shift_opened [16:47:06]FM_GetShiftState [16:47:06]SAM_PROTO_GetShiftState [16:47:06]wFMCommunicate request_size=4 [16:47:06]MH_SAM_APDU [16:47:06]CAPDU: 80 13 01 00 [16:47:06]Write to MH i2c: E2 08 00 A3 38 80 13 01 00 00 00 00 00 58 [16:47:06]Write i2c OK [16:47:06]MH_I2C_Read... [16:47:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:06]Read from MH i2c: E2 [16:47:06]MH_I2C_Read... [16:47:06]Read from MH i2c: E2 0E 00 [16:47:06]MH_I2C_Read... [16:47:06]Read from MH i2c: E2 0E 00 A3 38 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 C7 [16:47:06]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [16:47:06]wFMCommunicate OK [16:47:06]SAM_PROTO_GetShiftState done [16:47:06]FM_GetShiftState done [16:47:06]req_shift_opened done [16:47:06]requested_item shift.open_date is exist - process it [16:47:06]req_shift_open_date [16:47:06]req_shift_open_date done [16:47:06]produce_requested_data done [16:47:06]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68444,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [16:47:06]process_action_free close_receipt [16:47:06]json_value_free [16:47:06]json_value_free done [16:47:06]process_json_proto returns [16:47:06]Send response to host [16:47:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68444,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [16:47:06]free response buf [16:47:06]execute_script done [16:47:06]execute_script returns [16:47:06]free content buf [16:47:06]Sock 9.Close socket [16:47:06]Sock 9.Thread stoped [16:47:10]OFD Sender: No OFD packet to send [16:47:15]OFD Sender: No OFD packet to send [16:47:20]OFD Sender: No OFD packet to send [16:47:25]OFD Sender: No OFD packet to send [16:47:30]OFD Sender: No OFD packet to send [16:47:35]OFD Sender: No OFD packet to send [16:47:40]OFD Sender: No OFD packet to send [16:47:45]OFD Sender: No OFD packet to send [16:47:50]OFD Sender: No OFD packet to send [16:47:55]OFD Sender: No OFD packet to send [16:48:00]OFD Sender: No OFD packet to send [16:48:05]OFD Sender: No OFD packet to send [16:48:10]OFD Sender: No OFD packet to send [16:48:15]OFD Sender: No OFD packet to send [16:48:20]OFD Sender: No OFD packet to send [16:48:25]OFD Sender: No OFD packet to send [16:48:30]OFD Sender: No OFD packet to send [16:48:35]OFD Sender: No OFD packet to send [16:48:40]OFD Sender: No OFD packet to send [16:48:45]OFD Sender: No OFD packet to send [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:16]accept exits with 7 [16:49:16]New connection [16:49:16]New thread 3067276644 created [16:49:16]Thread 3067133284 joined [16:49:16]Waiting for new connection... [16:49:16] Sock 7.Parse request [16:49:16]Sock 7.Check first char [16:49:16]Sock 7.First char is OK [16:49:16]request: POST /json_proto HTTP/1.0 [16:49:16]Method: POST [16:49:16]URL: /json_proto [16:49:16]Method is POST - this is cgi request [16:49:16]url: /json_proto [16:49:16]query_string will be loaded in cgi processing [16:49:16]execute_cgi json_proto POST (null) [16:49:16]execute_cgi path=json_proto method=POST [16:49:16]POST find Content-Length [16:49:16]Host: 172.17.52.3:8080 [16:49:16]Content-Length: 677 [16:49:16]Content-Type: application/json [16:49:16] [16:49:16]POST finish read [16:49:16]Found Content-Length = 677 [16:49:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [16:49:16]execute_script... [16:49: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)210442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [16:49:16]POST & json_proto [16:49:16]process_json_proto [16:49:16]json parsed OK: [16:49:16]protocol is kg_v1.0 [16:49:16]action value=close_receipt [16:49:16]process_action close_receipt [16:49:16]cmd_close_receipt [16:49:16]MH_GetDate [16:49:16]Write to MH i2c: F0 00 00 A4 38 CB [16:49:16]Write i2c OK [16:49:16]MH_I2C_Read... [16:49:16]Read from MH i2c: F0 [16:49:16]MH_I2C_Read... [16:49:16]Read from MH i2c: F0 09 00 [16:49:16]MH_I2C_Read... [16:49:16]Read from MH i2c: F0 09 00 A4 38 00 16 29 19 67 D7 68 A5 64 DB [16:49:16]GetLastDocTimeStamp 1729702032 [16:49:16]current date 1729702166 [16:49:16]FM_GetShiftState [16:49:16]SAM_PROTO_GetShiftState [16:49:16]wFMCommunicate request_size=4 [16:49:16]MH_SAM_APDU [16:49:16]CAPDU: 80 13 01 00 [16:49:16]Write to MH i2c: E2 08 00 A5 38 80 13 01 00 00 00 00 00 5A [16:49:16]Write i2c OK [16:49:16]MH_I2C_Read... [16:49:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:16]Read from MH i2c: E2 [16:49:16]MH_I2C_Read... [16:49:16]Read from MH i2c: E2 0E 00 [16:49:16]MH_I2C_Read... [16:49:16]Read from MH i2c: E2 0E 00 A5 38 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 C9 [16:49:16]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [16:49:16]wFMCommunicate OK [16:49:16]SAM_PROTO_GetShiftState done [16:49:16]FM_GetShiftState done [16:49:16]opened in 1729641385 [16:49:16]opened+sec_in_day 1729727785 [16:49:16]quantity*price = 30038 [16:49:16]sum+1 = 30039 [16:49:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 68 23.10.2024 16:49 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68445 ФПД: 78590666207081 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164926&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68445&fm=78590666207081&tin=02508201610067®Number=0000000000091756&sum=30000 [16:49:18]StoreToDocumentArchive [16:49:18]shift 507 fd 68445 [16:49:18]save to /storage/0507/doc_00068445 [16:49:18]save last doc name /storage/0507/doc_00068445 to /storage/kkm_last_doc_name [16:49:18]save OK [16:49:18]Clear old archive folders... [16:49:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:49:18]tlvbuf is 0201EAC0 [16:49:18]SAM_PROTO_ClearQueue [16:49:18]wFMCommunicate request_size=4 [16:49:18]MH_SAM_APDU [16:49:18]CAPDU: 80 09 00 00 [16:49:18]Write to MH i2c: E2 08 00 B2 38 80 09 00 00 00 00 00 00 5C [16:49:18]Write i2c OK [16:49:18]MH_I2C_Read... [16:49:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:49:18]Read from MH i2c: E2 [16:49:18]MH_I2C_Read... [16:49:18]Read from MH i2c: E2 03 00 [16:49:18]MH_I2C_Read... [16:49:18]Read from MH i2c: E2 03 00 B2 38 00 90 00 5E [16:49:18]RAPDU: 90 00 [16:49:18]wFMCommunicate OK [16:49:18]SAM_PROTO_ClearQueue done [16:49:18]KKMCreateOFDPacket [16:49:18]OFDProtocolAddRootSTLVToBuf [16:49:18]FM_MakeSignedData [16:49:18]FM_MakeSignedData [16:49:18]SAM_PROTO_SignData [16:49:18]wFMCommunicate request_size=4 [16:49:18]MH_SAM_APDU [16:49:18]CAPDU: 80 0D 01 02 [16:49:18]Write to MH i2c: E2 08 00 B3 38 80 0D 01 02 00 00 00 00 64 [16:49:18]Write i2c OK [16:49:18]MH_I2C_Read... [16:49:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:49:18]Read from MH i2c: E2 [16:49:18]MH_I2C_Read... [16:49:18]Read from MH i2c: E2 03 00 [16:49:18]MH_I2C_Read... [16:49:18]Read from MH i2c: E2 03 00 B3 38 00 90 00 5F [16:49:18]RAPDU: 90 00 [16:49:18]wFMCommunicate OK [16:49:18]wFMCommunicate request_size=255 [16:49:18]MH_SAM_APDU [16:49:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 44 00 00 00 F4 03 04 00 16 29 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 5D 0B 01 00 35 04 06 00 47 [16:49:18]Write to MH i2c: E2 02 01 B4 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 44 00 00 00 F4 03 04 00 16 29 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 5D 0B 01 00 35 04 06 00 47 00 00 97 [16:49:18]Write i2c OK [16:49:18]MH_I2C_Read... [16:49:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:18]Read from MH i2c: E2 [16:49:18]MH_I2C_Read... [16:49:18]Read from MH i2c: E2 03 00 [16:49:18]MH_I2C_Read... [16:49:18]Read from MH i2c: E2 03 00 B4 38 00 90 00 60 [16:49:18]RAPDU: 90 00 [16:49:18]wFMCommunicate OK [16:49:18]wFMCommunicate request_size=10 [16:49:18]MH_SAM_APDU [16:49:18]CAPDU: 80 0D 02 02 05 7A 50 BD EF 69 [16:49:18]Write to MH i2c: E2 0D 00 B5 38 80 0D 02 02 05 00 7A 50 BD EF 69 00 00 50 [16:49:18]Write i2c OK [16:49:18]MH_I2C_Read... [16:49:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:18]Read from MH i2c: E2 [16:49:18]MH_I2C_Read... [16:49:18]Read from MH i2c: E2 03 00 [16:49:18]MH_I2C_Read... [16:49:18]Read from MH i2c: E2 03 00 B5 38 00 90 00 61 [16:49:18]RAPDU: 90 00 [16:49:18]wFMCommunicate OK [16:49:18]wFMCommunicate request_size=4 [16:49:18]MH_SAM_APDU [16:49:18]CAPDU: 80 0D 03 02 [16:49:18]Write to MH i2c: E2 08 00 B6 38 80 0D 03 02 00 00 00 00 69 [16:49:18]Write i2c OK [16:49:18]MH_I2C_Read... [16:49:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:49:18]Read from MH i2c: E2 [16:49:18]MH_I2C_Read... [16:49:18]Read from MH i2c: E2 0B 00 [16:49:18]MH_I2C_Read... [16:49:18]Read from MH i2c: E2 0B 00 B6 38 00 40 82 75 E6 E2 FD 17 BD 90 00 3A [16:49:18]RAPDU: 40 82 75 E6 E2 FD 17 BD 90 00 [16:49:18]wFMCommunicate OK [16:49:18]SAM_PROTO_SignData done [16:49:18]FM_MakeSignedData done [16:49:18]CreateOFDProtocolMessage [16:49:18]wFMCommunicate request_size=4 [16:49:18]MH_SAM_APDU [16:49:18]CAPDU: 80 11 00 00 [16:49:18]Write to MH i2c: E2 08 00 B7 38 80 11 00 00 00 00 00 00 69 [16:49:18]Write i2c OK [16:49:18]MH_I2C_Read... [16:49:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:18]Read from MH i2c: E2 [16:49:18]MH_I2C_Read... [16:49:18]Read from MH i2c: E2 17 00 [16:49:18]MH_I2C_Read... [16:49:18]Read from MH i2c: E2 17 00 B7 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 BD [16:49:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [16:49:18]wFMCommunicate OK [16:49:18]CreateOFDProtocolMessage done [16:49:18]OFDSenderStorePacket 68445 [16:49:18]StoreOFDPacket docnum=68445 [16:49:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 9A ED 07 01 2F 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 44 00 00 00 F4 03 04 00 16 29 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 5D 0B 01 00 35 04 06 00 47 7A 50 BD EF 69 40 82 75 E6 E2 FD 17 BD [16:49:18]CheckFolder [16:49:18]dirname=/storage/ofd_packets [16:49:18]CheckFolder done [16:49:18]ProducePacketName [16:49:18]name=ofd_packets/00068445 [16:49:18]NVStorageSaveData ofd_packets/00068445 [16:49:18]File name is /storage/ofd_packets/00068445 [16:49:18]Write 301 bytes [16:49:18]NVStorageSaveData done [16:49:18]OFDSenderStorePacket done [16:49:18]KKMCreateOFDPacket done [16:49:18]NVStorageSaveData kkm_last_timestamp [16:49:18]File name is /storage/kkm_last_timestamp [16:49:18]Write 4 bytes [16:49:18]NVStorageSaveData done [16:49:18]ExternCall_PrintAddStr [16:49:18]wPrintStart [16:49:18]Write to MH i2c: 01 00 00 B8 38 F0 [16:49:18]Write i2c OK [16:49:18]MH_I2C_Read... [16:49:18]Read from MH i2c: 01 [16:49:18]MH_I2C_Read... [16:49:18]Read from MH i2c: 01 07 00 [16:49:18]MH_I2C_Read... [16:49:18]Read from MH i2c: 01 07 00 B8 38 00 04 00 00 00 FF 0F 09 [16:49:18]RasterBufferAndPrint [16:49:18]line Счет N : (1)210442 [16:49:18]line ИНН: 02508201610067 [16:49:18]line Контрольно-Кассовый Чек [16:49:18]line ПРОДАЖА [16:49:18]line ТРК (МРК, ГНК) : 11 [16:49:18]line Товар: 2710124130 [16:49:18]line Аи-92-К-2 [16:49:18]line 4.490 * 66.90 [16:49:18]line = 300.38 [16:49:18]line НДС 12% НСП 1% [16:49:18]line > о реализуемом товаре [16:49:18]line ОКРУГЛЕНИЕ: -0.38 [16:49:18]line ИТОГО: 300.00 [16:49:18]line Внесено: 300.00 [16:49:18]line СДАЧА: 0.00 [16:49:18]line НСП 1% : 2.66 [16:49:18]line НДС 12% : 31.90 [16:49:18]line Наличными: 300.00 [16:49:18]line Безнал.: 0.00 [16:49:18]line Место: АЗС № 147 "Партнер Нефть" [16:49:18]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [16:49:18]line СНО: Общий режим [16:49:18]line Чек 68 23.10.2024 16:49 [16:49:18]line Смена: 507 ФФД: 1.0 [16:49:18]line ЗНМ: 0300000094 [16:49:18]line РНМ: 0000000000091756 [16:49:18]line Версия ККМ: 001 [16:49:18]line ФМ: 0000000000871809 [16:49:18]line ФД: 68445 [16:49:18]line ФПД: 78590666207081 [16:49:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164926&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68445&fm=78590666207081&tin=02508201610067®Number=0000000000091756&sum=30000 [16:49:18]written 0, free lines is 4095 [16:49:18]OFD Sender: Processing packet 68445 [packets to send 8, broken 7] [16:49:18]ProducePacketName [16:49:18]name=ofd_packets/00068445 [16:49:18]OFD Sender: To server: pG, [16:49:18]CommunicateWithHost lk.salyk.kg:30040 [16:49:18]ConnectInit lk.salyk.kg [16:49:19]Connected sock=10 [16:49:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 9A ED 07 01 2F 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 44 00 00 00 F4 03 04 00 16 29 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 5D 0B 01 00 35 04 06 00 47 7A 50 BD EF 69 40 82 75 E6 E2 FD 17 BD [16:49:19]Write to MH i2c: 01 00 00 E2 38 1A [16:49:19]Write i2c OK [16:49:19]MH_I2C_Read... [16:49:19]Read from MH i2c: 01 [16:49:19]MH_I2C_Read... [16:49:19]Read from MH i2c: 01 07 00 [16:49:19]MH_I2C_Read... [16:49:19]Read from MH i2c: 01 07 00 E2 38 00 04 00 00 00 C6 0C F7 [16:49:19]RasterBufferAndPrint [16:49:19]line [16:49:19]line [16:49:19]line [16:49:19]line [16:49:19]line [16:49:19]written 0, free lines is 3275 [16:49:19]MH_Cut [16:49:19]Write to MH i2c: D1 01 00 E9 38 01 F3 [16:49:19]Write i2c OK [16:49:19]MH_I2C_Read... [16:49:19]Read from MH i2c: D1 [16:49:19]MH_I2C_Read... [16:49:19]Read from MH i2c: D1 01 00 [16:49:19]MH_I2C_Read... [16:49:19]Read from MH i2c: D1 01 00 E9 38 00 F2 [16:49:19]Write to MH i2c: 01 00 00 EA 38 22 [16:49:19]Write i2c OK [16:49:19]MH_I2C_Read... [16:49:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 32 0B 47 00 5C AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 5D 0B 01 00 F4 03 04 00 0B CF 18 67 B6 04 01 00 00 EE 23 9F D0 48 84 2A 85 [16:49:19]CommunicateWithHost err = 0 [16:49:19]CheckOFDResponse [16:49:19]1017 (14) - 77093643461234 [16:49:19]1041 (16) - 0000000000871809 [16:49:19]1040 (4) - 68445 [16:49:19]1012 (4) - 23.10.2024 10:25 [16:49:19]1206 (1) - 0 [16:49:19]OFD Sender: Remove packet 68445 [16:49:19]ProducePacketName [16:49:19]name=ofd_packets/00068445 [16:49:19]NVStorageDeleteData [16:49:19]OFD Sender: No OFD packet to send [16:49:19]*** Cut start [16:49:19]*** Partial cut [16:49:19]*** CUTSNS_PIN = 1 [16:49:19]*** CUTSNS_PIN = 0 [16:49:20]*** Brake cut motor [16:49:20]Read from MH i2c: 01 [16:49:20]MH_I2C_Read... [16:49:20]*** Stop cut motor [16:49:20]*** Cut end [16:49:20]Read from MH i2c: 01 07 00 [16:49:20]MH_I2C_Read... [16:49:20]Read from MH i2c: 01 07 00 EA 38 00 04 00 00 00 FF 0F 3B [16:49:20]process_action close_receipt done [16:49:20]requested_data is exist [16:49:20]produce_requested_data [16:49:20]requested_item fm.sn is exist - process it [16:49:20]wFMCommunicate request_size=4 [16:49:20]MH_SAM_APDU [16:49:20]CAPDU: 80 11 00 00 [16:49:20]Write to MH i2c: E2 08 00 EB 38 80 11 00 00 00 00 00 00 9D [16:49:20]Write i2c OK [16:49:20]MH_I2C_Read... [16:49:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:20]Read from MH i2c: E2 [16:49:20]MH_I2C_Read... [16:49:20]Read from MH i2c: E2 17 00 [16:49:20]MH_I2C_Read... [16:49:20]Read from MH i2c: E2 17 00 EB 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 F1 [16:49:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [16:49:20]wFMCommunicate OK [16:49:20]requested_item fd.num is exist - process it [16:49:20]SAM_PROTO_GetFieldsCounters [16:49:20]wFMCommunicate request_size=4 [16:49:20]MH_SAM_APDU [16:49:20]CAPDU: 80 13 00 00 [16:49:20]Write to MH i2c: E2 08 00 EC 38 80 13 00 00 00 00 00 00 A0 [16:49:20]Write i2c OK [16:49:20]MH_I2C_Read... [16:49:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:49:20]Read from MH i2c: E2 [16:49:20]MH_I2C_Read... [16:49:20]Read from MH i2c: E2 62 00 [16:49:20]MH_I2C_Read... [16:49:20]Read from MH i2c: E2 62 00 EC 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 5D 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [16:49:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 5D 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:49:20]wFMCommunicate OK [16:49:20]SAM_PROTO_GetFieldsCounters done [16:49:20]requested_item shift.num is exist - process it [16:49:20]requested_item shift.opened is exist - process it [16:49:20]req_shift_opened [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 ED 38 80 13 01 00 00 00 00 00 A2 [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 ED 38 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 11 [16:49:20]RAPDU: 09 00 01 A9 3B 18 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]req_shift_opened done [16:49:20]requested_item shift.open_date is exist - process it [16:49:20]req_shift_open_date [16:49:20]req_shift_open_date done [16:49:20]produce_requested_data done [16:49:20]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68445,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [16:49:20]process_action_free close_receipt [16:49:20]json_value_free [16:49:20]json_value_free done [16:49:20]process_json_proto returns [16:49:20]Send response to host [16:49:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68445,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [16:49:20]free response buf [16:49:20]execute_script done [16:49:20]execute_script returns [16:49:20]free content buf [16:49:20]Sock 7.Close socket [16:49:20]Sock 7.Thread stoped [16:49:24]OFD Sender: No OFD packet to send [16:49:29]OFD Sender: No OFD packet to send [16:49:34]OFD Sender: No OFD packet to send [16:49:39]OFD Sender: No OFD packet to send [16:49:44]OFD Sender: No OFD packet to send [16:49:49]OFD Sender: No OFD packet to send [16:49:54]OFD Sender: No OFD packet to send [16:49:59]OFD Sender: No OFD packet to send [16:50:04]OFD Sender: No OFD packet to send [16:50:09]OFD Sender: No OFD packet to send [16:50:14]OFD Sender: No OFD packet to send [16:50:19]OFD Sender: No OFD packet to send [16:50:24]OFD Sender: No OFD packet to send [16:50:29]OFD Sender: No OFD packet to send [16:50:34]OFD Sender: No OFD packet to send [16:50:39]OFD Sender: No OFD packet to send [16:50:44]OFD Sender: No OFD packet to send [16:50:49]OFD Sender: No OFD packet to send [16:50:54]OFD Sender: No OFD packet to send [16:50:59]OFD Sender: No OFD packet to send [16:51:04]OFD Sender: No OFD packet to send [16:51:09]OFD Sender: No OFD packet to send [16:51:14]OFD Sender: No OFD packet to send [16:51:19]OFD Sender: No OFD packet to send [16:51:24]OFD Sender: No OFD packet to send [16:51:29]OFD Sender: No OFD packet to send [16:51:34]OFD Sender: No OFD packet to send [16:51:39]OFD Sender: No OFD packet to send [16:51:44]OFD Sender: No OFD packet to send [16:51:49]OFD Sender: No OFD packet to send [16:51:54]OFD Sender: No OFD packet to send [16:51:59]OFD Sender: No OFD packet to send [16:52:04]OFD Sender: No OFD packet to send [16:52:09]OFD Sender: No OFD packet to send [16:52:14]OFD Sender: No OFD packet to send [16:52:19]OFD Sender: No OFD packet to send [16:52:24]OFD Sender: No OFD packet to send [16:52:29]OFD Sender: No OFD packet to send [16:52:34]OFD Sender: No OFD packet to send [16:52:39]OFD Sender: No OFD packet to send [16:52:44]OFD Sender: No OFD packet to send [16:52:49]OFD Sender: No OFD packet to send [16:52:54]OFD Sender: No OFD packet to send [16:52:59]OFD Sender: No OFD packet to send [16:53:05]OFD Sender: No OFD packet to send [16:53:10]OFD Sender: No OFD packet to send [16:53:15]OFD Sender: No OFD packet to send [16:53:20]OFD Sender: No OFD packet to send [16:53:25]OFD Sender: No OFD packet to send [16:53:30]OFD Sender: No OFD packet to send [16:53:35]OFD Sender: No OFD packet to send [16:53:40]OFD Sender: No OFD packet to send [16:53:45]OFD Sender: No OFD packet to send [16:53:50]OFD Sender: No OFD packet to send [16:53:55]OFD Sender: No OFD packet to send [16:54:00]OFD Sender: No OFD packet to send [16:54:05]OFD Sender: No OFD packet to send [16:54:10]OFD Sender: No OFD packet to send [16:54:15]OFD Sender: No OFD packet to send [16:54:20]OFD Sender: No OFD packet to send [16:54:25]OFD Sender: No OFD packet to send [16:54:30]OFD Sender: No OFD packet to send [16:54:35]OFD Sender: No OFD packet to send [16:54:40]OFD Sender: No OFD packet to send [16:54:45]OFD Sender: No OFD packet to send [16:54:50]OFD Sender: No OFD packet to send [16:54:55]OFD Sender: No OFD packet to send [16:55:00]OFD Sender: No OFD packet to send [16:55:05]OFD Sender: No OFD packet to send [16:55:10]OFD Sender: No OFD packet to send [16:55:15]OFD Sender: No OFD packet to send [16:55:20]OFD Sender: No OFD packet to send [16:55:25]OFD Sender: No OFD packet to send [16:55:30]OFD Sender: No OFD packet to send [16:55:35]OFD Sender: No OFD packet to send [16:55:40]OFD Sender: No OFD packet to send [16:55:45]OFD Sender: No OFD packet to send [16:55:50]OFD Sender: No OFD packet to send [16:55:55]OFD Sender: No OFD packet to send [16:56:00]OFD Sender: No OFD packet to send [16:56:05]OFD Sender: No OFD packet to send [16:56:10]OFD Sender: No OFD packet to send [16:56:15]OFD Sender: No OFD packet to send [16:56:20]OFD Sender: No OFD packet to send [16:56:25]OFD Sender: No OFD packet to send [16:56:30]OFD Sender: No OFD packet to send [16:56:35]OFD Sender: No OFD packet to send [16:56:40]OFD Sender: No OFD packet to send [16:56:45]OFD Sender: No OFD packet to send [16:56:50]OFD Sender: No OFD packet to send [16:56:55]OFD Sender: No OFD packet to send [16:56:56]accept exits with 9 [16:56:56]New connection [16:56:56]New thread 3067133284 created [16:56:56]Thread 3067276644 joined [16:56:56]Waiting for new connection... [16:56:56] Sock 9.Parse request [16:56:56]Sock 9.Check first char [16:56:56]Sock 9.First char is OK [16:56:56]request: POST /json_proto HTTP/1.0 [16:56:56]Method: POST [16:56:56]URL: /json_proto [16:56:56]Method is POST - this is cgi request [16:56:56]url: /json_proto [16:56:56]query_string will be loaded in cgi processing [16:56:56]execute_cgi json_proto POST (null) [16:56:56]execute_cgi path=json_proto method=POST [16:56:56]POST find Content-Length [16:56:56]Host: 172.17.52.3:8080 [16:56:56]Content-Length: 674 [16:56:56]Content-Type: application/json [16:56:56] [16:56:56]POST finish read [16:56:56]Found Content-Length = 674 [16:56:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:56]execute_script... [16:56: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)210443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:56]POST & json_proto [16:56:56]process_json_proto [16:56:56]json parsed OK: [16:56:56]protocol is kg_v1.0 [16:56:56]action value=close_receipt [16:56:56]process_action close_receipt [16:56:56]cmd_close_receipt [16:56:56]MH_GetDate [16:56:56]Write to MH i2c: F0 00 00 EE 38 15 [16:56:56]Write i2c OK [16:56:56]MH_I2C_Read... [16:56:56]Read from MH i2c: F0 [16:56:56]MH_I2C_Read... [16:56:56]Read from MH i2c: F0 09 00 [16:56:56]MH_I2C_Read... [16:56:56]Read from MH i2c: F0 09 00 EE 38 00 E2 2A 19 67 D7 68 A5 64 F2 [16:56:56]GetLastDocTimeStamp 1729702166 [16:56:56]current date 1729702626 [16:56:56]FM_GetShiftState [16:56:56]SAM_PROTO_GetShiftState [16:56:56]wFMCommunicate request_size=4 [16:56:56]MH_SAM_APDU [16:56:56]CAPDU: 80 13 01 00 [16:56:56]Write to MH i2c: E2 08 00 EF 38 80 13 01 00 00 00 00 00 A4 [16:56:56]Write i2c OK [16:56:56]MH_I2C_Read... [16:56:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:57]Read from MH i2c: E2 [16:56:57]MH_I2C_Read... [16:56:57]Read from MH i2c: E2 0E 00 [16:56:57]MH_I2C_Read... [16:56:57]Read from MH i2c: E2 0E 00 EF 38 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 13 [16:56:57]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [16:56:57]wFMCommunicate OK [16:56:57]SAM_PROTO_GetShiftState done [16:56:57]FM_GetShiftState done [16:56:57]opened in 1729641385 [16:56:57]opened+sec_in_day 1729727785 [16:56:57]quantity*price = 30022 [16:56:57]sum+1 = 30024 [16:56:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 69 23.10.2024 16:57 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68446 ФПД: 18985933844178 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165706&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68446&fm=18985933844178&tin=02508201610067®Number=0000000000091756&sum=30000 [16:56:58]StoreToDocumentArchive [16:56:58]shift 507 fd 68446 [16:56:58]save to /storage/0507/doc_00068446 [16:56:58]save last doc name /storage/0507/doc_00068446 to /storage/kkm_last_doc_name [16:56:58]save OK [16:56:58]Clear old archive folders... [16:56:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:56:58]tlvbuf is 0200DD80 [16:56:58]SAM_PROTO_ClearQueue [16:56:58]wFMCommunicate request_size=4 [16:56:58]MH_SAM_APDU [16:56:58]CAPDU: 80 09 00 00 [16:56:58]Write to MH i2c: E2 08 00 FC 38 80 09 00 00 00 00 00 00 A6 [16:56:58]Write i2c OK [16:56:58]MH_I2C_Read... [16:56:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:56:58]Read from MH i2c: E2 [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: E2 03 00 [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: E2 03 00 FC 38 00 90 00 A8 [16:56:58]RAPDU: 90 00 [16:56:58]wFMCommunicate OK [16:56:58]SAM_PROTO_ClearQueue done [16:56:58]KKMCreateOFDPacket [16:56:58]OFDProtocolAddRootSTLVToBuf [16:56:58]FM_MakeSignedData [16:56:58]FM_MakeSignedData [16:56:58]SAM_PROTO_SignData [16:56:58]wFMCommunicate request_size=4 [16:56:58]MH_SAM_APDU [16:56:58]CAPDU: 80 0D 01 02 [16:56:58]Write to MH i2c: E2 08 00 FD 38 80 0D 01 02 00 00 00 00 AE [16:56:58]Write i2c OK [16:56:58]MH_I2C_Read... [16:56:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:56:58]Read from MH i2c: E2 [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: E2 03 00 [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: E2 03 00 FD 38 00 90 00 A9 [16:56:58]RAPDU: 90 00 [16:56:58]wFMCommunicate OK [16:56:58]wFMCommunicate request_size=255 [16:56:58]MH_SAM_APDU [16:56:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 E2 2A 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 5E 0B 01 00 35 04 06 00 11 44 81 D7 [16:56:58]Write to MH i2c: E2 02 01 FE 38 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 E2 2A 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 5E 0B 01 00 35 04 06 00 11 44 81 D7 00 00 D5 [16:56:58]Write i2c OK [16:56:58]MH_I2C_Read... [16:56:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:58]Read from MH i2c: E2 [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: E2 03 00 [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: E2 03 00 FE 38 00 90 00 AA [16:56:58]RAPDU: 90 00 [16:56:58]wFMCommunicate OK [16:56:58]wFMCommunicate request_size=7 [16:56:58]MH_SAM_APDU [16:56:58]CAPDU: 80 0D 02 02 02 AE D2 [16:56:58]Write to MH i2c: E2 0A 00 FF 38 80 0D 02 02 02 00 AE D2 00 00 35 [16:56:58]Write i2c OK [16:56:58]MH_I2C_Read... [16:56:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:58]Read from MH i2c: E2 [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: E2 03 00 [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: E2 03 00 FF 38 00 90 00 AB [16:56:58]RAPDU: 90 00 [16:56:58]wFMCommunicate OK [16:56:58]wFMCommunicate request_size=4 [16:56:58]MH_SAM_APDU [16:56:58]CAPDU: 80 0D 03 02 [16:56:58]Write to MH i2c: E2 08 00 00 39 80 0D 03 02 00 00 00 00 B4 [16:56:58]Write i2c OK [16:56:58]MH_I2C_Read... [16:56:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:56:58]Read from MH i2c: E2 [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: E2 0B 00 [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: E2 0B 00 00 39 00 53 0C 02 AB 3F 74 85 66 90 00 5F [16:56:58]RAPDU: 53 0C 02 AB 3F 74 85 66 90 00 [16:56:58]wFMCommunicate OK [16:56:58]SAM_PROTO_SignData done [16:56:58]FM_MakeSignedData done [16:56:58]CreateOFDProtocolMessage [16:56:58]wFMCommunicate request_size=4 [16:56:58]MH_SAM_APDU [16:56:58]CAPDU: 80 11 00 00 [16:56:58]Write to MH i2c: E2 08 00 01 39 80 11 00 00 00 00 00 00 B4 [16:56:58]Write i2c OK [16:56:58]MH_I2C_Read... [16:56:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:58]Read from MH i2c: E2 [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: E2 17 00 [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: E2 17 00 01 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 08 [16:56:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [16:56:58]wFMCommunicate OK [16:56:58]CreateOFDProtocolMessage done [16:56:58]OFDSenderStorePacket 68446 [16:56:58]StoreOFDPacket docnum=68446 [16:56:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0C 01 00 00 0B 23 04 01 3A F6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 E2 2A 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 5E 0B 01 00 35 04 06 00 11 44 81 D7 AE D2 53 0C 02 AB 3F 74 85 66 [16:56:58]CheckFolder [16:56:58]dirname=/storage/ofd_packets [16:56:58]CheckFolder done [16:56:58]ProducePacketName [16:56:58]name=ofd_packets/00068446 [16:56:58]NVStorageSaveData ofd_packets/00068446 [16:56:58]File name is /storage/ofd_packets/00068446 [16:56:58]Write 298 bytes [16:56:58]NVStorageSaveData done [16:56:58]OFDSenderStorePacket done [16:56:58]KKMCreateOFDPacket done [16:56:58]NVStorageSaveData kkm_last_timestamp [16:56:58]File name is /storage/kkm_last_timestamp [16:56:58]Write 4 bytes [16:56:58]NVStorageSaveData done [16:56:58]ExternCall_PrintAddStr [16:56:58]wPrintStart [16:56:58]Write to MH i2c: 01 00 00 02 39 3B [16:56:58]Write i2c OK [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: 01 [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: 01 07 00 [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: 01 07 00 02 39 00 04 00 00 00 FF 0F 54 [16:56:58]RasterBufferAndPrint [16:56:58]line Счет N : (1)210443 [16:56:58]line ИНН: 02508201610067 [16:56:58]line Контрольно-Кассовый Чек [16:56:58]line ПРОДАЖА [16:56:58]line ТРК (МРК, ГНК) : 21 [16:56:58]line Товар: 2710194210 [16:56:58]line ДТ-К-2 [16:56:58]line 3.940 * 76.20 [16:56:58]line = 300.23 [16:56:58]line НДС 12% НСП 1% [16:56:58]line > о реализуемом товаре [16:56:58]line ОКРУГЛЕНИЕ: -0.23 [16:56:58]line ИТОГО: 300.00 [16:56:58]line Внесено: 300.00 [16:56:58]line СДАЧА: 0.00 [16:56:58]line НСП 1% : 2.66 [16:56:58]line НДС 12% : 31.88 [16:56:58]line Наличными: 300.00 [16:56:58]line Безнал.: 0.00 [16:56:58]line Место: АЗС № 147 "Партнер Нефть" [16:56:58]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [16:56:58]line СНО: Общий режим [16:56:58]line Чек 69 23.10.2024 16:57 [16:56:58]line Смена: 507 ФФД: 1.0 [16:56:58]line ЗНМ: 0300000094 [16:56:58]line РНМ: 0000000000091756 [16:56:58]line Версия ККМ: 001 [16:56:58]line ФМ: 0000000000871809 [16:56:58]line ФД: 68446 [16:56:58]line ФПД: 18985933844178 [16:56:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165706&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68446&fm=18985933844178&tin=02508201610067®Number=0000000000091756&sum=30000 [16:56:58]OFD Sender: Processing packet 68446 [packets to send 8, broken 7] [16:56:58]ProducePacketName [16:56:58]name=ofd_packets/00068446 [16:56:58]OFD Sender: To server: pG, [16:56:58]CommunicateWithHost lk.salyk.kg:30040 [16:56:58]ConnectInit lk.salyk.kg [16:56:58]written 0, free lines is 4095 [16:56:59]Connected sock=10 [16:56:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0C 01 00 00 0B 23 04 01 3A F6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 E2 2A 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 5E 0B 01 00 35 04 06 00 11 44 81 D7 AE D2 53 0C 02 AB 3F 74 85 66 [16:56:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 4F 5B 47 00 16 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 31 38 30 39 10 04 04 00 5E 0B 01 00 F4 03 04 00 D7 D0 18 67 B6 04 01 00 00 2E 63 38 95 93 26 EE 05 [16:56:59]CommunicateWithHost err = 0 [16:56:59]CheckOFDResponse [16:56:59]1017 (14) - 77093643461234 [16:56:59]1041 (16) - 0000000000871809 [16:56:59]1040 (4) - 68446 [16:56:59]1012 (4) - 23.10.2024 10:32 [16:56:59]1206 (1) - 0 [16:56:59]OFD Sender: Remove packet 68446 [16:56:59]ProducePacketName [16:56:59]name=ofd_packets/00068446 [16:56:59]NVStorageDeleteData [16:56:59]Write to MH i2c: 01 00 00 2C 39 65 [16:56:59]Write i2c OK [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: 01 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: 01 07 00 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: 01 07 00 2C 39 00 04 00 00 00 B4 0C 30 [16:56:59]RasterBufferAndPrint [16:56:59]line [16:56:59]line [16:56:59]line [16:56:59]line [16:56:59]line [16:56:59]written 0, free lines is 3256 [16:56:59]MH_Cut [16:56:59]Write to MH i2c: D1 01 00 33 39 01 3E [16:56:59]Write i2c OK [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: D1 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: D1 01 00 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: D1 01 00 33 39 00 3D [16:56:59]Write to MH i2c: 01 00 00 34 39 6D [16:56:59]Write i2c OK [16:56:59]MH_I2C_Read... [16:56:59]OFD Sender: No OFD packet to send [16:57:00]*** Cut start [16:57:00]*** Partial cut [16:57:00]*** CUTSNS_PIN = 1 [16:57:00]*** CUTSNS_PIN = 0 [16:57:00]*** Brake cut motor [16:57:00]Read from MH i2c: 01 [16:57:00]MH_I2C_Read... [16:57:00]*** Stop cut motor [16:57:00]*** Cut end [16:57:00]Read from MH i2c: 01 07 00 [16:57:00]MH_I2C_Read... [16:57:00]Read from MH i2c: 01 07 00 34 39 00 04 00 00 00 FF 0F 86 [16:57:00]process_action close_receipt done [16:57:00]requested_data is exist [16:57:00]produce_requested_data [16:57:00]requested_item fm.sn is exist - process it [16:57:00]wFMCommunicate request_size=4 [16:57:00]MH_SAM_APDU [16:57:00]CAPDU: 80 11 00 00 [16:57:00]Write to MH i2c: E2 08 00 35 39 80 11 00 00 00 00 00 00 E8 [16:57:00]Write i2c OK [16:57:00]MH_I2C_Read... [16:57:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:00]Read from MH i2c: E2 [16:57:00]MH_I2C_Read... [16:57:00]Read from MH i2c: E2 17 00 [16:57:00]MH_I2C_Read... [16:57:00]Read from MH i2c: E2 17 00 35 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 3C [16:57:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [16:57:00]wFMCommunicate OK [16:57:00]requested_item fd.num is exist - process it [16:57:00]SAM_PROTO_GetFieldsCounters [16:57:00]wFMCommunicate request_size=4 [16:57:00]MH_SAM_APDU [16:57:00]CAPDU: 80 13 00 00 [16:57:00]Write to MH i2c: E2 08 00 36 39 80 13 00 00 00 00 00 00 EB [16:57:00]Write i2c OK [16:57:00]MH_I2C_Read... [16:57:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:57:01]Read from MH i2c: E2 [16:57:01]MH_I2C_Read... [16:57:01]Read from MH i2c: E2 62 00 [16:57:01]MH_I2C_Read... [16:57:01]Read from MH i2c: E2 62 00 36 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 5E 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [16:57:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 5E 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:57:01]wFMCommunicate OK [16:57:01]SAM_PROTO_GetFieldsCounters done [16:57:01]requested_item shift.num is exist - process it [16:57:01]requested_item shift.opened is exist - process it [16:57:01]req_shift_opened [16:57:01]FM_GetShiftState [16:57:01]SAM_PROTO_GetShiftState [16:57:01]wFMCommunicate request_size=4 [16:57:01]MH_SAM_APDU [16:57:01]CAPDU: 80 13 01 00 [16:57:01]Write to MH i2c: E2 08 00 37 39 80 13 01 00 00 00 00 00 ED [16:57:01]Write i2c OK [16:57:01]MH_I2C_Read... [16:57:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:01]Read from MH i2c: E2 [16:57:01]MH_I2C_Read... [16:57:01]Read from MH i2c: E2 0E 00 [16:57:01]MH_I2C_Read... [16:57:01]Read from MH i2c: E2 0E 00 37 39 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 5C [16:57:01]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [16:57:01]wFMCommunicate OK [16:57:01]SAM_PROTO_GetShiftState done [16:57:01]FM_GetShiftState done [16:57:01]req_shift_opened done [16:57:01]requested_item shift.open_date is exist - process it [16:57:01]req_shift_open_date [16:57:01]req_shift_open_date done [16:57:01]produce_requested_data done [16:57:01]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68446,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [16:57:01]process_action_free close_receipt [16:57:01]json_value_free [16:57:01]json_value_free done [16:57:01]process_json_proto returns [16:57:01]Send response to host [16:57:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68446,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [16:57:01]free response buf [16:57:01]execute_script done [16:57:01]execute_script returns [16:57:01]free content buf [16:57:01]Sock 9.Close socket [16:57:01]Sock 9.Thread stoped [16:57:04]OFD Sender: No OFD packet to send [16:57:09]OFD Sender: No OFD packet to send [16:57:14]OFD Sender: No OFD packet to send [16:57:19]OFD Sender: No OFD packet to send [16:57:24]OFD Sender: No OFD packet to send [16:57:29]OFD Sender: No OFD packet to send [16:57:34]OFD Sender: No OFD packet to send [16:57:39]OFD Sender: No OFD packet to send [16:57:44]OFD Sender: No OFD packet to send [16:57:49]OFD Sender: No OFD packet to send [16:57:54]OFD Sender: No OFD packet to send [16:57:59]OFD Sender: No OFD packet to send [16:58:04]OFD Sender: No OFD packet to send [16:58:09]OFD Sender: No OFD packet to send [16:58:14]OFD Sender: No OFD packet to send [16:58:19]OFD Sender: No OFD packet to send [16:58:24]OFD Sender: No OFD packet to send [16:58:29]OFD Sender: No OFD packet to send [16:58:34]OFD Sender: No OFD packet to send [16:58:39]OFD Sender: No OFD packet to send [16:58:44]OFD Sender: No OFD packet to send [16:58:49]OFD Sender: No OFD packet to send [16:58:54]OFD Sender: No OFD packet to send [16:58:59]OFD Sender: No OFD packet to send [16:59:04]OFD Sender: No OFD packet to send [16:59:09]OFD Sender: No OFD packet to send [16:59:14]OFD Sender: No OFD packet to send [16:59:19]OFD Sender: No OFD packet to send [16:59:24]OFD Sender: No OFD packet to send [16:59:29]OFD Sender: No OFD packet to send [16:59:34]OFD Sender: No OFD packet to send [16:59:39]OFD Sender: No OFD packet to send [16:59:44]OFD Sender: No OFD packet to send [16:59:49]OFD Sender: No OFD packet to send [16:59:54]OFD Sender: No OFD packet to send [16:59:59]OFD Sender: No OFD packet to send [17:00:04]OFD Sender: No OFD packet to send [17:00:09]OFD Sender: No OFD packet to send [17:00:14]OFD Sender: No OFD packet to send [17:00:19]OFD Sender: No OFD packet to send [17:00:24]OFD Sender: No OFD packet to send [17:00:29]OFD Sender: No OFD packet to send [17:00:34]OFD Sender: No OFD packet to send [17:00:39]OFD Sender: No OFD packet to send [17:00:44]OFD Sender: No OFD packet to send [17:00:49]OFD Sender: No OFD packet to send [17:00:54]OFD Sender: No OFD packet to send [17:01:00]OFD Sender: No OFD packet to send [17:01:05]OFD Sender: No OFD packet to send [17:01:10]OFD Sender: No OFD packet to send [17:01:15]OFD Sender: No OFD packet to send [17:01:20]OFD Sender: No OFD packet to send [17:01:25]OFD Sender: No OFD packet to send [17:01:30]OFD Sender: No OFD packet to send [17:01:35]OFD Sender: No OFD packet to send [17:01:40]OFD Sender: No OFD packet to send [17:01:45]OFD Sender: No OFD packet to send [17:01:50]OFD Sender: No OFD packet to send [17:01:55]OFD Sender: No OFD packet to send [17:02:00]OFD Sender: No OFD packet to send [17:02:05]OFD Sender: No OFD packet to send [17:02:10]OFD Sender: No OFD packet to send [17:02:15]OFD Sender: No OFD packet to send [17:02:20]OFD Sender: No OFD packet to send [17:02:25]OFD Sender: No OFD packet to send [17:02:30]OFD Sender: No OFD packet to send [17:02:35]OFD Sender: No OFD packet to send [17:02:40]OFD Sender: No OFD packet to send [17:02:45]OFD Sender: No OFD packet to send [17:02:50]OFD Sender: No OFD packet to send [17:02:55]OFD Sender: No OFD packet to send [17:03:00]OFD Sender: No OFD packet to send [17:03:05]OFD Sender: No OFD packet to send [17:03:10]OFD Sender: No OFD packet to send [17:03:15]OFD Sender: No OFD packet to send [17:03:20]OFD Sender: No OFD packet to send [17:03:25]OFD Sender: No OFD packet to send [17:03:30]OFD Sender: No OFD packet to send [17:03:35]OFD Sender: No OFD packet to send [17:03:40]OFD Sender: No OFD packet to send [17:03:45]OFD Sender: No OFD packet to send [17:03:50]OFD Sender: No OFD packet to send [17:03:55]OFD Sender: No OFD packet to send [17:04:00]OFD Sender: No OFD packet to send [17:04:05]OFD Sender: No OFD packet to send [17:04:10]OFD Sender: No OFD packet to send [17:04:15]OFD Sender: No OFD packet to send [17:04:20]OFD Sender: No OFD packet to send [17:04:25]OFD Sender: No OFD packet to send [17:04:30]OFD Sender: No OFD packet to send [17:04:35]OFD Sender: No OFD packet to send [17:04:40]OFD Sender: No OFD packet to send [17:04:45]OFD Sender: No OFD packet to send [17:04:50]OFD Sender: No OFD packet to send [17:04:55]OFD Sender: No OFD packet to send [17:05:00]OFD Sender: No OFD packet to send [17:05:05]OFD Sender: No OFD packet to send [17:05:10]OFD Sender: No OFD packet to send [17:05:15]OFD Sender: No OFD packet to send [17:05:20]OFD Sender: No OFD packet to send [17:05:25]OFD Sender: No OFD packet to send [17:05:30]OFD Sender: No OFD packet to send [17:05:35]OFD Sender: No OFD packet to send [17:05:40]OFD Sender: No OFD packet to send [17:05:45]OFD Sender: No OFD packet to send [17:05:50]OFD Sender: No OFD packet to send [17:05:55]OFD Sender: No OFD packet to send [17:06:00]OFD Sender: No OFD packet to send [17:06:05]OFD Sender: No OFD packet to send [17:06:10]OFD Sender: No OFD packet to send [17:06:15]OFD Sender: No OFD packet to send [17:06:20]OFD Sender: No OFD packet to send [17:06:25]OFD Sender: No OFD packet to send [17:06:30]OFD Sender: No OFD packet to send [17:06:35]OFD Sender: No OFD packet to send [17:06:40]OFD Sender: No OFD packet to send [17:06:45]OFD Sender: No OFD packet to send [17:06:50]OFD Sender: No OFD packet to send [17:06:55]OFD Sender: No OFD packet to send [17:07:00]OFD Sender: No OFD packet to send [17:07:05]OFD Sender: No OFD packet to send [17:07:10]OFD Sender: No OFD packet to send [17:07:15]OFD Sender: No OFD packet to send [17:07:20]OFD Sender: No OFD packet to send [17:07:25]OFD Sender: No OFD packet to send [17:07:30]OFD Sender: No OFD packet to send [17:07:35]OFD Sender: No OFD packet to send [17:07:40]OFD Sender: No OFD packet to send [17:07:45]OFD Sender: No OFD packet to send [17:07:50]OFD Sender: No OFD packet to send [17:07:55]OFD Sender: No OFD packet to send [17:08:00]OFD Sender: No OFD packet to send [17:08:05]OFD Sender: No OFD packet to send [17:08:10]OFD Sender: No OFD packet to send [17:08:15]OFD Sender: No OFD packet to send [17:08:20]OFD Sender: No OFD packet to send [17:08:25]OFD Sender: No OFD packet to send [17:08:30]OFD Sender: No OFD packet to send [17:08:35]OFD Sender: No OFD packet to send [17:08:40]OFD Sender: No OFD packet to send [17:08:45]OFD Sender: No OFD packet to send [17:08:50]OFD Sender: No OFD packet to send [17:08:55]OFD Sender: No OFD packet to send [17:09:00]OFD Sender: No OFD packet to send [17:09:00]accept exits with 7 [17:09:00]New connection [17:09:00]New thread 3067276644 created [17:09:00]Thread 3067133284 joined [17:09:00]Waiting for new connection... [17:09:00] Sock 7.Parse request [17:09:00]Sock 7.Check first char [17:09:00]Sock 7.First char is OK [17:09:00]request: POST /json_proto HTTP/1.0 [17:09:00]Method: POST [17:09:00]URL: /json_proto [17:09:00]Method is POST - this is cgi request [17:09:00]url: /json_proto [17:09:00]query_string will be loaded in cgi processing [17:09:00]execute_cgi json_proto POST (null) [17:09:00]execute_cgi path=json_proto method=POST [17:09:00]POST find Content-Length [17:09:00]Host: 172.17.52.3:8080 [17:09:00]Content-Length: 677 [17:09:00]Content-Type: application/json [17:09:00] [17:09:00]POST finish read [17:09:00]Found Content-Length = 677 [17:09:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210444", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:00]execute_script... [17: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)210444", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:00]POST & json_proto [17:09:00]process_json_proto [17:09:00]json parsed OK: [17:09:00]protocol is kg_v1.0 [17:09:00]action value=close_receipt [17:09:00]process_action close_receipt [17:09:00]cmd_close_receipt [17:09:00]MH_GetDate [17:09:00]Write to MH i2c: F0 00 00 38 39 60 [17:09:00]Write i2c OK [17:09:00]MH_I2C_Read... [17:09:00]Read from MH i2c: F0 [17:09:00]MH_I2C_Read... [17:09:00]Read from MH i2c: F0 09 00 [17:09:00]MH_I2C_Read... [17:09:00]Read from MH i2c: F0 09 00 38 39 00 B6 2D 19 67 D7 68 A5 64 14 [17:09:00]GetLastDocTimeStamp 1729702626 [17:09:00]current date 1729703350 [17:09:00]FM_GetShiftState [17:09:00]SAM_PROTO_GetShiftState [17:09:00]wFMCommunicate request_size=4 [17:09:00]MH_SAM_APDU [17:09:00]CAPDU: 80 13 01 00 [17:09:00]Write to MH i2c: E2 08 00 39 39 80 13 01 00 00 00 00 00 EF [17:09:00]Write i2c OK [17:09:00]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 39 39 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 5E [17:09:00]RAPDU: 09 00 01 A9 3B 18 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]opened in 1729641385 [17:09:00]opened+sec_in_day 1729727785 [17:09:00]quantity*price = 30038 [17:09:00]sum+1 = 30039 [17:09:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 70 23.10.2024 17:09 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68447 ФПД: 22651325660922 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170910&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68447&fm=22651325660922&tin=02508201610067®Number=0000000000091756&sum=30000 [17:09:01]StoreToDocumentArchive [17:09:01]shift 507 fd 68447 [17:09:01]save to /storage/0507/doc_00068447 [17:09:01]save last doc name /storage/0507/doc_00068447 to /storage/kkm_last_doc_name [17:09:01]save OK [17:09:01]Clear old archive folders... [17:09:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:09:01]tlvbuf is B6DF74E0 [17:09:01]SAM_PROTO_ClearQueue [17:09:01]wFMCommunicate request_size=4 [17:09:01]MH_SAM_APDU [17:09:01]CAPDU: 80 09 00 00 [17:09:01]Write to MH i2c: E2 08 00 46 39 80 09 00 00 00 00 00 00 F1 [17:09:01]Write i2c OK [17:09:01]MH_I2C_Read... [17:09:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:01]Read from MH i2c: E2 [17:09:01]MH_I2C_Read... [17:09:01]Read from MH i2c: E2 03 00 [17:09:01]MH_I2C_Read... [17:09:01]Read from MH i2c: E2 03 00 46 39 00 90 00 F3 [17:09:01]RAPDU: 90 00 [17:09:01]wFMCommunicate OK [17:09:01]SAM_PROTO_ClearQueue done [17:09:01]KKMCreateOFDPacket [17:09:01]OFDProtocolAddRootSTLVToBuf [17:09:01]FM_MakeSignedData [17:09:01]FM_MakeSignedData [17:09:01]SAM_PROTO_SignData [17:09:01]wFMCommunicate request_size=4 [17:09:01]MH_SAM_APDU [17:09:01]CAPDU: 80 0D 01 02 [17:09:01]Write to MH i2c: E2 08 00 47 39 80 0D 01 02 00 00 00 00 F9 [17:09:01]Write i2c OK [17:09:01]MH_I2C_Read... [17:09:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:02]Read from MH i2c: E2 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 03 00 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 03 00 47 39 00 90 00 F4 [17:09:02]RAPDU: 90 00 [17:09:02]wFMCommunicate OK [17:09:02]wFMCommunicate request_size=255 [17:09:02]MH_SAM_APDU [17:09: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 32 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 46 00 00 00 F4 03 04 00 B6 2D 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 5F 0B 01 00 35 04 06 00 14 [17:09:02]Write to MH i2c: E2 02 01 48 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 46 00 00 00 F4 03 04 00 B6 2D 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 5F 0B 01 00 35 04 06 00 14 00 00 A1 [17:09:02]Write i2c OK [17:09:02]MH_I2C_Read... [17:09:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:02]Read from MH i2c: E2 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 03 00 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 03 00 48 39 00 90 00 F5 [17:09:02]RAPDU: 90 00 [17:09:02]wFMCommunicate OK [17:09:02]wFMCommunicate request_size=10 [17:09:02]MH_SAM_APDU [17:09:02]CAPDU: 80 0D 02 02 05 99 EC 38 3E FA [17:09:02]Write to MH i2c: E2 0D 00 49 39 80 0D 02 02 05 00 99 EC 38 3E FA 00 00 FB [17:09:02]Write i2c OK [17:09:02]MH_I2C_Read... [17:09:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:02]Read from MH i2c: E2 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 03 00 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 03 00 49 39 00 90 00 F6 [17:09:02]RAPDU: 90 00 [17:09:02]wFMCommunicate OK [17:09:02]wFMCommunicate request_size=4 [17:09:02]MH_SAM_APDU [17:09:02]CAPDU: 80 0D 03 02 [17:09:02]Write to MH i2c: E2 08 00 4A 39 80 0D 03 02 00 00 00 00 FE [17:09:02]Write i2c OK [17:09:02]MH_I2C_Read... [17:09:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:09:02]Read from MH i2c: E2 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 0B 00 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 0B 00 4A 39 00 09 EE FF F7 1C 53 22 EF 90 00 6C [17:09:02]RAPDU: 09 EE FF F7 1C 53 22 EF 90 00 [17:09:02]wFMCommunicate OK [17:09:02]SAM_PROTO_SignData done [17:09:02]FM_MakeSignedData done [17:09:02]CreateOFDProtocolMessage [17:09:02]wFMCommunicate request_size=4 [17:09:02]MH_SAM_APDU [17:09:02]CAPDU: 80 11 00 00 [17:09:02]Write to MH i2c: E2 08 00 4B 39 80 11 00 00 00 00 00 00 FE [17:09:02]Write i2c OK [17:09:02]MH_I2C_Read... [17:09:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:02]Read from MH i2c: E2 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 17 00 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 17 00 4B 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 52 [17:09:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [17:09:02]wFMCommunicate OK [17:09:02]CreateOFDProtocolMessage done [17:09:02]OFDSenderStorePacket 68447 [17:09:02]StoreOFDPacket docnum=68447 [17:09:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 BA C1 07 01 24 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 46 00 00 00 F4 03 04 00 B6 2D 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 5F 0B 01 00 35 04 06 00 14 99 EC 38 3E FA 09 EE FF F7 1C 53 22 EF [17:09:02]CheckFolder [17:09:02]dirname=/storage/ofd_packets [17:09:02]CheckFolder done [17:09:02]ProducePacketName [17:09:02]name=ofd_packets/00068447 [17:09:02]NVStorageSaveData ofd_packets/00068447 [17:09:02]File name is /storage/ofd_packets/00068447 [17:09:02]Write 301 bytes [17:09:02]NVStorageSaveData done [17:09:02]OFDSenderStorePacket done [17:09:02]KKMCreateOFDPacket done [17:09:02]NVStorageSaveData kkm_last_timestamp [17:09:02]File name is /storage/kkm_last_timestamp [17:09:02]OFD Sender: Processing packet 68447 [packets to send 8, broken 7] [17:09:02]ProducePacketName [17:09:02]name=ofd_packets/00068447 [17:09:02]OFD Sender: To server: pG, [17:09:02]CommunicateWithHost lk.salyk.kg:30040 [17:09:02]ConnectInit lk.salyk.kg [17:09:02]Write 4 bytes [17:09:02]NVStorageSaveData done [17:09:02]ExternCall_PrintAddStr [17:09:02]wPrintStart [17:09:02]Write to MH i2c: 01 00 00 4C 39 85 [17:09:02]Write i2c OK [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: 01 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: 01 07 00 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: 01 07 00 4C 39 00 04 00 00 00 FF 0F 9E [17:09:02]RasterBufferAndPrint [17:09:02]line Счет N : (1)210444 [17:09:02]line ИНН: 02508201610067 [17:09:02]line Контрольно-Кассовый Чек [17:09:02]line ПРОДАЖА [17:09:02]line ТРК (МРК, ГНК) : 11 [17:09:02]line Товар: 2710124130 [17:09:02]line Аи-92-К-2 [17:09:02]line 4.490 * 66.90 [17:09:02]line = 300.38 [17:09:02]line НДС 12% НСП 1% [17:09:02]line > о реализуемом товаре [17:09:02]line ОКРУГЛЕНИЕ: -0.38 [17:09:02]line ИТОГО: 300.00 [17:09:02]line Внесено: 300.00 [17:09:02]line СДАЧА: 0.00 [17:09:02]line НСП 1% : 2.66 [17:09:02]line НДС 12% : 31.90 [17:09:02]line Наличными: 300.00 [17:09:02]line Безнал.: 0.00 [17:09:02]line Место: АЗС № 147 "Партнер Нефть" [17:09:02]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [17:09:02]line СНО: Общий режим [17:09:02]line Чек 70 23.10.2024 17:09 [17:09:02]line Смена: 507 ФФД: 1.0 [17:09:02]line ЗНМ: 0300000094 [17:09:02]line РНМ: 0000000000091756 [17:09:02]line Версия ККМ: 001 [17:09:02]line ФМ: 0000000000871809 [17:09:02]line ФД: 68447 [17:09:02]line ФПД: 22651325660922 [17:09:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170910&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68447&fm=22651325660922&tin=02508201610067®Number=0000000000091756&sum=30000 [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 31 38 30 39 0F 01 00 00 BA C1 07 01 24 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 46 00 00 00 F4 03 04 00 B6 2D 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 5F 0B 01 00 35 04 06 00 14 99 EC 38 3E FA 09 EE FF F7 1C 53 22 EF [17:09:02]written 0, free lines is 4095 [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 31 38 30 39 4F 00 00 00 B7 81 47 00 2F 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 31 38 30 39 10 04 04 00 5F 0B 01 00 F4 03 04 00 AA D3 18 67 B6 04 01 00 00 32 DD E0 6D 97 1F CA 2F [17:09:02]CommunicateWithHost err = 0 [17:09:02]CheckOFDResponse [17:09:02]1017 (14) - 77093643461234 [17:09:02]1041 (16) - 0000000000871809 [17:09:02]1040 (4) - 68447 [17:09:02]1012 (4) - 23.10.2024 10:44 [17:09:02]1206 (1) - 0 [17:09:02]OFD Sender: Remove packet 68447 [17:09:02]ProducePacketName [17:09:02]name=ofd_packets/00068447 [17:09:02]NVStorageDeleteData [17:09:03]Write to MH i2c: 01 00 00 76 39 AF [17:09:03]Write i2c OK [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: 01 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: 01 07 00 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: 01 07 00 76 39 00 04 00 00 00 AB 0C 71 [17:09:03]RasterBufferAndPrint [17:09:03]line [17:09:03]line [17:09:03]line [17:09:03]line [17:09:03]line [17:09:03]written 0, free lines is 3247 [17:09:03]MH_Cut [17:09:03]Write to MH i2c: D1 01 00 7D 39 01 88 [17:09:03]Write i2c OK [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: D1 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: D1 01 00 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: D1 01 00 7D 39 00 87 [17:09:03]Write to MH i2c: 01 00 00 7E 39 B7 [17:09:03]Write i2c OK [17:09:03]MH_I2C_Read... [17:09:03]OFD Sender: No OFD packet to send [17:09:04]*** Cut start [17:09:04]*** Partial cut [17:09:04]*** CUTSNS_PIN = 1 [17:09:04]*** CUTSNS_PIN = 0 [17:09:04]*** Brake cut motor [17:09:04]Read from MH i2c: 01 [17:09:04]MH_I2C_Read... [17:09:04]*** Stop cut motor [17:09:04]*** Cut end [17:09:04]Read from MH i2c: 01 07 00 [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: 01 07 00 7E 39 00 04 00 00 00 FF 0F D0 [17:09:04]process_action close_receipt done [17:09:04]requested_data is exist [17:09:04]produce_requested_data [17:09:04]requested_item fm.sn is exist - process it [17:09:04]wFMCommunicate request_size=4 [17:09:04]MH_SAM_APDU [17:09:04]CAPDU: 80 11 00 00 [17:09:04]Write to MH i2c: E2 08 00 7F 39 80 11 00 00 00 00 00 00 32 [17:09:04]Write i2c OK [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: E2 [17:09:04]MH_I2C_Read... [17:09:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:04]Read from MH i2c: E2 17 00 [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: E2 17 00 7F 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 86 [17:09:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [17:09:04]wFMCommunicate OK [17:09:04]requested_item fd.num is exist - process it [17:09:04]SAM_PROTO_GetFieldsCounters [17:09:04]wFMCommunicate request_size=4 [17:09:04]MH_SAM_APDU [17:09:04]CAPDU: 80 13 00 00 [17:09:04]Write to MH i2c: E2 08 00 80 39 80 13 00 00 00 00 00 00 35 [17:09:04]Write i2c OK [17:09:04]MH_I2C_Read... [17:09:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:09:04]Read from MH i2c: E2 [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: E2 62 00 [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: E2 62 00 80 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 5F 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [17: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 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 5F 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:09:04]wFMCommunicate OK [17:09:04]SAM_PROTO_GetFieldsCounters done [17:09:04]requested_item shift.num is exist - process it [17:09:04]requested_item shift.opened is exist - process it [17:09:04]req_shift_opened [17:09:04]FM_GetShiftState [17:09:04]SAM_PROTO_GetShiftState [17:09:04]wFMCommunicate request_size=4 [17:09:04]MH_SAM_APDU [17:09:04]CAPDU: 80 13 01 00 [17:09:04]Write to MH i2c: E2 08 00 81 39 80 13 01 00 00 00 00 00 37 [17:09:04]Write i2c OK [17:09:04]MH_I2C_Read... [17:09:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:04]Read from MH i2c: E2 [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: E2 0E 00 [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: E2 0E 00 81 39 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 A6 [17:09:04]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [17:09:04]wFMCommunicate OK [17:09:04]SAM_PROTO_GetShiftState done [17:09:04]FM_GetShiftState done [17:09:04]req_shift_opened done [17:09:04]requested_item shift.open_date is exist - process it [17:09:04]req_shift_open_date [17:09:04]req_shift_open_date done [17:09:04]produce_requested_data done [17:09:04]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68447,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [17:09:04]process_action_free close_receipt [17:09:04]json_value_free [17:09:04]json_value_free done [17:09:04]process_json_proto returns [17:09:04]Send response to host [17:09:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68447,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [17:09:04]free response buf [17:09:04]execute_script done [17:09:04]execute_script returns [17:09:04]free content buf [17:09:04]Sock 7.Close socket [17:09:04]Sock 7.Thread stoped [17:09:08]OFD Sender: No OFD packet to send [17:09:13]OFD Sender: No OFD packet to send [17:09:18]OFD Sender: No OFD packet to send [17:09:23]OFD Sender: No OFD packet to send [17:09:28]OFD Sender: No OFD packet to send [17:09:33]OFD Sender: No OFD packet to send [17:09:38]OFD Sender: No OFD packet to send [17:09:43]OFD Sender: No OFD packet to send [17:09:48]OFD Sender: No OFD packet to send [17:09:53]OFD Sender: No OFD packet to send [17:09: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: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: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: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:14:03]OFD Sender: No OFD packet to send [17:14:08]OFD Sender: No OFD packet to send [17:14:13]OFD Sender: No OFD packet to send [17:14:18]OFD Sender: No OFD packet to send [17:14:23]OFD Sender: No OFD packet to send [17:14:28]OFD Sender: No OFD packet to send [17:14:33]OFD Sender: No OFD packet to send [17:14:38]OFD Sender: No OFD packet to send [17:14:43]OFD Sender: No OFD packet to send [17:14:48]OFD Sender: No OFD packet to send [17:14:53]OFD Sender: No OFD packet to send [17:14:58]OFD Sender: No OFD packet to send [17:15:03]OFD Sender: No OFD packet to send [17:15:08]OFD Sender: No OFD packet to send [17:15:13]OFD Sender: No OFD packet to send [17:15:18]OFD Sender: No OFD packet to send [17:15:23]OFD Sender: No OFD packet to send [17:15:28]OFD Sender: No OFD packet to send [17:15: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: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]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:03]OFD Sender: No OFD packet to send [17:18:08]OFD Sender: No OFD packet to send [17:18:13]OFD Sender: No OFD packet to send [17:18:18]OFD Sender: No OFD packet to send [17:18:23]OFD Sender: No OFD packet to send [17:18:28]OFD Sender: No OFD packet to send [17:18:32]accept exits with 9 [17:18:32]New connection [17:18:32]New thread 3067133284 created [17:18:32]Thread 3067276644 joined [17:18:32]Waiting for new connection... [17:18:32] Sock 9.Parse request [17:18:32]Sock 9.Check first char [17:18:32]Sock 9.First char is OK [17:18:32]request: POST /json_proto HTTP/1.0 [17:18:32]Method: POST [17:18:32]URL: /json_proto [17:18:32]Method is POST - this is cgi request [17:18:32]url: /json_proto [17:18:32]query_string will be loaded in cgi processing [17:18:32]execute_cgi json_proto POST (null) [17:18:32]execute_cgi path=json_proto method=POST [17:18:32]POST find Content-Length [17:18:32]Host: 172.17.52.3:8080 [17:18:32]Content-Length: 677 [17:18:32]Content-Type: application/json [17:18:32] [17:18:32]POST finish read [17:18:32]Found Content-Length = 677 [17:18:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210445", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:18:32]execute_script... [17: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)210445", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:18:32]POST & json_proto [17:18:32]process_json_proto [17:18:32]json parsed OK: [17:18:32]protocol is kg_v1.0 [17:18:32]action value=close_receipt [17:18:32]process_action close_receipt [17:18:32]cmd_close_receipt [17:18:32]MH_GetDate [17:18:32]Write to MH i2c: F0 00 00 82 39 AA [17:18:32]Write i2c OK [17:18:32]MH_I2C_Read... [17:18:32]Read from MH i2c: F0 [17:18:32]MH_I2C_Read... [17:18:32]Read from MH i2c: F0 09 00 [17:18:32]MH_I2C_Read... [17:18:32]Read from MH i2c: F0 09 00 82 39 00 F2 2F 19 67 D7 68 A5 64 9C [17:18:32]GetLastDocTimeStamp 1729703350 [17:18:32]current date 1729703922 [17:18:32]FM_GetShiftState [17:18:32]SAM_PROTO_GetShiftState [17:18:32]wFMCommunicate request_size=4 [17:18:32]MH_SAM_APDU [17:18:32]CAPDU: 80 13 01 00 [17:18:32]Write to MH i2c: E2 08 00 83 39 80 13 01 00 00 00 00 00 39 [17:18:32]Write i2c OK [17:18:32]MH_I2C_Read... [17:18:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:32]Read from MH i2c: E2 [17:18:32]MH_I2C_Read... [17:18:32]Read from MH i2c: E2 0E 00 [17:18:32]MH_I2C_Read... [17:18:32]Read from MH i2c: E2 0E 00 83 39 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 A8 [17:18:32]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [17:18:32]wFMCommunicate OK [17:18:32]SAM_PROTO_GetShiftState done [17:18:32]FM_GetShiftState done [17:18:32]opened in 1729641385 [17:18:32]opened+sec_in_day 1729727785 [17:18:32]quantity*price = 40006 [17:18:32]sum+1 = 40007 [17:18:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 71 23.10.2024 17:18 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68448 ФПД: 223329994252472 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T171842&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68448&fm=223329994252472&tin=02508201610067®Number=0000000000091756&sum=40000 [17:18:33]StoreToDocumentArchive [17:18:33]shift 507 fd 68448 [17:18:33]save to /storage/0507/doc_00068448 [17:18:33]save last doc name /storage/0507/doc_00068448 to /storage/kkm_last_doc_name [17:18:33]save OK [17:18:33]Clear old archive folders... [17:18:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:18:33]tlvbuf is 020B3D20 [17:18:33]SAM_PROTO_ClearQueue [17:18:33]wFMCommunicate request_size=4 [17:18:33]MH_SAM_APDU [17:18:33]CAPDU: 80 09 00 00 [17:18:33]Write to MH i2c: E2 08 00 90 39 80 09 00 00 00 00 00 00 3B [17:18:33]Write i2c OK [17:18:33]MH_I2C_Read... [17:18:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:18:33]Read from MH i2c: E2 [17:18:33]MH_I2C_Read... [17:18:33]Read from MH i2c: E2 03 00 [17:18:33]MH_I2C_Read... [17:18:33]Read from MH i2c: E2 03 00 90 39 00 90 00 3D [17:18:33]RAPDU: 90 00 [17:18:33]wFMCommunicate OK [17:18:33]SAM_PROTO_ClearQueue done [17:18:33]KKMCreateOFDPacket [17:18:33]OFDProtocolAddRootSTLVToBuf [17:18:33]FM_MakeSignedData [17:18:33]FM_MakeSignedData [17:18:33]SAM_PROTO_SignData [17:18:33]wFMCommunicate request_size=4 [17:18:33]MH_SAM_APDU [17:18:33]CAPDU: 80 0D 01 02 [17:18:33]Write to MH i2c: E2 08 00 91 39 80 0D 01 02 00 00 00 00 43 [17:18:33]Write i2c OK [17:18:33]MH_I2C_Read... [17:18:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:18:33]Read from MH i2c: E2 [17:18:33]MH_I2C_Read... [17:18:33]Read from MH i2c: E2 03 00 [17:18:33]MH_I2C_Read... [17:18:33]Read from MH i2c: E2 03 00 91 39 00 90 00 3E [17:18:33]RAPDU: 90 00 [17:18:33]wFMCommunicate OK [17:18:33]wFMCommunicate request_size=255 [17:18:33]MH_SAM_APDU [17: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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 F2 2F 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 60 0B 01 00 35 04 06 00 CB [17:18:33]Write to MH i2c: E2 02 01 92 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 F2 2F 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 60 0B 01 00 35 04 06 00 CB 00 00 BD [17:18:33]Write i2c OK [17:18:33]MH_I2C_Read... [17:18:33]OFD Sender: No OFD packet to send [17:18:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:34]Read from MH i2c: E2 [17:18:34]MH_I2C_Read... [17:18:34]Read from MH i2c: E2 03 00 [17:18:34]MH_I2C_Read... [17:18:34]Read from MH i2c: E2 03 00 92 39 00 90 00 3F [17:18:34]RAPDU: 90 00 [17:18:34]wFMCommunicate OK [17:18:34]wFMCommunicate request_size=10 [17:18:34]MH_SAM_APDU [17:18:34]CAPDU: 80 0D 02 02 05 1E 10 F9 A0 B8 [17:18:34]Write to MH i2c: E2 0D 00 93 39 80 0D 02 02 05 00 1E 10 F9 A0 B8 00 00 CF [17:18:34]Write i2c OK [17:18:34]MH_I2C_Read... [17:18:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:34]Read from MH i2c: E2 [17:18:34]MH_I2C_Read... [17:18:34]Read from MH i2c: E2 03 00 [17:18:34]MH_I2C_Read... [17:18:34]Read from MH i2c: E2 03 00 93 39 00 90 00 40 [17:18:34]RAPDU: 90 00 [17:18:34]wFMCommunicate OK [17:18:34]wFMCommunicate request_size=4 [17:18:34]MH_SAM_APDU [17:18:34]CAPDU: 80 0D 03 02 [17:18:34]Write to MH i2c: E2 08 00 94 39 80 0D 03 02 00 00 00 00 48 [17:18:34]Write i2c OK [17:18:34]MH_I2C_Read... [17:18:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:18:34]Read from MH i2c: E2 [17:18:34]MH_I2C_Read... [17:18:34]Read from MH i2c: E2 0B 00 [17:18:34]MH_I2C_Read... [17:18:34]Read from MH i2c: E2 0B 00 94 39 00 A3 13 AF D3 3C E1 C1 2F 90 00 8E [17:18:34]RAPDU: A3 13 AF D3 3C E1 C1 2F 90 00 [17:18:34]wFMCommunicate OK [17:18:34]SAM_PROTO_SignData done [17:18:34]FM_MakeSignedData done [17:18:34]CreateOFDProtocolMessage [17:18:34]wFMCommunicate request_size=4 [17:18:34]MH_SAM_APDU [17:18:34]CAPDU: 80 11 00 00 [17:18:34]Write to MH i2c: E2 08 00 95 39 80 11 00 00 00 00 00 00 48 [17:18:34]Write i2c OK [17:18:34]MH_I2C_Read... [17:18:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:34]Read from MH i2c: E2 [17:18:34]MH_I2C_Read... [17:18:34]Read from MH i2c: E2 17 00 [17:18:34]MH_I2C_Read... [17:18:34]Read from MH i2c: E2 17 00 95 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 9C [17:18:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [17:18:34]wFMCommunicate OK [17:18:34]CreateOFDProtocolMessage done [17:18:34]OFDSenderStorePacket 68448 [17:18:34]StoreOFDPacket docnum=68448 [17:18:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 CD 83 07 01 07 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 F2 2F 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 60 0B 01 00 35 04 06 00 CB 1E 10 F9 A0 B8 A3 13 AF D3 3C E1 C1 2F [17:18:34]CheckFolder [17:18:34]dirname=/storage/ofd_packets [17:18:34]CheckFolder done [17:18:34]ProducePacketName [17:18:34]name=ofd_packets/00068448 [17:18:34]NVStorageSaveData ofd_packets/00068448 [17:18:34]File name is /storage/ofd_packets/00068448 [17:18:34]Write 301 bytes [17:18:34]NVStorageSaveData done [17:18:34]OFDSenderStorePacket done [17:18:34]KKMCreateOFDPacket done [17:18:34]NVStorageSaveData kkm_last_timestamp [17:18:34]File name is /storage/kkm_last_timestamp [17:18:34]Write 4 bytes [17:18:34]NVStorageSaveData done [17:18:34]ExternCall_PrintAddStr [17:18:34]wPrintStart [17:18:34]Write to MH i2c: 01 00 00 96 39 CF [17:18:34]Write i2c OK [17:18:34]MH_I2C_Read... [17:18:34]Read from MH i2c: 01 [17:18:34]MH_I2C_Read... [17:18:34]Read from MH i2c: 01 07 00 [17:18:34]MH_I2C_Read... [17:18:34]Read from MH i2c: 01 07 00 96 39 00 04 00 00 00 FF 0F E8 [17:18:34]RasterBufferAndPrint [17:18:34]line Счет N : (1)210445 [17:18:34]line ИНН: 02508201610067 [17:18:34]line Контрольно-Кассовый Чек [17:18:34]line ПРОДАЖА [17:18:34]line ТРК (МРК, ГНК) : 11 [17:18:34]line Товар: 2710124130 [17:18:34]line Аи-92-К-2 [17:18:34]line 5.980 * 66.90 [17:18:34]line = 400.06 [17:18:34]line НДС 12% НСП 1% [17:18:34]line > о реализуемом товаре [17:18:34]line ОКРУГЛЕНИЕ: -0.06 [17:18:34]line ИТОГО: 400.00 [17:18:34]line Внесено: 400.00 [17:18:34]line СДАЧА: 0.00 [17:18:34]line НСП 1% : 3.54 [17:18:34]line НДС 12% : 42.48 [17:18:34]line Наличными: 400.00 [17:18:34]line Безнал.: 0.00 [17:18:34]line Место: АЗС № 147 "Партнер Нефть" [17:18:34]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [17:18:34]line СНО: Общий режим [17:18:34]line Чек 71 23.10.2024 17:18 [17:18:34]line Смена: 507 ФФД: 1.0 [17:18:34]line ЗНМ: 0300000094 [17:18:34]line РНМ: 0000000000091756 [17:18:34]line Версия ККМ: 001 [17:18:34]line ФМ: 0000000000871809 [17:18:34]line ФД: 68448 [17:18:34]line ФПД: 223329994252472 [17:18:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T171842&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68448&fm=223329994252472&tin=02508201610067®Number=0000000000091756&sum=40000 [17:18:34]written 0, free lines is 4095 [17:18:34]OFD Sender: Processing packet 68448 [packets to send 8, broken 7] [17:18:34]ProducePacketName [17:18:34]name=ofd_packets/00068448 [17:18:34]OFD Sender: To server: pG, [17:18:34]CommunicateWithHost lk.salyk.kg:30040 [17:18:34]ConnectInit lk.salyk.kg [17:18:34]Connected sock=10 [17:18:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 CD 83 07 01 07 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 F2 2F 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 60 0B 01 00 35 04 06 00 CB 1E 10 F9 A0 B8 A3 13 AF D3 3C E1 C1 2F [17:18:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 8E F3 47 00 57 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 60 0B 01 00 F4 03 04 00 E6 D5 18 67 B6 04 01 00 00 D9 55 FA FC 7D 71 FA 77 [17:18:34]CommunicateWithHost err = 0 [17:18:34]CheckOFDResponse [17:18:34]1017 (14) - 77093643461234 [17:18:34]1041 (16) - 0000000000871809 [17:18:34]1040 (4) - 68448 [17:18:34]1012 (4) - 23.10.2024 10:54 [17:18:34]1206 (1) - 0 [17:18:34]OFD Sender: Remove packet 68448 [17:18:34]ProducePacketName [17:18:34]name=ofd_packets/00068448 [17:18:34]NVStorageDeleteData [17:18:34]Write to MH i2c: 01 00 00 C0 39 F9 [17:18:34]Write i2c OK [17:18:34]MH_I2C_Read... [17:18:34]Read from MH i2c: 01 [17:18:34]MH_I2C_Read... [17:18:34]Read from MH i2c: 01 07 00 [17:18:34]MH_I2C_Read... [17:18:34]Read from MH i2c: 01 07 00 C0 39 00 04 00 00 00 B9 0C C9 [17:18:34]RasterBufferAndPrint [17:18:34]line [17:18:34]line [17:18:34]line [17:18:34]line [17:18:34]line [17:18:34]written 0, free lines is 3262 [17:18:34]MH_Cut [17:18:34]Write to MH i2c: D1 01 00 C7 39 01 D2 [17:18:34]Write i2c OK [17:18:34]MH_I2C_Read... [17:18:34]Read from MH i2c: D1 [17:18:34]MH_I2C_Read... [17:18:34]Read from MH i2c: D1 01 00 [17:18:34]MH_I2C_Read... [17:18:34]Read from MH i2c: D1 01 00 C7 39 00 D1 [17:18:34]Write to MH i2c: 01 00 00 C8 39 01 [17:18:34]Write i2c OK [17:18:34]MH_I2C_Read... [17:18:35]OFD Sender: No OFD packet to send [17:18:35]*** Cut start [17:18:35]*** Partial cut [17:18:35]*** CUTSNS_PIN = 1 [17:18:35]*** CUTSNS_PIN = 0 [17:18:35]*** Brake cut motor [17:18:36]Read from MH i2c: 01 [17:18:36]MH_I2C_Read... [17:18:36]*** Stop cut motor [17:18:36]*** Cut end [17:18:36]Read from MH i2c: 01 07 00 [17:18:36]MH_I2C_Read... [17:18:36]Read from MH i2c: 01 07 00 C8 39 00 04 00 00 00 FF 0F 1A [17:18:36]process_action close_receipt done [17:18:36]requested_data is exist [17:18:36]produce_requested_data [17:18:36]requested_item fm.sn is exist - process it [17:18:36]wFMCommunicate request_size=4 [17:18:36]MH_SAM_APDU [17:18:36]CAPDU: 80 11 00 00 [17:18:36]Write to MH i2c: E2 08 00 C9 39 80 11 00 00 00 00 00 00 7C [17:18:36]Write i2c OK [17:18:36]MH_I2C_Read... [17:18:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:36]Read from MH i2c: E2 [17:18:36]MH_I2C_Read... [17:18:36]Read from MH i2c: E2 17 00 [17:18:36]MH_I2C_Read... [17:18:36]Read from MH i2c: E2 17 00 C9 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 D0 [17:18:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [17:18:36]wFMCommunicate OK [17:18:36]requested_item fd.num is exist - process it [17:18:36]SAM_PROTO_GetFieldsCounters [17:18:36]wFMCommunicate request_size=4 [17:18:36]MH_SAM_APDU [17:18:36]CAPDU: 80 13 00 00 [17:18:36]Write to MH i2c: E2 08 00 CA 39 80 13 00 00 00 00 00 00 7F [17:18:36]Write i2c OK [17:18:36]MH_I2C_Read... [17:18:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:18:36]Read from MH i2c: E2 [17:18:36]MH_I2C_Read... [17:18:36]Read from MH i2c: E2 62 00 [17:18:36]MH_I2C_Read... [17:18:36]Read from MH i2c: E2 62 00 CA 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 60 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [17: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 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 60 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:18:36]wFMCommunicate OK [17:18:36]SAM_PROTO_GetFieldsCounters done [17:18:36]requested_item shift.num is exist - process it [17:18:36]requested_item shift.opened is exist - process it [17:18:36]req_shift_opened [17:18:36]FM_GetShiftState [17:18:36]SAM_PROTO_GetShiftState [17:18:36]wFMCommunicate request_size=4 [17:18:36]MH_SAM_APDU [17:18:36]CAPDU: 80 13 01 00 [17:18:36]Write to MH i2c: E2 08 00 CB 39 80 13 01 00 00 00 00 00 81 [17:18:36]Write i2c OK [17:18:36]MH_I2C_Read... [17:18:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:36]Read from MH i2c: E2 [17:18:36]MH_I2C_Read... [17:18:36]Read from MH i2c: E2 0E 00 [17:18:36]MH_I2C_Read... [17:18:36]Read from MH i2c: E2 0E 00 CB 39 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 F0 [17:18:36]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [17:18:36]wFMCommunicate OK [17:18:36]SAM_PROTO_GetShiftState done [17:18:36]FM_GetShiftState done [17:18:36]req_shift_opened done [17:18:36]requested_item shift.open_date is exist - process it [17:18:36]req_shift_open_date [17:18:36]req_shift_open_date done [17:18:36]produce_requested_data done [17:18:36]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68448,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [17:18:36]process_action_free close_receipt [17:18:36]json_value_free [17:18:36]json_value_free done [17:18:36]process_json_proto returns [17:18:36]Send response to host [17:18:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68448,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [17:18:36]free response buf [17:18:36]execute_script done [17:18:36]execute_script returns [17:18:36]free content buf [17:18:36]Sock 9.Close socket [17:18:36]Sock 9.Thread stoped [17:18:40]OFD Sender: No OFD packet to send [17:18:45]OFD Sender: No OFD packet to send [17:18:50]OFD Sender: No OFD packet to send [17:18:55]OFD Sender: No OFD packet to send [17:19:00]OFD Sender: No OFD packet to send [17:19:05]OFD Sender: No OFD packet to send [17:19:10]OFD Sender: No OFD packet to send [17:19:15]OFD Sender: No OFD packet to send [17:19:20]OFD Sender: No OFD packet to send [17:19:25]OFD Sender: No OFD packet to send [17:19:30]OFD Sender: No OFD packet to send [17:19:35]OFD Sender: No OFD packet to send [17:19:40]OFD Sender: No OFD packet to send [17:19:45]OFD Sender: No OFD packet to send [17:19:50]OFD Sender: No OFD packet to send [17:19:55]OFD Sender: No OFD packet to send [17:20:00]OFD Sender: No OFD packet to send [17:20:05]OFD Sender: No OFD packet to send [17:20:10]OFD Sender: No OFD packet to send [17:20:15]OFD Sender: No OFD packet to send [17:20:20]OFD Sender: No OFD packet to send [17:20:24]accept exits with 7 [17:20:24]New connection [17:20:24]New thread 3067276644 created [17:20:24]Thread 3067133284 joined [17:20:24]Waiting for new connection... [17:20:24] Sock 7.Parse request [17:20:24]Sock 7.Check first char [17:20:24]Sock 7.First char is OK [17:20:24]request: POST /json_proto HTTP/1.0 [17:20:24]Method: POST [17:20:24]URL: /json_proto [17:20:24]Method is POST - this is cgi request [17:20:24]url: /json_proto [17:20:24]query_string will be loaded in cgi processing [17:20:24]execute_cgi json_proto POST (null) [17:20:24]execute_cgi path=json_proto method=POST [17:20:24]POST find Content-Length [17:20:24]Host: 172.17.52.3:8080 [17:20:24]Content-Length: 677 [17:20:24]Content-Type: application/json [17:20:24] [17:20:24]POST finish read [17:20:24]Found Content-Length = 677 [17:20:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 6.730, "sum" : 450.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:24]execute_script... [17:20: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)210446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 6.730, "sum" : 450.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:24]POST & json_proto [17:20:24]process_json_proto [17:20:24]json parsed OK: [17:20:24]protocol is kg_v1.0 [17:20:24]action value=close_receipt [17:20:24]process_action close_receipt [17:20:24]cmd_close_receipt [17:20:24]MH_GetDate [17:20:24]Write to MH i2c: F0 00 00 CC 39 F4 [17:20:24]Write i2c OK [17:20:24]MH_I2C_Read... [17:20:24]Read from MH i2c: F0 [17:20:24]MH_I2C_Read... [17:20:24]Read from MH i2c: F0 09 00 [17:20:24]MH_I2C_Read... [17:20:24]Read from MH i2c: F0 09 00 CC 39 00 62 30 19 67 D7 68 A5 64 57 [17:20:24]GetLastDocTimeStamp 1729703922 [17:20:24]current date 1729704034 [17:20:24]FM_GetShiftState [17:20:24]SAM_PROTO_GetShiftState [17:20:24]wFMCommunicate request_size=4 [17:20:24]MH_SAM_APDU [17:20:24]CAPDU: 80 13 01 00 [17:20:24]Write to MH i2c: E2 08 00 CD 39 80 13 01 00 00 00 00 00 83 [17:20:24]Write i2c OK [17:20:24]MH_I2C_Read... [17:20:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:24]Read from MH i2c: E2 [17:20:24]MH_I2C_Read... [17:20:24]Read from MH i2c: E2 0E 00 [17:20:24]MH_I2C_Read... [17:20:24]Read from MH i2c: E2 0E 00 CD 39 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 F2 [17:20:24]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [17:20:24]wFMCommunicate OK [17:20:24]SAM_PROTO_GetShiftState done [17:20:24]FM_GetShiftState done [17:20:24]opened in 1729641385 [17:20:24]opened+sec_in_day 1729727785 [17:20:24]quantity*price = 45023 [17:20:24]sum+1 = 45025 [17:20:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.81 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 72 23.10.2024 17:20 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68449 ФПД: 197482985805201 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172034&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68449&fm=197482985805201&tin=02508201610067®Number=0000000000091756&sum=45000 [17:20:25]StoreToDocumentArchive [17:20:25]shift 507 fd 68449 [17:20:25]save to /storage/0507/doc_00068449 [17:20:25]save last doc name /storage/0507/doc_00068449 to /storage/kkm_last_doc_name [17:20:25]save OK [17:20:25]Clear old archive folders... [17:20:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:20:25]tlvbuf is 020B3FE0 [17:20:25]SAM_PROTO_ClearQueue [17:20:25]wFMCommunicate request_size=4 [17:20:25]MH_SAM_APDU [17:20:25]CAPDU: 80 09 00 00 [17:20:25]Write to MH i2c: E2 08 00 DA 39 80 09 00 00 00 00 00 00 85 [17:20:25]Write i2c OK [17:20:25]MH_I2C_Read... [17:20:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:20:25]Read from MH i2c: E2 [17:20:25]MH_I2C_Read... [17:20:25]Read from MH i2c: E2 03 00 [17:20:25]MH_I2C_Read... [17:20:25]Read from MH i2c: E2 03 00 DA 39 00 90 00 87 [17:20:25]RAPDU: 90 00 [17:20:25]wFMCommunicate OK [17:20:25]SAM_PROTO_ClearQueue done [17:20:25]KKMCreateOFDPacket [17:20:25]OFDProtocolAddRootSTLVToBuf [17:20:25]FM_MakeSignedData [17:20:25]FM_MakeSignedData [17:20:25]SAM_PROTO_SignData [17:20:25]wFMCommunicate request_size=4 [17:20:25]MH_SAM_APDU [17:20:25]CAPDU: 80 0D 01 02 [17:20:25]Write to MH i2c: E2 08 00 DB 39 80 0D 01 02 00 00 00 00 8D [17:20:25]Write i2c OK [17:20:25]MH_I2C_Read... [17:20:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:20:25]Read from MH i2c: E2 [17:20:25]MH_I2C_Read... [17:20:25]Read from MH i2c: E2 03 00 [17:20:25]MH_I2C_Read... [17:20:25]Read from MH i2c: E2 03 00 DB 39 00 90 00 88 [17:20:25]RAPDU: 90 00 [17:20:25]wFMCommunicate OK [17:20:25]wFMCommunicate request_size=255 [17:20:25]MH_SAM_APDU [17:20: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 32 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 62 30 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 61 0B 01 00 35 04 06 00 B3 [17:20:25]Write to MH i2c: E2 02 01 DC 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 62 30 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 61 0B 01 00 35 04 06 00 B3 00 00 79 [17:20:25]Write i2c OK [17:20:25]MH_I2C_Read... [17:20:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:25]Read from MH i2c: E2 [17:20:25]MH_I2C_Read... [17:20:25]Read from MH i2c: E2 03 00 [17:20:25]MH_I2C_Read... [17:20:25]Read from MH i2c: E2 03 00 DC 39 00 90 00 89 [17:20:25]RAPDU: 90 00 [17:20:25]wFMCommunicate OK [17:20:25]wFMCommunicate request_size=10 [17:20:25]MH_SAM_APDU [17:20:25]CAPDU: 80 0D 02 02 05 9C 17 37 D5 91 [17:20:25]Write to MH i2c: E2 0D 00 DD 39 80 0D 02 02 05 00 9C 17 37 D5 91 00 00 EA [17:20:25]Write i2c OK [17:20:25]MH_I2C_Read... [17:20:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:25]Read from MH i2c: E2 [17:20:25]MH_I2C_Read... [17:20:25]Read from MH i2c: E2 03 00 [17:20:25]MH_I2C_Read... [17:20:25]Read from MH i2c: E2 03 00 DD 39 00 90 00 8A [17:20:25]RAPDU: 90 00 [17:20:25]wFMCommunicate OK [17:20:25]wFMCommunicate request_size=4 [17:20:25]MH_SAM_APDU [17:20:25]CAPDU: 80 0D 03 02 [17:20:25]Write to MH i2c: E2 08 00 DE 39 80 0D 03 02 00 00 00 00 92 [17:20:25]Write i2c OK [17:20:25]MH_I2C_Read... [17:20:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:20:26]Read from MH i2c: E2 [17:20:26]MH_I2C_Read... [17:20:26]Read from MH i2c: E2 0B 00 [17:20:26]MH_I2C_Read... [17:20:26]Read from MH i2c: E2 0B 00 DE 39 00 B2 D0 1F 5F E9 A5 23 9F 90 00 E3 [17:20:26]RAPDU: B2 D0 1F 5F E9 A5 23 9F 90 00 [17:20:26]wFMCommunicate OK [17:20:26]SAM_PROTO_SignData done [17:20:26]FM_MakeSignedData done [17:20:26]CreateOFDProtocolMessage [17:20:26]wFMCommunicate request_size=4 [17:20:26]MH_SAM_APDU [17:20:26]CAPDU: 80 11 00 00 [17:20:26]Write to MH i2c: E2 08 00 DF 39 80 11 00 00 00 00 00 00 92 [17:20:26]Write i2c OK [17:20:26]MH_I2C_Read... [17:20:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:26]Read from MH i2c: E2 [17:20:26]MH_I2C_Read... [17:20:26]Read from MH i2c: E2 17 00 [17:20:26]MH_I2C_Read... [17:20:26]Read from MH i2c: E2 17 00 DF 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 E6 [17:20:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [17:20:26]wFMCommunicate OK [17:20:26]CreateOFDProtocolMessage done [17:20:26]OFDSenderStorePacket 68449 [17:20:26]StoreOFDPacket docnum=68449 [17:20:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 34 3D 07 01 80 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 62 30 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 61 0B 01 00 35 04 06 00 B3 9C 17 37 D5 91 B2 D0 1F 5F E9 A5 23 9F [17:20:26]CheckFolder [17:20:26]dirname=/storage/ofd_packets [17:20:26]CheckFolder done [17:20:26]ProducePacketName [17:20:26]name=ofd_packets/00068449 [17:20:26]NVStorageSaveData ofd_packets/00068449 [17:20:26]File name is /storage/ofd_packets/00068449 [17:20:26]Write 301 bytes [17:20:26]NVStorageSaveData done [17:20:26]OFDSenderStorePacket done [17:20:26]KKMCreateOFDPacket done [17:20:26]NVStorageSaveData kkm_last_timestamp [17:20:26]File name is /storage/kkm_last_timestamp [17:20:26]Write 4 bytes [17:20:26]NVStorageSaveData done [17:20:26]ExternCall_PrintAddStr [17:20:26]wPrintStart [17:20:26]Write to MH i2c: 01 00 00 E0 39 19 [17:20:26]Write i2c OK [17:20:26]MH_I2C_Read... [17:20:26]Read from MH i2c: 01 [17:20:26]MH_I2C_Read... [17:20:26]Read from MH i2c: 01 07 00 [17:20:26]MH_I2C_Read... [17:20:26]Read from MH i2c: 01 07 00 E0 39 00 04 00 00 00 FF 0F 32 [17:20:26]RasterBufferAndPrint [17:20:26]line Счет N : (1)210446 [17:20:26]line ИНН: 02508201610067 [17:20:26]line Контрольно-Кассовый Чек [17:20:26]line ПРОДАЖА [17:20:26]line ТРК (МРК, ГНК) : 11 [17:20:26]line Товар: 2710124130 [17:20:26]line Аи-92-К-2 [17:20:26]line 6.730 * 66.90 [17:20:26]line = 450.24 [17:20:26]line НДС 12% НСП 1% [17:20:26]line > о реализуемом товаре [17:20:26]line ОКРУГЛЕНИЕ: -0.24 [17:20:26]line ИТОГО: 450.00 [17:20:26]line Внесено: 450.00 [17:20:26]line СДАЧА: 0.00 [17:20:26]line НСП 1% : 3.98 [17:20:26]line НДС 12% : 47.81 [17:20:26]line Наличными: 450.00 [17:20:26]line Безнал.: 0.00 [17:20:26]line Место: АЗС № 147 "Партнер Нефть" [17:20:26]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [17:20:26]line СНО: Общий режим [17:20:26]line Чек 72 23.10.2024 17:20 [17:20:26]line Смена: 507 ФФД: 1.0 [17:20:26]line ЗНМ: 0300000094 [17:20:26]line РНМ: 0000000000091756 [17:20:26]line Версия ККМ: 001 [17:20:26]line ФМ: 0000000000871809 [17:20:26]line ФД: 68449 [17:20:26]line ФПД: 197482985805201 [17:20:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172034&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68449&fm=197482985805201&tin=02508201610067®Number=0000000000091756&sum=45000 [17:20:26]OFD Sender: Processing packet 68449 [packets to send 8, broken 7] [17:20:26]ProducePacketName [17:20:26]name=ofd_packets/00068449 [17:20:26]OFD Sender: To server: pG, [17:20:26]CommunicateWithHost lk.salyk.kg:30040 [17:20:26]ConnectInit lk.salyk.kg [17:20:26]written 0, free lines is 4095 [17:20:26]Connected sock=10 [17:20:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 34 3D 07 01 80 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 62 30 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 61 0B 01 00 35 04 06 00 B3 9C 17 37 D5 91 B2 D0 1F 5F E9 A5 23 9F [17:20:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 97 34 47 00 D6 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 61 0B 01 00 F4 03 04 00 56 D6 18 67 B6 04 01 00 00 05 D2 53 7B 70 C4 41 D1 [17:20:26]CommunicateWithHost err = 0 [17:20:26]CheckOFDResponse [17:20:26]1017 (14) - 77093643461234 [17:20:26]1041 (16) - 0000000000871809 [17:20:26]1040 (4) - 68449 [17:20:26]1012 (4) - 23.10.2024 10:56 [17:20:26]1206 (1) - 0 [17:20:26]OFD Sender: Remove packet 68449 [17:20:26]ProducePacketName [17:20:26]name=ofd_packets/00068449 [17:20:26]NVStorageDeleteData [17:20:26]Write to MH i2c: 01 00 00 0A 3A 44 [17:20:26]Write i2c OK [17:20:26]MH_I2C_Read... [17:20:26]Read from MH i2c: 01 [17:20:26]MH_I2C_Read... [17:20:26]Read from MH i2c: 01 07 00 [17:20:26]MH_I2C_Read... [17:20:26]Read from MH i2c: 01 07 00 0A 3A 00 04 00 00 00 B2 0C 0D [17:20:26]RasterBufferAndPrint [17:20:26]line [17:20:26]line [17:20:26]line [17:20:26]line [17:20:26]line [17:20:26]written 0, free lines is 3256 [17:20:26]MH_Cut [17:20:26]Write to MH i2c: D1 01 00 11 3A 01 1D [17:20:26]Write i2c OK [17:20:26]MH_I2C_Read... [17:20:26]Read from MH i2c: D1 [17:20:26]MH_I2C_Read... [17:20:26]Read from MH i2c: D1 01 00 [17:20:26]MH_I2C_Read... [17:20:26]Read from MH i2c: D1 01 00 11 3A 00 1C [17:20:26]Write to MH i2c: 01 00 00 12 3A 4C [17:20:26]Write i2c OK [17:20:26]MH_I2C_Read... [17:20:27]OFD Sender: No OFD packet to send [17:20:27]*** Cut start [17:20:27]*** Partial cut [17:20:27]*** CUTSNS_PIN = 1 [17:20:27]*** CUTSNS_PIN = 0 [17:20:27]*** Brake cut motor [17:20:28]Read from MH i2c: 01 [17:20:28]MH_I2C_Read... [17:20:28]*** Stop cut motor [17:20:28]*** Cut end [17:20:28]Read from MH i2c: 01 07 00 [17:20:28]MH_I2C_Read... [17:20:28]Read from MH i2c: 01 07 00 12 3A 00 04 00 00 00 FF 0F 65 [17:20:28]process_action close_receipt done [17:20:28]requested_data is exist [17:20:28]produce_requested_data [17:20:28]requested_item fm.sn is exist - process it [17:20:28]wFMCommunicate request_size=4 [17:20:28]MH_SAM_APDU [17:20:28]CAPDU: 80 11 00 00 [17:20:28]Write to MH i2c: E2 08 00 13 3A 80 11 00 00 00 00 00 00 C7 [17:20:28]Write i2c OK [17:20:28]MH_I2C_Read... [17:20:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:28]Read from MH i2c: E2 [17:20:28]MH_I2C_Read... [17:20:28]Read from MH i2c: E2 17 00 [17:20:28]MH_I2C_Read... [17:20:28]Read from MH i2c: E2 17 00 13 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 1B [17:20:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [17:20:28]wFMCommunicate OK [17:20:28]requested_item fd.num is exist - process it [17:20:28]SAM_PROTO_GetFieldsCounters [17:20:28]wFMCommunicate request_size=4 [17:20:28]MH_SAM_APDU [17:20:28]CAPDU: 80 13 00 00 [17:20:28]Write to MH i2c: E2 08 00 14 3A 80 13 00 00 00 00 00 00 CA [17:20:28]Write i2c OK [17:20:28]MH_I2C_Read... [17:20:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:20:28]Read from MH i2c: E2 [17:20:28]MH_I2C_Read... [17:20:28]Read from MH i2c: E2 62 00 [17:20:28]MH_I2C_Read... [17:20:28]Read from MH i2c: E2 62 00 14 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 61 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [17:20:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 61 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:20:28]wFMCommunicate OK [17:20:28]SAM_PROTO_GetFieldsCounters done [17:20:28]requested_item shift.num is exist - process it [17:20:28]requested_item shift.opened is exist - process it [17:20:28]req_shift_opened [17:20:28]FM_GetShiftState [17:20:28]SAM_PROTO_GetShiftState [17:20:28]wFMCommunicate request_size=4 [17:20:28]MH_SAM_APDU [17:20:28]CAPDU: 80 13 01 00 [17:20:28]Write to MH i2c: E2 08 00 15 3A 80 13 01 00 00 00 00 00 CC [17:20:28]Write i2c OK [17:20:28]MH_I2C_Read... [17:20:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:28]Read from MH i2c: E2 [17:20:28]MH_I2C_Read... [17:20:28]Read from MH i2c: E2 0E 00 [17:20:28]MH_I2C_Read... [17:20:28]Read from MH i2c: E2 0E 00 15 3A 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 3B [17:20:28]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [17:20:28]wFMCommunicate OK [17:20:28]SAM_PROTO_GetShiftState done [17:20:28]FM_GetShiftState done [17:20:28]req_shift_opened done [17:20:28]requested_item shift.open_date is exist - process it [17:20:28]req_shift_open_date [17:20:28]req_shift_open_date done [17:20:28]produce_requested_data done [17:20:28]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68449,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [17:20:28]process_action_free close_receipt [17:20:28]json_value_free [17:20:28]json_value_free done [17:20:28]process_json_proto returns [17:20:28]Send response to host [17:20:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68449,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [17:20:28]free response buf [17:20:28]execute_script done [17:20:28]execute_script returns [17:20:28]free content buf [17:20:28]Sock 7.Close socket [17:20:28]Sock 7.Thread stoped [17:20:32]OFD Sender: No OFD packet to send [17:20:37]OFD Sender: No OFD packet to send [17:20:42]OFD Sender: No OFD packet to send [17:20:47]OFD Sender: No OFD packet to send [17:20:52]OFD Sender: No OFD packet to send [17:20:57]OFD Sender: No OFD packet to send [17:21:02]OFD Sender: No OFD packet to send [17:21:07]OFD Sender: No OFD packet to send [17:21:12]OFD Sender: No OFD packet to send [17:21:17]OFD Sender: No OFD packet to send [17:21:22]OFD Sender: No OFD packet to send [17:21:27]OFD Sender: No OFD packet to send [17:21:32]OFD Sender: No OFD packet to send [17:21:37]OFD Sender: No OFD packet to send [17:21:42]OFD Sender: No OFD packet to send [17:21:47]OFD Sender: No OFD packet to send [17:21:52]OFD Sender: No OFD packet to send [17:21:57]OFD Sender: No OFD packet to send [17:22:02]OFD Sender: No OFD packet to send [17:22:07]OFD Sender: No OFD packet to send [17:22:12]OFD Sender: No OFD packet to send [17:22:17]OFD Sender: No OFD packet to send [17:22:22]OFD Sender: No OFD packet to send [17:22:27]OFD Sender: No OFD packet to send [17:22:32]OFD Sender: No OFD packet to send [17:22:37]OFD Sender: No OFD packet to send [17:22:42]OFD Sender: No OFD packet to send [17:22:45]accept exits with 9 [17:22:45]New connection [17:22:45]New thread 3067133284 created [17:22:45]Thread 3067276644 joined [17:22:45]Waiting for new connection... [17:22:45] Sock 9.Parse request [17:22:45]Sock 9.Check first char [17:22:45]Sock 9.First char is OK [17:22:45]request: POST /json_proto HTTP/1.0 [17:22:45]Method: POST [17:22:45]URL: /json_proto [17:22:45]Method is POST - this is cgi request [17:22:45]url: /json_proto [17:22:45]query_string will be loaded in cgi processing [17:22:45]execute_cgi json_proto POST (null) [17:22:45]execute_cgi path=json_proto method=POST [17:22:45]POST find Content-Length [17:22:45]Host: 172.17.52.3:8080 [17:22:45]Content-Length: 679 [17:22:45]Content-Type: application/json [17:22:45] [17:22:45]POST finish read [17:22:45]Found Content-Length = 679 [17:22:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210447", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:45]execute_script... [17:22:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210447", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:45]POST & json_proto [17:22:45]process_json_proto [17:22:45]json parsed OK: [17:22:45]protocol is kg_v1.0 [17:22:45]action value=close_receipt [17:22:45]process_action close_receipt [17:22:45]cmd_close_receipt [17:22:45]MH_GetDate [17:22:45]Write to MH i2c: F0 00 00 16 3A 3F [17:22:45]Write i2c OK [17:22:45]MH_I2C_Read... [17:22:45]Read from MH i2c: F0 [17:22:45]MH_I2C_Read... [17:22:45]Read from MH i2c: F0 09 00 [17:22:45]MH_I2C_Read... [17:22:45]Read from MH i2c: F0 09 00 16 3A 00 EF 30 19 67 D7 68 A5 64 2F [17:22:45]GetLastDocTimeStamp 1729704034 [17:22:45]current date 1729704175 [17:22:45]FM_GetShiftState [17:22:45]SAM_PROTO_GetShiftState [17:22:45]wFMCommunicate request_size=4 [17:22:45]MH_SAM_APDU [17:22:45]CAPDU: 80 13 01 00 [17:22:45]Write to MH i2c: E2 08 00 17 3A 80 13 01 00 00 00 00 00 CE [17:22:45]Write i2c OK [17:22:45]MH_I2C_Read... [17:22:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:45]Read from MH i2c: E2 [17:22:45]MH_I2C_Read... [17:22:45]Read from MH i2c: E2 0E 00 [17:22:45]MH_I2C_Read... [17:22:45]Read from MH i2c: E2 0E 00 17 3A 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 3D [17:22:45]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [17:22:45]wFMCommunicate OK [17:22:45]SAM_PROTO_GetShiftState done [17:22:45]FM_GetShiftState done [17:22:45]opened in 1729641385 [17:22:45]opened+sec_in_day 1729727785 [17:22:45]quantity*price = 250012 [17:22:45]sum+1 = 250013 [17:22:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 73 23.10.2024 17:22 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68450 ФПД: 162520095947917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172255&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68450&fm=162520095947917&tin=02508201610067®Number=0000000000091756&sum=250000 [17:22:47]StoreToDocumentArchive [17:22:47]shift 507 fd 68450 [17:22:47]save to /storage/0507/doc_00068450 [17:22:47]save last doc name /storage/0507/doc_00068450 to /storage/kkm_last_doc_name [17:22:47]save OK [17:22:47]Clear old archive folders... [17:22:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:22:47]tlvbuf is B6DF7190 [17:22:47]SAM_PROTO_ClearQueue [17:22:47]wFMCommunicate request_size=4 [17:22:47]MH_SAM_APDU [17:22:47]CAPDU: 80 09 00 00 [17:22:47]Write to MH i2c: E2 08 00 24 3A 80 09 00 00 00 00 00 00 D0 [17:22:47]Write i2c OK [17:22:47]MH_I2C_Read... [17:22:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:22:47]Read from MH i2c: E2 [17:22:47]MH_I2C_Read... [17:22:47]Read from MH i2c: E2 03 00 [17:22:47]MH_I2C_Read... [17:22:47]Read from MH i2c: E2 03 00 24 3A 00 90 00 D2 [17:22:47]RAPDU: 90 00 [17:22:47]wFMCommunicate OK [17:22:47]SAM_PROTO_ClearQueue done [17:22:47]KKMCreateOFDPacket [17:22:47]OFDProtocolAddRootSTLVToBuf [17:22:47]FM_MakeSignedData [17:22:47]FM_MakeSignedData [17:22:47]SAM_PROTO_SignData [17:22:47]wFMCommunicate request_size=4 [17:22:47]MH_SAM_APDU [17:22:47]CAPDU: 80 0D 01 02 [17:22:47]Write to MH i2c: E2 08 00 25 3A 80 0D 01 02 00 00 00 00 D8 [17:22:47]Write i2c OK [17:22:47]MH_I2C_Read... [17:22:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:22:47]Read from MH i2c: E2 [17:22:47]MH_I2C_Read... [17:22:47]Read from MH i2c: E2 03 00 [17:22:47]MH_I2C_Read... [17:22:47]Read from MH i2c: E2 03 00 25 3A 00 90 00 D3 [17:22:47]RAPDU: 90 00 [17:22:47]wFMCommunicate OK [17:22:47]wFMCommunicate request_size=255 [17:22:47]MH_SAM_APDU [17:22:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 49 00 00 00 F4 03 04 00 EF 30 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 62 0B 01 00 35 04 06 00 93 CF A8 96 [17:22:47]Write to MH i2c: E2 02 01 26 3A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 49 00 00 00 F4 03 04 00 EF 30 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 62 0B 01 00 35 04 06 00 93 CF A8 96 00 00 B1 [17:22:47]Write i2c OK [17:22:47]MH_I2C_Read... [17:22:47]OFD Sender: No OFD packet to send [17:22:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:47]Read from MH i2c: E2 [17:22:47]MH_I2C_Read... [17:22:47]Read from MH i2c: E2 03 00 [17:22:47]MH_I2C_Read... [17:22:47]Read from MH i2c: E2 03 00 26 3A 00 90 00 D4 [17:22:47]RAPDU: 90 00 [17:22:47]wFMCommunicate OK [17:22:47]wFMCommunicate request_size=7 [17:22:47]MH_SAM_APDU [17:22:47]CAPDU: 80 0D 02 02 02 7C 8D [17:22:47]Write to MH i2c: E2 0A 00 27 3A 80 0D 02 02 02 00 7C 8D 00 00 E8 [17:22:47]Write i2c OK [17:22:47]MH_I2C_Read... [17:22:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:47]Read from MH i2c: E2 [17:22:47]MH_I2C_Read... [17:22:47]Read from MH i2c: E2 03 00 [17:22:47]MH_I2C_Read... [17:22:47]Read from MH i2c: E2 03 00 27 3A 00 90 00 D5 [17:22:47]RAPDU: 90 00 [17:22:47]wFMCommunicate OK [17:22:47]wFMCommunicate request_size=4 [17:22:47]MH_SAM_APDU [17:22:47]CAPDU: 80 0D 03 02 [17:22:47]Write to MH i2c: E2 08 00 28 3A 80 0D 03 02 00 00 00 00 DD [17:22:47]Write i2c OK [17:22:47]MH_I2C_Read... [17:22:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:22:47]Read from MH i2c: E2 [17:22:47]MH_I2C_Read... [17:22:47]Read from MH i2c: E2 0B 00 [17:22:47]MH_I2C_Read... [17:22:47]Read from MH i2c: E2 0B 00 28 3A 00 34 1F 1F DA D0 8A DA 66 90 00 C4 [17:22:47]RAPDU: 34 1F 1F DA D0 8A DA 66 90 00 [17:22:47]wFMCommunicate OK [17:22:47]SAM_PROTO_SignData done [17:22:47]FM_MakeSignedData done [17:22:47]CreateOFDProtocolMessage [17:22:47]wFMCommunicate request_size=4 [17:22:47]MH_SAM_APDU [17:22:47]CAPDU: 80 11 00 00 [17:22:47]Write to MH i2c: E2 08 00 29 3A 80 11 00 00 00 00 00 00 DD [17:22:47]Write i2c OK [17:22:47]MH_I2C_Read... [17:22:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:47]Read from MH i2c: E2 [17:22:47]MH_I2C_Read... [17:22:47]Read from MH i2c: E2 17 00 [17:22:47]MH_I2C_Read... [17:22:47]Read from MH i2c: E2 17 00 29 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 31 [17:22:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [17:22:47]wFMCommunicate OK [17:22:47]CreateOFDProtocolMessage done [17:22:47]OFDSenderStorePacket 68450 [17:22:47]StoreOFDPacket docnum=68450 [17:22:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0C 01 00 00 98 D0 04 01 6E 5A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 49 00 00 00 F4 03 04 00 EF 30 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 62 0B 01 00 35 04 06 00 93 CF A8 96 7C 8D 34 1F 1F DA D0 8A DA 66 [17:22:47]CheckFolder [17:22:47]dirname=/storage/ofd_packets [17:22:47]CheckFolder done [17:22:47]ProducePacketName [17:22:47]name=ofd_packets/00068450 [17:22:47]NVStorageSaveData ofd_packets/00068450 [17:22:47]File name is /storage/ofd_packets/00068450 [17:22:47]Write 298 bytes [17:22:47]NVStorageSaveData done [17:22:47]OFDSenderStorePacket done [17:22:47]KKMCreateOFDPacket done [17:22:47]NVStorageSaveData kkm_last_timestamp [17:22:47]File name is /storage/kkm_last_timestamp [17:22:47]Write 4 bytes [17:22:47]NVStorageSaveData done [17:22:47]ExternCall_PrintAddStr [17:22:47]wPrintStart [17:22:47]Write to MH i2c: 01 00 00 2A 3A 64 [17:22:47]Write i2c OK [17:22:47]MH_I2C_Read... [17:22:47]Read from MH i2c: 01 [17:22:47]MH_I2C_Read... [17:22:47]Read from MH i2c: 01 07 00 [17:22:47]MH_I2C_Read... [17:22:47]Read from MH i2c: 01 07 00 2A 3A 00 04 00 00 00 FF 0F 7D [17:22:47]RasterBufferAndPrint [17:22:47]line Счет N : (1)210447 [17:22:47]line ИНН: 02508201610067 [17:22:47]line Контрольно-Кассовый Чек [17:22:47]line ПРОДАЖА [17:22:47]line ТРК (МРК, ГНК) : 32 [17:22:47]line Товар: 2710194210 [17:22:47]line ДТ-К-2 [17:22:47]line 32.810 * 76.20 [17:22:47]line = 2500.12 [17:22:47]line НДС 12% НСП 1% [17:22:47]line > о реализуемом товаре [17:22:47]line ОКРУГЛЕНИЕ: -0.12 [17:22:47]line ИТОГО: 2500.00 [17:22:47]line Внесено: 2500.00 [17:22:47]line СДАЧА: 0.00 [17:22:47]line НСП 1% : 22.12 [17:22:47]line НДС 12% : 265.50 [17:22:47]line Наличными: 2500.00 [17:22:47]line Безнал.: 0.00 [17:22:47]line Место: АЗС № 147 "Партнер Нефть" [17:22:47]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [17:22:47]line СНО: Общий режим [17:22:47]line Чек 73 23.10.2024 17:22 [17:22:47]line Смена: 507 ФФД: 1.0 [17:22:47]line ЗНМ: 0300000094 [17:22:47]line РНМ: 0000000000091756 [17:22:47]line Версия ККМ: 001 [17:22:47]line ФМ: 0000000000871809 [17:22:47]line ФД: 68450 [17:22:47]line ФПД: 162520095947917 [17:22:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172255&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68450&fm=162520095947917&tin=02508201610067®Number=0000000000091756&sum=250000 [17:22:47]OFD Sender: Processing packet 68450 [packets to send 8, broken 7] [17:22:47]ProducePacketName [17:22:47]name=ofd_packets/00068450 [17:22:47]OFD Sender: To server: pG, [17:22:47]CommunicateWithHost lk.salyk.kg:30040 [17:22:47]ConnectInit lk.salyk.kg [17:22:47]written 0, free lines is 4095 [17:22:48]Connected sock=10 [17:22:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0C 01 00 00 98 D0 04 01 6E 5A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 49 00 00 00 F4 03 04 00 EF 30 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 62 0B 01 00 35 04 06 00 93 CF A8 96 7C 8D 34 1F 1F DA D0 8A DA 66 [17:22:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 BD A9 47 00 C9 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 62 0B 01 00 F4 03 04 00 E4 D6 18 67 B6 04 01 00 00 3B CF 00 DA 29 30 40 02 [17:22:48]CommunicateWithHost err = 0 [17:22:48]CheckOFDResponse [17:22:48]1017 (14) - 77093643461234 [17:22:48]1041 (16) - 0000000000871809 [17:22:48]1040 (4) - 68450 [17:22:48]1012 (4) - 23.10.2024 10:58 [17:22:48]1206 (1) - 0 [17:22:48]OFD Sender: Remove packet 68450 [17:22:48]ProducePacketName [17:22:48]name=ofd_packets/00068450 [17:22:48]NVStorageDeleteData [17:22:48]Write to MH i2c: 01 00 00 54 3A 8E [17:22:48]Write i2c OK [17:22:48]MH_I2C_Read... [17:22:48]Read from MH i2c: 01 [17:22:48]MH_I2C_Read... [17:22:48]Read from MH i2c: 01 07 00 [17:22:48]MH_I2C_Read... [17:22:48]Read from MH i2c: 01 07 00 54 3A 00 04 00 00 00 B4 0C 59 [17:22:48]RasterBufferAndPrint [17:22:48]line [17:22:48]line [17:22:48]line [17:22:48]line [17:22:48]line [17:22:48]written 0, free lines is 3258 [17:22:48]MH_Cut [17:22:48]Write to MH i2c: D1 01 00 5B 3A 01 67 [17:22:48]Write i2c OK [17:22:48]MH_I2C_Read... [17:22:48]Read from MH i2c: D1 [17:22:48]MH_I2C_Read... [17:22:48]Read from MH i2c: D1 01 00 [17:22:48]MH_I2C_Read... [17:22:48]Read from MH i2c: D1 01 00 5B 3A 00 66 [17:22:48]Write to MH i2c: 01 00 00 5C 3A 96 [17:22:48]Write i2c OK [17:22:48]MH_I2C_Read... [17:22:48]OFD Sender: No OFD packet to send [17:22:49]*** Cut start [17:22:49]*** Partial cut [17:22:49]*** CUTSNS_PIN = 1 [17:22:49]*** CUTSNS_PIN = 0 [17:22:49]*** Brake cut motor [17:22:49]Read from MH i2c: 01 [17:22:49]MH_I2C_Read... [17:22:49]*** Stop cut motor [17:22:49]*** Cut end [17:22:49]Read from MH i2c: 01 07 00 [17:22:49]MH_I2C_Read... [17:22:49]Read from MH i2c: 01 07 00 5C 3A 00 04 00 00 00 FF 0F AF [17:22:49]process_action close_receipt done [17:22:49]requested_data is exist [17:22:49]produce_requested_data [17:22:49]requested_item fm.sn is exist - process it [17:22:49]wFMCommunicate request_size=4 [17:22:49]MH_SAM_APDU [17:22:49]CAPDU: 80 11 00 00 [17:22:49]Write to MH i2c: E2 08 00 5D 3A 80 11 00 00 00 00 00 00 11 [17:22:49]Write i2c OK [17:22:49]MH_I2C_Read... [17:22:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:49]Read from MH i2c: E2 [17:22:49]MH_I2C_Read... [17:22:49]Read from MH i2c: E2 17 00 [17:22:49]MH_I2C_Read... [17:22:49]Read from MH i2c: E2 17 00 5D 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 65 [17:22:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [17:22:49]wFMCommunicate OK [17:22:49]requested_item fd.num is exist - process it [17:22:49]SAM_PROTO_GetFieldsCounters [17:22:49]wFMCommunicate request_size=4 [17:22:49]MH_SAM_APDU [17:22:49]CAPDU: 80 13 00 00 [17:22:49]Write to MH i2c: E2 08 00 5E 3A 80 13 00 00 00 00 00 00 14 [17:22:49]Write i2c OK [17:22:49]MH_I2C_Read... [17:22:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:22:50]Read from MH i2c: E2 [17:22:50]MH_I2C_Read... [17:22:50]Read from MH i2c: E2 62 00 [17:22:50]MH_I2C_Read... [17:22:50]Read from MH i2c: E2 62 00 5E 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 62 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [17:22:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 62 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:22:50]wFMCommunicate OK [17:22:50]SAM_PROTO_GetFieldsCounters done [17:22:50]requested_item shift.num is exist - process it [17:22:50]requested_item shift.opened is exist - process it [17:22:50]req_shift_opened [17:22:50]FM_GetShiftState [17:22:50]SAM_PROTO_GetShiftState [17:22:50]wFMCommunicate request_size=4 [17:22:50]MH_SAM_APDU [17:22:50]CAPDU: 80 13 01 00 [17:22:50]Write to MH i2c: E2 08 00 5F 3A 80 13 01 00 00 00 00 00 16 [17:22:50]Write i2c OK [17:22:50]MH_I2C_Read... [17:22:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:50]Read from MH i2c: E2 [17:22:50]MH_I2C_Read... [17:22:50]Read from MH i2c: E2 0E 00 [17:22:50]MH_I2C_Read... [17:22:50]Read from MH i2c: E2 0E 00 5F 3A 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 85 [17:22:50]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [17:22:50]wFMCommunicate OK [17:22:50]SAM_PROTO_GetShiftState done [17:22:50]FM_GetShiftState done [17:22:50]req_shift_opened done [17:22:50]requested_item shift.open_date is exist - process it [17:22:50]req_shift_open_date [17:22:50]req_shift_open_date done [17:22:50]produce_requested_data done [17:22:50]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68450,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [17:22:50]process_action_free close_receipt [17:22:50]json_value_free [17:22:50]json_value_free done [17:22:50]process_json_proto returns [17:22:50]Send response to host [17:22:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68450,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [17:22:50]free response buf [17:22:50]execute_script done [17:22:50]execute_script returns [17:22:50]free content buf [17:22:50]Sock 9.Close socket [17:22:50]Sock 9.Thread stoped [17:22:53]OFD Sender: No OFD packet to send [17:22:58]OFD Sender: No OFD packet to send [17:23:03]OFD Sender: No OFD packet to send [17:23:08]OFD Sender: No OFD packet to send [17:23:13]OFD Sender: No OFD packet to send [17:23:18]OFD Sender: No OFD packet to send [17:23:23]OFD Sender: No OFD packet to send [17:23:28]OFD Sender: No OFD packet to send [17:23:33]OFD Sender: No OFD packet to send [17:23:38]OFD Sender: No OFD packet to send [17:23:43]OFD Sender: No OFD packet to send [17:23:48]OFD Sender: No OFD packet to send [17:23:53]OFD Sender: No OFD packet to send [17:23:58]OFD Sender: No OFD packet to send [17:24:03]OFD Sender: No OFD packet to send [17:24:08]OFD Sender: No OFD packet to send [17:24:13]OFD Sender: No OFD packet to send [17:24:18]OFD Sender: No OFD packet to send [17:24:23]OFD Sender: No OFD packet to send [17:24:28]OFD Sender: No OFD packet to send [17:24:33]OFD Sender: No OFD packet to send [17:24:38]OFD Sender: No OFD packet to send [17:24:43]OFD Sender: No OFD packet to send [17:24:48]OFD Sender: No OFD packet to send [17:24:53]OFD Sender: No OFD packet to send [17:24:58]OFD Sender: No OFD packet to send [17:25:03]OFD Sender: No OFD packet to send [17:25:08]OFD Sender: No OFD packet to send [17:25:13]OFD Sender: No OFD packet to send [17:25:18]OFD Sender: No OFD packet to send [17:25:23]OFD Sender: No OFD packet to send [17:25:28]OFD Sender: No OFD packet to send [17:25:33]OFD Sender: No OFD packet to send [17:25:38]OFD Sender: No OFD packet to send [17:25:43]OFD Sender: No OFD packet to send [17:25:48]OFD Sender: No OFD packet to send [17:25:53]OFD Sender: No OFD packet to send [17:25:58]OFD Sender: No OFD packet to send [17:26:03]OFD Sender: No OFD packet to send [17:26:08]OFD Sender: No OFD packet to send [17:26:09]accept exits with 7 [17:26:09]New connection [17:26:09]New thread 3067276644 created [17:26:09]Thread 3067133284 joined [17:26:09]Waiting for new connection... [17:26:09] Sock 7.Parse request [17:26:09]Sock 7.Check first char [17:26:09]Sock 7.First char is OK [17:26:09]request: POST /json_proto HTTP/1.0 [17:26:09]Method: POST [17:26:09]URL: /json_proto [17:26:09]Method is POST - this is cgi request [17:26:09]url: /json_proto [17:26:09]query_string will be loaded in cgi processing [17:26:09]execute_cgi json_proto POST (null) [17:26:09]execute_cgi path=json_proto method=POST [17:26:09]POST find Content-Length [17:26:09]Host: 172.17.52.3:8080 [17:26:09]Content-Length: 674 [17:26:09]Content-Type: application/json [17:26:09] [17:26:09]POST finish read [17:26:09]Found Content-Length = 674 [17:26:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210448", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 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" ] } } [17:26:09]execute_script... [17:26: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)210448", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 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" ] } } [17:26:09]POST & json_proto [17:26:09]process_json_proto [17:26:09]json parsed OK: [17:26:09]protocol is kg_v1.0 [17:26:09]action value=close_receipt [17:26:09]process_action close_receipt [17:26:09]cmd_close_receipt [17:26:09]MH_GetDate [17:26:09]Write to MH i2c: F0 00 00 60 3A 89 [17:26:09]Write i2c OK [17:26:09]MH_I2C_Read... [17:26:09]Read from MH i2c: F0 [17:26:09]MH_I2C_Read... [17:26:09]Read from MH i2c: F0 09 00 [17:26:09]MH_I2C_Read... [17:26:09]Read from MH i2c: F0 09 00 60 3A 00 BA 31 19 67 D7 68 A5 64 45 [17:26:09]GetLastDocTimeStamp 1729704175 [17:26:09]current date 1729704378 [17:26:09]FM_GetShiftState [17:26:09]SAM_PROTO_GetShiftState [17:26:09]wFMCommunicate request_size=4 [17:26:09]MH_SAM_APDU [17:26:09]CAPDU: 80 13 01 00 [17:26:09]Write to MH i2c: E2 08 00 61 3A 80 13 01 00 00 00 00 00 18 [17:26:09]Write i2c OK [17:26:09]MH_I2C_Read... [17:26:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:09]Read from MH i2c: E2 [17:26:09]MH_I2C_Read... [17:26:09]Read from MH i2c: E2 0E 00 [17:26:09]MH_I2C_Read... [17:26:09]Read from MH i2c: E2 0E 00 61 3A 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 87 [17:26:09]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [17:26:09]wFMCommunicate OK [17:26:09]SAM_PROTO_GetShiftState done [17:26:09]FM_GetShiftState done [17:26:09]opened in 1729641385 [17:26:09]opened+sec_in_day 1729727785 [17:26:09]quantity*price = 50063 [17:26:09]sum+1 = 50064 [17:26:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 74 23.10.2024 17:26 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68451 ФПД: 149546518487312 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172619&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68451&fm=149546518487312&tin=02508201610067®Number=0000000000091756&sum=50000 [17:26:10]StoreToDocumentArchive [17:26:10]shift 507 fd 68451 [17:26:10]save to /storage/0507/doc_00068451 [17:26:10]save last doc name /storage/0507/doc_00068451 to /storage/kkm_last_doc_name [17:26:10]save OK [17:26:10]Clear old archive folders... [17:26:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:26:10]tlvbuf is 01FB3EF0 [17:26:10]SAM_PROTO_ClearQueue [17:26:10]wFMCommunicate request_size=4 [17:26:10]MH_SAM_APDU [17:26:10]CAPDU: 80 09 00 00 [17:26:10]Write to MH i2c: E2 08 00 6E 3A 80 09 00 00 00 00 00 00 1A [17:26:10]Write i2c OK [17:26:10]MH_I2C_Read... [17:26:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:10]Read from MH i2c: E2 [17:26:10]MH_I2C_Read... [17:26:10]Read from MH i2c: E2 03 00 [17:26:10]MH_I2C_Read... [17:26:10]Read from MH i2c: E2 03 00 6E 3A 00 90 00 1C [17:26:10]RAPDU: 90 00 [17:26:10]wFMCommunicate OK [17:26:10]SAM_PROTO_ClearQueue done [17:26:10]KKMCreateOFDPacket [17:26:10]OFDProtocolAddRootSTLVToBuf [17:26:10]FM_MakeSignedData [17:26:10]FM_MakeSignedData [17:26:10]SAM_PROTO_SignData [17:26:10]wFMCommunicate request_size=4 [17:26:10]MH_SAM_APDU [17:26:10]CAPDU: 80 0D 01 02 [17:26:10]Write to MH i2c: E2 08 00 6F 3A 80 0D 01 02 00 00 00 00 22 [17:26:10]Write i2c OK [17:26:10]MH_I2C_Read... [17:26:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:10]Read from MH i2c: E2 [17:26:10]MH_I2C_Read... [17:26:10]Read from MH i2c: E2 03 00 [17:26:10]MH_I2C_Read... [17:26:10]Read from MH i2c: E2 03 00 6F 3A 00 90 00 1D [17:26:10]RAPDU: 90 00 [17:26:10]wFMCommunicate OK [17:26:10]wFMCommunicate request_size=255 [17:26:10]MH_SAM_APDU [17:26:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 4A 00 00 00 F4 03 04 00 BB 31 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 63 0B 01 00 35 04 06 00 88 03 03 1C [17:26:10]Write to MH i2c: E2 02 01 70 3A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 4A 00 00 00 F4 03 04 00 BB 31 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 63 0B 01 00 35 04 06 00 88 03 03 1C 00 00 FB [17:26:10]Write i2c OK [17:26:10]MH_I2C_Read... [17:26:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:10]Read from MH i2c: E2 [17:26:10]MH_I2C_Read... [17:26:10]Read from MH i2c: E2 03 00 [17:26:10]MH_I2C_Read... [17:26:10]Read from MH i2c: E2 03 00 70 3A 00 90 00 1E [17:26:10]RAPDU: 90 00 [17:26:10]wFMCommunicate OK [17:26:10]wFMCommunicate request_size=7 [17:26:10]MH_SAM_APDU [17:26:10]CAPDU: 80 0D 02 02 02 A1 10 [17:26:10]Write to MH i2c: E2 0A 00 71 3A 80 0D 02 02 02 00 A1 10 00 00 DA [17:26:10]Write i2c OK [17:26:10]MH_I2C_Read... [17:26:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:10]Read from MH i2c: E2 [17:26:10]MH_I2C_Read... [17:26:10]Read from MH i2c: E2 03 00 [17:26:10]MH_I2C_Read... [17:26:10]Read from MH i2c: E2 03 00 71 3A 00 90 00 1F [17:26:10]RAPDU: 90 00 [17:26:10]wFMCommunicate OK [17:26:10]wFMCommunicate request_size=4 [17:26:10]MH_SAM_APDU [17:26:10]CAPDU: 80 0D 03 02 [17:26:10]Write to MH i2c: E2 08 00 72 3A 80 0D 03 02 00 00 00 00 27 [17:26:10]Write i2c OK [17:26:10]MH_I2C_Read... [17:26:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:10]Read from MH i2c: E2 [17:26:10]MH_I2C_Read... [17:26:10]Read from MH i2c: E2 0B 00 [17:26:10]MH_I2C_Read... [17:26:10]Read from MH i2c: E2 0B 00 72 3A 00 38 FE D2 E5 1B 66 54 C6 90 00 B0 [17:26:10]RAPDU: 38 FE D2 E5 1B 66 54 C6 90 00 [17:26:10]wFMCommunicate OK [17:26:10]SAM_PROTO_SignData done [17:26:10]FM_MakeSignedData done [17:26:10]CreateOFDProtocolMessage [17:26:10]wFMCommunicate request_size=4 [17:26:10]MH_SAM_APDU [17:26:10]CAPDU: 80 11 00 00 [17:26:10]Write to MH i2c: E2 08 00 73 3A 80 11 00 00 00 00 00 00 27 [17:26:10]Write i2c OK [17:26:10]MH_I2C_Read... [17:26:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:10]Read from MH i2c: E2 [17:26:10]MH_I2C_Read... [17:26:10]Read from MH i2c: E2 17 00 [17:26:10]MH_I2C_Read... [17:26:10]Read from MH i2c: E2 17 00 73 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 7B [17:26:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [17:26:10]wFMCommunicate OK [17:26:10]CreateOFDProtocolMessage done [17:26:10]OFDSenderStorePacket 68451 [17:26:10]StoreOFDPacket docnum=68451 [17:26:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0C 01 00 00 4A C8 04 01 F8 2B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 4A 00 00 00 F4 03 04 00 BB 31 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 63 0B 01 00 35 04 06 00 88 03 03 1C A1 10 38 FE D2 E5 1B 66 54 C6 [17:26:10]CheckFolder [17:26:10]dirname=/storage/ofd_packets [17:26:10]CheckFolder done [17:26:10]ProducePacketName [17:26:10]name=ofd_packets/00068451 [17:26:10]NVStorageSaveData ofd_packets/00068451 [17:26:10]File name is /storage/ofd_packets/00068451 [17:26:10]Write 298 bytes [17:26:10]NVStorageSaveData done [17:26:10]OFDSenderStorePacket done [17:26:10]KKMCreateOFDPacket done [17:26:10]NVStorageSaveData kkm_last_timestamp [17:26:10]File name is /storage/kkm_last_timestamp [17:26:10]Write 4 bytes [17:26:10]NVStorageSaveData done [17:26:10]ExternCall_PrintAddStr [17:26:10]wPrintStart [17:26:10]Write to MH i2c: 01 00 00 74 3A AE [17:26:10]Write i2c OK [17:26:10]MH_I2C_Read... [17:26:10]Read from MH i2c: 01 [17:26:10]MH_I2C_Read... [17:26:10]Read from MH i2c: 01 07 00 [17:26:10]MH_I2C_Read... [17:26:10]Read from MH i2c: 01 07 00 74 3A 00 04 00 00 00 FF 0F C7 [17:26:10]RasterBufferAndPrint [17:26:10]line Счет N : (1)210448 [17:26:10]line ИНН: 02508201610067 [17:26:10]line Контрольно-Кассовый Чек [17:26:10]line ПРОДАЖА [17:26:10]line ТРК (МРК, ГНК) : 21 [17:26:10]line Товар: 2710194210 [17:26:10]line ДТ-К-2 [17:26:10]line 6.570 * 76.20 [17:26:10]line = 500.63 [17:26:10]line НДС 12% НСП 1% [17:26:10]line > о реализуемом товаре [17:26:10]line ОКРУГЛЕНИЕ: -0.63 [17:26:10]line ИТОГО: 500.00 [17:26:10]line Внесено: 500.00 [17:26:10]line СДАЧА: 0.00 [17:26:10]line НСП 1% : 4.43 [17:26:10]line НДС 12% : 53.16 [17:26:10]line Наличными: 500.00 [17:26:10]line Безнал.: 0.00 [17:26:10]line Место: АЗС № 147 "Партнер Нефть" [17:26:10]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [17:26:10]line СНО: Общий режим [17:26:10]line Чек 74 23.10.2024 17:26 [17:26:10]line Смена: 507 ФФД: 1.0 [17:26:10]line ЗНМ: 0300000094 [17:26:10]line РНМ: 0000000000091756 [17:26:11]line Версия ККМ: 001 [17:26:11]line ФМ: 0000000000871809 [17:26:11]line ФД: 68451 [17:26:11]line ФПД: 149546518487312 [17:26:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172619&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68451&fm=149546518487312&tin=02508201610067®Number=0000000000091756&sum=50000 [17:26:11]OFD Sender: Processing packet 68451 [packets to send 8, broken 7] [17:26:11]ProducePacketName [17:26:11]name=ofd_packets/00068451 [17:26:11]OFD Sender: To server: pG, [17:26:11]CommunicateWithHost lk.salyk.kg:30040 [17:26:11]ConnectInit lk.salyk.kg [17:26:11]written 0, free lines is 4095 [17:26:11]Connected sock=10 [17:26:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0C 01 00 00 4A C8 04 01 F8 2B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 4A 00 00 00 F4 03 04 00 BB 31 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 63 0B 01 00 35 04 06 00 88 03 03 1C A1 10 38 FE D2 E5 1B 66 54 C6 [17:26:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 2F 01 47 00 CF C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 63 0B 01 00 F4 03 04 00 AF D7 18 67 B6 04 01 00 00 C2 C9 EB D6 59 69 72 4F [17:26:11]CommunicateWithHost err = 0 [17:26:11]CheckOFDResponse [17:26:11]1017 (14) - 77093643461234 [17:26:11]1041 (16) - 0000000000871809 [17:26:11]1040 (4) - 68451 [17:26:11]1012 (4) - 23.10.2024 11:02 [17:26:11]1206 (1) - 0 [17:26:11]OFD Sender: Remove packet 68451 [17:26:11]ProducePacketName [17:26:11]name=ofd_packets/00068451 [17:26:11]NVStorageDeleteData [17:26:11]Write to MH i2c: 01 00 00 9E 3A D8 [17:26:11]Write i2c OK [17:26:11]MH_I2C_Read... [17:26:11]Read from MH i2c: 01 [17:26:11]MH_I2C_Read... [17:26:11]Read from MH i2c: 01 07 00 [17:26:11]MH_I2C_Read... [17:26:11]Read from MH i2c: 01 07 00 9E 3A 00 04 00 00 00 AD 0C 9C [17:26:11]RasterBufferAndPrint [17:26:11]line [17:26:11]line [17:26:11]line [17:26:11]line [17:26:11]line [17:26:11]written 0, free lines is 3249 [17:26:11]MH_Cut [17:26:11]Write to MH i2c: D1 01 00 A5 3A 01 B1 [17:26:11]Write i2c OK [17:26:11]MH_I2C_Read... [17:26:11]Read from MH i2c: D1 [17:26:11]MH_I2C_Read... [17:26:11]Read from MH i2c: D1 01 00 [17:26:11]MH_I2C_Read... [17:26:11]Read from MH i2c: D1 01 00 A5 3A 00 B0 [17:26:11]Write to MH i2c: 01 00 00 A6 3A E0 [17:26:11]Write i2c OK [17:26:11]MH_I2C_Read... [17:26:11]OFD Sender: No OFD packet to send [17:26:12]*** Cut start [17:26:12]*** Partial cut [17:26:12]*** CUTSNS_PIN = 1 [17:26:12]*** CUTSNS_PIN = 0 [17:26:12]*** Brake cut motor [17:26:12]Read from MH i2c: 01 [17:26:13]MH_I2C_Read... [17:26:13]*** Stop cut motor [17:26:13]*** Cut end [17:26:13]Read from MH i2c: 01 07 00 [17:26:13]MH_I2C_Read... [17:26:13]Read from MH i2c: 01 07 00 A6 3A 00 04 00 00 00 FF 0F F9 [17:26:13]process_action close_receipt done [17:26:13]requested_data is exist [17:26:13]produce_requested_data [17:26:13]requested_item fm.sn is exist - process it [17:26:13]wFMCommunicate request_size=4 [17:26:13]MH_SAM_APDU [17:26:13]CAPDU: 80 11 00 00 [17:26:13]Write to MH i2c: E2 08 00 A7 3A 80 11 00 00 00 00 00 00 5B [17:26:13]Write i2c OK [17:26:13]MH_I2C_Read... [17:26:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:13]Read from MH i2c: E2 [17:26:13]MH_I2C_Read... [17:26:13]Read from MH i2c: E2 17 00 [17:26:13]MH_I2C_Read... [17:26:13]Read from MH i2c: E2 17 00 A7 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 AF [17:26:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [17:26:13]wFMCommunicate OK [17:26:13]requested_item fd.num is exist - process it [17:26:13]SAM_PROTO_GetFieldsCounters [17:26:13]wFMCommunicate request_size=4 [17:26:13]MH_SAM_APDU [17:26:13]CAPDU: 80 13 00 00 [17:26:13]Write to MH i2c: E2 08 00 A8 3A 80 13 00 00 00 00 00 00 5E [17:26:13]Write i2c OK [17:26:13]MH_I2C_Read... [17:26:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:13]Read from MH i2c: E2 [17:26:13]MH_I2C_Read... [17:26:13]Read from MH i2c: E2 62 00 [17:26:13]MH_I2C_Read... [17:26:13]Read from MH i2c: E2 62 00 A8 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 63 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [17:26:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 63 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:26:13]wFMCommunicate OK [17:26:13]SAM_PROTO_GetFieldsCounters done [17:26:13]requested_item shift.num is exist - process it [17:26:13]requested_item shift.opened is exist - process it [17:26:13]req_shift_opened [17:26:13]FM_GetShiftState [17:26:13]SAM_PROTO_GetShiftState [17:26:13]wFMCommunicate request_size=4 [17:26:13]MH_SAM_APDU [17:26:13]CAPDU: 80 13 01 00 [17:26:13]Write to MH i2c: E2 08 00 A9 3A 80 13 01 00 00 00 00 00 60 [17:26:13]Write i2c OK [17:26:13]MH_I2C_Read... [17:26:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:13]Read from MH i2c: E2 [17:26:13]MH_I2C_Read... [17:26:13]Read from MH i2c: E2 0E 00 [17:26:13]MH_I2C_Read... [17:26:13]Read from MH i2c: E2 0E 00 A9 3A 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 CF [17:26:13]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [17:26:13]wFMCommunicate OK [17:26:13]SAM_PROTO_GetShiftState done [17:26:13]FM_GetShiftState done [17:26:13]req_shift_opened done [17:26:13]requested_item shift.open_date is exist - process it [17:26:13]req_shift_open_date [17:26:13]req_shift_open_date done [17:26:13]produce_requested_data done [17:26:13]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68451,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [17:26:13]process_action_free close_receipt [17:26:13]json_value_free [17:26:13]json_value_free done [17:26:13]process_json_proto returns [17:26:13]Send response to host [17:26:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68451,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [17:26:13]free response buf [17:26:13]execute_script done [17:26:13]execute_script returns [17:26:13]free content buf [17:26:13]Sock 7.Close socket [17:26:13]Sock 7.Thread stoped [17:26:16]OFD Sender: No OFD packet to send [17:26:21]OFD Sender: No OFD packet to send [17:26:26]OFD Sender: No OFD packet to send [17:26:31]OFD Sender: No OFD packet to send [17:26:36]OFD Sender: No OFD packet to send [17:26:41]OFD Sender: No OFD packet to send [17:26:46]OFD Sender: No OFD packet to send [17:26:51]OFD Sender: No OFD packet to send [17:26:56]OFD Sender: No OFD packet to send [17:27:01]OFD Sender: No OFD packet to send [17:27:06]OFD Sender: No OFD packet to send [17:27:12]OFD Sender: No OFD packet to send [17:27:17]OFD Sender: No OFD packet to send [17:27:22]OFD Sender: No OFD packet to send [17:27:27]OFD Sender: No OFD packet to send [17:27:32]OFD Sender: No OFD packet to send [17:27:37]OFD Sender: No OFD packet to send [17:27:42]OFD Sender: No OFD packet to send [17:27:47]OFD Sender: No OFD packet to send [17:27:52]OFD Sender: No OFD packet to send [17:27:57]OFD Sender: No OFD packet to send [17:28:02]OFD Sender: No OFD packet to send [17:28:07]OFD Sender: No OFD packet to send [17:28:12]OFD Sender: No OFD packet to send [17:28:17]OFD Sender: No OFD packet to send [17:28:22]OFD Sender: No OFD packet to send [17:28:27]OFD Sender: No OFD packet to send [17:28:32]OFD Sender: No OFD packet to send [17:28:37]OFD Sender: No OFD packet to send [17:28:42]OFD Sender: No OFD packet to send [17:28:47]OFD Sender: No OFD packet to send [17:28:51]accept exits with 9 [17:28:51]New connection [17:28:51]New thread 3067133284 created [17:28:51]Thread 3067276644 joined [17:28:51]Waiting for new connection... [17:28:51] Sock 9.Parse request [17:28:51]Sock 9.Check first char [17:28:51]Sock 9.First char is OK [17:28:51]request: POST /json_proto HTTP/1.0 [17:28:51]Method: POST [17:28:51]URL: /json_proto [17:28:51]Method is POST - this is cgi request [17:28:51]url: /json_proto [17:28:51]query_string will be loaded in cgi processing [17:28:51]execute_cgi json_proto POST (null) [17:28:51]execute_cgi path=json_proto method=POST [17:28:51]POST find Content-Length [17:28:51]Host: 172.17.52.3:8080 [17:28:51]Content-Length: 766 [17:28:51]Content-Type: application/json [17:28:51] [17:28:51]POST finish read [17:28:51]Found Content-Length = 766 [17:28:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 350.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:51]execute_script... [17:28: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)210449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 350.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:51]POST & json_proto [17:28:51]process_json_proto [17:28:51]json parsed OK: [17:28:51]protocol is kg_v1.0 [17:28:51]action value=close_receipt [17:28:51]process_action close_receipt [17:28:51]cmd_close_receipt [17:28:51]MH_GetDate [17:28:51]Write to MH i2c: F0 00 00 AA 3A D3 [17:28:51]Write i2c OK [17:28:51]MH_I2C_Read... [17:28:51]Read from MH i2c: F0 [17:28:51]MH_I2C_Read... [17:28:51]Read from MH i2c: F0 09 00 [17:28:51]MH_I2C_Read... [17:28:51]Read from MH i2c: F0 09 00 AA 3A 00 5D 32 19 67 D7 68 A5 64 33 [17:28:51]GetLastDocTimeStamp 1729704379 [17:28:51]current date 1729704541 [17:28:51]FM_GetShiftState [17:28:51]SAM_PROTO_GetShiftState [17:28:51]wFMCommunicate request_size=4 [17:28:51]MH_SAM_APDU [17:28:51]CAPDU: 80 13 01 00 [17:28:51]Write to MH i2c: E2 08 00 AB 3A 80 13 01 00 00 00 00 00 62 [17:28:51]Write i2c OK [17:28:51]MH_I2C_Read... [17:28:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:51]Read from MH i2c: E2 [17:28:51]MH_I2C_Read... [17:28:51]Read from MH i2c: E2 0E 00 [17:28:51]MH_I2C_Read... [17:28:51]Read from MH i2c: E2 0E 00 AB 3A 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 D1 [17:28:51]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [17:28:51]wFMCommunicate OK [17:28:51]SAM_PROTO_GetShiftState done [17:28:51]FM_GetShiftState done [17:28:51]opened in 1729641385 [17:28:51]opened+sec_in_day 1729727785 [17:28:51]quantity*price = 35055 [17:28:51]sum+1 = 35057 [17:28:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 350.56 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 0.00 Безнал.: 350.56 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 75 23.10.2024 17:29 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871809 ФД: 68452 ФПД: 88897041619629 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172901&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68452&fm=88897041619629&tin=02508201610067®Number=0000000000091756&sum=35056 [17:28:52]StoreToDocumentArchive [17:28:52]shift 507 fd 68452 [17:28:52]save to /storage/0507/doc_00068452 [17:28:52]save last doc name /storage/0507/doc_00068452 to /storage/kkm_last_doc_name [17:28:52]save OK [17:28:52]Clear old archive folders... [17:28:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:28:52]tlvbuf is 0206FBB0 [17:28:52]SAM_PROTO_ClearQueue [17:28:52]wFMCommunicate request_size=4 [17:28:52]MH_SAM_APDU [17:28:52]CAPDU: 80 09 00 00 [17:28:52]Write to MH i2c: E2 08 00 B8 3A 80 09 00 00 00 00 00 00 64 [17:28:52]Write i2c OK [17:28:52]MH_I2C_Read... [17:28:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:28:52]Read from MH i2c: E2 [17:28:52]MH_I2C_Read... [17:28:52]Read from MH i2c: E2 03 00 [17:28:52]MH_I2C_Read... [17:28:52]Read from MH i2c: E2 03 00 B8 3A 00 90 00 66 [17:28:52]RAPDU: 90 00 [17:28:52]wFMCommunicate OK [17:28:52]SAM_PROTO_ClearQueue done [17:28:52]KKMCreateOFDPacket [17:28:52]OFDProtocolAddRootSTLVToBuf [17:28:52]FM_MakeSignedData [17:28:52]FM_MakeSignedData [17:28:52]SAM_PROTO_SignData [17:28:52]wFMCommunicate request_size=4 [17:28:52]MH_SAM_APDU [17:28:52]CAPDU: 80 0D 01 02 [17:28:52]Write to MH i2c: E2 08 00 B9 3A 80 0D 01 02 00 00 00 00 6C [17:28:52]Write i2c OK [17:28:52]MH_I2C_Read... [17:28:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:28:52]Read from MH i2c: E2 [17:28:52]MH_I2C_Read... [17:28:52]Read from MH i2c: E2 03 00 [17:28:52]MH_I2C_Read... [17:28:52]Read from MH i2c: E2 03 00 B9 3A 00 90 00 67 [17:28:52]RAPDU: 90 00 [17:28:52]wFMCommunicate OK [17:28:52]wFMCommunicate request_size=255 [17:28:52]MH_SAM_APDU [17:28: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 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 5D 32 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 64 0B 01 00 35 04 06 00 50 [17:28:52]Write to MH i2c: E2 02 01 BA 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 5D 32 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 64 0B 01 00 35 04 06 00 50 00 00 8D [17:28:52]Write i2c OK [17:28:52]MH_I2C_Read... [17:28:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:52]Read from MH i2c: E2 [17:28:52]MH_I2C_Read... [17:28:52]Read from MH i2c: E2 03 00 [17:28:52]MH_I2C_Read... [17:28:52]Read from MH i2c: E2 03 00 BA 3A 00 90 00 68 [17:28:52]RAPDU: 90 00 [17:28:52]wFMCommunicate OK [17:28:52]wFMCommunicate request_size=10 [17:28:52]MH_SAM_APDU [17:28:52]CAPDU: 80 0D 02 02 05 D9 F4 96 5A AD [17:28:52]Write to MH i2c: E2 0D 00 BB 3A 80 0D 02 02 05 00 D9 F4 96 5A AD 00 00 E3 [17:28:52]Write i2c OK [17:28:52]MH_I2C_Read... [17:28:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:52]Read from MH i2c: E2 [17:28:52]MH_I2C_Read... [17:28:52]Read from MH i2c: E2 03 00 [17:28:52]MH_I2C_Read... [17:28:52]Read from MH i2c: E2 03 00 BB 3A 00 90 00 69 [17:28:52]RAPDU: 90 00 [17:28:52]wFMCommunicate OK [17:28:52]wFMCommunicate request_size=4 [17:28:52]MH_SAM_APDU [17:28:52]CAPDU: 80 0D 03 02 [17:28:52]Write to MH i2c: E2 08 00 BC 3A 80 0D 03 02 00 00 00 00 71 [17:28:52]Write i2c OK [17:28:52]MH_I2C_Read... [17:28:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:28:52]Read from MH i2c: E2 [17:28:52]MH_I2C_Read... [17:28:52]Read from MH i2c: E2 0B 00 [17:28:52]MH_I2C_Read... [17:28:52]Read from MH i2c: E2 0B 00 BC 3A 00 18 5D B6 1C 09 E4 68 1D 90 00 2B [17:28:52]RAPDU: 18 5D B6 1C 09 E4 68 1D 90 00 [17:28:52]wFMCommunicate OK [17:28:52]SAM_PROTO_SignData done [17:28:52]FM_MakeSignedData done [17:28:52]CreateOFDProtocolMessage [17:28:52]wFMCommunicate request_size=4 [17:28:52]MH_SAM_APDU [17:28:52]CAPDU: 80 11 00 00 [17:28:52]Write to MH i2c: E2 08 00 BD 3A 80 11 00 00 00 00 00 00 71 [17:28:52]Write i2c OK [17:28:52]MH_I2C_Read... [17:28:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:52]Read from MH i2c: E2 [17:28:52]MH_I2C_Read... [17:28:52]Read from MH i2c: E2 17 00 [17:28:52]MH_I2C_Read... [17:28:52]Read from MH i2c: E2 17 00 BD 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 C5 [17:28:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [17:28:52]wFMCommunicate OK [17:28:52]CreateOFDProtocolMessage done [17:28:52]OFDSenderStorePacket 68452 [17:28:52]StoreOFDPacket docnum=68452 [17:28:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 0E 45 07 01 A7 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 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 5D 32 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 64 0B 01 00 35 04 06 00 50 D9 F4 96 5A AD 18 5D B6 1C 09 E4 68 1D [17:28:52]CheckFolder [17:28:52]dirname=/storage/ofd_packets [17:28:52]CheckFolder done [17:28:52]ProducePacketName [17:28:52]name=ofd_packets/00068452 [17:28:52]NVStorageSaveData ofd_packets/00068452 [17:28:52]File name is /storage/ofd_packets/00068452 [17:28:52]Write 301 bytes [17:28:52]NVStorageSaveData done [17:28:52]OFDSenderStorePacket done [17:28:52]KKMCreateOFDPacket done [17:28:52]NVStorageSaveData kkm_last_timestamp [17:28:52]File name is /storage/kkm_last_timestamp [17:28:52]Write 4 bytes [17:28:52]NVStorageSaveData done [17:28:52]ExternCall_PrintAddStr [17:28:52]wPrintStart [17:28:52]Write to MH i2c: 01 00 00 BE 3A F8 [17:28:52]Write i2c OK [17:28:52]MH_I2C_Read... [17:28:52]Read from MH i2c: 01 [17:28:52]MH_I2C_Read... [17:28:52]Read from MH i2c: 01 07 00 [17:28:52]MH_I2C_Read... [17:28:52]Read from MH i2c: 01 07 00 BE 3A 00 04 00 00 00 FF 0F 11 [17:28:52]RasterBufferAndPrint [17:28:52]line Счет N : (1)210449 [17:28:52]line ИНН: 02508201610067 [17:28:52]line Контрольно-Кассовый Чек [17:28:52]line ПРОДАЖА [17:28:52]line ТРК (МРК, ГНК) : 11 [17:28:52]line Товар: 2710124130 [17:28:52]line Аи-92-К-2 [17:28:52]line 5.240 * 66.90 [17:28:52]line = 350.56 [17:28:52]line НДС 12% НСП 1% [17:28:52]line > о реализуемом товаре [17:28:52]line ИТОГО: 350.56 [17:28:52]line НСП 1% : 3.10 [17:28:52]line НДС 12% : 37.23 [17:28:52]line Наличными: 0.00 [17:28:52]line Безнал.: 350.56 [17:28:52]line Место: АЗС № 147 "Партнер Нефть" [17:28:52]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [17:28:52]line СНО: Общий режим [17:28:52]line Чек 75 23.10.2024 17:29 [17:28:52]line Смена: 507 ФФД: 1.0 [17:28:52]line ЗНМ: 0300000094 [17:28:52]line РНМ: 0000000000091756 [17:28:52]line Версия ККМ: 001 [17:28:52]line Платежная система: Mbank [17:28:52]line ФМ: 0000000000871809 [17:28:52]line ФД: 68452 [17:28:52]line ФПД: 88897041619629 [17:28:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172901&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68452&fm=88897041619629&tin=02508201610067®Number=0000000000091756&sum=35056 [17:28:52]written 0, free lines is 4095 [17:28:52]OFD Sender: Processing packet 68452 [packets to send 8, broken 7] [17:28:52]ProducePacketName [17:28:52]name=ofd_packets/00068452 [17:28:52]OFD Sender: To server: pG, [17:28:53]CommunicateWithHost lk.salyk.kg:30040 [17:28:53]ConnectInit lk.salyk.kg [17:28:53]Write to MH i2c: 01 00 00 E6 3A 20 [17:28:53]Write i2c OK [17:28:53]MH_I2C_Read... [17:28:53]Read from MH i2c: 01 [17:28:53]MH_I2C_Read... [17:28:53]Read from MH i2c: 01 07 00 [17:28:53]MH_I2C_Read... [17:28:53]Read from MH i2c: 01 07 00 E6 3A 00 04 00 00 00 D7 0C 0E [17:28:53]RasterBufferAndPrint [17:28:53]line [17:28:53]line [17:28:53]line [17:28:53]line [17:28:53]line [17:28:53]written 0, free lines is 3290 [17:28:53]MH_Cut [17:28:53]Write to MH i2c: D1 01 00 ED 3A 01 F9 [17:28:53]Write i2c OK [17:28:53]MH_I2C_Read... [17:28:53]Read from MH i2c: D1 [17:28:53]MH_I2C_Read... [17:28:53]Read from MH i2c: D1 01 00 [17:28:53]MH_I2C_Read... [17:28:53]Read from MH i2c: D1 01 00 ED 3A 00 F8 [17:28:53]Write to MH i2c: 01 00 00 EE 3A 28 [17:28:53]Write i2c OK [17:28:53]MH_I2C_Read... [17:28:53]Connected sock=11 [17:28:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 0E 45 07 01 A7 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 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 5D 32 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 64 0B 01 00 35 04 06 00 50 D9 F4 96 5A AD 18 5D B6 1C 09 E4 68 1D [17:28:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 3A B4 47 00 E1 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 64 0B 01 00 F4 03 04 00 51 D8 18 67 B6 04 01 00 00 B1 4F 24 92 8D FA E4 A5 [17:28:53]CommunicateWithHost err = 0 [17:28:53]CheckOFDResponse [17:28:53]1017 (14) - 77093643461234 [17:28:53]1041 (16) - 0000000000871809 [17:28:53]1040 (4) - 68452 [17:28:53]1012 (4) - 23.10.2024 11:04 [17:28:53]1206 (1) - 0 [17:28:53]OFD Sender: Remove packet 68452 [17:28:53]ProducePacketName [17:28:53]name=ofd_packets/00068452 [17:28:53]NVStorageDeleteData [17:28:54]OFD Sender: No OFD packet to send [17:28:54]*** Cut start [17:28:54]*** Partial cut [17:28:54]*** CUTSNS_PIN = 1 [17:28:54]*** CUTSNS_PIN = 0 [17:28:54]*** Brake cut motor [17:28:54]Read from MH i2c: 01 [17:28:54]MH_I2C_Read... [17:28:54]*** Stop cut motor [17:28:54]*** Cut end [17:28:54]Read from MH i2c: 01 07 00 [17:28:54]MH_I2C_Read... [17:28:54]Read from MH i2c: 01 07 00 EE 3A 00 04 00 00 00 FF 0F 41 [17:28:54]process_action close_receipt done [17:28:54]requested_data is exist [17:28:54]produce_requested_data [17:28:54]requested_item fm.sn is exist - process it [17:28:54]wFMCommunicate request_size=4 [17:28:54]MH_SAM_APDU [17:28:54]CAPDU: 80 11 00 00 [17:28:54]Write to MH i2c: E2 08 00 EF 3A 80 11 00 00 00 00 00 00 A3 [17:28:54]Write i2c OK [17:28:54]MH_I2C_Read... [17:28:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:54]Read from MH i2c: E2 [17:28:54]MH_I2C_Read... [17:28:54]Read from MH i2c: E2 17 00 [17:28:54]MH_I2C_Read... [17:28:54]Read from MH i2c: E2 17 00 EF 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 F7 [17:28:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [17:28:54]wFMCommunicate OK [17:28:54]requested_item fd.num is exist - process it [17:28:54]SAM_PROTO_GetFieldsCounters [17:28:54]wFMCommunicate request_size=4 [17:28:54]MH_SAM_APDU [17:28:54]CAPDU: 80 13 00 00 [17:28:54]Write to MH i2c: E2 08 00 F0 3A 80 13 00 00 00 00 00 00 A6 [17:28:54]Write i2c OK [17:28:54]MH_I2C_Read... [17:28:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:28:55]Read from MH i2c: E2 [17:28:55]MH_I2C_Read... [17:28:55]Read from MH i2c: E2 62 00 [17:28:55]MH_I2C_Read... [17:28:55]Read from MH i2c: E2 62 00 F0 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 64 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [17:28:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 64 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:28:55]wFMCommunicate OK [17:28:55]SAM_PROTO_GetFieldsCounters done [17:28:55]requested_item shift.num is exist - process it [17:28:55]requested_item shift.opened is exist - process it [17:28:55]req_shift_opened [17:28:55]FM_GetShiftState [17:28:55]SAM_PROTO_GetShiftState [17:28:55]wFMCommunicate request_size=4 [17:28:55]MH_SAM_APDU [17:28:55]CAPDU: 80 13 01 00 [17:28:55]Write to MH i2c: E2 08 00 F1 3A 80 13 01 00 00 00 00 00 A8 [17:28:55]Write i2c OK [17:28:55]MH_I2C_Read... [17:28:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:55]Read from MH i2c: E2 [17:28:55]MH_I2C_Read... [17:28:55]Read from MH i2c: E2 0E 00 [17:28:55]MH_I2C_Read... [17:28:55]Read from MH i2c: E2 0E 00 F1 3A 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 17 [17:28:55]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [17:28:55]wFMCommunicate OK [17:28:55]SAM_PROTO_GetShiftState done [17:28:55]FM_GetShiftState done [17:28:55]req_shift_opened done [17:28:55]requested_item shift.open_date is exist - process it [17:28:55]req_shift_open_date [17:28:55]req_shift_open_date done [17:28:55]produce_requested_data done [17:28:55]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68452,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [17:28:55]process_action_free close_receipt [17:28:55]json_value_free [17:28:55]json_value_free done [17:28:55]process_json_proto returns [17:28:55]Send response to host [17:28:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68452,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [17:28:55]free response buf [17:28:55]execute_script done [17:28:55]execute_script returns [17:28:55]free content buf [17:28:55]Sock 9.Close socket [17:28:55]Sock 9.Thread stoped [17:28:59]OFD Sender: No OFD packet to send [17:29:04]OFD Sender: No OFD packet to send [17:29:09]OFD Sender: No OFD packet to send [17:29:14]OFD Sender: No OFD packet to send [17:29:19]OFD Sender: No OFD packet to send [17:29:24]OFD Sender: No OFD packet to send [17:29:29]OFD Sender: No OFD packet to send [17:29:34]OFD Sender: No OFD packet to send [17:29:39]OFD Sender: No OFD packet to send [17:29:44]OFD Sender: No OFD packet to send [17:29:49]OFD Sender: No OFD packet to send [17:29:54]OFD Sender: No OFD packet to send [17:29:59]OFD Sender: No OFD packet to send [17:30:04]OFD Sender: No OFD packet to send [17:30:09]OFD Sender: No OFD packet to send [17:30:14]OFD Sender: No OFD packet to send [17:30:19]OFD Sender: No OFD packet to send [17:30:24]OFD Sender: No OFD packet to send [17:30:29]OFD Sender: No OFD packet to send [17:30:34]OFD Sender: No OFD packet to send [17:30:39]OFD Sender: No OFD packet to send [17:30:44]OFD Sender: No OFD packet to send [17:30:49]OFD Sender: No OFD packet to send [17:30:54]OFD Sender: No OFD packet to send [17:30:59]OFD Sender: No OFD packet to send [17:31:04]OFD Sender: No OFD packet to send [17:31:09]OFD Sender: No OFD packet to send [17:31:14]OFD Sender: No OFD packet to send [17:31:19]OFD Sender: No OFD packet to send [17:31:24]OFD Sender: No OFD packet to send [17:31:29]OFD Sender: No OFD packet to send [17:31:34]OFD Sender: No OFD packet to send [17:31:39]OFD Sender: No OFD packet to send [17:31:44]OFD Sender: No OFD packet to send [17:31:49]OFD Sender: No OFD packet to send [17:31:54]OFD Sender: No OFD packet to send [17:31:59]OFD Sender: No OFD packet to send [17:32:04]OFD Sender: No OFD packet to send [17:32:09]OFD Sender: No OFD packet to send [17:32:14]OFD Sender: No OFD packet to send [17:32:19]OFD Sender: No OFD packet to send [17:32:24]OFD Sender: No OFD packet to send [17:32:29]OFD Sender: No OFD packet to send [17:32:34]OFD Sender: No OFD packet to send [17:32:39]OFD Sender: No OFD packet to send [17:32:44]OFD Sender: No OFD packet to send [17:32:49]OFD Sender: No OFD packet to send [17:32:54]OFD Sender: No OFD packet to send [17:32:59]OFD Sender: No OFD packet to send [17:33:04]OFD Sender: No OFD packet to send [17:33:09]OFD Sender: No OFD packet to send [17:33:14]OFD Sender: No OFD packet to send [17:33:19]OFD Sender: No OFD packet to send [17:33:24]OFD Sender: No OFD packet to send [17:33:29]OFD Sender: No OFD packet to send [17:33:34]OFD Sender: No OFD packet to send [17:33:39]OFD Sender: No OFD packet to send [17:33:44]OFD Sender: No OFD packet to send [17:33:49]OFD Sender: No OFD packet to send [17:33:54]OFD Sender: No OFD packet to send [17:33:59]OFD Sender: No OFD packet to send [17:34:04]OFD Sender: No OFD packet to send [17:34:09]OFD Sender: No OFD packet to send [17:34:14]OFD Sender: No OFD packet to send [17:34:19]OFD Sender: No OFD packet to send [17:34:24]OFD Sender: No OFD packet to send [17:34:29]OFD Sender: No OFD packet to send [17:34:34]OFD Sender: No OFD packet to send [17:34:39]OFD Sender: No OFD packet to send [17:34:44]OFD Sender: No OFD packet to send [17:34:49]OFD Sender: No OFD packet to send [17:34:54]OFD Sender: No OFD packet to send [17:34:59]OFD Sender: No OFD packet to send [17:35:04]OFD Sender: No OFD packet to send [17:35:09]OFD Sender: No OFD packet to send [17:35:14]OFD Sender: No OFD packet to send [17:35:19]OFD Sender: No OFD packet to send [17:35:24]OFD Sender: No OFD packet to send [17:35:29]OFD Sender: No OFD packet to send [17:35:34]OFD Sender: No OFD packet to send [17:35:39]OFD Sender: No OFD packet to send [17:35:44]OFD Sender: No OFD packet to send [17:35:49]OFD Sender: No OFD packet to send [17:35:54]OFD Sender: No OFD packet to send [17:35:59]OFD Sender: No OFD packet to send [17:36:04]OFD Sender: No OFD packet to send [17:36:09]OFD Sender: No OFD packet to send [17:36:14]OFD Sender: No OFD packet to send [17:36:19]OFD Sender: No OFD packet to send [17:36:24]OFD Sender: No OFD packet to send [17:36:29]OFD Sender: No OFD packet to send [17:36:34]OFD Sender: No OFD packet to send [17:36:39]OFD Sender: No OFD packet to send [17:36:44]OFD Sender: No OFD packet to send [17:36:47]accept exits with 7 [17:36:47]New connection [17:36:47]New thread 3067276644 created [17:36:47]Thread 3067133284 joined [17:36:47]Waiting for new connection... [17:36:47] Sock 7.Parse request [17:36:47]Sock 7.Check first char [17:36:47]Sock 7.First char is OK [17:36:47]request: POST /json_proto HTTP/1.0 [17:36:47]Method: POST [17:36:47]URL: /json_proto [17:36:47]Method is POST - this is cgi request [17:36:47]url: /json_proto [17:36:47]query_string will be loaded in cgi processing [17:36:47]execute_cgi json_proto POST (null) [17:36:47]execute_cgi path=json_proto method=POST [17:36:47]POST find Content-Length [17:36:47]Host: 172.17.52.3:8080 [17:36:47]Content-Length: 763 [17:36:47]Content-Type: application/json [17:36:47] [17:36:47]POST finish read [17:36:47]Found Content-Length = 763 [17:36:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210450", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:47]execute_script... [17:36: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)210450", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:47]POST & json_proto [17:36:47]process_json_proto [17:36:47]json parsed OK: [17:36:47]protocol is kg_v1.0 [17:36:47]action value=close_receipt [17:36:47]process_action close_receipt [17:36:47]cmd_close_receipt [17:36:47]MH_GetDate [17:36:47]Write to MH i2c: F0 00 00 F2 3A 1B [17:36:47]Write i2c OK [17:36:47]MH_I2C_Read... [17:36:47]Read from MH i2c: F0 [17:36:47]MH_I2C_Read... [17:36:47]Read from MH i2c: F0 09 00 [17:36:47]MH_I2C_Read... [17:36:47]Read from MH i2c: F0 09 00 F2 3A 00 38 34 19 67 D7 68 A5 64 58 [17:36:47]GetLastDocTimeStamp 1729704541 [17:36:47]current date 1729705016 [17:36:47]FM_GetShiftState [17:36:47]SAM_PROTO_GetShiftState [17:36:47]wFMCommunicate request_size=4 [17:36:47]MH_SAM_APDU [17:36:47]CAPDU: 80 13 01 00 [17:36:47]Write to MH i2c: E2 08 00 F3 3A 80 13 01 00 00 00 00 00 AA [17:36:47]Write i2c OK [17:36:47]MH_I2C_Read... [17:36:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:47]Read from MH i2c: E2 [17:36:47]MH_I2C_Read... [17:36:47]Read from MH i2c: E2 0E 00 [17:36:47]MH_I2C_Read... [17:36:47]Read from MH i2c: E2 0E 00 F3 3A 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 19 [17:36:47]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [17:36:47]wFMCommunicate OK [17:36:47]SAM_PROTO_GetShiftState done [17:36:47]FM_GetShiftState done [17:36:47]opened in 1729641385 [17:36:47]opened+sec_in_day 1729727785 [17:36:47]quantity*price = 50063 [17:36:47]sum+1 = 50064 [17:36:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.63 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.63 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 76 23.10.2024 17:36 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871809 ФД: 68453 ФПД: 203306271704648 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173656&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68453&fm=203306271704648&tin=02508201610067®Number=0000000000091756&sum=50063 [17:36:48]StoreToDocumentArchive [17:36:48]shift 507 fd 68453 [17:36:48]save to /storage/0507/doc_00068453 [17:36:48]save last doc name /storage/0507/doc_00068453 to /storage/kkm_last_doc_name [17:36:48]save OK [17:36:48]Clear old archive folders... [17:36:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:36:48]tlvbuf is 01FAAE60 [17:36:48]SAM_PROTO_ClearQueue [17:36:48]wFMCommunicate request_size=4 [17:36:48]MH_SAM_APDU [17:36:48]CAPDU: 80 09 00 00 [17:36:48]Write to MH i2c: E2 08 00 00 3B 80 09 00 00 00 00 00 00 AD [17:36:48]Write i2c OK [17:36:48]MH_I2C_Read... [17:36:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:36:48]Read from MH i2c: E2 [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: E2 03 00 [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: E2 03 00 00 3B 00 90 00 AF [17:36:48]RAPDU: 90 00 [17:36:48]wFMCommunicate OK [17:36:48]SAM_PROTO_ClearQueue done [17:36:48]KKMCreateOFDPacket [17:36:48]OFDProtocolAddRootSTLVToBuf [17:36:48]FM_MakeSignedData [17:36:48]FM_MakeSignedData [17:36:48]SAM_PROTO_SignData [17:36:48]wFMCommunicate request_size=4 [17:36:48]MH_SAM_APDU [17:36:48]CAPDU: 80 0D 01 02 [17:36:48]Write to MH i2c: E2 08 00 01 3B 80 0D 01 02 00 00 00 00 B5 [17:36:48]Write i2c OK [17:36:48]MH_I2C_Read... [17:36:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:36:48]Read from MH i2c: E2 [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: E2 03 00 [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: E2 03 00 01 3B 00 90 00 B0 [17:36:48]RAPDU: 90 00 [17:36:48]wFMCommunicate OK [17:36:48]wFMCommunicate request_size=255 [17:36:48]MH_SAM_APDU [17:36:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 38 34 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 65 0B 01 00 35 04 06 00 B8 E7 EE 1B [17:36:48]Write to MH i2c: E2 02 01 02 3B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 38 34 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 65 0B 01 00 35 04 06 00 B8 E7 EE 1B 00 00 8E [17:36:48]Write i2c OK [17:36:48]MH_I2C_Read... [17:36:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:48]Read from MH i2c: E2 [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: E2 03 00 [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: E2 03 00 02 3B 00 90 00 B1 [17:36:48]RAPDU: 90 00 [17:36:48]wFMCommunicate OK [17:36:48]wFMCommunicate request_size=7 [17:36:48]MH_SAM_APDU [17:36:48]CAPDU: 80 0D 02 02 02 06 48 [17:36:48]Write to MH i2c: E2 0A 00 03 3B 80 0D 02 02 02 00 06 48 00 00 0A [17:36:48]Write i2c OK [17:36:48]MH_I2C_Read... [17:36:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:48]Read from MH i2c: E2 [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: E2 03 00 [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: E2 03 00 03 3B 00 90 00 B2 [17:36:48]RAPDU: 90 00 [17:36:48]wFMCommunicate OK [17:36:48]wFMCommunicate request_size=4 [17:36:48]MH_SAM_APDU [17:36:48]CAPDU: 80 0D 03 02 [17:36:48]Write to MH i2c: E2 08 00 04 3B 80 0D 03 02 00 00 00 00 BA [17:36:48]Write i2c OK [17:36:48]MH_I2C_Read... [17:36:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:36:48]Read from MH i2c: E2 [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: E2 0B 00 [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: E2 0B 00 04 3B 00 D6 CB BF EF 98 BD 55 0A 90 00 BE [17:36:48]RAPDU: D6 CB BF EF 98 BD 55 0A 90 00 [17:36:48]wFMCommunicate OK [17:36:48]SAM_PROTO_SignData done [17:36:48]FM_MakeSignedData done [17:36:48]CreateOFDProtocolMessage [17:36:48]wFMCommunicate request_size=4 [17:36:48]MH_SAM_APDU [17:36:48]CAPDU: 80 11 00 00 [17:36:48]Write to MH i2c: E2 08 00 05 3B 80 11 00 00 00 00 00 00 BA [17:36:48]Write i2c OK [17:36:48]MH_I2C_Read... [17:36:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:48]Read from MH i2c: E2 [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: E2 17 00 [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: E2 17 00 05 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 0E [17:36:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [17:36:48]wFMCommunicate OK [17:36:48]CreateOFDProtocolMessage done [17:36:48]OFDSenderStorePacket 68453 [17:36:48]StoreOFDPacket docnum=68453 [17:36:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0C 01 00 00 C9 D4 04 01 70 CD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 38 34 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 65 0B 01 00 35 04 06 00 B8 E7 EE 1B 06 48 D6 CB BF EF 98 BD 55 0A [17:36:48]CheckFolder [17:36:48]dirname=/storage/ofd_packets [17:36:48]CheckFolder done [17:36:48]ProducePacketName [17:36:48]name=ofd_packets/00068453 [17:36:48]NVStorageSaveData ofd_packets/00068453 [17:36:48]File name is /storage/ofd_packets/00068453 [17:36:48]Write 298 bytes [17:36:48]NVStorageSaveData done [17:36:48]OFDSenderStorePacket done [17:36:48]KKMCreateOFDPacket done [17:36:48]NVStorageSaveData kkm_last_timestamp [17:36:48]File name is /storage/kkm_last_timestamp [17:36:48]Write 4 bytes [17:36:48]NVStorageSaveData done [17:36:48]ExternCall_PrintAddStr [17:36:48]wPrintStart [17:36:48]Write to MH i2c: 01 00 00 06 3B 41 [17:36:48]Write i2c OK [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: 01 [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: 01 07 00 [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: 01 07 00 06 3B 00 04 00 00 00 FF 0F 5A [17:36:48]RasterBufferAndPrint [17:36:48]line Счет N : (1)210450 [17:36:48]line ИНН: 02508201610067 [17:36:48]line Контрольно-Кассовый Чек [17:36:48]line ПРОДАЖА [17:36:48]line ТРК (МРК, ГНК) : 32 [17:36:48]line Товар: 2710194210 [17:36:48]line ДТ-К-2 [17:36:48]line 6.570 * 76.20 [17:36:48]line = 500.63 [17:36:48]line НДС 12% НСП 1% [17:36:48]line > о реализуемом товаре [17:36:48]line ИТОГО: 500.63 [17:36:48]line НСП 1% : 4.43 [17:36:48]line НДС 12% : 53.16 [17:36:48]line Наличными: 0.00 [17:36:48]line Безнал.: 500.63 [17:36:48]line Место: АЗС № 147 "Партнер Нефть" [17:36:48]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [17:36:48]line СНО: Общий режим [17:36:48]line Чек 76 23.10.2024 17:36 [17:36:48]line Смена: 507 ФФД: 1.0 [17:36:48]line ЗНМ: 0300000094 [17:36:48]line РНМ: 0000000000091756 [17:36:48]line Версия ККМ: 001 [17:36:48]line Платежная система: Mbank [17:36:48]line ФМ: 0000000000871809 [17:36:48]line ФД: 68453 [17:36:48]line ФПД: 203306271704648 [17:36:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173656&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68453&fm=203306271704648&tin=02508201610067®Number=0000000000091756&sum=50063 [17:36:49]OFD Sender: Processing packet 68453 [packets to send 8, broken 7] [17:36:49]ProducePacketName [17:36:49]name=ofd_packets/00068453 [17:36:49]OFD Sender: To server: pG, [17:36:49]CommunicateWithHost lk.salyk.kg:30040 [17:36:49]ConnectInit lk.salyk.kg [17:36:49]written 0, free lines is 4095 [17:36:49]Connected sock=10 [17:36:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0C 01 00 00 C9 D4 04 01 70 CD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 38 34 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 65 0B 01 00 35 04 06 00 B8 E7 EE 1B 06 48 D6 CB BF EF 98 BD 55 0A [17:36:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 E3 64 47 00 84 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 31 38 30 39 10 04 04 00 65 0B 01 00 F4 03 04 00 2D DA 18 67 B6 04 01 00 00 FE B5 F0 F0 71 40 48 37 [17:36:49]CommunicateWithHost err = 0 [17:36:49]CheckOFDResponse [17:36:49]1017 (14) - 77093643461234 [17:36:49]1041 (16) - 0000000000871809 [17:36:49]1040 (4) - 68453 [17:36:49]1012 (4) - 23.10.2024 11:12 [17:36:49]1206 (1) - 0 [17:36:49]OFD Sender: Remove packet 68453 [17:36:49]ProducePacketName [17:36:49]name=ofd_packets/00068453 [17:36:49]NVStorageDeleteData [17:36:49]Write to MH i2c: 01 00 00 2E 3B 69 [17:36:49]Write i2c OK [17:36:49]MH_I2C_Read... [17:36:49]Read from MH i2c: 01 [17:36:49]MH_I2C_Read... [17:36:49]Read from MH i2c: 01 07 00 [17:36:49]MH_I2C_Read... [17:36:49]Read from MH i2c: 01 07 00 2E 3B 00 04 00 00 00 E6 0C 66 [17:36:49]RasterBufferAndPrint [17:36:49]line [17:36:49]line [17:36:49]line [17:36:49]line [17:36:49]line [17:36:49]written 0, free lines is 3308 [17:36:49]MH_Cut [17:36:49]Write to MH i2c: D1 01 00 35 3B 01 42 [17:36:49]Write i2c OK [17:36:49]MH_I2C_Read... [17:36:49]Read from MH i2c: D1 [17:36:49]MH_I2C_Read... [17:36:49]Read from MH i2c: D1 01 00 [17:36:49]MH_I2C_Read... [17:36:49]Read from MH i2c: D1 01 00 35 3B 00 41 [17:36:49]Write to MH i2c: 01 00 00 36 3B 71 [17:36:49]Write i2c OK [17:36:49]MH_I2C_Read... [17:36:49]OFD Sender: No OFD packet to send [17:36:50]*** Cut start [17:36:50]*** Partial cut [17:36:50]*** CUTSNS_PIN = 1 [17:36:50]*** CUTSNS_PIN = 0 [17:36:50]*** Brake cut motor [17:36:50]Read from MH i2c: 01 [17:36:50]MH_I2C_Read... [17:36:50]*** Stop cut motor [17:36:50]*** Cut end [17:36:50]Read from MH i2c: 01 07 00 [17:36:50]MH_I2C_Read... [17:36:50]Read from MH i2c: 01 07 00 36 3B 00 04 00 00 00 FF 0F 8A [17:36:50]process_action close_receipt done [17:36:50]requested_data is exist [17:36:50]produce_requested_data [17:36:50]requested_item fm.sn is exist - process it [17:36:50]wFMCommunicate request_size=4 [17:36:50]MH_SAM_APDU [17:36:50]CAPDU: 80 11 00 00 [17:36:50]Write to MH i2c: E2 08 00 37 3B 80 11 00 00 00 00 00 00 EC [17:36:50]Write i2c OK [17:36:50]MH_I2C_Read... [17:36:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:50]Read from MH i2c: E2 [17:36:50]MH_I2C_Read... [17:36:50]Read from MH i2c: E2 17 00 [17:36:50]MH_I2C_Read... [17:36:50]Read from MH i2c: E2 17 00 37 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 40 [17:36:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [17:36:50]wFMCommunicate OK [17:36:50]requested_item fd.num is exist - process it [17:36:50]SAM_PROTO_GetFieldsCounters [17:36:50]wFMCommunicate request_size=4 [17:36:50]MH_SAM_APDU [17:36:50]CAPDU: 80 13 00 00 [17:36:50]Write to MH i2c: E2 08 00 38 3B 80 13 00 00 00 00 00 00 EF [17:36:50]Write i2c OK [17:36:50]MH_I2C_Read... [17:36:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:51]Read from MH i2c: E2 [17:36:51]MH_I2C_Read... [17:36:51]Read from MH i2c: E2 62 00 [17:36:51]MH_I2C_Read... [17:36:51]Read from MH i2c: E2 62 00 38 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 65 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [17:36:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 65 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:36:51]wFMCommunicate OK [17:36:51]SAM_PROTO_GetFieldsCounters done [17:36:51]requested_item shift.num is exist - process it [17:36:51]requested_item shift.opened is exist - process it [17:36:51]req_shift_opened [17:36:51]FM_GetShiftState [17:36:51]SAM_PROTO_GetShiftState [17:36:51]wFMCommunicate request_size=4 [17:36:51]MH_SAM_APDU [17:36:51]CAPDU: 80 13 01 00 [17:36:51]Write to MH i2c: E2 08 00 39 3B 80 13 01 00 00 00 00 00 F1 [17:36:51]Write i2c OK [17:36:51]MH_I2C_Read... [17:36:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:51]Read from MH i2c: E2 [17:36:51]MH_I2C_Read... [17:36:51]Read from MH i2c: E2 0E 00 [17:36:51]MH_I2C_Read... [17:36:51]Read from MH i2c: E2 0E 00 39 3B 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 60 [17:36:51]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [17:36:51]wFMCommunicate OK [17:36:51]SAM_PROTO_GetShiftState done [17:36:51]FM_GetShiftState done [17:36:51]req_shift_opened done [17:36:51]requested_item shift.open_date is exist - process it [17:36:51]req_shift_open_date [17:36:51]req_shift_open_date done [17:36:51]produce_requested_data done [17:36:51]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68453,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [17:36:51]process_action_free close_receipt [17:36:51]json_value_free [17:36:51]json_value_free done [17:36:51]process_json_proto returns [17:36:51]Send response to host [17:36:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68453,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [17:36:51]free response buf [17:36:51]execute_script done [17:36:51]execute_script returns [17:36:51]free content buf [17:36:51]Sock 7.Close socket [17:36:51]Sock 7.Thread stoped [17:36:54]OFD Sender: No OFD packet to send [17:36:59]OFD Sender: No OFD packet to send [17:37:04]OFD Sender: No OFD packet to send [17:37:09]OFD Sender: No OFD packet to send [17:37:14]OFD Sender: No OFD packet to send [17:37:19]OFD Sender: No OFD packet to send [17:37:24]OFD Sender: No OFD packet to send [17:37:29]OFD Sender: No OFD packet to send [17:37:34]OFD Sender: No OFD packet to send [17:37:39]OFD Sender: No OFD packet to send [17:37:44]OFD Sender: No OFD packet to send [17:37:49]OFD Sender: No OFD packet to send [17:37:54]OFD Sender: No OFD packet to send [17:37:59]OFD Sender: No OFD packet to send [17:38:04]OFD Sender: No OFD packet to send [17:38:09]OFD Sender: No OFD packet to send [17:38:14]OFD Sender: No OFD packet to send [17:38:19]OFD Sender: No OFD packet to send [17:38:24]OFD Sender: No OFD packet to send [17:38:30]OFD Sender: No OFD packet to send [17:38:35]OFD Sender: No OFD packet to send [17:38:40]OFD Sender: No OFD packet to send [17:38:45]OFD Sender: No OFD packet to send [17:38:50]OFD Sender: No OFD packet to send [17:38:55]OFD Sender: No OFD packet to send [17:39:00]OFD Sender: No OFD packet to send [17:39:05]OFD Sender: No OFD packet to send [17:39:10]OFD Sender: No OFD packet to send [17:39:15]OFD Sender: No OFD packet to send [17:39:20]OFD Sender: No OFD packet to send [17:39:25]OFD Sender: No OFD packet to send [17:39:30]OFD Sender: No OFD packet to send [17:39:35]OFD Sender: No OFD packet to send [17:39:40]OFD Sender: No OFD packet to send [17:39:45]OFD Sender: No OFD packet to send [17:39:50]OFD Sender: No OFD packet to send [17:39:54]accept exits with 9 [17:39:54]New connection [17:39:54]New thread 3067133284 created [17:39:54]Thread 3067276644 joined [17:39:54]Waiting for new connection... [17:39:54] Sock 9.Parse request [17:39:54]Sock 9.Check first char [17:39:54]Sock 9.First char is OK [17:39:54]request: POST /json_proto HTTP/1.0 [17:39:54]Method: POST [17:39:54]URL: /json_proto [17:39:54]Method is POST - this is cgi request [17:39:54]url: /json_proto [17:39:54]query_string will be loaded in cgi processing [17:39:54]execute_cgi json_proto POST (null) [17:39:54]execute_cgi path=json_proto method=POST [17:39:54]POST find Content-Length [17:39:54]Host: 172.17.52.3:8080 [17:39:54]Content-Length: 677 [17:39:54]Content-Type: application/json [17:39:54] [17:39:54]POST finish read [17:39:54]Found Content-Length = 677 [17:39:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:39:54]execute_script... [17:39: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)210451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:39:54]POST & json_proto [17:39:54]process_json_proto [17:39:54]json parsed OK: [17:39:54]protocol is kg_v1.0 [17:39:54]action value=close_receipt [17:39:54]process_action close_receipt [17:39:54]cmd_close_receipt [17:39:54]MH_GetDate [17:39:54]Write to MH i2c: F0 00 00 3A 3B 64 [17:39:54]Write i2c OK [17:39:54]MH_I2C_Read... [17:39:54]Read from MH i2c: F0 [17:39:54]MH_I2C_Read... [17:39:54]Read from MH i2c: F0 09 00 [17:39:54]MH_I2C_Read... [17:39:54]Read from MH i2c: F0 09 00 3A 3B 00 F4 34 19 67 D7 68 A5 64 5D [17:39:54]GetLastDocTimeStamp 1729705016 [17:39:54]current date 1729705204 [17:39:54]FM_GetShiftState [17:39:54]SAM_PROTO_GetShiftState [17:39:54]wFMCommunicate request_size=4 [17:39:54]MH_SAM_APDU [17:39:54]CAPDU: 80 13 01 00 [17:39:54]Write to MH i2c: E2 08 00 3B 3B 80 13 01 00 00 00 00 00 F3 [17:39:54]Write i2c OK [17:39:54]MH_I2C_Read... [17:39:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:54]Read from MH i2c: E2 [17:39:54]MH_I2C_Read... [17:39:54]Read from MH i2c: E2 0E 00 [17:39:54]MH_I2C_Read... [17:39:54]Read from MH i2c: E2 0E 00 3B 3B 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 62 [17:39:54]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [17:39:54]wFMCommunicate OK [17:39:54]SAM_PROTO_GetShiftState done [17:39:54]FM_GetShiftState done [17:39:54]opened in 1729641385 [17:39:54]opened+sec_in_day 1729727785 [17:39:54]quantity*price = 40006 [17:39:54]sum+1 = 40007 [17:39:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 147 "Партнер Нефть" Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 СНО: Общий режим Чек 77 23.10.2024 17:40 Смена: 507 ФФД: 1.0 ЗНМ: 0300000094 РНМ: 0000000000091756 Версия ККМ: 001 ФМ: 0000000000871809 ФД: 68454 ФПД: 254094373986495 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T174004&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68454&fm=254094373986495&tin=02508201610067®Number=0000000000091756&sum=40000 [17:39:55]StoreToDocumentArchive [17:39:55]shift 507 fd 68454 [17:39:55]save to /storage/0507/doc_00068454 [17:39:55]save last doc name /storage/0507/doc_00068454 to /storage/kkm_last_doc_name [17:39:55]save OK [17:39:55]Clear old archive folders... [17:39:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:39:55]tlvbuf is B6F29AA0 [17:39:55]SAM_PROTO_ClearQueue [17:39:55]wFMCommunicate request_size=4 [17:39:55]MH_SAM_APDU [17:39:55]CAPDU: 80 09 00 00 [17:39:55]Write to MH i2c: E2 08 00 48 3B 80 09 00 00 00 00 00 00 F5 [17:39:55]Write i2c OK [17:39:55]MH_I2C_Read... [17:39:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:55]Read from MH i2c: E2 [17:39:55]MH_I2C_Read... [17:39:55]Read from MH i2c: E2 03 00 [17:39:55]MH_I2C_Read... [17:39:55]Read from MH i2c: E2 03 00 48 3B 00 90 00 F7 [17:39:55]RAPDU: 90 00 [17:39:55]wFMCommunicate OK [17:39:55]SAM_PROTO_ClearQueue done [17:39:55]KKMCreateOFDPacket [17:39:55]OFDProtocolAddRootSTLVToBuf [17:39:55]FM_MakeSignedData [17:39:55]FM_MakeSignedData [17:39:55]SAM_PROTO_SignData [17:39:55]wFMCommunicate request_size=4 [17:39:55]MH_SAM_APDU [17:39:55]CAPDU: 80 0D 01 02 [17:39:55]Write to MH i2c: E2 08 00 49 3B 80 0D 01 02 00 00 00 00 FD [17:39:55]Write i2c OK [17:39:55]MH_I2C_Read... [17:39:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:55]Read from MH i2c: E2 [17:39:55]MH_I2C_Read... [17:39:55]Read from MH i2c: E2 03 00 [17:39:55]MH_I2C_Read... [17:39:55]Read from MH i2c: E2 03 00 49 3B 00 90 00 F8 [17:39:55]RAPDU: 90 00 [17:39:55]wFMCommunicate OK [17:39:55]wFMCommunicate request_size=255 [17:39:55]MH_SAM_APDU [17:39: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 32 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 4D 00 00 00 F4 03 04 00 F4 34 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 66 0B 01 00 35 04 06 00 E7 [17:39:55]Write to MH i2c: E2 02 01 4A 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 4D 00 00 00 F4 03 04 00 F4 34 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 66 0B 01 00 35 04 06 00 E7 00 00 A6 [17:39:55]Write i2c OK [17:39:55]MH_I2C_Read... [17:39:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:56]Read from MH i2c: E2 [17:39:56]MH_I2C_Read... [17:39:56]Read from MH i2c: E2 03 00 [17:39:56]MH_I2C_Read... [17:39:56]Read from MH i2c: E2 03 00 4A 3B 00 90 00 F9 [17:39:56]RAPDU: 90 00 [17:39:56]wFMCommunicate OK [17:39:56]wFMCommunicate request_size=10 [17:39:56]MH_SAM_APDU [17:39:56]CAPDU: 80 0D 02 02 05 18 F4 E6 A0 BF [17:39:56]Write to MH i2c: E2 0D 00 4B 3B 80 0D 02 02 05 00 18 F4 E6 A0 BF 00 00 5B [17:39:56]Write i2c OK [17:39:56]MH_I2C_Read... [17:39:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:56]Read from MH i2c: E2 [17:39:56]MH_I2C_Read... [17:39:56]Read from MH i2c: E2 03 00 [17:39:56]MH_I2C_Read... [17:39:56]Read from MH i2c: E2 03 00 4B 3B 00 90 00 FA [17:39:56]RAPDU: 90 00 [17:39:56]wFMCommunicate OK [17:39:56]wFMCommunicate request_size=4 [17:39:56]MH_SAM_APDU [17:39:56]CAPDU: 80 0D 03 02 [17:39:56]Write to MH i2c: E2 08 00 4C 3B 80 0D 03 02 00 00 00 00 02 [17:39:56]Write i2c OK [17:39:56]MH_I2C_Read... [17:39:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:56]Read from MH i2c: E2 [17:39:56]MH_I2C_Read... [17:39:56]Read from MH i2c: E2 0B 00 [17:39:56]MH_I2C_Read... [17:39:56]Read from MH i2c: E2 0B 00 4C 3B 00 99 F0 CD B0 61 2C 02 E4 90 00 7C [17:39:56]RAPDU: 99 F0 CD B0 61 2C 02 E4 90 00 [17:39:56]wFMCommunicate OK [17:39:56]SAM_PROTO_SignData done [17:39:56]FM_MakeSignedData done [17:39:56]CreateOFDProtocolMessage [17:39:56]wFMCommunicate request_size=4 [17:39:56]MH_SAM_APDU [17:39:56]CAPDU: 80 11 00 00 [17:39:56]Write to MH i2c: E2 08 00 4D 3B 80 11 00 00 00 00 00 00 02 [17:39:56]Write i2c OK [17:39:56]MH_I2C_Read... [17:39:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:56]Read from MH i2c: E2 [17:39:56]MH_I2C_Read... [17:39:56]Read from MH i2c: E2 17 00 [17:39:56]MH_I2C_Read... [17:39:56]Read from MH i2c: E2 17 00 4D 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 56 [17:39:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [17:39:56]wFMCommunicate OK [17:39:56]CreateOFDProtocolMessage done [17:39:56]OFDSenderStorePacket 68454 [17:39:56]StoreOFDPacket docnum=68454 [17:39:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 FC B2 07 01 89 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 4D 00 00 00 F4 03 04 00 F4 34 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 66 0B 01 00 35 04 06 00 E7 18 F4 E6 A0 BF 99 F0 CD B0 61 2C 02 E4 [17:39:56]CheckFolder [17:39:56]dirname=/storage/ofd_packets [17:39:56]CheckFolder done [17:39:56]ProducePacketName [17:39:56]name=ofd_packets/00068454 [17:39:56]NVStorageSaveData ofd_packets/00068454 [17:39:56]File name is /storage/ofd_packets/00068454 [17:39:56]Write 301 bytes [17:39:56]NVStorageSaveData done [17:39:56]OFDSenderStorePacket done [17:39:56]KKMCreateOFDPacket done [17:39:56]NVStorageSaveData kkm_last_timestamp [17:39:56]File name is /storage/kkm_last_timestamp [17:39:56]Write 4 bytes [17:39:56]NVStorageSaveData done [17:39:56]ExternCall_PrintAddStr [17:39:56]wPrintStart [17:39:56]Write to MH i2c: 01 00 00 4E 3B 89 [17:39:56]Write i2c OK [17:39:56]MH_I2C_Read... [17:39:56]Read from MH i2c: 01 [17:39:56]MH_I2C_Read... [17:39:56]Read from MH i2c: 01 07 00 [17:39:56]MH_I2C_Read... [17:39:56]Read from MH i2c: 01 07 00 4E 3B 00 04 00 00 00 FF 0F A2 [17:39:56]RasterBufferAndPrint [17:39:56]line Счет N : (1)210451 [17:39:56]line ИНН: 02508201610067 [17:39:56]line Контрольно-Кассовый Чек [17:39:56]line ПРОДАЖА [17:39:56]line ТРК (МРК, ГНК) : 11 [17:39:56]line Товар: 2710124130 [17:39:56]line Аи-92-К-2 [17:39:56]line 5.980 * 66.90 [17:39:56]line = 400.06 [17:39:56]line НДС 12% НСП 1% [17:39:56]line > о реализуемом товаре [17:39:56]line ОКРУГЛЕНИЕ: -0.06 [17:39:56]line ИТОГО: 400.00 [17:39:56]line Внесено: 400.00 [17:39:56]line СДАЧА: 0.00 [17:39:56]line НСП 1% : 3.54 [17:39:56]line НДС 12% : 42.48 [17:39:56]line Наличными: 400.00 [17:39:56]line Безнал.: 0.00 [17:39:56]line Место: АЗС № 147 "Партнер Нефть" [17:39:56]line Адрес: 720001, с. Ынтымак, 40.974636, 72.991114 [17:39:56]line СНО: Общий режим [17:39:56]line Чек 77 23.10.2024 17:40 [17:39:56]line Смена: 507 ФФД: 1.0 [17:39:56]line ЗНМ: 0300000094 [17:39:56]line РНМ: 0000000000091756 [17:39:56]line Версия ККМ: 001 [17:39:56]line ФМ: 0000000000871809 [17:39:56]line ФД: 68454 [17:39:56]line ФПД: 254094373986495 [17:39:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T174004&type=1&operation_type=1&fn_number=0000000000871809&fd_number=68454&fm=254094373986495&tin=02508201610067®Number=0000000000091756&sum=40000 [17:39:56]written 0, free lines is 4095 [17:39:56]OFD Sender: Processing packet 68454 [packets to send 8, broken 7] [17:39:56]ProducePacketName [17:39:56]name=ofd_packets/00068454 [17:39:56]OFD Sender: To server: pG, [17:39:56]CommunicateWithHost lk.salyk.kg:30040 [17:39:56]ConnectInit lk.salyk.kg [17:39:56]Connected sock=10 [17:39:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0F 01 00 00 FC B2 07 01 89 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 4D 00 00 00 F4 03 04 00 F4 34 19 67 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 66 0B 01 00 35 04 06 00 E7 18 F4 E6 A0 BF 99 F0 CD B0 61 2C 02 E4 [17:39:56]Write to MH i2c: 01 00 00 78 3B B3 [17:39:56]Write i2c OK [17:39:56]MH_I2C_Read... [17:39:56]Read from MH i2c: 01 [17:39:56]MH_I2C_Read... [17:39:56]Read from MH i2c: 01 07 00 [17:39:56]MH_I2C_Read... [17:39:56]Read from MH i2c: 01 07 00 78 3B 00 04 00 00 00 BC 0C 86 [17:39:56]RasterBufferAndPrint [17:39:56]line [17:39:56]line [17:39:56]line [17:39:56]line [17:39:56]line [17:39:56]written 0, free lines is 3266 [17:39:56]MH_Cut [17:39:56]Write to MH i2c: D1 01 00 7F 3B 01 8C [17:39:56]Write i2c OK [17:39:56]MH_I2C_Read... [17:39:56]Read from MH i2c: D1 [17:39:56]MH_I2C_Read... [17:39:56]Read from MH i2c: D1 01 00 [17:39:56]MH_I2C_Read... [17:39:56]Read from MH i2c: D1 01 00 7F 3B 00 8B [17:39:56]Write to MH i2c: 01 00 00 80 3B BB [17:39:56]Write i2c OK [17:39:56]MH_I2C_Read... [17:39:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 B7 48 47 00 BB 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 31 38 30 39 10 04 04 00 66 0B 01 00 F4 03 04 00 E8 DA 18 67 B6 04 01 00 00 AA A2 19 91 CE CF 03 75 [17:39:56]CommunicateWithHost err = 0 [17:39:56]CheckOFDResponse [17:39:56]1017 (14) - 77093643461234 [17:39:56]1041 (16) - 0000000000871809 [17:39:56]1040 (4) - 68454 [17:39:56]1012 (4) - 23.10.2024 11:15 [17:39:56]1206 (1) - 0 [17:39:56]OFD Sender: Remove packet 68454 [17:39:56]ProducePacketName [17:39:56]name=ofd_packets/00068454 [17:39:56]NVStorageDeleteData [17:39:57]OFD Sender: No OFD packet to send [17:39:57]*** Cut start [17:39:57]*** Partial cut [17:39:57]*** CUTSNS_PIN = 1 [17:39:57]*** CUTSNS_PIN = 0 [17:39:57]*** Brake cut motor [17:39:58]Read from MH i2c: 01 [17:39:58]MH_I2C_Read... [17:39:58]*** Stop cut motor [17:39:58]*** Cut end [17:39:58]Read from MH i2c: 01 07 00 [17:39:58]MH_I2C_Read... [17:39:58]Read from MH i2c: 01 07 00 80 3B 00 04 00 00 00 FF 0F D4 [17:39:58]process_action close_receipt done [17:39:58]requested_data is exist [17:39:58]produce_requested_data [17:39:58]requested_item fm.sn is exist - process it [17:39:58]wFMCommunicate request_size=4 [17:39:58]MH_SAM_APDU [17:39:58]CAPDU: 80 11 00 00 [17:39:58]Write to MH i2c: E2 08 00 81 3B 80 11 00 00 00 00 00 00 36 [17:39:58]Write i2c OK [17:39:58]MH_I2C_Read... [17:39:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:58]Read from MH i2c: E2 [17:39:58]MH_I2C_Read... [17:39:58]Read from MH i2c: E2 17 00 [17:39:58]MH_I2C_Read... [17:39:58]Read from MH i2c: E2 17 00 81 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 8A [17:39:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [17:39:58]wFMCommunicate OK [17:39:58]requested_item fd.num is exist - process it [17:39:58]SAM_PROTO_GetFieldsCounters [17:39:58]wFMCommunicate request_size=4 [17:39:58]MH_SAM_APDU [17:39:58]CAPDU: 80 13 00 00 [17:39:58]Write to MH i2c: E2 08 00 82 3B 80 13 00 00 00 00 00 00 39 [17:39:58]Write i2c OK [17:39:58]MH_I2C_Read... [17:39:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:58]Read from MH i2c: E2 [17:39:58]MH_I2C_Read... [17:39:58]Read from MH i2c: E2 62 00 [17:39:58]MH_I2C_Read... [17:39:58]Read from MH i2c: E2 62 00 82 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 66 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [17:39:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 66 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:39:58]wFMCommunicate OK [17:39:58]SAM_PROTO_GetFieldsCounters done [17:39:58]requested_item shift.num is exist - process it [17:39:58]requested_item shift.opened is exist - process it [17:39:58]req_shift_opened [17:39:58]FM_GetShiftState [17:39:58]SAM_PROTO_GetShiftState [17:39:58]wFMCommunicate request_size=4 [17:39:58]MH_SAM_APDU [17:39:58]CAPDU: 80 13 01 00 [17:39:58]Write to MH i2c: E2 08 00 83 3B 80 13 01 00 00 00 00 00 3B [17:39:58]Write i2c OK [17:39:58]MH_I2C_Read... [17:39:58]Read from MH i2c: E2 [17:39:58]MH_I2C_Read... [17:39:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:58]Read from MH i2c: E2 0E 00 [17:39:58]MH_I2C_Read... [17:39:58]Read from MH i2c: E2 0E 00 83 3B 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 AA [17:39:58]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [17:39:58]wFMCommunicate OK [17:39:58]SAM_PROTO_GetShiftState done [17:39:58]FM_GetShiftState done [17:39:58]req_shift_opened done [17:39:58]requested_item shift.open_date is exist - process it [17:39:58]req_shift_open_date [17:39:58]req_shift_open_date done [17:39:58]produce_requested_data done [17:39:58]produce_requested_data return {"fm.sn":"0000000000871809","fd.num":68454,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [17:39:58]process_action_free close_receipt [17:39:58]json_value_free [17:39:58]json_value_free done [17:39:58]process_json_proto returns [17:39:58]Send response to host [17:39:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871809","fd.num":68454,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [17:39:58]free response buf [17:39:58]execute_script done [17:39:58]execute_script returns [17:39:58]free content buf [17:39:58]Sock 9.Close socket [17:39:58]Sock 9.Thread stoped [17:40:02]OFD Sender: No OFD packet to send [17:40:07]OFD Sender: No OFD packet to send [17:40:12]OFD Sender: No OFD packet to send [17:40:17]OFD Sender: No OFD packet to send [17:40:22]OFD Sender: No OFD packet to send [17:40:27]OFD Sender: No OFD packet to send [17:40:32]OFD Sender: No OFD packet to send [17:40:37]OFD Sender: No OFD packet to send [17:40:42]OFD Sender: No OFD packet to send [17:40:47]OFD Sender: No OFD packet to send [17:40:52]OFD Sender: No OFD packet to send [17:40:57]OFD Sender: No OFD packet to send [17:41:02]OFD Sender: No OFD packet to send [17:41:07]OFD Sender: No OFD packet to send [17:41:12]OFD Sender: No OFD packet to send [17:41:17]OFD Sender: No OFD packet to send [17:41:22]OFD Sender: No OFD packet to send [17:41:27]OFD Sender: No OFD packet to send [17:41:32]OFD Sender: No OFD packet to send [17:41:37]OFD Sender: No OFD packet to send [17:41:42]OFD Sender: No OFD packet to send [17:41:47]OFD Sender: No OFD packet to send [17:41:52]OFD Sender: No OFD packet to send [17:41:57]OFD Sender: No OFD packet to send [17:42:02]OFD Sender: No OFD packet to send [17:42:07]OFD Sender: No OFD packet to send [17:42:12]OFD Sender: No OFD packet to send [17:42:17]OFD Sender: No OFD packet to send [17:42:22]OFD Sender: No OFD packet to send [17:42:27]OFD Sender: No OFD packet to send [17:42:32]OFD Sender: No OFD packet to send [17:42:37]OFD Sender: No OFD packet to send [17:42:42]OFD Sender: No OFD packet to send [17:42:47]OFD Sender: No OFD packet to send [17:42:52]OFD Sender: No OFD packet to send [17:42:57]OFD Sender: No OFD packet to send [17:43:02]OFD Sender: No OFD packet to send [17:43:07]OFD Sender: No OFD packet to send [17:43:12]OFD Sender: No OFD packet to send [17:43:17]OFD Sender: No OFD packet to send [17:43:22]OFD Sender: No OFD packet to send [17:43:27]OFD Sender: No OFD packet to send [17:43:29]accept exits with 7 [17:43:29]New connection [17:43:29]New thread 3067276644 created [17:43:29]Thread 3067133284 joined [17:43:29]Waiting for new connection... [17:43:29] Sock 7.Parse request [17:43:29]Sock 7.Check first char [17:43:29]Sock 7.First char is OK [17:43:29]request: POST /json_proto HTTP/1.0 [17:43:29]Method: POST [17:43:29]URL: /json_proto [17:43:29]Method is POST - this is cgi request [17:43:29]url: /json_proto [17:43:29]query_string will be loaded in cgi processing [17:43:29]execute_cgi json_proto POST (null) [17:43:29]execute_cgi path=json_proto method=POST [17:43:29]POST find Content-Length [17:43:29]Host: 172.17.52.3:8080 [17:43:29]Content-Length: 215 [17:43:29]Content-Type: application/json [17:43:29] [17:43:29]POST finish read [17:43:29]Found Content-Length = 215 [17:43: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" ] } } [17:43:29]execute_script... [17:43: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" ] } } [17:43:29]POST & json_proto [17:43:29]process_json_proto [17:43:29]json parsed OK: [17:43:29]protocol is kg_v1.0 [17:43:29]action value=get_value [17:43:29]process_action get_value [17:43:29]cmd_get_value [17:43:29]process_action get_value done [17:43:29]requested_data is exist [17:43:29]produce_requested_data [17:43:29]requested_item kkm.sn is exist - process it [17:43:29]requested_item kkm.ver is exist - process it [17:43:29]requested_item fm.sn is exist - process it [17:43:29]wFMCommunicate request_size=4 [17:43:29]MH_SAM_APDU [17:43:29]CAPDU: 80 11 00 00 [17:43:29]Write to MH i2c: E2 08 00 84 3B 80 11 00 00 00 00 00 00 39 [17:43:29]Write i2c OK [17:43:29]MH_I2C_Read... [17:43:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:29]Read from MH i2c: E2 [17:43:29]MH_I2C_Read... [17:43:29]Read from MH i2c: E2 17 00 [17:43:29]MH_I2C_Read... [17:43:29]Read from MH i2c: E2 17 00 84 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 8D [17:43:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [17:43:29]wFMCommunicate OK [17:43:29]requested_item fd.num is exist - process it [17:43:29]SAM_PROTO_GetFieldsCounters [17:43:29]wFMCommunicate request_size=4 [17:43:29]MH_SAM_APDU [17:43:29]CAPDU: 80 13 00 00 [17:43:29]Write to MH i2c: E2 08 00 85 3B 80 13 00 00 00 00 00 00 3C [17:43:29]Write i2c OK [17:43:29]MH_I2C_Read... [17:43:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:43:29]Read from MH i2c: E2 [17:43:29]MH_I2C_Read... [17:43:29]Read from MH i2c: E2 62 00 [17:43:29]MH_I2C_Read... [17:43:29]Read from MH i2c: E2 62 00 85 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 66 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [17:43:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 66 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:43:29]wFMCommunicate OK [17:43:29]SAM_PROTO_GetFieldsCounters done [17:43:29]requested_item shift.num is exist - process it [17:43:29]requested_item shift.opened is exist - process it [17:43:29]req_shift_opened [17:43:29]FM_GetShiftState [17:43:29]SAM_PROTO_GetShiftState [17:43:29]wFMCommunicate request_size=4 [17:43:29]MH_SAM_APDU [17:43:29]CAPDU: 80 13 01 00 [17:43:29]Write to MH i2c: E2 08 00 86 3B 80 13 01 00 00 00 00 00 3E [17:43:29]Write i2c OK [17:43:29]MH_I2C_Read... [17:43:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:29]Read from MH i2c: E2 [17:43:29]MH_I2C_Read... [17:43:29]Read from MH i2c: E2 0E 00 [17:43:29]MH_I2C_Read... [17:43:29]Read from MH i2c: E2 0E 00 86 3B 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 AD [17:43:29]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [17:43:29]wFMCommunicate OK [17:43:29]SAM_PROTO_GetShiftState done [17:43:29]FM_GetShiftState done [17:43:29]req_shift_opened done [17:43:29]requested_item shift.open_date is exist - process it [17:43:29]req_shift_open_date [17:43:29]req_shift_open_date done [17:43:29]produce_requested_data done [17:43:29]produce_requested_data return {"kkm.sn":"0300000094","kkm.ver":"001","fm.sn":"0000000000871809","fd.num":68454,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [17:43:29]process_action_free get_value [17:43:29]json_value_free [17:43:29]json_value_free done [17:43:29]process_json_proto returns [17:43:29]Send response to host [17:43:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000094","kkm.ver":"001","fm.sn":"0000000000871809","fd.num":68454,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [17:43:29]free response buf [17:43:29]execute_script done [17:43:29]execute_script returns [17:43:29]free content buf [17:43:29]Sock 7.Close socket [17:43:29]Sock 7.Thread stoped [17:43:29]accept exits with 9 [17:43:29]New connection [17:43:29]New thread 3067133284 created [17:43:29]Thread 3067276644 joined [17:43:29]Waiting for new connection... [17:43:29] Sock 9.Parse request [17:43:29]Sock 9.Check first char [17:43:29]Sock 9.First char is OK [17:43:29]request: POST /json_proto HTTP/1.0 [17:43:29]Method: POST [17:43:29]URL: /json_proto [17:43:29]Method is POST - this is cgi request [17:43:29]url: /json_proto [17:43:29]query_string will be loaded in cgi processing [17:43:29]execute_cgi json_proto POST (null) [17:43:29]execute_cgi path=json_proto method=POST [17:43:29]POST find Content-Length [17:43:29]Host: 172.17.52.3:8080 [17:43:29]Content-Length: 331 [17:43:29]Content-Type: application/json [17:43:29] [17:43:29]POST finish read [17:43:29]Found Content-Length = 331 [17:43: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" ] } } [17:43:29]execute_script... [17:43: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" ] } } [17:43:30]POST & json_proto [17:43:30]process_json_proto [17:43:30]json parsed OK: [17:43:30]protocol is kg_v1.0 [17:43:30]action value=get_value [17:43:30]process_action get_value [17:43:30]cmd_get_value [17:43:30]process_action get_value done [17:43:30]requested_data is exist [17:43:30]produce_requested_data [17:43:30]requested_item fm.sale.total is exist - process it [17:43:30]SAM_PROTO_GetFMData [17:43:30]wFMCommunicate request_size=4 [17:43:30]MH_SAM_APDU [17:43:30]CAPDU: 80 13 03 00 [17:43:30]Write to MH i2c: E2 08 00 87 3B 80 13 03 00 00 00 00 00 41 [17:43:30]Write i2c OK [17:43:30]MH_I2C_Read... [17:43:30]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:43:30]Read from MH i2c: E2 [17:43:30]MH_I2C_Read... [17:43:30]Read from MH i2c: E2 FD 00 [17:43:30]MH_I2C_Read... [17:43:30]Read from MH i2c: E2 FD 00 87 3B 00 C1 04 85 04 BD 04 6E 04 04 00 70 07 01 00 69 04 A3 00 6F 04 04 00 66 07 01 00 B1 04 05 00 76 CE 7F 75 01 70 04 05 00 84 0B DE 36 01 72 04 04 00 F2 C2 A1 3E 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 A7 FF AC 27 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 BE 5A 4E 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 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 8C 63 1F 70 04 03 00 8C 63 1F 72 04 00 00 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 6C 55 03 EF 03 09 00 F6 03 90 00 6E [17:43:30]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 70 07 01 00 69 04 A3 00 6F 04 04 00 66 07 01 00 B1 04 05 00 76 CE 7F 75 01 70 04 05 00 84 0B DE 36 01 72 04 04 00 F2 C2 A1 3E 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 A7 FF AC 27 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 BE 5A 4E 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 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 8C 63 1F 70 04 03 00 8C 63 1F 72 04 00 00 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 6C 55 03 EF 03 09 00 F6 03 90 00 [17:43:30]wFMCommunicate OK [17:43:30]wFMCommunicate request_size=4 [17:43:30]MH_SAM_APDU [17:43:30]CAPDU: 80 17 00 00 [17:43:30]Write to MH i2c: E2 08 00 88 3B 80 17 00 00 00 00 00 00 43 [17:43:30]Write i2c OK [17:43:30]MH_I2C_Read... [17:43:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:43:30]Read from MH i2c: E2 [17:43:30]MH_I2C_Read... [17:43:30]Read from MH i2c: E2 FD 00 [17:43:30]MH_I2C_Read... [17:43:30]Read from MH i2c: E2 FD 00 88 3B 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1D 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 D6 [17:43:30]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1D 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [17:43:30]wFMCommunicate OK [17:43:30]wFMCommunicate request_size=4 [17:43:30]MH_SAM_APDU [17:43:30]CAPDU: 80 17 00 00 [17:43:30]Write to MH i2c: E2 08 00 89 3B 80 17 00 00 00 00 00 00 44 [17:43:30]Write i2c OK [17:43:30]MH_I2C_Read... [17:43:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:43:30]Read from MH i2c: E2 [17:43:30]MH_I2C_Read... [17:43:30]Read from MH i2c: E2 FD 00 [17:43:30]MH_I2C_Read... [17:43:30]Read from MH i2c: E2 FD 00 89 3B 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 E4 [17:43:30]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [17:43:30]wFMCommunicate OK [17:43:30]wFMCommunicate request_size=4 [17:43:30]MH_SAM_APDU [17:43:30]CAPDU: 80 17 00 00 [17:43:30]Write to MH i2c: E2 08 00 8A 3B 80 17 00 00 00 00 00 00 45 [17:43:30]Write i2c OK [17:43:30]MH_I2C_Read... [17:43:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:43:31]Read from MH i2c: E2 [17:43:31]MH_I2C_Read... [17:43:31]Read from MH i2c: E2 FD 00 [17:43:31]MH_I2C_Read... [17:43:31]Read from MH i2c: E2 FD 00 8A 3B 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 CA [17:43:31]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [17:43:31]wFMCommunicate OK [17:43:31]wFMCommunicate request_size=4 [17:43:31]MH_SAM_APDU [17:43:31]CAPDU: 80 17 00 00 [17:43:31]Write to MH i2c: E2 08 00 8B 3B 80 17 00 00 00 00 00 00 46 [17:43:31]Write i2c OK [17:43:31]MH_I2C_Read... [17:43:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [17:43:31]Read from MH i2c: E2 [17:43:31]MH_I2C_Read... [17:43:31]Read from MH i2c: E2 DE 00 [17:43:31]MH_I2C_Read... [17:43:31]Read from MH i2c: E2 DE 00 8B 3B 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 25 [17:43:31]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:43:31]wFMCommunicate OK [17:43:31]SAM_PROTO_GetFMData done [17:43:31]requested_item fm.sale_refund.total is exist - process it [17:43:31]requested_item fm.buy.total is exist - process it [17:43:31]requested_item shift.sale.total is exist - process it [17:43:31]SAM_PROTO_GetShiftData [17:43:31]wFMCommunicate request_size=4 [17:43:31]MH_SAM_APDU [17:43:31]CAPDU: 80 13 02 00 [17:43:31]Write to MH i2c: E2 08 00 8C 3B 80 13 02 00 00 00 00 00 45 [17:43:31]Write i2c OK [17:43:31]MH_I2C_Read... [17:43:31]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:43:31]Read from MH i2c: E2 [17:43:31]MH_I2C_Read... [17:43:31]Read from MH i2c: E2 FD 00 [17:43:31]MH_I2C_Read... [17:43:31]Read from MH i2c: E2 FD 00 8C 3B 00 AE 04 AA 04 AA 04 6E 04 04 00 4D 00 00 00 69 04 9B 00 6F 04 04 00 4D 00 00 00 B1 04 03 00 82 6E 3D 70 04 03 00 60 16 34 72 04 03 00 22 58 09 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D3 86 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3C 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 20 [17:43:31]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 4D 00 00 00 69 04 9B 00 6F 04 04 00 4D 00 00 00 B1 04 03 00 82 6E 3D 70 04 03 00 60 16 34 72 04 03 00 22 58 09 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D3 86 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3C 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [17:43:31]wFMCommunicate OK [17:43:31]wFMCommunicate request_size=4 [17:43:31]MH_SAM_APDU [17:43:31]CAPDU: 80 17 00 00 [17:43:31]Write to MH i2c: E2 08 00 8D 3B 80 17 00 00 00 00 00 00 48 [17:43:31]Write i2c OK [17:43:31]MH_I2C_Read... [17:43:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:43:32]Read from MH i2c: E2 [17:43:32]MH_I2C_Read... [17:43:32]Read from MH i2c: E2 FD 00 [17:43:32]MH_I2C_Read... [17:43:32]Read from MH i2c: E2 FD 00 8D 3B 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 6A [17:43:32]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 [17:43:32]wFMCommunicate OK [17:43:32]wFMCommunicate request_size=4 [17:43:32]MH_SAM_APDU [17:43:32]CAPDU: 80 17 00 00 [17:43:32]Write to MH i2c: E2 08 00 8E 3B 80 17 00 00 00 00 00 00 49 [17:43:32]Write i2c OK [17:43:32]MH_I2C_Read... [17:43:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:43:32]Read from MH i2c: E2 [17:43:32]MH_I2C_Read... [17:43:32]Read from MH i2c: E2 FD 00 [17:43:32]MH_I2C_Read... [17:43:32]Read from MH i2c: E2 FD 00 8E 3B 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 00 [17:43:32]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 [17:43:32]wFMCommunicate OK [17:43:32]wFMCommunicate request_size=4 [17:43:32]MH_SAM_APDU [17:43:32]CAPDU: 80 17 00 00 [17:43:32]Write to MH i2c: E2 08 00 8F 3B 80 17 00 00 00 00 00 00 4A [17:43:32]Write i2c OK [17:43:32]MH_I2C_Read... [17:43:32]OFD Sender: No OFD packet to send [17:43:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:43:32]Read from MH i2c: E2 [17:43:32]MH_I2C_Read... [17:43:32]Read from MH i2c: E2 FD 00 [17:43:32]MH_I2C_Read... [17:43:32]Read from MH i2c: E2 FD 00 8F 3B 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 BC [17:43:32]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 [17:43:32]wFMCommunicate OK [17:43:32]wFMCommunicate request_size=4 [17:43:32]MH_SAM_APDU [17:43:32]CAPDU: 80 17 00 00 [17:43:32]Write to MH i2c: E2 08 00 90 3B 80 17 00 00 00 00 00 00 4B [17:43:32]Write i2c OK [17:43:32]MH_I2C_Read... [17:43:33]Read from MH i2c: E2 [17:43:33]MH_I2C_Read... [17:43:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [17:43:33]Read from MH i2c: E2 CB 00 [17:43:33]MH_I2C_Read... [17:43:33]Read from MH i2c: E2 CB 00 90 3B 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 34 [17:43:33]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 [17:43:33]wFMCommunicate OK [17:43:33]SAM_PROTO_GetShiftData done [17:43:33]requested_item shift.sale.total_cash is exist - process it [17:43:33]requested_item shift.sale_refund.total is exist - process it [17:43:33]requested_item shift.sale_refund.total_cash is exist - process it [17:43:33]requested_item shift.buy.total is exist - process it [17:43:33]requested_item shift.buy.total_cash is exist - process it [17:43:33]produce_requested_data done [17:43:33]produce_requested_data return {"fm.sale.total":62662774.94,"fm.sale_refund.total":20571.00,"fm.buy.total":0.00,"shift.sale.total":40259.86,"shift.sale.total_cash":34136.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:43:33]process_action_free get_value [17:43:33]json_value_free [17:43:33]json_value_free done [17:43:33]process_json_proto returns [17:43:33]Send response to host [17:43:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":62662774.94,"fm.sale_refund.total":20571.00,"fm.buy.total":0.00,"shift.sale.total":40259.86,"shift.sale.total_cash":34136.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:43:33]free response buf [17:43:33]execute_script done [17:43:33]execute_script returns [17:43:33]free content buf [17:43:33]Sock 9.Close socket [17:43:33]Sock 9.Thread stoped [17:43:33]accept exits with 7 [17:43:33]New connection [17:43:33]New thread 3067276644 created [17:43:33]Thread 3067133284 joined [17:43:33]Waiting for new connection... [17:43:33] Sock 7.Parse request [17:43:33]Sock 7.Check first char [17:43:33]Sock 7.First char is OK [17:43:33]request: POST /json_proto HTTP/1.0 [17:43:33]Method: POST [17:43:33]URL: /json_proto [17:43:33]Method is POST - this is cgi request [17:43:33]url: /json_proto [17:43:33]query_string will be loaded in cgi processing [17:43:33]execute_cgi json_proto POST (null) [17:43:33]execute_cgi path=json_proto method=POST [17:43:33]POST find Content-Length [17:43:33]Host: 172.17.52.3:8080 [17:43:33]Content-Length: 331 [17:43:33]Content-Type: application/json [17:43:33] [17:43:33]POST finish read [17:43:33]Found Content-Length = 331 [17:43: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" ] } } [17:43:33]execute_script... [17:43: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" ] } } [17:43:33]POST & json_proto [17:43:33]process_json_proto [17:43:33]json parsed OK: [17:43:33]protocol is kg_v1.0 [17:43:33]action value=get_value [17:43:33]process_action get_value [17:43:33]cmd_get_value [17:43:33]process_action get_value done [17:43:33]requested_data is exist [17:43:33]produce_requested_data [17:43:33]requested_item fm.sale.total is exist - process it [17:43:33]SAM_PROTO_GetFMData [17:43:33]wFMCommunicate request_size=4 [17:43:33]MH_SAM_APDU [17:43:33]CAPDU: 80 13 03 00 [17:43:33]Write to MH i2c: E2 08 00 91 3B 80 13 03 00 00 00 00 00 4B [17:43:33]Write i2c OK [17:43:33]MH_I2C_Read... [17:43:33]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:43:33]Read from MH i2c: E2 [17:43:33]MH_I2C_Read... [17:43:33]Read from MH i2c: E2 FD 00 [17:43:33]MH_I2C_Read... [17:43:33]Read from MH i2c: E2 FD 00 91 3B 00 C1 04 85 04 BD 04 6E 04 04 00 70 07 01 00 69 04 A3 00 6F 04 04 00 66 07 01 00 B1 04 05 00 76 CE 7F 75 01 70 04 05 00 84 0B DE 36 01 72 04 04 00 F2 C2 A1 3E 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 A7 FF AC 27 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 BE 5A 4E 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 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 8C 63 1F 70 04 03 00 8C 63 1F 72 04 00 00 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 6C 55 03 EF 03 09 00 F6 03 90 00 78 [17:43:33]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 70 07 01 00 69 04 A3 00 6F 04 04 00 66 07 01 00 B1 04 05 00 76 CE 7F 75 01 70 04 05 00 84 0B DE 36 01 72 04 04 00 F2 C2 A1 3E 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 A7 FF AC 27 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 BE 5A 4E 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 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 8C 63 1F 70 04 03 00 8C 63 1F 72 04 00 00 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 6C 55 03 EF 03 09 00 F6 03 90 00 [17:43:33]wFMCommunicate OK [17:43:33]wFMCommunicate request_size=4 [17:43:33]MH_SAM_APDU [17:43:33]CAPDU: 80 17 00 00 [17:43:33]Write to MH i2c: E2 08 00 92 3B 80 17 00 00 00 00 00 00 4D [17:43:33]Write i2c OK [17:43:33]MH_I2C_Read... [17:43:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:43:34]Read from MH i2c: E2 [17:43:34]MH_I2C_Read... [17:43:34]Read from MH i2c: E2 FD 00 [17:43:34]MH_I2C_Read... [17:43:34]Read from MH i2c: E2 FD 00 92 3B 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1D 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 E0 [17:43:34]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1D 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [17:43:34]wFMCommunicate OK [17:43:34]wFMCommunicate request_size=4 [17:43:34]MH_SAM_APDU [17:43:34]CAPDU: 80 17 00 00 [17:43:34]Write to MH i2c: E2 08 00 93 3B 80 17 00 00 00 00 00 00 4E [17:43:34]Write i2c OK [17:43:34]MH_I2C_Read... [17:43:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:43:34]Read from MH i2c: E2 [17:43:34]MH_I2C_Read... [17:43:34]Read from MH i2c: E2 FD 00 [17:43:34]MH_I2C_Read... [17:43:34]Read from MH i2c: E2 FD 00 93 3B 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 EE [17:43:34]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [17:43:34]wFMCommunicate OK [17:43:34]wFMCommunicate request_size=4 [17:43:34]MH_SAM_APDU [17:43:34]CAPDU: 80 17 00 00 [17:43:34]Write to MH i2c: E2 08 00 94 3B 80 17 00 00 00 00 00 00 4F [17:43:34]Write i2c OK [17:43:34]MH_I2C_Read... [17:43:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:43:34]Read from MH i2c: E2 [17:43:34]MH_I2C_Read... [17:43:34]Read from MH i2c: E2 FD 00 [17:43:34]MH_I2C_Read... [17:43:34]Read from MH i2c: E2 FD 00 94 3B 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 D4 [17:43:34]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [17:43:34]wFMCommunicate OK [17:43:34]wFMCommunicate request_size=4 [17:43:34]MH_SAM_APDU [17:43:34]CAPDU: 80 17 00 00 [17:43:34]Write to MH i2c: E2 08 00 95 3B 80 17 00 00 00 00 00 00 50 [17:43:34]Write i2c OK [17:43:34]MH_I2C_Read... [17:43:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [17:43:35]Read from MH i2c: E2 [17:43:35]MH_I2C_Read... [17:43:35]Read from MH i2c: E2 DE 00 [17:43:35]MH_I2C_Read... [17:43:35]Read from MH i2c: E2 DE 00 95 3B 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 2F [17:43:35]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:43:35]wFMCommunicate OK [17:43:35]SAM_PROTO_GetFMData done [17:43:35]requested_item fm.sale_refund.total is exist - process it [17:43:35]requested_item fm.buy.total is exist - process it [17:43:35]requested_item shift.sale.total is exist - process it [17:43:35]SAM_PROTO_GetShiftData [17:43:35]wFMCommunicate request_size=4 [17:43:35]MH_SAM_APDU [17:43:35]CAPDU: 80 13 02 00 [17:43:35]Write to MH i2c: E2 08 00 96 3B 80 13 02 00 00 00 00 00 4F [17:43:35]Write i2c OK [17:43:35]MH_I2C_Read... [17:43:35]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:43:35]Read from MH i2c: E2 [17:43:35]MH_I2C_Read... [17:43:35]Read from MH i2c: E2 FD 00 [17:43:35]MH_I2C_Read... [17:43:35]Read from MH i2c: E2 FD 00 96 3B 00 AE 04 AA 04 AA 04 6E 04 04 00 4D 00 00 00 69 04 9B 00 6F 04 04 00 4D 00 00 00 B1 04 03 00 82 6E 3D 70 04 03 00 60 16 34 72 04 03 00 22 58 09 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D3 86 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3C 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 2A [17:43:35]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 4D 00 00 00 69 04 9B 00 6F 04 04 00 4D 00 00 00 B1 04 03 00 82 6E 3D 70 04 03 00 60 16 34 72 04 03 00 22 58 09 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D3 86 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3C 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [17:43:35]wFMCommunicate OK [17:43:35]wFMCommunicate request_size=4 [17:43:35]MH_SAM_APDU [17:43:35]CAPDU: 80 17 00 00 [17:43:35]Write to MH i2c: E2 08 00 97 3B 80 17 00 00 00 00 00 00 52 [17:43:35]Write i2c OK [17:43:35]MH_I2C_Read... [17:43:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:43:36]Read from MH i2c: E2 [17:43:36]MH_I2C_Read... [17:43:36]Read from MH i2c: E2 FD 00 [17:43:36]MH_I2C_Read... [17:43:36]Read from MH i2c: E2 FD 00 97 3B 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 74 [17:43: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 [17:43:36]wFMCommunicate OK [17:43:36]wFMCommunicate request_size=4 [17:43:36]MH_SAM_APDU [17:43:36]CAPDU: 80 17 00 00 [17:43:36]Write to MH i2c: E2 08 00 98 3B 80 17 00 00 00 00 00 00 53 [17:43:36]Write i2c OK [17:43:36]MH_I2C_Read... [17:43:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:43:36]Read from MH i2c: E2 [17:43:36]MH_I2C_Read... [17:43:36]Read from MH i2c: E2 FD 00 [17:43:36]MH_I2C_Read... [17:43:36]Read from MH i2c: E2 FD 00 98 3B 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 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 0A [17:43:36]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 [17:43:36]wFMCommunicate OK [17:43:36]wFMCommunicate request_size=4 [17:43:36]MH_SAM_APDU [17:43:36]CAPDU: 80 17 00 00 [17:43:36]Write to MH i2c: E2 08 00 99 3B 80 17 00 00 00 00 00 00 54 [17:43:36]Write i2c OK [17:43:36]MH_I2C_Read... [17:43:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:43:37]Read from MH i2c: E2 [17:43:37]MH_I2C_Read... [17:43:37]Read from MH i2c: E2 FD 00 [17:43:37]MH_I2C_Read... [17:43:37]Read from MH i2c: E2 FD 00 99 3B 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 C6 [17:43: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 [17:43:37]wFMCommunicate OK [17:43:37]wFMCommunicate request_size=4 [17:43:37]MH_SAM_APDU [17:43:37]CAPDU: 80 17 00 00 [17:43:37]Write to MH i2c: E2 08 00 9A 3B 80 17 00 00 00 00 00 00 55 [17:43:37]Write i2c OK [17:43:37]MH_I2C_Read... [17:43:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [17:43:37]Read from MH i2c: E2 [17:43:37]MH_I2C_Read... [17:43:37]Read from MH i2c: E2 CB 00 [17:43:37]MH_I2C_Read... [17:43:37]Read from MH i2c: E2 CB 00 9A 3B 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 3E [17:43: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 [17:43:37]wFMCommunicate OK [17:43:37]SAM_PROTO_GetShiftData done [17:43:37]requested_item shift.sale.total_cash is exist - process it [17:43:37]requested_item shift.sale_refund.total is exist - process it [17:43:37]requested_item shift.sale_refund.total_cash is exist - process it [17:43:37]requested_item shift.buy.total is exist - process it [17:43:37]requested_item shift.buy.total_cash is exist - process it [17:43:37]produce_requested_data done [17:43:37]produce_requested_data return {"fm.sale.total":62662774.94,"fm.sale_refund.total":20571.00,"fm.buy.total":0.00,"shift.sale.total":40259.86,"shift.sale.total_cash":34136.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:43:37]process_action_free get_value [17:43:37]json_value_free [17:43:37]json_value_free done [17:43:37]process_json_proto returns [17:43:37]Send response to host [17:43:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":62662774.94,"fm.sale_refund.total":20571.00,"fm.buy.total":0.00,"shift.sale.total":40259.86,"shift.sale.total_cash":34136.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:43:37]free response buf [17:43:37]execute_script done [17:43:37]execute_script returns [17:43:37]free content buf [17:43:37]Sock 7.Close socket [17:43:37]Sock 7.Thread stoped [17:43:37]accept exits with 9 [17:43:37]New connection [17:43:37]New thread 3067133284 created [17:43:37]Thread 3067276644 joined [17:43:37]Waiting for new connection... [17:43:37]OFD Sender: No OFD packet to send [17:43:37] Sock 9.Parse request [17:43:37]Sock 9.Check first char [17:43:37]Sock 9.First char is OK [17:43:37]request: POST /json_proto HTTP/1.0 [17:43:37]Method: POST [17:43:37]URL: /json_proto [17:43:37]Method is POST - this is cgi request [17:43:37]url: /json_proto [17:43:37]query_string will be loaded in cgi processing [17:43:37]execute_cgi json_proto POST (null) [17:43:37]execute_cgi path=json_proto method=POST [17:43:37]POST find Content-Length [17:43:37]Host: 172.17.52.3:8080 [17:43:37]Content-Length: 275 [17:43:37]Content-Type: application/json [17:43:37] [17:43:37]POST finish read [17:43:37]Found Content-Length = 275 [17:43:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041C\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0416. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:37]execute_script... [17:43:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041C\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0416. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:37]POST & json_proto [17:43:37]process_json_proto [17:43:37]json parsed OK: [17:43:37]protocol is kg_v1.0 [17:43:37]action value=x_report [17:43:37]process_action x_report [17:43:37]cmd_x_report [17:43:37]MH_GetDate [17:43:37]Write to MH i2c: F0 00 00 9B 3B C5 [17:43:37]Write i2c OK [17:43:37]MH_I2C_Read... [17:43:37]Read from MH i2c: F0 [17:43:37]MH_I2C_Read... [17:43:37]Read from MH i2c: F0 09 00 [17:43:37]MH_I2C_Read... [17:43:37]Read from MH i2c: F0 09 00 9B 3B 00 D3 35 19 67 D7 68 A5 64 9E [17:43:37]GetLastDocTimeStamp 1729705204 [17:43:37]current date 1729705427 [17:43:37]FM_GetShiftState [17:43:37]SAM_PROTO_GetShiftState [17:43:37]wFMCommunicate request_size=4 [17:43:37]MH_SAM_APDU [17:43:37]CAPDU: 80 13 01 00 [17:43:37]Write to MH i2c: E2 08 00 9C 3B 80 13 01 00 00 00 00 00 54 [17:43:37]Write i2c OK [17:43:37]MH_I2C_Read... [17:43:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:37]Read from MH i2c: E2 [17:43:37]MH_I2C_Read... [17:43:37]Read from MH i2c: E2 0E 00 [17:43:37]MH_I2C_Read... [17:43:37]Read from MH i2c: E2 0E 00 9C 3B 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 C3 [17:43:37]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [17:43:37]wFMCommunicate OK [17:43:37]SAM_PROTO_GetShiftState done [17:43:37]FM_GetShiftState done [17:43:37]KKMCreateXReportDocument [17:43:37]Load OK [17:43:37]Malloc new data [17:43:37]MH_GetDate [17:43:37]Write to MH i2c: F0 00 00 9D 3B C7 [17:43:37]Write i2c OK [17:43:37]MH_I2C_Read... [17:43:37]Read from MH i2c: F0 [17:43:37]MH_I2C_Read... [17:43:37]Read from MH i2c: F0 09 00 [17:43:37]MH_I2C_Read... [17:43:37]Read from MH i2c: F0 09 00 9D 3B 00 D3 35 19 67 D7 68 A5 64 A0 [17:43:37]Malloc new data [17:43:37]Malloc new data [17:43:37]wFMCommunicate request_size=4 [17:43:37]MH_SAM_APDU [17:43:37]CAPDU: 80 11 00 00 [17:43:37]Write to MH i2c: E2 08 00 9E 3B 80 11 00 00 00 00 00 00 53 [17:43:37]Write i2c OK [17:43:37]MH_I2C_Read... [17:43:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:37]Read from MH i2c: E2 [17:43:37]MH_I2C_Read... [17:43:37]Read from MH i2c: E2 17 00 [17:43:37]MH_I2C_Read... [17:43:37]Read from MH i2c: E2 17 00 9E 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 A7 [17:43:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [17:43:37]wFMCommunicate OK [17:43:37]SAM_PROTO_GetFieldsCounters [17:43:37]wFMCommunicate request_size=4 [17:43:37]MH_SAM_APDU [17:43:37]CAPDU: 80 13 00 00 [17:43:37]Write to MH i2c: E2 08 00 9F 3B 80 13 00 00 00 00 00 00 56 [17:43:37]Write i2c OK [17:43:37]MH_I2C_Read... [17:43:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:43:38]Read from MH i2c: E2 [17:43:38]MH_I2C_Read... [17:43:38]Read from MH i2c: E2 62 00 [17:43:38]MH_I2C_Read... [17:43:38]Read from MH i2c: E2 62 00 9F 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 66 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [17:43:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 66 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:43:38]wFMCommunicate OK [17:43:38]SAM_PROTO_GetFieldsCounters done [17:43:38]Malloc new data [17:43:38]Malloc new data [17:43:38]Malloc new data [17:43:38]KKMCreateXReportDocument OK [17:43:38]KKMSetXReportData OK [17:43:38]KKMPrepareXReportFMData [17:43:38]SAM_PROTO_GetShiftData [17:43:38]wFMCommunicate request_size=4 [17:43:38]MH_SAM_APDU [17:43:38]CAPDU: 80 13 02 00 [17:43:38]Write to MH i2c: E2 08 00 A0 3B 80 13 02 00 00 00 00 00 59 [17:43:38]Write i2c OK [17:43:38]MH_I2C_Read... [17:43:38]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:43:38]Read from MH i2c: E2 [17:43:38]MH_I2C_Read... [17:43:38]Read from MH i2c: E2 FD 00 [17:43:38]MH_I2C_Read... [17:43:38]Read from MH i2c: E2 FD 00 A0 3B 00 AE 04 AA 04 AA 04 6E 04 04 00 4D 00 00 00 69 04 9B 00 6F 04 04 00 4D 00 00 00 B1 04 03 00 82 6E 3D 70 04 03 00 60 16 34 72 04 03 00 22 58 09 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D3 86 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3C 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 34 [17:43:38]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 4D 00 00 00 69 04 9B 00 6F 04 04 00 4D 00 00 00 B1 04 03 00 82 6E 3D 70 04 03 00 60 16 34 72 04 03 00 22 58 09 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D3 86 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3C 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [17:43:38]wFMCommunicate OK [17:43:38]wFMCommunicate request_size=4 [17:43:38]MH_SAM_APDU [17:43:38]CAPDU: 80 17 00 00 [17:43:38]Write to MH i2c: E2 08 00 A1 3B 80 17 00 00 00 00 00 00 5C [17:43:38]Write i2c OK [17:43:38]MH_I2C_Read... [17:43:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:43:39]Read from MH i2c: E2 [17:43:39]MH_I2C_Read... [17:43:39]Read from MH i2c: E2 FD 00 [17:43:39]MH_I2C_Read... [17:43:39]Read from MH i2c: E2 FD 00 A1 3B 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 7E [17:43:39]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 [17:43:39]wFMCommunicate OK [17:43:39]wFMCommunicate request_size=4 [17:43:39]MH_SAM_APDU [17:43:39]CAPDU: 80 17 00 00 [17:43:39]Write to MH i2c: E2 08 00 A2 3B 80 17 00 00 00 00 00 00 5D [17:43:39]Write i2c OK [17:43:39]MH_I2C_Read... [17:43:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:43:39]Read from MH i2c: E2 [17:43:39]MH_I2C_Read... [17:43:39]Read from MH i2c: E2 FD 00 [17:43:39]MH_I2C_Read... [17:43:39]Read from MH i2c: E2 FD 00 A2 3B 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 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 14 [17:43: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 [17:43:39]wFMCommunicate OK [17:43:39]wFMCommunicate request_size=4 [17:43:39]MH_SAM_APDU [17:43:39]CAPDU: 80 17 00 00 [17:43:39]Write to MH i2c: E2 08 00 A3 3B 80 17 00 00 00 00 00 00 5E [17:43:39]Write i2c OK [17:43:39]MH_I2C_Read... [17:43:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:43:39]Read from MH i2c: E2 [17:43:39]MH_I2C_Read... [17:43:39]Read from MH i2c: E2 FD 00 [17:43:39]MH_I2C_Read... [17:43:39]Read from MH i2c: E2 FD 00 A3 3B 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 D0 [17:43:40]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 [17:43:40]wFMCommunicate OK [17:43:40]wFMCommunicate request_size=4 [17:43:40]MH_SAM_APDU [17:43:40]CAPDU: 80 17 00 00 [17:43:40]Write to MH i2c: E2 08 00 A4 3B 80 17 00 00 00 00 00 00 5F [17:43:40]Write i2c OK [17:43:40]MH_I2C_Read... [17:43:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [17:43:40]Read from MH i2c: E2 [17:43:40]MH_I2C_Read... [17:43:40]Read from MH i2c: E2 CB 00 [17:43:40]MH_I2C_Read... [17:43:40]Read from MH i2c: E2 CB 00 A4 3B 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 48 [17:43:40]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:43:40]wFMCommunicate OK [17:43:40]SAM_PROTO_GetShiftData done [17:43:40]1194 (1194) - счетчики итогов смены [17:43:40] 1134 (4) - 77 - количество чеков со всеми признаками расчетов [17:43:40] 1129 (155) - счетчики операций «приход» [17:43:40] 1135 (4) - 77 - количество чеков по признаку расчетов [17:43:40] 1201 (3) - 40259.86 - общая итоговая сумма в чеках [17:43:40] 1136 (3) - 34136.00 - итоговая сумма в чеках наличными [17:43:40] 1138 (3) - 6123.86 - итоговая сумма в чеках безналичными [17:43:40] 1024 (122) - суммы налогов [17:43:40] 1006 (9) - суммы НДС [17:43:40] 1010 (1) - 0% - код ставки НДС [17:43:40] 1011 (0) - 0.00 - сумма НДС по ставке [17:43:40] 1006 (12) - суммы НДС [17:43:40] 1010 (1) - 12% - код ставки НДС [17:43:40] 1011 (3) - 4277.31 - сумма НДС по ставке [17:43:40] 1007 (9) - суммы НСП [17:43:40] 1014 (1) - 0% - код ставки НСП [17:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [17:43:40] 1007 (11) - суммы НСП [17:43:40] 1014 (1) - 1% - код ставки НСП [17:43:40] 1015 (2) - 356.44 - сумма НСП по ставке [17:43:40] 1007 (9) - суммы НСП [17:43:40] 1014 (1) - 2% - код ставки НСП [17:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [17:43:40] 1007 (9) - суммы НСП [17:43:40] 1014 (1) - 3% - код ставки НСП [17:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [17:43:40] 1007 (9) - суммы НСП [17:43:40] 1014 (1) - 5% - код ставки НСП [17:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [17:43:40] 1007 (9) - суммы НСП [17:43:40] 1014 (1) - 0,50% - код ставки НСП [17:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [17:43:40] 1007 (9) - суммы НСП [17:43:40] 1014 (1) - 1,50% - код ставки НСП [17:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [17:43:40] 1130 (141) - счетчики операций «возврат прихода» [17:43:40] 1135 (4) - 0 - количество чеков по признаку расчетов [17:43:40] 1201 (0) - 0.00 - общая итоговая сумма в чеках [17:43:40] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [17:43:40] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [17:43:40] 1024 (117) - суммы налогов [17:43:40] 1006 (9) - суммы НДС [17:43:40] 1010 (1) - 0% - код ставки НДС [17:43:40] 1011 (0) - 0.00 - сумма НДС по ставке [17:43:40] 1006 (9) - суммы НДС [17:43:40] 1010 (1) - 12% - код ставки НДС [17:43:40] 1011 (0) - 0.00 - сумма НДС по ставке [17:43:40] 1007 (9) - суммы НСП [17:43:40] 1014 (1) - 0% - код ставки НСП [17:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [17:43:40] 1007 (9) - суммы НСП [17:43:40] 1014 (1) - 1% - код ставки НСП [17:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [17:43:40] 1007 (9) - суммы НСП [17:43:40] 1014 (1) - 2% - код ставки НСП [17:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [17:43:40] 1007 (9) - суммы НСП [17:43:40] 1014 (1) - 3% - код ставки НСП [17:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [17:43:40] 1007 (9) - суммы НСП [17:43:40] 1014 (1) - 5% - код ставки НСП [17:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [17:43:40] 1007 (9) - суммы НСП [17:43:40] 1014 (1) - 0,50% - код ставки НСП [17:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [17:43:40] 1007 (9) - суммы НСП [17:43:40] 1014 (1) - 1,50% - код ставки НСП [17:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [17:43:40] 1131 (141) - счетчики операций «расход» [17:43:40] 1135 (4) - 0 - количество чеков по признаку расчетов [17:43:40] 1201 (0) - 0.00 - общая итоговая сумма в чеках [17:43:40] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [17:43:40] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [17:43:40] 1024 (117) - суммы налогов [17:43:40] 1006 (9) - суммы НДС [17:43:40] 1010 (1) - 0% - код ставки НДС [17:43:40] 1011 (0) - 0.00 - сумма НДС по ставке [17:43:40] 1006 (9) - суммы НДС [17:43:40] 1010 (1) - 12% - код ставки НДС [17:43:40] 1011 (0) - 0.00 - сумма НДС по ставке [17:43:40] 1007 (9) - суммы НСП [17:43:40] 1014 (1) - 0% - код ставки НСП [17:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [17:43:40] 1007 (9) - суммы НСП [17:43:40] 1014 (1) - 1% - код ставки НСП [17:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [17:43:40] 1007 (9) - суммы НСП [17:43:40] 1014 (1) - 2% - код ставки НСП [17:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [17:43:40] 1007 (9) - суммы НСП [17:43:40] 1014 (1) - 3% - код ставки НСП [17:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [17:43:40] 1007 (9) - суммы НСП [17:43:40] 1014 (1) - 5% - код ставки НСП [17:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [17:43:40] 1007 (9) - суммы НСП [17:43:40] 1014 (1) - 0,50% - код ставки НСП [17:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [17:43:40] 1007 (9) - суммы НСП [17:43:40] 1014 (1) - 1,50% - код ставки НСП [17:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [17:43:40] 1132 (141) - счетчики операций «возврат расхода» [17:43:40] 1135 (4) - 0 - количество чеков по признаку расчетов [17:43:40] 1201 (0) - 0.00 - общая итоговая сумма в чеках [17:43:40] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [17:43:40] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [17:43:40] 1024 (117) - суммы налогов [17:43:40] 1006 (9) - суммы НДС [17:43:40] 1010 (1) - 0% - код ставки НДС [17:43:40] 1011 (0) - 0.00 - сумма НДС по ставке [17:43:40] 1006 (9) - суммы НДС [17:43:40] 1010 (1) - 12% - код ставки НДС [17:43:40] 1011 (0) - 0.00 - сумма НДС по ставке [17:43:40] 1007 (9) - суммы НСП [17:43:40] 1014 (1) - 0% - код ставки НСП [17:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [17:43:40] 1007 (9) - суммы НСП [17:43:40] 1014 (1) - 1% - код ставки НСП [17:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [17:43:40] 1007 (9) - суммы НСП [17:43:40] 1014 (1) - 2% - код ставки НСП [17:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [17:43:40] 1007 (9) - суммы НСП [17:43:40] 1014 (1) - 3% - код ставки НСП [17:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [17:43:40] 1007 (9) - суммы НСП [17:43:40] 1014 (1) - 5% - код ставки НСП [17:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [17:43:40] 1007 (9) - суммы НСП [17:43:40] 1014 (1) - 0,50% - код ставки НСП [17:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [17:43:40] 1007 (9) - суммы НСП [17:43:40] 1014 (1) - 1,50% - код ставки НСП [17:43:40] 1015 (0) - 0.00 - сумма НСП по ставке [17:43:40] 1133 (588) - - счетчики коррекции - не используются [17:43:40]SetTLVBufToDocument [17:43:40]Processing tag 1194 (04AA) [17:43:40]Load OK [17:43:40]SetTLVBufToDocument [17:43:40]Processing tag 1134 (046E) [17:43:40]Malloc new data [17:43:40]Processing tag 1129 (0469) [17:43:40]Load OK [17:43:40]SetTLVBufToDocument [17:43:40]Processing tag 1135 (046F) [17:43:40]Malloc new data [17:43:40]Processing tag 1201 (04B1) [17:43:40]Malloc new data [17:43:40]Processing tag 1136 (0470) [17:43:40]Malloc new data [17:43:40]Processing tag 1138 (0472) [17:43:40]Malloc new data [17:43:40]Processing tag 1024 (0400) [17:43:40]Load OK [17:43:40]SetTLVBufToDocument [17:43:40]Processing tag 1006 (03EE) [17:43:40]Load OK [17:43:40]SetTLVBufToDocument [17:43:40]Processing tag 1010 (03F2) [17:43:40]Malloc new data [17:43:40]Processing tag 1011 (03F3) [17:43:40]Malloc new data [17:43:40]SetTLVBufToDocument err=0 [17:43:40]Processing tag 1006 (03EE) [17:43:40]Load OK [17:43:41]SetTLVBufToDocument [17:43:41]Processing tag 1010 (03F2) [17:43:41]Malloc new data [17:43:41]Processing tag 1011 (03F3) [17:43:41]Malloc new data [17:43:41]SetTLVBufToDocument err=0 [17:43:41]Processing tag 1007 (03EF) [17:43:41]Load OK [17:43:41]SetTLVBufToDocument [17:43:41]Processing tag 1014 (03F6) [17:43:41]Malloc new data [17:43:41]Processing tag 1015 (03F7) [17:43:41]Malloc new data [17:43:41]SetTLVBufToDocument err=0 [17:43:41]Processing tag 1007 (03EF) [17:43:41]Load OK [17:43:41]SetTLVBufToDocument [17:43:41]Processing tag 1014 (03F6) [17:43:41]Malloc new data [17:43:41]Processing tag 1015 (03F7) [17:43:41]Malloc new data [17:43:41]SetTLVBufToDocument err=0 [17:43:41]Processing tag 1007 (03EF) [17:43:41]Load OK [17:43:41]SetTLVBufToDocument [17:43:41]Processing tag 1014 (03F6) [17:43:41]Malloc new data [17:43:41]Processing tag 1015 (03F7) [17:43:41]Malloc new data [17:43:41]SetTLVBufToDocument err=0 [17:43:41]Processing tag 1007 (03EF) [17:43:41]Load OK [17:43:41]SetTLVBufToDocument [17:43:41]Processing tag 1014 (03F6) [17:43:41]Malloc new data [17:43:41]Processing tag 1015 (03F7) [17:43:41]Malloc new data [17:43:41]SetTLVBufToDocument err=0 [17:43:41]Processing tag 1007 (03EF) [17:43:41]Load OK [17:43:41]SetTLVBufToDocument [17:43:41]Processing tag 1014 (03F6) [17:43:41]Malloc new data [17:43:41]Processing tag 1015 (03F7) [17:43:41]Malloc new data [17:43:41]SetTLVBufToDocument err=0 [17:43:41]Processing tag 1007 (03EF) [17:43:41]Load OK [17:43:41]SetTLVBufToDocument [17:43:41]Processing tag 1014 (03F6) [17:43:41]Malloc new data [17:43:41]Processing tag 1015 (03F7) [17:43:41]Malloc new data [17:43:41]SetTLVBufToDocument err=0 [17:43:41]Processing tag 1007 (03EF) [17:43:41]Load OK [17:43:41]SetTLVBufToDocument [17:43:41]Processing tag 1014 (03F6) [17:43:41]Malloc new data [17:43:41]Processing tag 1015 (03F7) [17:43:41]Malloc new data [17:43:41]SetTLVBufToDocument err=0 [17:43:41]SetTLVBufToDocument err=0 [17:43:41]SetTLVBufToDocument err=0 [17:43:41]Processing tag 1130 (046A) [17:43:41]Load OK [17:43:41]SetTLVBufToDocument [17:43:41]Processing tag 1135 (046F) [17:43:41]Malloc new data [17:43:41]Processing tag 1201 (04B1) [17:43:41]Malloc new data [17:43:41]Processing tag 1136 (0470) [17:43:41]Malloc new data [17:43:41]Processing tag 1138 (0472) [17:43:41]Malloc new data [17:43:41]Processing tag 1024 (0400) [17:43:41]Load OK [17:43:41]SetTLVBufToDocument [17:43:41]Processing tag 1006 (03EE) [17:43:41]Load OK [17:43:41]SetTLVBufToDocument [17:43:41]Processing tag 1010 (03F2) [17:43:41]Malloc new data [17:43:41]Processing tag 1011 (03F3) [17:43:41]Malloc new data [17:43:41]SetTLVBufToDocument err=0 [17:43:41]Processing tag 1006 (03EE) [17:43:41]Load OK [17:43:41]SetTLVBufToDocument [17:43:41]Processing tag 1010 (03F2) [17:43:41]Malloc new data [17:43:41]Processing tag 1011 (03F3) [17:43:41]Malloc new data [17:43:41]SetTLVBufToDocument err=0 [17:43:41]Processing tag 1007 (03EF) [17:43:41]Load OK [17:43:41]SetTLVBufToDocument [17:43:41]Processing tag 1014 (03F6) [17:43:41]Malloc new data [17:43:41]Processing tag 1015 (03F7) [17:43:41]Malloc new data [17:43:41]SetTLVBufToDocument err=0 [17:43:41]Processing tag 1007 (03EF) [17:43:41]Load OK [17:43:41]SetTLVBufToDocument [17:43:41]Processing tag 1014 (03F6) [17:43:41]Malloc new data [17:43:41]Processing tag 1015 (03F7) [17:43:41]Malloc new data [17:43:41]SetTLVBufToDocument err=0 [17:43:41]Processing tag 1007 (03EF) [17:43:41]Load OK [17:43:41]SetTLVBufToDocument [17:43:41]Processing tag 1014 (03F6) [17:43:41]Malloc new data [17:43:41]Processing tag 1015 (03F7) [17:43:41]Malloc new data [17:43:41]SetTLVBufToDocument err=0 [17:43:41]Processing tag 1007 (03EF) [17:43:41]Load OK [17:43:41]SetTLVBufToDocument [17:43:41]Processing tag 1014 (03F6) [17:43:41]Malloc new data [17:43:41]Processing tag 1015 (03F7) [17:43:41]Malloc new data [17:43:41]SetTLVBufToDocument err=0 [17:43:41]Processing tag 1007 (03EF) [17:43:41]Load OK [17:43:41]SetTLVBufToDocument [17:43:41]Processing tag 1014 (03F6) [17:43:41]Malloc new data [17:43:41]Processing tag 1015 (03F7) [17:43:41]Malloc new data [17:43:41]SetTLVBufToDocument err=0 [17:43:41]Processing tag 1007 (03EF) [17:43:41]Load OK [17:43:41]SetTLVBufToDocument [17:43:41]Processing tag 1014 (03F6) [17:43:41]Malloc new data [17:43:41]Processing tag 1015 (03F7) [17:43:41]Malloc new data [17:43:41]SetTLVBufToDocument err=0 [17:43:41]Processing tag 1007 (03EF) [17:43:41]Load OK [17:43:41]SetTLVBufToDocument [17:43:41]Processing tag 1014 (03F6) [17:43:41]Malloc new data [17:43:41]Processing tag 1015 (03F7) [17:43:41]Malloc new data [17:43:41]SetTLVBufToDocument err=0 [17:43:41]SetTLVBufToDocument err=0 [17:43:41]SetTLVBufToDocument err=0 [17:43:41]Processing tag 1131 (046B) [17:43:41]Load OK [17:43:41]SetTLVBufToDocument [17:43:41]Processing tag 1135 (046F) [17:43:41]Malloc new data [17:43:41]Processing tag 1201 (04B1) [17:43:41]Malloc new data [17:43:41]Processing tag 1136 (0470) [17:43:41]Malloc new data [17:43:41]Processing tag 1138 (0472) [17:43:41]Malloc new data [17:43:41]Processing tag 1024 (0400) [17:43:41]Load OK [17:43:41]SetTLVBufToDocument [17:43:41]Processing tag 1006 (03EE) [17:43:41]Load OK [17:43:41]SetTLVBufToDocument [17:43:41]Processing tag 1010 (03F2) [17:43:41]Malloc new data [17:43:41]Processing tag 1011 (03F3) [17:43:41]Malloc new data [17:43:41]SetTLVBufToDocument err=0 [17:43:41]Processing tag 1006 (03EE) [17:43:41]Load OK [17:43:41]SetTLVBufToDocument [17:43:41]Processing tag 1010 (03F2) [17:43:41]Malloc new data [17:43:41]Processing tag 1011 (03F3) [17:43:41]Malloc new data [17:43:41]SetTLVBufToDocument err=0 [17:43:41]Processing tag 1007 (03EF) [17:43:41]Load OK [17:43:41]SetTLVBufToDocument [17:43:41]Processing tag 1014 (03F6) [17:43:41]Malloc new data [17:43:41]Processing tag 1015 (03F7) [17:43:41]Malloc new data [17:43:41]SetTLVBufToDocument err=0 [17:43:41]Processing tag 1007 (03EF) [17:43:41]Load OK [17:43:41]SetTLVBufToDocument [17:43:41]Processing tag 1014 (03F6) [17:43:41]Malloc new data [17:43:41]Processing tag 1015 (03F7) [17:43:41]Malloc new data [17:43:41]SetTLVBufToDocument err=0 [17:43:41]Processing tag 1007 (03EF) [17:43:41]Load OK [17:43:41]SetTLVBufToDocument [17:43:41]Processing tag 1014 (03F6) [17:43:41]Malloc new data [17:43:41]Processing tag 1015 (03F7) [17:43:41]Malloc new data [17:43:41]SetTLVBufToDocument err=0 [17:43:41]Processing tag 1007 (03EF) [17:43:41]Load OK [17:43:41]SetTLVBufToDocument [17:43:41]Processing tag 1014 (03F6) [17:43:41]Malloc new data [17:43:41]Processing tag 1015 (03F7) [17:43:41]Malloc new data [17:43:41]SetTLVBufToDocument err=0 [17:43:41]Processing tag 1007 (03EF) [17:43:41]Load OK [17:43:41]SetTLVBufToDocument [17:43:41]Processing tag 1014 (03F6) [17:43:41]Malloc new data [17:43:41]Processing tag 1015 (03F7) [17:43:41]Malloc new data [17:43:41]SetTLVBufToDocument err=0 [17:43:41]Processing tag 1007 (03EF) [17:43:41]Load OK [17:43:41]SetTLVBufToDocument [17:43:41]Processing tag 1014 (03F6) [17:43:41]Malloc new data [17:43:41]Processing tag 1015 (03F7) [17:43:41]Malloc new data [17:43:41]SetTLVBufToDocument err=0 [17:43:41]Processing tag 1007 (03EF) [17:43:41]Load OK [17:43:41]SetTLVBufToDocument [17:43:41]Processing tag 1014 (03F6) [17:43:41]Malloc new data [17:43:41]Processing tag 1015 (03F7) [17:43:41]Malloc new data [17:43:41]SetTLVBufToDocument err=0 [17:43:41]SetTLVBufToDocument err=0 [17:43:41]SetTLVBufToDocument err=0 [17:43:41]Processing tag 1132 (046C) [17:43:41]Load OK [17:43:41]SetTLVBufToDocument [17:43:41]Processing tag 1135 (046F) [17:43:41]Malloc new data [17:43:41]Processing tag 1201 (04B1) [17:43:41]Malloc new data [17:43:41]Processing tag 1136 (0470) [17:43:41]Malloc new data [17:43:41]Processing tag 1138 (0472) [17:43:41]Malloc new data [17:43:41]Processing tag 1024 (0400) [17:43:41]Load OK [17:43:41]SetTLVBufToDocument [17:43:41]Processing tag 1006 (03EE) [17:43:41]Load OK [17:43:41]SetTLVBufToDocument [17:43:41]Processing tag 1010 (03F2) [17:43:41]Malloc new data [17:43:41]Processing tag 1011 (03F3) [17:43:41]Malloc new data [17:43:41]SetTLVBufToDocument err=0 [17:43:41]Processing tag 1006 (03EE) [17:43:41]Load OK [17:43:41]SetTLVBufToDocument [17:43:41]Processing tag 1010 (03F2) [17:43:41]Malloc new data [17:43:41]Processing tag 1011 (03F3) [17:43:41]Malloc new data [17:43:41]SetTLVBufToDocument err=0 [17:43:41]Processing tag 1007 (03EF) [17:43:41]Load OK [17:43:41]SetTLVBufToDocument [17:43:41]Processing tag 1014 (03F6) [17:43:41]Malloc new data [17:43:41]Processing tag 1015 (03F7) [17:43:41]Malloc new data [17:43:41]SetTLVBufToDocument err=0 [17:43:41]Processing tag 1007 (03EF) [17:43:41]Load OK [17:43:41]SetTLVBufToDocument [17:43:41]Processing tag 1014 (03F6) [17:43:41]Malloc new data [17:43:41]Processing tag 1015 (03F7) [17:43:41]Malloc new data [17:43:41]SetTLVBufToDocument err=0 [17:43:41]Processing tag 1007 (03EF) [17:43:41]Load OK [17:43:41]SetTLVBufToDocument [17:43:41]Processing tag 1014 (03F6) [17:43:41]Malloc new data [17:43:41]Processing tag 1015 (03F7) [17:43:41]Malloc new data [17:43:41]SetTLVBufToDocument err=0 [17:43:41]Processing tag 1007 (03EF) [17:43:41]Load OK [17:43:41]SetTLVBufToDocument [17:43:41]Processing tag 1014 (03F6) [17:43:41]Malloc new data [17:43:41]Processing tag 1015 (03F7) [17:43:41]Malloc new data [17:43:41]SetTLVBufToDocument err=0 [17:43:41]Processing tag 1007 (03EF) [17:43:41]Load OK [17:43:41]SetTLVBufToDocument [17:43:41]Processing tag 1014 (03F6) [17:43:41]Malloc new data [17:43:41]Processing tag 1015 (03F7) [17:43:41]Malloc new data [17:43:41]SetTLVBufToDocument err=0 [17:43:41]Processing tag 1007 (03EF) [17:43:41]Load OK [17:43:41]SetTLVBufToDocument [17:43:41]Processing tag 1014 (03F6) [17:43:41]Malloc new data [17:43:41]Processing tag 1015 (03F7) [17:43:41]Malloc new data [17:43:41]SetTLVBufToDocument err=0 [17:43:41]Processing tag 1007 (03EF) [17:43:41]Load OK [17:43:41]SetTLVBufToDocument [17:43:41]Processing tag 1014 (03F6) [17:43:41]Malloc new data [17:43:41]Processing tag 1015 (03F7) [17:43:41]Malloc new data [17:43:41]SetTLVBufToDocument err=0 [17:43:41]SetTLVBufToDocument err=0 [17:43:41]SetTLVBufToDocument err=0 [17:43:41]Processing tag 1133 (046D) [17:43:41]Malloc new data [17:43:41]SetTLVBufToDocument err=0 [17:43:41]SetTLVBufToDocument err=0 [17:43:41]Malloc new data [17:43:41]SAM_PROTO_GetFMData [17:43:41]wFMCommunicate request_size=4 [17:43:41]MH_SAM_APDU [17:43:41]CAPDU: 80 13 03 00 [17:43:41]Write to MH i2c: E2 08 00 A5 3B 80 13 03 00 00 00 00 00 5F [17:43:41]Write i2c OK [17:43:41]MH_I2C_Read... [17:43:42]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:43:42]Read from MH i2c: E2 [17:43:42]MH_I2C_Read... [17:43:42]Read from MH i2c: E2 FD 00 [17:43:42]MH_I2C_Read... [17:43:42]Read from MH i2c: E2 FD 00 A5 3B 00 C1 04 85 04 BD 04 6E 04 04 00 70 07 01 00 69 04 A3 00 6F 04 04 00 66 07 01 00 B1 04 05 00 76 CE 7F 75 01 70 04 05 00 84 0B DE 36 01 72 04 04 00 F2 C2 A1 3E 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 A7 FF AC 27 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 BE 5A 4E 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 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 8C 63 1F 70 04 03 00 8C 63 1F 72 04 00 00 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 6C 55 03 EF 03 09 00 F6 03 90 00 8C [17:43:42]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 70 07 01 00 69 04 A3 00 6F 04 04 00 66 07 01 00 B1 04 05 00 76 CE 7F 75 01 70 04 05 00 84 0B DE 36 01 72 04 04 00 F2 C2 A1 3E 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 A7 FF AC 27 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 BE 5A 4E 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 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 8C 63 1F 70 04 03 00 8C 63 1F 72 04 00 00 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 6C 55 03 EF 03 09 00 F6 03 90 00 [17:43:42]wFMCommunicate OK [17:43:42]wFMCommunicate request_size=4 [17:43:42]MH_SAM_APDU [17:43:42]CAPDU: 80 17 00 00 [17:43:42]Write to MH i2c: E2 08 00 A6 3B 80 17 00 00 00 00 00 00 61 [17:43:42]Write i2c OK [17:43:42]MH_I2C_Read... [17:43:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:43:42]Read from MH i2c: E2 [17:43:42]MH_I2C_Read... [17:43:42]Read from MH i2c: E2 FD 00 [17:43:42]MH_I2C_Read... [17:43:42]Read from MH i2c: E2 FD 00 A6 3B 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1D 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 F4 [17:43:42]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1D 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 OFD Sender: No OFD packet to send [17:43:43]00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [17:43:43]wFMCommunicate OK [17:43:43]wFMCommunicate request_size=4 [17:43:43]MH_SAM_APDU [17:43:43]CAPDU: 80 17 00 00 [17:43:43]Write to MH i2c: E2 08 00 A7 3B 80 17 00 00 00 00 00 00 62 [17:43:43]Write i2c OK [17:43:43]MH_I2C_Read... [17:43:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:43:43]Read from MH i2c: E2 [17:43:43]MH_I2C_Read... [17:43:43]Read from MH i2c: E2 FD 00 [17:43:43]MH_I2C_Read... [17:43:43]Read from MH i2c: E2 FD 00 A7 3B 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 02 [17:43:43]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [17:43:43]wFMCommunicate OK [17:43:43]wFMCommunicate request_size=4 [17:43:43]MH_SAM_APDU [17:43:43]CAPDU: 80 17 00 00 [17:43:43]Write to MH i2c: E2 08 00 A8 3B 80 17 00 00 00 00 00 00 63 [17:43:43]Write i2c OK [17:43:43]MH_I2C_Read... [17:43:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:43:43]Read from MH i2c: E2 [17:43:43]MH_I2C_Read... [17:43:43]Read from MH i2c: E2 FD 00 [17:43:43]MH_I2C_Read... [17:43:43]Read from MH i2c: E2 FD 00 A8 3B 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 E8 [17:43:44]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [17:43:44]wFMCommunicate OK [17:43:44]wFMCommunicate request_size=4 [17:43:44]MH_SAM_APDU [17:43:44]CAPDU: 80 17 00 00 [17:43:44]Write to MH i2c: E2 08 00 A9 3B 80 17 00 00 00 00 00 00 64 [17:43:44]Write i2c OK [17:43:44]MH_I2C_Read... [17:43:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [17:43:44]Read from MH i2c: E2 [17:43:44]MH_I2C_Read... [17:43:44]Read from MH i2c: E2 DE 00 [17:43:44]MH_I2C_Read... [17:43:44]Read from MH i2c: E2 DE 00 A9 3B 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [17:43:44]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:43:44]wFMCommunicate OK [17:43:44]SAM_PROTO_GetFMData done [17:43:44]FM_GetFMData:85 04 BD 04 6E 04 04 00 70 07 01 00 69 04 A3 00 6F 04 04 00 66 07 01 00 B1 04 05 00 76 CE 7F 75 01 70 04 05 00 84 0B DE 36 01 72 04 04 00 F2 C2 A1 3E 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 A7 FF AC 27 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 BE 5A 4E 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 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 8C 63 1F 70 04 03 00 8C 63 1F 72 04 00 00 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 6C 55 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 1D 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 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 [17:43:45]oper:6F 04 04 00 66 07 01 00 B1 04 05 00 76 CE 7F 75 01 70 04 05 00 84 0B DE 36 01 72 04 04 00 F2 C2 A1 3E 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 A7 FF AC 27 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 BE 5A 4E 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 [17:43:45]total:76 CE 7F 75 01 [17:43:45]Malloc new data [17:43:45]oper:6F 04 04 00 0A 00 00 00 B1 04 03 00 8C 63 1F 70 04 03 00 8C 63 1F 72 04 00 00 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 6C 55 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 1D 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 [17:43:45]total:8C 63 1F [17:43:45]Malloc new data [17:43: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 [17:43:45]total: [17:43:45]Malloc new data [17:43: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 [17:43:45]total: [17:43:45]Malloc new data [17:43:45]KKMPrepareXReportFMData err=0 [17:43:45]Х отчет ИНН: 02508201610067 Кассир: Мамбеталиев Ж. 23.10.2024 17:43 Смена: 266 РНМ: 0000000000091756 ЗНМ: 0300000094 СНО: Общий режим Всего чеков: 77 ИТОГИ ПРИХОД Чеков: 77 Общий итог: 40259.86 Итого наличными: 34136.00 Итого безнал.: 6123.86 НДС 0% : 0.00 НДС 12% : 4277.31 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 356.44 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 34136.00 НС Приход: 62662774.94 НС Возвр.Прихода: 20571.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871809 [17:43:45]StoreToDocumentArchive [17:43:45]MH_GetDate [17:43:45]Write to MH i2c: F0 00 00 AA 3B D4 [17:43:45]Write i2c OK [17:43:45]MH_I2C_Read... [17:43:45]Read from MH i2c: F0 [17:43:45]MH_I2C_Read... [17:43:45]Read from MH i2c: F0 09 00 [17:43:45]MH_I2C_Read... [17:43:45]Read from MH i2c: F0 09 00 AA 3B 00 DB 35 19 67 D7 68 A5 64 B5 [17:43:45]shift 266 fd 1729705435 [17:43:45]Create dir for shift 0266 [17:43:45]save to /storage/0266/doc_1729705435 [17:43:45]save last doc name /storage/0266/doc_1729705435 to /storage/kkm_last_doc_name [17:43:45]save OK [17:43:45]Clear old archive folders... [17:43:45]NVStorageSaveData kkm_last_timestamp [17:43:45]File name is /storage/kkm_last_timestamp [17:43:45]Write 4 bytes [17:43:45]NVStorageSaveData done [17:43:45]ExternCall_PrintAddStr [17:43:45]wPrintStart [17:43:45]Write to MH i2c: 01 00 00 AB 3B E6 [17:43:45]Write i2c OK [17:43:45]MH_I2C_Read... [17:43:45]Read from MH i2c: 01 [17:43:45]MH_I2C_Read... [17:43:45]Read from MH i2c: 01 07 00 [17:43:45]MH_I2C_Read... [17:43:45]Read from MH i2c: 01 07 00 AB 3B 00 04 00 00 00 FF 0F FF [17:43:45]RasterBufferAndPrint [17:43:45]line Х отчет [17:43:45]line ИНН: 02508201610067 [17:43:45]line Кассир: Мамбеталиев Ж. [17:43:45]line 23.10.2024 17:43 [17:43:45]line Смена: 266 [17:43:45]line РНМ: 0000000000091756 [17:43:45]line ЗНМ: 0300000094 [17:43:45]line СНО: Общий режим [17:43:45]line Всего чеков: 77 [17:43:45]line ИТОГИ ПРИХОД [17:43:45]line Чеков: 77 [17:43:45]line Общий итог: 40259.86 [17:43:45]line Итого наличными: 34136.00 [17:43:45]line Итого безнал.: 6123.86 [17:43:45]line НДС 0% : 0.00 [17:43:45]line НДС 12% : 4277.31 [17:43:45]line НСП 0% : 0.00 [17:43:45]line НСП 1,50% : 0.00 [17:43:45]line НСП 0,50% : 0.00 [17:43:45]line НСП 5% : 0.00 [17:43:45]line НСП 3% : 0.00 [17:43:45]line НСП 2% : 0.00 [17:43:45]line НСП 1% : 356.44 [17:43:45]line ИТОГИ ВОЗВРАТ ПРИХОДА [17:43:45]line Чеков: 0 [17:43:45]line Общий итог: 0.00 [17:43:45]line Итого наличными: 0.00 [17:43:45]line Итого безнал.: 0.00 [17:43:45]line НДС 0% : 0.00 [17:43:45]line НДС 12% : 0.00 [17:43:45]line НСП 0% : 0.00 [17:43:45]line НСП 1,50% : 0.00 [17:43:45]line НСП 0,50% : 0.00 [17:43:45]line НСП 5% : 0.00 [17:43:45]line НСП 3% : 0.00 [17:43:45]line НСП 2% : 0.00 [17:43:45]line НСП 1% : 0.00 [17:43:45]line ИТОГИ РАСХОД [17:43:45]line Чеков: 0 [17:43:45]line Общий итог: 0.00 [17:43:45]line Итого наличными: 0.00 [17:43:45]line Итого безнал.: 0.00 [17:43:45]line НДС 0% : 0.00 [17:43:45]line НДС 12% : 0.00 [17:43:45]line НСП 0% : 0.00 [17:43:45]line НСП 1,50% : 0.00 [17:43:45]line НСП 0,50% : 0.00 [17:43:45]line НСП 5% : 0.00 [17:43:45]line НСП 3% : 0.00 [17:43:45]line НСП 2% : 0.00 [17:43:45]line НСП 1% : 0.00 [17:43:45]line ИТОГИ ВОЗВРАТ РАСХОДА [17:43:45]line Чеков: 0 [17:43:45]line Общий итог: 0.00 [17:43:45]line Итого наличными: 0.00 [17:43:45]line Итого безнал.: 0.00 [17:43:45]line НДС 0% : 0.00 [17:43:45]line НДС 12% : 0.00 [17:43:45]line НСП 0% : 0.00 [17:43:45]line НСП 1,50% : 0.00 [17:43:45]line НСП 0,50% : 0.00 [17:43:45]line НСП 5% : 0.00 [17:43:45]line НСП 3% : 0.00 [17:43:45]line НСП 2% : 0.00 [17:43:45]line НСП 1% : 0.00 [17:43:45]line Сумма внесений: 0.00 [17:43:45]line Сумма выплат: 0.00 [17:43:45]line Нал. в кассе: 34136.00 [17:43:45]line НС Приход: 62662774.94 [17:43:45]line НС Возвр.Прихода: 20571.00 [17:43:45]line НС Расход: 0.00 [17:43:45]line НС Возвр.Расхода: 0.00 [17:43:45]line ФМ: 0000000000871809 [17:43:45]written 0, free lines is 4095 [17:43:46]Write to MH i2c: 01 00 00 F6 3B 31 [17:43:46]Write i2c OK [17:43:46]MH_I2C_Read... [17:43:46]Read from MH i2c: 01 [17:43:46]MH_I2C_Read... [17:43:46]Read from MH i2c: 01 07 00 [17:43:46]MH_I2C_Read... [17:43:46]Read from MH i2c: 01 07 00 F6 3B 00 04 00 00 00 7C 0A C2 [17:43:46]RasterBufferAndPrint [17:43:46]line [17:43:46]line [17:43:46]line [17:43:46]line [17:43:46]line [17:43:46]written 0, free lines is 2712 [17:43:46]MH_Cut [17:43:46]Write to MH i2c: D1 01 00 FD 3B 01 0A [17:43:46]Write i2c OK [17:43:46]MH_I2C_Read... [17:43:46]Read from MH i2c: D1 [17:43:46]MH_I2C_Read... [17:43:46]Read from MH i2c: D1 01 00 [17:43:46]MH_I2C_Read... [17:43:46]Read from MH i2c: D1 01 00 FD 3B 00 09 [17:43:46]Write to MH i2c: 01 00 00 FE 3B 39 [17:43:46]Write i2c OK [17:43:46]MH_I2C_Read... [17:43:47]*** Cut start [17:43:47]*** Partial cut [17:43:47]*** CUTSNS_PIN = 1 [17:43:47]*** CUTSNS_PIN = 0 [17:43:47]*** Brake cut motor [17:43:48]OFD Sender: No OFD packet to send [17:43:48]Read from MH i2c: 01 [17:43:48]MH_I2C_Read... [17:43:48]*** Stop cut motor [17:43:48]*** Cut end [17:43:48]Read from MH i2c: 01 07 00 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: 01 07 00 FE 3B 00 04 00 00 00 FF 0F 52 [17:43:48]process_action x_report done [17:43:48]requested_data is exist [17:43:48]produce_requested_data [17:43:48]requested_item fd.num is exist - process it [17:43:48]SAM_PROTO_GetFieldsCounters [17:43:48]wFMCommunicate request_size=4 [17:43:48]MH_SAM_APDU [17:43:48]CAPDU: 80 13 00 00 [17:43:48]Write to MH i2c: E2 08 00 FF 3B 80 13 00 00 00 00 00 00 B6 [17:43:48]Write i2c OK [17:43:48]MH_I2C_Read... [17:43:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:43:48]Read from MH i2c: E2 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: E2 62 00 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: E2 62 00 FF 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 66 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [17:43:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 66 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:43:48]wFMCommunicate OK [17:43:48]SAM_PROTO_GetFieldsCounters done [17:43:48]requested_item shift.num is exist - process it [17:43:48]requested_item shift.opened is exist - process it [17:43:48]req_shift_opened [17:43:48]FM_GetShiftState [17:43:48]SAM_PROTO_GetShiftState [17:43:48]wFMCommunicate request_size=4 [17:43:48]MH_SAM_APDU [17:43:48]CAPDU: 80 13 01 00 [17:43:48]Write to MH i2c: E2 08 00 00 3C 80 13 01 00 00 00 00 00 B9 [17:43:48]Write i2c OK [17:43:48]MH_I2C_Read... [17:43:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:48]Read from MH i2c: E2 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: E2 0E 00 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: E2 0E 00 00 3C 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 28 [17:43:48]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [17:43:48]wFMCommunicate OK [17:43:48]SAM_PROTO_GetShiftState done [17:43:48]FM_GetShiftState done [17:43:48]req_shift_opened done [17:43:48]requested_item shift.open_date is exist - process it [17:43:48]req_shift_open_date [17:43:48]req_shift_open_date done [17:43:48]produce_requested_data done [17:43:48]produce_requested_data return {"fd.num":68454,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [17:43:48]process_action_free x_report [17:43:48]json_value_free [17:43:48]json_value_free done [17:43:48]process_json_proto returns [17:43:48]Send response to host [17:43:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":68454,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [17:43:48]free response buf [17:43:48]execute_script done [17:43:48]execute_script returns [17:43:48]free content buf [17:43:48]Sock 9.Close socket [17:43:48]Sock 9.Thread stoped [17:43:53]OFD Sender: No OFD packet to send [17:43:58]OFD Sender: No OFD packet to send [17:44:00]accept exits with 10 [17:44:00]New connection [17:44:00]New thread 3067276644 created [17:44:00]Thread 3067133284 joined [17:44:00]Waiting for new connection... [17:44:00] Sock 10.Parse request [17:44:00]Sock 10.Check first char [17:44:00]Sock 10.First char is OK [17:44:00]request: POST /json_proto HTTP/1.0 [17:44:00]Method: POST [17:44:00]URL: /json_proto [17:44:00]Method is POST - this is cgi request [17:44:00]url: /json_proto [17:44:00]query_string will be loaded in cgi processing [17:44:00]execute_cgi json_proto POST (null) [17:44:00]execute_cgi path=json_proto method=POST [17:44:00]POST find Content-Length [17:44:00]Host: 172.17.52.3:8080 [17:44:00]Content-Length: 215 [17:44:00]Content-Type: application/json [17:44:00] [17:44:00]POST finish read [17:44:00]Found Content-Length = 215 [17:44:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:44:00]execute_script... [17:44:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:44:00]POST & json_proto [17:44:00]process_json_proto [17:44:00]json parsed OK: [17:44:00]protocol is kg_v1.0 [17:44:00]action value=get_value [17:44:00]process_action get_value [17:44:00]cmd_get_value [17:44:00]process_action get_value done [17:44:00]requested_data is exist [17:44:00]produce_requested_data [17:44:00]requested_item kkm.sn is exist - process it [17:44:00]requested_item kkm.ver is exist - process it [17:44:00]requested_item fm.sn is exist - process it [17:44:00]wFMCommunicate request_size=4 [17:44:00]MH_SAM_APDU [17:44:00]CAPDU: 80 11 00 00 [17:44:00]Write to MH i2c: E2 08 00 01 3C 80 11 00 00 00 00 00 00 B7 [17:44:00]Write i2c OK [17:44:00]MH_I2C_Read... [17:44:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:00]Read from MH i2c: E2 [17:44:00]MH_I2C_Read... [17:44:00]Read from MH i2c: E2 17 00 [17:44:00]MH_I2C_Read... [17:44:00]Read from MH i2c: E2 17 00 01 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 0B [17:44:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [17:44:00]wFMCommunicate OK [17:44:00]requested_item fd.num is exist - process it [17:44:00]SAM_PROTO_GetFieldsCounters [17:44:00]wFMCommunicate request_size=4 [17:44:00]MH_SAM_APDU [17:44:00]CAPDU: 80 13 00 00 [17:44:00]Write to MH i2c: E2 08 00 02 3C 80 13 00 00 00 00 00 00 BA [17:44:00]Write i2c OK [17:44:00]MH_I2C_Read... [17:44:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:44:01]Read from MH i2c: E2 [17:44:01]MH_I2C_Read... [17:44:01]Read from MH i2c: E2 62 00 [17:44:01]MH_I2C_Read... [17:44:01]Read from MH i2c: E2 62 00 02 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 66 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [17:44:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 66 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:44:01]wFMCommunicate OK [17:44:01]SAM_PROTO_GetFieldsCounters done [17:44:01]requested_item shift.num is exist - process it [17:44:01]requested_item shift.opened is exist - process it [17:44:01]req_shift_opened [17:44:01]FM_GetShiftState [17:44:01]SAM_PROTO_GetShiftState [17:44:01]wFMCommunicate request_size=4 [17:44:01]MH_SAM_APDU [17:44:01]CAPDU: 80 13 01 00 [17:44:01]Write to MH i2c: E2 08 00 03 3C 80 13 01 00 00 00 00 00 BC [17:44:01]Write i2c OK [17:44:01]MH_I2C_Read... [17:44:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:01]Read from MH i2c: E2 [17:44:01]MH_I2C_Read... [17:44:01]Read from MH i2c: E2 0E 00 [17:44:01]MH_I2C_Read... [17:44:01]Read from MH i2c: E2 0E 00 03 3C 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 2B [17:44:01]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [17:44:01]wFMCommunicate OK [17:44:01]SAM_PROTO_GetShiftState done [17:44:01]FM_GetShiftState done [17:44:01]req_shift_opened done [17:44:01]requested_item shift.open_date is exist - process it [17:44:01]req_shift_open_date [17:44:01]req_shift_open_date done [17:44:01]produce_requested_data done [17:44:01]produce_requested_data return {"kkm.sn":"0300000094","kkm.ver":"001","fm.sn":"0000000000871809","fd.num":68454,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385} [17:44:01]process_action_free get_value [17:44:01]json_value_free [17:44:01]json_value_free done [17:44:01]process_json_proto returns [17:44:01]Send response to host [17:44:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000094","kkm.ver":"001","fm.sn":"0000000000871809","fd.num":68454,"shift.num":507,"shift.opened":1,"shift.open_date":1729641385}}} [17:44:01]free response buf [17:44:01]execute_script done [17:44:01]execute_script returns [17:44:01]free content buf [17:44:01]Sock 10.Close socket [17:44:01]Sock 10.Thread stoped [17:44:01]accept exits with 7 [17:44:01]New connection [17:44:01]New thread 3067133284 created [17:44:01]Thread 3067276644 joined [17:44:01]Waiting for new connection... [17:44:01] Sock 7.Parse request [17:44:01]Sock 7.Check first char [17:44:01]Sock 7.First char is OK [17:44:01]request: POST /json_proto HTTP/1.0 [17:44:01]Method: POST [17:44:01]URL: /json_proto [17:44:01]Method is POST - this is cgi request [17:44:01]url: /json_proto [17:44:01]query_string will be loaded in cgi processing [17:44:01]execute_cgi json_proto POST (null) [17:44:01]execute_cgi path=json_proto method=POST [17:44:01]POST find Content-Length [17:44:01]Host: 172.17.52.3:8080 [17:44:01]Content-Length: 331 [17:44:01]Content-Type: application/json [17:44:01] [17:44:01]POST finish read [17:44:01]Found Content-Length = 331 [17:44:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:44:01]execute_script... [17:44:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:44:01]POST & json_proto [17:44:01]process_json_proto [17:44:01]json parsed OK: [17:44:01]protocol is kg_v1.0 [17:44:01]action value=get_value [17:44:01]process_action get_value [17:44:01]cmd_get_value [17:44:01]process_action get_value done [17:44:01]requested_data is exist [17:44:01]produce_requested_data [17:44:01]requested_item fm.sale.total is exist - process it [17:44:01]SAM_PROTO_GetFMData [17:44:01]wFMCommunicate request_size=4 [17:44:01]MH_SAM_APDU [17:44:01]CAPDU: 80 13 03 00 [17:44:01]Write to MH i2c: E2 08 00 04 3C 80 13 03 00 00 00 00 00 BF [17:44:01]Write i2c OK [17:44:01]MH_I2C_Read... [17:44:01]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:44:01]Read from MH i2c: E2 [17:44:01]MH_I2C_Read... [17:44:01]Read from MH i2c: E2 FD 00 [17:44:01]MH_I2C_Read... [17:44:01]Read from MH i2c: E2 FD 00 04 3C 00 C1 04 85 04 BD 04 6E 04 04 00 70 07 01 00 69 04 A3 00 6F 04 04 00 66 07 01 00 B1 04 05 00 76 CE 7F 75 01 70 04 05 00 84 0B DE 36 01 72 04 04 00 F2 C2 A1 3E 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 A7 FF AC 27 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 BE 5A 4E 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 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 8C 63 1F 70 04 03 00 8C 63 1F 72 04 00 00 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 6C 55 03 EF 03 09 00 F6 03 90 00 EC [17:44:01]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 70 07 01 00 69 04 A3 00 6F 04 04 00 66 07 01 00 B1 04 05 00 76 CE 7F 75 01 70 04 05 00 84 0B DE 36 01 72 04 04 00 F2 C2 A1 3E 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 A7 FF AC 27 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 BE 5A 4E 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 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 8C 63 1F 70 04 03 00 8C 63 1F 72 04 00 00 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 6C 55 03 EF 03 09 00 F6 03 90 00 [17:44:01]wFMCommunicate OK [17:44:01]wFMCommunicate request_size=4 [17:44:01]MH_SAM_APDU [17:44:01]CAPDU: 80 17 00 00 [17:44:01]Write to MH i2c: E2 08 00 05 3C 80 17 00 00 00 00 00 00 C1 [17:44:01]Write i2c OK [17:44:01]MH_I2C_Read... [17:44:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:44:02]Read from MH i2c: E2 [17:44:02]MH_I2C_Read... [17:44:02]Read from MH i2c: E2 FD 00 [17:44:02]MH_I2C_Read... [17:44:02]Read from MH i2c: E2 FD 00 05 3C 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1D 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 54 [17:44:02]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1D 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [17:44:02]wFMCommunicate OK [17:44:02]wFMCommunicate request_size=4 [17:44:02]MH_SAM_APDU [17:44:02]CAPDU: 80 17 00 00 [17:44:02]Write to MH i2c: E2 08 00 06 3C 80 17 00 00 00 00 00 00 C2 [17:44:02]Write i2c OK [17:44:02]MH_I2C_Read... [17:44:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:44:02]Read from MH i2c: E2 [17:44:02]MH_I2C_Read... [17:44:02]Read from MH i2c: E2 FD 00 [17:44:02]MH_I2C_Read... [17:44:02]Read from MH i2c: E2 FD 00 06 3C 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 62 [17:44:02]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [17:44:02]wFMCommunicate OK [17:44:02]wFMCommunicate request_size=4 [17:44:02]MH_SAM_APDU [17:44:02]CAPDU: 80 17 00 00 [17:44:02]Write to MH i2c: E2 08 00 07 3C 80 17 00 00 00 00 00 00 C3 [17:44:02]Write i2c OK [17:44:02]MH_I2C_Read... [17:44:03]OFD Sender: No OFD packet to send [17:44:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:44:03]Read from MH i2c: E2 [17:44:03]MH_I2C_Read... [17:44:03]Read from MH i2c: E2 FD 00 [17:44:03]MH_I2C_Read... [17:44:03]Read from MH i2c: E2 FD 00 07 3C 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 48 [17:44:03]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [17:44:03]wFMCommunicate OK [17:44:03]wFMCommunicate request_size=4 [17:44:03]MH_SAM_APDU [17:44:03]CAPDU: 80 17 00 00 [17:44:03]Write to MH i2c: E2 08 00 08 3C 80 17 00 00 00 00 00 00 C4 [17:44:03]Write i2c OK [17:44:03]MH_I2C_Read... [17:44:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [17:44:03]Read from MH i2c: E2 [17:44:03]MH_I2C_Read... [17:44:03]Read from MH i2c: E2 DE 00 [17:44:03]MH_I2C_Read... [17:44:03]Read from MH i2c: E2 DE 00 08 3C 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A3 [17:44:03]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:44:03]wFMCommunicate OK [17:44:03]SAM_PROTO_GetFMData done [17:44:03]requested_item fm.sale_refund.total is exist - process it [17:44:03]requested_item fm.buy.total is exist - process it [17:44:03]requested_item shift.sale.total is exist - process it [17:44:03]SAM_PROTO_GetShiftData [17:44:03]wFMCommunicate request_size=4 [17:44:03]MH_SAM_APDU [17:44:03]CAPDU: 80 13 02 00 [17:44:03]Write to MH i2c: E2 08 00 09 3C 80 13 02 00 00 00 00 00 C3 [17:44:03]Write i2c OK [17:44:03]MH_I2C_Read... [17:44:04]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:44:04]Read from MH i2c: E2 [17:44:04]MH_I2C_Read... [17:44:04]Read from MH i2c: E2 FD 00 [17:44:04]MH_I2C_Read... [17:44:04]Read from MH i2c: E2 FD 00 09 3C 00 AE 04 AA 04 AA 04 6E 04 04 00 4D 00 00 00 69 04 9B 00 6F 04 04 00 4D 00 00 00 B1 04 03 00 82 6E 3D 70 04 03 00 60 16 34 72 04 03 00 22 58 09 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D3 86 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3C 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 9E [17:44:04]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 4D 00 00 00 69 04 9B 00 6F 04 04 00 4D 00 00 00 B1 04 03 00 82 6E 3D 70 04 03 00 60 16 34 72 04 03 00 22 58 09 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D3 86 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3C 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [17:44:04]wFMCommunicate OK [17:44:04]wFMCommunicate request_size=4 [17:44:04]MH_SAM_APDU [17:44:04]CAPDU: 80 17 00 00 [17:44:04]Write to MH i2c: E2 08 00 0A 3C 80 17 00 00 00 00 00 00 C6 [17:44:04]Write i2c OK [17:44:04]MH_I2C_Read... [17:44:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:44:04]Read from MH i2c: E2 [17:44:04]MH_I2C_Read... [17:44:04]Read from MH i2c: E2 FD 00 [17:44:04]MH_I2C_Read... [17:44:04]Read from MH i2c: E2 FD 00 0A 3C 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 E8 [17:44:05]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 [17:44:05]wFMCommunicate OK [17:44:05]wFMCommunicate request_size=4 [17:44:05]MH_SAM_APDU [17:44:05]CAPDU: 80 17 00 00 [17:44:05]Write to MH i2c: E2 08 00 0B 3C 80 17 00 00 00 00 00 00 C7 [17:44:05]Write i2c OK [17:44:05]MH_I2C_Read... [17:44:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:44:05]Read from MH i2c: E2 [17:44:05]MH_I2C_Read... [17:44:05]Read from MH i2c: E2 FD 00 [17:44:05]MH_I2C_Read... [17:44:05]Read from MH i2c: E2 FD 00 0B 3C 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 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 7E [17:44:05]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 [17:44:05]wFMCommunicate OK [17:44:05]wFMCommunicate request_size=4 [17:44:05]MH_SAM_APDU [17:44:05]CAPDU: 80 17 00 00 [17:44:05]Write to MH i2c: E2 08 00 0C 3C 80 17 00 00 00 00 00 00 C8 [17:44:05]Write i2c OK [17:44:05]MH_I2C_Read... [17:44:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:44:05]Read from MH i2c: E2 [17:44:05]MH_I2C_Read... [17:44:05]Read from MH i2c: E2 FD 00 [17:44:05]MH_I2C_Read... [17:44:05]Read from MH i2c: E2 FD 00 0C 3C 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 3A [17:44:06]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 [17:44:06]wFMCommunicate OK [17:44:06]wFMCommunicate request_size=4 [17:44:06]MH_SAM_APDU [17:44:06]CAPDU: 80 17 00 00 [17:44:06]Write to MH i2c: E2 08 00 0D 3C 80 17 00 00 00 00 00 00 C9 [17:44:06]Write i2c OK [17:44:06]MH_I2C_Read... [17:44:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [17:44:06]Read from MH i2c: E2 [17:44:06]MH_I2C_Read... [17:44:06]Read from MH i2c: E2 CB 00 [17:44:06]MH_I2C_Read... [17:44:06]Read from MH i2c: E2 CB 00 0D 3C 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 B2 [17:44:06]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 [17:44:06]wFMCommunicate OK [17:44:06]SAM_PROTO_GetShiftData done [17:44:06]requested_item shift.sale.total_cash is exist - process it [17:44:06]requested_item shift.sale_refund.total is exist - process it [17:44:06]requested_item shift.sale_refund.total_cash is exist - process it [17:44:06]requested_item shift.buy.total is exist - process it [17:44:06]requested_item shift.buy.total_cash is exist - process it [17:44:06]produce_requested_data done [17:44:06]produce_requested_data return {"fm.sale.total":62662774.94,"fm.sale_refund.total":20571.00,"fm.buy.total":0.00,"shift.sale.total":40259.86,"shift.sale.total_cash":34136.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:44:06]process_action_free get_value [17:44:06]json_value_free [17:44:06]json_value_free done [17:44:06]process_json_proto returns [17:44:06]Send response to host [17:44:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":62662774.94,"fm.sale_refund.total":20571.00,"fm.buy.total":0.00,"shift.sale.total":40259.86,"shift.sale.total_cash":34136.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:44:06]free response buf [17:44:06]execute_script done [17:44:06]execute_script returns [17:44:06]free content buf [17:44:06]Sock 7.Close socket [17:44:06]Sock 7.Thread stoped [17:44:06]accept exits with 9 [17:44:06]New connection [17:44:06]New thread 3067276644 created [17:44:06]Thread 3067133284 joined [17:44:06]Waiting for new connection... [17:44:06] Sock 9.Parse request [17:44:06]Sock 9.Check first char [17:44:06]Sock 9.First char is OK [17:44:06]request: POST /json_proto HTTP/1.0 [17:44:06]Method: POST [17:44:06]URL: /json_proto [17:44:06]Method is POST - this is cgi request [17:44:06]url: /json_proto [17:44:06]query_string will be loaded in cgi processing [17:44:06]execute_cgi json_proto POST (null) [17:44:06]execute_cgi path=json_proto method=POST [17:44:06]POST find Content-Length [17:44:06]Host: 172.17.52.3:8080 [17:44:06]Content-Length: 331 [17:44:06]Content-Type: application/json [17:44:06] [17:44:06]POST finish read [17:44:06]Found Content-Length = 331 [17:44:06]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:44:06]execute_script... [17:44:06]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:44:06]POST & json_proto [17:44:06]process_json_proto [17:44:06]json parsed OK: [17:44:06]protocol is kg_v1.0 [17:44:06]action value=get_value [17:44:06]process_action get_value [17:44:06]cmd_get_value [17:44:06]process_action get_value done [17:44:06]requested_data is exist [17:44:06]produce_requested_data [17:44:06]requested_item fm.sale.total is exist - process it [17:44:06]SAM_PROTO_GetFMData [17:44:06]wFMCommunicate request_size=4 [17:44:06]MH_SAM_APDU [17:44:06]CAPDU: 80 13 03 00 [17:44:06]Write to MH i2c: E2 08 00 0E 3C 80 13 03 00 00 00 00 00 C9 [17:44:06]Write i2c OK [17:44:06]MH_I2C_Read... [17:44:07]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:44:07]Read from MH i2c: E2 [17:44:07]MH_I2C_Read... [17:44:07]Read from MH i2c: E2 FD 00 [17:44:07]MH_I2C_Read... [17:44:07]Read from MH i2c: E2 FD 00 0E 3C 00 C1 04 85 04 BD 04 6E 04 04 00 70 07 01 00 69 04 A3 00 6F 04 04 00 66 07 01 00 B1 04 05 00 76 CE 7F 75 01 70 04 05 00 84 0B DE 36 01 72 04 04 00 F2 C2 A1 3E 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 A7 FF AC 27 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 BE 5A 4E 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 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 8C 63 1F 70 04 03 00 8C 63 1F 72 04 00 00 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 6C 55 03 EF 03 09 00 F6 03 90 00 F6 [17:44:07]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 70 07 01 00 69 04 A3 00 6F 04 04 00 66 07 01 00 B1 04 05 00 76 CE 7F 75 01 70 04 05 00 84 0B DE 36 01 72 04 04 00 F2 C2 A1 3E 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 A7 FF AC 27 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 BE 5A 4E 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 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 8C 63 1F 70 04 03 00 8C 63 1F 72 04 00 00 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 6C 55 03 EF 03 09 00 F6 03 90 00 [17:44:07]wFMCommunicate OK [17:44:07]wFMCommunicate request_size=4 [17:44:07]MH_SAM_APDU [17:44:07]CAPDU: 80 17 00 00 [17:44:07]Write to MH i2c: E2 08 00 0F 3C 80 17 00 00 00 00 00 00 CB [17:44:07]Write i2c OK [17:44:07]MH_I2C_Read... [17:44:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:44:07]Read from MH i2c: E2 [17:44:07]MH_I2C_Read... [17:44:07]Read from MH i2c: E2 FD 00 [17:44:07]MH_I2C_Read... [17:44:07]Read from MH i2c: E2 FD 00 0F 3C 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1D 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 5E [17:44:07]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1D 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [17:44:08]wFMCommunicate OK [17:44:08]wFMCommunicate request_size=4 [17:44:08]MH_SAM_APDU [17:44:08]CAPDU: 80 17 00 00 [17:44:08]Write to MH i2c: E2 08 00 10 3C 80 17 00 00 00 00 00 00 CC [17:44:08]Write i2c OK [17:44:08]MH_I2C_Read... [17:44:08]OFD Sender: No OFD packet to send [17:44:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:44:08]Read from MH i2c: E2 [17:44:08]MH_I2C_Read... [17:44:08]Read from MH i2c: E2 FD 00 [17:44:08]MH_I2C_Read... [17:44:08]Read from MH i2c: E2 FD 00 10 3C 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 6C [17:44:08]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [17:44:08]wFMCommunicate OK [17:44:08]wFMCommunicate request_size=4 [17:44:08]MH_SAM_APDU [17:44:08]CAPDU: 80 17 00 00 [17:44:08]Write to MH i2c: E2 08 00 11 3C 80 17 00 00 00 00 00 00 CD [17:44:08]Write i2c OK [17:44:08]MH_I2C_Read... [17:44:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:44:08]Read from MH i2c: E2 [17:44:08]MH_I2C_Read... [17:44:08]Read from MH i2c: E2 FD 00 [17:44:08]MH_I2C_Read... [17:44:08]Read from MH i2c: E2 FD 00 11 3C 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 52 [17:44:09]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [17:44:09]wFMCommunicate OK [17:44:09]wFMCommunicate request_size=4 [17:44:09]MH_SAM_APDU [17:44:09]CAPDU: 80 17 00 00 [17:44:09]Write to MH i2c: E2 08 00 12 3C 80 17 00 00 00 00 00 00 CE [17:44:09]Write i2c OK [17:44:09]MH_I2C_Read... [17:44:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [17:44:09]Read from MH i2c: E2 [17:44:09]MH_I2C_Read... [17:44:09]Read from MH i2c: E2 DE 00 [17:44:09]MH_I2C_Read... [17:44:09]Read from MH i2c: E2 DE 00 12 3C 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 AD [17:44:09]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:44:09]wFMCommunicate OK [17:44:09]SAM_PROTO_GetFMData done [17:44:09]requested_item fm.sale_refund.total is exist - process it [17:44:09]requested_item fm.buy.total is exist - process it [17:44:09]requested_item shift.sale.total is exist - process it [17:44:09]SAM_PROTO_GetShiftData [17:44:09]wFMCommunicate request_size=4 [17:44:09]MH_SAM_APDU [17:44:09]CAPDU: 80 13 02 00 [17:44:09]Write to MH i2c: E2 08 00 13 3C 80 13 02 00 00 00 00 00 CD [17:44:09]Write i2c OK [17:44:09]MH_I2C_Read... [17:44:10]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:44:10]Read from MH i2c: E2 [17:44:10]MH_I2C_Read... [17:44:10]Read from MH i2c: E2 FD 00 [17:44:10]MH_I2C_Read... [17:44:10]Read from MH i2c: E2 FD 00 13 3C 00 AE 04 AA 04 AA 04 6E 04 04 00 4D 00 00 00 69 04 9B 00 6F 04 04 00 4D 00 00 00 B1 04 03 00 82 6E 3D 70 04 03 00 60 16 34 72 04 03 00 22 58 09 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D3 86 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3C 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 A8 [17:44:10]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 4D 00 00 00 69 04 9B 00 6F 04 04 00 4D 00 00 00 B1 04 03 00 82 6E 3D 70 04 03 00 60 16 34 72 04 03 00 22 58 09 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D3 86 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3C 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [17:44:10]wFMCommunicate OK [17:44:10]wFMCommunicate request_size=4 [17:44:10]MH_SAM_APDU [17:44:10]CAPDU: 80 17 00 00 [17:44:10]Write to MH i2c: E2 08 00 14 3C 80 17 00 00 00 00 00 00 D0 [17:44:10]Write i2c OK [17:44:10]MH_I2C_Read... [17:44:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:44:10]Read from MH i2c: E2 [17:44:10]MH_I2C_Read... [17:44:10]Read from MH i2c: E2 FD 00 [17:44:10]MH_I2C_Read... [17:44:10]Read from MH i2c: E2 FD 00 14 3C 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 F2 [17:44:10]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [17:44:11]wFMCommunicate OK [17:44:11]wFMCommunicate request_size=4 [17:44:11]MH_SAM_APDU [17:44:11]CAPDU: 80 17 00 00 [17:44:11]Write to MH i2c: E2 08 00 15 3C 80 17 00 00 00 00 00 00 D1 [17:44:11]Write i2c OK [17:44:11]MH_I2C_Read... [17:44:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:44:11]Read from MH i2c: E2 [17:44:11]MH_I2C_Read... [17:44:11]Read from MH i2c: E2 FD 00 [17:44:11]MH_I2C_Read... [17:44:11]Read from MH i2c: E2 FD 00 15 3C 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 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 88 [17:44:11]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 [17:44:11]wFMCommunicate OK [17:44:11]wFMCommunicate request_size=4 [17:44:11]MH_SAM_APDU [17:44:11]CAPDU: 80 17 00 00 [17:44:11]Write to MH i2c: E2 08 00 16 3C 80 17 00 00 00 00 00 00 D2 [17:44:11]Write i2c OK [17:44:11]MH_I2C_Read... [17:44:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:44:11]Read from MH i2c: E2 [17:44:11]MH_I2C_Read... [17:44:11]Read from MH i2c: E2 FD 00 [17:44:11]MH_I2C_Read... [17:44:11]Read from MH i2c: E2 FD 00 16 3C 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 44 [17:44: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 [17:44:12]wFMCommunicate OK [17:44:12]wFMCommunicate request_size=4 [17:44:12]MH_SAM_APDU [17:44:12]CAPDU: 80 17 00 00 [17:44:12]Write to MH i2c: E2 08 00 17 3C 80 17 00 00 00 00 00 00 D3 [17:44:12]Write i2c OK [17:44:12]MH_I2C_Read... [17:44:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [17:44:12]Read from MH i2c: E2 [17:44:12]MH_I2C_Read... [17:44:12]Read from MH i2c: E2 CB 00 [17:44:12]MH_I2C_Read... [17:44:12]Read from MH i2c: E2 CB 00 17 3C 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 BC [17:44: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 [17:44:12]wFMCommunicate OK [17:44:12]SAM_PROTO_GetShiftData done [17:44:12]requested_item shift.sale.total_cash is exist - process it [17:44:12]requested_item shift.sale_refund.total is exist - process it [17:44:12]requested_item shift.sale_refund.total_cash is exist - process it [17:44:12]requested_item shift.buy.total is exist - process it [17:44:12]requested_item shift.buy.total_cash is exist - process it [17:44:12]produce_requested_data done [17:44:12]produce_requested_data return {"fm.sale.total":62662774.94,"fm.sale_refund.total":20571.00,"fm.buy.total":0.00,"shift.sale.total":40259.86,"shift.sale.total_cash":34136.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:44:12]process_action_free get_value [17:44:12]json_value_free [17:44:12]json_value_free done [17:44:12]process_json_proto returns [17:44:12]Send response to host [17:44:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":62662774.94,"fm.sale_refund.total":20571.00,"fm.buy.total":0.00,"shift.sale.total":40259.86,"shift.sale.total_cash":34136.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:44:12]free response buf [17:44:12]execute_script done [17:44:12]execute_script returns [17:44:12]free content buf [17:44:12]Sock 9.Close socket [17:44:12]Sock 9.Thread stoped [17:44:12]accept exits with 7 [17:44:12]New connection [17:44:12]New thread 3067133284 created [17:44:12]Thread 3067276644 joined [17:44:12]Waiting for new connection... [17:44:12] Sock 7.Parse request [17:44:12]Sock 7.Check first char [17:44:12]Sock 7.First char is OK [17:44:12]request: POST /json_proto HTTP/1.0 [17:44:12]Method: POST [17:44:12]URL: /json_proto [17:44:12]Method is POST - this is cgi request [17:44:12]url: /json_proto [17:44:12]query_string will be loaded in cgi processing [17:44:12]execute_cgi json_proto POST (null) [17:44:12]execute_cgi path=json_proto method=POST [17:44:12]POST find Content-Length [17:44:12]Host: 172.17.52.3:8080 [17:44:12]Content-Length: 278 [17:44:12]Content-Type: application/json [17:44:12] [17:44:12]POST finish read [17:44:12]Found Content-Length = 278 [17:44:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041C\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0416. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:44:12]execute_script... [17:44:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041C\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0416. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:44:12]POST & json_proto [17:44:12]process_json_proto [17:44:12]json parsed OK: [17:44:12]protocol is kg_v1.0 [17:44:12]action value=close_shift [17:44:12]process_action close_shift [17:44:12]cmd_close_shift [17:44:12]MH_GetDate [17:44:12]Write to MH i2c: F0 00 00 18 3C 43 [17:44:12]Write i2c OK [17:44:12]MH_I2C_Read... [17:44:12]Read from MH i2c: F0 [17:44:12]MH_I2C_Read... [17:44:12]Read from MH i2c: F0 09 00 [17:44:12]MH_I2C_Read... [17:44:12]Read from MH i2c: F0 09 00 18 3C 00 F6 35 19 67 D7 68 A5 64 3F [17:44:12]GetLastDocTimeStamp 1729705427 [17:44:12]current date 1729705462 [17:44:12]FM_GetShiftState [17:44:12]SAM_PROTO_GetShiftState [17:44:12]wFMCommunicate request_size=4 [17:44:12]MH_SAM_APDU [17:44:12]CAPDU: 80 13 01 00 [17:44:12]Write to MH i2c: E2 08 00 19 3C 80 13 01 00 00 00 00 00 D2 [17:44:12]Write i2c OK [17:44:12]MH_I2C_Read... [17:44:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:12]Read from MH i2c: E2 [17:44:13]MH_I2C_Read... [17:44:13]Read from MH i2c: E2 0E 00 [17:44:13]MH_I2C_Read... [17:44:13]Read from MH i2c: E2 0E 00 19 3C 00 09 00 01 A9 3B 18 67 00 00 00 00 90 00 41 [17:44:13]RAPDU: 09 00 01 A9 3B 18 67 00 00 00 00 90 00 [17:44:13]wFMCommunicate OK [17:44:13]SAM_PROTO_GetShiftState done [17:44:13]FM_GetShiftState done [17:44:13]KKMCreateCloseShiftDocument [17:44:13]Load OK [17:44:13]Malloc new data [17:44:13]MH_GetDate [17:44:13]Write to MH i2c: F0 00 00 1A 3C 45 [17:44:13]Write i2c OK [17:44:13]MH_I2C_Read... [17:44:13]Read from MH i2c: F0 [17:44:13]MH_I2C_Read... [17:44:13]Read from MH i2c: F0 09 00 [17:44:13]MH_I2C_Read... [17:44:13]Read from MH i2c: F0 09 00 1A 3C 00 F6 35 19 67 D7 68 A5 64 41 [17:44:13]Malloc new data [17:44:13]Malloc new data [17:44:13]Malloc new data [17:44:13]Malloc new data [17:44:13]KKMCreateCloseShiftDocument OK [17:44:13]KKMSetCloseShiftData OK [17:44:13]ProcessDocumentItem done err = 0, tmpTLVsize=77 [17:44:13]tlvbuf is 021B4DB0 [17:44:13]KKMLoadAndSignCloseShiftData [17:44:13]SAM_PROTO_ProcessDocument [17:44:13]wFMCommunicate request_size=9 [17:44:13]MH_SAM_APDU [17:44:13]CAPDU: 80 15 01 00 04 05 00 4D 00 [17:44:13]Write to MH i2c: E2 0C 00 1B 3C 80 15 01 00 04 00 05 00 4D 00 00 00 30 [17:44:13]Write i2c OK [17:44:13]MH_I2C_Read... [17:44:13]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [17:44:13]Read from MH i2c: E2 [17:44:13]MH_I2C_Read... [17:44:13]Read from MH i2c: E2 03 00 [17:44:13]MH_I2C_Read... [17:44:13]Read from MH i2c: E2 03 00 1B 3C 00 90 00 CB [17:44:13]RAPDU: 90 00 [17:44:13]wFMCommunicate OK [17:44:13]wFMCommunicate request_size=23 [17:44:13]MH_SAM_APDU [17:44:13]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [17:44:13]Write to MH i2c: E2 1A 00 1C 3C 80 15 02 00 12 00 FA 03 0E 00 30 32 OFD Sender: No OFD packet to send [17:44:13]35 30 38 32 30 31 36 31 30 30 36 37 00 00 CD [17:44:13]Write i2c OK [17:44:13]MH_I2C_Read... [17:44:13]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:44:13]Read from MH i2c: E2 [17:44:13]MH_I2C_Read... [17:44:13]Read from MH i2c: E2 03 00 [17:44:13]MH_I2C_Read... [17:44:13]Read from MH i2c: E2 03 00 1C 3C 00 90 00 CC [17:44:13]RAPDU: 90 00 [17:44:13]wFMCommunicate OK [17:44:13]wFMCommunicate request_size=36 [17:44:13]MH_SAM_APDU [17:44:13]CAPDU: 80 15 02 00 1F FD 03 1B 00 D0 9C D0 B0 D0 BC D0 B1 D0 B5 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 96 2E 20 [17:44:13]Write to MH i2c: E2 27 00 1D 3C 80 15 02 00 1F 00 FD 03 1B 00 D0 9C D0 B0 D0 BC D0 B1 D0 B5 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 96 2E 20 00 00 71 [17:44:13]Write i2c OK [17:44:13]MH_I2C_Read... [17:44:13]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:44:13]Read from MH i2c: E2 [17:44:13]MH_I2C_Read... [17:44:13]Read from MH i2c: E2 03 00 [17:44:13]MH_I2C_Read... [17:44:13]Read from MH i2c: E2 03 00 1D 3C 00 90 00 CD [17:44:13]RAPDU: 90 00 [17:44:13]wFMCommunicate OK [17:44:13]wFMCommunicate request_size=13 [17:44:13]MH_SAM_APDU [17:44:13]CAPDU: 80 15 02 00 08 F4 03 04 00 F6 35 19 67 [17:44:13]Write to MH i2c: E2 10 00 1E 3C 80 15 02 00 08 00 F4 03 04 00 F6 35 19 67 00 00 90 [17:44:13]Write i2c OK [17:44:13]MH_I2C_Read... [17:44:13]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:44:13]Read from MH i2c: E2 [17:44:13]MH_I2C_Read... [17:44:13]Read from MH i2c: E2 03 00 [17:44:13]MH_I2C_Read... [17:44:13]Read from MH i2c: E2 03 00 1E 3C 00 90 00 CE [17:44:13]RAPDU: 90 00 [17:44:13]wFMCommunicate OK [17:44:13]wFMCommunicate request_size=25 [17:44:13]MH_SAM_APDU [17:44:13]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 [17:44:13]Write to MH i2c: E2 1C 00 1F 3C 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 00 00 40 [17:44:13]Write i2c OK [17:44:13]MH_I2C_Read... [17:44:13]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:44:13]Read from MH i2c: E2 [17:44:13]MH_I2C_Read... [17:44:13]Read from MH i2c: E2 03 00 [17:44:13]MH_I2C_Read... [17:44:13]Read from MH i2c: E2 03 00 1F 3C 00 90 00 CF [17:44:13]RAPDU: 90 00 [17:44:13]wFMCommunicate OK [17:44:13]wFMCommunicate request_size=4 [17:44:13]MH_SAM_APDU [17:44:13]CAPDU: 80 15 03 00 [17:44:13]Write to MH i2c: E2 08 00 20 3C 80 15 03 00 00 00 00 00 DD [17:44:13]Write i2c OK [17:44:13]MH_I2C_Read... [17:44:14]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [17:44:14]Read from MH i2c: E2 [17:44:14]MH_I2C_Read... [17:44:14]Read from MH i2c: E2 FD 00 [17:44:14]MH_I2C_Read... [17:44:14]Read from MH i2c: E2 FD 00 20 3C 00 F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 67 0B 01 00 0E 04 04 00 FB 01 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4F 00 00 00 AA 04 AA 04 6E 04 04 00 4D 00 00 00 69 04 9B 00 6F 04 04 00 4D 00 00 00 B1 04 03 00 82 6E 3D 70 04 03 00 60 16 34 72 04 03 00 22 58 09 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D3 86 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3C 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 63 [17:44:14]RAPDU: F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 67 0B 01 00 0E 04 04 00 FB 01 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4F 00 00 00 AA 04 AA 04 6E 04 04 00 4D 00 00 00 69 04 9B 00 6F 04 04 00 4D 00 00 00 B1 04 03 00 82 6E 3D 70 04 03 00 60 16 34 72 04 03 00 22 58 09 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D3 86 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3C 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 [17:44:14]wFMCommunicate OK [17:44:14]SAM_PROTO_ProcessDocument answer len = 1265 [17:44:14]SAM_PROTO_ProcessDocument remain to read = 1017 [17:44:14]wFMCommunicate request_size=4 [17:44:14]MH_SAM_APDU [17:44:14]CAPDU: 80 17 00 00 [17:44:14]Write to MH i2c: E2 08 00 21 3C 80 17 00 00 00 00 00 00 DD [17:44:14]Write i2c OK [17:44:14]MH_I2C_Read... [17:44:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:44:14]Read from MH i2c: E2 [17:44:14]MH_I2C_Read... [17:44:14]Read from MH i2c: E2 FD 00 [17:44:14]MH_I2C_Read... [17:44:14]Read from MH i2c: E2 FD 00 21 3C 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 90 00 26 [17:44:15]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 90 00 [17:44:15]wFMCommunicate OK [17:44:15]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [17:44:15]SAM_PROTO_ProcessDocument remain to read = 767 [17:44:15]wFMCommunicate request_size=4 [17:44:15]MH_SAM_APDU [17:44:15]CAPDU: 80 17 00 00 [17:44:15]Write to MH i2c: E2 08 00 22 3C 80 17 00 00 00 00 00 00 DE [17:44:15]Write i2c OK [17:44:15]MH_I2C_Read... [17:44:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:44:15]Read from MH i2c: E2 [17:44:15]MH_I2C_Read... [17:44:15]Read from MH i2c: E2 FD 00 [17:44:15]MH_I2C_Read... [17:44:15]Read from MH i2c: E2 FD 00 22 3C 00 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 40 [17:44:15]RAPDU: 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 [17:44:15]wFMCommunicate OK [17:44:15]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [17:44:15]SAM_PROTO_ProcessDocument remain to read = 517 [17:44:15]wFMCommunicate request_size=4 [17:44:15]MH_SAM_APDU [17:44:15]CAPDU: 80 17 00 00 [17:44:15]Write to MH i2c: E2 08 00 23 3C 80 17 00 00 00 00 00 00 DF [17:44:15]Write i2c OK [17:44:15]MH_I2C_Read... [17:44:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:44:16]Read from MH i2c: E2 [17:44:16]MH_I2C_Read... [17:44:16]Read from MH i2c: E2 FD 00 [17:44:16]MH_I2C_Read... [17:44:16]Read from MH i2c: E2 FD 00 23 3C 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 90 00 69 [17:44:16]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 90 00 [17:44:16]wFMCommunicate OK [17:44:16]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [17:44:16]SAM_PROTO_ProcessDocument remain to read = 267 [17:44:16]wFMCommunicate request_size=4 [17:44:16]MH_SAM_APDU [17:44:16]CAPDU: 80 17 00 00 [17:44:16]Write to MH i2c: E2 08 00 24 3C 80 17 00 00 00 00 00 00 E0 [17:44:16]Write i2c OK [17:44:16]MH_I2C_Read... [17:44:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:44:16]Read from MH i2c: E2 [17:44:16]MH_I2C_Read... [17:44:16]Read from MH i2c: E2 FD 00 [17:44:16]MH_I2C_Read... [17:44:16]Read from MH i2c: E2 FD 00 24 3C 00 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 90 00 A8 [17:44:17]RAPDU: 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 90 00 [17:44:17]wFMCommunicate OK [17:44:17]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [17:44:17]SAM_PROTO_ProcessDocument remain to read = 17 [17:44:17]wFMCommunicate request_size=4 [17:44:17]MH_SAM_APDU [17:44:17]CAPDU: 80 17 00 00 [17:44:17]Write to MH i2c: E2 08 00 25 3C 80 17 00 00 00 00 00 00 E1 [17:44:17]Write i2c OK [17:44:17]MH_I2C_Read... [17:44:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 17! [17:44:17]Read from MH i2c: E2 [17:44:17]MH_I2C_Read... [17:44:17]Read from MH i2c: E2 14 00 [17:44:17]MH_I2C_Read... [17:44:17]Read from MH i2c: E2 14 00 25 3C 00 01 00 06 F7 03 00 00 35 04 06 00 8E 14 E7 E4 48 09 90 00 E4 [17:44:17]RAPDU: 01 00 06 F7 03 00 00 35 04 06 00 8E 14 E7 E4 48 09 90 00 [17:44:17]wFMCommunicate OK [17:44:17]SAM_PROTO_ProcessDocument received (without SW) 17 bytes [17:44:17]SAM_PROTO_ProcessDocument done [17:44:17]1209 (1) - 1.0 - номер версии ФФД [17:44:17]1041 (16) - 0000000000871809 - номер ФМ [17:44:17]1040 (4) - 68455 - номер ФД [17:44:17]1038 (4) - 507 - номер смены [17:44:17]1118 (4) - 77 - количество кассовых чеков за смену [17:44:17]1111 (4) - 79 - общее количество ФД за смену [17:44:17]1194 (1194) - счетчики итогов смены [17:44:17] 1134 (4) - 77 - количество чеков со всеми признаками расчетов [17:44:17] 1129 (155) - счетчики операций «приход» [17:44:17] 1135 (4) - 77 - количество чеков по признаку расчетов [17:44:17] 1201 (3) - 40259.86 - общая итоговая сумма в чеках [17:44:17] 1136 (3) - 34136.00 - итоговая сумма в чеках наличными [17:44:17] 1138 (3) - 6123.86 - итоговая сумма в чеках безналичными [17:44:17] 1024 (122) - суммы налогов [17:44:17] 1006 (9) - суммы НДС [17:44:17] 1010 (1) - 0% - код ставки НДС [17:44:17] 1011 (0) - 0.00 - сумма НДС по ставке [17:44:17] 1006 (12) - суммы НДС [17:44:17] 1010 (1) - 12% - код ставки НДС [17:44:17] 1011 (3) - 4277.31 - сумма НДС по ставке [17:44:17] 1007 (9) - суммы НСП [17:44:17] 1014 (1) - 0% - код ставки НСП [17:44:17] 1015 (0) - 0.00 - сумма НСП по ставке [17:44:17] 1007 (11) - суммы НСП [17:44:17] 1014 (1) - 1% - код ставки НСП [17:44:17] 1015 (2) - 356.44 - сумма НСП по ставке [17:44:17] 1007 (9) - суммы НСП [17:44:17] 1014 (1) - 2% - код ставки НСП [17:44:17] 1015 (0) - 0.00 - сумма НСП по ставке [17:44:17] 1007 (9) - суммы НСП [17:44:17] 1014 (1) - 3% - код ставки НСП [17:44:17] 1015 (0) - 0.00 - сумма НСП по ставке [17:44:17] 1007 (9) - суммы НСП [17:44:17] 1014 (1) - 5% - код ставки НСП [17:44:17] 1015 (0) - 0.00 - сумма НСП по ставке [17:44:17] 1007 (9) - суммы НСП [17:44:17] 1014 (1) - 0,50% - код ставки НСП [17:44:17] 1015 (0) - 0.00 - сумма НСП по ставке [17:44:17] 1007 (9) - суммы НСП [17:44:17] 1014 (1) - 1,50% - код ставки НСП [17:44:17] 1015 (0) - 0.00 - сумма НСП по ставке [17:44:17] 1130 (141) - счетчики операций «возврат прихода» [17:44:17] 1135 (4) - 0 - количество чеков по признаку расчетов [17:44:17] 1201 (0) - 0.00 - общая итоговая сумма в чеках [17:44:17] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [17:44:17] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [17:44:17] 1024 (117) - суммы налогов [17:44:17] 1006 (9) - суммы НДС [17:44:17] 1010 (1) - 0% - код ставки НДС [17:44:17] 1011 (0) - 0.00 - сумма НДС по ставке [17:44:17] 1006 (9) - суммы НДС [17:44:17] 1010 (1) - 12% - код ставки НДС [17:44:17] 1011 (0) - 0.00 - сумма НДС по ставке [17:44:17] 1007 (9) - суммы НСП [17:44:17] 1014 (1) - 0% - код ставки НСП [17:44:17] 1015 (0) - 0.00 - сумма НСП по ставке [17:44:17] 1007 (9) - суммы НСП [17:44:17] 1014 (1) - 1% - код ставки НСП [17:44:17] 1015 (0) - 0.00 - сумма НСП по ставке [17:44:17] 1007 (9) - суммы НСП [17:44:17] 1014 (1) - 2% - код ставки НСП [17:44:17] 1015 (0) - 0.00 - сумма НСП по ставке [17:44:17] 1007 (9) - суммы НСП [17:44:17] 1014 (1) - 3% - код ставки НСП [17:44:17] 1015 (0) - 0.00 - сумма НСП по ставке [17:44:17] 1007 (9) - суммы НСП [17:44:17] 1014 (1) - 5% - код ставки НСП [17:44:17] 1015 (0) - 0.00 - сумма НСП по ставке [17:44:17] 1007 (9) - суммы НСП [17:44:17] 1014 (1) - 0,50% - код ставки НСП [17:44:17] 1015 (0) - 0.00 - сумма НСП по ставке [17:44:17] 1007 (9) - суммы НСП [17:44:17] 1014 (1) - 1,50% - код ставки НСП [17:44:17] 1015 (0) - 0.00 - сумма НСП по ставке [17:44:17] 1131 (141) - счетчики операций «расход» [17:44:17] 1135 (4) - 0 - количество чеков по признаку расчетов [17:44:17] 1201 (0) - 0.00 - общая итоговая сумма в чеках [17:44:17] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [17:44:17] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [17:44:17] 1024 (117) - суммы налогов [17:44:17] 1006 (9) - суммы НДС [17:44:17] 1010 (1) - 0% - код ставки НДС [17:44:17] 1011 (0) - 0.00 - сумма НДС по ставке [17:44:17] 1006 (9) - суммы НДС [17:44:17] 1010 (1) - 12% - код ставки НДС [17:44:17] 1011 (0) - 0.00 - сумма НДС по ставке [17:44:17] 1007 (9) - суммы НСП [17:44:17] 1014 (1) - 0% - код ставки НСП [17:44:17] 1015 (0) - 0.00 - сумма НСП по ставке [17:44:17] 1007 (9) - суммы НСП [17:44:17] 1014 (1) - 1% - код ставки НСП [17:44:17] 1015 (0) - 0.00 - сумма НСП по ставке [17:44:17] 1007 (9) - суммы НСП [17:44:17] 1014 (1) - 2% - код ставки НСП [17:44:17] 1015 (0) - 0.00 - сумма НСП по ставке [17:44:17] 1007 (9) - суммы НСП [17:44:17] 1014 (1) - 3% - код ставки НСП [17:44:17] 1015 (0) - 0.00 - сумма НСП по ставке [17:44:17] 1007 (9) - суммы НСП [17:44:17] 1014 (1) - 5% - код ставки НСП [17:44:17] 1015 (0) - 0.00 - сумма НСП по ставке [17:44:17] 1007 (9) - суммы НСП [17:44:17] 1014 (1) - 0,50% - код ставки НСП [17:44:17] 1015 (0) - 0.00 - сумма НСП по ставке [17:44:17] 1007 (9) - суммы НСП [17:44:17] 1014 (1) - 1,50% - код ставки НСП [17:44:17] 1015 (0) - 0.00 - сумма НСП по ставке [17:44:17] 1132 (141) - счетчики операций «возврат расхода» [17:44:17] 1135 (4) - 0 - количество чеков по признаку расчетов [17:44:17] 1201 (0) - 0.00 - общая итоговая сумма в чеках [17:44:17] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [17:44:17] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [17:44:17] 1024 (117) - суммы налогов [17:44:17] 1006 (9) - суммы НДС [17:44:17] 1010 (1) - 0% - код ставки НДС [17:44:17] 1011 (0) - 0.00 - сумма НДС по ставке [17:44:17] 1006 (9) - суммы НДС [17:44:17] 1010 (1) - 12% - код ставки НДС [17:44:17] 1011 (0) - 0.00 - сумма НДС по ставке [17:44:17] 1007 (9) - суммы НСП [17:44:17] 1014 (1) - 0% - код ставки НСП [17:44:17] 1015 (0) - 0.00 - сумма НСП по ставке [17:44:17] 1007 (9) - суммы НСП [17:44:17] 1014 (1) - 1% - код ставки НСП [17:44:17] 1015 (0) - 0.00 - сумма НСП по ставке [17:44:17] 1007 (9) - суммы НСП [17:44:17] 1014 (1) - 2% - код ставки НСП [17:44:17] 1015 (0) - 0.00 - сумма НСП по ставке [17:44:17] 1007 (9) - суммы НСП [17:44:17] 1014 (1) - 3% - код ставки НСП [17:44:17] 1015 (0) - 0.00 - сумма НСП по ставке [17:44:17] 1007 (9) - суммы НСП [17:44:17] 1014 (1) - 5% - код ставки НСП [17:44:17] 1015 (0) - 0.00 - сумма НСП по ставке [17:44:17] 1007 (9) - суммы НСП [17:44:17] 1014 (1) - 0,50% - код ставки НСП [17:44:17] 1015 (0) - 0.00 - сумма НСП по ставке [17:44:17] 1007 (9) - суммы НСП [17:44:17] 1014 (1) - 1,50% - код ставки НСП [17:44:17] 1015 (0) - 0.00 - сумма НСП по ставке [17:44:17] 1133 (588) - - счетчики коррекции - не используются [17:44:17]1077 (6) - 156220440987657 - ФПД [17:44:17]SetTLVBufToDocument [17:44:17]Processing tag 1209 (04B9) [17:44:17]Malloc new data [17:44:17]Processing tag 1041 (0411) [17:44:17]Processing tag 1040 (0410) [17:44:17]Malloc new data [17:44:17]Processing tag 1038 (040E) [17:44:17]Malloc new data [17:44:17]Processing tag 1118 (045E) [17:44:17]Malloc new data [17:44:17]Processing tag 1111 (0457) [17:44:17]Malloc new data [17:44:17]Processing tag 1194 (04AA) [17:44:17]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1134 (046E) [17:44:18]Malloc new data [17:44:18]Processing tag 1129 (0469) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1135 (046F) [17:44:18]Malloc new data [17:44:18]Processing tag 1201 (04B1) [17:44:18]Malloc new data [17:44:18]Processing tag 1136 (0470) [17:44:18]Malloc new data [17:44:18]Processing tag 1138 (0472) [17:44:18]Malloc new data [17:44:18]Processing tag 1024 (0400) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1006 (03EE) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1010 (03F2) [17:44:18]Malloc new data [17:44:18]Processing tag 1011 (03F3) [17:44:18]Malloc new data [17:44:18]SetTLVBufToDocument err=0 [17:44:18]Processing tag 1006 (03EE) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1010 (03F2) [17:44:18]Malloc new data [17:44:18]Processing tag 1011 (03F3) [17:44:18]Malloc new data [17:44:18]SetTLVBufToDocument err=0 [17:44:18]Processing tag 1007 (03EF) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1014 (03F6) [17:44:18]Malloc new data [17:44:18]Processing tag 1015 (03F7) [17:44:18]Malloc new data [17:44:18]SetTLVBufToDocument err=0 [17:44:18]Processing tag 1007 (03EF) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1014 (03F6) [17:44:18]Malloc new data [17:44:18]Processing tag 1015 (03F7) [17:44:18]Malloc new data [17:44:18]SetTLVBufToDocument err=0 [17:44:18]Processing tag 1007 (03EF) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1014 (03F6) [17:44:18]Malloc new data [17:44:18]Processing tag 1015 (03F7) [17:44:18]Malloc new data [17:44:18]SetTLVBufToDocument err=0 [17:44:18]Processing tag 1007 (03EF) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1014 (03F6) [17:44:18]Malloc new data [17:44:18]Processing tag 1015 (03F7) [17:44:18]Malloc new data [17:44:18]SetTLVBufToDocument err=0 [17:44:18]Processing tag 1007 (03EF) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1014 (03F6) [17:44:18]Malloc new data [17:44:18]Processing tag 1015 (03F7) [17:44:18]Malloc new data [17:44:18]SetTLVBufToDocument err=0 [17:44:18]Processing tag 1007 (03EF) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1014 (03F6) [17:44:18]Malloc new data [17:44:18]Processing tag 1015 (03F7) [17:44:18]Malloc new data [17:44:18]SetTLVBufToDocument err=0 [17:44:18]Processing tag 1007 (03EF) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1014 (03F6) [17:44:18]Malloc new data [17:44:18]Processing tag 1015 (03F7) [17:44:18]Malloc new data [17:44:18]SetTLVBufToDocument err=0 [17:44:18]SetTLVBufToDocument err=0 [17:44:18]SetTLVBufToDocument err=0 [17:44:18]Processing tag 1130 (046A) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1135 (046F) [17:44:18]Malloc new data [17:44:18]Processing tag 1201 (04B1) [17:44:18]Malloc new data [17:44:18]Processing tag 1136 (0470) [17:44:18]Malloc new data [17:44:18]Processing tag 1138 (0472) [17:44:18]Malloc new data [17:44:18]Processing tag 1024 (0400) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1006 (03EE) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1010 (03F2) [17:44:18]Malloc new data [17:44:18]Processing tag 1011 (03F3) [17:44:18]Malloc new data [17:44:18]SetTLVBufToDocument err=0 [17:44:18]Processing tag 1006 (03EE) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1010 (03F2) [17:44:18]Malloc new data [17:44:18]Processing tag 1011 (03F3) [17:44:18]Malloc new data [17:44:18]SetTLVBufToDocument err=0 [17:44:18]Processing tag 1007 (03EF) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1014 (03F6) [17:44:18]Malloc new data [17:44:18]Processing tag 1015 (03F7) [17:44:18]Malloc new data [17:44:18]SetTLVBufToDocument err=0 [17:44:18]Processing tag 1007 (03EF) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1014 (03F6) [17:44:18]Malloc new data [17:44:18]Processing tag 1015 (03F7) [17:44:18]Malloc new data [17:44:18]SetTLVBufToDocument err=0 [17:44:18]Processing tag 1007 (03EF) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1014 (03F6) [17:44:18]Malloc new data [17:44:18]Processing tag 1015 (03F7) [17:44:18]Malloc new data [17:44:18]SetTLVBufToDocument err=0 [17:44:18]Processing tag 1007 (03EF) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1014 (03F6) [17:44:18]Malloc new data [17:44:18]Processing tag 1015 (03F7) [17:44:18]Malloc new data [17:44:18]SetTLVBufToDocument err=0 [17:44:18]Processing tag 1007 (03EF) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1014 (03F6) [17:44:18]Malloc new data [17:44:18]Processing tag 1015 (03F7) [17:44:18]Malloc new data [17:44:18]SetTLVBufToDocument err=0 [17:44:18]Processing tag 1007 (03EF) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1014 (03F6) [17:44:18]Malloc new data [17:44:18]Processing tag 1015 (03F7) [17:44:18]Malloc new data [17:44:18]SetTLVBufToDocument err=0 [17:44:18]Processing tag 1007 (03EF) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1014 (03F6) [17:44:18]Malloc new data [17:44:18]Processing tag 1015 (03F7) [17:44:18]Malloc new data [17:44:18]SetTLVBufToDocument err=0 [17:44:18]SetTLVBufToDocument err=0 [17:44:18]SetTLVBufToDocument err=0 [17:44:18]Processing tag 1131 (046B) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1135 (046F) [17:44:18]Malloc new data [17:44:18]Processing tag 1201 (04B1) [17:44:18]Malloc new data [17:44:18]Processing tag 1136 (0470) [17:44:18]Malloc new data [17:44:18]Processing tag 1138 (0472) [17:44:18]Malloc new data [17:44:18]Processing tag 1024 (0400) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1006 (03EE) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1010 (03F2) [17:44:18]Malloc new data [17:44:18]Processing tag 1011 (03F3) [17:44:18]Malloc new data [17:44:18]SetTLVBufToDocument err=0 [17:44:18]Processing tag 1006 (03EE) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1010 (03F2) [17:44:18]Malloc new data [17:44:18]Processing tag 1011 (03F3) [17:44:18]Malloc new data [17:44:18]SetTLVBufToDocument err=0 [17:44:18]Processing tag 1007 (03EF) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1014 (03F6) [17:44:18]Malloc new data [17:44:18]Processing tag 1015 (03F7) [17:44:18]Malloc new data [17:44:18]SetTLVBufToDocument err=0 [17:44:18]Processing tag 1007 (03EF) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1014 (03F6) [17:44:18]Malloc new data [17:44:18]Processing tag 1015 (03F7) [17:44:18]Malloc new data [17:44:18]SetTLVBufToDocument err=0 [17:44:18]Processing tag 1007 (03EF) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1014 (03F6) [17:44:18]Malloc new data [17:44:18]Processing tag 1015 (03F7) [17:44:18]Malloc new data [17:44:18]SetTLVBufToDocument err=0 [17:44:18]Processing tag 1007 (03EF) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1014 (03F6) [17:44:18]Malloc new data [17:44:18]Processing tag 1015 (03F7) [17:44:18]Malloc new data [17:44:18]SetTLVBufToDocument err=0 [17:44:18]Processing tag 1007 (03EF) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1014 (03F6) [17:44:18]Malloc new data [17:44:18]Processing tag 1015 (03F7) [17:44:18]Malloc new data [17:44:18]SetTLVBufToDocument err=0 [17:44:18]Processing tag 1007 (03EF) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1014 (03F6) [17:44:18]Malloc new data [17:44:18]Processing tag 1015 (03F7) [17:44:18]Malloc new data [17:44:18]SetTLVBufToDocument err=0 [17:44:18]Processing tag 1007 (03EF) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1014 (03F6) [17:44:18]Malloc new data [17:44:18]Processing tag 1015 (03F7) [17:44:18]Malloc new data [17:44:18]SetTLVBufToDocument err=0 [17:44:18]SetTLVBufToDocument err=0 [17:44:18]SetTLVBufToDocument err=0 [17:44:18]Processing tag 1132 (046C) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1135 (046F) [17:44:18]Malloc new data [17:44:18]Processing tag 1201 (04B1) [17:44:18]Malloc new data [17:44:18]Processing tag 1136 (0470) [17:44:18]Malloc new data [17:44:18]Processing tag 1138 (0472) [17:44:18]Malloc new data [17:44:18]Processing tag 1024 (0400) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1006 (03EE) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1010 (03F2) [17:44:18]Malloc new data [17:44:18]Processing tag 1011 (03F3) [17:44:18]Malloc new data [17:44:18]SetTLVBufToDocument err=0 [17:44:18]Processing tag 1006 (03EE) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1010 (03F2) [17:44:18]Malloc new data [17:44:18]Processing tag 1011 (03F3) [17:44:18]Malloc new data [17:44:18]SetTLVBufToDocument err=0 [17:44:18]Processing tag 1007 (03EF) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1014 (03F6) [17:44:18]Malloc new data [17:44:18]Processing tag 1015 (03F7) [17:44:18]Malloc new data [17:44:18]SetTLVBufToDocument err=0 [17:44:18]Processing tag 1007 (03EF) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1014 (03F6) [17:44:18]Malloc new data [17:44:18]Processing tag 1015 (03F7) [17:44:18]Malloc new data [17:44:18]SetTLVBufToDocument err=0 [17:44:18]Processing tag 1007 (03EF) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1014 (03F6) [17:44:18]Malloc new data [17:44:18]Processing tag 1015 (03F7) [17:44:18]Malloc new data [17:44:18]SetTLVBufToDocument err=0 [17:44:18]Processing tag 1007 (03EF) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1014 (03F6) [17:44:18]Malloc new data [17:44:18]Processing tag 1015 (03F7) [17:44:18]Malloc new data [17:44:18]SetTLVBufToDocument err=0 [17:44:18]Processing tag 1007 (03EF) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1014 (03F6) [17:44:18]Malloc new data [17:44:18]Processing tag 1015 (03F7) [17:44:18]Malloc new data [17:44:18]SetTLVBufToDocument err=0 [17:44:18]Processing tag 1007 (03EF) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1014 (03F6) [17:44:18]Malloc new data [17:44:18]Processing tag 1015 (03F7) [17:44:18]OFD Sender: No OFD packet to send [17:44:18]Malloc new data [17:44:18]SetTLVBufToDocument err=0 [17:44:18]Processing tag 1007 (03EF) [17:44:18]Load OK [17:44:18]SetTLVBufToDocument [17:44:18]Processing tag 1014 (03F6) [17:44:18]Malloc new data [17:44:18]Processing tag 1015 (03F7) [17:44:18]Malloc new data [17:44:18]SetTLVBufToDocument err=0 [17:44:18]SetTLVBufToDocument err=0 [17:44:18]SetTLVBufToDocument err=0 [17:44:18]Processing tag 1133 (046D) [17:44:18]Malloc new data [17:44:18]SetTLVBufToDocument err=0 [17:44:18]Processing tag 1077 (0435) [17:44:18]Malloc new data [17:44:18]SetTLVBufToDocument err=0 [17:44:18]Malloc new data [17:44:18]SAM_PROTO_GetFMData [17:44:18]wFMCommunicate request_size=4 [17:44:18]MH_SAM_APDU [17:44:18]CAPDU: 80 13 03 00 [17:44:18]Write to MH i2c: E2 08 00 26 3C 80 13 03 00 00 00 00 00 E1 [17:44:18]Write i2c OK [17:44:18]MH_I2C_Read... [17:44:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:44:19]Read from MH i2c: E2 [17:44:19]MH_I2C_Read... [17:44:19]Read from MH i2c: E2 FD 00 [17:44:19]MH_I2C_Read... [17:44:19]Read from MH i2c: E2 FD 00 26 3C 00 C1 04 85 04 BD 04 6E 04 04 00 70 07 01 00 69 04 A3 00 6F 04 04 00 66 07 01 00 B1 04 05 00 76 CE 7F 75 01 70 04 05 00 84 0B DE 36 01 72 04 04 00 F2 C2 A1 3E 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 A7 FF AC 27 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 BE 5A 4E 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 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 8C 63 1F 70 04 03 00 8C 63 1F 72 04 00 00 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 6C 55 03 EF 03 09 00 F6 03 90 00 0E [17:44:19]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 70 07 01 00 69 04 A3 00 6F 04 04 00 66 07 01 00 B1 04 05 00 76 CE 7F 75 01 70 04 05 00 84 0B DE 36 01 72 04 04 00 F2 C2 A1 3E 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 A7 FF AC 27 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 BE 5A 4E 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 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 8C 63 1F 70 04 03 00 8C 63 1F 72 04 00 00 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 6C 55 03 EF 03 09 00 F6 03 90 00 [17:44:19]wFMCommunicate OK [17:44:19]wFMCommunicate request_size=4 [17:44:19]MH_SAM_APDU [17:44:19]CAPDU: 80 17 00 00 [17:44:19]Write to MH i2c: E2 08 00 27 3C 80 17 00 00 00 00 00 00 E3 [17:44:19]Write i2c OK [17:44:19]MH_I2C_Read... [17:44:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:44:19]Read from MH i2c: E2 [17:44:19]MH_I2C_Read... [17:44:19]Read from MH i2c: E2 FD 00 [17:44:19]MH_I2C_Read... [17:44:19]Read from MH i2c: E2 FD 00 27 3C 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1D 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 76 [17:44:20]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1D 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [17:44:20]wFMCommunicate OK [17:44:20]wFMCommunicate request_size=4 [17:44:20]MH_SAM_APDU [17:44:20]CAPDU: 80 17 00 00 [17:44:20]Write to MH i2c: E2 08 00 28 3C 80 17 00 00 00 00 00 00 E4 [17:44:20]Write i2c OK [17:44:20]MH_I2C_Read... [17:44:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:44:20]Read from MH i2c: E2 [17:44:20]MH_I2C_Read... [17:44:20]Read from MH i2c: E2 FD 00 [17:44:20]MH_I2C_Read... [17:44:20]Read from MH i2c: E2 FD 00 28 3C 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 84 [17:44:20]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [17:44:21]wFMCommunicate OK [17:44:21]wFMCommunicate request_size=4 [17:44:21]MH_SAM_APDU [17:44:21]CAPDU: 80 17 00 00 [17:44:21]Write to MH i2c: E2 08 00 29 3C 80 17 00 00 00 00 00 00 E5 [17:44:21]Write i2c OK [17:44:21]MH_I2C_Read... [17:44:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:44:21]Read from MH i2c: E2 [17:44:21]MH_I2C_Read... [17:44:21]Read from MH i2c: E2 FD 00 [17:44:21]MH_I2C_Read... [17:44:21]Read from MH i2c: E2 FD 00 29 3C 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 6A [17:44:21]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [17:44:21]wFMCommunicate OK [17:44:21]wFMCommunicate request_size=4 [17:44:21]MH_SAM_APDU [17:44:21]CAPDU: 80 17 00 00 [17:44:21]Write to MH i2c: E2 08 00 2A 3C 80 17 00 00 00 00 00 00 E6 [17:44:21]Write i2c OK [17:44:21]MH_I2C_Read... [17:44:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [17:44:22]Read from MH i2c: E2 [17:44:22]MH_I2C_Read... [17:44:22]Read from MH i2c: E2 DE 00 [17:44:22]MH_I2C_Read... [17:44:22]Read from MH i2c: E2 DE 00 2A 3C 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C5 [17:44:22]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:44:22]wFMCommunicate OK [17:44:22]SAM_PROTO_GetFMData done [17:44:22]Malloc new data [17:44:22]Malloc new data [17:44:22]Malloc new data [17:44:22]Malloc new data [17:44:22]KKMLoadAndSignCloseShiftData err=0 [17:44:22]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Мамбеталиев Ж. 23.10.2024 17:44 Смена: 507 РНМ: 0000000000091756 ЗНМ: 0300000094 СНО: Общий режим Чеков за смену: 77 ФД за смену: 79 Всего чеков: 77 ИТОГИ ПРИХОД Чеков: 77 Общий итог: 40259.86 Итого наличными: 34136.00 Итого безнал.: 6123.86 НДС 0% : 0.00 НДС 12% : 4277.31 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 356.44 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 34136.00 НС Приход: 62662774.94 НС Возвр.Прихода: 20571.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 68455 ФМ: 0000000000871809 ФПД: 156220440987657 [17:44:22]StoreToDocumentArchive [17:44:22]shift 507 fd 68455 [17:44:22]save to /storage/0507/doc_00068455 [17:44:22]save last doc name /storage/0507/doc_00068455 to /storage/kkm_last_doc_name [17:44:22]save OK [17:44:22]Clear old archive folders... [17:44:22]Remove dir /storage/0266 [17:44:22]opendir ok [17:44:22]file . [17:44:22]file .. [17:44:22]file doc_1729705435 [17:44:22]remove file /storage/0266/doc_1729705435 [17:44:22]remove dir /storage/0266 [17:44:22]NVStorageSaveData kkm_registers [17:44:22]File name is /storage/kkm_registers [17:44:22]Write 24 bytes [17:44:22]NVStorageSaveData done [17:44:22]NVStorageSaveData kkm_registers [17:44:22]File name is /storage/kkm_registers [17:44:22]Write 24 bytes [17:44:22]NVStorageSaveData done [17:44:22]ProcessDocumentItem done err = 0, tmpTLVsize=1385 [17:44:22]tlvbuf is 021126E0 [17:44:22]SAM_PROTO_ClearQueue [17:44:22]wFMCommunicate request_size=4 [17:44:22]MH_SAM_APDU [17:44:22]CAPDU: 80 09 00 00 [17:44:22]Write to MH i2c: E2 08 00 2B 3C 80 09 00 00 00 00 00 00 D9 [17:44:22]Write i2c OK [17:44:22]MH_I2C_Read... [17:44:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:44:22]Read from MH i2c: E2 [17:44:22]MH_I2C_Read... [17:44:22]Read from MH i2c: E2 03 00 [17:44:22]MH_I2C_Read... [17:44:22]Read from MH i2c: E2 03 00 2B 3C 00 90 00 DB [17:44:22]RAPDU: 90 00 [17:44:22]wFMCommunicate OK [17:44:22]SAM_PROTO_ClearQueue done [17:44:22]KKMCreateOFDPacket [17:44:22]OFDProtocolAddRootSTLVToBuf [17:44:22]FM_MakeSignedData [17:44:22]FM_MakeSignedData [17:44:22]SAM_PROTO_SignData [17:44:22]wFMCommunicate request_size=4 [17:44:22]MH_SAM_APDU [17:44:22]CAPDU: 80 0D 01 02 [17:44:22]Write to MH i2c: E2 08 00 2C 3C 80 0D 01 02 00 00 00 00 E1 [17:44:22]Write i2c OK [17:44:22]MH_I2C_Read... [17:44:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:44:22]Read from MH i2c: E2 [17:44:22]MH_I2C_Read... [17:44:22]Read from MH i2c: E2 03 00 [17:44:22]MH_I2C_Read... [17:44:22]Read from MH i2c: E2 03 00 2C 3C 00 90 00 DC [17:44:22]RAPDU: 90 00 [17:44:22]wFMCommunicate OK [17:44:22]wFMCommunicate request_size=255 [17:44:22]MH_SAM_APDU [17:44:22]CAPDU: 80 0D 02 02 FA 05 00 69 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 1B 00 D0 9C D0 B0 D0 BC D0 B1 D0 B5 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 96 2E 20 F4 03 04 00 F6 35 19 67 0E 04 04 00 FB 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 5E 04 04 00 4D 00 00 00 57 04 04 00 4F 00 00 00 AA 04 D5 04 6E 04 04 00 4D 00 00 00 69 04 A2 00 6F 04 04 00 4D 00 00 00 B1 04 03 00 82 6E 3D 70 04 03 00 60 16 34 72 04 03 00 22 58 09 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D3 86 06 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 [17:44:22]Write to MH i2c: E2 02 01 2D 3C 80 0D 02 02 FA 00 05 00 69 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 1B 00 D0 9C D0 B0 D0 BC D0 B1 D0 B5 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 96 2E 20 F4 03 04 00 F6 35 19 67 0E 04 04 00 FB 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 5E 04 04 00 4D 00 00 00 57 04 04 00 4F 00 00 00 AA 04 D5 04 6E 04 04 00 4D 00 00 00 69 04 A2 00 6F 04 04 00 4D 00 00 00 B1 04 03 00 82 6E 3D 70 04 03 00 60 16 34 72 04 03 00 22 58 09 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D3 86 06 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 00 00 28 [17:44:23]Write i2c OK [17:44:23]MH_I2C_Read... [17:44:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:23]Read from MH i2c: E2 [17:44:23]MH_I2C_Read... [17:44:23]Read from MH i2c: E2 03 00 [17:44:23]MH_I2C_Read... [17:44:23]Read from MH i2c: E2 03 00 2D 3C 00 90 00 DD [17:44:23]RAPDU: 90 00 [17:44:23]wFMCommunicate OK [17:44:23]wFMCommunicate request_size=255 [17:44:23]MH_SAM_APDU [17:44:23]CAPDU: 80 0D 02 02 FA 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3C 8B 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 [17:44:23]Write to MH i2c: E2 02 01 2E 3C 80 0D 02 02 FA 00 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3C 8B 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 00 00 18 [17:44:24]OFD Sender: No OFD packet to send [17:44:24]Write i2c OK [17:44:24]MH_I2C_Read... [17:44:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:24]Read from MH i2c: E2 [17:44:24]MH_I2C_Read... [17:44:24]Read from MH i2c: E2 03 00 [17:44:24]MH_I2C_Read... [17:44:24]Read from MH i2c: E2 03 00 2E 3C 00 90 00 DE [17:44:24]RAPDU: 90 00 [17:44:24]wFMCommunicate OK [17:44:24]wFMCommunicate request_size=255 [17:44:24]MH_SAM_APDU [17:44:24]CAPDU: 80 0D 02 02 FA 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 [17:44:24]Write to MH i2c: E2 02 01 2F 3C 80 0D 02 02 FA 00 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 00 00 AB [17:44:24]Write i2c OK [17:44:24]MH_I2C_Read... [17:44:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:25]Read from MH i2c: E2 [17:44:25]MH_I2C_Read... [17:44:25]Read from MH i2c: E2 03 00 [17:44:25]MH_I2C_Read... [17:44:25]Read from MH i2c: E2 03 00 2F 3C 00 90 00 DF [17:44:25]RAPDU: 90 00 [17:44:25]wFMCommunicate OK [17:44:25]wFMCommunicate request_size=255 [17:44:25]MH_SAM_APDU [17:44:25]CAPDU: 80 0D 02 02 FA 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 [17:44:25]Write to MH i2c: E2 02 01 30 3C 80 0D 02 02 FA 00 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 00 00 B5 [17:44:25]Write i2c OK [17:44:25]MH_I2C_Read... [17:44:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:25]Read from MH i2c: E2 [17:44:25]MH_I2C_Read... [17:44:25]Read from MH i2c: E2 03 00 [17:44:25]MH_I2C_Read... [17:44:25]Read from MH i2c: E2 03 00 30 3C 00 90 00 E0 [17:44:25]RAPDU: 90 00 [17:44:25]wFMCommunicate OK [17:44:25]wFMCommunicate request_size=255 [17:44:25]MH_SAM_APDU [17:44:25]CAPDU: 80 0D 02 02 FA F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 [17:44:26]Write to MH i2c: E2 02 01 31 3C 80 0D 02 02 FA 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 00 76 [17:44:26]Write i2c OK [17:44:26]MH_I2C_Read... [17:44:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:26]Read from MH i2c: E2 [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: E2 03 00 [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: E2 03 00 31 3C 00 90 00 E1 [17:44:26]RAPDU: 90 00 [17:44:26]wFMCommunicate OK [17:44:26]wFMCommunicate request_size=144 [17:44:26]MH_SAM_APDU [17:44:26]CAPDU: 80 0D 02 02 8B 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 67 0B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 35 04 06 00 8E 14 E7 E4 48 09 [17:44:26]Write to MH i2c: E2 93 00 32 3C 80 0D 02 02 8B 00 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 67 0B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 35 04 06 00 8E 14 E7 E4 48 09 00 00 57 [17:44:26]Write i2c OK [17:44:26]MH_I2C_Read... [17:44:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:27]Read from MH i2c: E2 [17:44:27]MH_I2C_Read... [17:44:27]Read from MH i2c: E2 03 00 [17:44:27]MH_I2C_Read... [17:44:27]Read from MH i2c: E2 03 00 32 3C 00 90 00 E2 [17:44:27]RAPDU: 90 00 [17:44:27]wFMCommunicate OK [17:44:27]wFMCommunicate request_size=4 [17:44:27]MH_SAM_APDU [17:44:27]CAPDU: 80 0D 03 02 [17:44:27]Write to MH i2c: E2 08 00 33 3C 80 0D 03 02 00 00 00 00 EA [17:44:27]Write i2c OK [17:44:27]MH_I2C_Read... [17:44:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:44:27]Read from MH i2c: E2 [17:44:27]MH_I2C_Read... [17:44:27]Read from MH i2c: E2 0B 00 [17:44:27]MH_I2C_Read... [17:44:27]Read from MH i2c: E2 0B 00 33 3C 00 2E 53 C9 AC BD 1A 68 62 90 00 82 [17:44:27]RAPDU: 2E 53 C9 AC BD 1A 68 62 90 00 [17:44:27]wFMCommunicate OK [17:44:27]SAM_PROTO_SignData done [17:44:27]FM_MakeSignedData done [17:44:27]CreateOFDProtocolMessage [17:44:27]wFMCommunicate request_size=4 [17:44:27]MH_SAM_APDU [17:44:27]CAPDU: 80 11 00 00 [17:44:27]Write to MH i2c: E2 08 00 34 3C 80 11 00 00 00 00 00 00 EA [17:44:27]Write i2c OK [17:44:27]MH_I2C_Read... [17:44:27]Read from MH i2c: E2 [17:44:27]MH_I2C_Read... [17:44:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:27]Read from MH i2c: E2 17 00 [17:44:27]MH_I2C_Read... [17:44:27]Read from MH i2c: E2 17 00 34 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 3E [17:44:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 90 00 [17:44:27]wFMCommunicate OK [17:44:27]CreateOFDProtocolMessage done [17:44:27]OFDSenderStorePacket 68455 [17:44:27]StoreOFDPacket docnum=68455 [17:44:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 7D 05 00 00 03 20 75 05 73 08 5A 05 01 00 05 00 69 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 1B 00 D0 9C D0 B0 D0 BC D0 B1 D0 B5 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 96 2E 20 F4 03 04 00 F6 35 19 67 0E 04 04 00 FB 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 5E 04 04 00 4D 00 00 00 57 04 04 00 4F 00 00 00 AA 04 D5 04 6E 04 04 00 4D 00 00 00 69 04 A2 00 6F 04 04 00 4D 00 00 00 B1 04 03 00 82 6E 3D 70 04 03 00 60 16 34 72 04 03 00 22 58 09 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D3 86 06 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3C 8B 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 67 0B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 35 04 06 00 8E 14 E7 E4 48 09 2E 53 C9 AC BD 1A 68 62 [17:44:27]CheckFolder [17:44:27]dirname=/storage/ofd_packets [17:44:27]CheckFolder done [17:44:27]ProducePacketName [17:44:27]name=ofd_packets/00068455 [17:44:27]NVStorageSaveData ofd_packets/00068455 [17:44:27]File name is /storage/ofd_packets/00068455 [17:44:27]Write 1435 bytes [17:44:27]NVStorageSaveData done [17:44:27]OFDSenderStorePacket done [17:44:27]KKMCreateOFDPacket done [17:44:27]NVStorageSaveData kkm_last_timestamp [17:44:27]File name is /storage/kkm_last_timestamp [17:44:27]Write 4 bytes [17:44:27]NVStorageSaveData done [17:44:27]ExternCall_PrintAddStr [17:44:27]wPrintStart [17:44:27]Write to MH i2c: 01 00 00 35 3C 71 [17:44:27]Write i2c OK [17:44:27]MH_I2C_Read... [17:44:27]Read from MH i2c: 01 [17:44:27]MH_I2C_Read... [17:44:27]Read from MH i2c: 01 07 00 [17:44:27]MH_I2C_Read... [17:44:27]Read from MH i2c: 01 07 00 35 3C 00 04 00 00 00 FF 0F 8A [17:44:27]RasterBufferAndPrint [17:44:27]line Отчет о закрытии смены [17:44:27]line ФФД: 1.0 [17:44:27]line ИНН: 02508201610067 [17:44:27]line Кассир: Мамбеталиев Ж. [17:44:27]line 23.10.2024 17:44 [17:44:27]line Смена: 507 [17:44:27]line РНМ: 0000000000091756 [17:44:27]line ЗНМ: 0300000094 [17:44:27]line СНО: Общий режим [17:44:27]line Чеков за смену: 77 [17:44:27]line ФД за смену: 79 [17:44:27]line Всего чеков: 77 [17:44:27]line ИТОГИ ПРИХОД [17:44:27]line Чеков: 77 [17:44:27]line Общий итог: 40259.86 [17:44:27]line Итого наличными: 34136.00 [17:44:27]line Итого безнал.: 6123.86 [17:44:27]line НДС 0% : 0.00 [17:44:27]line НДС 12% : 4277.31 [17:44:27]line НСП 0% : 0.00 [17:44:27]line НСП 1,50% : 0.00 [17:44:27]line НСП 0,50% : 0.00 [17:44:27]line НСП 5% : 0.00 [17:44:27]line НСП 3% : 0.00 [17:44:27]line НСП 2% : 0.00 [17:44:27]line НСП 1% : 356.44 [17:44:27]line ИТОГИ ВОЗВРАТ ПРИХОДА [17:44:27]line Чеков: 0 [17:44:27]line Общий итог: 0.00 [17:44:27]line Итого наличными: 0.00 [17:44:27]line Итого безнал.: 0.00 [17:44:27]line НДС 0% : 0.00 [17:44:27]line НДС 12% : 0.00 [17:44:27]line НСП 0% : 0.00 [17:44:27]line НСП 1,50% : 0.00 [17:44:27]line НСП 0,50% : 0.00 [17:44:27]line НСП 5% : 0.00 [17:44:27]line НСП 3% : 0.00 [17:44:27]line НСП 2% : 0.00 [17:44:27]line НСП 1% : 0.00 [17:44:27]line ИТОГИ РАСХОД [17:44:27]line Чеков: 0 [17:44:27]line Общий итог: 0.00 [17:44:27]line Итого наличными: 0.00 [17:44:27]line Итого безнал.: 0.00 [17:44:27]line НДС 0% : 0.00 [17:44:27]line НДС 12% : 0.00 [17:44:27]line НСП 0% : 0.00 [17:44:27]line НСП 1,50% : 0.00 [17:44:27]line НСП 0,50% : 0.00 [17:44:27]line НСП 5% : 0.00 [17:44:27]line НСП 3% : 0.00 [17:44:27]line НСП 2% : 0.00 [17:44:27]line НСП 1% : 0.00 [17:44:27]line ИТОГИ ВОЗВРАТ РАСХОДА [17:44:27]line Чеков: 0 [17:44:27]line Общий итог: 0.00 [17:44:27]line Итого наличными: 0.00 [17:44:27]line Итого безнал.: 0.00 [17:44:27]line НДС 0% : 0.00 [17:44:27]line НДС 12% : 0.00 [17:44:27]OFD Sender: Processing packet 68455 [packets to send 8, broken 7] [17:44:27]ProducePacketName [17:44:27]name=ofd_packets/00068455 [17:44:27]OFD Sender: To server: pG, [17:44:27]CommunicateWithHost lk.salyk.kg:30040 [17:44:27]ConnectInit lk.salyk.kg [17:44:27]line НСП 0% : 0.00 [17:44:27]line НСП 1,50% : 0.00 [17:44:27]line НСП 0,50% : 0.00 [17:44:27]line НСП 5% : 0.00 [17:44:27]line НСП 3% : 0.00 [17:44:27]line НСП 2% : 0.00 [17:44:27]line НСП 1% : 0.00 [17:44:27]line Сумма внесений: 0.00 [17:44:27]line Сумма выплат: 0.00 [17:44:27]line Нал. в кассе: 34136.00 [17:44:27]line НС Приход: 62662774.94 [17:44:27]line НС Возвр.Прихода: 20571.00 [17:44:27]line НС Расход: 0.00 [17:44:27]line НС Возвр.Расхода: 0.00 [17:44:27]line ФД: 68455 [17:44:27]line ФМ: 0000000000871809 [17:44:27]line ФПД: 156220440987657 [17:44:27]written 0, free lines is 4095 [17:44:28]Connected sock=10 [17:44:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 7D 05 00 00 03 20 75 05 73 08 5A 05 01 00 05 00 69 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 1B 00 D0 9C D0 B0 D0 BC D0 B1 D0 B5 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 96 2E 20 F4 03 04 00 F6 35 19 67 0E 04 04 00 FB 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 5E 04 04 00 4D 00 00 00 57 04 04 00 4F 00 00 00 AA 04 D5 04 6E 04 04 00 4D 00 00 00 69 04 A2 00 6F 04 04 00 4D 00 00 00 B1 04 03 00 82 6E 3D 70 04 03 00 60 16 34 72 04 03 00 22 58 09 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D3 86 06 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3C 8B 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 Write to MH i2c: EE 01 03 00 0A 00 00 85 F2 03 01 00 00 F3 03 01 00 00 EE 3C 03 C1 0A [17:44:28]00 Write i2c OK [17:44:28]F2 MH_I2C_Read... [17:44:28]03 01 00 01 F3 03 01 00 00 EF Read from MH i2c: 03 01 0A [17:44:28]00 MH_I2C_Read... [17:44:28]F6 Read from MH i2c: 03 01 01 07 00 00 00 [17:44:28]F7 MH_I2C_Read... [17:44:28]03 01 00 00 EF 03 0A 00 F6 03 01 Read from MH i2c: 00 01 06 07 F7 00 03 85 01 00 00 EF 03 0A 00 F6 03 01 00 3C 05 00 F7 04 03 00 01 00 00 00 00 7A EF 0B 03 51 0A [17:44:29]00 RasterBufferAndPrint [17:44:29]F6 line [17:44:29]03 line [17:44:29]01 line [17:44:29]00 line [17:44:29]04 F7 03 01 00 00 EF 03 0A 00 F6 line [17:44:29]03 01 00 03 F7 03 01 00 00 EF written 0, free lines is 3121 [17:44:29]03 0A 00 F6 03 01 00 02 F7 03 01 MH_Cut [17:44:29]00 Write to MH i2c: 00 D1 EF 01 03 00 0A 8C 00 3C F6 03 01 00 01 F7 03 01 00 00 6D 01 04 9A 4C [17:44:29]02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF Write i2c OK [17:44:29]03 MH_I2C_Read... [17:44:29]09 Read from MH i2c: 00 D1 F6 [17:44:29]03 MH_I2C_Read... [17:44:29]01 00 01 F7 03 00 00 EF Read from MH i2c: 03 D1 09 01 00 00 F6 [17:44:29]03 01 00 02 F7 03 00 00 EF 03 09 MH_I2C_Read... [17:44:29]00 Read from MH i2c: F6 D1 03 01 01 00 00 8C 03 3C F7 00 03 99 00 [17:44:29]00 EF 03 09 00 F6 03 01 00 04 Write to MH i2c: F7 01 03 00 00 00 00 8D EF 03 09 00 F6 03 01 00 05 F7 03 3C 00 C9 00 [17:44:29]EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 Write i2c OK [17:44:29]00 MH_I2C_Read... [17:44:29]03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF *** Cut start [17:44:30]03 *** Partial cut [17:44:30]09 *** CUTSNS_PIN = 1 [17:44:30]00 F6 03 01 00 *** CUTSNS_PIN = 0 [17:44:30]04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 *** Brake cut motor [17:44:30]09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 67 0B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 35 04 06 00 8E 14 E7 E4 48 09 2E 53 C9 AC BD 1A 68 62 [17:44:30]Received data: 87 95 F6 *** Stop cut motor [17:44:30]70 *** Cut end [17:44:30]47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 4F 00 00 00 18 C5 47 00 66 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 10 04 04 00 67 0B 01 00 F4 03 04 00 FA DB 18 67 B6 04 01 00 00 D0 A1 B8 CC 80 53 FF F5 [17:44:30]CommunicateWithHost err = 0 [17:44:30]CheckOFDResponse [17:44:30]1017 (14) - 77093643461234 [17:44:30]1041 (16) - 0000000000871809 [17:44:30]1040 (4) - 68455 [17:44:30]1012 (4) - 23.10.2024 11:20 [17:44:30]1206 (1) - 0 [17:44:30]OFD Sender: Remove packet 68455 [17:44:30]ProducePacketName [17:44:30]name=ofd_packets/00068455 [17:44:30]NVStorageDeleteData [17:44:30]Read from MH i2c: 01 [17:44:30]MH_I2C_Read... [17:44:30]Read from MH i2c: 01 07 00 [17:44:30]MH_I2C_Read... [17:44:30]Read from MH i2c: 01 07 00 8D 3C 00 04 00 00 00 FF 0F E2 [17:44:30]process_action close_shift done [17:44:30]requested_data is exist [17:44:30]produce_requested_data [17:44:30]requested_item fd.num is exist - process it [17:44:30]SAM_PROTO_GetFieldsCounters [17:44:30]wFMCommunicate request_size=4 [17:44:30]MH_SAM_APDU [17:44:30]CAPDU: 80 13 00 00 [17:44:30]Write to MH i2c: E2 08 00 8E 3C 80 13 00 00 00 00 00 00 46 [17:44:30]Write i2c OK [17:44:30]MH_I2C_Read... [17:44:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:44:30]Read from MH i2c: E2 [17:44:30]MH_I2C_Read... [17:44:30]Read from MH i2c: E2 62 00 [17:44:30]MH_I2C_Read... [17:44:30]Read from MH i2c: E2 62 00 8E 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 67 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [17:44:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 36 10 04 04 00 67 0B 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:44:31]wFMCommunicate OK [17:44:31]SAM_PROTO_GetFieldsCounters done [17:44:31]requested_item shift.num is exist - process it [17:44:31]requested_item shift.opened is exist - process it [17:44:31]req_shift_opened [17:44:31]FM_GetShiftState [17:44:31]SAM_PROTO_GetShiftState [17:44:31]wFMCommunicate request_size=4 [17:44:31]MH_SAM_APDU [17:44:31]CAPDU: 80 13 01 00 [17:44:31]Write to MH i2c: E2 08 00 8F 3C 80 13 01 00 00 00 00 00 48 [17:44:31]Write i2c OK [17:44:31]MH_I2C_Read... [17:44:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:31]Read from MH i2c: E2 [17:44:31]MH_I2C_Read... [17:44:31]OFD Sender: No OFD packet to send [17:44:31]Read from MH i2c: E2 0E 00 [17:44:31]MH_I2C_Read... [17:44:31]Read from MH i2c: E2 0E 00 8F 3C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 53 [17:44:31]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [17:44:31]wFMCommunicate OK [17:44:31]SAM_PROTO_GetShiftState done [17:44:31]FM_GetShiftState done [17:44:31]req_shift_opened done [17:44:31]requested_item shift.open_date is exist - process it [17:44:31]req_shift_open_date [17:44:31]FM_GetShiftState [17:44:31]SAM_PROTO_GetShiftState [17:44:31]wFMCommunicate request_size=4 [17:44:31]MH_SAM_APDU [17:44:31]CAPDU: 80 13 01 00 [17:44:31]Write to MH i2c: E2 08 00 90 3C 80 13 01 00 00 00 00 00 49 [17:44:31]Write i2c OK [17:44:31]MH_I2C_Read... [17:44:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:31]Read from MH i2c: E2 [17:44:31]MH_I2C_Read... [17:44:31]Read from MH i2c: E2 0E 00 [17:44:31]MH_I2C_Read... [17:44:31]Read from MH i2c: E2 0E 00 90 3C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 54 [17:44:31]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [17:44:31]wFMCommunicate OK [17:44:31]SAM_PROTO_GetShiftState done [17:44:31]FM_GetShiftState done [17:44:31]req_shift_open_date done [17:44:31]produce_requested_data done [17:44:31]produce_requested_data return {"fd.num":68455,"shift.num":507,"shift.opened":0,"shift.open_date":0} [17:44:31]process_action_free close_shift [17:44:31]json_value_free [17:44:31]json_value_free done [17:44:31]process_json_proto returns [17:44:31]Send response to host [17:44:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":68455,"shift.num":507,"shift.opened":0,"shift.open_date":0}}} [17:44:31]free response buf [17:44:31]execute_script done [17:44:31]execute_script returns [17:44:31]free content buf [17:44:31]Sock 7.Close socket [17:44:31]Sock 7.Thread stoped [17:44:36]OFD Sender: No OFD packet to send [17:44:41]OFD Sender: No OFD packet to send [17:44:46]OFD Sender: No OFD packet to send [17:44:51]OFD Sender: No OFD packet to send [17:44:56]OFD Sender: No OFD packet to send [17:45:01]OFD Sender: No OFD packet to send [17:45:06]OFD Sender: No OFD packet to send [17:45:11]OFD Sender: No OFD packet to send [17:45:16]OFD Sender: No OFD packet to send [17:45:21]OFD Sender: No OFD packet to send [17:45:26]OFD Sender: No OFD packet to send [17:45:31]OFD Sender: No OFD packet to send [17:45:36]OFD Sender: No OFD packet to send [17:45:41]OFD Sender: No OFD packet to send [17:45:46]OFD Sender: No OFD packet to send [17:45:51]OFD Sender: No OFD packet to send [17:45:56]OFD Sender: No OFD packet to send [17:46:01]OFD Sender: No OFD packet to send [17:46:06]OFD Sender: No OFD packet to send [17:46:11]OFD Sender: No OFD packet to send [17:46:16]OFD Sender: No OFD packet to send [17:46:21]OFD Sender: No OFD packet to send [17:46:26]OFD Sender: No OFD packet to send [17:46:31]OFD Sender: No OFD packet to send [17:46:36]OFD Sender: No OFD packet to send [17:46:41]OFD Sender: No OFD packet to send [17:46:46]OFD Sender: No OFD packet to send [17:46:51]OFD Sender: No OFD packet to send [17:46:56]OFD Sender: No OFD packet to send [17:47:01]OFD Sender: No OFD packet to send [17:47:06]OFD Sender: No OFD packet to send [17:47:11]OFD Sender: No OFD packet to send [17:47:16]OFD Sender: No OFD packet to send [17:47:21]OFD Sender: No OFD packet to send [17:47:26]OFD Sender: No OFD packet to send [17:47:31]OFD Sender: No OFD packet to send [17:47:36]OFD Sender: No OFD packet to send [17:47:41]OFD Sender: No OFD packet to send [17:47:46]OFD Sender: No OFD packet to send [17:47:51]OFD Sender: No OFD packet to send [17:47:56]OFD Sender: No OFD packet to send [17:48:01]OFD Sender: No OFD packet to send [17:48:06]OFD Sender: No OFD packet to send [17:48:11]OFD Sender: No OFD packet to send [17:48:16]OFD Sender: No OFD packet to send [17:48:21]OFD Sender: No OFD packet to send [17:48:26]OFD Sender: No OFD packet to send [17:48:31]OFD Sender: No OFD packet to send [17:48:36]OFD Sender: No OFD packet to send [17:48:41]OFD Sender: No OFD packet to send [17:48:46]OFD Sender: No OFD packet to send [17:48:51]OFD Sender: No OFD packet to send [17:48:56]OFD Sender: No OFD packet to send [17:49:01]OFD Sender: No OFD packet to send [17:49:06]OFD Sender: No OFD packet to send [17:49:11]OFD Sender: No OFD packet to send [17:49:16]OFD Sender: No OFD packet to send [17:49:21]OFD Sender: No OFD packet to send [17:49:26]OFD Sender: No OFD packet to send [17:49:31]OFD Sender: No OFD packet to send [17:49:36]OFD Sender: No OFD packet to send [17:49:41]OFD Sender: No OFD packet to send [17:49:46]OFD Sender: No OFD packet to send [17:49:51]OFD Sender: No OFD packet to send [17:49:56]OFD Sender: No OFD packet to send [17:50:01]OFD Sender: No OFD packet to send [17:50:06]OFD Sender: No OFD packet to send [17:50:11]OFD Sender: No OFD packet to send [17:50:16]OFD Sender: No OFD packet to send [17:50:21]OFD Sender: No OFD packet to send [17:50:26]OFD Sender: No OFD packet to send [17:50:31]OFD Sender: No OFD packet to send [17:50:36]OFD Sender: No OFD packet to send [17:50:41]OFD Sender: No OFD packet to send [17:50:46]OFD Sender: No OFD packet to send [17:50:51]OFD Sender: No OFD packet to send [17:50:56]OFD Sender: No OFD packet to send [17:51:01]OFD Sender: No OFD packet to send [17:51:06]OFD Sender: No OFD packet to send [17:51:11]OFD Sender: No OFD packet to send [17:51:16]OFD Sender: No OFD packet to send [17:51:21]OFD Sender: No OFD packet to send [17:51:26]OFD Sender: No OFD packet to send [17:51:31]OFD Sender: No OFD packet to send [17:51:36]OFD Sender: No OFD packet to send [17:51:41]OFD Sender: No OFD packet to send