[02:59:55]OFD Sender: No OFD packet to send [03:00:00]OFD Sender: No OFD packet to send [03:00:05]OFD Sender: No OFD packet to send [03:00:10]OFD Sender: No OFD packet to send [03:00:15]OFD Sender: No OFD packet to send [03:00:20]OFD Sender: No OFD packet to send [03:00:25]OFD Sender: No OFD packet to send [03:00:30]OFD Sender: No OFD packet to send [03:00:35]OFD Sender: No OFD packet to send [03:00:40]OFD Sender: No OFD packet to send [03:00:45]OFD Sender: No OFD packet to send [03:00:50]OFD Sender: No OFD packet to send [03:00:55]OFD Sender: No OFD packet to send [03:01:00]OFD Sender: No OFD packet to send [03:01:05]OFD Sender: No OFD packet to send [03:01:10]OFD Sender: No OFD packet to send [03:01:15]OFD Sender: No OFD packet to send [03:01:20]OFD Sender: No OFD packet to send [03:01:25]OFD Sender: No OFD packet to send [03:01:30]OFD Sender: No OFD packet to send [03:01:35]OFD Sender: No OFD packet to send [03:01:40]OFD Sender: No OFD packet to send [03:01:45]OFD Sender: No OFD packet to send [03:01:50]OFD Sender: No OFD packet to send [03:01:55]OFD Sender: No OFD packet to send [03:02:00]OFD Sender: No OFD packet to send [03:02:05]OFD Sender: No OFD packet to send [03:02:10]OFD Sender: No OFD packet to send [03:02:15]OFD Sender: No OFD packet to send [03:02:20]OFD Sender: No OFD packet to send [03:02:25]OFD Sender: No OFD packet to send [03:02:30]OFD Sender: No OFD packet to send [03:02:35]OFD Sender: No OFD packet to send [03:02:40]OFD Sender: No OFD packet to send [03:02:45]OFD Sender: No OFD packet to send [03:02:50]OFD Sender: No OFD packet to send [03:02:55]OFD Sender: No OFD packet to send [03:03:00]OFD Sender: No OFD packet to send [03:03:05]OFD Sender: No OFD packet to send [03:03:10]OFD Sender: No OFD packet to send [03:03:15]OFD Sender: No OFD packet to send [03:03:20]OFD Sender: No OFD packet to send [03:03:25]OFD Sender: No OFD packet to send [03:03:30]OFD Sender: No OFD packet to send [03:03:35]OFD Sender: No OFD packet to send [03:03:40]OFD Sender: No OFD packet to send [03:03:45]OFD Sender: No OFD packet to send [03:03:50]OFD Sender: No OFD packet to send [03:03:55]OFD Sender: No OFD packet to send [03:04:00]OFD Sender: No OFD packet to send [03:04:05]OFD Sender: No OFD packet to send [03:04:10]OFD Sender: No OFD packet to send [03:04:15]OFD Sender: No OFD packet to send [03:04:20]OFD Sender: No OFD packet to send [03:04:25]OFD Sender: No OFD packet to send [03:04:30]OFD Sender: No OFD packet to send [03:04:35]OFD Sender: No OFD packet to send [03:04:40]OFD Sender: No OFD packet to send [03:04:45]OFD Sender: No OFD packet to send [03:04:50]OFD Sender: No OFD packet to send [03:04:55]OFD Sender: No OFD packet to send [03:05:00]OFD Sender: No OFD packet to send [03:05:05]OFD Sender: No OFD packet to send [03:05:10]OFD Sender: No OFD packet to send [03:05:15]OFD Sender: No OFD packet to send [03:05:20]OFD Sender: No OFD packet to send [03:05:25]OFD Sender: No OFD packet to send [03:05:30]OFD Sender: No OFD packet to send [03:05:35]OFD Sender: No OFD packet to send [03:05:40]OFD Sender: No OFD packet to send [03:05:45]OFD Sender: No OFD packet to send [03:05:50]OFD Sender: No OFD packet to send [03:05:55]OFD Sender: No OFD packet to send [03:05:56]accept exits with 8 [03:05:56]New connection [03:05:56]New thread 3067342180 created [03:05:56]Thread 3067198820 joined [03:05:56]Waiting for new connection... [03:05:56] Sock 8.Parse request [03:05:56]Sock 8.Check first char [03:05:56]Sock 8.First char is OK [03:05:56]request: POST /json_proto HTTP/1.0 [03:05:56]Method: POST [03:05:56]URL: /json_proto [03:05:56]Method is POST - this is cgi request [03:05:56]url: /json_proto [03:05:56]query_string will be loaded in cgi processing [03:05:56]execute_cgi json_proto POST (null) [03:05:56]execute_cgi path=json_proto method=POST [03:05:56]POST find Content-Length [03:05:56]Host: 172.17.32.69:8080 [03:05:56]Content-Length: 678 [03:05:56]Content-Type: application/json [03:05:56] [03:05:56]POST finish read [03:05:56]Found Content-Length = 678 [03:05:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 73", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 3.240, "sum" : 200.56, "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" ] } } [03:05:56]execute_script... [03:05:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 73", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 3.240, "sum" : 200.56, "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" ] } } [03:05:56]POST & json_proto [03:05:56]process_json_proto [03:05:56]json parsed OK: [03:05:56]protocol is kg_v1.0 [03:05:56]action value=close_receipt [03:05:56]process_action close_receipt [03:05:56]cmd_close_receipt [03:05:56]MH_GetDate [03:05:56]Write to MH i2c: F0 00 00 37 14 3A [03:05:56]Write i2c OK [03:05:56]MH_I2C_Read... [03:05:56]Read from MH i2c: F0 [03:05:56]MH_I2C_Read... [03:05:56]Read from MH i2c: F0 09 00 [03:05:56]MH_I2C_Read... [03:05:56]Read from MH i2c: F0 09 00 37 14 00 16 BB F3 65 D5 0F D3 65 88 [03:05:56]GetLastDocTimeStamp 1710470649 [03:05:56]current date 1710471958 [03:05:56]FM_GetShiftState [03:05:56]SAM_PROTO_GetShiftState [03:05:56]wFMCommunicate request_size=4 [03:05:56]MH_SAM_APDU [03:05:56]CAPDU: 80 13 01 00 [03:05:56]Write to MH i2c: E2 08 00 38 14 80 13 01 00 00 00 00 00 C9 [03:05:56]Write i2c OK [03:05:56]MH_I2C_Read... [03:05:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:05:56]Read from MH i2c: E2 [03:05:56]MH_I2C_Read... [03:05:56]Read from MH i2c: E2 0E 00 [03:05:56]MH_I2C_Read... [03:05:56]Read from MH i2c: E2 0E 00 38 14 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 FD [03:05:56]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [03:05:56]wFMCommunicate OK [03:05:56]SAM_PROTO_GetShiftState done [03:05:56]FM_GetShiftState done [03:05:56]opened in 1710461757 [03:05:56]opened+sec_in_day 1710548157 [03:05:56]quantity*price = 20055 [03:05:56]sum+1 = 20057 [03:05:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 21 15.03.2024 03:05 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108498 ФПД: 48054599664436 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T030558&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108498&fm=48054599664436&tin=02508201610067®Number=0000000000091911&sum=20000 [03:05:57]StoreToDocumentArchive [03:05:57]shift 320 fd 108498 [03:05:57]save to /storage/0320/doc_00108498 [03:05:57]save last doc name /storage/0320/doc_00108498 to /storage/kkm_last_doc_name [03:05:57]save OK [03:05:57]Clear old archive folders... [03:05:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:05:57]tlvbuf is 000B3010 [03:05:57]SAM_PROTO_ClearQueue [03:05:57]wFMCommunicate request_size=4 [03:05:57]MH_SAM_APDU [03:05:57]CAPDU: 80 09 00 00 [03:05:57]Write to MH i2c: E2 08 00 45 14 80 09 00 00 00 00 00 00 CB [03:05:57]Write i2c OK [03:05:57]MH_I2C_Read... [03:05:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:05:57]Read from MH i2c: E2 [03:05:57]MH_I2C_Read... [03:05:57]Read from MH i2c: E2 03 00 [03:05:57]MH_I2C_Read... [03:05:57]Read from MH i2c: E2 03 00 45 14 00 90 00 CD [03:05:57]RAPDU: 90 00 [03:05:57]wFMCommunicate OK [03:05:57]SAM_PROTO_ClearQueue done [03:05:57]KKMCreateOFDPacket [03:05:57]OFDProtocolAddRootSTLVToBuf [03:05:57]FM_MakeSignedData [03:05:57]FM_MakeSignedData [03:05:57]SAM_PROTO_SignData [03:05:57]wFMCommunicate request_size=4 [03:05:57]MH_SAM_APDU [03:05:57]CAPDU: 80 0D 01 02 [03:05:57]Write to MH i2c: E2 08 00 46 14 80 0D 01 02 00 00 00 00 D3 [03:05:57]Write i2c OK [03:05:57]MH_I2C_Read... [03:05:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:05:57]Read from MH i2c: E2 [03:05:57]MH_I2C_Read... [03:05:57]Read from MH i2c: E2 03 00 [03:05:57]MH_I2C_Read... [03:05:57]Read from MH i2c: E2 03 00 46 14 00 90 00 CE [03:05:57]RAPDU: 90 00 [03:05:57]wFMCommunicate OK [03:05:57]wFMCommunicate request_size=255 [03:05:57]MH_SAM_APDU [03:05:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 15 00 00 00 F4 03 04 00 16 BB F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 D2 A7 01 00 35 04 06 00 2B [03:05:57]Write to MH i2c: E2 02 01 47 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 15 00 00 00 F4 03 04 00 16 BB F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 D2 A7 01 00 35 04 06 00 2B 00 00 85 [03:05:57]Write i2c OK [03:05:57]MH_I2C_Read... [03:05:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:05:57]Read from MH i2c: E2 [03:05:57]MH_I2C_Read... [03:05:57]Read from MH i2c: E2 03 00 [03:05:57]MH_I2C_Read... [03:05:57]Read from MH i2c: E2 03 00 47 14 00 90 00 CF [03:05:57]RAPDU: 90 00 [03:05:57]wFMCommunicate OK [03:05:57]wFMCommunicate request_size=10 [03:05:57]MH_SAM_APDU [03:05:57]CAPDU: 80 0D 02 02 05 B4 95 57 C3 34 [03:05:57]Write to MH i2c: E2 0D 00 48 14 80 0D 02 02 05 00 B4 95 57 C3 34 00 00 77 [03:05:57]Write i2c OK [03:05:57]MH_I2C_Read... [03:05:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:05:57]Read from MH i2c: E2 [03:05:57]MH_I2C_Read... [03:05:57]Read from MH i2c: E2 03 00 [03:05:57]MH_I2C_Read... [03:05:57]Read from MH i2c: E2 03 00 48 14 00 90 00 D0 [03:05:57]RAPDU: 90 00 [03:05:57]wFMCommunicate OK [03:05:57]wFMCommunicate request_size=4 [03:05:57]MH_SAM_APDU [03:05:57]CAPDU: 80 0D 03 02 [03:05:57]Write to MH i2c: E2 08 00 49 14 80 0D 03 02 00 00 00 00 D8 [03:05:57]Write i2c OK [03:05:57]MH_I2C_Read... [03:05:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:05:57]Read from MH i2c: E2 [03:05:57]MH_I2C_Read... [03:05:57]Read from MH i2c: E2 0B 00 [03:05:57]MH_I2C_Read... [03:05:57]Read from MH i2c: E2 0B 00 49 14 00 BF FC EC AD F7 6D 31 AD 90 00 6F [03:05:57]RAPDU: BF FC EC AD F7 6D 31 AD 90 00 [03:05:57]wFMCommunicate OK [03:05:57]SAM_PROTO_SignData done [03:05:57]FM_MakeSignedData done [03:05:57]CreateOFDProtocolMessage [03:05:57]wFMCommunicate request_size=4 [03:05:57]MH_SAM_APDU [03:05:57]CAPDU: 80 11 00 00 [03:05:57]Write to MH i2c: E2 08 00 4A 14 80 11 00 00 00 00 00 00 D8 [03:05:57]Write i2c OK [03:05:57]MH_I2C_Read... [03:05:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:05:57]Read from MH i2c: E2 [03:05:57]MH_I2C_Read... [03:05:57]Read from MH i2c: E2 17 00 [03:05:57]MH_I2C_Read... [03:05:57]Read from MH i2c: E2 17 00 4A 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 2C [03:05:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [03:05:57]wFMCommunicate OK [03:05:57]CreateOFDProtocolMessage done [03:05:57]OFDSenderStorePacket 108498 [03:05:57]StoreOFDPacket docnum=108498 [03:05:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 B6 38 07 01 B8 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 15 00 00 00 F4 03 04 00 16 BB F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 D2 A7 01 00 35 04 06 00 2B B4 95 57 C3 34 BF FC EC AD F7 6D 31 AD [03:05:57]CheckFolder [03:05:57]dirname=/storage/ofd_packets [03:05:57]CheckFolder done [03:05:57]ProducePacketName [03:05:57]name=ofd_packets/00108498 [03:05:57]NVStorageSaveData ofd_packets/00108498 [03:05:57]File name is /storage/ofd_packets/00108498 [03:05:57]Write 301 bytes [03:05:57]NVStorageSaveData done [03:05:57]OFDSenderStorePacket done [03:05:57]KKMCreateOFDPacket done [03:05:57]NVStorageSaveData kkm_last_timestamp [03:05:57]File name is /storage/kkm_last_timestamp [03:05:57]Write 4 bytes [03:05:57]NVStorageSaveData done [03:05:57]ExternCall_PrintAddStr [03:05:57]wPrintStart [03:05:57]Write to MH i2c: 01 00 00 4B 14 5F [03:05:57]Write i2c OK [03:05:57]MH_I2C_Read... [03:05:57]Read from MH i2c: 01 [03:05:57]MH_I2C_Read... [03:05:57]Read from MH i2c: 01 07 00 [03:05:57]MH_I2C_Read... [03:05:57]Read from MH i2c: 01 07 00 4B 14 00 00 00 00 00 FF 0F 74 [03:05:57]RasterBufferAndPrint [03:05:57]line Счет N : (1)1040647 [03:05:57]line ИНН: 02508201610067 [03:05:57]line Контрольно-Кассовый Чек [03:05:57]line ПРОДАЖА [03:05:57]line ТРК (МРК, ГНК) : 73 [03:05:57]line Товар: 2710124130 [03:05:57]line Аи-92-К-5 [03:05:57]line 3.240 * 61.90 [03:05:57]line = 200.56 [03:05:57]line НДС 12% НСП 1% [03:05:57]line > о реализуемом товаре [03:05:57]line ОКРУГЛЕНИЕ: -0.56 [03:05:57]line ИТОГО: 200.00 [03:05:57]line Внесено: 200.00 [03:05:57]line СДАЧА: 0.00 [03:05:57]line НСП 1% : 1.77 [03:05:57]line НДС 12% : 21.30 [03:05:57]line Наличными: 200.00 [03:05:57]line Безнал.: 0.00 [03:05:57]line Место: АЗС № 15 "Партнер Нефть" [03:05:57]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [03:05:57]line СНО: Общий режим [03:05:57]line Чек 21 15.03.2024 03:05 [03:05:57]line Смена: 320 ФФД: 1.0 [03:05:57]line ЗНМ: 0300000266 [03:05:57]line РНМ: 0000000000091911 [03:05:57]line Версия ККМ: 001 [03:05:57]line ФМ: 0000000000871818 [03:05:57]line ФД: 108498 [03:05:57]line ФПД: 48054599664436 [03:05:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T030558&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108498&fm=48054599664436&tin=02508201610067®Number=0000000000091911&sum=20000 [03:05:58]OFD Sender: Processing packet 108498 [packets to send 29, broken 28] [03:05:58]ProducePacketName [03:05:58]name=ofd_packets/00108498 [03:05:58]OFD Sender: To server: pG, [03:05:58]CommunicateWithHost lk.salyk.kg:30040 [03:05:58]ConnectInit lk.salyk.kg [03:05:58]written 0, free lines is 4095 [03:05:58]Connected sock=10 [03:05:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 B6 38 07 01 B8 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 15 00 00 00 F4 03 04 00 16 BB F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 D2 A7 01 00 35 04 06 00 2B B4 95 57 C3 34 BF FC EC AD F7 6D 31 AD [03:05: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 31 38 4F 00 00 00 08 8C 47 00 44 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 D2 A7 01 00 F4 03 04 00 B7 66 F3 65 B6 04 01 00 00 86 66 3C 8C 13 F2 AA DE [03:05:58]CommunicateWithHost err = 0 [03:05:58]CheckOFDResponse [03:05:58]1017 (14) - 77093643461234 [03:05:58]1041 (16) - 0000000000871818 [03:05:58]1040 (4) - 108498 [03:05:58]1012 (4) - 14.03.2024 21:05 [03:05:58]1206 (1) - 0 [03:05:58]OFD Sender: Remove packet 108498 [03:05:58]ProducePacketName [03:05:58]name=ofd_packets/00108498 [03:05:58]NVStorageDeleteData [03:05:58]Write to MH i2c: 01 00 00 76 14 8A [03:05:58]Write i2c OK [03:05:58]MH_I2C_Read... [03:05:58]Read from MH i2c: 01 [03:05:58]MH_I2C_Read... [03:05:58]Read from MH i2c: 01 07 00 [03:05:58]MH_I2C_Read... [03:05:58]Read from MH i2c: 01 07 00 76 14 00 00 00 00 00 D4 0C 71 [03:05:58]RasterBufferAndPrint [03:05:58]line [03:05:58]line [03:05:58]line [03:05:58]line [03:05:58]line [03:05:58]written 0, free lines is 3289 [03:05:58]MH_Cut [03:05:58]Write to MH i2c: D1 01 00 7D 14 01 63 [03:05:58]Write i2c OK [03:05:58]MH_I2C_Read... [03:05:58]Read from MH i2c: D1 [03:05:58]MH_I2C_Read... [03:05:58]Read from MH i2c: D1 01 00 [03:05:58]MH_I2C_Read... [03:05:58]Read from MH i2c: D1 01 00 7D 14 00 62 [03:05:58]Write to MH i2c: 01 00 00 7E 14 92 [03:05:58]Write i2c OK [03:05:58]MH_I2C_Read... [03:05:59]OFD Sender: No OFD packet to send [03:05:59]*** Cut start [03:05:59]*** Purtial cut [03:05:59]*** Stage 1: CUTSNS_PIN = 1 [03:05:59]Read from MH i2c: 01 [03:05:59]MH_I2C_Read... [03:05:59]*** Stop cut motor [03:05:59]*** Cut end [03:05:59]Read from MH i2c: 01 07 00 [03:05:59]MH_I2C_Read... [03:05:59]Read from MH i2c: 01 07 00 7E 14 00 00 00 00 00 FF 0F A7 [03:05:59]process_action close_receipt done [03:05:59]requested_data is exist [03:05:59]produce_requested_data [03:05:59]requested_item fm.sn is exist - process it [03:05:59]wFMCommunicate request_size=4 [03:05:59]MH_SAM_APDU [03:05:59]CAPDU: 80 11 00 00 [03:05:59]Write to MH i2c: E2 08 00 7F 14 80 11 00 00 00 00 00 00 0D [03:05:59]Write i2c OK [03:05:59]MH_I2C_Read... [03:05:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:05:59]Read from MH i2c: E2 [03:05:59]MH_I2C_Read... [03:05:59]Read from MH i2c: E2 17 00 [03:05:59]MH_I2C_Read... [03:05:59]Read from MH i2c: E2 17 00 7F 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 61 [03:05:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [03:05:59]wFMCommunicate OK [03:05:59]requested_item fd.num is exist - process it [03:05:59]SAM_PROTO_GetFieldsCounters [03:05:59]wFMCommunicate request_size=4 [03:05:59]MH_SAM_APDU [03:05:59]CAPDU: 80 13 00 00 [03:05:59]Write to MH i2c: E2 08 00 80 14 80 13 00 00 00 00 00 00 10 [03:05:59]Write i2c OK [03:05:59]MH_I2C_Read... [03:05:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:05:59]Read from MH i2c: E2 [03:05:59]MH_I2C_Read... [03:05:59]Read from MH i2c: E2 62 00 [03:05:59]MH_I2C_Read... [03:05:59]Read from MH i2c: E2 62 00 80 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 D2 A7 01 00 0E 04 04 00 40 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 28 [03:05: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 D2 A7 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:05:59]wFMCommunicate OK [03:05:59]SAM_PROTO_GetFieldsCounters done [03:05:59]requested_item shift.num is exist - process it [03:05:59]requested_item shift.opened is exist - process it [03:05:59]req_shift_opened [03:05:59]FM_GetShiftState [03:05:59]SAM_PROTO_GetShiftState [03:05:59]wFMCommunicate request_size=4 [03:05:59]MH_SAM_APDU [03:05:59]CAPDU: 80 13 01 00 [03:05:59]Write to MH i2c: E2 08 00 81 14 80 13 01 00 00 00 00 00 12 [03:06:00]Write i2c OK [03:06:00]MH_I2C_Read... [03:06:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:06:00]Read from MH i2c: E2 [03:06:00]MH_I2C_Read... [03:06:00]Read from MH i2c: E2 0E 00 [03:06:00]MH_I2C_Read... [03:06:00]Read from MH i2c: E2 0E 00 81 14 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 46 [03:06:00]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [03:06:00]wFMCommunicate OK [03:06:00]SAM_PROTO_GetShiftState done [03:06:00]FM_GetShiftState done [03:06:00]req_shift_opened done [03:06:00]requested_item shift.open_date is exist - process it [03:06:00]req_shift_open_date [03:06:00]req_shift_open_date done [03:06:00]produce_requested_data done [03:06:00]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108498,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [03:06:00]process_action_free close_receipt [03:06:00]json_value_free [03:06:00]json_value_free done [03:06:00]process_json_proto returns [03:06:00]Send response to host [03:06:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108498,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [03:06:00]free response buf [03:06:00]execute_script done [03:06:00]execute_script returns [03:06:00]free content buf [03:06:00]Sock 8.Close socket [03:06:00]Sock 8.Thread stoped [03:06:04]OFD Sender: No OFD packet to send [03:06:09]OFD Sender: No OFD packet to send [03:06:14]OFD Sender: No OFD packet to send [03:06:19]OFD Sender: No OFD packet to send [03:06:24]OFD Sender: No OFD packet to send [03:06:29]OFD Sender: No OFD packet to send [03:06:34]OFD Sender: No OFD packet to send [03:06:39]OFD Sender: No OFD packet to send [03:06:44]OFD Sender: No OFD packet to send [03:06:49]OFD Sender: No OFD packet to send [03:06:54]OFD Sender: No OFD packet to send [03:06:59]OFD Sender: No OFD packet to send [03:07:04]OFD Sender: No OFD packet to send [03:07:09]OFD Sender: No OFD packet to send [03:07:14]OFD Sender: No OFD packet to send [03:07:19]OFD Sender: No OFD packet to send [03:07:24]OFD Sender: No OFD packet to send [03:07:29]OFD Sender: No OFD packet to send [03:07:34]OFD Sender: No OFD packet to send [03:07:39]OFD Sender: No OFD packet to send [03:07:44]OFD Sender: No OFD packet to send [03:07:49]OFD Sender: No OFD packet to send [03:07:54]OFD Sender: No OFD packet to send [03:07:59]OFD Sender: No OFD packet to send [03:08:04]OFD Sender: No OFD packet to send [03:08:09]OFD Sender: No OFD packet to send [03:08:14]OFD Sender: No OFD packet to send [03:08:19]OFD Sender: No OFD packet to send [03:08:24]OFD Sender: No OFD packet to send [03:08:29]OFD Sender: No OFD packet to send [03:08:34]OFD Sender: No OFD packet to send [03:08:39]OFD Sender: No OFD packet to send [03:08:44]OFD Sender: No OFD packet to send [03:08:49]OFD Sender: No OFD packet to send [03:08:54]OFD Sender: No OFD packet to send [03:08:59]OFD Sender: No OFD packet to send [03:09:04]OFD Sender: No OFD packet to send [03:09:09]OFD Sender: No OFD packet to send [03:09:14]OFD Sender: No OFD packet to send [03:09:19]OFD Sender: No OFD packet to send [03:09:24]OFD Sender: No OFD packet to send [03:09:29]OFD Sender: No OFD packet to send [03:09:34]OFD Sender: No OFD packet to send [03:09:39]OFD Sender: No OFD packet to send [03:09:44]OFD Sender: No OFD packet to send [03:09:49]OFD Sender: No OFD packet to send [03:09:54]OFD Sender: No OFD packet to send [03:09:59]OFD Sender: No OFD packet to send [03:10:04]OFD Sender: No OFD packet to send [03:10:09]OFD Sender: No OFD packet to send [03:10:14]OFD Sender: No OFD packet to send [03:10:19]OFD Sender: No OFD packet to send [03:10:24]OFD Sender: No OFD packet to send [03:10:29]OFD Sender: No OFD packet to send [03:10:34]OFD Sender: No OFD packet to send [03:10:39]OFD Sender: No OFD packet to send [03:10:44]OFD Sender: No OFD packet to send [03:10:49]OFD Sender: No OFD packet to send [03:10:54]OFD Sender: No OFD packet to send [03:10:59]OFD Sender: No OFD packet to send [03:11:04]OFD Sender: No OFD packet to send [03:11:09]OFD Sender: No OFD packet to send [03:11:14]OFD Sender: No OFD packet to send [03:11:19]OFD Sender: No OFD packet to send [03:11:24]OFD Sender: No OFD packet to send [03:11:29]OFD Sender: No OFD packet to send [03:11:34]OFD Sender: No OFD packet to send [03:11:39]OFD Sender: No OFD packet to send [03:11:44]OFD Sender: No OFD packet to send [03:11:49]OFD Sender: No OFD packet to send [03:11:54]OFD Sender: No OFD packet to send [03:11:59]OFD Sender: No OFD packet to send [03:12:04]OFD Sender: No OFD packet to send [03:12:09]OFD Sender: No OFD packet to send [03:12:14]OFD Sender: No OFD packet to send [03:12:19]OFD Sender: No OFD packet to send [03:12:24]OFD Sender: No OFD packet to send [03:12:29]OFD Sender: No OFD packet to send [03:12:34]OFD Sender: No OFD packet to send [03:12:39]OFD Sender: No OFD packet to send [03:12:44]OFD Sender: No OFD packet to send [03:12:49]OFD Sender: No OFD packet to send [03:12:54]OFD Sender: No OFD packet to send [03:12:59]OFD Sender: No OFD packet to send [03:13:04]OFD Sender: No OFD packet to send [03:13:09]OFD Sender: No OFD packet to send [03:13:14]OFD Sender: No OFD packet to send [03:13:19]OFD Sender: No OFD packet to send [03:13:24]OFD Sender: No OFD packet to send [03:13:29]OFD Sender: No OFD packet to send [03:13:34]OFD Sender: No OFD packet to send [03:13:39]OFD Sender: No OFD packet to send [03:13:44]OFD Sender: No OFD packet to send [03:13:49]OFD Sender: No OFD packet to send [03:13:54]OFD Sender: No OFD packet to send [03:13:59]OFD Sender: No OFD packet to send [03:14:04]OFD Sender: No OFD packet to send [03:14:04]accept exits with 9 [03:14:04]New connection [03:14:04]New thread 3067198820 created [03:14:04]Thread 3067342180 joined [03:14:04]Waiting for new connection... [03:14:04] Sock 9.Parse request [03:14:04]Sock 9.Check first char [03:14:04]Sock 9.First char is OK [03:14:04]request: POST /json_proto HTTP/1.0 [03:14:04]Method: POST [03:14:04]URL: /json_proto [03:14:04]Method is POST - this is cgi request [03:14:04]url: /json_proto [03:14:04]query_string will be loaded in cgi processing [03:14:04]execute_cgi json_proto POST (null) [03:14:04]execute_cgi path=json_proto method=POST [03:14:04]POST find Content-Length [03:14:04]Host: 172.17.32.69:8080 [03:14:04]Content-Length: 830 [03:14:04]Content-Type: application/json [03:14:04] [03:14:04]POST finish read [03:14:04]Found Content-Length = 830 [03:14:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 6.470, "sum" : 400.49, "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: \u0414\u0435\u043C\u0438\u0440 \u041A\u0418 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:14:04]execute_script... [03:14: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)1040649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 6.470, "sum" : 400.49, "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: \u0414\u0435\u043C\u0438\u0440 \u041A\u0418 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:14:04]POST & json_proto [03:14:04]process_json_proto [03:14:04]json parsed OK: [03:14:04]protocol is kg_v1.0 [03:14:04]action value=close_receipt [03:14:04]process_action close_receipt [03:14:04]cmd_close_receipt [03:14:04]MH_GetDate [03:14:04]Write to MH i2c: F0 00 00 82 14 85 [03:14:04]Write i2c OK [03:14:04]MH_I2C_Read... [03:14:04]Read from MH i2c: F0 [03:14:04]MH_I2C_Read... [03:14:04]Read from MH i2c: F0 09 00 [03:14:04]MH_I2C_Read... [03:14:04]Read from MH i2c: F0 09 00 82 14 00 FE BC F3 65 D5 0F D3 65 BC [03:14:04]GetLastDocTimeStamp 1710471958 [03:14:04]current date 1710472446 [03:14:04]FM_GetShiftState [03:14:04]SAM_PROTO_GetShiftState [03:14:04]wFMCommunicate request_size=4 [03:14:04]MH_SAM_APDU [03:14:04]CAPDU: 80 13 01 00 [03:14:04]Write to MH i2c: E2 08 00 83 14 80 13 01 00 00 00 00 00 14 [03:14:04]Write i2c OK [03:14:04]MH_I2C_Read... [03:14:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:14:04]Read from MH i2c: E2 [03:14:04]MH_I2C_Read... [03:14:04]Read from MH i2c: E2 0E 00 [03:14:04]MH_I2C_Read... [03:14:04]Read from MH i2c: E2 0E 00 83 14 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 48 [03:14:04]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [03:14:04]wFMCommunicate OK [03:14:04]SAM_PROTO_GetShiftState done [03:14:04]FM_GetShiftState done [03:14:04]opened in 1710461757 [03:14:04]opened+sec_in_day 1710548157 [03:14:04]quantity*price = 40049 [03:14:04]sum+1 = 40050 [03:14:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.49 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 0.00 Безнал.: 400.49 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 22 15.03.2024 03:14 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 Платежная система: Демир КИ Банк ФМ: 0000000000871818 ФД: 108499 ФПД: 97018346183855 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T031406&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108499&fm=97018346183855&tin=02508201610067®Number=0000000000091911&sum=40049 [03:14:05]StoreToDocumentArchive [03:14:05]shift 320 fd 108499 [03:14:05]save to /storage/0320/doc_00108499 [03:14:05]save last doc name /storage/0320/doc_00108499 to /storage/kkm_last_doc_name [03:14:05]save OK [03:14:05]Clear old archive folders... [03:14:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:14:05]tlvbuf is B6E07750 [03:14:05]SAM_PROTO_ClearQueue [03:14:05]wFMCommunicate request_size=4 [03:14:05]MH_SAM_APDU [03:14:05]CAPDU: 80 09 00 00 [03:14:05]Write to MH i2c: E2 08 00 90 14 80 09 00 00 00 00 00 00 16 [03:14:05]Write i2c OK [03:14:05]MH_I2C_Read... [03:14:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:14:05]Read from MH i2c: E2 [03:14:05]MH_I2C_Read... [03:14:05]Read from MH i2c: E2 03 00 [03:14:05]MH_I2C_Read... [03:14:05]Read from MH i2c: E2 03 00 90 14 00 90 00 18 [03:14:05]RAPDU: 90 00 [03:14:05]wFMCommunicate OK [03:14:05]SAM_PROTO_ClearQueue done [03:14:05]KKMCreateOFDPacket [03:14:05]OFDProtocolAddRootSTLVToBuf [03:14:05]FM_MakeSignedData [03:14:05]FM_MakeSignedData [03:14:05]SAM_PROTO_SignData [03:14:05]wFMCommunicate request_size=4 [03:14:05]MH_SAM_APDU [03:14:05]CAPDU: 80 0D 01 02 [03:14:05]Write to MH i2c: E2 08 00 91 14 80 0D 01 02 00 00 00 00 1E [03:14:05]Write i2c OK [03:14:05]MH_I2C_Read... [03:14:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:14:05]Read from MH i2c: E2 [03:14:05]MH_I2C_Read... [03:14:05]Read from MH i2c: E2 03 00 [03:14:05]MH_I2C_Read... [03:14:05]Read from MH i2c: E2 03 00 91 14 00 90 00 19 [03:14:05]RAPDU: 90 00 [03:14:05]wFMCommunicate OK [03:14:05]wFMCommunicate request_size=255 [03:14:05]MH_SAM_APDU [03:14:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 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 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 FE BC F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 D3 A7 01 00 35 04 06 00 58 [03:14:05]Write to MH i2c: E2 02 01 92 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 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 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 FE BC F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 D3 A7 01 00 35 04 06 00 58 00 00 3D [03:14:05]Write i2c OK [03:14:05]MH_I2C_Read... [03:14:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:14:06]Read from MH i2c: E2 [03:14:06]MH_I2C_Read... [03:14:06]Read from MH i2c: E2 03 00 [03:14:06]MH_I2C_Read... [03:14:06]Read from MH i2c: E2 03 00 92 14 00 90 00 1A [03:14:06]RAPDU: 90 00 [03:14:06]wFMCommunicate OK [03:14:06]wFMCommunicate request_size=10 [03:14:06]MH_SAM_APDU [03:14:06]CAPDU: 80 0D 02 02 05 3C D8 0F 9C AF [03:14:06]Write to MH i2c: E2 0D 00 93 14 80 0D 02 02 05 00 3C D8 0F 9C AF 00 00 99 [03:14:06]Write i2c OK [03:14:06]MH_I2C_Read... [03:14:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:14:06]Read from MH i2c: E2 [03:14:06]MH_I2C_Read... [03:14:06]Read from MH i2c: E2 03 00 [03:14:06]MH_I2C_Read... [03:14:06]Read from MH i2c: E2 03 00 93 14 00 90 00 1B [03:14:06]RAPDU: 90 00 [03:14:06]wFMCommunicate OK [03:14:06]wFMCommunicate request_size=4 [03:14:06]MH_SAM_APDU [03:14:06]CAPDU: 80 0D 03 02 [03:14:06]Write to MH i2c: E2 08 00 94 14 80 0D 03 02 00 00 00 00 23 [03:14:06]Write i2c OK [03:14:06]MH_I2C_Read... [03:14:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:14:06]Read from MH i2c: E2 [03:14:06]MH_I2C_Read... [03:14:06]Read from MH i2c: E2 0B 00 [03:14:06]MH_I2C_Read... [03:14:06]Read from MH i2c: E2 0B 00 94 14 00 9F 79 D5 0B F8 F8 37 CC 90 00 0F [03:14:06]RAPDU: 9F 79 D5 0B F8 F8 37 CC 90 00 [03:14:06]wFMCommunicate OK [03:14:06]SAM_PROTO_SignData done [03:14:06]FM_MakeSignedData done [03:14:06]CreateOFDProtocolMessage [03:14:06]wFMCommunicate request_size=4 [03:14:06]MH_SAM_APDU [03:14:06]CAPDU: 80 11 00 00 [03:14:06]Write to MH i2c: E2 08 00 95 14 80 11 00 00 00 00 00 00 23 [03:14:06]Write i2c OK [03:14:06]MH_I2C_Read... [03:14:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:14:06]Read from MH i2c: E2 [03:14:06]MH_I2C_Read... [03:14:06]Read from MH i2c: E2 17 00 [03:14:06]MH_I2C_Read... [03:14:06]Read from MH i2c: E2 17 00 95 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 77 [03:14:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [03:14:06]wFMCommunicate OK [03:14:06]CreateOFDProtocolMessage done [03:14:06]OFDSenderStorePacket 108499 [03:14:06]StoreOFDPacket docnum=108499 [03:14:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 7A 0D 07 01 44 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 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 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 FE BC F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 D3 A7 01 00 35 04 06 00 58 3C D8 0F 9C AF 9F 79 D5 0B F8 F8 37 CC [03:14:06]CheckFolder [03:14:06]dirname=/storage/ofd_packets [03:14:06]CheckFolder done [03:14:06]ProducePacketName [03:14:06]name=ofd_packets/00108499 [03:14:06]NVStorageSaveData ofd_packets/00108499 [03:14:06]File name is /storage/ofd_packets/00108499 [03:14:06]Write 301 bytes [03:14:06]NVStorageSaveData done [03:14:06]OFDSenderStorePacket done [03:14:06]KKMCreateOFDPacket done [03:14:06]NVStorageSaveData kkm_last_timestamp [03:14:06]File name is /storage/kkm_last_timestamp [03:14:06]Write 4 bytes [03:14:06]NVStorageSaveData done [03:14:06]ExternCall_PrintAddStr [03:14:06]wPrintStart [03:14:06]Write to MH i2c: 01 00 00 96 14 AA [03:14:06]Write i2c OK [03:14:06]MH_I2C_Read... [03:14:06]Read from MH i2c: 01 [03:14:06]MH_I2C_Read... [03:14:06]Read from MH i2c: 01 07 00 [03:14:06]MH_I2C_Read... [03:14:06]Read from MH i2c: 01 07 00 96 14 00 00 00 00 00 FF 0F BF [03:14:06]RasterBufferAndPrint [03:14:06]line Счет N : (1)1040649 [03:14:06]line ИНН: 02508201610067 [03:14:06]line Контрольно-Кассовый Чек [03:14:06]line ПРОДАЖА [03:14:06]line ТРК (МРК, ГНК) : 23 [03:14:06]line Товар: 2710124130 [03:14:06]line Аи-92-К-5 [03:14:06]line 6.470 * 61.90 [03:14:06]line = 400.49 [03:14:06]line НДС 12% НСП 1% [03:14:06]line > о реализуемом товаре [03:14:06]line ИТОГО: 400.49 [03:14:06]line НСП 1% : 3.54 [03:14:06]line НДС 12% : 42.53 [03:14:06]line Наличными: 0.00 [03:14:06]line Безнал.: 400.49 [03:14:06]line Место: АЗС № 15 "Партнер Нефть" [03:14:06]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [03:14:06]line СНО: Общий режим [03:14:06]line Чек 22 15.03.2024 03:14 [03:14:06]line Смена: 320 ФФД: 1.0 [03:14:06]line ЗНМ: 0300000266 [03:14:06]line РНМ: 0000000000091911 [03:14:06]line Версия ККМ: 001 [03:14:06]line Платежная система: Демир КИ Банк [03:14:06]line ФМ: 0000000000871818 [03:14:06]line ФД: 108499 [03:14:06]line ФПД: 97018346183855 [03:14:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T031406&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108499&fm=97018346183855&tin=02508201610067®Number=0000000000091911&sum=40049 [03:14:06]OFD Sender: Processing packet 108499 [packets to send 29, broken 28] [03:14:06]ProducePacketName [03:14:06]name=ofd_packets/00108499 [03:14:06]OFD Sender: To server: pG, [03:14:06]CommunicateWithHost lk.salyk.kg:30040 [03:14:06]ConnectInit lk.salyk.kg [03:14:06]written 0, free lines is 4095 [03:14:06]Connected sock=10 [03:14: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 31 38 0F 01 00 00 7A 0D 07 01 44 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 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 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 FE BC F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 D3 A7 01 00 35 04 06 00 58 3C D8 0F 9C AF 9F 79 D5 0B F8 F8 37 CC [03:14: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 31 38 4F 00 00 00 A8 F1 47 00 36 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 D3 A7 01 00 F4 03 04 00 A0 68 F3 65 B6 04 01 00 00 8F FE 61 52 AC BB 76 DB [03:14:06]CommunicateWithHost err = 0 [03:14:06]CheckOFDResponse [03:14:06]1017 (14) - 77093643461234 [03:14:06]1041 (16) - 0000000000871818 [03:14:06]1040 (4) - 108499 [03:14:06]1012 (4) - 14.03.2024 21:14 [03:14:06]1206 (1) - 0 [03:14:06]OFD Sender: Remove packet 108499 [03:14:06]ProducePacketName [03:14:06]name=ofd_packets/00108499 [03:14:06]NVStorageDeleteData [03:14:07]Write to MH i2c: 01 00 00 C0 14 D4 [03:14:07]Write i2c OK [03:14:07]MH_I2C_Read... [03:14:07]Read from MH i2c: 01 [03:14:07]MH_I2C_Read... [03:14:07]Read from MH i2c: 01 07 00 [03:14:07]MH_I2C_Read... [03:14:07]Read from MH i2c: 01 07 00 C0 14 00 00 00 00 00 F6 0C DD [03:14:07]RasterBufferAndPrint [03:14:07]line [03:14:07]line [03:14:07]line [03:14:07]line [03:14:07]line [03:14:07]written 0, free lines is 3324 [03:14:07]MH_Cut [03:14:07]Write to MH i2c: D1 01 00 C7 14 01 AD [03:14:07]Write i2c OK [03:14:07]MH_I2C_Read... [03:14:07]Read from MH i2c: D1 [03:14:07]MH_I2C_Read... [03:14:07]Read from MH i2c: D1 01 00 [03:14:07]MH_I2C_Read... [03:14:07]Read from MH i2c: D1 01 00 C7 14 00 AC [03:14:07]Write to MH i2c: 01 00 00 C8 14 DC [03:14:07]Write i2c OK [03:14:07]MH_I2C_Read... [03:14:07]OFD Sender: No OFD packet to send [03:14:07]*** Cut start [03:14:07]*** Purtial cut [03:14:07]*** Stage 1: CUTSNS_PIN = 1 [03:14:08]Read from MH i2c: 01 [03:14:08]MH_I2C_Read... [03:14:08]*** Stop cut motor [03:14:08]*** Cut end [03:14:08]Read from MH i2c: 01 07 00 [03:14:08]MH_I2C_Read... [03:14:08]Read from MH i2c: 01 07 00 C8 14 00 00 00 00 00 FF 0F F1 [03:14:08]process_action close_receipt done [03:14:08]requested_data is exist [03:14:08]produce_requested_data [03:14:08]requested_item fm.sn is exist - process it [03:14:08]wFMCommunicate request_size=4 [03:14:08]MH_SAM_APDU [03:14:08]CAPDU: 80 11 00 00 [03:14:08]Write to MH i2c: E2 08 00 C9 14 80 11 00 00 00 00 00 00 57 [03:14:08]Write i2c OK [03:14:08]MH_I2C_Read... [03:14:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:14:08]Read from MH i2c: E2 [03:14:08]MH_I2C_Read... [03:14:08]Read from MH i2c: E2 17 00 [03:14:08]MH_I2C_Read... [03:14:08]Read from MH i2c: E2 17 00 C9 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 AB [03:14:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [03:14:08]wFMCommunicate OK [03:14:08]requested_item fd.num is exist - process it [03:14:08]SAM_PROTO_GetFieldsCounters [03:14:08]wFMCommunicate request_size=4 [03:14:08]MH_SAM_APDU [03:14:08]CAPDU: 80 13 00 00 [03:14:08]Write to MH i2c: E2 08 00 CA 14 80 13 00 00 00 00 00 00 5A [03:14:08]Write i2c OK [03:14:08]MH_I2C_Read... [03:14:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:14:08]Read from MH i2c: E2 [03:14:08]MH_I2C_Read... [03:14:08]Read from MH i2c: E2 62 00 [03:14:08]MH_I2C_Read... [03:14:08]Read from MH i2c: E2 62 00 CA 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 D3 A7 01 00 0E 04 04 00 40 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 76 [03:14: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 D3 A7 01 00 0E 04 04 00 40 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 [03:14:08]wFMCommunicate OK [03:14:08]SAM_PROTO_GetFieldsCounters done [03:14:08]requested_item shift.num is exist - process it [03:14:08]requested_item shift.opened is exist - process it [03:14:08]req_shift_opened [03:14:08]FM_GetShiftState [03:14:08]SAM_PROTO_GetShiftState [03:14:08]wFMCommunicate request_size=4 [03:14:08]MH_SAM_APDU [03:14:08]CAPDU: 80 13 01 00 [03:14:08]Write to MH i2c: E2 08 00 CB 14 80 13 01 00 00 00 00 00 5C [03:14:08]Write i2c OK [03:14:08]MH_I2C_Read... [03:14:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:14:08]Read from MH i2c: E2 [03:14:08]MH_I2C_Read... [03:14:08]Read from MH i2c: E2 0E 00 [03:14:08]MH_I2C_Read... [03:14:08]Read from MH i2c: E2 0E 00 CB 14 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 90 [03:14:08]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [03:14:08]wFMCommunicate OK [03:14:08]SAM_PROTO_GetShiftState done [03:14:08]FM_GetShiftState done [03:14:08]req_shift_opened done [03:14:08]requested_item shift.open_date is exist - process it [03:14:08]req_shift_open_date [03:14:08]req_shift_open_date done [03:14:08]produce_requested_data done [03:14:08]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108499,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [03:14:08]process_action_free close_receipt [03:14:08]json_value_free [03:14:08]json_value_free done [03:14:08]process_json_proto returns [03:14:08]Send response to host [03:14:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108499,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [03:14:08]free response buf [03:14:08]execute_script done [03:14:08]execute_script returns [03:14:08]free content buf [03:14:08]Sock 9.Close socket [03:14:08]Sock 9.Thread stoped [03:14:12]OFD Sender: No OFD packet to send [03:14:17]OFD Sender: No OFD packet to send [03:14:22]OFD Sender: No OFD packet to send [03:14:27]OFD Sender: No OFD packet to send [03:14:32]OFD Sender: No OFD packet to send [03:14:37]OFD Sender: No OFD packet to send [03:14:42]OFD Sender: No OFD packet to send [03:14:47]OFD Sender: No OFD packet to send [03:14:52]OFD Sender: No OFD packet to send [03:14:57]OFD Sender: No OFD packet to send [03:15:02]OFD Sender: No OFD packet to send [03:15:07]OFD Sender: No OFD packet to send [03:15:12]OFD Sender: No OFD packet to send [03:15:17]OFD Sender: No OFD packet to send [03:15:22]OFD Sender: No OFD packet to send [03:15:27]OFD Sender: No OFD packet to send [03:15:32]OFD Sender: No OFD packet to send [03:15:37]OFD Sender: No OFD packet to send [03:15:42]OFD Sender: No OFD packet to send [03:15:47]OFD Sender: No OFD packet to send [03:15:48]accept exits with 8 [03:15:48]New connection [03:15:48]New thread 3067342180 created [03:15:48]Thread 3067198820 joined [03:15:48]Waiting for new connection... [03:15:48] Sock 8.Parse request [03:15:48]Sock 8.Check first char [03:15:48]Sock 8.First char is OK [03:15:48]request: POST /json_proto HTTP/1.0 [03:15:48]Method: POST [03:15:48]URL: /json_proto [03:15:48]Method is POST - this is cgi request [03:15:48]url: /json_proto [03:15:48]query_string will be loaded in cgi processing [03:15:48]execute_cgi json_proto POST (null) [03:15:48]execute_cgi path=json_proto method=POST [03:15:48]POST find Content-Length [03:15:48]Host: 172.17.32.69:8080 [03:15:48]Content-Length: 1213 [03:15:48]Content-Type: application/json [03:15:48] [03:15:48]POST finish read [03:15:48]Found Content-Length = 1213 [03:15:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040648\u000A15.03.2024 03:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 6\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 63.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 4466.70\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53321\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:15:48]execute_script... [03:15:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040648\u000A15.03.2024 03:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 6\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 63.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 4466.70\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53321\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:15:48]POST & json_proto [03:15:48]process_json_proto [03:15:48]json parsed OK: [03:15:48]protocol is kg_v1.0 [03:15:48]action value=print_text [03:15:48]process_action print_text [03:15:48]cmd_print_text [03:15:48]ExternCall_PrintAddStr [03:15:48]wPrintStart [03:15:48]Write to MH i2c: 01 00 00 CC 14 E0 [03:15:48]Write i2c OK [03:15:48]MH_I2C_Read... [03:15:48]Read from MH i2c: 01 [03:15:48]MH_I2C_Read... [03:15:48]Read from MH i2c: 01 07 00 [03:15:48]MH_I2C_Read... [03:15:48]Read from MH i2c: 01 07 00 CC 14 00 00 00 00 00 FF 0F F5 [03:15:48]RasterBufferAndPrint [03:15:48]line *****ТОВАРНЫЙ ЧЕК***** [03:15:48]line АЗС 15 [03:15:48]line Партнер нефть [03:15:48]line 02508201610067 [03:15:48]line Кассир : Максатбек у Д. [03:15:48]line Счет N : (1)1040648 [03:15:48]line 15.03.2024 03:08 [03:15:48]line ПРОДАЖА [03:15:48]line ТРК (МРК, ГНК): 6 [03:15:48]line Вид ГСМ : 2710194210 [03:15:48]line ДТ(л)-К-5 [03:15:48]line 63.000 x 70.90 [03:15:48]line ИТОГ: 4466.70 [03:15:48]line Тип оплаты: Талоны: Топливная Карта [03:15:48]line 53321 [03:15:48]line ______________________ [03:15:48]line (подпись) [03:15:48]written 0, free lines is 4095 [03:15:48]Write to MH i2c: 01 00 00 E1 14 F5 [03:15:48]Write i2c OK [03:15:48]MH_I2C_Read... [03:15:48]Read from MH i2c: 01 [03:15:48]MH_I2C_Read... [03:15:48]Read from MH i2c: 01 07 00 [03:15:48]MH_I2C_Read... [03:15:48]Read from MH i2c: 01 07 00 E1 14 00 00 00 00 00 F6 0D FF [03:15:48]RasterBufferAndPrint [03:15:48]line [03:15:48]line [03:15:48]line [03:15:48]line [03:15:48]line [03:15:48]written 0, free lines is 3576 [03:15:48]MH_Cut [03:15:48]Write to MH i2c: D1 01 00 E8 14 01 CE [03:15:48]Write i2c OK [03:15:48]MH_I2C_Read... [03:15:48]Read from MH i2c: D1 [03:15:48]MH_I2C_Read... [03:15:48]Read from MH i2c: D1 01 00 [03:15:48]MH_I2C_Read... [03:15:48]Read from MH i2c: D1 01 00 E8 14 00 CD [03:15:48]Write to MH i2c: 01 00 00 E9 14 FD [03:15:48]Write i2c OK [03:15:48]MH_I2C_Read... [03:15:49]*** Cut start [03:15:49]*** Purtial cut [03:15:49]*** Stage 1: CUTSNS_PIN = 1 [03:15:49]Read from MH i2c: 01 [03:15:49]MH_I2C_Read... [03:15:49]*** Stop cut motor [03:15:49]*** Cut end [03:15:49]Read from MH i2c: 01 07 00 [03:15:49]MH_I2C_Read... [03:15:49]Read from MH i2c: 01 07 00 E9 14 00 00 00 00 00 FF 0F 12 [03:15:49]process_action print_text done [03:15:49]requested_data is exist [03:15:49]produce_requested_data [03:15:49]requested_item fm.sn is exist - process it [03:15:49]wFMCommunicate request_size=4 [03:15:49]MH_SAM_APDU [03:15:49]CAPDU: 80 11 00 00 [03:15:49]Write to MH i2c: E2 08 00 EA 14 80 11 00 00 00 00 00 00 78 [03:15:49]Write i2c OK [03:15:49]MH_I2C_Read... [03:15:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:15:49]Read from MH i2c: E2 [03:15:49]MH_I2C_Read... [03:15:49]Read from MH i2c: E2 17 00 [03:15:49]MH_I2C_Read... [03:15:49]Read from MH i2c: E2 17 00 EA 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 CC [03:15:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [03:15:49]wFMCommunicate OK [03:15:49]requested_item fd.num is exist - process it [03:15:49]SAM_PROTO_GetFieldsCounters [03:15:49]wFMCommunicate request_size=4 [03:15:49]MH_SAM_APDU [03:15:49]CAPDU: 80 13 00 00 [03:15:49]Write to MH i2c: E2 08 00 EB 14 80 13 00 00 00 00 00 00 7B [03:15:49]Write i2c OK [03:15:49]MH_I2C_Read... [03:15:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:15:49]Read from MH i2c: E2 [03:15:49]MH_I2C_Read... [03:15:49]Read from MH i2c: E2 62 00 [03:15:49]MH_I2C_Read... [03:15:49]Read from MH i2c: E2 62 00 EB 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 D3 A7 01 00 0E 04 04 00 40 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 97 [03:15: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 D3 A7 01 00 0E 04 04 00 40 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 [03:15:49]wFMCommunicate OK [03:15:49]SAM_PROTO_GetFieldsCounters done [03:15:49]requested_item shift.num is exist - process it [03:15:49]requested_item shift.opened is exist - process it [03:15:49]req_shift_opened [03:15:49]FM_GetShiftState [03:15:49]SAM_PROTO_GetShiftState [03:15:49]wFMCommunicate request_size=4 [03:15:49]MH_SAM_APDU [03:15:49]CAPDU: 80 13 01 00 [03:15:49]Write to MH i2c: E2 08 00 EC 14 80 13 01 00 00 00 00 00 7D [03:15:49]Write i2c OK [03:15:49]MH_I2C_Read... [03:15:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:15:49]Read from MH i2c: E2 [03:15:49]MH_I2C_Read... [03:15:49]Read from MH i2c: E2 0E 00 [03:15:49]MH_I2C_Read... [03:15:49]Read from MH i2c: E2 0E 00 EC 14 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 B1 [03:15:49]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [03:15:49]wFMCommunicate OK [03:15:49]SAM_PROTO_GetShiftState done [03:15:49]FM_GetShiftState done [03:15:49]req_shift_opened done [03:15:49]requested_item shift.open_date is exist - process it [03:15:49]req_shift_open_date [03:15:49]req_shift_open_date done [03:15:49]produce_requested_data done [03:15:49]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108499,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [03:15:49]process_action_free print_text [03:15:49]json_value_free [03:15:49]json_value_free done [03:15:49]process_json_proto returns [03:15:49]Send response to host [03:15:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108499,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [03:15:49]free response buf [03:15:49]execute_script done [03:15:49]execute_script returns [03:15:49]free content buf [03:15:49]Sock 8.Close socket [03:15:49]Sock 8.Thread stoped [03:15:52]OFD Sender: No OFD packet to send [03:15:57]OFD Sender: No OFD packet to send [03:16:02]OFD Sender: No OFD packet to send [03:16:07]OFD Sender: No OFD packet to send [03:16:12]OFD Sender: No OFD packet to send [03:16:17]OFD Sender: No OFD packet to send [03:16:22]OFD Sender: No OFD packet to send [03:16:27]OFD Sender: No OFD packet to send [03:16:32]OFD Sender: No OFD packet to send [03:16:37]OFD Sender: No OFD packet to send [03:16:42]OFD Sender: No OFD packet to send [03:16:47]OFD Sender: No OFD packet to send [03:16:52]OFD Sender: No OFD packet to send [03:16:57]OFD Sender: No OFD packet to send [03:17:02]OFD Sender: No OFD packet to send [03:17:07]OFD Sender: No OFD packet to send [03:17:12]OFD Sender: No OFD packet to send [03:17:17]OFD Sender: No OFD packet to send [03:17:22]OFD Sender: No OFD packet to send [03:17:27]OFD Sender: No OFD packet to send [03:17:32]OFD Sender: No OFD packet to send [03:17:37]OFD Sender: No OFD packet to send [03:17:42]OFD Sender: No OFD packet to send [03:17:47]OFD Sender: No OFD packet to send [03:17:52]OFD Sender: No OFD packet to send [03:17:57]OFD Sender: No OFD packet to send [03:18:02]OFD Sender: No OFD packet to send [03:18:07]OFD Sender: No OFD packet to send [03:18:12]OFD Sender: No OFD packet to send [03:18:17]OFD Sender: No OFD packet to send [03:18:22]OFD Sender: No OFD packet to send [03:18:27]OFD Sender: No OFD packet to send [03:18:32]OFD Sender: No OFD packet to send [03:18:37]OFD Sender: No OFD packet to send [03:18:42]OFD Sender: No OFD packet to send [03:18:47]OFD Sender: No OFD packet to send [03:18:52]OFD Sender: No OFD packet to send [03:18:57]OFD Sender: No OFD packet to send [03:19:02]OFD Sender: No OFD packet to send [03:19:07]OFD Sender: No OFD packet to send [03:19:12]OFD Sender: No OFD packet to send [03:19:17]OFD Sender: No OFD packet to send [03:19:22]OFD Sender: No OFD packet to send [03:19:27]OFD Sender: No OFD packet to send [03:19:32]OFD Sender: No OFD packet to send [03:19:37]OFD Sender: No OFD packet to send [03:19:42]OFD Sender: No OFD packet to send [03:19:47]OFD Sender: No OFD packet to send [03:19:52]OFD Sender: No OFD packet to send [03:19:57]OFD Sender: No OFD packet to send [03:20:02]OFD Sender: No OFD packet to send [03:20:07]OFD Sender: No OFD packet to send [03:20:12]OFD Sender: No OFD packet to send [03:20:17]OFD Sender: No OFD packet to send [03:20:22]OFD Sender: No OFD packet to send [03:20:27]OFD Sender: No OFD packet to send [03:20:32]OFD Sender: No OFD packet to send [03:20:37]OFD Sender: No OFD packet to send [03:20:42]OFD Sender: No OFD packet to send [03:20:47]OFD Sender: No OFD packet to send [03:20:52]OFD Sender: No OFD packet to send [03:20:57]OFD Sender: No OFD packet to send [03:21:02]OFD Sender: No OFD packet to send [03:21:07]OFD Sender: No OFD packet to send [03:21:12]OFD Sender: No OFD packet to send [03:21:17]OFD Sender: No OFD packet to send [03:21:22]OFD Sender: No OFD packet to send [03:21:27]OFD Sender: No OFD packet to send [03:21:32]OFD Sender: No OFD packet to send [03:21:37]OFD Sender: No OFD packet to send [03:21:42]OFD Sender: No OFD packet to send [03:21:47]OFD Sender: No OFD packet to send [03:21:52]OFD Sender: No OFD packet to send [03:21:57]OFD Sender: No OFD packet to send [03:22:02]OFD Sender: No OFD packet to send [03:22:07]OFD Sender: No OFD packet to send [03:22:12]OFD Sender: No OFD packet to send [03:22:17]OFD Sender: No OFD packet to send [03:22:22]OFD Sender: No OFD packet to send [03:22:27]OFD Sender: No OFD packet to send [03:22:32]OFD Sender: No OFD packet to send [03:22:37]OFD Sender: No OFD packet to send [03:22:42]OFD Sender: No OFD packet to send [03:22:47]OFD Sender: No OFD packet to send [03:22:52]OFD Sender: No OFD packet to send [03:22:57]OFD Sender: No OFD packet to send [03:23:02]OFD Sender: No OFD packet to send [03:23:07]OFD Sender: No OFD packet to send [03:23:12]OFD Sender: No OFD packet to send [03:23:17]OFD Sender: No OFD packet to send [03:23:22]OFD Sender: No OFD packet to send [03:23:27]OFD Sender: No OFD packet to send [03:23:32]OFD Sender: No OFD packet to send [03:23:37]OFD Sender: No OFD packet to send [03:23:42]OFD Sender: No OFD packet to send [03:23:47]OFD Sender: No OFD packet to send [03:23:52]OFD Sender: No OFD packet to send [03:23:57]OFD Sender: No OFD packet to send [03:24:02]OFD Sender: No OFD packet to send [03:24:07]OFD Sender: No OFD packet to send [03:24:12]OFD Sender: No OFD packet to send [03:24:17]OFD Sender: No OFD packet to send [03:24:22]OFD Sender: No OFD packet to send [03:24:27]OFD Sender: No OFD packet to send [03:24:32]OFD Sender: No OFD packet to send [03:24:37]OFD Sender: No OFD packet to send [03:24:43]OFD Sender: No OFD packet to send [03:24:48]OFD Sender: No OFD packet to send [03:24:53]OFD Sender: No OFD packet to send [03:24:58]OFD Sender: No OFD packet to send [03:25:03]OFD Sender: No OFD packet to send [03:25:08]OFD Sender: No OFD packet to send [03:25:13]OFD Sender: No OFD packet to send [03:25:18]OFD Sender: No OFD packet to send [03:25:23]OFD Sender: No OFD packet to send [03:25:28]OFD Sender: No OFD packet to send [03:25:33]OFD Sender: No OFD packet to send [03:25:38]OFD Sender: No OFD packet to send [03:25:43]OFD Sender: No OFD packet to send [03:25:48]OFD Sender: No OFD packet to send [03:25:53]OFD Sender: No OFD packet to send [03:25:58]OFD Sender: No OFD packet to send [03:26:03]OFD Sender: No OFD packet to send [03:26:08]OFD Sender: No OFD packet to send [03:26:13]OFD Sender: No OFD packet to send [03:26:18]OFD Sender: No OFD packet to send [03:26:23]OFD Sender: No OFD packet to send [03:26:28]OFD Sender: No OFD packet to send [03:26:33]OFD Sender: No OFD packet to send [03:26:38]OFD Sender: No OFD packet to send [03:26:38]accept exits with 9 [03:26:38]New connection [03:26:38]New thread 3067198820 created [03:26:38]Thread 3067342180 joined [03:26:38]Waiting for new connection... [03:26:38] Sock 9.Parse request [03:26:38]Sock 9.Check first char [03:26:38]Sock 9.First char is OK [03:26:38]request: POST /json_proto HTTP/1.0 [03:26:38]Method: POST [03:26:38]URL: /json_proto [03:26:38]Method is POST - this is cgi request [03:26:38]url: /json_proto [03:26:38]query_string will be loaded in cgi processing [03:26:38]execute_cgi json_proto POST (null) [03:26:38]execute_cgi path=json_proto method=POST [03:26:38]POST find Content-Length [03:26:38]Host: 172.17.32.69:8080 [03:26:38]Content-Length: 801 [03:26:38]Content-Type: application/json [03:26:38] [03:26:38]POST finish read [03:26:38]Found Content-Length = 801 [03:26:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 6.470, "sum" : 400.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:26:38]execute_script... [03:26:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 6.470, "sum" : 400.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:26:38]POST & json_proto [03:26:38]process_json_proto [03:26:38]json parsed OK: [03:26:38]protocol is kg_v1.0 [03:26:38]action value=close_receipt [03:26:38]process_action close_receipt [03:26:38]cmd_close_receipt [03:26:38]MH_GetDate [03:26:38]Write to MH i2c: F0 00 00 ED 14 F0 [03:26:38]Write i2c OK [03:26:38]MH_I2C_Read... [03:26:38]Read from MH i2c: F0 [03:26:38]MH_I2C_Read... [03:26:38]Read from MH i2c: F0 09 00 [03:26:38]MH_I2C_Read... [03:26:38]Read from MH i2c: F0 09 00 ED 14 00 F0 BF F3 65 D5 0F D3 65 1C [03:26:38]GetLastDocTimeStamp 1710472446 [03:26:38]current date 1710473200 [03:26:38]FM_GetShiftState [03:26:38]SAM_PROTO_GetShiftState [03:26:38]wFMCommunicate request_size=4 [03:26:38]MH_SAM_APDU [03:26:38]CAPDU: 80 13 01 00 [03:26:38]Write to MH i2c: E2 08 00 EE 14 80 13 01 00 00 00 00 00 7F [03:26:38]Write i2c OK [03:26:38]MH_I2C_Read... [03:26:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:26:38]Read from MH i2c: E2 [03:26:38]MH_I2C_Read... [03:26:38]Read from MH i2c: E2 0E 00 [03:26:38]MH_I2C_Read... [03:26:38]Read from MH i2c: E2 0E 00 EE 14 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 B3 [03:26:38]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [03:26:38]wFMCommunicate OK [03:26:38]SAM_PROTO_GetShiftState done [03:26:38]FM_GetShiftState done [03:26:38]opened in 1710461757 [03:26:38]opened+sec_in_day 1710548157 [03:26:38]quantity*price = 40049 [03:26:38]sum+1 = 40050 [03:26:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.49 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 0.00 Безнал.: 400.49 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 23 15.03.2024 03:26 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871818 ФД: 108500 ФПД: 95127853536636 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T032640&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108500&fm=95127853536636&tin=02508201610067®Number=0000000000091911&sum=40049 [03:26:39]StoreToDocumentArchive [03:26:39]shift 320 fd 108500 [03:26:39]save to /storage/0320/doc_00108500 [03:26:39]save last doc name /storage/0320/doc_00108500 to /storage/kkm_last_doc_name [03:26:39]save OK [03:26:39]Clear old archive folders... [03:26:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:26:39]tlvbuf is 000AD740 [03:26:39]SAM_PROTO_ClearQueue [03:26:39]wFMCommunicate request_size=4 [03:26:39]MH_SAM_APDU [03:26:39]CAPDU: 80 09 00 00 [03:26:39]Write to MH i2c: E2 08 00 FB 14 80 09 00 00 00 00 00 00 81 [03:26:39]Write i2c OK [03:26:39]MH_I2C_Read... [03:26:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:26:39]Read from MH i2c: E2 [03:26:39]MH_I2C_Read... [03:26:39]Read from MH i2c: E2 03 00 [03:26:39]MH_I2C_Read... [03:26:39]Read from MH i2c: E2 03 00 FB 14 00 90 00 83 [03:26:39]RAPDU: 90 00 [03:26:39]wFMCommunicate OK [03:26:39]SAM_PROTO_ClearQueue done [03:26:39]KKMCreateOFDPacket [03:26:39]OFDProtocolAddRootSTLVToBuf [03:26:39]FM_MakeSignedData [03:26:39]FM_MakeSignedData [03:26:39]SAM_PROTO_SignData [03:26:39]wFMCommunicate request_size=4 [03:26:39]MH_SAM_APDU [03:26:39]CAPDU: 80 0D 01 02 [03:26:39]Write to MH i2c: E2 08 00 FC 14 80 0D 01 02 00 00 00 00 89 [03:26:39]Write i2c OK [03:26:39]MH_I2C_Read... [03:26:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:26:39]Read from MH i2c: E2 [03:26:39]MH_I2C_Read... [03:26:39]Read from MH i2c: E2 03 00 [03:26:39]MH_I2C_Read... [03:26:39]Read from MH i2c: E2 03 00 FC 14 00 90 00 84 [03:26:39]RAPDU: 90 00 [03:26:39]wFMCommunicate OK [03:26:39]wFMCommunicate request_size=255 [03:26:39]MH_SAM_APDU [03:26:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 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 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 F0 BF F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 D4 A7 01 00 35 04 06 00 56 [03:26:39]Write to MH i2c: E2 02 01 FD 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 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 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 F0 BF F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 D4 A7 01 00 35 04 06 00 56 00 00 9D [03:26:39]Write i2c OK [03:26:39]MH_I2C_Read... [03:26:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:26:40]Read from MH i2c: E2 [03:26:40]MH_I2C_Read... [03:26:40]Read from MH i2c: E2 03 00 [03:26:40]MH_I2C_Read... [03:26:40]Read from MH i2c: E2 03 00 FD 14 00 90 00 85 [03:26:40]RAPDU: 90 00 [03:26:40]wFMCommunicate OK [03:26:40]wFMCommunicate request_size=10 [03:26:40]MH_SAM_APDU [03:26:40]CAPDU: 80 0D 02 02 05 84 AD EB 15 7C [03:26:40]Write to MH i2c: E2 0D 00 FE 14 80 0D 02 02 05 00 84 AD EB 15 7C 00 00 43 [03:26:40]Write i2c OK [03:26:40]MH_I2C_Read... [03:26:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:26:40]Read from MH i2c: E2 [03:26:40]MH_I2C_Read... [03:26:40]Read from MH i2c: E2 03 00 [03:26:40]MH_I2C_Read... [03:26:40]Read from MH i2c: E2 03 00 FE 14 00 90 00 86 [03:26:40]RAPDU: 90 00 [03:26:40]wFMCommunicate OK [03:26:40]wFMCommunicate request_size=4 [03:26:40]MH_SAM_APDU [03:26:40]CAPDU: 80 0D 03 02 [03:26:40]Write to MH i2c: E2 08 00 FF 14 80 0D 03 02 00 00 00 00 8E [03:26:40]Write i2c OK [03:26:40]MH_I2C_Read... [03:26:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:26:40]Read from MH i2c: E2 [03:26:40]MH_I2C_Read... [03:26:40]Read from MH i2c: E2 0B 00 [03:26:40]MH_I2C_Read... [03:26:40]Read from MH i2c: E2 0B 00 FF 14 00 C0 6B 01 F0 C4 96 8F 3F 90 00 D3 [03:26:40]RAPDU: C0 6B 01 F0 C4 96 8F 3F 90 00 [03:26:40]wFMCommunicate OK [03:26:40]SAM_PROTO_SignData done [03:26:40]FM_MakeSignedData done [03:26:40]CreateOFDProtocolMessage [03:26:40]wFMCommunicate request_size=4 [03:26:40]MH_SAM_APDU [03:26:40]CAPDU: 80 11 00 00 [03:26:40]Write to MH i2c: E2 08 00 00 15 80 11 00 00 00 00 00 00 8F [03:26:40]Write i2c OK [03:26:40]MH_I2C_Read... [03:26:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:26:40]Read from MH i2c: E2 [03:26:40]MH_I2C_Read... [03:26:40]Read from MH i2c: E2 17 00 [03:26:40]MH_I2C_Read... [03:26:40]Read from MH i2c: E2 17 00 00 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 E3 [03:26:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [03:26:40]wFMCommunicate OK [03:26:40]CreateOFDProtocolMessage done [03:26:40]OFDSenderStorePacket 108500 [03:26:40]StoreOFDPacket docnum=108500 [03:26:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 E8 F3 07 01 B2 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 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 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 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 F0 BF F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 D4 A7 01 00 35 04 06 00 56 84 AD EB 15 7C C0 6B 01 F0 C4 96 8F 3F [03:26:40]CheckFolder [03:26:40]dirname=/storage/ofd_packets [03:26:40]CheckFolder done [03:26:40]ProducePacketName [03:26:40]name=ofd_packets/00108500 [03:26:40]NVStorageSaveData ofd_packets/00108500 [03:26:40]File name is /storage/ofd_packets/00108500 [03:26:40]Write 301 bytes [03:26:40]NVStorageSaveData done [03:26:40]OFDSenderStorePacket done [03:26:40]KKMCreateOFDPacket done [03:26:40]NVStorageSaveData kkm_last_timestamp [03:26:40]File name is /storage/kkm_last_timestamp [03:26:40]Write 4 bytes [03:26:40]NVStorageSaveData done [03:26:40]ExternCall_PrintAddStr [03:26:40]wPrintStart [03:26:40]Write to MH i2c: 01 00 00 01 15 16 [03:26:40]Write i2c OK [03:26:40]MH_I2C_Read... [03:26:40]Read from MH i2c: 01 [03:26:40]MH_I2C_Read... [03:26:40]Read from MH i2c: 01 07 00 [03:26:40]MH_I2C_Read... [03:26:40]Read from MH i2c: 01 07 00 01 15 00 00 00 00 00 FF 0F 2B [03:26:40]RasterBufferAndPrint [03:26:40]line Счет N : (1)1040650 [03:26:40]line ИНН: 02508201610067 [03:26:40]line Контрольно-Кассовый Чек [03:26:40]line ПРОДАЖА [03:26:40]line ТРК (МРК, ГНК) : 43 [03:26:40]line Товар: 2710124130 [03:26:40]line Аи-92-К-5 [03:26:40]line 6.470 * 61.90 [03:26:40]line = 400.49 [03:26:40]line НДС 12% НСП 1% [03:26:40]line > о реализуемом товаре [03:26:40]line ИТОГО: 400.49 [03:26:40]line НСП 1% : 3.54 [03:26:40]line НДС 12% : 42.53 [03:26:40]line Наличными: 0.00 [03:26:40]line Безнал.: 400.49 [03:26:40]line Место: АЗС № 15 "Партнер Нефть" [03:26:40]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [03:26:40]line СНО: Общий режим [03:26:40]line Чек 23 15.03.2024 03:26 [03:26:40]line Смена: 320 ФФД: 1.0 [03:26:40]line ЗНМ: 0300000266 [03:26:40]line РНМ: 0000000000091911 [03:26:40]line Версия ККМ: 001 [03:26:40]line Платежная система: O! деньги [03:26:40]line ФМ: 0000000000871818 [03:26:40]line ФД: 108500 [03:26:40]line ФПД: 95127853536636 [03:26:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T032640&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108500&fm=95127853536636&tin=02508201610067®Number=0000000000091911&sum=40049 [03:26:40]OFD Sender: Processing packet 108500 [packets to send 29, broken 28] [03:26:40]ProducePacketName [03:26:40]name=ofd_packets/00108500 [03:26:40]OFD Sender: To server: pG, [03:26:40]CommunicateWithHost lk.salyk.kg:30040 [03:26:40]ConnectInit lk.salyk.kg [03:26:40]written 0, free lines is 4095 [03:26:40]Connected sock=10 [03:26:40]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 31 38 0F 01 00 00 E8 F3 07 01 B2 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 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 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 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 F0 BF F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 D4 A7 01 00 35 04 06 00 56 84 AD EB 15 7C C0 6B 01 F0 C4 96 8F 3F [03:26:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 4F 00 00 00 D1 17 47 00 74 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 31 38 10 04 04 00 D4 A7 01 00 F4 03 04 00 92 6B F3 65 B6 04 01 00 00 68 0D 57 16 B8 5A AB 07 [03:26:40]CommunicateWithHost err = 0 [03:26:40]CheckOFDResponse [03:26:40]1017 (14) - 77093643461234 [03:26:40]1041 (16) - 0000000000871818 [03:26:40]1040 (4) - 108500 [03:26:40]1012 (4) - 14.03.2024 21:26 [03:26:40]1206 (1) - 0 [03:26:40]OFD Sender: Remove packet 108500 [03:26:40]ProducePacketName [03:26:40]name=ofd_packets/00108500 [03:26:40]NVStorageDeleteData [03:26:41]Write to MH i2c: 01 00 00 2B 15 40 [03:26:41]Write i2c OK [03:26:41]MH_I2C_Read... [03:26:41]Read from MH i2c: 01 [03:26:41]MH_I2C_Read... [03:26:41]Read from MH i2c: 01 07 00 [03:26:41]MH_I2C_Read... [03:26:41]Read from MH i2c: 01 07 00 2B 15 00 00 00 00 00 E9 0C 3C [03:26:41]RasterBufferAndPrint [03:26:41]line [03:26:41]line [03:26:41]line [03:26:41]line [03:26:41]line [03:26:41]written 0, free lines is 3314 [03:26:41]MH_Cut [03:26:41]Write to MH i2c: D1 01 00 32 15 01 19 [03:26:41]Write i2c OK [03:26:41]MH_I2C_Read... [03:26:41]Read from MH i2c: D1 [03:26:41]MH_I2C_Read... [03:26:41]Read from MH i2c: D1 01 00 [03:26:41]MH_I2C_Read... [03:26:41]Read from MH i2c: D1 01 00 32 15 00 18 [03:26:41]Write to MH i2c: 01 00 00 33 15 48 [03:26:41]Write i2c OK [03:26:41]MH_I2C_Read... [03:26:41]OFD Sender: No OFD packet to send [03:26:41]*** Cut start [03:26:41]*** Purtial cut [03:26:41]*** Stage 1: CUTSNS_PIN = 1 [03:26:42]Read from MH i2c: 01 [03:26:42]MH_I2C_Read... [03:26:42]*** Stop cut motor [03:26:42]*** Cut end [03:26:42]Read from MH i2c: 01 07 00 [03:26:42]MH_I2C_Read... [03:26:42]Read from MH i2c: 01 07 00 33 15 00 00 00 00 00 FF 0F 5D [03:26:42]process_action close_receipt done [03:26:42]requested_data is exist [03:26:42]produce_requested_data [03:26:42]requested_item fm.sn is exist - process it [03:26:42]wFMCommunicate request_size=4 [03:26:42]MH_SAM_APDU [03:26:42]CAPDU: 80 11 00 00 [03:26:42]Write to MH i2c: E2 08 00 34 15 80 11 00 00 00 00 00 00 C3 [03:26:42]Write i2c OK [03:26:42]MH_I2C_Read... [03:26:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:26:42]Read from MH i2c: E2 [03:26:42]MH_I2C_Read... [03:26:42]Read from MH i2c: E2 17 00 [03:26:42]MH_I2C_Read... [03:26:42]Read from MH i2c: E2 17 00 34 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 17 [03:26:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [03:26:42]wFMCommunicate OK [03:26:42]requested_item fd.num is exist - process it [03:26:42]SAM_PROTO_GetFieldsCounters [03:26:42]wFMCommunicate request_size=4 [03:26:42]MH_SAM_APDU [03:26:42]CAPDU: 80 13 00 00 [03:26:42]Write to MH i2c: E2 08 00 35 15 80 13 00 00 00 00 00 00 C6 [03:26:42]Write i2c OK [03:26:42]MH_I2C_Read... [03:26:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:26:42]Read from MH i2c: E2 [03:26:42]MH_I2C_Read... [03:26:42]Read from MH i2c: E2 62 00 [03:26:42]MH_I2C_Read... [03:26:42]Read from MH i2c: E2 62 00 35 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 D4 A7 01 00 0E 04 04 00 40 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 E6 [03:26:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 D4 A7 01 00 0E 04 04 00 40 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 [03:26:42]wFMCommunicate OK [03:26:42]SAM_PROTO_GetFieldsCounters done [03:26:42]requested_item shift.num is exist - process it [03:26:42]requested_item shift.opened is exist - process it [03:26:42]req_shift_opened [03:26:42]FM_GetShiftState [03:26:42]SAM_PROTO_GetShiftState [03:26:42]wFMCommunicate request_size=4 [03:26:42]MH_SAM_APDU [03:26:42]CAPDU: 80 13 01 00 [03:26:42]Write to MH i2c: E2 08 00 36 15 80 13 01 00 00 00 00 00 C8 [03:26:42]Write i2c OK [03:26:42]MH_I2C_Read... [03:26:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:26:42]Read from MH i2c: E2 [03:26:42]MH_I2C_Read... [03:26:42]Read from MH i2c: E2 0E 00 [03:26:42]MH_I2C_Read... [03:26:42]Read from MH i2c: E2 0E 00 36 15 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 FC [03:26:42]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [03:26:42]wFMCommunicate OK [03:26:42]SAM_PROTO_GetShiftState done [03:26:42]FM_GetShiftState done [03:26:42]req_shift_opened done [03:26:42]requested_item shift.open_date is exist - process it [03:26:42]req_shift_open_date [03:26:42]req_shift_open_date done [03:26:42]produce_requested_data done [03:26:42]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108500,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [03:26:42]process_action_free close_receipt [03:26:42]json_value_free [03:26:42]json_value_free done [03:26:42]process_json_proto returns [03:26:42]Send response to host [03:26:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108500,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [03:26:42]free response buf [03:26:42]execute_script done [03:26:42]execute_script returns [03:26:42]free content buf [03:26:42]Sock 9.Close socket [03:26:42]Sock 9.Thread stoped [03:26:46]OFD Sender: No OFD packet to send [03:26:51]OFD Sender: No OFD packet to send [03:26:56]OFD Sender: No OFD packet to send [03:27:01]OFD Sender: No OFD packet to send [03:27:06]OFD Sender: No OFD packet to send [03:27:11]OFD Sender: No OFD packet to send [03:27:16]OFD Sender: No OFD packet to send [03:27:21]OFD Sender: No OFD packet to send [03:27:26]OFD Sender: No OFD packet to send [03:27:31]OFD Sender: No OFD packet to send [03:27:36]OFD Sender: No OFD packet to send [03:27:41]OFD Sender: No OFD packet to send [03:27:46]OFD Sender: No OFD packet to send [03:27:51]OFD Sender: No OFD packet to send [03:27:56]OFD Sender: No OFD packet to send [03:28:01]OFD Sender: No OFD packet to send [03:28:06]OFD Sender: No OFD packet to send [03:28:11]OFD Sender: No OFD packet to send [03:28:16]OFD Sender: No OFD packet to send [03:28:21]OFD Sender: No OFD packet to send [03:28:26]OFD Sender: No OFD packet to send [03:28:31]OFD Sender: No OFD packet to send [03:28:36]OFD Sender: No OFD packet to send [03:28:41]OFD Sender: No OFD packet to send [03:28:46]OFD Sender: No OFD packet to send [03:28:51]OFD Sender: No OFD packet to send [03:28:56]OFD Sender: No OFD packet to send [03:29:01]OFD Sender: No OFD packet to send [03:29:06]OFD Sender: No OFD packet to send [03:29:11]OFD Sender: No OFD packet to send [03:29:16]OFD Sender: No OFD packet to send [03:29:21]OFD Sender: No OFD packet to send [03:29:26]OFD Sender: No OFD packet to send [03:29:31]OFD Sender: No OFD packet to send [03:29:36]OFD Sender: No OFD packet to send [03:29:41]OFD Sender: No OFD packet to send [03:29:46]OFD Sender: No OFD packet to send [03:29:51]OFD Sender: No OFD packet to send [03:29:56]OFD Sender: No OFD packet to send [03:30:01]OFD Sender: No OFD packet to send [03:30:06]OFD Sender: No OFD packet to send [03:30:11]OFD Sender: No OFD packet to send [03:30:16]OFD Sender: No OFD packet to send [03:30:21]OFD Sender: No OFD packet to send [03:30:26]OFD Sender: No OFD packet to send [03:30:31]OFD Sender: No OFD packet to send [03:30:36]OFD Sender: No OFD packet to send [03:30:41]OFD Sender: No OFD packet to send [03:30:46]OFD Sender: No OFD packet to send [03:30:51]OFD Sender: No OFD packet to send [03:30:56]OFD Sender: No OFD packet to send [03:31:01]OFD Sender: No OFD packet to send [03:31:06]OFD Sender: No OFD packet to send [03:31:11]OFD Sender: No OFD packet to send [03:31:16]OFD Sender: No OFD packet to send [03:31:21]OFD Sender: No OFD packet to send [03:31:26]OFD Sender: No OFD packet to send [03:31:31]OFD Sender: No OFD packet to send [03:31:36]OFD Sender: No OFD packet to send [03:31:41]OFD Sender: No OFD packet to send [03:31:46]OFD Sender: No OFD packet to send [03:31:51]OFD Sender: No OFD packet to send [03:31:56]OFD Sender: No OFD packet to send [03:32:01]OFD Sender: No OFD packet to send [03:32:06]OFD Sender: No OFD packet to send [03:32:11]OFD Sender: No OFD packet to send [03:32:16]OFD Sender: No OFD packet to send [03:32:21]OFD Sender: No OFD packet to send [03:32:26]OFD Sender: No OFD packet to send [03:32:31]OFD Sender: No OFD packet to send [03:32:36]OFD Sender: No OFD packet to send [03:32:41]OFD Sender: No OFD packet to send [03:32:46]OFD Sender: No OFD packet to send [03:32:51]OFD Sender: No OFD packet to send [03:32:56]OFD Sender: No OFD packet to send [03:33:01]OFD Sender: No OFD packet to send [03:33:06]OFD Sender: No OFD packet to send [03:33:11]OFD Sender: No OFD packet to send [03:33:16]OFD Sender: No OFD packet to send [03:33:21]OFD Sender: No OFD packet to send [03:33:26]OFD Sender: No OFD packet to send [03:33:31]OFD Sender: No OFD packet to send [03:33:36]OFD Sender: No OFD packet to send [03:33:41]OFD Sender: No OFD packet to send [03:33:46]OFD Sender: No OFD packet to send [03:33:51]OFD Sender: No OFD packet to send [03:33:56]OFD Sender: No OFD packet to send [03:34:01]OFD Sender: No OFD packet to send [03:34:06]OFD Sender: No OFD packet to send [03:34:11]OFD Sender: No OFD packet to send [03:34:16]OFD Sender: No OFD packet to send [03:34:21]OFD Sender: No OFD packet to send [03:34:26]OFD Sender: No OFD packet to send [03:34:31]OFD Sender: No OFD packet to send [03:34:36]OFD Sender: No OFD packet to send [03:34:41]OFD Sender: No OFD packet to send [03:34:46]OFD Sender: No OFD packet to send [03:34:51]OFD Sender: No OFD packet to send [03:34:56]OFD Sender: No OFD packet to send [03:35:01]OFD Sender: No OFD packet to send [03:35:06]OFD Sender: No OFD packet to send [03:35:11]OFD Sender: No OFD packet to send [03:35:16]OFD Sender: No OFD packet to send [03:35:21]OFD Sender: No OFD packet to send [03:35:26]OFD Sender: No OFD packet to send [03:35:31]OFD Sender: No OFD packet to send [03:35:36]OFD Sender: No OFD packet to send [03:35:41]OFD Sender: No OFD packet to send [03:35:46]OFD Sender: No OFD packet to send [03:35:51]OFD Sender: No OFD packet to send [03:35:56]OFD Sender: No OFD packet to send [03:36:01]OFD Sender: No OFD packet to send [03:36:06]OFD Sender: No OFD packet to send [03:36:12]OFD Sender: No OFD packet to send [03:36:17]OFD Sender: No OFD packet to send [03:36:22]OFD Sender: No OFD packet to send [03:36:27]OFD Sender: No OFD packet to send [03:36:32]OFD Sender: No OFD packet to send [03:36:37]OFD Sender: No OFD packet to send [03:36:42]OFD Sender: No OFD packet to send [03:36:47]OFD Sender: No OFD packet to send [03:36:52]OFD Sender: No OFD packet to send [03:36:57]OFD Sender: No OFD packet to send [03:37:02]OFD Sender: No OFD packet to send [03:37:07]OFD Sender: No OFD packet to send [03:37:12]OFD Sender: No OFD packet to send [03:37:17]OFD Sender: No OFD packet to send [03:37:22]OFD Sender: No OFD packet to send [03:37:27]OFD Sender: No OFD packet to send [03:37:32]OFD Sender: No OFD packet to send [03:37:37]OFD Sender: No OFD packet to send [03:37:42]OFD Sender: No OFD packet to send [03:37:47]OFD Sender: No OFD packet to send [03:37:52]OFD Sender: No OFD packet to send [03:37:57]OFD Sender: No OFD packet to send [03:38:02]OFD Sender: No OFD packet to send [03:38:07]OFD Sender: No OFD packet to send [03:38:12]OFD Sender: No OFD packet to send [03:38:17]OFD Sender: No OFD packet to send [03:38:22]OFD Sender: No OFD packet to send [03:38:27]OFD Sender: No OFD packet to send [03:38:32]OFD Sender: No OFD packet to send [03:38:37]OFD Sender: No OFD packet to send [03:38:42]OFD Sender: No OFD packet to send [03:38:47]OFD Sender: No OFD packet to send [03:38:52]OFD Sender: No OFD packet to send [03:38:57]OFD Sender: No OFD packet to send [03:39:02]OFD Sender: No OFD packet to send [03:39:07]OFD Sender: No OFD packet to send [03:39:12]OFD Sender: No OFD packet to send [03:39:17]OFD Sender: No OFD packet to send [03:39:22]OFD Sender: No OFD packet to send [03:39:26]accept exits with 8 [03:39:26]New connection [03:39:26]New thread 3067342180 created [03:39:26]Thread 3067198820 joined [03:39:26]Waiting for new connection... [03:39:26] Sock 8.Parse request [03:39:26]Sock 8.Check first char [03:39:26]Sock 8.First char is OK [03:39:26]request: POST /json_proto HTTP/1.0 [03:39:26]Method: POST [03:39:26]URL: /json_proto [03:39:26]Method is POST - this is cgi request [03:39:26]url: /json_proto [03:39:26]query_string will be loaded in cgi processing [03:39:26]execute_cgi json_proto POST (null) [03:39:26]execute_cgi path=json_proto method=POST [03:39:26]POST find Content-Length [03:39:26]Host: 172.17.32.69:8080 [03:39:26]Content-Length: 830 [03:39:26]Content-Type: application/json [03:39:26] [03:39:26]POST finish read [03:39:26]Found Content-Length = 830 [03:39:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 9.540, "sum" : 590.53, "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: \u0414\u0435\u043C\u0438\u0440 \u041A\u0418 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 590.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:39:26]execute_script... [03:39:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 9.540, "sum" : 590.53, "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: \u0414\u0435\u043C\u0438\u0440 \u041A\u0418 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 590.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:39:26]POST & json_proto [03:39:26]process_json_proto [03:39:26]json parsed OK: [03:39:26]protocol is kg_v1.0 [03:39:26]action value=close_receipt [03:39:26]process_action close_receipt [03:39:26]cmd_close_receipt [03:39:26]MH_GetDate [03:39:26]Write to MH i2c: F0 00 00 37 15 3B [03:39:26]Write i2c OK [03:39:26]MH_I2C_Read... [03:39:26]Read from MH i2c: F0 [03:39:26]MH_I2C_Read... [03:39:26]Read from MH i2c: F0 09 00 [03:39:26]MH_I2C_Read... [03:39:26]Read from MH i2c: F0 09 00 37 15 00 F0 C2 F3 65 D5 0F D3 65 6A [03:39:26]GetLastDocTimeStamp 1710473200 [03:39:26]current date 1710473968 [03:39:26]FM_GetShiftState [03:39:26]SAM_PROTO_GetShiftState [03:39:26]wFMCommunicate request_size=4 [03:39:26]MH_SAM_APDU [03:39:26]CAPDU: 80 13 01 00 [03:39:26]Write to MH i2c: E2 08 00 38 15 80 13 01 00 00 00 00 00 CA [03:39:26]Write i2c OK [03:39:26]MH_I2C_Read... [03:39:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:39:26]Read from MH i2c: E2 [03:39:26]MH_I2C_Read... [03:39:26]Read from MH i2c: E2 0E 00 [03:39:26]MH_I2C_Read... [03:39:26]Read from MH i2c: E2 0E 00 38 15 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 FE [03:39:26]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [03:39:26]wFMCommunicate OK [03:39:26]SAM_PROTO_GetShiftState done [03:39:26]FM_GetShiftState done [03:39:26]opened in 1710461757 [03:39:26]opened+sec_in_day 1710548157 [03:39:26]quantity*price = 59052 [03:39:26]sum+1 = 59054 [03:39:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 590.53 НСП 1% : 5.23 НДС 12% : 62.71 Наличными: 0.00 Безнал.: 590.53 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 24 15.03.2024 03:39 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 Платежная система: Демир КИ Банк ФМ: 0000000000871818 ФД: 108501 ФПД: 138002179864047 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T033928&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108501&fm=138002179864047&tin=02508201610067®Number=0000000000091911&sum=59053 [03:39:27]StoreToDocumentArchive [03:39:27]shift 320 fd 108501 [03:39:27]save to /storage/0320/doc_00108501 [03:39:27]save last doc name /storage/0320/doc_00108501 to /storage/kkm_last_doc_name [03:39:27]save OK [03:39:27]Clear old archive folders... [03:39:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:39:27]tlvbuf is 0008FBC0 [03:39:27]SAM_PROTO_ClearQueue [03:39:27]wFMCommunicate request_size=4 [03:39:27]MH_SAM_APDU [03:39:27]CAPDU: 80 09 00 00 [03:39:27]Write to MH i2c: E2 08 00 45 15 80 09 00 00 00 00 00 00 CC [03:39:27]Write i2c OK [03:39:27]MH_I2C_Read... [03:39:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:39:27]Read from MH i2c: E2 [03:39:27]MH_I2C_Read... [03:39:27]Read from MH i2c: E2 03 00 [03:39:27]MH_I2C_Read... [03:39:27]Read from MH i2c: E2 03 00 45 15 00 90 00 CE [03:39:27]RAPDU: 90 00 [03:39:27]wFMCommunicate OK [03:39:27]SAM_PROTO_ClearQueue done [03:39:27]KKMCreateOFDPacket [03:39:27]OFDProtocolAddRootSTLVToBuf [03:39:27]FM_MakeSignedData [03:39:27]FM_MakeSignedData [03:39:27]SAM_PROTO_SignData [03:39:27]wFMCommunicate request_size=4 [03:39:27]MH_SAM_APDU [03:39:27]CAPDU: 80 0D 01 02 [03:39:27]Write to MH i2c: E2 08 00 46 15 80 0D 01 02 00 00 00 00 D4 [03:39:27]Write i2c OK [03:39:27]MH_I2C_Read... [03:39:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:39:27]Read from MH i2c: E2 [03:39:27]MH_I2C_Read... [03:39:27]Read from MH i2c: E2 03 00 [03:39:27]MH_I2C_Read... [03:39:27]Read from MH i2c: E2 03 00 46 15 00 90 00 CF [03:39:27]RAPDU: 90 00 [03:39:27]wFMCommunicate OK [03:39:27]wFMCommunicate request_size=255 [03:39:27]MH_SAM_APDU [03: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 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 AD E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD E6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 F0 C2 F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 D5 A7 01 00 35 04 06 00 7D [03:39:27]Write to MH i2c: E2 02 01 47 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 AD E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD E6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 F0 C2 F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 D5 A7 01 00 35 04 06 00 7D 00 00 44 [03:39:27]Write i2c OK [03:39:27]MH_I2C_Read... [03:39:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:39:27]Read from MH i2c: E2 [03:39:27]MH_I2C_Read... [03:39:27]Read from MH i2c: E2 03 00 [03:39:27]MH_I2C_Read... [03:39:27]Read from MH i2c: E2 03 00 47 15 00 90 00 D0 [03:39:27]RAPDU: 90 00 [03:39:27]wFMCommunicate OK [03:39:27]wFMCommunicate request_size=10 [03:39:27]MH_SAM_APDU [03:39:27]CAPDU: 80 0D 02 02 05 83 22 E8 B5 EF [03:39:27]Write to MH i2c: E2 0D 00 48 15 80 0D 02 02 05 00 83 22 E8 B5 EF 00 00 12 [03:39:27]Write i2c OK [03:39:27]MH_I2C_Read... [03:39:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:39:27]Read from MH i2c: E2 [03:39:27]MH_I2C_Read... [03:39:27]Read from MH i2c: E2 03 00 [03:39:27]MH_I2C_Read... [03:39:27]Read from MH i2c: E2 03 00 48 15 00 90 00 D1 [03:39:27]RAPDU: 90 00 [03:39:27]wFMCommunicate OK [03:39:27]wFMCommunicate request_size=4 [03:39:27]MH_SAM_APDU [03:39:27]CAPDU: 80 0D 03 02 [03:39:27]Write to MH i2c: E2 08 00 49 15 80 0D 03 02 00 00 00 00 D9 [03:39:27]Write i2c OK [03:39:27]MH_I2C_Read... [03:39:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:39:28]Read from MH i2c: E2 [03:39:28]MH_I2C_Read... [03:39:28]Read from MH i2c: E2 0B 00 [03:39:28]MH_I2C_Read... [03:39:28]Read from MH i2c: E2 0B 00 49 15 00 AA C3 5F A3 A6 73 1C EF 90 00 6D [03:39:28]RAPDU: AA C3 5F A3 A6 73 1C EF 90 00 [03:39:28]wFMCommunicate OK [03:39:28]SAM_PROTO_SignData done [03:39:28]FM_MakeSignedData done [03:39:28]CreateOFDProtocolMessage [03:39:28]wFMCommunicate request_size=4 [03:39:28]MH_SAM_APDU [03:39:28]CAPDU: 80 11 00 00 [03:39:28]Write to MH i2c: E2 08 00 4A 15 80 11 00 00 00 00 00 00 D9 [03:39:28]Write i2c OK [03:39:28]MH_I2C_Read... [03:39:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:39:28]Read from MH i2c: E2 [03:39:28]MH_I2C_Read... [03:39:28]Read from MH i2c: E2 17 00 [03:39:28]MH_I2C_Read... [03:39:28]Read from MH i2c: E2 17 00 4A 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 2D [03:39:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [03:39:28]wFMCommunicate OK [03:39:28]CreateOFDProtocolMessage done [03:39:28]OFDSenderStorePacket 108501 [03:39:28]StoreOFDPacket docnum=108501 [03:39:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 D2 03 07 01 B2 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 AD E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD E6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 F0 C2 F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 D5 A7 01 00 35 04 06 00 7D 83 22 E8 B5 EF AA C3 5F A3 A6 73 1C EF [03:39:28]CheckFolder [03:39:28]dirname=/storage/ofd_packets [03:39:28]CheckFolder done [03:39:28]ProducePacketName [03:39:28]name=ofd_packets/00108501 [03:39:28]NVStorageSaveData ofd_packets/00108501 [03:39:28]File name is /storage/ofd_packets/00108501 [03:39:28]Write 301 bytes [03:39:28]NVStorageSaveData done [03:39:28]OFDSenderStorePacket done [03:39:28]KKMCreateOFDPacket done [03:39:28]NVStorageSaveData kkm_last_timestamp [03:39:28]File name is /storage/kkm_last_timestamp [03:39:28]Write 4 bytes [03:39:28]NVStorageSaveData done [03:39:28]ExternCall_PrintAddStr [03:39:28]wPrintStart [03:39:28]Write to MH i2c: 01 00 00 4B 15 60 [03:39:28]Write i2c OK [03:39:28]MH_I2C_Read... [03:39:28]Read from MH i2c: 01 [03:39:28]MH_I2C_Read... [03:39:28]Read from MH i2c: 01 07 00 [03:39:28]MH_I2C_Read... [03:39:28]Read from MH i2c: 01 07 00 4B 15 00 00 00 00 00 FF 0F 75 [03:39:28]RasterBufferAndPrint [03:39:28]line Счет N : (1)1040651 [03:39:28]line ИНН: 02508201610067 [03:39:28]line Контрольно-Кассовый Чек [03:39:28]line ПРОДАЖА [03:39:28]line ТРК (МРК, ГНК) : 43 [03:39:28]line Товар: 2710124130 [03:39:28]line Аи-92-К-5 [03:39:28]line 9.540 * 61.90 [03:39:28]line = 590.53 [03:39:28]line НДС 12% НСП 1% [03:39:28]line > о реализуемом товаре [03:39:28]line ИТОГО: 590.53 [03:39:28]line НСП 1% : 5.23 [03:39:28]line НДС 12% : 62.71 [03:39:28]line Наличными: 0.00 [03:39:28]line Безнал.: 590.53 [03:39:28]line Место: АЗС № 15 "Партнер Нефть" [03:39:28]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [03:39:28]line СНО: Общий режим [03:39:28]line Чек 24 15.03.2024 03:39 [03:39:28]line Смена: 320 ФФД: 1.0 [03:39:28]line ЗНМ: 0300000266 [03:39:28]line РНМ: 0000000000091911 [03:39:28]line Версия ККМ: 001 [03:39:28]line Платежная система: Демир КИ Банк [03:39:28]line ФМ: 0000000000871818 [03:39:28]line ФД: 108501 [03:39:28]line ФПД: 138002179864047 [03:39:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T033928&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108501&fm=138002179864047&tin=02508201610067®Number=0000000000091911&sum=59053 [03:39:28]OFD Sender: Processing packet 108501 [packets to send 29, broken 28] [03:39:28]ProducePacketName [03:39:28]name=ofd_packets/00108501 [03:39:28]OFD Sender: To server: pG, [03:39:28]CommunicateWithHost lk.salyk.kg:30040 [03:39:28]ConnectInit lk.salyk.kg [03:39:28]written 0, free lines is 4095 [03:39:28]Connected sock=10 [03:39: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 31 38 0F 01 00 00 D2 03 07 01 B2 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 AD E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD E6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 F0 C2 F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 D5 A7 01 00 35 04 06 00 7D 83 22 E8 B5 EF AA C3 5F A3 A6 73 1C EF [03: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 31 38 4F 00 00 00 5C 8B 47 00 F6 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 D5 A7 01 00 F4 03 04 00 91 6E F3 65 B6 04 01 00 00 62 CD BF 65 A2 CB F9 5B [03:39:28]CommunicateWithHost err = 0 [03:39:28]CheckOFDResponse [03:39:28]1017 (14) - 77093643461234 [03:39:28]1041 (16) - 0000000000871818 [03:39:28]1040 (4) - 108501 [03:39:28]1012 (4) - 14.03.2024 21:39 [03:39:28]1206 (1) - 0 [03:39:28]OFD Sender: Remove packet 108501 [03:39:28]ProducePacketName [03:39:28]name=ofd_packets/00108501 [03:39:28]NVStorageDeleteData [03:39:28]Write to MH i2c: 01 00 00 75 15 8A [03:39:28]Write i2c OK [03:39:28]MH_I2C_Read... [03:39:28]Read from MH i2c: 01 [03:39:28]MH_I2C_Read... [03:39:28]Read from MH i2c: 01 07 00 [03:39:28]MH_I2C_Read... [03:39:28]Read from MH i2c: 01 07 00 75 15 00 00 00 00 00 F4 0C 91 [03:39:28]RasterBufferAndPrint [03:39:28]line [03:39:28]line [03:39:28]line [03:39:28]line [03:39:28]line [03:39:28]written 0, free lines is 3323 [03:39:28]MH_Cut [03:39:28]Write to MH i2c: D1 01 00 7C 15 01 63 [03:39:28]Write i2c OK [03:39:28]MH_I2C_Read... [03:39:28]Read from MH i2c: D1 [03:39:28]MH_I2C_Read... [03:39:28]Read from MH i2c: D1 01 00 [03:39:28]MH_I2C_Read... [03:39:28]Read from MH i2c: D1 01 00 7C 15 00 62 [03:39:28]Write to MH i2c: 01 00 00 7D 15 92 [03:39:28]Write i2c OK [03:39:28]MH_I2C_Read... [03:39:29]OFD Sender: No OFD packet to send [03:39:29]*** Cut start [03:39:29]*** Purtial cut [03:39:29]*** Stage 1: CUTSNS_PIN = 1 [03:39:29]Read from MH i2c: 01 [03:39:29]MH_I2C_Read... [03:39:29]*** Stop cut motor [03:39:29]*** Cut end [03:39:29]Read from MH i2c: 01 07 00 [03:39:29]MH_I2C_Read... [03:39:30]Read from MH i2c: 01 07 00 7D 15 00 00 00 00 00 FF 0F A7 [03:39:30]process_action close_receipt done [03:39:30]requested_data is exist [03:39:30]produce_requested_data [03:39:30]requested_item fm.sn is exist - process it [03:39:30]wFMCommunicate request_size=4 [03:39:30]MH_SAM_APDU [03:39:30]CAPDU: 80 11 00 00 [03:39:30]Write to MH i2c: E2 08 00 7E 15 80 11 00 00 00 00 00 00 0D [03:39:30]Write i2c OK [03:39:30]MH_I2C_Read... [03:39:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:39:30]Read from MH i2c: E2 [03:39:30]MH_I2C_Read... [03:39:30]Read from MH i2c: E2 17 00 [03:39:30]MH_I2C_Read... [03:39:30]Read from MH i2c: E2 17 00 7E 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 61 [03:39:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [03:39:30]wFMCommunicate OK [03:39:30]requested_item fd.num is exist - process it [03:39:30]SAM_PROTO_GetFieldsCounters [03:39:30]wFMCommunicate request_size=4 [03:39:30]MH_SAM_APDU [03:39:30]CAPDU: 80 13 00 00 [03:39:30]Write to MH i2c: E2 08 00 7F 15 80 13 00 00 00 00 00 00 10 [03:39:30]Write i2c OK [03:39:30]MH_I2C_Read... [03:39:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:39:30]Read from MH i2c: E2 [03:39:30]MH_I2C_Read... [03:39:30]Read from MH i2c: E2 62 00 [03:39:30]MH_I2C_Read... [03:39:30]Read from MH i2c: E2 62 00 7F 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 D5 A7 01 00 0E 04 04 00 40 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 34 [03:39:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 D5 A7 01 00 0E 04 04 00 40 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 [03:39:30]wFMCommunicate OK [03:39:30]SAM_PROTO_GetFieldsCounters done [03:39:30]requested_item shift.num is exist - process it [03:39:30]requested_item shift.opened is exist - process it [03:39:30]req_shift_opened [03:39:30]FM_GetShiftState [03:39:30]SAM_PROTO_GetShiftState [03:39:30]wFMCommunicate request_size=4 [03:39:30]MH_SAM_APDU [03:39:30]CAPDU: 80 13 01 00 [03:39:30]Write to MH i2c: E2 08 00 80 15 80 13 01 00 00 00 00 00 12 [03:39:30]Write i2c OK [03:39:30]MH_I2C_Read... [03:39:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:39:30]Read from MH i2c: E2 [03:39:30]MH_I2C_Read... [03:39:30]Read from MH i2c: E2 0E 00 [03:39:30]MH_I2C_Read... [03:39:30]Read from MH i2c: E2 0E 00 80 15 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 46 [03:39:30]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [03:39:30]wFMCommunicate OK [03:39:30]SAM_PROTO_GetShiftState done [03:39:30]FM_GetShiftState done [03:39:30]req_shift_opened done [03:39:30]requested_item shift.open_date is exist - process it [03:39:30]req_shift_open_date [03:39:30]req_shift_open_date done [03:39:30]produce_requested_data done [03:39:30]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108501,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [03:39:30]process_action_free close_receipt [03:39:30]json_value_free [03:39:30]json_value_free done [03:39:30]process_json_proto returns [03:39:30]Send response to host [03:39:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108501,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [03:39:30]free response buf [03:39:30]execute_script done [03:39:30]execute_script returns [03:39:30]free content buf [03:39:30]Sock 8.Close socket [03:39:30]Sock 8.Thread stoped [03:39:34]OFD Sender: No OFD packet to send [03:39:39]OFD Sender: No OFD packet to send [03:39:44]OFD Sender: No OFD packet to send [03:39:49]OFD Sender: No OFD packet to send [03:39:54]OFD Sender: No OFD packet to send [03:39:59]OFD Sender: No OFD packet to send [03:40:04]OFD Sender: No OFD packet to send [03:40:09]OFD Sender: No OFD packet to send [03:40:14]OFD Sender: No OFD packet to send [03:40:19]OFD Sender: No OFD packet to send [03:40:24]OFD Sender: No OFD packet to send [03:40:29]OFD Sender: No OFD packet to send [03:40:34]OFD Sender: No OFD packet to send [03:40:39]OFD Sender: No OFD packet to send [03:40:44]OFD Sender: No OFD packet to send [03:40:49]OFD Sender: No OFD packet to send [03:40:54]OFD Sender: No OFD packet to send [03:40:59]OFD Sender: No OFD packet to send [03:41:04]OFD Sender: No OFD packet to send [03:41:09]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:05]OFD Sender: No OFD packet to send [03:55:10]OFD Sender: No OFD packet to send [03:55:15]OFD Sender: No OFD packet to send [03:55:20]OFD Sender: No OFD packet to send [03:55:25]OFD Sender: No OFD packet to send [03:55:30]OFD Sender: No OFD packet to send [03:55:35]OFD Sender: No OFD packet to send [03:55:40]OFD Sender: No OFD packet to send [03:55:45]OFD Sender: No OFD packet to send [03:55:50]OFD Sender: No OFD packet to send [03:55:55]OFD Sender: No OFD packet to send [03:56:00]OFD Sender: No OFD packet to send [03:56:05]OFD Sender: No OFD packet to send [03:56:10]OFD Sender: No OFD packet to send [03:56:15]OFD Sender: No OFD packet to send [03:56:20]OFD Sender: No OFD packet to send [03:56:25]OFD Sender: No OFD packet to send [03:56:30]OFD Sender: No OFD packet to send [03:56:35]OFD Sender: No OFD packet to send [03:56:40]OFD Sender: No OFD packet to send [03:56:45]OFD Sender: No OFD packet to send [03:56:50]OFD Sender: No OFD packet to send [03:56:55]OFD Sender: No OFD packet to send [03:57:00]OFD Sender: No OFD packet to send [03:57:05]OFD Sender: No OFD packet to send [03:57:10]OFD Sender: No OFD packet to send [03:57:15]OFD Sender: No OFD packet to send [03:57:20]OFD Sender: No OFD packet to send [03:57:25]OFD Sender: No OFD packet to send [03:57:30]OFD Sender: No OFD packet to send [03:57:35]OFD Sender: No OFD packet to send [03:57:40]OFD Sender: No OFD packet to send [03:57:45]OFD Sender: No OFD packet to send [03:57:50]OFD Sender: No OFD packet to send [03:57:55]OFD Sender: No OFD packet to send [03:58:00]OFD Sender: No OFD packet to send [03:58:05]OFD Sender: No OFD packet to send [03:58:10]OFD Sender: No OFD packet to send [03:58:15]OFD Sender: No OFD packet to send [03:58:20]OFD Sender: No OFD packet to send [03:58:25]OFD Sender: No OFD packet to send [03:58:30]OFD Sender: No OFD packet to send [03:58:35]OFD Sender: No OFD packet to send [03:58:40]OFD Sender: No OFD packet to send [03:58:45]OFD Sender: No OFD packet to send [03:58:50]OFD Sender: No OFD packet to send [03:58:55]OFD Sender: No OFD packet to send [03:59:00]OFD Sender: No OFD packet to send [03:59:05]OFD Sender: No OFD packet to send [03:59:10]OFD Sender: No OFD packet to send [03:59:15]OFD Sender: No OFD packet to send [03:59:20]OFD Sender: No OFD packet to send [03:59:25]OFD Sender: No OFD packet to send [03:59:30]OFD Sender: No OFD packet to send [03:59:35]OFD Sender: No OFD packet to send [03:59:40]OFD Sender: No OFD packet to send [03:59:45]OFD Sender: No OFD packet to send [03:59:50]OFD Sender: No OFD packet to send [03:59:55]OFD Sender: No OFD packet to send [04:00:00]OFD Sender: No OFD packet to send [04:00:05]OFD Sender: No OFD packet to send [04:00:10]OFD Sender: No OFD packet to send [04:00:15]OFD Sender: No OFD packet to send [04:00:20]OFD Sender: No OFD packet to send [04:00:25]OFD Sender: No OFD packet to send [04:00:30]OFD Sender: No OFD packet to send [04:00:35]OFD Sender: No OFD packet to send [04:00:40]OFD Sender: No OFD packet to send [04:00:45]OFD Sender: No OFD packet to send [04:00:50]OFD Sender: No OFD packet to send [04:00:55]OFD Sender: No OFD packet to send [04:01:00]OFD Sender: No OFD packet to send [04:01:05]OFD Sender: No OFD packet to send [04:01:10]OFD Sender: No OFD packet to send [04:01:15]OFD Sender: No OFD packet to send [04:01:20]OFD Sender: No OFD packet to send [04:01:25]OFD Sender: No OFD packet to send [04:01:30]OFD Sender: No OFD packet to send [04:01:35]OFD Sender: No OFD packet to send [04:01:40]OFD Sender: No OFD packet to send [04:01:45]OFD Sender: No OFD packet to send [04:01:50]OFD Sender: No OFD packet to send [04:01:55]OFD Sender: No OFD packet to send [04:02:00]OFD Sender: No OFD packet to send [04:02:05]OFD Sender: No OFD packet to send [04:02:10]OFD Sender: No OFD packet to send [04:02:15]OFD Sender: No OFD packet to send [04:02:20]OFD Sender: No OFD packet to send [04:02:25]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:08:05]OFD Sender: No OFD packet to send [04:08:10]OFD Sender: No OFD packet to send [04:08:15]OFD Sender: No OFD packet to send [04:08:20]OFD Sender: No OFD packet to send [04:08:25]OFD Sender: No OFD packet to send [04:08:30]OFD Sender: No OFD packet to send [04:08:35]OFD Sender: No OFD packet to send [04:08:40]OFD Sender: No OFD packet to send [04:08:45]OFD Sender: No OFD packet to send [04:08:50]OFD Sender: No OFD packet to send [04:08:55]OFD Sender: No OFD packet to send [04:09:00]OFD Sender: No OFD packet to send [04:09:05]OFD Sender: No OFD packet to send [04:09:10]OFD Sender: No OFD packet to send [04:09:15]OFD Sender: No OFD packet to send [04:09:20]OFD Sender: No OFD packet to send [04:09:25]OFD Sender: No OFD packet to send [04:09:30]OFD Sender: No OFD packet to send [04:09:35]OFD Sender: No OFD packet to send [04:09:40]OFD Sender: No OFD packet to send [04:09:45]OFD Sender: No OFD packet to send [04:09:50]OFD Sender: No OFD packet to send [04:09:55]OFD Sender: No OFD packet to send [04:10:00]OFD Sender: No OFD packet to send [04:10:05]OFD Sender: No OFD packet to send [04:10:10]OFD Sender: No OFD packet to send [04:10:15]OFD Sender: No OFD packet to send [04:10:20]OFD Sender: No OFD packet to send [04:10:25]OFD Sender: No OFD packet to send [04:10:30]OFD Sender: No OFD packet to send [04:10:35]OFD Sender: No OFD packet to send [04:10:40]OFD Sender: No OFD packet to send [04:10:45]OFD Sender: No OFD packet to send [04:10:50]OFD Sender: No OFD packet to send [04:10:55]OFD Sender: No OFD packet to send [04:11:00]OFD Sender: No OFD packet to send [04:11:05]OFD Sender: No OFD packet to send [04:11:10]OFD Sender: No OFD packet to send [04:11:15]OFD Sender: No OFD packet to send [04:11:20]OFD Sender: No OFD packet to send [04:11:25]OFD Sender: No OFD packet to send [04:11:30]OFD Sender: No OFD packet to send [04:11:35]OFD Sender: No OFD packet to send [04:11:40]OFD Sender: No OFD packet to send [04:11:45]OFD Sender: No OFD packet to send [04:11:50]OFD Sender: No OFD packet to send [04:11:55]OFD Sender: No OFD packet to send [04:12:00]OFD Sender: No OFD packet to send [04:12:05]OFD Sender: No OFD packet to send [04:12:10]OFD Sender: No OFD packet to send [04:12:15]OFD Sender: No OFD packet to send [04:12:20]OFD Sender: No OFD packet to send [04:12:25]OFD Sender: No OFD packet to send [04:12:30]OFD Sender: No OFD packet to send [04:12:35]OFD Sender: No OFD packet to send [04:12:40]OFD Sender: No OFD packet to send [04:12:45]OFD Sender: No OFD packet to send [04:12:50]OFD Sender: No OFD packet to send [04:12:55]OFD Sender: No OFD packet to send [04:13:00]OFD Sender: No OFD packet to send [04:13:05]OFD Sender: No OFD packet to send [04:13:10]OFD Sender: No OFD packet to send [04:13:15]OFD Sender: No OFD packet to send [04:13:20]OFD Sender: No OFD packet to send [04:13:25]OFD Sender: No OFD packet to send [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:14:00]OFD Sender: No OFD packet to send [04:14:05]OFD Sender: No OFD packet to send [04:14:10]OFD Sender: No OFD packet to send [04:14:15]OFD Sender: No OFD packet to send [04:14:20]OFD Sender: No OFD packet to send [04:14:26]OFD Sender: No OFD packet to send [04:14:31]OFD Sender: No OFD packet to send [04:14:36]OFD Sender: No OFD packet to send [04:14:41]OFD Sender: No OFD packet to send [04:14:46]OFD Sender: No OFD packet to send [04:14:51]OFD Sender: No OFD packet to send [04:14:56]OFD Sender: No OFD packet to send [04:15:01]OFD Sender: No OFD packet to send [04:15:06]OFD Sender: No OFD packet to send [04:15:11]OFD Sender: No OFD packet to send [04:15:16]OFD Sender: No OFD packet to send [04:15:21]OFD Sender: No OFD packet to send [04:15:26]OFD Sender: No OFD packet to send [04:15:31]OFD Sender: No OFD packet to send [04:15:36]OFD Sender: No OFD packet to send [04:15:41]OFD Sender: No OFD packet to send [04:15:46]OFD Sender: No OFD packet to send [04:15:51]OFD Sender: No OFD packet to send [04:15:56]OFD Sender: No OFD packet to send [04:16:01]OFD Sender: No OFD packet to send [04:16:06]OFD Sender: No OFD packet to send [04:16:11]OFD Sender: No OFD packet to send [04:16:16]OFD Sender: No OFD packet to send [04:16:21]OFD Sender: No OFD packet to send [04:16:26]OFD Sender: No OFD packet to send [04:16:31]OFD Sender: No OFD packet to send [04:16:36]OFD Sender: No OFD packet to send [04:16:41]OFD Sender: No OFD packet to send [04:16:46]OFD Sender: No OFD packet to send [04:16:51]OFD Sender: No OFD packet to send [04:16:56]OFD Sender: No OFD packet to send [04:17:01]OFD Sender: No OFD packet to send [04:17:06]OFD Sender: No OFD packet to send [04:17:11]OFD Sender: No OFD packet to send [04:17:16]OFD Sender: No OFD packet to send [04:17:21]OFD Sender: No OFD packet to send [04:17:26]OFD Sender: No OFD packet to send [04:17:31]OFD Sender: No OFD packet to send [04:17:36]OFD Sender: No OFD packet to send [04:17:41]OFD Sender: No OFD packet to send [04:17:46]OFD Sender: No OFD packet to send [04:17:51]OFD Sender: No OFD packet to send [04:17:56]OFD Sender: No OFD packet to send [04:18:01]OFD Sender: No OFD packet to send [04:18:06]OFD Sender: No OFD packet to send [04:18:11]OFD Sender: No OFD packet to send [04:18:16]OFD Sender: No OFD packet to send [04:18:21]OFD Sender: No OFD packet to send [04:18:26]OFD Sender: No OFD packet to send [04:18:31]OFD Sender: No OFD packet to send [04:18:36]OFD Sender: No OFD packet to send [04:18:41]OFD Sender: No OFD packet to send [04:18:46]OFD Sender: No OFD packet to send [04:18:51]OFD Sender: No OFD packet to send [04:18:56]OFD Sender: No OFD packet to send [04:19:01]OFD Sender: No OFD packet to send [04:19:06]OFD Sender: No OFD packet to send [04:19:11]OFD Sender: No OFD packet to send [04:19:16]OFD Sender: No OFD packet to send [04:19:21]OFD Sender: No OFD packet to send [04:19:26]OFD Sender: No OFD packet to send [04:19:31]OFD Sender: No OFD packet to send [04:19:36]OFD Sender: No OFD packet to send [04:19:41]OFD Sender: No OFD packet to send [04:19:46]OFD Sender: No OFD packet to send [04:19:51]OFD Sender: No OFD packet to send [04:19:56]OFD Sender: No OFD packet to send [04:20:01]OFD Sender: No OFD packet to send [04:20:06]OFD Sender: No OFD packet to send [04:20:11]OFD Sender: No OFD packet to send [04:20:16]OFD Sender: No OFD packet to send [04:20:21]OFD Sender: No OFD packet to send [04:20:26]OFD Sender: No OFD packet to send [04:20:31]OFD Sender: No OFD packet to send [04:20:36]OFD Sender: No OFD packet to send [04:20:41]OFD Sender: No OFD packet to send [04:20:46]OFD Sender: No OFD packet to send [04:20:51]OFD Sender: No OFD packet to send [04:20:56]OFD Sender: No OFD packet to send [04:21:01]OFD Sender: No OFD packet to send [04:21:06]OFD Sender: No OFD packet to send [04:21:11]OFD Sender: No OFD packet to send [04:21:16]OFD Sender: No OFD packet to send [04:21:21]OFD Sender: No OFD packet to send [04:21:26]OFD Sender: No OFD packet to send [04:21:31]OFD Sender: No OFD packet to send [04:21:36]OFD Sender: No OFD packet to send [04:21:41]OFD Sender: No OFD packet to send [04:21:46]OFD Sender: No OFD packet to send [04:21:51]OFD Sender: No OFD packet to send [04:21:56]OFD Sender: No OFD packet to send [04:22:01]OFD Sender: No OFD packet to send [04:22:06]OFD Sender: No OFD packet to send [04:22:11]OFD Sender: No OFD packet to send [04:22:16]OFD Sender: No OFD packet to send [04:22:21]OFD Sender: No OFD packet to send [04:22:26]OFD Sender: No OFD packet to send [04:22:31]OFD Sender: No OFD packet to send [04:22:36]OFD Sender: No OFD packet to send [04:22:41]OFD Sender: No OFD packet to send [04:22:46]OFD Sender: No OFD packet to send [04:22:51]OFD Sender: No OFD packet to send [04:22:56]OFD Sender: No OFD packet to send [04:23:01]OFD Sender: No OFD packet to send [04:23:06]OFD Sender: No OFD packet to send [04:23:11]OFD Sender: No OFD packet to send [04:23:16]OFD Sender: No OFD packet to send [04:23:21]OFD Sender: No OFD packet to send [04:23:26]OFD Sender: No OFD packet to send [04:23:31]OFD Sender: No OFD packet to send [04:23:36]OFD Sender: No OFD packet to send [04:23:41]OFD Sender: No OFD packet to send [04:23:46]OFD Sender: No OFD packet to send [04:23:51]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:52]OFD Sender: No OFD packet to send [04:33:57]OFD Sender: No OFD packet to send [04:34:02]OFD Sender: No OFD packet to send [04:34:07]OFD Sender: No OFD packet to send [04:34:12]OFD Sender: No OFD packet to send [04:34:17]OFD Sender: No OFD packet to send [04:34:22]OFD Sender: No OFD packet to send [04:34:27]OFD Sender: No OFD packet to send [04:34:32]OFD Sender: No OFD packet to send [04:34:37]OFD Sender: No OFD packet to send [04:34:42]OFD Sender: No OFD packet to send [04:34:47]OFD Sender: No OFD packet to send [04:34:52]OFD Sender: No OFD packet to send [04:34:57]OFD Sender: No OFD packet to send [04:35:02]OFD Sender: No OFD packet to send [04:35:07]OFD Sender: No OFD packet to send [04:35:12]OFD Sender: No OFD packet to send [04:35:17]OFD Sender: No OFD packet to send [04:35:22]OFD Sender: No OFD packet to send [04:35:27]OFD Sender: No OFD packet to send [04:35:32]OFD Sender: No OFD packet to send [04:35:37]OFD Sender: No OFD packet to send [04:35:42]OFD Sender: No OFD packet to send [04:35:47]OFD Sender: No OFD packet to send [04:35:52]OFD Sender: No OFD packet to send [04:35:57]OFD Sender: No OFD packet to send [04:36:02]OFD Sender: No OFD packet to send [04:36:07]OFD Sender: No OFD packet to send [04:36:12]OFD Sender: No OFD packet to send [04:36:17]OFD Sender: No OFD packet to send [04:36:22]OFD Sender: No OFD packet to send [04:36:27]OFD Sender: No OFD packet to send [04:36:32]OFD Sender: No OFD packet to send [04:36:37]OFD Sender: No OFD packet to send [04:36:42]OFD Sender: No OFD packet to send [04:36:47]OFD Sender: No OFD packet to send [04:36:52]OFD Sender: No OFD packet to send [04:36:57]OFD Sender: No OFD packet to send [04:37:02]OFD Sender: No OFD packet to send [04:37:07]OFD Sender: No OFD packet to send [04:37:12]OFD Sender: No OFD packet to send [04:37:17]OFD Sender: No OFD packet to send [04:37:22]OFD Sender: No OFD packet to send [04:37:27]OFD Sender: No OFD packet to send [04:37:32]OFD Sender: No OFD packet to send [04:37:37]OFD Sender: No OFD packet to send [04:37:42]OFD Sender: No OFD packet to send [04:37:47]OFD Sender: No OFD packet to send [04:37:52]OFD Sender: No OFD packet to send [04:37:57]OFD Sender: No OFD packet to send [04:38:02]OFD Sender: No OFD packet to send [04:38:07]OFD Sender: No OFD packet to send [04:38:12]OFD Sender: No OFD packet to send [04:38:17]OFD Sender: No OFD packet to send [04:38:22]OFD Sender: No OFD packet to send [04:38:27]OFD Sender: No OFD packet to send [04:38:32]OFD Sender: No OFD packet to send [04:38:37]OFD Sender: No OFD packet to send [04:38:42]OFD Sender: No OFD packet to send [04:38:47]OFD Sender: No OFD packet to send [04:38:52]OFD Sender: No OFD packet to send [04:38:57]OFD Sender: No OFD packet to send [04:39:02]OFD Sender: No OFD packet to send [04:39:07]OFD Sender: No OFD packet to send [04:39:12]OFD Sender: No OFD packet to send [04:39:17]OFD Sender: No OFD packet to send [04:39:22]OFD Sender: No OFD packet to send [04:39:27]OFD Sender: No OFD packet to send [04:39:32]OFD Sender: No OFD packet to send [04:39:37]OFD Sender: No OFD packet to send [04:39:42]OFD Sender: No OFD packet to send [04:39:47]OFD Sender: No OFD packet to send [04:39:52]OFD Sender: No OFD packet to send [04:39:57]OFD Sender: No OFD packet to send [04:40:02]OFD Sender: No OFD packet to send [04:40:07]OFD Sender: No OFD packet to send [04:40:12]OFD Sender: No OFD packet to send [04:40:17]OFD Sender: No OFD packet to send [04:40:22]OFD Sender: No OFD packet to send [04:40:27]OFD Sender: No OFD packet to send [04:40:32]OFD Sender: No OFD packet to send [04:40:37]OFD Sender: No OFD packet to send [04:40:42]OFD Sender: No OFD packet to send [04:40:47]OFD Sender: No OFD packet to send [04:40:52]OFD Sender: No OFD packet to send [04:40:57]OFD Sender: No OFD packet to send [04:41:02]OFD Sender: No OFD packet to send [04:41:07]OFD Sender: No OFD packet to send [04:41:12]OFD Sender: No OFD packet to send [04:41:17]OFD Sender: No OFD packet to send [04:41:22]OFD Sender: No OFD packet to send [04:41:27]OFD Sender: No OFD packet to send [04:41:32]OFD Sender: No OFD packet to send [04:41:37]OFD Sender: No OFD packet to send [04:41:42]OFD Sender: No OFD packet to send [04:41:47]OFD Sender: No OFD packet to send [04:41:52]OFD Sender: No OFD packet to send [04:41:57]OFD Sender: No OFD packet to send [04:42:02]OFD Sender: No OFD packet to send [04:42:07]OFD Sender: No OFD packet to send [04:42:12]OFD Sender: No OFD packet to send [04:42:17]OFD Sender: No OFD packet to send [04:42:22]OFD Sender: No OFD packet to send [04:42:27]OFD Sender: No OFD packet to send [04:42:32]OFD Sender: No OFD packet to send [04:42:37]OFD Sender: No OFD packet to send [04:42:42]OFD Sender: No OFD packet to send [04:42:47]OFD Sender: No OFD packet to send [04:42:52]OFD Sender: No OFD packet to send [04:42:57]OFD Sender: No OFD packet to send [04:43:02]OFD Sender: No OFD packet to send [04:43:07]OFD Sender: No OFD packet to send [04:43:12]OFD Sender: No OFD packet to send [04:43:17]OFD Sender: No OFD packet to send [04:43:22]OFD Sender: No OFD packet to send [04:43:27]OFD Sender: No OFD packet to send [04:43:32]OFD Sender: No OFD packet to send [04:43:37]OFD Sender: No OFD packet to send [04:43:42]OFD Sender: No OFD packet to send [04:43:47]OFD Sender: No OFD packet to send [04:43:52]OFD Sender: No OFD packet to send [04:43:57]OFD Sender: No OFD packet to send [04:44:02]OFD Sender: No OFD packet to send [04:44:07]OFD Sender: No OFD packet to send [04:44:12]OFD Sender: No OFD packet to send [04:44:17]OFD Sender: No OFD packet to send [04:44:22]OFD Sender: No OFD packet to send [04:44:27]OFD Sender: No OFD packet to send [04:44:32]OFD Sender: No OFD packet to send [04:44:37]OFD Sender: No OFD packet to send [04:44:42]OFD Sender: No OFD packet to send [04:44:47]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:38]OFD Sender: No OFD packet to send [04:53:43]OFD Sender: No OFD packet to send [04:53:48]OFD Sender: No OFD packet to send [04:53:53]OFD Sender: No OFD packet to send [04:53:58]OFD Sender: No OFD packet to send [04:54:03]OFD Sender: No OFD packet to send [04:54:08]OFD Sender: No OFD packet to send [04:54:13]OFD Sender: No OFD packet to send [04:54:18]OFD Sender: No OFD packet to send [04:54:23]OFD Sender: No OFD packet to send [04:54:28]OFD Sender: No OFD packet to send [04:54:33]OFD Sender: No OFD packet to send [04:54:38]OFD Sender: No OFD packet to send [04:54:43]OFD Sender: No OFD packet to send [04:54:48]OFD Sender: No OFD packet to send [04:54:53]OFD Sender: No OFD packet to send [04:54:58]OFD Sender: No OFD packet to send [04:55:03]OFD Sender: No OFD packet to send [04:55:08]OFD Sender: No OFD packet to send [04:55:13]OFD Sender: No OFD packet to send [04:55:18]OFD Sender: No OFD packet to send [04:55:23]OFD Sender: No OFD packet to send [04:55:28]OFD Sender: No OFD packet to send [04:55:33]OFD Sender: No OFD packet to send [04:55:38]OFD Sender: No OFD packet to send [04:55:43]OFD Sender: No OFD packet to send [04:55:48]OFD Sender: No OFD packet to send [04:55:53]OFD Sender: No OFD packet to send [04:55:58]OFD Sender: No OFD packet to send [04:56:03]OFD Sender: No OFD packet to send [04:56:08]OFD Sender: No OFD packet to send [04:56:13]OFD Sender: No OFD packet to send [04:56:18]OFD Sender: No OFD packet to send [04:56:23]OFD Sender: No OFD packet to send [04:56:28]OFD Sender: No OFD packet to send [04:56:33]OFD Sender: No OFD packet to send [04:56:38]OFD Sender: No OFD packet to send [04:56:43]OFD Sender: No OFD packet to send [04:56:48]OFD Sender: No OFD packet to send [04:56:53]OFD Sender: No OFD packet to send [04:56:58]OFD Sender: No OFD packet to send [04:57:03]OFD Sender: No OFD packet to send [04:57:08]OFD Sender: No OFD packet to send [04:57:13]OFD Sender: No OFD packet to send [04:57:18]OFD Sender: No OFD packet to send [04:57:23]OFD Sender: No OFD packet to send [04:57:28]OFD Sender: No OFD packet to send [04:57:33]OFD Sender: No OFD packet to send [04:57:38]OFD Sender: No OFD packet to send [04:57:43]OFD Sender: No OFD packet to send [04:57:48]OFD Sender: No OFD packet to send [04:57:53]OFD Sender: No OFD packet to send [04:57:58]OFD Sender: No OFD packet to send [04:58:03]OFD Sender: No OFD packet to send [04:58:08]OFD Sender: No OFD packet to send [04:58:13]OFD Sender: No OFD packet to send [04:58:18]OFD Sender: No OFD packet to send [04:58:23]OFD Sender: No OFD packet to send [04:58:28]OFD Sender: No OFD packet to send [04:58:33]OFD Sender: No OFD packet to send [04:58:38]OFD Sender: No OFD packet to send [04:58:43]OFD Sender: No OFD packet to send [04:58:48]OFD Sender: No OFD packet to send [04:58:53]OFD Sender: No OFD packet to send [04:58:58]OFD Sender: No OFD packet to send [04:59:03]OFD Sender: No OFD packet to send [04:59:08]OFD Sender: No OFD packet to send [04:59:13]OFD Sender: No OFD packet to send [04:59:18]OFD Sender: No OFD packet to send [04:59:23]OFD Sender: No OFD packet to send [04:59:28]OFD Sender: No OFD packet to send [04:59:33]OFD Sender: No OFD packet to send [04:59:38]OFD Sender: No OFD packet to send [04:59:43]OFD Sender: No OFD packet to send [04:59:48]OFD Sender: No OFD packet to send [04:59:53]OFD Sender: No OFD packet to send [04:59:58]OFD Sender: No OFD packet to send [05:00:03]OFD Sender: No OFD packet to send [05:00:08]OFD Sender: No OFD packet to send [05:00:13]OFD Sender: No OFD packet to send [05:00:18]OFD Sender: No OFD packet to send [05:00:23]OFD Sender: No OFD packet to send [05:00:28]OFD Sender: No OFD packet to send [05:00:33]OFD Sender: No OFD packet to send [05:00:38]OFD Sender: No OFD packet to send [05:00:43]OFD Sender: No OFD packet to send [05:00:48]OFD Sender: No OFD packet to send [05:00:53]OFD Sender: No OFD packet to send [05:00:58]OFD Sender: No OFD packet to send [05:01:03]OFD Sender: No OFD packet to send [05:01:08]OFD Sender: No OFD packet to send [05:01:13]OFD Sender: No OFD packet to send [05:01:18]OFD Sender: No OFD packet to send [05:01:23]OFD Sender: No OFD packet to send [05:01:28]OFD Sender: No OFD packet to send [05:01:33]OFD Sender: No OFD packet to send [05:01:38]OFD Sender: No OFD packet to send [05:01:43]OFD Sender: No OFD packet to send [05:01:48]OFD Sender: No OFD packet to send [05:01:53]OFD Sender: No OFD packet to send [05:01:58]OFD Sender: No OFD packet to send [05:02:03]OFD Sender: No OFD packet to send [05:02:08]OFD Sender: No OFD packet to send [05:02:13]OFD Sender: No OFD packet to send [05:02:18]OFD Sender: No OFD packet to send [05:02:23]OFD Sender: No OFD packet to send [05:02:28]OFD Sender: No OFD packet to send [05:02:33]OFD Sender: No OFD packet to send [05:02:38]OFD Sender: No OFD packet to send [05:02:43]OFD Sender: No OFD packet to send [05:02:48]OFD Sender: No OFD packet to send [05:02:53]OFD Sender: No OFD packet to send [05:02:58]OFD Sender: No OFD packet to send [05:03:03]OFD Sender: No OFD packet to send [05:03:08]OFD Sender: No OFD packet to send [05:03:13]OFD Sender: No OFD packet to send [05:03:18]OFD Sender: No OFD packet to send [05:03:23]OFD Sender: No OFD packet to send [05:03:28]OFD Sender: No OFD packet to send [05:03:33]OFD Sender: No OFD packet to send [05:03:38]OFD Sender: No OFD packet to send [05:03:43]OFD Sender: No OFD packet to send [05:03:48]OFD Sender: No OFD packet to send [05:03:53]OFD Sender: No OFD packet to send [05:03:58]OFD Sender: No OFD packet to send [05:04:03]OFD Sender: No OFD packet to send [05:04:08]OFD Sender: No OFD packet to send [05:04:13]OFD Sender: No OFD packet to send [05:04:18]OFD Sender: No OFD packet to send [05:04:23]OFD Sender: No OFD packet to send [05:04:28]OFD Sender: No OFD packet to send [05:04:33]OFD Sender: No OFD packet to send [05:04:38]OFD Sender: No OFD packet to send [05:04:43]OFD Sender: No OFD packet to send [05:04:48]OFD Sender: No OFD packet to send [05:04:53]OFD Sender: No OFD packet to send [05:04:58]OFD Sender: No OFD packet to send [05:05:03]OFD Sender: No OFD packet to send [05:05:08]OFD Sender: No OFD packet to send [05:05:13]OFD Sender: No OFD packet to send [05:05:18]OFD Sender: No OFD packet to send [05:05:23]OFD Sender: No OFD packet to send [05:05:28]OFD Sender: No OFD packet to send [05:05:33]OFD Sender: No OFD packet to send [05:05:38]OFD Sender: No OFD packet to send [05:05:43]OFD Sender: No OFD packet to send [05:05:48]OFD Sender: No OFD packet to send [05:05:53]OFD Sender: No OFD packet to send [05:05:58]OFD Sender: No OFD packet to send [05:06:03]OFD Sender: No OFD packet to send [05:06:08]OFD Sender: No OFD packet to send [05:06:13]OFD Sender: No OFD packet to send [05:06:18]OFD Sender: No OFD packet to send [05:06:23]OFD Sender: No OFD packet to send [05:06:28]OFD Sender: No OFD packet to send [05:06:33]OFD Sender: No OFD packet to send [05:06:38]OFD Sender: No OFD packet to send [05:06:43]OFD Sender: No OFD packet to send [05:06:48]OFD Sender: No OFD packet to send [05:06:53]OFD Sender: No OFD packet to send [05:06:58]OFD Sender: No OFD packet to send [05:07:03]OFD Sender: No OFD packet to send [05:07:08]OFD Sender: No OFD packet to send [05:07:13]OFD Sender: No OFD packet to send [05:07:18]OFD Sender: No OFD packet to send [05:07:23]OFD Sender: No OFD packet to send [05:07:28]OFD Sender: No OFD packet to send [05:07:33]OFD Sender: No OFD packet to send [05:07:38]OFD Sender: No OFD packet to send [05:07:43]OFD Sender: No OFD packet to send [05:07:48]OFD Sender: No OFD packet to send [05:07:53]OFD Sender: No OFD packet to send [05:07:58]OFD Sender: No OFD packet to send [05:08:03]OFD Sender: No OFD packet to send [05:08:08]OFD Sender: No OFD packet to send [05:08:13]OFD Sender: No OFD packet to send [05:08:18]OFD Sender: No OFD packet to send [05:08:23]OFD Sender: No OFD packet to send [05:08:28]OFD Sender: No OFD packet to send [05:08:33]OFD Sender: No OFD packet to send [05:08:38]OFD Sender: No OFD packet to send [05:08:43]OFD Sender: No OFD packet to send [05:08:48]OFD Sender: No OFD packet to send [05:08:53]OFD Sender: No OFD packet to send [05:08:58]OFD Sender: No OFD packet to send [05:09:03]OFD Sender: No OFD packet to send [05:09:08]OFD Sender: No OFD packet to send [05:09:13]OFD Sender: No OFD packet to send [05:09:18]OFD Sender: No OFD packet to send [05:09:23]OFD Sender: No OFD packet to send [05:09:28]OFD Sender: No OFD packet to send [05:09:33]OFD Sender: No OFD packet to send [05:09:38]OFD Sender: No OFD packet to send [05:09:43]OFD Sender: No OFD packet to send [05:09:48]OFD Sender: No OFD packet to send [05:09:53]OFD Sender: No OFD packet to send [05:09:58]OFD Sender: No OFD packet to send [05:10:03]OFD Sender: No OFD packet to send [05:10:08]OFD Sender: No OFD packet to send [05:10:13]OFD Sender: No OFD packet to send [05:10:18]OFD Sender: No OFD packet to send [05:10:23]OFD Sender: No OFD packet to send [05:10:28]OFD Sender: No OFD packet to send [05:10:33]OFD Sender: No OFD packet to send [05:10:38]OFD Sender: No OFD packet to send [05:10:43]OFD Sender: No OFD packet to send [05:10:48]OFD Sender: No OFD packet to send [05:10:53]OFD Sender: No OFD packet to send [05:10:58]OFD Sender: No OFD packet to send [05:11:03]OFD Sender: No OFD packet to send [05:11:08]OFD Sender: No OFD packet to send [05:11:13]OFD Sender: No OFD packet to send [05:11:18]OFD Sender: No OFD packet to send [05:11: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:04]accept exits with 9 [05:12:04]New connection [05:12:04]New thread 3067198820 created [05:12:04]Thread 3067342180 joined [05:12:04]Waiting for new connection... [05:12:04] Sock 9.Parse request [05:12:04]Sock 9.Check first char [05:12:04]Sock 9.First char is OK [05:12:04]request: POST /json_proto HTTP/1.0 [05:12:04]Method: POST [05:12:04]URL: /json_proto [05:12:04]Method is POST - this is cgi request [05:12:04]url: /json_proto [05:12:04]query_string will be loaded in cgi processing [05:12:04]execute_cgi json_proto POST (null) [05:12:04]execute_cgi path=json_proto method=POST [05:12:04]POST find Content-Length [05:12:04]Host: 172.17.32.69:8080 [05:12:04]Content-Length: 687 [05:12:04]Content-Type: application/json [05:12:04] [05:12:04]POST finish read [05:12:04]Found Content-Length = 687 [05:12:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 21.160, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:12:04]execute_script... [05:12: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)1040652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 21.160, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:12:04]POST & json_proto [05:12:04]process_json_proto [05:12:04]json parsed OK: [05:12:04]protocol is kg_v1.0 [05:12:04]action value=close_receipt [05:12:04]process_action close_receipt [05:12:04]cmd_close_receipt [05:12:04]MH_GetDate [05:12:04]Write to MH i2c: F0 00 00 81 15 85 [05:12:04]Write i2c OK [05:12:04]MH_I2C_Read... [05:12:04]Read from MH i2c: F0 [05:12:04]MH_I2C_Read... [05:12:05]Read from MH i2c: F0 09 00 [05:12:05]MH_I2C_Read... [05:12:05]Read from MH i2c: F0 09 00 81 15 00 A7 D8 F3 65 D5 0F D3 65 81 [05:12:05]GetLastDocTimeStamp 1710473968 [05:12:05]current date 1710479527 [05:12:05]FM_GetShiftState [05:12:05]SAM_PROTO_GetShiftState [05:12:05]wFMCommunicate request_size=4 [05:12:05]MH_SAM_APDU [05:12:05]CAPDU: 80 13 01 00 [05:12:05]Write to MH i2c: E2 08 00 82 15 80 13 01 00 00 00 00 00 14 [05:12:05]Write i2c OK [05:12:05]MH_I2C_Read... [05:12:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:12:05]Read from MH i2c: E2 [05:12:05]MH_I2C_Read... [05:12:05]Read from MH i2c: E2 0E 00 [05:12:05]MH_I2C_Read... [05:12:05]Read from MH i2c: E2 0E 00 82 15 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 48 [05:12:05]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [05:12:05]wFMCommunicate OK [05:12:05]SAM_PROTO_GetShiftState done [05:12:05]FM_GetShiftState done [05:12:05]opened in 1710461757 [05:12:05]opened+sec_in_day 1710548157 [05:12:05]quantity*price = 150024 [05:12:05]sum+1 = 150025 [05:12:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 25 15.03.2024 05:12 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108502 ФПД: 102224700684433 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T051207&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108502&fm=102224700684433&tin=02508201610067®Number=0000000000091911&sum=150000 [05:12:06]StoreToDocumentArchive [05:12:06]shift 320 fd 108502 [05:12:06]save to /storage/0320/doc_00108502 [05:12:06]save last doc name /storage/0320/doc_00108502 to /storage/kkm_last_doc_name [05:12:06]save OK [05:12:06]Clear old archive folders... [05:12:06]ProcessDocumentItem done err = 0, tmpTLVsize=252 [05:12:06]tlvbuf is 00121220 [05:12:06]SAM_PROTO_ClearQueue [05:12:06]wFMCommunicate request_size=4 [05:12:06]MH_SAM_APDU [05:12:06]CAPDU: 80 09 00 00 [05:12:06]Write to MH i2c: E2 08 00 8F 15 80 09 00 00 00 00 00 00 16 [05:12:06]Write i2c OK [05:12:06]MH_I2C_Read... [05:12:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:12:06]Read from MH i2c: E2 [05:12:06]MH_I2C_Read... [05:12:06]Read from MH i2c: E2 03 00 [05:12:06]MH_I2C_Read... [05:12:06]Read from MH i2c: E2 03 00 8F 15 00 90 00 18 [05:12:06]RAPDU: 90 00 [05:12:06]wFMCommunicate OK [05:12:06]SAM_PROTO_ClearQueue done [05:12:06]KKMCreateOFDPacket [05:12:06]OFDProtocolAddRootSTLVToBuf [05:12:06]FM_MakeSignedData [05:12:06]FM_MakeSignedData [05:12:06]SAM_PROTO_SignData [05:12:06]wFMCommunicate request_size=4 [05:12:06]MH_SAM_APDU [05:12:06]CAPDU: 80 0D 01 02 [05:12:06]Write to MH i2c: E2 08 00 90 15 80 0D 01 02 00 00 00 00 1E [05:12:06]Write i2c OK [05:12:06]MH_I2C_Read... [05:12:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:12:06]Read from MH i2c: E2 [05:12:06]MH_I2C_Read... [05:12:06]Read from MH i2c: E2 03 00 [05:12:06]MH_I2C_Read... [05:12:06]Read from MH i2c: E2 03 00 90 15 00 90 00 19 [05:12:06]RAPDU: 90 00 [05:12:06]wFMCommunicate OK [05:12:06]wFMCommunicate request_size=255 [05:12:06]MH_SAM_APDU [05:12:06]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A8 52 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 A7 D8 F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 D6 A7 01 00 35 04 06 00 [05:12:06]Write to MH i2c: E2 02 01 91 15 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A8 52 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 A7 D8 F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 D6 A7 01 00 35 04 06 00 00 00 4F [05:12:06]Write i2c OK [05:12:06]MH_I2C_Read... [05:12:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:12:06]Read from MH i2c: E2 [05:12:06]MH_I2C_Read... [05:12:06]Read from MH i2c: E2 03 00 [05:12:06]MH_I2C_Read... [05:12:06]Read from MH i2c: E2 03 00 91 15 00 90 00 1A [05:12:06]RAPDU: 90 00 [05:12:06]wFMCommunicate OK [05:12:06]wFMCommunicate request_size=11 [05:12:06]MH_SAM_APDU [05:12:06]CAPDU: 80 0D 02 02 06 5C F9 0A F8 B8 91 [05:12:06]Write to MH i2c: E2 0E 00 92 15 80 0D 02 02 06 00 5C F9 0A F8 B8 91 00 00 CD [05:12:06]Write i2c OK [05:12:06]MH_I2C_Read... [05:12:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:12:06]Read from MH i2c: E2 [05:12:06]MH_I2C_Read... [05:12:06]Read from MH i2c: E2 03 00 [05:12:06]MH_I2C_Read... [05:12:06]Read from MH i2c: E2 03 00 92 15 00 90 00 1B [05:12:06]RAPDU: 90 00 [05:12:06]wFMCommunicate OK [05:12:06]wFMCommunicate request_size=4 [05:12:06]MH_SAM_APDU [05:12:06]CAPDU: 80 0D 03 02 [05:12:06]Write to MH i2c: E2 08 00 93 15 80 0D 03 02 00 00 00 00 23 [05:12:06]Write i2c OK [05:12:06]MH_I2C_Read... [05:12:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:12:06]Read from MH i2c: E2 [05:12:06]MH_I2C_Read... [05:12:06]Read from MH i2c: E2 0B 00 [05:12:06]MH_I2C_Read... [05:12:06]Read from MH i2c: E2 0B 00 93 15 00 2A 7F B3 32 7D 2F 49 16 90 00 BD [05:12:06]RAPDU: 2A 7F B3 32 7D 2F 49 16 90 00 [05:12:06]wFMCommunicate OK [05:12:06]SAM_PROTO_SignData done [05:12:06]FM_MakeSignedData done [05:12:06]CreateOFDProtocolMessage [05:12:06]wFMCommunicate request_size=4 [05:12:06]MH_SAM_APDU [05:12:06]CAPDU: 80 11 00 00 [05:12:06]Write to MH i2c: E2 08 00 94 15 80 11 00 00 00 00 00 00 23 [05:12:06]Write i2c OK [05:12:06]MH_I2C_Read... [05:12:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:12:06]Read from MH i2c: E2 [05:12:06]MH_I2C_Read... [05:12:06]Read from MH i2c: E2 17 00 [05:12:06]MH_I2C_Read... [05:12:06]Read from MH i2c: E2 17 00 94 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 77 [05:12:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [05:12:06]wFMCommunicate OK [05:12:06]CreateOFDProtocolMessage done [05:12:06]OFDSenderStorePacket 108502 [05:12:06]StoreOFDPacket docnum=108502 [05:12:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 01 00 00 95 04 08 01 26 70 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A8 52 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 A7 D8 F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 D6 A7 01 00 35 04 06 00 5C F9 0A F8 B8 91 2A 7F B3 32 7D 2F 49 16 [05:12:06]CheckFolder [05:12:06]dirname=/storage/ofd_packets [05:12:06]CheckFolder done [05:12:06]ProducePacketName [05:12:06]name=ofd_packets/00108502 [05:12:06]NVStorageSaveData ofd_packets/00108502 [05:12:06]File name is /storage/ofd_packets/00108502 [05:12:06]Write 302 bytes [05:12:06]NVStorageSaveData done [05:12:06]OFDSenderStorePacket done [05:12:06]KKMCreateOFDPacket done [05:12:06]NVStorageSaveData kkm_last_timestamp [05:12:06]File name is /storage/kkm_last_timestamp [05:12:06]Write 4 bytes [05:12:06]NVStorageSaveData done [05:12:06]ExternCall_PrintAddStr [05:12:06]wPrintStart [05:12:06]Write to MH i2c: 01 00 00 95 15 AA [05:12:06]Write i2c OK [05:12:06]MH_I2C_Read... [05:12:06]Read from MH i2c: 01 [05:12:06]MH_I2C_Read... [05:12:06]Read from MH i2c: 01 07 00 [05:12:06]MH_I2C_Read... [05:12:06]Read from MH i2c: 01 07 00 95 15 00 00 00 00 00 FF 0F BF [05:12:06]RasterBufferAndPrint [05:12:06]line Счет N : (1)1040652 [05:12:06]line ИНН: 02508201610067 [05:12:06]line Контрольно-Кассовый Чек [05:12:06]line ПРОДАЖА [05:12:06]line ТРК (МРК, ГНК) : 2 [05:12:06]line Товар: 2710194210 [05:12:06]line ДТ(л)-К-5 [05:12:06]line 21.160 * 70.90 [05:12:06]line = 1500.24 [05:12:06]line НДС 12% НСП 1% [05:12:06]line > о реализуемом товаре [05:12:06]line ОКРУГЛЕНИЕ: -0.24 [05:12:06]line ИТОГО: 1500.00 [05:12:06]line Внесено: 1500.00 [05:12:06]line СДАЧА: 0.00 [05:12:06]line НСП 1% : 13.28 [05:12:06]line НДС 12% : 159.32 [05:12:06]line Наличными: 1500.00 [05:12:06]line Безнал.: 0.00 [05:12:06]line Место: АЗС № 15 "Партнер Нефть" [05:12:06]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [05:12:06]line СНО: Общий режим [05:12:06]line Чек 25 15.03.2024 05:12 [05:12:06]line Смена: 320 ФФД: 1.0 [05:12:06]line ЗНМ: 0300000266 [05:12:06]line РНМ: 0000000000091911 [05:12:06]line Версия ККМ: 001 [05:12:06]line ФМ: 0000000000871818 [05:12:06]line ФД: 108502 [05:12:06]line ФПД: 102224700684433 [05:12:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T051207&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108502&fm=102224700684433&tin=02508201610067®Number=0000000000091911&sum=150000 [05:12:07]OFD Sender: Processing packet 108502 [packets to send 29, broken 28] [05:12:07]ProducePacketName [05:12:07]name=ofd_packets/00108502 [05:12:07]OFD Sender: To server: pG, [05:12:07]CommunicateWithHost lk.salyk.kg:30040 [05:12:07]ConnectInit lk.salyk.kg [05:12:07]written 0, free lines is 4095 [05:12:07]Connected sock=10 [05:12: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 31 38 10 01 00 00 95 04 08 01 26 70 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A8 52 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 A7 D8 F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 D6 A7 01 00 35 04 06 00 5C F9 0A F8 B8 91 2A 7F B3 32 7D 2F 49 16 [05:12: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 31 38 4F 00 00 00 A7 3D 47 00 EE 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 D6 A7 01 00 F4 03 04 00 48 84 F3 65 B6 04 01 00 00 54 8E 5F 71 CE FB 19 2C [05:12:07]CommunicateWithHost err = 0 [05:12:07]CheckOFDResponse [05:12:07]1017 (14) - 77093643461234 [05:12:07]1041 (16) - 0000000000871818 [05:12:07]1040 (4) - 108502 [05:12:07]1012 (4) - 14.03.2024 23:12 [05:12:07]1206 (1) - 0 [05:12:07]OFD Sender: Remove packet 108502 [05:12:07]ProducePacketName [05:12:07]name=ofd_packets/00108502 [05:12:07]NVStorageDeleteData [05:12:07]Write to MH i2c: 01 00 00 C0 15 D5 [05:12:07]Write i2c OK [05:12:07]MH_I2C_Read... [05:12:07]Read from MH i2c: 01 [05:12:07]MH_I2C_Read... [05:12:07]Read from MH i2c: 01 07 00 [05:12:07]MH_I2C_Read... [05:12:07]Read from MH i2c: 01 07 00 C0 15 00 00 00 00 00 B4 0C 9C [05:12:07]RasterBufferAndPrint [05:12:07]line [05:12:07]line [05:12:07]line [05:12:07]line [05:12:07]line [05:12:07]written 0, free lines is 3258 [05:12:07]MH_Cut [05:12:07]Write to MH i2c: D1 01 00 C7 15 01 AE [05:12:07]Write i2c OK [05:12:07]MH_I2C_Read... [05:12:07]Read from MH i2c: D1 [05:12:07]MH_I2C_Read... [05:12:07]Read from MH i2c: D1 01 00 [05:12:07]MH_I2C_Read... [05:12:07]Read from MH i2c: D1 01 00 C7 15 00 AD [05:12:07]Write to MH i2c: 01 00 00 C8 15 DD [05:12:07]Write i2c OK [05:12:07]MH_I2C_Read... [05:12:07]OFD Sender: No OFD packet to send [05:12:08]*** Cut start [05:12:08]*** Purtial cut [05:12:08]*** Stage 1: CUTSNS_PIN = 1 [05:12:08]Read from MH i2c: 01 [05:12:08]MH_I2C_Read... [05:12:08]*** Stop cut motor [05:12:08]*** Cut end [05:12:08]Read from MH i2c: 01 07 00 [05:12:08]MH_I2C_Read... [05:12:08]Read from MH i2c: 01 07 00 C8 15 00 00 00 00 00 FF 0F F2 [05:12:08]process_action close_receipt done [05:12:08]requested_data is exist [05:12:08]produce_requested_data [05:12:08]requested_item fm.sn is exist - process it [05:12:08]wFMCommunicate request_size=4 [05:12:08]MH_SAM_APDU [05:12:08]CAPDU: 80 11 00 00 [05:12:08]Write to MH i2c: E2 08 00 C9 15 80 11 00 00 00 00 00 00 58 [05:12:08]Write i2c OK [05:12:08]MH_I2C_Read... [05:12:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:12:08]Read from MH i2c: E2 [05:12:08]MH_I2C_Read... [05:12:08]Read from MH i2c: E2 17 00 [05:12:08]MH_I2C_Read... [05:12:08]Read from MH i2c: E2 17 00 C9 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 AC [05:12:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [05:12:08]wFMCommunicate OK [05:12:08]requested_item fd.num is exist - process it [05:12:08]SAM_PROTO_GetFieldsCounters [05:12:08]wFMCommunicate request_size=4 [05:12:08]MH_SAM_APDU [05:12:08]CAPDU: 80 13 00 00 [05:12:08]Write to MH i2c: E2 08 00 CA 15 80 13 00 00 00 00 00 00 5B [05:12:08]Write i2c OK [05:12:08]MH_I2C_Read... [05:12:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:12:08]Read from MH i2c: E2 [05:12:08]MH_I2C_Read... [05:12:08]Read from MH i2c: E2 62 00 [05:12:08]MH_I2C_Read... [05:12:08]Read from MH i2c: E2 62 00 CA 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 D6 A7 01 00 0E 04 04 00 40 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 83 [05:12: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 D6 A7 01 00 0E 04 04 00 40 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 [05:12:08]wFMCommunicate OK [05:12:08]SAM_PROTO_GetFieldsCounters done [05:12:08]requested_item shift.num is exist - process it [05:12:08]requested_item shift.opened is exist - process it [05:12:08]req_shift_opened [05:12:08]FM_GetShiftState [05:12:08]SAM_PROTO_GetShiftState [05:12:08]wFMCommunicate request_size=4 [05:12:08]MH_SAM_APDU [05:12:08]CAPDU: 80 13 01 00 [05:12:08]Write to MH i2c: E2 08 00 CB 15 80 13 01 00 00 00 00 00 5D [05:12:08]Write i2c OK [05:12:08]MH_I2C_Read... [05:12:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:12:08]Read from MH i2c: E2 [05:12:08]MH_I2C_Read... [05:12:08]Read from MH i2c: E2 0E 00 [05:12:08]MH_I2C_Read... [05:12:08]Read from MH i2c: E2 0E 00 CB 15 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 91 [05:12:08]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [05:12:08]wFMCommunicate OK [05:12:08]SAM_PROTO_GetShiftState done [05:12:08]FM_GetShiftState done [05:12:08]req_shift_opened done [05:12:08]requested_item shift.open_date is exist - process it [05:12:08]req_shift_open_date [05:12:08]req_shift_open_date done [05:12:08]produce_requested_data done [05:12:08]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108502,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [05:12:08]process_action_free close_receipt [05:12:08]json_value_free [05:12:08]json_value_free done [05:12:08]process_json_proto returns [05:12:08]Send response to host [05:12:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108502,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [05:12:08]free response buf [05:12:08]execute_script done [05:12:08]execute_script returns [05:12:08]free content buf [05:12:08]Sock 9.Close socket [05:12:08]Sock 9.Thread stoped [05:12:12]OFD Sender: No OFD packet to send [05:12:17]OFD Sender: No OFD packet to send [05:12:22]OFD Sender: No OFD packet to send [05:12:27]OFD Sender: No OFD packet to send [05:12:32]OFD Sender: No OFD packet to send [05:12:37]OFD Sender: No OFD packet to send [05:12:42]OFD Sender: No OFD packet to send [05:12:47]OFD Sender: No OFD packet to send [05:12:52]OFD Sender: No OFD packet to send [05:12:57]OFD Sender: No OFD packet to send [05:13:02]OFD Sender: No OFD packet to send [05:13:07]OFD Sender: No OFD packet to send [05:13:12]OFD Sender: No OFD packet to send [05:13:17]OFD Sender: No OFD packet to send [05:13:22]OFD Sender: No OFD packet to send [05:13:27]OFD Sender: No OFD packet to send [05:13:32]OFD Sender: No OFD packet to send [05:13:37]OFD Sender: No OFD packet to send [05:13:42]OFD Sender: No OFD packet to send [05:13:47]OFD Sender: No OFD packet to send [05:13:52]OFD Sender: No OFD packet to send [05:13:57]OFD Sender: No OFD packet to send [05:14:02]OFD Sender: No OFD packet to send [05:14:07]OFD Sender: No OFD packet to send [05:14:12]OFD Sender: No OFD packet to send [05:14:17]OFD Sender: No OFD packet to send [05:14:22]OFD Sender: No OFD packet to send [05:14:27]OFD Sender: No OFD packet to send [05:14:32]OFD Sender: No OFD packet to send [05:14:37]OFD Sender: No OFD packet to send [05:14:42]OFD Sender: No OFD packet to send [05:14:47]OFD Sender: No OFD packet to send [05:14:52]OFD Sender: No OFD packet to send [05:14:57]OFD Sender: No OFD packet to send [05:15:02]OFD Sender: No OFD packet to send [05:15:07]OFD Sender: No OFD packet to send [05:15:12]OFD Sender: No OFD packet to send [05:15:17]OFD Sender: No OFD packet to send [05:15:22]OFD Sender: No OFD packet to send [05:15:27]OFD Sender: No OFD packet to send [05:15:32]OFD Sender: No OFD packet to send [05:15:37]OFD Sender: No OFD packet to send [05:15:42]OFD Sender: No OFD packet to send [05:15:47]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:08]OFD Sender: No OFD packet to send [05:27:13]OFD Sender: No OFD packet to send [05:27:18]OFD Sender: No OFD packet to send [05:27:23]OFD Sender: No OFD packet to send [05:27:28]OFD Sender: No OFD packet to send [05:27:33]OFD Sender: No OFD packet to send [05:27:38]OFD Sender: No OFD packet to send [05:27:43]OFD Sender: No OFD packet to send [05:27:48]OFD Sender: No OFD packet to send [05:27:53]OFD Sender: No OFD packet to send [05:27:58]OFD Sender: No OFD packet to send [05:28:03]OFD Sender: No OFD packet to send [05:28:08]OFD Sender: No OFD packet to send [05:28:13]OFD Sender: No OFD packet to send [05:28:18]OFD Sender: No OFD packet to send [05:28:23]OFD Sender: No OFD packet to send [05:28:28]OFD Sender: No OFD packet to send [05:28:33]OFD Sender: No OFD packet to send [05:28:38]OFD Sender: No OFD packet to send [05:28:43]OFD Sender: No OFD packet to send [05:28:48]OFD Sender: No OFD packet to send [05:28:53]OFD Sender: No OFD packet to send [05:28:58]OFD Sender: No OFD packet to send [05:29:03]OFD Sender: No OFD packet to send [05:29:08]OFD Sender: No OFD packet to send [05:29:13]OFD Sender: No OFD packet to send [05:29:18]OFD Sender: No OFD packet to send [05:29:23]OFD Sender: No OFD packet to send [05:29:28]OFD Sender: No OFD packet to send [05:29:33]OFD Sender: No OFD packet to send [05:29:38]OFD Sender: No OFD packet to send [05:29:43]OFD Sender: No OFD packet to send [05:29:48]OFD Sender: No OFD packet to send [05:29:53]OFD Sender: No OFD packet to send [05:29:58]OFD Sender: No OFD packet to send [05:30:03]OFD Sender: No OFD packet to send [05:30:08]OFD Sender: No OFD packet to send [05:30:13]OFD Sender: No OFD packet to send [05:30:18]OFD Sender: No OFD packet to send [05:30:23]OFD Sender: No OFD packet to send [05:30:28]OFD Sender: No OFD packet to send [05:30:33]OFD Sender: No OFD packet to send [05:30:38]OFD Sender: No OFD packet to send [05:30:43]OFD Sender: No OFD packet to send [05:30:48]OFD Sender: No OFD packet to send [05:30:53]OFD Sender: No OFD packet to send [05:30:58]OFD Sender: No OFD packet to send [05:31:03]OFD Sender: No OFD packet to send [05:31:08]OFD Sender: No OFD packet to send [05:31:13]OFD Sender: No OFD packet to send [05:31:18]OFD Sender: No OFD packet to send [05:31:23]OFD Sender: No OFD packet to send [05:31:28]OFD Sender: No OFD packet to send [05:31:33]OFD Sender: No OFD packet to send [05:31:38]OFD Sender: No OFD packet to send [05:31:43]OFD Sender: No OFD packet to send [05:31:48]OFD Sender: No OFD packet to send [05:31:53]OFD Sender: No OFD packet to send [05:31:58]OFD Sender: No OFD packet to send [05:32:03]OFD Sender: No OFD packet to send [05:32:08]OFD Sender: No OFD packet to send [05:32:13]OFD Sender: No OFD packet to send [05:32:18]OFD Sender: No OFD packet to send [05:32:23]OFD Sender: No OFD packet to send [05:32:28]OFD Sender: No OFD packet to send [05:32:33]OFD Sender: No OFD packet to send [05:32:38]OFD Sender: No OFD packet to send [05:32:43]OFD Sender: No OFD packet to send [05:32:48]OFD Sender: No OFD packet to send [05:32:53]OFD Sender: No OFD packet to send [05:32:58]OFD Sender: No OFD packet to send [05:33:03]OFD Sender: No OFD packet to send [05:33:08]OFD Sender: No OFD packet to send [05:33:13]OFD Sender: No OFD packet to send [05:33:18]OFD Sender: No OFD packet to send [05:33:23]OFD Sender: No OFD packet to send [05:33:28]OFD Sender: No OFD packet to send [05:33:33]OFD Sender: No OFD packet to send [05:33:38]OFD Sender: No OFD packet to send [05:33:43]OFD Sender: No OFD packet to send [05:33:48]OFD Sender: No OFD packet to send [05:33:53]OFD Sender: No OFD packet to send [05:33:58]OFD Sender: No OFD packet to send [05:34:03]OFD Sender: No OFD packet to send [05:34:08]OFD Sender: No OFD packet to send [05:34:13]OFD Sender: No OFD packet to send [05:34:18]OFD Sender: No OFD packet to send [05:34:23]OFD Sender: No OFD packet to send [05:34:28]OFD Sender: No OFD packet to send [05:34:33]OFD Sender: No OFD packet to send [05:34:38]OFD Sender: No OFD packet to send [05:34:43]OFD Sender: No OFD packet to send [05:34:48]OFD Sender: No OFD packet to send [05:34:53]OFD Sender: No OFD packet to send [05:34:58]OFD Sender: No OFD packet to send [05:35:03]OFD Sender: No OFD packet to send [05:35:08]OFD Sender: No OFD packet to send [05:35:13]OFD Sender: No OFD packet to send [05:35:18]OFD Sender: No OFD packet to send [05:35:23]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:24]OFD Sender: No OFD packet to send [05:48:29]OFD Sender: No OFD packet to send [05:48:34]OFD Sender: No OFD packet to send [05:48:39]OFD Sender: No OFD packet to send [05:48:44]OFD Sender: No OFD packet to send [05:48:49]OFD Sender: No OFD packet to send [05:48:54]OFD Sender: No OFD packet to send [05:48:59]OFD Sender: No OFD packet to send [05:49:04]OFD Sender: No OFD packet to send [05:49:09]OFD Sender: No OFD packet to send [05:49:14]OFD Sender: No OFD packet to send [05:49:19]OFD Sender: No OFD packet to send [05:49:24]OFD Sender: No OFD packet to send [05:49:29]OFD Sender: No OFD packet to send [05:49:34]OFD Sender: No OFD packet to send [05:49:39]OFD Sender: No OFD packet to send [05:49:44]OFD Sender: No OFD packet to send [05:49:49]OFD Sender: No OFD packet to send [05:49:54]OFD Sender: No OFD packet to send [05:49:59]OFD Sender: No OFD packet to send [05:50:04]OFD Sender: No OFD packet to send [05:50:09]OFD Sender: No OFD packet to send [05:50:14]OFD Sender: No OFD packet to send [05:50:19]OFD Sender: No OFD packet to send [05:50:24]OFD Sender: No OFD packet to send [05:50:29]OFD Sender: No OFD packet to send [05:50:34]OFD Sender: No OFD packet to send [05:50:39]OFD Sender: No OFD packet to send [05:50:44]OFD Sender: No OFD packet to send [05:50:49]OFD Sender: No OFD packet to send [05:50:54]OFD Sender: No OFD packet to send [05:50:59]OFD Sender: No OFD packet to send [05:51:04]OFD Sender: No OFD packet to send [05:51:09]OFD Sender: No OFD packet to send [05:51:14]OFD Sender: No OFD packet to send [05:51:19]OFD Sender: No OFD packet to send [05:51:24]OFD Sender: No OFD packet to send [05:51:29]OFD Sender: No OFD packet to send [05:51:34]OFD Sender: No OFD packet to send [05:51:39]OFD Sender: No OFD packet to send [05:51:44]OFD Sender: No OFD packet to send [05:51:49]OFD Sender: No OFD packet to send [05:51:54]OFD Sender: No OFD packet to send [05:51:59]OFD Sender: No OFD packet to send [05:52:04]OFD Sender: No OFD packet to send [05:52:09]OFD Sender: No OFD packet to send [05:52:14]OFD Sender: No OFD packet to send [05:52:19]OFD Sender: No OFD packet to send [05:52:24]OFD Sender: No OFD packet to send [05:52:29]OFD Sender: No OFD packet to send [05:52:34]OFD Sender: No OFD packet to send [05:52:39]OFD Sender: No OFD packet to send [05:52:44]OFD Sender: No OFD packet to send [05:52:49]OFD Sender: No OFD packet to send [05:52:54]OFD Sender: No OFD packet to send [05:52:59]OFD Sender: No OFD packet to send [05:53:04]OFD Sender: No OFD packet to send [05:53:09]OFD Sender: No OFD packet to send [05:53:14]OFD Sender: No OFD packet to send [05:53:19]OFD Sender: No OFD packet to send [05:53:24]OFD Sender: No OFD packet to send [05:53:29]OFD Sender: No OFD packet to send [05:53:34]OFD Sender: No OFD packet to send [05:53:39]OFD Sender: No OFD packet to send [05:53:44]OFD Sender: No OFD packet to send [05:53:49]OFD Sender: No OFD packet to send [05:53:54]OFD Sender: No OFD packet to send [05:53:59]OFD Sender: No OFD packet to send [05:54:04]OFD Sender: No OFD packet to send [05:54:09]OFD Sender: No OFD packet to send [05:54:14]OFD Sender: No OFD packet to send [05:54:19]OFD Sender: No OFD packet to send [05:54:24]OFD Sender: No OFD packet to send [05:54:29]OFD Sender: No OFD packet to send [05:54:34]OFD Sender: No OFD packet to send [05:54:39]OFD Sender: No OFD packet to send [05:54:44]OFD Sender: No OFD packet to send [05:54:49]OFD Sender: No OFD packet to send [05:54:54]OFD Sender: No OFD packet to send [05:54:59]OFD Sender: No OFD packet to send [05:55:04]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:30]OFD Sender: No OFD packet to send [06:09:35]OFD Sender: No OFD packet to send [06:09:40]OFD Sender: No OFD packet to send [06:09:45]OFD Sender: No OFD packet to send [06:09:50]OFD Sender: No OFD packet to send [06:09:55]OFD Sender: No OFD packet to send [06:10:00]OFD Sender: No OFD packet to send [06:10:05]OFD Sender: No OFD packet to send [06:10:10]OFD Sender: No OFD packet to send [06:10:15]OFD Sender: No OFD packet to send [06:10:20]OFD Sender: No OFD packet to send [06:10:25]OFD Sender: No OFD packet to send [06:10:30]OFD Sender: No OFD packet to send [06:10:35]OFD Sender: No OFD packet to send [06:10:40]OFD Sender: No OFD packet to send [06:10:45]OFD Sender: No OFD packet to send [06:10:50]OFD Sender: No OFD packet to send [06:10:55]OFD Sender: No OFD packet to send [06:11:00]OFD Sender: No OFD packet to send [06:11:02]accept exits with 8 [06:11:02]New connection [06:11:02]New thread 3067342180 created [06:11:02]Thread 3067198820 joined [06:11:02]Waiting for new connection... [06:11:02] Sock 8.Parse request [06:11:02]Sock 8.Check first char [06:11:02]Sock 8.First char is OK [06:11:02]request: POST /json_proto HTTP/1.0 [06:11:02]Method: POST [06:11:02]URL: /json_proto [06:11:02]Method is POST - this is cgi request [06:11:02]url: /json_proto [06:11:02]query_string will be loaded in cgi processing [06:11:02]execute_cgi json_proto POST (null) [06:11:02]execute_cgi path=json_proto method=POST [06:11:02]POST find Content-Length [06:11:02]Host: 172.17.32.69:8080 [06:11:02]Content-Length: 683 [06:11:02]Content-Type: application/json [06:11:02] [06:11:02]POST finish read [06:11:02]Found Content-Length = 683 [06:11:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 13.930, "sum" : 987.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 987.00, "total" : 987.00, "payments": [ { "type": 0, "sum" : 987.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:11:02]execute_script... [06:11: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)1040653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 13.930, "sum" : 987.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 987.00, "total" : 987.00, "payments": [ { "type": 0, "sum" : 987.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:11:02]POST & json_proto [06:11:02]process_json_proto [06:11:02]json parsed OK: [06:11:02]protocol is kg_v1.0 [06:11:02]action value=close_receipt [06:11:02]process_action close_receipt [06:11:02]cmd_close_receipt [06:11:02]MH_GetDate [06:11:02]Write to MH i2c: F0 00 00 CC 15 D0 [06:11:02]Write i2c OK [06:11:02]MH_I2C_Read... [06:11:02]Read from MH i2c: F0 [06:11:02]MH_I2C_Read... [06:11:02]Read from MH i2c: F0 09 00 [06:11:02]MH_I2C_Read... [06:11:02]Read from MH i2c: F0 09 00 CC 15 00 79 E6 F3 65 D5 0F D3 65 AC [06:11:02]GetLastDocTimeStamp 1710479527 [06:11:02]current date 1710483065 [06:11:02]FM_GetShiftState [06:11:02]SAM_PROTO_GetShiftState [06:11:02]wFMCommunicate request_size=4 [06:11:02]MH_SAM_APDU [06:11:02]CAPDU: 80 13 01 00 [06:11:02]Write to MH i2c: E2 08 00 CD 15 80 13 01 00 00 00 00 00 5F [06:11:02]Write i2c OK [06:11:02]MH_I2C_Read... [06:11:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:11:03]Read from MH i2c: E2 [06:11:03]MH_I2C_Read... [06:11:03]Read from MH i2c: E2 0E 00 [06:11:03]MH_I2C_Read... [06:11:03]Read from MH i2c: E2 0E 00 CD 15 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 93 [06:11:03]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [06:11:03]wFMCommunicate OK [06:11:03]SAM_PROTO_GetShiftState done [06:11:03]FM_GetShiftState done [06:11:03]opened in 1710461757 [06:11:03]opened+sec_in_day 1710548157 [06:11:03]quantity*price = 98763 [06:11:03]sum+1 = 98765 [06:11:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 987.00 Внесено: 987.00 СДАЧА: 0.00 НСП 1% : 8.74 НДС 12% : 104.88 Наличными: 987.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 26 15.03.2024 06:11 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108503 ФПД: 61362486555137 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T061105&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108503&fm=61362486555137&tin=02508201610067®Number=0000000000091911&sum=98700 [06:11:04]StoreToDocumentArchive [06:11:04]shift 320 fd 108503 [06:11:04]save to /storage/0320/doc_00108503 [06:11:04]save last doc name /storage/0320/doc_00108503 to /storage/kkm_last_doc_name [06:11:04]save OK [06:11:04]Clear old archive folders... [06:11:04]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:11:04]tlvbuf is 000D4B10 [06:11:04]SAM_PROTO_ClearQueue [06:11:04]wFMCommunicate request_size=4 [06:11:04]MH_SAM_APDU [06:11:04]CAPDU: 80 09 00 00 [06:11:04]Write to MH i2c: E2 08 00 DA 15 80 09 00 00 00 00 00 00 61 [06:11:04]Write i2c OK [06:11:04]MH_I2C_Read... [06:11:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:11:04]Read from MH i2c: E2 [06:11:04]MH_I2C_Read... [06:11:04]Read from MH i2c: E2 03 00 [06:11:04]MH_I2C_Read... [06:11:04]Read from MH i2c: E2 03 00 DA 15 00 90 00 63 [06:11:04]RAPDU: 90 00 [06:11:04]wFMCommunicate OK [06:11:04]SAM_PROTO_ClearQueue done [06:11:04]KKMCreateOFDPacket [06:11:04]OFDProtocolAddRootSTLVToBuf [06:11:04]FM_MakeSignedData [06:11:04]FM_MakeSignedData [06:11:04]SAM_PROTO_SignData [06:11:04]wFMCommunicate request_size=4 [06:11:04]MH_SAM_APDU [06:11:04]CAPDU: 80 0D 01 02 [06:11:04]Write to MH i2c: E2 08 00 DB 15 80 0D 01 02 00 00 00 00 69 [06:11:04]Write i2c OK [06:11:04]MH_I2C_Read... [06:11:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:11:04]Read from MH i2c: E2 [06:11:04]MH_I2C_Read... [06:11:04]Read from MH i2c: E2 03 00 [06:11:04]MH_I2C_Read... [06:11:04]Read from MH i2c: E2 03 00 DB 15 00 90 00 64 [06:11:04]RAPDU: 90 00 [06:11:04]wFMCommunicate OK [06:11:04]wFMCommunicate request_size=255 [06:11:04]MH_SAM_APDU [06:11:04]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 6A 36 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 CC 81 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 81 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 28 00 00 00 00 07 04 06 00 8C 81 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 79 E6 F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 D7 A7 01 00 35 04 06 00 [06:11:04]Write to MH i2c: E2 02 01 DC 15 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 6A 36 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 CC 81 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 81 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 28 00 00 00 00 07 04 06 00 8C 81 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 79 E6 F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 D7 A7 01 00 35 04 06 00 00 00 A0 [06:11:04]Write i2c OK [06:11:04]MH_I2C_Read... [06:11:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:11:04]Read from MH i2c: E2 [06:11:04]MH_I2C_Read... [06:11:04]Read from MH i2c: E2 03 00 [06:11:04]MH_I2C_Read... [06:11:04]Read from MH i2c: E2 03 00 DC 15 00 90 00 65 [06:11:04]RAPDU: 90 00 [06:11:04]wFMCommunicate OK [06:11:04]wFMCommunicate request_size=11 [06:11:04]MH_SAM_APDU [06:11:04]CAPDU: 80 0D 02 02 06 37 CF 11 36 B2 01 [06:11:04]Write to MH i2c: E2 0E 00 DD 15 80 0D 02 02 06 00 37 CF 11 36 B2 01 00 00 78 [06:11:04]Write i2c OK [06:11:04]MH_I2C_Read... [06:11:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:11:04]Read from MH i2c: E2 [06:11:04]MH_I2C_Read... [06:11:04]Read from MH i2c: E2 03 00 [06:11:04]MH_I2C_Read... [06:11:04]Read from MH i2c: E2 03 00 DD 15 00 90 00 66 [06:11:04]RAPDU: 90 00 [06:11:04]wFMCommunicate OK [06:11:04]wFMCommunicate request_size=4 [06:11:04]MH_SAM_APDU [06:11:04]CAPDU: 80 0D 03 02 [06:11:04]Write to MH i2c: E2 08 00 DE 15 80 0D 03 02 00 00 00 00 6E [06:11:04]Write i2c OK [06:11:04]MH_I2C_Read... [06:11:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:11:04]Read from MH i2c: E2 [06:11:04]MH_I2C_Read... [06:11:04]Read from MH i2c: E2 0B 00 [06:11:04]MH_I2C_Read... [06:11:04]Read from MH i2c: E2 0B 00 DE 15 00 05 EC 79 2C 51 3C 30 87 90 00 49 [06:11:04]RAPDU: 05 EC 79 2C 51 3C 30 87 90 00 [06:11:04]wFMCommunicate OK [06:11:04]SAM_PROTO_SignData done [06:11:04]FM_MakeSignedData done [06:11:04]CreateOFDProtocolMessage [06:11:04]wFMCommunicate request_size=4 [06:11:04]MH_SAM_APDU [06:11:04]CAPDU: 80 11 00 00 [06:11:04]Write to MH i2c: E2 08 00 DF 15 80 11 00 00 00 00 00 00 6E [06:11:04]Write i2c OK [06:11:04]MH_I2C_Read... [06:11:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:11:04]Read from MH i2c: E2 [06:11:04]MH_I2C_Read... [06:11:04]Read from MH i2c: E2 17 00 [06:11:04]MH_I2C_Read... [06:11:04]Read from MH i2c: E2 17 00 DF 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 C2 [06:11:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [06:11:04]wFMCommunicate OK [06:11:04]CreateOFDProtocolMessage done [06:11:04]OFDSenderStorePacket 108503 [06:11:04]StoreOFDPacket docnum=108503 [06:11:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 01 00 00 52 03 08 01 DB A2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 6A 36 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 CC 81 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 81 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 28 00 00 00 00 07 04 06 00 8C 81 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 79 E6 F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 D7 A7 01 00 35 04 06 00 37 CF 11 36 B2 01 05 EC 79 2C 51 3C 30 87 [06:11:04]CheckFolder [06:11:04]dirname=/storage/ofd_packets [06:11:04]CheckFolder done [06:11:04]ProducePacketName [06:11:04]name=ofd_packets/00108503 [06:11:04]NVStorageSaveData ofd_packets/00108503 [06:11:04]File name is /storage/ofd_packets/00108503 [06:11:04]Write 302 bytes [06:11:04]NVStorageSaveData done [06:11:04]OFDSenderStorePacket done [06:11:04]KKMCreateOFDPacket done [06:11:04]NVStorageSaveData kkm_last_timestamp [06:11:04]File name is /storage/kkm_last_timestamp [06:11:04]Write 4 bytes [06:11:04]NVStorageSaveData done [06:11:04]ExternCall_PrintAddStr [06:11:04]wPrintStart [06:11:04]Write to MH i2c: 01 00 00 E0 15 F5 [06:11:04]Write i2c OK [06:11:04]MH_I2C_Read... [06:11:04]Read from MH i2c: 01 [06:11:04]MH_I2C_Read... [06:11:04]Read from MH i2c: 01 07 00 [06:11:04]MH_I2C_Read... [06:11:04]Read from MH i2c: 01 07 00 E0 15 00 00 00 00 00 FF 0F 0A [06:11:04]RasterBufferAndPrint [06:11:04]line Счет N : (1)1040653 [06:11:04]line ИНН: 02508201610067 [06:11:04]line Контрольно-Кассовый Чек [06:11:04]line ПРОДАЖА [06:11:04]line ТРК (МРК, ГНК) : 2 [06:11:04]line Товар: 2710194210 [06:11:04]line ДТ(л)-К-5 [06:11:04]line 13.930 * 70.90 [06:11:04]line = 987.64 [06:11:04]line НДС 12% НСП 1% [06:11:04]line > о реализуемом товаре [06:11:04]line ОКРУГЛЕНИЕ: -0.64 [06:11:04]line ИТОГО: 987.00 [06:11:04]line Внесено: 987.00 [06:11:04]line СДАЧА: 0.00 [06:11:04]line НСП 1% : 8.74 [06:11:04]line НДС 12% : 104.88 [06:11:04]line Наличными: 987.00 [06:11:04]line Безнал.: 0.00 [06:11:04]line Место: АЗС № 15 "Партнер Нефть" [06:11:04]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [06:11:04]line СНО: Общий режим [06:11:04]line Чек 26 15.03.2024 06:11 [06:11:04]line Смена: 320 ФФД: 1.0 [06:11:04]line ЗНМ: 0300000266 [06:11:04]line РНМ: 0000000000091911 [06:11:04]line Версия ККМ: 001 [06:11:04]line ФМ: 0000000000871818 [06:11:04]line ФД: 108503 [06:11:04]line ФПД: 61362486555137 [06:11:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T061105&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108503&fm=61362486555137&tin=02508201610067®Number=0000000000091911&sum=98700 [06:11:05]OFD Sender: Processing packet 108503 [packets to send 29, broken 28] [06:11:05]ProducePacketName [06:11:05]name=ofd_packets/00108503 [06:11:05]OFD Sender: To server: pG, [06:11:05]CommunicateWithHost lk.salyk.kg:30040 [06:11:05]ConnectInit lk.salyk.kg [06:11:05]written 0, free lines is 4095 [06:11:05]Connected sock=10 [06:11:05]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 31 38 10 01 00 00 52 03 08 01 DB A2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 6A 36 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 CC 81 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 81 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 28 00 00 00 00 07 04 06 00 8C 81 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 79 E6 F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 D7 A7 01 00 35 04 06 00 37 CF 11 36 B2 01 05 EC 79 2C 51 3C 30 87 [06:11: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 31 38 4F 00 00 00 93 A6 47 00 FE 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 D7 A7 01 00 F4 03 04 00 1A 92 F3 65 B6 04 01 00 00 73 E4 B6 4F 43 3C 3C 4C [06:11:05]CommunicateWithHost err = 0 [06:11:05]CheckOFDResponse [06:11:05]1017 (14) - 77093643461234 [06:11:05]1041 (16) - 0000000000871818 [06:11:05]1040 (4) - 108503 [06:11:05]1012 (4) - 15.03.2024 00:11 [06:11:05]1206 (1) - 0 [06:11:05]OFD Sender: Remove packet 108503 [06:11:05]ProducePacketName [06:11:05]name=ofd_packets/00108503 [06:11:05]NVStorageDeleteData [06:11:05]Write to MH i2c: 01 00 00 0B 16 21 [06:11:05]Write i2c OK [06:11:05]MH_I2C_Read... [06:11:05]Read from MH i2c: 01 [06:11:05]MH_I2C_Read... [06:11:05]Read from MH i2c: 01 07 00 [06:11:05]MH_I2C_Read... [06:11:05]Read from MH i2c: 01 07 00 0B 16 00 00 00 00 00 C5 0C F9 [06:11:05]RasterBufferAndPrint [06:11:05]line [06:11:05]line [06:11:05]line [06:11:05]line [06:11:05]line [06:11:05]written 0, free lines is 3277 [06:11:05]MH_Cut [06:11:05]Write to MH i2c: D1 01 00 12 16 01 FA [06:11:05]Write i2c OK [06:11:05]MH_I2C_Read... [06:11:05]Read from MH i2c: D1 [06:11:05]MH_I2C_Read... [06:11:05]Read from MH i2c: D1 01 00 [06:11:05]MH_I2C_Read... [06:11:05]Read from MH i2c: D1 01 00 12 16 00 F9 [06:11:05]Write to MH i2c: 01 00 00 13 16 29 [06:11:05]Write i2c OK [06:11:05]MH_I2C_Read... [06:11:05]OFD Sender: No OFD packet to send [06:11:06]*** Cut start [06:11:06]*** Purtial cut [06:11:06]*** Stage 1: CUTSNS_PIN = 1 [06:11:06]Read from MH i2c: 01 [06:11:06]MH_I2C_Read... [06:11:06]*** Stop cut motor [06:11:06]*** Cut end [06:11:06]Read from MH i2c: 01 07 00 [06:11:06]MH_I2C_Read... [06:11:06]Read from MH i2c: 01 07 00 13 16 00 00 00 00 00 FF 0F 3E [06:11:06]process_action close_receipt done [06:11:06]requested_data is exist [06:11:06]produce_requested_data [06:11:06]requested_item fm.sn is exist - process it [06:11:06]wFMCommunicate request_size=4 [06:11:06]MH_SAM_APDU [06:11:06]CAPDU: 80 11 00 00 [06:11:06]Write to MH i2c: E2 08 00 14 16 80 11 00 00 00 00 00 00 A4 [06:11:06]Write i2c OK [06:11:06]MH_I2C_Read... [06:11:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:11:06]Read from MH i2c: E2 [06:11:06]MH_I2C_Read... [06:11:06]Read from MH i2c: E2 17 00 [06:11:06]MH_I2C_Read... [06:11:06]Read from MH i2c: E2 17 00 14 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 F8 [06:11:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [06:11:06]wFMCommunicate OK [06:11:06]requested_item fd.num is exist - process it [06:11:06]SAM_PROTO_GetFieldsCounters [06:11:06]wFMCommunicate request_size=4 [06:11:06]MH_SAM_APDU [06:11:06]CAPDU: 80 13 00 00 [06:11:06]Write to MH i2c: E2 08 00 15 16 80 13 00 00 00 00 00 00 A7 [06:11:06]Write i2c OK [06:11:06]MH_I2C_Read... [06:11:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:11:06]Read from MH i2c: E2 [06:11:06]MH_I2C_Read... [06:11:06]Read from MH i2c: E2 62 00 [06:11:06]MH_I2C_Read... [06:11:06]Read from MH i2c: E2 62 00 15 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 D7 A7 01 00 0E 04 04 00 40 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 D3 [06:11: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 D7 A7 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:11:06]wFMCommunicate OK [06:11:06]SAM_PROTO_GetFieldsCounters done [06:11:06]requested_item shift.num is exist - process it [06:11:06]requested_item shift.opened is exist - process it [06:11:06]req_shift_opened [06:11:06]FM_GetShiftState [06:11:06]SAM_PROTO_GetShiftState [06:11:06]wFMCommunicate request_size=4 [06:11:06]MH_SAM_APDU [06:11:06]CAPDU: 80 13 01 00 [06:11:06]Write to MH i2c: E2 08 00 16 16 80 13 01 00 00 00 00 00 A9 [06:11:06]Write i2c OK [06:11:06]MH_I2C_Read... [06:11:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:11:06]Read from MH i2c: E2 [06:11:06]MH_I2C_Read... [06:11:06]Read from MH i2c: E2 0E 00 [06:11:06]MH_I2C_Read... [06:11:06]Read from MH i2c: E2 0E 00 16 16 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 DD [06:11:06]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [06:11:06]wFMCommunicate OK [06:11:06]SAM_PROTO_GetShiftState done [06:11:06]FM_GetShiftState done [06:11:06]req_shift_opened done [06:11:06]requested_item shift.open_date is exist - process it [06:11:06]req_shift_open_date [06:11:06]req_shift_open_date done [06:11:06]produce_requested_data done [06:11:06]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108503,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [06:11:06]process_action_free close_receipt [06:11:06]json_value_free [06:11:06]json_value_free done [06:11:06]process_json_proto returns [06:11:06]Send response to host [06:11:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108503,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [06:11:06]free response buf [06:11:06]execute_script done [06:11:06]execute_script returns [06:11:06]free content buf [06:11:06]Sock 8.Close socket [06:11:06]Sock 8.Thread stoped [06:11:10]OFD Sender: No OFD packet to send [06:11:15]OFD Sender: No OFD packet to send [06:11:20]OFD Sender: No OFD packet to send [06:11:25]OFD Sender: No OFD packet to send [06:11:30]OFD Sender: No OFD packet to send [06:11:35]OFD Sender: No OFD packet to send [06:11:40]OFD Sender: No OFD packet to send [06:11:45]OFD Sender: No OFD packet to send [06:11:50]OFD Sender: No OFD packet to send [06:11:55]OFD Sender: No OFD packet to send [06:12:00]OFD Sender: No OFD packet to send [06:12:05]OFD Sender: No OFD packet to send [06:12:10]OFD Sender: No OFD packet to send [06:12:15]OFD Sender: No OFD packet to send [06:12:20]OFD Sender: No OFD packet to send [06:12:25]OFD Sender: No OFD packet to send [06:12:30]OFD Sender: No OFD packet to send [06:12:35]OFD Sender: No OFD packet to send [06:12:40]OFD Sender: No OFD packet to send [06:12:45]OFD Sender: No OFD packet to send [06:12:50]OFD Sender: No OFD packet to send [06:12:55]OFD Sender: No OFD packet to send [06:13:00]OFD Sender: No OFD packet to send [06:13:05]OFD Sender: No OFD packet to send [06:13:10]OFD Sender: No OFD packet to send [06:13:15]OFD Sender: No OFD packet to send [06:13:20]OFD Sender: No OFD packet to send [06:13:25]OFD Sender: No OFD packet to send [06:13:30]OFD Sender: No OFD packet to send [06:13:35]OFD Sender: No OFD packet to send [06:13:40]OFD Sender: No OFD packet to send [06:13:45]OFD Sender: No OFD packet to send [06:13:50]OFD Sender: No OFD packet to send [06:13:55]OFD Sender: No OFD packet to send [06:14:00]OFD Sender: No OFD packet to send [06:14:05]OFD Sender: No OFD packet to send [06:14:10]OFD Sender: No OFD packet to send [06:14:15]OFD Sender: No OFD packet to send [06:14:20]OFD Sender: No OFD packet to send [06:14:25]OFD Sender: No OFD packet to send [06:14:30]OFD Sender: No OFD packet to send [06:14:35]OFD Sender: No OFD packet to send [06:14:40]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:44]accept exits with 9 [06:19:44]New connection [06:19:44]New thread 3067198820 created [06:19:44]Thread 3067342180 joined [06:19:44]Waiting for new connection... [06:19:44] Sock 9.Parse request [06:19:44]Sock 9.Check first char [06:19:44]Sock 9.First char is OK [06:19:44]request: POST /json_proto HTTP/1.0 [06:19:44]Method: POST [06:19:44]URL: /json_proto [06:19:44]Method is POST - this is cgi request [06:19:44]url: /json_proto [06:19:44]query_string will be loaded in cgi processing [06:19:44]execute_cgi json_proto POST (null) [06:19:44]execute_cgi path=json_proto method=POST [06:19:44]POST find Content-Length [06:19:44]Host: 172.17.32.69:8080 [06:19:44]Content-Length: 683 [06:19:44]Content-Type: application/json [06:19:44] [06:19:44]POST finish read [06:19:44]Found Content-Length = 683 [06:19:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:19:44]execute_script... [06:19:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:19:44]POST & json_proto [06:19:44]process_json_proto [06:19:44]json parsed OK: [06:19:44]protocol is kg_v1.0 [06:19:44]action value=close_receipt [06:19:44]process_action close_receipt [06:19:44]cmd_close_receipt [06:19:44]MH_GetDate [06:19:44]Write to MH i2c: F0 00 00 17 16 1C [06:19:44]Write i2c OK [06:19:44]MH_I2C_Read... [06:19:44]Read from MH i2c: F0 [06:19:44]MH_I2C_Read... [06:19:44]Read from MH i2c: F0 09 00 [06:19:44]MH_I2C_Read... [06:19:44]Read from MH i2c: F0 09 00 17 16 00 83 E8 F3 65 D5 0F D3 65 04 [06:19:44]GetLastDocTimeStamp 1710483065 [06:19:44]current date 1710483587 [06:19:44]FM_GetShiftState [06:19:44]SAM_PROTO_GetShiftState [06:19:44]wFMCommunicate request_size=4 [06:19:44]MH_SAM_APDU [06:19:44]CAPDU: 80 13 01 00 [06:19:44]Write to MH i2c: E2 08 00 18 16 80 13 01 00 00 00 00 00 AB [06:19:44]Write i2c OK [06:19:44]MH_I2C_Read... [06:19:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:19:44]Read from MH i2c: E2 [06:19:44]MH_I2C_Read... [06:19:44]Read from MH i2c: E2 0E 00 [06:19:44]MH_I2C_Read... [06:19:44]Read from MH i2c: E2 0E 00 18 16 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 DF [06:19:44]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [06:19:44]wFMCommunicate OK [06:19:44]SAM_PROTO_GetShiftState done [06:19:44]FM_GetShiftState done [06:19:44]opened in 1710461757 [06:19:44]opened+sec_in_day 1710548157 [06:19:44]quantity*price = 100030 [06:19:44]sum+1 = 100031 [06:19:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 27 15.03.2024 06:19 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108504 ФПД: 233256143020765 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T061947&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108504&fm=233256143020765&tin=02508201610067®Number=0000000000091911&sum=100000 [06:19:45]StoreToDocumentArchive [06:19:45]shift 320 fd 108504 [06:19:45]save to /storage/0320/doc_00108504 [06:19:45]save last doc name /storage/0320/doc_00108504 to /storage/kkm_last_doc_name [06:19:45]save OK [06:19:45]Clear old archive folders... [06:19:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:19:45]tlvbuf is 000B2B80 [06:19:45]SAM_PROTO_ClearQueue [06:19:45]wFMCommunicate request_size=4 [06:19:45]MH_SAM_APDU [06:19:45]CAPDU: 80 09 00 00 [06:19:45]Write to MH i2c: E2 08 00 25 16 80 09 00 00 00 00 00 00 AD [06:19:45]Write i2c OK [06:19:45]MH_I2C_Read... [06:19:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:19:45]Read from MH i2c: E2 [06:19:45]MH_I2C_Read... [06:19:45]Read from MH i2c: E2 03 00 [06:19:45]MH_I2C_Read... [06:19:45]Read from MH i2c: E2 03 00 25 16 00 90 00 AF [06:19:45]RAPDU: 90 00 [06:19:45]wFMCommunicate OK [06:19:45]SAM_PROTO_ClearQueue done [06:19:45]KKMCreateOFDPacket [06:19:45]OFDProtocolAddRootSTLVToBuf [06:19:45]FM_MakeSignedData [06:19:45]FM_MakeSignedData [06:19:45]SAM_PROTO_SignData [06:19:45]wFMCommunicate request_size=4 [06:19:45]MH_SAM_APDU [06:19:45]CAPDU: 80 0D 01 02 [06:19:45]Write to MH i2c: E2 08 00 26 16 80 0D 01 02 00 00 00 00 B5 [06:19:45]Write i2c OK [06:19:45]MH_I2C_Read... [06:19:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:19:45]Read from MH i2c: E2 [06:19:45]MH_I2C_Read... [06:19:45]Read from MH i2c: E2 03 00 [06:19:45]MH_I2C_Read... [06:19:45]Read from MH i2c: E2 03 00 26 16 00 90 00 B0 [06:19:45]RAPDU: 90 00 [06:19:45]wFMCommunicate OK [06:19:45]wFMCommunicate request_size=255 [06:19:45]MH_SAM_APDU [06:19:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 1B 00 00 00 F4 03 04 00 83 E8 F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 D8 A7 01 00 35 04 06 00 D4 [06:19:45]Write to MH i2c: E2 02 01 27 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 1B 00 00 00 F4 03 04 00 83 E8 F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 D8 A7 01 00 35 04 06 00 D4 00 00 87 [06:19:45]Write i2c OK [06:19:45]MH_I2C_Read... [06:19:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:19:45]Read from MH i2c: E2 [06:19:45]MH_I2C_Read... [06:19:45]Read from MH i2c: E2 03 00 [06:19:45]MH_I2C_Read... [06:19:45]Read from MH i2c: E2 03 00 27 16 00 90 00 B1 [06:19:45]RAPDU: 90 00 [06:19:45]wFMCommunicate OK [06:19:45]wFMCommunicate request_size=10 [06:19:45]MH_SAM_APDU [06:19:45]CAPDU: 80 0D 02 02 05 25 2D 8B E2 DD [06:19:45]Write to MH i2c: E2 0D 00 28 16 80 0D 02 02 05 00 25 2D 8B E2 DD 00 00 5E [06:19:45]Write i2c OK [06:19:45]MH_I2C_Read... [06:19:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:19:45]Read from MH i2c: E2 [06:19:45]MH_I2C_Read... [06:19:45]Read from MH i2c: E2 03 00 [06:19:45]MH_I2C_Read... [06:19:45]Read from MH i2c: E2 03 00 28 16 00 90 00 B2 [06:19:45]RAPDU: 90 00 [06:19:45]wFMCommunicate OK [06:19:45]wFMCommunicate request_size=4 [06:19:45]MH_SAM_APDU [06:19:45]CAPDU: 80 0D 03 02 [06:19:45]Write to MH i2c: E2 08 00 29 16 80 0D 03 02 00 00 00 00 BA [06:19:45]Write i2c OK [06:19:45]MH_I2C_Read... [06:19:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:19:45]Read from MH i2c: E2 [06:19:45]MH_I2C_Read... [06:19:45]Read from MH i2c: E2 0B 00 [06:19:45]MH_I2C_Read... [06:19:45]Read from MH i2c: E2 0B 00 29 16 00 AF 2F 18 59 ED 5F 34 87 90 00 11 [06:19:45]RAPDU: AF 2F 18 59 ED 5F 34 87 90 00 [06:19:45]wFMCommunicate OK [06:19:45]SAM_PROTO_SignData done [06:19:45]FM_MakeSignedData done [06:19:45]CreateOFDProtocolMessage [06:19:45]wFMCommunicate request_size=4 [06:19:45]MH_SAM_APDU [06:19:45]CAPDU: 80 11 00 00 [06:19:45]Write to MH i2c: E2 08 00 2A 16 80 11 00 00 00 00 00 00 BA [06:19:45]Write i2c OK [06:19:45]MH_I2C_Read... [06:19:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:19:45]Read from MH i2c: E2 [06:19:45]MH_I2C_Read... [06:19:45]Read from MH i2c: E2 17 00 [06:19:45]MH_I2C_Read... [06:19:45]Read from MH i2c: E2 17 00 2A 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 0E [06:19:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [06:19:45]wFMCommunicate OK [06:19:45]CreateOFDProtocolMessage done [06:19:45]OFDSenderStorePacket 108504 [06:19:45]StoreOFDPacket docnum=108504 [06:19:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 A8 E0 07 01 2F 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 1B 00 00 00 F4 03 04 00 83 E8 F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 D8 A7 01 00 35 04 06 00 D4 25 2D 8B E2 DD AF 2F 18 59 ED 5F 34 87 [06:19:45]CheckFolder [06:19:45]dirname=/storage/ofd_packets [06:19:45]CheckFolder done [06:19:45]ProducePacketName [06:19:45]name=ofd_packets/00108504 [06:19:45]NVStorageSaveData ofd_packets/00108504 [06:19:45]File name is /storage/ofd_packets/00108504 [06:19:45]Write 301 bytes [06:19:45]NVStorageSaveData done [06:19:45]OFDSenderStorePacket done [06:19:45]KKMCreateOFDPacket done [06:19:45]NVStorageSaveData kkm_last_timestamp [06:19:45]File name is /storage/kkm_last_timestamp [06:19:45]Write 4 bytes [06:19:45]NVStorageSaveData done [06:19:45]ExternCall_PrintAddStr [06:19:45]wPrintStart [06:19:45]Write to MH i2c: 01 00 00 2B 16 41 [06:19:45]Write i2c OK [06:19:45]MH_I2C_Read... [06:19:45]Read from MH i2c: 01 [06:19:45]MH_I2C_Read... [06:19:45]Read from MH i2c: 01 07 00 [06:19:45]MH_I2C_Read... [06:19:45]Read from MH i2c: 01 07 00 2B 16 00 00 00 00 00 FF 0F 56 [06:19:45]RasterBufferAndPrint [06:19:45]line Счет N : (1)1040654 [06:19:45]line ИНН: 02508201610067 [06:19:45]line Контрольно-Кассовый Чек [06:19:45]line ПРОДАЖА [06:19:45]line ТРК (МРК, ГНК) : 13 [06:19:45]line Товар: 2710124130 [06:19:45]line Аи-92-К-5 [06:19:45]line 16.160 * 61.90 [06:19:45]line = 1000.30 [06:19:45]line НДС 12% НСП 1% [06:19:45]line > о реализуемом товаре [06:19:45]line ОКРУГЛЕНИЕ: -0.30 [06:19:45]line ИТОГО: 1000.00 [06:19:45]line Внесено: 1000.00 [06:19:45]line СДАЧА: 0.00 [06:19:45]line НСП 1% : 8.85 [06:19:45]line НДС 12% : 106.23 [06:19:45]line Наличными: 1000.00 [06:19:45]line Безнал.: 0.00 [06:19:45]line Место: АЗС № 15 "Партнер Нефть" [06:19:45]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [06:19:45]line СНО: Общий режим [06:19:45]line Чек 27 15.03.2024 06:19 [06:19:45]line Смена: 320 ФФД: 1.0 [06:19:45]line ЗНМ: 0300000266 [06:19:45]line РНМ: 0000000000091911 [06:19:45]line Версия ККМ: 001 [06:19:45]line ФМ: 0000000000871818 [06:19:45]line ФД: 108504 [06:19:45]line ФПД: 233256143020765 [06:19:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T061947&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108504&fm=233256143020765&tin=02508201610067®Number=0000000000091911&sum=100000 [06:19:46]OFD Sender: Processing packet 108504 [packets to send 29, broken 28] [06:19:46]ProducePacketName [06:19:46]name=ofd_packets/00108504 [06:19:46]OFD Sender: To server: pG, [06:19:46]CommunicateWithHost lk.salyk.kg:30040 [06:19:46]ConnectInit lk.salyk.kg [06:19:46]written 0, free lines is 4095 [06:19:46]Connected sock=10 [06:19:46]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 31 38 0F 01 00 00 A8 E0 07 01 2F 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 1B 00 00 00 F4 03 04 00 83 E8 F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 D8 A7 01 00 35 04 06 00 D4 25 2D 8B E2 DD AF 2F 18 59 ED 5F 34 87 [06:19:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 4F 00 00 00 16 A2 47 00 57 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 D8 A7 01 00 F4 03 04 00 23 94 F3 65 B6 04 01 00 00 8E 33 F1 11 34 19 E5 1C [06:19:46]CommunicateWithHost err = 0 [06:19:46]CheckOFDResponse [06:19:46]1017 (14) - 77093643461234 [06:19:46]1041 (16) - 0000000000871818 [06:19:46]1040 (4) - 108504 [06:19:46]1012 (4) - 15.03.2024 00:19 [06:19:46]1206 (1) - 0 [06:19:46]OFD Sender: Remove packet 108504 [06:19:46]ProducePacketName [06:19:46]name=ofd_packets/00108504 [06:19:46]NVStorageDeleteData [06:19:46]Write to MH i2c: 01 00 00 56 16 6C [06:19:46]Write i2c OK [06:19:46]MH_I2C_Read... [06:19:46]Read from MH i2c: 01 [06:19:46]MH_I2C_Read... [06:19:46]Read from MH i2c: 01 07 00 [06:19:46]MH_I2C_Read... [06:19:46]Read from MH i2c: 01 07 00 56 16 00 00 00 00 00 C6 0C 45 [06:19:46]RasterBufferAndPrint [06:19:46]line [06:19:46]line [06:19:46]line [06:19:46]line [06:19:46]line [06:19:46]written 0, free lines is 3276 [06:19:46]MH_Cut [06:19:46]Write to MH i2c: D1 01 00 5D 16 01 45 [06:19:46]Write i2c OK [06:19:46]MH_I2C_Read... [06:19:46]Read from MH i2c: D1 [06:19:46]MH_I2C_Read... [06:19:46]Read from MH i2c: D1 01 00 [06:19:46]MH_I2C_Read... [06:19:46]Read from MH i2c: D1 01 00 5D 16 00 44 [06:19:46]Write to MH i2c: 01 00 00 5E 16 74 [06:19:46]Write i2c OK [06:19:46]MH_I2C_Read... [06:19:46]OFD Sender: No OFD packet to send [06:19:47]*** Cut start [06:19:47]*** Purtial cut [06:19:47]*** Stage 1: CUTSNS_PIN = 1 [06:19:47]Read from MH i2c: 01 [06:19:47]MH_I2C_Read... [06:19:47]*** Stop cut motor [06:19:47]*** Cut end [06:19:47]Read from MH i2c: 01 07 00 [06:19:47]MH_I2C_Read... [06:19:47]Read from MH i2c: 01 07 00 5E 16 00 00 00 00 00 FF 0F 89 [06:19:47]process_action close_receipt done [06:19:47]requested_data is exist [06:19:47]produce_requested_data [06:19:47]requested_item fm.sn is exist - process it [06:19:47]wFMCommunicate request_size=4 [06:19:47]MH_SAM_APDU [06:19:47]CAPDU: 80 11 00 00 [06:19:47]Write to MH i2c: E2 08 00 5F 16 80 11 00 00 00 00 00 00 EF [06:19:47]Write i2c OK [06:19:47]MH_I2C_Read... [06:19:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:19:47]Read from MH i2c: E2 [06:19:47]MH_I2C_Read... [06:19:47]Read from MH i2c: E2 17 00 [06:19:47]MH_I2C_Read... [06:19:47]Read from MH i2c: E2 17 00 5F 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 43 [06:19:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [06:19:47]wFMCommunicate OK [06:19:47]requested_item fd.num is exist - process it [06:19:47]SAM_PROTO_GetFieldsCounters [06:19:47]wFMCommunicate request_size=4 [06:19:47]MH_SAM_APDU [06:19:47]CAPDU: 80 13 00 00 [06:19:47]Write to MH i2c: E2 08 00 60 16 80 13 00 00 00 00 00 00 F2 [06:19:47]Write i2c OK [06:19:47]MH_I2C_Read... [06:19:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:19:48]Read from MH i2c: E2 [06:19:48]MH_I2C_Read... [06:19:48]Read from MH i2c: E2 62 00 [06:19:48]MH_I2C_Read... [06:19:48]Read from MH i2c: E2 62 00 60 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 D8 A7 01 00 0E 04 04 00 40 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 22 [06:19: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 D8 A7 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:19:48]wFMCommunicate OK [06:19:48]SAM_PROTO_GetFieldsCounters done [06:19:48]requested_item shift.num is exist - process it [06:19:48]requested_item shift.opened is exist - process it [06:19:48]req_shift_opened [06:19:48]FM_GetShiftState [06:19:48]SAM_PROTO_GetShiftState [06:19:48]wFMCommunicate request_size=4 [06:19:48]MH_SAM_APDU [06:19:48]CAPDU: 80 13 01 00 [06:19:48]Write to MH i2c: E2 08 00 61 16 80 13 01 00 00 00 00 00 F4 [06:19:48]Write i2c OK [06:19:48]MH_I2C_Read... [06:19:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:19:48]Read from MH i2c: E2 [06:19:48]MH_I2C_Read... [06:19:48]Read from MH i2c: E2 0E 00 [06:19:48]MH_I2C_Read... [06:19:48]Read from MH i2c: E2 0E 00 61 16 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 28 [06:19:48]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [06:19:48]wFMCommunicate OK [06:19:48]SAM_PROTO_GetShiftState done [06:19:48]FM_GetShiftState done [06:19:48]req_shift_opened done [06:19:48]requested_item shift.open_date is exist - process it [06:19:48]req_shift_open_date [06:19:48]req_shift_open_date done [06:19:48]produce_requested_data done [06:19:48]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108504,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [06:19:48]process_action_free close_receipt [06:19:48]json_value_free [06:19:48]json_value_free done [06:19:48]process_json_proto returns [06:19:48]Send response to host [06:19:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108504,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [06:19:48]free response buf [06:19:48]execute_script done [06:19:48]execute_script returns [06:19:48]free content buf [06:19:48]Sock 9.Close socket [06:19:48]Sock 9.Thread stoped [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:47]OFD Sender: No OFD packet to send [06:20:52]OFD Sender: No OFD packet to send [06:20:57]OFD Sender: No OFD packet to send [06:21:02]OFD Sender: No OFD packet to send [06:21:07]OFD Sender: No OFD packet to send [06:21:12]OFD Sender: No OFD packet to send [06:21:17]OFD Sender: No OFD packet to send [06:21:22]OFD Sender: No OFD packet to send [06:21:27]OFD Sender: No OFD packet to send [06:21:32]OFD Sender: No OFD packet to send [06:21:37]OFD Sender: No OFD packet to send [06:21:42]OFD Sender: No OFD packet to send [06:21:47]OFD Sender: No OFD packet to send [06:21:52]OFD Sender: No OFD packet to send [06:21:57]OFD Sender: No OFD packet to send [06:22:02]OFD Sender: No OFD packet to send [06:22:07]OFD Sender: No OFD packet to send [06:22:12]OFD Sender: No OFD packet to send [06:22:17]OFD Sender: No OFD packet to send [06:22:22]OFD Sender: No OFD packet to send [06:22:27]OFD Sender: No OFD packet to send [06:22:32]OFD Sender: No OFD packet to send [06:22:37]OFD Sender: No OFD packet to send [06:22:42]OFD Sender: No OFD packet to send [06:22:47]OFD Sender: No OFD packet to send [06:22:52]OFD Sender: No OFD packet to send [06:22:57]OFD Sender: No OFD packet to send [06:23:02]OFD Sender: No OFD packet to send [06:23:07]OFD Sender: No OFD packet to send [06:23:12]OFD Sender: No OFD packet to send [06:23:17]OFD Sender: No OFD packet to send [06:23:22]OFD Sender: No OFD packet to send [06:23:27]OFD Sender: No OFD packet to send [06:23:32]OFD Sender: No OFD packet to send [06:23:37]OFD Sender: No OFD packet to send [06:23:42]OFD Sender: No OFD packet to send [06:23:47]OFD Sender: No OFD packet to send [06:23:52]OFD Sender: No OFD packet to send [06:23:57]OFD Sender: No OFD packet to send [06:24:02]OFD Sender: No OFD packet to send [06:24:07]OFD Sender: No OFD packet to send [06:24:12]OFD Sender: No OFD packet to send [06:24:17]OFD Sender: No OFD packet to send [06:24:22]OFD Sender: No OFD packet to send [06:24:27]OFD Sender: No OFD packet to send [06:24:32]OFD Sender: No OFD packet to send [06:24:37]OFD Sender: No OFD packet to send [06:24:42]OFD Sender: No OFD packet to send [06:24:47]OFD Sender: No OFD packet to send [06:24:52]OFD Sender: No OFD packet to send [06:24:57]OFD Sender: No OFD packet to send [06:25:02]OFD Sender: No OFD packet to send [06:25:07]OFD Sender: No OFD packet to send [06:25:12]OFD Sender: No OFD packet to send [06:25:17]OFD Sender: No OFD packet to send [06:25:22]OFD Sender: No OFD packet to send [06:25:27]OFD Sender: No OFD packet to send [06:25:32]OFD Sender: No OFD packet to send [06:25:37]OFD Sender: No OFD packet to send [06:25:42]OFD Sender: No OFD packet to send [06:25:47]OFD Sender: No OFD packet to send [06:25:52]OFD Sender: No OFD packet to send [06:25:57]OFD Sender: No OFD packet to send [06:26:02]OFD Sender: No OFD packet to send [06:26:07]OFD Sender: No OFD packet to send [06:26:12]OFD Sender: No OFD packet to send [06:26:17]OFD Sender: No OFD packet to send [06:26:22]OFD Sender: No OFD packet to send [06:26:27]OFD Sender: No OFD packet to send [06:26:32]OFD Sender: No OFD packet to send [06:26:37]OFD Sender: No OFD packet to send [06:26:42]OFD Sender: No OFD packet to send [06:26:47]OFD Sender: No OFD packet to send [06:26:52]OFD Sender: No OFD packet to send [06:26:57]OFD Sender: No OFD packet to send [06:27:02]OFD Sender: No OFD packet to send [06:27:07]OFD Sender: No OFD packet to send [06:27:12]OFD Sender: No OFD packet to send [06:27:17]OFD Sender: No OFD packet to send [06:27:22]OFD Sender: No OFD packet to send [06:27:27]OFD Sender: No OFD packet to send [06:27:32]OFD Sender: No OFD packet to send [06:27:37]OFD Sender: No OFD packet to send [06:27:42]OFD Sender: No OFD packet to send [06:27:46]accept exits with 8 [06:27:46]New connection [06:27:46]New thread 3067342180 created [06:27:46]Thread 3067198820 joined [06:27:46]Waiting for new connection... [06:27:46] Sock 8.Parse request [06:27:46]Sock 8.Check first char [06:27:46]Sock 8.First char is OK [06:27:46]request: POST /json_proto HTTP/1.0 [06:27:46]Method: POST [06:27:46]URL: /json_proto [06:27:46]Method is POST - this is cgi request [06:27:46]url: /json_proto [06:27:46]query_string will be loaded in cgi processing [06:27:46]execute_cgi json_proto POST (null) [06:27:46]execute_cgi path=json_proto method=POST [06:27:46]POST find Content-Length [06:27:46]Host: 172.17.32.69:8080 [06:27:46]Content-Length: 678 [06:27:46]Content-Type: application/json [06:27:46] [06:27:46]POST finish read [06:27:46]Found Content-Length = 678 [06:27:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "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" ] } } [06:27:46]execute_script... [06:27:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "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" ] } } [06:27:46]POST & json_proto [06:27:46]process_json_proto [06:27:46]json parsed OK: [06:27:46]protocol is kg_v1.0 [06:27:46]action value=close_receipt [06:27:46]process_action close_receipt [06:27:46]cmd_close_receipt [06:27:46]MH_GetDate [06:27:46]Write to MH i2c: F0 00 00 62 16 67 [06:27:46]Write i2c OK [06:27:46]MH_I2C_Read... [06:27:46]Read from MH i2c: F0 [06:27:46]MH_I2C_Read... [06:27:46]Read from MH i2c: F0 09 00 [06:27:46]MH_I2C_Read... [06:27:46]Read from MH i2c: F0 09 00 62 16 00 65 EA F3 65 D5 0F D3 65 33 [06:27:46]GetLastDocTimeStamp 1710483587 [06:27:46]current date 1710484069 [06:27:46]FM_GetShiftState [06:27:46]SAM_PROTO_GetShiftState [06:27:46]wFMCommunicate request_size=4 [06:27:46]MH_SAM_APDU [06:27:46]CAPDU: 80 13 01 00 [06:27:46]Write to MH i2c: E2 08 00 63 16 80 13 01 00 00 00 00 00 F6 [06:27:46]Write i2c OK [06:27:46]MH_I2C_Read... [06:27:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:27:46]Read from MH i2c: E2 [06:27:46]MH_I2C_Read... [06:27:46]Read from MH i2c: E2 0E 00 [06:27:46]MH_I2C_Read... [06:27:46]Read from MH i2c: E2 0E 00 63 16 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 2A [06:27:46]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [06:27:46]wFMCommunicate OK [06:27:46]SAM_PROTO_GetShiftState done [06:27:46]FM_GetShiftState done [06:27:46]opened in 1710461757 [06:27:46]opened+sec_in_day 1710548157 [06:27:46]quantity*price = 50015 [06:27:46]sum+1 = 50016 [06:27:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 28 15.03.2024 06:27 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108505 ФПД: 169009934929433 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T062749&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108505&fm=169009934929433&tin=02508201610067®Number=0000000000091911&sum=50000 [06:27:47]StoreToDocumentArchive [06:27:47]shift 320 fd 108505 [06:27:47]save to /storage/0320/doc_00108505 [06:27:47]save last doc name /storage/0320/doc_00108505 to /storage/kkm_last_doc_name [06:27:47]save OK [06:27:47]Clear old archive folders... [06:27:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:27:47]tlvbuf is 0008F7E0 [06:27:47]SAM_PROTO_ClearQueue [06:27:47]wFMCommunicate request_size=4 [06:27:47]MH_SAM_APDU [06:27:47]CAPDU: 80 09 00 00 [06:27:47]Write to MH i2c: E2 08 00 70 16 80 09 00 00 00 00 00 00 F8 [06:27:47]Write i2c OK [06:27:47]MH_I2C_Read... [06:27:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:27:47]Read from MH i2c: E2 [06:27:47]MH_I2C_Read... [06:27:47]Read from MH i2c: E2 03 00 [06:27:47]MH_I2C_Read... [06:27:47]Read from MH i2c: E2 03 00 70 16 00 90 00 FA [06:27:47]RAPDU: 90 00 [06:27:47]wFMCommunicate OK [06:27:47]SAM_PROTO_ClearQueue done [06:27:47]KKMCreateOFDPacket [06:27:47]OFDProtocolAddRootSTLVToBuf [06:27:47]FM_MakeSignedData [06:27:47]FM_MakeSignedData [06:27:47]SAM_PROTO_SignData [06:27:47]wFMCommunicate request_size=4 [06:27:47]MH_SAM_APDU [06:27:47]CAPDU: 80 0D 01 02 [06:27:47]Write to MH i2c: E2 08 00 71 16 80 0D 01 02 00 00 00 00 00 [06:27:47]Write i2c OK [06:27:47]MH_I2C_Read... [06:27:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:27:47]Read from MH i2c: E2 [06:27:47]MH_I2C_Read... [06:27:47]Read from MH i2c: E2 03 00 [06:27:47]MH_I2C_Read... [06:27:47]Read from MH i2c: E2 03 00 71 16 00 90 00 FB [06:27:47]RAPDU: 90 00 [06:27:47]wFMCommunicate OK [06:27:47]wFMCommunicate request_size=255 [06:27:47]MH_SAM_APDU [06:27:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 65 EA F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 D9 A7 01 00 35 04 06 00 99 [06:27:47]Write to MH i2c: E2 02 01 72 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 65 EA F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 D9 A7 01 00 35 04 06 00 99 00 00 F1 [06:27:47]Write i2c OK [06:27:47]MH_I2C_Read... [06:27:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:27:48]Read from MH i2c: E2 [06:27:48]MH_I2C_Read... [06:27:48]Read from MH i2c: E2 03 00 [06:27:48]MH_I2C_Read... [06:27:48]Read from MH i2c: E2 03 00 72 16 00 90 00 FC [06:27:48]RAPDU: 90 00 [06:27:48]wFMCommunicate OK [06:27:48]wFMCommunicate request_size=10 [06:27:48]MH_SAM_APDU [06:27:48]CAPDU: 80 0D 02 02 05 B6 B1 22 8E 19 [06:27:48]Write to MH i2c: E2 0D 00 73 16 80 0D 02 02 05 00 B6 B1 22 8E 19 00 00 3D [06:27:48]Write i2c OK [06:27:48]MH_I2C_Read... [06:27:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:27:48]Read from MH i2c: E2 [06:27:48]MH_I2C_Read... [06:27:48]Read from MH i2c: E2 03 00 [06:27:48]MH_I2C_Read... [06:27:48]Read from MH i2c: E2 03 00 73 16 00 90 00 FD [06:27:48]RAPDU: 90 00 [06:27:48]wFMCommunicate OK [06:27:48]wFMCommunicate request_size=4 [06:27:48]MH_SAM_APDU [06:27:48]CAPDU: 80 0D 03 02 [06:27:48]Write to MH i2c: E2 08 00 74 16 80 0D 03 02 00 00 00 00 05 [06:27:48]Write i2c OK [06:27:48]MH_I2C_Read... [06:27:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:27:48]Read from MH i2c: E2 [06:27:48]MH_I2C_Read... [06:27:48]Read from MH i2c: E2 0B 00 [06:27:48]MH_I2C_Read... [06:27:48]Read from MH i2c: E2 0B 00 74 16 00 1C 9B 8B D9 36 B6 BD E6 90 00 B0 [06:27:48]RAPDU: 1C 9B 8B D9 36 B6 BD E6 90 00 [06:27:48]wFMCommunicate OK [06:27:48]SAM_PROTO_SignData done [06:27:48]FM_MakeSignedData done [06:27:48]CreateOFDProtocolMessage [06:27:48]wFMCommunicate request_size=4 [06:27:48]MH_SAM_APDU [06:27:48]CAPDU: 80 11 00 00 [06:27:48]Write to MH i2c: E2 08 00 75 16 80 11 00 00 00 00 00 00 05 [06:27:48]Write i2c OK [06:27:48]MH_I2C_Read... [06:27:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:27:48]Read from MH i2c: E2 [06:27:48]MH_I2C_Read... [06:27:48]Read from MH i2c: E2 17 00 [06:27:48]MH_I2C_Read... [06:27:48]Read from MH i2c: E2 17 00 75 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 59 [06:27:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [06:27:48]wFMCommunicate OK [06:27:48]CreateOFDProtocolMessage done [06:27:48]OFDSenderStorePacket 108505 [06:27:48]StoreOFDPacket docnum=108505 [06:27:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 FA 17 07 01 7A D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 65 EA F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 D9 A7 01 00 35 04 06 00 99 B6 B1 22 8E 19 1C 9B 8B D9 36 B6 BD E6 [06:27:48]CheckFolder [06:27:48]dirname=/storage/ofd_packets [06:27:48]CheckFolder done [06:27:48]ProducePacketName [06:27:48]name=ofd_packets/00108505 [06:27:48]NVStorageSaveData ofd_packets/00108505 [06:27:48]File name is /storage/ofd_packets/00108505 [06:27:48]Write 301 bytes [06:27:48]NVStorageSaveData done [06:27:48]OFDSenderStorePacket done [06:27:48]KKMCreateOFDPacket done [06:27:48]NVStorageSaveData kkm_last_timestamp [06:27:48]File name is /storage/kkm_last_timestamp [06:27:48]Write 4 bytes [06:27:48]NVStorageSaveData done [06:27:48]ExternCall_PrintAddStr [06:27:48]wPrintStart [06:27:48]Write to MH i2c: 01 00 00 76 16 8C [06:27:48]Write i2c OK [06:27:48]MH_I2C_Read... [06:27:48]Read from MH i2c: 01 [06:27:48]MH_I2C_Read... [06:27:48]Read from MH i2c: 01 07 00 [06:27:48]MH_I2C_Read... [06:27:48]Read from MH i2c: 01 07 00 76 16 00 00 00 00 00 FF 0F A1 [06:27:48]RasterBufferAndPrint [06:27:48]line Счет N : (1)1040655 [06:27:48]line ИНН: 02508201610067 [06:27:48]line Контрольно-Кассовый Чек [06:27:48]line ПРОДАЖА [06:27:48]line ТРК (МРК, ГНК) : 23 [06:27:48]line Товар: 2710124130 [06:27:48]line Аи-92-К-5 [06:27:48]line 8.080 * 61.90 [06:27:48]line = 500.15 [06:27:48]line НДС 12% НСП 1% [06:27:48]line > о реализуемом товаре [06:27:48]line ОКРУГЛЕНИЕ: -0.15 [06:27:48]line ИТОГО: 500.00 [06:27:48]line Внесено: 500.00 [06:27:48]line СДАЧА: 0.00 [06:27:48]line НСП 1% : 4.43 [06:27:48]line НДС 12% : 53.11 [06:27:48]line Наличными: 500.00 [06:27:48]line Безнал.: 0.00 [06:27:48]line Место: АЗС № 15 "Партнер Нефть" [06:27:48]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [06:27:48]line СНО: Общий режим [06:27:48]line Чек 28 15.03.2024 06:27 [06:27:48]line Смена: 320 ФФД: 1.0 [06:27:48]line ЗНМ: 0300000266 [06:27:48]line РНМ: 0000000000091911 [06:27:48]line Версия ККМ: 001 [06:27:48]line ФМ: 0000000000871818 [06:27:48]line ФД: 108505 [06:27:48]line ФПД: 169009934929433 [06:27:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T062749&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108505&fm=169009934929433&tin=02508201610067®Number=0000000000091911&sum=50000 [06:27:48]OFD Sender: Processing packet 108505 [packets to send 29, broken 28] [06:27:48]ProducePacketName [06:27:48]name=ofd_packets/00108505 [06:27:48]OFD Sender: To server: pG, [06:27:48]CommunicateWithHost lk.salyk.kg:30040 [06:27:48]ConnectInit lk.salyk.kg [06:27:48]written 0, free lines is 4095 [06:27:48]Connected sock=10 [06:27: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 31 38 0F 01 00 00 FA 17 07 01 7A D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 65 EA F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 D9 A7 01 00 35 04 06 00 99 B6 B1 22 8E 19 1C 9B 8B D9 36 B6 BD E6 [06:27: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 31 38 4F 00 00 00 FC 50 47 00 61 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 31 38 10 04 04 00 D9 A7 01 00 F4 03 04 00 06 96 F3 65 B6 04 01 00 00 F1 A1 BB E2 D2 32 4D 15 [06:27:48]CommunicateWithHost err = 0 [06:27:48]CheckOFDResponse [06:27:48]1017 (14) - 77093643461234 [06:27:48]1041 (16) - 0000000000871818 [06:27:48]1040 (4) - 108505 [06:27:48]1012 (4) - 15.03.2024 00:27 [06:27:48]1206 (1) - 0 [06:27:48]OFD Sender: Remove packet 108505 [06:27:48]ProducePacketName [06:27:48]name=ofd_packets/00108505 [06:27:48]NVStorageDeleteData [06:27:48]Write to MH i2c: 01 00 00 A1 16 B7 [06:27:48]Write i2c OK [06:27:48]MH_I2C_Read... [06:27:48]Read from MH i2c: 01 [06:27:48]MH_I2C_Read... [06:27:48]Read from MH i2c: 01 07 00 [06:27:48]MH_I2C_Read... [06:27:48]Read from MH i2c: 01 07 00 A1 16 00 00 00 00 00 CA 0C 94 [06:27:48]RasterBufferAndPrint [06:27:48]line [06:27:48]line [06:27:48]line [06:27:48]line [06:27:48]line [06:27:48]written 0, free lines is 3277 [06:27:48]MH_Cut [06:27:48]Write to MH i2c: D1 01 00 A8 16 01 90 [06:27:48]Write i2c OK [06:27:48]MH_I2C_Read... [06:27:48]Read from MH i2c: D1 [06:27:48]MH_I2C_Read... [06:27:48]Read from MH i2c: D1 01 00 [06:27:49]MH_I2C_Read... [06:27:49]Read from MH i2c: D1 01 00 A8 16 00 8F [06:27:49]Write to MH i2c: 01 00 00 A9 16 BF [06:27:49]Write i2c OK [06:27:49]MH_I2C_Read... [06:27:49]OFD Sender: No OFD packet to send [06:27:49]*** Cut start [06:27:49]*** Purtial cut [06:27:49]*** Stage 1: CUTSNS_PIN = 1 [06:27:50]Read from MH i2c: 01 [06:27:50]MH_I2C_Read... [06:27:50]*** Stop cut motor [06:27:50]*** Cut end [06:27:50]Read from MH i2c: 01 07 00 [06:27:50]MH_I2C_Read... [06:27:50]Read from MH i2c: 01 07 00 A9 16 00 00 00 00 00 FF 0F D4 [06:27:50]process_action close_receipt done [06:27:50]requested_data is exist [06:27:50]produce_requested_data [06:27:50]requested_item fm.sn is exist - process it [06:27:50]wFMCommunicate request_size=4 [06:27:50]MH_SAM_APDU [06:27:50]CAPDU: 80 11 00 00 [06:27:50]Write to MH i2c: E2 08 00 AA 16 80 11 00 00 00 00 00 00 3A [06:27:50]Write i2c OK [06:27:50]MH_I2C_Read... [06:27:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:27:50]Read from MH i2c: E2 [06:27:50]MH_I2C_Read... [06:27:50]Read from MH i2c: E2 17 00 [06:27:50]MH_I2C_Read... [06:27:50]Read from MH i2c: E2 17 00 AA 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 8E [06:27:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [06:27:50]wFMCommunicate OK [06:27:50]requested_item fd.num is exist - process it [06:27:50]SAM_PROTO_GetFieldsCounters [06:27:50]wFMCommunicate request_size=4 [06:27:50]MH_SAM_APDU [06:27:50]CAPDU: 80 13 00 00 [06:27:50]Write to MH i2c: E2 08 00 AB 16 80 13 00 00 00 00 00 00 3D [06:27:50]Write i2c OK [06:27:50]MH_I2C_Read... [06:27:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:27:50]Read from MH i2c: E2 [06:27:50]MH_I2C_Read... [06:27:50]Read from MH i2c: E2 62 00 [06:27:50]MH_I2C_Read... [06:27:50]Read from MH i2c: E2 62 00 AB 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 D9 A7 01 00 0E 04 04 00 40 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 71 [06:27:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 D9 A7 01 00 0E 04 04 00 40 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 [06:27:50]wFMCommunicate OK [06:27:50]SAM_PROTO_GetFieldsCounters done [06:27:50]requested_item shift.num is exist - process it [06:27:50]requested_item shift.opened is exist - process it [06:27:50]req_shift_opened [06:27:50]FM_GetShiftState [06:27:50]SAM_PROTO_GetShiftState [06:27:50]wFMCommunicate request_size=4 [06:27:50]MH_SAM_APDU [06:27:50]CAPDU: 80 13 01 00 [06:27:50]Write to MH i2c: E2 08 00 AC 16 80 13 01 00 00 00 00 00 3F [06:27:50]Write i2c OK [06:27:50]MH_I2C_Read... [06:27:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:27:50]Read from MH i2c: E2 [06:27:50]MH_I2C_Read... [06:27:50]Read from MH i2c: E2 0E 00 [06:27:50]MH_I2C_Read... [06:27:50]Read from MH i2c: E2 0E 00 AC 16 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 73 [06:27:50]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [06:27:50]wFMCommunicate OK [06:27:50]SAM_PROTO_GetShiftState done [06:27:50]FM_GetShiftState done [06:27:50]req_shift_opened done [06:27:50]requested_item shift.open_date is exist - process it [06:27:50]req_shift_open_date [06:27:50]req_shift_open_date done [06:27:50]produce_requested_data done [06:27:50]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108505,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [06:27:50]process_action_free close_receipt [06:27:50]json_value_free [06:27:50]json_value_free done [06:27:50]process_json_proto returns [06:27:50]Send response to host [06:27:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108505,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [06:27:50]free response buf [06:27:50]execute_script done [06:27:50]execute_script returns [06:27:50]free content buf [06:27:50]Sock 8.Close socket [06:27:50]Sock 8.Thread stoped [06:27:54]OFD Sender: No OFD packet to send [06:27:59]OFD Sender: No OFD packet to send [06:28:04]OFD Sender: No OFD packet to send [06:28:09]OFD Sender: No OFD packet to send [06:28:14]OFD Sender: No OFD packet to send [06:28:19]OFD Sender: No OFD packet to send [06:28:24]OFD Sender: No OFD packet to send [06:28:29]OFD Sender: No OFD packet to send [06:28:34]OFD Sender: No OFD packet to send [06:28:39]OFD Sender: No OFD packet to send [06:28:44]OFD Sender: No OFD packet to send [06:28:49]OFD Sender: No OFD packet to send [06:28:54]OFD Sender: No OFD packet to send [06:28:59]OFD Sender: No OFD packet to send [06:29:04]OFD Sender: No OFD packet to send [06:29:09]OFD Sender: No OFD packet to send [06:29:14]OFD Sender: No OFD packet to send [06:29:19]OFD Sender: No OFD packet to send [06:29:24]OFD Sender: No OFD packet to send [06:29:29]OFD Sender: No OFD packet to send [06:29:34]OFD Sender: No OFD packet to send [06:29:39]OFD Sender: No OFD packet to send [06:29:44]OFD Sender: No OFD packet to send [06:29:49]OFD Sender: No OFD packet to send [06:29:54]OFD Sender: No OFD packet to send [06:29:59]OFD Sender: No OFD packet to send [06:30:04]OFD Sender: No OFD packet to send [06:30:09]OFD Sender: No OFD packet to send [06:30:14]OFD Sender: No OFD packet to send [06:30:19]OFD Sender: No OFD packet to send [06:30:24]OFD Sender: No OFD packet to send [06:30:29]OFD Sender: No OFD packet to send [06:30:34]OFD Sender: No OFD packet to send [06:30:39]OFD Sender: No OFD packet to send [06:30:44]OFD Sender: No OFD packet to send [06:30:49]OFD Sender: No OFD packet to send [06:30:54]OFD Sender: No OFD packet to send [06:30:59]OFD Sender: No OFD packet to send [06:31:04]OFD Sender: No OFD packet to send [06:31:09]OFD Sender: No OFD packet to send [06:31:14]OFD Sender: No OFD packet to send [06:31:19]OFD Sender: No OFD packet to send [06:31:24]OFD Sender: No OFD packet to send [06:31:29]OFD Sender: No OFD packet to send [06:31:34]OFD Sender: No OFD packet to send [06:31:39]OFD Sender: No OFD packet to send [06:31:44]OFD Sender: No OFD packet to send [06:31:49]OFD Sender: No OFD packet to send [06:31:54]OFD Sender: No OFD packet to send [06:31:59]OFD Sender: No OFD packet to send [06:32:04]OFD Sender: No OFD packet to send [06:32:09]OFD Sender: No OFD packet to send [06:32:14]OFD Sender: No OFD packet to send [06:32:19]OFD Sender: No OFD packet to send [06:32:24]OFD Sender: No OFD packet to send [06:32:29]OFD Sender: No OFD packet to send [06:32:34]OFD Sender: No OFD packet to send [06:32:39]OFD Sender: No OFD packet to send [06:32:44]OFD Sender: No OFD packet to send [06:32:49]OFD Sender: No OFD packet to send [06:32:54]OFD Sender: No OFD packet to send [06:32:59]OFD Sender: No OFD packet to send [06:33:04]OFD Sender: No OFD packet to send [06:33:09]OFD Sender: No OFD packet to send [06:33:14]OFD Sender: No OFD packet to send [06:33:19]OFD Sender: No OFD packet to send [06:33:24]OFD Sender: No OFD packet to send [06:33:29]OFD Sender: No OFD packet to send [06:33:34]OFD Sender: No OFD packet to send [06:33:39]OFD Sender: No OFD packet to send [06:33:44]OFD Sender: No OFD packet to send [06:33:49]OFD Sender: No OFD packet to send [06:33:54]OFD Sender: No OFD packet to send [06:33:59]OFD Sender: No OFD packet to send [06:34:04]OFD Sender: No OFD packet to send [06:34:09]OFD Sender: No OFD packet to send [06:34:14]OFD Sender: No OFD packet to send [06:34:19]OFD Sender: No OFD packet to send [06:34:24]OFD Sender: No OFD packet to send [06:34:29]OFD Sender: No OFD packet to send [06:34:34]OFD Sender: No OFD packet to send [06:34:39]OFD Sender: No OFD packet to send [06:34:44]OFD Sender: No OFD packet to send [06:34:49]OFD Sender: No OFD packet to send [06:34:54]OFD Sender: No OFD packet to send [06:34:59]OFD Sender: No OFD packet to send [06:35:04]OFD Sender: No OFD packet to send [06:35:09]OFD Sender: No OFD packet to send [06:35:14]OFD Sender: No OFD packet to send [06:35:19]OFD Sender: No OFD packet to send [06:35:24]OFD Sender: No OFD packet to send [06:35:29]OFD Sender: No OFD packet to send [06:35:34]OFD Sender: No OFD packet to send [06:35:39]OFD Sender: No OFD packet to send [06:35:44]OFD Sender: No OFD packet to send [06:35:49]OFD Sender: No OFD packet to send [06:35:54]OFD Sender: No OFD packet to send [06:35:59]OFD Sender: No OFD packet to send [06:36:04]OFD Sender: No OFD packet to send [06:36:09]OFD Sender: No OFD packet to send [06:36:14]OFD Sender: No OFD packet to send [06:36:19]OFD Sender: No OFD packet to send [06:36:24]OFD Sender: No OFD packet to send [06:36:29]OFD Sender: No OFD packet to send [06:36:34]OFD Sender: No OFD packet to send [06:36:39]OFD Sender: No OFD packet to send [06:36:44]OFD Sender: No OFD packet to send [06:36:49]OFD Sender: No OFD packet to send [06:36:54]OFD Sender: No OFD packet to send [06:36:59]OFD Sender: No OFD packet to send [06:37:04]OFD Sender: No OFD packet to send [06:37:09]OFD Sender: No OFD packet to send [06:37:14]OFD Sender: No OFD packet to send [06:37:19]OFD Sender: No OFD packet to send [06:37:24]OFD Sender: No OFD packet to send [06:37:29]OFD Sender: No OFD packet to send [06:37:34]OFD Sender: No OFD packet to send [06:37:39]OFD Sender: No OFD packet to send [06:37:44]OFD Sender: No OFD packet to send [06:37:49]OFD Sender: No OFD packet to send [06:37:54]OFD Sender: No OFD packet to send [06:37:59]OFD Sender: No OFD packet to send [06:38:04]OFD Sender: No OFD packet to send [06:38:09]OFD Sender: No OFD packet to send [06:38:14]OFD Sender: No OFD packet to send [06:38:19]OFD Sender: No OFD packet to send [06:38:24]OFD Sender: No OFD packet to send [06:38:29]OFD Sender: No OFD packet to send [06:38:34]OFD Sender: No OFD packet to send [06:38:39]OFD Sender: No OFD packet to send [06:38:44]OFD Sender: No OFD packet to send [06:38:49]OFD Sender: No OFD packet to send [06:38:51]accept exits with 9 [06:38:51]New connection [06:38:51]New thread 3067198820 created [06:38:51]Thread 3067342180 joined [06:38:51]Waiting for new connection... [06:38:51] Sock 9.Parse request [06:38:51]Sock 9.Check first char [06:38:51]Sock 9.First char is OK [06:38:51]request: POST /json_proto HTTP/1.0 [06:38:51]Method: POST [06:38:51]URL: /json_proto [06:38:51]Method is POST - this is cgi request [06:38:51]url: /json_proto [06:38:51]query_string will be loaded in cgi processing [06:38:51]execute_cgi json_proto POST (null) [06:38:51]execute_cgi path=json_proto method=POST [06:38:51]POST find Content-Length [06:38:51]Host: 172.17.32.69:8080 [06:38:51]Content-Length: 683 [06:38:51]Content-Type: application/json [06:38:51] [06:38:51]POST finish read [06:38:51]Found Content-Length = 683 [06:38:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 70.50, "quantity" : 14.190, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:38:51]execute_script... [06:38:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 70.50, "quantity" : 14.190, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:38:51]POST & json_proto [06:38:51]process_json_proto [06:38:51]json parsed OK: [06:38:51]protocol is kg_v1.0 [06:38:51]action value=close_receipt [06:38:51]process_action close_receipt [06:38:51]cmd_close_receipt [06:38:51]MH_GetDate [06:38:51]Write to MH i2c: F0 00 00 AD 16 B2 [06:38:51]Write i2c OK [06:38:51]MH_I2C_Read... [06:38:51]Read from MH i2c: F0 [06:38:51]MH_I2C_Read... [06:38:51]Read from MH i2c: F0 09 00 [06:38:51]MH_I2C_Read... [06:38:51]Read from MH i2c: F0 09 00 AD 16 00 FE EC F3 65 D5 0F D3 65 19 [06:38:51]GetLastDocTimeStamp 1710484069 [06:38:51]current date 1710484734 [06:38:51]FM_GetShiftState [06:38:51]SAM_PROTO_GetShiftState [06:38:51]wFMCommunicate request_size=4 [06:38:51]MH_SAM_APDU [06:38:51]CAPDU: 80 13 01 00 [06:38:51]Write to MH i2c: E2 08 00 AE 16 80 13 01 00 00 00 00 00 41 [06:38:51]Write i2c OK [06:38:51]MH_I2C_Read... [06:38:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:38:51]Read from MH i2c: E2 [06:38:51]MH_I2C_Read... [06:38:51]Read from MH i2c: E2 0E 00 [06:38:51]MH_I2C_Read... [06:38:51]Read from MH i2c: E2 0E 00 AE 16 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 75 [06:38:51]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [06:38:51]wFMCommunicate OK [06:38:51]SAM_PROTO_GetShiftState done [06:38:51]FM_GetShiftState done [06:38:51]opened in 1710461757 [06:38:51]opened+sec_in_day 1710548157 [06:38:51]quantity*price = 100039 [06:38:51]sum+1 = 100041 [06:38:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 29 15.03.2024 06:38 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108506 ФПД: 157784816747343 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T063854&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108506&fm=157784816747343&tin=02508201610067®Number=0000000000091911&sum=100000 [06:38:53]StoreToDocumentArchive [06:38:53]shift 320 fd 108506 [06:38:53]save to /storage/0320/doc_00108506 [06:38:53]save last doc name /storage/0320/doc_00108506 to /storage/kkm_last_doc_name [06:38:53]save OK [06:38:53]Clear old archive folders... [06:38:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:38:53]tlvbuf is 000D4E20 [06:38:53]SAM_PROTO_ClearQueue [06:38:53]wFMCommunicate request_size=4 [06:38:53]MH_SAM_APDU [06:38:53]CAPDU: 80 09 00 00 [06:38:53]Write to MH i2c: E2 08 00 BB 16 80 09 00 00 00 00 00 00 43 [06:38:53]Write i2c OK [06:38:53]MH_I2C_Read... [06:38:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:38:53]Read from MH i2c: E2 [06:38:53]MH_I2C_Read... [06:38:53]Read from MH i2c: E2 03 00 [06:38:53]MH_I2C_Read... [06:38:53]Read from MH i2c: E2 03 00 BB 16 00 90 00 45 [06:38:53]RAPDU: 90 00 [06:38:53]wFMCommunicate OK [06:38:53]SAM_PROTO_ClearQueue done [06:38:53]KKMCreateOFDPacket [06:38:53]OFDProtocolAddRootSTLVToBuf [06:38:53]FM_MakeSignedData [06:38:53]FM_MakeSignedData [06:38:53]SAM_PROTO_SignData [06:38:53]wFMCommunicate request_size=4 [06:38:53]MH_SAM_APDU [06:38:53]CAPDU: 80 0D 01 02 [06:38:53]Write to MH i2c: E2 08 00 BC 16 80 0D 01 02 00 00 00 00 4B [06:38:53]Write i2c OK [06:38:53]MH_I2C_Read... [06:38:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:38:53]Read from MH i2c: E2 [06:38:53]MH_I2C_Read... [06:38:53]Read from MH i2c: E2 03 00 [06:38:53]MH_I2C_Read... [06:38:53]Read from MH i2c: E2 03 00 BC 16 00 90 00 46 [06:38:53]RAPDU: 90 00 [06:38:53]wFMCommunicate OK [06:38:53]wFMCommunicate request_size=255 [06:38:53]MH_SAM_APDU [06:38:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6E 37 00 00 00 00 00 37 04 06 00 8A 1B 00 00 00 00 13 04 06 00 C8 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 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 FE EC F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 DA A7 01 00 35 04 06 00 8F [06:38:53]Write to MH i2c: E2 02 01 BD 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6E 37 00 00 00 00 00 37 04 06 00 8A 1B 00 00 00 00 13 04 06 00 C8 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 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 FE EC F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 DA A7 01 00 35 04 06 00 8F 00 00 0F [06:38:53]Write i2c OK [06:38:53]MH_I2C_Read... [06:38:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:38:53]Read from MH i2c: E2 [06:38:53]MH_I2C_Read... [06:38:53]Read from MH i2c: E2 03 00 [06:38:53]MH_I2C_Read... [06:38:53]Read from MH i2c: E2 03 00 BD 16 00 90 00 47 [06:38:53]RAPDU: 90 00 [06:38:53]wFMCommunicate OK [06:38:53]wFMCommunicate request_size=10 [06:38:53]MH_SAM_APDU [06:38:53]CAPDU: 80 0D 02 02 05 81 23 F4 03 4F [06:38:53]Write to MH i2c: E2 0D 00 BE 16 80 0D 02 02 05 00 81 23 F4 03 4F 00 00 42 [06:38:53]Write i2c OK [06:38:53]MH_I2C_Read... [06:38:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:38:53]Read from MH i2c: E2 [06:38:53]MH_I2C_Read... [06:38:53]Read from MH i2c: E2 03 00 [06:38:53]MH_I2C_Read... [06:38:53]Read from MH i2c: E2 03 00 BE 16 00 90 00 48 [06:38:53]RAPDU: 90 00 [06:38:53]wFMCommunicate OK [06:38:53]wFMCommunicate request_size=4 [06:38:53]MH_SAM_APDU [06:38:53]CAPDU: 80 0D 03 02 [06:38:53]Write to MH i2c: E2 08 00 BF 16 80 0D 03 02 00 00 00 00 50 [06:38:53]Write i2c OK [06:38:53]MH_I2C_Read... [06:38:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:38:53]Read from MH i2c: E2 [06:38:53]MH_I2C_Read... [06:38:53]Read from MH i2c: E2 0B 00 [06:38:53]MH_I2C_Read... [06:38:53]Read from MH i2c: E2 0B 00 BF 16 00 31 5D A3 23 1C A0 7E 73 90 00 52 [06:38:53]RAPDU: 31 5D A3 23 1C A0 7E 73 90 00 [06:38:53]wFMCommunicate OK [06:38:53]SAM_PROTO_SignData done [06:38:53]FM_MakeSignedData done [06:38:53]CreateOFDProtocolMessage [06:38:53]wFMCommunicate request_size=4 [06:38:53]MH_SAM_APDU [06:38:53]CAPDU: 80 11 00 00 [06:38:53]Write to MH i2c: E2 08 00 C0 16 80 11 00 00 00 00 00 00 50 [06:38:53]Write i2c OK [06:38:53]MH_I2C_Read... [06:38:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:38:53]Read from MH i2c: E2 [06:38:53]MH_I2C_Read... [06:38:53]Read from MH i2c: E2 17 00 [06:38:53]MH_I2C_Read... [06:38:53]Read from MH i2c: E2 17 00 C0 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 A4 [06:38:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [06:38:53]wFMCommunicate OK [06:38:53]CreateOFDProtocolMessage done [06:38:53]OFDSenderStorePacket 108506 [06:38:53]StoreOFDPacket docnum=108506 [06:38:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 23 86 07 01 E8 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6E 37 00 00 00 00 00 37 04 06 00 8A 1B 00 00 00 00 13 04 06 00 C8 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 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 FE EC F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 DA A7 01 00 35 04 06 00 8F 81 23 F4 03 4F 31 5D A3 23 1C A0 7E 73 [06:38:53]CheckFolder [06:38:53]dirname=/storage/ofd_packets [06:38:53]CheckFolder done [06:38:53]ProducePacketName [06:38:53]name=ofd_packets/00108506 [06:38:53]NVStorageSaveData ofd_packets/00108506 [06:38:53]File name is /storage/ofd_packets/00108506 [06:38:53]Write 301 bytes [06:38:53]NVStorageSaveData done [06:38:53]OFDSenderStorePacket done [06:38:53]KKMCreateOFDPacket done [06:38:53]NVStorageSaveData kkm_last_timestamp [06:38:53]File name is /storage/kkm_last_timestamp [06:38:53]Write 4 bytes [06:38:53]NVStorageSaveData done [06:38:53]ExternCall_PrintAddStr [06:38:53]wPrintStart [06:38:53]Write to MH i2c: 01 00 00 C1 16 D7 [06:38:53]Write i2c OK [06:38:53]MH_I2C_Read... [06:38:53]Read from MH i2c: 01 [06:38:53]MH_I2C_Read... [06:38:53]Read from MH i2c: 01 07 00 [06:38:53]MH_I2C_Read... [06:38:53]Read from MH i2c: 01 07 00 C1 16 00 00 00 00 00 FF 0F EC [06:38:53]RasterBufferAndPrint [06:38:53]line Счет N : (1)1040657 [06:38:53]line ИНН: 02508201610067 [06:38:53]line Контрольно-Кассовый Чек [06:38:53]line ПРОДАЖА [06:38:53]line ТРК (МРК, ГНК) : 12 [06:38:53]line Товар: 2710124500 [06:38:53]line Аи-95-К-5 [06:38:53]line 14.190 * 70.50 [06:38:53]line = 1000.40 [06:38:53]line НДС 12% НСП 1% [06:38:53]line > о реализуемом товаре [06:38:53]line ОКРУГЛЕНИЕ: -0.40 [06:38:53]line ИТОГО: 1000.00 [06:38:53]line Внесено: 1000.00 [06:38:53]line СДАЧА: 0.00 [06:38:53]line НСП 1% : 8.85 [06:38:53]line НДС 12% : 106.24 [06:38:53]line Наличными: 1000.00 [06:38:53]line Безнал.: 0.00 [06:38:53]line Место: АЗС № 15 "Партнер Нефть" [06:38:53]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [06:38:53]line СНО: Общий режим [06:38:53]line Чек 29 15.03.2024 06:38 [06:38:53]line Смена: 320 ФФД: 1.0 [06:38:53]line ЗНМ: 0300000266 [06:38:53]line РНМ: 0000000000091911 [06:38:53]line Версия ККМ: 001 [06:38:53]line ФМ: 0000000000871818 [06:38:53]line ФД: 108506 [06:38:53]line ФПД: 157784816747343 [06:38:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T063854&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108506&fm=157784816747343&tin=02508201610067®Number=0000000000091911&sum=100000 [06:38:53]OFD Sender: Processing packet 108506 [packets to send 29, broken 28] [06:38:53]ProducePacketName [06:38:53]name=ofd_packets/00108506 [06:38:53]OFD Sender: To server: pG, [06:38:53]CommunicateWithHost lk.salyk.kg:30040 [06:38:53]ConnectInit lk.salyk.kg [06:38:53]written 0, free lines is 4095 [06:38:54]Connected sock=10 [06:38: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 31 38 0F 01 00 00 23 86 07 01 E8 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6E 37 00 00 00 00 00 37 04 06 00 8A 1B 00 00 00 00 13 04 06 00 C8 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 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 FE EC F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 DA A7 01 00 35 04 06 00 8F 81 23 F4 03 4F 31 5D A3 23 1C A0 7E 73 [06:38: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 31 38 4F 00 00 00 08 0E 47 00 E0 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 31 38 10 04 04 00 DA A7 01 00 F4 03 04 00 9F 98 F3 65 B6 04 01 00 00 D5 5B F7 C7 CC 71 AA A0 [06:38:54]CommunicateWithHost err = 0 [06:38:54]CheckOFDResponse [06:38:54]1017 (14) - 77093643461234 [06:38:54]1041 (16) - 0000000000871818 [06:38:54]1040 (4) - 108506 [06:38:54]1012 (4) - 15.03.2024 00:38 [06:38:54]1206 (1) - 0 [06:38:54]OFD Sender: Remove packet 108506 [06:38:54]ProducePacketName [06:38:54]name=ofd_packets/00108506 [06:38:54]NVStorageDeleteData [06:38:54]Write to MH i2c: 01 00 00 EC 16 02 [06:38:54]Write i2c OK [06:38:54]MH_I2C_Read... [06:38:54]Read from MH i2c: 01 [06:38:54]MH_I2C_Read... [06:38:54]Read from MH i2c: 01 07 00 [06:38:54]MH_I2C_Read... [06:38:54]Read from MH i2c: 01 07 00 EC 16 00 00 00 00 00 C4 0C D9 [06:38:54]RasterBufferAndPrint [06:38:54]line [06:38:54]line [06:38:54]line [06:38:54]line [06:38:54]line [06:38:54]written 0, free lines is 3277 [06:38:54]MH_Cut [06:38:54]Write to MH i2c: D1 01 00 F3 16 01 DB [06:38:54]Write i2c OK [06:38:54]MH_I2C_Read... [06:38:54]Read from MH i2c: D1 [06:38:54]MH_I2C_Read... [06:38:54]Read from MH i2c: D1 01 00 [06:38:54]MH_I2C_Read... [06:38:54]Read from MH i2c: D1 01 00 F3 16 00 DA [06:38:54]Write to MH i2c: 01 00 00 F4 16 0A [06:38:54]Write i2c OK [06:38:54]MH_I2C_Read... [06:38:54]OFD Sender: No OFD packet to send [06:38:55]*** Cut start [06:38:55]*** Purtial cut [06:38:55]*** Stage 1: CUTSNS_PIN = 1 [06:38:55]Read from MH i2c: 01 [06:38:55]MH_I2C_Read... [06:38:55]*** Stop cut motor [06:38:55]*** Cut end [06:38:55]Read from MH i2c: 01 07 00 [06:38:55]MH_I2C_Read... [06:38:55]Read from MH i2c: 01 07 00 F4 16 00 00 00 00 00 FF 0F 1F [06:38:55]process_action close_receipt done [06:38:55]requested_data is exist [06:38:55]produce_requested_data [06:38:55]requested_item fm.sn is exist - process it [06:38:55]wFMCommunicate request_size=4 [06:38:55]MH_SAM_APDU [06:38:55]CAPDU: 80 11 00 00 [06:38:55]Write to MH i2c: E2 08 00 F5 16 80 11 00 00 00 00 00 00 85 [06:38:55]Write i2c OK [06:38:55]MH_I2C_Read... [06:38:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:38:55]Read from MH i2c: E2 [06:38:55]MH_I2C_Read... [06:38:55]Read from MH i2c: E2 17 00 [06:38:55]MH_I2C_Read... [06:38:55]Read from MH i2c: E2 17 00 F5 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 D9 [06:38:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [06:38:55]wFMCommunicate OK [06:38:55]requested_item fd.num is exist - process it [06:38:55]SAM_PROTO_GetFieldsCounters [06:38:55]wFMCommunicate request_size=4 [06:38:55]MH_SAM_APDU [06:38:55]CAPDU: 80 13 00 00 [06:38:55]Write to MH i2c: E2 08 00 F6 16 80 13 00 00 00 00 00 00 88 [06:38:55]Write i2c OK [06:38:55]MH_I2C_Read... [06:38:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:38:55]Read from MH i2c: E2 [06:38:55]MH_I2C_Read... [06:38:55]Read from MH i2c: E2 62 00 [06:38:55]MH_I2C_Read... [06:38:55]Read from MH i2c: E2 62 00 F6 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 DA A7 01 00 0E 04 04 00 40 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 C0 [06:38:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 DA A7 01 00 0E 04 04 00 40 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 [06:38:55]wFMCommunicate OK [06:38:55]SAM_PROTO_GetFieldsCounters done [06:38:55]requested_item shift.num is exist - process it [06:38:55]requested_item shift.opened is exist - process it [06:38:55]req_shift_opened [06:38:55]FM_GetShiftState [06:38:55]SAM_PROTO_GetShiftState [06:38:55]wFMCommunicate request_size=4 [06:38:55]MH_SAM_APDU [06:38:55]CAPDU: 80 13 01 00 [06:38:55]Write to MH i2c: E2 08 00 F7 16 80 13 01 00 00 00 00 00 8A [06:38:55]Write i2c OK [06:38:55]MH_I2C_Read... [06:38:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:38:55]Read from MH i2c: E2 [06:38:55]MH_I2C_Read... [06:38:55]Read from MH i2c: E2 0E 00 [06:38:55]MH_I2C_Read... [06:38:55]Read from MH i2c: E2 0E 00 F7 16 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 BE [06:38:55]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [06:38:55]wFMCommunicate OK [06:38:55]SAM_PROTO_GetShiftState done [06:38:55]FM_GetShiftState done [06:38:55]req_shift_opened done [06:38:55]requested_item shift.open_date is exist - process it [06:38:55]req_shift_open_date [06:38:55]req_shift_open_date done [06:38:55]produce_requested_data done [06:38:55]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108506,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [06:38:55]process_action_free close_receipt [06:38:55]json_value_free [06:38:55]json_value_free done [06:38:55]process_json_proto returns [06:38:55]Send response to host [06:38:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108506,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [06:38:55]free response buf [06:38:55]execute_script done [06:38:55]execute_script returns [06:38:55]free content buf [06:38:55]Sock 9.Close socket [06:38:55]Sock 9.Thread stoped [06:38:59]OFD Sender: No OFD packet to send [06:39:04]OFD Sender: No OFD packet to send [06:39:09]OFD Sender: No OFD packet to send [06:39:14]OFD Sender: No OFD packet to send [06:39:19]OFD Sender: No OFD packet to send [06:39:22]accept exits with 8 [06:39:22]New connection [06:39:22]New thread 3067342180 created [06:39:22]Thread 3067198820 joined [06:39:22]Waiting for new connection... [06:39:22] Sock 8.Parse request [06:39:22]Sock 8.Check first char [06:39:22]Sock 8.First char is OK [06:39:22]request: POST /json_proto HTTP/1.0 [06:39:22]Method: POST [06:39:22]URL: /json_proto [06:39:22]Method is POST - this is cgi request [06:39:22]url: /json_proto [06:39:22]query_string will be loaded in cgi processing [06:39:22]execute_cgi json_proto POST (null) [06:39:22]execute_cgi path=json_proto method=POST [06:39:22]POST find Content-Length [06:39:22]Host: 172.17.32.69:8080 [06:39:22]Content-Length: 837 [06:39:22]Content-Type: application/json [06:39:22] [06:39:22]POST finish read [06:39:22]Found Content-Length = 837 [06:39:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 35.270, "sum" : 2500.64, "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: \u0414\u0435\u043C\u0438\u0440 \u041A\u0418 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2500.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:39:22]execute_script... [06:39:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 35.270, "sum" : 2500.64, "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: \u0414\u0435\u043C\u0438\u0440 \u041A\u0418 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2500.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:39:22]POST & json_proto [06:39:22]process_json_proto [06:39:22]json parsed OK: [06:39:22]protocol is kg_v1.0 [06:39:22]action value=close_receipt [06:39:22]process_action close_receipt [06:39:22]cmd_close_receipt [06:39:22]MH_GetDate [06:39:22]Write to MH i2c: F0 00 00 F8 16 FD [06:39:22]Write i2c OK [06:39:22]MH_I2C_Read... [06:39:22]Read from MH i2c: F0 [06:39:22]MH_I2C_Read... [06:39:22]Read from MH i2c: F0 09 00 [06:39:22]MH_I2C_Read... [06:39:22]Read from MH i2c: F0 09 00 F8 16 00 1D ED F3 65 D5 0F D3 65 84 [06:39:22]GetLastDocTimeStamp 1710484734 [06:39:22]current date 1710484765 [06:39:22]FM_GetShiftState [06:39:22]SAM_PROTO_GetShiftState [06:39:22]wFMCommunicate request_size=4 [06:39:22]MH_SAM_APDU [06:39:22]CAPDU: 80 13 01 00 [06:39:22]Write to MH i2c: E2 08 00 F9 16 80 13 01 00 00 00 00 00 8C [06:39:22]Write i2c OK [06:39:22]MH_I2C_Read... [06:39:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:39:22]Read from MH i2c: E2 [06:39:22]MH_I2C_Read... [06:39:22]Read from MH i2c: E2 0E 00 [06:39:22]MH_I2C_Read... [06:39:22]Read from MH i2c: E2 0E 00 F9 16 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 C0 [06:39:22]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [06:39:22]wFMCommunicate OK [06:39:22]SAM_PROTO_GetShiftState done [06:39:22]FM_GetShiftState done [06:39:22]opened in 1710461757 [06:39:22]opened+sec_in_day 1710548157 [06:39:22]quantity*price = 250064 [06:39:22]sum+1 = 250065 [06:39:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.64 НСП 1% : 22.13 НДС 12% : 265.55 Наличными: 0.00 Безнал.: 2500.64 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 30 15.03.2024 06:39 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 Платежная система: Демир КИ Банк ФМ: 0000000000871818 ФД: 108507 ФПД: 98275295850621 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T063925&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108507&fm=98275295850621&tin=02508201610067®Number=0000000000091911&sum=250064 [06:39:23]StoreToDocumentArchive [06:39:23]shift 320 fd 108507 [06:39:23]save to /storage/0320/doc_00108507 [06:39:23]save last doc name /storage/0320/doc_00108507 to /storage/kkm_last_doc_name [06:39:23]save OK [06:39:23]Clear old archive folders... [06:39:23]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:39:23]tlvbuf is 000853C0 [06:39:23]SAM_PROTO_ClearQueue [06:39:23]wFMCommunicate request_size=4 [06:39:23]MH_SAM_APDU [06:39:23]CAPDU: 80 09 00 00 [06:39:23]Write to MH i2c: E2 08 00 06 17 80 09 00 00 00 00 00 00 8F [06:39:23]Write i2c OK [06:39:23]MH_I2C_Read... [06:39:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:39:23]Read from MH i2c: E2 [06:39:23]MH_I2C_Read... [06:39:23]Read from MH i2c: E2 03 00 [06:39:23]MH_I2C_Read... [06:39:23]Read from MH i2c: E2 03 00 06 17 00 90 00 91 [06:39:23]RAPDU: 90 00 [06:39:23]wFMCommunicate OK [06:39:23]SAM_PROTO_ClearQueue done [06:39:23]KKMCreateOFDPacket [06:39:23]OFDProtocolAddRootSTLVToBuf [06:39:23]FM_MakeSignedData [06:39:23]FM_MakeSignedData [06:39:23]SAM_PROTO_SignData [06:39:23]wFMCommunicate request_size=4 [06:39:23]MH_SAM_APDU [06:39:23]CAPDU: 80 0D 01 02 [06:39:23]Write to MH i2c: E2 08 00 07 17 80 0D 01 02 00 00 00 00 97 [06:39:23]Write i2c OK [06:39:23]MH_I2C_Read... [06:39:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:39:23]Read from MH i2c: E2 [06:39:23]MH_I2C_Read... [06:39:23]Read from MH i2c: E2 03 00 [06:39:23]MH_I2C_Read... [06:39:23]Read from MH i2c: E2 03 00 07 17 00 90 00 92 [06:39:23]RAPDU: 90 00 [06:39:23]wFMCommunicate OK [06:39:23]wFMCommunicate request_size=255 [06:39:23]MH_SAM_APDU [06:39:23]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C6 89 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 D0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 1D ED F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 DB A7 01 00 35 04 06 00 [06:39:23]Write to MH i2c: E2 02 01 08 17 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C6 89 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 D0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 1D ED F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 DB A7 01 00 35 04 06 00 00 00 F1 [06:39:23]Write i2c OK [06:39:23]MH_I2C_Read... [06:39:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:39:24]Read from MH i2c: E2 [06:39:24]MH_I2C_Read... [06:39:24]Read from MH i2c: E2 03 00 [06:39:24]MH_I2C_Read... [06:39:24]Read from MH i2c: E2 03 00 08 17 00 90 00 93 [06:39:24]RAPDU: 90 00 [06:39:24]wFMCommunicate OK [06:39:24]wFMCommunicate request_size=11 [06:39:24]MH_SAM_APDU [06:39:24]CAPDU: 80 0D 02 02 06 59 61 80 19 70 7D [06:39:24]Write to MH i2c: E2 0E 00 09 17 80 0D 02 02 06 00 59 61 80 19 70 7D 00 00 E6 [06:39:24]Write i2c OK [06:39:24]MH_I2C_Read... [06:39:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:39:24]Read from MH i2c: E2 [06:39:24]MH_I2C_Read... [06:39:24]Read from MH i2c: E2 03 00 [06:39:24]MH_I2C_Read... [06:39:24]Read from MH i2c: E2 03 00 09 17 00 90 00 94 [06:39:24]RAPDU: 90 00 [06:39:24]wFMCommunicate OK [06:39:24]wFMCommunicate request_size=4 [06:39:24]MH_SAM_APDU [06:39:24]CAPDU: 80 0D 03 02 [06:39:24]Write to MH i2c: E2 08 00 0A 17 80 0D 03 02 00 00 00 00 9C [06:39:24]Write i2c OK [06:39:24]MH_I2C_Read... [06:39:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:39:24]Read from MH i2c: E2 [06:39:24]MH_I2C_Read... [06:39:24]Read from MH i2c: E2 0B 00 [06:39:24]MH_I2C_Read... [06:39:24]Read from MH i2c: E2 0B 00 0A 17 00 1E 52 9D E9 10 9F 35 38 90 00 AF [06:39:24]RAPDU: 1E 52 9D E9 10 9F 35 38 90 00 [06:39:24]wFMCommunicate OK [06:39:24]SAM_PROTO_SignData done [06:39:24]FM_MakeSignedData done [06:39:24]CreateOFDProtocolMessage [06:39:24]wFMCommunicate request_size=4 [06:39:24]MH_SAM_APDU [06:39:24]CAPDU: 80 11 00 00 [06:39:24]Write to MH i2c: E2 08 00 0B 17 80 11 00 00 00 00 00 00 9C [06:39:24]Write i2c OK [06:39:24]MH_I2C_Read... [06:39:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:39:24]Read from MH i2c: E2 [06:39:24]MH_I2C_Read... [06:39:24]Read from MH i2c: E2 17 00 [06:39:24]MH_I2C_Read... [06:39:24]Read from MH i2c: E2 17 00 0B 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 F0 [06:39:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [06:39:24]wFMCommunicate OK [06:39:24]CreateOFDProtocolMessage done [06:39:24]OFDSenderStorePacket 108507 [06:39:24]StoreOFDPacket docnum=108507 [06:39:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 01 00 00 8F A0 08 01 C5 2B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C6 89 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 D0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 1D ED F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 DB A7 01 00 35 04 06 00 59 61 80 19 70 7D 1E 52 9D E9 10 9F 35 38 [06:39:24]CheckFolder [06:39:24]dirname=/storage/ofd_packets [06:39:24]CheckFolder done [06:39:24]ProducePacketName [06:39:24]name=ofd_packets/00108507 [06:39:24]NVStorageSaveData ofd_packets/00108507 [06:39:24]File name is /storage/ofd_packets/00108507 [06:39:24]Write 302 bytes [06:39:24]NVStorageSaveData done [06:39:24]OFDSenderStorePacket done [06:39:24]KKMCreateOFDPacket done [06:39:24]NVStorageSaveData kkm_last_timestamp [06:39:24]File name is /storage/kkm_last_timestamp [06:39:24]Write 4 bytes [06:39:24]NVStorageSaveData done [06:39:24]ExternCall_PrintAddStr [06:39:24]wPrintStart [06:39:24]Write to MH i2c: 01 00 00 0C 17 23 [06:39:24]Write i2c OK [06:39:24]MH_I2C_Read... [06:39:24]Read from MH i2c: 01 [06:39:24]MH_I2C_Read... [06:39:24]Read from MH i2c: 01 07 00 [06:39:24]MH_I2C_Read... [06:39:24]Read from MH i2c: 01 07 00 0C 17 00 00 00 00 00 FF 0F 38 [06:39:24]RasterBufferAndPrint [06:39:24]line Счет N : (1)1040656 [06:39:24]line ИНН: 02508201610067 [06:39:24]line Контрольно-Кассовый Чек [06:39:24]line ПРОДАЖА [06:39:24]line ТРК (МРК, ГНК) : 6 [06:39:24]line Товар: 2710194210 [06:39:24]line ДТ(л)-К-5 [06:39:24]line 35.270 * 70.90 [06:39:24]line = 2500.64 [06:39:24]line НДС 12% НСП 1% [06:39:24]line > о реализуемом товаре [06:39:24]line ИТОГО: 2500.64 [06:39:24]line НСП 1% : 22.13 [06:39:24]line НДС 12% : 265.55 [06:39:24]line Наличными: 0.00 [06:39:24]line Безнал.: 2500.64 [06:39:24]line Место: АЗС № 15 "Партнер Нефть" [06:39:24]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [06:39:24]line СНО: Общий режим [06:39:24]line Чек 30 15.03.2024 06:39 [06:39:24]line Смена: 320 ФФД: 1.0 [06:39:24]line ЗНМ: 0300000266 [06:39:24]line РНМ: 0000000000091911 [06:39:24]line Версия ККМ: 001 [06:39:24]line Платежная система: Демир КИ Банк [06:39:24]line ФМ: 0000000000871818 [06:39:24]line ФД: 108507 [06:39:24]line ФПД: 98275295850621 [06:39:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T063925&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108507&fm=98275295850621&tin=02508201610067®Number=0000000000091911&sum=250064 [06:39:24]OFD Sender: Processing packet 108507 [packets to send 29, broken 28] [06:39:24]ProducePacketName [06:39:24]name=ofd_packets/00108507 [06:39:24]OFD Sender: To server: pG, [06:39:24]CommunicateWithHost lk.salyk.kg:30040 [06:39:24]ConnectInit lk.salyk.kg [06:39:24]written 0, free lines is 4095 [06:39:24]Connected sock=10 [06:39:24]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 31 38 10 01 00 00 8F A0 08 01 C5 2B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C6 89 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 D0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 1D ED F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 DB A7 01 00 35 04 06 00 59 61 80 19 70 7D 1E 52 9D E9 10 9F 35 38 [06:39:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 4F 00 00 00 B9 4F 47 00 71 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 31 38 10 04 04 00 DB A7 01 00 F4 03 04 00 BE 98 F3 65 B6 04 01 00 00 D2 33 2F 3D 2B 38 46 E4 [06:39:24]CommunicateWithHost err = 0 [06:39:24]CheckOFDResponse [06:39:24]1017 (14) - 77093643461234 [06:39:24]1041 (16) - 0000000000871818 [06:39:24]1040 (4) - 108507 [06:39:24]1012 (4) - 15.03.2024 00:39 [06:39:24]1206 (1) - 0 [06:39:24]OFD Sender: Remove packet 108507 [06:39:24]ProducePacketName [06:39:24]name=ofd_packets/00108507 [06:39:24]NVStorageDeleteData [06:39:25]Write to MH i2c: 01 00 00 36 17 4D [06:39:25]Write i2c OK [06:39:25]MH_I2C_Read... [06:39:25]Read from MH i2c: 01 [06:39:25]MH_I2C_Read... [06:39:25]Read from MH i2c: 01 07 00 [06:39:25]MH_I2C_Read... [06:39:25]Read from MH i2c: 01 07 00 36 17 00 00 00 00 00 E4 0C 44 [06:39:25]RasterBufferAndPrint [06:39:25]line [06:39:25]line [06:39:25]line [06:39:25]line [06:39:25]line [06:39:25]written 0, free lines is 3305 [06:39:25]MH_Cut [06:39:25]Write to MH i2c: D1 01 00 3D 17 01 26 [06:39:25]Write i2c OK [06:39:25]MH_I2C_Read... [06:39:25]Read from MH i2c: D1 [06:39:25]MH_I2C_Read... [06:39:25]Read from MH i2c: D1 01 00 [06:39:25]MH_I2C_Read... [06:39:25]Read from MH i2c: D1 01 00 3D 17 00 25 [06:39:25]Write to MH i2c: 01 00 00 3E 17 55 [06:39:25]Write i2c OK [06:39:25]MH_I2C_Read... [06:39:25]OFD Sender: No OFD packet to send [06:39:25]*** Cut start [06:39:25]*** Purtial cut [06:39:25]*** Stage 1: CUTSNS_PIN = 1 [06:39:26]Read from MH i2c: 01 [06:39:26]MH_I2C_Read... [06:39:26]*** Stop cut motor [06:39:26]*** Cut end [06:39:26]Read from MH i2c: 01 07 00 [06:39:26]MH_I2C_Read... [06:39:26]Read from MH i2c: 01 07 00 3E 17 00 00 00 00 00 FF 0F 6A [06:39:26]process_action close_receipt done [06:39:26]requested_data is exist [06:39:26]produce_requested_data [06:39:26]requested_item fm.sn is exist - process it [06:39:26]wFMCommunicate request_size=4 [06:39:26]MH_SAM_APDU [06:39:26]CAPDU: 80 11 00 00 [06:39:26]Write to MH i2c: E2 08 00 3F 17 80 11 00 00 00 00 00 00 D0 [06:39:26]Write i2c OK [06:39:26]MH_I2C_Read... [06:39:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:39:26]Read from MH i2c: E2 [06:39:26]MH_I2C_Read... [06:39:26]Read from MH i2c: E2 17 00 [06:39:26]MH_I2C_Read... [06:39:26]Read from MH i2c: E2 17 00 3F 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 24 [06:39:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [06:39:26]wFMCommunicate OK [06:39:26]requested_item fd.num is exist - process it [06:39:26]SAM_PROTO_GetFieldsCounters [06:39:26]wFMCommunicate request_size=4 [06:39:26]MH_SAM_APDU [06:39:26]CAPDU: 80 13 00 00 [06:39:26]Write to MH i2c: E2 08 00 40 17 80 13 00 00 00 00 00 00 D3 [06:39:26]Write i2c OK [06:39:26]MH_I2C_Read... [06:39:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:39:26]Read from MH i2c: E2 [06:39:26]MH_I2C_Read... [06:39:26]Read from MH i2c: E2 62 00 [06:39:26]MH_I2C_Read... [06:39:26]Read from MH i2c: E2 62 00 40 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 DB A7 01 00 0E 04 04 00 40 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 0F [06:39:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 DB A7 01 00 0E 04 04 00 40 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 [06:39:26]wFMCommunicate OK [06:39:26]SAM_PROTO_GetFieldsCounters done [06:39:26]requested_item shift.num is exist - process it [06:39:26]requested_item shift.opened is exist - process it [06:39:26]req_shift_opened [06:39:26]FM_GetShiftState [06:39:26]SAM_PROTO_GetShiftState [06:39:26]wFMCommunicate request_size=4 [06:39:26]MH_SAM_APDU [06:39:26]CAPDU: 80 13 01 00 [06:39:26]Write to MH i2c: E2 08 00 41 17 80 13 01 00 00 00 00 00 D5 [06:39:26]Write i2c OK [06:39:26]MH_I2C_Read... [06:39:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:39:26]Read from MH i2c: E2 [06:39:26]MH_I2C_Read... [06:39:26]Read from MH i2c: E2 0E 00 [06:39:26]MH_I2C_Read... [06:39:26]Read from MH i2c: E2 0E 00 41 17 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 09 [06:39:26]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [06:39:26]wFMCommunicate OK [06:39:26]SAM_PROTO_GetShiftState done [06:39:26]FM_GetShiftState done [06:39:26]req_shift_opened done [06:39:26]requested_item shift.open_date is exist - process it [06:39:26]req_shift_open_date [06:39:26]req_shift_open_date done [06:39:26]produce_requested_data done [06:39:26]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108507,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [06:39:26]process_action_free close_receipt [06:39:26]json_value_free [06:39:26]json_value_free done [06:39:26]process_json_proto returns [06:39:26]Send response to host [06:39:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108507,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [06:39:26]free response buf [06:39:26]execute_script done [06:39:26]execute_script returns [06:39:26]free content buf [06:39:26]Sock 8.Close socket [06:39:26]Sock 8.Thread stoped [06:39:30]OFD Sender: No OFD packet to send [06:39:35]OFD Sender: No OFD packet to send [06:39:40]OFD Sender: No OFD packet to send [06:39:45]OFD Sender: No OFD packet to send [06:39:50]OFD Sender: No OFD packet to send [06:39:55]OFD Sender: No OFD packet to send [06:40:00]OFD Sender: No OFD packet to send [06:40:05]OFD Sender: No OFD packet to send [06:40:10]OFD Sender: No OFD packet to send [06:40:15]OFD Sender: No OFD packet to send [06:40:20]OFD Sender: No OFD packet to send [06:40:25]OFD Sender: No OFD packet to send [06:40:30]OFD Sender: No OFD packet to send [06:40:35]OFD Sender: No OFD packet to send [06:40:40]OFD Sender: No OFD packet to send [06:40:45]OFD Sender: No OFD packet to send [06:40:50]OFD Sender: No OFD packet to send [06:40:55]OFD Sender: No OFD packet to send [06:41:00]OFD Sender: No OFD packet to send [06:41:05]OFD Sender: No OFD packet to send [06:41:10]OFD Sender: No OFD packet to send [06:41:15]OFD Sender: No OFD packet to send [06:41:20]OFD Sender: No OFD packet to send [06:41:25]OFD Sender: No OFD packet to send [06:41:30]OFD Sender: No OFD packet to send [06:41:35]OFD Sender: No OFD packet to send [06:41:40]OFD Sender: No OFD packet to send [06:41:45]OFD Sender: No OFD packet to send [06:41:50]OFD Sender: No OFD packet to send [06:41:55]OFD Sender: No OFD packet to send [06:42:00]OFD Sender: No OFD packet to send [06:42:05]OFD Sender: No OFD packet to send [06:42:10]OFD Sender: No OFD packet to send [06:42:15]OFD Sender: No OFD packet to send [06:42:20]OFD Sender: No OFD packet to send [06:42:25]OFD Sender: No OFD packet to send [06:42:30]OFD Sender: No OFD packet to send [06:42:35]OFD Sender: No OFD packet to send [06:42:40]OFD Sender: No OFD packet to send [06:42:45]OFD Sender: No OFD packet to send [06:42:50]OFD Sender: No OFD packet to send [06:42:55]OFD Sender: No OFD packet to send [06:43:00]OFD Sender: No OFD packet to send [06:43:05]OFD Sender: No OFD packet to send [06:43:10]OFD Sender: No OFD packet to send [06:43:15]OFD Sender: No OFD packet to send [06:43:20]OFD Sender: No OFD packet to send [06:43:25]OFD Sender: No OFD packet to send [06:43:30]OFD Sender: No OFD packet to send [06:43:35]OFD Sender: No OFD packet to send [06:43:40]OFD Sender: No OFD packet to send [06:43:45]OFD Sender: No OFD packet to send [06:43:50]OFD Sender: No OFD packet to send [06:43:55]OFD Sender: No OFD packet to send [06:44:00]OFD Sender: No OFD packet to send [06:44:05]OFD Sender: No OFD packet to send [06:44:10]OFD Sender: No OFD packet to send [06:44:15]OFD Sender: No OFD packet to send [06:44:20]OFD Sender: No OFD packet to send [06:44:25]OFD Sender: No OFD packet to send [06:44:30]OFD Sender: No OFD packet to send [06:44:35]OFD Sender: No OFD packet to send [06:44:40]OFD Sender: No OFD packet to send [06:44:45]OFD Sender: No OFD packet to send [06:44:50]OFD Sender: No OFD packet to send [06:44:55]OFD Sender: No OFD packet to send [06:45:00]OFD Sender: No OFD packet to send [06:45:05]OFD Sender: No OFD packet to send [06:45:10]OFD Sender: No OFD packet to send [06:45:15]OFD Sender: No OFD packet to send [06:45:20]OFD Sender: No OFD packet to send [06:45:25]OFD Sender: No OFD packet to send [06:45:30]OFD Sender: No OFD packet to send [06:45:35]OFD Sender: No OFD packet to send [06:45:40]OFD Sender: No OFD packet to send [06:45:45]OFD Sender: No OFD packet to send [06:45:50]OFD Sender: No OFD packet to send [06:45:55]OFD Sender: No OFD packet to send [06:46:00]OFD Sender: No OFD packet to send [06:46:05]OFD Sender: No OFD packet to send [06:46:10]OFD Sender: No OFD packet to send [06:46:15]OFD Sender: No OFD packet to send [06:46:20]OFD Sender: No OFD packet to send [06:46:25]OFD Sender: No OFD packet to send [06:46:30]OFD Sender: No OFD packet to send [06:46:35]OFD Sender: No OFD packet to send [06:46:40]OFD Sender: No OFD packet to send [06:46:45]OFD Sender: No OFD packet to send [06:46:50]OFD Sender: No OFD packet to send [06:46:55]OFD Sender: No OFD packet to send [06:47:00]OFD Sender: No OFD packet to send [06:47:05]OFD Sender: No OFD packet to send [06:47:10]OFD Sender: No OFD packet to send [06:47:12]accept exits with 9 [06:47:12]New connection [06:47:12]New thread 3067198820 created [06:47:12]Thread 3067342180 joined [06:47:12]Waiting for new connection... [06:47:12] Sock 9.Parse request [06:47:12]Sock 9.Check first char [06:47:12]Sock 9.First char is OK [06:47:12]request: POST /json_proto HTTP/1.0 [06:47:12]Method: POST [06:47:12]URL: /json_proto [06:47:12]Method is POST - this is cgi request [06:47:12]url: /json_proto [06:47:12]query_string will be loaded in cgi processing [06:47:12]execute_cgi json_proto POST (null) [06:47:12]execute_cgi path=json_proto method=POST [06:47:12]POST find Content-Length [06:47:12]Host: 172.17.32.69:8080 [06:47:12]Content-Length: 678 [06:47:12]Content-Type: application/json [06:47:12] [06:47:12]POST finish read [06:47:12]Found Content-Length = 678 [06:47:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "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" ] } } [06:47:12]execute_script... [06:47:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "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" ] } } [06:47:12]POST & json_proto [06:47:12]process_json_proto [06:47:12]json parsed OK: [06:47:12]protocol is kg_v1.0 [06:47:12]action value=close_receipt [06:47:12]process_action close_receipt [06:47:12]cmd_close_receipt [06:47:12]MH_GetDate [06:47:12]Write to MH i2c: F0 00 00 42 17 48 [06:47:12]Write i2c OK [06:47:12]MH_I2C_Read... [06:47:12]Read from MH i2c: F0 [06:47:12]MH_I2C_Read... [06:47:12]Read from MH i2c: F0 09 00 [06:47:12]MH_I2C_Read... [06:47:12]Read from MH i2c: F0 09 00 42 17 00 F3 EE F3 65 D5 0F D3 65 A6 [06:47:12]GetLastDocTimeStamp 1710484765 [06:47:12]current date 1710485235 [06:47:12]FM_GetShiftState [06:47:12]SAM_PROTO_GetShiftState [06:47:12]wFMCommunicate request_size=4 [06:47:12]MH_SAM_APDU [06:47:12]CAPDU: 80 13 01 00 [06:47:12]Write to MH i2c: E2 08 00 43 17 80 13 01 00 00 00 00 00 D7 [06:47:12]Write i2c OK [06:47:12]MH_I2C_Read... [06:47:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:47:12]Read from MH i2c: E2 [06:47:12]MH_I2C_Read... [06:47:12]Read from MH i2c: E2 0E 00 [06:47:12]MH_I2C_Read... [06:47:12]Read from MH i2c: E2 0E 00 43 17 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 0B [06:47:12]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [06:47:12]wFMCommunicate OK [06:47:12]SAM_PROTO_GetShiftState done [06:47:12]FM_GetShiftState done [06:47:12]opened in 1710461757 [06:47:12]opened+sec_in_day 1710548157 [06:47:12]quantity*price = 50015 [06:47:12]sum+1 = 50016 [06:47:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 31 15.03.2024 06:47 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108508 ФПД: 62380211938445 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T064715&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108508&fm=62380211938445&tin=02508201610067®Number=0000000000091911&sum=50000 [06:47:13]StoreToDocumentArchive [06:47:13]shift 320 fd 108508 [06:47:13]save to /storage/0320/doc_00108508 [06:47:13]save last doc name /storage/0320/doc_00108508 to /storage/kkm_last_doc_name [06:47:13]save OK [06:47:13]Clear old archive folders... [06:47:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:47:13]tlvbuf is 00085700 [06:47:13]SAM_PROTO_ClearQueue [06:47:13]wFMCommunicate request_size=4 [06:47:13]MH_SAM_APDU [06:47:13]CAPDU: 80 09 00 00 [06:47:13]Write to MH i2c: E2 08 00 50 17 80 09 00 00 00 00 00 00 D9 [06:47:13]Write i2c OK [06:47:13]MH_I2C_Read... [06:47:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:47:13]Read from MH i2c: E2 [06:47:13]MH_I2C_Read... [06:47:13]Read from MH i2c: E2 03 00 [06:47:13]MH_I2C_Read... [06:47:13]Read from MH i2c: E2 03 00 50 17 00 90 00 DB [06:47:13]RAPDU: 90 00 [06:47:13]wFMCommunicate OK [06:47:13]SAM_PROTO_ClearQueue done [06:47:13]KKMCreateOFDPacket [06:47:13]OFDProtocolAddRootSTLVToBuf [06:47:13]FM_MakeSignedData [06:47:13]FM_MakeSignedData [06:47:13]SAM_PROTO_SignData [06:47:13]wFMCommunicate request_size=4 [06:47:13]MH_SAM_APDU [06:47:13]CAPDU: 80 0D 01 02 [06:47:13]Write to MH i2c: E2 08 00 51 17 80 0D 01 02 00 00 00 00 E1 [06:47:13]Write i2c OK [06:47:13]MH_I2C_Read... [06:47:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:47:13]Read from MH i2c: E2 [06:47:13]MH_I2C_Read... [06:47:13]Read from MH i2c: E2 03 00 [06:47:13]MH_I2C_Read... [06:47:13]Read from MH i2c: E2 03 00 51 17 00 90 00 DC [06:47:13]RAPDU: 90 00 [06:47:13]wFMCommunicate OK [06:47:13]wFMCommunicate request_size=255 [06:47:13]MH_SAM_APDU [06:47:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 F3 EE F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 DC A7 01 00 35 04 06 00 38 [06:47:13]Write to MH i2c: E2 02 01 52 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 F3 EE F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 DC A7 01 00 35 04 06 00 38 00 00 09 [06:47:13]Write i2c OK [06:47:13]MH_I2C_Read... [06:47:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:47:13]Read from MH i2c: E2 [06:47:13]MH_I2C_Read... [06:47:13]Read from MH i2c: E2 03 00 [06:47:13]MH_I2C_Read... [06:47:13]Read from MH i2c: E2 03 00 52 17 00 90 00 DD [06:47:13]RAPDU: 90 00 [06:47:13]wFMCommunicate OK [06:47:13]wFMCommunicate request_size=10 [06:47:13]MH_SAM_APDU [06:47:13]CAPDU: 80 0D 02 02 05 BC 06 5F A4 8D [06:47:13]Write to MH i2c: E2 0D 00 53 17 80 0D 02 02 05 00 BC 06 5F A4 8D 00 00 40 [06:47:13]Write i2c OK [06:47:13]MH_I2C_Read... [06:47:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:47:13]Read from MH i2c: E2 [06:47:13]MH_I2C_Read... [06:47:13]Read from MH i2c: E2 03 00 [06:47:13]MH_I2C_Read... [06:47:13]Read from MH i2c: E2 03 00 53 17 00 90 00 DE [06:47:13]RAPDU: 90 00 [06:47:13]wFMCommunicate OK [06:47:13]wFMCommunicate request_size=4 [06:47:13]MH_SAM_APDU [06:47:13]CAPDU: 80 0D 03 02 [06:47:13]Write to MH i2c: E2 08 00 54 17 80 0D 03 02 00 00 00 00 E6 [06:47:13]Write i2c OK [06:47:13]MH_I2C_Read... [06:47:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:47:13]Read from MH i2c: E2 [06:47:13]MH_I2C_Read... [06:47:13]Read from MH i2c: E2 0B 00 [06:47:13]MH_I2C_Read... [06:47:13]Read from MH i2c: E2 0B 00 54 17 00 8E 3B 25 B5 43 5A F4 2D 90 00 48 [06:47:13]RAPDU: 8E 3B 25 B5 43 5A F4 2D 90 00 [06:47:13]wFMCommunicate OK [06:47:13]SAM_PROTO_SignData done [06:47:13]FM_MakeSignedData done [06:47:13]CreateOFDProtocolMessage [06:47:13]wFMCommunicate request_size=4 [06:47:13]MH_SAM_APDU [06:47:13]CAPDU: 80 11 00 00 [06:47:13]Write to MH i2c: E2 08 00 55 17 80 11 00 00 00 00 00 00 E6 [06:47:13]Write i2c OK [06:47:13]MH_I2C_Read... [06:47:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:47:14]Read from MH i2c: E2 [06:47:14]MH_I2C_Read... [06:47:14]Read from MH i2c: E2 17 00 [06:47:14]MH_I2C_Read... [06:47:14]Read from MH i2c: E2 17 00 55 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 3A [06:47:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [06:47:14]wFMCommunicate OK [06:47:14]CreateOFDProtocolMessage done [06:47:14]OFDSenderStorePacket 108508 [06:47:14]StoreOFDPacket docnum=108508 [06:47:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 D5 58 07 01 A2 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 F3 EE F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 DC A7 01 00 35 04 06 00 38 BC 06 5F A4 8D 8E 3B 25 B5 43 5A F4 2D [06:47:14]CheckFolder [06:47:14]dirname=/storage/ofd_packets [06:47:14]CheckFolder done [06:47:14]ProducePacketName [06:47:14]name=ofd_packets/00108508 [06:47:14]NVStorageSaveData ofd_packets/00108508 [06:47:14]File name is /storage/ofd_packets/00108508 [06:47:14]Write 301 bytes [06:47:14]NVStorageSaveData done [06:47:14]OFDSenderStorePacket done [06:47:14]KKMCreateOFDPacket done [06:47:14]NVStorageSaveData kkm_last_timestamp [06:47:14]File name is /storage/kkm_last_timestamp [06:47:14]Write 4 bytes [06:47:14]NVStorageSaveData done [06:47:14]ExternCall_PrintAddStr [06:47:14]wPrintStart [06:47:14]Write to MH i2c: 01 00 00 56 17 6D [06:47:14]Write i2c OK [06:47:14]MH_I2C_Read... [06:47:14]Read from MH i2c: 01 [06:47:14]MH_I2C_Read... [06:47:14]Read from MH i2c: 01 07 00 [06:47:14]MH_I2C_Read... [06:47:14]Read from MH i2c: 01 07 00 56 17 00 00 00 00 00 FF 0F 82 [06:47:14]RasterBufferAndPrint [06:47:14]line Счет N : (1)1040658 [06:47:14]line ИНН: 02508201610067 [06:47:14]line Контрольно-Кассовый Чек [06:47:14]line ПРОДАЖА [06:47:14]line ТРК (МРК, ГНК) : 23 [06:47:14]line Товар: 2710124130 [06:47:14]line Аи-92-К-5 [06:47:14]line 8.080 * 61.90 [06:47:14]line = 500.15 [06:47:14]line НДС 12% НСП 1% [06:47:14]line > о реализуемом товаре [06:47:14]line ОКРУГЛЕНИЕ: -0.15 [06:47:14]line ИТОГО: 500.00 [06:47:14]line Внесено: 500.00 [06:47:14]line СДАЧА: 0.00 [06:47:14]line НСП 1% : 4.43 [06:47:14]line НДС 12% : 53.11 [06:47:14]line Наличными: 500.00 [06:47:14]line Безнал.: 0.00 [06:47:14]line Место: АЗС № 15 "Партнер Нефть" [06:47:14]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [06:47:14]line СНО: Общий режим [06:47:14]line Чек 31 15.03.2024 06:47 [06:47:14]line Смена: 320 ФФД: 1.0 [06:47:14]line ЗНМ: 0300000266 [06:47:14]line РНМ: 0000000000091911 [06:47:14]line Версия ККМ: 001 [06:47:14]line ФМ: 0000000000871818 [06:47:14]line ФД: 108508 [06:47:14]line ФПД: 62380211938445 [06:47:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T064715&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108508&fm=62380211938445&tin=02508201610067®Number=0000000000091911&sum=50000 [06:47:14]OFD Sender: Processing packet 108508 [packets to send 29, broken 28] [06:47:14]ProducePacketName [06:47:14]name=ofd_packets/00108508 [06:47:14]OFD Sender: To server: pG, [06:47:14]CommunicateWithHost lk.salyk.kg:30040 [06:47:14]ConnectInit lk.salyk.kg [06:47:14]written 0, free lines is 4095 [06:47:14]Connected sock=10 [06:47:14]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 31 38 0F 01 00 00 D5 58 07 01 A2 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 F3 EE F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 DC A7 01 00 35 04 06 00 38 BC 06 5F A4 8D 8E 3B 25 B5 43 5A F4 2D [06:47: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 31 38 4F 00 00 00 91 8F 47 00 30 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 DC A7 01 00 F4 03 04 00 94 9A F3 65 B6 04 01 00 00 23 3B 69 6F D9 45 53 33 [06:47:14]CommunicateWithHost err = 0 [06:47:14]CheckOFDResponse [06:47:14]1017 (14) - 77093643461234 [06:47:14]1041 (16) - 0000000000871818 [06:47:14]1040 (4) - 108508 [06:47:14]1012 (4) - 15.03.2024 00:47 [06:47:14]1206 (1) - 0 [06:47:14]OFD Sender: Remove packet 108508 [06:47:14]ProducePacketName [06:47:14]name=ofd_packets/00108508 [06:47:14]NVStorageDeleteData [06:47:14]Write to MH i2c: 01 00 00 81 17 98 [06:47:14]Write i2c OK [06:47:14]MH_I2C_Read... [06:47:14]Read from MH i2c: 01 [06:47:14]MH_I2C_Read... [06:47:14]Read from MH i2c: 01 07 00 [06:47:14]MH_I2C_Read... [06:47:14]Read from MH i2c: 01 07 00 81 17 00 00 00 00 00 B3 0C 5E [06:47:14]RasterBufferAndPrint [06:47:14]line [06:47:14]line [06:47:14]line [06:47:14]line [06:47:14]line [06:47:14]written 0, free lines is 3257 [06:47:14]MH_Cut [06:47:14]Write to MH i2c: D1 01 00 88 17 01 71 [06:47:14]Write i2c OK [06:47:14]MH_I2C_Read... [06:47:14]Read from MH i2c: D1 [06:47:14]MH_I2C_Read... [06:47:14]Read from MH i2c: D1 01 00 [06:47:14]MH_I2C_Read... [06:47:14]Read from MH i2c: D1 01 00 88 17 00 70 [06:47:14]Write to MH i2c: 01 00 00 89 17 A0 [06:47:14]Write i2c OK [06:47:14]MH_I2C_Read... [06:47:15]OFD Sender: No OFD packet to send [06:47:15]*** Cut start [06:47:15]*** Purtial cut [06:47:15]*** Stage 1: CUTSNS_PIN = 1 [06:47:15]Read from MH i2c: 01 [06:47:15]MH_I2C_Read... [06:47:15]*** Stop cut motor [06:47:15]*** Cut end [06:47:15]Read from MH i2c: 01 07 00 [06:47:15]MH_I2C_Read... [06:47:15]Read from MH i2c: 01 07 00 89 17 00 00 00 00 00 FF 0F B5 [06:47:15]process_action close_receipt done [06:47:15]requested_data is exist [06:47:15]produce_requested_data [06:47:15]requested_item fm.sn is exist - process it [06:47:15]wFMCommunicate request_size=4 [06:47:15]MH_SAM_APDU [06:47:15]CAPDU: 80 11 00 00 [06:47:15]Write to MH i2c: E2 08 00 8A 17 80 11 00 00 00 00 00 00 1B [06:47:15]Write i2c OK [06:47:15]MH_I2C_Read... [06:47:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:47:16]Read from MH i2c: E2 [06:47:16]MH_I2C_Read... [06:47:16]Read from MH i2c: E2 17 00 [06:47:16]MH_I2C_Read... [06:47:16]Read from MH i2c: E2 17 00 8A 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 6F [06:47:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [06:47:16]wFMCommunicate OK [06:47:16]requested_item fd.num is exist - process it [06:47:16]SAM_PROTO_GetFieldsCounters [06:47:16]wFMCommunicate request_size=4 [06:47:16]MH_SAM_APDU [06:47:16]CAPDU: 80 13 00 00 [06:47:16]Write to MH i2c: E2 08 00 8B 17 80 13 00 00 00 00 00 00 1E [06:47:16]Write i2c OK [06:47:16]MH_I2C_Read... [06:47:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:47:16]Read from MH i2c: E2 [06:47:16]MH_I2C_Read... [06:47:16]Read from MH i2c: E2 62 00 [06:47:16]MH_I2C_Read... [06:47:16]Read from MH i2c: E2 62 00 8B 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 DC A7 01 00 0E 04 04 00 40 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 5E [06:47:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 DC A7 01 00 0E 04 04 00 40 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 [06:47:16]wFMCommunicate OK [06:47:16]SAM_PROTO_GetFieldsCounters done [06:47:16]requested_item shift.num is exist - process it [06:47:16]requested_item shift.opened is exist - process it [06:47:16]req_shift_opened [06:47:16]FM_GetShiftState [06:47:16]SAM_PROTO_GetShiftState [06:47:16]wFMCommunicate request_size=4 [06:47:16]MH_SAM_APDU [06:47:16]CAPDU: 80 13 01 00 [06:47:16]Write to MH i2c: E2 08 00 8C 17 80 13 01 00 00 00 00 00 20 [06:47:16]Write i2c OK [06:47:16]MH_I2C_Read... [06:47:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:47:16]Read from MH i2c: E2 [06:47:16]MH_I2C_Read... [06:47:16]Read from MH i2c: E2 0E 00 [06:47:16]MH_I2C_Read... [06:47:16]Read from MH i2c: E2 0E 00 8C 17 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 54 [06:47:16]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [06:47:16]wFMCommunicate OK [06:47:16]SAM_PROTO_GetShiftState done [06:47:16]FM_GetShiftState done [06:47:16]req_shift_opened done [06:47:16]requested_item shift.open_date is exist - process it [06:47:16]req_shift_open_date [06:47:16]req_shift_open_date done [06:47:16]produce_requested_data done [06:47:16]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108508,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [06:47:16]process_action_free close_receipt [06:47:16]json_value_free [06:47:16]json_value_free done [06:47:16]process_json_proto returns [06:47:16]Send response to host [06:47:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108508,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [06:47:16]free response buf [06:47:16]execute_script done [06:47:16]execute_script returns [06:47:16]free content buf [06:47:16]Sock 9.Close socket [06:47:16]Sock 9.Thread stoped [06:47:20]OFD Sender: No OFD packet to send [06:47:25]OFD Sender: No OFD packet to send [06:47:30]OFD Sender: No OFD packet to send [06:47:35]OFD Sender: No OFD packet to send [06:47:40]OFD Sender: No OFD packet to send [06:47:45]OFD Sender: No OFD packet to send [06:47:50]OFD Sender: No OFD packet to send [06:47:55]OFD Sender: No OFD packet to send [06:48:00]OFD Sender: No OFD packet to send [06:48:05]OFD Sender: No OFD packet to send [06:48:10]OFD Sender: No OFD packet to send [06:48:15]OFD Sender: No OFD packet to send [06:48:19]accept exits with 8 [06:48:19]New connection [06:48:19]New thread 3067342180 created [06:48:19]Thread 3067198820 joined [06:48:19]Waiting for new connection... [06:48:19] Sock 8.Parse request [06:48:19]Sock 8.Check first char [06:48:19]Sock 8.First char is OK [06:48:19]request: POST /json_proto HTTP/1.0 [06:48:19]Method: POST [06:48:19]URL: /json_proto [06:48:19]Method is POST - this is cgi request [06:48:19]url: /json_proto [06:48:19]query_string will be loaded in cgi processing [06:48:19]execute_cgi json_proto POST (null) [06:48:19]execute_cgi path=json_proto method=POST [06:48:19]POST find Content-Length [06:48:19]Host: 172.17.32.69:8080 [06:48:19]Content-Length: 1198 [06:48:19]Content-Type: application/json [06:48:19] [06:48:19]POST finish read [06:48:19]Found Content-Length = 1198 [06:48:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040659\u000A15.03.2024 06:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 73\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 619.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3834934\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:48:19]execute_script... [06:48:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040659\u000A15.03.2024 06:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 73\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 619.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3834934\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:48:19]POST & json_proto [06:48:19]process_json_proto [06:48:19]json parsed OK: [06:48:19]protocol is kg_v1.0 [06:48:19]action value=print_text [06:48:19]process_action print_text [06:48:19]cmd_print_text [06:48:19]ExternCall_PrintAddStr [06:48:19]wPrintStart [06:48:19]Write to MH i2c: 01 00 00 8D 17 A4 [06:48:19]Write i2c OK [06:48:19]MH_I2C_Read... [06:48:19]Read from MH i2c: 01 [06:48:19]MH_I2C_Read... [06:48:19]Read from MH i2c: 01 07 00 [06:48:19]MH_I2C_Read... [06:48:19]Read from MH i2c: 01 07 00 8D 17 00 00 00 00 00 FF 0F B9 [06:48:19]RasterBufferAndPrint [06:48:19]line *****ТОВАРНЫЙ ЧЕК***** [06:48:19]line АЗС 15 [06:48:19]line Партнер нефть [06:48:19]line 02508201610067 [06:48:19]line Кассир : Максатбек у Д. [06:48:19]line Счет N : (1)1040659 [06:48:19]line 15.03.2024 06:40 [06:48:19]line ПРОДАЖА [06:48:19]line ТРК (МРК, ГНК): 73 [06:48:19]line Вид ГСМ : 2710124130 [06:48:19]line Аи-92-К-5 [06:48:19]line 10.000 x 61.90 [06:48:19]line ИТОГ: 619.00 [06:48:19]line Тип оплаты: Талоны: Партнер нефть [06:48:19]line 3834934 [06:48:19]line ______________________ [06:48:19]line (подпись) [06:48:19]written 0, free lines is 4095 [06:48:19]Write to MH i2c: 01 00 00 A2 17 B9 [06:48:19]Write i2c OK [06:48:19]MH_I2C_Read... [06:48:19]Read from MH i2c: 01 [06:48:19]MH_I2C_Read... [06:48:19]Read from MH i2c: 01 07 00 [06:48:19]MH_I2C_Read... [06:48:19]Read from MH i2c: 01 07 00 A2 17 00 00 00 00 00 F8 0D C5 [06:48:19]RasterBufferAndPrint [06:48:19]line [06:48:19]line [06:48:19]line [06:48:19]line [06:48:19]line [06:48:19]written 0, free lines is 3578 [06:48:19]MH_Cut [06:48:19]Write to MH i2c: D1 01 00 A9 17 01 92 [06:48:19]Write i2c OK [06:48:19]MH_I2C_Read... [06:48:19]Read from MH i2c: D1 [06:48:19]MH_I2C_Read... [06:48:19]Read from MH i2c: D1 01 00 [06:48:19]MH_I2C_Read... [06:48:19]Read from MH i2c: D1 01 00 A9 17 00 91 [06:48:19]Write to MH i2c: 01 00 00 AA 17 C1 [06:48:19]Write i2c OK [06:48:19]MH_I2C_Read... [06:48:20]OFD Sender: No OFD packet to send [06:48:20]*** Cut start [06:48:20]*** Purtial cut [06:48:20]*** Stage 1: CUTSNS_PIN = 1 [06:48:20]Read from MH i2c: 01 [06:48:20]MH_I2C_Read... [06:48:20]*** Stop cut motor [06:48:20]*** Cut end [06:48:20]Read from MH i2c: 01 07 00 [06:48:20]MH_I2C_Read... [06:48:20]Read from MH i2c: 01 07 00 AA 17 00 00 00 00 00 FF 0F D6 [06:48:20]process_action print_text done [06:48:20]requested_data is exist [06:48:20]produce_requested_data [06:48:20]requested_item fm.sn is exist - process it [06:48:20]wFMCommunicate request_size=4 [06:48:20]MH_SAM_APDU [06:48:20]CAPDU: 80 11 00 00 [06:48:20]Write to MH i2c: E2 08 00 AB 17 80 11 00 00 00 00 00 00 3C [06:48:20]Write i2c OK [06:48:20]MH_I2C_Read... [06:48:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:48:20]Read from MH i2c: E2 [06:48:20]MH_I2C_Read... [06:48:20]Read from MH i2c: E2 17 00 [06:48:20]MH_I2C_Read... [06:48:20]Read from MH i2c: E2 17 00 AB 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 90 [06:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [06:48:20]wFMCommunicate OK [06:48:20]requested_item fd.num is exist - process it [06:48:20]SAM_PROTO_GetFieldsCounters [06:48:20]wFMCommunicate request_size=4 [06:48:20]MH_SAM_APDU [06:48:20]CAPDU: 80 13 00 00 [06:48:20]Write to MH i2c: E2 08 00 AC 17 80 13 00 00 00 00 00 00 3F [06:48:20]Write i2c OK [06:48:20]MH_I2C_Read... [06:48:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:48:20]Read from MH i2c: E2 [06:48:20]MH_I2C_Read... [06:48:20]Read from MH i2c: E2 62 00 [06:48:20]MH_I2C_Read... [06:48:20]Read from MH i2c: E2 62 00 AC 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 DC A7 01 00 0E 04 04 00 40 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 7F [06:48: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 DC A7 01 00 0E 04 04 00 40 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 [06:48:20]wFMCommunicate OK [06:48:20]SAM_PROTO_GetFieldsCounters done [06:48:20]requested_item shift.num is exist - process it [06:48:20]requested_item shift.opened is exist - process it [06:48:20]req_shift_opened [06:48:20]FM_GetShiftState [06:48:20]SAM_PROTO_GetShiftState [06:48:20]wFMCommunicate request_size=4 [06:48:20]MH_SAM_APDU [06:48:20]CAPDU: 80 13 01 00 [06:48:20]Write to MH i2c: E2 08 00 AD 17 80 13 01 00 00 00 00 00 41 [06:48:20]Write i2c OK [06:48:20]MH_I2C_Read... [06:48:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:48:21]Read from MH i2c: E2 [06:48:21]MH_I2C_Read... [06:48:21]Read from MH i2c: E2 0E 00 [06:48:21]MH_I2C_Read... [06:48:21]Read from MH i2c: E2 0E 00 AD 17 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 75 [06:48:21]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [06:48:21]wFMCommunicate OK [06:48:21]SAM_PROTO_GetShiftState done [06:48:21]FM_GetShiftState done [06:48:21]req_shift_opened done [06:48:21]requested_item shift.open_date is exist - process it [06:48:21]req_shift_open_date [06:48:21]req_shift_open_date done [06:48:21]produce_requested_data done [06:48:21]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108508,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [06:48:21]process_action_free print_text [06:48:21]json_value_free [06:48:21]json_value_free done [06:48:21]process_json_proto returns [06:48:21]Send response to host [06:48:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108508,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [06:48:21]free response buf [06:48:21]execute_script done [06:48:21]execute_script returns [06:48:21]free content buf [06:48:21]Sock 8.Close socket [06:48:21]Sock 8.Thread stoped [06:48:25]OFD Sender: No OFD packet to send [06:48:30]OFD Sender: No OFD packet to send [06:48:35]OFD Sender: No OFD packet to send [06:48:40]OFD Sender: No OFD packet to send [06:48:45]OFD Sender: No OFD packet to send [06:48:50]OFD Sender: No OFD packet to send [06:48:55]OFD Sender: No OFD packet to send [06:49:00]OFD Sender: No OFD packet to send [06:49:05]OFD Sender: No OFD packet to send [06:49:10]OFD Sender: No OFD packet to send [06:49:15]OFD Sender: No OFD packet to send [06:49:20]OFD Sender: No OFD packet to send [06:49:25]OFD Sender: No OFD packet to send [06:49:30]OFD Sender: No OFD packet to send [06:49:35]OFD Sender: No OFD packet to send [06:49:40]OFD Sender: No OFD packet to send [06:49:45]OFD Sender: No OFD packet to send [06:49:50]OFD Sender: No OFD packet to send [06:49:55]OFD Sender: No OFD packet to send [06:50:00]OFD Sender: No OFD packet to send [06:50:05]OFD Sender: No OFD packet to send [06:50:10]OFD Sender: No OFD packet to send [06:50:15]OFD Sender: No OFD packet to send [06:50:20]OFD Sender: No OFD packet to send [06:50:25]OFD Sender: No OFD packet to send [06:50:30]OFD Sender: No OFD packet to send [06:50:35]OFD Sender: No OFD packet to send [06:50:40]OFD Sender: No OFD packet to send [06:50:45]OFD Sender: No OFD packet to send [06:50:50]OFD Sender: No OFD packet to send [06:50:55]OFD Sender: No OFD packet to send [06:51:00]OFD Sender: No OFD packet to send [06:51:05]OFD Sender: No OFD packet to send [06:51:10]OFD Sender: No OFD packet to send [06:51:15]OFD Sender: No OFD packet to send [06:51:20]OFD Sender: No OFD packet to send [06:51:25]OFD Sender: No OFD packet to send [06:51:30]OFD Sender: No OFD packet to send [06:51:35]OFD Sender: No OFD packet to send [06:51:40]OFD Sender: No OFD packet to send [06:51:45]OFD Sender: No OFD packet to send [06:51:50]OFD Sender: No OFD packet to send [06:51:55]OFD Sender: No OFD packet to send [06:52:00]OFD Sender: No OFD packet to send [06:52:05]OFD Sender: No OFD packet to send [06:52:10]OFD Sender: No OFD packet to send [06:52:15]OFD Sender: No OFD packet to send [06:52:20]OFD Sender: No OFD packet to send [06:52:25]OFD Sender: No OFD packet to send [06:52:30]OFD Sender: No OFD packet to send [06:52:35]OFD Sender: No OFD packet to send [06:52:39]accept exits with 9 [06:52:39]New connection [06:52:39]New thread 3067198820 created [06:52:39]Thread 3067342180 joined [06:52:39]Waiting for new connection... [06:52:39] Sock 9.Parse request [06:52:39]Sock 9.Check first char [06:52:39]Sock 9.First char is OK [06:52:39]request: POST /json_proto HTTP/1.0 [06:52:39]Method: POST [06:52:39]URL: /json_proto [06:52:39]Method is POST - this is cgi request [06:52:39]url: /json_proto [06:52:39]query_string will be loaded in cgi processing [06:52:39]execute_cgi json_proto POST (null) [06:52:39]execute_cgi path=json_proto method=POST [06:52:39]POST find Content-Length [06:52:39]Host: 172.17.32.69:8080 [06:52:39]Content-Length: 1202 [06:52:39]Content-Type: application/json [06:52:39] [06:52:39]POST finish read [06:52:39]Found Content-Length = 1202 [06:52:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040661\u000A15.03.2024 06:44\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 6\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 10.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 709.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3689313\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:52:39]execute_script... [06:52:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040661\u000A15.03.2024 06:44\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 6\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 10.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 709.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3689313\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:52:39]POST & json_proto [06:52:39]process_json_proto [06:52:39]json parsed OK: [06:52:39]protocol is kg_v1.0 [06:52:39]action value=print_text [06:52:39]process_action print_text [06:52:39]cmd_print_text [06:52:39]ExternCall_PrintAddStr [06:52:39]wPrintStart [06:52:39]Write to MH i2c: 01 00 00 AE 17 C5 [06:52:39]Write i2c OK [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: 01 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: 01 07 00 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: 01 07 00 AE 17 00 00 00 00 00 FF 0F DA [06:52:39]RasterBufferAndPrint [06:52:39]line *****ТОВАРНЫЙ ЧЕК***** [06:52:39]line АЗС 15 [06:52:39]line Партнер нефть [06:52:39]line 02508201610067 [06:52:39]line Кассир : Максатбек у Д. [06:52:39]line Счет N : (1)1040661 [06:52:39]line 15.03.2024 06:44 [06:52:39]line ПРОДАЖА [06:52:39]line ТРК (МРК, ГНК): 6 [06:52:39]line Вид ГСМ : 2710194210 [06:52:39]line ДТ(л)-К-5 [06:52:39]line 10.000 x 70.90 [06:52:39]line ИТОГ: 709.00 [06:52:39]line Тип оплаты: Талоны: Партнер нефть [06:52:39]line 3689313 [06:52:39]line ______________________ [06:52:39]line (подпись) [06:52:39]written 0, free lines is 4095 [06:52:39]Write to MH i2c: 01 00 00 C3 17 DA [06:52:39]Write i2c OK [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: 01 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: 01 07 00 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: 01 07 00 C3 17 00 00 00 00 00 F6 0D E4 [06:52:39]RasterBufferAndPrint [06:52:39]line [06:52:39]line [06:52:39]line [06:52:39]line [06:52:39]line [06:52:39]written 0, free lines is 3576 [06:52:39]MH_Cut [06:52:39]Write to MH i2c: D1 01 00 CA 17 01 B3 [06:52:39]Write i2c OK [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: D1 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: D1 01 00 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: D1 01 00 CA 17 00 B2 [06:52:39]Write to MH i2c: 01 00 00 CB 17 E2 [06:52:39]Write i2c OK [06:52:39]MH_I2C_Read... [06:52:39]*** Cut start [06:52:39]*** Purtial cut [06:52:39]*** Stage 1: CUTSNS_PIN = 1 [06:52:40]Read from MH i2c: 01 [06:52:40]MH_I2C_Read... [06:52:40]*** Stop cut motor [06:52:40]*** Cut end [06:52:40]Read from MH i2c: 01 07 00 [06:52:40]MH_I2C_Read... [06:52:40]Read from MH i2c: 01 07 00 CB 17 00 00 00 00 00 FF 0F F7 [06:52:40]process_action print_text done [06:52:40]requested_data is exist [06:52:40]produce_requested_data [06:52:40]requested_item fm.sn is exist - process it [06:52:40]wFMCommunicate request_size=4 [06:52:40]MH_SAM_APDU [06:52:40]CAPDU: 80 11 00 00 [06:52:40]Write to MH i2c: E2 08 00 CC 17 80 11 00 00 00 00 00 00 5D [06:52:40]Write i2c OK [06:52:40]MH_I2C_Read... [06:52:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:52:40]Read from MH i2c: E2 [06:52:40]MH_I2C_Read... [06:52:40]Read from MH i2c: E2 17 00 [06:52:40]MH_I2C_Read... [06:52:40]Read from MH i2c: E2 17 00 CC 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 B1 [06:52:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [06:52:40]wFMCommunicate OK [06:52:40]requested_item fd.num is exist - process it [06:52:40]SAM_PROTO_GetFieldsCounters [06:52:40]wFMCommunicate request_size=4 [06:52:40]MH_SAM_APDU [06:52:40]CAPDU: 80 13 00 00 [06:52:40]Write to MH i2c: E2 08 00 CD 17 80 13 00 00 00 00 00 00 60 [06:52:40]Write i2c OK [06:52:40]MH_I2C_Read... [06:52:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:52:40]Read from MH i2c: E2 [06:52:40]MH_I2C_Read... [06:52:40]Read from MH i2c: E2 62 00 [06:52:40]MH_I2C_Read... [06:52:40]Read from MH i2c: E2 62 00 CD 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 DC A7 01 00 0E 04 04 00 40 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 A0 [06:52: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 DC A7 01 00 0E 04 04 00 40 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 [06:52:40]wFMCommunicate OK [06:52:40]SAM_PROTO_GetFieldsCounters done [06:52:40]requested_item shift.num is exist - process it [06:52:40]requested_item shift.opened is exist - process it [06:52:40]req_shift_opened [06:52:40]FM_GetShiftState [06:52:40]SAM_PROTO_GetShiftState [06:52:40]wFMCommunicate request_size=4 [06:52:40]MH_SAM_APDU [06:52:40]CAPDU: 80 13 01 00 [06:52:40]Write to MH i2c: E2 08 00 CE 17 80 13 01 00 00 00 00 00 62 [06:52:40]Write i2c OK [06:52:40]MH_I2C_Read... [06:52:40]OFD Sender: No OFD packet to send [06:52:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:52:40]Read from MH i2c: E2 [06:52:40]MH_I2C_Read... [06:52:40]Read from MH i2c: E2 0E 00 [06:52:40]MH_I2C_Read... [06:52:40]Read from MH i2c: E2 0E 00 CE 17 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 96 [06:52:40]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [06:52:40]wFMCommunicate OK [06:52:40]SAM_PROTO_GetShiftState done [06:52:40]FM_GetShiftState done [06:52:40]req_shift_opened done [06:52:40]requested_item shift.open_date is exist - process it [06:52:40]req_shift_open_date [06:52:40]req_shift_open_date done [06:52:40]produce_requested_data done [06:52:40]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108508,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [06:52:40]process_action_free print_text [06:52:40]json_value_free [06:52:40]json_value_free done [06:52:40]process_json_proto returns [06:52:40]Send response to host [06:52:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108508,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [06:52:40]free response buf [06:52:40]execute_script done [06:52:40]execute_script returns [06:52:40]free content buf [06:52:40]Sock 9.Close socket [06:52:40]Sock 9.Thread stoped [06:52:45]OFD Sender: No OFD packet to send [06:52:50]OFD Sender: No OFD packet to send [06:52:55]OFD Sender: No OFD packet to send [06:53:00]OFD Sender: No OFD packet to send [06:53:05]OFD Sender: No OFD packet to send [06:53:10]OFD Sender: No OFD packet to send [06:53:15]OFD Sender: No OFD packet to send [06:53:20]OFD Sender: No OFD packet to send [06:53:25]OFD Sender: No OFD packet to send [06:53:30]OFD Sender: No OFD packet to send [06:53:35]OFD Sender: No OFD packet to send [06:53:40]OFD Sender: No OFD packet to send [06:53:44]accept exits with 8 [06:53:44]New connection [06:53:44]New thread 3067342180 created [06:53:44]Thread 3067198820 joined [06:53:44]Waiting for new connection... [06:53:44] Sock 8.Parse request [06:53:44]Sock 8.Check first char [06:53:44]Sock 8.First char is OK [06:53:44]request: POST /json_proto HTTP/1.0 [06:53:44]Method: POST [06:53:44]URL: /json_proto [06:53:44]Method is POST - this is cgi request [06:53:44]url: /json_proto [06:53:44]query_string will be loaded in cgi processing [06:53:44]execute_cgi json_proto POST (null) [06:53:44]execute_cgi path=json_proto method=POST [06:53:44]POST find Content-Length [06:53:44]Host: 172.17.32.69:8080 [06:53:44]Content-Length: 1209 [06:53:44]Content-Type: application/json [06:53:44] [06:53:44]POST finish read [06:53:44]Found Content-Length = 1209 [06:53:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040660\u000A15.03.2024 06:45\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1238.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74669\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:53:44]execute_script... [06:53:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040660\u000A15.03.2024 06:45\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1238.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74669\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:53:44]POST & json_proto [06:53:44]process_json_proto [06:53:44]json parsed OK: [06:53:44]protocol is kg_v1.0 [06:53:44]action value=print_text [06:53:44]process_action print_text [06:53:44]cmd_print_text [06:53:44]ExternCall_PrintAddStr [06:53:44]wPrintStart [06:53:44]Write to MH i2c: 01 00 00 CF 17 E6 [06:53:44]Write i2c OK [06:53:44]MH_I2C_Read... [06:53:44]Read from MH i2c: 01 [06:53:44]MH_I2C_Read... [06:53:44]Read from MH i2c: 01 07 00 [06:53:44]MH_I2C_Read... [06:53:44]Read from MH i2c: 01 07 00 CF 17 00 00 00 00 00 FF 0F FB [06:53:44]RasterBufferAndPrint [06:53:44]line *****ТОВАРНЫЙ ЧЕК***** [06:53:44]line АЗС 15 [06:53:44]line Партнер нефть [06:53:44]line 02508201610067 [06:53:44]line Кассир : Максатбек у Д. [06:53:44]line Счет N : (1)1040660 [06:53:44]line 15.03.2024 06:45 [06:53:44]line ПРОДАЖА [06:53:44]line ТРК (МРК, ГНК): 43 [06:53:44]line Вид ГСМ : 2710124130 [06:53:44]line Аи-92-К-5 [06:53:44]line 20.000 x 61.90 [06:53:44]line ИТОГ: 1238.00 [06:53:44]line Тип оплаты: Талоны: Топливная Карта [06:53:44]line 74669 [06:53:44]line ______________________ [06:53:44]line (подпись) [06:53:44]written 0, free lines is 4095 [06:53:44]Write to MH i2c: 01 00 00 E4 17 FB [06:53:44]Write i2c OK [06:53:44]MH_I2C_Read... [06:53:44]Read from MH i2c: 01 [06:53:44]MH_I2C_Read... [06:53:44]Read from MH i2c: 01 07 00 [06:53:44]MH_I2C_Read... [06:53:44]Read from MH i2c: 01 07 00 E4 17 00 00 00 00 00 F7 0D 06 [06:53:44]RasterBufferAndPrint [06:53:44]line [06:53:44]line [06:53:44]line [06:53:44]line [06:53:44]line [06:53:44]written 0, free lines is 3577 [06:53:44]MH_Cut [06:53:44]Write to MH i2c: D1 01 00 EB 17 01 D4 [06:53:44]Write i2c OK [06:53:44]MH_I2C_Read... [06:53:44]Read from MH i2c: D1 [06:53:44]MH_I2C_Read... [06:53:44]Read from MH i2c: D1 01 00 [06:53:44]MH_I2C_Read... [06:53:44]Read from MH i2c: D1 01 00 EB 17 00 D3 [06:53:44]Write to MH i2c: 01 00 00 EC 17 03 [06:53:44]Write i2c OK [06:53:44]MH_I2C_Read... [06:53:45]*** Cut start [06:53:45]*** Purtial cut [06:53:45]*** Stage 1: CUTSNS_PIN = 1 [06:53:45]OFD Sender: No OFD packet to send [06:53:45]Read from MH i2c: 01 [06:53:45]MH_I2C_Read... [06:53:45]*** Stop cut motor [06:53:45]*** Cut end [06:53:45]Read from MH i2c: 01 07 00 [06:53:45]MH_I2C_Read... [06:53:45]Read from MH i2c: 01 07 00 EC 17 00 00 00 00 00 FF 0F 18 [06:53:45]process_action print_text done [06:53:45]requested_data is exist [06:53:45]produce_requested_data [06:53:45]requested_item fm.sn is exist - process it [06:53:45]wFMCommunicate request_size=4 [06:53:45]MH_SAM_APDU [06:53:45]CAPDU: 80 11 00 00 [06:53:45]Write to MH i2c: E2 08 00 ED 17 80 11 00 00 00 00 00 00 7E [06:53:45]Write i2c OK [06:53:45]MH_I2C_Read... [06:53:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:53:45]Read from MH i2c: E2 [06:53:45]MH_I2C_Read... [06:53:45]Read from MH i2c: E2 17 00 [06:53:45]MH_I2C_Read... [06:53:45]Read from MH i2c: E2 17 00 ED 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 D2 [06:53:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [06:53:45]wFMCommunicate OK [06:53:45]requested_item fd.num is exist - process it [06:53:45]SAM_PROTO_GetFieldsCounters [06:53:45]wFMCommunicate request_size=4 [06:53:45]MH_SAM_APDU [06:53:45]CAPDU: 80 13 00 00 [06:53:45]Write to MH i2c: E2 08 00 EE 17 80 13 00 00 00 00 00 00 81 [06:53:45]Write i2c OK [06:53:45]MH_I2C_Read... [06:53:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:53:45]Read from MH i2c: E2 [06:53:45]MH_I2C_Read... [06:53:45]Read from MH i2c: E2 62 00 [06:53:45]MH_I2C_Read... [06:53:45]Read from MH i2c: E2 62 00 EE 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 DC A7 01 00 0E 04 04 00 40 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 C1 [06:53:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 DC A7 01 00 0E 04 04 00 40 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 [06:53:45]wFMCommunicate OK [06:53:45]SAM_PROTO_GetFieldsCounters done [06:53:45]requested_item shift.num is exist - process it [06:53:45]requested_item shift.opened is exist - process it [06:53:45]req_shift_opened [06:53:45]FM_GetShiftState [06:53:45]SAM_PROTO_GetShiftState [06:53:45]wFMCommunicate request_size=4 [06:53:45]MH_SAM_APDU [06:53:45]CAPDU: 80 13 01 00 [06:53:45]Write to MH i2c: E2 08 00 EF 17 80 13 01 00 00 00 00 00 83 [06:53:45]Write i2c OK [06:53:45]MH_I2C_Read... [06:53:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:53:45]Read from MH i2c: E2 [06:53:45]MH_I2C_Read... [06:53:45]Read from MH i2c: E2 0E 00 [06:53:45]MH_I2C_Read... [06:53:45]Read from MH i2c: E2 0E 00 EF 17 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 B7 [06:53:45]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [06:53:45]wFMCommunicate OK [06:53:45]SAM_PROTO_GetShiftState done [06:53:45]FM_GetShiftState done [06:53:45]req_shift_opened done [06:53:45]requested_item shift.open_date is exist - process it [06:53:45]req_shift_open_date [06:53:45]req_shift_open_date done [06:53:45]produce_requested_data done [06:53:45]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108508,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [06:53:45]process_action_free print_text [06:53:45]json_value_free [06:53:45]json_value_free done [06:53:45]process_json_proto returns [06:53:45]Send response to host [06:53:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108508,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [06:53:45]free response buf [06:53:45]execute_script done [06:53:45]execute_script returns [06:53:45]free content buf [06:53:45]Sock 8.Close socket [06:53:45]Sock 8.Thread stoped [06:53:50]OFD Sender: No OFD packet to send [06:53:55]OFD Sender: No OFD packet to send [06:54:00]OFD Sender: No OFD packet to send [06:54:05]OFD Sender: No OFD packet to send [06:54:10]OFD Sender: No OFD packet to send [06:54:15]OFD Sender: No OFD packet to send [06:54:20]OFD Sender: No OFD packet to send [06:54:25]OFD Sender: No OFD packet to send [06:54:30]OFD Sender: No OFD packet to send [06:54:35]OFD Sender: No OFD packet to send [06:54:40]OFD Sender: No OFD packet to send [06:54:45]OFD Sender: No OFD packet to send [06:54:47]int [06:54:47]Write to MH i2c: 01 00 00 F0 17 07 [06:54:47]*** FLAG_PRN_KEY set [06:54:47]Write i2c OK [06:54:47]MH_I2C_Read... [06:54:47]Read from MH i2c: 01 [06:54:47]MH_I2C_Read... [06:54:47]Read from MH i2c: 01 07 00 [06:54:47]MH_I2C_Read... [06:54:47]Read from MH i2c: 01 07 00 F0 17 00 08 00 00 00 FF 0F 24 [06:54:47]state=0 [06:54:47]Key pressed [06:54:47]Feed [06:54:47]Write to MH i2c: D8 00 00 F1 17 DF [06:54:47]Write i2c OK [06:54:47]MH_I2C_Read... [06:54:47]Read from MH i2c: D8 [06:54:47]MH_I2C_Read... [06:54:47]Read from MH i2c: D8 01 00 [06:54:47]MH_I2C_Read... [06:54:47]Read from MH i2c: D8 01 00 F1 17 00 E0 [06:54:47]int [06:54:47]Write to MH i2c: 01 00 00 F2 17 09 [06:54:47]Write i2c OK [06:54:47]MH_I2C_Read... [06:54:47]Read from MH i2c: 01 [06:54:47]MH_I2C_Read... [06:54:47]Read from MH i2c: 01 07 00 [06:54:47]MH_I2C_Read... [06:54:47]Read from MH i2c: 01 07 00 F2 17 00 48 00 00 00 3C 00 94 [06:54:47]state=2 [06:54:47]Key pressed [06:54:48]int [06:54:48]Write to MH i2c: 01 00 00 F3 17 0A [06:54:48]*** FLAG_PRN_KEY reset [06:54:48]Write i2c OK [06:54:48]MH_I2C_Read... [06:54:48]Read from MH i2c: 01 [06:54:48]MH_I2C_Read... [06:54:48]Read from MH i2c: 01 07 00 [06:54:48]MH_I2C_Read... [06:54:48]Read from MH i2c: 01 07 00 F3 17 00 00 00 00 00 F6 0F 16 [06:54:48]state=2 [06:54:48]Stop feed [06:54:50]OFD Sender: No OFD packet to send [06:54:55]OFD Sender: No OFD packet to send [06:55:00]OFD Sender: No OFD packet to send [06:55:05]OFD Sender: No OFD packet to send [06:55:10]OFD Sender: No OFD packet to send [06:55:15]OFD Sender: No OFD packet to send [06:55:20]OFD Sender: No OFD packet to send [06:55:25]OFD Sender: No OFD packet to send [06:55:30]OFD Sender: No OFD packet to send [06:55:35]OFD Sender: No OFD packet to send [06:55:40]OFD Sender: No OFD packet to send [06:55:45]OFD Sender: No OFD packet to send [06:55:50]OFD Sender: No OFD packet to send [06:55:55]OFD Sender: No OFD packet to send [06:56:00]OFD Sender: No OFD packet to send [06:56:05]OFD Sender: No OFD packet to send [06:56:10]OFD Sender: No OFD packet to send [06:56:15]OFD Sender: No OFD packet to send [06:56:20]OFD Sender: No OFD packet to send [06:56:25]OFD Sender: No OFD packet to send [06:56:30]OFD Sender: No OFD packet to send [06:56:35]OFD Sender: No OFD packet to send [06:56:40]OFD Sender: No OFD packet to send [06:56:45]accept exits with 9 [06:56:45]New connection [06:56:45]New thread 3067198820 created [06:56:45]Thread 3067342180 joined [06:56:45]Waiting for new connection... [06:56:45] Sock 9.Parse request [06:56:45]Sock 9.Check first char [06:56:45]Sock 9.First char is OK [06:56:45]request: POST /json_proto HTTP/1.0 [06:56:45]Method: POST [06:56:45]URL: /json_proto [06:56:45]Method is POST - this is cgi request [06:56:45]url: /json_proto [06:56:45]query_string will be loaded in cgi processing [06:56:45]execute_cgi json_proto POST (null) [06:56:45]execute_cgi path=json_proto method=POST [06:56:45]POST find Content-Length [06:56:45]Host: 172.17.32.69:8080 [06:56:45]Content-Length: 1213 [06:56:45]Content-Type: application/json [06:56:45] [06:56:45]POST finish read [06:56:45]Found Content-Length = 1213 [06:56:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040662\u000A15.03.2024 06:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 6\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 20.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 1418.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53321\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:56:45]execute_script... [06:56:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040662\u000A15.03.2024 06:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 6\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 20.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 1418.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53321\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:56:45]POST & json_proto [06:56:45]process_json_proto [06:56:45]json parsed OK: [06:56:45]protocol is kg_v1.0 [06:56:45]action value=print_text [06:56:45]process_action print_text [06:56:45]cmd_print_text [06:56:45]ExternCall_PrintAddStr [06:56:45]wPrintStart [06:56:45]Write to MH i2c: 01 00 00 F4 17 0B [06:56:45]Write i2c OK [06:56:45]MH_I2C_Read... [06:56:45]Read from MH i2c: 01 [06:56:45]MH_I2C_Read... [06:56:45]Read from MH i2c: 01 07 00 [06:56:45]MH_I2C_Read... [06:56:45]Read from MH i2c: 01 07 00 F4 17 00 00 00 00 00 FF 0F 20 [06:56:45]RasterBufferAndPrint [06:56:45]line *****ТОВАРНЫЙ ЧЕК***** [06:56:45]line АЗС 15 [06:56:45]line Партнер нефть [06:56:45]line 02508201610067 [06:56:45]line Кассир : Максатбек у Д. [06:56:45]line Счет N : (1)1040662 [06:56:45]line 15.03.2024 06:48 [06:56:45]line ПРОДАЖА [06:56:45]line ТРК (МРК, ГНК): 6 [06:56:45]line Вид ГСМ : 2710194210 [06:56:45]line ДТ(л)-К-5 [06:56:45]line 20.000 x 70.90 [06:56:45]line ИТОГ: 1418.00 [06:56:45]line Тип оплаты: Талоны: Топливная Карта [06:56:45]line 53321 [06:56:45]line ______________________ [06:56:45]line (подпись) [06:56:45]written 0, free lines is 4095 [06:56:45]Write to MH i2c: 01 00 00 09 18 21 [06:56:45]Write i2c OK [06:56:45]MH_I2C_Read... [06:56:45]Read from MH i2c: 01 [06:56:45]MH_I2C_Read... [06:56:45]Read from MH i2c: 01 07 00 [06:56:45]MH_I2C_Read... [06:56:45]Read from MH i2c: 01 07 00 09 18 00 00 00 00 00 F7 0D 2C [06:56:45]RasterBufferAndPrint [06:56:45]line [06:56:45]line [06:56:45]line [06:56:45]line [06:56:45]line [06:56:45]written 0, free lines is 3577 [06:56:45]MH_Cut [06:56:45]Write to MH i2c: D1 01 00 10 18 01 FA [06:56:45]Write i2c OK [06:56:45]MH_I2C_Read... [06:56:45]Read from MH i2c: D1 [06:56:45]MH_I2C_Read... [06:56:45]Read from MH i2c: D1 01 00 [06:56:45]MH_I2C_Read... [06:56:45]Read from MH i2c: D1 01 00 10 18 00 F9 [06:56:45]Write to MH i2c: 01 00 00 11 18 29 [06:56:45]Write i2c OK [06:56:45]MH_I2C_Read... [06:56:45]OFD Sender: No OFD packet to send [06:56:45]*** Cut start [06:56:45]*** Purtial cut [06:56:45]*** Stage 1: CUTSNS_PIN = 1 [06:56:46]Read from MH i2c: 01 [06:56:46]MH_I2C_Read... [06:56:46]Read from MH i2c: 01 07 00 [06:56:46]MH_I2C_Read... [06:56:46]*** Stop cut motor [06:56:46]*** Cut end [06:56:46]Read from MH i2c: 01 07 00 11 18 00 00 00 00 00 FF 0F 3E [06:56:46]process_action print_text done [06:56:46]requested_data is exist [06:56:46]produce_requested_data [06:56:46]requested_item fm.sn is exist - process it [06:56:46]wFMCommunicate request_size=4 [06:56:46]MH_SAM_APDU [06:56:46]CAPDU: 80 11 00 00 [06:56:46]Write to MH i2c: E2 08 00 12 18 80 11 00 00 00 00 00 00 A4 [06:56:46]Write i2c OK [06:56:46]MH_I2C_Read... [06:56:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:56:46]Read from MH i2c: E2 [06:56:46]MH_I2C_Read... [06:56:46]Read from MH i2c: E2 17 00 [06:56:46]MH_I2C_Read... [06:56:46]Read from MH i2c: E2 17 00 12 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 F8 [06:56:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [06:56:46]wFMCommunicate OK [06:56:46]requested_item fd.num is exist - process it [06:56:46]SAM_PROTO_GetFieldsCounters [06:56:46]wFMCommunicate request_size=4 [06:56:46]MH_SAM_APDU [06:56:46]CAPDU: 80 13 00 00 [06:56:46]Write to MH i2c: E2 08 00 13 18 80 13 00 00 00 00 00 00 A7 [06:56:46]Write i2c OK [06:56:46]MH_I2C_Read... [06:56:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:56:46]Read from MH i2c: E2 [06:56:46]MH_I2C_Read... [06:56:46]Read from MH i2c: E2 62 00 [06:56:46]MH_I2C_Read... [06:56:46]Read from MH i2c: E2 62 00 13 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 DC A7 01 00 0E 04 04 00 40 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 E7 [06:56:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 DC A7 01 00 0E 04 04 00 40 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 [06:56:46]wFMCommunicate OK [06:56:46]SAM_PROTO_GetFieldsCounters done [06:56:46]requested_item shift.num is exist - process it [06:56:46]requested_item shift.opened is exist - process it [06:56:46]req_shift_opened [06:56:46]FM_GetShiftState [06:56:46]SAM_PROTO_GetShiftState [06:56:46]wFMCommunicate request_size=4 [06:56:46]MH_SAM_APDU [06:56:46]CAPDU: 80 13 01 00 [06:56:46]Write to MH i2c: E2 08 00 14 18 80 13 01 00 00 00 00 00 A9 [06:56:46]Write i2c OK [06:56:46]MH_I2C_Read... [06:56:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:56:46]Read from MH i2c: E2 [06:56:46]MH_I2C_Read... [06:56:46]Read from MH i2c: E2 0E 00 [06:56:46]MH_I2C_Read... [06:56:46]Read from MH i2c: E2 0E 00 14 18 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 DD [06:56:46]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [06:56:46]wFMCommunicate OK [06:56:46]SAM_PROTO_GetShiftState done [06:56:46]FM_GetShiftState done [06:56:46]req_shift_opened done [06:56:46]requested_item shift.open_date is exist - process it [06:56:46]req_shift_open_date [06:56:46]req_shift_open_date done [06:56:46]produce_requested_data done [06:56:46]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108508,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [06:56:46]process_action_free print_text [06:56:46]json_value_free [06:56:46]json_value_free done [06:56:46]process_json_proto returns [06:56:46]Send response to host [06:56:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108508,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [06:56:46]free response buf [06:56:46]execute_script done [06:56:46]execute_script returns [06:56:46]free content buf [06:56:46]Sock 9.Close socket [06:56:46]Sock 9.Thread stoped [06:56:50]OFD Sender: No OFD packet to send [06:56:55]OFD Sender: No OFD packet to send [06:57:00]OFD Sender: No OFD packet to send [06:57:05]OFD Sender: No OFD packet to send [06:57:10]OFD Sender: No OFD packet to send [06:57:15]OFD Sender: No OFD packet to send [06:57:20]OFD Sender: No OFD packet to send [06:57:25]OFD Sender: No OFD packet to send [06:57:30]OFD Sender: No OFD packet to send [06:57:35]OFD Sender: No OFD packet to send [06:57:40]OFD Sender: No OFD packet to send [06:57:45]OFD Sender: No OFD packet to send [06:57:50]OFD Sender: No OFD packet to send [06:57:55]OFD Sender: No OFD packet to send [06:58:00]OFD Sender: No OFD packet to send [06:58:05]OFD Sender: No OFD packet to send [06:58:10]OFD Sender: No OFD packet to send [06:58:15]OFD Sender: No OFD packet to send [06:58:20]OFD Sender: No OFD packet to send [06:58:25]OFD Sender: No OFD packet to send [06:58:30]OFD Sender: No OFD packet to send [06:58:34]accept exits with 8 [06:58:34]New connection [06:58:34]New thread 3067342180 created [06:58:34]Thread 3067198820 joined [06:58:34]Waiting for new connection... [06:58:34] Sock 8.Parse request [06:58:34]Sock 8.Check first char [06:58:34]Sock 8.First char is OK [06:58:34]request: POST /json_proto HTTP/1.0 [06:58:34]Method: POST [06:58:34]URL: /json_proto [06:58:34]Method is POST - this is cgi request [06:58:34]url: /json_proto [06:58:34]query_string will be loaded in cgi processing [06:58:34]execute_cgi json_proto POST (null) [06:58:34]execute_cgi path=json_proto method=POST [06:58:34]POST find Content-Length [06:58:34]Host: 172.17.32.69:8080 [06:58:34]Content-Length: 678 [06:58:34]Content-Type: application/json [06:58:34] [06:58:34]POST finish read [06:58:34]Found Content-Length = 678 [06:58:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.890, "sum" : 550.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:58:34]execute_script... [06:58: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)1040663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.890, "sum" : 550.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:58:34]POST & json_proto [06:58:34]process_json_proto [06:58:34]json parsed OK: [06:58:34]protocol is kg_v1.0 [06:58:34]action value=close_receipt [06:58:34]process_action close_receipt [06:58:34]cmd_close_receipt [06:58:34]MH_GetDate [06:58:34]Write to MH i2c: F0 00 00 15 18 1C [06:58:34]Write i2c OK [06:58:34]MH_I2C_Read... [06:58:34]Read from MH i2c: F0 [06:58:34]MH_I2C_Read... [06:58:34]Read from MH i2c: F0 09 00 [06:58:34]MH_I2C_Read... [06:58:34]Read from MH i2c: F0 09 00 15 18 00 9D F1 F3 65 D5 0F D3 65 27 [06:58:34]GetLastDocTimeStamp 1710485235 [06:58:34]current date 1710485917 [06:58:34]FM_GetShiftState [06:58:34]SAM_PROTO_GetShiftState [06:58:34]wFMCommunicate request_size=4 [06:58:34]MH_SAM_APDU [06:58:34]CAPDU: 80 13 01 00 [06:58:34]Write to MH i2c: E2 08 00 16 18 80 13 01 00 00 00 00 00 AB [06:58:34]Write i2c OK [06:58:34]MH_I2C_Read... [06:58:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:58:34]Read from MH i2c: E2 [06:58:34]MH_I2C_Read... [06:58:34]Read from MH i2c: E2 0E 00 [06:58:34]MH_I2C_Read... [06:58:34]Read from MH i2c: E2 0E 00 16 18 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 DF [06:58:34]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [06:58:34]wFMCommunicate OK [06:58:34]SAM_PROTO_GetShiftState done [06:58:34]FM_GetShiftState done [06:58:34]opened in 1710461757 [06:58:34]opened+sec_in_day 1710548157 [06:58:34]quantity*price = 55029 [06:58:34]sum+1 = 55030 [06:58:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.44 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 32 15.03.2024 06:58 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108509 ФПД: 256383750707457 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T065837&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108509&fm=256383750707457&tin=02508201610067®Number=0000000000091911&sum=55000 [06:58:35]StoreToDocumentArchive [06:58:35]shift 320 fd 108509 [06:58:35]save to /storage/0320/doc_00108509 [06:58:35]save last doc name /storage/0320/doc_00108509 to /storage/kkm_last_doc_name [06:58:35]save OK [06:58:35]Clear old archive folders... [06:58:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:58:35]tlvbuf is 001219A0 [06:58:35]SAM_PROTO_ClearQueue [06:58:35]wFMCommunicate request_size=4 [06:58:35]MH_SAM_APDU [06:58:35]CAPDU: 80 09 00 00 [06:58:35]Write to MH i2c: E2 08 00 23 18 80 09 00 00 00 00 00 00 AD [06:58:35]Write i2c OK [06:58:35]MH_I2C_Read... [06:58:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:58:35]Read from MH i2c: E2 [06:58:35]MH_I2C_Read... [06:58:35]Read from MH i2c: E2 03 00 [06:58:35]MH_I2C_Read... [06:58:35]Read from MH i2c: E2 03 00 23 18 00 90 00 AF [06:58:35]RAPDU: 90 00 [06:58:35]wFMCommunicate OK [06:58:35]SAM_PROTO_ClearQueue done [06:58:35]KKMCreateOFDPacket [06:58:35]OFDProtocolAddRootSTLVToBuf [06:58:35]FM_MakeSignedData [06:58:35]FM_MakeSignedData [06:58:35]SAM_PROTO_SignData [06:58:35]wFMCommunicate request_size=4 [06:58:35]MH_SAM_APDU [06:58:35]CAPDU: 80 0D 01 02 [06:58:35]Write to MH i2c: E2 08 00 24 18 80 0D 01 02 00 00 00 00 B5 [06:58:35]Write i2c OK [06:58:35]MH_I2C_Read... [06:58:35]OFD Sender: No OFD packet to send [06:58:35]Read from MH i2c: E2 [06:58:35]MH_I2C_Read... [06:58:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:58:35]Read from MH i2c: E2 03 00 [06:58:35]MH_I2C_Read... [06:58:35]Read from MH i2c: E2 03 00 24 18 00 90 00 B0 [06:58:35]RAPDU: 90 00 [06:58:35]wFMCommunicate OK [06:58:35]wFMCommunicate request_size=255 [06:58:35]MH_SAM_APDU [06:58:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 22 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 F5 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 9D F1 F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 DD A7 01 00 35 04 06 00 E9 [06:58:35]Write to MH i2c: E2 02 01 25 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 22 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 F5 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 9D F1 F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 DD A7 01 00 35 04 06 00 E9 00 00 8C [06:58:35]Write i2c OK [06:58:35]MH_I2C_Read... [06:58:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:58:36]Read from MH i2c: E2 [06:58:36]MH_I2C_Read... [06:58:36]Read from MH i2c: E2 03 00 [06:58:36]MH_I2C_Read... [06:58:36]Read from MH i2c: E2 03 00 25 18 00 90 00 B1 [06:58:36]RAPDU: 90 00 [06:58:36]wFMCommunicate OK [06:58:36]wFMCommunicate request_size=10 [06:58:36]MH_SAM_APDU [06:58:36]CAPDU: 80 0D 02 02 05 2D FE 63 19 01 [06:58:36]Write to MH i2c: E2 0D 00 26 18 80 0D 02 02 05 00 2D FE 63 19 01 00 00 6A [06:58:36]Write i2c OK [06:58:36]MH_I2C_Read... [06:58:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:58:36]Read from MH i2c: E2 [06:58:36]MH_I2C_Read... [06:58:36]Read from MH i2c: E2 03 00 [06:58:36]MH_I2C_Read... [06:58:36]Read from MH i2c: E2 03 00 26 18 00 90 00 B2 [06:58:36]RAPDU: 90 00 [06:58:36]wFMCommunicate OK [06:58:36]wFMCommunicate request_size=4 [06:58:36]MH_SAM_APDU [06:58:36]CAPDU: 80 0D 03 02 [06:58:36]Write to MH i2c: E2 08 00 27 18 80 0D 03 02 00 00 00 00 BA [06:58:36]Write i2c OK [06:58:36]MH_I2C_Read... [06:58:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:58:36]Read from MH i2c: E2 [06:58:36]MH_I2C_Read... [06:58:36]Read from MH i2c: E2 0B 00 [06:58:36]MH_I2C_Read... [06:58:36]Read from MH i2c: E2 0B 00 27 18 00 93 07 F8 ED 02 75 49 02 90 00 FC [06:58:36]RAPDU: 93 07 F8 ED 02 75 49 02 90 00 [06:58:36]wFMCommunicate OK [06:58:36]SAM_PROTO_SignData done [06:58:36]FM_MakeSignedData done [06:58:36]CreateOFDProtocolMessage [06:58:36]wFMCommunicate request_size=4 [06:58:36]MH_SAM_APDU [06:58:36]CAPDU: 80 11 00 00 [06:58:36]Write to MH i2c: E2 08 00 28 18 80 11 00 00 00 00 00 00 BA [06:58:36]Write i2c OK [06:58:36]MH_I2C_Read... [06:58:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:58:36]Read from MH i2c: E2 [06:58:36]MH_I2C_Read... [06:58:36]Read from MH i2c: E2 17 00 [06:58:36]MH_I2C_Read... [06:58:36]Read from MH i2c: E2 17 00 28 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 0E [06:58:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [06:58:36]wFMCommunicate OK [06:58:36]CreateOFDProtocolMessage done [06:58:36]OFDSenderStorePacket 108509 [06:58:36]StoreOFDPacket docnum=108509 [06:58:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 39 18 07 01 99 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 22 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 F5 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 9D F1 F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 DD A7 01 00 35 04 06 00 E9 2D FE 63 19 01 93 07 F8 ED 02 75 49 02 [06:58:36]CheckFolder [06:58:36]dirname=/storage/ofd_packets [06:58:36]CheckFolder done [06:58:36]ProducePacketName [06:58:36]name=ofd_packets/00108509 [06:58:36]NVStorageSaveData ofd_packets/00108509 [06:58:36]File name is /storage/ofd_packets/00108509 [06:58:36]Write 301 bytes [06:58:36]NVStorageSaveData done [06:58:36]OFDSenderStorePacket done [06:58:36]KKMCreateOFDPacket done [06:58:36]NVStorageSaveData kkm_last_timestamp [06:58:36]File name is /storage/kkm_last_timestamp [06:58:36]Write 4 bytes [06:58:36]NVStorageSaveData done [06:58:36]ExternCall_PrintAddStr [06:58:36]wPrintStart [06:58:36]Write to MH i2c: 01 00 00 29 18 41 [06:58:36]Write i2c OK [06:58:36]MH_I2C_Read... [06:58:36]Read from MH i2c: 01 [06:58:36]MH_I2C_Read... [06:58:36]Read from MH i2c: 01 07 00 [06:58:36]MH_I2C_Read... [06:58:36]Read from MH i2c: 01 07 00 29 18 00 00 00 00 00 FF 0F 56 [06:58:36]RasterBufferAndPrint [06:58:36]line Счет N : (1)1040663 [06:58:36]line ИНН: 02508201610067 [06:58:36]line Контрольно-Кассовый Чек [06:58:36]line ПРОДАЖА [06:58:36]line ТРК (МРК, ГНК) : 23 [06:58:36]line Товар: 2710124130 [06:58:36]line Аи-92-К-5 [06:58:36]line 8.890 * 61.90 [06:58:36]line = 550.29 [06:58:36]line НДС 12% НСП 1% [06:58:36]line > о реализуемом товаре [06:58:36]line ОКРУГЛЕНИЕ: -0.29 [06:58:36]line ИТОГО: 550.00 [06:58:36]line Внесено: 550.00 [06:58:36]line СДАЧА: 0.00 [06:58:36]line НСП 1% : 4.87 [06:58:36]line НДС 12% : 58.44 [06:58:36]line Наличными: 550.00 [06:58:36]line Безнал.: 0.00 [06:58:36]line Место: АЗС № 15 "Партнер Нефть" [06:58:36]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [06:58:36]line СНО: Общий режим [06:58:36]line Чек 32 15.03.2024 06:58 [06:58:36]line Смена: 320 ФФД: 1.0 [06:58:36]line ЗНМ: 0300000266 [06:58:36]line РНМ: 0000000000091911 [06:58:36]line Версия ККМ: 001 [06:58:36]line ФМ: 0000000000871818 [06:58:36]line ФД: 108509 [06:58:36]line ФПД: 256383750707457 [06:58:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T065837&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108509&fm=256383750707457&tin=02508201610067®Number=0000000000091911&sum=55000 [06:58:36]OFD Sender: Processing packet 108509 [packets to send 29, broken 28] [06:58:36]ProducePacketName [06:58:36]name=ofd_packets/00108509 [06:58:36]OFD Sender: To server: pG, [06:58:36]CommunicateWithHost lk.salyk.kg:30040 [06:58:36]ConnectInit lk.salyk.kg [06:58:36]written 0, free lines is 4095 [06:58:36]Connected sock=10 [06:58: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 31 38 0F 01 00 00 39 18 07 01 99 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 22 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 F5 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 9D F1 F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 DD A7 01 00 35 04 06 00 E9 2D FE 63 19 01 93 07 F8 ED 02 75 49 02 [06:58: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 31 38 4F 00 00 00 B8 12 47 00 8B 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 31 38 10 04 04 00 DD A7 01 00 F4 03 04 00 3E 9D F3 65 B6 04 01 00 00 0E D0 33 31 48 7E 32 17 [06:58:36]CommunicateWithHost err = 0 [06:58:36]CheckOFDResponse [06:58:36]1017 (14) - 77093643461234 [06:58:36]1041 (16) - 0000000000871818 [06:58:36]1040 (4) - 108509 [06:58:36]1012 (4) - 15.03.2024 00:58 [06:58:36]1206 (1) - 0 [06:58:36]OFD Sender: Remove packet 108509 [06:58:36]ProducePacketName [06:58:36]name=ofd_packets/00108509 [06:58:36]NVStorageDeleteData [06:58:37]Write to MH i2c: 01 00 00 54 18 6C [06:58:37]Write i2c OK [06:58:37]MH_I2C_Read... [06:58:37]Read from MH i2c: 01 [06:58:37]MH_I2C_Read... [06:58:37]Read from MH i2c: 01 07 00 [06:58:37]MH_I2C_Read... [06:58:37]Read from MH i2c: 01 07 00 54 18 00 00 00 00 00 B3 0C 32 [06:58:37]RasterBufferAndPrint [06:58:37]line [06:58:37]line [06:58:37]line [06:58:37]line [06:58:37]line [06:58:37]written 0, free lines is 3257 [06:58:37]MH_Cut [06:58:37]Write to MH i2c: D1 01 00 5B 18 01 45 [06:58:37]Write i2c OK [06:58:37]MH_I2C_Read... [06:58:37]Read from MH i2c: D1 [06:58:37]MH_I2C_Read... [06:58:37]Read from MH i2c: D1 01 00 [06:58:37]MH_I2C_Read... [06:58:37]Read from MH i2c: D1 01 00 5B 18 00 44 [06:58:37]Write to MH i2c: 01 00 00 5C 18 74 [06:58:37]Write i2c OK [06:58:37]MH_I2C_Read... [06:58:37]OFD Sender: No OFD packet to send [06:58:37]*** Cut start [06:58:37]*** Purtial cut [06:58:37]*** Stage 1: CUTSNS_PIN = 1 [06:58:38]Read from MH i2c: 01 [06:58:38]MH_I2C_Read... [06:58:38]*** Stop cut motor [06:58:38]*** Cut end [06:58:38]Read from MH i2c: 01 07 00 [06:58:38]MH_I2C_Read... [06:58:38]Read from MH i2c: 01 07 00 5C 18 00 00 00 00 00 FF 0F 89 [06:58:38]process_action close_receipt done [06:58:38]requested_data is exist [06:58:38]produce_requested_data [06:58:38]requested_item fm.sn is exist - process it [06:58:38]wFMCommunicate request_size=4 [06:58:38]MH_SAM_APDU [06:58:38]CAPDU: 80 11 00 00 [06:58:38]Write to MH i2c: E2 08 00 5D 18 80 11 00 00 00 00 00 00 EF [06:58:38]Write i2c OK [06:58:38]MH_I2C_Read... [06:58:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:58:38]Read from MH i2c: E2 [06:58:38]MH_I2C_Read... [06:58:38]Read from MH i2c: E2 17 00 [06:58:38]MH_I2C_Read... [06:58:38]Read from MH i2c: E2 17 00 5D 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 43 [06:58:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [06:58:38]wFMCommunicate OK [06:58:38]requested_item fd.num is exist - process it [06:58:38]SAM_PROTO_GetFieldsCounters [06:58:38]wFMCommunicate request_size=4 [06:58:38]MH_SAM_APDU [06:58:38]CAPDU: 80 13 00 00 [06:58:38]Write to MH i2c: E2 08 00 5E 18 80 13 00 00 00 00 00 00 F2 [06:58:38]Write i2c OK [06:58:38]MH_I2C_Read... [06:58:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:58:38]Read from MH i2c: E2 [06:58:38]MH_I2C_Read... [06:58:38]Read from MH i2c: E2 62 00 [06:58:38]MH_I2C_Read... [06:58:38]Read from MH i2c: E2 62 00 5E 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 DD A7 01 00 0E 04 04 00 40 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 36 [06:58: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 DD A7 01 00 0E 04 04 00 40 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 [06:58:38]wFMCommunicate OK [06:58:38]SAM_PROTO_GetFieldsCounters done [06:58:38]requested_item shift.num is exist - process it [06:58:38]requested_item shift.opened is exist - process it [06:58:38]req_shift_opened [06:58:38]FM_GetShiftState [06:58:38]SAM_PROTO_GetShiftState [06:58:38]wFMCommunicate request_size=4 [06:58:38]MH_SAM_APDU [06:58:38]CAPDU: 80 13 01 00 [06:58:38]Write to MH i2c: E2 08 00 5F 18 80 13 01 00 00 00 00 00 F4 [06:58:38]Write i2c OK [06:58:38]MH_I2C_Read... [06:58:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:58:38]Read from MH i2c: E2 [06:58:38]MH_I2C_Read... [06:58:38]Read from MH i2c: E2 0E 00 [06:58:38]MH_I2C_Read... [06:58:38]Read from MH i2c: E2 0E 00 5F 18 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 28 [06:58:38]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [06:58:38]wFMCommunicate OK [06:58:38]SAM_PROTO_GetShiftState done [06:58:38]FM_GetShiftState done [06:58:38]req_shift_opened done [06:58:38]requested_item shift.open_date is exist - process it [06:58:38]req_shift_open_date [06:58:38]req_shift_open_date done [06:58:38]produce_requested_data done [06:58:38]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108509,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [06:58:38]process_action_free close_receipt [06:58:38]json_value_free [06:58:38]json_value_free done [06:58:38]process_json_proto returns [06:58:38]Send response to host [06:58:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108509,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [06:58:38]free response buf [06:58:38]execute_script done [06:58:38]execute_script returns [06:58:38]free content buf [06:58:38]Sock 8.Close socket [06:58:38]Sock 8.Thread stoped [06:58:42]OFD Sender: No OFD packet to send [06:58:47]OFD Sender: No OFD packet to send [06:58:52]OFD Sender: No OFD packet to send [06:58:57]OFD Sender: No OFD packet to send [06:59:02]OFD Sender: No OFD packet to send [06:59:07]OFD Sender: No OFD packet to send [06:59:12]OFD Sender: No OFD packet to send [06:59:17]OFD Sender: No OFD packet to send [06:59:22]OFD Sender: No OFD packet to send [06:59:27]OFD Sender: No OFD packet to send [06:59:32]OFD Sender: No OFD packet to send [06:59:37]OFD Sender: No OFD packet to send [06:59:42]OFD Sender: No OFD packet to send [06:59:47]OFD Sender: No OFD packet to send [06:59:52]OFD Sender: No OFD packet to send [06:59:52]accept exits with 9 [06:59:52]New connection [06:59:52]New thread 3067198820 created [06:59:52]Thread 3067342180 joined [06:59:52]Waiting for new connection... [06:59:52] Sock 9.Parse request [06:59:52]Sock 9.Check first char [06:59:52]Sock 9.First char is OK [06:59:52]request: POST /json_proto HTTP/1.0 [06:59:52]Method: POST [06:59:52]URL: /json_proto [06:59:52]Method is POST - this is cgi request [06:59:52]url: /json_proto [06:59:52]query_string will be loaded in cgi processing [06:59:52]execute_cgi json_proto POST (null) [06:59:52]execute_cgi path=json_proto method=POST [06:59:52]POST find Content-Length [06:59:52]Host: 172.17.32.69:8080 [06:59:52]Content-Length: 833 [06:59:52]Content-Type: application/json [06:59:52] [06:59:52]POST finish read [06:59:52]Found Content-Length = 833 [06:59:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 24.240, "sum" : 1500.46, "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: \u0414\u0435\u043C\u0438\u0440 \u041A\u0418 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:59:52]execute_script... [06:59: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)1040664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 24.240, "sum" : 1500.46, "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: \u0414\u0435\u043C\u0438\u0440 \u041A\u0418 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:59:52]POST & json_proto [06:59:52]process_json_proto [06:59:52]json parsed OK: [06:59:52]protocol is kg_v1.0 [06:59:52]action value=close_receipt [06:59:52]process_action close_receipt [06:59:52]cmd_close_receipt [06:59:52]MH_GetDate [06:59:52]Write to MH i2c: F0 00 00 60 18 67 [06:59:52]Write i2c OK [06:59:52]MH_I2C_Read... [06:59:52]Read from MH i2c: F0 [06:59:52]MH_I2C_Read... [06:59:52]Read from MH i2c: F0 09 00 [06:59:52]MH_I2C_Read... [06:59:52]Read from MH i2c: F0 09 00 60 18 00 EB F1 F3 65 D5 0F D3 65 C0 [06:59:52]GetLastDocTimeStamp 1710485917 [06:59:52]current date 1710485995 [06:59:52]FM_GetShiftState [06:59:52]SAM_PROTO_GetShiftState [06:59:52]wFMCommunicate request_size=4 [06:59:52]MH_SAM_APDU [06:59:52]CAPDU: 80 13 01 00 [06:59:52]Write to MH i2c: E2 08 00 61 18 80 13 01 00 00 00 00 00 F6 [06:59:52]Write i2c OK [06:59:52]MH_I2C_Read... [06:59:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:52]Read from MH i2c: E2 [06:59:52]MH_I2C_Read... [06:59:52]Read from MH i2c: E2 0E 00 [06:59:52]MH_I2C_Read... [06:59:52]Read from MH i2c: E2 0E 00 61 18 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 2A [06:59:52]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [06:59:52]wFMCommunicate OK [06:59:52]SAM_PROTO_GetShiftState done [06:59:52]FM_GetShiftState done [06:59:52]opened in 1710461757 [06:59:52]opened+sec_in_day 1710548157 [06:59:52]quantity*price = 150045 [06:59:52]sum+1 = 150047 [06:59:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.46 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 0.00 Безнал.: 1500.46 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 33 15.03.2024 06:59 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 Платежная система: Демир КИ Банк ФМ: 0000000000871818 ФД: 108510 ФПД: 77316943688885 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T065955&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108510&fm=77316943688885&tin=02508201610067®Number=0000000000091911&sum=150046 [06:59:54]StoreToDocumentArchive [06:59:54]shift 320 fd 108510 [06:59:54]save to /storage/0320/doc_00108510 [06:59:54]save last doc name /storage/0320/doc_00108510 to /storage/kkm_last_doc_name [06:59:54]save OK [06:59:54]Clear old archive folders... [06:59:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:59:54]tlvbuf is 000857C0 [06:59:54]SAM_PROTO_ClearQueue [06:59:54]wFMCommunicate request_size=4 [06:59:54]MH_SAM_APDU [06:59:54]CAPDU: 80 09 00 00 [06:59:54]Write to MH i2c: E2 08 00 6E 18 80 09 00 00 00 00 00 00 F8 [06:59:54]Write i2c OK [06:59:54]MH_I2C_Read... [06:59:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:59:54]Read from MH i2c: E2 [06:59:54]MH_I2C_Read... [06:59:54]Read from MH i2c: E2 03 00 [06:59:54]MH_I2C_Read... [06:59:54]Read from MH i2c: E2 03 00 6E 18 00 90 00 FA [06:59:54]RAPDU: 90 00 [06:59:54]wFMCommunicate OK [06:59:54]SAM_PROTO_ClearQueue done [06:59:54]KKMCreateOFDPacket [06:59:54]OFDProtocolAddRootSTLVToBuf [06:59:54]FM_MakeSignedData [06:59:54]FM_MakeSignedData [06:59:54]SAM_PROTO_SignData [06:59:54]wFMCommunicate request_size=4 [06:59:54]MH_SAM_APDU [06:59:54]CAPDU: 80 0D 01 02 [06:59:54]Write to MH i2c: E2 08 00 6F 18 80 0D 01 02 00 00 00 00 00 [06:59:54]Write i2c OK [06:59:54]MH_I2C_Read... [06:59:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:59:54]Read from MH i2c: E2 [06:59:54]MH_I2C_Read... [06:59:54]Read from MH i2c: E2 03 00 [06:59:54]MH_I2C_Read... [06:59:54]Read from MH i2c: E2 03 00 6F 18 00 90 00 FB [06:59:54]RAPDU: 90 00 [06:59:54]wFMCommunicate OK [06:59:54]wFMCommunicate request_size=255 [06:59:54]MH_SAM_APDU [06:59:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 5E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 1E 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1E 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1E 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 EB F1 F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 DE A7 01 00 35 04 06 00 46 [06:59:54]Write to MH i2c: E2 02 01 70 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 5E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 1E 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1E 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1E 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 EB F1 F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 DE A7 01 00 35 04 06 00 46 00 00 AC [06:59:54]Write i2c OK [06:59:54]MH_I2C_Read... [06:59:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:54]Read from MH i2c: E2 [06:59:54]MH_I2C_Read... [06:59:54]Read from MH i2c: E2 03 00 [06:59:54]MH_I2C_Read... [06:59:54]Read from MH i2c: E2 03 00 70 18 00 90 00 FC [06:59:54]RAPDU: 90 00 [06:59:54]wFMCommunicate OK [06:59:54]wFMCommunicate request_size=10 [06:59:54]MH_SAM_APDU [06:59:54]CAPDU: 80 0D 02 02 05 51 C0 F6 B4 B5 [06:59:54]Write to MH i2c: E2 0D 00 71 18 80 0D 02 02 05 00 51 C0 F6 B4 B5 00 00 7D [06:59:54]Write i2c OK [06:59:54]MH_I2C_Read... [06:59:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:54]Read from MH i2c: E2 [06:59:54]MH_I2C_Read... [06:59:54]Read from MH i2c: E2 03 00 [06:59:54]MH_I2C_Read... [06:59:54]Read from MH i2c: E2 03 00 71 18 00 90 00 FD [06:59:54]RAPDU: 90 00 [06:59:54]wFMCommunicate OK [06:59:54]wFMCommunicate request_size=4 [06:59:54]MH_SAM_APDU [06:59:54]CAPDU: 80 0D 03 02 [06:59:54]Write to MH i2c: E2 08 00 72 18 80 0D 03 02 00 00 00 00 05 [06:59:54]Write i2c OK [06:59:54]MH_I2C_Read... [06:59:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:59:54]Read from MH i2c: E2 [06:59:54]MH_I2C_Read... [06:59:54]Read from MH i2c: E2 0B 00 [06:59:54]MH_I2C_Read... [06:59:54]Read from MH i2c: E2 0B 00 72 18 00 17 D3 64 04 98 98 01 57 90 00 E0 [06:59:54]RAPDU: 17 D3 64 04 98 98 01 57 90 00 [06:59:54]wFMCommunicate OK [06:59:54]SAM_PROTO_SignData done [06:59:54]FM_MakeSignedData done [06:59:54]CreateOFDProtocolMessage [06:59:54]wFMCommunicate request_size=4 [06:59:54]MH_SAM_APDU [06:59:54]CAPDU: 80 11 00 00 [06:59:54]Write to MH i2c: E2 08 00 73 18 80 11 00 00 00 00 00 00 05 [06:59:54]Write i2c OK [06:59:54]MH_I2C_Read... [06:59:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:54]Read from MH i2c: E2 [06:59:54]MH_I2C_Read... [06:59:54]Read from MH i2c: E2 17 00 [06:59:54]MH_I2C_Read... [06:59:54]Read from MH i2c: E2 17 00 73 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 59 [06:59:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [06:59:54]wFMCommunicate OK [06:59:54]CreateOFDProtocolMessage done [06:59:54]OFDSenderStorePacket 108510 [06:59:54]StoreOFDPacket docnum=108510 [06:59:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 C0 AC 07 01 76 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 5E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 1E 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1E 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1E 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 EB F1 F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 DE A7 01 00 35 04 06 00 46 51 C0 F6 B4 B5 17 D3 64 04 98 98 01 57 [06:59:54]CheckFolder [06:59:54]dirname=/storage/ofd_packets [06:59:54]CheckFolder done [06:59:54]ProducePacketName [06:59:54]name=ofd_packets/00108510 [06:59:54]NVStorageSaveData ofd_packets/00108510 [06:59:54]File name is /storage/ofd_packets/00108510 [06:59:54]Write 301 bytes [06:59:54]NVStorageSaveData done [06:59:54]OFDSenderStorePacket done [06:59:54]KKMCreateOFDPacket done [06:59:54]NVStorageSaveData kkm_last_timestamp [06:59:54]File name is /storage/kkm_last_timestamp [06:59:54]Write 4 bytes [06:59:54]NVStorageSaveData done [06:59:54]ExternCall_PrintAddStr [06:59:54]wPrintStart [06:59:54]Write to MH i2c: 01 00 00 74 18 8C [06:59:54]Write i2c OK [06:59:54]MH_I2C_Read... [06:59:54]Read from MH i2c: 01 [06:59:54]MH_I2C_Read... [06:59:54]Read from MH i2c: 01 07 00 [06:59:54]MH_I2C_Read... [06:59:54]Read from MH i2c: 01 07 00 74 18 00 00 00 00 00 FF 0F A1 [06:59:54]RasterBufferAndPrint [06:59:54]line Счет N : (1)1040664 [06:59:54]line ИНН: 02508201610067 [06:59:54]line Контрольно-Кассовый Чек [06:59:54]line ПРОДАЖА [06:59:54]line ТРК (МРК, ГНК) : 13 [06:59:54]line Товар: 2710124130 [06:59:54]line Аи-92-К-5 [06:59:54]line 24.240 * 61.90 [06:59:54]line = 1500.46 [06:59:54]line НДС 12% НСП 1% [06:59:54]line > о реализуемом товаре [06:59:54]line ИТОГО: 1500.46 [06:59:54]line НСП 1% : 13.28 [06:59:54]line НДС 12% : 159.34 [06:59:54]line Наличными: 0.00 [06:59:54]line Безнал.: 1500.46 [06:59:54]line Место: АЗС № 15 "Партнер Нефть" [06:59:54]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [06:59:54]line СНО: Общий режим [06:59:54]line Чек 33 15.03.2024 06:59 [06:59:54]line Смена: 320 ФФД: 1.0 [06:59:54]line ЗНМ: 0300000266 [06:59:54]line РНМ: 0000000000091911 [06:59:54]line Версия ККМ: 001 [06:59:54]line Платежная система: Демир КИ Банк [06:59:54]line ФМ: 0000000000871818 [06:59:54]line ФД: 108510 [06:59:54]line ФПД: 77316943688885 [06:59:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T065955&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108510&fm=77316943688885&tin=02508201610067®Number=0000000000091911&sum=150046 [06:59:54]OFD Sender: Processing packet 108510 [packets to send 29, broken 28] [06:59:54]ProducePacketName [06:59:54]name=ofd_packets/00108510 [06:59:54]OFD Sender: To server: pG, [06:59:54]CommunicateWithHost lk.salyk.kg:30040 [06:59:54]ConnectInit lk.salyk.kg [06:59:54]written 0, free lines is 4095 [06:59:54]Connected sock=11 [06:59: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 31 38 0F 01 00 00 C0 AC 07 01 76 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 5E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 1E 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1E 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1E 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 EB F1 F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 DE A7 01 00 35 04 06 00 46 51 C0 F6 B4 B5 17 D3 64 04 98 98 01 57 [06:59: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 31 38 4F 00 00 00 86 CD 47 00 9D 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 31 38 10 04 04 00 DE A7 01 00 F4 03 04 00 8C 9D F3 65 B6 04 01 00 00 E5 F1 AD 10 8C 2E 3E 06 [06:59:55]CommunicateWithHost err = 0 [06:59:55]CheckOFDResponse [06:59:55]1017 (14) - 77093643461234 [06:59:55]1041 (16) - 0000000000871818 [06:59:55]1040 (4) - 108510 [06:59:55]1012 (4) - 15.03.2024 00:59 [06:59:55]1206 (1) - 0 [06:59:55]OFD Sender: Remove packet 108510 [06:59:55]ProducePacketName [06:59:55]name=ofd_packets/00108510 [06:59:55]NVStorageDeleteData [06:59:55]Write to MH i2c: 01 00 00 9E 18 B6 [06:59:55]Write i2c OK [06:59:55]MH_I2C_Read... [06:59:55]Read from MH i2c: 01 [06:59:55]MH_I2C_Read... [06:59:55]Read from MH i2c: 01 07 00 [06:59:55]MH_I2C_Read... [06:59:55]Read from MH i2c: 01 07 00 9E 18 00 00 00 00 00 D0 0C 99 [06:59:55]RasterBufferAndPrint [06:59:55]line [06:59:55]line [06:59:55]line [06:59:55]line [06:59:55]line [06:59:55]written 0, free lines is 3287 [06:59:55]MH_Cut [06:59:55]Write to MH i2c: D1 01 00 A5 18 01 8F [06:59:55]Write i2c OK [06:59:55]MH_I2C_Read... [06:59:55]Read from MH i2c: D1 [06:59:55]MH_I2C_Read... [06:59:55]Read from MH i2c: D1 01 00 [06:59:55]MH_I2C_Read... [06:59:55]Read from MH i2c: D1 01 00 A5 18 00 8E [06:59:55]Write to MH i2c: 01 00 00 A6 18 BE [06:59:55]Write i2c OK [06:59:55]MH_I2C_Read... [06:59:55]OFD Sender: No OFD packet to send [06:59:56]*** Cut start [06:59:56]*** Purtial cut [06:59:56]*** Stage 1: CUTSNS_PIN = 1 [06:59:56]Read from MH i2c: 01 [06:59:56]MH_I2C_Read... [06:59:56]*** Stop cut motor [06:59:56]*** Cut end [06:59:56]Read from MH i2c: 01 07 00 [06:59:56]MH_I2C_Read... [06:59:56]Read from MH i2c: 01 07 00 A6 18 00 00 00 00 00 FF 0F D3 [06:59:56]process_action close_receipt done [06:59:56]requested_data is exist [06:59:56]produce_requested_data [06:59:56]requested_item fm.sn is exist - process it [06:59:56]wFMCommunicate request_size=4 [06:59:56]MH_SAM_APDU [06:59:56]CAPDU: 80 11 00 00 [06:59:56]Write to MH i2c: E2 08 00 A7 18 80 11 00 00 00 00 00 00 39 [06:59:56]Write i2c OK [06:59:56]MH_I2C_Read... [06:59:56]Read from MH i2c: E2 [06:59:56]MH_I2C_Read... [06:59:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:56]Read from MH i2c: E2 17 00 [06:59:56]MH_I2C_Read... [06:59:56]Read from MH i2c: E2 17 00 A7 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 8D [06:59:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [06:59:56]wFMCommunicate OK [06:59:56]requested_item fd.num is exist - process it [06:59:56]SAM_PROTO_GetFieldsCounters [06:59:56]wFMCommunicate request_size=4 [06:59:56]MH_SAM_APDU [06:59:56]CAPDU: 80 13 00 00 [06:59:56]Write to MH i2c: E2 08 00 A8 18 80 13 00 00 00 00 00 00 3C [06:59:56]Write i2c OK [06:59:56]MH_I2C_Read... [06:59:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:59:56]Read from MH i2c: E2 [06:59:56]MH_I2C_Read... [06:59:56]Read from MH i2c: E2 62 00 [06:59:56]MH_I2C_Read... [06:59:56]Read from MH i2c: E2 62 00 A8 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 DE A7 01 00 0E 04 04 00 40 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 84 [06:59: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 DE A7 01 00 0E 04 04 00 40 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 [06:59:56]wFMCommunicate OK [06:59:56]SAM_PROTO_GetFieldsCounters done [06:59:56]requested_item shift.num is exist - process it [06:59:56]requested_item shift.opened is exist - process it [06:59:56]req_shift_opened [06:59:56]FM_GetShiftState [06:59:56]SAM_PROTO_GetShiftState [06:59:56]wFMCommunicate request_size=4 [06:59:56]MH_SAM_APDU [06:59:56]CAPDU: 80 13 01 00 [06:59:56]Write to MH i2c: E2 08 00 A9 18 80 13 01 00 00 00 00 00 3E [06:59:56]Write i2c OK [06:59:56]MH_I2C_Read... [06:59:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:56]Read from MH i2c: E2 [06:59:56]MH_I2C_Read... [06:59:56]Read from MH i2c: E2 0E 00 [06:59:56]MH_I2C_Read... [06:59:56]Read from MH i2c: E2 0E 00 A9 18 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 72 [06:59:56]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [06:59:56]wFMCommunicate OK [06:59:56]SAM_PROTO_GetShiftState done [06:59:56]FM_GetShiftState done [06:59:56]req_shift_opened done [06:59:56]requested_item shift.open_date is exist - process it [06:59:56]req_shift_open_date [06:59:56]req_shift_open_date done [06:59:56]produce_requested_data done [06:59:56]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108510,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [06:59:56]process_action_free close_receipt [06:59:56]json_value_free [06:59:56]json_value_free done [06:59:56]process_json_proto returns [06:59:56]Send response to host [06:59:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108510,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [06:59:56]free response buf [06:59:56]execute_script done [06:59:56]execute_script returns [06:59:56]free content buf [06:59:56]Sock 9.Close socket [06:59:56]Sock 9.Thread stoped [07:00:00]OFD Sender: No OFD packet to send [07:00:05]OFD Sender: No OFD packet to send [07:00:10]OFD Sender: No OFD packet to send [07:00:15]OFD Sender: No OFD packet to send [07:00:20]OFD Sender: No OFD packet to send [07:00:25]OFD Sender: No OFD packet to send [07:00:30]OFD Sender: No OFD packet to send [07:00:35]OFD Sender: No OFD packet to send [07:00:40]OFD Sender: No OFD packet to send [07:00:45]OFD Sender: No OFD packet to send [07:00:50]OFD Sender: No OFD packet to send [07:00:55]OFD Sender: No OFD packet to send [07:01:00]OFD Sender: No OFD packet to send [07:01:05]OFD Sender: No OFD packet to send [07:01:10]OFD Sender: No OFD packet to send [07:01:15]OFD Sender: No OFD packet to send [07:01:20]OFD Sender: No OFD packet to send [07:01:25]OFD Sender: No OFD packet to send [07:01:30]OFD Sender: No OFD packet to send [07:01:35]OFD Sender: No OFD packet to send [07:01:40]OFD Sender: No OFD packet to send [07:01:45]OFD Sender: No OFD packet to send [07:01:50]OFD Sender: No OFD packet to send [07:01:55]OFD Sender: No OFD packet to send [07:02:00]OFD Sender: No OFD packet to send [07:02:05]OFD Sender: No OFD packet to send [07:02:10]OFD Sender: No OFD packet to send [07:02:15]OFD Sender: No OFD packet to send [07:02:20]OFD Sender: No OFD packet to send [07:02:25]OFD Sender: No OFD packet to send [07:02:30]OFD Sender: No OFD packet to send [07:02:35]OFD Sender: No OFD packet to send [07:02:40]OFD Sender: No OFD packet to send [07:02:45]OFD Sender: No OFD packet to send [07:02:50]OFD Sender: No OFD packet to send [07:02:55]OFD Sender: No OFD packet to send [07:03:00]OFD Sender: No OFD packet to send [07:03:05]OFD Sender: No OFD packet to send [07:03:10]OFD Sender: No OFD packet to send [07:03:15]OFD Sender: No OFD packet to send [07:03:20]OFD Sender: No OFD packet to send [07:03:25]OFD Sender: No OFD packet to send [07:03:30]OFD Sender: No OFD packet to send [07:03:35]OFD Sender: No OFD packet to send [07:03:40]OFD Sender: No OFD packet to send [07:03:45]OFD Sender: No OFD packet to send [07:03:50]OFD Sender: No OFD packet to send [07:03:55]OFD Sender: No OFD packet to send [07:04:00]OFD Sender: No OFD packet to send [07:04:05]OFD Sender: No OFD packet to send [07:04:10]OFD Sender: No OFD packet to send [07:04:15]OFD Sender: No OFD packet to send [07:04:20]OFD Sender: No OFD packet to send [07:04:25]OFD Sender: No OFD packet to send [07:04:30]OFD Sender: No OFD packet to send [07:04:35]OFD Sender: No OFD packet to send [07:04:40]OFD Sender: No OFD packet to send [07:04:45]OFD Sender: No OFD packet to send [07:04:50]OFD Sender: No OFD packet to send [07:04:55]OFD Sender: No OFD packet to send [07:05:00]OFD Sender: No OFD packet to send [07:05:05]OFD Sender: No OFD packet to send [07:05:10]OFD Sender: No OFD packet to send [07:05:15]OFD Sender: No OFD packet to send [07:05:20]OFD Sender: No OFD packet to send [07:05:25]OFD Sender: No OFD packet to send [07:05:30]OFD Sender: No OFD packet to send [07:05:35]OFD Sender: No OFD packet to send [07:05:40]OFD Sender: No OFD packet to send [07:05:45]OFD Sender: No OFD packet to send [07:05:50]OFD Sender: No OFD packet to send [07:05:55]OFD Sender: No OFD packet to send [07:06:00]OFD Sender: No OFD packet to send [07:06:05]OFD Sender: No OFD packet to send [07:06:10]OFD Sender: No OFD packet to send [07:06:15]OFD Sender: No OFD packet to send [07:06:20]OFD Sender: No OFD packet to send [07:06:25]OFD Sender: No OFD packet to send [07:06:30]OFD Sender: No OFD packet to send [07:06:36]OFD Sender: No OFD packet to send [07:06:41]OFD Sender: No OFD packet to send [07:06:46]OFD Sender: No OFD packet to send [07:06:51]OFD Sender: No OFD packet to send [07:06:56]OFD Sender: No OFD packet to send [07:07:01]OFD Sender: No OFD packet to send [07:07:06]OFD Sender: No OFD packet to send [07:07:11]OFD Sender: No OFD packet to send [07:07:16]OFD Sender: No OFD packet to send [07:07:21]OFD Sender: No OFD packet to send [07:07:26]OFD Sender: No OFD packet to send [07:07:31]OFD Sender: No OFD packet to send [07:07:36]OFD Sender: No OFD packet to send [07:07:41]OFD Sender: No OFD packet to send [07:07:46]OFD Sender: No OFD packet to send [07:07:51]OFD Sender: No OFD packet to send [07:07:56]OFD Sender: No OFD packet to send [07:08:01]OFD Sender: No OFD packet to send [07:08:06]OFD Sender: No OFD packet to send [07:08:11]OFD Sender: No OFD packet to send [07:08:16]OFD Sender: No OFD packet to send [07:08:21]OFD Sender: No OFD packet to send [07:08:26]OFD Sender: No OFD packet to send [07:08:31]OFD Sender: No OFD packet to send [07:08:36]OFD Sender: No OFD packet to send [07:08:41]OFD Sender: No OFD packet to send [07:08:46]OFD Sender: No OFD packet to send [07:08:51]OFD Sender: No OFD packet to send [07:08:56]OFD Sender: No OFD packet to send [07:09:01]OFD Sender: No OFD packet to send [07:09:06]OFD Sender: No OFD packet to send [07:09:11]OFD Sender: No OFD packet to send [07:09:16]OFD Sender: No OFD packet to send [07:09:21]OFD Sender: No OFD packet to send [07:09:26]OFD Sender: No OFD packet to send [07:09:31]OFD Sender: No OFD packet to send [07:09:36]OFD Sender: No OFD packet to send [07:09:41]OFD Sender: No OFD packet to send [07:09:46]OFD Sender: No OFD packet to send [07:09:51]OFD Sender: No OFD packet to send [07:09:56]OFD Sender: No OFD packet to send [07:10:01]OFD Sender: No OFD packet to send [07:10:06]OFD Sender: No OFD packet to send [07:10:11]OFD Sender: No OFD packet to send [07:10:16]OFD Sender: No OFD packet to send [07:10:21]OFD Sender: No OFD packet to send [07:10:26]OFD Sender: No OFD packet to send [07:10:31]OFD Sender: No OFD packet to send [07:10:36]OFD Sender: No OFD packet to send [07:10:41]OFD Sender: No OFD packet to send [07:10:46]OFD Sender: No OFD packet to send [07:10:51]OFD Sender: No OFD packet to send [07:10:56]OFD Sender: No OFD packet to send [07:11:01]OFD Sender: No OFD packet to send [07:11:06]OFD Sender: No OFD packet to send [07:11:11]OFD Sender: No OFD packet to send [07:11:16]OFD Sender: No OFD packet to send [07:11:21]OFD Sender: No OFD packet to send [07:11:26]OFD Sender: No OFD packet to send [07:11:31]OFD Sender: No OFD packet to send [07:11:36]OFD Sender: No OFD packet to send [07:11:41]OFD Sender: No OFD packet to send [07:11:46]OFD Sender: No OFD packet to send [07:11:51]OFD Sender: No OFD packet to send [07:11:56]OFD Sender: No OFD packet to send [07:12:01]OFD Sender: No OFD packet to send [07:12:06]OFD Sender: No OFD packet to send [07:12:11]OFD Sender: No OFD packet to send [07:12:16]OFD Sender: No OFD packet to send [07:12:21]OFD Sender: No OFD packet to send [07:12:26]OFD Sender: No OFD packet to send [07:12:31]OFD Sender: No OFD packet to send [07:12:36]OFD Sender: No OFD packet to send [07:12:39]accept exits with 8 [07:12:39]New connection [07:12:39]New thread 3067342180 created [07:12:39]Thread 3067198820 joined [07:12:39]Waiting for new connection... [07:12:39] Sock 8.Parse request [07:12:39]Sock 8.Check first char [07:12:39]Sock 8.First char is OK [07:12:39]request: POST /json_proto HTTP/1.0 [07:12:39]Method: POST [07:12:39]URL: /json_proto [07:12:39]Method is POST - this is cgi request [07:12:39]url: /json_proto [07:12:39]query_string will be loaded in cgi processing [07:12:39]execute_cgi json_proto POST (null) [07:12:39]execute_cgi path=json_proto method=POST [07:12:39]POST find Content-Length [07:12:39]Host: 172.17.32.69:8080 [07:12:39]Content-Length: 1167 [07:12:39]Content-Type: application/json [07:12:39] [07:12:39]POST finish read [07:12:39]Found Content-Length = 1167 [07:12:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040665\u000A15.03.2024 07:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 9.210 x 61.90\u000A\u0418\u0422\u041E\u0413: 570.10\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A861537\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:12:39]execute_script... [07:12:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040665\u000A15.03.2024 07:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 9.210 x 61.90\u000A\u0418\u0422\u041E\u0413: 570.10\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A861537\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:12:39]POST & json_proto [07:12:39]process_json_proto [07:12:39]json parsed OK: [07:12:39]protocol is kg_v1.0 [07:12:39]action value=print_text [07:12:39]process_action print_text [07:12:39]cmd_print_text [07:12:39]ExternCall_PrintAddStr [07:12:39]wPrintStart [07:12:39]Write to MH i2c: 01 00 00 AA 18 C2 [07:12:39]Write i2c OK [07:12:39]MH_I2C_Read... [07:12:39]Read from MH i2c: 01 [07:12:39]MH_I2C_Read... [07:12:39]Read from MH i2c: 01 07 00 [07:12:39]MH_I2C_Read... [07:12:39]Read from MH i2c: 01 07 00 AA 18 00 00 00 00 00 FF 0F D7 [07:12:39]RasterBufferAndPrint [07:12:39]line *****ТОВАРНЫЙ ЧЕК***** [07:12:39]line АЗС 15 [07:12:39]line Партнер нефть [07:12:39]line 02508201610067 [07:12:39]line Кассир : Максатбек у Д. [07:12:39]line Счет N : (1)1040665 [07:12:39]line 15.03.2024 07:04 [07:12:39]line ПРОДАЖА [07:12:39]line ТРК (МРК, ГНК): 33 [07:12:39]line Вид ГСМ : 2710124130 [07:12:39]line Аи-92-К-5 [07:12:39]line 9.210 x 61.90 [07:12:39]line ИТОГ: 570.10 [07:12:39]line Тип оплаты: Талоны: ТК ГПНА Online [07:12:39]line 861537 [07:12:39]line ______________________ [07:12:39]line (подпись) [07:12:39]written 0, free lines is 4095 [07:12:39]Write to MH i2c: 01 00 00 BF 18 D7 [07:12:39]Write i2c OK [07:12:39]MH_I2C_Read... [07:12:39]Read from MH i2c: 01 [07:12:39]MH_I2C_Read... [07:12:39]Read from MH i2c: 01 07 00 [07:12:39]MH_I2C_Read... [07:12:39]Read from MH i2c: 01 07 00 BF 18 00 00 00 00 00 F3 0D DE [07:12:39]RasterBufferAndPrint [07:12:39]line [07:12:39]line [07:12:39]line [07:12:39]line [07:12:39]line [07:12:39]written 0, free lines is 3572 [07:12:39]MH_Cut [07:12:39]Write to MH i2c: D1 01 00 C6 18 01 B0 [07:12:39]Write i2c OK [07:12:39]MH_I2C_Read... [07:12:39]Read from MH i2c: D1 [07:12:39]MH_I2C_Read... [07:12:39]Read from MH i2c: D1 01 00 [07:12:39]MH_I2C_Read... [07:12:39]Read from MH i2c: D1 01 00 C6 18 00 AF [07:12:39]Write to MH i2c: 01 00 00 C7 18 DF [07:12:39]Write i2c OK [07:12:39]MH_I2C_Read... [07:12:40]*** Cut start [07:12:40]*** Purtial cut [07:12:40]*** Stage 1: CUTSNS_PIN = 1 [07:12:40]Read from MH i2c: 01 [07:12:40]MH_I2C_Read... [07:12:40]Read from MH i2c: 01 07 00 [07:12:40]MH_I2C_Read... [07:12:40]*** Stop cut motor [07:12:40]*** Cut end [07:12:40]Read from MH i2c: 01 07 00 C7 18 00 00 00 00 00 FF 0F F4 [07:12:40]process_action print_text done [07:12:40]requested_data is exist [07:12:40]produce_requested_data [07:12:40]requested_item fm.sn is exist - process it [07:12:40]wFMCommunicate request_size=4 [07:12:40]MH_SAM_APDU [07:12:40]CAPDU: 80 11 00 00 [07:12:40]Write to MH i2c: E2 08 00 C8 18 80 11 00 00 00 00 00 00 5A [07:12:40]Write i2c OK [07:12:40]MH_I2C_Read... [07:12:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:12:40]Read from MH i2c: E2 [07:12:40]MH_I2C_Read... [07:12:40]Read from MH i2c: E2 17 00 [07:12:40]MH_I2C_Read... [07:12:40]Read from MH i2c: E2 17 00 C8 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 AE [07:12:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [07:12:40]wFMCommunicate OK [07:12:40]requested_item fd.num is exist - process it [07:12:40]SAM_PROTO_GetFieldsCounters [07:12:40]wFMCommunicate request_size=4 [07:12:40]MH_SAM_APDU [07:12:40]CAPDU: 80 13 00 00 [07:12:40]Write to MH i2c: E2 08 00 C9 18 80 13 00 00 00 00 00 00 5D [07:12:40]Write i2c OK [07:12:40]MH_I2C_Read... [07:12:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:12:40]Read from MH i2c: E2 [07:12:40]MH_I2C_Read... [07:12:40]Read from MH i2c: E2 62 00 [07:12:40]MH_I2C_Read... [07:12:40]Read from MH i2c: E2 62 00 C9 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 DE A7 01 00 0E 04 04 00 40 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 A5 [07:12: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 DE A7 01 00 0E 04 04 00 40 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 [07:12:40]wFMCommunicate OK [07:12:40]SAM_PROTO_GetFieldsCounters done [07:12:40]requested_item shift.num is exist - process it [07:12:40]requested_item shift.opened is exist - process it [07:12:40]req_shift_opened [07:12:40]FM_GetShiftState [07:12:40]SAM_PROTO_GetShiftState [07:12:40]wFMCommunicate request_size=4 [07:12:40]MH_SAM_APDU [07:12:40]CAPDU: 80 13 01 00 [07:12:40]Write to MH i2c: E2 08 00 CA 18 80 13 01 00 00 00 00 00 5F [07:12:40]Write i2c OK [07:12:40]MH_I2C_Read... [07:12:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:12:40]Read from MH i2c: E2 [07:12:40]MH_I2C_Read... [07:12:40]Read from MH i2c: E2 0E 00 [07:12:40]MH_I2C_Read... [07:12:40]Read from MH i2c: E2 0E 00 CA 18 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 93 [07:12:40]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [07:12:40]wFMCommunicate OK [07:12:40]SAM_PROTO_GetShiftState done [07:12:40]FM_GetShiftState done [07:12:40]req_shift_opened done [07:12:40]requested_item shift.open_date is exist - process it [07:12:40]req_shift_open_date [07:12:40]req_shift_open_date done [07:12:40]produce_requested_data done [07:12:40]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108510,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [07:12:40]process_action_free print_text [07:12:40]json_value_free [07:12:40]json_value_free done [07:12:40]process_json_proto returns [07:12:40]Send response to host [07:12:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108510,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [07:12:40]free response buf [07:12:40]execute_script done [07:12:40]execute_script returns [07:12:40]free content buf [07:12:40]Sock 8.Close socket [07:12:40]Sock 8.Thread stoped [07:12:41]OFD Sender: No OFD packet to send [07:12:46]OFD Sender: No OFD packet to send [07:12:51]OFD Sender: No OFD packet to send [07:12:56]OFD Sender: No OFD packet to send [07:13:01]OFD Sender: No OFD packet to send [07:13:06]OFD Sender: No OFD packet to send [07:13:11]OFD Sender: No OFD packet to send [07:13:16]OFD Sender: No OFD packet to send [07:13:21]OFD Sender: No OFD packet to send [07:13:26]OFD Sender: No OFD packet to send [07:13:31]OFD Sender: No OFD packet to send [07:13:36]OFD Sender: No OFD packet to send [07:13:41]OFD Sender: No OFD packet to send [07:13:46]OFD Sender: No OFD packet to send [07:13:51]OFD Sender: No OFD packet to send [07:13:56]OFD Sender: No OFD packet to send [07:14:01]OFD Sender: No OFD packet to send [07:14:06]OFD Sender: No OFD packet to send [07:14:11]OFD Sender: No OFD packet to send [07:14:16]OFD Sender: No OFD packet to send [07:14:21]OFD Sender: No OFD packet to send [07:14:26]OFD Sender: No OFD packet to send [07:14:31]OFD Sender: No OFD packet to send [07:14:36]OFD Sender: No OFD packet to send [07:14:41]OFD Sender: No OFD packet to send [07:14:46]OFD Sender: No OFD packet to send [07:14:51]OFD Sender: No OFD packet to send [07:14:56]OFD Sender: No OFD packet to send [07:15:01]OFD Sender: No OFD packet to send [07:15:06]OFD Sender: No OFD packet to send [07:15:11]OFD Sender: No OFD packet to send [07:15:16]OFD Sender: No OFD packet to send [07:15:21]OFD Sender: No OFD packet to send [07:15:26]OFD Sender: No OFD packet to send [07:15:31]OFD Sender: No OFD packet to send [07:15:36]OFD Sender: No OFD packet to send [07:15:41]OFD Sender: No OFD packet to send [07:15:46]OFD Sender: No OFD packet to send [07:15:51]OFD Sender: No OFD packet to send [07:15:56]OFD Sender: No OFD packet to send [07:16:01]OFD Sender: No OFD packet to send [07:16:06]OFD Sender: No OFD packet to send [07:16:11]OFD Sender: No OFD packet to send [07:16:16]OFD Sender: No OFD packet to send [07:16:21]OFD Sender: No OFD packet to send [07:16:26]OFD Sender: No OFD packet to send [07:16:31]OFD Sender: No OFD packet to send [07:16:36]OFD Sender: No OFD packet to send [07:16:41]OFD Sender: No OFD packet to send [07:16:46]OFD Sender: No OFD packet to send [07:16:51]OFD Sender: No OFD packet to send [07:16:56]OFD Sender: No OFD packet to send [07:17:01]OFD Sender: No OFD packet to send [07:17:06]OFD Sender: No OFD packet to send [07:17:11]OFD Sender: No OFD packet to send [07:17:16]OFD Sender: No OFD packet to send [07:17:21]OFD Sender: No OFD packet to send [07:17:26]OFD Sender: No OFD packet to send [07:17:31]OFD Sender: No OFD packet to send [07:17:36]OFD Sender: No OFD packet to send [07:17:41]OFD Sender: No OFD packet to send [07:17:46]OFD Sender: No OFD packet to send [07:17:51]OFD Sender: No OFD packet to send [07:17:56]OFD Sender: No OFD packet to send [07:18:01]OFD Sender: No OFD packet to send [07:18:06]OFD Sender: No OFD packet to send [07:18:11]OFD Sender: No OFD packet to send [07:18:16]OFD Sender: No OFD packet to send [07:18:21]OFD Sender: No OFD packet to send [07:18:26]OFD Sender: No OFD packet to send [07:18:31]OFD Sender: No OFD packet to send [07:18:36]OFD Sender: No OFD packet to send [07:18:41]OFD Sender: No OFD packet to send [07:18:46]OFD Sender: No OFD packet to send [07:18:51]OFD Sender: No OFD packet to send [07:18:56]OFD Sender: No OFD packet to send [07:19:01]OFD Sender: No OFD packet to send [07:19:06]OFD Sender: No OFD packet to send [07:19:11]OFD Sender: No OFD packet to send [07:19:16]OFD Sender: No OFD packet to send [07:19:21]OFD Sender: No OFD packet to send [07:19:26]OFD Sender: No OFD packet to send [07:19:31]OFD Sender: No OFD packet to send [07:19:36]OFD Sender: No OFD packet to send [07:19:41]OFD Sender: No OFD packet to send [07:19:46]OFD Sender: No OFD packet to send [07:19:51]OFD Sender: No OFD packet to send [07:19:56]OFD Sender: No OFD packet to send [07:20:01]OFD Sender: No OFD packet to send [07:20:06]OFD Sender: No OFD packet to send [07:20:11]OFD Sender: No OFD packet to send [07:20:16]OFD Sender: No OFD packet to send [07:20:21]OFD Sender: No OFD packet to send [07:20:26]OFD Sender: No OFD packet to send [07:20:31]OFD Sender: No OFD packet to send [07:20:36]OFD Sender: No OFD packet to send [07:20:41]OFD Sender: No OFD packet to send [07:20:46]OFD Sender: No OFD packet to send [07:20:51]OFD Sender: No OFD packet to send [07:20:56]OFD Sender: No OFD packet to send [07:21:01]OFD Sender: No OFD packet to send [07:21:06]OFD Sender: No OFD packet to send [07:21:11]OFD Sender: No OFD packet to send [07:21:16]OFD Sender: No OFD packet to send [07:21:21]OFD Sender: No OFD packet to send [07:21:26]OFD Sender: No OFD packet to send [07:21:31]OFD Sender: No OFD packet to send [07:21:36]OFD Sender: No OFD packet to send [07:21:41]OFD Sender: No OFD packet to send [07:21:46]OFD Sender: No OFD packet to send [07:21:51]OFD Sender: No OFD packet to send [07:21:56]OFD Sender: No OFD packet to send [07:22:01]OFD Sender: No OFD packet to send [07:22:06]OFD Sender: No OFD packet to send [07:22:11]OFD Sender: No OFD packet to send [07:22:16]OFD Sender: No OFD packet to send [07:22:21]OFD Sender: No OFD packet to send [07:22:26]OFD Sender: No OFD packet to send [07:22:31]OFD Sender: No OFD packet to send [07:22:36]OFD Sender: No OFD packet to send [07:22:41]OFD Sender: No OFD packet to send [07:22:46]OFD Sender: No OFD packet to send [07:22:51]OFD Sender: No OFD packet to send [07:22:56]OFD Sender: No OFD packet to send [07:23:01]OFD Sender: No OFD packet to send [07:23:06]OFD Sender: No OFD packet to send [07:23:11]OFD Sender: No OFD packet to send [07:23:16]OFD Sender: No OFD packet to send [07:23:21]OFD Sender: No OFD packet to send [07:23:26]OFD Sender: No OFD packet to send [07:23:31]OFD Sender: No OFD packet to send [07:23:36]OFD Sender: No OFD packet to send [07:23:41]OFD Sender: No OFD packet to send [07:23:46]OFD Sender: No OFD packet to send [07:23:51]OFD Sender: No OFD packet to send [07:23:56]OFD Sender: No OFD packet to send [07:24:01]OFD Sender: No OFD packet to send [07:24:06]OFD Sender: No OFD packet to send [07:24:11]OFD Sender: No OFD packet to send [07:24:16]OFD Sender: No OFD packet to send [07:24:17]accept exits with 9 [07:24:17]New connection [07:24:17]New thread 3067198820 created [07:24:17]Thread 3067342180 joined [07:24:17]Waiting for new connection... [07:24:17] Sock 9.Parse request [07:24:17]Sock 9.Check first char [07:24:17]Sock 9.First char is OK [07:24:17]request: POST /json_proto HTTP/1.0 [07:24:17]Method: POST [07:24:17]URL: /json_proto [07:24:17]Method is POST - this is cgi request [07:24:17]url: /json_proto [07:24:17]query_string will be loaded in cgi processing [07:24:17]execute_cgi json_proto POST (null) [07:24:17]execute_cgi path=json_proto method=POST [07:24:17]POST find Content-Length [07:24:17]Host: 172.17.32.69:8080 [07:24:17]Content-Length: 833 [07:24:17]Content-Type: application/json [07:24:17] [07:24:17]POST finish read [07:24:17]Found Content-Length = 833 [07:24:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0414\u0435\u043C\u0438\u0440 \u041A\u0418 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:24:17]execute_script... [07:24: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)1040666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0414\u0435\u043C\u0438\u0440 \u041A\u0418 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:24:17]POST & json_proto [07:24:17]process_json_proto [07:24:17]json parsed OK: [07:24:17]protocol is kg_v1.0 [07:24:17]action value=close_receipt [07:24:17]process_action close_receipt [07:24:17]cmd_close_receipt [07:24:17]MH_GetDate [07:24:17]Write to MH i2c: F0 00 00 CB 18 D2 [07:24:17]Write i2c OK [07:24:17]MH_I2C_Read... [07:24:17]Read from MH i2c: F0 [07:24:17]MH_I2C_Read... [07:24:17]Read from MH i2c: F0 09 00 [07:24:17]MH_I2C_Read... [07:24:17]Read from MH i2c: F0 09 00 CB 18 00 A4 F7 F3 65 D5 0F D3 65 EA [07:24:17]GetLastDocTimeStamp 1710485995 [07:24:17]current date 1710487460 [07:24:17]FM_GetShiftState [07:24:17]SAM_PROTO_GetShiftState [07:24:17]wFMCommunicate request_size=4 [07:24:17]MH_SAM_APDU [07:24:17]CAPDU: 80 13 01 00 [07:24:17]Write to MH i2c: E2 08 00 CC 18 80 13 01 00 00 00 00 00 61 [07:24:17]Write i2c OK [07:24:17]MH_I2C_Read... [07:24:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:24:17]Read from MH i2c: E2 [07:24:17]MH_I2C_Read... [07:24:17]Read from MH i2c: E2 0E 00 [07:24:17]MH_I2C_Read... [07:24:17]Read from MH i2c: E2 0E 00 CC 18 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 95 [07:24:17]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [07:24:17]wFMCommunicate OK [07:24:17]SAM_PROTO_GetShiftState done [07:24:17]FM_GetShiftState done [07:24:17]opened in 1710461757 [07:24:17]opened+sec_in_day 1710548157 [07:24:17]quantity*price = 100030 [07:24:17]sum+1 = 100031 [07:24:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.30 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 0.00 Безнал.: 1000.30 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 34 15.03.2024 07:24 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 Платежная система: Демир КИ Банк ФМ: 0000000000871818 ФД: 108511 ФПД: 69353407595780 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T072420&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108511&fm=69353407595780&tin=02508201610067®Number=0000000000091911&sum=100030 [07:24:18]StoreToDocumentArchive [07:24:18]shift 320 fd 108511 [07:24:18]save to /storage/0320/doc_00108511 [07:24:18]save last doc name /storage/0320/doc_00108511 to /storage/kkm_last_doc_name [07:24:18]save OK [07:24:18]Clear old archive folders... [07:24:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:24:18]tlvbuf is 000D46C0 [07:24:18]SAM_PROTO_ClearQueue [07:24:18]wFMCommunicate request_size=4 [07:24:18]MH_SAM_APDU [07:24:18]CAPDU: 80 09 00 00 [07:24:18]Write to MH i2c: E2 08 00 D9 18 80 09 00 00 00 00 00 00 63 [07:24:18]Write i2c OK [07:24:18]MH_I2C_Read... [07:24:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:24:18]Read from MH i2c: E2 [07:24:18]MH_I2C_Read... [07:24:18]Read from MH i2c: E2 03 00 [07:24:18]MH_I2C_Read... [07:24:18]Read from MH i2c: E2 03 00 D9 18 00 90 00 65 [07:24:18]RAPDU: 90 00 [07:24:18]wFMCommunicate OK [07:24:18]SAM_PROTO_ClearQueue done [07:24:18]KKMCreateOFDPacket [07:24:18]OFDProtocolAddRootSTLVToBuf [07:24:18]FM_MakeSignedData [07:24:18]FM_MakeSignedData [07:24:18]SAM_PROTO_SignData [07:24:18]wFMCommunicate request_size=4 [07:24:18]MH_SAM_APDU [07:24:18]CAPDU: 80 0D 01 02 [07:24:18]Write to MH i2c: E2 08 00 DA 18 80 0D 01 02 00 00 00 00 6B [07:24:18]Write i2c OK [07:24:18]MH_I2C_Read... [07:24:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:24:18]Read from MH i2c: E2 [07:24:18]MH_I2C_Read... [07:24:18]Read from MH i2c: E2 03 00 [07:24:18]MH_I2C_Read... [07:24:18]Read from MH i2c: E2 03 00 DA 18 00 90 00 66 [07:24:18]RAPDU: 90 00 [07:24:18]wFMCommunicate OK [07:24:18]wFMCommunicate request_size=255 [07:24:18]MH_SAM_APDU [07:24:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 A4 F7 F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 DF A7 01 00 35 04 06 00 3F [07:24:18]Write to MH i2c: E2 02 01 DB 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 A4 F7 F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 DF A7 01 00 35 04 06 00 3F 00 00 22 [07:24:18]Write i2c OK [07:24:18]MH_I2C_Read... [07:24:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:24:19]Read from MH i2c: E2 [07:24:19]MH_I2C_Read... [07:24:19]Read from MH i2c: E2 03 00 [07:24:19]MH_I2C_Read... [07:24:19]Read from MH i2c: E2 03 00 DB 18 00 90 00 67 [07:24:19]RAPDU: 90 00 [07:24:19]wFMCommunicate OK [07:24:19]wFMCommunicate request_size=10 [07:24:19]MH_SAM_APDU [07:24:19]CAPDU: 80 0D 02 02 05 13 99 39 45 04 [07:24:19]Write to MH i2c: E2 0D 00 DC 18 80 0D 02 02 05 00 13 99 39 45 04 00 00 A6 [07:24:19]Write i2c OK [07:24:19]MH_I2C_Read... [07:24:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:24:19]Read from MH i2c: E2 [07:24:19]MH_I2C_Read... [07:24:19]Read from MH i2c: E2 03 00 [07:24:19]MH_I2C_Read... [07:24:19]Read from MH i2c: E2 03 00 DC 18 00 90 00 68 [07:24:19]RAPDU: 90 00 [07:24:19]wFMCommunicate OK [07:24:19]wFMCommunicate request_size=4 [07:24:19]MH_SAM_APDU [07:24:19]CAPDU: 80 0D 03 02 [07:24:19]Write to MH i2c: E2 08 00 DD 18 80 0D 03 02 00 00 00 00 70 [07:24:19]Write i2c OK [07:24:19]MH_I2C_Read... [07:24:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:24:19]Read from MH i2c: E2 [07:24:19]MH_I2C_Read... [07:24:19]Read from MH i2c: E2 0B 00 [07:24:19]MH_I2C_Read... [07:24:19]Read from MH i2c: E2 0B 00 DD 18 00 5B 57 97 E8 EA A0 D1 63 90 00 60 [07:24:19]RAPDU: 5B 57 97 E8 EA A0 D1 63 90 00 [07:24:19]wFMCommunicate OK [07:24:19]SAM_PROTO_SignData done [07:24:19]FM_MakeSignedData done [07:24:19]CreateOFDProtocolMessage [07:24:19]wFMCommunicate request_size=4 [07:24:19]MH_SAM_APDU [07:24:19]CAPDU: 80 11 00 00 [07:24:19]Write to MH i2c: E2 08 00 DE 18 80 11 00 00 00 00 00 00 70 [07:24:19]Write i2c OK [07:24:19]MH_I2C_Read... [07:24:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:24:19]Read from MH i2c: E2 [07:24:19]MH_I2C_Read... [07:24:19]Read from MH i2c: E2 17 00 [07:24:19]MH_I2C_Read... [07:24:19]Read from MH i2c: E2 17 00 DE 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 C4 [07:24:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [07:24:19]wFMCommunicate OK [07:24:19]CreateOFDProtocolMessage done [07:24:19]OFDSenderStorePacket 108511 [07:24:19]StoreOFDPacket docnum=108511 [07:24:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 C3 47 07 01 FB 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 A4 F7 F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 DF A7 01 00 35 04 06 00 3F 13 99 39 45 04 5B 57 97 E8 EA A0 D1 63 [07:24:19]CheckFolder [07:24:19]dirname=/storage/ofd_packets [07:24:19]CheckFolder done [07:24:19]ProducePacketName [07:24:19]name=ofd_packets/00108511 [07:24:19]NVStorageSaveData ofd_packets/00108511 [07:24:19]File name is /storage/ofd_packets/00108511 [07:24:19]Write 301 bytes [07:24:19]NVStorageSaveData done [07:24:19]OFDSenderStorePacket done [07:24:19]KKMCreateOFDPacket done [07:24:19]NVStorageSaveData kkm_last_timestamp [07:24:19]File name is /storage/kkm_last_timestamp [07:24:19]Write 4 bytes [07:24:19]NVStorageSaveData done [07:24:19]ExternCall_PrintAddStr [07:24:19]wPrintStart [07:24:19]Write to MH i2c: 01 00 00 DF 18 F7 [07:24:19]Write i2c OK [07:24:19]MH_I2C_Read... [07:24:19]Read from MH i2c: 01 [07:24:19]MH_I2C_Read... [07:24:19]Read from MH i2c: 01 07 00 [07:24:19]MH_I2C_Read... [07:24:19]Read from MH i2c: 01 07 00 DF 18 00 00 00 00 00 FF 0F 0C [07:24:19]RasterBufferAndPrint [07:24:19]line Счет N : (1)1040666 [07:24:19]line ИНН: 02508201610067 [07:24:19]line Контрольно-Кассовый Чек [07:24:19]line ПРОДАЖА [07:24:19]line ТРК (МРК, ГНК) : 43 [07:24:19]line Товар: 2710124130 [07:24:19]line Аи-92-К-5 [07:24:19]line 16.160 * 61.90 [07:24:19]line = 1000.30 [07:24:19]line НДС 12% НСП 1% [07:24:19]line > о реализуемом товаре [07:24:19]line ИТОГО: 1000.30 [07:24:19]line НСП 1% : 8.85 [07:24:19]line НДС 12% : 106.23 [07:24:19]line Наличными: 0.00 [07:24:19]line Безнал.: 1000.30 [07:24:19]line Место: АЗС № 15 "Партнер Нефть" [07:24:19]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [07:24:19]line СНО: Общий режим [07:24:19]line Чек 34 15.03.2024 07:24 [07:24:19]line Смена: 320 ФФД: 1.0 [07:24:19]line ЗНМ: 0300000266 [07:24:19]line РНМ: 0000000000091911 [07:24:19]line Версия ККМ: 001 [07:24:19]line Платежная система: Демир КИ Банк [07:24:19]line ФМ: 0000000000871818 [07:24:19]line ФД: 108511 [07:24:19]line ФПД: 69353407595780 [07:24:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T072420&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108511&fm=69353407595780&tin=02508201610067®Number=0000000000091911&sum=100030 [07:24:19]OFD Sender: Processing packet 108511 [packets to send 29, broken 28] [07:24:19]ProducePacketName [07:24:19]name=ofd_packets/00108511 [07:24:19]OFD Sender: To server: pG, [07:24:19]CommunicateWithHost lk.salyk.kg:30040 [07:24:19]ConnectInit lk.salyk.kg [07:24:19]written 0, free lines is 4095 [07:24:19]Connected sock=10 [07:24: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 31 38 0F 01 00 00 C3 47 07 01 FB 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 A4 F7 F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 DF A7 01 00 35 04 06 00 3F 13 99 39 45 04 5B 57 97 E8 EA A0 D1 63 [07:24: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 31 38 4F 00 00 00 7B D4 47 00 4A 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 DF A7 01 00 F4 03 04 00 45 A3 F3 65 B6 04 01 00 00 6E F7 3D 82 6D EA 4D 79 [07:24:19]CommunicateWithHost err = 0 [07:24:19]CheckOFDResponse [07:24:19]1017 (14) - 77093643461234 [07:24:19]1041 (16) - 0000000000871818 [07:24:19]1040 (4) - 108511 [07:24:19]1012 (4) - 15.03.2024 01:24 [07:24:19]1206 (1) - 0 [07:24:19]OFD Sender: Remove packet 108511 [07:24:19]ProducePacketName [07:24:19]name=ofd_packets/00108511 [07:24:19]NVStorageDeleteData [07:24:19]Write to MH i2c: 01 00 00 09 19 22 [07:24:19]Write i2c OK [07:24:19]MH_I2C_Read... [07:24:19]Read from MH i2c: 01 [07:24:19]MH_I2C_Read... [07:24:19]Read from MH i2c: 01 07 00 [07:24:19]MH_I2C_Read... [07:24:19]Read from MH i2c: 01 07 00 09 19 00 00 00 00 00 CC 0C 01 [07:24:19]RasterBufferAndPrint [07:24:19]line [07:24:19]line [07:24:19]line [07:24:19]line [07:24:19]line [07:24:19]written 0, free lines is 3283 [07:24:19]MH_Cut [07:24:19]Write to MH i2c: D1 01 00 10 19 01 FB [07:24:19]Write i2c OK [07:24:19]MH_I2C_Read... [07:24:19]Read from MH i2c: D1 [07:24:19]MH_I2C_Read... [07:24:19]Read from MH i2c: D1 01 00 [07:24:19]MH_I2C_Read... [07:24:19]Read from MH i2c: D1 01 00 10 19 00 FA [07:24:19]Write to MH i2c: 01 00 00 11 19 2A [07:24:19]Write i2c OK [07:24:19]MH_I2C_Read... [07:24:20]OFD Sender: No OFD packet to send [07:24:20]*** Cut start [07:24:20]*** Purtial cut [07:24:20]*** Stage 1: CUTSNS_PIN = 1 [07:24:21]Read from MH i2c: 01 [07:24:21]MH_I2C_Read... [07:24:21]*** Stop cut motor [07:24:21]*** Cut end [07:24:21]Read from MH i2c: 01 07 00 [07:24:21]MH_I2C_Read... [07:24:21]Read from MH i2c: 01 07 00 11 19 00 00 00 00 00 FF 0F 3F [07:24:21]process_action close_receipt done [07:24:21]requested_data is exist [07:24:21]produce_requested_data [07:24:21]requested_item fm.sn is exist - process it [07:24:21]wFMCommunicate request_size=4 [07:24:21]MH_SAM_APDU [07:24:21]CAPDU: 80 11 00 00 [07:24:21]Write to MH i2c: E2 08 00 12 19 80 11 00 00 00 00 00 00 A5 [07:24:21]Write i2c OK [07:24:21]MH_I2C_Read... [07:24:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:24:21]Read from MH i2c: E2 [07:24:21]MH_I2C_Read... [07:24:21]Read from MH i2c: E2 17 00 [07:24:21]MH_I2C_Read... [07:24:21]Read from MH i2c: E2 17 00 12 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 F9 [07:24:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [07:24:21]wFMCommunicate OK [07:24:21]requested_item fd.num is exist - process it [07:24:21]SAM_PROTO_GetFieldsCounters [07:24:21]wFMCommunicate request_size=4 [07:24:21]MH_SAM_APDU [07:24:21]CAPDU: 80 13 00 00 [07:24:21]Write to MH i2c: E2 08 00 13 19 80 13 00 00 00 00 00 00 A8 [07:24:21]Write i2c OK [07:24:21]MH_I2C_Read... [07:24:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:24:21]Read from MH i2c: E2 [07:24:21]MH_I2C_Read... [07:24:21]Read from MH i2c: E2 62 00 [07:24:21]MH_I2C_Read... [07:24:21]Read from MH i2c: E2 62 00 13 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 DF A7 01 00 0E 04 04 00 40 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 F4 [07:24: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 DF A7 01 00 0E 04 04 00 40 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 [07:24:21]wFMCommunicate OK [07:24:21]SAM_PROTO_GetFieldsCounters done [07:24:21]requested_item shift.num is exist - process it [07:24:21]requested_item shift.opened is exist - process it [07:24:21]req_shift_opened [07:24:21]FM_GetShiftState [07:24:21]SAM_PROTO_GetShiftState [07:24:21]wFMCommunicate request_size=4 [07:24:21]MH_SAM_APDU [07:24:21]CAPDU: 80 13 01 00 [07:24:21]Write to MH i2c: E2 08 00 14 19 80 13 01 00 00 00 00 00 AA [07:24:21]Write i2c OK [07:24:21]MH_I2C_Read... [07:24:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:24:21]Read from MH i2c: E2 [07:24:21]MH_I2C_Read... [07:24:21]Read from MH i2c: E2 0E 00 [07:24:21]MH_I2C_Read... [07:24:21]Read from MH i2c: E2 0E 00 14 19 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 DE [07:24:21]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [07:24:21]wFMCommunicate OK [07:24:21]SAM_PROTO_GetShiftState done [07:24:21]FM_GetShiftState done [07:24:21]req_shift_opened done [07:24:21]requested_item shift.open_date is exist - process it [07:24:21]req_shift_open_date [07:24:21]req_shift_open_date done [07:24:21]produce_requested_data done [07:24:21]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108511,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [07:24:21]process_action_free close_receipt [07:24:21]json_value_free [07:24:21]json_value_free done [07:24:21]process_json_proto returns [07:24:21]Send response to host [07:24:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108511,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [07:24:21]free response buf [07:24:21]execute_script done [07:24:21]execute_script returns [07:24:21]free content buf [07:24:21]Sock 9.Close socket [07:24:21]Sock 9.Thread stoped [07:24:25]OFD Sender: No OFD packet to send [07:24:30]OFD Sender: No OFD packet to send [07:24:35]OFD Sender: No OFD packet to send [07:24:40]OFD Sender: No OFD packet to send [07:24:45]OFD Sender: No OFD packet to send [07:24:50]OFD Sender: No OFD packet to send [07:24:55]OFD Sender: No OFD packet to send [07:25:00]OFD Sender: No OFD packet to send [07:25:05]OFD Sender: No OFD packet to send [07:25:10]OFD Sender: No OFD packet to send [07:25:15]OFD Sender: No OFD packet to send [07:25:20]OFD Sender: No OFD packet to send [07:25:25]OFD Sender: No OFD packet to send [07:25:30]OFD Sender: No OFD packet to send [07:25:35]OFD Sender: No OFD packet to send [07:25:40]OFD Sender: No OFD packet to send [07:25:45]OFD Sender: No OFD packet to send [07:25:50]OFD Sender: No OFD packet to send [07:25:55]OFD Sender: No OFD packet to send [07:26:00]OFD Sender: No OFD packet to send [07:26:05]OFD Sender: No OFD packet to send [07:26:10]OFD Sender: No OFD packet to send [07:26:15]OFD Sender: No OFD packet to send [07:26:20]OFD Sender: No OFD packet to send [07:26:25]OFD Sender: No OFD packet to send [07:26:30]OFD Sender: No OFD packet to send [07:26:35]OFD Sender: No OFD packet to send [07:26:40]OFD Sender: No OFD packet to send [07:26:45]OFD Sender: No OFD packet to send [07:26:50]OFD Sender: No OFD packet to send [07:26:55]OFD Sender: No OFD packet to send [07:27:00]OFD Sender: No OFD packet to send [07:27:05]OFD Sender: No OFD packet to send [07:27:10]OFD Sender: No OFD packet to send [07:27:15]OFD Sender: No OFD packet to send [07:27:16]accept exits with 8 [07:27:16]New connection [07:27:16]New thread 3067342180 created [07:27:16]Thread 3067198820 joined [07:27:16]Waiting for new connection... [07:27:16] Sock 8.Parse request [07:27:16]Sock 8.Check first char [07:27:16]Sock 8.First char is OK [07:27:16]request: POST /json_proto HTTP/1.0 [07:27:16]Method: POST [07:27:16]URL: /json_proto [07:27:16]Method is POST - this is cgi request [07:27:16]url: /json_proto [07:27:16]query_string will be loaded in cgi processing [07:27:16]execute_cgi json_proto POST (null) [07:27:16]execute_cgi path=json_proto method=POST [07:27:16]POST find Content-Length [07:27:16]Host: 172.17.32.69:8080 [07:27:16]Content-Length: 215 [07:27:16]Content-Type: application/json [07:27:16] [07:27:16]POST finish read [07:27:16]Found Content-Length = 215 [07:27:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:27:16]execute_script... [07:27:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:27:16]POST & json_proto [07:27:16]process_json_proto [07:27:16]json parsed OK: [07:27:16]protocol is kg_v1.0 [07:27:16]action value=get_value [07:27:16]process_action get_value [07:27:16]cmd_get_value [07:27:16]process_action get_value done [07:27:16]requested_data is exist [07:27:16]produce_requested_data [07:27:16]requested_item kkm.sn is exist - process it [07:27:16]requested_item kkm.ver is exist - process it [07:27:16]requested_item fm.sn is exist - process it [07:27:16]wFMCommunicate request_size=4 [07:27:16]MH_SAM_APDU [07:27:16]CAPDU: 80 11 00 00 [07:27:16]Write to MH i2c: E2 08 00 15 19 80 11 00 00 00 00 00 00 A8 [07:27:16]Write i2c OK [07:27:16]MH_I2C_Read... [07:27:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:27:16]Read from MH i2c: E2 [07:27:16]MH_I2C_Read... [07:27:16]Read from MH i2c: E2 17 00 [07:27:16]MH_I2C_Read... [07:27:16]Read from MH i2c: E2 17 00 15 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 FC [07:27:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [07:27:16]wFMCommunicate OK [07:27:16]requested_item fd.num is exist - process it [07:27:16]SAM_PROTO_GetFieldsCounters [07:27:16]wFMCommunicate request_size=4 [07:27:16]MH_SAM_APDU [07:27:16]CAPDU: 80 13 00 00 [07:27:16]Write to MH i2c: E2 08 00 16 19 80 13 00 00 00 00 00 00 AB [07:27:16]Write i2c OK [07:27:16]MH_I2C_Read... [07:27:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:27:16]Read from MH i2c: E2 [07:27:16]MH_I2C_Read... [07:27:16]Read from MH i2c: E2 62 00 [07:27:16]MH_I2C_Read... [07:27:16]Read from MH i2c: E2 62 00 16 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 DF A7 01 00 0E 04 04 00 40 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 F7 [07:27:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 DF A7 01 00 0E 04 04 00 40 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 [07:27:16]wFMCommunicate OK [07:27:16]SAM_PROTO_GetFieldsCounters done [07:27:16]requested_item shift.num is exist - process it [07:27:16]requested_item shift.opened is exist - process it [07:27:16]req_shift_opened [07:27:16]FM_GetShiftState [07:27:16]SAM_PROTO_GetShiftState [07:27:16]wFMCommunicate request_size=4 [07:27:16]MH_SAM_APDU [07:27:16]CAPDU: 80 13 01 00 [07:27:16]Write to MH i2c: E2 08 00 17 19 80 13 01 00 00 00 00 00 AD [07:27:16]Write i2c OK [07:27:16]MH_I2C_Read... [07:27:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:27:16]Read from MH i2c: E2 [07:27:16]MH_I2C_Read... [07:27:16]Read from MH i2c: E2 0E 00 [07:27:16]MH_I2C_Read... [07:27:16]Read from MH i2c: E2 0E 00 17 19 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 E1 [07:27:16]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [07:27:16]wFMCommunicate OK [07:27:16]SAM_PROTO_GetShiftState done [07:27:16]FM_GetShiftState done [07:27:16]req_shift_opened done [07:27:16]requested_item shift.open_date is exist - process it [07:27:16]req_shift_open_date [07:27:16]req_shift_open_date done [07:27:16]produce_requested_data done [07:27:16]produce_requested_data return {"kkm.sn":"0300000266","kkm.ver":"001","fm.sn":"0000000000871818","fd.num":108511,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [07:27:16]process_action_free get_value [07:27:16]json_value_free [07:27:16]json_value_free done [07:27:16]process_json_proto returns [07:27:16]Send response to host [07:27:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000266","kkm.ver":"001","fm.sn":"0000000000871818","fd.num":108511,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [07:27:16]free response buf [07:27:16]execute_script done [07:27:16]execute_script returns [07:27:16]free content buf [07:27:16]Sock 8.Close socket [07:27:16]Sock 8.Thread stoped [07:27:16]accept exits with 9 [07:27:16]New connection [07:27:16]New thread 3067198820 created [07:27:16]Thread 3067342180 joined [07:27:16]Waiting for new connection... [07:27:16] Sock 9.Parse request [07:27:16]Sock 9.Check first char [07:27:16]Sock 9.First char is OK [07:27:16]request: POST /json_proto HTTP/1.0 [07:27:16]Method: POST [07:27:16]URL: /json_proto [07:27:16]Method is POST - this is cgi request [07:27:16]url: /json_proto [07:27:16]query_string will be loaded in cgi processing [07:27:16]execute_cgi json_proto POST (null) [07:27:16]execute_cgi path=json_proto method=POST [07:27:16]POST find Content-Length [07:27:16]Host: 172.17.32.69:8080 [07:27:16]Content-Length: 331 [07:27:16]Content-Type: application/json [07:27:16] [07:27:16]POST finish read [07:27:16]Found Content-Length = 331 [07:27:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [07:27:16]execute_script... [07:27:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [07:27:17]POST & json_proto [07:27:17]process_json_proto [07:27:17]json parsed OK: [07:27:17]protocol is kg_v1.0 [07:27:17]action value=get_value [07:27:17]process_action get_value [07:27:17]cmd_get_value [07:27:17]process_action get_value done [07:27:17]requested_data is exist [07:27:17]produce_requested_data [07:27:17]requested_item fm.sale.total is exist - process it [07:27:17]SAM_PROTO_GetFMData [07:27:17]wFMCommunicate request_size=4 [07:27:17]MH_SAM_APDU [07:27:17]CAPDU: 80 13 03 00 [07:27:17]Write to MH i2c: E2 08 00 18 19 80 13 03 00 00 00 00 00 B0 [07:27:17]Write i2c OK [07:27:17]MH_I2C_Read... [07:27:17]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [07:27:17]Read from MH i2c: E2 [07:27:17]MH_I2C_Read... [07:27:17]Read from MH i2c: E2 FD 00 [07:27:17]MH_I2C_Read... [07:27:17]Read from MH i2c: E2 FD 00 18 19 00 C5 04 85 04 C1 04 6E 04 04 00 5F A5 01 00 69 04 A3 00 6F 04 04 00 30 9F 01 00 B1 04 05 00 FA 63 8F F0 01 70 04 05 00 BE FA 9C 92 01 72 04 04 00 3C 69 F2 5D 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 65 75 BF 34 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 F5 33 65 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 2F 06 00 00 B1 04 04 00 00 C1 2C 0D 70 04 04 00 00 C1 2C 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A3 3C 66 01 EF 03 09 90 00 2E [07:27:17]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 5F A5 01 00 69 04 A3 00 6F 04 04 00 30 9F 01 00 B1 04 05 00 FA 63 8F F0 01 70 04 05 00 BE FA 9C 92 01 72 04 04 00 3C 69 F2 5D 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 65 75 BF 34 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 F5 33 65 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 2F 06 00 00 B1 04 04 00 00 C1 2C 0D 70 04 04 00 00 C1 2C 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A3 3C 66 01 EF 03 09 90 00 [07:27:17]wFMCommunicate OK [07:27:17]wFMCommunicate request_size=4 [07:27:17]MH_SAM_APDU [07:27:17]CAPDU: 80 17 00 00 [07:27:17]Write to MH i2c: E2 08 00 19 19 80 17 00 00 00 00 00 00 B2 [07:27:17]Write i2c OK [07:27:17]MH_I2C_Read... [07:27:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:27:17]Read from MH i2c: E2 [07:27:17]MH_I2C_Read... [07:27:17]Read from MH i2c: E2 FD 00 [07:27:17]MH_I2C_Read... [07:27:17]Read from MH i2c: E2 FD 00 19 19 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DB D9 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 39 [07:27:17]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DB D9 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [07:27:17]wFMCommunicate OK [07:27:17]wFMCommunicate request_size=4 [07:27:17]MH_SAM_APDU [07:27:17]CAPDU: 80 17 00 00 [07:27:17]Write to MH i2c: E2 08 00 1A 19 80 17 00 00 00 00 00 00 B3 [07:27:17]Write i2c OK [07:27:17]MH_I2C_Read... [07:27:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:27:18]Read from MH i2c: E2 [07:27:18]MH_I2C_Read... [07:27:18]Read from MH i2c: E2 FD 00 [07:27:18]MH_I2C_Read... [07:27:18]Read from MH i2c: E2 FD 00 1A 19 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 C5 [07:27:18]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [07:27:18]wFMCommunicate OK [07:27:18]wFMCommunicate request_size=4 [07:27:18]MH_SAM_APDU [07:27:18]CAPDU: 80 17 00 00 [07:27:18]Write to MH i2c: E2 08 00 1B 19 80 17 00 00 00 00 00 00 B4 [07:27:18]Write i2c OK [07:27:18]MH_I2C_Read... [07:27:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:27:18]Read from MH i2c: E2 [07:27:18]MH_I2C_Read... [07:27:18]Read from MH i2c: E2 FD 00 [07:27:18]MH_I2C_Read... [07:27:18]Read from MH i2c: E2 FD 00 1B 19 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 40 [07:27:18]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [07:27:18]wFMCommunicate OK [07:27:18]wFMCommunicate request_size=4 [07:27:18]MH_SAM_APDU [07:27:18]CAPDU: 80 17 00 00 [07:27:18]Write to MH i2c: E2 08 00 1C 19 80 17 00 00 00 00 00 00 B5 [07:27:18]Write i2c OK [07:27:18]MH_I2C_Read... [07:27:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [07:27:18]Read from MH i2c: E2 [07:27:18]MH_I2C_Read... [07:27:18]Read from MH i2c: E2 E2 00 [07:27:18]MH_I2C_Read... [07:27:18]Read from MH i2c: E2 E2 00 1C 19 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 93 [07:27:18]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [07:27:18]wFMCommunicate OK [07:27:18]SAM_PROTO_GetFMData done [07:27:18]requested_item fm.sale_refund.total is exist - process it [07:27:18]requested_item fm.buy.total is exist - process it [07:27:18]requested_item shift.sale.total is exist - process it [07:27:18]SAM_PROTO_GetShiftData [07:27:18]wFMCommunicate request_size=4 [07:27:18]MH_SAM_APDU [07:27:18]CAPDU: 80 13 02 00 [07:27:18]Write to MH i2c: E2 08 00 1D 19 80 13 02 00 00 00 00 00 B4 [07:27:18]Write i2c OK [07:27:18]MH_I2C_Read... [07:27:19]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [07:27:19]Read from MH i2c: E2 [07:27:19]MH_I2C_Read... [07:27:19]Read from MH i2c: E2 FD 00 [07:27:19]MH_I2C_Read... [07:27:19]Read from MH i2c: E2 FD 00 1D 19 00 AE 04 AA 04 AA 04 6E 04 04 00 22 00 00 00 69 04 9B 00 6F 04 04 00 22 00 00 00 B1 04 03 00 92 AF 25 70 04 03 00 1C A1 15 72 04 03 00 76 0E 10 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BC 00 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 FE [07:27:19]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 22 00 00 00 69 04 9B 00 6F 04 04 00 22 00 00 00 B1 04 03 00 92 AF 25 70 04 03 00 1C A1 15 72 04 03 00 76 0E 10 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BC 00 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [07:27:19]wFMCommunicate OK [07:27:19]wFMCommunicate request_size=4 [07:27:19]MH_SAM_APDU [07:27:19]CAPDU: 80 17 00 00 [07:27:19]Write to MH i2c: E2 08 00 1E 19 80 17 00 00 00 00 00 00 B7 [07:27:19]Write i2c OK [07:27:19]MH_I2C_Read... [07:27:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:27:19]Read from MH i2c: E2 [07:27:19]MH_I2C_Read... [07:27:19]Read from MH i2c: E2 FD 00 [07:27:19]MH_I2C_Read... [07:27:19]Read from MH i2c: E2 FD 00 1E 19 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 D9 [07:27:19]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [07:27:19]wFMCommunicate OK [07:27:19]wFMCommunicate request_size=4 [07:27:19]MH_SAM_APDU [07:27:19]CAPDU: 80 17 00 00 [07:27:19]Write to MH i2c: E2 08 00 1F 19 80 17 00 00 00 00 00 00 B8 [07:27:19]Write i2c OK [07:27:19]MH_I2C_Read... [07:27:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:27:19]Read from MH i2c: E2 [07:27:19]MH_I2C_Read... [07:27:19]Read from MH i2c: E2 FD 00 [07:27:19]MH_I2C_Read... [07:27:19]Read from MH i2c: E2 FD 00 1F 19 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 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 6F [07:27:19]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [07:27:19]wFMCommunicate OK [07:27:19]wFMCommunicate request_size=4 [07:27:19]MH_SAM_APDU [07:27:19]CAPDU: 80 17 00 00 [07:27:19]Write to MH i2c: E2 08 00 20 19 80 17 00 00 00 00 00 00 B9 [07:27:19]Write i2c OK [07:27:19]MH_I2C_Read... [07:27:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:27:19]Read from MH i2c: E2 [07:27:19]MH_I2C_Read... [07:27:19]Read from MH i2c: E2 FD 00 [07:27:19]MH_I2C_Read... [07:27:20]Read from MH i2c: E2 FD 00 20 19 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 2B [07:27:20]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [07:27:20]wFMCommunicate OK [07:27:20]wFMCommunicate request_size=4 [07:27:20]MH_SAM_APDU [07:27:20]CAPDU: 80 17 00 00 [07:27:20]Write to MH i2c: E2 08 00 21 19 80 17 00 00 00 00 00 00 BA [07:27:20]Write i2c OK [07:27:20]MH_I2C_Read... [07:27:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [07:27:20]Read from MH i2c: E2 [07:27:20]MH_I2C_Read... [07:27:20]Read from MH i2c: E2 CB 00 [07:27:20]MH_I2C_Read... [07:27:20]Read from MH i2c: E2 CB 00 21 19 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 A3 [07:27:20]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [07:27:20]wFMCommunicate OK [07:27:20]SAM_PROTO_GetShiftData done [07:27:20]requested_item shift.sale.total_cash is exist - process it [07:27:20]requested_item shift.sale_refund.total is exist - process it [07:27:20]requested_item shift.sale_refund.total_cash is exist - process it [07:27:20]requested_item shift.buy.total is exist - process it [07:27:20]requested_item shift.buy.total_cash is exist - process it [07:27:20]produce_requested_data done [07:27:20]produce_requested_data return {"fm.sale.total":83308963.78,"fm.sale_refund.total":2210368.00,"fm.buy.total":0.00,"shift.sale.total":24697.78,"shift.sale.total_cash":14175.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [07:27:20]process_action_free get_value [07:27:20]json_value_free [07:27:20]json_value_free done [07:27:20]process_json_proto returns [07:27:20]Send response to host [07:27:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":83308963.78,"fm.sale_refund.total":2210368.00,"fm.buy.total":0.00,"shift.sale.total":24697.78,"shift.sale.total_cash":14175.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [07:27:20]free response buf [07:27:20]execute_script done [07:27:20]execute_script returns [07:27:20]free content buf [07:27:20]Sock 9.Close socket [07:27:20]Sock 9.Thread stoped [07:27:20]accept exits with 8 [07:27:20]New connection [07:27:20]New thread 3067342180 created [07:27:20]Thread 3067198820 joined [07:27:20]Waiting for new connection... [07:27:20] Sock 8.Parse request [07:27:20]Sock 8.Check first char [07:27:20]Sock 8.First char is OK [07:27:20]request: POST /json_proto HTTP/1.0 [07:27:20]Method: POST [07:27:20]URL: /json_proto [07:27:20]Method is POST - this is cgi request [07:27:20]url: /json_proto [07:27:20]query_string will be loaded in cgi processing [07:27:20]execute_cgi json_proto POST (null) [07:27:20]execute_cgi path=json_proto method=POST [07:27:20]POST find Content-Length [07:27:20]Host: 172.17.32.69:8080 [07:27:20]Content-Length: 331 [07:27:20]Content-Type: application/json [07:27:20] [07:27:20]POST finish read [07:27:20]Found Content-Length = 331 [07:27:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [07:27:20]execute_script... [07:27:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [07:27:20]POST & json_proto [07:27:20]process_json_proto [07:27:20]json parsed OK: [07:27:20]protocol is kg_v1.0 [07:27:20]action value=get_value [07:27:20]process_action get_value [07:27:20]cmd_get_value [07:27:20]process_action get_value done [07:27:20]requested_data is exist [07:27:20]produce_requested_data [07:27:20]requested_item fm.sale.total is exist - process it [07:27:20]SAM_PROTO_GetFMData [07:27:20]wFMCommunicate request_size=4 [07:27:20]MH_SAM_APDU [07:27:20]CAPDU: 80 13 03 00 [07:27:20]Write to MH i2c: E2 08 00 22 19 80 13 03 00 00 00 00 00 BA [07:27:20]Write i2c OK [07:27:20]MH_I2C_Read... [07:27:20]OFD Sender: No OFD packet to send [07:27:20]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [07:27:20]Read from MH i2c: E2 [07:27:20]MH_I2C_Read... [07:27:20]Read from MH i2c: E2 FD 00 [07:27:20]MH_I2C_Read... [07:27:20]Read from MH i2c: E2 FD 00 22 19 00 C5 04 85 04 C1 04 6E 04 04 00 5F A5 01 00 69 04 A3 00 6F 04 04 00 30 9F 01 00 B1 04 05 00 FA 63 8F F0 01 70 04 05 00 BE FA 9C 92 01 72 04 04 00 3C 69 F2 5D 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 65 75 BF 34 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 F5 33 65 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 2F 06 00 00 B1 04 04 00 00 C1 2C 0D 70 04 04 00 00 C1 2C 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A3 3C 66 01 EF 03 09 90 00 38 [07:27:20]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 5F A5 01 00 69 04 A3 00 6F 04 04 00 30 9F 01 00 B1 04 05 00 FA 63 8F F0 01 70 04 05 00 BE FA 9C 92 01 72 04 04 00 3C 69 F2 5D 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 65 75 BF 34 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 F5 33 65 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 2F 06 00 00 B1 04 04 00 00 C1 2C 0D 70 04 04 00 00 C1 2C 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A3 3C 66 01 EF 03 09 90 00 [07:27:20]wFMCommunicate OK [07:27:20]wFMCommunicate request_size=4 [07:27:20]MH_SAM_APDU [07:27:20]CAPDU: 80 17 00 00 [07:27:20]Write to MH i2c: E2 08 00 23 19 80 17 00 00 00 00 00 00 BC [07:27:20]Write i2c OK [07:27:20]MH_I2C_Read... [07:27:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:27:21]Read from MH i2c: E2 [07:27:21]MH_I2C_Read... [07:27:21]Read from MH i2c: E2 FD 00 [07:27:21]MH_I2C_Read... [07:27:21]Read from MH i2c: E2 FD 00 23 19 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DB D9 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 43 [07:27:21]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DB D9 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [07:27:21]wFMCommunicate OK [07:27:21]wFMCommunicate request_size=4 [07:27:21]MH_SAM_APDU [07:27:21]CAPDU: 80 17 00 00 [07:27:21]Write to MH i2c: E2 08 00 24 19 80 17 00 00 00 00 00 00 BD [07:27:21]Write i2c OK [07:27:21]MH_I2C_Read... [07:27:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:27:21]Read from MH i2c: E2 [07:27:21]MH_I2C_Read... [07:27:21]Read from MH i2c: E2 FD 00 [07:27:21]MH_I2C_Read... [07:27:21]Read from MH i2c: E2 FD 00 24 19 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 CF [07:27:21]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [07:27:21]wFMCommunicate OK [07:27:21]wFMCommunicate request_size=4 [07:27:21]MH_SAM_APDU [07:27:21]CAPDU: 80 17 00 00 [07:27:21]Write to MH i2c: E2 08 00 25 19 80 17 00 00 00 00 00 00 BE [07:27:21]Write i2c OK [07:27:21]MH_I2C_Read... [07:27:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:27:21]Read from MH i2c: E2 [07:27:21]MH_I2C_Read... [07:27:21]Read from MH i2c: E2 FD 00 [07:27:21]MH_I2C_Read... [07:27:21]Read from MH i2c: E2 FD 00 25 19 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4A [07:27:22]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [07:27:22]wFMCommunicate OK [07:27:22]wFMCommunicate request_size=4 [07:27:22]MH_SAM_APDU [07:27:22]CAPDU: 80 17 00 00 [07:27:22]Write to MH i2c: E2 08 00 26 19 80 17 00 00 00 00 00 00 BF [07:27:22]Write i2c OK [07:27:22]MH_I2C_Read... [07:27:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [07:27:22]Read from MH i2c: E2 [07:27:22]MH_I2C_Read... [07:27:22]Read from MH i2c: E2 E2 00 [07:27:22]MH_I2C_Read... [07:27:22]Read from MH i2c: E2 E2 00 26 19 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 9D [07:27:22]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [07:27:22]wFMCommunicate OK [07:27:22]SAM_PROTO_GetFMData done [07:27:22]requested_item fm.sale_refund.total is exist - process it [07:27:22]requested_item fm.buy.total is exist - process it [07:27:22]requested_item shift.sale.total is exist - process it [07:27:22]SAM_PROTO_GetShiftData [07:27:22]wFMCommunicate request_size=4 [07:27:22]MH_SAM_APDU [07:27:22]CAPDU: 80 13 02 00 [07:27:22]Write to MH i2c: E2 08 00 27 19 80 13 02 00 00 00 00 00 BE [07:27:22]Write i2c OK [07:27:22]MH_I2C_Read... [07:27:22]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [07:27:22]Read from MH i2c: E2 [07:27:22]MH_I2C_Read... [07:27:22]Read from MH i2c: E2 FD 00 [07:27:22]MH_I2C_Read... [07:27:22]Read from MH i2c: E2 FD 00 27 19 00 AE 04 AA 04 AA 04 6E 04 04 00 22 00 00 00 69 04 9B 00 6F 04 04 00 22 00 00 00 B1 04 03 00 92 AF 25 70 04 03 00 1C A1 15 72 04 03 00 76 0E 10 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BC 00 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 08 [07:27:22]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 22 00 00 00 69 04 9B 00 6F 04 04 00 22 00 00 00 B1 04 03 00 92 AF 25 70 04 03 00 1C A1 15 72 04 03 00 76 0E 10 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BC 00 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [07:27:22]wFMCommunicate OK [07:27:22]wFMCommunicate request_size=4 [07:27:22]MH_SAM_APDU [07:27:22]CAPDU: 80 17 00 00 [07:27:22]Write to MH i2c: E2 08 00 28 19 80 17 00 00 00 00 00 00 C1 [07:27:22]Write i2c OK [07:27:22]MH_I2C_Read... [07:27:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:27:23]Read from MH i2c: E2 [07:27:23]MH_I2C_Read... [07:27:23]Read from MH i2c: E2 FD 00 [07:27:23]MH_I2C_Read... [07:27:23]Read from MH i2c: E2 FD 00 28 19 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 E3 [07:27:23]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [07:27:23]wFMCommunicate OK [07:27:23]wFMCommunicate request_size=4 [07:27:23]MH_SAM_APDU [07:27:23]CAPDU: 80 17 00 00 [07:27:23]Write to MH i2c: E2 08 00 29 19 80 17 00 00 00 00 00 00 C2 [07:27:23]Write i2c OK [07:27:23]MH_I2C_Read... [07:27:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:27:23]Read from MH i2c: E2 [07:27:23]MH_I2C_Read... [07:27:23]Read from MH i2c: E2 FD 00 [07:27:23]MH_I2C_Read... [07:27:23]Read from MH i2c: E2 FD 00 29 19 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 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 79 [07:27:23]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [07:27:23]wFMCommunicate OK [07:27:23]wFMCommunicate request_size=4 [07:27:23]MH_SAM_APDU [07:27:23]CAPDU: 80 17 00 00 [07:27:23]Write to MH i2c: E2 08 00 2A 19 80 17 00 00 00 00 00 00 C3 [07:27:23]Write i2c OK [07:27:23]MH_I2C_Read... [07:27:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:27:23]Read from MH i2c: E2 [07:27:23]MH_I2C_Read... [07:27:23]Read from MH i2c: E2 FD 00 [07:27:23]MH_I2C_Read... [07:27:23]Read from MH i2c: E2 FD 00 2A 19 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 35 [07:27:23]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [07:27:24]wFMCommunicate OK [07:27:24]wFMCommunicate request_size=4 [07:27:24]MH_SAM_APDU [07:27:24]CAPDU: 80 17 00 00 [07:27:24]Write to MH i2c: E2 08 00 2B 19 80 17 00 00 00 00 00 00 C4 [07:27:24]Write i2c OK [07:27:24]MH_I2C_Read... [07:27:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [07:27:24]Read from MH i2c: E2 [07:27:24]MH_I2C_Read... [07:27:24]Read from MH i2c: E2 CB 00 [07:27:24]MH_I2C_Read... [07:27:24]Read from MH i2c: E2 CB 00 2B 19 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 AD [07:27:24]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [07:27:24]wFMCommunicate OK [07:27:24]SAM_PROTO_GetShiftData done [07:27:24]requested_item shift.sale.total_cash is exist - process it [07:27:24]requested_item shift.sale_refund.total is exist - process it [07:27:24]requested_item shift.sale_refund.total_cash is exist - process it [07:27:24]requested_item shift.buy.total is exist - process it [07:27:24]requested_item shift.buy.total_cash is exist - process it [07:27:24]produce_requested_data done [07:27:24]produce_requested_data return {"fm.sale.total":83308963.78,"fm.sale_refund.total":2210368.00,"fm.buy.total":0.00,"shift.sale.total":24697.78,"shift.sale.total_cash":14175.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [07:27:24]process_action_free get_value [07:27:24]json_value_free [07:27:24]json_value_free done [07:27:24]process_json_proto returns [07:27:24]Send response to host [07:27:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":83308963.78,"fm.sale_refund.total":2210368.00,"fm.buy.total":0.00,"shift.sale.total":24697.78,"shift.sale.total_cash":14175.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [07:27:24]free response buf [07:27:24]execute_script done [07:27:24]execute_script returns [07:27:24]free content buf [07:27:24]Sock 8.Close socket [07:27:24]Sock 8.Thread stoped [07:27:24]accept exits with 9 [07:27:24]New connection [07:27:24]New thread 3067198820 created [07:27:24]Thread 3067342180 joined [07:27:24]Waiting for new connection... [07:27:24] Sock 9.Parse request [07:27:24]Sock 9.Check first char [07:27:24]Sock 9.First char is OK [07:27:24]request: POST /json_proto HTTP/1.0 [07:27:24]Method: POST [07:27:24]URL: /json_proto [07:27:24]Method is POST - this is cgi request [07:27:24]url: /json_proto [07:27:24]query_string will be loaded in cgi processing [07:27:24]execute_cgi json_proto POST (null) [07:27:24]execute_cgi path=json_proto method=POST [07:27:24]POST find Content-Length [07:27:24]Host: 172.17.32.69:8080 [07:27:24]Content-Length: 270 [07:27:24]Content-Type: application/json [07:27:24] [07:27:24]POST finish read [07:27:24]Found Content-Length = 270 [07:27:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:27:24]execute_script... [07:27:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:27:24]POST & json_proto [07:27:24]process_json_proto [07:27:24]json parsed OK: [07:27:24]protocol is kg_v1.0 [07:27:24]action value=x_report [07:27:24]process_action x_report [07:27:24]cmd_x_report [07:27:24]MH_GetDate [07:27:24]Write to MH i2c: F0 00 00 2C 19 34 [07:27:24]Write i2c OK [07:27:24]MH_I2C_Read... [07:27:24]Read from MH i2c: F0 [07:27:24]MH_I2C_Read... [07:27:24]Read from MH i2c: F0 09 00 [07:27:24]MH_I2C_Read... [07:27:24]Read from MH i2c: F0 09 00 2C 19 00 5F F8 F3 65 D5 0F D3 65 08 [07:27:24]GetLastDocTimeStamp 1710487460 [07:27:24]current date 1710487647 [07:27:24]FM_GetShiftState [07:27:24]SAM_PROTO_GetShiftState [07:27:24]wFMCommunicate request_size=4 [07:27:24]MH_SAM_APDU [07:27:24]CAPDU: 80 13 01 00 [07:27:24]Write to MH i2c: E2 08 00 2D 19 80 13 01 00 00 00 00 00 C3 [07:27:24]Write i2c OK [07:27:24]MH_I2C_Read... [07:27:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:27:24]Read from MH i2c: E2 [07:27:24]MH_I2C_Read... [07:27:24]Read from MH i2c: E2 0E 00 [07:27:24]MH_I2C_Read... [07:27:24]Read from MH i2c: E2 0E 00 2D 19 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 F7 [07:27:24]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [07:27:24]wFMCommunicate OK [07:27:24]SAM_PROTO_GetShiftState done [07:27:24]FM_GetShiftState done [07:27:24]KKMCreateXReportDocument [07:27:24]Load OK [07:27:24]Malloc new data [07:27:24]MH_GetDate [07:27:24]Write to MH i2c: F0 00 00 2E 19 36 [07:27:24]Write i2c OK [07:27:24]MH_I2C_Read... [07:27:24]Read from MH i2c: F0 [07:27:24]MH_I2C_Read... [07:27:24]Read from MH i2c: F0 09 00 [07:27:24]MH_I2C_Read... [07:27:24]Read from MH i2c: F0 09 00 2E 19 00 5F F8 F3 65 D5 0F D3 65 0A [07:27:24]Malloc new data [07:27:24]Malloc new data [07:27:24]wFMCommunicate request_size=4 [07:27:24]MH_SAM_APDU [07:27:24]CAPDU: 80 11 00 00 [07:27:24]Write to MH i2c: E2 08 00 2F 19 80 11 00 00 00 00 00 00 C2 [07:27:24]Write i2c OK [07:27:24]MH_I2C_Read... [07:27:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:27:24]Read from MH i2c: E2 [07:27:24]MH_I2C_Read... [07:27:24]Read from MH i2c: E2 17 00 [07:27:24]MH_I2C_Read... [07:27:24]Read from MH i2c: E2 17 00 2F 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 16 [07:27:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [07:27:24]wFMCommunicate OK [07:27:24]SAM_PROTO_GetFieldsCounters [07:27:24]wFMCommunicate request_size=4 [07:27:24]MH_SAM_APDU [07:27:24]CAPDU: 80 13 00 00 [07:27:24]Write to MH i2c: E2 08 00 30 19 80 13 00 00 00 00 00 00 C5 [07:27:24]Write i2c OK [07:27:24]MH_I2C_Read... [07:27:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:27:24]Read from MH i2c: E2 [07:27:24]MH_I2C_Read... [07:27:24]Read from MH i2c: E2 62 00 [07:27:24]MH_I2C_Read... [07:27:24]Read from MH i2c: E2 62 00 30 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 DF A7 01 00 0E 04 04 00 40 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 [07:27: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 DF A7 01 00 0E 04 04 00 40 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 [07:27:24]wFMCommunicate OK [07:27:24]SAM_PROTO_GetFieldsCounters done [07:27:24]Malloc new data [07:27:24]Malloc new data [07:27:24]Malloc new data [07:27:24]KKMCreateXReportDocument OK [07:27:24]KKMSetXReportData OK [07:27:24]KKMPrepareXReportFMData [07:27:24]SAM_PROTO_GetShiftData [07:27:24]wFMCommunicate request_size=4 [07:27:24]MH_SAM_APDU [07:27:24]CAPDU: 80 13 02 00 [07:27:24]Write to MH i2c: E2 08 00 31 19 80 13 02 00 00 00 00 00 C8 [07:27:24]Write i2c OK [07:27:24]MH_I2C_Read... [07:27:25]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [07:27:25]Read from MH i2c: E2 [07:27:25]MH_I2C_Read... [07:27:25]Read from MH i2c: E2 FD 00 [07:27:25]MH_I2C_Read... [07:27:25]Read from MH i2c: E2 FD 00 31 19 00 AE 04 AA 04 AA 04 6E 04 04 00 22 00 00 00 69 04 9B 00 6F 04 04 00 22 00 00 00 B1 04 03 00 92 AF 25 70 04 03 00 1C A1 15 72 04 03 00 76 0E 10 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BC 00 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 12 [07:27:25]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 22 00 00 00 69 04 9B 00 6F 04 04 00 22 00 00 00 B1 04 03 00 92 AF 25 70 04 03 00 1C A1 15 72 04 03 00 76 0E 10 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BC 00 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [07:27:25]wFMCommunicate OK [07:27:25]wFMCommunicate request_size=4 [07:27:25]MH_SAM_APDU [07:27:25]CAPDU: 80 17 00 00 [07:27:25]Write to MH i2c: E2 08 00 32 19 80 17 00 00 00 00 00 00 CB [07:27:25]Write i2c OK [07:27:25]MH_I2C_Read... [07:27:25]OFD Sender: No OFD packet to send [07:27:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:27:25]Read from MH i2c: E2 [07:27:25]MH_I2C_Read... [07:27:25]Read from MH i2c: E2 FD 00 [07:27:25]MH_I2C_Read... [07:27:25]Read from MH i2c: E2 FD 00 32 19 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 ED [07:27:25]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [07:27:25]wFMCommunicate OK [07:27:25]wFMCommunicate request_size=4 [07:27:25]MH_SAM_APDU [07:27:25]CAPDU: 80 17 00 00 [07:27:25]Write to MH i2c: E2 08 00 33 19 80 17 00 00 00 00 00 00 CC [07:27:25]Write i2c OK [07:27:25]MH_I2C_Read... [07:27:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:27:26]Read from MH i2c: E2 [07:27:26]MH_I2C_Read... [07:27:26]Read from MH i2c: E2 FD 00 [07:27:26]MH_I2C_Read... [07:27:26]Read from MH i2c: E2 FD 00 33 19 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 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 83 [07:27:26]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [07:27:26]wFMCommunicate OK [07:27:26]wFMCommunicate request_size=4 [07:27:26]MH_SAM_APDU [07:27:26]CAPDU: 80 17 00 00 [07:27:26]Write to MH i2c: E2 08 00 34 19 80 17 00 00 00 00 00 00 CD [07:27:26]Write i2c OK [07:27:26]MH_I2C_Read... [07:27:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:27:26]Read from MH i2c: E2 [07:27:26]MH_I2C_Read... [07:27:26]Read from MH i2c: E2 FD 00 [07:27:26]MH_I2C_Read... [07:27:26]Read from MH i2c: E2 FD 00 34 19 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 3F [07:27:26]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [07:27:26]wFMCommunicate OK [07:27:26]wFMCommunicate request_size=4 [07:27:26]MH_SAM_APDU [07:27:26]CAPDU: 80 17 00 00 [07:27:26]Write to MH i2c: E2 08 00 35 19 80 17 00 00 00 00 00 00 CE [07:27:26]Write i2c OK [07:27:26]MH_I2C_Read... [07:27:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [07:27:27]Read from MH i2c: E2 [07:27:27]MH_I2C_Read... [07:27:27]Read from MH i2c: E2 CB 00 [07:27:27]MH_I2C_Read... [07:27:27]Read from MH i2c: E2 CB 00 35 19 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 B7 [07:27:27]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [07:27:27]wFMCommunicate OK [07:27:27]SAM_PROTO_GetShiftData done [07:27:27]1194 (1194) - счетчики итогов смены [07:27:27] 1134 (4) - 34 - количество чеков со всеми признаками расчетов [07:27:27] 1129 (155) - счетчики операций «приход» [07:27:27] 1135 (4) - 34 - количество чеков по признаку расчетов [07:27:27] 1201 (3) - 24697.78 - общая итоговая сумма в чеках [07:27:27] 1136 (3) - 14175.00 - итоговая сумма в чеках наличными [07:27:27] 1138 (3) - 10522.78 - итоговая сумма в чеках безналичными [07:27:27] 1024 (122) - суммы налогов [07:27:27] 1006 (9) - суммы НДС [07:27:27] 1010 (1) - 0% - код ставки НДС [07:27:27] 1011 (0) - 0.00 - сумма НДС по ставке [07:27:27] 1006 (12) - суммы НДС [07:27:27] 1010 (1) - 12% - код ставки НДС [07:27:27] 1011 (3) - 2623.32 - сумма НДС по ставке [07:27:27] 1007 (9) - суммы НСП [07:27:27] 1014 (1) - 0% - код ставки НСП [07:27:27] 1015 (0) - 0.00 - сумма НСП по ставке [07:27:27] 1007 (11) - суммы НСП [07:27:27] 1014 (1) - 1% - код ставки НСП [07:27:27] 1015 (2) - 218.60 - сумма НСП по ставке [07:27:27] 1007 (9) - суммы НСП [07:27:27] 1014 (1) - 2% - код ставки НСП [07:27:27] 1015 (0) - 0.00 - сумма НСП по ставке [07:27:27] 1007 (9) - суммы НСП [07:27:27] 1014 (1) - 3% - код ставки НСП [07:27:27] 1015 (0) - 0.00 - сумма НСП по ставке [07:27:27] 1007 (9) - суммы НСП [07:27:27] 1014 (1) - 5% - код ставки НСП [07:27:27] 1015 (0) - 0.00 - сумма НСП по ставке [07:27:27] 1007 (9) - суммы НСП [07:27:27] 1014 (1) - 0,50% - код ставки НСП [07:27:27] 1015 (0) - 0.00 - сумма НСП по ставке [07:27:27] 1007 (9) - суммы НСП [07:27:27] 1014 (1) - 1,50% - код ставки НСП [07:27:27] 1015 (0) - 0.00 - сумма НСП по ставке [07:27:27] 1130 (141) - счетчики операций «возврат прихода» [07:27:27] 1135 (4) - 0 - количество чеков по признаку расчетов [07:27:27] 1201 (0) - 0.00 - общая итоговая сумма в чеках [07:27:27] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [07:27:27] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [07:27:27] 1024 (117) - суммы налогов [07:27:27] 1006 (9) - суммы НДС [07:27:27] 1010 (1) - 0% - код ставки НДС [07:27:27] 1011 (0) - 0.00 - сумма НДС по ставке [07:27:27] 1006 (9) - суммы НДС [07:27:27] 1010 (1) - 12% - код ставки НДС [07:27:27] 1011 (0) - 0.00 - сумма НДС по ставке [07:27:27] 1007 (9) - суммы НСП [07:27:27] 1014 (1) - 0% - код ставки НСП [07:27:27] 1015 (0) - 0.00 - сумма НСП по ставке [07:27:27] 1007 (9) - суммы НСП [07:27:27] 1014 (1) - 1% - код ставки НСП [07:27:27] 1015 (0) - 0.00 - сумма НСП по ставке [07:27:27] 1007 (9) - суммы НСП [07:27:27] 1014 (1) - 2% - код ставки НСП [07:27:27] 1015 (0) - 0.00 - сумма НСП по ставке [07:27:27] 1007 (9) - суммы НСП [07:27:27] 1014 (1) - 3% - код ставки НСП [07:27:27] 1015 (0) - 0.00 - сумма НСП по ставке [07:27:27] 1007 (9) - суммы НСП [07:27:27] 1014 (1) - 5% - код ставки НСП [07:27:27] 1015 (0) - 0.00 - сумма НСП по ставке [07:27:27] 1007 (9) - суммы НСП [07:27:27] 1014 (1) - 0,50% - код ставки НСП [07:27:27] 1015 (0) - 0.00 - сумма НСП по ставке [07:27:27] 1007 (9) - суммы НСП [07:27:27] 1014 (1) - 1,50% - код ставки НСП [07:27:27] 1015 (0) - 0.00 - сумма НСП по ставке [07:27:27] 1131 (141) - счетчики операций «расход» [07:27:27] 1135 (4) - 0 - количество чеков по признаку расчетов [07:27:27] 1201 (0) - 0.00 - общая итоговая сумма в чеках [07:27:27] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [07:27:27] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [07:27:27] 1024 (117) - суммы налогов [07:27:27] 1006 (9) - суммы НДС [07:27:27] 1010 (1) - 0% - код ставки НДС [07:27:27] 1011 (0) - 0.00 - сумма НДС по ставке [07:27:27] 1006 (9) - суммы НДС [07:27:27] 1010 (1) - 12% - код ставки НДС [07:27:27] 1011 (0) - 0.00 - сумма НДС по ставке [07:27:27] 1007 (9) - суммы НСП [07:27:27] 1014 (1) - 0% - код ставки НСП [07:27:27] 1015 (0) - 0.00 - сумма НСП по ставке [07:27:27] 1007 (9) - суммы НСП [07:27:27] 1014 (1) - 1% - код ставки НСП [07:27:27] 1015 (0) - 0.00 - сумма НСП по ставке [07:27:27] 1007 (9) - суммы НСП [07:27:27] 1014 (1) - 2% - код ставки НСП [07:27:27] 1015 (0) - 0.00 - сумма НСП по ставке [07:27:27] 1007 (9) - суммы НСП [07:27:27] 1014 (1) - 3% - код ставки НСП [07:27:27] 1015 (0) - 0.00 - сумма НСП по ставке [07:27:27] 1007 (9) - суммы НСП [07:27:27] 1014 (1) - 5% - код ставки НСП [07:27:27] 1015 (0) - 0.00 - сумма НСП по ставке [07:27:27] 1007 (9) - суммы НСП [07:27:27] 1014 (1) - 0,50% - код ставки НСП [07:27:27] 1015 (0) - 0.00 - сумма НСП по ставке [07:27:27] 1007 (9) - суммы НСП [07:27:27] 1014 (1) - 1,50% - код ставки НСП [07:27:27] 1015 (0) - 0.00 - сумма НСП по ставке [07:27:27] 1132 (141) - счетчики операций «возврат расхода» [07:27:27] 1135 (4) - 0 - количество чеков по признаку расчетов [07:27:27] 1201 (0) - 0.00 - общая итоговая сумма в чеках [07:27:27] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [07:27:27] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [07:27:27] 1024 (117) - суммы налогов [07:27:27] 1006 (9) - суммы НДС [07:27:27] 1010 (1) - 0% - код ставки НДС [07:27:27] 1011 (0) - 0.00 - сумма НДС по ставке [07:27:27] 1006 (9) - суммы НДС [07:27:27] 1010 (1) - 12% - код ставки НДС [07:27:27] 1011 (0) - 0.00 - сумма НДС по ставке [07:27:27] 1007 (9) - суммы НСП [07:27:27] 1014 (1) - 0% - код ставки НСП [07:27:27] 1015 (0) - 0.00 - сумма НСП по ставке [07:27:27] 1007 (9) - суммы НСП [07:27:27] 1014 (1) - 1% - код ставки НСП [07:27:27] 1015 (0) - 0.00 - сумма НСП по ставке [07:27:27] 1007 (9) - суммы НСП [07:27:27] 1014 (1) - 2% - код ставки НСП [07:27:27] 1015 (0) - 0.00 - сумма НСП по ставке [07:27:27] 1007 (9) - суммы НСП [07:27:27] 1014 (1) - 3% - код ставки НСП [07:27:27] 1015 (0) - 0.00 - сумма НСП по ставке [07:27:27] 1007 (9) - суммы НСП [07:27:27] 1014 (1) - 5% - код ставки НСП [07:27:27] 1015 (0) - 0.00 - сумма НСП по ставке [07:27:27] 1007 (9) - суммы НСП [07:27:27] 1014 (1) - 0,50% - код ставки НСП [07:27:27] 1015 (0) - 0.00 - сумма НСП по ставке [07:27:27] 1007 (9) - суммы НСП [07:27:27] 1014 (1) - 1,50% - код ставки НСП [07:27:27] 1015 (0) - 0.00 - сумма НСП по ставке [07:27:27] 1133 (588) - - счетчики коррекции - не используются [07:27:27]SetTLVBufToDocument [07:27:27]Processing tag 1194 (04AA) [07:27:27]Load OK [07:27:27]SetTLVBufToDocument [07:27:27]Processing tag 1134 (046E) [07:27:27]Malloc new data [07:27:27]Processing tag 1129 (0469) [07:27:27]Load OK [07:27:27]SetTLVBufToDocument [07:27:27]Processing tag 1135 (046F) [07:27:27]Malloc new data [07:27:27]Processing tag 1201 (04B1) [07:27:27]Malloc new data [07:27:27]Processing tag 1136 (0470) [07:27:27]Malloc new data [07:27:27]Processing tag 1138 (0472) [07:27:27]Malloc new data [07:27:27]Processing tag 1024 (0400) [07:27:27]Load OK [07:27:27]SetTLVBufToDocument [07:27:27]Processing tag 1006 (03EE) [07:27:27]Load OK [07:27:27]SetTLVBufToDocument [07:27:27]Processing tag 1010 (03F2) [07:27:27]Malloc new data [07:27:27]Processing tag 1011 (03F3) [07:27:27]Malloc new data [07:27:27]SetTLVBufToDocument err=0 [07:27:27]Processing tag 1006 (03EE) [07:27:27]Load OK [07:27:27]SetTLVBufToDocument [07:27:27]Processing tag 1010 (03F2) [07:27:27]Malloc new data [07:27:27]Processing tag 1011 (03F3) [07:27:27]Malloc new data [07:27:27]SetTLVBufToDocument err=0 [07:27:27]Processing tag 1007 (03EF) [07:27:27]Load OK [07:27:27]SetTLVBufToDocument [07:27:27]Processing tag 1014 (03F6) [07:27:27]Malloc new data [07:27:27]Processing tag 1015 (03F7) [07:27:27]Malloc new data [07:27:27]SetTLVBufToDocument err=0 [07:27:27]Processing tag 1007 (03EF) [07:27:27]Load OK [07:27:27]SetTLVBufToDocument [07:27:27]Processing tag 1014 (03F6) [07:27:27]Malloc new data [07:27:27]Processing tag 1015 (03F7) [07:27:27]Malloc new data [07:27:27]SetTLVBufToDocument err=0 [07:27:27]Processing tag 1007 (03EF) [07:27:27]Load OK [07:27:27]SetTLVBufToDocument [07:27:27]Processing tag 1014 (03F6) [07:27:27]Malloc new data [07:27:27]Processing tag 1015 (03F7) [07:27:27]Malloc new data [07:27:27]SetTLVBufToDocument err=0 [07:27:27]Processing tag 1007 (03EF) [07:27:27]Load OK [07:27:27]SetTLVBufToDocument [07:27:27]Processing tag 1014 (03F6) [07:27:27]Malloc new data [07:27:27]Processing tag 1015 (03F7) [07:27:27]Malloc new data [07:27:27]SetTLVBufToDocument err=0 [07:27:27]Processing tag 1007 (03EF) [07:27:27]Load OK [07:27:27]SetTLVBufToDocument [07:27:27]Processing tag 1014 (03F6) [07:27:27]Malloc new data [07:27:27]Processing tag 1015 (03F7) [07:27:27]Malloc new data [07:27:27]SetTLVBufToDocument err=0 [07:27:27]Processing tag 1007 (03EF) [07:27:27]Load OK [07:27:27]SetTLVBufToDocument [07:27:27]Processing tag 1014 (03F6) [07:27:27]Malloc new data [07:27:27]Processing tag 1015 (03F7) [07:27:27]Malloc new data [07:27:27]SetTLVBufToDocument err=0 [07:27:27]Processing tag 1007 (03EF) [07:27:27]Load OK [07:27:27]SetTLVBufToDocument [07:27:27]Processing tag 1014 (03F6) [07:27:27]Malloc new data [07:27:27]Processing tag 1015 (03F7) [07:27:27]Malloc new data [07:27:27]SetTLVBufToDocument err=0 [07:27:27]SetTLVBufToDocument err=0 [07:27:27]SetTLVBufToDocument err=0 [07:27:27]Processing tag 1130 (046A) [07:27:27]Load OK [07:27:27]SetTLVBufToDocument [07:27:27]Processing tag 1135 (046F) [07:27:27]Malloc new data [07:27:27]Processing tag 1201 (04B1) [07:27:27]Malloc new data [07:27:27]Processing tag 1136 (0470) [07:27:27]Malloc new data [07:27:27]Processing tag 1138 (0472) [07:27:27]Malloc new data [07:27:27]Processing tag 1024 (0400) [07:27:27]Load OK [07:27:27]SetTLVBufToDocument [07:27:27]Processing tag 1006 (03EE) [07:27:27]Load OK [07:27:27]SetTLVBufToDocument [07:27:27]Processing tag 1010 (03F2) [07:27:27]Malloc new data [07:27:27]Processing tag 1011 (03F3) [07:27:27]Malloc new data [07:27:27]SetTLVBufToDocument err=0 [07:27:27]Processing tag 1006 (03EE) [07:27:27]Load OK [07:27:27]SetTLVBufToDocument [07:27:27]Processing tag 1010 (03F2) [07:27:27]Malloc new data [07:27:27]Processing tag 1011 (03F3) [07:27:27]Malloc new data [07:27:27]SetTLVBufToDocument err=0 [07:27:27]Processing tag 1007 (03EF) [07:27:27]Load OK [07:27:27]SetTLVBufToDocument [07:27:27]Processing tag 1014 (03F6) [07:27:27]Malloc new data [07:27:27]Processing tag 1015 (03F7) [07:27:27]Malloc new data [07:27:27]SetTLVBufToDocument err=0 [07:27:27]Processing tag 1007 (03EF) [07:27:27]Load OK [07:27:27]SetTLVBufToDocument [07:27:27]Processing tag 1014 (03F6) [07:27:27]Malloc new data [07:27:27]Processing tag 1015 (03F7) [07:27:27]Malloc new data [07:27:27]SetTLVBufToDocument err=0 [07:27:27]Processing tag 1007 (03EF) [07:27:27]Load OK [07:27:27]SetTLVBufToDocument [07:27:27]Processing tag 1014 (03F6) [07:27:27]Malloc new data [07:27:27]Processing tag 1015 (03F7) [07:27:27]Malloc new data [07:27:27]SetTLVBufToDocument err=0 [07:27:27]Processing tag 1007 (03EF) [07:27:27]Load OK [07:27:27]SetTLVBufToDocument [07:27:27]Processing tag 1014 (03F6) [07:27:27]Malloc new data [07:27:27]Processing tag 1015 (03F7) [07:27:27]Malloc new data [07:27:27]SetTLVBufToDocument err=0 [07:27:27]Processing tag 1007 (03EF) [07:27:27]Load OK [07:27:27]SetTLVBufToDocument [07:27:27]Processing tag 1014 (03F6) [07:27:27]Malloc new data [07:27:27]Processing tag 1015 (03F7) [07:27:27]Malloc new data [07:27:27]SetTLVBufToDocument err=0 [07:27:27]Processing tag 1007 (03EF) [07:27:27]Load OK [07:27:27]SetTLVBufToDocument [07:27:27]Processing tag 1014 (03F6) [07:27:27]Malloc new data [07:27:27]Processing tag 1015 (03F7) [07:27:27]Malloc new data [07:27:27]SetTLVBufToDocument err=0 [07:27:27]Processing tag 1007 (03EF) [07:27:27]Load OK [07:27:27]SetTLVBufToDocument [07:27:27]Processing tag 1014 (03F6) [07:27:27]Malloc new data [07:27:27]Processing tag 1015 (03F7) [07:27:27]Malloc new data [07:27:27]SetTLVBufToDocument err=0 [07:27:27]SetTLVBufToDocument err=0 [07:27:27]SetTLVBufToDocument err=0 [07:27:27]Processing tag 1131 (046B) [07:27:27]Load OK [07:27:27]SetTLVBufToDocument [07:27:27]Processing tag 1135 (046F) [07:27:27]Malloc new data [07:27:27]Processing tag 1201 (04B1) [07:27:27]Malloc new data [07:27:27]Processing tag 1136 (0470) [07:27:27]Malloc new data [07:27:27]Processing tag 1138 (0472) [07:27:27]Malloc new data [07:27:27]Processing tag 1024 (0400) [07:27:27]Load OK [07:27:27]SetTLVBufToDocument [07:27:27]Processing tag 1006 (03EE) [07:27:27]Load OK [07:27:27]SetTLVBufToDocument [07:27:27]Processing tag 1010 (03F2) [07:27:27]Malloc new data [07:27:27]Processing tag 1011 (03F3) [07:27:27]Malloc new data [07:27:27]SetTLVBufToDocument err=0 [07:27:27]Processing tag 1006 (03EE) [07:27:27]Load OK [07:27:27]SetTLVBufToDocument [07:27:27]Processing tag 1010 (03F2) [07:27:27]Malloc new data [07:27:27]Processing tag 1011 (03F3) [07:27:27]Malloc new data [07:27:27]SetTLVBufToDocument err=0 [07:27:27]Processing tag 1007 (03EF) [07:27:27]Load OK [07:27:27]SetTLVBufToDocument [07:27:27]Processing tag 1014 (03F6) [07:27:27]Malloc new data [07:27:27]Processing tag 1015 (03F7) [07:27:27]Malloc new data [07:27:27]SetTLVBufToDocument err=0 [07:27:27]Processing tag 1007 (03EF) [07:27:27]Load OK [07:27:27]SetTLVBufToDocument [07:27:27]Processing tag 1014 (03F6) [07:27:27]Malloc new data [07:27:27]Processing tag 1015 (03F7) [07:27:27]Malloc new data [07:27:27]SetTLVBufToDocument err=0 [07:27:27]Processing tag 1007 (03EF) [07:27:27]Load OK [07:27:27]SetTLVBufToDocument [07:27:27]Processing tag 1014 (03F6) [07:27:27]Malloc new data [07:27:27]Processing tag 1015 (03F7) [07:27:27]Malloc new data [07:27:27]SetTLVBufToDocument err=0 [07:27:27]Processing tag 1007 (03EF) [07:27:27]Load OK [07:27:27]SetTLVBufToDocument [07:27:27]Processing tag 1014 (03F6) [07:27:27]Malloc new data [07:27:27]Processing tag 1015 (03F7) [07:27:27]Malloc new data [07:27:27]SetTLVBufToDocument err=0 [07:27:27]Processing tag 1007 (03EF) [07:27:27]Load OK [07:27:27]SetTLVBufToDocument [07:27:27]Processing tag 1014 (03F6) [07:27:27]Malloc new data [07:27:27]Processing tag 1015 (03F7) [07:27:27]Malloc new data [07:27:27]SetTLVBufToDocument err=0 [07:27:27]Processing tag 1007 (03EF) [07:27:27]Load OK [07:27:27]SetTLVBufToDocument [07:27:27]Processing tag 1014 (03F6) [07:27:27]Malloc new data [07:27:27]Processing tag 1015 (03F7) [07:27:28]Malloc new data [07:27:28]SetTLVBufToDocument err=0 [07:27:28]Processing tag 1007 (03EF) [07:27:28]Load OK [07:27:28]SetTLVBufToDocument [07:27:28]Processing tag 1014 (03F6) [07:27:28]Malloc new data [07:27:28]Processing tag 1015 (03F7) [07:27:28]Malloc new data [07:27:28]SetTLVBufToDocument err=0 [07:27:28]SetTLVBufToDocument err=0 [07:27:28]SetTLVBufToDocument err=0 [07:27:28]Processing tag 1132 (046C) [07:27:28]Load OK [07:27:28]SetTLVBufToDocument [07:27:28]Processing tag 1135 (046F) [07:27:28]Malloc new data [07:27:28]Processing tag 1201 (04B1) [07:27:28]Malloc new data [07:27:28]Processing tag 1136 (0470) [07:27:28]Malloc new data [07:27:28]Processing tag 1138 (0472) [07:27:28]Malloc new data [07:27:28]Processing tag 1024 (0400) [07:27:28]Load OK [07:27:28]SetTLVBufToDocument [07:27:28]Processing tag 1006 (03EE) [07:27:28]Load OK [07:27:28]SetTLVBufToDocument [07:27:28]Processing tag 1010 (03F2) [07:27:28]Malloc new data [07:27:28]Processing tag 1011 (03F3) [07:27:28]Malloc new data [07:27:28]SetTLVBufToDocument err=0 [07:27:28]Processing tag 1006 (03EE) [07:27:28]Load OK [07:27:28]SetTLVBufToDocument [07:27:28]Processing tag 1010 (03F2) [07:27:28]Malloc new data [07:27:28]Processing tag 1011 (03F3) [07:27:28]Malloc new data [07:27:28]SetTLVBufToDocument err=0 [07:27:28]Processing tag 1007 (03EF) [07:27:28]Load OK [07:27:28]SetTLVBufToDocument [07:27:28]Processing tag 1014 (03F6) [07:27:28]Malloc new data [07:27:28]Processing tag 1015 (03F7) [07:27:28]Malloc new data [07:27:28]SetTLVBufToDocument err=0 [07:27:28]Processing tag 1007 (03EF) [07:27:28]Load OK [07:27:28]SetTLVBufToDocument [07:27:28]Processing tag 1014 (03F6) [07:27:28]Malloc new data [07:27:28]Processing tag 1015 (03F7) [07:27:28]Malloc new data [07:27:28]SetTLVBufToDocument err=0 [07:27:28]Processing tag 1007 (03EF) [07:27:28]Load OK [07:27:28]SetTLVBufToDocument [07:27:28]Processing tag 1014 (03F6) [07:27:28]Malloc new data [07:27:28]Processing tag 1015 (03F7) [07:27:28]Malloc new data [07:27:28]SetTLVBufToDocument err=0 [07:27:28]Processing tag 1007 (03EF) [07:27:28]Load OK [07:27:28]SetTLVBufToDocument [07:27:28]Processing tag 1014 (03F6) [07:27:28]Malloc new data [07:27:28]Processing tag 1015 (03F7) [07:27:28]Malloc new data [07:27:28]SetTLVBufToDocument err=0 [07:27:28]Processing tag 1007 (03EF) [07:27:28]Load OK [07:27:28]SetTLVBufToDocument [07:27:28]Processing tag 1014 (03F6) [07:27:28]Malloc new data [07:27:28]Processing tag 1015 (03F7) [07:27:28]Malloc new data [07:27:28]SetTLVBufToDocument err=0 [07:27:28]Processing tag 1007 (03EF) [07:27:28]Load OK [07:27:28]SetTLVBufToDocument [07:27:28]Processing tag 1014 (03F6) [07:27:28]Malloc new data [07:27:28]Processing tag 1015 (03F7) [07:27:28]Malloc new data [07:27:28]SetTLVBufToDocument err=0 [07:27:28]Processing tag 1007 (03EF) [07:27:28]Load OK [07:27:28]SetTLVBufToDocument [07:27:28]Processing tag 1014 (03F6) [07:27:28]Malloc new data [07:27:28]Processing tag 1015 (03F7) [07:27:28]Malloc new data [07:27:28]SetTLVBufToDocument err=0 [07:27:28]SetTLVBufToDocument err=0 [07:27:28]SetTLVBufToDocument err=0 [07:27:28]Processing tag 1133 (046D) [07:27:28]Malloc new data [07:27:28]SetTLVBufToDocument err=0 [07:27:28]SetTLVBufToDocument err=0 [07:27:28]Malloc new data [07:27:28]SAM_PROTO_GetFMData [07:27:28]wFMCommunicate request_size=4 [07:27:28]MH_SAM_APDU [07:27:28]CAPDU: 80 13 03 00 [07:27:28]Write to MH i2c: E2 08 00 36 19 80 13 03 00 00 00 00 00 CE [07:27:28]Write i2c OK [07:27:28]MH_I2C_Read... [07:27:28]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [07:27:28]Read from MH i2c: E2 [07:27:28]MH_I2C_Read... [07:27:28]Read from MH i2c: E2 FD 00 [07:27:28]MH_I2C_Read... [07:27:28]Read from MH i2c: E2 FD 00 36 19 00 C5 04 85 04 C1 04 6E 04 04 00 5F A5 01 00 69 04 A3 00 6F 04 04 00 30 9F 01 00 B1 04 05 00 FA 63 8F F0 01 70 04 05 00 BE FA 9C 92 01 72 04 04 00 3C 69 F2 5D 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 65 75 BF 34 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 F5 33 65 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 2F 06 00 00 B1 04 04 00 00 C1 2C 0D 70 04 04 00 00 C1 2C 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A3 3C 66 01 EF 03 09 90 00 4C [07:27:28]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 5F A5 01 00 69 04 A3 00 6F 04 04 00 30 9F 01 00 B1 04 05 00 FA 63 8F F0 01 70 04 05 00 BE FA 9C 92 01 72 04 04 00 3C 69 F2 5D 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 65 75 BF 34 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 F5 33 65 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 2F 06 00 00 B1 04 04 00 00 C1 2C 0D 70 04 04 00 00 C1 2C 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A3 3C 66 01 EF 03 09 90 00 [07:27:29]wFMCommunicate OK [07:27:29]wFMCommunicate request_size=4 [07:27:29]MH_SAM_APDU [07:27:29]CAPDU: 80 17 00 00 [07:27:29]Write to MH i2c: E2 08 00 37 19 80 17 00 00 00 00 00 00 D0 [07:27:29]Write i2c OK [07:27:29]MH_I2C_Read... [07:27:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:27:29]Read from MH i2c: E2 [07:27:29]MH_I2C_Read... [07:27:29]Read from MH i2c: E2 FD 00 [07:27:29]MH_I2C_Read... [07:27:29]Read from MH i2c: E2 FD 00 37 19 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DB D9 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 57 [07:27:29]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DB D9 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [07:27:29]wFMCommunicate OK [07:27:29]wFMCommunicate request_size=4 [07:27:29]MH_SAM_APDU [07:27:29]CAPDU: 80 17 00 00 [07:27:29]Write to MH i2c: E2 08 00 38 19 80 17 00 00 00 00 00 00 D1 [07:27:29]Write i2c OK [07:27:29]MH_I2C_Read... [07:27:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:27:29]Read from MH i2c: E2 [07:27:29]MH_I2C_Read... [07:27:29]Read from MH i2c: E2 FD 00 [07:27:29]MH_I2C_Read... [07:27:29]Read from MH i2c: E2 FD 00 38 19 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 E3 [07:27:29]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [07:27:29]wFMCommunicate OK [07:27:29]wFMCommunicate request_size=4 [07:27:29]MH_SAM_APDU [07:27:29]CAPDU: 80 17 00 00 [07:27:29]Write to MH i2c: E2 08 00 39 19 80 17 00 00 00 00 00 00 D2 [07:27:30]Write i2c OK [07:27:30]MH_I2C_Read... [07:27:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:27:30]Read from MH i2c: E2 [07:27:30]MH_I2C_Read... [07:27:30]Read from MH i2c: E2 FD 00 [07:27:30]MH_I2C_Read... [07:27:30]Read from MH i2c: E2 FD 00 39 19 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5E [07:27:30]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [07:27:30]wFMCommunicate OK [07:27:30]wFMCommunicate request_size=4 [07:27:30]MH_SAM_APDU [07:27:30]CAPDU: 80 17 00 00 [07:27:30]Write to MH i2c: E2 08 00 3A 19 80 17 00 00 00 00 00 00 D3 [07:27:30]Write i2c OK [07:27:30]MH_I2C_Read... [07:27:30]OFD Sender: No OFD packet to send [07:27:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [07:27:30]Read from MH i2c: E2 [07:27:30]MH_I2C_Read... [07:27:30]Read from MH i2c: E2 E2 00 [07:27:30]MH_I2C_Read... [07:27:30]Read from MH i2c: E2 E2 00 3A 19 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B1 [07:27:30]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [07:27:30]wFMCommunicate OK [07:27:30]SAM_PROTO_GetFMData done [07:27:30]FM_GetFMData:85 04 C1 04 6E 04 04 00 5F A5 01 00 69 04 A3 00 6F 04 04 00 30 9F 01 00 B1 04 05 00 FA 63 8F F0 01 70 04 05 00 BE FA 9C 92 01 72 04 04 00 3C 69 F2 5D 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 65 75 BF 34 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 F5 33 65 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 2F 06 00 00 B1 04 04 00 00 C1 2C 0D 70 04 04 00 00 C1 2C 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A3 3C 66 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DB D9 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 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 [07:27:31]oper:6F 04 04 00 30 9F 01 00 B1 04 05 00 FA 63 8F F0 01 70 04 05 00 BE FA 9C 92 01 72 04 04 00 3C 69 F2 5D 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 65 75 BF 34 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 F5 33 65 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [07:27:31]total:FA 63 8F F0 01 [07:27:31]Malloc new data [07:27:31]oper:6F 04 04 00 2F 06 00 00 B1 04 04 00 00 C1 2C 0D 70 04 04 00 00 C1 2C 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A3 3C 66 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DB D9 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [07:27:31]total:00 C1 2C 0D [07:27:31]Malloc new data [07:27:31]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 [07:27:31]total: [07:27:31]Malloc new data [07:27:31]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 [07:27:31]total: [07:27:31]Malloc new data [07:27:31]KKMPrepareXReportFMData err=0 [07:27:31]Х отчет ИНН: 02508201610067 Кассир: Максатбек у Д. 15.03.2024 07:27 Смена: 266 РНМ: 0000000000091911 ЗНМ: 0300000266 СНО: Общий режим Всего чеков: 34 ИТОГИ ПРИХОД Чеков: 34 Общий итог: 24697.78 Итого наличными: 14175.00 Итого безнал.: 10522.78 НДС 0% : 0.00 НДС 12% : 2623.32 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 218.60 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 14175.00 НС Приход: 83308963.78 НС Возвр.Прихода: 2210368.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871818 [07:27:31]StoreToDocumentArchive [07:27:31]MH_GetDate [07:27:31]Write to MH i2c: F0 00 00 3B 19 43 [07:27:31]Write i2c OK [07:27:31]MH_I2C_Read... [07:27:31]Read from MH i2c: F0 [07:27:31]MH_I2C_Read... [07:27:31]Read from MH i2c: F0 09 00 [07:27:31]MH_I2C_Read... [07:27:31]Read from MH i2c: F0 09 00 3B 19 00 67 F8 F3 65 D5 0F D3 65 1F [07:27:31]shift 266 fd 1710487655 [07:27:31]Create dir for shift 0266 [07:27:31]save to /storage/0266/doc_1710487655 [07:27:31]save last doc name /storage/0266/doc_1710487655 to /storage/kkm_last_doc_name [07:27:31]save OK [07:27:31]Clear old archive folders... [07:27:31]NVStorageSaveData kkm_last_timestamp [07:27:31]File name is /storage/kkm_last_timestamp [07:27:31]Write 4 bytes [07:27:31]NVStorageSaveData done [07:27:31]ExternCall_PrintAddStr [07:27:31]wPrintStart [07:27:31]Write to MH i2c: 01 00 00 3C 19 55 [07:27:31]Write i2c OK [07:27:31]MH_I2C_Read... [07:27:31]Read from MH i2c: 01 [07:27:31]MH_I2C_Read... [07:27:31]Read from MH i2c: 01 07 00 [07:27:31]MH_I2C_Read... [07:27:31]Read from MH i2c: 01 07 00 3C 19 00 00 00 00 00 FF 0F 6A [07:27:32]RasterBufferAndPrint [07:27:32]line Х отчет [07:27:32]line ИНН: 02508201610067 [07:27:32]line Кассир: Максатбек у Д. [07:27:32]line 15.03.2024 07:27 [07:27:32]line Смена: 266 [07:27:32]line РНМ: 0000000000091911 [07:27:32]line ЗНМ: 0300000266 [07:27:32]line СНО: Общий режим [07:27:32]line Всего чеков: 34 [07:27:32]line ИТОГИ ПРИХОД [07:27:32]line Чеков: 34 [07:27:32]line Общий итог: 24697.78 [07:27:32]line Итого наличными: 14175.00 [07:27:32]line Итого безнал.: 10522.78 [07:27:32]line НДС 0% : 0.00 [07:27:32]line НДС 12% : 2623.32 [07:27:32]line НСП 0% : 0.00 [07:27:32]line НСП 1,50% : 0.00 [07:27:32]line НСП 0,50% : 0.00 [07:27:32]line НСП 5% : 0.00 [07:27:32]line НСП 3% : 0.00 [07:27:32]line НСП 2% : 0.00 [07:27:32]line НСП 1% : 218.60 [07:27:32]line ИТОГИ ВОЗВРАТ ПРИХОДА [07:27:32]line Чеков: 0 [07:27:32]line Общий итог: 0.00 [07:27:32]line Итого наличными: 0.00 [07:27:32]line Итого безнал.: 0.00 [07:27:32]line НДС 0% : 0.00 [07:27:32]line НДС 12% : 0.00 [07:27:32]line НСП 0% : 0.00 [07:27:32]line НСП 1,50% : 0.00 [07:27:32]line НСП 0,50% : 0.00 [07:27:32]line НСП 5% : 0.00 [07:27:32]line НСП 3% : 0.00 [07:27:32]line НСП 2% : 0.00 [07:27:32]line НСП 1% : 0.00 [07:27:32]line ИТОГИ РАСХОД [07:27:32]line Чеков: 0 [07:27:32]line Общий итог: 0.00 [07:27:32]line Итого наличными: 0.00 [07:27:32]line Итого безнал.: 0.00 [07:27:32]line НДС 0% : 0.00 [07:27:32]line НДС 12% : 0.00 [07:27:32]line НСП 0% : 0.00 [07:27:32]line НСП 1,50% : 0.00 [07:27:32]line НСП 0,50% : 0.00 [07:27:32]line НСП 5% : 0.00 [07:27:32]line НСП 3% : 0.00 [07:27:32]line НСП 2% : 0.00 [07:27:32]line НСП 1% : 0.00 [07:27:32]line ИТОГИ ВОЗВРАТ РАСХОДА [07:27:32]line Чеков: 0 [07:27:32]line Общий итог: 0.00 [07:27:32]line Итого наличными: 0.00 [07:27:32]line Итого безнал.: 0.00 [07:27:32]line НДС 0% : 0.00 [07:27:32]line НДС 12% : 0.00 [07:27:32]line НСП 0% : 0.00 [07:27:32]line НСП 1,50% : 0.00 [07:27:32]line НСП 0,50% : 0.00 [07:27:32]line НСП 5% : 0.00 [07:27:32]line НСП 3% : 0.00 [07:27:32]line НСП 2% : 0.00 [07:27:32]line НСП 1% : 0.00 [07:27:32]line Сумма внесений: 0.00 [07:27:32]line Сумма выплат: 0.00 [07:27:32]line Нал. в кассе: 14175.00 [07:27:32]line НС Приход: 83308963.78 [07:27:32]line НС Возвр.Прихода: 2210368.00 [07:27:32]line НС Расход: 0.00 [07:27:32]line НС Возвр.Расхода: 0.00 [07:27:32]line ФМ: 0000000000871818 [07:27:32]written 0, free lines is 4095 [07:27:32]Write to MH i2c: 01 00 00 87 19 A0 [07:27:32]Write i2c OK [07:27:32]MH_I2C_Read... [07:27:32]Read from MH i2c: 01 [07:27:32]MH_I2C_Read... [07:27:32]Read from MH i2c: 01 07 00 [07:27:32]MH_I2C_Read... [07:27:32]Read from MH i2c: 01 07 00 87 19 00 00 00 00 00 71 0A 22 [07:27:32]RasterBufferAndPrint [07:27:32]line [07:27:32]line [07:27:32]line [07:27:32]line [07:27:32]line [07:27:32]written 0, free lines is 2701 [07:27:32]MH_Cut [07:27:32]Write to MH i2c: D1 01 00 8E 19 01 79 [07:27:32]Write i2c OK [07:27:32]MH_I2C_Read... [07:27:32]Read from MH i2c: D1 [07:27:32]MH_I2C_Read... [07:27:32]Read from MH i2c: D1 01 00 [07:27:32]MH_I2C_Read... [07:27:32]Read from MH i2c: D1 01 00 8E 19 00 78 [07:27:32]Write to MH i2c: 01 00 00 8F 19 A8 [07:27:32]Write i2c OK [07:27:32]MH_I2C_Read... [07:27:33]*** Cut start [07:27:33]*** Purtial cut [07:27:33]*** Stage 1: CUTSNS_PIN = 1 [07:27:34]Read from MH i2c: 01 [07:27:34]MH_I2C_Read... [07:27:34]*** Stop cut motor [07:27:34]*** Cut end [07:27:34]Read from MH i2c: 01 07 00 [07:27:34]MH_I2C_Read... [07:27:34]Read from MH i2c: 01 07 00 8F 19 00 00 00 00 00 FF 0F BD [07:27:34]process_action x_report done [07:27:34]requested_data is exist [07:27:34]produce_requested_data [07:27:34]requested_item fd.num is exist - process it [07:27:34]SAM_PROTO_GetFieldsCounters [07:27:34]wFMCommunicate request_size=4 [07:27:34]MH_SAM_APDU [07:27:34]CAPDU: 80 13 00 00 [07:27:34]Write to MH i2c: E2 08 00 90 19 80 13 00 00 00 00 00 00 25 [07:27:34]Write i2c OK [07:27:34]MH_I2C_Read... [07:27:34]Read from MH i2c: E2 [07:27:34]MH_I2C_Read... [07:27:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:27:34]Read from MH i2c: E2 62 00 [07:27:34]MH_I2C_Read... [07:27:34]Read from MH i2c: E2 62 00 90 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 DF A7 01 00 0E 04 04 00 40 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 71 [07:27:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 DF A7 01 00 0E 04 04 00 40 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 [07:27:34]wFMCommunicate OK [07:27:34]SAM_PROTO_GetFieldsCounters done [07:27:34]requested_item shift.num is exist - process it [07:27:34]requested_item shift.opened is exist - process it [07:27:34]req_shift_opened [07:27:34]FM_GetShiftState [07:27:34]SAM_PROTO_GetShiftState [07:27:34]wFMCommunicate request_size=4 [07:27:34]MH_SAM_APDU [07:27:34]CAPDU: 80 13 01 00 [07:27:34]Write to MH i2c: E2 08 00 91 19 80 13 01 00 00 00 00 00 27 [07:27:34]Write i2c OK [07:27:34]MH_I2C_Read... [07:27:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:27:34]Read from MH i2c: E2 [07:27:34]MH_I2C_Read... [07:27:34]Read from MH i2c: E2 0E 00 [07:27:34]MH_I2C_Read... [07:27:34]Read from MH i2c: E2 0E 00 91 19 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 5B [07:27:34]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [07:27:34]wFMCommunicate OK [07:27:34]SAM_PROTO_GetShiftState done [07:27:34]FM_GetShiftState done [07:27:34]req_shift_opened done [07:27:34]requested_item shift.open_date is exist - process it [07:27:34]req_shift_open_date [07:27:34]req_shift_open_date done [07:27:34]produce_requested_data done [07:27:34]produce_requested_data return {"fd.num":108511,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [07:27:34]process_action_free x_report [07:27:34]json_value_free [07:27:34]json_value_free done [07:27:34]process_json_proto returns [07:27:34]Send response to host [07:27:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":108511,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [07:27:34]free response buf [07:27:34]execute_script done [07:27:34]execute_script returns [07:27:34]free content buf [07:27:34]Sock 9.Close socket [07:27:34]Sock 9.Thread stoped [07:27:35]OFD Sender: No OFD packet to send [07:27:40]OFD Sender: No OFD packet to send [07:27:45]OFD Sender: No OFD packet to send [07:27:50]OFD Sender: No OFD packet to send [07:27:55]OFD Sender: No OFD packet to send [07:28:00]OFD Sender: No OFD packet to send [07:28:05]OFD Sender: No OFD packet to send [07:28:10]OFD Sender: No OFD packet to send [07:28:15]OFD Sender: No OFD packet to send [07:28:20]OFD Sender: No OFD packet to send [07:28:25]OFD Sender: No OFD packet to send [07:28:30]OFD Sender: No OFD packet to send [07:28:35]OFD Sender: No OFD packet to send [07:28:40]OFD Sender: No OFD packet to send [07:28:45]OFD Sender: No OFD packet to send [07:28:50]OFD Sender: No OFD packet to send [07:28:55]OFD Sender: No OFD packet to send [07:29:00]OFD Sender: No OFD packet to send [07:29:05]OFD Sender: No OFD packet to send [07:29:10]OFD Sender: No OFD packet to send [07:29:15]OFD Sender: No OFD packet to send [07:29:20]OFD Sender: No OFD packet to send [07:29:25]OFD Sender: No OFD packet to send [07:29:30]OFD Sender: No OFD packet to send [07:29:35]OFD Sender: No OFD packet to send [07:29:40]OFD Sender: No OFD packet to send [07:29:45]OFD Sender: No OFD packet to send [07:29:50]OFD Sender: No OFD packet to send [07:29:55]OFD Sender: No OFD packet to send [07:30:00]OFD Sender: No OFD packet to send [07:30:05]OFD Sender: No OFD packet to send [07:30:10]OFD Sender: No OFD packet to send [07:30:15]OFD Sender: No OFD packet to send [07:30:20]OFD Sender: No OFD packet to send [07:30:25]OFD Sender: No OFD packet to send [07:30:30]OFD Sender: No OFD packet to send [07:30:35]OFD Sender: No OFD packet to send [07:30:40]OFD Sender: No OFD packet to send [07:30:45]OFD Sender: No OFD packet to send [07:30:50]OFD Sender: No OFD packet to send [07:30:55]OFD Sender: No OFD packet to send [07:31:00]OFD Sender: No OFD packet to send [07:31:05]OFD Sender: No OFD packet to send [07:31:10]OFD Sender: No OFD packet to send [07:31:15]OFD Sender: No OFD packet to send [07:31:20]OFD Sender: No OFD packet to send [07:31:25]OFD Sender: No OFD packet to send [07:31:30]OFD Sender: No OFD packet to send [07:31:35]OFD Sender: No OFD packet to send [07:31:40]OFD Sender: No OFD packet to send [07:31:45]OFD Sender: No OFD packet to send [07:31:50]OFD Sender: No OFD packet to send [07:31:55]OFD Sender: No OFD packet to send [07:32:00]OFD Sender: No OFD packet to send [07:32:05]OFD Sender: No OFD packet to send [07:32:10]OFD Sender: No OFD packet to send [07:32:15]OFD Sender: No OFD packet to send [07:32:20]OFD Sender: No OFD packet to send [07:32:25]OFD Sender: No OFD packet to send [07:32:30]OFD Sender: No OFD packet to send [07:32:35]OFD Sender: No OFD packet to send [07:32:40]OFD Sender: No OFD packet to send [07:32:45]OFD Sender: No OFD packet to send [07:32:50]OFD Sender: No OFD packet to send [07:32:55]OFD Sender: No OFD packet to send [07:33:00]OFD Sender: No OFD packet to send [07:33:05]OFD Sender: No OFD packet to send [07:33:10]OFD Sender: No OFD packet to send [07:33:15]OFD Sender: No OFD packet to send [07:33:20]OFD Sender: No OFD packet to send [07:33:25]OFD Sender: No OFD packet to send [07:33:30]OFD Sender: No OFD packet to send [07:33:35]OFD Sender: No OFD packet to send [07:33:40]OFD Sender: No OFD packet to send [07:33:45]OFD Sender: No OFD packet to send [07:33:50]OFD Sender: No OFD packet to send [07:33:55]OFD Sender: No OFD packet to send [07:34:00]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:21]OFD Sender: No OFD packet to send [07:34:26]OFD Sender: No OFD packet to send [07:34:31]OFD Sender: No OFD packet to send [07:34:36]OFD Sender: No OFD packet to send [07:34:41]OFD Sender: No OFD packet to send [07:34:46]OFD Sender: No OFD packet to send [07:34:51]OFD Sender: No OFD packet to send [07:34:56]OFD Sender: No OFD packet to send [07:35:01]OFD Sender: No OFD packet to send [07:35:06]OFD Sender: No OFD packet to send [07:35:11]OFD Sender: No OFD packet to send [07:35:16]OFD Sender: No OFD packet to send [07:35:21]OFD Sender: No OFD packet to send [07:35:26]OFD Sender: No OFD packet to send [07:35:31]OFD Sender: No OFD packet to send [07:35:36]OFD Sender: No OFD packet to send [07:35:41]OFD Sender: No OFD packet to send [07:35:46]OFD Sender: No OFD packet to send [07:35:51]OFD Sender: No OFD packet to send [07:35:56]OFD Sender: No OFD packet to send [07:36:01]OFD Sender: No OFD packet to send [07:36:06]OFD Sender: No OFD packet to send [07:36:11]OFD Sender: No OFD packet to send [07:36:16]OFD Sender: No OFD packet to send [07:36:21]OFD Sender: No OFD packet to send [07:36:26]OFD Sender: No OFD packet to send [07:36:31]OFD Sender: No OFD packet to send [07:36:36]OFD Sender: No OFD packet to send [07:36:41]OFD Sender: No OFD packet to send [07:36:46]OFD Sender: No OFD packet to send [07:36:51]OFD Sender: No OFD packet to send [07:36:56]OFD Sender: No OFD packet to send [07:37:01]OFD Sender: No OFD packet to send [07:37:06]OFD Sender: No OFD packet to send [07:37:11]OFD Sender: No OFD packet to send [07:37:16]OFD Sender: No OFD packet to send [07:37:21]OFD Sender: No OFD packet to send [07:37:26]OFD Sender: No OFD packet to send [07:37:31]OFD Sender: No OFD packet to send [07:37:36]OFD Sender: No OFD packet to send [07:37:41]OFD Sender: No OFD packet to send [07:37:46]OFD Sender: No OFD packet to send [07:37:51]OFD Sender: No OFD packet to send [07:37:56]OFD Sender: No OFD packet to send [07:38:01]OFD Sender: No OFD packet to send [07:38:06]OFD Sender: No OFD packet to send [07:38:11]OFD Sender: No OFD packet to send [07:38:16]OFD Sender: No OFD packet to send [07:38:21]OFD Sender: No OFD packet to send [07:38:26]OFD Sender: No OFD packet to send [07:38:31]OFD Sender: No OFD packet to send [07:38:36]OFD Sender: No OFD packet to send [07:38:41]OFD Sender: No OFD packet to send [07:38:46]OFD Sender: No OFD packet to send [07:38:51]OFD Sender: No OFD packet to send [07:38:56]OFD Sender: No OFD packet to send [07:39:01]OFD Sender: No OFD packet to send [07:39:06]OFD Sender: No OFD packet to send [07:39:11]OFD Sender: No OFD packet to send [07:39:15]accept exits with 8 [07:39:15]New connection [07:39:15]New thread 3067342180 created [07:39:15]Thread 3067198820 joined [07:39:15]Waiting for new connection... [07:39:15] Sock 8.Parse request [07:39:15]Sock 8.Check first char [07:39:15]Sock 8.First char is OK [07:39:15]request: POST /json_proto HTTP/1.0 [07:39:15]Method: POST [07:39:15]URL: /json_proto [07:39:15]Method is POST - this is cgi request [07:39:15]url: /json_proto [07:39:15]query_string will be loaded in cgi processing [07:39:15]execute_cgi json_proto POST (null) [07:39:15]execute_cgi path=json_proto method=POST [07:39:15]POST find Content-Length [07:39:15]Host: 172.17.32.69:8080 [07:39:15]Content-Length: 679 [07:39:15]Content-Type: application/json [07:39:15] [07:39:15]POST finish read [07:39:15]Found Content-Length = 679 [07:39:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 11.310, "sum" : 700.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:39:15]execute_script... [07:39:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 11.310, "sum" : 700.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:39:15]POST & json_proto [07:39:15]process_json_proto [07:39:15]json parsed OK: [07:39:15]protocol is kg_v1.0 [07:39:15]action value=close_receipt [07:39:15]process_action close_receipt [07:39:15]cmd_close_receipt [07:39:15]MH_GetDate [07:39:15]Write to MH i2c: F0 00 00 92 19 9A [07:39:15]Write i2c OK [07:39:15]MH_I2C_Read... [07:39:15]Read from MH i2c: F0 [07:39:15]MH_I2C_Read... [07:39:15]Read from MH i2c: F0 09 00 [07:39:15]MH_I2C_Read... [07:39:15]Read from MH i2c: F0 09 00 92 19 00 26 FB F3 65 D5 0F D3 65 38 [07:39:15]GetLastDocTimeStamp 1710487647 [07:39:15]current date 1710488358 [07:39:15]FM_GetShiftState [07:39:15]SAM_PROTO_GetShiftState [07:39:15]wFMCommunicate request_size=4 [07:39:15]MH_SAM_APDU [07:39:15]CAPDU: 80 13 01 00 [07:39:15]Write to MH i2c: E2 08 00 93 19 80 13 01 00 00 00 00 00 29 [07:39:15]Write i2c OK [07:39:15]MH_I2C_Read... [07:39:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:39:15]Read from MH i2c: E2 [07:39:15]MH_I2C_Read... [07:39:15]Read from MH i2c: E2 0E 00 [07:39:15]MH_I2C_Read... [07:39:15]Read from MH i2c: E2 0E 00 93 19 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 5D [07:39:15]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [07:39:15]wFMCommunicate OK [07:39:15]SAM_PROTO_GetShiftState done [07:39:15]FM_GetShiftState done [07:39:15]opened in 1710461757 [07:39:15]opened+sec_in_day 1710548157 [07:39:15]quantity*price = 70008 [07:39:15]sum+1 = 70010 [07:39:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 35 15.03.2024 07:39 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108512 ФПД: 184339164368096 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T073918&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108512&fm=184339164368096&tin=02508201610067®Number=0000000000091911&sum=70000 [07:39:16]StoreToDocumentArchive [07:39:16]shift 320 fd 108512 [07:39:16]save to /storage/0320/doc_00108512 [07:39:16]save last doc name /storage/0320/doc_00108512 to /storage/kkm_last_doc_name [07:39:16]save OK [07:39:16]Clear old archive folders... [07:39:16]Remove dir /storage/0266 [07:39:16]opendir ok [07:39:16]file . [07:39:16]file .. [07:39:16]file doc_1710487655 [07:39:16]remove file /storage/0266/doc_1710487655 [07:39:16]remove dir /storage/0266 [07:39:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:39:16]tlvbuf is 000EE570 [07:39:16]SAM_PROTO_ClearQueue [07:39:16]wFMCommunicate request_size=4 [07:39:16]MH_SAM_APDU [07:39:16]CAPDU: 80 09 00 00 [07:39:16]Write to MH i2c: E2 08 00 A0 19 80 09 00 00 00 00 00 00 2B [07:39:16]Write i2c OK [07:39:16]MH_I2C_Read... [07:39:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:39:16]Read from MH i2c: E2 [07:39:16]MH_I2C_Read... [07:39:16]Read from MH i2c: E2 03 00 [07:39:16]MH_I2C_Read... [07:39:16]Read from MH i2c: E2 03 00 A0 19 00 90 00 2D [07:39:16]RAPDU: 90 00 [07:39:16]wFMCommunicate OK [07:39:16]SAM_PROTO_ClearQueue done [07:39:16]KKMCreateOFDPacket [07:39:16]OFDProtocolAddRootSTLVToBuf [07:39:16]FM_MakeSignedData [07:39:16]FM_MakeSignedData [07:39:16]SAM_PROTO_SignData [07:39:16]wFMCommunicate request_size=4 [07:39:16]MH_SAM_APDU [07:39:16]CAPDU: 80 0D 01 02 [07:39:16]Write to MH i2c: E2 08 00 A1 19 80 0D 01 02 00 00 00 00 33 [07:39:16]Write i2c OK [07:39:16]MH_I2C_Read... [07:39:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:39:16]Read from MH i2c: E2 [07:39:16]MH_I2C_Read... [07:39:16]Read from MH i2c: E2 03 00 [07:39:16]MH_I2C_Read... [07:39:16]Read from MH i2c: E2 03 00 A1 19 00 90 00 2E [07:39:16]RAPDU: 90 00 [07:39:16]wFMCommunicate OK [07:39:16]wFMCommunicate request_size=255 [07:39:16]MH_SAM_APDU [07:39:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 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 23 00 00 00 F4 03 04 00 26 FB F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E0 A7 01 00 35 04 06 00 A7 [07:39:16]Write to MH i2c: E2 02 01 A2 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 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 23 00 00 00 F4 03 04 00 26 FB F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E0 A7 01 00 35 04 06 00 A7 00 00 0A [07:39:16]Write i2c OK [07:39:16]MH_I2C_Read... [07:39:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:39:17]Read from MH i2c: E2 [07:39:17]MH_I2C_Read... [07:39:17]Read from MH i2c: E2 03 00 [07:39:17]MH_I2C_Read... [07:39:17]Read from MH i2c: E2 03 00 A2 19 00 90 00 2F [07:39:17]RAPDU: 90 00 [07:39:17]wFMCommunicate OK [07:39:17]wFMCommunicate request_size=10 [07:39:17]MH_SAM_APDU [07:39:17]CAPDU: 80 0D 02 02 05 A7 CE 69 0C E0 [07:39:17]Write to MH i2c: E2 0D 00 A3 19 80 0D 02 02 05 00 A7 CE 69 0C E0 00 00 0A [07:39:17]Write i2c OK [07:39:17]MH_I2C_Read... [07:39:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:39:17]Read from MH i2c: E2 [07:39:17]MH_I2C_Read... [07:39:17]Read from MH i2c: E2 03 00 [07:39:17]MH_I2C_Read... [07:39:17]Read from MH i2c: E2 03 00 A3 19 00 90 00 30 [07:39:17]RAPDU: 90 00 [07:39:17]wFMCommunicate OK [07:39:17]wFMCommunicate request_size=4 [07:39:17]MH_SAM_APDU [07:39:17]CAPDU: 80 0D 03 02 [07:39:17]Write to MH i2c: E2 08 00 A4 19 80 0D 03 02 00 00 00 00 38 [07:39:17]Write i2c OK [07:39:17]MH_I2C_Read... [07:39:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:39:17]Read from MH i2c: E2 [07:39:17]MH_I2C_Read... [07:39:17]Read from MH i2c: E2 0B 00 [07:39:17]MH_I2C_Read... [07:39:17]Read from MH i2c: E2 0B 00 A4 19 00 60 2B 56 9C BD 5F 6D 3C 90 00 7B [07:39:17]RAPDU: 60 2B 56 9C BD 5F 6D 3C 90 00 [07:39:17]wFMCommunicate OK [07:39:17]SAM_PROTO_SignData done [07:39:17]FM_MakeSignedData done [07:39:17]CreateOFDProtocolMessage [07:39:17]wFMCommunicate request_size=4 [07:39:17]MH_SAM_APDU [07:39:17]CAPDU: 80 11 00 00 [07:39:17]Write to MH i2c: E2 08 00 A5 19 80 11 00 00 00 00 00 00 38 [07:39:17]Write i2c OK [07:39:17]MH_I2C_Read... [07:39:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:39:17]Read from MH i2c: E2 [07:39:17]MH_I2C_Read... [07:39:17]Read from MH i2c: E2 17 00 [07:39:17]MH_I2C_Read... [07:39:17]Read from MH i2c: E2 17 00 A5 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 8C [07:39:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [07:39:17]wFMCommunicate OK [07:39:17]CreateOFDProtocolMessage done [07:39:17]OFDSenderStorePacket 108512 [07:39:17]StoreOFDPacket docnum=108512 [07:39:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 72 F9 07 01 61 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 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 23 00 00 00 F4 03 04 00 26 FB F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E0 A7 01 00 35 04 06 00 A7 A7 CE 69 0C E0 60 2B 56 9C BD 5F 6D 3C [07:39:17]CheckFolder [07:39:17]dirname=/storage/ofd_packets [07:39:17]CheckFolder done [07:39:17]ProducePacketName [07:39:17]name=ofd_packets/00108512 [07:39:17]NVStorageSaveData ofd_packets/00108512 [07:39:17]File name is /storage/ofd_packets/00108512 [07:39:17]Write 301 bytes [07:39:17]NVStorageSaveData done [07:39:17]OFDSenderStorePacket done [07:39:17]KKMCreateOFDPacket done [07:39:17]NVStorageSaveData kkm_last_timestamp [07:39:17]File name is /storage/kkm_last_timestamp [07:39:17]Write 4 bytes [07:39:17]NVStorageSaveData done [07:39:17]ExternCall_PrintAddStr [07:39:17]wPrintStart [07:39:17]Write to MH i2c: 01 00 00 A6 19 BF [07:39:17]Write i2c OK [07:39:17]MH_I2C_Read... [07:39:17]Read from MH i2c: 01 [07:39:17]MH_I2C_Read... [07:39:17]Read from MH i2c: 01 07 00 [07:39:17]MH_I2C_Read... [07:39:17]Read from MH i2c: 01 07 00 A6 19 00 00 00 00 00 FF 0F D4 [07:39:17]RasterBufferAndPrint [07:39:17]line Счет N : (1)1040667 [07:39:17]line ИНН: 02508201610067 [07:39:17]line Контрольно-Кассовый Чек [07:39:17]line ПРОДАЖА [07:39:17]line ТРК (МРК, ГНК) : 23 [07:39:17]line Товар: 2710124130 [07:39:17]line Аи-92-К-5 [07:39:17]line 11.310 * 61.90 [07:39:17]line = 700.09 [07:39:17]line НДС 12% НСП 1% [07:39:17]line > о реализуемом товаре [07:39:17]line ОКРУГЛЕНИЕ: -0.09 [07:39:17]line ИТОГО: 700.00 [07:39:17]line Внесено: 700.00 [07:39:17]line СДАЧА: 0.00 [07:39:17]line НСП 1% : 6.19 [07:39:17]line НДС 12% : 74.35 [07:39:17]line Наличными: 700.00 [07:39:17]line Безнал.: 0.00 [07:39:17]line Место: АЗС № 15 "Партнер Нефть" [07:39:17]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [07:39:17]line СНО: Общий режим [07:39:17]line Чек 35 15.03.2024 07:39 [07:39:17]line Смена: 320 ФФД: 1.0 [07:39:17]line ЗНМ: 0300000266 [07:39:17]line РНМ: 0000000000091911 [07:39:17]line Версия ККМ: 001 [07:39:17]line ФМ: 0000000000871818 [07:39:17]line ФД: 108512 [07:39:17]line ФПД: 184339164368096 [07:39:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T073918&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108512&fm=184339164368096&tin=02508201610067®Number=0000000000091911&sum=70000 [07:39:17]OFD Sender: Processing packet 108512 [packets to send 29, broken 28] [07:39:17]ProducePacketName [07:39:17]name=ofd_packets/00108512 [07:39:17]OFD Sender: To server: pG, [07:39:17]CommunicateWithHost lk.salyk.kg:30040 [07:39:17]ConnectInit lk.salyk.kg [07:39:17]written 0, free lines is 4095 [07:39:17]Connected sock=10 [07:39:17]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 31 38 0F 01 00 00 72 F9 07 01 61 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 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 23 00 00 00 F4 03 04 00 26 FB F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E0 A7 01 00 35 04 06 00 A7 A7 CE 69 0C E0 60 2B 56 9C BD 5F 6D 3C [07:39:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 4F 00 00 00 68 9E 47 00 1F 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E0 A7 01 00 F4 03 04 00 C7 A6 F3 65 B6 04 01 00 00 F4 C5 A5 F1 64 D2 30 98 [07:39:17]CommunicateWithHost err = 0 [07:39:17]CheckOFDResponse [07:39:17]1017 (14) - 77093643461234 [07:39:17]1041 (16) - 0000000000871818 [07:39:17]1040 (4) - 108512 [07:39:17]1012 (4) - 15.03.2024 01:39 [07:39:17]1206 (1) - 0 [07:39:17]OFD Sender: Remove packet 108512 [07:39:17]ProducePacketName [07:39:17]name=ofd_packets/00108512 [07:39:17]NVStorageDeleteData [07:39:18]Write to MH i2c: 01 00 00 D1 19 EA [07:39:18]Write i2c OK [07:39:18]MH_I2C_Read... [07:39:18]Read from MH i2c: 01 [07:39:18]MH_I2C_Read... [07:39:18]Read from MH i2c: 01 07 00 [07:39:18]MH_I2C_Read... [07:39:18]Read from MH i2c: 01 07 00 D1 19 00 00 00 00 00 CE 0C CB [07:39:18]RasterBufferAndPrint [07:39:18]line [07:39:18]line [07:39:18]line [07:39:18]line [07:39:18]line [07:39:18]written 0, free lines is 3285 [07:39:18]MH_Cut [07:39:18]Write to MH i2c: D1 01 00 D8 19 01 C3 [07:39:18]Write i2c OK [07:39:18]MH_I2C_Read... [07:39:18]Read from MH i2c: D1 [07:39:18]MH_I2C_Read... [07:39:18]Read from MH i2c: D1 01 00 [07:39:18]MH_I2C_Read... [07:39:18]Read from MH i2c: D1 01 00 D8 19 00 C2 [07:39:18]Write to MH i2c: 01 00 00 D9 19 F2 [07:39:18]Write i2c OK [07:39:18]MH_I2C_Read... [07:39:18]OFD Sender: No OFD packet to send [07:39:18]*** Cut start [07:39:18]*** Purtial cut [07:39:18]*** Stage 1: CUTSNS_PIN = 1 [07:39:19]Read from MH i2c: 01 [07:39:19]MH_I2C_Read... [07:39:19]*** Stop cut motor [07:39:19]*** Cut end [07:39:19]Read from MH i2c: 01 07 00 [07:39:19]MH_I2C_Read... [07:39:19]Read from MH i2c: 01 07 00 D9 19 00 00 00 00 00 FF 0F 07 [07:39:19]process_action close_receipt done [07:39:19]requested_data is exist [07:39:19]produce_requested_data [07:39:19]requested_item fm.sn is exist - process it [07:39:19]wFMCommunicate request_size=4 [07:39:19]MH_SAM_APDU [07:39:19]CAPDU: 80 11 00 00 [07:39:19]Write to MH i2c: E2 08 00 DA 19 80 11 00 00 00 00 00 00 6D [07:39:19]Write i2c OK [07:39:19]MH_I2C_Read... [07:39:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:39:19]Read from MH i2c: E2 [07:39:19]MH_I2C_Read... [07:39:19]Read from MH i2c: E2 17 00 [07:39:19]MH_I2C_Read... [07:39:19]Read from MH i2c: E2 17 00 DA 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 C1 [07:39:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [07:39:19]wFMCommunicate OK [07:39:19]requested_item fd.num is exist - process it [07:39:19]SAM_PROTO_GetFieldsCounters [07:39:19]wFMCommunicate request_size=4 [07:39:19]MH_SAM_APDU [07:39:19]CAPDU: 80 13 00 00 [07:39:19]Write to MH i2c: E2 08 00 DB 19 80 13 00 00 00 00 00 00 70 [07:39:19]Write i2c OK [07:39:19]MH_I2C_Read... [07:39:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:39:19]Read from MH i2c: E2 [07:39:19]MH_I2C_Read... [07:39:19]Read from MH i2c: E2 62 00 [07:39:19]MH_I2C_Read... [07:39:19]Read from MH i2c: E2 62 00 DB 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 E0 A7 01 00 0E 04 04 00 40 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 C0 [07:39:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 E0 A7 01 00 0E 04 04 00 40 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 [07:39:19]wFMCommunicate OK [07:39:19]SAM_PROTO_GetFieldsCounters done [07:39:19]requested_item shift.num is exist - process it [07:39:19]requested_item shift.opened is exist - process it [07:39:19]req_shift_opened [07:39:19]FM_GetShiftState [07:39:19]SAM_PROTO_GetShiftState [07:39:19]wFMCommunicate request_size=4 [07:39:19]MH_SAM_APDU [07:39:19]CAPDU: 80 13 01 00 [07:39:19]Write to MH i2c: E2 08 00 DC 19 80 13 01 00 00 00 00 00 72 [07:39:19]Write i2c OK [07:39:19]MH_I2C_Read... [07:39:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:39:19]Read from MH i2c: E2 [07:39:19]MH_I2C_Read... [07:39:19]Read from MH i2c: E2 0E 00 [07:39:19]MH_I2C_Read... [07:39:19]Read from MH i2c: E2 0E 00 DC 19 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 A6 [07:39:19]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [07:39:19]wFMCommunicate OK [07:39:19]SAM_PROTO_GetShiftState done [07:39:19]FM_GetShiftState done [07:39:19]req_shift_opened done [07:39:19]requested_item shift.open_date is exist - process it [07:39:19]req_shift_open_date [07:39:19]req_shift_open_date done [07:39:19]produce_requested_data done [07:39:19]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108512,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [07:39:19]process_action_free close_receipt [07:39:19]json_value_free [07:39:19]json_value_free done [07:39:19]process_json_proto returns [07:39:19]Send response to host [07:39:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108512,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [07:39:19]free response buf [07:39:19]execute_script done [07:39:19]execute_script returns [07:39:19]free content buf [07:39:19]Sock 8.Close socket [07:39:19]Sock 8.Thread stoped [07:39:23]OFD Sender: No OFD packet to send [07:39:23]accept exits with 9 [07:39:23]New connection [07:39:23]New thread 3067198820 created [07:39:23]Thread 3067342180 joined [07:39:23]Waiting for new connection... [07:39:23] Sock 9.Parse request [07:39:23]Sock 9.Check first char [07:39:23]Sock 9.First char is OK [07:39:23]request: POST /json_proto HTTP/1.0 [07:39:23]Method: POST [07:39:23]URL: /json_proto [07:39:23]Method is POST - this is cgi request [07:39:23]url: /json_proto [07:39:23]query_string will be loaded in cgi processing [07:39:23]execute_cgi json_proto POST (null) [07:39:23]execute_cgi path=json_proto method=POST [07:39:23]POST find Content-Length [07:39:23]Host: 172.17.32.69:8080 [07:39:23]Content-Length: 736 [07:39:23]Content-Type: application/json [07:39:23] [07:39:23]POST finish read [07:39:23]Found Content-Length = 736 [07:39:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 108512, "base_FM": "0000000000871818", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 11.310, "sum" : 700.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:39:23]execute_script... [07:39:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 108512, "base_FM": "0000000000871818", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 11.310, "sum" : 700.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:39:23]POST & json_proto [07:39:23]process_json_proto [07:39:23]json parsed OK: [07:39:23]protocol is kg_v1.0 [07:39:23]action value=close_receipt [07:39:23]process_action close_receipt [07:39:23]cmd_close_receipt [07:39:23]MH_GetDate [07:39:23]Write to MH i2c: F0 00 00 DD 19 E5 [07:39:23]Write i2c OK [07:39:23]MH_I2C_Read... [07:39:23]Read from MH i2c: F0 [07:39:23]MH_I2C_Read... [07:39:23]Read from MH i2c: F0 09 00 [07:39:23]MH_I2C_Read... [07:39:23]Read from MH i2c: F0 09 00 DD 19 00 2E FB F3 65 D5 0F D3 65 8B [07:39:23]GetLastDocTimeStamp 1710488358 [07:39:23]current date 1710488366 [07:39:23]FM_GetShiftState [07:39:23]SAM_PROTO_GetShiftState [07:39:23]wFMCommunicate request_size=4 [07:39:23]MH_SAM_APDU [07:39:23]CAPDU: 80 13 01 00 [07:39:23]Write to MH i2c: E2 08 00 DE 19 80 13 01 00 00 00 00 00 74 [07:39:23]Write i2c OK [07:39:23]MH_I2C_Read... [07:39:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:39:23]Read from MH i2c: E2 [07:39:23]MH_I2C_Read... [07:39:23]Read from MH i2c: E2 0E 00 [07:39:23]MH_I2C_Read... [07:39:23]Read from MH i2c: E2 0E 00 DE 19 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 A8 [07:39:23]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [07:39:23]wFMCommunicate OK [07:39:23]SAM_PROTO_GetShiftState done [07:39:23]FM_GetShiftState done [07:39:23]opened in 1710461757 [07:39:23]opened+sec_in_day 1710548157 [07:39:23]quantity*price = 70008 [07:39:23]sum+1 = 70010 [07:39:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 700.00 НСП 1% : 6.19 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 36 15.03.2024 07:39 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФД осн.: 108512 ФМ осн.: 0000000000871818 ФМ: 0000000000871818 ФД: 108513 ФПД: 17632701954146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T073926&type=2&operation_type=1&fn_number=0000000000871818&fd_number=108513&fm=17632701954146&tin=02508201610067®Number=0000000000091911&sum=70000 [07:39:24]StoreToDocumentArchive [07:39:24]shift 320 fd 108513 [07:39:24]save to /storage/0320/doc_00108513 [07:39:24]save last doc name /storage/0320/doc_00108513 to /storage/kkm_last_doc_name [07:39:24]save OK [07:39:24]Clear old archive folders... [07:39:24]ProcessDocumentItem done err = 0, tmpTLVsize=279 [07:39:24]tlvbuf is B6F397E0 [07:39:24]SAM_PROTO_ClearQueue [07:39:24]wFMCommunicate request_size=4 [07:39:24]MH_SAM_APDU [07:39:24]CAPDU: 80 09 00 00 [07:39:24]Write to MH i2c: E2 08 00 ED 19 80 09 00 00 00 00 00 00 78 [07:39:24]Write i2c OK [07:39:24]MH_I2C_Read... [07:39:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:39:24]Read from MH i2c: E2 [07:39:24]MH_I2C_Read... [07:39:24]Read from MH i2c: E2 03 00 [07:39:24]MH_I2C_Read... [07:39:24]Read from MH i2c: E2 03 00 ED 19 00 90 00 7A [07:39:24]RAPDU: 90 00 [07:39:24]wFMCommunicate OK [07:39:24]SAM_PROTO_ClearQueue done [07:39:24]KKMCreateOFDPacket [07:39:24]OFDProtocolAddRootSTLVToBuf [07:39:24]FM_MakeSignedData [07:39:24]FM_MakeSignedData [07:39:24]SAM_PROTO_SignData [07:39:24]wFMCommunicate request_size=4 [07:39:24]MH_SAM_APDU [07:39:24]CAPDU: 80 0D 01 02 [07:39:24]Write to MH i2c: E2 08 00 EE 19 80 0D 01 02 00 00 00 00 80 [07:39:24]Write i2c OK [07:39:24]MH_I2C_Read... [07:39:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:39:24]Read from MH i2c: E2 [07:39:24]MH_I2C_Read... [07:39:24]Read from MH i2c: E2 03 00 [07:39:24]MH_I2C_Read... [07:39:24]Read from MH i2c: E2 03 00 EE 19 00 90 00 7B [07:39:24]RAPDU: 90 00 [07:39:24]wFMCommunicate OK [07:39:24]wFMCommunicate request_size=255 [07:39:24]MH_SAM_APDU [07:39:24]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 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 24 00 00 00 F4 03 04 00 2E FB F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 27 04 04 00 E0 A7 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 11 04 10 00 30 [07:39:24]Write to MH i2c: E2 02 01 EF 19 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 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 24 00 00 00 F4 03 04 00 2E FB F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 27 04 04 00 E0 A7 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 11 04 10 00 30 00 00 1B [07:39:24]Write i2c OK [07:39:24]MH_I2C_Read... [07:39:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:39:25]Read from MH i2c: E2 [07:39:25]MH_I2C_Read... [07:39:25]Read from MH i2c: E2 03 00 [07:39:25]MH_I2C_Read... [07:39:25]Read from MH i2c: E2 03 00 EF 19 00 90 00 7C [07:39:25]RAPDU: 90 00 [07:39:25]wFMCommunicate OK [07:39:25]wFMCommunicate request_size=38 [07:39:25]MH_SAM_APDU [07:39:25]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E1 A7 01 00 35 04 06 00 10 09 6E EF B8 62 [07:39:25]Write to MH i2c: E2 29 00 F0 19 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E1 A7 01 00 35 04 06 00 10 09 6E EF B8 62 00 00 26 [07:39:25]Write i2c OK [07:39:25]MH_I2C_Read... [07:39:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:39:25]Read from MH i2c: E2 [07:39:25]MH_I2C_Read... [07:39:25]Read from MH i2c: E2 03 00 [07:39:25]MH_I2C_Read... [07:39:25]Read from MH i2c: E2 03 00 F0 19 00 90 00 7D [07:39:25]RAPDU: 90 00 [07:39:25]wFMCommunicate OK [07:39:25]wFMCommunicate request_size=4 [07:39:25]MH_SAM_APDU [07:39:25]CAPDU: 80 0D 03 02 [07:39:25]Write to MH i2c: E2 08 00 F1 19 80 0D 03 02 00 00 00 00 85 [07:39:25]Write i2c OK [07:39:25]MH_I2C_Read... [07:39:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:39:25]Read from MH i2c: E2 [07:39:25]MH_I2C_Read... [07:39:25]Read from MH i2c: E2 0B 00 [07:39:25]MH_I2C_Read... [07:39:25]Read from MH i2c: E2 0B 00 F1 19 00 6C 30 32 11 D6 30 42 7E 90 00 2B [07:39:25]RAPDU: 6C 30 32 11 D6 30 42 7E 90 00 [07:39:25]wFMCommunicate OK [07:39:25]SAM_PROTO_SignData done [07:39:25]FM_MakeSignedData done [07:39:25]CreateOFDProtocolMessage [07:39:25]wFMCommunicate request_size=4 [07:39:25]MH_SAM_APDU [07:39:25]CAPDU: 80 11 00 00 [07:39:25]Write to MH i2c: E2 08 00 F2 19 80 11 00 00 00 00 00 00 85 [07:39:25]Write i2c OK [07:39:25]MH_I2C_Read... [07:39:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:39:25]Read from MH i2c: E2 [07:39:25]MH_I2C_Read... [07:39:25]Read from MH i2c: E2 17 00 [07:39:25]MH_I2C_Read... [07:39:25]Read from MH i2c: E2 17 00 F2 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 D9 [07:39:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [07:39:25]wFMCommunicate OK [07:39:25]CreateOFDProtocolMessage done [07:39:25]OFDSenderStorePacket 108513 [07:39:25]StoreOFDPacket docnum=108513 [07:39:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 2B 01 00 00 62 3B 23 01 91 6A 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 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 24 00 00 00 F4 03 04 00 2E FB F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 27 04 04 00 E0 A7 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E1 A7 01 00 35 04 06 00 10 09 6E EF B8 62 6C 30 32 11 D6 30 42 7E [07:39:25]CheckFolder [07:39:25]dirname=/storage/ofd_packets [07:39:25]CheckFolder done [07:39:25]ProducePacketName [07:39:25]name=ofd_packets/00108513 [07:39:25]NVStorageSaveData ofd_packets/00108513 [07:39:25]File name is /storage/ofd_packets/00108513 [07:39:25]Write 329 bytes [07:39:25]NVStorageSaveData done [07:39:25]OFDSenderStorePacket done [07:39:25]KKMCreateOFDPacket done [07:39:25]NVStorageSaveData kkm_last_timestamp [07:39:25]File name is /storage/kkm_last_timestamp [07:39:25]Write 4 bytes [07:39:25]NVStorageSaveData done [07:39:25]ExternCall_PrintAddStr [07:39:25]wPrintStart [07:39:25]Write to MH i2c: 01 00 00 F3 19 0C [07:39:25]Write i2c OK [07:39:25]MH_I2C_Read... [07:39:25]Read from MH i2c: 01 [07:39:25]MH_I2C_Read... [07:39:25]Read from MH i2c: 01 07 00 [07:39:25]MH_I2C_Read... [07:39:25]Read from MH i2c: 01 07 00 F3 19 00 00 00 00 00 FF 0F 21 [07:39:25]RasterBufferAndPrint [07:39:25]line Счет N : (1)1040667 [07:39:25]line ИНН: 02508201610067 [07:39:25]line Контрольно-Кассовый Чек [07:39:25]line ВОЗВРАТ ПРОДАЖИ [07:39:25]line ТРК (МРК, ГНК) : 23 [07:39:25]line Товар: 2710124130 [07:39:25]line Аи-92-К-5 [07:39:25]line 11.310 * 61.90 [07:39:25]line = 700.09 [07:39:25]line НДС 12% НСП 1% [07:39:25]line > о реализуемом товаре [07:39:25]line ОКРУГЛЕНИЕ: -0.09 [07:39:25]line ИТОГО: 700.00 [07:39:25]line НСП 1% : 6.19 [07:39:25]line НДС 12% : 74.35 [07:39:25]line Наличными: 700.00 [07:39:25]line Безнал.: 0.00 [07:39:25]line Место: АЗС № 15 "Партнер Нефть" [07:39:25]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [07:39:25]line СНО: Общий режим [07:39:25]line Чек 36 15.03.2024 07:39 [07:39:25]line Смена: 320 ФФД: 1.0 [07:39:25]line ЗНМ: 0300000266 [07:39:25]line РНМ: 0000000000091911 [07:39:25]line Версия ККМ: 001 [07:39:25]line ФД осн.: 108512 [07:39:25]line ФМ осн.: 0000000000871818 [07:39:25]line ФМ: 0000000000871818 [07:39:25]line ФД: 108513 [07:39:25]line ФПД: 17632701954146 [07:39:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T073926&type=2&operation_type=1&fn_number=0000000000871818&fd_number=108513&fm=17632701954146&tin=02508201610067®Number=0000000000091911&sum=70000 [07:39:25]written 0, free lines is 4095 [07:39:25]OFD Sender: Processing packet 108513 [packets to send 29, broken 28] [07:39:25]ProducePacketName [07:39:25]name=ofd_packets/00108513 [07:39:25]OFD Sender: To server: pG, [07:39:25]CommunicateWithHost lk.salyk.kg:30040 [07:39:25]ConnectInit lk.salyk.kg [07:39:25]Connected sock=10 [07:39:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 2B 01 00 00 62 3B 23 01 91 6A 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 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 24 00 00 00 F4 03 04 00 2E FB F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 27 04 04 00 E0 A7 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E1 A7 01 00 35 04 06 00 10 09 6E EF B8 62 6C 30 32 11 D6 30 42 7E [07:39: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 31 38 4F 00 00 00 59 8E 47 00 06 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E1 A7 01 00 F4 03 04 00 CF A6 F3 65 B6 04 01 00 00 08 86 EF 4F DA F5 3F D2 [07:39:25]CommunicateWithHost err = 0 [07:39:25]CheckOFDResponse [07:39:25]1017 (14) - 77093643461234 [07:39:25]1041 (16) - 0000000000871818 [07:39:25]1040 (4) - 108513 [07:39:25]1012 (4) - 15.03.2024 01:39 [07:39:25]1206 (1) - 0 [07:39:25]OFD Sender: Remove packet 108513 [07:39:25]ProducePacketName [07:39:25]name=ofd_packets/00108513 [07:39:25]NVStorageDeleteData [07:39:25]Write to MH i2c: 01 00 00 1E 1A 38 [07:39:25]Write i2c OK [07:39:25]MH_I2C_Read... [07:39:25]Read from MH i2c: 01 [07:39:25]MH_I2C_Read... [07:39:25]Read from MH i2c: 01 07 00 [07:39:25]MH_I2C_Read... [07:39:25]Read from MH i2c: 01 07 00 1E 1A 00 00 00 00 00 E4 0C 2F [07:39:25]RasterBufferAndPrint [07:39:25]line [07:39:25]line [07:39:25]line [07:39:25]line [07:39:25]line [07:39:25]written 0, free lines is 3312 [07:39:25]MH_Cut [07:39:25]Write to MH i2c: D1 01 00 25 1A 01 11 [07:39:25]Write i2c OK [07:39:25]MH_I2C_Read... [07:39:25]Read from MH i2c: D1 [07:39:25]MH_I2C_Read... [07:39:25]Read from MH i2c: D1 01 00 [07:39:25]MH_I2C_Read... [07:39:25]Read from MH i2c: D1 01 00 25 1A 00 10 [07:39:25]Write to MH i2c: 01 00 00 26 1A 40 [07:39:25]Write i2c OK [07:39:25]MH_I2C_Read... [07:39:26]OFD Sender: No OFD packet to send [07:39:26]*** Cut start [07:39:26]*** Purtial cut [07:39:26]*** Stage 1: CUTSNS_PIN = 1 [07:39:26]Read from MH i2c: 01 [07:39:26]MH_I2C_Read... [07:39:26]*** Stop cut motor [07:39:26]*** Cut end [07:39:26]Read from MH i2c: 01 07 00 [07:39:26]MH_I2C_Read... [07:39:26]Read from MH i2c: 01 07 00 26 1A 00 00 00 00 00 FF 0F 55 [07:39:26]process_action close_receipt done [07:39:26]requested_data is exist [07:39:26]produce_requested_data [07:39:26]requested_item fm.sn is exist - process it [07:39:26]wFMCommunicate request_size=4 [07:39:26]MH_SAM_APDU [07:39:26]CAPDU: 80 11 00 00 [07:39:26]Write to MH i2c: E2 08 00 27 1A 80 11 00 00 00 00 00 00 BB [07:39:26]Write i2c OK [07:39:26]MH_I2C_Read... [07:39:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:39:26]Read from MH i2c: E2 [07:39:26]MH_I2C_Read... [07:39:26]Read from MH i2c: E2 17 00 [07:39:26]MH_I2C_Read... [07:39:26]Read from MH i2c: E2 17 00 27 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 0F [07:39:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [07:39:26]wFMCommunicate OK [07:39:26]requested_item fd.num is exist - process it [07:39:26]SAM_PROTO_GetFieldsCounters [07:39:26]wFMCommunicate request_size=4 [07:39:26]MH_SAM_APDU [07:39:26]CAPDU: 80 13 00 00 [07:39:26]Write to MH i2c: E2 08 00 28 1A 80 13 00 00 00 00 00 00 BE [07:39:26]Write i2c OK [07:39:26]MH_I2C_Read... [07:39:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:39:27]Read from MH i2c: E2 [07:39:27]MH_I2C_Read... [07:39:27]Read from MH i2c: E2 62 00 [07:39:27]MH_I2C_Read... [07:39:27]Read from MH i2c: E2 62 00 28 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 E1 A7 01 00 0E 04 04 00 40 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 12 [07:39: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 E1 A7 01 00 0E 04 04 00 40 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 [07:39:27]wFMCommunicate OK [07:39:27]SAM_PROTO_GetFieldsCounters done [07:39:27]requested_item shift.num is exist - process it [07:39:27]requested_item shift.opened is exist - process it [07:39:27]req_shift_opened [07:39:27]FM_GetShiftState [07:39:27]SAM_PROTO_GetShiftState [07:39:27]wFMCommunicate request_size=4 [07:39:27]MH_SAM_APDU [07:39:27]CAPDU: 80 13 01 00 [07:39:27]Write to MH i2c: E2 08 00 29 1A 80 13 01 00 00 00 00 00 C0 [07:39:27]Write i2c OK [07:39:27]MH_I2C_Read... [07:39:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:39:27]Read from MH i2c: E2 [07:39:27]MH_I2C_Read... [07:39:27]Read from MH i2c: E2 0E 00 [07:39:27]MH_I2C_Read... [07:39:27]Read from MH i2c: E2 0E 00 29 1A 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 F4 [07:39:27]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [07:39:27]wFMCommunicate OK [07:39:27]SAM_PROTO_GetShiftState done [07:39:27]FM_GetShiftState done [07:39:27]req_shift_opened done [07:39:27]requested_item shift.open_date is exist - process it [07:39:27]req_shift_open_date [07:39:27]req_shift_open_date done [07:39:27]produce_requested_data done [07:39:27]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108513,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [07:39:27]process_action_free close_receipt [07:39:27]json_value_free [07:39:27]json_value_free done [07:39:27]process_json_proto returns [07:39:27]Send response to host [07:39:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108513,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [07:39:27]free response buf [07:39:27]execute_script done [07:39:27]execute_script returns [07:39:27]free content buf [07:39:27]Sock 9.Close socket [07:39:27]Sock 9.Thread stoped [07:39:31]OFD Sender: No OFD packet to send [07:39:36]OFD Sender: No OFD packet to send [07:39:41]OFD Sender: No OFD packet to send [07:39:46]OFD Sender: No OFD packet to send [07:39:51]OFD Sender: No OFD packet to send [07:39:56]OFD Sender: No OFD packet to send [07:40:01]OFD Sender: No OFD packet to send [07:40:06]OFD Sender: No OFD packet to send [07:40:11]OFD Sender: No OFD packet to send [07:40:16]OFD Sender: No OFD packet to send [07:40:20]accept exits with 8 [07:40:20]New connection [07:40:20]New thread 3067342180 created [07:40:20]Thread 3067198820 joined [07:40:20]Waiting for new connection... [07:40:20] Sock 8.Parse request [07:40:20]Sock 8.Check first char [07:40:20]Sock 8.First char is OK [07:40:20]request: POST /json_proto HTTP/1.0 [07:40:20]Method: POST [07:40:20]URL: /json_proto [07:40:20]Method is POST - this is cgi request [07:40:20]url: /json_proto [07:40:20]query_string will be loaded in cgi processing [07:40:20]execute_cgi json_proto POST (null) [07:40:20]execute_cgi path=json_proto method=POST [07:40:20]POST find Content-Length [07:40:20]Host: 172.17.32.69:8080 [07:40:20]Content-Length: 1168 [07:40:20]Content-Type: application/json [07:40:20] [07:40:20]POST finish read [07:40:20]Found Content-Length = 1168 [07:40:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040669\u000A15.03.2024 07:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 11.310 x 61.90\u000A\u0418\u0422\u041E\u0413: 700.09\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A861537\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:40:20]execute_script... [07:40:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040669\u000A15.03.2024 07:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 11.310 x 61.90\u000A\u0418\u0422\u041E\u0413: 700.09\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A861537\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:40:20]POST & json_proto [07:40:20]process_json_proto [07:40:20]json parsed OK: [07:40:20]protocol is kg_v1.0 [07:40:20]action value=print_text [07:40:20]process_action print_text [07:40:20]cmd_print_text [07:40:20]ExternCall_PrintAddStr [07:40:20]wPrintStart [07:40:20]Write to MH i2c: 01 00 00 2A 1A 44 [07:40:20]Write i2c OK [07:40:20]MH_I2C_Read... [07:40:20]Read from MH i2c: 01 [07:40:20]MH_I2C_Read... [07:40:20]Read from MH i2c: 01 07 00 [07:40:20]MH_I2C_Read... [07:40:20]Read from MH i2c: 01 07 00 2A 1A 00 00 00 00 00 FF 0F 59 [07:40:20]RasterBufferAndPrint [07:40:20]line *****ТОВАРНЫЙ ЧЕК***** [07:40:20]line АЗС 15 [07:40:20]line Партнер нефть [07:40:20]line 02508201610067 [07:40:20]line Кассир : Максатбек у Д. [07:40:20]line Счет N : (1)1040669 [07:40:20]line 15.03.2024 07:32 [07:40:20]line ПРОДАЖА [07:40:20]line ТРК (МРК, ГНК): 23 [07:40:20]line Вид ГСМ : 2710124130 [07:40:20]line Аи-92-К-5 [07:40:20]line 11.310 x 61.90 [07:40:20]line ИТОГ: 700.09 [07:40:20]line Тип оплаты: Талоны: ТК ГПНА Online [07:40:20]line 861537 [07:40:20]line ______________________ [07:40:20]line (подпись) [07:40:20]written 0, free lines is 4095 [07:40:20]Write to MH i2c: 01 00 00 3F 1A 59 [07:40:20]Write i2c OK [07:40:20]MH_I2C_Read... [07:40:20]Read from MH i2c: 01 [07:40:20]MH_I2C_Read... [07:40:20]Read from MH i2c: 01 07 00 [07:40:20]MH_I2C_Read... [07:40:20]Read from MH i2c: 01 07 00 3F 1A 00 00 00 00 00 F4 0D 61 [07:40:20]RasterBufferAndPrint [07:40:20]line [07:40:20]line [07:40:20]line [07:40:20]line [07:40:20]line [07:40:20]written 0, free lines is 3574 [07:40:20]MH_Cut [07:40:20]Write to MH i2c: D1 01 00 46 1A 01 32 [07:40:20]Write i2c OK [07:40:20]MH_I2C_Read... [07:40:20]Read from MH i2c: D1 [07:40:20]MH_I2C_Read... [07:40:20]Read from MH i2c: D1 01 00 [07:40:20]MH_I2C_Read... [07:40:20]Read from MH i2c: D1 01 00 46 1A 00 31 [07:40:20]Write to MH i2c: 01 00 00 47 1A 61 [07:40:20]Write i2c OK [07:40:20]MH_I2C_Read... [07:40:21]OFD Sender: No OFD packet to send [07:40:21]*** Cut start [07:40:21]*** Purtial cut [07:40:21]*** Stage 1: CUTSNS_PIN = 1 [07:40:21]Read from MH i2c: 01 [07:40:21]MH_I2C_Read... [07:40:21]*** Stop cut motor [07:40:21]*** Cut end [07:40:21]Read from MH i2c: 01 07 00 [07:40:21]MH_I2C_Read... [07:40:21]Read from MH i2c: 01 07 00 47 1A 00 00 00 00 00 FF 0F 76 [07:40:21]process_action print_text done [07:40:21]requested_data is exist [07:40:21]produce_requested_data [07:40:21]requested_item fm.sn is exist - process it [07:40:21]wFMCommunicate request_size=4 [07:40:21]MH_SAM_APDU [07:40:21]CAPDU: 80 11 00 00 [07:40:21]Write to MH i2c: E2 08 00 48 1A 80 11 00 00 00 00 00 00 DC [07:40:21]Write i2c OK [07:40:21]MH_I2C_Read... [07:40:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:40:21]Read from MH i2c: E2 [07:40:21]MH_I2C_Read... [07:40:21]Read from MH i2c: E2 17 00 [07:40:21]MH_I2C_Read... [07:40:21]Read from MH i2c: E2 17 00 48 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 30 [07:40:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [07:40:21]wFMCommunicate OK [07:40:21]requested_item fd.num is exist - process it [07:40:21]SAM_PROTO_GetFieldsCounters [07:40:21]wFMCommunicate request_size=4 [07:40:21]MH_SAM_APDU [07:40:21]CAPDU: 80 13 00 00 [07:40:21]Write to MH i2c: E2 08 00 49 1A 80 13 00 00 00 00 00 00 DF [07:40:21]Write i2c OK [07:40:21]MH_I2C_Read... [07:40:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:40:21]Read from MH i2c: E2 [07:40:21]MH_I2C_Read... [07:40:21]Read from MH i2c: E2 62 00 [07:40:21]MH_I2C_Read... [07:40:21]Read from MH i2c: E2 62 00 49 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 E1 A7 01 00 0E 04 04 00 40 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 [07:40: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 E1 A7 01 00 0E 04 04 00 40 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 [07:40:21]wFMCommunicate OK [07:40:21]SAM_PROTO_GetFieldsCounters done [07:40:21]requested_item shift.num is exist - process it [07:40:21]requested_item shift.opened is exist - process it [07:40:21]req_shift_opened [07:40:21]FM_GetShiftState [07:40:21]SAM_PROTO_GetShiftState [07:40:21]wFMCommunicate request_size=4 [07:40:21]MH_SAM_APDU [07:40:21]CAPDU: 80 13 01 00 [07:40:21]Write to MH i2c: E2 08 00 4A 1A 80 13 01 00 00 00 00 00 E1 [07:40:21]Write i2c OK [07:40:21]MH_I2C_Read... [07:40:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:40:22]Read from MH i2c: E2 [07:40:22]MH_I2C_Read... [07:40:22]Read from MH i2c: E2 0E 00 [07:40:22]MH_I2C_Read... [07:40:22]Read from MH i2c: E2 0E 00 4A 1A 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 15 [07:40:22]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [07:40:22]wFMCommunicate OK [07:40:22]SAM_PROTO_GetShiftState done [07:40:22]FM_GetShiftState done [07:40:22]req_shift_opened done [07:40:22]requested_item shift.open_date is exist - process it [07:40:22]req_shift_open_date [07:40:22]req_shift_open_date done [07:40:22]produce_requested_data done [07:40:22]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108513,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [07:40:22]process_action_free print_text [07:40:22]json_value_free [07:40:22]json_value_free done [07:40:22]process_json_proto returns [07:40:22]Send response to host [07:40:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108513,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [07:40:22]free response buf [07:40:22]execute_script done [07:40:22]execute_script returns [07:40:22]free content buf [07:40:22]Sock 8.Close socket [07:40:22]Sock 8.Thread stoped [07:40:26]OFD Sender: No OFD packet to send [07:40:31]OFD Sender: No OFD packet to send [07:40:36]OFD Sender: No OFD packet to send [07:40:41]OFD Sender: No OFD packet to send [07:40:46]OFD Sender: No OFD packet to send [07:40:51]OFD Sender: No OFD packet to send [07:40:56]OFD Sender: No OFD packet to send [07:41:01]OFD Sender: No OFD packet to send [07:41:06]OFD Sender: No OFD packet to send [07:41:11]OFD Sender: No OFD packet to send [07:41:16]OFD Sender: No OFD packet to send [07:41:21]OFD Sender: No OFD packet to send [07:41:26]OFD Sender: No OFD packet to send [07:41:31]OFD Sender: No OFD packet to send [07:41:36]OFD Sender: No OFD packet to send [07:41:41]OFD Sender: No OFD packet to send [07:41:46]OFD Sender: No OFD packet to send [07:41:51]OFD Sender: No OFD packet to send [07:41:56]OFD Sender: No OFD packet to send [07:42:01]OFD Sender: No OFD packet to send [07:42:06]OFD Sender: No OFD packet to send [07:42:11]OFD Sender: No OFD packet to send [07:42:16]OFD Sender: No OFD packet to send [07:42:21]OFD Sender: No OFD packet to send [07:42:26]OFD Sender: No OFD packet to send [07:42:31]OFD Sender: No OFD packet to send [07:42:36]OFD Sender: No OFD packet to send [07:42:41]OFD Sender: No OFD packet to send [07:42:46]OFD Sender: No OFD packet to send [07:42:51]OFD Sender: No OFD packet to send [07:42:56]OFD Sender: No OFD packet to send [07:43:01]OFD Sender: No OFD packet to send [07:43:06]OFD Sender: No OFD packet to send [07:43:11]OFD Sender: No OFD packet to send [07:43:16]OFD Sender: No OFD packet to send [07:43:21]OFD Sender: No OFD packet to send [07:43:26]OFD Sender: No OFD packet to send [07:43:31]OFD Sender: No OFD packet to send [07:43:36]OFD Sender: No OFD packet to send [07:43:41]OFD Sender: No OFD packet to send [07:43:46]OFD Sender: No OFD packet to send [07:43:51]OFD Sender: No OFD packet to send [07:43:56]OFD Sender: No OFD packet to send [07:44:01]OFD Sender: No OFD packet to send [07:44:06]OFD Sender: No OFD packet to send [07:44:11]OFD Sender: No OFD packet to send [07:44:16]OFD Sender: No OFD packet to send [07:44:21]OFD Sender: No OFD packet to send [07:44:26]OFD Sender: No OFD packet to send [07:44:31]OFD Sender: No OFD packet to send [07:44:36]OFD Sender: No OFD packet to send [07:44:41]OFD Sender: No OFD packet to send [07:44:46]OFD Sender: No OFD packet to send [07:44:51]OFD Sender: No OFD packet to send [07:44:56]OFD Sender: No OFD packet to send [07:45:01]OFD Sender: No OFD packet to send [07:45:06]OFD Sender: No OFD packet to send [07:45:11]OFD Sender: No OFD packet to send [07:45:16]OFD Sender: No OFD packet to send [07:45:21]OFD Sender: No OFD packet to send [07:45:26]OFD Sender: No OFD packet to send [07:45:31]OFD Sender: No OFD packet to send [07:45:36]OFD Sender: No OFD packet to send [07:45:41]OFD Sender: No OFD packet to send [07:45:46]OFD Sender: No OFD packet to send [07:45:51]OFD Sender: No OFD packet to send [07:45:56]OFD Sender: No OFD packet to send [07:46:01]OFD Sender: No OFD packet to send [07:46:06]OFD Sender: No OFD packet to send [07:46:11]OFD Sender: No OFD packet to send [07:46:16]accept exits with 9 [07:46:16]New connection [07:46:16]New thread 3067198820 created [07:46:16]Thread 3067342180 joined [07:46:16]Waiting for new connection... [07:46:16] Sock 9.Parse request [07:46:16]Sock 9.Check first char [07:46:16]Sock 9.First char is OK [07:46:16]request: POST /json_proto HTTP/1.0 [07:46:16]Method: POST [07:46:16]URL: /json_proto [07:46:16]Method is POST - this is cgi request [07:46:16]url: /json_proto [07:46:16]query_string will be loaded in cgi processing [07:46:16]execute_cgi json_proto POST (null) [07:46:16]execute_cgi path=json_proto method=POST [07:46:16]POST find Content-Length [07:46:16]Host: 172.17.32.69:8080 [07:46:16]Content-Length: 830 [07:46:16]Content-Type: application/json [07:46:16] [07:46:16]POST finish read [07:46:16]Found Content-Length = 830 [07:46:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 9.700, "sum" : 600.43, "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: \u0414\u0435\u043C\u0438\u0440 \u041A\u0418 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:16]execute_script... [07:46: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)1040670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 9.700, "sum" : 600.43, "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: \u0414\u0435\u043C\u0438\u0440 \u041A\u0418 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:16]POST & json_proto [07:46:16]process_json_proto [07:46:16]json parsed OK: [07:46:16]protocol is kg_v1.0 [07:46:16]action value=close_receipt [07:46:16]process_action close_receipt [07:46:16]cmd_close_receipt [07:46:16]MH_GetDate [07:46:16]Write to MH i2c: F0 00 00 4B 1A 54 [07:46:16]Write i2c OK [07:46:16]MH_I2C_Read... [07:46:16]Read from MH i2c: F0 [07:46:16]MH_I2C_Read... [07:46:16]Read from MH i2c: F0 09 00 [07:46:16]MH_I2C_Read... [07:46:16]Read from MH i2c: F0 09 00 4B 1A 00 CB FC F3 65 D5 0F D3 65 98 [07:46:16]GetLastDocTimeStamp 1710488366 [07:46:16]current date 1710488779 [07:46:16]FM_GetShiftState [07:46:16]SAM_PROTO_GetShiftState [07:46:16]wFMCommunicate request_size=4 [07:46:16]MH_SAM_APDU [07:46:16]CAPDU: 80 13 01 00 [07:46:16]Write to MH i2c: E2 08 00 4C 1A 80 13 01 00 00 00 00 00 E3 [07:46:16]Write i2c OK [07:46:16]MH_I2C_Read... [07:46:16]OFD Sender: No OFD packet to send [07:46:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:16]Read from MH i2c: E2 [07:46:16]MH_I2C_Read... [07:46:16]Read from MH i2c: E2 0E 00 [07:46:16]MH_I2C_Read... [07:46:16]Read from MH i2c: E2 0E 00 4C 1A 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 17 [07:46:16]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [07:46:16]wFMCommunicate OK [07:46:16]SAM_PROTO_GetShiftState done [07:46:16]FM_GetShiftState done [07:46:16]opened in 1710461757 [07:46:16]opened+sec_in_day 1710548157 [07:46:16]quantity*price = 60043 [07:46:16]sum+1 = 60044 [07:46:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.43 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 0.00 Безнал.: 600.43 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 37 15.03.2024 07:46 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 Платежная система: Демир КИ Банк ФМ: 0000000000871818 ФД: 108514 ФПД: 205230430539548 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T074619&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108514&fm=205230430539548&tin=02508201610067®Number=0000000000091911&sum=60043 [07:46:17]StoreToDocumentArchive [07:46:17]shift 320 fd 108514 [07:46:17]save to /storage/0320/doc_00108514 [07:46:17]save last doc name /storage/0320/doc_00108514 to /storage/kkm_last_doc_name [07:46:17]save OK [07:46:17]Clear old archive folders... [07:46:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:46:17]tlvbuf is B6F20880 [07:46:17]SAM_PROTO_ClearQueue [07:46:17]wFMCommunicate request_size=4 [07:46:17]MH_SAM_APDU [07:46:17]CAPDU: 80 09 00 00 [07:46:17]Write to MH i2c: E2 08 00 59 1A 80 09 00 00 00 00 00 00 E5 [07:46:17]Write i2c OK [07:46:17]MH_I2C_Read... [07:46:17]Read from MH i2c: E2 [07:46:17]MH_I2C_Read... [07:46:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:46:17]Read from MH i2c: E2 03 00 [07:46:17]MH_I2C_Read... [07:46:17]Read from MH i2c: E2 03 00 59 1A 00 90 00 E7 [07:46:17]RAPDU: 90 00 [07:46:17]wFMCommunicate OK [07:46:17]SAM_PROTO_ClearQueue done [07:46:17]KKMCreateOFDPacket [07:46:17]OFDProtocolAddRootSTLVToBuf [07:46:17]FM_MakeSignedData [07:46:17]FM_MakeSignedData [07:46:17]SAM_PROTO_SignData [07:46:17]wFMCommunicate request_size=4 [07:46:17]MH_SAM_APDU [07:46:17]CAPDU: 80 0D 01 02 [07:46:17]Write to MH i2c: E2 08 00 5A 1A 80 0D 01 02 00 00 00 00 ED [07:46:17]Write i2c OK [07:46:17]MH_I2C_Read... [07:46:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:46:17]Read from MH i2c: E2 [07:46:17]MH_I2C_Read... [07:46:17]Read from MH i2c: E2 03 00 [07:46:17]MH_I2C_Read... [07:46:17]Read from MH i2c: E2 03 00 5A 1A 00 90 00 E8 [07:46:17]RAPDU: 90 00 [07:46:17]wFMCommunicate OK [07:46:17]wFMCommunicate request_size=255 [07:46:17]MH_SAM_APDU [07:46:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 8B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8B 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 E8 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 CB FC F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E2 A7 01 00 35 04 06 00 BA [07:46:17]Write to MH i2c: E2 02 01 5B 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 8B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8B 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 E8 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 CB FC F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E2 A7 01 00 35 04 06 00 BA 00 00 80 [07:46:17]Write i2c OK [07:46:17]MH_I2C_Read... [07:46:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:17]Read from MH i2c: E2 [07:46:17]MH_I2C_Read... [07:46:17]Read from MH i2c: E2 03 00 [07:46:17]MH_I2C_Read... [07:46:17]Read from MH i2c: E2 03 00 5B 1A 00 90 00 E9 [07:46:17]RAPDU: 90 00 [07:46:17]wFMCommunicate OK [07:46:17]wFMCommunicate request_size=10 [07:46:17]MH_SAM_APDU [07:46:17]CAPDU: 80 0D 02 02 05 A7 EE E8 CF 1C [07:46:17]Write to MH i2c: E2 0D 00 5C 1A 80 0D 02 02 05 00 A7 EE E8 CF 1C 00 00 62 [07:46:17]Write i2c OK [07:46:17]MH_I2C_Read... [07:46:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:18]Read from MH i2c: E2 [07:46:18]MH_I2C_Read... [07:46:18]Read from MH i2c: E2 03 00 [07:46:18]MH_I2C_Read... [07:46:18]Read from MH i2c: E2 03 00 5C 1A 00 90 00 EA [07:46:18]RAPDU: 90 00 [07:46:18]wFMCommunicate OK [07:46:18]wFMCommunicate request_size=4 [07:46:18]MH_SAM_APDU [07:46:18]CAPDU: 80 0D 03 02 [07:46:18]Write to MH i2c: E2 08 00 5D 1A 80 0D 03 02 00 00 00 00 F2 [07:46:18]Write i2c OK [07:46:18]MH_I2C_Read... [07:46:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:46:18]Read from MH i2c: E2 [07:46:18]MH_I2C_Read... [07:46:18]Read from MH i2c: E2 0B 00 [07:46:18]MH_I2C_Read... [07:46:18]Read from MH i2c: E2 0B 00 5D 1A 00 63 AB 18 0F FD 62 7A 87 90 00 88 [07:46:18]RAPDU: 63 AB 18 0F FD 62 7A 87 90 00 [07:46:18]wFMCommunicate OK [07:46:18]SAM_PROTO_SignData done [07:46:18]FM_MakeSignedData done [07:46:18]CreateOFDProtocolMessage [07:46:18]wFMCommunicate request_size=4 [07:46:18]MH_SAM_APDU [07:46:18]CAPDU: 80 11 00 00 [07:46:18]Write to MH i2c: E2 08 00 5E 1A 80 11 00 00 00 00 00 00 F2 [07:46:18]Write i2c OK [07:46:18]MH_I2C_Read... [07:46:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:18]Read from MH i2c: E2 [07:46:18]MH_I2C_Read... [07:46:18]Read from MH i2c: E2 17 00 [07:46:18]MH_I2C_Read... [07:46:18]Read from MH i2c: E2 17 00 5E 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 46 [07:46:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [07:46:18]wFMCommunicate OK [07:46:18]CreateOFDProtocolMessage done [07:46:18]OFDSenderStorePacket 108514 [07:46:18]StoreOFDPacket docnum=108514 [07:46:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 15 5E 07 01 4B 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 8B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8B 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 E8 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 CB FC F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E2 A7 01 00 35 04 06 00 BA A7 EE E8 CF 1C 63 AB 18 0F FD 62 7A 87 [07:46:18]CheckFolder [07:46:18]dirname=/storage/ofd_packets [07:46:18]CheckFolder done [07:46:18]ProducePacketName [07:46:18]name=ofd_packets/00108514 [07:46:18]NVStorageSaveData ofd_packets/00108514 [07:46:18]File name is /storage/ofd_packets/00108514 [07:46:18]Write 301 bytes [07:46:18]NVStorageSaveData done [07:46:18]OFDSenderStorePacket done [07:46:18]KKMCreateOFDPacket done [07:46:18]NVStorageSaveData kkm_last_timestamp [07:46:18]File name is /storage/kkm_last_timestamp [07:46:18]Write 4 bytes [07:46:18]NVStorageSaveData done [07:46:18]ExternCall_PrintAddStr [07:46:18]wPrintStart [07:46:18]Write to MH i2c: 01 00 00 5F 1A 79 [07:46:18]Write i2c OK [07:46:18]MH_I2C_Read... [07:46:18]Read from MH i2c: 01 [07:46:18]MH_I2C_Read... [07:46:18]Read from MH i2c: 01 07 00 [07:46:18]MH_I2C_Read... [07:46:18]Read from MH i2c: 01 07 00 5F 1A 00 00 00 00 00 FF 0F 8E [07:46:18]RasterBufferAndPrint [07:46:18]line Счет N : (1)1040670 [07:46:18]line ИНН: 02508201610067 [07:46:18]line Контрольно-Кассовый Чек [07:46:18]line ПРОДАЖА [07:46:18]line ТРК (МРК, ГНК) : 13 [07:46:18]line Товар: 2710124130 [07:46:18]line Аи-92-К-5 [07:46:18]line 9.700 * 61.90 [07:46:18]line = 600.43 [07:46:18]line НДС 12% НСП 1% [07:46:18]line > о реализуемом товаре [07:46:18]line ИТОГО: 600.43 [07:46:18]line НСП 1% : 5.31 [07:46:18]line НДС 12% : 63.76 [07:46:18]line Наличными: 0.00 [07:46:18]line Безнал.: 600.43 [07:46:18]line Место: АЗС № 15 "Партнер Нефть" [07:46:18]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [07:46:18]line СНО: Общий режим [07:46:18]line Чек 37 15.03.2024 07:46 [07:46:18]line Смена: 320 ФФД: 1.0 [07:46:18]line ЗНМ: 0300000266 [07:46:18]line РНМ: 0000000000091911 [07:46:18]line Версия ККМ: 001 [07:46:18]line Платежная система: Демир КИ Банк [07:46:18]line ФМ: 0000000000871818 [07:46:18]line ФД: 108514 [07:46:18]line ФПД: 205230430539548 [07:46:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T074619&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108514&fm=205230430539548&tin=02508201610067®Number=0000000000091911&sum=60043 [07:46:18]written 0, free lines is 4095 [07:46:18]OFD Sender: Processing packet 108514 [packets to send 29, broken 28] [07:46:18]ProducePacketName [07:46:18]name=ofd_packets/00108514 [07:46:18]OFD Sender: To server: pG, [07:46:18]CommunicateWithHost lk.salyk.kg:30040 [07:46:18]ConnectInit lk.salyk.kg [07:46:18]Connected sock=8 [07:46: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 31 38 0F 01 00 00 15 5E 07 01 4B 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 8B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8B 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 E8 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 CB FC F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E2 A7 01 00 35 04 06 00 BA A7 EE E8 CF 1C 63 AB 18 0F FD 62 7A 87 [07:46: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 31 38 4F 00 00 00 7C 46 47 00 A7 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 31 38 10 04 04 00 E2 A7 01 00 F4 03 04 00 6C A8 F3 65 B6 04 01 00 00 03 D1 91 52 D2 D2 5C 3C [07:46:18]CommunicateWithHost err = 0 [07:46:18]CheckOFDResponse [07:46:18]1017 (14) - 77093643461234 [07:46:18]1041 (16) - 0000000000871818 [07:46:18]1040 (4) - 108514 [07:46:18]1012 (4) - 15.03.2024 01:46 [07:46:18]1206 (1) - 0 [07:46:18]OFD Sender: Remove packet 108514 [07:46:18]ProducePacketName [07:46:18]name=ofd_packets/00108514 [07:46:18]NVStorageDeleteData [07:46:18]Write to MH i2c: 01 00 00 89 1A A3 [07:46:18]Write i2c OK [07:46:18]MH_I2C_Read... [07:46:18]Read from MH i2c: 01 [07:46:18]MH_I2C_Read... [07:46:18]Read from MH i2c: 01 07 00 [07:46:18]MH_I2C_Read... [07:46:18]Read from MH i2c: 01 07 00 89 1A 00 00 00 00 00 E4 0C 9A [07:46:18]RasterBufferAndPrint [07:46:18]line [07:46:18]line [07:46:18]line [07:46:18]line [07:46:18]line [07:46:18]written 0, free lines is 3309 [07:46:18]MH_Cut [07:46:18]Write to MH i2c: D1 01 00 90 1A 01 7C [07:46:18]Write i2c OK [07:46:18]MH_I2C_Read... [07:46:18]Read from MH i2c: D1 [07:46:18]MH_I2C_Read... [07:46:18]Read from MH i2c: D1 01 00 [07:46:18]MH_I2C_Read... [07:46:18]Read from MH i2c: D1 01 00 90 1A 00 7B [07:46:18]Write to MH i2c: 01 00 00 91 1A AB [07:46:18]Write i2c OK [07:46:18]MH_I2C_Read... [07:46:19]OFD Sender: No OFD packet to send [07:46:19]*** Cut start [07:46:19]*** Purtial cut [07:46:19]*** Stage 1: CUTSNS_PIN = 1 [07:46:20]Read from MH i2c: 01 [07:46:20]MH_I2C_Read... [07:46:20]*** Stop cut motor [07:46:20]*** Cut end [07:46:20]Read from MH i2c: 01 07 00 [07:46:20]MH_I2C_Read... [07:46:20]Read from MH i2c: 01 07 00 91 1A 00 00 00 00 00 FF 0F C0 [07:46:20]process_action close_receipt done [07:46:20]requested_data is exist [07:46:20]produce_requested_data [07:46:20]requested_item fm.sn is exist - process it [07:46:20]wFMCommunicate request_size=4 [07:46:20]MH_SAM_APDU [07:46:20]CAPDU: 80 11 00 00 [07:46:20]Write to MH i2c: E2 08 00 92 1A 80 11 00 00 00 00 00 00 26 [07:46:20]Write i2c OK [07:46:20]MH_I2C_Read... [07:46:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:20]Read from MH i2c: E2 [07:46:20]MH_I2C_Read... [07:46:20]Read from MH i2c: E2 17 00 [07:46:20]MH_I2C_Read... [07:46:20]Read from MH i2c: E2 17 00 92 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 7A [07:46:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [07:46:20]wFMCommunicate OK [07:46:20]requested_item fd.num is exist - process it [07:46:20]SAM_PROTO_GetFieldsCounters [07:46:20]wFMCommunicate request_size=4 [07:46:20]MH_SAM_APDU [07:46:20]CAPDU: 80 13 00 00 [07:46:20]Write to MH i2c: E2 08 00 93 1A 80 13 00 00 00 00 00 00 29 [07:46:20]Write i2c OK [07:46:20]MH_I2C_Read... [07:46:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:46:20]Read from MH i2c: E2 [07:46:20]MH_I2C_Read... [07:46:20]Read from MH i2c: E2 62 00 [07:46:20]MH_I2C_Read... [07:46:20]Read from MH i2c: E2 62 00 93 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 E2 A7 01 00 0E 04 04 00 40 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 [07:46: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 E2 A7 01 00 0E 04 04 00 40 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 [07:46:20]wFMCommunicate OK [07:46:20]SAM_PROTO_GetFieldsCounters done [07:46:20]requested_item shift.num is exist - process it [07:46:20]requested_item shift.opened is exist - process it [07:46:20]req_shift_opened [07:46:20]FM_GetShiftState [07:46:20]SAM_PROTO_GetShiftState [07:46:20]wFMCommunicate request_size=4 [07:46:20]MH_SAM_APDU [07:46:20]CAPDU: 80 13 01 00 [07:46:20]Write to MH i2c: E2 08 00 94 1A 80 13 01 00 00 00 00 00 2B [07:46:20]Write i2c OK [07:46:20]MH_I2C_Read... [07:46:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:20]Read from MH i2c: E2 [07:46:20]MH_I2C_Read... [07:46:20]Read from MH i2c: E2 0E 00 [07:46:20]MH_I2C_Read... [07:46:20]Read from MH i2c: E2 0E 00 94 1A 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 5F [07:46:20]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [07:46:20]wFMCommunicate OK [07:46:20]SAM_PROTO_GetShiftState done [07:46:20]FM_GetShiftState done [07:46:20]req_shift_opened done [07:46:20]requested_item shift.open_date is exist - process it [07:46:20]req_shift_open_date [07:46:20]req_shift_open_date done [07:46:20]produce_requested_data done [07:46:20]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108514,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [07:46:20]process_action_free close_receipt [07:46:20]json_value_free [07:46:20]json_value_free done [07:46:20]process_json_proto returns [07:46:20]Send response to host [07:46:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108514,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [07:46:20]free response buf [07:46:20]execute_script done [07:46:20]execute_script returns [07:46:20]free content buf [07:46:20]Sock 9.Close socket [07:46:20]Sock 9.Thread stoped [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:49]OFD Sender: No OFD packet to send [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:25]accept exits with 10 [07:54:25]New connection [07:54:25]New thread 3067342180 created [07:54:25]Thread 3067198820 joined [07:54:25]Waiting for new connection... [07:54:25] Sock 10.Parse request [07:54:25]Sock 10.Check first char [07:54:25]Sock 10.First char is OK [07:54:25]request: POST /json_proto HTTP/1.0 [07:54:25]Method: POST [07:54:25]URL: /json_proto [07:54:25]Method is POST - this is cgi request [07:54:25]url: /json_proto [07:54:25]query_string will be loaded in cgi processing [07:54:25]execute_cgi json_proto POST (null) [07:54:25]execute_cgi path=json_proto method=POST [07:54:25]POST find Content-Length [07:54:25]Host: 172.17.32.69:8080 [07:54:25]Content-Length: 826 [07:54:25]Content-Type: application/json [07:54:25] [07:54:25]POST finish read [07:54:25]Found Content-Length = 826 [07:54:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0414\u0435\u043C\u0438\u0440 \u041A\u0418 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:25]execute_script... [07:54: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)1040671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0414\u0435\u043C\u0438\u0440 \u041A\u0418 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:25]POST & json_proto [07:54:25]process_json_proto [07:54:25]json parsed OK: [07:54:25]protocol is kg_v1.0 [07:54:25]action value=close_receipt [07:54:25]process_action close_receipt [07:54:25]cmd_close_receipt [07:54:25]MH_GetDate [07:54:25]Write to MH i2c: F0 00 00 95 1A 9E [07:54:25]Write i2c OK [07:54:25]MH_I2C_Read... [07:54:25]Read from MH i2c: F0 [07:54:25]MH_I2C_Read... [07:54:25]Read from MH i2c: F0 09 00 [07:54:25]MH_I2C_Read... [07:54:25]Read from MH i2c: F0 09 00 95 1A 00 B4 FE F3 65 D5 0F D3 65 CD [07:54:25]GetLastDocTimeStamp 1710488779 [07:54:25]current date 1710489268 [07:54:25]FM_GetShiftState [07:54:25]SAM_PROTO_GetShiftState [07:54:25]wFMCommunicate request_size=4 [07:54:25]MH_SAM_APDU [07:54:25]CAPDU: 80 13 01 00 [07:54:25]Write to MH i2c: E2 08 00 96 1A 80 13 01 00 00 00 00 00 2D [07:54:25]Write i2c OK [07:54:25]MH_I2C_Read... [07:54:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:25]Read from MH i2c: E2 [07:54:25]MH_I2C_Read... [07:54:25]Read from MH i2c: E2 0E 00 [07:54:25]MH_I2C_Read... [07:54:25]Read from MH i2c: E2 0E 00 96 1A 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 61 [07:54:25]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [07:54:25]wFMCommunicate OK [07:54:25]SAM_PROTO_GetShiftState done [07:54:25]FM_GetShiftState done [07:54:25]opened in 1710461757 [07:54:25]opened+sec_in_day 1710548157 [07:54:25]quantity*price = 100011 [07:54:25]sum+1 = 100012 [07:54:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.11 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.11 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 38 15.03.2024 07:54 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 Платежная система: Демир КИ Банк ФМ: 0000000000871818 ФД: 108515 ФПД: 22119778320882 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T075428&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108515&fm=22119778320882&tin=02508201610067®Number=0000000000091911&sum=100011 [07:54:26]StoreToDocumentArchive [07:54:26]shift 320 fd 108515 [07:54:26]save to /storage/0320/doc_00108515 [07:54:26]save last doc name /storage/0320/doc_00108515 to /storage/kkm_last_doc_name [07:54:26]save OK [07:54:26]Clear old archive folders... [07:54:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:54:26]tlvbuf is B6F07E50 [07:54:26]SAM_PROTO_ClearQueue [07:54:26]wFMCommunicate request_size=4 [07:54:26]MH_SAM_APDU [07:54:26]CAPDU: 80 09 00 00 [07:54:26]Write to MH i2c: E2 08 00 A3 1A 80 09 00 00 00 00 00 00 2F [07:54:26]Write i2c OK [07:54:26]MH_I2C_Read... [07:54:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:54:26]Read from MH i2c: E2 [07:54:26]MH_I2C_Read... [07:54:26]Read from MH i2c: E2 03 00 [07:54:26]MH_I2C_Read... [07:54:26]Read from MH i2c: E2 03 00 A3 1A 00 90 00 31 [07:54:26]RAPDU: 90 00 [07:54:26]wFMCommunicate OK [07:54:26]SAM_PROTO_ClearQueue done [07:54:26]KKMCreateOFDPacket [07:54:26]OFDProtocolAddRootSTLVToBuf [07:54:26]FM_MakeSignedData [07:54:26]FM_MakeSignedData [07:54:26]SAM_PROTO_SignData [07:54:26]wFMCommunicate request_size=4 [07:54:26]MH_SAM_APDU [07:54:26]CAPDU: 80 0D 01 02 [07:54:26]Write to MH i2c: E2 08 00 A4 1A 80 0D 01 02 00 00 00 00 37 [07:54:26]Write i2c OK [07:54:26]MH_I2C_Read... [07:54:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:54:26]Read from MH i2c: E2 [07:54:26]MH_I2C_Read... [07:54:26]Read from MH i2c: E2 03 00 [07:54:26]MH_I2C_Read... [07:54:26]Read from MH i2c: E2 03 00 A4 1A 00 90 00 32 [07:54:26]RAPDU: 90 00 [07:54:26]wFMCommunicate OK [07:54:26]wFMCommunicate request_size=255 [07:54:26]MH_SAM_APDU [07:54:26]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 B4 FE F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E3 A7 01 00 35 04 06 00 [07:54:26]Write to MH i2c: E2 02 01 A5 1A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 B4 FE F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E3 A7 01 00 35 04 06 00 00 00 1C [07:54:26]Write i2c OK [07:54:26]MH_I2C_Read... [07:54:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:26]Read from MH i2c: E2 [07:54:26]MH_I2C_Read... [07:54:26]Read from MH i2c: E2 03 00 [07:54:26]MH_I2C_Read... [07:54:26]Read from MH i2c: E2 03 00 A5 1A 00 90 00 33 [07:54:26]RAPDU: 90 00 [07:54:26]wFMCommunicate OK [07:54:26]wFMCommunicate request_size=11 [07:54:26]MH_SAM_APDU [07:54:26]CAPDU: 80 0D 02 02 06 14 1E 29 87 81 F2 [07:54:26]Write to MH i2c: E2 0E 00 A6 1A 80 0D 02 02 06 00 14 1E 29 87 81 F2 00 00 9B [07:54:26]Write i2c OK [07:54:26]MH_I2C_Read... [07:54:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:26]Read from MH i2c: E2 [07:54:26]MH_I2C_Read... [07:54:26]Read from MH i2c: E2 03 00 [07:54:26]MH_I2C_Read... [07:54:26]Read from MH i2c: E2 03 00 A6 1A 00 90 00 34 [07:54:26]RAPDU: 90 00 [07:54:26]wFMCommunicate OK [07:54:26]wFMCommunicate request_size=4 [07:54:26]MH_SAM_APDU [07:54:26]CAPDU: 80 0D 03 02 [07:54:26]Write to MH i2c: E2 08 00 A7 1A 80 0D 03 02 00 00 00 00 3C [07:54:26]Write i2c OK [07:54:26]MH_I2C_Read... [07:54:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:54:26]Read from MH i2c: E2 [07:54:26]MH_I2C_Read... [07:54:26]Read from MH i2c: E2 0B 00 [07:54:26]MH_I2C_Read... [07:54:26]Read from MH i2c: E2 0B 00 A7 1A 00 5A 7B 2B 6D 37 7B 0C F4 90 00 5C [07:54:26]RAPDU: 5A 7B 2B 6D 37 7B 0C F4 90 00 [07:54:26]wFMCommunicate OK [07:54:26]SAM_PROTO_SignData done [07:54:26]FM_MakeSignedData done [07:54:26]CreateOFDProtocolMessage [07:54:26]wFMCommunicate request_size=4 [07:54:26]MH_SAM_APDU [07:54:26]CAPDU: 80 11 00 00 [07:54:26]Write to MH i2c: E2 08 00 A8 1A 80 11 00 00 00 00 00 00 3C [07:54:26]Write i2c OK [07:54:26]MH_I2C_Read... [07:54:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:26]Read from MH i2c: E2 [07:54:26]MH_I2C_Read... [07:54:26]Read from MH i2c: E2 17 00 [07:54:26]MH_I2C_Read... [07:54:26]Read from MH i2c: E2 17 00 A8 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 90 [07:54:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [07:54:26]wFMCommunicate OK [07:54:26]CreateOFDProtocolMessage done [07:54:26]OFDSenderStorePacket 108515 [07:54:26]StoreOFDPacket docnum=108515 [07:54:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 01 00 00 41 AE 08 01 88 5E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 B4 FE F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E3 A7 01 00 35 04 06 00 14 1E 29 87 81 F2 5A 7B 2B 6D 37 7B 0C F4 [07:54:26]CheckFolder [07:54:26]dirname=/storage/ofd_packets [07:54:26]CheckFolder done [07:54:26]ProducePacketName [07:54:26]name=ofd_packets/00108515 [07:54:26]NVStorageSaveData ofd_packets/00108515 [07:54:26]File name is /storage/ofd_packets/00108515 [07:54:26]Write 302 bytes [07:54:26]NVStorageSaveData done [07:54:26]OFDSenderStorePacket done [07:54:26]KKMCreateOFDPacket done [07:54:26]NVStorageSaveData kkm_last_timestamp [07:54:26]File name is /storage/kkm_last_timestamp [07:54:26]Write 4 bytes [07:54:26]NVStorageSaveData done [07:54:26]ExternCall_PrintAddStr [07:54:26]wPrintStart [07:54:26]Write to MH i2c: 01 00 00 A9 1A C3 [07:54:26]Write i2c OK [07:54:26]MH_I2C_Read... [07:54:26]Read from MH i2c: 01 [07:54:26]MH_I2C_Read... [07:54:26]Read from MH i2c: 01 07 00 [07:54:26]MH_I2C_Read... [07:54:26]Read from MH i2c: 01 07 00 A9 1A 00 00 00 00 00 FF 0F D8 [07:54:26]RasterBufferAndPrint [07:54:26]line Счет N : (1)1040671 [07:54:26]line ИНН: 02508201610067 [07:54:26]line Контрольно-Кассовый Чек [07:54:26]line ПРОДАЖА [07:54:26]line ТРК (МРК, ГНК) : 11 [07:54:26]line Товар: 2710124130 [07:54:26]line Super-92-К-5 [07:54:26]line 15.900 * 62.90 [07:54:26]line = 1000.11 [07:54:26]line НДС 12% НСП 1% [07:54:26]line > о реализуемом товаре [07:54:26]line ИТОГО: 1000.11 [07:54:26]line НСП 1% : 8.85 [07:54:26]line НДС 12% : 106.21 [07:54:26]line Наличными: 0.00 [07:54:26]line Безнал.: 1000.11 [07:54:26]line Место: АЗС № 15 "Партнер Нефть" [07:54:26]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [07:54:26]line СНО: Общий режим [07:54:26]line Чек 38 15.03.2024 07:54 [07:54:26]line Смена: 320 ФФД: 1.0 [07:54:26]line ЗНМ: 0300000266 [07:54:26]line РНМ: 0000000000091911 [07:54:26]line Версия ККМ: 001 [07:54:26]line Платежная система: Демир КИ Банк [07:54:26]line ФМ: 0000000000871818 [07:54:26]line ФД: 108515 [07:54:26]line ФПД: 22119778320882 [07:54:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T075428&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108515&fm=22119778320882&tin=02508201610067®Number=0000000000091911&sum=100011 [07:54:26]written 0, free lines is 4095 [07:54:26]OFD Sender: Processing packet 108515 [packets to send 29, broken 28] [07:54:26]ProducePacketName [07:54:26]name=ofd_packets/00108515 [07:54:26]OFD Sender: To server: pG, [07:54:26]CommunicateWithHost lk.salyk.kg:30040 [07:54:26]ConnectInit lk.salyk.kg [07:54:26]Connected sock=9 [07:54: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 31 38 10 01 00 00 41 AE 08 01 88 5E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 B4 FE F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E3 A7 01 00 35 04 06 00 14 1E 29 87 81 F2 5A 7B 2B 6D 37 7B 0C F4 [07:54: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 31 38 4F 00 00 00 6A 7D 47 00 B1 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E3 A7 01 00 F4 03 04 00 54 AA F3 65 B6 04 01 00 00 73 D3 9A 54 09 44 C2 68 [07:54:27]CommunicateWithHost err = 0 [07:54:27]CheckOFDResponse [07:54:27]1017 (14) - 77093643461234 [07:54:27]1041 (16) - 0000000000871818 [07:54:27]1040 (4) - 108515 [07:54:27]1012 (4) - 15.03.2024 01:54 [07:54:27]1206 (1) - 0 [07:54:27]OFD Sender: Remove packet 108515 [07:54:27]ProducePacketName [07:54:27]name=ofd_packets/00108515 [07:54:27]NVStorageDeleteData [07:54:27]Write to MH i2c: 01 00 00 D3 1A ED [07:54:27]Write i2c OK [07:54:27]MH_I2C_Read... [07:54:27]Read from MH i2c: 01 [07:54:27]MH_I2C_Read... [07:54:27]Read from MH i2c: 01 07 00 [07:54:27]MH_I2C_Read... [07:54:27]Read from MH i2c: 01 07 00 D3 1A 00 00 00 00 00 EE 0C EE [07:54:27]RasterBufferAndPrint [07:54:27]line [07:54:27]line [07:54:27]line [07:54:27]line [07:54:27]line [07:54:27]written 0, free lines is 3317 [07:54:27]MH_Cut [07:54:27]Write to MH i2c: D1 01 00 DA 1A 01 C6 [07:54:27]Write i2c OK [07:54:27]MH_I2C_Read... [07:54:27]Read from MH i2c: D1 [07:54:27]MH_I2C_Read... [07:54:27]Read from MH i2c: D1 01 00 [07:54:27]MH_I2C_Read... [07:54:27]Read from MH i2c: D1 01 00 DA 1A 00 C5 [07:54:27]Write to MH i2c: 01 00 00 DB 1A F5 [07:54:27]Write i2c OK [07:54:27]MH_I2C_Read... [07:54:27]OFD Sender: No OFD packet to send [07:54:28]*** Cut start [07:54:28]*** Purtial cut [07:54:28]*** Stage 1: CUTSNS_PIN = 1 [07:54:28]Read from MH i2c: 01 [07:54:28]MH_I2C_Read... [07:54:28]*** Stop cut motor [07:54:28]*** Cut end [07:54:28]Read from MH i2c: 01 07 00 [07:54:28]MH_I2C_Read... [07:54:28]Read from MH i2c: 01 07 00 DB 1A 00 00 00 00 00 FF 0F 0A [07:54:28]process_action close_receipt done [07:54:28]requested_data is exist [07:54:28]produce_requested_data [07:54:28]requested_item fm.sn is exist - process it [07:54:28]wFMCommunicate request_size=4 [07:54:28]MH_SAM_APDU [07:54:28]CAPDU: 80 11 00 00 [07:54:28]Write to MH i2c: E2 08 00 DC 1A 80 11 00 00 00 00 00 00 70 [07:54:28]Write i2c OK [07:54:28]MH_I2C_Read... [07:54:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:28]Read from MH i2c: E2 [07:54:28]MH_I2C_Read... [07:54:28]Read from MH i2c: E2 17 00 [07:54:28]MH_I2C_Read... [07:54:28]Read from MH i2c: E2 17 00 DC 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 C4 [07:54:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [07:54:28]wFMCommunicate OK [07:54:28]requested_item fd.num is exist - process it [07:54:28]SAM_PROTO_GetFieldsCounters [07:54:28]wFMCommunicate request_size=4 [07:54:28]MH_SAM_APDU [07:54:28]CAPDU: 80 13 00 00 [07:54:28]Write to MH i2c: E2 08 00 DD 1A 80 13 00 00 00 00 00 00 73 [07:54:28]Write i2c OK [07:54:28]MH_I2C_Read... [07:54:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:54:28]Read from MH i2c: E2 [07:54:28]MH_I2C_Read... [07:54:28]Read from MH i2c: E2 62 00 [07:54:28]MH_I2C_Read... [07:54:28]Read from MH i2c: E2 62 00 DD 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 E3 A7 01 00 0E 04 04 00 40 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 CF [07:54: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 E3 A7 01 00 0E 04 04 00 40 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 [07:54:28]wFMCommunicate OK [07:54:28]SAM_PROTO_GetFieldsCounters done [07:54:28]requested_item shift.num is exist - process it [07:54:28]requested_item shift.opened is exist - process it [07:54:28]req_shift_opened [07:54:28]FM_GetShiftState [07:54:28]SAM_PROTO_GetShiftState [07:54:28]wFMCommunicate request_size=4 [07:54:28]MH_SAM_APDU [07:54:28]CAPDU: 80 13 01 00 [07:54:28]Write to MH i2c: E2 08 00 DE 1A 80 13 01 00 00 00 00 00 75 [07:54:28]Write i2c OK [07:54:28]MH_I2C_Read... [07:54:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:28]Read from MH i2c: E2 [07:54:28]MH_I2C_Read... [07:54:28]Read from MH i2c: E2 0E 00 [07:54:28]MH_I2C_Read... [07:54:28]Read from MH i2c: E2 0E 00 DE 1A 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 A9 [07:54:28]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [07:54:28]wFMCommunicate OK [07:54:28]SAM_PROTO_GetShiftState done [07:54:28]FM_GetShiftState done [07:54:28]req_shift_opened done [07:54:28]requested_item shift.open_date is exist - process it [07:54:28]req_shift_open_date [07:54:28]req_shift_open_date done [07:54:28]produce_requested_data done [07:54:28]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108515,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [07:54:28]process_action_free close_receipt [07:54:28]json_value_free [07:54:28]json_value_free done [07:54:28]process_json_proto returns [07:54:28]Send response to host [07:54:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108515,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [07:54:28]free response buf [07:54:28]execute_script done [07:54:28]execute_script returns [07:54:28]free content buf [07:54:28]Sock 10.Close socket [07:54:28]Sock 10.Thread stoped [07:54:32]OFD Sender: No OFD packet to send [07:54:37]OFD Sender: No OFD packet to send [07:54:42]OFD Sender: No OFD packet to send [07:54:47]OFD Sender: No OFD packet to send [07:54:52]OFD Sender: No OFD packet to send [07:54:57]OFD Sender: No OFD packet to send [07:55:02]OFD Sender: No OFD packet to send [07:55:07]OFD Sender: No OFD packet to send [07:55:12]OFD Sender: No OFD packet to send [07:55:17]OFD Sender: No OFD packet to send [07:55:22]OFD Sender: No OFD packet to send [07:55:27]OFD Sender: No OFD packet to send [07:55:32]OFD Sender: No OFD packet to send [07:55:37]OFD Sender: No OFD packet to send [07:55:42]OFD Sender: No OFD packet to send [07:55:47]OFD Sender: No OFD packet to send [07:55:52]OFD Sender: No OFD packet to send [07:55:57]OFD Sender: No OFD packet to send [07:56:02]OFD Sender: No OFD packet to send [07:56:07]OFD Sender: No OFD packet to send [07:56:12]OFD Sender: No OFD packet to send [07:56:17]OFD Sender: No OFD packet to send [07:56:22]OFD Sender: No OFD packet to send [07:56:27]OFD Sender: No OFD packet to send [07:56:32]OFD Sender: No OFD packet to send [07:56:37]OFD Sender: No OFD packet to send [07:56:42]OFD Sender: No OFD packet to send [07:56:47]OFD Sender: No OFD packet to send [07:56:52]OFD Sender: No OFD packet to send [07:56:57]OFD Sender: No OFD packet to send [07:57:02]OFD Sender: No OFD packet to send [07:57:07]OFD Sender: No OFD packet to send [07:57:12]OFD Sender: No OFD packet to send [07:57:17]OFD Sender: No OFD packet to send [07:57:22]OFD Sender: No OFD packet to send [07:57:27]OFD Sender: No OFD packet to send [07:57:32]OFD Sender: No OFD packet to send [07:57:37]OFD Sender: No OFD packet to send [07:57:42]OFD Sender: No OFD packet to send [07:57:47]OFD Sender: No OFD packet to send [07:57:52]OFD Sender: No OFD packet to send [07:57:57]OFD Sender: No OFD packet to send [07:58:02]OFD Sender: No OFD packet to send [07:58:07]OFD Sender: No OFD packet to send [07:58:12]OFD Sender: No OFD packet to send [07:58:17]OFD Sender: No OFD packet to send [07:58:22]OFD Sender: No OFD packet to send [07:58:27]OFD Sender: No OFD packet to send [07:58:29]accept exits with 8 [07:58:29]New connection [07:58:29]New thread 3067198820 created [07:58:29]Thread 3067342180 joined [07:58:29]Waiting for new connection... [07:58:29] Sock 8.Parse request [07:58:29]Sock 8.Check first char [07:58:29]Sock 8.First char is OK [07:58:29]request: POST /json_proto HTTP/1.0 [07:58:29]Method: POST [07:58:29]URL: /json_proto [07:58:29]Method is POST - this is cgi request [07:58:29]url: /json_proto [07:58:29]query_string will be loaded in cgi processing [07:58:29]execute_cgi json_proto POST (null) [07:58:29]execute_cgi path=json_proto method=POST [07:58:29]POST find Content-Length [07:58:29]Host: 172.17.32.69:8080 [07:58:29]Content-Length: 687 [07:58:29]Content-Type: application/json [07:58:29] [07:58:29]POST finish read [07:58:29]Found Content-Length = 687 [07:58:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 4", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 21.160, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:58:29]execute_script... [07:58: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)1040672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 4", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 21.160, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:58:29]POST & json_proto [07:58:29]process_json_proto [07:58:29]json parsed OK: [07:58:29]protocol is kg_v1.0 [07:58:29]action value=close_receipt [07:58:29]process_action close_receipt [07:58:29]cmd_close_receipt [07:58:29]MH_GetDate [07:58:29]Write to MH i2c: F0 00 00 DF 1A E8 [07:58:29]Write i2c OK [07:58:29]MH_I2C_Read... [07:58:29]Read from MH i2c: F0 [07:58:29]MH_I2C_Read... [07:58:29]Read from MH i2c: F0 09 00 [07:58:29]MH_I2C_Read... [07:58:29]Read from MH i2c: F0 09 00 DF 1A 00 A9 FF F3 65 D5 0F D3 65 0D [07:58:29]GetLastDocTimeStamp 1710489268 [07:58:29]current date 1710489513 [07:58:29]FM_GetShiftState [07:58:29]SAM_PROTO_GetShiftState [07:58:29]wFMCommunicate request_size=4 [07:58:29]MH_SAM_APDU [07:58:29]CAPDU: 80 13 01 00 [07:58:29]Write to MH i2c: E2 08 00 E0 1A 80 13 01 00 00 00 00 00 77 [07:58:29]Write i2c OK [07:58:29]MH_I2C_Read... [07:58:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:29]Read from MH i2c: E2 [07:58:29]MH_I2C_Read... [07:58:29]Read from MH i2c: E2 0E 00 [07:58:29]MH_I2C_Read... [07:58:29]Read from MH i2c: E2 0E 00 E0 1A 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 AB [07:58:29]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [07:58:29]wFMCommunicate OK [07:58:29]SAM_PROTO_GetShiftState done [07:58:29]FM_GetShiftState done [07:58:29]opened in 1710461757 [07:58:29]opened+sec_in_day 1710548157 [07:58:29]quantity*price = 150024 [07:58:29]sum+1 = 150025 [07:58:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 39 15.03.2024 07:58 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108516 ФПД: 83153788389244 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T075833&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108516&fm=83153788389244&tin=02508201610067®Number=0000000000091911&sum=150000 [07:58:31]StoreToDocumentArchive [07:58:31]shift 320 fd 108516 [07:58:31]save to /storage/0320/doc_00108516 [07:58:31]save last doc name /storage/0320/doc_00108516 to /storage/kkm_last_doc_name [07:58:31]save OK [07:58:31]Clear old archive folders... [07:58:31]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:58:31]tlvbuf is 000EA590 [07:58:31]SAM_PROTO_ClearQueue [07:58:31]wFMCommunicate request_size=4 [07:58:31]MH_SAM_APDU [07:58:31]CAPDU: 80 09 00 00 [07:58:31]Write to MH i2c: E2 08 00 ED 1A 80 09 00 00 00 00 00 00 79 [07:58:31]Write i2c OK [07:58:31]MH_I2C_Read... [07:58:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:58:31]Read from MH i2c: E2 [07:58:31]MH_I2C_Read... [07:58:31]Read from MH i2c: E2 03 00 [07:58:31]MH_I2C_Read... [07:58:31]Read from MH i2c: E2 03 00 ED 1A 00 90 00 7B [07:58:31]RAPDU: 90 00 [07:58:31]wFMCommunicate OK [07:58:31]SAM_PROTO_ClearQueue done [07:58:31]KKMCreateOFDPacket [07:58:31]OFDProtocolAddRootSTLVToBuf [07:58:31]FM_MakeSignedData [07:58:31]FM_MakeSignedData [07:58:31]SAM_PROTO_SignData [07:58:31]wFMCommunicate request_size=4 [07:58:31]MH_SAM_APDU [07:58:31]CAPDU: 80 0D 01 02 [07:58:31]Write to MH i2c: E2 08 00 EE 1A 80 0D 01 02 00 00 00 00 81 [07:58:31]Write i2c OK [07:58:31]MH_I2C_Read... [07:58:31]Read from MH i2c: E2 [07:58:31]MH_I2C_Read... [07:58:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:58:31]Read from MH i2c: E2 03 00 [07:58:31]MH_I2C_Read... [07:58:31]Read from MH i2c: E2 03 00 EE 1A 00 90 00 7C [07:58:31]RAPDU: 90 00 [07:58:31]wFMCommunicate OK [07:58:31]wFMCommunicate request_size=255 [07:58:31]MH_SAM_APDU [07:58:31]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A8 52 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 A9 FF F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E4 A7 01 00 35 04 06 00 [07:58:31]Write to MH i2c: E2 02 01 EF 1A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A8 52 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 A9 FF F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E4 A7 01 00 35 04 06 00 00 00 F7 [07:58:31]Write i2c OK [07:58:31]MH_I2C_Read... [07:58:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:31]Read from MH i2c: E2 [07:58:31]MH_I2C_Read... [07:58:31]Read from MH i2c: E2 03 00 [07:58:31]MH_I2C_Read... [07:58:31]Read from MH i2c: E2 03 00 EF 1A 00 90 00 7D [07:58:31]RAPDU: 90 00 [07:58:31]wFMCommunicate OK [07:58:31]wFMCommunicate request_size=11 [07:58:31]MH_SAM_APDU [07:58:31]CAPDU: 80 0D 02 02 06 4B A0 C0 04 C7 7C [07:58:31]Write to MH i2c: E2 0E 00 F0 1A 80 0D 02 02 06 00 4B A0 C0 04 C7 7C 00 00 82 [07:58:31]Write i2c OK [07:58:31]MH_I2C_Read... [07:58:31]Read from MH i2c: E2 [07:58:31]MH_I2C_Read... [07:58:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:31]Read from MH i2c: E2 03 00 [07:58:31]MH_I2C_Read... [07:58:31]Read from MH i2c: E2 03 00 F0 1A 00 90 00 7E [07:58:31]RAPDU: 90 00 [07:58:31]wFMCommunicate OK [07:58:31]wFMCommunicate request_size=4 [07:58:31]MH_SAM_APDU [07:58:31]CAPDU: 80 0D 03 02 [07:58:31]Write to MH i2c: E2 08 00 F1 1A 80 0D 03 02 00 00 00 00 86 [07:58:31]Write i2c OK [07:58:31]MH_I2C_Read... [07:58:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:58:31]Read from MH i2c: E2 [07:58:31]MH_I2C_Read... [07:58:31]Read from MH i2c: E2 0B 00 [07:58:31]MH_I2C_Read... [07:58:31]Read from MH i2c: E2 0B 00 F1 1A 00 61 7F E2 93 BD 17 D5 FC 90 00 81 [07:58:31]RAPDU: 61 7F E2 93 BD 17 D5 FC 90 00 [07:58:31]wFMCommunicate OK [07:58:31]SAM_PROTO_SignData done [07:58:31]FM_MakeSignedData done [07:58:31]CreateOFDProtocolMessage [07:58:31]wFMCommunicate request_size=4 [07:58:31]MH_SAM_APDU [07:58:31]CAPDU: 80 11 00 00 [07:58:31]Write to MH i2c: E2 08 00 F2 1A 80 11 00 00 00 00 00 00 86 [07:58:31]Write i2c OK [07:58:31]MH_I2C_Read... [07:58:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:31]Read from MH i2c: E2 [07:58:31]MH_I2C_Read... [07:58:31]Read from MH i2c: E2 17 00 [07:58:31]MH_I2C_Read... [07:58:31]Read from MH i2c: E2 17 00 F2 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 DA [07:58:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [07:58:31]wFMCommunicate OK [07:58:31]CreateOFDProtocolMessage done [07:58:31]OFDSenderStorePacket 108516 [07:58:31]StoreOFDPacket docnum=108516 [07:58:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 01 00 00 05 8A 08 01 63 DE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A8 52 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 A9 FF F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E4 A7 01 00 35 04 06 00 4B A0 C0 04 C7 7C 61 7F E2 93 BD 17 D5 FC [07:58:31]CheckFolder [07:58:31]dirname=/storage/ofd_packets [07:58:31]CheckFolder done [07:58:31]ProducePacketName [07:58:31]name=ofd_packets/00108516 [07:58:31]NVStorageSaveData ofd_packets/00108516 [07:58:31]File name is /storage/ofd_packets/00108516 [07:58:31]Write 302 bytes [07:58:31]NVStorageSaveData done [07:58:31]OFDSenderStorePacket done [07:58:31]KKMCreateOFDPacket done [07:58:31]NVStorageSaveData kkm_last_timestamp [07:58:31]File name is /storage/kkm_last_timestamp [07:58:31]Write 4 bytes [07:58:31]NVStorageSaveData done [07:58:31]ExternCall_PrintAddStr [07:58:31]wPrintStart [07:58:31]Write to MH i2c: 01 00 00 F3 1A 0D [07:58:31]Write i2c OK [07:58:31]MH_I2C_Read... [07:58:31]Read from MH i2c: 01 [07:58:31]MH_I2C_Read... [07:58:31]Read from MH i2c: 01 07 00 [07:58:31]MH_I2C_Read... [07:58:31]Read from MH i2c: 01 07 00 F3 1A 00 00 00 00 00 FF 0F 22 [07:58:31]RasterBufferAndPrint [07:58:31]line Счет N : (1)1040672 [07:58:31]line ИНН: 02508201610067 [07:58:31]line Контрольно-Кассовый Чек [07:58:31]line ПРОДАЖА [07:58:31]line ТРК (МРК, ГНК) : 4 [07:58:31]line Товар: 2710194210 [07:58:31]line ДТ(л)-К-5 [07:58:31]line 21.160 * 70.90 [07:58:31]line = 1500.24 [07:58:31]line НДС 12% НСП 1% [07:58:31]line > о реализуемом товаре [07:58:31]line ОКРУГЛЕНИЕ: -0.24 [07:58:31]line ИТОГО: 1500.00 [07:58:31]line Внесено: 1500.00 [07:58:31]line СДАЧА: 0.00 [07:58:31]line НСП 1% : 13.28 [07:58:31]line НДС 12% : 159.32 [07:58:31]line Наличными: 1500.00 [07:58:31]line Безнал.: 0.00 [07:58:31]line Место: АЗС № 15 "Партнер Нефть" [07:58:31]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [07:58:31]line СНО: Общий режим [07:58:31]line Чек 39 15.03.2024 07:58 [07:58:31]line Смена: 320 ФФД: 1.0 [07:58:31]line ЗНМ: 0300000266 [07:58:31]line РНМ: 0000000000091911 [07:58:31]line Версия ККМ: 001 [07:58:31]line ФМ: 0000000000871818 [07:58:31]line ФД: 108516 [07:58:31]line ФПД: 83153788389244 [07:58:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T075833&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108516&fm=83153788389244&tin=02508201610067®Number=0000000000091911&sum=150000 [07:58:31]written 0, free lines is 4095 [07:58:31]OFD Sender: Processing packet 108516 [packets to send 29, broken 28] [07:58:31]ProducePacketName [07:58:31]name=ofd_packets/00108516 [07:58:31]OFD Sender: To server: pG, [07:58:31]CommunicateWithHost lk.salyk.kg:30040 [07:58:31]ConnectInit lk.salyk.kg [07:58:31]Connected sock=10 [07:58: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 31 38 10 01 00 00 05 8A 08 01 63 DE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A8 52 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 A9 FF F3 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E4 A7 01 00 35 04 06 00 4B A0 C0 04 C7 7C 61 7F E2 93 BD 17 D5 FC [07:58: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 31 38 4F 00 00 00 BA 1C 47 00 D3 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E4 A7 01 00 F4 03 04 00 49 AB F3 65 B6 04 01 00 00 A6 E9 38 F2 F6 A5 D3 A5 [07:58:31]CommunicateWithHost err = 0 [07:58:31]CheckOFDResponse [07:58:31]1017 (14) - 77093643461234 [07:58:31]1041 (16) - 0000000000871818 [07:58:31]1040 (4) - 108516 [07:58:31]1012 (4) - 15.03.2024 01:58 [07:58:31]1206 (1) - 0 [07:58:31]OFD Sender: Remove packet 108516 [07:58:31]ProducePacketName [07:58:31]name=ofd_packets/00108516 [07:58:31]NVStorageDeleteData [07:58:31]Write to MH i2c: 01 00 00 1E 1B 39 [07:58:31]Write i2c OK [07:58:31]MH_I2C_Read... [07:58:31]Read from MH i2c: 01 [07:58:31]MH_I2C_Read... [07:58:31]Read from MH i2c: 01 07 00 [07:58:31]MH_I2C_Read... [07:58:31]Read from MH i2c: 01 07 00 1E 1B 00 00 00 00 00 CD 0C 19 [07:58:31]RasterBufferAndPrint [07:58:31]line [07:58:31]line [07:58:31]line [07:58:31]line [07:58:31]line [07:58:31]written 0, free lines is 3284 [07:58:31]MH_Cut [07:58:31]Write to MH i2c: D1 01 00 25 1B 01 12 [07:58:31]Write i2c OK [07:58:31]MH_I2C_Read... [07:58:31]Read from MH i2c: D1 [07:58:31]MH_I2C_Read... [07:58:31]Read from MH i2c: D1 01 00 [07:58:31]MH_I2C_Read... [07:58:31]Read from MH i2c: D1 01 00 25 1B 00 11 [07:58:31]Write to MH i2c: 01 00 00 26 1B 41 [07:58:31]Write i2c OK [07:58:31]MH_I2C_Read... [07:58:32]OFD Sender: No OFD packet to send [07:58:32]*** Cut start [07:58:32]*** Purtial cut [07:58:32]*** Stage 1: CUTSNS_PIN = 1 [07:58:33]Read from MH i2c: 01 [07:58:33]MH_I2C_Read... [07:58:33]*** Stop cut motor [07:58:33]*** Cut end [07:58:33]Read from MH i2c: 01 07 00 [07:58:33]MH_I2C_Read... [07:58:33]Read from MH i2c: 01 07 00 26 1B 00 00 00 00 00 FF 0F 56 [07:58:33]process_action close_receipt done [07:58:33]requested_data is exist [07:58:33]produce_requested_data [07:58:33]requested_item fm.sn is exist - process it [07:58:33]wFMCommunicate request_size=4 [07:58:33]MH_SAM_APDU [07:58:33]CAPDU: 80 11 00 00 [07:58:33]Write to MH i2c: E2 08 00 27 1B 80 11 00 00 00 00 00 00 BC [07:58:33]Write i2c OK [07:58:33]MH_I2C_Read... [07:58:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:33]Read from MH i2c: E2 [07:58:33]MH_I2C_Read... [07:58:33]Read from MH i2c: E2 17 00 [07:58:33]MH_I2C_Read... [07:58:33]Read from MH i2c: E2 17 00 27 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 10 [07:58:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [07:58:33]wFMCommunicate OK [07:58:33]requested_item fd.num is exist - process it [07:58:33]SAM_PROTO_GetFieldsCounters [07:58:33]wFMCommunicate request_size=4 [07:58:33]MH_SAM_APDU [07:58:33]CAPDU: 80 13 00 00 [07:58:33]Write to MH i2c: E2 08 00 28 1B 80 13 00 00 00 00 00 00 BF [07:58:33]Write i2c OK [07:58:33]MH_I2C_Read... [07:58:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:58:33]Read from MH i2c: E2 [07:58:33]MH_I2C_Read... [07:58:33]Read from MH i2c: E2 62 00 [07:58:33]MH_I2C_Read... [07:58:33]Read from MH i2c: E2 62 00 28 1B 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 E4 A7 01 00 0E 04 04 00 40 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 1F [07:58: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 E4 A7 01 00 0E 04 04 00 40 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 [07:58:33]wFMCommunicate OK [07:58:33]SAM_PROTO_GetFieldsCounters done [07:58:33]requested_item shift.num is exist - process it [07:58:33]requested_item shift.opened is exist - process it [07:58:33]req_shift_opened [07:58:33]FM_GetShiftState [07:58:33]SAM_PROTO_GetShiftState [07:58:33]wFMCommunicate request_size=4 [07:58:33]MH_SAM_APDU [07:58:33]CAPDU: 80 13 01 00 [07:58:33]Write to MH i2c: E2 08 00 29 1B 80 13 01 00 00 00 00 00 C1 [07:58:33]Write i2c OK [07:58:33]MH_I2C_Read... [07:58:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:33]Read from MH i2c: E2 [07:58:33]MH_I2C_Read... [07:58:33]Read from MH i2c: E2 0E 00 [07:58:33]MH_I2C_Read... [07:58:33]Read from MH i2c: E2 0E 00 29 1B 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 F5 [07:58:33]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [07:58:33]wFMCommunicate OK [07:58:33]SAM_PROTO_GetShiftState done [07:58:33]FM_GetShiftState done [07:58:33]req_shift_opened done [07:58:33]requested_item shift.open_date is exist - process it [07:58:33]req_shift_open_date [07:58:33]req_shift_open_date done [07:58:33]produce_requested_data done [07:58:33]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108516,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [07:58:33]process_action_free close_receipt [07:58:33]json_value_free [07:58:33]json_value_free done [07:58:33]process_json_proto returns [07:58:33]Send response to host [07:58:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108516,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [07:58:33]free response buf [07:58:33]execute_script done [07:58:33]execute_script returns [07:58:33]free content buf [07:58:33]Sock 8.Close socket [07:58:33]Sock 8.Thread stoped [07:58:37]OFD Sender: No OFD packet to send [07:58:42]OFD Sender: No OFD packet to send [07:58:47]OFD Sender: No OFD packet to send [07:58:52]OFD Sender: No OFD packet to send [07:58:57]OFD Sender: No OFD packet to send [07:59:02]OFD Sender: No OFD packet to send [07:59:07]OFD Sender: No OFD packet to send [07:59:12]OFD Sender: No OFD packet to send [07:59:17]OFD Sender: No OFD packet to send [07:59:22]OFD Sender: No OFD packet to send [07:59:27]OFD Sender: No OFD packet to send [07:59:32]OFD Sender: No OFD packet to send [07:59:37]OFD Sender: No OFD packet to send [07:59:42]OFD Sender: No OFD packet to send [07:59:47]OFD Sender: No OFD packet to send [07:59:52]OFD Sender: No OFD packet to send [07:59:57]OFD Sender: No OFD packet to send [08:00:02]OFD Sender: No OFD packet to send [08:00:07]OFD Sender: No OFD packet to send [08:00:12]OFD Sender: No OFD packet to send [08:00:17]OFD Sender: No OFD packet to send [08:00:22]OFD Sender: No OFD packet to send [08:00:27]OFD Sender: No OFD packet to send [08:00:32]OFD Sender: No OFD packet to send [08:00:37]OFD Sender: No OFD packet to send [08:00:42]OFD Sender: No OFD packet to send [08:00:47]OFD Sender: No OFD packet to send [08:00:52]OFD Sender: No OFD packet to send [08:00:57]OFD Sender: No OFD packet to send [08:01:02]OFD Sender: No OFD packet to send [08:01:07]OFD Sender: No OFD packet to send [08:01:12]OFD Sender: No OFD packet to send [08:01:17]OFD Sender: No OFD packet to send [08:01:22]OFD Sender: No OFD packet to send [08:01:27]OFD Sender: No OFD packet to send [08:01:32]OFD Sender: No OFD packet to send [08:01:37]OFD Sender: No OFD packet to send [08:01:42]OFD Sender: No OFD packet to send [08:01:47]OFD Sender: No OFD packet to send [08:01:52]OFD Sender: No OFD packet to send [08:01:57]OFD Sender: No OFD packet to send [08:02:02]OFD Sender: No OFD packet to send [08:02:07]OFD Sender: No OFD packet to send [08:02:12]OFD Sender: No OFD packet to send [08:02:17]OFD Sender: No OFD packet to send [08:02:22]OFD Sender: No OFD packet to send [08:02:27]OFD Sender: No OFD packet to send [08:02:32]OFD Sender: No OFD packet to send [08:02:37]OFD Sender: No OFD packet to send [08:02:42]OFD Sender: No OFD packet to send [08:02:47]OFD Sender: No OFD packet to send [08:02:52]OFD Sender: No OFD packet to send [08:02:57]OFD Sender: No OFD packet to send [08:03:02]OFD Sender: No OFD packet to send [08:03:07]OFD Sender: No OFD packet to send [08:03:12]OFD Sender: No OFD packet to send [08:03:17]OFD Sender: No OFD packet to send [08:03:22]OFD Sender: No OFD packet to send [08:03:27]OFD Sender: No OFD packet to send [08:03:32]OFD Sender: No OFD packet to send [08:03:37]OFD Sender: No OFD packet to send [08:03:42]OFD Sender: No OFD packet to send [08:03:47]OFD Sender: No OFD packet to send [08:03:52]OFD Sender: No OFD packet to send [08:03:57]OFD Sender: No OFD packet to send [08:04:02]OFD Sender: No OFD packet to send [08:04:07]OFD Sender: No OFD packet to send [08:04:12]OFD Sender: No OFD packet to send [08:04:17]OFD Sender: No OFD packet to send [08:04:22]OFD Sender: No OFD packet to send [08:04:27]OFD Sender: No OFD packet to send [08:04:32]OFD Sender: No OFD packet to send [08:04:37]OFD Sender: No OFD packet to send [08:04:42]OFD Sender: No OFD packet to send [08:04:47]OFD Sender: No OFD packet to send [08:04:52]OFD Sender: No OFD packet to send [08:04:55]accept exits with 9 [08:04:55]New connection [08:04:55]New thread 3067342180 created [08:04:55]Thread 3067198820 joined [08:04:55]Waiting for new connection... [08:04:55] Sock 9.Parse request [08:04:55]Sock 9.Check first char [08:04:55]Sock 9.First char is OK [08:04:55]request: POST /json_proto HTTP/1.0 [08:04:55]Method: POST [08:04:55]URL: /json_proto [08:04:55]Method is POST - this is cgi request [08:04:55]url: /json_proto [08:04:55]query_string will be loaded in cgi processing [08:04:55]execute_cgi json_proto POST (null) [08:04:55]execute_cgi path=json_proto method=POST [08:04:55]POST find Content-Length [08:04:55]Host: 172.17.32.69:8080 [08:04:55]Content-Length: 1167 [08:04:55]Content-Type: application/json [08:04:55] [08:04:55]POST finish read [08:04:55]Found Content-Length = 1167 [08:04:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040675\u000A15.03.2024 07:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 73\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 8.080 x 61.90\u000A\u0418\u0422\u041E\u0413: 500.15\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A861537\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:55]execute_script... [08:04:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040675\u000A15.03.2024 07:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 73\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 8.080 x 61.90\u000A\u0418\u0422\u041E\u0413: 500.15\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A861537\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:55]POST & json_proto [08:04:55]process_json_proto [08:04:55]json parsed OK: [08:04:55]protocol is kg_v1.0 [08:04:55]action value=print_text [08:04:55]process_action print_text [08:04:55]cmd_print_text [08:04:55]ExternCall_PrintAddStr [08:04:55]wPrintStart [08:04:55]Write to MH i2c: 01 00 00 2A 1B 45 [08:04:55]Write i2c OK [08:04:55]MH_I2C_Read... [08:04:55]Read from MH i2c: 01 [08:04:55]MH_I2C_Read... [08:04:55]Read from MH i2c: 01 07 00 [08:04:55]MH_I2C_Read... [08:04:55]Read from MH i2c: 01 07 00 2A 1B 00 00 00 00 00 FF 0F 5A [08:04:55]RasterBufferAndPrint [08:04:55]line *****ТОВАРНЫЙ ЧЕК***** [08:04:55]line АЗС 15 [08:04:55]line Партнер нефть [08:04:55]line 02508201610067 [08:04:55]line Кассир : Максатбек у Д. [08:04:55]line Счет N : (1)1040675 [08:04:55]line 15.03.2024 07:57 [08:04:55]line ПРОДАЖА [08:04:55]line ТРК (МРК, ГНК): 73 [08:04:55]line Вид ГСМ : 2710124130 [08:04:55]line Аи-92-К-5 [08:04:55]line 8.080 x 61.90 [08:04:55]line ИТОГ: 500.15 [08:04:55]line Тип оплаты: Талоны: ТК ГПНА Online [08:04:55]line 861537 [08:04:55]line ______________________ [08:04:55]line (подпись) [08:04:55]written 0, free lines is 4095 [08:04:55]Write to MH i2c: 01 00 00 3F 1B 5A [08:04:55]Write i2c OK [08:04:55]MH_I2C_Read... [08:04:55]Read from MH i2c: 01 [08:04:55]MH_I2C_Read... [08:04:55]Read from MH i2c: 01 07 00 [08:04:55]MH_I2C_Read... [08:04:55]Read from MH i2c: 01 07 00 3F 1B 00 00 00 00 00 F4 0D 62 [08:04:55]RasterBufferAndPrint [08:04:55]line [08:04:55]line [08:04:55]line [08:04:55]line [08:04:55]line [08:04:55]written 0, free lines is 3573 [08:04:55]MH_Cut [08:04:55]Write to MH i2c: D1 01 00 46 1B 01 33 [08:04:55]Write i2c OK [08:04:55]MH_I2C_Read... [08:04:55]Read from MH i2c: D1 [08:04:55]MH_I2C_Read... [08:04:55]Read from MH i2c: D1 01 00 [08:04:55]MH_I2C_Read... [08:04:55]Read from MH i2c: D1 01 00 46 1B 00 32 [08:04:55]Write to MH i2c: 01 00 00 47 1B 62 [08:04:55]Write i2c OK [08:04:55]MH_I2C_Read... [08:04:55]*** Cut start [08:04:55]*** Purtial cut [08:04:55]*** Stage 1: CUTSNS_PIN = 1 [08:04:56]Read from MH i2c: 01 [08:04:56]MH_I2C_Read... [08:04:56]*** Stop cut motor [08:04:56]*** Cut end [08:04:56]Read from MH i2c: 01 07 00 [08:04:56]MH_I2C_Read... [08:04:56]Read from MH i2c: 01 07 00 47 1B 00 00 00 00 00 FF 0F 77 [08:04:56]process_action print_text done [08:04:56]requested_data is exist [08:04:56]produce_requested_data [08:04:56]requested_item fm.sn is exist - process it [08:04:56]wFMCommunicate request_size=4 [08:04:56]MH_SAM_APDU [08:04:56]CAPDU: 80 11 00 00 [08:04:56]Write to MH i2c: E2 08 00 48 1B 80 11 00 00 00 00 00 00 DD [08:04:56]Write i2c OK [08:04:56]MH_I2C_Read... [08:04:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:56]Read from MH i2c: E2 [08:04:56]MH_I2C_Read... [08:04:56]Read from MH i2c: E2 17 00 [08:04:56]MH_I2C_Read... [08:04:56]Read from MH i2c: E2 17 00 48 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 31 [08:04:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:04:56]wFMCommunicate OK [08:04:56]requested_item fd.num is exist - process it [08:04:56]SAM_PROTO_GetFieldsCounters [08:04:56]wFMCommunicate request_size=4 [08:04:56]MH_SAM_APDU [08:04:56]CAPDU: 80 13 00 00 [08:04:56]Write to MH i2c: E2 08 00 49 1B 80 13 00 00 00 00 00 00 E0 [08:04:56]Write i2c OK [08:04:56]MH_I2C_Read... [08:04:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:04:56]Read from MH i2c: E2 [08:04:56]MH_I2C_Read... [08:04:56]Read from MH i2c: E2 62 00 [08:04:56]MH_I2C_Read... [08:04:56]Read from MH i2c: E2 62 00 49 1B 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 E4 A7 01 00 0E 04 04 00 40 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 40 [08:04: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 E4 A7 01 00 0E 04 04 00 40 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 [08:04:56]wFMCommunicate OK [08:04:56]SAM_PROTO_GetFieldsCounters done [08:04:56]requested_item shift.num is exist - process it [08:04:56]requested_item shift.opened is exist - process it [08:04:56]req_shift_opened [08:04:56]FM_GetShiftState [08:04:56]SAM_PROTO_GetShiftState [08:04:56]wFMCommunicate request_size=4 [08:04:56]MH_SAM_APDU [08:04:56]CAPDU: 80 13 01 00 [08:04:56]Write to MH i2c: E2 08 00 4A 1B 80 13 01 00 00 00 00 00 E2 [08:04:56]Write i2c OK [08:04:56]MH_I2C_Read... [08:04:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:56]Read from MH i2c: E2 [08:04:56]MH_I2C_Read... [08:04:56]Read from MH i2c: E2 0E 00 [08:04:56]MH_I2C_Read... [08:04:56]Read from MH i2c: E2 0E 00 4A 1B 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 16 [08:04:56]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:04:56]wFMCommunicate OK [08:04:56]SAM_PROTO_GetShiftState done [08:04:56]FM_GetShiftState done [08:04:56]req_shift_opened done [08:04:56]requested_item shift.open_date is exist - process it [08:04:56]req_shift_open_date [08:04:56]req_shift_open_date done [08:04:56]produce_requested_data done [08:04:56]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108516,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [08:04:56]process_action_free print_text [08:04:56]json_value_free [08:04:56]json_value_free done [08:04:56]process_json_proto returns [08:04:56]Send response to host [08:04:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108516,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [08:04:56]free response buf [08:04:56]execute_script done [08:04:56]execute_script returns [08:04:56]free content buf [08:04:56]Sock 9.Close socket [08:04:56]Sock 9.Thread stoped [08:04:57]OFD Sender: No OFD packet to send [08:05:02]OFD Sender: No OFD packet to send [08:05:07]OFD Sender: No OFD packet to send [08:05:12]OFD Sender: No OFD packet to send [08:05:17]OFD Sender: No OFD packet to send [08:05:22]OFD Sender: No OFD packet to send [08:05:22]accept exits with 8 [08:05:22]New connection [08:05:22]New thread 3067198820 created [08:05:22]Thread 3067342180 joined [08:05:22]Waiting for new connection... [08:05:22] Sock 8.Parse request [08:05:22]Sock 8.Check first char [08:05:22]Sock 8.First char is OK [08:05:22]request: POST /json_proto HTTP/1.0 [08:05:22]Method: POST [08:05:22]URL: /json_proto [08:05:22]Method is POST - this is cgi request [08:05:22]url: /json_proto [08:05:22]query_string will be loaded in cgi processing [08:05:22]execute_cgi json_proto POST (null) [08:05:22]execute_cgi path=json_proto method=POST [08:05:22]POST find Content-Length [08:05:22]Host: 172.17.32.69:8080 [08:05:22]Content-Length: 683 [08:05:22]Content-Type: application/json [08:05:22] [08:05:22]POST finish read [08:05:22]Found Content-Length = 683 [08:05:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:05:22]execute_script... [08:05:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:05:22]POST & json_proto [08:05:22]process_json_proto [08:05:22]json parsed OK: [08:05:22]protocol is kg_v1.0 [08:05:22]action value=close_receipt [08:05:22]process_action close_receipt [08:05:22]cmd_close_receipt [08:05:22]MH_GetDate [08:05:22]Write to MH i2c: F0 00 00 4B 1B 55 [08:05:22]Write i2c OK [08:05:22]MH_I2C_Read... [08:05:22]Read from MH i2c: F0 [08:05:22]MH_I2C_Read... [08:05:22]Read from MH i2c: F0 09 00 [08:05:22]MH_I2C_Read... [08:05:22]Read from MH i2c: F0 09 00 4B 1B 00 46 01 F4 65 D5 0F D3 65 1A [08:05:22]GetLastDocTimeStamp 1710489513 [08:05:22]current date 1710489926 [08:05:22]FM_GetShiftState [08:05:22]SAM_PROTO_GetShiftState [08:05:22]wFMCommunicate request_size=4 [08:05:22]MH_SAM_APDU [08:05:22]CAPDU: 80 13 01 00 [08:05:22]Write to MH i2c: E2 08 00 4C 1B 80 13 01 00 00 00 00 00 E4 [08:05:22]Write i2c OK [08:05:22]MH_I2C_Read... [08:05:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:22]Read from MH i2c: E2 [08:05:22]MH_I2C_Read... [08:05:22]Read from MH i2c: E2 0E 00 [08:05:22]MH_I2C_Read... [08:05:22]Read from MH i2c: E2 0E 00 4C 1B 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 18 [08:05:22]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:05:22]wFMCommunicate OK [08:05:22]SAM_PROTO_GetShiftState done [08:05:22]FM_GetShiftState done [08:05:22]opened in 1710461757 [08:05:22]opened+sec_in_day 1710548157 [08:05:22]quantity*price = 100030 [08:05:22]sum+1 = 100031 [08:05:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 40 15.03.2024 08:05 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108517 ФПД: 242938234128045 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T080526&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108517&fm=242938234128045&tin=02508201610067®Number=0000000000091911&sum=100000 [08:05:23]StoreToDocumentArchive [08:05:23]shift 320 fd 108517 [08:05:23]save to /storage/0320/doc_00108517 [08:05:23]save last doc name /storage/0320/doc_00108517 to /storage/kkm_last_doc_name [08:05:23]save OK [08:05:23]Clear old archive folders... [08:05:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:05:23]tlvbuf is 0009D1E0 [08:05:23]SAM_PROTO_ClearQueue [08:05:23]wFMCommunicate request_size=4 [08:05:23]MH_SAM_APDU [08:05:23]CAPDU: 80 09 00 00 [08:05:23]Write to MH i2c: E2 08 00 59 1B 80 09 00 00 00 00 00 00 E6 [08:05:23]Write i2c OK [08:05:23]MH_I2C_Read... [08:05:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:05:23]Read from MH i2c: E2 [08:05:23]MH_I2C_Read... [08:05:23]Read from MH i2c: E2 03 00 [08:05:23]MH_I2C_Read... [08:05:23]Read from MH i2c: E2 03 00 59 1B 00 90 00 E8 [08:05:23]RAPDU: 90 00 [08:05:23]wFMCommunicate OK [08:05:23]SAM_PROTO_ClearQueue done [08:05:23]KKMCreateOFDPacket [08:05:23]OFDProtocolAddRootSTLVToBuf [08:05:23]FM_MakeSignedData [08:05:23]FM_MakeSignedData [08:05:23]SAM_PROTO_SignData [08:05:23]wFMCommunicate request_size=4 [08:05:23]MH_SAM_APDU [08:05:23]CAPDU: 80 0D 01 02 [08:05:23]Write to MH i2c: E2 08 00 5A 1B 80 0D 01 02 00 00 00 00 EE [08:05:23]Write i2c OK [08:05:23]MH_I2C_Read... [08:05:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:05:23]Read from MH i2c: E2 [08:05:23]MH_I2C_Read... [08:05:23]Read from MH i2c: E2 03 00 [08:05:23]MH_I2C_Read... [08:05:23]Read from MH i2c: E2 03 00 5A 1B 00 90 00 E9 [08:05:23]RAPDU: 90 00 [08:05:23]wFMCommunicate OK [08:05:23]wFMCommunicate request_size=255 [08:05:23]MH_SAM_APDU [08:05:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 46 01 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E5 A7 01 00 35 04 06 00 DC [08:05:23]Write to MH i2c: E2 02 01 5B 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 46 01 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E5 A7 01 00 35 04 06 00 DC 00 00 BF [08:05:23]Write i2c OK [08:05:23]MH_I2C_Read... [08:05:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:24]Read from MH i2c: E2 [08:05:24]MH_I2C_Read... [08:05:24]Read from MH i2c: E2 03 00 [08:05:24]MH_I2C_Read... [08:05:24]Read from MH i2c: E2 03 00 5B 1B 00 90 00 EA [08:05:24]RAPDU: 90 00 [08:05:24]wFMCommunicate OK [08:05:24]wFMCommunicate request_size=10 [08:05:24]MH_SAM_APDU [08:05:24]CAPDU: 80 0D 02 02 05 F3 77 25 C6 AD [08:05:24]Write to MH i2c: E2 0D 00 5C 1B 80 0D 02 02 05 00 F3 77 25 C6 AD 00 00 FD [08:05:24]Write i2c OK [08:05:24]MH_I2C_Read... [08:05:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:24]Read from MH i2c: E2 [08:05:24]MH_I2C_Read... [08:05:24]Read from MH i2c: E2 03 00 [08:05:24]MH_I2C_Read... [08:05:24]Read from MH i2c: E2 03 00 5C 1B 00 90 00 EB [08:05:24]RAPDU: 90 00 [08:05:24]wFMCommunicate OK [08:05:24]wFMCommunicate request_size=4 [08:05:24]MH_SAM_APDU [08:05:24]CAPDU: 80 0D 03 02 [08:05:24]Write to MH i2c: E2 08 00 5D 1B 80 0D 03 02 00 00 00 00 F3 [08:05:24]Write i2c OK [08:05:24]MH_I2C_Read... [08:05:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:05:24]Read from MH i2c: E2 [08:05:24]MH_I2C_Read... [08:05:24]Read from MH i2c: E2 0B 00 [08:05:24]MH_I2C_Read... [08:05:24]Read from MH i2c: E2 0B 00 5D 1B 00 67 B8 27 FD 79 00 36 B5 90 00 9B [08:05:24]RAPDU: 67 B8 27 FD 79 00 36 B5 90 00 [08:05:24]wFMCommunicate OK [08:05:24]SAM_PROTO_SignData done [08:05:24]FM_MakeSignedData done [08:05:24]CreateOFDProtocolMessage [08:05:24]wFMCommunicate request_size=4 [08:05:24]MH_SAM_APDU [08:05:24]CAPDU: 80 11 00 00 [08:05:24]Write to MH i2c: E2 08 00 5E 1B 80 11 00 00 00 00 00 00 F3 [08:05:24]Write i2c OK [08:05:24]MH_I2C_Read... [08:05:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:24]Read from MH i2c: E2 [08:05:24]MH_I2C_Read... [08:05:24]Read from MH i2c: E2 17 00 [08:05:24]MH_I2C_Read... [08:05:24]Read from MH i2c: E2 17 00 5E 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 47 [08:05:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:05:24]wFMCommunicate OK [08:05:24]CreateOFDProtocolMessage done [08:05:24]OFDSenderStorePacket 108517 [08:05:24]StoreOFDPacket docnum=108517 [08:05:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 32 94 07 01 A0 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 46 01 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E5 A7 01 00 35 04 06 00 DC F3 77 25 C6 AD 67 B8 27 FD 79 00 36 B5 [08:05:24]CheckFolder [08:05:24]dirname=/storage/ofd_packets [08:05:24]CheckFolder done [08:05:24]ProducePacketName [08:05:24]name=ofd_packets/00108517 [08:05:24]NVStorageSaveData ofd_packets/00108517 [08:05:24]File name is /storage/ofd_packets/00108517 [08:05:24]Write 301 bytes [08:05:24]NVStorageSaveData done [08:05:24]OFDSenderStorePacket done [08:05:24]KKMCreateOFDPacket done [08:05:24]NVStorageSaveData kkm_last_timestamp [08:05:24]File name is /storage/kkm_last_timestamp [08:05:24]Write 4 bytes [08:05:24]NVStorageSaveData done [08:05:24]ExternCall_PrintAddStr [08:05:24]wPrintStart [08:05:24]Write to MH i2c: 01 00 00 5F 1B 7A [08:05:24]Write i2c OK [08:05:24]MH_I2C_Read... [08:05:24]Read from MH i2c: 01 [08:05:24]MH_I2C_Read... [08:05:24]Read from MH i2c: 01 07 00 [08:05:24]MH_I2C_Read... [08:05:24]Read from MH i2c: 01 07 00 5F 1B 00 00 00 00 00 FF 0F 8F [08:05:24]RasterBufferAndPrint [08:05:24]line Счет N : (1)1040674 [08:05:24]line ИНН: 02508201610067 [08:05:24]line Контрольно-Кассовый Чек [08:05:24]line ПРОДАЖА [08:05:24]line ТРК (МРК, ГНК) : 43 [08:05:24]line Товар: 2710124130 [08:05:24]line Аи-92-К-5 [08:05:24]line 16.160 * 61.90 [08:05:24]line = 1000.30 [08:05:24]line НДС 12% НСП 1% [08:05:24]line > о реализуемом товаре [08:05:24]line ОКРУГЛЕНИЕ: -0.30 [08:05:24]line ИТОГО: 1000.00 [08:05:24]line Внесено: 1000.00 [08:05:24]line СДАЧА: 0.00 [08:05:24]line НСП 1% : 8.85 [08:05:24]line НДС 12% : 106.23 [08:05:24]line Наличными: 1000.00 [08:05:24]line Безнал.: 0.00 [08:05:24]line Место: АЗС № 15 "Партнер Нефть" [08:05:24]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [08:05:24]line СНО: Общий режим [08:05:24]line Чек 40 15.03.2024 08:05 [08:05:24]line Смена: 320 ФФД: 1.0 [08:05:24]line ЗНМ: 0300000266 [08:05:24]line РНМ: 0000000000091911 [08:05:24]line Версия ККМ: 001 [08:05:24]line ФМ: 0000000000871818 [08:05:24]line ФД: 108517 [08:05:24]line ФПД: 242938234128045 [08:05:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T080526&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108517&fm=242938234128045&tin=02508201610067®Number=0000000000091911&sum=100000 [08:05:24]OFD Sender: Processing packet 108517 [packets to send 29, broken 28] [08:05:24]ProducePacketName [08:05:24]name=ofd_packets/00108517 [08:05:24]OFD Sender: To server: pG, [08:05:24]CommunicateWithHost lk.salyk.kg:30040 [08:05:24]ConnectInit lk.salyk.kg [08:05:24]written 0, free lines is 4095 [08:05:24]Connected sock=10 [08:05:24]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 31 38 0F 01 00 00 32 94 07 01 A0 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 46 01 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E5 A7 01 00 35 04 06 00 DC F3 77 25 C6 AD 67 B8 27 FD 79 00 36 B5 [08:05:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 4F 00 00 00 C4 73 47 00 9D F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E5 A7 01 00 F4 03 04 00 E6 AC F3 65 B6 04 01 00 00 C5 72 17 FD B2 70 36 02 [08:05:25]CommunicateWithHost err = 0 [08:05:25]CheckOFDResponse [08:05:25]1017 (14) - 77093643461234 [08:05:25]1041 (16) - 0000000000871818 [08:05:25]1040 (4) - 108517 [08:05:25]1012 (4) - 15.03.2024 02:05 [08:05:25]1206 (1) - 0 [08:05:25]OFD Sender: Remove packet 108517 [08:05:25]ProducePacketName [08:05:25]name=ofd_packets/00108517 [08:05:25]NVStorageDeleteData [08:05:25]Write to MH i2c: 01 00 00 8A 1B A5 [08:05:25]Write i2c OK [08:05:25]MH_I2C_Read... [08:05:25]Read from MH i2c: 01 [08:05:25]MH_I2C_Read... [08:05:25]Read from MH i2c: 01 07 00 [08:05:25]MH_I2C_Read... [08:05:25]Read from MH i2c: 01 07 00 8A 1B 00 00 00 00 00 D9 0C 91 [08:05:25]RasterBufferAndPrint [08:05:25]line [08:05:25]line [08:05:25]line [08:05:25]line [08:05:25]line [08:05:25]written 0, free lines is 3298 [08:05:25]MH_Cut [08:05:25]Write to MH i2c: D1 01 00 91 1B 01 7E [08:05:25]Write i2c OK [08:05:25]MH_I2C_Read... [08:05:25]Read from MH i2c: D1 [08:05:25]MH_I2C_Read... [08:05:25]Read from MH i2c: D1 01 00 [08:05:25]MH_I2C_Read... [08:05:25]Read from MH i2c: D1 01 00 91 1B 00 7D [08:05:25]Write to MH i2c: 01 00 00 92 1B AD [08:05:25]Write i2c OK [08:05:25]MH_I2C_Read... [08:05:25]OFD Sender: No OFD packet to send [08:05:26]*** Cut start [08:05:26]*** Purtial cut [08:05:26]*** Stage 1: CUTSNS_PIN = 1 [08:05:26]Read from MH i2c: 01 [08:05:26]MH_I2C_Read... [08:05:26]*** Stop cut motor [08:05:26]*** Cut end [08:05:26]Read from MH i2c: 01 07 00 [08:05:26]MH_I2C_Read... [08:05:26]Read from MH i2c: 01 07 00 92 1B 00 00 00 00 00 FF 0F C2 [08:05:26]process_action close_receipt done [08:05:26]requested_data is exist [08:05:26]produce_requested_data [08:05:26]requested_item fm.sn is exist - process it [08:05:26]wFMCommunicate request_size=4 [08:05:26]MH_SAM_APDU [08:05:26]CAPDU: 80 11 00 00 [08:05:26]Write to MH i2c: E2 08 00 93 1B 80 11 00 00 00 00 00 00 28 [08:05:26]Write i2c OK [08:05:26]MH_I2C_Read... [08:05:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:26]Read from MH i2c: E2 [08:05:26]MH_I2C_Read... [08:05:26]Read from MH i2c: E2 17 00 [08:05:26]MH_I2C_Read... [08:05:26]Read from MH i2c: E2 17 00 93 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 7C [08:05:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:05:26]wFMCommunicate OK [08:05:26]requested_item fd.num is exist - process it [08:05:26]SAM_PROTO_GetFieldsCounters [08:05:26]wFMCommunicate request_size=4 [08:05:26]MH_SAM_APDU [08:05:26]CAPDU: 80 13 00 00 [08:05:26]Write to MH i2c: E2 08 00 94 1B 80 13 00 00 00 00 00 00 2B [08:05:26]Write i2c OK [08:05:26]MH_I2C_Read... [08:05:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:05:26]Read from MH i2c: E2 [08:05:26]MH_I2C_Read... [08:05:26]Read from MH i2c: E2 62 00 [08:05:26]MH_I2C_Read... [08:05:26]Read from MH i2c: E2 62 00 94 1B 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 E5 A7 01 00 0E 04 04 00 40 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 8F [08:05:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 E5 A7 01 00 0E 04 04 00 40 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 [08:05:26]wFMCommunicate OK [08:05:26]SAM_PROTO_GetFieldsCounters done [08:05:26]requested_item shift.num is exist - process it [08:05:26]requested_item shift.opened is exist - process it [08:05:26]req_shift_opened [08:05:26]FM_GetShiftState [08:05:26]SAM_PROTO_GetShiftState [08:05:26]wFMCommunicate request_size=4 [08:05:26]MH_SAM_APDU [08:05:26]CAPDU: 80 13 01 00 [08:05:26]Write to MH i2c: E2 08 00 95 1B 80 13 01 00 00 00 00 00 2D [08:05:26]Write i2c OK [08:05:26]MH_I2C_Read... [08:05:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:26]Read from MH i2c: E2 [08:05:26]MH_I2C_Read... [08:05:26]Read from MH i2c: E2 0E 00 [08:05:26]MH_I2C_Read... [08:05:26]Read from MH i2c: E2 0E 00 95 1B 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 61 [08:05:26]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:05:26]wFMCommunicate OK [08:05:26]SAM_PROTO_GetShiftState done [08:05:26]FM_GetShiftState done [08:05:26]req_shift_opened done [08:05:26]requested_item shift.open_date is exist - process it [08:05:26]req_shift_open_date [08:05:26]req_shift_open_date done [08:05:26]produce_requested_data done [08:05:26]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108517,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [08:05:26]process_action_free close_receipt [08:05:26]json_value_free [08:05:26]json_value_free done [08:05:26]process_json_proto returns [08:05:26]Send response to host [08:05:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108517,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [08:05:26]free response buf [08:05:26]execute_script done [08:05:26]execute_script returns [08:05:26]free content buf [08:05:26]Sock 8.Close socket [08:05:26]Sock 8.Thread stoped [08:05:30]OFD Sender: No OFD packet to send [08:05:35]OFD Sender: No OFD packet to send [08:05:40]OFD Sender: No OFD packet to send [08:05:45]OFD Sender: No OFD packet to send [08:05:50]OFD Sender: No OFD packet to send [08:05:55]OFD Sender: No OFD packet to send [08:06:00]OFD Sender: No OFD packet to send [08:06:05]OFD Sender: No OFD packet to send [08:06:10]OFD Sender: No OFD packet to send [08:06:15]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:41]accept exits with 9 [08:06:41]New connection [08:06:41]New thread 3067342180 created [08:06:41]Thread 3067198820 joined [08:06:41]Waiting for new connection... [08:06:41] Sock 9.Parse request [08:06:41]Sock 9.Check first char [08:06:41]Sock 9.First char is OK [08:06:41]request: POST /json_proto HTTP/1.0 [08:06:41]Method: POST [08:06:41]URL: /json_proto [08:06:41]Method is POST - this is cgi request [08:06:41]url: /json_proto [08:06:41]query_string will be loaded in cgi processing [08:06:41]execute_cgi json_proto POST (null) [08:06:41]execute_cgi path=json_proto method=POST [08:06:41]POST find Content-Length [08:06:41]Host: 172.17.32.69:8080 [08:06:41]Content-Length: 672 [08:06:41]Content-Type: application/json [08:06:41] [08:06:41]POST finish read [08:06:41]Found Content-Length = 672 [08:06:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 0.010, "sum" : 0.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:41]execute_script... [08:06: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)1040673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 0.010, "sum" : 0.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:41]POST & json_proto [08:06:41]process_json_proto [08:06:41]json parsed OK: [08:06:41]protocol is kg_v1.0 [08:06:41]action value=close_receipt [08:06:41]process_action close_receipt [08:06:41]cmd_close_receipt [08:06:41]MH_GetDate [08:06:41]Write to MH i2c: F0 00 00 96 1B A0 [08:06:41]Write i2c OK [08:06:41]MH_I2C_Read... [08:06:41]Read from MH i2c: F0 [08:06:41]MH_I2C_Read... [08:06:41]Read from MH i2c: F0 09 00 [08:06:41]MH_I2C_Read... [08:06:41]Read from MH i2c: F0 09 00 96 1B 00 94 01 F4 65 D5 0F D3 65 B3 [08:06:41]GetLastDocTimeStamp 1710489926 [08:06:41]current date 1710490004 [08:06:41]FM_GetShiftState [08:06:41]SAM_PROTO_GetShiftState [08:06:41]wFMCommunicate request_size=4 [08:06:41]MH_SAM_APDU [08:06:41]CAPDU: 80 13 01 00 [08:06:41]Write to MH i2c: E2 08 00 97 1B 80 13 01 00 00 00 00 00 2F [08:06:41]Write i2c OK [08:06:41]MH_I2C_Read... [08:06:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:41]Read from MH i2c: E2 [08:06:41]MH_I2C_Read... [08:06:41]Read from MH i2c: E2 0E 00 [08:06:41]MH_I2C_Read... [08:06:41]Read from MH i2c: E2 0E 00 97 1B 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 63 [08:06:41]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:06:41]wFMCommunicate OK [08:06:41]SAM_PROTO_GetShiftState done [08:06:41]FM_GetShiftState done [08:06:41]opened in 1710461757 [08:06:41]opened+sec_in_day 1710548157 [08:06:41]quantity*price = 61 [08:06:41]sum+1 = 63 [08:06:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 0.00 Внесено: 200.00 СДАЧА: 200.00 НСП 1% : 0.00 НДС 12% : 0.07 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 41 15.03.2024 08:06 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108518 ФПД: 127676225950478 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T080644&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108518&fm=127676225950478&tin=02508201610067®Number=0000000000091911&sum=0 [08:06:42]StoreToDocumentArchive [08:06:42]shift 320 fd 108518 [08:06:42]save to /storage/0320/doc_00108518 [08:06:42]save last doc name /storage/0320/doc_00108518 to /storage/kkm_last_doc_name [08:06:42]save OK [08:06:42]Clear old archive folders... [08:06:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:06:42]tlvbuf is 00121C50 [08:06:42]SAM_PROTO_ClearQueue [08:06:42]wFMCommunicate request_size=4 [08:06:42]MH_SAM_APDU [08:06:42]CAPDU: 80 09 00 00 [08:06:42]Write to MH i2c: E2 08 00 A4 1B 80 09 00 00 00 00 00 00 31 [08:06:42]Write i2c OK [08:06:42]MH_I2C_Read... [08:06:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:06:42]Read from MH i2c: E2 [08:06:42]MH_I2C_Read... [08:06:42]Read from MH i2c: E2 03 00 [08:06:42]MH_I2C_Read... [08:06:42]Read from MH i2c: E2 03 00 A4 1B 00 90 00 33 [08:06:42]RAPDU: 90 00 [08:06:42]wFMCommunicate OK [08:06:42]SAM_PROTO_ClearQueue done [08:06:42]KKMCreateOFDPacket [08:06:42]OFDProtocolAddRootSTLVToBuf [08:06:42]FM_MakeSignedData [08:06:42]FM_MakeSignedData [08:06:42]SAM_PROTO_SignData [08:06:42]wFMCommunicate request_size=4 [08:06:42]MH_SAM_APDU [08:06:42]CAPDU: 80 0D 01 02 [08:06:42]Write to MH i2c: E2 08 00 A5 1B 80 0D 01 02 00 00 00 00 39 [08:06:42]Write i2c OK [08:06:42]MH_I2C_Read... [08:06:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:06:42]Read from MH i2c: E2 [08:06:42]MH_I2C_Read... [08:06:42]Read from MH i2c: E2 03 00 [08:06:42]MH_I2C_Read... [08:06:42]Read from MH i2c: E2 03 00 A5 1B 00 90 00 34 [08:06:42]RAPDU: 90 00 [08:06:42]wFMCommunicate OK [08:06:42]wFMCommunicate request_size=255 [08:06:42]MH_SAM_APDU [08:06:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 3E 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 94 01 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E6 A7 01 00 35 04 06 00 74 [08:06:42]Write to MH i2c: E2 02 01 A6 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 3E 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 94 01 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E6 A7 01 00 35 04 06 00 74 00 00 2F [08:06:42]Write i2c OK [08:06:42]MH_I2C_Read... [08:06:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:42]Read from MH i2c: E2 [08:06:42]MH_I2C_Read... [08:06:42]Read from MH i2c: E2 03 00 [08:06:42]MH_I2C_Read... [08:06:42]Read from MH i2c: E2 03 00 A6 1B 00 90 00 35 [08:06:42]RAPDU: 90 00 [08:06:42]wFMCommunicate OK [08:06:42]wFMCommunicate request_size=10 [08:06:42]MH_SAM_APDU [08:06:42]CAPDU: 80 0D 02 02 05 1E F0 18 13 0E [08:06:42]Write to MH i2c: E2 0D 00 A7 1B 80 0D 02 02 05 00 1E F0 18 13 0E 00 00 8D [08:06:42]Write i2c OK [08:06:42]MH_I2C_Read... [08:06:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:42]Read from MH i2c: E2 [08:06:42]MH_I2C_Read... [08:06:42]Read from MH i2c: E2 03 00 [08:06:42]MH_I2C_Read... [08:06:42]Read from MH i2c: E2 03 00 A7 1B 00 90 00 36 [08:06:42]RAPDU: 90 00 [08:06:42]wFMCommunicate OK [08:06:42]wFMCommunicate request_size=4 [08:06:42]MH_SAM_APDU [08:06:42]CAPDU: 80 0D 03 02 [08:06:42]Write to MH i2c: E2 08 00 A8 1B 80 0D 03 02 00 00 00 00 3E [08:06:42]Write i2c OK [08:06:42]MH_I2C_Read... [08:06:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:06:42]Read from MH i2c: E2 [08:06:42]MH_I2C_Read... [08:06:42]Read from MH i2c: E2 0B 00 [08:06:42]MH_I2C_Read... [08:06:42]Read from MH i2c: E2 0B 00 A8 1B 00 E7 6F D5 B2 A4 56 5F 0D 90 00 82 [08:06:42]RAPDU: E7 6F D5 B2 A4 56 5F 0D 90 00 [08:06:42]wFMCommunicate OK [08:06:42]SAM_PROTO_SignData done [08:06:42]FM_MakeSignedData done [08:06:42]CreateOFDProtocolMessage [08:06:42]wFMCommunicate request_size=4 [08:06:42]MH_SAM_APDU [08:06:42]CAPDU: 80 11 00 00 [08:06:42]Write to MH i2c: E2 08 00 A9 1B 80 11 00 00 00 00 00 00 3E [08:06:42]Write i2c OK [08:06:42]MH_I2C_Read... [08:06:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:42]Read from MH i2c: E2 [08:06:42]MH_I2C_Read... [08:06:42]Read from MH i2c: E2 17 00 [08:06:42]MH_I2C_Read... [08:06:42]Read from MH i2c: E2 17 00 A9 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 92 [08:06:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:06:42]wFMCommunicate OK [08:06:42]CreateOFDProtocolMessage done [08:06:42]OFDSenderStorePacket 108518 [08:06:42]StoreOFDPacket docnum=108518 [08:06:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 BB B1 07 01 5B 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 3E 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 94 01 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E6 A7 01 00 35 04 06 00 74 1E F0 18 13 0E E7 6F D5 B2 A4 56 5F 0D [08:06:42]CheckFolder [08:06:42]dirname=/storage/ofd_packets [08:06:42]CheckFolder done [08:06:42]ProducePacketName [08:06:42]name=ofd_packets/00108518 [08:06:42]NVStorageSaveData ofd_packets/00108518 [08:06:42]File name is /storage/ofd_packets/00108518 [08:06:42]Write 301 bytes [08:06:42]NVStorageSaveData done [08:06:42]OFDSenderStorePacket done [08:06:42]KKMCreateOFDPacket done [08:06:42]NVStorageSaveData kkm_last_timestamp [08:06:42]File name is /storage/kkm_last_timestamp [08:06:42]Write 4 bytes [08:06:42]NVStorageSaveData done [08:06:42]ExternCall_PrintAddStr [08:06:42]wPrintStart [08:06:42]Write to MH i2c: 01 00 00 AA 1B C5 [08:06:42]OFD Sender: Processing packet 108518 [packets to send 29, broken 28] [08:06:42]ProducePacketName [08:06:42]name=ofd_packets/00108518 [08:06:42]OFD Sender: To server: pG, [08:06:42]CommunicateWithHost lk.salyk.kg:30040 [08:06:42]ConnectInit lk.salyk.kg [08:06:42]Write i2c OK [08:06:42]MH_I2C_Read... [08:06:42]Read from MH i2c: 01 [08:06:42]MH_I2C_Read... [08:06:42]Read from MH i2c: 01 07 00 [08:06:42]MH_I2C_Read... [08:06:42]Read from MH i2c: 01 07 00 AA 1B 00 00 00 00 00 FF 0F DA [08:06:42]RasterBufferAndPrint [08:06:42]line Счет N : (1)1040673 [08:06:42]line ИНН: 02508201610067 [08:06:42]line Контрольно-Кассовый Чек [08:06:42]line ПРОДАЖА [08:06:42]line ТРК (МРК, ГНК) : 13 [08:06:42]line Товар: 2710124130 [08:06:42]line Аи-92-К-5 [08:06:42]line 0.010 * 61.90 [08:06:42]line = 0.62 [08:06:42]line НДС 12% НСП 1% [08:06:42]line > о реализуемом товаре [08:06:42]line ОКРУГЛЕНИЕ: -0.62 [08:06:42]line ИТОГО: 0.00 [08:06:42]line Внесено: 200.00 [08:06:42]line СДАЧА: 200.00 [08:06:42]line НСП 1% : 0.00 [08:06:42]line НДС 12% : 0.07 [08:06:42]line Наличными: 0.00 [08:06:42]line Безнал.: 0.00 [08:06:42]line Место: АЗС № 15 "Партнер Нефть" [08:06:42]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [08:06:42]line СНО: Общий режим [08:06:42]line Чек 41 15.03.2024 08:06 [08:06:42]line Смена: 320 ФФД: 1.0 [08:06:42]line ЗНМ: 0300000266 [08:06:42]line РНМ: 0000000000091911 [08:06:42]line Версия ККМ: 001 [08:06:42]line ФМ: 0000000000871818 [08:06:42]line ФД: 108518 [08:06:42]line ФПД: 127676225950478 [08:06:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T080644&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108518&fm=127676225950478&tin=02508201610067®Number=0000000000091911&sum=0 [08:06:43]Connected sock=10 [08:06: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 31 38 0F 01 00 00 BB B1 07 01 5B 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 3E 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 94 01 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E6 A7 01 00 35 04 06 00 74 1E F0 18 13 0E E7 6F D5 B2 A4 56 5F 0D [08:06:43]written 0, free lines is 4095 [08:06:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 4F 00 00 00 C0 17 47 00 85 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E6 A7 01 00 F4 03 04 00 35 AD F3 65 B6 04 01 00 00 21 82 25 A6 79 67 8F B2 [08:06:43]CommunicateWithHost err = 0 [08:06:43]CheckOFDResponse [08:06:43]1017 (14) - 77093643461234 [08:06:43]1041 (16) - 0000000000871818 [08:06:43]1040 (4) - 108518 [08:06:43]1012 (4) - 15.03.2024 02:06 [08:06:43]1206 (1) - 0 [08:06:43]OFD Sender: Remove packet 108518 [08:06:43]ProducePacketName [08:06:43]name=ofd_packets/00108518 [08:06:43]NVStorageDeleteData [08:06:43]Write to MH i2c: 01 00 00 D5 1B F0 [08:06:43]Write i2c OK [08:06:43]MH_I2C_Read... [08:06:43]Read from MH i2c: 01 [08:06:43]MH_I2C_Read... [08:06:43]Read from MH i2c: 01 07 00 [08:06:43]MH_I2C_Read... [08:06:43]Read from MH i2c: 01 07 00 D5 1B 00 00 00 00 00 D5 0C D8 [08:06:43]RasterBufferAndPrint [08:06:43]line [08:06:43]line [08:06:43]line [08:06:43]line [08:06:43]line [08:06:43]written 0, free lines is 3291 [08:06:43]MH_Cut [08:06:43]Write to MH i2c: D1 01 00 DC 1B 01 C9 [08:06:43]Write i2c OK [08:06:43]MH_I2C_Read... [08:06:43]Read from MH i2c: D1 [08:06:43]MH_I2C_Read... [08:06:43]Read from MH i2c: D1 01 00 [08:06:43]MH_I2C_Read... [08:06:43]Read from MH i2c: D1 01 00 DC 1B 00 C8 [08:06:43]Write to MH i2c: 01 00 00 DD 1B F8 [08:06:43]Write i2c OK [08:06:43]MH_I2C_Read... [08:06:43]OFD Sender: No OFD packet to send [08:06:44]*** Cut start [08:06:44]*** Purtial cut [08:06:44]*** Stage 1: CUTSNS_PIN = 1 [08:06:44]Read from MH i2c: 01 [08:06:44]MH_I2C_Read... [08:06:44]*** Stop cut motor [08:06:44]*** Cut end [08:06:44]Read from MH i2c: 01 07 00 [08:06:44]MH_I2C_Read... [08:06:44]Read from MH i2c: 01 07 00 DD 1B 00 00 00 00 00 FF 0F 0D [08:06:44]process_action close_receipt done [08:06:44]requested_data is exist [08:06:44]produce_requested_data [08:06:44]requested_item fm.sn is exist - process it [08:06:44]wFMCommunicate request_size=4 [08:06:44]MH_SAM_APDU [08:06:44]CAPDU: 80 11 00 00 [08:06:44]Write to MH i2c: E2 08 00 DE 1B 80 11 00 00 00 00 00 00 73 [08:06:44]Write i2c OK [08:06:44]MH_I2C_Read... [08:06:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:44]Read from MH i2c: E2 [08:06:44]MH_I2C_Read... [08:06:44]Read from MH i2c: E2 17 00 [08:06:44]MH_I2C_Read... [08:06:44]Read from MH i2c: E2 17 00 DE 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 C7 [08:06:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:06:44]wFMCommunicate OK [08:06:44]requested_item fd.num is exist - process it [08:06:44]SAM_PROTO_GetFieldsCounters [08:06:44]wFMCommunicate request_size=4 [08:06:44]MH_SAM_APDU [08:06:44]CAPDU: 80 13 00 00 [08:06:44]Write to MH i2c: E2 08 00 DF 1B 80 13 00 00 00 00 00 00 76 [08:06:44]Write i2c OK [08:06:44]MH_I2C_Read... [08:06:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:06:45]Read from MH i2c: E2 [08:06:45]MH_I2C_Read... [08:06:45]Read from MH i2c: E2 62 00 [08:06:45]MH_I2C_Read... [08:06:45]Read from MH i2c: E2 62 00 DF 1B 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 E6 A7 01 00 0E 04 04 00 40 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 DE [08:06: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 E6 A7 01 00 0E 04 04 00 40 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 [08:06:45]wFMCommunicate OK [08:06:45]SAM_PROTO_GetFieldsCounters done [08:06:45]requested_item shift.num is exist - process it [08:06:45]requested_item shift.opened is exist - process it [08:06:45]req_shift_opened [08:06:45]FM_GetShiftState [08:06:45]SAM_PROTO_GetShiftState [08:06:45]wFMCommunicate request_size=4 [08:06:45]MH_SAM_APDU [08:06:45]CAPDU: 80 13 01 00 [08:06:45]Write to MH i2c: E2 08 00 E0 1B 80 13 01 00 00 00 00 00 78 [08:06:45]Write i2c OK [08:06:45]MH_I2C_Read... [08:06:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:45]Read from MH i2c: E2 [08:06:45]MH_I2C_Read... [08:06:45]Read from MH i2c: E2 0E 00 [08:06:45]MH_I2C_Read... [08:06:45]Read from MH i2c: E2 0E 00 E0 1B 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 AC [08:06:45]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:06:45]wFMCommunicate OK [08:06:45]SAM_PROTO_GetShiftState done [08:06:45]FM_GetShiftState done [08:06:45]req_shift_opened done [08:06:45]requested_item shift.open_date is exist - process it [08:06:45]req_shift_open_date [08:06:45]req_shift_open_date done [08:06:45]produce_requested_data done [08:06:45]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108518,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [08:06:45]process_action_free close_receipt [08:06:45]json_value_free [08:06:45]json_value_free done [08:06:45]process_json_proto returns [08:06:45]Send response to host [08:06:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108518,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [08:06:45]free response buf [08:06:45]execute_script done [08:06:45]execute_script returns [08:06:45]free content buf [08:06:45]Sock 9.Close socket [08:06:45]Sock 9.Thread stoped [08:06:48]OFD Sender: No OFD packet to send [08:06:53]OFD Sender: No OFD packet to send [08:06:58]OFD Sender: No OFD packet to send [08:07:00]accept exits with 8 [08:07:00]New connection [08:07:00]New thread 3067198820 created [08:07:00]Thread 3067342180 joined [08:07:00]Waiting for new connection... [08:07:00] Sock 8.Parse request [08:07:00]Sock 8.Check first char [08:07:00]Sock 8.First char is OK [08:07:00]request: POST /json_proto HTTP/1.0 [08:07:00]Method: POST [08:07:00]URL: /json_proto [08:07:00]Method is POST - this is cgi request [08:07:00]url: /json_proto [08:07:00]query_string will be loaded in cgi processing [08:07:00]execute_cgi json_proto POST (null) [08:07:00]execute_cgi path=json_proto method=POST [08:07:00]POST find Content-Length [08:07:00]Host: 172.17.32.69:8080 [08:07:00]Content-Length: 678 [08:07:00]Content-Type: application/json [08:07:00] [08:07:00]POST finish read [08:07:00]Found Content-Length = 678 [08:07:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 3.240, "sum" : 200.56, "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" ] } } [08:07:00]execute_script... [08:07: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)1040676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 3.240, "sum" : 200.56, "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" ] } } [08:07:00]POST & json_proto [08:07:00]process_json_proto [08:07:00]json parsed OK: [08:07:00]protocol is kg_v1.0 [08:07:00]action value=close_receipt [08:07:00]process_action close_receipt [08:07:00]cmd_close_receipt [08:07:00]MH_GetDate [08:07:00]Write to MH i2c: F0 00 00 E1 1B EB [08:07:00]Write i2c OK [08:07:00]MH_I2C_Read... [08:07:00]Read from MH i2c: F0 [08:07:00]MH_I2C_Read... [08:07:00]Read from MH i2c: F0 09 00 [08:07:00]MH_I2C_Read... [08:07:00]Read from MH i2c: F0 09 00 E1 1B 00 A8 01 F4 65 D5 0F D3 65 12 [08:07:00]GetLastDocTimeStamp 1710490004 [08:07:00]current date 1710490024 [08:07:00]FM_GetShiftState [08:07:00]SAM_PROTO_GetShiftState [08:07:00]wFMCommunicate request_size=4 [08:07:00]MH_SAM_APDU [08:07:00]CAPDU: 80 13 01 00 [08:07:00]Write to MH i2c: E2 08 00 E2 1B 80 13 01 00 00 00 00 00 7A [08:07:00]Write i2c OK [08:07:00]MH_I2C_Read... [08:07:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:00]Read from MH i2c: E2 [08:07:00]MH_I2C_Read... [08:07:00]Read from MH i2c: E2 0E 00 [08:07:00]MH_I2C_Read... [08:07:00]Read from MH i2c: E2 0E 00 E2 1B 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 AE [08:07:00]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:07:00]wFMCommunicate OK [08:07:00]SAM_PROTO_GetShiftState done [08:07:00]FM_GetShiftState done [08:07:00]opened in 1710461757 [08:07:00]opened+sec_in_day 1710548157 [08:07:00]quantity*price = 20055 [08:07:00]sum+1 = 20057 [08:07:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 42 15.03.2024 08:07 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108519 ФПД: 251818573649352 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T080704&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108519&fm=251818573649352&tin=02508201610067®Number=0000000000091911&sum=20000 [08:07:01]StoreToDocumentArchive [08:07:01]shift 320 fd 108519 [08:07:01]save to /storage/0320/doc_00108519 [08:07:01]save last doc name /storage/0320/doc_00108519 to /storage/kkm_last_doc_name [08:07:01]save OK [08:07:01]Clear old archive folders... [08:07:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:07:01]tlvbuf is 0009D820 [08:07:01]SAM_PROTO_ClearQueue [08:07:01]wFMCommunicate request_size=4 [08:07:01]MH_SAM_APDU [08:07:01]CAPDU: 80 09 00 00 [08:07:01]Write to MH i2c: E2 08 00 EF 1B 80 09 00 00 00 00 00 00 7C [08:07:01]Write i2c OK [08:07:01]MH_I2C_Read... [08:07:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:07:01]Read from MH i2c: E2 [08:07:01]MH_I2C_Read... [08:07:01]Read from MH i2c: E2 03 00 [08:07:01]MH_I2C_Read... [08:07:01]Read from MH i2c: E2 03 00 EF 1B 00 90 00 7E [08:07:01]RAPDU: 90 00 [08:07:01]wFMCommunicate OK [08:07:01]SAM_PROTO_ClearQueue done [08:07:01]KKMCreateOFDPacket [08:07:01]OFDProtocolAddRootSTLVToBuf [08:07:01]FM_MakeSignedData [08:07:01]FM_MakeSignedData [08:07:01]SAM_PROTO_SignData [08:07:01]wFMCommunicate request_size=4 [08:07:01]MH_SAM_APDU [08:07:01]CAPDU: 80 0D 01 02 [08:07:01]Write to MH i2c: E2 08 00 F0 1B 80 0D 01 02 00 00 00 00 84 [08:07:01]Write i2c OK [08:07:01]MH_I2C_Read... [08:07:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:07:02]Read from MH i2c: E2 [08:07:02]MH_I2C_Read... [08:07:02]Read from MH i2c: E2 03 00 [08:07:02]MH_I2C_Read... [08:07:02]Read from MH i2c: E2 03 00 F0 1B 00 90 00 7F [08:07:02]RAPDU: 90 00 [08:07:02]wFMCommunicate OK [08:07:02]wFMCommunicate request_size=255 [08:07:02]MH_SAM_APDU [08:07:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 2A 00 00 00 F4 03 04 00 A8 01 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E7 A7 01 00 35 04 06 00 E5 [08:07:02]Write to MH i2c: E2 02 01 F1 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 2A 00 00 00 F4 03 04 00 A8 01 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E7 A7 01 00 35 04 06 00 E5 00 00 F3 [08:07:02]Write i2c OK [08:07:02]MH_I2C_Read... [08:07:02]Read from MH i2c: E2 [08:07:02]MH_I2C_Read... [08:07:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:02]Read from MH i2c: E2 03 00 [08:07:02]MH_I2C_Read... [08:07:02]Read from MH i2c: E2 03 00 F1 1B 00 90 00 80 [08:07:02]RAPDU: 90 00 [08:07:02]wFMCommunicate OK [08:07:02]wFMCommunicate request_size=10 [08:07:02]MH_SAM_APDU [08:07:02]CAPDU: 80 0D 02 02 05 07 14 A1 55 C8 [08:07:02]Write to MH i2c: E2 0D 00 F2 1B 80 0D 02 02 05 00 07 14 A1 55 C8 00 00 6A [08:07:02]Write i2c OK [08:07:02]MH_I2C_Read... [08:07:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:02]Read from MH i2c: E2 [08:07:02]MH_I2C_Read... [08:07:02]Read from MH i2c: E2 03 00 [08:07:02]MH_I2C_Read... [08:07:02]Read from MH i2c: E2 03 00 F2 1B 00 90 00 81 [08:07:02]RAPDU: 90 00 [08:07:02]wFMCommunicate OK [08:07:02]wFMCommunicate request_size=4 [08:07:02]MH_SAM_APDU [08:07:02]CAPDU: 80 0D 03 02 [08:07:02]Write to MH i2c: E2 08 00 F3 1B 80 0D 03 02 00 00 00 00 89 [08:07:02]Write i2c OK [08:07:02]MH_I2C_Read... [08:07:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:07:02]Read from MH i2c: E2 [08:07:02]MH_I2C_Read... [08:07:02]Read from MH i2c: E2 0B 00 [08:07:02]MH_I2C_Read... [08:07:02]Read from MH i2c: E2 0B 00 F3 1B 00 13 0F 77 03 6B DA D3 5C 90 00 9A [08:07:02]RAPDU: 13 0F 77 03 6B DA D3 5C 90 00 [08:07:02]wFMCommunicate OK [08:07:02]SAM_PROTO_SignData done [08:07:02]FM_MakeSignedData done [08:07:02]CreateOFDProtocolMessage [08:07:02]wFMCommunicate request_size=4 [08:07:02]MH_SAM_APDU [08:07:02]CAPDU: 80 11 00 00 [08:07:02]Write to MH i2c: E2 08 00 F4 1B 80 11 00 00 00 00 00 00 89 [08:07:02]Write i2c OK [08:07:02]MH_I2C_Read... [08:07:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:02]Read from MH i2c: E2 [08:07:02]MH_I2C_Read... [08:07:02]Read from MH i2c: E2 17 00 [08:07:02]MH_I2C_Read... [08:07:02]Read from MH i2c: E2 17 00 F4 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 DD [08:07:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:07:02]wFMCommunicate OK [08:07:02]CreateOFDProtocolMessage done [08:07:02]OFDSenderStorePacket 108519 [08:07:02]StoreOFDPacket docnum=108519 [08:07:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 A9 DD 07 01 B4 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 2A 00 00 00 F4 03 04 00 A8 01 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E7 A7 01 00 35 04 06 00 E5 07 14 A1 55 C8 13 0F 77 03 6B DA D3 5C [08:07:02]CheckFolder [08:07:02]dirname=/storage/ofd_packets [08:07:02]CheckFolder done [08:07:02]ProducePacketName [08:07:02]name=ofd_packets/00108519 [08:07:02]NVStorageSaveData ofd_packets/00108519 [08:07:02]File name is /storage/ofd_packets/00108519 [08:07:02]Write 301 bytes [08:07:02]NVStorageSaveData done [08:07:02]OFDSenderStorePacket done [08:07:02]KKMCreateOFDPacket done [08:07:02]NVStorageSaveData kkm_last_timestamp [08:07:02]File name is /storage/kkm_last_timestamp [08:07:02]Write 4 bytes [08:07:02]NVStorageSaveData done [08:07:02]ExternCall_PrintAddStr [08:07:02]wPrintStart [08:07:02]Write to MH i2c: 01 00 00 F5 1B 10 [08:07:02]Write i2c OK [08:07:02]MH_I2C_Read... [08:07:02]Read from MH i2c: 01 [08:07:02]MH_I2C_Read... [08:07:02]Read from MH i2c: 01 07 00 [08:07:02]MH_I2C_Read... [08:07:02]Read from MH i2c: 01 07 00 F5 1B 00 00 00 00 00 FF 0F 25 [08:07:02]RasterBufferAndPrint [08:07:02]line Счет N : (1)1040676 [08:07:02]line ИНН: 02508201610067 [08:07:02]line Контрольно-Кассовый Чек [08:07:02]line ПРОДАЖА [08:07:02]line ТРК (МРК, ГНК) : 13 [08:07:02]line Товар: 2710124130 [08:07:02]line Аи-92-К-5 [08:07:02]line 3.240 * 61.90 [08:07:02]line = 200.56 [08:07:02]line НДС 12% НСП 1% [08:07:02]line > о реализуемом товаре [08:07:02]line ОКРУГЛЕНИЕ: -0.56 [08:07:02]line ИТОГО: 200.00 [08:07:02]line Внесено: 200.00 [08:07:02]line СДАЧА: 0.00 [08:07:02]line НСП 1% : 1.77 [08:07:02]line НДС 12% : 21.30 [08:07:02]line Наличными: 200.00 [08:07:02]line Безнал.: 0.00 [08:07:02]line Место: АЗС № 15 "Партнер Нефть" [08:07:02]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [08:07:02]line СНО: Общий режим [08:07:02]line Чек 42 15.03.2024 08:07 [08:07:02]line Смена: 320 ФФД: 1.0 [08:07:02]line ЗНМ: 0300000266 [08:07:02]line РНМ: 0000000000091911 [08:07:02]line Версия ККМ: 001 [08:07:02]line ФМ: 0000000000871818 [08:07:02]line ФД: 108519 [08:07:02]line ФПД: 251818573649352 [08:07:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T080704&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108519&fm=251818573649352&tin=02508201610067®Number=0000000000091911&sum=20000 [08:07:02]OFD Sender: Processing packet 108519 [packets to send 29, broken 28] [08:07:02]ProducePacketName [08:07:02]name=ofd_packets/00108519 [08:07:02]OFD Sender: To server: pG, [08:07:02]CommunicateWithHost lk.salyk.kg:30040 [08:07:02]ConnectInit lk.salyk.kg [08:07:02]written 0, free lines is 4095 [08:07:02]Connected sock=10 [08:07: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 31 38 0F 01 00 00 A9 DD 07 01 B4 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 2A 00 00 00 F4 03 04 00 A8 01 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E7 A7 01 00 35 04 06 00 E5 07 14 A1 55 C8 13 0F 77 03 6B DA D3 5C [08:07:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 4F 00 00 00 C8 A4 47 00 23 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E7 A7 01 00 F4 03 04 00 48 AD F3 65 B6 04 01 00 00 D6 3C 11 E5 F1 AF 0C A4 [08:07:03]CommunicateWithHost err = 0 [08:07:03]CheckOFDResponse [08:07:03]1017 (14) - 77093643461234 [08:07:03]1041 (16) - 0000000000871818 [08:07:03]1040 (4) - 108519 [08:07:03]1012 (4) - 15.03.2024 02:07 [08:07:03]1206 (1) - 0 [08:07:03]OFD Sender: Remove packet 108519 [08:07:03]ProducePacketName [08:07:03]name=ofd_packets/00108519 [08:07:03]NVStorageDeleteData [08:07:03]Write to MH i2c: 01 00 00 20 1C 3C [08:07:03]Write i2c OK [08:07:03]MH_I2C_Read... [08:07:03]Read from MH i2c: 01 [08:07:03]MH_I2C_Read... [08:07:03]Read from MH i2c: 01 07 00 [08:07:03]MH_I2C_Read... [08:07:03]Read from MH i2c: 01 07 00 20 1C 00 00 00 00 00 D1 0C 20 [08:07:03]RasterBufferAndPrint [08:07:03]line [08:07:03]line [08:07:03]line [08:07:03]line [08:07:03]line [08:07:03]written 0, free lines is 3289 [08:07:03]MH_Cut [08:07:03]Write to MH i2c: D1 01 00 27 1C 01 15 [08:07:03]Write i2c OK [08:07:03]MH_I2C_Read... [08:07:03]Read from MH i2c: D1 [08:07:03]MH_I2C_Read... [08:07:03]Read from MH i2c: D1 01 00 [08:07:03]MH_I2C_Read... [08:07:03]Read from MH i2c: D1 01 00 27 1C 00 14 [08:07:03]Write to MH i2c: 01 00 00 28 1C 44 [08:07:03]Write i2c OK [08:07:03]MH_I2C_Read... [08:07:03]OFD Sender: No OFD packet to send [08:07:04]*** Cut start [08:07:04]*** Purtial cut [08:07:04]*** Stage 1: CUTSNS_PIN = 1 [08:07:04]Read from MH i2c: 01 [08:07:04]MH_I2C_Read... [08:07:04]*** Stop cut motor [08:07:04]*** Cut end [08:07:04]Read from MH i2c: 01 07 00 [08:07:04]MH_I2C_Read... [08:07:04]Read from MH i2c: 01 07 00 28 1C 00 00 00 00 00 FF 0F 59 [08:07:04]process_action close_receipt done [08:07:04]requested_data is exist [08:07:04]produce_requested_data [08:07:04]requested_item fm.sn is exist - process it [08:07:04]wFMCommunicate request_size=4 [08:07:04]MH_SAM_APDU [08:07:04]CAPDU: 80 11 00 00 [08:07:04]Write to MH i2c: E2 08 00 29 1C 80 11 00 00 00 00 00 00 BF [08:07:04]Write i2c OK [08:07:04]MH_I2C_Read... [08:07:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:04]Read from MH i2c: E2 [08:07:04]MH_I2C_Read... [08:07:04]Read from MH i2c: E2 17 00 [08:07:04]MH_I2C_Read... [08:07:04]Read from MH i2c: E2 17 00 29 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 13 [08:07:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:07:04]wFMCommunicate OK [08:07:04]requested_item fd.num is exist - process it [08:07:04]SAM_PROTO_GetFieldsCounters [08:07:04]wFMCommunicate request_size=4 [08:07:04]MH_SAM_APDU [08:07:04]CAPDU: 80 13 00 00 [08:07:04]Write to MH i2c: E2 08 00 2A 1C 80 13 00 00 00 00 00 00 C2 [08:07:04]Write i2c OK [08:07:04]MH_I2C_Read... [08:07:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:07:04]Read from MH i2c: E2 [08:07:04]MH_I2C_Read... [08:07:04]Read from MH i2c: E2 62 00 [08:07:04]MH_I2C_Read... [08:07:04]Read from MH i2c: E2 62 00 2A 1C 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 E7 A7 01 00 0E 04 04 00 40 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 2E [08:07: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 E7 A7 01 00 0E 04 04 00 40 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 [08:07:04]wFMCommunicate OK [08:07:04]SAM_PROTO_GetFieldsCounters done [08:07:04]requested_item shift.num is exist - process it [08:07:04]requested_item shift.opened is exist - process it [08:07:04]req_shift_opened [08:07:04]FM_GetShiftState [08:07:04]SAM_PROTO_GetShiftState [08:07:04]wFMCommunicate request_size=4 [08:07:04]MH_SAM_APDU [08:07:04]CAPDU: 80 13 01 00 [08:07:04]Write to MH i2c: E2 08 00 2B 1C 80 13 01 00 00 00 00 00 C4 [08:07:04]Write i2c OK [08:07:04]MH_I2C_Read... [08:07:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:04]Read from MH i2c: E2 [08:07:04]MH_I2C_Read... [08:07:04]Read from MH i2c: E2 0E 00 [08:07:04]MH_I2C_Read... [08:07:04]Read from MH i2c: E2 0E 00 2B 1C 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 F8 [08:07:04]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:07:04]wFMCommunicate OK [08:07:04]SAM_PROTO_GetShiftState done [08:07:04]FM_GetShiftState done [08:07:04]req_shift_opened done [08:07:04]requested_item shift.open_date is exist - process it [08:07:04]req_shift_open_date [08:07:04]req_shift_open_date done [08:07:04]produce_requested_data done [08:07:04]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108519,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [08:07:04]process_action_free close_receipt [08:07:04]json_value_free [08:07:04]json_value_free done [08:07:04]process_json_proto returns [08:07:04]Send response to host [08:07:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108519,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [08:07:04]free response buf [08:07:04]execute_script done [08:07:04]execute_script returns [08:07:04]free content buf [08:07:04]Sock 8.Close socket [08:07:04]Sock 8.Thread stoped [08:07:08]OFD Sender: No OFD packet to send [08:07:13]OFD Sender: No OFD packet to send [08:07:18]OFD Sender: No OFD packet to send [08:07:23]OFD Sender: No OFD packet to send [08:07:28]OFD Sender: No OFD packet to send [08:07:33]OFD Sender: No OFD packet to send [08:07:38]OFD Sender: No OFD packet to send [08:07:39]accept exits with 9 [08:07:39]New connection [08:07:39]New thread 3067342180 created [08:07:39]Thread 3067198820 joined [08:07:39]Waiting for new connection... [08:07:39] Sock 9.Parse request [08:07:39]Sock 9.Check first char [08:07:39]Sock 9.First char is OK [08:07:39]request: POST /json_proto HTTP/1.0 [08:07:39]Method: POST [08:07:39]URL: /json_proto [08:07:39]Method is POST - this is cgi request [08:07:39]url: /json_proto [08:07:39]query_string will be loaded in cgi processing [08:07:39]execute_cgi json_proto POST (null) [08:07:39]execute_cgi path=json_proto method=POST [08:07:39]POST find Content-Length [08:07:39]Host: 172.17.32.69:8080 [08:07:39]Content-Length: 1167 [08:07:39]Content-Type: application/json [08:07:39] [08:07:39]POST finish read [08:07:39]Found Content-Length = 1167 [08:07:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040677\u000A15.03.2024 07:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 6.400 x 61.90\u000A\u0418\u0422\u041E\u0413: 396.16\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A861537\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:39]execute_script... [08:07:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040677\u000A15.03.2024 07:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 6.400 x 61.90\u000A\u0418\u0422\u041E\u0413: 396.16\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A861537\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:39]POST & json_proto [08:07:39]process_json_proto [08:07:39]json parsed OK: [08:07:39]protocol is kg_v1.0 [08:07:39]action value=print_text [08:07:39]process_action print_text [08:07:39]cmd_print_text [08:07:39]ExternCall_PrintAddStr [08:07:39]wPrintStart [08:07:39]Write to MH i2c: 01 00 00 2C 1C 48 [08:07:39]Write i2c OK [08:07:39]MH_I2C_Read... [08:07:39]Read from MH i2c: 01 [08:07:39]MH_I2C_Read... [08:07:39]Read from MH i2c: 01 07 00 [08:07:39]MH_I2C_Read... [08:07:39]Read from MH i2c: 01 07 00 2C 1C 00 00 00 00 00 FF 0F 5D [08:07:39]RasterBufferAndPrint [08:07:39]line *****ТОВАРНЫЙ ЧЕК***** [08:07:39]line АЗС 15 [08:07:39]line Партнер нефть [08:07:39]line 02508201610067 [08:07:39]line Кассир : Максатбек у Д. [08:07:39]line Счет N : (1)1040677 [08:07:39]line 15.03.2024 07:59 [08:07:39]line ПРОДАЖА [08:07:39]line ТРК (МРК, ГНК): 53 [08:07:39]line Вид ГСМ : 2710124130 [08:07:39]line Аи-92-К-5 [08:07:39]line 6.400 x 61.90 [08:07:39]line ИТОГ: 396.16 [08:07:39]line Тип оплаты: Талоны: ТК ГПНА Online [08:07:39]line 861537 [08:07:39]line ______________________ [08:07:39]line (подпись) [08:07:39]written 0, free lines is 4095 [08:07:40]Write to MH i2c: 01 00 00 41 1C 5D [08:07:40]Write i2c OK [08:07:40]MH_I2C_Read... [08:07:40]Read from MH i2c: 01 [08:07:40]MH_I2C_Read... [08:07:40]Read from MH i2c: 01 07 00 [08:07:40]MH_I2C_Read... [08:07:40]Read from MH i2c: 01 07 00 41 1C 00 00 00 00 00 F4 0D 65 [08:07:40]RasterBufferAndPrint [08:07:40]line [08:07:40]line [08:07:40]line [08:07:40]line [08:07:40]line [08:07:40]written 0, free lines is 3574 [08:07:40]MH_Cut [08:07:40]Write to MH i2c: D1 01 00 48 1C 01 36 [08:07:40]Write i2c OK [08:07:40]MH_I2C_Read... [08:07:40]Read from MH i2c: D1 [08:07:40]MH_I2C_Read... [08:07:40]Read from MH i2c: D1 01 00 [08:07:40]MH_I2C_Read... [08:07:40]Read from MH i2c: D1 01 00 48 1C 00 35 [08:07:40]Write to MH i2c: 01 00 00 49 1C 65 [08:07:40]Write i2c OK [08:07:40]MH_I2C_Read... [08:07:40]*** Cut start [08:07:40]*** Purtial cut [08:07:40]*** Stage 1: CUTSNS_PIN = 1 [08:07:40]Read from MH i2c: 01 [08:07:40]MH_I2C_Read... [08:07:40]*** Stop cut motor [08:07:40]*** Cut end [08:07:40]Read from MH i2c: 01 07 00 [08:07:40]MH_I2C_Read... [08:07:40]Read from MH i2c: 01 07 00 49 1C 00 00 00 00 00 FF 0F 7A [08:07:40]process_action print_text done [08:07:40]requested_data is exist [08:07:40]produce_requested_data [08:07:40]requested_item fm.sn is exist - process it [08:07:40]wFMCommunicate request_size=4 [08:07:40]MH_SAM_APDU [08:07:40]CAPDU: 80 11 00 00 [08:07:40]Write to MH i2c: E2 08 00 4A 1C 80 11 00 00 00 00 00 00 E0 [08:07:40]Write i2c OK [08:07:40]MH_I2C_Read... [08:07:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:40]Read from MH i2c: E2 [08:07:40]MH_I2C_Read... [08:07:40]Read from MH i2c: E2 17 00 [08:07:40]MH_I2C_Read... [08:07:40]Read from MH i2c: E2 17 00 4A 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 34 [08:07:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:07:40]wFMCommunicate OK [08:07:40]requested_item fd.num is exist - process it [08:07:40]SAM_PROTO_GetFieldsCounters [08:07:40]wFMCommunicate request_size=4 [08:07:40]MH_SAM_APDU [08:07:40]CAPDU: 80 13 00 00 [08:07:40]Write to MH i2c: E2 08 00 4B 1C 80 13 00 00 00 00 00 00 E3 [08:07:40]Write i2c OK [08:07:40]MH_I2C_Read... [08:07:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:07:41]Read from MH i2c: E2 [08:07:41]MH_I2C_Read... [08:07:41]Read from MH i2c: E2 62 00 [08:07:41]MH_I2C_Read... [08:07:41]Read from MH i2c: E2 62 00 4B 1C 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 E7 A7 01 00 0E 04 04 00 40 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 4F [08:07: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 E7 A7 01 00 0E 04 04 00 40 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 [08:07:41]wFMCommunicate OK [08:07:41]SAM_PROTO_GetFieldsCounters done [08:07:41]requested_item shift.num is exist - process it [08:07:41]requested_item shift.opened is exist - process it [08:07:41]req_shift_opened [08:07:41]FM_GetShiftState [08:07:41]SAM_PROTO_GetShiftState [08:07:41]wFMCommunicate request_size=4 [08:07:41]MH_SAM_APDU [08:07:41]CAPDU: 80 13 01 00 [08:07:41]Write to MH i2c: E2 08 00 4C 1C 80 13 01 00 00 00 00 00 E5 [08:07:41]Write i2c OK [08:07:41]MH_I2C_Read... [08:07:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:41]Read from MH i2c: E2 [08:07:41]MH_I2C_Read... [08:07:41]Read from MH i2c: E2 0E 00 [08:07:41]MH_I2C_Read... [08:07:41]Read from MH i2c: E2 0E 00 4C 1C 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 19 [08:07:41]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:07:41]wFMCommunicate OK [08:07:41]SAM_PROTO_GetShiftState done [08:07:41]FM_GetShiftState done [08:07:41]req_shift_opened done [08:07:41]requested_item shift.open_date is exist - process it [08:07:41]req_shift_open_date [08:07:41]req_shift_open_date done [08:07:41]produce_requested_data done [08:07:41]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108519,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [08:07:41]process_action_free print_text [08:07:41]json_value_free [08:07:41]json_value_free done [08:07:41]process_json_proto returns [08:07:41]Send response to host [08:07:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108519,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [08:07:41]free response buf [08:07:41]execute_script done [08:07:41]execute_script returns [08:07:41]free content buf [08:07:41]Sock 9.Close socket [08:07:41]Sock 9.Thread stoped [08:07:43]OFD Sender: No OFD packet to send [08:07:48]OFD Sender: No OFD packet to send [08:07:53]OFD Sender: No OFD packet to send [08:07:58]OFD Sender: No OFD packet to send [08:08:03]OFD Sender: No OFD packet to send [08:08:08]OFD Sender: No OFD packet to send [08:08:13]OFD Sender: No OFD packet to send [08:08:18]OFD Sender: No OFD packet to send [08:08:23]OFD Sender: No OFD packet to send [08:08:28]OFD Sender: No OFD packet to send [08:08:33]OFD Sender: No OFD packet to send [08:08:37]accept exits with 8 [08:08:37]New connection [08:08:37]New thread 3067198820 created [08:08:37]Thread 3067342180 joined [08:08:37]Waiting for new connection... [08:08:37] Sock 8.Parse request [08:08:37]Sock 8.Check first char [08:08:37]Sock 8.First char is OK [08:08:37]request: POST /json_proto HTTP/1.0 [08:08:37]Method: POST [08:08:37]URL: /json_proto [08:08:37]Method is POST - this is cgi request [08:08:37]url: /json_proto [08:08:37]query_string will be loaded in cgi processing [08:08:37]execute_cgi json_proto POST (null) [08:08:37]execute_cgi path=json_proto method=POST [08:08:37]POST find Content-Length [08:08:37]Host: 172.17.32.69:8080 [08:08:37]Content-Length: 678 [08:08:37]Content-Type: application/json [08:08:37] [08:08:37]POST finish read [08:08:37]Found Content-Length = 678 [08:08:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 3.300, "sum" : 204.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 204.00, "total" : 204.00, "payments": [ { "type": 0, "sum" : 204.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:08:37]execute_script... [08:08:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 3.300, "sum" : 204.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 204.00, "total" : 204.00, "payments": [ { "type": 0, "sum" : 204.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:08:37]POST & json_proto [08:08:37]process_json_proto [08:08:37]json parsed OK: [08:08:37]protocol is kg_v1.0 [08:08:37]action value=close_receipt [08:08:37]process_action close_receipt [08:08:37]cmd_close_receipt [08:08:37]MH_GetDate [08:08:37]Write to MH i2c: F0 00 00 4D 1C 58 [08:08:37]Write i2c OK [08:08:37]MH_I2C_Read... [08:08:37]Read from MH i2c: F0 [08:08:37]MH_I2C_Read... [08:08:37]Read from MH i2c: F0 09 00 [08:08:37]MH_I2C_Read... [08:08:37]Read from MH i2c: F0 09 00 4D 1C 00 09 02 F4 65 D5 0F D3 65 E1 [08:08:37]GetLastDocTimeStamp 1710490024 [08:08:37]current date 1710490121 [08:08:37]FM_GetShiftState [08:08:37]SAM_PROTO_GetShiftState [08:08:37]wFMCommunicate request_size=4 [08:08:37]MH_SAM_APDU [08:08:37]CAPDU: 80 13 01 00 [08:08:37]Write to MH i2c: E2 08 00 4E 1C 80 13 01 00 00 00 00 00 E7 [08:08:37]Write i2c OK [08:08:37]MH_I2C_Read... [08:08:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:37]Read from MH i2c: E2 [08:08:37]MH_I2C_Read... [08:08:37]Read from MH i2c: E2 0E 00 [08:08:37]MH_I2C_Read... [08:08:37]Read from MH i2c: E2 0E 00 4E 1C 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 1B [08:08:37]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:08:37]wFMCommunicate OK [08:08:37]SAM_PROTO_GetShiftState done [08:08:37]FM_GetShiftState done [08:08:37]opened in 1710461757 [08:08:37]opened+sec_in_day 1710548157 [08:08:37]quantity*price = 20427 [08:08:37]sum+1 = 20428 [08:08:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 204.00 Внесено: 204.00 СДАЧА: 0.00 НСП 1% : 1.81 НДС 12% : 21.69 Наличными: 204.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 43 15.03.2024 08:08 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108520 ФПД: 111584531366565 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T080841&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108520&fm=111584531366565&tin=02508201610067®Number=0000000000091911&sum=20400 [08:08:38]StoreToDocumentArchive [08:08:38]shift 320 fd 108520 [08:08:38]save to /storage/0320/doc_00108520 [08:08:38]save last doc name /storage/0320/doc_00108520 to /storage/kkm_last_doc_name [08:08:38]save OK [08:08:38]Clear old archive folders... [08:08:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:08:38]tlvbuf is 000EEBA0 [08:08:38]SAM_PROTO_ClearQueue [08:08:38]wFMCommunicate request_size=4 [08:08:38]MH_SAM_APDU [08:08:38]CAPDU: 80 09 00 00 [08:08:38]Write to MH i2c: E2 08 00 5B 1C 80 09 00 00 00 00 00 00 E9 [08:08:38]Write i2c OK [08:08:38]MH_I2C_Read... [08:08:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:08:39]Read from MH i2c: E2 [08:08:39]MH_I2C_Read... [08:08:39]Read from MH i2c: E2 03 00 [08:08:39]MH_I2C_Read... [08:08:39]Read from MH i2c: E2 03 00 5B 1C 00 90 00 EB [08:08:39]RAPDU: 90 00 [08:08:39]wFMCommunicate OK [08:08:39]SAM_PROTO_ClearQueue done [08:08:39]KKMCreateOFDPacket [08:08:39]OFDProtocolAddRootSTLVToBuf [08:08:39]FM_MakeSignedData [08:08:39]FM_MakeSignedData [08:08:39]SAM_PROTO_SignData [08:08:39]wFMCommunicate request_size=4 [08:08:39]MH_SAM_APDU [08:08:39]CAPDU: 80 0D 01 02 [08:08:39]Write to MH i2c: E2 08 00 5C 1C 80 0D 01 02 00 00 00 00 F1 [08:08:39]Write i2c OK [08:08:39]MH_I2C_Read... [08:08:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:08:39]Read from MH i2c: E2 [08:08:39]MH_I2C_Read... [08:08:39]Read from MH i2c: E2 03 00 [08:08:39]MH_I2C_Read... [08:08:39]Read from MH i2c: E2 03 00 5C 1C 00 90 00 EC [08:08:39]RAPDU: 90 00 [08:08:39]wFMCommunicate OK [08:08:39]wFMCommunicate request_size=255 [08:08:39]MH_SAM_APDU [08:08:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 CB 4F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 4F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 08 00 00 00 00 07 04 06 00 B0 4F 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 09 02 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E8 A7 01 00 35 04 06 00 65 [08:08:39]Write to MH i2c: E2 02 01 5D 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 CB 4F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 4F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 08 00 00 00 00 07 04 06 00 B0 4F 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 09 02 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E8 A7 01 00 35 04 06 00 65 00 00 41 [08:08:39]Write i2c OK [08:08:39]MH_I2C_Read... [08:08:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:39]Read from MH i2c: E2 [08:08:39]MH_I2C_Read... [08:08:39]Read from MH i2c: E2 03 00 [08:08:39]MH_I2C_Read... [08:08:39]Read from MH i2c: E2 03 00 5D 1C 00 90 00 ED [08:08:39]RAPDU: 90 00 [08:08:39]wFMCommunicate OK [08:08:39]wFMCommunicate request_size=10 [08:08:39]MH_SAM_APDU [08:08:39]CAPDU: 80 0D 02 02 05 7C 4C 5A C2 A5 [08:08:39]Write to MH i2c: E2 0D 00 5E 1C 80 0D 02 02 05 00 7C 4C 5A C2 A5 00 00 87 [08:08:39]Write i2c OK [08:08:39]MH_I2C_Read... [08:08:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:39]Read from MH i2c: E2 [08:08:39]MH_I2C_Read... [08:08:39]Read from MH i2c: E2 03 00 [08:08:39]MH_I2C_Read... [08:08:39]Read from MH i2c: E2 03 00 5E 1C 00 90 00 EE [08:08:39]RAPDU: 90 00 [08:08:39]wFMCommunicate OK [08:08:39]wFMCommunicate request_size=4 [08:08:39]MH_SAM_APDU [08:08:39]CAPDU: 80 0D 03 02 [08:08:39]Write to MH i2c: E2 08 00 5F 1C 80 0D 03 02 00 00 00 00 F6 [08:08:39]Write i2c OK [08:08:39]MH_I2C_Read... [08:08:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:08:39]Read from MH i2c: E2 [08:08:39]MH_I2C_Read... [08:08:39]Read from MH i2c: E2 0B 00 [08:08:39]MH_I2C_Read... [08:08:39]Read from MH i2c: E2 0B 00 5F 1C 00 F5 DF C7 9F BB 68 2E 11 90 00 93 [08:08:39]RAPDU: F5 DF C7 9F BB 68 2E 11 90 00 [08:08:39]wFMCommunicate OK [08:08:39]SAM_PROTO_SignData done [08:08:39]FM_MakeSignedData done [08:08:39]CreateOFDProtocolMessage [08:08:39]wFMCommunicate request_size=4 [08:08:39]MH_SAM_APDU [08:08:39]CAPDU: 80 11 00 00 [08:08:39]Write to MH i2c: E2 08 00 60 1C 80 11 00 00 00 00 00 00 F6 [08:08:39]Write i2c OK [08:08:39]MH_I2C_Read... [08:08:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:39]Read from MH i2c: E2 [08:08:39]MH_I2C_Read... [08:08:39]Read from MH i2c: E2 17 00 [08:08:39]MH_I2C_Read... [08:08:39]Read from MH i2c: E2 17 00 60 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 4A [08:08:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:08:39]wFMCommunicate OK [08:08:39]CreateOFDProtocolMessage done [08:08:39]OFDSenderStorePacket 108520 [08:08:39]StoreOFDPacket docnum=108520 [08:08:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 93 11 07 01 92 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 CB 4F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 4F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 08 00 00 00 00 07 04 06 00 B0 4F 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 09 02 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E8 A7 01 00 35 04 06 00 65 7C 4C 5A C2 A5 F5 DF C7 9F BB 68 2E 11 [08:08:39]CheckFolder [08:08:39]dirname=/storage/ofd_packets [08:08:39]CheckFolder done [08:08:39]ProducePacketName [08:08:39]name=ofd_packets/00108520 [08:08:39]NVStorageSaveData ofd_packets/00108520 [08:08:39]File name is /storage/ofd_packets/00108520 [08:08:39]Write 301 bytes [08:08:39]NVStorageSaveData done [08:08:39]OFDSenderStorePacket done [08:08:39]KKMCreateOFDPacket done [08:08:39]NVStorageSaveData kkm_last_timestamp [08:08:39]File name is /storage/kkm_last_timestamp [08:08:39]Write 4 bytes [08:08:39]NVStorageSaveData done [08:08:39]ExternCall_PrintAddStr [08:08:39]wPrintStart [08:08:39]Write to MH i2c: 01 00 00 61 1C 7D [08:08:39]Write i2c OK [08:08:39]MH_I2C_Read... [08:08:39]Read from MH i2c: 01 [08:08:39]MH_I2C_Read... [08:08:39]Read from MH i2c: 01 07 00 [08:08:39]MH_I2C_Read... [08:08:39]Read from MH i2c: 01 07 00 61 1C 00 00 00 00 00 FF 0F 92 [08:08:39]RasterBufferAndPrint [08:08:39]line Счет N : (1)1040678 [08:08:39]line ИНН: 02508201610067 [08:08:39]line Контрольно-Кассовый Чек [08:08:39]line ПРОДАЖА [08:08:39]line ТРК (МРК, ГНК) : 53 [08:08:39]line Товар: 2710124130 [08:08:39]line Аи-92-К-5 [08:08:39]line 3.300 * 61.90 [08:08:39]line = 204.27 [08:08:39]line НДС 12% НСП 1% [08:08:39]line > о реализуемом товаре [08:08:39]line ОКРУГЛЕНИЕ: -0.27 [08:08:39]line ИТОГО: 204.00 [08:08:39]line Внесено: 204.00 [08:08:39]line СДАЧА: 0.00 [08:08:39]line НСП 1% : 1.81 [08:08:39]line НДС 12% : 21.69 [08:08:39]line Наличными: 204.00 [08:08:39]line Безнал.: 0.00 [08:08:39]line Место: АЗС № 15 "Партнер Нефть" [08:08:39]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [08:08:39]line СНО: Общий режим [08:08:39]line Чек 43 15.03.2024 08:08 [08:08:39]line Смена: 320 ФФД: 1.0 [08:08:39]line ЗНМ: 0300000266 [08:08:39]line РНМ: 0000000000091911 [08:08:39]line Версия ККМ: 001 [08:08:39]line ФМ: 0000000000871818 [08:08:39]line ФД: 108520 [08:08:39]line ФПД: 111584531366565 [08:08:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T080841&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108520&fm=111584531366565&tin=02508201610067®Number=0000000000091911&sum=20400 [08:08:39]OFD Sender: Processing packet 108520 [packets to send 29, broken 28] [08:08:39]ProducePacketName [08:08:39]name=ofd_packets/00108520 [08:08:39]OFD Sender: To server: pG, [08:08:39]CommunicateWithHost lk.salyk.kg:30040 [08:08:39]ConnectInit lk.salyk.kg [08:08:39]written 0, free lines is 4095 [08:08:39]Connected sock=10 [08:08:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 93 11 07 01 92 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 CB 4F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 4F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 08 00 00 00 00 07 04 06 00 B0 4F 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 09 02 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E8 A7 01 00 35 04 06 00 65 7C 4C 5A C2 A5 F5 DF C7 9F BB 68 2E 11 [08:08:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 4F 00 00 00 FC 60 47 00 2E 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 31 38 10 04 04 00 E8 A7 01 00 F4 03 04 00 A9 AD F3 65 B6 04 01 00 00 A0 4F DD CA 25 F8 64 72 [08:08:40]CommunicateWithHost err = 0 [08:08:40]CheckOFDResponse [08:08:40]1017 (14) - 77093643461234 [08:08:40]1041 (16) - 0000000000871818 [08:08:40]1040 (4) - 108520 [08:08:40]1012 (4) - 15.03.2024 02:08 [08:08:40]1206 (1) - 0 [08:08:40]OFD Sender: Remove packet 108520 [08:08:40]ProducePacketName [08:08:40]name=ofd_packets/00108520 [08:08:40]NVStorageDeleteData [08:08:40]Write to MH i2c: 01 00 00 8C 1C A8 [08:08:40]Write i2c OK [08:08:40]MH_I2C_Read... [08:08:40]Read from MH i2c: 01 [08:08:40]MH_I2C_Read... [08:08:40]Read from MH i2c: 01 07 00 [08:08:40]MH_I2C_Read... [08:08:40]Read from MH i2c: 01 07 00 8C 1C 00 00 00 00 00 D1 0C 8C [08:08:40]RasterBufferAndPrint [08:08:40]line [08:08:40]line [08:08:40]line [08:08:40]line [08:08:40]line [08:08:40]written 0, free lines is 3289 [08:08:40]MH_Cut [08:08:40]Write to MH i2c: D1 01 00 93 1C 01 81 [08:08:40]Write i2c OK [08:08:40]MH_I2C_Read... [08:08:40]Read from MH i2c: D1 [08:08:40]MH_I2C_Read... [08:08:40]Read from MH i2c: D1 01 00 [08:08:40]MH_I2C_Read... [08:08:40]Read from MH i2c: D1 01 00 93 1C 00 80 [08:08:40]Write to MH i2c: 01 00 00 94 1C B0 [08:08:40]Write i2c OK [08:08:40]MH_I2C_Read... [08:08:40]OFD Sender: No OFD packet to send [08:08:41]*** Cut start [08:08:41]*** Purtial cut [08:08:41]*** Stage 1: CUTSNS_PIN = 1 [08:08:41]Read from MH i2c: 01 [08:08:41]MH_I2C_Read... [08:08:41]*** Stop cut motor [08:08:41]*** Cut end [08:08:41]Read from MH i2c: 01 07 00 [08:08:41]MH_I2C_Read... [08:08:41]Read from MH i2c: 01 07 00 94 1C 00 00 00 00 00 FF 0F C5 [08:08:41]process_action close_receipt done [08:08:41]requested_data is exist [08:08:41]produce_requested_data [08:08:41]requested_item fm.sn is exist - process it [08:08:41]wFMCommunicate request_size=4 [08:08:41]MH_SAM_APDU [08:08:41]CAPDU: 80 11 00 00 [08:08:41]Write to MH i2c: E2 08 00 95 1C 80 11 00 00 00 00 00 00 2B [08:08:41]Write i2c OK [08:08:41]MH_I2C_Read... [08:08:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:41]Read from MH i2c: E2 [08:08:41]MH_I2C_Read... [08:08:41]Read from MH i2c: E2 17 00 [08:08:41]MH_I2C_Read... [08:08:41]Read from MH i2c: E2 17 00 95 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 7F [08:08:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:08:41]wFMCommunicate OK [08:08:41]requested_item fd.num is exist - process it [08:08:41]SAM_PROTO_GetFieldsCounters [08:08:41]wFMCommunicate request_size=4 [08:08:41]MH_SAM_APDU [08:08:41]CAPDU: 80 13 00 00 [08:08:41]Write to MH i2c: E2 08 00 96 1C 80 13 00 00 00 00 00 00 2E [08:08:41]Write i2c OK [08:08:41]MH_I2C_Read... [08:08:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:08:41]Read from MH i2c: E2 [08:08:41]MH_I2C_Read... [08:08:41]Read from MH i2c: E2 62 00 [08:08:41]MH_I2C_Read... [08:08:41]Read from MH i2c: E2 62 00 96 1C 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 E8 A7 01 00 0E 04 04 00 40 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 9E [08:08:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 E8 A7 01 00 0E 04 04 00 40 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 [08:08:41]wFMCommunicate OK [08:08:41]SAM_PROTO_GetFieldsCounters done [08:08:41]requested_item shift.num is exist - process it [08:08:41]requested_item shift.opened is exist - process it [08:08:41]req_shift_opened [08:08:41]FM_GetShiftState [08:08:41]SAM_PROTO_GetShiftState [08:08:41]wFMCommunicate request_size=4 [08:08:41]MH_SAM_APDU [08:08:41]CAPDU: 80 13 01 00 [08:08:41]Write to MH i2c: E2 08 00 97 1C 80 13 01 00 00 00 00 00 30 [08:08:41]Write i2c OK [08:08:41]MH_I2C_Read... [08:08:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:41]Read from MH i2c: E2 [08:08:41]MH_I2C_Read... [08:08:41]Read from MH i2c: E2 0E 00 [08:08:41]MH_I2C_Read... [08:08:41]Read from MH i2c: E2 0E 00 97 1C 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 64 [08:08:41]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:08:41]wFMCommunicate OK [08:08:41]SAM_PROTO_GetShiftState done [08:08:41]FM_GetShiftState done [08:08:41]req_shift_opened done [08:08:41]requested_item shift.open_date is exist - process it [08:08:41]req_shift_open_date [08:08:41]req_shift_open_date done [08:08:41]produce_requested_data done [08:08:41]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108520,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [08:08:41]process_action_free close_receipt [08:08:41]json_value_free [08:08:41]json_value_free done [08:08:41]process_json_proto returns [08:08:41]Send response to host [08:08:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108520,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [08:08:41]free response buf [08:08:41]execute_script done [08:08:41]execute_script returns [08:08:41]free content buf [08:08:41]Sock 8.Close socket [08:08:41]Sock 8.Thread stoped [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:18]accept exits with 9 [08:13:18]New connection [08:13:18]New thread 3067342180 created [08:13:18]Thread 3067198820 joined [08:13:18]Waiting for new connection... [08:13:18] Sock 9.Parse request [08:13:18]Sock 9.Check first char [08:13:18]Sock 9.First char is OK [08:13:18]request: POST /json_proto HTTP/1.0 [08:13:18]Method: POST [08:13:18]URL: /json_proto [08:13:18]Method is POST - this is cgi request [08:13:18]url: /json_proto [08:13:18]query_string will be loaded in cgi processing [08:13:18]execute_cgi json_proto POST (null) [08:13:18]execute_cgi path=json_proto method=POST [08:13:18]POST find Content-Length [08:13:18]Host: 172.17.32.69:8080 [08:13:18]Content-Length: 678 [08:13:18]Content-Type: application/json [08:13:18] [08:13:18]POST finish read [08:13:18]Found Content-Length = 678 [08:13:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 5.010, "sum" : 310.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:18]execute_script... [08:13: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)1040679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 5.010, "sum" : 310.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:18]POST & json_proto [08:13:18]process_json_proto [08:13:18]json parsed OK: [08:13:18]protocol is kg_v1.0 [08:13:18]action value=close_receipt [08:13:18]process_action close_receipt [08:13:18]cmd_close_receipt [08:13:18]MH_GetDate [08:13:18]Write to MH i2c: F0 00 00 98 1C A3 [08:13:18]Write i2c OK [08:13:18]MH_I2C_Read... [08:13:18]Read from MH i2c: F0 [08:13:18]MH_I2C_Read... [08:13:18]Read from MH i2c: F0 09 00 [08:13:18]MH_I2C_Read... [08:13:18]Read from MH i2c: F0 09 00 98 1C 00 22 03 F4 65 D5 0F D3 65 46 [08:13:18]GetLastDocTimeStamp 1710490121 [08:13:18]current date 1710490402 [08:13:18]FM_GetShiftState [08:13:18]SAM_PROTO_GetShiftState [08:13:18]wFMCommunicate request_size=4 [08:13:18]MH_SAM_APDU [08:13:18]CAPDU: 80 13 01 00 [08:13:18]Write to MH i2c: E2 08 00 99 1C 80 13 01 00 00 00 00 00 32 [08:13:18]Write i2c OK [08:13:18]MH_I2C_Read... [08:13:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:18]Read from MH i2c: E2 [08:13:18]MH_I2C_Read... [08:13:18]Read from MH i2c: E2 0E 00 [08:13:18]MH_I2C_Read... [08:13:18]Read from MH i2c: E2 0E 00 99 1C 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 66 [08:13:18]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:13:18]wFMCommunicate OK [08:13:18]SAM_PROTO_GetShiftState done [08:13:18]FM_GetShiftState done [08:13:18]opened in 1710461757 [08:13:18]opened+sec_in_day 1710548157 [08:13:18]quantity*price = 31011 [08:13:18]sum+1 = 31013 [08:13:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 310.00 Внесено: 310.00 СДАЧА: 0.00 НСП 1% : 2.74 НДС 12% : 32.93 Наличными: 310.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 44 15.03.2024 08:13 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108521 ФПД: 49195603724805 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T081322&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108521&fm=49195603724805&tin=02508201610067®Number=0000000000091911&sum=31000 [08:13:19]StoreToDocumentArchive [08:13:19]shift 320 fd 108521 [08:13:19]save to /storage/0320/doc_00108521 [08:13:19]save last doc name /storage/0320/doc_00108521 to /storage/kkm_last_doc_name [08:13:19]save OK [08:13:19]Clear old archive folders... [08:13:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:13:19]tlvbuf is 000EEC30 [08:13:19]SAM_PROTO_ClearQueue [08:13:19]wFMCommunicate request_size=4 [08:13:19]MH_SAM_APDU [08:13:19]CAPDU: 80 09 00 00 [08:13:19]Write to MH i2c: E2 08 00 A6 1C 80 09 00 00 00 00 00 00 34 [08:13:19]Write i2c OK [08:13:19]MH_I2C_Read... [08:13:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:13:19]Read from MH i2c: E2 [08:13:19]MH_I2C_Read... [08:13:19]Read from MH i2c: E2 03 00 [08:13:19]MH_I2C_Read... [08:13:19]Read from MH i2c: E2 03 00 A6 1C 00 90 00 36 [08:13:19]RAPDU: 90 00 [08:13:19]wFMCommunicate OK [08:13:19]SAM_PROTO_ClearQueue done [08:13:19]KKMCreateOFDPacket [08:13:19]OFDProtocolAddRootSTLVToBuf [08:13:19]FM_MakeSignedData [08:13:19]FM_MakeSignedData [08:13:19]SAM_PROTO_SignData [08:13:19]wFMCommunicate request_size=4 [08:13:19]MH_SAM_APDU [08:13:19]CAPDU: 80 0D 01 02 [08:13:19]Write to MH i2c: E2 08 00 A7 1C 80 0D 01 02 00 00 00 00 3C [08:13:19]Write i2c OK [08:13:19]MH_I2C_Read... [08:13:20]Read from MH i2c: E2 [08:13:20]MH_I2C_Read... [08:13:20]Read from MH i2c: E2 03 00 [08:13:20]MH_I2C_Read... [08:13:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:13:20]Read from MH i2c: E2 03 00 A7 1C 00 90 00 37 [08:13:20]RAPDU: 90 00 [08:13:20]wFMCommunicate OK [08:13:20]wFMCommunicate request_size=255 [08:13:20]MH_SAM_APDU [08:13:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 13 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 24 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 22 03 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E9 A7 01 00 35 04 06 00 2C [08:13:20]Write to MH i2c: E2 02 01 A8 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 13 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 24 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 22 03 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E9 A7 01 00 35 04 06 00 2C 00 00 91 [08:13:20]Write i2c OK [08:13:20]MH_I2C_Read... [08:13:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:20]Read from MH i2c: E2 [08:13:20]MH_I2C_Read... [08:13:20]Read from MH i2c: E2 03 00 [08:13:20]MH_I2C_Read... [08:13:20]Read from MH i2c: E2 03 00 A8 1C 00 90 00 38 [08:13:20]RAPDU: 90 00 [08:13:20]wFMCommunicate OK [08:13:20]wFMCommunicate request_size=10 [08:13:20]MH_SAM_APDU [08:13:20]CAPDU: 80 0D 02 02 05 BE 3E 7C 0A 05 [08:13:20]Write to MH i2c: E2 0D 00 A9 1C 80 0D 02 02 05 00 BE 3E 7C 0A 05 00 00 D0 [08:13:20]Write i2c OK [08:13:20]MH_I2C_Read... [08:13:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:20]Read from MH i2c: E2 [08:13:20]MH_I2C_Read... [08:13:20]Read from MH i2c: E2 03 00 [08:13:20]MH_I2C_Read... [08:13:20]Read from MH i2c: E2 03 00 A9 1C 00 90 00 39 [08:13:20]RAPDU: 90 00 [08:13:20]wFMCommunicate OK [08:13:20]wFMCommunicate request_size=4 [08:13:20]MH_SAM_APDU [08:13:20]CAPDU: 80 0D 03 02 [08:13:20]Write to MH i2c: E2 08 00 AA 1C 80 0D 03 02 00 00 00 00 41 [08:13:20]Write i2c OK [08:13:20]MH_I2C_Read... [08:13:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:13:20]Read from MH i2c: E2 [08:13:20]MH_I2C_Read... [08:13:20]Read from MH i2c: E2 0B 00 [08:13:20]MH_I2C_Read... [08:13:20]Read from MH i2c: E2 0B 00 AA 1C 00 5A AB E4 F5 50 44 A0 A8 90 00 FC [08:13:20]RAPDU: 5A AB E4 F5 50 44 A0 A8 90 00 [08:13:20]wFMCommunicate OK [08:13:20]SAM_PROTO_SignData done [08:13:20]FM_MakeSignedData done [08:13:20]CreateOFDProtocolMessage [08:13:20]wFMCommunicate request_size=4 [08:13:20]MH_SAM_APDU [08:13:20]CAPDU: 80 11 00 00 [08:13:20]Write to MH i2c: E2 08 00 AB 1C 80 11 00 00 00 00 00 00 41 [08:13:20]Write i2c OK [08:13:20]MH_I2C_Read... [08:13:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:20]Read from MH i2c: E2 [08:13:20]MH_I2C_Read... [08:13:20]Read from MH i2c: E2 17 00 [08:13:20]MH_I2C_Read... [08:13:20]Read from MH i2c: E2 17 00 AB 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 95 [08:13:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:13:20]wFMCommunicate OK [08:13:20]CreateOFDProtocolMessage done [08:13:20]OFDSenderStorePacket 108521 [08:13:20]StoreOFDPacket docnum=108521 [08:13:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 3D 4F 07 01 A1 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 13 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 24 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 22 03 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E9 A7 01 00 35 04 06 00 2C BE 3E 7C 0A 05 5A AB E4 F5 50 44 A0 A8 [08:13:20]CheckFolder [08:13:20]dirname=/storage/ofd_packets [08:13:20]CheckFolder done [08:13:20]ProducePacketName [08:13:20]name=ofd_packets/00108521 [08:13:20]NVStorageSaveData ofd_packets/00108521 [08:13:20]File name is /storage/ofd_packets/00108521 [08:13:20]Write 301 bytes [08:13:20]NVStorageSaveData done [08:13:20]OFDSenderStorePacket done [08:13:20]KKMCreateOFDPacket done [08:13:20]NVStorageSaveData kkm_last_timestamp [08:13:20]File name is /storage/kkm_last_timestamp [08:13:20]Write 4 bytes [08:13:20]NVStorageSaveData done [08:13:20]ExternCall_PrintAddStr [08:13:20]wPrintStart [08:13:20]Write to MH i2c: 01 00 00 AC 1C C8 [08:13:20]Write i2c OK [08:13:20]MH_I2C_Read... [08:13:20]Read from MH i2c: 01 [08:13:20]MH_I2C_Read... [08:13:20]Read from MH i2c: 01 07 00 [08:13:20]MH_I2C_Read... [08:13:20]Read from MH i2c: 01 07 00 AC 1C 00 00 00 00 00 FF 0F DD [08:13:20]RasterBufferAndPrint [08:13:20]line Счет N : (1)1040679 [08:13:20]line ИНН: 02508201610067 [08:13:20]line Контрольно-Кассовый Чек [08:13:20]line ПРОДАЖА [08:13:20]line ТРК (МРК, ГНК) : 33 [08:13:20]line Товар: 2710124130 [08:13:20]line Аи-92-К-5 [08:13:20]line 5.010 * 61.90 [08:13:20]line = 310.12 [08:13:20]line НДС 12% НСП 1% [08:13:20]line > о реализуемом товаре [08:13:20]line ОКРУГЛЕНИЕ: -0.12 [08:13:20]line ИТОГО: 310.00 [08:13:20]line Внесено: 310.00 [08:13:20]line СДАЧА: 0.00 [08:13:20]line НСП 1% : 2.74 [08:13:20]line НДС 12% : 32.93 [08:13:20]line Наличными: 310.00 [08:13:20]line Безнал.: 0.00 [08:13:20]line Место: АЗС № 15 "Партнер Нефть" [08:13:20]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [08:13:20]line СНО: Общий режим [08:13:20]line Чек 44 15.03.2024 08:13 [08:13:20]line Смена: 320 ФФД: 1.0 [08:13:20]line ЗНМ: 0300000266 [08:13:20]line РНМ: 0000000000091911 [08:13:20]line Версия ККМ: 001 [08:13:20]line ФМ: 0000000000871818 [08:13:20]line ФД: 108521 [08:13:20]line ФПД: 49195603724805 [08:13:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T081322&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108521&fm=49195603724805&tin=02508201610067®Number=0000000000091911&sum=31000 [08:13:20]OFD Sender: Processing packet 108521 [packets to send 29, broken 28] [08:13:20]ProducePacketName [08:13:20]name=ofd_packets/00108521 [08:13:20]OFD Sender: To server: pG, [08:13:20]CommunicateWithHost lk.salyk.kg:30040 [08:13:20]ConnectInit lk.salyk.kg [08:13:20]written 0, free lines is 4095 [08:13:20]Connected sock=10 [08:13: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 31 38 0F 01 00 00 3D 4F 07 01 A1 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 13 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 24 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 22 03 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E9 A7 01 00 35 04 06 00 2C BE 3E 7C 0A 05 5A AB E4 F5 50 44 A0 A8 [08:13: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 31 38 4F 00 00 00 A4 D3 47 00 6B A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 E9 A7 01 00 F4 03 04 00 C2 AE F3 65 B6 04 01 00 00 FF 68 76 1B 8F AB 11 F4 [08:13:21]CommunicateWithHost err = 0 [08:13:21]CheckOFDResponse [08:13:21]1017 (14) - 77093643461234 [08:13:21]1041 (16) - 0000000000871818 [08:13:21]1040 (4) - 108521 [08:13:21]1012 (4) - 15.03.2024 02:13 [08:13:21]1206 (1) - 0 [08:13:21]OFD Sender: Remove packet 108521 [08:13:21]ProducePacketName [08:13:21]name=ofd_packets/00108521 [08:13:21]NVStorageDeleteData [08:13:21]Write to MH i2c: 01 00 00 D7 1C F3 [08:13:21]Write i2c OK [08:13:21]MH_I2C_Read... [08:13:21]Read from MH i2c: 01 [08:13:21]MH_I2C_Read... [08:13:21]Read from MH i2c: 01 07 00 [08:13:21]MH_I2C_Read... [08:13:21]Read from MH i2c: 01 07 00 D7 1C 00 00 00 00 00 C2 0C C8 [08:13:21]RasterBufferAndPrint [08:13:21]line [08:13:21]line [08:13:21]line [08:13:21]line [08:13:21]line [08:13:21]written 0, free lines is 3272 [08:13:21]MH_Cut [08:13:21]Write to MH i2c: D1 01 00 DE 1C 01 CC [08:13:21]Write i2c OK [08:13:21]MH_I2C_Read... [08:13:21]Read from MH i2c: D1 [08:13:21]MH_I2C_Read... [08:13:21]Read from MH i2c: D1 01 00 [08:13:21]MH_I2C_Read... [08:13:21]Read from MH i2c: D1 01 00 DE 1C 00 CB [08:13:21]Write to MH i2c: 01 00 00 DF 1C FB [08:13:21]Write i2c OK [08:13:21]MH_I2C_Read... [08:13:21]OFD Sender: No OFD packet to send [08:13:22]*** Cut start [08:13:22]*** Purtial cut [08:13:22]*** Stage 1: CUTSNS_PIN = 1 [08:13:22]Read from MH i2c: 01 [08:13:22]MH_I2C_Read... [08:13:22]*** Stop cut motor [08:13:22]*** Cut end [08:13:22]Read from MH i2c: 01 07 00 [08:13:22]MH_I2C_Read... [08:13:22]Read from MH i2c: 01 07 00 DF 1C 00 00 00 00 00 FF 0F 10 [08:13:22]process_action close_receipt done [08:13:22]requested_data is exist [08:13:22]produce_requested_data [08:13:22]requested_item fm.sn is exist - process it [08:13:22]wFMCommunicate request_size=4 [08:13:22]MH_SAM_APDU [08:13:22]CAPDU: 80 11 00 00 [08:13:22]Write to MH i2c: E2 08 00 E0 1C 80 11 00 00 00 00 00 00 76 [08:13:22]Write i2c OK [08:13:22]MH_I2C_Read... [08:13:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:22]Read from MH i2c: E2 [08:13:22]MH_I2C_Read... [08:13:22]Read from MH i2c: E2 17 00 [08:13:22]MH_I2C_Read... [08:13:22]Read from MH i2c: E2 17 00 E0 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 CA [08:13:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:13:22]wFMCommunicate OK [08:13:22]requested_item fd.num is exist - process it [08:13:22]SAM_PROTO_GetFieldsCounters [08:13:22]wFMCommunicate request_size=4 [08:13:22]MH_SAM_APDU [08:13:22]CAPDU: 80 13 00 00 [08:13:22]Write to MH i2c: E2 08 00 E1 1C 80 13 00 00 00 00 00 00 79 [08:13:22]Write i2c OK [08:13:22]MH_I2C_Read... [08:13:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:13:22]Read from MH i2c: E2 [08:13:22]MH_I2C_Read... [08:13:22]Read from MH i2c: E2 62 00 [08:13:22]MH_I2C_Read... [08:13:22]Read from MH i2c: E2 62 00 E1 1C 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 E9 A7 01 00 0E 04 04 00 40 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 ED [08:13: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 E9 A7 01 00 0E 04 04 00 40 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 [08:13:22]wFMCommunicate OK [08:13:22]SAM_PROTO_GetFieldsCounters done [08:13:22]requested_item shift.num is exist - process it [08:13:22]requested_item shift.opened is exist - process it [08:13:22]req_shift_opened [08:13:22]FM_GetShiftState [08:13:22]SAM_PROTO_GetShiftState [08:13:22]wFMCommunicate request_size=4 [08:13:22]MH_SAM_APDU [08:13:22]CAPDU: 80 13 01 00 [08:13:22]Write to MH i2c: E2 08 00 E2 1C 80 13 01 00 00 00 00 00 7B [08:13:22]Write i2c OK [08:13:22]MH_I2C_Read... [08:13:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:22]Read from MH i2c: E2 [08:13:22]MH_I2C_Read... [08:13:22]Read from MH i2c: E2 0E 00 [08:13:22]MH_I2C_Read... [08:13:22]Read from MH i2c: E2 0E 00 E2 1C 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 AF [08:13:22]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:13:22]wFMCommunicate OK [08:13:22]SAM_PROTO_GetShiftState done [08:13:22]FM_GetShiftState done [08:13:22]req_shift_opened done [08:13:22]requested_item shift.open_date is exist - process it [08:13:22]req_shift_open_date [08:13:22]req_shift_open_date done [08:13:22]produce_requested_data done [08:13:22]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108521,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [08:13:22]process_action_free close_receipt [08:13:22]json_value_free [08:13:22]json_value_free done [08:13:22]process_json_proto returns [08:13:22]Send response to host [08:13:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108521,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [08:13:22]free response buf [08:13:22]execute_script done [08:13:22]execute_script returns [08:13:22]free content buf [08:13:22]Sock 9.Close socket [08:13:22]Sock 9.Thread stoped [08:13:26]OFD Sender: No OFD packet to send [08:13:31]OFD Sender: No OFD packet to send [08:13:36]OFD Sender: No OFD packet to send [08:13:41]OFD Sender: No OFD packet to send [08:13:46]OFD Sender: No OFD packet to send [08:13:51]OFD Sender: No OFD packet to send [08:13:56]OFD Sender: No OFD packet to send [08:14:01]OFD Sender: No OFD packet to send [08:14:06]OFD Sender: No OFD packet to send [08:14:11]OFD Sender: No OFD packet to send [08:14:16]OFD Sender: No OFD packet to send [08:14:21]OFD Sender: No OFD packet to send [08:14:26]OFD Sender: No OFD packet to send [08:14:31]OFD Sender: No OFD packet to send [08:14:36]OFD Sender: No OFD packet to send [08:14:41]OFD Sender: No OFD packet to send [08:14:46]OFD Sender: No OFD packet to send [08:14:48]accept exits with 8 [08:14:48]New connection [08:14:48]New thread 3067198820 created [08:14:48]Thread 3067342180 joined [08:14:48]Waiting for new connection... [08:14:48] Sock 8.Parse request [08:14:48]Sock 8.Check first char [08:14:48]Sock 8.First char is OK [08:14:48]request: POST /json_proto HTTP/1.0 [08:14:48]Method: POST [08:14:48]URL: /json_proto [08:14:48]Method is POST - this is cgi request [08:14:48]url: /json_proto [08:14:48]query_string will be loaded in cgi processing [08:14:48]execute_cgi json_proto POST (null) [08:14:48]execute_cgi path=json_proto method=POST [08:14:48]POST find Content-Length [08:14:48]Host: 172.17.32.69:8080 [08:14:48]Content-Length: 1198 [08:14:48]Content-Type: application/json [08:14:48] [08:14:48]POST finish read [08:14:48]Found Content-Length = 1198 [08:14:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040680\u000A15.03.2024 08:07\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 73\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 619.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3832463\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:14:48]execute_script... [08:14:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040680\u000A15.03.2024 08:07\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 73\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 619.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3832463\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:14:48]POST & json_proto [08:14:48]process_json_proto [08:14:48]json parsed OK: [08:14:48]protocol is kg_v1.0 [08:14:48]action value=print_text [08:14:48]process_action print_text [08:14:48]cmd_print_text [08:14:48]ExternCall_PrintAddStr [08:14:48]wPrintStart [08:14:48]Write to MH i2c: 01 00 00 E3 1C FF [08:14:48]Write i2c OK [08:14:48]MH_I2C_Read... [08:14:48]Read from MH i2c: 01 [08:14:48]MH_I2C_Read... [08:14:48]Read from MH i2c: 01 07 00 [08:14:48]MH_I2C_Read... [08:14:48]Read from MH i2c: 01 07 00 E3 1C 00 00 00 00 00 FF 0F 14 [08:14:48]RasterBufferAndPrint [08:14:48]line *****ТОВАРНЫЙ ЧЕК***** [08:14:48]line АЗС 15 [08:14:48]line Партнер нефть [08:14:48]line 02508201610067 [08:14:48]line Кассир : Максатбек у Д. [08:14:48]line Счет N : (1)1040680 [08:14:48]line 15.03.2024 08:07 [08:14:48]line ПРОДАЖА [08:14:48]line ТРК (МРК, ГНК): 73 [08:14:48]line Вид ГСМ : 2710124130 [08:14:48]line Аи-92-К-5 [08:14:48]line 10.000 x 61.90 [08:14:48]line ИТОГ: 619.00 [08:14:48]line Тип оплаты: Талоны: Партнер нефть [08:14:48]line 3832463 [08:14:48]line ______________________ [08:14:48]line (подпись) [08:14:48]written 0, free lines is 4095 [08:14:48]Write to MH i2c: 01 00 00 F8 1C 14 [08:14:48]Write i2c OK [08:14:48]MH_I2C_Read... [08:14:48]Read from MH i2c: 01 [08:14:48]MH_I2C_Read... [08:14:48]Read from MH i2c: 01 07 00 [08:14:48]MH_I2C_Read... [08:14:48]Read from MH i2c: 01 07 00 F8 1C 00 00 00 00 00 F8 0D 20 [08:14:48]RasterBufferAndPrint [08:14:48]line [08:14:48]line [08:14:48]line [08:14:48]line [08:14:48]line [08:14:48]written 0, free lines is 3578 [08:14:48]MH_Cut [08:14:48]Write to MH i2c: D1 01 00 FF 1C 01 ED [08:14:48]Write i2c OK [08:14:48]MH_I2C_Read... [08:14:48]Read from MH i2c: D1 [08:14:48]MH_I2C_Read... [08:14:48]Read from MH i2c: D1 01 00 [08:14:48]MH_I2C_Read... [08:14:48]Read from MH i2c: D1 01 00 FF 1C 00 EC [08:14:48]Write to MH i2c: 01 00 00 00 1D 1D [08:14:48]Write i2c OK [08:14:48]MH_I2C_Read... [08:14:49]*** Cut start [08:14:49]*** Purtial cut [08:14:49]*** Stage 1: CUTSNS_PIN = 1 [08:14:49]Read from MH i2c: 01 [08:14:49]MH_I2C_Read... [08:14:49]*** Stop cut motor [08:14:49]*** Cut end [08:14:49]Read from MH i2c: 01 07 00 [08:14:49]MH_I2C_Read... [08:14:49]Read from MH i2c: 01 07 00 00 1D 00 00 00 00 00 FF 0F 32 [08:14:49]process_action print_text done [08:14:49]requested_data is exist [08:14:49]produce_requested_data [08:14:49]requested_item fm.sn is exist - process it [08:14:49]wFMCommunicate request_size=4 [08:14:49]MH_SAM_APDU [08:14:49]CAPDU: 80 11 00 00 [08:14:49]Write to MH i2c: E2 08 00 01 1D 80 11 00 00 00 00 00 00 98 [08:14:49]Write i2c OK [08:14:49]MH_I2C_Read... [08:14:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:49]Read from MH i2c: E2 [08:14:49]MH_I2C_Read... [08:14:49]Read from MH i2c: E2 17 00 [08:14:49]MH_I2C_Read... [08:14:49]Read from MH i2c: E2 17 00 01 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 EC [08:14:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:14:49]wFMCommunicate OK [08:14:49]requested_item fd.num is exist - process it [08:14:49]SAM_PROTO_GetFieldsCounters [08:14:49]wFMCommunicate request_size=4 [08:14:49]MH_SAM_APDU [08:14:49]CAPDU: 80 13 00 00 [08:14:49]Write to MH i2c: E2 08 00 02 1D 80 13 00 00 00 00 00 00 9B [08:14:49]Write i2c OK [08:14:49]MH_I2C_Read... [08:14:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:14:49]Read from MH i2c: E2 [08:14:49]MH_I2C_Read... [08:14:49]Read from MH i2c: E2 62 00 [08:14:49]MH_I2C_Read... [08:14:49]Read from MH i2c: E2 62 00 02 1D 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 E9 A7 01 00 0E 04 04 00 40 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 0F [08:14: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 E9 A7 01 00 0E 04 04 00 40 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 [08:14:49]wFMCommunicate OK [08:14:49]SAM_PROTO_GetFieldsCounters done [08:14:49]requested_item shift.num is exist - process it [08:14:49]requested_item shift.opened is exist - process it [08:14:49]req_shift_opened [08:14:49]FM_GetShiftState [08:14:49]SAM_PROTO_GetShiftState [08:14:49]wFMCommunicate request_size=4 [08:14:49]MH_SAM_APDU [08:14:49]CAPDU: 80 13 01 00 [08:14:49]Write to MH i2c: E2 08 00 03 1D 80 13 01 00 00 00 00 00 9D [08:14:49]Write i2c OK [08:14:49]MH_I2C_Read... [08:14:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:49]Read from MH i2c: E2 [08:14:49]MH_I2C_Read... [08:14:49]Read from MH i2c: E2 0E 00 [08:14:49]MH_I2C_Read... [08:14:49]Read from MH i2c: E2 0E 00 03 1D 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 D1 [08:14:49]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:14:49]wFMCommunicate OK [08:14:49]SAM_PROTO_GetShiftState done [08:14:49]FM_GetShiftState done [08:14:49]req_shift_opened done [08:14:49]requested_item shift.open_date is exist - process it [08:14:49]req_shift_open_date [08:14:49]req_shift_open_date done [08:14:49]produce_requested_data done [08:14:49]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108521,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [08:14:49]process_action_free print_text [08:14:49]json_value_free [08:14:49]json_value_free done [08:14:49]process_json_proto returns [08:14:49]Send response to host [08:14:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108521,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [08:14:49]free response buf [08:14:49]execute_script done [08:14:49]execute_script returns [08:14:49]free content buf [08:14:49]Sock 8.Close socket [08:14:49]Sock 8.Thread stoped [08:14:51]OFD Sender: No OFD packet to send [08:14:55]accept exits with 9 [08:14:55]New connection [08:14:55]New thread 3067342180 created [08:14:55]Thread 3067198820 joined [08:14:55]Waiting for new connection... [08:14:55] Sock 9.Parse request [08:14:55]Sock 9.Check first char [08:14:55]Sock 9.First char is OK [08:14:55]request: POST /json_proto HTTP/1.0 [08:14:55]Method: POST [08:14:55]URL: /json_proto [08:14:55]Method is POST - this is cgi request [08:14:55]url: /json_proto [08:14:55]query_string will be loaded in cgi processing [08:14:55]execute_cgi json_proto POST (null) [08:14:55]execute_cgi path=json_proto method=POST [08:14:55]POST find Content-Length [08:14:55]Host: 172.17.32.69:8080 [08:14:55]Content-Length: 678 [08:14:55]Content-Type: application/json [08:14:55] [08:14:55]POST finish read [08:14:55]Found Content-Length = 678 [08:14:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:14:55]execute_script... [08:14:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:14:55]POST & json_proto [08:14:55]process_json_proto [08:14:55]json parsed OK: [08:14:55]protocol is kg_v1.0 [08:14:55]action value=close_receipt [08:14:55]process_action close_receipt [08:14:55]cmd_close_receipt [08:14:55]MH_GetDate [08:14:55]Write to MH i2c: F0 00 00 04 1D 10 [08:14:55]Write i2c OK [08:14:55]MH_I2C_Read... [08:14:55]Read from MH i2c: F0 [08:14:55]MH_I2C_Read... [08:14:55]Read from MH i2c: F0 09 00 [08:14:55]MH_I2C_Read... [08:14:55]Read from MH i2c: F0 09 00 04 1D 00 82 03 F4 65 D5 0F D3 65 13 [08:14:55]GetLastDocTimeStamp 1710490402 [08:14:55]current date 1710490498 [08:14:55]FM_GetShiftState [08:14:55]SAM_PROTO_GetShiftState [08:14:55]wFMCommunicate request_size=4 [08:14:55]MH_SAM_APDU [08:14:55]CAPDU: 80 13 01 00 [08:14:55]Write to MH i2c: E2 08 00 05 1D 80 13 01 00 00 00 00 00 9F [08:14:55]Write i2c OK [08:14:55]MH_I2C_Read... [08:14:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:55]Read from MH i2c: E2 [08:14:55]MH_I2C_Read... [08:14:55]Read from MH i2c: E2 0E 00 [08:14:55]MH_I2C_Read... [08:14:55]Read from MH i2c: E2 0E 00 05 1D 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 D3 [08:14:55]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:14:55]wFMCommunicate OK [08:14:55]SAM_PROTO_GetShiftState done [08:14:55]FM_GetShiftState done [08:14:55]opened in 1710461757 [08:14:55]opened+sec_in_day 1710548157 [08:14:55]quantity*price = 50015 [08:14:55]sum+1 = 50016 [08:14:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 45 15.03.2024 08:14 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108522 ФПД: 28772429282490 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T081458&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108522&fm=28772429282490&tin=02508201610067®Number=0000000000091911&sum=50000 [08:14:56]StoreToDocumentArchive [08:14:56]shift 320 fd 108522 [08:14:56]save to /storage/0320/doc_00108522 [08:14:56]save last doc name /storage/0320/doc_00108522 to /storage/kkm_last_doc_name [08:14:56]save OK [08:14:56]Clear old archive folders... [08:14:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:14:56]tlvbuf is B6F20A60 [08:14:56]SAM_PROTO_ClearQueue [08:14:56]wFMCommunicate request_size=4 [08:14:56]MH_SAM_APDU [08:14:56]CAPDU: 80 09 00 00 [08:14:56]Write to MH i2c: E2 08 00 12 1D 80 09 00 00 00 00 00 00 A1 [08:14:56]Write i2c OK [08:14:56]MH_I2C_Read... [08:14:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:14:56]Read from MH i2c: E2 [08:14:56]MH_I2C_Read... [08:14:56]Read from MH i2c: E2 03 00 [08:14:56]MH_I2C_Read... [08:14:56]Read from MH i2c: E2 03 00 12 1D 00 90 00 A3 [08:14:56]RAPDU: 90 00 [08:14:56]wFMCommunicate OK [08:14:56]SAM_PROTO_ClearQueue done [08:14:56]KKMCreateOFDPacket [08:14:56]OFDProtocolAddRootSTLVToBuf [08:14:56]FM_MakeSignedData [08:14:56]FM_MakeSignedData [08:14:56]SAM_PROTO_SignData [08:14:56]wFMCommunicate request_size=4 [08:14:56]MH_SAM_APDU [08:14:56]CAPDU: 80 0D 01 02 [08:14:56]Write to MH i2c: E2 08 00 13 1D 80 0D 01 02 00 00 00 00 A9 [08:14:56]Write i2c OK [08:14:56]MH_I2C_Read... [08:14:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:14:56]OFD Sender: No OFD packet to send [08:14:56]Read from MH i2c: E2 [08:14:56]MH_I2C_Read... [08:14:56]Read from MH i2c: E2 03 00 [08:14:56]MH_I2C_Read... [08:14:56]Read from MH i2c: E2 03 00 13 1D 00 90 00 A4 [08:14:56]RAPDU: 90 00 [08:14:56]wFMCommunicate OK [08:14:56]wFMCommunicate request_size=255 [08:14:56]MH_SAM_APDU [08:14:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 82 03 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 EA A7 01 00 35 04 06 00 1A [08:14:56]Write to MH i2c: E2 02 01 14 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 82 03 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 EA A7 01 00 35 04 06 00 1A 00 00 74 [08:14:56]Write i2c OK [08:14:56]MH_I2C_Read... [08:14:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:56]Read from MH i2c: E2 [08:14:56]MH_I2C_Read... [08:14:56]Read from MH i2c: E2 03 00 [08:14:56]MH_I2C_Read... [08:14:56]Read from MH i2c: E2 03 00 14 1D 00 90 00 A5 [08:14:56]RAPDU: 90 00 [08:14:56]wFMCommunicate OK [08:14:56]wFMCommunicate request_size=10 [08:14:56]MH_SAM_APDU [08:14:56]CAPDU: 80 0D 02 02 05 2B 1A 6D 3C BA [08:14:56]Write to MH i2c: E2 0D 00 15 1D 80 0D 02 02 05 00 2B 1A 6D 3C BA 00 00 5E [08:14:56]Write i2c OK [08:14:56]MH_I2C_Read... [08:14:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:56]Read from MH i2c: E2 [08:14:56]MH_I2C_Read... [08:14:56]Read from MH i2c: E2 03 00 [08:14:56]MH_I2C_Read... [08:14:56]Read from MH i2c: E2 03 00 15 1D 00 90 00 A6 [08:14:56]RAPDU: 90 00 [08:14:56]wFMCommunicate OK [08:14:56]wFMCommunicate request_size=4 [08:14:56]MH_SAM_APDU [08:14:56]CAPDU: 80 0D 03 02 [08:14:56]Write to MH i2c: E2 08 00 16 1D 80 0D 03 02 00 00 00 00 AE [08:14:56]Write i2c OK [08:14:56]MH_I2C_Read... [08:14:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:14:57]Read from MH i2c: E2 [08:14:57]MH_I2C_Read... [08:14:57]Read from MH i2c: E2 0B 00 [08:14:57]MH_I2C_Read... [08:14:57]Read from MH i2c: E2 0B 00 16 1D 00 9C D2 88 76 3D 3E F6 AA 90 00 36 [08:14:57]RAPDU: 9C D2 88 76 3D 3E F6 AA 90 00 [08:14:57]wFMCommunicate OK [08:14:57]SAM_PROTO_SignData done [08:14:57]FM_MakeSignedData done [08:14:57]CreateOFDProtocolMessage [08:14:57]wFMCommunicate request_size=4 [08:14:57]MH_SAM_APDU [08:14:57]CAPDU: 80 11 00 00 [08:14:57]Write to MH i2c: E2 08 00 17 1D 80 11 00 00 00 00 00 00 AE [08:14:57]Write i2c OK [08:14:57]MH_I2C_Read... [08:14:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:57]Read from MH i2c: E2 [08:14:57]MH_I2C_Read... [08:14:57]Read from MH i2c: E2 17 00 [08:14:57]MH_I2C_Read... [08:14:57]Read from MH i2c: E2 17 00 17 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 02 [08:14:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:14:57]wFMCommunicate OK [08:14:57]CreateOFDProtocolMessage done [08:14:57]OFDSenderStorePacket 108522 [08:14:57]StoreOFDPacket docnum=108522 [08:14:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 D8 78 07 01 4D 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 82 03 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 EA A7 01 00 35 04 06 00 1A 2B 1A 6D 3C BA 9C D2 88 76 3D 3E F6 AA [08:14:57]CheckFolder [08:14:57]dirname=/storage/ofd_packets [08:14:57]CheckFolder done [08:14:57]ProducePacketName [08:14:57]name=ofd_packets/00108522 [08:14:57]NVStorageSaveData ofd_packets/00108522 [08:14:57]File name is /storage/ofd_packets/00108522 [08:14:57]Write 301 bytes [08:14:57]NVStorageSaveData done [08:14:57]OFDSenderStorePacket done [08:14:57]KKMCreateOFDPacket done [08:14:57]NVStorageSaveData kkm_last_timestamp [08:14:57]File name is /storage/kkm_last_timestamp [08:14:57]Write 4 bytes [08:14:57]NVStorageSaveData done [08:14:57]ExternCall_PrintAddStr [08:14:57]wPrintStart [08:14:57]Write to MH i2c: 01 00 00 18 1D 35 [08:14:57]Write i2c OK [08:14:57]MH_I2C_Read... [08:14:57]Read from MH i2c: 01 [08:14:57]MH_I2C_Read... [08:14:57]Read from MH i2c: 01 07 00 [08:14:57]MH_I2C_Read... [08:14:57]Read from MH i2c: 01 07 00 18 1D 00 00 00 00 00 FF 0F 4A [08:14:57]RasterBufferAndPrint [08:14:57]line Счет N : (1)1040681 [08:14:57]line ИНН: 02508201610067 [08:14:57]line Контрольно-Кассовый Чек [08:14:57]line ПРОДАЖА [08:14:57]line ТРК (МРК, ГНК) : 53 [08:14:57]line Товар: 2710124130 [08:14:57]line Аи-92-К-5 [08:14:57]line 8.080 * 61.90 [08:14:57]line = 500.15 [08:14:57]line НДС 12% НСП 1% [08:14:57]line > о реализуемом товаре [08:14:57]line ОКРУГЛЕНИЕ: -0.15 [08:14:57]line ИТОГО: 500.00 [08:14:57]line Внесено: 500.00 [08:14:57]line СДАЧА: 0.00 [08:14:57]line НСП 1% : 4.43 [08:14:57]line НДС 12% : 53.11 [08:14:57]line Наличными: 500.00 [08:14:57]line Безнал.: 0.00 [08:14:57]line Место: АЗС № 15 "Партнер Нефть" [08:14:57]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [08:14:57]line СНО: Общий режим [08:14:57]line Чек 45 15.03.2024 08:14 [08:14:57]line Смена: 320 ФФД: 1.0 [08:14:57]line ЗНМ: 0300000266 [08:14:57]line РНМ: 0000000000091911 [08:14:57]line Версия ККМ: 001 [08:14:57]line ФМ: 0000000000871818 [08:14:57]line ФД: 108522 [08:14:57]line ФПД: 28772429282490 [08:14:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T081458&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108522&fm=28772429282490&tin=02508201610067®Number=0000000000091911&sum=50000 [08:14:57]OFD Sender: Processing packet 108522 [packets to send 29, broken 28] [08:14:57]ProducePacketName [08:14:57]name=ofd_packets/00108522 [08:14:57]OFD Sender: To server: pG, [08:14:57]CommunicateWithHost lk.salyk.kg:30040 [08:14:57]ConnectInit lk.salyk.kg [08:14:57]written 0, free lines is 4095 [08:14:57]Connected sock=10 [08:14: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 31 38 0F 01 00 00 D8 78 07 01 4D 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 82 03 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 EA A7 01 00 35 04 06 00 1A 2B 1A 6D 3C BA 9C D2 88 76 3D 3E F6 AA [08:14:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 4F 00 00 00 83 01 47 00 DA 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 EA A7 01 00 F4 03 04 00 23 AF F3 65 B6 04 01 00 00 97 FD 08 3A C0 72 C0 8A [08:14:57]CommunicateWithHost err = 0 [08:14:57]CheckOFDResponse [08:14:57]1017 (14) - 77093643461234 [08:14:57]1041 (16) - 0000000000871818 [08:14:57]1040 (4) - 108522 [08:14:57]1012 (4) - 15.03.2024 02:14 [08:14:57]1206 (1) - 0 [08:14:57]OFD Sender: Remove packet 108522 [08:14:57]ProducePacketName [08:14:57]name=ofd_packets/00108522 [08:14:57]NVStorageDeleteData [08:14:57]Write to MH i2c: 01 00 00 43 1D 60 [08:14:57]Write i2c OK [08:14:57]MH_I2C_Read... [08:14:57]Read from MH i2c: 01 [08:14:57]MH_I2C_Read... [08:14:57]Read from MH i2c: 01 07 00 [08:14:57]MH_I2C_Read... [08:14:57]Read from MH i2c: 01 07 00 43 1D 00 00 00 00 00 D1 0C 44 [08:14:57]RasterBufferAndPrint [08:14:57]line [08:14:57]line [08:14:57]line [08:14:57]line [08:14:57]line [08:14:57]written 0, free lines is 3289 [08:14:57]MH_Cut [08:14:57]Write to MH i2c: D1 01 00 4A 1D 01 39 [08:14:57]Write i2c OK [08:14:57]MH_I2C_Read... [08:14:57]Read from MH i2c: D1 [08:14:57]MH_I2C_Read... [08:14:57]Read from MH i2c: D1 01 00 [08:14:57]MH_I2C_Read... [08:14:57]Read from MH i2c: D1 01 00 4A 1D 00 38 [08:14:57]Write to MH i2c: 01 00 00 4B 1D 68 [08:14:57]Write i2c OK [08:14:57]MH_I2C_Read... [08:14:58]OFD Sender: No OFD packet to send [08:14:58]*** Cut start [08:14:58]*** Purtial cut [08:14:58]*** Stage 1: CUTSNS_PIN = 1 [08:14:58]Read from MH i2c: 01 [08:14:59]MH_I2C_Read... [08:14:59]*** Stop cut motor [08:14:59]*** Cut end [08:14:59]Read from MH i2c: 01 07 00 [08:14:59]MH_I2C_Read... [08:14:59]Read from MH i2c: 01 07 00 4B 1D 00 00 00 00 00 FF 0F 7D [08:14:59]process_action close_receipt done [08:14:59]requested_data is exist [08:14:59]produce_requested_data [08:14:59]requested_item fm.sn is exist - process it [08:14:59]wFMCommunicate request_size=4 [08:14:59]MH_SAM_APDU [08:14:59]CAPDU: 80 11 00 00 [08:14:59]Write to MH i2c: E2 08 00 4C 1D 80 11 00 00 00 00 00 00 E3 [08:14:59]Write i2c OK [08:14:59]MH_I2C_Read... [08:14:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:59]Read from MH i2c: E2 [08:14:59]MH_I2C_Read... [08:14:59]Read from MH i2c: E2 17 00 [08:14:59]MH_I2C_Read... [08:14:59]Read from MH i2c: E2 17 00 4C 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 37 [08:14:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:14:59]wFMCommunicate OK [08:14:59]requested_item fd.num is exist - process it [08:14:59]SAM_PROTO_GetFieldsCounters [08:14:59]wFMCommunicate request_size=4 [08:14:59]MH_SAM_APDU [08:14:59]CAPDU: 80 13 00 00 [08:14:59]Write to MH i2c: E2 08 00 4D 1D 80 13 00 00 00 00 00 00 E6 [08:14:59]Write i2c OK [08:14:59]MH_I2C_Read... [08:14:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:14:59]Read from MH i2c: E2 [08:14:59]MH_I2C_Read... [08:14:59]Read from MH i2c: E2 62 00 [08:14:59]MH_I2C_Read... [08:14:59]Read from MH i2c: E2 62 00 4D 1D 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 EA A7 01 00 0E 04 04 00 40 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 5E [08:14: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 EA A7 01 00 0E 04 04 00 40 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 [08:14:59]wFMCommunicate OK [08:14:59]SAM_PROTO_GetFieldsCounters done [08:14:59]requested_item shift.num is exist - process it [08:14:59]requested_item shift.opened is exist - process it [08:14:59]req_shift_opened [08:14:59]FM_GetShiftState [08:14:59]SAM_PROTO_GetShiftState [08:14:59]wFMCommunicate request_size=4 [08:14:59]MH_SAM_APDU [08:14:59]CAPDU: 80 13 01 00 [08:14:59]Write to MH i2c: E2 08 00 4E 1D 80 13 01 00 00 00 00 00 E8 [08:14:59]Write i2c OK [08:14:59]MH_I2C_Read... [08:14:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:59]Read from MH i2c: E2 [08:14:59]MH_I2C_Read... [08:14:59]Read from MH i2c: E2 0E 00 [08:14:59]MH_I2C_Read... [08:14:59]Read from MH i2c: E2 0E 00 4E 1D 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 1C [08:14:59]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:14:59]wFMCommunicate OK [08:14:59]SAM_PROTO_GetShiftState done [08:14:59]FM_GetShiftState done [08:14:59]req_shift_opened done [08:14:59]requested_item shift.open_date is exist - process it [08:14:59]req_shift_open_date [08:14:59]req_shift_open_date done [08:14:59]produce_requested_data done [08:14:59]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108522,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [08:14:59]process_action_free close_receipt [08:14:59]json_value_free [08:14:59]json_value_free done [08:14:59]process_json_proto returns [08:14:59]Send response to host [08:14:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108522,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [08:14:59]free response buf [08:14:59]execute_script done [08:14:59]execute_script returns [08:14:59]free content buf [08:14:59]Sock 9.Close socket [08:14:59]Sock 9.Thread stoped [08:15:03]OFD Sender: No OFD packet to send [08:15:08]OFD Sender: No OFD packet to send [08:15:13]OFD Sender: No OFD packet to send [08:15:18]OFD Sender: No OFD packet to send [08:15:23]OFD Sender: No OFD packet to send [08:15:28]OFD Sender: No OFD packet to send [08:15:33]OFD Sender: No OFD packet to send [08:15:38]OFD Sender: No OFD packet to send [08:15:43]OFD Sender: No OFD packet to send [08:15:48]OFD Sender: No OFD packet to send [08:15:53]OFD Sender: No OFD packet to send [08:15:58]OFD Sender: No OFD packet to send [08:16:03]OFD Sender: No OFD packet to send [08:16:08]OFD Sender: No OFD packet to send [08:16:13]OFD Sender: No OFD packet to send [08:16:18]OFD Sender: No OFD packet to send [08:16:23]OFD Sender: No OFD packet to send [08:16:28]OFD Sender: No OFD packet to send [08:16:33]OFD Sender: No OFD packet to send [08:16:38]OFD Sender: No OFD packet to send [08:16:43]OFD Sender: No OFD packet to send [08:16:48]OFD Sender: No OFD packet to send [08:16:53]OFD Sender: No OFD packet to send [08:16:58]OFD Sender: No OFD packet to send [08:17:03]OFD Sender: No OFD packet to send [08:17:08]OFD Sender: No OFD packet to send [08:17:13]OFD Sender: No OFD packet to send [08:17:18]OFD Sender: No OFD packet to send [08:17:23]OFD Sender: No OFD packet to send [08:17:28]OFD Sender: No OFD packet to send [08:17:33]OFD Sender: No OFD packet to send [08:17:38]OFD Sender: No OFD packet to send [08:17:43]OFD Sender: No OFD packet to send [08:17:48]OFD Sender: No OFD packet to send [08:17:53]OFD Sender: No OFD packet to send [08:17:58]OFD Sender: No OFD packet to send [08:18:03]OFD Sender: No OFD packet to send [08:18:08]OFD Sender: No OFD packet to send [08:18:13]OFD Sender: No OFD packet to send [08:18:18]OFD Sender: No OFD packet to send [08:18:23]OFD Sender: No OFD packet to send [08:18:28]OFD Sender: No OFD packet to send [08:18:33]OFD Sender: No OFD packet to send [08:18:38]OFD Sender: No OFD packet to send [08:18:43]OFD Sender: No OFD packet to send [08:18:48]OFD Sender: No OFD packet to send [08:18:53]OFD Sender: No OFD packet to send [08:18:58]OFD Sender: No OFD packet to send [08:19:03]OFD Sender: No OFD packet to send [08:19:08]OFD Sender: No OFD packet to send [08:19:13]OFD Sender: No OFD packet to send [08:19:18]OFD Sender: No OFD packet to send [08:19:23]OFD Sender: No OFD packet to send [08:19:28]OFD Sender: No OFD packet to send [08:19:33]OFD Sender: No OFD packet to send [08:19:38]OFD Sender: No OFD packet to send [08:19:40]accept exits with 8 [08:19:40]New connection [08:19:40]New thread 3067198820 created [08:19:40]Thread 3067342180 joined [08:19:40]Waiting for new connection... [08:19:40] Sock 8.Parse request [08:19:40]Sock 8.Check first char [08:19:40]Sock 8.First char is OK [08:19:40]request: POST /json_proto HTTP/1.0 [08:19:40]Method: POST [08:19:40]URL: /json_proto [08:19:40]Method is POST - this is cgi request [08:19:40]url: /json_proto [08:19:40]query_string will be loaded in cgi processing [08:19:40]execute_cgi json_proto POST (null) [08:19:40]execute_cgi path=json_proto method=POST [08:19:40]POST find Content-Length [08:19:40]Host: 172.17.32.69:8080 [08:19:40]Content-Length: 678 [08:19:40]Content-Type: application/json [08:19:40] [08:19:40]POST finish read [08:19:40]Found Content-Length = 678 [08:19:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 83", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 9.700, "sum" : 600.43, "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" ] } } [08:19:40]execute_script... [08:19:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 83", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 9.700, "sum" : 600.43, "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" ] } } [08:19:40]POST & json_proto [08:19:40]process_json_proto [08:19:40]json parsed OK: [08:19:40]protocol is kg_v1.0 [08:19:40]action value=close_receipt [08:19:40]process_action close_receipt [08:19:40]cmd_close_receipt [08:19:40]MH_GetDate [08:19:40]Write to MH i2c: F0 00 00 4F 1D 5B [08:19:40]Write i2c OK [08:19:40]MH_I2C_Read... [08:19:40]Read from MH i2c: F0 [08:19:40]MH_I2C_Read... [08:19:40]Read from MH i2c: F0 09 00 [08:19:40]MH_I2C_Read... [08:19:40]Read from MH i2c: F0 09 00 4F 1D 00 9F 04 F4 65 D5 0F D3 65 7C [08:19:40]GetLastDocTimeStamp 1710490498 [08:19:40]current date 1710490783 [08:19:40]FM_GetShiftState [08:19:40]SAM_PROTO_GetShiftState [08:19:40]wFMCommunicate request_size=4 [08:19:40]MH_SAM_APDU [08:19:40]CAPDU: 80 13 01 00 [08:19:40]Write to MH i2c: E2 08 00 50 1D 80 13 01 00 00 00 00 00 EA [08:19:40]Write i2c OK [08:19:40]MH_I2C_Read... [08:19:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:40]Read from MH i2c: E2 [08:19:40]MH_I2C_Read... [08:19:40]Read from MH i2c: E2 0E 00 [08:19:40]MH_I2C_Read... [08:19:40]Read from MH i2c: E2 0E 00 50 1D 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 1E [08:19:40]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:19:40]wFMCommunicate OK [08:19:40]SAM_PROTO_GetShiftState done [08:19:40]FM_GetShiftState done [08:19:40]opened in 1710461757 [08:19:40]opened+sec_in_day 1710548157 [08:19:40]quantity*price = 60043 [08:19:40]sum+1 = 60044 [08:19:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 46 15.03.2024 08:19 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108523 ФПД: 150404703904738 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T081943&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108523&fm=150404703904738&tin=02508201610067®Number=0000000000091911&sum=60000 [08:19:41]StoreToDocumentArchive [08:19:41]shift 320 fd 108523 [08:19:41]save to /storage/0320/doc_00108523 [08:19:41]save last doc name /storage/0320/doc_00108523 to /storage/kkm_last_doc_name [08:19:41]save OK [08:19:41]Clear old archive folders... [08:19:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:19:41]tlvbuf is B6F07700 [08:19:41]SAM_PROTO_ClearQueue [08:19:41]wFMCommunicate request_size=4 [08:19:41]MH_SAM_APDU [08:19:41]CAPDU: 80 09 00 00 [08:19:41]Write to MH i2c: E2 08 00 5D 1D 80 09 00 00 00 00 00 00 EC [08:19:41]Write i2c OK [08:19:41]MH_I2C_Read... [08:19:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:19:41]Read from MH i2c: E2 [08:19:41]MH_I2C_Read... [08:19:41]Read from MH i2c: E2 03 00 [08:19:41]MH_I2C_Read... [08:19:41]Read from MH i2c: E2 03 00 5D 1D 00 90 00 EE [08:19:41]RAPDU: 90 00 [08:19:41]wFMCommunicate OK [08:19:41]SAM_PROTO_ClearQueue done [08:19:41]KKMCreateOFDPacket [08:19:41]OFDProtocolAddRootSTLVToBuf [08:19:41]FM_MakeSignedData [08:19:41]FM_MakeSignedData [08:19:41]SAM_PROTO_SignData [08:19:41]wFMCommunicate request_size=4 [08:19:41]MH_SAM_APDU [08:19:41]CAPDU: 80 0D 01 02 [08:19:41]Write to MH i2c: E2 08 00 5E 1D 80 0D 01 02 00 00 00 00 F4 [08:19:41]Write i2c OK [08:19:41]MH_I2C_Read... [08:19:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:19:41]Read from MH i2c: E2 [08:19:41]MH_I2C_Read... [08:19:41]Read from MH i2c: E2 03 00 [08:19:41]MH_I2C_Read... [08:19:41]Read from MH i2c: E2 03 00 5E 1D 00 90 00 EF [08:19:41]RAPDU: 90 00 [08:19:41]wFMCommunicate OK [08:19:41]wFMCommunicate request_size=255 [08:19:41]MH_SAM_APDU [08:19:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 8B 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 E8 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 2E 00 00 00 F4 03 04 00 9F 04 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 EB A7 01 00 35 04 06 00 88 [08:19:41]Write to MH i2c: E2 02 01 5F 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 8B 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 E8 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 2E 00 00 00 F4 03 04 00 9F 04 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 EB A7 01 00 35 04 06 00 88 00 00 EE [08:19:41]Write i2c OK [08:19:41]MH_I2C_Read... [08:19:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:41]Read from MH i2c: E2 [08:19:41]MH_I2C_Read... [08:19:41]Read from MH i2c: E2 03 00 [08:19:41]MH_I2C_Read... [08:19:41]Read from MH i2c: E2 03 00 5F 1D 00 90 00 F0 [08:19:41]RAPDU: 90 00 [08:19:41]wFMCommunicate OK [08:19:41]wFMCommunicate request_size=10 [08:19:41]MH_SAM_APDU [08:19:41]CAPDU: 80 0D 02 02 05 CA D2 F2 E3 E2 [08:19:41]Write to MH i2c: E2 0D 00 60 1D 80 0D 02 02 05 00 CA D2 F2 E3 E2 00 00 54 [08:19:41]Write i2c OK [08:19:41]MH_I2C_Read... [08:19:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:41]Read from MH i2c: E2 [08:19:41]MH_I2C_Read... [08:19:41]Read from MH i2c: E2 03 00 [08:19:41]MH_I2C_Read... [08:19:41]Read from MH i2c: E2 03 00 60 1D 00 90 00 F1 [08:19:41]RAPDU: 90 00 [08:19:41]wFMCommunicate OK [08:19:41]wFMCommunicate request_size=4 [08:19:41]MH_SAM_APDU [08:19:41]CAPDU: 80 0D 03 02 [08:19:41]Write to MH i2c: E2 08 00 61 1D 80 0D 03 02 00 00 00 00 F9 [08:19:41]Write i2c OK [08:19:41]MH_I2C_Read... [08:19:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:19:41]Read from MH i2c: E2 [08:19:41]MH_I2C_Read... [08:19:41]Read from MH i2c: E2 0B 00 [08:19:41]MH_I2C_Read... [08:19:41]Read from MH i2c: E2 0B 00 61 1D 00 F8 97 4C C5 9F 97 58 5A 90 00 82 [08:19:41]RAPDU: F8 97 4C C5 9F 97 58 5A 90 00 [08:19:41]wFMCommunicate OK [08:19:41]SAM_PROTO_SignData done [08:19:41]FM_MakeSignedData done [08:19:41]CreateOFDProtocolMessage [08:19:41]wFMCommunicate request_size=4 [08:19:41]MH_SAM_APDU [08:19:41]CAPDU: 80 11 00 00 [08:19:41]Write to MH i2c: E2 08 00 62 1D 80 11 00 00 00 00 00 00 F9 [08:19:41]Write i2c OK [08:19:41]MH_I2C_Read... [08:19:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:42]Read from MH i2c: E2 [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: E2 17 00 [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: E2 17 00 62 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 4D [08:19:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:19:42]wFMCommunicate OK [08:19:42]CreateOFDProtocolMessage done [08:19:42]OFDSenderStorePacket 108523 [08:19:42]StoreOFDPacket docnum=108523 [08:19:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 01 91 07 01 BF 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 8B 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 E8 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 2E 00 00 00 F4 03 04 00 9F 04 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 EB A7 01 00 35 04 06 00 88 CA D2 F2 E3 E2 F8 97 4C C5 9F 97 58 5A [08:19:42]CheckFolder [08:19:42]dirname=/storage/ofd_packets [08:19:42]CheckFolder done [08:19:42]ProducePacketName [08:19:42]name=ofd_packets/00108523 [08:19:42]NVStorageSaveData ofd_packets/00108523 [08:19:42]File name is /storage/ofd_packets/00108523 [08:19:42]Write 301 bytes [08:19:42]NVStorageSaveData done [08:19:42]OFDSenderStorePacket done [08:19:42]KKMCreateOFDPacket done [08:19:42]NVStorageSaveData kkm_last_timestamp [08:19:42]File name is /storage/kkm_last_timestamp [08:19:42]Write 4 bytes [08:19:42]NVStorageSaveData done [08:19:42]ExternCall_PrintAddStr [08:19:42]wPrintStart [08:19:42]Write to MH i2c: 01 00 00 63 1D 80 [08:19:42]Write i2c OK [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: 01 [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: 01 07 00 [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: 01 07 00 63 1D 00 00 00 00 00 FF 0F 95 [08:19:42]RasterBufferAndPrint [08:19:42]line Счет N : (1)1040682 [08:19:42]line ИНН: 02508201610067 [08:19:42]line Контрольно-Кассовый Чек [08:19:42]line ПРОДАЖА [08:19:42]line ТРК (МРК, ГНК) : 83 [08:19:42]line Товар: 2710124130 [08:19:42]line Аи-92-К-5 [08:19:42]line 9.700 * 61.90 [08:19:42]line = 600.43 [08:19:42]line НДС 12% НСП 1% [08:19:42]line > о реализуемом товаре [08:19:42]line ОКРУГЛЕНИЕ: -0.43 [08:19:42]line ИТОГО: 600.00 [08:19:42]line Внесено: 600.00 [08:19:42]line СДАЧА: 0.00 [08:19:42]line НСП 1% : 5.31 [08:19:42]line НДС 12% : 63.76 [08:19:42]line Наличными: 600.00 [08:19:42]line Безнал.: 0.00 [08:19:42]line Место: АЗС № 15 "Партнер Нефть" [08:19:42]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [08:19:42]line СНО: Общий режим [08:19:42]line Чек 46 15.03.2024 08:19 [08:19:42]line Смена: 320 ФФД: 1.0 [08:19:42]line ЗНМ: 0300000266 [08:19:42]line РНМ: 0000000000091911 [08:19:42]line Версия ККМ: 001 [08:19:42]line ФМ: 0000000000871818 [08:19:42]line ФД: 108523 [08:19:42]line ФПД: 150404703904738 [08:19:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T081943&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108523&fm=150404703904738&tin=02508201610067®Number=0000000000091911&sum=60000 [08:19:42]OFD Sender: Processing packet 108523 [packets to send 29, broken 28] [08:19:42]ProducePacketName [08:19:42]name=ofd_packets/00108523 [08:19:42]OFD Sender: To server: pG, [08:19:42]CommunicateWithHost lk.salyk.kg:30040 [08:19:42]ConnectInit lk.salyk.kg [08:19:42]written 0, free lines is 4095 [08:19:42]Connected sock=10 [08:19:42]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 31 38 0F 01 00 00 01 91 07 01 BF 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 8B 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 E8 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 2E 00 00 00 F4 03 04 00 9F 04 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 EB A7 01 00 35 04 06 00 88 CA D2 F2 E3 E2 F8 97 4C C5 9F 97 58 5A [08:19:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 4F 00 00 00 C1 80 47 00 7A A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 EB A7 01 00 F4 03 04 00 40 B0 F3 65 B6 04 01 00 00 88 A7 C1 E7 B6 4B FD 57 [08:19:42]CommunicateWithHost err = 0 [08:19:42]CheckOFDResponse [08:19:42]1017 (14) - 77093643461234 [08:19:42]1041 (16) - 0000000000871818 [08:19:42]1040 (4) - 108523 [08:19:42]1012 (4) - 15.03.2024 02:19 [08:19:42]1206 (1) - 0 [08:19:42]OFD Sender: Remove packet 108523 [08:19:42]ProducePacketName [08:19:42]name=ofd_packets/00108523 [08:19:42]NVStorageDeleteData [08:19:42]Write to MH i2c: 01 00 00 8E 1D AB [08:19:42]Write i2c OK [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: 01 [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: 01 07 00 [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: 01 07 00 8E 1D 00 00 00 00 00 DA 0C 98 [08:19:42]RasterBufferAndPrint [08:19:42]line [08:19:42]line [08:19:42]line [08:19:42]line [08:19:42]line [08:19:42]written 0, free lines is 3299 [08:19:42]MH_Cut [08:19:42]Write to MH i2c: D1 01 00 95 1D 01 84 [08:19:42]Write i2c OK [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: D1 [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: D1 01 00 [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: D1 01 00 95 1D 00 83 [08:19:42]Write to MH i2c: 01 00 00 96 1D B3 [08:19:42]Write i2c OK [08:19:42]MH_I2C_Read... [08:19:43]OFD Sender: No OFD packet to send [08:19:43]*** Cut start [08:19:43]*** Purtial cut [08:19:43]*** Stage 1: CUTSNS_PIN = 1 [08:19:43]Read from MH i2c: 01 [08:19:43]MH_I2C_Read... [08:19:43]*** Stop cut motor [08:19:43]*** Cut end [08:19:43]Read from MH i2c: 01 07 00 [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: 01 07 00 96 1D 00 00 00 00 00 FF 0F C8 [08:19:43]process_action close_receipt done [08:19:43]requested_data is exist [08:19:43]produce_requested_data [08:19:43]requested_item fm.sn is exist - process it [08:19:43]wFMCommunicate request_size=4 [08:19:43]MH_SAM_APDU [08:19:43]CAPDU: 80 11 00 00 [08:19:43]Write to MH i2c: E2 08 00 97 1D 80 11 00 00 00 00 00 00 2E [08:19:43]Write i2c OK [08:19:43]MH_I2C_Read... [08:19:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:44]Read from MH i2c: E2 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: E2 17 00 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: E2 17 00 97 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 82 [08:19:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:19:44]wFMCommunicate OK [08:19:44]requested_item fd.num is exist - process it [08:19:44]SAM_PROTO_GetFieldsCounters [08:19:44]wFMCommunicate request_size=4 [08:19:44]MH_SAM_APDU [08:19:44]CAPDU: 80 13 00 00 [08:19:44]Write to MH i2c: E2 08 00 98 1D 80 13 00 00 00 00 00 00 31 [08:19:44]Write i2c OK [08:19:44]MH_I2C_Read... [08:19:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:19:44]Read from MH i2c: E2 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: E2 62 00 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: E2 62 00 98 1D 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 EB A7 01 00 0E 04 04 00 40 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 AD [08:19:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 EB A7 01 00 0E 04 04 00 40 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 [08:19:44]wFMCommunicate OK [08:19:44]SAM_PROTO_GetFieldsCounters done [08:19:44]requested_item shift.num is exist - process it [08:19:44]requested_item shift.opened is exist - process it [08:19:44]req_shift_opened [08:19:44]FM_GetShiftState [08:19:44]SAM_PROTO_GetShiftState [08:19:44]wFMCommunicate request_size=4 [08:19:44]MH_SAM_APDU [08:19:44]CAPDU: 80 13 01 00 [08:19:44]Write to MH i2c: E2 08 00 99 1D 80 13 01 00 00 00 00 00 33 [08:19:44]Write i2c OK [08:19:44]MH_I2C_Read... [08:19:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:44]Read from MH i2c: E2 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: E2 0E 00 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: E2 0E 00 99 1D 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 67 [08:19:44]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:19:44]wFMCommunicate OK [08:19:44]SAM_PROTO_GetShiftState done [08:19:44]FM_GetShiftState done [08:19:44]req_shift_opened done [08:19:44]requested_item shift.open_date is exist - process it [08:19:44]req_shift_open_date [08:19:44]req_shift_open_date done [08:19:44]produce_requested_data done [08:19:44]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108523,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [08:19:44]process_action_free close_receipt [08:19:44]json_value_free [08:19:44]json_value_free done [08:19:44]process_json_proto returns [08:19:44]Send response to host [08:19:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108523,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [08:19:44]free response buf [08:19:44]execute_script done [08:19:44]execute_script returns [08:19:44]free content buf [08:19:44]Sock 8.Close socket [08:19:44]Sock 8.Thread stoped [08:19:45]int [08:19:45]Write to MH i2c: 01 00 00 9A 1D B7 [08:19:45]*** FLAG_PRN_KEY set [08:19:45]Write i2c OK [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: 01 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: 01 07 00 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: 01 07 00 9A 1D 00 08 00 00 00 FF 0F D4 [08:19:45]state=0 [08:19:45]Key pressed [08:19:45]Feed [08:19:45]Write to MH i2c: D8 00 00 9B 1D 8F [08:19:45]Write i2c OK [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: D8 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: D8 01 00 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: D8 01 00 9B 1D 00 90 [08:19:45]int [08:19:45]Write to MH i2c: 01 00 00 9C 1D B9 [08:19:45]Write i2c OK [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: 01 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: 01 07 00 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: 01 07 00 9C 1D 00 48 00 00 00 3C 00 44 [08:19:45]state=2 [08:19:45]Key pressed [08:19:45]int [08:19:45]Write to MH i2c: 01 00 00 9D 1D BA [08:19:45]*** FLAG_PRN_KEY reset [08:19:45]Write i2c OK [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: 01 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: 01 07 00 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: 01 07 00 9D 1D 00 00 00 00 00 FA 0F CA [08:19:45]state=2 [08:19:45]Stop feed [08:19:48]OFD Sender: No OFD packet to send [08:19:53]OFD Sender: No OFD packet to send [08:19:58]OFD Sender: No OFD packet to send [08:20:03]OFD Sender: No OFD packet to send [08:20:08]OFD Sender: No OFD packet to send [08:20:13]OFD Sender: No OFD packet to send [08:20:18]OFD Sender: No OFD packet to send [08:20:23]OFD Sender: No OFD packet to send [08:20:28]OFD Sender: No OFD packet to send [08:20:33]OFD Sender: No OFD packet to send [08:20:38]OFD Sender: No OFD packet to send [08:20:43]OFD Sender: No OFD packet to send [08:20:48]OFD Sender: No OFD packet to send [08:20:53]OFD Sender: No OFD packet to send [08:20:58]OFD Sender: No OFD packet to send [08:21:03]OFD Sender: No OFD packet to send [08:21:08]OFD Sender: No OFD packet to send [08:21:13]OFD Sender: No OFD packet to send [08:21:18]OFD Sender: No OFD packet to send [08:21:23]OFD Sender: No OFD packet to send [08:21:28]OFD Sender: No OFD packet to send [08:21:33]OFD Sender: No OFD packet to send [08:21:38]OFD Sender: No OFD packet to send [08:21:43]OFD Sender: No OFD packet to send [08:21:48]OFD Sender: No OFD packet to send [08:21:53]OFD Sender: No OFD packet to send [08:21:58]OFD Sender: No OFD packet to send [08:22:03]OFD Sender: No OFD packet to send [08:22:08]OFD Sender: No OFD packet to send [08:22:13]OFD Sender: No OFD packet to send [08:22:18]OFD Sender: No OFD packet to send [08:22:23]OFD Sender: No OFD packet to send [08:22:28]OFD Sender: No OFD packet to send [08:22:33]OFD Sender: No OFD packet to send [08:22:38]OFD Sender: No OFD packet to send [08:22:43]OFD Sender: No OFD packet to send [08:22:48]OFD Sender: No OFD packet to send [08:22:53]OFD Sender: No OFD packet to send [08:22:58]OFD Sender: No OFD packet to send [08:23:03]OFD Sender: No OFD packet to send [08:23:08]OFD Sender: No OFD packet to send [08:23:13]OFD Sender: No OFD packet to send [08:23:18]OFD Sender: No OFD packet to send [08:23:19]accept exits with 9 [08:23:19]New connection [08:23:19]New thread 3067342180 created [08:23:19]Thread 3067198820 joined [08:23:19]Waiting for new connection... [08:23:19] Sock 9.Parse request [08:23:19]Sock 9.Check first char [08:23:19]Sock 9.First char is OK [08:23:19]request: POST /json_proto HTTP/1.0 [08:23:19]Method: POST [08:23:19]URL: /json_proto [08:23:19]Method is POST - this is cgi request [08:23:19]url: /json_proto [08:23:19]query_string will be loaded in cgi processing [08:23:19]execute_cgi json_proto POST (null) [08:23:19]execute_cgi path=json_proto method=POST [08:23:19]POST find Content-Length [08:23:19]Host: 172.17.32.69:8080 [08:23:19]Content-Length: 1169 [08:23:19]Content-Type: application/json [08:23:19] [08:23:19]POST finish read [08:23:19]Found Content-Length = 1169 [08:23:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040683\u000A15.03.2024 08:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1238.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A099172\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:19]execute_script... [08:23:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040683\u000A15.03.2024 08:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1238.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A099172\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:19]POST & json_proto [08:23:19]process_json_proto [08:23:19]json parsed OK: [08:23:19]protocol is kg_v1.0 [08:23:19]action value=print_text [08:23:19]process_action print_text [08:23:19]cmd_print_text [08:23:19]ExternCall_PrintAddStr [08:23:19]wPrintStart [08:23:19]Write to MH i2c: 01 00 00 9E 1D BB [08:23:19]Write i2c OK [08:23:19]MH_I2C_Read... [08:23:19]Read from MH i2c: 01 [08:23:19]MH_I2C_Read... [08:23:19]Read from MH i2c: 01 07 00 [08:23:19]MH_I2C_Read... [08:23:19]Read from MH i2c: 01 07 00 9E 1D 00 00 00 00 00 FF 0F D0 [08:23:19]RasterBufferAndPrint [08:23:19]line *****ТОВАРНЫЙ ЧЕК***** [08:23:19]line АЗС 15 [08:23:19]line Партнер нефть [08:23:19]line 02508201610067 [08:23:19]line Кассир : Максатбек у Д. [08:23:19]line Счет N : (1)1040683 [08:23:19]line 15.03.2024 08:15 [08:23:19]line ПРОДАЖА [08:23:19]line ТРК (МРК, ГНК): 13 [08:23:19]line Вид ГСМ : 2710124130 [08:23:19]line Аи-92-К-5 [08:23:19]line 20.000 x 61.90 [08:23:19]line ИТОГ: 1238.00 [08:23:19]line Тип оплаты: Талоны: ТК ГПНА Online [08:23:19]line 099172 [08:23:19]line ______________________ [08:23:19]line (подпись) [08:23:19]written 0, free lines is 4095 [08:23:19]Write to MH i2c: 01 00 00 B3 1D D0 [08:23:19]Write i2c OK [08:23:19]MH_I2C_Read... [08:23:19]Read from MH i2c: 01 [08:23:19]MH_I2C_Read... [08:23:19]Read from MH i2c: 01 07 00 [08:23:19]MH_I2C_Read... [08:23:19]Read from MH i2c: 01 07 00 B3 1D 00 00 00 00 00 F8 0D DC [08:23:19]RasterBufferAndPrint [08:23:19]line [08:23:19]line [08:23:19]line [08:23:19]line [08:23:19]line [08:23:19]written 0, free lines is 3578 [08:23:19]MH_Cut [08:23:19]Write to MH i2c: D1 01 00 BA 1D 01 A9 [08:23:19]Write i2c OK [08:23:19]MH_I2C_Read... [08:23:19]Read from MH i2c: D1 [08:23:19]MH_I2C_Read... [08:23:19]Read from MH i2c: D1 01 00 [08:23:19]MH_I2C_Read... [08:23:19]Read from MH i2c: D1 01 00 BA 1D 00 A8 [08:23:19]Write to MH i2c: 01 00 00 BB 1D D8 [08:23:19]Write i2c OK [08:23:19]MH_I2C_Read... [08:23:20]*** Cut start [08:23:20]*** Purtial cut [08:23:20]*** Stage 1: CUTSNS_PIN = 1 [08:23:20]Read from MH i2c: 01 [08:23:20]MH_I2C_Read... [08:23:20]*** Stop cut motor [08:23:20]*** Cut end [08:23:20]Read from MH i2c: 01 07 00 [08:23:20]MH_I2C_Read... [08:23:20]Read from MH i2c: 01 07 00 BB 1D 00 00 00 00 00 FF 0F ED [08:23:20]process_action print_text done [08:23:20]requested_data is exist [08:23:20]produce_requested_data [08:23:20]requested_item fm.sn is exist - process it [08:23:20]wFMCommunicate request_size=4 [08:23:20]MH_SAM_APDU [08:23:20]CAPDU: 80 11 00 00 [08:23:20]Write to MH i2c: E2 08 00 BC 1D 80 11 00 00 00 00 00 00 53 [08:23:20]Write i2c OK [08:23:20]MH_I2C_Read... [08:23:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:20]Read from MH i2c: E2 [08:23:20]MH_I2C_Read... [08:23:20]Read from MH i2c: E2 17 00 [08:23:20]MH_I2C_Read... [08:23:20]Read from MH i2c: E2 17 00 BC 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 A7 [08:23:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:23:20]wFMCommunicate OK [08:23:20]requested_item fd.num is exist - process it [08:23:20]SAM_PROTO_GetFieldsCounters [08:23:20]wFMCommunicate request_size=4 [08:23:20]MH_SAM_APDU [08:23:20]CAPDU: 80 13 00 00 [08:23:20]Write to MH i2c: E2 08 00 BD 1D 80 13 00 00 00 00 00 00 56 [08:23:20]Write i2c OK [08:23:20]MH_I2C_Read... [08:23:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:23:21]Read from MH i2c: E2 [08:23:21]MH_I2C_Read... [08:23:21]Read from MH i2c: E2 62 00 [08:23:21]MH_I2C_Read... [08:23:21]Read from MH i2c: E2 62 00 BD 1D 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 EB A7 01 00 0E 04 04 00 40 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 D2 [08:23: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 EB A7 01 00 0E 04 04 00 40 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 [08:23:21]wFMCommunicate OK [08:23:21]SAM_PROTO_GetFieldsCounters done [08:23:21]requested_item shift.num is exist - process it [08:23:21]requested_item shift.opened is exist - process it [08:23:21]req_shift_opened [08:23:21]FM_GetShiftState [08:23:21]SAM_PROTO_GetShiftState [08:23:21]wFMCommunicate request_size=4 [08:23:21]MH_SAM_APDU [08:23:21]CAPDU: 80 13 01 00 [08:23:21]Write to MH i2c: E2 08 00 BE 1D 80 13 01 00 00 00 00 00 58 [08:23:21]Write i2c OK [08:23:21]MH_I2C_Read... [08:23:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:21]Read from MH i2c: E2 [08:23:21]MH_I2C_Read... [08:23:21]Read from MH i2c: E2 0E 00 [08:23:21]MH_I2C_Read... [08:23:21]Read from MH i2c: E2 0E 00 BE 1D 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 8C [08:23:21]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:23:21]wFMCommunicate OK [08:23:21]SAM_PROTO_GetShiftState done [08:23:21]FM_GetShiftState done [08:23:21]req_shift_opened done [08:23:21]requested_item shift.open_date is exist - process it [08:23:21]req_shift_open_date [08:23:21]req_shift_open_date done [08:23:21]produce_requested_data done [08:23:21]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108523,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [08:23:21]process_action_free print_text [08:23:21]json_value_free [08:23:21]json_value_free done [08:23:21]process_json_proto returns [08:23:21]Send response to host [08:23:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108523,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [08:23:21]free response buf [08:23:21]execute_script done [08:23:21]execute_script returns [08:23:21]free content buf [08:23:21]Sock 9.Close socket [08:23:21]Sock 9.Thread stoped [08:23:23]OFD Sender: No OFD packet to send [08:23:28]OFD Sender: No OFD packet to send [08:23:33]OFD Sender: No OFD packet to send [08:23:38]OFD Sender: No OFD packet to send [08:23:43]OFD Sender: No OFD packet to send [08:23:48]OFD Sender: No OFD packet to send [08:23:53]OFD Sender: No OFD packet to send [08:23:58]OFD Sender: No OFD packet to send [08:24:03]OFD Sender: No OFD packet to send [08:24:08]OFD Sender: No OFD packet to send [08:24:13]OFD Sender: No OFD packet to send [08:24:18]OFD Sender: No OFD packet to send [08:24:23]OFD Sender: No OFD packet to send [08:24:28]OFD Sender: No OFD packet to send [08:24:33]OFD Sender: No OFD packet to send [08:24:38]OFD Sender: No OFD packet to send [08:24:43]OFD Sender: No OFD packet to send [08:24:48]OFD Sender: No OFD packet to send [08:24:53]OFD Sender: No OFD packet to send [08:24:58]OFD Sender: No OFD packet to send [08:25:03]OFD Sender: No OFD packet to send [08:25:08]OFD Sender: No OFD packet to send [08:25:13]OFD Sender: No OFD packet to send [08:25:18]OFD Sender: No OFD packet to send [08:25:23]OFD Sender: No OFD packet to send [08:25:25]accept exits with 8 [08:25:25]New connection [08:25:25]New thread 3067198820 created [08:25:25]Thread 3067342180 joined [08:25:25]Waiting for new connection... [08:25:25] Sock 8.Parse request [08:25:25]Sock 8.Check first char [08:25:25]Sock 8.First char is OK [08:25:25]request: POST /json_proto HTTP/1.0 [08:25:25]Method: POST [08:25:25]URL: /json_proto [08:25:25]Method is POST - this is cgi request [08:25:25]url: /json_proto [08:25:25]query_string will be loaded in cgi processing [08:25:25]execute_cgi json_proto POST (null) [08:25:25]execute_cgi path=json_proto method=POST [08:25:25]POST find Content-Length [08:25:25]Host: 172.17.32.69:8080 [08:25:25]Content-Length: 688 [08:25:25]Content-Type: application/json [08:25:25] [08:25:25]POST finish read [08:25:25]Found Content-Length = 688 [08:25:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.710, "sum" : 1489.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1489.00, "total" : 1489.00, "payments": [ { "type": 0, "sum" : 1489.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:25]execute_script... [08:25:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.710, "sum" : 1489.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1489.00, "total" : 1489.00, "payments": [ { "type": 0, "sum" : 1489.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:25]POST & json_proto [08:25:25]process_json_proto [08:25:25]json parsed OK: [08:25:25]protocol is kg_v1.0 [08:25:25]action value=close_receipt [08:25:25]process_action close_receipt [08:25:25]cmd_close_receipt [08:25:25]MH_GetDate [08:25:25]Write to MH i2c: F0 00 00 BF 1D CB [08:25:25]Write i2c OK [08:25:25]MH_I2C_Read... [08:25:25]Read from MH i2c: F0 [08:25:25]MH_I2C_Read... [08:25:25]Read from MH i2c: F0 09 00 [08:25:25]MH_I2C_Read... [08:25:25]Read from MH i2c: F0 09 00 BF 1D 00 F9 05 F4 65 D5 0F D3 65 47 [08:25:25]GetLastDocTimeStamp 1710490783 [08:25:25]current date 1710491129 [08:25:25]FM_GetShiftState [08:25:25]SAM_PROTO_GetShiftState [08:25:25]wFMCommunicate request_size=4 [08:25:25]MH_SAM_APDU [08:25:25]CAPDU: 80 13 01 00 [08:25:25]Write to MH i2c: E2 08 00 C0 1D 80 13 01 00 00 00 00 00 5A [08:25:25]Write i2c OK [08:25:25]MH_I2C_Read... [08:25:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:25]Read from MH i2c: E2 [08:25:25]MH_I2C_Read... [08:25:25]Read from MH i2c: E2 0E 00 [08:25:25]MH_I2C_Read... [08:25:25]Read from MH i2c: E2 0E 00 C0 1D 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 8E [08:25:25]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:25:25]wFMCommunicate OK [08:25:25]SAM_PROTO_GetShiftState done [08:25:25]FM_GetShiftState done [08:25:25]opened in 1710461757 [08:25:25]opened+sec_in_day 1710548157 [08:25:25]quantity*price = 148904 [08:25:25]sum+1 = 148906 [08:25:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1489.00 Внесено: 1489.00 СДАЧА: 0.00 НСП 1% : 13.18 НДС 12% : 158.13 Наличными: 1489.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 47 15.03.2024 08:25 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108524 ФПД: 276426431514537 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T082529&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108524&fm=276426431514537&tin=02508201610067®Number=0000000000091911&sum=148900 [08:25:26]StoreToDocumentArchive [08:25:26]shift 320 fd 108524 [08:25:26]save to /storage/0320/doc_00108524 [08:25:26]save last doc name /storage/0320/doc_00108524 to /storage/kkm_last_doc_name [08:25:26]save OK [08:25:26]Clear old archive folders... [08:25:26]ProcessDocumentItem done err = 0, tmpTLVsize=257 [08:25:26]tlvbuf is B6FB4290 [08:25:26]SAM_PROTO_ClearQueue [08:25:26]wFMCommunicate request_size=4 [08:25:26]MH_SAM_APDU [08:25:26]CAPDU: 80 09 00 00 [08:25:26]Write to MH i2c: E2 08 00 CD 1D 80 09 00 00 00 00 00 00 5C [08:25:26]Write i2c OK [08:25:26]MH_I2C_Read... [08:25:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:25:26]Read from MH i2c: E2 [08:25:26]MH_I2C_Read... [08:25:26]Read from MH i2c: E2 03 00 [08:25:26]MH_I2C_Read... [08:25:26]Read from MH i2c: E2 03 00 CD 1D 00 90 00 5E [08:25:26]RAPDU: 90 00 [08:25:26]wFMCommunicate OK [08:25:26]SAM_PROTO_ClearQueue done [08:25:26]KKMCreateOFDPacket [08:25:26]OFDProtocolAddRootSTLVToBuf [08:25:26]FM_MakeSignedData [08:25:26]FM_MakeSignedData [08:25:26]SAM_PROTO_SignData [08:25:26]wFMCommunicate request_size=4 [08:25:26]MH_SAM_APDU [08:25:26]CAPDU: 80 0D 01 02 [08:25:26]Write to MH i2c: E2 08 00 CE 1D 80 0D 01 02 00 00 00 00 64 [08:25:26]Write i2c OK [08:25:26]MH_I2C_Read... [08:25:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:25:27]Read from MH i2c: E2 [08:25:27]MH_I2C_Read... [08:25:27]Read from MH i2c: E2 03 00 [08:25:27]MH_I2C_Read... [08:25:27]Read from MH i2c: E2 03 00 CE 1D 00 90 00 5F [08:25:27]RAPDU: 90 00 [08:25:27]wFMCommunicate OK [08:25:27]wFMCommunicate request_size=255 [08:25:27]MH_SAM_APDU [08:25:27]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 50 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 A9 45 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 45 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 3D 00 00 00 00 07 04 06 00 A4 45 02 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 F9 05 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 EC A7 01 [08:25:27]Write to MH i2c: E2 02 01 CF 1D 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 50 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 A9 45 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 45 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 3D 00 00 00 00 07 04 06 00 A4 45 02 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 F9 05 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 EC A7 01 00 00 AC [08:25:27]Write i2c OK [08:25:27]MH_I2C_Read... [08:25:27]Read from MH i2c: E2 [08:25:27]MH_I2C_Read... [08:25:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:27]Read from MH i2c: E2 03 00 [08:25:27]MH_I2C_Read... [08:25:27]Read from MH i2c: E2 03 00 CF 1D 00 90 00 60 [08:25:27]RAPDU: 90 00 [08:25:27]wFMCommunicate OK [08:25:27]wFMCommunicate request_size=16 [08:25:27]MH_SAM_APDU [08:25:27]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 FB 68 8B 41 C7 A9 [08:25:27]Write to MH i2c: E2 13 00 D0 1D 80 0D 02 02 0B 00 00 35 04 06 00 FB 68 8B 41 C7 A9 00 00 5B [08:25:27]Write i2c OK [08:25:27]MH_I2C_Read... [08:25:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:27]Read from MH i2c: E2 [08:25:27]MH_I2C_Read... [08:25:27]Read from MH i2c: E2 03 00 [08:25:27]MH_I2C_Read... [08:25:27]Read from MH i2c: E2 03 00 D0 1D 00 90 00 61 [08:25:27]RAPDU: 90 00 [08:25:27]wFMCommunicate OK [08:25:27]wFMCommunicate request_size=4 [08:25:27]MH_SAM_APDU [08:25:27]CAPDU: 80 0D 03 02 [08:25:27]Write to MH i2c: E2 08 00 D1 1D 80 0D 03 02 00 00 00 00 69 [08:25:27]Write i2c OK [08:25:27]MH_I2C_Read... [08:25:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:25:27]Read from MH i2c: E2 [08:25:27]MH_I2C_Read... [08:25:27]Read from MH i2c: E2 0B 00 [08:25:27]MH_I2C_Read... [08:25:27]Read from MH i2c: E2 0B 00 D1 1D 00 04 CA 88 A5 D5 EB D4 63 90 00 5C [08:25:27]RAPDU: 04 CA 88 A5 D5 EB D4 63 90 00 [08:25:27]wFMCommunicate OK [08:25:27]SAM_PROTO_SignData done [08:25:27]FM_MakeSignedData done [08:25:27]CreateOFDProtocolMessage [08:25:27]wFMCommunicate request_size=4 [08:25:27]MH_SAM_APDU [08:25:27]CAPDU: 80 11 00 00 [08:25:27]Write to MH i2c: E2 08 00 D2 1D 80 11 00 00 00 00 00 00 69 [08:25:27]Write i2c OK [08:25:27]MH_I2C_Read... [08:25:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:27]Read from MH i2c: E2 [08:25:27]MH_I2C_Read... [08:25:27]Read from MH i2c: E2 17 00 [08:25:27]MH_I2C_Read... [08:25:27]Read from MH i2c: E2 17 00 D2 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 BD [08:25:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:25:27]wFMCommunicate OK [08:25:27]CreateOFDProtocolMessage done [08:25:27]OFDSenderStorePacket 108524 [08:25:27]StoreOFDPacket docnum=108524 [08:25:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 15 01 00 00 55 08 0D 01 8A BC 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 50 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 A9 45 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 45 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 3D 00 00 00 00 07 04 06 00 A4 45 02 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 F9 05 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 EC A7 01 00 35 04 06 00 FB 68 8B 41 C7 A9 04 CA 88 A5 D5 EB D4 63 [08:25:27]CheckFolder [08:25:27]dirname=/storage/ofd_packets [08:25:27]CheckFolder done [08:25:27]ProducePacketName [08:25:27]name=ofd_packets/00108524 [08:25:27]NVStorageSaveData ofd_packets/00108524 [08:25:27]File name is /storage/ofd_packets/00108524 [08:25:27]Write 307 bytes [08:25:27]NVStorageSaveData done [08:25:27]OFDSenderStorePacket done [08:25:27]KKMCreateOFDPacket done [08:25:27]NVStorageSaveData kkm_last_timestamp [08:25:27]File name is /storage/kkm_last_timestamp [08:25:27]Write 4 bytes [08:25:27]NVStorageSaveData done [08:25:27]ExternCall_PrintAddStr [08:25:27]wPrintStart [08:25:27]Write to MH i2c: 01 00 00 D3 1D F0 [08:25:27]Write i2c OK [08:25:27]MH_I2C_Read... [08:25:27]Read from MH i2c: 01 [08:25:27]MH_I2C_Read... [08:25:27]Read from MH i2c: 01 07 00 [08:25:27]MH_I2C_Read... [08:25:27]Read from MH i2c: 01 07 00 D3 1D 00 00 00 00 00 FF 0F 05 [08:25:27]RasterBufferAndPrint [08:25:27]line Счет N : (1)1040684 [08:25:27]line ИНН: 02508201610067 [08:25:27]line Контрольно-Кассовый Чек [08:25:27]line ПРОДАЖА [08:25:27]line ТРК (МРК, ГНК) : 1 [08:25:27]line Товар: 2710194210 [08:25:27]line D-ENERGY ДТ-К-5 [08:25:27]line 20.710 * 71.90 [08:25:27]line = 1489.05 [08:25:27]line НДС 12% НСП 1% [08:25:27]line > о реализуемом товаре [08:25:27]line ОКРУГЛЕНИЕ: -0.05 [08:25:27]line ИТОГО: 1489.00 [08:25:27]line Внесено: 1489.00 [08:25:27]line СДАЧА: 0.00 [08:25:27]line НСП 1% : 13.18 [08:25:27]line НДС 12% : 158.13 [08:25:27]line Наличными: 1489.00 [08:25:27]line Безнал.: 0.00 [08:25:27]line Место: АЗС № 15 "Партнер Нефть" [08:25:27]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [08:25:27]line СНО: Общий режим [08:25:27]line Чек 47 15.03.2024 08:25 [08:25:27]line Смена: 320 ФФД: 1.0 [08:25:27]line ЗНМ: 0300000266 [08:25:27]line РНМ: 0000000000091911 [08:25:27]line Версия ККМ: 001 [08:25:27]line ФМ: 0000000000871818 [08:25:27]line ФД: 108524 [08:25:27]line ФПД: 276426431514537 [08:25:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T082529&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108524&fm=276426431514537&tin=02508201610067®Number=0000000000091911&sum=148900 [08:25:27]OFD Sender: Processing packet 108524 [packets to send 29, broken 28] [08:25:27]ProducePacketName [08:25:27]name=ofd_packets/00108524 [08:25:27]OFD Sender: To server: pG, [08:25:27]CommunicateWithHost lk.salyk.kg:30040 [08:25:27]ConnectInit lk.salyk.kg [08:25:27]written 0, free lines is 4095 [08:25:27]Connected sock=10 [08:25: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 31 38 15 01 00 00 55 08 0D 01 8A BC 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 50 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 A9 45 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 45 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 3D 00 00 00 00 07 04 06 00 A4 45 02 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 F9 05 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 EC A7 01 00 35 04 06 00 FB 68 8B 41 C7 A9 04 CA 88 A5 D5 EB D4 63 [08:25: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 31 38 4F 00 00 00 84 90 47 00 85 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 31 38 10 04 04 00 EC A7 01 00 F4 03 04 00 99 B1 F3 65 B6 04 01 00 00 81 6B 4A E2 6C DC F7 12 [08:25:28]CommunicateWithHost err = 0 [08:25:28]CheckOFDResponse [08:25:28]1017 (14) - 77093643461234 [08:25:28]1041 (16) - 0000000000871818 [08:25:28]1040 (4) - 108524 [08:25:28]1012 (4) - 15.03.2024 02:25 [08:25:28]1206 (1) - 0 [08:25:28]OFD Sender: Remove packet 108524 [08:25:28]ProducePacketName [08:25:28]name=ofd_packets/00108524 [08:25:28]NVStorageDeleteData [08:25:28]Write to MH i2c: 01 00 00 FE 1D 1B [08:25:28]Write i2c OK [08:25:28]MH_I2C_Read... [08:25:28]Read from MH i2c: 01 [08:25:28]MH_I2C_Read... [08:25:28]Read from MH i2c: 01 07 00 [08:25:28]MH_I2C_Read... [08:25:28]Read from MH i2c: 01 07 00 FE 1D 00 00 00 00 00 D6 0C 04 [08:25:28]RasterBufferAndPrint [08:25:28]line [08:25:28]line [08:25:28]line [08:25:28]line [08:25:28]line [08:25:28]written 0, free lines is 3294 [08:25:28]MH_Cut [08:25:28]Write to MH i2c: D1 01 00 05 1E 01 F5 [08:25:28]Write i2c OK [08:25:28]MH_I2C_Read... [08:25:28]Read from MH i2c: D1 [08:25:28]MH_I2C_Read... [08:25:28]Read from MH i2c: D1 01 00 [08:25:28]MH_I2C_Read... [08:25:28]Read from MH i2c: D1 01 00 05 1E 00 F4 [08:25:28]Write to MH i2c: 01 00 00 06 1E 24 [08:25:28]Write i2c OK [08:25:28]MH_I2C_Read... [08:25:28]OFD Sender: No OFD packet to send [08:25:29]*** Cut start [08:25:29]*** Purtial cut [08:25:29]*** Stage 1: CUTSNS_PIN = 1 [08:25:29]Read from MH i2c: 01 [08:25:29]MH_I2C_Read... [08:25:29]*** Stop cut motor [08:25:29]Read from MH i2c: 01 07 00 [08:25:29]MH_I2C_Read... [08:25:29]*** Cut end [08:25:29]Read from MH i2c: 01 07 00 06 1E 00 00 00 00 00 FF 0F 39 [08:25:29]process_action close_receipt done [08:25:29]requested_data is exist [08:25:29]produce_requested_data [08:25:29]requested_item fm.sn is exist - process it [08:25:29]wFMCommunicate request_size=4 [08:25:29]MH_SAM_APDU [08:25:29]CAPDU: 80 11 00 00 [08:25:29]Write to MH i2c: E2 08 00 07 1E 80 11 00 00 00 00 00 00 9F [08:25:29]Write i2c OK [08:25:29]MH_I2C_Read... [08:25:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:29]Read from MH i2c: E2 [08:25:29]MH_I2C_Read... [08:25:29]Read from MH i2c: E2 17 00 [08:25:29]MH_I2C_Read... [08:25:29]Read from MH i2c: E2 17 00 07 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 F3 [08:25:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:25:29]wFMCommunicate OK [08:25:29]requested_item fd.num is exist - process it [08:25:29]SAM_PROTO_GetFieldsCounters [08:25:29]wFMCommunicate request_size=4 [08:25:29]MH_SAM_APDU [08:25:29]CAPDU: 80 13 00 00 [08:25:29]Write to MH i2c: E2 08 00 08 1E 80 13 00 00 00 00 00 00 A2 [08:25:29]Write i2c OK [08:25:29]MH_I2C_Read... [08:25:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:25:29]Read from MH i2c: E2 [08:25:29]MH_I2C_Read... [08:25:29]Read from MH i2c: E2 62 00 [08:25:29]MH_I2C_Read... [08:25:29]Read from MH i2c: E2 62 00 08 1E 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 EC A7 01 00 0E 04 04 00 40 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 22 [08:25: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 EC A7 01 00 0E 04 04 00 40 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 [08:25:29]wFMCommunicate OK [08:25:29]SAM_PROTO_GetFieldsCounters done [08:25:29]requested_item shift.num is exist - process it [08:25:29]requested_item shift.opened is exist - process it [08:25:29]req_shift_opened [08:25:29]FM_GetShiftState [08:25:29]SAM_PROTO_GetShiftState [08:25:29]wFMCommunicate request_size=4 [08:25:29]MH_SAM_APDU [08:25:29]CAPDU: 80 13 01 00 [08:25:29]Write to MH i2c: E2 08 00 09 1E 80 13 01 00 00 00 00 00 A4 [08:25:29]Write i2c OK [08:25:29]MH_I2C_Read... [08:25:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:29]Read from MH i2c: E2 [08:25:29]MH_I2C_Read... [08:25:29]Read from MH i2c: E2 0E 00 [08:25:29]MH_I2C_Read... [08:25:29]Read from MH i2c: E2 0E 00 09 1E 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 D8 [08:25:29]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:25:29]wFMCommunicate OK [08:25:29]SAM_PROTO_GetShiftState done [08:25:29]FM_GetShiftState done [08:25:29]req_shift_opened done [08:25:29]requested_item shift.open_date is exist - process it [08:25:29]req_shift_open_date [08:25:29]req_shift_open_date done [08:25:29]produce_requested_data done [08:25:29]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108524,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [08:25:29]process_action_free close_receipt [08:25:29]json_value_free [08:25:29]json_value_free done [08:25:29]process_json_proto returns [08:25:29]Send response to host [08:25:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108524,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [08:25:29]free response buf [08:25:29]execute_script done [08:25:29]execute_script returns [08:25:29]free content buf [08:25:29]Sock 8.Close socket [08:25:29]Sock 8.Thread stoped [08:25:33]OFD Sender: No OFD packet to send [08:25:38]OFD Sender: No OFD packet to send [08:25:43]OFD Sender: No OFD packet to send [08:25:48]OFD Sender: No OFD packet to send [08:25:53]OFD Sender: No OFD packet to send [08:25:58]OFD Sender: No OFD packet to send [08:26:03]OFD Sender: No OFD packet to send [08:26:08]OFD Sender: No OFD packet to send [08:26:13]OFD Sender: No OFD packet to send [08:26:18]OFD Sender: No OFD packet to send [08:26:23]OFD Sender: No OFD packet to send [08:26:48]OFD Sender: No OFD packet to send [08:26:53]OFD Sender: No OFD packet to send [08:26:58]OFD Sender: No OFD packet to send [08:27:03]OFD Sender: No OFD packet to send [08:27:08]OFD Sender: No OFD packet to send [08:27:13]OFD Sender: No OFD packet to send [08:27:18]OFD Sender: No OFD packet to send [08:27:23]OFD Sender: No OFD packet to send [08:27:28]OFD Sender: No OFD packet to send [08:27:33]OFD Sender: No OFD packet to send [08:27:38]OFD Sender: No OFD packet to send [08:27:43]OFD Sender: No OFD packet to send [08:27:48]OFD Sender: No OFD packet to send [08:27:53]OFD Sender: No OFD packet to send [08:27:58]OFD Sender: No OFD packet to send [08:28:03]OFD Sender: No OFD packet to send [08:28:08]OFD Sender: No OFD packet to send [08:28:13]OFD Sender: No OFD packet to send [08:28:18]OFD Sender: No OFD packet to send [08:28:23]OFD Sender: No OFD packet to send [08:28:28]OFD Sender: No OFD packet to send [08:28:33]OFD Sender: No OFD packet to send [08:28:38]OFD Sender: No OFD packet to send [08:28:43]OFD Sender: No OFD packet to send [08:28:48]OFD Sender: No OFD packet to send [08:28:50]accept exits with 9 [08:28:50]New connection [08:28:50]New thread 3067342180 created [08:28:50]Thread 3067198820 joined [08:28:50]Waiting for new connection... [08:28:50] Sock 9.Parse request [08:28:50]Sock 9.Check first char [08:28:50]Sock 9.First char is OK [08:28:50]request: POST /json_proto HTTP/1.0 [08:28:50]Method: POST [08:28:50]URL: /json_proto [08:28:50]Method is POST - this is cgi request [08:28:50]url: /json_proto [08:28:50]query_string will be loaded in cgi processing [08:28:50]execute_cgi json_proto POST (null) [08:28:50]execute_cgi path=json_proto method=POST [08:28:50]POST find Content-Length [08:28:50]Host: 172.17.32.69:8080 [08:28:50]Content-Length: 1202 [08:28:50]Content-Type: application/json [08:28:50] [08:28:50]POST finish read [08:28:50]Found Content-Length = 1202 [08:28:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040685\u000A15.03.2024 08:21\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 2\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 10.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 709.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3753557\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:50]execute_script... [08:28:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040685\u000A15.03.2024 08:21\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 2\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 10.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 709.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3753557\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:50]POST & json_proto [08:28:50]process_json_proto [08:28:50]json parsed OK: [08:28:50]protocol is kg_v1.0 [08:28:50]action value=print_text [08:28:50]process_action print_text [08:28:50]cmd_print_text [08:28:50]ExternCall_PrintAddStr [08:28:50]wPrintStart [08:28:50]Write to MH i2c: 01 00 00 0A 1E 28 [08:28:50]Write i2c OK [08:28:50]MH_I2C_Read... [08:28:50]Read from MH i2c: 01 [08:28:50]MH_I2C_Read... [08:28:50]Read from MH i2c: 01 07 00 [08:28:50]MH_I2C_Read... [08:28:50]Read from MH i2c: 01 07 00 0A 1E 00 00 00 00 00 FF 0F 3D [08:28:50]RasterBufferAndPrint [08:28:50]line *****ТОВАРНЫЙ ЧЕК***** [08:28:50]line АЗС 15 [08:28:50]line Партнер нефть [08:28:50]line 02508201610067 [08:28:50]line Кассир : Максатбек у Д. [08:28:50]line Счет N : (1)1040685 [08:28:50]line 15.03.2024 08:21 [08:28:50]line ПРОДАЖА [08:28:50]line ТРК (МРК, ГНК): 2 [08:28:50]line Вид ГСМ : 2710194210 [08:28:50]line ДТ(л)-К-5 [08:28:50]line 10.000 x 70.90 [08:28:50]line ИТОГ: 709.00 [08:28:50]line Тип оплаты: Талоны: Партнер нефть [08:28:50]line 3753557 [08:28:50]line ______________________ [08:28:50]line (подпись) [08:28:50]written 0, free lines is 4095 [08:28:51]Write to MH i2c: 01 00 00 1F 1E 3D [08:28:51]Write i2c OK [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: 01 [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: 01 07 00 [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: 01 07 00 1F 1E 00 00 00 00 00 F6 0D 47 [08:28:51]RasterBufferAndPrint [08:28:51]line [08:28:51]line [08:28:51]line [08:28:51]line [08:28:51]line [08:28:51]written 0, free lines is 3576 [08:28:51]MH_Cut [08:28:51]Write to MH i2c: D1 01 00 26 1E 01 16 [08:28:51]Write i2c OK [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: D1 [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: D1 01 00 [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: D1 01 00 26 1E 00 15 [08:28:51]Write to MH i2c: 01 00 00 27 1E 45 [08:28:51]Write i2c OK [08:28:51]MH_I2C_Read... [08:28:51]*** Cut start [08:28:51]*** Purtial cut [08:28:51]*** Stage 1: CUTSNS_PIN = 1 [08:28:51]Read from MH i2c: 01 [08:28:51]MH_I2C_Read... [08:28:51]*** Stop cut motor [08:28:51]*** Cut end [08:28:51]Read from MH i2c: 01 07 00 [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: 01 07 00 27 1E 00 00 00 00 00 FF 0F 5A [08:28:51]process_action print_text done [08:28:51]requested_data is exist [08:28:51]produce_requested_data [08:28:51]requested_item fm.sn is exist - process it [08:28:51]wFMCommunicate request_size=4 [08:28:51]MH_SAM_APDU [08:28:51]CAPDU: 80 11 00 00 [08:28:51]Write to MH i2c: E2 08 00 28 1E 80 11 00 00 00 00 00 00 C0 [08:28:51]Write i2c OK [08:28:51]MH_I2C_Read... [08:28:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:52]Read from MH i2c: E2 [08:28:52]MH_I2C_Read... [08:28:52]Read from MH i2c: E2 17 00 [08:28:52]MH_I2C_Read... [08:28:52]Read from MH i2c: E2 17 00 28 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 14 [08:28:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:28:52]wFMCommunicate OK [08:28:52]requested_item fd.num is exist - process it [08:28:52]SAM_PROTO_GetFieldsCounters [08:28:52]wFMCommunicate request_size=4 [08:28:52]MH_SAM_APDU [08:28:52]CAPDU: 80 13 00 00 [08:28:52]Write to MH i2c: E2 08 00 29 1E 80 13 00 00 00 00 00 00 C3 [08:28:52]Write i2c OK [08:28:52]MH_I2C_Read... [08:28:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:28:52]Read from MH i2c: E2 [08:28:52]MH_I2C_Read... [08:28:52]Read from MH i2c: E2 62 00 [08:28:52]MH_I2C_Read... [08:28:52]Read from MH i2c: E2 62 00 29 1E 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 EC A7 01 00 0E 04 04 00 40 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 43 [08: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 EC A7 01 00 0E 04 04 00 40 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 [08:28:52]wFMCommunicate OK [08:28:52]SAM_PROTO_GetFieldsCounters done [08:28:52]requested_item shift.num is exist - process it [08:28:52]requested_item shift.opened is exist - process it [08:28:52]req_shift_opened [08:28:52]FM_GetShiftState [08:28:52]SAM_PROTO_GetShiftState [08:28:52]wFMCommunicate request_size=4 [08:28:52]MH_SAM_APDU [08:28:52]CAPDU: 80 13 01 00 [08:28:52]Write to MH i2c: E2 08 00 2A 1E 80 13 01 00 00 00 00 00 C5 [08:28:52]Write i2c OK [08:28:52]MH_I2C_Read... [08:28:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:52]Read from MH i2c: E2 [08:28:52]MH_I2C_Read... [08:28:52]Read from MH i2c: E2 0E 00 [08:28:52]MH_I2C_Read... [08:28:52]Read from MH i2c: E2 0E 00 2A 1E 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 F9 [08:28:52]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:28:52]wFMCommunicate OK [08:28:52]SAM_PROTO_GetShiftState done [08:28:52]FM_GetShiftState done [08:28:52]req_shift_opened done [08:28:52]requested_item shift.open_date is exist - process it [08:28:52]req_shift_open_date [08:28:52]req_shift_open_date done [08:28:52]produce_requested_data done [08:28:52]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108524,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [08:28:52]process_action_free print_text [08:28:52]json_value_free [08:28:52]json_value_free done [08:28:52]process_json_proto returns [08:28:52]Send response to host [08:28:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108524,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [08:28:52]free response buf [08:28:52]execute_script done [08:28:52]execute_script returns [08:28:52]free content buf [08:28:52]Sock 9.Close socket [08:28:52]Sock 9.Thread stoped [08:28:53]OFD Sender: No OFD packet to send [08:28:56]ConnectInit Can't connect to host [08:28:58]OFD Sender: No OFD packet to send [08:29:03]OFD Sender: No OFD packet to send [08:29:08]OFD Sender: No OFD packet to send [08:29:13]OFD Sender: No OFD packet to send [08:29:18]OFD Sender: No OFD packet to send [08:29:23]OFD Sender: No OFD packet to send [08:29:28]OFD Sender: No OFD packet to send [08:29:33]OFD Sender: No OFD packet to send [08:29:38]OFD Sender: No OFD packet to send [08:29:43]OFD Sender: No OFD packet to send [08:29:48]OFD Sender: No OFD packet to send [08:29:53]OFD Sender: No OFD packet to send [08:29:58]OFD Sender: No OFD packet to send [08:30:03]OFD Sender: No OFD packet to send [08:30:08]OFD Sender: No OFD packet to send [08:30:13]OFD Sender: No OFD packet to send [08:30:18]OFD Sender: No OFD packet to send [08:30:23]OFD Sender: No OFD packet to send [08:30:28]OFD Sender: No OFD packet to send [08:30:33]OFD Sender: No OFD packet to send [08:30:38]OFD Sender: No OFD packet to send [08:30:43]OFD Sender: No OFD packet to send [08:30:48]OFD Sender: No OFD packet to send [08:30:53]OFD Sender: No OFD packet to send [08:30:58]OFD Sender: No OFD packet to send [08:31:03]OFD Sender: No OFD packet to send [08:31:08]OFD Sender: No OFD packet to send [08:31:13]OFD Sender: No OFD packet to send [08:31:18]OFD Sender: No OFD packet to send [08:31:22]accept exits with 10 [08:31:22]New connection [08:31:22]New thread 3067198820 created [08:31:22]Thread 3067342180 joined [08:31:22]Waiting for new connection... [08:31:22] Sock 10.Parse request [08:31:22]Sock 10.Check first char [08:31:22]Sock 10.First char is OK [08:31:22]request: POST /json_proto HTTP/1.0 [08:31:22]Method: POST [08:31:22]URL: /json_proto [08:31:22]Method is POST - this is cgi request [08:31:22]url: /json_proto [08:31:22]query_string will be loaded in cgi processing [08:31:22]execute_cgi json_proto POST (null) [08:31:22]execute_cgi path=json_proto method=POST [08:31:22]POST find Content-Length [08:31:22]Host: 172.17.32.69:8080 [08:31:22]Content-Length: 678 [08:31:22]Content-Type: application/json [08:31:22] [08:31:22]POST finish read [08:31:22]Found Content-Length = 678 [08:31:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 73", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 9.700, "sum" : 600.43, "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" ] } } [08:31:22]execute_script... [08:31:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 73", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 9.700, "sum" : 600.43, "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" ] } } [08:31:22]POST & json_proto [08:31:22]process_json_proto [08:31:22]json parsed OK: [08:31:22]protocol is kg_v1.0 [08:31:22]action value=close_receipt [08:31:22]process_action close_receipt [08:31:22]cmd_close_receipt [08:31:22]MH_GetDate [08:31:22]Write to MH i2c: F0 00 00 2B 1E 38 [08:31:22]Write i2c OK [08:31:22]MH_I2C_Read... [08:31:22]Read from MH i2c: F0 [08:31:22]MH_I2C_Read... [08:31:22]Read from MH i2c: F0 09 00 [08:31:22]MH_I2C_Read... [08:31:22]Read from MH i2c: F0 09 00 2B 1E 00 5D 07 F4 65 D5 0F D3 65 1A [08:31:22]GetLastDocTimeStamp 1710491129 [08:31:22]current date 1710491485 [08:31:22]FM_GetShiftState [08:31:22]SAM_PROTO_GetShiftState [08:31:22]wFMCommunicate request_size=4 [08:31:22]MH_SAM_APDU [08:31:22]CAPDU: 80 13 01 00 [08:31:22]Write to MH i2c: E2 08 00 2C 1E 80 13 01 00 00 00 00 00 C7 [08:31:22]Write i2c OK [08:31:22]MH_I2C_Read... [08:31:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:22]Read from MH i2c: E2 [08:31:22]MH_I2C_Read... [08:31:22]Read from MH i2c: E2 0E 00 [08:31:22]MH_I2C_Read... [08:31:22]Read from MH i2c: E2 0E 00 2C 1E 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 FB [08:31:22]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:31:22]wFMCommunicate OK [08:31:22]SAM_PROTO_GetShiftState done [08:31:22]FM_GetShiftState done [08:31:22]opened in 1710461757 [08:31:22]opened+sec_in_day 1710548157 [08:31:22]quantity*price = 60043 [08:31:22]sum+1 = 60044 [08:31:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 48 15.03.2024 08:31 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108525 ФПД: 495171375843 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T083125&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108525&fm=495171375843&tin=02508201610067®Number=0000000000091911&sum=60000 [08:31:23]StoreToDocumentArchive [08:31:23]shift 320 fd 108525 [08:31:23]save to /storage/0320/doc_00108525 [08:31:23]save last doc name /storage/0320/doc_00108525 to /storage/kkm_last_doc_name [08:31:23]save OK [08:31:23]Clear old archive folders... [08:31:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:31:23]tlvbuf is 001251A0 [08:31:23]SAM_PROTO_ClearQueue [08:31:23]wFMCommunicate request_size=4 [08:31:23]MH_SAM_APDU [08:31:23]CAPDU: 80 09 00 00 [08:31:23]Write to MH i2c: E2 08 00 39 1E 80 09 00 00 00 00 00 00 C9 [08:31:23]Write i2c OK [08:31:23]MH_I2C_Read... [08:31:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:31:23]Read from MH i2c: E2 [08:31:23]MH_I2C_Read... [08:31:23]Read from MH i2c: E2 03 00 [08:31:23]MH_I2C_Read... [08:31:23]Read from MH i2c: E2 03 00 39 1E 00 90 00 CB [08:31:23]RAPDU: 90 00 [08:31:23]wFMCommunicate OK [08:31:23]SAM_PROTO_ClearQueue done [08:31:23]KKMCreateOFDPacket [08:31:23]OFDProtocolAddRootSTLVToBuf [08:31:23]FM_MakeSignedData [08:31:23]FM_MakeSignedData [08:31:23]SAM_PROTO_SignData [08:31:23]wFMCommunicate request_size=4 [08:31:23]MH_SAM_APDU [08:31:23]CAPDU: 80 0D 01 02 [08:31:23]Write to MH i2c: E2 08 00 3A 1E 80 0D 01 02 00 00 00 00 D1 [08:31:23]Write i2c OK [08:31:23]MH_I2C_Read... [08:31:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:31:23]Read from MH i2c: E2 [08:31:23]MH_I2C_Read... [08:31:23]Read from MH i2c: E2 03 00 [08:31:23]MH_I2C_Read... [08:31:23]Read from MH i2c: E2 03 00 3A 1E 00 90 00 CC [08:31:23]RAPDU: 90 00 [08:31:23]wFMCommunicate OK [08:31:23]wFMCommunicate request_size=255 [08:31:23]MH_SAM_APDU [08:31:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 8B 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 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 5D 07 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 ED A7 01 00 35 04 06 00 00 [08:31:23]Write to MH i2c: E2 02 01 3B 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 8B 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 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 5D 07 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 ED A7 01 00 35 04 06 00 00 00 00 08 [08:31:23]Write i2c OK [08:31:23]MH_I2C_Read... [08:31:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:23]Read from MH i2c: E2 [08:31:23]MH_I2C_Read... [08:31:23]Read from MH i2c: E2 03 00 [08:31:23]MH_I2C_Read... [08:31:23]Read from MH i2c: E2 03 00 3B 1E 00 90 00 CD [08:31:23]RAPDU: 90 00 [08:31:23]wFMCommunicate OK [08:31:23]wFMCommunicate request_size=10 [08:31:23]MH_SAM_APDU [08:31:23]CAPDU: 80 0D 02 02 05 73 4A 83 92 E3 [08:31:23]Write to MH i2c: E2 0D 00 3C 1E 80 0D 02 02 05 00 73 4A 83 92 E3 00 00 93 [08:31:23]Write i2c OK [08:31:23]MH_I2C_Read... [08:31:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:23]Read from MH i2c: E2 [08:31:23]MH_I2C_Read... [08:31:23]Read from MH i2c: E2 03 00 [08:31:23]MH_I2C_Read... [08:31:23]Read from MH i2c: E2 03 00 3C 1E 00 90 00 CE [08:31:23]RAPDU: 90 00 [08:31:23]wFMCommunicate OK [08:31:23]wFMCommunicate request_size=4 [08:31:23]MH_SAM_APDU [08:31:23]CAPDU: 80 0D 03 02 [08:31:23]Write to MH i2c: E2 08 00 3D 1E 80 0D 03 02 00 00 00 00 D6 [08:31:23]Write i2c OK [08:31:23]MH_I2C_Read... [08:31:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:31:23]Read from MH i2c: E2 [08:31:23]MH_I2C_Read... [08:31:23]Read from MH i2c: E2 0B 00 [08:31:23]MH_I2C_Read... [08:31:23]Read from MH i2c: E2 0B 00 3D 1E 00 44 4B 53 4C 28 24 3F B3 90 00 43 [08:31:23]RAPDU: 44 4B 53 4C 28 24 3F B3 90 00 [08:31:23]wFMCommunicate OK [08:31:23]SAM_PROTO_SignData done [08:31:23]FM_MakeSignedData done [08:31:23]CreateOFDProtocolMessage [08:31:23]wFMCommunicate request_size=4 [08:31:23]MH_SAM_APDU [08:31:23]CAPDU: 80 11 00 00 [08:31:23]Write to MH i2c: E2 08 00 3E 1E 80 11 00 00 00 00 00 00 D6 [08:31:23]Write i2c OK [08:31:23]MH_I2C_Read... [08:31:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:23]Read from MH i2c: E2 [08:31:23]MH_I2C_Read... [08:31:23]Read from MH i2c: E2 17 00 [08:31:23]MH_I2C_Read... [08:31:23]Read from MH i2c: E2 17 00 3E 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 2A [08:31:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:31:23]wFMCommunicate OK [08:31:23]CreateOFDProtocolMessage done [08:31:23]OFDSenderStorePacket 108525 [08:31:23]StoreOFDPacket docnum=108525 [08:31:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 3E 3D 07 01 D5 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 35 FF 03 08 00 03 E4 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 8B 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 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 5D 07 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 ED A7 01 00 35 04 06 00 00 73 4A 83 92 E3 44 4B 53 4C 28 24 3F B3 [08:31:23]CheckFolder [08:31:23]dirname=/storage/ofd_packets [08:31:23]CheckFolder done [08:31:23]ProducePacketName [08:31:23]name=ofd_packets/00108525 [08:31:23]NVStorageSaveData ofd_packets/00108525 [08:31:23]File name is /storage/ofd_packets/00108525 [08:31:23]Write 301 bytes [08:31:23]NVStorageSaveData done [08:31:23]OFDSenderStorePacket done [08:31:23]KKMCreateOFDPacket done [08:31:23]NVStorageSaveData kkm_last_timestamp [08:31:23]File name is /storage/kkm_last_timestamp [08:31:23]Write 4 bytes [08:31:23]NVStorageSaveData done [08:31:23]ExternCall_PrintAddStr [08:31:23]wPrintStart [08:31:23]Write to MH i2c: 01 00 00 3F 1E 5D [08:31:23]Write i2c OK [08:31:23]MH_I2C_Read... [08:31:23]Read from MH i2c: 01 [08:31:23]MH_I2C_Read... [08:31:23]Read from MH i2c: 01 07 00 [08:31:23]MH_I2C_Read... [08:31:23]Read from MH i2c: 01 07 00 3F 1E 00 00 00 00 00 FF 0F 72 [08:31:23]RasterBufferAndPrint [08:31:23]line Счет N : (1)1040686 [08:31:23]line ИНН: 02508201610067 [08:31:23]line Контрольно-Кассовый Чек [08:31:23]line ПРОДАЖА [08:31:23]line ТРК (МРК, ГНК) : 73 [08:31:23]line Товар: 2710124130 [08:31:23]line Аи-92-К-5 [08:31:23]line 9.700 * 61.90 [08:31:23]line = 600.43 [08:31:23]line НДС 12% НСП 1% [08:31:23]line > о реализуемом товаре [08:31:23]line ОКРУГЛЕНИЕ: -0.43 [08:31:23]line ИТОГО: 600.00 [08:31:23]line Внесено: 600.00 [08:31:23]line СДАЧА: 0.00 [08:31:23]line НСП 1% : 5.31 [08:31:23]line НДС 12% : 63.76 [08:31:23]line Наличными: 600.00 [08:31:23]line Безнал.: 0.00 [08:31:23]line Место: АЗС № 15 "Партнер Нефть" [08:31:23]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [08:31:23]line СНО: Общий режим [08:31:23]line Чек 48 15.03.2024 08:31 [08:31:23]line Смена: 320 ФФД: 1.0 [08:31:23]line ЗНМ: 0300000266 [08:31:23]line РНМ: 0000000000091911 [08:31:23]line Версия ККМ: 001 [08:31:23]line ФМ: 0000000000871818 [08:31:23]line ФД: 108525 [08:31:23]line ФПД: 495171375843 [08:31:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T083125&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108525&fm=495171375843&tin=02508201610067®Number=0000000000091911&sum=60000 [08:31:24]OFD Sender: Processing packet 108525 [packets to send 29, broken 28] [08:31:24]ProducePacketName [08:31:24]name=ofd_packets/00108525 [08:31:24]OFD Sender: To server: pG, [08:31:24]CommunicateWithHost lk.salyk.kg:30040 [08:31:24]ConnectInit lk.salyk.kg [08:31:24]written 0, free lines is 4095 [08:31:24]Connected sock=9 [08:31:24]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 31 38 0F 01 00 00 3E 3D 07 01 D5 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 35 FF 03 08 00 03 E4 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 8B 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 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 5D 07 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 ED A7 01 00 35 04 06 00 00 73 4A 83 92 E3 44 4B 53 4C 28 24 3F B3 [08:31:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 4F 00 00 00 8A CB 47 00 C7 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 ED A7 01 00 F4 03 04 00 FD B2 F3 65 B6 04 01 00 00 AB B2 12 C4 8C 51 FC 84 [08:31:24]CommunicateWithHost err = 0 [08:31:24]CheckOFDResponse [08:31:24]1017 (14) - 77093643461234 [08:31:24]1041 (16) - 0000000000871818 [08:31:24]1040 (4) - 108525 [08:31:24]1012 (4) - 15.03.2024 02:31 [08:31:24]1206 (1) - 0 [08:31:24]OFD Sender: Remove packet 108525 [08:31:24]ProducePacketName [08:31:24]name=ofd_packets/00108525 [08:31:24]NVStorageDeleteData [08:31:24]Write to MH i2c: 01 00 00 6A 1E 88 [08:31:24]Write i2c OK [08:31:24]MH_I2C_Read... [08:31:24]Read from MH i2c: 01 [08:31:24]MH_I2C_Read... [08:31:24]Read from MH i2c: 01 07 00 [08:31:24]MH_I2C_Read... [08:31:24]Read from MH i2c: 01 07 00 6A 1E 00 00 00 00 00 CD 0C 68 [08:31:24]RasterBufferAndPrint [08:31:24]line [08:31:24]line [08:31:24]line [08:31:24]line [08:31:24]line [08:31:24]written 0, free lines is 3284 [08:31:24]MH_Cut [08:31:24]Write to MH i2c: D1 01 00 71 1E 01 61 [08:31:24]Write i2c OK [08:31:24]MH_I2C_Read... [08:31:24]Read from MH i2c: D1 [08:31:24]MH_I2C_Read... [08:31:24]Read from MH i2c: D1 01 00 [08:31:24]MH_I2C_Read... [08:31:24]Read from MH i2c: D1 01 00 71 1E 00 60 [08:31:24]Write to MH i2c: 01 00 00 72 1E 90 [08:31:24]Write i2c OK [08:31:24]MH_I2C_Read... [08:31:24]OFD Sender: No OFD packet to send [08:31:25]*** Cut start [08:31:25]*** Purtial cut [08:31:25]*** Stage 1: CUTSNS_PIN = 1 [08:31:25]Read from MH i2c: 01 [08:31:25]MH_I2C_Read... [08:31:25]*** Stop cut motor [08:31:25]*** Cut end [08:31:25]Read from MH i2c: 01 07 00 [08:31:25]MH_I2C_Read... [08:31:25]Read from MH i2c: 01 07 00 72 1E 00 00 00 00 00 FF 0F A5 [08:31:25]process_action close_receipt done [08:31:25]requested_data is exist [08:31:25]produce_requested_data [08:31:25]requested_item fm.sn is exist - process it [08:31:25]wFMCommunicate request_size=4 [08:31:25]MH_SAM_APDU [08:31:25]CAPDU: 80 11 00 00 [08:31:25]Write to MH i2c: E2 08 00 73 1E 80 11 00 00 00 00 00 00 0B [08:31:25]Write i2c OK [08:31:25]MH_I2C_Read... [08:31:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:25]Read from MH i2c: E2 [08:31:25]MH_I2C_Read... [08:31:25]Read from MH i2c: E2 17 00 [08:31:25]MH_I2C_Read... [08:31:25]Read from MH i2c: E2 17 00 73 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 5F [08:31:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:31:25]wFMCommunicate OK [08:31:25]requested_item fd.num is exist - process it [08:31:25]SAM_PROTO_GetFieldsCounters [08:31:25]wFMCommunicate request_size=4 [08:31:25]MH_SAM_APDU [08:31:25]CAPDU: 80 13 00 00 [08:31:25]Write to MH i2c: E2 08 00 74 1E 80 13 00 00 00 00 00 00 0E [08:31:25]Write i2c OK [08:31:25]MH_I2C_Read... [08:31:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:25]Read from MH i2c: E2 [08:31:25]MH_I2C_Read... [08:31:25]Read from MH i2c: E2 62 00 [08:31:25]MH_I2C_Read... [08:31:25]Read from MH i2c: E2 62 00 74 1E 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 ED A7 01 00 0E 04 04 00 40 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 92 [08:31: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 ED A7 01 00 0E 04 04 00 40 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 [08:31:25]wFMCommunicate OK [08:31:25]SAM_PROTO_GetFieldsCounters done [08:31:25]requested_item shift.num is exist - process it [08:31:25]requested_item shift.opened is exist - process it [08:31:25]req_shift_opened [08:31:25]FM_GetShiftState [08:31:25]SAM_PROTO_GetShiftState [08:31:25]wFMCommunicate request_size=4 [08:31:25]MH_SAM_APDU [08:31:25]CAPDU: 80 13 01 00 [08:31:25]Write to MH i2c: E2 08 00 75 1E 80 13 01 00 00 00 00 00 10 [08:31:25]Write i2c OK [08:31:25]MH_I2C_Read... [08:31:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:25]Read from MH i2c: E2 [08:31:25]MH_I2C_Read... [08:31:25]Read from MH i2c: E2 0E 00 [08:31:25]MH_I2C_Read... [08:31:25]Read from MH i2c: E2 0E 00 75 1E 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 44 [08:31:25]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:31:25]wFMCommunicate OK [08:31:25]SAM_PROTO_GetShiftState done [08:31:25]FM_GetShiftState done [08:31:25]req_shift_opened done [08:31:25]requested_item shift.open_date is exist - process it [08:31:25]req_shift_open_date [08:31:25]req_shift_open_date done [08:31:25]produce_requested_data done [08:31:25]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108525,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [08:31:25]process_action_free close_receipt [08:31:25]json_value_free [08:31:25]json_value_free done [08:31:25]process_json_proto returns [08:31:25]Send response to host [08:31:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108525,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [08:31:25]free response buf [08:31:25]execute_script done [08:31:25]execute_script returns [08:31:25]free content buf [08:31:25]Sock 10.Close socket [08:31:25]Sock 10.Thread stoped [08:31:29]OFD Sender: No OFD packet to send [08:31:34]OFD Sender: No OFD packet to send [08:31:39]OFD Sender: No OFD packet to send [08:31:44]OFD Sender: No OFD packet to send [08:31:49]OFD Sender: No OFD packet to send [08:31:54]OFD Sender: No OFD packet to send [08:31:59]OFD Sender: No OFD packet to send [08:32:04]OFD Sender: No OFD packet to send [08:32:09]OFD Sender: No OFD packet to send [08:32:14]OFD Sender: No OFD packet to send [08:32:16]accept exits with 8 [08:32:16]New connection [08:32:16]New thread 3067342180 created [08:32:16]Thread 3067198820 joined [08:32:16]Waiting for new connection... [08:32:16] Sock 8.Parse request [08:32:16]Sock 8.Check first char [08:32:16]Sock 8.First char is OK [08:32:16]request: POST /json_proto HTTP/1.0 [08:32:16]Method: POST [08:32:16]URL: /json_proto [08:32:16]Method is POST - this is cgi request [08:32:16]url: /json_proto [08:32:16]query_string will be loaded in cgi processing [08:32:16]execute_cgi json_proto POST (null) [08:32:16]execute_cgi path=json_proto method=POST [08:32:16]POST find Content-Length [08:32:16]Host: 172.17.32.69:8080 [08:32:16]Content-Length: 805 [08:32:16]Content-Type: application/json [08:32:16] [08:32:16]POST finish read [08:32:16]Found Content-Length = 805 [08:32:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 4.240, "sum" : 300.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:16]execute_script... [08:32: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)1040687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 4.240, "sum" : 300.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:16]POST & json_proto [08:32:16]process_json_proto [08:32:16]json parsed OK: [08:32:16]protocol is kg_v1.0 [08:32:16]action value=close_receipt [08:32:16]process_action close_receipt [08:32:16]cmd_close_receipt [08:32:16]MH_GetDate [08:32:16]Write to MH i2c: F0 00 00 76 1E 83 [08:32:16]Write i2c OK [08:32:16]MH_I2C_Read... [08:32:16]Read from MH i2c: F0 [08:32:16]MH_I2C_Read... [08:32:16]Read from MH i2c: F0 09 00 [08:32:16]MH_I2C_Read... [08:32:16]Read from MH i2c: F0 09 00 76 1E 00 93 07 F4 65 D5 0F D3 65 9B [08:32:16]GetLastDocTimeStamp 1710491485 [08:32:16]current date 1710491539 [08:32:16]FM_GetShiftState [08:32:16]SAM_PROTO_GetShiftState [08:32:16]wFMCommunicate request_size=4 [08:32:16]MH_SAM_APDU [08:32:16]CAPDU: 80 13 01 00 [08:32:16]Write to MH i2c: E2 08 00 77 1E 80 13 01 00 00 00 00 00 12 [08:32:16]Write i2c OK [08:32:16]MH_I2C_Read... [08:32:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:16]Read from MH i2c: E2 [08:32:16]MH_I2C_Read... [08:32:16]Read from MH i2c: E2 0E 00 [08:32:16]MH_I2C_Read... [08:32:16]Read from MH i2c: E2 0E 00 77 1E 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 46 [08:32:16]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:32:16]wFMCommunicate OK [08:32:16]SAM_PROTO_GetShiftState done [08:32:16]FM_GetShiftState done [08:32:16]opened in 1710461757 [08:32:16]opened+sec_in_day 1710548157 [08:32:16]quantity*price = 30061 [08:32:16]sum+1 = 30063 [08:32:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.62 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 0.00 Безнал.: 300.62 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 49 15.03.2024 08:32 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871818 ФД: 108526 ФПД: 76506880522310 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T083219&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108526&fm=76506880522310&tin=02508201610067®Number=0000000000091911&sum=30062 [08:32:17]StoreToDocumentArchive [08:32:17]shift 320 fd 108526 [08:32:17]save to /storage/0320/doc_00108526 [08:32:17]save last doc name /storage/0320/doc_00108526 to /storage/kkm_last_doc_name [08:32:17]save OK [08:32:17]Clear old archive folders... [08:32:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:32:17]tlvbuf is 000C48E0 [08:32:17]SAM_PROTO_ClearQueue [08:32:17]wFMCommunicate request_size=4 [08:32:17]MH_SAM_APDU [08:32:17]CAPDU: 80 09 00 00 [08:32:17]Write to MH i2c: E2 08 00 84 1E 80 09 00 00 00 00 00 00 14 [08:32:17]Write i2c OK [08:32:17]MH_I2C_Read... [08:32:17]Read from MH i2c: E2 [08:32:17]MH_I2C_Read... [08:32:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:32:17]Read from MH i2c: E2 03 00 [08:32:17]MH_I2C_Read... [08:32:17]Read from MH i2c: E2 03 00 84 1E 00 90 00 16 [08:32:17]RAPDU: 90 00 [08:32:17]wFMCommunicate OK [08:32:17]SAM_PROTO_ClearQueue done [08:32:17]KKMCreateOFDPacket [08:32:17]OFDProtocolAddRootSTLVToBuf [08:32:17]FM_MakeSignedData [08:32:17]FM_MakeSignedData [08:32:17]SAM_PROTO_SignData [08:32:17]wFMCommunicate request_size=4 [08:32:17]MH_SAM_APDU [08:32:17]CAPDU: 80 0D 01 02 [08:32:17]Write to MH i2c: E2 08 00 85 1E 80 0D 01 02 00 00 00 00 1C [08:32:17]Write i2c OK [08:32:17]MH_I2C_Read... [08:32:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:32:17]Read from MH i2c: E2 [08:32:17]MH_I2C_Read... [08:32:17]Read from MH i2c: E2 03 00 [08:32:17]MH_I2C_Read... [08:32:17]Read from MH i2c: E2 03 00 85 1E 00 90 00 17 [08:32:17]RAPDU: 90 00 [08:32:17]wFMCommunicate OK [08:32:17]wFMCommunicate request_size=255 [08:32:17]MH_SAM_APDU [08:32:17]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 90 10 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 6E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E 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 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 93 07 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 EE A7 01 00 35 04 06 00 [08:32:17]Write to MH i2c: E2 02 01 86 1E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 90 10 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 6E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E 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 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 93 07 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 EE A7 01 00 35 04 06 00 00 00 FE [08:32:17]Write i2c OK [08:32:17]MH_I2C_Read... [08:32:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:17]Read from MH i2c: E2 [08:32:17]MH_I2C_Read... [08:32:17]Read from MH i2c: E2 03 00 [08:32:17]MH_I2C_Read... [08:32:17]Read from MH i2c: E2 03 00 86 1E 00 90 00 18 [08:32:17]RAPDU: 90 00 [08:32:17]wFMCommunicate OK [08:32:17]wFMCommunicate request_size=11 [08:32:17]MH_SAM_APDU [08:32:17]CAPDU: 80 0D 02 02 06 45 95 25 6F B8 46 [08:32:17]Write to MH i2c: E2 0E 00 87 1E 80 0D 02 02 06 00 45 95 25 6F B8 46 00 00 97 [08:32:17]Write i2c OK [08:32:17]MH_I2C_Read... [08:32:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:17]Read from MH i2c: E2 [08:32:17]MH_I2C_Read... [08:32:17]Read from MH i2c: E2 03 00 [08:32:17]MH_I2C_Read... [08:32:17]Read from MH i2c: E2 03 00 87 1E 00 90 00 19 [08:32:17]RAPDU: 90 00 [08:32:17]wFMCommunicate OK [08:32:17]wFMCommunicate request_size=4 [08:32:17]MH_SAM_APDU [08:32:17]CAPDU: 80 0D 03 02 [08:32:17]Write to MH i2c: E2 08 00 88 1E 80 0D 03 02 00 00 00 00 21 [08:32:17]Write i2c OK [08:32:17]MH_I2C_Read... [08:32:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:32:17]Read from MH i2c: E2 [08:32:17]MH_I2C_Read... [08:32:17]Read from MH i2c: E2 0B 00 [08:32:17]MH_I2C_Read... [08:32:17]Read from MH i2c: E2 0B 00 88 1E 00 AC 70 1F 2C DE 6A E5 8E 90 00 44 [08:32:17]RAPDU: AC 70 1F 2C DE 6A E5 8E 90 00 [08:32:17]wFMCommunicate OK [08:32:17]SAM_PROTO_SignData done [08:32:17]FM_MakeSignedData done [08:32:17]CreateOFDProtocolMessage [08:32:17]wFMCommunicate request_size=4 [08:32:17]MH_SAM_APDU [08:32:17]CAPDU: 80 11 00 00 [08:32:17]Write to MH i2c: E2 08 00 89 1E 80 11 00 00 00 00 00 00 21 [08:32:17]Write i2c OK [08:32:17]MH_I2C_Read... [08:32:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:17]Read from MH i2c: E2 [08:32:17]MH_I2C_Read... [08:32:17]Read from MH i2c: E2 17 00 [08:32:17]MH_I2C_Read... [08:32:17]Read from MH i2c: E2 17 00 89 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 75 [08:32:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:32:17]wFMCommunicate OK [08:32:17]CreateOFDProtocolMessage done [08:32:17]OFDSenderStorePacket 108526 [08:32:17]StoreOFDPacket docnum=108526 [08:32:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 01 00 00 50 D0 08 01 1A F7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 90 10 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 6E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E 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 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 93 07 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 EE A7 01 00 35 04 06 00 45 95 25 6F B8 46 AC 70 1F 2C DE 6A E5 8E [08:32:17]CheckFolder [08:32:17]dirname=/storage/ofd_packets [08:32:17]CheckFolder done [08:32:17]ProducePacketName [08:32:17]name=ofd_packets/00108526 [08:32:17]NVStorageSaveData ofd_packets/00108526 [08:32:17]File name is /storage/ofd_packets/00108526 [08:32:17]Write 302 bytes [08:32:17]NVStorageSaveData done [08:32:17]OFDSenderStorePacket done [08:32:17]KKMCreateOFDPacket done [08:32:17]NVStorageSaveData kkm_last_timestamp [08:32:17]File name is /storage/kkm_last_timestamp [08:32:17]Write 4 bytes [08:32:17]NVStorageSaveData done [08:32:17]ExternCall_PrintAddStr [08:32:17]wPrintStart [08:32:17]Write to MH i2c: 01 00 00 8A 1E A8 [08:32:17]Write i2c OK [08:32:17]MH_I2C_Read... [08:32:17]Read from MH i2c: 01 [08:32:17]MH_I2C_Read... [08:32:17]Read from MH i2c: 01 07 00 [08:32:17]MH_I2C_Read... [08:32:17]Read from MH i2c: 01 07 00 8A 1E 00 00 00 00 00 FF 0F BD [08:32:17]RasterBufferAndPrint [08:32:17]line Счет N : (1)1040687 [08:32:17]line ИНН: 02508201610067 [08:32:17]line Контрольно-Кассовый Чек [08:32:17]line ПРОДАЖА [08:32:17]line ТРК (МРК, ГНК) : 6 [08:32:17]line Товар: 2710194210 [08:32:17]line ДТ(л)-К-5 [08:32:17]line 4.240 * 70.90 [08:32:17]line = 300.62 [08:32:17]line НДС 12% НСП 1% [08:32:17]line > о реализуемом товаре [08:32:17]line ИТОГО: 300.62 [08:32:17]line НСП 1% : 2.66 [08:32:17]line НДС 12% : 31.92 [08:32:17]line Наличными: 0.00 [08:32:17]line Безнал.: 300.62 [08:32:17]line Место: АЗС № 15 "Партнер Нефть" [08:32:17]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [08:32:17]line СНО: Общий режим [08:32:17]line Чек 49 15.03.2024 08:32 [08:32:17]line Смена: 320 ФФД: 1.0 [08:32:17]line ЗНМ: 0300000266 [08:32:17]line РНМ: 0000000000091911 [08:32:17]line Версия ККМ: 001 [08:32:17]line Платежная система: O! деньги [08:32:17]line ФМ: 0000000000871818 [08:32:17]line ФД: 108526 [08:32:17]line ФПД: 76506880522310 [08:32:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T083219&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108526&fm=76506880522310&tin=02508201610067®Number=0000000000091911&sum=30062 [08:32:18]written 0, free lines is 4095 [08:32:18]OFD Sender: Processing packet 108526 [packets to send 29, broken 28] [08:32:18]ProducePacketName [08:32:18]name=ofd_packets/00108526 [08:32:18]OFD Sender: To server: pG, [08:32:18]CommunicateWithHost lk.salyk.kg:30040 [08:32:18]ConnectInit lk.salyk.kg [08:32:18]Connected sock=10 [08:32: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 31 38 10 01 00 00 50 D0 08 01 1A F7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 90 10 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 6E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E 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 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 93 07 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 EE A7 01 00 35 04 06 00 45 95 25 6F B8 46 AC 70 1F 2C DE 6A E5 8E [08:32: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 31 38 4F 00 00 00 94 D6 47 00 4C 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 31 38 10 04 04 00 EE A7 01 00 F4 03 04 00 34 B3 F3 65 B6 04 01 00 00 26 36 24 19 02 D7 8C 87 [08:32:18]CommunicateWithHost err = 0 [08:32:18]CheckOFDResponse [08:32:18]1017 (14) - 77093643461234 [08:32:18]1041 (16) - 0000000000871818 [08:32:18]1040 (4) - 108526 [08:32:18]1012 (4) - 15.03.2024 02:32 [08:32:18]1206 (1) - 0 [08:32:18]OFD Sender: Remove packet 108526 [08:32:18]ProducePacketName [08:32:18]name=ofd_packets/00108526 [08:32:18]NVStorageDeleteData [08:32:18]Write to MH i2c: 01 00 00 B4 1E D2 [08:32:18]Write i2c OK [08:32:18]MH_I2C_Read... [08:32:18]Read from MH i2c: 01 [08:32:18]MH_I2C_Read... [08:32:18]Read from MH i2c: 01 07 00 [08:32:18]MH_I2C_Read... [08:32:18]Read from MH i2c: 01 07 00 B4 1E 00 00 00 00 00 E0 0C C5 [08:32:18]RasterBufferAndPrint [08:32:18]line [08:32:18]line [08:32:18]line [08:32:18]line [08:32:18]line [08:32:18]written 0, free lines is 3302 [08:32:18]MH_Cut [08:32:18]Write to MH i2c: D1 01 00 BB 1E 01 AB [08:32:18]Write i2c OK [08:32:18]MH_I2C_Read... [08:32:18]Read from MH i2c: D1 [08:32:18]MH_I2C_Read... [08:32:18]Read from MH i2c: D1 01 00 [08:32:18]MH_I2C_Read... [08:32:18]Read from MH i2c: D1 01 00 BB 1E 00 AA [08:32:18]Write to MH i2c: 01 00 00 BC 1E DA [08:32:18]Write i2c OK [08:32:18]MH_I2C_Read... [08:32:19]OFD Sender: No OFD packet to send [08:32:19]*** Cut start [08:32:19]*** Purtial cut [08:32:19]*** Stage 1: CUTSNS_PIN = 1 [08:32:19]Read from MH i2c: 01 [08:32:19]MH_I2C_Read... [08:32:19]*** Stop cut motor [08:32:19]*** Cut end [08:32:19]Read from MH i2c: 01 07 00 [08:32:19]MH_I2C_Read... [08:32:19]Read from MH i2c: 01 07 00 BC 1E 00 00 00 00 00 FF 0F EF [08:32:19]process_action close_receipt done [08:32:19]requested_data is exist [08:32:19]produce_requested_data [08:32:19]requested_item fm.sn is exist - process it [08:32:19]wFMCommunicate request_size=4 [08:32:19]MH_SAM_APDU [08:32:19]CAPDU: 80 11 00 00 [08:32:19]Write to MH i2c: E2 08 00 BD 1E 80 11 00 00 00 00 00 00 55 [08:32:19]Write i2c OK [08:32:19]MH_I2C_Read... [08:32:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:19]Read from MH i2c: E2 [08:32:19]MH_I2C_Read... [08:32:19]Read from MH i2c: E2 17 00 [08:32:19]MH_I2C_Read... [08:32:19]Read from MH i2c: E2 17 00 BD 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 A9 [08:32:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:32:19]wFMCommunicate OK [08:32:19]requested_item fd.num is exist - process it [08:32:19]SAM_PROTO_GetFieldsCounters [08:32:19]wFMCommunicate request_size=4 [08:32:19]MH_SAM_APDU [08:32:19]CAPDU: 80 13 00 00 [08:32:19]Write to MH i2c: E2 08 00 BE 1E 80 13 00 00 00 00 00 00 58 [08:32:19]Write i2c OK [08:32:19]MH_I2C_Read... [08:32:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:32:20]Read from MH i2c: E2 [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: E2 62 00 [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: E2 62 00 BE 1E 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 EE A7 01 00 0E 04 04 00 40 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 E0 [08:32: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 EE A7 01 00 0E 04 04 00 40 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 [08:32:20]wFMCommunicate OK [08:32:20]SAM_PROTO_GetFieldsCounters done [08:32:20]requested_item shift.num is exist - process it [08:32:20]requested_item shift.opened is exist - process it [08:32:20]req_shift_opened [08:32:20]FM_GetShiftState [08:32:20]SAM_PROTO_GetShiftState [08:32:20]wFMCommunicate request_size=4 [08:32:20]MH_SAM_APDU [08:32:20]CAPDU: 80 13 01 00 [08:32:20]Write to MH i2c: E2 08 00 BF 1E 80 13 01 00 00 00 00 00 5A [08:32:20]Write i2c OK [08:32:20]MH_I2C_Read... [08:32:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:20]Read from MH i2c: E2 [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: E2 0E 00 [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: E2 0E 00 BF 1E 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 8E [08:32:20]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:32:20]wFMCommunicate OK [08:32:20]SAM_PROTO_GetShiftState done [08:32:20]FM_GetShiftState done [08:32:20]req_shift_opened done [08:32:20]requested_item shift.open_date is exist - process it [08:32:20]req_shift_open_date [08:32:20]req_shift_open_date done [08:32:20]produce_requested_data done [08:32:20]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108526,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [08:32:20]process_action_free close_receipt [08:32:20]json_value_free [08:32:20]json_value_free done [08:32:20]process_json_proto returns [08:32:20]Send response to host [08:32:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108526,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [08:32:20]free response buf [08:32:20]execute_script done [08:32:20]execute_script returns [08:32:20]free content buf [08:32:20]Sock 8.Close socket [08:32:20]Sock 8.Thread stoped [08:32:24]OFD Sender: No OFD packet to send [08:32:29]OFD Sender: No OFD packet to send [08:32:34]OFD Sender: No OFD packet to send [08:32:39]OFD Sender: No OFD packet to send [08:32:44]OFD Sender: No OFD packet to send [08:32:45]accept exits with 9 [08:32:45]New connection [08:32:45]New thread 3067198820 created [08:32:45]Thread 3067342180 joined [08:32:45]Waiting for new connection... [08:32:45] Sock 9.Parse request [08:32:45]Sock 9.Check first char [08:32:45]Sock 9.First char is OK [08:32:45]request: POST /json_proto HTTP/1.0 [08:32:45]Method: POST [08:32:45]URL: /json_proto [08:32:45]Method is POST - this is cgi request [08:32:45]url: /json_proto [08:32:45]query_string will be loaded in cgi processing [08:32:45]execute_cgi json_proto POST (null) [08:32:45]execute_cgi path=json_proto method=POST [08:32:45]POST find Content-Length [08:32:45]Host: 172.17.32.69:8080 [08:32:45]Content-Length: 682 [08:32:45]Content-Type: application/json [08:32:45] [08:32:45]POST finish read [08:32:45]Found Content-Length = 682 [08:32:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 1.420, "sum" : 100.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:45]execute_script... [08:32:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 1.420, "sum" : 100.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:45]POST & json_proto [08:32:45]process_json_proto [08:32:45]json parsed OK: [08:32:45]protocol is kg_v1.0 [08:32:45]action value=close_receipt [08:32:45]process_action close_receipt [08:32:45]cmd_close_receipt [08:32:45]MH_GetDate [08:32:45]Write to MH i2c: F0 00 00 C0 1E CD [08:32:45]Write i2c OK [08:32:45]MH_I2C_Read... [08:32:45]Read from MH i2c: F0 [08:32:45]MH_I2C_Read... [08:32:45]Read from MH i2c: F0 09 00 [08:32:45]MH_I2C_Read... [08:32:45]Read from MH i2c: F0 09 00 C0 1E 00 B0 07 F4 65 D5 0F D3 65 02 [08:32:45]GetLastDocTimeStamp 1710491539 [08:32:45]current date 1710491568 [08:32:45]FM_GetShiftState [08:32:45]SAM_PROTO_GetShiftState [08:32:45]wFMCommunicate request_size=4 [08:32:45]MH_SAM_APDU [08:32:45]CAPDU: 80 13 01 00 [08:32:45]Write to MH i2c: E2 08 00 C1 1E 80 13 01 00 00 00 00 00 5C [08:32:45]Write i2c OK [08:32:45]MH_I2C_Read... [08:32:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:45]Read from MH i2c: E2 [08:32:45]MH_I2C_Read... [08:32:45]Read from MH i2c: E2 0E 00 [08:32:45]MH_I2C_Read... [08:32:45]Read from MH i2c: E2 0E 00 C1 1E 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 90 [08:32:45]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:32:45]wFMCommunicate OK [08:32:45]SAM_PROTO_GetShiftState done [08:32:45]FM_GetShiftState done [08:32:45]opened in 1710461757 [08:32:45]opened+sec_in_day 1710548157 [08:32:45]quantity*price = 10067 [08:32:45]sum+1 = 10069 [08:32:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.69 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 50 15.03.2024 08:32 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108527 ФПД: 203927737567215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T083248&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108527&fm=203927737567215&tin=02508201610067®Number=0000000000091911&sum=10000 [08:32:46]StoreToDocumentArchive [08:32:46]shift 320 fd 108527 [08:32:46]save to /storage/0320/doc_00108527 [08:32:46]save last doc name /storage/0320/doc_00108527 to /storage/kkm_last_doc_name [08:32:46]save OK [08:32:46]Clear old archive folders... [08:32:46]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:32:46]tlvbuf is 000D5260 [08:32:46]SAM_PROTO_ClearQueue [08:32:46]wFMCommunicate request_size=4 [08:32:46]MH_SAM_APDU [08:32:46]CAPDU: 80 09 00 00 [08:32:46]Write to MH i2c: E2 08 00 CE 1E 80 09 00 00 00 00 00 00 5E [08:32:46]Write i2c OK [08:32:46]MH_I2C_Read... [08:32:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:32:46]Read from MH i2c: E2 [08:32:46]MH_I2C_Read... [08:32:46]Read from MH i2c: E2 03 00 [08:32:46]MH_I2C_Read... [08:32:46]Read from MH i2c: E2 03 00 CE 1E 00 90 00 60 [08:32:46]RAPDU: 90 00 [08:32:46]wFMCommunicate OK [08:32:46]SAM_PROTO_ClearQueue done [08:32:46]KKMCreateOFDPacket [08:32:46]OFDProtocolAddRootSTLVToBuf [08:32:46]FM_MakeSignedData [08:32:46]FM_MakeSignedData [08:32:46]SAM_PROTO_SignData [08:32:46]wFMCommunicate request_size=4 [08:32:46]MH_SAM_APDU [08:32:46]CAPDU: 80 0D 01 02 [08:32:46]Write to MH i2c: E2 08 00 CF 1E 80 0D 01 02 00 00 00 00 66 [08:32:46]Write i2c OK [08:32:46]MH_I2C_Read... [08:32:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:32:46]Read from MH i2c: E2 [08:32:46]MH_I2C_Read... [08:32:46]Read from MH i2c: E2 03 00 [08:32:46]MH_I2C_Read... [08:32:46]Read from MH i2c: E2 03 00 CF 1E 00 90 00 61 [08:32:46]RAPDU: 90 00 [08:32:46]wFMCommunicate OK [08:32:46]wFMCommunicate request_size=255 [08:32:46]MH_SAM_APDU [08:32:46]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8C 05 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 54 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 B0 07 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 EF A7 01 00 35 04 06 00 [08:32:46]Write to MH i2c: E2 02 01 D0 1E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8C 05 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 54 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 B0 07 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 EF A7 01 00 35 04 06 00 00 00 93 [08:32:46]Write i2c OK [08:32:46]MH_I2C_Read... [08:32:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:46]Read from MH i2c: E2 [08:32:46]MH_I2C_Read... [08:32:46]Read from MH i2c: E2 03 00 [08:32:46]MH_I2C_Read... [08:32:46]Read from MH i2c: E2 03 00 D0 1E 00 90 00 62 [08:32:46]RAPDU: 90 00 [08:32:46]wFMCommunicate OK [08:32:46]wFMCommunicate request_size=11 [08:32:46]MH_SAM_APDU [08:32:46]CAPDU: 80 0D 02 02 06 B9 78 A0 5B 87 EF [08:32:46]Write to MH i2c: E2 0E 00 D1 1E 80 0D 02 02 06 00 B9 78 A0 5B 87 EF 00 00 17 [08:32:46]Write i2c OK [08:32:46]MH_I2C_Read... [08:32:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:46]Read from MH i2c: E2 [08:32:46]MH_I2C_Read... [08:32:46]Read from MH i2c: E2 03 00 [08:32:46]MH_I2C_Read... [08:32:46]Read from MH i2c: E2 03 00 D1 1E 00 90 00 63 [08:32:46]RAPDU: 90 00 [08:32:46]wFMCommunicate OK [08:32:46]wFMCommunicate request_size=4 [08:32:46]MH_SAM_APDU [08:32:46]CAPDU: 80 0D 03 02 [08:32:46]Write to MH i2c: E2 08 00 D2 1E 80 0D 03 02 00 00 00 00 6B [08:32:46]Write i2c OK [08:32:46]MH_I2C_Read... [08:32:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:32:46]Read from MH i2c: E2 [08:32:46]MH_I2C_Read... [08:32:46]Read from MH i2c: E2 0B 00 [08:32:46]MH_I2C_Read... [08:32:46]Read from MH i2c: E2 0B 00 D2 1E 00 02 16 33 8C D4 13 D5 DD 90 00 DC [08:32:46]RAPDU: 02 16 33 8C D4 13 D5 DD 90 00 [08:32:46]wFMCommunicate OK [08:32:46]SAM_PROTO_SignData done [08:32:46]FM_MakeSignedData done [08:32:46]CreateOFDProtocolMessage [08:32:46]wFMCommunicate request_size=4 [08:32:46]MH_SAM_APDU [08:32:46]CAPDU: 80 11 00 00 [08:32:46]Write to MH i2c: E2 08 00 D3 1E 80 11 00 00 00 00 00 00 6B [08:32:46]Write i2c OK [08:32:46]MH_I2C_Read... [08:32:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:46]Read from MH i2c: E2 [08:32:46]MH_I2C_Read... [08:32:46]Read from MH i2c: E2 17 00 [08:32:46]MH_I2C_Read... [08:32:46]Read from MH i2c: E2 17 00 D3 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 BF [08:32:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:32:46]wFMCommunicate OK [08:32:46]CreateOFDProtocolMessage done [08:32:46]OFDSenderStorePacket 108527 [08:32:46]StoreOFDPacket docnum=108527 [08:32:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 01 00 00 88 E9 08 01 F6 9A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8C 05 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 54 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 B0 07 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 EF A7 01 00 35 04 06 00 B9 78 A0 5B 87 EF 02 16 33 8C D4 13 D5 DD [08:32:46]CheckFolder [08:32:46]dirname=/storage/ofd_packets [08:32:46]CheckFolder done [08:32:46]ProducePacketName [08:32:46]name=ofd_packets/00108527 [08:32:46]NVStorageSaveData ofd_packets/00108527 [08:32:46]File name is /storage/ofd_packets/00108527 [08:32:46]Write 302 bytes [08:32:46]NVStorageSaveData done [08:32:46]OFDSenderStorePacket done [08:32:46]KKMCreateOFDPacket done [08:32:46]NVStorageSaveData kkm_last_timestamp [08:32:46]File name is /storage/kkm_last_timestamp [08:32:46]OFD Sender: Processing packet 108527 [packets to send 29, broken 28] [08:32:46]ProducePacketName [08:32:46]name=ofd_packets/00108527 [08:32:46]OFD Sender: To server: pG, [08:32:46]CommunicateWithHost lk.salyk.kg:30040 [08:32:46]ConnectInit lk.salyk.kg [08:32:46]Write 4 bytes [08:32:46]NVStorageSaveData done [08:32:46]ExternCall_PrintAddStr [08:32:46]wPrintStart [08:32:46]Write to MH i2c: 01 00 00 D4 1E F2 [08:32:46]Write i2c OK [08:32:46]MH_I2C_Read... [08:32:46]Read from MH i2c: 01 [08:32:46]MH_I2C_Read... [08:32:46]Read from MH i2c: 01 07 00 [08:32:46]MH_I2C_Read... [08:32:46]Read from MH i2c: 01 07 00 D4 1E 00 00 00 00 00 FF 0F 07 [08:32:46]RasterBufferAndPrint [08:32:46]line Счет N : (1)1040688 [08:32:46]line ИНН: 02508201610067 [08:32:46]line Контрольно-Кассовый Чек [08:32:46]line ПРОДАЖА [08:32:46]line ТРК (МРК, ГНК) : 6 [08:32:46]line Товар: 2710194210 [08:32:46]line ДТ(л)-К-5 [08:32:46]line 1.420 * 70.90 [08:32:46]line = 100.68 [08:32:46]line НДС 12% НСП 1% [08:32:46]line > о реализуемом товаре [08:32:46]line ОКРУГЛЕНИЕ: -0.68 [08:32:46]line ИТОГО: 100.00 [08:32:46]line Внесено: 100.00 [08:32:46]line СДАЧА: 0.00 [08:32:46]line НСП 1% : 0.89 [08:32:46]line НДС 12% : 10.69 [08:32:46]line Наличными: 100.00 [08:32:46]line Безнал.: 0.00 [08:32:46]line Место: АЗС № 15 "Партнер Нефть" [08:32:46]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [08:32:46]line СНО: Общий режим [08:32:46]line Чек 50 15.03.2024 08:32 [08:32:46]line Смена: 320 ФФД: 1.0 [08:32:46]line ЗНМ: 0300000266 [08:32:46]line РНМ: 0000000000091911 [08:32:46]line Версия ККМ: 001 [08:32:46]line ФМ: 0000000000871818 [08:32:47]line ФД: 108527 [08:32:47]line ФПД: 203927737567215 [08:32:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T083248&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108527&fm=203927737567215&tin=02508201610067®Number=0000000000091911&sum=10000 [08:32:47]Connected sock=11 [08:32:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 01 00 00 88 E9 08 01 F6 9A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8C 05 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 54 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 B0 07 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 EF A7 01 00 35 04 06 00 B9 78 A0 5B 87 EF 02 16 33 8C D4 13 D5 DD [08:32:47]written 0, free lines is 4095 [08:32:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 4F 00 00 00 24 3F 47 00 82 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 EF A7 01 00 F4 03 04 00 51 B3 F3 65 B6 04 01 00 00 E5 1A 79 7B 96 29 90 0B [08:32:47]CommunicateWithHost err = 0 [08:32:47]CheckOFDResponse [08:32:47]1017 (14) - 77093643461234 [08:32:47]1041 (16) - 0000000000871818 [08:32:47]1040 (4) - 108527 [08:32:47]1012 (4) - 15.03.2024 02:32 [08:32:47]1206 (1) - 0 [08:32:47]OFD Sender: Remove packet 108527 [08:32:47]ProducePacketName [08:32:47]name=ofd_packets/00108527 [08:32:47]NVStorageDeleteData [08:32:47]Write to MH i2c: 01 00 00 FF 1E 1D [08:32:47]Write i2c OK [08:32:47]MH_I2C_Read... [08:32:47]Read from MH i2c: 01 [08:32:47]MH_I2C_Read... [08:32:47]Read from MH i2c: 01 07 00 [08:32:47]MH_I2C_Read... [08:32:47]Read from MH i2c: 01 07 00 FF 1E 00 00 00 00 00 CD 0C FD [08:32:47]RasterBufferAndPrint [08:32:47]line [08:32:47]line [08:32:47]line [08:32:47]line [08:32:47]line [08:32:47]written 0, free lines is 3284 [08:32:47]MH_Cut [08:32:47]Write to MH i2c: D1 01 00 06 1F 01 F7 [08:32:47]Write i2c OK [08:32:47]MH_I2C_Read... [08:32:47]Read from MH i2c: D1 [08:32:47]MH_I2C_Read... [08:32:47]Read from MH i2c: D1 01 00 [08:32:47]MH_I2C_Read... [08:32:47]Read from MH i2c: D1 01 00 06 1F 00 F6 [08:32:47]Write to MH i2c: 01 00 00 07 1F 26 [08:32:47]Write i2c OK [08:32:47]MH_I2C_Read... [08:32:47]OFD Sender: No OFD packet to send [08:32:48]*** Cut start [08:32:48]*** Purtial cut [08:32:48]*** Stage 1: CUTSNS_PIN = 1 [08:32:48]Read from MH i2c: 01 [08:32:48]MH_I2C_Read... [08:32:48]*** Stop cut motor [08:32:48]*** Cut end [08:32:48]Read from MH i2c: 01 07 00 [08:32:48]MH_I2C_Read... [08:32:48]Read from MH i2c: 01 07 00 07 1F 00 00 00 00 00 FF 0F 3B [08:32:48]process_action close_receipt done [08:32:48]requested_data is exist [08:32:48]produce_requested_data [08:32:48]requested_item fm.sn is exist - process it [08:32:48]wFMCommunicate request_size=4 [08:32:48]MH_SAM_APDU [08:32:48]CAPDU: 80 11 00 00 [08:32:48]Write to MH i2c: E2 08 00 08 1F 80 11 00 00 00 00 00 00 A1 [08:32:48]Write i2c OK [08:32:48]MH_I2C_Read... [08:32:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:48]Read from MH i2c: E2 [08:32:48]MH_I2C_Read... [08:32:48]Read from MH i2c: E2 17 00 [08:32:48]MH_I2C_Read... [08:32:48]Read from MH i2c: E2 17 00 08 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 F5 [08:32:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:32:48]wFMCommunicate OK [08:32:48]requested_item fd.num is exist - process it [08:32:48]SAM_PROTO_GetFieldsCounters [08:32:48]wFMCommunicate request_size=4 [08:32:48]MH_SAM_APDU [08:32:48]CAPDU: 80 13 00 00 [08:32:48]Write to MH i2c: E2 08 00 09 1F 80 13 00 00 00 00 00 00 A4 [08:32:48]Write i2c OK [08:32:48]MH_I2C_Read... [08:32:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:32:49]Read from MH i2c: E2 [08:32:49]MH_I2C_Read... [08:32:49]Read from MH i2c: E2 62 00 [08:32:49]MH_I2C_Read... [08:32:49]Read from MH i2c: E2 62 00 09 1F 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 EF A7 01 00 0E 04 04 00 40 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 30 [08:32:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 EF A7 01 00 0E 04 04 00 40 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 [08:32:49]wFMCommunicate OK [08:32:49]SAM_PROTO_GetFieldsCounters done [08:32:49]requested_item shift.num is exist - process it [08:32:49]requested_item shift.opened is exist - process it [08:32:49]req_shift_opened [08:32:49]FM_GetShiftState [08:32:49]SAM_PROTO_GetShiftState [08:32:49]wFMCommunicate request_size=4 [08:32:49]MH_SAM_APDU [08:32:49]CAPDU: 80 13 01 00 [08:32:49]Write to MH i2c: E2 08 00 0A 1F 80 13 01 00 00 00 00 00 A6 [08:32:49]Write i2c OK [08:32:49]MH_I2C_Read... [08:32:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:49]Read from MH i2c: E2 [08:32:49]MH_I2C_Read... [08:32:49]Read from MH i2c: E2 0E 00 [08:32:49]MH_I2C_Read... [08:32:49]Read from MH i2c: E2 0E 00 0A 1F 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 DA [08:32:49]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:32:49]wFMCommunicate OK [08:32:49]SAM_PROTO_GetShiftState done [08:32:49]FM_GetShiftState done [08:32:49]req_shift_opened done [08:32:49]requested_item shift.open_date is exist - process it [08:32:49]req_shift_open_date [08:32:49]req_shift_open_date done [08:32:49]produce_requested_data done [08:32:49]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108527,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [08:32:49]process_action_free close_receipt [08:32:49]json_value_free [08:32:49]json_value_free done [08:32:49]process_json_proto returns [08:32:49]Send response to host [08:32:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108527,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [08:32:49]free response buf [08:32:49]execute_script done [08:32:49]execute_script returns [08:32:49]free content buf [08:32:49]Sock 9.Close socket [08:32:49]Sock 9.Thread stoped [08:32:52]OFD Sender: No OFD packet to send [08:32:57]OFD Sender: No OFD packet to send [08:33:02]OFD Sender: No OFD packet to send [08:33:07]OFD Sender: No OFD packet to send [08:33:12]OFD Sender: No OFD packet to send [08:33:17]OFD Sender: No OFD packet to send [08:33:22]OFD Sender: No OFD packet to send [08:33:27]OFD Sender: No OFD packet to send [08:33:33]OFD Sender: No OFD packet to send [08:33:38]OFD Sender: No OFD packet to send [08:33:43]OFD Sender: No OFD packet to send [08:33:48]OFD Sender: No OFD packet to send [08:33:53]OFD Sender: No OFD packet to send [08:33:58]OFD Sender: No OFD packet to send [08:34:03]OFD Sender: No OFD packet to send [08:34:08]OFD Sender: No OFD packet to send [08:34:13]OFD Sender: No OFD packet to send [08:34:18]OFD Sender: No OFD packet to send [08:34:23]OFD Sender: No OFD packet to send [08:34:28]OFD Sender: No OFD packet to send [08:34:33]OFD Sender: No OFD packet to send [08:34:38]OFD Sender: No OFD packet to send [08:34:43]OFD Sender: No OFD packet to send [08:34:48]OFD Sender: No OFD packet to send [08:34:53]OFD Sender: No OFD packet to send [08:34:58]OFD Sender: No OFD packet to send [08:35:03]OFD Sender: No OFD packet to send [08:35:08]OFD Sender: No OFD packet to send [08:35:13]OFD Sender: No OFD packet to send [08:35:18]OFD Sender: No OFD packet to send [08:35:23]OFD Sender: No OFD packet to send [08:35:28]OFD Sender: No OFD packet to send [08:35:33]OFD Sender: No OFD packet to send [08:35:38]OFD Sender: No OFD packet to send [08:35:43]OFD Sender: No OFD packet to send [08:35:48]OFD Sender: No OFD packet to send [08:35:53]OFD Sender: No OFD packet to send [08:35:58]OFD Sender: No OFD packet to send [08:36:03]OFD Sender: No OFD packet to send [08:36:08]OFD Sender: No OFD packet to send [08:36:13]OFD Sender: No OFD packet to send [08:36:18]OFD Sender: No OFD packet to send [08:36:23]OFD Sender: No OFD packet to send [08:36:28]OFD Sender: No OFD packet to send [08:36:33]OFD Sender: No OFD packet to send [08:36:38]OFD Sender: No OFD packet to send [08:36:43]OFD Sender: No OFD packet to send [08:36:48]OFD Sender: No OFD packet to send [08:36:53]OFD Sender: No OFD packet to send [08:36:58]OFD Sender: No OFD packet to send [08:37:03]OFD Sender: No OFD packet to send [08:37:08]OFD Sender: No OFD packet to send [08:37:13]OFD Sender: No OFD packet to send [08:37:18]OFD Sender: No OFD packet to send [08:37:23]OFD Sender: No OFD packet to send [08:37:28]OFD Sender: No OFD packet to send [08:37:33]OFD Sender: No OFD packet to send [08:37:38]OFD Sender: No OFD packet to send [08:37:43]OFD Sender: No OFD packet to send [08:37:48]OFD Sender: No OFD packet to send [08:37:53]OFD Sender: No OFD packet to send [08:37:58]OFD Sender: No OFD packet to send [08:38:03]OFD Sender: No OFD packet to send [08:38:08]OFD Sender: No OFD packet to send [08:38:13]OFD Sender: No OFD packet to send [08:38:18]OFD Sender: No OFD packet to send [08:38:23]OFD Sender: No OFD packet to send [08:38:27]accept exits with 8 [08:38:27]New connection [08:38:27]New thread 3067342180 created [08:38:27]Thread 3067198820 joined [08:38:27]Waiting for new connection... [08:38:27] Sock 8.Parse request [08:38:27]Sock 8.Check first char [08:38:27]Sock 8.First char is OK [08:38:27]request: POST /json_proto HTTP/1.0 [08:38:27]Method: POST [08:38:27]URL: /json_proto [08:38:27]Method is POST - this is cgi request [08:38:27]url: /json_proto [08:38:27]query_string will be loaded in cgi processing [08:38:27]execute_cgi json_proto POST (null) [08:38:27]execute_cgi path=json_proto method=POST [08:38:27]POST find Content-Length [08:38:27]Host: 172.17.32.69:8080 [08:38:27]Content-Length: 1202 [08:38:27]Content-Type: application/json [08:38:27] [08:38:27]POST finish read [08:38:27]Found Content-Length = 1202 [08:38:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040689\u000A15.03.2024 08:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 4\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 10.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 709.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3689177\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:27]execute_script... [08:38:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040689\u000A15.03.2024 08:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 4\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 10.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 709.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3689177\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:27]POST & json_proto [08:38:27]process_json_proto [08:38:27]json parsed OK: [08:38:27]protocol is kg_v1.0 [08:38:27]action value=print_text [08:38:27]process_action print_text [08:38:27]cmd_print_text [08:38:27]ExternCall_PrintAddStr [08:38:27]wPrintStart [08:38:27]Write to MH i2c: 01 00 00 0B 1F 2A [08:38:27]Write i2c OK [08:38:27]MH_I2C_Read... [08:38:27]Read from MH i2c: 01 [08:38:27]MH_I2C_Read... [08:38:27]Read from MH i2c: 01 07 00 [08:38:27]MH_I2C_Read... [08:38:27]Read from MH i2c: 01 07 00 0B 1F 00 00 00 00 00 FF 0F 3F [08:38:27]RasterBufferAndPrint [08:38:27]line *****ТОВАРНЫЙ ЧЕК***** [08:38:27]line АЗС 15 [08:38:27]line Партнер нефть [08:38:27]line 02508201610067 [08:38:27]line Кассир : Максатбек у Д. [08:38:27]line Счет N : (1)1040689 [08:38:27]line 15.03.2024 08:30 [08:38:27]line ПРОДАЖА [08:38:27]line ТРК (МРК, ГНК): 4 [08:38:27]line Вид ГСМ : 2710194210 [08:38:27]line ДТ(л)-К-5 [08:38:27]line 10.000 x 70.90 [08:38:27]line ИТОГ: 709.00 [08:38:27]line Тип оплаты: Талоны: Партнер нефть [08:38:27]line 3689177 [08:38:27]line ______________________ [08:38:27]line (подпись) [08:38:27]written 0, free lines is 4095 [08:38:27]Write to MH i2c: 01 00 00 20 1F 3F [08:38:27]Write i2c OK [08:38:27]MH_I2C_Read... [08:38:27]Read from MH i2c: 01 [08:38:27]MH_I2C_Read... [08:38:27]Read from MH i2c: 01 07 00 [08:38:27]MH_I2C_Read... [08:38:27]Read from MH i2c: 01 07 00 20 1F 00 00 00 00 00 F6 0D 49 [08:38:27]RasterBufferAndPrint [08:38:27]line [08:38:27]line [08:38:27]line [08:38:27]line [08:38:27]line [08:38:27]written 0, free lines is 3576 [08:38:27]MH_Cut [08:38:27]Write to MH i2c: D1 01 00 27 1F 01 18 [08:38:27]Write i2c OK [08:38:27]MH_I2C_Read... [08:38:27]Read from MH i2c: D1 [08:38:27]MH_I2C_Read... [08:38:27]Read from MH i2c: D1 01 00 [08:38:27]MH_I2C_Read... [08:38:27]Read from MH i2c: D1 01 00 27 1F 00 17 [08:38:27]Write to MH i2c: 01 00 00 28 1F 47 [08:38:27]Write i2c OK [08:38:27]MH_I2C_Read... [08:38:28]OFD Sender: No OFD packet to send [08:38:28]*** Cut start [08:38:28]*** Purtial cut [08:38:28]*** Stage 1: CUTSNS_PIN = 1 [08:38:28]Read from MH i2c: 01 [08:38:28]MH_I2C_Read... [08:38:28]*** Stop cut motor [08:38:28]*** Cut end [08:38:28]Read from MH i2c: 01 07 00 [08:38:28]MH_I2C_Read... [08:38:28]Read from MH i2c: 01 07 00 28 1F 00 00 00 00 00 FF 0F 5C [08:38:28]process_action print_text done [08:38:28]requested_data is exist [08:38:28]produce_requested_data [08:38:28]requested_item fm.sn is exist - process it [08:38:28]wFMCommunicate request_size=4 [08:38:28]MH_SAM_APDU [08:38:28]CAPDU: 80 11 00 00 [08:38:28]Write to MH i2c: E2 08 00 29 1F 80 11 00 00 00 00 00 00 C2 [08:38:28]Write i2c OK [08:38:28]MH_I2C_Read... [08:38:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:28]Read from MH i2c: E2 [08:38:28]MH_I2C_Read... [08:38:28]Read from MH i2c: E2 17 00 [08:38:28]MH_I2C_Read... [08:38:28]Read from MH i2c: E2 17 00 29 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 16 [08:38:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:38:28]wFMCommunicate OK [08:38:28]requested_item fd.num is exist - process it [08:38:28]SAM_PROTO_GetFieldsCounters [08:38:28]wFMCommunicate request_size=4 [08:38:28]MH_SAM_APDU [08:38:28]CAPDU: 80 13 00 00 [08:38:28]Write to MH i2c: E2 08 00 2A 1F 80 13 00 00 00 00 00 00 C5 [08:38:28]Write i2c OK [08:38:28]MH_I2C_Read... [08:38:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:38:28]Read from MH i2c: E2 [08:38:28]MH_I2C_Read... [08:38:28]Read from MH i2c: E2 62 00 [08:38:28]MH_I2C_Read... [08:38:28]Read from MH i2c: E2 62 00 2A 1F 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 EF A7 01 00 0E 04 04 00 40 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 51 [08:38: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 EF A7 01 00 0E 04 04 00 40 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 [08:38:28]wFMCommunicate OK [08:38:28]SAM_PROTO_GetFieldsCounters done [08:38:28]requested_item shift.num is exist - process it [08:38:28]requested_item shift.opened is exist - process it [08:38:28]req_shift_opened [08:38:28]FM_GetShiftState [08:38:28]SAM_PROTO_GetShiftState [08:38:28]wFMCommunicate request_size=4 [08:38:28]MH_SAM_APDU [08:38:28]CAPDU: 80 13 01 00 [08:38:28]Write to MH i2c: E2 08 00 2B 1F 80 13 01 00 00 00 00 00 C7 [08:38:28]Write i2c OK [08:38:28]MH_I2C_Read... [08:38:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:28]Read from MH i2c: E2 [08:38:28]MH_I2C_Read... [08:38:28]Read from MH i2c: E2 0E 00 [08:38:28]MH_I2C_Read... [08:38:28]Read from MH i2c: E2 0E 00 2B 1F 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 FB [08:38:28]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:38:28]wFMCommunicate OK [08:38:28]SAM_PROTO_GetShiftState done [08:38:28]FM_GetShiftState done [08:38:28]req_shift_opened done [08:38:28]requested_item shift.open_date is exist - process it [08:38:28]req_shift_open_date [08:38:28]req_shift_open_date done [08:38:28]produce_requested_data done [08:38:28]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108527,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [08:38:28]process_action_free print_text [08:38:28]json_value_free [08:38:28]json_value_free done [08:38:28]process_json_proto returns [08:38:28]Send response to host [08:38:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108527,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [08:38:28]free response buf [08:38:28]execute_script done [08:38:28]execute_script returns [08:38:28]free content buf [08:38:28]Sock 8.Close socket [08:38:28]Sock 8.Thread stoped [08:38:33]OFD Sender: No OFD packet to send [08:38:38]OFD Sender: No OFD packet to send [08:38:43]OFD Sender: No OFD packet to send [08:38:48]OFD Sender: No OFD packet to send [08:38:53]OFD Sender: No OFD packet to send [08:38:58]OFD Sender: No OFD packet to send [08:39:03]OFD Sender: No OFD packet to send [08:39:08]OFD Sender: No OFD packet to send [08:39:13]OFD Sender: No OFD packet to send [08:39:18]OFD Sender: No OFD packet to send [08:39:23]OFD Sender: No OFD packet to send [08:39:28]OFD Sender: No OFD packet to send [08:39:33]OFD Sender: No OFD packet to send [08:39:38]OFD Sender: No OFD packet to send [08:39:43]OFD Sender: No OFD packet to send [08:39:48]OFD Sender: No OFD packet to send [08:39:53]OFD Sender: No OFD packet to send [08:39:58]OFD Sender: No OFD packet to send [08:40:03]OFD Sender: No OFD packet to send [08:40:08]OFD Sender: No OFD packet to send [08:40:13]OFD Sender: No OFD packet to send [08:40:18]OFD Sender: No OFD packet to send [08:40:23]OFD Sender: No OFD packet to send [08:40:28]OFD Sender: No OFD packet to send [08:40:33]OFD Sender: No OFD packet to send [08:40:38]OFD Sender: No OFD packet to send [08:40:43]OFD Sender: No OFD packet to send [08:40:48]OFD Sender: No OFD packet to send [08:40:53]OFD Sender: No OFD packet to send [08:40:58]OFD Sender: No OFD packet to send [08:41:03]OFD Sender: No OFD packet to send [08:41:08]OFD Sender: No OFD packet to send [08:41:13]OFD Sender: No OFD packet to send [08:41:18]OFD Sender: No OFD packet to send [08:41:23]OFD Sender: No OFD packet to send [08:41:28]OFD Sender: No OFD packet to send [08:41:33]OFD Sender: No OFD packet to send [08:41:38]OFD Sender: No OFD packet to send [08:41:43]OFD Sender: No OFD packet to send [08:41:48]OFD Sender: No OFD packet to send [08:41:53]OFD Sender: No OFD packet to send [08:41:58]OFD Sender: No OFD packet to send [08:42:03]OFD Sender: No OFD packet to send [08:42:08]OFD Sender: No OFD packet to send [08:42:13]OFD Sender: No OFD packet to send [08:42:18]OFD Sender: No OFD packet to send [08:42:23]OFD Sender: No OFD packet to send [08:42:28]OFD Sender: No OFD packet to send [08:42:33]OFD Sender: No OFD packet to send [08:42:38]OFD Sender: No OFD packet to send [08:42:43]OFD Sender: No OFD packet to send [08:42:48]OFD Sender: No OFD packet to send [08:42:53]OFD Sender: No OFD packet to send [08:42:58]OFD Sender: No OFD packet to send [08:43:03]OFD Sender: No OFD packet to send [08:43:08]OFD Sender: No OFD packet to send [08:43:13]OFD Sender: No OFD packet to send [08:43:18]OFD Sender: No OFD packet to send [08:43:23]OFD Sender: No OFD packet to send [08:43:28]OFD Sender: No OFD packet to send [08:43:33]OFD Sender: No OFD packet to send [08:43:38]OFD Sender: No OFD packet to send [08:43:43]OFD Sender: No OFD packet to send [08:43:48]OFD Sender: No OFD packet to send [08:43:53]OFD Sender: No OFD packet to send [08:43:58]OFD Sender: No OFD packet to send [08:44:03]OFD Sender: No OFD packet to send [08:44:08]OFD Sender: No OFD packet to send [08:44:12]accept exits with 9 [08:44:12]New connection [08:44:12]New thread 3067198820 created [08:44:12]Thread 3067342180 joined [08:44:12]Waiting for new connection... [08:44:12] Sock 9.Parse request [08:44:12]Sock 9.Check first char [08:44:12]Sock 9.First char is OK [08:44:12]request: POST /json_proto HTTP/1.0 [08:44:12]Method: POST [08:44:12]URL: /json_proto [08:44:12]Method is POST - this is cgi request [08:44:12]url: /json_proto [08:44:12]query_string will be loaded in cgi processing [08:44:12]execute_cgi json_proto POST (null) [08:44:12]execute_cgi path=json_proto method=POST [08:44:12]POST find Content-Length [08:44:12]Host: 172.17.32.69:8080 [08:44:12]Content-Length: 683 [08:44:12]Content-Type: application/json [08:44:12] [08:44:12]POST finish read [08:44:12]Found Content-Length = 683 [08:44:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:12]execute_script... [08:44:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:12]POST & json_proto [08:44:12]process_json_proto [08:44:12]json parsed OK: [08:44:12]protocol is kg_v1.0 [08:44:12]action value=close_receipt [08:44:12]process_action close_receipt [08:44:12]cmd_close_receipt [08:44:12]MH_GetDate [08:44:12]Write to MH i2c: F0 00 00 2C 1F 3A [08:44:12]Write i2c OK [08:44:12]MH_I2C_Read... [08:44:12]Read from MH i2c: F0 [08:44:12]MH_I2C_Read... [08:44:12]Read from MH i2c: F0 09 00 [08:44:12]MH_I2C_Read... [08:44:12]Read from MH i2c: F0 09 00 2C 1F 00 5F 0A F4 65 D5 0F D3 65 21 [08:44:12]GetLastDocTimeStamp 1710491568 [08:44:12]current date 1710492255 [08:44:12]FM_GetShiftState [08:44:12]SAM_PROTO_GetShiftState [08:44:12]wFMCommunicate request_size=4 [08:44:12]MH_SAM_APDU [08:44:12]CAPDU: 80 13 01 00 [08:44:12]Write to MH i2c: E2 08 00 2D 1F 80 13 01 00 00 00 00 00 C9 [08:44:12]Write i2c OK [08:44:12]MH_I2C_Read... [08:44:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:12]Read from MH i2c: E2 [08:44:12]MH_I2C_Read... [08:44:12]Read from MH i2c: E2 0E 00 [08:44:12]MH_I2C_Read... [08:44:12]Read from MH i2c: E2 0E 00 2D 1F 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 FD [08:44:12]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:44:12]wFMCommunicate OK [08:44:12]SAM_PROTO_GetShiftState done [08:44:12]FM_GetShiftState done [08:44:12]opened in 1710461757 [08:44:12]opened+sec_in_day 1710548157 [08:44:12]quantity*price = 100030 [08:44:12]sum+1 = 100031 [08:44:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 51 15.03.2024 08:44 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108528 ФПД: 236730568544525 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T084415&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108528&fm=236730568544525&tin=02508201610067®Number=0000000000091911&sum=100000 [08:44:13]StoreToDocumentArchive [08:44:13]shift 320 fd 108528 [08:44:13]save to /storage/0320/doc_00108528 [08:44:13]save last doc name /storage/0320/doc_00108528 to /storage/kkm_last_doc_name [08:44:13]save OK [08:44:13]Clear old archive folders... [08:44:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:44:13]tlvbuf is B6F070E0 [08:44:13]SAM_PROTO_ClearQueue [08:44:13]wFMCommunicate request_size=4 [08:44:13]MH_SAM_APDU [08:44:13]CAPDU: 80 09 00 00 [08:44:13]Write to MH i2c: E2 08 00 3A 1F 80 09 00 00 00 00 00 00 CB [08:44:13]Write i2c OK [08:44:13]MH_I2C_Read... [08:44:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:44:13]Read from MH i2c: E2 [08:44:13]MH_I2C_Read... [08:44:13]Read from MH i2c: E2 03 00 [08:44:13]MH_I2C_Read... [08:44:13]Read from MH i2c: E2 03 00 3A 1F 00 90 00 CD [08:44:13]RAPDU: 90 00 [08:44:13]wFMCommunicate OK [08:44:13]SAM_PROTO_ClearQueue done [08:44:13]KKMCreateOFDPacket [08:44:13]OFDProtocolAddRootSTLVToBuf [08:44:13]FM_MakeSignedData [08:44:13]FM_MakeSignedData [08:44:13]SAM_PROTO_SignData [08:44:13]wFMCommunicate request_size=4 [08:44:13]MH_SAM_APDU [08:44:13]CAPDU: 80 0D 01 02 [08:44:13]Write to MH i2c: E2 08 00 3B 1F 80 0D 01 02 00 00 00 00 D3 [08:44:13]Write i2c OK [08:44:13]MH_I2C_Read... [08:44:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:44:13]Read from MH i2c: E2 [08:44:13]MH_I2C_Read... [08:44:13]Read from MH i2c: E2 03 00 [08:44:13]MH_I2C_Read... [08:44:13]Read from MH i2c: E2 03 00 3B 1F 00 90 00 CE [08:44:13]RAPDU: 90 00 [08:44:13]wFMCommunicate OK [08:44:13]wFMCommunicate request_size=255 [08:44:13]MH_SAM_APDU [08:44:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 33 00 00 00 F4 03 04 00 5F 0A F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F0 A7 01 00 35 04 06 00 D7 [08:44:13]Write to MH i2c: E2 02 01 3C 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 33 00 00 00 F4 03 04 00 5F 0A F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F0 A7 01 00 35 04 06 00 D7 00 00 D7 [08:44:13]Write i2c OK [08:44:13]MH_I2C_Read... [08:44:13]OFD Sender: No OFD packet to send [08:44:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:13]Read from MH i2c: E2 [08:44:13]MH_I2C_Read... [08:44:13]Read from MH i2c: E2 03 00 [08:44:13]MH_I2C_Read... [08:44:13]Read from MH i2c: E2 03 00 3C 1F 00 90 00 CF [08:44:13]RAPDU: 90 00 [08:44:13]wFMCommunicate OK [08:44:13]wFMCommunicate request_size=10 [08:44:13]MH_SAM_APDU [08:44:13]CAPDU: 80 0D 02 02 05 4E 21 72 11 0D [08:44:13]Write to MH i2c: E2 0D 00 3D 1F 80 0D 02 02 05 00 4E 21 72 11 0D 00 00 DF [08:44:13]Write i2c OK [08:44:13]MH_I2C_Read... [08:44:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:13]Read from MH i2c: E2 [08:44:13]MH_I2C_Read... [08:44:13]Read from MH i2c: E2 03 00 [08:44:13]MH_I2C_Read... [08:44:13]Read from MH i2c: E2 03 00 3D 1F 00 90 00 D0 [08:44:13]RAPDU: 90 00 [08:44:13]wFMCommunicate OK [08:44:13]wFMCommunicate request_size=4 [08:44:13]MH_SAM_APDU [08:44:13]CAPDU: 80 0D 03 02 [08:44:13]Write to MH i2c: E2 08 00 3E 1F 80 0D 03 02 00 00 00 00 D8 [08:44:13]Write i2c OK [08:44:13]MH_I2C_Read... [08:44:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:44:13]Read from MH i2c: E2 [08:44:13]MH_I2C_Read... [08:44:13]Read from MH i2c: E2 0B 00 [08:44:13]MH_I2C_Read... [08:44:13]Read from MH i2c: E2 0B 00 3E 1F 00 61 DC 5A EC 93 06 47 03 90 00 3F [08:44:13]RAPDU: 61 DC 5A EC 93 06 47 03 90 00 [08:44:13]wFMCommunicate OK [08:44:13]SAM_PROTO_SignData done [08:44:13]FM_MakeSignedData done [08:44:13]CreateOFDProtocolMessage [08:44:13]wFMCommunicate request_size=4 [08:44:13]MH_SAM_APDU [08:44:13]CAPDU: 80 11 00 00 [08:44:13]Write to MH i2c: E2 08 00 3F 1F 80 11 00 00 00 00 00 00 D8 [08:44:13]Write i2c OK [08:44:13]MH_I2C_Read... [08:44:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:13]Read from MH i2c: E2 [08:44:13]MH_I2C_Read... [08:44:13]Read from MH i2c: E2 17 00 [08:44:13]MH_I2C_Read... [08:44:13]Read from MH i2c: E2 17 00 3F 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 2C [08:44:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:44:13]wFMCommunicate OK [08:44:13]CreateOFDProtocolMessage done [08:44:13]OFDSenderStorePacket 108528 [08:44:13]StoreOFDPacket docnum=108528 [08:44:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 ED FC 07 01 FB 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 33 00 00 00 F4 03 04 00 5F 0A F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F0 A7 01 00 35 04 06 00 D7 4E 21 72 11 0D 61 DC 5A EC 93 06 47 03 [08:44:13]CheckFolder [08:44:13]dirname=/storage/ofd_packets [08:44:13]CheckFolder done [08:44:13]ProducePacketName [08:44:13]name=ofd_packets/00108528 [08:44:13]NVStorageSaveData ofd_packets/00108528 [08:44:13]File name is /storage/ofd_packets/00108528 [08:44:13]Write 301 bytes [08:44:13]NVStorageSaveData done [08:44:13]OFDSenderStorePacket done [08:44:13]KKMCreateOFDPacket done [08:44:13]NVStorageSaveData kkm_last_timestamp [08:44:13]File name is /storage/kkm_last_timestamp [08:44:13]Write 4 bytes [08:44:13]NVStorageSaveData done [08:44:13]ExternCall_PrintAddStr [08:44:13]wPrintStart [08:44:13]Write to MH i2c: 01 00 00 40 1F 5F [08:44:13]Write i2c OK [08:44:13]MH_I2C_Read... [08:44:13]Read from MH i2c: 01 [08:44:13]MH_I2C_Read... [08:44:13]Read from MH i2c: 01 07 00 [08:44:13]MH_I2C_Read... [08:44:13]Read from MH i2c: 01 07 00 40 1F 00 00 00 00 00 FF 0F 74 [08:44:13]RasterBufferAndPrint [08:44:13]line Счет N : (1)1040690 [08:44:13]line ИНН: 02508201610067 [08:44:13]line Контрольно-Кассовый Чек [08:44:13]line ПРОДАЖА [08:44:13]line ТРК (МРК, ГНК) : 23 [08:44:13]line Товар: 2710124130 [08:44:13]line Аи-92-К-5 [08:44:13]line 16.160 * 61.90 [08:44:13]line = 1000.30 [08:44:13]line НДС 12% НСП 1% [08:44:13]line > о реализуемом товаре [08:44:13]line ОКРУГЛЕНИЕ: -0.30 [08:44:13]line ИТОГО: 1000.00 [08:44:13]line Внесено: 1000.00 [08:44:13]line СДАЧА: 0.00 [08:44:13]line НСП 1% : 8.85 [08:44:13]line НДС 12% : 106.23 [08:44:13]line Наличными: 1000.00 [08:44:13]line Безнал.: 0.00 [08:44:13]line Место: АЗС № 15 "Партнер Нефть" [08:44:13]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [08:44:13]line СНО: Общий режим [08:44:13]line Чек 51 15.03.2024 08:44 [08:44:13]line Смена: 320 ФФД: 1.0 [08:44:13]line ЗНМ: 0300000266 [08:44:13]line РНМ: 0000000000091911 [08:44:13]line Версия ККМ: 001 [08:44:13]line ФМ: 0000000000871818 [08:44:13]line ФД: 108528 [08:44:13]line ФПД: 236730568544525 [08:44:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T084415&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108528&fm=236730568544525&tin=02508201610067®Number=0000000000091911&sum=100000 [08:44:14]OFD Sender: Processing packet 108528 [packets to send 29, broken 28] [08:44:14]ProducePacketName [08:44:14]name=ofd_packets/00108528 [08:44:14]OFD Sender: To server: pG, [08:44:14]CommunicateWithHost lk.salyk.kg:30040 [08:44:14]ConnectInit lk.salyk.kg [08:44:14]written 0, free lines is 4095 [08:44:14]Connected sock=10 [08:44:14]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 31 38 0F 01 00 00 ED FC 07 01 FB 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 33 00 00 00 F4 03 04 00 5F 0A F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F0 A7 01 00 35 04 06 00 D7 4E 21 72 11 0D 61 DC 5A EC 93 06 47 03 [08:44: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 31 38 4F 00 00 00 69 84 47 00 CE FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F0 A7 01 00 F4 03 04 00 00 B6 F3 65 B6 04 01 00 00 EC F5 85 AC A0 8D 30 AF [08:44:14]CommunicateWithHost err = 0 [08:44:14]CheckOFDResponse [08:44:14]1017 (14) - 77093643461234 [08:44:14]1041 (16) - 0000000000871818 [08:44:14]1040 (4) - 108528 [08:44:14]1012 (4) - 15.03.2024 02:44 [08:44:14]1206 (1) - 0 [08:44:14]OFD Sender: Remove packet 108528 [08:44:14]ProducePacketName [08:44:14]name=ofd_packets/00108528 [08:44:14]NVStorageDeleteData [08:44:14]Write to MH i2c: 01 00 00 6B 1F 8A [08:44:14]Write i2c OK [08:44:14]MH_I2C_Read... [08:44:14]Read from MH i2c: 01 [08:44:14]MH_I2C_Read... [08:44:14]Read from MH i2c: 01 07 00 [08:44:14]MH_I2C_Read... [08:44:14]Read from MH i2c: 01 07 00 6B 1F 00 00 00 00 00 DA 0C 77 [08:44:14]RasterBufferAndPrint [08:44:14]line [08:44:14]line [08:44:14]line [08:44:14]line [08:44:14]line [08:44:14]written 0, free lines is 3296 [08:44:14]MH_Cut [08:44:14]Write to MH i2c: D1 01 00 72 1F 01 63 [08:44:14]Write i2c OK [08:44:14]MH_I2C_Read... [08:44:14]Read from MH i2c: D1 [08:44:14]MH_I2C_Read... [08:44:14]Read from MH i2c: D1 01 00 [08:44:14]MH_I2C_Read... [08:44:14]Read from MH i2c: D1 01 00 72 1F 00 62 [08:44:14]Write to MH i2c: 01 00 00 73 1F 92 [08:44:14]Write i2c OK [08:44:14]MH_I2C_Read... [08:44:14]OFD Sender: No OFD packet to send [08:44:15]*** Cut start [08:44:15]*** Purtial cut [08:44:15]*** Stage 1: CUTSNS_PIN = 1 [08:44:15]Read from MH i2c: 01 [08:44:15]MH_I2C_Read... [08:44:15]*** Stop cut motor [08:44:15]*** Cut end [08:44:15]Read from MH i2c: 01 07 00 [08:44:15]MH_I2C_Read... [08:44:15]Read from MH i2c: 01 07 00 73 1F 00 00 00 00 00 FF 0F A7 [08:44:15]process_action close_receipt done [08:44:15]requested_data is exist [08:44:15]produce_requested_data [08:44:15]requested_item fm.sn is exist - process it [08:44:15]wFMCommunicate request_size=4 [08:44:15]MH_SAM_APDU [08:44:15]CAPDU: 80 11 00 00 [08:44:15]Write to MH i2c: E2 08 00 74 1F 80 11 00 00 00 00 00 00 0D [08:44:15]Write i2c OK [08:44:15]MH_I2C_Read... [08:44:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:15]Read from MH i2c: E2 [08:44:15]MH_I2C_Read... [08:44:15]Read from MH i2c: E2 17 00 [08:44:15]MH_I2C_Read... [08:44:15]Read from MH i2c: E2 17 00 74 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 61 [08:44:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:44:15]wFMCommunicate OK [08:44:15]requested_item fd.num is exist - process it [08:44:15]SAM_PROTO_GetFieldsCounters [08:44:15]wFMCommunicate request_size=4 [08:44:15]MH_SAM_APDU [08:44:15]CAPDU: 80 13 00 00 [08:44:15]Write to MH i2c: E2 08 00 75 1F 80 13 00 00 00 00 00 00 10 [08:44:15]Write i2c OK [08:44:15]MH_I2C_Read... [08:44:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:15]Read from MH i2c: E2 [08:44:15]MH_I2C_Read... [08:44:15]Read from MH i2c: E2 62 00 [08:44:15]MH_I2C_Read... [08:44:15]Read from MH i2c: E2 62 00 75 1F 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 F0 A7 01 00 0E 04 04 00 40 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 A0 [08:44: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 F0 A7 01 00 0E 04 04 00 40 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 [08:44:15]wFMCommunicate OK [08:44:15]SAM_PROTO_GetFieldsCounters done [08:44:15]requested_item shift.num is exist - process it [08:44:15]requested_item shift.opened is exist - process it [08:44:15]req_shift_opened [08:44:15]FM_GetShiftState [08:44:15]SAM_PROTO_GetShiftState [08:44:15]wFMCommunicate request_size=4 [08:44:15]MH_SAM_APDU [08:44:15]CAPDU: 80 13 01 00 [08:44:15]Write to MH i2c: E2 08 00 76 1F 80 13 01 00 00 00 00 00 12 [08:44:15]Write i2c OK [08:44:15]MH_I2C_Read... [08:44:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:15]Read from MH i2c: E2 [08:44:15]MH_I2C_Read... [08:44:15]Read from MH i2c: E2 0E 00 [08:44:15]MH_I2C_Read... [08:44:15]Read from MH i2c: E2 0E 00 76 1F 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 46 [08:44:15]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:44:15]wFMCommunicate OK [08:44:15]SAM_PROTO_GetShiftState done [08:44:15]FM_GetShiftState done [08:44:15]req_shift_opened done [08:44:15]requested_item shift.open_date is exist - process it [08:44:15]req_shift_open_date [08:44:15]req_shift_open_date done [08:44:15]produce_requested_data done [08:44:15]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108528,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [08:44:15]process_action_free close_receipt [08:44:15]json_value_free [08:44:15]json_value_free done [08:44:15]process_json_proto returns [08:44:15]Send response to host [08:44:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108528,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [08:44:15]free response buf [08:44:15]execute_script done [08:44:15]execute_script returns [08:44:15]free content buf [08:44:15]Sock 9.Close socket [08:44:15]Sock 9.Thread stoped [08:44:19]OFD Sender: No OFD packet to send [08:44:24]OFD Sender: No OFD packet to send [08:44:29]OFD Sender: No OFD packet to send [08:44:34]OFD Sender: No OFD packet to send [08:44:39]OFD Sender: No OFD packet to send [08:44:44]OFD Sender: No OFD packet to send [08:44:49]OFD Sender: No OFD packet to send [08:44:54]OFD Sender: No OFD packet to send [08:44:59]OFD Sender: No OFD packet to send [08:45:04]OFD Sender: No OFD packet to send [08:45:09]OFD Sender: No OFD packet to send [08:45:14]OFD Sender: No OFD packet to send [08:45:19]OFD Sender: No OFD packet to send [08:45:24]OFD Sender: No OFD packet to send [08:45:29]OFD Sender: No OFD packet to send [08:45:34]OFD Sender: No OFD packet to send [08:45:39]OFD Sender: No OFD packet to send [08:45:44]OFD Sender: No OFD packet to send [08:45:49]OFD Sender: No OFD packet to send [08:45:54]OFD Sender: No OFD packet to send [08:45:59]OFD Sender: No OFD packet to send [08:46:05]OFD Sender: No OFD packet to send [08:46:05]accept exits with 8 [08:46:05]New connection [08:46:05]New thread 3067342180 created [08:46:05]Thread 3067198820 joined [08:46:05]Waiting for new connection... [08:46:05] Sock 8.Parse request [08:46:05]Sock 8.Check first char [08:46:05]Sock 8.First char is OK [08:46:05]request: POST /json_proto HTTP/1.0 [08:46:05]Method: POST [08:46:05]URL: /json_proto [08:46:05]Method is POST - this is cgi request [08:46:05]url: /json_proto [08:46:05]query_string will be loaded in cgi processing [08:46:05]execute_cgi json_proto POST (null) [08:46:05]execute_cgi path=json_proto method=POST [08:46:05]POST find Content-Length [08:46:05]Host: 172.17.32.69:8080 [08:46:05]Content-Length: 794 [08:46:05]Content-Type: application/json [08:46:05] [08:46:05]POST finish read [08:46:05]Found Content-Length = 794 [08:46:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:05]execute_script... [08:46: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)1040691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:05]POST & json_proto [08:46:05]process_json_proto [08:46:05]json parsed OK: [08:46:05]protocol is kg_v1.0 [08:46:05]action value=close_receipt [08:46:05]process_action close_receipt [08:46:05]cmd_close_receipt [08:46:05]MH_GetDate [08:46:05]Write to MH i2c: F0 00 00 77 1F 85 [08:46:05]Write i2c OK [08:46:05]MH_I2C_Read... [08:46:05]Read from MH i2c: F0 [08:46:05]MH_I2C_Read... [08:46:05]Read from MH i2c: F0 09 00 [08:46:05]MH_I2C_Read... [08:46:05]Read from MH i2c: F0 09 00 77 1F 00 D0 0A F4 65 D5 0F D3 65 DD [08:46:05]GetLastDocTimeStamp 1710492255 [08:46:05]current date 1710492368 [08:46:05]FM_GetShiftState [08:46:05]SAM_PROTO_GetShiftState [08:46:05]wFMCommunicate request_size=4 [08:46:05]MH_SAM_APDU [08:46:05]CAPDU: 80 13 01 00 [08:46:05]Write to MH i2c: E2 08 00 78 1F 80 13 01 00 00 00 00 00 14 [08:46:05]Write i2c OK [08:46:05]MH_I2C_Read... [08:46:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:05]Read from MH i2c: E2 [08:46:05]MH_I2C_Read... [08:46:05]Read from MH i2c: E2 0E 00 [08:46:05]MH_I2C_Read... [08:46:05]Read from MH i2c: E2 0E 00 78 1F 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 48 [08:46:05]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:46:05]wFMCommunicate OK [08:46:05]SAM_PROTO_GetShiftState done [08:46:05]FM_GetShiftState done [08:46:05]opened in 1710461757 [08:46:05]opened+sec_in_day 1710548157 [08:46:05]quantity*price = 60006 [08:46:05]sum+1 = 60008 [08:46:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.07 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 0.00 Безнал.: 600.07 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 52 15.03.2024 08:46 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871818 ФД: 108529 ФПД: 261252945316199 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T084609&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108529&fm=261252945316199&tin=02508201610067®Number=0000000000091911&sum=60007 [08:46:06]StoreToDocumentArchive [08:46:06]shift 320 fd 108529 [08:46:06]save to /storage/0320/doc_00108529 [08:46:06]save last doc name /storage/0320/doc_00108529 to /storage/kkm_last_doc_name [08:46:06]save OK [08:46:06]Clear old archive folders... [08:46:06]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:46:06]tlvbuf is B6F07230 [08:46:06]SAM_PROTO_ClearQueue [08:46:06]wFMCommunicate request_size=4 [08:46:06]MH_SAM_APDU [08:46:06]CAPDU: 80 09 00 00 [08:46:06]Write to MH i2c: E2 08 00 85 1F 80 09 00 00 00 00 00 00 16 [08:46:06]Write i2c OK [08:46:06]MH_I2C_Read... [08:46:06]Read from MH i2c: E2 [08:46:06]MH_I2C_Read... [08:46:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:46:06]Read from MH i2c: E2 03 00 [08:46:06]MH_I2C_Read... [08:46:06]Read from MH i2c: E2 03 00 85 1F 00 90 00 18 [08:46:06]RAPDU: 90 00 [08:46:06]wFMCommunicate OK [08:46:06]SAM_PROTO_ClearQueue done [08:46:06]KKMCreateOFDPacket [08:46:06]OFDProtocolAddRootSTLVToBuf [08:46:06]FM_MakeSignedData [08:46:06]FM_MakeSignedData [08:46:06]SAM_PROTO_SignData [08:46:06]wFMCommunicate request_size=4 [08:46:06]MH_SAM_APDU [08:46:06]CAPDU: 80 0D 01 02 [08:46:06]Write to MH i2c: E2 08 00 86 1F 80 0D 01 02 00 00 00 00 1E [08:46:06]Write i2c OK [08:46:06]MH_I2C_Read... [08:46:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:46:06]Read from MH i2c: E2 [08:46:06]MH_I2C_Read... [08:46:06]Read from MH i2c: E2 03 00 [08:46:06]MH_I2C_Read... [08:46:06]Read from MH i2c: E2 03 00 86 1F 00 90 00 19 [08:46:06]RAPDU: 90 00 [08:46:06]wFMCommunicate OK [08:46:06]wFMCommunicate request_size=255 [08:46:06]MH_SAM_APDU [08:46:06]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 D1 0A F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F1 A7 01 00 35 04 06 00 [08:46:06]Write to MH i2c: E2 02 01 87 1F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 D1 0A F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F1 A7 01 00 35 04 06 00 00 00 A8 [08:46:06]Write i2c OK [08:46:06]MH_I2C_Read... [08:46:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:07]Read from MH i2c: E2 [08:46:07]MH_I2C_Read... [08:46:07]Read from MH i2c: E2 03 00 [08:46:07]MH_I2C_Read... [08:46:07]Read from MH i2c: E2 03 00 87 1F 00 90 00 1A [08:46:07]RAPDU: 90 00 [08:46:07]wFMCommunicate OK [08:46:07]wFMCommunicate request_size=11 [08:46:07]MH_SAM_APDU [08:46:07]CAPDU: 80 0D 02 02 06 ED 9B B1 00 89 67 [08:46:07]Write to MH i2c: E2 0E 00 88 1F 80 0D 02 02 06 00 ED 9B B1 00 89 67 00 00 56 [08:46:07]Write i2c OK [08:46:07]MH_I2C_Read... [08:46:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:07]Read from MH i2c: E2 [08:46:07]MH_I2C_Read... [08:46:07]Read from MH i2c: E2 03 00 [08:46:07]MH_I2C_Read... [08:46:07]Read from MH i2c: E2 03 00 88 1F 00 90 00 1B [08:46:07]RAPDU: 90 00 [08:46:07]wFMCommunicate OK [08:46:07]wFMCommunicate request_size=4 [08:46:07]MH_SAM_APDU [08:46:07]CAPDU: 80 0D 03 02 [08:46:07]Write to MH i2c: E2 08 00 89 1F 80 0D 03 02 00 00 00 00 23 [08:46:07]Write i2c OK [08:46:07]MH_I2C_Read... [08:46:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:46:07]Read from MH i2c: E2 [08:46:07]MH_I2C_Read... [08:46:07]Read from MH i2c: E2 0B 00 [08:46:07]MH_I2C_Read... [08:46:07]Read from MH i2c: E2 0B 00 89 1F 00 7F 1F E4 33 F4 4B BE A4 90 00 7A [08:46:07]RAPDU: 7F 1F E4 33 F4 4B BE A4 90 00 [08:46:07]wFMCommunicate OK [08:46:07]SAM_PROTO_SignData done [08:46:07]FM_MakeSignedData done [08:46:07]CreateOFDProtocolMessage [08:46:07]wFMCommunicate request_size=4 [08:46:07]MH_SAM_APDU [08:46:07]CAPDU: 80 11 00 00 [08:46:07]Write to MH i2c: E2 08 00 8A 1F 80 11 00 00 00 00 00 00 23 [08:46:07]Write i2c OK [08:46:07]MH_I2C_Read... [08:46:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:07]Read from MH i2c: E2 [08:46:07]MH_I2C_Read... [08:46:07]Read from MH i2c: E2 17 00 [08:46:07]MH_I2C_Read... [08:46:07]Read from MH i2c: E2 17 00 8A 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 77 [08:46:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:46:07]wFMCommunicate OK [08:46:07]CreateOFDProtocolMessage done [08:46:07]OFDSenderStorePacket 108529 [08:46:07]StoreOFDPacket docnum=108529 [08:46:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 01 00 00 B9 30 08 01 4F 5F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 D1 0A F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F1 A7 01 00 35 04 06 00 ED 9B B1 00 89 67 7F 1F E4 33 F4 4B BE A4 [08:46:07]CheckFolder [08:46:07]dirname=/storage/ofd_packets [08:46:07]CheckFolder done [08:46:07]ProducePacketName [08:46:07]name=ofd_packets/00108529 [08:46:07]NVStorageSaveData ofd_packets/00108529 [08:46:07]File name is /storage/ofd_packets/00108529 [08:46:07]Write 302 bytes [08:46:07]NVStorageSaveData done [08:46:07]OFDSenderStorePacket done [08:46:07]KKMCreateOFDPacket done [08:46:07]NVStorageSaveData kkm_last_timestamp [08:46:07]File name is /storage/kkm_last_timestamp [08:46:07]Write 4 bytes [08:46:07]NVStorageSaveData done [08:46:07]ExternCall_PrintAddStr [08:46:07]wPrintStart [08:46:07]Write to MH i2c: 01 00 00 8B 1F AA [08:46:07]Write i2c OK [08:46:07]MH_I2C_Read... [08:46:07]Read from MH i2c: 01 [08:46:07]MH_I2C_Read... [08:46:07]Read from MH i2c: 01 07 00 [08:46:07]MH_I2C_Read... [08:46:07]Read from MH i2c: 01 07 00 8B 1F 00 00 00 00 00 FF 0F BF [08:46:07]RasterBufferAndPrint [08:46:07]line Счет N : (1)1040691 [08:46:07]line ИНН: 02508201610067 [08:46:07]line Контрольно-Кассовый Чек [08:46:07]line ПРОДАЖА [08:46:07]line ТРК (МРК, ГНК) : 51 [08:46:07]line Товар: 2710124130 [08:46:07]line Super-92-К-5 [08:46:07]line 9.540 * 62.90 [08:46:07]line = 600.07 [08:46:07]line НДС 12% НСП 1% [08:46:07]line > о реализуемом товаре [08:46:07]line ИТОГО: 600.07 [08:46:07]line НСП 1% : 5.31 [08:46:07]line НДС 12% : 63.72 [08:46:07]line Наличными: 0.00 [08:46:07]line Безнал.: 600.07 [08:46:07]line Место: АЗС № 15 "Партнер Нефть" [08:46:07]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [08:46:07]line СНО: Общий режим [08:46:07]line Чек 52 15.03.2024 08:46 [08:46:07]line Смена: 320 ФФД: 1.0 [08:46:07]line ЗНМ: 0300000266 [08:46:07]line РНМ: 0000000000091911 [08:46:07]line Версия ККМ: 001 [08:46:07]line Платежная система: O! деньги [08:46:07]line ФМ: 0000000000871818 [08:46:07]line ФД: 108529 [08:46:07]line ФПД: 261252945316199 [08:46:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T084609&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108529&fm=261252945316199&tin=02508201610067®Number=0000000000091911&sum=60007 [08:46:07]OFD Sender: Processing packet 108529 [packets to send 29, broken 28] [08:46:07]ProducePacketName [08:46:07]name=ofd_packets/00108529 [08:46:07]OFD Sender: To server: pG, [08:46:07]CommunicateWithHost lk.salyk.kg:30040 [08:46:07]ConnectInit lk.salyk.kg [08:46:07]written 0, free lines is 4095 [08:46:07]Connected sock=10 [08:46: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 31 38 10 01 00 00 B9 30 08 01 4F 5F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 D1 0A F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F1 A7 01 00 35 04 06 00 ED 9B B1 00 89 67 7F 1F E4 33 F4 4B BE A4 [08:46: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 31 38 4F 00 00 00 87 66 47 00 36 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 31 38 10 04 04 00 F1 A7 01 00 F4 03 04 00 71 B6 F3 65 B6 04 01 00 00 D9 8B 24 B9 5F FF B7 AC [08:46:07]CommunicateWithHost err = 0 [08:46:07]CheckOFDResponse [08:46:07]1017 (14) - 77093643461234 [08:46:07]1041 (16) - 0000000000871818 [08:46:07]1040 (4) - 108529 [08:46:07]1012 (4) - 15.03.2024 02:46 [08:46:07]1206 (1) - 0 [08:46:07]OFD Sender: Remove packet 108529 [08:46:07]ProducePacketName [08:46:07]name=ofd_packets/00108529 [08:46:07]NVStorageDeleteData [08:46:07]Write to MH i2c: 01 00 00 B5 1F D4 [08:46:07]Write i2c OK [08:46:07]MH_I2C_Read... [08:46:07]Read from MH i2c: 01 [08:46:07]MH_I2C_Read... [08:46:07]Read from MH i2c: 01 07 00 [08:46:07]MH_I2C_Read... [08:46:07]Read from MH i2c: 01 07 00 B5 1F 00 00 00 00 00 E9 0C D0 [08:46:07]RasterBufferAndPrint [08:46:07]line [08:46:07]line [08:46:07]line [08:46:07]line [08:46:07]line [08:46:07]written 0, free lines is 3312 [08:46:08]MH_Cut [08:46:08]Write to MH i2c: D1 01 00 BC 1F 01 AD [08:46:08]Write i2c OK [08:46:08]MH_I2C_Read... [08:46:08]Read from MH i2c: D1 [08:46:08]MH_I2C_Read... [08:46:08]Read from MH i2c: D1 01 00 [08:46:08]MH_I2C_Read... [08:46:08]Read from MH i2c: D1 01 00 BC 1F 00 AC [08:46:08]Write to MH i2c: 01 00 00 BD 1F DC [08:46:08]Write i2c OK [08:46:08]MH_I2C_Read... [08:46:08]OFD Sender: No OFD packet to send [08:46:08]*** Cut start [08:46:08]*** Purtial cut [08:46:08]*** Stage 1: CUTSNS_PIN = 1 [08:46:09]Read from MH i2c: 01 [08:46:09]MH_I2C_Read... [08:46:09]*** Stop cut motor [08:46:09]*** Cut end [08:46:09]Read from MH i2c: 01 07 00 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: 01 07 00 BD 1F 00 00 00 00 00 FF 0F F1 [08:46:09]process_action close_receipt done [08:46:09]requested_data is exist [08:46:09]produce_requested_data [08:46:09]requested_item fm.sn is exist - process it [08:46:09]wFMCommunicate request_size=4 [08:46:09]MH_SAM_APDU [08:46:09]CAPDU: 80 11 00 00 [08:46:09]Write to MH i2c: E2 08 00 BE 1F 80 11 00 00 00 00 00 00 57 [08:46:09]Write i2c OK [08:46:09]MH_I2C_Read... [08:46:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:09]Read from MH i2c: E2 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 17 00 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 17 00 BE 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 AB [08:46:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:46:09]wFMCommunicate OK [08:46:09]requested_item fd.num is exist - process it [08:46:09]SAM_PROTO_GetFieldsCounters [08:46:09]wFMCommunicate request_size=4 [08:46:09]MH_SAM_APDU [08:46:09]CAPDU: 80 13 00 00 [08:46:09]Write to MH i2c: E2 08 00 BF 1F 80 13 00 00 00 00 00 00 5A [08:46:09]Write i2c OK [08:46:09]MH_I2C_Read... [08:46:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:46:09]Read from MH i2c: E2 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 62 00 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 62 00 BF 1F 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 F1 A7 01 00 0E 04 04 00 40 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 EE [08:46: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 F1 A7 01 00 0E 04 04 00 40 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 [08:46:09]wFMCommunicate OK [08:46:09]SAM_PROTO_GetFieldsCounters done [08:46:09]requested_item shift.num is exist - process it [08:46:09]requested_item shift.opened is exist - process it [08:46:09]req_shift_opened [08:46:09]FM_GetShiftState [08:46:09]SAM_PROTO_GetShiftState [08:46:09]wFMCommunicate request_size=4 [08:46:09]MH_SAM_APDU [08:46:09]CAPDU: 80 13 01 00 [08:46:09]Write to MH i2c: E2 08 00 C0 1F 80 13 01 00 00 00 00 00 5C [08:46:09]Write i2c OK [08:46:09]MH_I2C_Read... [08:46:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:09]Read from MH i2c: E2 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 0E 00 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 0E 00 C0 1F 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 90 [08:46:09]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:46:09]wFMCommunicate OK [08:46:09]SAM_PROTO_GetShiftState done [08:46:09]FM_GetShiftState done [08:46:09]req_shift_opened done [08:46:09]requested_item shift.open_date is exist - process it [08:46:09]req_shift_open_date [08:46:09]req_shift_open_date done [08:46:09]produce_requested_data done [08:46:09]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108529,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [08:46:09]process_action_free close_receipt [08:46:09]json_value_free [08:46:09]json_value_free done [08:46:09]process_json_proto returns [08:46:09]Send response to host [08:46:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108529,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [08:46:09]free response buf [08:46:09]execute_script done [08:46:09]execute_script returns [08:46:09]free content buf [08:46:09]Sock 8.Close socket [08:46:09]Sock 8.Thread stoped [08:46:13]OFD Sender: No OFD packet to send [08:46:18]OFD Sender: No OFD packet to send [08:46:23]OFD Sender: No OFD packet to send [08:46:28]OFD Sender: No OFD packet to send [08:46:33]OFD Sender: No OFD packet to send [08:46:38]OFD Sender: No OFD packet to send [08:46:43]OFD Sender: No OFD packet to send [08:46:48]OFD Sender: No OFD packet to send [08:46:53]OFD Sender: No OFD packet to send [08:46:56]accept exits with 9 [08:46:56]New connection [08:46:56]New thread 3067198820 created [08:46:56]Thread 3067342180 joined [08:46:56]Waiting for new connection... [08:46:56] Sock 9.Parse request [08:46:56]Sock 9.Check first char [08:46:56]Sock 9.First char is OK [08:46:56]request: POST /json_proto HTTP/1.0 [08:46:56]Method: POST [08:46:56]URL: /json_proto [08:46:56]Method is POST - this is cgi request [08:46:56]url: /json_proto [08:46:56]query_string will be loaded in cgi processing [08:46:56]execute_cgi json_proto POST (null) [08:46:56]execute_cgi path=json_proto method=POST [08:46:56]POST find Content-Length [08:46:56]Host: 172.17.32.69:8080 [08:46:56]Content-Length: 1209 [08:46:56]Content-Type: application/json [08:46:56] [08:46:56]POST finish read [08:46:56]Found Content-Length = 1209 [08:46:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040692\u000A15.03.2024 08:39\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 28.370 x 70.50\u000A\u0418\u0422\u041E\u0413: 2000.09\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A81568\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:56]execute_script... [08:46:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040692\u000A15.03.2024 08:39\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 28.370 x 70.50\u000A\u0418\u0422\u041E\u0413: 2000.09\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A81568\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:56]POST & json_proto [08:46:56]process_json_proto [08:46:56]json parsed OK: [08:46:56]protocol is kg_v1.0 [08:46:56]action value=print_text [08:46:56]process_action print_text [08:46:56]cmd_print_text [08:46:56]ExternCall_PrintAddStr [08:46:56]wPrintStart [08:46:56]Write to MH i2c: 01 00 00 C1 1F E0 [08:46:56]Write i2c OK [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: 01 [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: 01 07 00 [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: 01 07 00 C1 1F 00 00 00 00 00 FF 0F F5 [08:46:56]RasterBufferAndPrint [08:46:56]line *****ТОВАРНЫЙ ЧЕК***** [08:46:56]line АЗС 15 [08:46:56]line Партнер нефть [08:46:56]line 02508201610067 [08:46:56]line Кассир : Максатбек у Д. [08:46:56]line Счет N : (1)1040692 [08:46:56]line 15.03.2024 08:39 [08:46:56]line ПРОДАЖА [08:46:56]line ТРК (МРК, ГНК): 42 [08:46:56]line Вид ГСМ : 2710124500 [08:46:56]line Аи-95-К-5 [08:46:56]line 28.370 x 70.50 [08:46:56]line ИТОГ: 2000.09 [08:46:56]line Тип оплаты: Талоны: Топливная Карта [08:46:56]line 81568 [08:46:56]line ______________________ [08:46:56]line (подпись) [08:46:56]written 0, free lines is 4095 [08:46:56]Write to MH i2c: 01 00 00 D6 1F F5 [08:46:56]Write i2c OK [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: 01 [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: 01 07 00 [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: 01 07 00 D6 1F 00 00 00 00 00 F8 0D 01 [08:46:56]RasterBufferAndPrint [08:46:56]line [08:46:56]line [08:46:56]line [08:46:56]line [08:46:56]line [08:46:56]written 0, free lines is 3578 [08:46:56]MH_Cut [08:46:56]Write to MH i2c: D1 01 00 DD 1F 01 CE [08:46:56]Write i2c OK [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: D1 [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: D1 01 00 [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: D1 01 00 DD 1F 00 CD [08:46:56]Write to MH i2c: 01 00 00 DE 1F FD [08:46:56]Write i2c OK [08:46:56]MH_I2C_Read... [08:46:56]*** Cut start [08:46:56]*** Purtial cut [08:46:56]*** Stage 1: CUTSNS_PIN = 1 [08:46:57]Read from MH i2c: 01 [08:46:57]MH_I2C_Read... [08:46:57]*** Stop cut motor [08:46:57]*** Cut end [08:46:57]Read from MH i2c: 01 07 00 [08:46:57]MH_I2C_Read... [08:46:57]Read from MH i2c: 01 07 00 DE 1F 00 00 00 00 00 FF 0F 12 [08:46:57]process_action print_text done [08:46:57]requested_data is exist [08:46:57]produce_requested_data [08:46:57]requested_item fm.sn is exist - process it [08:46:57]wFMCommunicate request_size=4 [08:46:57]MH_SAM_APDU [08:46:57]CAPDU: 80 11 00 00 [08:46:57]Write to MH i2c: E2 08 00 DF 1F 80 11 00 00 00 00 00 00 78 [08:46:57]Write i2c OK [08:46:57]MH_I2C_Read... [08:46:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:57]Read from MH i2c: E2 [08:46:57]MH_I2C_Read... [08:46:57]Read from MH i2c: E2 17 00 [08:46:57]MH_I2C_Read... [08:46:57]Read from MH i2c: E2 17 00 DF 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 CC [08:46:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:46:57]wFMCommunicate OK [08:46:57]requested_item fd.num is exist - process it [08:46:57]SAM_PROTO_GetFieldsCounters [08:46:57]wFMCommunicate request_size=4 [08:46:57]MH_SAM_APDU [08:46:57]CAPDU: 80 13 00 00 [08:46:57]Write to MH i2c: E2 08 00 E0 1F 80 13 00 00 00 00 00 00 7B [08:46:57]Write i2c OK [08:46:57]MH_I2C_Read... [08:46:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:46:57]Read from MH i2c: E2 [08:46:57]MH_I2C_Read... [08:46:57]Read from MH i2c: E2 62 00 [08:46:57]MH_I2C_Read... [08:46:57]Read from MH i2c: E2 62 00 E0 1F 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 F1 A7 01 00 0E 04 04 00 40 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 0F [08:46:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 F1 A7 01 00 0E 04 04 00 40 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 [08:46:57]wFMCommunicate OK [08:46:57]SAM_PROTO_GetFieldsCounters done [08:46:57]requested_item shift.num is exist - process it [08:46:57]requested_item shift.opened is exist - process it [08:46:57]req_shift_opened [08:46:57]FM_GetShiftState [08:46:57]SAM_PROTO_GetShiftState [08:46:57]wFMCommunicate request_size=4 [08:46:57]MH_SAM_APDU [08:46:57]CAPDU: 80 13 01 00 [08:46:57]Write to MH i2c: E2 08 00 E1 1F 80 13 01 00 00 00 00 00 7D [08:46:57]Write i2c OK [08:46:57]MH_I2C_Read... [08:46:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:57]Read from MH i2c: E2 [08:46:57]MH_I2C_Read... [08:46:57]Read from MH i2c: E2 0E 00 [08:46:57]MH_I2C_Read... [08:46:57]Read from MH i2c: E2 0E 00 E1 1F 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 B1 [08:46:57]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:46:57]wFMCommunicate OK [08:46:57]SAM_PROTO_GetShiftState done [08:46:57]FM_GetShiftState done [08:46:57]req_shift_opened done [08:46:57]requested_item shift.open_date is exist - process it [08:46:57]req_shift_open_date [08:46:57]req_shift_open_date done [08:46:57]produce_requested_data done [08:46:57]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108529,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [08:46:57]process_action_free print_text [08:46:57]json_value_free [08:46:57]json_value_free done [08:46:57]process_json_proto returns [08:46:57]Send response to host [08:46:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108529,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [08:46:57]free response buf [08:46:57]execute_script done [08:46:57]execute_script returns [08:46:57]free content buf [08:46:57]Sock 9.Close socket [08:46:57]Sock 9.Thread stoped [08:46:58]OFD Sender: No OFD packet to send [08:47:03]OFD Sender: No OFD packet to send [08:47:06]int [08:47:06]Write to MH i2c: 01 00 00 E2 1F 01 [08:47:06]*** FLAG_PRN_KEY set [08:47:06]Write i2c OK [08:47:06]MH_I2C_Read... [08:47:06]Read from MH i2c: 01 [08:47:06]MH_I2C_Read... [08:47:06]Read from MH i2c: 01 07 00 [08:47:06]MH_I2C_Read... [08:47:06]Read from MH i2c: 01 07 00 E2 1F 00 08 00 00 00 FF 0F 1E [08:47:06]state=0 [08:47:06]Key pressed [08:47:06]Feed [08:47:06]Write to MH i2c: D8 00 00 E3 1F D9 [08:47:06]Write i2c OK [08:47:06]MH_I2C_Read... [08:47:06]Read from MH i2c: D8 [08:47:06]MH_I2C_Read... [08:47:06]Read from MH i2c: D8 01 00 [08:47:06]MH_I2C_Read... [08:47:06]Read from MH i2c: D8 01 00 E3 1F 00 DA [08:47:06]int [08:47:06]Write to MH i2c: 01 00 00 E4 1F 03 [08:47:06]Write i2c OK [08:47:06]MH_I2C_Read... [08:47:06]Read from MH i2c: 01 [08:47:06]MH_I2C_Read... [08:47:06]Read from MH i2c: 01 07 00 [08:47:06]MH_I2C_Read... [08:47:06]Read from MH i2c: 01 07 00 E4 1F 00 48 00 00 00 3C 00 8E [08:47:06]state=2 [08:47:06]Key pressed [08:47:06]int [08:47:06]Write to MH i2c: 01 00 00 E5 1F 04 [08:47:06]*** FLAG_PRN_KEY reset [08:47:06]Write i2c OK [08:47:06]MH_I2C_Read... [08:47:06]Read from MH i2c: 01 [08:47:06]MH_I2C_Read... [08:47:06]Read from MH i2c: 01 07 00 [08:47:06]MH_I2C_Read... [08:47:06]Read from MH i2c: 01 07 00 E5 1F 00 00 00 00 00 FA 0F 14 [08:47:06]state=2 [08:47:06]Stop feed [08:47:08]OFD Sender: No OFD packet to send [08:47:13]OFD Sender: No OFD packet to send [08:47:18]OFD Sender: No OFD packet to send [08:47:23]OFD Sender: No OFD packet to send [08:47:28]OFD Sender: No OFD packet to send [08:47:33]OFD Sender: No OFD packet to send [08:47:38]OFD Sender: No OFD packet to send [08:47:43]OFD Sender: No OFD packet to send [08:47:48]OFD Sender: No OFD packet to send [08:47:53]OFD Sender: No OFD packet to send [08:47:58]OFD Sender: No OFD packet to send [08:48:03]OFD Sender: No OFD packet to send [08:48:08]OFD Sender: No OFD packet to send [08:48:13]OFD Sender: No OFD packet to send [08:48:18]OFD Sender: No OFD packet to send [08:48:23]OFD Sender: No OFD packet to send [08:48:28]OFD Sender: No OFD packet to send [08:48:33]OFD Sender: No OFD packet to send [08:48:38]OFD Sender: No OFD packet to send [08:48:41]accept exits with 8 [08:48:41]New connection [08:48:41]New thread 3067342180 created [08:48:41]Thread 3067198820 joined [08:48:41]Waiting for new connection... [08:48:41] Sock 8.Parse request [08:48:41]Sock 8.Check first char [08:48:41]Sock 8.First char is OK [08:48:41]request: POST /json_proto HTTP/1.0 [08:48:41]Method: POST [08:48:41]URL: /json_proto [08:48:41]Method is POST - this is cgi request [08:48:41]url: /json_proto [08:48:41]query_string will be loaded in cgi processing [08:48:41]execute_cgi json_proto POST (null) [08:48:41]execute_cgi path=json_proto method=POST [08:48:41]POST find Content-Length [08:48:41]Host: 172.17.32.69:8080 [08:48:41]Content-Length: 683 [08:48:41]Content-Type: application/json [08:48:41] [08:48:41]POST finish read [08:48:41]Found Content-Length = 683 [08:48:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 70.50, "quantity" : 14.190, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:41]execute_script... [08:48: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)1040693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 70.50, "quantity" : 14.190, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:41]POST & json_proto [08:48:41]process_json_proto [08:48:41]json parsed OK: [08:48:41]protocol is kg_v1.0 [08:48:41]action value=close_receipt [08:48:41]process_action close_receipt [08:48:41]cmd_close_receipt [08:48:41]MH_GetDate [08:48:41]Write to MH i2c: F0 00 00 E6 1F F4 [08:48:41]Write i2c OK [08:48:41]MH_I2C_Read... [08:48:41]Read from MH i2c: F0 [08:48:41]MH_I2C_Read... [08:48:41]Read from MH i2c: F0 09 00 [08:48:41]MH_I2C_Read... [08:48:41]Read from MH i2c: F0 09 00 E6 1F 00 6D 0B F4 65 D5 0F D3 65 EA [08:48:41]GetLastDocTimeStamp 1710492369 [08:48:41]current date 1710492525 [08:48:41]FM_GetShiftState [08:48:41]SAM_PROTO_GetShiftState [08:48:41]wFMCommunicate request_size=4 [08:48:41]MH_SAM_APDU [08:48:41]CAPDU: 80 13 01 00 [08:48:41]Write to MH i2c: E2 08 00 E7 1F 80 13 01 00 00 00 00 00 83 [08:48:41]Write i2c OK [08:48:41]MH_I2C_Read... [08:48:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:41]Read from MH i2c: E2 [08:48:41]MH_I2C_Read... [08:48:41]Read from MH i2c: E2 0E 00 [08:48:41]MH_I2C_Read... [08:48:41]Read from MH i2c: E2 0E 00 E7 1F 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 B7 [08:48:41]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:48:41]wFMCommunicate OK [08:48:41]SAM_PROTO_GetShiftState done [08:48:41]FM_GetShiftState done [08:48:41]opened in 1710461757 [08:48:41]opened+sec_in_day 1710548157 [08:48:41]quantity*price = 100039 [08:48:41]sum+1 = 100041 [08:48:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 53 15.03.2024 08:48 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108530 ФПД: 116305592592719 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T084845&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108530&fm=116305592592719&tin=02508201610067®Number=0000000000091911&sum=100000 [08:48:42]StoreToDocumentArchive [08:48:42]shift 320 fd 108530 [08:48:42]save to /storage/0320/doc_00108530 [08:48:42]save last doc name /storage/0320/doc_00108530 to /storage/kkm_last_doc_name [08:48:42]save OK [08:48:42]Clear old archive folders... [08:48:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:48:42]tlvbuf is B6F20BD0 [08:48:42]SAM_PROTO_ClearQueue [08:48:42]wFMCommunicate request_size=4 [08:48:42]MH_SAM_APDU [08:48:42]CAPDU: 80 09 00 00 [08:48:42]Write to MH i2c: E2 08 00 F4 1F 80 09 00 00 00 00 00 00 85 [08:48:42]Write i2c OK [08:48:42]MH_I2C_Read... [08:48:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:48:42]Read from MH i2c: E2 [08:48:42]MH_I2C_Read... [08:48:42]Read from MH i2c: E2 03 00 [08:48:42]MH_I2C_Read... [08:48:42]Read from MH i2c: E2 03 00 F4 1F 00 90 00 87 [08:48:42]RAPDU: 90 00 [08:48:42]wFMCommunicate OK [08:48:42]SAM_PROTO_ClearQueue done [08:48:42]KKMCreateOFDPacket [08:48:42]OFDProtocolAddRootSTLVToBuf [08:48:42]FM_MakeSignedData [08:48:42]FM_MakeSignedData [08:48:42]SAM_PROTO_SignData [08:48:42]wFMCommunicate request_size=4 [08:48:42]MH_SAM_APDU [08:48:42]CAPDU: 80 0D 01 02 [08:48:42]Write to MH i2c: E2 08 00 F5 1F 80 0D 01 02 00 00 00 00 8D [08:48:42]Write i2c OK [08:48:42]MH_I2C_Read... [08:48:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:48:42]Read from MH i2c: E2 [08:48:42]MH_I2C_Read... [08:48:42]Read from MH i2c: E2 03 00 [08:48:42]MH_I2C_Read... [08:48:42]Read from MH i2c: E2 03 00 F5 1F 00 90 00 88 [08:48:42]RAPDU: 90 00 [08:48:42]wFMCommunicate OK [08:48:42]wFMCommunicate request_size=255 [08:48:42]MH_SAM_APDU [08:48:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6E 37 00 00 00 00 00 37 04 06 00 8A 1B 00 00 00 00 13 04 06 00 C8 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 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 6D 0B F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F2 A7 01 00 35 04 06 00 69 [08:48:43]Write to MH i2c: E2 02 01 F6 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6E 37 00 00 00 00 00 37 04 06 00 8A 1B 00 00 00 00 13 04 06 00 C8 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 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 6D 0B F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F2 A7 01 00 35 04 06 00 69 00 00 EA [08:48:43]Write i2c OK [08:48:43]MH_I2C_Read... [08:48:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:43]Read from MH i2c: E2 [08:48:43]MH_I2C_Read... [08:48:43]Read from MH i2c: E2 03 00 [08:48:43]MH_I2C_Read... [08:48:43]Read from MH i2c: E2 03 00 F6 1F 00 90 00 89 [08:48:43]RAPDU: 90 00 [08:48:43]wFMCommunicate OK [08:48:43]wFMCommunicate request_size=10 [08:48:43]MH_SAM_APDU [08:48:43]CAPDU: 80 0D 02 02 05 C7 81 88 29 4F [08:48:43]Write to MH i2c: E2 0D 00 F7 1F 80 0D 02 02 05 00 C7 81 88 29 4F 00 00 E2 [08:48:43]Write i2c OK [08:48:43]MH_I2C_Read... [08:48:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:43]Read from MH i2c: E2 [08:48:43]MH_I2C_Read... [08:48:43]Read from MH i2c: E2 03 00 [08:48:43]MH_I2C_Read... [08:48:43]Read from MH i2c: E2 03 00 F7 1F 00 90 00 8A [08:48:43]RAPDU: 90 00 [08:48:43]wFMCommunicate OK [08:48:43]wFMCommunicate request_size=4 [08:48:43]MH_SAM_APDU [08:48:43]CAPDU: 80 0D 03 02 [08:48:43]Write to MH i2c: E2 08 00 F8 1F 80 0D 03 02 00 00 00 00 92 [08:48:43]Write i2c OK [08:48:43]MH_I2C_Read... [08:48:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:48:43]Read from MH i2c: E2 [08:48:43]MH_I2C_Read... [08:48:43]Read from MH i2c: E2 0B 00 [08:48:43]MH_I2C_Read... [08:48:43]Read from MH i2c: E2 0B 00 F8 1F 00 D8 63 72 FA E6 74 F2 44 90 00 CA [08:48:43]RAPDU: D8 63 72 FA E6 74 F2 44 90 00 [08:48:43]wFMCommunicate OK [08:48:43]SAM_PROTO_SignData done [08:48:43]FM_MakeSignedData done [08:48:43]CreateOFDProtocolMessage [08:48:43]wFMCommunicate request_size=4 [08:48:43]MH_SAM_APDU [08:48:43]CAPDU: 80 11 00 00 [08:48:43]Write to MH i2c: E2 08 00 F9 1F 80 11 00 00 00 00 00 00 92 [08:48:43]Write i2c OK [08:48:43]MH_I2C_Read... [08:48:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:43]Read from MH i2c: E2 [08:48:43]MH_I2C_Read... [08:48:43]Read from MH i2c: E2 17 00 [08:48:43]MH_I2C_Read... [08:48:43]Read from MH i2c: E2 17 00 F9 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 E6 [08:48:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:48:43]wFMCommunicate OK [08:48:43]CreateOFDProtocolMessage done [08:48:43]OFDSenderStorePacket 108530 [08:48:43]StoreOFDPacket docnum=108530 [08:48:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 1D 69 07 01 45 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6E 37 00 00 00 00 00 37 04 06 00 8A 1B 00 00 00 00 13 04 06 00 C8 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 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 6D 0B F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F2 A7 01 00 35 04 06 00 69 C7 81 88 29 4F D8 63 72 FA E6 74 F2 44 [08:48:43]CheckFolder [08:48:43]dirname=/storage/ofd_packets [08:48:43]CheckFolder done [08:48:43]ProducePacketName [08:48:43]name=ofd_packets/00108530 [08:48:43]NVStorageSaveData ofd_packets/00108530 [08:48:43]File name is /storage/ofd_packets/00108530 [08:48:43]Write 301 bytes [08:48:43]NVStorageSaveData done [08:48:43]OFDSenderStorePacket done [08:48:43]KKMCreateOFDPacket done [08:48:43]NVStorageSaveData kkm_last_timestamp [08:48:43]File name is /storage/kkm_last_timestamp [08:48:43]Write 4 bytes [08:48:43]NVStorageSaveData done [08:48:43]ExternCall_PrintAddStr [08:48:43]wPrintStart [08:48:43]Write to MH i2c: 01 00 00 FA 1F 19 [08:48:43]Write i2c OK [08:48:43]MH_I2C_Read... [08:48:43]Read from MH i2c: 01 [08:48:43]MH_I2C_Read... [08:48:43]Read from MH i2c: 01 07 00 [08:48:43]MH_I2C_Read... [08:48:43]Read from MH i2c: 01 07 00 FA 1F 00 00 00 00 00 FF 0F 2E [08:48:43]RasterBufferAndPrint [08:48:43]line Счет N : (1)1040693 [08:48:43]line ИНН: 02508201610067 [08:48:43]line Контрольно-Кассовый Чек [08:48:43]line ПРОДАЖА [08:48:43]line ТРК (МРК, ГНК) : 72 [08:48:43]line Товар: 2710124500 [08:48:43]line Аи-95-К-5 [08:48:43]line 14.190 * 70.50 [08:48:43]line = 1000.40 [08:48:43]line НДС 12% НСП 1% [08:48:43]line > о реализуемом товаре [08:48:43]line ОКРУГЛЕНИЕ: -0.40 [08:48:43]line ИТОГО: 1000.00 [08:48:43]line Внесено: 1000.00 [08:48:43]line СДАЧА: 0.00 [08:48:43]line НСП 1% : 8.85 [08:48:43]line НДС 12% : 106.24 [08:48:43]line Наличными: 1000.00 [08:48:43]line Безнал.: 0.00 [08:48:43]line Место: АЗС № 15 "Партнер Нефть" [08:48:43]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [08:48:43]line СНО: Общий режим [08:48:43]line Чек 53 15.03.2024 08:48 [08:48:43]line Смена: 320 ФФД: 1.0 [08:48:43]line ЗНМ: 0300000266 [08:48:43]line РНМ: 0000000000091911 [08:48:43]line Версия ККМ: 001 [08:48:43]line ФМ: 0000000000871818 [08:48:43]line ФД: 108530 [08:48:43]line ФПД: 116305592592719 [08:48:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T084845&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108530&fm=116305592592719&tin=02508201610067®Number=0000000000091911&sum=100000 [08:48:43]OFD Sender: Processing packet 108530 [packets to send 29, broken 28] [08:48:43]ProducePacketName [08:48:43]name=ofd_packets/00108530 [08:48:43]OFD Sender: To server: pG, [08:48:43]CommunicateWithHost lk.salyk.kg:30040 [08:48:43]ConnectInit lk.salyk.kg [08:48:43]written 0, free lines is 4095 [08:48:43]Connected sock=10 [08:48: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 31 38 0F 01 00 00 1D 69 07 01 45 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6E 37 00 00 00 00 00 37 04 06 00 8A 1B 00 00 00 00 13 04 06 00 C8 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 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 6D 0B F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F2 A7 01 00 35 04 06 00 69 C7 81 88 29 4F D8 63 72 FA E6 74 F2 44 [08:48: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 31 38 4F 00 00 00 8F C2 47 00 6A D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F2 A7 01 00 F4 03 04 00 0D B7 F3 65 B6 04 01 00 00 25 B6 0D A4 23 9E A3 AB [08:48:44]CommunicateWithHost err = 0 [08:48:44]CheckOFDResponse [08:48:44]1017 (14) - 77093643461234 [08:48:44]1041 (16) - 0000000000871818 [08:48:44]1040 (4) - 108530 [08:48:44]1012 (4) - 15.03.2024 02:48 [08:48:44]1206 (1) - 0 [08:48:44]OFD Sender: Remove packet 108530 [08:48:44]ProducePacketName [08:48:44]name=ofd_packets/00108530 [08:48:44]NVStorageDeleteData [08:48:44]Write to MH i2c: 01 00 00 25 20 45 [08:48:44]Write i2c OK [08:48:44]MH_I2C_Read... [08:48:44]Read from MH i2c: 01 [08:48:44]MH_I2C_Read... [08:48:44]Read from MH i2c: 01 07 00 [08:48:44]MH_I2C_Read... [08:48:44]Read from MH i2c: 01 07 00 25 20 00 00 00 00 00 E6 0C 3E [08:48:44]RasterBufferAndPrint [08:48:44]line [08:48:44]line [08:48:44]line [08:48:44]line [08:48:44]line [08:48:44]written 0, free lines is 3308 [08:48:44]MH_Cut [08:48:44]Write to MH i2c: D1 01 00 2C 20 01 1E [08:48:44]Write i2c OK [08:48:44]MH_I2C_Read... [08:48:44]Read from MH i2c: D1 [08:48:44]MH_I2C_Read... [08:48:44]Read from MH i2c: D1 01 00 [08:48:44]MH_I2C_Read... [08:48:44]Read from MH i2c: D1 01 00 2C 20 00 1D [08:48:44]Write to MH i2c: 01 00 00 2D 20 4D [08:48:44]Write i2c OK [08:48:44]MH_I2C_Read... [08:48:44]OFD Sender: No OFD packet to send [08:48:45]*** Cut start [08:48:45]*** Purtial cut [08:48:45]*** Stage 1: CUTSNS_PIN = 1 [08:48:45]Read from MH i2c: 01 [08:48:45]MH_I2C_Read... [08:48:45]int [08:48:45]Read from MH i2c: 01 07 00 [08:48:45]MH_I2C_Read... [08:48:45]*** Stop cut motor [08:48:45]*** Cut end [08:48:45]*** FLAG_PRN_KEY set [08:48:45]Read from MH i2c: 01 07 00 2D 20 00 00 00 00 00 FF 0F 62 [08:48:45]process_action close_receipt done [08:48:45]requested_data is exist [08:48:45]produce_requested_data [08:48:45]requested_item fm.sn is exist - process it [08:48:45]wFMCommunicate request_size=4 [08:48:45]MH_SAM_APDU [08:48:45]CAPDU: 80 11 00 00 [08:48:45]Write to MH i2c: E2 08 00 2E 20 80 11 00 00 00 00 00 00 C8 [08:48:45]Write i2c OK [08:48:45]MH_I2C_Read... [08:48:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:45]Read from MH i2c: E2 [08:48:45]MH_I2C_Read... [08:48:45]Read from MH i2c: E2 17 00 [08:48:45]MH_I2C_Read... [08:48:45]Read from MH i2c: E2 17 00 2E 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 1C [08:48:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:48:45]wFMCommunicate OK [08:48:45]requested_item fd.num is exist - process it [08:48:45]SAM_PROTO_GetFieldsCounters [08:48:45]wFMCommunicate request_size=4 [08:48:45]MH_SAM_APDU [08:48:45]CAPDU: 80 13 00 00 [08:48:45]Write to MH i2c: E2 08 00 2F 20 80 13 00 00 00 00 00 00 CB [08:48:45]Write i2c OK [08:48:45]MH_I2C_Read... [08:48:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:45]*** FLAG_PRN_KEY reset [08:48:45]Read from MH i2c: E2 [08:48:45]MH_I2C_Read... [08:48:45]Read from MH i2c: E2 62 00 [08:48:45]MH_I2C_Read... [08:48:45]Read from MH i2c: E2 62 00 2F 20 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 F2 A7 01 00 0E 04 04 00 40 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 63 [08:48: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 F2 A7 01 00 0E 04 04 00 40 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 [08:48:45]wFMCommunicate OK [08:48:45]SAM_PROTO_GetFieldsCounters done [08:48:45]requested_item shift.num is exist - process it [08:48:45]requested_item shift.opened is exist - process it [08:48:45]req_shift_opened [08:48:45]FM_GetShiftState [08:48:45]SAM_PROTO_GetShiftState [08:48:45]wFMCommunicate request_size=4 [08:48:45]MH_SAM_APDU [08:48:45]CAPDU: 80 13 01 00 [08:48:45]Write to MH i2c: E2 08 00 30 20 80 13 01 00 00 00 00 00 CD [08:48:45]Write i2c OK [08:48:45]MH_I2C_Read... [08:48:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:45]Read from MH i2c: E2 [08:48:45]MH_I2C_Read... [08:48:45]Read from MH i2c: E2 0E 00 [08:48:45]MH_I2C_Read... [08:48:45]Read from MH i2c: E2 0E 00 30 20 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 01 [08:48:45]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:48:45]wFMCommunicate OK [08:48:45]SAM_PROTO_GetShiftState done [08:48:45]FM_GetShiftState done [08:48:45]req_shift_opened done [08:48:45]requested_item shift.open_date is exist - process it [08:48:45]req_shift_open_date [08:48:45]req_shift_open_date done [08:48:45]produce_requested_data done [08:48:45]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108530,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [08:48:45]process_action_free close_receipt [08:48:45]json_value_free [08:48:45]json_value_free done [08:48:45]process_json_proto returns [08:48:45]Send response to host [08:48:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108530,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [08:48:45]free response buf [08:48:45]execute_script done [08:48:45]execute_script returns [08:48:45]free content buf [08:48:45]Sock 8.Close socket [08:48:45]Sock 8.Thread stoped [08:48:45]Write to MH i2c: 01 00 00 31 20 51 [08:48:45]Write i2c OK [08:48:45]MH_I2C_Read... [08:48:45]Read from MH i2c: 01 [08:48:45]MH_I2C_Read... [08:48:45]Read from MH i2c: 01 07 00 [08:48:45]MH_I2C_Read... [08:48:45]Read from MH i2c: 01 07 00 31 20 00 00 00 00 00 FF 0F 66 [08:48:45]state=0 [08:48:45]int [08:48:45]Write to MH i2c: 01 00 00 32 20 52 [08:48:45]*** FLAG_PRN_KEY set [08:48:45]Write i2c OK [08:48:45]MH_I2C_Read... [08:48:45]Read from MH i2c: 01 [08:48:45]MH_I2C_Read... [08:48:45]Read from MH i2c: 01 07 00 [08:48:45]MH_I2C_Read... [08:48:45]Read from MH i2c: 01 07 00 32 20 00 08 00 00 00 FF 0F 6F [08:48:45]state=0 [08:48:45]Key pressed [08:48:45]Feed [08:48:45]Write to MH i2c: D8 00 00 33 20 2A [08:48:45]Write i2c OK [08:48:45]MH_I2C_Read... [08:48:45]Read from MH i2c: D8 [08:48:45]MH_I2C_Read... [08:48:45]Read from MH i2c: D8 01 00 [08:48:45]MH_I2C_Read... [08:48:45]Read from MH i2c: D8 01 00 33 20 00 2B [08:48:45]int [08:48:45]Write to MH i2c: 01 00 00 34 20 54 [08:48:45]Write i2c OK [08:48:45]MH_I2C_Read... [08:48:45]Read from MH i2c: 01 [08:48:45]MH_I2C_Read... [08:48:45]Read from MH i2c: 01 07 00 [08:48:45]MH_I2C_Read... [08:48:45]Read from MH i2c: 01 07 00 34 20 00 48 00 00 00 3C 00 DF [08:48:45]state=2 [08:48:45]Key pressed [08:48:46]int [08:48:46]Write to MH i2c: 01 00 00 35 20 55 [08:48:46]*** FLAG_PRN_KEY reset [08:48:46]Write i2c OK [08:48:46]MH_I2C_Read... [08:48:46]Read from MH i2c: 01 [08:48:46]MH_I2C_Read... [08:48:46]Read from MH i2c: 01 07 00 [08:48:46]MH_I2C_Read... [08:48:46]Read from MH i2c: 01 07 00 35 20 00 00 00 00 00 FF 0F 6A [08:48:46]state=2 [08:48:46]Stop feed [08:48:49]OFD Sender: No OFD packet to send [08:48:54]OFD Sender: No OFD packet to send [08:48:59]OFD Sender: No OFD packet to send [08:49:04]OFD Sender: No OFD packet to send [08:49:09]OFD Sender: No OFD packet to send [08:49:14]OFD Sender: No OFD packet to send [08:49:19]OFD Sender: No OFD packet to send [08:49:24]OFD Sender: No OFD packet to send [08:49:29]OFD Sender: No OFD packet to send [08:49:34]OFD Sender: No OFD packet to send [08:49:38]accept exits with 9 [08:49:38]New connection [08:49:38]New thread 3067198820 created [08:49:38]Thread 3067342180 joined [08:49:38]Waiting for new connection... [08:49:38] Sock 9.Parse request [08:49:38]Sock 9.Check first char [08:49:38]Sock 9.First char is OK [08:49:38]request: POST /json_proto HTTP/1.0 [08:49:38]Method: POST [08:49:38]URL: /json_proto [08:49:38]Method is POST - this is cgi request [08:49:38]url: /json_proto [08:49:38]query_string will be loaded in cgi processing [08:49:38]execute_cgi json_proto POST (null) [08:49:38]execute_cgi path=json_proto method=POST [08:49:38]POST find Content-Length [08:49:38]Host: 172.17.32.69:8080 [08:49:38]Content-Length: 678 [08:49:38]Content-Type: application/json [08:49:38] [08:49:38]POST finish read [08:49:38]Found Content-Length = 678 [08:49:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:49:38]execute_script... [08:49:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:49:38]POST & json_proto [08:49:38]process_json_proto [08:49:38]json parsed OK: [08:49:38]protocol is kg_v1.0 [08:49:38]action value=close_receipt [08:49:38]process_action close_receipt [08:49:38]cmd_close_receipt [08:49:38]MH_GetDate [08:49:38]Write to MH i2c: F0 00 00 36 20 45 [08:49:38]Write i2c OK [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: F0 [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: F0 09 00 [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: F0 09 00 36 20 00 A6 0B F4 65 D5 0F D3 65 74 [08:49:38]GetLastDocTimeStamp 1710492525 [08:49:38]current date 1710492582 [08:49:38]FM_GetShiftState [08:49:38]SAM_PROTO_GetShiftState [08:49:38]wFMCommunicate request_size=4 [08:49:38]MH_SAM_APDU [08:49:38]CAPDU: 80 13 01 00 [08:49:38]Write to MH i2c: E2 08 00 37 20 80 13 01 00 00 00 00 00 D4 [08:49:38]Write i2c OK [08:49:38]MH_I2C_Read... [08:49:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:38]Read from MH i2c: E2 [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: E2 0E 00 [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: E2 0E 00 37 20 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 08 [08:49:38]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:49:38]wFMCommunicate OK [08:49:38]SAM_PROTO_GetShiftState done [08:49:38]FM_GetShiftState done [08:49:38]opened in 1710461757 [08:49:38]opened+sec_in_day 1710548157 [08:49:38]quantity*price = 50015 [08:49:38]sum+1 = 50016 [08:49:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 54 15.03.2024 08:49 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108531 ФПД: 102991134588345 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T084942&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108531&fm=102991134588345&tin=02508201610067®Number=0000000000091911&sum=50000 [08:49:39]StoreToDocumentArchive [08:49:39]shift 320 fd 108531 [08:49:39]save to /storage/0320/doc_00108531 [08:49:39]save last doc name /storage/0320/doc_00108531 to /storage/kkm_last_doc_name [08:49:40]save OK [08:49:40]Clear old archive folders... [08:49:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:49:40]tlvbuf is 000DD9D0 [08:49:40]SAM_PROTO_ClearQueue [08:49:40]wFMCommunicate request_size=4 [08:49:40]MH_SAM_APDU [08:49:40]CAPDU: 80 09 00 00 [08:49:40]Write to MH i2c: E2 08 00 44 20 80 09 00 00 00 00 00 00 D6 [08:49:40]Write i2c OK [08:49:40]MH_I2C_Read... [08:49:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:49:40]Read from MH i2c: E2 [08:49:40]MH_I2C_Read... [08:49:40]Read from MH i2c: E2 03 00 [08:49:40]MH_I2C_Read... [08:49:40]Read from MH i2c: E2 03 00 44 20 00 90 00 D8 [08:49:40]RAPDU: 90 00 [08:49:40]wFMCommunicate OK [08:49:40]SAM_PROTO_ClearQueue done [08:49:40]KKMCreateOFDPacket [08:49:40]OFDProtocolAddRootSTLVToBuf [08:49:40]FM_MakeSignedData [08:49:40]FM_MakeSignedData [08:49:40]SAM_PROTO_SignData [08:49:40]wFMCommunicate request_size=4 [08:49:40]MH_SAM_APDU [08:49:40]CAPDU: 80 0D 01 02 [08:49:40]Write to MH i2c: E2 08 00 45 20 80 0D 01 02 00 00 00 00 DE [08:49:40]Write i2c OK [08:49:40]MH_I2C_Read... [08:49:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:49:40]Read from MH i2c: E2 [08:49:40]MH_I2C_Read... [08:49:40]Read from MH i2c: E2 03 00 [08:49:40]MH_I2C_Read... [08:49:40]Read from MH i2c: E2 03 00 45 20 00 90 00 D9 [08:49:40]RAPDU: 90 00 [08:49:40]wFMCommunicate OK [08:49:40]wFMCommunicate request_size=255 [08:49:40]MH_SAM_APDU [08:49:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 A6 0B F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F3 A7 01 00 35 04 06 00 5D [08:49:40]Write to MH i2c: E2 02 01 46 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 A6 0B F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F3 A7 01 00 35 04 06 00 5D 00 00 2A [08:49:40]Write i2c OK [08:49:40]MH_I2C_Read... [08:49:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:40]Read from MH i2c: E2 [08:49:40]MH_I2C_Read... [08:49:40]Read from MH i2c: E2 03 00 [08:49:40]MH_I2C_Read... [08:49:40]Read from MH i2c: E2 03 00 46 20 00 90 00 DA [08:49:40]RAPDU: 90 00 [08:49:40]wFMCommunicate OK [08:49:40]wFMCommunicate request_size=10 [08:49:40]MH_SAM_APDU [08:49:40]CAPDU: 80 0D 02 02 05 AB 7D FD FD B9 [08:49:40]Write to MH i2c: E2 0D 00 47 20 80 0D 02 02 05 00 AB 7D FD FD B9 00 00 C6 [08:49:40]Write i2c OK [08:49:40]MH_I2C_Read... [08:49:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:40]Read from MH i2c: E2 [08:49:40]MH_I2C_Read... [08:49:40]Read from MH i2c: E2 03 00 [08:49:40]MH_I2C_Read... [08:49:40]Read from MH i2c: E2 03 00 47 20 00 90 00 DB [08:49:40]RAPDU: 90 00 [08:49:40]wFMCommunicate OK [08:49:40]wFMCommunicate request_size=4 [08:49:40]MH_SAM_APDU [08:49:40]CAPDU: 80 0D 03 02 [08:49:40]Write to MH i2c: E2 08 00 48 20 80 0D 03 02 00 00 00 00 E3 [08:49:40]Write i2c OK [08:49:40]MH_I2C_Read... [08:49:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:49:40]Read from MH i2c: E2 [08:49:40]MH_I2C_Read... [08:49:40]Read from MH i2c: E2 0B 00 [08:49:40]MH_I2C_Read... [08:49:40]Read from MH i2c: E2 0B 00 48 20 00 62 B7 1D 38 8C B2 23 99 90 00 4C [08:49:40]RAPDU: 62 B7 1D 38 8C B2 23 99 90 00 [08:49:40]wFMCommunicate OK [08:49:40]SAM_PROTO_SignData done [08:49:40]FM_MakeSignedData done [08:49:40]CreateOFDProtocolMessage [08:49:40]wFMCommunicate request_size=4 [08:49:40]MH_SAM_APDU [08:49:40]CAPDU: 80 11 00 00 [08:49:40]Write to MH i2c: E2 08 00 49 20 80 11 00 00 00 00 00 00 E3 [08:49:40]Write i2c OK [08:49:40]MH_I2C_Read... [08:49:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:40]Read from MH i2c: E2 [08:49:40]MH_I2C_Read... [08:49:40]Read from MH i2c: E2 17 00 [08:49:40]MH_I2C_Read... [08:49:40]Read from MH i2c: E2 17 00 49 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 37 [08:49:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:49:40]wFMCommunicate OK [08:49:40]CreateOFDProtocolMessage done [08:49:40]OFDSenderStorePacket 108531 [08:49:40]StoreOFDPacket docnum=108531 [08:49:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 0E 20 07 01 1E 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 A6 0B F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F3 A7 01 00 35 04 06 00 5D AB 7D FD FD B9 62 B7 1D 38 8C B2 23 99 [08:49:40]CheckFolder [08:49:40]dirname=/storage/ofd_packets [08:49:40]CheckFolder done [08:49:40]ProducePacketName [08:49:40]name=ofd_packets/00108531 [08:49:40]NVStorageSaveData ofd_packets/00108531 [08:49:40]File name is /storage/ofd_packets/00108531 [08:49:40]Write 301 bytes [08:49:40]NVStorageSaveData done [08:49:40]OFDSenderStorePacket done [08:49:40]KKMCreateOFDPacket done [08:49:40]NVStorageSaveData kkm_last_timestamp [08:49:40]File name is /storage/kkm_last_timestamp [08:49:40]Write 4 bytes [08:49:40]NVStorageSaveData done [08:49:40]ExternCall_PrintAddStr [08:49:40]wPrintStart [08:49:40]Write to MH i2c: 01 00 00 4A 20 6A [08:49:40]Write i2c OK [08:49:40]MH_I2C_Read... [08:49:40]Read from MH i2c: 01 [08:49:40]MH_I2C_Read... [08:49:40]Read from MH i2c: 01 07 00 [08:49:40]MH_I2C_Read... [08:49:40]Read from MH i2c: 01 07 00 4A 20 00 00 00 00 00 FF 0F 7F [08:49:40]RasterBufferAndPrint [08:49:40]line Счет N : (1)1040694 [08:49:40]line ИНН: 02508201610067 [08:49:40]line Контрольно-Кассовый Чек [08:49:40]line ПРОДАЖА [08:49:40]line ТРК (МРК, ГНК) : 13 [08:49:40]line Товар: 2710124130 [08:49:40]line Аи-92-К-5 [08:49:40]line 8.080 * 61.90 [08:49:40]line = 500.15 [08:49:40]line НДС 12% НСП 1% [08:49:40]line > о реализуемом товаре [08:49:40]line ОКРУГЛЕНИЕ: -0.15 [08:49:40]line ИТОГО: 500.00 [08:49:40]line Внесено: 500.00 [08:49:40]line СДАЧА: 0.00 [08:49:40]line НСП 1% : 4.43 [08:49:40]line НДС 12% : 53.11 [08:49:40]line Наличными: 500.00 [08:49:40]line Безнал.: 0.00 [08:49:40]line Место: АЗС № 15 "Партнер Нефть" [08:49:40]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [08:49:40]line СНО: Общий режим [08:49:40]line Чек 54 15.03.2024 08:49 [08:49:40]line Смена: 320 ФФД: 1.0 [08:49:40]line ЗНМ: 0300000266 [08:49:40]line РНМ: 0000000000091911 [08:49:40]line Версия ККМ: 001 [08:49:40]line ФМ: 0000000000871818 [08:49:40]line ФД: 108531 [08:49:40]line ФПД: 102991134588345 [08:49:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T084942&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108531&fm=102991134588345&tin=02508201610067®Number=0000000000091911&sum=50000 [08:49:40]OFD Sender: Processing packet 108531 [packets to send 29, broken 28] [08:49:40]ProducePacketName [08:49:40]name=ofd_packets/00108531 [08:49:40]OFD Sender: To server: pG, [08:49:40]CommunicateWithHost lk.salyk.kg:30040 [08:49:40]ConnectInit lk.salyk.kg [08:49:40]written 0, free lines is 4095 [08:49:40]Connected sock=10 [08:49:40]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 31 38 0F 01 00 00 0E 20 07 01 1E 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 A6 0B F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F3 A7 01 00 35 04 06 00 5D AB 7D FD FD B9 62 B7 1D 38 8C B2 23 99 [08:49:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 4F 00 00 00 95 CC 47 00 DB DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F3 A7 01 00 F4 03 04 00 46 B7 F3 65 B6 04 01 00 00 16 96 AE 89 1B 62 FD 8E [08:49:41]CommunicateWithHost err = 0 [08:49:41]CheckOFDResponse [08:49:41]1017 (14) - 77093643461234 [08:49:41]1041 (16) - 0000000000871818 [08:49:41]1040 (4) - 108531 [08:49:41]1012 (4) - 15.03.2024 02:49 [08:49:41]1206 (1) - 0 [08:49:41]OFD Sender: Remove packet 108531 [08:49:41]ProducePacketName [08:49:41]name=ofd_packets/00108531 [08:49:41]NVStorageDeleteData [08:49:41]Write to MH i2c: 01 00 00 75 20 95 [08:49:41]Write i2c OK [08:49:41]MH_I2C_Read... [08:49:41]Read from MH i2c: 01 [08:49:41]MH_I2C_Read... [08:49:41]Read from MH i2c: 01 07 00 [08:49:41]MH_I2C_Read... [08:49:41]Read from MH i2c: 01 07 00 75 20 00 00 00 00 00 DC 0C 84 [08:49:41]RasterBufferAndPrint [08:49:41]line [08:49:41]line [08:49:41]line [08:49:41]line [08:49:41]line [08:49:41]written 0, free lines is 3298 [08:49:41]MH_Cut [08:49:41]Write to MH i2c: D1 01 00 7C 20 01 6E [08:49:41]Write i2c OK [08:49:41]MH_I2C_Read... [08:49:41]Read from MH i2c: D1 [08:49:41]MH_I2C_Read... [08:49:41]Read from MH i2c: D1 01 00 [08:49:41]MH_I2C_Read... [08:49:41]Read from MH i2c: D1 01 00 7C 20 00 6D [08:49:41]Write to MH i2c: 01 00 00 7D 20 9D [08:49:41]Write i2c OK [08:49:41]MH_I2C_Read... [08:49:41]OFD Sender: No OFD packet to send [08:49:42]*** Cut start [08:49:42]*** Purtial cut [08:49:42]*** Stage 1: CUTSNS_PIN = 1 [08:49:42]Read from MH i2c: 01 [08:49:42]MH_I2C_Read... [08:49:42]*** Stop cut motor [08:49:42]*** Cut end [08:49:42]Read from MH i2c: 01 07 00 [08:49:42]MH_I2C_Read... [08:49:42]Read from MH i2c: 01 07 00 7D 20 00 00 00 00 00 FF 0F B2 [08:49:42]process_action close_receipt done [08:49:42]requested_data is exist [08:49:42]produce_requested_data [08:49:42]requested_item fm.sn is exist - process it [08:49:42]wFMCommunicate request_size=4 [08:49:42]MH_SAM_APDU [08:49:42]CAPDU: 80 11 00 00 [08:49:42]Write to MH i2c: E2 08 00 7E 20 80 11 00 00 00 00 00 00 18 [08:49:42]Write i2c OK [08:49:42]MH_I2C_Read... [08:49:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:42]Read from MH i2c: E2 [08:49:42]MH_I2C_Read... [08:49:42]Read from MH i2c: E2 17 00 [08:49:42]MH_I2C_Read... [08:49:42]Read from MH i2c: E2 17 00 7E 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 6C [08:49:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:49:42]wFMCommunicate OK [08:49:42]requested_item fd.num is exist - process it [08:49:42]SAM_PROTO_GetFieldsCounters [08:49:42]wFMCommunicate request_size=4 [08:49:42]MH_SAM_APDU [08:49:42]CAPDU: 80 13 00 00 [08:49:42]Write to MH i2c: E2 08 00 7F 20 80 13 00 00 00 00 00 00 1B [08:49:42]Write i2c OK [08:49:42]MH_I2C_Read... [08:49:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:49:42]Read from MH i2c: E2 [08:49:42]MH_I2C_Read... [08:49:42]Read from MH i2c: E2 62 00 [08:49:42]MH_I2C_Read... [08:49:42]Read from MH i2c: E2 62 00 7F 20 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 F3 A7 01 00 0E 04 04 00 40 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 B7 [08:49:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 F3 A7 01 00 0E 04 04 00 40 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 [08:49:42]wFMCommunicate OK [08:49:42]SAM_PROTO_GetFieldsCounters done [08:49:42]requested_item shift.num is exist - process it [08:49:42]requested_item shift.opened is exist - process it [08:49:42]req_shift_opened [08:49:42]FM_GetShiftState [08:49:42]SAM_PROTO_GetShiftState [08:49:42]wFMCommunicate request_size=4 [08:49:42]MH_SAM_APDU [08:49:42]CAPDU: 80 13 01 00 [08:49:42]Write to MH i2c: E2 08 00 80 20 80 13 01 00 00 00 00 00 1D [08:49:42]Write i2c OK [08:49:42]MH_I2C_Read... [08:49:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:42]Read from MH i2c: E2 [08:49:42]MH_I2C_Read... [08:49:42]Read from MH i2c: E2 0E 00 [08:49:42]MH_I2C_Read... [08:49:42]Read from MH i2c: E2 0E 00 80 20 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 51 [08:49:42]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:49:42]wFMCommunicate OK [08:49:42]SAM_PROTO_GetShiftState done [08:49:42]FM_GetShiftState done [08:49:42]req_shift_opened done [08:49:42]requested_item shift.open_date is exist - process it [08:49:42]req_shift_open_date [08:49:42]req_shift_open_date done [08:49:42]produce_requested_data done [08:49:42]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108531,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [08:49:42]process_action_free close_receipt [08:49:42]json_value_free [08:49:42]json_value_free done [08:49:42]process_json_proto returns [08:49:42]Send response to host [08:49:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108531,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [08:49:42]free response buf [08:49:42]execute_script done [08:49:42]execute_script returns [08:49:42]free content buf [08:49:42]Sock 9.Close socket [08:49:42]Sock 9.Thread stoped [08:49:46]OFD Sender: No OFD packet to send [08:49:51]OFD Sender: No OFD packet to send [08:49:56]OFD Sender: No OFD packet to send [08:50:01]OFD Sender: No OFD packet to send [08:50:06]OFD Sender: No OFD packet to send [08:50:11]OFD Sender: No OFD packet to send [08:50:16]OFD Sender: No OFD packet to send [08:50:21]OFD Sender: No OFD packet to send [08:50:26]accept exits with 8 [08:50:26]New connection [08:50:26]New thread 3067342180 created [08:50:26]Thread 3067198820 joined [08:50:26]Waiting for new connection... [08:50:26] Sock 8.Parse request [08:50:26]Sock 8.Check first char [08:50:26]Sock 8.First char is OK [08:50:26]request: POST /json_proto HTTP/1.0 [08:50:26]Method: POST [08:50:26]URL: /json_proto [08:50:26]Method is POST - this is cgi request [08:50:26]url: /json_proto [08:50:26]query_string will be loaded in cgi processing [08:50:26]execute_cgi json_proto POST (null) [08:50:26]execute_cgi path=json_proto method=POST [08:50:26]POST find Content-Length [08:50:26]Host: 172.17.32.69:8080 [08:50:26]Content-Length: 687 [08:50:26]Content-Type: application/json [08:50:26] [08:50:26]POST finish read [08:50:26]Found Content-Length = 687 [08:50:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 21.430, "sum" : 1519.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1519.00, "total" : 1519.00, "payments": [ { "type": 0, "sum" : 1519.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:26]execute_script... [08:50:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 21.430, "sum" : 1519.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1519.00, "total" : 1519.00, "payments": [ { "type": 0, "sum" : 1519.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:26]POST & json_proto [08:50:26]process_json_proto [08:50:26]json parsed OK: [08:50:26]protocol is kg_v1.0 [08:50:26]action value=close_receipt [08:50:26]process_action close_receipt [08:50:26]cmd_close_receipt [08:50:26]MH_GetDate [08:50:26]Write to MH i2c: F0 00 00 81 20 90 [08:50:26]Write i2c OK [08:50:26]MH_I2C_Read... [08:50:26]Read from MH i2c: F0 [08:50:26]MH_I2C_Read... [08:50:26]Read from MH i2c: F0 09 00 [08:50:26]MH_I2C_Read... [08:50:26]Read from MH i2c: F0 09 00 81 20 00 D6 0B F4 65 D5 0F D3 65 EF [08:50:26]GetLastDocTimeStamp 1710492582 [08:50:26]current date 1710492630 [08:50:26]FM_GetShiftState [08:50:26]SAM_PROTO_GetShiftState [08:50:26]wFMCommunicate request_size=4 [08:50:26]MH_SAM_APDU [08:50:26]CAPDU: 80 13 01 00 [08:50:26]Write to MH i2c: E2 08 00 82 20 80 13 01 00 00 00 00 00 1F [08:50:26]Write i2c OK [08:50:26]MH_I2C_Read... [08:50:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:26]Read from MH i2c: E2 [08:50:26]MH_I2C_Read... [08:50:26]Read from MH i2c: E2 0E 00 [08:50:26]MH_I2C_Read... [08:50:26]Read from MH i2c: E2 0E 00 82 20 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 53 [08:50:26]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:50:26]wFMCommunicate OK [08:50:26]SAM_PROTO_GetShiftState done [08:50:26]FM_GetShiftState done [08:50:26]opened in 1710461757 [08:50:26]opened+sec_in_day 1710548157 [08:50:26]quantity*price = 151938 [08:50:26]sum+1 = 151940 [08:50:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 1519.00 Внесено: 1519.00 СДАЧА: 0.00 НСП 1% : 13.45 НДС 12% : 161.35 Наличными: 1519.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 55 15.03.2024 08:50 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108532 ФПД: 267784946474614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T085030&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108532&fm=267784946474614&tin=02508201610067®Number=0000000000091911&sum=151900 [08:50:27]StoreToDocumentArchive [08:50:27]shift 320 fd 108532 [08:50:27]save to /storage/0320/doc_00108532 [08:50:27]save last doc name /storage/0320/doc_00108532 to /storage/kkm_last_doc_name [08:50:27]save OK [08:50:27]Clear old archive folders... [08:50:27]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:50:27]tlvbuf is 00089990 [08:50:27]SAM_PROTO_ClearQueue [08:50:27]wFMCommunicate request_size=4 [08:50:27]MH_SAM_APDU [08:50:27]CAPDU: 80 09 00 00 [08:50:27]Write to MH i2c: E2 08 00 8F 20 80 09 00 00 00 00 00 00 21 [08:50:27]Write i2c OK [08:50:27]MH_I2C_Read... [08:50:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:50:27]Read from MH i2c: E2 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: E2 03 00 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: E2 03 00 8F 20 00 90 00 23 [08:50:27]RAPDU: 90 00 [08:50:27]wFMCommunicate OK [08:50:27]SAM_PROTO_ClearQueue done [08:50:27]KKMCreateOFDPacket [08:50:27]OFDProtocolAddRootSTLVToBuf [08:50:27]FM_MakeSignedData [08:50:27]FM_MakeSignedData [08:50:27]SAM_PROTO_SignData [08:50:27]wFMCommunicate request_size=4 [08:50:27]MH_SAM_APDU [08:50:27]CAPDU: 80 0D 01 02 [08:50:27]Write to MH i2c: E2 08 00 90 20 80 0D 01 02 00 00 00 00 29 [08:50:27]Write i2c OK [08:50:27]MH_I2C_Read... [08:50:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:50:27]Read from MH i2c: E2 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: E2 03 00 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: E2 03 00 90 20 00 90 00 24 [08:50:27]RAPDU: 90 00 [08:50:27]wFMCommunicate OK [08:50:27]wFMCommunicate request_size=255 [08:50:27]MH_SAM_APDU [08:50:27]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B6 53 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 83 51 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 51 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 3F 00 00 00 00 07 04 06 00 5C 51 02 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 D6 0B F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F4 A7 01 00 35 04 06 00 [08:50:27]Write to MH i2c: E2 02 01 91 20 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B6 53 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 83 51 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 51 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 3F 00 00 00 00 07 04 06 00 5C 51 02 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 D6 0B F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F4 A7 01 00 35 04 06 00 00 00 4F [08:50:27]Write i2c OK [08:50:27]MH_I2C_Read... [08:50:28]Read from MH i2c: E2 [08:50:28]MH_I2C_Read... [08:50:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:28]Read from MH i2c: E2 03 00 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: E2 03 00 91 20 00 90 00 25 [08:50:28]RAPDU: 90 00 [08:50:28]wFMCommunicate OK [08:50:28]wFMCommunicate request_size=11 [08:50:28]MH_SAM_APDU [08:50:28]CAPDU: 80 0D 02 02 06 F3 8C 8A 9C 5E 76 [08:50:28]Write to MH i2c: E2 0E 00 92 20 80 0D 02 02 06 00 F3 8C 8A 9C 5E 76 00 00 B1 [08:50:28]Write i2c OK [08:50:28]MH_I2C_Read... [08:50:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:28]Read from MH i2c: E2 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: E2 03 00 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: E2 03 00 92 20 00 90 00 26 [08:50:28]RAPDU: 90 00 [08:50:28]wFMCommunicate OK [08:50:28]wFMCommunicate request_size=4 [08:50:28]MH_SAM_APDU [08:50:28]CAPDU: 80 0D 03 02 [08:50:28]Write to MH i2c: E2 08 00 93 20 80 0D 03 02 00 00 00 00 2E [08:50:28]Write i2c OK [08:50:28]MH_I2C_Read... [08:50:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:50:28]Read from MH i2c: E2 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: E2 0B 00 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: E2 0B 00 93 20 00 6E 0E 55 B2 BD 01 09 41 90 00 BA [08:50:28]RAPDU: 6E 0E 55 B2 BD 01 09 41 90 00 [08:50:28]wFMCommunicate OK [08:50:28]SAM_PROTO_SignData done [08:50:28]FM_MakeSignedData done [08:50:28]CreateOFDProtocolMessage [08:50:28]wFMCommunicate request_size=4 [08:50:28]MH_SAM_APDU [08:50:28]CAPDU: 80 11 00 00 [08:50:28]Write to MH i2c: E2 08 00 94 20 80 11 00 00 00 00 00 00 2E [08:50:28]Write i2c OK [08:50:28]MH_I2C_Read... [08:50:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:28]Read from MH i2c: E2 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: E2 17 00 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: E2 17 00 94 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 82 [08:50:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:50:28]wFMCommunicate OK [08:50:28]CreateOFDProtocolMessage done [08:50:28]OFDSenderStorePacket 108532 [08:50:28]StoreOFDPacket docnum=108532 [08:50:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 01 00 00 04 DB 08 01 AB 9C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B6 53 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 83 51 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 51 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 3F 00 00 00 00 07 04 06 00 5C 51 02 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 D6 0B F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F4 A7 01 00 35 04 06 00 F3 8C 8A 9C 5E 76 6E 0E 55 B2 BD 01 09 41 [08:50:28]CheckFolder [08:50:28]dirname=/storage/ofd_packets [08:50:28]CheckFolder done [08:50:28]ProducePacketName [08:50:28]name=ofd_packets/00108532 [08:50:28]NVStorageSaveData ofd_packets/00108532 [08:50:28]File name is /storage/ofd_packets/00108532 [08:50:28]Write 302 bytes [08:50:28]NVStorageSaveData done [08:50:28]OFDSenderStorePacket done [08:50:28]KKMCreateOFDPacket done [08:50:28]NVStorageSaveData kkm_last_timestamp [08:50:28]File name is /storage/kkm_last_timestamp [08:50:28]Write 4 bytes [08:50:28]NVStorageSaveData done [08:50:28]ExternCall_PrintAddStr [08:50:28]wPrintStart [08:50:28]Write to MH i2c: 01 00 00 95 20 B5 [08:50:28]Write i2c OK [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: 01 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: 01 07 00 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: 01 07 00 95 20 00 00 00 00 00 FF 0F CA [08:50:28]RasterBufferAndPrint [08:50:28]line Счет N : (1)1040695 [08:50:28]line ИНН: 02508201610067 [08:50:28]line Контрольно-Кассовый Чек [08:50:28]line ПРОДАЖА [08:50:28]line ТРК (МРК, ГНК) : 2 [08:50:28]line Товар: 2710194210 [08:50:28]line ДТ(л)-К-5 [08:50:28]line 21.430 * 70.90 [08:50:28]line = 1519.39 [08:50:28]line НДС 12% НСП 1% [08:50:28]line > о реализуемом товаре [08:50:28]line ОКРУГЛЕНИЕ: -0.39 [08:50:28]line ИТОГО: 1519.00 [08:50:28]line Внесено: 1519.00 [08:50:28]line СДАЧА: 0.00 [08:50:28]line НСП 1% : 13.45 [08:50:28]line НДС 12% : 161.35 [08:50:28]line Наличными: 1519.00 [08:50:28]line Безнал.: 0.00 [08:50:28]line Место: АЗС № 15 "Партнер Нефть" [08:50:28]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [08:50:28]line СНО: Общий режим [08:50:28]line Чек 55 15.03.2024 08:50 [08:50:28]line Смена: 320 ФФД: 1.0 [08:50:28]line ЗНМ: 0300000266 [08:50:28]line РНМ: 0000000000091911 [08:50:28]line Версия ККМ: 001 [08:50:28]line ФМ: 0000000000871818 [08:50:28]line ФД: 108532 [08:50:28]line ФПД: 267784946474614 [08:50:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T085030&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108532&fm=267784946474614&tin=02508201610067®Number=0000000000091911&sum=151900 [08:50:28]OFD Sender: Processing packet 108532 [packets to send 29, broken 28] [08:50:28]ProducePacketName [08:50:28]name=ofd_packets/00108532 [08:50:28]OFD Sender: To server: pG, [08:50:28]CommunicateWithHost lk.salyk.kg:30040 [08:50:28]ConnectInit lk.salyk.kg [08:50:28]written 0, free lines is 4095 [08:50:28]Connected sock=10 [08:50: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 31 38 10 01 00 00 04 DB 08 01 AB 9C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B6 53 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 83 51 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 51 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 3F 00 00 00 00 07 04 06 00 5C 51 02 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 D6 0B F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F4 A7 01 00 35 04 06 00 F3 8C 8A 9C 5E 76 6E 0E 55 B2 BD 01 09 41 [08:50: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 31 38 4F 00 00 00 82 47 47 00 E2 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F4 A7 01 00 F4 03 04 00 76 B7 F3 65 B6 04 01 00 00 41 26 35 28 E1 A4 F0 61 [08:50:28]CommunicateWithHost err = 0 [08:50:28]CheckOFDResponse [08:50:28]1017 (14) - 77093643461234 [08:50:28]1041 (16) - 0000000000871818 [08:50:28]1040 (4) - 108532 [08:50:28]1012 (4) - 15.03.2024 02:50 [08:50:28]1206 (1) - 0 [08:50:28]OFD Sender: Remove packet 108532 [08:50:28]ProducePacketName [08:50:28]name=ofd_packets/00108532 [08:50:28]NVStorageDeleteData [08:50:29]Write to MH i2c: 01 00 00 C0 20 E0 [08:50:29]Write i2c OK [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: 01 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: 01 07 00 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: 01 07 00 C0 20 00 00 00 00 00 DC 0C CF [08:50:29]RasterBufferAndPrint [08:50:29]line [08:50:29]line [08:50:29]line [08:50:29]line [08:50:29]line [08:50:29]written 0, free lines is 3298 [08:50:29]MH_Cut [08:50:29]Write to MH i2c: D1 01 00 C7 20 01 B9 [08:50:29]Write i2c OK [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: D1 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: D1 01 00 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: D1 01 00 C7 20 00 B8 [08:50:29]Write to MH i2c: 01 00 00 C8 20 E8 [08:50:29]Write i2c OK [08:50:29]MH_I2C_Read... [08:50:29]OFD Sender: No OFD packet to send [08:50:29]*** Cut start [08:50:29]*** Purtial cut [08:50:29]*** Stage 1: CUTSNS_PIN = 1 [08:50:30]Read from MH i2c: 01 [08:50:30]MH_I2C_Read... [08:50:30]*** Stop cut motor [08:50:30]*** Cut end [08:50:30]Read from MH i2c: 01 07 00 [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: 01 07 00 C8 20 00 00 00 00 00 FF 0F FD [08:50:30]process_action close_receipt done [08:50:30]requested_data is exist [08:50:30]produce_requested_data [08:50:30]requested_item fm.sn is exist - process it [08:50:30]wFMCommunicate request_size=4 [08:50:30]MH_SAM_APDU [08:50:30]CAPDU: 80 11 00 00 [08:50:30]Write to MH i2c: E2 08 00 C9 20 80 11 00 00 00 00 00 00 63 [08:50:30]Write i2c OK [08:50:30]MH_I2C_Read... [08:50:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:30]Read from MH i2c: E2 [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: E2 17 00 [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: E2 17 00 C9 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 B7 [08:50:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:50:30]wFMCommunicate OK [08:50:30]requested_item fd.num is exist - process it [08:50:30]SAM_PROTO_GetFieldsCounters [08:50:30]wFMCommunicate request_size=4 [08:50:30]MH_SAM_APDU [08:50:30]CAPDU: 80 13 00 00 [08:50:30]Write to MH i2c: E2 08 00 CA 20 80 13 00 00 00 00 00 00 66 [08:50:30]Write i2c OK [08:50:30]MH_I2C_Read... [08:50:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:50:30]Read from MH i2c: E2 [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: E2 62 00 [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: E2 62 00 CA 20 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 F4 A7 01 00 0E 04 04 00 40 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 06 [08:50:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 F4 A7 01 00 0E 04 04 00 40 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 [08:50:30]wFMCommunicate OK [08:50:30]SAM_PROTO_GetFieldsCounters done [08:50:30]requested_item shift.num is exist - process it [08:50:30]requested_item shift.opened is exist - process it [08:50:30]req_shift_opened [08:50:30]FM_GetShiftState [08:50:30]SAM_PROTO_GetShiftState [08:50:30]wFMCommunicate request_size=4 [08:50:30]MH_SAM_APDU [08:50:30]CAPDU: 80 13 01 00 [08:50:30]Write to MH i2c: E2 08 00 CB 20 80 13 01 00 00 00 00 00 68 [08:50:30]Write i2c OK [08:50:30]MH_I2C_Read... [08:50:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:30]Read from MH i2c: E2 [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: E2 0E 00 [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: E2 0E 00 CB 20 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 9C [08:50:30]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:50:30]wFMCommunicate OK [08:50:30]SAM_PROTO_GetShiftState done [08:50:30]FM_GetShiftState done [08:50:30]req_shift_opened done [08:50:30]requested_item shift.open_date is exist - process it [08:50:30]req_shift_open_date [08:50:30]req_shift_open_date done [08:50:30]produce_requested_data done [08:50:30]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108532,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [08:50:30]process_action_free close_receipt [08:50:30]json_value_free [08:50:30]json_value_free done [08:50:30]process_json_proto returns [08:50:30]Send response to host [08:50:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108532,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [08:50:30]free response buf [08:50:30]execute_script done [08:50:30]execute_script returns [08:50:30]free content buf [08:50:30]Sock 8.Close socket [08:50:30]Sock 8.Thread stoped [08:50:34]OFD Sender: No OFD packet to send [08:50:39]OFD Sender: No OFD packet to send [08:50:44]OFD Sender: No OFD packet to send [08:50:49]OFD Sender: No OFD packet to send [08:50:54]OFD Sender: No OFD packet to send [08:50:59]OFD Sender: No OFD packet to send [08:51:04]OFD Sender: No OFD packet to send [08:51:09]OFD Sender: No OFD packet to send [08:51:14]OFD Sender: No OFD packet to send [08:51:19]OFD Sender: No OFD packet to send [08:51:20]accept exits with 9 [08:51:20]New connection [08:51:20]New thread 3067198820 created [08:51:20]Thread 3067342180 joined [08:51:20]Waiting for new connection... [08:51:20] Sock 9.Parse request [08:51:20]Sock 9.Check first char [08:51:20]Sock 9.First char is OK [08:51:20]request: POST /json_proto HTTP/1.0 [08:51:20]Method: POST [08:51:20]URL: /json_proto [08:51:20]Method is POST - this is cgi request [08:51:20]url: /json_proto [08:51:20]query_string will be loaded in cgi processing [08:51:20]execute_cgi json_proto POST (null) [08:51:20]execute_cgi path=json_proto method=POST [08:51:20]POST find Content-Length [08:51:20]Host: 172.17.32.69:8080 [08:51:20]Content-Length: 215 [08:51:20]Content-Type: application/json [08:51:20] [08:51:20]POST finish read [08:51:20]Found Content-Length = 215 [08:51:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:20]execute_script... [08:51:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:20]POST & json_proto [08:51:20]process_json_proto [08:51:20]json parsed OK: [08:51:20]protocol is kg_v1.0 [08:51:20]action value=get_value [08:51:20]process_action get_value [08:51:20]cmd_get_value [08:51:20]process_action get_value done [08:51:20]requested_data is exist [08:51:20]produce_requested_data [08:51:20]requested_item kkm.sn is exist - process it [08:51:20]requested_item kkm.ver is exist - process it [08:51:20]requested_item fm.sn is exist - process it [08:51:20]wFMCommunicate request_size=4 [08:51:20]MH_SAM_APDU [08:51:20]CAPDU: 80 11 00 00 [08:51:20]Write to MH i2c: E2 08 00 CC 20 80 11 00 00 00 00 00 00 66 [08:51:20]Write i2c OK [08:51:20]MH_I2C_Read... [08:51:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:20]Read from MH i2c: E2 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: E2 17 00 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: E2 17 00 CC 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 BA [08:51:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:51:20]wFMCommunicate OK [08:51:20]requested_item fd.num is exist - process it [08:51:20]SAM_PROTO_GetFieldsCounters [08:51:20]wFMCommunicate request_size=4 [08:51:20]MH_SAM_APDU [08:51:20]CAPDU: 80 13 00 00 [08:51:20]Write to MH i2c: E2 08 00 CD 20 80 13 00 00 00 00 00 00 69 [08:51:20]Write i2c OK [08:51:20]MH_I2C_Read... [08:51:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:51:20]Read from MH i2c: E2 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: E2 62 00 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: E2 62 00 CD 20 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 F4 A7 01 00 0E 04 04 00 40 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 09 [08:51: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 F4 A7 01 00 0E 04 04 00 40 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 [08:51:20]wFMCommunicate OK [08:51:20]SAM_PROTO_GetFieldsCounters done [08:51:20]requested_item shift.num is exist - process it [08:51:20]requested_item shift.opened is exist - process it [08:51:20]req_shift_opened [08:51:20]FM_GetShiftState [08:51:20]SAM_PROTO_GetShiftState [08:51:20]wFMCommunicate request_size=4 [08:51:20]MH_SAM_APDU [08:51:20]CAPDU: 80 13 01 00 [08:51:20]Write to MH i2c: E2 08 00 CE 20 80 13 01 00 00 00 00 00 6B [08:51:20]Write i2c OK [08:51:20]MH_I2C_Read... [08:51:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:20]Read from MH i2c: E2 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: E2 0E 00 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: E2 0E 00 CE 20 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 9F [08:51:20]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:51:20]wFMCommunicate OK [08:51:20]SAM_PROTO_GetShiftState done [08:51:20]FM_GetShiftState done [08:51:20]req_shift_opened done [08:51:20]requested_item shift.open_date is exist - process it [08:51:20]req_shift_open_date [08:51:20]req_shift_open_date done [08:51:20]produce_requested_data done [08:51:20]produce_requested_data return {"kkm.sn":"0300000266","kkm.ver":"001","fm.sn":"0000000000871818","fd.num":108532,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [08:51:20]process_action_free get_value [08:51:20]json_value_free [08:51:20]json_value_free done [08:51:20]process_json_proto returns [08:51:20]Send response to host [08:51:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000266","kkm.ver":"001","fm.sn":"0000000000871818","fd.num":108532,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [08:51:20]free response buf [08:51:20]execute_script done [08:51:20]execute_script returns [08:51:20]free content buf [08:51:20]Sock 9.Close socket [08:51:20]Sock 9.Thread stoped [08:51:20]accept exits with 8 [08:51:20]New connection [08:51:20]New thread 3067342180 created [08:51:20]Thread 3067198820 joined [08:51:20]Waiting for new connection... [08:51:20] Sock 8.Parse request [08:51:20]Sock 8.Check first char [08:51:20]Sock 8.First char is OK [08:51:20]request: POST /json_proto HTTP/1.0 [08:51:20]Method: POST [08:51:20]URL: /json_proto [08:51:20]Method is POST - this is cgi request [08:51:20]url: /json_proto [08:51:20]query_string will be loaded in cgi processing [08:51:20]execute_cgi json_proto POST (null) [08:51:20]execute_cgi path=json_proto method=POST [08:51:20]POST find Content-Length [08:51:20]Host: 172.17.32.69:8080 [08:51:20]Content-Length: 331 [08:51:20]Content-Type: application/json [08:51:20] [08:51:20]POST finish read [08:51:20]Found Content-Length = 331 [08:51:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:51:20]execute_script... [08:51:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:51:21]POST & json_proto [08:51:21]process_json_proto [08:51:21]json parsed OK: [08:51:21]protocol is kg_v1.0 [08:51:21]action value=get_value [08:51:21]process_action get_value [08:51:21]cmd_get_value [08:51:21]process_action get_value done [08:51:21]requested_data is exist [08:51:21]produce_requested_data [08:51:21]requested_item fm.sale.total is exist - process it [08:51:21]SAM_PROTO_GetFMData [08:51:21]wFMCommunicate request_size=4 [08:51:21]MH_SAM_APDU [08:51:21]CAPDU: 80 13 03 00 [08:51:21]Write to MH i2c: E2 08 00 CF 20 80 13 03 00 00 00 00 00 6E [08:51:21]Write i2c OK [08:51:21]MH_I2C_Read... [08:51:21]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:51:21]Read from MH i2c: E2 [08:51:21]MH_I2C_Read... [08:51:21]Read from MH i2c: E2 FD 00 [08:51:21]MH_I2C_Read... [08:51:21]Read from MH i2c: E2 FD 00 CF 20 00 C5 04 85 04 C1 04 6E 04 04 00 74 A5 01 00 69 04 A3 00 6F 04 04 00 44 9F 01 00 B1 04 05 00 9D 54 A4 F0 01 70 04 05 00 56 1A AE 92 01 72 04 04 00 47 3A F6 5D 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 E1 AE C1 34 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 68 63 65 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 30 06 00 00 B1 04 04 00 70 D2 2D 0D 70 04 04 00 70 D2 2D 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AE 59 66 01 EF 03 09 90 00 EF [08:51:21]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 74 A5 01 00 69 04 A3 00 6F 04 04 00 44 9F 01 00 B1 04 05 00 9D 54 A4 F0 01 70 04 05 00 56 1A AE 92 01 72 04 04 00 47 3A F6 5D 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 E1 AE C1 34 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 68 63 65 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 30 06 00 00 B1 04 04 00 70 D2 2D 0D 70 04 04 00 70 D2 2D 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AE 59 66 01 EF 03 09 90 00 [08:51:21]wFMCommunicate OK [08:51:21]wFMCommunicate request_size=4 [08:51:21]MH_SAM_APDU [08:51:21]CAPDU: 80 17 00 00 [08:51:21]Write to MH i2c: E2 08 00 D0 20 80 17 00 00 00 00 00 00 70 [08:51:21]Write i2c OK [08:51:21]MH_I2C_Read... [08:51:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:51:21]Read from MH i2c: E2 [08:51:21]MH_I2C_Read... [08:51:21]Read from MH i2c: E2 FD 00 [08:51:21]MH_I2C_Read... [08:51:21]Read from MH i2c: E2 FD 00 D0 20 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 46 DC 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 65 [08:51:21]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 46 DC 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [08:51:21]wFMCommunicate OK [08:51:21]wFMCommunicate request_size=4 [08:51:21]MH_SAM_APDU [08:51:21]CAPDU: 80 17 00 00 [08:51:21]Write to MH i2c: E2 08 00 D1 20 80 17 00 00 00 00 00 00 71 [08:51:21]Write i2c OK [08:51:21]MH_I2C_Read... [08:51:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:51:22]Read from MH i2c: E2 [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: E2 FD 00 [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: E2 FD 00 D1 20 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 83 [08:51:22]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [08:51:22]wFMCommunicate OK [08:51:22]wFMCommunicate request_size=4 [08:51:22]MH_SAM_APDU [08:51:22]CAPDU: 80 17 00 00 [08:51:22]Write to MH i2c: E2 08 00 D2 20 80 17 00 00 00 00 00 00 72 [08:51:22]Write i2c OK [08:51:22]MH_I2C_Read... [08:51:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:51:22]Read from MH i2c: E2 [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: E2 FD 00 [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: E2 FD 00 D2 20 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FE [08:51:22]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:51:22]wFMCommunicate OK [08:51:22]wFMCommunicate request_size=4 [08:51:22]MH_SAM_APDU [08:51:22]CAPDU: 80 17 00 00 [08:51:22]Write to MH i2c: E2 08 00 D3 20 80 17 00 00 00 00 00 00 73 [08:51:22]Write i2c OK [08:51:22]MH_I2C_Read... [08:51:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [08:51:22]Read from MH i2c: E2 [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: E2 E2 00 [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: E2 E2 00 D3 20 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 51 [08:51:22]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:51:22]wFMCommunicate OK [08:51:22]SAM_PROTO_GetFMData done [08:51:22]requested_item fm.sale_refund.total is exist - process it [08:51:22]requested_item fm.buy.total is exist - process it [08:51:22]requested_item shift.sale.total is exist - process it [08:51:22]SAM_PROTO_GetShiftData [08:51:22]wFMCommunicate request_size=4 [08:51:22]MH_SAM_APDU [08:51:22]CAPDU: 80 13 02 00 [08:51:22]Write to MH i2c: E2 08 00 D4 20 80 13 02 00 00 00 00 00 72 [08:51:22]Write i2c OK [08:51:22]MH_I2C_Read... [08:51:23]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:51:23]Read from MH i2c: E2 [08:51:23]MH_I2C_Read... [08:51:23]Read from MH i2c: E2 FD 00 [08:51:23]MH_I2C_Read... [08:51:23]Read from MH i2c: E2 FD 00 D4 20 00 B8 04 AA 04 B4 04 6E 04 04 00 37 00 00 00 69 04 9B 00 6F 04 04 00 36 00 00 00 B1 04 03 00 35 A0 3A 70 04 03 00 B4 C0 26 72 04 03 00 81 DF 13 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 38 3A 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 D7 84 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 70 11 01 70 04 03 00 70 11 01 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 0B 1D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 ED [08:51:23]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 37 00 00 00 69 04 9B 00 6F 04 04 00 36 00 00 00 B1 04 03 00 35 A0 3A 70 04 03 00 B4 C0 26 72 04 03 00 81 DF 13 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 38 3A 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 D7 84 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 70 11 01 70 04 03 00 70 11 01 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 0B 1D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [08:51:23]wFMCommunicate OK [08:51:23]wFMCommunicate request_size=4 [08:51:23]MH_SAM_APDU [08:51:23]CAPDU: 80 17 00 00 [08:51:23]Write to MH i2c: E2 08 00 D5 20 80 17 00 00 00 00 00 00 75 [08:51:23]Write i2c OK [08:51:23]MH_I2C_Read... [08:51:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:51:23]Read from MH i2c: E2 [08:51:23]MH_I2C_Read... [08:51:23]Read from MH i2c: E2 FD 00 [08:51:23]MH_I2C_Read... [08:51:23]Read from MH i2c: E2 FD 00 D5 20 00 0B 00 F6 03 01 00 01 F7 03 02 00 6B 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 13 [08:51:23]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 6B 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [08:51:23]wFMCommunicate OK [08:51:23]wFMCommunicate request_size=4 [08:51:23]MH_SAM_APDU [08:51:23]CAPDU: 80 17 00 00 [08:51:23]Write to MH i2c: E2 08 00 D6 20 80 17 00 00 00 00 00 00 76 [08:51:23]Write i2c OK [08:51:23]MH_I2C_Read... [08:51:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:51:23]Read from MH i2c: E2 [08:51:23]MH_I2C_Read... [08:51:23]Read from MH i2c: E2 FD 00 [08:51:23]MH_I2C_Read... [08:51:23]Read from MH i2c: E2 FD 00 D6 20 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 18 [08:51:23]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [08:51:23]wFMCommunicate OK [08:51:23]wFMCommunicate request_size=4 [08:51:23]MH_SAM_APDU [08:51:23]CAPDU: 80 17 00 00 [08:51:23]Write to MH i2c: E2 08 00 D7 20 80 17 00 00 00 00 00 00 77 [08:51:23]Write i2c OK [08:51:23]MH_I2C_Read... [08:51:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:51:23]Read from MH i2c: E2 [08:51:23]MH_I2C_Read... [08:51:23]Read from MH i2c: E2 FD 00 [08:51:23]MH_I2C_Read... [08:51:23]Read from MH i2c: E2 FD 00 D7 20 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 00 [08:51:24]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [08:51:24]wFMCommunicate OK [08:51:24]wFMCommunicate request_size=4 [08:51:24]MH_SAM_APDU [08:51:24]CAPDU: 80 17 00 00 [08:51:24]Write to MH i2c: E2 08 00 D8 20 80 17 00 00 00 00 00 00 78 [08:51:24]Write i2c OK [08:51:24]MH_I2C_Read... [08:51:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [08:51:24]Read from MH i2c: E2 [08:51:24]MH_I2C_Read... [08:51:24]Read from MH i2c: E2 D5 00 [08:51:24]MH_I2C_Read... [08:51:24]Read from MH i2c: E2 D5 00 D8 20 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 59 [08:51:24]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:51:24]wFMCommunicate OK [08:51:24]SAM_PROTO_GetShiftData done [08:51:24]requested_item shift.sale.total_cash is exist - process it [08:51:24]requested_item shift.sale_refund.total is exist - process it [08:51:24]requested_item shift.sale_refund.total_cash is exist - process it [08:51:24]requested_item shift.buy.total is exist - process it [08:51:24]requested_item shift.buy.total_cash is exist - process it [08:51:24]produce_requested_data done [08:51:24]produce_requested_data return {"fm.sale.total":83322687.01,"fm.sale_refund.total":2211068.00,"fm.buy.total":0.00,"shift.sale.total":38421.01,"shift.sale.total_cash":25397.00,"shift.sale_refund.total":700.00,"shift.sale_refund.total_cash":700.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [08:51:24]process_action_free get_value [08:51:24]json_value_free [08:51:24]json_value_free done [08:51:24]process_json_proto returns [08:51:24]Send response to host [08:51:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":83322687.01,"fm.sale_refund.total":2211068.00,"fm.buy.total":0.00,"shift.sale.total":38421.01,"shift.sale.total_cash":25397.00,"shift.sale_refund.total":700.00,"shift.sale_refund.total_cash":700.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [08:51:24]free response buf [08:51:24]execute_script done [08:51:24]execute_script returns [08:51:24]free content buf [08:51:24]Sock 8.Close socket [08:51:24]Sock 8.Thread stoped [08:51:24]OFD Sender: No OFD packet to send [08:51:24]accept exits with 9 [08:51:24]New connection [08:51:24]New thread 3067198820 created [08:51:24]Thread 3067342180 joined [08:51:24]Waiting for new connection... [08:51:24] Sock 9.Parse request [08:51:24]Sock 9.Check first char [08:51:24]Sock 9.First char is OK [08:51:24]request: POST /json_proto HTTP/1.0 [08:51:24]Method: POST [08:51:24]URL: /json_proto [08:51:24]Method is POST - this is cgi request [08:51:24]url: /json_proto [08:51:24]query_string will be loaded in cgi processing [08:51:24]execute_cgi json_proto POST (null) [08:51:24]execute_cgi path=json_proto method=POST [08:51:24]POST find Content-Length [08:51:24]Host: 172.17.32.69:8080 [08:51:24]Content-Length: 331 [08:51:24]Content-Type: application/json [08:51:24] [08:51:24]POST finish read [08:51:24]Found Content-Length = 331 [08:51:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:51:24]execute_script... [08:51:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:51:24]POST & json_proto [08:51:24]process_json_proto [08:51:24]json parsed OK: [08:51:24]protocol is kg_v1.0 [08:51:24]action value=get_value [08:51:24]process_action get_value [08:51:24]cmd_get_value [08:51:24]process_action get_value done [08:51:24]requested_data is exist [08:51:24]produce_requested_data [08:51:24]requested_item fm.sale.total is exist - process it [08:51:24]SAM_PROTO_GetFMData [08:51:24]wFMCommunicate request_size=4 [08:51:24]MH_SAM_APDU [08:51:24]CAPDU: 80 13 03 00 [08:51:24]Write to MH i2c: E2 08 00 D9 20 80 13 03 00 00 00 00 00 78 [08:51:24]Write i2c OK [08:51:24]MH_I2C_Read... [08:51:24]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:51:25]Read from MH i2c: E2 [08:51:25]MH_I2C_Read... [08:51:25]Read from MH i2c: E2 FD 00 [08:51:25]MH_I2C_Read... [08:51:25]Read from MH i2c: E2 FD 00 D9 20 00 C5 04 85 04 C1 04 6E 04 04 00 74 A5 01 00 69 04 A3 00 6F 04 04 00 44 9F 01 00 B1 04 05 00 9D 54 A4 F0 01 70 04 05 00 56 1A AE 92 01 72 04 04 00 47 3A F6 5D 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 E1 AE C1 34 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 68 63 65 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 30 06 00 00 B1 04 04 00 70 D2 2D 0D 70 04 04 00 70 D2 2D 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AE 59 66 01 EF 03 09 90 00 F9 [08:51:25]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 74 A5 01 00 69 04 A3 00 6F 04 04 00 44 9F 01 00 B1 04 05 00 9D 54 A4 F0 01 70 04 05 00 56 1A AE 92 01 72 04 04 00 47 3A F6 5D 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 E1 AE C1 34 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 68 63 65 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 30 06 00 00 B1 04 04 00 70 D2 2D 0D 70 04 04 00 70 D2 2D 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AE 59 66 01 EF 03 09 90 00 [08:51:25]wFMCommunicate OK [08:51:25]wFMCommunicate request_size=4 [08:51:25]MH_SAM_APDU [08:51:25]CAPDU: 80 17 00 00 [08:51:25]Write to MH i2c: E2 08 00 DA 20 80 17 00 00 00 00 00 00 7A [08:51:25]Write i2c OK [08:51:25]MH_I2C_Read... [08:51:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:51:25]Read from MH i2c: E2 [08:51:25]MH_I2C_Read... [08:51:25]Read from MH i2c: E2 FD 00 [08:51:25]MH_I2C_Read... [08:51:25]Read from MH i2c: E2 FD 00 DA 20 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 46 DC 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 6F [08:51:25]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 46 DC 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [08:51:25]wFMCommunicate OK [08:51:25]wFMCommunicate request_size=4 [08:51:25]MH_SAM_APDU [08:51:25]CAPDU: 80 17 00 00 [08:51:25]Write to MH i2c: E2 08 00 DB 20 80 17 00 00 00 00 00 00 7B [08:51:25]Write i2c OK [08:51:25]MH_I2C_Read... [08:51:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:51:25]Read from MH i2c: E2 [08:51:25]MH_I2C_Read... [08:51:25]Read from MH i2c: E2 FD 00 [08:51:25]MH_I2C_Read... [08:51:25]Read from MH i2c: E2 FD 00 DB 20 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 8D [08:51:25]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [08:51:25]wFMCommunicate OK [08:51:25]wFMCommunicate request_size=4 [08:51:25]MH_SAM_APDU [08:51:25]CAPDU: 80 17 00 00 [08:51:25]Write to MH i2c: E2 08 00 DC 20 80 17 00 00 00 00 00 00 7C [08:51:25]Write i2c OK [08:51:25]MH_I2C_Read... [08:51:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:51:26]Read from MH i2c: E2 [08:51:26]MH_I2C_Read... [08:51:26]Read from MH i2c: E2 FD 00 [08:51:26]MH_I2C_Read... [08:51:26]Read from MH i2c: E2 FD 00 DC 20 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 08 [08:51:26]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:51:26]wFMCommunicate OK [08:51:26]wFMCommunicate request_size=4 [08:51:26]MH_SAM_APDU [08:51:26]CAPDU: 80 17 00 00 [08:51:26]Write to MH i2c: E2 08 00 DD 20 80 17 00 00 00 00 00 00 7D [08:51:26]Write i2c OK [08:51:26]MH_I2C_Read... [08:51:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [08:51:26]Read from MH i2c: E2 [08:51:26]MH_I2C_Read... [08:51:26]Read from MH i2c: E2 E2 00 [08:51:26]MH_I2C_Read... [08:51:26]Read from MH i2c: E2 E2 00 DD 20 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 5B [08:51:26]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:51:26]wFMCommunicate OK [08:51:26]SAM_PROTO_GetFMData done [08:51:26]requested_item fm.sale_refund.total is exist - process it [08:51:26]requested_item fm.buy.total is exist - process it [08:51:26]requested_item shift.sale.total is exist - process it [08:51:26]SAM_PROTO_GetShiftData [08:51:26]wFMCommunicate request_size=4 [08:51:26]MH_SAM_APDU [08:51:26]CAPDU: 80 13 02 00 [08:51:26]Write to MH i2c: E2 08 00 DE 20 80 13 02 00 00 00 00 00 7C [08:51:26]Write i2c OK [08:51:26]MH_I2C_Read... [08:51:26]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:51:26]Read from MH i2c: E2 [08:51:26]MH_I2C_Read... [08:51:26]Read from MH i2c: E2 FD 00 [08:51:26]MH_I2C_Read... [08:51:26]Read from MH i2c: E2 FD 00 DE 20 00 B8 04 AA 04 B4 04 6E 04 04 00 37 00 00 00 69 04 9B 00 6F 04 04 00 36 00 00 00 B1 04 03 00 35 A0 3A 70 04 03 00 B4 C0 26 72 04 03 00 81 DF 13 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 38 3A 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 D7 84 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 70 11 01 70 04 03 00 70 11 01 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 0B 1D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 F7 [08:51:27]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 37 00 00 00 69 04 9B 00 6F 04 04 00 36 00 00 00 B1 04 03 00 35 A0 3A 70 04 03 00 B4 C0 26 72 04 03 00 81 DF 13 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 38 3A 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 D7 84 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 70 11 01 70 04 03 00 70 11 01 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 0B 1D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [08:51:27]wFMCommunicate OK [08:51:27]wFMCommunicate request_size=4 [08:51:27]MH_SAM_APDU [08:51:27]CAPDU: 80 17 00 00 [08:51:27]Write to MH i2c: E2 08 00 DF 20 80 17 00 00 00 00 00 00 7F [08:51:27]Write i2c OK [08:51:27]MH_I2C_Read... [08:51:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:51:27]Read from MH i2c: E2 [08:51:27]MH_I2C_Read... [08:51:27]Read from MH i2c: E2 FD 00 [08:51:27]MH_I2C_Read... [08:51:27]Read from MH i2c: E2 FD 00 DF 20 00 0B 00 F6 03 01 00 01 F7 03 02 00 6B 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 1D [08:51:27]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 6B 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [08:51:27]wFMCommunicate OK [08:51:27]wFMCommunicate request_size=4 [08:51:27]MH_SAM_APDU [08:51:27]CAPDU: 80 17 00 00 [08:51:27]Write to MH i2c: E2 08 00 E0 20 80 17 00 00 00 00 00 00 80 [08:51:27]Write i2c OK [08:51:27]MH_I2C_Read... [08:51:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:51:27]Read from MH i2c: E2 [08:51:27]MH_I2C_Read... [08:51:27]Read from MH i2c: E2 FD 00 [08:51:27]MH_I2C_Read... [08:51:27]Read from MH i2c: E2 FD 00 E0 20 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 22 [08:51:27]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [08:51:27]wFMCommunicate OK [08:51:27]wFMCommunicate request_size=4 [08:51:27]MH_SAM_APDU [08:51:27]CAPDU: 80 17 00 00 [08:51:27]Write to MH i2c: E2 08 00 E1 20 80 17 00 00 00 00 00 00 81 [08:51:27]Write i2c OK [08:51:27]MH_I2C_Read... [08:51:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:51:28]Read from MH i2c: E2 [08:51:28]MH_I2C_Read... [08:51:28]Read from MH i2c: E2 FD 00 [08:51:28]MH_I2C_Read... [08:51:28]Read from MH i2c: E2 FD 00 E1 20 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 0A [08:51:28]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [08:51:28]wFMCommunicate OK [08:51:28]wFMCommunicate request_size=4 [08:51:28]MH_SAM_APDU [08:51:28]CAPDU: 80 17 00 00 [08:51:28]Write to MH i2c: E2 08 00 E2 20 80 17 00 00 00 00 00 00 82 [08:51:28]Write i2c OK [08:51:28]MH_I2C_Read... [08:51:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [08:51:28]Read from MH i2c: E2 [08:51:28]MH_I2C_Read... [08:51:28]Read from MH i2c: E2 D5 00 [08:51:28]MH_I2C_Read... [08:51:28]Read from MH i2c: E2 D5 00 E2 20 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 63 [08:51:28]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:51:28]wFMCommunicate OK [08:51:28]SAM_PROTO_GetShiftData done [08:51:28]requested_item shift.sale.total_cash is exist - process it [08:51:28]requested_item shift.sale_refund.total is exist - process it [08:51:28]requested_item shift.sale_refund.total_cash is exist - process it [08:51:28]requested_item shift.buy.total is exist - process it [08:51:28]requested_item shift.buy.total_cash is exist - process it [08:51:28]produce_requested_data done [08:51:28]produce_requested_data return {"fm.sale.total":83322687.01,"fm.sale_refund.total":2211068.00,"fm.buy.total":0.00,"shift.sale.total":38421.01,"shift.sale.total_cash":25397.00,"shift.sale_refund.total":700.00,"shift.sale_refund.total_cash":700.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [08:51:28]process_action_free get_value [08:51:28]json_value_free [08:51:28]json_value_free done [08:51:28]process_json_proto returns [08:51:28]Send response to host [08:51:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":83322687.01,"fm.sale_refund.total":2211068.00,"fm.buy.total":0.00,"shift.sale.total":38421.01,"shift.sale.total_cash":25397.00,"shift.sale_refund.total":700.00,"shift.sale_refund.total_cash":700.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [08:51:28]free response buf [08:51:28]execute_script done [08:51:28]execute_script returns [08:51:28]free content buf [08:51:28]Sock 9.Close socket [08:51:28]Sock 9.Thread stoped [08:51:29]OFD Sender: No OFD packet to send [08:51:31]accept exits with 10 [08:51:31]New connection [08:51:31]New thread 3067342180 created [08:51:31]Thread 3067198820 joined [08:51:31]Waiting for new connection... [08:51:31] Sock 10.Parse request [08:51:31]Sock 10.Check first char [08:51:31]Sock 10.First char is OK [08:51:31]request: POST /json_proto HTTP/1.0 [08:51:31]Method: POST [08:51:31]URL: /json_proto [08:51:31]Method is POST - this is cgi request [08:51:31]url: /json_proto [08:51:31]query_string will be loaded in cgi processing [08:51:31]execute_cgi json_proto POST (null) [08:51:31]execute_cgi path=json_proto method=POST [08:51:31]POST find Content-Length [08:51:31]Host: 172.17.32.69:8080 [08:51:31]Content-Length: 270 [08:51:31]Content-Type: application/json [08:51:31] [08:51:31]POST finish read [08:51:31]Found Content-Length = 270 [08:51:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:31]execute_script... [08:51:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:31]POST & json_proto [08:51:31]process_json_proto [08:51:31]json parsed OK: [08:51:31]protocol is kg_v1.0 [08:51:31]action value=x_report [08:51:31]process_action x_report [08:51:31]cmd_x_report [08:51:31]MH_GetDate [08:51:31]Write to MH i2c: F0 00 00 E3 20 F2 [08:51:31]Write i2c OK [08:51:31]MH_I2C_Read... [08:51:31]Read from MH i2c: F0 [08:51:31]MH_I2C_Read... [08:51:31]Read from MH i2c: F0 09 00 [08:51:31]MH_I2C_Read... [08:51:31]Read from MH i2c: F0 09 00 E3 20 00 17 0C F4 65 D5 0F D3 65 93 [08:51:31]GetLastDocTimeStamp 1710492630 [08:51:31]current date 1710492695 [08:51:31]FM_GetShiftState [08:51:31]SAM_PROTO_GetShiftState [08:51:31]wFMCommunicate request_size=4 [08:51:31]MH_SAM_APDU [08:51:31]CAPDU: 80 13 01 00 [08:51:31]Write to MH i2c: E2 08 00 E4 20 80 13 01 00 00 00 00 00 81 [08:51:31]Write i2c OK [08:51:31]MH_I2C_Read... [08:51:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:31]Read from MH i2c: E2 [08:51:31]MH_I2C_Read... [08:51:31]Read from MH i2c: E2 0E 00 [08:51:31]MH_I2C_Read... [08:51:31]Read from MH i2c: E2 0E 00 E4 20 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 B5 [08:51:31]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:51:31]wFMCommunicate OK [08:51:31]SAM_PROTO_GetShiftState done [08:51:31]FM_GetShiftState done [08:51:31]KKMCreateXReportDocument [08:51:31]Load OK [08:51:31]Malloc new data [08:51:31]MH_GetDate [08:51:31]Write to MH i2c: F0 00 00 E5 20 F4 [08:51:31]Write i2c OK [08:51:31]MH_I2C_Read... [08:51:31]Read from MH i2c: F0 [08:51:31]MH_I2C_Read... [08:51:31]Read from MH i2c: F0 09 00 [08:51:31]MH_I2C_Read... [08:51:31]Read from MH i2c: F0 09 00 E5 20 00 17 0C F4 65 D5 0F D3 65 95 [08:51:31]Malloc new data [08:51:31]Malloc new data [08:51:31]wFMCommunicate request_size=4 [08:51:31]MH_SAM_APDU [08:51:31]CAPDU: 80 11 00 00 [08:51:31]Write to MH i2c: E2 08 00 E6 20 80 11 00 00 00 00 00 00 80 [08:51:31]Write i2c OK [08:51:31]MH_I2C_Read... [08:51:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:31]Read from MH i2c: E2 [08:51:31]MH_I2C_Read... [08:51:31]Read from MH i2c: E2 17 00 [08:51:31]MH_I2C_Read... [08:51:32]Read from MH i2c: E2 17 00 E6 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 D4 [08:51:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:51:32]wFMCommunicate OK [08:51:32]SAM_PROTO_GetFieldsCounters [08:51:32]wFMCommunicate request_size=4 [08:51:32]MH_SAM_APDU [08:51:32]CAPDU: 80 13 00 00 [08:51:32]Write to MH i2c: E2 08 00 E7 20 80 13 00 00 00 00 00 00 83 [08:51:32]Write i2c OK [08:51:32]MH_I2C_Read... [08:51:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:51:32]Read from MH i2c: E2 [08:51:32]MH_I2C_Read... [08:51:32]Read from MH i2c: E2 62 00 [08:51:32]MH_I2C_Read... [08:51:32]Read from MH i2c: E2 62 00 E7 20 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 F4 A7 01 00 0E 04 04 00 40 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 23 [08:51:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 F4 A7 01 00 0E 04 04 00 40 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 [08:51:32]wFMCommunicate OK [08:51:32]SAM_PROTO_GetFieldsCounters done [08:51:32]Malloc new data [08:51:32]Malloc new data [08:51:32]Malloc new data [08:51:32]KKMCreateXReportDocument OK [08:51:32]KKMSetXReportData OK [08:51:32]KKMPrepareXReportFMData [08:51:32]SAM_PROTO_GetShiftData [08:51:32]wFMCommunicate request_size=4 [08:51:32]MH_SAM_APDU [08:51:32]CAPDU: 80 13 02 00 [08:51:32]Write to MH i2c: E2 08 00 E8 20 80 13 02 00 00 00 00 00 86 [08:51:32]Write i2c OK [08:51:32]MH_I2C_Read... [08:51:32]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:51:32]Read from MH i2c: E2 [08:51:32]MH_I2C_Read... [08:51:32]Read from MH i2c: E2 FD 00 [08:51:32]MH_I2C_Read... [08:51:32]Read from MH i2c: E2 FD 00 E8 20 00 B8 04 AA 04 B4 04 6E 04 04 00 37 00 00 00 69 04 9B 00 6F 04 04 00 36 00 00 00 B1 04 03 00 35 A0 3A 70 04 03 00 B4 C0 26 72 04 03 00 81 DF 13 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 38 3A 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 D7 84 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 70 11 01 70 04 03 00 70 11 01 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 0B 1D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 01 [08:51:32]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 37 00 00 00 69 04 9B 00 6F 04 04 00 36 00 00 00 B1 04 03 00 35 A0 3A 70 04 03 00 B4 C0 26 72 04 03 00 81 DF 13 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 38 3A 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 D7 84 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 70 11 01 70 04 03 00 70 11 01 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 0B 1D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [08:51:32]wFMCommunicate OK [08:51:32]wFMCommunicate request_size=4 [08:51:32]MH_SAM_APDU [08:51:32]CAPDU: 80 17 00 00 [08:51:32]Write to MH i2c: E2 08 00 E9 20 80 17 00 00 00 00 00 00 89 [08:51:32]Write i2c OK [08:51:32]MH_I2C_Read... [08:51:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:51:33]Read from MH i2c: E2 [08:51:33]MH_I2C_Read... [08:51:33]Read from MH i2c: E2 FD 00 [08:51:33]MH_I2C_Read... [08:51:33]Read from MH i2c: E2 FD 00 E9 20 00 0B 00 F6 03 01 00 01 F7 03 02 00 6B 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 27 [08:51:33]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 6B 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [08:51:33]wFMCommunicate OK [08:51:33]wFMCommunicate request_size=4 [08:51:33]MH_SAM_APDU [08:51:33]CAPDU: 80 17 00 00 [08:51:33]Write to MH i2c: E2 08 00 EA 20 80 17 00 00 00 00 00 00 8A [08:51:33]Write i2c OK [08:51:33]MH_I2C_Read... [08:51:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:51:33]Read from MH i2c: E2 [08:51:33]MH_I2C_Read... [08:51:33]Read from MH i2c: E2 FD 00 [08:51:33]MH_I2C_Read... [08:51:33]Read from MH i2c: E2 FD 00 EA 20 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 2C [08:51:33]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [08:51:33]wFMCommunicate OK [08:51:33]wFMCommunicate request_size=4 [08:51:33]MH_SAM_APDU [08:51:33]CAPDU: 80 17 00 00 [08:51:33]Write to MH i2c: E2 08 00 EB 20 80 17 00 00 00 00 00 00 8B [08:51:33]Write i2c OK [08:51:33]MH_I2C_Read... [08:51:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:51:33]Read from MH i2c: E2 [08:51:33]MH_I2C_Read... [08:51:33]Read from MH i2c: E2 FD 00 [08:51:33]MH_I2C_Read... [08:51:33]Read from MH i2c: E2 FD 00 EB 20 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 14 [08:51:34]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [08:51:34]wFMCommunicate OK [08:51:34]wFMCommunicate request_size=4 [08:51:34]MH_SAM_APDU [08:51:34]CAPDU: 80 17 00 00 [08:51:34]Write to MH i2c: E2 08 00 EC 20 80 17 00 00 00 00 00 00 8C [08:51:34]Write i2c OK [08:51:34]MH_I2C_Read... [08:51:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [08:51:34]Read from MH i2c: E2 [08:51:34]MH_I2C_Read... [08:51:34]Read from MH i2c: E2 D5 00 [08:51:34]MH_I2C_Read... [08:51:34]Read from MH i2c: E2 D5 00 EC 20 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 6D [08:51:34]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:51:34]wFMCommunicate OK [08:51:34]SAM_PROTO_GetShiftData done [08:51:34]1194 (1204) - счетчики итогов смены [08:51:34] 1134 (4) - 55 - количество чеков со всеми признаками расчетов [08:51:34] 1129 (155) - счетчики операций «приход» [08:51:34] 1135 (4) - 54 - количество чеков по признаку расчетов [08:51:34] 1201 (3) - 38421.01 - общая итоговая сумма в чеках [08:51:34] 1136 (3) - 25397.00 - итоговая сумма в чеках наличными [08:51:34] 1138 (3) - 13024.01 - итоговая сумма в чеках безналичными [08:51:34] 1024 (122) - суммы налогов [08:51:34] 1006 (9) - суммы НДС [08:51:34] 1010 (1) - 0% - код ставки НДС [08:51:34] OFD Sender: No OFD packet to send [08:51:34] 1011 (0) - 0.00 - сумма НДС по ставке [08:51:34] 1006 (12) - суммы НДС [08:51:34] 1010 (1) - 12% - код ставки НДС [08:51:34] 1011 (3) - 4081.20 - сумма НДС по ставке [08:51:34] 1007 (9) - суммы НСП [08:51:34] 1014 (1) - 0% - код ставки НСП [08:51:34] 1015 (0) - 0.00 - сумма НСП по ставке [08:51:34] 1007 (11) - суммы НСП [08:51:34] 1014 (1) - 1% - код ставки НСП [08:51:34] 1015 (2) - 340.07 - сумма НСП по ставке [08:51:34] 1007 (9) - суммы НСП [08:51:34] 1014 (1) - 2% - код ставки НСП [08:51:34] 1015 (0) - 0.00 - сумма НСП по ставке [08:51:34] 1007 (9) - суммы НСП [08:51:34] 1014 (1) - 3% - код ставки НСП [08:51:34] 1015 (0) - 0.00 - сумма НСП по ставке [08:51:34] 1007 (9) - суммы НСП [08:51:34] 1014 (1) - 5% - код ставки НСП [08:51:34] 1015 (0) - 0.00 - сумма НСП по ставке [08:51:34] 1007 (9) - суммы НСП [08:51:34] 1014 (1) - 0,50% - код ставки НСП [08:51:34] 1015 (0) - 0.00 - сумма НСП по ставке [08:51:34] 1007 (9) - суммы НСП [08:51:34] 1014 (1) - 1,50% - код ставки НСП [08:51:34] 1015 (0) - 0.00 - сумма НСП по ставке [08:51:34] 1130 (151) - счетчики операций «возврат прихода» [08:51:34] 1135 (4) - 1 - количество чеков по признаку расчетов [08:51:34] 1201 (3) - 700.00 - общая итоговая сумма в чеках [08:51:34] 1136 (3) - 700.00 - итоговая сумма в чеках наличными [08:51:34] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [08:51:34] 1024 (121) - суммы налогов [08:51:34] 1006 (9) - суммы НДС [08:51:34] 1010 (1) - 0% - код ставки НДС [08:51:34] 1011 (0) - 0.00 - сумма НДС по ставке [08:51:34] 1006 (11) - суммы НДС [08:51:34] 1010 (1) - 12% - код ставки НДС [08:51:34] 1011 (2) - 74.35 - сумма НДС по ставке [08:51:34] 1007 (9) - суммы НСП [08:51:34] 1014 (1) - 0% - код ставки НСП [08:51:34] 1015 (0) - 0.00 - сумма НСП по ставке [08:51:34] 1007 (11) - суммы НСП [08:51:34] 1014 (1) - 1% - код ставки НСП [08:51:34] 1015 (2) - 6.19 - сумма НСП по ставке [08:51:34] 1007 (9) - суммы НСП [08:51:34] 1014 (1) - 2% - код ставки НСП [08:51:34] 1015 (0) - 0.00 - сумма НСП по ставке [08:51:34] 1007 (9) - суммы НСП [08:51:34] 1014 (1) - 3% - код ставки НСП [08:51:34] 1015 (0) - 0.00 - сумма НСП по ставке [08:51:34] 1007 (9) - суммы НСП [08:51:34] 1014 (1) - 5% - код ставки НСП [08:51:34] 1015 (0) - 0.00 - сумма НСП по ставке [08:51:34] 1007 (9) - суммы НСП [08:51:34] 1014 (1) - 0,50% - код ставки НСП [08:51:34] 1015 (0) - 0.00 - сумма НСП по ставке [08:51:34] 1007 (9) - суммы НСП [08:51:34] 1014 (1) - 1,50% - код ставки НСП [08:51:34] 1015 (0) - 0.00 - сумма НСП по ставке [08:51:34] 1131 (141) - счетчики операций «расход» [08:51:34] 1135 (4) - 0 - количество чеков по признаку расчетов [08:51:34] 1201 (0) - 0.00 - общая итоговая сумма в чеках [08:51:34] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [08:51:34] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [08:51:34] 1024 (117) - суммы налогов [08:51:34] 1006 (9) - суммы НДС [08:51:34] 1010 (1) - 0% - код ставки НДС [08:51:34] 1011 (0) - 0.00 - сумма НДС по ставке [08:51:34] 1006 (9) - суммы НДС [08:51:34] 1010 (1) - 12% - код ставки НДС [08:51:34] 1011 (0) - 0.00 - сумма НДС по ставке [08:51:34] 1007 (9) - суммы НСП [08:51:34] 1014 (1) - 0% - код ставки НСП [08:51:34] 1015 (0) - 0.00 - сумма НСП по ставке [08:51:34] 1007 (9) - суммы НСП [08:51:34] 1014 (1) - 1% - код ставки НСП [08:51:34] 1015 (0) - 0.00 - сумма НСП по ставке [08:51:34] 1007 (9) - суммы НСП [08:51:34] 1014 (1) - 2% - код ставки НСП [08:51:34] 1015 (0) - 0.00 - сумма НСП по ставке [08:51:34] 1007 (9) - суммы НСП [08:51:34] 1014 (1) - 3% - код ставки НСП [08:51:34] 1015 (0) - 0.00 - сумма НСП по ставке [08:51:34] 1007 (9) - суммы НСП [08:51:34] 1014 (1) - 5% - код ставки НСП [08:51:34] 1015 (0) - 0.00 - сумма НСП по ставке [08:51:34] 1007 (9) - суммы НСП [08:51:34] 1014 (1) - 0,50% - код ставки НСП [08:51:34] 1015 (0) - 0.00 - сумма НСП по ставке [08:51:34] 1007 (9) - суммы НСП [08:51:34] 1014 (1) - 1,50% - код ставки НСП [08:51:34] 1015 (0) - 0.00 - сумма НСП по ставке [08:51:34] 1132 (141) - счетчики операций «возврат расхода» [08:51:34] 1135 (4) - 0 - количество чеков по признаку расчетов [08:51:34] 1201 (0) - 0.00 - общая итоговая сумма в чеках [08:51:34] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [08:51:34] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [08:51:34] 1024 (117) - суммы налогов [08:51:34] 1006 (9) - суммы НДС [08:51:34] 1010 (1) - 0% - код ставки НДС [08:51:34] 1011 (0) - 0.00 - сумма НДС по ставке [08:51:34] 1006 (9) - суммы НДС [08:51:34] 1010 (1) - 12% - код ставки НДС [08:51:34] 1011 (0) - 0.00 - сумма НДС по ставке [08:51:34] 1007 (9) - суммы НСП [08:51:34] 1014 (1) - 0% - код ставки НСП [08:51:34] 1015 (0) - 0.00 - сумма НСП по ставке [08:51:34] 1007 (9) - суммы НСП [08:51:34] 1014 (1) - 1% - код ставки НСП [08:51:34] 1015 (0) - 0.00 - сумма НСП по ставке [08:51:34] 1007 (9) - суммы НСП [08:51:34] 1014 (1) - 2% - код ставки НСП [08:51:34] 1015 (0) - 0.00 - сумма НСП по ставке [08:51:34] 1007 (9) - суммы НСП [08:51:34] 1014 (1) - 3% - код ставки НСП [08:51:34] 1015 (0) - 0.00 - сумма НСП по ставке [08:51:34] 1007 (9) - суммы НСП [08:51:34] 1014 (1) - 5% - код ставки НСП [08:51:34] 1015 (0) - 0.00 - сумма НСП по ставке [08:51:34] 1007 (9) - суммы НСП [08:51:34] 1014 (1) - 0,50% - код ставки НСП [08:51:34] 1015 (0) - 0.00 - сумма НСП по ставке [08:51:34] 1007 (9) - суммы НСП [08:51:34] 1014 (1) - 1,50% - код ставки НСП [08:51:34] 1015 (0) - 0.00 - сумма НСП по ставке [08:51:34] 1133 (588) - - счетчики коррекции - не используются [08:51:34]SetTLVBufToDocument [08:51:34]Processing tag 1194 (04AA) [08:51:34]Load OK [08:51:34]SetTLVBufToDocument [08:51:34]Processing tag 1134 (046E) [08:51:34]Malloc new data [08:51:34]Processing tag 1129 (0469) [08:51:34]Load OK [08:51:34]SetTLVBufToDocument [08:51:34]Processing tag 1135 (046F) [08:51:34]Malloc new data [08:51:34]Processing tag 1201 (04B1) [08:51:34]Malloc new data [08:51:34]Processing tag 1136 (0470) [08:51:34]Malloc new data [08:51:34]Processing tag 1138 (0472) [08:51:34]Malloc new data [08:51:34]Processing tag 1024 (0400) [08:51:34]Load OK [08:51:34]SetTLVBufToDocument [08:51:35]Processing tag 1006 (03EE) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1010 (03F2) [08:51:35]Malloc new data [08:51:35]Processing tag 1011 (03F3) [08:51:35]Malloc new data [08:51:35]SetTLVBufToDocument err=0 [08:51:35]Processing tag 1006 (03EE) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1010 (03F2) [08:51:35]Malloc new data [08:51:35]Processing tag 1011 (03F3) [08:51:35]Malloc new data [08:51:35]SetTLVBufToDocument err=0 [08:51:35]Processing tag 1007 (03EF) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1014 (03F6) [08:51:35]Malloc new data [08:51:35]Processing tag 1015 (03F7) [08:51:35]Malloc new data [08:51:35]SetTLVBufToDocument err=0 [08:51:35]Processing tag 1007 (03EF) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1014 (03F6) [08:51:35]Malloc new data [08:51:35]Processing tag 1015 (03F7) [08:51:35]Malloc new data [08:51:35]SetTLVBufToDocument err=0 [08:51:35]Processing tag 1007 (03EF) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1014 (03F6) [08:51:35]Malloc new data [08:51:35]Processing tag 1015 (03F7) [08:51:35]Malloc new data [08:51:35]SetTLVBufToDocument err=0 [08:51:35]Processing tag 1007 (03EF) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1014 (03F6) [08:51:35]Malloc new data [08:51:35]Processing tag 1015 (03F7) [08:51:35]Malloc new data [08:51:35]SetTLVBufToDocument err=0 [08:51:35]Processing tag 1007 (03EF) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1014 (03F6) [08:51:35]Malloc new data [08:51:35]Processing tag 1015 (03F7) [08:51:35]Malloc new data [08:51:35]SetTLVBufToDocument err=0 [08:51:35]Processing tag 1007 (03EF) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1014 (03F6) [08:51:35]Malloc new data [08:51:35]Processing tag 1015 (03F7) [08:51:35]Malloc new data [08:51:35]SetTLVBufToDocument err=0 [08:51:35]Processing tag 1007 (03EF) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1014 (03F6) [08:51:35]Malloc new data [08:51:35]Processing tag 1015 (03F7) [08:51:35]Malloc new data [08:51:35]SetTLVBufToDocument err=0 [08:51:35]SetTLVBufToDocument err=0 [08:51:35]SetTLVBufToDocument err=0 [08:51:35]Processing tag 1130 (046A) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1135 (046F) [08:51:35]Malloc new data [08:51:35]Processing tag 1201 (04B1) [08:51:35]Malloc new data [08:51:35]Processing tag 1136 (0470) [08:51:35]Malloc new data [08:51:35]Processing tag 1138 (0472) [08:51:35]Malloc new data [08:51:35]Processing tag 1024 (0400) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1006 (03EE) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1010 (03F2) [08:51:35]Malloc new data [08:51:35]Processing tag 1011 (03F3) [08:51:35]Malloc new data [08:51:35]SetTLVBufToDocument err=0 [08:51:35]Processing tag 1006 (03EE) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1010 (03F2) [08:51:35]Malloc new data [08:51:35]Processing tag 1011 (03F3) [08:51:35]Malloc new data [08:51:35]SetTLVBufToDocument err=0 [08:51:35]Processing tag 1007 (03EF) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1014 (03F6) [08:51:35]Malloc new data [08:51:35]Processing tag 1015 (03F7) [08:51:35]Malloc new data [08:51:35]SetTLVBufToDocument err=0 [08:51:35]Processing tag 1007 (03EF) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1014 (03F6) [08:51:35]Malloc new data [08:51:35]Processing tag 1015 (03F7) [08:51:35]Malloc new data [08:51:35]SetTLVBufToDocument err=0 [08:51:35]Processing tag 1007 (03EF) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1014 (03F6) [08:51:35]Malloc new data [08:51:35]Processing tag 1015 (03F7) [08:51:35]Malloc new data [08:51:35]SetTLVBufToDocument err=0 [08:51:35]Processing tag 1007 (03EF) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1014 (03F6) [08:51:35]Malloc new data [08:51:35]Processing tag 1015 (03F7) [08:51:35]Malloc new data [08:51:35]SetTLVBufToDocument err=0 [08:51:35]Processing tag 1007 (03EF) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1014 (03F6) [08:51:35]Malloc new data [08:51:35]Processing tag 1015 (03F7) [08:51:35]Malloc new data [08:51:35]SetTLVBufToDocument err=0 [08:51:35]Processing tag 1007 (03EF) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1014 (03F6) [08:51:35]Malloc new data [08:51:35]Processing tag 1015 (03F7) [08:51:35]Malloc new data [08:51:35]SetTLVBufToDocument err=0 [08:51:35]Processing tag 1007 (03EF) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1014 (03F6) [08:51:35]Malloc new data [08:51:35]Processing tag 1015 (03F7) [08:51:35]Malloc new data [08:51:35]SetTLVBufToDocument err=0 [08:51:35]SetTLVBufToDocument err=0 [08:51:35]SetTLVBufToDocument err=0 [08:51:35]Processing tag 1131 (046B) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1135 (046F) [08:51:35]Malloc new data [08:51:35]Processing tag 1201 (04B1) [08:51:35]Malloc new data [08:51:35]Processing tag 1136 (0470) [08:51:35]Malloc new data [08:51:35]Processing tag 1138 (0472) [08:51:35]Malloc new data [08:51:35]Processing tag 1024 (0400) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1006 (03EE) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1010 (03F2) [08:51:35]Malloc new data [08:51:35]Processing tag 1011 (03F3) [08:51:35]Malloc new data [08:51:35]SetTLVBufToDocument err=0 [08:51:35]Processing tag 1006 (03EE) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1010 (03F2) [08:51:35]Malloc new data [08:51:35]Processing tag 1011 (03F3) [08:51:35]Malloc new data [08:51:35]SetTLVBufToDocument err=0 [08:51:35]Processing tag 1007 (03EF) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1014 (03F6) [08:51:35]Malloc new data [08:51:35]Processing tag 1015 (03F7) [08:51:35]Malloc new data [08:51:35]SetTLVBufToDocument err=0 [08:51:35]Processing tag 1007 (03EF) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1014 (03F6) [08:51:35]Malloc new data [08:51:35]Processing tag 1015 (03F7) [08:51:35]Malloc new data [08:51:35]SetTLVBufToDocument err=0 [08:51:35]Processing tag 1007 (03EF) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1014 (03F6) [08:51:35]Malloc new data [08:51:35]Processing tag 1015 (03F7) [08:51:35]Malloc new data [08:51:35]SetTLVBufToDocument err=0 [08:51:35]Processing tag 1007 (03EF) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1014 (03F6) [08:51:35]Malloc new data [08:51:35]Processing tag 1015 (03F7) [08:51:35]Malloc new data [08:51:35]SetTLVBufToDocument err=0 [08:51:35]Processing tag 1007 (03EF) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1014 (03F6) [08:51:35]Malloc new data [08:51:35]Processing tag 1015 (03F7) [08:51:35]Malloc new data [08:51:35]SetTLVBufToDocument err=0 [08:51:35]Processing tag 1007 (03EF) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1014 (03F6) [08:51:35]Malloc new data [08:51:35]Processing tag 1015 (03F7) [08:51:35]Malloc new data [08:51:35]SetTLVBufToDocument err=0 [08:51:35]Processing tag 1007 (03EF) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1014 (03F6) [08:51:35]Malloc new data [08:51:35]Processing tag 1015 (03F7) [08:51:35]Malloc new data [08:51:35]SetTLVBufToDocument err=0 [08:51:35]SetTLVBufToDocument err=0 [08:51:35]SetTLVBufToDocument err=0 [08:51:35]Processing tag 1132 (046C) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1135 (046F) [08:51:35]Malloc new data [08:51:35]Processing tag 1201 (04B1) [08:51:35]Malloc new data [08:51:35]Processing tag 1136 (0470) [08:51:35]Malloc new data [08:51:35]Processing tag 1138 (0472) [08:51:35]Malloc new data [08:51:35]Processing tag 1024 (0400) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1006 (03EE) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1010 (03F2) [08:51:35]Malloc new data [08:51:35]Processing tag 1011 (03F3) [08:51:35]Malloc new data [08:51:35]SetTLVBufToDocument err=0 [08:51:35]Processing tag 1006 (03EE) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1010 (03F2) [08:51:35]Malloc new data [08:51:35]Processing tag 1011 (03F3) [08:51:35]Malloc new data [08:51:35]SetTLVBufToDocument err=0 [08:51:35]Processing tag 1007 (03EF) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1014 (03F6) [08:51:35]Malloc new data [08:51:35]Processing tag 1015 (03F7) [08:51:35]Malloc new data [08:51:35]SetTLVBufToDocument err=0 [08:51:35]Processing tag 1007 (03EF) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1014 (03F6) [08:51:35]Malloc new data [08:51:35]Processing tag 1015 (03F7) [08:51:35]Malloc new data [08:51:35]SetTLVBufToDocument err=0 [08:51:35]Processing tag 1007 (03EF) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1014 (03F6) [08:51:35]Malloc new data [08:51:35]Processing tag 1015 (03F7) [08:51:35]Malloc new data [08:51:35]SetTLVBufToDocument err=0 [08:51:35]Processing tag 1007 (03EF) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1014 (03F6) [08:51:35]Malloc new data [08:51:35]Processing tag 1015 (03F7) [08:51:35]Malloc new data [08:51:35]SetTLVBufToDocument err=0 [08:51:35]Processing tag 1007 (03EF) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1014 (03F6) [08:51:35]Malloc new data [08:51:35]Processing tag 1015 (03F7) [08:51:35]Malloc new data [08:51:35]SetTLVBufToDocument err=0 [08:51:35]Processing tag 1007 (03EF) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1014 (03F6) [08:51:35]Malloc new data [08:51:35]Processing tag 1015 (03F7) [08:51:35]Malloc new data [08:51:35]SetTLVBufToDocument err=0 [08:51:35]Processing tag 1007 (03EF) [08:51:35]Load OK [08:51:35]SetTLVBufToDocument [08:51:35]Processing tag 1014 (03F6) [08:51:35]Malloc new data [08:51:35]Processing tag 1015 (03F7) [08:51:35]Malloc new data [08:51:35]SetTLVBufToDocument err=0 [08:51:35]SetTLVBufToDocument err=0 [08:51:35]SetTLVBufToDocument err=0 [08:51:35]Processing tag 1133 (046D) [08:51:35]Malloc new data [08:51:35]SetTLVBufToDocument err=0 [08:51:35]SetTLVBufToDocument err=0 [08:51:35]Malloc new data [08:51:35]SAM_PROTO_GetFMData [08:51:35]wFMCommunicate request_size=4 [08:51:35]MH_SAM_APDU [08:51:35]CAPDU: 80 13 03 00 [08:51:35]Write to MH i2c: E2 08 00 ED 20 80 13 03 00 00 00 00 00 8C [08:51:35]Write i2c OK [08:51:35]MH_I2C_Read... [08:51:36]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:51:36]Read from MH i2c: E2 [08:51:36]MH_I2C_Read... [08:51:36]Read from MH i2c: E2 FD 00 [08:51:36]MH_I2C_Read... [08:51:36]Read from MH i2c: E2 FD 00 ED 20 00 C5 04 85 04 C1 04 6E 04 04 00 74 A5 01 00 69 04 A3 00 6F 04 04 00 44 9F 01 00 B1 04 05 00 9D 54 A4 F0 01 70 04 05 00 56 1A AE 92 01 72 04 04 00 47 3A F6 5D 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 E1 AE C1 34 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 68 63 65 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 30 06 00 00 B1 04 04 00 70 D2 2D 0D 70 04 04 00 70 D2 2D 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AE 59 66 01 EF 03 09 90 00 0D [08:51:36]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 74 A5 01 00 69 04 A3 00 6F 04 04 00 44 9F 01 00 B1 04 05 00 9D 54 A4 F0 01 70 04 05 00 56 1A AE 92 01 72 04 04 00 47 3A F6 5D 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 E1 AE C1 34 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 68 63 65 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 30 06 00 00 B1 04 04 00 70 D2 2D 0D 70 04 04 00 70 D2 2D 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AE 59 66 01 EF 03 09 90 00 [08:51:36]wFMCommunicate OK [08:51:36]wFMCommunicate request_size=4 [08:51:36]MH_SAM_APDU [08:51:36]CAPDU: 80 17 00 00 [08:51:36]Write to MH i2c: E2 08 00 EE 20 80 17 00 00 00 00 00 00 8E [08:51:36]Write i2c OK [08:51:36]MH_I2C_Read... [08:51:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:51:36]Read from MH i2c: E2 [08:51:36]MH_I2C_Read... [08:51:36]Read from MH i2c: E2 FD 00 [08:51:36]MH_I2C_Read... [08:51:36]Read from MH i2c: E2 FD 00 EE 20 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 46 DC 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 83 [08:51:36]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 46 DC 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [08:51:36]wFMCommunicate OK [08:51:36]wFMCommunicate request_size=4 [08:51:36]MH_SAM_APDU [08:51:36]CAPDU: 80 17 00 00 [08:51:36]Write to MH i2c: E2 08 00 EF 20 80 17 00 00 00 00 00 00 8F [08:51:36]Write i2c OK [08:51:36]MH_I2C_Read... [08:51:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:51:37]Read from MH i2c: E2 [08:51:37]MH_I2C_Read... [08:51:37]Read from MH i2c: E2 FD 00 [08:51:37]MH_I2C_Read... [08:51:37]Read from MH i2c: E2 FD 00 EF 20 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 A1 [08:51:37]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [08:51:37]wFMCommunicate OK [08:51:37]wFMCommunicate request_size=4 [08:51:37]MH_SAM_APDU [08:51:37]CAPDU: 80 17 00 00 [08:51:37]Write to MH i2c: E2 08 00 F0 20 80 17 00 00 00 00 00 00 90 [08:51:37]Write i2c OK [08:51:37]MH_I2C_Read... [08:51:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:51:37]Read from MH i2c: E2 [08:51:37]MH_I2C_Read... [08:51:37]Read from MH i2c: E2 FD 00 [08:51:37]MH_I2C_Read... [08:51:37]Read from MH i2c: E2 FD 00 F0 20 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1C [08:51:37]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:51:37]wFMCommunicate OK [08:51:37]wFMCommunicate request_size=4 [08:51:37]MH_SAM_APDU [08:51:37]CAPDU: 80 17 00 00 [08:51:37]Write to MH i2c: E2 08 00 F1 20 80 17 00 00 00 00 00 00 91 [08:51:37]Write i2c OK [08:51:37]MH_I2C_Read... [08:51:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [08:51:38]Read from MH i2c: E2 [08:51:38]MH_I2C_Read... [08:51:38]Read from MH i2c: E2 E2 00 [08:51:38]MH_I2C_Read... [08:51:38]Read from MH i2c: E2 E2 00 F1 20 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 6F [08:51:38]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:51:38]wFMCommunicate OK [08:51:38]SAM_PROTO_GetFMData done [08:51:38]FM_GetFMData:85 04 C1 04 6E 04 04 00 74 A5 01 00 69 04 A3 00 6F 04 04 00 44 9F 01 00 B1 04 05 00 9D 54 A4 F0 01 70 04 05 00 56 1A AE 92 01 72 04 04 00 47 3A F6 5D 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 E1 AE C1 34 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 68 63 65 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 30 06 00 00 B1 04 04 00 70 D2 2D 0D 70 04 04 00 70 D2 2D 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AE 59 66 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 46 DC 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 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 [08:51:38]oper:6F 04 04 00 44 9F 01 00 B1 04 05 00 9D 54 A4 F0 01 70 04 05 00 56 1A AE 92 01 72 04 04 00 47 3A F6 5D 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 E1 AE C1 34 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 68 63 65 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [08:51:38]total:9D 54 A4 F0 01 [08:51:38]Malloc new data [08:51:38]oper:6F 04 04 00 30 06 00 00 B1 04 04 00 70 D2 2D 0D 70 04 04 00 70 D2 2D 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AE 59 66 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 46 DC 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [08:51:39]total:70 D2 2D 0D [08:51:39]Malloc new data [08:51:39]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 [08:51:39]total: [08:51:39]Malloc new data [08:51:39]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 [08:51:39]total: [08:51:39]Malloc new data [08:51:39]KKMPrepareXReportFMData err=0 [08:51:39]Х отчет ИНН: 02508201610067 Кассир: Максатбек у Д. 15.03.2024 08:51 Смена: 266 РНМ: 0000000000091911 ЗНМ: 0300000266 СНО: Общий режим Всего чеков: 55 ИТОГИ ПРИХОД Чеков: 54 Общий итог: 38421.01 Итого наличными: 25397.00 Итого безнал.: 13024.01 НДС 0% : 0.00 НДС 12% : 4081.20 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 340.07 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 1 Общий итог: 700.00 Итого наличными: 700.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 74.35 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 6.19 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 24697.00 НС Приход: 83322687.01 НС Возвр.Прихода: 2211068.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871818 [08:51:39]StoreToDocumentArchive [08:51:39]MH_GetDate [08:51:39]Write to MH i2c: F0 00 00 F2 20 01 [08:51:39]Write i2c OK [08:51:39]MH_I2C_Read... [08:51:39]Read from MH i2c: F0 [08:51:39]MH_I2C_Read... [08:51:39]Read from MH i2c: F0 09 00 [08:51:39]MH_I2C_Read... [08:51:39]Read from MH i2c: F0 09 00 F2 20 00 1E 0C F4 65 D5 0F D3 65 A9 [08:51:39]shift 266 fd 1710492702 [08:51:39]Create dir for shift 0266 [08:51:39]save to /storage/0266/doc_1710492702 [08:51:39]save last doc name /storage/0266/doc_1710492702 to /storage/kkm_last_doc_name [08:51:39]save OK [08:51:39]Clear old archive folders... [08:51:39]NVStorageSaveData kkm_last_timestamp [08:51:39]File name is /storage/kkm_last_timestamp [08:51:39]Write 4 bytes [08:51:39]NVStorageSaveData done [08:51:39]ExternCall_PrintAddStr [08:51:39]wPrintStart [08:51:39]Write to MH i2c: 01 00 00 F3 20 13 [08:51:39]Write i2c OK [08:51:39]MH_I2C_Read... [08:51:39]Read from MH i2c: 01 [08:51:39]MH_I2C_Read... [08:51:39]Read from MH i2c: 01 07 00 [08:51:39]MH_I2C_Read... [08:51:39]Read from MH i2c: 01 07 00 F3 20 00 00 00 00 00 FF 0F 28 [08:51:39]RasterBufferAndPrint [08:51:39]line Х отчет [08:51:39]line ИНН: 02508201610067 [08:51:39]line Кассир: Максатбек у Д. [08:51:39]line 15.03.2024 08:51 [08:51:39]line Смена: 266 [08:51:39]line РНМ: 0000000000091911 [08:51:39]line ЗНМ: 0300000266 [08:51:39]line СНО: Общий режим [08:51:39]line Всего чеков: 55 [08:51:39]line ИТОГИ ПРИХОД [08:51:39]line Чеков: 54 [08:51:39]line Общий итог: 38421.01 [08:51:39]line Итого наличными: 25397.00 [08:51:39]line Итого безнал.: 13024.01 [08:51:39]line НДС 0% : 0.00 [08:51:39]line НДС 12% : 4081.20 [08:51:39]line НСП 0% : 0.00 [08:51:39]line НСП 1,50% : 0.00 [08:51:39]line НСП 0,50% : 0.00 [08:51:39]line НСП 5% : 0.00 [08:51:39]line НСП 3% : 0.00 [08:51:39]line НСП 2% : 0.00 [08:51:39]line НСП 1% : 340.07 [08:51:39]line ИТОГИ ВОЗВРАТ ПРИХОДА [08:51:39]line Чеков: 1 [08:51:39]line Общий итог: 700.00 [08:51:39]line Итого наличными: 700.00 [08:51:39]line Итого безнал.: 0.00 [08:51:39]line НДС 0% : 0.00 [08:51:39]line НДС 12% : 74.35 [08:51:39]line НСП 0% : 0.00 [08:51:39]line НСП 1,50% : 0.00 [08:51:39]line НСП 0,50% : 0.00 [08:51:39]line НСП 5% : 0.00 [08:51:39]line НСП 3% : 0.00 [08:51:39]line НСП 2% : 0.00 [08:51:39]line НСП 1% : 6.19 [08:51:39]line ИТОГИ РАСХОД [08:51:39]line Чеков: 0 [08:51:39]line Общий итог: 0.00 [08:51:39]line Итого наличными: 0.00 [08:51:39]line Итого безнал.: 0.00 [08:51:39]line НДС 0% : 0.00 [08:51:39]line НДС 12% : 0.00 [08:51:39]line НСП 0% : 0.00 [08:51:39]line НСП 1,50% : 0.00 [08:51:39]line НСП 0,50% : 0.00 [08:51:39]line НСП 5% : 0.00 [08:51:39]line НСП 3% : 0.00 [08:51:39]line НСП 2% : 0.00 [08:51:39]line НСП 1% : 0.00 [08:51:39]line ИТОГИ ВОЗВРАТ РАСХОДА [08:51:39]line Чеков: 0 [08:51:39]line Общий итог: 0.00 [08:51:39]line Итого наличными: 0.00 [08:51:39]line Итого безнал.: 0.00 [08:51:39]line НДС 0% : 0.00 [08:51:39]line НДС 12% : 0.00 [08:51:39]line НСП 0% : 0.00 [08:51:39]line НСП 1,50% : 0.00 [08:51:39]line НСП 0,50% : 0.00 [08:51:39]line НСП 5% : 0.00 [08:51:39]line НСП 3% : 0.00 [08:51:39]line НСП 2% : 0.00 [08:51:39]line НСП 1% : 0.00 [08:51:39]line Сумма внесений: 0.00 [08:51:39]line Сумма выплат: 0.00 [08:51:39]line Нал. в кассе: 24697.00 [08:51:39]line НС Приход: 83322687.01 [08:51:39]line НС Возвр.Прихода: 2211068.00 [08:51:39]line НС Расход: 0.00 [08:51:39]line НС Возвр.Расхода: 0.00 [08:51:39]line ФМ: 0000000000871818 [08:51:39]written 0, free lines is 4095 [08:51:39]OFD Sender: No OFD packet to send [08:51:40]Write to MH i2c: 01 00 00 3E 21 5F [08:51:40]Write i2c OK [08:51:40]MH_I2C_Read... [08:51:40]Read from MH i2c: 01 [08:51:40]MH_I2C_Read... [08:51:40]Read from MH i2c: 01 07 00 [08:51:40]MH_I2C_Read... [08:51:40]Read from MH i2c: 01 07 00 3E 21 00 00 00 00 00 91 0A 01 [08:51:40]RasterBufferAndPrint [08:51:40]line [08:51:40]line [08:51:40]line [08:51:40]line [08:51:40]line [08:51:40]written 0, free lines is 2734 [08:51:40]MH_Cut [08:51:40]Write to MH i2c: D1 01 00 45 21 01 38 [08:51:40]Write i2c OK [08:51:40]MH_I2C_Read... [08:51:40]Read from MH i2c: D1 [08:51:40]MH_I2C_Read... [08:51:40]Read from MH i2c: D1 01 00 [08:51:40]MH_I2C_Read... [08:51:40]Read from MH i2c: D1 01 00 45 21 00 37 [08:51:40]Write to MH i2c: 01 00 00 46 21 67 [08:51:40]Write i2c OK [08:51:40]MH_I2C_Read... [08:51:41]*** Cut start [08:51:41]*** Purtial cut [08:51:41]*** Stage 1: CUTSNS_PIN = 1 [08:51:41]Read from MH i2c: 01 [08:51:41]MH_I2C_Read... [08:51:41]*** Stop cut motor [08:51:41]*** Cut end [08:51:41]Read from MH i2c: 01 07 00 [08:51:41]MH_I2C_Read... [08:51:41]Read from MH i2c: 01 07 00 46 21 00 00 00 00 00 FF 0F 7C [08:51:41]process_action x_report done [08:51:41]requested_data is exist [08:51:41]produce_requested_data [08:51:41]requested_item fd.num is exist - process it [08:51:41]SAM_PROTO_GetFieldsCounters [08:51:41]wFMCommunicate request_size=4 [08:51:41]MH_SAM_APDU [08:51:41]CAPDU: 80 13 00 00 [08:51:41]Write to MH i2c: E2 08 00 47 21 80 13 00 00 00 00 00 00 E4 [08:51:41]Write i2c OK [08:51:41]MH_I2C_Read... [08:51:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:51:41]Read from MH i2c: E2 [08:51:41]MH_I2C_Read... [08:51:41]Read from MH i2c: E2 62 00 [08:51:41]MH_I2C_Read... [08:51:41]Read from MH i2c: E2 62 00 47 21 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 F4 A7 01 00 0E 04 04 00 40 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 84 [08:51: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 F4 A7 01 00 0E 04 04 00 40 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 [08:51:41]wFMCommunicate OK [08:51:41]SAM_PROTO_GetFieldsCounters done [08:51:41]requested_item shift.num is exist - process it [08:51:41]requested_item shift.opened is exist - process it [08:51:41]req_shift_opened [08:51:41]FM_GetShiftState [08:51:41]SAM_PROTO_GetShiftState [08:51:41]wFMCommunicate request_size=4 [08:51:41]MH_SAM_APDU [08:51:41]CAPDU: 80 13 01 00 [08:51:41]Write to MH i2c: E2 08 00 48 21 80 13 01 00 00 00 00 00 E6 [08:51:41]Write i2c OK [08:51:41]MH_I2C_Read... [08:51:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:41]Read from MH i2c: E2 [08:51:41]MH_I2C_Read... [08:51:41]Read from MH i2c: E2 0E 00 [08:51:41]MH_I2C_Read... [08:51:41]Read from MH i2c: E2 0E 00 48 21 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 1A [08:51:41]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:51:41]wFMCommunicate OK [08:51:41]SAM_PROTO_GetShiftState done [08:51:41]FM_GetShiftState done [08:51:41]req_shift_opened done [08:51:41]requested_item shift.open_date is exist - process it [08:51:41]req_shift_open_date [08:51:41]req_shift_open_date done [08:51:41]produce_requested_data done [08:51:41]produce_requested_data return {"fd.num":108532,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [08:51:41]process_action_free x_report [08:51:41]json_value_free [08:51:41]json_value_free done [08:51:41]process_json_proto returns [08:51:41]Send response to host [08:51:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":108532,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [08:51:41]free response buf [08:51:41]execute_script done [08:51:41]execute_script returns [08:51:41]free content buf [08:51:41]Sock 10.Close socket [08:51:41]Sock 10.Thread stoped [08:51:44]OFD Sender: No OFD packet to send [08:51:49]OFD Sender: No OFD packet to send [08:51:54]OFD Sender: No OFD packet to send [08:51:59]int [08:51:59]Write to MH i2c: 01 00 00 49 21 6A [08:51:59]*** FLAG_PRN_KEY set [08:51:59]Write i2c OK [08:51:59]MH_I2C_Read... [08:51:59]Read from MH i2c: 01 [08:51:59]MH_I2C_Read... [08:51:59]Read from MH i2c: 01 07 00 [08:51:59]MH_I2C_Read... [08:51:59]Read from MH i2c: 01 07 00 49 21 00 08 00 00 00 FF 0F 87 [08:51:59]state=0 [08:51:59]Key pressed [08:51:59]Feed [08:51:59]Write to MH i2c: D8 00 00 4A 21 42 [08:51:59]Write i2c OK [08:51:59]MH_I2C_Read... [08:51:59]Read from MH i2c: D8 [08:51:59]MH_I2C_Read... [08:51:59]Read from MH i2c: D8 01 00 [08:51:59]MH_I2C_Read... [08:51:59]Read from MH i2c: D8 01 00 4A 21 00 43 [08:51:59]int [08:51:59]Write to MH i2c: 01 00 00 4B 21 6C [08:51:59]Write i2c OK [08:51:59]MH_I2C_Read... [08:51:59]Read from MH i2c: 01 [08:51:59]MH_I2C_Read... [08:51:59]Read from MH i2c: 01 07 00 [08:51:59]MH_I2C_Read... [08:51:59]Read from MH i2c: 01 07 00 4B 21 00 48 00 00 00 3C 00 F7 [08:51:59]state=2 [08:51:59]Key pressed [08:51:59]int [08:51:59]Write to MH i2c: 01 00 00 4C 21 6D [08:51:59]*** FLAG_PRN_KEY reset [08:51:59]Write i2c OK [08:51:59]MH_I2C_Read... [08:51:59]Read from MH i2c: 01 [08:51:59]MH_I2C_Read... [08:51:59]Read from MH i2c: 01 07 00 [08:51:59]MH_I2C_Read... [08:51:59]Read from MH i2c: 01 07 00 4C 21 00 00 00 00 00 FF 0F 82 [08:51:59]state=2 [08:51:59]Stop feed [08:51:59]OFD Sender: No OFD packet to send [08:52:04]OFD Sender: No OFD packet to send [08:52:09]OFD Sender: No OFD packet to send [08:52:14]OFD Sender: No OFD packet to send [08:52:19]OFD Sender: No OFD packet to send [08:52:24]OFD Sender: No OFD packet to send [08:52:29]OFD Sender: No OFD packet to send [08:52:34]OFD Sender: No OFD packet to send [08:52:39]OFD Sender: No OFD packet to send [08:52:44]OFD Sender: No OFD packet to send [08:52:49]OFD Sender: No OFD packet to send [08:52:54]OFD Sender: No OFD packet to send [08:52:59]OFD Sender: No OFD packet to send [08:53:04]OFD Sender: No OFD packet to send [08:53:09]OFD Sender: No OFD packet to send [08:53:12]accept exits with 8 [08:53:12]New connection [08:53:12]New thread 3067198820 created [08:53:12]Thread 3067342180 joined [08:53:12]Waiting for new connection... [08:53:12] Sock 8.Parse request [08:53:12]Sock 8.Check first char [08:53:12]Sock 8.First char is OK [08:53:12]request: POST /json_proto HTTP/1.0 [08:53:12]Method: POST [08:53:12]URL: /json_proto [08:53:12]Method is POST - this is cgi request [08:53:12]url: /json_proto [08:53:12]query_string will be loaded in cgi processing [08:53:12]execute_cgi json_proto POST (null) [08:53:12]execute_cgi path=json_proto method=POST [08:53:12]POST find Content-Length [08:53:12]Host: 172.17.32.69:8080 [08:53:12]Content-Length: 687 [08:53:12]Content-Type: application/json [08:53:12] [08:53:12]POST finish read [08:53:12]Found Content-Length = 687 [08:53:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040696", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 4", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 15.520, "sum" : 1100.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:12]execute_script... [08:53:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040696", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 4", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 15.520, "sum" : 1100.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:12]POST & json_proto [08:53:12]process_json_proto [08:53:12]json parsed OK: [08:53:12]protocol is kg_v1.0 [08:53:12]action value=close_receipt [08:53:12]process_action close_receipt [08:53:12]cmd_close_receipt [08:53:12]MH_GetDate [08:53:12]Write to MH i2c: F0 00 00 4D 21 5D [08:53:12]Write i2c OK [08:53:12]MH_I2C_Read... [08:53:12]Read from MH i2c: F0 [08:53:12]MH_I2C_Read... [08:53:12]Read from MH i2c: F0 09 00 [08:53:12]MH_I2C_Read... [08:53:12]Read from MH i2c: F0 09 00 4D 21 00 7B 0C F4 65 D5 0F D3 65 62 [08:53:12]GetLastDocTimeStamp 1710492695 [08:53:12]current date 1710492795 [08:53:12]FM_GetShiftState [08:53:12]SAM_PROTO_GetShiftState [08:53:12]wFMCommunicate request_size=4 [08:53:12]MH_SAM_APDU [08:53:12]CAPDU: 80 13 01 00 [08:53:12]Write to MH i2c: E2 08 00 4E 21 80 13 01 00 00 00 00 00 EC [08:53:12]Write i2c OK [08:53:12]MH_I2C_Read... [08:53:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:12]Read from MH i2c: E2 [08:53:12]MH_I2C_Read... [08:53:12]Read from MH i2c: E2 0E 00 [08:53:12]MH_I2C_Read... [08:53:12]Read from MH i2c: E2 0E 00 4E 21 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 20 [08:53:12]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:53:12]wFMCommunicate OK [08:53:12]SAM_PROTO_GetShiftState done [08:53:12]FM_GetShiftState done [08:53:12]opened in 1710461757 [08:53:12]opened+sec_in_day 1710548157 [08:53:12]quantity*price = 110036 [08:53:12]sum+1 = 110038 [08:53:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.85 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 56 15.03.2024 08:53 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108533 ФПД: 181717396639118 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T085315&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108533&fm=181717396639118&tin=02508201610067®Number=0000000000091911&sum=110000 [08:53:13]StoreToDocumentArchive [08:53:13]shift 320 fd 108533 [08:53:13]save to /storage/0320/doc_00108533 [08:53:13]save last doc name /storage/0320/doc_00108533 to /storage/kkm_last_doc_name [08:53:13]save OK [08:53:13]Clear old archive folders... [08:53:13]Remove dir /storage/0266 [08:53:13]opendir ok [08:53:13]file . [08:53:13]file .. [08:53:13]file doc_1710492702 [08:53:13]remove file /storage/0266/doc_1710492702 [08:53:13]remove dir /storage/0266 [08:53:13]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:53:13]tlvbuf is 000AD2F0 [08:53:13]SAM_PROTO_ClearQueue [08:53:13]wFMCommunicate request_size=4 [08:53:13]MH_SAM_APDU [08:53:13]CAPDU: 80 09 00 00 [08:53:13]Write to MH i2c: E2 08 00 5B 21 80 09 00 00 00 00 00 00 EE [08:53:13]Write i2c OK [08:53:13]MH_I2C_Read... [08:53:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:53:13]Read from MH i2c: E2 [08:53:13]MH_I2C_Read... [08:53:13]Read from MH i2c: E2 03 00 [08:53:13]MH_I2C_Read... [08:53:13]Read from MH i2c: E2 03 00 5B 21 00 90 00 F0 [08:53:13]RAPDU: 90 00 [08:53:13]wFMCommunicate OK [08:53:13]SAM_PROTO_ClearQueue done [08:53:13]KKMCreateOFDPacket [08:53:13]OFDProtocolAddRootSTLVToBuf [08:53:13]FM_MakeSignedData [08:53:13]FM_MakeSignedData [08:53:13]SAM_PROTO_SignData [08:53:13]wFMCommunicate request_size=4 [08:53:13]MH_SAM_APDU [08:53:13]CAPDU: 80 0D 01 02 [08:53:13]Write to MH i2c: E2 08 00 5C 21 80 0D 01 02 00 00 00 00 F6 [08:53:13]Write i2c OK [08:53:13]MH_I2C_Read... [08:53:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:53:13]Read from MH i2c: E2 [08:53:13]MH_I2C_Read... [08:53:13]Read from MH i2c: E2 03 00 [08:53:13]MH_I2C_Read... [08:53:13]Read from MH i2c: E2 03 00 5C 21 00 90 00 F1 [08:53:13]RAPDU: 90 00 [08:53:13]wFMCommunicate OK [08:53:13]wFMCommunicate request_size=255 [08:53:13]MH_SAM_APDU [08:53:13]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 3C 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 D5 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 7B 0C F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F5 A7 01 00 35 04 06 00 [08:53:13]Write to MH i2c: E2 02 01 5D 21 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 3C 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 D5 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 7B 0C F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F5 A7 01 00 35 04 06 00 00 00 B9 [08:53:13]Write i2c OK [08:53:13]MH_I2C_Read... [08:53:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:13]Read from MH i2c: E2 [08:53:13]MH_I2C_Read... [08:53:13]Read from MH i2c: E2 03 00 [08:53:13]MH_I2C_Read... [08:53:13]Read from MH i2c: E2 03 00 5D 21 00 90 00 F2 [08:53:13]RAPDU: 90 00 [08:53:13]wFMCommunicate OK [08:53:13]wFMCommunicate request_size=11 [08:53:13]MH_SAM_APDU [08:53:13]CAPDU: 80 0D 02 02 06 A5 45 60 E0 4D 8E [08:53:13]Write to MH i2c: E2 0E 00 5E 21 80 0D 02 02 06 00 A5 45 60 E0 4D 8E 00 00 0A [08:53:13]Write i2c OK [08:53:13]MH_I2C_Read... [08:53:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:14]Read from MH i2c: E2 [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: E2 03 00 [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: E2 03 00 5E 21 00 90 00 F3 [08:53:14]RAPDU: 90 00 [08:53:14]wFMCommunicate OK [08:53:14]wFMCommunicate request_size=4 [08:53:14]MH_SAM_APDU [08:53:14]CAPDU: 80 0D 03 02 [08:53:14]Write to MH i2c: E2 08 00 5F 21 80 0D 03 02 00 00 00 00 FB [08:53:14]Write i2c OK [08:53:14]MH_I2C_Read... [08:53:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:53:14]Read from MH i2c: E2 [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: E2 0B 00 [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: E2 0B 00 5F 21 00 8B 62 9F 54 97 08 61 FE 90 00 DA [08:53:14]RAPDU: 8B 62 9F 54 97 08 61 FE 90 00 [08:53:14]wFMCommunicate OK [08:53:14]SAM_PROTO_SignData done [08:53:14]FM_MakeSignedData done [08:53:14]CreateOFDProtocolMessage [08:53:14]wFMCommunicate request_size=4 [08:53:14]MH_SAM_APDU [08:53:14]CAPDU: 80 11 00 00 [08:53:14]Write to MH i2c: E2 08 00 60 21 80 11 00 00 00 00 00 00 FB [08:53:14]Write i2c OK [08:53:14]MH_I2C_Read... [08:53:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:14]Read from MH i2c: E2 [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: E2 17 00 [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: E2 17 00 60 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 4F [08:53:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:53:14]wFMCommunicate OK [08:53:14]CreateOFDProtocolMessage done [08:53:14]OFDSenderStorePacket 108533 [08:53:14]StoreOFDPacket docnum=108533 [08:53:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 01 00 00 08 06 08 01 C1 0E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 3C 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 D5 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 7B 0C F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F5 A7 01 00 35 04 06 00 A5 45 60 E0 4D 8E 8B 62 9F 54 97 08 61 FE [08:53:14]CheckFolder [08:53:14]dirname=/storage/ofd_packets [08:53:14]CheckFolder done [08:53:14]ProducePacketName [08:53:14]name=ofd_packets/00108533 [08:53:14]NVStorageSaveData ofd_packets/00108533 [08:53:14]File name is /storage/ofd_packets/00108533 [08:53:14]Write 302 bytes [08:53:14]NVStorageSaveData done [08:53:14]OFDSenderStorePacket done [08:53:14]KKMCreateOFDPacket done [08:53:14]NVStorageSaveData kkm_last_timestamp [08:53:14]File name is /storage/kkm_last_timestamp [08:53:14]Write 4 bytes [08:53:14]NVStorageSaveData done [08:53:14]ExternCall_PrintAddStr [08:53:14]wPrintStart [08:53:14]Write to MH i2c: 01 00 00 61 21 82 [08:53:14]Write i2c OK [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: 01 [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: 01 07 00 [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: 01 07 00 61 21 00 00 00 00 00 FF 0F 97 [08:53:14]RasterBufferAndPrint [08:53:14]line Счет N : (1)1040696 [08:53:14]line ИНН: 02508201610067 [08:53:14]line Контрольно-Кассовый Чек [08:53:14]line ПРОДАЖА [08:53:14]line ТРК (МРК, ГНК) : 4 [08:53:14]line Товар: 2710194210 [08:53:14]line ДТ(л)-К-5 [08:53:14]line 15.520 * 70.90 [08:53:14]line = 1100.37 [08:53:14]line НДС 12% НСП 1% [08:53:14]line > о реализуемом товаре [08:53:14]line ОКРУГЛЕНИЕ: -0.37 [08:53:14]line ИТОГО: 1100.00 [08:53:14]line Внесено: 1100.00 [08:53:14]line СДАЧА: 0.00 [08:53:14]line НСП 1% : 9.74 [08:53:14]line НДС 12% : 116.85 [08:53:14]line Наличными: 1100.00 [08:53:14]line Безнал.: 0.00 [08:53:14]line Место: АЗС № 15 "Партнер Нефть" [08:53:14]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [08:53:14]line СНО: Общий режим [08:53:14]line Чек 56 15.03.2024 08:53 [08:53:14]line Смена: 320 ФФД: 1.0 [08:53:14]line ЗНМ: 0300000266 [08:53:14]line РНМ: 0000000000091911 [08:53:14]line Версия ККМ: 001 [08:53:14]line ФМ: 0000000000871818 [08:53:14]line ФД: 108533 [08:53:14]line ФПД: 181717396639118 [08:53:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T085315&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108533&fm=181717396639118&tin=02508201610067®Number=0000000000091911&sum=110000 [08:53:14]OFD Sender: Processing packet 108533 [packets to send 29, broken 28] [08:53:14]ProducePacketName [08:53:14]name=ofd_packets/00108533 [08:53:14]OFD Sender: To server: pG, [08:53:14]CommunicateWithHost lk.salyk.kg:30040 [08:53:14]ConnectInit lk.salyk.kg [08:53:14]written 0, free lines is 4095 [08:53:14]Connected sock=10 [08:53:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 01 00 00 08 06 08 01 C1 0E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 3C 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 D5 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 7B 0C F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F5 A7 01 00 35 04 06 00 A5 45 60 E0 4D 8E 8B 62 9F 54 97 08 61 FE [08:53: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 31 38 4F 00 00 00 F6 00 47 00 4A 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 31 38 10 04 04 00 F5 A7 01 00 F4 03 04 00 1C B8 F3 65 B6 04 01 00 00 49 EE 69 D8 79 92 38 37 [08:53:14]CommunicateWithHost err = 0 [08:53:14]CheckOFDResponse [08:53:14]1017 (14) - 77093643461234 [08:53:14]1041 (16) - 0000000000871818 [08:53:14]1040 (4) - 108533 [08:53:14]1012 (4) - 15.03.2024 02:53 [08:53:14]1206 (1) - 0 [08:53:14]OFD Sender: Remove packet 108533 [08:53:14]ProducePacketName [08:53:14]name=ofd_packets/00108533 [08:53:14]NVStorageDeleteData [08:53:14]Write to MH i2c: 01 00 00 8C 21 AD [08:53:14]Write i2c OK [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: 01 [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: 01 07 00 [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: 01 07 00 8C 21 00 00 00 00 00 E4 0C A4 [08:53:14]RasterBufferAndPrint [08:53:14]line [08:53:14]line [08:53:14]line [08:53:14]line [08:53:14]line [08:53:14]written 0, free lines is 3306 [08:53:14]MH_Cut [08:53:14]Write to MH i2c: D1 01 00 93 21 01 86 [08:53:14]Write i2c OK [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: D1 [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: D1 01 00 [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: D1 01 00 93 21 00 85 [08:53:14]Write to MH i2c: 01 00 00 94 21 B5 [08:53:14]Write i2c OK [08:53:14]MH_I2C_Read... [08:53:15]OFD Sender: No OFD packet to send [08:53:15]*** Cut start [08:53:15]*** Purtial cut [08:53:15]*** Stage 1: CUTSNS_PIN = 1 [08:53:16]Read from MH i2c: 01 [08:53:16]MH_I2C_Read... [08:53:16]*** Stop cut motor [08:53:16]*** Cut end [08:53:16]Read from MH i2c: 01 07 00 [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: 01 07 00 94 21 00 00 00 00 00 FF 0F CA [08:53:16]process_action close_receipt done [08:53:16]requested_data is exist [08:53:16]produce_requested_data [08:53:16]requested_item fm.sn is exist - process it [08:53:16]wFMCommunicate request_size=4 [08:53:16]MH_SAM_APDU [08:53:16]CAPDU: 80 11 00 00 [08:53:16]Write to MH i2c: E2 08 00 95 21 80 11 00 00 00 00 00 00 30 [08:53:16]Write i2c OK [08:53:16]MH_I2C_Read... [08:53:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:16]Read from MH i2c: E2 [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: E2 17 00 [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: E2 17 00 95 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 84 [08:53:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:53:16]wFMCommunicate OK [08:53:16]requested_item fd.num is exist - process it [08:53:16]SAM_PROTO_GetFieldsCounters [08:53:16]wFMCommunicate request_size=4 [08:53:16]MH_SAM_APDU [08:53:16]CAPDU: 80 13 00 00 [08:53:16]Write to MH i2c: E2 08 00 96 21 80 13 00 00 00 00 00 00 33 [08:53:16]Write i2c OK [08:53:16]MH_I2C_Read... [08:53:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:53:16]Read from MH i2c: E2 [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: E2 62 00 [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: E2 62 00 96 21 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 F5 A7 01 00 0E 04 04 00 40 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 D7 [08:53:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 F5 A7 01 00 0E 04 04 00 40 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 [08:53:16]wFMCommunicate OK [08:53:16]SAM_PROTO_GetFieldsCounters done [08:53:16]requested_item shift.num is exist - process it [08:53:16]requested_item shift.opened is exist - process it [08:53:16]req_shift_opened [08:53:16]FM_GetShiftState [08:53:16]SAM_PROTO_GetShiftState [08:53:16]wFMCommunicate request_size=4 [08:53:16]MH_SAM_APDU [08:53:16]CAPDU: 80 13 01 00 [08:53:16]Write to MH i2c: E2 08 00 97 21 80 13 01 00 00 00 00 00 35 [08:53:16]Write i2c OK [08:53:16]MH_I2C_Read... [08:53:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:16]Read from MH i2c: E2 [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: E2 0E 00 [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: E2 0E 00 97 21 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 69 [08:53:16]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:53:16]wFMCommunicate OK [08:53:16]SAM_PROTO_GetShiftState done [08:53:16]FM_GetShiftState done [08:53:16]req_shift_opened done [08:53:16]requested_item shift.open_date is exist - process it [08:53:16]req_shift_open_date [08:53:16]req_shift_open_date done [08:53:16]produce_requested_data done [08:53:16]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108533,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [08:53:16]process_action_free close_receipt [08:53:16]json_value_free [08:53:16]json_value_free done [08:53:16]process_json_proto returns [08:53:16]Send response to host [08:53:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108533,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [08:53:16]free response buf [08:53:16]execute_script done [08:53:16]execute_script returns [08:53:16]free content buf [08:53:16]Sock 8.Close socket [08:53:16]Sock 8.Thread stoped [08:53:20]OFD Sender: No OFD packet to send [08:53:25]OFD Sender: No OFD packet to send [08:53:30]OFD Sender: No OFD packet to send [08:53:35]OFD Sender: No OFD packet to send [08:53:40]OFD Sender: No OFD packet to send [08:53:45]OFD Sender: No OFD packet to send [08:53:50]OFD Sender: No OFD packet to send [08:53:55]OFD Sender: No OFD packet to send [08:54:00]OFD Sender: No OFD packet to send [08:54:05]OFD Sender: No OFD packet to send [08:54:10]OFD Sender: No OFD packet to send [08:54:15]OFD Sender: No OFD packet to send [08:54:20]OFD Sender: No OFD packet to send [08:54:25]OFD Sender: No OFD packet to send [08:54:30]OFD Sender: No OFD packet to send [08:54:35]OFD Sender: No OFD packet to send [08:54:40]OFD Sender: No OFD packet to send [08:54:45]OFD Sender: No OFD packet to send [08:54:50]OFD Sender: No OFD packet to send [08:54:55]OFD Sender: No OFD packet to send [08:55:00]OFD Sender: No OFD packet to send [08:55:05]OFD Sender: No OFD packet to send [08:55:10]OFD Sender: No OFD packet to send [08:55:15]OFD Sender: No OFD packet to send [08:55:20]OFD Sender: No OFD packet to send [08:55:25]OFD Sender: No OFD packet to send [08:55:30]OFD Sender: No OFD packet to send [08:55:35]OFD Sender: No OFD packet to send [08:55:40]OFD Sender: No OFD packet to send [08:55:45]OFD Sender: No OFD packet to send [08:55:50]OFD Sender: No OFD packet to send [08:55:55]OFD Sender: No OFD packet to send [08:56:00]OFD Sender: No OFD packet to send [08:56:05]OFD Sender: No OFD packet to send [08:56:10]OFD Sender: No OFD packet to send [08:56:15]OFD Sender: No OFD packet to send [08:56:20]OFD Sender: No OFD packet to send [08:56:25]OFD Sender: No OFD packet to send [08:56:30]OFD Sender: No OFD packet to send [08:56:35]OFD Sender: No OFD packet to send [08:56:40]OFD Sender: No OFD packet to send [08:56:45]OFD Sender: No OFD packet to send [08:56:50]OFD Sender: No OFD packet to send [08:56:55]OFD Sender: No OFD packet to send [08:57:00]OFD Sender: No OFD packet to send [08:57:05]OFD Sender: No OFD packet to send [08:57:10]OFD Sender: No OFD packet to send [08:57:15]OFD Sender: No OFD packet to send [08:57:20]OFD Sender: No OFD packet to send [08:57:25]OFD Sender: No OFD packet to send [08:57:30]OFD Sender: No OFD packet to send [08:57:35]OFD Sender: No OFD packet to send [08:57:40]OFD Sender: No OFD packet to send [08:57:45]OFD Sender: No OFD packet to send [08:57:50]OFD Sender: No OFD packet to send [08:57:55]OFD Sender: No OFD packet to send [08:58:00]OFD Sender: No OFD packet to send [08:58:05]OFD Sender: No OFD packet to send [08:58:10]OFD Sender: No OFD packet to send [08:58:15]OFD Sender: No OFD packet to send [08:58:20]OFD Sender: No OFD packet to send [08:58:25]OFD Sender: No OFD packet to send [08:58:30]OFD Sender: No OFD packet to send [08:58:35]OFD Sender: No OFD packet to send [08:58:40]OFD Sender: No OFD packet to send [08:58:45]OFD Sender: No OFD packet to send [08:58:50]OFD Sender: No OFD packet to send [08:58:55]OFD Sender: No OFD packet to send [08:59:00]OFD Sender: No OFD packet to send [08:59:05]OFD Sender: No OFD packet to send [08:59:10]OFD Sender: No OFD packet to send [08:59:15]OFD Sender: No OFD packet to send [08:59:20]OFD Sender: No OFD packet to send [08:59:25]OFD Sender: No OFD packet to send [08:59:30]OFD Sender: No OFD packet to send [08:59:35]OFD Sender: No OFD packet to send [08:59:40]OFD Sender: No OFD packet to send [08:59:45]OFD Sender: No OFD packet to send [08:59:48]accept exits with 9 [08:59:48]New connection [08:59:48]New thread 3067342180 created [08:59:48]Thread 3067198820 joined [08:59:48]Waiting for new connection... [08:59:48] Sock 9.Parse request [08:59:48]Sock 9.Check first char [08:59:48]Sock 9.First char is OK [08:59:48]request: POST /json_proto HTTP/1.0 [08:59:48]Method: POST [08:59:48]URL: /json_proto [08:59:48]Method is POST - this is cgi request [08:59:48]url: /json_proto [08:59:48]query_string will be loaded in cgi processing [08:59:48]execute_cgi json_proto POST (null) [08:59:48]execute_cgi path=json_proto method=POST [08:59:48]POST find Content-Length [08:59:48]Host: 172.17.32.69:8080 [08:59:48]Content-Length: 688 [08:59:48]Content-Type: application/json [08:59:48] [08:59:48]POST finish read [08:59:48]Found Content-Length = 688 [08:59:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.320, "sum" : 1461.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1461.00, "total" : 1461.00, "payments": [ { "type": 0, "sum" : 1461.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:48]execute_script... [08:59: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)1040697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.320, "sum" : 1461.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1461.00, "total" : 1461.00, "payments": [ { "type": 0, "sum" : 1461.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:48]POST & json_proto [08:59:48]process_json_proto [08:59:48]json parsed OK: [08:59:48]protocol is kg_v1.0 [08:59:48]action value=close_receipt [08:59:48]process_action close_receipt [08:59:48]cmd_close_receipt [08:59:48]MH_GetDate [08:59:48]Write to MH i2c: F0 00 00 98 21 A8 [08:59:48]Write i2c OK [08:59:48]MH_I2C_Read... [08:59:48]Read from MH i2c: F0 [08:59:48]MH_I2C_Read... [08:59:48]Read from MH i2c: F0 09 00 [08:59:48]MH_I2C_Read... [08:59:48]Read from MH i2c: F0 09 00 98 21 00 07 0E F4 65 D5 0F D3 65 3B [08:59:48]GetLastDocTimeStamp 1710492795 [08:59:48]current date 1710493191 [08:59:48]FM_GetShiftState [08:59:48]SAM_PROTO_GetShiftState [08:59:48]wFMCommunicate request_size=4 [08:59:48]MH_SAM_APDU [08:59:48]CAPDU: 80 13 01 00 [08:59:48]Write to MH i2c: E2 08 00 99 21 80 13 01 00 00 00 00 00 37 [08:59:48]Write i2c OK [08:59:48]MH_I2C_Read... [08:59:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:48]Read from MH i2c: E2 [08:59:48]MH_I2C_Read... [08:59:48]Read from MH i2c: E2 0E 00 [08:59:48]MH_I2C_Read... [08:59:48]Read from MH i2c: E2 0E 00 99 21 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 6B [08:59:48]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:59:48]wFMCommunicate OK [08:59:48]SAM_PROTO_GetShiftState done [08:59:48]FM_GetShiftState done [08:59:48]opened in 1710461757 [08:59:48]opened+sec_in_day 1710548157 [08:59:48]quantity*price = 146100 [08:59:48]sum+1 = 146102 [08:59:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1461.00 Внесено: 1461.00 СДАЧА: 0.00 НСП 1% : 12.93 НДС 12% : 155.15 Наличными: 1461.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 57 15.03.2024 08:59 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108534 ФПД: 15067650719483 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T085952&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108534&fm=15067650719483&tin=02508201610067®Number=0000000000091911&sum=146100 [08:59:49]StoreToDocumentArchive [08:59:49]shift 320 fd 108534 [08:59:49]save to /storage/0320/doc_00108534 [08:59:49]save last doc name /storage/0320/doc_00108534 to /storage/kkm_last_doc_name [08:59:49]save OK [08:59:49]Clear old archive folders... [08:59:49]ProcessDocumentItem done err = 0, tmpTLVsize=257 [08:59:49]tlvbuf is B6F07640 [08:59:49]SAM_PROTO_ClearQueue [08:59:49]wFMCommunicate request_size=4 [08:59:49]MH_SAM_APDU [08:59:49]CAPDU: 80 09 00 00 [08:59:49]Write to MH i2c: E2 08 00 A6 21 80 09 00 00 00 00 00 00 39 [08:59:49]Write i2c OK [08:59:49]MH_I2C_Read... [08:59:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:59:49]Read from MH i2c: E2 [08:59:49]MH_I2C_Read... [08:59:49]Read from MH i2c: E2 03 00 [08:59:49]MH_I2C_Read... [08:59:49]Read from MH i2c: E2 03 00 A6 21 00 90 00 3B [08:59:49]RAPDU: 90 00 [08:59:49]wFMCommunicate OK [08:59:49]SAM_PROTO_ClearQueue done [08:59:49]KKMCreateOFDPacket [08:59:49]OFDProtocolAddRootSTLVToBuf [08:59:49]FM_MakeSignedData [08:59:49]FM_MakeSignedData [08:59:49]SAM_PROTO_SignData [08:59:49]wFMCommunicate request_size=4 [08:59:49]MH_SAM_APDU [08:59:49]CAPDU: 80 0D 01 02 [08:59:49]Write to MH i2c: E2 08 00 A7 21 80 0D 01 02 00 00 00 00 41 [08:59:49]Write i2c OK [08:59:49]MH_I2C_Read... [08:59:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:59:49]Read from MH i2c: E2 [08:59:49]MH_I2C_Read... [08:59:49]Read from MH i2c: E2 03 00 [08:59:49]MH_I2C_Read... [08:59:49]Read from MH i2c: E2 03 00 A7 21 00 90 00 3C [08:59:49]RAPDU: 90 00 [08:59:49]wFMCommunicate OK [08:59:49]wFMCommunicate request_size=255 [08:59:49]MH_SAM_APDU [08:59:49]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 4F 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B5 3A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 3A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 3C 00 00 00 00 07 04 06 00 B4 3A 02 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 08 0E F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F6 A7 01 [08:59:49]Write to MH i2c: E2 02 01 A8 21 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 4F 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B5 3A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 3A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 3C 00 00 00 00 07 04 06 00 B4 3A 02 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 08 0E F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F6 A7 01 00 00 F5 [08:59:49]Write i2c OK [08:59:49]MH_I2C_Read... [08:59:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:49]Read from MH i2c: E2 [08:59:49]MH_I2C_Read... [08:59:49]Read from MH i2c: E2 03 00 [08:59:49]MH_I2C_Read... [08:59:49]Read from MH i2c: E2 03 00 A8 21 00 90 00 3D [08:59:49]RAPDU: 90 00 [08:59:49]wFMCommunicate OK [08:59:49]wFMCommunicate request_size=16 [08:59:49]MH_SAM_APDU [08:59:49]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 0D B4 35 F7 FE FB [08:59:49]Write to MH i2c: E2 13 00 A9 21 80 0D 02 02 0B 00 00 35 04 06 00 0D B4 35 F7 FE FB 00 00 7F [08:59:49]Write i2c OK [08:59:49]MH_I2C_Read... [08:59:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:50]Read from MH i2c: E2 [08:59:50]MH_I2C_Read... [08:59:50]Read from MH i2c: E2 03 00 [08:59:50]MH_I2C_Read... [08:59:50]Read from MH i2c: E2 03 00 A9 21 00 90 00 3E [08:59:50]RAPDU: 90 00 [08:59:50]wFMCommunicate OK [08:59:50]wFMCommunicate request_size=4 [08:59:50]MH_SAM_APDU [08:59:50]CAPDU: 80 0D 03 02 [08:59:50]Write to MH i2c: E2 08 00 AA 21 80 0D 03 02 00 00 00 00 46 [08:59:50]Write i2c OK [08:59:50]MH_I2C_Read... [08:59:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:59:50]Read from MH i2c: E2 [08:59:50]MH_I2C_Read... [08:59:50]Read from MH i2c: E2 0B 00 [08:59:50]MH_I2C_Read... [08:59:50]Read from MH i2c: E2 0B 00 AA 21 00 C2 D6 08 6E 94 B9 60 A8 90 00 AA [08:59:50]RAPDU: C2 D6 08 6E 94 B9 60 A8 90 00 [08:59:50]wFMCommunicate OK [08:59:50]SAM_PROTO_SignData done [08:59:50]FM_MakeSignedData done [08:59:50]CreateOFDProtocolMessage [08:59:50]wFMCommunicate request_size=4 [08:59:50]MH_SAM_APDU [08:59:50]CAPDU: 80 11 00 00 [08:59:50]Write to MH i2c: E2 08 00 AB 21 80 11 00 00 00 00 00 00 46 [08:59:50]Write i2c OK [08:59:50]MH_I2C_Read... [08:59:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:50]Read from MH i2c: E2 [08:59:50]MH_I2C_Read... [08:59:50]Read from MH i2c: E2 17 00 [08:59:50]MH_I2C_Read... [08:59:50]Read from MH i2c: E2 17 00 AB 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 9A [08:59:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:59:50]wFMCommunicate OK [08:59:50]CreateOFDProtocolMessage done [08:59:50]OFDSenderStorePacket 108534 [08:59:50]StoreOFDPacket docnum=108534 [08:59:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 15 01 00 00 08 41 0D 01 D7 14 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 4F 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B5 3A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 3A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 3C 00 00 00 00 07 04 06 00 B4 3A 02 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 08 0E F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F6 A7 01 00 35 04 06 00 0D B4 35 F7 FE FB C2 D6 08 6E 94 B9 60 A8 [08:59:50]CheckFolder [08:59:50]dirname=/storage/ofd_packets [08:59:50]CheckFolder done [08:59:50]ProducePacketName [08:59:50]name=ofd_packets/00108534 [08:59:50]NVStorageSaveData ofd_packets/00108534 [08:59:50]File name is /storage/ofd_packets/00108534 [08:59:50]Write 307 bytes [08:59:50]NVStorageSaveData done [08:59:50]OFDSenderStorePacket done [08:59:50]KKMCreateOFDPacket done [08:59:50]NVStorageSaveData kkm_last_timestamp [08:59:50]File name is /storage/kkm_last_timestamp [08:59:50]Write 4 bytes [08:59:50]NVStorageSaveData done [08:59:50]ExternCall_PrintAddStr [08:59:50]wPrintStart [08:59:50]Write to MH i2c: 01 00 00 AC 21 CD [08:59:50]Write i2c OK [08:59:50]MH_I2C_Read... [08:59:50]Read from MH i2c: 01 [08:59:50]MH_I2C_Read... [08:59:50]Read from MH i2c: 01 07 00 [08:59:50]MH_I2C_Read... [08:59:50]Read from MH i2c: 01 07 00 AC 21 00 00 00 00 00 FF 0F E2 [08:59:50]RasterBufferAndPrint [08:59:50]line Счет N : (1)1040697 [08:59:50]line ИНН: 02508201610067 [08:59:50]line Контрольно-Кассовый Чек [08:59:50]line ПРОДАЖА [08:59:50]line ТРК (МРК, ГНК) : 1 [08:59:50]line Товар: 2710194210 [08:59:50]line D-ENERGY ДТ-К-5 [08:59:50]line 20.320 * 71.90 [08:59:50]line = 1461.01 [08:59:50]line НДС 12% НСП 1% [08:59:50]line > о реализуемом товаре [08:59:50]line ОКРУГЛЕНИЕ: -0.01 [08:59:50]line ИТОГО: 1461.00 [08:59:50]line Внесено: 1461.00 [08:59:50]line СДАЧА: 0.00 [08:59:50]line НСП 1% : 12.93 [08:59:50]line НДС 12% : 155.15 [08:59:50]line Наличными: 1461.00 [08:59:50]line Безнал.: 0.00 [08:59:50]line Место: АЗС № 15 "Партнер Нефть" [08:59:50]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [08:59:50]line СНО: Общий режим [08:59:50]line Чек 57 15.03.2024 08:59 [08:59:50]line Смена: 320 ФФД: 1.0 [08:59:50]line ЗНМ: 0300000266 [08:59:50]line РНМ: 0000000000091911 [08:59:50]line Версия ККМ: 001 [08:59:50]line ФМ: 0000000000871818 [08:59:50]line ФД: 108534 [08:59:50]line ФПД: 15067650719483 [08:59:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T085952&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108534&fm=15067650719483&tin=02508201610067®Number=0000000000091911&sum=146100 [08:59:50]OFD Sender: Processing packet 108534 [packets to send 29, broken 28] [08:59:50]ProducePacketName [08:59:50]name=ofd_packets/00108534 [08:59:50]OFD Sender: To server: pG, [08:59:50]CommunicateWithHost lk.salyk.kg:30040 [08:59:50]ConnectInit lk.salyk.kg [08:59:50]written 0, free lines is 4095 [08:59:50]Connected sock=8 [08:59: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 31 38 15 01 00 00 08 41 0D 01 D7 14 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 4F 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B5 3A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 3A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 3C 00 00 00 00 07 04 06 00 B4 3A 02 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 08 0E F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F6 A7 01 00 35 04 06 00 0D B4 35 F7 FE FB C2 D6 08 6E 94 B9 60 A8 [08:59: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 31 38 4F 00 00 00 8A 26 47 00 54 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F6 A7 01 00 F4 03 04 00 A8 B9 F3 65 B6 04 01 00 00 2F 67 DB 00 EA 4C 5B 7C [08:59:50]CommunicateWithHost err = 0 [08:59:50]CheckOFDResponse [08:59:50]1017 (14) - 77093643461234 [08:59:50]1041 (16) - 0000000000871818 [08:59:50]1040 (4) - 108534 [08:59:50]1012 (4) - 15.03.2024 02:59 [08:59:50]1206 (1) - 0 [08:59:50]OFD Sender: Remove packet 108534 [08:59:50]ProducePacketName [08:59:50]name=ofd_packets/00108534 [08:59:50]NVStorageDeleteData [08:59:50]Write to MH i2c: 01 00 00 D7 21 F8 [08:59:50]Write i2c OK [08:59:50]MH_I2C_Read... [08:59:50]Read from MH i2c: 01 [08:59:50]MH_I2C_Read... [08:59:50]Read from MH i2c: 01 07 00 [08:59:50]MH_I2C_Read... [08:59:50]Read from MH i2c: 01 07 00 D7 21 00 00 00 00 00 DC 0C E7 [08:59:50]RasterBufferAndPrint [08:59:50]line [08:59:50]line [08:59:50]line [08:59:50]line [08:59:50]line [08:59:50]written 0, free lines is 3299 [08:59:50]MH_Cut [08:59:50]Write to MH i2c: D1 01 00 DE 21 01 D1 [08:59:50]Write i2c OK [08:59:50]MH_I2C_Read... [08:59:50]Read from MH i2c: D1 [08:59:50]MH_I2C_Read... [08:59:50]Read from MH i2c: D1 01 00 [08:59:50]MH_I2C_Read... [08:59:50]Read from MH i2c: D1 01 00 DE 21 00 D0 [08:59:50]Write to MH i2c: 01 00 00 DF 21 00 [08:59:50]Write i2c OK [08:59:50]MH_I2C_Read... [08:59:51]OFD Sender: No OFD packet to send [08:59:51]*** Cut start [08:59:51]*** Purtial cut [08:59:51]*** Stage 1: CUTSNS_PIN = 1 [08:59:52]Read from MH i2c: 01 [08:59:52]MH_I2C_Read... [08:59:52]*** Stop cut motor [08:59:52]*** Cut end [08:59:52]Read from MH i2c: 01 07 00 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: 01 07 00 DF 21 00 00 00 00 00 FF 0F 15 [08:59:52]process_action close_receipt done [08:59:52]requested_data is exist [08:59:52]produce_requested_data [08:59:52]requested_item fm.sn is exist - process it [08:59:52]wFMCommunicate request_size=4 [08:59:52]MH_SAM_APDU [08:59:52]CAPDU: 80 11 00 00 [08:59:52]Write to MH i2c: E2 08 00 E0 21 80 11 00 00 00 00 00 00 7B [08:59:52]Write i2c OK [08:59:52]MH_I2C_Read... [08:59:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:52]Read from MH i2c: E2 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 17 00 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 17 00 E0 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 CF [08:59:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [08:59:52]wFMCommunicate OK [08:59:52]requested_item fd.num is exist - process it [08:59:52]SAM_PROTO_GetFieldsCounters [08:59:52]wFMCommunicate request_size=4 [08:59:52]MH_SAM_APDU [08:59:52]CAPDU: 80 13 00 00 [08:59:52]Write to MH i2c: E2 08 00 E1 21 80 13 00 00 00 00 00 00 7E [08:59:52]Write i2c OK [08:59:52]MH_I2C_Read... [08:59:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:52]Read from MH i2c: E2 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 62 00 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 62 00 E1 21 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 F6 A7 01 00 0E 04 04 00 40 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 26 [08:59: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 F6 A7 01 00 0E 04 04 00 40 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 [08:59:52]wFMCommunicate OK [08:59:52]SAM_PROTO_GetFieldsCounters done [08:59:52]requested_item shift.num is exist - process it [08:59:52]requested_item shift.opened is exist - process it [08:59:52]req_shift_opened [08:59:52]FM_GetShiftState [08:59:52]SAM_PROTO_GetShiftState [08:59:52]wFMCommunicate request_size=4 [08:59:52]MH_SAM_APDU [08:59:52]CAPDU: 80 13 01 00 [08:59:52]Write to MH i2c: E2 08 00 E2 21 80 13 01 00 00 00 00 00 80 [08:59:52]Write i2c OK [08:59:52]MH_I2C_Read... [08:59:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:52]Read from MH i2c: E2 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 0E 00 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 0E 00 E2 21 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 B4 [08:59:52]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [08:59:52]wFMCommunicate OK [08:59:52]SAM_PROTO_GetShiftState done [08:59:52]FM_GetShiftState done [08:59:52]req_shift_opened done [08:59:52]requested_item shift.open_date is exist - process it [08:59:52]req_shift_open_date [08:59:52]req_shift_open_date done [08:59:52]produce_requested_data done [08:59:52]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108534,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [08:59:52]process_action_free close_receipt [08:59:52]json_value_free [08:59:52]json_value_free done [08:59:52]process_json_proto returns [08:59:52]Send response to host [08:59:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108534,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [08:59:52]free response buf [08:59:52]execute_script done [08:59:52]execute_script returns [08:59:52]free content buf [08:59:52]Sock 9.Close socket [08:59:52]Sock 9.Thread stoped [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:44]accept exits with 10 [09:00:44]New connection [09:00:44]New thread 3067198820 created [09:00:44]Thread 3067342180 joined [09:00:44]Waiting for new connection... [09:00:44] Sock 10.Parse request [09:00:44]Sock 10.Check first char [09:00:44]Sock 10.First char is OK [09:00:44]request: POST /json_proto HTTP/1.0 [09:00:44]Method: POST [09:00:44]URL: /json_proto [09:00:44]Method is POST - this is cgi request [09:00:44]url: /json_proto [09:00:44]query_string will be loaded in cgi processing [09:00:44]execute_cgi json_proto POST (null) [09:00:44]execute_cgi path=json_proto method=POST [09:00:44]POST find Content-Length [09:00:44]Host: 172.17.32.69:8080 [09:00:44]Content-Length: 683 [09:00:44]Content-Type: application/json [09:00:44] [09:00:44]POST finish read [09:00:44]Found Content-Length = 683 [09:00:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 70.50, "quantity" : 14.190, "sum" : 1000.40, "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:00:44]execute_script... [09:00:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 70.50, "quantity" : 14.190, "sum" : 1000.40, "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:00:44]POST & json_proto [09:00:44]process_json_proto [09:00:44]json parsed OK: [09:00:44]protocol is kg_v1.0 [09:00:44]action value=close_receipt [09:00:44]process_action close_receipt [09:00:44]cmd_close_receipt [09:00:44]MH_GetDate [09:00:44]Write to MH i2c: F0 00 00 E3 21 F3 [09:00:44]Write i2c OK [09:00:44]MH_I2C_Read... [09:00:44]Read from MH i2c: F0 [09:00:44]MH_I2C_Read... [09:00:44]Read from MH i2c: F0 09 00 [09:00:44]MH_I2C_Read... [09:00:44]Read from MH i2c: F0 09 00 E3 21 00 3F 0E F4 65 D5 0F D3 65 BE [09:00:44]GetLastDocTimeStamp 1710493192 [09:00:44]current date 1710493247 [09:00:44]FM_GetShiftState [09:00:44]SAM_PROTO_GetShiftState [09:00:44]wFMCommunicate request_size=4 [09:00:44]MH_SAM_APDU [09:00:44]CAPDU: 80 13 01 00 [09:00:44]Write to MH i2c: E2 08 00 E4 21 80 13 01 00 00 00 00 00 82 [09:00:44]Write i2c OK [09:00:44]MH_I2C_Read... [09:00:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:44]Read from MH i2c: E2 [09:00:44]MH_I2C_Read... [09:00:44]Read from MH i2c: E2 0E 00 [09:00:44]MH_I2C_Read... [09:00:44]Read from MH i2c: E2 0E 00 E4 21 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 B6 [09:00:44]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:00:44]wFMCommunicate OK [09:00:44]SAM_PROTO_GetShiftState done [09:00:44]FM_GetShiftState done [09:00:44]opened in 1710461757 [09:00:44]opened+sec_in_day 1710548157 [09:00:44]quantity*price = 100039 [09:00:44]sum+1 = 100041 [09:00:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 58 15.03.2024 09:00 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108535 ФПД: 2934300977395 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T090047&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108535&fm=2934300977395&tin=02508201610067®Number=0000000000091911&sum=100000 [09:00:45]StoreToDocumentArchive [09:00:45]shift 320 fd 108535 [09:00:45]save to /storage/0320/doc_00108535 [09:00:45]save last doc name /storage/0320/doc_00108535 to /storage/kkm_last_doc_name [09:00:45]save OK [09:00:45]Clear old archive folders... [09:00:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:00:45]tlvbuf is B6F20330 [09:00:45]SAM_PROTO_ClearQueue [09:00:45]wFMCommunicate request_size=4 [09:00:45]MH_SAM_APDU [09:00:45]CAPDU: 80 09 00 00 [09:00:45]Write to MH i2c: E2 08 00 F1 21 80 09 00 00 00 00 00 00 84 [09:00:45]Write i2c OK [09:00:45]MH_I2C_Read... [09:00:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:00:45]Read from MH i2c: E2 [09:00:45]MH_I2C_Read... [09:00:45]Read from MH i2c: E2 03 00 [09:00:45]MH_I2C_Read... [09:00:45]Read from MH i2c: E2 03 00 F1 21 00 90 00 86 [09:00:45]RAPDU: 90 00 [09:00:45]wFMCommunicate OK [09:00:45]SAM_PROTO_ClearQueue done [09:00:45]KKMCreateOFDPacket [09:00:45]OFDProtocolAddRootSTLVToBuf [09:00:45]FM_MakeSignedData [09:00:45]FM_MakeSignedData [09:00:45]SAM_PROTO_SignData [09:00:45]wFMCommunicate request_size=4 [09:00:45]MH_SAM_APDU [09:00:45]CAPDU: 80 0D 01 02 [09:00:45]Write to MH i2c: E2 08 00 F2 21 80 0D 01 02 00 00 00 00 8C [09:00:45]Write i2c OK [09:00:45]MH_I2C_Read... [09:00:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:00:45]Read from MH i2c: E2 [09:00:45]MH_I2C_Read... [09:00:45]Read from MH i2c: E2 03 00 [09:00:45]MH_I2C_Read... [09:00:45]Read from MH i2c: E2 03 00 F2 21 00 90 00 87 [09:00:45]RAPDU: 90 00 [09:00:45]wFMCommunicate OK [09:00:45]wFMCommunicate request_size=255 [09:00:45]MH_SAM_APDU [09:00:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6E 37 00 00 00 00 00 37 04 06 00 8A 1B 00 00 00 00 13 04 06 00 C8 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 80 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 3A 00 00 00 F4 03 04 00 3F 0E F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F7 A7 01 00 35 04 06 00 02 [09:00:45]Write to MH i2c: E2 02 01 F3 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6E 37 00 00 00 00 00 37 04 06 00 8A 1B 00 00 00 00 13 04 06 00 C8 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 80 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 3A 00 00 00 F4 03 04 00 3F 0E F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F7 A7 01 00 35 04 06 00 02 00 00 61 [09:00:45]Write i2c OK [09:00:45]MH_I2C_Read... [09:00:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:45]Read from MH i2c: E2 [09:00:45]MH_I2C_Read... [09:00:45]Read from MH i2c: E2 03 00 [09:00:45]MH_I2C_Read... [09:00:45]Read from MH i2c: E2 03 00 F3 21 00 90 00 88 [09:00:45]RAPDU: 90 00 [09:00:45]wFMCommunicate OK [09:00:45]wFMCommunicate request_size=10 [09:00:45]MH_SAM_APDU [09:00:45]CAPDU: 80 0D 02 02 05 AB 31 F7 A8 F3 [09:00:45]Write to MH i2c: E2 0D 00 F4 21 80 0D 02 02 05 00 AB 31 F7 A8 F3 00 00 07 [09:00:45]Write i2c OK [09:00:45]MH_I2C_Read... [09:00:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:45]Read from MH i2c: E2 [09:00:45]MH_I2C_Read... [09:00:45]Read from MH i2c: E2 03 00 [09:00:45]MH_I2C_Read... [09:00:45]Read from MH i2c: E2 03 00 F4 21 00 90 00 89 [09:00:45]RAPDU: 90 00 [09:00:45]wFMCommunicate OK [09:00:45]wFMCommunicate request_size=4 [09:00:45]MH_SAM_APDU [09:00:45]CAPDU: 80 0D 03 02 [09:00:45]Write to MH i2c: E2 08 00 F5 21 80 0D 03 02 00 00 00 00 91 [09:00:45]Write i2c OK [09:00:45]MH_I2C_Read... [09:00:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:00:45]Read from MH i2c: E2 [09:00:45]MH_I2C_Read... [09:00:45]Read from MH i2c: E2 0B 00 [09:00:45]MH_I2C_Read... [09:00:45]Read from MH i2c: E2 0B 00 F5 21 00 24 43 79 F1 48 30 30 BB 90 00 C6 [09:00:45]RAPDU: 24 43 79 F1 48 30 30 BB 90 00 [09:00:45]wFMCommunicate OK [09:00:45]SAM_PROTO_SignData done [09:00:45]FM_MakeSignedData done [09:00:45]CreateOFDProtocolMessage [09:00:45]wFMCommunicate request_size=4 [09:00:45]MH_SAM_APDU [09:00:45]CAPDU: 80 11 00 00 [09:00:45]Write to MH i2c: E2 08 00 F6 21 80 11 00 00 00 00 00 00 91 [09:00:45]Write i2c OK [09:00:45]MH_I2C_Read... [09:00:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:45]Read from MH i2c: E2 [09:00:45]MH_I2C_Read... [09:00:45]Read from MH i2c: E2 17 00 [09:00:45]MH_I2C_Read... [09:00:45]Read from MH i2c: E2 17 00 F6 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 E5 [09:00:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:00:45]wFMCommunicate OK [09:00:45]CreateOFDProtocolMessage done [09:00:45]OFDSenderStorePacket 108535 [09:00:45]StoreOFDPacket docnum=108535 [09:00:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 30 42 07 01 B6 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6E 37 00 00 00 00 00 37 04 06 00 8A 1B 00 00 00 00 13 04 06 00 C8 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 80 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 3A 00 00 00 F4 03 04 00 3F 0E F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F7 A7 01 00 35 04 06 00 02 AB 31 F7 A8 F3 24 43 79 F1 48 30 30 BB [09:00:45]CheckFolder [09:00:45]dirname=/storage/ofd_packets [09:00:45]CheckFolder done [09:00:45]ProducePacketName [09:00:45]name=ofd_packets/00108535 [09:00:45]NVStorageSaveData ofd_packets/00108535 [09:00:45]File name is /storage/ofd_packets/00108535 [09:00:45]Write 301 bytes [09:00:45]NVStorageSaveData done [09:00:45]OFDSenderStorePacket done [09:00:45]KKMCreateOFDPacket done [09:00:45]NVStorageSaveData kkm_last_timestamp [09:00:45]File name is /storage/kkm_last_timestamp [09:00:45]Write 4 bytes [09:00:45]NVStorageSaveData done [09:00:45]ExternCall_PrintAddStr [09:00:45]wPrintStart [09:00:45]Write to MH i2c: 01 00 00 F7 21 18 [09:00:45]Write i2c OK [09:00:45]MH_I2C_Read... [09:00:45]Read from MH i2c: 01 [09:00:45]MH_I2C_Read... [09:00:45]Read from MH i2c: 01 07 00 [09:00:45]MH_I2C_Read... [09:00:45]Read from MH i2c: 01 07 00 F7 21 00 00 00 00 00 FF 0F 2D [09:00:45]RasterBufferAndPrint [09:00:45]line Счет N : (1)1040699 [09:00:45]line ИНН: 02508201610067 [09:00:45]line Контрольно-Кассовый Чек [09:00:45]line ПРОДАЖА [09:00:45]line ТРК (МРК, ГНК) : 52 [09:00:45]line Товар: 2710124500 [09:00:45]line Аи-95-К-5 [09:00:45]line 14.190 * 70.50 [09:00:45]line = 1000.40 [09:00:45]line НДС 12% НСП 1% [09:00:45]line > о реализуемом товаре [09:00:45]line ОКРУГЛЕНИЕ: -0.40 [09:00:45]line ИТОГО: 1000.00 [09:00:45]line Внесено: 1000.00 [09:00:45]line СДАЧА: 0.00 [09:00:45]line НСП 1% : 8.85 [09:00:45]line НДС 12% : 106.24 [09:00:45]line Наличными: 1000.00 [09:00:45]line Безнал.: 0.00 [09:00:45]line Место: АЗС № 15 "Партнер Нефть" [09:00:45]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [09:00:45]line СНО: Общий режим [09:00:45]line Чек 58 15.03.2024 09:00 [09:00:45]line Смена: 320 ФФД: 1.0 [09:00:45]line ЗНМ: 0300000266 [09:00:45]line РНМ: 0000000000091911 [09:00:45]line Версия ККМ: 001 [09:00:45]line ФМ: 0000000000871818 [09:00:45]line ФД: 108535 [09:00:45]line ФПД: 2934300977395 [09:00:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T090047&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108535&fm=2934300977395&tin=02508201610067®Number=0000000000091911&sum=100000 [09:00:46]OFD Sender: Processing packet 108535 [packets to send 29, broken 28] [09:00:46]ProducePacketName [09:00:46]name=ofd_packets/00108535 [09:00:46]OFD Sender: To server: pG, [09:00:46]CommunicateWithHost lk.salyk.kg:30040 [09:00:46]ConnectInit lk.salyk.kg [09:00:46]written 0, free lines is 4095 [09:00:46]Connected sock=9 [09:00:46]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 31 38 0F 01 00 00 30 42 07 01 B6 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6E 37 00 00 00 00 00 37 04 06 00 8A 1B 00 00 00 00 13 04 06 00 C8 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 80 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 3A 00 00 00 F4 03 04 00 3F 0E F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F7 A7 01 00 35 04 06 00 02 AB 31 F7 A8 F3 24 43 79 F1 48 30 30 BB [09:00:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 4F 00 00 00 57 B5 47 00 DA 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F7 A7 01 00 F4 03 04 00 E0 B9 F3 65 B6 04 01 00 00 3E 98 82 ED AB A8 79 B5 [09:00:46]CommunicateWithHost err = 0 [09:00:46]CheckOFDResponse [09:00:46]1017 (14) - 77093643461234 [09:00:46]1041 (16) - 0000000000871818 [09:00:46]1040 (4) - 108535 [09:00:46]1012 (4) - 15.03.2024 03:00 [09:00:46]1206 (1) - 0 [09:00:46]OFD Sender: Remove packet 108535 [09:00:46]ProducePacketName [09:00:46]name=ofd_packets/00108535 [09:00:46]NVStorageDeleteData [09:00:46]Write to MH i2c: 01 00 00 22 22 44 [09:00:46]Write i2c OK [09:00:46]MH_I2C_Read... [09:00:46]Read from MH i2c: 01 [09:00:46]MH_I2C_Read... [09:00:46]Read from MH i2c: 01 07 00 [09:00:46]MH_I2C_Read... [09:00:46]Read from MH i2c: 01 07 00 22 22 00 00 00 00 00 CE 0C 25 [09:00:46]RasterBufferAndPrint [09:00:46]line [09:00:46]line [09:00:46]line [09:00:46]line [09:00:46]line [09:00:46]written 0, free lines is 3285 [09:00:46]MH_Cut [09:00:46]Write to MH i2c: D1 01 00 29 22 01 1D [09:00:46]Write i2c OK [09:00:46]MH_I2C_Read... [09:00:46]Read from MH i2c: D1 [09:00:46]MH_I2C_Read... [09:00:46]Read from MH i2c: D1 01 00 [09:00:46]MH_I2C_Read... [09:00:46]Read from MH i2c: D1 01 00 29 22 00 1C [09:00:46]Write to MH i2c: 01 00 00 2A 22 4C [09:00:46]Write i2c OK [09:00:46]MH_I2C_Read... [09:00:47]OFD Sender: No OFD packet to send [09:00:47]*** Cut start [09:00:47]*** Purtial cut [09:00:47]*** Stage 1: CUTSNS_PIN = 1 [09:00:47]Read from MH i2c: 01 [09:00:47]MH_I2C_Read... [09:00:47]*** Stop cut motor [09:00:47]*** Cut end [09:00:47]Read from MH i2c: 01 07 00 [09:00:47]MH_I2C_Read... [09:00:47]Read from MH i2c: 01 07 00 2A 22 00 00 00 00 00 FF 0F 61 [09:00:47]process_action close_receipt done [09:00:47]requested_data is exist [09:00:47]produce_requested_data [09:00:47]requested_item fm.sn is exist - process it [09:00:47]wFMCommunicate request_size=4 [09:00:47]MH_SAM_APDU [09:00:47]CAPDU: 80 11 00 00 [09:00:47]Write to MH i2c: E2 08 00 2B 22 80 11 00 00 00 00 00 00 C7 [09:00:47]Write i2c OK [09:00:47]MH_I2C_Read... [09:00:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:47]Read from MH i2c: E2 [09:00:47]MH_I2C_Read... [09:00:47]Read from MH i2c: E2 17 00 [09:00:47]MH_I2C_Read... [09:00:47]Read from MH i2c: E2 17 00 2B 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 1B [09:00:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:00:47]wFMCommunicate OK [09:00:47]requested_item fd.num is exist - process it [09:00:47]SAM_PROTO_GetFieldsCounters [09:00:47]wFMCommunicate request_size=4 [09:00:47]MH_SAM_APDU [09:00:47]CAPDU: 80 13 00 00 [09:00:47]Write to MH i2c: E2 08 00 2C 22 80 13 00 00 00 00 00 00 CA [09:00:47]Write i2c OK [09:00:47]MH_I2C_Read... [09:00:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:00:48]Read from MH i2c: E2 [09:00:48]MH_I2C_Read... [09:00:48]Read from MH i2c: E2 62 00 [09:00:48]MH_I2C_Read... [09:00:48]Read from MH i2c: E2 62 00 2C 22 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 F7 A7 01 00 0E 04 04 00 40 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 76 [09:00: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 F7 A7 01 00 0E 04 04 00 40 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 [09:00:48]wFMCommunicate OK [09:00:48]SAM_PROTO_GetFieldsCounters done [09:00:48]requested_item shift.num is exist - process it [09:00:48]requested_item shift.opened is exist - process it [09:00:48]req_shift_opened [09:00:48]FM_GetShiftState [09:00:48]SAM_PROTO_GetShiftState [09:00:48]wFMCommunicate request_size=4 [09:00:48]MH_SAM_APDU [09:00:48]CAPDU: 80 13 01 00 [09:00:48]Write to MH i2c: E2 08 00 2D 22 80 13 01 00 00 00 00 00 CC [09:00:48]Write i2c OK [09:00:48]MH_I2C_Read... [09:00:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:48]Read from MH i2c: E2 [09:00:48]MH_I2C_Read... [09:00:48]Read from MH i2c: E2 0E 00 [09:00:48]MH_I2C_Read... [09:00:48]Read from MH i2c: E2 0E 00 2D 22 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 00 [09:00:48]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:00:48]wFMCommunicate OK [09:00:48]SAM_PROTO_GetShiftState done [09:00:48]FM_GetShiftState done [09:00:48]req_shift_opened done [09:00:48]requested_item shift.open_date is exist - process it [09:00:48]req_shift_open_date [09:00:48]req_shift_open_date done [09:00:48]produce_requested_data done [09:00:48]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108535,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [09:00:48]process_action_free close_receipt [09:00:48]json_value_free [09:00:48]json_value_free done [09:00:48]process_json_proto returns [09:00:48]Send response to host [09:00:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108535,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [09:00:48]free response buf [09:00:48]execute_script done [09:00:48]execute_script returns [09:00:48]free content buf [09:00:48]Sock 10.Close socket [09:00:48]Sock 10.Thread stoped [09:00:52]OFD Sender: No OFD packet to send [09:00:57]OFD Sender: No OFD packet to send [09:01:02]OFD Sender: No OFD packet to send [09:01:07]OFD Sender: No OFD packet to send [09:01:12]OFD Sender: No OFD packet to send [09:01:17]OFD Sender: No OFD packet to send [09:01:22]OFD Sender: No OFD packet to send [09:01:23]accept exits with 8 [09:01:23]New connection [09:01:23]New thread 3067342180 created [09:01:23]Thread 3067198820 joined [09:01:23]Waiting for new connection... [09:01:23] Sock 8.Parse request [09:01:23]Sock 8.Check first char [09:01:23]Sock 8.First char is OK [09:01:23]request: POST /json_proto HTTP/1.0 [09:01:23]Method: POST [09:01:23]URL: /json_proto [09:01:23]Method is POST - this is cgi request [09:01:23]url: /json_proto [09:01:23]query_string will be loaded in cgi processing [09:01:23]execute_cgi json_proto POST (null) [09:01:23]execute_cgi path=json_proto method=POST [09:01:23]POST find Content-Length [09:01:23]Host: 172.17.32.69:8080 [09:01:23]Content-Length: 1209 [09:01:23]Content-Type: application/json [09:01:23] [09:01:23]POST finish read [09:01:23]Found Content-Length = 1209 [09:01:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040698\u000A15.03.2024 08:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 20.000 x 70.50\u000A\u0418\u0422\u041E\u0413: 1410.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53242\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:23]execute_script... [09:01:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040698\u000A15.03.2024 08:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 20.000 x 70.50\u000A\u0418\u0422\u041E\u0413: 1410.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53242\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:23]POST & json_proto [09:01:23]process_json_proto [09:01:23]json parsed OK: [09:01:23]protocol is kg_v1.0 [09:01:23]action value=print_text [09:01:23]process_action print_text [09:01:23]cmd_print_text [09:01:23]ExternCall_PrintAddStr [09:01:23]wPrintStart [09:01:23]Write to MH i2c: 01 00 00 2E 22 50 [09:01:23]Write i2c OK [09:01:23]MH_I2C_Read... [09:01:23]Read from MH i2c: 01 [09:01:23]MH_I2C_Read... [09:01:23]Read from MH i2c: 01 07 00 [09:01:23]MH_I2C_Read... [09:01:23]Read from MH i2c: 01 07 00 2E 22 00 00 00 00 00 FF 0F 65 [09:01:23]RasterBufferAndPrint [09:01:23]line *****ТОВАРНЫЙ ЧЕК***** [09:01:23]line АЗС 15 [09:01:23]line Партнер нефть [09:01:23]line 02508201610067 [09:01:23]line Кассир : Максатбек у Д. [09:01:23]line Счет N : (1)1040698 [09:01:23]line 15.03.2024 08:53 [09:01:23]line ПРОДАЖА [09:01:23]line ТРК (МРК, ГНК): 12 [09:01:23]line Вид ГСМ : 2710124500 [09:01:23]line Аи-95-К-5 [09:01:23]line 20.000 x 70.50 [09:01:23]line ИТОГ: 1410.00 [09:01:23]line Тип оплаты: Талоны: Топливная Карта [09:01:23]line 53242 [09:01:23]line ______________________ [09:01:23]line (подпись) [09:01:23]written 0, free lines is 4095 [09:01:23]Write to MH i2c: 01 00 00 43 22 65 [09:01:23]Write i2c OK [09:01:23]MH_I2C_Read... [09:01:23]Read from MH i2c: 01 [09:01:23]MH_I2C_Read... [09:01:23]Read from MH i2c: 01 07 00 [09:01:23]MH_I2C_Read... [09:01:23]Read from MH i2c: 01 07 00 43 22 00 00 00 00 00 F6 0D 6F [09:01:23]RasterBufferAndPrint [09:01:23]line [09:01:23]line [09:01:23]line [09:01:23]line [09:01:23]line [09:01:23]written 0, free lines is 3576 [09:01:23]MH_Cut [09:01:23]Write to MH i2c: D1 01 00 4A 22 01 3E [09:01:23]Write i2c OK [09:01:23]MH_I2C_Read... [09:01:23]Read from MH i2c: D1 [09:01:23]MH_I2C_Read... [09:01:23]Read from MH i2c: D1 01 00 [09:01:23]MH_I2C_Read... [09:01:23]Read from MH i2c: D1 01 00 4A 22 00 3D [09:01:23]Write to MH i2c: 01 00 00 4B 22 6D [09:01:23]Write i2c OK [09:01:23]MH_I2C_Read... [09:01:23]*** Cut start [09:01:23]*** Purtial cut [09:01:23]*** Stage 1: CUTSNS_PIN = 1 [09:01:24]Read from MH i2c: 01 [09:01:24]MH_I2C_Read... [09:01:24]*** Stop cut motor [09:01:24]*** Cut end [09:01:24]Read from MH i2c: 01 07 00 [09:01:24]MH_I2C_Read... [09:01:24]Read from MH i2c: 01 07 00 4B 22 00 00 00 00 00 FF 0F 82 [09:01:24]process_action print_text done [09:01:24]requested_data is exist [09:01:24]produce_requested_data [09:01:24]requested_item fm.sn is exist - process it [09:01:24]wFMCommunicate request_size=4 [09:01:24]MH_SAM_APDU [09:01:24]CAPDU: 80 11 00 00 [09:01:24]Write to MH i2c: E2 08 00 4C 22 80 11 00 00 00 00 00 00 E8 [09:01:24]Write i2c OK [09:01:24]MH_I2C_Read... [09:01:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:24]Read from MH i2c: E2 [09:01:24]MH_I2C_Read... [09:01:24]Read from MH i2c: E2 17 00 [09:01:24]MH_I2C_Read... [09:01:24]Read from MH i2c: E2 17 00 4C 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 3C [09:01:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:01:24]wFMCommunicate OK [09:01:24]requested_item fd.num is exist - process it [09:01:24]SAM_PROTO_GetFieldsCounters [09:01:24]wFMCommunicate request_size=4 [09:01:24]MH_SAM_APDU [09:01:24]CAPDU: 80 13 00 00 [09:01:24]Write to MH i2c: E2 08 00 4D 22 80 13 00 00 00 00 00 00 EB [09:01:24]Write i2c OK [09:01:24]MH_I2C_Read... [09:01:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:24]Read from MH i2c: E2 [09:01:24]MH_I2C_Read... [09:01:24]Read from MH i2c: E2 62 00 [09:01:24]MH_I2C_Read... [09:01:24]Read from MH i2c: E2 62 00 4D 22 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 F7 A7 01 00 0E 04 04 00 40 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 97 [09:01: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 F7 A7 01 00 0E 04 04 00 40 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 [09:01:24]wFMCommunicate OK [09:01:24]SAM_PROTO_GetFieldsCounters done [09:01:24]requested_item shift.num is exist - process it [09:01:24]requested_item shift.opened is exist - process it [09:01:24]req_shift_opened [09:01:24]FM_GetShiftState [09:01:24]SAM_PROTO_GetShiftState [09:01:24]wFMCommunicate request_size=4 [09:01:24]MH_SAM_APDU [09:01:24]CAPDU: 80 13 01 00 [09:01:24]Write to MH i2c: E2 08 00 4E 22 80 13 01 00 00 00 00 00 ED [09:01:24]Write i2c OK [09:01:24]MH_I2C_Read... [09:01:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:24]Read from MH i2c: E2 [09:01:24]MH_I2C_Read... [09:01:24]Read from MH i2c: E2 0E 00 [09:01:24]MH_I2C_Read... [09:01:24]Read from MH i2c: E2 0E 00 4E 22 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 21 [09:01:24]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:01:24]wFMCommunicate OK [09:01:24]SAM_PROTO_GetShiftState done [09:01:24]FM_GetShiftState done [09:01:24]req_shift_opened done [09:01:24]requested_item shift.open_date is exist - process it [09:01:24]req_shift_open_date [09:01:24]req_shift_open_date done [09:01:24]produce_requested_data done [09:01:24]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108535,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [09:01:24]process_action_free print_text [09:01:24]json_value_free [09:01:24]json_value_free done [09:01:24]process_json_proto returns [09:01:24]Send response to host [09:01:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108535,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [09:01:24]free response buf [09:01:24]execute_script done [09:01:24]execute_script returns [09:01:24]free content buf [09:01:24]Sock 8.Close socket [09:01:24]Sock 8.Thread stoped [09:01:27]OFD Sender: No OFD packet to send [09:01:32]OFD Sender: No OFD packet to send [09:01:37]OFD Sender: No OFD packet to send [09:01:42]OFD Sender: No OFD packet to send [09:01:47]OFD Sender: No OFD packet to send [09:01:52]OFD Sender: No OFD packet to send [09:01:54]accept exits with 9 [09:01:54]New connection [09:01:54]New thread 3067198820 created [09:01:54]Thread 3067342180 joined [09:01:54]Waiting for new connection... [09:01:54] Sock 9.Parse request [09:01:54]Sock 9.Check first char [09:01:54]Sock 9.First char is OK [09:01:54]request: POST /json_proto HTTP/1.0 [09:01:54]Method: POST [09:01:54]URL: /json_proto [09:01:54]Method is POST - this is cgi request [09:01:54]url: /json_proto [09:01:54]query_string will be loaded in cgi processing [09:01:54]execute_cgi json_proto POST (null) [09:01:54]execute_cgi path=json_proto method=POST [09:01:54]POST find Content-Length [09:01:54]Host: 172.17.32.69:8080 [09:01:54]Content-Length: 676 [09:01:54]Content-Type: application/json [09:01:54] [09:01:54]POST finish read [09:01:54]Found Content-Length = 676 [09:01:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:01:54]execute_script... [09:01: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)1040700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:01:54]POST & json_proto [09:01:54]process_json_proto [09:01:54]json parsed OK: [09:01:54]protocol is kg_v1.0 [09:01:54]action value=close_receipt [09:01:54]process_action close_receipt [09:01:54]cmd_close_receipt [09:01:54]MH_GetDate [09:01:54]Write to MH i2c: F0 00 00 4F 22 60 [09:01:54]Write i2c OK [09:01:54]MH_I2C_Read... [09:01:54]Read from MH i2c: F0 [09:01:54]MH_I2C_Read... [09:01:54]Read from MH i2c: F0 09 00 [09:01:54]MH_I2C_Read... [09:01:54]Read from MH i2c: F0 09 00 4F 22 00 85 0E F4 65 D5 0F D3 65 71 [09:01:54]GetLastDocTimeStamp 1710493247 [09:01:54]current date 1710493317 [09:01:54]FM_GetShiftState [09:01:54]SAM_PROTO_GetShiftState [09:01:54]wFMCommunicate request_size=4 [09:01:54]MH_SAM_APDU [09:01:54]CAPDU: 80 13 01 00 [09:01:54]Write to MH i2c: E2 08 00 50 22 80 13 01 00 00 00 00 00 EF [09:01:54]Write i2c OK [09:01:54]MH_I2C_Read... [09:01:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:54]Read from MH i2c: E2 [09:01:54]MH_I2C_Read... [09:01:54]Read from MH i2c: E2 0E 00 [09:01:54]MH_I2C_Read... [09:01:54]Read from MH i2c: E2 0E 00 50 22 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 23 [09:01:54]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:01:54]wFMCommunicate OK [09:01:54]SAM_PROTO_GetShiftState done [09:01:54]FM_GetShiftState done [09:01:54]opened in 1710461757 [09:01:54]opened+sec_in_day 1710548157 [09:01:54]quantity*price = 100011 [09:01:54]sum+1 = 100012 [09:01:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 59 15.03.2024 09:01 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108536 ФПД: 71198492908980 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T090157&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108536&fm=71198492908980&tin=02508201610067®Number=0000000000091911&sum=100000 [09:01:55]StoreToDocumentArchive [09:01:55]shift 320 fd 108536 [09:01:55]save to /storage/0320/doc_00108536 [09:01:55]save last doc name /storage/0320/doc_00108536 to /storage/kkm_last_doc_name [09:01:55]save OK [09:01:55]Clear old archive folders... [09:01:55]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:01:55]tlvbuf is 00121610 [09:01:55]SAM_PROTO_ClearQueue [09:01:55]wFMCommunicate request_size=4 [09:01:55]MH_SAM_APDU [09:01:55]CAPDU: 80 09 00 00 [09:01:55]Write to MH i2c: E2 08 00 5D 22 80 09 00 00 00 00 00 00 F1 [09:01:55]Write i2c OK [09:01:55]MH_I2C_Read... [09:01:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:01:55]Read from MH i2c: E2 [09:01:55]MH_I2C_Read... [09:01:55]Read from MH i2c: E2 03 00 [09:01:55]MH_I2C_Read... [09:01:55]Read from MH i2c: E2 03 00 5D 22 00 90 00 F3 [09:01:55]RAPDU: 90 00 [09:01:55]wFMCommunicate OK [09:01:55]SAM_PROTO_ClearQueue done [09:01:55]KKMCreateOFDPacket [09:01:55]OFDProtocolAddRootSTLVToBuf [09:01:55]FM_MakeSignedData [09:01:55]FM_MakeSignedData [09:01:55]SAM_PROTO_SignData [09:01:55]wFMCommunicate request_size=4 [09:01:55]MH_SAM_APDU [09:01:55]CAPDU: 80 0D 01 02 [09:01:55]Write to MH i2c: E2 08 00 5E 22 80 0D 01 02 00 00 00 00 F9 [09:01:55]Write i2c OK [09:01:55]MH_I2C_Read... [09:01:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:01:55]Read from MH i2c: E2 [09:01:55]MH_I2C_Read... [09:01:55]Read from MH i2c: E2 03 00 [09:01:55]MH_I2C_Read... [09:01:55]Read from MH i2c: E2 03 00 5E 22 00 90 00 F4 [09:01:55]RAPDU: 90 00 [09:01:55]wFMCommunicate OK [09:01:55]wFMCommunicate request_size=255 [09:01:55]MH_SAM_APDU [09:01:55]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 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 3B 00 00 00 F4 03 04 00 85 0E F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F8 A7 01 00 35 04 06 00 [09:01:55]Write to MH i2c: E2 02 01 5F 22 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 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 3B 00 00 00 F4 03 04 00 85 0E F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F8 A7 01 00 35 04 06 00 00 00 D4 [09:01:55]Write i2c OK [09:01:55]MH_I2C_Read... [09:01:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:55]Read from MH i2c: E2 [09:01:55]MH_I2C_Read... [09:01:55]Read from MH i2c: E2 03 00 [09:01:55]MH_I2C_Read... [09:01:55]Read from MH i2c: E2 03 00 5F 22 00 90 00 F5 [09:01:55]RAPDU: 90 00 [09:01:55]wFMCommunicate OK [09:01:55]wFMCommunicate request_size=11 [09:01:55]MH_SAM_APDU [09:01:55]CAPDU: 80 0D 02 02 06 40 C1 30 E0 DD B4 [09:01:55]Write to MH i2c: E2 0E 00 60 22 80 0D 02 02 06 00 40 C1 30 E0 DD B4 00 00 AA [09:01:55]Write i2c OK [09:01:55]MH_I2C_Read... [09:01:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:55]Read from MH i2c: E2 [09:01:55]MH_I2C_Read... [09:01:55]Read from MH i2c: E2 03 00 [09:01:55]MH_I2C_Read... [09:01:55]Read from MH i2c: E2 03 00 60 22 00 90 00 F6 [09:01:55]RAPDU: 90 00 [09:01:55]wFMCommunicate OK [09:01:55]wFMCommunicate request_size=4 [09:01:55]MH_SAM_APDU [09:01:55]CAPDU: 80 0D 03 02 [09:01:55]Write to MH i2c: E2 08 00 61 22 80 0D 03 02 00 00 00 00 FE [09:01:55]Write i2c OK [09:01:55]MH_I2C_Read... [09:01:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:01:55]Read from MH i2c: E2 [09:01:55]MH_I2C_Read... [09:01:55]Read from MH i2c: E2 0B 00 [09:01:55]MH_I2C_Read... [09:01:55]Read from MH i2c: E2 0B 00 61 22 00 4B F2 BB DF DB 49 0E BD 90 00 C5 [09:01:55]RAPDU: 4B F2 BB DF DB 49 0E BD 90 00 [09:01:55]wFMCommunicate OK [09:01:55]SAM_PROTO_SignData done [09:01:55]FM_MakeSignedData done [09:01:55]CreateOFDProtocolMessage [09:01:55]wFMCommunicate request_size=4 [09:01:55]MH_SAM_APDU [09:01:55]CAPDU: 80 11 00 00 [09:01:55]Write to MH i2c: E2 08 00 62 22 80 11 00 00 00 00 00 00 FE [09:01:55]Write i2c OK [09:01:55]MH_I2C_Read... [09:01:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:55]Read from MH i2c: E2 [09:01:55]MH_I2C_Read... [09:01:55]Read from MH i2c: E2 17 00 [09:01:55]MH_I2C_Read... [09:01:55]Read from MH i2c: E2 17 00 62 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 52 [09:01:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:01:55]wFMCommunicate OK [09:01:55]CreateOFDProtocolMessage done [09:01:55]OFDSenderStorePacket 108536 [09:01:55]StoreOFDPacket docnum=108536 [09:01:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 01 00 00 9C 08 08 01 CD 96 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 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 3B 00 00 00 F4 03 04 00 85 0E F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F8 A7 01 00 35 04 06 00 40 C1 30 E0 DD B4 4B F2 BB DF DB 49 0E BD [09:01:55]CheckFolder [09:01:55]dirname=/storage/ofd_packets [09:01:55]CheckFolder done [09:01:55]ProducePacketName [09:01:55]name=ofd_packets/00108536 [09:01:55]NVStorageSaveData ofd_packets/00108536 [09:01:55]File name is /storage/ofd_packets/00108536 [09:01:55]Write 302 bytes [09:01:55]NVStorageSaveData done [09:01:55]OFDSenderStorePacket done [09:01:55]KKMCreateOFDPacket done [09:01:55]NVStorageSaveData kkm_last_timestamp [09:01:55]File name is /storage/kkm_last_timestamp [09:01:55]Write 4 bytes [09:01:55]NVStorageSaveData done [09:01:55]ExternCall_PrintAddStr [09:01:55]wPrintStart [09:01:55]Write to MH i2c: 01 00 00 63 22 85 [09:01:55]Write i2c OK [09:01:55]MH_I2C_Read... [09:01:55]Read from MH i2c: 01 [09:01:55]MH_I2C_Read... [09:01:55]Read from MH i2c: 01 07 00 [09:01:55]MH_I2C_Read... [09:01:55]Read from MH i2c: 01 07 00 63 22 00 00 00 00 00 FF 0F 9A [09:01:55]RasterBufferAndPrint [09:01:55]line Счет N : (1)1040700 [09:01:55]line ИНН: 02508201610067 [09:01:55]line Контрольно-Кассовый Чек [09:01:55]line ПРОДАЖА [09:01:55]line ТРК (МРК, ГНК) : 71 [09:01:55]line Товар: 2710124130 [09:01:55]line Super-92-К-5 [09:01:55]line 15.900 * 62.90 [09:01:55]line = 1000.11 [09:01:55]line НДС 12% НСП 1% [09:01:55]line > о реализуемом товаре [09:01:55]line ОКРУГЛЕНИЕ: -0.11 [09:01:55]line ИТОГО: 1000.00 [09:01:55]line Внесено: 1000.00 [09:01:55]line СДАЧА: 0.00 [09:01:55]line НСП 1% : 8.85 [09:01:55]line НДС 12% : 106.21 [09:01:55]line Наличными: 1000.00 [09:01:55]line Безнал.: 0.00 [09:01:55]line Место: АЗС № 15 "Партнер Нефть" [09:01:55]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [09:01:55]line СНО: Общий режим [09:01:55]line Чек 59 15.03.2024 09:01 [09:01:55]line Смена: 320 ФФД: 1.0 [09:01:55]line ЗНМ: 0300000266 [09:01:55]line РНМ: 0000000000091911 [09:01:55]line Версия ККМ: 001 [09:01:55]line ФМ: 0000000000871818 [09:01:55]line ФД: 108536 [09:01:55]line ФПД: 71198492908980 [09:01:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T090157&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108536&fm=71198492908980&tin=02508201610067®Number=0000000000091911&sum=100000 [09:01:56]OFD Sender: Processing packet 108536 [packets to send 29, broken 28] [09:01:56]ProducePacketName [09:01:56]name=ofd_packets/00108536 [09:01:56]OFD Sender: To server: pG, [09:01:56]CommunicateWithHost lk.salyk.kg:30040 [09:01:56]ConnectInit lk.salyk.kg [09:01:56]written 0, free lines is 4095 [09:01:56]Connected sock=8 [09:01: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 31 38 10 01 00 00 9C 08 08 01 CD 96 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 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 3B 00 00 00 F4 03 04 00 85 0E F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F8 A7 01 00 35 04 06 00 40 C1 30 E0 DD B4 4B F2 BB DF DB 49 0E BD [09:01: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 31 38 4F 00 00 00 FA 06 47 00 75 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 31 38 10 04 04 00 F8 A7 01 00 F4 03 04 00 26 BA F3 65 B6 04 01 00 00 97 81 00 D0 A3 A2 5E A9 [09:01:56]CommunicateWithHost err = 0 [09:01:56]CheckOFDResponse [09:01:56]1017 (14) - 77093643461234 [09:01:56]1041 (16) - 0000000000871818 [09:01:56]1040 (4) - 108536 [09:01:56]1012 (4) - 15.03.2024 03:01 [09:01:56]1206 (1) - 0 [09:01:56]OFD Sender: Remove packet 108536 [09:01:56]ProducePacketName [09:01:56]name=ofd_packets/00108536 [09:01:56]NVStorageDeleteData [09:01:56]Write to MH i2c: 01 00 00 8E 22 B0 [09:01:56]Write i2c OK [09:01:56]MH_I2C_Read... [09:01:56]Read from MH i2c: 01 [09:01:56]MH_I2C_Read... [09:01:56]Read from MH i2c: 01 07 00 [09:01:56]MH_I2C_Read... [09:01:56]Read from MH i2c: 01 07 00 8E 22 00 00 00 00 00 E2 0C A5 [09:01:56]RasterBufferAndPrint [09:01:56]line [09:01:56]line [09:01:56]line [09:01:56]line [09:01:56]line [09:01:56]written 0, free lines is 3307 [09:01:56]MH_Cut [09:01:56]Write to MH i2c: D1 01 00 95 22 01 89 [09:01:56]Write i2c OK [09:01:56]MH_I2C_Read... [09:01:56]Read from MH i2c: D1 [09:01:56]MH_I2C_Read... [09:01:56]Read from MH i2c: D1 01 00 [09:01:56]MH_I2C_Read... [09:01:56]Read from MH i2c: D1 01 00 95 22 00 88 [09:01:56]Write to MH i2c: 01 00 00 96 22 B8 [09:01:56]Write i2c OK [09:01:56]MH_I2C_Read... [09:01:57]OFD Sender: No OFD packet to send [09:01:57]*** Cut start [09:01:57]*** Purtial cut [09:01:57]*** Stage 1: CUTSNS_PIN = 1 [09:01:57]Read from MH i2c: 01 [09:01:57]MH_I2C_Read... [09:01:57]*** Stop cut motor [09:01:57]*** Cut end [09:01:57]Read from MH i2c: 01 07 00 [09:01:57]MH_I2C_Read... [09:01:57]Read from MH i2c: 01 07 00 96 22 00 00 00 00 00 FF 0F CD [09:01:57]process_action close_receipt done [09:01:57]requested_data is exist [09:01:57]produce_requested_data [09:01:57]requested_item fm.sn is exist - process it [09:01:57]wFMCommunicate request_size=4 [09:01:57]MH_SAM_APDU [09:01:57]CAPDU: 80 11 00 00 [09:01:57]Write to MH i2c: E2 08 00 97 22 80 11 00 00 00 00 00 00 33 [09:01:57]Write i2c OK [09:01:57]MH_I2C_Read... [09:01:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:57]Read from MH i2c: E2 [09:01:57]MH_I2C_Read... [09:01:57]Read from MH i2c: E2 17 00 [09:01:57]MH_I2C_Read... [09:01:57]Read from MH i2c: E2 17 00 97 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 87 [09:01:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:01:57]wFMCommunicate OK [09:01:57]requested_item fd.num is exist - process it [09:01:57]SAM_PROTO_GetFieldsCounters [09:01:57]wFMCommunicate request_size=4 [09:01:57]MH_SAM_APDU [09:01:57]CAPDU: 80 13 00 00 [09:01:57]Write to MH i2c: E2 08 00 98 22 80 13 00 00 00 00 00 00 36 [09:01:57]Write i2c OK [09:01:57]MH_I2C_Read... [09:01:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:58]Read from MH i2c: E2 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: E2 62 00 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: E2 62 00 98 22 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 F8 A7 01 00 0E 04 04 00 40 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 E6 [09:01: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 F8 A7 01 00 0E 04 04 00 40 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 [09:01:58]wFMCommunicate OK [09:01:58]SAM_PROTO_GetFieldsCounters done [09:01:58]requested_item shift.num is exist - process it [09:01:58]requested_item shift.opened is exist - process it [09:01:58]req_shift_opened [09:01:58]FM_GetShiftState [09:01:58]SAM_PROTO_GetShiftState [09:01:58]wFMCommunicate request_size=4 [09:01:58]MH_SAM_APDU [09:01:58]CAPDU: 80 13 01 00 [09:01:58]Write to MH i2c: E2 08 00 99 22 80 13 01 00 00 00 00 00 38 [09:01:58]Write i2c OK [09:01:58]MH_I2C_Read... [09:01:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:58]Read from MH i2c: E2 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: E2 0E 00 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: E2 0E 00 99 22 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 6C [09:01:58]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:01:58]wFMCommunicate OK [09:01:58]SAM_PROTO_GetShiftState done [09:01:58]FM_GetShiftState done [09:01:58]req_shift_opened done [09:01:58]requested_item shift.open_date is exist - process it [09:01:58]req_shift_open_date [09:01:58]req_shift_open_date done [09:01:58]produce_requested_data done [09:01:58]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108536,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [09:01:58]process_action_free close_receipt [09:01:58]json_value_free [09:01:58]json_value_free done [09:01:58]process_json_proto returns [09:01:58]Send response to host [09:01:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108536,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [09:01:58]free response buf [09:01:58]execute_script done [09:01:58]execute_script returns [09:01:58]free content buf [09:01:58]Sock 9.Close socket [09:01:58]Sock 9.Thread stoped [09:02:02]OFD Sender: No OFD packet to send [09:02:07]OFD Sender: No OFD packet to send [09:02:12]OFD Sender: No OFD packet to send [09:02:17]OFD Sender: No OFD packet to send [09:02:22]OFD Sender: No OFD packet to send [09:02:27]OFD Sender: No OFD packet to send [09:02:32]OFD Sender: No OFD packet to send [09:02:37]OFD Sender: No OFD packet to send [09:02:42]OFD Sender: No OFD packet to send [09:02:47]OFD Sender: No OFD packet to send [09:02:52]OFD Sender: No OFD packet to send [09:02:57]OFD Sender: No OFD packet to send [09:03:02]OFD Sender: No OFD packet to send [09:03:07]OFD Sender: No OFD packet to send [09:03:12]OFD Sender: No OFD packet to send [09:03:17]OFD Sender: No OFD packet to send [09:03:19]int [09:03:19]Write to MH i2c: 01 00 00 9A 22 BC [09:03:19]*** FLAG_PRN_KEY set [09:03:19]Write i2c OK [09:03:19]MH_I2C_Read... [09:03:19]Read from MH i2c: 01 [09:03:19]MH_I2C_Read... [09:03:19]Read from MH i2c: 01 07 00 [09:03:19]MH_I2C_Read... [09:03:19]Read from MH i2c: 01 07 00 9A 22 00 08 00 00 00 FF 0F D9 [09:03:19]state=0 [09:03:19]Key pressed [09:03:19]Feed [09:03:19]Write to MH i2c: D8 00 00 9B 22 94 [09:03:19]Write i2c OK [09:03:19]MH_I2C_Read... [09:03:19]Read from MH i2c: D8 [09:03:19]MH_I2C_Read... [09:03:19]Read from MH i2c: D8 01 00 [09:03:19]MH_I2C_Read... [09:03:19]Read from MH i2c: D8 01 00 9B 22 00 95 [09:03:19]int [09:03:19]Write to MH i2c: 01 00 00 9C 22 BE [09:03:19]Write i2c OK [09:03:19]MH_I2C_Read... [09:03:19]Read from MH i2c: 01 [09:03:19]MH_I2C_Read... [09:03:19]Read from MH i2c: 01 07 00 [09:03:19]MH_I2C_Read... [09:03:19]Read from MH i2c: 01 07 00 9C 22 00 48 00 00 00 3C 00 49 [09:03:19]state=2 [09:03:19]Key pressed [09:03:19]int [09:03:19]Write to MH i2c: 01 00 00 9D 22 BF [09:03:19]*** FLAG_PRN_KEY reset [09:03:19]Write i2c OK [09:03:19]MH_I2C_Read... [09:03:19]Read from MH i2c: 01 [09:03:19]MH_I2C_Read... [09:03:19]Read from MH i2c: 01 07 00 [09:03:19]MH_I2C_Read... [09:03:19]Read from MH i2c: 01 07 00 9D 22 00 00 00 00 00 FB 0F D0 [09:03:19]state=2 [09:03:19]Stop feed [09:03:22]OFD Sender: No OFD packet to send [09:03:27]OFD Sender: No OFD packet to send [09:03:32]OFD Sender: No OFD packet to send [09:03:37]OFD Sender: No OFD packet to send [09:03:42]OFD Sender: No OFD packet to send [09:03:47]OFD Sender: No OFD packet to send [09:03:52]OFD Sender: No OFD packet to send [09:03:57]OFD Sender: No OFD packet to send [09:04:02]OFD Sender: No OFD packet to send [09:04:07]OFD Sender: No OFD packet to send [09:04:12]OFD Sender: No OFD packet to send [09:04:17]OFD Sender: No OFD packet to send [09:04:22]OFD Sender: No OFD packet to send [09:04:27]OFD Sender: No OFD packet to send [09:04:32]OFD Sender: No OFD packet to send [09:04:37]OFD Sender: No OFD packet to send [09:04:42]OFD Sender: No OFD packet to send [09:04:47]OFD Sender: No OFD packet to send [09:04:52]OFD Sender: No OFD packet to send [09:04:57]OFD Sender: No OFD packet to send [09:05:02]OFD Sender: No OFD packet to send [09:05:07]OFD Sender: No OFD packet to send [09:05:12]OFD Sender: No OFD packet to send [09:05:17]OFD Sender: No OFD packet to send [09:05:22]OFD Sender: No OFD packet to send [09:05:27]OFD Sender: No OFD packet to send [09:05:32]OFD Sender: No OFD packet to send [09:05:37]OFD Sender: No OFD packet to send [09:05:42]OFD Sender: No OFD packet to send [09:05:44]accept exits with 10 [09:05:44]New connection [09:05:44]New thread 3067342180 created [09:05:44]Thread 3067198820 joined [09:05:44]Waiting for new connection... [09:05:44] Sock 10.Parse request [09:05:44]Sock 10.Check first char [09:05:44]Sock 10.First char is OK [09:05:44]request: POST /json_proto HTTP/1.0 [09:05:44]Method: POST [09:05:44]URL: /json_proto [09:05:44]Method is POST - this is cgi request [09:05:44]url: /json_proto [09:05:44]query_string will be loaded in cgi processing [09:05:44]execute_cgi json_proto POST (null) [09:05:44]execute_cgi path=json_proto method=POST [09:05:44]POST find Content-Length [09:05:44]Host: 172.17.32.69:8080 [09:05:44]Content-Length: 1208 [09:05:44]Content-Type: application/json [09:05:44] [09:05:44]POST finish read [09:05:44]Found Content-Length = 1208 [09:05:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040701\u000A15.03.2024 08:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 73\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 619.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03293\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:44]execute_script... [09:05:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040701\u000A15.03.2024 08:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 73\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 619.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03293\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:44]POST & json_proto [09:05:44]process_json_proto [09:05:44]json parsed OK: [09:05:44]protocol is kg_v1.0 [09:05:44]action value=print_text [09:05:44]process_action print_text [09:05:44]cmd_print_text [09:05:44]ExternCall_PrintAddStr [09:05:44]wPrintStart [09:05:44]Write to MH i2c: 01 00 00 9E 22 C0 [09:05:44]Write i2c OK [09:05:44]MH_I2C_Read... [09:05:44]Read from MH i2c: 01 [09:05:44]MH_I2C_Read... [09:05:44]Read from MH i2c: 01 07 00 [09:05:44]MH_I2C_Read... [09:05:44]Read from MH i2c: 01 07 00 9E 22 00 00 00 00 00 FF 0F D5 [09:05:44]RasterBufferAndPrint [09:05:44]line *****ТОВАРНЫЙ ЧЕК***** [09:05:44]line АЗС 15 [09:05:44]line Партнер нефть [09:05:44]line 02508201610067 [09:05:44]line Кассир : Максатбек у Д. [09:05:44]line Счет N : (1)1040701 [09:05:44]line 15.03.2024 08:57 [09:05:44]line ПРОДАЖА [09:05:44]line ТРК (МРК, ГНК): 73 [09:05:44]line Вид ГСМ : 2710124130 [09:05:44]line Аи-92-К-5 [09:05:44]line 10.000 x 61.90 [09:05:44]line ИТОГ: 619.00 [09:05:44]line Тип оплаты: Талоны: Топливная Карта [09:05:44]line 03293 [09:05:44]line ______________________ [09:05:44]line (подпись) [09:05:44]written 0, free lines is 4095 [09:05:45]Write to MH i2c: 01 00 00 B3 22 D5 [09:05:45]Write i2c OK [09:05:45]MH_I2C_Read... [09:05:45]Read from MH i2c: 01 [09:05:45]MH_I2C_Read... [09:05:45]Read from MH i2c: 01 07 00 [09:05:45]MH_I2C_Read... [09:05:45]Read from MH i2c: 01 07 00 B3 22 00 00 00 00 00 F9 0D E2 [09:05:45]RasterBufferAndPrint [09:05:45]line [09:05:45]line [09:05:45]line [09:05:45]line [09:05:45]line [09:05:45]written 0, free lines is 3579 [09:05:45]MH_Cut [09:05:45]Write to MH i2c: D1 01 00 BA 22 01 AE [09:05:45]Write i2c OK [09:05:45]MH_I2C_Read... [09:05:45]Read from MH i2c: D1 [09:05:45]MH_I2C_Read... [09:05:45]Read from MH i2c: D1 01 00 [09:05:45]MH_I2C_Read... [09:05:45]Read from MH i2c: D1 01 00 BA 22 00 AD [09:05:45]Write to MH i2c: 01 00 00 BB 22 DD [09:05:45]Write i2c OK [09:05:45]MH_I2C_Read... [09:05:45]*** Cut start [09:05:45]*** Purtial cut [09:05:45]*** Stage 1: CUTSNS_PIN = 1 [09:05:46]Read from MH i2c: 01 [09:05:46]MH_I2C_Read... [09:05:46]*** Stop cut motor [09:05:46]*** Cut end [09:05:46]Read from MH i2c: 01 07 00 [09:05:46]MH_I2C_Read... [09:05:46]Read from MH i2c: 01 07 00 BB 22 00 00 00 00 00 FF 0F F2 [09:05:46]process_action print_text done [09:05:46]requested_data is exist [09:05:46]produce_requested_data [09:05:46]requested_item fm.sn is exist - process it [09:05:46]wFMCommunicate request_size=4 [09:05:46]MH_SAM_APDU [09:05:46]CAPDU: 80 11 00 00 [09:05:46]Write to MH i2c: E2 08 00 BC 22 80 11 00 00 00 00 00 00 58 [09:05:46]Write i2c OK [09:05:46]MH_I2C_Read... [09:05:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:46]Read from MH i2c: E2 [09:05:46]MH_I2C_Read... [09:05:46]Read from MH i2c: E2 17 00 [09:05:46]MH_I2C_Read... [09:05:46]Read from MH i2c: E2 17 00 BC 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 AC [09:05:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:05:46]wFMCommunicate OK [09:05:46]requested_item fd.num is exist - process it [09:05:46]SAM_PROTO_GetFieldsCounters [09:05:46]wFMCommunicate request_size=4 [09:05:46]MH_SAM_APDU [09:05:46]CAPDU: 80 13 00 00 [09:05:46]Write to MH i2c: E2 08 00 BD 22 80 13 00 00 00 00 00 00 5B [09:05:46]Write i2c OK [09:05:46]MH_I2C_Read... [09:05:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:05:46]Read from MH i2c: E2 [09:05:46]MH_I2C_Read... [09:05:46]Read from MH i2c: E2 62 00 [09:05:46]MH_I2C_Read... [09:05:46]Read from MH i2c: E2 62 00 BD 22 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 F8 A7 01 00 0E 04 04 00 40 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 0B [09: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 F8 A7 01 00 0E 04 04 00 40 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 [09:05:46]wFMCommunicate OK [09:05:46]SAM_PROTO_GetFieldsCounters done [09:05:46]requested_item shift.num is exist - process it [09:05:46]requested_item shift.opened is exist - process it [09:05:46]req_shift_opened [09:05:46]FM_GetShiftState [09:05:46]SAM_PROTO_GetShiftState [09:05:46]wFMCommunicate request_size=4 [09:05:46]MH_SAM_APDU [09:05:46]CAPDU: 80 13 01 00 [09:05:46]Write to MH i2c: E2 08 00 BE 22 80 13 01 00 00 00 00 00 5D [09:05:46]Write i2c OK [09:05:46]MH_I2C_Read... [09:05:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:46]Read from MH i2c: E2 [09:05:46]MH_I2C_Read... [09:05:46]Read from MH i2c: E2 0E 00 [09:05:46]MH_I2C_Read... [09:05:46]Read from MH i2c: E2 0E 00 BE 22 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 91 [09:05:46]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:05:46]wFMCommunicate OK [09:05:46]SAM_PROTO_GetShiftState done [09:05:46]FM_GetShiftState done [09:05:46]req_shift_opened done [09:05:46]requested_item shift.open_date is exist - process it [09:05:46]req_shift_open_date [09:05:46]req_shift_open_date done [09:05:46]produce_requested_data done [09:05:46]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108536,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [09:05:46]process_action_free print_text [09:05:46]json_value_free [09:05:46]json_value_free done [09:05:46]process_json_proto returns [09:05:46]Send response to host [09:05:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108536,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [09:05:46]free response buf [09:05:46]execute_script done [09:05:46]execute_script returns [09:05:46]free content buf [09:05:46]Sock 10.Close socket [09:05:46]Sock 10.Thread stoped [09:05:47]OFD Sender: No OFD packet to send [09:05:52]OFD Sender: No OFD packet to send [09:05:57]OFD Sender: No OFD packet to send [09:06:02]OFD Sender: No OFD packet to send [09:06:06]accept exits with 9 [09:06:06]New connection [09:06:06]New thread 3067198820 created [09:06:06]Thread 3067342180 joined [09:06:06]Waiting for new connection... [09:06:06] Sock 9.Parse request [09:06:06]Sock 9.Check first char [09:06:06]Sock 9.First char is OK [09:06:06]request: POST /json_proto HTTP/1.0 [09:06:06]Method: POST [09:06:06]URL: /json_proto [09:06:06]Method is POST - this is cgi request [09:06:06]url: /json_proto [09:06:06]query_string will be loaded in cgi processing [09:06:06]execute_cgi json_proto POST (null) [09:06:06]execute_cgi path=json_proto method=POST [09:06:06]POST find Content-Length [09:06:06]Host: 172.17.32.69:8080 [09:06:06]Content-Length: 676 [09:06:06]Content-Type: application/json [09:06:06] [09:06:06]POST finish read [09:06:06]Found Content-Length = 676 [09:06:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040702", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:06:06]execute_script... [09:06:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040702", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:06:06]POST & json_proto [09:06:06]process_json_proto [09:06:06]json parsed OK: [09:06:06]protocol is kg_v1.0 [09:06:06]action value=close_receipt [09:06:06]process_action close_receipt [09:06:06]cmd_close_receipt [09:06:06]MH_GetDate [09:06:06]Write to MH i2c: F0 00 00 BF 22 D0 [09:06:06]Write i2c OK [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: F0 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: F0 09 00 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: F0 09 00 BF 22 00 81 0F F4 65 D5 0F D3 65 DE [09:06:06]GetLastDocTimeStamp 1710493317 [09:06:06]current date 1710493569 [09:06:06]FM_GetShiftState [09:06:06]SAM_PROTO_GetShiftState [09:06:06]wFMCommunicate request_size=4 [09:06:06]MH_SAM_APDU [09:06:06]CAPDU: 80 13 01 00 [09:06:06]Write to MH i2c: E2 08 00 C0 22 80 13 01 00 00 00 00 00 5F [09:06:06]Write i2c OK [09:06:06]MH_I2C_Read... [09:06:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:06]Read from MH i2c: E2 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 0E 00 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 0E 00 C0 22 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 93 [09:06:06]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:06:06]wFMCommunicate OK [09:06:06]SAM_PROTO_GetShiftState done [09:06:06]FM_GetShiftState done [09:06:06]opened in 1710461757 [09:06:06]opened+sec_in_day 1710548157 [09:06:06]quantity*price = 100011 [09:06:06]sum+1 = 100012 [09:06:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 60 15.03.2024 09:06 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108537 ФПД: 26586590737665 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T090609&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108537&fm=26586590737665&tin=02508201610067®Number=0000000000091911&sum=100000 [09:06:07]StoreToDocumentArchive [09:06:07]shift 320 fd 108537 [09:06:07]save to /storage/0320/doc_00108537 [09:06:07]save last doc name /storage/0320/doc_00108537 to /storage/kkm_last_doc_name [09:06:07]save OK [09:06:07]Clear old archive folders... [09:06:07]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:06:07]tlvbuf is 000D46C0 [09:06:07]SAM_PROTO_ClearQueue [09:06:07]wFMCommunicate request_size=4 [09:06:07]MH_SAM_APDU [09:06:07]CAPDU: 80 09 00 00 [09:06:07]Write to MH i2c: E2 08 00 CD 22 80 09 00 00 00 00 00 00 61 [09:06:07]Write i2c OK [09:06:07]MH_I2C_Read... [09:06:07]Read from MH i2c: E2 [09:06:07]MH_I2C_Read... [09:06:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:06:07]Read from MH i2c: E2 03 00 [09:06:07]MH_I2C_Read... [09:06:07]Read from MH i2c: E2 03 00 CD 22 00 90 00 63 [09:06:07]RAPDU: 90 00 [09:06:07]wFMCommunicate OK [09:06:07]SAM_PROTO_ClearQueue done [09:06:07]KKMCreateOFDPacket [09:06:07]OFDProtocolAddRootSTLVToBuf [09:06:07]FM_MakeSignedData [09:06:07]FM_MakeSignedData [09:06:07]SAM_PROTO_SignData [09:06:07]wFMCommunicate request_size=4 [09:06:07]MH_SAM_APDU [09:06:07]CAPDU: 80 0D 01 02 [09:06:07]Write to MH i2c: E2 08 00 CE 22 80 0D 01 02 00 00 00 00 69 [09:06:07]Write i2c OK [09:06:07]MH_I2C_Read... [09:06:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:06:07]Read from MH i2c: E2 [09:06:07]MH_I2C_Read... [09:06:07]Read from MH i2c: E2 03 00 [09:06:07]MH_I2C_Read... [09:06:07]Read from MH i2c: E2 03 00 CE 22 00 90 00 64 [09:06:07]RAPDU: 90 00 [09:06:07]wFMCommunicate OK [09:06:07]wFMCommunicate request_size=255 [09:06:07]MH_SAM_APDU [09:06:07]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 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 3C 00 00 00 F4 03 04 00 81 0F F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F9 A7 01 00 35 04 06 00 [09:06:07]Write to MH i2c: E2 02 01 CF 22 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 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 3C 00 00 00 F4 03 04 00 81 0F F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F9 A7 01 00 35 04 06 00 00 00 43 [09:06:07]Write i2c OK [09:06:07]MH_I2C_Read... [09:06:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:07]Read from MH i2c: E2 [09:06:07]MH_I2C_Read... [09:06:07]Read from MH i2c: E2 03 00 [09:06:07]MH_I2C_Read... [09:06:07]Read from MH i2c: E2 03 00 CF 22 00 90 00 65 [09:06:07]RAPDU: 90 00 [09:06:07]wFMCommunicate OK [09:06:07]wFMCommunicate request_size=11 [09:06:07]MH_SAM_APDU [09:06:07]CAPDU: 80 0D 02 02 06 18 2E 2C 4B F5 01 [09:06:07]Write to MH i2c: E2 0E 00 D0 22 80 0D 02 02 06 00 18 2E 2C 4B F5 01 00 00 2B [09:06:07]Write i2c OK [09:06:07]MH_I2C_Read... [09:06:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:07]Read from MH i2c: E2 [09:06:07]MH_I2C_Read... [09:06:07]Read from MH i2c: E2 03 00 [09:06:07]MH_I2C_Read... [09:06:07]Read from MH i2c: E2 03 00 D0 22 00 90 00 66 [09:06:07]RAPDU: 90 00 [09:06:07]wFMCommunicate OK [09:06:07]wFMCommunicate request_size=4 [09:06:07]MH_SAM_APDU [09:06:07]CAPDU: 80 0D 03 02 [09:06:07]Write to MH i2c: E2 08 00 D1 22 80 0D 03 02 00 00 00 00 6E [09:06:07]Write i2c OK [09:06:07]MH_I2C_Read... [09:06:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:07]Read from MH i2c: E2 [09:06:07]MH_I2C_Read... [09:06:07]Read from MH i2c: E2 0B 00 [09:06:07]MH_I2C_Read... [09:06:07]Read from MH i2c: E2 0B 00 D1 22 00 9D 9C E3 BC A8 2C 38 A1 90 00 F4 [09:06:07]RAPDU: 9D 9C E3 BC A8 2C 38 A1 90 00 [09:06:07]wFMCommunicate OK [09:06:07]SAM_PROTO_SignData done [09:06:07]FM_MakeSignedData done [09:06:07]CreateOFDProtocolMessage [09:06:07]wFMCommunicate request_size=4 [09:06:07]MH_SAM_APDU [09:06:07]CAPDU: 80 11 00 00 [09:06:07]Write to MH i2c: E2 08 00 D2 22 80 11 00 00 00 00 00 00 6E [09:06:07]Write i2c OK [09:06:07]MH_I2C_Read... [09:06:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:07]Read from MH i2c: E2 [09:06:07]MH_I2C_Read... [09:06:07]Read from MH i2c: E2 17 00 [09:06:07]MH_I2C_Read... [09:06:07]Read from MH i2c: E2 17 00 D2 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 C2 [09:06:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:06:07]wFMCommunicate OK [09:06:07]CreateOFDProtocolMessage done [09:06:07]OFDSenderStorePacket 108537 [09:06:07]StoreOFDPacket docnum=108537 [09:06:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 01 00 00 DD 45 08 01 92 00 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 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 3C 00 00 00 F4 03 04 00 81 0F F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F9 A7 01 00 35 04 06 00 18 2E 2C 4B F5 01 9D 9C E3 BC A8 2C 38 A1 [09:06:07]CheckFolder [09:06:07]dirname=/storage/ofd_packets [09:06:07]CheckFolder done [09:06:07]ProducePacketName [09:06:07]name=ofd_packets/00108537 [09:06:07]NVStorageSaveData ofd_packets/00108537 [09:06:07]File name is /storage/ofd_packets/00108537 [09:06:07]Write 302 bytes [09:06:07]NVStorageSaveData done [09:06:07]OFDSenderStorePacket done [09:06:07]KKMCreateOFDPacket done [09:06:07]NVStorageSaveData kkm_last_timestamp [09:06:07]File name is /storage/kkm_last_timestamp [09:06:07]Write 4 bytes [09:06:07]NVStorageSaveData done [09:06:07]ExternCall_PrintAddStr [09:06:07]wPrintStart [09:06:07]Write to MH i2c: 01 00 00 D3 22 F5 [09:06:07]Write i2c OK [09:06:07]MH_I2C_Read... [09:06:07]Read from MH i2c: 01 [09:06:07]MH_I2C_Read... [09:06:07]Read from MH i2c: 01 07 00 [09:06:07]MH_I2C_Read... [09:06:07]Read from MH i2c: 01 07 00 D3 22 00 00 00 00 00 FF 0F 0A [09:06:07]RasterBufferAndPrint [09:06:07]line Счет N : (1)1040702 [09:06:07]line ИНН: 02508201610067 [09:06:07]line Контрольно-Кассовый Чек [09:06:07]line ПРОДАЖА [09:06:07]line ТРК (МРК, ГНК) : 21 [09:06:07]line Товар: 2710124130 [09:06:07]line Super-92-К-5 [09:06:07]line 15.900 * 62.90 [09:06:07]line = 1000.11 [09:06:07]line НДС 12% НСП 1% [09:06:07]line > о реализуемом товаре [09:06:07]line ОКРУГЛЕНИЕ: -0.11 [09:06:07]line ИТОГО: 1000.00 [09:06:07]line Внесено: 1000.00 [09:06:07]line СДАЧА: 0.00 [09:06:07]line НСП 1% : 8.85 [09:06:07]line НДС 12% : 106.21 [09:06:07]line Наличными: 1000.00 [09:06:07]line Безнал.: 0.00 [09:06:07]line Место: АЗС № 15 "Партнер Нефть" [09:06:07]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [09:06:07]line СНО: Общий режим [09:06:07]line Чек 60 15.03.2024 09:06 [09:06:07]line Смена: 320 ФФД: 1.0 [09:06:07]line ЗНМ: 0300000266 [09:06:07]line РНМ: 0000000000091911 [09:06:07]line Версия ККМ: 001 [09:06:07]line ФМ: 0000000000871818 [09:06:07]line ФД: 108537 [09:06:07]line ФПД: 26586590737665 [09:06:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T090609&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108537&fm=26586590737665&tin=02508201610067®Number=0000000000091911&sum=100000 [09:06:08]OFD Sender: Processing packet 108537 [packets to send 29, broken 28] [09:06:08]ProducePacketName [09:06:08]name=ofd_packets/00108537 [09:06:08]OFD Sender: To server: pG, [09:06:08]CommunicateWithHost lk.salyk.kg:30040 [09:06:08]ConnectInit lk.salyk.kg [09:06:08]written 0, free lines is 4095 [09:06:08]Connected sock=10 [09:06:08]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 31 38 10 01 00 00 DD 45 08 01 92 00 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 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 3C 00 00 00 F4 03 04 00 81 0F F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F9 A7 01 00 35 04 06 00 18 2E 2C 4B F5 01 9D 9C E3 BC A8 2C 38 A1 [09:06:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 4F 00 00 00 E6 DF 47 00 80 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 F9 A7 01 00 F4 03 04 00 22 BB F3 65 B6 04 01 00 00 37 78 54 83 F1 C3 32 2B [09:06:08]CommunicateWithHost err = 0 [09:06:08]CheckOFDResponse [09:06:08]1017 (14) - 77093643461234 [09:06:08]1041 (16) - 0000000000871818 [09:06:08]1040 (4) - 108537 [09:06:08]1012 (4) - 15.03.2024 03:06 [09:06:08]1206 (1) - 0 [09:06:08]OFD Sender: Remove packet 108537 [09:06:08]ProducePacketName [09:06:08]name=ofd_packets/00108537 [09:06:08]NVStorageDeleteData [09:06:08]Write to MH i2c: 01 00 00 FE 22 20 [09:06:08]Write i2c OK [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: 01 [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: 01 07 00 [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: 01 07 00 FE 22 00 00 00 00 00 D4 0C 07 [09:06:08]RasterBufferAndPrint [09:06:08]line [09:06:08]line [09:06:08]line [09:06:08]line [09:06:08]line [09:06:08]written 0, free lines is 3294 [09:06:08]MH_Cut [09:06:08]Write to MH i2c: D1 01 00 05 23 01 FA [09:06:08]Write i2c OK [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: D1 [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: D1 01 00 [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: D1 01 00 05 23 00 F9 [09:06:08]Write to MH i2c: 01 00 00 06 23 29 [09:06:08]Write i2c OK [09:06:08]MH_I2C_Read... [09:06:09]OFD Sender: No OFD packet to send [09:06:09]*** Cut start [09:06:09]*** Purtial cut [09:06:09]*** Stage 1: CUTSNS_PIN = 1 [09:06:09]Read from MH i2c: 01 [09:06:09]MH_I2C_Read... [09:06:09]*** Stop cut motor [09:06:09]*** Cut end [09:06:09]Read from MH i2c: 01 07 00 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: 01 07 00 06 23 00 00 00 00 00 FF 0F 3E [09:06:09]process_action close_receipt done [09:06:09]requested_data is exist [09:06:09]produce_requested_data [09:06:09]requested_item fm.sn is exist - process it [09:06:09]wFMCommunicate request_size=4 [09:06:09]MH_SAM_APDU [09:06:09]CAPDU: 80 11 00 00 [09:06:09]Write to MH i2c: E2 08 00 07 23 80 11 00 00 00 00 00 00 A4 [09:06:09]Write i2c OK [09:06:09]MH_I2C_Read... [09:06:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:09]Read from MH i2c: E2 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: E2 17 00 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: E2 17 00 07 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 F8 [09:06:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:06:09]wFMCommunicate OK [09:06:09]requested_item fd.num is exist - process it [09:06:09]SAM_PROTO_GetFieldsCounters [09:06:09]wFMCommunicate request_size=4 [09:06:09]MH_SAM_APDU [09:06:09]CAPDU: 80 13 00 00 [09:06:09]Write to MH i2c: E2 08 00 08 23 80 13 00 00 00 00 00 00 A7 [09:06:09]Write i2c OK [09:06:09]MH_I2C_Read... [09:06:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:09]Read from MH i2c: E2 [09:06:10]MH_I2C_Read... [09:06:10]Read from MH i2c: E2 62 00 [09:06:10]MH_I2C_Read... [09:06:10]Read from MH i2c: E2 62 00 08 23 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 F9 A7 01 00 0E 04 04 00 40 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 5B [09:06:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 F9 A7 01 00 0E 04 04 00 40 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 [09:06:10]wFMCommunicate OK [09:06:10]SAM_PROTO_GetFieldsCounters done [09:06:10]requested_item shift.num is exist - process it [09:06:10]requested_item shift.opened is exist - process it [09:06:10]req_shift_opened [09:06:10]FM_GetShiftState [09:06:10]SAM_PROTO_GetShiftState [09:06:10]wFMCommunicate request_size=4 [09:06:10]MH_SAM_APDU [09:06:10]CAPDU: 80 13 01 00 [09:06:10]Write to MH i2c: E2 08 00 09 23 80 13 01 00 00 00 00 00 A9 [09:06:10]Write i2c OK [09:06:10]MH_I2C_Read... [09:06:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:10]Read from MH i2c: E2 [09:06:10]MH_I2C_Read... [09:06:10]Read from MH i2c: E2 0E 00 [09:06:10]MH_I2C_Read... [09:06:10]Read from MH i2c: E2 0E 00 09 23 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 DD [09:06:10]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:06:10]wFMCommunicate OK [09:06:10]SAM_PROTO_GetShiftState done [09:06:10]FM_GetShiftState done [09:06:10]req_shift_opened done [09:06:10]requested_item shift.open_date is exist - process it [09:06:10]req_shift_open_date [09:06:10]req_shift_open_date done [09:06:10]produce_requested_data done [09:06:10]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108537,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [09:06:10]process_action_free close_receipt [09:06:10]json_value_free [09:06:10]json_value_free done [09:06:10]process_json_proto returns [09:06:10]Send response to host [09:06:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108537,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [09:06:10]free response buf [09:06:10]execute_script done [09:06:10]execute_script returns [09:06:10]free content buf [09:06:10]Sock 9.Close socket [09:06:10]Sock 9.Thread stoped [09:06:14]OFD Sender: No OFD packet to send [09:06:19]OFD Sender: No OFD packet to send [09:06:24]OFD Sender: No OFD packet to send [09:06:29]OFD Sender: No OFD packet to send [09:06:34]OFD Sender: No OFD packet to send [09:06:39]OFD Sender: No OFD packet to send [09:06:44]OFD Sender: No OFD packet to send [09:06:49]OFD Sender: No OFD packet to send [09:06:54]OFD Sender: No OFD packet to send [09:06:59]OFD Sender: No OFD packet to send [09:07:04]OFD Sender: No OFD packet to send [09:07:09]OFD Sender: No OFD packet to send [09:07:14]OFD Sender: No OFD packet to send [09:07:19]OFD Sender: No OFD packet to send [09:07:24]OFD Sender: No OFD packet to send [09:07:29]OFD Sender: No OFD packet to send [09:07:34]OFD Sender: No OFD packet to send [09:07:39]OFD Sender: No OFD packet to send [09:07:44]OFD Sender: No OFD packet to send [09:07:49]OFD Sender: No OFD packet to send [09:07:54]OFD Sender: No OFD packet to send [09:07:59]OFD Sender: No OFD packet to send [09:08:04]OFD Sender: No OFD packet to send [09:08:09]OFD Sender: No OFD packet to send [09:08:14]OFD Sender: No OFD packet to send [09:08:19]OFD Sender: No OFD packet to send [09:08:24]OFD Sender: No OFD packet to send [09:08:29]OFD Sender: No OFD packet to send [09:08:34]OFD Sender: No OFD packet to send [09:08:39]OFD Sender: No OFD packet to send [09:08:44]OFD Sender: No OFD packet to send [09:08:49]OFD Sender: No OFD packet to send [09:08:51]accept exits with 8 [09:08:51]New connection [09:08:51]New thread 3067342180 created [09:08:51]Thread 3067198820 joined [09:08:51]Waiting for new connection... [09:08:51] Sock 8.Parse request [09:08:51]Sock 8.Check first char [09:08:51]Sock 8.First char is OK [09:08:51]request: POST /json_proto HTTP/1.0 [09:08:51]Method: POST [09:08:51]URL: /json_proto [09:08:51]Method is POST - this is cgi request [09:08:51]url: /json_proto [09:08:51]query_string will be loaded in cgi processing [09:08:51]execute_cgi json_proto POST (null) [09:08:51]execute_cgi path=json_proto method=POST [09:08:51]POST find Content-Length [09:08:51]Host: 172.17.32.69:8080 [09:08:51]Content-Length: 676 [09:08:51]Content-Type: application/json [09:08:51] [09:08:51]POST finish read [09:08:51]Found Content-Length = 676 [09:08:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040703", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:08:51]execute_script... [09:08:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040703", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:08:51]POST & json_proto [09:08:51]process_json_proto [09:08:51]json parsed OK: [09:08:51]protocol is kg_v1.0 [09:08:51]action value=close_receipt [09:08:51]process_action close_receipt [09:08:51]cmd_close_receipt [09:08:51]MH_GetDate [09:08:51]Write to MH i2c: F0 00 00 0A 23 1C [09:08:51]Write i2c OK [09:08:51]MH_I2C_Read... [09:08:51]Read from MH i2c: F0 [09:08:51]MH_I2C_Read... [09:08:51]Read from MH i2c: F0 09 00 [09:08:51]MH_I2C_Read... [09:08:51]Read from MH i2c: F0 09 00 0A 23 00 27 10 F4 65 D5 0F D3 65 D1 [09:08:51]GetLastDocTimeStamp 1710493569 [09:08:51]current date 1710493735 [09:08:51]FM_GetShiftState [09:08:51]SAM_PROTO_GetShiftState [09:08:51]wFMCommunicate request_size=4 [09:08:51]MH_SAM_APDU [09:08:51]CAPDU: 80 13 01 00 [09:08:51]Write to MH i2c: E2 08 00 0B 23 80 13 01 00 00 00 00 00 AB [09:08:51]Write i2c OK [09:08:51]MH_I2C_Read... [09:08:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:51]Read from MH i2c: E2 [09:08:51]MH_I2C_Read... [09:08:51]Read from MH i2c: E2 0E 00 [09:08:51]MH_I2C_Read... [09:08:51]Read from MH i2c: E2 0E 00 0B 23 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 DF [09:08:51]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:08:51]wFMCommunicate OK [09:08:51]SAM_PROTO_GetShiftState done [09:08:51]FM_GetShiftState done [09:08:51]opened in 1710461757 [09:08:51]opened+sec_in_day 1710548157 [09:08:51]quantity*price = 100011 [09:08:51]sum+1 = 100012 [09:08:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 61 15.03.2024 09:08 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108538 ФПД: 38816563244140 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T090855&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108538&fm=38816563244140&tin=02508201610067®Number=0000000000091911&sum=100000 [09:08:53]StoreToDocumentArchive [09:08:53]shift 320 fd 108538 [09:08:53]save to /storage/0320/doc_00108538 [09:08:53]save last doc name /storage/0320/doc_00108538 to /storage/kkm_last_doc_name [09:08:53]save OK [09:08:53]Clear old archive folders... [09:08:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:08:53]tlvbuf is B6F07920 [09:08:53]SAM_PROTO_ClearQueue [09:08:53]wFMCommunicate request_size=4 [09:08:53]MH_SAM_APDU [09:08:53]CAPDU: 80 09 00 00 [09:08:53]Write to MH i2c: E2 08 00 18 23 80 09 00 00 00 00 00 00 AD [09:08:53]Write i2c OK [09:08:53]MH_I2C_Read... [09:08:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:53]Read from MH i2c: E2 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 03 00 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 03 00 18 23 00 90 00 AF [09:08:53]RAPDU: 90 00 [09:08:53]wFMCommunicate OK [09:08:53]SAM_PROTO_ClearQueue done [09:08:53]KKMCreateOFDPacket [09:08:53]OFDProtocolAddRootSTLVToBuf [09:08:53]FM_MakeSignedData [09:08:53]FM_MakeSignedData [09:08:53]SAM_PROTO_SignData [09:08:53]wFMCommunicate request_size=4 [09:08:53]MH_SAM_APDU [09:08:53]CAPDU: 80 0D 01 02 [09:08:53]Write to MH i2c: E2 08 00 19 23 80 0D 01 02 00 00 00 00 B5 [09:08:53]Write i2c OK [09:08:53]MH_I2C_Read... [09:08:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:53]Read from MH i2c: E2 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 03 00 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 03 00 19 23 00 90 00 B0 [09:08:53]RAPDU: 90 00 [09:08:53]wFMCommunicate OK [09:08:53]wFMCommunicate request_size=255 [09:08:53]MH_SAM_APDU [09:08:53]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 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 3D 00 00 00 F4 03 04 00 27 10 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 FA A7 01 00 35 04 06 00 [09:08:53]Write to MH i2c: E2 02 01 1A 23 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 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 3D 00 00 00 F4 03 04 00 27 10 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 FA A7 01 00 35 04 06 00 00 00 38 [09:08:53]Write i2c OK [09:08:53]MH_I2C_Read... [09:08:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:53]Read from MH i2c: E2 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 03 00 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 03 00 1A 23 00 90 00 B1 [09:08:53]RAPDU: 90 00 [09:08:53]wFMCommunicate OK [09:08:53]wFMCommunicate request_size=11 [09:08:53]MH_SAM_APDU [09:08:53]CAPDU: 80 0D 02 02 06 23 4D AF 76 AC 6C [09:08:53]Write to MH i2c: E2 0E 00 1B 23 80 0D 02 02 06 00 23 4D AF 76 AC 6C 00 00 71 [09:08:53]Write i2c OK [09:08:53]MH_I2C_Read... [09:08:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:53]Read from MH i2c: E2 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 03 00 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 03 00 1B 23 00 90 00 B2 [09:08:53]RAPDU: 90 00 [09:08:53]wFMCommunicate OK [09:08:53]wFMCommunicate request_size=4 [09:08:53]MH_SAM_APDU [09:08:53]CAPDU: 80 0D 03 02 [09:08:53]Write to MH i2c: E2 08 00 1C 23 80 0D 03 02 00 00 00 00 BA [09:08:53]Write i2c OK [09:08:53]MH_I2C_Read... [09:08:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:53]Read from MH i2c: E2 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 0B 00 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 0B 00 1C 23 00 7D 32 5F D9 BA A7 1C 4A 90 00 69 [09:08:53]RAPDU: 7D 32 5F D9 BA A7 1C 4A 90 00 [09:08:53]wFMCommunicate OK [09:08:53]SAM_PROTO_SignData done [09:08:53]FM_MakeSignedData done [09:08:53]CreateOFDProtocolMessage [09:08:53]wFMCommunicate request_size=4 [09:08:53]MH_SAM_APDU [09:08:53]CAPDU: 80 11 00 00 [09:08:53]Write to MH i2c: E2 08 00 1D 23 80 11 00 00 00 00 00 00 BA [09:08:53]Write i2c OK [09:08:53]MH_I2C_Read... [09:08:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:53]Read from MH i2c: E2 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 17 00 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 17 00 1D 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 0E [09:08:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:08:53]wFMCommunicate OK [09:08:53]CreateOFDProtocolMessage done [09:08:53]OFDSenderStorePacket 108538 [09:08:53]StoreOFDPacket docnum=108538 [09:08:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 01 00 00 00 38 08 01 8C 70 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 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 3D 00 00 00 F4 03 04 00 27 10 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 FA A7 01 00 35 04 06 00 23 4D AF 76 AC 6C 7D 32 5F D9 BA A7 1C 4A [09:08:53]CheckFolder [09:08:53]dirname=/storage/ofd_packets [09:08:53]CheckFolder done [09:08:53]ProducePacketName [09:08:53]name=ofd_packets/00108538 [09:08:53]NVStorageSaveData ofd_packets/00108538 [09:08:53]File name is /storage/ofd_packets/00108538 [09:08:53]Write 302 bytes [09:08:53]NVStorageSaveData done [09:08:53]OFDSenderStorePacket done [09:08:53]KKMCreateOFDPacket done [09:08:53]NVStorageSaveData kkm_last_timestamp [09:08:53]File name is /storage/kkm_last_timestamp [09:08:53]Write 4 bytes [09:08:53]NVStorageSaveData done [09:08:53]ExternCall_PrintAddStr [09:08:53]wPrintStart [09:08:53]Write to MH i2c: 01 00 00 1E 23 41 [09:08:53]Write i2c OK [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: 01 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: 01 07 00 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: 01 07 00 1E 23 00 00 00 00 00 FF 0F 56 [09:08:53]RasterBufferAndPrint [09:08:53]line Счет N : (1)1040703 [09:08:53]line ИНН: 02508201610067 [09:08:53]line Контрольно-Кассовый Чек [09:08:53]line ПРОДАЖА [09:08:53]line ТРК (МРК, ГНК) : 71 [09:08:53]line Товар: 2710124130 [09:08:53]line Super-92-К-5 [09:08:53]line 15.900 * 62.90 [09:08:53]line = 1000.11 [09:08:53]line НДС 12% НСП 1% [09:08:53]line > о реализуемом товаре [09:08:53]line ОКРУГЛЕНИЕ: -0.11 [09:08:53]line ИТОГО: 1000.00 [09:08:53]line Внесено: 1000.00 [09:08:53]line СДАЧА: 0.00 [09:08:53]line НСП 1% : 8.85 [09:08:53]line НДС 12% : 106.21 [09:08:53]line Наличными: 1000.00 [09:08:53]line Безнал.: 0.00 [09:08:53]line Место: АЗС № 15 "Партнер Нефть" [09:08:53]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [09:08:53]line СНО: Общий режим [09:08:53]line Чек 61 15.03.2024 09:08 [09:08:53]line Смена: 320 ФФД: 1.0 [09:08:53]line ЗНМ: 0300000266 [09:08:53]line РНМ: 0000000000091911 [09:08:53]line Версия ККМ: 001 [09:08:53]line ФМ: 0000000000871818 [09:08:53]line ФД: 108538 [09:08:53]line ФПД: 38816563244140 [09:08:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T090855&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108538&fm=38816563244140&tin=02508201610067®Number=0000000000091911&sum=100000 [09:08:53]OFD Sender: Processing packet 108538 [packets to send 29, broken 28] [09:08:53]ProducePacketName [09:08:53]name=ofd_packets/00108538 [09:08:53]OFD Sender: To server: pG, [09:08:53]CommunicateWithHost lk.salyk.kg:30040 [09:08:53]ConnectInit lk.salyk.kg [09:08:53]written 0, free lines is 4095 [09:08:53]Connected sock=11 [09:08:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 01 00 00 00 38 08 01 8C 70 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 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 3D 00 00 00 F4 03 04 00 27 10 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 FA A7 01 00 35 04 06 00 23 4D AF 76 AC 6C 7D 32 5F D9 BA A7 1C 4A [09:08: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 31 38 4F 00 00 00 84 42 47 00 B6 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 31 38 10 04 04 00 FA A7 01 00 F4 03 04 00 C7 BB F3 65 B6 04 01 00 00 C1 F9 9C 98 C8 6B 24 F7 [09:08:54]CommunicateWithHost err = 0 [09:08:54]CheckOFDResponse [09:08:54]1017 (14) - 77093643461234 [09:08:54]1041 (16) - 0000000000871818 [09:08:54]1040 (4) - 108538 [09:08:54]1012 (4) - 15.03.2024 03:08 [09:08:54]1206 (1) - 0 [09:08:54]OFD Sender: Remove packet 108538 [09:08:54]ProducePacketName [09:08:54]name=ofd_packets/00108538 [09:08:54]NVStorageDeleteData [09:08:54]Write to MH i2c: 01 00 00 49 23 6C [09:08:54]Write i2c OK [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: 01 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: 01 07 00 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: 01 07 00 49 23 00 00 00 00 00 D9 0C 58 [09:08:54]RasterBufferAndPrint [09:08:54]line [09:08:54]line [09:08:54]line [09:08:54]line [09:08:54]line [09:08:54]written 0, free lines is 3296 [09:08:54]MH_Cut [09:08:54]Write to MH i2c: D1 01 00 50 23 01 45 [09:08:54]Write i2c OK [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: D1 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: D1 01 00 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: D1 01 00 50 23 00 44 [09:08:54]Write to MH i2c: 01 00 00 51 23 74 [09:08:54]Write i2c OK [09:08:54]MH_I2C_Read... [09:08:54]OFD Sender: No OFD packet to send [09:08:55]*** Cut start [09:08:55]*** Purtial cut [09:08:55]*** Stage 1: CUTSNS_PIN = 1 [09:08:55]Read from MH i2c: 01 [09:08:55]MH_I2C_Read... [09:08:55]*** Stop cut motor [09:08:55]*** Cut end [09:08:55]Read from MH i2c: 01 07 00 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: 01 07 00 51 23 00 00 00 00 00 FF 0F 89 [09:08:55]process_action close_receipt done [09:08:55]requested_data is exist [09:08:55]produce_requested_data [09:08:55]requested_item fm.sn is exist - process it [09:08:55]wFMCommunicate request_size=4 [09:08:55]MH_SAM_APDU [09:08:55]CAPDU: 80 11 00 00 [09:08:55]Write to MH i2c: E2 08 00 52 23 80 11 00 00 00 00 00 00 EF [09:08:55]Write i2c OK [09:08:55]MH_I2C_Read... [09:08:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:55]Read from MH i2c: E2 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 17 00 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 17 00 52 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 43 [09:08:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:08:55]wFMCommunicate OK [09:08:55]requested_item fd.num is exist - process it [09:08:55]SAM_PROTO_GetFieldsCounters [09:08:55]wFMCommunicate request_size=4 [09:08:55]MH_SAM_APDU [09:08:55]CAPDU: 80 13 00 00 [09:08:55]Write to MH i2c: E2 08 00 53 23 80 13 00 00 00 00 00 00 F2 [09:08:55]Write i2c OK [09:08:55]MH_I2C_Read... [09:08:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:55]*** FLAG_PRN_KEY set [09:08:55]int [09:08:55]Read from MH i2c: E2 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 62 00 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 62 00 53 23 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 FA A7 01 00 0E 04 04 00 40 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 AA [09:08: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 FA A7 01 00 0E 04 04 00 40 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 [09:08:55]wFMCommunicate OK [09:08:55]SAM_PROTO_GetFieldsCounters done [09:08:55]requested_item shift.num is exist - process it [09:08:55]requested_item shift.opened is exist - process it [09:08:55]req_shift_opened [09:08:55]FM_GetShiftState [09:08:55]SAM_PROTO_GetShiftState [09:08:55]wFMCommunicate request_size=4 [09:08:55]MH_SAM_APDU [09:08:55]CAPDU: 80 13 01 00 [09:08:55]Write to MH i2c: 01 00 00 54 23 77 [09:08:55]Write i2c OK [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: 01 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: 01 07 00 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: 01 07 00 54 23 00 08 00 00 00 FF 0F 94 [09:08:55]state=0 [09:08:55]Key pressed [09:08:55]Feed [09:08:55]Write to MH i2c: D8 00 00 55 23 4F [09:08:55]Write i2c OK [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: D8 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: D8 01 00 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: D8 01 00 55 23 00 50 [09:08:55]int line is 0 - check status [09:08:55]Write to MH i2c: 01 00 00 56 23 79 [09:08:55]Write i2c OK [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: 01 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: 01 07 00 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: 01 07 00 56 23 00 48 00 00 00 3C 00 04 [09:08:55]state=2 [09:08:55]Key pressed [09:08:55]Write to MH i2c: E2 08 00 57 23 80 13 01 00 00 00 00 00 F7 [09:08:55]int [09:08:55]Write i2c OK [09:08:55]MH_I2C_Read... [09:08:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:55]Read from MH i2c: E2 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 0E 00 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 0E 00 57 23 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 2B [09:08:55]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:08:55]wFMCommunicate OK [09:08:55]SAM_PROTO_GetShiftState done [09:08:55]FM_GetShiftState done [09:08:55]req_shift_opened done [09:08:55]requested_item shift.open_date is exist - process it [09:08:55]req_shift_open_date [09:08:55]req_shift_open_date done [09:08:55]produce_requested_data done [09:08:55]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108538,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [09:08:55]process_action_free close_receipt [09:08:55]json_value_free [09:08:55]Write to MH i2c: 01 json_value_free done [09:08:55]00 process_json_proto returns [09:08:55]00 Send response to host [09:08:55]58 23 7B [09:08:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108538,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [09:08:55]free response buf [09:08:55]execute_script done [09:08:55]execute_script returns [09:08:55]free content buf [09:08:55]Sock 8.Close socket [09:08:55]Sock 8.Thread stoped [09:08:55]Write i2c OK [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: 01 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: 01 07 00 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: 01 07 00 58 23 00 48 00 00 00 3C 00 06 [09:08:55]state=2 [09:08:55]Key pressed [09:08:55]int [09:08:55]Write to MH i2c: 01 00 00 59 23 7C [09:08:55]*** FLAG_PRN_KEY reset [09:08:55]Write i2c OK [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: 01 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: 01 07 00 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: 01 07 00 59 23 00 00 00 00 00 FD 0F 8F [09:08:55]state=2 [09:08:55]Stop feed [09:08:59]OFD Sender: No OFD packet to send [09:09:04]OFD Sender: No OFD packet to send [09:09:09]OFD Sender: No OFD packet to send [09:09:14]OFD Sender: No OFD packet to send [09:09:19]OFD Sender: No OFD packet to send [09:09:24]OFD Sender: No OFD packet to send [09:09:29]OFD Sender: No OFD packet to send [09:09:34]OFD Sender: No OFD packet to send [09:09:39]OFD Sender: No OFD packet to send [09:09:44]OFD Sender: No OFD packet to send [09:09:49]OFD Sender: No OFD packet to send [09:09:54]OFD Sender: No OFD packet to send [09:09:59]OFD Sender: No OFD packet to send [09:10:04]OFD Sender: No OFD packet to send [09:10:09]OFD Sender: No OFD packet to send [09:10:14]OFD Sender: No OFD packet to send [09:10:19]accept exits with 9 [09:10:19]New connection [09:10:19]New thread 3067198820 created [09:10:19]Thread 3067342180 joined [09:10:19]Waiting for new connection... [09:10:19] Sock 9.Parse request [09:10:19]Sock 9.Check first char [09:10:19]Sock 9.First char is OK [09:10:19]request: POST /json_proto HTTP/1.0 [09:10:19]Method: POST [09:10:19]URL: /json_proto [09:10:19]Method is POST - this is cgi request [09:10:19]url: /json_proto [09:10:19]query_string will be loaded in cgi processing [09:10:19]execute_cgi json_proto POST (null) [09:10:19]execute_cgi path=json_proto method=POST [09:10:19]POST find Content-Length [09:10:19]Host: 172.17.32.69:8080 [09:10:19]Content-Length: 683 [09:10:19]Content-Type: application/json [09:10:19] [09:10:19]POST finish read [09:10:19]Found Content-Length = 683 [09:10:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 70.50, "quantity" : 14.190, "sum" : 1000.40, "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:10:19]execute_script... [09:10: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)1040704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 70.50, "quantity" : 14.190, "sum" : 1000.40, "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:10:19]POST & json_proto [09:10:19]process_json_proto [09:10:19]json parsed OK: [09:10:19]protocol is kg_v1.0 [09:10:19]action value=close_receipt [09:10:19]process_action close_receipt [09:10:19]cmd_close_receipt [09:10:19]MH_GetDate [09:10:19]Write to MH i2c: F0 00 00 5A 23 6C [09:10:19]Write i2c OK [09:10:19]MH_I2C_Read... [09:10:19]Read from MH i2c: F0 [09:10:19]MH_I2C_Read... [09:10:19]Read from MH i2c: F0 09 00 [09:10:19]MH_I2C_Read... [09:10:19]Read from MH i2c: F0 09 00 5A 23 00 7E 10 F4 65 D5 0F D3 65 78 [09:10:19]GetLastDocTimeStamp 1710493735 [09:10:19]current date 1710493822 [09:10:19]FM_GetShiftState [09:10:19]SAM_PROTO_GetShiftState [09:10:19]wFMCommunicate request_size=4 [09:10:19]MH_SAM_APDU [09:10:19]CAPDU: 80 13 01 00 [09:10:19]Write to MH i2c: E2 08 00 5B 23 80 13 01 00 00 00 00 00 FB [09:10:19]Write i2c OK [09:10:19]MH_I2C_Read... [09:10:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:19]Read from MH i2c: E2 [09:10:19]MH_I2C_Read... [09:10:19]Read from MH i2c: E2 0E 00 [09:10:19]MH_I2C_Read... [09:10:19]Read from MH i2c: E2 0E 00 5B 23 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 2F [09:10:19]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:10:19]wFMCommunicate OK [09:10:19]SAM_PROTO_GetShiftState done [09:10:19]FM_GetShiftState done [09:10:19]opened in 1710461757 [09:10:19]opened+sec_in_day 1710548157 [09:10:19]quantity*price = 100039 [09:10:19]sum+1 = 100041 [09:10:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 62 15.03.2024 09:10 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108539 ФПД: 35953471205926 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T091022&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108539&fm=35953471205926&tin=02508201610067®Number=0000000000091911&sum=100000 [09:10:20]StoreToDocumentArchive [09:10:20]shift 320 fd 108539 [09:10:20]save to /storage/0320/doc_00108539 [09:10:20]save last doc name /storage/0320/doc_00108539 to /storage/kkm_last_doc_name [09:10:20]save OK [09:10:20]Clear old archive folders... [09:10:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:10:20]tlvbuf is B6F07B80 [09:10:20]SAM_PROTO_ClearQueue [09:10:20]wFMCommunicate request_size=4 [09:10:20]MH_SAM_APDU [09:10:20]CAPDU: 80 09 00 00 [09:10:20]Write to MH i2c: E2 08 00 68 23 80 09 00 00 00 00 00 00 FD [09:10:20]Write i2c OK [09:10:20]MH_I2C_Read... [09:10:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:10:20]Read from MH i2c: E2 [09:10:20]MH_I2C_Read... [09:10:20]Read from MH i2c: E2 03 00 [09:10:20]MH_I2C_Read... [09:10:20]Read from MH i2c: E2 03 00 68 23 00 90 00 FF [09:10:20]RAPDU: 90 00 [09:10:20]wFMCommunicate OK [09:10:20]SAM_PROTO_ClearQueue done [09:10:20]KKMCreateOFDPacket [09:10:20]OFDProtocolAddRootSTLVToBuf [09:10:20]FM_MakeSignedData [09:10:20]FM_MakeSignedData [09:10:20]SAM_PROTO_SignData [09:10:20]wFMCommunicate request_size=4 [09:10:20]MH_SAM_APDU [09:10:20]CAPDU: 80 0D 01 02 [09:10:20]Write to MH i2c: E2 08 00 69 23 80 0D 01 02 00 00 00 00 05 [09:10:20]Write i2c OK [09:10:20]MH_I2C_Read... [09:10:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:10:20]Read from MH i2c: E2 [09:10:20]MH_I2C_Read... [09:10:20]Read from MH i2c: E2 03 00 [09:10:20]MH_I2C_Read... [09:10:20]Read from MH i2c: E2 03 00 69 23 00 90 00 00 [09:10:20]RAPDU: 90 00 [09:10:20]wFMCommunicate OK [09:10:20]wFMCommunicate request_size=255 [09:10:20]MH_SAM_APDU [09:10: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6E 37 00 00 00 00 00 37 04 06 00 8A 1B 00 00 00 00 13 04 06 00 C8 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 80 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 3E 00 00 00 F4 03 04 00 7E 10 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 FB A7 01 00 35 04 06 00 20 [09:10:20]Write to MH i2c: E2 02 01 6A 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6E 37 00 00 00 00 00 37 04 06 00 8A 1B 00 00 00 00 13 04 06 00 C8 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 80 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 3E 00 00 00 F4 03 04 00 7E 10 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 FB A7 01 00 35 04 06 00 20 00 00 41 [09:10:20]Write i2c OK [09:10:20]MH_I2C_Read... [09:10:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:20]Read from MH i2c: E2 [09:10:20]MH_I2C_Read... [09:10:20]Read from MH i2c: E2 03 00 [09:10:20]MH_I2C_Read... [09:10:20]Read from MH i2c: E2 03 00 6A 23 00 90 00 01 [09:10:20]RAPDU: 90 00 [09:10:20]wFMCommunicate OK [09:10:20]wFMCommunicate request_size=10 [09:10:20]MH_SAM_APDU [09:10:20]CAPDU: 80 0D 02 02 05 B3 11 E1 32 26 [09:10:20]Write to MH i2c: E2 0D 00 6B 23 80 0D 02 02 05 00 B3 11 E1 32 26 00 00 0F [09:10:20]Write i2c OK [09:10:20]MH_I2C_Read... [09:10:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:20]Read from MH i2c: E2 [09:10:20]MH_I2C_Read... [09:10:20]Read from MH i2c: E2 03 00 [09:10:20]MH_I2C_Read... [09:10:20]Read from MH i2c: E2 03 00 6B 23 00 90 00 02 [09:10:20]RAPDU: 90 00 [09:10:20]wFMCommunicate OK [09:10:20]wFMCommunicate request_size=4 [09:10:20]MH_SAM_APDU [09:10:20]CAPDU: 80 0D 03 02 [09:10:20]Write to MH i2c: E2 08 00 6C 23 80 0D 03 02 00 00 00 00 0A [09:10:20]Write i2c OK [09:10:20]MH_I2C_Read... [09:10:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:10:20]Read from MH i2c: E2 [09:10:20]MH_I2C_Read... [09:10:20]Read from MH i2c: E2 0B 00 [09:10:20]MH_I2C_Read... [09:10:20]Read from MH i2c: E2 0B 00 6C 23 00 68 A8 B1 4D 59 40 E9 A4 90 00 3F [09:10:20]RAPDU: 68 A8 B1 4D 59 40 E9 A4 90 00 [09:10:20]wFMCommunicate OK [09:10:20]SAM_PROTO_SignData done [09:10:20]FM_MakeSignedData done [09:10:20]CreateOFDProtocolMessage [09:10:20]wFMCommunicate request_size=4 [09:10:20]MH_SAM_APDU [09:10:20]CAPDU: 80 11 00 00 [09:10:20]Write to MH i2c: E2 08 00 6D 23 80 11 00 00 00 00 00 00 0A [09:10:20]Write i2c OK [09:10:20]MH_I2C_Read... [09:10:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:20]Read from MH i2c: E2 [09:10:20]MH_I2C_Read... [09:10:20]Read from MH i2c: E2 17 00 [09:10:20]MH_I2C_Read... [09:10:20]Read from MH i2c: E2 17 00 6D 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 5E [09:10:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:10:20]wFMCommunicate OK [09:10:20]CreateOFDProtocolMessage done [09:10:20]OFDSenderStorePacket 108539 [09:10:20]StoreOFDPacket docnum=108539 [09:10:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 AA 60 07 01 BF 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6E 37 00 00 00 00 00 37 04 06 00 8A 1B 00 00 00 00 13 04 06 00 C8 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 80 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 3E 00 00 00 F4 03 04 00 7E 10 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 FB A7 01 00 35 04 06 00 20 B3 11 E1 32 26 68 A8 B1 4D 59 40 E9 A4 [09:10:20]CheckFolder [09:10:20]dirname=/storage/ofd_packets [09:10:20]CheckFolder done [09:10:20]ProducePacketName [09:10:20]name=ofd_packets/00108539 [09:10:20]NVStorageSaveData ofd_packets/00108539 [09:10:20]File name is /storage/ofd_packets/00108539 [09:10:20]Write 301 bytes [09:10:20]NVStorageSaveData done [09:10:20]OFDSenderStorePacket done [09:10:20]KKMCreateOFDPacket done [09:10:20]NVStorageSaveData kkm_last_timestamp [09:10:20]File name is /storage/kkm_last_timestamp [09:10:20]Write 4 bytes [09:10:20]NVStorageSaveData done [09:10:20]ExternCall_PrintAddStr [09:10:20]wPrintStart [09:10:20]Write to MH i2c: 01 00 00 6E 23 91 [09:10:20]Write i2c OK [09:10:20]MH_I2C_Read... [09:10:20]Read from MH i2c: 01 [09:10:20]MH_I2C_Read... [09:10:20]Read from MH i2c: 01 07 00 [09:10:20]MH_I2C_Read... [09:10:20]Read from MH i2c: 01 07 00 6E 23 00 00 00 00 00 FF 0F A6 [09:10:20]RasterBufferAndPrint [09:10:20]line Счет N : (1)1040704 [09:10:20]line ИНН: 02508201610067 [09:10:20]line Контрольно-Кассовый Чек [09:10:20]line ПРОДАЖА [09:10:20]line ТРК (МРК, ГНК) : 52 [09:10:20]line Товар: 2710124500 [09:10:20]line Аи-95-К-5 [09:10:20]line 14.190 * 70.50 [09:10:20]line = 1000.40 [09:10:20]line НДС 12% НСП 1% [09:10:20]line > о реализуемом товаре [09:10:20]line ОКРУГЛЕНИЕ: -0.40 [09:10:20]line ИТОГО: 1000.00 [09:10:20]line Внесено: 1000.00 [09:10:20]line СДАЧА: 0.00 [09:10:20]line НСП 1% : 8.85 [09:10:20]line НДС 12% : 106.24 [09:10:20]line Наличными: 1000.00 [09:10:20]line Безнал.: 0.00 [09:10:20]line Место: АЗС № 15 "Партнер Нефть" [09:10:20]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [09:10:20]line СНО: Общий режим [09:10:20]line Чек 62 15.03.2024 09:10 [09:10:20]line Смена: 320 ФФД: 1.0 [09:10:20]line ЗНМ: 0300000266 [09:10:20]line РНМ: 0000000000091911 [09:10:20]line Версия ККМ: 001 [09:10:20]line ФМ: 0000000000871818 [09:10:20]line ФД: 108539 [09:10:20]line ФПД: 35953471205926 [09:10:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T091022&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108539&fm=35953471205926&tin=02508201610067®Number=0000000000091911&sum=100000 [09:10:21]OFD Sender: Processing packet 108539 [packets to send 29, broken 28] [09:10:21]ProducePacketName [09:10:21]name=ofd_packets/00108539 [09:10:21]OFD Sender: To server: pG, [09:10:21]CommunicateWithHost lk.salyk.kg:30040 [09:10:21]ConnectInit lk.salyk.kg [09:10:21]written 0, free lines is 4095 [09:10:21]Connected sock=10 [09:10: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 31 38 0F 01 00 00 AA 60 07 01 BF 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6E 37 00 00 00 00 00 37 04 06 00 8A 1B 00 00 00 00 13 04 06 00 C8 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 80 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 3E 00 00 00 F4 03 04 00 7E 10 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 FB A7 01 00 35 04 06 00 20 B3 11 E1 32 26 68 A8 B1 4D 59 40 E9 A4 [09:10: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 31 38 4F 00 00 00 27 F6 47 00 F4 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 FB A7 01 00 F4 03 04 00 1F BC F3 65 B6 04 01 00 00 F7 CB 67 7D 03 C0 1D 0B [09:10:21]CommunicateWithHost err = 0 [09:10:21]CheckOFDResponse [09:10:21]1017 (14) - 77093643461234 [09:10:21]1041 (16) - 0000000000871818 [09:10:21]1040 (4) - 108539 [09:10:21]1012 (4) - 15.03.2024 03:10 [09:10:21]1206 (1) - 0 [09:10:21]OFD Sender: Remove packet 108539 [09:10:21]ProducePacketName [09:10:21]name=ofd_packets/00108539 [09:10:21]NVStorageDeleteData [09:10:21]Write to MH i2c: 01 00 00 99 23 BC [09:10:21]Write i2c OK [09:10:21]MH_I2C_Read... [09:10:21]Read from MH i2c: 01 [09:10:21]MH_I2C_Read... [09:10:21]Read from MH i2c: 01 07 00 [09:10:21]MH_I2C_Read... [09:10:21]Read from MH i2c: 01 07 00 99 23 00 00 00 00 00 D9 0C A8 [09:10:21]RasterBufferAndPrint [09:10:21]line [09:10:21]line [09:10:21]line [09:10:21]line [09:10:21]line [09:10:21]written 0, free lines is 3298 [09:10:21]MH_Cut [09:10:21]Write to MH i2c: D1 01 00 A0 23 01 95 [09:10:21]Write i2c OK [09:10:21]MH_I2C_Read... [09:10:21]Read from MH i2c: D1 [09:10:21]MH_I2C_Read... [09:10:21]Read from MH i2c: D1 01 00 [09:10:21]MH_I2C_Read... [09:10:21]Read from MH i2c: D1 01 00 A0 23 00 94 [09:10:21]Write to MH i2c: 01 00 00 A1 23 C4 [09:10:21]Write i2c OK [09:10:21]MH_I2C_Read... [09:10:22]OFD Sender: No OFD packet to send [09:10:22]*** Cut start [09:10:22]*** Purtial cut [09:10:22]*** Stage 1: CUTSNS_PIN = 1 [09:10:22]Read from MH i2c: 01 [09:10:22]MH_I2C_Read... [09:10:22]*** Stop cut motor [09:10:22]*** Cut end [09:10:22]Read from MH i2c: 01 07 00 [09:10:22]MH_I2C_Read... [09:10:22]Read from MH i2c: 01 07 00 A1 23 00 00 00 00 00 FF 0F D9 [09:10:22]process_action close_receipt done [09:10:22]requested_data is exist [09:10:22]produce_requested_data [09:10:22]requested_item fm.sn is exist - process it [09:10:22]wFMCommunicate request_size=4 [09:10:22]MH_SAM_APDU [09:10:22]CAPDU: 80 11 00 00 [09:10:22]Write to MH i2c: E2 08 00 A2 23 80 11 00 00 00 00 00 00 3F [09:10:22]Write i2c OK [09:10:22]MH_I2C_Read... [09:10:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:22]Read from MH i2c: E2 [09:10:22]MH_I2C_Read... [09:10:22]Read from MH i2c: E2 17 00 [09:10:22]MH_I2C_Read... [09:10:22]Read from MH i2c: E2 17 00 A2 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 93 [09:10:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:10:22]wFMCommunicate OK [09:10:22]requested_item fd.num is exist - process it [09:10:22]SAM_PROTO_GetFieldsCounters [09:10:22]wFMCommunicate request_size=4 [09:10:22]MH_SAM_APDU [09:10:22]CAPDU: 80 13 00 00 [09:10:22]Write to MH i2c: E2 08 00 A3 23 80 13 00 00 00 00 00 00 42 [09:10:22]Write i2c OK [09:10:22]MH_I2C_Read... [09:10:22]int [09:10:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:10:23]*** FLAG_PRN_KEY set [09:10:23]Read from MH i2c: E2 [09:10:23]MH_I2C_Read... [09:10:23]Read from MH i2c: E2 62 00 [09:10:23]MH_I2C_Read... [09:10:23]Read from MH i2c: E2 62 00 A3 23 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 FB A7 01 00 0E 04 04 00 40 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 FE [09:10: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 FB A7 01 00 0E 04 04 00 40 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 [09:10:23]wFMCommunicate OK [09:10:23]SAM_PROTO_GetFieldsCounters done [09:10:23]requested_item shift.num is exist - process it [09:10:23]requested_item shift.opened is exist - process it [09:10:23]req_shift_opened [09:10:23]FM_GetShiftState [09:10:23]SAM_PROTO_GetShiftState [09:10:23]wFMCommunicate request_size=4 [09:10:23]MH_SAM_APDU [09:10:23]CAPDU: 80 13 01 00 [09:10:23]Write to MH i2c: 01 00 00 A4 23 C7 [09:10:23]Write i2c OK [09:10:23]MH_I2C_Read... [09:10:23]Read from MH i2c: 01 [09:10:23]MH_I2C_Read... [09:10:23]Read from MH i2c: 01 07 00 [09:10:23]MH_I2C_Read... [09:10:23]Read from MH i2c: 01 07 00 A4 23 00 08 00 00 00 FF 0F E4 [09:10:23]state=0 [09:10:23]Key pressed [09:10:23]Feed [09:10:23]Write to MH i2c: D8 00 00 A5 23 9F [09:10:23]Write i2c OK [09:10:23]MH_I2C_Read... [09:10:23]Read from MH i2c: D8 [09:10:23]MH_I2C_Read... [09:10:23]Read from MH i2c: D8 01 00 [09:10:23]MH_I2C_Read... [09:10:23]Read from MH i2c: D8 01 00 A5 23 00 A0 [09:10:23]Write to MH i2c: E2 08 00 A6 23 80 13 01 00 00 00 00 00 46 [09:10:23]Write i2c OK [09:10:23]MH_I2C_Read... [09:10:23]int [09:10:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:23]Read from MH i2c: E2 [09:10:23]MH_I2C_Read... [09:10:23]Read from MH i2c: E2 0E 00 [09:10:23]MH_I2C_Read... [09:10:23]Read from MH i2c: E2 0E 00 A6 23 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 7A [09:10:23]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:10:23]wFMCommunicate OK [09:10:23]SAM_PROTO_GetShiftState done [09:10:23]FM_GetShiftState done [09:10:23]req_shift_opened done [09:10:23]requested_item shift.open_date is exist - process it [09:10:23]req_shift_open_date [09:10:23]req_shift_open_date done [09:10:23]produce_requested_data done [09:10:23]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108539,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [09:10:23]process_action_free close_receipt [09:10:23]json_value_free [09:10:23]json_value_free done [09:10:23]process_json_proto returns [09:10:23]Send response to host [09:10:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108539,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [09:10:23]free response buf [09:10:23]execute_script done [09:10:23]execute_script returns [09:10:23]free content buf [09:10:23]Sock 9.Close socket [09:10:23]Sock 9.Thread stoped [09:10:23]Write to MH i2c: 01 00 00 A7 23 CA [09:10:23]Write i2c OK [09:10:23]MH_I2C_Read... [09:10:23]Read from MH i2c: 01 [09:10:23]MH_I2C_Read... [09:10:23]Read from MH i2c: 01 07 00 [09:10:23]MH_I2C_Read... [09:10:23]Read from MH i2c: 01 07 00 A7 23 00 48 00 00 00 3C 00 55 [09:10:23]state=2 [09:10:23]Key pressed [09:10:23]int [09:10:23]Write to MH i2c: 01 00 00 A8 23 CB [09:10:23]*** FLAG_PRN_KEY reset [09:10:23]Write i2c OK [09:10:23]MH_I2C_Read... [09:10:23]Read from MH i2c: 01 [09:10:23]MH_I2C_Read... [09:10:23]Read from MH i2c: 01 07 00 [09:10:23]MH_I2C_Read... [09:10:23]Read from MH i2c: 01 07 00 A8 23 00 00 00 00 00 FE 0F DF [09:10:23]state=2 [09:10:23]Stop feed [09:10:27]OFD Sender: No OFD packet to send [09:10:32]OFD Sender: No OFD packet to send [09:10:37]OFD Sender: No OFD packet to send [09:10:42]OFD Sender: No OFD packet to send [09:10:47]OFD Sender: No OFD packet to send [09:10:52]OFD Sender: No OFD packet to send [09:10:57]OFD Sender: No OFD packet to send [09:11:02]OFD Sender: No OFD packet to send [09:11:07]OFD Sender: No OFD packet to send [09:11:12]OFD Sender: No OFD packet to send [09:11:17]OFD Sender: No OFD packet to send [09:11:22]OFD Sender: No OFD packet to send [09:11:27]OFD Sender: No OFD packet to send [09:11:32]OFD Sender: No OFD packet to send [09:11:37]OFD Sender: No OFD packet to send [09:11:42]OFD Sender: No OFD packet to send [09:11:42]accept exits with 8 [09:11:42]New connection [09:11:42]New thread 3067342180 created [09:11:42]Thread 3067198820 joined [09:11:42]Waiting for new connection... [09:11:42] Sock 8.Parse request [09:11:42]Sock 8.Check first char [09:11:42]Sock 8.First char is OK [09:11:42]request: POST /json_proto HTTP/1.0 [09:11:42]Method: POST [09:11:42]URL: /json_proto [09:11:42]Method is POST - this is cgi request [09:11:42]url: /json_proto [09:11:42]query_string will be loaded in cgi processing [09:11:42]execute_cgi json_proto POST (null) [09:11:42]execute_cgi path=json_proto method=POST [09:11:42]POST find Content-Length [09:11:42]Host: 172.17.32.69:8080 [09:11:42]Content-Length: 671 [09:11:42]Content-Type: application/json [09:11:42] [09:11:42]POST finish read [09:11:42]Found Content-Length = 671 [09:11:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 62.90, "quantity" : 5.570, "sum" : 350.35, "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" ] } } [09:11:42]execute_script... [09:11: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)1040705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 62.90, "quantity" : 5.570, "sum" : 350.35, "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" ] } } [09:11:42]POST & json_proto [09:11:42]process_json_proto [09:11:42]json parsed OK: [09:11:42]protocol is kg_v1.0 [09:11:42]action value=close_receipt [09:11:42]process_action close_receipt [09:11:42]cmd_close_receipt [09:11:42]MH_GetDate [09:11:42]Write to MH i2c: F0 00 00 A9 23 BB [09:11:42]Write i2c OK [09:11:42]MH_I2C_Read... [09:11:42]Read from MH i2c: F0 [09:11:42]MH_I2C_Read... [09:11:42]Read from MH i2c: F0 09 00 [09:11:42]MH_I2C_Read... [09:11:42]Read from MH i2c: F0 09 00 A9 23 00 D2 10 F4 65 D5 0F D3 65 1B [09:11:42]GetLastDocTimeStamp 1710493822 [09:11:42]current date 1710493906 [09:11:42]FM_GetShiftState [09:11:42]SAM_PROTO_GetShiftState [09:11:42]wFMCommunicate request_size=4 [09:11:42]MH_SAM_APDU [09:11:42]CAPDU: 80 13 01 00 [09:11:42]Write to MH i2c: E2 08 00 AA 23 80 13 01 00 00 00 00 00 4A [09:11:42]Write i2c OK [09:11:42]MH_I2C_Read... [09:11:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:42]Read from MH i2c: E2 [09:11:42]MH_I2C_Read... [09:11:42]Read from MH i2c: E2 0E 00 [09:11:42]MH_I2C_Read... [09:11:42]Read from MH i2c: E2 0E 00 AA 23 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 7E [09:11:42]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:11:42]wFMCommunicate OK [09:11:42]SAM_PROTO_GetShiftState done [09:11:42]FM_GetShiftState done [09:11:42]opened in 1710461757 [09:11:42]opened+sec_in_day 1710548157 [09:11:42]quantity*price = 35035 [09:11:42]sum+1 = 35036 [09:11:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.20 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 63 15.03.2024 09:11 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108540 ФПД: 39679998363851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T091146&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108540&fm=39679998363851&tin=02508201610067®Number=0000000000091911&sum=35000 [09:11:43]StoreToDocumentArchive [09:11:43]shift 320 fd 108540 [09:11:43]save to /storage/0320/doc_00108540 [09:11:43]save last doc name /storage/0320/doc_00108540 to /storage/kkm_last_doc_name [09:11:43]save OK [09:11:43]Clear old archive folders... [09:11:43]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:11:43]tlvbuf is 000DDB10 [09:11:43]SAM_PROTO_ClearQueue [09:11:43]wFMCommunicate request_size=4 [09:11:43]MH_SAM_APDU [09:11:43]CAPDU: 80 09 00 00 [09:11:43]Write to MH i2c: E2 08 00 B7 23 80 09 00 00 00 00 00 00 4C [09:11:43]Write i2c OK [09:11:43]MH_I2C_Read... [09:11:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:43]Read from MH i2c: E2 [09:11:43]MH_I2C_Read... [09:11:43]Read from MH i2c: E2 03 00 [09:11:43]MH_I2C_Read... [09:11:43]Read from MH i2c: E2 03 00 B7 23 00 90 00 4E [09:11:43]RAPDU: 90 00 [09:11:43]wFMCommunicate OK [09:11:43]SAM_PROTO_ClearQueue done [09:11:43]KKMCreateOFDPacket [09:11:43]OFDProtocolAddRootSTLVToBuf [09:11:43]FM_MakeSignedData [09:11:43]FM_MakeSignedData [09:11:43]SAM_PROTO_SignData [09:11:43]wFMCommunicate request_size=4 [09:11:43]MH_SAM_APDU [09:11:43]CAPDU: 80 0D 01 02 [09:11:43]Write to MH i2c: E2 08 00 B8 23 80 0D 01 02 00 00 00 00 54 [09:11:44]Write i2c OK [09:11:44]MH_I2C_Read... [09:11:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:44]Read from MH i2c: E2 [09:11:44]MH_I2C_Read... [09:11:44]Read from MH i2c: E2 03 00 [09:11:44]MH_I2C_Read... [09:11:44]Read from MH i2c: E2 03 00 B8 23 00 90 00 4F [09:11:44]RAPDU: 90 00 [09:11:44]wFMCommunicate OK [09:11:44]wFMCommunicate request_size=255 [09:11:44]MH_SAM_APDU [09:11:44]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DB 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 88 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 3F 00 00 00 F4 03 04 00 D2 10 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 FC A7 01 00 35 04 06 00 [09:11:44]Write to MH i2c: E2 02 01 B9 23 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DB 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 88 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 3F 00 00 00 F4 03 04 00 D2 10 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 FC A7 01 00 35 04 06 00 00 00 15 [09:11:44]Write i2c OK [09:11:44]MH_I2C_Read... [09:11:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:44]Read from MH i2c: E2 [09:11:44]MH_I2C_Read... [09:11:44]Read from MH i2c: E2 03 00 [09:11:44]MH_I2C_Read... [09:11:44]Read from MH i2c: E2 03 00 B9 23 00 90 00 50 [09:11:44]RAPDU: 90 00 [09:11:44]wFMCommunicate OK [09:11:44]wFMCommunicate request_size=11 [09:11:44]MH_SAM_APDU [09:11:44]CAPDU: 80 0D 02 02 06 24 16 B8 35 08 CB [09:11:44]Write to MH i2c: E2 0E 00 BA 23 80 0D 02 02 06 00 24 16 B8 35 08 CB 00 00 5D [09:11:44]Write i2c OK [09:11:44]MH_I2C_Read... [09:11:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:44]Read from MH i2c: E2 [09:11:44]MH_I2C_Read... [09:11:44]Read from MH i2c: E2 03 00 [09:11:44]MH_I2C_Read... [09:11:44]Read from MH i2c: E2 03 00 BA 23 00 90 00 51 [09:11:44]RAPDU: 90 00 [09:11:44]wFMCommunicate OK [09:11:44]wFMCommunicate request_size=4 [09:11:44]MH_SAM_APDU [09:11:44]CAPDU: 80 0D 03 02 [09:11:44]Write to MH i2c: E2 08 00 BB 23 80 0D 03 02 00 00 00 00 59 [09:11:44]Write i2c OK [09:11:44]MH_I2C_Read... [09:11:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:44]Read from MH i2c: E2 [09:11:44]MH_I2C_Read... [09:11:44]Read from MH i2c: E2 0B 00 [09:11:44]MH_I2C_Read... [09:11:44]Read from MH i2c: E2 0B 00 BB 23 00 0F 86 96 C0 71 11 64 38 90 00 63 [09:11:44]RAPDU: 0F 86 96 C0 71 11 64 38 90 00 [09:11:44]wFMCommunicate OK [09:11:44]SAM_PROTO_SignData done [09:11:44]FM_MakeSignedData done [09:11:44]CreateOFDProtocolMessage [09:11:44]wFMCommunicate request_size=4 [09:11:44]MH_SAM_APDU [09:11:44]CAPDU: 80 11 00 00 [09:11:44]Write to MH i2c: E2 08 00 BC 23 80 11 00 00 00 00 00 00 59 [09:11:44]Write i2c OK [09:11:44]MH_I2C_Read... [09:11:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:44]Read from MH i2c: E2 [09:11:44]MH_I2C_Read... [09:11:44]Read from MH i2c: E2 17 00 [09:11:44]MH_I2C_Read... [09:11:44]Read from MH i2c: E2 17 00 BC 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 AD [09:11:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:11:44]wFMCommunicate OK [09:11:44]CreateOFDProtocolMessage done [09:11:44]OFDSenderStorePacket 108540 [09:11:44]StoreOFDPacket docnum=108540 [09:11:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 01 00 00 A1 82 08 01 B9 AB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DB 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 88 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 3F 00 00 00 F4 03 04 00 D2 10 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 FC A7 01 00 35 04 06 00 24 16 B8 35 08 CB 0F 86 96 C0 71 11 64 38 [09:11:44]CheckFolder [09:11:44]dirname=/storage/ofd_packets [09:11:44]CheckFolder done [09:11:44]ProducePacketName [09:11:44]name=ofd_packets/00108540 [09:11:44]NVStorageSaveData ofd_packets/00108540 [09:11:44]File name is /storage/ofd_packets/00108540 [09:11:44]Write 302 bytes [09:11:44]NVStorageSaveData done [09:11:44]OFDSenderStorePacket done [09:11:44]KKMCreateOFDPacket done [09:11:44]NVStorageSaveData kkm_last_timestamp [09:11:44]File name is /storage/kkm_last_timestamp [09:11:44]Write 4 bytes [09:11:44]NVStorageSaveData done [09:11:44]ExternCall_PrintAddStr [09:11:44]wPrintStart [09:11:44]Write to MH i2c: 01 00 00 BD 23 E0 [09:11:44]Write i2c OK [09:11:44]MH_I2C_Read... [09:11:44]Read from MH i2c: 01 [09:11:44]MH_I2C_Read... [09:11:44]Read from MH i2c: 01 07 00 [09:11:44]MH_I2C_Read... [09:11:44]Read from MH i2c: 01 07 00 BD 23 00 00 00 00 00 FF 0F F5 [09:11:44]RasterBufferAndPrint [09:11:44]line Счет N : (1)1040705 [09:11:44]line ИНН: 02508201610067 [09:11:44]line Контрольно-Кассовый Чек [09:11:44]line ПРОДАЖА [09:11:44]line ТРК (МРК, ГНК) : 21 [09:11:44]line Товар: 2710124130 [09:11:44]line Super-92-К-5 [09:11:44]line 5.570 * 62.90 [09:11:44]line = 350.35 [09:11:44]line НДС 12% НСП 1% [09:11:44]line > о реализуемом товаре [09:11:44]line ОКРУГЛЕНИЕ: -0.35 [09:11:44]line ИТОГО: 350.00 [09:11:44]line Внесено: 350.00 [09:11:44]line СДАЧА: 0.00 [09:11:44]line НСП 1% : 3.10 [09:11:44]line НДС 12% : 37.20 [09:11:44]line Наличными: 350.00 [09:11:44]line Безнал.: 0.00 [09:11:44]line Место: АЗС № 15 "Партнер Нефть" [09:11:44]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [09:11:44]line СНО: Общий режим [09:11:44]line Чек 63 15.03.2024 09:11 [09:11:44]line Смена: 320 ФФД: 1.0 [09:11:44]line ЗНМ: 0300000266 [09:11:44]line РНМ: 0000000000091911 [09:11:44]line Версия ККМ: 001 [09:11:44]line ФМ: 0000000000871818 [09:11:44]line ФД: 108540 [09:11:44]line ФПД: 39679998363851 [09:11:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T091146&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108540&fm=39679998363851&tin=02508201610067®Number=0000000000091911&sum=35000 [09:11:44]OFD Sender: Processing packet 108540 [packets to send 29, broken 28] [09:11:44]ProducePacketName [09:11:44]name=ofd_packets/00108540 [09:11:44]OFD Sender: To server: pG, [09:11:44]CommunicateWithHost lk.salyk.kg:30040 [09:11:44]ConnectInit lk.salyk.kg [09:11:44]written 0, free lines is 4095 [09:11:44]Connected sock=10 [09:11: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 31 38 10 01 00 00 A1 82 08 01 B9 AB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DB 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 88 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 3F 00 00 00 F4 03 04 00 D2 10 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 FC A7 01 00 35 04 06 00 24 16 B8 35 08 CB 0F 86 96 C0 71 11 64 38 [09:11: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 31 38 4F 00 00 00 C3 30 47 00 D2 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 FC A7 01 00 F4 03 04 00 72 BC F3 65 B6 04 01 00 00 9B A9 C8 61 2A 4C DD 24 [09:11:45]CommunicateWithHost err = 0 [09:11:45]CheckOFDResponse [09:11:45]1017 (14) - 77093643461234 [09:11:45]1041 (16) - 0000000000871818 [09:11:45]1040 (4) - 108540 [09:11:45]1012 (4) - 15.03.2024 03:11 [09:11:45]1206 (1) - 0 [09:11:45]OFD Sender: Remove packet 108540 [09:11:45]ProducePacketName [09:11:45]name=ofd_packets/00108540 [09:11:45]NVStorageDeleteData [09:11:45]Write to MH i2c: 01 00 00 E8 23 0B [09:11:45]Write i2c OK [09:11:45]MH_I2C_Read... [09:11:45]Read from MH i2c: 01 [09:11:45]MH_I2C_Read... [09:11:45]Read from MH i2c: 01 07 00 [09:11:45]MH_I2C_Read... [09:11:45]Read from MH i2c: 01 07 00 E8 23 00 00 00 00 00 EB 0C 09 [09:11:45]RasterBufferAndPrint [09:11:45]line [09:11:45]line [09:11:45]line [09:11:45]line [09:11:45]line [09:11:45]written 0, free lines is 3316 [09:11:45]MH_Cut [09:11:45]Write to MH i2c: D1 01 00 EF 23 01 E4 [09:11:45]Write i2c OK [09:11:45]MH_I2C_Read... [09:11:45]Read from MH i2c: D1 [09:11:45]MH_I2C_Read... [09:11:45]Read from MH i2c: D1 01 00 [09:11:45]MH_I2C_Read... [09:11:45]Read from MH i2c: D1 01 00 EF 23 00 E3 [09:11:45]Write to MH i2c: 01 00 00 F0 23 13 [09:11:45]Write i2c OK [09:11:45]MH_I2C_Read... [09:11:45]OFD Sender: No OFD packet to send [09:11:46]*** Cut start [09:11:46]*** Purtial cut [09:11:46]*** Stage 1: CUTSNS_PIN = 1 [09:11:46]Read from MH i2c: 01 [09:11:46]MH_I2C_Read... [09:11:46]*** Stop cut motor [09:11:46]*** Cut end [09:11:46]Read from MH i2c: 01 07 00 [09:11:46]MH_I2C_Read... [09:11:46]Read from MH i2c: 01 07 00 F0 23 00 00 00 00 00 FF 0F 28 [09:11:46]process_action close_receipt done [09:11:46]requested_data is exist [09:11:46]produce_requested_data [09:11:46]requested_item fm.sn is exist - process it [09:11:46]wFMCommunicate request_size=4 [09:11:46]MH_SAM_APDU [09:11:46]CAPDU: 80 11 00 00 [09:11:46]Write to MH i2c: E2 08 00 F1 23 80 11 00 00 00 00 00 00 8E [09:11:46]Write i2c OK [09:11:46]MH_I2C_Read... [09:11:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:46]Read from MH i2c: E2 [09:11:46]MH_I2C_Read... [09:11:46]Read from MH i2c: E2 17 00 [09:11:46]MH_I2C_Read... [09:11:46]Read from MH i2c: E2 17 00 F1 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 E2 [09:11:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:11:46]wFMCommunicate OK [09:11:46]requested_item fd.num is exist - process it [09:11:46]SAM_PROTO_GetFieldsCounters [09:11:46]wFMCommunicate request_size=4 [09:11:46]MH_SAM_APDU [09:11:46]CAPDU: 80 13 00 00 [09:11:46]Write to MH i2c: E2 08 00 F2 23 80 13 00 00 00 00 00 00 91 [09:11:46]Write i2c OK [09:11:46]MH_I2C_Read... [09:11:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:46]Read from MH i2c: E2 [09:11:46]MH_I2C_Read... [09:11:46]Read from MH i2c: E2 62 00 [09:11:46]MH_I2C_Read... [09:11:46]Read from MH i2c: E2 62 00 F2 23 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 FC A7 01 00 0E 04 04 00 40 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 51 [09:11: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 FC A7 01 00 0E 04 04 00 40 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 [09:11:46]wFMCommunicate OK [09:11:46]SAM_PROTO_GetFieldsCounters done [09:11:46]requested_item shift.num is exist - process it [09:11:46]requested_item shift.opened is exist - process it [09:11:46]req_shift_opened [09:11:46]FM_GetShiftState [09:11:46]SAM_PROTO_GetShiftState [09:11:46]wFMCommunicate request_size=4 [09:11:46]MH_SAM_APDU [09:11:46]CAPDU: 80 13 01 00 [09:11:46]Write to MH i2c: E2 08 00 F3 23 80 13 01 00 00 00 00 00 93 [09:11:46]Write i2c OK [09:11:46]MH_I2C_Read... [09:11:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:46]Read from MH i2c: E2 [09:11:46]MH_I2C_Read... [09:11:46]Read from MH i2c: E2 0E 00 [09:11:46]MH_I2C_Read... [09:11:46]Read from MH i2c: E2 0E 00 F3 23 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 C7 [09:11:46]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:11:46]wFMCommunicate OK [09:11:46]SAM_PROTO_GetShiftState done [09:11:46]FM_GetShiftState done [09:11:46]req_shift_opened done [09:11:46]requested_item shift.open_date is exist - process it [09:11:46]req_shift_open_date [09:11:46]req_shift_open_date done [09:11:46]produce_requested_data done [09:11:46]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108540,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [09:11:46]process_action_free close_receipt [09:11:46]json_value_free [09:11:46]json_value_free done [09:11:46]process_json_proto returns [09:11:46]Send response to host [09:11:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108540,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [09:11:46]free response buf [09:11:46]execute_script done [09:11:46]execute_script returns [09:11:46]free content buf [09:11:46]Sock 8.Close socket [09:11:46]Sock 8.Thread stoped [09:11:50]OFD Sender: No OFD packet to send [09:11:55]OFD Sender: No OFD packet to send [09:12:00]OFD Sender: No OFD packet to send [09:12:05]OFD Sender: No OFD packet to send [09:12:10]OFD Sender: No OFD packet to send [09:12:15]OFD Sender: No OFD packet to send [09:12:20]OFD Sender: No OFD packet to send [09:12:25]OFD Sender: No OFD packet to send [09:12:30]OFD Sender: No OFD packet to send [09:12:35]OFD Sender: No OFD packet to send [09:12:40]OFD Sender: No OFD packet to send [09:12:45]OFD Sender: No OFD packet to send [09:12:50]OFD Sender: No OFD packet to send [09:12:55]OFD Sender: No OFD packet to send [09:13:00]OFD Sender: No OFD packet to send [09:13:05]OFD Sender: No OFD packet to send [09:13:10]OFD Sender: No OFD packet to send [09:13:15]OFD Sender: No OFD packet to send [09:13:20]OFD Sender: No OFD packet to send [09:13:25]OFD Sender: No OFD packet to send [09:13:30]OFD Sender: No OFD packet to send [09:13:35]OFD Sender: No OFD packet to send [09:13:40]OFD Sender: No OFD packet to send [09:13:45]OFD Sender: No OFD packet to send [09:13:50]OFD Sender: No OFD packet to send [09:13:55]OFD Sender: No OFD packet to send [09:14:00]OFD Sender: No OFD packet to send [09:14:05]OFD Sender: No OFD packet to send [09:14:10]OFD Sender: No OFD packet to send [09:14:15]OFD Sender: No OFD packet to send [09:14:20]OFD Sender: No OFD packet to send [09:14:25]OFD Sender: No OFD packet to send [09:14:30]OFD Sender: No OFD packet to send [09:14:35]OFD Sender: No OFD packet to send [09:14:40]OFD Sender: No OFD packet to send [09:14:45]OFD Sender: No OFD packet to send [09:14:50]OFD Sender: No OFD packet to send [09:14:55]OFD Sender: No OFD packet to send [09:15:00]OFD Sender: No OFD packet to send [09:15:05]OFD Sender: No OFD packet to send [09:15:10]OFD Sender: No OFD packet to send [09:15: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:15:57]accept exits with 9 [09:15:57]New connection [09:15:57]New thread 3067198820 created [09:15:57]Thread 3067342180 joined [09:15:57]Waiting for new connection... [09:15:57] Sock 9.Parse request [09:15:57]Sock 9.Check first char [09:15:57]Sock 9.First char is OK [09:15:57]request: POST /json_proto HTTP/1.0 [09:15:57]Method: POST [09:15:57]URL: /json_proto [09:15:57]Method is POST - this is cgi request [09:15:57]url: /json_proto [09:15:57]query_string will be loaded in cgi processing [09:15:57]execute_cgi json_proto POST (null) [09:15:57]execute_cgi path=json_proto method=POST [09:15:57]POST find Content-Length [09:15:57]Host: 172.17.32.69:8080 [09:15:57]Content-Length: 678 [09:15:57]Content-Type: application/json [09:15:57] [09:15:57]POST finish read [09:15:57]Found Content-Length = 678 [09:15:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 73", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 4.850, "sum" : 300.22, "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:15:57]execute_script... [09:15: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)1040706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 73", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 4.850, "sum" : 300.22, "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:15:57]POST & json_proto [09:15:57]process_json_proto [09:15:57]json parsed OK: [09:15:57]protocol is kg_v1.0 [09:15:57]action value=close_receipt [09:15:57]process_action close_receipt [09:15:57]cmd_close_receipt [09:15:57]MH_GetDate [09:15:57]Write to MH i2c: F0 00 00 F4 23 06 [09:15:57]Write i2c OK [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: F0 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: F0 09 00 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: F0 09 00 F4 23 00 D0 11 F4 65 D5 0F D3 65 65 [09:15:57]GetLastDocTimeStamp 1710493906 [09:15:57]current date 1710494160 [09:15:57]FM_GetShiftState [09:15:57]SAM_PROTO_GetShiftState [09:15:57]wFMCommunicate request_size=4 [09:15:57]MH_SAM_APDU [09:15:57]CAPDU: 80 13 01 00 [09:15:57]Write to MH i2c: E2 08 00 F5 23 80 13 01 00 00 00 00 00 95 [09:15:57]Write i2c OK [09:15:57]MH_I2C_Read... [09:15:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:57]Read from MH i2c: E2 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: E2 0E 00 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: E2 0E 00 F5 23 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 C9 [09:15:57]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:15:57]wFMCommunicate OK [09:15:57]SAM_PROTO_GetShiftState done [09:15:57]FM_GetShiftState done [09:15:57]opened in 1710461757 [09:15:57]opened+sec_in_day 1710548157 [09:15:57]quantity*price = 30021 [09:15:57]sum+1 = 30023 [09:15:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 64 15.03.2024 09:16 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108541 ФПД: 154005457579244 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T091600&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108541&fm=154005457579244&tin=02508201610067®Number=0000000000091911&sum=30000 [09:15:58]StoreToDocumentArchive [09:15:58]shift 320 fd 108541 [09:15:58]save to /storage/0320/doc_00108541 [09:15:58]save last doc name /storage/0320/doc_00108541 to /storage/kkm_last_doc_name [09:15:58]save OK [09:15:58]Clear old archive folders... [09:15:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:15:58]tlvbuf is B6F07380 [09:15:58]SAM_PROTO_ClearQueue [09:15:58]wFMCommunicate request_size=4 [09:15:58]MH_SAM_APDU [09:15:58]CAPDU: 80 09 00 00 [09:15:58]Write to MH i2c: E2 08 00 02 24 80 09 00 00 00 00 00 00 98 [09:15:58]Write i2c OK [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: E2 [09:15:58]MH_I2C_Read... [09:15:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:58]Read from MH i2c: E2 03 00 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: E2 03 00 02 24 00 90 00 9A [09:15:58]RAPDU: 90 00 [09:15:58]wFMCommunicate OK [09:15:58]SAM_PROTO_ClearQueue done [09:15:58]KKMCreateOFDPacket [09:15:58]OFDProtocolAddRootSTLVToBuf [09:15:58]FM_MakeSignedData [09:15:58]FM_MakeSignedData [09:15:58]SAM_PROTO_SignData [09:15:58]wFMCommunicate request_size=4 [09:15:58]MH_SAM_APDU [09:15:58]CAPDU: 80 0D 01 02 [09:15:58]Write to MH i2c: E2 08 00 03 24 80 0D 01 02 00 00 00 00 A0 [09:15:58]Write i2c OK [09:15:58]MH_I2C_Read... [09:15:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:58]Read from MH i2c: E2 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: E2 03 00 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: E2 03 00 03 24 00 90 00 9B [09:15:58]RAPDU: 90 00 [09:15:58]wFMCommunicate OK [09:15:58]wFMCommunicate request_size=255 [09:15:58]MH_SAM_APDU [09:15:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 40 00 00 00 F4 03 04 00 D0 11 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 FD A7 01 00 35 04 06 00 8C [09:15:58]Write to MH i2c: E2 02 01 04 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 40 00 00 00 F4 03 04 00 D0 11 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 FD A7 01 00 35 04 06 00 8C 00 00 6D [09:15:58]Write i2c OK [09:15:58]MH_I2C_Read... [09:15:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:58]Read from MH i2c: E2 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: E2 03 00 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: E2 03 00 04 24 00 90 00 9C [09:15:58]RAPDU: 90 00 [09:15:58]wFMCommunicate OK [09:15:58]wFMCommunicate request_size=10 [09:15:58]MH_SAM_APDU [09:15:58]CAPDU: 80 0D 02 02 05 11 30 97 AC EC [09:15:58]Write to MH i2c: E2 0D 00 05 24 80 0D 02 02 05 00 11 30 97 AC EC 00 00 1D [09:15:58]Write i2c OK [09:15:58]MH_I2C_Read... [09:15:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:58]Read from MH i2c: E2 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: E2 03 00 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: E2 03 00 05 24 00 90 00 9D [09:15:58]RAPDU: 90 00 [09:15:58]wFMCommunicate OK [09:15:58]wFMCommunicate request_size=4 [09:15:58]MH_SAM_APDU [09:15:58]CAPDU: 80 0D 03 02 [09:15:58]Write to MH i2c: E2 08 00 06 24 80 0D 03 02 00 00 00 00 A5 [09:15:58]Write i2c OK [09:15:58]MH_I2C_Read... [09:15:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:15:58]Read from MH i2c: E2 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: E2 0B 00 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: E2 0B 00 06 24 00 FB 73 38 AE 2F 7B 6E C7 90 00 D9 [09:15:58]RAPDU: FB 73 38 AE 2F 7B 6E C7 90 00 [09:15:58]wFMCommunicate OK [09:15:58]SAM_PROTO_SignData done [09:15:58]FM_MakeSignedData done [09:15:58]CreateOFDProtocolMessage [09:15:58]wFMCommunicate request_size=4 [09:15:58]MH_SAM_APDU [09:15:58]CAPDU: 80 11 00 00 [09:15:58]Write to MH i2c: E2 08 00 07 24 80 11 00 00 00 00 00 00 A5 [09:15:58]Write i2c OK [09:15:58]MH_I2C_Read... [09:15:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:58]Read from MH i2c: E2 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: E2 17 00 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: E2 17 00 07 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 F9 [09:15:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:15:58]wFMCommunicate OK [09:15:58]CreateOFDProtocolMessage done [09:15:58]OFDSenderStorePacket 108541 [09:15:58]StoreOFDPacket docnum=108541 [09:15:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 62 79 07 01 82 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 40 00 00 00 F4 03 04 00 D0 11 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 FD A7 01 00 35 04 06 00 8C 11 30 97 AC EC FB 73 38 AE 2F 7B 6E C7 [09:15:58]CheckFolder [09:15:58]dirname=/storage/ofd_packets [09:15:58]CheckFolder done [09:15:58]ProducePacketName [09:15:58]name=ofd_packets/00108541 [09:15:58]NVStorageSaveData ofd_packets/00108541 [09:15:58]File name is /storage/ofd_packets/00108541 [09:15:58]Write 301 bytes [09:15:58]NVStorageSaveData done [09:15:58]OFDSenderStorePacket done [09:15:58]KKMCreateOFDPacket done [09:15:58]NVStorageSaveData kkm_last_timestamp [09:15:58]File name is /storage/kkm_last_timestamp [09:15:58]Write 4 bytes [09:15:58]NVStorageSaveData done [09:15:58]ExternCall_PrintAddStr [09:15:58]wPrintStart [09:15:58]Write to MH i2c: 01 00 00 08 24 2C [09:15:58]Write i2c OK [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: 01 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: 01 07 00 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: 01 07 00 08 24 00 00 00 00 00 FF 0F 41 [09:15:58]RasterBufferAndPrint [09:15:58]line Счет N : (1)1040706 [09:15:58]line ИНН: 02508201610067 [09:15:58]line Контрольно-Кассовый Чек [09:15:58]line ПРОДАЖА [09:15:58]line ТРК (МРК, ГНК) : 73 [09:15:58]line Товар: 2710124130 [09:15:58]line Аи-92-К-5 [09:15:58]line 4.850 * 61.90 [09:15:58]line = 300.22 [09:15:58]line НДС 12% НСП 1% [09:15:58]line > о реализуемом товаре [09:15:58]line ОКРУГЛЕНИЕ: -0.22 [09:15:58]line ИТОГО: 300.00 [09:15:58]line Внесено: 300.00 [09:15:58]line СДАЧА: 0.00 [09:15:58]line НСП 1% : 2.66 [09:15:58]line НДС 12% : 31.88 [09:15:58]line Наличными: 300.00 [09:15:58]line Безнал.: 0.00 [09:15:58]line Место: АЗС № 15 "Партнер Нефть" [09:15:58]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [09:15:58]line СНО: Общий режим [09:15:58]line Чек 64 15.03.2024 09:16 [09:15:58]line Смена: 320 ФФД: 1.0 [09:15:58]line ЗНМ: 0300000266 [09:15:58]line РНМ: 0000000000091911 [09:15:58]line Версия ККМ: 001 [09:15:58]line ФМ: 0000000000871818 [09:15:58]line ФД: 108541 [09:15:58]line ФПД: 154005457579244 [09:15:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T091600&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108541&fm=154005457579244&tin=02508201610067®Number=0000000000091911&sum=30000 [09:15:59]written 0, free lines is 4095 [09:15:59]OFD Sender: Processing packet 108541 [packets to send 29, broken 28] [09:15:59]ProducePacketName [09:15:59]name=ofd_packets/00108541 [09:15:59]OFD Sender: To server: pG, [09:15:59]CommunicateWithHost lk.salyk.kg:30040 [09:15:59]ConnectInit lk.salyk.kg [09:15:59]Connected sock=10 [09:15: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 31 38 0F 01 00 00 62 79 07 01 82 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 40 00 00 00 F4 03 04 00 D0 11 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 FD A7 01 00 35 04 06 00 8C 11 30 97 AC EC FB 73 38 AE 2F 7B 6E C7 [09:15: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 31 38 4F 00 00 00 62 4F 47 00 01 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 FD A7 01 00 F4 03 04 00 71 BD F3 65 B6 04 01 00 00 70 E0 A9 B6 DA CF AA 75 [09:15:59]CommunicateWithHost err = 0 [09:15:59]CheckOFDResponse [09:15:59]1017 (14) - 77093643461234 [09:15:59]1041 (16) - 0000000000871818 [09:15:59]1040 (4) - 108541 [09:15:59]1012 (4) - 15.03.2024 03:16 [09:15:59]1206 (1) - 0 [09:15:59]OFD Sender: Remove packet 108541 [09:15:59]ProducePacketName [09:15:59]name=ofd_packets/00108541 [09:15:59]NVStorageDeleteData [09:15:59]Write to MH i2c: 01 00 00 33 24 57 [09:15:59]Write i2c OK [09:15:59]MH_I2C_Read... [09:15:59]Read from MH i2c: 01 [09:15:59]MH_I2C_Read... [09:15:59]Read from MH i2c: 01 07 00 [09:15:59]MH_I2C_Read... [09:15:59]Read from MH i2c: 01 07 00 33 24 00 00 00 00 00 D1 0C 3B [09:15:59]RasterBufferAndPrint [09:15:59]line [09:15:59]line [09:15:59]line [09:15:59]line [09:15:59]line [09:15:59]written 0, free lines is 3289 [09:15:59]MH_Cut [09:15:59]Write to MH i2c: D1 01 00 3A 24 01 30 [09:15:59]Write i2c OK [09:15:59]MH_I2C_Read... [09:15:59]Read from MH i2c: D1 [09:15:59]MH_I2C_Read... [09:15:59]Read from MH i2c: D1 01 00 [09:15:59]MH_I2C_Read... [09:15:59]Read from MH i2c: D1 01 00 3A 24 00 2F [09:15:59]Write to MH i2c: 01 00 00 3B 24 5F [09:15:59]Write i2c OK [09:15:59]MH_I2C_Read... [09:16:00]OFD Sender: No OFD packet to send [09:16:00]*** Cut start [09:16:00]*** Purtial cut [09:16:00]*** Stage 1: CUTSNS_PIN = 1 [09:16:00]Read from MH i2c: 01 [09:16:00]MH_I2C_Read... [09:16:00]*** Stop cut motor [09:16:00]*** Cut end [09:16:00]Read from MH i2c: 01 07 00 [09:16:00]MH_I2C_Read... [09:16:00]Read from MH i2c: 01 07 00 3B 24 00 00 00 00 00 FF 0F 74 [09:16:00]process_action close_receipt done [09:16:00]requested_data is exist [09:16:00]produce_requested_data [09:16:00]requested_item fm.sn is exist - process it [09:16:00]wFMCommunicate request_size=4 [09:16:00]MH_SAM_APDU [09:16:00]CAPDU: 80 11 00 00 [09:16:00]Write to MH i2c: E2 08 00 3C 24 80 11 00 00 00 00 00 00 DA [09:16:00]Write i2c OK [09:16:00]MH_I2C_Read... [09:16:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:00]Read from MH i2c: E2 [09:16:00]MH_I2C_Read... [09:16:00]Read from MH i2c: E2 17 00 [09:16:00]MH_I2C_Read... [09:16:00]Read from MH i2c: E2 17 00 3C 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 2E [09:16:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:16:00]wFMCommunicate OK [09:16:00]requested_item fd.num is exist - process it [09:16:00]SAM_PROTO_GetFieldsCounters [09:16:00]wFMCommunicate request_size=4 [09:16:00]MH_SAM_APDU [09:16:00]CAPDU: 80 13 00 00 [09:16:00]Write to MH i2c: E2 08 00 3D 24 80 13 00 00 00 00 00 00 DD [09:16:00]Write i2c OK [09:16:00]MH_I2C_Read... [09:16:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:01]Read from MH i2c: E2 [09:16:01]MH_I2C_Read... [09:16:01]Read from MH i2c: E2 62 00 [09:16:01]MH_I2C_Read... [09:16:01]Read from MH i2c: E2 62 00 3D 24 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 FD A7 01 00 0E 04 04 00 40 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 A1 [09:16: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 FD A7 01 00 0E 04 04 00 40 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 [09:16:01]wFMCommunicate OK [09:16:01]SAM_PROTO_GetFieldsCounters done [09:16:01]requested_item shift.num is exist - process it [09:16:01]requested_item shift.opened is exist - process it [09:16:01]req_shift_opened [09:16:01]FM_GetShiftState [09:16:01]SAM_PROTO_GetShiftState [09:16:01]wFMCommunicate request_size=4 [09:16:01]MH_SAM_APDU [09:16:01]CAPDU: 80 13 01 00 [09:16:01]Write to MH i2c: E2 08 00 3E 24 80 13 01 00 00 00 00 00 DF [09:16:01]Write i2c OK [09:16:01]MH_I2C_Read... [09:16:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:01]Read from MH i2c: E2 [09:16:01]MH_I2C_Read... [09:16:01]Read from MH i2c: E2 0E 00 [09:16:01]MH_I2C_Read... [09:16:01]Read from MH i2c: E2 0E 00 3E 24 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 13 [09:16:01]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:16:01]wFMCommunicate OK [09:16:01]SAM_PROTO_GetShiftState done [09:16:01]FM_GetShiftState done [09:16:01]req_shift_opened done [09:16:01]requested_item shift.open_date is exist - process it [09:16:01]req_shift_open_date [09:16:01]req_shift_open_date done [09:16:01]produce_requested_data done [09:16:01]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108541,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [09:16:01]process_action_free close_receipt [09:16:01]json_value_free [09:16:01]json_value_free done [09:16:01]process_json_proto returns [09:16:01]Send response to host [09:16:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108541,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [09:16:01]free response buf [09:16:01]execute_script done [09:16:01]execute_script returns [09:16:01]free content buf [09:16:01]Sock 9.Close socket [09:16:01]Sock 9.Thread stoped [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:26]int [09:17:26]Write to MH i2c: 01 00 00 3F 24 63 [09:17:26]*** FLAG_PRN_KEY set [09:17:26]Write i2c OK [09:17:26]MH_I2C_Read... [09:17:26]Read from MH i2c: 01 [09:17:26]MH_I2C_Read... [09:17:26]Read from MH i2c: 01 07 00 [09:17:26]MH_I2C_Read... [09:17:26]Read from MH i2c: 01 07 00 3F 24 00 08 00 00 00 FF 0F 80 [09:17:26]state=0 [09:17:26]Key pressed [09:17:26]Feed [09:17:26]Write to MH i2c: D8 00 00 40 24 3B [09:17:26]Write i2c OK [09:17:26]MH_I2C_Read... [09:17:26]Read from MH i2c: D8 [09:17:26]MH_I2C_Read... [09:17:26]Read from MH i2c: D8 01 00 [09:17:26]MH_I2C_Read... [09:17:26]Read from MH i2c: D8 01 00 40 24 00 3C [09:17:26]int [09:17:26]Write to MH i2c: 01 00 00 41 24 65 [09:17:26]Write i2c OK [09:17:26]MH_I2C_Read... [09:17:26]Read from MH i2c: 01 [09:17:26]MH_I2C_Read... [09:17:26]Read from MH i2c: 01 07 00 [09:17:26]MH_I2C_Read... [09:17:26]Read from MH i2c: 01 07 00 41 24 00 48 00 00 00 3C 00 F0 [09:17:26]state=2 [09:17:26]Key pressed [09:17:26]int [09:17:26]Write to MH i2c: 01 00 00 42 24 66 [09:17:26]*** FLAG_PRN_KEY reset [09:17:26]Write i2c OK [09:17:26]MH_I2C_Read... [09:17:26]Read from MH i2c: 01 [09:17:26]MH_I2C_Read... [09:17:26]Read from MH i2c: 01 07 00 [09:17:26]MH_I2C_Read... [09:17:26]Read from MH i2c: 01 07 00 42 24 00 00 00 00 00 F7 0F 73 [09:17:26]state=2 [09:17:26]Stop feed [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:11]accept exits with 8 [09:18:11]New connection [09:18:11]New thread 3067342180 created [09:18:11]Thread 3067198820 joined [09:18:11]Waiting for new connection... [09:18:11] Sock 8.Parse request [09:18:11]Sock 8.Check first char [09:18:11]Sock 8.First char is OK [09:18:11]request: POST /json_proto HTTP/1.0 [09:18:11]Method: POST [09:18:11]URL: /json_proto [09:18:11]Method is POST - this is cgi request [09:18:11]url: /json_proto [09:18:11]query_string will be loaded in cgi processing [09:18:11]execute_cgi json_proto POST (null) [09:18:11]execute_cgi path=json_proto method=POST [09:18:11]POST find Content-Length [09:18:11]Host: 172.17.32.69:8080 [09:18:11]Content-Length: 1215 [09:18:11]Content-Type: application/json [09:18:11] [09:18:11]POST finish read [09:18:11]Found Content-Length = 1215 [09:18:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040707\u000A15.03.2024 09:10\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 83\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1857.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3871598;3871597;3871596\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:11]execute_script... [09:18:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040707\u000A15.03.2024 09:10\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 83\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1857.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3871598;3871597;3871596\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:11]POST & json_proto [09:18:11]process_json_proto [09:18:11]json parsed OK: [09:18:11]protocol is kg_v1.0 [09:18:11]action value=print_text [09:18:11]process_action print_text [09:18:11]cmd_print_text [09:18:11]ExternCall_PrintAddStr [09:18:11]wPrintStart [09:18:11]Write to MH i2c: 01 00 00 43 24 67 [09:18:11]Write i2c OK [09:18:11]MH_I2C_Read... [09:18:11]Read from MH i2c: 01 [09:18:11]MH_I2C_Read... [09:18:11]Read from MH i2c: 01 07 00 [09:18:11]MH_I2C_Read... [09:18:11]Read from MH i2c: 01 07 00 43 24 00 00 00 00 00 FF 0F 7C [09:18:11]RasterBufferAndPrint [09:18:11]line *****ТОВАРНЫЙ ЧЕК***** [09:18:11]line АЗС 15 [09:18:11]line Партнер нефть [09:18:11]line 02508201610067 [09:18:11]line Кассир : Максатбек у Д. [09:18:11]line Счет N : (1)1040707 [09:18:11]line 15.03.2024 09:10 [09:18:11]line ПРОДАЖА [09:18:11]line ТРК (МРК, ГНК): 83 [09:18:11]line Вид ГСМ : 2710124130 [09:18:11]line Аи-92-К-5 [09:18:11]line 30.000 x 61.90 [09:18:11]line ИТОГ: 1857.00 [09:18:11]line Тип оплаты: Талоны: Партнер нефть [09:18:11]line 3871598;3871597;3871596 [09:18:11]line ______________________ [09:18:11]line (подпись) [09:18:11]written 0, free lines is 4095 [09:18:11]Write to MH i2c: 01 00 00 58 24 7C [09:18:11]Write i2c OK [09:18:11]MH_I2C_Read... [09:18:11]Read from MH i2c: 01 [09:18:11]MH_I2C_Read... [09:18:11]Read from MH i2c: 01 07 00 [09:18:11]MH_I2C_Read... [09:18:11]Read from MH i2c: 01 07 00 58 24 00 00 00 00 00 06 0E 97 [09:18:11]RasterBufferAndPrint [09:18:11]line [09:18:11]line [09:18:11]line [09:18:11]line [09:18:11]line [09:18:11]written 0, free lines is 3592 [09:18:11]MH_Cut [09:18:11]Write to MH i2c: D1 01 00 5F 24 01 55 [09:18:11]Write i2c OK [09:18:11]MH_I2C_Read... [09:18:11]Read from MH i2c: D1 [09:18:11]MH_I2C_Read... [09:18:11]Read from MH i2c: D1 01 00 [09:18:11]MH_I2C_Read... [09:18:11]Read from MH i2c: D1 01 00 5F 24 00 54 [09:18:11]Write to MH i2c: 01 00 00 60 24 84 [09:18:11]Write i2c OK [09:18:11]MH_I2C_Read... [09:18:12]*** Cut start [09:18:12]*** Purtial cut [09:18:12]*** Stage 1: CUTSNS_PIN = 1 [09:18:12]Read from MH i2c: 01 [09:18:12]MH_I2C_Read... [09:18:12]*** Stop cut motor [09:18:12]*** Cut end [09:18:12]Read from MH i2c: 01 07 00 [09:18:12]MH_I2C_Read... [09:18:12]Read from MH i2c: 01 07 00 60 24 00 00 00 00 00 FF 0F 99 [09:18:12]process_action print_text done [09:18:12]requested_data is exist [09:18:12]produce_requested_data [09:18:12]requested_item fm.sn is exist - process it [09:18:12]wFMCommunicate request_size=4 [09:18:12]MH_SAM_APDU [09:18:12]CAPDU: 80 11 00 00 [09:18:12]Write to MH i2c: E2 08 00 61 24 80 11 00 00 00 00 00 00 FF [09:18:12]Write i2c OK [09:18:12]MH_I2C_Read... [09:18:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:12]Read from MH i2c: E2 [09:18:12]MH_I2C_Read... [09:18:12]Read from MH i2c: E2 17 00 [09:18:12]MH_I2C_Read... [09:18:12]Read from MH i2c: E2 17 00 61 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 53 [09:18:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:18:12]wFMCommunicate OK [09:18:12]requested_item fd.num is exist - process it [09:18:12]SAM_PROTO_GetFieldsCounters [09:18:12]wFMCommunicate request_size=4 [09:18:12]MH_SAM_APDU [09:18:12]CAPDU: 80 13 00 00 [09:18:12]Write to MH i2c: E2 08 00 62 24 80 13 00 00 00 00 00 00 02 [09:18:12]Write i2c OK [09:18:12]MH_I2C_Read... [09:18:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:18:12]Read from MH i2c: E2 [09:18:12]MH_I2C_Read... [09:18:12]Read from MH i2c: E2 62 00 [09:18:12]MH_I2C_Read... [09:18:12]Read from MH i2c: E2 62 00 62 24 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 FD A7 01 00 0E 04 04 00 40 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 C6 [09:18:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 FD A7 01 00 0E 04 04 00 40 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 [09:18:12]wFMCommunicate OK [09:18:12]SAM_PROTO_GetFieldsCounters done [09:18:12]requested_item shift.num is exist - process it [09:18:12]requested_item shift.opened is exist - process it [09:18:12]req_shift_opened [09:18:12]FM_GetShiftState [09:18:12]SAM_PROTO_GetShiftState [09:18:12]wFMCommunicate request_size=4 [09:18:12]MH_SAM_APDU [09:18:12]CAPDU: 80 13 01 00 [09:18:12]Write to MH i2c: E2 08 00 63 24 80 13 01 00 00 00 00 00 04 [09:18:12]Write i2c OK [09:18:12]MH_I2C_Read... [09:18:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:12]Read from MH i2c: E2 [09:18:12]MH_I2C_Read... [09:18:12]Read from MH i2c: E2 0E 00 [09:18:12]MH_I2C_Read... [09:18:12]Read from MH i2c: E2 0E 00 63 24 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 38 [09:18:12]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:18:12]wFMCommunicate OK [09:18:12]SAM_PROTO_GetShiftState done [09:18:12]FM_GetShiftState done [09:18:12]req_shift_opened done [09:18:12]requested_item shift.open_date is exist - process it [09:18:12]req_shift_open_date [09:18:12]req_shift_open_date done [09:18:12]produce_requested_data done [09:18:12]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108541,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [09:18:12]process_action_free print_text [09:18:12]json_value_free [09:18:12]json_value_free done [09:18:12]process_json_proto returns [09:18:12]Send response to host [09:18:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108541,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [09:18:12]free response buf [09:18:12]execute_script done [09:18:12]execute_script returns [09:18:12]free content buf [09:18:12]Sock 8.Close socket [09:18:12]Sock 8.Thread stoped [09:18:15]OFD Sender: No OFD packet to send [09:18:20]OFD Sender: No OFD packet to send [09:18:25]OFD Sender: No OFD packet to send [09:18:30]OFD Sender: No OFD packet to send [09:18:35]OFD Sender: No OFD packet to send [09:18:40]OFD Sender: No OFD packet to send [09:18:45]OFD Sender: No OFD packet to send [09:18:50]OFD Sender: No OFD packet to send [09:18:55]OFD Sender: No OFD packet to send [09:19:00]OFD Sender: No OFD packet to send [09:19:05]OFD Sender: No OFD packet to send [09:19:10]OFD Sender: No OFD packet to send [09:19:15]OFD Sender: No OFD packet to send [09:19:20]OFD Sender: No OFD packet to send [09:19:25]OFD Sender: No OFD packet to send [09:19:30]OFD Sender: No OFD packet to send [09:19:30]accept exits with 10 [09:19:30]New connection [09:19:30]New thread 3067198820 created [09:19:30]Thread 3067342180 joined [09:19:30]Waiting for new connection... [09:19:30] Sock 10.Parse request [09:19:30]Sock 10.Check first char [09:19:30]Sock 10.First char is OK [09:19:30]request: POST /json_proto HTTP/1.0 [09:19:30]Method: POST [09:19:30]URL: /json_proto [09:19:30]Method is POST - this is cgi request [09:19:30]url: /json_proto [09:19:30]query_string will be loaded in cgi processing [09:19:30]execute_cgi json_proto POST (null) [09:19:30]execute_cgi path=json_proto method=POST [09:19:30]POST find Content-Length [09:19:30]Host: 172.17.32.69:8080 [09:19:30]Content-Length: 687 [09:19:30]Content-Type: application/json [09:19:30] [09:19:30]POST finish read [09:19:30]Found Content-Length = 687 [09:19:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040708", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "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:19:30]execute_script... [09:19:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040708", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "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:19:30]POST & json_proto [09:19:30]process_json_proto [09:19:30]json parsed OK: [09:19:30]protocol is kg_v1.0 [09:19:30]action value=close_receipt [09:19:30]process_action close_receipt [09:19:30]cmd_close_receipt [09:19:30]MH_GetDate [09:19:30]Write to MH i2c: F0 00 00 64 24 77 [09:19:30]Write i2c OK [09:19:30]MH_I2C_Read... [09:19:30]Read from MH i2c: F0 [09:19:30]MH_I2C_Read... [09:19:30]Read from MH i2c: F0 09 00 [09:19:30]MH_I2C_Read... [09:19:30]Read from MH i2c: F0 09 00 64 24 00 A6 12 F4 65 D5 0F D3 65 AD [09:19:30]GetLastDocTimeStamp 1710494160 [09:19:30]current date 1710494374 [09:19:30]FM_GetShiftState [09:19:30]SAM_PROTO_GetShiftState [09:19:30]wFMCommunicate request_size=4 [09:19:30]MH_SAM_APDU [09:19:30]CAPDU: 80 13 01 00 [09:19:30]Write to MH i2c: E2 08 00 65 24 80 13 01 00 00 00 00 00 06 [09:19:30]Write i2c OK [09:19:30]MH_I2C_Read... [09:19:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:30]Read from MH i2c: E2 [09:19:30]MH_I2C_Read... [09:19:30]Read from MH i2c: E2 0E 00 [09:19:30]MH_I2C_Read... [09:19:30]Read from MH i2c: E2 0E 00 65 24 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 3A [09:19:30]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:19:30]wFMCommunicate OK [09:19:30]SAM_PROTO_GetShiftState done [09:19:30]FM_GetShiftState done [09:19:30]opened in 1710461757 [09:19:30]opened+sec_in_day 1710548157 [09:19:30]quantity*price = 100039 [09:19:30]sum+1 = 100041 [09:19:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 65 15.03.2024 09:19 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108542 ФПД: 278541901628191 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T091934&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108542&fm=278541901628191&tin=02508201610067®Number=0000000000091911&sum=100000 [09:19:31]StoreToDocumentArchive [09:19:31]shift 320 fd 108542 [09:19:31]save to /storage/0320/doc_00108542 [09:19:31]save last doc name /storage/0320/doc_00108542 to /storage/kkm_last_doc_name [09:19:31]save OK [09:19:31]Clear old archive folders... [09:19:31]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:19:31]tlvbuf is 000ADDC0 [09:19:31]SAM_PROTO_ClearQueue [09:19:31]wFMCommunicate request_size=4 [09:19:31]MH_SAM_APDU [09:19:31]CAPDU: 80 09 00 00 [09:19:31]Write to MH i2c: E2 08 00 72 24 80 09 00 00 00 00 00 00 08 [09:19:31]Write i2c OK [09:19:31]MH_I2C_Read... [09:19:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:19:31]Read from MH i2c: E2 [09:19:31]MH_I2C_Read... [09:19:31]Read from MH i2c: E2 03 00 [09:19:31]MH_I2C_Read... [09:19:31]Read from MH i2c: E2 03 00 72 24 00 90 00 0A [09:19:31]RAPDU: 90 00 [09:19:31]wFMCommunicate OK [09:19:31]SAM_PROTO_ClearQueue done [09:19:31]KKMCreateOFDPacket [09:19:31]OFDProtocolAddRootSTLVToBuf [09:19:31]FM_MakeSignedData [09:19:31]FM_MakeSignedData [09:19:31]SAM_PROTO_SignData [09:19:31]wFMCommunicate request_size=4 [09:19:31]MH_SAM_APDU [09:19:31]CAPDU: 80 0D 01 02 [09:19:31]Write to MH i2c: E2 08 00 73 24 80 0D 01 02 00 00 00 00 10 [09:19:31]Write i2c OK [09:19:31]MH_I2C_Read... [09:19:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:19:31]Read from MH i2c: E2 [09:19:31]MH_I2C_Read... [09:19:31]Read from MH i2c: E2 03 00 [09:19:31]MH_I2C_Read... [09:19:31]Read from MH i2c: E2 03 00 73 24 00 90 00 0B [09:19:31]RAPDU: 90 00 [09:19:31]wFMCommunicate OK [09:19:31]wFMCommunicate request_size=255 [09:19:31]MH_SAM_APDU [09:19:31]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 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 80 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 41 00 00 00 F4 03 04 00 A6 12 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 FE A7 01 00 35 04 06 00 [09:19:31]Write to MH i2c: E2 02 01 74 24 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 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 80 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 41 00 00 00 F4 03 04 00 A6 12 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 FE A7 01 00 35 04 06 00 00 00 6B [09:19:31]Write i2c OK [09:19:31]MH_I2C_Read... [09:19:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:32]Read from MH i2c: E2 [09:19:32]MH_I2C_Read... [09:19:32]Read from MH i2c: E2 03 00 [09:19:32]MH_I2C_Read... [09:19:32]Read from MH i2c: E2 03 00 74 24 00 90 00 0C [09:19:32]RAPDU: 90 00 [09:19:32]wFMCommunicate OK [09:19:32]wFMCommunicate request_size=11 [09:19:32]MH_SAM_APDU [09:19:32]CAPDU: 80 0D 02 02 06 FD 55 17 1A 03 1F [09:19:32]Write to MH i2c: E2 0E 00 75 24 80 0D 02 02 06 00 FD 55 17 1A 03 1F 00 00 C4 [09:19:32]Write i2c OK [09:19:32]MH_I2C_Read... [09:19:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:32]Read from MH i2c: E2 [09:19:32]MH_I2C_Read... [09:19:32]Read from MH i2c: E2 03 00 [09:19:32]MH_I2C_Read... [09:19:32]Read from MH i2c: E2 03 00 75 24 00 90 00 0D [09:19:32]RAPDU: 90 00 [09:19:32]wFMCommunicate OK [09:19:32]wFMCommunicate request_size=4 [09:19:32]MH_SAM_APDU [09:19:32]CAPDU: 80 0D 03 02 [09:19:32]Write to MH i2c: E2 08 00 76 24 80 0D 03 02 00 00 00 00 15 [09:19:32]Write i2c OK [09:19:32]MH_I2C_Read... [09:19:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:19:32]Read from MH i2c: E2 [09:19:32]MH_I2C_Read... [09:19:32]Read from MH i2c: E2 0B 00 [09:19:32]MH_I2C_Read... [09:19:32]Read from MH i2c: E2 0B 00 76 24 00 D4 84 88 E0 C5 C6 37 BB 90 00 53 [09:19:32]RAPDU: D4 84 88 E0 C5 C6 37 BB 90 00 [09:19:32]wFMCommunicate OK [09:19:32]SAM_PROTO_SignData done [09:19:32]FM_MakeSignedData done [09:19:32]CreateOFDProtocolMessage [09:19:32]wFMCommunicate request_size=4 [09:19:32]MH_SAM_APDU [09:19:32]CAPDU: 80 11 00 00 [09:19:32]Write to MH i2c: E2 08 00 77 24 80 11 00 00 00 00 00 00 15 [09:19:32]Write i2c OK [09:19:32]MH_I2C_Read... [09:19:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:32]Read from MH i2c: E2 [09:19:32]MH_I2C_Read... [09:19:32]Read from MH i2c: E2 17 00 [09:19:32]MH_I2C_Read... [09:19:32]Read from MH i2c: E2 17 00 77 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 69 [09:19:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:19:32]wFMCommunicate OK [09:19:32]CreateOFDProtocolMessage done [09:19:32]OFDSenderStorePacket 108542 [09:19:32]StoreOFDPacket docnum=108542 [09:19:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 01 00 00 3B F6 08 01 B3 6D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 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 80 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 41 00 00 00 F4 03 04 00 A6 12 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 FE A7 01 00 35 04 06 00 FD 55 17 1A 03 1F D4 84 88 E0 C5 C6 37 BB [09:19:32]CheckFolder [09:19:32]dirname=/storage/ofd_packets [09:19:32]CheckFolder done [09:19:32]ProducePacketName [09:19:32]name=ofd_packets/00108542 [09:19:32]NVStorageSaveData ofd_packets/00108542 [09:19:32]File name is /storage/ofd_packets/00108542 [09:19:32]Write 302 bytes [09:19:32]NVStorageSaveData done [09:19:32]OFDSenderStorePacket done [09:19:32]KKMCreateOFDPacket done [09:19:32]NVStorageSaveData kkm_last_timestamp [09:19:32]File name is /storage/kkm_last_timestamp [09:19:32]Write 4 bytes [09:19:32]NVStorageSaveData done [09:19:32]ExternCall_PrintAddStr [09:19:32]wPrintStart [09:19:32]Write to MH i2c: 01 00 00 78 24 9C [09:19:32]Write i2c OK [09:19:32]MH_I2C_Read... [09:19:32]Read from MH i2c: 01 [09:19:32]MH_I2C_Read... [09:19:32]Read from MH i2c: 01 07 00 [09:19:32]MH_I2C_Read... [09:19:32]Read from MH i2c: 01 07 00 78 24 00 00 00 00 00 FF 0F B1 [09:19:32]RasterBufferAndPrint [09:19:32]line Счет N : (1)1040708 [09:19:32]line ИНН: 02508201610067 [09:19:32]line Контрольно-Кассовый Чек [09:19:32]line ПРОДАЖА [09:19:32]line ТРК (МРК, ГНК) : 6 [09:19:32]line Товар: 2710194210 [09:19:32]line ДТ(л)-К-5 [09:19:32]line 14.110 * 70.90 [09:19:32]line = 1000.40 [09:19:32]line НДС 12% НСП 1% [09:19:32]line > о реализуемом товаре [09:19:32]line ОКРУГЛЕНИЕ: -0.40 [09:19:32]line ИТОГО: 1000.00 [09:19:32]line Внесено: 1000.00 [09:19:32]line СДАЧА: 0.00 [09:19:32]line НСП 1% : 8.85 [09:19:32]line НДС 12% : 106.24 [09:19:32]line Наличными: 1000.00 [09:19:32]line Безнал.: 0.00 [09:19:32]line Место: АЗС № 15 "Партнер Нефть" [09:19:32]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [09:19:32]line СНО: Общий режим [09:19:32]line Чек 65 15.03.2024 09:19 [09:19:32]line Смена: 320 ФФД: 1.0 [09:19:32]line ЗНМ: 0300000266 [09:19:32]line РНМ: 0000000000091911 [09:19:32]line Версия ККМ: 001 [09:19:32]line ФМ: 0000000000871818 [09:19:32]line ФД: 108542 [09:19:32]line ФПД: 278541901628191 [09:19:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T091934&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108542&fm=278541901628191&tin=02508201610067®Number=0000000000091911&sum=100000 [09:19:32]OFD Sender: Processing packet 108542 [packets to send 29, broken 28] [09:19:32]ProducePacketName [09:19:32]name=ofd_packets/00108542 [09:19:32]OFD Sender: To server: pG, [09:19:32]CommunicateWithHost lk.salyk.kg:30040 [09:19:32]ConnectInit lk.salyk.kg [09:19:32]written 0, free lines is 4095 [09:19:32]Connected sock=9 [09:19: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 31 38 10 01 00 00 3B F6 08 01 B3 6D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 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 80 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 41 00 00 00 F4 03 04 00 A6 12 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 FE A7 01 00 35 04 06 00 FD 55 17 1A 03 1F D4 84 88 E0 C5 C6 37 BB [09:19: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 31 38 4F 00 00 00 8C 08 47 00 AE 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 FE A7 01 00 F4 03 04 00 46 BE F3 65 B6 04 01 00 00 C6 AF 01 4E B8 BD 4F 71 [09:19:32]CommunicateWithHost err = 0 [09:19:32]CheckOFDResponse [09:19:32]1017 (14) - 77093643461234 [09:19:32]1041 (16) - 0000000000871818 [09:19:32]1040 (4) - 108542 [09:19:32]1012 (4) - 15.03.2024 03:19 [09:19:32]1206 (1) - 0 [09:19:32]OFD Sender: Remove packet 108542 [09:19:32]ProducePacketName [09:19:32]name=ofd_packets/00108542 [09:19:32]NVStorageDeleteData [09:19:33]Write to MH i2c: 01 00 00 A3 24 C7 [09:19:33]Write i2c OK [09:19:33]MH_I2C_Read... [09:19:33]Read from MH i2c: 01 [09:19:33]MH_I2C_Read... [09:19:33]Read from MH i2c: 01 07 00 [09:19:33]MH_I2C_Read... [09:19:33]Read from MH i2c: 01 07 00 A3 24 00 00 00 00 00 DA 0C B4 [09:19:33]RasterBufferAndPrint [09:19:33]line [09:19:33]line [09:19:33]line [09:19:33]line [09:19:33]line [09:19:33]written 0, free lines is 3299 [09:19:33]MH_Cut [09:19:33]Write to MH i2c: D1 01 00 AA 24 01 A0 [09:19:33]Write i2c OK [09:19:33]MH_I2C_Read... [09:19:33]Read from MH i2c: D1 [09:19:33]MH_I2C_Read... [09:19:33]Read from MH i2c: D1 01 00 [09:19:33]MH_I2C_Read... [09:19:33]Read from MH i2c: D1 01 00 AA 24 00 9F [09:19:33]Write to MH i2c: 01 00 00 AB 24 CF [09:19:33]Write i2c OK [09:19:33]MH_I2C_Read... [09:19:33]OFD Sender: No OFD packet to send [09:19:33]*** Cut start [09:19:33]*** Purtial cut [09:19:33]*** Stage 1: CUTSNS_PIN = 1 [09:19:34]Read from MH i2c: 01 [09:19:34]MH_I2C_Read... [09:19:34]*** Stop cut motor [09:19:34]Read from MH i2c: 01 07 00 [09:19:34]MH_I2C_Read... [09:19:34]*** Cut end [09:19:34]Read from MH i2c: 01 07 00 AB 24 00 00 00 00 00 FF 0F E4 [09:19:34]process_action close_receipt done [09:19:34]requested_data is exist [09:19:34]produce_requested_data [09:19:34]requested_item fm.sn is exist - process it [09:19:34]wFMCommunicate request_size=4 [09:19:34]MH_SAM_APDU [09:19:34]CAPDU: 80 11 00 00 [09:19:34]Write to MH i2c: E2 08 00 AC 24 80 11 00 00 00 00 00 00 4A [09:19:34]Write i2c OK [09:19:34]MH_I2C_Read... [09:19:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:34]Read from MH i2c: E2 [09:19:34]MH_I2C_Read... [09:19:34]Read from MH i2c: E2 17 00 [09:19:34]MH_I2C_Read... [09:19:34]Read from MH i2c: E2 17 00 AC 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 9E [09:19:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:19:34]wFMCommunicate OK [09:19:34]requested_item fd.num is exist - process it [09:19:34]SAM_PROTO_GetFieldsCounters [09:19:34]wFMCommunicate request_size=4 [09:19:34]MH_SAM_APDU [09:19:34]CAPDU: 80 13 00 00 [09:19:34]Write to MH i2c: E2 08 00 AD 24 80 13 00 00 00 00 00 00 4D [09:19:34]Write i2c OK [09:19:34]MH_I2C_Read... [09:19:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:34]Read from MH i2c: E2 [09:19:34]MH_I2C_Read... [09:19:34]Read from MH i2c: E2 62 00 [09:19:34]MH_I2C_Read... [09:19:34]Read from MH i2c: E2 62 00 AD 24 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 FE A7 01 00 0E 04 04 00 40 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 15 [09:19: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 FE A7 01 00 0E 04 04 00 40 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 [09:19:34]wFMCommunicate OK [09:19:34]SAM_PROTO_GetFieldsCounters done [09:19:34]requested_item shift.num is exist - process it [09:19:34]requested_item shift.opened is exist - process it [09:19:34]req_shift_opened [09:19:34]FM_GetShiftState [09:19:34]SAM_PROTO_GetShiftState [09:19:34]wFMCommunicate request_size=4 [09:19:34]MH_SAM_APDU [09:19:34]CAPDU: 80 13 01 00 [09:19:34]Write to MH i2c: E2 08 00 AE 24 80 13 01 00 00 00 00 00 4F [09:19:34]Write i2c OK [09:19:34]MH_I2C_Read... [09:19:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:34]Read from MH i2c: E2 [09:19:34]MH_I2C_Read... [09:19:34]Read from MH i2c: E2 0E 00 [09:19:34]MH_I2C_Read... [09:19:34]Read from MH i2c: E2 0E 00 AE 24 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 83 [09:19:34]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:19:34]wFMCommunicate OK [09:19:34]SAM_PROTO_GetShiftState done [09:19:34]FM_GetShiftState done [09:19:34]req_shift_opened done [09:19:34]requested_item shift.open_date is exist - process it [09:19:34]req_shift_open_date [09:19:34]req_shift_open_date done [09:19:34]produce_requested_data done [09:19:34]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108542,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [09:19:34]process_action_free close_receipt [09:19:34]json_value_free [09:19:34]json_value_free done [09:19:34]process_json_proto returns [09:19:34]Send response to host [09:19:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108542,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [09:19:34]free response buf [09:19:34]execute_script done [09:19:34]execute_script returns [09:19:34]free content buf [09:19:34]Sock 10.Close socket [09:19:34]Sock 10.Thread stoped [09:19:38]OFD Sender: No OFD packet to send [09:19:43]OFD Sender: No OFD packet to send [09:19:48]OFD Sender: No OFD packet to send [09:19:53]OFD Sender: No OFD packet to send [09:19:58]OFD Sender: No OFD packet to send [09:20:03]OFD Sender: No OFD packet to send [09:20:08]OFD Sender: No OFD packet to send [09:20:13]OFD Sender: No OFD packet to send [09:20:18]OFD Sender: No OFD packet to send [09:20:23]OFD Sender: No OFD packet to send [09:20:28]OFD Sender: No OFD packet to send [09:20:33]OFD Sender: No OFD packet to send [09:20:38]OFD Sender: No OFD packet to send [09:20:43]OFD Sender: No OFD packet to send [09:20:48]OFD Sender: No OFD packet to send [09:20:53]OFD Sender: No OFD packet to send [09:20:58]OFD Sender: No OFD packet to send [09:21:03]OFD Sender: No OFD packet to send [09:21:08]OFD Sender: No OFD packet to send [09:21:13]OFD Sender: No OFD packet to send [09:21:18]OFD Sender: No OFD packet to send [09:21:23]OFD Sender: No OFD packet to send [09:21:28]OFD Sender: No OFD packet to send [09:21:33]OFD Sender: No OFD packet to send [09:21:38]OFD Sender: No OFD packet to send [09:21:43]OFD Sender: No OFD packet to send [09:21:48]OFD Sender: No OFD packet to send [09:21:53]OFD Sender: No OFD packet to send [09:21:58]OFD Sender: No OFD packet to send [09:22:02]accept exits with 8 [09:22:02]New connection [09:22:02]New thread 3067342180 created [09:22:02]Thread 3067198820 joined [09:22:02]Waiting for new connection... [09:22:02] Sock 8.Parse request [09:22:02]Sock 8.Check first char [09:22:02]Sock 8.First char is OK [09:22:02]request: POST /json_proto HTTP/1.0 [09:22:02]Method: POST [09:22:02]URL: /json_proto [09:22:02]Method is POST - this is cgi request [09:22:02]url: /json_proto [09:22:02]query_string will be loaded in cgi processing [09:22:02]execute_cgi json_proto POST (null) [09:22:02]execute_cgi path=json_proto method=POST [09:22:02]POST find Content-Length [09:22:02]Host: 172.17.32.69:8080 [09:22:02]Content-Length: 683 [09:22:02]Content-Type: application/json [09:22:02] [09:22:02]POST finish read [09:22:02]Found Content-Length = 683 [09:22:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 70.50, "quantity" : 16.150, "sum" : 1138.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1138.00, "total" : 1138.00, "payments": [ { "type": 0, "sum" : 1138.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:02]execute_script... [09:22: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)1040709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 70.50, "quantity" : 16.150, "sum" : 1138.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1138.00, "total" : 1138.00, "payments": [ { "type": 0, "sum" : 1138.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:02]POST & json_proto [09:22:02]process_json_proto [09:22:02]json parsed OK: [09:22:02]protocol is kg_v1.0 [09:22:02]action value=close_receipt [09:22:02]process_action close_receipt [09:22:02]cmd_close_receipt [09:22:02]MH_GetDate [09:22:02]Write to MH i2c: F0 00 00 AF 24 C2 [09:22:02]Write i2c OK [09:22:02]MH_I2C_Read... [09:22:02]Read from MH i2c: F0 [09:22:02]MH_I2C_Read... [09:22:02]Read from MH i2c: F0 09 00 [09:22:02]MH_I2C_Read... [09:22:02]Read from MH i2c: F0 09 00 AF 24 00 3D 13 F4 65 D5 0F D3 65 90 [09:22:02]GetLastDocTimeStamp 1710494374 [09:22:02]current date 1710494525 [09:22:02]FM_GetShiftState [09:22:02]SAM_PROTO_GetShiftState [09:22:02]wFMCommunicate request_size=4 [09:22:02]MH_SAM_APDU [09:22:02]CAPDU: 80 13 01 00 [09:22:02]Write to MH i2c: E2 08 00 B0 24 80 13 01 00 00 00 00 00 51 [09:22:02]Write i2c OK [09:22:02]MH_I2C_Read... [09:22:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:02]Read from MH i2c: E2 [09:22:02]MH_I2C_Read... [09:22:02]Read from MH i2c: E2 0E 00 [09:22:02]MH_I2C_Read... [09:22:02]Read from MH i2c: E2 0E 00 B0 24 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 85 [09:22:02]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:22:02]wFMCommunicate OK [09:22:02]SAM_PROTO_GetShiftState done [09:22:02]FM_GetShiftState done [09:22:02]opened in 1710461757 [09:22:02]opened+sec_in_day 1710548157 [09:22:02]quantity*price = 113857 [09:22:02]sum+1 = 113859 [09:22:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 1138.00 Внесено: 1138.00 СДАЧА: 0.00 НСП 1% : 10.08 НДС 12% : 120.91 Наличными: 1138.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 66 15.03.2024 09:22 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108543 ФПД: 102241903363526 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T092205&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108543&fm=102241903363526&tin=02508201610067®Number=0000000000091911&sum=113800 [09:22:03]StoreToDocumentArchive [09:22:03]shift 320 fd 108543 [09:22:03]save to /storage/0320/doc_00108543 [09:22:03]save last doc name /storage/0320/doc_00108543 to /storage/kkm_last_doc_name [09:22:03]save OK [09:22:03]Clear old archive folders... [09:22:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:22:03]tlvbuf is 00131480 [09:22:03]SAM_PROTO_ClearQueue [09:22:03]wFMCommunicate request_size=4 [09:22:03]MH_SAM_APDU [09:22:03]CAPDU: 80 09 00 00 [09:22:03]Write to MH i2c: E2 08 00 BD 24 80 09 00 00 00 00 00 00 53 [09:22:03]Write i2c OK [09:22:03]MH_I2C_Read... [09:22:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:03]Read from MH i2c: E2 [09:22:03]MH_I2C_Read... [09:22:03]Read from MH i2c: E2 03 00 [09:22:03]MH_I2C_Read... [09:22:03]Read from MH i2c: E2 03 00 BD 24 00 90 00 55 [09:22:03]RAPDU: 90 00 [09:22:03]wFMCommunicate OK [09:22:03]SAM_PROTO_ClearQueue done [09:22:03]KKMCreateOFDPacket [09:22:03]OFDProtocolAddRootSTLVToBuf [09:22:03]FM_MakeSignedData [09:22:03]FM_MakeSignedData [09:22:03]SAM_PROTO_SignData [09:22:03]wFMCommunicate request_size=4 [09:22:03]MH_SAM_APDU [09:22:03]CAPDU: 80 0D 01 02 [09:22:03]Write to MH i2c: E2 08 00 BE 24 80 0D 01 02 00 00 00 00 5B [09:22:03]Write i2c OK [09:22:03]MH_I2C_Read... [09:22:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:03]Read from MH i2c: E2 [09:22:03]MH_I2C_Read... [09:22:03]Read from MH i2c: E2 03 00 [09:22:03]MH_I2C_Read... [09:22:03]Read from MH i2c: E2 03 00 BE 24 00 90 00 56 [09:22:03]RAPDU: 90 00 [09:22:03]wFMCommunicate OK [09:22:03]wFMCommunicate request_size=255 [09:22:03]MH_SAM_APDU [09:22: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 16 3F 00 00 00 00 00 37 04 06 00 8A 1B 00 00 00 00 13 04 06 00 C2 BC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 BC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 2F 00 00 00 00 07 04 06 00 88 BC 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 3D 13 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 FF A7 01 00 35 04 06 00 5C [09:22:03]Write to MH i2c: E2 02 01 BF 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 16 3F 00 00 00 00 00 37 04 06 00 8A 1B 00 00 00 00 13 04 06 00 C2 BC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 BC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 2F 00 00 00 00 07 04 06 00 88 BC 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 3D 13 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 FF A7 01 00 35 04 06 00 5C 00 00 F5 [09:22:03]Write i2c OK [09:22:03]MH_I2C_Read... [09:22:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:03]Read from MH i2c: E2 [09:22:03]MH_I2C_Read... [09:22:03]Read from MH i2c: E2 03 00 [09:22:03]MH_I2C_Read... [09:22:03]Read from MH i2c: E2 03 00 BF 24 00 90 00 57 [09:22:03]RAPDU: 90 00 [09:22:03]wFMCommunicate OK [09:22:03]wFMCommunicate request_size=10 [09:22:03]MH_SAM_APDU [09:22:03]CAPDU: 80 0D 02 02 05 FD 0C 54 C5 C6 [09:22:03]Write to MH i2c: E2 0D 00 C0 24 80 0D 02 02 05 00 FD 0C 54 C5 C6 00 00 50 [09:22:03]Write i2c OK [09:22:03]MH_I2C_Read... [09:22:03]OFD Sender: No OFD packet to send [09:22:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:03]Read from MH i2c: E2 [09:22:03]MH_I2C_Read... [09:22:03]Read from MH i2c: E2 03 00 [09:22:03]MH_I2C_Read... [09:22:03]Read from MH i2c: E2 03 00 C0 24 00 90 00 58 [09:22:03]RAPDU: 90 00 [09:22:03]wFMCommunicate OK [09:22:03]wFMCommunicate request_size=4 [09:22:03]MH_SAM_APDU [09:22:03]CAPDU: 80 0D 03 02 [09:22:03]Write to MH i2c: E2 08 00 C1 24 80 0D 03 02 00 00 00 00 60 [09:22:03]Write i2c OK [09:22:03]MH_I2C_Read... [09:22:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:03]Read from MH i2c: E2 [09:22:03]MH_I2C_Read... [09:22:03]Read from MH i2c: E2 0B 00 [09:22:03]MH_I2C_Read... [09:22:03]Read from MH i2c: E2 0B 00 C1 24 00 F4 6A B0 95 80 B7 BB E5 90 00 DB [09:22:03]RAPDU: F4 6A B0 95 80 B7 BB E5 90 00 [09:22:03]wFMCommunicate OK [09:22:03]SAM_PROTO_SignData done [09:22:03]FM_MakeSignedData done [09:22:03]CreateOFDProtocolMessage [09:22:03]wFMCommunicate request_size=4 [09:22:03]MH_SAM_APDU [09:22:03]CAPDU: 80 11 00 00 [09:22:03]Write to MH i2c: E2 08 00 C2 24 80 11 00 00 00 00 00 00 60 [09:22:03]Write i2c OK [09:22:03]MH_I2C_Read... [09:22:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:03]Read from MH i2c: E2 [09:22:03]MH_I2C_Read... [09:22:03]Read from MH i2c: E2 17 00 [09:22:03]MH_I2C_Read... [09:22:03]Read from MH i2c: E2 17 00 C2 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 B4 [09:22:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:22:03]wFMCommunicate OK [09:22:03]CreateOFDProtocolMessage done [09:22:03]OFDSenderStorePacket 108543 [09:22:03]StoreOFDPacket docnum=108543 [09:22:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 44 27 07 01 FE 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 16 3F 00 00 00 00 00 37 04 06 00 8A 1B 00 00 00 00 13 04 06 00 C2 BC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 BC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 2F 00 00 00 00 07 04 06 00 88 BC 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 3D 13 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 FF A7 01 00 35 04 06 00 5C FD 0C 54 C5 C6 F4 6A B0 95 80 B7 BB E5 [09:22:03]CheckFolder [09:22:03]dirname=/storage/ofd_packets [09:22:03]CheckFolder done [09:22:03]ProducePacketName [09:22:03]name=ofd_packets/00108543 [09:22:03]NVStorageSaveData ofd_packets/00108543 [09:22:03]File name is /storage/ofd_packets/00108543 [09:22:03]Write 301 bytes [09:22:03]NVStorageSaveData done [09:22:03]OFDSenderStorePacket done [09:22:03]KKMCreateOFDPacket done [09:22:03]NVStorageSaveData kkm_last_timestamp [09:22:03]File name is /storage/kkm_last_timestamp [09:22:03]Write 4 bytes [09:22:03]NVStorageSaveData done [09:22:03]ExternCall_PrintAddStr [09:22:03]wPrintStart [09:22:03]Write to MH i2c: 01 00 00 C3 24 E7 [09:22:03]Write i2c OK [09:22:03]MH_I2C_Read... [09:22:03]Read from MH i2c: 01 [09:22:03]MH_I2C_Read... [09:22:03]Read from MH i2c: 01 07 00 [09:22:03]MH_I2C_Read... [09:22:03]Read from MH i2c: 01 07 00 C3 24 00 00 00 00 00 FF 0F FC [09:22:03]RasterBufferAndPrint [09:22:03]line Счет N : (1)1040709 [09:22:03]line ИНН: 02508201610067 [09:22:03]line Контрольно-Кассовый Чек [09:22:03]line ПРОДАЖА [09:22:03]line ТРК (МРК, ГНК) : 72 [09:22:03]line Товар: 2710124500 [09:22:03]line Аи-95-К-5 [09:22:03]line 16.150 * 70.50 [09:22:03]line = 1138.58 [09:22:03]line НДС 12% НСП 1% [09:22:03]line > о реализуемом товаре [09:22:03]line ОКРУГЛЕНИЕ: -0.58 [09:22:03]line ИТОГО: 1138.00 [09:22:03]line Внесено: 1138.00 [09:22:03]line СДАЧА: 0.00 [09:22:03]line НСП 1% : 10.08 [09:22:03]line НДС 12% : 120.91 [09:22:03]line Наличными: 1138.00 [09:22:03]line Безнал.: 0.00 [09:22:03]line Место: АЗС № 15 "Партнер Нефть" [09:22:03]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [09:22:03]line СНО: Общий режим [09:22:03]line Чек 66 15.03.2024 09:22 [09:22:03]line Смена: 320 ФФД: 1.0 [09:22:03]line ЗНМ: 0300000266 [09:22:03]line РНМ: 0000000000091911 [09:22:03]line Версия ККМ: 001 [09:22:03]line ФМ: 0000000000871818 [09:22:03]line ФД: 108543 [09:22:03]line ФПД: 102241903363526 [09:22:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T092205&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108543&fm=102241903363526&tin=02508201610067®Number=0000000000091911&sum=113800 [09:22:04]OFD Sender: Processing packet 108543 [packets to send 29, broken 28] [09:22:04]ProducePacketName [09:22:04]name=ofd_packets/00108543 [09:22:04]OFD Sender: To server: pG, [09:22:04]CommunicateWithHost lk.salyk.kg:30040 [09:22:04]ConnectInit lk.salyk.kg [09:22:04]written 0, free lines is 4095 [09:22:04]Connected sock=10 [09:22: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 31 38 0F 01 00 00 44 27 07 01 FE 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 16 3F 00 00 00 00 00 37 04 06 00 8A 1B 00 00 00 00 13 04 06 00 C2 BC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 BC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 2F 00 00 00 00 07 04 06 00 88 BC 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 3D 13 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 FF A7 01 00 35 04 06 00 5C FD 0C 54 C5 C6 F4 6A B0 95 80 B7 BB E5 [09:22: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 31 38 4F 00 00 00 FF 78 47 00 D9 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 FF A7 01 00 F4 03 04 00 DE BE F3 65 B6 04 01 00 00 A1 A1 AF A2 50 6B 79 06 [09:22:04]CommunicateWithHost err = 0 [09:22:04]CheckOFDResponse [09:22:04]1017 (14) - 77093643461234 [09:22:04]1041 (16) - 0000000000871818 [09:22:04]1040 (4) - 108543 [09:22:04]1012 (4) - 15.03.2024 03:22 [09:22:04]1206 (1) - 0 [09:22:04]OFD Sender: Remove packet 108543 [09:22:04]ProducePacketName [09:22:04]name=ofd_packets/00108543 [09:22:04]NVStorageDeleteData [09:22:04]Write to MH i2c: 01 00 00 EE 24 12 [09:22:04]Write i2c OK [09:22:04]MH_I2C_Read... [09:22:04]Read from MH i2c: 01 [09:22:04]MH_I2C_Read... [09:22:04]Read from MH i2c: 01 07 00 [09:22:04]MH_I2C_Read... [09:22:04]Read from MH i2c: 01 07 00 EE 24 00 00 00 00 00 DF 0C 04 [09:22:04]RasterBufferAndPrint [09:22:04]line [09:22:04]line [09:22:04]line [09:22:04]line [09:22:04]line [09:22:04]written 0, free lines is 3304 [09:22:04]MH_Cut [09:22:04]Write to MH i2c: D1 01 00 F5 24 01 EB [09:22:04]Write i2c OK [09:22:04]MH_I2C_Read... [09:22:04]Read from MH i2c: D1 [09:22:04]MH_I2C_Read... [09:22:04]Read from MH i2c: D1 01 00 [09:22:04]MH_I2C_Read... [09:22:04]Read from MH i2c: D1 01 00 F5 24 00 EA [09:22:04]Write to MH i2c: 01 00 00 F6 24 1A [09:22:04]Write i2c OK [09:22:04]MH_I2C_Read... [09:22:04]OFD Sender: No OFD packet to send [09:22:05]*** Cut start [09:22:05]*** Purtial cut [09:22:05]*** Stage 1: CUTSNS_PIN = 1 [09:22:05]Read from MH i2c: 01 [09:22:05]MH_I2C_Read... [09:22:05]*** Stop cut motor [09:22:05]*** Cut end [09:22:05]Read from MH i2c: 01 07 00 [09:22:05]MH_I2C_Read... [09:22:05]Read from MH i2c: 01 07 00 F6 24 00 00 00 00 00 FF 0F 2F [09:22:05]process_action close_receipt done [09:22:05]requested_data is exist [09:22:05]produce_requested_data [09:22:05]requested_item fm.sn is exist - process it [09:22:05]wFMCommunicate request_size=4 [09:22:05]MH_SAM_APDU [09:22:05]CAPDU: 80 11 00 00 [09:22:05]Write to MH i2c: E2 08 00 F7 24 80 11 00 00 00 00 00 00 95 [09:22:05]Write i2c OK [09:22:05]MH_I2C_Read... [09:22:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:05]Read from MH i2c: E2 [09:22:05]MH_I2C_Read... [09:22:05]Read from MH i2c: E2 17 00 [09:22:05]MH_I2C_Read... [09:22:05]Read from MH i2c: E2 17 00 F7 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 E9 [09:22:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:22:05]wFMCommunicate OK [09:22:05]requested_item fd.num is exist - process it [09:22:05]SAM_PROTO_GetFieldsCounters [09:22:05]wFMCommunicate request_size=4 [09:22:05]MH_SAM_APDU [09:22:05]CAPDU: 80 13 00 00 [09:22:05]Write to MH i2c: E2 08 00 F8 24 80 13 00 00 00 00 00 00 98 [09:22:05]Write i2c OK [09:22:05]MH_I2C_Read... [09:22:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:05]Read from MH i2c: E2 [09:22:05]MH_I2C_Read... [09:22:05]Read from MH i2c: E2 62 00 [09:22:05]MH_I2C_Read... [09:22:05]Read from MH i2c: E2 62 00 F8 24 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 FF A7 01 00 0E 04 04 00 40 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 64 [09:22:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 FF A7 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:22:05]wFMCommunicate OK [09:22:05]SAM_PROTO_GetFieldsCounters done [09:22:05]requested_item shift.num is exist - process it [09:22:05]requested_item shift.opened is exist - process it [09:22:05]req_shift_opened [09:22:05]FM_GetShiftState [09:22:05]SAM_PROTO_GetShiftState [09:22:05]wFMCommunicate request_size=4 [09:22:05]MH_SAM_APDU [09:22:05]CAPDU: 80 13 01 00 [09:22:05]Write to MH i2c: E2 08 00 F9 24 80 13 01 00 00 00 00 00 9A [09:22:05]Write i2c OK [09:22:05]MH_I2C_Read... [09:22:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:05]Read from MH i2c: E2 [09:22:05]MH_I2C_Read... [09:22:05]Read from MH i2c: E2 0E 00 [09:22:05]MH_I2C_Read... [09:22:05]Read from MH i2c: E2 0E 00 F9 24 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 CE [09:22:05]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:22:05]wFMCommunicate OK [09:22:05]SAM_PROTO_GetShiftState done [09:22:05]FM_GetShiftState done [09:22:05]req_shift_opened done [09:22:05]requested_item shift.open_date is exist - process it [09:22:05]req_shift_open_date [09:22:05]req_shift_open_date done [09:22:05]produce_requested_data done [09:22:05]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108543,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [09:22:05]process_action_free close_receipt [09:22:05]json_value_free [09:22:05]json_value_free done [09:22:05]process_json_proto returns [09:22:05]Send response to host [09:22:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108543,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [09:22:05]free response buf [09:22:05]execute_script done [09:22:05]execute_script returns [09:22:05]free content buf [09:22:05]Sock 8.Close socket [09:22:05]Sock 8.Thread stoped [09:22:09]OFD Sender: No OFD packet to send [09:22:14]OFD Sender: No OFD packet to send [09:22:19]OFD Sender: No OFD packet to send [09:22:24]OFD Sender: No OFD packet to send [09:22:29]OFD Sender: No OFD packet to send [09:22:34]OFD Sender: No OFD packet to send [09:22:39]OFD Sender: No OFD packet to send [09:22:44]OFD Sender: No OFD packet to send [09:22:49]OFD Sender: No OFD packet to send [09:22:54]OFD Sender: No OFD packet to send [09:22:59]OFD Sender: No OFD packet to send [09:23:04]OFD Sender: No OFD packet to send [09:23:09]OFD Sender: No OFD packet to send [09:23:14]OFD Sender: No OFD packet to send [09:23:19]OFD Sender: No OFD packet to send [09:23:24]OFD Sender: No OFD packet to send [09:23:29]OFD Sender: No OFD packet to send [09:23:34]OFD Sender: No OFD packet to send [09:23:39]OFD Sender: No OFD packet to send [09:23:44]accept exits with 9 [09:23:44]New connection [09:23:44]New thread 3067198820 created [09:23:44]Thread 3067342180 joined [09:23:44]Waiting for new connection... [09:23:44] Sock 9.Parse request [09:23:44]Sock 9.Check first char [09:23:44]Sock 9.First char is OK [09:23:44]request: POST /json_proto HTTP/1.0 [09:23:44]Method: POST [09:23:44]URL: /json_proto [09:23:44]Method is POST - this is cgi request [09:23:44]url: /json_proto [09:23:44]query_string will be loaded in cgi processing [09:23:44]execute_cgi json_proto POST (null) [09:23:44]execute_cgi path=json_proto method=POST [09:23:44]POST find Content-Length [09:23:44]Host: 172.17.32.69:8080 [09:23:44]Content-Length: 1207 [09:23:44]Content-Type: application/json [09:23:44] [09:23:44]POST finish read [09:23:44]Found Content-Length = 1207 [09:23:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040710\u000A15.03.2024 09:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 73\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 5.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 309.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74665\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:44]execute_script... [09:23:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040710\u000A15.03.2024 09:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 73\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 5.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 309.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74665\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:44]POST & json_proto [09:23:44]process_json_proto [09:23:44]json parsed OK: [09:23:44]protocol is kg_v1.0 [09:23:44]action value=print_text [09:23:44]process_action print_text [09:23:44]cmd_print_text [09:23:44]ExternCall_PrintAddStr [09:23:44]wPrintStart [09:23:44]Write to MH i2c: 01 00 00 FA 24 1E [09:23:44]Write i2c OK [09:23:44]MH_I2C_Read... [09:23:44]Read from MH i2c: 01 [09:23:44]MH_I2C_Read... [09:23:44]Read from MH i2c: 01 07 00 [09:23:44]MH_I2C_Read... [09:23:44]Read from MH i2c: 01 07 00 FA 24 00 00 00 00 00 FF 0F 33 [09:23:44]RasterBufferAndPrint [09:23:44]line *****ТОВАРНЫЙ ЧЕК***** [09:23:44]line АЗС 15 [09:23:44]line Партнер нефть [09:23:44]line 02508201610067 [09:23:44]line Кассир : Максатбек у Д. [09:23:44]line Счет N : (1)1040710 [09:23:44]line 15.03.2024 09:15 [09:23:44]line ПРОДАЖА [09:23:44]line ТРК (МРК, ГНК): 73 [09:23:44]line Вид ГСМ : 2710124130 [09:23:44]line Аи-92-К-5 [09:23:44]line 5.000 x 61.90 [09:23:44]line ИТОГ: 309.50 [09:23:44]line Тип оплаты: Талоны: Топливная Карта [09:23:44]line 74665 [09:23:44]line ______________________ [09:23:44]line (подпись) [09:23:44]written 0, free lines is 4095 [09:23:44]Write to MH i2c: 01 00 00 0F 25 34 [09:23:44]Write i2c OK [09:23:44]MH_I2C_Read... [09:23:44]Read from MH i2c: 01 [09:23:44]MH_I2C_Read... [09:23:44]Read from MH i2c: 01 07 00 [09:23:44]MH_I2C_Read... [09:23:44]Read from MH i2c: 01 07 00 0F 25 00 00 00 00 00 F5 0D 3D [09:23:44]RasterBufferAndPrint [09:23:44]line [09:23:44]line [09:23:44]line [09:23:44]line [09:23:44]line [09:23:44]written 0, free lines is 3575 [09:23:44]MH_Cut [09:23:44]Write to MH i2c: D1 01 00 16 25 01 0D [09:23:44]Write i2c OK [09:23:44]MH_I2C_Read... [09:23:44]Read from MH i2c: D1 [09:23:44]MH_I2C_Read... [09:23:44]Read from MH i2c: D1 01 00 [09:23:44]MH_I2C_Read... [09:23:44]Read from MH i2c: D1 01 00 16 25 00 0C [09:23:44]Write to MH i2c: 01 00 00 17 25 3C [09:23:44]Write i2c OK [09:23:44]MH_I2C_Read... [09:23:44]OFD Sender: No OFD packet to send [09:23:45]*** Cut start [09:23:45]*** Purtial cut [09:23:45]*** Stage 1: CUTSNS_PIN = 1 [09:23:45]Read from MH i2c: 01 [09:23:45]MH_I2C_Read... [09:23:45]*** Stop cut motor [09:23:45]*** Cut end [09:23:45]Read from MH i2c: 01 07 00 [09:23:45]MH_I2C_Read... [09:23:45]Read from MH i2c: 01 07 00 17 25 00 00 00 00 00 FF 0F 51 [09:23:45]process_action print_text done [09:23:45]requested_data is exist [09:23:45]produce_requested_data [09:23:45]requested_item fm.sn is exist - process it [09:23:45]wFMCommunicate request_size=4 [09:23:45]MH_SAM_APDU [09:23:45]CAPDU: 80 11 00 00 [09:23:45]Write to MH i2c: E2 08 00 18 25 80 11 00 00 00 00 00 00 B7 [09:23:45]Write i2c OK [09:23:45]MH_I2C_Read... [09:23:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:45]Read from MH i2c: E2 [09:23:45]MH_I2C_Read... [09:23:45]Read from MH i2c: E2 17 00 [09:23:45]MH_I2C_Read... [09:23:45]Read from MH i2c: E2 17 00 18 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 0B [09:23:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:23:45]wFMCommunicate OK [09:23:45]requested_item fd.num is exist - process it [09:23:45]SAM_PROTO_GetFieldsCounters [09:23:45]wFMCommunicate request_size=4 [09:23:45]MH_SAM_APDU [09:23:45]CAPDU: 80 13 00 00 [09:23:45]Write to MH i2c: E2 08 00 19 25 80 13 00 00 00 00 00 00 BA [09:23:45]Write i2c OK [09:23:45]MH_I2C_Read... [09:23:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:45]Read from MH i2c: E2 [09:23:45]MH_I2C_Read... [09:23:45]Read from MH i2c: E2 62 00 [09:23:45]MH_I2C_Read... [09:23:45]Read from MH i2c: E2 62 00 19 25 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 FF A7 01 00 0E 04 04 00 40 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 86 [09:23: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 FF A7 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:23:45]wFMCommunicate OK [09:23:45]SAM_PROTO_GetFieldsCounters done [09:23:45]requested_item shift.num is exist - process it [09:23:45]requested_item shift.opened is exist - process it [09:23:45]req_shift_opened [09:23:45]FM_GetShiftState [09:23:45]SAM_PROTO_GetShiftState [09:23:45]wFMCommunicate request_size=4 [09:23:45]MH_SAM_APDU [09:23:45]CAPDU: 80 13 01 00 [09:23:45]Write to MH i2c: E2 08 00 1A 25 80 13 01 00 00 00 00 00 BC [09:23:45]Write i2c OK [09:23:45]MH_I2C_Read... [09:23:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:46]Read from MH i2c: E2 [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: E2 0E 00 [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: E2 0E 00 1A 25 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 F0 [09:23:46]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:23:46]wFMCommunicate OK [09:23:46]SAM_PROTO_GetShiftState done [09:23:46]FM_GetShiftState done [09:23:46]req_shift_opened done [09:23:46]requested_item shift.open_date is exist - process it [09:23:46]req_shift_open_date [09:23:46]req_shift_open_date done [09:23:46]produce_requested_data done [09:23:46]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108543,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [09:23:46]process_action_free print_text [09:23:46]json_value_free [09:23:46]json_value_free done [09:23:46]process_json_proto returns [09:23:46]Send response to host [09:23:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108543,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [09:23:46]free response buf [09:23:46]execute_script done [09:23:46]execute_script returns [09:23:46]free content buf [09:23:46]Sock 9.Close socket [09:23:46]Sock 9.Thread stoped [09:23:49]OFD Sender: No OFD packet to send [09:23:54]OFD Sender: No OFD packet to send [09:23:57]int [09:23:57]Write to MH i2c: 01 00 00 1B 25 40 [09:23:57]*** FLAG_PRN_KEY set [09:23:57]Write i2c OK [09:23:57]MH_I2C_Read... [09:23:57]Read from MH i2c: 01 [09:23:57]MH_I2C_Read... [09:23:57]Read from MH i2c: 01 07 00 [09:23:57]MH_I2C_Read... [09:23:57]Read from MH i2c: 01 07 00 1B 25 00 08 00 00 00 FF 0F 5D [09:23:57]state=0 [09:23:57]Key pressed [09:23:57]Feed [09:23:57]Write to MH i2c: D8 00 00 1C 25 18 [09:23:57]Write i2c OK [09:23:57]MH_I2C_Read... [09:23:57]Read from MH i2c: D8 [09:23:57]MH_I2C_Read... [09:23:57]Read from MH i2c: D8 01 00 [09:23:57]MH_I2C_Read... [09:23:57]Read from MH i2c: D8 01 00 1C 25 00 19 [09:23:57]int [09:23:57]Write to MH i2c: 01 00 00 1D 25 42 [09:23:57]Write i2c OK [09:23:57]MH_I2C_Read... [09:23:57]Read from MH i2c: 01 [09:23:57]MH_I2C_Read... [09:23:57]Read from MH i2c: 01 07 00 [09:23:57]MH_I2C_Read... [09:23:57]Read from MH i2c: 01 07 00 1D 25 00 48 00 00 00 3C 00 CD [09:23:57]state=2 [09:23:57]Key pressed [09:23:57]int [09:23:57]Write to MH i2c: 01 00 00 1E 25 43 [09:23:57]*** FLAG_PRN_KEY reset [09:23:57]Write i2c OK [09:23:57]MH_I2C_Read... [09:23:57]Read from MH i2c: 01 [09:23:57]MH_I2C_Read... [09:23:57]Read from MH i2c: 01 07 00 [09:23:57]MH_I2C_Read... [09:23:57]Read from MH i2c: 01 07 00 1E 25 00 00 00 00 00 FB 0F 54 [09:23:57]state=2 [09:23:57]Stop feed [09:23:59]OFD Sender: No OFD packet to send [09:24:04]OFD Sender: No OFD packet to send [09:24:09]OFD Sender: No OFD packet to send [09:24:14]OFD Sender: No OFD packet to send [09:24:19]OFD Sender: No OFD packet to send [09:24:24]OFD Sender: No OFD packet to send [09:24:29]OFD Sender: No OFD packet to send [09:24:34]OFD Sender: No OFD packet to send [09:24:40]OFD Sender: No OFD packet to send [09:24:45]OFD Sender: No OFD packet to send [09:24:50]OFD Sender: No OFD packet to send [09:24:55]OFD Sender: No OFD packet to send [09:25:00]OFD Sender: No OFD packet to send [09:25:05]OFD Sender: No OFD packet to send [09:25:10]OFD Sender: No OFD packet to send [09:25:15]OFD Sender: No OFD packet to send [09:25:20]OFD Sender: No OFD packet to send [09:25:25]OFD Sender: No OFD packet to send [09:25:30]OFD Sender: No OFD packet to send [09:25:35]OFD Sender: No OFD packet to send [09:25:40]OFD Sender: No OFD packet to send [09:25:45]OFD Sender: No OFD packet to send [09:25:50]OFD Sender: No OFD packet to send [09:25:55]OFD Sender: No OFD packet to send [09:26:00]OFD Sender: No OFD packet to send [09:26:05]OFD Sender: No OFD packet to send [09:26:10]OFD Sender: No OFD packet to send [09:26:15]OFD Sender: No OFD packet to send [09:26:20]OFD Sender: No OFD packet to send [09:26:20]accept exits with 8 [09:26:20]New connection [09:26:20]New thread 3067342180 created [09:26:20]Thread 3067198820 joined [09:26:20]Waiting for new connection... [09:26:20] Sock 8.Parse request [09:26:20]Sock 8.Check first char [09:26:20]Sock 8.First char is OK [09:26:20]request: POST /json_proto HTTP/1.0 [09:26:20]Method: POST [09:26:20]URL: /json_proto [09:26:20]Method is POST - this is cgi request [09:26:20]url: /json_proto [09:26:20]query_string will be loaded in cgi processing [09:26:20]execute_cgi json_proto POST (null) [09:26:20]execute_cgi path=json_proto method=POST [09:26:20]POST find Content-Length [09:26:20]Host: 172.17.32.69:8080 [09:26:20]Content-Length: 678 [09:26:20]Content-Type: application/json [09:26:20] [09:26:20]POST finish read [09:26:20]Found Content-Length = 678 [09:26:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 2.430, "sum" : 150.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:20]execute_script... [09:26: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)1040711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 2.430, "sum" : 150.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:20]POST & json_proto [09:26:20]process_json_proto [09:26:20]json parsed OK: [09:26:20]protocol is kg_v1.0 [09:26:20]action value=close_receipt [09:26:20]process_action close_receipt [09:26:20]cmd_close_receipt [09:26:20]MH_GetDate [09:26:20]Write to MH i2c: F0 00 00 1F 25 33 [09:26:20]Write i2c OK [09:26:20]MH_I2C_Read... [09:26:20]Read from MH i2c: F0 [09:26:20]MH_I2C_Read... [09:26:20]Read from MH i2c: F0 09 00 [09:26:20]MH_I2C_Read... [09:26:20]Read from MH i2c: F0 09 00 1F 25 00 3F 14 F4 65 D5 0F D3 65 04 [09:26:20]GetLastDocTimeStamp 1710494525 [09:26:20]current date 1710494783 [09:26:20]FM_GetShiftState [09:26:20]SAM_PROTO_GetShiftState [09:26:20]wFMCommunicate request_size=4 [09:26:20]MH_SAM_APDU [09:26:20]CAPDU: 80 13 01 00 [09:26:20]Write to MH i2c: E2 08 00 20 25 80 13 01 00 00 00 00 00 C2 [09:26:20]Write i2c OK [09:26:20]MH_I2C_Read... [09:26:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:20]Read from MH i2c: E2 [09:26:20]MH_I2C_Read... [09:26:20]Read from MH i2c: E2 0E 00 [09:26:20]MH_I2C_Read... [09:26:20]Read from MH i2c: E2 0E 00 20 25 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 F6 [09:26:20]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:26:20]wFMCommunicate OK [09:26:20]SAM_PROTO_GetShiftState done [09:26:20]FM_GetShiftState done [09:26:20]opened in 1710461757 [09:26:20]opened+sec_in_day 1710548157 [09:26:20]quantity*price = 15041 [09:26:20]sum+1 = 15043 [09:26:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.97 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 67 15.03.2024 09:26 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108544 ФПД: 35973023233121 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T092623&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108544&fm=35973023233121&tin=02508201610067®Number=0000000000091911&sum=15000 [09:26:21]StoreToDocumentArchive [09:26:21]shift 320 fd 108544 [09:26:21]save to /storage/0320/doc_00108544 [09:26:21]save last doc name /storage/0320/doc_00108544 to /storage/kkm_last_doc_name [09:26:21]save OK [09:26:21]Clear old archive folders... [09:26:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:26:21]tlvbuf is B6F07380 [09:26:21]SAM_PROTO_ClearQueue [09:26:21]wFMCommunicate request_size=4 [09:26:21]MH_SAM_APDU [09:26:21]CAPDU: 80 09 00 00 [09:26:21]Write to MH i2c: E2 08 00 2D 25 80 09 00 00 00 00 00 00 C4 [09:26:21]Write i2c OK [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 [09:26:21]MH_I2C_Read... [09:26:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:21]Read from MH i2c: E2 03 00 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 03 00 2D 25 00 90 00 C6 [09:26:21]RAPDU: 90 00 [09:26:21]wFMCommunicate OK [09:26:21]SAM_PROTO_ClearQueue done [09:26:21]KKMCreateOFDPacket [09:26:21]OFDProtocolAddRootSTLVToBuf [09:26:21]FM_MakeSignedData [09:26:21]FM_MakeSignedData [09:26:21]SAM_PROTO_SignData [09:26:21]wFMCommunicate request_size=4 [09:26:21]MH_SAM_APDU [09:26:21]CAPDU: 80 0D 01 02 [09:26:21]Write to MH i2c: E2 08 00 2E 25 80 0D 01 02 00 00 00 00 CC [09:26:21]Write i2c OK [09:26:21]MH_I2C_Read... [09:26:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:21]Read from MH i2c: E2 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 03 00 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 03 00 2E 25 00 90 00 C7 [09:26:21]RAPDU: 90 00 [09:26:21]wFMCommunicate OK [09:26:21]wFMCommunicate request_size=255 [09:26:21]MH_SAM_APDU [09:26:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 09 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 C2 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 3F 14 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 00 A8 01 00 35 04 06 00 20 [09:26:21]Write to MH i2c: E2 02 01 2F 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 09 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 C2 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 3F 14 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 00 A8 01 00 35 04 06 00 20 00 00 01 [09:26:21]Write i2c OK [09:26:21]MH_I2C_Read... [09:26:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:21]Read from MH i2c: E2 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 03 00 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 03 00 2F 25 00 90 00 C8 [09:26:21]RAPDU: 90 00 [09:26:21]wFMCommunicate OK [09:26:21]wFMCommunicate request_size=10 [09:26:21]MH_SAM_APDU [09:26:21]CAPDU: 80 0D 02 02 05 B7 9F 45 74 61 [09:26:21]Write to MH i2c: E2 0D 00 30 25 80 0D 02 02 05 00 B7 9F 45 74 61 00 00 49 [09:26:21]Write i2c OK [09:26:21]MH_I2C_Read... [09:26:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:21]Read from MH i2c: E2 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 03 00 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 03 00 30 25 00 90 00 C9 [09:26:21]RAPDU: 90 00 [09:26:21]wFMCommunicate OK [09:26:21]wFMCommunicate request_size=4 [09:26:21]MH_SAM_APDU [09:26:21]CAPDU: 80 0D 03 02 [09:26:21]Write to MH i2c: E2 08 00 31 25 80 0D 03 02 00 00 00 00 D1 [09:26:21]Write i2c OK [09:26:21]MH_I2C_Read... [09:26:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:21]Read from MH i2c: E2 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 0B 00 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 0B 00 31 25 00 6E FE 7F 65 DA 36 3F 4D 90 00 BE [09:26:21]RAPDU: 6E FE 7F 65 DA 36 3F 4D 90 00 [09:26:21]wFMCommunicate OK [09:26:21]SAM_PROTO_SignData done [09:26:21]FM_MakeSignedData done [09:26:21]CreateOFDProtocolMessage [09:26:21]wFMCommunicate request_size=4 [09:26:21]MH_SAM_APDU [09:26:21]CAPDU: 80 11 00 00 [09:26:21]Write to MH i2c: E2 08 00 32 25 80 11 00 00 00 00 00 00 D1 [09:26:21]Write i2c OK [09:26:21]MH_I2C_Read... [09:26:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:21]Read from MH i2c: E2 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 17 00 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 17 00 32 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 25 [09:26:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:26:21]wFMCommunicate OK [09:26:21]CreateOFDProtocolMessage done [09:26:21]OFDSenderStorePacket 108544 [09:26:21]StoreOFDPacket docnum=108544 [09:26:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 65 C9 07 01 E4 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 09 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 C2 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 3F 14 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 00 A8 01 00 35 04 06 00 20 B7 9F 45 74 61 6E FE 7F 65 DA 36 3F 4D [09:26:21]CheckFolder [09:26:21]dirname=/storage/ofd_packets [09:26:21]CheckFolder done [09:26:21]ProducePacketName [09:26:21]name=ofd_packets/00108544 [09:26:21]NVStorageSaveData ofd_packets/00108544 [09:26:21]File name is /storage/ofd_packets/00108544 [09:26:21]Write 301 bytes [09:26:21]NVStorageSaveData done [09:26:21]OFDSenderStorePacket done [09:26:21]KKMCreateOFDPacket done [09:26:21]NVStorageSaveData kkm_last_timestamp [09:26:21]File name is /storage/kkm_last_timestamp [09:26:21]Write 4 bytes [09:26:21]OFD Sender: Processing packet 108544 [packets to send 29, broken 28] [09:26:21]ProducePacketName [09:26:21]name=ofd_packets/00108544 [09:26:21]OFD Sender: To server: pG, [09:26:21]CommunicateWithHost lk.salyk.kg:30040 [09:26:21]ConnectInit lk.salyk.kg [09:26:21]NVStorageSaveData done [09:26:21]ExternCall_PrintAddStr [09:26:21]wPrintStart [09:26:21]Write to MH i2c: 01 00 00 33 25 58 [09:26:21]Write i2c OK [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: 01 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: 01 07 00 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: 01 07 00 33 25 00 00 00 00 00 FF 0F 6D [09:26:21]RasterBufferAndPrint [09:26:21]line Счет N : (1)1040711 [09:26:21]line ИНН: 02508201610067 [09:26:21]line Контрольно-Кассовый Чек [09:26:21]line ПРОДАЖА [09:26:21]line ТРК (МРК, ГНК) : 53 [09:26:21]line Товар: 2710124130 [09:26:21]line Аи-92-К-5 [09:26:21]line 2.430 * 61.90 [09:26:21]line = 150.42 [09:26:21]line НДС 12% НСП 1% [09:26:21]line > о реализуемом товаре [09:26:21]line ОКРУГЛЕНИЕ: -0.42 [09:26:21]line ИТОГО: 150.00 [09:26:21]line Внесено: 150.00 [09:26:21]line СДАЧА: 0.00 [09:26:21]line НСП 1% : 1.33 [09:26:21]line НДС 12% : 15.97 [09:26:21]line Наличными: 150.00 [09:26:21]line Безнал.: 0.00 [09:26:21]line Место: АЗС № 15 "Партнер Нефть" [09:26:21]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [09:26:21]line СНО: Общий режим [09:26:21]line Чек 67 15.03.2024 09:26 [09:26:21]line Смена: 320 ФФД: 1.0 [09:26:21]line ЗНМ: 0300000266 [09:26:21]line РНМ: 0000000000091911 [09:26:21]line Версия ККМ: 001 [09:26:21]line ФМ: 0000000000871818 [09:26:21]line ФД: 108544 [09:26:21]line ФПД: 35973023233121 [09:26:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T092623&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108544&fm=35973023233121&tin=02508201610067®Number=0000000000091911&sum=15000 [09:26:22]Connected sock=11 [09:26: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 31 38 0F 01 00 00 65 C9 07 01 E4 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 09 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 C2 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 3F 14 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 00 A8 01 00 35 04 06 00 20 B7 9F 45 74 61 6E FE 7F 65 DA 36 3F 4D [09:26:22]written 0, free lines is 4095 [09:26: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 31 38 4F 00 00 00 B5 97 47 00 66 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 31 38 10 04 04 00 00 A8 01 00 F4 03 04 00 E0 BF F3 65 B6 04 01 00 00 D5 2B 4C F4 BE 9C B5 12 [09:26:22]CommunicateWithHost err = 0 [09:26:22]CheckOFDResponse [09:26:22]1017 (14) - 77093643461234 [09:26:22]1041 (16) - 0000000000871818 [09:26:22]1040 (4) - 108544 [09:26:22]1012 (4) - 15.03.2024 03:26 [09:26:22]1206 (1) - 0 [09:26:22]OFD Sender: Remove packet 108544 [09:26:22]ProducePacketName [09:26:22]name=ofd_packets/00108544 [09:26:22]NVStorageDeleteData [09:26:22]Write to MH i2c: 01 00 00 5E 25 83 [09:26:22]Write i2c OK [09:26:22]MH_I2C_Read... [09:26:22]Read from MH i2c: 01 [09:26:22]MH_I2C_Read... [09:26:22]Read from MH i2c: 01 07 00 [09:26:22]MH_I2C_Read... [09:26:22]Read from MH i2c: 01 07 00 5E 25 00 00 00 00 00 D9 0C 6F [09:26:22]RasterBufferAndPrint [09:26:22]line [09:26:22]line [09:26:22]line [09:26:22]line [09:26:22]line [09:26:22]written 0, free lines is 3296 [09:26:22]MH_Cut [09:26:22]Write to MH i2c: D1 01 00 65 25 01 5C [09:26:22]Write i2c OK [09:26:22]MH_I2C_Read... [09:26:22]Read from MH i2c: D1 [09:26:22]MH_I2C_Read... [09:26:22]Read from MH i2c: D1 01 00 [09:26:22]MH_I2C_Read... [09:26:22]Read from MH i2c: D1 01 00 65 25 00 5B [09:26:22]Write to MH i2c: 01 00 00 66 25 8B [09:26:22]Write i2c OK [09:26:22]MH_I2C_Read... [09:26:22]OFD Sender: No OFD packet to send [09:26:23]*** Cut start [09:26:23]*** Purtial cut [09:26:23]*** Stage 1: CUTSNS_PIN = 1 [09:26:23]Read from MH i2c: 01 [09:26:23]MH_I2C_Read... [09:26:23]*** Stop cut motor [09:26:23]*** Cut end [09:26:23]Read from MH i2c: 01 07 00 [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: 01 07 00 66 25 00 00 00 00 00 FF 0F A0 [09:26:23]process_action close_receipt done [09:26:23]requested_data is exist [09:26:23]produce_requested_data [09:26:23]requested_item fm.sn is exist - process it [09:26:23]wFMCommunicate request_size=4 [09:26:23]MH_SAM_APDU [09:26:23]CAPDU: 80 11 00 00 [09:26:23]Write to MH i2c: E2 08 00 67 25 80 11 00 00 00 00 00 00 06 [09:26:23]Write i2c OK [09:26:23]MH_I2C_Read... [09:26:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:23]Read from MH i2c: E2 [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: E2 17 00 [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: E2 17 00 67 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 5A [09:26:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:26:23]wFMCommunicate OK [09:26:23]requested_item fd.num is exist - process it [09:26:23]SAM_PROTO_GetFieldsCounters [09:26:23]wFMCommunicate request_size=4 [09:26:23]MH_SAM_APDU [09:26:23]CAPDU: 80 13 00 00 [09:26:23]Write to MH i2c: E2 08 00 68 25 80 13 00 00 00 00 00 00 09 [09:26:23]Write i2c OK [09:26:23]MH_I2C_Read... [09:26:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:23]Read from MH i2c: E2 [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: E2 62 00 [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: E2 62 00 68 25 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 00 A8 01 00 0E 04 04 00 40 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 DA [09:26: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 00 A8 01 00 0E 04 04 00 40 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 [09:26:23]wFMCommunicate OK [09:26:23]SAM_PROTO_GetFieldsCounters done [09:26:23]requested_item shift.num is exist - process it [09:26:23]requested_item shift.opened is exist - process it [09:26:23]req_shift_opened [09:26:23]FM_GetShiftState [09:26:23]SAM_PROTO_GetShiftState [09:26:23]wFMCommunicate request_size=4 [09:26:23]MH_SAM_APDU [09:26:23]CAPDU: 80 13 01 00 [09:26:23]Write to MH i2c: E2 08 00 69 25 80 13 01 00 00 00 00 00 0B [09:26:23]Write i2c OK [09:26:23]MH_I2C_Read... [09:26:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:24]Read from MH i2c: E2 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: E2 0E 00 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: E2 0E 00 69 25 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 3F [09:26:24]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:26:24]wFMCommunicate OK [09:26:24]SAM_PROTO_GetShiftState done [09:26:24]FM_GetShiftState done [09:26:24]req_shift_opened done [09:26:24]requested_item shift.open_date is exist - process it [09:26:24]req_shift_open_date [09:26:24]req_shift_open_date done [09:26:24]produce_requested_data done [09:26:24]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108544,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [09:26:24]process_action_free close_receipt [09:26:24]json_value_free [09:26:24]json_value_free done [09:26:24]process_json_proto returns [09:26:24]Send response to host [09:26:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108544,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [09:26:24]free response buf [09:26:24]execute_script done [09:26:24]execute_script returns [09:26:24]free content buf [09:26:24]Sock 8.Close socket [09:26:24]Sock 8.Thread stoped [09:26:27]OFD Sender: No OFD packet to send [09:26:32]OFD Sender: No OFD packet to send [09:26:37]OFD Sender: No OFD packet to send [09:26:42]OFD Sender: No OFD packet to send [09:26:47]OFD Sender: No OFD packet to send [09:26:52]OFD Sender: No OFD packet to send [09:26:57]OFD Sender: No OFD packet to send [09:27:02]OFD Sender: No OFD packet to send [09:27:07]OFD Sender: No OFD packet to send [09:27:12]OFD Sender: No OFD packet to send [09:27:17]OFD Sender: No OFD packet to send [09:27:22]OFD Sender: No OFD packet to send [09:27:27]OFD Sender: No OFD packet to send [09:27:32]OFD Sender: No OFD packet to send [09:27:37]OFD Sender: No OFD packet to send [09:27:42]OFD Sender: No OFD packet to send [09:27:47]OFD Sender: No OFD packet to send [09:27:52]OFD Sender: No OFD packet to send [09:27:57]OFD Sender: No OFD packet to send [09:28:02]OFD Sender: No OFD packet to send [09:28:07]OFD Sender: No OFD packet to send [09:28:12]OFD Sender: No OFD packet to send [09:28:16]accept exits with 10 [09:28:16]New connection [09:28:16]New thread 3067198820 created [09:28:16]Thread 3067342180 joined [09:28:16]Waiting for new connection... [09:28:16] Sock 10.Parse request [09:28:16]Sock 10.Check first char [09:28:16]Sock 10.First char is OK [09:28:16]request: POST /json_proto HTTP/1.0 [09:28:16]Method: POST [09:28:16]URL: /json_proto [09:28:16]Method is POST - this is cgi request [09:28:16]url: /json_proto [09:28:16]query_string will be loaded in cgi processing [09:28:16]execute_cgi json_proto POST (null) [09:28:16]execute_cgi path=json_proto method=POST [09:28:16]POST find Content-Length [09:28:16]Host: 172.17.32.69:8080 [09:28:16]Content-Length: 678 [09:28:16]Content-Type: application/json [09:28:16] [09:28:16]POST finish read [09:28:16]Found Content-Length = 678 [09:28:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040712", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 3.240, "sum" : 200.56, "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:28:16]execute_script... [09:28:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040712", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 3.240, "sum" : 200.56, "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:28:16]POST & json_proto [09:28:16]process_json_proto [09:28:16]json parsed OK: [09:28:16]protocol is kg_v1.0 [09:28:16]action value=close_receipt [09:28:16]process_action close_receipt [09:28:16]cmd_close_receipt [09:28:16]MH_GetDate [09:28:16]Write to MH i2c: F0 00 00 6A 25 7E [09:28:16]Write i2c OK [09:28:16]MH_I2C_Read... [09:28:16]Read from MH i2c: F0 [09:28:16]MH_I2C_Read... [09:28:16]Read from MH i2c: F0 09 00 [09:28:16]MH_I2C_Read... [09:28:16]Read from MH i2c: F0 09 00 6A 25 00 B4 14 F4 65 D5 0F D3 65 C4 [09:28:16]GetLastDocTimeStamp 1710494783 [09:28:16]current date 1710494900 [09:28:16]FM_GetShiftState [09:28:16]SAM_PROTO_GetShiftState [09:28:16]wFMCommunicate request_size=4 [09:28:16]MH_SAM_APDU [09:28:16]CAPDU: 80 13 01 00 [09:28:16]Write to MH i2c: E2 08 00 6B 25 80 13 01 00 00 00 00 00 0D [09:28:16]Write i2c OK [09:28:16]MH_I2C_Read... [09:28:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:16]Read from MH i2c: E2 [09:28:16]MH_I2C_Read... [09:28:16]Read from MH i2c: E2 0E 00 [09:28:16]MH_I2C_Read... [09:28:16]Read from MH i2c: E2 0E 00 6B 25 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 41 [09:28:16]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:28:16]wFMCommunicate OK [09:28:16]SAM_PROTO_GetShiftState done [09:28:16]FM_GetShiftState done [09:28:16]opened in 1710461757 [09:28:16]opened+sec_in_day 1710548157 [09:28:16]quantity*price = 20055 [09:28:16]sum+1 = 20057 [09:28:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 68 15.03.2024 09:28 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108545 ФПД: 85037485843253 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T092820&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108545&fm=85037485843253&tin=02508201610067®Number=0000000000091911&sum=20000 [09:28:18]StoreToDocumentArchive [09:28:18]shift 320 fd 108545 [09:28:18]save to /storage/0320/doc_00108545 [09:28:18]save last doc name /storage/0320/doc_00108545 to /storage/kkm_last_doc_name [09:28:18]save OK [09:28:18]Clear old archive folders... [09:28:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:28:18]tlvbuf is 00121940 [09:28:18]SAM_PROTO_ClearQueue [09:28:18]wFMCommunicate request_size=4 [09:28:18]MH_SAM_APDU [09:28:18]CAPDU: 80 09 00 00 [09:28:18]Write to MH i2c: E2 08 00 78 25 80 09 00 00 00 00 00 00 0F [09:28:18]Write i2c OK [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: E2 [09:28:18]MH_I2C_Read... [09:28:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:18]Read from MH i2c: E2 03 00 [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: E2 03 00 78 25 00 90 00 11 [09:28:18]RAPDU: 90 00 [09:28:18]wFMCommunicate OK [09:28:18]SAM_PROTO_ClearQueue done [09:28:18]KKMCreateOFDPacket [09:28:18]OFDProtocolAddRootSTLVToBuf [09:28:18]FM_MakeSignedData [09:28:18]FM_MakeSignedData [09:28:18]SAM_PROTO_SignData [09:28:18]wFMCommunicate request_size=4 [09:28:18]MH_SAM_APDU [09:28:18]CAPDU: 80 0D 01 02 [09:28:18]Write to MH i2c: E2 08 00 79 25 80 0D 01 02 00 00 00 00 17 [09:28:18]Write i2c OK [09:28:18]MH_I2C_Read... [09:28:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:18]Read from MH i2c: E2 [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: E2 03 00 [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: E2 03 00 79 25 00 90 00 12 [09:28:18]RAPDU: 90 00 [09:28:18]wFMCommunicate OK [09:28:18]wFMCommunicate request_size=255 [09:28:18]MH_SAM_APDU [09:28:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 44 00 00 00 F4 03 04 00 B4 14 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 01 A8 01 00 35 04 06 00 4D [09:28:18]Write to MH i2c: E2 02 01 7A 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 44 00 00 00 F4 03 04 00 B4 14 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 01 A8 01 00 35 04 06 00 4D 00 00 42 [09:28:18]Write i2c OK [09:28:18]MH_I2C_Read... [09:28:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:18]Read from MH i2c: E2 [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: E2 03 00 [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: E2 03 00 7A 25 00 90 00 13 [09:28:18]RAPDU: 90 00 [09:28:18]wFMCommunicate OK [09:28:18]wFMCommunicate request_size=10 [09:28:18]MH_SAM_APDU [09:28:18]CAPDU: 80 0D 02 02 05 57 55 22 E3 35 [09:28:18]Write to MH i2c: E2 0D 00 7B 25 80 0D 02 02 05 00 57 55 22 E3 35 00 00 0A [09:28:18]Write i2c OK [09:28:18]MH_I2C_Read... [09:28:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:18]Read from MH i2c: E2 [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: E2 03 00 [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: E2 03 00 7B 25 00 90 00 14 [09:28:18]RAPDU: 90 00 [09:28:18]wFMCommunicate OK [09:28:18]wFMCommunicate request_size=4 [09:28:18]MH_SAM_APDU [09:28:18]CAPDU: 80 0D 03 02 [09:28:18]Write to MH i2c: E2 08 00 7C 25 80 0D 03 02 00 00 00 00 1C [09:28:18]Write i2c OK [09:28:18]MH_I2C_Read... [09:28:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:18]Read from MH i2c: E2 [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: E2 0B 00 [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: E2 0B 00 7C 25 00 06 9F 27 8B 37 82 EF 31 90 00 4D [09:28:18]RAPDU: 06 9F 27 8B 37 82 EF 31 90 00 [09:28:18]wFMCommunicate OK [09:28:18]SAM_PROTO_SignData done [09:28:18]FM_MakeSignedData done [09:28:18]CreateOFDProtocolMessage [09:28:18]wFMCommunicate request_size=4 [09:28:18]MH_SAM_APDU [09:28:18]CAPDU: 80 11 00 00 [09:28:18]Write to MH i2c: E2 08 00 7D 25 80 11 00 00 00 00 00 00 1C [09:28:18]Write i2c OK [09:28:18]MH_I2C_Read... [09:28:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:18]Read from MH i2c: E2 [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: E2 17 00 [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: E2 17 00 7D 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 70 [09:28:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:28:18]wFMCommunicate OK [09:28:18]CreateOFDProtocolMessage done [09:28:18]OFDSenderStorePacket 108545 [09:28:18]StoreOFDPacket docnum=108545 [09:28:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 D4 71 07 01 C5 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 44 00 00 00 F4 03 04 00 B4 14 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 01 A8 01 00 35 04 06 00 4D 57 55 22 E3 35 06 9F 27 8B 37 82 EF 31 [09:28:18]CheckFolder [09:28:18]dirname=/storage/ofd_packets [09:28:18]CheckFolder done [09:28:18]ProducePacketName [09:28:18]name=ofd_packets/00108545 [09:28:18]NVStorageSaveData ofd_packets/00108545 [09:28:18]File name is /storage/ofd_packets/00108545 [09:28:18]Write 301 bytes [09:28:18]NVStorageSaveData done [09:28:18]OFDSenderStorePacket done [09:28:18]KKMCreateOFDPacket done [09:28:18]NVStorageSaveData kkm_last_timestamp [09:28:18]File name is /storage/kkm_last_timestamp [09:28:18]Write 4 bytes [09:28:18]NVStorageSaveData done [09:28:18]ExternCall_PrintAddStr [09:28:18]wPrintStart [09:28:18]Write to MH i2c: 01 00 00 7E 25 A3 [09:28:18]Write i2c OK [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: 01 [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: 01 07 00 [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: 01 07 00 7E 25 00 00 00 00 00 FF 0F B8 [09:28:18]RasterBufferAndPrint [09:28:18]line Счет N : (1)1040712 [09:28:18]line ИНН: 02508201610067 [09:28:18]line Контрольно-Кассовый Чек [09:28:18]line ПРОДАЖА [09:28:18]line ТРК (МРК, ГНК) : 53 [09:28:18]line Товар: 2710124130 [09:28:18]line Аи-92-К-5 [09:28:18]line 3.240 * 61.90 [09:28:18]line = 200.56 [09:28:18]line НДС 12% НСП 1% [09:28:18]line > о реализуемом товаре [09:28:18]line ОКРУГЛЕНИЕ: -0.56 [09:28:18]line ИТОГО: 200.00 [09:28:18]line Внесено: 200.00 [09:28:18]line СДАЧА: 0.00 [09:28:18]line НСП 1% : 1.77 [09:28:18]line НДС 12% : 21.30 [09:28:18]line Наличными: 200.00 [09:28:18]line Безнал.: 0.00 [09:28:18]line Место: АЗС № 15 "Партнер Нефть" [09:28:18]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [09:28:18]line СНО: Общий режим [09:28:18]line Чек 68 15.03.2024 09:28 [09:28:18]line Смена: 320 ФФД: 1.0 [09:28:18]line ЗНМ: 0300000266 [09:28:18]line РНМ: 0000000000091911 [09:28:18]line Версия ККМ: 001 [09:28:18]line ФМ: 0000000000871818 [09:28:18]line ФД: 108545 [09:28:18]line ФПД: 85037485843253 [09:28:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T092820&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108545&fm=85037485843253&tin=02508201610067®Number=0000000000091911&sum=20000 [09:28:18]OFD Sender: Processing packet 108545 [packets to send 29, broken 28] [09:28:18]ProducePacketName [09:28:18]name=ofd_packets/00108545 [09:28:18]OFD Sender: To server: pG, [09:28:18]CommunicateWithHost lk.salyk.kg:30040 [09:28:18]ConnectInit lk.salyk.kg [09:28:18]written 0, free lines is 4095 [09:28:19]Connected sock=9 [09:28:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 D4 71 07 01 C5 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 44 00 00 00 F4 03 04 00 B4 14 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 01 A8 01 00 35 04 06 00 4D 57 55 22 E3 35 06 9F 27 8B 37 82 EF 31 [09:28: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 31 38 4F 00 00 00 04 68 47 00 07 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 01 A8 01 00 F4 03 04 00 54 C0 F3 65 B6 04 01 00 00 E2 8D B9 81 61 08 4D 16 [09:28:19]CommunicateWithHost err = 0 [09:28:19]CheckOFDResponse [09:28:19]1017 (14) - 77093643461234 [09:28:19]1041 (16) - 0000000000871818 [09:28:19]1040 (4) - 108545 [09:28:19]1012 (4) - 15.03.2024 03:28 [09:28:19]1206 (1) - 0 [09:28:19]OFD Sender: Remove packet 108545 [09:28:19]ProducePacketName [09:28:19]name=ofd_packets/00108545 [09:28:19]NVStorageDeleteData [09:28:19]Write to MH i2c: 01 00 00 A9 25 CE [09:28:19]Write i2c OK [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: 01 [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: 01 07 00 [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: 01 07 00 A9 25 00 00 00 00 00 DF 0C C0 [09:28:19]RasterBufferAndPrint [09:28:19]line [09:28:19]line [09:28:19]line [09:28:19]line [09:28:19]line [09:28:19]written 0, free lines is 3304 [09:28:19]MH_Cut [09:28:19]Write to MH i2c: D1 01 00 B0 25 01 A7 [09:28:19]Write i2c OK [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: D1 [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: D1 01 00 [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: D1 01 00 B0 25 00 A6 [09:28:19]Write to MH i2c: 01 00 00 B1 25 D6 [09:28:19]Write i2c OK [09:28:19]MH_I2C_Read... [09:28:19]OFD Sender: No OFD packet to send [09:28:20]*** Cut start [09:28:20]*** Purtial cut [09:28:20]*** Stage 1: CUTSNS_PIN = 1 [09:28:20]Read from MH i2c: 01 [09:28:20]MH_I2C_Read... [09:28:20]*** Stop cut motor [09:28:20]*** Cut end [09:28:20]Read from MH i2c: 01 07 00 [09:28:20]MH_I2C_Read... [09:28:20]Read from MH i2c: 01 07 00 B1 25 00 00 00 00 00 FF 0F EB [09:28:20]process_action close_receipt done [09:28:20]requested_data is exist [09:28:20]produce_requested_data [09:28:20]requested_item fm.sn is exist - process it [09:28:20]wFMCommunicate request_size=4 [09:28:20]MH_SAM_APDU [09:28:20]CAPDU: 80 11 00 00 [09:28:20]Write to MH i2c: E2 08 00 B2 25 80 11 00 00 00 00 00 00 51 [09:28:20]Write i2c OK [09:28:20]MH_I2C_Read... [09:28:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:20]Read from MH i2c: E2 [09:28:20]MH_I2C_Read... [09:28:20]Read from MH i2c: E2 17 00 [09:28:20]MH_I2C_Read... [09:28:20]Read from MH i2c: E2 17 00 B2 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 A5 [09:28:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:28:20]wFMCommunicate OK [09:28:20]requested_item fd.num is exist - process it [09:28:20]SAM_PROTO_GetFieldsCounters [09:28:20]wFMCommunicate request_size=4 [09:28:20]MH_SAM_APDU [09:28:20]CAPDU: 80 13 00 00 [09:28:20]Write to MH i2c: E2 08 00 B3 25 80 13 00 00 00 00 00 00 54 [09:28:20]Write i2c OK [09:28:20]MH_I2C_Read... [09:28:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:20]Read from MH i2c: E2 [09:28:20]MH_I2C_Read... [09:28:20]Read from MH i2c: E2 62 00 [09:28:20]MH_I2C_Read... [09:28:20]Read from MH i2c: E2 62 00 B3 25 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 01 A8 01 00 0E 04 04 00 40 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 29 [09:28:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 01 A8 01 00 0E 04 04 00 40 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 [09:28:20]wFMCommunicate OK [09:28:20]SAM_PROTO_GetFieldsCounters done [09:28:20]requested_item shift.num is exist - process it [09:28:20]requested_item shift.opened is exist - process it [09:28:20]req_shift_opened [09:28:20]FM_GetShiftState [09:28:20]SAM_PROTO_GetShiftState [09:28:20]wFMCommunicate request_size=4 [09:28:20]MH_SAM_APDU [09:28:20]CAPDU: 80 13 01 00 [09:28:20]Write to MH i2c: E2 08 00 B4 25 80 13 01 00 00 00 00 00 56 [09:28:20]Write i2c OK [09:28:20]MH_I2C_Read... [09:28:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:20]Read from MH i2c: E2 [09:28:20]MH_I2C_Read... [09:28:20]Read from MH i2c: E2 0E 00 [09:28:20]MH_I2C_Read... [09:28:20]Read from MH i2c: E2 0E 00 B4 25 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 8A [09:28:20]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:28:20]wFMCommunicate OK [09:28:20]SAM_PROTO_GetShiftState done [09:28:20]FM_GetShiftState done [09:28:20]req_shift_opened done [09:28:20]requested_item shift.open_date is exist - process it [09:28:20]req_shift_open_date [09:28:20]req_shift_open_date done [09:28:20]produce_requested_data done [09:28:20]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108545,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [09:28:20]process_action_free close_receipt [09:28:20]json_value_free [09:28:20]json_value_free done [09:28:20]process_json_proto returns [09:28:20]Send response to host [09:28:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108545,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [09:28:20]free response buf [09:28:20]execute_script done [09:28:20]execute_script returns [09:28:20]free content buf [09:28:20]Sock 10.Close socket [09:28:20]Sock 10.Thread stoped [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:45]accept exits with 8 [09:31:45]New connection [09:31:45]New thread 3067342180 created [09:31:45]Thread 3067198820 joined [09:31:45]Waiting for new connection... [09:31:45] Sock 8.Parse request [09:31:45]Sock 8.Check first char [09:31:45]Sock 8.First char is OK [09:31:45]request: POST /json_proto HTTP/1.0 [09:31:45]Method: POST [09:31:45]URL: /json_proto [09:31:45]Method is POST - this is cgi request [09:31:45]url: /json_proto [09:31:45]query_string will be loaded in cgi processing [09:31:45]execute_cgi json_proto POST (null) [09:31:45]execute_cgi path=json_proto method=POST [09:31:45]POST find Content-Length [09:31:45]Host: 172.17.32.69:8080 [09:31:45]Content-Length: 687 [09:31:45]Content-Type: application/json [09:31:45] [09:31:45]POST finish read [09:31:45]Found Content-Length = 687 [09:31:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 14.250, "sum" : 1010.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1010.00, "total" : 1010.00, "payments": [ { "type": 0, "sum" : 1010.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:45]execute_script... [09:31: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)1040713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 14.250, "sum" : 1010.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1010.00, "total" : 1010.00, "payments": [ { "type": 0, "sum" : 1010.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:45]POST & json_proto [09:31:45]process_json_proto [09:31:45]json parsed OK: [09:31:45]protocol is kg_v1.0 [09:31:45]action value=close_receipt [09:31:45]process_action close_receipt [09:31:45]cmd_close_receipt [09:31:45]MH_GetDate [09:31:45]Write to MH i2c: F0 00 00 B5 25 C9 [09:31:45]Write i2c OK [09:31:45]MH_I2C_Read... [09:31:45]Read from MH i2c: F0 [09:31:45]MH_I2C_Read... [09:31:45]Read from MH i2c: F0 09 00 [09:31:45]MH_I2C_Read... [09:31:45]Read from MH i2c: F0 09 00 B5 25 00 85 15 F4 65 D5 0F D3 65 E1 [09:31:45]GetLastDocTimeStamp 1710494900 [09:31:45]current date 1710495109 [09:31:45]FM_GetShiftState [09:31:45]SAM_PROTO_GetShiftState [09:31:45]wFMCommunicate request_size=4 [09:31:45]MH_SAM_APDU [09:31:45]CAPDU: 80 13 01 00 [09:31:45]Write to MH i2c: E2 08 00 B6 25 80 13 01 00 00 00 00 00 58 [09:31:45]Write i2c OK [09:31:45]MH_I2C_Read... [09:31:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:45]Read from MH i2c: E2 [09:31:45]MH_I2C_Read... [09:31:45]Read from MH i2c: E2 0E 00 [09:31:45]MH_I2C_Read... [09:31:45]Read from MH i2c: E2 0E 00 B6 25 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 8C [09:31:45]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:31:45]wFMCommunicate OK [09:31:45]SAM_PROTO_GetShiftState done [09:31:45]FM_GetShiftState done [09:31:45]opened in 1710461757 [09:31:45]opened+sec_in_day 1710548157 [09:31:45]quantity*price = 101032 [09:31:45]sum+1 = 101034 [09:31:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 1010.00 Внесено: 1010.00 СДАЧА: 0.00 НСП 1% : 8.94 НДС 12% : 107.29 Наличными: 1010.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 69 15.03.2024 09:31 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108546 ФПД: 113400960513011 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T093149&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108546&fm=113400960513011&tin=02508201610067®Number=0000000000091911&sum=101000 [09:31:46]StoreToDocumentArchive [09:31:46]shift 320 fd 108546 [09:31:46]save to /storage/0320/doc_00108546 [09:31:46]save last doc name /storage/0320/doc_00108546 to /storage/kkm_last_doc_name [09:31:46]save OK [09:31:46]Clear old archive folders... [09:31:46]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:31:46]tlvbuf is B6FB7A80 [09:31:46]SAM_PROTO_ClearQueue [09:31:46]wFMCommunicate request_size=4 [09:31:46]MH_SAM_APDU [09:31:46]CAPDU: 80 09 00 00 [09:31:46]Write to MH i2c: E2 08 00 C3 25 80 09 00 00 00 00 00 00 5A [09:31:46]Write i2c OK [09:31:46]MH_I2C_Read... [09:31:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:31:47]Read from MH i2c: E2 [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: E2 03 00 [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: E2 03 00 C3 25 00 90 00 5C [09:31:47]RAPDU: 90 00 [09:31:47]wFMCommunicate OK [09:31:47]SAM_PROTO_ClearQueue done [09:31:47]KKMCreateOFDPacket [09:31:47]OFDProtocolAddRootSTLVToBuf [09:31:47]FM_MakeSignedData [09:31:47]FM_MakeSignedData [09:31:47]SAM_PROTO_SignData [09:31:47]wFMCommunicate request_size=4 [09:31:47]MH_SAM_APDU [09:31:47]CAPDU: 80 0D 01 02 [09:31:47]Write to MH i2c: E2 08 00 C4 25 80 0D 01 02 00 00 00 00 62 [09:31:47]Write i2c OK [09:31:47]MH_I2C_Read... [09:31:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:31:47]Read from MH i2c: E2 [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: E2 03 00 [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: E2 03 00 C4 25 00 90 00 5D [09:31:47]RAPDU: 90 00 [09:31:47]wFMCommunicate OK [09:31:47]wFMCommunicate request_size=255 [09:31:47]MH_SAM_APDU [09:31:47]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 A9 8A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 8A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 29 00 00 00 00 07 04 06 00 88 8A 01 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 85 15 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 02 A8 01 00 35 04 06 00 [09:31:47]Write to MH i2c: E2 02 01 C5 25 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 A9 8A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 8A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 29 00 00 00 00 07 04 06 00 88 8A 01 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 85 15 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 02 A8 01 00 35 04 06 00 00 00 63 [09:31:47]Write i2c OK [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: E2 [09:31:47]MH_I2C_Read... [09:31:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:47]Read from MH i2c: E2 03 00 [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: E2 03 00 C5 25 00 90 00 5E [09:31:47]RAPDU: 90 00 [09:31:47]wFMCommunicate OK [09:31:47]wFMCommunicate request_size=11 [09:31:47]MH_SAM_APDU [09:31:47]CAPDU: 80 0D 02 02 06 67 23 37 F7 F3 F3 [09:31:47]Write to MH i2c: E2 0E 00 C6 25 80 0D 02 02 06 00 67 23 37 F7 F3 F3 00 00 0F [09:31:47]Write i2c OK [09:31:47]MH_I2C_Read... [09:31:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:47]Read from MH i2c: E2 [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: E2 03 00 [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: E2 03 00 C6 25 00 90 00 5F [09:31:47]RAPDU: 90 00 [09:31:47]wFMCommunicate OK [09:31:47]wFMCommunicate request_size=4 [09:31:47]MH_SAM_APDU [09:31:47]CAPDU: 80 0D 03 02 [09:31:47]Write to MH i2c: E2 08 00 C7 25 80 0D 03 02 00 00 00 00 67 [09:31:47]Write i2c OK [09:31:47]MH_I2C_Read... [09:31:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:31:47]Read from MH i2c: E2 [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: E2 0B 00 [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: E2 0B 00 C7 25 00 8B 53 46 FF DA B7 2F D7 90 00 22 [09:31:47]RAPDU: 8B 53 46 FF DA B7 2F D7 90 00 [09:31:47]wFMCommunicate OK [09:31:47]SAM_PROTO_SignData done [09:31:47]FM_MakeSignedData done [09:31:47]CreateOFDProtocolMessage [09:31:47]wFMCommunicate request_size=4 [09:31:47]MH_SAM_APDU [09:31:47]CAPDU: 80 11 00 00 [09:31:47]Write to MH i2c: E2 08 00 C8 25 80 11 00 00 00 00 00 00 67 [09:31:47]Write i2c OK [09:31:47]MH_I2C_Read... [09:31:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:47]Read from MH i2c: E2 [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: E2 17 00 [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: E2 17 00 C8 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 BB [09:31:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:31:47]wFMCommunicate OK [09:31:47]CreateOFDProtocolMessage done [09:31:47]OFDSenderStorePacket 108546 [09:31:47]StoreOFDPacket docnum=108546 [09:31:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 01 00 00 F6 26 08 01 47 DC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 A9 8A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 8A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 29 00 00 00 00 07 04 06 00 88 8A 01 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 85 15 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 02 A8 01 00 35 04 06 00 67 23 37 F7 F3 F3 8B 53 46 FF DA B7 2F D7 [09:31:47]CheckFolder [09:31:47]dirname=/storage/ofd_packets [09:31:47]CheckFolder done [09:31:47]ProducePacketName [09:31:47]name=ofd_packets/00108546 [09:31:47]NVStorageSaveData ofd_packets/00108546 [09:31:47]File name is /storage/ofd_packets/00108546 [09:31:47]Write 302 bytes [09:31:47]NVStorageSaveData done [09:31:47]OFDSenderStorePacket done [09:31:47]KKMCreateOFDPacket done [09:31:47]NVStorageSaveData kkm_last_timestamp [09:31:47]File name is /storage/kkm_last_timestamp [09:31:47]Write 4 bytes [09:31:47]NVStorageSaveData done [09:31:47]ExternCall_PrintAddStr [09:31:47]wPrintStart [09:31:47]Write to MH i2c: 01 00 00 C9 25 EE [09:31:47]Write i2c OK [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: 01 [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: 01 07 00 [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: 01 07 00 C9 25 00 00 00 00 00 FF 0F 03 [09:31:47]RasterBufferAndPrint [09:31:47]line Счет N : (1)1040713 [09:31:47]line ИНН: 02508201610067 [09:31:47]line Контрольно-Кассовый Чек [09:31:47]line ПРОДАЖА [09:31:47]line ТРК (МРК, ГНК) : 2 [09:31:47]line Товар: 2710194210 [09:31:47]line ДТ(л)-К-5 [09:31:47]line 14.250 * 70.90 [09:31:47]line = 1010.33 [09:31:47]line НДС 12% НСП 1% [09:31:47]line > о реализуемом товаре [09:31:47]line ОКРУГЛЕНИЕ: -0.33 [09:31:47]line ИТОГО: 1010.00 [09:31:47]line Внесено: 1010.00 [09:31:47]line СДАЧА: 0.00 [09:31:47]line НСП 1% : 8.94 [09:31:47]line НДС 12% : 107.29 [09:31:47]line Наличными: 1010.00 [09:31:47]line Безнал.: 0.00 [09:31:47]line Место: АЗС № 15 "Партнер Нефть" [09:31:47]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [09:31:47]line СНО: Общий режим [09:31:47]line Чек 69 15.03.2024 09:31 [09:31:47]line Смена: 320 ФФД: 1.0 [09:31:47]line ЗНМ: 0300000266 [09:31:47]line РНМ: 0000000000091911 [09:31:47]line Версия ККМ: 001 [09:31:47]line ФМ: 0000000000871818 [09:31:47]line ФД: 108546 [09:31:47]line ФПД: 113400960513011 [09:31:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T093149&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108546&fm=113400960513011&tin=02508201610067®Number=0000000000091911&sum=101000 [09:31:47]OFD Sender: Processing packet 108546 [packets to send 29, broken 28] [09:31:47]ProducePacketName [09:31:47]name=ofd_packets/00108546 [09:31:47]OFD Sender: To server: pG, [09:31:47]CommunicateWithHost lk.salyk.kg:30040 [09:31:47]ConnectInit lk.salyk.kg [09:31:47]written 0, free lines is 4095 [09:31:47]Connected sock=10 [09:31:47]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 31 38 10 01 00 00 F6 26 08 01 47 DC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 A9 8A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 8A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 29 00 00 00 00 07 04 06 00 88 8A 01 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 85 15 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 02 A8 01 00 35 04 06 00 67 23 37 F7 F3 F3 8B 53 46 FF DA B7 2F D7 [09: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 31 38 4F 00 00 00 E8 09 47 00 CF 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 31 38 10 04 04 00 02 A8 01 00 F4 03 04 00 25 C1 F3 65 B6 04 01 00 00 8F E1 27 95 24 63 16 9B [09:31:48]CommunicateWithHost err = 0 [09:31:48]CheckOFDResponse [09:31:48]1017 (14) - 77093643461234 [09:31:48]1041 (16) - 0000000000871818 [09:31:48]1040 (4) - 108546 [09:31:48]1012 (4) - 15.03.2024 03:31 [09:31:48]1206 (1) - 0 [09:31:48]OFD Sender: Remove packet 108546 [09:31:48]ProducePacketName [09:31:48]name=ofd_packets/00108546 [09:31:48]NVStorageDeleteData [09:31:48]Write to MH i2c: 01 00 00 F4 25 19 [09:31:48]Write i2c OK [09:31:48]MH_I2C_Read... [09:31:48]Read from MH i2c: 01 [09:31:48]MH_I2C_Read... [09:31:48]Read from MH i2c: 01 07 00 [09:31:48]MH_I2C_Read... [09:31:48]Read from MH i2c: 01 07 00 F4 25 00 00 00 00 00 D7 0C 03 [09:31:48]RasterBufferAndPrint [09:31:48]line [09:31:48]line [09:31:48]line [09:31:48]line [09:31:48]line [09:31:48]written 0, free lines is 3295 [09:31:48]MH_Cut [09:31:48]Write to MH i2c: D1 01 00 FB 25 01 F2 [09:31:48]Write i2c OK [09:31:48]MH_I2C_Read... [09:31:48]Read from MH i2c: D1 [09:31:48]MH_I2C_Read... [09:31:48]Read from MH i2c: D1 01 00 [09:31:48]MH_I2C_Read... [09:31:48]Read from MH i2c: D1 01 00 FB 25 00 F1 [09:31:48]Write to MH i2c: 01 00 00 FC 25 21 [09:31:48]Write i2c OK [09:31:48]MH_I2C_Read... [09:31:48]OFD Sender: No OFD packet to send [09:31:49]*** Cut start [09:31:49]*** Purtial cut [09:31:49]*** Stage 1: CUTSNS_PIN = 1 [09:31:49]Read from MH i2c: 01 [09:31:49]MH_I2C_Read... [09:31:49]*** Stop cut motor [09:31:49]*** Cut end [09:31:49]Read from MH i2c: 01 07 00 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: 01 07 00 FC 25 00 00 00 00 00 FF 0F 36 [09:31:49]process_action close_receipt done [09:31:49]requested_data is exist [09:31:49]produce_requested_data [09:31:49]requested_item fm.sn is exist - process it [09:31:49]wFMCommunicate request_size=4 [09:31:49]MH_SAM_APDU [09:31:49]CAPDU: 80 11 00 00 [09:31:49]Write to MH i2c: E2 08 00 FD 25 80 11 00 00 00 00 00 00 9C [09:31:49]Write i2c OK [09:31:49]MH_I2C_Read... [09:31:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:49]Read from MH i2c: E2 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: E2 17 00 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: E2 17 00 FD 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 F0 [09:31:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:31:49]wFMCommunicate OK [09:31:49]requested_item fd.num is exist - process it [09:31:49]SAM_PROTO_GetFieldsCounters [09:31:49]wFMCommunicate request_size=4 [09:31:49]MH_SAM_APDU [09:31:49]CAPDU: 80 13 00 00 [09:31:49]Write to MH i2c: E2 08 00 FE 25 80 13 00 00 00 00 00 00 9F [09:31:49]Write i2c OK [09:31:49]MH_I2C_Read... [09:31:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:49]Read from MH i2c: E2 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: E2 62 00 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: E2 62 00 FE 25 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 02 A8 01 00 0E 04 04 00 40 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 78 [09:31: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 02 A8 01 00 0E 04 04 00 40 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 [09:31:49]wFMCommunicate OK [09:31:49]SAM_PROTO_GetFieldsCounters done [09:31:49]requested_item shift.num is exist - process it [09:31:49]requested_item shift.opened is exist - process it [09:31:49]req_shift_opened [09:31:49]FM_GetShiftState [09:31:49]SAM_PROTO_GetShiftState [09:31:49]wFMCommunicate request_size=4 [09:31:49]MH_SAM_APDU [09:31:49]CAPDU: 80 13 01 00 [09:31:49]Write to MH i2c: E2 08 00 FF 25 80 13 01 00 00 00 00 00 A1 [09:31:49]Write i2c OK [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: E2 [09:31:49]MH_I2C_Read... [09:31:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:49]Read from MH i2c: E2 0E 00 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: E2 0E 00 FF 25 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 D5 [09:31:49]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:31:49]wFMCommunicate OK [09:31:49]SAM_PROTO_GetShiftState done [09:31:49]FM_GetShiftState done [09:31:49]req_shift_opened done [09:31:49]requested_item shift.open_date is exist - process it [09:31:49]req_shift_open_date [09:31:49]req_shift_open_date done [09:31:49]produce_requested_data done [09:31:49]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108546,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [09:31:49]process_action_free close_receipt [09:31:49]json_value_free [09:31:49]json_value_free done [09:31:49]process_json_proto returns [09:31:49]Send response to host [09:31:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108546,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [09:31:49]free response buf [09:31:49]execute_script done [09:31:49]execute_script returns [09:31:49]free content buf [09:31:49]Sock 8.Close socket [09:31:49]Sock 8.Thread stoped [09:31:53]OFD Sender: No OFD packet to send [09:31:58]OFD Sender: No OFD packet to send [09:32:01]accept exits with 9 [09:32:01]New connection [09:32:01]New thread 3067198820 created [09:32:01]Thread 3067342180 joined [09:32:01]Waiting for new connection... [09:32:01] Sock 9.Parse request [09:32:01]Sock 9.Check first char [09:32:01]Sock 9.First char is OK [09:32:01]request: POST /json_proto HTTP/1.0 [09:32:01]Method: POST [09:32:01]URL: /json_proto [09:32:01]Method is POST - this is cgi request [09:32:01]url: /json_proto [09:32:01]query_string will be loaded in cgi processing [09:32:01]execute_cgi json_proto POST (null) [09:32:01]execute_cgi path=json_proto method=POST [09:32:01]POST find Content-Length [09:32:01]Host: 172.17.32.69:8080 [09:32:01]Content-Length: 679 [09:32:01]Content-Type: application/json [09:32:01] [09:32:01]POST finish read [09:32:01]Found Content-Length = 679 [09:32:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 11.310, "sum" : 700.09, "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" ] } } [09:32:01]execute_script... [09:32:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 11.310, "sum" : 700.09, "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" ] } } [09:32:01]POST & json_proto [09:32:01]process_json_proto [09:32:01]json parsed OK: [09:32:01]protocol is kg_v1.0 [09:32:01]action value=close_receipt [09:32:01]process_action close_receipt [09:32:01]cmd_close_receipt [09:32:01]MH_GetDate [09:32:01]Write to MH i2c: F0 00 00 00 26 15 [09:32:01]Write i2c OK [09:32:01]MH_I2C_Read... [09:32:01]Read from MH i2c: F0 [09:32:01]MH_I2C_Read... [09:32:01]Read from MH i2c: F0 09 00 [09:32:01]MH_I2C_Read... [09:32:01]Read from MH i2c: F0 09 00 00 26 00 95 15 F4 65 D5 0F D3 65 3D [09:32:01]GetLastDocTimeStamp 1710495109 [09:32:01]current date 1710495125 [09:32:01]FM_GetShiftState [09:32:01]SAM_PROTO_GetShiftState [09:32:01]wFMCommunicate request_size=4 [09:32:01]MH_SAM_APDU [09:32:01]CAPDU: 80 13 01 00 [09:32:01]Write to MH i2c: E2 08 00 01 26 80 13 01 00 00 00 00 00 A4 [09:32:01]Write i2c OK [09:32:01]MH_I2C_Read... [09:32:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:01]Read from MH i2c: E2 [09:32:01]MH_I2C_Read... [09:32:01]Read from MH i2c: E2 0E 00 [09:32:01]MH_I2C_Read... [09:32:01]Read from MH i2c: E2 0E 00 01 26 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 D8 [09:32:01]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:32:01]wFMCommunicate OK [09:32:01]SAM_PROTO_GetShiftState done [09:32:01]FM_GetShiftState done [09:32:01]opened in 1710461757 [09:32:01]opened+sec_in_day 1710548157 [09:32:01]quantity*price = 70008 [09:32:01]sum+1 = 70010 [09:32:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 70 15.03.2024 09:32 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108547 ФПД: 97979041190990 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T093205&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108547&fm=97979041190990&tin=02508201610067®Number=0000000000091911&sum=70000 [09:32:02]StoreToDocumentArchive [09:32:02]shift 320 fd 108547 [09:32:02]save to /storage/0320/doc_00108547 [09:32:02]save last doc name /storage/0320/doc_00108547 to /storage/kkm_last_doc_name [09:32:02]save OK [09:32:02]Clear old archive folders... [09:32:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:32:02]tlvbuf is B6F20C60 [09:32:02]SAM_PROTO_ClearQueue [09:32:02]wFMCommunicate request_size=4 [09:32:02]MH_SAM_APDU [09:32:02]CAPDU: 80 09 00 00 [09:32:02]Write to MH i2c: E2 08 00 0E 26 80 09 00 00 00 00 00 00 A6 [09:32:02]Write i2c OK [09:32:02]MH_I2C_Read... [09:32:02]Read from MH i2c: E2 [09:32:02]MH_I2C_Read... [09:32:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:02]Read from MH i2c: E2 03 00 [09:32:02]MH_I2C_Read... [09:32:02]Read from MH i2c: E2 03 00 0E 26 00 90 00 A8 [09:32:02]RAPDU: 90 00 [09:32:02]wFMCommunicate OK [09:32:02]SAM_PROTO_ClearQueue done [09:32:02]KKMCreateOFDPacket [09:32:02]OFDProtocolAddRootSTLVToBuf [09:32:02]FM_MakeSignedData [09:32:02]FM_MakeSignedData [09:32:02]SAM_PROTO_SignData [09:32:03]wFMCommunicate request_size=4 [09:32:03]MH_SAM_APDU [09:32:03]CAPDU: 80 0D 01 02 [09:32:03]Write to MH i2c: E2 08 00 0F 26 80 0D 01 02 00 00 00 00 AE [09:32:03]Write i2c OK [09:32:03]MH_I2C_Read... [09:32:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:03]Read from MH i2c: E2 [09:32:03]MH_I2C_Read... [09:32:03]Read from MH i2c: E2 03 00 [09:32:03]MH_I2C_Read... [09:32:03]Read from MH i2c: E2 03 00 0F 26 00 90 00 A9 [09:32:03]RAPDU: 90 00 [09:32:03]wFMCommunicate OK [09:32:03]wFMCommunicate request_size=255 [09:32:03]MH_SAM_APDU [09:32:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 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 46 00 00 00 F4 03 04 00 95 15 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 03 A8 01 00 35 04 06 00 59 [09:32:03]Write to MH i2c: E2 02 01 10 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 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 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 46 00 00 00 F4 03 04 00 95 15 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 03 A8 01 00 35 04 06 00 59 00 00 08 [09:32:03]Write i2c OK [09:32:03]MH_I2C_Read... [09:32:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:03]Read from MH i2c: E2 [09:32:03]MH_I2C_Read... [09:32:03]Read from MH i2c: E2 03 00 [09:32:03]MH_I2C_Read... [09:32:03]Read from MH i2c: E2 03 00 10 26 00 90 00 AA [09:32:03]RAPDU: 90 00 [09:32:03]wFMCommunicate OK [09:32:03]wFMCommunicate request_size=10 [09:32:03]MH_SAM_APDU [09:32:03]CAPDU: 80 0D 02 02 05 1C 85 F2 14 4E [09:32:03]Write to MH i2c: E2 0D 00 11 26 80 0D 02 02 05 00 1C 85 F2 14 4E 00 00 B0 [09:32:03]Write i2c OK [09:32:03]MH_I2C_Read... [09:32:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:03]Read from MH i2c: E2 [09:32:03]MH_I2C_Read... [09:32:03]Read from MH i2c: E2 03 00 [09:32:03]MH_I2C_Read... [09:32:03]Read from MH i2c: E2 03 00 11 26 00 90 00 AB [09:32:03]RAPDU: 90 00 [09:32:03]wFMCommunicate OK [09:32:03]wFMCommunicate request_size=4 [09:32:03]MH_SAM_APDU [09:32:03]CAPDU: 80 0D 03 02 [09:32:03]Write to MH i2c: E2 08 00 12 26 80 0D 03 02 00 00 00 00 B3 [09:32:03]Write i2c OK [09:32:03]MH_I2C_Read... [09:32:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:03]Read from MH i2c: E2 [09:32:03]MH_I2C_Read... [09:32:03]Read from MH i2c: E2 0B 00 [09:32:03]MH_I2C_Read... [09:32:03]Read from MH i2c: E2 0B 00 12 26 00 92 4C 86 4A 7A 01 7C A4 90 00 FD [09:32:03]RAPDU: 92 4C 86 4A 7A 01 7C A4 90 00 [09:32:03]wFMCommunicate OK [09:32:03]SAM_PROTO_SignData done [09:32:03]FM_MakeSignedData done [09:32:03]CreateOFDProtocolMessage [09:32:03]wFMCommunicate request_size=4 [09:32:03]MH_SAM_APDU [09:32:03]CAPDU: 80 11 00 00 [09:32:03]Write to MH i2c: E2 08 00 13 26 80 11 00 00 00 00 00 00 B3 [09:32:03]Write i2c OK [09:32:03]MH_I2C_Read... [09:32:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:03]Read from MH i2c: E2 [09:32:03]MH_I2C_Read... [09:32:03]Read from MH i2c: E2 17 00 [09:32:03]MH_I2C_Read... [09:32:03]Read from MH i2c: E2 17 00 13 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 07 [09:32:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:32:03]wFMCommunicate OK [09:32:03]CreateOFDProtocolMessage done [09:32:03]OFDSenderStorePacket 108547 [09:32:03]StoreOFDPacket docnum=108547 [09:32:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 E8 18 07 01 43 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 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 46 00 00 00 F4 03 04 00 95 15 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 03 A8 01 00 35 04 06 00 59 1C 85 F2 14 4E 92 4C 86 4A 7A 01 7C A4 [09:32:03]CheckFolder [09:32:03]dirname=/storage/ofd_packets [09:32:03]CheckFolder done [09:32:03]ProducePacketName [09:32:03]name=ofd_packets/00108547 [09:32:03]NVStorageSaveData ofd_packets/00108547 [09:32:03]File name is /storage/ofd_packets/00108547 [09:32:03]Write 301 bytes [09:32:03]NVStorageSaveData done [09:32:03]OFDSenderStorePacket done [09:32:03]KKMCreateOFDPacket done [09:32:03]NVStorageSaveData kkm_last_timestamp [09:32:03]File name is /storage/kkm_last_timestamp [09:32:03]Write 4 bytes [09:32:03]NVStorageSaveData done [09:32:03]ExternCall_PrintAddStr [09:32:03]wPrintStart [09:32:03]Write to MH i2c: 01 00 00 14 26 3A [09:32:03]Write i2c OK [09:32:03]MH_I2C_Read... [09:32:03]Read from MH i2c: 01 [09:32:03]MH_I2C_Read... [09:32:03]Read from MH i2c: 01 07 00 [09:32:03]MH_I2C_Read... [09:32:03]Read from MH i2c: 01 07 00 14 26 00 00 00 00 00 FF 0F 4F [09:32:03]RasterBufferAndPrint [09:32:03]line Счет N : (1)1040714 [09:32:03]line ИНН: 02508201610067 [09:32:03]line Контрольно-Кассовый Чек [09:32:03]line ПРОДАЖА [09:32:03]line ТРК (МРК, ГНК) : 13 [09:32:03]line Товар: 2710124130 [09:32:03]line Аи-92-К-5 [09:32:03]line 11.310 * 61.90 [09:32:03]line = 700.09 [09:32:03]line НДС 12% НСП 1% [09:32:03]line > о реализуемом товаре [09:32:03]line ОКРУГЛЕНИЕ: -0.09 [09:32:03]line ИТОГО: 700.00 [09:32:03]line Внесено: 700.00 [09:32:03]line СДАЧА: 0.00 [09:32:03]line НСП 1% : 6.19 [09:32:03]line НДС 12% : 74.35 [09:32:03]line Наличными: 700.00 [09:32:03]line Безнал.: 0.00 [09:32:03]line Место: АЗС № 15 "Партнер Нефть" [09:32:03]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [09:32:03]line СНО: Общий режим [09:32:03]line Чек 70 15.03.2024 09:32 [09:32:03]line Смена: 320 ФФД: 1.0 [09:32:03]line ЗНМ: 0300000266 [09:32:03]line РНМ: 0000000000091911 [09:32:03]line Версия ККМ: 001 [09:32:03]line ФМ: 0000000000871818 [09:32:03]line ФД: 108547 [09:32:03]line ФПД: 97979041190990 [09:32:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T093205&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108547&fm=97979041190990&tin=02508201610067®Number=0000000000091911&sum=70000 [09:32:03]written 0, free lines is 4095 [09:32:03]OFD Sender: Processing packet 108547 [packets to send 29, broken 28] [09:32:03]ProducePacketName [09:32:03]name=ofd_packets/00108547 [09:32:03]OFD Sender: To server: pG, [09:32:03]CommunicateWithHost lk.salyk.kg:30040 [09:32:03]ConnectInit lk.salyk.kg [09:32:03]Connected sock=8 [09:32:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 E8 18 07 01 43 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 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 46 00 00 00 F4 03 04 00 95 15 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 03 A8 01 00 35 04 06 00 59 1C 85 F2 14 4E 92 4C 86 4A 7A 01 7C A4 [09:32: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 31 38 4F 00 00 00 3E 32 47 00 C7 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 31 38 10 04 04 00 03 A8 01 00 F4 03 04 00 35 C1 F3 65 B6 04 01 00 00 DC 9D 38 B0 57 03 90 6A [09:32:04]CommunicateWithHost err = 0 [09:32:04]CheckOFDResponse [09:32:04]1017 (14) - 77093643461234 [09:32:04]1041 (16) - 0000000000871818 [09:32:04]1040 (4) - 108547 [09:32:04]1012 (4) - 15.03.2024 03:32 [09:32:04]1206 (1) - 0 [09:32:04]OFD Sender: Remove packet 108547 [09:32:04]ProducePacketName [09:32:04]name=ofd_packets/00108547 [09:32:04]NVStorageDeleteData [09:32:04]Write to MH i2c: 01 00 00 3F 26 65 [09:32:04]Write i2c OK [09:32:04]MH_I2C_Read... [09:32:04]Read from MH i2c: 01 [09:32:04]MH_I2C_Read... [09:32:04]Read from MH i2c: 01 07 00 [09:32:04]MH_I2C_Read... [09:32:04]Read from MH i2c: 01 07 00 3F 26 00 00 00 00 00 D1 0C 49 [09:32:04]RasterBufferAndPrint [09:32:04]line [09:32:04]line [09:32:04]line [09:32:04]line [09:32:04]line [09:32:04]written 0, free lines is 3289 [09:32:04]MH_Cut [09:32:04]Write to MH i2c: D1 01 00 46 26 01 3E [09:32:04]Write i2c OK [09:32:04]MH_I2C_Read... [09:32:04]Read from MH i2c: D1 [09:32:04]MH_I2C_Read... [09:32:04]Read from MH i2c: D1 01 00 [09:32:04]MH_I2C_Read... [09:32:04]Read from MH i2c: D1 01 00 46 26 00 3D [09:32:04]Write to MH i2c: 01 00 00 47 26 6D [09:32:04]Write i2c OK [09:32:04]MH_I2C_Read... [09:32:04]OFD Sender: No OFD packet to send [09:32:05]*** Cut start [09:32:05]*** Purtial cut [09:32:05]*** Stage 1: CUTSNS_PIN = 1 [09:32:05]Read from MH i2c: 01 [09:32:05]MH_I2C_Read... [09:32:05]*** Stop cut motor [09:32:05]*** Cut end [09:32:05]Read from MH i2c: 01 07 00 [09:32:05]MH_I2C_Read... [09:32:05]Read from MH i2c: 01 07 00 47 26 00 00 00 00 00 FF 0F 82 [09:32:05]process_action close_receipt done [09:32:05]requested_data is exist [09:32:05]produce_requested_data [09:32:05]requested_item fm.sn is exist - process it [09:32:05]wFMCommunicate request_size=4 [09:32:05]MH_SAM_APDU [09:32:05]CAPDU: 80 11 00 00 [09:32:05]Write to MH i2c: E2 08 00 48 26 80 11 00 00 00 00 00 00 E8 [09:32:05]Write i2c OK [09:32:05]MH_I2C_Read... [09:32:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:05]Read from MH i2c: E2 [09:32:05]MH_I2C_Read... [09:32:05]Read from MH i2c: E2 17 00 [09:32:05]MH_I2C_Read... [09:32:05]Read from MH i2c: E2 17 00 48 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 3C [09:32:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:32:05]wFMCommunicate OK [09:32:05]requested_item fd.num is exist - process it [09:32:05]SAM_PROTO_GetFieldsCounters [09:32:05]wFMCommunicate request_size=4 [09:32:05]MH_SAM_APDU [09:32:05]CAPDU: 80 13 00 00 [09:32:05]Write to MH i2c: E2 08 00 49 26 80 13 00 00 00 00 00 00 EB [09:32:05]Write i2c OK [09:32:05]MH_I2C_Read... [09:32:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:05]Read from MH i2c: E2 [09:32:05]MH_I2C_Read... [09:32:05]Read from MH i2c: E2 62 00 [09:32:05]MH_I2C_Read... [09:32:05]Read from MH i2c: E2 62 00 49 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 03 A8 01 00 0E 04 04 00 40 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 C8 [09:32:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 03 A8 01 00 0E 04 04 00 40 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 [09:32:05]wFMCommunicate OK [09:32:05]SAM_PROTO_GetFieldsCounters done [09:32:05]requested_item shift.num is exist - process it [09:32:05]requested_item shift.opened is exist - process it [09:32:05]req_shift_opened [09:32:05]FM_GetShiftState [09:32:05]SAM_PROTO_GetShiftState [09:32:05]wFMCommunicate request_size=4 [09:32:05]MH_SAM_APDU [09:32:05]CAPDU: 80 13 01 00 [09:32:05]Write to MH i2c: E2 08 00 4A 26 80 13 01 00 00 00 00 00 ED [09:32:05]Write i2c OK [09:32:05]MH_I2C_Read... [09:32:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:05]Read from MH i2c: E2 [09:32:05]MH_I2C_Read... [09:32:05]Read from MH i2c: E2 0E 00 [09:32:05]MH_I2C_Read... [09:32:05]Read from MH i2c: E2 0E 00 4A 26 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 21 [09:32:05]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:32:05]wFMCommunicate OK [09:32:05]SAM_PROTO_GetShiftState done [09:32:05]FM_GetShiftState done [09:32:05]req_shift_opened done [09:32:05]requested_item shift.open_date is exist - process it [09:32:05]req_shift_open_date [09:32:05]req_shift_open_date done [09:32:05]produce_requested_data done [09:32:05]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108547,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [09:32:05]process_action_free close_receipt [09:32:05]json_value_free [09:32:05]json_value_free done [09:32:05]process_json_proto returns [09:32:05]Send response to host [09:32:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108547,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [09:32:05]free response buf [09:32:05]execute_script done [09:32:05]execute_script returns [09:32:05]free content buf [09:32:05]Sock 9.Close socket [09:32:05]Sock 9.Thread stoped [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:11]accept exits with 10 [09:33:11]New connection [09:33:11]New thread 3067342180 created [09:33:11]Thread 3067198820 joined [09:33:11]Waiting for new connection... [09:33:11] Sock 10.Parse request [09:33:11]Sock 10.Check first char [09:33:11]Sock 10.First char is OK [09:33:11]request: POST /json_proto HTTP/1.0 [09:33:11]Method: POST [09:33:11]URL: /json_proto [09:33:11]Method is POST - this is cgi request [09:33:11]url: /json_proto [09:33:11]query_string will be loaded in cgi processing [09:33:11]execute_cgi json_proto POST (null) [09:33:11]execute_cgi path=json_proto method=POST [09:33:11]POST find Content-Length [09:33:11]Host: 172.17.32.69:8080 [09:33:11]Content-Length: 1209 [09:33:11]Content-Type: application/json [09:33:11] [09:33:11]POST finish read [09:33:11]Found Content-Length = 1209 [09:33:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040715\u000A15.03.2024 09:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1238.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74665\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:11]execute_script... [09:33:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040715\u000A15.03.2024 09:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1238.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74665\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:11]POST & json_proto [09:33:11]process_json_proto [09:33:11]json parsed OK: [09:33:11]protocol is kg_v1.0 [09:33:11]action value=print_text [09:33:11]process_action print_text [09:33:11]cmd_print_text [09:33:11]ExternCall_PrintAddStr [09:33:11]wPrintStart [09:33:11]Write to MH i2c: 01 00 00 4B 26 71 [09:33:11]Write i2c OK [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: 01 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: 01 07 00 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: 01 07 00 4B 26 00 00 00 00 00 FF 0F 86 [09:33:11]RasterBufferAndPrint [09:33:11]line *****ТОВАРНЫЙ ЧЕК***** [09:33:11]line АЗС 15 [09:33:11]line Партнер нефть [09:33:11]line 02508201610067 [09:33:11]line Кассир : Максатбек у Д. [09:33:11]line Счет N : (1)1040715 [09:33:11]line 15.03.2024 09:25 [09:33:11]line ПРОДАЖА [09:33:11]line ТРК (МРК, ГНК): 23 [09:33:11]line Вид ГСМ : 2710124130 [09:33:11]line Аи-92-К-5 [09:33:11]line 20.000 x 61.90 [09:33:11]line ИТОГ: 1238.00 [09:33:11]line Тип оплаты: Талоны: Топливная Карта [09:33:11]line 74665 [09:33:11]line ______________________ [09:33:11]line (подпись) [09:33:11]written 0, free lines is 4095 [09:33:11]Write to MH i2c: 01 00 00 60 26 86 [09:33:11]Write i2c OK [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: 01 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: 01 07 00 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: 01 07 00 60 26 00 00 00 00 00 F7 0D 91 [09:33:11]RasterBufferAndPrint [09:33:11]line [09:33:11]line [09:33:11]line [09:33:11]line [09:33:11]line [09:33:11]written 0, free lines is 3576 [09:33:11]MH_Cut [09:33:11]Write to MH i2c: D1 01 00 67 26 01 5F [09:33:11]Write i2c OK [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: D1 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: D1 01 00 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: D1 01 00 67 26 00 5E [09:33:11]Write to MH i2c: 01 00 00 68 26 8E [09:33:11]Write i2c OK [09:33:11]MH_I2C_Read... [09:33:12]*** Cut start [09:33:12]*** Purtial cut [09:33:12]*** Stage 1: CUTSNS_PIN = 1 [09:33:12]Read from MH i2c: 01 [09:33:12]MH_I2C_Read... [09:33:12]*** Stop cut motor [09:33:12]*** Cut end [09:33:12]Read from MH i2c: 01 07 00 [09:33:12]MH_I2C_Read... [09:33:12]Read from MH i2c: 01 07 00 68 26 00 00 00 00 00 FF 0F A3 [09:33:12]process_action print_text done [09:33:12]requested_data is exist [09:33:12]produce_requested_data [09:33:12]requested_item fm.sn is exist - process it [09:33:12]wFMCommunicate request_size=4 [09:33:12]MH_SAM_APDU [09:33:12]CAPDU: 80 11 00 00 [09:33:12]Write to MH i2c: E2 08 00 69 26 80 11 00 00 00 00 00 00 09 [09:33:12]Write i2c OK [09:33:12]MH_I2C_Read... [09:33:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:12]Read from MH i2c: E2 [09:33:12]MH_I2C_Read... [09:33:12]Read from MH i2c: E2 17 00 [09:33:12]MH_I2C_Read... [09:33:12]Read from MH i2c: E2 17 00 69 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 5D [09:33:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:33:12]wFMCommunicate OK [09:33:12]requested_item fd.num is exist - process it [09:33:12]SAM_PROTO_GetFieldsCounters [09:33:12]wFMCommunicate request_size=4 [09:33:12]MH_SAM_APDU [09:33:12]CAPDU: 80 13 00 00 [09:33:12]Write to MH i2c: E2 08 00 6A 26 80 13 00 00 00 00 00 00 0C [09:33:12]Write i2c OK [09:33:12]MH_I2C_Read... [09:33:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:12]Read from MH i2c: E2 [09:33:12]MH_I2C_Read... [09:33:12]Read from MH i2c: E2 62 00 [09:33:12]MH_I2C_Read... [09:33:12]Read from MH i2c: E2 62 00 6A 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 03 A8 01 00 0E 04 04 00 40 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 E9 [09:33:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 03 A8 01 00 0E 04 04 00 40 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 [09:33:12]wFMCommunicate OK [09:33:12]SAM_PROTO_GetFieldsCounters done [09:33:12]requested_item shift.num is exist - process it [09:33:12]requested_item shift.opened is exist - process it [09:33:12]req_shift_opened [09:33:12]FM_GetShiftState [09:33:12]SAM_PROTO_GetShiftState [09:33:12]wFMCommunicate request_size=4 [09:33:12]MH_SAM_APDU [09:33:12]CAPDU: 80 13 01 00 [09:33:12]Write to MH i2c: E2 08 00 6B 26 80 13 01 00 00 00 00 00 0E [09:33:12]Write i2c OK [09:33:12]MH_I2C_Read... [09:33:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:12]Read from MH i2c: E2 [09:33:12]MH_I2C_Read... [09:33:12]Read from MH i2c: E2 0E 00 [09:33:12]MH_I2C_Read... [09:33:12]Read from MH i2c: E2 0E 00 6B 26 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 42 [09:33:12]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:33:12]wFMCommunicate OK [09:33:12]SAM_PROTO_GetShiftState done [09:33:12]FM_GetShiftState done [09:33:12]req_shift_opened done [09:33:12]requested_item shift.open_date is exist - process it [09:33:12]req_shift_open_date [09:33:12]req_shift_open_date done [09:33:12]produce_requested_data done [09:33:12]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108547,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [09:33:12]process_action_free print_text [09:33:12]json_value_free [09:33:12]json_value_free done [09:33:12]process_json_proto returns [09:33:12]Send response to host [09:33:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108547,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [09:33:12]free response buf [09:33:12]execute_script done [09:33:12]execute_script returns [09:33:12]free content buf [09:33:12]Sock 10.Close socket [09:33:12]Sock 10.Thread stoped [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:47]int [09:33:47]Write to MH i2c: 01 00 00 6C 26 92 [09:33:47]*** FLAG_PRN_KEY set [09:33:47]Write i2c OK [09:33:47]MH_I2C_Read... [09:33:47]Read from MH i2c: 01 [09:33:47]MH_I2C_Read... [09:33:47]Read from MH i2c: 01 07 00 [09:33:47]MH_I2C_Read... [09:33:47]Read from MH i2c: 01 07 00 6C 26 00 08 00 00 00 FF 0F AF [09:33:47]state=0 [09:33:47]Key pressed [09:33:47]Feed [09:33:47]Write to MH i2c: D8 00 00 6D 26 6A [09:33:47]Write i2c OK [09:33:47]MH_I2C_Read... [09:33:47]Read from MH i2c: D8 [09:33:47]MH_I2C_Read... [09:33:47]Read from MH i2c: D8 01 00 [09:33:47]MH_I2C_Read... [09:33:47]Read from MH i2c: D8 01 00 6D 26 00 6B [09:33:47]int [09:33:47]Write to MH i2c: 01 00 00 6E 26 94 [09:33:47]Write i2c OK [09:33:47]MH_I2C_Read... [09:33:47]Read from MH i2c: 01 [09:33:47]MH_I2C_Read... [09:33:47]Read from MH i2c: 01 07 00 [09:33:47]MH_I2C_Read... [09:33:47]Read from MH i2c: 01 07 00 6E 26 00 48 00 00 00 3C 00 1F [09:33:47]state=2 [09:33:47]Key pressed [09:33:47]int [09:33:47]Write to MH i2c: 01 00 00 6F 26 95 [09:33:48]*** FLAG_PRN_KEY reset [09:33:48]Write i2c OK [09:33:48]MH_I2C_Read... [09:33:48]Read from MH i2c: 01 [09:33:48]MH_I2C_Read... [09:33:48]Read from MH i2c: 01 07 00 [09:33:48]MH_I2C_Read... [09:33:48]Read from MH i2c: 01 07 00 6F 26 00 00 00 00 00 FF 0F AA [09:33:48]state=2 [09:33:48]Stop feed [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:29]OFD Sender: No OFD packet to send [09:39:34]OFD Sender: No OFD packet to send [09:39:39]OFD Sender: No OFD packet to send [09:39:44]OFD Sender: No OFD packet to send [09:39:49]OFD Sender: No OFD packet to send [09:39:54]OFD Sender: No OFD packet to send [09:39:59]OFD Sender: No OFD packet to send [09:40:04]OFD Sender: No OFD packet to send [09:40:09]OFD Sender: No OFD packet to send [09:40:15]OFD Sender: No OFD packet to send [09:40:20]OFD Sender: No OFD packet to send [09:40:25]OFD Sender: No OFD packet to send [09:40:30]OFD Sender: No OFD packet to send [09:40:31]accept exits with 8 [09:40:31]New connection [09:40:31]New thread 3067198820 created [09:40:31]Thread 3067342180 joined [09:40:31]Waiting for new connection... [09:40:31] Sock 8.Parse request [09:40:31]Sock 8.Check first char [09:40:31]Sock 8.First char is OK [09:40:31]request: POST /json_proto HTTP/1.0 [09:40:31]Method: POST [09:40:31]URL: /json_proto [09:40:31]Method is POST - this is cgi request [09:40:31]url: /json_proto [09:40:31]query_string will be loaded in cgi processing [09:40:31]execute_cgi json_proto POST (null) [09:40:31]execute_cgi path=json_proto method=POST [09:40:31]POST find Content-Length [09:40:31]Host: 172.17.32.69:8080 [09:40:31]Content-Length: 1209 [09:40:31]Content-Type: application/json [09:40:31] [09:40:31]POST finish read [09:40:31]Found Content-Length = 1209 [09:40:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040717\u000A15.03.2024 09:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1238.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01091\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:31]execute_script... [09:40:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040717\u000A15.03.2024 09:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1238.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01091\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:31]POST & json_proto [09:40:31]process_json_proto [09:40:31]json parsed OK: [09:40:31]protocol is kg_v1.0 [09:40:31]action value=print_text [09:40:31]process_action print_text [09:40:31]cmd_print_text [09:40:31]ExternCall_PrintAddStr [09:40:31]wPrintStart [09:40:31]Write to MH i2c: 01 00 00 70 26 96 [09:40:31]Write i2c OK [09:40:31]MH_I2C_Read... [09:40:31]Read from MH i2c: 01 [09:40:31]MH_I2C_Read... [09:40:31]Read from MH i2c: 01 07 00 [09:40:31]MH_I2C_Read... [09:40:31]Read from MH i2c: 01 07 00 70 26 00 00 00 00 00 FF 0F AB [09:40:31]RasterBufferAndPrint [09:40:31]line *****ТОВАРНЫЙ ЧЕК***** [09:40:31]line АЗС 15 [09:40:31]line Партнер нефть [09:40:31]line 02508201610067 [09:40:31]line Кассир : Максатбек у Д. [09:40:31]line Счет N : (1)1040717 [09:40:31]line 15.03.2024 09:32 [09:40:31]line ПРОДАЖА [09:40:31]line ТРК (МРК, ГНК): 43 [09:40:31]line Вид ГСМ : 2710124130 [09:40:31]line Аи-92-К-5 [09:40:31]line 20.000 x 61.90 [09:40:31]line ИТОГ: 1238.00 [09:40:31]line Тип оплаты: Талоны: Топливная Карта [09:40:31]line 01091 [09:40:31]line ______________________ [09:40:31]line (подпись) [09:40:31]written 0, free lines is 4095 [09:40:31]Write to MH i2c: 01 00 00 85 26 AB [09:40:31]Write i2c OK [09:40:31]MH_I2C_Read... [09:40:31]Read from MH i2c: 01 [09:40:31]MH_I2C_Read... [09:40:31]Read from MH i2c: 01 07 00 [09:40:31]MH_I2C_Read... [09:40:31]Read from MH i2c: 01 07 00 85 26 00 00 00 00 00 F9 0D B8 [09:40:31]RasterBufferAndPrint [09:40:31]line [09:40:31]line [09:40:31]line [09:40:31]line [09:40:31]line [09:40:31]written 0, free lines is 3579 [09:40:31]MH_Cut [09:40:31]Write to MH i2c: D1 01 00 8C 26 01 84 [09:40:31]Write i2c OK [09:40:31]MH_I2C_Read... [09:40:31]Read from MH i2c: D1 [09:40:31]MH_I2C_Read... [09:40:31]Read from MH i2c: D1 01 00 [09:40:31]MH_I2C_Read... [09:40:31]Read from MH i2c: D1 01 00 8C 26 00 83 [09:40:31]Write to MH i2c: 01 00 00 8D 26 B3 [09:40:31]Write i2c OK [09:40:31]MH_I2C_Read... [09:40:32]*** Cut start [09:40:32]*** Purtial cut [09:40:32]*** Stage 1: CUTSNS_PIN = 1 [09:40:32]Read from MH i2c: 01 [09:40:32]MH_I2C_Read... [09:40:32]*** Stop cut motor [09:40:32]*** Cut end [09:40:32]Read from MH i2c: 01 07 00 [09:40:32]MH_I2C_Read... [09:40:32]Read from MH i2c: 01 07 00 8D 26 00 00 00 00 00 FF 0F C8 [09:40:32]process_action print_text done [09:40:32]requested_data is exist [09:40:32]produce_requested_data [09:40:32]requested_item fm.sn is exist - process it [09:40:32]wFMCommunicate request_size=4 [09:40:32]MH_SAM_APDU [09:40:32]CAPDU: 80 11 00 00 [09:40:32]Write to MH i2c: E2 08 00 8E 26 80 11 00 00 00 00 00 00 2E [09:40:32]Write i2c OK [09:40:32]MH_I2C_Read... [09:40:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:32]Read from MH i2c: E2 [09:40:32]MH_I2C_Read... [09:40:32]Read from MH i2c: E2 17 00 [09:40:32]MH_I2C_Read... [09:40:32]Read from MH i2c: E2 17 00 8E 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 82 [09:40:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:40:32]wFMCommunicate OK [09:40:32]requested_item fd.num is exist - process it [09:40:32]SAM_PROTO_GetFieldsCounters [09:40:32]wFMCommunicate request_size=4 [09:40:32]MH_SAM_APDU [09:40:32]CAPDU: 80 13 00 00 [09:40:32]Write to MH i2c: E2 08 00 8F 26 80 13 00 00 00 00 00 00 31 [09:40:32]Write i2c OK [09:40:32]MH_I2C_Read... [09:40:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:32]Read from MH i2c: E2 [09:40:32]MH_I2C_Read... [09:40:32]Read from MH i2c: E2 62 00 [09:40:32]MH_I2C_Read... [09:40:32]Read from MH i2c: E2 62 00 8F 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 03 A8 01 00 0E 04 04 00 40 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 0E [09:40:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 03 A8 01 00 0E 04 04 00 40 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 [09:40:32]wFMCommunicate OK [09:40:32]SAM_PROTO_GetFieldsCounters done [09:40:32]requested_item shift.num is exist - process it [09:40:32]requested_item shift.opened is exist - process it [09:40:32]req_shift_opened [09:40:32]FM_GetShiftState [09:40:32]SAM_PROTO_GetShiftState [09:40:32]wFMCommunicate request_size=4 [09:40:32]MH_SAM_APDU [09:40:32]CAPDU: 80 13 01 00 [09:40:32]Write to MH i2c: E2 08 00 90 26 80 13 01 00 00 00 00 00 33 [09:40:32]Write i2c OK [09:40:32]MH_I2C_Read... [09:40:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:32]Read from MH i2c: E2 [09:40:32]MH_I2C_Read... [09:40:32]Read from MH i2c: E2 0E 00 [09:40:32]MH_I2C_Read... [09:40:32]Read from MH i2c: E2 0E 00 90 26 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 67 [09:40:32]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:40:32]wFMCommunicate OK [09:40:32]SAM_PROTO_GetShiftState done [09:40:32]FM_GetShiftState done [09:40:32]req_shift_opened done [09:40:32]requested_item shift.open_date is exist - process it [09:40:32]req_shift_open_date [09:40:32]req_shift_open_date done [09:40:32]produce_requested_data done [09:40:32]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108547,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [09:40:32]process_action_free print_text [09:40:32]json_value_free [09:40:32]json_value_free done [09:40:32]process_json_proto returns [09:40:32]Send response to host [09:40:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108547,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [09:40:32]free response buf [09:40:32]execute_script done [09:40:32]execute_script returns [09:40:32]free content buf [09:40:32]Sock 8.Close socket [09:40:32]Sock 8.Thread stoped [09:40:35]OFD Sender: No OFD packet to send [09:40:40]OFD Sender: No OFD packet to send [09:40:45]OFD Sender: No OFD packet to send [09:40:50]OFD Sender: No OFD packet to send [09:40:55]OFD Sender: No OFD packet to send [09:41:00]OFD Sender: No OFD packet to send [09:41:01]accept exits with 9 [09:41:01]New connection [09:41:01]New thread 3067342180 created [09:41:01]Thread 3067198820 joined [09:41:01]Waiting for new connection... [09:41:01] Sock 9.Parse request [09:41:01]Sock 9.Check first char [09:41:01]Sock 9.First char is OK [09:41:01]request: POST /json_proto HTTP/1.0 [09:41:01]Method: POST [09:41:01]URL: /json_proto [09:41:01]Method is POST - this is cgi request [09:41:01]url: /json_proto [09:41:01]query_string will be loaded in cgi processing [09:41:01]execute_cgi json_proto POST (null) [09:41:01]execute_cgi path=json_proto method=POST [09:41:01]POST find Content-Length [09:41:01]Host: 172.17.32.69:8080 [09:41:01]Content-Length: 687 [09:41:01]Content-Type: application/json [09:41:01] [09:41:01]POST finish read [09:41:01]Found Content-Length = 687 [09:41:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 15.000, "sum" : 1063.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1063.00, "total" : 1063.00, "payments": [ { "type": 0, "sum" : 1063.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:01]execute_script... [09:41:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 15.000, "sum" : 1063.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1063.00, "total" : 1063.00, "payments": [ { "type": 0, "sum" : 1063.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:01]POST & json_proto [09:41:01]process_json_proto [09:41:01]json parsed OK: [09:41:01]protocol is kg_v1.0 [09:41:01]action value=close_receipt [09:41:01]process_action close_receipt [09:41:01]cmd_close_receipt [09:41:01]MH_GetDate [09:41:01]Write to MH i2c: F0 00 00 91 26 A6 [09:41:01]Write i2c OK [09:41:01]MH_I2C_Read... [09:41:01]Read from MH i2c: F0 [09:41:01]MH_I2C_Read... [09:41:01]Read from MH i2c: F0 09 00 [09:41:01]MH_I2C_Read... [09:41:01]Read from MH i2c: F0 09 00 91 26 00 B1 17 F4 65 D5 0F D3 65 EC [09:41:01]GetLastDocTimeStamp 1710495125 [09:41:01]current date 1710495665 [09:41:01]FM_GetShiftState [09:41:01]SAM_PROTO_GetShiftState [09:41:01]wFMCommunicate request_size=4 [09:41:01]MH_SAM_APDU [09:41:01]CAPDU: 80 13 01 00 [09:41:01]Write to MH i2c: E2 08 00 92 26 80 13 01 00 00 00 00 00 35 [09:41:01]Write i2c OK [09:41:01]MH_I2C_Read... [09:41:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:01]Read from MH i2c: E2 [09:41:01]MH_I2C_Read... [09:41:01]Read from MH i2c: E2 0E 00 [09:41:01]MH_I2C_Read... [09:41:01]Read from MH i2c: E2 0E 00 92 26 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 69 [09:41:01]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:41:01]wFMCommunicate OK [09:41:01]SAM_PROTO_GetShiftState done [09:41:01]FM_GetShiftState done [09:41:01]opened in 1710461757 [09:41:01]opened+sec_in_day 1710548157 [09:41:01]quantity*price = 106350 [09:41:01]sum+1 = 106351 [09:41:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 1063.00 Внесено: 1063.00 СДАЧА: 0.00 НСП 1% : 9.41 НДС 12% : 112.94 Наличными: 1063.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 71 15.03.2024 09:41 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108548 ФПД: 76319719798547 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T094105&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108548&fm=76319719798547&tin=02508201610067®Number=0000000000091911&sum=106300 [09:41:02]StoreToDocumentArchive [09:41:02]shift 320 fd 108548 [09:41:02]save to /storage/0320/doc_00108548 [09:41:02]save last doc name /storage/0320/doc_00108548 to /storage/kkm_last_doc_name [09:41:02]save OK [09:41:02]Clear old archive folders... [09:41:02]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:41:02]tlvbuf is 000EAB00 [09:41:02]SAM_PROTO_ClearQueue [09:41:02]wFMCommunicate request_size=4 [09:41:02]MH_SAM_APDU [09:41:02]CAPDU: 80 09 00 00 [09:41:02]Write to MH i2c: E2 08 00 9F 26 80 09 00 00 00 00 00 00 37 [09:41:02]Write i2c OK [09:41:02]MH_I2C_Read... [09:41:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:02]Read from MH i2c: E2 [09:41:02]MH_I2C_Read... [09:41:02]Read from MH i2c: E2 03 00 [09:41:02]MH_I2C_Read... [09:41:02]Read from MH i2c: E2 03 00 9F 26 00 90 00 39 [09:41:02]RAPDU: 90 00 [09:41:02]wFMCommunicate OK [09:41:02]SAM_PROTO_ClearQueue done [09:41:02]KKMCreateOFDPacket [09:41:02]OFDProtocolAddRootSTLVToBuf [09:41:02]FM_MakeSignedData [09:41:02]FM_MakeSignedData [09:41:02]SAM_PROTO_SignData [09:41:02]wFMCommunicate request_size=4 [09:41:02]MH_SAM_APDU [09:41:02]CAPDU: 80 0D 01 02 [09:41:02]Write to MH i2c: E2 08 00 A0 26 80 0D 01 02 00 00 00 00 3F [09:41:02]Write i2c OK [09:41:02]MH_I2C_Read... [09:41:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:02]Read from MH i2c: E2 [09:41:02]MH_I2C_Read... [09:41:02]Read from MH i2c: E2 03 00 [09:41:02]MH_I2C_Read... [09:41:02]Read from MH i2c: E2 03 00 A0 26 00 90 00 3A [09:41:02]RAPDU: 90 00 [09:41:02]wFMCommunicate OK [09:41:02]wFMCommunicate request_size=255 [09:41:02]MH_SAM_APDU [09:41:02]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 6E 9F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 9F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 2C 00 00 00 00 07 04 06 00 3C 9F 01 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 B1 17 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 04 A8 01 00 35 04 06 00 [09:41:02]Write to MH i2c: E2 02 01 A1 26 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 6E 9F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 9F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 2C 00 00 00 00 07 04 06 00 3C 9F 01 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 B1 17 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 04 A8 01 00 35 04 06 00 00 00 36 [09:41:02]Write i2c OK [09:41:02]MH_I2C_Read... [09:41:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:02]Read from MH i2c: E2 [09:41:02]MH_I2C_Read... [09:41:02]Read from MH i2c: E2 03 00 [09:41:02]MH_I2C_Read... [09:41:02]Read from MH i2c: E2 03 00 A1 26 00 90 00 3B [09:41:02]RAPDU: 90 00 [09:41:02]wFMCommunicate OK [09:41:02]wFMCommunicate request_size=11 [09:41:02]MH_SAM_APDU [09:41:02]CAPDU: 80 0D 02 02 06 45 69 91 C9 B7 13 [09:41:02]Write to MH i2c: E2 0E 00 A2 26 80 0D 02 02 06 00 45 69 91 C9 B7 13 00 00 20 [09:41:02]Write i2c OK [09:41:02]MH_I2C_Read... [09:41:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:03]Read from MH i2c: E2 [09:41:03]MH_I2C_Read... [09:41:03]Read from MH i2c: E2 03 00 [09:41:03]MH_I2C_Read... [09:41:03]Read from MH i2c: E2 03 00 A2 26 00 90 00 3C [09:41:03]RAPDU: 90 00 [09:41:03]wFMCommunicate OK [09:41:03]wFMCommunicate request_size=4 [09:41:03]MH_SAM_APDU [09:41:03]CAPDU: 80 0D 03 02 [09:41:03]Write to MH i2c: E2 08 00 A3 26 80 0D 03 02 00 00 00 00 44 [09:41:03]Write i2c OK [09:41:03]MH_I2C_Read... [09:41:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:03]Read from MH i2c: E2 [09:41:03]MH_I2C_Read... [09:41:03]Read from MH i2c: E2 0B 00 [09:41:03]MH_I2C_Read... [09:41:03]Read from MH i2c: E2 0B 00 A3 26 00 45 EF 09 DA 40 B3 AD 86 90 00 82 [09:41:03]RAPDU: 45 EF 09 DA 40 B3 AD 86 90 00 [09:41:03]wFMCommunicate OK [09:41:03]SAM_PROTO_SignData done [09:41:03]FM_MakeSignedData done [09:41:03]CreateOFDProtocolMessage [09:41:03]wFMCommunicate request_size=4 [09:41:03]MH_SAM_APDU [09:41:03]CAPDU: 80 11 00 00 [09:41:03]Write to MH i2c: E2 08 00 A4 26 80 11 00 00 00 00 00 00 44 [09:41:03]Write i2c OK [09:41:03]MH_I2C_Read... [09:41:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:03]Read from MH i2c: E2 [09:41:03]MH_I2C_Read... [09:41:03]Read from MH i2c: E2 17 00 [09:41:03]MH_I2C_Read... [09:41:03]Read from MH i2c: E2 17 00 A4 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 98 [09:41:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:41:03]wFMCommunicate OK [09:41:03]CreateOFDProtocolMessage done [09:41:03]OFDSenderStorePacket 108548 [09:41:03]StoreOFDPacket docnum=108548 [09:41:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 01 00 00 83 87 08 01 38 4D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 6E 9F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 9F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 2C 00 00 00 00 07 04 06 00 3C 9F 01 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 B1 17 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 04 A8 01 00 35 04 06 00 45 69 91 C9 B7 13 45 EF 09 DA 40 B3 AD 86 [09:41:03]CheckFolder [09:41:03]dirname=/storage/ofd_packets [09:41:03]CheckFolder done [09:41:03]ProducePacketName [09:41:03]name=ofd_packets/00108548 [09:41:03]NVStorageSaveData ofd_packets/00108548 [09:41:03]File name is /storage/ofd_packets/00108548 [09:41:03]Write 302 bytes [09:41:03]NVStorageSaveData done [09:41:03]OFDSenderStorePacket done [09:41:03]KKMCreateOFDPacket done [09:41:03]NVStorageSaveData kkm_last_timestamp [09:41:03]File name is /storage/kkm_last_timestamp [09:41:03]Write 4 bytes [09:41:03]NVStorageSaveData done [09:41:03]ExternCall_PrintAddStr [09:41:03]wPrintStart [09:41:03]Write to MH i2c: 01 00 00 A5 26 CB [09:41:03]Write i2c OK [09:41:03]MH_I2C_Read... [09:41:03]Read from MH i2c: 01 [09:41:03]MH_I2C_Read... [09:41:03]Read from MH i2c: 01 07 00 [09:41:03]MH_I2C_Read... [09:41:03]Read from MH i2c: 01 07 00 A5 26 00 00 00 00 00 FF 0F E0 [09:41:03]RasterBufferAndPrint [09:41:03]line Счет N : (1)1040716 [09:41:03]line ИНН: 02508201610067 [09:41:03]line Контрольно-Кассовый Чек [09:41:03]line ПРОДАЖА [09:41:03]line ТРК (МРК, ГНК) : 2 [09:41:03]line Товар: 2710194210 [09:41:03]line ДТ(л)-К-5 [09:41:03]line 15.000 * 70.90 [09:41:03]line = 1063.50 [09:41:03]line НДС 12% НСП 1% [09:41:03]line > о реализуемом товаре [09:41:03]line ОКРУГЛЕНИЕ: -0.50 [09:41:03]line ИТОГО: 1063.00 [09:41:03]line Внесено: 1063.00 [09:41:03]line СДАЧА: 0.00 [09:41:03]line НСП 1% : 9.41 [09:41:03]line НДС 12% : 112.94 [09:41:03]line Наличными: 1063.00 [09:41:03]line Безнал.: 0.00 [09:41:03]line Место: АЗС № 15 "Партнер Нефть" [09:41:03]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [09:41:03]line СНО: Общий режим [09:41:03]line Чек 71 15.03.2024 09:41 [09:41:03]line Смена: 320 ФФД: 1.0 [09:41:03]line ЗНМ: 0300000266 [09:41:03]line РНМ: 0000000000091911 [09:41:03]line Версия ККМ: 001 [09:41:03]line ФМ: 0000000000871818 [09:41:03]line ФД: 108548 [09:41:03]line ФПД: 76319719798547 [09:41:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T094105&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108548&fm=76319719798547&tin=02508201610067®Number=0000000000091911&sum=106300 [09:41:03]OFD Sender: Processing packet 108548 [packets to send 29, broken 28] [09:41:03]ProducePacketName [09:41:03]name=ofd_packets/00108548 [09:41:03]OFD Sender: To server: pG, [09:41:03]CommunicateWithHost lk.salyk.kg:30040 [09:41:03]ConnectInit lk.salyk.kg [09:41:03]written 0, free lines is 4095 [09:41:03]Write to MH i2c: 01 00 00 D0 26 F6 [09:41:03]Write i2c OK [09:41:03]MH_I2C_Read... [09:41:03]Read from MH i2c: 01 [09:41:03]MH_I2C_Read... [09:41:03]Read from MH i2c: 01 07 00 [09:41:03]MH_I2C_Read... [09:41:03]Read from MH i2c: 01 07 00 D0 26 00 00 00 00 00 CE 0C D7 [09:41:03]RasterBufferAndPrint [09:41:03]line [09:41:03]line [09:41:03]line [09:41:03]line [09:41:03]line [09:41:03]written 0, free lines is 3285 [09:41:03]MH_Cut [09:41:03]Write to MH i2c: D1 01 00 D7 26 01 CF [09:41:03]Write i2c OK [09:41:03]MH_I2C_Read... [09:41:03]Read from MH i2c: D1 [09:41:03]MH_I2C_Read... [09:41:03]Read from MH i2c: D1 01 00 [09:41:03]MH_I2C_Read... [09:41:03]Read from MH i2c: D1 01 00 D7 26 00 CE [09:41:03]Write to MH i2c: 01 00 00 D8 26 FE [09:41:03]Write i2c OK [09:41:03]MH_I2C_Read... [09:41:04]*** Cut start [09:41:04]*** Purtial cut [09:41:04]*** Stage 1: CUTSNS_PIN = 1 [09:41:05]Read from MH i2c: 01 [09:41:05]MH_I2C_Read... [09:41:05]*** Stop cut motor [09:41:05]*** Cut end [09:41:05]Read from MH i2c: 01 07 00 [09:41:05]MH_I2C_Read... [09:41:05]Read from MH i2c: 01 07 00 D8 26 00 00 00 00 00 FF 0F 13 [09:41:05]process_action close_receipt done [09:41:05]requested_data is exist [09:41:05]produce_requested_data [09:41:05]requested_item fm.sn is exist - process it [09:41:05]wFMCommunicate request_size=4 [09:41:05]MH_SAM_APDU [09:41:05]CAPDU: 80 11 00 00 [09:41:05]Write to MH i2c: E2 08 00 D9 26 80 11 00 00 00 00 00 00 79 [09:41:05]Write i2c OK [09:41:05]MH_I2C_Read... [09:41:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:05]Read from MH i2c: E2 [09:41:05]MH_I2C_Read... [09:41:05]Read from MH i2c: E2 17 00 [09:41:05]MH_I2C_Read... [09:41:05]Read from MH i2c: E2 17 00 D9 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 CD [09:41:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:41:05]wFMCommunicate OK [09:41:05]requested_item fd.num is exist - process it [09:41:05]SAM_PROTO_GetFieldsCounters [09:41:05]wFMCommunicate request_size=4 [09:41:05]MH_SAM_APDU [09:41:05]CAPDU: 80 13 00 00 [09:41:05]Write to MH i2c: E2 08 00 DA 26 80 13 00 00 00 00 00 00 7C [09:41:05]Write i2c OK [09:41:05]MH_I2C_Read... [09:41:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:05]Read from MH i2c: E2 [09:41:05]MH_I2C_Read... [09:41:05]Read from MH i2c: E2 62 00 [09:41:05]MH_I2C_Read... [09:41:05]Read from MH i2c: E2 62 00 DA 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 04 A8 01 00 0E 04 04 00 40 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 5D [09:41:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 04 A8 01 00 0E 04 04 00 40 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 [09:41:05]wFMCommunicate OK [09:41:05]SAM_PROTO_GetFieldsCounters done [09:41:05]requested_item shift.num is exist - process it [09:41:05]requested_item shift.opened is exist - process it [09:41:05]req_shift_opened [09:41:05]FM_GetShiftState [09:41:05]SAM_PROTO_GetShiftState [09:41:05]wFMCommunicate request_size=4 [09:41:05]MH_SAM_APDU [09:41:05]CAPDU: 80 13 01 00 [09:41:05]Write to MH i2c: E2 08 00 DB 26 80 13 01 00 00 00 00 00 7E [09:41:05]Write i2c OK [09:41:05]MH_I2C_Read... [09:41:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:05]Read from MH i2c: E2 [09:41:05]MH_I2C_Read... [09:41:05]Read from MH i2c: E2 0E 00 [09:41:05]MH_I2C_Read... [09:41:05]Read from MH i2c: E2 0E 00 DB 26 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 B2 [09:41:05]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:41:05]wFMCommunicate OK [09:41:05]SAM_PROTO_GetShiftState done [09:41:05]FM_GetShiftState done [09:41:05]req_shift_opened done [09:41:05]requested_item shift.open_date is exist - process it [09:41:05]req_shift_open_date [09:41:05]req_shift_open_date done [09:41:05]produce_requested_data done [09:41:05]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108548,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [09:41:05]process_action_free close_receipt [09:41:05]json_value_free [09:41:05]json_value_free done [09:41:05]process_json_proto returns [09:41:05]Send response to host [09:41:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108548,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [09:41:05]free response buf [09:41:05]execute_script done [09:41:05]execute_script returns [09:41:05]free content buf [09:41:05]Sock 9.Close socket [09:41:05]Sock 9.Thread stoped [09:41:40]accept exits with 8 [09:41:40]New connection [09:41:40]New thread 3067198820 created [09:41:40]Thread 3067342180 joined [09:41:40]Waiting for new connection... [09:41:40] Sock 8.Parse request [09:41:40]Sock 8.Check first char [09:41:40]Sock 8.First char is OK [09:41:40]request: POST /json_proto HTTP/1.0 [09:41:40]Method: POST [09:41:40]URL: /json_proto [09:41:40]Method is POST - this is cgi request [09:41:40]url: /json_proto [09:41:40]query_string will be loaded in cgi processing [09:41:40]execute_cgi json_proto POST (null) [09:41:40]execute_cgi path=json_proto method=POST [09:41:40]POST find Content-Length [09:41:40]Host: 172.17.32.69:8080 [09:41:40]Content-Length: 687 [09:41:40]Content-Type: application/json [09:41:40] [09:41:40]POST finish read [09:41:40]Found Content-Length = 687 [09:41:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040719", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 8", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "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:41:40]execute_script... [09:41:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040719", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 8", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "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:41:40]POST & json_proto [09:41:40]process_json_proto [09:41:40]json parsed OK: [09:41:40]protocol is kg_v1.0 [09:41:40]action value=close_receipt [09:41:40]process_action close_receipt [09:41:40]cmd_close_receipt [09:41:40]MH_GetDate [09:41:40]Write to MH i2c: F0 00 00 DC 26 F1 [09:41:40]Write i2c OK [09:41:40]MH_I2C_Read... [09:41:40]Read from MH i2c: F0 [09:41:40]MH_I2C_Read... [09:41:40]Read from MH i2c: F0 09 00 [09:41:40]MH_I2C_Read... [09:41:40]Read from MH i2c: F0 09 00 DC 26 00 D8 17 F4 65 D5 0F D3 65 5E [09:41:40]GetLastDocTimeStamp 1710495665 [09:41:40]current date 1710495704 [09:41:40]FM_GetShiftState [09:41:40]SAM_PROTO_GetShiftState [09:41:40]wFMCommunicate request_size=4 [09:41:40]MH_SAM_APDU [09:41:40]CAPDU: 80 13 01 00 [09:41:40]Write to MH i2c: E2 08 00 DD 26 80 13 01 00 00 00 00 00 80 [09:41:40]Write i2c OK [09:41:40]MH_I2C_Read... [09:41:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:40]Read from MH i2c: E2 [09:41:40]MH_I2C_Read... [09:41:40]Read from MH i2c: E2 0E 00 [09:41:40]MH_I2C_Read... [09:41:40]Read from MH i2c: E2 0E 00 DD 26 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 B4 [09:41:40]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:41:40]wFMCommunicate OK [09:41:40]SAM_PROTO_GetShiftState done [09:41:40]FM_GetShiftState done [09:41:40]opened in 1710461757 [09:41:40]opened+sec_in_day 1710548157 [09:41:40]quantity*price = 100039 [09:41:40]sum+1 = 100041 [09:41:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 72 15.03.2024 09:41 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108549 ФПД: 153654017670234 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T094144&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108549&fm=153654017670234&tin=02508201610067®Number=0000000000091911&sum=100000 [09:41:42]StoreToDocumentArchive [09:41:42]shift 320 fd 108549 [09:41:42]save to /storage/0320/doc_00108549 [09:41:42]save last doc name /storage/0320/doc_00108549 to /storage/kkm_last_doc_name [09:41:42]save OK [09:41:42]Clear old archive folders... [09:41:42]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:41:42]tlvbuf is B6F07860 [09:41:42]SAM_PROTO_ClearQueue [09:41:42]wFMCommunicate request_size=4 [09:41:42]MH_SAM_APDU [09:41:42]CAPDU: 80 09 00 00 [09:41:42]Write to MH i2c: E2 08 00 EA 26 80 09 00 00 00 00 00 00 82 [09:41:42]Write i2c OK [09:41:42]MH_I2C_Read... [09:41:42]Read from MH i2c: E2 [09:41:42]MH_I2C_Read... [09:41:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:42]Read from MH i2c: E2 03 00 [09:41:42]MH_I2C_Read... [09:41:42]Read from MH i2c: E2 03 00 EA 26 00 90 00 84 [09:41:42]RAPDU: 90 00 [09:41:42]wFMCommunicate OK [09:41:42]SAM_PROTO_ClearQueue done [09:41:42]KKMCreateOFDPacket [09:41:42]OFDProtocolAddRootSTLVToBuf [09:41:42]FM_MakeSignedData [09:41:42]FM_MakeSignedData [09:41:42]SAM_PROTO_SignData [09:41:42]wFMCommunicate request_size=4 [09:41:42]MH_SAM_APDU [09:41:42]CAPDU: 80 0D 01 02 [09:41:42]Write to MH i2c: E2 08 00 EB 26 80 0D 01 02 00 00 00 00 8A [09:41:42]Write i2c OK [09:41:42]MH_I2C_Read... [09:41:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:42]Read from MH i2c: E2 [09:41:42]MH_I2C_Read... [09:41:42]Read from MH i2c: E2 03 00 [09:41:42]MH_I2C_Read... [09:41:42]Read from MH i2c: E2 03 00 EB 26 00 90 00 85 [09:41:42]RAPDU: 90 00 [09:41:42]wFMCommunicate OK [09:41:42]wFMCommunicate request_size=255 [09:41:42]MH_SAM_APDU [09:41:42]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 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 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 D8 17 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 05 A8 01 00 35 04 06 00 [09:41:42]Write to MH i2c: E2 02 01 EC 26 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 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 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 D8 17 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 05 A8 01 00 35 04 06 00 00 00 2B [09:41:42]Write i2c OK [09:41:42]MH_I2C_Read... [09:41:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:42]Read from MH i2c: E2 [09:41:42]MH_I2C_Read... [09:41:42]Read from MH i2c: E2 03 00 [09:41:42]MH_I2C_Read... [09:41:42]Read from MH i2c: E2 03 00 EC 26 00 90 00 86 [09:41:42]RAPDU: 90 00 [09:41:42]wFMCommunicate OK [09:41:42]wFMCommunicate request_size=11 [09:41:42]MH_SAM_APDU [09:41:42]CAPDU: 80 0D 02 02 06 8B BF 5D 24 3C 5A [09:41:42]Write to MH i2c: E2 0E 00 ED 26 80 0D 02 02 06 00 8B BF 5D 24 3C 5A 00 00 FA [09:41:42]Write i2c OK [09:41:42]MH_I2C_Read... [09:41:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:42]Read from MH i2c: E2 [09:41:42]MH_I2C_Read... [09:41:42]Read from MH i2c: E2 03 00 [09:41:42]MH_I2C_Read... [09:41:42]Read from MH i2c: E2 03 00 ED 26 00 90 00 87 [09:41:42]RAPDU: 90 00 [09:41:42]wFMCommunicate OK [09:41:42]wFMCommunicate request_size=4 [09:41:42]MH_SAM_APDU [09:41:42]CAPDU: 80 0D 03 02 [09:41:42]Write to MH i2c: E2 08 00 EE 26 80 0D 03 02 00 00 00 00 8F [09:41:42]Write i2c OK [09:41:42]MH_I2C_Read... [09:41:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:42]Read from MH i2c: E2 [09:41:42]MH_I2C_Read... [09:41:42]Read from MH i2c: E2 0B 00 [09:41:42]MH_I2C_Read... [09:41:42]Read from MH i2c: E2 0B 00 EE 26 00 95 F0 A5 B8 96 6E 72 86 90 00 6E [09:41:42]RAPDU: 95 F0 A5 B8 96 6E 72 86 90 00 [09:41:42]wFMCommunicate OK [09:41:42]SAM_PROTO_SignData done [09:41:42]FM_MakeSignedData done [09:41:42]CreateOFDProtocolMessage [09:41:42]wFMCommunicate request_size=4 [09:41:42]MH_SAM_APDU [09:41:42]CAPDU: 80 11 00 00 [09:41:42]Write to MH i2c: E2 08 00 EF 26 80 11 00 00 00 00 00 00 8F [09:41:42]Write i2c OK [09:41:42]MH_I2C_Read... [09:41:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:42]Read from MH i2c: E2 [09:41:42]MH_I2C_Read... [09:41:42]Read from MH i2c: E2 17 00 [09:41:42]MH_I2C_Read... [09:41:42]Read from MH i2c: E2 17 00 EF 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 E3 [09:41:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:41:42]wFMCommunicate OK [09:41:42]CreateOFDProtocolMessage done [09:41:42]OFDSenderStorePacket 108549 [09:41:42]StoreOFDPacket docnum=108549 [09:41:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 01 00 00 42 86 08 01 B1 2E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 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 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 D8 17 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 05 A8 01 00 35 04 06 00 8B BF 5D 24 3C 5A 95 F0 A5 B8 96 6E 72 86 [09:41:42]CheckFolder [09:41:42]dirname=/storage/ofd_packets [09:41:42]CheckFolder done [09:41:42]ProducePacketName [09:41:42]name=ofd_packets/00108549 [09:41:42]NVStorageSaveData ofd_packets/00108549 [09:41:42]File name is /storage/ofd_packets/00108549 [09:41:42]Write 302 bytes [09:41:42]NVStorageSaveData done [09:41:42]OFDSenderStorePacket done [09:41:42]KKMCreateOFDPacket done [09:41:42]NVStorageSaveData kkm_last_timestamp [09:41:42]File name is /storage/kkm_last_timestamp [09:41:42]Write 4 bytes [09:41:42]NVStorageSaveData done [09:41:42]ExternCall_PrintAddStr [09:41:42]wPrintStart [09:41:42]Write to MH i2c: 01 00 00 F0 26 16 [09:41:42]Write i2c OK [09:41:42]MH_I2C_Read... [09:41:42]Read from MH i2c: 01 [09:41:42]MH_I2C_Read... [09:41:42]Read from MH i2c: 01 07 00 [09:41:42]MH_I2C_Read... [09:41:42]Read from MH i2c: 01 07 00 F0 26 00 00 00 00 00 FF 0F 2B [09:41:42]RasterBufferAndPrint [09:41:42]line Счет N : (1)1040719 [09:41:42]line ИНН: 02508201610067 [09:41:42]line Контрольно-Кассовый Чек [09:41:42]line ПРОДАЖА [09:41:42]line ТРК (МРК, ГНК) : 8 [09:41:42]line Товар: 2710194210 [09:41:42]line ДТ(л)-К-5 [09:41:42]line 14.110 * 70.90 [09:41:42]line = 1000.40 [09:41:42]line НДС 12% НСП 1% [09:41:42]line > о реализуемом товаре [09:41:42]line ОКРУГЛЕНИЕ: -0.40 [09:41:42]line ИТОГО: 1000.00 [09:41:42]line Внесено: 1000.00 [09:41:42]line СДАЧА: 0.00 [09:41:42]line НСП 1% : 8.85 [09:41:42]line НДС 12% : 106.24 [09:41:42]line Наличными: 1000.00 [09:41:42]line Безнал.: 0.00 [09:41:42]line Место: АЗС № 15 "Партнер Нефть" [09:41:42]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [09:41:42]line СНО: Общий режим [09:41:42]line Чек 72 15.03.2024 09:41 [09:41:42]line Смена: 320 ФФД: 1.0 [09:41:42]line ЗНМ: 0300000266 [09:41:42]line РНМ: 0000000000091911 [09:41:42]line Версия ККМ: 001 [09:41:42]line ФМ: 0000000000871818 [09:41:42]line ФД: 108549 [09:41:42]line ФПД: 153654017670234 [09:41:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T094144&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108549&fm=153654017670234&tin=02508201610067®Number=0000000000091911&sum=100000 [09:41:42]written 0, free lines is 4095 [09:41:43]Write to MH i2c: 01 00 00 1B 27 42 [09:41:43]Write i2c OK [09:41:43]MH_I2C_Read... [09:41:43]Read from MH i2c: 01 [09:41:43]MH_I2C_Read... [09:41:43]Read from MH i2c: 01 07 00 [09:41:43]MH_I2C_Read... [09:41:43]Read from MH i2c: 01 07 00 1B 27 00 00 00 00 00 D5 0C 2A [09:41:43]RasterBufferAndPrint [09:41:43]line [09:41:43]line [09:41:43]line [09:41:43]line [09:41:43]line [09:41:43]written 0, free lines is 3292 [09:41:43]MH_Cut [09:41:43]Write to MH i2c: D1 01 00 22 27 01 1B [09:41:43]Write i2c OK [09:41:43]MH_I2C_Read... [09:41:43]Read from MH i2c: D1 [09:41:43]MH_I2C_Read... [09:41:43]Read from MH i2c: D1 01 00 [09:41:43]MH_I2C_Read... [09:41:43]Read from MH i2c: D1 01 00 22 27 00 1A [09:41:43]Write to MH i2c: 01 00 00 23 27 4A [09:41:43]Write i2c OK [09:41:43]MH_I2C_Read... [09:41:44]*** Cut start [09:41:44]*** Purtial cut [09:41:44]*** Stage 1: CUTSNS_PIN = 1 [09:41:44]Read from MH i2c: 01 [09:41:44]MH_I2C_Read... [09:41:44]*** Stop cut motor [09:41:44]*** Cut end [09:41:44]Read from MH i2c: 01 07 00 [09:41:44]MH_I2C_Read... [09:41:44]Read from MH i2c: 01 07 00 23 27 00 00 00 00 00 FF 0F 5F [09:41:44]process_action close_receipt done [09:41:44]requested_data is exist [09:41:44]produce_requested_data [09:41:44]requested_item fm.sn is exist - process it [09:41:44]wFMCommunicate request_size=4 [09:41:44]MH_SAM_APDU [09:41:44]CAPDU: 80 11 00 00 [09:41:44]Write to MH i2c: E2 08 00 24 27 80 11 00 00 00 00 00 00 C5 [09:41:44]Write i2c OK [09:41:44]MH_I2C_Read... [09:41:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:44]Read from MH i2c: E2 [09:41:44]MH_I2C_Read... [09:41:44]Read from MH i2c: E2 17 00 [09:41:44]MH_I2C_Read... [09:41:44]Read from MH i2c: E2 17 00 24 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 19 [09:41:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:41:44]wFMCommunicate OK [09:41:44]requested_item fd.num is exist - process it [09:41:44]SAM_PROTO_GetFieldsCounters [09:41:44]wFMCommunicate request_size=4 [09:41:44]MH_SAM_APDU [09:41:44]CAPDU: 80 13 00 00 [09:41:44]Write to MH i2c: E2 08 00 25 27 80 13 00 00 00 00 00 00 C8 [09:41:44]Write i2c OK [09:41:44]MH_I2C_Read... [09:41:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:44]Read from MH i2c: E2 [09:41:44]MH_I2C_Read... [09:41:44]Read from MH i2c: E2 62 00 [09:41:44]MH_I2C_Read... [09:41:44]Read from MH i2c: E2 62 00 25 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 05 A8 01 00 0E 04 04 00 40 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 AD [09:41:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 05 A8 01 00 0E 04 04 00 40 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 [09:41:44]wFMCommunicate OK [09:41:44]SAM_PROTO_GetFieldsCounters done [09:41:44]requested_item shift.num is exist - process it [09:41:44]requested_item shift.opened is exist - process it [09:41:44]req_shift_opened [09:41:44]FM_GetShiftState [09:41:44]SAM_PROTO_GetShiftState [09:41:44]wFMCommunicate request_size=4 [09:41:44]MH_SAM_APDU [09:41:44]CAPDU: 80 13 01 00 [09:41:44]Write to MH i2c: E2 08 00 26 27 80 13 01 00 00 00 00 00 CA [09:41:44]Write i2c OK [09:41:44]MH_I2C_Read... [09:41:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:44]Read from MH i2c: E2 [09:41:44]MH_I2C_Read... [09:41:44]Read from MH i2c: E2 0E 00 [09:41:44]MH_I2C_Read... [09:41:44]Read from MH i2c: E2 0E 00 26 27 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 FE [09:41:44]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:41:44]wFMCommunicate OK [09:41:44]SAM_PROTO_GetShiftState done [09:41:44]FM_GetShiftState done [09:41:44]req_shift_opened done [09:41:44]requested_item shift.open_date is exist - process it [09:41:44]req_shift_open_date [09:41:44]req_shift_open_date done [09:41:44]produce_requested_data done [09:41:44]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108549,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [09:41:44]process_action_free close_receipt [09:41:44]json_value_free [09:41:44]json_value_free done [09:41:44]process_json_proto returns [09:41:44]Send response to host [09:41:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108549,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [09:41:44]free response buf [09:41:44]execute_script done [09:41:44]execute_script returns [09:41:44]free content buf [09:41:44]Sock 8.Close socket [09:41:44]Sock 8.Thread stoped [09:41:51]accept exits with 9 [09:41:51]New connection [09:41:51]New thread 3067342180 created [09:41:51]Thread 3067198820 joined [09:41:51]Waiting for new connection... [09:41:51] Sock 9.Parse request [09:41:51]Sock 9.Check first char [09:41:51]Sock 9.First char is OK [09:41:51]request: POST /json_proto HTTP/1.0 [09:41:51]Method: POST [09:41:51]URL: /json_proto [09:41:51]Method is POST - this is cgi request [09:41:51]url: /json_proto [09:41:51]query_string will be loaded in cgi processing [09:41:51]execute_cgi json_proto POST (null) [09:41:51]execute_cgi path=json_proto method=POST [09:41:51]POST find Content-Length [09:41:51]Host: 172.17.32.69:8080 [09:41:51]Content-Length: 1207 [09:41:51]Content-Type: application/json [09:41:51] [09:41:51]POST finish read [09:41:51]Found Content-Length = 1207 [09:41:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040718\u000A15.03.2024 09:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1857.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3862431;3584123\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:51]execute_script... [09:41:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040718\u000A15.03.2024 09:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1857.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3862431;3584123\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:51]POST & json_proto [09:41:51]process_json_proto [09:41:51]json parsed OK: [09:41:51]protocol is kg_v1.0 [09:41:51]action value=print_text [09:41:51]process_action print_text [09:41:51]cmd_print_text [09:41:51]ExternCall_PrintAddStr [09:41:51]wPrintStart [09:41:51]Write to MH i2c: 01 00 00 27 27 4E [09:41:51]Write i2c OK [09:41:51]MH_I2C_Read... [09:41:51]Read from MH i2c: 01 [09:41:51]MH_I2C_Read... [09:41:51]Read from MH i2c: 01 07 00 [09:41:51]MH_I2C_Read... [09:41:51]Read from MH i2c: 01 07 00 27 27 00 00 00 00 00 FF 0F 63 [09:41:51]RasterBufferAndPrint [09:41:51]line *****ТОВАРНЫЙ ЧЕК***** [09:41:51]line АЗС 15 [09:41:51]line Партнер нефть [09:41:51]line 02508201610067 [09:41:51]line Кассир : Максатбек у Д. [09:41:51]line Счет N : (1)1040718 [09:41:51]line 15.03.2024 09:34 [09:41:51]line ПРОДАЖА [09:41:51]line ТРК (МРК, ГНК): 23 [09:41:51]line Вид ГСМ : 2710124130 [09:41:51]line Аи-92-К-5 [09:41:51]line 30.000 x 61.90 [09:41:51]line ИТОГ: 1857.00 [09:41:51]line Тип оплаты: Талоны: Партнер нефть [09:41:51]line 3862431;3584123 [09:41:51]line ______________________ [09:41:51]line (подпись) [09:41:51]written 0, free lines is 4095 [09:41:51]Write to MH i2c: 01 00 00 3C 27 63 [09:41:51]Write i2c OK [09:41:51]MH_I2C_Read... [09:41:51]Read from MH i2c: 01 [09:41:51]MH_I2C_Read... [09:41:51]Read from MH i2c: 01 07 00 [09:41:51]MH_I2C_Read... [09:41:51]Read from MH i2c: 01 07 00 3C 27 00 00 00 00 00 FD 0D 74 [09:41:51]RasterBufferAndPrint [09:41:51]line [09:41:51]line [09:41:51]line [09:41:51]line [09:41:51]line [09:41:51]written 0, free lines is 3584 [09:41:51]MH_Cut [09:41:51]Write to MH i2c: D1 01 00 43 27 01 3C [09:41:51]Write i2c OK [09:41:51]MH_I2C_Read... [09:41:51]Read from MH i2c: D1 [09:41:51]MH_I2C_Read... [09:41:51]Read from MH i2c: D1 01 00 [09:41:51]MH_I2C_Read... [09:41:51]Read from MH i2c: D1 01 00 43 27 00 3B [09:41:51]Write to MH i2c: 01 00 00 44 27 6B [09:41:51]Write i2c OK [09:41:51]MH_I2C_Read... [09:41:52]*** Cut start [09:41:52]*** Purtial cut [09:41:52]*** Stage 1: CUTSNS_PIN = 1 [09:41:52]Read from MH i2c: 01 [09:41:52]MH_I2C_Read... [09:41:52]*** Stop cut motor [09:41:52]*** Cut end [09:41:52]Read from MH i2c: 01 07 00 [09:41:52]MH_I2C_Read... [09:41:52]Read from MH i2c: 01 07 00 44 27 00 00 00 00 00 FF 0F 80 [09:41:52]process_action print_text done [09:41:52]requested_data is exist [09:41:52]produce_requested_data [09:41:52]requested_item fm.sn is exist - process it [09:41:52]wFMCommunicate request_size=4 [09:41:52]MH_SAM_APDU [09:41:52]CAPDU: 80 11 00 00 [09:41:52]Write to MH i2c: E2 08 00 45 27 80 11 00 00 00 00 00 00 E6 [09:41:52]Write i2c OK [09:41:52]MH_I2C_Read... [09:41:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:52]Read from MH i2c: E2 [09:41:52]MH_I2C_Read... [09:41:52]Read from MH i2c: E2 17 00 [09:41:52]MH_I2C_Read... [09:41:52]Read from MH i2c: E2 17 00 45 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 3A [09:41:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:41:52]wFMCommunicate OK [09:41:52]requested_item fd.num is exist - process it [09:41:52]SAM_PROTO_GetFieldsCounters [09:41:52]wFMCommunicate request_size=4 [09:41:52]MH_SAM_APDU [09:41:52]CAPDU: 80 13 00 00 [09:41:52]Write to MH i2c: E2 08 00 46 27 80 13 00 00 00 00 00 00 E9 [09:41:52]Write i2c OK [09:41:52]MH_I2C_Read... [09:41:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:52]Read from MH i2c: E2 [09:41:52]MH_I2C_Read... [09:41:52]Read from MH i2c: E2 62 00 [09:41:52]MH_I2C_Read... [09:41:52]Read from MH i2c: E2 62 00 46 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 05 A8 01 00 0E 04 04 00 40 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 CE [09:41: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 05 A8 01 00 0E 04 04 00 40 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 [09:41:52]wFMCommunicate OK [09:41:52]SAM_PROTO_GetFieldsCounters done [09:41:52]requested_item shift.num is exist - process it [09:41:52]requested_item shift.opened is exist - process it [09:41:52]req_shift_opened [09:41:52]FM_GetShiftState [09:41:52]SAM_PROTO_GetShiftState [09:41:52]wFMCommunicate request_size=4 [09:41:52]MH_SAM_APDU [09:41:52]CAPDU: 80 13 01 00 [09:41:52]Write to MH i2c: E2 08 00 47 27 80 13 01 00 00 00 00 00 EB [09:41:52]Write i2c OK [09:41:52]MH_I2C_Read... [09:41:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:53]Read from MH i2c: E2 [09:41:53]MH_I2C_Read... [09:41:53]Read from MH i2c: E2 0E 00 [09:41:53]MH_I2C_Read... [09:41:53]Read from MH i2c: E2 0E 00 47 27 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 1F [09:41:53]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:41:53]wFMCommunicate OK [09:41:53]SAM_PROTO_GetShiftState done [09:41:53]FM_GetShiftState done [09:41:53]req_shift_opened done [09:41:53]requested_item shift.open_date is exist - process it [09:41:53]req_shift_open_date [09:41:53]req_shift_open_date done [09:41:53]produce_requested_data done [09:41:53]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108549,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [09:41:53]process_action_free print_text [09:41:53]json_value_free [09:41:53]json_value_free done [09:41:53]process_json_proto returns [09:41:53]Send response to host [09:41:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108549,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [09:41:53]free response buf [09:41:53]execute_script done [09:41:53]execute_script returns [09:41:53]free content buf [09:41:53]Sock 9.Close socket [09:41:53]Sock 9.Thread stoped [09:43:15]ConnectInit Can't connect to host [09:43:15]CommunicateWithHost connect error [09:43:15]CommunicateWithHost err = -1 [09:43:15]OFD Sender: Server communicate error [09:43:15]OFD Sender: Processing packet 108548 [packets to send 30, broken 28] [09:43:15]ProducePacketName [09:43:15]name=ofd_packets/00108548 [09:43:15]OFD Sender: To server: pG, [09:43:15]CommunicateWithHost lk.salyk.kg:30040 [09:43:15]ConnectInit lk.salyk.kg [09:43:15]Connected sock=9 [09:43:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 01 00 00 83 87 08 01 38 4D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 6E 9F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 9F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 2C 00 00 00 00 07 04 06 00 3C 9F 01 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 B1 17 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 04 A8 01 00 35 04 06 00 45 69 91 C9 B7 13 45 EF 09 DA 40 B3 AD 86 [09:43:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 4F 00 00 00 59 18 47 00 AC 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 31 38 10 04 04 00 04 A8 01 00 F4 03 04 00 D5 C3 F3 65 B6 04 01 00 00 89 0B F5 19 60 06 B1 3B [09:43:16]CommunicateWithHost err = 0 [09:43:16]CheckOFDResponse [09:43:16]1017 (14) - 77093643461234 [09:43:16]1041 (16) - 0000000000871818 [09:43:16]1040 (4) - 108548 [09:43:16]1012 (4) - 15.03.2024 03:43 [09:43:16]1206 (1) - 0 [09:43:16]OFD Sender: Remove packet 108548 [09:43:16]ProducePacketName [09:43:16]name=ofd_packets/00108548 [09:43:16]NVStorageDeleteData [09:43:16]OFD Sender: Processing packet 108549 [packets to send 29, broken 28] [09:43:16]ProducePacketName [09:43:16]name=ofd_packets/00108549 [09:43:16]OFD Sender: To server: pG, [09:43:16]CommunicateWithHost lk.salyk.kg:30040 [09:43:16]ConnectInit lk.salyk.kg [09:43:16]Connected sock=9 [09:43:16]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 31 38 10 01 00 00 42 86 08 01 B1 2E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 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 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 D8 17 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 05 A8 01 00 35 04 06 00 8B BF 5D 24 3C 5A 95 F0 A5 B8 96 6E 72 86 [09:43:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 4F 00 00 00 BA E9 47 00 30 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 31 38 10 04 04 00 05 A8 01 00 F4 03 04 00 D6 C3 F3 65 B6 04 01 00 00 C5 9B B1 9A 93 1C 9D D5 [09:43:16]CommunicateWithHost err = 0 [09:43:16]CheckOFDResponse [09:43:16]1017 (14) - 77093643461234 [09:43:16]1041 (16) - 0000000000871818 [09:43:16]1040 (4) - 108549 [09:43:16]1012 (4) - 15.03.2024 03:43 [09:43:16]1206 (1) - 0 [09:43:16]OFD Sender: Remove packet 108549 [09:43:16]ProducePacketName [09:43:16]name=ofd_packets/00108549 [09:43:16]NVStorageDeleteData [09:43:17]OFD Sender: No OFD packet to send [09:43:22]OFD Sender: No OFD packet to send [09:43:27]OFD Sender: No OFD packet to send [09:43:32]OFD Sender: No OFD packet to send [09:43:37]OFD Sender: No OFD packet to send [09:43:42]OFD Sender: No OFD packet to send [09:43:47]OFD Sender: No OFD packet to send [09:43:52]OFD Sender: No OFD packet to send [09:43:57]OFD Sender: No OFD packet to send [09:44:02]OFD Sender: No OFD packet to send [09:44:07]OFD Sender: No OFD packet to send [09:44:12]OFD Sender: No OFD packet to send [09:44:17]OFD Sender: No OFD packet to send [09:44:22]OFD Sender: No OFD packet to send [09:44:27]OFD Sender: No OFD packet to send [09:44:32]OFD Sender: No OFD packet to send [09:44:37]OFD Sender: No OFD packet to send [09:44:40]accept exits with 8 [09:44:40]New connection [09:44:40]New thread 3067198820 created [09:44:40]Thread 3067342180 joined [09:44:40]Waiting for new connection... [09:44:40] Sock 8.Parse request [09:44:40]Sock 8.Check first char [09:44:40]Sock 8.First char is OK [09:44:40]request: POST /json_proto HTTP/1.0 [09:44:40]Method: POST [09:44:40]URL: /json_proto [09:44:40]Method is POST - this is cgi request [09:44:40]url: /json_proto [09:44:40]query_string will be loaded in cgi processing [09:44:40]execute_cgi json_proto POST (null) [09:44:40]execute_cgi path=json_proto method=POST [09:44:40]POST find Content-Length [09:44:40]Host: 172.17.32.69:8080 [09:44:40]Content-Length: 688 [09:44:40]Content-Type: application/json [09:44:40] [09:44:40]POST finish read [09:44:40]Found Content-Length = 688 [09:44:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "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:44:40]execute_script... [09:44:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "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:44:40]POST & json_proto [09:44:40]process_json_proto [09:44:40]json parsed OK: [09:44:40]protocol is kg_v1.0 [09:44:40]action value=close_receipt [09:44:40]process_action close_receipt [09:44:40]cmd_close_receipt [09:44:40]MH_GetDate [09:44:40]Write to MH i2c: F0 00 00 48 27 5E [09:44:40]Write i2c OK [09:44:40]MH_I2C_Read... [09:44:40]Read from MH i2c: F0 [09:44:40]MH_I2C_Read... [09:44:40]Read from MH i2c: F0 09 00 [09:44:40]MH_I2C_Read... [09:44:40]Read from MH i2c: F0 09 00 48 27 00 8B 18 F4 65 D5 0F D3 65 7F [09:44:40]GetLastDocTimeStamp 1710495704 [09:44:40]current date 1710495883 [09:44:40]FM_GetShiftState [09:44:40]SAM_PROTO_GetShiftState [09:44:40]wFMCommunicate request_size=4 [09:44:40]MH_SAM_APDU [09:44:40]CAPDU: 80 13 01 00 [09:44:40]Write to MH i2c: E2 08 00 49 27 80 13 01 00 00 00 00 00 ED [09:44:40]Write i2c OK [09:44:40]MH_I2C_Read... [09:44:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:40]Read from MH i2c: E2 [09:44:40]MH_I2C_Read... [09:44:40]Read from MH i2c: E2 0E 00 [09:44:40]MH_I2C_Read... [09:44:40]Read from MH i2c: E2 0E 00 49 27 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 21 [09:44:40]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:44:40]wFMCommunicate OK [09:44:40]SAM_PROTO_GetShiftState done [09:44:40]FM_GetShiftState done [09:44:40]opened in 1710461757 [09:44:40]opened+sec_in_day 1710548157 [09:44:40]quantity*price = 100012 [09:44:40]sum+1 = 100014 [09:44:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 73 15.03.2024 09:44 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108550 ФПД: 234307845892435 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T094443&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108550&fm=234307845892435&tin=02508201610067®Number=0000000000091911&sum=100000 [09:44:41]StoreToDocumentArchive [09:44:41]shift 320 fd 108550 [09:44:41]save to /storage/0320/doc_00108550 [09:44:41]save last doc name /storage/0320/doc_00108550 to /storage/kkm_last_doc_name [09:44:41]save OK [09:44:41]Clear old archive folders... [09:44:41]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:44:41]tlvbuf is B6F20990 [09:44:41]SAM_PROTO_ClearQueue [09:44:41]wFMCommunicate request_size=4 [09:44:41]MH_SAM_APDU [09:44:41]CAPDU: 80 09 00 00 [09:44:41]Write to MH i2c: E2 08 00 56 27 80 09 00 00 00 00 00 00 EF [09:44:41]Write i2c OK [09:44:41]MH_I2C_Read... [09:44:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:41]Read from MH i2c: E2 [09:44:41]MH_I2C_Read... [09:44:41]Read from MH i2c: E2 03 00 [09:44:41]MH_I2C_Read... [09:44:41]Read from MH i2c: E2 03 00 56 27 00 90 00 F1 [09:44:41]RAPDU: 90 00 [09:44:41]wFMCommunicate OK [09:44:41]SAM_PROTO_ClearQueue done [09:44:41]KKMCreateOFDPacket [09:44:41]OFDProtocolAddRootSTLVToBuf [09:44:41]FM_MakeSignedData [09:44:41]FM_MakeSignedData [09:44:41]SAM_PROTO_SignData [09:44:41]wFMCommunicate request_size=4 [09:44:41]MH_SAM_APDU [09:44:41]CAPDU: 80 0D 01 02 [09:44:41]Write to MH i2c: E2 08 00 57 27 80 0D 01 02 00 00 00 00 F7 [09:44:41]Write i2c OK [09:44:41]MH_I2C_Read... [09:44:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:41]Read from MH i2c: E2 [09:44:41]MH_I2C_Read... [09:44:41]Read from MH i2c: E2 03 00 [09:44:41]MH_I2C_Read... [09:44:41]Read from MH i2c: E2 03 00 57 27 00 90 00 F2 [09:44:41]RAPDU: 90 00 [09:44:41]wFMCommunicate OK [09:44:41]wFMCommunicate request_size=255 [09:44:41]MH_SAM_APDU [09:44:41]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 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 49 00 00 00 F4 03 04 00 8B 18 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 06 A8 01 [09:44:41]Write to MH i2c: E2 02 01 58 27 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 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 49 00 00 00 F4 03 04 00 8B 18 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 06 A8 01 00 00 1C [09:44:41]Write i2c OK [09:44:41]MH_I2C_Read... [09:44:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:41]Read from MH i2c: E2 [09:44:41]MH_I2C_Read... [09:44:41]Read from MH i2c: E2 03 00 [09:44:41]MH_I2C_Read... [09:44:41]Read from MH i2c: E2 03 00 58 27 00 90 00 F3 [09:44:41]RAPDU: 90 00 [09:44:41]wFMCommunicate OK [09:44:41]wFMCommunicate request_size=16 [09:44:41]MH_SAM_APDU [09:44:41]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 D5 1A 0B EC 29 53 [09:44:41]Write to MH i2c: E2 13 00 59 27 80 0D 02 02 0B 00 00 35 04 06 00 D5 1A 0B EC 29 53 00 00 B1 [09:44:41]Write i2c OK [09:44:41]MH_I2C_Read... [09:44:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:41]Read from MH i2c: E2 [09:44:41]MH_I2C_Read... [09:44:41]Read from MH i2c: E2 03 00 [09:44:41]MH_I2C_Read... [09:44:41]Read from MH i2c: E2 03 00 59 27 00 90 00 F4 [09:44:41]RAPDU: 90 00 [09:44:41]wFMCommunicate OK [09:44:41]wFMCommunicate request_size=4 [09:44:41]MH_SAM_APDU [09:44:41]CAPDU: 80 0D 03 02 [09:44:41]Write to MH i2c: E2 08 00 5A 27 80 0D 03 02 00 00 00 00 FC [09:44:41]Write i2c OK [09:44:41]MH_I2C_Read... [09:44:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:41]Read from MH i2c: E2 [09:44:41]MH_I2C_Read... [09:44:41]Read from MH i2c: E2 0B 00 [09:44:41]MH_I2C_Read... [09:44:41]Read from MH i2c: E2 0B 00 5A 27 00 38 AE A9 0A AC 02 4D D8 90 00 69 [09:44:41]RAPDU: 38 AE A9 0A AC 02 4D D8 90 00 [09:44:41]wFMCommunicate OK [09:44:41]SAM_PROTO_SignData done [09:44:41]FM_MakeSignedData done [09:44:41]CreateOFDProtocolMessage [09:44:41]wFMCommunicate request_size=4 [09:44:41]MH_SAM_APDU [09:44:41]CAPDU: 80 11 00 00 [09:44:41]Write to MH i2c: E2 08 00 5B 27 80 11 00 00 00 00 00 00 FC [09:44:41]Write i2c OK [09:44:41]MH_I2C_Read... [09:44:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:41]Read from MH i2c: E2 [09:44:41]MH_I2C_Read... [09:44:41]Read from MH i2c: E2 17 00 [09:44:41]MH_I2C_Read... [09:44:41]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 31 38 90 00 50 [09:44:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:44:41]wFMCommunicate OK [09:44:41]CreateOFDProtocolMessage done [09:44:41]OFDSenderStorePacket 108550 [09:44:41]StoreOFDPacket docnum=108550 [09:44:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 15 01 00 00 EA F0 0D 01 D0 4C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 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 49 00 00 00 F4 03 04 00 8B 18 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 06 A8 01 00 35 04 06 00 D5 1A 0B EC 29 53 38 AE A9 0A AC 02 4D D8 [09:44:41]CheckFolder [09:44:41]dirname=/storage/ofd_packets [09:44:41]CheckFolder done [09:44:41]ProducePacketName [09:44:41]name=ofd_packets/00108550 [09:44:41]NVStorageSaveData ofd_packets/00108550 [09:44:41]File name is /storage/ofd_packets/00108550 [09:44:41]Write 307 bytes [09:44:41]NVStorageSaveData done [09:44:41]OFDSenderStorePacket done [09:44:41]KKMCreateOFDPacket done [09:44:41]NVStorageSaveData kkm_last_timestamp [09:44:41]File name is /storage/kkm_last_timestamp [09:44:41]Write 4 bytes [09:44:41]NVStorageSaveData done [09:44:41]ExternCall_PrintAddStr [09:44:41]wPrintStart [09:44:41]Write to MH i2c: 01 00 00 5C 27 83 [09:44:41]Write i2c OK [09:44:41]MH_I2C_Read... [09:44:41]Read from MH i2c: 01 [09:44:41]MH_I2C_Read... [09:44:41]Read from MH i2c: 01 07 00 [09:44:41]MH_I2C_Read... [09:44:41]Read from MH i2c: 01 07 00 5C 27 00 00 00 00 00 FF 0F 98 [09:44:41]RasterBufferAndPrint [09:44:41]line Счет N : (1)1040720 [09:44:41]line ИНН: 02508201610067 [09:44:41]line Контрольно-Кассовый Чек [09:44:41]line ПРОДАЖА [09:44:41]line ТРК (МРК, ГНК) : 5 [09:44:41]line Товар: 2710194210 [09:44:41]line D-ENERGY ДТ-К-5 [09:44:41]line 13.910 * 71.90 [09:44:41]line = 1000.13 [09:44:41]line НДС 12% НСП 1% [09:44:41]line > о реализуемом товаре [09:44:41]line ОКРУГЛЕНИЕ: -0.13 [09:44:41]line ИТОГО: 1000.00 [09:44:41]line Внесено: 1000.00 [09:44:41]line СДАЧА: 0.00 [09:44:41]line НСП 1% : 8.85 [09:44:41]line НДС 12% : 106.21 [09:44:41]line Наличными: 1000.00 [09:44:41]line Безнал.: 0.00 [09:44:41]line Место: АЗС № 15 "Партнер Нефть" [09:44:41]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [09:44:41]line СНО: Общий режим [09:44:41]line Чек 73 15.03.2024 09:44 [09:44:41]line Смена: 320 ФФД: 1.0 [09:44:41]line ЗНМ: 0300000266 [09:44:41]line РНМ: 0000000000091911 [09:44:41]line Версия ККМ: 001 [09:44:41]line ФМ: 0000000000871818 [09:44:41]line ФД: 108550 [09:44:41]line ФПД: 234307845892435 [09:44:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T094443&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108550&fm=234307845892435&tin=02508201610067®Number=0000000000091911&sum=100000 [09:44:42]OFD Sender: Processing packet 108550 [packets to send 29, broken 28] [09:44:42]ProducePacketName [09:44:42]name=ofd_packets/00108550 [09:44:42]OFD Sender: To server: pG, [09:44:42]CommunicateWithHost lk.salyk.kg:30040 [09:44:42]ConnectInit lk.salyk.kg [09:44:42]written 0, free lines is 4095 [09:44:42]Connected sock=10 [09:44:42]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 31 38 15 01 00 00 EA F0 0D 01 D0 4C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 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 49 00 00 00 F4 03 04 00 8B 18 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 06 A8 01 00 35 04 06 00 D5 1A 0B EC 29 53 38 AE A9 0A AC 02 4D D8 [09:44:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 4F 00 00 00 77 18 47 00 36 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 31 38 10 04 04 00 06 A8 01 00 F4 03 04 00 2C C4 F3 65 B6 04 01 00 00 2C 00 D4 6B 64 71 30 1C [09:44:42]CommunicateWithHost err = 0 [09:44:42]CheckOFDResponse [09:44:42]1017 (14) - 77093643461234 [09:44:42]1041 (16) - 0000000000871818 [09:44:42]1040 (4) - 108550 [09:44:42]1012 (4) - 15.03.2024 03:44 [09:44:42]1206 (1) - 0 [09:44:42]OFD Sender: Remove packet 108550 [09:44:42]ProducePacketName [09:44:42]name=ofd_packets/00108550 [09:44:42]NVStorageDeleteData [09:44:42]Write to MH i2c: 01 00 00 87 27 AE [09:44:42]Write i2c OK [09:44:42]MH_I2C_Read... [09:44:42]Read from MH i2c: 01 [09:44:42]MH_I2C_Read... [09:44:42]Read from MH i2c: 01 07 00 [09:44:42]MH_I2C_Read... [09:44:42]Read from MH i2c: 01 07 00 87 27 00 00 00 00 00 E2 0C A3 [09:44:42]RasterBufferAndPrint [09:44:42]line [09:44:42]line [09:44:42]line [09:44:42]line [09:44:42]line [09:44:42]written 0, free lines is 3307 [09:44:42]MH_Cut [09:44:42]Write to MH i2c: D1 01 00 8E 27 01 87 [09:44:42]Write i2c OK [09:44:42]MH_I2C_Read... [09:44:42]Read from MH i2c: D1 [09:44:42]MH_I2C_Read... [09:44:42]Read from MH i2c: D1 01 00 [09:44:42]MH_I2C_Read... [09:44:42]Read from MH i2c: D1 01 00 8E 27 00 86 [09:44:42]Write to MH i2c: 01 00 00 8F 27 B6 [09:44:42]Write i2c OK [09:44:42]MH_I2C_Read... [09:44:42]OFD Sender: No OFD packet to send [09:44:43]*** Cut start [09:44:43]*** Purtial cut [09:44:43]*** Stage 1: CUTSNS_PIN = 1 [09:44:43]Read from MH i2c: 01 [09:44:43]MH_I2C_Read... [09:44:43]*** Stop cut motor [09:44:43]*** Cut end [09:44:43]Read from MH i2c: 01 07 00 [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: 01 07 00 8F 27 00 00 00 00 00 FF 0F CB [09:44:43]process_action close_receipt done [09:44:43]requested_data is exist [09:44:43]produce_requested_data [09:44:43]requested_item fm.sn is exist - process it [09:44:43]wFMCommunicate request_size=4 [09:44:43]MH_SAM_APDU [09:44:43]CAPDU: 80 11 00 00 [09:44:43]Write to MH i2c: E2 08 00 90 27 80 11 00 00 00 00 00 00 31 [09:44:43]Write i2c OK [09:44:43]MH_I2C_Read... [09:44:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:43]Read from MH i2c: E2 [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: E2 17 00 [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: E2 17 00 90 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 85 [09:44:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:44:43]wFMCommunicate OK [09:44:43]requested_item fd.num is exist - process it [09:44:43]SAM_PROTO_GetFieldsCounters [09:44:43]wFMCommunicate request_size=4 [09:44:43]MH_SAM_APDU [09:44:43]CAPDU: 80 13 00 00 [09:44:43]Write to MH i2c: E2 08 00 91 27 80 13 00 00 00 00 00 00 34 [09:44:43]Write i2c OK [09:44:43]MH_I2C_Read... [09:44:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:43]Read from MH i2c: E2 [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: E2 62 00 [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: E2 62 00 91 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 06 A8 01 00 0E 04 04 00 40 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 1D [09:44:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 06 A8 01 00 0E 04 04 00 40 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 [09:44:43]wFMCommunicate OK [09:44:43]SAM_PROTO_GetFieldsCounters done [09:44:43]requested_item shift.num is exist - process it [09:44:43]requested_item shift.opened is exist - process it [09:44:43]req_shift_opened [09:44:43]FM_GetShiftState [09:44:43]SAM_PROTO_GetShiftState [09:44:43]wFMCommunicate request_size=4 [09:44:43]MH_SAM_APDU [09:44:43]CAPDU: 80 13 01 00 [09:44:43]Write to MH i2c: E2 08 00 92 27 80 13 01 00 00 00 00 00 36 [09:44:43]Write i2c OK [09:44:43]MH_I2C_Read... [09:44:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:43]Read from MH i2c: E2 [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: E2 0E 00 [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: E2 0E 00 92 27 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 6A [09:44:43]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:44:43]wFMCommunicate OK [09:44:43]SAM_PROTO_GetShiftState done [09:44:43]FM_GetShiftState done [09:44:43]req_shift_opened done [09:44:43]requested_item shift.open_date is exist - process it [09:44:43]req_shift_open_date [09:44:43]req_shift_open_date done [09:44:43]produce_requested_data done [09:44:43]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108550,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [09:44:43]process_action_free close_receipt [09:44:43]json_value_free [09:44:43]json_value_free done [09:44:43]process_json_proto returns [09:44:43]Send response to host [09:44:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108550,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [09:44:43]free response buf [09:44:43]execute_script done [09:44:43]execute_script returns [09:44:43]free content buf [09:44:43]Sock 8.Close socket [09:44:43]Sock 8.Thread stoped [09:44:47]OFD Sender: No OFD packet to send [09:44:52]OFD Sender: No OFD packet to send [09:44:57]OFD Sender: No OFD packet to send [09:45:02]OFD Sender: No OFD packet to send [09:45:07]OFD Sender: No OFD packet to send [09:45:12]OFD Sender: No OFD packet to send [09:45:17]OFD Sender: No OFD packet to send [09:45:22]OFD Sender: No OFD packet to send [09:45:27]OFD Sender: No OFD packet to send [09:45:32]OFD Sender: No OFD packet to send [09:45:33]accept exits with 9 [09:45:33]New connection [09:45:33]New thread 3067342180 created [09:45:33]Thread 3067198820 joined [09:45:33]Waiting for new connection... [09:45:33] Sock 9.Parse request [09:45:33]Sock 9.Check first char [09:45:33]Sock 9.First char is OK [09:45:33]request: POST /json_proto HTTP/1.0 [09:45:33]Method: POST [09:45:33]URL: /json_proto [09:45:33]Method is POST - this is cgi request [09:45:33]url: /json_proto [09:45:33]query_string will be loaded in cgi processing [09:45:33]execute_cgi json_proto POST (null) [09:45:33]execute_cgi path=json_proto method=POST [09:45:33]POST find Content-Length [09:45:33]Host: 172.17.32.69:8080 [09:45:33]Content-Length: 687 [09:45:33]Content-Type: application/json [09:45:33] [09:45:33]POST finish read [09:45:33]Found Content-Length = 687 [09:45:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 4", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 21.160, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:33]execute_script... [09:45:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 4", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 21.160, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:33]POST & json_proto [09:45:33]process_json_proto [09:45:33]json parsed OK: [09:45:33]protocol is kg_v1.0 [09:45:33]action value=close_receipt [09:45:33]process_action close_receipt [09:45:33]cmd_close_receipt [09:45:33]MH_GetDate [09:45:33]Write to MH i2c: F0 00 00 93 27 A9 [09:45:33]Write i2c OK [09:45:33]MH_I2C_Read... [09:45:33]Read from MH i2c: F0 [09:45:33]MH_I2C_Read... [09:45:33]Read from MH i2c: F0 09 00 [09:45:33]MH_I2C_Read... [09:45:33]Read from MH i2c: F0 09 00 93 27 00 C1 18 F4 65 D5 0F D3 65 00 [09:45:33]GetLastDocTimeStamp 1710495883 [09:45:33]current date 1710495937 [09:45:33]FM_GetShiftState [09:45:33]SAM_PROTO_GetShiftState [09:45:33]wFMCommunicate request_size=4 [09:45:33]MH_SAM_APDU [09:45:33]CAPDU: 80 13 01 00 [09:45:33]Write to MH i2c: E2 08 00 94 27 80 13 01 00 00 00 00 00 38 [09:45:33]Write i2c OK [09:45:33]MH_I2C_Read... [09:45:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:33]Read from MH i2c: E2 [09:45:33]MH_I2C_Read... [09:45:33]Read from MH i2c: E2 0E 00 [09:45:33]MH_I2C_Read... [09:45:33]Read from MH i2c: E2 0E 00 94 27 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 6C [09:45:33]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:45:33]wFMCommunicate OK [09:45:33]SAM_PROTO_GetShiftState done [09:45:33]FM_GetShiftState done [09:45:33]opened in 1710461757 [09:45:33]opened+sec_in_day 1710548157 [09:45:33]quantity*price = 150024 [09:45:33]sum+1 = 150025 [09:45:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 74 15.03.2024 09:45 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108551 ФПД: 96118730229261 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T094537&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108551&fm=96118730229261&tin=02508201610067®Number=0000000000091911&sum=150000 [09:45:34]StoreToDocumentArchive [09:45:34]shift 320 fd 108551 [09:45:34]save to /storage/0320/doc_00108551 [09:45:34]save last doc name /storage/0320/doc_00108551 to /storage/kkm_last_doc_name [09:45:34]save OK [09:45:34]Clear old archive folders... [09:45:34]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:45:34]tlvbuf is B6F203D0 [09:45:34]SAM_PROTO_ClearQueue [09:45:34]wFMCommunicate request_size=4 [09:45:34]MH_SAM_APDU [09:45:34]CAPDU: 80 09 00 00 [09:45:34]Write to MH i2c: E2 08 00 A1 27 80 09 00 00 00 00 00 00 3A [09:45:34]Write i2c OK [09:45:34]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 [09:45:35]MH_I2C_Read... [09:45:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:45:35]Read from MH i2c: E2 03 00 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 03 00 A1 27 00 90 00 3C [09:45:35]RAPDU: 90 00 [09:45:35]wFMCommunicate OK [09:45:35]SAM_PROTO_ClearQueue done [09:45:35]KKMCreateOFDPacket [09:45:35]OFDProtocolAddRootSTLVToBuf [09:45:35]FM_MakeSignedData [09:45:35]FM_MakeSignedData [09:45:35]SAM_PROTO_SignData [09:45:35]wFMCommunicate request_size=4 [09:45:35]MH_SAM_APDU [09:45:35]CAPDU: 80 0D 01 02 [09:45:35]Write to MH i2c: E2 08 00 A2 27 80 0D 01 02 00 00 00 00 42 [09:45:35]Write i2c OK [09:45:35]MH_I2C_Read... [09:45:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:45:35]Read from MH i2c: E2 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 03 00 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 03 00 A2 27 00 90 00 3D [09:45:35]RAPDU: 90 00 [09:45:35]wFMCommunicate OK [09:45:35]wFMCommunicate request_size=255 [09:45:35]MH_SAM_APDU [09:45:35]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A8 52 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 C1 18 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 07 A8 01 00 35 04 06 00 [09:45:35]Write to MH i2c: E2 02 01 A3 27 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A8 52 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 C1 18 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 07 A8 01 00 35 04 06 00 00 00 31 [09:45:35]Write i2c OK [09:45:35]MH_I2C_Read... [09:45:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:35]Read from MH i2c: E2 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 03 00 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 03 00 A3 27 00 90 00 3E [09:45:35]RAPDU: 90 00 [09:45:35]wFMCommunicate OK [09:45:35]wFMCommunicate request_size=11 [09:45:35]MH_SAM_APDU [09:45:35]CAPDU: 80 0D 02 02 06 57 6B 62 C5 86 0D [09:45:35]Write to MH i2c: E2 0E 00 A4 27 80 0D 02 02 06 00 57 6B 62 C5 86 0D 00 00 CD [09:45:35]Write i2c OK [09:45:35]MH_I2C_Read... [09:45:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:35]Read from MH i2c: E2 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 03 00 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 03 00 A4 27 00 90 00 3F [09:45:35]RAPDU: 90 00 [09:45:35]wFMCommunicate OK [09:45:35]wFMCommunicate request_size=4 [09:45:35]MH_SAM_APDU [09:45:35]CAPDU: 80 0D 03 02 [09:45:35]Write to MH i2c: E2 08 00 A5 27 80 0D 03 02 00 00 00 00 47 [09:45:35]Write i2c OK [09:45:35]MH_I2C_Read... [09:45:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:45:35]Read from MH i2c: E2 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 0B 00 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 0B 00 A5 27 00 54 2D DB FC C1 18 47 1A 90 00 DA [09:45:35]RAPDU: 54 2D DB FC C1 18 47 1A 90 00 [09:45:35]wFMCommunicate OK [09:45:35]SAM_PROTO_SignData done [09:45:35]FM_MakeSignedData done [09:45:35]CreateOFDProtocolMessage [09:45:35]wFMCommunicate request_size=4 [09:45:35]MH_SAM_APDU [09:45:35]CAPDU: 80 11 00 00 [09:45:35]Write to MH i2c: E2 08 00 A6 27 80 11 00 00 00 00 00 00 47 [09:45:35]Write i2c OK [09:45:35]MH_I2C_Read... [09:45:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:35]Read from MH i2c: E2 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 17 00 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 17 00 A6 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 9B [09:45:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:45:35]wFMCommunicate OK [09:45:35]CreateOFDProtocolMessage done [09:45:35]OFDSenderStorePacket 108551 [09:45:35]StoreOFDPacket docnum=108551 [09:45:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 01 00 00 DE AE 08 01 43 4F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A8 52 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 C1 18 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 07 A8 01 00 35 04 06 00 57 6B 62 C5 86 0D 54 2D DB FC C1 18 47 1A [09:45:35]CheckFolder [09:45:35]dirname=/storage/ofd_packets [09:45:35]CheckFolder done [09:45:35]ProducePacketName [09:45:35]name=ofd_packets/00108551 [09:45:35]NVStorageSaveData ofd_packets/00108551 [09:45:35]File name is /storage/ofd_packets/00108551 [09:45:35]Write 302 bytes [09:45:35]NVStorageSaveData done [09:45:35]OFDSenderStorePacket done [09:45:35]KKMCreateOFDPacket done [09:45:35]NVStorageSaveData kkm_last_timestamp [09:45:35]File name is /storage/kkm_last_timestamp [09:45:35]Write 4 bytes [09:45:35]NVStorageSaveData done [09:45:35]ExternCall_PrintAddStr [09:45:35]wPrintStart [09:45:35]Write to MH i2c: 01 00 00 A7 27 CE [09:45:35]Write i2c OK [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: 01 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: 01 07 00 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: 01 07 00 A7 27 00 00 00 00 00 FF 0F E3 [09:45:35]RasterBufferAndPrint [09:45:35]line Счет N : (1)1040721 [09:45:35]line ИНН: 02508201610067 [09:45:35]line Контрольно-Кассовый Чек [09:45:35]line ПРОДАЖА [09:45:35]line ТРК (МРК, ГНК) : 4 [09:45:35]line Товар: 2710194210 [09:45:35]line ДТ(л)-К-5 [09:45:35]line 21.160 * 70.90 [09:45:35]line = 1500.24 [09:45:35]line НДС 12% НСП 1% [09:45:35]line > о реализуемом товаре [09:45:35]line ОКРУГЛЕНИЕ: -0.24 [09:45:35]line ИТОГО: 1500.00 [09:45:35]line Внесено: 1500.00 [09:45:35]line СДАЧА: 0.00 [09:45:35]line НСП 1% : 13.28 [09:45:35]line НДС 12% : 159.32 [09:45:35]line Наличными: 1500.00 [09:45:35]line Безнал.: 0.00 [09:45:35]line Место: АЗС № 15 "Партнер Нефть" [09:45:35]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [09:45:35]line СНО: Общий режим [09:45:35]line Чек 74 15.03.2024 09:45 [09:45:35]line Смена: 320 ФФД: 1.0 [09:45:35]line ЗНМ: 0300000266 [09:45:35]line РНМ: 0000000000091911 [09:45:35]line Версия ККМ: 001 [09:45:35]line ФМ: 0000000000871818 [09:45:35]line ФД: 108551 [09:45:35]line ФПД: 96118730229261 [09:45:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T094537&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108551&fm=96118730229261&tin=02508201610067®Number=0000000000091911&sum=150000 [09:45:35]OFD Sender: Processing packet 108551 [packets to send 29, broken 28] [09:45:35]ProducePacketName [09:45:35]name=ofd_packets/00108551 [09:45:35]OFD Sender: To server: pG, [09:45:35]CommunicateWithHost lk.salyk.kg:30040 [09:45:35]ConnectInit lk.salyk.kg [09:45:35]written 0, free lines is 4095 [09:45:36]Connected sock=10 [09:45: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 31 38 10 01 00 00 DE AE 08 01 43 4F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A8 52 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 C1 18 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 07 A8 01 00 35 04 06 00 57 6B 62 C5 86 0D 54 2D DB FC C1 18 47 1A [09:45: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 31 38 4F 00 00 00 08 AB 47 00 F1 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 07 A8 01 00 F4 03 04 00 61 C4 F3 65 B6 04 01 00 00 73 5B FE D9 11 5D 44 74 [09:45:36]CommunicateWithHost err = 0 [09:45:36]CheckOFDResponse [09:45:36]1017 (14) - 77093643461234 [09:45:36]1041 (16) - 0000000000871818 [09:45:36]1040 (4) - 108551 [09:45:36]1012 (4) - 15.03.2024 03:45 [09:45:36]1206 (1) - 0 [09:45:36]OFD Sender: Remove packet 108551 [09:45:36]ProducePacketName [09:45:36]name=ofd_packets/00108551 [09:45:36]NVStorageDeleteData [09:45:36]Write to MH i2c: 01 00 00 D2 27 F9 [09:45:36]Write i2c OK [09:45:36]MH_I2C_Read... [09:45:36]Read from MH i2c: 01 [09:45:36]MH_I2C_Read... [09:45:36]Read from MH i2c: 01 07 00 [09:45:36]MH_I2C_Read... [09:45:36]Read from MH i2c: 01 07 00 D2 27 00 00 00 00 00 DF 0C EB [09:45:36]RasterBufferAndPrint [09:45:36]line [09:45:36]line [09:45:36]line [09:45:36]line [09:45:36]line [09:45:36]written 0, free lines is 3304 [09:45:36]MH_Cut [09:45:36]Write to MH i2c: D1 01 00 D9 27 01 D2 [09:45:36]Write i2c OK [09:45:36]MH_I2C_Read... [09:45:36]Read from MH i2c: D1 [09:45:36]MH_I2C_Read... [09:45:36]Read from MH i2c: D1 01 00 [09:45:36]MH_I2C_Read... [09:45:36]Read from MH i2c: D1 01 00 D9 27 00 D1 [09:45:36]Write to MH i2c: 01 00 00 DA 27 01 [09:45:36]Write i2c OK [09:45:36]MH_I2C_Read... [09:45:36]OFD Sender: No OFD packet to send [09:45:37]*** Cut start [09:45:37]*** Purtial cut [09:45:37]*** Stage 1: CUTSNS_PIN = 1 [09:45:37]Read from MH i2c: 01 [09:45:37]MH_I2C_Read... [09:45:37]*** Stop cut motor [09:45:37]*** Cut end [09:45:37]Read from MH i2c: 01 07 00 [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: 01 07 00 DA 27 00 00 00 00 00 FF 0F 16 [09:45:37]process_action close_receipt done [09:45:37]requested_data is exist [09:45:37]produce_requested_data [09:45:37]requested_item fm.sn is exist - process it [09:45:37]wFMCommunicate request_size=4 [09:45:37]MH_SAM_APDU [09:45:37]CAPDU: 80 11 00 00 [09:45:37]Write to MH i2c: E2 08 00 DB 27 80 11 00 00 00 00 00 00 7C [09:45:37]Write i2c OK [09:45:37]MH_I2C_Read... [09:45:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:37]Read from MH i2c: E2 [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: E2 17 00 [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: E2 17 00 DB 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 D0 [09:45:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:45:37]wFMCommunicate OK [09:45:37]requested_item fd.num is exist - process it [09:45:37]SAM_PROTO_GetFieldsCounters [09:45:37]wFMCommunicate request_size=4 [09:45:37]MH_SAM_APDU [09:45:37]CAPDU: 80 13 00 00 [09:45:37]Write to MH i2c: E2 08 00 DC 27 80 13 00 00 00 00 00 00 7F [09:45:37]Write i2c OK [09:45:37]MH_I2C_Read... [09:45:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:37]Read from MH i2c: E2 [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: E2 62 00 [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: E2 62 00 DC 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 07 A8 01 00 0E 04 04 00 40 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 6C [09:45:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 07 A8 01 00 0E 04 04 00 40 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 [09:45:37]wFMCommunicate OK [09:45:37]SAM_PROTO_GetFieldsCounters done [09:45:37]requested_item shift.num is exist - process it [09:45:37]requested_item shift.opened is exist - process it [09:45:37]req_shift_opened [09:45:37]FM_GetShiftState [09:45:37]SAM_PROTO_GetShiftState [09:45:37]wFMCommunicate request_size=4 [09:45:37]MH_SAM_APDU [09:45:37]CAPDU: 80 13 01 00 [09:45:37]Write to MH i2c: E2 08 00 DD 27 80 13 01 00 00 00 00 00 81 [09:45:37]Write i2c OK [09:45:37]MH_I2C_Read... [09:45:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:37]Read from MH i2c: E2 [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: E2 0E 00 [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: E2 0E 00 DD 27 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 B5 [09:45:37]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:45:37]wFMCommunicate OK [09:45:37]SAM_PROTO_GetShiftState done [09:45:37]FM_GetShiftState done [09:45:37]req_shift_opened done [09:45:37]requested_item shift.open_date is exist - process it [09:45:37]req_shift_open_date [09:45:37]req_shift_open_date done [09:45:37]produce_requested_data done [09:45:37]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108551,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [09:45:37]process_action_free close_receipt [09:45:37]json_value_free [09:45:37]json_value_free done [09:45:37]process_json_proto returns [09:45:37]Send response to host [09:45:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108551,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [09:45:37]free response buf [09:45:37]execute_script done [09:45:37]execute_script returns [09:45:37]free content buf [09:45:37]Sock 9.Close socket [09:45:37]Sock 9.Thread stoped [09:45:41]OFD Sender: No OFD packet to send [09:45:44]accept exits with 8 [09:45:44]New connection [09:45:44]New thread 3067198820 created [09:45:44]Thread 3067342180 joined [09:45:44]Waiting for new connection... [09:45:44] Sock 8.Parse request [09:45:44]Sock 8.Check first char [09:45:44]Sock 8.First char is OK [09:45:44]request: POST /json_proto HTTP/1.0 [09:45:44]Method: POST [09:45:44]URL: /json_proto [09:45:44]Method is POST - this is cgi request [09:45:44]url: /json_proto [09:45:44]query_string will be loaded in cgi processing [09:45:44]execute_cgi json_proto POST (null) [09:45:44]execute_cgi path=json_proto method=POST [09:45:44]POST find Content-Length [09:45:44]Host: 172.17.32.69:8080 [09:45:44]Content-Length: 1198 [09:45:44]Content-Type: application/json [09:45:44] [09:45:44]POST finish read [09:45:44]Found Content-Length = 1198 [09:45:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040723\u000A15.03.2024 09:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 619.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3833167\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:44]execute_script... [09:45:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040723\u000A15.03.2024 09:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 619.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3833167\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:44]POST & json_proto [09:45:44]process_json_proto [09:45:44]json parsed OK: [09:45:44]protocol is kg_v1.0 [09:45:44]action value=print_text [09:45:44]process_action print_text [09:45:44]cmd_print_text [09:45:44]ExternCall_PrintAddStr [09:45:44]wPrintStart [09:45:44]Write to MH i2c: 01 00 00 DE 27 05 [09:45:44]Write i2c OK [09:45:44]MH_I2C_Read... [09:45:44]Read from MH i2c: 01 [09:45:44]MH_I2C_Read... [09:45:44]Read from MH i2c: 01 07 00 [09:45:44]MH_I2C_Read... [09:45:44]Read from MH i2c: 01 07 00 DE 27 00 00 00 00 00 FF 0F 1A [09:45:44]RasterBufferAndPrint [09:45:44]line *****ТОВАРНЫЙ ЧЕК***** [09:45:44]line АЗС 15 [09:45:44]line Партнер нефть [09:45:44]line 02508201610067 [09:45:44]line Кассир : Максатбек у Д. [09:45:44]line Счет N : (1)1040723 [09:45:44]line 15.03.2024 09:37 [09:45:44]line ПРОДАЖА [09:45:44]line ТРК (МРК, ГНК): 43 [09:45:44]line Вид ГСМ : 2710124130 [09:45:44]line Аи-92-К-5 [09:45:44]line 10.000 x 61.90 [09:45:44]line ИТОГ: 619.00 [09:45:44]line Тип оплаты: Талоны: Партнер нефть [09:45:44]line 3833167 [09:45:44]line ______________________ [09:45:44]line (подпись) [09:45:44]written 0, free lines is 4095 [09:45:44]Write to MH i2c: 01 00 00 F3 27 1A [09:45:44]Write i2c OK [09:45:44]MH_I2C_Read... [09:45:44]Read from MH i2c: 01 [09:45:44]MH_I2C_Read... [09:45:44]Read from MH i2c: 01 07 00 [09:45:44]MH_I2C_Read... [09:45:44]Read from MH i2c: 01 07 00 F3 27 00 00 00 00 00 F7 0D 25 [09:45:44]RasterBufferAndPrint [09:45:44]line [09:45:44]line [09:45:44]line [09:45:44]line [09:45:44]line [09:45:44]written 0, free lines is 3578 [09:45:44]MH_Cut [09:45:44]Write to MH i2c: D1 01 00 FA 27 01 F3 [09:45:44]Write i2c OK [09:45:44]MH_I2C_Read... [09:45:44]Read from MH i2c: D1 [09:45:44]MH_I2C_Read... [09:45:44]Read from MH i2c: D1 01 00 [09:45:44]MH_I2C_Read... [09:45:44]Read from MH i2c: D1 01 00 FA 27 00 F2 [09:45:44]Write to MH i2c: 01 00 00 FB 27 22 [09:45:44]Write i2c OK [09:45:44]MH_I2C_Read... [09:45:45]*** Cut start [09:45:45]*** Purtial cut [09:45:45]*** Stage 1: CUTSNS_PIN = 1 [09:45:45]Read from MH i2c: 01 [09:45:45]MH_I2C_Read... [09:45:45]*** Stop cut motor [09:45:45]*** Cut end [09:45:45]Read from MH i2c: 01 07 00 [09:45:45]MH_I2C_Read... [09:45:45]Read from MH i2c: 01 07 00 FB 27 00 00 00 00 00 FF 0F 37 [09:45:45]process_action print_text done [09:45:45]requested_data is exist [09:45:45]produce_requested_data [09:45:45]requested_item fm.sn is exist - process it [09:45:45]wFMCommunicate request_size=4 [09:45:45]MH_SAM_APDU [09:45:45]CAPDU: 80 11 00 00 [09:45:45]Write to MH i2c: E2 08 00 FC 27 80 11 00 00 00 00 00 00 9D [09:45:45]Write i2c OK [09:45:45]MH_I2C_Read... [09:45:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:45]Read from MH i2c: E2 [09:45:45]MH_I2C_Read... [09:45:45]Read from MH i2c: E2 17 00 [09:45:45]MH_I2C_Read... [09:45:45]Read from MH i2c: E2 17 00 FC 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 F1 [09:45:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:45:45]wFMCommunicate OK [09:45:45]requested_item fd.num is exist - process it [09:45:45]SAM_PROTO_GetFieldsCounters [09:45:45]wFMCommunicate request_size=4 [09:45:45]MH_SAM_APDU [09:45:45]CAPDU: 80 13 00 00 [09:45:45]Write to MH i2c: E2 08 00 FD 27 80 13 00 00 00 00 00 00 A0 [09:45:45]Write i2c OK [09:45:45]MH_I2C_Read... [09:45:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:46]Read from MH i2c: E2 [09:45:46]MH_I2C_Read... [09:45:46]Read from MH i2c: E2 62 00 [09:45:46]MH_I2C_Read... [09:45:46]Read from MH i2c: E2 62 00 FD 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 07 A8 01 00 0E 04 04 00 40 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 8D [09:45: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 07 A8 01 00 0E 04 04 00 40 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 [09:45:46]wFMCommunicate OK [09:45:46]SAM_PROTO_GetFieldsCounters done [09:45:46]requested_item shift.num is exist - process it [09:45:46]requested_item shift.opened is exist - process it [09:45:46]req_shift_opened [09:45:46]FM_GetShiftState [09:45:46]SAM_PROTO_GetShiftState [09:45:46]wFMCommunicate request_size=4 [09:45:46]MH_SAM_APDU [09:45:46]CAPDU: 80 13 01 00 [09:45:46]Write to MH i2c: E2 08 00 FE 27 80 13 01 00 00 00 00 00 A2 [09:45:46]Write i2c OK [09:45:46]MH_I2C_Read... [09:45:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:46]Read from MH i2c: E2 [09:45:46]MH_I2C_Read... [09:45:46]Read from MH i2c: E2 0E 00 [09:45:46]MH_I2C_Read... [09:45:46]Read from MH i2c: E2 0E 00 FE 27 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 D6 [09:45:46]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:45:46]wFMCommunicate OK [09:45:46]SAM_PROTO_GetShiftState done [09:45:46]FM_GetShiftState done [09:45:46]req_shift_opened done [09:45:46]requested_item shift.open_date is exist - process it [09:45:46]req_shift_open_date [09:45:46]req_shift_open_date done [09:45:46]produce_requested_data done [09:45:46]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108551,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [09:45:46]process_action_free print_text [09:45:46]json_value_free [09:45:46]json_value_free done [09:45:46]process_json_proto returns [09:45:46]Send response to host [09:45:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108551,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [09:45:46]free response buf [09:45:46]execute_script done [09:45:46]execute_script returns [09:45:46]free content buf [09:45:46]Sock 8.Close socket [09:45:46]Sock 8.Thread stoped [09:45:46]OFD Sender: No OFD packet to send [09:45:51]OFD Sender: No OFD packet to send [09:45:56]OFD Sender: No OFD packet to send [09:46:01]OFD Sender: No OFD packet to send [09:46:06]OFD Sender: No OFD packet to send [09:46:06]accept exits with 9 [09:46:06]New connection [09:46:06]New thread 3067342180 created [09:46:06]Thread 3067198820 joined [09:46:06]Waiting for new connection... [09:46:06] Sock 9.Parse request [09:46:06]Sock 9.Check first char [09:46:06]Sock 9.First char is OK [09:46:06]request: POST /json_proto HTTP/1.0 [09:46:06]Method: POST [09:46:06]URL: /json_proto [09:46:06]Method is POST - this is cgi request [09:46:06]url: /json_proto [09:46:06]query_string will be loaded in cgi processing [09:46:06]execute_cgi json_proto POST (null) [09:46:06]execute_cgi path=json_proto method=POST [09:46:06]POST find Content-Length [09:46:06]Host: 172.17.32.69:8080 [09:46:06]Content-Length: 683 [09:46:06]Content-Type: application/json [09:46:06] [09:46:06]POST finish read [09:46:06]Found Content-Length = 683 [09:46:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 70.50, "quantity" : 33.700, "sum" : 2375.85, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2375.00, "payments": [ { "type": 0, "sum" : 2375.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:06]execute_script... [09:46:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 70.50, "quantity" : 33.700, "sum" : 2375.85, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2375.00, "payments": [ { "type": 0, "sum" : 2375.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:06]POST & json_proto [09:46:06]process_json_proto [09:46:06]json parsed OK: [09:46:06]protocol is kg_v1.0 [09:46:06]action value=close_receipt [09:46:06]process_action close_receipt [09:46:06]cmd_close_receipt [09:46:06]MH_GetDate [09:46:06]Write to MH i2c: F0 00 00 FF 27 15 [09:46:06]Write i2c OK [09:46:06]MH_I2C_Read... [09:46:06]Read from MH i2c: F0 [09:46:06]MH_I2C_Read... [09:46:06]Read from MH i2c: F0 09 00 [09:46:06]MH_I2C_Read... [09:46:06]Read from MH i2c: F0 09 00 FF 27 00 E2 18 F4 65 D5 0F D3 65 8D [09:46:06]GetLastDocTimeStamp 1710495937 [09:46:06]current date 1710495970 [09:46:06]FM_GetShiftState [09:46:06]SAM_PROTO_GetShiftState [09:46:06]wFMCommunicate request_size=4 [09:46:06]MH_SAM_APDU [09:46:06]CAPDU: 80 13 01 00 [09:46:06]Write to MH i2c: E2 08 00 00 28 80 13 01 00 00 00 00 00 A5 [09:46:06]Write i2c OK [09:46:06]MH_I2C_Read... [09:46:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:06]Read from MH i2c: E2 [09:46:06]MH_I2C_Read... [09:46:06]Read from MH i2c: E2 0E 00 [09:46:06]MH_I2C_Read... [09:46:06]Read from MH i2c: E2 0E 00 00 28 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 D9 [09:46:06]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:46:06]wFMCommunicate OK [09:46:06]SAM_PROTO_GetShiftState done [09:46:06]FM_GetShiftState done [09:46:06]opened in 1710461757 [09:46:06]opened+sec_in_day 1710548157 [09:46:06]quantity*price = 237585 [09:46:06]sum+1 = 237586 [09:46:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.85 ИТОГО: 2375.00 Внесено: 3000.00 СДАЧА: 625.00 НСП 1% : 21.02 НДС 12% : 252.30 Наличными: 2375.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 75 15.03.2024 09:46 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108552 ФПД: 248188946731000 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T094610&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108552&fm=248188946731000&tin=02508201610067®Number=0000000000091911&sum=237500 [09:46:07]StoreToDocumentArchive [09:46:07]shift 320 fd 108552 [09:46:07]save to /storage/0320/doc_00108552 [09:46:07]save last doc name /storage/0320/doc_00108552 to /storage/kkm_last_doc_name [09:46:07]save OK [09:46:07]Clear old archive folders... [09:46:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:46:07]tlvbuf is 00154430 [09:46:07]SAM_PROTO_ClearQueue [09:46:07]wFMCommunicate request_size=4 [09:46:07]MH_SAM_APDU [09:46:07]CAPDU: 80 09 00 00 [09:46:07]Write to MH i2c: E2 08 00 0D 28 80 09 00 00 00 00 00 00 A7 [09:46:07]Write i2c OK [09:46:07]MH_I2C_Read... [09:46:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:07]Read from MH i2c: E2 [09:46:07]MH_I2C_Read... [09:46:07]Read from MH i2c: E2 03 00 [09:46:07]MH_I2C_Read... [09:46:07]Read from MH i2c: E2 03 00 0D 28 00 90 00 A9 [09:46:07]RAPDU: 90 00 [09:46:07]wFMCommunicate OK [09:46:07]SAM_PROTO_ClearQueue done [09:46:07]KKMCreateOFDPacket [09:46:07]OFDProtocolAddRootSTLVToBuf [09:46:07]FM_MakeSignedData [09:46:07]FM_MakeSignedData [09:46:07]SAM_PROTO_SignData [09:46:07]wFMCommunicate request_size=4 [09:46:07]MH_SAM_APDU [09:46:07]CAPDU: 80 0D 01 02 [09:46:07]Write to MH i2c: E2 08 00 0E 28 80 0D 01 02 00 00 00 00 AF [09:46:07]Write i2c OK [09:46:07]MH_I2C_Read... [09:46:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:08]Read from MH i2c: E2 [09:46:08]MH_I2C_Read... [09:46:08]Read from MH i2c: E2 03 00 [09:46:08]MH_I2C_Read... [09:46:08]Read from MH i2c: E2 03 00 0E 28 00 90 00 AA [09:46:08]RAPDU: 90 00 [09:46:08]wFMCommunicate OK [09:46:08]wFMCommunicate request_size=255 [09:46:08]MH_SAM_APDU [09:46:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 8A 1B 00 00 00 00 13 04 06 00 11 A0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 9F 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 62 00 00 00 00 07 04 06 00 BC 9F 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 E2 18 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 08 A8 01 00 35 04 06 00 E1 [09:46:08]Write to MH i2c: E2 02 01 0F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 8A 1B 00 00 00 00 13 04 06 00 11 A0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 9F 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 62 00 00 00 00 07 04 06 00 BC 9F 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 E2 18 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 08 A8 01 00 35 04 06 00 E1 00 00 95 [09:46:08]Write i2c OK [09:46:08]MH_I2C_Read... [09:46:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:08]Read from MH i2c: E2 [09:46:08]MH_I2C_Read... [09:46:08]Read from MH i2c: E2 03 00 [09:46:08]MH_I2C_Read... [09:46:08]Read from MH i2c: E2 03 00 0F 28 00 90 00 AB [09:46:08]RAPDU: 90 00 [09:46:08]wFMCommunicate OK [09:46:08]wFMCommunicate request_size=10 [09:46:08]MH_SAM_APDU [09:46:08]CAPDU: 80 0D 02 02 05 B9 FE 01 CF F8 [09:46:08]Write to MH i2c: E2 0D 00 10 28 80 0D 02 02 05 00 B9 FE 01 CF F8 00 00 3B [09:46:08]Write i2c OK [09:46:08]MH_I2C_Read... [09:46:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:08]Read from MH i2c: E2 [09:46:08]MH_I2C_Read... [09:46:08]Read from MH i2c: E2 03 00 [09:46:08]MH_I2C_Read... [09:46:08]Read from MH i2c: E2 03 00 10 28 00 90 00 AC [09:46:08]RAPDU: 90 00 [09:46:08]wFMCommunicate OK [09:46:08]wFMCommunicate request_size=4 [09:46:08]MH_SAM_APDU [09:46:08]CAPDU: 80 0D 03 02 [09:46:08]Write to MH i2c: E2 08 00 11 28 80 0D 03 02 00 00 00 00 B4 [09:46:08]Write i2c OK [09:46:08]MH_I2C_Read... [09:46:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:08]Read from MH i2c: E2 [09:46:08]MH_I2C_Read... [09:46:08]Read from MH i2c: E2 0B 00 [09:46:08]MH_I2C_Read... [09:46:08]Read from MH i2c: E2 0B 00 11 28 00 B1 F9 F2 15 2C FD 9E F8 90 00 25 [09:46:08]RAPDU: B1 F9 F2 15 2C FD 9E F8 90 00 [09:46:08]wFMCommunicate OK [09:46:08]SAM_PROTO_SignData done [09:46:08]FM_MakeSignedData done [09:46:08]CreateOFDProtocolMessage [09:46:08]wFMCommunicate request_size=4 [09:46:08]MH_SAM_APDU [09:46:08]CAPDU: 80 11 00 00 [09:46:08]Write to MH i2c: E2 08 00 12 28 80 11 00 00 00 00 00 00 B4 [09:46:08]Write i2c OK [09:46:08]MH_I2C_Read... [09:46:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:08]Read from MH i2c: E2 [09:46:08]MH_I2C_Read... [09:46:08]Read from MH i2c: E2 17 00 [09:46:08]MH_I2C_Read... [09:46:08]Read from MH i2c: E2 17 00 12 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 08 [09:46:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:46:08]wFMCommunicate OK [09:46:08]CreateOFDProtocolMessage done [09:46:08]OFDSenderStorePacket 108552 [09:46:08]StoreOFDPacket docnum=108552 [09:46:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 DA 6B 07 01 4C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 8A 1B 00 00 00 00 13 04 06 00 11 A0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 9F 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 62 00 00 00 00 07 04 06 00 BC 9F 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 E2 18 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 08 A8 01 00 35 04 06 00 E1 B9 FE 01 CF F8 B1 F9 F2 15 2C FD 9E F8 [09:46:08]CheckFolder [09:46:08]dirname=/storage/ofd_packets [09:46:08]CheckFolder done [09:46:08]ProducePacketName [09:46:08]name=ofd_packets/00108552 [09:46:08]NVStorageSaveData ofd_packets/00108552 [09:46:08]File name is /storage/ofd_packets/00108552 [09:46:08]Write 301 bytes [09:46:08]NVStorageSaveData done [09:46:08]OFDSenderStorePacket done [09:46:08]KKMCreateOFDPacket done [09:46:08]NVStorageSaveData kkm_last_timestamp [09:46:08]File name is /storage/kkm_last_timestamp [09:46:08]Write 4 bytes [09:46:08]NVStorageSaveData done [09:46:08]ExternCall_PrintAddStr [09:46:08]wPrintStart [09:46:08]Write to MH i2c: 01 00 00 13 28 3B [09:46:08]Write i2c OK [09:46:08]MH_I2C_Read... [09:46:08]Read from MH i2c: 01 [09:46:08]MH_I2C_Read... [09:46:08]Read from MH i2c: 01 07 00 [09:46:08]MH_I2C_Read... [09:46:08]Read from MH i2c: 01 07 00 13 28 00 00 00 00 00 FF 0F 50 [09:46:08]RasterBufferAndPrint [09:46:08]line Счет N : (1)1040722 [09:46:08]line ИНН: 02508201610067 [09:46:08]line Контрольно-Кассовый Чек [09:46:08]line ПРОДАЖА [09:46:08]line ТРК (МРК, ГНК) : 72 [09:46:08]line Товар: 2710124500 [09:46:08]line Аи-95-К-5 [09:46:08]line 33.700 * 70.50 [09:46:08]line = 2375.85 [09:46:08]line НДС 12% НСП 1% [09:46:08]line > о реализуемом товаре [09:46:08]line ОКРУГЛЕНИЕ: -0.85 [09:46:08]line ИТОГО: 2375.00 [09:46:08]line Внесено: 3000.00 [09:46:08]line СДАЧА: 625.00 [09:46:08]line НСП 1% : 21.02 [09:46:08]line НДС 12% : 252.30 [09:46:08]line Наличными: 2375.00 [09:46:08]line Безнал.: 0.00 [09:46:08]line Место: АЗС № 15 "Партнер Нефть" [09:46:08]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [09:46:08]line СНО: Общий режим [09:46:08]line Чек 75 15.03.2024 09:46 [09:46:08]line Смена: 320 ФФД: 1.0 [09:46:08]line ЗНМ: 0300000266 [09:46:08]line РНМ: 0000000000091911 [09:46:08]line Версия ККМ: 001 [09:46:08]line ФМ: 0000000000871818 [09:46:08]line ФД: 108552 [09:46:08]line ФПД: 248188946731000 [09:46:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T094610&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108552&fm=248188946731000&tin=02508201610067®Number=0000000000091911&sum=237500 [09:46:08]OFD Sender: Processing packet 108552 [packets to send 29, broken 28] [09:46:08]ProducePacketName [09:46:08]name=ofd_packets/00108552 [09:46:08]OFD Sender: To server: pG, [09:46:08]CommunicateWithHost lk.salyk.kg:30040 [09:46:08]ConnectInit lk.salyk.kg [09:46:08]written 0, free lines is 4095 [09:46:08]Connected sock=10 [09:46:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 DA 6B 07 01 4C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 8A 1B 00 00 00 00 13 04 06 00 11 A0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 9F 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 62 00 00 00 00 07 04 06 00 BC 9F 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 E2 18 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 08 A8 01 00 35 04 06 00 E1 B9 FE 01 CF F8 B1 F9 F2 15 2C FD 9E F8 [09:46: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 31 38 4F 00 00 00 8E 93 47 00 CD 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 08 A8 01 00 F4 03 04 00 82 C4 F3 65 B6 04 01 00 00 40 C0 49 3A CD 90 5B 8D [09:46:09]CommunicateWithHost err = 0 [09:46:09]CheckOFDResponse [09:46:09]1017 (14) - 77093643461234 [09:46:09]1041 (16) - 0000000000871818 [09:46:09]1040 (4) - 108552 [09:46:09]1012 (4) - 15.03.2024 03:46 [09:46:09]1206 (1) - 0 [09:46:09]OFD Sender: Remove packet 108552 [09:46:09]ProducePacketName [09:46:09]name=ofd_packets/00108552 [09:46:09]NVStorageDeleteData [09:46:09]Write to MH i2c: 01 00 00 3E 28 66 [09:46:09]Write i2c OK [09:46:09]MH_I2C_Read... [09:46:09]Read from MH i2c: 01 [09:46:09]MH_I2C_Read... [09:46:09]Read from MH i2c: 01 07 00 [09:46:09]MH_I2C_Read... [09:46:09]Read from MH i2c: 01 07 00 3E 28 00 00 00 00 00 E6 0C 5F [09:46:09]RasterBufferAndPrint [09:46:09]line [09:46:09]line [09:46:09]line [09:46:09]line [09:46:09]line [09:46:09]written 0, free lines is 3308 [09:46:09]MH_Cut [09:46:09]Write to MH i2c: D1 01 00 45 28 01 3F [09:46:09]Write i2c OK [09:46:09]MH_I2C_Read... [09:46:09]Read from MH i2c: D1 [09:46:09]MH_I2C_Read... [09:46:09]Read from MH i2c: D1 01 00 [09:46:09]MH_I2C_Read... [09:46:09]Read from MH i2c: D1 01 00 45 28 00 3E [09:46:09]Write to MH i2c: 01 00 00 46 28 6E [09:46:09]Write i2c OK [09:46:09]MH_I2C_Read... [09:46:09]OFD Sender: No OFD packet to send [09:46:10]*** Cut start [09:46:10]*** Purtial cut [09:46:10]*** Stage 1: CUTSNS_PIN = 1 [09:46:10]Read from MH i2c: 01 [09:46:10]MH_I2C_Read... [09:46:10]*** Stop cut motor [09:46:10]*** Cut end [09:46:10]Read from MH i2c: 01 07 00 [09:46:10]MH_I2C_Read... [09:46:10]Read from MH i2c: 01 07 00 46 28 00 00 00 00 00 FF 0F 83 [09:46:10]process_action close_receipt done [09:46:10]requested_data is exist [09:46:10]produce_requested_data [09:46:10]requested_item fm.sn is exist - process it [09:46:10]wFMCommunicate request_size=4 [09:46:10]MH_SAM_APDU [09:46:10]CAPDU: 80 11 00 00 [09:46:10]Write to MH i2c: E2 08 00 47 28 80 11 00 00 00 00 00 00 E9 [09:46:10]Write i2c OK [09:46:10]MH_I2C_Read... [09:46:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:10]Read from MH i2c: E2 [09:46:10]MH_I2C_Read... [09:46:10]Read from MH i2c: E2 17 00 [09:46:10]MH_I2C_Read... [09:46:10]Read from MH i2c: E2 17 00 47 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 3D [09:46:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:46:10]wFMCommunicate OK [09:46:10]requested_item fd.num is exist - process it [09:46:10]SAM_PROTO_GetFieldsCounters [09:46:10]wFMCommunicate request_size=4 [09:46:10]MH_SAM_APDU [09:46:10]CAPDU: 80 13 00 00 [09:46:10]Write to MH i2c: E2 08 00 48 28 80 13 00 00 00 00 00 00 EC [09:46:10]Write i2c OK [09:46:10]MH_I2C_Read... [09:46:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:10]Read from MH i2c: E2 [09:46:10]MH_I2C_Read... [09:46:10]Read from MH i2c: E2 62 00 [09:46:10]MH_I2C_Read... [09:46:10]Read from MH i2c: E2 62 00 48 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 08 A8 01 00 0E 04 04 00 40 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 DD [09:46:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 08 A8 01 00 0E 04 04 00 40 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 [09:46:10]wFMCommunicate OK [09:46:10]SAM_PROTO_GetFieldsCounters done [09:46:10]requested_item shift.num is exist - process it [09:46:10]requested_item shift.opened is exist - process it [09:46:10]req_shift_opened [09:46:10]FM_GetShiftState [09:46:10]SAM_PROTO_GetShiftState [09:46:10]wFMCommunicate request_size=4 [09:46:10]MH_SAM_APDU [09:46:10]CAPDU: 80 13 01 00 [09:46:10]Write to MH i2c: E2 08 00 49 28 80 13 01 00 00 00 00 00 EE [09:46:10]Write i2c OK [09:46:10]MH_I2C_Read... [09:46:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:10]Read from MH i2c: E2 [09:46:10]MH_I2C_Read... [09:46:10]Read from MH i2c: E2 0E 00 [09:46:10]MH_I2C_Read... [09:46:10]Read from MH i2c: E2 0E 00 49 28 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 22 [09:46:10]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:46:10]wFMCommunicate OK [09:46:10]SAM_PROTO_GetShiftState done [09:46:10]FM_GetShiftState done [09:46:10]req_shift_opened done [09:46:10]requested_item shift.open_date is exist - process it [09:46:10]req_shift_open_date [09:46:10]req_shift_open_date done [09:46:10]produce_requested_data done [09:46:10]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108552,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [09:46:10]process_action_free close_receipt [09:46:10]json_value_free [09:46:10]json_value_free done [09:46:10]process_json_proto returns [09:46:10]Send response to host [09:46:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108552,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [09:46:10]free response buf [09:46:10]execute_script done [09:46:10]execute_script returns [09:46:10]free content buf [09:46:10]Sock 9.Close socket [09:46:10]Sock 9.Thread stoped [09:46:10]accept exits with 8 [09:46:10]New connection [09:46:10]New thread 3067198820 created [09:46:10]Thread 3067342180 joined [09:46:10]Waiting for new connection... [09:46:10] Sock 8.Parse request [09:46:10]Sock 8.Check first char [09:46:10]Sock 8.First char is OK [09:46:10]request: POST /json_proto HTTP/1.0 [09:46:10]Method: POST [09:46:10]URL: /json_proto [09:46:10]Method is POST - this is cgi request [09:46:10]url: /json_proto [09:46:10]query_string will be loaded in cgi processing [09:46:10]execute_cgi json_proto POST (null) [09:46:10]execute_cgi path=json_proto method=POST [09:46:10]POST find Content-Length [09:46:10]Host: 172.17.32.69:8080 [09:46:10]Content-Length: 687 [09:46:10]Content-Type: application/json [09:46:10] [09:46:10]POST finish read [09:46:10]Found Content-Length = 687 [09:46:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "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:46:10]execute_script... [09:46: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)1040724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "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:46:10]POST & json_proto [09:46:10]process_json_proto [09:46:10]json parsed OK: [09:46:10]protocol is kg_v1.0 [09:46:10]action value=close_receipt [09:46:10]process_action close_receipt [09:46:10]cmd_close_receipt [09:46:10]MH_GetDate [09:46:10]Write to MH i2c: F0 00 00 4A 28 61 [09:46:10]Write i2c OK [09:46:10]MH_I2C_Read... [09:46:10]Read from MH i2c: F0 [09:46:10]MH_I2C_Read... [09:46:10]Read from MH i2c: F0 09 00 [09:46:10]MH_I2C_Read... [09:46:10]Read from MH i2c: F0 09 00 4A 28 00 E6 18 F4 65 D5 0F D3 65 DD [09:46:10]GetLastDocTimeStamp 1710495970 [09:46:10]current date 1710495974 [09:46:10]FM_GetShiftState [09:46:10]SAM_PROTO_GetShiftState [09:46:10]wFMCommunicate request_size=4 [09:46:10]MH_SAM_APDU [09:46:10]CAPDU: 80 13 01 00 [09:46:10]Write to MH i2c: E2 08 00 4B 28 80 13 01 00 00 00 00 00 F0 [09:46:10]Write i2c OK [09:46:10]MH_I2C_Read... [09:46:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:11]Read from MH i2c: E2 [09:46:11]MH_I2C_Read... [09:46:11]Read from MH i2c: E2 0E 00 [09:46:11]MH_I2C_Read... [09:46:11]Read from MH i2c: E2 0E 00 4B 28 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 24 [09:46:11]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:46:11]wFMCommunicate OK [09:46:11]SAM_PROTO_GetShiftState done [09:46:11]FM_GetShiftState done [09:46:11]opened in 1710461757 [09:46:11]opened+sec_in_day 1710548157 [09:46:11]quantity*price = 100039 [09:46:11]sum+1 = 100041 [09:46:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 76 15.03.2024 09:46 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108553 ФПД: 122774670832147 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T094614&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108553&fm=122774670832147&tin=02508201610067®Number=0000000000091911&sum=100000 [09:46:12]StoreToDocumentArchive [09:46:12]shift 320 fd 108553 [09:46:12]save to /storage/0320/doc_00108553 [09:46:12]save last doc name /storage/0320/doc_00108553 to /storage/kkm_last_doc_name [09:46:12]save OK [09:46:12]Clear old archive folders... [09:46:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:46:12]tlvbuf is 001692B0 [09:46:12]SAM_PROTO_ClearQueue [09:46:12]wFMCommunicate request_size=4 [09:46:12]MH_SAM_APDU [09:46:12]CAPDU: 80 09 00 00 [09:46:12]Write to MH i2c: E2 08 00 5A 28 80 09 00 00 00 00 00 00 F4 [09:46:12]Write i2c OK [09:46:12]MH_I2C_Read... [09:46:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:12]Read from MH i2c: E2 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: E2 03 00 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: E2 03 00 5A 28 00 90 00 F6 [09:46:12]RAPDU: 90 00 [09:46:12]wFMCommunicate OK [09:46:12]SAM_PROTO_ClearQueue done [09:46:12]KKMCreateOFDPacket [09:46:12]OFDProtocolAddRootSTLVToBuf [09:46:12]FM_MakeSignedData [09:46:12]FM_MakeSignedData [09:46:12]SAM_PROTO_SignData [09:46:12]wFMCommunicate request_size=4 [09:46:12]MH_SAM_APDU [09:46:12]CAPDU: 80 0D 01 02 [09:46:12]Write to MH i2c: E2 08 00 5B 28 80 0D 01 02 00 00 00 00 FC [09:46:12]Write i2c OK [09:46:12]MH_I2C_Read... [09:46:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:12]Read from MH i2c: E2 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: E2 03 00 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: E2 03 00 5B 28 00 90 00 F7 [09:46:12]RAPDU: 90 00 [09:46:12]wFMCommunicate OK [09:46:12]wFMCommunicate request_size=255 [09:46:12]MH_SAM_APDU [09:46:12]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 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 80 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 4C 00 00 00 F4 03 04 00 E6 18 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 09 A8 01 00 35 04 06 00 [09:46:12]Write to MH i2c: E2 02 01 5C 28 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 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 80 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 4C 00 00 00 F4 03 04 00 E6 18 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 09 A8 01 00 35 04 06 00 00 00 B4 [09:46:12]Write i2c OK [09:46:12]MH_I2C_Read... [09:46:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:12]*** FLAG_PRN_KEY set [09:46:12]int [09:46:12]Read from MH i2c: E2 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: E2 03 00 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: E2 03 00 5C 28 00 90 00 F8 [09:46:12]RAPDU: 90 00 [09:46:12]wFMCommunicate OK [09:46:12]wFMCommunicate request_size=11 [09:46:12]MH_SAM_APDU [09:46:12]CAPDU: 80 0D 02 02 06 6F A9 B4 A4 72 13 [09:46:12]Write to MH i2c: E2 0E 00 5D 28 80 0D 02 02 06 00 6F A9 B4 A4 72 13 00 00 00 [09:46:12]Write i2c OK [09:46:12]MH_I2C_Read... [09:46:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:12]Read from MH i2c: E2 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: E2 03 00 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: E2 03 00 5D 28 00 90 00 F9 [09:46:12]RAPDU: 90 00 [09:46:12]wFMCommunicate OK [09:46:12]wFMCommunicate request_size=4 [09:46:12]MH_SAM_APDU [09:46:12]CAPDU: 80 0D 03 02 [09:46:12]Write to MH i2c: E2 08 00 5E 28 80 0D 03 02 00 00 00 00 01 [09:46:12]Write i2c OK [09:46:12]MH_I2C_Read... [09:46:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:12]Read from MH i2c: E2 [09:46:12]MH_I2C_Read... [09:46:12]*** FLAG_PRN_KEY reset [09:46:12]Read from MH i2c: E2 0B 00 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: E2 0B 00 5E 28 00 75 5F 7F 19 04 CE 84 08 90 00 CC [09:46:12]RAPDU: Write to MH i2c: 75 01 5F 00 7F 00 19 5F 04 28 CE 87 84 [09:46:12]08 90 00 [09:46:12]wFMCommunicate OK [09:46:12]Write i2c OK [09:46:12]SAM_PROTO_SignData done [09:46:12]MH_I2C_Read... [09:46:12]FM_MakeSignedData done [09:46:12]Read from MH i2c: CreateOFDProtocolMessage [09:46:12]01 wFMCommunicate request_size=4 [09:46:12] [09:46:12]MH_SAM_APDU [09:46:12]MH_I2C_Read... [09:46:12]CAPDU: 80 11 00 00 [09:46:12]Read from MH i2c: 01 07 00 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: 01 07 00 5F 28 00 00 00 00 00 FF 0F 9C [09:46:12]Write to MH i2c: state=0 [09:46:12]E2 08 00 60 28 80 11 00 00 00 00 00 00 02 [09:46:12]Write i2c OK [09:46:12]MH_I2C_Read... [09:46:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:12]Read from MH i2c: E2 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: E2 17 00 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: E2 17 00 60 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 56 [09:46:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:46:12]wFMCommunicate OK [09:46:12]CreateOFDProtocolMessage done [09:46:12]OFDSenderStorePacket 108553 [09:46:12]StoreOFDPacket docnum=108553 [09:46:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 01 00 00 48 51 08 01 25 4A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 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 80 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 4C 00 00 00 F4 03 04 00 E6 18 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 09 A8 01 00 35 04 06 00 6F A9 B4 A4 72 13 75 5F 7F 19 04 CE 84 08 [09:46:12]CheckFolder [09:46:12]dirname=/storage/ofd_packets [09:46:12]CheckFolder done [09:46:12]ProducePacketName [09:46:12]name=ofd_packets/00108553 [09:46:12]NVStorageSaveData ofd_packets/00108553 [09:46:12]File name is /storage/ofd_packets/00108553 [09:46:12]Write 302 bytes [09:46:12]NVStorageSaveData done [09:46:12]OFDSenderStorePacket done [09:46:12]KKMCreateOFDPacket done [09:46:12]NVStorageSaveData kkm_last_timestamp [09:46:12]File name is /storage/kkm_last_timestamp [09:46:12]Write 4 bytes [09:46:12]NVStorageSaveData done [09:46:12]ExternCall_PrintAddStr [09:46:12]wPrintStart [09:46:12]Write to MH i2c: 01 00 00 61 28 89 [09:46:12]Write i2c OK [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: 01 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: 01 07 00 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: 01 07 00 61 28 00 00 00 00 00 FF 0F 9E [09:46:12]RasterBufferAndPrint [09:46:13]line Счет N : (1)1040724 [09:46:13]line ИНН: 02508201610067 [09:46:13]line Контрольно-Кассовый Чек [09:46:13]line ПРОДАЖА [09:46:13]line ТРК (МРК, ГНК) : 2 [09:46:13]line Товар: 2710194210 [09:46:13]line ДТ(л)-К-5 [09:46:13]line 14.110 * 70.90 [09:46:13]line = 1000.40 [09:46:13]line НДС 12% НСП 1% [09:46:13]line > о реализуемом товаре [09:46:13]line ОКРУГЛЕНИЕ: -0.40 [09:46:13]line ИТОГО: 1000.00 [09:46:13]line Внесено: 1000.00 [09:46:13]line СДАЧА: 0.00 [09:46:13]line НСП 1% : 8.85 [09:46:13]line НДС 12% : 106.24 [09:46:13]line Наличными: 1000.00 [09:46:13]line Безнал.: 0.00 [09:46:13]line Место: АЗС № 15 "Партнер Нефть" [09:46:13]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [09:46:13]line СНО: Общий режим [09:46:13]line Чек 76 15.03.2024 09:46 [09:46:13]line Смена: 320 ФФД: 1.0 [09:46:13]line ЗНМ: 0300000266 [09:46:13]line РНМ: 0000000000091911 [09:46:13]line Версия ККМ: 001 [09:46:13]line ФМ: 0000000000871818 [09:46:13]line ФД: 108553 [09:46:13]line ФПД: 122774670832147 [09:46:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T094614&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108553&fm=122774670832147&tin=02508201610067®Number=0000000000091911&sum=100000 [09:46:13]OFD Sender: Processing packet 108553 [packets to send 29, broken 28] [09:46:13]ProducePacketName [09:46:13]name=ofd_packets/00108553 [09:46:13]OFD Sender: To server: pG, [09:46:13]CommunicateWithHost lk.salyk.kg:30040 [09:46:13]ConnectInit lk.salyk.kg [09:46:13]written 0, free lines is 4095 [09:46:13]Connected sock=11 [09:46: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 31 38 10 01 00 00 48 51 08 01 25 4A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 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 80 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 4C 00 00 00 F4 03 04 00 E6 18 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 09 A8 01 00 35 04 06 00 6F A9 B4 A4 72 13 75 5F 7F 19 04 CE 84 08 [09:46: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 31 38 4F 00 00 00 60 1E 47 00 67 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 31 38 10 04 04 00 09 A8 01 00 F4 03 04 00 87 C4 F3 65 B6 04 01 00 00 F9 64 FE 7A 04 6C 70 14 [09:46:13]CommunicateWithHost err = 0 [09:46:13]CheckOFDResponse [09:46:13]1017 (14) - 77093643461234 [09:46:13]1041 (16) - 0000000000871818 [09:46:13]1040 (4) - 108553 [09:46:13]1012 (4) - 15.03.2024 03:46 [09:46:13]1206 (1) - 0 [09:46:13]OFD Sender: Remove packet 108553 [09:46:13]ProducePacketName [09:46:13]name=ofd_packets/00108553 [09:46:13]NVStorageDeleteData [09:46:13]Write to MH i2c: 01 00 00 8C 28 B4 [09:46:13]Write i2c OK [09:46:13]MH_I2C_Read... [09:46:13]Read from MH i2c: 01 [09:46:13]MH_I2C_Read... [09:46:13]Read from MH i2c: 01 07 00 [09:46:13]MH_I2C_Read... [09:46:13]Read from MH i2c: 01 07 00 8C 28 00 00 00 00 00 DF 0C A6 [09:46:13]RasterBufferAndPrint [09:46:13]line [09:46:13]line [09:46:13]line [09:46:13]line [09:46:13]line [09:46:13]written 0, free lines is 3307 [09:46:13]MH_Cut [09:46:13]Write to MH i2c: D1 01 00 93 28 01 8D [09:46:13]Write i2c OK [09:46:13]MH_I2C_Read... [09:46:13]Read from MH i2c: D1 [09:46:13]MH_I2C_Read... [09:46:13]Read from MH i2c: D1 01 00 [09:46:13]MH_I2C_Read... [09:46:13]Read from MH i2c: D1 01 00 93 28 00 8C [09:46:13]Write to MH i2c: 01 00 00 94 28 BC [09:46:13]Write i2c OK [09:46:13]MH_I2C_Read... [09:46:14]OFD Sender: No OFD packet to send [09:46:14]*** Cut start [09:46:14]*** Purtial cut [09:46:14]*** Stage 1: CUTSNS_PIN = 1 [09:46:14]Read from MH i2c: 01 [09:46:14]MH_I2C_Read... [09:46:14]*** Stop cut motor [09:46:14]*** Cut end [09:46:14]Read from MH i2c: 01 07 00 [09:46:14]MH_I2C_Read... [09:46:14]Read from MH i2c: 01 07 00 94 28 00 00 00 00 00 FF 0F D1 [09:46:14]process_action close_receipt done [09:46:14]requested_data is exist [09:46:14]produce_requested_data [09:46:14]requested_item fm.sn is exist - process it [09:46:14]wFMCommunicate request_size=4 [09:46:14]MH_SAM_APDU [09:46:14]CAPDU: 80 11 00 00 [09:46:14]Write to MH i2c: E2 08 00 95 28 80 11 00 00 00 00 00 00 37 [09:46:14]Write i2c OK [09:46:14]MH_I2C_Read... [09:46:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:14]Read from MH i2c: E2 [09:46:14]MH_I2C_Read... [09:46:14]Read from MH i2c: E2 17 00 [09:46:14]MH_I2C_Read... [09:46:14]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 31 38 90 00 8B [09:46:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:46:14]wFMCommunicate OK [09:46:14]requested_item fd.num is exist - process it [09:46:14]SAM_PROTO_GetFieldsCounters [09:46:14]wFMCommunicate request_size=4 [09:46:14]MH_SAM_APDU [09:46:14]CAPDU: 80 13 00 00 [09:46:14]Write to MH i2c: E2 08 00 96 28 80 13 00 00 00 00 00 00 3A [09:46:14]Write i2c OK [09:46:14]MH_I2C_Read... [09:46:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:15]Read from MH i2c: E2 [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: E2 62 00 [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: E2 62 00 96 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 09 A8 01 00 0E 04 04 00 40 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 2F [09:46: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 09 A8 01 00 0E 04 04 00 40 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 [09:46:15]int [09:46:15]wFMCommunicate OK [09:46:15]Write to MH i2c: SAM_PROTO_GetFieldsCounters done [09:46:15]01 requested_item shift.num is exist - process it [09:46:15]00 requested_item shift.opened is exist - process it [09:46:15]00 req_shift_opened [09:46:15]97 FM_GetShiftState [09:46:15]28 SAM_PROTO_GetShiftState [09:46:15]wFMCommunicate request_size=4 [09:46:15]MH_SAM_APDU [09:46:15]CAPDU: 80 13 01 00 [09:46:15]*** FLAG_PRN_KEY set [09:46:15]BF [09:46:15]Write i2c OK [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: 01 [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: 01 07 00 [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: 01 07 00 97 28 00 08 00 00 00 FF 0F DC [09:46:15]Write to MH i2c: state=0 [09:46:15]E2 Key pressed [09:46:15]08 Feed [09:46:15]00 98 28 80 13 01 00 00 00 00 00 3D [09:46:15]Write i2c OK [09:46:15]MH_I2C_Read... [09:46:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:15]Read from MH i2c: E2 [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: E2 0E 00 [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: E2 0E 00 98 28 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 71 [09:46:15]RAPDU: Write to MH i2c: 09 D8 00 00 01 00 3D 99 93 28 F3 98 65 [09:46:15]00 00 00 00 90 00 [09:46:15]wFMCommunicate OK [09:46:15]SAM_PROTO_GetShiftState done [09:46:15]FM_GetShiftState done [09:46:15]req_shift_opened done [09:46:15]requested_item shift.open_date is exist - process it [09:46:15]req_shift_open_date [09:46:15]req_shift_open_date done [09:46:15]produce_requested_data done [09:46:15]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108553,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [09:46:15]process_action_free close_receipt [09:46:15]json_value_free [09:46:15]json_value_free done [09:46:15]process_json_proto returns [09:46:15]Send response to host [09:46:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108553,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [09:46:15]free response buf [09:46:15]execute_script done [09:46:15]execute_script returns [09:46:15]free content buf [09:46:15]Write i2c OK [09:46:15]Sock 8.Close socket [09:46:15]MH_I2C_Read... [09:46:15]Sock 8.Thread stoped [09:46:15]Read from MH i2c: D8 [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: D8 01 00 [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: D8 01 00 99 28 00 99 [09:46:15]int line is 0 - check status [09:46:15]Write to MH i2c: 01 00 00 9A 28 C2 [09:46:15]Write i2c OK [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: 01 [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: 01 07 00 [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: 01 07 00 9A 28 00 48 00 00 00 3C 00 4D [09:46:15]state=2 [09:46:15]Key pressed [09:46:15]int [09:46:15]Write to MH i2c: 01 00 00 9B 28 C3 [09:46:15]Write i2c OK [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: 01 [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: 01 07 00 [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: 01 07 00 9B 28 00 48 00 00 00 3C 00 4E [09:46:15]state=2 [09:46:15]Key pressed [09:46:15]int [09:46:15]Write to MH i2c: 01 00 00 9C 28 C4 [09:46:15]*** FLAG_PRN_KEY reset [09:46:15]Write i2c OK [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: 01 [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: 01 07 00 [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: 01 07 00 9C 28 00 00 00 00 00 F8 0F D2 [09:46:15]state=2 [09:46:15]Stop feed [09:46:15]int [09:46:15]Write to MH i2c: 01 00 00 9D 28 C5 [09:46:15]*** FLAG_PRN_KEY set [09:46:15]Write i2c OK [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: 01 [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: 01 07 00 [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: 01 07 00 9D 28 00 08 00 00 00 FF 0F E2 [09:46:15]state=0 [09:46:15]Key pressed [09:46:15]Feed [09:46:15]Write to MH i2c: D8 00 00 9E 28 9D [09:46:15]Write i2c OK [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: D8 [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: D8 01 00 [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: D8 01 00 9E 28 00 9E [09:46:15]int [09:46:15]Write to MH i2c: 01 00 00 9F 28 C7 [09:46:15]Write i2c OK [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: 01 [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: 01 07 00 [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: 01 07 00 9F 28 00 48 00 00 00 3D 00 53 [09:46:15]state=2 [09:46:15]Key pressed [09:46:15]int [09:46:15]Write to MH i2c: 01 00 00 A0 28 C8 [09:46:15]*** FLAG_PRN_KEY reset [09:46:15]Write i2c OK [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: 01 [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: 01 07 00 [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: 01 07 00 A0 28 00 00 00 00 00 FC 0F DA [09:46:15]state=2 [09:46:15]Stop feed [09:46:19]OFD Sender: No OFD packet to send [09:46:24]OFD Sender: No OFD packet to send [09:46:29]OFD Sender: No OFD packet to send [09:46:34]OFD Sender: No OFD packet to send [09:46:39]OFD Sender: No OFD packet to send [09:46:44]OFD Sender: No OFD packet to send [09:46:49]OFD Sender: No OFD packet to send [09:46:54]OFD Sender: No OFD packet to send [09:46:59]OFD Sender: No OFD packet to send [09:47:04]OFD Sender: No OFD packet to send [09:47:09]OFD Sender: No OFD packet to send [09:47:14]OFD Sender: No OFD packet to send [09:47:19]OFD Sender: No OFD packet to send [09:47:24]OFD Sender: No OFD packet to send [09:47:29]OFD Sender: No OFD packet to send [09:47:34]OFD Sender: No OFD packet to send [09:47:39]OFD Sender: No OFD packet to send [09:47:44]OFD Sender: No OFD packet to send [09:47:49]OFD Sender: No OFD packet to send [09:47:54]OFD Sender: No OFD packet to send [09:47:59]OFD Sender: No OFD packet to send [09:48:04]OFD Sender: No OFD packet to send [09:48:09]OFD Sender: No OFD packet to send [09:48:14]OFD Sender: No OFD packet to send [09:48:19]OFD Sender: No OFD packet to send [09:48:24]OFD Sender: No OFD packet to send [09:48:29]OFD Sender: No OFD packet to send [09:48:34]OFD Sender: No OFD packet to send [09:48:39]OFD Sender: No OFD packet to send [09:48:44]OFD Sender: No OFD packet to send [09:48:49]OFD Sender: No OFD packet to send [09:48:54]OFD Sender: No OFD packet to send [09:48:59]OFD Sender: No OFD packet to send [09:49:04]OFD Sender: No OFD packet to send [09:49:09]OFD Sender: No OFD packet to send [09:49:14]OFD Sender: No OFD packet to send [09:49:19]OFD Sender: No OFD packet to send [09:49:24]OFD Sender: No OFD packet to send [09:49:29]OFD Sender: No OFD packet to send [09:49:34]OFD Sender: No OFD packet to send [09:49:39]OFD Sender: No OFD packet to send [09:49:44]OFD Sender: No OFD packet to send [09:49:49]OFD Sender: No OFD packet to send [09:49:54]OFD Sender: No OFD packet to send [09:49:59]OFD Sender: No OFD packet to send [09:50:04]OFD Sender: No OFD packet to send [09:50:09]OFD Sender: No OFD packet to send [09:50:14]OFD Sender: No OFD packet to send [09:50:19]OFD Sender: No OFD packet to send [09:50:24]OFD Sender: No OFD packet to send [09:50:29]OFD Sender: No OFD packet to send [09:50:34]OFD Sender: No OFD packet to send [09:50:39]OFD Sender: No OFD packet to send [09:50:44]OFD Sender: No OFD packet to send [09:50:49]OFD Sender: No OFD packet to send [09:50:54]OFD Sender: No OFD packet to send [09:50:59]OFD Sender: No OFD packet to send [09:51:04]OFD Sender: No OFD packet to send [09:51:09]OFD Sender: No OFD packet to send [09:51:14]OFD Sender: No OFD packet to send [09:51:19]OFD Sender: No OFD packet to send [09:51:24]OFD Sender: No OFD packet to send [09:51:29]OFD Sender: No OFD packet to send [09:51:34]OFD Sender: No OFD packet to send [09:51:39]OFD Sender: No OFD packet to send [09:51:44]OFD Sender: No OFD packet to send [09:51:49]OFD Sender: No OFD packet to send [09:51:54]OFD Sender: No OFD packet to send [09:51:59]OFD Sender: No OFD packet to send [09:52:04]OFD Sender: No OFD packet to send [09:52:09]OFD Sender: No OFD packet to send [09:52:14]OFD Sender: No OFD packet to send [09:52:19]OFD Sender: No OFD packet to send [09:52:24]OFD Sender: No OFD packet to send [09:52:29]OFD Sender: No OFD packet to send [09:52:34]OFD Sender: No OFD packet to send [09:52:39]OFD Sender: No OFD packet to send [09:52:44]OFD Sender: No OFD packet to send [09:52:49]OFD Sender: No OFD packet to send [09:52:54]OFD Sender: No OFD packet to send [09:52:59]OFD Sender: No OFD packet to send [09:53:04]OFD Sender: No OFD packet to send [09:53:09]OFD Sender: No OFD packet to send [09:53:14]OFD Sender: No OFD packet to send [09:53:19]OFD Sender: No OFD packet to send [09:53:24]OFD Sender: No OFD packet to send [09:53:29]OFD Sender: No OFD packet to send [09:53:34]OFD Sender: No OFD packet to send [09:53:39]OFD Sender: No OFD packet to send [09:53:44]OFD Sender: No OFD packet to send [09:53:49]OFD Sender: No OFD packet to send [09:53:54]OFD Sender: No OFD packet to send [09:53:59]OFD Sender: No OFD packet to send [09:54:04]OFD Sender: No OFD packet to send [09:54:09]OFD Sender: No OFD packet to send [09:54:14]OFD Sender: No OFD packet to send [09:54:19]OFD Sender: No OFD packet to send [09:54:24]OFD Sender: No OFD packet to send [09:54:29]OFD Sender: No OFD packet to send [09:54:34]OFD Sender: No OFD packet to send [09:54:39]OFD Sender: No OFD packet to send [09:54:44]OFD Sender: No OFD packet to send [09:54:49]OFD Sender: No OFD packet to send [09:54:54]OFD Sender: No OFD packet to send [09:54:59]OFD Sender: No OFD packet to send [09:55:04]OFD Sender: No OFD packet to send [09:55:09]OFD Sender: No OFD packet to send [09:55:14]OFD Sender: No OFD packet to send [09:55:19]OFD Sender: No OFD packet to send [09:55:24]OFD Sender: No OFD packet to send [09:55:29]OFD Sender: No OFD packet to send [09:55:33]accept exits with 9 [09:55:33]New connection [09:55:33]New thread 3067342180 created [09:55:33]Thread 3067198820 joined [09:55:33]Waiting for new connection... [09:55:33] Sock 9.Parse request [09:55:33]Sock 9.Check first char [09:55:33]Sock 9.First char is OK [09:55:33]request: POST /json_proto HTTP/1.0 [09:55:33]Method: POST [09:55:33]URL: /json_proto [09:55:33]Method is POST - this is cgi request [09:55:33]url: /json_proto [09:55:33]query_string will be loaded in cgi processing [09:55:33]execute_cgi json_proto POST (null) [09:55:33]execute_cgi path=json_proto method=POST [09:55:33]POST find Content-Length [09:55:33]Host: 172.17.32.69:8080 [09:55:33]Content-Length: 1202 [09:55:33]Content-Type: application/json [09:55:33] [09:55:33]POST finish read [09:55:33]Found Content-Length = 1202 [09:55:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040725\u000A15.03.2024 09:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 4\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 10.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 709.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3689323\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:33]execute_script... [09:55:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040725\u000A15.03.2024 09:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 4\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 10.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 709.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3689323\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:33]POST & json_proto [09:55:33]process_json_proto [09:55:33]json parsed OK: [09:55:33]protocol is kg_v1.0 [09:55:33]action value=print_text [09:55:33]process_action print_text [09:55:33]cmd_print_text [09:55:33]ExternCall_PrintAddStr [09:55:33]wPrintStart [09:55:33]Write to MH i2c: 01 00 00 A1 28 C9 [09:55:33]Write i2c OK [09:55:33]MH_I2C_Read... [09:55:33]Read from MH i2c: 01 [09:55:33]MH_I2C_Read... [09:55:33]Read from MH i2c: 01 07 00 [09:55:33]MH_I2C_Read... [09:55:33]Read from MH i2c: 01 07 00 A1 28 00 00 00 00 00 FF 0F DE [09:55:33]RasterBufferAndPrint [09:55:33]line *****ТОВАРНЫЙ ЧЕК***** [09:55:33]line АЗС 15 [09:55:33]line Партнер нефть [09:55:33]line 02508201610067 [09:55:33]line Кассир : Максатбек у Д. [09:55:33]line Счет N : (1)1040725 [09:55:33]line 15.03.2024 09:47 [09:55:33]line ПРОДАЖА [09:55:33]line ТРК (МРК, ГНК): 4 [09:55:33]line Вид ГСМ : 2710194210 [09:55:33]line ДТ(л)-К-5 [09:55:33]line 10.000 x 70.90 [09:55:33]line ИТОГ: 709.00 [09:55:33]line Тип оплаты: Талоны: Партнер нефть [09:55:33]line 3689323 [09:55:33]line ______________________ [09:55:33]line (подпись) [09:55:33]written 0, free lines is 4095 [09:55:33]Write to MH i2c: 01 00 00 B6 28 DE [09:55:33]Write i2c OK [09:55:33]MH_I2C_Read... [09:55:33]Read from MH i2c: 01 [09:55:33]MH_I2C_Read... [09:55:33]Read from MH i2c: 01 07 00 [09:55:33]MH_I2C_Read... [09:55:33]Read from MH i2c: 01 07 00 B6 28 00 00 00 00 00 FB 0D ED [09:55:33]RasterBufferAndPrint [09:55:33]line [09:55:33]line [09:55:33]line [09:55:33]line [09:55:33]line [09:55:33]written 0, free lines is 3581 [09:55:33]MH_Cut [09:55:33]Write to MH i2c: D1 01 00 BD 28 01 B7 [09:55:33]Write i2c OK [09:55:33]MH_I2C_Read... [09:55:33]Read from MH i2c: D1 [09:55:33]MH_I2C_Read... [09:55:33]Read from MH i2c: D1 01 00 [09:55:33]MH_I2C_Read... [09:55:33]Read from MH i2c: D1 01 00 BD 28 00 B6 [09:55:33]Write to MH i2c: 01 00 00 BE 28 E6 [09:55:33]Write i2c OK [09:55:33]MH_I2C_Read... [09:55:34]*** Cut start [09:55:34]*** Purtial cut [09:55:34]*** Stage 1: CUTSNS_PIN = 1 [09:55:34]Read from MH i2c: 01 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: 01 07 00 [09:55:34]MH_I2C_Read... [09:55:34]*** Stop cut motor [09:55:34]*** Cut end [09:55:34]Read from MH i2c: 01 07 00 BE 28 00 00 00 00 00 FF 0F FB [09:55:34]process_action print_text done [09:55:34]requested_data is exist [09:55:34]produce_requested_data [09:55:34]requested_item fm.sn is exist - process it [09:55:34]wFMCommunicate request_size=4 [09:55:34]MH_SAM_APDU [09:55:34]CAPDU: 80 11 00 00 [09:55:34]Write to MH i2c: E2 08 00 BF 28 80 11 00 00 00 00 00 00 61 [09:55:34]Write i2c OK [09:55:34]MH_I2C_Read... [09:55:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:34]Read from MH i2c: E2 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: E2 17 00 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: E2 17 00 BF 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 B5 [09:55:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:55:34]wFMCommunicate OK [09:55:34]requested_item fd.num is exist - process it [09:55:34]SAM_PROTO_GetFieldsCounters [09:55:34]wFMCommunicate request_size=4 [09:55:34]MH_SAM_APDU [09:55:34]CAPDU: 80 13 00 00 [09:55:34]Write to MH i2c: E2 08 00 C0 28 80 13 00 00 00 00 00 00 64 [09:55:34]Write i2c OK [09:55:34]MH_I2C_Read... [09:55:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:34]Read from MH i2c: E2 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: E2 62 00 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: E2 62 00 C0 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 09 A8 01 00 0E 04 04 00 40 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 59 [09:55: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 09 A8 01 00 0E 04 04 00 40 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 [09:55:34]wFMCommunicate OK [09:55:34]SAM_PROTO_GetFieldsCounters done [09:55:34]requested_item shift.num is exist - process it [09:55:34]requested_item shift.opened is exist - process it [09:55:34]req_shift_opened [09:55:34]FM_GetShiftState [09:55:34]SAM_PROTO_GetShiftState [09:55:34]wFMCommunicate request_size=4 [09:55:34]MH_SAM_APDU [09:55:34]CAPDU: 80 13 01 00 [09:55:34]Write to MH i2c: E2 08 00 C1 28 80 13 01 00 00 00 00 00 66 [09:55:34]Write i2c OK [09:55:34]MH_I2C_Read... [09:55:34]OFD Sender: No OFD packet to send [09:55:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:34]Read from MH i2c: E2 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: E2 0E 00 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: E2 0E 00 C1 28 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 9A [09:55:34]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:55:34]wFMCommunicate OK [09:55:34]SAM_PROTO_GetShiftState done [09:55:34]FM_GetShiftState done [09:55:34]req_shift_opened done [09:55:34]requested_item shift.open_date is exist - process it [09:55:34]req_shift_open_date [09:55:34]req_shift_open_date done [09:55:34]produce_requested_data done [09:55:34]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108553,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [09:55:34]process_action_free print_text [09:55:34]json_value_free [09:55:34]json_value_free done [09:55:34]process_json_proto returns [09:55:34]Send response to host [09:55:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108553,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [09:55:34]free response buf [09:55:34]execute_script done [09:55:34]execute_script returns [09:55:34]free content buf [09:55:34]Sock 9.Close socket [09:55:34]Sock 9.Thread stoped [09:55:39]OFD Sender: No OFD packet to send [09:55:44]OFD Sender: No OFD packet to send [09:55:49]OFD Sender: No OFD packet to send [09:55:54]OFD Sender: No OFD packet to send [09:55:59]OFD Sender: No OFD packet to send [09:56:04]OFD Sender: No OFD packet to send [09:56:09]OFD Sender: No OFD packet to send [09:56:14]OFD Sender: No OFD packet to send [09:56:19]OFD Sender: No OFD packet to send [09:56:24]OFD Sender: No OFD packet to send [09:56:29]OFD Sender: No OFD packet to send [09:56:34]OFD Sender: No OFD packet to send [09:56:39]OFD Sender: No OFD packet to send [09:56:44]OFD Sender: No OFD packet to send [09:56:49]OFD Sender: No OFD packet to send [09:56:54]OFD Sender: No OFD packet to send [09:56:59]OFD Sender: No OFD packet to send [09:57:04]OFD Sender: No OFD packet to send [09:57:09]OFD Sender: No OFD packet to send [09:57:14]OFD Sender: No OFD packet to send [09:57:19]OFD Sender: No OFD packet to send [09:57:24]OFD Sender: No OFD packet to send [09:57:29]OFD Sender: No OFD packet to send [09:57:34]OFD Sender: No OFD packet to send [09:57:39]OFD Sender: No OFD packet to send [09:57:44]OFD Sender: No OFD packet to send [09:57:49]OFD Sender: No OFD packet to send [09:57:54]OFD Sender: No OFD packet to send [09:57:59]OFD Sender: No OFD packet to send [09:58:04]OFD Sender: No OFD packet to send [09:58:09]OFD Sender: No OFD packet to send [09:58:14]OFD Sender: No OFD packet to send [09:58:19]OFD Sender: No OFD packet to send [09:58:24]OFD Sender: No OFD packet to send [09:58:29]OFD Sender: No OFD packet to send [09:58:34]OFD Sender: No OFD packet to send [09:58:39]OFD Sender: No OFD packet to send [09:58:44]OFD Sender: No OFD packet to send [09:58:49]OFD Sender: No OFD packet to send [09:58:54]OFD Sender: No OFD packet to send [09:58:59]OFD Sender: No OFD packet to send [09:59:04]OFD Sender: No OFD packet to send [09:59:09]OFD Sender: No OFD packet to send [09:59:14]OFD Sender: No OFD packet to send [09:59:19]OFD Sender: No OFD packet to send [09:59:24]OFD Sender: No OFD packet to send [09:59:29]OFD Sender: No OFD packet to send [09:59:34]OFD Sender: No OFD packet to send [09:59:35]accept exits with 8 [09:59:35]New connection [09:59:35]New thread 3067198820 created [09:59:35]Thread 3067342180 joined [09:59:35]Waiting for new connection... [09:59:35] Sock 8.Parse request [09:59:35]Sock 8.Check first char [09:59:35]Sock 8.First char is OK [09:59:35]request: POST /json_proto HTTP/1.0 [09:59:35]Method: POST [09:59:35]URL: /json_proto [09:59:35]Method is POST - this is cgi request [09:59:35]url: /json_proto [09:59:35]query_string will be loaded in cgi processing [09:59:35]execute_cgi json_proto POST (null) [09:59:35]execute_cgi path=json_proto method=POST [09:59:35]POST find Content-Length [09:59:35]Host: 172.17.32.69:8080 [09:59:35]Content-Length: 678 [09:59:35]Content-Type: application/json [09:59:35] [09:59:35]POST finish read [09:59:35]Found Content-Length = 678 [09:59:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 6.470, "sum" : 400.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:35]execute_script... [09:59:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 6.470, "sum" : 400.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:35]POST & json_proto [09:59:35]process_json_proto [09:59:35]json parsed OK: [09:59:35]protocol is kg_v1.0 [09:59:35]action value=close_receipt [09:59:35]process_action close_receipt [09:59:35]cmd_close_receipt [09:59:35]MH_GetDate [09:59:35]Write to MH i2c: F0 00 00 C2 28 D9 [09:59:35]Write i2c OK [09:59:35]MH_I2C_Read... [09:59:35]Read from MH i2c: F0 [09:59:35]MH_I2C_Read... [09:59:35]Read from MH i2c: F0 09 00 [09:59:35]MH_I2C_Read... [09:59:35]Read from MH i2c: F0 09 00 C2 28 00 0B 1C F4 65 D5 0F D3 65 7E [09:59:35]GetLastDocTimeStamp 1710495974 [09:59:35]current date 1710496779 [09:59:35]FM_GetShiftState [09:59:35]SAM_PROTO_GetShiftState [09:59:35]wFMCommunicate request_size=4 [09:59:35]MH_SAM_APDU [09:59:35]CAPDU: 80 13 01 00 [09:59:35]Write to MH i2c: E2 08 00 C3 28 80 13 01 00 00 00 00 00 68 [09:59:35]Write i2c OK [09:59:35]MH_I2C_Read... [09:59:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:35]Read from MH i2c: E2 [09:59:35]MH_I2C_Read... [09:59:35]Read from MH i2c: E2 0E 00 [09:59:35]MH_I2C_Read... [09:59:35]Read from MH i2c: E2 0E 00 C3 28 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 9C [09:59:35]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:59:35]wFMCommunicate OK [09:59:35]SAM_PROTO_GetShiftState done [09:59:35]FM_GetShiftState done [09:59:35]opened in 1710461757 [09:59:35]opened+sec_in_day 1710548157 [09:59:35]quantity*price = 40049 [09:59:35]sum+1 = 40050 [09:59:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 77 15.03.2024 09:59 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108554 ФПД: 250138014051407 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T095939&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108554&fm=250138014051407&tin=02508201610067®Number=0000000000091911&sum=40000 [09:59:36]StoreToDocumentArchive [09:59:36]shift 320 fd 108554 [09:59:36]save to /storage/0320/doc_00108554 [09:59:36]save last doc name /storage/0320/doc_00108554 to /storage/kkm_last_doc_name [09:59:36]save OK [09:59:36]Clear old archive folders... [09:59:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:59:36]tlvbuf is 000EEB70 [09:59:36]SAM_PROTO_ClearQueue [09:59:36]wFMCommunicate request_size=4 [09:59:36]MH_SAM_APDU [09:59:36]CAPDU: 80 09 00 00 [09:59:36]Write to MH i2c: E2 08 00 D0 28 80 09 00 00 00 00 00 00 6A [09:59:36]Write i2c OK [09:59:36]MH_I2C_Read... [09:59:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:36]Read from MH i2c: E2 [09:59:36]MH_I2C_Read... [09:59:36]Read from MH i2c: E2 03 00 [09:59:36]MH_I2C_Read... [09:59:36]Read from MH i2c: E2 03 00 D0 28 00 90 00 6C [09:59:36]RAPDU: 90 00 [09:59:36]wFMCommunicate OK [09:59:36]SAM_PROTO_ClearQueue done [09:59:36]KKMCreateOFDPacket [09:59:36]OFDProtocolAddRootSTLVToBuf [09:59:36]FM_MakeSignedData [09:59:36]FM_MakeSignedData [09:59:36]SAM_PROTO_SignData [09:59:36]wFMCommunicate request_size=4 [09:59:36]MH_SAM_APDU [09:59:36]CAPDU: 80 0D 01 02 [09:59:36]Write to MH i2c: E2 08 00 D1 28 80 0D 01 02 00 00 00 00 72 [09:59:36]Write i2c OK [09:59:36]MH_I2C_Read... [09:59:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:36]Read from MH i2c: E2 [09:59:36]MH_I2C_Read... [09:59:36]Read from MH i2c: E2 03 00 [09:59:36]MH_I2C_Read... [09:59:36]Read from MH i2c: E2 03 00 D1 28 00 90 00 6D [09:59:36]RAPDU: 90 00 [09:59:36]wFMCommunicate OK [09:59:36]wFMCommunicate request_size=255 [09:59:36]MH_SAM_APDU [09:59:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 0B 1C F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 0A A8 01 00 35 04 06 00 E3 [09:59:36]Write to MH i2c: E2 02 01 D2 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 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 0B 1C F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 0A A8 01 00 35 04 06 00 E3 00 00 97 [09:59:36]Write i2c OK [09:59:36]MH_I2C_Read... [09:59:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:37]Read from MH i2c: E2 [09:59:37]MH_I2C_Read... [09:59:37]Read from MH i2c: E2 03 00 [09:59:37]MH_I2C_Read... [09:59:37]Read from MH i2c: E2 03 00 D2 28 00 90 00 6E [09:59:37]RAPDU: 90 00 [09:59:37]wFMCommunicate OK [09:59:37]wFMCommunicate request_size=10 [09:59:37]MH_SAM_APDU [09:59:37]CAPDU: 80 0D 02 02 05 7F CB 78 EC 4F [09:59:37]Write to MH i2c: E2 0D 00 D3 28 80 0D 02 02 05 00 7F CB 78 EC 4F 00 00 7C [09:59:37]Write i2c OK [09:59:37]MH_I2C_Read... [09:59:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:37]Read from MH i2c: E2 [09:59:37]MH_I2C_Read... [09:59:37]Read from MH i2c: E2 03 00 [09:59:37]MH_I2C_Read... [09:59:37]Read from MH i2c: E2 03 00 D3 28 00 90 00 6F [09:59:37]RAPDU: 90 00 [09:59:37]wFMCommunicate OK [09:59:37]wFMCommunicate request_size=4 [09:59:37]MH_SAM_APDU [09:59:37]CAPDU: 80 0D 03 02 [09:59:37]Write to MH i2c: E2 08 00 D4 28 80 0D 03 02 00 00 00 00 77 [09:59:37]Write i2c OK [09:59:37]MH_I2C_Read... [09:59:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:37]Read from MH i2c: E2 [09:59:37]MH_I2C_Read... [09:59:37]Read from MH i2c: E2 0B 00 [09:59:37]MH_I2C_Read... [09:59:37]Read from MH i2c: E2 0B 00 D4 28 00 92 55 68 0D 12 18 66 09 90 00 6D [09:59:37]RAPDU: 92 55 68 0D 12 18 66 09 90 00 [09:59:37]wFMCommunicate OK [09:59:37]SAM_PROTO_SignData done [09:59:37]FM_MakeSignedData done [09:59:37]CreateOFDProtocolMessage [09:59:37]wFMCommunicate request_size=4 [09:59:37]MH_SAM_APDU [09:59:37]CAPDU: 80 11 00 00 [09:59:37]Write to MH i2c: E2 08 00 D5 28 80 11 00 00 00 00 00 00 77 [09:59:37]Write i2c OK [09:59:37]MH_I2C_Read... [09:59:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:37]Read from MH i2c: E2 [09:59:37]MH_I2C_Read... [09:59:37]Read from MH i2c: E2 17 00 [09:59:37]MH_I2C_Read... [09:59:37]Read from MH i2c: E2 17 00 D5 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 CB [09:59:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:59:37]wFMCommunicate OK [09:59:37]CreateOFDProtocolMessage done [09:59:37]OFDSenderStorePacket 108554 [09:59:37]StoreOFDPacket docnum=108554 [09:59:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 46 49 07 01 3A 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 0B 1C F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 0A A8 01 00 35 04 06 00 E3 7F CB 78 EC 4F 92 55 68 0D 12 18 66 09 [09:59:37]CheckFolder [09:59:37]dirname=/storage/ofd_packets [09:59:37]CheckFolder done [09:59:37]ProducePacketName [09:59:37]name=ofd_packets/00108554 [09:59:37]NVStorageSaveData ofd_packets/00108554 [09:59:37]File name is /storage/ofd_packets/00108554 [09:59:37]Write 301 bytes [09:59:37]NVStorageSaveData done [09:59:37]OFDSenderStorePacket done [09:59:37]KKMCreateOFDPacket done [09:59:37]NVStorageSaveData kkm_last_timestamp [09:59:37]File name is /storage/kkm_last_timestamp [09:59:37]Write 4 bytes [09:59:37]NVStorageSaveData done [09:59:37]ExternCall_PrintAddStr [09:59:37]wPrintStart [09:59:37]Write to MH i2c: 01 00 00 D6 28 FE [09:59:37]Write i2c OK [09:59:37]MH_I2C_Read... [09:59:37]Read from MH i2c: 01 [09:59:37]MH_I2C_Read... [09:59:37]Read from MH i2c: 01 07 00 [09:59:37]MH_I2C_Read... [09:59:37]Read from MH i2c: 01 07 00 D6 28 00 00 00 00 00 FF 0F 13 [09:59:37]RasterBufferAndPrint [09:59:37]line Счет N : (1)1040726 [09:59:37]line ИНН: 02508201610067 [09:59:37]line Контрольно-Кассовый Чек [09:59:37]line ПРОДАЖА [09:59:37]line ТРК (МРК, ГНК) : 23 [09:59:37]line Товар: 2710124130 [09:59:37]line Аи-92-К-5 [09:59:37]line 6.470 * 61.90 [09:59:37]line = 400.49 [09:59:37]line НДС 12% НСП 1% [09:59:37]line > о реализуемом товаре [09:59:37]line ОКРУГЛЕНИЕ: -0.49 [09:59:37]line ИТОГО: 400.00 [09:59:37]line Внесено: 400.00 [09:59:37]line СДАЧА: 0.00 [09:59:37]line НСП 1% : 3.54 [09:59:37]line НДС 12% : 42.53 [09:59:37]line Наличными: 400.00 [09:59:37]line Безнал.: 0.00 [09:59:37]line Место: АЗС № 15 "Партнер Нефть" [09:59:37]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [09:59:37]line СНО: Общий режим [09:59:37]line Чек 77 15.03.2024 09:59 [09:59:37]line Смена: 320 ФФД: 1.0 [09:59:37]line ЗНМ: 0300000266 [09:59:37]line РНМ: 0000000000091911 [09:59:37]line Версия ККМ: 001 [09:59:37]line ФМ: 0000000000871818 [09:59:37]line ФД: 108554 [09:59:37]line ФПД: 250138014051407 [09:59:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T095939&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108554&fm=250138014051407&tin=02508201610067®Number=0000000000091911&sum=40000 [09:59:37]OFD Sender: Processing packet 108554 [packets to send 29, broken 28] [09:59:37]ProducePacketName [09:59:37]name=ofd_packets/00108554 [09:59:37]OFD Sender: To server: pG, [09:59:37]CommunicateWithHost lk.salyk.kg:30040 [09:59:37]ConnectInit lk.salyk.kg [09:59:37]written 0, free lines is 4095 [09:59:37]Connected sock=10 [09:59:37]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 31 38 0F 01 00 00 46 49 07 01 3A 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 0B 1C F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 0A A8 01 00 35 04 06 00 E3 7F CB 78 EC 4F 92 55 68 0D 12 18 66 09 [09:59: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 31 38 4F 00 00 00 40 01 47 00 26 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 0A A8 01 00 F4 03 04 00 AB C7 F3 65 B6 04 01 00 00 C2 94 3C A2 1C 00 98 1F [09:59:37]CommunicateWithHost err = 0 [09:59:37]CheckOFDResponse [09:59:37]1017 (14) - 77093643461234 [09:59:37]1041 (16) - 0000000000871818 [09:59:37]1040 (4) - 108554 [09:59:37]1012 (4) - 15.03.2024 03:59 [09:59:37]1206 (1) - 0 [09:59:37]OFD Sender: Remove packet 108554 [09:59:37]ProducePacketName [09:59:37]name=ofd_packets/00108554 [09:59:37]NVStorageDeleteData [09:59:38]Write to MH i2c: 01 00 00 01 29 2A [09:59:38]Write i2c OK [09:59:38]MH_I2C_Read... [09:59:38]Read from MH i2c: 01 [09:59:38]MH_I2C_Read... [09:59:38]Read from MH i2c: 01 07 00 [09:59:38]MH_I2C_Read... [09:59:38]Read from MH i2c: 01 07 00 01 29 00 00 00 00 00 DC 0C 19 [09:59:38]RasterBufferAndPrint [09:59:38]line [09:59:38]line [09:59:38]line [09:59:38]line [09:59:38]line [09:59:38]written 0, free lines is 3298 [09:59:38]MH_Cut [09:59:38]Write to MH i2c: D1 01 00 08 29 01 03 [09:59:38]Write i2c OK [09:59:38]MH_I2C_Read... [09:59:38]Read from MH i2c: D1 [09:59:38]MH_I2C_Read... [09:59:38]Read from MH i2c: D1 01 00 [09:59:38]MH_I2C_Read... [09:59:38]Read from MH i2c: D1 01 00 08 29 00 02 [09:59:38]Write to MH i2c: 01 00 00 09 29 32 [09:59:38]Write i2c OK [09:59:38]MH_I2C_Read... [09:59:38]OFD Sender: No OFD packet to send [09:59:38]*** Cut start [09:59:38]*** Purtial cut [09:59:38]*** Stage 1: CUTSNS_PIN = 1 [09:59:39]Read from MH i2c: 01 [09:59:39]MH_I2C_Read... [09:59:39]*** Stop cut motor [09:59:39]*** Cut end [09:59:39]Read from MH i2c: 01 07 00 [09:59:39]MH_I2C_Read... [09:59:39]Read from MH i2c: 01 07 00 09 29 00 00 00 00 00 FF 0F 47 [09:59:39]process_action close_receipt done [09:59:39]requested_data is exist [09:59:39]produce_requested_data [09:59:39]requested_item fm.sn is exist - process it [09:59:39]wFMCommunicate request_size=4 [09:59:39]MH_SAM_APDU [09:59:39]CAPDU: 80 11 00 00 [09:59:39]Write to MH i2c: E2 08 00 0A 29 80 11 00 00 00 00 00 00 AD [09:59:39]Write i2c OK [09:59:39]MH_I2C_Read... [09:59:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:39]Read from MH i2c: E2 [09:59:39]MH_I2C_Read... [09:59:39]Read from MH i2c: E2 17 00 [09:59:39]MH_I2C_Read... [09:59:39]Read from MH i2c: E2 17 00 0A 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 01 [09:59:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [09:59:39]wFMCommunicate OK [09:59:39]requested_item fd.num is exist - process it [09:59:39]SAM_PROTO_GetFieldsCounters [09:59:39]wFMCommunicate request_size=4 [09:59:39]MH_SAM_APDU [09:59:39]CAPDU: 80 13 00 00 [09:59:39]Write to MH i2c: E2 08 00 0B 29 80 13 00 00 00 00 00 00 B0 [09:59:39]Write i2c OK [09:59:39]MH_I2C_Read... [09:59:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:39]Read from MH i2c: E2 [09:59:39]MH_I2C_Read... [09:59:39]Read from MH i2c: E2 62 00 [09:59:39]MH_I2C_Read... [09:59:39]Read from MH i2c: E2 62 00 0B 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 0A A8 01 00 0E 04 04 00 40 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 A9 [09:59:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 0A A8 01 00 0E 04 04 00 40 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 [09:59:39]wFMCommunicate OK [09:59:39]SAM_PROTO_GetFieldsCounters done [09:59:39]requested_item shift.num is exist - process it [09:59:39]requested_item shift.opened is exist - process it [09:59:39]req_shift_opened [09:59:39]FM_GetShiftState [09:59:39]SAM_PROTO_GetShiftState [09:59:39]wFMCommunicate request_size=4 [09:59:39]MH_SAM_APDU [09:59:39]CAPDU: 80 13 01 00 [09:59:39]Write to MH i2c: E2 08 00 0C 29 80 13 01 00 00 00 00 00 B2 [09:59:39]Write i2c OK [09:59:39]MH_I2C_Read... [09:59:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:39]Read from MH i2c: E2 [09:59:39]MH_I2C_Read... [09:59:39]Read from MH i2c: E2 0E 00 [09:59:39]MH_I2C_Read... [09:59:39]Read from MH i2c: E2 0E 00 0C 29 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 E6 [09:59:39]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [09:59:39]wFMCommunicate OK [09:59:39]SAM_PROTO_GetShiftState done [09:59:39]FM_GetShiftState done [09:59:39]req_shift_opened done [09:59:39]requested_item shift.open_date is exist - process it [09:59:39]req_shift_open_date [09:59:39]req_shift_open_date done [09:59:39]produce_requested_data done [09:59:39]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108554,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [09:59:39]process_action_free close_receipt [09:59:39]json_value_free [09:59:39]json_value_free done [09:59:39]process_json_proto returns [09:59:39]Send response to host [09:59:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108554,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [09:59:39]free response buf [09:59:39]execute_script done [09:59:39]execute_script returns [09:59:39]free content buf [09:59:39]Sock 8.Close socket [09:59:39]Sock 8.Thread stoped [09:59:43]OFD Sender: No OFD packet to send [09:59:48]OFD Sender: No OFD packet to send [09:59:53]OFD Sender: No OFD packet to send [09:59:58]OFD Sender: No OFD packet to send [10:00:03]OFD Sender: No OFD packet to send [10:00:08]OFD Sender: No OFD packet to send [10:00:13]OFD Sender: No OFD packet to send [10:00:18]OFD Sender: No OFD packet to send [10:00:23]OFD Sender: No OFD packet to send [10:00:28]OFD Sender: No OFD packet to send [10:00:33]OFD Sender: No OFD packet to send [10:00:38]OFD Sender: No OFD packet to send [10:00:43]OFD Sender: No OFD packet to send [10:00:48]OFD Sender: No OFD packet to send [10:00:53]OFD Sender: No OFD packet to send [10:00:58]OFD Sender: No OFD packet to send [10:01:03]OFD Sender: No OFD packet to send [10:01:08]OFD Sender: No OFD packet to send [10:01:13]OFD Sender: No OFD packet to send [10:01:18]OFD Sender: No OFD packet to send [10:01:23]OFD Sender: No OFD packet to send [10:01:28]OFD Sender: No OFD packet to send [10:01:33]OFD Sender: No OFD packet to send [10:01:38]OFD Sender: No OFD packet to send [10:01:43]OFD Sender: No OFD packet to send [10:01:48]OFD Sender: No OFD packet to send [10:01:53]OFD Sender: No OFD packet to send [10:01:58]OFD Sender: No OFD packet to send [10:02:03]OFD Sender: No OFD packet to send [10:02:08]OFD Sender: No OFD packet to send [10:02:13]OFD Sender: No OFD packet to send [10:02:14]accept exits with 9 [10:02:14]New connection [10:02:14]New thread 3067342180 created [10:02:14]Thread 3067198820 joined [10:02:14]Waiting for new connection... [10:02:14] Sock 9.Parse request [10:02:14]Sock 9.Check first char [10:02:14]Sock 9.First char is OK [10:02:14]request: POST /json_proto HTTP/1.0 [10:02:14]Method: POST [10:02:14]URL: /json_proto [10:02:14]Method is POST - this is cgi request [10:02:14]url: /json_proto [10:02:14]query_string will be loaded in cgi processing [10:02:14]execute_cgi json_proto POST (null) [10:02:14]execute_cgi path=json_proto method=POST [10:02:14]POST find Content-Length [10:02:14]Host: 172.17.32.69:8080 [10:02:14]Content-Length: 1215 [10:02:14]Content-Type: application/json [10:02:14] [10:02:14]POST finish read [10:02:14]Found Content-Length = 1215 [10:02:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040727\u000A15.03.2024 09:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1857.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3831643;3831642;3831641\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:14]execute_script... [10:02:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040727\u000A15.03.2024 09:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1857.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3831643;3831642;3831641\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:14]POST & json_proto [10:02:14]process_json_proto [10:02:14]json parsed OK: [10:02:14]protocol is kg_v1.0 [10:02:14]action value=print_text [10:02:14]process_action print_text [10:02:14]cmd_print_text [10:02:14]ExternCall_PrintAddStr [10:02:14]wPrintStart [10:02:14]Write to MH i2c: 01 00 00 0D 29 36 [10:02:14]Write i2c OK [10:02:14]MH_I2C_Read... [10:02:14]Read from MH i2c: 01 [10:02:14]MH_I2C_Read... [10:02:14]Read from MH i2c: 01 07 00 [10:02:14]MH_I2C_Read... [10:02:14]Read from MH i2c: 01 07 00 0D 29 00 00 00 00 00 FF 0F 4B [10:02:14]RasterBufferAndPrint [10:02:14]line *****ТОВАРНЫЙ ЧЕК***** [10:02:14]line АЗС 15 [10:02:14]line Партнер нефть [10:02:14]line 02508201610067 [10:02:14]line Кассир : Максатбек у Д. [10:02:14]line Счет N : (1)1040727 [10:02:14]line 15.03.2024 09:54 [10:02:14]line ПРОДАЖА [10:02:14]line ТРК (МРК, ГНК): 53 [10:02:14]line Вид ГСМ : 2710124130 [10:02:14]line Аи-92-К-5 [10:02:14]line 30.000 x 61.90 [10:02:14]line ИТОГ: 1857.00 [10:02:14]line Тип оплаты: Талоны: Партнер нефть [10:02:14]line 3831643;3831642;3831641 [10:02:14]line ______________________ [10:02:14]line (подпись) [10:02:14]written 0, free lines is 4095 [10:02:15]Write to MH i2c: 01 00 00 22 29 4B [10:02:15]Write i2c OK [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: 01 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: 01 07 00 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: 01 07 00 22 29 00 00 00 00 00 01 0E 61 [10:02:15]RasterBufferAndPrint [10:02:15]line [10:02:15]line [10:02:15]line [10:02:15]line [10:02:15]line [10:02:15]written 0, free lines is 3588 [10:02:15]MH_Cut [10:02:15]Write to MH i2c: D1 01 00 29 29 01 24 [10:02:15]Write i2c OK [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: D1 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: D1 01 00 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: D1 01 00 29 29 00 23 [10:02:15]Write to MH i2c: 01 00 00 2A 29 53 [10:02:15]Write i2c OK [10:02:15]MH_I2C_Read... [10:02:15]*** Cut start [10:02:15]*** Purtial cut [10:02:15]*** Stage 1: CUTSNS_PIN = 1 [10:02:15]Read from MH i2c: 01 [10:02:15]MH_I2C_Read... [10:02:15]*** Stop cut motor [10:02:15]*** Cut end [10:02:15]Read from MH i2c: 01 07 00 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: 01 07 00 2A 29 00 00 00 00 00 FF 0F 68 [10:02:15]process_action print_text done [10:02:15]requested_data is exist [10:02:15]produce_requested_data [10:02:15]requested_item fm.sn is exist - process it [10:02:15]wFMCommunicate request_size=4 [10:02:15]MH_SAM_APDU [10:02:15]CAPDU: 80 11 00 00 [10:02:15]Write to MH i2c: E2 08 00 2B 29 80 11 00 00 00 00 00 00 CE [10:02:15]Write i2c OK [10:02:15]MH_I2C_Read... [10:02:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:15]Read from MH i2c: E2 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 17 00 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 17 00 2B 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 22 [10:02:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:02:15]wFMCommunicate OK [10:02:15]requested_item fd.num is exist - process it [10:02:15]SAM_PROTO_GetFieldsCounters [10:02:15]wFMCommunicate request_size=4 [10:02:15]MH_SAM_APDU [10:02:15]CAPDU: 80 13 00 00 [10:02:15]Write to MH i2c: E2 08 00 2C 29 80 13 00 00 00 00 00 00 D1 [10:02:15]Write i2c OK [10:02:15]MH_I2C_Read... [10:02:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:16]Read from MH i2c: E2 [10:02:16]MH_I2C_Read... [10:02:16]Read from MH i2c: E2 62 00 [10:02:16]MH_I2C_Read... [10:02:16]Read from MH i2c: E2 62 00 2C 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 0A A8 01 00 0E 04 04 00 40 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 CA [10:02:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 0A A8 01 00 0E 04 04 00 40 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 [10:02:16]wFMCommunicate OK [10:02:16]SAM_PROTO_GetFieldsCounters done [10:02:16]requested_item shift.num is exist - process it [10:02:16]requested_item shift.opened is exist - process it [10:02:16]req_shift_opened [10:02:16]FM_GetShiftState [10:02:16]SAM_PROTO_GetShiftState [10:02:16]wFMCommunicate request_size=4 [10:02:16]MH_SAM_APDU [10:02:16]CAPDU: 80 13 01 00 [10:02:16]Write to MH i2c: E2 08 00 2D 29 80 13 01 00 00 00 00 00 D3 [10:02:16]Write i2c OK [10:02:16]MH_I2C_Read... [10:02:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:16]Read from MH i2c: E2 [10:02:16]MH_I2C_Read... [10:02:16]Read from MH i2c: E2 0E 00 [10:02:16]MH_I2C_Read... [10:02:16]Read from MH i2c: E2 0E 00 2D 29 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 07 [10:02:16]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:02:16]wFMCommunicate OK [10:02:16]SAM_PROTO_GetShiftState done [10:02:16]FM_GetShiftState done [10:02:16]req_shift_opened done [10:02:16]requested_item shift.open_date is exist - process it [10:02:16]req_shift_open_date [10:02:16]req_shift_open_date done [10:02:16]produce_requested_data done [10:02:16]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108554,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [10:02:16]process_action_free print_text [10:02:16]json_value_free [10:02:16]json_value_free done [10:02:16]process_json_proto returns [10:02:16]Send response to host [10:02:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108554,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [10:02:16]free response buf [10:02:16]execute_script done [10:02:16]execute_script returns [10:02:16]free content buf [10:02:16]Sock 9.Close socket [10:02:16]Sock 9.Thread stoped [10:02:18]OFD Sender: No OFD packet to send [10:02:23]OFD Sender: No OFD packet to send [10:02:28]OFD Sender: No OFD packet to send [10:02:33]OFD Sender: No OFD packet to send [10:02:38]OFD Sender: No OFD packet to send [10:02:43]OFD Sender: No OFD packet to send [10:02:48]OFD Sender: No OFD packet to send [10:02:53]OFD Sender: No OFD packet to send [10:02:58]OFD Sender: No OFD packet to send [10:03:03]OFD Sender: No OFD packet to send [10:03:08]OFD Sender: No OFD packet to send [10:03:13]OFD Sender: No OFD packet to send [10:03:18]OFD Sender: No OFD packet to send [10:03:22]accept exits with 8 [10:03:22]New connection [10:03:22]New thread 3067198820 created [10:03:22]Thread 3067342180 joined [10:03:22]Waiting for new connection... [10:03:22] Sock 8.Parse request [10:03:22]Sock 8.Check first char [10:03:22]Sock 8.First char is OK [10:03:22]request: POST /json_proto HTTP/1.0 [10:03:22]Method: POST [10:03:22]URL: /json_proto [10:03:22]Method is POST - this is cgi request [10:03:22]url: /json_proto [10:03:22]query_string will be loaded in cgi processing [10:03:22]execute_cgi json_proto POST (null) [10:03:22]execute_cgi path=json_proto method=POST [10:03:22]POST find Content-Length [10:03:22]Host: 172.17.32.69:8080 [10:03:22]Content-Length: 688 [10:03:22]Content-Type: application/json [10:03:22] [10:03:22]POST finish read [10:03:22]Found Content-Length = 688 [10:03:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:22]execute_script... [10:03:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:22]POST & json_proto [10:03:22]process_json_proto [10:03:22]json parsed OK: [10:03:22]protocol is kg_v1.0 [10:03:22]action value=close_receipt [10:03:22]process_action close_receipt [10:03:22]cmd_close_receipt [10:03:22]MH_GetDate [10:03:22]Write to MH i2c: F0 00 00 2E 29 46 [10:03:22]Write i2c OK [10:03:22]MH_I2C_Read... [10:03:22]Read from MH i2c: F0 [10:03:22]MH_I2C_Read... [10:03:22]Read from MH i2c: F0 09 00 [10:03:22]MH_I2C_Read... [10:03:22]Read from MH i2c: F0 09 00 2E 29 00 ED 1C F4 65 D5 0F D3 65 CD [10:03:22]GetLastDocTimeStamp 1710496779 [10:03:22]current date 1710497005 [10:03:22]FM_GetShiftState [10:03:22]SAM_PROTO_GetShiftState [10:03:22]wFMCommunicate request_size=4 [10:03:22]MH_SAM_APDU [10:03:22]CAPDU: 80 13 01 00 [10:03:22]Write to MH i2c: E2 08 00 2F 29 80 13 01 00 00 00 00 00 D5 [10:03:22]Write i2c OK [10:03:22]MH_I2C_Read... [10:03:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:22]Read from MH i2c: E2 [10:03:22]MH_I2C_Read... [10:03:22]Read from MH i2c: E2 0E 00 [10:03:22]MH_I2C_Read... [10:03:22]Read from MH i2c: E2 0E 00 2F 29 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 09 [10:03:22]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:03:22]wFMCommunicate OK [10:03:22]SAM_PROTO_GetShiftState done [10:03:22]FM_GetShiftState done [10:03:22]opened in 1710461757 [10:03:22]opened+sec_in_day 1710548157 [10:03:22]quantity*price = 150055 [10:03:22]sum+1 = 150056 [10:03:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 78 15.03.2024 10:03 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108555 ФПД: 95371141205141 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T100326&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108555&fm=95371141205141&tin=02508201610067®Number=0000000000091911&sum=150000 [10:03:23]StoreToDocumentArchive [10:03:23]shift 320 fd 108555 [10:03:23]save to /storage/0320/doc_00108555 [10:03:23]save last doc name /storage/0320/doc_00108555 to /storage/kkm_last_doc_name [10:03:23]save OK [10:03:23]Clear old archive folders... [10:03:23]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:03:23]tlvbuf is B6F07090 [10:03:23]SAM_PROTO_ClearQueue [10:03:23]wFMCommunicate request_size=4 [10:03:23]MH_SAM_APDU [10:03:23]CAPDU: 80 09 00 00 [10:03:23]Write to MH i2c: E2 08 00 3C 29 80 09 00 00 00 00 00 00 D7 [10:03:23]Write i2c OK [10:03:23]MH_I2C_Read... [10:03:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:03:23]Read from MH i2c: E2 [10:03:23]MH_I2C_Read... [10:03:23]Read from MH i2c: E2 03 00 [10:03:23]MH_I2C_Read... [10:03:23]Read from MH i2c: E2 03 00 3C 29 00 90 00 D9 [10:03:23]RAPDU: 90 00 [10:03:23]wFMCommunicate OK [10:03:23]SAM_PROTO_ClearQueue done [10:03:23]KKMCreateOFDPacket [10:03:23]OFDProtocolAddRootSTLVToBuf [10:03:23]FM_MakeSignedData [10:03:23]FM_MakeSignedData [10:03:23]SAM_PROTO_SignData [10:03:23]wFMCommunicate request_size=4 [10:03:23]MH_SAM_APDU [10:03:23]CAPDU: 80 0D 01 02 [10:03:23]Write to MH i2c: E2 08 00 3D 29 80 0D 01 02 00 00 00 00 DF [10:03:23]Write i2c OK [10:03:23]MH_I2C_Read... [10:03:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:03:23]Read from MH i2c: E2 [10:03:23]MH_I2C_Read... [10:03:23]Read from MH i2c: E2 03 00 [10:03:23]MH_I2C_Read... [10:03:23]Read from MH i2c: E2 03 00 3D 29 00 90 00 DA [10:03:23]RAPDU: 90 00 [10:03:23]wFMCommunicate OK [10:03:23]wFMCommunicate request_size=255 [10:03:23]MH_SAM_APDU [10:03:23]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 EE 1C F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 0B A8 01 [10:03:23]Write to MH i2c: E2 02 01 3E 29 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 EE 1C F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 0B A8 01 00 00 BB [10:03:23]Write i2c OK [10:03:23]MH_I2C_Read... [10:03:23]OFD Sender: No OFD packet to send [10:03:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:23]Read from MH i2c: E2 [10:03:23]MH_I2C_Read... [10:03:23]Read from MH i2c: E2 03 00 [10:03:23]MH_I2C_Read... [10:03:23]Read from MH i2c: E2 03 00 3E 29 00 90 00 DB [10:03:23]RAPDU: 90 00 [10:03:23]wFMCommunicate OK [10:03:23]wFMCommunicate request_size=16 [10:03:23]MH_SAM_APDU [10:03:23]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 56 BD 52 FE 4C 95 [10:03:23]Write to MH i2c: E2 13 00 3F 29 80 0D 02 02 0B 00 00 35 04 06 00 56 BD 52 FE 4C 95 00 00 7B [10:03:23]Write i2c OK [10:03:23]MH_I2C_Read... [10:03:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:23]Read from MH i2c: E2 [10:03:23]MH_I2C_Read... [10:03:23]Read from MH i2c: E2 03 00 [10:03:23]MH_I2C_Read... [10:03:23]Read from MH i2c: E2 03 00 3F 29 00 90 00 DC [10:03:23]RAPDU: 90 00 [10:03:23]wFMCommunicate OK [10:03:23]wFMCommunicate request_size=4 [10:03:23]MH_SAM_APDU [10:03:23]CAPDU: 80 0D 03 02 [10:03:23]Write to MH i2c: E2 08 00 40 29 80 0D 03 02 00 00 00 00 E4 [10:03:23]Write i2c OK [10:03:23]MH_I2C_Read... [10:03:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:03:23]Read from MH i2c: E2 [10:03:23]MH_I2C_Read... [10:03:23]Read from MH i2c: E2 0B 00 [10:03:23]MH_I2C_Read... [10:03:23]Read from MH i2c: E2 0B 00 40 29 00 77 82 A6 7A 1E AD A8 BF 90 00 30 [10:03:23]RAPDU: 77 82 A6 7A 1E AD A8 BF 90 00 [10:03:23]wFMCommunicate OK [10:03:23]SAM_PROTO_SignData done [10:03:23]FM_MakeSignedData done [10:03:23]CreateOFDProtocolMessage [10:03:23]wFMCommunicate request_size=4 [10:03:23]MH_SAM_APDU [10:03:23]CAPDU: 80 11 00 00 [10:03:23]Write to MH i2c: E2 08 00 41 29 80 11 00 00 00 00 00 00 E4 [10:03:23]Write i2c OK [10:03:23]MH_I2C_Read... [10:03:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:23]Read from MH i2c: E2 [10:03:23]MH_I2C_Read... [10:03:23]Read from MH i2c: E2 17 00 [10:03:23]MH_I2C_Read... [10:03:23]Read from MH i2c: E2 17 00 41 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 38 [10:03:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:03:23]wFMCommunicate OK [10:03:23]CreateOFDProtocolMessage done [10:03:23]OFDSenderStorePacket 108555 [10:03:23]StoreOFDPacket docnum=108555 [10:03:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 15 01 00 00 CF AE 0D 01 3D DA 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 EE 1C F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 0B A8 01 00 35 04 06 00 56 BD 52 FE 4C 95 77 82 A6 7A 1E AD A8 BF [10:03:23]CheckFolder [10:03:23]dirname=/storage/ofd_packets [10:03:23]CheckFolder done [10:03:23]ProducePacketName [10:03:23]name=ofd_packets/00108555 [10:03:23]NVStorageSaveData ofd_packets/00108555 [10:03:23]File name is /storage/ofd_packets/00108555 [10:03:23]Write 307 bytes [10:03:23]NVStorageSaveData done [10:03:23]OFDSenderStorePacket done [10:03:23]KKMCreateOFDPacket done [10:03:23]NVStorageSaveData kkm_last_timestamp [10:03:23]File name is /storage/kkm_last_timestamp [10:03:23]Write 4 bytes [10:03:23]NVStorageSaveData done [10:03:23]ExternCall_PrintAddStr [10:03:23]wPrintStart [10:03:23]Write to MH i2c: 01 00 00 42 29 6B [10:03:23]Write i2c OK [10:03:23]MH_I2C_Read... [10:03:23]Read from MH i2c: 01 [10:03:23]MH_I2C_Read... [10:03:23]Read from MH i2c: 01 07 00 [10:03:23]MH_I2C_Read... [10:03:23]Read from MH i2c: 01 07 00 42 29 00 00 00 00 00 FF 0F 80 [10:03:23]RasterBufferAndPrint [10:03:23]line Счет N : (1)1040728 [10:03:23]line ИНН: 02508201610067 [10:03:23]line Контрольно-Кассовый Чек [10:03:23]line ПРОДАЖА [10:03:23]line ТРК (МРК, ГНК) : 1 [10:03:23]line Товар: 2710194210 [10:03:23]line D-ENERGY ДТ-К-5 [10:03:23]line 20.870 * 71.90 [10:03:23]line = 1500.55 [10:03:23]line НДС 12% НСП 1% [10:03:23]line > о реализуемом товаре [10:03:23]line ОКРУГЛЕНИЕ: -0.55 [10:03:23]line ИТОГО: 1500.00 [10:03:23]line Внесено: 1500.00 [10:03:23]line СДАЧА: 0.00 [10:03:23]line НСП 1% : 13.28 [10:03:23]line НДС 12% : 159.35 [10:03:23]line Наличными: 1500.00 [10:03:23]line Безнал.: 0.00 [10:03:23]line Место: АЗС № 15 "Партнер Нефть" [10:03:23]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [10:03:23]line СНО: Общий режим [10:03:23]line Чек 78 15.03.2024 10:03 [10:03:23]line Смена: 320 ФФД: 1.0 [10:03:23]line ЗНМ: 0300000266 [10:03:23]line РНМ: 0000000000091911 [10:03:23]line Версия ККМ: 001 [10:03:23]line ФМ: 0000000000871818 [10:03:23]line ФД: 108555 [10:03:23]line ФПД: 95371141205141 [10:03:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T100326&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108555&fm=95371141205141&tin=02508201610067®Number=0000000000091911&sum=150000 [10:03:24]OFD Sender: Processing packet 108555 [packets to send 29, broken 28] [10:03:24]ProducePacketName [10:03:24]name=ofd_packets/00108555 [10:03:24]OFD Sender: To server: pG, [10:03:24]CommunicateWithHost lk.salyk.kg:30040 [10:03:24]ConnectInit lk.salyk.kg [10:03:24]written 0, free lines is 4095 [10:03:24]Connected sock=10 [10:03:24]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 31 38 15 01 00 00 CF AE 0D 01 3D DA 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 EE 1C F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 0B A8 01 00 35 04 06 00 56 BD 52 FE 4C 95 77 82 A6 7A 1E AD A8 BF [10:03:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 4F 00 00 00 6B 5B 47 00 17 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 0B A8 01 00 F4 03 04 00 8E C8 F3 65 B6 04 01 00 00 3A 6E 90 34 20 9F 61 24 [10:03:24]CommunicateWithHost err = 0 [10:03:24]CheckOFDResponse [10:03:24]1017 (14) - 77093643461234 [10:03:24]1041 (16) - 0000000000871818 [10:03:24]1040 (4) - 108555 [10:03:24]1012 (4) - 15.03.2024 04:03 [10:03:24]1206 (1) - 0 [10:03:24]OFD Sender: Remove packet 108555 [10:03:24]ProducePacketName [10:03:24]name=ofd_packets/00108555 [10:03:24]NVStorageDeleteData [10:03:24]Write to MH i2c: 01 00 00 6D 29 96 [10:03:24]Write i2c OK [10:03:24]MH_I2C_Read... [10:03:24]Read from MH i2c: 01 [10:03:24]MH_I2C_Read... [10:03:24]Read from MH i2c: 01 07 00 [10:03:24]MH_I2C_Read... [10:03:24]Read from MH i2c: 01 07 00 6D 29 00 00 00 00 00 E2 0C 8B [10:03:24]RasterBufferAndPrint [10:03:24]line [10:03:24]line [10:03:24]line [10:03:24]line [10:03:24]line [10:03:24]written 0, free lines is 3304 [10:03:24]MH_Cut [10:03:24]Write to MH i2c: D1 01 00 74 29 01 6F [10:03:24]Write i2c OK [10:03:24]MH_I2C_Read... [10:03:24]Read from MH i2c: D1 [10:03:24]MH_I2C_Read... [10:03:24]Read from MH i2c: D1 01 00 [10:03:24]MH_I2C_Read... [10:03:24]Read from MH i2c: D1 01 00 74 29 00 6E [10:03:24]Write to MH i2c: 01 00 00 75 29 9E [10:03:24]Write i2c OK [10:03:24]MH_I2C_Read... [10:03:25]OFD Sender: No OFD packet to send [10:03:25]*** Cut start [10:03:25]*** Purtial cut [10:03:25]*** Stage 1: CUTSNS_PIN = 1 [10:03:25]Read from MH i2c: 01 [10:03:25]MH_I2C_Read... [10:03:25]*** Stop cut motor [10:03:25]*** Cut end [10:03:25]Read from MH i2c: 01 07 00 [10:03:25]MH_I2C_Read... [10:03:25]Read from MH i2c: 01 07 00 75 29 00 00 00 00 00 FF 0F B3 [10:03:25]process_action close_receipt done [10:03:25]requested_data is exist [10:03:25]produce_requested_data [10:03:25]requested_item fm.sn is exist - process it [10:03:25]wFMCommunicate request_size=4 [10:03:25]MH_SAM_APDU [10:03:25]CAPDU: 80 11 00 00 [10:03:25]Write to MH i2c: E2 08 00 76 29 80 11 00 00 00 00 00 00 19 [10:03:25]Write i2c OK [10:03:25]MH_I2C_Read... [10:03:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:25]Read from MH i2c: E2 [10:03:25]MH_I2C_Read... [10:03:25]Read from MH i2c: E2 17 00 [10:03:25]MH_I2C_Read... [10:03:25]Read from MH i2c: E2 17 00 76 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 6D [10:03:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:03:25]wFMCommunicate OK [10:03:25]requested_item fd.num is exist - process it [10:03:25]SAM_PROTO_GetFieldsCounters [10:03:25]wFMCommunicate request_size=4 [10:03:25]MH_SAM_APDU [10:03:25]CAPDU: 80 13 00 00 [10:03:25]Write to MH i2c: E2 08 00 77 29 80 13 00 00 00 00 00 00 1C [10:03:25]Write i2c OK [10:03:25]MH_I2C_Read... [10:03:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:03:25]Read from MH i2c: E2 [10:03:25]MH_I2C_Read... [10:03:25]Read from MH i2c: E2 62 00 [10:03:25]MH_I2C_Read... [10:03:25]Read from MH i2c: E2 62 00 77 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 0B A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [10:03: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 0B A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:03:26]wFMCommunicate OK [10:03:26]SAM_PROTO_GetFieldsCounters done [10:03:26]requested_item shift.num is exist - process it [10:03:26]requested_item shift.opened is exist - process it [10:03:26]req_shift_opened [10:03:26]FM_GetShiftState [10:03:26]SAM_PROTO_GetShiftState [10:03:26]wFMCommunicate request_size=4 [10:03:26]MH_SAM_APDU [10:03:26]CAPDU: 80 13 01 00 [10:03:26]Write to MH i2c: E2 08 00 78 29 80 13 01 00 00 00 00 00 1E [10:03:26]Write i2c OK [10:03:26]MH_I2C_Read... [10:03:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:26]Read from MH i2c: E2 [10:03:26]MH_I2C_Read... [10:03:26]Read from MH i2c: E2 0E 00 [10:03:26]MH_I2C_Read... [10:03:26]Read from MH i2c: E2 0E 00 78 29 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 52 [10:03:26]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:03:26]wFMCommunicate OK [10:03:26]SAM_PROTO_GetShiftState done [10:03:26]FM_GetShiftState done [10:03:26]req_shift_opened done [10:03:26]requested_item shift.open_date is exist - process it [10:03:26]req_shift_open_date [10:03:26]req_shift_open_date done [10:03:26]produce_requested_data done [10:03:26]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108555,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [10:03:26]process_action_free close_receipt [10:03:26]json_value_free [10:03:26]json_value_free done [10:03:26]process_json_proto returns [10:03:26]Send response to host [10:03:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108555,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [10:03:26]free response buf [10:03:26]execute_script done [10:03:26]execute_script returns [10:03:26]free content buf [10:03:26]Sock 8.Close socket [10:03:26]Sock 8.Thread stoped [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:15]OFD Sender: No OFD packet to send [10:10:20]OFD Sender: No OFD packet to send [10:10:25]OFD Sender: No OFD packet to send [10:10:30]OFD Sender: No OFD packet to send [10:10:35]OFD Sender: No OFD packet to send [10:10:40]OFD Sender: No OFD packet to send [10:10:45]OFD Sender: No OFD packet to send [10:10:50]OFD Sender: No OFD packet to send [10:10:55]OFD Sender: No OFD packet to send [10:11:00]OFD Sender: No OFD packet to send [10:11:05]OFD Sender: No OFD packet to send [10:11:10]OFD Sender: No OFD packet to send [10:11:15]OFD Sender: No OFD packet to send [10:11:20]OFD Sender: No OFD packet to send [10:11:25]OFD Sender: No OFD packet to send [10:11:30]OFD Sender: No OFD packet to send [10:11:35]OFD Sender: No OFD packet to send [10:11:40]OFD Sender: No OFD packet to send [10:11:41]accept exits with 9 [10:11:41]New connection [10:11:41]New thread 3067342180 created [10:11:41] Sock 9.Parse request [10:11:41]Thread 3067198820 joined [10:11:41]Sock 9.Check first char [10:11:41]Waiting for new connection... [10:11:41]Sock 9.First char is OK [10:11:41]request: POST /json_proto HTTP/1.0 [10:11:41]Method: POST [10:11:41]URL: /json_proto [10:11:41]Method is POST - this is cgi request [10:11:41]url: /json_proto [10:11:41]query_string will be loaded in cgi processing [10:11:41]execute_cgi json_proto POST (null) [10:11:41]execute_cgi path=json_proto method=POST [10:11:41]POST find Content-Length [10:11:41]Host: 172.17.32.69:8080 [10:11:41]Content-Length: 678 [10:11:41]Content-Type: application/json [10:11:41] [10:11:41]POST finish read [10:11:41]Found Content-Length = 678 [10:11:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 3.240, "sum" : 200.56, "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" ] } } [10:11:41]execute_script... [10:11: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)1040730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 3.240, "sum" : 200.56, "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" ] } } [10:11:41]POST & json_proto [10:11:41]process_json_proto [10:11:41]json parsed OK: [10:11:41]protocol is kg_v1.0 [10:11:41]action value=close_receipt [10:11:41]process_action close_receipt [10:11:41]cmd_close_receipt [10:11:41]MH_GetDate [10:11:41]Write to MH i2c: F0 00 00 79 29 91 [10:11:41]Write i2c OK [10:11:41]MH_I2C_Read... [10:11:41]Read from MH i2c: F0 [10:11:41]MH_I2C_Read... [10:11:41]Read from MH i2c: F0 09 00 [10:11:41]MH_I2C_Read... [10:11:41]Read from MH i2c: F0 09 00 79 29 00 E1 1E F4 65 D5 0F D3 65 0E [10:11:41]GetLastDocTimeStamp 1710497006 [10:11:41]current date 1710497505 [10:11:41]FM_GetShiftState [10:11:41]SAM_PROTO_GetShiftState [10:11:41]wFMCommunicate request_size=4 [10:11:41]MH_SAM_APDU [10:11:41]CAPDU: 80 13 01 00 [10:11:41]Write to MH i2c: E2 08 00 7A 29 80 13 01 00 00 00 00 00 20 [10:11:41]Write i2c OK [10:11:41]MH_I2C_Read... [10:11:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:41]Read from MH i2c: E2 [10:11:41]MH_I2C_Read... [10:11:41]Read from MH i2c: E2 0E 00 [10:11:41]MH_I2C_Read... [10:11:41]Read from MH i2c: E2 0E 00 7A 29 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 54 [10:11:41]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:11:41]wFMCommunicate OK [10:11:41]SAM_PROTO_GetShiftState done [10:11:41]FM_GetShiftState done [10:11:41]opened in 1710461757 [10:11:41]opened+sec_in_day 1710548157 [10:11:41]quantity*price = 20055 [10:11:41]sum+1 = 20057 [10:11:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 79 15.03.2024 10:11 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108556 ФПД: 5166693217638 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T101145&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108556&fm=5166693217638&tin=02508201610067®Number=0000000000091911&sum=20000 [10:11:42]StoreToDocumentArchive [10:11:42]shift 320 fd 108556 [10:11:42]save to /storage/0320/doc_00108556 [10:11:42]save last doc name /storage/0320/doc_00108556 to /storage/kkm_last_doc_name [10:11:42]save OK [10:11:42]Clear old archive folders... [10:11:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:11:42]tlvbuf is 000EECC0 [10:11:42]SAM_PROTO_ClearQueue [10:11:42]wFMCommunicate request_size=4 [10:11:42]MH_SAM_APDU [10:11:42]CAPDU: 80 09 00 00 [10:11:42]Write to MH i2c: E2 08 00 87 29 80 09 00 00 00 00 00 00 22 [10:11:42]Write i2c OK [10:11:42]MH_I2C_Read... [10:11:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:42]Read from MH i2c: E2 [10:11:42]MH_I2C_Read... [10:11:42]Read from MH i2c: E2 03 00 [10:11:42]MH_I2C_Read... [10:11:42]Read from MH i2c: E2 03 00 87 29 00 90 00 24 [10:11:42]RAPDU: 90 00 [10:11:42]wFMCommunicate OK [10:11:42]SAM_PROTO_ClearQueue done [10:11:42]KKMCreateOFDPacket [10:11:42]OFDProtocolAddRootSTLVToBuf [10:11:42]FM_MakeSignedData [10:11:42]FM_MakeSignedData [10:11:42]SAM_PROTO_SignData [10:11:42]wFMCommunicate request_size=4 [10:11:42]MH_SAM_APDU [10:11:42]CAPDU: 80 0D 01 02 [10:11:42]Write to MH i2c: E2 08 00 88 29 80 0D 01 02 00 00 00 00 2A [10:11:42]Write i2c OK [10:11:42]MH_I2C_Read... [10:11:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:43]Read from MH i2c: E2 [10:11:43]MH_I2C_Read... [10:11:43]Read from MH i2c: E2 03 00 [10:11:43]MH_I2C_Read... [10:11:43]Read from MH i2c: E2 03 00 88 29 00 90 00 25 [10:11:43]RAPDU: 90 00 [10:11:43]wFMCommunicate OK [10:11:43]wFMCommunicate request_size=255 [10:11:43]MH_SAM_APDU [10:11:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 4F 00 00 00 F4 03 04 00 E1 1E F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 0C A8 01 00 35 04 06 00 04 [10:11:43]Write to MH i2c: E2 02 01 89 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 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 4F 00 00 00 F4 03 04 00 E1 1E F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 0C A8 01 00 35 04 06 00 04 00 00 59 [10:11:43]Write i2c OK [10:11:43]MH_I2C_Read... [10:11:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:43]Read from MH i2c: E2 [10:11:43]MH_I2C_Read... [10:11:43]Read from MH i2c: E2 03 00 [10:11:43]MH_I2C_Read... [10:11:43]Read from MH i2c: E2 03 00 89 29 00 90 00 26 [10:11:43]RAPDU: 90 00 [10:11:43]wFMCommunicate OK [10:11:43]wFMCommunicate request_size=10 [10:11:43]MH_SAM_APDU [10:11:43]CAPDU: 80 0D 02 02 05 B2 F6 E9 F5 66 [10:11:43]Write to MH i2c: E2 0D 00 8A 29 80 0D 02 02 05 00 B2 F6 E9 F5 66 00 00 23 [10:11:43]Write i2c OK [10:11:43]MH_I2C_Read... [10:11:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:43]Read from MH i2c: E2 [10:11:43]MH_I2C_Read... [10:11:43]Read from MH i2c: E2 03 00 [10:11:43]MH_I2C_Read... [10:11:43]Read from MH i2c: E2 03 00 8A 29 00 90 00 27 [10:11:43]RAPDU: 90 00 [10:11:43]wFMCommunicate OK [10:11:43]wFMCommunicate request_size=4 [10:11:43]MH_SAM_APDU [10:11:43]CAPDU: 80 0D 03 02 [10:11:43]Write to MH i2c: E2 08 00 8B 29 80 0D 03 02 00 00 00 00 2F [10:11:43]Write i2c OK [10:11:43]MH_I2C_Read... [10:11:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:43]Read from MH i2c: E2 [10:11:43]MH_I2C_Read... [10:11:43]Read from MH i2c: E2 0B 00 [10:11:43]MH_I2C_Read... [10:11:43]Read from MH i2c: E2 0B 00 8B 29 00 08 93 9A DD 3D 95 61 18 90 00 8D [10:11:43]RAPDU: 08 93 9A DD 3D 95 61 18 90 00 [10:11:43]wFMCommunicate OK [10:11:43]SAM_PROTO_SignData done [10:11:43]FM_MakeSignedData done [10:11:43]CreateOFDProtocolMessage [10:11:43]wFMCommunicate request_size=4 [10:11:43]MH_SAM_APDU [10:11:43]CAPDU: 80 11 00 00 [10:11:43]Write to MH i2c: E2 08 00 8C 29 80 11 00 00 00 00 00 00 2F [10:11:43]Write i2c OK [10:11:43]MH_I2C_Read... [10:11:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:43]Read from MH i2c: E2 [10:11:43]MH_I2C_Read... [10:11:43]Read from MH i2c: E2 17 00 [10:11:43]MH_I2C_Read... [10:11:43]Read from MH i2c: E2 17 00 8C 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 83 [10:11:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:11:43]wFMCommunicate OK [10:11:43]CreateOFDProtocolMessage done [10:11:43]OFDSenderStorePacket 108556 [10:11:43]StoreOFDPacket docnum=108556 [10:11:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 F0 60 07 01 56 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 4F 00 00 00 F4 03 04 00 E1 1E F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 0C A8 01 00 35 04 06 00 04 B2 F6 E9 F5 66 08 93 9A DD 3D 95 61 18 [10:11:43]CheckFolder [10:11:43]dirname=/storage/ofd_packets [10:11:43]CheckFolder done [10:11:43]ProducePacketName [10:11:43]name=ofd_packets/00108556 [10:11:43]NVStorageSaveData ofd_packets/00108556 [10:11:43]File name is /storage/ofd_packets/00108556 [10:11:43]Write 301 bytes [10:11:43]NVStorageSaveData done [10:11:43]OFDSenderStorePacket done [10:11:43]KKMCreateOFDPacket done [10:11:43]NVStorageSaveData kkm_last_timestamp [10:11:43]File name is /storage/kkm_last_timestamp [10:11:43]Write 4 bytes [10:11:43]NVStorageSaveData done [10:11:43]ExternCall_PrintAddStr [10:11:43]wPrintStart [10:11:43]Write to MH i2c: 01 00 00 8D 29 B6 [10:11:43]Write i2c OK [10:11:43]MH_I2C_Read... [10:11:43]Read from MH i2c: 01 [10:11:43]MH_I2C_Read... [10:11:43]Read from MH i2c: 01 07 00 [10:11:43]MH_I2C_Read... [10:11:43]Read from MH i2c: 01 07 00 8D 29 00 00 00 00 00 FF 0F CB [10:11:43]RasterBufferAndPrint [10:11:43]line Счет N : (1)1040730 [10:11:43]line ИНН: 02508201610067 [10:11:43]line Контрольно-Кассовый Чек [10:11:43]line ПРОДАЖА [10:11:43]line ТРК (МРК, ГНК) : 33 [10:11:43]line Товар: 2710124130 [10:11:43]line Аи-92-К-5 [10:11:43]line 3.240 * 61.90 [10:11:43]line = 200.56 [10:11:43]line НДС 12% НСП 1% [10:11:43]line > о реализуемом товаре [10:11:43]line ОКРУГЛЕНИЕ: -0.56 [10:11:43]line ИТОГО: 200.00 [10:11:43]line Внесено: 200.00 [10:11:43]line СДАЧА: 0.00 [10:11:43]line НСП 1% : 1.77 [10:11:43]line НДС 12% : 21.30 [10:11:43]line Наличными: 200.00 [10:11:43]line Безнал.: 0.00 [10:11:43]line Место: АЗС № 15 "Партнер Нефть" [10:11:43]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [10:11:43]line СНО: Общий режим [10:11:43]line Чек 79 15.03.2024 10:11 [10:11:43]line Смена: 320 ФФД: 1.0 [10:11:43]line ЗНМ: 0300000266 [10:11:43]line РНМ: 0000000000091911 [10:11:43]line Версия ККМ: 001 [10:11:43]line ФМ: 0000000000871818 [10:11:43]line ФД: 108556 [10:11:43]line ФПД: 5166693217638 [10:11:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T101145&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108556&fm=5166693217638&tin=02508201610067®Number=0000000000091911&sum=20000 [10:11:43]OFD Sender: Processing packet 108556 [packets to send 29, broken 28] [10:11:43]ProducePacketName [10:11:43]name=ofd_packets/00108556 [10:11:43]OFD Sender: To server: pG, [10:11:43]CommunicateWithHost lk.salyk.kg:30040 [10:11:43]ConnectInit lk.salyk.kg [10:11:43]written 0, free lines is 4095 [10:11:43]Connected sock=10 [10:11: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 31 38 0F 01 00 00 F0 60 07 01 56 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 4F 00 00 00 F4 03 04 00 E1 1E F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 0C A8 01 00 35 04 06 00 04 B2 F6 E9 F5 66 08 93 9A DD 3D 95 61 18 [10:11: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 31 38 4F 00 00 00 6F C5 47 00 45 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 0C A8 01 00 F4 03 04 00 81 CA F3 65 B6 04 01 00 00 9E F8 5C 58 5B 8F 09 A9 [10:11:44]CommunicateWithHost err = 0 [10:11:44]CheckOFDResponse [10:11:44]1017 (14) - 77093643461234 [10:11:44]1041 (16) - 0000000000871818 [10:11:44]1040 (4) - 108556 [10:11:44]1012 (4) - 15.03.2024 04:11 [10:11:44]1206 (1) - 0 [10:11:44]OFD Sender: Remove packet 108556 [10:11:44]ProducePacketName [10:11:44]name=ofd_packets/00108556 [10:11:44]NVStorageDeleteData [10:11:44]Write to MH i2c: 01 00 00 B8 29 E1 [10:11:44]Write i2c OK [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: 01 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: 01 07 00 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: 01 07 00 B8 29 00 00 00 00 00 CD 0C C1 [10:11:44]RasterBufferAndPrint [10:11:44]line [10:11:44]line [10:11:44]line [10:11:44]line [10:11:44]line [10:11:44]written 0, free lines is 3284 [10:11:44]MH_Cut [10:11:44]Write to MH i2c: D1 01 00 BF 29 01 BA [10:11:44]Write i2c OK [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: D1 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: D1 01 00 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: D1 01 00 BF 29 00 B9 [10:11:44]Write to MH i2c: 01 00 00 C0 29 E9 [10:11:44]Write i2c OK [10:11:44]MH_I2C_Read... [10:11:44]OFD Sender: No OFD packet to send [10:11:45]*** Cut start [10:11:45]*** Purtial cut [10:11:45]*** Stage 1: CUTSNS_PIN = 1 [10:11:45]Read from MH i2c: 01 [10:11:45]MH_I2C_Read... [10:11:45]*** Stop cut motor [10:11:45]*** Cut end [10:11:45]Read from MH i2c: 01 07 00 [10:11:45]MH_I2C_Read... [10:11:45]Read from MH i2c: 01 07 00 C0 29 00 00 00 00 00 FF 0F FE [10:11:45]process_action close_receipt done [10:11:45]requested_data is exist [10:11:45]produce_requested_data [10:11:45]requested_item fm.sn is exist - process it [10:11:45]wFMCommunicate request_size=4 [10:11:45]MH_SAM_APDU [10:11:45]CAPDU: 80 11 00 00 [10:11:45]Write to MH i2c: E2 08 00 C1 29 80 11 00 00 00 00 00 00 64 [10:11:45]Write i2c OK [10:11:45]MH_I2C_Read... [10:11:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:45]Read from MH i2c: E2 [10:11:45]MH_I2C_Read... [10:11:45]Read from MH i2c: E2 17 00 [10:11:45]MH_I2C_Read... [10:11:45]Read from MH i2c: E2 17 00 C1 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 B8 [10:11:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:11:45]wFMCommunicate OK [10:11:45]requested_item fd.num is exist - process it [10:11:45]SAM_PROTO_GetFieldsCounters [10:11:45]wFMCommunicate request_size=4 [10:11:45]MH_SAM_APDU [10:11:45]CAPDU: 80 13 00 00 [10:11:45]Write to MH i2c: E2 08 00 C2 29 80 13 00 00 00 00 00 00 67 [10:11:45]Write i2c OK [10:11:45]MH_I2C_Read... [10:11:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:45]Read from MH i2c: E2 [10:11:45]MH_I2C_Read... [10:11:45]Read from MH i2c: E2 62 00 [10:11:45]MH_I2C_Read... [10:11:45]Read from MH i2c: E2 62 00 C2 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 0C A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [10:11: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 0C A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:11:45]wFMCommunicate OK [10:11:45]SAM_PROTO_GetFieldsCounters done [10:11:45]requested_item shift.num is exist - process it [10:11:45]requested_item shift.opened is exist - process it [10:11:45]req_shift_opened [10:11:45]FM_GetShiftState [10:11:45]SAM_PROTO_GetShiftState [10:11:45]wFMCommunicate request_size=4 [10:11:45]MH_SAM_APDU [10:11:45]CAPDU: 80 13 01 00 [10:11:45]Write to MH i2c: E2 08 00 C3 29 80 13 01 00 00 00 00 00 69 [10:11:45]Write i2c OK [10:11:45]MH_I2C_Read... [10:11:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:45]Read from MH i2c: E2 [10:11:45]MH_I2C_Read... [10:11:45]Read from MH i2c: E2 0E 00 [10:11:45]MH_I2C_Read... [10:11:45]Read from MH i2c: E2 0E 00 C3 29 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 9D [10:11:45]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:11:45]wFMCommunicate OK [10:11:45]SAM_PROTO_GetShiftState done [10:11:45]FM_GetShiftState done [10:11:45]req_shift_opened done [10:11:45]requested_item shift.open_date is exist - process it [10:11:45]req_shift_open_date [10:11:45]req_shift_open_date done [10:11:45]produce_requested_data done [10:11:45]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108556,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [10:11:45]process_action_free close_receipt [10:11:45]json_value_free [10:11:45]json_value_free done [10:11:45]process_json_proto returns [10:11:45]Send response to host [10:11:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108556,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [10:11:45]free response buf [10:11:45]execute_script done [10:11:45]execute_script returns [10:11:45]free content buf [10:11:45]Sock 9.Close socket [10:11:45]Sock 9.Thread stoped [10:11:45]accept exits with 8 [10:11:45]New connection [10:11:45]New thread 3067198820 created [10:11:45]Thread 3067342180 joined [10:11:45]Waiting for new connection... [10:11:45] Sock 8.Parse request [10:11:45]Sock 8.Check first char [10:11:45]Sock 8.First char is OK [10:11:45]request: POST /json_proto HTTP/1.0 [10:11:45]Method: POST [10:11:45]URL: /json_proto [10:11:45]Method is POST - this is cgi request [10:11:45]url: /json_proto [10:11:45]query_string will be loaded in cgi processing [10:11:45]execute_cgi json_proto POST (null) [10:11:45]execute_cgi path=json_proto method=POST [10:11:45]POST find Content-Length [10:11:45]Host: 172.17.32.69:8080 [10:11:45]Content-Length: 678 [10:11:45]Content-Type: application/json [10:11:45] [10:11:45]POST finish read [10:11:45]Found Content-Length = 678 [10:11:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "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:45]execute_script... [10:11: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)1040729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "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:45]POST & json_proto [10:11:45]process_json_proto [10:11:45]json parsed OK: [10:11:45]protocol is kg_v1.0 [10:11:45]action value=close_receipt [10:11:45]process_action close_receipt [10:11:45]cmd_close_receipt [10:11:45]MH_GetDate [10:11:45]Write to MH i2c: F0 00 00 C4 29 DC [10:11:45]Write i2c OK [10:11:45]MH_I2C_Read... [10:11:45]Read from MH i2c: F0 [10:11:45]MH_I2C_Read... [10:11:45]Read from MH i2c: F0 09 00 [10:11:45]MH_I2C_Read... [10:11:45]Read from MH i2c: F0 09 00 C4 29 00 E5 1E F4 65 D5 0F D3 65 5D [10:11:45]GetLastDocTimeStamp 1710497505 [10:11:45]current date 1710497509 [10:11:45]FM_GetShiftState [10:11:45]SAM_PROTO_GetShiftState [10:11:45]wFMCommunicate request_size=4 [10:11:45]MH_SAM_APDU [10:11:45]CAPDU: 80 13 01 00 [10:11:45]Write to MH i2c: E2 08 00 C5 29 80 13 01 00 00 00 00 00 6B [10:11:45]Write i2c OK [10:11:45]MH_I2C_Read... [10:11:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:46]Read from MH i2c: E2 [10:11:46]MH_I2C_Read... [10:11:46]Read from MH i2c: E2 0E 00 [10:11:46]MH_I2C_Read... [10:11:46]Read from MH i2c: E2 0E 00 C5 29 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 9F [10:11:46]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:11:46]wFMCommunicate OK [10:11:46]SAM_PROTO_GetShiftState done [10:11:46]FM_GetShiftState done [10:11:46]opened in 1710461757 [10:11:46]opened+sec_in_day 1710548157 [10:11:46]quantity*price = 50015 [10:11:46]sum+1 = 50016 [10:11:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 80 15.03.2024 10:11 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108557 ФПД: 65149680408261 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T101149&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108557&fm=65149680408261&tin=02508201610067®Number=0000000000091911&sum=50000 [10:11:47]StoreToDocumentArchive [10:11:47]shift 320 fd 108557 [10:11:47]save to /storage/0320/doc_00108557 [10:11:47]save last doc name /storage/0320/doc_00108557 to /storage/kkm_last_doc_name [10:11:47]save OK [10:11:47]Clear old archive folders... [10:11:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:11:47]tlvbuf is 00169D60 [10:11:47]SAM_PROTO_ClearQueue [10:11:47]wFMCommunicate request_size=4 [10:11:47]MH_SAM_APDU [10:11:47]CAPDU: 80 09 00 00 [10:11:47]Write to MH i2c: E2 08 00 D2 29 80 09 00 00 00 00 00 00 6D [10:11:47]Write i2c OK [10:11:47]MH_I2C_Read... [10:11:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:47]Read from MH i2c: E2 [10:11:47]MH_I2C_Read... [10:11:47]Read from MH i2c: E2 03 00 [10:11:47]MH_I2C_Read... [10:11:47]Read from MH i2c: E2 03 00 D2 29 00 90 00 6F [10:11:47]RAPDU: 90 00 [10:11:47]wFMCommunicate OK [10:11:47]SAM_PROTO_ClearQueue done [10:11:47]KKMCreateOFDPacket [10:11:47]OFDProtocolAddRootSTLVToBuf [10:11:47]FM_MakeSignedData [10:11:47]FM_MakeSignedData [10:11:47]SAM_PROTO_SignData [10:11:47]wFMCommunicate request_size=4 [10:11:47]MH_SAM_APDU [10:11:47]CAPDU: 80 0D 01 02 [10:11:47]Write to MH i2c: E2 08 00 D3 29 80 0D 01 02 00 00 00 00 75 [10:11:47]Write i2c OK [10:11:47]MH_I2C_Read... [10:11:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:47]Read from MH i2c: E2 [10:11:47]MH_I2C_Read... [10:11:47]Read from MH i2c: E2 03 00 [10:11:47]MH_I2C_Read... [10:11:47]Read from MH i2c: E2 03 00 D3 29 00 90 00 70 [10:11:47]RAPDU: 90 00 [10:11:47]wFMCommunicate OK [10:11:47]wFMCommunicate request_size=255 [10:11:47]MH_SAM_APDU [10:11:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 E5 1E F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 0D A8 01 00 35 04 06 00 3B [10:11:47]Write to MH i2c: E2 02 01 D4 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 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 E5 1E F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 0D A8 01 00 35 04 06 00 3B 00 00 26 [10:11:47]Write i2c OK [10:11:47]MH_I2C_Read... [10:11:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:47]Read from MH i2c: E2 [10:11:47]MH_I2C_Read... [10:11:47]Read from MH i2c: E2 03 00 [10:11:47]MH_I2C_Read... [10:11:47]Read from MH i2c: E2 03 00 D4 29 00 90 00 71 [10:11:47]RAPDU: 90 00 [10:11:47]wFMCommunicate OK [10:11:47]wFMCommunicate request_size=10 [10:11:47]MH_SAM_APDU [10:11:47]CAPDU: 80 0D 02 02 05 40 D7 8E D6 C5 [10:11:47]Write to MH i2c: E2 0D 00 D5 29 80 0D 02 02 05 00 40 D7 8E D6 C5 00 00 C2 [10:11:47]Write i2c OK [10:11:47]MH_I2C_Read... [10:11:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:47]Read from MH i2c: E2 [10:11:47]MH_I2C_Read... [10:11:47]Read from MH i2c: E2 03 00 [10:11:47]MH_I2C_Read... [10:11:47]Read from MH i2c: E2 03 00 D5 29 00 90 00 72 [10:11:47]RAPDU: 90 00 [10:11:47]wFMCommunicate OK [10:11:47]wFMCommunicate request_size=4 [10:11:47]MH_SAM_APDU [10:11:47]CAPDU: 80 0D 03 02 [10:11:47]Write to MH i2c: E2 08 00 D6 29 80 0D 03 02 00 00 00 00 7A [10:11:47]Write i2c OK [10:11:47]MH_I2C_Read... [10:11:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:47]Read from MH i2c: E2 [10:11:47]MH_I2C_Read... [10:11:47]Read from MH i2c: E2 0B 00 [10:11:47]MH_I2C_Read... [10:11:47]Read from MH i2c: E2 0B 00 D6 29 00 A4 63 4B 15 FC 1C D1 15 90 00 E0 [10:11:47]RAPDU: A4 63 4B 15 FC 1C D1 15 90 00 [10:11:47]wFMCommunicate OK [10:11:47]SAM_PROTO_SignData done [10:11:47]FM_MakeSignedData done [10:11:47]CreateOFDProtocolMessage [10:11:47]wFMCommunicate request_size=4 [10:11:47]MH_SAM_APDU [10:11:47]CAPDU: 80 11 00 00 [10:11:47]Write to MH i2c: E2 08 00 D7 29 80 11 00 00 00 00 00 00 7A [10:11:47]Write i2c OK [10:11:47]MH_I2C_Read... [10:11:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:48]Read from MH i2c: E2 [10:11:48]MH_I2C_Read... [10:11:48]Read from MH i2c: E2 17 00 [10:11:48]MH_I2C_Read... [10:11:48]Read from MH i2c: E2 17 00 D7 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 CE [10:11:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:11:48]wFMCommunicate OK [10:11:48]CreateOFDProtocolMessage done [10:11:48]OFDSenderStorePacket 108557 [10:11:48]StoreOFDPacket docnum=108557 [10:11:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 F9 42 07 01 19 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 E5 1E F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 0D A8 01 00 35 04 06 00 3B 40 D7 8E D6 C5 A4 63 4B 15 FC 1C D1 15 [10:11:48]CheckFolder [10:11:48]dirname=/storage/ofd_packets [10:11:48]CheckFolder done [10:11:48]ProducePacketName [10:11:48]name=ofd_packets/00108557 [10:11:48]NVStorageSaveData ofd_packets/00108557 [10:11:48]File name is /storage/ofd_packets/00108557 [10:11:48]Write 301 bytes [10:11:48]NVStorageSaveData done [10:11:48]OFDSenderStorePacket done [10:11:48]KKMCreateOFDPacket done [10:11:48]NVStorageSaveData kkm_last_timestamp [10:11:48]File name is /storage/kkm_last_timestamp [10:11:48]Write 4 bytes [10:11:48]NVStorageSaveData done [10:11:48]ExternCall_PrintAddStr [10:11:48]wPrintStart [10:11:48]Write to MH i2c: 01 00 00 D8 29 01 [10:11:48]Write i2c OK [10:11:48]MH_I2C_Read... [10:11:48]Read from MH i2c: 01 [10:11:48]MH_I2C_Read... [10:11:48]Read from MH i2c: 01 07 00 [10:11:48]MH_I2C_Read... [10:11:48]Read from MH i2c: 01 07 00 D8 29 00 00 00 00 00 FF 0F 16 [10:11:48]RasterBufferAndPrint [10:11:48]line Счет N : (1)1040729 [10:11:48]line ИНН: 02508201610067 [10:11:48]line Контрольно-Кассовый Чек [10:11:48]line ПРОДАЖА [10:11:48]line ТРК (МРК, ГНК) : 53 [10:11:48]line Товар: 2710124130 [10:11:48]line Аи-92-К-5 [10:11:48]line 8.080 * 61.90 [10:11:48]line = 500.15 [10:11:48]line НДС 12% НСП 1% [10:11:48]line > о реализуемом товаре [10:11:48]line ОКРУГЛЕНИЕ: -0.15 [10:11:48]line ИТОГО: 500.00 [10:11:48]line Внесено: 500.00 [10:11:48]line СДАЧА: 0.00 [10:11:48]line НСП 1% : 4.43 [10:11:48]line НДС 12% : 53.11 [10:11:48]line Наличными: 500.00 [10:11:48]line Безнал.: 0.00 [10:11:48]line Место: АЗС № 15 "Партнер Нефть" [10:11:48]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [10:11:48]line СНО: Общий режим [10:11:48]line Чек 80 15.03.2024 10:11 [10:11:48]line Смена: 320 ФФД: 1.0 [10:11:48]line ЗНМ: 0300000266 [10:11:48]line РНМ: 0000000000091911 [10:11:48]line Версия ККМ: 001 [10:11:48]line ФМ: 0000000000871818 [10:11:48]line ФД: 108557 [10:11:48]line ФПД: 65149680408261 [10:11:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T101149&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108557&fm=65149680408261&tin=02508201610067®Number=0000000000091911&sum=50000 [10:11:48]OFD Sender: Processing packet 108557 [packets to send 29, broken 28] [10:11:48]ProducePacketName [10:11:48]name=ofd_packets/00108557 [10:11:48]OFD Sender: To server: pG, [10:11:48]CommunicateWithHost lk.salyk.kg:30040 [10:11:48]ConnectInit lk.salyk.kg [10:11:48]written 0, free lines is 4095 [10:11:48]Connected sock=10 [10:11: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 31 38 0F 01 00 00 F9 42 07 01 19 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 E5 1E F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 0D A8 01 00 35 04 06 00 3B 40 D7 8E D6 C5 A4 63 4B 15 FC 1C D1 15 [10:11: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 31 38 4F 00 00 00 0A 77 47 00 B9 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 0D A8 01 00 F4 03 04 00 86 CA F3 65 B6 04 01 00 00 1C 80 3A C0 49 22 23 5A [10:11:48]CommunicateWithHost err = 0 [10:11:48]CheckOFDResponse [10:11:48]1017 (14) - 77093643461234 [10:11:48]1041 (16) - 0000000000871818 [10:11:48]1040 (4) - 108557 [10:11:48]1012 (4) - 15.03.2024 04:11 [10:11:48]1206 (1) - 0 [10:11:48]OFD Sender: Remove packet 108557 [10:11:48]ProducePacketName [10:11:48]name=ofd_packets/00108557 [10:11:48]NVStorageDeleteData [10:11:48]Write to MH i2c: 01 00 00 03 2A 2D [10:11:48]Write i2c OK [10:11:48]MH_I2C_Read... [10:11:48]Read from MH i2c: 01 [10:11:48]MH_I2C_Read... [10:11:48]Read from MH i2c: 01 07 00 [10:11:48]MH_I2C_Read... [10:11:48]Read from MH i2c: 01 07 00 03 2A 00 00 00 00 00 D7 0C 17 [10:11:48]RasterBufferAndPrint [10:11:48]line [10:11:48]line [10:11:48]line [10:11:48]line [10:11:48]line [10:11:48]written 0, free lines is 3301 [10:11:48]MH_Cut [10:11:48]Write to MH i2c: D1 01 00 0A 2A 01 06 [10:11:48]Write i2c OK [10:11:48]MH_I2C_Read... [10:11:48]Read from MH i2c: D1 [10:11:48]MH_I2C_Read... [10:11:48]Read from MH i2c: D1 01 00 [10:11:48]MH_I2C_Read... [10:11:48]Read from MH i2c: D1 01 00 0A 2A 00 05 [10:11:48]Write to MH i2c: 01 00 00 0B 2A 35 [10:11:48]Write i2c OK [10:11:48]MH_I2C_Read... [10:11:49]OFD Sender: No OFD packet to send [10:11:49]*** Cut start [10:11:49]*** Purtial cut [10:11:49]*** Stage 1: CUTSNS_PIN = 1 [10:11:49]Read from MH i2c: 01 [10:11:49]MH_I2C_Read... [10:11:49]*** Stop cut motor [10:11:49]*** Cut end [10:11:49]Read from MH i2c: 01 07 00 [10:11:49]MH_I2C_Read... [10:11:49]Read from MH i2c: 01 07 00 0B 2A 00 00 00 00 00 FF 0F 4A [10:11:49]process_action close_receipt done [10:11:49]requested_data is exist [10:11:49]produce_requested_data [10:11:49]requested_item fm.sn is exist - process it [10:11:49]wFMCommunicate request_size=4 [10:11:49]MH_SAM_APDU [10:11:49]CAPDU: 80 11 00 00 [10:11:49]Write to MH i2c: E2 08 00 0C 2A 80 11 00 00 00 00 00 00 B0 [10:11:49]Write i2c OK [10:11:49]MH_I2C_Read... [10:11:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:50]Read from MH i2c: E2 [10:11:50]MH_I2C_Read... [10:11:50]Read from MH i2c: E2 17 00 [10:11:50]MH_I2C_Read... [10:11:50]Read from MH i2c: E2 17 00 0C 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 04 [10:11:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:11:50]wFMCommunicate OK [10:11:50]requested_item fd.num is exist - process it [10:11:50]SAM_PROTO_GetFieldsCounters [10:11:50]wFMCommunicate request_size=4 [10:11:50]MH_SAM_APDU [10:11:50]CAPDU: 80 13 00 00 [10:11:50]Write to MH i2c: E2 08 00 0D 2A 80 13 00 00 00 00 00 00 B3 [10:11:50]Write i2c OK [10:11:50]MH_I2C_Read... [10:11:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:50]Read from MH i2c: E2 [10:11:50]MH_I2C_Read... [10:11:50]Read from MH i2c: E2 62 00 [10:11:50]MH_I2C_Read... [10:11:50]Read from MH i2c: E2 62 00 0D 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 0D A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [10:11: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 0D A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:11:50]wFMCommunicate OK [10:11:50]SAM_PROTO_GetFieldsCounters done [10:11:50]requested_item shift.num is exist - process it [10:11:50]requested_item shift.opened is exist - process it [10:11:50]req_shift_opened [10:11:50]FM_GetShiftState [10:11:50]SAM_PROTO_GetShiftState [10:11:50]wFMCommunicate request_size=4 [10:11:50]MH_SAM_APDU [10:11:50]CAPDU: 80 13 01 00 [10:11:50]Write to MH i2c: E2 08 00 0E 2A 80 13 01 00 00 00 00 00 B5 [10:11:50]Write i2c OK [10:11:50]MH_I2C_Read... [10:11:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:50]Read from MH i2c: E2 [10:11:50]MH_I2C_Read... [10:11:50]Read from MH i2c: E2 0E 00 [10:11:50]MH_I2C_Read... [10:11:50]Read from MH i2c: E2 0E 00 0E 2A 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 E9 [10:11:50]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:11:50]wFMCommunicate OK [10:11:50]SAM_PROTO_GetShiftState done [10:11:50]FM_GetShiftState done [10:11:50]req_shift_opened done [10:11:50]requested_item shift.open_date is exist - process it [10:11:50]req_shift_open_date [10:11:50]req_shift_open_date done [10:11:50]produce_requested_data done [10:11:50]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108557,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [10:11:50]process_action_free close_receipt [10:11:50]json_value_free [10:11:50]json_value_free done [10:11:50]process_json_proto returns [10:11:50]Send response to host [10:11:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108557,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [10:11:50]free response buf [10:11:50]execute_script done [10:11:50]execute_script returns [10:11:50]free content buf [10:11:50]Sock 8.Close socket [10:11:50]Sock 8.Thread stoped [10:11:54]OFD Sender: No OFD packet to send [10:11:59]OFD Sender: No OFD packet to send [10:12:04]OFD Sender: No OFD packet to send [10:12:09]OFD Sender: No OFD packet to send [10:12:13]accept exits with 9 [10:12:13]New connection [10:12:13]New thread 3067342180 created [10:12:13]Thread 3067198820 joined [10:12:13]Waiting for new connection... [10:12:13] Sock 9.Parse request [10:12:13]Sock 9.Check first char [10:12:13]Sock 9.First char is OK [10:12:13]request: POST /json_proto HTTP/1.0 [10:12:13]Method: POST [10:12:13]URL: /json_proto [10:12:13]Method is POST - this is cgi request [10:12:13]url: /json_proto [10:12:13]query_string will be loaded in cgi processing [10:12:13]execute_cgi json_proto POST (null) [10:12:13]execute_cgi path=json_proto method=POST [10:12:13]POST find Content-Length [10:12:13]Host: 172.17.32.69:8080 [10:12:13]Content-Length: 688 [10:12:13]Content-Type: application/json [10:12:13] [10:12:13]POST finish read [10:12:13]Found Content-Length = 688 [10:12:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:13]execute_script... [10:12:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:13]POST & json_proto [10:12:13]process_json_proto [10:12:13]json parsed OK: [10:12:13]protocol is kg_v1.0 [10:12:13]action value=close_receipt [10:12:13]process_action close_receipt [10:12:13]cmd_close_receipt [10:12:13]MH_GetDate [10:12:13]Write to MH i2c: F0 00 00 0F 2A 28 [10:12:13]Write i2c OK [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: F0 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: F0 09 00 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: F0 09 00 0F 2A 00 00 1F F4 65 D5 0F D3 65 C5 [10:12:13]GetLastDocTimeStamp 1710497509 [10:12:13]current date 1710497536 [10:12:13]FM_GetShiftState [10:12:13]SAM_PROTO_GetShiftState [10:12:13]wFMCommunicate request_size=4 [10:12:13]MH_SAM_APDU [10:12:13]CAPDU: 80 13 01 00 [10:12:13]Write to MH i2c: E2 08 00 10 2A 80 13 01 00 00 00 00 00 B7 [10:12:13]Write i2c OK [10:12:13]MH_I2C_Read... [10:12:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:13]Read from MH i2c: E2 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: E2 0E 00 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: E2 0E 00 10 2A 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 EB [10:12:13]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:12:13]wFMCommunicate OK [10:12:13]SAM_PROTO_GetShiftState done [10:12:13]FM_GetShiftState done [10:12:13]opened in 1710461757 [10:12:13]opened+sec_in_day 1710548157 [10:12:13]quantity*price = 200025 [10:12:13]sum+1 = 200027 [10:12:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 81 15.03.2024 10:12 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108558 ФПД: 186966490512370 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T101216&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108558&fm=186966490512370&tin=02508201610067®Number=0000000000091911&sum=200000 [10:12:14]StoreToDocumentArchive [10:12:14]shift 320 fd 108558 [10:12:14]save to /storage/0320/doc_00108558 [10:12:14]save last doc name /storage/0320/doc_00108558 to /storage/kkm_last_doc_name [10:12:14]save OK [10:12:14]Clear old archive folders... [10:12:14]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:12:14]tlvbuf is 000EAC90 [10:12:14]SAM_PROTO_ClearQueue [10:12:14]wFMCommunicate request_size=4 [10:12:14]MH_SAM_APDU [10:12:14]CAPDU: 80 09 00 00 [10:12:14]Write to MH i2c: E2 08 00 1D 2A 80 09 00 00 00 00 00 00 B9 [10:12:14]Write i2c OK [10:12:14]MH_I2C_Read... [10:12:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:14]Read from MH i2c: E2 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: E2 03 00 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: E2 03 00 1D 2A 00 90 00 BB [10:12:14]RAPDU: 90 00 [10:12:14]wFMCommunicate OK [10:12:14]SAM_PROTO_ClearQueue done [10:12:14]KKMCreateOFDPacket [10:12:14]OFDProtocolAddRootSTLVToBuf [10:12:14]FM_MakeSignedData [10:12:14]FM_MakeSignedData [10:12:14]SAM_PROTO_SignData [10:12:14]wFMCommunicate request_size=4 [10:12:14]MH_SAM_APDU [10:12:14]CAPDU: 80 0D 01 02 [10:12:14]Write to MH i2c: E2 08 00 1E 2A 80 0D 01 02 00 00 00 00 C1 [10:12:14]Write i2c OK [10:12:14]MH_I2C_Read... [10:12:14]OFD Sender: No OFD packet to send [10:12:14]Read from MH i2c: E2 [10:12:14]MH_I2C_Read... [10:12:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:14]Read from MH i2c: E2 03 00 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: E2 03 00 1E 2A 00 90 00 BC [10:12:14]RAPDU: 90 00 [10:12:14]wFMCommunicate OK [10:12:14]wFMCommunicate request_size=255 [10:12:14]MH_SAM_APDU [10:12:14]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 00 1F F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 0E A8 01 [10:12:14]Write to MH i2c: E2 02 01 1F 2A 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 00 1F F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 0E A8 01 00 00 A4 [10:12:14]Write i2c OK [10:12:14]MH_I2C_Read... [10:12:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:14]Read from MH i2c: E2 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: E2 03 00 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: E2 03 00 1F 2A 00 90 00 BD [10:12:14]RAPDU: 90 00 [10:12:14]wFMCommunicate OK [10:12:14]wFMCommunicate request_size=16 [10:12:14]MH_SAM_APDU [10:12:14]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 AA 0B 87 40 7B F2 [10:12:14]Write to MH i2c: E2 13 00 20 2A 80 0D 02 02 0B 00 00 35 04 06 00 AA 0B 87 40 7B F2 00 00 02 [10:12:14]Write i2c OK [10:12:14]MH_I2C_Read... [10:12:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:14]Read from MH i2c: E2 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: E2 03 00 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: E2 03 00 20 2A 00 90 00 BE [10:12:14]RAPDU: 90 00 [10:12:14]wFMCommunicate OK [10:12:14]wFMCommunicate request_size=4 [10:12:14]MH_SAM_APDU [10:12:14]CAPDU: 80 0D 03 02 [10:12:14]Write to MH i2c: E2 08 00 21 2A 80 0D 03 02 00 00 00 00 C6 [10:12:14]Write i2c OK [10:12:14]MH_I2C_Read... [10:12:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:14]Read from MH i2c: E2 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: E2 0B 00 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: E2 0B 00 21 2A 00 8C 20 98 C9 B3 61 72 3B 90 00 95 [10:12:14]RAPDU: 8C 20 98 C9 B3 61 72 3B 90 00 [10:12:14]wFMCommunicate OK [10:12:14]SAM_PROTO_SignData done [10:12:14]FM_MakeSignedData done [10:12:14]CreateOFDProtocolMessage [10:12:14]wFMCommunicate request_size=4 [10:12:14]MH_SAM_APDU [10:12:14]CAPDU: 80 11 00 00 [10:12:14]Write to MH i2c: E2 08 00 22 2A 80 11 00 00 00 00 00 00 C6 [10:12:14]Write i2c OK [10:12:14]MH_I2C_Read... [10:12:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:14]Read from MH i2c: E2 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: E2 17 00 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: E2 17 00 22 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 1A [10:12:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:12:14]wFMCommunicate OK [10:12:14]CreateOFDProtocolMessage done [10:12:14]OFDSenderStorePacket 108558 [10:12:14]StoreOFDPacket docnum=108558 [10:12:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 15 01 00 00 5C BA 0D 01 D1 1A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 00 1F F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 0E A8 01 00 35 04 06 00 AA 0B 87 40 7B F2 8C 20 98 C9 B3 61 72 3B [10:12:14]CheckFolder [10:12:14]dirname=/storage/ofd_packets [10:12:14]CheckFolder done [10:12:14]ProducePacketName [10:12:14]name=ofd_packets/00108558 [10:12:14]NVStorageSaveData ofd_packets/00108558 [10:12:14]File name is /storage/ofd_packets/00108558 [10:12:14]Write 307 bytes [10:12:14]NVStorageSaveData done [10:12:14]OFDSenderStorePacket done [10:12:14]KKMCreateOFDPacket done [10:12:14]NVStorageSaveData kkm_last_timestamp [10:12:14]File name is /storage/kkm_last_timestamp [10:12:14]Write 4 bytes [10:12:14]NVStorageSaveData done [10:12:14]ExternCall_PrintAddStr [10:12:14]wPrintStart [10:12:14]Write to MH i2c: 01 00 00 23 2A 4D [10:12:14]Write i2c OK [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: 01 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: 01 07 00 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: 01 07 00 23 2A 00 00 00 00 00 FF 0F 62 [10:12:14]RasterBufferAndPrint [10:12:14]line Счет N : (1)1040731 [10:12:14]line ИНН: 02508201610067 [10:12:14]line Контрольно-Кассовый Чек [10:12:14]line ПРОДАЖА [10:12:14]line ТРК (МРК, ГНК) : 5 [10:12:14]line Товар: 2710194210 [10:12:14]line D-ENERGY ДТ-К-5 [10:12:14]line 27.820 * 71.90 [10:12:14]line = 2000.26 [10:12:14]line НДС 12% НСП 1% [10:12:14]line > о реализуемом товаре [10:12:14]line ОКРУГЛЕНИЕ: -0.26 [10:12:14]line ИТОГО: 2000.00 [10:12:14]line Внесено: 2000.00 [10:12:14]line СДАЧА: 0.00 [10:12:14]line НСП 1% : 17.70 [10:12:14]line НДС 12% : 212.42 [10:12:14]line Наличными: 2000.00 [10:12:14]line Безнал.: 0.00 [10:12:14]line Место: АЗС № 15 "Партнер Нефть" [10:12:14]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [10:12:14]line СНО: Общий режим [10:12:14]line Чек 81 15.03.2024 10:12 [10:12:14]line Смена: 320 ФФД: 1.0 [10:12:14]line ЗНМ: 0300000266 [10:12:14]line РНМ: 0000000000091911 [10:12:14]line Версия ККМ: 001 [10:12:14]line ФМ: 0000000000871818 [10:12:14]line ФД: 108558 [10:12:14]line ФПД: 186966490512370 [10:12:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T101216&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108558&fm=186966490512370&tin=02508201610067®Number=0000000000091911&sum=200000 [10:12:15]OFD Sender: Processing packet 108558 [packets to send 29, broken 28] [10:12:15]ProducePacketName [10:12:15]name=ofd_packets/00108558 [10:12:15]OFD Sender: To server: pG, [10:12:15]CommunicateWithHost lk.salyk.kg:30040 [10:12:15]ConnectInit lk.salyk.kg [10:12:15]written 0, free lines is 4095 [10:12:15]Connected sock=10 [10:12: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 31 38 15 01 00 00 5C BA 0D 01 D1 1A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 00 1F F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 0E A8 01 00 35 04 06 00 AA 0B 87 40 7B F2 8C 20 98 C9 B3 61 72 3B [10:12: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 31 38 4F 00 00 00 49 75 47 00 8D E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 0E A8 01 00 F4 03 04 00 A1 CA F3 65 B6 04 01 00 00 E3 F1 C6 21 D4 A3 6E FA [10:12:15]CommunicateWithHost err = 0 [10:12:15]CheckOFDResponse [10:12:15]1017 (14) - 77093643461234 [10:12:15]1041 (16) - 0000000000871818 [10:12:15]1040 (4) - 108558 [10:12:15]1012 (4) - 15.03.2024 04:12 [10:12:15]1206 (1) - 0 [10:12:15]OFD Sender: Remove packet 108558 [10:12:15]ProducePacketName [10:12:15]name=ofd_packets/00108558 [10:12:15]NVStorageDeleteData [10:12:15]Write to MH i2c: 01 00 00 4E 2A 78 [10:12:15]Write i2c OK [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: 01 [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: 01 07 00 [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: 01 07 00 4E 2A 00 00 00 00 00 D4 0C 5F [10:12:15]RasterBufferAndPrint [10:12:15]line [10:12:15]line [10:12:15]line [10:12:15]line [10:12:15]line [10:12:15]written 0, free lines is 3294 [10:12:15]MH_Cut [10:12:15]Write to MH i2c: D1 01 00 55 2A 01 51 [10:12:15]Write i2c OK [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: D1 [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: D1 01 00 [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: D1 01 00 55 2A 00 50 [10:12:15]Write to MH i2c: 01 00 00 56 2A 80 [10:12:15]Write i2c OK [10:12:15]MH_I2C_Read... [10:12:15]OFD Sender: No OFD packet to send [10:12:16]*** Cut start [10:12:16]*** Purtial cut [10:12:16]*** Stage 1: CUTSNS_PIN = 1 [10:12:16]Read from MH i2c: 01 [10:12:16]MH_I2C_Read... [10:12:16]*** Stop cut motor [10:12:16]*** Cut end [10:12:16]Read from MH i2c: 01 07 00 [10:12:16]MH_I2C_Read... [10:12:16]Read from MH i2c: 01 07 00 56 2A 00 00 00 00 00 FF 0F 95 [10:12:16]process_action close_receipt done [10:12:16]requested_data is exist [10:12:16]produce_requested_data [10:12:16]requested_item fm.sn is exist - process it [10:12:16]wFMCommunicate request_size=4 [10:12:16]MH_SAM_APDU [10:12:16]CAPDU: 80 11 00 00 [10:12:16]Write to MH i2c: E2 08 00 57 2A 80 11 00 00 00 00 00 00 FB [10:12:16]Write i2c OK [10:12:16]MH_I2C_Read... [10:12:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:16]Read from MH i2c: E2 [10:12:16]MH_I2C_Read... [10:12:16]Read from MH i2c: E2 17 00 [10:12:16]MH_I2C_Read... [10:12:16]Read from MH i2c: E2 17 00 57 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 4F [10:12:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:12:16]wFMCommunicate OK [10:12:16]requested_item fd.num is exist - process it [10:12:16]SAM_PROTO_GetFieldsCounters [10:12:16]wFMCommunicate request_size=4 [10:12:16]MH_SAM_APDU [10:12:16]CAPDU: 80 13 00 00 [10:12:16]Write to MH i2c: E2 08 00 58 2A 80 13 00 00 00 00 00 00 FE [10:12:16]Write i2c OK [10:12:16]MH_I2C_Read... [10:12:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:16]Read from MH i2c: E2 [10:12:16]MH_I2C_Read... [10:12:16]Read from MH i2c: E2 62 00 [10:12:16]MH_I2C_Read... [10:12:16]Read from MH i2c: E2 62 00 58 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 0E A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [10:12:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 0E A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:12:16]wFMCommunicate OK [10:12:16]SAM_PROTO_GetFieldsCounters done [10:12:16]requested_item shift.num is exist - process it [10:12:16]requested_item shift.opened is exist - process it [10:12:16]req_shift_opened [10:12:16]FM_GetShiftState [10:12:16]SAM_PROTO_GetShiftState [10:12:16]wFMCommunicate request_size=4 [10:12:16]MH_SAM_APDU [10:12:16]CAPDU: 80 13 01 00 [10:12:16]Write to MH i2c: E2 08 00 59 2A 80 13 01 00 00 00 00 00 00 [10:12:16]Write i2c OK [10:12:16]MH_I2C_Read... [10:12:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:16]Read from MH i2c: E2 [10:12:16]MH_I2C_Read... [10:12:16]Read from MH i2c: E2 0E 00 [10:12:16]MH_I2C_Read... [10:12:16]Read from MH i2c: E2 0E 00 59 2A 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 34 [10:12:16]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:12:16]wFMCommunicate OK [10:12:16]SAM_PROTO_GetShiftState done [10:12:16]FM_GetShiftState done [10:12:16]req_shift_opened done [10:12:16]requested_item shift.open_date is exist - process it [10:12:16]req_shift_open_date [10:12:16]req_shift_open_date done [10:12:16]produce_requested_data done [10:12:16]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108558,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [10:12:16]process_action_free close_receipt [10:12:16]json_value_free [10:12:16]json_value_free done [10:12:16]process_json_proto returns [10:12:16]Send response to host [10:12:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108558,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [10:12:16]free response buf [10:12:16]execute_script done [10:12:16]execute_script returns [10:12:16]free content buf [10:12:16]Sock 9.Close socket [10:12:16]Sock 9.Thread stoped [10:12:20]OFD Sender: No OFD packet to send [10:12:24]accept exits with 8 [10:12:24]New connection [10:12:24]New thread 3067198820 created [10:12:24]Thread 3067342180 joined [10:12:24]Waiting for new connection... [10:12:24] Sock 8.Parse request [10:12:24]Sock 8.Check first char [10:12:24]Sock 8.First char is OK [10:12:24]request: POST /json_proto HTTP/1.0 [10:12:24]Method: POST [10:12:24]URL: /json_proto [10:12:24]Method is POST - this is cgi request [10:12:24]url: /json_proto [10:12:24]query_string will be loaded in cgi processing [10:12:24]execute_cgi json_proto POST (null) [10:12:24]execute_cgi path=json_proto method=POST [10:12:24]POST find Content-Length [10:12:24]Host: 172.17.32.69:8080 [10:12:24]Content-Length: 679 [10:12:24]Content-Type: application/json [10:12:24] [10:12:24]POST finish read [10:12:24]Found Content-Length = 679 [10:12:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 10.510, "sum" : 650.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:24]execute_script... [10:12: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)1040732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 10.510, "sum" : 650.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:24]POST & json_proto [10:12:24]process_json_proto [10:12:24]json parsed OK: [10:12:24]protocol is kg_v1.0 [10:12:24]action value=close_receipt [10:12:24]process_action close_receipt [10:12:24]cmd_close_receipt [10:12:24]MH_GetDate [10:12:24]Write to MH i2c: F0 00 00 5A 2A 73 [10:12:24]Write i2c OK [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: F0 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: F0 09 00 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: F0 09 00 5A 2A 00 0B 1F F4 65 D5 0F D3 65 1B [10:12:24]GetLastDocTimeStamp 1710497536 [10:12:24]current date 1710497547 [10:12:24]FM_GetShiftState [10:12:24]SAM_PROTO_GetShiftState [10:12:24]wFMCommunicate request_size=4 [10:12:24]MH_SAM_APDU [10:12:24]CAPDU: 80 13 01 00 [10:12:24]Write to MH i2c: E2 08 00 5B 2A 80 13 01 00 00 00 00 00 02 [10:12:24]Write i2c OK [10:12:24]MH_I2C_Read... [10:12:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:24]Read from MH i2c: E2 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: E2 0E 00 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: E2 0E 00 5B 2A 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 36 [10:12:24]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:12:24]wFMCommunicate OK [10:12:24]SAM_PROTO_GetShiftState done [10:12:24]FM_GetShiftState done [10:12:24]opened in 1710461757 [10:12:24]opened+sec_in_day 1710548157 [10:12:24]quantity*price = 65056 [10:12:24]sum+1 = 65058 [10:12:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.09 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 82 15.03.2024 10:12 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108559 ФПД: 209450077926273 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T101228&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108559&fm=209450077926273&tin=02508201610067®Number=0000000000091911&sum=65000 [10:12:25]StoreToDocumentArchive [10:12:25]shift 320 fd 108559 [10:12:25]save to /storage/0320/doc_00108559 [10:12:25]save last doc name /storage/0320/doc_00108559 to /storage/kkm_last_doc_name [10:12:25]save OK [10:12:25]Clear old archive folders... [10:12:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:12:25]tlvbuf is 00121110 [10:12:25]SAM_PROTO_ClearQueue [10:12:25]wFMCommunicate request_size=4 [10:12:25]MH_SAM_APDU [10:12:25]CAPDU: 80 09 00 00 [10:12:25]Write to MH i2c: E2 08 00 68 2A 80 09 00 00 00 00 00 00 04 [10:12:25]Write i2c OK [10:12:25]MH_I2C_Read... [10:12:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:25]Read from MH i2c: E2 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: E2 03 00 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: E2 03 00 68 2A 00 90 00 06 [10:12:25]RAPDU: 90 00 [10:12:25]wFMCommunicate OK [10:12:25]SAM_PROTO_ClearQueue done [10:12:25]KKMCreateOFDPacket [10:12:25]OFDProtocolAddRootSTLVToBuf [10:12:25]FM_MakeSignedData [10:12:25]FM_MakeSignedData [10:12:25]SAM_PROTO_SignData [10:12:25]wFMCommunicate request_size=4 [10:12:25]MH_SAM_APDU [10:12:25]CAPDU: 80 0D 01 02 [10:12:25]Write to MH i2c: E2 08 00 69 2A 80 0D 01 02 00 00 00 00 0C [10:12:25]Write i2c OK [10:12:25]MH_I2C_Read... [10:12:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:25]Read from MH i2c: E2 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: E2 03 00 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: E2 03 00 69 2A 00 90 00 07 [10:12:25]RAPDU: 90 00 [10:12:25]wFMCommunicate OK [10:12:25]wFMCommunicate request_size=255 [10:12:25]MH_SAM_APDU [10:12:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 29 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 21 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 0C 1F F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 0F A8 01 00 35 04 06 00 BE [10:12:25]Write to MH i2c: E2 02 01 6A 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 35 FF 03 08 00 03 0E 29 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 21 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 0C 1F F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 0F A8 01 00 35 04 06 00 BE 00 00 5F [10:12:25]Write i2c OK [10:12:25]MH_I2C_Read... [10:12:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:25]Read from MH i2c: E2 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: E2 03 00 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: E2 03 00 6A 2A 00 90 00 08 [10:12:25]RAPDU: 90 00 [10:12:25]wFMCommunicate OK [10:12:25]wFMCommunicate request_size=10 [10:12:25]MH_SAM_APDU [10:12:25]CAPDU: 80 0D 02 02 05 7E 65 7E 33 81 [10:12:25]Write to MH i2c: E2 0D 00 6B 2A 80 0D 02 02 05 00 7E 65 7E 33 81 00 00 2E [10:12:25]Write i2c OK [10:12:25]MH_I2C_Read... [10:12:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:25]Read from MH i2c: E2 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: E2 03 00 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: E2 03 00 6B 2A 00 90 00 09 [10:12:25]RAPDU: 90 00 [10:12:25]wFMCommunicate OK [10:12:25]wFMCommunicate request_size=4 [10:12:25]MH_SAM_APDU [10:12:25]CAPDU: 80 0D 03 02 [10:12:25]Write to MH i2c: E2 08 00 6C 2A 80 0D 03 02 00 00 00 00 11 [10:12:25]Write i2c OK [10:12:25]MH_I2C_Read... [10:12:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:25]Read from MH i2c: E2 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: E2 0B 00 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: E2 0B 00 6C 2A 00 E3 FF 1C 4D 8F 91 0C 2D 90 00 B6 [10:12:25]RAPDU: E3 FF 1C 4D 8F 91 0C 2D 90 00 [10:12:25]wFMCommunicate OK [10:12:25]SAM_PROTO_SignData done [10:12:25]FM_MakeSignedData done [10:12:25]CreateOFDProtocolMessage [10:12:25]wFMCommunicate request_size=4 [10:12:25]MH_SAM_APDU [10:12:25]CAPDU: 80 11 00 00 [10:12:25]Write to MH i2c: E2 08 00 6D 2A 80 11 00 00 00 00 00 00 11 [10:12:25]Write i2c OK [10:12:25]MH_I2C_Read... [10:12:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:25]Read from MH i2c: E2 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: E2 17 00 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: E2 17 00 6D 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 65 [10:12:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:12:25]wFMCommunicate OK [10:12:25]CreateOFDProtocolMessage done [10:12:25]OFDSenderStorePacket 108559 [10:12:25]StoreOFDPacket docnum=108559 [10:12:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 E4 2B 07 01 56 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 29 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 21 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 0C 1F F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 0F A8 01 00 35 04 06 00 BE 7E 65 7E 33 81 E3 FF 1C 4D 8F 91 0C 2D [10:12:25]CheckFolder [10:12:25]dirname=/storage/ofd_packets [10:12:25]CheckFolder done [10:12:25]ProducePacketName [10:12:25]name=ofd_packets/00108559 [10:12:25]NVStorageSaveData ofd_packets/00108559 [10:12:25]File name is /storage/ofd_packets/00108559 [10:12:25]Write 301 bytes [10:12:25]NVStorageSaveData done [10:12:25]OFDSenderStorePacket done [10:12:25]KKMCreateOFDPacket done [10:12:25]NVStorageSaveData kkm_last_timestamp [10:12:25]File name is /storage/kkm_last_timestamp [10:12:25]Write 4 bytes [10:12:25]NVStorageSaveData done [10:12:25]ExternCall_PrintAddStr [10:12:25]wPrintStart [10:12:25]Write to MH i2c: 01 00 00 6E 2A 98 [10:12:25]Write i2c OK [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: 01 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: 01 07 00 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: 01 07 00 6E 2A 00 00 00 00 00 FF 0F AD [10:12:25]RasterBufferAndPrint [10:12:25]line Счет N : (1)1040732 [10:12:25]line ИНН: 02508201610067 [10:12:25]line Контрольно-Кассовый Чек [10:12:25]line ПРОДАЖА [10:12:25]line ТРК (МРК, ГНК) : 43 [10:12:25]line Товар: 2710124130 [10:12:25]line Аи-92-К-5 [10:12:25]line 10.510 * 61.90 [10:12:25]line = 650.57 [10:12:25]line НДС 12% НСП 1% [10:12:25]line > о реализуемом товаре [10:12:25]line ОКРУГЛЕНИЕ: -0.57 [10:12:25]line ИТОГО: 650.00 [10:12:25]line Внесено: 650.00 [10:12:25]line СДАЧА: 0.00 [10:12:25]line НСП 1% : 5.76 [10:12:25]line НДС 12% : 69.09 [10:12:25]line Наличными: 650.00 [10:12:25]line Безнал.: 0.00 [10:12:25]line Место: АЗС № 15 "Партнер Нефть" [10:12:25]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [10:12:25]line СНО: Общий режим [10:12:25]line Чек 82 15.03.2024 10:12 [10:12:25]line Смена: 320 ФФД: 1.0 [10:12:25]line ЗНМ: 0300000266 [10:12:25]line РНМ: 0000000000091911 [10:12:25]line Версия ККМ: 001 [10:12:25]line ФМ: 0000000000871818 [10:12:25]line ФД: 108559 [10:12:25]line ФПД: 209450077926273 [10:12:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T101228&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108559&fm=209450077926273&tin=02508201610067®Number=0000000000091911&sum=65000 [10:12:25]written 0, free lines is 4095 [10:12:25]OFD Sender: Processing packet 108559 [packets to send 29, broken 28] [10:12:25]ProducePacketName [10:12:25]name=ofd_packets/00108559 [10:12:25]OFD Sender: To server: pG, [10:12:25]CommunicateWithHost lk.salyk.kg:30040 [10:12:25]ConnectInit lk.salyk.kg [10:12:25]Connected sock=10 [10:12: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 31 38 0F 01 00 00 E4 2B 07 01 56 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 29 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 21 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 0C 1F F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 0F A8 01 00 35 04 06 00 BE 7E 65 7E 33 81 E3 FF 1C 4D 8F 91 0C 2D [10:12: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 31 38 4F 00 00 00 C0 47 47 00 54 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 0F A8 01 00 F4 03 04 00 AB CA F3 65 B6 04 01 00 00 92 03 0B D1 22 03 46 28 [10:12:26]CommunicateWithHost err = 0 [10:12:26]CheckOFDResponse [10:12:26]1017 (14) - 77093643461234 [10:12:26]1041 (16) - 0000000000871818 [10:12:26]1040 (4) - 108559 [10:12:26]1012 (4) - 15.03.2024 04:12 [10:12:26]1206 (1) - 0 [10:12:26]OFD Sender: Remove packet 108559 [10:12:26]ProducePacketName [10:12:26]name=ofd_packets/00108559 [10:12:26]NVStorageDeleteData [10:12:26]Write to MH i2c: 01 00 00 99 2A C3 [10:12:26]Write i2c OK [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: 01 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: 01 07 00 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: 01 07 00 99 2A 00 00 00 00 00 DC 0C B2 [10:12:26]RasterBufferAndPrint [10:12:26]line [10:12:26]line [10:12:26]line [10:12:26]line [10:12:26]line [10:12:26]written 0, free lines is 3303 [10:12:26]MH_Cut [10:12:26]Write to MH i2c: D1 01 00 A0 2A 01 9C [10:12:26]Write i2c OK [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: D1 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: D1 01 00 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: D1 01 00 A0 2A 00 9B [10:12:26]Write to MH i2c: 01 00 00 A1 2A CB [10:12:26]Write i2c OK [10:12:26]MH_I2C_Read... [10:12:26]OFD Sender: No OFD packet to send [10:12:27]*** Cut start [10:12:27]*** Purtial cut [10:12:27]*** Stage 1: CUTSNS_PIN = 1 [10:12:27]Read from MH i2c: 01 [10:12:27]MH_I2C_Read... [10:12:27]*** Stop cut motor [10:12:27]*** Cut end [10:12:27]Read from MH i2c: 01 07 00 [10:12:27]MH_I2C_Read... [10:12:27]Read from MH i2c: 01 07 00 A1 2A 00 00 00 00 00 FF 0F E0 [10:12:27]process_action close_receipt done [10:12:27]requested_data is exist [10:12:27]produce_requested_data [10:12:27]requested_item fm.sn is exist - process it [10:12:27]wFMCommunicate request_size=4 [10:12:27]MH_SAM_APDU [10:12:27]CAPDU: 80 11 00 00 [10:12:27]Write to MH i2c: E2 08 00 A2 2A 80 11 00 00 00 00 00 00 46 [10:12:27]Write i2c OK [10:12:27]MH_I2C_Read... [10:12:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:27]Read from MH i2c: E2 [10:12:27]MH_I2C_Read... [10:12:27]Read from MH i2c: E2 17 00 [10:12:27]MH_I2C_Read... [10:12:27]Read from MH i2c: E2 17 00 A2 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 9A [10:12:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:12:27]wFMCommunicate OK [10:12:27]requested_item fd.num is exist - process it [10:12:27]SAM_PROTO_GetFieldsCounters [10:12:27]wFMCommunicate request_size=4 [10:12:27]MH_SAM_APDU [10:12:27]CAPDU: 80 13 00 00 [10:12:27]Write to MH i2c: E2 08 00 A3 2A 80 13 00 00 00 00 00 00 49 [10:12:27]Write i2c OK [10:12:27]MH_I2C_Read... [10:12:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:27]Read from MH i2c: E2 [10:12:27]MH_I2C_Read... [10:12:27]Read from MH i2c: E2 62 00 [10:12:27]MH_I2C_Read... [10:12:27]Read from MH i2c: E2 62 00 A3 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 0F A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [10:12: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 0F A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:12:27]wFMCommunicate OK [10:12:27]SAM_PROTO_GetFieldsCounters done [10:12:27]requested_item shift.num is exist - process it [10:12:27]requested_item shift.opened is exist - process it [10:12:27]req_shift_opened [10:12:27]FM_GetShiftState [10:12:27]SAM_PROTO_GetShiftState [10:12:27]wFMCommunicate request_size=4 [10:12:27]MH_SAM_APDU [10:12:27]CAPDU: 80 13 01 00 [10:12:27]Write to MH i2c: E2 08 00 A4 2A 80 13 01 00 00 00 00 00 4B [10:12:27]Write i2c OK [10:12:27]MH_I2C_Read... [10:12:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:27]Read from MH i2c: E2 [10:12:27]MH_I2C_Read... [10:12:27]Read from MH i2c: E2 0E 00 [10:12:27]MH_I2C_Read... [10:12:27]Read from MH i2c: E2 0E 00 A4 2A 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 7F [10:12:27]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:12:27]wFMCommunicate OK [10:12:27]SAM_PROTO_GetShiftState done [10:12:27]FM_GetShiftState done [10:12:27]req_shift_opened done [10:12:27]requested_item shift.open_date is exist - process it [10:12:27]req_shift_open_date [10:12:27]req_shift_open_date done [10:12:27]produce_requested_data done [10:12:27]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108559,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [10:12:27]process_action_free close_receipt [10:12:27]json_value_free [10:12:27]json_value_free done [10:12:27]process_json_proto returns [10:12:27]Send response to host [10:12:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108559,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [10:12:27]free response buf [10:12:27]execute_script done [10:12:27]execute_script returns [10:12:27]free content buf [10:12:27]Sock 8.Close socket [10:12:27]Sock 8.Thread stoped [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:11]OFD Sender: No OFD packet to send [10:15:16]OFD Sender: No OFD packet to send [10:15:21]OFD Sender: No OFD packet to send [10:15:26]OFD Sender: No OFD packet to send [10:15:31]OFD Sender: No OFD packet to send [10:15:36]OFD Sender: No OFD packet to send [10:15:41]OFD Sender: No OFD packet to send [10:15:46]OFD Sender: No OFD packet to send [10:15:51]OFD Sender: No OFD packet to send [10:15:56]OFD Sender: No OFD packet to send [10:16:01]OFD Sender: No OFD packet to send [10:16:04]accept exits with 9 [10:16:04]New connection [10:16:04]New thread 3067342180 created [10:16:04]Thread 3067198820 joined [10:16:04]Waiting for new connection... [10:16:04] Sock 9.Parse request [10:16:04]Sock 9.Check first char [10:16:04]Sock 9.First char is OK [10:16:04]request: POST /json_proto HTTP/1.0 [10:16:04]Method: POST [10:16:04]URL: /json_proto [10:16:04]Method is POST - this is cgi request [10:16:04]url: /json_proto [10:16:04]query_string will be loaded in cgi processing [10:16:04]execute_cgi json_proto POST (null) [10:16:04]execute_cgi path=json_proto method=POST [10:16:04]POST find Content-Length [10:16:04]Host: 172.17.32.69:8080 [10:16:04]Content-Length: 678 [10:16:04]Content-Type: application/json [10:16:04] [10:16:04]POST finish read [10:16:04]Found Content-Length = 678 [10:16:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 4.850, "sum" : 300.22, "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:16:04]execute_script... [10:16: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)1040733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 4.850, "sum" : 300.22, "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:16:04]POST & json_proto [10:16:04]process_json_proto [10:16:04]json parsed OK: [10:16:04]protocol is kg_v1.0 [10:16:04]action value=close_receipt [10:16:04]process_action close_receipt [10:16:04]cmd_close_receipt [10:16:04]MH_GetDate [10:16:04]Write to MH i2c: F0 00 00 A5 2A BE [10:16:04]Write i2c OK [10:16:04]MH_I2C_Read... [10:16:04]Read from MH i2c: F0 [10:16:04]MH_I2C_Read... [10:16:04]Read from MH i2c: F0 09 00 [10:16:04]MH_I2C_Read... [10:16:04]Read from MH i2c: F0 09 00 A5 2A 00 E8 1F F4 65 D5 0F D3 65 43 [10:16:04]GetLastDocTimeStamp 1710497548 [10:16:04]current date 1710497768 [10:16:04]FM_GetShiftState [10:16:04]SAM_PROTO_GetShiftState [10:16:04]wFMCommunicate request_size=4 [10:16:04]MH_SAM_APDU [10:16:04]CAPDU: 80 13 01 00 [10:16:04]Write to MH i2c: E2 08 00 A6 2A 80 13 01 00 00 00 00 00 4D [10:16:04]Write i2c OK [10:16:04]MH_I2C_Read... [10:16:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:04]Read from MH i2c: E2 [10:16:04]MH_I2C_Read... [10:16:04]Read from MH i2c: E2 0E 00 [10:16:04]MH_I2C_Read... [10:16:04]Read from MH i2c: E2 0E 00 A6 2A 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 81 [10:16:04]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:16:04]wFMCommunicate OK [10:16:04]SAM_PROTO_GetShiftState done [10:16:04]FM_GetShiftState done [10:16:04]opened in 1710461757 [10:16:04]opened+sec_in_day 1710548157 [10:16:04]quantity*price = 30021 [10:16:04]sum+1 = 30023 [10:16:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 83 15.03.2024 10:16 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108560 ФПД: 163527451521761 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T101608&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108560&fm=163527451521761&tin=02508201610067®Number=0000000000091911&sum=30000 [10:16:06]StoreToDocumentArchive [10:16:06]shift 320 fd 108560 [10:16:06]save to /storage/0320/doc_00108560 [10:16:06]save last doc name /storage/0320/doc_00108560 to /storage/kkm_last_doc_name [10:16:06]save OK [10:16:06]Clear old archive folders... [10:16:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:16:06]tlvbuf is B6F07BF0 [10:16:06]SAM_PROTO_ClearQueue [10:16:06]wFMCommunicate request_size=4 [10:16:06]MH_SAM_APDU [10:16:06]CAPDU: 80 09 00 00 [10:16:06]Write to MH i2c: E2 08 00 B3 2A 80 09 00 00 00 00 00 00 4F [10:16:06]Write i2c OK [10:16:06]MH_I2C_Read... [10:16:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:06]Read from MH i2c: E2 [10:16:06]MH_I2C_Read... [10:16:06]Read from MH i2c: E2 03 00 [10:16:06]MH_I2C_Read... [10:16:06]Read from MH i2c: E2 03 00 B3 2A 00 90 00 51 [10:16:06]RAPDU: 90 00 [10:16:06]wFMCommunicate OK [10:16:06]SAM_PROTO_ClearQueue done [10:16:06]KKMCreateOFDPacket [10:16:06]OFDProtocolAddRootSTLVToBuf [10:16:06]FM_MakeSignedData [10:16:06]FM_MakeSignedData [10:16:06]SAM_PROTO_SignData [10:16:06]wFMCommunicate request_size=4 [10:16:06]MH_SAM_APDU [10:16:06]CAPDU: 80 0D 01 02 [10:16:06]Write to MH i2c: E2 08 00 B4 2A 80 0D 01 02 00 00 00 00 57 [10:16:06]Write i2c OK [10:16:06]MH_I2C_Read... [10:16:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:06]Read from MH i2c: E2 [10:16:06]MH_I2C_Read... [10:16:06]Read from MH i2c: E2 03 00 [10:16:06]MH_I2C_Read... [10:16:06]Read from MH i2c: E2 03 00 B4 2A 00 90 00 52 [10:16:06]RAPDU: 90 00 [10:16:06]wFMCommunicate OK [10:16:06]wFMCommunicate request_size=255 [10:16:06]MH_SAM_APDU [10:16:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 53 00 00 00 F4 03 04 00 E8 1F F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 10 A8 01 00 35 04 06 00 94 [10:16:06]Write to MH i2c: E2 02 01 B5 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 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 53 00 00 00 F4 03 04 00 E8 1F F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 10 A8 01 00 35 04 06 00 94 00 00 79 [10:16:06]Write i2c OK [10:16:06]MH_I2C_Read... [10:16:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:06]Read from MH i2c: E2 [10:16:06]MH_I2C_Read... [10:16:06]Read from MH i2c: E2 03 00 [10:16:06]MH_I2C_Read... [10:16:06]Read from MH i2c: E2 03 00 B5 2A 00 90 00 53 [10:16:06]RAPDU: 90 00 [10:16:06]wFMCommunicate OK [10:16:06]wFMCommunicate request_size=10 [10:16:06]MH_SAM_APDU [10:16:06]CAPDU: 80 0D 02 02 05 BA 33 A8 B2 E1 [10:16:06]Write to MH i2c: E2 0D 00 B6 2A 80 0D 02 02 05 00 BA 33 A8 B2 E1 00 00 8C [10:16:06]Write i2c OK [10:16:06]MH_I2C_Read... [10:16:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:06]Read from MH i2c: E2 [10:16:06]MH_I2C_Read... [10:16:06]Read from MH i2c: E2 03 00 [10:16:06]MH_I2C_Read... [10:16:06]Read from MH i2c: E2 03 00 B6 2A 00 90 00 54 [10:16:06]RAPDU: 90 00 [10:16:06]wFMCommunicate OK [10:16:06]wFMCommunicate request_size=4 [10:16:06]MH_SAM_APDU [10:16:06]CAPDU: 80 0D 03 02 [10:16:06]Write to MH i2c: E2 08 00 B7 2A 80 0D 03 02 00 00 00 00 5C [10:16:06]Write i2c OK [10:16:06]MH_I2C_Read... [10:16:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:06]Read from MH i2c: E2 [10:16:06]MH_I2C_Read... [10:16:06]Read from MH i2c: E2 0B 00 [10:16:06]MH_I2C_Read... [10:16:06]Read from MH i2c: E2 0B 00 B7 2A 00 46 A4 6D 21 D0 F3 C7 EC 90 00 4B [10:16:06]RAPDU: 46 A4 6D 21 D0 F3 C7 EC 90 00 [10:16:06]wFMCommunicate OK [10:16:06]SAM_PROTO_SignData done [10:16:06]FM_MakeSignedData done [10:16:06]CreateOFDProtocolMessage [10:16:06]wFMCommunicate request_size=4 [10:16:06]MH_SAM_APDU [10:16:06]CAPDU: 80 11 00 00 [10:16:06]Write to MH i2c: E2 08 00 B8 2A 80 11 00 00 00 00 00 00 5C [10:16:06]Write i2c OK [10:16:06]MH_I2C_Read... [10:16:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:06]Read from MH i2c: E2 [10:16:06]MH_I2C_Read... [10:16:06]Read from MH i2c: E2 17 00 [10:16:06]MH_I2C_Read... [10:16:06]Read from MH i2c: E2 17 00 B8 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 B0 [10:16:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:16:06]wFMCommunicate OK [10:16:06]CreateOFDProtocolMessage done [10:16:06]OFDSenderStorePacket 108560 [10:16:06]StoreOFDPacket docnum=108560 [10:16:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 74 7B 07 01 51 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 53 00 00 00 F4 03 04 00 E8 1F F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 10 A8 01 00 35 04 06 00 94 BA 33 A8 B2 E1 46 A4 6D 21 D0 F3 C7 EC [10:16:06]CheckFolder [10:16:06]dirname=/storage/ofd_packets [10:16:06]CheckFolder done [10:16:06]ProducePacketName [10:16:06]name=ofd_packets/00108560 [10:16:06]NVStorageSaveData ofd_packets/00108560 [10:16:06]File name is /storage/ofd_packets/00108560 [10:16:06]Write 301 bytes [10:16:06]NVStorageSaveData done [10:16:06]OFDSenderStorePacket done [10:16:06]KKMCreateOFDPacket done [10:16:06]NVStorageSaveData kkm_last_timestamp [10:16:06]File name is /storage/kkm_last_timestamp [10:16:06]Write 4 bytes [10:16:06]NVStorageSaveData done [10:16:06]ExternCall_PrintAddStr [10:16:06]wPrintStart [10:16:06]Write to MH i2c: 01 00 00 B9 2A E3 [10:16:06]Write i2c OK [10:16:06]MH_I2C_Read... [10:16:06]Read from MH i2c: 01 [10:16:06]MH_I2C_Read... [10:16:06]Read from MH i2c: 01 07 00 [10:16:06]MH_I2C_Read... [10:16:06]Read from MH i2c: 01 07 00 B9 2A 00 00 00 00 00 FF 0F F8 [10:16:06]RasterBufferAndPrint [10:16:06]line Счет N : (1)1040733 [10:16:06]line ИНН: 02508201610067 [10:16:06]line Контрольно-Кассовый Чек [10:16:06]line ПРОДАЖА [10:16:06]line ТРК (МРК, ГНК) : 63 [10:16:06]line Товар: 2710124130 [10:16:06]line Аи-92-К-5 [10:16:06]line 4.850 * 61.90 [10:16:06]line = 300.22 [10:16:06]line НДС 12% НСП 1% [10:16:06]line > о реализуемом товаре [10:16:06]line ОКРУГЛЕНИЕ: -0.22 [10:16:06]line ИТОГО: 300.00 [10:16:06]line Внесено: 300.00 [10:16:06]line СДАЧА: 0.00 [10:16:06]line НСП 1% : 2.66 [10:16:06]line НДС 12% : 31.88 [10:16:06]line Наличными: 300.00 [10:16:06]line Безнал.: 0.00 [10:16:06]line Место: АЗС № 15 "Партнер Нефть" [10:16:06]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [10:16:06]line СНО: Общий режим [10:16:06]line Чек 83 15.03.2024 10:16 [10:16:06]line Смена: 320 ФФД: 1.0 [10:16:06]line ЗНМ: 0300000266 [10:16:06]line РНМ: 0000000000091911 [10:16:06]line Версия ККМ: 001 [10:16:06]line ФМ: 0000000000871818 [10:16:06]line ФД: 108560 [10:16:06]line ФПД: 163527451521761 [10:16:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T101608&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108560&fm=163527451521761&tin=02508201610067®Number=0000000000091911&sum=30000 [10:16:06]OFD Sender: Processing packet 108560 [packets to send 29, broken 28] [10:16:06]ProducePacketName [10:16:06]name=ofd_packets/00108560 [10:16:06]OFD Sender: To server: pG, [10:16:06]CommunicateWithHost lk.salyk.kg:30040 [10:16:06]ConnectInit lk.salyk.kg [10:16:06]written 0, free lines is 4095 [10:16:07]Connected sock=10 [10:16: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 31 38 0F 01 00 00 74 7B 07 01 51 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 53 00 00 00 F4 03 04 00 E8 1F F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 10 A8 01 00 35 04 06 00 94 BA 33 A8 B2 E1 46 A4 6D 21 D0 F3 C7 EC [10:16: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 31 38 4F 00 00 00 FA D4 47 00 00 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 10 A8 01 00 F4 03 04 00 88 CB F3 65 B6 04 01 00 00 2B BE 0E B4 6A C7 99 62 [10:16:07]CommunicateWithHost err = 0 [10:16:07]CheckOFDResponse [10:16:07]1017 (14) - 77093643461234 [10:16:07]1041 (16) - 0000000000871818 [10:16:07]1040 (4) - 108560 [10:16:07]1012 (4) - 15.03.2024 04:16 [10:16:07]1206 (1) - 0 [10:16:07]OFD Sender: Remove packet 108560 [10:16:07]ProducePacketName [10:16:07]name=ofd_packets/00108560 [10:16:07]NVStorageDeleteData [10:16:07]Write to MH i2c: 01 00 00 E4 2A 0E [10:16:07]Write i2c OK [10:16:07]MH_I2C_Read... [10:16:07]Read from MH i2c: 01 [10:16:07]MH_I2C_Read... [10:16:07]Read from MH i2c: 01 07 00 [10:16:07]MH_I2C_Read... [10:16:07]Read from MH i2c: 01 07 00 E4 2A 00 00 00 00 00 CB 0C EC [10:16:07]RasterBufferAndPrint [10:16:07]line [10:16:07]line [10:16:07]line [10:16:07]line [10:16:07]line [10:16:07]written 0, free lines is 3283 [10:16:07]MH_Cut [10:16:07]Write to MH i2c: D1 01 00 EB 2A 01 E7 [10:16:07]Write i2c OK [10:16:07]MH_I2C_Read... [10:16:07]Read from MH i2c: D1 [10:16:07]MH_I2C_Read... [10:16:07]Read from MH i2c: D1 01 00 [10:16:07]MH_I2C_Read... [10:16:07]Read from MH i2c: D1 01 00 EB 2A 00 E6 [10:16:07]Write to MH i2c: 01 00 00 EC 2A 16 [10:16:07]Write i2c OK [10:16:07]MH_I2C_Read... [10:16:07]OFD Sender: No OFD packet to send [10:16:08]*** Cut start [10:16:08]*** Purtial cut [10:16:08]*** Stage 1: CUTSNS_PIN = 1 [10:16:08]Read from MH i2c: 01 [10:16:08]MH_I2C_Read... [10:16:08]*** Stop cut motor [10:16:08]*** Cut end [10:16:08]Read from MH i2c: 01 07 00 [10:16:08]MH_I2C_Read... [10:16:08]Read from MH i2c: 01 07 00 EC 2A 00 00 00 00 00 FF 0F 2B [10:16:08]process_action close_receipt done [10:16:08]requested_data is exist [10:16:08]produce_requested_data [10:16:08]requested_item fm.sn is exist - process it [10:16:08]wFMCommunicate request_size=4 [10:16:08]MH_SAM_APDU [10:16:08]CAPDU: 80 11 00 00 [10:16:08]Write to MH i2c: E2 08 00 ED 2A 80 11 00 00 00 00 00 00 91 [10:16:08]Write i2c OK [10:16:08]MH_I2C_Read... [10:16:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:08]Read from MH i2c: E2 [10:16:08]MH_I2C_Read... [10:16:08]Read from MH i2c: E2 17 00 [10:16:08]MH_I2C_Read... [10:16:08]Read from MH i2c: E2 17 00 ED 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 E5 [10:16:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:16:08]wFMCommunicate OK [10:16:08]requested_item fd.num is exist - process it [10:16:08]SAM_PROTO_GetFieldsCounters [10:16:08]wFMCommunicate request_size=4 [10:16:08]MH_SAM_APDU [10:16:08]CAPDU: 80 13 00 00 [10:16:08]Write to MH i2c: E2 08 00 EE 2A 80 13 00 00 00 00 00 00 94 [10:16:08]Write i2c OK [10:16:08]MH_I2C_Read... [10:16:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:08]Read from MH i2c: E2 [10:16:08]MH_I2C_Read... [10:16:08]Read from MH i2c: E2 62 00 [10:16:08]MH_I2C_Read... [10:16:08]Read from MH i2c: E2 62 00 EE 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 10 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [10:16: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 10 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:16:08]wFMCommunicate OK [10:16:08]SAM_PROTO_GetFieldsCounters done [10:16:08]requested_item shift.num is exist - process it [10:16:08]requested_item shift.opened is exist - process it [10:16:08]req_shift_opened [10:16:08]FM_GetShiftState [10:16:08]SAM_PROTO_GetShiftState [10:16:08]wFMCommunicate request_size=4 [10:16:08]MH_SAM_APDU [10:16:08]CAPDU: 80 13 01 00 [10:16:08]Write to MH i2c: E2 08 00 EF 2A 80 13 01 00 00 00 00 00 96 [10:16:08]Write i2c OK [10:16:08]MH_I2C_Read... [10:16:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:08]Read from MH i2c: E2 [10:16:08]MH_I2C_Read... [10:16:08]Read from MH i2c: E2 0E 00 [10:16:08]MH_I2C_Read... [10:16:08]Read from MH i2c: E2 0E 00 EF 2A 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 CA [10:16:08]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:16:08]wFMCommunicate OK [10:16:08]SAM_PROTO_GetShiftState done [10:16:08]FM_GetShiftState done [10:16:08]req_shift_opened done [10:16:08]requested_item shift.open_date is exist - process it [10:16:08]req_shift_open_date [10:16:08]req_shift_open_date done [10:16:08]produce_requested_data done [10:16:08]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108560,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [10:16:08]process_action_free close_receipt [10:16:08]json_value_free [10:16:08]json_value_free done [10:16:08]process_json_proto returns [10:16:08]Send response to host [10:16:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108560,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [10:16:08]free response buf [10:16:08]execute_script done [10:16:08]execute_script returns [10:16:08]free content buf [10:16:08]Sock 9.Close socket [10:16:08]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [10:19:32]OFD Sender: No OFD packet to send [10:19:37]OFD Sender: No OFD packet to send [10:19:42]OFD Sender: No OFD packet to send [10:19:47]OFD Sender: No OFD packet to send [10:19:52]OFD Sender: No OFD packet to send [10:19:57]OFD Sender: No OFD packet to send [10:20:02]OFD Sender: No OFD packet to send [10:20:07]OFD Sender: No OFD packet to send [10:20:12]OFD Sender: No OFD packet to send [10:20:17]OFD Sender: No OFD packet to send [10:20:22]OFD Sender: No OFD packet to send [10:20:27]OFD Sender: No OFD packet to send [10:20:32]OFD Sender: No OFD packet to send [10:20:34]accept exits with 8 [10:20:34]New connection [10:20:34]New thread 3067198820 created [10:20:34]Thread 3067342180 joined [10:20:34]Waiting for new connection... [10:20:34] Sock 8.Parse request [10:20:34]Sock 8.Check first char [10:20:34]Sock 8.First char is OK [10:20:34]request: POST /json_proto HTTP/1.0 [10:20:34]Method: POST [10:20:34]URL: /json_proto [10:20:34]Method is POST - this is cgi request [10:20:34]url: /json_proto [10:20:34]query_string will be loaded in cgi processing [10:20:34]execute_cgi json_proto POST (null) [10:20:34]execute_cgi path=json_proto method=POST [10:20:34]POST find Content-Length [10:20:34]Host: 172.17.32.69:8080 [10:20:34]Content-Length: 1209 [10:20:34]Content-Type: application/json [10:20:34] [10:20:34]POST finish read [10:20:34]Found Content-Length = 1209 [10:20:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040734\u000A15.03.2024 10:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 83\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1238.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74665\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:34]execute_script... [10:20:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040734\u000A15.03.2024 10:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 83\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1238.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74665\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:34]POST & json_proto [10:20:34]process_json_proto [10:20:34]json parsed OK: [10:20:34]protocol is kg_v1.0 [10:20:34]action value=print_text [10:20:34]process_action print_text [10:20:34]cmd_print_text [10:20:34]ExternCall_PrintAddStr [10:20:34]wPrintStart [10:20:34]Write to MH i2c: 01 00 00 F0 2A 1A [10:20:34]Write i2c OK [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: 01 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: 01 07 00 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: 01 07 00 F0 2A 00 00 00 00 00 FF 0F 2F [10:20:34]RasterBufferAndPrint [10:20:34]line *****ТОВАРНЫЙ ЧЕК***** [10:20:34]line АЗС 15 [10:20:34]line Партнер нефть [10:20:34]line 02508201610067 [10:20:34]line Кассир : Максатбек у Д. [10:20:34]line Счет N : (1)1040734 [10:20:34]line 15.03.2024 10:12 [10:20:34]line ПРОДАЖА [10:20:34]line ТРК (МРК, ГНК): 83 [10:20:34]line Вид ГСМ : 2710124130 [10:20:34]line Аи-92-К-5 [10:20:34]line 20.000 x 61.90 [10:20:34]line ИТОГ: 1238.00 [10:20:34]line Тип оплаты: Талоны: Топливная Карта [10:20:34]line 74665 [10:20:34]line ______________________ [10:20:34]line (подпись) [10:20:34]written 0, free lines is 4095 [10:20:34]Write to MH i2c: 01 00 00 05 2B 30 [10:20:34]Write i2c OK [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: 01 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: 01 07 00 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: 01 07 00 05 2B 00 00 00 00 00 F5 0D 39 [10:20:34]RasterBufferAndPrint [10:20:34]line [10:20:34]line [10:20:34]line [10:20:34]line [10:20:34]line [10:20:34]written 0, free lines is 3575 [10:20:34]MH_Cut [10:20:34]Write to MH i2c: D1 01 00 0C 2B 01 09 [10:20:34]Write i2c OK [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: D1 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: D1 01 00 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: D1 01 00 0C 2B 00 08 [10:20:34]Write to MH i2c: 01 00 00 0D 2B 38 [10:20:34]Write i2c OK [10:20:34]MH_I2C_Read... [10:20:35]*** Cut start [10:20:35]*** Purtial cut [10:20:35]*** Stage 1: CUTSNS_PIN = 1 [10:20:35]Read from MH i2c: 01 [10:20:35]MH_I2C_Read... [10:20:35]*** Stop cut motor [10:20:35]*** Cut end [10:20:35]Read from MH i2c: 01 07 00 [10:20:35]MH_I2C_Read... [10:20:35]Read from MH i2c: 01 07 00 0D 2B 00 00 00 00 00 FF 0F 4D [10:20:35]process_action print_text done [10:20:35]requested_data is exist [10:20:35]produce_requested_data [10:20:35]requested_item fm.sn is exist - process it [10:20:35]wFMCommunicate request_size=4 [10:20:35]MH_SAM_APDU [10:20:35]CAPDU: 80 11 00 00 [10:20:35]Write to MH i2c: E2 08 00 0E 2B 80 11 00 00 00 00 00 00 B3 [10:20:35]Write i2c OK [10:20:35]MH_I2C_Read... [10:20:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:35]Read from MH i2c: E2 [10:20:35]MH_I2C_Read... [10:20:35]Read from MH i2c: E2 17 00 [10:20:35]MH_I2C_Read... [10:20:35]Read from MH i2c: E2 17 00 0E 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 07 [10:20:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:20:35]wFMCommunicate OK [10:20:35]requested_item fd.num is exist - process it [10:20:35]SAM_PROTO_GetFieldsCounters [10:20:35]wFMCommunicate request_size=4 [10:20:35]MH_SAM_APDU [10:20:35]CAPDU: 80 13 00 00 [10:20:35]Write to MH i2c: E2 08 00 0F 2B 80 13 00 00 00 00 00 00 B6 [10:20:35]Write i2c OK [10:20:35]MH_I2C_Read... [10:20:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:35]Read from MH i2c: E2 [10:20:35]MH_I2C_Read... [10:20:35]Read from MH i2c: E2 62 00 [10:20:35]MH_I2C_Read... [10:20:35]Read from MH i2c: E2 62 00 0F 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 10 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [10:20:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 10 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:20:35]wFMCommunicate OK [10:20:35]SAM_PROTO_GetFieldsCounters done [10:20:35]requested_item shift.num is exist - process it [10:20:35]requested_item shift.opened is exist - process it [10:20:35]req_shift_opened [10:20:35]FM_GetShiftState [10:20:35]SAM_PROTO_GetShiftState [10:20:35]wFMCommunicate request_size=4 [10:20:35]MH_SAM_APDU [10:20:35]CAPDU: 80 13 01 00 [10:20:35]Write to MH i2c: E2 08 00 10 2B 80 13 01 00 00 00 00 00 B8 [10:20:35]Write i2c OK [10:20:35]MH_I2C_Read... [10:20:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:35]Read from MH i2c: E2 [10:20:35]MH_I2C_Read... [10:20:35]Read from MH i2c: E2 0E 00 [10:20:35]MH_I2C_Read... [10:20:35]Read from MH i2c: E2 0E 00 10 2B 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 EC [10:20:35]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:20:35]wFMCommunicate OK [10:20:35]SAM_PROTO_GetShiftState done [10:20:35]FM_GetShiftState done [10:20:35]req_shift_opened done [10:20:35]requested_item shift.open_date is exist - process it [10:20:35]req_shift_open_date [10:20:35]req_shift_open_date done [10:20:35]produce_requested_data done [10:20:35]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108560,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [10:20:35]process_action_free print_text [10:20:35]json_value_free [10:20:35]json_value_free done [10:20:35]process_json_proto returns [10:20:35]Send response to host [10:20:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108560,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [10:20:35]free response buf [10:20:35]execute_script done [10:20:35]execute_script returns [10:20:35]free content buf [10:20:35]Sock 8.Close socket [10:20:35]Sock 8.Thread stoped [10:20:37]OFD Sender: No OFD packet to send [10:20:38]int [10:20:38]Write to MH i2c: 01 00 00 11 2B 3C [10:20:38]*** FLAG_PRN_KEY set [10:20:38]Write i2c OK [10:20:38]MH_I2C_Read... [10:20:38]Read from MH i2c: 01 [10:20:38]MH_I2C_Read... [10:20:38]Read from MH i2c: 01 07 00 [10:20:38]MH_I2C_Read... [10:20:38]Read from MH i2c: 01 07 00 11 2B 00 08 00 00 00 FF 0F 59 [10:20:38]state=0 [10:20:38]Key pressed [10:20:38]Feed [10:20:38]Write to MH i2c: D8 00 00 12 2B 14 [10:20:38]Write i2c OK [10:20:38]MH_I2C_Read... [10:20:38]Read from MH i2c: D8 [10:20:38]MH_I2C_Read... [10:20:38]Read from MH i2c: D8 01 00 [10:20:38]MH_I2C_Read... [10:20:38]Read from MH i2c: D8 01 00 12 2B 00 15 [10:20:38]int [10:20:38]Write to MH i2c: 01 00 00 13 2B 3E [10:20:38]Write i2c OK [10:20:38]MH_I2C_Read... [10:20:38]Read from MH i2c: 01 [10:20:38]MH_I2C_Read... [10:20:38]Read from MH i2c: 01 07 00 [10:20:38]MH_I2C_Read... [10:20:38]Read from MH i2c: 01 07 00 13 2B 00 48 00 00 00 3C 00 C9 [10:20:38]state=2 [10:20:38]Key pressed [10:20:38]int [10:20:38]Write to MH i2c: 01 00 00 14 2B 3F [10:20:38]*** FLAG_PRN_KEY reset [10:20:38]Write i2c OK [10:20:38]MH_I2C_Read... [10:20:38]Read from MH i2c: 01 [10:20:38]MH_I2C_Read... [10:20:38]Read from MH i2c: 01 07 00 [10:20:38]MH_I2C_Read... [10:20:38]Read from MH i2c: 01 07 00 14 2B 00 00 00 00 00 F5 0F 4A [10:20:38]state=2 [10:20:38]Stop feed [10:20:42]OFD Sender: No OFD packet to send [10:20:47]OFD Sender: No OFD packet to send [10:20:52]OFD Sender: No OFD packet to send [10:20:57]OFD Sender: No OFD packet to send [10:21:02]OFD Sender: No OFD packet to send [10:21:07]OFD Sender: No OFD packet to send [10:21:11]accept exits with 9 [10:21:11]New connection [10:21:11]New thread 3067342180 created [10:21:11]Thread 3067198820 joined [10:21:11]Waiting for new connection... [10:21:11] Sock 9.Parse request [10:21:11]Sock 9.Check first char [10:21:11]Sock 9.First char is OK [10:21:11]request: POST /json_proto HTTP/1.0 [10:21:11]Method: POST [10:21:11]URL: /json_proto [10:21:11]Method is POST - this is cgi request [10:21:11]url: /json_proto [10:21:11]query_string will be loaded in cgi processing [10:21:11]execute_cgi json_proto POST (null) [10:21:11]execute_cgi path=json_proto method=POST [10:21:11]POST find Content-Length [10:21:11]Host: 172.17.32.69:8080 [10:21:11]Content-Length: 679 [10:21:11]Content-Type: application/json [10:21:11] [10:21:11]POST finish read [10:21:11]Found Content-Length = 679 [10:21:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 83", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 12.320, "sum" : 762.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 762.00, "total" : 762.00, "payments": [ { "type": 0, "sum" : 762.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:11]execute_script... [10:21: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)1040735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 83", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 12.320, "sum" : 762.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 762.00, "total" : 762.00, "payments": [ { "type": 0, "sum" : 762.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:11]POST & json_proto [10:21:11]process_json_proto [10:21:11]json parsed OK: [10:21:11]protocol is kg_v1.0 [10:21:11]action value=close_receipt [10:21:11]process_action close_receipt [10:21:11]cmd_close_receipt [10:21:11]MH_GetDate [10:21:11]Write to MH i2c: F0 00 00 15 2B 2F [10:21:11]Write i2c OK [10:21:11]MH_I2C_Read... [10:21:11]Read from MH i2c: F0 [10:21:11]MH_I2C_Read... [10:21:11]Read from MH i2c: F0 09 00 [10:21:11]MH_I2C_Read... [10:21:11]Read from MH i2c: F0 09 00 15 2B 00 1A 21 F4 65 D5 0F D3 65 E8 [10:21:11]GetLastDocTimeStamp 1710497768 [10:21:11]current date 1710498074 [10:21:11]FM_GetShiftState [10:21:11]SAM_PROTO_GetShiftState [10:21:11]wFMCommunicate request_size=4 [10:21:11]MH_SAM_APDU [10:21:11]CAPDU: 80 13 01 00 [10:21:11]Write to MH i2c: E2 08 00 16 2B 80 13 01 00 00 00 00 00 BE [10:21:11]Write i2c OK [10:21:11]MH_I2C_Read... [10:21:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:11]Read from MH i2c: E2 [10:21:11]MH_I2C_Read... [10:21:11]Read from MH i2c: E2 0E 00 [10:21:11]MH_I2C_Read... [10:21:11]Read from MH i2c: E2 0E 00 16 2B 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 F2 [10:21:11]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:21:11]wFMCommunicate OK [10:21:11]SAM_PROTO_GetShiftState done [10:21:11]FM_GetShiftState done [10:21:11]opened in 1710461757 [10:21:11]opened+sec_in_day 1710548157 [10:21:11]quantity*price = 76260 [10:21:11]sum+1 = 76262 [10:21:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 762.00 Внесено: 762.00 СДАЧА: 0.00 НСП 1% : 6.75 НДС 12% : 80.98 Наличными: 762.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 84 15.03.2024 10:21 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108561 ФПД: 236768010316762 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T102114&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108561&fm=236768010316762&tin=02508201610067®Number=0000000000091911&sum=76200 [10:21:12]StoreToDocumentArchive [10:21:12]shift 320 fd 108561 [10:21:12]save to /storage/0320/doc_00108561 [10:21:12]save last doc name /storage/0320/doc_00108561 to /storage/kkm_last_doc_name [10:21:12]save OK [10:21:12]Clear old archive folders... [10:21:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:21:12]tlvbuf is 000DFC70 [10:21:12]SAM_PROTO_ClearQueue [10:21:12]wFMCommunicate request_size=4 [10:21:12]MH_SAM_APDU [10:21:12]CAPDU: 80 09 00 00 [10:21:12]Write to MH i2c: E2 08 00 23 2B 80 09 00 00 00 00 00 00 C0 [10:21:12]Write i2c OK [10:21:12]MH_I2C_Read... [10:21:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:12]Read from MH i2c: E2 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: E2 03 00 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: E2 03 00 23 2B 00 90 00 C2 [10:21:12]RAPDU: 90 00 [10:21:12]wFMCommunicate OK [10:21:12]SAM_PROTO_ClearQueue done [10:21:12]KKMCreateOFDPacket [10:21:12]OFDProtocolAddRootSTLVToBuf [10:21:12]FM_MakeSignedData [10:21:12]FM_MakeSignedData [10:21:12]SAM_PROTO_SignData [10:21:12]wFMCommunicate request_size=4 [10:21:12]MH_SAM_APDU [10:21:12]CAPDU: 80 0D 01 02 [10:21:12]Write to MH i2c: E2 08 00 24 2B 80 0D 01 02 00 00 00 00 C8 [10:21:12]Write i2c OK [10:21:12]MH_I2C_Read... [10:21:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:12]Read from MH i2c: E2 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: E2 03 00 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: E2 03 00 24 2B 00 90 00 C3 [10:21:12]RAPDU: 90 00 [10:21:12]wFMCommunicate OK [10:21:12]wFMCommunicate request_size=255 [10:21:12]MH_SAM_APDU [10:21:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 30 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 E5 29 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 29 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 1F 00 00 00 00 07 04 06 00 A8 29 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 1A 21 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 11 A8 01 00 35 04 06 00 D7 [10:21:12]Write to MH i2c: E2 02 01 25 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 35 FF 03 08 00 03 20 30 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 E5 29 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 29 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 1F 00 00 00 00 07 04 06 00 A8 29 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 1A 21 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 11 A8 01 00 35 04 06 00 D7 00 00 38 [10:21:12]Write i2c OK [10:21:12]MH_I2C_Read... [10:21:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:12]Read from MH i2c: E2 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: E2 03 00 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: E2 03 00 25 2B 00 90 00 C4 [10:21:12]RAPDU: 90 00 [10:21:12]wFMCommunicate OK [10:21:12]wFMCommunicate request_size=10 [10:21:12]MH_SAM_APDU [10:21:12]CAPDU: 80 0D 02 02 05 56 D9 26 2B DA [10:21:12]Write to MH i2c: E2 0D 00 26 2B 80 0D 02 02 05 00 56 D9 26 2B DA 00 00 2F [10:21:12]Write i2c OK [10:21:12]MH_I2C_Read... [10:21:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:12]Read from MH i2c: E2 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: E2 03 00 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: E2 03 00 26 2B 00 90 00 C5 [10:21:12]RAPDU: 90 00 [10:21:12]wFMCommunicate OK [10:21:12]wFMCommunicate request_size=4 [10:21:12]MH_SAM_APDU [10:21:12]CAPDU: 80 0D 03 02 [10:21:12]Write to MH i2c: E2 08 00 27 2B 80 0D 03 02 00 00 00 00 CD [10:21:12]Write i2c OK [10:21:12]MH_I2C_Read... [10:21:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:12]Read from MH i2c: E2 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: E2 0B 00 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: E2 0B 00 27 2B 00 E2 F0 EA 72 42 98 4F 6C 90 00 91 [10:21:12]RAPDU: E2 F0 EA 72 42 98 4F 6C 90 00 [10:21:12]wFMCommunicate OK [10:21:12]SAM_PROTO_SignData done [10:21:12]FM_MakeSignedData done [10:21:12]CreateOFDProtocolMessage [10:21:12]wFMCommunicate request_size=4 [10:21:12]MH_SAM_APDU [10:21:12]CAPDU: 80 11 00 00 [10:21:12]Write to MH i2c: E2 08 00 28 2B 80 11 00 00 00 00 00 00 CD [10:21:12]Write i2c OK [10:21:12]MH_I2C_Read... [10:21:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:12]Read from MH i2c: E2 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: E2 17 00 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: E2 17 00 28 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 21 [10:21:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:21:12]wFMCommunicate OK [10:21:12]CreateOFDProtocolMessage done [10:21:12]OFDSenderStorePacket 108561 [10:21:12]StoreOFDPacket docnum=108561 [10:21:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 6C 00 07 01 5A 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 30 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 E5 29 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 29 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 1F 00 00 00 00 07 04 06 00 A8 29 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 1A 21 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 11 A8 01 00 35 04 06 00 D7 56 D9 26 2B DA E2 F0 EA 72 42 98 4F 6C [10:21:12]CheckFolder [10:21:12]dirname=/storage/ofd_packets [10:21:12]CheckFolder done [10:21:12]ProducePacketName [10:21:12]name=ofd_packets/00108561 [10:21:12]NVStorageSaveData ofd_packets/00108561 [10:21:12]File name is /storage/ofd_packets/00108561 [10:21:12]Write 301 bytes [10:21:12]NVStorageSaveData done [10:21:12]OFDSenderStorePacket done [10:21:12]KKMCreateOFDPacket done [10:21:12]NVStorageSaveData kkm_last_timestamp [10:21:12]File name is /storage/kkm_last_timestamp [10:21:12]Write 4 bytes [10:21:12]NVStorageSaveData done [10:21:12]ExternCall_PrintAddStr [10:21:12]wPrintStart [10:21:12]Write to MH i2c: 01 00 00 29 2B 54 [10:21:12]Write i2c OK [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: 01 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: 01 07 00 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: 01 07 00 29 2B 00 00 00 00 00 FF 0F 69 [10:21:12]RasterBufferAndPrint [10:21:12]line Счет N : (1)1040735 [10:21:12]line ИНН: 02508201610067 [10:21:12]line Контрольно-Кассовый Чек [10:21:12]line ПРОДАЖА [10:21:12]line ТРК (МРК, ГНК) : 83 [10:21:12]line Товар: 2710124130 [10:21:12]line Аи-92-К-5 [10:21:12]line 12.320 * 61.90 [10:21:12]line = 762.61 [10:21:12]line НДС 12% НСП 1% [10:21:12]line > о реализуемом товаре [10:21:12]line ОКРУГЛЕНИЕ: -0.61 [10:21:12]line ИТОГО: 762.00 [10:21:12]line Внесено: 762.00 [10:21:12]line СДАЧА: 0.00 [10:21:12]line НСП 1% : 6.75 [10:21:12]line НДС 12% : 80.98 [10:21:12]line Наличными: 762.00 [10:21:12]line Безнал.: 0.00 [10:21:12]line Место: АЗС № 15 "Партнер Нефть" [10:21:12]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [10:21:12]line СНО: Общий режим [10:21:12]line Чек 84 15.03.2024 10:21 [10:21:12]line Смена: 320 ФФД: 1.0 [10:21:12]line ЗНМ: 0300000266 [10:21:12]line РНМ: 0000000000091911 [10:21:12]line Версия ККМ: 001 [10:21:12]line ФМ: 0000000000871818 [10:21:12]line ФД: 108561 [10:21:12]line ФПД: 236768010316762 [10:21:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T102114&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108561&fm=236768010316762&tin=02508201610067®Number=0000000000091911&sum=76200 [10:21:13]OFD Sender: Processing packet 108561 [packets to send 29, broken 28] [10:21:13]ProducePacketName [10:21:13]name=ofd_packets/00108561 [10:21:13]OFD Sender: To server: pG, [10:21:13]CommunicateWithHost lk.salyk.kg:30040 [10:21:13]ConnectInit lk.salyk.kg [10:21:13]written 0, free lines is 4095 [10:21:13]Connected sock=11 [10:21: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 31 38 0F 01 00 00 6C 00 07 01 5A 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 30 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 E5 29 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 29 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 1F 00 00 00 00 07 04 06 00 A8 29 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 1A 21 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 11 A8 01 00 35 04 06 00 D7 56 D9 26 2B DA E2 F0 EA 72 42 98 4F 6C [10:21: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 31 38 4F 00 00 00 C2 80 47 00 BB 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 31 38 10 04 04 00 11 A8 01 00 F4 03 04 00 BB CC F3 65 B6 04 01 00 00 38 3B 3A 2B 8C 7A 16 83 [10:21:13]CommunicateWithHost err = 0 [10:21:13]CheckOFDResponse [10:21:13]1017 (14) - 77093643461234 [10:21:13]1041 (16) - 0000000000871818 [10:21:13]1040 (4) - 108561 [10:21:13]1012 (4) - 15.03.2024 04:21 [10:21:13]1206 (1) - 0 [10:21:13]OFD Sender: Remove packet 108561 [10:21:13]ProducePacketName [10:21:13]name=ofd_packets/00108561 [10:21:13]NVStorageDeleteData [10:21:13]Write to MH i2c: 01 00 00 54 2B 7F [10:21:13]Write i2c OK [10:21:13]MH_I2C_Read... [10:21:13]Read from MH i2c: 01 [10:21:13]MH_I2C_Read... [10:21:13]Read from MH i2c: 01 07 00 [10:21:13]MH_I2C_Read... [10:21:13]Read from MH i2c: 01 07 00 54 2B 00 00 00 00 00 D2 0C 64 [10:21:13]RasterBufferAndPrint [10:21:13]line [10:21:13]line [10:21:13]line [10:21:13]line [10:21:13]line [10:21:13]written 0, free lines is 3288 [10:21:13]MH_Cut [10:21:13]Write to MH i2c: D1 01 00 5B 2B 01 58 [10:21:13]Write i2c OK [10:21:13]MH_I2C_Read... [10:21:13]Read from MH i2c: D1 [10:21:13]MH_I2C_Read... [10:21:13]Read from MH i2c: D1 01 00 [10:21:13]MH_I2C_Read... [10:21:13]Read from MH i2c: D1 01 00 5B 2B 00 57 [10:21:13]Write to MH i2c: 01 00 00 5C 2B 87 [10:21:13]Write i2c OK [10:21:13]MH_I2C_Read... [10:21:13]OFD Sender: No OFD packet to send [10:21:14]*** Cut start [10:21:14]*** Purtial cut [10:21:14]*** Stage 1: CUTSNS_PIN = 1 [10:21:14]Read from MH i2c: 01 [10:21:14]MH_I2C_Read... [10:21:14]*** Stop cut motor [10:21:14]*** Cut end [10:21:14]Read from MH i2c: 01 07 00 [10:21:14]MH_I2C_Read... [10:21:14]Read from MH i2c: 01 07 00 5C 2B 00 00 00 00 00 FF 0F 9C [10:21:14]process_action close_receipt done [10:21:14]requested_data is exist [10:21:14]produce_requested_data [10:21:14]requested_item fm.sn is exist - process it [10:21:14]wFMCommunicate request_size=4 [10:21:14]MH_SAM_APDU [10:21:14]CAPDU: 80 11 00 00 [10:21:14]Write to MH i2c: E2 08 00 5D 2B 80 11 00 00 00 00 00 00 02 [10:21:14]Write i2c OK [10:21:14]MH_I2C_Read... [10:21:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:14]Read from MH i2c: E2 [10:21:14]MH_I2C_Read... [10:21:14]Read from MH i2c: E2 17 00 [10:21:14]MH_I2C_Read... [10:21:14]Read from MH i2c: E2 17 00 5D 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 56 [10:21:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:21:14]wFMCommunicate OK [10:21:14]requested_item fd.num is exist - process it [10:21:14]SAM_PROTO_GetFieldsCounters [10:21:14]wFMCommunicate request_size=4 [10:21:14]MH_SAM_APDU [10:21:14]CAPDU: 80 13 00 00 [10:21:14]Write to MH i2c: E2 08 00 5E 2B 80 13 00 00 00 00 00 00 05 [10:21:14]Write i2c OK [10:21:14]MH_I2C_Read... [10:21:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:14]Read from MH i2c: E2 [10:21:14]MH_I2C_Read... [10:21:14]Read from MH i2c: E2 62 00 [10:21:14]MH_I2C_Read... [10:21:14]Read from MH i2c: E2 62 00 5E 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 11 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [10:21: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 11 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:21:14]wFMCommunicate OK [10:21:14]SAM_PROTO_GetFieldsCounters done [10:21:14]requested_item shift.num is exist - process it [10:21:14]requested_item shift.opened is exist - process it [10:21:14]req_shift_opened [10:21:14]FM_GetShiftState [10:21:14]SAM_PROTO_GetShiftState [10:21:14]wFMCommunicate request_size=4 [10:21:14]MH_SAM_APDU [10:21:14]CAPDU: 80 13 01 00 [10:21:14]Write to MH i2c: E2 08 00 5F 2B 80 13 01 00 00 00 00 00 07 [10:21:14]Write i2c OK [10:21:14]MH_I2C_Read... [10:21:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:14]Read from MH i2c: E2 [10:21:14]MH_I2C_Read... [10:21:14]Read from MH i2c: E2 0E 00 [10:21:14]MH_I2C_Read... [10:21:14]Read from MH i2c: E2 0E 00 5F 2B 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 3B [10:21:14]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:21:14]wFMCommunicate OK [10:21:14]SAM_PROTO_GetShiftState done [10:21:14]FM_GetShiftState done [10:21:14]req_shift_opened done [10:21:14]requested_item shift.open_date is exist - process it [10:21:14]req_shift_open_date [10:21:14]req_shift_open_date done [10:21:14]produce_requested_data done [10:21:14]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108561,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [10:21:14]process_action_free close_receipt [10:21:14]json_value_free [10:21:14]json_value_free done [10:21:14]process_json_proto returns [10:21:14]Send response to host [10:21:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108561,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [10:21:14]free response buf [10:21:14]execute_script done [10:21:14]execute_script returns [10:21:14]free content buf [10:21:14]Sock 9.Close socket [10:21:14]Sock 9.Thread stoped [10:21:18]OFD Sender: No OFD packet to send [10:21:23]OFD Sender: No OFD packet to send [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:31]accept exits with 8 [10:22:31]New connection [10:22:31]New thread 3067198820 created [10:22:31]Thread 3067342180 joined [10:22:31]Waiting for new connection... [10:22:31] Sock 8.Parse request [10:22:31]Sock 8.Check first char [10:22:31]Sock 8.First char is OK [10:22:31]request: POST /json_proto HTTP/1.0 [10:22:31]Method: POST [10:22:31]URL: /json_proto [10:22:31]Method is POST - this is cgi request [10:22:31]url: /json_proto [10:22:31]query_string will be loaded in cgi processing [10:22:31]execute_cgi json_proto POST (null) [10:22:31]execute_cgi path=json_proto method=POST [10:22:31]POST find Content-Length [10:22:31]Host: 172.17.32.69:8080 [10:22:31]Content-Length: 1209 [10:22:31]Content-Type: application/json [10:22:31] [10:22:31]POST finish read [10:22:31]Found Content-Length = 1209 [10:22:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040736\u000A15.03.2024 10:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 73\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1238.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74665\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:31]execute_script... [10:22:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040736\u000A15.03.2024 10:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 73\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1238.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74665\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:31]POST & json_proto [10:22:31]process_json_proto [10:22:31]json parsed OK: [10:22:31]protocol is kg_v1.0 [10:22:31]action value=print_text [10:22:31]process_action print_text [10:22:31]cmd_print_text [10:22:31]ExternCall_PrintAddStr [10:22:31]wPrintStart [10:22:31]Write to MH i2c: 01 00 00 60 2B 8B [10:22:31]Write i2c OK [10:22:31]MH_I2C_Read... [10:22:31]Read from MH i2c: 01 [10:22:31]MH_I2C_Read... [10:22:31]Read from MH i2c: 01 07 00 [10:22:31]MH_I2C_Read... [10:22:31]Read from MH i2c: 01 07 00 60 2B 00 00 00 00 00 FF 0F A0 [10:22:31]RasterBufferAndPrint [10:22:31]line *****ТОВАРНЫЙ ЧЕК***** [10:22:31]line АЗС 15 [10:22:31]line Партнер нефть [10:22:31]line 02508201610067 [10:22:31]line Кассир : Максатбек у Д. [10:22:31]line Счет N : (1)1040736 [10:22:31]line 15.03.2024 10:14 [10:22:31]line ПРОДАЖА [10:22:31]line ТРК (МРК, ГНК): 73 [10:22:31]line Вид ГСМ : 2710124130 [10:22:31]line Аи-92-К-5 [10:22:31]line 20.000 x 61.90 [10:22:31]line ИТОГ: 1238.00 [10:22:31]line Тип оплаты: Талоны: Топливная Карта [10:22:31]line 74665 [10:22:31]line ______________________ [10:22:31]line (подпись) [10:22:31]written 0, free lines is 4095 [10:22:31]Write to MH i2c: 01 00 00 75 2B A0 [10:22:31]Write i2c OK [10:22:31]MH_I2C_Read... [10:22:31]Read from MH i2c: 01 [10:22:31]MH_I2C_Read... [10:22:31]Read from MH i2c: 01 07 00 [10:22:31]MH_I2C_Read... [10:22:31]Read from MH i2c: 01 07 00 75 2B 00 00 00 00 00 F5 0D A9 [10:22:31]RasterBufferAndPrint [10:22:31]line [10:22:31]line [10:22:31]line [10:22:31]line [10:22:31]line [10:22:31]written 0, free lines is 3575 [10:22:31]MH_Cut [10:22:31]Write to MH i2c: D1 01 00 7C 2B 01 79 [10:22:31]Write i2c OK [10:22:31]MH_I2C_Read... [10:22:31]Read from MH i2c: D1 [10:22:31]MH_I2C_Read... [10:22:31]Read from MH i2c: D1 01 00 [10:22:31]MH_I2C_Read... [10:22:31]Read from MH i2c: D1 01 00 7C 2B 00 78 [10:22:31]Write to MH i2c: 01 00 00 7D 2B A8 [10:22:31]Write i2c OK [10:22:31]MH_I2C_Read... [10:22:32]*** Cut start [10:22:32]*** Purtial cut [10:22:32]*** Stage 1: CUTSNS_PIN = 1 [10:22:32]Read from MH i2c: 01 [10:22:32]MH_I2C_Read... [10:22:32]*** Stop cut motor [10:22:32]*** Cut end [10:22:32]Read from MH i2c: 01 07 00 [10:22:32]MH_I2C_Read... [10:22:32]Read from MH i2c: 01 07 00 7D 2B 00 00 00 00 00 FF 0F BD [10:22:32]process_action print_text done [10:22:32]requested_data is exist [10:22:32]produce_requested_data [10:22:32]requested_item fm.sn is exist - process it [10:22:32]wFMCommunicate request_size=4 [10:22:32]MH_SAM_APDU [10:22:32]CAPDU: 80 11 00 00 [10:22:32]Write to MH i2c: E2 08 00 7E 2B 80 11 00 00 00 00 00 00 23 [10:22:32]Write i2c OK [10:22:32]MH_I2C_Read... [10:22:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:32]Read from MH i2c: E2 [10:22:32]MH_I2C_Read... [10:22:32]Read from MH i2c: E2 17 00 [10:22:32]MH_I2C_Read... [10:22:32]Read from MH i2c: E2 17 00 7E 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 77 [10:22:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:22:32]wFMCommunicate OK [10:22:32]requested_item fd.num is exist - process it [10:22:32]SAM_PROTO_GetFieldsCounters [10:22:32]wFMCommunicate request_size=4 [10:22:32]MH_SAM_APDU [10:22:32]CAPDU: 80 13 00 00 [10:22:32]Write to MH i2c: E2 08 00 7F 2B 80 13 00 00 00 00 00 00 26 [10:22:32]Write i2c OK [10:22:32]MH_I2C_Read... [10:22:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:32]Read from MH i2c: E2 [10:22:32]MH_I2C_Read... [10:22:32]Read from MH i2c: E2 62 00 [10:22:32]MH_I2C_Read... [10:22:32]Read from MH i2c: E2 62 00 7F 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 11 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [10:22: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 11 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:22:32]wFMCommunicate OK [10:22:32]SAM_PROTO_GetFieldsCounters done [10:22:32]requested_item shift.num is exist - process it [10:22:32]requested_item shift.opened is exist - process it [10:22:32]req_shift_opened [10:22:32]FM_GetShiftState [10:22:32]SAM_PROTO_GetShiftState [10:22:32]wFMCommunicate request_size=4 [10:22:32]MH_SAM_APDU [10:22:32]CAPDU: 80 13 01 00 [10:22:32]Write to MH i2c: E2 08 00 80 2B 80 13 01 00 00 00 00 00 28 [10:22:32]Write i2c OK [10:22:32]MH_I2C_Read... [10:22:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:32]Read from MH i2c: E2 [10:22:32]MH_I2C_Read... [10:22:32]Read from MH i2c: E2 0E 00 [10:22:32]MH_I2C_Read... [10:22:32]Read from MH i2c: E2 0E 00 80 2B 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 5C [10:22:32]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:22:32]wFMCommunicate OK [10:22:32]SAM_PROTO_GetShiftState done [10:22:32]FM_GetShiftState done [10:22:32]req_shift_opened done [10:22:32]requested_item shift.open_date is exist - process it [10:22:32]req_shift_open_date [10:22:32]req_shift_open_date done [10:22:32]produce_requested_data done [10:22:32]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108561,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [10:22:32]process_action_free print_text [10:22:32]json_value_free [10:22:32]json_value_free done [10:22:32]process_json_proto returns [10:22:32]Send response to host [10:22:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108561,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [10:22:32]free response buf [10:22:32]execute_script done [10:22:32]execute_script returns [10:22:32]free content buf [10:22:32]Sock 8.Close socket [10:22:32]Sock 8.Thread stoped [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:44]int [10:22:44]Write to MH i2c: 01 00 00 81 2B AC [10:22:44]*** FLAG_PRN_KEY set [10:22:44]Write i2c OK [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: 01 [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: 01 07 00 [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: 01 07 00 81 2B 00 08 00 00 00 FF 0F C9 [10:22:44]state=0 [10:22:44]Key pressed [10:22:44]Feed [10:22:44]Write to MH i2c: D8 00 00 82 2B 84 [10:22:44]Write i2c OK [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: D8 [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: D8 01 00 [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: D8 01 00 82 2B 00 85 [10:22:44]int [10:22:44]Write to MH i2c: 01 00 00 83 2B AE [10:22:44]Write i2c OK [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: 01 [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: 01 07 00 [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: 01 07 00 83 2B 00 48 00 00 00 3C 00 39 [10:22:44]state=2 [10:22:44]Key pressed [10:22:44]int [10:22:44]Write to MH i2c: 01 00 00 84 2B AF [10:22:44]*** FLAG_PRN_KEY reset [10:22:44]Write i2c OK [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: 01 [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: 01 07 00 [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: 01 07 00 84 2B 00 00 00 00 00 F6 0F BB [10:22:44]state=2 [10:22:44]Stop feed [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:09]OFD Sender: No OFD packet to send [10:25:14]OFD Sender: No OFD packet to send [10:25:19]OFD Sender: No OFD packet to send [10:25:24]OFD Sender: No OFD packet to send [10:25:29]OFD Sender: No OFD packet to send [10:25:34]OFD Sender: No OFD packet to send [10:25:39]OFD Sender: No OFD packet to send [10:25:44]OFD Sender: No OFD packet to send [10:25:49]OFD Sender: No OFD packet to send [10:25:54]OFD Sender: No OFD packet to send [10:25:59]OFD Sender: No OFD packet to send [10:26:04]OFD Sender: No OFD packet to send [10:26:09]OFD Sender: No OFD packet to send [10:26:14]OFD Sender: No OFD packet to send [10:26:19]OFD Sender: No OFD packet to send [10:26:24]OFD Sender: No OFD packet to send [10:26:24]accept exits with 9 [10:26:24]New connection [10:26:24]New thread 3067342180 created [10:26:24]Thread 3067198820 joined [10:26:24]Waiting for new connection... [10:26:24] Sock 9.Parse request [10:26:24]Sock 9.Check first char [10:26:24]Sock 9.First char is OK [10:26:24]request: POST /json_proto HTTP/1.0 [10:26:24]Method: POST [10:26:24]URL: /json_proto [10:26:24]Method is POST - this is cgi request [10:26:24]url: /json_proto [10:26:24]query_string will be loaded in cgi processing [10:26:24]execute_cgi json_proto POST (null) [10:26:24]execute_cgi path=json_proto method=POST [10:26:24]POST find Content-Length [10:26:24]Host: 172.17.32.69:8080 [10:26:24]Content-Length: 682 [10:26:24]Content-Type: application/json [10:26:24] [10:26:24]POST finish read [10:26:24]Found Content-Length = 682 [10:26:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 5.220, "sum" : 370.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:24]execute_script... [10:26: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)1040737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 5.220, "sum" : 370.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:24]POST & json_proto [10:26:24]process_json_proto [10:26:24]json parsed OK: [10:26:24]protocol is kg_v1.0 [10:26:24]action value=close_receipt [10:26:24]process_action close_receipt [10:26:24]cmd_close_receipt [10:26:24]MH_GetDate [10:26:24]Write to MH i2c: F0 00 00 85 2B 9F [10:26:24]Write i2c OK [10:26:24]MH_I2C_Read... [10:26:24]Read from MH i2c: F0 [10:26:24]MH_I2C_Read... [10:26:24]Read from MH i2c: F0 09 00 [10:26:24]MH_I2C_Read... [10:26:24]Read from MH i2c: F0 09 00 85 2B 00 53 22 F4 65 D5 0F D3 65 92 [10:26:24]GetLastDocTimeStamp 1710498074 [10:26:24]current date 1710498387 [10:26:24]FM_GetShiftState [10:26:24]SAM_PROTO_GetShiftState [10:26:24]wFMCommunicate request_size=4 [10:26:24]MH_SAM_APDU [10:26:24]CAPDU: 80 13 01 00 [10:26:24]Write to MH i2c: E2 08 00 86 2B 80 13 01 00 00 00 00 00 2E [10:26:24]Write i2c OK [10:26:24]MH_I2C_Read... [10:26:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:24]Read from MH i2c: E2 [10:26:24]MH_I2C_Read... [10:26:24]Read from MH i2c: E2 0E 00 [10:26:24]MH_I2C_Read... [10:26:24]Read from MH i2c: E2 0E 00 86 2B 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 62 [10:26:24]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:26:24]wFMCommunicate OK [10:26:24]SAM_PROTO_GetShiftState done [10:26:24]FM_GetShiftState done [10:26:24]opened in 1710461757 [10:26:24]opened+sec_in_day 1710548157 [10:26:24]quantity*price = 37009 [10:26:24]sum+1 = 37011 [10:26:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 370.00 Внесено: 370.00 СДАЧА: 0.00 НСП 1% : 3.27 НДС 12% : 39.30 Наличными: 370.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 85 15.03.2024 10:26 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108562 ФПД: 189911250121131 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T102628&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108562&fm=189911250121131&tin=02508201610067®Number=0000000000091911&sum=37000 [10:26:25]StoreToDocumentArchive [10:26:25]shift 320 fd 108562 [10:26:25]save to /storage/0320/doc_00108562 [10:26:25]save last doc name /storage/0320/doc_00108562 to /storage/kkm_last_doc_name [10:26:25]save OK [10:26:25]Clear old archive folders... [10:26:25]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:26:25]tlvbuf is 00130F40 [10:26:25]SAM_PROTO_ClearQueue [10:26:25]wFMCommunicate request_size=4 [10:26:25]MH_SAM_APDU [10:26:25]CAPDU: 80 09 00 00 [10:26:25]Write to MH i2c: E2 08 00 93 2B 80 09 00 00 00 00 00 00 30 [10:26:25]Write i2c OK [10:26:25]MH_I2C_Read... [10:26:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:25]Read from MH i2c: E2 [10:26:25]MH_I2C_Read... [10:26:25]Read from MH i2c: E2 03 00 [10:26:25]MH_I2C_Read... [10:26:25]Read from MH i2c: E2 03 00 93 2B 00 90 00 32 [10:26:25]RAPDU: 90 00 [10:26:25]wFMCommunicate OK [10:26:25]SAM_PROTO_ClearQueue done [10:26:25]KKMCreateOFDPacket [10:26:25]OFDProtocolAddRootSTLVToBuf [10:26:25]FM_MakeSignedData [10:26:25]FM_MakeSignedData [10:26:25]SAM_PROTO_SignData [10:26:25]wFMCommunicate request_size=4 [10:26:25]MH_SAM_APDU [10:26:25]CAPDU: 80 0D 01 02 [10:26:25]Write to MH i2c: E2 08 00 94 2B 80 0D 01 02 00 00 00 00 38 [10:26:25]Write i2c OK [10:26:25]MH_I2C_Read... [10:26:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:25]Read from MH i2c: E2 [10:26:25]MH_I2C_Read... [10:26:25]Read from MH i2c: E2 03 00 [10:26:25]MH_I2C_Read... [10:26:25]Read from MH i2c: E2 03 00 94 2B 00 90 00 33 [10:26:25]RAPDU: 90 00 [10:26:25]wFMCommunicate OK [10:26:25]wFMCommunicate request_size=255 [10:26:25]MH_SAM_APDU [10:26:25]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 14 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 92 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 54 22 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 12 A8 01 00 35 04 06 00 [10:26:25]Write to MH i2c: E2 02 01 95 2B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 14 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 92 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 54 22 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 12 A8 01 00 35 04 06 00 00 00 E2 [10:26:25]Write i2c OK [10:26:25]MH_I2C_Read... [10:26:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:25]Read from MH i2c: E2 [10:26:25]MH_I2C_Read... [10:26:25]Read from MH i2c: E2 03 00 [10:26:25]MH_I2C_Read... [10:26:25]Read from MH i2c: E2 03 00 95 2B 00 90 00 34 [10:26:25]RAPDU: 90 00 [10:26:25]wFMCommunicate OK [10:26:25]wFMCommunicate request_size=11 [10:26:25]MH_SAM_APDU [10:26:25]CAPDU: 80 0D 02 02 06 AC B9 28 9A 31 AB [10:26:25]Write to MH i2c: E2 0E 00 96 2B 80 0D 02 02 06 00 AC B9 28 9A 31 AB 00 00 4A [10:26:25]Write i2c OK [10:26:25]MH_I2C_Read... [10:26:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:25]Read from MH i2c: E2 [10:26:25]MH_I2C_Read... [10:26:25]Read from MH i2c: E2 03 00 [10:26:25]MH_I2C_Read... [10:26:25]Read from MH i2c: E2 03 00 96 2B 00 90 00 35 [10:26:25]RAPDU: 90 00 [10:26:25]wFMCommunicate OK [10:26:25]wFMCommunicate request_size=4 [10:26:25]MH_SAM_APDU [10:26:25]CAPDU: 80 0D 03 02 [10:26:25]Write to MH i2c: E2 08 00 97 2B 80 0D 03 02 00 00 00 00 3D [10:26:25]Write i2c OK [10:26:25]MH_I2C_Read... [10:26:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:25]Read from MH i2c: E2 [10:26:25]MH_I2C_Read... [10:26:25]Read from MH i2c: E2 0B 00 [10:26:25]MH_I2C_Read... [10:26:25]Read from MH i2c: E2 0B 00 97 2B 00 62 AA 19 5F 64 36 59 88 90 00 3D [10:26:25]RAPDU: 62 AA 19 5F 64 36 59 88 90 00 [10:26:25]wFMCommunicate OK [10:26:25]SAM_PROTO_SignData done [10:26:25]FM_MakeSignedData done [10:26:25]CreateOFDProtocolMessage [10:26:25]wFMCommunicate request_size=4 [10:26:25]MH_SAM_APDU [10:26:25]CAPDU: 80 11 00 00 [10:26:25]Write to MH i2c: E2 08 00 98 2B 80 11 00 00 00 00 00 00 3D [10:26:25]Write i2c OK [10:26:25]MH_I2C_Read... [10:26:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:25]Read from MH i2c: E2 [10:26:25]MH_I2C_Read... [10:26:25]Read from MH i2c: E2 17 00 [10:26:25]MH_I2C_Read... [10:26:25]Read from MH i2c: E2 17 00 98 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 91 [10:26:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:26:25]wFMCommunicate OK [10:26:25]CreateOFDProtocolMessage done [10:26:25]OFDSenderStorePacket 108562 [10:26:25]StoreOFDPacket docnum=108562 [10:26:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 01 00 00 C5 D0 08 01 09 7A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 14 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 92 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 54 22 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 12 A8 01 00 35 04 06 00 AC B9 28 9A 31 AB 62 AA 19 5F 64 36 59 88 [10:26:25]CheckFolder [10:26:25]dirname=/storage/ofd_packets [10:26:25]CheckFolder done [10:26:25]ProducePacketName [10:26:25]name=ofd_packets/00108562 [10:26:25]NVStorageSaveData ofd_packets/00108562 [10:26:25]File name is /storage/ofd_packets/00108562 [10:26:25]Write 302 bytes [10:26:25]NVStorageSaveData done [10:26:25]OFDSenderStorePacket done [10:26:25]KKMCreateOFDPacket done [10:26:25]NVStorageSaveData kkm_last_timestamp [10:26:25]File name is /storage/kkm_last_timestamp [10:26:25]Write 4 bytes [10:26:25]NVStorageSaveData done [10:26:25]ExternCall_PrintAddStr [10:26:25]wPrintStart [10:26:25]Write to MH i2c: 01 00 00 99 2B C4 [10:26:25]Write i2c OK [10:26:25]MH_I2C_Read... [10:26:25]Read from MH i2c: 01 [10:26:25]MH_I2C_Read... [10:26:25]Read from MH i2c: 01 07 00 [10:26:25]MH_I2C_Read... [10:26:25]Read from MH i2c: 01 07 00 99 2B 00 00 00 00 00 FF 0F D9 [10:26:25]RasterBufferAndPrint [10:26:25]line Счет N : (1)1040737 [10:26:25]line ИНН: 02508201610067 [10:26:25]line Контрольно-Кассовый Чек [10:26:25]line ПРОДАЖА [10:26:25]line ТРК (МРК, ГНК) : 2 [10:26:25]line Товар: 2710194210 [10:26:25]line ДТ(л)-К-5 [10:26:25]line 5.220 * 70.90 [10:26:25]line = 370.10 [10:26:25]line НДС 12% НСП 1% [10:26:25]line > о реализуемом товаре [10:26:25]line ОКРУГЛЕНИЕ: -0.10 [10:26:25]line ИТОГО: 370.00 [10:26:25]line Внесено: 370.00 [10:26:25]line СДАЧА: 0.00 [10:26:25]line НСП 1% : 3.27 [10:26:25]line НДС 12% : 39.30 [10:26:25]line Наличными: 370.00 [10:26:25]line Безнал.: 0.00 [10:26:25]line Место: АЗС № 15 "Партнер Нефть" [10:26:25]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [10:26:25]line СНО: Общий режим [10:26:25]line Чек 85 15.03.2024 10:26 [10:26:25]line Смена: 320 ФФД: 1.0 [10:26:25]line ЗНМ: 0300000266 [10:26:25]line РНМ: 0000000000091911 [10:26:25]line Версия ККМ: 001 [10:26:25]line ФМ: 0000000000871818 [10:26:25]line ФД: 108562 [10:26:25]line ФПД: 189911250121131 [10:26:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T102628&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108562&fm=189911250121131&tin=02508201610067®Number=0000000000091911&sum=37000 [10:26:26]OFD Sender: Processing packet 108562 [packets to send 29, broken 28] [10:26:26]ProducePacketName [10:26:26]name=ofd_packets/00108562 [10:26:26]OFD Sender: To server: pG, [10:26:26]CommunicateWithHost lk.salyk.kg:30040 [10:26:26]ConnectInit lk.salyk.kg [10:26:26]written 0, free lines is 4095 [10:26:26]Connected sock=10 [10:26: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 31 38 10 01 00 00 C5 D0 08 01 09 7A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 14 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 92 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 54 22 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 12 A8 01 00 35 04 06 00 AC B9 28 9A 31 AB 62 AA 19 5F 64 36 59 88 [10:26: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 31 38 4F 00 00 00 55 D8 47 00 8D 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 12 A8 01 00 F4 03 04 00 F4 CD F3 65 B6 04 01 00 00 3F 4A 33 85 78 5C 19 E3 [10:26:26]CommunicateWithHost err = 0 [10:26:26]CheckOFDResponse [10:26:26]1017 (14) - 77093643461234 [10:26:26]1041 (16) - 0000000000871818 [10:26:26]1040 (4) - 108562 [10:26:26]1012 (4) - 15.03.2024 04:26 [10:26:26]1206 (1) - 0 [10:26:26]OFD Sender: Remove packet 108562 [10:26:26]ProducePacketName [10:26:26]name=ofd_packets/00108562 [10:26:26]NVStorageDeleteData [10:26:26]Write to MH i2c: 01 00 00 C4 2B EF [10:26:26]Write i2c OK [10:26:26]MH_I2C_Read... [10:26:26]Read from MH i2c: 01 [10:26:26]MH_I2C_Read... [10:26:26]Read from MH i2c: 01 07 00 [10:26:26]MH_I2C_Read... [10:26:26]Read from MH i2c: 01 07 00 C4 2B 00 00 00 00 00 03 0D 06 [10:26:26]RasterBufferAndPrint [10:26:26]line [10:26:26]line [10:26:26]line [10:26:26]line [10:26:26]line [10:26:26]written 0, free lines is 3339 [10:26:26]MH_Cut [10:26:26]Write to MH i2c: D1 01 00 CB 2B 01 C8 [10:26:26]Write i2c OK [10:26:26]MH_I2C_Read... [10:26:26]Read from MH i2c: D1 [10:26:26]MH_I2C_Read... [10:26:26]Read from MH i2c: D1 01 00 [10:26:26]MH_I2C_Read... [10:26:26]Read from MH i2c: D1 01 00 CB 2B 00 C7 [10:26:26]Write to MH i2c: 01 00 00 CC 2B F7 [10:26:26]Write i2c OK [10:26:26]MH_I2C_Read... [10:26:27]OFD Sender: No OFD packet to send [10:26:27]*** Cut start [10:26:27]*** Purtial cut [10:26:27]*** Stage 1: CUTSNS_PIN = 1 [10:26:27]Read from MH i2c: 01 [10:26:27]MH_I2C_Read... [10:26:27]*** Stop cut motor [10:26:27]*** Cut end [10:26:27]Read from MH i2c: 01 07 00 [10:26:27]MH_I2C_Read... [10:26:27]Read from MH i2c: 01 07 00 CC 2B 00 00 00 00 00 FF 0F 0C [10:26:27]process_action close_receipt done [10:26:27]requested_data is exist [10:26:27]produce_requested_data [10:26:27]requested_item fm.sn is exist - process it [10:26:27]wFMCommunicate request_size=4 [10:26:27]MH_SAM_APDU [10:26:27]CAPDU: 80 11 00 00 [10:26:27]Write to MH i2c: E2 08 00 CD 2B 80 11 00 00 00 00 00 00 72 [10:26:27]Write i2c OK [10:26:27]MH_I2C_Read... [10:26:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:27]Read from MH i2c: E2 [10:26:27]MH_I2C_Read... [10:26:27]Read from MH i2c: E2 17 00 [10:26:27]MH_I2C_Read... [10:26:27]Read from MH i2c: E2 17 00 CD 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 C6 [10:26:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:26:27]wFMCommunicate OK [10:26:27]requested_item fd.num is exist - process it [10:26:27]SAM_PROTO_GetFieldsCounters [10:26:27]wFMCommunicate request_size=4 [10:26:27]MH_SAM_APDU [10:26:27]CAPDU: 80 13 00 00 [10:26:27]Write to MH i2c: E2 08 00 CE 2B 80 13 00 00 00 00 00 00 75 [10:26:27]Write i2c OK [10:26:27]MH_I2C_Read... [10:26:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:27]Read from MH i2c: E2 [10:26:27]MH_I2C_Read... [10:26:27]Read from MH i2c: E2 62 00 [10:26:27]MH_I2C_Read... [10:26:27]Read from MH i2c: E2 62 00 CE 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 12 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [10:26:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 12 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:26:27]wFMCommunicate OK [10:26:27]SAM_PROTO_GetFieldsCounters done [10:26:27]requested_item shift.num is exist - process it [10:26:27]requested_item shift.opened is exist - process it [10:26:27]req_shift_opened [10:26:27]FM_GetShiftState [10:26:27]SAM_PROTO_GetShiftState [10:26:27]wFMCommunicate request_size=4 [10:26:27]MH_SAM_APDU [10:26:27]CAPDU: 80 13 01 00 [10:26:27]Write to MH i2c: E2 08 00 CF 2B 80 13 01 00 00 00 00 00 77 [10:26:27]Write i2c OK [10:26:27]MH_I2C_Read... [10:26:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:27]Read from MH i2c: E2 [10:26:27]MH_I2C_Read... [10:26:27]Read from MH i2c: E2 0E 00 [10:26:27]MH_I2C_Read... [10:26:27]Read from MH i2c: E2 0E 00 CF 2B 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 AB [10:26:27]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:26:27]wFMCommunicate OK [10:26:27]SAM_PROTO_GetShiftState done [10:26:27]FM_GetShiftState done [10:26:27]req_shift_opened done [10:26:27]requested_item shift.open_date is exist - process it [10:26:27]req_shift_open_date [10:26:27]req_shift_open_date done [10:26:27]produce_requested_data done [10:26:27]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108562,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [10:26:27]process_action_free close_receipt [10:26:27]json_value_free [10:26:27]json_value_free done [10:26:27]process_json_proto returns [10:26:27]Send response to host [10:26:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108562,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [10:26:27]free response buf [10:26:27]execute_script done [10:26:27]execute_script returns [10:26:27]free content buf [10:26:27]Sock 9.Close socket [10:26:27]Sock 9.Thread stoped [10:26:32]OFD Sender: No OFD packet to send [10:26:37]OFD Sender: No OFD packet to send [10:26:42]OFD Sender: No OFD packet to send [10:26:47]OFD Sender: No OFD packet to send [10:26:52]OFD Sender: No OFD packet to send [10:26:57]OFD Sender: No OFD packet to send [10:27:02]OFD Sender: No OFD packet to send [10:27:07]OFD Sender: No OFD packet to send [10:27:12]OFD Sender: No OFD packet to send [10:27:17]OFD Sender: No OFD packet to send [10:27:22]OFD Sender: No OFD packet to send [10:27:27]OFD Sender: No OFD packet to send [10:27:32]OFD Sender: No OFD packet to send [10:27:37]OFD Sender: No OFD packet to send [10:27:42]OFD Sender: No OFD packet to send [10:27:47]OFD Sender: No OFD packet to send [10:27:52]OFD Sender: No OFD packet to send [10:27:57]OFD Sender: No OFD packet to send [10:28:02]OFD Sender: No OFD packet to send [10:28:07]OFD Sender: No OFD packet to send [10:28:11]accept exits with 8 [10:28:11]New connection [10:28:11]New thread 3067198820 created [10:28:11]Thread 3067342180 joined [10:28:11]Waiting for new connection... [10:28:11] Sock 8.Parse request [10:28:11]Sock 8.Check first char [10:28:11]Sock 8.First char is OK [10:28:11]request: POST /json_proto HTTP/1.0 [10:28:11]Method: POST [10:28:11]URL: /json_proto [10:28:11]Method is POST - this is cgi request [10:28:11]url: /json_proto [10:28:11]query_string will be loaded in cgi processing [10:28:11]execute_cgi json_proto POST (null) [10:28:11]execute_cgi path=json_proto method=POST [10:28:11]POST find Content-Length [10:28:11]Host: 172.17.32.69:8080 [10:28:11]Content-Length: 676 [10:28:11]Content-Type: application/json [10:28:11] [10:28:11]POST finish read [10:28:11]Found Content-Length = 676 [10:28:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:11]execute_script... [10:28:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:11]POST & json_proto [10:28:11]process_json_proto [10:28:11]json parsed OK: [10:28:11]protocol is kg_v1.0 [10:28:11]action value=close_receipt [10:28:11]process_action close_receipt [10:28:11]cmd_close_receipt [10:28:11]MH_GetDate [10:28:11]Write to MH i2c: F0 00 00 D0 2B EA [10:28:11]Write i2c OK [10:28:11]MH_I2C_Read... [10:28:11]Read from MH i2c: F0 [10:28:11]MH_I2C_Read... [10:28:11]Read from MH i2c: F0 09 00 [10:28:11]MH_I2C_Read... [10:28:11]Read from MH i2c: F0 09 00 D0 2B 00 BF 22 F4 65 D5 0F D3 65 49 [10:28:11]GetLastDocTimeStamp 1710498388 [10:28:11]current date 1710498495 [10:28:11]FM_GetShiftState [10:28:11]SAM_PROTO_GetShiftState [10:28:11]wFMCommunicate request_size=4 [10:28:11]MH_SAM_APDU [10:28:11]CAPDU: 80 13 01 00 [10:28:11]Write to MH i2c: E2 08 00 D1 2B 80 13 01 00 00 00 00 00 79 [10:28:11]Write i2c OK [10:28:11]MH_I2C_Read... [10:28:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:11]Read from MH i2c: E2 [10:28:11]MH_I2C_Read... [10:28:11]Read from MH i2c: E2 0E 00 [10:28:11]MH_I2C_Read... [10:28:11]Read from MH i2c: E2 0E 00 D1 2B 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 AD [10:28:11]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:28:11]wFMCommunicate OK [10:28:11]SAM_PROTO_GetShiftState done [10:28:11]FM_GetShiftState done [10:28:11]opened in 1710461757 [10:28:11]opened+sec_in_day 1710548157 [10:28:11]quantity*price = 100011 [10:28:11]sum+1 = 100012 [10:28:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 86 15.03.2024 10:28 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108563 ФПД: 29352966929832 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T102815&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108563&fm=29352966929832&tin=02508201610067®Number=0000000000091911&sum=100000 [10:28:12]StoreToDocumentArchive [10:28:12]shift 320 fd 108563 [10:28:12]save to /storage/0320/doc_00108563 [10:28:12]save last doc name /storage/0320/doc_00108563 to /storage/kkm_last_doc_name [10:28:12]save OK [10:28:12]Clear old archive folders... [10:28:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:28:12]tlvbuf is B6F071C0 [10:28:12]SAM_PROTO_ClearQueue [10:28:12]wFMCommunicate request_size=4 [10:28:12]MH_SAM_APDU [10:28:12]CAPDU: 80 09 00 00 [10:28:12]Write to MH i2c: E2 08 00 DE 2B 80 09 00 00 00 00 00 00 7B [10:28:12]Write i2c OK [10:28:12]MH_I2C_Read... [10:28:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:12]Read from MH i2c: E2 [10:28:12]MH_I2C_Read... [10:28:12]Read from MH i2c: E2 03 00 [10:28:12]MH_I2C_Read... [10:28:12]Read from MH i2c: E2 03 00 DE 2B 00 90 00 7D [10:28:12]RAPDU: 90 00 [10:28:12]wFMCommunicate OK [10:28:12]SAM_PROTO_ClearQueue done [10:28:12]KKMCreateOFDPacket [10:28:12]OFDProtocolAddRootSTLVToBuf [10:28:12]FM_MakeSignedData [10:28:12]FM_MakeSignedData [10:28:12]SAM_PROTO_SignData [10:28:12]wFMCommunicate request_size=4 [10:28:12]MH_SAM_APDU [10:28:12]CAPDU: 80 0D 01 02 [10:28:12]Write to MH i2c: E2 08 00 DF 2B 80 0D 01 02 00 00 00 00 83 [10:28:12]Write i2c OK [10:28:12]MH_I2C_Read... [10:28:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:12]Read from MH i2c: E2 [10:28:12]MH_I2C_Read... [10:28:12]Read from MH i2c: E2 03 00 [10:28:12]MH_I2C_Read... [10:28:12]Read from MH i2c: E2 03 00 DF 2B 00 90 00 7E [10:28:12]RAPDU: 90 00 [10:28:12]wFMCommunicate OK [10:28:12]wFMCommunicate request_size=255 [10:28:12]MH_SAM_APDU [10:28:12]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 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 56 00 00 00 F4 03 04 00 BF 22 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 13 A8 01 00 35 04 06 00 [10:28:12]Write to MH i2c: E2 02 01 E0 2B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 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 56 00 00 00 F4 03 04 00 BF 22 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 13 A8 01 00 35 04 06 00 00 00 E3 [10:28:12]Write i2c OK [10:28:12]MH_I2C_Read... [10:28:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:13]Read from MH i2c: E2 [10:28:13]MH_I2C_Read... [10:28:13]Read from MH i2c: E2 03 00 [10:28:13]MH_I2C_Read... [10:28:13]Read from MH i2c: E2 03 00 E0 2B 00 90 00 7F [10:28:13]RAPDU: 90 00 [10:28:13]wFMCommunicate OK [10:28:13]wFMCommunicate request_size=11 [10:28:13]MH_SAM_APDU [10:28:13]CAPDU: 80 0D 02 02 06 1A B2 45 2A BD A8 [10:28:13]Write to MH i2c: E2 0E 00 E1 2B 80 0D 02 02 06 00 1A B2 45 2A BD A8 00 00 32 [10:28:13]Write i2c OK [10:28:13]MH_I2C_Read... [10:28:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:13]Read from MH i2c: E2 [10:28:13]MH_I2C_Read... [10:28:13]Read from MH i2c: E2 03 00 [10:28:13]MH_I2C_Read... [10:28:13]Read from MH i2c: E2 03 00 E1 2B 00 90 00 80 [10:28:13]RAPDU: 90 00 [10:28:13]wFMCommunicate OK [10:28:13]wFMCommunicate request_size=4 [10:28:13]MH_SAM_APDU [10:28:13]CAPDU: 80 0D 03 02 [10:28:13]Write to MH i2c: E2 08 00 E2 2B 80 0D 03 02 00 00 00 00 88 [10:28:13]Write i2c OK [10:28:13]MH_I2C_Read... [10:28:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:13]Read from MH i2c: E2 [10:28:13]MH_I2C_Read... [10:28:13]Read from MH i2c: E2 0B 00 [10:28:13]MH_I2C_Read... [10:28:13]Read from MH i2c: E2 0B 00 E2 2B 00 24 61 F3 AC 7B E0 7A 6F 90 00 F1 [10:28:13]RAPDU: 24 61 F3 AC 7B E0 7A 6F 90 00 [10:28:13]wFMCommunicate OK [10:28:13]SAM_PROTO_SignData done [10:28:13]FM_MakeSignedData done [10:28:13]CreateOFDProtocolMessage [10:28:13]wFMCommunicate request_size=4 [10:28:13]MH_SAM_APDU [10:28:13]CAPDU: 80 11 00 00 [10:28:13]Write to MH i2c: E2 08 00 E3 2B 80 11 00 00 00 00 00 00 88 [10:28:13]Write i2c OK [10:28:13]MH_I2C_Read... [10:28:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:13]Read from MH i2c: E2 [10:28:13]MH_I2C_Read... [10:28:13]Read from MH i2c: E2 17 00 [10:28:13]MH_I2C_Read... [10:28:13]Read from MH i2c: E2 17 00 E3 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 DC [10:28:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:28:13]wFMCommunicate OK [10:28:13]CreateOFDProtocolMessage done [10:28:13]OFDSenderStorePacket 108563 [10:28:13]StoreOFDPacket docnum=108563 [10:28:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 01 00 00 8A ED 08 01 7B 37 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 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 56 00 00 00 F4 03 04 00 BF 22 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 13 A8 01 00 35 04 06 00 1A B2 45 2A BD A8 24 61 F3 AC 7B E0 7A 6F [10:28:13]CheckFolder [10:28:13]dirname=/storage/ofd_packets [10:28:13]CheckFolder done [10:28:13]ProducePacketName [10:28:13]name=ofd_packets/00108563 [10:28:13]NVStorageSaveData ofd_packets/00108563 [10:28:13]File name is /storage/ofd_packets/00108563 [10:28:13]Write 302 bytes [10:28:13]NVStorageSaveData done [10:28:13]OFDSenderStorePacket done [10:28:13]KKMCreateOFDPacket done [10:28:13]NVStorageSaveData kkm_last_timestamp [10:28:13]File name is /storage/kkm_last_timestamp [10:28:13]Write 4 bytes [10:28:13]NVStorageSaveData done [10:28:13]ExternCall_PrintAddStr [10:28:13]wPrintStart [10:28:13]Write to MH i2c: 01 00 00 E4 2B 0F [10:28:13]Write i2c OK [10:28:13]MH_I2C_Read... [10:28:13]Read from MH i2c: 01 [10:28:13]MH_I2C_Read... [10:28:13]Read from MH i2c: 01 07 00 [10:28:13]MH_I2C_Read... [10:28:13]Read from MH i2c: 01 07 00 E4 2B 00 00 00 00 00 FF 0F 24 [10:28:13]RasterBufferAndPrint [10:28:13]line Счет N : (1)1040738 [10:28:13]line ИНН: 02508201610067 [10:28:13]line Контрольно-Кассовый Чек [10:28:13]line ПРОДАЖА [10:28:13]line ТРК (МРК, ГНК) : 61 [10:28:13]line Товар: 2710124130 [10:28:13]line Super-92-К-5 [10:28:13]line 15.900 * 62.90 [10:28:13]line = 1000.11 [10:28:13]line НДС 12% НСП 1% [10:28:13]line > о реализуемом товаре [10:28:13]line ОКРУГЛЕНИЕ: -0.11 [10:28:13]line ИТОГО: 1000.00 [10:28:13]line Внесено: 1000.00 [10:28:13]line СДАЧА: 0.00 [10:28:13]line НСП 1% : 8.85 [10:28:13]line НДС 12% : 106.21 [10:28:13]line Наличными: 1000.00 [10:28:13]line Безнал.: 0.00 [10:28:13]line Место: АЗС № 15 "Партнер Нефть" [10:28:13]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [10:28:13]line СНО: Общий режим [10:28:13]line Чек 86 15.03.2024 10:28 [10:28:13]line Смена: 320 ФФД: 1.0 [10:28:13]line ЗНМ: 0300000266 [10:28:13]line РНМ: 0000000000091911 [10:28:13]line Версия ККМ: 001 [10:28:13]line ФМ: 0000000000871818 [10:28:13]line ФД: 108563 [10:28:13]line ФПД: 29352966929832 [10:28:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T102815&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108563&fm=29352966929832&tin=02508201610067®Number=0000000000091911&sum=100000 [10:28:13]OFD Sender: Processing packet 108563 [packets to send 29, broken 28] [10:28:13]ProducePacketName [10:28:13]name=ofd_packets/00108563 [10:28:13]OFD Sender: To server: pG, [10:28:13]CommunicateWithHost lk.salyk.kg:30040 [10:28:13]ConnectInit lk.salyk.kg [10:28:13]written 0, free lines is 4095 [10:28:13]Connected sock=10 [10:28: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 31 38 10 01 00 00 8A ED 08 01 7B 37 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 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 56 00 00 00 F4 03 04 00 BF 22 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 13 A8 01 00 35 04 06 00 1A B2 45 2A BD A8 24 61 F3 AC 7B E0 7A 6F [10:28:14]Write to MH i2c: 01 00 00 0F 2C 3B [10:28:14]Write i2c OK [10:28:14]MH_I2C_Read... [10:28:14]Read from MH i2c: 01 [10:28:14]MH_I2C_Read... [10:28:14]Read from MH i2c: 01 07 00 [10:28:14]MH_I2C_Read... [10:28:14]Read from MH i2c: 01 07 00 0F 2C 00 00 00 00 00 DA 0C 28 [10:28:14]RasterBufferAndPrint [10:28:14]line [10:28:14]line [10:28:14]line [10:28:14]line [10:28:14]line [10:28:14]written 0, free lines is 3296 [10:28:14]MH_Cut [10:28:14]Write to MH i2c: D1 01 00 16 2C 01 14 [10:28:14]Write i2c OK [10:28:14]MH_I2C_Read... [10:28:14]Read from MH i2c: D1 [10:28:14]MH_I2C_Read... [10:28:14]Read from MH i2c: D1 01 00 [10:28:14]MH_I2C_Read... [10:28:14]Read from MH i2c: D1 01 00 16 2C 00 13 [10:28:14]Write to MH i2c: 01 00 00 17 2C 43 [10:28:14]Write i2c OK [10:28:14]MH_I2C_Read... [10:28: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 31 38 4F 00 00 00 9A 81 47 00 36 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 31 38 10 04 04 00 13 A8 01 00 F4 03 04 00 5F CE F3 65 B6 04 01 00 00 75 C6 DE A6 44 11 3B DE [10:28:14]CommunicateWithHost err = 0 [10:28:14]CheckOFDResponse [10:28:14]1017 (14) - 77093643461234 [10:28:14]1041 (16) - 0000000000871818 [10:28:14]1040 (4) - 108563 [10:28:14]1012 (4) - 15.03.2024 04:28 [10:28:14]1206 (1) - 0 [10:28:14]OFD Sender: Remove packet 108563 [10:28:14]ProducePacketName [10:28:14]name=ofd_packets/00108563 [10:28:14]NVStorageDeleteData [10:28:14]OFD Sender: No OFD packet to send [10:28:14]*** Cut start [10:28:14]*** Purtial cut [10:28:14]*** Stage 1: CUTSNS_PIN = 1 [10:28:15]Read from MH i2c: 01 [10:28:15]MH_I2C_Read... [10:28:15]*** Stop cut motor [10:28:15]*** Cut end [10:28:15]Read from MH i2c: 01 07 00 [10:28:15]MH_I2C_Read... [10:28:15]Read from MH i2c: 01 07 00 17 2C 00 00 00 00 00 FF 0F 58 [10:28:15]process_action close_receipt done [10:28:15]requested_data is exist [10:28:15]produce_requested_data [10:28:15]requested_item fm.sn is exist - process it [10:28:15]wFMCommunicate request_size=4 [10:28:15]MH_SAM_APDU [10:28:15]CAPDU: 80 11 00 00 [10:28:15]Write to MH i2c: E2 08 00 18 2C 80 11 00 00 00 00 00 00 BE [10:28:15]Write i2c OK [10:28:15]MH_I2C_Read... [10:28:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:15]Read from MH i2c: E2 [10:28:15]MH_I2C_Read... [10:28:15]Read from MH i2c: E2 17 00 [10:28:15]MH_I2C_Read... [10:28:15]Read from MH i2c: E2 17 00 18 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 12 [10:28:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:28:15]wFMCommunicate OK [10:28:15]requested_item fd.num is exist - process it [10:28:15]SAM_PROTO_GetFieldsCounters [10:28:15]wFMCommunicate request_size=4 [10:28:15]MH_SAM_APDU [10:28:15]CAPDU: 80 13 00 00 [10:28:15]Write to MH i2c: E2 08 00 19 2C 80 13 00 00 00 00 00 00 C1 [10:28:15]Write i2c OK [10:28:15]MH_I2C_Read... [10:28:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:15]Read from MH i2c: E2 [10:28:15]MH_I2C_Read... [10:28:15]Read from MH i2c: E2 62 00 [10:28:15]MH_I2C_Read... [10:28:15]Read from MH i2c: E2 62 00 19 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 13 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [10:28:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 13 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:28:15]wFMCommunicate OK [10:28:15]SAM_PROTO_GetFieldsCounters done [10:28:15]requested_item shift.num is exist - process it [10:28:15]requested_item shift.opened is exist - process it [10:28:15]req_shift_opened [10:28:15]FM_GetShiftState [10:28:15]SAM_PROTO_GetShiftState [10:28:15]wFMCommunicate request_size=4 [10:28:15]MH_SAM_APDU [10:28:15]CAPDU: 80 13 01 00 [10:28:15]Write to MH i2c: E2 08 00 1A 2C 80 13 01 00 00 00 00 00 C3 [10:28:15]Write i2c OK [10:28:15]MH_I2C_Read... [10:28:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:15]Read from MH i2c: E2 [10:28:15]MH_I2C_Read... [10:28:15]Read from MH i2c: E2 0E 00 [10:28:15]MH_I2C_Read... [10:28:15]Read from MH i2c: E2 0E 00 1A 2C 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 F7 [10:28:15]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:28:15]wFMCommunicate OK [10:28:15]SAM_PROTO_GetShiftState done [10:28:15]FM_GetShiftState done [10:28:15]req_shift_opened done [10:28:15]requested_item shift.open_date is exist - process it [10:28:15]req_shift_open_date [10:28:15]req_shift_open_date done [10:28:15]produce_requested_data done [10:28:15]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108563,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [10:28:15]process_action_free close_receipt [10:28:15]json_value_free [10:28:15]json_value_free done [10:28:15]process_json_proto returns [10:28:15]Send response to host [10:28:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108563,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [10:28:15]free response buf [10:28:15]execute_script done [10:28:15]execute_script returns [10:28:15]free content buf [10:28:15]Sock 8.Close socket [10:28:15]Sock 8.Thread stoped [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:43]accept exits with 9 [10:29:43]New connection [10:29:43]New thread 3067342180 created [10:29:43]Thread 3067198820 joined [10:29:43]Waiting for new connection... [10:29:43] Sock 9.Parse request [10:29:43]Sock 9.Check first char [10:29:43]Sock 9.First char is OK [10:29:43]request: POST /json_proto HTTP/1.0 [10:29:43]Method: POST [10:29:43]URL: /json_proto [10:29:43]Method is POST - this is cgi request [10:29:43]url: /json_proto [10:29:43]query_string will be loaded in cgi processing [10:29:43]execute_cgi json_proto POST (null) [10:29:43]execute_cgi path=json_proto method=POST [10:29:43]POST find Content-Length [10:29:43]Host: 172.17.32.69:8080 [10:29:43]Content-Length: 1198 [10:29:43]Content-Type: application/json [10:29:43] [10:29:43]POST finish read [10:29:43]Found Content-Length = 1198 [10:29:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040739\u000A15.03.2024 10:21\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 73\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 619.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3832576\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:43]execute_script... [10:29:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040739\u000A15.03.2024 10:21\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 73\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 619.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3832576\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:43]POST & json_proto [10:29:43]process_json_proto [10:29:43]json parsed OK: [10:29:43]protocol is kg_v1.0 [10:29:43]action value=print_text [10:29:43]process_action print_text [10:29:43]cmd_print_text [10:29:43]ExternCall_PrintAddStr [10:29:43]wPrintStart [10:29:43]Write to MH i2c: 01 00 00 1B 2C 47 [10:29:43]Write i2c OK [10:29:43]MH_I2C_Read... [10:29:43]Read from MH i2c: 01 [10:29:43]MH_I2C_Read... [10:29:43]Read from MH i2c: 01 07 00 [10:29:43]MH_I2C_Read... [10:29:43]Read from MH i2c: 01 07 00 1B 2C 00 00 00 00 00 FF 0F 5C [10:29:43]RasterBufferAndPrint [10:29:43]line *****ТОВАРНЫЙ ЧЕК***** [10:29:43]line АЗС 15 [10:29:43]line Партнер нефть [10:29:43]line 02508201610067 [10:29:43]line Кассир : Максатбек у Д. [10:29:43]line Счет N : (1)1040739 [10:29:43]line 15.03.2024 10:21 [10:29:43]line ПРОДАЖА [10:29:43]line ТРК (МРК, ГНК): 73 [10:29:43]line Вид ГСМ : 2710124130 [10:29:43]line Аи-92-К-5 [10:29:43]line 10.000 x 61.90 [10:29:43]line ИТОГ: 619.00 [10:29:43]line Тип оплаты: Талоны: Партнер нефть [10:29:43]line 3832576 [10:29:43]line ______________________ [10:29:43]line (подпись) [10:29:43]written 0, free lines is 4095 [10:29:43]Write to MH i2c: 01 00 00 30 2C 5C [10:29:43]Write i2c OK [10:29:43]MH_I2C_Read... [10:29:43]Read from MH i2c: 01 [10:29:43]MH_I2C_Read... [10:29:43]Read from MH i2c: 01 07 00 [10:29:43]MH_I2C_Read... [10:29:43]Read from MH i2c: 01 07 00 30 2C 00 00 00 00 00 F6 0D 66 [10:29:43]RasterBufferAndPrint [10:29:43]line [10:29:43]line [10:29:43]line [10:29:43]line [10:29:43]line [10:29:43]written 0, free lines is 3575 [10:29:43]MH_Cut [10:29:43]Write to MH i2c: D1 01 00 37 2C 01 35 [10:29:43]Write i2c OK [10:29:43]MH_I2C_Read... [10:29:43]Read from MH i2c: D1 [10:29:43]MH_I2C_Read... [10:29:43]Read from MH i2c: D1 01 00 [10:29:43]MH_I2C_Read... [10:29:43]Read from MH i2c: D1 01 00 37 2C 00 34 [10:29:43]Write to MH i2c: 01 00 00 38 2C 64 [10:29:43]Write i2c OK [10:29:43]MH_I2C_Read... [10:29:43]*** Cut start [10:29:43]*** Purtial cut [10:29:43]*** Stage 1: CUTSNS_PIN = 1 [10:29:44]Read from MH i2c: 01 [10:29:44]MH_I2C_Read... [10:29:44]*** Stop cut motor [10:29:44]*** Cut end [10:29:44]Read from MH i2c: 01 07 00 [10:29:44]MH_I2C_Read... [10:29:44]Read from MH i2c: 01 07 00 38 2C 00 00 00 00 00 FF 0F 79 [10:29:44]process_action print_text done [10:29:44]requested_data is exist [10:29:44]produce_requested_data [10:29:44]requested_item fm.sn is exist - process it [10:29:44]wFMCommunicate request_size=4 [10:29:44]MH_SAM_APDU [10:29:44]CAPDU: 80 11 00 00 [10:29:44]Write to MH i2c: E2 08 00 39 2C 80 11 00 00 00 00 00 00 DF [10:29:44]Write i2c OK [10:29:44]MH_I2C_Read... [10:29:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:44]Read from MH i2c: E2 [10:29:44]MH_I2C_Read... [10:29:44]Read from MH i2c: E2 17 00 [10:29:44]MH_I2C_Read... [10:29:44]Read from MH i2c: E2 17 00 39 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 33 [10:29:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:29:44]wFMCommunicate OK [10:29:44]requested_item fd.num is exist - process it [10:29:44]SAM_PROTO_GetFieldsCounters [10:29:44]wFMCommunicate request_size=4 [10:29:44]MH_SAM_APDU [10:29:44]CAPDU: 80 13 00 00 [10:29:44]Write to MH i2c: E2 08 00 3A 2C 80 13 00 00 00 00 00 00 E2 [10:29:44]Write i2c OK [10:29:44]MH_I2C_Read... [10:29:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:44]Read from MH i2c: E2 [10:29:44]MH_I2C_Read... [10:29:44]Read from MH i2c: E2 62 00 [10:29:44]MH_I2C_Read... [10:29:44]Read from MH i2c: E2 62 00 3A 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 13 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [10:29:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 13 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:29:44]wFMCommunicate OK [10:29:44]SAM_PROTO_GetFieldsCounters done [10:29:44]requested_item shift.num is exist - process it [10:29:44]requested_item shift.opened is exist - process it [10:29:44]req_shift_opened [10:29:44]FM_GetShiftState [10:29:44]SAM_PROTO_GetShiftState [10:29:44]wFMCommunicate request_size=4 [10:29:44]MH_SAM_APDU [10:29:44]CAPDU: 80 13 01 00 [10:29:44]Write to MH i2c: E2 08 00 3B 2C 80 13 01 00 00 00 00 00 E4 [10:29:44]Write i2c OK [10:29:44]MH_I2C_Read... [10:29:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:44]Read from MH i2c: E2 [10:29:44]MH_I2C_Read... [10:29:44]Read from MH i2c: E2 0E 00 [10:29:44]MH_I2C_Read... [10:29:44]Read from MH i2c: E2 0E 00 3B 2C 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 18 [10:29:44]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:29:44]wFMCommunicate OK [10:29:44]SAM_PROTO_GetShiftState done [10:29:44]FM_GetShiftState done [10:29:44]req_shift_opened done [10:29:44]requested_item shift.open_date is exist - process it [10:29:44]req_shift_open_date [10:29:44]req_shift_open_date done [10:29:44]produce_requested_data done [10:29:44]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108563,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [10:29:44]process_action_free print_text [10:29:44]json_value_free [10:29:44]json_value_free done [10:29:44]process_json_proto returns [10:29:44]Send response to host [10:29:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108563,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [10:29:44]free response buf [10:29:44]execute_script done [10:29:44]execute_script returns [10:29:44]free content buf [10:29:44]Sock 9.Close socket [10:29:44]Sock 9.Thread stoped [10:29:44]OFD Sender: No OFD packet to send [10:29:44]int [10:29:44]Write to MH i2c: 01 00 00 3C 2C 68 [10:29:44]*** FLAG_PRN_KEY set [10:29:44]Write i2c OK [10:29:44]MH_I2C_Read... [10:29:44]Read from MH i2c: 01 [10:29:44]MH_I2C_Read... [10:29:44]Read from MH i2c: 01 07 00 [10:29:44]MH_I2C_Read... [10:29:44]Read from MH i2c: 01 07 00 3C 2C 00 08 00 00 00 FF 0F 85 [10:29:44]state=0 [10:29:44]Key pressed [10:29:44]Feed [10:29:44]Write to MH i2c: D8 00 00 3D 2C 40 [10:29:44]Write i2c OK [10:29:44]MH_I2C_Read... [10:29:44]Read from MH i2c: D8 [10:29:44]MH_I2C_Read... [10:29:44]Read from MH i2c: D8 01 00 [10:29:44]MH_I2C_Read... [10:29:44]Read from MH i2c: D8 01 00 3D 2C 00 41 [10:29:44]int [10:29:44]Write to MH i2c: 01 00 00 3E 2C 6A [10:29:44]Write i2c OK [10:29:44]MH_I2C_Read... [10:29:45]Read from MH i2c: 01 [10:29:45]MH_I2C_Read... [10:29:45]Read from MH i2c: 01 07 00 [10:29:45]MH_I2C_Read... [10:29:45]Read from MH i2c: 01 07 00 3E 2C 00 48 00 00 00 3C 00 F5 [10:29:45]state=2 [10:29:45]Key pressed [10:29:45]int [10:29:45]Write to MH i2c: 01 00 00 3F 2C 6B [10:29:45]*** FLAG_PRN_KEY reset [10:29:45]Write i2c OK [10:29:45]MH_I2C_Read... [10:29:45]Read from MH i2c: 01 [10:29:45]MH_I2C_Read... [10:29:45]Read from MH i2c: 01 07 00 [10:29:45]MH_I2C_Read... [10:29:45]Read from MH i2c: 01 07 00 3F 2C 00 00 00 00 00 FF 0F 80 [10:29:45]state=2 [10:29:45]Stop feed [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 8 [10:30:17]New connection [10:30:17]New thread 3067198820 created [10:30:17]Thread 3067342180 joined [10:30:17]Waiting for new connection... [10:30:17] Sock 8.Parse request [10:30:17]Sock 8.Check first char [10:30:17]Sock 8.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.32.69:8080 [10:30:17]Content-Length: 1209 [10:30:17]Content-Type: application/json [10:30:17] [10:30:17]POST finish read [10:30:17]Found Content-Length = 1209 [10:30:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040740\u000A15.03.2024 10:22\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1238.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03381\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "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" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040740\u000A15.03.2024 10:22\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1238.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03381\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "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=print_text [10:30:17]process_action print_text [10:30:17]cmd_print_text [10:30:17]ExternCall_PrintAddStr [10:30:17]wPrintStart [10:30:17]Write to MH i2c: 01 00 00 40 2C 6C [10:30:17]Write i2c OK [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: 01 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: 01 07 00 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: 01 07 00 40 2C 00 00 00 00 00 FF 0F 81 [10:30:17]RasterBufferAndPrint [10:30:17]line *****ТОВАРНЫЙ ЧЕК***** [10:30:17]line АЗС 15 [10:30:17]line Партнер нефть [10:30:17]line 02508201610067 [10:30:17]line Кассир : Максатбек у Д. [10:30:17]line Счет N : (1)1040740 [10:30:17]line 15.03.2024 10:22 [10:30:17]line ПРОДАЖА [10:30:17]line ТРК (МРК, ГНК): 53 [10:30:17]line Вид ГСМ : 2710124130 [10:30:17]line Аи-92-К-5 [10:30:17]line 20.000 x 61.90 [10:30:17]line ИТОГ: 1238.00 [10:30:17]line Тип оплаты: Талоны: Топливная Карта [10:30:17]line 03381 [10:30:17]line ______________________ [10:30:17]line (подпись) [10:30:17]written 0, free lines is 4095 [10:30:17]Write to MH i2c: 01 00 00 55 2C 81 [10:30:17]Write i2c OK [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: 01 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: 01 07 00 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: 01 07 00 55 2C 00 00 00 00 00 F8 0D 8D [10:30:17]RasterBufferAndPrint [10:30:17]line [10:30:17]line [10:30:17]line [10:30:17]line [10:30:17]line [10:30:17]written 0, free lines is 3578 [10:30:17]MH_Cut [10:30:17]Write to MH i2c: D1 01 00 5C 2C 01 5A [10:30:17]Write i2c OK [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: D1 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: D1 01 00 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: D1 01 00 5C 2C 00 59 [10:30:17]Write to MH i2c: 01 00 00 5D 2C 89 [10:30:17]Write i2c OK [10:30:17]MH_I2C_Read... [10:30:17]*** Cut start [10:30:17]*** Purtial cut [10:30:17]*** Stage 1: CUTSNS_PIN = 1 [10:30:18]Read from MH i2c: 01 [10:30:18]MH_I2C_Read... [10:30:18]Read from MH i2c: 01 07 00 [10:30:18]MH_I2C_Read... [10:30:18]*** Stop cut motor [10:30:18]*** Cut end [10:30:18]Read from MH i2c: 01 07 00 5D 2C 00 00 00 00 00 FF 0F 9E [10:30:18]process_action print_text done [10:30:18]requested_data is exist [10:30:18]produce_requested_data [10:30:18]requested_item fm.sn is exist - process it [10:30:18]wFMCommunicate request_size=4 [10:30:18]MH_SAM_APDU [10:30:18]CAPDU: 80 11 00 00 [10:30:18]Write to MH i2c: E2 08 00 5E 2C 80 11 00 00 00 00 00 00 04 [10:30:18]Write i2c OK [10:30:18]MH_I2C_Read... [10:30:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:18]Read from MH i2c: E2 [10:30:18]MH_I2C_Read... [10:30:18]Read from MH i2c: E2 17 00 [10:30:18]MH_I2C_Read... [10:30:18]Read from MH i2c: E2 17 00 5E 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 58 [10:30:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:30:18]wFMCommunicate OK [10:30:18]requested_item fd.num is exist - process it [10:30:18]SAM_PROTO_GetFieldsCounters [10:30:18]wFMCommunicate request_size=4 [10:30:18]MH_SAM_APDU [10:30:18]CAPDU: 80 13 00 00 [10:30:18]Write to MH i2c: E2 08 00 5F 2C 80 13 00 00 00 00 00 00 07 [10:30:18]Write i2c OK [10:30:18]MH_I2C_Read... [10:30:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:18]Read from MH i2c: E2 [10:30:18]MH_I2C_Read... [10:30:18]Read from MH i2c: E2 62 00 [10:30:18]MH_I2C_Read... [10:30:18]Read from MH i2c: E2 62 00 5F 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 13 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [10:30:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 13 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:30:18]wFMCommunicate OK [10:30:18]SAM_PROTO_GetFieldsCounters done [10:30:18]requested_item shift.num is exist - process it [10:30:18]requested_item shift.opened is exist - process it [10:30:18]req_shift_opened [10:30:18]FM_GetShiftState [10:30:18]SAM_PROTO_GetShiftState [10:30:18]wFMCommunicate request_size=4 [10:30:18]MH_SAM_APDU [10:30:18]CAPDU: 80 13 01 00 [10:30:18]Write to MH i2c: E2 08 00 60 2C 80 13 01 00 00 00 00 00 09 [10:30:18]Write i2c OK [10:30:18]MH_I2C_Read... [10:30:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:18]Read from MH i2c: E2 [10:30:18]MH_I2C_Read... [10:30:18]Read from MH i2c: E2 0E 00 [10:30:18]MH_I2C_Read... [10:30:18]Read from MH i2c: E2 0E 00 60 2C 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 3D [10:30:18]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:30:18]wFMCommunicate OK [10:30:18]SAM_PROTO_GetShiftState done [10:30:18]FM_GetShiftState done [10:30:18]req_shift_opened done [10:30:18]requested_item shift.open_date is exist - process it [10:30:18]req_shift_open_date [10:30:18]req_shift_open_date done [10:30:18]produce_requested_data done [10:30:18]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108563,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [10:30:18]process_action_free print_text [10:30:18]json_value_free [10:30:18]json_value_free done [10:30:18]process_json_proto returns [10:30:18]Send response to host [10:30:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108563,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [10:30:18]free response buf [10:30:18]execute_script done [10:30:18]execute_script returns [10:30:18]free content buf [10:30:18]Sock 8.Close socket [10:30:18]Sock 8.Thread stoped [10:30:19]OFD Sender: No OFD packet to send [10:30:24]OFD Sender: No OFD packet to send [10:30:25]accept exits with 9 [10:30:25]New connection [10:30:25]New thread 3067342180 created [10:30:25]Thread 3067198820 joined [10:30:25]Waiting for new connection... [10:30:25] Sock 9.Parse request [10:30:25]Sock 9.Check first char [10:30:25]Sock 9.First char is OK [10:30:25]request: POST /json_proto HTTP/1.0 [10:30:25]Method: POST [10:30:25]URL: /json_proto [10:30:25]Method is POST - this is cgi request [10:30:25]url: /json_proto [10:30:25]query_string will be loaded in cgi processing [10:30:25]execute_cgi json_proto POST (null) [10:30:25]execute_cgi path=json_proto method=POST [10:30:25]POST find Content-Length [10:30:25]Host: 172.17.32.69:8080 [10:30:25]Content-Length: 683 [10:30:25]Content-Type: application/json [10:30:25] [10:30:25]POST finish read [10:30:25]Found Content-Length = 683 [10:30:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 28.470, "sum" : 1762.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1762.00, "total" : 1762.00, "payments": [ { "type": 0, "sum" : 1762.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:25]execute_script... [10:30: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)1040741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 28.470, "sum" : 1762.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1762.00, "total" : 1762.00, "payments": [ { "type": 0, "sum" : 1762.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:25]POST & json_proto [10:30:25]process_json_proto [10:30:25]json parsed OK: [10:30:25]protocol is kg_v1.0 [10:30:25]action value=close_receipt [10:30:25]process_action close_receipt [10:30:25]cmd_close_receipt [10:30:25]MH_GetDate [10:30:25]Write to MH i2c: F0 00 00 61 2C 7C [10:30:25]Write i2c OK [10:30:25]MH_I2C_Read... [10:30:25]Read from MH i2c: F0 [10:30:25]MH_I2C_Read... [10:30:25]Read from MH i2c: F0 09 00 [10:30:25]MH_I2C_Read... [10:30:25]Read from MH i2c: F0 09 00 61 2C 00 45 23 F4 65 D5 0F D3 65 62 [10:30:25]GetLastDocTimeStamp 1710498495 [10:30:25]current date 1710498629 [10:30:25]FM_GetShiftState [10:30:25]SAM_PROTO_GetShiftState [10:30:25]wFMCommunicate request_size=4 [10:30:25]MH_SAM_APDU [10:30:25]CAPDU: 80 13 01 00 [10:30:25]Write to MH i2c: E2 08 00 62 2C 80 13 01 00 00 00 00 00 0B [10:30:25]Write i2c OK [10:30:25]MH_I2C_Read... [10:30:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:26]Read from MH i2c: E2 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: E2 0E 00 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: E2 0E 00 62 2C 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 3F [10:30:26]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:30:26]wFMCommunicate OK [10:30:26]SAM_PROTO_GetShiftState done [10:30:26]FM_GetShiftState done [10:30:26]opened in 1710461757 [10:30:26]opened+sec_in_day 1710548157 [10:30:26]quantity*price = 176229 [10:30:26]sum+1 = 176230 [10:30:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 1762.00 Внесено: 1762.00 СДАЧА: 0.00 НСП 1% : 15.59 НДС 12% : 187.15 Наличными: 1762.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 87 15.03.2024 10:30 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108564 ФПД: 37325228568026 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T103029&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108564&fm=37325228568026&tin=02508201610067®Number=0000000000091911&sum=176200 [10:30:27]StoreToDocumentArchive [10:30:27]shift 320 fd 108564 [10:30:27]save to /storage/0320/doc_00108564 [10:30:27]save last doc name /storage/0320/doc_00108564 to /storage/kkm_last_doc_name [10:30:27]save OK [10:30:27]Clear old archive folders... [10:30:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:30:27]tlvbuf is 000D0720 [10:30:27]SAM_PROTO_ClearQueue [10:30:27]wFMCommunicate request_size=4 [10:30:27]MH_SAM_APDU [10:30:27]CAPDU: 80 09 00 00 [10:30:27]Write to MH i2c: E2 08 00 6F 2C 80 09 00 00 00 00 00 00 0D [10:30:27]Write i2c OK [10:30:27]MH_I2C_Read... [10:30:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:27]Read from MH i2c: E2 [10:30:27]MH_I2C_Read... [10:30:27]Read from MH i2c: E2 03 00 [10:30:27]MH_I2C_Read... [10:30:27]Read from MH i2c: E2 03 00 6F 2C 00 90 00 0F [10:30:27]RAPDU: 90 00 [10:30:27]wFMCommunicate OK [10:30:27]SAM_PROTO_ClearQueue done [10:30:27]KKMCreateOFDPacket [10:30:27]OFDProtocolAddRootSTLVToBuf [10:30:27]FM_MakeSignedData [10:30:27]FM_MakeSignedData [10:30:27]SAM_PROTO_SignData [10:30:27]wFMCommunicate request_size=4 [10:30:27]MH_SAM_APDU [10:30:27]CAPDU: 80 0D 01 02 [10:30:27]Write to MH i2c: E2 08 00 70 2C 80 0D 01 02 00 00 00 00 15 [10:30:27]Write i2c OK [10:30:27]MH_I2C_Read... [10:30:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:27]Read from MH i2c: E2 [10:30:27]MH_I2C_Read... [10:30:27]Read from MH i2c: E2 03 00 [10:30:27]MH_I2C_Read... [10:30:27]Read from MH i2c: E2 03 00 70 2C 00 90 00 10 [10:30:27]RAPDU: 90 00 [10:30:27]wFMCommunicate OK [10:30:27]wFMCommunicate request_size=255 [10:30:27]MH_SAM_APDU [10:30:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 6F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 65 B0 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 B0 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 49 00 00 00 00 07 04 06 00 48 B0 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 45 23 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 14 A8 01 00 35 04 06 00 21 [10:30:27]Write to MH i2c: E2 02 01 71 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 35 FF 03 08 00 03 36 6F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 65 B0 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 B0 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 49 00 00 00 00 07 04 06 00 48 B0 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 45 23 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 14 A8 01 00 35 04 06 00 21 00 00 CA [10:30:27]Write i2c OK [10:30:27]MH_I2C_Read... [10:30:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:27]Read from MH i2c: E2 [10:30:27]MH_I2C_Read... [10:30:27]Read from MH i2c: E2 03 00 [10:30:27]MH_I2C_Read... [10:30:27]Read from MH i2c: E2 03 00 71 2C 00 90 00 11 [10:30:27]RAPDU: 90 00 [10:30:27]wFMCommunicate OK [10:30:27]wFMCommunicate request_size=10 [10:30:27]MH_SAM_APDU [10:30:27]CAPDU: 80 0D 02 02 05 F2 74 FD 6D DA [10:30:27]Write to MH i2c: E2 0D 00 72 2C 80 0D 02 02 05 00 F2 74 FD 6D DA 00 00 CC [10:30:27]Write i2c OK [10:30:27]MH_I2C_Read... [10:30:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:27]Read from MH i2c: E2 [10:30:27]MH_I2C_Read... [10:30:27]Read from MH i2c: E2 03 00 [10:30:27]MH_I2C_Read... [10:30:27]Read from MH i2c: E2 03 00 72 2C 00 90 00 12 [10:30:27]RAPDU: 90 00 [10:30:27]wFMCommunicate OK [10:30:27]wFMCommunicate request_size=4 [10:30:27]MH_SAM_APDU [10:30:27]CAPDU: 80 0D 03 02 [10:30:27]Write to MH i2c: E2 08 00 73 2C 80 0D 03 02 00 00 00 00 1A [10:30:27]Write i2c OK [10:30:27]MH_I2C_Read... [10:30:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:27]Read from MH i2c: E2 [10:30:27]MH_I2C_Read... [10:30:27]Read from MH i2c: E2 0B 00 [10:30:27]MH_I2C_Read... [10:30:27]Read from MH i2c: E2 0B 00 73 2C 00 60 0C D0 5C 60 83 49 CF 90 00 AE [10:30:27]RAPDU: 60 0C D0 5C 60 83 49 CF 90 00 [10:30:27]wFMCommunicate OK [10:30:27]SAM_PROTO_SignData done [10:30:27]FM_MakeSignedData done [10:30:27]CreateOFDProtocolMessage [10:30:27]wFMCommunicate request_size=4 [10:30:27]MH_SAM_APDU [10:30:27]CAPDU: 80 11 00 00 [10:30:27]Write to MH i2c: E2 08 00 74 2C 80 11 00 00 00 00 00 00 1A [10:30:27]Write i2c OK [10:30:27]MH_I2C_Read... [10:30:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:27]Read from MH i2c: E2 [10:30:27]MH_I2C_Read... [10:30:27]Read from MH i2c: E2 17 00 [10:30:27]MH_I2C_Read... [10:30:27]Read from MH i2c: E2 17 00 74 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 6E [10:30:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:30:27]wFMCommunicate OK [10:30:27]CreateOFDProtocolMessage done [10:30:27]OFDSenderStorePacket 108564 [10:30:27]StoreOFDPacket docnum=108564 [10:30:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 0C 7D 07 01 B6 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 6F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 65 B0 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 B0 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 49 00 00 00 00 07 04 06 00 48 B0 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 45 23 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 14 A8 01 00 35 04 06 00 21 F2 74 FD 6D DA 60 0C D0 5C 60 83 49 CF [10:30:27]CheckFolder [10:30:27]dirname=/storage/ofd_packets [10:30:27]CheckFolder done [10:30:27]ProducePacketName [10:30:27]name=ofd_packets/00108564 [10:30:27]NVStorageSaveData ofd_packets/00108564 [10:30:27]File name is /storage/ofd_packets/00108564 [10:30:27]Write 301 bytes [10:30:27]NVStorageSaveData done [10:30:27]OFDSenderStorePacket done [10:30:27]KKMCreateOFDPacket done [10:30:27]NVStorageSaveData kkm_last_timestamp [10:30:27]File name is /storage/kkm_last_timestamp [10:30:27]Write 4 bytes [10:30:27]NVStorageSaveData done [10:30:27]ExternCall_PrintAddStr [10:30:27]wPrintStart [10:30:27]Write to MH i2c: 01 00 00 75 2C A1 [10:30:27]Write i2c OK [10:30:27]MH_I2C_Read... [10:30:27]Read from MH i2c: 01 [10:30:27]MH_I2C_Read... [10:30:27]Read from MH i2c: 01 07 00 [10:30:27]MH_I2C_Read... [10:30:27]Read from MH i2c: 01 07 00 75 2C 00 00 00 00 00 FF 0F B6 [10:30:27]RasterBufferAndPrint [10:30:27]line Счет N : (1)1040741 [10:30:27]line ИНН: 02508201610067 [10:30:27]line Контрольно-Кассовый Чек [10:30:27]line ПРОДАЖА [10:30:27]line ТРК (МРК, ГНК) : 53 [10:30:27]line Товар: 2710124130 [10:30:27]line Аи-92-К-5 [10:30:27]line 28.470 * 61.90 [10:30:27]line = 1762.29 [10:30:27]line НДС 12% НСП 1% [10:30:27]line > о реализуемом товаре [10:30:27]line ОКРУГЛЕНИЕ: -0.29 [10:30:27]line ИТОГО: 1762.00 [10:30:27]line Внесено: 1762.00 [10:30:27]line СДАЧА: 0.00 [10:30:27]line НСП 1% : 15.59 [10:30:27]line НДС 12% : 187.15 [10:30:27]line Наличными: 1762.00 [10:30:27]line Безнал.: 0.00 [10:30:27]line Место: АЗС № 15 "Партнер Нефть" [10:30:27]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [10:30:27]line СНО: Общий режим [10:30:27]line Чек 87 15.03.2024 10:30 [10:30:27]line Смена: 320 ФФД: 1.0 [10:30:27]line ЗНМ: 0300000266 [10:30:27]line РНМ: 0000000000091911 [10:30:27]line Версия ККМ: 001 [10:30:27]line ФМ: 0000000000871818 [10:30:27]line ФД: 108564 [10:30:27]line ФПД: 37325228568026 [10:30:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T103029&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108564&fm=37325228568026&tin=02508201610067®Number=0000000000091911&sum=176200 [10:30:28]OFD Sender: Processing packet 108564 [packets to send 29, broken 28] [10:30:28]ProducePacketName [10:30:28]name=ofd_packets/00108564 [10:30:28]OFD Sender: To server: pG, [10:30:28]CommunicateWithHost lk.salyk.kg:30040 [10:30:28]ConnectInit lk.salyk.kg [10:30:28]written 0, free lines is 4095 [10:30:28]Connected sock=10 [10:30: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 31 38 0F 01 00 00 0C 7D 07 01 B6 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 6F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 65 B0 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 B0 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 49 00 00 00 00 07 04 06 00 48 B0 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 45 23 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 14 A8 01 00 35 04 06 00 21 F2 74 FD 6D DA 60 0C D0 5C 60 83 49 CF [10:30: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 31 38 4F 00 00 00 26 DF 47 00 9E 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 14 A8 01 00 F4 03 04 00 E6 CE F3 65 B6 04 01 00 00 42 A2 05 89 7F EC 93 68 [10:30:28]CommunicateWithHost err = 0 [10:30:28]CheckOFDResponse [10:30:28]1017 (14) - 77093643461234 [10:30:28]1041 (16) - 0000000000871818 [10:30:28]1040 (4) - 108564 [10:30:28]1012 (4) - 15.03.2024 04:30 [10:30:28]1206 (1) - 0 [10:30:28]OFD Sender: Remove packet 108564 [10:30:28]ProducePacketName [10:30:28]name=ofd_packets/00108564 [10:30:28]NVStorageDeleteData [10:30:28]Write to MH i2c: 01 00 00 A0 2C CC [10:30:28]Write i2c OK [10:30:28]MH_I2C_Read... [10:30:28]Read from MH i2c: 01 [10:30:28]MH_I2C_Read... [10:30:28]Read from MH i2c: 01 07 00 [10:30:28]MH_I2C_Read... [10:30:28]Read from MH i2c: 01 07 00 A0 2C 00 00 00 00 00 E3 0C C2 [10:30:28]RasterBufferAndPrint [10:30:28]line [10:30:28]line [10:30:28]line [10:30:28]line [10:30:28]line [10:30:28]written 0, free lines is 3305 [10:30:28]MH_Cut [10:30:28]Write to MH i2c: D1 01 00 A7 2C 01 A5 [10:30:28]Write i2c OK [10:30:28]MH_I2C_Read... [10:30:28]Read from MH i2c: D1 [10:30:28]MH_I2C_Read... [10:30:28]Read from MH i2c: D1 01 00 [10:30:28]MH_I2C_Read... [10:30:28]Read from MH i2c: D1 01 00 A7 2C 00 A4 [10:30:28]Write to MH i2c: 01 00 00 A8 2C D4 [10:30:28]Write i2c OK [10:30:28]MH_I2C_Read... [10:30:28]OFD Sender: No OFD packet to send [10:30:29]*** Cut start [10:30:29]*** Purtial cut [10:30:29]*** Stage 1: CUTSNS_PIN = 1 [10:30:29]Read from MH i2c: 01 [10:30:29]MH_I2C_Read... [10:30:29]*** Stop cut motor [10:30:29]*** Cut end [10:30:29]Read from MH i2c: 01 07 00 [10:30:29]MH_I2C_Read... [10:30:29]Read from MH i2c: 01 07 00 A8 2C 00 00 00 00 00 FF 0F E9 [10:30:29]process_action close_receipt done [10:30:29]requested_data is exist [10:30:29]produce_requested_data [10:30:29]requested_item fm.sn is exist - process it [10:30:29]wFMCommunicate request_size=4 [10:30:29]MH_SAM_APDU [10:30:29]CAPDU: 80 11 00 00 [10:30:29]Write to MH i2c: E2 08 00 A9 2C 80 11 00 00 00 00 00 00 4F [10:30:29]Write i2c OK [10:30:29]MH_I2C_Read... [10:30:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:29]Read from MH i2c: E2 [10:30:29]MH_I2C_Read... [10:30:29]Read from MH i2c: E2 17 00 [10:30:29]MH_I2C_Read... [10:30:29]Read from MH i2c: E2 17 00 A9 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 A3 [10:30:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:30:29]wFMCommunicate OK [10:30:29]requested_item fd.num is exist - process it [10:30:29]SAM_PROTO_GetFieldsCounters [10:30:29]wFMCommunicate request_size=4 [10:30:29]MH_SAM_APDU [10:30:29]CAPDU: 80 13 00 00 [10:30:29]Write to MH i2c: E2 08 00 AA 2C 80 13 00 00 00 00 00 00 52 [10:30:29]Write i2c OK [10:30:29]MH_I2C_Read... [10:30:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:29]Read from MH i2c: E2 [10:30:29]MH_I2C_Read... [10:30:29]Read from MH i2c: E2 62 00 [10:30:29]MH_I2C_Read... [10:30:29]Read from MH i2c: E2 62 00 AA 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 14 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [10:30: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 14 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:30:29]wFMCommunicate OK [10:30:29]SAM_PROTO_GetFieldsCounters done [10:30:29]requested_item shift.num is exist - process it [10:30:29]requested_item shift.opened is exist - process it [10:30:29]req_shift_opened [10:30:29]FM_GetShiftState [10:30:29]SAM_PROTO_GetShiftState [10:30:29]wFMCommunicate request_size=4 [10:30:29]MH_SAM_APDU [10:30:29]CAPDU: 80 13 01 00 [10:30:29]Write to MH i2c: E2 08 00 AB 2C 80 13 01 00 00 00 00 00 54 [10:30:29]Write i2c OK [10:30:29]MH_I2C_Read... [10:30:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:29]Read from MH i2c: E2 [10:30:29]MH_I2C_Read... [10:30:29]Read from MH i2c: E2 0E 00 [10:30:29]MH_I2C_Read... [10:30:29]Read from MH i2c: E2 0E 00 AB 2C 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 88 [10:30:29]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:30:29]wFMCommunicate OK [10:30:29]SAM_PROTO_GetShiftState done [10:30:29]FM_GetShiftState done [10:30:29]req_shift_opened done [10:30:29]requested_item shift.open_date is exist - process it [10:30:29]req_shift_open_date [10:30:29]req_shift_open_date done [10:30:29]produce_requested_data done [10:30:29]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108564,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [10:30:29]process_action_free close_receipt [10:30:29]json_value_free [10:30:29]json_value_free done [10:30:29]process_json_proto returns [10:30:29]Send response to host [10:30:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108564,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [10:30:29]free response buf [10:30:29]execute_script done [10:30:29]execute_script returns [10:30:29]free content buf [10:30:29]Sock 9.Close socket [10:30:29]Sock 9.Thread stoped [10:30:29]int [10:30:29]Write to MH i2c: 01 00 00 AC 2C D8 [10:30:29]*** FLAG_PRN_KEY set [10:30:29]Write i2c OK [10:30:29]MH_I2C_Read... [10:30:29]Read from MH i2c: 01 [10:30:29]MH_I2C_Read... [10:30:29]Read from MH i2c: 01 07 00 [10:30:29]MH_I2C_Read... [10:30:29]Read from MH i2c: 01 07 00 AC 2C 00 08 00 00 00 FF 0F F5 [10:30:29]state=0 [10:30:29]Key pressed [10:30:29]Feed [10:30:29]Write to MH i2c: D8 00 00 AD 2C B0 [10:30:29]Write i2c OK [10:30:29]MH_I2C_Read... [10:30:29]Read from MH i2c: D8 [10:30:29]MH_I2C_Read... [10:30:29]Read from MH i2c: D8 01 00 [10:30:29]MH_I2C_Read... [10:30:29]Read from MH i2c: D8 01 00 AD 2C 00 B1 [10:30:29]int [10:30:29]Write to MH i2c: 01 00 00 AE 2C DA [10:30:29]Write i2c OK [10:30:29]MH_I2C_Read... [10:30:29]Read from MH i2c: 01 [10:30:29]MH_I2C_Read... [10:30:29]Read from MH i2c: 01 07 00 [10:30:29]MH_I2C_Read... [10:30:29]Read from MH i2c: 01 07 00 AE 2C 00 48 00 00 00 3C 00 65 [10:30:29]state=2 [10:30:29]Key pressed [10:30:29]int [10:30:30]Write to MH i2c: 01 00 00 AF 2C DB [10:30:30]*** FLAG_PRN_KEY reset [10:30:30]Write i2c OK [10:30:30]MH_I2C_Read... [10:30:30]Read from MH i2c: 01 [10:30:30]MH_I2C_Read... [10:30:30]Read from MH i2c: 01 07 00 [10:30:30]MH_I2C_Read... [10:30:30]Read from MH i2c: 01 07 00 AF 2C 00 00 00 00 00 F8 0F E9 [10:30:30]state=2 [10:30:30]Stop feed [10:30:33]OFD Sender: No OFD packet to send [10:30:38]OFD Sender: No OFD packet to send [10:30:43]OFD Sender: No OFD packet to send [10:30:48]OFD Sender: No OFD packet to send [10:30:53]OFD Sender: No OFD packet to send [10:30:58]OFD Sender: No OFD packet to send [10:31:03]OFD Sender: No OFD packet to send [10:31:08]OFD Sender: No OFD packet to send [10:31:13]OFD Sender: No OFD packet to send [10:31:18]OFD Sender: No OFD packet to send [10:31:23]OFD Sender: No OFD packet to send [10:31:28]OFD Sender: No OFD packet to send [10:31:33]OFD Sender: No OFD packet to send [10:31:38]OFD Sender: No OFD packet to send [10:31:43]OFD Sender: No OFD packet to send [10:31:48]OFD Sender: No OFD packet to send [10:31:53]OFD Sender: No OFD packet to send [10:31:58]OFD Sender: No OFD packet to send [10:32:03]OFD Sender: No OFD packet to send [10:32:06]accept exits with 8 [10:32:06]New connection [10:32:06]New thread 3067198820 created [10:32:06]Thread 3067342180 joined [10:32:06]Waiting for new connection... [10:32:06] Sock 8.Parse request [10:32:06]Sock 8.Check first char [10:32:06]Sock 8.First char is OK [10:32:06]request: POST /json_proto HTTP/1.0 [10:32:06]Method: POST [10:32:06]URL: /json_proto [10:32:06]Method is POST - this is cgi request [10:32:06]url: /json_proto [10:32:06]query_string will be loaded in cgi processing [10:32:06]execute_cgi json_proto POST (null) [10:32:06]execute_cgi path=json_proto method=POST [10:32:06]POST find Content-Length [10:32:06]Host: 172.17.32.69:8080 [10:32:06]Content-Length: 740 [10:32:06]Content-Type: application/json [10:32:06] [10:32:06]POST finish read [10:32:06]Found Content-Length = 740 [10:32:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 108564, "base_FM": "0000000000871818", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 28.470, "sum" : 1762.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1762.00, "total" : 1762.00, "payments": [ { "type": 0, "sum" : 1762.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:06]execute_script... [10:32:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 108564, "base_FM": "0000000000871818", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 28.470, "sum" : 1762.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1762.00, "total" : 1762.00, "payments": [ { "type": 0, "sum" : 1762.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:06]POST & json_proto [10:32:06]process_json_proto [10:32:06]json parsed OK: [10:32:06]protocol is kg_v1.0 [10:32:06]action value=close_receipt [10:32:06]process_action close_receipt [10:32:06]cmd_close_receipt [10:32:06]MH_GetDate [10:32:06]Write to MH i2c: F0 00 00 B0 2C CB [10:32:06]Write i2c OK [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: F0 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: F0 09 00 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: F0 09 00 B0 2C 00 AA 23 F4 65 D5 0F D3 65 16 [10:32:06]GetLastDocTimeStamp 1710498629 [10:32:06]current date 1710498730 [10:32:06]FM_GetShiftState [10:32:06]SAM_PROTO_GetShiftState [10:32:06]wFMCommunicate request_size=4 [10:32:06]MH_SAM_APDU [10:32:06]CAPDU: 80 13 01 00 [10:32:06]Write to MH i2c: E2 08 00 B1 2C 80 13 01 00 00 00 00 00 5A [10:32:06]Write i2c OK [10:32:06]MH_I2C_Read... [10:32:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:06]Read from MH i2c: E2 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 0E 00 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 0E 00 B1 2C 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 8E [10:32:06]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:32:06]wFMCommunicate OK [10:32:06]SAM_PROTO_GetShiftState done [10:32:06]FM_GetShiftState done [10:32:06]opened in 1710461757 [10:32:06]opened+sec_in_day 1710548157 [10:32:06]quantity*price = 176229 [10:32:06]sum+1 = 176230 [10:32:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 1762.00 НСП 1% : 15.59 НДС 12% : 187.15 Наличными: 1762.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 88 15.03.2024 10:32 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФД осн.: 108564 ФМ осн.: 0000000000871818 ФМ: 0000000000871818 ФД: 108565 ФПД: 10675249158920 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T103210&type=2&operation_type=1&fn_number=0000000000871818&fd_number=108565&fm=10675249158920&tin=02508201610067®Number=0000000000091911&sum=176200 [10:32:07]StoreToDocumentArchive [10:32:07]shift 320 fd 108565 [10:32:07]save to /storage/0320/doc_00108565 [10:32:07]save last doc name /storage/0320/doc_00108565 to /storage/kkm_last_doc_name [10:32:07]save OK [10:32:07]Clear old archive folders... [10:32:07]ProcessDocumentItem done err = 0, tmpTLVsize=279 [10:32:07]tlvbuf is 001139D0 [10:32:07]SAM_PROTO_ClearQueue [10:32:07]wFMCommunicate request_size=4 [10:32:07]MH_SAM_APDU [10:32:07]CAPDU: 80 09 00 00 [10:32:07]Write to MH i2c: E2 08 00 C0 2C 80 09 00 00 00 00 00 00 5E [10:32:07]Write i2c OK [10:32:07]MH_I2C_Read... [10:32:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:07]Read from MH i2c: E2 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: E2 03 00 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: E2 03 00 C0 2C 00 90 00 60 [10:32:07]RAPDU: 90 00 [10:32:07]wFMCommunicate OK [10:32:07]SAM_PROTO_ClearQueue done [10:32:07]KKMCreateOFDPacket [10:32:07]OFDProtocolAddRootSTLVToBuf [10:32:07]FM_MakeSignedData [10:32:07]FM_MakeSignedData [10:32:07]SAM_PROTO_SignData [10:32:07]wFMCommunicate request_size=4 [10:32:07]MH_SAM_APDU [10:32:07]CAPDU: 80 0D 01 02 [10:32:07]Write to MH i2c: E2 08 00 C1 2C 80 0D 01 02 00 00 00 00 66 [10:32:07]Write i2c OK [10:32:07]MH_I2C_Read... [10:32:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:07]Read from MH i2c: E2 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: E2 03 00 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: E2 03 00 C1 2C 00 90 00 61 [10:32:07]RAPDU: 90 00 [10:32:07]wFMCommunicate OK [10:32:07]wFMCommunicate request_size=255 [10:32:07]MH_SAM_APDU [10:32:07]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 6F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 65 B0 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 B0 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 49 00 00 00 00 07 04 06 00 48 B0 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 AA 23 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 27 04 04 00 14 A8 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 11 04 10 00 30 [10:32:07]Write to MH i2c: E2 02 01 C2 2C 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 6F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 65 B0 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 B0 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 49 00 00 00 00 07 04 06 00 48 B0 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 AA 23 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 27 04 04 00 14 A8 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 11 04 10 00 30 00 00 C2 [10:32:07]Write i2c OK [10:32:07]MH_I2C_Read... [10:32:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:08]Read from MH i2c: E2 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: E2 03 00 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: E2 03 00 C2 2C 00 90 00 62 [10:32:08]RAPDU: 90 00 [10:32:08]wFMCommunicate OK [10:32:08]wFMCommunicate request_size=38 [10:32:08]MH_SAM_APDU [10:32:08]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 15 A8 01 00 35 04 06 00 09 B5 86 6F 1B 08 [10:32:08]Write to MH i2c: E2 29 00 C3 2C 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 15 A8 01 00 35 04 06 00 09 B5 86 6F 1B 08 00 00 87 [10:32:08]Write i2c OK [10:32:08]MH_I2C_Read... [10:32:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:08]Read from MH i2c: E2 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: E2 03 00 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: E2 03 00 C3 2C 00 90 00 63 [10:32:08]RAPDU: 90 00 [10:32:08]wFMCommunicate OK [10:32:08]wFMCommunicate request_size=4 [10:32:08]MH_SAM_APDU [10:32:08]CAPDU: 80 0D 03 02 [10:32:08]Write to MH i2c: E2 08 00 C4 2C 80 0D 03 02 00 00 00 00 6B [10:32:08]Write i2c OK [10:32:08]MH_I2C_Read... [10:32:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:08]Read from MH i2c: E2 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: E2 0B 00 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: E2 0B 00 C4 2C 00 67 9D EE 0E B2 D7 1F D0 90 00 E4 [10:32:08]RAPDU: 67 9D EE 0E B2 D7 1F D0 90 00 [10:32:08]wFMCommunicate OK [10:32:08]SAM_PROTO_SignData done [10:32:08]FM_MakeSignedData done [10:32:08]CreateOFDProtocolMessage [10:32:08]wFMCommunicate request_size=4 [10:32:08]MH_SAM_APDU [10:32:08]CAPDU: 80 11 00 00 [10:32:08]Write to MH i2c: E2 08 00 C5 2C 80 11 00 00 00 00 00 00 6B [10:32:08]Write i2c OK [10:32:08]MH_I2C_Read... [10:32:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:08]Read from MH i2c: E2 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: E2 17 00 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: E2 17 00 C5 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 BF [10:32:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:32:08]wFMCommunicate OK [10:32:08]CreateOFDProtocolMessage done [10:32:08]OFDSenderStorePacket 108565 [10:32:08]StoreOFDPacket docnum=108565 [10:32:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 2B 01 00 00 DF 20 23 01 1F 07 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 6F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 65 B0 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 B0 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 49 00 00 00 00 07 04 06 00 48 B0 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 AA 23 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 27 04 04 00 14 A8 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 15 A8 01 00 35 04 06 00 09 B5 86 6F 1B 08 67 9D EE 0E B2 D7 1F D0 [10:32:08]CheckFolder [10:32:08]dirname=/storage/ofd_packets [10:32:08]CheckFolder done [10:32:08]ProducePacketName [10:32:08]name=ofd_packets/00108565 [10:32:08]NVStorageSaveData ofd_packets/00108565 [10:32:08]File name is /storage/ofd_packets/00108565 [10:32:08]Write 329 bytes [10:32:08]NVStorageSaveData done [10:32:08]OFDSenderStorePacket done [10:32:08]KKMCreateOFDPacket done [10:32:08]NVStorageSaveData kkm_last_timestamp [10:32:08]File name is /storage/kkm_last_timestamp [10:32:08]Write 4 bytes [10:32:08]NVStorageSaveData done [10:32:08]ExternCall_PrintAddStr [10:32:08]wPrintStart [10:32:08]Write to MH i2c: 01 00 00 C6 2C F2 [10:32:08]Write i2c OK [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: 01 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: 01 07 00 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: 01 07 00 C6 2C 00 00 00 00 00 FF 0F 07 [10:32:08]RasterBufferAndPrint [10:32:08]line Счет N : (1)1040741 [10:32:08]line ИНН: 02508201610067 [10:32:08]line Контрольно-Кассовый Чек [10:32:08]line ВОЗВРАТ ПРОДАЖИ [10:32:08]line ТРК (МРК, ГНК) : 53 [10:32:08]line Товар: 2710124130 [10:32:08]line Аи-92-К-5 [10:32:08]line 28.470 * 61.90 [10:32:08]line = 1762.29 [10:32:08]line НДС 12% НСП 1% [10:32:08]line > о реализуемом товаре [10:32:08]line ОКРУГЛЕНИЕ: -0.29 [10:32:08]line ИТОГО: 1762.00 [10:32:08]line НСП 1% : 15.59 [10:32:08]line НДС 12% : 187.15 [10:32:08]line Наличными: 1762.00 [10:32:08]line Безнал.: 0.00 [10:32:08]line Место: АЗС № 15 "Партнер Нефть" [10:32:08]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [10:32:08]line СНО: Общий режим [10:32:08]line Чек 88 15.03.2024 10:32 [10:32:08]line Смена: 320 ФФД: 1.0 [10:32:08]line ЗНМ: 0300000266 [10:32:08]line РНМ: 0000000000091911 [10:32:08]line Версия ККМ: 001 [10:32:08]line ФД осн.: 108564 [10:32:08]line ФМ осн.: 0000000000871818 [10:32:08]line ФМ: 0000000000871818 [10:32:08]line ФД: 108565 [10:32:08]line ФПД: 10675249158920 [10:32:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T103210&type=2&operation_type=1&fn_number=0000000000871818&fd_number=108565&fm=10675249158920&tin=02508201610067®Number=0000000000091911&sum=176200 [10:32:08]OFD Sender: Processing packet 108565 [packets to send 29, broken 28] [10:32:08]ProducePacketName [10:32:08]name=ofd_packets/00108565 [10:32:08]OFD Sender: To server: pG, [10:32:08]CommunicateWithHost lk.salyk.kg:30040 [10:32:08]ConnectInit lk.salyk.kg [10:32:08]written 0, free lines is 4095 [10:32:08]Connected sock=10 [10:32:08]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 31 38 2B 01 00 00 DF 20 23 01 1F 07 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 6F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 65 B0 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 B0 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 49 00 00 00 00 07 04 06 00 48 B0 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 AA 23 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 27 04 04 00 14 A8 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 15 A8 01 00 35 04 06 00 09 B5 86 6F 1B 08 67 9D EE 0E B2 D7 1F D0 [10:32:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 4F 00 00 00 F4 C7 47 00 E3 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 15 A8 01 00 F4 03 04 00 4A CF F3 65 B6 04 01 00 00 FD 45 DD 87 60 22 E8 C7 [10:32:08]CommunicateWithHost err = 0 [10:32:08]CheckOFDResponse [10:32:08]1017 (14) - 77093643461234 [10:32:08]1041 (16) - 0000000000871818 [10:32:08]1040 (4) - 108565 [10:32:08]1012 (4) - 15.03.2024 04:32 [10:32:08]1206 (1) - 0 [10:32:08]OFD Sender: Remove packet 108565 [10:32:08]ProducePacketName [10:32:08]name=ofd_packets/00108565 [10:32:08]NVStorageDeleteData [10:32:09]Write to MH i2c: 01 00 00 F1 2C 1D [10:32:09]Write i2c OK [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: 01 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: 01 07 00 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: 01 07 00 F1 2C 00 00 00 00 00 E6 0C 16 [10:32:09]RasterBufferAndPrint [10:32:09]line [10:32:09]line [10:32:09]line [10:32:09]line [10:32:09]line [10:32:09]written 0, free lines is 3309 [10:32:09]MH_Cut [10:32:09]Write to MH i2c: D1 01 00 F8 2C 01 F6 [10:32:09]Write i2c OK [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: D1 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: D1 01 00 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: D1 01 00 F8 2C 00 F5 [10:32:09]Write to MH i2c: 01 00 00 F9 2C 25 [10:32:09]Write i2c OK [10:32:09]MH_I2C_Read... [10:32:09]OFD Sender: No OFD packet to send [10:32:09]*** Cut start [10:32:09]*** Purtial cut [10:32:09]*** Stage 1: CUTSNS_PIN = 1 [10:32:10]Read from MH i2c: 01 [10:32:10]MH_I2C_Read... [10:32:10]*** Stop cut motor [10:32:10]*** Cut end [10:32:10]Read from MH i2c: 01 07 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: 01 07 00 F9 2C 00 00 00 00 00 FF 0F 3A [10:32:10]process_action close_receipt done [10:32:10]requested_data is exist [10:32:10]produce_requested_data [10:32:10]requested_item fm.sn is exist - process it [10:32:10]wFMCommunicate request_size=4 [10:32:10]MH_SAM_APDU [10:32:10]CAPDU: 80 11 00 00 [10:32:10]Write to MH i2c: E2 08 00 FA 2C 80 11 00 00 00 00 00 00 A0 [10:32:10]Write i2c OK [10:32:10]MH_I2C_Read... [10:32:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:10]Read from MH i2c: E2 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 17 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 17 00 FA 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 F4 [10:32:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:32:10]wFMCommunicate OK [10:32:10]requested_item fd.num is exist - process it [10:32:10]SAM_PROTO_GetFieldsCounters [10:32:10]wFMCommunicate request_size=4 [10:32:10]MH_SAM_APDU [10:32:10]CAPDU: 80 13 00 00 [10:32:10]Write to MH i2c: E2 08 00 FB 2C 80 13 00 00 00 00 00 00 A3 [10:32:10]Write i2c OK [10:32:10]MH_I2C_Read... [10:32:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:10]Read from MH i2c: E2 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 62 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 62 00 FB 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 15 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [10:32:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 15 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:32:10]wFMCommunicate OK [10:32:10]SAM_PROTO_GetFieldsCounters done [10:32:10]requested_item shift.num is exist - process it [10:32:10]requested_item shift.opened is exist - process it [10:32:10]req_shift_opened [10:32:10]FM_GetShiftState [10:32:10]SAM_PROTO_GetShiftState [10:32:10]wFMCommunicate request_size=4 [10:32:10]MH_SAM_APDU [10:32:10]CAPDU: 80 13 01 00 [10:32:10]Write to MH i2c: E2 08 00 FC 2C 80 13 01 00 00 00 00 00 A5 [10:32:10]Write i2c OK [10:32:10]MH_I2C_Read... [10:32:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:10]Read from MH i2c: E2 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 0E 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 0E 00 FC 2C 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 D9 [10:32:10]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:32:10]wFMCommunicate OK [10:32:10]SAM_PROTO_GetShiftState done [10:32:10]FM_GetShiftState done [10:32:10]req_shift_opened done [10:32:10]requested_item shift.open_date is exist - process it [10:32:10]req_shift_open_date [10:32:10]req_shift_open_date done [10:32:10]produce_requested_data done [10:32:10]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108565,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [10:32:10]process_action_free close_receipt [10:32:10]json_value_free [10:32:10]json_value_free done [10:32:10]process_json_proto returns [10:32:10]Send response to host [10:32:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108565,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [10:32:10]free response buf [10:32:10]execute_script done [10:32:10]execute_script returns [10:32:10]free content buf [10:32:10]Sock 8.Close socket [10:32:10]Sock 8.Thread stoped [10:32:10]accept exits with 9 [10:32:10]New connection [10:32:10]New thread 3067342180 created [10:32:10]Thread 3067198820 joined [10:32:10]Waiting for new connection... [10:32:10] Sock 9.Parse request [10:32:10]Sock 9.Check first char [10:32:10]Sock 9.First char is OK [10:32:10]request: POST /json_proto HTTP/1.0 [10:32:10]Method: POST [10:32:10]URL: /json_proto [10:32:10]Method is POST - this is cgi request [10:32:10]url: /json_proto [10:32:10]query_string will be loaded in cgi processing [10:32:10]execute_cgi json_proto POST (null) [10:32:10]execute_cgi path=json_proto method=POST [10:32:10]POST find Content-Length [10:32:10]Host: 172.17.32.69:8080 [10:32:10]Content-Length: 683 [10:32:10]Content-Type: application/json [10:32:10] [10:32:10]POST finish read [10:32:10]Found Content-Length = 683 [10:32:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 19.700, "sum" : 1219.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1762.00, "total" : 1219.00, "payments": [ { "type": 0, "sum" : 1219.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:10]execute_script... [10:32: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)1040741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 19.700, "sum" : 1219.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1762.00, "total" : 1219.00, "payments": [ { "type": 0, "sum" : 1219.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:10]POST & json_proto [10:32:10]process_json_proto [10:32:10]json parsed OK: [10:32:10]protocol is kg_v1.0 [10:32:10]action value=close_receipt [10:32:10]process_action close_receipt [10:32:10]cmd_close_receipt [10:32:10]MH_GetDate [10:32:10]Write to MH i2c: F0 00 00 FD 2C 18 [10:32:10]Write i2c OK [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: F0 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: F0 09 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: F0 09 00 FD 2C 00 AE 23 F4 65 D5 0F D3 65 67 [10:32:10]GetLastDocTimeStamp 1710498730 [10:32:10]current date 1710498734 [10:32:10]FM_GetShiftState [10:32:10]SAM_PROTO_GetShiftState [10:32:10]wFMCommunicate request_size=4 [10:32:10]MH_SAM_APDU [10:32:10]CAPDU: 80 13 01 00 [10:32:10]Write to MH i2c: E2 08 00 FE 2C 80 13 01 00 00 00 00 00 A7 [10:32:10]Write i2c OK [10:32:10]MH_I2C_Read... [10:32:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:10]Read from MH i2c: E2 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 0E 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 0E 00 FE 2C 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 DB [10:32:10]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:32:10]wFMCommunicate OK [10:32:10]SAM_PROTO_GetShiftState done [10:32:10]FM_GetShiftState done [10:32:10]opened in 1710461757 [10:32:10]opened+sec_in_day 1710548157 [10:32:10]quantity*price = 121943 [10:32:10]sum+1 = 121944 [10:32:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1219.00 Внесено: 1762.00 СДАЧА: 543.00 НСП 1% : 10.79 НДС 12% : 129.50 Наличными: 1219.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 89 15.03.2024 10:32 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108566 ФПД: 238125629763950 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T103214&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108566&fm=238125629763950&tin=02508201610067®Number=0000000000091911&sum=121900 [10:32:12]StoreToDocumentArchive [10:32:12]shift 320 fd 108566 [10:32:12]save to /storage/0320/doc_00108566 [10:32:12]save last doc name /storage/0320/doc_00108566 to /storage/kkm_last_doc_name [10:32:12]save OK [10:32:12]Clear old archive folders... [10:32:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:32:12]tlvbuf is 001755F0 [10:32:12]SAM_PROTO_ClearQueue [10:32:12]wFMCommunicate request_size=4 [10:32:12]MH_SAM_APDU [10:32:12]CAPDU: 80 09 00 00 [10:32:12]Write to MH i2c: E2 08 00 0B 2D 80 09 00 00 00 00 00 00 AA [10:32:12]Write i2c OK [10:32:12]MH_I2C_Read... [10:32:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:12]Read from MH i2c: E2 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 03 00 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 03 00 0B 2D 00 90 00 AC [10:32:12]RAPDU: 90 00 [10:32:12]wFMCommunicate OK [10:32:12]SAM_PROTO_ClearQueue done [10:32:12]KKMCreateOFDPacket [10:32:12]OFDProtocolAddRootSTLVToBuf [10:32:12]FM_MakeSignedData [10:32:12]FM_MakeSignedData [10:32:12]SAM_PROTO_SignData [10:32:12]wFMCommunicate request_size=4 [10:32:12]MH_SAM_APDU [10:32:12]CAPDU: 80 0D 01 02 [10:32:12]Write to MH i2c: E2 08 00 0C 2D 80 0D 01 02 00 00 00 00 B2 [10:32:12]Write i2c OK [10:32:12]MH_I2C_Read... [10:32:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:12]Read from MH i2c: E2 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 03 00 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 03 00 0C 2D 00 90 00 AD [10:32:12]RAPDU: 90 00 [10:32:12]wFMCommunicate OK [10:32:12]wFMCommunicate request_size=255 [10:32:12]MH_SAM_APDU [10:32:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 4C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 57 DC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C DC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 32 00 00 00 00 07 04 06 00 2C DC 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 AE 23 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 16 A8 01 00 35 04 06 00 D8 [10:32:12]Write to MH i2c: E2 02 01 0D 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 35 FF 03 08 00 03 F4 4C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 57 DC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C DC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 32 00 00 00 00 07 04 06 00 2C DC 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 AE 23 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 16 A8 01 00 35 04 06 00 D8 00 00 E3 [10:32:12]Write i2c OK [10:32:12]MH_I2C_Read... [10:32:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:12]Read from MH i2c: E2 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 03 00 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 03 00 0D 2D 00 90 00 AE [10:32:12]RAPDU: 90 00 [10:32:12]wFMCommunicate OK [10:32:12]wFMCommunicate request_size=10 [10:32:12]MH_SAM_APDU [10:32:12]CAPDU: 80 0D 02 02 05 92 F1 92 F1 6E [10:32:12]Write to MH i2c: E2 0D 00 0E 2D 80 0D 02 02 05 00 92 F1 92 F1 6E 00 00 33 [10:32:12]Write i2c OK [10:32:12]MH_I2C_Read... [10:32:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:12]Read from MH i2c: E2 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 03 00 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 03 00 0E 2D 00 90 00 AF [10:32:12]RAPDU: 90 00 [10:32:12]wFMCommunicate OK [10:32:12]wFMCommunicate request_size=4 [10:32:12]MH_SAM_APDU [10:32:12]CAPDU: 80 0D 03 02 [10:32:12]Write to MH i2c: E2 08 00 0F 2D 80 0D 03 02 00 00 00 00 B7 [10:32:12]Write i2c OK [10:32:12]MH_I2C_Read... [10:32:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:12]Read from MH i2c: E2 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 0B 00 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 0B 00 0F 2D 00 34 11 3E BB 26 11 66 70 90 00 03 [10:32:12]RAPDU: 34 11 3E BB 26 11 66 70 90 00 [10:32:12]wFMCommunicate OK [10:32:12]SAM_PROTO_SignData done [10:32:12]FM_MakeSignedData done [10:32:12]CreateOFDProtocolMessage [10:32:12]wFMCommunicate request_size=4 [10:32:12]MH_SAM_APDU [10:32:12]CAPDU: 80 11 00 00 [10:32:12]Write to MH i2c: E2 08 00 10 2D 80 11 00 00 00 00 00 00 B7 [10:32:12]Write i2c OK [10:32:12]MH_I2C_Read... [10:32:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:12]Read from MH i2c: E2 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 17 00 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 17 00 10 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 0B [10:32:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:32:12]wFMCommunicate OK [10:32:12]CreateOFDProtocolMessage done [10:32:12]OFDSenderStorePacket 108566 [10:32:12]StoreOFDPacket docnum=108566 [10:32:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 84 C5 07 01 2B A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 4C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 57 DC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C DC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 32 00 00 00 00 07 04 06 00 2C DC 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 AE 23 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 16 A8 01 00 35 04 06 00 D8 92 F1 92 F1 6E 34 11 3E BB 26 11 66 70 [10:32:12]CheckFolder [10:32:12]dirname=/storage/ofd_packets [10:32:12]CheckFolder done [10:32:12]ProducePacketName [10:32:12]name=ofd_packets/00108566 [10:32:12]NVStorageSaveData ofd_packets/00108566 [10:32:12]File name is /storage/ofd_packets/00108566 [10:32:12]Write 301 bytes [10:32:12]NVStorageSaveData done [10:32:12]OFDSenderStorePacket done [10:32:12]KKMCreateOFDPacket done [10:32:12]NVStorageSaveData kkm_last_timestamp [10:32:12]File name is /storage/kkm_last_timestamp [10:32:12]Write 4 bytes [10:32:12]NVStorageSaveData done [10:32:12]ExternCall_PrintAddStr [10:32:12]wPrintStart [10:32:12]Write to MH i2c: 01 00 00 11 2D 3E [10:32:12]OFD Sender: Processing packet 108566 [packets to send 29, broken 28] [10:32:12]ProducePacketName [10:32:12]name=ofd_packets/00108566 [10:32:12]OFD Sender: To server: pG, [10:32:12]CommunicateWithHost lk.salyk.kg:30040 [10:32:12]ConnectInit lk.salyk.kg [10:32:12]Write i2c OK [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: 01 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: 01 07 00 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: 01 07 00 11 2D 00 00 00 00 00 FF 0F 53 [10:32:12]RasterBufferAndPrint [10:32:12]line Счет N : (1)1040741 [10:32:12]line ИНН: 02508201610067 [10:32:12]line Контрольно-Кассовый Чек [10:32:12]line ПРОДАЖА [10:32:12]line ТРК (МРК, ГНК) : 53 [10:32:12]line Товар: 2710124130 [10:32:12]line Аи-92-К-5 [10:32:12]line 19.700 * 61.90 [10:32:12]line = 1219.43 [10:32:12]line НДС 12% НСП 1% [10:32:12]line > о реализуемом товаре [10:32:12]line ОКРУГЛЕНИЕ: -0.43 [10:32:12]line ИТОГО: 1219.00 [10:32:12]line Внесено: 1762.00 [10:32:12]line СДАЧА: 543.00 [10:32:12]line НСП 1% : 10.79 [10:32:12]line НДС 12% : 129.50 [10:32:12]line Наличными: 1219.00 [10:32:12]line Безнал.: 0.00 [10:32:12]line Место: АЗС № 15 "Партнер Нефть" [10:32:12]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [10:32:12]line СНО: Общий режим [10:32:12]line Чек 89 15.03.2024 10:32 [10:32:12]line Смена: 320 ФФД: 1.0 [10:32:12]line ЗНМ: 0300000266 [10:32:13]line РНМ: 0000000000091911 [10:32:13]line Версия ККМ: 001 [10:32:13]line ФМ: 0000000000871818 [10:32:13]line ФД: 108566 [10:32:13]line ФПД: 238125629763950 [10:32:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T103214&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108566&fm=238125629763950&tin=02508201610067®Number=0000000000091911&sum=121900 [10:32:13]written 0, free lines is 4095 [10:32:13]Write to MH i2c: 01 00 00 3C 2D 69 [10:32:13]Write i2c OK [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: 01 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: 01 07 00 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: 01 07 00 3C 2D 00 00 00 00 00 D8 0C 54 [10:32:13]RasterBufferAndPrint [10:32:13]line [10:32:13]line [10:32:13]line [10:32:13]line [10:32:13]line [10:32:13]written 0, free lines is 3298 [10:32:13]MH_Cut [10:32:13]Write to MH i2c: D1 01 00 43 2D 01 42 [10:32:13]Write i2c OK [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: D1 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: D1 01 00 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: D1 01 00 43 2D 00 41 [10:32:13]Write to MH i2c: 01 00 00 44 2D 71 [10:32:13]Write i2c OK [10:32:13]MH_I2C_Read... [10:32:14]*** Cut start [10:32:14]*** Purtial cut [10:32:14]*** Stage 1: CUTSNS_PIN = 1 [10:32:14]Read from MH i2c: 01 [10:32:14]MH_I2C_Read... [10:32:14]*** Stop cut motor [10:32:14]*** Cut end [10:32:14]Read from MH i2c: 01 07 00 [10:32:14]MH_I2C_Read... [10:32:14]Read from MH i2c: 01 07 00 44 2D 00 00 00 00 00 FF 0F 86 [10:32:14]process_action close_receipt done [10:32:14]requested_data is exist [10:32:14]produce_requested_data [10:32:14]requested_item fm.sn is exist - process it [10:32:14]wFMCommunicate request_size=4 [10:32:14]MH_SAM_APDU [10:32:14]CAPDU: 80 11 00 00 [10:32:14]Write to MH i2c: E2 08 00 45 2D 80 11 00 00 00 00 00 00 EC [10:32:14]Write i2c OK [10:32:14]MH_I2C_Read... [10:32:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:14]Read from MH i2c: E2 [10:32:14]MH_I2C_Read... [10:32:14]Read from MH i2c: E2 17 00 [10:32:14]MH_I2C_Read... [10:32:14]Read from MH i2c: E2 17 00 45 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 40 [10:32:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:32:14]wFMCommunicate OK [10:32:14]requested_item fd.num is exist - process it [10:32:14]SAM_PROTO_GetFieldsCounters [10:32:14]wFMCommunicate request_size=4 [10:32:14]MH_SAM_APDU [10:32:14]CAPDU: 80 13 00 00 [10:32:14]Write to MH i2c: E2 08 00 46 2D 80 13 00 00 00 00 00 00 EF [10:32:14]Write i2c OK [10:32:14]MH_I2C_Read... [10:32:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:15]Read from MH i2c: E2 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: E2 62 00 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: E2 62 00 46 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 16 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [10:32: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 16 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:32:15]wFMCommunicate OK [10:32:15]SAM_PROTO_GetFieldsCounters done [10:32:15]requested_item shift.num is exist - process it [10:32:15]requested_item shift.opened is exist - process it [10:32:15]req_shift_opened [10:32:15]FM_GetShiftState [10:32:15]SAM_PROTO_GetShiftState [10:32:15]wFMCommunicate request_size=4 [10:32:15]MH_SAM_APDU [10:32:15]CAPDU: 80 13 01 00 [10:32:15]Write to MH i2c: E2 08 00 47 2D 80 13 01 00 00 00 00 00 F1 [10:32:15]Write i2c OK [10:32:15]MH_I2C_Read... [10:32:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:15]Read from MH i2c: E2 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: E2 0E 00 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: E2 0E 00 47 2D 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 25 [10:32:15]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:32:15]wFMCommunicate OK [10:32:15]SAM_PROTO_GetShiftState done [10:32:15]FM_GetShiftState done [10:32:15]req_shift_opened done [10:32:15]requested_item shift.open_date is exist - process it [10:32:15]req_shift_open_date [10:32:15]req_shift_open_date done [10:32:15]produce_requested_data done [10:32:15]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108566,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [10:32:15]process_action_free close_receipt [10:32:15]json_value_free [10:32:15]json_value_free done [10:32:15]process_json_proto returns [10:32:15]Send response to host [10:32:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108566,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [10:32:15]free response buf [10:32:15]execute_script done [10:32:15]execute_script returns [10:32:15]free content buf [10:32:15]Sock 9.Close socket [10:32:15]Sock 9.Thread stoped [10:33:18]accept exits with 8 [10:33:18]New connection [10:33:18]New thread 3067198820 created [10:33:18]Thread 3067342180 joined [10:33:18]Waiting for new connection... [10:33:18] Sock 8.Parse request [10:33:18]Sock 8.Check first char [10:33:18]Sock 8.First char is OK [10:33:18]request: POST /json_proto HTTP/1.0 [10:33:18]Method: POST [10:33:18]URL: /json_proto [10:33:18]Method is POST - this is cgi request [10:33:18]url: /json_proto [10:33:18]query_string will be loaded in cgi processing [10:33:18]execute_cgi json_proto POST (null) [10:33:18]execute_cgi path=json_proto method=POST [10:33:18]POST find Content-Length [10:33:18]Host: 172.17.32.69:8080 [10:33:18]Content-Length: 678 [10:33:18]Content-Type: application/json [10:33:18] [10:33:18]POST finish read [10:33:18]Found Content-Length = 678 [10:33:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 73", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 5.660, "sum" : 350.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:18]execute_script... [10:33: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)1040742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 73", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 5.660, "sum" : 350.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:18]POST & json_proto [10:33:18]process_json_proto [10:33:18]json parsed OK: [10:33:18]protocol is kg_v1.0 [10:33:18]action value=close_receipt [10:33:18]process_action close_receipt [10:33:18]cmd_close_receipt [10:33:18]MH_GetDate [10:33:18]Write to MH i2c: F0 00 00 48 2D 64 [10:33:18]Write i2c OK [10:33:18]MH_I2C_Read... [10:33:18]Read from MH i2c: F0 [10:33:18]MH_I2C_Read... [10:33:18]Read from MH i2c: F0 09 00 [10:33:18]MH_I2C_Read... [10:33:18]Read from MH i2c: F0 09 00 48 2D 00 F2 23 F4 65 D5 0F D3 65 F7 [10:33:18]GetLastDocTimeStamp 1710498734 [10:33:18]current date 1710498802 [10:33:18]FM_GetShiftState [10:33:18]SAM_PROTO_GetShiftState [10:33:18]wFMCommunicate request_size=4 [10:33:18]MH_SAM_APDU [10:33:18]CAPDU: 80 13 01 00 [10:33:18]Write to MH i2c: E2 08 00 49 2D 80 13 01 00 00 00 00 00 F3 [10:33:18]Write i2c OK [10:33:18]MH_I2C_Read... [10:33:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:18]Read from MH i2c: E2 [10:33:18]MH_I2C_Read... [10:33:18]Read from MH i2c: E2 0E 00 [10:33:18]MH_I2C_Read... [10:33:18]Read from MH i2c: E2 0E 00 49 2D 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 27 [10:33:18]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:33:18]wFMCommunicate OK [10:33:18]SAM_PROTO_GetShiftState done [10:33:18]FM_GetShiftState done [10:33:18]opened in 1710461757 [10:33:18]opened+sec_in_day 1710548157 [10:33:18]quantity*price = 35035 [10:33:18]sum+1 = 35036 [10:33:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.20 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 90 15.03.2024 10:33 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108567 ФПД: 82556456431672 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T103322&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108567&fm=82556456431672&tin=02508201610067®Number=0000000000091911&sum=35000 [10:33:19]StoreToDocumentArchive [10:33:19]shift 320 fd 108567 [10:33:19]save to /storage/0320/doc_00108567 [10:33:19]save last doc name /storage/0320/doc_00108567 to /storage/kkm_last_doc_name [10:33:19]save OK [10:33:19]Clear old archive folders... [10:33:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:33:19]tlvbuf is 00125180 [10:33:19]SAM_PROTO_ClearQueue [10:33:19]wFMCommunicate request_size=4 [10:33:19]MH_SAM_APDU [10:33:19]CAPDU: 80 09 00 00 [10:33:19]Write to MH i2c: E2 08 00 56 2D 80 09 00 00 00 00 00 00 F5 [10:33:19]Write i2c OK [10:33:19]MH_I2C_Read... [10:33:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:33:19]Read from MH i2c: E2 [10:33:19]MH_I2C_Read... [10:33:19]Read from MH i2c: E2 03 00 [10:33:19]MH_I2C_Read... [10:33:19]Read from MH i2c: E2 03 00 56 2D 00 90 00 F7 [10:33:19]RAPDU: 90 00 [10:33:19]wFMCommunicate OK [10:33:19]SAM_PROTO_ClearQueue done [10:33:19]KKMCreateOFDPacket [10:33:19]OFDProtocolAddRootSTLVToBuf [10:33:19]FM_MakeSignedData [10:33:19]FM_MakeSignedData [10:33:19]SAM_PROTO_SignData [10:33:19]wFMCommunicate request_size=4 [10:33:19]MH_SAM_APDU [10:33:19]CAPDU: 80 0D 01 02 [10:33:19]Write to MH i2c: E2 08 00 57 2D 80 0D 01 02 00 00 00 00 FD [10:33:19]Write i2c OK [10:33:19]MH_I2C_Read... [10:33:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:33:19]Read from MH i2c: E2 [10:33:19]MH_I2C_Read... [10:33:19]Read from MH i2c: E2 03 00 [10:33:19]MH_I2C_Read... [10:33:19]Read from MH i2c: E2 03 00 57 2D 00 90 00 F8 [10:33:19]RAPDU: 90 00 [10:33:19]wFMCommunicate OK [10:33:19]wFMCommunicate request_size=255 [10:33:19]MH_SAM_APDU [10:33:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 16 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 DB 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 88 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 F2 23 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 17 A8 01 00 35 04 06 00 4B [10:33:19]Write to MH i2c: E2 02 01 58 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 35 FF 03 08 00 03 1C 16 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 DB 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 88 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 F2 23 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 17 A8 01 00 35 04 06 00 4B 00 00 40 [10:33:19]Write i2c OK [10:33:19]MH_I2C_Read... [10:33:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:19]Read from MH i2c: E2 [10:33:19]MH_I2C_Read... [10:33:19]Read from MH i2c: E2 03 00 [10:33:19]MH_I2C_Read... [10:33:19]Read from MH i2c: E2 03 00 58 2D 00 90 00 F9 [10:33:19]RAPDU: 90 00 [10:33:19]wFMCommunicate OK [10:33:19]wFMCommunicate request_size=10 [10:33:19]MH_SAM_APDU [10:33:19]CAPDU: 80 0D 02 02 05 15 AC 42 70 38 [10:33:19]Write to MH i2c: E2 0D 00 59 2D 80 0D 02 02 05 00 15 AC 42 70 38 00 00 B5 [10:33:19]Write i2c OK [10:33:19]MH_I2C_Read... [10:33:19]Read from MH i2c: E2 [10:33:19]MH_I2C_Read... [10:33:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:19]Read from MH i2c: E2 03 00 [10:33:19]MH_I2C_Read... [10:33:19]Read from MH i2c: E2 03 00 59 2D 00 90 00 FA [10:33:19]RAPDU: 90 00 [10:33:19]wFMCommunicate OK [10:33:19]wFMCommunicate request_size=4 [10:33:19]MH_SAM_APDU [10:33:19]CAPDU: 80 0D 03 02 [10:33:19]Write to MH i2c: E2 08 00 5A 2D 80 0D 03 02 00 00 00 00 02 [10:33:19]Write i2c OK [10:33:19]MH_I2C_Read... [10:33:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:33:19]Read from MH i2c: E2 [10:33:19]MH_I2C_Read... [10:33:19]Read from MH i2c: E2 0B 00 [10:33:19]MH_I2C_Read... [10:33:19]Read from MH i2c: E2 0B 00 5A 2D 00 3A C5 BB 6D 83 60 0B E6 90 00 FE [10:33:19]RAPDU: 3A C5 BB 6D 83 60 0B E6 90 00 [10:33:19]wFMCommunicate OK [10:33:19]SAM_PROTO_SignData done [10:33:19]FM_MakeSignedData done [10:33:19]CreateOFDProtocolMessage [10:33:19]wFMCommunicate request_size=4 [10:33:19]MH_SAM_APDU [10:33:19]CAPDU: 80 11 00 00 [10:33:19]Write to MH i2c: E2 08 00 5B 2D 80 11 00 00 00 00 00 00 02 [10:33:19]Write i2c OK [10:33:19]MH_I2C_Read... [10:33:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:19]Read from MH i2c: E2 [10:33:19]MH_I2C_Read... [10:33:19]Read from MH i2c: E2 17 00 [10:33:19]MH_I2C_Read... [10:33:19]Read from MH i2c: E2 17 00 5B 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 56 [10:33:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:33:19]wFMCommunicate OK [10:33:19]CreateOFDProtocolMessage done [10:33:19]OFDSenderStorePacket 108567 [10:33:19]StoreOFDPacket docnum=108567 [10:33:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 9D E3 07 01 F4 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 16 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 DB 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 88 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 F2 23 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 17 A8 01 00 35 04 06 00 4B 15 AC 42 70 38 3A C5 BB 6D 83 60 0B E6 [10:33:19]CheckFolder [10:33:19]dirname=/storage/ofd_packets [10:33:19]CheckFolder done [10:33:19]ProducePacketName [10:33:19]name=ofd_packets/00108567 [10:33:19]NVStorageSaveData ofd_packets/00108567 [10:33:19]File name is /storage/ofd_packets/00108567 [10:33:19]Write 301 bytes [10:33:19]NVStorageSaveData done [10:33:19]OFDSenderStorePacket done [10:33:19]KKMCreateOFDPacket done [10:33:19]NVStorageSaveData kkm_last_timestamp [10:33:19]File name is /storage/kkm_last_timestamp [10:33:19]Write 4 bytes [10:33:19]NVStorageSaveData done [10:33:19]ExternCall_PrintAddStr [10:33:19]wPrintStart [10:33:19]Write to MH i2c: 01 00 00 5C 2D 89 [10:33:19]Write i2c OK [10:33:19]MH_I2C_Read... [10:33:19]Read from MH i2c: 01 [10:33:19]MH_I2C_Read... [10:33:19]Read from MH i2c: 01 07 00 [10:33:19]MH_I2C_Read... [10:33:19]Read from MH i2c: 01 07 00 5C 2D 00 00 00 00 00 FF 0F 9E [10:33:19]RasterBufferAndPrint [10:33:19]line Счет N : (1)1040742 [10:33:19]line ИНН: 02508201610067 [10:33:19]line Контрольно-Кассовый Чек [10:33:19]line ПРОДАЖА [10:33:19]line ТРК (МРК, ГНК) : 73 [10:33:19]line Товар: 2710124130 [10:33:19]line Аи-92-К-5 [10:33:19]line 5.660 * 61.90 [10:33:19]line = 350.35 [10:33:19]line НДС 12% НСП 1% [10:33:19]line > о реализуемом товаре [10:33:19]line ОКРУГЛЕНИЕ: -0.35 [10:33:19]line ИТОГО: 350.00 [10:33:19]line Внесено: 350.00 [10:33:19]line СДАЧА: 0.00 [10:33:19]line НСП 1% : 3.10 [10:33:19]line НДС 12% : 37.20 [10:33:19]line Наличными: 350.00 [10:33:19]line Безнал.: 0.00 [10:33:19]line Место: АЗС № 15 "Партнер Нефть" [10:33:19]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [10:33:19]line СНО: Общий режим [10:33:19]line Чек 90 15.03.2024 10:33 [10:33:19]line Смена: 320 ФФД: 1.0 [10:33:19]line ЗНМ: 0300000266 [10:33:19]line РНМ: 0000000000091911 [10:33:19]line Версия ККМ: 001 [10:33:19]line ФМ: 0000000000871818 [10:33:19]line ФД: 108567 [10:33:20]line ФПД: 82556456431672 [10:33:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T103322&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108567&fm=82556456431672&tin=02508201610067®Number=0000000000091911&sum=35000 [10:33:20]written 0, free lines is 4095 [10:33:20]Write to MH i2c: 01 00 00 87 2D B4 [10:33:20]Write i2c OK [10:33:20]MH_I2C_Read... [10:33:20]Read from MH i2c: 01 [10:33:20]MH_I2C_Read... [10:33:20]Read from MH i2c: 01 07 00 [10:33:20]MH_I2C_Read... [10:33:20]Read from MH i2c: 01 07 00 87 2D 00 00 00 00 00 C8 0C 8F [10:33:20]RasterBufferAndPrint [10:33:20]line [10:33:20]line [10:33:20]line [10:33:20]line [10:33:20]line [10:33:20]written 0, free lines is 3278 [10:33:20]MH_Cut [10:33:20]Write to MH i2c: D1 01 00 8E 2D 01 8D [10:33:20]Write i2c OK [10:33:20]MH_I2C_Read... [10:33:20]Read from MH i2c: D1 [10:33:20]MH_I2C_Read... [10:33:20]Read from MH i2c: D1 01 00 [10:33:20]MH_I2C_Read... [10:33:20]Read from MH i2c: D1 01 00 8E 2D 00 8C [10:33:20]Write to MH i2c: 01 00 00 8F 2D BC [10:33:20]Write i2c OK [10:33:20]MH_I2C_Read... [10:33:21]*** Cut start [10:33:21]*** Purtial cut [10:33:21]*** Stage 1: CUTSNS_PIN = 1 [10:33:21]Read from MH i2c: 01 [10:33:21]MH_I2C_Read... [10:33:21]*** Stop cut motor [10:33:21]*** Cut end [10:33:21]Read from MH i2c: 01 07 00 [10:33:21]MH_I2C_Read... [10:33:21]Read from MH i2c: 01 07 00 8F 2D 00 00 00 00 00 FF 0F D1 [10:33:21]process_action close_receipt done [10:33:21]requested_data is exist [10:33:21]produce_requested_data [10:33:21]requested_item fm.sn is exist - process it [10:33:21]wFMCommunicate request_size=4 [10:33:21]MH_SAM_APDU [10:33:21]CAPDU: 80 11 00 00 [10:33:21]Write to MH i2c: E2 08 00 90 2D 80 11 00 00 00 00 00 00 37 [10:33:21]Write i2c OK [10:33:21]MH_I2C_Read... [10:33:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:21]Read from MH i2c: E2 [10:33:21]MH_I2C_Read... [10:33:21]Read from MH i2c: E2 17 00 [10:33:21]MH_I2C_Read... [10:33:21]Read from MH i2c: E2 17 00 90 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 8B [10:33:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:33:21]wFMCommunicate OK [10:33:21]requested_item fd.num is exist - process it [10:33:21]SAM_PROTO_GetFieldsCounters [10:33:21]wFMCommunicate request_size=4 [10:33:21]MH_SAM_APDU [10:33:21]CAPDU: 80 13 00 00 [10:33:21]Write to MH i2c: E2 08 00 91 2D 80 13 00 00 00 00 00 00 3A [10:33:21]Write i2c OK [10:33:21]MH_I2C_Read... [10:33:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:33:21]Read from MH i2c: E2 [10:33:21]MH_I2C_Read... [10:33:21]Read from MH i2c: E2 62 00 [10:33:21]MH_I2C_Read... [10:33:21]Read from MH i2c: E2 62 00 91 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 17 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [10: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 17 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:33:21]wFMCommunicate OK [10:33:21]SAM_PROTO_GetFieldsCounters done [10:33:21]requested_item shift.num is exist - process it [10:33:21]requested_item shift.opened is exist - process it [10:33:21]req_shift_opened [10:33:21]FM_GetShiftState [10:33:21]SAM_PROTO_GetShiftState [10:33:21]wFMCommunicate request_size=4 [10:33:21]MH_SAM_APDU [10:33:21]CAPDU: 80 13 01 00 [10:33:21]Write to MH i2c: E2 08 00 92 2D 80 13 01 00 00 00 00 00 3C [10:33:21]Write i2c OK [10:33:21]MH_I2C_Read... [10:33:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:21]Read from MH i2c: E2 [10:33:21]MH_I2C_Read... [10:33:21]Read from MH i2c: E2 0E 00 [10:33:21]MH_I2C_Read... [10:33:21]Read from MH i2c: E2 0E 00 92 2D 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 70 [10:33:21]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:33:21]wFMCommunicate OK [10:33:21]SAM_PROTO_GetShiftState done [10:33:21]FM_GetShiftState done [10:33:21]req_shift_opened done [10:33:21]requested_item shift.open_date is exist - process it [10:33:21]req_shift_open_date [10:33:21]req_shift_open_date done [10:33:21]produce_requested_data done [10:33:21]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108567,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [10:33:21]process_action_free close_receipt [10:33:21]json_value_free [10:33:21]json_value_free done [10:33:21]process_json_proto returns [10:33:21]Send response to host [10:33:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108567,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [10:33:21]free response buf [10:33:21]execute_script done [10:33:21]execute_script returns [10:33:21]free content buf [10:33:21]Sock 8.Close socket [10:33:21]Sock 8.Thread stoped [10:34:22]ConnectInit Can't connect to host [10:34:22]CommunicateWithHost connect error [10:34:22]CommunicateWithHost err = -1 [10:34:22]OFD Sender: Server communicate error [10:34:22]OFD Sender: Processing packet 108566 [packets to send 30, broken 28] [10:34:22]ProducePacketName [10:34:22]name=ofd_packets/00108566 [10:34:22]OFD Sender: To server: pG, [10:34:22]CommunicateWithHost lk.salyk.kg:30040 [10:34:22]ConnectInit lk.salyk.kg [10:34:22]Connected sock=8 [10:34: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 31 38 0F 01 00 00 84 C5 07 01 2B A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 4C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 57 DC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C DC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 32 00 00 00 00 07 04 06 00 2C DC 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 AE 23 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 16 A8 01 00 35 04 06 00 D8 92 F1 92 F1 6E 34 11 3E BB 26 11 66 70 [10:34: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 31 38 4F 00 00 00 49 31 47 00 37 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 16 A8 01 00 F4 03 04 00 D0 CF F3 65 B6 04 01 00 00 EB 7F 42 C7 30 FD 60 EC [10:34:23]CommunicateWithHost err = 0 [10:34:23]CheckOFDResponse [10:34:23]1017 (14) - 77093643461234 [10:34:23]1041 (16) - 0000000000871818 [10:34:23]1040 (4) - 108566 [10:34:23]1012 (4) - 15.03.2024 04:34 [10:34:23]1206 (1) - 0 [10:34:23]OFD Sender: Remove packet 108566 [10:34:23]ProducePacketName [10:34:23]name=ofd_packets/00108566 [10:34:23]NVStorageDeleteData [10:34:23]OFD Sender: Processing packet 108567 [packets to send 29, broken 28] [10:34:23]ProducePacketName [10:34:23]name=ofd_packets/00108567 [10:34:23]OFD Sender: To server: pG, [10:34:23]CommunicateWithHost lk.salyk.kg:30040 [10:34:23]ConnectInit lk.salyk.kg [10:34:23]Connected sock=8 [10:34: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 31 38 0F 01 00 00 9D E3 07 01 F4 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 16 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 DB 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 88 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 F2 23 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 17 A8 01 00 35 04 06 00 4B 15 AC 42 70 38 3A C5 BB 6D 83 60 0B E6 [10:34: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 31 38 4F 00 00 00 2E 1B 47 00 7F 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 31 38 10 04 04 00 17 A8 01 00 F4 03 04 00 D1 CF F3 65 B6 04 01 00 00 36 92 4A F2 D4 82 EA 97 [10:34:23]CommunicateWithHost err = 0 [10:34:23]CheckOFDResponse [10:34:23]1017 (14) - 77093643461234 [10:34:23]1041 (16) - 0000000000871818 [10:34:23]1040 (4) - 108567 [10:34:23]1012 (4) - 15.03.2024 04:34 [10:34:23]1206 (1) - 0 [10:34:23]OFD Sender: Remove packet 108567 [10:34:23]ProducePacketName [10:34:23]name=ofd_packets/00108567 [10:34:23]NVStorageDeleteData [10:34:24]OFD Sender: No OFD packet to send [10:34:29]OFD Sender: No OFD packet to send [10:34:31]int [10:34:31]Write to MH i2c: 01 00 00 93 2D C0 [10:34:31]*** FLAG_PRN_KEY set [10:34:31]Write i2c OK [10:34:31]MH_I2C_Read... [10:34:31]Read from MH i2c: 01 [10:34:31]MH_I2C_Read... [10:34:31]Read from MH i2c: 01 07 00 [10:34:31]MH_I2C_Read... [10:34:31]Read from MH i2c: 01 07 00 93 2D 00 08 00 00 00 FF 0F DD [10:34:31]state=0 [10:34:31]Key pressed [10:34:31]Feed [10:34:31]Write to MH i2c: D8 00 00 94 2D 98 [10:34:31]Write i2c OK [10:34:31]MH_I2C_Read... [10:34:31]Read from MH i2c: D8 [10:34:31]MH_I2C_Read... [10:34:31]Read from MH i2c: D8 01 00 [10:34:31]MH_I2C_Read... [10:34:31]Read from MH i2c: D8 01 00 94 2D 00 99 [10:34:31]int [10:34:31]Write to MH i2c: 01 00 00 95 2D C2 [10:34:31]Write i2c OK [10:34:31]MH_I2C_Read... [10:34:31]Read from MH i2c: 01 [10:34:31]MH_I2C_Read... [10:34:31]Read from MH i2c: 01 07 00 [10:34:31]MH_I2C_Read... [10:34:31]Read from MH i2c: 01 07 00 95 2D 00 48 00 00 00 3C 00 4D [10:34:31]state=2 [10:34:31]Key pressed [10:34:31]int [10:34:31]Write to MH i2c: 01 00 00 96 2D C3 [10:34:31]*** FLAG_PRN_KEY reset [10:34:31]Write i2c OK [10:34:31]MH_I2C_Read... [10:34:31]Read from MH i2c: 01 [10:34:31]MH_I2C_Read... [10:34:31]Read from MH i2c: 01 07 00 [10:34:31]MH_I2C_Read... [10:34:31]Read from MH i2c: 01 07 00 96 2D 00 00 00 00 00 F6 0F CF [10:34:31]state=2 [10:34:31]Stop feed [10:34:34]OFD Sender: No OFD packet to send [10:34:39]OFD Sender: No OFD packet to send [10:34:44]OFD Sender: No OFD packet to send [10:34:49]OFD Sender: No OFD packet to send [10:34:51]accept exits with 9 [10:34:51]New connection [10:34:51]New thread 3067342180 created [10:34:51]Thread 3067198820 joined [10:34:51]Waiting for new connection... [10:34:51] Sock 9.Parse request [10:34:51]Sock 9.Check first char [10:34:51]Sock 9.First char is OK [10:34:51]request: POST /json_proto HTTP/1.0 [10:34:51]Method: POST [10:34:51]URL: /json_proto [10:34:51]Method is POST - this is cgi request [10:34:51]url: /json_proto [10:34:51]query_string will be loaded in cgi processing [10:34:51]execute_cgi json_proto POST (null) [10:34:51]execute_cgi path=json_proto method=POST [10:34:51]POST find Content-Length [10:34:51]Host: 172.17.32.69:8080 [10:34:51]Content-Length: 683 [10:34:51]Content-Type: application/json [10:34:51] [10:34:51]POST finish read [10:34:51]Found Content-Length = 683 [10:34:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:51]execute_script... [10:34: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)1040743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:51]POST & json_proto [10:34:51]process_json_proto [10:34:51]json parsed OK: [10:34:51]protocol is kg_v1.0 [10:34:51]action value=close_receipt [10:34:51]process_action close_receipt [10:34:51]cmd_close_receipt [10:34:51]MH_GetDate [10:34:51]Write to MH i2c: F0 00 00 97 2D B3 [10:34:51]Write i2c OK [10:34:51]MH_I2C_Read... [10:34:51]Read from MH i2c: F0 [10:34:51]MH_I2C_Read... [10:34:51]Read from MH i2c: F0 09 00 [10:34:51]MH_I2C_Read... [10:34:51]Read from MH i2c: F0 09 00 97 2D 00 4F 24 F4 65 D5 0F D3 65 A4 [10:34:51]GetLastDocTimeStamp 1710498802 [10:34:51]current date 1710498895 [10:34:51]FM_GetShiftState [10:34:51]SAM_PROTO_GetShiftState [10:34:51]wFMCommunicate request_size=4 [10:34:51]MH_SAM_APDU [10:34:51]CAPDU: 80 13 01 00 [10:34:51]Write to MH i2c: E2 08 00 98 2D 80 13 01 00 00 00 00 00 42 [10:34:51]Write i2c OK [10:34:51]MH_I2C_Read... [10:34:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:51]Read from MH i2c: E2 [10:34:51]MH_I2C_Read... [10:34:51]Read from MH i2c: E2 0E 00 [10:34:51]MH_I2C_Read... [10:34:51]Read from MH i2c: E2 0E 00 98 2D 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 76 [10:34:51]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:34:51]wFMCommunicate OK [10:34:51]SAM_PROTO_GetShiftState done [10:34:51]FM_GetShiftState done [10:34:51]opened in 1710461757 [10:34:51]opened+sec_in_day 1710548157 [10:34:51]quantity*price = 100030 [10:34:51]sum+1 = 100031 [10:34:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 91 15.03.2024 10:34 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108568 ФПД: 275660593557944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T103455&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108568&fm=275660593557944&tin=02508201610067®Number=0000000000091911&sum=100000 [10:34:53]StoreToDocumentArchive [10:34:53]shift 320 fd 108568 [10:34:53]save to /storage/0320/doc_00108568 [10:34:53]save last doc name /storage/0320/doc_00108568 to /storage/kkm_last_doc_name [10:34:53]save OK [10:34:53]Clear old archive folders... [10:34:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:34:53]tlvbuf is 00125200 [10:34:53]SAM_PROTO_ClearQueue [10:34:53]wFMCommunicate request_size=4 [10:34:53]MH_SAM_APDU [10:34:53]CAPDU: 80 09 00 00 [10:34:53]Write to MH i2c: E2 08 00 A5 2D 80 09 00 00 00 00 00 00 44 [10:34:53]Write i2c OK [10:34:53]MH_I2C_Read... [10:34:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:53]Read from MH i2c: E2 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: E2 03 00 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: E2 03 00 A5 2D 00 90 00 46 [10:34:53]RAPDU: 90 00 [10:34:53]wFMCommunicate OK [10:34:53]SAM_PROTO_ClearQueue done [10:34:53]KKMCreateOFDPacket [10:34:53]OFDProtocolAddRootSTLVToBuf [10:34:53]FM_MakeSignedData [10:34:53]FM_MakeSignedData [10:34:53]SAM_PROTO_SignData [10:34:53]wFMCommunicate request_size=4 [10:34:53]MH_SAM_APDU [10:34:53]CAPDU: 80 0D 01 02 [10:34:53]Write to MH i2c: E2 08 00 A6 2D 80 0D 01 02 00 00 00 00 4C [10:34:53]Write i2c OK [10:34:53]MH_I2C_Read... [10:34:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:53]Read from MH i2c: E2 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: E2 03 00 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: E2 03 00 A6 2D 00 90 00 47 [10:34:53]RAPDU: 90 00 [10:34:53]wFMCommunicate OK [10:34:53]wFMCommunicate request_size=255 [10:34:53]MH_SAM_APDU [10:34:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 4F 24 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 18 A8 01 00 35 04 06 00 FA [10:34:53]Write to MH i2c: E2 02 01 A7 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 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 4F 24 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 18 A8 01 00 35 04 06 00 FA 00 00 CE [10:34:53]Write i2c OK [10:34:53]MH_I2C_Read... [10:34:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:53]Read from MH i2c: E2 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: E2 03 00 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: E2 03 00 A7 2D 00 90 00 48 [10:34:53]RAPDU: 90 00 [10:34:53]wFMCommunicate OK [10:34:53]wFMCommunicate request_size=10 [10:34:53]MH_SAM_APDU [10:34:53]CAPDU: 80 0D 02 02 05 B6 3B C1 F1 B8 [10:34:53]Write to MH i2c: E2 0D 00 A8 2D 80 0D 02 02 05 00 B6 3B C1 F1 B8 00 00 B4 [10:34:53]Write i2c OK [10:34:53]MH_I2C_Read... [10:34:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:53]Read from MH i2c: E2 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: E2 03 00 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: E2 03 00 A8 2D 00 90 00 49 [10:34:53]RAPDU: 90 00 [10:34:53]wFMCommunicate OK [10:34:53]wFMCommunicate request_size=4 [10:34:53]MH_SAM_APDU [10:34:53]CAPDU: 80 0D 03 02 [10:34:53]Write to MH i2c: E2 08 00 A9 2D 80 0D 03 02 00 00 00 00 51 [10:34:53]Write i2c OK [10:34:53]MH_I2C_Read... [10:34:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:53]Read from MH i2c: E2 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: E2 0B 00 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: E2 0B 00 A9 2D 00 EA 83 00 27 B3 5A E6 F5 90 00 CE [10:34:53]RAPDU: EA 83 00 27 B3 5A E6 F5 90 00 [10:34:53]wFMCommunicate OK [10:34:53]SAM_PROTO_SignData done [10:34:53]FM_MakeSignedData done [10:34:53]CreateOFDProtocolMessage [10:34:53]wFMCommunicate request_size=4 [10:34:53]MH_SAM_APDU [10:34:53]CAPDU: 80 11 00 00 [10:34:53]Write to MH i2c: E2 08 00 AA 2D 80 11 00 00 00 00 00 00 51 [10:34:53]Write i2c OK [10:34:53]MH_I2C_Read... [10:34:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:53]Read from MH i2c: E2 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: E2 17 00 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: E2 17 00 AA 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 A5 [10:34:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:34:53]wFMCommunicate OK [10:34:53]CreateOFDProtocolMessage done [10:34:53]OFDSenderStorePacket 108568 [10:34:53]StoreOFDPacket docnum=108568 [10:34:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 A2 3E 07 01 88 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 4F 24 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 18 A8 01 00 35 04 06 00 FA B6 3B C1 F1 B8 EA 83 00 27 B3 5A E6 F5 [10:34:53]CheckFolder [10:34:53]dirname=/storage/ofd_packets [10:34:53]CheckFolder done [10:34:53]ProducePacketName [10:34:53]name=ofd_packets/00108568 [10:34:53]NVStorageSaveData ofd_packets/00108568 [10:34:53]File name is /storage/ofd_packets/00108568 [10:34:53]Write 301 bytes [10:34:53]NVStorageSaveData done [10:34:53]OFDSenderStorePacket done [10:34:53]KKMCreateOFDPacket done [10:34:53]NVStorageSaveData kkm_last_timestamp [10:34:53]File name is /storage/kkm_last_timestamp [10:34:53]Write 4 bytes [10:34:53]NVStorageSaveData done [10:34:53]ExternCall_PrintAddStr [10:34:53]wPrintStart [10:34:53]Write to MH i2c: 01 00 00 AB 2D D8 [10:34:53]Write i2c OK [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: 01 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: 01 07 00 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: 01 07 00 AB 2D 00 00 00 00 00 FF 0F ED [10:34:53]RasterBufferAndPrint [10:34:53]line Счет N : (1)1040743 [10:34:53]line ИНН: 02508201610067 [10:34:53]line Контрольно-Кассовый Чек [10:34:53]line ПРОДАЖА [10:34:53]line ТРК (МРК, ГНК) : 23 [10:34:53]line Товар: 2710124130 [10:34:53]line Аи-92-К-5 [10:34:53]line 16.160 * 61.90 [10:34:53]line = 1000.30 [10:34:53]line НДС 12% НСП 1% [10:34:53]line > о реализуемом товаре [10:34:53]line ОКРУГЛЕНИЕ: -0.30 [10:34:53]line ИТОГО: 1000.00 [10:34:53]line Внесено: 1000.00 [10:34:53]line СДАЧА: 0.00 [10:34:53]line НСП 1% : 8.85 [10:34:53]line НДС 12% : 106.23 [10:34:53]line Наличными: 1000.00 [10:34:53]line Безнал.: 0.00 [10:34:53]line Место: АЗС № 15 "Партнер Нефть" [10:34:53]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [10:34:53]line СНО: Общий режим [10:34:53]line Чек 91 15.03.2024 10:34 [10:34:53]line Смена: 320 ФФД: 1.0 [10:34:53]line ЗНМ: 0300000266 [10:34:53]line РНМ: 0000000000091911 [10:34:53]line Версия ККМ: 001 [10:34:53]line ФМ: 0000000000871818 [10:34:53]line ФД: 108568 [10:34:53]line ФПД: 275660593557944 [10:34:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T103455&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108568&fm=275660593557944&tin=02508201610067®Number=0000000000091911&sum=100000 [10:34:53]OFD Sender: Processing packet 108568 [packets to send 29, broken 28] [10:34:53]ProducePacketName [10:34:53]name=ofd_packets/00108568 [10:34:53]OFD Sender: To server: pG, [10:34:53]CommunicateWithHost lk.salyk.kg:30040 [10:34:53]ConnectInit lk.salyk.kg [10:34:53]written 0, free lines is 4095 [10:34:53]Connected sock=10 [10:34: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 31 38 0F 01 00 00 A2 3E 07 01 88 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 4F 24 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 18 A8 01 00 35 04 06 00 FA B6 3B C1 F1 B8 EA 83 00 27 B3 5A E6 F5 [10:34: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 31 38 4F 00 00 00 7F C8 47 00 9F 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 18 A8 01 00 F4 03 04 00 EF CF F3 65 B6 04 01 00 00 06 93 81 CB 0B E6 2C CB [10:34:54]CommunicateWithHost err = 0 [10:34:54]CheckOFDResponse [10:34:54]1017 (14) - 77093643461234 [10:34:54]1041 (16) - 0000000000871818 [10:34:54]1040 (4) - 108568 [10:34:54]1012 (4) - 15.03.2024 04:34 [10:34:54]1206 (1) - 0 [10:34:54]OFD Sender: Remove packet 108568 [10:34:54]ProducePacketName [10:34:54]name=ofd_packets/00108568 [10:34:54]NVStorageDeleteData [10:34:54]Write to MH i2c: 01 00 00 D6 2D 03 [10:34:54]Write i2c OK [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: 01 [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: 01 07 00 [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: 01 07 00 D6 2D 00 00 00 00 00 DA 0C F0 [10:34:54]RasterBufferAndPrint [10:34:54]line [10:34:54]line [10:34:54]line [10:34:54]line [10:34:54]line [10:34:54]written 0, free lines is 3299 [10:34:54]MH_Cut [10:34:54]Write to MH i2c: D1 01 00 DD 2D 01 DC [10:34:54]Write i2c OK [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: D1 [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: D1 01 00 [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: D1 01 00 DD 2D 00 DB [10:34:54]Write to MH i2c: 01 00 00 DE 2D 0B [10:34:54]Write i2c OK [10:34:54]MH_I2C_Read... [10:34:54]OFD Sender: No OFD packet to send [10:34:55]*** Cut start [10:34:55]*** Purtial cut [10:34:55]*** Stage 1: CUTSNS_PIN = 1 [10:34:55]Read from MH i2c: 01 [10:34:55]MH_I2C_Read... [10:34:55]*** Stop cut motor [10:34:55]*** Cut end [10:34:55]Read from MH i2c: 01 07 00 [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: 01 07 00 DE 2D 00 00 00 00 00 FF 0F 20 [10:34:55]process_action close_receipt done [10:34:55]requested_data is exist [10:34:55]produce_requested_data [10:34:55]requested_item fm.sn is exist - process it [10:34:55]wFMCommunicate request_size=4 [10:34:55]MH_SAM_APDU [10:34:55]CAPDU: 80 11 00 00 [10:34:55]Write to MH i2c: E2 08 00 DF 2D 80 11 00 00 00 00 00 00 86 [10:34:55]Write i2c OK [10:34:55]MH_I2C_Read... [10:34:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:55]Read from MH i2c: E2 [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: E2 17 00 [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: E2 17 00 DF 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 DA [10:34:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:34:55]wFMCommunicate OK [10:34:55]requested_item fd.num is exist - process it [10:34:55]SAM_PROTO_GetFieldsCounters [10:34:55]wFMCommunicate request_size=4 [10:34:55]MH_SAM_APDU [10:34:55]CAPDU: 80 13 00 00 [10:34:55]Write to MH i2c: E2 08 00 E0 2D 80 13 00 00 00 00 00 00 89 [10:34:55]Write i2c OK [10:34:55]MH_I2C_Read... [10:34:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:55]Read from MH i2c: E2 [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: E2 62 00 [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: E2 62 00 E0 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 18 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [10:34: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 18 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:34:55]wFMCommunicate OK [10:34:55]SAM_PROTO_GetFieldsCounters done [10:34:55]requested_item shift.num is exist - process it [10:34:55]requested_item shift.opened is exist - process it [10:34:55]req_shift_opened [10:34:55]FM_GetShiftState [10:34:55]SAM_PROTO_GetShiftState [10:34:55]wFMCommunicate request_size=4 [10:34:55]MH_SAM_APDU [10:34:55]CAPDU: 80 13 01 00 [10:34:55]Write to MH i2c: E2 08 00 E1 2D 80 13 01 00 00 00 00 00 8B [10:34:55]Write i2c OK [10:34:55]MH_I2C_Read... [10:34:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:55]Read from MH i2c: E2 [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: E2 0E 00 [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: E2 0E 00 E1 2D 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 BF [10:34:55]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:34:55]wFMCommunicate OK [10:34:55]SAM_PROTO_GetShiftState done [10:34:55]FM_GetShiftState done [10:34:55]req_shift_opened done [10:34:55]requested_item shift.open_date is exist - process it [10:34:55]req_shift_open_date [10:34:55]req_shift_open_date done [10:34:55]produce_requested_data done [10:34:55]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108568,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [10:34:55]process_action_free close_receipt [10:34:55]json_value_free [10:34:55]json_value_free done [10:34:55]process_json_proto returns [10:34:55]Send response to host [10:34:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108568,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [10:34:55]free response buf [10:34:55]execute_script done [10:34:55]execute_script returns [10:34:55]free content buf [10:34:55]Sock 9.Close socket [10:34:55]Sock 9.Thread stoped [10:34:56]accept exits with 8 [10:34:56]New connection [10:34:56]New thread 3067198820 created [10:34:56]Thread 3067342180 joined [10:34:56]Waiting for new connection... [10:34:56] Sock 8.Parse request [10:34:56]Sock 8.Check first char [10:34:56]Sock 8.First char is OK [10:34:56]request: POST /json_proto HTTP/1.0 [10:34:56]Method: POST [10:34:56]URL: /json_proto [10:34:56]Method is POST - this is cgi request [10:34:56]url: /json_proto [10:34:56]query_string will be loaded in cgi processing [10:34:56]execute_cgi json_proto POST (null) [10:34:56]execute_cgi path=json_proto method=POST [10:34:56]POST find Content-Length [10:34:56]Host: 172.17.32.69:8080 [10:34:56]Content-Length: 687 [10:34:56]Content-Type: application/json [10:34:56] [10:34:56]POST finish read [10:34:56]Found Content-Length = 687 [10:34:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 16.930, "sum" : 1200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:56]execute_script... [10:34: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)1040744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 16.930, "sum" : 1200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:56]POST & json_proto [10:34:56]process_json_proto [10:34:56]json parsed OK: [10:34:56]protocol is kg_v1.0 [10:34:56]action value=close_receipt [10:34:56]process_action close_receipt [10:34:56]cmd_close_receipt [10:34:56]MH_GetDate [10:34:56]Write to MH i2c: F0 00 00 E2 2D FE [10:34:56]Write i2c OK [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: F0 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: F0 09 00 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: F0 09 00 E2 2D 00 53 24 F4 65 D5 0F D3 65 F3 [10:34:56]GetLastDocTimeStamp 1710498895 [10:34:56]current date 1710498899 [10:34:56]FM_GetShiftState [10:34:56]SAM_PROTO_GetShiftState [10:34:56]wFMCommunicate request_size=4 [10:34:56]MH_SAM_APDU [10:34:56]CAPDU: 80 13 01 00 [10:34:56]Write to MH i2c: E2 08 00 E3 2D 80 13 01 00 00 00 00 00 8D [10:34:56]Write i2c OK [10:34:56]MH_I2C_Read... [10:34:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:56]Read from MH i2c: E2 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: E2 0E 00 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: E2 0E 00 E3 2D 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 C1 [10:34:56]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:34:56]wFMCommunicate OK [10:34:56]SAM_PROTO_GetShiftState done [10:34:56]FM_GetShiftState done [10:34:56]opened in 1710461757 [10:34:56]opened+sec_in_day 1710548157 [10:34:56]quantity*price = 120033 [10:34:56]sum+1 = 120035 [10:34:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.47 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 92 15.03.2024 10:35 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108569 ФПД: 126991174629385 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T103500&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108569&fm=126991174629385&tin=02508201610067®Number=0000000000091911&sum=120000 [10:34:57]StoreToDocumentArchive [10:34:57]shift 320 fd 108569 [10:34:57]save to /storage/0320/doc_00108569 [10:34:57]save last doc name /storage/0320/doc_00108569 to /storage/kkm_last_doc_name [10:34:57]save OK [10:34:57]Clear old archive folders... [10:34:57]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:34:57]tlvbuf is 00117030 [10:34:57]SAM_PROTO_ClearQueue [10:34:57]wFMCommunicate request_size=4 [10:34:57]MH_SAM_APDU [10:34:57]CAPDU: 80 09 00 00 [10:34:57]Write to MH i2c: E2 08 00 F0 2D 80 09 00 00 00 00 00 00 8F [10:34:57]Write i2c OK [10:34:57]MH_I2C_Read... [10:34:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:57]Read from MH i2c: E2 [10:34:57]MH_I2C_Read... [10:34:57]Read from MH i2c: E2 03 00 [10:34:57]MH_I2C_Read... [10:34:57]Read from MH i2c: E2 03 00 F0 2D 00 90 00 91 [10:34:57]RAPDU: 90 00 [10:34:57]wFMCommunicate OK [10:34:57]SAM_PROTO_ClearQueue done [10:34:57]KKMCreateOFDPacket [10:34:57]OFDProtocolAddRootSTLVToBuf [10:34:57]FM_MakeSignedData [10:34:57]FM_MakeSignedData [10:34:57]SAM_PROTO_SignData [10:34:57]wFMCommunicate request_size=4 [10:34:57]MH_SAM_APDU [10:34:57]CAPDU: 80 0D 01 02 [10:34:57]Write to MH i2c: E2 08 00 F1 2D 80 0D 01 02 00 00 00 00 97 [10:34:57]Write i2c OK [10:34:57]MH_I2C_Read... [10:34:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:57]Read from MH i2c: E2 [10:34:57]MH_I2C_Read... [10:34:57]Read from MH i2c: E2 03 00 [10:34:57]MH_I2C_Read... [10:34:57]Read from MH i2c: E2 03 00 F1 2D 00 90 00 92 [10:34:57]RAPDU: 90 00 [10:34:57]wFMCommunicate OK [10:34:57]wFMCommunicate request_size=255 [10:34:57]MH_SAM_APDU [10:34:57]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 22 42 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 E2 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 54 24 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 19 A8 01 00 35 04 06 00 [10:34:57]Write to MH i2c: E2 02 01 F2 2D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 22 42 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 E2 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 54 24 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 19 A8 01 00 35 04 06 00 00 00 41 [10:34:57]Write i2c OK [10:34:57]MH_I2C_Read... [10:34:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:57]Read from MH i2c: E2 [10:34:57]MH_I2C_Read... [10:34:57]Read from MH i2c: E2 03 00 [10:34:57]MH_I2C_Read... [10:34:57]Read from MH i2c: E2 03 00 F2 2D 00 90 00 93 [10:34:57]RAPDU: 90 00 [10:34:57]wFMCommunicate OK [10:34:57]wFMCommunicate request_size=11 [10:34:57]MH_SAM_APDU [10:34:57]CAPDU: 80 0D 02 02 06 73 7F 6F DA 78 09 [10:34:58]Write to MH i2c: E2 0E 00 F3 2D 80 0D 02 02 06 00 73 7F 6F DA 78 09 00 00 62 [10:34:58]Write i2c OK [10:34:58]MH_I2C_Read... [10:34:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:58]Read from MH i2c: E2 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: E2 03 00 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: E2 03 00 F3 2D 00 90 00 94 [10:34:58]RAPDU: 90 00 [10:34:58]wFMCommunicate OK [10:34:58]wFMCommunicate request_size=4 [10:34:58]MH_SAM_APDU [10:34:58]CAPDU: 80 0D 03 02 [10:34:58]Write to MH i2c: E2 08 00 F4 2D 80 0D 03 02 00 00 00 00 9C [10:34:58]Write i2c OK [10:34:58]MH_I2C_Read... [10:34:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:58]Read from MH i2c: E2 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: E2 0B 00 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: E2 0B 00 F4 2D 00 1F 5C AB 57 E3 46 0E 3D 90 00 8E [10:34:58]RAPDU: 1F 5C AB 57 E3 46 0E 3D 90 00 [10:34:58]wFMCommunicate OK [10:34:58]SAM_PROTO_SignData done [10:34:58]FM_MakeSignedData done [10:34:58]CreateOFDProtocolMessage [10:34:58]wFMCommunicate request_size=4 [10:34:58]MH_SAM_APDU [10:34:58]CAPDU: 80 11 00 00 [10:34:58]Write to MH i2c: E2 08 00 F5 2D 80 11 00 00 00 00 00 00 9C [10:34:58]Write i2c OK [10:34:58]MH_I2C_Read... [10:34:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:58]Read from MH i2c: E2 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: E2 17 00 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: E2 17 00 F5 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 F0 [10:34:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:34:58]wFMCommunicate OK [10:34:58]CreateOFDProtocolMessage done [10:34:58]OFDSenderStorePacket 108569 [10:34:58]StoreOFDPacket docnum=108569 [10:34:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 01 00 00 8B 6B 08 01 FF 8D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 22 42 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 E2 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 54 24 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 19 A8 01 00 35 04 06 00 73 7F 6F DA 78 09 1F 5C AB 57 E3 46 0E 3D [10:34:58]CheckFolder [10:34:58]dirname=/storage/ofd_packets [10:34:58]CheckFolder done [10:34:58]ProducePacketName [10:34:58]name=ofd_packets/00108569 [10:34:58]NVStorageSaveData ofd_packets/00108569 [10:34:58]File name is /storage/ofd_packets/00108569 [10:34:58]Write 302 bytes [10:34:58]NVStorageSaveData done [10:34:58]OFDSenderStorePacket done [10:34:58]KKMCreateOFDPacket done [10:34:58]NVStorageSaveData kkm_last_timestamp [10:34:58]File name is /storage/kkm_last_timestamp [10:34:58]Write 4 bytes [10:34:58]NVStorageSaveData done [10:34:58]ExternCall_PrintAddStr [10:34:58]wPrintStart [10:34:58]Write to MH i2c: 01 00 00 F6 2D 23 [10:34:58]Write i2c OK [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: 01 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: 01 07 00 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: 01 07 00 F6 2D 00 00 00 00 00 FF 0F 38 [10:34:58]RasterBufferAndPrint [10:34:58]line Счет N : (1)1040744 [10:34:58]line ИНН: 02508201610067 [10:34:58]line Контрольно-Кассовый Чек [10:34:58]line ПРОДАЖА [10:34:58]line ТРК (МРК, ГНК) : 2 [10:34:58]line Товар: 2710194210 [10:34:58]line ДТ(л)-К-5 [10:34:58]line 16.930 * 70.90 [10:34:58]line = 1200.34 [10:34:58]line НДС 12% НСП 1% [10:34:58]line > о реализуемом товаре [10:34:58]line ОКРУГЛЕНИЕ: -0.34 [10:34:58]line ИТОГО: 1200.00 [10:34:58]line Внесено: 1200.00 [10:34:58]line СДАЧА: 0.00 [10:34:58]line НСП 1% : 10.62 [10:34:58]line НДС 12% : 127.47 [10:34:58]line Наличными: 1200.00 [10:34:58]line Безнал.: 0.00 [10:34:58]line Место: АЗС № 15 "Партнер Нефть" [10:34:58]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [10:34:58]line СНО: Общий режим [10:34:58]line Чек 92 15.03.2024 10:35 [10:34:58]line Смена: 320 ФФД: 1.0 [10:34:58]line ЗНМ: 0300000266 [10:34:58]line РНМ: 0000000000091911 [10:34:58]line Версия ККМ: 001 [10:34:58]line ФМ: 0000000000871818 [10:34:58]line ФД: 108569 [10:34:58]line ФПД: 126991174629385 [10:34:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T103500&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108569&fm=126991174629385&tin=02508201610067®Number=0000000000091911&sum=120000 [10:34:58]written 0, free lines is 4095 [10:34:58]OFD Sender: Processing packet 108569 [packets to send 29, broken 28] [10:34:58]ProducePacketName [10:34:58]name=ofd_packets/00108569 [10:34:58]OFD Sender: To server: pG, [10:34:58]CommunicateWithHost lk.salyk.kg:30040 [10:34:58]ConnectInit lk.salyk.kg [10:34:58]Connected sock=10 [10:34:58]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 31 38 10 01 00 00 8B 6B 08 01 FF 8D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 22 42 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 E2 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 54 24 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 19 A8 01 00 35 04 06 00 73 7F 6F DA 78 09 1F 5C AB 57 E3 46 0E 3D [10:34:58]Write to MH i2c: 01 00 00 21 2E 4F [10:34:58]Write i2c OK [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: 01 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: 01 07 00 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: 01 07 00 21 2E 00 00 00 00 00 E6 0C 48 [10:34:58]RasterBufferAndPrint [10:34:58]line [10:34:58]line [10:34:58]line [10:34:58]line [10:34:58]line [10:34:58]written 0, free lines is 3315 [10:34:58]MH_Cut [10:34:58]Write to MH i2c: D1 01 00 28 2E 01 28 [10:34:58]Write i2c OK [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: D1 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: D1 01 00 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: D1 01 00 28 2E 00 27 [10:34:58]Write to MH i2c: 01 00 00 29 2E 57 [10:34:58]Write i2c OK [10:34:58]MH_I2C_Read... [10:34: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 31 38 4F 00 00 00 0A 8D 47 00 96 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 19 A8 01 00 F4 03 04 00 F4 CF F3 65 B6 04 01 00 00 36 EE 6F 70 05 36 39 08 [10:34:58]CommunicateWithHost err = 0 [10:34:58]CheckOFDResponse [10:34:58]1017 (14) - 77093643461234 [10:34:58]1041 (16) - 0000000000871818 [10:34:58]1040 (4) - 108569 [10:34:58]1012 (4) - 15.03.2024 04:35 [10:34:58]1206 (1) - 0 [10:34:58]OFD Sender: Remove packet 108569 [10:34:58]ProducePacketName [10:34:58]name=ofd_packets/00108569 [10:34:58]NVStorageDeleteData [10:34:59]OFD Sender: No OFD packet to send [10:34:59]*** Cut start [10:34:59]*** Purtial cut [10:34:59]*** Stage 1: CUTSNS_PIN = 1 [10:34:59]Read from MH i2c: 01 [10:34:59]MH_I2C_Read... [10:34:59]*** Stop cut motor [10:34:59]*** Cut end [10:34:59]Read from MH i2c: 01 07 00 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: 01 07 00 29 2E 00 00 00 00 00 FF 0F 6C [10:34:59]process_action close_receipt done [10:34:59]requested_data is exist [10:34:59]produce_requested_data [10:34:59]requested_item fm.sn is exist - process it [10:34:59]wFMCommunicate request_size=4 [10:34:59]MH_SAM_APDU [10:34:59]CAPDU: 80 11 00 00 [10:34:59]Write to MH i2c: E2 08 00 2A 2E 80 11 00 00 00 00 00 00 D2 [10:34:59]Write i2c OK [10:34:59]MH_I2C_Read... [10:34:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:59]Read from MH i2c: E2 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: E2 17 00 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: E2 17 00 2A 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 26 [10:34:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:34:59]wFMCommunicate OK [10:34:59]requested_item fd.num is exist - process it [10:34:59]SAM_PROTO_GetFieldsCounters [10:34:59]wFMCommunicate request_size=4 [10:34:59]MH_SAM_APDU [10:34:59]CAPDU: 80 13 00 00 [10:34:59]Write to MH i2c: E2 08 00 2B 2E 80 13 00 00 00 00 00 00 D5 [10:34:59]Write i2c OK [10:34:59]MH_I2C_Read... [10:34:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:59]Read from MH i2c: E2 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: E2 62 00 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: E2 62 00 2B 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 19 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [10:34:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 19 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:34:59]wFMCommunicate OK [10:34:59]SAM_PROTO_GetFieldsCounters done [10:34:59]requested_item shift.num is exist - process it [10:34:59]requested_item shift.opened is exist - process it [10:34:59]req_shift_opened [10:34:59]FM_GetShiftState [10:34:59]SAM_PROTO_GetShiftState [10:34:59]wFMCommunicate request_size=4 [10:34:59]MH_SAM_APDU [10:34:59]CAPDU: 80 13 01 00 [10:34:59]Write to MH i2c: E2 08 00 2C 2E 80 13 01 00 00 00 00 00 D7 [10:34:59]Write i2c OK [10:34:59]MH_I2C_Read... [10:35:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:00]Read from MH i2c: E2 [10:35:00]MH_I2C_Read... [10:35:00]Read from MH i2c: E2 0E 00 [10:35:00]MH_I2C_Read... [10:35:00]Read from MH i2c: E2 0E 00 2C 2E 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 0B [10:35:00]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:35:00]wFMCommunicate OK [10:35:00]SAM_PROTO_GetShiftState done [10:35:00]FM_GetShiftState done [10:35:00]req_shift_opened done [10:35:00]requested_item shift.open_date is exist - process it [10:35:00]req_shift_open_date [10:35:00]req_shift_open_date done [10:35:00]produce_requested_data done [10:35:00]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108569,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [10:35:00]process_action_free close_receipt [10:35:00]json_value_free [10:35:00]json_value_free done [10:35:00]process_json_proto returns [10:35:00]Send response to host [10:35:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108569,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [10:35:00]free response buf [10:35:00]execute_script done [10:35:00]execute_script returns [10:35:00]free content buf [10:35:00]Sock 8.Close socket [10:35:00]Sock 8.Thread stoped [10:35:04]OFD Sender: No OFD packet to send [10:35:09]OFD Sender: No OFD packet to send [10:35:14]OFD Sender: No OFD packet to send [10:35:19]OFD Sender: No OFD packet to send [10:35:24]OFD Sender: No OFD packet to send [10:35:29]OFD Sender: No OFD packet to send [10:35:34]OFD Sender: No OFD packet to send [10:35:39]OFD Sender: No OFD packet to send [10:35:44]OFD Sender: No OFD packet to send [10:35:49]OFD Sender: No OFD packet to send [10:35:54]OFD Sender: No OFD packet to send [10:35:59]OFD Sender: No OFD packet to send [10:36:04]OFD Sender: No OFD packet to send [10:36:09]OFD Sender: No OFD packet to send [10:36:14]OFD Sender: No OFD packet to send [10:36:19]OFD Sender: No OFD packet to send [10:36:24]OFD Sender: No OFD packet to send [10:36:29]OFD Sender: No OFD packet to send [10:36:34]OFD Sender: No OFD packet to send [10:36:39]OFD Sender: No OFD packet to send [10:36:44]OFD Sender: No OFD packet to send [10:36:49]OFD Sender: No OFD packet to send [10:36:54]OFD Sender: No OFD packet to send [10:36:59]OFD Sender: No OFD packet to send [10:37:04]OFD Sender: No OFD packet to send [10:37:09]OFD Sender: No OFD packet to send [10:37:14]OFD Sender: No OFD packet to send [10:37:19]OFD Sender: No OFD packet to send [10:37:24]OFD Sender: No OFD packet to send [10:37:27]accept exits with 9 [10:37:27]New connection [10:37:27]New thread 3067342180 created [10:37:27]Thread 3067198820 joined [10:37:27]Waiting for new connection... [10:37:27] Sock 9.Parse request [10:37:27]Sock 9.Check first char [10:37:27]Sock 9.First char is OK [10:37:27]request: POST /json_proto HTTP/1.0 [10:37:27]Method: POST [10:37:27]URL: /json_proto [10:37:27]Method is POST - this is cgi request [10:37:27]url: /json_proto [10:37:27]query_string will be loaded in cgi processing [10:37:27]execute_cgi json_proto POST (null) [10:37:27]execute_cgi path=json_proto method=POST [10:37:27]POST find Content-Length [10:37:27]Host: 172.17.32.69:8080 [10:37:27]Content-Length: 215 [10:37:27]Content-Type: application/json [10:37:27] [10:37:27]POST finish read [10:37:27]Found Content-Length = 215 [10:37:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:27]execute_script... [10:37:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:27]POST & json_proto [10:37:27]process_json_proto [10:37:27]json parsed OK: [10:37:27]protocol is kg_v1.0 [10:37:27]action value=get_value [10:37:27]process_action get_value [10:37:27]cmd_get_value [10:37:27]process_action get_value done [10:37:27]requested_data is exist [10:37:27]produce_requested_data [10:37:27]requested_item kkm.sn is exist - process it [10:37:27]requested_item kkm.ver is exist - process it [10:37:27]requested_item fm.sn is exist - process it [10:37:27]wFMCommunicate request_size=4 [10:37:27]MH_SAM_APDU [10:37:27]CAPDU: 80 11 00 00 [10:37:27]Write to MH i2c: E2 08 00 2D 2E 80 11 00 00 00 00 00 00 D5 [10:37:27]Write i2c OK [10:37:27]MH_I2C_Read... [10:37:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:27]Read from MH i2c: E2 [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: E2 17 00 [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: E2 17 00 2D 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 29 [10:37:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:37:27]wFMCommunicate OK [10:37:27]requested_item fd.num is exist - process it [10:37:27]SAM_PROTO_GetFieldsCounters [10:37:27]wFMCommunicate request_size=4 [10:37:27]MH_SAM_APDU [10:37:27]CAPDU: 80 13 00 00 [10:37:27]Write to MH i2c: E2 08 00 2E 2E 80 13 00 00 00 00 00 00 D8 [10:37:27]Write i2c OK [10:37:27]MH_I2C_Read... [10:37:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:27]Read from MH i2c: E2 [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: E2 62 00 [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: E2 62 00 2E 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 19 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [10:37: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 19 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:37:27]wFMCommunicate OK [10:37:27]SAM_PROTO_GetFieldsCounters done [10:37:27]requested_item shift.num is exist - process it [10:37:27]requested_item shift.opened is exist - process it [10:37:27]req_shift_opened [10:37:27]FM_GetShiftState [10:37:27]SAM_PROTO_GetShiftState [10:37:27]wFMCommunicate request_size=4 [10:37:27]MH_SAM_APDU [10:37:27]CAPDU: 80 13 01 00 [10:37:27]Write to MH i2c: E2 08 00 2F 2E 80 13 01 00 00 00 00 00 DA [10:37:27]Write i2c OK [10:37:27]MH_I2C_Read... [10:37:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:27]Read from MH i2c: E2 [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: E2 0E 00 [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: E2 0E 00 2F 2E 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 0E [10:37:27]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:37:27]wFMCommunicate OK [10:37:27]SAM_PROTO_GetShiftState done [10:37:27]FM_GetShiftState done [10:37:27]req_shift_opened done [10:37:27]requested_item shift.open_date is exist - process it [10:37:27]req_shift_open_date [10:37:27]req_shift_open_date done [10:37:27]produce_requested_data done [10:37:27]produce_requested_data return {"kkm.sn":"0300000266","kkm.ver":"001","fm.sn":"0000000000871818","fd.num":108569,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [10:37:27]process_action_free get_value [10:37:27]json_value_free [10:37:27]json_value_free done [10:37:27]process_json_proto returns [10:37:27]Send response to host [10:37:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000266","kkm.ver":"001","fm.sn":"0000000000871818","fd.num":108569,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [10:37:27]free response buf [10:37:27]execute_script done [10:37:27]execute_script returns [10:37:27]free content buf [10:37:27]Sock 9.Close socket [10:37:27]Sock 9.Thread stoped [10:37:27]accept exits with 8 [10:37:27]New connection [10:37:27]New thread 3067198820 created [10:37:27]Thread 3067342180 joined [10:37:27]Waiting for new connection... [10:37:27] Sock 8.Parse request [10:37:27]Sock 8.Check first char [10:37:27]Sock 8.First char is OK [10:37:27]request: POST /json_proto HTTP/1.0 [10:37:27]Method: POST [10:37:27]URL: /json_proto [10:37:27]Method is POST - this is cgi request [10:37:27]url: /json_proto [10:37:27]query_string will be loaded in cgi processing [10:37:27]execute_cgi json_proto POST (null) [10:37:27]execute_cgi path=json_proto method=POST [10:37:27]POST find Content-Length [10:37:27]Host: 172.17.32.69:8080 [10:37:27]Content-Length: 331 [10:37:27]Content-Type: application/json [10:37:27] [10:37:27]POST finish read [10:37:27]Found Content-Length = 331 [10:37:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:37:27]execute_script... [10:37:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:37:27]POST & json_proto [10:37:27]process_json_proto [10:37:27]json parsed OK: [10:37:27]protocol is kg_v1.0 [10:37:27]action value=get_value [10:37:27]process_action get_value [10:37:27]cmd_get_value [10:37:27]process_action get_value done [10:37:27]requested_data is exist [10:37:27]produce_requested_data [10:37:27]requested_item fm.sale.total is exist - process it [10:37:27]SAM_PROTO_GetFMData [10:37:27]wFMCommunicate request_size=4 [10:37:27]MH_SAM_APDU [10:37:27]CAPDU: 80 13 03 00 [10:37:27]Write to MH i2c: E2 08 00 30 2E 80 13 03 00 00 00 00 00 DD [10:37:27]Write i2c OK [10:37:27]MH_I2C_Read... [10:37:28]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:37:28]Read from MH i2c: E2 [10:37:28]MH_I2C_Read... [10:37:28]Read from MH i2c: E2 FD 00 [10:37:28]MH_I2C_Read... [10:37:28]Read from MH i2c: E2 FD 00 30 2E 00 C5 04 85 04 C1 04 6E 04 04 00 99 A5 01 00 69 04 A3 00 6F 04 04 00 68 9F 01 00 B1 04 05 00 FD 89 D7 F0 01 70 04 05 00 B6 4F E1 92 01 72 04 04 00 47 3A F6 5D 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 8B 1F C7 34 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 72 D7 65 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 31 06 00 00 B1 04 04 00 B8 82 30 0D 70 04 04 00 B8 82 30 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C9 A2 66 01 EF 03 09 90 00 31 [10:37:28]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 99 A5 01 00 69 04 A3 00 6F 04 04 00 68 9F 01 00 B1 04 05 00 FD 89 D7 F0 01 70 04 05 00 B6 4F E1 92 01 72 04 04 00 47 3A F6 5D 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 8B 1F C7 34 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 72 D7 65 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 31 06 00 00 B1 04 04 00 B8 82 30 0D 70 04 04 00 B8 82 30 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C9 A2 66 01 EF 03 09 90 00 [10:37:28]wFMCommunicate OK [10:37:28]wFMCommunicate request_size=4 [10:37:28]MH_SAM_APDU [10:37:28]CAPDU: 80 17 00 00 [10:37:28]Write to MH i2c: E2 08 00 31 2E 80 17 00 00 00 00 00 00 DF [10:37:28]Write i2c OK [10:37:28]MH_I2C_Read... [10:37:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:37:28]Read from MH i2c: E2 [10:37:28]MH_I2C_Read... [10:37:28]Read from MH i2c: E2 FD 00 [10:37:28]MH_I2C_Read... [10:37:28]Read from MH i2c: E2 FD 00 31 2E 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 5D E2 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 F1 [10:37:28]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 5D E2 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [10:37:28]wFMCommunicate OK [10:37:28]wFMCommunicate request_size=4 [10:37:28]MH_SAM_APDU [10:37:28]CAPDU: 80 17 00 00 [10:37:28]Write to MH i2c: E2 08 00 32 2E 80 17 00 00 00 00 00 00 E0 [10:37:28]Write i2c OK [10:37:28]MH_I2C_Read... [10:37:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:37:28]Read from MH i2c: E2 [10:37:28]MH_I2C_Read... [10:37:28]Read from MH i2c: E2 FD 00 [10:37:28]MH_I2C_Read... [10:37:28]Read from MH i2c: E2 FD 00 32 2E 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 F2 [10:37:28]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [10:37:28]wFMCommunicate OK [10:37:28]wFMCommunicate request_size=4 [10:37:28]MH_SAM_APDU [10:37:28]CAPDU: 80 17 00 00 [10:37:28]Write to MH i2c: E2 08 00 33 2E 80 17 00 00 00 00 00 00 E1 [10:37:28]Write i2c OK [10:37:28]MH_I2C_Read... [10:37:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:37:29]Read from MH i2c: E2 [10:37:29]MH_I2C_Read... [10:37:29]Read from MH i2c: E2 FD 00 [10:37:29]MH_I2C_Read... [10:37:29]Read from MH i2c: E2 FD 00 33 2E 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6D [10:37:29]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:37:29]wFMCommunicate OK [10:37:29]wFMCommunicate request_size=4 [10:37:29]MH_SAM_APDU [10:37:29]CAPDU: 80 17 00 00 [10:37:29]Write to MH i2c: E2 08 00 34 2E 80 17 00 00 00 00 00 00 E2 [10:37:29]Write i2c OK [10:37:29]MH_I2C_Read... [10:37:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [10:37:29]Read from MH i2c: E2 [10:37:29]MH_I2C_Read... [10:37:29]Read from MH i2c: E2 E2 00 [10:37:29]MH_I2C_Read... [10:37:29]Read from MH i2c: E2 E2 00 34 2E 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C0 [10:37:29]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:37:29]wFMCommunicate OK [10:37:29]SAM_PROTO_GetFMData done [10:37:29]requested_item fm.sale_refund.total is exist - process it [10:37:29]requested_item fm.buy.total is exist - process it [10:37:29]requested_item shift.sale.total is exist - process it [10:37:29]SAM_PROTO_GetShiftData [10:37:29]wFMCommunicate request_size=4 [10:37:29]MH_SAM_APDU [10:37:29]CAPDU: 80 13 02 00 [10:37:29]Write to MH i2c: E2 08 00 35 2E 80 13 02 00 00 00 00 00 E1 [10:37:29]Write i2c OK [10:37:29]MH_I2C_Read... [10:37:29]OFD Sender: No OFD packet to send [10:37:29]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:37:29]Read from MH i2c: E2 [10:37:29]MH_I2C_Read... [10:37:29]Read from MH i2c: E2 FD 00 [10:37:29]MH_I2C_Read... [10:37:29]Read from MH i2c: E2 FD 00 35 2E 00 B8 04 AA 04 B4 04 6E 04 04 00 5C 00 00 00 69 04 9B 00 6F 04 04 00 5A 00 00 00 B1 04 03 00 95 D5 6D 70 04 03 00 14 F6 59 72 04 03 00 81 DF 13 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 E2 AA 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E1 F8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 B8 C1 03 70 04 03 00 B8 C1 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 26 66 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 2C [10:37:29]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 5C 00 00 00 69 04 9B 00 6F 04 04 00 5A 00 00 00 B1 04 03 00 95 D5 6D 70 04 03 00 14 F6 59 72 04 03 00 81 DF 13 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 E2 AA 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E1 F8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 B8 C1 03 70 04 03 00 B8 C1 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 26 66 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [10:37:29]wFMCommunicate OK [10:37:29]wFMCommunicate request_size=4 [10:37:29]MH_SAM_APDU [10:37:29]CAPDU: 80 17 00 00 [10:37:29]Write to MH i2c: E2 08 00 36 2E 80 17 00 00 00 00 00 00 E4 [10:37:29]Write i2c OK [10:37:29]MH_I2C_Read... [10:37:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:37:30]Read from MH i2c: E2 [10:37:30]MH_I2C_Read... [10:37:30]Read from MH i2c: E2 FD 00 [10:37:30]MH_I2C_Read... [10:37:30]Read from MH i2c: E2 FD 00 36 2E 00 0B 00 F6 03 01 00 01 F7 03 02 00 82 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 9F [10:37:30]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 82 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [10:37:30]wFMCommunicate OK [10:37:30]wFMCommunicate request_size=4 [10:37:30]MH_SAM_APDU [10:37:30]CAPDU: 80 17 00 00 [10:37:30]Write to MH i2c: E2 08 00 37 2E 80 17 00 00 00 00 00 00 E5 [10:37:30]Write i2c OK [10:37:30]MH_I2C_Read... [10:37:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:37:30]Read from MH i2c: E2 [10:37:30]MH_I2C_Read... [10:37:30]Read from MH i2c: E2 FD 00 [10:37:30]MH_I2C_Read... [10:37:30]Read from MH i2c: E2 FD 00 37 2E 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 87 [10:37:30]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [10:37:30]wFMCommunicate OK [10:37:30]wFMCommunicate request_size=4 [10:37:30]MH_SAM_APDU [10:37:30]CAPDU: 80 17 00 00 [10:37:30]Write to MH i2c: E2 08 00 38 2E 80 17 00 00 00 00 00 00 E6 [10:37:30]Write i2c OK [10:37:30]MH_I2C_Read... [10:37:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:37:30]Read from MH i2c: E2 [10:37:30]MH_I2C_Read... [10:37:30]Read from MH i2c: E2 FD 00 [10:37:30]MH_I2C_Read... [10:37:30]Read from MH i2c: E2 FD 00 38 2E 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 6F [10:37:30]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [10:37:30]wFMCommunicate OK [10:37:30]wFMCommunicate request_size=4 [10:37:30]MH_SAM_APDU [10:37:30]CAPDU: 80 17 00 00 [10:37:30]Write to MH i2c: E2 08 00 39 2E 80 17 00 00 00 00 00 00 E7 [10:37:30]Write i2c OK [10:37:30]MH_I2C_Read... [10:37:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [10:37:31]Read from MH i2c: E2 [10:37:31]MH_I2C_Read... [10:37:31]Read from MH i2c: E2 D5 00 [10:37:31]MH_I2C_Read... [10:37:31]Read from MH i2c: E2 D5 00 39 2E 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C8 [10:37:31]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:37:31]wFMCommunicate OK [10:37:31]SAM_PROTO_GetShiftData done [10:37:31]requested_item shift.sale.total_cash is exist - process it [10:37:31]requested_item shift.sale_refund.total is exist - process it [10:37:31]requested_item shift.sale_refund.total_cash is exist - process it [10:37:31]requested_item shift.buy.total is exist - process it [10:37:31]requested_item shift.buy.total_cash is exist - process it [10:37:31]produce_requested_data done [10:37:31]produce_requested_data return {"fm.sale.total":83356247.01,"fm.sale_refund.total":2212830.00,"fm.buy.total":0.00,"shift.sale.total":71981.01,"shift.sale.total_cash":58957.00,"shift.sale_refund.total":2462.00,"shift.sale_refund.total_cash":2462.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [10:37:31]process_action_free get_value [10:37:31]json_value_free [10:37:31]json_value_free done [10:37:31]process_json_proto returns [10:37:31]Send response to host [10:37:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":83356247.01,"fm.sale_refund.total":2212830.00,"fm.buy.total":0.00,"shift.sale.total":71981.01,"shift.sale.total_cash":58957.00,"shift.sale_refund.total":2462.00,"shift.sale_refund.total_cash":2462.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [10:37:31]free response buf [10:37:31]execute_script done [10:37:31]execute_script returns [10:37:31]free content buf [10:37:31]Sock 8.Close socket [10:37:31]Sock 8.Thread stoped [10:37:34]OFD Sender: No OFD packet to send [10:37:39]OFD Sender: No OFD packet to send [10:37:44]OFD Sender: No OFD packet to send [10:37:49]OFD Sender: No OFD packet to send [10:37:54]OFD Sender: No OFD packet to send [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:28]accept exits with 9 [10:38:28]New connection [10:38:28]New thread 3067342180 created [10:38:28]Thread 3067198820 joined [10:38:28]Waiting for new connection... [10:38:28] Sock 9.Parse request [10:38:28]Sock 9.Check first char [10:38:28]Sock 9.First char is OK [10:38:28]request: POST /json_proto HTTP/1.0 [10:38:28]Method: POST [10:38:28]URL: /json_proto [10:38:28]Method is POST - this is cgi request [10:38:28]url: /json_proto [10:38:28]query_string will be loaded in cgi processing [10:38:28]execute_cgi json_proto POST (null) [10:38:28]execute_cgi path=json_proto method=POST [10:38:28]POST find Content-Length [10:38:28]Host: 172.17.32.69:8080 [10:38:28]Content-Length: 678 [10:38:28]Content-Type: application/json [10:38:28] [10:38:28]POST finish read [10:38:28]Found Content-Length = 678 [10:38:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 73", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "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:38:28]execute_script... [10:38:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 73", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "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:38:28]POST & json_proto [10:38:28]process_json_proto [10:38:28]json parsed OK: [10:38:28]protocol is kg_v1.0 [10:38:28]action value=close_receipt [10:38:28]process_action close_receipt [10:38:28]cmd_close_receipt [10:38:28]MH_GetDate [10:38:28]Write to MH i2c: F0 00 00 3A 2E 57 [10:38:28]Write i2c OK [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: F0 [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: F0 09 00 [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: F0 09 00 3A 2E 00 28 25 F4 65 D5 0F D3 65 22 [10:38:28]GetLastDocTimeStamp 1710498900 [10:38:28]current date 1710499112 [10:38:28]FM_GetShiftState [10:38:28]SAM_PROTO_GetShiftState [10:38:28]wFMCommunicate request_size=4 [10:38:28]MH_SAM_APDU [10:38:28]CAPDU: 80 13 01 00 [10:38:28]Write to MH i2c: E2 08 00 3B 2E 80 13 01 00 00 00 00 00 E6 [10:38:28]Write i2c OK [10:38:28]MH_I2C_Read... [10:38:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:28]Read from MH i2c: E2 [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: E2 0E 00 [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: E2 0E 00 3B 2E 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 1A [10:38:28]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:38:28]wFMCommunicate OK [10:38:28]SAM_PROTO_GetShiftState done [10:38:28]FM_GetShiftState done [10:38:28]opened in 1710461757 [10:38:28]opened+sec_in_day 1710548157 [10:38:28]quantity*price = 50015 [10:38:28]sum+1 = 50016 [10:38:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 93 15.03.2024 10:38 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108570 ФПД: 21258892722491 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T103832&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108570&fm=21258892722491&tin=02508201610067®Number=0000000000091911&sum=50000 [10:38:29]StoreToDocumentArchive [10:38:29]shift 320 fd 108570 [10:38:29]save to /storage/0320/doc_00108570 [10:38:29]save last doc name /storage/0320/doc_00108570 to /storage/kkm_last_doc_name [10:38:29]save OK [10:38:29]Clear old archive folders... [10:38:29]OFD Sender: No OFD packet to send [10:38:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:38:29]tlvbuf is 000DD470 [10:38:29]SAM_PROTO_ClearQueue [10:38:29]wFMCommunicate request_size=4 [10:38:29]MH_SAM_APDU [10:38:29]CAPDU: 80 09 00 00 [10:38:29]Write to MH i2c: E2 08 00 48 2E 80 09 00 00 00 00 00 00 E8 [10:38:29]Write i2c OK [10:38:29]MH_I2C_Read... [10:38:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:29]Read from MH i2c: E2 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: E2 03 00 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: E2 03 00 48 2E 00 90 00 EA [10:38:29]RAPDU: 90 00 [10:38:29]wFMCommunicate OK [10:38:29]SAM_PROTO_ClearQueue done [10:38:29]KKMCreateOFDPacket [10:38:29]OFDProtocolAddRootSTLVToBuf [10:38:29]FM_MakeSignedData [10:38:29]FM_MakeSignedData [10:38:29]SAM_PROTO_SignData [10:38:29]wFMCommunicate request_size=4 [10:38:29]MH_SAM_APDU [10:38:29]CAPDU: 80 0D 01 02 [10:38:29]Write to MH i2c: E2 08 00 49 2E 80 0D 01 02 00 00 00 00 F0 [10:38:29]Write i2c OK [10:38:29]MH_I2C_Read... [10:38:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:29]Read from MH i2c: E2 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: E2 03 00 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: E2 03 00 49 2E 00 90 00 EB [10:38:29]RAPDU: 90 00 [10:38:29]wFMCommunicate OK [10:38:29]wFMCommunicate request_size=255 [10:38:29]MH_SAM_APDU [10:38:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 28 25 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 1A A8 01 00 35 04 06 00 13 [10:38:29]Write to MH i2c: E2 02 01 4A 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 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 28 25 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 1A A8 01 00 35 04 06 00 13 00 00 DD [10:38:29]Write i2c OK [10:38:29]MH_I2C_Read... [10:38:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:29]Read from MH i2c: E2 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: E2 03 00 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: E2 03 00 4A 2E 00 90 00 EC [10:38:29]RAPDU: 90 00 [10:38:29]wFMCommunicate OK [10:38:29]wFMCommunicate request_size=10 [10:38:29]MH_SAM_APDU [10:38:29]CAPDU: 80 0D 02 02 05 55 B8 BF C1 3B [10:38:29]Write to MH i2c: E2 0D 00 4B 2E 80 0D 02 02 05 00 55 B8 BF C1 3B 00 00 C5 [10:38:29]Write i2c OK [10:38:29]MH_I2C_Read... [10:38:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:29]Read from MH i2c: E2 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: E2 03 00 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: E2 03 00 4B 2E 00 90 00 ED [10:38:29]RAPDU: 90 00 [10:38:29]wFMCommunicate OK [10:38:29]wFMCommunicate request_size=4 [10:38:29]MH_SAM_APDU [10:38:29]CAPDU: 80 0D 03 02 [10:38:29]Write to MH i2c: E2 08 00 4C 2E 80 0D 03 02 00 00 00 00 F5 [10:38:29]Write i2c OK [10:38:29]MH_I2C_Read... [10:38:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:30]Read from MH i2c: E2 [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: E2 0B 00 [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: E2 0B 00 4C 2E 00 37 5D 96 EC B8 F5 6A 78 90 00 9B [10:38:30]RAPDU: 37 5D 96 EC B8 F5 6A 78 90 00 [10:38:30]wFMCommunicate OK [10:38:30]SAM_PROTO_SignData done [10:38:30]FM_MakeSignedData done [10:38:30]CreateOFDProtocolMessage [10:38:30]wFMCommunicate request_size=4 [10:38:30]MH_SAM_APDU [10:38:30]CAPDU: 80 11 00 00 [10:38:30]Write to MH i2c: E2 08 00 4D 2E 80 11 00 00 00 00 00 00 F5 [10:38:30]Write i2c OK [10:38:30]MH_I2C_Read... [10:38:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:30]Read from MH i2c: E2 [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: E2 17 00 [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: E2 17 00 4D 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 49 [10:38:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:38:30]wFMCommunicate OK [10:38:30]CreateOFDProtocolMessage done [10:38:30]OFDSenderStorePacket 108570 [10:38:30]StoreOFDPacket docnum=108570 [10:38:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 62 10 07 01 BB D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 28 25 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 1A A8 01 00 35 04 06 00 13 55 B8 BF C1 3B 37 5D 96 EC B8 F5 6A 78 [10:38:30]CheckFolder [10:38:30]dirname=/storage/ofd_packets [10:38:30]CheckFolder done [10:38:30]ProducePacketName [10:38:30]name=ofd_packets/00108570 [10:38:30]NVStorageSaveData ofd_packets/00108570 [10:38:30]File name is /storage/ofd_packets/00108570 [10:38:30]Write 301 bytes [10:38:30]NVStorageSaveData done [10:38:30]OFDSenderStorePacket done [10:38:30]KKMCreateOFDPacket done [10:38:30]NVStorageSaveData kkm_last_timestamp [10:38:30]File name is /storage/kkm_last_timestamp [10:38:30]Write 4 bytes [10:38:30]NVStorageSaveData done [10:38:30]ExternCall_PrintAddStr [10:38:30]wPrintStart [10:38:30]Write to MH i2c: 01 00 00 4E 2E 7C [10:38:30]Write i2c OK [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: 01 [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: 01 07 00 [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: 01 07 00 4E 2E 00 00 00 00 00 FF 0F 91 [10:38:30]RasterBufferAndPrint [10:38:30]line Счет N : (1)1040745 [10:38:30]line ИНН: 02508201610067 [10:38:30]line Контрольно-Кассовый Чек [10:38:30]line ПРОДАЖА [10:38:30]line ТРК (МРК, ГНК) : 73 [10:38:30]line Товар: 2710124130 [10:38:30]line Аи-92-К-5 [10:38:30]line 8.080 * 61.90 [10:38:30]line = 500.15 [10:38:30]line НДС 12% НСП 1% [10:38:30]line > о реализуемом товаре [10:38:30]line ОКРУГЛЕНИЕ: -0.15 [10:38:30]line ИТОГО: 500.00 [10:38:30]line Внесено: 500.00 [10:38:30]line СДАЧА: 0.00 [10:38:30]line НСП 1% : 4.43 [10:38:30]line НДС 12% : 53.11 [10:38:30]line Наличными: 500.00 [10:38:30]line Безнал.: 0.00 [10:38:30]line Место: АЗС № 15 "Партнер Нефть" [10:38:30]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [10:38:30]line СНО: Общий режим [10:38:30]line Чек 93 15.03.2024 10:38 [10:38:30]line Смена: 320 ФФД: 1.0 [10:38:30]line ЗНМ: 0300000266 [10:38:30]line РНМ: 0000000000091911 [10:38:30]line Версия ККМ: 001 [10:38:30]line ФМ: 0000000000871818 [10:38:30]line ФД: 108570 [10:38:30]line ФПД: 21258892722491 [10:38:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T103832&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108570&fm=21258892722491&tin=02508201610067®Number=0000000000091911&sum=50000 [10:38:30]OFD Sender: Processing packet 108570 [packets to send 29, broken 28] [10:38:30]ProducePacketName [10:38:30]name=ofd_packets/00108570 [10:38:30]OFD Sender: To server: pG, [10:38:30]CommunicateWithHost lk.salyk.kg:30040 [10:38:30]ConnectInit lk.salyk.kg [10:38:30]written 0, free lines is 4095 [10:38:30]Connected sock=10 [10:38:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 62 10 07 01 BB D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 28 25 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 1A A8 01 00 35 04 06 00 13 55 B8 BF C1 3B 37 5D 96 EC B8 F5 6A 78 [10:38: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 31 38 4F 00 00 00 97 91 47 00 E0 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 1A A8 01 00 F4 03 04 00 C8 D0 F3 65 B6 04 01 00 00 B3 6D FF 1D 82 F3 8F 17 [10:38:30]CommunicateWithHost err = 0 [10:38:30]CheckOFDResponse [10:38:30]1017 (14) - 77093643461234 [10:38:30]1041 (16) - 0000000000871818 [10:38:30]1040 (4) - 108570 [10:38:30]1012 (4) - 15.03.2024 04:38 [10:38:30]1206 (1) - 0 [10:38:30]OFD Sender: Remove packet 108570 [10:38:30]ProducePacketName [10:38:30]name=ofd_packets/00108570 [10:38:30]NVStorageDeleteData [10:38:30]Write to MH i2c: 01 00 00 79 2E A7 [10:38:30]Write i2c OK [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: 01 [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: 01 07 00 [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: 01 07 00 79 2E 00 00 00 00 00 E5 0C 9F [10:38:30]RasterBufferAndPrint [10:38:30]line [10:38:30]line [10:38:30]line [10:38:30]line [10:38:30]line [10:38:30]written 0, free lines is 3307 [10:38:30]MH_Cut [10:38:30]Write to MH i2c: D1 01 00 80 2E 01 80 [10:38:30]Write i2c OK [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: D1 [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: D1 01 00 [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: D1 01 00 80 2E 00 7F [10:38:30]Write to MH i2c: 01 00 00 81 2E AF [10:38:30]Write i2c OK [10:38:30]MH_I2C_Read... [10:38:31]OFD Sender: No OFD packet to send [10:38:31]*** Cut start [10:38:31]*** Purtial cut [10:38:31]*** Stage 1: CUTSNS_PIN = 1 [10:38:31]Read from MH i2c: 01 [10:38:31]MH_I2C_Read... [10:38:31]*** Stop cut motor [10:38:31]*** Cut end [10:38:31]Read from MH i2c: 01 07 00 [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: 01 07 00 81 2E 00 00 00 00 00 FF 0F C4 [10:38:31]process_action close_receipt done [10:38:31]requested_data is exist [10:38:31]produce_requested_data [10:38:31]requested_item fm.sn is exist - process it [10:38:31]wFMCommunicate request_size=4 [10:38:31]MH_SAM_APDU [10:38:31]CAPDU: 80 11 00 00 [10:38:31]Write to MH i2c: E2 08 00 82 2E 80 11 00 00 00 00 00 00 2A [10:38:31]Write i2c OK [10:38:31]MH_I2C_Read... [10:38:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:32]Read from MH i2c: E2 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 17 00 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 17 00 82 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 7E [10:38:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:38:32]wFMCommunicate OK [10:38:32]requested_item fd.num is exist - process it [10:38:32]SAM_PROTO_GetFieldsCounters [10:38:32]wFMCommunicate request_size=4 [10:38:32]MH_SAM_APDU [10:38:32]CAPDU: 80 13 00 00 [10:38:32]Write to MH i2c: E2 08 00 83 2E 80 13 00 00 00 00 00 00 2D [10:38:32]Write i2c OK [10:38:32]MH_I2C_Read... [10:38:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:32]Read from MH i2c: E2 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 62 00 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 62 00 83 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 1A A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [10:38:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 1A A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:38:32]wFMCommunicate OK [10:38:32]SAM_PROTO_GetFieldsCounters done [10:38:32]requested_item shift.num is exist - process it [10:38:32]requested_item shift.opened is exist - process it [10:38:32]req_shift_opened [10:38:32]FM_GetShiftState [10:38:32]SAM_PROTO_GetShiftState [10:38:32]wFMCommunicate request_size=4 [10:38:32]MH_SAM_APDU [10:38:32]CAPDU: 80 13 01 00 [10:38:32]Write to MH i2c: E2 08 00 84 2E 80 13 01 00 00 00 00 00 2F [10:38:32]Write i2c OK [10:38:32]MH_I2C_Read... [10:38:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:32]Read from MH i2c: E2 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 0E 00 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 0E 00 84 2E 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 63 [10:38:32]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:38:32]wFMCommunicate OK [10:38:32]SAM_PROTO_GetShiftState done [10:38:32]FM_GetShiftState done [10:38:32]req_shift_opened done [10:38:32]requested_item shift.open_date is exist - process it [10:38:32]req_shift_open_date [10:38:32]req_shift_open_date done [10:38:32]produce_requested_data done [10:38:32]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108570,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [10:38:32]process_action_free close_receipt [10:38:32]json_value_free [10:38:32]json_value_free done [10:38:32]process_json_proto returns [10:38:32]Send response to host [10:38:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108570,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [10:38:32]free response buf [10:38:32]execute_script done [10:38:32]execute_script returns [10:38:32]free content buf [10:38:32]Sock 9.Close socket [10:38:32]Sock 9.Thread stoped [10:38:36]OFD Sender: No OFD packet to send [10:38:41]OFD Sender: No OFD packet to send [10:38:46]OFD Sender: No OFD packet to send [10:38:51]OFD Sender: No OFD packet to send [10:38:56]OFD Sender: No OFD packet to send [10:39:01]OFD Sender: No OFD packet to send [10:39:06]OFD Sender: No OFD packet to send [10:39:11]OFD Sender: No OFD packet to send [10:39:16]OFD Sender: No OFD packet to send [10:39:21]OFD Sender: No OFD packet to send [10:39:26]OFD Sender: No OFD packet to send [10:39:31]OFD Sender: No OFD packet to send [10:39:36]OFD Sender: No OFD packet to send [10:39:41]OFD Sender: No OFD packet to send [10:39:46]OFD Sender: No OFD packet to send [10:39:51]OFD Sender: No OFD packet to send [10:39:56]OFD Sender: No OFD packet to send [10:40:01]OFD Sender: No OFD packet to send [10:40:06]OFD Sender: No OFD packet to send [10:40:11]OFD Sender: No OFD packet to send [10:40:16]OFD Sender: No OFD packet to send [10:40:21]OFD Sender: No OFD packet to send [10:40:26]OFD Sender: No OFD packet to send [10:40:31]OFD Sender: No OFD packet to send [10:40:36]OFD Sender: No OFD packet to send [10:40:41]OFD Sender: No OFD packet to send [10:40:46]OFD Sender: No OFD packet to send [10:40:51]OFD Sender: No OFD packet to send [10:40:56]OFD Sender: No OFD packet to send [10:41:01]OFD Sender: No OFD packet to send [10:41:06]OFD Sender: No OFD packet to send [10:41:11]OFD Sender: No OFD packet to send [10:41:16]OFD Sender: No OFD packet to send [10:41:21]OFD Sender: No OFD packet to send [10:41:26]OFD Sender: No OFD packet to send [10:41:31]OFD Sender: No OFD packet to send [10:41:36]OFD Sender: No OFD packet to send [10:41:41]OFD Sender: No OFD packet to send [10:41:46]OFD Sender: No OFD packet to send [10:41:51]OFD Sender: No OFD packet to send [10:41:56]OFD Sender: No OFD packet to send [10:42:01]OFD Sender: No OFD packet to send [10:42:06]OFD Sender: No OFD packet to send [10:42:11]OFD Sender: No OFD packet to send [10:42:16]OFD Sender: No OFD packet to send [10:42:21]OFD Sender: No OFD packet to send [10:42:26]OFD Sender: No OFD packet to send [10:42:31]OFD Sender: No OFD packet to send [10:42:36]OFD Sender: No OFD packet to send [10:42:41]OFD Sender: No OFD packet to send [10:42:46]OFD Sender: No OFD packet to send [10:42:51]OFD Sender: No OFD packet to send [10:42:56]OFD Sender: No OFD packet to send [10:43:01]OFD Sender: No OFD packet to send [10:43:05]accept exits with 8 [10:43:05]New connection [10:43:05]New thread 3067198820 created [10:43:05]Thread 3067342180 joined [10:43:05]Waiting for new connection... [10:43:05] Sock 8.Parse request [10:43:05]Sock 8.Check first char [10:43:05]Sock 8.First char is OK [10:43:05]request: POST /json_proto HTTP/1.0 [10:43:05]Method: POST [10:43:05]URL: /json_proto [10:43:05]Method is POST - this is cgi request [10:43:05]url: /json_proto [10:43:05]query_string will be loaded in cgi processing [10:43:05]execute_cgi json_proto POST (null) [10:43:05]execute_cgi path=json_proto method=POST [10:43:05]POST find Content-Length [10:43:05]Host: 172.17.32.69:8080 [10:43:05]Content-Length: 678 [10:43:05]Content-Type: application/json [10:43:05] [10:43:05]POST finish read [10:43:05]Found Content-Length = 678 [10:43:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 4.850, "sum" : 300.22, "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:43:05]execute_script... [10:43: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)1040746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 4.850, "sum" : 300.22, "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:43:05]POST & json_proto [10:43:05]process_json_proto [10:43:05]json parsed OK: [10:43:05]protocol is kg_v1.0 [10:43:05]action value=close_receipt [10:43:05]process_action close_receipt [10:43:05]cmd_close_receipt [10:43:05]MH_GetDate [10:43:05]Write to MH i2c: F0 00 00 85 2E A2 [10:43:05]Write i2c OK [10:43:05]MH_I2C_Read... [10:43:05]Read from MH i2c: F0 [10:43:05]MH_I2C_Read... [10:43:05]Read from MH i2c: F0 09 00 [10:43:05]MH_I2C_Read... [10:43:05]Read from MH i2c: F0 09 00 85 2E 00 3D 26 F4 65 D5 0F D3 65 83 [10:43:05]GetLastDocTimeStamp 1710499112 [10:43:05]current date 1710499389 [10:43:05]FM_GetShiftState [10:43:05]SAM_PROTO_GetShiftState [10:43:05]wFMCommunicate request_size=4 [10:43:05]MH_SAM_APDU [10:43:05]CAPDU: 80 13 01 00 [10:43:05]Write to MH i2c: E2 08 00 86 2E 80 13 01 00 00 00 00 00 31 [10:43:05]Write i2c OK [10:43:05]MH_I2C_Read... [10:43:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:05]Read from MH i2c: E2 [10:43:05]MH_I2C_Read... [10:43:05]Read from MH i2c: E2 0E 00 [10:43:05]MH_I2C_Read... [10:43:05]Read from MH i2c: E2 0E 00 86 2E 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 65 [10:43:05]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:43:05]wFMCommunicate OK [10:43:05]SAM_PROTO_GetShiftState done [10:43:05]FM_GetShiftState done [10:43:05]opened in 1710461757 [10:43:05]opened+sec_in_day 1710548157 [10:43:05]quantity*price = 30021 [10:43:05]sum+1 = 30023 [10:43:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 94 15.03.2024 10:43 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108571 ФПД: 175301280099517 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T104309&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108571&fm=175301280099517&tin=02508201610067®Number=0000000000091911&sum=30000 [10:43:06]StoreToDocumentArchive [10:43:06]shift 320 fd 108571 [10:43:06]save to /storage/0320/doc_00108571 [10:43:06]save last doc name /storage/0320/doc_00108571 to /storage/kkm_last_doc_name [10:43:06]save OK [10:43:06]Clear old archive folders... [10:43:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:43:06]tlvbuf is 000D0680 [10:43:06]SAM_PROTO_ClearQueue [10:43:06]wFMCommunicate request_size=4 [10:43:06]MH_SAM_APDU [10:43:06]CAPDU: 80 09 00 00 [10:43:06]Write to MH i2c: E2 08 00 93 2E 80 09 00 00 00 00 00 00 33 [10:43:06]Write i2c OK [10:43:06]MH_I2C_Read... [10:43:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:06]Read from MH i2c: E2 [10:43:06]MH_I2C_Read... [10:43:06]Read from MH i2c: E2 03 00 [10:43:06]MH_I2C_Read... [10:43:06]Read from MH i2c: E2 03 00 93 2E 00 90 00 35 [10:43:06]RAPDU: 90 00 [10:43:06]wFMCommunicate OK [10:43:06]SAM_PROTO_ClearQueue done [10:43:06]KKMCreateOFDPacket [10:43:06]OFDProtocolAddRootSTLVToBuf [10:43:06]FM_MakeSignedData [10:43:06]FM_MakeSignedData [10:43:06]SAM_PROTO_SignData [10:43:06]wFMCommunicate request_size=4 [10:43:06]MH_SAM_APDU [10:43:06]CAPDU: 80 0D 01 02 [10:43:06]Write to MH i2c: E2 08 00 94 2E 80 0D 01 02 00 00 00 00 3B [10:43:06]Write i2c OK [10:43:06]MH_I2C_Read... [10:43:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:07]Read from MH i2c: E2 [10:43:07]MH_I2C_Read... [10:43:07]Read from MH i2c: E2 03 00 [10:43:07]MH_I2C_Read... [10:43:07]Read from MH i2c: E2 03 00 94 2E 00 90 00 36 [10:43:07]RAPDU: 90 00 [10:43:07]wFMCommunicate OK [10:43:07]wFMCommunicate request_size=255 [10:43:07]MH_SAM_APDU [10:43:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 5E 00 00 00 F4 03 04 00 3D 26 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 1B A8 01 00 35 04 06 00 9F [10:43:07]Write to MH i2c: E2 02 01 95 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 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 5E 00 00 00 F4 03 04 00 3D 26 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 1B A8 01 00 35 04 06 00 9F 00 00 DA [10:43:07]Write i2c OK [10:43:07]MH_I2C_Read... [10:43:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:07]Read from MH i2c: E2 [10:43:07]MH_I2C_Read... [10:43:07]Read from MH i2c: E2 03 00 [10:43:07]MH_I2C_Read... [10:43:07]Read from MH i2c: E2 03 00 95 2E 00 90 00 37 [10:43:07]RAPDU: 90 00 [10:43:07]wFMCommunicate OK [10:43:07]wFMCommunicate request_size=10 [10:43:07]MH_SAM_APDU [10:43:07]CAPDU: 80 0D 02 02 05 6F 82 87 6C BD [10:43:07]Write to MH i2c: E2 0D 00 96 2E 80 0D 02 02 05 00 6F 82 87 6C BD 00 00 E9 [10:43:07]Write i2c OK [10:43:07]MH_I2C_Read... [10:43:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:07]Read from MH i2c: E2 [10:43:07]MH_I2C_Read... [10:43:07]Read from MH i2c: E2 03 00 [10:43:07]MH_I2C_Read... [10:43:07]Read from MH i2c: E2 03 00 96 2E 00 90 00 38 [10:43:07]RAPDU: 90 00 [10:43:07]wFMCommunicate OK [10:43:07]wFMCommunicate request_size=4 [10:43:07]MH_SAM_APDU [10:43:07]CAPDU: 80 0D 03 02 [10:43:07]Write to MH i2c: E2 08 00 97 2E 80 0D 03 02 00 00 00 00 40 [10:43:07]Write i2c OK [10:43:07]MH_I2C_Read... [10:43:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:07]Read from MH i2c: E2 [10:43:07]MH_I2C_Read... [10:43:07]Read from MH i2c: E2 0B 00 [10:43:07]MH_I2C_Read... [10:43:07]Read from MH i2c: E2 0B 00 97 2E 00 A3 74 7D 32 C6 8C CC 1E 90 00 43 [10:43:07]RAPDU: A3 74 7D 32 C6 8C CC 1E 90 00 [10:43:07]wFMCommunicate OK [10:43:07]SAM_PROTO_SignData done [10:43:07]FM_MakeSignedData done [10:43:07]CreateOFDProtocolMessage [10:43:07]wFMCommunicate request_size=4 [10:43:07]MH_SAM_APDU [10:43:07]CAPDU: 80 11 00 00 [10:43:07]Write to MH i2c: E2 08 00 98 2E 80 11 00 00 00 00 00 00 40 [10:43:07]Write i2c OK [10:43:07]MH_I2C_Read... [10:43:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:07]Read from MH i2c: E2 [10:43:07]MH_I2C_Read... [10:43:07]Read from MH i2c: E2 17 00 [10:43:07]MH_I2C_Read... [10:43:07]Read from MH i2c: E2 17 00 98 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 94 [10:43:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:43:07]wFMCommunicate OK [10:43:07]CreateOFDProtocolMessage done [10:43:07]OFDSenderStorePacket 108571 [10:43:07]StoreOFDPacket docnum=108571 [10:43:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 DA 10 07 01 B5 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 5E 00 00 00 F4 03 04 00 3D 26 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 1B A8 01 00 35 04 06 00 9F 6F 82 87 6C BD A3 74 7D 32 C6 8C CC 1E [10:43:07]CheckFolder [10:43:07]dirname=/storage/ofd_packets [10:43:07]CheckFolder done [10:43:07]ProducePacketName [10:43:07]name=ofd_packets/00108571 [10:43:07]NVStorageSaveData ofd_packets/00108571 [10:43:07]File name is /storage/ofd_packets/00108571 [10:43:07]Write 301 bytes [10:43:07]NVStorageSaveData done [10:43:07]OFDSenderStorePacket done [10:43:07]KKMCreateOFDPacket done [10:43:07]NVStorageSaveData kkm_last_timestamp [10:43:07]File name is /storage/kkm_last_timestamp [10:43:07]Write 4 bytes [10:43:07]NVStorageSaveData done [10:43:07]ExternCall_PrintAddStr [10:43:07]wPrintStart [10:43:07]Write to MH i2c: 01 00 00 99 2E C7 [10:43:07]Write i2c OK [10:43:07]MH_I2C_Read... [10:43:07]Read from MH i2c: 01 [10:43:07]MH_I2C_Read... [10:43:07]Read from MH i2c: 01 07 00 [10:43:07]MH_I2C_Read... [10:43:07]Read from MH i2c: 01 07 00 99 2E 00 00 00 00 00 FF 0F DC [10:43:07]RasterBufferAndPrint [10:43:07]line Счет N : (1)1040746 [10:43:07]line ИНН: 02508201610067 [10:43:07]line Контрольно-Кассовый Чек [10:43:07]line ПРОДАЖА [10:43:07]line ТРК (МРК, ГНК) : 13 [10:43:07]line Товар: 2710124130 [10:43:07]line Аи-92-К-5 [10:43:07]line 4.850 * 61.90 [10:43:07]line = 300.22 [10:43:07]line НДС 12% НСП 1% [10:43:07]line > о реализуемом товаре [10:43:07]line ОКРУГЛЕНИЕ: -0.22 [10:43:07]line ИТОГО: 300.00 [10:43:07]line Внесено: 300.00 [10:43:07]line СДАЧА: 0.00 [10:43:07]line НСП 1% : 2.66 [10:43:07]line НДС 12% : 31.88 [10:43:07]line Наличными: 300.00 [10:43:07]line Безнал.: 0.00 [10:43:07]line Место: АЗС № 15 "Партнер Нефть" [10:43:07]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [10:43:07]line СНО: Общий режим [10:43:07]line Чек 94 15.03.2024 10:43 [10:43:07]line Смена: 320 ФФД: 1.0 [10:43:07]line ЗНМ: 0300000266 [10:43:07]line РНМ: 0000000000091911 [10:43:07]line Версия ККМ: 001 [10:43:07]line ФМ: 0000000000871818 [10:43:07]line ФД: 108571 [10:43:07]line ФПД: 175301280099517 [10:43:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T104309&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108571&fm=175301280099517&tin=02508201610067®Number=0000000000091911&sum=30000 [10:43:07]OFD Sender: Processing packet 108571 [packets to send 29, broken 28] [10:43:07]ProducePacketName [10:43:07]name=ofd_packets/00108571 [10:43:07]OFD Sender: To server: pG, [10:43:07]CommunicateWithHost lk.salyk.kg:30040 [10:43:07]ConnectInit lk.salyk.kg [10:43:07]written 0, free lines is 4095 [10:43:07]Connected sock=10 [10:43: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 31 38 0F 01 00 00 DA 10 07 01 B5 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 5E 00 00 00 F4 03 04 00 3D 26 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 1B A8 01 00 35 04 06 00 9F 6F 82 87 6C BD A3 74 7D 32 C6 8C CC 1E [10:43:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 4F 00 00 00 77 00 47 00 23 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 31 38 10 04 04 00 1B A8 01 00 F4 03 04 00 DD D1 F3 65 B6 04 01 00 00 EC 7B 9E C0 A1 92 E6 E3 [10:43:08]CommunicateWithHost err = 0 [10:43:08]CheckOFDResponse [10:43:08]1017 (14) - 77093643461234 [10:43:08]1041 (16) - 0000000000871818 [10:43:08]1040 (4) - 108571 [10:43:08]1012 (4) - 15.03.2024 04:43 [10:43:08]1206 (1) - 0 [10:43:08]OFD Sender: Remove packet 108571 [10:43:08]ProducePacketName [10:43:08]name=ofd_packets/00108571 [10:43:08]NVStorageDeleteData [10:43:08]Write to MH i2c: 01 00 00 C4 2E F2 [10:43:08]Write i2c OK [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: 01 [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: 01 07 00 [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: 01 07 00 C4 2E 00 00 00 00 00 D7 0C DC [10:43:08]RasterBufferAndPrint [10:43:08]line [10:43:08]line [10:43:08]line [10:43:08]line [10:43:08]line [10:43:08]written 0, free lines is 3295 [10:43:08]MH_Cut [10:43:08]Write to MH i2c: D1 01 00 CB 2E 01 CB [10:43:08]Write i2c OK [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: D1 [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: D1 01 00 [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: D1 01 00 CB 2E 00 CA [10:43:08]Write to MH i2c: 01 00 00 CC 2E FA [10:43:08]Write i2c OK [10:43:08]MH_I2C_Read... [10:43:08]OFD Sender: No OFD packet to send [10:43:09]*** Cut start [10:43:09]*** Purtial cut [10:43:09]*** Stage 1: CUTSNS_PIN = 1 [10:43:09]Read from MH i2c: 01 [10:43:09]MH_I2C_Read... [10:43:09]*** Stop cut motor [10:43:09]*** Cut end [10:43:09]Read from MH i2c: 01 07 00 [10:43:09]MH_I2C_Read... [10:43:09]Read from MH i2c: 01 07 00 CC 2E 00 00 00 00 00 FF 0F 0F [10:43:09]process_action close_receipt done [10:43:09]requested_data is exist [10:43:09]produce_requested_data [10:43:09]requested_item fm.sn is exist - process it [10:43:09]wFMCommunicate request_size=4 [10:43:09]MH_SAM_APDU [10:43:09]CAPDU: 80 11 00 00 [10:43:09]Write to MH i2c: E2 08 00 CD 2E 80 11 00 00 00 00 00 00 75 [10:43:09]Write i2c OK [10:43:09]MH_I2C_Read... [10:43:09]Read from MH i2c: E2 [10:43:09]MH_I2C_Read... [10:43:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:09]Read from MH i2c: E2 17 00 [10:43:09]MH_I2C_Read... [10:43:09]Read from MH i2c: E2 17 00 CD 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 C9 [10:43:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:43:09]wFMCommunicate OK [10:43:09]requested_item fd.num is exist - process it [10:43:09]SAM_PROTO_GetFieldsCounters [10:43:09]wFMCommunicate request_size=4 [10:43:09]MH_SAM_APDU [10:43:09]CAPDU: 80 13 00 00 [10:43:09]Write to MH i2c: E2 08 00 CE 2E 80 13 00 00 00 00 00 00 78 [10:43:09]Write i2c OK [10:43:09]MH_I2C_Read... [10:43:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:09]Read from MH i2c: E2 [10:43:09]MH_I2C_Read... [10:43:09]Read from MH i2c: E2 62 00 [10:43:09]MH_I2C_Read... [10:43:09]Read from MH i2c: E2 62 00 CE 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 1B A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [10:43: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 1B A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:43:09]wFMCommunicate OK [10:43:09]SAM_PROTO_GetFieldsCounters done [10:43:09]requested_item shift.num is exist - process it [10:43:09]requested_item shift.opened is exist - process it [10:43:09]req_shift_opened [10:43:09]FM_GetShiftState [10:43:09]SAM_PROTO_GetShiftState [10:43:09]wFMCommunicate request_size=4 [10:43:09]MH_SAM_APDU [10:43:09]CAPDU: 80 13 01 00 [10:43:09]Write to MH i2c: E2 08 00 CF 2E 80 13 01 00 00 00 00 00 7A [10:43:09]Write i2c OK [10:43:09]MH_I2C_Read... [10:43:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:09]Read from MH i2c: E2 [10:43:09]MH_I2C_Read... [10:43:09]Read from MH i2c: E2 0E 00 [10:43:09]MH_I2C_Read... [10:43:09]Read from MH i2c: E2 0E 00 CF 2E 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 AE [10:43:09]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:43:09]wFMCommunicate OK [10:43:09]SAM_PROTO_GetShiftState done [10:43:09]FM_GetShiftState done [10:43:09]req_shift_opened done [10:43:09]requested_item shift.open_date is exist - process it [10:43:09]req_shift_open_date [10:43:09]req_shift_open_date done [10:43:09]produce_requested_data done [10:43:09]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108571,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [10:43:09]process_action_free close_receipt [10:43:09]json_value_free [10:43:09]json_value_free done [10:43:09]process_json_proto returns [10:43:09]Send response to host [10:43:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108571,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [10:43:09]free response buf [10:43:09]execute_script done [10:43:09]execute_script returns [10:43:09]free content buf [10:43:09]Sock 8.Close socket [10:43:09]Sock 8.Thread stoped [10:43:13]OFD Sender: No OFD packet to send [10:43:18]OFD Sender: No OFD packet to send [10:43:23]OFD Sender: No OFD packet to send [10:43:28]OFD Sender: No OFD packet to send [10:43:33]OFD Sender: No OFD packet to send [10:43:38]OFD Sender: No OFD packet to send [10:43:43]OFD Sender: No OFD packet to send [10:43:48]OFD Sender: No OFD packet to send [10:43:53]OFD Sender: No OFD packet to send [10:43:58]OFD Sender: No OFD packet to send [10:44:03]OFD Sender: No OFD packet to send [10:44:08]OFD Sender: No OFD packet to send [10:44:13]OFD Sender: No OFD packet to send [10:44:18]OFD Sender: No OFD packet to send [10:44:23]OFD Sender: No OFD packet to send [10:44:28]OFD Sender: No OFD packet to send [10:44:33]OFD Sender: No OFD packet to send [10:44:38]OFD Sender: No OFD packet to send [10:44:43]OFD Sender: No OFD packet to send [10:44:48]OFD Sender: No OFD packet to send [10:44:53]OFD Sender: No OFD packet to send [10:44:58]OFD Sender: No OFD packet to send [10:45:03]OFD Sender: No OFD packet to send [10:45:08]OFD Sender: No OFD packet to send [10:45:13]OFD Sender: No OFD packet to send [10:45:18]OFD Sender: No OFD packet to send [10:45:23]OFD Sender: No OFD packet to send [10:45:28]OFD Sender: No OFD packet to send [10:45:33]OFD Sender: No OFD packet to send [10:45:38]OFD Sender: No OFD packet to send [10:45:43]OFD Sender: No OFD packet to send [10:45:48]OFD Sender: No OFD packet to send [10:45:53]OFD Sender: No OFD packet to send [10:45:58]OFD Sender: No OFD packet to send [10:46:03]OFD Sender: No OFD packet to send [10:46:08]OFD Sender: No OFD packet to send [10:46:13]OFD Sender: No OFD packet to send [10:46:18]OFD Sender: No OFD packet to send [10:46:23]OFD Sender: No OFD packet to send [10:46:28]OFD Sender: No OFD packet to send [10:46:33]OFD Sender: No OFD packet to send [10:46:38]OFD Sender: No OFD packet to send [10:46:43]int [10:46:43]Write to MH i2c: 01 00 00 D0 2E FE [10:46:43]*** FLAG_PRN_KEY set [10:46:43]Write i2c OK [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: 01 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: 01 07 00 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: 01 07 00 D0 2E 00 08 00 00 00 FF 0F 1B [10:46:43]state=0 [10:46:43]Key pressed [10:46:43]Feed [10:46:43]Write to MH i2c: D8 00 00 D1 2E D6 [10:46:43]Write i2c OK [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: D8 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: D8 01 00 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: D8 01 00 D1 2E 00 D7 [10:46:43]int [10:46:43]Write to MH i2c: 01 00 00 D2 2E 00 [10:46:43]Write i2c OK [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: 01 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: 01 07 00 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: 01 07 00 D2 2E 00 48 00 00 00 3C 00 8B [10:46:43]state=2 [10:46:43]Key pressed [10:46:43]OFD Sender: No OFD packet to send [10:46:43]int [10:46:43]Write to MH i2c: 01 00 00 D3 2E 01 [10:46:43]*** FLAG_PRN_KEY reset [10:46:43]Write i2c OK [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: 01 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: 01 07 00 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: 01 07 00 D3 2E 00 00 00 00 00 FE 0F 15 [10:46:43]state=2 [10:46:43]Stop feed [10:46:48]OFD Sender: No OFD packet to send [10:46:53]OFD Sender: No OFD packet to send [10:46:58]OFD Sender: No OFD packet to send [10:47:03]OFD Sender: No OFD packet to send [10:47:08]OFD Sender: No OFD packet to send [10:47:13]OFD Sender: No OFD packet to send [10:47:18]OFD Sender: No OFD packet to send [10:47:23]OFD Sender: No OFD packet to send [10:47:28]OFD Sender: No OFD packet to send [10:47:33]OFD Sender: No OFD packet to send [10:47:35]accept exits with 9 [10:47:35]New connection [10:47:35]New thread 3067342180 created [10:47:35]Thread 3067198820 joined [10:47:35]Waiting for new connection... [10:47:35] Sock 9.Parse request [10:47:35]Sock 9.Check first char [10:47:35]Sock 9.First char is OK [10:47:35]request: POST /json_proto HTTP/1.0 [10:47:35]Method: POST [10:47:35]URL: /json_proto [10:47:35]Method is POST - this is cgi request [10:47:35]url: /json_proto [10:47:35]query_string will be loaded in cgi processing [10:47:35]execute_cgi json_proto POST (null) [10:47:35]execute_cgi path=json_proto method=POST [10:47:35]POST find Content-Length [10:47:35]Host: 172.17.32.69:8080 [10:47:35]Content-Length: 683 [10:47:35]Content-Type: application/json [10:47:35] [10:47:35]POST finish read [10:47:35]Found Content-Length = 683 [10:47:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:35]execute_script... [10:47:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:35]POST & json_proto [10:47:35]process_json_proto [10:47:35]json parsed OK: [10:47:35]protocol is kg_v1.0 [10:47:35]action value=close_receipt [10:47:35]process_action close_receipt [10:47:35]cmd_close_receipt [10:47:35]MH_GetDate [10:47:35]Write to MH i2c: F0 00 00 D4 2E F1 [10:47:35]Write i2c OK [10:47:35]MH_I2C_Read... [10:47:35]Read from MH i2c: F0 [10:47:35]MH_I2C_Read... [10:47:35]Read from MH i2c: F0 09 00 [10:47:35]MH_I2C_Read... [10:47:35]Read from MH i2c: F0 09 00 D4 2E 00 4B 27 F4 65 D5 0F D3 65 E1 [10:47:35]GetLastDocTimeStamp 1710499389 [10:47:35]current date 1710499659 [10:47:35]FM_GetShiftState [10:47:35]SAM_PROTO_GetShiftState [10:47:35]wFMCommunicate request_size=4 [10:47:35]MH_SAM_APDU [10:47:35]CAPDU: 80 13 01 00 [10:47:35]Write to MH i2c: E2 08 00 D5 2E 80 13 01 00 00 00 00 00 80 [10:47:35]Write i2c OK [10:47:35]MH_I2C_Read... [10:47:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:35]Read from MH i2c: E2 [10:47:35]MH_I2C_Read... [10:47:35]Read from MH i2c: E2 0E 00 [10:47:35]MH_I2C_Read... [10:47:35]Read from MH i2c: E2 0E 00 D5 2E 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 B4 [10:47:35]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:47:35]wFMCommunicate OK [10:47:35]SAM_PROTO_GetShiftState done [10:47:35]FM_GetShiftState done [10:47:35]opened in 1710461757 [10:47:35]opened+sec_in_day 1710548157 [10:47:35]quantity*price = 100030 [10:47:35]sum+1 = 100031 [10:47:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 95 15.03.2024 10:47 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108572 ФПД: 126185442698808 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T104739&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108572&fm=126185442698808&tin=02508201610067®Number=0000000000091911&sum=100000 [10:47:36]StoreToDocumentArchive [10:47:36]shift 320 fd 108572 [10:47:36]save to /storage/0320/doc_00108572 [10:47:36]save last doc name /storage/0320/doc_00108572 to /storage/kkm_last_doc_name [10:47:36]save OK [10:47:36]Clear old archive folders... [10:47:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:47:36]tlvbuf is 000DDC40 [10:47:36]SAM_PROTO_ClearQueue [10:47:36]wFMCommunicate request_size=4 [10:47:36]MH_SAM_APDU [10:47:36]CAPDU: 80 09 00 00 [10:47:36]Write to MH i2c: E2 08 00 E2 2E 80 09 00 00 00 00 00 00 82 [10:47:36]Write i2c OK [10:47:36]MH_I2C_Read... [10:47:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:47:37]Read from MH i2c: E2 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 03 00 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 03 00 E2 2E 00 90 00 84 [10:47:37]RAPDU: 90 00 [10:47:37]wFMCommunicate OK [10:47:37]SAM_PROTO_ClearQueue done [10:47:37]KKMCreateOFDPacket [10:47:37]OFDProtocolAddRootSTLVToBuf [10:47:37]FM_MakeSignedData [10:47:37]FM_MakeSignedData [10:47:37]SAM_PROTO_SignData [10:47:37]wFMCommunicate request_size=4 [10:47:37]MH_SAM_APDU [10:47:37]CAPDU: 80 0D 01 02 [10:47:37]Write to MH i2c: E2 08 00 E3 2E 80 0D 01 02 00 00 00 00 8A [10:47:37]Write i2c OK [10:47:37]MH_I2C_Read... [10:47:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:47:37]Read from MH i2c: E2 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 03 00 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 03 00 E3 2E 00 90 00 85 [10:47:37]RAPDU: 90 00 [10:47:37]wFMCommunicate OK [10:47:37]wFMCommunicate request_size=255 [10:47:37]MH_SAM_APDU [10:47:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 5F 00 00 00 F4 03 04 00 4B 27 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 1C A8 01 00 35 04 06 00 72 [10:47:37]Write to MH i2c: E2 02 01 E4 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 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 5F 00 00 00 F4 03 04 00 4B 27 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 1C A8 01 00 35 04 06 00 72 00 00 8B [10:47:37]Write i2c OK [10:47:37]MH_I2C_Read... [10:47:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:37]Read from MH i2c: E2 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 03 00 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 03 00 E4 2E 00 90 00 86 [10:47:37]RAPDU: 90 00 [10:47:37]wFMCommunicate OK [10:47:37]wFMCommunicate request_size=10 [10:47:37]MH_SAM_APDU [10:47:37]CAPDU: 80 0D 02 02 05 C3 D6 7C E6 38 [10:47:37]Write to MH i2c: E2 0D 00 E5 2E 80 0D 02 02 05 00 C3 D6 7C E6 38 00 00 CA [10:47:37]Write i2c OK [10:47:37]MH_I2C_Read... [10:47:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:37]Read from MH i2c: E2 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 03 00 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 03 00 E5 2E 00 90 00 87 [10:47:37]RAPDU: 90 00 [10:47:37]wFMCommunicate OK [10:47:37]wFMCommunicate request_size=4 [10:47:37]MH_SAM_APDU [10:47:37]CAPDU: 80 0D 03 02 [10:47:37]Write to MH i2c: E2 08 00 E6 2E 80 0D 03 02 00 00 00 00 8F [10:47:37]Write i2c OK [10:47:37]MH_I2C_Read... [10:47:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:47:37]Read from MH i2c: E2 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 0B 00 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 0B 00 E6 2E 00 21 70 57 5F 53 68 94 3C 90 00 62 [10:47:37]RAPDU: 21 70 57 5F 53 68 94 3C 90 00 [10:47:37]wFMCommunicate OK [10:47:37]SAM_PROTO_SignData done [10:47:37]FM_MakeSignedData done [10:47:37]CreateOFDProtocolMessage [10:47:37]wFMCommunicate request_size=4 [10:47:37]MH_SAM_APDU [10:47:37]CAPDU: 80 11 00 00 [10:47:37]Write to MH i2c: E2 08 00 E7 2E 80 11 00 00 00 00 00 00 8F [10:47:37]Write i2c OK [10:47:37]MH_I2C_Read... [10:47:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:37]Read from MH i2c: E2 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 17 00 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 17 00 E7 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 E3 [10:47:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:47:37]wFMCommunicate OK [10:47:37]CreateOFDProtocolMessage done [10:47:37]OFDSenderStorePacket 108572 [10:47:37]StoreOFDPacket docnum=108572 [10:47:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 45 43 07 01 2E EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 5F 00 00 00 F4 03 04 00 4B 27 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 1C A8 01 00 35 04 06 00 72 C3 D6 7C E6 38 21 70 57 5F 53 68 94 3C [10:47:37]CheckFolder [10:47:37]dirname=/storage/ofd_packets [10:47:37]CheckFolder done [10:47:37]ProducePacketName [10:47:37]name=ofd_packets/00108572 [10:47:37]NVStorageSaveData ofd_packets/00108572 [10:47:37]File name is /storage/ofd_packets/00108572 [10:47:37]Write 301 bytes [10:47:37]NVStorageSaveData done [10:47:37]OFDSenderStorePacket done [10:47:37]KKMCreateOFDPacket done [10:47:37]NVStorageSaveData kkm_last_timestamp [10:47:37]File name is /storage/kkm_last_timestamp [10:47:37]Write 4 bytes [10:47:37]NVStorageSaveData done [10:47:37]ExternCall_PrintAddStr [10:47:37]wPrintStart [10:47:37]Write to MH i2c: 01 00 00 E8 2E 16 [10:47:37]Write i2c OK [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: 01 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: 01 07 00 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: 01 07 00 E8 2E 00 00 00 00 00 FF 0F 2B [10:47:37]RasterBufferAndPrint [10:47:37]line Счет N : (1)1040747 [10:47:37]line ИНН: 02508201610067 [10:47:37]line Контрольно-Кассовый Чек [10:47:37]line ПРОДАЖА [10:47:37]line ТРК (МРК, ГНК) : 23 [10:47:37]line Товар: 2710124130 [10:47:37]line Аи-92-К-5 [10:47:37]line 16.160 * 61.90 [10:47:37]line = 1000.30 [10:47:37]line НДС 12% НСП 1% [10:47:37]line > о реализуемом товаре [10:47:37]line ОКРУГЛЕНИЕ: -0.30 [10:47:37]line ИТОГО: 1000.00 [10:47:37]line Внесено: 1000.00 [10:47:37]line СДАЧА: 0.00 [10:47:37]line НСП 1% : 8.85 [10:47:37]line НДС 12% : 106.23 [10:47:37]line Наличными: 1000.00 [10:47:37]line Безнал.: 0.00 [10:47:37]line Место: АЗС № 15 "Партнер Нефть" [10:47:37]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [10:47:37]line СНО: Общий режим [10:47:37]line Чек 95 15.03.2024 10:47 [10:47:37]line Смена: 320 ФФД: 1.0 [10:47:37]line ЗНМ: 0300000266 [10:47:37]line РНМ: 0000000000091911 [10:47:37]line Версия ККМ: 001 [10:47:37]line ФМ: 0000000000871818 [10:47:37]line ФД: 108572 [10:47:37]line ФПД: 126185442698808 [10:47:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T104739&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108572&fm=126185442698808&tin=02508201610067®Number=0000000000091911&sum=100000 [10:47:37]OFD Sender: Processing packet 108572 [packets to send 29, broken 28] [10:47:37]ProducePacketName [10:47:37]name=ofd_packets/00108572 [10:47:37]OFD Sender: To server: pG, [10:47:37]CommunicateWithHost lk.salyk.kg:30040 [10:47:37]ConnectInit lk.salyk.kg [10:47:37]written 0, free lines is 4095 [10:47:37]Connected sock=10 [10:47:37]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 31 38 0F 01 00 00 45 43 07 01 2E EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 5F 00 00 00 F4 03 04 00 4B 27 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 1C A8 01 00 35 04 06 00 72 C3 D6 7C E6 38 21 70 57 5F 53 68 94 3C [10:47: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 31 38 4F 00 00 00 F6 47 47 00 27 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 1C A8 01 00 F4 03 04 00 EB D2 F3 65 B6 04 01 00 00 45 FC 19 5A DD 6A 17 7D [10:47:38]CommunicateWithHost err = 0 [10:47:38]CheckOFDResponse [10:47:38]1017 (14) - 77093643461234 [10:47:38]1041 (16) - 0000000000871818 [10:47:38]1040 (4) - 108572 [10:47:38]1012 (4) - 15.03.2024 04:47 [10:47:38]1206 (1) - 0 [10:47:38]OFD Sender: Remove packet 108572 [10:47:38]ProducePacketName [10:47:38]name=ofd_packets/00108572 [10:47:38]NVStorageDeleteData [10:47:38]Write to MH i2c: 01 00 00 13 2F 42 [10:47:38]Write i2c OK [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: 01 [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: 01 07 00 [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: 01 07 00 13 2F 00 00 00 00 00 EF 0C 44 [10:47:38]RasterBufferAndPrint [10:47:38]line [10:47:38]line [10:47:38]line [10:47:38]line [10:47:38]line [10:47:38]written 0, free lines is 3317 [10:47:38]MH_Cut [10:47:38]Write to MH i2c: D1 01 00 1A 2F 01 1B [10:47:38]Write i2c OK [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: D1 [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: D1 01 00 [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: D1 01 00 1A 2F 00 1A [10:47:38]Write to MH i2c: 01 00 00 1B 2F 4A [10:47:38]Write i2c OK [10:47:38]MH_I2C_Read... [10:47:38]OFD Sender: No OFD packet to send [10:47:39]*** Cut start [10:47:39]*** Purtial cut [10:47:39]*** Stage 1: CUTSNS_PIN = 1 [10:47:39]Read from MH i2c: 01 [10:47:39]MH_I2C_Read... [10:47:39]*** Stop cut motor [10:47:39]*** Cut end [10:47:39]Read from MH i2c: 01 07 00 [10:47:39]MH_I2C_Read... [10:47:39]Read from MH i2c: 01 07 00 1B 2F 00 00 00 00 00 FF 0F 5F [10:47:39]process_action close_receipt done [10:47:39]requested_data is exist [10:47:39]produce_requested_data [10:47:39]requested_item fm.sn is exist - process it [10:47:39]wFMCommunicate request_size=4 [10:47:39]MH_SAM_APDU [10:47:39]CAPDU: 80 11 00 00 [10:47:39]Write to MH i2c: E2 08 00 1C 2F 80 11 00 00 00 00 00 00 C5 [10:47:39]Write i2c OK [10:47:39]MH_I2C_Read... [10:47:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:39]Read from MH i2c: E2 [10:47:39]MH_I2C_Read... [10:47:39]Read from MH i2c: E2 17 00 [10:47:39]MH_I2C_Read... [10:47:39]Read from MH i2c: E2 17 00 1C 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 19 [10:47:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:47:39]wFMCommunicate OK [10:47:39]requested_item fd.num is exist - process it [10:47:39]SAM_PROTO_GetFieldsCounters [10:47:39]wFMCommunicate request_size=4 [10:47:39]MH_SAM_APDU [10:47:39]CAPDU: 80 13 00 00 [10:47:39]Write to MH i2c: E2 08 00 1D 2F 80 13 00 00 00 00 00 00 C8 [10:47:39]Write i2c OK [10:47:39]MH_I2C_Read... [10:47:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:39]Read from MH i2c: E2 [10:47:39]MH_I2C_Read... [10:47:39]Read from MH i2c: E2 62 00 [10:47:39]MH_I2C_Read... [10:47:39]Read from MH i2c: E2 62 00 1D 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 1C A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [10:47:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 1C A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:47:39]wFMCommunicate OK [10:47:39]SAM_PROTO_GetFieldsCounters done [10:47:39]requested_item shift.num is exist - process it [10:47:39]requested_item shift.opened is exist - process it [10:47:39]req_shift_opened [10:47:39]FM_GetShiftState [10:47:39]SAM_PROTO_GetShiftState [10:47:39]wFMCommunicate request_size=4 [10:47:39]MH_SAM_APDU [10:47:39]CAPDU: 80 13 01 00 [10:47:39]Write to MH i2c: E2 08 00 1E 2F 80 13 01 00 00 00 00 00 CA [10:47:39]Write i2c OK [10:47:39]MH_I2C_Read... [10:47:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:39]Read from MH i2c: E2 [10:47:39]MH_I2C_Read... [10:47:39]Read from MH i2c: E2 0E 00 [10:47:39]MH_I2C_Read... [10:47:39]Read from MH i2c: E2 0E 00 1E 2F 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 FE [10:47:39]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:47:39]wFMCommunicate OK [10:47:39]SAM_PROTO_GetShiftState done [10:47:39]FM_GetShiftState done [10:47:39]req_shift_opened done [10:47:39]requested_item shift.open_date is exist - process it [10:47:39]req_shift_open_date [10:47:39]req_shift_open_date done [10:47:39]produce_requested_data done [10:47:39]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108572,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [10:47:39]process_action_free close_receipt [10:47:39]json_value_free [10:47:39]json_value_free done [10:47:39]process_json_proto returns [10:47:39]Send response to host [10:47:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108572,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [10:47:39]free response buf [10:47:39]execute_script done [10:47:39]execute_script returns [10:47:39]free content buf [10:47:39]Sock 9.Close socket [10:47:39]Sock 9.Thread stoped [10:47:43]OFD Sender: No OFD packet to send [10:47:48]OFD Sender: No OFD packet to send [10:47:53]OFD Sender: No OFD packet to send [10:47:58]OFD Sender: No OFD packet to send [10:48:03]OFD Sender: No OFD packet to send [10:48:08]OFD Sender: No OFD packet to send [10:48:13]OFD Sender: No OFD packet to send [10:48:18]OFD Sender: No OFD packet to send [10:48:23]OFD Sender: No OFD packet to send [10:48:28]OFD Sender: No OFD packet to send [10:48:33]OFD Sender: No OFD packet to send [10:48:38]OFD Sender: No OFD packet to send [10:48:43]OFD Sender: No OFD packet to send [10:48:48]OFD Sender: No OFD packet to send [10:48:53]OFD Sender: No OFD packet to send [10:48:58]OFD Sender: No OFD packet to send [10:49:03]OFD Sender: No OFD packet to send [10:49:08]OFD Sender: No OFD packet to send [10:49:13]OFD Sender: No OFD packet to send [10:49:18]OFD Sender: No OFD packet to send [10:49:23]OFD Sender: No OFD packet to send [10:49:28]OFD Sender: No OFD packet to send [10:49:33]OFD Sender: No OFD packet to send [10:49:38]OFD Sender: No OFD packet to send [10:49:43]OFD Sender: No OFD packet to send [10:49:48]OFD Sender: No OFD packet to send [10:49:53]OFD Sender: No OFD packet to send [10:49:58]OFD Sender: No OFD packet to send [10:50:03]OFD Sender: No OFD packet to send [10:50:08]OFD Sender: No OFD packet to send [10:50:12]accept exits with 8 [10:50:12]New connection [10:50:12]New thread 3067198820 created [10:50:12]Thread 3067342180 joined [10:50:12]Waiting for new connection... [10:50:12] Sock 8.Parse request [10:50:12]Sock 8.Check first char [10:50:12]Sock 8.First char is OK [10:50:12]request: POST /json_proto HTTP/1.0 [10:50:12]Method: POST [10:50:12]URL: /json_proto [10:50:12]Method is POST - this is cgi request [10:50:12]url: /json_proto [10:50:12]query_string will be loaded in cgi processing [10:50:12]execute_cgi json_proto POST (null) [10:50:12]execute_cgi path=json_proto method=POST [10:50:12]POST find Content-Length [10:50:12]Host: 172.17.32.69:8080 [10:50:12]Content-Length: 1215 [10:50:12]Content-Type: application/json [10:50:12] [10:50:12]POST finish read [10:50:12]Found Content-Length = 1215 [10:50:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040748\u000A15.03.2024 10:42\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1857.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3824246;3824248;3824250\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:12]execute_script... [10:50:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040748\u000A15.03.2024 10:42\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1857.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3824246;3824248;3824250\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:12]POST & json_proto [10:50:12]process_json_proto [10:50:12]json parsed OK: [10:50:12]protocol is kg_v1.0 [10:50:12]action value=print_text [10:50:12]process_action print_text [10:50:12]cmd_print_text [10:50:12]ExternCall_PrintAddStr [10:50:12]wPrintStart [10:50:12]Write to MH i2c: 01 00 00 1F 2F 4E [10:50:12]Write i2c OK [10:50:12]MH_I2C_Read... [10:50:12]Read from MH i2c: 01 [10:50:12]MH_I2C_Read... [10:50:12]Read from MH i2c: 01 07 00 [10:50:12]MH_I2C_Read... [10:50:12]Read from MH i2c: 01 07 00 1F 2F 00 00 00 00 00 FF 0F 63 [10:50:12]RasterBufferAndPrint [10:50:12]line *****ТОВАРНЫЙ ЧЕК***** [10:50:12]line АЗС 15 [10:50:12]line Партнер нефть [10:50:12]line 02508201610067 [10:50:12]line Кассир : Максатбек у Д. [10:50:12]line Счет N : (1)1040748 [10:50:12]line 15.03.2024 10:42 [10:50:12]line ПРОДАЖА [10:50:12]line ТРК (МРК, ГНК): 53 [10:50:12]line Вид ГСМ : 2710124130 [10:50:12]line Аи-92-К-5 [10:50:12]line 30.000 x 61.90 [10:50:12]line ИТОГ: 1857.00 [10:50:12]line Тип оплаты: Талоны: Партнер нефть [10:50:12]line 3824246;3824248;3824250 [10:50:12]line ______________________ [10:50:12]line (подпись) [10:50:12]written 0, free lines is 4095 [10:50:12]Write to MH i2c: 01 00 00 34 2F 63 [10:50:12]Write i2c OK [10:50:12]MH_I2C_Read... [10:50:12]Read from MH i2c: 01 [10:50:12]MH_I2C_Read... [10:50:12]Read from MH i2c: 01 07 00 [10:50:12]MH_I2C_Read... [10:50:12]Read from MH i2c: 01 07 00 34 2F 00 00 00 00 00 03 0E 7B [10:50:12]RasterBufferAndPrint [10:50:12]line [10:50:12]line [10:50:12]line [10:50:12]line [10:50:12]line [10:50:12]written 0, free lines is 3589 [10:50:12]MH_Cut [10:50:12]Write to MH i2c: D1 01 00 3B 2F 01 3C [10:50:12]Write i2c OK [10:50:12]MH_I2C_Read... [10:50:12]Read from MH i2c: D1 [10:50:12]MH_I2C_Read... [10:50:12]Read from MH i2c: D1 01 00 [10:50:12]MH_I2C_Read... [10:50:12]Read from MH i2c: D1 01 00 3B 2F 00 3B [10:50:12]Write to MH i2c: 01 00 00 3C 2F 6B [10:50:12]Write i2c OK [10:50:12]MH_I2C_Read... [10:50:12]*** Cut start [10:50:12]*** Purtial cut [10:50:12]*** Stage 1: CUTSNS_PIN = 1 [10:50:13]Read from MH i2c: 01 [10:50:13]MH_I2C_Read... [10:50:13]*** Stop cut motor [10:50:13]*** Cut end [10:50:13]Read from MH i2c: 01 07 00 [10:50:13]MH_I2C_Read... [10:50:13]Read from MH i2c: 01 07 00 3C 2F 00 00 00 00 00 FF 0F 80 [10:50:13]process_action print_text done [10:50:13]requested_data is exist [10:50:13]produce_requested_data [10:50:13]requested_item fm.sn is exist - process it [10:50:13]wFMCommunicate request_size=4 [10:50:13]MH_SAM_APDU [10:50:13]CAPDU: 80 11 00 00 [10:50:13]Write to MH i2c: E2 08 00 3D 2F 80 11 00 00 00 00 00 00 E6 [10:50:13]Write i2c OK [10:50:13]MH_I2C_Read... [10:50:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:13]Read from MH i2c: E2 [10:50:13]MH_I2C_Read... [10:50:13]Read from MH i2c: E2 17 00 [10:50:13]MH_I2C_Read... [10:50:13]Read from MH i2c: E2 17 00 3D 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 3A [10:50:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:50:13]wFMCommunicate OK [10:50:13]requested_item fd.num is exist - process it [10:50:13]SAM_PROTO_GetFieldsCounters [10:50:13]wFMCommunicate request_size=4 [10:50:13]MH_SAM_APDU [10:50:13]CAPDU: 80 13 00 00 [10:50:13]Write to MH i2c: E2 08 00 3E 2F 80 13 00 00 00 00 00 00 E9 [10:50:13]Write i2c OK [10:50:13]MH_I2C_Read... [10:50:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:13]Read from MH i2c: E2 [10:50:13]MH_I2C_Read... [10:50:13]Read from MH i2c: E2 62 00 [10:50:13]MH_I2C_Read... [10:50:13]Read from MH i2c: E2 62 00 3E 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 1C A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [10:50: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 1C A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:50:13]wFMCommunicate OK [10:50:13]SAM_PROTO_GetFieldsCounters done [10:50:13]requested_item shift.num is exist - process it [10:50:13]requested_item shift.opened is exist - process it [10:50:13]req_shift_opened [10:50:13]FM_GetShiftState [10:50:13]SAM_PROTO_GetShiftState [10:50:13]wFMCommunicate request_size=4 [10:50:13]MH_SAM_APDU [10:50:13]CAPDU: 80 13 01 00 [10:50:13]Write to MH i2c: E2 08 00 3F 2F 80 13 01 00 00 00 00 00 EB [10:50:13]Write i2c OK [10:50:13]MH_I2C_Read... [10:50:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:13]Read from MH i2c: E2 [10:50:13]MH_I2C_Read... [10:50:13]Read from MH i2c: E2 0E 00 [10:50:13]MH_I2C_Read... [10:50:13]Read from MH i2c: E2 0E 00 3F 2F 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 1F [10:50:13]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:50:13]wFMCommunicate OK [10:50:13]SAM_PROTO_GetShiftState done [10:50:13]FM_GetShiftState done [10:50:13]req_shift_opened done [10:50:13]requested_item shift.open_date is exist - process it [10:50:13]req_shift_open_date [10:50:13]req_shift_open_date done [10:50:13]produce_requested_data done [10:50:13]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108572,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [10:50:13]process_action_free print_text [10:50:13]json_value_free [10:50:13]json_value_free done [10:50:13]process_json_proto returns [10:50:13]Send response to host [10:50:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108572,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [10:50:13]free response buf [10:50:13]execute_script done [10:50:13]execute_script returns [10:50:13]free content buf [10:50:13]Sock 8.Close socket [10:50:13]Sock 8.Thread stoped [10:50:13]OFD Sender: No OFD packet to send [10:50:18]OFD Sender: No OFD packet to send [10:50:23]OFD Sender: No OFD packet to send [10:50:28]OFD Sender: No OFD packet to send [10:50:33]OFD Sender: No OFD packet to send [10:50:38]OFD Sender: No OFD packet to send [10:50:43]OFD Sender: No OFD packet to send [10:50:48]OFD Sender: No OFD packet to send [10:50:53]OFD Sender: No OFD packet to send [10:50:58]OFD Sender: No OFD packet to send [10:51:03]OFD Sender: No OFD packet to send [10:51:08]OFD Sender: No OFD packet to send [10:51:13]OFD Sender: No OFD packet to send [10:51:18]OFD Sender: No OFD packet to send [10:51:23]OFD Sender: No OFD packet to send [10:51:28]OFD Sender: No OFD packet to send [10:51:33]OFD Sender: No OFD packet to send [10:51:38]OFD Sender: No OFD packet to send [10:51:43]OFD Sender: No OFD packet to send [10:51:48]OFD Sender: No OFD packet to send [10:51:53]OFD Sender: No OFD packet to send [10:51:58]OFD Sender: No OFD packet to send [10:52:03]OFD Sender: No OFD packet to send [10:52:08]OFD Sender: No OFD packet to send [10:52:13]OFD Sender: No OFD packet to send [10:52:18]OFD Sender: No OFD packet to send [10:52:23]OFD Sender: No OFD packet to send [10:52:28]OFD Sender: No OFD packet to send [10:52:33]OFD Sender: No OFD packet to send [10:52:38]OFD Sender: No OFD packet to send [10:52:43]OFD Sender: No OFD packet to send [10:52:48]OFD Sender: No OFD packet to send [10:52:53]OFD Sender: No OFD packet to send [10:52:58]OFD Sender: No OFD packet to send [10:53:03]OFD Sender: No OFD packet to send [10:53:08]OFD Sender: No OFD packet to send [10:53:13]OFD Sender: No OFD packet to send [10:53:18]OFD Sender: No OFD packet to send [10:53:23]OFD Sender: No OFD packet to send [10:53:28]OFD Sender: No OFD packet to send [10:53:33]OFD Sender: No OFD packet to send [10:53:38]OFD Sender: No OFD packet to send [10:53:43]OFD Sender: No OFD packet to send [10:53:48]OFD Sender: No OFD packet to send [10:53:53]OFD Sender: No OFD packet to send [10:53:58]OFD Sender: No OFD packet to send [10:54:03]OFD Sender: No OFD packet to send [10:54:08]OFD Sender: No OFD packet to send [10:54:13]OFD Sender: No OFD packet to send [10:54:18]OFD Sender: No OFD packet to send [10:54:23]OFD Sender: No OFD packet to send [10:54:28]OFD Sender: No OFD packet to send [10:54:33]OFD Sender: No OFD packet to send [10:54:38]OFD Sender: No OFD packet to send [10:54:43]OFD Sender: No OFD packet to send [10:54:45]accept exits with 9 [10:54:45]New connection [10:54:45]New thread 3067342180 created [10:54:45]Thread 3067198820 joined [10:54:45]Waiting for new connection... [10:54:45] Sock 9.Parse request [10:54:45]Sock 9.Check first char [10:54:45]Sock 9.First char is OK [10:54:45]request: POST /json_proto HTTP/1.0 [10:54:45]Method: POST [10:54:45]URL: /json_proto [10:54:45]Method is POST - this is cgi request [10:54:45]url: /json_proto [10:54:45]query_string will be loaded in cgi processing [10:54:45]execute_cgi json_proto POST (null) [10:54:45]execute_cgi path=json_proto method=POST [10:54:45]POST find Content-Length [10:54:45]Host: 172.17.32.69:8080 [10:54:45]Content-Length: 679 [10:54:45]Content-Type: application/json [10:54:45] [10:54:45]POST finish read [10:54:45]Found Content-Length = 679 [10:54:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 12.930, "sum" : 800.37, "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" ] } } [10:54:45]execute_script... [10:54: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)1040750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 12.930, "sum" : 800.37, "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" ] } } [10:54:45]POST & json_proto [10:54:45]process_json_proto [10:54:45]json parsed OK: [10:54:45]protocol is kg_v1.0 [10:54:45]action value=close_receipt [10:54:45]process_action close_receipt [10:54:45]cmd_close_receipt [10:54:45]MH_GetDate [10:54:45]Write to MH i2c: F0 00 00 40 2F 5E [10:54:45]Write i2c OK [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: F0 [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: F0 09 00 [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: F0 09 00 40 2F 00 F9 28 F4 65 D5 0F D3 65 FD [10:54:45]GetLastDocTimeStamp 1710499659 [10:54:45]current date 1710500089 [10:54:45]FM_GetShiftState [10:54:45]SAM_PROTO_GetShiftState [10:54:45]wFMCommunicate request_size=4 [10:54:45]MH_SAM_APDU [10:54:45]CAPDU: 80 13 01 00 [10:54:45]Write to MH i2c: E2 08 00 41 2F 80 13 01 00 00 00 00 00 ED [10:54:45]Write i2c OK [10:54:45]MH_I2C_Read... [10:54:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:45]Read from MH i2c: E2 [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: E2 0E 00 [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: E2 0E 00 41 2F 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 21 [10:54:45]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:54:45]wFMCommunicate OK [10:54:45]SAM_PROTO_GetShiftState done [10:54:45]FM_GetShiftState done [10:54:45]opened in 1710461757 [10:54:45]opened+sec_in_day 1710548157 [10:54:45]quantity*price = 80036 [10:54:45]sum+1 = 80038 [10:54:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.99 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 96 15.03.2024 10:54 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108573 ФПД: 255730100694294 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T105449&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108573&fm=255730100694294&tin=02508201610067®Number=0000000000091911&sum=80000 [10:54:46]StoreToDocumentArchive [10:54:46]shift 320 fd 108573 [10:54:46]save to /storage/0320/doc_00108573 [10:54:46]save last doc name /storage/0320/doc_00108573 to /storage/kkm_last_doc_name [10:54:46]save OK [10:54:46]Clear old archive folders... [10:54:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:54:46]tlvbuf is 0018F3D0 [10:54:46]SAM_PROTO_ClearQueue [10:54:46]wFMCommunicate request_size=4 [10:54:46]MH_SAM_APDU [10:54:46]CAPDU: 80 09 00 00 [10:54:46]Write to MH i2c: E2 08 00 4E 2F 80 09 00 00 00 00 00 00 EF [10:54:46]Write i2c OK [10:54:46]MH_I2C_Read... [10:54:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:46]Read from MH i2c: E2 [10:54:46]MH_I2C_Read... [10:54:46]Read from MH i2c: E2 03 00 [10:54:46]MH_I2C_Read... [10:54:46]Read from MH i2c: E2 03 00 4E 2F 00 90 00 F1 [10:54:46]RAPDU: 90 00 [10:54:46]wFMCommunicate OK [10:54:46]SAM_PROTO_ClearQueue done [10:54:46]KKMCreateOFDPacket [10:54:46]OFDProtocolAddRootSTLVToBuf [10:54:46]FM_MakeSignedData [10:54:46]FM_MakeSignedData [10:54:46]SAM_PROTO_SignData [10:54:46]wFMCommunicate request_size=4 [10:54:46]MH_SAM_APDU [10:54:46]CAPDU: 80 0D 01 02 [10:54:46]Write to MH i2c: E2 08 00 4F 2F 80 0D 01 02 00 00 00 00 F7 [10:54:46]Write i2c OK [10:54:46]MH_I2C_Read... [10:54:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:46]Read from MH i2c: E2 [10:54:46]MH_I2C_Read... [10:54:46]Read from MH i2c: E2 03 00 [10:54:46]MH_I2C_Read... [10:54:46]Read from MH i2c: E2 03 00 4F 2F 00 90 00 F2 [10:54:46]RAPDU: 90 00 [10:54:46]wFMCommunicate OK [10:54:46]wFMCommunicate request_size=255 [10:54:46]MH_SAM_APDU [10:54:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 82 32 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 A5 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 33 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 60 00 00 00 F4 03 04 00 F9 28 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 1D A8 01 00 35 04 06 00 E8 [10:54:46]Write to MH i2c: E2 02 01 50 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 35 FF 03 08 00 03 82 32 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 A5 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 33 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 60 00 00 00 F4 03 04 00 F9 28 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 1D A8 01 00 35 04 06 00 E8 00 00 2B [10:54:46]Write i2c OK [10:54:46]MH_I2C_Read... [10:54:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:46]Read from MH i2c: E2 [10:54:46]MH_I2C_Read... [10:54:46]Read from MH i2c: E2 03 00 [10:54:46]MH_I2C_Read... [10:54:46]Read from MH i2c: E2 03 00 50 2F 00 90 00 F3 [10:54:46]RAPDU: 90 00 [10:54:46]wFMCommunicate OK [10:54:46]wFMCommunicate request_size=10 [10:54:46]MH_SAM_APDU [10:54:46]CAPDU: 80 0D 02 02 05 95 CD CF 6D 16 [10:54:46]Write to MH i2c: E2 0D 00 51 2F 80 0D 02 02 05 00 95 CD CF 6D 16 00 00 B8 [10:54:46]Write i2c OK [10:54:46]MH_I2C_Read... [10:54:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:46]Read from MH i2c: E2 [10:54:46]MH_I2C_Read... [10:54:46]Read from MH i2c: E2 03 00 [10:54:46]MH_I2C_Read... [10:54:46]Read from MH i2c: E2 03 00 51 2F 00 90 00 F4 [10:54:46]RAPDU: 90 00 [10:54:46]wFMCommunicate OK [10:54:46]wFMCommunicate request_size=4 [10:54:46]MH_SAM_APDU [10:54:46]CAPDU: 80 0D 03 02 [10:54:46]Write to MH i2c: E2 08 00 52 2F 80 0D 03 02 00 00 00 00 FC [10:54:47]Write i2c OK [10:54:47]MH_I2C_Read... [10:54:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:47]Read from MH i2c: E2 [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: E2 0B 00 [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: E2 0B 00 52 2F 00 65 D2 28 D2 8B 48 B0 29 90 00 DA [10:54:47]RAPDU: 65 D2 28 D2 8B 48 B0 29 90 00 [10:54:47]wFMCommunicate OK [10:54:47]SAM_PROTO_SignData done [10:54:47]FM_MakeSignedData done [10:54:47]CreateOFDProtocolMessage [10:54:47]wFMCommunicate request_size=4 [10:54:47]MH_SAM_APDU [10:54:47]CAPDU: 80 11 00 00 [10:54:47]Write to MH i2c: E2 08 00 53 2F 80 11 00 00 00 00 00 00 FC [10:54:47]Write i2c OK [10:54:47]MH_I2C_Read... [10:54:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:47]Read from MH i2c: E2 [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: E2 17 00 [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: E2 17 00 53 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 50 [10:54:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:54:47]wFMCommunicate OK [10:54:47]CreateOFDProtocolMessage done [10:54:47]OFDSenderStorePacket 108573 [10:54:47]StoreOFDPacket docnum=108573 [10:54:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 E7 A0 07 01 13 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 82 32 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 A5 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 33 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 60 00 00 00 F4 03 04 00 F9 28 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 1D A8 01 00 35 04 06 00 E8 95 CD CF 6D 16 65 D2 28 D2 8B 48 B0 29 [10:54:47]CheckFolder [10:54:47]dirname=/storage/ofd_packets [10:54:47]CheckFolder done [10:54:47]ProducePacketName [10:54:47]name=ofd_packets/00108573 [10:54:47]NVStorageSaveData ofd_packets/00108573 [10:54:47]File name is /storage/ofd_packets/00108573 [10:54:47]Write 301 bytes [10:54:47]NVStorageSaveData done [10:54:47]OFDSenderStorePacket done [10:54:47]KKMCreateOFDPacket done [10:54:47]NVStorageSaveData kkm_last_timestamp [10:54:47]File name is /storage/kkm_last_timestamp [10:54:47]Write 4 bytes [10:54:47]NVStorageSaveData done [10:54:47]ExternCall_PrintAddStr [10:54:47]wPrintStart [10:54:47]Write to MH i2c: 01 00 00 54 2F 83 [10:54:47]Write i2c OK [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: 01 [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: 01 07 00 [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: 01 07 00 54 2F 00 00 00 00 00 FF 0F 98 [10:54:47]RasterBufferAndPrint [10:54:47]line Счет N : (1)1040750 [10:54:47]line ИНН: 02508201610067 [10:54:47]line Контрольно-Кассовый Чек [10:54:47]line ПРОДАЖА [10:54:47]line ТРК (МРК, ГНК) : 23 [10:54:47]line Товар: 2710124130 [10:54:47]line Аи-92-К-5 [10:54:47]line 12.930 * 61.90 [10:54:47]line = 800.37 [10:54:47]line НДС 12% НСП 1% [10:54:47]line > о реализуемом товаре [10:54:47]line ОКРУГЛЕНИЕ: -0.37 [10:54:47]line ИТОГО: 800.00 [10:54:47]line Внесено: 800.00 [10:54:47]line СДАЧА: 0.00 [10:54:47]line НСП 1% : 7.08 [10:54:47]line НДС 12% : 84.99 [10:54:47]line Наличными: 800.00 [10:54:47]line Безнал.: 0.00 [10:54:47]line Место: АЗС № 15 "Партнер Нефть" [10:54:47]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [10:54:47]line СНО: Общий режим [10:54:47]line Чек 96 15.03.2024 10:54 [10:54:47]line Смена: 320 ФФД: 1.0 [10:54:47]line ЗНМ: 0300000266 [10:54:47]line РНМ: 0000000000091911 [10:54:47]line Версия ККМ: 001 [10:54:47]line ФМ: 0000000000871818 [10:54:47]line ФД: 108573 [10:54:47]line ФПД: 255730100694294 [10:54:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T105449&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108573&fm=255730100694294&tin=02508201610067®Number=0000000000091911&sum=80000 [10:54:47]OFD Sender: Processing packet 108573 [packets to send 29, broken 28] [10:54:47]ProducePacketName [10:54:47]name=ofd_packets/00108573 [10:54:47]OFD Sender: To server: pG, [10:54:47]CommunicateWithHost lk.salyk.kg:30040 [10:54:47]ConnectInit lk.salyk.kg [10:54:47]written 0, free lines is 4095 [10:54:47]Connected sock=10 [10:54:47]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 31 38 0F 01 00 00 E7 A0 07 01 13 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 82 32 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 A5 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 33 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 60 00 00 00 F4 03 04 00 F9 28 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 1D A8 01 00 35 04 06 00 E8 95 CD CF 6D 16 65 D2 28 D2 8B 48 B0 29 [10:54:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 4F 00 00 00 71 1E 47 00 96 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 1D A8 01 00 F4 03 04 00 99 D4 F3 65 B6 04 01 00 00 70 36 12 07 40 70 BD D7 [10:54:47]CommunicateWithHost err = 0 [10:54:47]CheckOFDResponse [10:54:47]1017 (14) - 77093643461234 [10:54:47]1041 (16) - 0000000000871818 [10:54:47]1040 (4) - 108573 [10:54:47]1012 (4) - 15.03.2024 04:54 [10:54:47]1206 (1) - 0 [10:54:47]OFD Sender: Remove packet 108573 [10:54:47]ProducePacketName [10:54:47]name=ofd_packets/00108573 [10:54:47]NVStorageDeleteData [10:54:47]Write to MH i2c: 01 00 00 7F 2F AE [10:54:47]Write i2c OK [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: 01 [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: 01 07 00 [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: 01 07 00 7F 2F 00 00 00 00 00 E4 0C A5 [10:54:47]RasterBufferAndPrint [10:54:47]line [10:54:47]line [10:54:47]line [10:54:47]line [10:54:47]line [10:54:47]written 0, free lines is 3306 [10:54:47]MH_Cut [10:54:47]Write to MH i2c: D1 01 00 86 2F 01 87 [10:54:47]Write i2c OK [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: D1 [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: D1 01 00 [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: D1 01 00 86 2F 00 86 [10:54:47]Write to MH i2c: 01 00 00 87 2F B6 [10:54:47]Write i2c OK [10:54:47]MH_I2C_Read... [10:54:48]OFD Sender: No OFD packet to send [10:54:48]*** Cut start [10:54:48]*** Purtial cut [10:54:48]*** Stage 1: CUTSNS_PIN = 1 [10:54:48]Read from MH i2c: 01 [10:54:48]MH_I2C_Read... [10:54:49]*** Stop cut motor [10:54:49]*** Cut end [10:54:49]Read from MH i2c: 01 07 00 [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: 01 07 00 87 2F 00 00 00 00 00 FF 0F CB [10:54:49]process_action close_receipt done [10:54:49]requested_data is exist [10:54:49]produce_requested_data [10:54:49]requested_item fm.sn is exist - process it [10:54:49]wFMCommunicate request_size=4 [10:54:49]MH_SAM_APDU [10:54:49]CAPDU: 80 11 00 00 [10:54:49]Write to MH i2c: E2 08 00 88 2F 80 11 00 00 00 00 00 00 31 [10:54:49]Write i2c OK [10:54:49]MH_I2C_Read... [10:54:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:49]Read from MH i2c: E2 [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: E2 17 00 [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: E2 17 00 88 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 85 [10:54:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:54:49]wFMCommunicate OK [10:54:49]requested_item fd.num is exist - process it [10:54:49]SAM_PROTO_GetFieldsCounters [10:54:49]wFMCommunicate request_size=4 [10:54:49]MH_SAM_APDU [10:54:49]CAPDU: 80 13 00 00 [10:54:49]Write to MH i2c: E2 08 00 89 2F 80 13 00 00 00 00 00 00 34 [10:54:49]Write i2c OK [10:54:49]MH_I2C_Read... [10:54:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:49]Read from MH i2c: E2 [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: E2 62 00 [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: E2 62 00 89 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 1D A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [10:54: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 1D A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:54:49]wFMCommunicate OK [10:54:49]SAM_PROTO_GetFieldsCounters done [10:54:49]requested_item shift.num is exist - process it [10:54:49]requested_item shift.opened is exist - process it [10:54:49]req_shift_opened [10:54:49]FM_GetShiftState [10:54:49]SAM_PROTO_GetShiftState [10:54:49]wFMCommunicate request_size=4 [10:54:49]MH_SAM_APDU [10:54:49]CAPDU: 80 13 01 00 [10:54:49]Write to MH i2c: E2 08 00 8A 2F 80 13 01 00 00 00 00 00 36 [10:54:49]Write i2c OK [10:54:49]MH_I2C_Read... [10:54:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:49]Read from MH i2c: E2 [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: E2 0E 00 [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: E2 0E 00 8A 2F 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 6A [10:54:49]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:54:49]wFMCommunicate OK [10:54:49]SAM_PROTO_GetShiftState done [10:54:49]FM_GetShiftState done [10:54:49]req_shift_opened done [10:54:49]requested_item shift.open_date is exist - process it [10:54:49]req_shift_open_date [10:54:49]req_shift_open_date done [10:54:49]produce_requested_data done [10:54:49]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108573,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [10:54:49]process_action_free close_receipt [10:54:49]json_value_free [10:54:49]json_value_free done [10:54:49]process_json_proto returns [10:54:49]Send response to host [10:54:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108573,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [10:54:49]free response buf [10:54:49]execute_script done [10:54:49]execute_script returns [10:54:49]free content buf [10:54:49]Sock 9.Close socket [10:54:49]Sock 9.Thread stoped [10:54:50]accept exits with 8 [10:54:50]New connection [10:54:50]New thread 3067198820 created [10:54:50]Thread 3067342180 joined [10:54:50]Waiting for new connection... [10:54:50] Sock 8.Parse request [10:54:50]Sock 8.Check first char [10:54:50]Sock 8.First char is OK [10:54:50]request: POST /json_proto HTTP/1.0 [10:54:50]Method: POST [10:54:50]URL: /json_proto [10:54:50]Method is POST - this is cgi request [10:54:50]url: /json_proto [10:54:50]query_string will be loaded in cgi processing [10:54:50]execute_cgi json_proto POST (null) [10:54:50]execute_cgi path=json_proto method=POST [10:54:50]POST find Content-Length [10:54:50]Host: 172.17.32.69:8080 [10:54:50]Content-Length: 1209 [10:54:50]Content-Type: application/json [10:54:50] [10:54:50]POST finish read [10:54:50]Found Content-Length = 1209 [10:54:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040749\u000A15.03.2024 10:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 50.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 3095.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74815\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:50]execute_script... [10:54:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040749\u000A15.03.2024 10:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 50.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 3095.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74815\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:50]POST & json_proto [10:54:50]process_json_proto [10:54:50]json parsed OK: [10:54:50]protocol is kg_v1.0 [10:54:50]action value=print_text [10:54:50]process_action print_text [10:54:50]cmd_print_text [10:54:50]ExternCall_PrintAddStr [10:54:50]wPrintStart [10:54:50]Write to MH i2c: 01 00 00 8B 2F BA [10:54:50]Write i2c OK [10:54:50]MH_I2C_Read... [10:54:50]Read from MH i2c: 01 [10:54:50]MH_I2C_Read... [10:54:50]Read from MH i2c: 01 07 00 [10:54:50]MH_I2C_Read... [10:54:50]Read from MH i2c: 01 07 00 8B 2F 00 00 00 00 00 FF 0F CF [10:54:50]RasterBufferAndPrint [10:54:50]line *****ТОВАРНЫЙ ЧЕК***** [10:54:50]line АЗС 15 [10:54:50]line Партнер нефть [10:54:50]line 02508201610067 [10:54:50]line Кассир : Максатбек у Д. [10:54:50]line Счет N : (1)1040749 [10:54:50]line 15.03.2024 10:47 [10:54:50]line ПРОДАЖА [10:54:50]line ТРК (МРК, ГНК): 33 [10:54:50]line Вид ГСМ : 2710124130 [10:54:50]line Аи-92-К-5 [10:54:50]line 50.000 x 61.90 [10:54:50]line ИТОГ: 3095.00 [10:54:50]line Тип оплаты: Талоны: Топливная Карта [10:54:50]line 74815 [10:54:50]line ______________________ [10:54:50]line (подпись) [10:54:50]written 0, free lines is 4095 [10:54:50]Write to MH i2c: 01 00 00 A0 2F CF [10:54:50]Write i2c OK [10:54:50]MH_I2C_Read... [10:54:50]Read from MH i2c: 01 [10:54:50]MH_I2C_Read... [10:54:50]Read from MH i2c: 01 07 00 [10:54:50]MH_I2C_Read... [10:54:50]Read from MH i2c: 01 07 00 A0 2F 00 00 00 00 00 F7 0D DA [10:54:50]RasterBufferAndPrint [10:54:50]line [10:54:50]line [10:54:50]line [10:54:50]line [10:54:50]line [10:54:50]written 0, free lines is 3578 [10:54:50]MH_Cut [10:54:50]Write to MH i2c: D1 01 00 A7 2F 01 A8 [10:54:50]Write i2c OK [10:54:50]MH_I2C_Read... [10:54:50]Read from MH i2c: D1 [10:54:50]MH_I2C_Read... [10:54:50]Read from MH i2c: D1 01 00 [10:54:50]MH_I2C_Read... [10:54:50]Read from MH i2c: D1 01 00 A7 2F 00 A7 [10:54:50]Write to MH i2c: 01 00 00 A8 2F D7 [10:54:50]Write i2c OK [10:54:50]MH_I2C_Read... [10:54:51]*** Cut start [10:54:51]*** Purtial cut [10:54:51]*** Stage 1: CUTSNS_PIN = 1 [10:54:51]Read from MH i2c: 01 [10:54:51]MH_I2C_Read... [10:54:51]*** Stop cut motor [10:54:51]*** Cut end [10:54:51]Read from MH i2c: 01 07 00 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: 01 07 00 A8 2F 00 00 00 00 00 FF 0F EC [10:54:51]process_action print_text done [10:54:51]requested_data is exist [10:54:51]produce_requested_data [10:54:51]requested_item fm.sn is exist - process it [10:54:51]wFMCommunicate request_size=4 [10:54:51]MH_SAM_APDU [10:54:51]CAPDU: 80 11 00 00 [10:54:51]Write to MH i2c: E2 08 00 A9 2F 80 11 00 00 00 00 00 00 52 [10:54:51]Write i2c OK [10:54:51]MH_I2C_Read... [10:54:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:51]Read from MH i2c: E2 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 17 00 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 17 00 A9 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 A6 [10:54:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [10:54:51]wFMCommunicate OK [10:54:51]requested_item fd.num is exist - process it [10:54:51]SAM_PROTO_GetFieldsCounters [10:54:51]wFMCommunicate request_size=4 [10:54:51]MH_SAM_APDU [10:54:51]CAPDU: 80 13 00 00 [10:54:51]Write to MH i2c: E2 08 00 AA 2F 80 13 00 00 00 00 00 00 55 [10:54:51]Write i2c OK [10:54:51]MH_I2C_Read... [10:54:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:51]Read from MH i2c: E2 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 62 00 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 62 00 AA 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 1D A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [10:54: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 1D A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:54:51]wFMCommunicate OK [10:54:51]SAM_PROTO_GetFieldsCounters done [10:54:51]requested_item shift.num is exist - process it [10:54:51]requested_item shift.opened is exist - process it [10:54:51]req_shift_opened [10:54:51]FM_GetShiftState [10:54:51]SAM_PROTO_GetShiftState [10:54:51]wFMCommunicate request_size=4 [10:54:51]MH_SAM_APDU [10:54:51]CAPDU: 80 13 01 00 [10:54:51]Write to MH i2c: E2 08 00 AB 2F 80 13 01 00 00 00 00 00 57 [10:54:51]Write i2c OK [10:54:51]MH_I2C_Read... [10:54:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:51]Read from MH i2c: E2 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 0E 00 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 0E 00 AB 2F 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 8B [10:54:51]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [10:54:51]wFMCommunicate OK [10:54:51]SAM_PROTO_GetShiftState done [10:54:51]FM_GetShiftState done [10:54:51]req_shift_opened done [10:54:51]requested_item shift.open_date is exist - process it [10:54:51]req_shift_open_date [10:54:51]req_shift_open_date done [10:54:51]produce_requested_data done [10:54:51]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108573,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [10:54:51]process_action_free print_text [10:54:51]json_value_free [10:54:51]json_value_free done [10:54:51]process_json_proto returns [10:54:51]Send response to host [10:54:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108573,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [10:54:51]free response buf [10:54:51]execute_script done [10:54:51]execute_script returns [10:54:51]free content buf [10:54:51]Sock 8.Close socket [10:54:51]Sock 8.Thread stoped [10:54:53]OFD Sender: No OFD packet to send [10:54:58]OFD Sender: No OFD packet to send [10:55:03]OFD Sender: No OFD packet to send [10:55:08]OFD Sender: No OFD packet to send [10:55:13]OFD Sender: No OFD packet to send [10:55:18]OFD Sender: No OFD packet to send [10:55:23]OFD Sender: No OFD packet to send [10:55:28]OFD Sender: No OFD packet to send [10:55:33]OFD Sender: No OFD packet to send [10:55:38]OFD Sender: No OFD packet to send [10:55:43]OFD Sender: No OFD packet to send [10:55:48]OFD Sender: No OFD packet to send [10:55:53]OFD Sender: No OFD packet to send [10:55:58]OFD Sender: No OFD packet to send [10:56:03]OFD Sender: No OFD packet to send [10:56:08]OFD Sender: No OFD packet to send [10:56:13]OFD Sender: No OFD packet to send [10:56:18]OFD Sender: No OFD packet to send [10:56:23]OFD Sender: No OFD packet to send [10:56:28]OFD Sender: No OFD packet to send [10:56:33]OFD Sender: No OFD packet to send [10:56:38]OFD Sender: No OFD packet to send [10:56:43]OFD Sender: No OFD packet to send [10:56:48]OFD Sender: No OFD packet to send [10:56:53]OFD Sender: No OFD packet to send [10:56:58]OFD Sender: No OFD packet to send [10:57:03]OFD Sender: No OFD packet to send [10:57:08]OFD Sender: No OFD packet to send [10:57:13]OFD Sender: No OFD packet to send [10:57:18]OFD Sender: No OFD packet to send [10:57:23]OFD Sender: No OFD packet to send [10:57:28]OFD Sender: No OFD packet to send [10:57:33]OFD Sender: No OFD packet to send [10:57:38]OFD Sender: No OFD packet to send [10:57:43]OFD Sender: No OFD packet to send [10:57:48]OFD Sender: No OFD packet to send [10:57:53]OFD Sender: No OFD packet to send [10:57:58]OFD Sender: No OFD packet to send [10:58:03]OFD Sender: No OFD packet to send [10:58:08]OFD Sender: No OFD packet to send [10:58:13]OFD Sender: No OFD packet to send [10:58:18]OFD Sender: No OFD packet to send [10:58:23]OFD Sender: No OFD packet to send [10:58:28]OFD Sender: No OFD packet to send [10:58:33]OFD Sender: No OFD packet to send [10:58:38]OFD Sender: No OFD packet to send [10:58:43]OFD Sender: No OFD packet to send [10:58:48]OFD Sender: No OFD packet to send [10:58:53]OFD Sender: No OFD packet to send [10:58:58]OFD Sender: No OFD packet to send [10:59:03]OFD Sender: No OFD packet to send [10:59:08]OFD Sender: No OFD packet to send [10:59:13]OFD Sender: No OFD packet to send [10:59:18]OFD Sender: No OFD packet to send [10:59:23]OFD Sender: No OFD packet to send [10:59:28]OFD Sender: No OFD packet to send [10:59:33]OFD Sender: No OFD packet to send [10:59:38]OFD Sender: No OFD packet to send [10:59:43]OFD Sender: No OFD packet to send [10:59:48]OFD Sender: No OFD packet to send [10:59:53]OFD Sender: No OFD packet to send [10:59:58]OFD Sender: No OFD packet to send [11:00:03]OFD Sender: No OFD packet to send [11:00:08]OFD Sender: No OFD packet to send [11:00:13]OFD Sender: No OFD packet to send [11:00:18]OFD Sender: No OFD packet to send [11:00:23]OFD Sender: No OFD packet to send [11:00:28]OFD Sender: No OFD packet to send [11:00:33]OFD Sender: No OFD packet to send [11:00:38]OFD Sender: No OFD packet to send [11:00:43]OFD Sender: No OFD packet to send [11:00:48]OFD Sender: No OFD packet to send [11:00:53]OFD Sender: No OFD packet to send [11:00:58]OFD Sender: No OFD packet to send [11:01:03]OFD Sender: No OFD packet to send [11:01:08]OFD Sender: No OFD packet to send [11:01:13]OFD Sender: No OFD packet to send [11:01:18]OFD Sender: No OFD packet to send [11:01:23]OFD Sender: No OFD packet to send [11:01:28]OFD Sender: No OFD packet to send [11:01:33]OFD Sender: No OFD packet to send [11:01:38]OFD Sender: No OFD packet to send [11:01:43]OFD Sender: No OFD packet to send [11:01:48]OFD Sender: No OFD packet to send [11:01:53]OFD Sender: No OFD packet to send [11:01:58]OFD Sender: No OFD packet to send [11:02:03]OFD Sender: No OFD packet to send [11:02:08]OFD Sender: No OFD packet to send [11:02:13]OFD Sender: No OFD packet to send [11:02:18]OFD Sender: No OFD packet to send [11:02:23]OFD Sender: No OFD packet to send [11:02:28]OFD Sender: No OFD packet to send [11:02:32]accept exits with 9 [11:02:32]New connection [11:02:32]New thread 3067342180 created [11:02:32]Thread 3067198820 joined [11:02:32]Waiting for new connection... [11:02:32] Sock 9.Parse request [11:02:32]Sock 9.Check first char [11:02:32]Sock 9.First char is OK [11:02:32]request: POST /json_proto HTTP/1.0 [11:02:32]Method: POST [11:02:32]URL: /json_proto [11:02:32]Method is POST - this is cgi request [11:02:32]url: /json_proto [11:02:32]query_string will be loaded in cgi processing [11:02:32]execute_cgi json_proto POST (null) [11:02:32]execute_cgi path=json_proto method=POST [11:02:32]POST find Content-Length [11:02:32]Host: 172.17.32.69:8080 [11:02:32]Content-Length: 678 [11:02:32]Content-Type: application/json [11:02:32] [11:02:32]POST finish read [11:02:32]Found Content-Length = 678 [11:02:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "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:02:32]execute_script... [11:02: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)1040751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "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:02:32]POST & json_proto [11:02:32]process_json_proto [11:02:32]json parsed OK: [11:02:32]protocol is kg_v1.0 [11:02:32]action value=close_receipt [11:02:32]process_action close_receipt [11:02:32]cmd_close_receipt [11:02:32]MH_GetDate [11:02:32]Write to MH i2c: F0 00 00 AC 2F CA [11:02:32]Write i2c OK [11:02:32]MH_I2C_Read... [11:02:32]Read from MH i2c: F0 [11:02:32]MH_I2C_Read... [11:02:32]Read from MH i2c: F0 09 00 [11:02:32]MH_I2C_Read... [11:02:32]Read from MH i2c: F0 09 00 AC 2F 00 CC 2A F4 65 D5 0F D3 65 3E [11:02:32]GetLastDocTimeStamp 1710500089 [11:02:32]current date 1710500556 [11:02:32]FM_GetShiftState [11:02:32]SAM_PROTO_GetShiftState [11:02:32]wFMCommunicate request_size=4 [11:02:32]MH_SAM_APDU [11:02:32]CAPDU: 80 13 01 00 [11:02:32]Write to MH i2c: E2 08 00 AD 2F 80 13 01 00 00 00 00 00 59 [11:02:32]Write i2c OK [11:02:32]MH_I2C_Read... [11:02:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:32]Read from MH i2c: E2 [11:02:32]MH_I2C_Read... [11:02:32]Read from MH i2c: E2 0E 00 [11:02:32]MH_I2C_Read... [11:02:32]Read from MH i2c: E2 0E 00 AD 2F 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 8D [11:02:32]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [11:02:32]wFMCommunicate OK [11:02:32]SAM_PROTO_GetShiftState done [11:02:32]FM_GetShiftState done [11:02:32]opened in 1710461757 [11:02:32]opened+sec_in_day 1710548157 [11:02:32]quantity*price = 50015 [11:02:32]sum+1 = 50016 [11:02:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 97 15.03.2024 11:02 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108574 ФПД: 43338327106578 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T110236&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108574&fm=43338327106578&tin=02508201610067®Number=0000000000091911&sum=50000 [11:02:33]StoreToDocumentArchive [11:02:33]shift 320 fd 108574 [11:02:33]save to /storage/0320/doc_00108574 [11:02:33]save last doc name /storage/0320/doc_00108574 to /storage/kkm_last_doc_name [11:02:33]save OK [11:02:33]Clear old archive folders... [11:02:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:02:33]tlvbuf is 00184AF0 [11:02:33]SAM_PROTO_ClearQueue [11:02:33]wFMCommunicate request_size=4 [11:02:33]MH_SAM_APDU [11:02:33]CAPDU: 80 09 00 00 [11:02:33]Write to MH i2c: E2 08 00 BA 2F 80 09 00 00 00 00 00 00 5B [11:02:33]Write i2c OK [11:02:33]MH_I2C_Read... [11:02:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:33]Read from MH i2c: E2 [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: E2 03 00 [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: E2 03 00 BA 2F 00 90 00 5D [11:02:33]RAPDU: 90 00 [11:02:33]wFMCommunicate OK [11:02:33]SAM_PROTO_ClearQueue done [11:02:33]KKMCreateOFDPacket [11:02:33]OFDProtocolAddRootSTLVToBuf [11:02:33]FM_MakeSignedData [11:02:33]FM_MakeSignedData [11:02:33]SAM_PROTO_SignData [11:02:33]wFMCommunicate request_size=4 [11:02:33]MH_SAM_APDU [11:02:33]CAPDU: 80 0D 01 02 [11:02:33]Write to MH i2c: E2 08 00 BB 2F 80 0D 01 02 00 00 00 00 63 [11:02:33]Write i2c OK [11:02:33]MH_I2C_Read... [11:02:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:33]Read from MH i2c: E2 [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: E2 03 00 [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: E2 03 00 BB 2F 00 90 00 5E [11:02:33]RAPDU: 90 00 [11:02:33]wFMCommunicate OK [11:02:33]wFMCommunicate request_size=255 [11:02:33]MH_SAM_APDU [11:02:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 CC 2A F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 1E A8 01 00 35 04 06 00 27 [11:02:33]Write to MH i2c: E2 02 01 BC 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 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 CC 2A F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 1E A8 01 00 35 04 06 00 27 00 00 15 [11:02:33]Write i2c OK [11:02:33]MH_I2C_Read... [11:02:33]OFD Sender: No OFD packet to send [11:02:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:33]Read from MH i2c: E2 [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: E2 03 00 [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: E2 03 00 BC 2F 00 90 00 5F [11:02:33]RAPDU: 90 00 [11:02:33]wFMCommunicate OK [11:02:33]wFMCommunicate request_size=10 [11:02:33]MH_SAM_APDU [11:02:33]CAPDU: 80 0D 02 02 05 6A 7D 97 A4 12 [11:02:33]Write to MH i2c: E2 0D 00 BD 2F 80 0D 02 02 05 00 6A 7D 97 A4 12 00 00 A4 [11:02:33]Write i2c OK [11:02:33]MH_I2C_Read... [11:02:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:33]Read from MH i2c: E2 [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: E2 03 00 [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: E2 03 00 BD 2F 00 90 00 60 [11:02:33]RAPDU: 90 00 [11:02:33]wFMCommunicate OK [11:02:33]wFMCommunicate request_size=4 [11:02:33]MH_SAM_APDU [11:02:33]CAPDU: 80 0D 03 02 [11:02:33]Write to MH i2c: E2 08 00 BE 2F 80 0D 03 02 00 00 00 00 68 [11:02:33]Write i2c OK [11:02:33]MH_I2C_Read... [11:02:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:33]Read from MH i2c: E2 [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: E2 0B 00 [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: E2 0B 00 BE 2F 00 BB CF 2B 22 4C 76 C8 62 90 00 2C [11:02:33]RAPDU: BB CF 2B 22 4C 76 C8 62 90 00 [11:02:33]wFMCommunicate OK [11:02:33]SAM_PROTO_SignData done [11:02:33]FM_MakeSignedData done [11:02:33]CreateOFDProtocolMessage [11:02:33]wFMCommunicate request_size=4 [11:02:33]MH_SAM_APDU [11:02:33]CAPDU: 80 11 00 00 [11:02:33]Write to MH i2c: E2 08 00 BF 2F 80 11 00 00 00 00 00 00 68 [11:02:33]Write i2c OK [11:02:33]MH_I2C_Read... [11:02:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:33]Read from MH i2c: E2 [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: E2 17 00 [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: E2 17 00 BF 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 BC [11:02:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [11:02:33]wFMCommunicate OK [11:02:33]CreateOFDProtocolMessage done [11:02:33]OFDSenderStorePacket 108574 [11:02:33]StoreOFDPacket docnum=108574 [11:02:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 BC 52 07 01 1E E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 CC 2A F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 1E A8 01 00 35 04 06 00 27 6A 7D 97 A4 12 BB CF 2B 22 4C 76 C8 62 [11:02:33]CheckFolder [11:02:33]dirname=/storage/ofd_packets [11:02:33]CheckFolder done [11:02:33]ProducePacketName [11:02:33]name=ofd_packets/00108574 [11:02:33]NVStorageSaveData ofd_packets/00108574 [11:02:33]File name is /storage/ofd_packets/00108574 [11:02:33]Write 301 bytes [11:02:33]NVStorageSaveData done [11:02:33]OFDSenderStorePacket done [11:02:33]KKMCreateOFDPacket done [11:02:33]NVStorageSaveData kkm_last_timestamp [11:02:33]File name is /storage/kkm_last_timestamp [11:02:33]Write 4 bytes [11:02:33]NVStorageSaveData done [11:02:33]ExternCall_PrintAddStr [11:02:33]wPrintStart [11:02:33]Write to MH i2c: 01 00 00 C0 2F EF [11:02:33]Write i2c OK [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: 01 [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: 01 07 00 [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: 01 07 00 C0 2F 00 00 00 00 00 FF 0F 04 [11:02:33]RasterBufferAndPrint [11:02:33]line Счет N : (1)1040751 [11:02:33]line ИНН: 02508201610067 [11:02:33]line Контрольно-Кассовый Чек [11:02:33]line ПРОДАЖА [11:02:33]line ТРК (МРК, ГНК) : 23 [11:02:33]line Товар: 2710124130 [11:02:33]line Аи-92-К-5 [11:02:33]line 8.080 * 61.90 [11:02:33]line = 500.15 [11:02:33]line НДС 12% НСП 1% [11:02:33]line > о реализуемом товаре [11:02:33]line ОКРУГЛЕНИЕ: -0.15 [11:02:33]line ИТОГО: 500.00 [11:02:33]line Внесено: 500.00 [11:02:33]line СДАЧА: 0.00 [11:02:33]line НСП 1% : 4.43 [11:02:33]line НДС 12% : 53.11 [11:02:33]line Наличными: 500.00 [11:02:33]line Безнал.: 0.00 [11:02:33]line Место: АЗС № 15 "Партнер Нефть" [11:02:33]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [11:02:33]line СНО: Общий режим [11:02:33]line Чек 97 15.03.2024 11:02 [11:02:33]line Смена: 320 ФФД: 1.0 [11:02:33]line ЗНМ: 0300000266 [11:02:33]line РНМ: 0000000000091911 [11:02:33]line Версия ККМ: 001 [11:02:33]line ФМ: 0000000000871818 [11:02:33]line ФД: 108574 [11:02:33]line ФПД: 43338327106578 [11:02:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T110236&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108574&fm=43338327106578&tin=02508201610067®Number=0000000000091911&sum=50000 [11:02:34]OFD Sender: Processing packet 108574 [packets to send 29, broken 28] [11:02:34]ProducePacketName [11:02:34]name=ofd_packets/00108574 [11:02:34]OFD Sender: To server: pG, [11:02:34]CommunicateWithHost lk.salyk.kg:30040 [11:02:34]ConnectInit lk.salyk.kg [11:02:34]written 0, free lines is 4095 [11:02:34]Connected sock=10 [11:02: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 31 38 0F 01 00 00 BC 52 07 01 1E E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 CC 2A F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 1E A8 01 00 35 04 06 00 27 6A 7D 97 A4 12 BB CF 2B 22 4C 76 C8 62 [11:02: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 31 38 4F 00 00 00 AB 86 47 00 F6 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 31 38 10 04 04 00 1E A8 01 00 F4 03 04 00 6C D6 F3 65 B6 04 01 00 00 CA 40 59 CB 32 19 2A 50 [11:02:34]CommunicateWithHost err = 0 [11:02:34]CheckOFDResponse [11:02:34]1017 (14) - 77093643461234 [11:02:34]1041 (16) - 0000000000871818 [11:02:34]1040 (4) - 108574 [11:02:34]1012 (4) - 15.03.2024 05:02 [11:02:34]1206 (1) - 0 [11:02:34]OFD Sender: Remove packet 108574 [11:02:34]ProducePacketName [11:02:34]name=ofd_packets/00108574 [11:02:34]NVStorageDeleteData [11:02:34]Write to MH i2c: 01 00 00 EB 2F 1A [11:02:34]Write i2c OK [11:02:34]MH_I2C_Read... [11:02:34]Read from MH i2c: 01 [11:02:34]MH_I2C_Read... [11:02:34]Read from MH i2c: 01 07 00 [11:02:34]MH_I2C_Read... [11:02:34]Read from MH i2c: 01 07 00 EB 2F 00 00 00 00 00 DF 0C 0C [11:02:34]RasterBufferAndPrint [11:02:34]line [11:02:34]line [11:02:34]line [11:02:34]line [11:02:34]line [11:02:34]written 0, free lines is 3301 [11:02:34]MH_Cut [11:02:34]Write to MH i2c: D1 01 00 F2 2F 01 F3 [11:02:34]Write i2c OK [11:02:34]MH_I2C_Read... [11:02:34]Read from MH i2c: D1 [11:02:34]MH_I2C_Read... [11:02:34]Read from MH i2c: D1 01 00 [11:02:34]MH_I2C_Read... [11:02:34]Read from MH i2c: D1 01 00 F2 2F 00 F2 [11:02:34]Write to MH i2c: 01 00 00 F3 2F 22 [11:02:34]Write i2c OK [11:02:34]MH_I2C_Read... [11:02:35]OFD Sender: No OFD packet to send [11:02:35]*** Cut start [11:02:35]*** Purtial cut [11:02:35]*** Stage 1: CUTSNS_PIN = 1 [11:02:35]Read from MH i2c: 01 [11:02:35]MH_I2C_Read... [11:02:35]*** Stop cut motor [11:02:35]*** Cut end [11:02:35]Read from MH i2c: 01 07 00 [11:02:35]MH_I2C_Read... [11:02:35]Read from MH i2c: 01 07 00 F3 2F 00 00 00 00 00 FF 0F 37 [11:02:35]process_action close_receipt done [11:02:35]requested_data is exist [11:02:35]produce_requested_data [11:02:35]requested_item fm.sn is exist - process it [11:02:35]wFMCommunicate request_size=4 [11:02:35]MH_SAM_APDU [11:02:35]CAPDU: 80 11 00 00 [11:02:35]Write to MH i2c: E2 08 00 F4 2F 80 11 00 00 00 00 00 00 9D [11:02:35]Write i2c OK [11:02:35]MH_I2C_Read... [11:02:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:35]Read from MH i2c: E2 [11:02:35]MH_I2C_Read... [11:02:35]Read from MH i2c: E2 17 00 [11:02:35]MH_I2C_Read... [11:02:35]Read from MH i2c: E2 17 00 F4 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 F1 [11:02:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [11:02:35]wFMCommunicate OK [11:02:35]requested_item fd.num is exist - process it [11:02:35]SAM_PROTO_GetFieldsCounters [11:02:35]wFMCommunicate request_size=4 [11:02:35]MH_SAM_APDU [11:02:35]CAPDU: 80 13 00 00 [11:02:35]Write to MH i2c: E2 08 00 F5 2F 80 13 00 00 00 00 00 00 A0 [11:02:35]Write i2c OK [11:02:35]MH_I2C_Read... [11:02:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:36]Read from MH i2c: E2 [11:02:36]MH_I2C_Read... [11:02:36]Read from MH i2c: E2 62 00 [11:02:36]MH_I2C_Read... [11:02:36]Read from MH i2c: E2 62 00 F5 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 1E A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [11:02: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 1E A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:02:36]wFMCommunicate OK [11:02:36]SAM_PROTO_GetFieldsCounters done [11:02:36]requested_item shift.num is exist - process it [11:02:36]requested_item shift.opened is exist - process it [11:02:36]req_shift_opened [11:02:36]FM_GetShiftState [11:02:36]SAM_PROTO_GetShiftState [11:02:36]wFMCommunicate request_size=4 [11:02:36]MH_SAM_APDU [11:02:36]CAPDU: 80 13 01 00 [11:02:36]Write to MH i2c: E2 08 00 F6 2F 80 13 01 00 00 00 00 00 A2 [11:02:36]Write i2c OK [11:02:36]MH_I2C_Read... [11:02:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:36]Read from MH i2c: E2 [11:02:36]MH_I2C_Read... [11:02:36]Read from MH i2c: E2 0E 00 [11:02:36]MH_I2C_Read... [11:02:36]Read from MH i2c: E2 0E 00 F6 2F 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 D6 [11:02:36]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [11:02:36]wFMCommunicate OK [11:02:36]SAM_PROTO_GetShiftState done [11:02:36]FM_GetShiftState done [11:02:36]req_shift_opened done [11:02:36]requested_item shift.open_date is exist - process it [11:02:36]req_shift_open_date [11:02:36]req_shift_open_date done [11:02:36]produce_requested_data done [11:02:36]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108574,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [11:02:36]process_action_free close_receipt [11:02:36]json_value_free [11:02:36]json_value_free done [11:02:36]process_json_proto returns [11:02:36]Send response to host [11:02:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108574,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [11:02:36]free response buf [11:02:36]execute_script done [11:02:36]execute_script returns [11:02:36]free content buf [11:02:36]Sock 9.Close socket [11:02:36]Sock 9.Thread stoped [11:02:40]OFD Sender: No OFD packet to send [11:02:45]OFD Sender: No OFD packet to send [11:02:50]OFD Sender: No OFD packet to send [11:02:55]OFD Sender: No OFD packet to send [11:03:00]OFD Sender: No OFD packet to send [11:03:05]OFD Sender: No OFD packet to send [11:03:10]OFD Sender: No OFD packet to send [11:03:15]OFD Sender: No OFD packet to send [11:03:20]OFD Sender: No OFD packet to send [11:03:25]OFD Sender: No OFD packet to send [11:03:30]OFD Sender: No OFD packet to send [11:03:35]OFD Sender: No OFD packet to send [11:03:37]accept exits with 8 [11:03:37]New connection [11:03:37]New thread 3067198820 created [11:03:37]Thread 3067342180 joined [11:03:37]Waiting for new connection... [11:03:37] Sock 8.Parse request [11:03:37]Sock 8.Check first char [11:03:37]Sock 8.First char is OK [11:03:37]request: POST /json_proto HTTP/1.0 [11:03:37]Method: POST [11:03:37]URL: /json_proto [11:03:37]Method is POST - this is cgi request [11:03:37]url: /json_proto [11:03:37]query_string will be loaded in cgi processing [11:03:37]execute_cgi json_proto POST (null) [11:03:37]execute_cgi path=json_proto method=POST [11:03:37]POST find Content-Length [11:03:37]Host: 172.17.32.69:8080 [11:03:37]Content-Length: 682 [11:03:37]Content-Type: application/json [11:03:37] [11:03:37]POST finish read [11:03:37]Found Content-Length = 682 [11:03:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 7.060, "sum" : 500.55, "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:03:37]execute_script... [11:03:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 7.060, "sum" : 500.55, "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:03:37]POST & json_proto [11:03:37]process_json_proto [11:03:37]json parsed OK: [11:03:37]protocol is kg_v1.0 [11:03:37]action value=close_receipt [11:03:37]process_action close_receipt [11:03:37]cmd_close_receipt [11:03:37]MH_GetDate [11:03:37]Write to MH i2c: F0 00 00 F7 2F 15 [11:03:37]Write i2c OK [11:03:37]MH_I2C_Read... [11:03:37]Read from MH i2c: F0 [11:03:37]MH_I2C_Read... [11:03:37]Read from MH i2c: F0 09 00 [11:03:37]MH_I2C_Read... [11:03:37]Read from MH i2c: F0 09 00 F7 2F 00 0D 2B F4 65 D5 0F D3 65 CB [11:03:37]GetLastDocTimeStamp 1710500556 [11:03:37]current date 1710500621 [11:03:37]FM_GetShiftState [11:03:37]SAM_PROTO_GetShiftState [11:03:37]wFMCommunicate request_size=4 [11:03:37]MH_SAM_APDU [11:03:37]CAPDU: 80 13 01 00 [11:03:37]Write to MH i2c: E2 08 00 F8 2F 80 13 01 00 00 00 00 00 A4 [11:03:37]Write i2c OK [11:03:37]MH_I2C_Read... [11:03:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:37]Read from MH i2c: E2 [11:03:37]MH_I2C_Read... [11:03:37]Read from MH i2c: E2 0E 00 [11:03:37]MH_I2C_Read... [11:03:37]Read from MH i2c: E2 0E 00 F8 2F 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 D8 [11:03:37]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [11:03:37]wFMCommunicate OK [11:03:37]SAM_PROTO_GetShiftState done [11:03:37]FM_GetShiftState done [11:03:37]opened in 1710461757 [11:03:37]opened+sec_in_day 1710548157 [11:03:37]quantity*price = 50055 [11:03:37]sum+1 = 50056 [11:03:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 98 15.03.2024 11:03 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108575 ФПД: 23986089391555 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T110341&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108575&fm=23986089391555&tin=02508201610067®Number=0000000000091911&sum=50000 [11:03:38]StoreToDocumentArchive [11:03:38]shift 320 fd 108575 [11:03:38]save to /storage/0320/doc_00108575 [11:03:38]save last doc name /storage/0320/doc_00108575 to /storage/kkm_last_doc_name [11:03:38]save OK [11:03:38]Clear old archive folders... [11:03:38]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:03:38]tlvbuf is 0015BD20 [11:03:38]SAM_PROTO_ClearQueue [11:03:38]wFMCommunicate request_size=4 [11:03:38]MH_SAM_APDU [11:03:38]CAPDU: 80 09 00 00 [11:03:38]Write to MH i2c: E2 08 00 05 30 80 09 00 00 00 00 00 00 A7 [11:03:38]Write i2c OK [11:03:38]MH_I2C_Read... [11:03:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:03:38]Read from MH i2c: E2 [11:03:38]MH_I2C_Read... [11:03:38]Read from MH i2c: E2 03 00 [11:03:38]MH_I2C_Read... [11:03:38]Read from MH i2c: E2 03 00 05 30 00 90 00 A9 [11:03:38]RAPDU: 90 00 [11:03:38]wFMCommunicate OK [11:03:38]SAM_PROTO_ClearQueue done [11:03:38]KKMCreateOFDPacket [11:03:38]OFDProtocolAddRootSTLVToBuf [11:03:38]FM_MakeSignedData [11:03:38]FM_MakeSignedData [11:03:38]SAM_PROTO_SignData [11:03:38]wFMCommunicate request_size=4 [11:03:38]MH_SAM_APDU [11:03:38]CAPDU: 80 0D 01 02 [11:03:38]Write to MH i2c: E2 08 00 06 30 80 0D 01 02 00 00 00 00 AF [11:03:38]Write i2c OK [11:03:38]MH_I2C_Read... [11:03:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:03:38]Read from MH i2c: E2 [11:03:38]MH_I2C_Read... [11:03:38]Read from MH i2c: E2 03 00 [11:03:38]MH_I2C_Read... [11:03:38]Read from MH i2c: E2 03 00 06 30 00 90 00 AA [11:03:38]RAPDU: 90 00 [11:03:38]wFMCommunicate OK [11:03:38]wFMCommunicate request_size=255 [11:03:38]MH_SAM_APDU [11:03:38]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 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 62 00 00 00 F4 03 04 00 0D 2B F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 1F A8 01 00 35 04 06 00 [11:03:38]Write to MH i2c: E2 02 01 07 30 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 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 62 00 00 00 F4 03 04 00 0D 2B F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 1F A8 01 00 35 04 06 00 00 00 6D [11:03:38]Write i2c OK [11:03:38]MH_I2C_Read... [11:03:39]Read from MH i2c: E2 [11:03:39]MH_I2C_Read... [11:03:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:39]Read from MH i2c: E2 03 00 [11:03:39]MH_I2C_Read... [11:03:39]Read from MH i2c: E2 03 00 07 30 00 90 00 AB [11:03:39]RAPDU: 90 00 [11:03:39]wFMCommunicate OK [11:03:39]wFMCommunicate request_size=11 [11:03:39]MH_SAM_APDU [11:03:39]CAPDU: 80 0D 02 02 06 15 D0 B2 56 75 C3 [11:03:39]Write to MH i2c: E2 0E 00 08 30 80 0D 02 02 06 00 15 D0 B2 56 75 C3 00 00 E3 [11:03:39]Write i2c OK [11:03:39]MH_I2C_Read... [11:03:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:39]Read from MH i2c: E2 [11:03:39]MH_I2C_Read... [11:03:39]Read from MH i2c: E2 03 00 [11:03:39]MH_I2C_Read... [11:03:39]Read from MH i2c: E2 03 00 08 30 00 90 00 AC [11:03:39]RAPDU: 90 00 [11:03:39]wFMCommunicate OK [11:03:39]wFMCommunicate request_size=4 [11:03:39]MH_SAM_APDU [11:03:39]CAPDU: 80 0D 03 02 [11:03:39]Write to MH i2c: E2 08 00 09 30 80 0D 03 02 00 00 00 00 B4 [11:03:39]Write i2c OK [11:03:39]MH_I2C_Read... [11:03:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:03:39]Read from MH i2c: E2 [11:03:39]MH_I2C_Read... [11:03:39]Read from MH i2c: E2 0B 00 [11:03:39]MH_I2C_Read... [11:03:39]Read from MH i2c: E2 0B 00 09 30 00 90 6A 2E D9 E7 DB EA FF 90 00 61 [11:03:39]RAPDU: 90 6A 2E D9 E7 DB EA FF 90 00 [11:03:39]wFMCommunicate OK [11:03:39]SAM_PROTO_SignData done [11:03:39]FM_MakeSignedData done [11:03:39]CreateOFDProtocolMessage [11:03:39]wFMCommunicate request_size=4 [11:03:39]MH_SAM_APDU [11:03:39]CAPDU: 80 11 00 00 [11:03:39]Write to MH i2c: E2 08 00 0A 30 80 11 00 00 00 00 00 00 B4 [11:03:39]Write i2c OK [11:03:39]MH_I2C_Read... [11:03:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:39]Read from MH i2c: E2 [11:03:39]MH_I2C_Read... [11:03:39]Read from MH i2c: E2 17 00 [11:03:39]MH_I2C_Read... [11:03:39]Read from MH i2c: E2 17 00 0A 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 08 [11:03:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [11:03:39]wFMCommunicate OK [11:03:39]CreateOFDProtocolMessage done [11:03:39]OFDSenderStorePacket 108575 [11:03:39]StoreOFDPacket docnum=108575 [11:03:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 01 00 00 36 58 08 01 27 72 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 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 62 00 00 00 F4 03 04 00 0D 2B F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 1F A8 01 00 35 04 06 00 15 D0 B2 56 75 C3 90 6A 2E D9 E7 DB EA FF [11:03:39]CheckFolder [11:03:39]dirname=/storage/ofd_packets [11:03:39]CheckFolder done [11:03:39]ProducePacketName [11:03:39]name=ofd_packets/00108575 [11:03:39]NVStorageSaveData ofd_packets/00108575 [11:03:39]File name is /storage/ofd_packets/00108575 [11:03:39]Write 302 bytes [11:03:39]NVStorageSaveData done [11:03:39]OFDSenderStorePacket done [11:03:39]KKMCreateOFDPacket done [11:03:39]NVStorageSaveData kkm_last_timestamp [11:03:39]File name is /storage/kkm_last_timestamp [11:03:39]Write 4 bytes [11:03:39]NVStorageSaveData done [11:03:39]ExternCall_PrintAddStr [11:03:39]wPrintStart [11:03:39]Write to MH i2c: 01 00 00 0B 30 3B [11:03:39]Write i2c OK [11:03:39]MH_I2C_Read... [11:03:39]Read from MH i2c: 01 [11:03:39]MH_I2C_Read... [11:03:39]Read from MH i2c: 01 07 00 [11:03:39]MH_I2C_Read... [11:03:39]Read from MH i2c: 01 07 00 0B 30 00 00 00 00 00 FF 0F 50 [11:03:39]RasterBufferAndPrint [11:03:39]line Счет N : (1)1040752 [11:03:39]line ИНН: 02508201610067 [11:03:39]line Контрольно-Кассовый Чек [11:03:39]line ПРОДАЖА [11:03:39]line ТРК (МРК, ГНК) : 6 [11:03:39]line Товар: 2710194210 [11:03:39]line ДТ(л)-К-5 [11:03:39]line 7.060 * 70.90 [11:03:39]line = 500.55 [11:03:39]line НДС 12% НСП 1% [11:03:39]line > о реализуемом товаре [11:03:39]line ОКРУГЛЕНИЕ: -0.55 [11:03:39]line ИТОГО: 500.00 [11:03:39]line Внесено: 500.00 [11:03:39]line СДАЧА: 0.00 [11:03:39]line НСП 1% : 4.43 [11:03:39]line НДС 12% : 53.16 [11:03:39]line Наличными: 500.00 [11:03:39]line Безнал.: 0.00 [11:03:39]line Место: АЗС № 15 "Партнер Нефть" [11:03:39]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [11:03:39]line СНО: Общий режим [11:03:39]line Чек 98 15.03.2024 11:03 [11:03:39]line Смена: 320 ФФД: 1.0 [11:03:39]line ЗНМ: 0300000266 [11:03:39]line РНМ: 0000000000091911 [11:03:39]line Версия ККМ: 001 [11:03:39]line ФМ: 0000000000871818 [11:03:39]line ФД: 108575 [11:03:39]line ФПД: 23986089391555 [11:03:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T110341&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108575&fm=23986089391555&tin=02508201610067®Number=0000000000091911&sum=50000 [11:03:39]OFD Sender: Processing packet 108575 [packets to send 29, broken 28] [11:03:39]ProducePacketName [11:03:39]name=ofd_packets/00108575 [11:03:39]OFD Sender: To server: pG, [11:03:39]CommunicateWithHost lk.salyk.kg:30040 [11:03:39]ConnectInit lk.salyk.kg [11:03:39]written 0, free lines is 4095 [11:03:39]Connected sock=10 [11:03: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 31 38 10 01 00 00 36 58 08 01 27 72 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 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 62 00 00 00 F4 03 04 00 0D 2B F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 1F A8 01 00 35 04 06 00 15 D0 B2 56 75 C3 90 6A 2E D9 E7 DB EA FF [11:03: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 31 38 4F 00 00 00 D5 5B 47 00 36 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 1F A8 01 00 F4 03 04 00 AD D6 F3 65 B6 04 01 00 00 8D 1C F2 FE F4 E1 E9 89 [11:03:39]CommunicateWithHost err = 0 [11:03:39]CheckOFDResponse [11:03:39]1017 (14) - 77093643461234 [11:03:39]1041 (16) - 0000000000871818 [11:03:39]1040 (4) - 108575 [11:03:39]1012 (4) - 15.03.2024 05:03 [11:03:39]1206 (1) - 0 [11:03:39]OFD Sender: Remove packet 108575 [11:03:39]ProducePacketName [11:03:39]name=ofd_packets/00108575 [11:03:39]NVStorageDeleteData [11:03:39]Write to MH i2c: 01 00 00 36 30 66 [11:03:39]Write i2c OK [11:03:39]MH_I2C_Read... [11:03:39]Read from MH i2c: 01 [11:03:39]MH_I2C_Read... [11:03:39]Read from MH i2c: 01 07 00 [11:03:39]MH_I2C_Read... [11:03:39]Read from MH i2c: 01 07 00 36 30 00 00 00 00 00 D7 0C 50 [11:03:39]RasterBufferAndPrint [11:03:39]line [11:03:39]line [11:03:39]line [11:03:39]line [11:03:39]line [11:03:39]written 0, free lines is 3296 [11:03:40]MH_Cut [11:03:40]Write to MH i2c: D1 01 00 3D 30 01 3F [11:03:40]Write i2c OK [11:03:40]MH_I2C_Read... [11:03:40]Read from MH i2c: D1 [11:03:40]MH_I2C_Read... [11:03:40]Read from MH i2c: D1 01 00 [11:03:40]MH_I2C_Read... [11:03:40]Read from MH i2c: D1 01 00 3D 30 00 3E [11:03:40]Write to MH i2c: 01 00 00 3E 30 6E [11:03:40]Write i2c OK [11:03:40]MH_I2C_Read... [11:03:40]OFD Sender: No OFD packet to send [11:03:40]*** Cut start [11:03:40]*** Purtial cut [11:03:40]*** Stage 1: CUTSNS_PIN = 1 [11:03:41]Read from MH i2c: 01 [11:03:41]MH_I2C_Read... [11:03:41]*** Stop cut motor [11:03:41]*** Cut end [11:03:41]Read from MH i2c: 01 07 00 [11:03:41]MH_I2C_Read... [11:03:41]Read from MH i2c: 01 07 00 3E 30 00 00 00 00 00 FF 0F 83 [11:03:41]process_action close_receipt done [11:03:41]requested_data is exist [11:03:41]produce_requested_data [11:03:41]requested_item fm.sn is exist - process it [11:03:41]wFMCommunicate request_size=4 [11:03:41]MH_SAM_APDU [11:03:41]CAPDU: 80 11 00 00 [11:03:41]Write to MH i2c: E2 08 00 3F 30 80 11 00 00 00 00 00 00 E9 [11:03:41]Write i2c OK [11:03:41]MH_I2C_Read... [11:03:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:41]Read from MH i2c: E2 [11:03:41]MH_I2C_Read... [11:03:41]Read from MH i2c: E2 17 00 [11:03:41]MH_I2C_Read... [11:03:41]Read from MH i2c: E2 17 00 3F 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 3D [11:03:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [11:03:41]wFMCommunicate OK [11:03:41]requested_item fd.num is exist - process it [11:03:41]SAM_PROTO_GetFieldsCounters [11:03:41]wFMCommunicate request_size=4 [11:03:41]MH_SAM_APDU [11:03:41]CAPDU: 80 13 00 00 [11:03:41]Write to MH i2c: E2 08 00 40 30 80 13 00 00 00 00 00 00 EC [11:03:41]Write i2c OK [11:03:41]MH_I2C_Read... [11:03:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:41]Read from MH i2c: E2 [11:03:41]MH_I2C_Read... [11:03:41]Read from MH i2c: E2 62 00 [11:03:41]MH_I2C_Read... [11:03:41]Read from MH i2c: E2 62 00 40 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 1F A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [11:03: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 1F A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:03:41]wFMCommunicate OK [11:03:41]SAM_PROTO_GetFieldsCounters done [11:03:41]requested_item shift.num is exist - process it [11:03:41]requested_item shift.opened is exist - process it [11:03:41]req_shift_opened [11:03:41]FM_GetShiftState [11:03:41]SAM_PROTO_GetShiftState [11:03:41]wFMCommunicate request_size=4 [11:03:41]MH_SAM_APDU [11:03:41]CAPDU: 80 13 01 00 [11:03:41]Write to MH i2c: E2 08 00 41 30 80 13 01 00 00 00 00 00 EE [11:03:41]Write i2c OK [11:03:41]MH_I2C_Read... [11:03:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:41]Read from MH i2c: E2 [11:03:41]MH_I2C_Read... [11:03:41]Read from MH i2c: E2 0E 00 [11:03:41]MH_I2C_Read... [11:03:41]Read from MH i2c: E2 0E 00 41 30 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 22 [11:03:41]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [11:03:41]wFMCommunicate OK [11:03:41]SAM_PROTO_GetShiftState done [11:03:41]FM_GetShiftState done [11:03:41]req_shift_opened done [11:03:41]requested_item shift.open_date is exist - process it [11:03:41]req_shift_open_date [11:03:41]req_shift_open_date done [11:03:41]produce_requested_data done [11:03:41]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108575,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [11:03:41]process_action_free close_receipt [11:03:41]json_value_free [11:03:41]json_value_free done [11:03:41]process_json_proto returns [11:03:41]Send response to host [11:03:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108575,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [11:03:41]free response buf [11:03:41]execute_script done [11:03:41]execute_script returns [11:03:41]free content buf [11:03:41]Sock 8.Close socket [11:03:41]Sock 8.Thread stoped [11:03:45]OFD Sender: No OFD packet to send [11:03:50]OFD Sender: No OFD packet to send [11:03:55]OFD Sender: No OFD packet to send [11:04:00]OFD Sender: No OFD packet to send [11:04:05]OFD Sender: No OFD packet to send [11:04:10]OFD Sender: No OFD packet to send [11:04:15]OFD Sender: No OFD packet to send [11:04:20]OFD Sender: No OFD packet to send [11:04:25]OFD Sender: No OFD packet to send [11:04:30]OFD Sender: No OFD packet to send [11:04:35]OFD Sender: No OFD packet to send [11:04:40]OFD Sender: No OFD packet to send [11:04:45]OFD Sender: No OFD packet to send [11:04:50]OFD Sender: No OFD packet to send [11:04:55]OFD Sender: No OFD packet to send [11:05:00]OFD Sender: No OFD packet to send [11:05:05]OFD Sender: No OFD packet to send [11:05:10]OFD Sender: No OFD packet to send [11:05:15]OFD Sender: No OFD packet to send [11:05:20]OFD Sender: No OFD packet to send [11:05:25]OFD Sender: No OFD packet to send [11:05:30]OFD Sender: No OFD packet to send [11:05:35]OFD Sender: No OFD packet to send [11:05:40]OFD Sender: No OFD packet to send [11:05:45]OFD Sender: No OFD packet to send [11:05:50]OFD Sender: No OFD packet to send [11:05:55]OFD Sender: No OFD packet to send [11:06:00]OFD Sender: No OFD packet to send [11:06:05]OFD Sender: No OFD packet to send [11:06:10]OFD Sender: No OFD packet to send [11:06:15]OFD Sender: No OFD packet to send [11:06:20]OFD Sender: No OFD packet to send [11:06:25]OFD Sender: No OFD packet to send [11:06:30]OFD Sender: No OFD packet to send [11:06:35]OFD Sender: No OFD packet to send [11:06:40]OFD Sender: No OFD packet to send [11:06:45]OFD Sender: No OFD packet to send [11:06:50]OFD Sender: No OFD packet to send [11:06:55]OFD Sender: No OFD packet to send [11:07:00]OFD Sender: No OFD packet to send [11:07:05]OFD Sender: No OFD packet to send [11:07:10]OFD Sender: No OFD packet to send [11:07:15]OFD Sender: No OFD packet to send [11:07:20]OFD Sender: No OFD packet to send [11:07:25]OFD Sender: No OFD packet to send [11:07:30]OFD Sender: No OFD packet to send [11:07:35]OFD Sender: No OFD packet to send [11:07:40]OFD Sender: No OFD packet to send [11:07:43]accept exits with 9 [11:07:43]New connection [11:07:43]New thread 3067342180 created [11:07:43]Thread 3067198820 joined [11:07:43]Waiting for new connection... [11:07:43] Sock 9.Parse request [11:07:43]Sock 9.Check first char [11:07:43]Sock 9.First char is OK [11:07:43]request: POST /json_proto HTTP/1.0 [11:07:43]Method: POST [11:07:43]URL: /json_proto [11:07:43]Method is POST - this is cgi request [11:07:43]url: /json_proto [11:07:43]query_string will be loaded in cgi processing [11:07:43]execute_cgi json_proto POST (null) [11:07:43]execute_cgi path=json_proto method=POST [11:07:43]POST find Content-Length [11:07:43]Host: 172.17.32.69:8080 [11:07:43]Content-Length: 1202 [11:07:43]Content-Type: application/json [11:07:43] [11:07:43]POST finish read [11:07:43]Found Content-Length = 1202 [11:07:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040753\u000A15.03.2024 10:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 2\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 10.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 709.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3689324\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:43]execute_script... [11:07:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040753\u000A15.03.2024 10:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 2\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 10.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 709.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3689324\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:43]POST & json_proto [11:07:43]process_json_proto [11:07:43]json parsed OK: [11:07:43]protocol is kg_v1.0 [11:07:43]action value=print_text [11:07:43]process_action print_text [11:07:43]cmd_print_text [11:07:43]ExternCall_PrintAddStr [11:07:43]wPrintStart [11:07:43]Write to MH i2c: 01 00 00 42 30 72 [11:07:43]Write i2c OK [11:07:43]MH_I2C_Read... [11:07:43]Read from MH i2c: 01 [11:07:43]MH_I2C_Read... [11:07:43]Read from MH i2c: 01 07 00 [11:07:43]MH_I2C_Read... [11:07:43]Read from MH i2c: 01 07 00 42 30 00 00 00 00 00 FF 0F 87 [11:07:43]RasterBufferAndPrint [11:07:43]line *****ТОВАРНЫЙ ЧЕК***** [11:07:43]line АЗС 15 [11:07:43]line Партнер нефть [11:07:43]line 02508201610067 [11:07:43]line Кассир : Максатбек у Д. [11:07:43]line Счет N : (1)1040753 [11:07:43]line 15.03.2024 10:59 [11:07:43]line ПРОДАЖА [11:07:43]line ТРК (МРК, ГНК): 2 [11:07:43]line Вид ГСМ : 2710194210 [11:07:43]line ДТ(л)-К-5 [11:07:43]line 10.000 x 70.90 [11:07:43]line ИТОГ: 709.00 [11:07:43]line Тип оплаты: Талоны: Партнер нефть [11:07:43]line 3689324 [11:07:43]line ______________________ [11:07:43]line (подпись) [11:07:43]written 0, free lines is 4095 [11:07:43]Write to MH i2c: 01 00 00 57 30 87 [11:07:43]Write i2c OK [11:07:43]MH_I2C_Read... [11:07:43]Read from MH i2c: 01 [11:07:43]MH_I2C_Read... [11:07:43]Read from MH i2c: 01 07 00 [11:07:43]MH_I2C_Read... [11:07:43]Read from MH i2c: 01 07 00 57 30 00 00 00 00 00 F7 0D 92 [11:07:43]RasterBufferAndPrint [11:07:43]line [11:07:43]line [11:07:43]line [11:07:43]line [11:07:43]line [11:07:43]written 0, free lines is 3576 [11:07:43]MH_Cut [11:07:43]Write to MH i2c: D1 01 00 5E 30 01 60 [11:07:43]Write i2c OK [11:07:43]MH_I2C_Read... [11:07:43]Read from MH i2c: D1 [11:07:43]MH_I2C_Read... [11:07:43]Read from MH i2c: D1 01 00 [11:07:43]MH_I2C_Read... [11:07:43]Read from MH i2c: D1 01 00 5E 30 00 5F [11:07:43]Write to MH i2c: 01 00 00 5F 30 8F [11:07:43]Write i2c OK [11:07:43]MH_I2C_Read... [11:07:44]*** Cut start [11:07:44]*** Purtial cut [11:07:44]*** Stage 1: CUTSNS_PIN = 1 [11:07:44]Read from MH i2c: 01 [11:07:44]MH_I2C_Read... [11:07:44]*** Stop cut motor [11:07:44]*** Cut end [11:07:44]Read from MH i2c: 01 07 00 [11:07:44]MH_I2C_Read... [11:07:44]Read from MH i2c: 01 07 00 5F 30 00 00 00 00 00 FF 0F A4 [11:07:44]process_action print_text done [11:07:44]requested_data is exist [11:07:44]produce_requested_data [11:07:44]requested_item fm.sn is exist - process it [11:07:44]wFMCommunicate request_size=4 [11:07:44]MH_SAM_APDU [11:07:44]CAPDU: 80 11 00 00 [11:07:44]Write to MH i2c: E2 08 00 60 30 80 11 00 00 00 00 00 00 0A [11:07:44]Write i2c OK [11:07:44]MH_I2C_Read... [11:07:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:44]Read from MH i2c: E2 [11:07:44]MH_I2C_Read... [11:07:44]Read from MH i2c: E2 17 00 [11:07:44]MH_I2C_Read... [11:07:44]Read from MH i2c: E2 17 00 60 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 5E [11:07:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [11:07:44]wFMCommunicate OK [11:07:44]requested_item fd.num is exist - process it [11:07:44]SAM_PROTO_GetFieldsCounters [11:07:44]wFMCommunicate request_size=4 [11:07:44]MH_SAM_APDU [11:07:44]CAPDU: 80 13 00 00 [11:07:44]Write to MH i2c: E2 08 00 61 30 80 13 00 00 00 00 00 00 0D [11:07:44]Write i2c OK [11:07:44]MH_I2C_Read... [11:07:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:07:44]Read from MH i2c: E2 [11:07:44]MH_I2C_Read... [11:07:44]Read from MH i2c: E2 62 00 [11:07:44]MH_I2C_Read... [11:07:44]Read from MH i2c: E2 62 00 61 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 1F A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [11:07:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 1F A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:07:44]wFMCommunicate OK [11:07:44]SAM_PROTO_GetFieldsCounters done [11:07:44]requested_item shift.num is exist - process it [11:07:44]requested_item shift.opened is exist - process it [11:07:44]req_shift_opened [11:07:44]FM_GetShiftState [11:07:44]SAM_PROTO_GetShiftState [11:07:44]wFMCommunicate request_size=4 [11:07:44]MH_SAM_APDU [11:07:44]CAPDU: 80 13 01 00 [11:07:44]Write to MH i2c: E2 08 00 62 30 80 13 01 00 00 00 00 00 0F [11:07:44]Write i2c OK [11:07:44]MH_I2C_Read... [11:07:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:44]Read from MH i2c: E2 [11:07:44]MH_I2C_Read... [11:07:44]Read from MH i2c: E2 0E 00 [11:07:44]MH_I2C_Read... [11:07:44]Read from MH i2c: E2 0E 00 62 30 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 43 [11:07:44]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [11:07:44]wFMCommunicate OK [11:07:44]SAM_PROTO_GetShiftState done [11:07:44]FM_GetShiftState done [11:07:44]req_shift_opened done [11:07:44]requested_item shift.open_date is exist - process it [11:07:44]req_shift_open_date [11:07:44]req_shift_open_date done [11:07:44]produce_requested_data done [11:07:44]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108575,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [11:07:44]process_action_free print_text [11:07:44]json_value_free [11:07:44]json_value_free done [11:07:44]process_json_proto returns [11:07:44]Send response to host [11:07:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108575,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [11:07:44]free response buf [11:07:44]execute_script done [11:07:44]execute_script returns [11:07:44]free content buf [11:07:44]Sock 9.Close socket [11:07:44]Sock 9.Thread stoped [11:07:45]OFD Sender: No OFD packet to send [11:07:50]OFD Sender: No OFD packet to send [11:07:55]OFD Sender: No OFD packet to send [11:08:00]OFD Sender: No OFD packet to send [11:08:05]OFD Sender: No OFD packet to send [11:08:10]OFD Sender: No OFD packet to send [11:08:15]OFD Sender: No OFD packet to send [11:08:20]OFD Sender: No OFD packet to send [11:08:25]OFD Sender: No OFD packet to send [11:08:30]OFD Sender: No OFD packet to send [11:08:35]OFD Sender: No OFD packet to send [11:08:40]OFD Sender: No OFD packet to send [11:08:45]OFD Sender: No OFD packet to send [11:08:50]OFD Sender: No OFD packet to send [11:08:55]OFD Sender: No OFD packet to send [11:09:00]OFD Sender: No OFD packet to send [11:09:05]OFD Sender: No OFD packet to send [11:09:10]OFD Sender: No OFD packet to send [11:09:15]OFD Sender: No OFD packet to send [11:09:20]OFD Sender: No OFD packet to send [11:09:25]OFD Sender: No OFD packet to send [11:09:30]OFD Sender: No OFD packet to send [11:09:35]OFD Sender: No OFD packet to send [11:09:40]OFD Sender: No OFD packet to send [11:09:45]OFD Sender: No OFD packet to send [11:09:47]accept exits with 8 [11:09:47]New connection [11:09:47]New thread 3067198820 created [11:09:47]Thread 3067342180 joined [11:09:47]Waiting for new connection... [11:09:47] Sock 8.Parse request [11:09:47]Sock 8.Check first char [11:09:47]Sock 8.First char is OK [11:09:47]request: POST /json_proto HTTP/1.0 [11:09:47]Method: POST [11:09:47]URL: /json_proto [11:09:47]Method is POST - this is cgi request [11:09:47]url: /json_proto [11:09:47]query_string will be loaded in cgi processing [11:09:47]execute_cgi json_proto POST (null) [11:09:47]execute_cgi path=json_proto method=POST [11:09:47]POST find Content-Length [11:09:47]Host: 172.17.32.69:8080 [11:09:47]Content-Length: 678 [11:09:47]Content-Type: application/json [11:09:47] [11:09:47]POST finish read [11:09:47]Found Content-Length = 678 [11:09:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 6.470, "sum" : 400.49, "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" ] } } [11:09:47]execute_script... [11:09:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 6.470, "sum" : 400.49, "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" ] } } [11:09:47]POST & json_proto [11:09:47]process_json_proto [11:09:47]json parsed OK: [11:09:47]protocol is kg_v1.0 [11:09:47]action value=close_receipt [11:09:47]process_action close_receipt [11:09:47]cmd_close_receipt [11:09:47]MH_GetDate [11:09:47]Write to MH i2c: F0 00 00 63 30 82 [11:09:47]Write i2c OK [11:09:47]MH_I2C_Read... [11:09:47]Read from MH i2c: F0 [11:09:47]MH_I2C_Read... [11:09:47]Read from MH i2c: F0 09 00 [11:09:47]MH_I2C_Read... [11:09:47]Read from MH i2c: F0 09 00 63 30 00 7F 2C F4 65 D5 0F D3 65 AB [11:09:47]GetLastDocTimeStamp 1710500621 [11:09:47]current date 1710500991 [11:09:47]FM_GetShiftState [11:09:47]SAM_PROTO_GetShiftState [11:09:47]wFMCommunicate request_size=4 [11:09:47]MH_SAM_APDU [11:09:47]CAPDU: 80 13 01 00 [11:09:47]Write to MH i2c: E2 08 00 64 30 80 13 01 00 00 00 00 00 11 [11:09:47]Write i2c OK [11:09:47]MH_I2C_Read... [11:09:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:47]Read from MH i2c: E2 [11:09:47]MH_I2C_Read... [11:09:47]Read from MH i2c: E2 0E 00 [11:09:47]MH_I2C_Read... [11:09:47]Read from MH i2c: E2 0E 00 64 30 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 45 [11:09:47]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [11:09:47]wFMCommunicate OK [11:09:47]SAM_PROTO_GetShiftState done [11:09:47]FM_GetShiftState done [11:09:47]opened in 1710461757 [11:09:47]opened+sec_in_day 1710548157 [11:09:47]quantity*price = 40049 [11:09:47]sum+1 = 40050 [11:09:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 99 15.03.2024 11:09 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108576 ФПД: 154989052631431 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T110951&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108576&fm=154989052631431&tin=02508201610067®Number=0000000000091911&sum=40000 [11:09:49]StoreToDocumentArchive [11:09:49]shift 320 fd 108576 [11:09:49]save to /storage/0320/doc_00108576 [11:09:49]save last doc name /storage/0320/doc_00108576 to /storage/kkm_last_doc_name [11:09:49]save OK [11:09:49]Clear old archive folders... [11:09:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:09:49]tlvbuf is 000EE6C0 [11:09:49]SAM_PROTO_ClearQueue [11:09:49]wFMCommunicate request_size=4 [11:09:49]MH_SAM_APDU [11:09:49]CAPDU: 80 09 00 00 [11:09:49]Write to MH i2c: E2 08 00 71 30 80 09 00 00 00 00 00 00 13 [11:09:49]Write i2c OK [11:09:49]MH_I2C_Read... [11:09:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:09:49]Read from MH i2c: E2 [11:09:49]MH_I2C_Read... [11:09:49]Read from MH i2c: E2 03 00 [11:09:49]MH_I2C_Read... [11:09:49]Read from MH i2c: E2 03 00 71 30 00 90 00 15 [11:09:49]RAPDU: 90 00 [11:09:49]wFMCommunicate OK [11:09:49]SAM_PROTO_ClearQueue done [11:09:49]KKMCreateOFDPacket [11:09:49]OFDProtocolAddRootSTLVToBuf [11:09:49]FM_MakeSignedData [11:09:49]FM_MakeSignedData [11:09:49]SAM_PROTO_SignData [11:09:49]wFMCommunicate request_size=4 [11:09:49]MH_SAM_APDU [11:09:49]CAPDU: 80 0D 01 02 [11:09:49]Write to MH i2c: E2 08 00 72 30 80 0D 01 02 00 00 00 00 1B [11:09:49]Write i2c OK [11:09:49]MH_I2C_Read... [11:09:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:09:49]Read from MH i2c: E2 [11:09:49]MH_I2C_Read... [11:09:49]Read from MH i2c: E2 03 00 [11:09:49]MH_I2C_Read... [11:09:49]Read from MH i2c: E2 03 00 72 30 00 90 00 16 [11:09:49]RAPDU: 90 00 [11:09:49]wFMCommunicate OK [11:09:49]wFMCommunicate request_size=255 [11:09:49]MH_SAM_APDU [11:09:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 63 00 00 00 F4 03 04 00 7F 2C F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 20 A8 01 00 35 04 06 00 8C [11:09:49]Write to MH i2c: E2 02 01 73 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 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 63 00 00 00 F4 03 04 00 7F 2C F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 20 A8 01 00 35 04 06 00 8C 00 00 99 [11:09:49]Write i2c OK [11:09:49]MH_I2C_Read... [11:09:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:49]Read from MH i2c: E2 [11:09:49]MH_I2C_Read... [11:09:49]Read from MH i2c: E2 03 00 [11:09:49]MH_I2C_Read... [11:09:49]Read from MH i2c: E2 03 00 73 30 00 90 00 17 [11:09:49]RAPDU: 90 00 [11:09:49]wFMCommunicate OK [11:09:49]wFMCommunicate request_size=10 [11:09:49]MH_SAM_APDU [11:09:49]CAPDU: 80 0D 02 02 05 F6 33 6D 19 87 [11:09:49]Write to MH i2c: E2 0D 00 74 30 80 0D 02 02 05 00 F6 33 6D 19 87 00 00 5E [11:09:49]Write i2c OK [11:09:49]MH_I2C_Read... [11:09:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:49]Read from MH i2c: E2 [11:09:49]MH_I2C_Read... [11:09:49]Read from MH i2c: E2 03 00 [11:09:49]MH_I2C_Read... [11:09:49]Read from MH i2c: E2 03 00 74 30 00 90 00 18 [11:09:49]RAPDU: 90 00 [11:09:49]wFMCommunicate OK [11:09:49]wFMCommunicate request_size=4 [11:09:49]MH_SAM_APDU [11:09:49]CAPDU: 80 0D 03 02 [11:09:49]Write to MH i2c: E2 08 00 75 30 80 0D 03 02 00 00 00 00 20 [11:09:49]Write i2c OK [11:09:49]MH_I2C_Read... [11:09:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:09:49]Read from MH i2c: E2 [11:09:49]MH_I2C_Read... [11:09:49]Read from MH i2c: E2 0B 00 [11:09:49]MH_I2C_Read... [11:09:49]Read from MH i2c: E2 0B 00 75 30 00 B7 7D 82 BA D2 D8 58 35 90 00 C8 [11:09:49]RAPDU: B7 7D 82 BA D2 D8 58 35 90 00 [11:09:49]wFMCommunicate OK [11:09:49]SAM_PROTO_SignData done [11:09:49]FM_MakeSignedData done [11:09:49]CreateOFDProtocolMessage [11:09:49]wFMCommunicate request_size=4 [11:09:49]MH_SAM_APDU [11:09:49]CAPDU: 80 11 00 00 [11:09:49]Write to MH i2c: E2 08 00 76 30 80 11 00 00 00 00 00 00 20 [11:09:49]Write i2c OK [11:09:49]MH_I2C_Read... [11:09:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:49]Read from MH i2c: E2 [11:09:49]MH_I2C_Read... [11:09:49]Read from MH i2c: E2 17 00 [11:09:49]MH_I2C_Read... [11:09:49]Read from MH i2c: E2 17 00 76 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 74 [11:09:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [11:09:49]wFMCommunicate OK [11:09:49]CreateOFDProtocolMessage done [11:09:49]OFDSenderStorePacket 108576 [11:09:49]StoreOFDPacket docnum=108576 [11:09:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 51 97 07 01 EB 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 63 00 00 00 F4 03 04 00 7F 2C F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 20 A8 01 00 35 04 06 00 8C F6 33 6D 19 87 B7 7D 82 BA D2 D8 58 35 [11:09:49]CheckFolder [11:09:49]dirname=/storage/ofd_packets [11:09:49]CheckFolder done [11:09:49]ProducePacketName [11:09:49]name=ofd_packets/00108576 [11:09:49]NVStorageSaveData ofd_packets/00108576 [11:09:49]File name is /storage/ofd_packets/00108576 [11:09:49]Write 301 bytes [11:09:49]NVStorageSaveData done [11:09:49]OFDSenderStorePacket done [11:09:49]KKMCreateOFDPacket done [11:09:49]NVStorageSaveData kkm_last_timestamp [11:09:49]File name is /storage/kkm_last_timestamp [11:09:49]Write 4 bytes [11:09:49]NVStorageSaveData done [11:09:49]ExternCall_PrintAddStr [11:09:49]wPrintStart [11:09:49]Write to MH i2c: 01 00 00 77 30 A7 [11:09:49]Write i2c OK [11:09:49]MH_I2C_Read... [11:09:49]Read from MH i2c: 01 [11:09:49]MH_I2C_Read... [11:09:49]Read from MH i2c: 01 07 00 [11:09:49]MH_I2C_Read... [11:09:49]Read from MH i2c: 01 07 00 77 30 00 00 00 00 00 FF 0F BC [11:09:49]RasterBufferAndPrint [11:09:49]line Счет N : (1)1040754 [11:09:49]line ИНН: 02508201610067 [11:09:49]line Контрольно-Кассовый Чек [11:09:49]line ПРОДАЖА [11:09:49]line ТРК (МРК, ГНК) : 63 [11:09:49]line Товар: 2710124130 [11:09:49]line Аи-92-К-5 [11:09:49]line 6.470 * 61.90 [11:09:49]line = 400.49 [11:09:49]line НДС 12% НСП 1% [11:09:49]line > о реализуемом товаре [11:09:49]line ОКРУГЛЕНИЕ: -0.49 [11:09:49]line ИТОГО: 400.00 [11:09:49]line Внесено: 400.00 [11:09:49]line СДАЧА: 0.00 [11:09:49]line НСП 1% : 3.54 [11:09:49]line НДС 12% : 42.53 [11:09:49]line Наличными: 400.00 [11:09:49]line Безнал.: 0.00 [11:09:49]line Место: АЗС № 15 "Партнер Нефть" [11:09:49]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [11:09:49]line СНО: Общий режим [11:09:49]line Чек 99 15.03.2024 11:09 [11:09:49]line Смена: 320 ФФД: 1.0 [11:09:49]line ЗНМ: 0300000266 [11:09:49]line РНМ: 0000000000091911 [11:09:49]line Версия ККМ: 001 [11:09:49]line ФМ: 0000000000871818 [11:09:49]line ФД: 108576 [11:09:49]line ФПД: 154989052631431 [11:09:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T110951&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108576&fm=154989052631431&tin=02508201610067®Number=0000000000091911&sum=40000 [11:09:49]OFD Sender: Processing packet 108576 [packets to send 29, broken 28] [11:09:49]ProducePacketName [11:09:49]name=ofd_packets/00108576 [11:09:49]OFD Sender: To server: pG, [11:09:49]CommunicateWithHost lk.salyk.kg:30040 [11:09:49]ConnectInit lk.salyk.kg [11:09:49]written 0, free lines is 4095 [11:09:50]Connected sock=10 [11:09: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 31 38 0F 01 00 00 51 97 07 01 EB 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 63 00 00 00 F4 03 04 00 7F 2C F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 20 A8 01 00 35 04 06 00 8C F6 33 6D 19 87 B7 7D 82 BA D2 D8 58 35 [11:09: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 31 38 4F 00 00 00 78 12 47 00 D3 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 20 A8 01 00 F4 03 04 00 20 D8 F3 65 B6 04 01 00 00 13 A8 B8 65 AB C1 23 35 [11:09:50]CommunicateWithHost err = 0 [11:09:50]CheckOFDResponse [11:09:50]1017 (14) - 77093643461234 [11:09:50]1041 (16) - 0000000000871818 [11:09:50]1040 (4) - 108576 [11:09:50]1012 (4) - 15.03.2024 05:09 [11:09:50]1206 (1) - 0 [11:09:50]OFD Sender: Remove packet 108576 [11:09:50]ProducePacketName [11:09:50]name=ofd_packets/00108576 [11:09:50]NVStorageDeleteData [11:09:50]Write to MH i2c: 01 00 00 A2 30 D2 [11:09:50]Write i2c OK [11:09:50]MH_I2C_Read... [11:09:50]Read from MH i2c: 01 [11:09:50]MH_I2C_Read... [11:09:50]Read from MH i2c: 01 07 00 [11:09:50]MH_I2C_Read... [11:09:50]Read from MH i2c: 01 07 00 A2 30 00 00 00 00 00 E4 0C C9 [11:09:50]RasterBufferAndPrint [11:09:50]line [11:09:50]line [11:09:50]line [11:09:50]line [11:09:50]line [11:09:50]written 0, free lines is 3306 [11:09:50]MH_Cut [11:09:50]Write to MH i2c: D1 01 00 A9 30 01 AB [11:09:50]Write i2c OK [11:09:50]MH_I2C_Read... [11:09:50]Read from MH i2c: D1 [11:09:50]MH_I2C_Read... [11:09:50]Read from MH i2c: D1 01 00 [11:09:50]MH_I2C_Read... [11:09:50]Read from MH i2c: D1 01 00 A9 30 00 AA [11:09:50]Write to MH i2c: 01 00 00 AA 30 DA [11:09:50]Write i2c OK [11:09:50]MH_I2C_Read... [11:09:50]OFD Sender: No OFD packet to send [11:09:51]*** Cut start [11:09:51]*** Purtial cut [11:09:51]*** Stage 1: CUTSNS_PIN = 1 [11:09:51]Read from MH i2c: 01 [11:09:51]MH_I2C_Read... [11:09:51]*** Stop cut motor [11:09:51]*** Cut end [11:09:51]Read from MH i2c: 01 07 00 [11:09:51]MH_I2C_Read... [11:09:51]Read from MH i2c: 01 07 00 AA 30 00 00 00 00 00 FF 0F EF [11:09:51]process_action close_receipt done [11:09:51]requested_data is exist [11:09:51]produce_requested_data [11:09:51]requested_item fm.sn is exist - process it [11:09:51]wFMCommunicate request_size=4 [11:09:51]MH_SAM_APDU [11:09:51]CAPDU: 80 11 00 00 [11:09:51]Write to MH i2c: E2 08 00 AB 30 80 11 00 00 00 00 00 00 55 [11:09:51]Write i2c OK [11:09:51]MH_I2C_Read... [11:09:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:51]Read from MH i2c: E2 [11:09:51]MH_I2C_Read... [11:09:51]Read from MH i2c: E2 17 00 [11:09:51]MH_I2C_Read... [11:09:51]Read from MH i2c: E2 17 00 AB 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 A9 [11:09:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [11:09:51]wFMCommunicate OK [11:09:51]requested_item fd.num is exist - process it [11:09:51]SAM_PROTO_GetFieldsCounters [11:09:51]wFMCommunicate request_size=4 [11:09:51]MH_SAM_APDU [11:09:51]CAPDU: 80 13 00 00 [11:09:51]Write to MH i2c: E2 08 00 AC 30 80 13 00 00 00 00 00 00 58 [11:09:51]Write i2c OK [11:09:51]MH_I2C_Read... [11:09:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:09:51]Read from MH i2c: E2 [11:09:51]MH_I2C_Read... [11:09:51]Read from MH i2c: E2 62 00 [11:09:51]MH_I2C_Read... [11:09:51]Read from MH i2c: E2 62 00 AC 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 20 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [11:09: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 20 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:09:51]wFMCommunicate OK [11:09:51]SAM_PROTO_GetFieldsCounters done [11:09:51]requested_item shift.num is exist - process it [11:09:51]requested_item shift.opened is exist - process it [11:09:51]req_shift_opened [11:09:51]FM_GetShiftState [11:09:51]SAM_PROTO_GetShiftState [11:09:51]wFMCommunicate request_size=4 [11:09:51]MH_SAM_APDU [11:09:51]CAPDU: 80 13 01 00 [11:09:51]Write to MH i2c: E2 08 00 AD 30 80 13 01 00 00 00 00 00 5A [11:09:51]Write i2c OK [11:09:51]MH_I2C_Read... [11:09:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:51]Read from MH i2c: E2 [11:09:51]MH_I2C_Read... [11:09:51]Read from MH i2c: E2 0E 00 [11:09:51]MH_I2C_Read... [11:09:51]Read from MH i2c: E2 0E 00 AD 30 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 8E [11:09:51]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [11:09:51]wFMCommunicate OK [11:09:51]SAM_PROTO_GetShiftState done [11:09:51]FM_GetShiftState done [11:09:51]req_shift_opened done [11:09:51]requested_item shift.open_date is exist - process it [11:09:51]req_shift_open_date [11:09:51]req_shift_open_date done [11:09:51]produce_requested_data done [11:09:51]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108576,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [11:09:51]process_action_free close_receipt [11:09:51]json_value_free [11:09:51]json_value_free done [11:09:51]process_json_proto returns [11:09:51]Send response to host [11:09:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108576,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [11:09:51]free response buf [11:09:51]execute_script done [11:09:51]execute_script returns [11:09:51]free content buf [11:09:51]Sock 8.Close socket [11:09:51]Sock 8.Thread stoped [11:09:55]OFD Sender: No OFD packet to send [11:10:00]OFD Sender: No OFD packet to send [11:10:05]OFD Sender: No OFD packet to send [11:10:10]OFD Sender: No OFD packet to send [11:10:15]OFD Sender: No OFD packet to send [11:10:20]OFD Sender: No OFD packet to send [11:10:25]OFD Sender: No OFD packet to send [11:10:30]OFD Sender: No OFD packet to send [11:10:35]OFD Sender: No OFD packet to send [11:10:40]OFD Sender: No OFD packet to send [11:10:45]OFD Sender: No OFD packet to send [11:10:50]OFD Sender: No OFD packet to send [11:10:55]OFD Sender: No OFD packet to send [11:11:00]OFD Sender: No OFD packet to send [11:11:05]OFD Sender: No OFD packet to send [11:11:10]OFD Sender: No OFD packet to send [11:11:15]OFD Sender: No OFD packet to send [11:11:20]OFD Sender: No OFD packet to send [11:11:25]OFD Sender: No OFD packet to send [11:11:30]OFD Sender: No OFD packet to send [11:11:35]OFD Sender: No OFD packet to send [11:11:40]OFD Sender: No OFD packet to send [11:11:45]OFD Sender: No OFD packet to send [11:11:50]OFD Sender: No OFD packet to send [11:11:55]OFD Sender: No OFD packet to send [11:12:00]OFD Sender: No OFD packet to send [11:12:05]OFD Sender: No OFD packet to send [11:12:10]OFD Sender: No OFD packet to send [11:12:15]OFD Sender: No OFD packet to send [11:12:20]OFD Sender: No OFD packet to send [11:12:25]OFD Sender: No OFD packet to send [11:12:26]accept exits with 9 [11:12:26]New connection [11:12:26]New thread 3067342180 created [11:12:26]Thread 3067198820 joined [11:12:26]Waiting for new connection... [11:12:26] Sock 9.Parse request [11:12:26]Sock 9.Check first char [11:12:26]Sock 9.First char is OK [11:12:26]request: POST /json_proto HTTP/1.0 [11:12:26]Method: POST [11:12:26]URL: /json_proto [11:12:26]Method is POST - this is cgi request [11:12:26]url: /json_proto [11:12:26]query_string will be loaded in cgi processing [11:12:26]execute_cgi json_proto POST (null) [11:12:26]execute_cgi path=json_proto method=POST [11:12:26]POST find Content-Length [11:12:26]Host: 172.17.32.69:8080 [11:12:26]Content-Length: 683 [11:12:26]Content-Type: application/json [11:12:26] [11:12:26]POST finish read [11:12:26]Found Content-Length = 683 [11:12:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:26]execute_script... [11:12:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:26]POST & json_proto [11:12:26]process_json_proto [11:12:26]json parsed OK: [11:12:26]protocol is kg_v1.0 [11:12:26]action value=close_receipt [11:12:26]process_action close_receipt [11:12:26]cmd_close_receipt [11:12:26]MH_GetDate [11:12:26]Write to MH i2c: F0 00 00 AE 30 CD [11:12:26]Write i2c OK [11:12:26]MH_I2C_Read... [11:12:26]Read from MH i2c: F0 [11:12:26]MH_I2C_Read... [11:12:26]Read from MH i2c: F0 09 00 [11:12:26]MH_I2C_Read... [11:12:26]Read from MH i2c: F0 09 00 AE 30 00 1E 2D F4 65 D5 0F D3 65 96 [11:12:26]GetLastDocTimeStamp 1710500991 [11:12:26]current date 1710501150 [11:12:26]FM_GetShiftState [11:12:26]SAM_PROTO_GetShiftState [11:12:26]wFMCommunicate request_size=4 [11:12:26]MH_SAM_APDU [11:12:26]CAPDU: 80 13 01 00 [11:12:26]Write to MH i2c: E2 08 00 AF 30 80 13 01 00 00 00 00 00 5C [11:12:26]Write i2c OK [11:12:26]MH_I2C_Read... [11:12:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:26]Read from MH i2c: E2 [11:12:26]MH_I2C_Read... [11:12:26]Read from MH i2c: E2 0E 00 [11:12:26]MH_I2C_Read... [11:12:26]Read from MH i2c: E2 0E 00 AF 30 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 90 [11:12:26]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [11:12:26]wFMCommunicate OK [11:12:26]SAM_PROTO_GetShiftState done [11:12:26]FM_GetShiftState done [11:12:26]opened in 1710461757 [11:12:26]opened+sec_in_day 1710548157 [11:12:26]quantity*price = 100030 [11:12:26]sum+1 = 100031 [11:12:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 100 15.03.2024 11:12 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108577 ФПД: 229854318733687 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T111230&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108577&fm=229854318733687&tin=02508201610067®Number=0000000000091911&sum=100000 [11:12:28]StoreToDocumentArchive [11:12:28]shift 320 fd 108577 [11:12:28]save to /storage/0320/doc_00108577 [11:12:28]save last doc name /storage/0320/doc_00108577 to /storage/kkm_last_doc_name [11:12:28]save OK [11:12:28]Clear old archive folders... [11:12:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:12:28]tlvbuf is 00168BE0 [11:12:28]SAM_PROTO_ClearQueue [11:12:28]wFMCommunicate request_size=4 [11:12:28]MH_SAM_APDU [11:12:28]CAPDU: 80 09 00 00 [11:12:28]Write to MH i2c: E2 08 00 BC 30 80 09 00 00 00 00 00 00 5E [11:12:28]Write i2c OK [11:12:28]MH_I2C_Read... [11:12:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:28]Read from MH i2c: E2 [11:12:28]MH_I2C_Read... [11:12:28]Read from MH i2c: E2 03 00 [11:12:28]MH_I2C_Read... [11:12:28]Read from MH i2c: E2 03 00 BC 30 00 90 00 60 [11:12:28]RAPDU: 90 00 [11:12:28]wFMCommunicate OK [11:12:28]SAM_PROTO_ClearQueue done [11:12:28]KKMCreateOFDPacket [11:12:28]OFDProtocolAddRootSTLVToBuf [11:12:28]FM_MakeSignedData [11:12:28]FM_MakeSignedData [11:12:28]SAM_PROTO_SignData [11:12:28]wFMCommunicate request_size=4 [11:12:28]MH_SAM_APDU [11:12:28]CAPDU: 80 0D 01 02 [11:12:28]Write to MH i2c: E2 08 00 BD 30 80 0D 01 02 00 00 00 00 66 [11:12:28]Write i2c OK [11:12:28]MH_I2C_Read... [11:12:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:28]Read from MH i2c: E2 [11:12:28]MH_I2C_Read... [11:12:28]Read from MH i2c: E2 03 00 [11:12:28]MH_I2C_Read... [11:12:28]Read from MH i2c: E2 03 00 BD 30 00 90 00 61 [11:12:28]RAPDU: 90 00 [11:12:28]wFMCommunicate OK [11:12:28]wFMCommunicate request_size=255 [11:12:28]MH_SAM_APDU [11:12:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 64 00 00 00 F4 03 04 00 1E 2D F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 21 A8 01 00 35 04 06 00 D1 [11:12:28]Write to MH i2c: E2 02 01 BE 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 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 64 00 00 00 F4 03 04 00 1E 2D F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 21 A8 01 00 35 04 06 00 D1 00 00 A9 [11:12:28]Write i2c OK [11:12:28]MH_I2C_Read... [11:12:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:28]Read from MH i2c: E2 [11:12:28]MH_I2C_Read... [11:12:28]Read from MH i2c: E2 03 00 [11:12:28]MH_I2C_Read... [11:12:28]Read from MH i2c: E2 03 00 BE 30 00 90 00 62 [11:12:28]RAPDU: 90 00 [11:12:28]wFMCommunicate OK [11:12:28]wFMCommunicate request_size=10 [11:12:28]MH_SAM_APDU [11:12:28]CAPDU: 80 0D 02 02 05 0D 21 04 A9 77 [11:12:28]Write to MH i2c: E2 0D 00 BF 30 80 0D 02 02 05 00 0D 21 04 A9 77 00 00 C5 [11:12:28]Write i2c OK [11:12:28]MH_I2C_Read... [11:12:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:28]Read from MH i2c: E2 [11:12:28]MH_I2C_Read... [11:12:28]Read from MH i2c: E2 03 00 [11:12:28]MH_I2C_Read... [11:12:28]Read from MH i2c: E2 03 00 BF 30 00 90 00 63 [11:12:28]RAPDU: 90 00 [11:12:28]wFMCommunicate OK [11:12:28]wFMCommunicate request_size=4 [11:12:28]MH_SAM_APDU [11:12:28]CAPDU: 80 0D 03 02 [11:12:28]Write to MH i2c: E2 08 00 C0 30 80 0D 03 02 00 00 00 00 6B [11:12:28]Write i2c OK [11:12:28]MH_I2C_Read... [11:12:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:28]Read from MH i2c: E2 [11:12:28]MH_I2C_Read... [11:12:28]Read from MH i2c: E2 0B 00 [11:12:28]MH_I2C_Read... [11:12:28]Read from MH i2c: E2 0B 00 C0 30 00 D9 50 C9 E8 76 B6 76 49 90 00 31 [11:12:28]RAPDU: D9 50 C9 E8 76 B6 76 49 90 00 [11:12:28]wFMCommunicate OK [11:12:28]SAM_PROTO_SignData done [11:12:28]FM_MakeSignedData done [11:12:28]CreateOFDProtocolMessage [11:12:28]wFMCommunicate request_size=4 [11:12:28]MH_SAM_APDU [11:12:28]CAPDU: 80 11 00 00 [11:12:28]Write to MH i2c: E2 08 00 C1 30 80 11 00 00 00 00 00 00 6B [11:12:28]Write i2c OK [11:12:28]MH_I2C_Read... [11:12:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:28]Read from MH i2c: E2 [11:12:28]MH_I2C_Read... [11:12:28]Read from MH i2c: E2 17 00 [11:12:28]MH_I2C_Read... [11:12:28]Read from MH i2c: E2 17 00 C1 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 BF [11:12:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [11:12:28]wFMCommunicate OK [11:12:28]CreateOFDProtocolMessage done [11:12:28]OFDSenderStorePacket 108577 [11:12:28]StoreOFDPacket docnum=108577 [11:12:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 E2 E7 07 01 48 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 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 64 00 00 00 F4 03 04 00 1E 2D F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 21 A8 01 00 35 04 06 00 D1 0D 21 04 A9 77 D9 50 C9 E8 76 B6 76 49 [11:12:28]CheckFolder [11:12:28]dirname=/storage/ofd_packets [11:12:28]CheckFolder done [11:12:28]ProducePacketName [11:12:28]name=ofd_packets/00108577 [11:12:28]NVStorageSaveData ofd_packets/00108577 [11:12:28]File name is /storage/ofd_packets/00108577 [11:12:28]Write 301 bytes [11:12:28]NVStorageSaveData done [11:12:28]OFDSenderStorePacket done [11:12:28]KKMCreateOFDPacket done [11:12:28]NVStorageSaveData kkm_last_timestamp [11:12:28]File name is /storage/kkm_last_timestamp [11:12:28]Write 4 bytes [11:12:28]NVStorageSaveData done [11:12:28]ExternCall_PrintAddStr [11:12:28]wPrintStart [11:12:28]Write to MH i2c: 01 00 00 C2 30 F2 [11:12:28]Write i2c OK [11:12:28]MH_I2C_Read... [11:12:28]Read from MH i2c: 01 [11:12:28]MH_I2C_Read... [11:12:28]Read from MH i2c: 01 07 00 [11:12:28]MH_I2C_Read... [11:12:28]Read from MH i2c: 01 07 00 C2 30 00 00 00 00 00 FF 0F 07 [11:12:28]RasterBufferAndPrint [11:12:28]line Счет N : (1)1040755 [11:12:28]line ИНН: 02508201610067 [11:12:28]line Контрольно-Кассовый Чек [11:12:28]line ПРОДАЖА [11:12:28]line ТРК (МРК, ГНК) : 53 [11:12:28]line Товар: 2710124130 [11:12:28]line Аи-92-К-5 [11:12:28]line 16.160 * 61.90 [11:12:28]line = 1000.30 [11:12:28]line НДС 12% НСП 1% [11:12:28]line > о реализуемом товаре [11:12:28]line ОКРУГЛЕНИЕ: -0.30 [11:12:28]line ИТОГО: 1000.00 [11:12:28]line Внесено: 1000.00 [11:12:28]line СДАЧА: 0.00 [11:12:28]line НСП 1% : 8.85 [11:12:28]line НДС 12% : 106.23 [11:12:28]line Наличными: 1000.00 [11:12:28]line Безнал.: 0.00 [11:12:28]line Место: АЗС № 15 "Партнер Нефть" [11:12:28]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [11:12:28]line СНО: Общий режим [11:12:28]line Чек 100 15.03.2024 11:12 [11:12:28]line Смена: 320 ФФД: 1.0 [11:12:28]line ЗНМ: 0300000266 [11:12:28]line РНМ: 0000000000091911 [11:12:28]line Версия ККМ: 001 [11:12:28]line ФМ: 0000000000871818 [11:12:28]line ФД: 108577 [11:12:28]line ФПД: 229854318733687 [11:12:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T111230&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108577&fm=229854318733687&tin=02508201610067®Number=0000000000091911&sum=100000 [11:12:28]OFD Sender: Processing packet 108577 [packets to send 29, broken 28] [11:12:28]ProducePacketName [11:12:28]name=ofd_packets/00108577 [11:12:28]OFD Sender: To server: pG, [11:12:28]CommunicateWithHost lk.salyk.kg:30040 [11:12:28]ConnectInit lk.salyk.kg [11:12:28]written 0, free lines is 4095 [11:12:28]Connected sock=10 [11:12: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 31 38 0F 01 00 00 E2 E7 07 01 48 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 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 64 00 00 00 F4 03 04 00 1E 2D F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 21 A8 01 00 35 04 06 00 D1 0D 21 04 A9 77 D9 50 C9 E8 76 B6 76 49 [11:12: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 31 38 4F 00 00 00 17 9C 47 00 A2 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 21 A8 01 00 F4 03 04 00 BE D8 F3 65 B6 04 01 00 00 62 90 68 69 20 27 86 5E [11:12:29]CommunicateWithHost err = 0 [11:12:29]CheckOFDResponse [11:12:29]1017 (14) - 77093643461234 [11:12:29]1041 (16) - 0000000000871818 [11:12:29]1040 (4) - 108577 [11:12:29]1012 (4) - 15.03.2024 05:12 [11:12:29]1206 (1) - 0 [11:12:29]OFD Sender: Remove packet 108577 [11:12:29]ProducePacketName [11:12:29]name=ofd_packets/00108577 [11:12:29]NVStorageDeleteData [11:12:29]Write to MH i2c: 01 00 00 ED 30 1D [11:12:29]Write i2c OK [11:12:29]MH_I2C_Read... [11:12:29]Read from MH i2c: 01 [11:12:29]MH_I2C_Read... [11:12:29]Read from MH i2c: 01 07 00 [11:12:29]MH_I2C_Read... [11:12:29]Read from MH i2c: 01 07 00 ED 30 00 00 00 00 00 CE 0C FE [11:12:29]RasterBufferAndPrint [11:12:29]line [11:12:29]line [11:12:29]line [11:12:29]line [11:12:29]line [11:12:29]written 0, free lines is 3285 [11:12:29]MH_Cut [11:12:29]Write to MH i2c: D1 01 00 F4 30 01 F6 [11:12:29]Write i2c OK [11:12:29]MH_I2C_Read... [11:12:29]Read from MH i2c: D1 [11:12:29]MH_I2C_Read... [11:12:29]Read from MH i2c: D1 01 00 [11:12:29]MH_I2C_Read... [11:12:29]Read from MH i2c: D1 01 00 F4 30 00 F5 [11:12:29]Write to MH i2c: 01 00 00 F5 30 25 [11:12:29]Write i2c OK [11:12:29]MH_I2C_Read... [11:12:29]OFD Sender: No OFD packet to send [11:12:30]*** Cut start [11:12:30]*** Purtial cut [11:12:30]*** Stage 1: CUTSNS_PIN = 1 [11:12:30]Read from MH i2c: 01 [11:12:30]MH_I2C_Read... [11:12:30]*** Stop cut motor [11:12:30]*** Cut end [11:12:30]Read from MH i2c: 01 07 00 [11:12:30]MH_I2C_Read... [11:12:30]Read from MH i2c: 01 07 00 F5 30 00 00 00 00 00 FF 0F 3A [11:12:30]process_action close_receipt done [11:12:30]requested_data is exist [11:12:30]produce_requested_data [11:12:30]requested_item fm.sn is exist - process it [11:12:30]wFMCommunicate request_size=4 [11:12:30]MH_SAM_APDU [11:12:30]CAPDU: 80 11 00 00 [11:12:30]Write to MH i2c: E2 08 00 F6 30 80 11 00 00 00 00 00 00 A0 [11:12:30]Write i2c OK [11:12:30]MH_I2C_Read... [11:12:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:30]Read from MH i2c: E2 [11:12:30]MH_I2C_Read... [11:12:30]Read from MH i2c: E2 17 00 [11:12:30]MH_I2C_Read... [11:12:30]Read from MH i2c: E2 17 00 F6 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 F4 [11:12:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [11:12:30]wFMCommunicate OK [11:12:30]requested_item fd.num is exist - process it [11:12:30]SAM_PROTO_GetFieldsCounters [11:12:30]wFMCommunicate request_size=4 [11:12:30]MH_SAM_APDU [11:12:30]CAPDU: 80 13 00 00 [11:12:30]Write to MH i2c: E2 08 00 F7 30 80 13 00 00 00 00 00 00 A3 [11:12:30]Write i2c OK [11:12:30]MH_I2C_Read... [11:12:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:30]Read from MH i2c: E2 [11:12:30]MH_I2C_Read... [11:12:30]Read from MH i2c: E2 62 00 [11:12:30]MH_I2C_Read... [11:12:30]Read from MH i2c: E2 62 00 F7 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 21 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [11:12:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 21 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:12:30]wFMCommunicate OK [11:12:30]SAM_PROTO_GetFieldsCounters done [11:12:30]requested_item shift.num is exist - process it [11:12:30]requested_item shift.opened is exist - process it [11:12:30]req_shift_opened [11:12:30]FM_GetShiftState [11:12:30]SAM_PROTO_GetShiftState [11:12:30]wFMCommunicate request_size=4 [11:12:30]MH_SAM_APDU [11:12:30]CAPDU: 80 13 01 00 [11:12:30]Write to MH i2c: E2 08 00 F8 30 80 13 01 00 00 00 00 00 A5 [11:12:30]Write i2c OK [11:12:30]MH_I2C_Read... [11:12:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:30]Read from MH i2c: E2 [11:12:30]MH_I2C_Read... [11:12:30]Read from MH i2c: E2 0E 00 [11:12:30]MH_I2C_Read... [11:12:30]Read from MH i2c: E2 0E 00 F8 30 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 D9 [11:12:30]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [11:12:30]wFMCommunicate OK [11:12:30]SAM_PROTO_GetShiftState done [11:12:30]FM_GetShiftState done [11:12:30]req_shift_opened done [11:12:30]requested_item shift.open_date is exist - process it [11:12:30]req_shift_open_date [11:12:30]req_shift_open_date done [11:12:30]produce_requested_data done [11:12:30]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108577,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [11:12:30]process_action_free close_receipt [11:12:30]json_value_free [11:12:30]json_value_free done [11:12:30]process_json_proto returns [11:12:30]Send response to host [11:12:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108577,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [11:12:30]free response buf [11:12:30]execute_script done [11:12:30]execute_script returns [11:12:30]free content buf [11:12:30]Sock 9.Close socket [11:12:30]Sock 9.Thread stoped [11:12:34]OFD Sender: No OFD packet to send [11:12:39]OFD Sender: No OFD packet to send [11:12:44]OFD Sender: No OFD packet to send [11:12:49]OFD Sender: No OFD packet to send [11:12:54]OFD Sender: No OFD packet to send [11:12:59]OFD Sender: No OFD packet to send [11:13:04]OFD Sender: No OFD packet to send [11:13:09]OFD Sender: No OFD packet to send [11:13:14]OFD Sender: No OFD packet to send [11:13:19]OFD Sender: No OFD packet to send [11:13:24]OFD Sender: No OFD packet to send [11:13:29]OFD Sender: No OFD packet to send [11:13:34]OFD Sender: No OFD packet to send [11:13:39]OFD Sender: No OFD packet to send [11:13:44]OFD Sender: No OFD packet to send [11:13:49]OFD Sender: No OFD packet to send [11:13:54]OFD Sender: No OFD packet to send [11:13:59]OFD Sender: No OFD packet to send [11:14:04]OFD Sender: No OFD packet to send [11:14:09]OFD Sender: No OFD packet to send [11:14:14]OFD Sender: No OFD packet to send [11:14:19]OFD Sender: No OFD packet to send [11:14:24]OFD Sender: No OFD packet to send [11:14:29]OFD Sender: No OFD packet to send [11:14:34]OFD Sender: No OFD packet to send [11:14:39]OFD Sender: No OFD packet to send [11:14:44]OFD Sender: No OFD packet to send [11:14:49]OFD Sender: No OFD packet to send [11:14:54]OFD Sender: No OFD packet to send [11:14:59]OFD Sender: No OFD packet to send [11:15:04]OFD Sender: No OFD packet to send [11:15:09]OFD Sender: No OFD packet to send [11:15:14]OFD Sender: No OFD packet to send [11:15:19]OFD Sender: No OFD packet to send [11:15:24]OFD Sender: No OFD packet to send [11:15:29]OFD Sender: No OFD packet to send [11:15:34]OFD Sender: No OFD packet to send [11:15:39]OFD Sender: No OFD packet to send [11:15:44]OFD Sender: No OFD packet to send [11:15:49]OFD Sender: No OFD packet to send [11:15:54]OFD Sender: No OFD packet to send [11:15:59]OFD Sender: No OFD packet to send [11:16:04]OFD Sender: No OFD packet to send [11:16:09]OFD Sender: No OFD packet to send [11:16:14]OFD Sender: No OFD packet to send [11:16:19]OFD Sender: No OFD packet to send [11:16:24]OFD Sender: No OFD packet to send [11:16:29]OFD Sender: No OFD packet to send [11:16:34]OFD Sender: No OFD packet to send [11:16:39]OFD Sender: No OFD packet to send [11:16:44]OFD Sender: No OFD packet to send [11:16:49]OFD Sender: No OFD packet to send [11:16:54]OFD Sender: No OFD packet to send [11:16:59]OFD Sender: No OFD packet to send [11:17:04]OFD Sender: No OFD packet to send [11:17:09]OFD Sender: No OFD packet to send [11:17:14]OFD Sender: No OFD packet to send [11:17:19]OFD Sender: No OFD packet to send [11:17:24]OFD Sender: No OFD packet to send [11:17:29]OFD Sender: No OFD packet to send [11:17:34]OFD Sender: No OFD packet to send [11:17:39]OFD Sender: No OFD packet to send [11:17:44]OFD Sender: No OFD packet to send [11:17:49]OFD Sender: No OFD packet to send [11:17:54]OFD Sender: No OFD packet to send [11:17:59]OFD Sender: No OFD packet to send [11:18:04]OFD Sender: No OFD packet to send [11:18:09]OFD Sender: No OFD packet to send [11:18:14]OFD Sender: No OFD packet to send [11:18:19]OFD Sender: No OFD packet to send [11:18:24]OFD Sender: No OFD packet to send [11:18:29]OFD Sender: No OFD packet to send [11:18:34]OFD Sender: No OFD packet to send [11:18:39]OFD Sender: No OFD packet to send [11:18:44]OFD Sender: No OFD packet to send [11:18:49]OFD Sender: No OFD packet to send [11:18:54]OFD Sender: No OFD packet to send [11:18:59]OFD Sender: No OFD packet to send [11:19:04]OFD Sender: No OFD packet to send [11:19:08]accept exits with 8 [11:19:08]New connection [11:19:08]New thread 3067198820 created [11:19:08]Thread 3067342180 joined [11:19:08]Waiting for new connection... [11:19:08] Sock 8.Parse request [11:19:08]Sock 8.Check first char [11:19:08]Sock 8.First char is OK [11:19:08]request: POST /json_proto HTTP/1.0 [11:19:08]Method: POST [11:19:08]URL: /json_proto [11:19:08]Method is POST - this is cgi request [11:19:08]url: /json_proto [11:19:08]query_string will be loaded in cgi processing [11:19:08]execute_cgi json_proto POST (null) [11:19:08]execute_cgi path=json_proto method=POST [11:19:08]POST find Content-Length [11:19:08]Host: 172.17.32.69:8080 [11:19:08]Content-Length: 1211 [11:19:08]Content-Type: application/json [11:19:08] [11:19:08]POST finish read [11:19:08]Found Content-Length = 1211 [11:19:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040756\u000A15.03.2024 11:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 8\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 20.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 1418.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3689332;3689290\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:08]execute_script... [11:19:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040756\u000A15.03.2024 11:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 8\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 20.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 1418.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3689332;3689290\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:08]POST & json_proto [11:19:08]process_json_proto [11:19:08]json parsed OK: [11:19:08]protocol is kg_v1.0 [11:19:08]action value=print_text [11:19:08]process_action print_text [11:19:08]cmd_print_text [11:19:08]ExternCall_PrintAddStr [11:19:08]wPrintStart [11:19:08]Write to MH i2c: 01 00 00 F9 30 29 [11:19:08]Write i2c OK [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: 01 [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: 01 07 00 [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: 01 07 00 F9 30 00 00 00 00 00 FF 0F 3E [11:19:08]RasterBufferAndPrint [11:19:08]line *****ТОВАРНЫЙ ЧЕК***** [11:19:08]line АЗС 15 [11:19:08]line Партнер нефть [11:19:08]line 02508201610067 [11:19:08]line Кассир : Максатбек у Д. [11:19:08]line Счет N : (1)1040756 [11:19:08]line 15.03.2024 11:11 [11:19:08]line ПРОДАЖА [11:19:08]line ТРК (МРК, ГНК): 8 [11:19:08]line Вид ГСМ : 2710194210 [11:19:08]line ДТ(л)-К-5 [11:19:08]line 20.000 x 70.90 [11:19:08]line ИТОГ: 1418.00 [11:19:08]line Тип оплаты: Талоны: Партнер нефть [11:19:08]line 3689332;3689290 [11:19:08]line ______________________ [11:19:08]line (подпись) [11:19:08]written 0, free lines is 4095 [11:19:08]Write to MH i2c: 01 00 00 0E 31 3F [11:19:08]Write i2c OK [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: 01 [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: 01 07 00 [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: 01 07 00 0E 31 00 00 00 00 00 FA 0D 4D [11:19:08]RasterBufferAndPrint [11:19:08]line [11:19:08]line [11:19:08]line [11:19:08]line [11:19:08]line [11:19:08]written 0, free lines is 3580 [11:19:08]MH_Cut [11:19:08]Write to MH i2c: D1 01 00 15 31 01 18 [11:19:08]Write i2c OK [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: D1 [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: D1 01 00 [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: D1 01 00 15 31 00 17 [11:19:08]Write to MH i2c: 01 00 00 16 31 47 [11:19:08]Write i2c OK [11:19:08]MH_I2C_Read... [11:19:09]*** Cut start [11:19:09]*** Purtial cut [11:19:09]*** Stage 1: CUTSNS_PIN = 1 [11:19:09]Read from MH i2c: 01 [11:19:09]MH_I2C_Read... [11:19:09]*** Stop cut motor [11:19:09]*** Cut end [11:19:09]Read from MH i2c: 01 07 00 [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: 01 07 00 16 31 00 00 00 00 00 FF 0F 5C [11:19:09]process_action print_text done [11:19:09]requested_data is exist [11:19:09]produce_requested_data [11:19:09]requested_item fm.sn is exist - process it [11:19:09]wFMCommunicate request_size=4 [11:19:09]MH_SAM_APDU [11:19:09]CAPDU: 80 11 00 00 [11:19:09]Write to MH i2c: E2 08 00 17 31 80 11 00 00 00 00 00 00 C2 [11:19:09]Write i2c OK [11:19:09]MH_I2C_Read... [11:19:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:09]Read from MH i2c: E2 [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: E2 17 00 [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: E2 17 00 17 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 16 [11:19:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [11:19:09]wFMCommunicate OK [11:19:09]requested_item fd.num is exist - process it [11:19:09]SAM_PROTO_GetFieldsCounters [11:19:09]wFMCommunicate request_size=4 [11:19:09]MH_SAM_APDU [11:19:09]CAPDU: 80 13 00 00 [11:19:09]Write to MH i2c: E2 08 00 18 31 80 13 00 00 00 00 00 00 C5 [11:19:09]Write i2c OK [11:19:09]MH_I2C_Read... [11:19:09]OFD Sender: No OFD packet to send [11:19:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:10]Read from MH i2c: E2 [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: E2 62 00 [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: E2 62 00 18 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 21 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [11:19:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 21 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:10]wFMCommunicate OK [11:19:10]SAM_PROTO_GetFieldsCounters done [11:19:10]requested_item shift.num is exist - process it [11:19:10]requested_item shift.opened is exist - process it [11:19:10]req_shift_opened [11:19:10]FM_GetShiftState [11:19:10]SAM_PROTO_GetShiftState [11:19:10]wFMCommunicate request_size=4 [11:19:10]MH_SAM_APDU [11:19:10]CAPDU: 80 13 01 00 [11:19:10]Write to MH i2c: E2 08 00 19 31 80 13 01 00 00 00 00 00 C7 [11:19:10]Write i2c OK [11:19:10]MH_I2C_Read... [11:19:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:10]Read from MH i2c: E2 [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: E2 0E 00 [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: E2 0E 00 19 31 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 FB [11:19:10]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [11:19:10]wFMCommunicate OK [11:19:10]SAM_PROTO_GetShiftState done [11:19:10]FM_GetShiftState done [11:19:10]req_shift_opened done [11:19:10]requested_item shift.open_date is exist - process it [11:19:10]req_shift_open_date [11:19:10]req_shift_open_date done [11:19:10]produce_requested_data done [11:19:10]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108577,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [11:19:10]process_action_free print_text [11:19:10]json_value_free [11:19:10]json_value_free done [11:19:10]process_json_proto returns [11:19:10]Send response to host [11:19:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108577,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [11:19:10]free response buf [11:19:10]execute_script done [11:19:10]execute_script returns [11:19:10]free content buf [11:19:10]Sock 8.Close socket [11:19:10]Sock 8.Thread stoped [11:19:14]OFD Sender: No OFD packet to send [11:19:15]accept exits with 9 [11:19:15]New connection [11:19:15]New thread 3067342180 created [11:19:15]Thread 3067198820 joined [11:19:15]Waiting for new connection... [11:19:15] Sock 9.Parse request [11:19:15]Sock 9.Check first char [11:19:15]Sock 9.First char is OK [11:19:15]request: POST /json_proto HTTP/1.0 [11:19:15]Method: POST [11:19:15]URL: /json_proto [11:19:15]Method is POST - this is cgi request [11:19:15]url: /json_proto [11:19:15]query_string will be loaded in cgi processing [11:19:15]execute_cgi json_proto POST (null) [11:19:15]execute_cgi path=json_proto method=POST [11:19:15]POST find Content-Length [11:19:15]Host: 172.17.32.69:8080 [11:19:15]Content-Length: 682 [11:19:15]Content-Type: application/json [11:19:15] [11:19:15]POST finish read [11:19:15]Found Content-Length = 682 [11:19:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 8", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 3.450, "sum" : 244.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 244.00, "total" : 244.00, "payments": [ { "type": 0, "sum" : 244.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:15]execute_script... [11:19:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 8", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 3.450, "sum" : 244.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 244.00, "total" : 244.00, "payments": [ { "type": 0, "sum" : 244.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:15]POST & json_proto [11:19:15]process_json_proto [11:19:15]json parsed OK: [11:19:15]protocol is kg_v1.0 [11:19:15]action value=close_receipt [11:19:15]process_action close_receipt [11:19:15]cmd_close_receipt [11:19:15]MH_GetDate [11:19:15]Write to MH i2c: F0 00 00 1A 31 3A [11:19:15]Write i2c OK [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: F0 [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: F0 09 00 [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: F0 09 00 1A 31 00 B7 2E F4 65 D5 0F D3 65 9D [11:19:15]GetLastDocTimeStamp 1710501150 [11:19:15]current date 1710501559 [11:19:15]FM_GetShiftState [11:19:15]SAM_PROTO_GetShiftState [11:19:15]wFMCommunicate request_size=4 [11:19:15]MH_SAM_APDU [11:19:15]CAPDU: 80 13 01 00 [11:19:15]Write to MH i2c: E2 08 00 1B 31 80 13 01 00 00 00 00 00 C9 [11:19:15]Write i2c OK [11:19:15]MH_I2C_Read... [11:19:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:15]Read from MH i2c: E2 [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: E2 0E 00 [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: E2 0E 00 1B 31 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 FD [11:19:15]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [11:19:15]wFMCommunicate OK [11:19:15]SAM_PROTO_GetShiftState done [11:19:15]FM_GetShiftState done [11:19:15]opened in 1710461757 [11:19:15]opened+sec_in_day 1710548157 [11:19:15]quantity*price = 24460 [11:19:15]sum+1 = 24462 [11:19:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 244.00 Внесено: 244.00 СДАЧА: 0.00 НСП 1% : 2.16 НДС 12% : 25.98 Наличными: 244.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 101 15.03.2024 11:19 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108578 ФПД: 137664656441968 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T111919&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108578&fm=137664656441968&tin=02508201610067®Number=0000000000091911&sum=24400 [11:19:16]StoreToDocumentArchive [11:19:16]shift 320 fd 108578 [11:19:16]save to /storage/0320/doc_00108578 [11:19:16]save last doc name /storage/0320/doc_00108578 to /storage/kkm_last_doc_name [11:19:16]save OK [11:19:16]Clear old archive folders... [11:19:16]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:19:16]tlvbuf is 0018EEE0 [11:19:16]SAM_PROTO_ClearQueue [11:19:16]wFMCommunicate request_size=4 [11:19:16]MH_SAM_APDU [11:19:16]CAPDU: 80 09 00 00 [11:19:16]Write to MH i2c: E2 08 00 28 31 80 09 00 00 00 00 00 00 CB [11:19:16]Write i2c OK [11:19:16]MH_I2C_Read... [11:19:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:16]Read from MH i2c: E2 [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: E2 03 00 [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: E2 03 00 28 31 00 90 00 CD [11:19:16]RAPDU: 90 00 [11:19:16]wFMCommunicate OK [11:19:16]SAM_PROTO_ClearQueue done [11:19:16]KKMCreateOFDPacket [11:19:16]OFDProtocolAddRootSTLVToBuf [11:19:16]FM_MakeSignedData [11:19:16]FM_MakeSignedData [11:19:16]SAM_PROTO_SignData [11:19:16]wFMCommunicate request_size=4 [11:19:16]MH_SAM_APDU [11:19:16]CAPDU: 80 0D 01 02 [11:19:16]Write to MH i2c: E2 08 00 29 31 80 0D 01 02 00 00 00 00 D3 [11:19:16]Write i2c OK [11:19:16]MH_I2C_Read... [11:19:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:16]Read from MH i2c: E2 [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: E2 03 00 [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: E2 03 00 29 31 00 90 00 CE [11:19:16]RAPDU: 90 00 [11:19:16]wFMCommunicate OK [11:19:16]wFMCommunicate request_size=255 [11:19:16]MH_SAM_APDU [11:19:16]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7A 0D 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 8D 5F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 0A 00 00 00 00 07 04 06 00 50 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 B7 2E F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 22 A8 01 00 35 04 06 00 [11:19:16]Write to MH i2c: E2 02 01 2A 31 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7A 0D 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 8D 5F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 0A 00 00 00 00 07 04 06 00 50 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 B7 2E F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 22 A8 01 00 35 04 06 00 00 00 6A [11:19:16]Write i2c OK [11:19:16]MH_I2C_Read... [11:19:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:17]Read from MH i2c: E2 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 03 00 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 03 00 2A 31 00 90 00 CF [11:19:17]RAPDU: 90 00 [11:19:17]wFMCommunicate OK [11:19:17]wFMCommunicate request_size=11 [11:19:17]MH_SAM_APDU [11:19:17]CAPDU: 80 0D 02 02 06 7D 34 8C F2 02 70 [11:19:17]Write to MH i2c: E2 0E 00 2B 31 80 0D 02 02 06 00 7D 34 8C F2 02 70 00 00 83 [11:19:17]Write i2c OK [11:19:17]MH_I2C_Read... [11:19:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:17]Read from MH i2c: E2 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 03 00 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 03 00 2B 31 00 90 00 D0 [11:19:17]RAPDU: 90 00 [11:19:17]wFMCommunicate OK [11:19:17]wFMCommunicate request_size=4 [11:19:17]MH_SAM_APDU [11:19:17]CAPDU: 80 0D 03 02 [11:19:17]Write to MH i2c: E2 08 00 2C 31 80 0D 03 02 00 00 00 00 D8 [11:19:17]Write i2c OK [11:19:17]MH_I2C_Read... [11:19:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:17]Read from MH i2c: E2 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 0B 00 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 0B 00 2C 31 00 D5 75 96 A4 33 26 46 5A 90 00 56 [11:19:17]RAPDU: D5 75 96 A4 33 26 46 5A 90 00 [11:19:17]wFMCommunicate OK [11:19:17]SAM_PROTO_SignData done [11:19:17]FM_MakeSignedData done [11:19:17]CreateOFDProtocolMessage [11:19:17]wFMCommunicate request_size=4 [11:19:17]MH_SAM_APDU [11:19:17]CAPDU: 80 11 00 00 [11:19:17]Write to MH i2c: E2 08 00 2D 31 80 11 00 00 00 00 00 00 D8 [11:19:17]Write i2c OK [11:19:17]MH_I2C_Read... [11:19:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:17]Read from MH i2c: E2 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 17 00 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 17 00 2D 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 2C [11:19:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [11:19:17]wFMCommunicate OK [11:19:17]CreateOFDProtocolMessage done [11:19:17]OFDSenderStorePacket 108578 [11:19:17]StoreOFDPacket docnum=108578 [11:19:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 01 00 00 A4 2D 08 01 BE C3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7A 0D 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 8D 5F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 0A 00 00 00 00 07 04 06 00 50 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 B7 2E F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 22 A8 01 00 35 04 06 00 7D 34 8C F2 02 70 D5 75 96 A4 33 26 46 5A [11:19:17]CheckFolder [11:19:17]dirname=/storage/ofd_packets [11:19:17]CheckFolder done [11:19:17]ProducePacketName [11:19:17]name=ofd_packets/00108578 [11:19:17]NVStorageSaveData ofd_packets/00108578 [11:19:17]File name is /storage/ofd_packets/00108578 [11:19:17]Write 302 bytes [11:19:17]NVStorageSaveData done [11:19:17]OFDSenderStorePacket done [11:19:17]KKMCreateOFDPacket done [11:19:17]NVStorageSaveData kkm_last_timestamp [11:19:17]File name is /storage/kkm_last_timestamp [11:19:17]Write 4 bytes [11:19:17]NVStorageSaveData done [11:19:17]ExternCall_PrintAddStr [11:19:17]wPrintStart [11:19:17]Write to MH i2c: 01 00 00 2E 31 5F [11:19:17]Write i2c OK [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: 01 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: 01 07 00 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: 01 07 00 2E 31 00 00 00 00 00 FF 0F 74 [11:19:17]RasterBufferAndPrint [11:19:17]line Счет N : (1)1040757 [11:19:17]line ИНН: 02508201610067 [11:19:17]line Контрольно-Кассовый Чек [11:19:17]line ПРОДАЖА [11:19:17]line ТРК (МРК, ГНК) : 8 [11:19:17]line Товар: 2710194210 [11:19:17]line ДТ(л)-К-5 [11:19:17]line 3.450 * 70.90 [11:19:17]line = 244.61 [11:19:17]line НДС 12% НСП 1% [11:19:17]line > о реализуемом товаре [11:19:17]line ОКРУГЛЕНИЕ: -0.61 [11:19:17]line ИТОГО: 244.00 [11:19:17]line Внесено: 244.00 [11:19:17]line СДАЧА: 0.00 [11:19:17]line НСП 1% : 2.16 [11:19:17]line НДС 12% : 25.98 [11:19:17]line Наличными: 244.00 [11:19:17]line Безнал.: 0.00 [11:19:17]line Место: АЗС № 15 "Партнер Нефть" [11:19:17]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [11:19:17]line СНО: Общий режим [11:19:17]line Чек 101 15.03.2024 11:19 [11:19:17]line Смена: 320 ФФД: 1.0 [11:19:17]line ЗНМ: 0300000266 [11:19:17]line РНМ: 0000000000091911 [11:19:17]line Версия ККМ: 001 [11:19:17]line ФМ: 0000000000871818 [11:19:17]line ФД: 108578 [11:19:17]line ФПД: 137664656441968 [11:19:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T111919&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108578&fm=137664656441968&tin=02508201610067®Number=0000000000091911&sum=24400 [11:19:17]OFD Sender: Processing packet 108578 [packets to send 29, broken 28] [11:19:17]ProducePacketName [11:19:17]name=ofd_packets/00108578 [11:19:17]OFD Sender: To server: pG, [11:19:17]CommunicateWithHost lk.salyk.kg:30040 [11:19:17]ConnectInit lk.salyk.kg [11:19:17]written 0, free lines is 4095 [11:19:17]Connected sock=10 [11:19:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 01 00 00 A4 2D 08 01 BE C3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7A 0D 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 8D 5F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 0A 00 00 00 00 07 04 06 00 50 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 B7 2E F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 22 A8 01 00 35 04 06 00 7D 34 8C F2 02 70 D5 75 96 A4 33 26 46 5A [11:19:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 4F 00 00 00 5C 55 47 00 BB 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 22 A8 01 00 F4 03 04 00 57 DA F3 65 B6 04 01 00 00 39 36 7B 9A D8 C5 CB 8D [11:19:17]CommunicateWithHost err = 0 [11:19:17]CheckOFDResponse [11:19:17]1017 (14) - 77093643461234 [11:19:17]1041 (16) - 0000000000871818 [11:19:17]1040 (4) - 108578 [11:19:17]1012 (4) - 15.03.2024 05:19 [11:19:17]1206 (1) - 0 [11:19:17]OFD Sender: Remove packet 108578 [11:19:17]ProducePacketName [11:19:17]name=ofd_packets/00108578 [11:19:17]NVStorageDeleteData [11:19:17]Write to MH i2c: 01 00 00 59 31 8A [11:19:17]Write i2c OK [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: 01 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: 01 07 00 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: 01 07 00 59 31 00 00 00 00 00 D1 0C 6E [11:19:17]RasterBufferAndPrint [11:19:17]line [11:19:17]line [11:19:17]line [11:19:17]line [11:19:17]line [11:19:17]written 0, free lines is 3287 [11:19:17]MH_Cut [11:19:17]Write to MH i2c: D1 01 00 60 31 01 63 [11:19:17]Write i2c OK [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: D1 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: D1 01 00 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: D1 01 00 60 31 00 62 [11:19:17]Write to MH i2c: 01 00 00 61 31 92 [11:19:18]Write i2c OK [11:19:18]MH_I2C_Read... [11:19:18]OFD Sender: No OFD packet to send [11:19:18]*** Cut start [11:19:18]*** Purtial cut [11:19:18]*** Stage 1: CUTSNS_PIN = 1 [11:19:19]Read from MH i2c: 01 [11:19:19]MH_I2C_Read... [11:19:19]*** Stop cut motor [11:19:19]*** Cut end [11:19:19]Read from MH i2c: 01 07 00 [11:19:19]MH_I2C_Read... [11:19:19]Read from MH i2c: 01 07 00 61 31 00 00 00 00 00 FF 0F A7 [11:19:19]process_action close_receipt done [11:19:19]requested_data is exist [11:19:19]produce_requested_data [11:19:19]requested_item fm.sn is exist - process it [11:19:19]wFMCommunicate request_size=4 [11:19:19]MH_SAM_APDU [11:19:19]CAPDU: 80 11 00 00 [11:19:19]Write to MH i2c: E2 08 00 62 31 80 11 00 00 00 00 00 00 0D [11:19:19]Write i2c OK [11:19:19]MH_I2C_Read... [11:19:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:19]Read from MH i2c: E2 [11:19:19]MH_I2C_Read... [11:19:19]Read from MH i2c: E2 17 00 [11:19:19]MH_I2C_Read... [11:19:19]Read from MH i2c: E2 17 00 62 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 61 [11:19:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [11:19:19]wFMCommunicate OK [11:19:19]requested_item fd.num is exist - process it [11:19:19]SAM_PROTO_GetFieldsCounters [11:19:19]wFMCommunicate request_size=4 [11:19:19]MH_SAM_APDU [11:19:19]CAPDU: 80 13 00 00 [11:19:19]Write to MH i2c: E2 08 00 63 31 80 13 00 00 00 00 00 00 10 [11:19:19]Write i2c OK [11:19:19]MH_I2C_Read... [11:19:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:19]Read from MH i2c: E2 [11:19:19]MH_I2C_Read... [11:19:19]Read from MH i2c: E2 62 00 [11:19:19]MH_I2C_Read... [11:19:19]Read from MH i2c: E2 62 00 63 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 22 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [11:19:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 22 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:19]wFMCommunicate OK [11:19:19]SAM_PROTO_GetFieldsCounters done [11:19:19]requested_item shift.num is exist - process it [11:19:19]requested_item shift.opened is exist - process it [11:19:19]req_shift_opened [11:19:19]FM_GetShiftState [11:19:19]SAM_PROTO_GetShiftState [11:19:19]wFMCommunicate request_size=4 [11:19:19]MH_SAM_APDU [11:19:19]CAPDU: 80 13 01 00 [11:19:19]Write to MH i2c: E2 08 00 64 31 80 13 01 00 00 00 00 00 12 [11:19:19]Write i2c OK [11:19:19]MH_I2C_Read... [11:19:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:19]Read from MH i2c: E2 [11:19:19]MH_I2C_Read... [11:19:19]Read from MH i2c: E2 0E 00 [11:19:19]MH_I2C_Read... [11:19:19]Read from MH i2c: E2 0E 00 64 31 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 46 [11:19:19]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [11:19:19]wFMCommunicate OK [11:19:19]SAM_PROTO_GetShiftState done [11:19:19]FM_GetShiftState done [11:19:19]req_shift_opened done [11:19:19]requested_item shift.open_date is exist - process it [11:19:19]req_shift_open_date [11:19:19]req_shift_open_date done [11:19:19]produce_requested_data done [11:19:19]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108578,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [11:19:19]process_action_free close_receipt [11:19:19]json_value_free [11:19:19]json_value_free done [11:19:19]process_json_proto returns [11:19:19]Send response to host [11:19:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108578,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [11:19:19]free response buf [11:19:19]execute_script done [11:19:19]execute_script returns [11:19:19]free content buf [11:19:19]Sock 9.Close socket [11:19:19]Sock 9.Thread stoped [11:19:23]OFD Sender: No OFD packet to send [11:19:28]OFD Sender: No OFD packet to send [11:19:33]OFD Sender: No OFD packet to send [11:19:38]OFD Sender: No OFD packet to send [11:19:43]OFD Sender: No OFD packet to send [11:19:48]OFD Sender: No OFD packet to send [11:19:53]OFD Sender: No OFD packet to send [11:19:58]OFD Sender: No OFD packet to send [11:20:03]OFD Sender: No OFD packet to send [11:20:08]OFD Sender: No OFD packet to send [11:20:13]OFD Sender: No OFD packet to send [11:20:18]OFD Sender: No OFD packet to send [11:20:23]OFD Sender: No OFD packet to send [11:20:28]OFD Sender: No OFD packet to send [11:20:33]OFD Sender: No OFD packet to send [11:20:38]OFD Sender: No OFD packet to send [11:20:43]OFD Sender: No OFD packet to send [11:20:48]OFD Sender: No OFD packet to send [11:20:53]OFD Sender: No OFD packet to send [11:20:58]OFD Sender: No OFD packet to send [11:21:03]OFD Sender: No OFD packet to send [11:21:08]OFD Sender: No OFD packet to send [11:21:13]OFD Sender: No OFD packet to send [11:21:18]OFD Sender: No OFD packet to send [11:21:23]OFD Sender: No OFD packet to send [11:21:28]OFD Sender: No OFD packet to send [11:21:33]OFD Sender: No OFD packet to send [11:21:38]OFD Sender: No OFD packet to send [11:21:43]OFD Sender: No OFD packet to send [11:21:48]OFD Sender: No OFD packet to send [11:21:53]OFD Sender: No OFD packet to send [11:21:58]OFD Sender: No OFD packet to send [11:22:03]OFD Sender: No OFD packet to send [11:22:08]OFD Sender: No OFD packet to send [11:22:13]OFD Sender: No OFD packet to send [11:22:18]OFD Sender: No OFD packet to send [11:22:23]OFD Sender: No OFD packet to send [11:22:28]OFD Sender: No OFD packet to send [11:22:33]OFD Sender: No OFD packet to send [11:22:38]OFD Sender: No OFD packet to send [11:22:43]OFD Sender: No OFD packet to send [11:22:48]OFD Sender: No OFD packet to send [11:22:53]OFD Sender: No OFD packet to send [11:22:58]OFD Sender: No OFD packet to send [11:23:03]OFD Sender: No OFD packet to send [11:23:08]OFD Sender: No OFD packet to send [11:23:13]OFD Sender: No OFD packet to send [11:23:18]OFD Sender: No OFD packet to send [11:23:23]OFD Sender: No OFD packet to send [11:23:28]OFD Sender: No OFD packet to send [11:23:33]OFD Sender: No OFD packet to send [11:23:38]OFD Sender: No OFD packet to send [11:23:43]OFD Sender: No OFD packet to send [11:23:46]accept exits with 8 [11:23:46]New connection [11:23:46]New thread 3067198820 created [11:23:46]Thread 3067342180 joined [11:23:46]Waiting for new connection... [11:23:46] Sock 8.Parse request [11:23:46]Sock 8.Check first char [11:23:46]Sock 8.First char is OK [11:23:46]request: POST /json_proto HTTP/1.0 [11:23:46]Method: POST [11:23:46]URL: /json_proto [11:23:46]Method is POST - this is cgi request [11:23:46]url: /json_proto [11:23:46]query_string will be loaded in cgi processing [11:23:46]execute_cgi json_proto POST (null) [11:23:46]execute_cgi path=json_proto method=POST [11:23:46]POST find Content-Length [11:23:46]Host: 172.17.32.69:8080 [11:23:46]Content-Length: 678 [11:23:46]Content-Type: application/json [11:23:46] [11:23:46]POST finish read [11:23:46]Found Content-Length = 678 [11:23:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 4.850, "sum" : 300.22, "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:23:46]execute_script... [11:23:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 4.850, "sum" : 300.22, "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:23:46]POST & json_proto [11:23:46]process_json_proto [11:23:46]json parsed OK: [11:23:46]protocol is kg_v1.0 [11:23:46]action value=close_receipt [11:23:46]process_action close_receipt [11:23:46]cmd_close_receipt [11:23:46]MH_GetDate [11:23:46]Write to MH i2c: F0 00 00 65 31 85 [11:23:46]Write i2c OK [11:23:46]MH_I2C_Read... [11:23:46]Read from MH i2c: F0 [11:23:46]MH_I2C_Read... [11:23:46]Read from MH i2c: F0 09 00 [11:23:46]MH_I2C_Read... [11:23:46]Read from MH i2c: F0 09 00 65 31 00 C6 2F F4 65 D5 0F D3 65 F8 [11:23:46]GetLastDocTimeStamp 1710501559 [11:23:46]current date 1710501830 [11:23:46]FM_GetShiftState [11:23:46]SAM_PROTO_GetShiftState [11:23:46]wFMCommunicate request_size=4 [11:23:46]MH_SAM_APDU [11:23:46]CAPDU: 80 13 01 00 [11:23:46]Write to MH i2c: E2 08 00 66 31 80 13 01 00 00 00 00 00 14 [11:23:46]Write i2c OK [11:23:46]MH_I2C_Read... [11:23:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:46]Read from MH i2c: E2 [11:23:46]MH_I2C_Read... [11:23:46]Read from MH i2c: E2 0E 00 [11:23:46]MH_I2C_Read... [11:23:46]Read from MH i2c: E2 0E 00 66 31 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 48 [11:23:46]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [11:23:46]wFMCommunicate OK [11:23:46]SAM_PROTO_GetShiftState done [11:23:46]FM_GetShiftState done [11:23:46]opened in 1710461757 [11:23:46]opened+sec_in_day 1710548157 [11:23:46]quantity*price = 30021 [11:23:46]sum+1 = 30023 [11:23:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 102 15.03.2024 11:23 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108579 ФПД: 46540313857175 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T112350&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108579&fm=46540313857175&tin=02508201610067®Number=0000000000091911&sum=30000 [11:23:47]StoreToDocumentArchive [11:23:47]shift 320 fd 108579 [11:23:47]save to /storage/0320/doc_00108579 [11:23:47]save last doc name /storage/0320/doc_00108579 to /storage/kkm_last_doc_name [11:23:47]save OK [11:23:47]Clear old archive folders... [11:23:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:23:47]tlvbuf is 00154860 [11:23:47]SAM_PROTO_ClearQueue [11:23:47]wFMCommunicate request_size=4 [11:23:47]MH_SAM_APDU [11:23:47]CAPDU: 80 09 00 00 [11:23:47]Write to MH i2c: E2 08 00 73 31 80 09 00 00 00 00 00 00 16 [11:23:47]Write i2c OK [11:23:47]MH_I2C_Read... [11:23:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:47]Read from MH i2c: E2 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: E2 03 00 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: E2 03 00 73 31 00 90 00 18 [11:23:47]RAPDU: 90 00 [11:23:47]wFMCommunicate OK [11:23:47]SAM_PROTO_ClearQueue done [11:23:47]KKMCreateOFDPacket [11:23:47]OFDProtocolAddRootSTLVToBuf [11:23:47]FM_MakeSignedData [11:23:47]FM_MakeSignedData [11:23:47]SAM_PROTO_SignData [11:23:47]wFMCommunicate request_size=4 [11:23:47]MH_SAM_APDU [11:23:47]CAPDU: 80 0D 01 02 [11:23:47]Write to MH i2c: E2 08 00 74 31 80 0D 01 02 00 00 00 00 1E [11:23:47]Write i2c OK [11:23:47]MH_I2C_Read... [11:23:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:47]Read from MH i2c: E2 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: E2 03 00 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: E2 03 00 74 31 00 90 00 19 [11:23:47]RAPDU: 90 00 [11:23:47]wFMCommunicate OK [11:23:47]wFMCommunicate request_size=255 [11:23:47]MH_SAM_APDU [11:23:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 66 00 00 00 F4 03 04 00 C6 2F F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 23 A8 01 00 35 04 06 00 2A [11:23:47]Write to MH i2c: E2 02 01 75 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 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 66 00 00 00 F4 03 04 00 C6 2F F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 23 A8 01 00 35 04 06 00 2A 00 00 EA [11:23:47]Write i2c OK [11:23:47]MH_I2C_Read... [11:23:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:47]Read from MH i2c: E2 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: E2 03 00 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: E2 03 00 75 31 00 90 00 1A [11:23:47]RAPDU: 90 00 [11:23:47]wFMCommunicate OK [11:23:47]wFMCommunicate request_size=10 [11:23:47]MH_SAM_APDU [11:23:47]CAPDU: 80 0D 02 02 05 54 02 E0 0C 97 [11:23:47]Write to MH i2c: E2 0D 00 76 31 80 0D 02 02 05 00 54 02 E0 0C 97 00 00 04 [11:23:47]Write i2c OK [11:23:47]MH_I2C_Read... [11:23:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:47]Read from MH i2c: E2 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: E2 03 00 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: E2 03 00 76 31 00 90 00 1B [11:23:47]RAPDU: 90 00 [11:23:47]wFMCommunicate OK [11:23:47]wFMCommunicate request_size=4 [11:23:47]MH_SAM_APDU [11:23:47]CAPDU: 80 0D 03 02 [11:23:47]Write to MH i2c: E2 08 00 77 31 80 0D 03 02 00 00 00 00 23 [11:23:47]Write i2c OK [11:23:47]MH_I2C_Read... [11:23:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:47]Read from MH i2c: E2 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: E2 0B 00 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: E2 0B 00 77 31 00 BF BA 5F 49 C7 85 7B 33 90 00 3F [11:23:47]RAPDU: BF BA 5F 49 C7 85 7B 33 90 00 [11:23:47]wFMCommunicate OK [11:23:47]SAM_PROTO_SignData done [11:23:47]FM_MakeSignedData done [11:23:47]CreateOFDProtocolMessage [11:23:47]wFMCommunicate request_size=4 [11:23:47]MH_SAM_APDU [11:23:47]CAPDU: 80 11 00 00 [11:23:47]Write to MH i2c: E2 08 00 78 31 80 11 00 00 00 00 00 00 23 [11:23:47]Write i2c OK [11:23:47]MH_I2C_Read... [11:23:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:48]Read from MH i2c: E2 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: E2 17 00 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: E2 17 00 78 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 77 [11:23:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [11:23:48]wFMCommunicate OK [11:23:48]CreateOFDProtocolMessage done [11:23:48]OFDSenderStorePacket 108579 [11:23:48]StoreOFDPacket docnum=108579 [11:23:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0F 01 00 00 33 11 07 01 E9 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 66 00 00 00 F4 03 04 00 C6 2F F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 23 A8 01 00 35 04 06 00 2A 54 02 E0 0C 97 BF BA 5F 49 C7 85 7B 33 [11:23:48]CheckFolder [11:23:48]dirname=/storage/ofd_packets [11:23:48]CheckFolder done [11:23:48]ProducePacketName [11:23:48]name=ofd_packets/00108579 [11:23:48]NVStorageSaveData ofd_packets/00108579 [11:23:48]File name is /storage/ofd_packets/00108579 [11:23:48]Write 301 bytes [11:23:48]NVStorageSaveData done [11:23:48]OFDSenderStorePacket done [11:23:48]KKMCreateOFDPacket done [11:23:48]NVStorageSaveData kkm_last_timestamp [11:23:48]File name is /storage/kkm_last_timestamp [11:23:48]Write 4 bytes [11:23:48]NVStorageSaveData done [11:23:48]ExternCall_PrintAddStr [11:23:48]wPrintStart [11:23:48]Write to MH i2c: 01 00 00 79 31 AA [11:23:48]Write i2c OK [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: 01 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: 01 07 00 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: 01 07 00 79 31 00 00 00 00 00 FF 0F BF [11:23:48]RasterBufferAndPrint [11:23:48]line Счет N : (1)1040759 [11:23:48]line ИНН: 02508201610067 [11:23:48]line Контрольно-Кассовый Чек [11:23:48]line ПРОДАЖА [11:23:48]line ТРК (МРК, ГНК) : 53 [11:23:48]line Товар: 2710124130 [11:23:48]line Аи-92-К-5 [11:23:48]line 4.850 * 61.90 [11:23:48]line = 300.22 [11:23:48]line НДС 12% НСП 1% [11:23:48]line > о реализуемом товаре [11:23:48]line ОКРУГЛЕНИЕ: -0.22 [11:23:48]line ИТОГО: 300.00 [11:23:48]line Внесено: 300.00 [11:23:48]line СДАЧА: 0.00 [11:23:48]line НСП 1% : 2.66 [11:23:48]line НДС 12% : 31.88 [11:23:48]line Наличными: 300.00 [11:23:48]line Безнал.: 0.00 [11:23:48]line Место: АЗС № 15 "Партнер Нефть" [11:23:48]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [11:23:48]line СНО: Общий режим [11:23:48]line Чек 102 15.03.2024 11:23 [11:23:48]line Смена: 320 ФФД: 1.0 [11:23:48]line ЗНМ: 0300000266 [11:23:48]line РНМ: 0000000000091911 [11:23:48]line Версия ККМ: 001 [11:23:48]line ФМ: 0000000000871818 [11:23:48]line ФД: 108579 [11:23:48]line ФПД: 46540313857175 [11:23:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T112350&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108579&fm=46540313857175&tin=02508201610067®Number=0000000000091911&sum=30000 [11:23:48]OFD Sender: Processing packet 108579 [packets to send 29, broken 28] [11:23:48]ProducePacketName [11:23:48]name=ofd_packets/00108579 [11:23:48]OFD Sender: To server: pG, [11:23:48]CommunicateWithHost lk.salyk.kg:30040 [11:23:48]ConnectInit lk.salyk.kg [11:23:48]written 0, free lines is 4095 [11:23:48]Connected sock=10 [11:23: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 31 38 0F 01 00 00 33 11 07 01 E9 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 66 00 00 00 F4 03 04 00 C6 2F F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 23 A8 01 00 35 04 06 00 2A 54 02 E0 0C 97 BF BA 5F 49 C7 85 7B 33 [11:23: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 31 38 4F 00 00 00 21 4D 47 00 50 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 23 A8 01 00 F4 03 04 00 66 DB F3 65 B6 04 01 00 00 A0 6F 81 3E 23 FE 77 20 [11:23:48]CommunicateWithHost err = 0 [11:23:48]CheckOFDResponse [11:23:48]1017 (14) - 77093643461234 [11:23:48]1041 (16) - 0000000000871818 [11:23:48]1040 (4) - 108579 [11:23:48]1012 (4) - 15.03.2024 05:23 [11:23:48]1206 (1) - 0 [11:23:48]OFD Sender: Remove packet 108579 [11:23:48]ProducePacketName [11:23:48]name=ofd_packets/00108579 [11:23:48]NVStorageDeleteData [11:23:48]Write to MH i2c: 01 00 00 A4 31 D5 [11:23:48]Write i2c OK [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: 01 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: 01 07 00 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: 01 07 00 A4 31 00 00 00 00 00 D4 0C BC [11:23:48]RasterBufferAndPrint [11:23:48]line [11:23:48]line [11:23:48]line [11:23:48]line [11:23:48]line [11:23:48]written 0, free lines is 3289 [11:23:48]MH_Cut [11:23:48]Write to MH i2c: D1 01 00 AB 31 01 AE [11:23:48]Write i2c OK [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: D1 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: D1 01 00 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: D1 01 00 AB 31 00 AD [11:23:48]Write to MH i2c: 01 00 00 AC 31 DD [11:23:48]Write i2c OK [11:23:48]MH_I2C_Read... [11:23:49]OFD Sender: No OFD packet to send [11:23:49]*** Cut start [11:23:49]*** Purtial cut [11:23:49]*** Stage 1: CUTSNS_PIN = 1 [11:23:49]Read from MH i2c: 01 [11:23:49]MH_I2C_Read... [11:23:49]*** Stop cut motor [11:23:49]*** Cut end [11:23:49]Read from MH i2c: 01 07 00 [11:23:49]MH_I2C_Read... [11:23:49]Read from MH i2c: 01 07 00 AC 31 00 00 00 00 00 FF 0F F2 [11:23:49]process_action close_receipt done [11:23:49]requested_data is exist [11:23:49]produce_requested_data [11:23:49]requested_item fm.sn is exist - process it [11:23:49]wFMCommunicate request_size=4 [11:23:49]MH_SAM_APDU [11:23:49]CAPDU: 80 11 00 00 [11:23:49]Write to MH i2c: E2 08 00 AD 31 80 11 00 00 00 00 00 00 58 [11:23:49]Write i2c OK [11:23:49]MH_I2C_Read... [11:23:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:49]Read from MH i2c: E2 [11:23:49]MH_I2C_Read... [11:23:49]Read from MH i2c: E2 17 00 [11:23:49]MH_I2C_Read... [11:23:49]Read from MH i2c: E2 17 00 AD 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 AC [11:23:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [11:23:49]wFMCommunicate OK [11:23:49]requested_item fd.num is exist - process it [11:23:49]SAM_PROTO_GetFieldsCounters [11:23:49]wFMCommunicate request_size=4 [11:23:49]MH_SAM_APDU [11:23:49]CAPDU: 80 13 00 00 [11:23:49]Write to MH i2c: E2 08 00 AE 31 80 13 00 00 00 00 00 00 5B [11:23:49]Write i2c OK [11:23:49]MH_I2C_Read... [11:23:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:50]Read from MH i2c: E2 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: E2 62 00 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: E2 62 00 AE 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 23 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [11:23:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 23 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:23:50]wFMCommunicate OK [11:23:50]SAM_PROTO_GetFieldsCounters done [11:23:50]requested_item shift.num is exist - process it [11:23:50]requested_item shift.opened is exist - process it [11:23:50]req_shift_opened [11:23:50]FM_GetShiftState [11:23:50]SAM_PROTO_GetShiftState [11:23:50]wFMCommunicate request_size=4 [11:23:50]MH_SAM_APDU [11:23:50]CAPDU: 80 13 01 00 [11:23:50]Write to MH i2c: E2 08 00 AF 31 80 13 01 00 00 00 00 00 5D [11:23:50]Write i2c OK [11:23:50]MH_I2C_Read... [11:23:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:50]Read from MH i2c: E2 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: E2 0E 00 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: E2 0E 00 AF 31 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 91 [11:23:50]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [11:23:50]wFMCommunicate OK [11:23:50]SAM_PROTO_GetShiftState done [11:23:50]FM_GetShiftState done [11:23:50]req_shift_opened done [11:23:50]requested_item shift.open_date is exist - process it [11:23:50]req_shift_open_date [11:23:50]req_shift_open_date done [11:23:50]produce_requested_data done [11:23:50]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108579,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [11:23:50]process_action_free close_receipt [11:23:50]json_value_free [11:23:50]json_value_free done [11:23:50]process_json_proto returns [11:23:50]Send response to host [11:23:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108579,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [11:23:50]free response buf [11:23:50]execute_script done [11:23:50]execute_script returns [11:23:50]free content buf [11:23:50]Sock 8.Close socket [11:23:50]Sock 8.Thread stoped [11:23:54]OFD Sender: No OFD packet to send [11:23:59]OFD Sender: No OFD packet to send [11:24:04]OFD Sender: No OFD packet to send [11:24:09]OFD Sender: No OFD packet to send [11:24:14]OFD Sender: No OFD packet to send [11:24:19]OFD Sender: No OFD packet to send [11:24:24]OFD Sender: No OFD packet to send [11:24:29]OFD Sender: No OFD packet to send [11:24:34]OFD Sender: No OFD packet to send [11:24:39]OFD Sender: No OFD packet to send [11:24:44]OFD Sender: No OFD packet to send [11:24:49]OFD Sender: No OFD packet to send [11:24:54]OFD Sender: No OFD packet to send [11:24:59]OFD Sender: No OFD packet to send [11:25:04]OFD Sender: No OFD packet to send [11:25:09]OFD Sender: No OFD packet to send [11:25:14]OFD Sender: No OFD packet to send [11:25:19]OFD Sender: No OFD packet to send [11:25:24]OFD Sender: No OFD packet to send [11:25:29]OFD Sender: No OFD packet to send [11:25:34]OFD Sender: No OFD packet to send [11:25:39]OFD Sender: No OFD packet to send [11:25:44]OFD Sender: No OFD packet to send [11:25:49]OFD Sender: No OFD packet to send [11:25:54]OFD Sender: No OFD packet to send [11:25:59]OFD Sender: No OFD packet to send [11:26:04]OFD Sender: No OFD packet to send [11:26:09]OFD Sender: No OFD packet to send [11:26:14]OFD Sender: No OFD packet to send [11:26:16]accept exits with 9 [11:26:16]New connection [11:26:16]New thread 3067342180 created [11:26:16]Thread 3067198820 joined [11:26:16]Waiting for new connection... [11:26:16] Sock 9.Parse request [11:26:16]Sock 9.Check first char [11:26:16]Sock 9.First char is OK [11:26:16]request: POST /json_proto HTTP/1.0 [11:26:16]Method: POST [11:26:16]URL: /json_proto [11:26:16]Method is POST - this is cgi request [11:26:16]url: /json_proto [11:26:16]query_string will be loaded in cgi processing [11:26:16]execute_cgi json_proto POST (null) [11:26:16]execute_cgi path=json_proto method=POST [11:26:16]POST find Content-Length [11:26:16]Host: 172.17.32.69:8080 [11:26:16]Content-Length: 687 [11:26:16]Content-Type: application/json [11:26:16] [11:26:16]POST finish read [11:26:16]Found Content-Length = 687 [11:26:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1040758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 4", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 42.320, "sum" : 3000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:16]execute_script... [11:26: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)1040758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 4", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 42.320, "sum" : 3000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:16]POST & json_proto [11:26:16]process_json_proto [11:26:16]json parsed OK: [11:26:16]protocol is kg_v1.0 [11:26:16]action value=close_receipt [11:26:16]process_action close_receipt [11:26:16]cmd_close_receipt [11:26:16]MH_GetDate [11:26:16]Write to MH i2c: F0 00 00 B0 31 D0 [11:26:16]Write i2c OK [11:26:16]MH_I2C_Read... [11:26:16]Read from MH i2c: F0 [11:26:16]MH_I2C_Read... [11:26:16]Read from MH i2c: F0 09 00 [11:26:16]MH_I2C_Read... [11:26:16]Read from MH i2c: F0 09 00 B0 31 00 5C 30 F4 65 D5 0F D3 65 DA [11:26:16]GetLastDocTimeStamp 1710501830 [11:26:16]current date 1710501980 [11:26:16]FM_GetShiftState [11:26:16]SAM_PROTO_GetShiftState [11:26:16]wFMCommunicate request_size=4 [11:26:16]MH_SAM_APDU [11:26:16]CAPDU: 80 13 01 00 [11:26:16]Write to MH i2c: E2 08 00 B1 31 80 13 01 00 00 00 00 00 5F [11:26:16]Write i2c OK [11:26:16]MH_I2C_Read... [11:26:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:16]Read from MH i2c: E2 [11:26:16]MH_I2C_Read... [11:26:16]Read from MH i2c: E2 0E 00 [11:26:16]MH_I2C_Read... [11:26:16]Read from MH i2c: E2 0E 00 B1 31 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 93 [11:26:16]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [11:26:16]wFMCommunicate OK [11:26:16]SAM_PROTO_GetShiftState done [11:26:16]FM_GetShiftState done [11:26:16]opened in 1710461757 [11:26:16]opened+sec_in_day 1710548157 [11:26:16]quantity*price = 300048 [11:26:16]sum+1 = 300050 [11:26:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 15 "Партнер Нефть" Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 СНО: Общий режим Чек 103 15.03.2024 11:26 Смена: 320 ФФД: 1.0 ЗНМ: 0300000266 РНМ: 0000000000091911 Версия ККМ: 001 ФМ: 0000000000871818 ФД: 108580 ФПД: 506894118863 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T112620&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108580&fm=506894118863&tin=02508201610067®Number=0000000000091911&sum=300000 [11:26:17]StoreToDocumentArchive [11:26:17]shift 320 fd 108580 [11:26:17]save to /storage/0320/doc_00108580 [11:26:17]save last doc name /storage/0320/doc_00108580 to /storage/kkm_last_doc_name [11:26:17]save OK [11:26:17]Clear old archive folders... [11:26:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:26:17]tlvbuf is 00125290 [11:26:17]SAM_PROTO_ClearQueue [11:26:17]wFMCommunicate request_size=4 [11:26:17]MH_SAM_APDU [11:26:17]CAPDU: 80 09 00 00 [11:26:17]Write to MH i2c: E2 08 00 BE 31 80 09 00 00 00 00 00 00 61 [11:26:17]Write i2c OK [11:26:17]MH_I2C_Read... [11:26:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:17]Read from MH i2c: E2 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: E2 03 00 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: E2 03 00 BE 31 00 90 00 63 [11:26:17]RAPDU: 90 00 [11:26:17]wFMCommunicate OK [11:26:17]SAM_PROTO_ClearQueue done [11:26:17]KKMCreateOFDPacket [11:26:17]OFDProtocolAddRootSTLVToBuf [11:26:17]FM_MakeSignedData [11:26:17]FM_MakeSignedData [11:26:17]SAM_PROTO_SignData [11:26:17]wFMCommunicate request_size=4 [11:26:17]MH_SAM_APDU [11:26:17]CAPDU: 80 0D 01 02 [11:26:17]Write to MH i2c: E2 08 00 BF 31 80 0D 01 02 00 00 00 00 69 [11:26:17]Write i2c OK [11:26:17]MH_I2C_Read... [11:26:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:17]Read from MH i2c: E2 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: E2 03 00 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: E2 03 00 BF 31 00 90 00 64 [11:26:17]RAPDU: 90 00 [11:26:17]wFMCommunicate OK [11:26:17]wFMCommunicate request_size=255 [11:26:17]MH_SAM_APDU [11:26:17]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 A5 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 11 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 5C 30 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 24 A8 01 00 35 04 06 00 [11:26:17]Write to MH i2c: E2 02 01 C0 31 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 A5 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 11 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 5C 30 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 24 A8 01 00 35 04 06 00 00 00 BB [11:26:17]Write i2c OK [11:26:17]MH_I2C_Read... [11:26:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:17]Read from MH i2c: E2 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: E2 03 00 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: E2 03 00 C0 31 00 90 00 65 [11:26:17]RAPDU: 90 00 [11:26:17]wFMCommunicate OK [11:26:17]wFMCommunicate request_size=11 [11:26:17]MH_SAM_APDU [11:26:17]CAPDU: 80 0D 02 02 06 00 76 05 3E 6F CF [11:26:17]Write to MH i2c: E2 0E 00 C1 31 80 0D 02 02 06 00 00 76 05 3E 6F CF 00 00 6F [11:26:17]Write i2c OK [11:26:17]MH_I2C_Read... [11:26:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:17]Read from MH i2c: E2 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: E2 03 00 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: E2 03 00 C1 31 00 90 00 66 [11:26:17]RAPDU: 90 00 [11:26:17]wFMCommunicate OK [11:26:17]wFMCommunicate request_size=4 [11:26:17]MH_SAM_APDU [11:26:17]CAPDU: 80 0D 03 02 [11:26:17]Write to MH i2c: E2 08 00 C2 31 80 0D 03 02 00 00 00 00 6E [11:26:17]Write i2c OK [11:26:17]MH_I2C_Read... [11:26:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:17]Read from MH i2c: E2 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: E2 0B 00 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: E2 0B 00 C2 31 00 8B 95 5F 4C FE DF E9 90 90 00 90 [11:26:17]RAPDU: 8B 95 5F 4C FE DF E9 90 90 00 [11:26:17]wFMCommunicate OK [11:26:17]SAM_PROTO_SignData done [11:26:17]FM_MakeSignedData done [11:26:17]CreateOFDProtocolMessage [11:26:17]wFMCommunicate request_size=4 [11:26:17]MH_SAM_APDU [11:26:17]CAPDU: 80 11 00 00 [11:26:17]Write to MH i2c: E2 08 00 C3 31 80 11 00 00 00 00 00 00 6E [11:26:17]Write i2c OK [11:26:17]MH_I2C_Read... [11:26:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:17]Read from MH i2c: E2 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: E2 17 00 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: E2 17 00 C3 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 C2 [11:26:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [11:26:17]wFMCommunicate OK [11:26:17]CreateOFDProtocolMessage done [11:26:17]OFDSenderStorePacket 108580 [11:26:17]StoreOFDPacket docnum=108580 [11:26:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 01 00 00 CD 09 08 01 3B 36 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 A5 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 11 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 5C 30 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 24 A8 01 00 35 04 06 00 00 76 05 3E 6F CF 8B 95 5F 4C FE DF E9 90 [11:26:17]CheckFolder [11:26:17]dirname=/storage/ofd_packets [11:26:17]CheckFolder done [11:26:17]ProducePacketName [11:26:17]name=ofd_packets/00108580 [11:26:17]NVStorageSaveData ofd_packets/00108580 [11:26:17]File name is /storage/ofd_packets/00108580 [11:26:17]Write 302 bytes [11:26:17]NVStorageSaveData done [11:26:17]OFDSenderStorePacket done [11:26:17]KKMCreateOFDPacket done [11:26:17]NVStorageSaveData kkm_last_timestamp [11:26:17]File name is /storage/kkm_last_timestamp [11:26:17]Write 4 bytes [11:26:17]NVStorageSaveData done [11:26:17]ExternCall_PrintAddStr [11:26:17]wPrintStart [11:26:17]Write to MH i2c: 01 00 00 C4 31 F5 [11:26:17]Write i2c OK [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: 01 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: 01 07 00 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: 01 07 00 C4 31 00 00 00 00 00 FF 0F 0A [11:26:17]RasterBufferAndPrint [11:26:17]line Счет N : (1)1040758 [11:26:17]line ИНН: 02508201610067 [11:26:17]line Контрольно-Кассовый Чек [11:26:17]line ПРОДАЖА [11:26:17]line ТРК (МРК, ГНК) : 4 [11:26:17]line Товар: 2710194210 [11:26:17]line ДТ(л)-К-5 [11:26:17]line 42.320 * 70.90 [11:26:17]line = 3000.49 [11:26:17]line НДС 12% НСП 1% [11:26:17]line > о реализуемом товаре [11:26:17]line ОКРУГЛЕНИЕ: -0.49 [11:26:17]line ИТОГО: 3000.00 [11:26:17]line Внесено: 3000.00 [11:26:17]line СДАЧА: 0.00 [11:26:17]line НСП 1% : 26.55 [11:26:17]line НДС 12% : 318.64 [11:26:17]line Наличными: 3000.00 [11:26:17]line Безнал.: 0.00 [11:26:17]line Место: АЗС № 15 "Партнер Нефть" [11:26:17]line Адрес: 720001, г. Бишкек, пр. Жибек Жолу 164, 42.887788, 74.636011 [11:26:17]line СНО: Общий режим [11:26:17]line Чек 103 15.03.2024 11:26 [11:26:17]line Смена: 320 ФФД: 1.0 [11:26:17]line ЗНМ: 0300000266 [11:26:17]line РНМ: 0000000000091911 [11:26:17]line Версия ККМ: 001 [11:26:17]line ФМ: 0000000000871818 [11:26:17]line ФД: 108580 [11:26:17]line ФПД: 506894118863 [11:26:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240315T112620&type=1&operation_type=1&fn_number=0000000000871818&fd_number=108580&fm=506894118863&tin=02508201610067®Number=0000000000091911&sum=300000 [11:26:18]OFD Sender: Processing packet 108580 [packets to send 29, broken 28] [11:26:18]ProducePacketName [11:26:18]name=ofd_packets/00108580 [11:26:18]OFD Sender: To server: pG, [11:26:18]CommunicateWithHost lk.salyk.kg:30040 [11:26:18]ConnectInit lk.salyk.kg [11:26:18]written 0, free lines is 4095 [11:26:18]Connected sock=10 [11:26:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 01 00 00 CD 09 08 01 3B 36 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 A5 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 11 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 5C 30 F4 65 0E 04 04 00 40 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 24 A8 01 00 35 04 06 00 00 76 05 3E 6F CF 8B 95 5F 4C FE DF E9 90 [11:26: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 31 38 4F 00 00 00 7D B2 47 00 57 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 24 A8 01 00 F4 03 04 00 FC DB F3 65 B6 04 01 00 00 65 2B 1E 10 1B BF 7A 00 [11:26:18]CommunicateWithHost err = 0 [11:26:18]CheckOFDResponse [11:26:18]1017 (14) - 77093643461234 [11:26:18]1041 (16) - 0000000000871818 [11:26:18]1040 (4) - 108580 [11:26:18]1012 (4) - 15.03.2024 05:26 [11:26:18]1206 (1) - 0 [11:26:18]OFD Sender: Remove packet 108580 [11:26:18]ProducePacketName [11:26:18]name=ofd_packets/00108580 [11:26:18]NVStorageDeleteData [11:26:18]Write to MH i2c: 01 00 00 EF 31 20 [11:26:18]Write i2c OK [11:26:18]MH_I2C_Read... [11:26:18]Read from MH i2c: 01 [11:26:18]MH_I2C_Read... [11:26:18]Read from MH i2c: 01 07 00 [11:26:18]MH_I2C_Read... [11:26:18]Read from MH i2c: 01 07 00 EF 31 00 00 00 00 00 DC 0C 0F [11:26:18]RasterBufferAndPrint [11:26:18]line [11:26:18]line [11:26:18]line [11:26:18]line [11:26:18]line [11:26:18]written 0, free lines is 3298 [11:26:18]MH_Cut [11:26:18]Write to MH i2c: D1 01 00 F6 31 01 F9 [11:26:18]Write i2c OK [11:26:18]MH_I2C_Read... [11:26:18]Read from MH i2c: D1 [11:26:18]MH_I2C_Read... [11:26:18]Read from MH i2c: D1 01 00 [11:26:18]MH_I2C_Read... [11:26:18]Read from MH i2c: D1 01 00 F6 31 00 F8 [11:26:18]Write to MH i2c: 01 00 00 F7 31 28 [11:26:18]Write i2c OK [11:26:18]MH_I2C_Read... [11:26:18]OFD Sender: No OFD packet to send [11:26:19]*** Cut start [11:26:19]*** Purtial cut [11:26:19]*** Stage 1: CUTSNS_PIN = 1 [11:26:19]Read from MH i2c: 01 [11:26:19]MH_I2C_Read... [11:26:19]*** Stop cut motor [11:26:19]*** Cut end [11:26:19]Read from MH i2c: 01 07 00 [11:26:19]MH_I2C_Read... [11:26:19]Read from MH i2c: 01 07 00 F7 31 00 00 00 00 00 FF 0F 3D [11:26:19]process_action close_receipt done [11:26:19]requested_data is exist [11:26:19]produce_requested_data [11:26:19]requested_item fm.sn is exist - process it [11:26:19]wFMCommunicate request_size=4 [11:26:19]MH_SAM_APDU [11:26:19]CAPDU: 80 11 00 00 [11:26:19]Write to MH i2c: E2 08 00 F8 31 80 11 00 00 00 00 00 00 A3 [11:26:19]Write i2c OK [11:26:19]MH_I2C_Read... [11:26:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:19]Read from MH i2c: E2 [11:26:19]MH_I2C_Read... [11:26:19]Read from MH i2c: E2 17 00 [11:26:19]MH_I2C_Read... [11:26:19]Read from MH i2c: E2 17 00 F8 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 F7 [11:26:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [11:26:19]wFMCommunicate OK [11:26:19]requested_item fd.num is exist - process it [11:26:19]SAM_PROTO_GetFieldsCounters [11:26:19]wFMCommunicate request_size=4 [11:26:19]MH_SAM_APDU [11:26:19]CAPDU: 80 13 00 00 [11:26:19]Write to MH i2c: E2 08 00 F9 31 80 13 00 00 00 00 00 00 A6 [11:26:19]Write i2c OK [11:26:19]MH_I2C_Read... [11:26:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:19]Read from MH i2c: E2 [11:26:19]MH_I2C_Read... [11:26:19]Read from MH i2c: E2 62 00 [11:26:19]MH_I2C_Read... [11:26:19]Read from MH i2c: E2 62 00 F9 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 24 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [11:26:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 24 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:26:19]wFMCommunicate OK [11:26:19]SAM_PROTO_GetFieldsCounters done [11:26:19]requested_item shift.num is exist - process it [11:26:19]requested_item shift.opened is exist - process it [11:26:19]req_shift_opened [11:26:19]FM_GetShiftState [11:26:19]SAM_PROTO_GetShiftState [11:26:19]wFMCommunicate request_size=4 [11:26:19]MH_SAM_APDU [11:26:19]CAPDU: 80 13 01 00 [11:26:19]Write to MH i2c: E2 08 00 FA 31 80 13 01 00 00 00 00 00 A8 [11:26:19]Write i2c OK [11:26:19]MH_I2C_Read... [11:26:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:19]Read from MH i2c: E2 [11:26:19]MH_I2C_Read... [11:26:19]Read from MH i2c: E2 0E 00 [11:26:19]MH_I2C_Read... [11:26:19]Read from MH i2c: E2 0E 00 FA 31 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 DC [11:26:19]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [11:26:19]wFMCommunicate OK [11:26:19]SAM_PROTO_GetShiftState done [11:26:19]FM_GetShiftState done [11:26:19]req_shift_opened done [11:26:19]requested_item shift.open_date is exist - process it [11:26:19]req_shift_open_date [11:26:19]req_shift_open_date done [11:26:19]produce_requested_data done [11:26:19]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108580,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [11:26:19]process_action_free close_receipt [11:26:19]json_value_free [11:26:19]json_value_free done [11:26:19]process_json_proto returns [11:26:19]Send response to host [11:26:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108580,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [11:26:19]free response buf [11:26:19]execute_script done [11:26:19]execute_script returns [11:26:19]free content buf [11:26:19]Sock 9.Close socket [11:26:19]Sock 9.Thread stoped [11:26:23]OFD Sender: No OFD packet to send [11:26:28]OFD Sender: No OFD packet to send [11:26:33]OFD Sender: No OFD packet to send [11:26:38]OFD Sender: No OFD packet to send [11:26:43]OFD Sender: No OFD packet to send [11:26:48]OFD Sender: No OFD packet to send [11:26:53]OFD Sender: No OFD packet to send [11:26:58]OFD Sender: No OFD packet to send [11:27:03]OFD Sender: No OFD packet to send [11:27:08]OFD Sender: No OFD packet to send [11:27:13]OFD Sender: No OFD packet to send [11:27:18]OFD Sender: No OFD packet to send [11:27:23]OFD Sender: No OFD packet to send [11:27:28]OFD Sender: No OFD packet to send [11:27:33]OFD Sender: No OFD packet to send [11:27:38]OFD Sender: No OFD packet to send [11:27:43]OFD Sender: No OFD packet to send [11:27:45]int [11:27:45]Write to MH i2c: 01 00 00 FB 31 2C [11:27:45]*** FLAG_PRN_KEY set [11:27:45]Write i2c OK [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: 01 [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: 01 07 00 [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: 01 07 00 FB 31 00 08 00 00 00 FF 0F 49 [11:27:45]state=0 [11:27:45]Key pressed [11:27:45]Feed [11:27:45]Write to MH i2c: D8 00 00 FC 31 04 [11:27:45]Write i2c OK [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: D8 [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: D8 01 00 [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: D8 01 00 FC 31 00 05 [11:27:45]int [11:27:45]Write to MH i2c: 01 00 00 FD 31 2E [11:27:45]Write i2c OK [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: 01 [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: 01 07 00 [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: 01 07 00 FD 31 00 48 00 00 00 3C 00 B9 [11:27:45]state=2 [11:27:45]Key pressed [11:27:45]int [11:27:45]Write to MH i2c: 01 00 00 FE 31 2F [11:27:45]*** FLAG_PRN_KEY reset [11:27:45]Write i2c OK [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: 01 [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: 01 07 00 [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: 01 07 00 FE 31 00 00 00 00 00 F6 0F 3B [11:27:45]state=2 [11:27:45]Stop feed [11:27:48]OFD Sender: No OFD packet to send [11:27:53]OFD Sender: No OFD packet to send [11:27:58]OFD Sender: No OFD packet to send [11:28:03]OFD Sender: No OFD packet to send [11:28:05]accept exits with 8 [11:28:05]New connection [11:28:05]New thread 3067198820 created [11:28:05]Thread 3067342180 joined [11:28:05]Waiting for new connection... [11:28:05] Sock 8.Parse request [11:28:05]Sock 8.Check first char [11:28:05]Sock 8.First char is OK [11:28:05]request: POST /json_proto HTTP/1.0 [11:28:05]Method: POST [11:28:05]URL: /json_proto [11:28:05]Method is POST - this is cgi request [11:28:05]url: /json_proto [11:28:05]query_string will be loaded in cgi processing [11:28:05]execute_cgi json_proto POST (null) [11:28:05]execute_cgi path=json_proto method=POST [11:28:05]POST find Content-Length [11:28:05]Host: 172.17.32.69:8080 [11:28:05]Content-Length: 1198 [11:28:05]Content-Type: application/json [11:28:05] [11:28:05]POST finish read [11:28:05]Found Content-Length = 1198 [11:28:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040760\u000A15.03.2024 11:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 619.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3860581\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:05]execute_script... [11:28:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 15\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. \u000A\u0421\u0447\u0435\u0442 N : (1)1040760\u000A15.03.2024 11:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 619.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3860581\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:05]POST & json_proto [11:28:05]process_json_proto [11:28:05]json parsed OK: [11:28:05]protocol is kg_v1.0 [11:28:05]action value=print_text [11:28:05]process_action print_text [11:28:05]cmd_print_text [11:28:05]ExternCall_PrintAddStr [11:28:05]wPrintStart [11:28:05]Write to MH i2c: 01 00 00 FF 31 30 [11:28:05]Write i2c OK [11:28:05]MH_I2C_Read... [11:28:05]Read from MH i2c: 01 [11:28:05]MH_I2C_Read... [11:28:05]Read from MH i2c: 01 07 00 [11:28:05]MH_I2C_Read... [11:28:05]Read from MH i2c: 01 07 00 FF 31 00 00 00 00 00 FF 0F 45 [11:28:05]RasterBufferAndPrint [11:28:05]line *****ТОВАРНЫЙ ЧЕК***** [11:28:05]line АЗС 15 [11:28:05]line Партнер нефть [11:28:05]line 02508201610067 [11:28:05]line Кассир : Максатбек у Д. [11:28:05]line Счет N : (1)1040760 [11:28:05]line 15.03.2024 11:20 [11:28:05]line ПРОДАЖА [11:28:05]line ТРК (МРК, ГНК): 13 [11:28:05]line Вид ГСМ : 2710124130 [11:28:05]line Аи-92-К-5 [11:28:05]line 10.000 x 61.90 [11:28:05]line ИТОГ: 619.00 [11:28:05]line Тип оплаты: Талоны: Партнер нефть [11:28:05]line 3860581 [11:28:05]line ______________________ [11:28:05]line (подпись) [11:28:05]written 0, free lines is 4095 [11:28:05]Write to MH i2c: 01 00 00 14 32 46 [11:28:05]Write i2c OK [11:28:05]MH_I2C_Read... [11:28:05]Read from MH i2c: 01 [11:28:05]MH_I2C_Read... [11:28:05]Read from MH i2c: 01 07 00 [11:28:05]MH_I2C_Read... [11:28:05]Read from MH i2c: 01 07 00 14 32 00 00 00 00 00 F9 0D 53 [11:28:05]RasterBufferAndPrint [11:28:05]line [11:28:05]line [11:28:05]line [11:28:05]line [11:28:05]line [11:28:05]written 0, free lines is 3578 [11:28:05]MH_Cut [11:28:05]Write to MH i2c: D1 01 00 1B 32 01 1F [11:28:05]Write i2c OK [11:28:05]MH_I2C_Read... [11:28:05]Read from MH i2c: D1 [11:28:05]MH_I2C_Read... [11:28:05]Read from MH i2c: D1 01 00 [11:28:05]MH_I2C_Read... [11:28:05]Read from MH i2c: D1 01 00 1B 32 00 1E [11:28:05]Write to MH i2c: 01 00 00 1C 32 4E [11:28:05]Write i2c OK [11:28:05]MH_I2C_Read... [11:28:05]*** Cut start [11:28:05]*** Purtial cut [11:28:05]*** Stage 1: CUTSNS_PIN = 1 [11:28:06]Read from MH i2c: 01 [11:28:06]MH_I2C_Read... [11:28:06]Read from MH i2c: 01 07 00 [11:28:06]MH_I2C_Read... [11:28:06]*** Stop cut motor [11:28:06]*** Cut end [11:28:06]Read from MH i2c: 01 07 00 1C 32 00 00 00 00 00 FF 0F 63 [11:28:06]process_action print_text done [11:28:06]requested_data is exist [11:28:06]produce_requested_data [11:28:06]requested_item fm.sn is exist - process it [11:28:06]wFMCommunicate request_size=4 [11:28:06]MH_SAM_APDU [11:28:06]CAPDU: 80 11 00 00 [11:28:06]Write to MH i2c: E2 08 00 1D 32 80 11 00 00 00 00 00 00 C9 [11:28:06]Write i2c OK [11:28:06]MH_I2C_Read... [11:28:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:06]Read from MH i2c: E2 [11:28:06]MH_I2C_Read... [11:28:06]Read from MH i2c: E2 17 00 [11:28:06]MH_I2C_Read... [11:28:06]Read from MH i2c: E2 17 00 1D 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 1D [11:28:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [11:28:06]wFMCommunicate OK [11:28:06]requested_item fd.num is exist - process it [11:28:06]SAM_PROTO_GetFieldsCounters [11:28:06]wFMCommunicate request_size=4 [11:28:06]MH_SAM_APDU [11:28:06]CAPDU: 80 13 00 00 [11:28:06]Write to MH i2c: E2 08 00 1E 32 80 13 00 00 00 00 00 00 CC [11:28:06]Write i2c OK [11:28:06]MH_I2C_Read... [11:28:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:06]Read from MH i2c: E2 [11:28:06]MH_I2C_Read... [11:28:06]Read from MH i2c: E2 62 00 [11:28:06]MH_I2C_Read... [11:28:06]Read from MH i2c: E2 62 00 1E 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 24 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [11:28: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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 24 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:06]wFMCommunicate OK [11:28:06]SAM_PROTO_GetFieldsCounters done [11:28:06]requested_item shift.num is exist - process it [11:28:06]requested_item shift.opened is exist - process it [11:28:06]req_shift_opened [11:28:06]FM_GetShiftState [11:28:06]SAM_PROTO_GetShiftState [11:28:06]wFMCommunicate request_size=4 [11:28:06]MH_SAM_APDU [11:28:06]CAPDU: 80 13 01 00 [11:28:06]Write to MH i2c: E2 08 00 1F 32 80 13 01 00 00 00 00 00 CE [11:28:06]Write i2c OK [11:28:06]MH_I2C_Read... [11:28:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:06]Read from MH i2c: E2 [11:28:06]MH_I2C_Read... [11:28:06]Read from MH i2c: E2 0E 00 [11:28:06]MH_I2C_Read... [11:28:06]Read from MH i2c: E2 0E 00 1F 32 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 02 [11:28:06]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [11:28:06]wFMCommunicate OK [11:28:06]SAM_PROTO_GetShiftState done [11:28:06]FM_GetShiftState done [11:28:06]req_shift_opened done [11:28:06]requested_item shift.open_date is exist - process it [11:28:06]req_shift_open_date [11:28:06]req_shift_open_date done [11:28:06]produce_requested_data done [11:28:06]produce_requested_data return {"fm.sn":"0000000000871818","fd.num":108580,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [11:28:06]process_action_free print_text [11:28:06]json_value_free [11:28:06]json_value_free done [11:28:06]process_json_proto returns [11:28:06]Send response to host [11:28:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871818","fd.num":108580,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [11:28:06]free response buf [11:28:06]execute_script done [11:28:06]execute_script returns [11:28:06]free content buf [11:28:06]Sock 8.Close socket [11:28:06]Sock 8.Thread stoped [11:28:08]OFD Sender: No OFD packet to send [11:28:13]OFD Sender: No OFD packet to send [11:28:18]OFD Sender: No OFD packet to send [11:28:23]OFD Sender: No OFD packet to send [11:28:28]OFD Sender: No OFD packet to send [11:28:33]OFD Sender: No OFD packet to send [11:28:38]OFD Sender: No OFD packet to send [11:28:43]OFD Sender: No OFD packet to send [11:28:48]OFD Sender: No OFD packet to send [11:28:53]OFD Sender: No OFD packet to send [11:28:59]OFD Sender: No OFD packet to send [11:29:04]OFD Sender: No OFD packet to send [11:29:09]OFD Sender: No OFD packet to send [11:29:14]OFD Sender: No OFD packet to send [11:29:19]OFD Sender: No OFD packet to send [11:29:24]OFD Sender: No OFD packet to send [11:29:29]OFD Sender: No OFD packet to send [11:29:34]OFD Sender: No OFD packet to send [11:29:39]OFD Sender: No OFD packet to send [11:29:44]OFD Sender: No OFD packet to send [11:29:49]OFD Sender: No OFD packet to send [11:29:54]OFD Sender: No OFD packet to send [11:29:59]OFD Sender: No OFD packet to send [11:30:04]OFD Sender: No OFD packet to send [11:30:09]OFD Sender: No OFD packet to send [11:30:14]OFD Sender: No OFD packet to send [11:30:19]OFD Sender: No OFD packet to send [11:30:24]OFD Sender: No OFD packet to send [11:30:29]OFD Sender: No OFD packet to send [11:30:34]OFD Sender: No OFD packet to send [11:30:39]OFD Sender: No OFD packet to send [11:30:44]OFD Sender: No OFD packet to send [11:30:49]OFD Sender: No OFD packet to send [11:30:54]OFD Sender: No OFD packet to send [11:30:59]OFD Sender: No OFD packet to send [11:31:04]OFD Sender: No OFD packet to send [11:31:09]OFD Sender: No OFD packet to send [11:31:14]OFD Sender: No OFD packet to send [11:31:19]OFD Sender: No OFD packet to send [11:31:24]OFD Sender: No OFD packet to send [11:31:29]OFD Sender: No OFD packet to send [11:31:34]OFD Sender: No OFD packet to send [11:31:39]OFD Sender: No OFD packet to send [11:31:44]OFD Sender: No OFD packet to send [11:31:49]OFD Sender: No OFD packet to send [11:31:54]OFD Sender: No OFD packet to send [11:31:59]OFD Sender: No OFD packet to send [11:32:04]OFD Sender: No OFD packet to send [11:32:09]OFD Sender: No OFD packet to send [11:32:14]OFD Sender: No OFD packet to send [11:32:19]OFD Sender: No OFD packet to send [11:32:24]OFD Sender: No OFD packet to send [11:32:29]OFD Sender: No OFD packet to send [11:32:34]OFD Sender: No OFD packet to send [11:32:39]OFD Sender: No OFD packet to send [11:32:44]OFD Sender: No OFD packet to send [11:32:49]OFD Sender: No OFD packet to send [11:32:49]accept exits with 9 [11:32:49]New connection [11:32:49]New thread 3067342180 created [11:32:49]Thread 3067198820 joined [11:32:49]Waiting for new connection... [11:32:49] Sock 9.Parse request [11:32:49]Sock 9.Check first char [11:32:49]Sock 9.First char is OK [11:32:49]request: POST /json_proto HTTP/1.0 [11:32:49]Method: POST [11:32:49]URL: /json_proto [11:32:49]Method is POST - this is cgi request [11:32:49]url: /json_proto [11:32:49]query_string will be loaded in cgi processing [11:32:49]execute_cgi json_proto POST (null) [11:32:49]execute_cgi path=json_proto method=POST [11:32:49]POST find Content-Length [11:32:49]Host: 172.17.32.69:8080 [11:32:49]Content-Length: 215 [11:32:49]Content-Type: application/json [11:32:49] [11:32:49]POST finish read [11:32:49]Found Content-Length = 215 [11:32:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:49]execute_script... [11:32:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:49]POST & json_proto [11:32:49]process_json_proto [11:32:49]json parsed OK: [11:32:49]protocol is kg_v1.0 [11:32:49]action value=get_value [11:32:49]process_action get_value [11:32:49]cmd_get_value [11:32:49]process_action get_value done [11:32:49]requested_data is exist [11:32:49]produce_requested_data [11:32:49]requested_item kkm.sn is exist - process it [11:32:49]requested_item kkm.ver is exist - process it [11:32:49]requested_item fm.sn is exist - process it [11:32:49]wFMCommunicate request_size=4 [11:32:49]MH_SAM_APDU [11:32:49]CAPDU: 80 11 00 00 [11:32:49]Write to MH i2c: E2 08 00 20 32 80 11 00 00 00 00 00 00 CC [11:32:49]Write i2c OK [11:32:49]MH_I2C_Read... [11:32:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:49]Read from MH i2c: E2 [11:32:49]MH_I2C_Read... [11:32:49]Read from MH i2c: E2 17 00 [11:32:49]MH_I2C_Read... [11:32:49]Read from MH i2c: E2 17 00 20 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 20 [11:32:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [11:32:49]wFMCommunicate OK [11:32:49]requested_item fd.num is exist - process it [11:32:49]SAM_PROTO_GetFieldsCounters [11:32:49]wFMCommunicate request_size=4 [11:32:49]MH_SAM_APDU [11:32:49]CAPDU: 80 13 00 00 [11:32:49]Write to MH i2c: E2 08 00 21 32 80 13 00 00 00 00 00 00 CF [11:32:49]Write i2c OK [11:32:49]MH_I2C_Read... [11:32:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:32:49]Read from MH i2c: E2 [11:32:49]MH_I2C_Read... [11:32:49]Read from MH i2c: E2 62 00 [11:32:49]MH_I2C_Read... [11:32:49]Read from MH i2c: E2 62 00 21 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 24 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [11:32:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 24 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:32:49]wFMCommunicate OK [11:32:49]SAM_PROTO_GetFieldsCounters done [11:32:49]requested_item shift.num is exist - process it [11:32:49]requested_item shift.opened is exist - process it [11:32:49]req_shift_opened [11:32:49]FM_GetShiftState [11:32:49]SAM_PROTO_GetShiftState [11:32:49]wFMCommunicate request_size=4 [11:32:49]MH_SAM_APDU [11:32:49]CAPDU: 80 13 01 00 [11:32:49]Write to MH i2c: E2 08 00 22 32 80 13 01 00 00 00 00 00 D1 [11:32:49]Write i2c OK [11:32:49]MH_I2C_Read... [11:32:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:49]Read from MH i2c: E2 [11:32:49]MH_I2C_Read... [11:32:49]Read from MH i2c: E2 0E 00 [11:32:49]MH_I2C_Read... [11:32:49]Read from MH i2c: E2 0E 00 22 32 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 05 [11:32:49]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [11:32:49]wFMCommunicate OK [11:32:49]SAM_PROTO_GetShiftState done [11:32:49]FM_GetShiftState done [11:32:49]req_shift_opened done [11:32:49]requested_item shift.open_date is exist - process it [11:32:49]req_shift_open_date [11:32:49]req_shift_open_date done [11:32:49]produce_requested_data done [11:32:49]produce_requested_data return {"kkm.sn":"0300000266","kkm.ver":"001","fm.sn":"0000000000871818","fd.num":108580,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [11:32:49]process_action_free get_value [11:32:49]json_value_free [11:32:49]json_value_free done [11:32:49]process_json_proto returns [11:32:49]Send response to host [11:32:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000266","kkm.ver":"001","fm.sn":"0000000000871818","fd.num":108580,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [11:32:49]free response buf [11:32:49]execute_script done [11:32:49]execute_script returns [11:32:49]free content buf [11:32:49]Sock 9.Close socket [11:32:49]Sock 9.Thread stoped [11:32:49]accept exits with 8 [11:32:49]New connection [11:32:49]New thread 3067198820 created [11:32:49]Thread 3067342180 joined [11:32:49]Waiting for new connection... [11:32:49] Sock 8.Parse request [11:32:49]Sock 8.Check first char [11:32:49]Sock 8.First char is OK [11:32:49]request: POST /json_proto HTTP/1.0 [11:32:49]Method: POST [11:32:49]URL: /json_proto [11:32:49]Method is POST - this is cgi request [11:32:49]url: /json_proto [11:32:49]query_string will be loaded in cgi processing [11:32:49]execute_cgi json_proto POST (null) [11:32:49]execute_cgi path=json_proto method=POST [11:32:49]POST find Content-Length [11:32:49]Host: 172.17.32.69:8080 [11:32:49]Content-Length: 331 [11:32:49]Content-Type: application/json [11:32:49] [11:32:49]POST finish read [11:32:49]Found Content-Length = 331 [11:32:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:32:49]execute_script... [11:32:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:32:50]POST & json_proto [11:32:50]process_json_proto [11:32:50]json parsed OK: [11:32:50]protocol is kg_v1.0 [11:32:50]action value=get_value [11:32:50]process_action get_value [11:32:50]cmd_get_value [11:32:50]process_action get_value done [11:32:50]requested_data is exist [11:32:50]produce_requested_data [11:32:50]requested_item fm.sale.total is exist - process it [11:32:50]SAM_PROTO_GetFMData [11:32:50]wFMCommunicate request_size=4 [11:32:50]MH_SAM_APDU [11:32:50]CAPDU: 80 13 03 00 [11:32:50]Write to MH i2c: E2 08 00 23 32 80 13 03 00 00 00 00 00 D4 [11:32:50]Write i2c OK [11:32:50]MH_I2C_Read... [11:32:50]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:32:50]Read from MH i2c: E2 [11:32:50]MH_I2C_Read... [11:32:50]Read from MH i2c: E2 FD 00 [11:32:50]MH_I2C_Read... [11:32:50]Read from MH i2c: E2 FD 00 23 32 00 C5 04 85 04 C1 04 6E 04 04 00 A4 A5 01 00 69 04 A3 00 6F 04 04 00 73 9F 01 00 B1 04 05 00 7D 93 E4 F0 01 70 04 05 00 36 59 EE 92 01 72 04 04 00 47 3A F6 5D 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 21 82 C8 34 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 FE F4 65 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 31 06 00 00 B1 04 04 00 B8 82 30 0D 70 04 04 00 B8 82 30 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C9 A2 66 01 EF 03 09 90 00 0F [11:32:50]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 A4 A5 01 00 69 04 A3 00 6F 04 04 00 73 9F 01 00 B1 04 05 00 7D 93 E4 F0 01 70 04 05 00 36 59 EE 92 01 72 04 04 00 47 3A F6 5D 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 21 82 C8 34 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 FE F4 65 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 31 06 00 00 B1 04 04 00 B8 82 30 0D 70 04 04 00 B8 82 30 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C9 A2 66 01 EF 03 09 90 00 [11:32:50]wFMCommunicate OK [11:32:50]wFMCommunicate request_size=4 [11:32:50]MH_SAM_APDU [11:32:50]CAPDU: 80 17 00 00 [11:32:50]Write to MH i2c: E2 08 00 24 32 80 17 00 00 00 00 00 00 D6 [11:32:50]Write i2c OK [11:32:50]MH_I2C_Read... [11:32:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:32:50]Read from MH i2c: E2 [11:32:50]MH_I2C_Read... [11:32:50]Read from MH i2c: E2 FD 00 [11:32:50]MH_I2C_Read... [11:32:50]Read from MH i2c: E2 FD 00 24 32 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 5D E2 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 E8 [11:32:50]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 5D E2 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [11:32:50]wFMCommunicate OK [11:32:50]wFMCommunicate request_size=4 [11:32:50]MH_SAM_APDU [11:32:50]CAPDU: 80 17 00 00 [11:32:50]Write to MH i2c: E2 08 00 25 32 80 17 00 00 00 00 00 00 D7 [11:32:50]Write i2c OK [11:32:50]MH_I2C_Read... [11:32:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:32:51]Read from MH i2c: E2 [11:32:51]MH_I2C_Read... [11:32:51]Read from MH i2c: E2 FD 00 [11:32:51]MH_I2C_Read... [11:32:51]Read from MH i2c: E2 FD 00 25 32 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 E9 [11:32:51]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [11:32:51]wFMCommunicate OK [11:32:51]wFMCommunicate request_size=4 [11:32:51]MH_SAM_APDU [11:32:51]CAPDU: 80 17 00 00 [11:32:51]Write to MH i2c: E2 08 00 26 32 80 17 00 00 00 00 00 00 D8 [11:32:51]Write i2c OK [11:32:51]MH_I2C_Read... [11:32:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:32:51]Read from MH i2c: E2 [11:32:51]MH_I2C_Read... [11:32:51]Read from MH i2c: E2 FD 00 [11:32:51]MH_I2C_Read... [11:32:51]Read from MH i2c: E2 FD 00 26 32 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 64 [11:32:51]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:32:51]wFMCommunicate OK [11:32:51]wFMCommunicate request_size=4 [11:32:51]MH_SAM_APDU [11:32:51]CAPDU: 80 17 00 00 [11:32:51]Write to MH i2c: E2 08 00 27 32 80 17 00 00 00 00 00 00 D9 [11:32:51]Write i2c OK [11:32:51]MH_I2C_Read... [11:32:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [11:32:51]Read from MH i2c: E2 [11:32:51]MH_I2C_Read... [11:32:51]Read from MH i2c: E2 E2 00 [11:32:51]MH_I2C_Read... [11:32:51]Read from MH i2c: E2 E2 00 27 32 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B7 [11:32:51]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:32:51]wFMCommunicate OK [11:32:51]SAM_PROTO_GetFMData done [11:32:51]requested_item fm.sale_refund.total is exist - process it [11:32:51]requested_item fm.buy.total is exist - process it [11:32:51]requested_item shift.sale.total is exist - process it [11:32:51]SAM_PROTO_GetShiftData [11:32:51]wFMCommunicate request_size=4 [11:32:51]MH_SAM_APDU [11:32:51]CAPDU: 80 13 02 00 [11:32:51]Write to MH i2c: E2 08 00 28 32 80 13 02 00 00 00 00 00 D8 [11:32:51]Write i2c OK [11:32:51]MH_I2C_Read... [11:32:52]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:32:52]Read from MH i2c: E2 [11:32:52]MH_I2C_Read... [11:32:52]Read from MH i2c: E2 FD 00 [11:32:52]MH_I2C_Read... [11:32:52]Read from MH i2c: E2 FD 00 28 32 00 B9 04 AA 04 B5 04 6E 04 04 00 67 00 00 00 69 04 9C 00 6F 04 04 00 65 00 00 00 B1 04 03 00 15 DF 7A 70 04 03 00 94 FF 66 72 04 03 00 81 DF 13 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 78 0D 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 16 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 B8 C1 03 70 04 03 00 B8 C1 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 26 66 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 0F [11:32:52]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 67 00 00 00 69 04 9C 00 6F 04 04 00 65 00 00 00 B1 04 03 00 15 DF 7A 70 04 03 00 94 FF 66 72 04 03 00 81 DF 13 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 78 0D 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 16 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 B8 C1 03 70 04 03 00 B8 C1 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 26 66 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [11:32:52]wFMCommunicate OK [11:32:52]wFMCommunicate request_size=4 [11:32:52]MH_SAM_APDU [11:32:52]CAPDU: 80 17 00 00 [11:32:52]Write to MH i2c: E2 08 00 29 32 80 17 00 00 00 00 00 00 DB [11:32:52]Write i2c OK [11:32:52]MH_I2C_Read... [11:32:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:32:52]Read from MH i2c: E2 [11:32:52]MH_I2C_Read... [11:32:52]Read from MH i2c: E2 FD 00 [11:32:52]MH_I2C_Read... [11:32:52]Read from MH i2c: E2 FD 00 29 32 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 82 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 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 90 00 24 [11:32:52]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 82 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 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 90 00 [11:32:52]wFMCommunicate OK [11:32:52]wFMCommunicate request_size=4 [11:32:52]MH_SAM_APDU [11:32:52]CAPDU: 80 17 00 00 [11:32:52]Write to MH i2c: E2 08 00 2A 32 80 17 00 00 00 00 00 00 DC [11:32:52]Write i2c OK [11:32:52]MH_I2C_Read... [11:32:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:32:52]Read from MH i2c: E2 [11:32:52]MH_I2C_Read... [11:32:52]Read from MH i2c: E2 FD 00 [11:32:52]MH_I2C_Read... [11:32:52]Read from MH i2c: E2 FD 00 2A 32 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 04 [11:32:52]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [11:32:52]wFMCommunicate OK [11:32:52]wFMCommunicate request_size=4 [11:32:52]MH_SAM_APDU [11:32:52]CAPDU: 80 17 00 00 [11:32:52]Write to MH i2c: E2 08 00 2B 32 80 17 00 00 00 00 00 00 DD [11:32:52]Write i2c OK [11:32:52]MH_I2C_Read... [11:32:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:32:52]Read from MH i2c: E2 [11:32:52]MH_I2C_Read... [11:32:52]Read from MH i2c: E2 FD 00 [11:32:52]MH_I2C_Read... [11:32:52]Read from MH i2c: E2 FD 00 2B 32 00 EF 03 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 90 00 55 [11:32:52]RAPDU: EF 03 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 90 00 [11:32:53]wFMCommunicate OK [11:32:53]wFMCommunicate request_size=4 [11:32:53]MH_SAM_APDU [11:32:53]CAPDU: 80 17 00 00 [11:32:53]Write to MH i2c: E2 08 00 2C 32 80 17 00 00 00 00 00 00 DE [11:32:53]Write i2c OK [11:32:53]MH_I2C_Read... [11:32:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [11:32:53]Read from MH i2c: E2 [11:32:53]MH_I2C_Read... [11:32:53]Read from MH i2c: E2 D6 00 [11:32:53]MH_I2C_Read... [11:32:53]Read from MH i2c: E2 D6 00 2C 32 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C0 [11:32:53]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:32:53]wFMCommunicate OK [11:32:53]SAM_PROTO_GetShiftData done [11:32:53]requested_item shift.sale.total_cash is exist - process it [11:32:53]requested_item shift.sale_refund.total is exist - process it [11:32:53]requested_item shift.sale_refund.total_cash is exist - process it [11:32:53]requested_item shift.buy.total is exist - process it [11:32:53]requested_item shift.buy.total_cash is exist - process it [11:32:53]produce_requested_data done [11:32:53]produce_requested_data return {"fm.sale.total":83364791.01,"fm.sale_refund.total":2212830.00,"fm.buy.total":0.00,"shift.sale.total":80525.01,"shift.sale.total_cash":67501.00,"shift.sale_refund.total":2462.00,"shift.sale_refund.total_cash":2462.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [11:32:53]process_action_free get_value [11:32:53]json_value_free [11:32:53]json_value_free done [11:32:53]process_json_proto returns [11:32:53]Send response to host [11:32:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":83364791.01,"fm.sale_refund.total":2212830.00,"fm.buy.total":0.00,"shift.sale.total":80525.01,"shift.sale.total_cash":67501.00,"shift.sale_refund.total":2462.00,"shift.sale_refund.total_cash":2462.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [11:32:53]free response buf [11:32:53]execute_script done [11:32:53]execute_script returns [11:32:53]free content buf [11:32:53]Sock 8.Close socket [11:32:53]Sock 8.Thread stoped [11:32:53]accept exits with 9 [11:32:53]New connection [11:32:53]New thread 3067342180 created [11:32:53]Thread 3067198820 joined [11:32:53]Waiting for new connection... [11:32:53] Sock 9.Parse request [11:32:53]Sock 9.Check first char [11:32:53]Sock 9.First char is OK [11:32:53]request: POST /json_proto HTTP/1.0 [11:32:53]Method: POST [11:32:53]URL: /json_proto [11:32:53]Method is POST - this is cgi request [11:32:53]url: /json_proto [11:32:53]query_string will be loaded in cgi processing [11:32:53]execute_cgi json_proto POST (null) [11:32:53]execute_cgi path=json_proto method=POST [11:32:53]POST find Content-Length [11:32:53]Host: 172.17.32.69:8080 [11:32:53]Content-Length: 331 [11:32:53]Content-Type: application/json [11:32:53] [11:32:53]POST finish read [11:32:53]Found Content-Length = 331 [11:32:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:32:53]execute_script... [11:32:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:32:53]POST & json_proto [11:32:53]process_json_proto [11:32:53]json parsed OK: [11:32:53]protocol is kg_v1.0 [11:32:53]action value=get_value [11:32:53]process_action get_value [11:32:53]cmd_get_value [11:32:53]process_action get_value done [11:32:53]requested_data is exist [11:32:53]produce_requested_data [11:32:53]requested_item fm.sale.total is exist - process it [11:32:53]SAM_PROTO_GetFMData [11:32:53]wFMCommunicate request_size=4 [11:32:53]MH_SAM_APDU [11:32:53]CAPDU: 80 13 03 00 [11:32:53]Write to MH i2c: E2 08 00 2D 32 80 13 03 00 00 00 00 00 DE [11:32:53]Write i2c OK [11:32:53]MH_I2C_Read... [11:32:53]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:32:53]Read from MH i2c: E2 [11:32:53]MH_I2C_Read... [11:32:53]Read from MH i2c: E2 FD 00 [11:32:53]MH_I2C_Read... [11:32:53]Read from MH i2c: E2 FD 00 2D 32 00 C5 04 85 04 C1 04 6E 04 04 00 A4 A5 01 00 69 04 A3 00 6F 04 04 00 73 9F 01 00 B1 04 05 00 7D 93 E4 F0 01 70 04 05 00 36 59 EE 92 01 72 04 04 00 47 3A F6 5D 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 21 82 C8 34 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 FE F4 65 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 31 06 00 00 B1 04 04 00 B8 82 30 0D 70 04 04 00 B8 82 30 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C9 A2 66 01 EF 03 09 90 00 19 [11:32:53]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 A4 A5 01 00 69 04 A3 00 6F 04 04 00 73 9F 01 00 B1 04 05 00 7D 93 E4 F0 01 70 04 05 00 36 59 EE 92 01 72 04 04 00 47 3A F6 5D 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 21 82 C8 34 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 FE F4 65 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 31 06 00 00 B1 04 04 00 B8 82 30 0D 70 04 04 00 B8 82 30 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C9 A2 66 01 EF 03 09 90 00 [11:32:53]wFMCommunicate OK [11:32:53]wFMCommunicate request_size=4 [11:32:53]MH_SAM_APDU [11:32:53]CAPDU: 80 17 00 00 [11:32:53]Write to MH i2c: E2 08 00 2E 32 80 17 00 00 00 00 00 00 E0 [11:32:53]Write i2c OK [11:32:53]MH_I2C_Read... [11:32:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:32:54]Read from MH i2c: E2 [11:32:54]MH_I2C_Read... [11:32:54]Read from MH i2c: E2 FD 00 [11:32:54]MH_I2C_Read... [11:32:54]Read from MH i2c: E2 FD 00 2E 32 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 5D E2 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 F2 [11:32:54]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 5D E2 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [11:32:54]wFMCommunicate OK [11:32:54]wFMCommunicate request_size=4 [11:32:54]MH_SAM_APDU [11:32:54]CAPDU: 80 17 00 00 [11:32:54]Write to MH i2c: E2 08 00 2F 32 80 17 00 00 00 00 00 00 E1 [11:32:54]Write i2c OK [11:32:54]MH_I2C_Read... [11:32:54]OFD Sender: No OFD packet to send [11:32:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:32:54]Read from MH i2c: E2 [11:32:54]MH_I2C_Read... [11:32:54]Read from MH i2c: E2 FD 00 [11:32:54]MH_I2C_Read... [11:32:54]Read from MH i2c: E2 FD 00 2F 32 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 F3 [11:32:54]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [11:32:54]wFMCommunicate OK [11:32:54]wFMCommunicate request_size=4 [11:32:54]MH_SAM_APDU [11:32:54]CAPDU: 80 17 00 00 [11:32:54]Write to MH i2c: E2 08 00 30 32 80 17 00 00 00 00 00 00 E2 [11:32:54]Write i2c OK [11:32:54]MH_I2C_Read... [11:32:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:32:54]Read from MH i2c: E2 [11:32:54]MH_I2C_Read... [11:32:54]Read from MH i2c: E2 FD 00 [11:32:54]MH_I2C_Read... [11:32:54]Read from MH i2c: E2 FD 00 30 32 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6E [11:32:54]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:32:54]wFMCommunicate OK [11:32:54]wFMCommunicate request_size=4 [11:32:54]MH_SAM_APDU [11:32:54]CAPDU: 80 17 00 00 [11:32:54]Write to MH i2c: E2 08 00 31 32 80 17 00 00 00 00 00 00 E3 [11:32:54]Write i2c OK [11:32:54]MH_I2C_Read... [11:32:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [11:32:55]Read from MH i2c: E2 [11:32:55]MH_I2C_Read... [11:32:55]Read from MH i2c: E2 E2 00 [11:32:55]MH_I2C_Read... [11:32:55]Read from MH i2c: E2 E2 00 31 32 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C1 [11:32:55]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:32:55]wFMCommunicate OK [11:32:55]SAM_PROTO_GetFMData done [11:32:55]requested_item fm.sale_refund.total is exist - process it [11:32:55]requested_item fm.buy.total is exist - process it [11:32:55]requested_item shift.sale.total is exist - process it [11:32:55]SAM_PROTO_GetShiftData [11:32:55]wFMCommunicate request_size=4 [11:32:55]MH_SAM_APDU [11:32:55]CAPDU: 80 13 02 00 [11:32:55]Write to MH i2c: E2 08 00 32 32 80 13 02 00 00 00 00 00 E2 [11:32:55]Write i2c OK [11:32:55]MH_I2C_Read... [11:32:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:32:55]Read from MH i2c: E2 [11:32:55]MH_I2C_Read... [11:32:55]Read from MH i2c: E2 FD 00 [11:32:55]MH_I2C_Read... [11:32:55]Read from MH i2c: E2 FD 00 32 32 00 B9 04 AA 04 B5 04 6E 04 04 00 67 00 00 00 69 04 9C 00 6F 04 04 00 65 00 00 00 B1 04 03 00 15 DF 7A 70 04 03 00 94 FF 66 72 04 03 00 81 DF 13 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 78 0D 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 16 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 B8 C1 03 70 04 03 00 B8 C1 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 26 66 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 19 [11:32:55]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 67 00 00 00 69 04 9C 00 6F 04 04 00 65 00 00 00 B1 04 03 00 15 DF 7A 70 04 03 00 94 FF 66 72 04 03 00 81 DF 13 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 78 0D 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 16 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 B8 C1 03 70 04 03 00 B8 C1 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 26 66 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [11:32:55]wFMCommunicate OK [11:32:55]wFMCommunicate request_size=4 [11:32:55]MH_SAM_APDU [11:32:55]CAPDU: 80 17 00 00 [11:32:55]Write to MH i2c: E2 08 00 33 32 80 17 00 00 00 00 00 00 E5 [11:32:55]Write i2c OK [11:32:55]MH_I2C_Read... [11:32:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:32:56]Read from MH i2c: E2 [11:32:56]MH_I2C_Read... [11:32:56]Read from MH i2c: E2 FD 00 [11:32:56]MH_I2C_Read... [11:32:56]Read from MH i2c: E2 FD 00 33 32 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 82 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 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 90 00 2E [11:32:56]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 82 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 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 90 00 [11:32:56]wFMCommunicate OK [11:32:56]wFMCommunicate request_size=4 [11:32:56]MH_SAM_APDU [11:32:56]CAPDU: 80 17 00 00 [11:32:56]Write to MH i2c: E2 08 00 34 32 80 17 00 00 00 00 00 00 E6 [11:32:56]Write i2c OK [11:32:56]MH_I2C_Read... [11:32:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:32:56]Read from MH i2c: E2 [11:32:56]MH_I2C_Read... [11:32:56]Read from MH i2c: E2 FD 00 [11:32:56]MH_I2C_Read... [11:32:56]Read from MH i2c: E2 FD 00 34 32 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 0E [11:32:56]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [11:32:56]wFMCommunicate OK [11:32:56]wFMCommunicate request_size=4 [11:32:56]MH_SAM_APDU [11:32:56]CAPDU: 80 17 00 00 [11:32:56]Write to MH i2c: E2 08 00 35 32 80 17 00 00 00 00 00 00 E7 [11:32:56]Write i2c OK [11:32:56]MH_I2C_Read... [11:32:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:32:57]Read from MH i2c: E2 [11:32:57]MH_I2C_Read... [11:32:57]Read from MH i2c: E2 FD 00 [11:32:57]MH_I2C_Read... [11:32:57]Read from MH i2c: E2 FD 00 35 32 00 EF 03 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 90 00 5F [11:32:57]RAPDU: EF 03 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 90 00 [11:32:57]wFMCommunicate OK [11:32:57]wFMCommunicate request_size=4 [11:32:57]MH_SAM_APDU [11:32:57]CAPDU: 80 17 00 00 [11:32:57]Write to MH i2c: E2 08 00 36 32 80 17 00 00 00 00 00 00 E8 [11:32:57]Write i2c OK [11:32:57]MH_I2C_Read... [11:32:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [11:32:57]Read from MH i2c: E2 [11:32:57]MH_I2C_Read... [11:32:57]Read from MH i2c: E2 D6 00 [11:32:57]MH_I2C_Read... [11:32:57]Read from MH i2c: E2 D6 00 36 32 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 CA [11:32:57]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:32:57]wFMCommunicate OK [11:32:57]SAM_PROTO_GetShiftData done [11:32:57]requested_item shift.sale.total_cash is exist - process it [11:32:57]requested_item shift.sale_refund.total is exist - process it [11:32:57]requested_item shift.sale_refund.total_cash is exist - process it [11:32:57]requested_item shift.buy.total is exist - process it [11:32:57]requested_item shift.buy.total_cash is exist - process it [11:32:57]produce_requested_data done [11:32:57]produce_requested_data return {"fm.sale.total":83364791.01,"fm.sale_refund.total":2212830.00,"fm.buy.total":0.00,"shift.sale.total":80525.01,"shift.sale.total_cash":67501.00,"shift.sale_refund.total":2462.00,"shift.sale_refund.total_cash":2462.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [11:32:57]process_action_free get_value [11:32:57]json_value_free [11:32:57]json_value_free done [11:32:57]process_json_proto returns [11:32:57]Send response to host [11:32:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":83364791.01,"fm.sale_refund.total":2212830.00,"fm.buy.total":0.00,"shift.sale.total":80525.01,"shift.sale.total_cash":67501.00,"shift.sale_refund.total":2462.00,"shift.sale_refund.total_cash":2462.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [11:32:57]free response buf [11:32:57]execute_script done [11:32:57]execute_script returns [11:32:57]free content buf [11:32:57]Sock 9.Close socket [11:32:57]Sock 9.Thread stoped [11:32:57]accept exits with 8 [11:32:57]New connection [11:32:57]New thread 3067198820 created [11:32:57]Thread 3067342180 joined [11:32:57]Waiting for new connection... [11:32:57] Sock 8.Parse request [11:32:57]Sock 8.Check first char [11:32:57]Sock 8.First char is OK [11:32:57]request: POST /json_proto HTTP/1.0 [11:32:57]Method: POST [11:32:57]URL: /json_proto [11:32:57]Method is POST - this is cgi request [11:32:57]url: /json_proto [11:32:57]query_string will be loaded in cgi processing [11:32:57]execute_cgi json_proto POST (null) [11:32:57]execute_cgi path=json_proto method=POST [11:32:57]POST find Content-Length [11:32:57]Host: 172.17.32.69:8080 [11:32:57]Content-Length: 270 [11:32:57]Content-Type: application/json [11:32:57] [11:32:57]POST finish read [11:32:57]Found Content-Length = 270 [11:32:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:57]execute_script... [11:32:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:57]POST & json_proto [11:32:57]process_json_proto [11:32:57]json parsed OK: [11:32:57]protocol is kg_v1.0 [11:32:57]action value=x_report [11:32:57]process_action x_report [11:32:57]cmd_x_report [11:32:57]MH_GetDate [11:32:57]Write to MH i2c: F0 00 00 37 32 58 [11:32:57]Write i2c OK [11:32:57]MH_I2C_Read... [11:32:57]Read from MH i2c: F0 [11:32:57]MH_I2C_Read... [11:32:57]Read from MH i2c: F0 09 00 [11:32:57]MH_I2C_Read... [11:32:57]Read from MH i2c: F0 09 00 37 32 00 ED 31 F4 65 D5 0F D3 65 F4 [11:32:57]GetLastDocTimeStamp 1710501980 [11:32:57]current date 1710502381 [11:32:57]FM_GetShiftState [11:32:57]SAM_PROTO_GetShiftState [11:32:57]wFMCommunicate request_size=4 [11:32:57]MH_SAM_APDU [11:32:57]CAPDU: 80 13 01 00 [11:32:57]Write to MH i2c: E2 08 00 38 32 80 13 01 00 00 00 00 00 E7 [11:32:57]Write i2c OK [11:32:57]MH_I2C_Read... [11:32:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:57]Read from MH i2c: E2 [11:32:57]MH_I2C_Read... [11:32:57]Read from MH i2c: E2 0E 00 [11:32:57]MH_I2C_Read... [11:32:57]Read from MH i2c: E2 0E 00 38 32 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 1B [11:32:57]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [11:32:57]wFMCommunicate OK [11:32:57]SAM_PROTO_GetShiftState done [11:32:57]FM_GetShiftState done [11:32:57]KKMCreateXReportDocument [11:32:57]Load OK [11:32:57]Malloc new data [11:32:57]MH_GetDate [11:32:57]Write to MH i2c: F0 00 00 39 32 5A [11:32:57]Write i2c OK [11:32:57]MH_I2C_Read... [11:32:57]Read from MH i2c: F0 [11:32:57]MH_I2C_Read... [11:32:57]Read from MH i2c: F0 09 00 [11:32:57]MH_I2C_Read... [11:32:57]Read from MH i2c: F0 09 00 39 32 00 ED 31 F4 65 D5 0F D3 65 F6 [11:32:57]Malloc new data [11:32:57]Malloc new data [11:32:57]wFMCommunicate request_size=4 [11:32:57]MH_SAM_APDU [11:32:57]CAPDU: 80 11 00 00 [11:32:57]Write to MH i2c: E2 08 00 3A 32 80 11 00 00 00 00 00 00 E6 [11:32:57]Write i2c OK [11:32:57]MH_I2C_Read... [11:32:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:57]Read from MH i2c: E2 [11:32:57]MH_I2C_Read... [11:32:57]Read from MH i2c: E2 17 00 [11:32:57]MH_I2C_Read... [11:32:57]Read from MH i2c: E2 17 00 3A 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 3A [11:32:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [11:32:57]wFMCommunicate OK [11:32:57]SAM_PROTO_GetFieldsCounters [11:32:57]wFMCommunicate request_size=4 [11:32:57]MH_SAM_APDU [11:32:57]CAPDU: 80 13 00 00 [11:32:57]Write to MH i2c: E2 08 00 3B 32 80 13 00 00 00 00 00 00 E9 [11:32:57]Write i2c OK [11:32:57]MH_I2C_Read... [11:32:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:32:57]Read from MH i2c: E2 [11:32:57]MH_I2C_Read... [11:32:57]Read from MH i2c: E2 62 00 [11:32:57]MH_I2C_Read... [11:32:57]Read from MH i2c: E2 62 00 3B 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 24 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [11:32:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 24 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:32:57]wFMCommunicate OK [11:32:57]SAM_PROTO_GetFieldsCounters done [11:32:57]Malloc new data [11:32:57]Malloc new data [11:32:57]Malloc new data [11:32:57]KKMCreateXReportDocument OK [11:32:57]KKMSetXReportData OK [11:32:57]KKMPrepareXReportFMData [11:32:57]SAM_PROTO_GetShiftData [11:32:57]wFMCommunicate request_size=4 [11:32:57]MH_SAM_APDU [11:32:57]CAPDU: 80 13 02 00 [11:32:57]Write to MH i2c: E2 08 00 3C 32 80 13 02 00 00 00 00 00 EC [11:32:57]Write i2c OK [11:32:57]MH_I2C_Read... [11:32:58]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:32:58]Read from MH i2c: E2 [11:32:58]MH_I2C_Read... [11:32:58]Read from MH i2c: E2 FD 00 [11:32:58]MH_I2C_Read... [11:32:58]Read from MH i2c: E2 FD 00 3C 32 00 B9 04 AA 04 B5 04 6E 04 04 00 67 00 00 00 69 04 9C 00 6F 04 04 00 65 00 00 00 B1 04 03 00 15 DF 7A 70 04 03 00 94 FF 66 72 04 03 00 81 DF 13 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 78 0D 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 16 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 B8 C1 03 70 04 03 00 B8 C1 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 26 66 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 23 [11:32:58]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 67 00 00 00 69 04 9C 00 6F 04 04 00 65 00 00 00 B1 04 03 00 15 DF 7A 70 04 03 00 94 FF 66 72 04 03 00 81 DF 13 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 78 0D 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 16 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 B8 C1 03 70 04 03 00 B8 C1 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 26 66 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [11:32:58]wFMCommunicate OK [11:32:58]wFMCommunicate request_size=4 [11:32:58]MH_SAM_APDU [11:32:58]CAPDU: 80 17 00 00 [11:32:58]Write to MH i2c: E2 08 00 3D 32 80 17 00 00 00 00 00 00 EF [11:32:58]Write i2c OK [11:32:58]MH_I2C_Read... [11:32:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:32:58]Read from MH i2c: E2 [11:32:58]MH_I2C_Read... [11:32:58]Read from MH i2c: E2 FD 00 [11:32:58]MH_I2C_Read... [11:32:58]Read from MH i2c: E2 FD 00 3D 32 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 82 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 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 90 00 38 [11:32:58]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 82 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 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 90 00 [11:32:58]wFMCommunicate OK [11:32:58]wFMCommunicate request_size=4 [11:32:58]MH_SAM_APDU [11:32:58]CAPDU: 80 17 00 00 [11:32:58]Write to MH i2c: E2 08 00 3E 32 80 17 00 00 00 00 00 00 F0 [11:32:58]Write i2c OK [11:32:58]MH_I2C_Read... [11:32:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:32:59]Read from MH i2c: E2 [11:32:59]MH_I2C_Read... [11:32:59]Read from MH i2c: E2 FD 00 [11:32:59]MH_I2C_Read... [11:32:59]Read from MH i2c: E2 FD 00 3E 32 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 18 [11:32:59]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [11:32:59]wFMCommunicate OK [11:32:59]wFMCommunicate request_size=4 [11:32:59]MH_SAM_APDU [11:32:59]CAPDU: 80 17 00 00 [11:32:59]Write to MH i2c: E2 08 00 3F 32 80 17 00 00 00 00 00 00 F1 [11:32:59]Write i2c OK [11:32:59]MH_I2C_Read... [11:32:59]OFD Sender: No OFD packet to send [11:32:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:32:59]Read from MH i2c: E2 [11:32:59]MH_I2C_Read... [11:32:59]Read from MH i2c: E2 FD 00 [11:32:59]MH_I2C_Read... [11:32:59]Read from MH i2c: E2 FD 00 3F 32 00 EF 03 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 90 00 69 [11:32:59]RAPDU: EF 03 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 90 00 [11:32:59]wFMCommunicate OK [11:32:59]wFMCommunicate request_size=4 [11:32:59]MH_SAM_APDU [11:32:59]CAPDU: 80 17 00 00 [11:32:59]Write to MH i2c: E2 08 00 40 32 80 17 00 00 00 00 00 00 F2 [11:32:59]Write i2c OK [11:32:59]MH_I2C_Read... [11:33:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [11:33:00]Read from MH i2c: E2 [11:33:00]MH_I2C_Read... [11:33:00]Read from MH i2c: E2 D6 00 [11:33:00]MH_I2C_Read... [11:33:00]Read from MH i2c: E2 D6 00 40 32 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D4 [11:33:00]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:33:00]wFMCommunicate OK [11:33:00]SAM_PROTO_GetShiftData done [11:33:00]1194 (1205) - счетчики итогов смены [11:33:00] 1134 (4) - 103 - количество чеков со всеми признаками расчетов [11:33:00] 1129 (156) - счетчики операций «приход» [11:33:00] 1135 (4) - 101 - количество чеков по признаку расчетов [11:33:00] 1201 (3) - 80525.01 - общая итоговая сумма в чеках [11:33:00] 1136 (3) - 67501.00 - итоговая сумма в чеках наличными [11:33:00] 1138 (3) - 13024.01 - итоговая сумма в чеках безналичными [11:33:00] 1024 (123) - суммы налогов [11:33:00] 1006 (9) - суммы НДС [11:33:00] 1010 (1) - 0% - код ставки НДС [11:33:00] 1011 (0) - 0.00 - сумма НДС по ставке [11:33:00] 1006 (12) - суммы НДС [11:33:00] 1010 (1) - 12% - код ставки НДС [11:33:00] 1011 (3) - 8554.16 - сумма НДС по ставке [11:33:00] 1007 (9) - суммы НСП [11:33:00] 1014 (1) - 0% - код ставки НСП [11:33:00] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:00] 1007 (12) - суммы НСП [11:33:00] 1014 (1) - 1% - код ставки НСП [11:33:00] 1015 (3) - 712.77 - сумма НСП по ставке [11:33:00] 1007 (9) - суммы НСП [11:33:00] 1014 (1) - 2% - код ставки НСП [11:33:00] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:00] 1007 (9) - суммы НСП [11:33:00] 1014 (1) - 3% - код ставки НСП [11:33:00] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:00] 1007 (9) - суммы НСП [11:33:00] 1014 (1) - 5% - код ставки НСП [11:33:00] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:00] 1007 (9) - суммы НСП [11:33:00] 1014 (1) - 0,50% - код ставки НСП [11:33:00] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:00] 1007 (9) - суммы НСП [11:33:00] 1014 (1) - 1,50% - код ставки НСП [11:33:00] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:00] 1130 (151) - счетчики операций «возврат прихода» [11:33:00] 1135 (4) - 2 - количество чеков по признаку расчетов [11:33:00] 1201 (3) - 2462.00 - общая итоговая сумма в чеках [11:33:00] 1136 (3) - 2462.00 - итоговая сумма в чеках наличными [11:33:00] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [11:33:00] 1024 (121) - суммы налогов [11:33:00] 1006 (9) - суммы НДС [11:33:00] 1010 (1) - 0% - код ставки НДС [11:33:00] 1011 (0) - 0.00 - сумма НДС по ставке [11:33:00] 1006 (11) - суммы НДС [11:33:00] 1010 (1) - 12% - код ставки НДС [11:33:00] 1011 (2) - 261.50 - сумма НДС по ставке [11:33:00] 1007 (9) - суммы НСП [11:33:00] 1014 (1) - 0% - код ставки НСП [11:33:00] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:00] 1007 (11) - суммы НСП [11:33:00] 1014 (1) - 1% - код ставки НСП [11:33:00] 1015 (2) - 21.78 - сумма НСП по ставке [11:33:00] 1007 (9) - суммы НСП [11:33:00] 1014 (1) - 2% - код ставки НСП [11:33:00] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:00] 1007 (9) - суммы НСП [11:33:00] 1014 (1) - 3% - код ставки НСП [11:33:00] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:00] 1007 (9) - суммы НСП [11:33:00] 1014 (1) - 5% - код ставки НСП [11:33:00] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:00] 1007 (9) - суммы НСП [11:33:00] 1014 (1) - 0,50% - код ставки НСП [11:33:00] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:00] 1007 (9) - суммы НСП [11:33:00] 1014 (1) - 1,50% - код ставки НСП [11:33:00] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:00] 1131 (141) - счетчики операций «расход» [11:33:00] 1135 (4) - 0 - количество чеков по признаку расчетов [11:33:00] 1201 (0) - 0.00 - общая итоговая сумма в чеках [11:33:00] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [11:33:00] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [11:33:00] 1024 (117) - суммы налогов [11:33:00] 1006 (9) - суммы НДС [11:33:00] 1010 (1) - 0% - код ставки НДС [11:33:00] 1011 (0) - 0.00 - сумма НДС по ставке [11:33:00] 1006 (9) - суммы НДС [11:33:00] 1010 (1) - 12% - код ставки НДС [11:33:00] 1011 (0) - 0.00 - сумма НДС по ставке [11:33:00] 1007 (9) - суммы НСП [11:33:00] 1014 (1) - 0% - код ставки НСП [11:33:00] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:00] 1007 (9) - суммы НСП [11:33:00] 1014 (1) - 1% - код ставки НСП [11:33:00] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:00] 1007 (9) - суммы НСП [11:33:00] 1014 (1) - 2% - код ставки НСП [11:33:00] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:00] 1007 (9) - суммы НСП [11:33:00] 1014 (1) - 3% - код ставки НСП [11:33:00] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:00] 1007 (9) - суммы НСП [11:33:00] 1014 (1) - 5% - код ставки НСП [11:33:00] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:00] 1007 (9) - суммы НСП [11:33:00] 1014 (1) - 0,50% - код ставки НСП [11:33:00] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:00] 1007 (9) - суммы НСП [11:33:00] 1014 (1) - 1,50% - код ставки НСП [11:33:00] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:00] 1132 (141) - счетчики операций «возврат расхода» [11:33:00] 1135 (4) - 0 - количество чеков по признаку расчетов [11:33:00] 1201 (0) - 0.00 - общая итоговая сумма в чеках [11:33:00] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [11:33:00] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [11:33:00] 1024 (117) - суммы налогов [11:33:00] 1006 (9) - суммы НДС [11:33:00] 1010 (1) - 0% - код ставки НДС [11:33:00] 1011 (0) - 0.00 - сумма НДС по ставке [11:33:00] 1006 (9) - суммы НДС [11:33:00] 1010 (1) - 12% - код ставки НДС [11:33:00] 1011 (0) - 0.00 - сумма НДС по ставке [11:33:00] 1007 (9) - суммы НСП [11:33:00] 1014 (1) - 0% - код ставки НСП [11:33:00] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:00] 1007 (9) - суммы НСП [11:33:00] 1014 (1) - 1% - код ставки НСП [11:33:00] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:00] 1007 (9) - суммы НСП [11:33:00] 1014 (1) - 2% - код ставки НСП [11:33:00] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:00] 1007 (9) - суммы НСП [11:33:00] 1014 (1) - 3% - код ставки НСП [11:33:00] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:00] 1007 (9) - суммы НСП [11:33:00] 1014 (1) - 5% - код ставки НСП [11:33:00] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:00] 1007 (9) - суммы НСП [11:33:00] 1014 (1) - 0,50% - код ставки НСП [11:33:00] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:00] 1007 (9) - суммы НСП [11:33:00] 1014 (1) - 1,50% - код ставки НСП [11:33:00] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:00] 1133 (588) - - счетчики коррекции - не используются [11:33:00]SetTLVBufToDocument [11:33:00]Processing tag 1194 (04AA) [11:33:00]Load OK [11:33:00]SetTLVBufToDocument [11:33:00]Processing tag 1134 (046E) [11:33:00]Malloc new data [11:33:00]Processing tag 1129 (0469) [11:33:00]Load OK [11:33:00]SetTLVBufToDocument [11:33:00]Processing tag 1135 (046F) [11:33:00]Malloc new data [11:33:00]Processing tag 1201 (04B1) [11:33:00]Malloc new data [11:33:00]Processing tag 1136 (0470) [11:33:00]Malloc new data [11:33:00]Processing tag 1138 (0472) [11:33:00]Malloc new data [11:33:00]Processing tag 1024 (0400) [11:33:00]Load OK [11:33:00]SetTLVBufToDocument [11:33:00]Processing tag 1006 (03EE) [11:33:00]Load OK [11:33:00]SetTLVBufToDocument [11:33:00]Processing tag 1010 (03F2) [11:33:00]Malloc new data [11:33:00]Processing tag 1011 (03F3) [11:33:00]Malloc new data [11:33:00]SetTLVBufToDocument err=0 [11:33:00]Processing tag 1006 (03EE) [11:33:00]Load OK [11:33:00]SetTLVBufToDocument [11:33:00]Processing tag 1010 (03F2) [11:33:00]Malloc new data [11:33:00]Processing tag 1011 (03F3) [11:33:00]Malloc new data [11:33:00]SetTLVBufToDocument err=0 [11:33:00]Processing tag 1007 (03EF) [11:33:00]Load OK [11:33:00]SetTLVBufToDocument [11:33:00]Processing tag 1014 (03F6) [11:33:00]Malloc new data [11:33:00]Processing tag 1015 (03F7) [11:33:00]Malloc new data [11:33:00]SetTLVBufToDocument err=0 [11:33:00]Processing tag 1007 (03EF) [11:33:00]Load OK [11:33:00]SetTLVBufToDocument [11:33:00]Processing tag 1014 (03F6) [11:33:00]Malloc new data [11:33:00]Processing tag 1015 (03F7) [11:33:00]Malloc new data [11:33:00]SetTLVBufToDocument err=0 [11:33:00]Processing tag 1007 (03EF) [11:33:00]Load OK [11:33:00]SetTLVBufToDocument [11:33:00]Processing tag 1014 (03F6) [11:33:00]Malloc new data [11:33:00]Processing tag 1015 (03F7) [11:33:00]Malloc new data [11:33:00]SetTLVBufToDocument err=0 [11:33:00]Processing tag 1007 (03EF) [11:33:00]Load OK [11:33:00]SetTLVBufToDocument [11:33:00]Processing tag 1014 (03F6) [11:33:00]Malloc new data [11:33:00]Processing tag 1015 (03F7) [11:33:00]Malloc new data [11:33:00]SetTLVBufToDocument err=0 [11:33:00]Processing tag 1007 (03EF) [11:33:00]Load OK [11:33:00]SetTLVBufToDocument [11:33:00]Processing tag 1014 (03F6) [11:33:00]Malloc new data [11:33:00]Processing tag 1015 (03F7) [11:33:00]Malloc new data [11:33:00]SetTLVBufToDocument err=0 [11:33:00]Processing tag 1007 (03EF) [11:33:00]Load OK [11:33:00]SetTLVBufToDocument [11:33:00]Processing tag 1014 (03F6) [11:33:00]Malloc new data [11:33:00]Processing tag 1015 (03F7) [11:33:00]Malloc new data [11:33:00]SetTLVBufToDocument err=0 [11:33:00]Processing tag 1007 (03EF) [11:33:00]Load OK [11:33:00]SetTLVBufToDocument [11:33:00]Processing tag 1014 (03F6) [11:33:00]Malloc new data [11:33:00]Processing tag 1015 (03F7) [11:33:00]Malloc new data [11:33:00]SetTLVBufToDocument err=0 [11:33:00]SetTLVBufToDocument err=0 [11:33:00]SetTLVBufToDocument err=0 [11:33:00]Processing tag 1130 (046A) [11:33:00]Load OK [11:33:00]SetTLVBufToDocument [11:33:00]Processing tag 1135 (046F) [11:33:00]Malloc new data [11:33:00]Processing tag 1201 (04B1) [11:33:00]Malloc new data [11:33:00]Processing tag 1136 (0470) [11:33:00]Malloc new data [11:33:00]Processing tag 1138 (0472) [11:33:00]Malloc new data [11:33:00]Processing tag 1024 (0400) [11:33:00]Load OK [11:33:00]SetTLVBufToDocument [11:33:00]Processing tag 1006 (03EE) [11:33:00]Load OK [11:33:00]SetTLVBufToDocument [11:33:00]Processing tag 1010 (03F2) [11:33:00]Malloc new data [11:33:00]Processing tag 1011 (03F3) [11:33:00]Malloc new data [11:33:00]SetTLVBufToDocument err=0 [11:33:00]Processing tag 1006 (03EE) [11:33:00]Load OK [11:33:00]SetTLVBufToDocument [11:33:00]Processing tag 1010 (03F2) [11:33:00]Malloc new data [11:33:00]Processing tag 1011 (03F3) [11:33:00]Malloc new data [11:33:00]SetTLVBufToDocument err=0 [11:33:00]Processing tag 1007 (03EF) [11:33:00]Load OK [11:33:00]SetTLVBufToDocument [11:33:00]Processing tag 1014 (03F6) [11:33:00]Malloc new data [11:33:00]Processing tag 1015 (03F7) [11:33:00]Malloc new data [11:33:00]SetTLVBufToDocument err=0 [11:33:00]Processing tag 1007 (03EF) [11:33:00]Load OK [11:33:00]SetTLVBufToDocument [11:33:00]Processing tag 1014 (03F6) [11:33:00]Malloc new data [11:33:00]Processing tag 1015 (03F7) [11:33:00]Malloc new data [11:33:00]SetTLVBufToDocument err=0 [11:33:00]Processing tag 1007 (03EF) [11:33:00]Load OK [11:33:00]SetTLVBufToDocument [11:33:00]Processing tag 1014 (03F6) [11:33:00]Malloc new data [11:33:00]Processing tag 1015 (03F7) [11:33:00]Malloc new data [11:33:00]SetTLVBufToDocument err=0 [11:33:00]Processing tag 1007 (03EF) [11:33:00]Load OK [11:33:00]SetTLVBufToDocument [11:33:00]Processing tag 1014 (03F6) [11:33:00]Malloc new data [11:33:00]Processing tag 1015 (03F7) [11:33:00]Malloc new data [11:33:00]SetTLVBufToDocument err=0 [11:33:00]Processing tag 1007 (03EF) [11:33:00]Load OK [11:33:00]SetTLVBufToDocument [11:33:00]Processing tag 1014 (03F6) [11:33:00]Malloc new data [11:33:00]Processing tag 1015 (03F7) [11:33:00]Malloc new data [11:33:00]SetTLVBufToDocument err=0 [11:33:00]Processing tag 1007 (03EF) [11:33:00]Load OK [11:33:00]SetTLVBufToDocument [11:33:00]Processing tag 1014 (03F6) [11:33:00]Malloc new data [11:33:00]Processing tag 1015 (03F7) [11:33:00]Malloc new data [11:33:00]SetTLVBufToDocument err=0 [11:33:00]Processing tag 1007 (03EF) [11:33:00]Load OK [11:33:00]SetTLVBufToDocument [11:33:00]Processing tag 1014 (03F6) [11:33:00]Malloc new data [11:33:00]Processing tag 1015 (03F7) [11:33:00]Malloc new data [11:33:00]SetTLVBufToDocument err=0 [11:33:00]SetTLVBufToDocument err=0 [11:33:00]SetTLVBufToDocument err=0 [11:33:00]Processing tag 1131 (046B) [11:33:00]Load OK [11:33:00]SetTLVBufToDocument [11:33:00]Processing tag 1135 (046F) [11:33:00]Malloc new data [11:33:00]Processing tag 1201 (04B1) [11:33:00]Malloc new data [11:33:00]Processing tag 1136 (0470) [11:33:00]Malloc new data [11:33:00]Processing tag 1138 (0472) [11:33:00]Malloc new data [11:33:00]Processing tag 1024 (0400) [11:33:00]Load OK [11:33:00]SetTLVBufToDocument [11:33:00]Processing tag 1006 (03EE) [11:33:00]Load OK [11:33:00]SetTLVBufToDocument [11:33:00]Processing tag 1010 (03F2) [11:33:00]Malloc new data [11:33:00]Processing tag 1011 (03F3) [11:33:00]Malloc new data [11:33:00]SetTLVBufToDocument err=0 [11:33:00]Processing tag 1006 (03EE) [11:33:00]Load OK [11:33:00]SetTLVBufToDocument [11:33:00]Processing tag 1010 (03F2) [11:33:00]Malloc new data [11:33:00]Processing tag 1011 (03F3) [11:33:00]Malloc new data [11:33:00]SetTLVBufToDocument err=0 [11:33:00]Processing tag 1007 (03EF) [11:33:00]Load OK [11:33:00]SetTLVBufToDocument [11:33:00]Processing tag 1014 (03F6) [11:33:00]Malloc new data [11:33:00]Processing tag 1015 (03F7) [11:33:00]Malloc new data [11:33:00]SetTLVBufToDocument err=0 [11:33:00]Processing tag 1007 (03EF) [11:33:00]Load OK [11:33:00]SetTLVBufToDocument [11:33:00]Processing tag 1014 (03F6) [11:33:00]Malloc new data [11:33:00]Processing tag 1015 (03F7) [11:33:00]Malloc new data [11:33:00]SetTLVBufToDocument err=0 [11:33:00]Processing tag 1007 (03EF) [11:33:00]Load OK [11:33:00]SetTLVBufToDocument [11:33:00]Processing tag 1014 (03F6) [11:33:00]Malloc new data [11:33:00]Processing tag 1015 (03F7) [11:33:00]Malloc new data [11:33:00]SetTLVBufToDocument err=0 [11:33:00]Processing tag 1007 (03EF) [11:33:00]Load OK [11:33:00]SetTLVBufToDocument [11:33:00]Processing tag 1014 (03F6) [11:33:00]Malloc new data [11:33:00]Processing tag 1015 (03F7) [11:33:00]Malloc new data [11:33:00]SetTLVBufToDocument err=0 [11:33:01]Processing tag 1007 (03EF) [11:33:01]Load OK [11:33:01]SetTLVBufToDocument [11:33:01]Processing tag 1014 (03F6) [11:33:01]Malloc new data [11:33:01]Processing tag 1015 (03F7) [11:33:01]Malloc new data [11:33:01]SetTLVBufToDocument err=0 [11:33:01]Processing tag 1007 (03EF) [11:33:01]Load OK [11:33:01]SetTLVBufToDocument [11:33:01]Processing tag 1014 (03F6) [11:33:01]Malloc new data [11:33:01]Processing tag 1015 (03F7) [11:33:01]Malloc new data [11:33:01]SetTLVBufToDocument err=0 [11:33:01]Processing tag 1007 (03EF) [11:33:01]Load OK [11:33:01]SetTLVBufToDocument [11:33:01]Processing tag 1014 (03F6) [11:33:01]Malloc new data [11:33:01]Processing tag 1015 (03F7) [11:33:01]Malloc new data [11:33:01]SetTLVBufToDocument err=0 [11:33:01]SetTLVBufToDocument err=0 [11:33:01]SetTLVBufToDocument err=0 [11:33:01]Processing tag 1132 (046C) [11:33:01]Load OK [11:33:01]SetTLVBufToDocument [11:33:01]Processing tag 1135 (046F) [11:33:01]Malloc new data [11:33:01]Processing tag 1201 (04B1) [11:33:01]Malloc new data [11:33:01]Processing tag 1136 (0470) [11:33:01]Malloc new data [11:33:01]Processing tag 1138 (0472) [11:33:01]Malloc new data [11:33:01]Processing tag 1024 (0400) [11:33:01]Load OK [11:33:01]SetTLVBufToDocument [11:33:01]Processing tag 1006 (03EE) [11:33:01]Load OK [11:33:01]SetTLVBufToDocument [11:33:01]Processing tag 1010 (03F2) [11:33:01]Malloc new data [11:33:01]Processing tag 1011 (03F3) [11:33:01]Malloc new data [11:33:01]SetTLVBufToDocument err=0 [11:33:01]Processing tag 1006 (03EE) [11:33:01]Load OK [11:33:01]SetTLVBufToDocument [11:33:01]Processing tag 1010 (03F2) [11:33:01]Malloc new data [11:33:01]Processing tag 1011 (03F3) [11:33:01]Malloc new data [11:33:01]SetTLVBufToDocument err=0 [11:33:01]Processing tag 1007 (03EF) [11:33:01]Load OK [11:33:01]SetTLVBufToDocument [11:33:01]Processing tag 1014 (03F6) [11:33:01]Malloc new data [11:33:01]Processing tag 1015 (03F7) [11:33:01]Malloc new data [11:33:01]SetTLVBufToDocument err=0 [11:33:01]Processing tag 1007 (03EF) [11:33:01]Load OK [11:33:01]SetTLVBufToDocument [11:33:01]Processing tag 1014 (03F6) [11:33:01]Malloc new data [11:33:01]Processing tag 1015 (03F7) [11:33:01]Malloc new data [11:33:01]SetTLVBufToDocument err=0 [11:33:01]Processing tag 1007 (03EF) [11:33:01]Load OK [11:33:01]SetTLVBufToDocument [11:33:01]Processing tag 1014 (03F6) [11:33:01]Malloc new data [11:33:01]Processing tag 1015 (03F7) [11:33:01]Malloc new data [11:33:01]SetTLVBufToDocument err=0 [11:33:01]Processing tag 1007 (03EF) [11:33:01]Load OK [11:33:01]SetTLVBufToDocument [11:33:01]Processing tag 1014 (03F6) [11:33:01]Malloc new data [11:33:01]Processing tag 1015 (03F7) [11:33:01]Malloc new data [11:33:01]SetTLVBufToDocument err=0 [11:33:01]Processing tag 1007 (03EF) [11:33:01]Load OK [11:33:01]SetTLVBufToDocument [11:33:01]Processing tag 1014 (03F6) [11:33:01]Malloc new data [11:33:01]Processing tag 1015 (03F7) [11:33:01]Malloc new data [11:33:01]SetTLVBufToDocument err=0 [11:33:01]Processing tag 1007 (03EF) [11:33:01]Load OK [11:33:01]SetTLVBufToDocument [11:33:01]Processing tag 1014 (03F6) [11:33:01]Malloc new data [11:33:01]Processing tag 1015 (03F7) [11:33:01]Malloc new data [11:33:01]SetTLVBufToDocument err=0 [11:33:01]Processing tag 1007 (03EF) [11:33:01]Load OK [11:33:01]SetTLVBufToDocument [11:33:01]Processing tag 1014 (03F6) [11:33:01]Malloc new data [11:33:01]Processing tag 1015 (03F7) [11:33:01]Malloc new data [11:33:01]SetTLVBufToDocument err=0 [11:33:01]SetTLVBufToDocument err=0 [11:33:01]SetTLVBufToDocument err=0 [11:33:01]Processing tag 1133 (046D) [11:33:01]Malloc new data [11:33:01]SetTLVBufToDocument err=0 [11:33:01]SetTLVBufToDocument err=0 [11:33:01]Malloc new data [11:33:01]SAM_PROTO_GetFMData [11:33:01]wFMCommunicate request_size=4 [11:33:01]MH_SAM_APDU [11:33:01]CAPDU: 80 13 03 00 [11:33:01]Write to MH i2c: E2 08 00 41 32 80 13 03 00 00 00 00 00 F2 [11:33:01]Write i2c OK [11:33:01]MH_I2C_Read... [11:33:01]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:33:01]Read from MH i2c: E2 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 FD 00 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 FD 00 41 32 00 C5 04 85 04 C1 04 6E 04 04 00 A4 A5 01 00 69 04 A3 00 6F 04 04 00 73 9F 01 00 B1 04 05 00 7D 93 E4 F0 01 70 04 05 00 36 59 EE 92 01 72 04 04 00 47 3A F6 5D 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 21 82 C8 34 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 FE F4 65 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 31 06 00 00 B1 04 04 00 B8 82 30 0D 70 04 04 00 B8 82 30 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C9 A2 66 01 EF 03 09 90 00 2D [11:33:01]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 A4 A5 01 00 69 04 A3 00 6F 04 04 00 73 9F 01 00 B1 04 05 00 7D 93 E4 F0 01 70 04 05 00 36 59 EE 92 01 72 04 04 00 47 3A F6 5D 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 21 82 C8 34 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 FE F4 65 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 31 06 00 00 B1 04 04 00 B8 82 30 0D 70 04 04 00 B8 82 30 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C9 A2 66 01 EF 03 09 90 00 [11:33:02]wFMCommunicate OK [11:33:02]wFMCommunicate request_size=4 [11:33:02]MH_SAM_APDU [11:33:02]CAPDU: 80 17 00 00 [11:33:02]Write to MH i2c: E2 08 00 42 32 80 17 00 00 00 00 00 00 F4 [11:33:02]Write i2c OK [11:33:02]MH_I2C_Read... [11:33:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:02]Read from MH i2c: E2 [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: E2 FD 00 [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: E2 FD 00 42 32 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 5D E2 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 06 [11:33:02]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 5D E2 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [11:33:02]wFMCommunicate OK [11:33:02]wFMCommunicate request_size=4 [11:33:02]MH_SAM_APDU [11:33:02]CAPDU: 80 17 00 00 [11:33:02]Write to MH i2c: E2 08 00 43 32 80 17 00 00 00 00 00 00 F5 [11:33:02]Write i2c OK [11:33:02]MH_I2C_Read... [11:33:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:02]Read from MH i2c: E2 [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: E2 FD 00 [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: E2 FD 00 43 32 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 07 [11:33:02]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [11:33:03]wFMCommunicate OK [11:33:03]wFMCommunicate request_size=4 [11:33:03]MH_SAM_APDU [11:33:03]CAPDU: 80 17 00 00 [11:33:03]Write to MH i2c: E2 08 00 44 32 80 17 00 00 00 00 00 00 F6 [11:33:03]Write i2c OK [11:33:03]MH_I2C_Read... [11:33:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:03]Read from MH i2c: E2 [11:33:03]MH_I2C_Read... [11:33:03]Read from MH i2c: E2 FD 00 [11:33:03]MH_I2C_Read... [11:33:03]Read from MH i2c: E2 FD 00 44 32 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 82 [11:33:03]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:33:03]wFMCommunicate OK [11:33:03]wFMCommunicate request_size=4 [11:33:03]MH_SAM_APDU [11:33:03]CAPDU: 80 17 00 00 [11:33:03]Write to MH i2c: E2 08 00 45 32 80 17 00 00 00 00 00 00 F7 [11:33:03]Write i2c OK [11:33:03]MH_I2C_Read... [11:33:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [11:33:03]Read from MH i2c: E2 [11:33:03]MH_I2C_Read... [11:33:03]Read from MH i2c: E2 E2 00 [11:33:03]MH_I2C_Read... [11:33:03]Read from MH i2c: E2 E2 00 45 32 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D5 [11:33:03]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:33:04]wFMCommunicate OK [11:33:04]SAM_PROTO_GetFMData done [11:33:04]FM_GetFMData:85 04 C1 04 6E 04 04 00 A4 A5 01 00 69 04 A3 00 6F 04 04 00 73 9F 01 00 B1 04 05 00 7D 93 E4 F0 01 70 04 05 00 36 59 EE 92 01 72 04 04 00 47 3A F6 5D 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 21 82 C8 34 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 FE F4 65 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 31 06 00 00 B1 04 04 00 B8 82 30 0D 70 04 04 00 B8 82 30 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C9 A2 66 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 5D E2 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 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 OFD Sender: No OFD packet to send [11:33:04]00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [11:33:04]oper:6F 04 04 00 73 9F 01 00 B1 04 05 00 7D 93 E4 F0 01 70 04 05 00 36 59 EE 92 01 72 04 04 00 47 3A F6 5D 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 21 82 C8 34 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 FE F4 65 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [11:33:04]total:7D 93 E4 F0 01 [11:33:04]Malloc new data [11:33:04]oper:6F 04 04 00 31 06 00 00 B1 04 04 00 B8 82 30 0D 70 04 04 00 B8 82 30 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C9 A2 66 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 5D E2 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [11:33:04]total:B8 82 30 0D [11:33:04]Malloc new data [11:33:04]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 [11:33:05]total: [11:33:05]Malloc new data [11:33:05]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 [11:33:05]total: [11:33:05]Malloc new data [11:33:05]KKMPrepareXReportFMData err=0 [11:33:05]Х отчет ИНН: 02508201610067 Кассир: Максатбек у Д. 15.03.2024 11:33 Смена: 266 РНМ: 0000000000091911 ЗНМ: 0300000266 СНО: Общий режим Всего чеков: 103 ИТОГИ ПРИХОД Чеков: 101 Общий итог: 80525.01 Итого наличными: 67501.00 Итого безнал.: 13024.01 НДС 0% : 0.00 НДС 12% : 8554.16 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 712.77 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 2 Общий итог: 2462.00 Итого наличными: 2462.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 261.50 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 21.78 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 65039.00 НС Приход: 83364791.01 НС Возвр.Прихода: 2212830.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871818 [11:33:05]StoreToDocumentArchive [11:33:05]MH_GetDate [11:33:05]Write to MH i2c: F0 00 00 46 32 67 [11:33:05]Write i2c OK [11:33:05]MH_I2C_Read... [11:33:05]Read from MH i2c: F0 [11:33:05]MH_I2C_Read... [11:33:05]Read from MH i2c: F0 09 00 [11:33:05]MH_I2C_Read... [11:33:05]Read from MH i2c: F0 09 00 46 32 00 F5 31 F4 65 D5 0F D3 65 0B [11:33:05]shift 266 fd 1710502389 [11:33:05]Create dir for shift 0266 [11:33:05]save to /storage/0266/doc_1710502389 [11:33:05]save last doc name /storage/0266/doc_1710502389 to /storage/kkm_last_doc_name [11:33:05]save OK [11:33:05]Clear old archive folders... [11:33:05]NVStorageSaveData kkm_last_timestamp [11:33:05]File name is /storage/kkm_last_timestamp [11:33:05]Write 4 bytes [11:33:05]NVStorageSaveData done [11:33:05]ExternCall_PrintAddStr [11:33:05]wPrintStart [11:33:05]Write to MH i2c: 01 00 00 47 32 79 [11:33:05]Write i2c OK [11:33:05]MH_I2C_Read... [11:33:05]Read from MH i2c: 01 [11:33:05]MH_I2C_Read... [11:33:05]Read from MH i2c: 01 07 00 [11:33:05]MH_I2C_Read... [11:33:05]Read from MH i2c: 01 07 00 47 32 00 00 00 00 00 FF 0F 8E [11:33:05]RasterBufferAndPrint [11:33:05]line Х отчет [11:33:05]line ИНН: 02508201610067 [11:33:05]line Кассир: Максатбек у Д. [11:33:05]line 15.03.2024 11:33 [11:33:05]line Смена: 266 [11:33:05]line РНМ: 0000000000091911 [11:33:05]line ЗНМ: 0300000266 [11:33:05]line СНО: Общий режим [11:33:05]line Всего чеков: 103 [11:33:05]line ИТОГИ ПРИХОД [11:33:05]line Чеков: 101 [11:33:05]line Общий итог: 80525.01 [11:33:05]line Итого наличными: 67501.00 [11:33:05]line Итого безнал.: 13024.01 [11:33:05]line НДС 0% : 0.00 [11:33:05]line НДС 12% : 8554.16 [11:33:05]line НСП 0% : 0.00 [11:33:05]line НСП 1,50% : 0.00 [11:33:05]line НСП 0,50% : 0.00 [11:33:05]line НСП 5% : 0.00 [11:33:05]line НСП 3% : 0.00 [11:33:05]line НСП 2% : 0.00 [11:33:05]line НСП 1% : 712.77 [11:33:05]line ИТОГИ ВОЗВРАТ ПРИХОДА [11:33:05]line Чеков: 2 [11:33:05]line Общий итог: 2462.00 [11:33:05]line Итого наличными: 2462.00 [11:33:05]line Итого безнал.: 0.00 [11:33:05]line НДС 0% : 0.00 [11:33:05]line НДС 12% : 261.50 [11:33:05]line НСП 0% : 0.00 [11:33:05]line НСП 1,50% : 0.00 [11:33:05]line НСП 0,50% : 0.00 [11:33:05]line НСП 5% : 0.00 [11:33:05]line НСП 3% : 0.00 [11:33:05]line НСП 2% : 0.00 [11:33:05]line НСП 1% : 21.78 [11:33:05]line ИТОГИ РАСХОД [11:33:05]line Чеков: 0 [11:33:05]line Общий итог: 0.00 [11:33:05]line Итого наличными: 0.00 [11:33:05]line Итого безнал.: 0.00 [11:33:05]line НДС 0% : 0.00 [11:33:05]line НДС 12% : 0.00 [11:33:05]line НСП 0% : 0.00 [11:33:05]line НСП 1,50% : 0.00 [11:33:05]line НСП 0,50% : 0.00 [11:33:05]line НСП 5% : 0.00 [11:33:05]line НСП 3% : 0.00 [11:33:05]line НСП 2% : 0.00 [11:33:05]line НСП 1% : 0.00 [11:33:05]line ИТОГИ ВОЗВРАТ РАСХОДА [11:33:05]line Чеков: 0 [11:33:05]line Общий итог: 0.00 [11:33:05]line Итого наличными: 0.00 [11:33:05]line Итого безнал.: 0.00 [11:33:05]line НДС 0% : 0.00 [11:33:05]line НДС 12% : 0.00 [11:33:05]line НСП 0% : 0.00 [11:33:05]line НСП 1,50% : 0.00 [11:33:05]line НСП 0,50% : 0.00 [11:33:05]line НСП 5% : 0.00 [11:33:05]line НСП 3% : 0.00 [11:33:05]line НСП 2% : 0.00 [11:33:05]line НСП 1% : 0.00 [11:33:05]line Сумма внесений: 0.00 [11:33:05]line Сумма выплат: 0.00 [11:33:05]line Нал. в кассе: 65039.00 [11:33:05]line НС Приход: 83364791.01 [11:33:05]line НС Возвр.Прихода: 2212830.00 [11:33:05]line НС Расход: 0.00 [11:33:05]line НС Возвр.Расхода: 0.00 [11:33:05]line ФМ: 0000000000871818 [11:33:05]written 0, free lines is 4095 [11:33:05]Write to MH i2c: 01 00 00 92 32 C4 [11:33:05]Write i2c OK [11:33:05]MH_I2C_Read... [11:33:05]Read from MH i2c: 01 [11:33:05]MH_I2C_Read... [11:33:05]Read from MH i2c: 01 07 00 [11:33:05]MH_I2C_Read... [11:33:05]Read from MH i2c: 01 07 00 92 32 00 00 00 00 00 A0 0A 75 [11:33:05]RasterBufferAndPrint [11:33:05]line [11:33:05]line [11:33:05]line [11:33:05]line [11:33:05]line [11:33:05]written 0, free lines is 2752 [11:33:05]MH_Cut [11:33:06]Write to MH i2c: D1 01 00 99 32 01 9D [11:33:06]Write i2c OK [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: D1 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: D1 01 00 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: D1 01 00 99 32 00 9C [11:33:06]Write to MH i2c: 01 00 00 9A 32 CC [11:33:06]Write i2c OK [11:33:06]MH_I2C_Read... [11:33:07]*** Cut start [11:33:07]*** Purtial cut [11:33:07]*** Stage 1: CUTSNS_PIN = 1 [11:33:07]Read from MH i2c: 01 [11:33:07]MH_I2C_Read... [11:33:07]*** Stop cut motor [11:33:07]*** Cut end [11:33:07]Read from MH i2c: 01 07 00 [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: 01 07 00 9A 32 00 00 00 00 00 FF 0F E1 [11:33:07]process_action x_report done [11:33:07]requested_data is exist [11:33:07]produce_requested_data [11:33:07]requested_item fd.num is exist - process it [11:33:07]SAM_PROTO_GetFieldsCounters [11:33:07]wFMCommunicate request_size=4 [11:33:07]MH_SAM_APDU [11:33:07]CAPDU: 80 13 00 00 [11:33:07]Write to MH i2c: E2 08 00 9B 32 80 13 00 00 00 00 00 00 49 [11:33:07]Write i2c OK [11:33:07]MH_I2C_Read... [11:33:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:07]Read from MH i2c: E2 [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: E2 62 00 [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: E2 62 00 9B 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 24 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [11:33:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 24 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:33:07]wFMCommunicate OK [11:33:07]SAM_PROTO_GetFieldsCounters done [11:33:07]requested_item shift.num is exist - process it [11:33:07]requested_item shift.opened is exist - process it [11:33:07]req_shift_opened [11:33:07]FM_GetShiftState [11:33:07]SAM_PROTO_GetShiftState [11:33:07]wFMCommunicate request_size=4 [11:33:07]MH_SAM_APDU [11:33:07]CAPDU: 80 13 01 00 [11:33:07]Write to MH i2c: E2 08 00 9C 32 80 13 01 00 00 00 00 00 4B [11:33:07]Write i2c OK [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: E2 [11:33:07]MH_I2C_Read... [11:33:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:07]Read from MH i2c: E2 0E 00 [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: E2 0E 00 9C 32 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 7F [11:33:07]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [11:33:07]wFMCommunicate OK [11:33:07]SAM_PROTO_GetShiftState done [11:33:07]FM_GetShiftState done [11:33:07]req_shift_opened done [11:33:07]requested_item shift.open_date is exist - process it [11:33:07]req_shift_open_date [11:33:07]req_shift_open_date done [11:33:07]produce_requested_data done [11:33:07]produce_requested_data return {"fd.num":108580,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [11:33:07]process_action_free x_report [11:33:07]json_value_free [11:33:07]json_value_free done [11:33:07]process_json_proto returns [11:33:07]Send response to host [11:33:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":108580,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [11:33:07]free response buf [11:33:07]execute_script done [11:33:07]execute_script returns [11:33:07]free content buf [11:33:07]Sock 8.Close socket [11:33:07]Sock 8.Thread stoped [11:33:09]OFD Sender: No OFD packet to send [11:33:10]int [11:33:10]Write to MH i2c: 01 00 00 9D 32 CF [11:33:10]*** FLAG_PRN_KEY set [11:33:10]Write i2c OK [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: 01 [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: 01 07 00 [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: 01 07 00 9D 32 00 08 00 00 00 FF 0F EC [11:33:10]state=0 [11:33:10]Key pressed [11:33:10]Feed [11:33:10]Write to MH i2c: D8 00 00 9E 32 A7 [11:33:10]Write i2c OK [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: D8 [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: D8 01 00 [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: D8 01 00 9E 32 00 A8 [11:33:10]int line is 0 - check status [11:33:10]Write to MH i2c: 01 00 00 9F 32 D1 [11:33:10]Write i2c OK [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: 01 [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: 01 07 00 [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: 01 07 00 9F 32 00 48 00 00 00 3C 00 5C [11:33:10]state=2 [11:33:10]Key pressed [11:33:10]int [11:33:10]Write to MH i2c: 01 00 00 A0 32 D2 [11:33:10]Write i2c OK [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: 01 [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: 01 07 00 [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: 01 07 00 A0 32 00 48 00 00 00 3C 00 5D [11:33:10]state=2 [11:33:10]Key pressed [11:33:10]int [11:33:10]Write to MH i2c: 01 00 00 A1 32 D3 [11:33:10]*** FLAG_PRN_KEY reset [11:33:10]Write i2c OK [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: 01 [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: 01 07 00 [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: 01 07 00 A1 32 00 00 00 00 00 FF 0F E8 [11:33:10]state=2 [11:33:10]Stop feed [11:33:14]OFD Sender: No OFD packet to send [11:33:19]OFD Sender: No OFD packet to send [11:33:24]OFD Sender: No OFD packet to send [11:33:29]accept exits with 9 [11:33:29]New connection [11:33:29]New thread 3067342180 created [11:33:29]Thread 3067198820 joined [11:33:29]Waiting for new connection... [11:33:29] Sock 9.Parse request [11:33:29]Sock 9.Check first char [11:33:29]Sock 9.First char is OK [11:33:29]request: POST /json_proto HTTP/1.0 [11:33:29]Method: POST [11:33:29]URL: /json_proto [11:33:29]Method is POST - this is cgi request [11:33:29]url: /json_proto [11:33:29]query_string will be loaded in cgi processing [11:33:29]execute_cgi json_proto POST (null) [11:33:29]execute_cgi path=json_proto method=POST [11:33:29]POST find Content-Length [11:33:29]Host: 172.17.32.69:8080 [11:33:29]Content-Length: 215 [11:33:29]Content-Type: application/json [11:33:29] [11:33:29]POST finish read [11:33:29]Found Content-Length = 215 [11:33: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" ] } } [11:33:29]execute_script... [11:33: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" ] } } [11:33:29]POST & json_proto [11:33:29]process_json_proto [11:33:29]json parsed OK: [11:33:29]protocol is kg_v1.0 [11:33:29]action value=get_value [11:33:29]process_action get_value [11:33:29]cmd_get_value [11:33:29]process_action get_value done [11:33:29]requested_data is exist [11:33:29]produce_requested_data [11:33:29]requested_item kkm.sn is exist - process it [11:33:29]requested_item kkm.ver is exist - process it [11:33:29]requested_item fm.sn is exist - process it [11:33:29]wFMCommunicate request_size=4 [11:33:29]MH_SAM_APDU [11:33:29]CAPDU: 80 11 00 00 [11:33:29]Write to MH i2c: E2 08 00 A2 32 80 11 00 00 00 00 00 00 4E [11:33:29]Write i2c OK [11:33:29]MH_I2C_Read... [11:33:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:29]Read from MH i2c: E2 [11:33:29]MH_I2C_Read... [11:33:29]Read from MH i2c: E2 17 00 [11:33:29]MH_I2C_Read... [11:33:29]Read from MH i2c: E2 17 00 A2 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 A2 [11:33:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [11:33:29]wFMCommunicate OK [11:33:29]requested_item fd.num is exist - process it [11:33:29]SAM_PROTO_GetFieldsCounters [11:33:29]wFMCommunicate request_size=4 [11:33:29]MH_SAM_APDU [11:33:29]CAPDU: 80 13 00 00 [11:33:29]Write to MH i2c: E2 08 00 A3 32 80 13 00 00 00 00 00 00 51 [11:33:29]OFD Sender: No OFD packet to send [11:33:29]Write i2c OK [11:33:29]MH_I2C_Read... [11:33:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:29]Read from MH i2c: E2 [11:33:29]MH_I2C_Read... [11:33:29]Read from MH i2c: E2 62 00 [11:33:29]MH_I2C_Read... [11:33:29]Read from MH i2c: E2 62 00 A3 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 24 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [11:33:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 24 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:33:29]wFMCommunicate OK [11:33:29]SAM_PROTO_GetFieldsCounters done [11:33:29]requested_item shift.num is exist - process it [11:33:29]requested_item shift.opened is exist - process it [11:33:29]req_shift_opened [11:33:29]FM_GetShiftState [11:33:29]SAM_PROTO_GetShiftState [11:33:29]wFMCommunicate request_size=4 [11:33:29]MH_SAM_APDU [11:33:29]CAPDU: 80 13 01 00 [11:33:29]Write to MH i2c: E2 08 00 A4 32 80 13 01 00 00 00 00 00 53 [11:33:29]Write i2c OK [11:33:29]MH_I2C_Read... [11:33:29]Read from MH i2c: E2 [11:33:29]MH_I2C_Read... [11:33:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:29]Read from MH i2c: E2 0E 00 [11:33:29]MH_I2C_Read... [11:33:29]Read from MH i2c: E2 0E 00 A4 32 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 87 [11:33:29]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [11:33:29]wFMCommunicate OK [11:33:29]SAM_PROTO_GetShiftState done [11:33:29]FM_GetShiftState done [11:33:29]req_shift_opened done [11:33:29]requested_item shift.open_date is exist - process it [11:33:29]req_shift_open_date [11:33:29]req_shift_open_date done [11:33:29]produce_requested_data done [11:33:29]produce_requested_data return {"kkm.sn":"0300000266","kkm.ver":"001","fm.sn":"0000000000871818","fd.num":108580,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757} [11:33:29]process_action_free get_value [11:33:29]json_value_free [11:33:29]json_value_free done [11:33:29]process_json_proto returns [11:33:29]Send response to host [11:33:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000266","kkm.ver":"001","fm.sn":"0000000000871818","fd.num":108580,"shift.num":320,"shift.opened":1,"shift.open_date":1710461757}}} [11:33:29]free response buf [11:33:29]execute_script done [11:33:29]execute_script returns [11:33:29]free content buf [11:33:29]Sock 9.Close socket [11:33:29]Sock 9.Thread stoped [11:33:29]accept exits with 8 [11:33:29]New connection [11:33:29]New thread 3067198820 created [11:33:29]Thread 3067342180 joined [11:33:29]Waiting for new connection... [11:33:29] Sock 8.Parse request [11:33:29]Sock 8.Check first char [11:33:29]Sock 8.First char is OK [11:33:29]request: POST /json_proto HTTP/1.0 [11:33:29]Method: POST [11:33:29]URL: /json_proto [11:33:29]Method is POST - this is cgi request [11:33:29]url: /json_proto [11:33:29]query_string will be loaded in cgi processing [11:33:29]execute_cgi json_proto POST (null) [11:33:29]execute_cgi path=json_proto method=POST [11:33:29]POST find Content-Length [11:33:29]Host: 172.17.32.69:8080 [11:33:29]Content-Length: 331 [11:33:29]Content-Type: application/json [11:33:29] [11:33:29]POST finish read [11:33:29]Found Content-Length = 331 [11:33: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" ] } } [11:33:29]execute_script... [11:33:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:33:29]POST & json_proto [11:33:29]process_json_proto [11:33:29]json parsed OK: [11:33:29]protocol is kg_v1.0 [11:33:29]action value=get_value [11:33:29]process_action get_value [11:33:29]cmd_get_value [11:33:29]process_action get_value done [11:33:29]requested_data is exist [11:33:29]produce_requested_data [11:33:29]requested_item fm.sale.total is exist - process it [11:33:29]SAM_PROTO_GetFMData [11:33:29]wFMCommunicate request_size=4 [11:33:29]MH_SAM_APDU [11:33:29]CAPDU: 80 13 03 00 [11:33:29]Write to MH i2c: E2 08 00 A5 32 80 13 03 00 00 00 00 00 56 [11:33:29]Write i2c OK [11:33:29]MH_I2C_Read... [11:33:30]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:33:30]Read from MH i2c: E2 [11:33:30]MH_I2C_Read... [11:33:30]Read from MH i2c: E2 FD 00 [11:33:30]MH_I2C_Read... [11:33:30]Read from MH i2c: E2 FD 00 A5 32 00 C5 04 85 04 C1 04 6E 04 04 00 A4 A5 01 00 69 04 A3 00 6F 04 04 00 73 9F 01 00 B1 04 05 00 7D 93 E4 F0 01 70 04 05 00 36 59 EE 92 01 72 04 04 00 47 3A F6 5D 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 21 82 C8 34 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 FE F4 65 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 31 06 00 00 B1 04 04 00 B8 82 30 0D 70 04 04 00 B8 82 30 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C9 A2 66 01 EF 03 09 90 00 91 [11:33:30]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 A4 A5 01 00 69 04 A3 00 6F 04 04 00 73 9F 01 00 B1 04 05 00 7D 93 E4 F0 01 70 04 05 00 36 59 EE 92 01 72 04 04 00 47 3A F6 5D 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 21 82 C8 34 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 FE F4 65 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 31 06 00 00 B1 04 04 00 B8 82 30 0D 70 04 04 00 B8 82 30 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C9 A2 66 01 EF 03 09 90 00 [11:33:30]wFMCommunicate OK [11:33:30]wFMCommunicate request_size=4 [11:33:30]MH_SAM_APDU [11:33:30]CAPDU: 80 17 00 00 [11:33:30]Write to MH i2c: E2 08 00 A6 32 80 17 00 00 00 00 00 00 58 [11:33:30]Write i2c OK [11:33:30]MH_I2C_Read... [11:33:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:30]Read from MH i2c: E2 [11:33:30]MH_I2C_Read... [11:33:30]Read from MH i2c: E2 FD 00 [11:33:30]MH_I2C_Read... [11:33:30]Read from MH i2c: E2 FD 00 A6 32 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 5D E2 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 6A [11:33:30]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 5D E2 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [11:33:30]wFMCommunicate OK [11:33:30]wFMCommunicate request_size=4 [11:33:30]MH_SAM_APDU [11:33:30]CAPDU: 80 17 00 00 [11:33:30]Write to MH i2c: E2 08 00 A7 32 80 17 00 00 00 00 00 00 59 [11:33:30]Write i2c OK [11:33:30]MH_I2C_Read... [11:33:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:31]Read from MH i2c: E2 [11:33:31]MH_I2C_Read... [11:33:31]Read from MH i2c: E2 FD 00 [11:33:31]MH_I2C_Read... [11:33:31]Read from MH i2c: E2 FD 00 A7 32 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 6B [11:33:31]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [11:33:31]wFMCommunicate OK [11:33:31]wFMCommunicate request_size=4 [11:33:31]MH_SAM_APDU [11:33:31]CAPDU: 80 17 00 00 [11:33:31]Write to MH i2c: E2 08 00 A8 32 80 17 00 00 00 00 00 00 5A [11:33:31]Write i2c OK [11:33:31]MH_I2C_Read... [11:33:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:31]Read from MH i2c: E2 [11:33:31]MH_I2C_Read... [11:33:31]Read from MH i2c: E2 FD 00 [11:33:31]MH_I2C_Read... [11:33:31]Read from MH i2c: E2 FD 00 A8 32 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E6 [11:33:31]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:33:31]wFMCommunicate OK [11:33:31]wFMCommunicate request_size=4 [11:33:31]MH_SAM_APDU [11:33:31]CAPDU: 80 17 00 00 [11:33:31]Write to MH i2c: E2 08 00 A9 32 80 17 00 00 00 00 00 00 5B [11:33:31]Write i2c OK [11:33:31]MH_I2C_Read... [11:33:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [11:33:31]Read from MH i2c: E2 [11:33:31]MH_I2C_Read... [11:33:31]Read from MH i2c: E2 E2 00 [11:33:31]MH_I2C_Read... [11:33:31]Read from MH i2c: E2 E2 00 A9 32 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 39 [11:33:32]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:33:32]wFMCommunicate OK [11:33:32]SAM_PROTO_GetFMData done [11:33:32]requested_item fm.sale_refund.total is exist - process it [11:33:32]requested_item fm.buy.total is exist - process it [11:33:32]requested_item shift.sale.total is exist - process it [11:33:32]SAM_PROTO_GetShiftData [11:33:32]wFMCommunicate request_size=4 [11:33:32]MH_SAM_APDU [11:33:32]CAPDU: 80 13 02 00 [11:33:32]Write to MH i2c: E2 08 00 AA 32 80 13 02 00 00 00 00 00 5A [11:33:32]Write i2c OK [11:33:32]MH_I2C_Read... [11:33:32]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:33:32]Read from MH i2c: E2 [11:33:32]MH_I2C_Read... [11:33:32]Read from MH i2c: E2 FD 00 [11:33:32]MH_I2C_Read... [11:33:32]Read from MH i2c: E2 FD 00 AA 32 00 B9 04 AA 04 B5 04 6E 04 04 00 67 00 00 00 69 04 9C 00 6F 04 04 00 65 00 00 00 B1 04 03 00 15 DF 7A 70 04 03 00 94 FF 66 72 04 03 00 81 DF 13 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 78 0D 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 16 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 B8 C1 03 70 04 03 00 B8 C1 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 26 66 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 91 [11:33:32]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 67 00 00 00 69 04 9C 00 6F 04 04 00 65 00 00 00 B1 04 03 00 15 DF 7A 70 04 03 00 94 FF 66 72 04 03 00 81 DF 13 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 78 0D 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 16 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 B8 C1 03 70 04 03 00 B8 C1 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 26 66 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [11:33:32]wFMCommunicate OK [11:33:32]wFMCommunicate request_size=4 [11:33:32]MH_SAM_APDU [11:33:32]CAPDU: 80 17 00 00 [11:33:32]Write to MH i2c: E2 08 00 AB 32 80 17 00 00 00 00 00 00 5D [11:33:32]Write i2c OK [11:33:32]MH_I2C_Read... [11:33:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:33]Read from MH i2c: E2 [11:33:33]MH_I2C_Read... [11:33:33]Read from MH i2c: E2 FD 00 [11:33:33]MH_I2C_Read... [11:33:33]Read from MH i2c: E2 FD 00 AB 32 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 82 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 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 90 00 A6 [11:33:33]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 82 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 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 90 00 [11:33:33]wFMCommunicate OK [11:33:33]wFMCommunicate request_size=4 [11:33:33]MH_SAM_APDU [11:33:33]CAPDU: 80 17 00 00 [11:33:33]Write to MH i2c: E2 08 00 AC 32 80 17 00 00 00 00 00 00 5E [11:33:33]Write i2c OK [11:33:33]MH_I2C_Read... [11:33:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:33]Read from MH i2c: E2 [11:33:33]MH_I2C_Read... [11:33:33]Read from MH i2c: E2 FD 00 [11:33:33]MH_I2C_Read... [11:33:33]Read from MH i2c: E2 FD 00 AC 32 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 86 [11:33:33]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [11:33:33]wFMCommunicate OK [11:33:33]wFMCommunicate request_size=4 [11:33:33]MH_SAM_APDU [11:33:33]CAPDU: 80 17 00 00 [11:33:33]Write to MH i2c: E2 08 00 AD 32 80 17 00 00 00 00 00 00 5F [11:33:33]Write i2c OK [11:33:33]MH_I2C_Read... [11:33:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:34]Read from MH i2c: E2 [11:33:34]MH_I2C_Read... [11:33:34]Read from MH i2c: E2 FD 00 [11:33:34]MH_I2C_Read... [11:33:34]Read from MH i2c: E2 FD 00 AD 32 00 EF 03 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 90 00 D7 [11:33:34]RAPDU: EF 03 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 90 00 [11:33:34]wFMCommunicate OK [11:33:34]wFMCommunicate request_size=4 [11:33:34]MH_SAM_APDU [11:33:34]CAPDU: 80 17 00 00 [11:33:34]Write to MH i2c: E2 08 00 AE 32 80 17 00 00 00 00 00 00 60 [11:33:34]Write i2c OK [11:33:34]MH_I2C_Read... [11:33:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [11:33:34]Read from MH i2c: E2 [11:33:34]MH_I2C_Read... [11:33:34]Read from MH i2c: E2 D6 00 [11:33:34]MH_I2C_Read... [11:33:34]Read from MH i2c: E2 D6 00 AE 32 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 42 [11:33:34]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 OFD Sender: No OFD packet to send [11:33:34]F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:33:34]wFMCommunicate OK [11:33:34]SAM_PROTO_GetShiftData done [11:33:34]requested_item shift.sale.total_cash is exist - process it [11:33:34]requested_item shift.sale_refund.total is exist - process it [11:33:34]requested_item shift.sale_refund.total_cash is exist - process it [11:33:34]requested_item shift.buy.total is exist - process it [11:33:34]requested_item shift.buy.total_cash is exist - process it [11:33:34]produce_requested_data done [11:33:34]produce_requested_data return {"fm.sale.total":83364791.01,"fm.sale_refund.total":2212830.00,"fm.buy.total":0.00,"shift.sale.total":80525.01,"shift.sale.total_cash":67501.00,"shift.sale_refund.total":2462.00,"shift.sale_refund.total_cash":2462.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [11:33:34]process_action_free get_value [11:33:34]json_value_free [11:33:34]json_value_free done [11:33:34]process_json_proto returns [11:33:34]Send response to host [11:33:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":83364791.01,"fm.sale_refund.total":2212830.00,"fm.buy.total":0.00,"shift.sale.total":80525.01,"shift.sale.total_cash":67501.00,"shift.sale_refund.total":2462.00,"shift.sale_refund.total_cash":2462.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [11:33:34]free response buf [11:33:34]execute_script done [11:33:34]execute_script returns [11:33:34]free content buf [11:33:34]Sock 8.Close socket [11:33:34]Sock 8.Thread stoped [11:33:34]accept exits with 9 [11:33:34]New connection [11:33:34]New thread 3067342180 created [11:33:34]Thread 3067198820 joined [11:33:34]Waiting for new connection... [11:33:34] Sock 9.Parse request [11:33:34]Sock 9.Check first char [11:33:34]Sock 9.First char is OK [11:33:34]request: POST /json_proto HTTP/1.0 [11:33:34]Method: POST [11:33:34]URL: /json_proto [11:33:34]Method is POST - this is cgi request [11:33:34]url: /json_proto [11:33:34]query_string will be loaded in cgi processing [11:33:34]execute_cgi json_proto POST (null) [11:33:34]execute_cgi path=json_proto method=POST [11:33:34]POST find Content-Length [11:33:34]Host: 172.17.32.69:8080 [11:33:34]Content-Length: 331 [11:33:34]Content-Type: application/json [11:33:34] [11:33:34]POST finish read [11:33:34]Found Content-Length = 331 [11:33:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:33:34]execute_script... [11:33:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:33:34]POST & json_proto [11:33:34]process_json_proto [11:33:34]json parsed OK: [11:33:34]protocol is kg_v1.0 [11:33:34]action value=get_value [11:33:34]process_action get_value [11:33:34]cmd_get_value [11:33:34]process_action get_value done [11:33:34]requested_data is exist [11:33:34]produce_requested_data [11:33:34]requested_item fm.sale.total is exist - process it [11:33:34]SAM_PROTO_GetFMData [11:33:34]wFMCommunicate request_size=4 [11:33:34]MH_SAM_APDU [11:33:34]CAPDU: 80 13 03 00 [11:33:34]Write to MH i2c: E2 08 00 AF 32 80 13 03 00 00 00 00 00 60 [11:33:34]Write i2c OK [11:33:34]MH_I2C_Read... [11:33:35]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:33:35]Read from MH i2c: E2 [11:33:35]MH_I2C_Read... [11:33:35]Read from MH i2c: E2 FD 00 [11:33:35]MH_I2C_Read... [11:33:35]Read from MH i2c: E2 FD 00 AF 32 00 C5 04 85 04 C1 04 6E 04 04 00 A4 A5 01 00 69 04 A3 00 6F 04 04 00 73 9F 01 00 B1 04 05 00 7D 93 E4 F0 01 70 04 05 00 36 59 EE 92 01 72 04 04 00 47 3A F6 5D 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 21 82 C8 34 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 FE F4 65 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 31 06 00 00 B1 04 04 00 B8 82 30 0D 70 04 04 00 B8 82 30 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C9 A2 66 01 EF 03 09 90 00 9B [11:33:35]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 A4 A5 01 00 69 04 A3 00 6F 04 04 00 73 9F 01 00 B1 04 05 00 7D 93 E4 F0 01 70 04 05 00 36 59 EE 92 01 72 04 04 00 47 3A F6 5D 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 21 82 C8 34 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 FE F4 65 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 31 06 00 00 B1 04 04 00 B8 82 30 0D 70 04 04 00 B8 82 30 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C9 A2 66 01 EF 03 09 90 00 [11:33:35]wFMCommunicate OK [11:33:35]wFMCommunicate request_size=4 [11:33:35]MH_SAM_APDU [11:33:35]CAPDU: 80 17 00 00 [11:33:35]Write to MH i2c: E2 08 00 B0 32 80 17 00 00 00 00 00 00 62 [11:33:35]Write i2c OK [11:33:35]MH_I2C_Read... [11:33:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:35]Read from MH i2c: E2 [11:33:35]MH_I2C_Read... [11:33:35]Read from MH i2c: E2 FD 00 [11:33:35]MH_I2C_Read... [11:33:35]Read from MH i2c: E2 FD 00 B0 32 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 5D E2 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 74 [11:33:36]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 5D E2 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [11:33:36]wFMCommunicate OK [11:33:36]wFMCommunicate request_size=4 [11:33:36]MH_SAM_APDU [11:33:36]CAPDU: 80 17 00 00 [11:33:36]Write to MH i2c: E2 08 00 B1 32 80 17 00 00 00 00 00 00 63 [11:33:36]Write i2c OK [11:33:36]MH_I2C_Read... [11:33:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:36]Read from MH i2c: E2 [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: E2 FD 00 [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: E2 FD 00 B1 32 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 75 [11:33:36]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [11:33:36]wFMCommunicate OK [11:33:36]wFMCommunicate request_size=4 [11:33:36]MH_SAM_APDU [11:33:36]CAPDU: 80 17 00 00 [11:33:36]Write to MH i2c: E2 08 00 B2 32 80 17 00 00 00 00 00 00 64 [11:33:36]Write i2c OK [11:33:36]MH_I2C_Read... [11:33:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:36]Read from MH i2c: E2 [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: E2 FD 00 [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: E2 FD 00 B2 32 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F0 [11:33:37]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:33:37]wFMCommunicate OK [11:33:37]wFMCommunicate request_size=4 [11:33:37]MH_SAM_APDU [11:33:37]CAPDU: 80 17 00 00 [11:33:37]Write to MH i2c: E2 08 00 B3 32 80 17 00 00 00 00 00 00 65 [11:33:37]Write i2c OK [11:33:37]MH_I2C_Read... [11:33:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [11:33:37]Read from MH i2c: E2 [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: E2 E2 00 [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: E2 E2 00 B3 32 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [11:33:37]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:33:37]wFMCommunicate OK [11:33:37]SAM_PROTO_GetFMData done [11:33:37]requested_item fm.sale_refund.total is exist - process it [11:33:37]requested_item fm.buy.total is exist - process it [11:33:37]requested_item shift.sale.total is exist - process it [11:33:37]SAM_PROTO_GetShiftData [11:33:37]wFMCommunicate request_size=4 [11:33:37]MH_SAM_APDU [11:33:37]CAPDU: 80 13 02 00 [11:33:37]Write to MH i2c: E2 08 00 B4 32 80 13 02 00 00 00 00 00 64 [11:33:37]Write i2c OK [11:33:37]MH_I2C_Read... [11:33:38]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:33:38]Read from MH i2c: E2 [11:33:38]MH_I2C_Read... [11:33:38]Read from MH i2c: E2 FD 00 [11:33:38]MH_I2C_Read... [11:33:38]Read from MH i2c: E2 FD 00 B4 32 00 B9 04 AA 04 B5 04 6E 04 04 00 67 00 00 00 69 04 9C 00 6F 04 04 00 65 00 00 00 B1 04 03 00 15 DF 7A 70 04 03 00 94 FF 66 72 04 03 00 81 DF 13 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 78 0D 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 16 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 B8 C1 03 70 04 03 00 B8 C1 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 26 66 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 9B [11:33:38]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 67 00 00 00 69 04 9C 00 6F 04 04 00 65 00 00 00 B1 04 03 00 15 DF 7A 70 04 03 00 94 FF 66 72 04 03 00 81 DF 13 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 78 0D 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 16 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 B8 C1 03 70 04 03 00 B8 C1 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 26 66 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [11:33:38]wFMCommunicate OK [11:33:38]wFMCommunicate request_size=4 [11:33:38]MH_SAM_APDU [11:33:38]CAPDU: 80 17 00 00 [11:33:38]Write to MH i2c: E2 08 00 B5 32 80 17 00 00 00 00 00 00 67 [11:33:38]Write i2c OK [11:33:38]MH_I2C_Read... [11:33:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:38]Read from MH i2c: E2 [11:33:38]MH_I2C_Read... [11:33:38]Read from MH i2c: E2 FD 00 [11:33:38]MH_I2C_Read... [11:33:38]Read from MH i2c: E2 FD 00 B5 32 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 82 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 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 90 00 B0 [11:33:38]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 82 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 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 90 00 [11:33:39]wFMCommunicate OK [11:33:39]wFMCommunicate request_size=4 [11:33:39]MH_SAM_APDU [11:33:39]CAPDU: 80 17 00 00 [11:33:39]Write to MH i2c: E2 08 00 B6 32 80 17 00 00 00 00 00 00 68 [11:33:39]Write i2c OK [11:33:39]MH_I2C_Read... [11:33:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:39]Read from MH i2c: E2 [11:33:39]MH_I2C_Read... [11:33:39]Read from MH i2c: E2 FD 00 [11:33:39]MH_I2C_Read... [11:33:39]Read from MH i2c: E2 FD 00 B6 32 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 90 [11:33:39]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [11:33:39]wFMCommunicate OK [11:33:39]wFMCommunicate request_size=4 [11:33:39]MH_SAM_APDU [11:33:39]CAPDU: 80 17 00 00 [11:33:39]Write to MH i2c: E2 08 00 B7 32 80 17 00 00 00 00 00 00 69 [11:33:39]Write i2c OK [11:33:39]MH_I2C_Read... [11:33:39]OFD Sender: No OFD packet to send [11:33:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:39]Read from MH i2c: E2 [11:33:39]MH_I2C_Read... [11:33:39]Read from MH i2c: E2 FD 00 [11:33:39]MH_I2C_Read... [11:33:40]Read from MH i2c: E2 FD 00 B7 32 00 EF 03 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 90 00 E1 [11:33:40]RAPDU: EF 03 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 90 00 [11:33:40]wFMCommunicate OK [11:33:40]wFMCommunicate request_size=4 [11:33:40]MH_SAM_APDU [11:33:40]CAPDU: 80 17 00 00 [11:33:40]Write to MH i2c: E2 08 00 B8 32 80 17 00 00 00 00 00 00 6A [11:33:40]Write i2c OK [11:33:40]MH_I2C_Read... [11:33:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [11:33:40]Read from MH i2c: E2 [11:33:40]MH_I2C_Read... [11:33:40]Read from MH i2c: E2 D6 00 [11:33:40]MH_I2C_Read... [11:33:40]Read from MH i2c: E2 D6 00 B8 32 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 4C [11:33:40]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:33:40]wFMCommunicate OK [11:33:40]SAM_PROTO_GetShiftData done [11:33:40]requested_item shift.sale.total_cash is exist - process it [11:33:40]requested_item shift.sale_refund.total is exist - process it [11:33:40]requested_item shift.sale_refund.total_cash is exist - process it [11:33:40]requested_item shift.buy.total is exist - process it [11:33:40]requested_item shift.buy.total_cash is exist - process it [11:33:40]produce_requested_data done [11:33:40]produce_requested_data return {"fm.sale.total":83364791.01,"fm.sale_refund.total":2212830.00,"fm.buy.total":0.00,"shift.sale.total":80525.01,"shift.sale.total_cash":67501.00,"shift.sale_refund.total":2462.00,"shift.sale_refund.total_cash":2462.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [11:33:40]process_action_free get_value [11:33:40]json_value_free [11:33:40]json_value_free done [11:33:40]process_json_proto returns [11:33:40]Send response to host [11:33:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":83364791.01,"fm.sale_refund.total":2212830.00,"fm.buy.total":0.00,"shift.sale.total":80525.01,"shift.sale.total_cash":67501.00,"shift.sale_refund.total":2462.00,"shift.sale_refund.total_cash":2462.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [11:33:40]free response buf [11:33:40]execute_script done [11:33:40]execute_script returns [11:33:40]free content buf [11:33:40]Sock 9.Close socket [11:33:40]Sock 9.Thread stoped [11:33:40]accept exits with 8 [11:33:40]New connection [11:33:40]New thread 3067198820 created [11:33:40]Thread 3067342180 joined [11:33:40]Waiting for new connection... [11:33:40] Sock 8.Parse request [11:33:40]Sock 8.Check first char [11:33:40]Sock 8.First char is OK [11:33:40]request: POST /json_proto HTTP/1.0 [11:33:40]Method: POST [11:33:40]URL: /json_proto [11:33:40]Method is POST - this is cgi request [11:33:40]url: /json_proto [11:33:40]query_string will be loaded in cgi processing [11:33:40]execute_cgi json_proto POST (null) [11:33:40]execute_cgi path=json_proto method=POST [11:33:40]POST find Content-Length [11:33:40]Host: 172.17.32.69:8080 [11:33:40]Content-Length: 273 [11:33:40]Content-Type: application/json [11:33:40] [11:33:40]POST finish read [11:33:40]Found Content-Length = 273 [11:33:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:40]execute_script... [11:33:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041C\u0430\u043A\u0441\u0430\u0442\u0431\u0435\u043A \u0443 \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:40]POST & json_proto [11:33:40]process_json_proto [11:33:40]json parsed OK: [11:33:40]protocol is kg_v1.0 [11:33:40]action value=close_shift [11:33:40]process_action close_shift [11:33:40]cmd_close_shift [11:33:40]MH_GetDate [11:33:40]Write to MH i2c: F0 00 00 B9 32 DA [11:33:40]Write i2c OK [11:33:40]MH_I2C_Read... [11:33:40]Read from MH i2c: F0 [11:33:40]MH_I2C_Read... [11:33:40]Read from MH i2c: F0 09 00 [11:33:40]MH_I2C_Read... [11:33:40]Read from MH i2c: F0 09 00 B9 32 00 18 32 F4 65 D5 0F D3 65 A2 [11:33:40]GetLastDocTimeStamp 1710502381 [11:33:40]current date 1710502424 [11:33:40]FM_GetShiftState [11:33:40]SAM_PROTO_GetShiftState [11:33:40]wFMCommunicate request_size=4 [11:33:40]MH_SAM_APDU [11:33:40]CAPDU: 80 13 01 00 [11:33:40]Write to MH i2c: E2 08 00 BA 32 80 13 01 00 00 00 00 00 69 [11:33:40]Write i2c OK [11:33:40]MH_I2C_Read... [11:33:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:40]Read from MH i2c: E2 [11:33:40]MH_I2C_Read... [11:33:40]Read from MH i2c: E2 0E 00 [11:33:40]MH_I2C_Read... [11:33:40]Read from MH i2c: E2 0E 00 BA 32 00 09 00 01 3D 93 F3 65 00 00 00 00 90 00 9D [11:33:40]RAPDU: 09 00 01 3D 93 F3 65 00 00 00 00 90 00 [11:33:40]wFMCommunicate OK [11:33:40]SAM_PROTO_GetShiftState done [11:33:40]FM_GetShiftState done [11:33:40]KKMCreateCloseShiftDocument [11:33:40]Load OK [11:33:40]Malloc new data [11:33:40]MH_GetDate [11:33:40]Write to MH i2c: F0 00 00 BB 32 DC [11:33:40]Write i2c OK [11:33:40]MH_I2C_Read... [11:33:40]Read from MH i2c: F0 [11:33:40]MH_I2C_Read... [11:33:40]Read from MH i2c: F0 09 00 [11:33:40]MH_I2C_Read... [11:33:40]Read from MH i2c: F0 09 00 BB 32 00 19 32 F4 65 D5 0F D3 65 A5 [11:33:40]Malloc new data [11:33:40]Malloc new data [11:33:40]Malloc new data [11:33:40]Malloc new data [11:33:40]KKMCreateCloseShiftDocument OK [11:33:40]KKMSetCloseShiftData OK [11:33:40]ProcessDocumentItem done err = 0, tmpTLVsize=76 [11:33:40]tlvbuf is 00211FA0 [11:33:40]KKMLoadAndSignCloseShiftData [11:33:40]SAM_PROTO_ProcessDocument [11:33:40]wFMCommunicate request_size=9 [11:33:40]MH_SAM_APDU [11:33:40]CAPDU: 80 15 01 00 04 05 00 4C 00 [11:33:40]Write to MH i2c: E2 0C 00 BC 32 80 15 01 00 04 00 05 00 4C 00 00 00 C6 [11:33:40]Write i2c OK [11:33:40]MH_I2C_Read... [11:33:41]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [11:33:41]Read from MH i2c: E2 [11:33:41]MH_I2C_Read... [11:33:41]Read from MH i2c: E2 03 00 [11:33:41]MH_I2C_Read... [11:33:41]Read from MH i2c: E2 03 00 BC 32 00 90 00 62 [11:33:41]RAPDU: 90 00 [11:33:41]wFMCommunicate OK [11:33:41]wFMCommunicate request_size=23 [11:33:41]MH_SAM_APDU [11:33:41]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [11:33:41]Write to MH i2c: E2 1A 00 BD 32 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 64 [11:33:41]Write i2c OK [11:33:41]MH_I2C_Read... [11:33:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [11:33:41]Read from MH i2c: E2 [11:33:41]MH_I2C_Read... [11:33:41]Read from MH i2c: E2 03 00 [11:33:41]MH_I2C_Read... [11:33:41]Read from MH i2c: E2 03 00 BD 32 00 90 00 63 [11:33:41]RAPDU: 90 00 [11:33:41]wFMCommunicate OK [11:33:41]wFMCommunicate request_size=35 [11:33:41]MH_SAM_APDU [11:33:41]CAPDU: 80 15 02 00 1E FD 03 1A 00 D0 9C D0 B0 D0 BA D1 81 D0 B0 D1 82 D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 94 2E 20 [11:33:41]Write to MH i2c: E2 26 00 BE 32 80 15 02 00 1E 00 FD 03 1A 00 D0 9C D0 B0 D0 BA D1 81 D0 B0 D1 82 D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 94 2E 20 00 00 37 [11:33:41]Write i2c OK [11:33:41]MH_I2C_Read... [11:33:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [11:33:41]Read from MH i2c: E2 [11:33:41]MH_I2C_Read... [11:33:41]Read from MH i2c: E2 03 00 [11:33:41]MH_I2C_Read... [11:33:41]Read from MH i2c: E2 03 00 BE 32 00 90 00 64 [11:33:41]RAPDU: 90 00 [11:33:41]wFMCommunicate OK [11:33:41]wFMCommunicate request_size=13 [11:33:41]MH_SAM_APDU [11:33:41]CAPDU: 80 15 02 00 08 F4 03 04 00 19 32 F4 65 [11:33:41]Write to MH i2c: E2 10 00 BF 32 80 15 02 00 08 00 F4 03 04 00 19 32 F4 65 00 00 20 [11:33:41]Write i2c OK [11:33:41]MH_I2C_Read... [11:33:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [11:33:41]Read from MH i2c: E2 [11:33:41]MH_I2C_Read... [11:33:41]Read from MH i2c: E2 03 00 [11:33:41]MH_I2C_Read... [11:33:41]Read from MH i2c: E2 03 00 BF 32 00 90 00 65 [11:33:41]RAPDU: 90 00 [11:33:41]wFMCommunicate OK [11:33:41]wFMCommunicate request_size=25 [11:33:41]MH_SAM_APDU [11:33:41]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 [11:33:41]Write to MH i2c: E2 1C 00 C0 32 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 00 00 D0 [11:33:41]Write i2c OK [11:33:41]MH_I2C_Read... [11:33:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [11:33:41]Read from MH i2c: E2 [11:33:41]MH_I2C_Read... [11:33:41]Read from MH i2c: E2 03 00 [11:33:41]MH_I2C_Read... [11:33:41]Read from MH i2c: E2 03 00 C0 32 00 90 00 66 [11:33:41]RAPDU: 90 00 [11:33:41]wFMCommunicate OK [11:33:41]wFMCommunicate request_size=4 [11:33:41]MH_SAM_APDU [11:33:41]CAPDU: 80 15 03 00 [11:33:41]Write to MH i2c: E2 08 00 C1 32 80 15 03 00 00 00 00 00 74 [11:33:41]Write i2c OK [11:33:41]MH_I2C_Read... [11:33:41]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [11:33:41]Read from MH i2c: E2 [11:33:41]MH_I2C_Read... [11:33:41]Read from MH i2c: E2 FD 00 [11:33:42]MH_I2C_Read... [11:33:42]Read from MH i2c: E2 FD 00 C1 32 00 FC 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 25 A8 01 00 0E 04 04 00 40 01 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 69 00 00 00 AA 04 B5 04 6E 04 04 00 67 00 00 00 69 04 9C 00 6F 04 04 00 65 00 00 00 B1 04 03 00 15 DF 7A 70 04 03 00 94 FF 66 72 04 03 00 81 DF 13 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 78 0D 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 16 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 B8 C1 03 90 00 A1 [11:33:42]RAPDU: FC 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 25 A8 01 00 0E 04 04 00 40 01 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 69 00 00 00 AA 04 B5 04 6E 04 04 00 67 00 00 00 69 04 9C 00 6F 04 04 00 65 00 00 00 B1 04 03 00 15 DF 7A 70 04 03 00 94 FF 66 72 04 03 00 81 DF 13 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 78 0D 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 16 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 B8 C1 03 90 00 [11:33:42]wFMCommunicate OK [11:33:42]SAM_PROTO_ProcessDocument answer len = 1276 [11:33:42]SAM_PROTO_ProcessDocument remain to read = 1028 [11:33:42]wFMCommunicate request_size=4 [11:33:42]MH_SAM_APDU [11:33:42]CAPDU: 80 17 00 00 [11:33:42]Write to MH i2c: E2 08 00 C2 32 80 17 00 00 00 00 00 00 74 [11:33:42]Write i2c OK [11:33:42]MH_I2C_Read... [11:33:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:42]Read from MH i2c: E2 [11:33:42]MH_I2C_Read... [11:33:42]Read from MH i2c: E2 FD 00 [11:33:42]MH_I2C_Read... [11:33:42]Read from MH i2c: E2 FD 00 C2 32 00 70 04 03 00 B8 C1 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 26 66 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 82 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 E0 [11:33:42]RAPDU: 70 04 03 00 B8 C1 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 26 66 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 82 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [11:33:42]wFMCommunicate OK [11:33:42]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [11:33:42]SAM_PROTO_ProcessDocument remain to read = 778 [11:33:42]wFMCommunicate request_size=4 [11:33:42]MH_SAM_APDU [11:33:42]CAPDU: 80 17 00 00 [11:33:42]Write to MH i2c: E2 08 00 C3 32 80 17 00 00 00 00 00 00 75 [11:33:42]Write i2c OK [11:33:42]MH_I2C_Read... [11:33:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:43]Read from MH i2c: E2 [11:33:43]MH_I2C_Read... [11:33:43]Read from MH i2c: E2 FD 00 [11:33:43]MH_I2C_Read... [11:33:43]Read from MH i2c: E2 FD 00 C3 32 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 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 90 00 DB [11:33:43]RAPDU: 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 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 90 00 [11:33:43]wFMCommunicate OK [11:33:43]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [11:33:43]SAM_PROTO_ProcessDocument remain to read = 528 [11:33:43]wFMCommunicate request_size=4 [11:33:43]MH_SAM_APDU [11:33:43]CAPDU: 80 17 00 00 [11:33:43]Write to MH i2c: E2 08 00 C4 32 80 17 00 00 00 00 00 00 76 [11:33:43]Write i2c OK [11:33:43]MH_I2C_Read... [11:33:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:43]Read from MH i2c: E2 [11:33:43]MH_I2C_Read... [11:33:43]Read from MH i2c: E2 FD 00 [11:33:43]MH_I2C_Read... [11:33:43]Read from MH i2c: E2 FD 00 C4 32 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 89 [11:33:43]RAPDU: 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:33:44]wFMCommunicate OK [11:33:44]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [11:33:44]SAM_PROTO_ProcessDocument remain to read = 278 [11:33:44]wFMCommunicate request_size=4 [11:33:44]MH_SAM_APDU [11:33:44]CAPDU: 80 17 00 00 [11:33:44]Write to MH i2c: E2 08 00 C5 32 80 17 00 00 00 00 00 00 77 [11:33:44]Write i2c OK [11:33:44]MH_I2C_Read... [11:33:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:44]Read from MH i2c: E2 [11:33:44]MH_I2C_Read... [11:33:44]Read from MH i2c: E2 FD 00 [11:33:44]MH_I2C_Read... [11:33:44]Read from MH i2c: E2 FD 00 C5 32 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 B1 [11:33:44]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [11:33:44]wFMCommunicate OK [11:33:44]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [11:33:44]SAM_PROTO_ProcessDocument remain to read = 28 [11:33:44]wFMCommunicate request_size=4 [11:33:44]MH_SAM_APDU [11:33:44]CAPDU: 80 17 00 00 [11:33:44]Write to MH i2c: E2 08 00 C6 32 80 17 00 00 00 00 00 00 78 [11:33:44]Write i2c OK [11:33:44]MH_I2C_Read... [11:33:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 28! [11:33:45]OFD Sender: No OFD packet to send [11:33:45]Read from MH i2c: E2 [11:33:45]MH_I2C_Read... [11:33:45]Read from MH i2c: E2 1F 00 [11:33:45]MH_I2C_Read... [11:33:45]Read from MH i2c: E2 1F 00 C6 32 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 F2 1B DB 3F C0 32 90 00 D4 [11:33:45]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 F2 1B DB 3F C0 32 90 00 [11:33:45]wFMCommunicate OK [11:33:45]SAM_PROTO_ProcessDocument received (without SW) 28 bytes [11:33:45]SAM_PROTO_ProcessDocument done [11:33:45]1209 (1) - 1.0 - номер версии ФФД [11:33:45]1041 (16) - 0000000000871818 - номер ФМ [11:33:45]1040 (4) - 108581 - номер ФД [11:33:45]1038 (4) - 320 - номер смены [11:33:45]1118 (4) - 103 - количество кассовых чеков за смену [11:33:45]1111 (4) - 105 - общее количество ФД за смену [11:33:45]1194 (1205) - счетчики итогов смены [11:33:45] 1134 (4) - 103 - количество чеков со всеми признаками расчетов [11:33:45] 1129 (156) - счетчики операций «приход» [11:33:45] 1135 (4) - 101 - количество чеков по признаку расчетов [11:33:45] 1201 (3) - 80525.01 - общая итоговая сумма в чеках [11:33:45] 1136 (3) - 67501.00 - итоговая сумма в чеках наличными [11:33:45] 1138 (3) - 13024.01 - итоговая сумма в чеках безналичными [11:33:45] 1024 (123) - суммы налогов [11:33:45] 1006 (9) - суммы НДС [11:33:45] 1010 (1) - 0% - код ставки НДС [11:33:45] 1011 (0) - 0.00 - сумма НДС по ставке [11:33:45] 1006 (12) - суммы НДС [11:33:45] 1010 (1) - 12% - код ставки НДС [11:33:45] 1011 (3) - 8554.16 - сумма НДС по ставке [11:33:45] 1007 (9) - суммы НСП [11:33:45] 1014 (1) - 0% - код ставки НСП [11:33:45] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:45] 1007 (12) - суммы НСП [11:33:45] 1014 (1) - 1% - код ставки НСП [11:33:45] 1015 (3) - 712.77 - сумма НСП по ставке [11:33:45] 1007 (9) - суммы НСП [11:33:45] 1014 (1) - 2% - код ставки НСП [11:33:45] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:45] 1007 (9) - суммы НСП [11:33:45] 1014 (1) - 3% - код ставки НСП [11:33:45] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:45] 1007 (9) - суммы НСП [11:33:45] 1014 (1) - 5% - код ставки НСП [11:33:45] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:45] 1007 (9) - суммы НСП [11:33:45] 1014 (1) - 0,50% - код ставки НСП [11:33:45] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:45] 1007 (9) - суммы НСП [11:33:45] 1014 (1) - 1,50% - код ставки НСП [11:33:45] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:45] 1130 (151) - счетчики операций «возврат прихода» [11:33:45] 1135 (4) - 2 - количество чеков по признаку расчетов [11:33:45] 1201 (3) - 2462.00 - общая итоговая сумма в чеках [11:33:45] 1136 (3) - 2462.00 - итоговая сумма в чеках наличными [11:33:45] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [11:33:45] 1024 (121) - суммы налогов [11:33:45] 1006 (9) - суммы НДС [11:33:45] 1010 (1) - 0% - код ставки НДС [11:33:45] 1011 (0) - 0.00 - сумма НДС по ставке [11:33:45] 1006 (11) - суммы НДС [11:33:45] 1010 (1) - 12% - код ставки НДС [11:33:45] 1011 (2) - 261.50 - сумма НДС по ставке [11:33:45] 1007 (9) - суммы НСП [11:33:45] 1014 (1) - 0% - код ставки НСП [11:33:45] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:45] 1007 (11) - суммы НСП [11:33:45] 1014 (1) - 1% - код ставки НСП [11:33:45] 1015 (2) - 21.78 - сумма НСП по ставке [11:33:45] 1007 (9) - суммы НСП [11:33:45] 1014 (1) - 2% - код ставки НСП [11:33:45] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:45] 1007 (9) - суммы НСП [11:33:45] 1014 (1) - 3% - код ставки НСП [11:33:45] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:45] 1007 (9) - суммы НСП [11:33:45] 1014 (1) - 5% - код ставки НСП [11:33:45] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:45] 1007 (9) - суммы НСП [11:33:45] 1014 (1) - 0,50% - код ставки НСП [11:33:45] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:45] 1007 (9) - суммы НСП [11:33:45] 1014 (1) - 1,50% - код ставки НСП [11:33:45] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:45] 1131 (141) - счетчики операций «расход» [11:33:45] 1135 (4) - 0 - количество чеков по признаку расчетов [11:33:45] 1201 (0) - 0.00 - общая итоговая сумма в чеках [11:33:45] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [11:33:45] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [11:33:45] 1024 (117) - суммы налогов [11:33:45] 1006 (9) - суммы НДС [11:33:45] 1010 (1) - 0% - код ставки НДС [11:33:45] 1011 (0) - 0.00 - сумма НДС по ставке [11:33:45] 1006 (9) - суммы НДС [11:33:45] 1010 (1) - 12% - код ставки НДС [11:33:45] 1011 (0) - 0.00 - сумма НДС по ставке [11:33:45] 1007 (9) - суммы НСП [11:33:45] 1014 (1) - 0% - код ставки НСП [11:33:45] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:45] 1007 (9) - суммы НСП [11:33:45] 1014 (1) - 1% - код ставки НСП [11:33:45] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:45] 1007 (9) - суммы НСП [11:33:45] 1014 (1) - 2% - код ставки НСП [11:33:45] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:45] 1007 (9) - суммы НСП [11:33:45] 1014 (1) - 3% - код ставки НСП [11:33:45] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:45] 1007 (9) - суммы НСП [11:33:45] 1014 (1) - 5% - код ставки НСП [11:33:45] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:45] 1007 (9) - суммы НСП [11:33:45] 1014 (1) - 0,50% - код ставки НСП [11:33:45] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:45] 1007 (9) - суммы НСП [11:33:45] 1014 (1) - 1,50% - код ставки НСП [11:33:45] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:45] 1132 (141) - счетчики операций «возврат расхода» [11:33:45] 1135 (4) - 0 - количество чеков по признаку расчетов [11:33:45] 1201 (0) - 0.00 - общая итоговая сумма в чеках [11:33:45] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [11:33:45] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [11:33:45] 1024 (117) - суммы налогов [11:33:45] 1006 (9) - суммы НДС [11:33:45] 1010 (1) - 0% - код ставки НДС [11:33:45] 1011 (0) - 0.00 - сумма НДС по ставке [11:33:45] 1006 (9) - суммы НДС [11:33:45] 1010 (1) - 12% - код ставки НДС [11:33:45] 1011 (0) - 0.00 - сумма НДС по ставке [11:33:45] 1007 (9) - суммы НСП [11:33:45] 1014 (1) - 0% - код ставки НСП [11:33:45] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:45] 1007 (9) - суммы НСП [11:33:45] 1014 (1) - 1% - код ставки НСП [11:33:45] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:45] 1007 (9) - суммы НСП [11:33:45] 1014 (1) - 2% - код ставки НСП [11:33:45] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:45] 1007 (9) - суммы НСП [11:33:45] 1014 (1) - 3% - код ставки НСП [11:33:45] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:45] 1007 (9) - суммы НСП [11:33:45] 1014 (1) - 5% - код ставки НСП [11:33:45] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:45] 1007 (9) - суммы НСП [11:33:45] 1014 (1) - 0,50% - код ставки НСП [11:33:45] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:45] 1007 (9) - суммы НСП [11:33:45] 1014 (1) - 1,50% - код ставки НСП [11:33:45] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:45] 1133 (588) - - счетчики коррекции - не используются [11:33:45]1077 (6) - 266201456427058 - ФПД [11:33:45]SetTLVBufToDocument [11:33:45]Processing tag 1209 (04B9) [11:33:45]Malloc new data [11:33:45]Processing tag 1041 (0411) [11:33:45]Processing tag 1040 (0410) [11:33:45]Malloc new data [11:33:45]Processing tag 1038 (040E) [11:33:45]Malloc new data [11:33:45]Processing tag 1118 (045E) [11:33:45]Malloc new data [11:33:45]Processing tag 1111 (0457) [11:33:45]Malloc new data [11:33:45]Processing tag 1194 (04AA) [11:33:45]Load OK [11:33:45]SetTLVBufToDocument [11:33:45]Processing tag 1134 (046E) [11:33:45]Malloc new data [11:33:45]Processing tag 1129 (0469) [11:33:45]Load OK [11:33:45]SetTLVBufToDocument [11:33:45]Processing tag 1135 (046F) [11:33:45]Malloc new data [11:33:45]Processing tag 1201 (04B1) [11:33:45]Malloc new data [11:33:45]Processing tag 1136 (0470) [11:33:45]Malloc new data [11:33:45]Processing tag 1138 (0472) [11:33:45]Malloc new data [11:33:45]Processing tag 1024 (0400) [11:33:45]Load OK [11:33:45]SetTLVBufToDocument [11:33:45]Processing tag 1006 (03EE) [11:33:45]Load OK [11:33:45]SetTLVBufToDocument [11:33:45]Processing tag 1010 (03F2) [11:33:45]Malloc new data [11:33:45]Processing tag 1011 (03F3) [11:33:45]Malloc new data [11:33:45]SetTLVBufToDocument err=0 [11:33:45]Processing tag 1006 (03EE) [11:33:45]Load OK [11:33:45]SetTLVBufToDocument [11:33:45]Processing tag 1010 (03F2) [11:33:45]Malloc new data [11:33:45]Processing tag 1011 (03F3) [11:33:45]Malloc new data [11:33:45]SetTLVBufToDocument err=0 [11:33:45]Processing tag 1007 (03EF) [11:33:45]Load OK [11:33:45]SetTLVBufToDocument [11:33:45]Processing tag 1014 (03F6) [11:33:45]Malloc new data [11:33:45]Processing tag 1015 (03F7) [11:33:45]Malloc new data [11:33:45]SetTLVBufToDocument err=0 [11:33:45]Processing tag 1007 (03EF) [11:33:45]Load OK [11:33:45]SetTLVBufToDocument [11:33:45]Processing tag 1014 (03F6) [11:33:45]Malloc new data [11:33:45]Processing tag 1015 (03F7) [11:33:45]Malloc new data [11:33:45]SetTLVBufToDocument err=0 [11:33:45]Processing tag 1007 (03EF) [11:33:45]Load OK [11:33:45]SetTLVBufToDocument [11:33:45]Processing tag 1014 (03F6) [11:33:45]Malloc new data [11:33:45]Processing tag 1015 (03F7) [11:33:45]Malloc new data [11:33:45]SetTLVBufToDocument err=0 [11:33:45]Processing tag 1007 (03EF) [11:33:45]Load OK [11:33:45]SetTLVBufToDocument [11:33:45]Processing tag 1014 (03F6) [11:33:45]Malloc new data [11:33:45]Processing tag 1015 (03F7) [11:33:45]Malloc new data [11:33:45]SetTLVBufToDocument err=0 [11:33:45]Processing tag 1007 (03EF) [11:33:45]Load OK [11:33:45]SetTLVBufToDocument [11:33:45]Processing tag 1014 (03F6) [11:33:45]Malloc new data [11:33:45]Processing tag 1015 (03F7) [11:33:45]Malloc new data [11:33:45]SetTLVBufToDocument err=0 [11:33:45]Processing tag 1007 (03EF) [11:33:45]Load OK [11:33:45]SetTLVBufToDocument [11:33:45]Processing tag 1014 (03F6) [11:33:45]Malloc new data [11:33:45]Processing tag 1015 (03F7) [11:33:45]Malloc new data [11:33:45]SetTLVBufToDocument err=0 [11:33:45]Processing tag 1007 (03EF) [11:33:45]Load OK [11:33:45]SetTLVBufToDocument [11:33:45]Processing tag 1014 (03F6) [11:33:45]Malloc new data [11:33:45]Processing tag 1015 (03F7) [11:33:45]Malloc new data [11:33:45]SetTLVBufToDocument err=0 [11:33:45]SetTLVBufToDocument err=0 [11:33:45]SetTLVBufToDocument err=0 [11:33:45]Processing tag 1130 (046A) [11:33:45]Load OK [11:33:45]SetTLVBufToDocument [11:33:45]Processing tag 1135 (046F) [11:33:45]Malloc new data [11:33:45]Processing tag 1201 (04B1) [11:33:45]Malloc new data [11:33:45]Processing tag 1136 (0470) [11:33:45]Malloc new data [11:33:45]Processing tag 1138 (0472) [11:33:45]Malloc new data [11:33:45]Processing tag 1024 (0400) [11:33:45]Load OK [11:33:45]SetTLVBufToDocument [11:33:45]Processing tag 1006 (03EE) [11:33:45]Load OK [11:33:45]SetTLVBufToDocument [11:33:45]Processing tag 1010 (03F2) [11:33:45]Malloc new data [11:33:45]Processing tag 1011 (03F3) [11:33:45]Malloc new data [11:33:45]SetTLVBufToDocument err=0 [11:33:45]Processing tag 1006 (03EE) [11:33:45]Load OK [11:33:45]SetTLVBufToDocument [11:33:45]Processing tag 1010 (03F2) [11:33:45]Malloc new data [11:33:45]Processing tag 1011 (03F3) [11:33:45]Malloc new data [11:33:45]SetTLVBufToDocument err=0 [11:33:45]Processing tag 1007 (03EF) [11:33:45]Load OK [11:33:45]SetTLVBufToDocument [11:33:45]Processing tag 1014 (03F6) [11:33:45]Malloc new data [11:33:45]Processing tag 1015 (03F7) [11:33:45]Malloc new data [11:33:45]SetTLVBufToDocument err=0 [11:33:45]Processing tag 1007 (03EF) [11:33:45]Load OK [11:33:45]SetTLVBufToDocument [11:33:45]Processing tag 1014 (03F6) [11:33:45]Malloc new data [11:33:45]Processing tag 1015 (03F7) [11:33:45]Malloc new data [11:33:45]SetTLVBufToDocument err=0 [11:33:45]Processing tag 1007 (03EF) [11:33:45]Load OK [11:33:45]SetTLVBufToDocument [11:33:45]Processing tag 1014 (03F6) [11:33:45]Malloc new data [11:33:45]Processing tag 1015 (03F7) [11:33:45]Malloc new data [11:33:45]SetTLVBufToDocument err=0 [11:33:45]Processing tag 1007 (03EF) [11:33:45]Load OK [11:33:45]SetTLVBufToDocument [11:33:45]Processing tag 1014 (03F6) [11:33:45]Malloc new data [11:33:45]Processing tag 1015 (03F7) [11:33:45]Malloc new data [11:33:45]SetTLVBufToDocument err=0 [11:33:45]Processing tag 1007 (03EF) [11:33:45]Load OK [11:33:45]SetTLVBufToDocument [11:33:45]Processing tag 1014 (03F6) [11:33:45]Malloc new data [11:33:45]Processing tag 1015 (03F7) [11:33:45]Malloc new data [11:33:45]SetTLVBufToDocument err=0 [11:33:45]Processing tag 1007 (03EF) [11:33:45]Load OK [11:33:45]SetTLVBufToDocument [11:33:45]Processing tag 1014 (03F6) [11:33:45]Malloc new data [11:33:45]Processing tag 1015 (03F7) [11:33:45]Malloc new data [11:33:45]SetTLVBufToDocument err=0 [11:33:45]Processing tag 1007 (03EF) [11:33:45]Load OK [11:33:45]SetTLVBufToDocument [11:33:45]Processing tag 1014 (03F6) [11:33:45]Malloc new data [11:33:45]Processing tag 1015 (03F7) [11:33:45]Malloc new data [11:33:45]SetTLVBufToDocument err=0 [11:33:45]SetTLVBufToDocument err=0 [11:33:46]SetTLVBufToDocument err=0 [11:33:46]Processing tag 1131 (046B) [11:33:46]Load OK [11:33:46]SetTLVBufToDocument [11:33:46]Processing tag 1135 (046F) [11:33:46]Malloc new data [11:33:46]Processing tag 1201 (04B1) [11:33:46]Malloc new data [11:33:46]Processing tag 1136 (0470) [11:33:46]Malloc new data [11:33:46]Processing tag 1138 (0472) [11:33:46]Malloc new data [11:33:46]Processing tag 1024 (0400) [11:33:46]Load OK [11:33:46]SetTLVBufToDocument [11:33:46]Processing tag 1006 (03EE) [11:33:46]Load OK [11:33:46]SetTLVBufToDocument [11:33:46]Processing tag 1010 (03F2) [11:33:46]Malloc new data [11:33:46]Processing tag 1011 (03F3) [11:33:46]Malloc new data [11:33:46]SetTLVBufToDocument err=0 [11:33:46]Processing tag 1006 (03EE) [11:33:46]Load OK [11:33:46]SetTLVBufToDocument [11:33:46]Processing tag 1010 (03F2) [11:33:46]Malloc new data [11:33:46]Processing tag 1011 (03F3) [11:33:46]Malloc new data [11:33:46]SetTLVBufToDocument err=0 [11:33:46]Processing tag 1007 (03EF) [11:33:46]Load OK [11:33:46]SetTLVBufToDocument [11:33:46]Processing tag 1014 (03F6) [11:33:46]Malloc new data [11:33:46]Processing tag 1015 (03F7) [11:33:46]Malloc new data [11:33:46]SetTLVBufToDocument err=0 [11:33:46]Processing tag 1007 (03EF) [11:33:46]Load OK [11:33:46]SetTLVBufToDocument [11:33:46]Processing tag 1014 (03F6) [11:33:46]Malloc new data [11:33:46]Processing tag 1015 (03F7) [11:33:46]Malloc new data [11:33:46]SetTLVBufToDocument err=0 [11:33:46]Processing tag 1007 (03EF) [11:33:46]Load OK [11:33:46]SetTLVBufToDocument [11:33:46]Processing tag 1014 (03F6) [11:33:46]Malloc new data [11:33:46]Processing tag 1015 (03F7) [11:33:46]Malloc new data [11:33:46]SetTLVBufToDocument err=0 [11:33:46]Processing tag 1007 (03EF) [11:33:46]Load OK [11:33:46]SetTLVBufToDocument [11:33:46]Processing tag 1014 (03F6) [11:33:46]Malloc new data [11:33:46]Processing tag 1015 (03F7) [11:33:46]Malloc new data [11:33:46]SetTLVBufToDocument err=0 [11:33:46]Processing tag 1007 (03EF) [11:33:46]Load OK [11:33:46]SetTLVBufToDocument [11:33:46]Processing tag 1014 (03F6) [11:33:46]Malloc new data [11:33:46]Processing tag 1015 (03F7) [11:33:46]Malloc new data [11:33:46]SetTLVBufToDocument err=0 [11:33:46]Processing tag 1007 (03EF) [11:33:46]Load OK [11:33:46]SetTLVBufToDocument [11:33:46]Processing tag 1014 (03F6) [11:33:46]Malloc new data [11:33:46]Processing tag 1015 (03F7) [11:33:46]Malloc new data [11:33:46]SetTLVBufToDocument err=0 [11:33:46]Processing tag 1007 (03EF) [11:33:46]Load OK [11:33:46]SetTLVBufToDocument [11:33:46]Processing tag 1014 (03F6) [11:33:46]Malloc new data [11:33:46]Processing tag 1015 (03F7) [11:33:46]Malloc new data [11:33:46]SetTLVBufToDocument err=0 [11:33:46]SetTLVBufToDocument err=0 [11:33:46]SetTLVBufToDocument err=0 [11:33:46]Processing tag 1132 (046C) [11:33:46]Load OK [11:33:46]SetTLVBufToDocument [11:33:46]Processing tag 1135 (046F) [11:33:46]Malloc new data [11:33:46]Processing tag 1201 (04B1) [11:33:46]Malloc new data [11:33:46]Processing tag 1136 (0470) [11:33:46]Malloc new data [11:33:46]Processing tag 1138 (0472) [11:33:46]Malloc new data [11:33:46]Processing tag 1024 (0400) [11:33:46]Load OK [11:33:46]SetTLVBufToDocument [11:33:46]Processing tag 1006 (03EE) [11:33:46]Load OK [11:33:46]SetTLVBufToDocument [11:33:46]Processing tag 1010 (03F2) [11:33:46]Malloc new data [11:33:46]Processing tag 1011 (03F3) [11:33:46]Malloc new data [11:33:46]SetTLVBufToDocument err=0 [11:33:46]Processing tag 1006 (03EE) [11:33:46]Load OK [11:33:46]SetTLVBufToDocument [11:33:46]Processing tag 1010 (03F2) [11:33:46]Malloc new data [11:33:46]Processing tag 1011 (03F3) [11:33:46]Malloc new data [11:33:46]SetTLVBufToDocument err=0 [11:33:46]Processing tag 1007 (03EF) [11:33:46]Load OK [11:33:46]SetTLVBufToDocument [11:33:46]Processing tag 1014 (03F6) [11:33:46]Malloc new data [11:33:46]Processing tag 1015 (03F7) [11:33:46]Malloc new data [11:33:46]SetTLVBufToDocument err=0 [11:33:46]Processing tag 1007 (03EF) [11:33:46]Load OK [11:33:46]SetTLVBufToDocument [11:33:46]Processing tag 1014 (03F6) [11:33:46]Malloc new data [11:33:46]Processing tag 1015 (03F7) [11:33:46]Malloc new data [11:33:46]SetTLVBufToDocument err=0 [11:33:46]Processing tag 1007 (03EF) [11:33:46]Load OK [11:33:46]SetTLVBufToDocument [11:33:46]Processing tag 1014 (03F6) [11:33:46]Malloc new data [11:33:46]Processing tag 1015 (03F7) [11:33:46]Malloc new data [11:33:46]SetTLVBufToDocument err=0 [11:33:46]Processing tag 1007 (03EF) [11:33:46]Load OK [11:33:46]SetTLVBufToDocument [11:33:46]Processing tag 1014 (03F6) [11:33:46]Malloc new data [11:33:46]Processing tag 1015 (03F7) [11:33:46]Malloc new data [11:33:46]SetTLVBufToDocument err=0 [11:33:46]Processing tag 1007 (03EF) [11:33:46]Load OK [11:33:46]SetTLVBufToDocument [11:33:46]Processing tag 1014 (03F6) [11:33:46]Malloc new data [11:33:46]Processing tag 1015 (03F7) [11:33:46]Malloc new data [11:33:46]SetTLVBufToDocument err=0 [11:33:46]Processing tag 1007 (03EF) [11:33:46]Load OK [11:33:46]SetTLVBufToDocument [11:33:46]Processing tag 1014 (03F6) [11:33:46]Malloc new data [11:33:46]Processing tag 1015 (03F7) [11:33:46]Malloc new data [11:33:46]SetTLVBufToDocument err=0 [11:33:46]Processing tag 1007 (03EF) [11:33:46]Load OK [11:33:46]SetTLVBufToDocument [11:33:46]Processing tag 1014 (03F6) [11:33:46]Malloc new data [11:33:46]Processing tag 1015 (03F7) [11:33:46]Malloc new data [11:33:46]SetTLVBufToDocument err=0 [11:33:46]SetTLVBufToDocument err=0 [11:33:46]SetTLVBufToDocument err=0 [11:33:46]Processing tag 1133 (046D) [11:33:46]Malloc new data [11:33:46]SetTLVBufToDocument err=0 [11:33:46]Processing tag 1077 (0435) [11:33:46]Malloc new data [11:33:46]SetTLVBufToDocument err=0 [11:33:46]Malloc new data [11:33:46]SAM_PROTO_GetFMData [11:33:46]wFMCommunicate request_size=4 [11:33:46]MH_SAM_APDU [11:33:46]CAPDU: 80 13 03 00 [11:33:46]Write to MH i2c: E2 08 00 C7 32 80 13 03 00 00 00 00 00 78 [11:33:46]Write i2c OK [11:33:46]MH_I2C_Read... [11:33:46]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:33:46]Read from MH i2c: E2 [11:33:46]MH_I2C_Read... [11:33:46]Read from MH i2c: E2 FD 00 [11:33:46]MH_I2C_Read... [11:33:46]Read from MH i2c: E2 FD 00 C7 32 00 C5 04 85 04 C1 04 6E 04 04 00 A4 A5 01 00 69 04 A3 00 6F 04 04 00 73 9F 01 00 B1 04 05 00 7D 93 E4 F0 01 70 04 05 00 36 59 EE 92 01 72 04 04 00 47 3A F6 5D 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 21 82 C8 34 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 FE F4 65 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 31 06 00 00 B1 04 04 00 B8 82 30 0D 70 04 04 00 B8 82 30 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C9 A2 66 01 EF 03 09 90 00 B3 [11:33:46]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 A4 A5 01 00 69 04 A3 00 6F 04 04 00 73 9F 01 00 B1 04 05 00 7D 93 E4 F0 01 70 04 05 00 36 59 EE 92 01 72 04 04 00 47 3A F6 5D 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 21 82 C8 34 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 FE F4 65 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 31 06 00 00 B1 04 04 00 B8 82 30 0D 70 04 04 00 B8 82 30 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C9 A2 66 01 EF 03 09 90 00 [11:33:47]wFMCommunicate OK [11:33:47]wFMCommunicate request_size=4 [11:33:47]MH_SAM_APDU [11:33:47]CAPDU: 80 17 00 00 [11:33:47]Write to MH i2c: E2 08 00 C8 32 80 17 00 00 00 00 00 00 7A [11:33:47]Write i2c OK [11:33:47]MH_I2C_Read... [11:33:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:47]Read from MH i2c: E2 [11:33:47]MH_I2C_Read... [11:33:47]Read from MH i2c: E2 FD 00 [11:33:47]MH_I2C_Read... [11:33:47]Read from MH i2c: E2 FD 00 C8 32 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 5D E2 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 8C [11:33:47]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 5D E2 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [11:33:47]wFMCommunicate OK [11:33:47]wFMCommunicate request_size=4 [11:33:47]MH_SAM_APDU [11:33:47]CAPDU: 80 17 00 00 [11:33:47]Write to MH i2c: E2 08 00 C9 32 80 17 00 00 00 00 00 00 7B [11:33:47]Write i2c OK [11:33:47]MH_I2C_Read... [11:33:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:47]Read from MH i2c: E2 [11:33:48]MH_I2C_Read... [11:33:48]Read from MH i2c: E2 FD 00 [11:33:48]MH_I2C_Read... [11:33:48]Read from MH i2c: E2 FD 00 C9 32 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 8D [11:33:48]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [11:33:48]wFMCommunicate OK [11:33:48]wFMCommunicate request_size=4 [11:33:48]MH_SAM_APDU [11:33:48]CAPDU: 80 17 00 00 [11:33:48]Write to MH i2c: E2 08 00 CA 32 80 17 00 00 00 00 00 00 7C [11:33:48]Write i2c OK [11:33:48]MH_I2C_Read... [11:33:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:48]Read from MH i2c: E2 [11:33:48]MH_I2C_Read... [11:33:48]Read from MH i2c: E2 FD 00 [11:33:48]MH_I2C_Read... [11:33:48]Read from MH i2c: E2 FD 00 CA 32 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 08 [11:33:48]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:33:49]wFMCommunicate OK [11:33:49]wFMCommunicate request_size=4 [11:33:49]MH_SAM_APDU [11:33:49]CAPDU: 80 17 00 00 [11:33:49]Write to MH i2c: E2 08 00 CB 32 80 17 00 00 00 00 00 00 7D [11:33:49]Write i2c OK [11:33:49]MH_I2C_Read... [11:33:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [11:33:49]Read from MH i2c: E2 [11:33:49]MH_I2C_Read... [11:33:49]Read from MH i2c: E2 E2 00 [11:33:49]MH_I2C_Read... [11:33:49]Read from MH i2c: E2 E2 00 CB 32 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 5B [11:33:49]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:33:49]wFMCommunicate OK [11:33:49]SAM_PROTO_GetFMData done [11:33:49]Malloc new data [11:33:49]Malloc new data [11:33:49]Malloc new data [11:33:49]Malloc new data [11:33:49]KKMLoadAndSignCloseShiftData err=0 [11:33:49]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Максатбек у Д. 15.03.2024 11:33 Смена: 320 РНМ: 0000000000091911 ЗНМ: 0300000266 СНО: Общий режим Чеков за смену: 103 ФД за смену: 105 Всего чеков: 103 ИТОГИ ПРИХОД Чеков: 101 Общий итог: 80525.01 Итого наличными: 67501.00 Итого безнал.: 13024.01 НДС 0% : 0.00 НДС 12% : 8554.16 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 712.77 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 2 Общий итог: 2462.00 Итого наличными: 2462.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 261.50 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 21.78 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 65039.00 НС Приход: 83364791.01 НС Возвр.Прихода: 2212830.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 108581 ФМ: 0000000000871818 ФПД: 266201456427058 [11:33:49]StoreToDocumentArchive [11:33:49]shift 320 fd 108581 [11:33:49]save to /storage/0320/doc_00108581 [11:33:49]save last doc name /storage/0320/doc_00108581 to /storage/kkm_last_doc_name [11:33:49]save OK [11:33:49]Clear old archive folders... [11:33:49]Remove dir /storage/0266 [11:33:49]opendir ok [11:33:49]file . [11:33:49]file .. [11:33:49]file doc_1710502389 [11:33:49]remove file /storage/0266/doc_1710502389 [11:33:49]remove dir /storage/0266 [11:33:49]NVStorageSaveData kkm_registers [11:33:49]File name is /storage/kkm_registers [11:33:49]Write 24 bytes [11:33:49]NVStorageSaveData done [11:33:49]NVStorageSaveData kkm_registers [11:33:49]File name is /storage/kkm_registers [11:33:49]Write 24 bytes [11:33:49]NVStorageSaveData done [11:33:49]ProcessDocumentItem done err = 0, tmpTLVsize=1391 [11:33:49]tlvbuf is 0027F620 [11:33:49]SAM_PROTO_ClearQueue [11:33:49]wFMCommunicate request_size=4 [11:33:49]MH_SAM_APDU [11:33:49]CAPDU: 80 09 00 00 [11:33:49]Write to MH i2c: E2 08 00 CC 32 80 09 00 00 00 00 00 00 70 [11:33:49]Write i2c OK [11:33:49]MH_I2C_Read... [11:33:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:49]Read from MH i2c: E2 [11:33:49]MH_I2C_Read... [11:33:49]Read from MH i2c: E2 03 00 [11:33:49]MH_I2C_Read... [11:33:49]Read from MH i2c: E2 03 00 CC 32 00 90 00 72 [11:33:49]RAPDU: 90 00 [11:33:49]wFMCommunicate OK [11:33:49]SAM_PROTO_ClearQueue done [11:33:49]KKMCreateOFDPacket [11:33:49]OFDProtocolAddRootSTLVToBuf [11:33:49]FM_MakeSignedData [11:33:49]FM_MakeSignedData [11:33:49]SAM_PROTO_SignData [11:33:49]wFMCommunicate request_size=4 [11:33:49]MH_SAM_APDU [11:33:49]CAPDU: 80 0D 01 02 [11:33:49]Write to MH i2c: E2 08 00 CD 32 80 0D 01 02 00 00 00 00 78 [11:33:49]Write i2c OK [11:33:49]MH_I2C_Read... [11:33:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:49]Read from MH i2c: E2 [11:33:49]MH_I2C_Read... [11:33:49]Read from MH i2c: E2 03 00 [11:33:49]MH_I2C_Read... [11:33:49]Read from MH i2c: E2 03 00 CD 32 00 90 00 73 [11:33:49]RAPDU: 90 00 [11:33:49]wFMCommunicate OK [11:33:49]wFMCommunicate request_size=255 [11:33:49]MH_SAM_APDU [11:33:49]CAPDU: 80 0D 02 02 FA 05 00 6F 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 1A 00 D0 9C D0 B0 D0 BA D1 81 D0 B0 D1 82 D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 94 2E 20 F4 03 04 00 19 32 F4 65 0E 04 04 00 40 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 5E 04 04 OFD Sender: No OFD packet to send [11:33:50]00 67 00 00 00 57 04 04 00 69 00 00 00 AA 04 DC 04 6E 04 04 00 67 00 00 00 69 04 A3 00 6F 04 04 00 65 00 00 00 B1 04 03 00 15 DF 7A 70 04 03 00 94 FF 66 72 04 03 00 81 DF 13 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 78 0D 0D 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 [11:33:50]Write to MH i2c: E2 02 01 CE 32 80 0D 02 02 FA 00 05 00 6F 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 1A 00 D0 9C D0 B0 D0 BA D1 81 D0 B0 D1 82 D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 94 2E 20 F4 03 04 00 19 32 F4 65 0E 04 04 00 40 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 5E 04 04 00 67 00 00 00 57 04 04 00 69 00 00 00 AA 04 DC 04 6E 04 04 00 67 00 00 00 69 04 A3 00 6F 04 04 00 65 00 00 00 B1 04 03 00 15 DF 7A 70 04 03 00 94 FF 66 72 04 03 00 81 DF 13 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 78 0D 0D 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 00 00 52 [11:33:50]Write i2c OK [11:33:50]MH_I2C_Read... [11:33:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:50]Read from MH i2c: E2 [11:33:50]MH_I2C_Read... [11:33:50]Read from MH i2c: E2 03 00 [11:33:50]MH_I2C_Read... [11:33:50]Read from MH i2c: E2 03 00 CE 32 00 90 00 74 [11:33:50]RAPDU: 90 00 [11:33:50]wFMCommunicate OK [11:33:50]wFMCommunicate request_size=255 [11:33:50]MH_SAM_APDU [11:33:50]CAPDU: 80 0D 02 02 FA 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 16 01 6A 04 9F 00 6F 04 04 00 02 00 00 00 B1 04 03 00 B8 C1 03 70 04 03 00 B8 C1 03 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 26 66 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 82 08 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 [11:33:50]Write to MH i2c: E2 02 01 CF 32 80 0D 02 02 FA 00 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 16 01 6A 04 9F 00 6F 04 04 00 02 00 00 00 B1 04 03 00 B8 C1 03 70 04 03 00 B8 C1 03 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 26 66 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 82 08 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 00 00 A1 [11:33:51]Write i2c OK [11:33:51]MH_I2C_Read... [11:33:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:51]Read from MH i2c: E2 [11:33:51]MH_I2C_Read... [11:33:51]Read from MH i2c: E2 03 00 [11:33:51]MH_I2C_Read... [11:33:51]Read from MH i2c: E2 03 00 CF 32 00 90 00 75 [11:33:51]RAPDU: 90 00 [11:33:51]wFMCommunicate OK [11:33:51]wFMCommunicate request_size=255 [11:33:51]MH_SAM_APDU [11:33:51]CAPDU: 80 0D 02 02 FA 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 [11:33:51]Write to MH i2c: E2 02 01 D0 32 80 0D 02 02 FA 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 00 3A [11:33:51]Write i2c OK [11:33:51]MH_I2C_Read... [11:33:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:52]Read from MH i2c: E2 [11:33:52]MH_I2C_Read... [11:33:52]Read from MH i2c: E2 03 00 [11:33:52]MH_I2C_Read... [11:33:52]Read from MH i2c: E2 03 00 D0 32 00 90 00 76 [11:33:52]RAPDU: 90 00 [11:33:52]wFMCommunicate OK [11:33:52]wFMCommunicate request_size=255 [11:33:52]MH_SAM_APDU [11:33:52]CAPDU: 80 0D 02 02 FA 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 [11:33:52]Write to MH i2c: E2 02 01 D1 32 80 0D 02 02 FA 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 43 [11:33:52]Write i2c OK [11:33:52]MH_I2C_Read... [11:33:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:52]Read from MH i2c: E2 [11:33:52]MH_I2C_Read... [11:33:52]Read from MH i2c: E2 03 00 [11:33:52]MH_I2C_Read... [11:33:52]Read from MH i2c: E2 03 00 D1 32 00 90 00 77 [11:33:52]RAPDU: 90 00 [11:33:52]wFMCommunicate OK [11:33:52]wFMCommunicate request_size=255 [11:33:52]MH_SAM_APDU [11:33:52]CAPDU: 80 0D 02 02 FA 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 [11:33:53]Write to MH i2c: E2 02 01 D2 32 80 0D 02 02 FA 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 00 00 0B [11:33:53]Write i2c OK [11:33:53]MH_I2C_Read... [11:33:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:53]Read from MH i2c: E2 [11:33:53]MH_I2C_Read... [11:33:53]Read from MH i2c: E2 03 00 [11:33:53]MH_I2C_Read... [11:33:53]Read from MH i2c: E2 03 00 D2 32 00 90 00 78 [11:33:53]RAPDU: 90 00 [11:33:53]wFMCommunicate OK [11:33:53]wFMCommunicate request_size=150 [11:33:53]MH_SAM_APDU [11:33:53]CAPDU: 80 0D 02 02 91 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 25 A8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 35 04 06 00 F2 1B DB 3F C0 32 [11:33:53]Write to MH i2c: E2 99 00 D3 32 80 0D 02 02 91 00 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 25 A8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 35 04 06 00 F2 1B DB 3F C0 32 00 00 AD [11:33:53]Write i2c OK [11:33:53]MH_I2C_Read... [11:33:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:54]Read from MH i2c: E2 [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: E2 03 00 [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: E2 03 00 D3 32 00 90 00 79 [11:33:54]RAPDU: 90 00 [11:33:54]wFMCommunicate OK [11:33:54]wFMCommunicate request_size=4 [11:33:54]MH_SAM_APDU [11:33:54]CAPDU: 80 0D 03 02 [11:33:54]Write to MH i2c: E2 08 00 D4 32 80 0D 03 02 00 00 00 00 81 [11:33:54]Write i2c OK [11:33:54]MH_I2C_Read... [11:33:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:54]Read from MH i2c: E2 [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: E2 0B 00 [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: E2 0B 00 D4 32 00 EB 0B 51 7B ED AE D9 38 90 00 F0 [11:33:54]RAPDU: EB 0B 51 7B ED AE D9 38 90 00 [11:33:54]wFMCommunicate OK [11:33:54]SAM_PROTO_SignData done [11:33:54]FM_MakeSignedData done [11:33:54]CreateOFDProtocolMessage [11:33:54]wFMCommunicate request_size=4 [11:33:54]MH_SAM_APDU [11:33:54]CAPDU: 80 11 00 00 [11:33:54]Write to MH i2c: E2 08 00 D5 32 80 11 00 00 00 00 00 00 81 [11:33:54]Write i2c OK [11:33:54]MH_I2C_Read... [11:33:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:54]Read from MH i2c: E2 [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: E2 17 00 [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: E2 17 00 D5 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 D5 [11:33:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [11:33:54]wFMCommunicate OK [11:33:54]CreateOFDProtocolMessage done [11:33:54]OFDSenderStorePacket 108581 [11:33:54]StoreOFDPacket docnum=108581 [11:33:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 83 05 00 00 D3 8F 7B 05 5E 98 5A 05 01 00 05 00 6F 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 1A 00 D0 9C D0 B0 D0 BA D1 81 D0 B0 D1 82 D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 94 2E 20 F4 03 04 00 19 32 F4 65 0E 04 04 00 40 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 5E 04 04 00 67 00 00 00 57 04 04 00 69 00 00 00 AA 04 DC 04 6E 04 04 00 67 00 00 00 69 04 A3 00 6F 04 04 00 65 00 00 00 B1 04 03 00 15 DF 7A 70 04 03 00 94 FF 66 72 04 03 00 81 DF 13 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 78 0D 0D EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 16 01 6A 04 9F 00 6F 04 04 00 02 00 00 00 B1 04 03 00 B8 C1 03 70 04 03 00 B8 C1 03 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 26 66 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 82 08 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 25 A8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 35 04 06 00 F2 1B DB 3F C0 32 EB 0B 51 7B ED AE D9 38 [11:33:54]CheckFolder [11:33:54]dirname=/storage/ofd_packets [11:33:54]CheckFolder done [11:33:54]ProducePacketName [11:33:54]name=ofd_packets/00108581 [11:33:54]NVStorageSaveData ofd_packets/00108581 [11:33:54]File name is /storage/ofd_packets/00108581 [11:33:54]Write 1441 bytes [11:33:54]NVStorageSaveData done [11:33:54]OFDSenderStorePacket done [11:33:54]KKMCreateOFDPacket done [11:33:54]NVStorageSaveData kkm_last_timestamp [11:33:54]File name is /storage/kkm_last_timestamp [11:33:54]Write 4 bytes [11:33:54]NVStorageSaveData done [11:33:54]ExternCall_PrintAddStr [11:33:54]wPrintStart [11:33:54]Write to MH i2c: 01 00 00 D6 32 08 [11:33:54]Write i2c OK [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: 01 [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: 01 07 00 [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: 01 07 00 D6 32 00 00 00 00 00 FF 0F 1D [11:33:54]RasterBufferAndPrint [11:33:54]line Отчет о закрытии смены [11:33:54]line ФФД: 1.0 [11:33:54]line ИНН: 02508201610067 [11:33:54]line Кассир: Максатбек у Д. [11:33:54]line 15.03.2024 11:33 [11:33:54]line Смена: 320 [11:33:54]line РНМ: 0000000000091911 [11:33:54]line ЗНМ: 0300000266 [11:33:54]line СНО: Общий режим [11:33:54]line Чеков за смену: 103 [11:33:54]line ФД за смену: 105 [11:33:54]line Всего чеков: 103 [11:33:54]line ИТОГИ ПРИХОД [11:33:54]line Чеков: 101 [11:33:54]line Общий итог: 80525.01 [11:33:54]line Итого наличными: 67501.00 [11:33:54]line Итого безнал.: 13024.01 [11:33:54]line НДС 0% : 0.00 [11:33:54]line НДС 12% : 8554.16 [11:33:54]line НСП 0% : 0.00 [11:33:54]line НСП 1,50% : 0.00 [11:33:54]line НСП 0,50% : 0.00 [11:33:54]line НСП 5% : 0.00 [11:33:54]line НСП 3% : 0.00 [11:33:54]line НСП 2% : 0.00 [11:33:54]line НСП 1% : 712.77 [11:33:54]line ИТОГИ ВОЗВРАТ ПРИХОДА [11:33:54]line Чеков: 2 [11:33:54]line Общий итог: 2462.00 [11:33:54]line Итого наличными: 2462.00 [11:33:54]line Итого безнал.: 0.00 [11:33:54]line НДС 0% : 0.00 [11:33:54]line НДС 12% : 261.50 [11:33:54]line НСП 0% : 0.00 [11:33:54]line НСП 1,50% : 0.00 [11:33:54]line НСП 0,50% : 0.00 [11:33:54]line НСП 5% : 0.00 [11:33:54]line НСП 3% : 0.00 [11:33:54]line НСП 2% : 0.00 [11:33:54]line НСП 1% : 21.78 [11:33:54]line ИТОГИ РАСХОД [11:33:54]line Чеков: 0 [11:33:54]line Общий итог: 0.00 [11:33:54]line Итого наличными: 0.00 [11:33:54]line Итого безнал.: 0.00 [11:33:54]line НДС 0% : 0.00 [11:33:54]line НДС 12% : 0.00 [11:33:54]line НСП 0% : 0.00 [11:33:54]line НСП 1,50% : 0.00 [11:33:54]line НСП 0,50% : 0.00 [11:33:54]line НСП 5% : 0.00 [11:33:54]line НСП 3% : 0.00 [11:33:54]line НСП 2% : 0.00 [11:33:54]line НСП 1% : 0.00 [11:33:54]line ИТОГИ ВОЗВРАТ РАСХОДА [11:33:54]line Чеков: 0 [11:33:54]line Общий итог: 0.00 [11:33:54]line Итого наличными: 0.00 [11:33:54]line Итого безнал.: 0.00 [11:33:54]line НДС 0% : 0.00 [11:33:54]line НДС 12% : 0.00 [11:33:54]line НСП 0% : 0.00 [11:33:54]line НСП 1,50% : 0.00 [11:33:54]line НСП 0,50% : 0.00 [11:33:54]line НСП 5% : 0.00 [11:33:54]line НСП 3% : 0.00 [11:33:54]line НСП 2% : 0.00 [11:33:54]line НСП 1% : 0.00 [11:33:54]line Сумма внесений: 0.00 [11:33:54]line Сумма выплат: 0.00 [11:33:54]line Нал. в кассе: 65039.00 [11:33:54]line НС Приход: 83364791.01 [11:33:54]line НС Возвр.Прихода: 2212830.00 [11:33:54]line НС Расход: 0.00 [11:33:54]line НС Возвр.Расхода: 0.00 [11:33:54]line ФД: 108581 [11:33:54]line ФМ: 0000000000871818 [11:33:54]line ФПД: 266201456427058 [11:33:54]OFD Sender: Processing packet 108581 [packets to send 29, broken 28] [11:33:54]ProducePacketName [11:33:54]name=ofd_packets/00108581 [11:33:54]OFD Sender: To server: pG, [11:33:54]CommunicateWithHost lk.salyk.kg:30040 [11:33:54]ConnectInit lk.salyk.kg [11:33:54]written 0, free lines is 4095 [11:33:54]Connected sock=10 [11:33: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 31 38 83 05 00 00 D3 8F 7B 05 5E 98 5A 05 01 00 05 00 6F 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 1A 00 D0 9C D0 B0 D0 BA D1 81 D0 B0 D1 82 D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 94 2E 20 F4 03 04 00 19 32 F4 65 0E 04 04 00 40 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 5E 04 04 00 67 00 00 00 57 04 04 00 69 00 00 00 AA 04 DC 04 6E 04 04 00 67 00 00 00 69 04 A3 00 6F 04 04 00 65 00 00 00 B1 04 03 00 15 DF 7A 70 04 03 00 94 FF 66 72 04 03 00 81 DF 13 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 78 0D 0D EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 16 01 6A 04 9F 00 6F 04 04 00 02 00 00 00 B1 04 03 00 B8 C1 03 70 04 03 00 B8 C1 03 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 26 66 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 82 08 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 Write to MH i2c: 09 01 00 00 F6 00 03 26 01 33 00 59 02 [11:33:56]F7 Write i2c OK [11:33:56]03 MH_I2C_Read... [11:33:56]00 Read from MH i2c: 00 01 EF [11:33:56]03 MH_I2C_Read... [11:33:56]09 00 F6 03 01 Read from MH i2c: 00 01 03 07 F7 00 03 [11:33:56]00 MH_I2C_Read... [11:33:56]00 EF 03 09 00 F6 03 01 00 04 F7 Read from MH i2c: 03 01 00 00 EF 03 07 09 00 00 26 F6 33 03 00 01 00 00 00 05 00 F7 00 03 7C 00 0E 00 EA EF [11:33:56]03 09 00 F6 03 01 00 06 F7 03 00 00 RasterBufferAndPrint [11:33:56]D0 line [11:33:56]04 line [11:33:56]8D line [11:33:56]00 line [11:33:56]6F line [11:33:56]04 04 00 00 00 00 00 B1 04 00 00 70 written 0, free lines is 3882 [11:33:56]04 00 00 72 04 00 00 00 04 75 00 MH_Cut [11:33:56]EE Write to MH i2c: 03 D1 09 01 00 00 F2 2D 03 33 01 01 00 32 00 [11:33:56]F3 03 00 00 EE 03 09 00 F2 Write i2c OK [11:33:56]03 MH_I2C_Read... [11:33:56]01 Read from MH i2c: 00 D1 01 [11:33:56]F3 MH_I2C_Read... [11:33:56]03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 Read from MH i2c: EF D1 03 01 09 00 [11:33:56]00 MH_I2C_Read... [11:33:56]F6 Read from MH i2c: 03 D1 01 01 00 00 06 2D F7 03 00 00 7A 04 8D 00 6F 04 04 00 33 00 00 00 31 00 [11:33:56]00 Write to MH i2c: B1 01 04 00 00 00 00 2E 70 33 04 61 00 00 72 04 00 00 00 04 75 00 EE 03 [11:33:56]09 Write i2c OK [11:33:56]00 MH_I2C_Read... [11:33:56]F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 *** Cut start [11:33:56]03 *** Purtial cut [11:33:56]01 *** Stage 1: CUTSNS_PIN = 1 [11:33:57]00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 *** Stop cut motor [11:33:57]09 *** Cut end [11:33:57]Read from MH i2c: 01 [11:33:57]MH_I2C_Read... [11:33:57]00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 Read from MH i2c: 03 01 01 07 00 00 02 [11:33:57]F7 03 00 00 EF 03 09 00 F6 03 01 00 MH_I2C_Read... [11:33:57]03 F7 03 00 00 EF 03 09 00 F6 Read from MH i2c: 03 01 01 07 00 00 04 2E 33 F7 03 00 00 EF 03 09 00 F6 03 01 00 00 00 05 00 F7 00 03 00 00 FF 00 0F EF 76 03 [11:33:57]09 process_action close_shift done [11:33:57]00 requested_data is exist [11:33:57]F6 03 01 00 06 F7 03 00 00 10 04 04 produce_requested_data [11:33:57]00 requested_item fd.num is exist - process it [11:33:57]25 SAM_PROTO_GetFieldsCounters [11:33:57]A8 wFMCommunicate request_size=4 [11:33:57]01 MH_SAM_APDU [11:33:57]00 11 04 10 00 30 30 30 30 30 30 CAPDU: 30 80 30 13 30 00 30 00 38 [11:33:57]37 Write to MH i2c: 31 E2 38 08 31 00 38 2F 35 04 06 00 F2 1B DB 3F C0 32 EB 0B 33 51 80 7B 13 ED 00 AE 00 D9 00 38 00 [11:33:57]00 00 DE [11:33:57]Write i2c OK [11:33:57]MH_I2C_Read... [11:33:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:57]Read from MH i2c: E2 [11:33:57]MH_I2C_Read... [11:33:57]Read from MH i2c: E2 62 00 [11:33:57]MH_I2C_Read... [11:33:57]Read from MH i2c: E2 62 00 2F 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 31 38 0D 04 10 00 30 30 int [11:33:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 4F 00 00 00 1D 2E 47 00 *** FLAG_PRN_KEY set [11:33:57]D6 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 10 04 04 00 25 A8 01 00 F4 03 04 00 C7 DD F3 65 B6 04 01 00 00 52 15 5D C7 75 6B 70 C7 [11:33:57]CommunicateWithHost err = 0 [11:33:57]CheckOFDResponse [11:33:57]1017 (14) - 77093643461234 [11:33:57]1041 (16) - 0000000000871818 [11:33:57]1040 (4) - 108581 [11:33:57]1012 (4) - 15.03.2024 05:33 [11:33:57]1206 (1) - 0 [11:33:57]OFD Sender: Remove packet 108581 [11:33:57]ProducePacketName [11:33:57]name=ofd_packets/00108581 [11:33:57]NVStorageDeleteData [11:33:57]30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 25 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [11:33:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 Write to MH i2c: 10 01 00 00 30 00 30 30 30 33 30 63 30 [11:33:57]30 30 30 30 30 38 37 Write i2c OK [11:33:57]31 MH_I2C_Read... [11:33:57]38 Read from MH i2c: 31 01 38 [11:33:57]0D MH_I2C_Read... [11:33:57]04 10 00 30 30 30 30 30 30 Read from MH i2c: 30 01 30 07 30 00 30 [11:33:57]30 39 31 39 31 31 10 04 04 00 25 A8 MH_I2C_Read... [11:33:58]01 00 0E 04 04 00 40 01 00 Read from MH i2c: 00 01 12 07 04 00 04 *** FLAG_PRN_KEY reset [11:33:58]00 30 67 33 00 00 00 08 00 00 5E 00 04 00 04 FF 00 0F 67 80 00 [11:33:58]00 state=0 [11:33:58]00 Key pressed [11:33:58]57 Feed [11:33:58]04 Write to MH i2c: 04 D8 00 69 00 00 00 19 04 04 00 00 00 00 00 00 00 31 90 33 00 3B [11:33:58] [11:33:58]wFMCommunicate OK [11:33:58]SAM_PROTO_GetFieldsCounters done [11:33:58]requested_item shift.num is exist - process it [11:33:58]requested_item shift.opened is exist - process it [11:33:58]req_shift_opened [11:33:58]FM_GetShiftState [11:33:58]SAM_PROTO_GetShiftState [11:33:58]wFMCommunicate request_size=4 [11:33:58]MH_SAM_APDU [11:33:58]CAPDU: 80 13 01 00 [11:33:58]Write i2c OK [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: D8 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: D8 01 00 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: D8 01 00 31 33 00 3C [11:33:58]int line is 0 - check status [11:33:58]Write to MH i2c: 01 00 00 32 33 65 [11:33:58]Write i2c OK [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: 01 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: 01 07 00 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: 01 07 00 32 33 00 00 00 00 00 F5 0F 70 [11:33:58]state=2 [11:33:58]Stop feed [11:33:58]Write to MH i2c: E2 08 00 33 33 80 13 01 00 00 00 00 00 E3 [11:33:58]int [11:33:58]Write i2c OK [11:33:58]MH_I2C_Read... [11:33:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:58]Read from MH i2c: E2 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: E2 0E 00 [11:33:58]MH_I2C_Read... [11:33:58]*** FLAG_PRN_KEY set [11:33:58]Read from MH i2c: E2 0E 00 33 33 00 09 00 00 00 00 00 00 OFD Sender: No OFD packet to send [11:33:58]00 00 00 00 90 00 EE [11:33:58]RAPDU: Write to MH i2c: 09 01 00 00 00 00 00 34 00 33 67 [11:33:58]00 00 00 00 00 00 90 00 [11:33:58]wFMCommunicate OK [11:33:58]SAM_PROTO_GetShiftState done [11:33:58]FM_GetShiftState done [11:33:58]req_shift_opened done [11:33:58]requested_item shift.open_date is exist - process it [11:33:58]req_shift_open_date [11:33:58]FM_GetShiftState [11:33:58]SAM_PROTO_GetShiftState [11:33:58]wFMCommunicate request_size=4 [11:33:58]MH_SAM_APDU [11:33:58]CAPDU: 80 13 01 00 [11:33:58]Write i2c OK [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: 01 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: 01 07 00 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: 01 07 00 34 33 00 08 00 00 00 FF 0F 84 [11:33:58]state=0 [11:33:58]Key pressed [11:33:58]Feed [11:33:58]Write to MH i2c: D8 00 00 35 33 3F [11:33:58]Write i2c OK [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: D8 [11:33:58]MH_I2C_Read... [11:33:58]*** FLAG_PRN_KEY reset [11:33:58]Read from MH i2c: D8 01 00 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: D8 01 00 35 33 00 40 [11:33:58]int line is 0 - check status [11:33:58]Write to MH i2c: 01 00 00 36 33 69 [11:33:58]Write i2c OK [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: 01 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: 01 07 00 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: 01 07 00 36 33 00 00 00 00 00 FF 0F 7E [11:33:58]state=2 [11:33:58]Write to MH i2c: Stop feed [11:33:58]E2 int [11:33:58]08 00 37 33 80 13 01 00 00 00 00 00 E7 [11:33:58]Write i2c OK [11:33:58]MH_I2C_Read... [11:33:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:58]Read from MH i2c: E2 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: E2 0E 00 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: E2 0E 00 37 33 00 09 00 00 00 00 00 00 00 00 00 00 90 00 F2 [11:33:58]RAPDU: Write to MH i2c: 09 01 00 00 00 00 00 38 00 33 00 6B 00 [11:33:58]00 00 00 Write i2c OK [11:33:58]00 MH_I2C_Read... [11:33:58]90 00 [11:33:58]wFMCommunicate OK [11:33:58]SAM_PROTO_GetShiftState done [11:33:58]Read from MH i2c: FM_GetShiftState done [11:33:58]req_shift_open_date done [11:33:58]01 produce_requested_data done [11:33:58] [11:33:58]produce_requested_data return {"fd.num":108581,"shift.num":320,"shift.opened":0,"shift.open_date":0} [11:33:58]MH_I2C_Read... [11:33:58]process_action_free close_shift [11:33:58]json_value_free [11:33:58]json_value_free done [11:33:58]process_json_proto returns [11:33:58]Send response to host [11:33:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":108581,"shift.num":320,"shift.opened":0,"shift.open_date":0}}} [11:33:58]free response buf [11:33:58]execute_script done [11:33:58]execute_script returns [11:33:58]free content buf [11:33:58]Sock 8.Close socket [11:33:58]Sock 8.Thread stoped [11:33:58]Read from MH i2c: 01 07 00 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: 01 07 00 38 33 00 00 00 00 00 FF 0F 80 [11:33:58]state=0 [11:33:58]int [11:33:58]Write to MH i2c: 01 00 00 39 33 6C [11:33:58]*** FLAG_PRN_KEY set [11:33:58]Write i2c OK [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: 01 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: 01 07 00 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: 01 07 00 39 33 00 08 00 00 00 FF 0F 89 [11:33:59]state=0 [11:33:59]Key pressed [11:33:59]Feed [11:33:59]Write to MH i2c: D8 00 00 3A 33 44 [11:33:59]Write i2c OK [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: D8 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: D8 01 00 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: D8 01 00 3A 33 00 45 [11:33:59]int line is 0 - check status [11:33:59]Write to MH i2c: 01 00 00 3B 33 6E [11:33:59]Write i2c OK [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: 01 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: 01 07 00 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: 01 07 00 3B 33 00 48 00 00 00 3C 00 F9 [11:33:59]state=2 [11:33:59]Key pressed [11:33:59]int [11:33:59]Write to MH i2c: 01 00 00 3C 33 6F [11:33:59]Write i2c OK [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: 01 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: 01 07 00 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: 01 07 00 3C 33 00 48 00 00 00 3C 00 FA [11:33:59]state=2 [11:33:59]Key pressed [11:33:59]int line is 0 - check status [11:33:59]Write to MH i2c: 01 00 00 3D 33 70 [11:33:59]*** FLAG_PRN_KEY reset [11:33:59]Write i2c OK [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: 01 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: 01 07 00 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: 01 07 00 3D 33 00 00 00 00 00 FF 0F 85 [11:33:59]state=2 [11:33:59]Stop feed [11:33:59]int [11:33:59]Write to MH i2c: 01 00 00 3E 33 71 [11:33:59]Write i2c OK [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: 01 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: 01 07 00 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: 01 07 00 3E 33 00 00 00 00 00 FF 0F 86 [11:33:59]state=0 [11:34:03]OFD Sender: No OFD packet to send [11:34:08]OFD Sender: No OFD packet to send [11:34:13]OFD Sender: No OFD packet to send [11:34:18]OFD Sender: No OFD packet to send [11:34:23]OFD Sender: No OFD packet to send [11:34:28]OFD Sender: No OFD packet to send [11:34:33]OFD Sender: No OFD packet to send [11:34:38]OFD Sender: No OFD packet to send [11:34:43]OFD Sender: No OFD packet to send [11:34:48]OFD Sender: No OFD packet to send [11:34:53]OFD Sender: No OFD packet to send [11:34:58]OFD Sender: No OFD packet to send [11:35:03]OFD Sender: No OFD packet to send [11:35:08]OFD Sender: No OFD packet to send [11:35:13]OFD Sender: No OFD packet to send [11:35:18]OFD Sender: No OFD packet to send [11:35:23]OFD Sender: No OFD packet to send [11:35:28]OFD Sender: No OFD packet to send [11:35:33]OFD Sender: No OFD packet to send [11:35:38]OFD Sender: No OFD packet to send [11:35:43]OFD Sender: No OFD packet to send [11:35:48]OFD Sender: No OFD packet to send [11:35:53]OFD Sender: No OFD packet to send [11:35:58]OFD Sender: No OFD packet to send [11:36:03]OFD Sender: No OFD packet to send [11:36:08]OFD Sender: No OFD packet to send [11:36:13]OFD Sender: No OFD packet to send [11:36:18]OFD Sender: No OFD packet to send [11:36:23]OFD Sender: No OFD packet to send [11:36:28]OFD Sender: No OFD packet to send [11:36:33]OFD Sender: No OFD packet to send [11:36:38]OFD Sender: No OFD packet to send [11:36:43]OFD Sender: No OFD packet to send [11:36:48]OFD Sender: No OFD packet to send [11:36:53]OFD Sender: No OFD packet to send [11:36:58]OFD Sender: No OFD packet to send [11:37:03]OFD Sender: No OFD packet to send [11:37:08]OFD Sender: No OFD packet to send [11:37:13]OFD Sender: No OFD packet to send [11:37:18]OFD Sender: No OFD packet to send [11:37:23]OFD Sender: No OFD packet to send [11:37:28]OFD Sender: No OFD packet to send [11:37:33]OFD Sender: No OFD packet to send [11:37:38]OFD Sender: No OFD packet to send [11:37:43]OFD Sender: No OFD packet to send [11:37:48]OFD Sender: No OFD packet to send [11:37:53]OFD Sender: No OFD packet to send [11:37:58]OFD Sender: No OFD packet to send [11:38:03]OFD Sender: No OFD packet to send [11:38:08]OFD Sender: No OFD packet to send [11:38:13]OFD Sender: No OFD packet to send [11:38:18]OFD Sender: No OFD packet to send [11:38:23]OFD Sender: No OFD packet to send [11:38:28]OFD Sender: No OFD packet to send [11:38:33]OFD Sender: No OFD packet to send [11:38:38]OFD Sender: No OFD packet to send [11:38:43]OFD Sender: No OFD packet to send [11:38:48]OFD Sender: No OFD packet to send [11:38:53]OFD Sender: No OFD packet to send [11:38:58]OFD Sender: No OFD packet to send [11:39:03]OFD Sender: No OFD packet to send [11:39:08]OFD Sender: No OFD packet to send [11:39:13]OFD Sender: No OFD packet to send [11:39:18]OFD Sender: No OFD packet to send [11:39:23]OFD Sender: No OFD packet to send [11:39:28]OFD Sender: No OFD packet to send [11:39:33]OFD Sender: No OFD packet to send [11:39:38]OFD Sender: No OFD packet to send [11:39:43]OFD Sender: No OFD packet to send [11:39:48]OFD Sender: No OFD packet to send [11:39:53]OFD Sender: No OFD packet to send [11:39:58]OFD Sender: No OFD packet to send [11:40:03]OFD Sender: No OFD packet to send [11:40:08]OFD Sender: No OFD packet to send [11:40:13]OFD Sender: No OFD packet to send [11:40:18]OFD Sender: No OFD packet to send [11:40:23]OFD Sender: No OFD packet to send [11:40:28]OFD Sender: No OFD packet to send [11:40:33]OFD Sender: No OFD packet to send [11:40:38]OFD Sender: No OFD packet to send [11:40:43]OFD Sender: No OFD packet to send [11:40:48]OFD Sender: No OFD packet to send [11:40:53]OFD Sender: No OFD packet to send [11:40:58]OFD Sender: No OFD packet to send [11:41:03]OFD Sender: No OFD packet to send [11:41:08]OFD Sender: No OFD packet to send [11:41:13]OFD Sender: No OFD packet to send [11:41:18]OFD Sender: No OFD packet to send [11:41:23]OFD Sender: No OFD packet to send [11:41:28]OFD Sender: No OFD packet to send [11:41:33]OFD Sender: No OFD packet to send [11:41:38]OFD Sender: No OFD packet to send [11:41:43]OFD Sender: No OFD packet to send [11:41:48]OFD Sender: No OFD packet to send [11:41:53]OFD Sender: No OFD packet to send [11:41:58]OFD Sender: No OFD packet to send [11:42:03]OFD Sender: No OFD packet to send [11:42:08]OFD Sender: No OFD packet to send [11:42:13]OFD Sender: No OFD packet to send [11:42:18]OFD Sender: No OFD packet to send [11:42:23]OFD Sender: No OFD packet to send [11:42:28]OFD Sender: No OFD packet to send [11:42:33]OFD Sender: No OFD packet to send [11:42:38]OFD Sender: No OFD packet to send [11:42:43]OFD Sender: No OFD packet to send [11:42:48]OFD Sender: No OFD packet to send [11:42:53]OFD Sender: No OFD packet to send [11:42:58]OFD Sender: No OFD packet to send [11:43:03]OFD Sender: No OFD packet to send [11:43:08]OFD Sender: No OFD packet to send [11:43:13]OFD Sender: No OFD packet to send [11:43:18]OFD Sender: No OFD packet to send [11:43:23]OFD Sender: No OFD packet to send [11:43:28]OFD Sender: No OFD packet to send [11:43:33]OFD Sender: No OFD packet to send [11:43:38]OFD Sender: No OFD packet to send [11:43:43]OFD Sender: No OFD packet to send [11:43:48]OFD Sender: No OFD packet to send [11:43:53]OFD Sender: No OFD packet to send [11:43:58]OFD Sender: No OFD packet to send [11:44:03]OFD Sender: No OFD packet to send [11:44:08]OFD Sender: No OFD packet to send [11:44:13]OFD Sender: No OFD packet to send [11:44:18]OFD Sender: No OFD packet to send [11:44:23]OFD Sender: No OFD packet to send [11:44:28]OFD Sender: No OFD packet to send [11:44:33]OFD Sender: No OFD packet to send [11:44:38]OFD Sender: No OFD packet to send [11:44:43]OFD Sender: No OFD packet to send [11:44:48]OFD Sender: No OFD packet to send [11:44:53]OFD Sender: No OFD packet to send [11:44:58]OFD Sender: No OFD packet to send [11:45:03]OFD Sender: No OFD packet to send [11:45:08]OFD Sender: No OFD packet to send [11:45:13]OFD Sender: No OFD packet to send [11:45:18]OFD Sender: No OFD packet to send [11:45:23]OFD Sender: No OFD packet to send [11:45:28]OFD Sender: No OFD packet to send [11:45:33]OFD Sender: No OFD packet to send [11:45:38]OFD Sender: No OFD packet to send [11:45:43]OFD Sender: No OFD packet to send [11:45:48]OFD Sender: No OFD packet to send [11:45:53]OFD Sender: No OFD packet to send [11:45:58]OFD Sender: No OFD packet to send [11:46:03]OFD Sender: No OFD packet to send [11:46:08]OFD Sender: No OFD packet to send [11:46:13]OFD Sender: No OFD packet to send [11:46:18]OFD Sender: No OFD packet to send [11:46:23]OFD Sender: No OFD packet to send [11:46:29]OFD Sender: No OFD packet to send [11:46:34]OFD Sender: No OFD packet to send [11:46:39]OFD Sender: No OFD packet to send [11:46:44]OFD Sender: No OFD packet to send [11:46:49]OFD Sender: No OFD packet to send [11:46:54]OFD Sender: No OFD packet to send [11:46:59]OFD Sender: No OFD packet to send [11:47:04]OFD Sender: No OFD packet to send [11:47:09]OFD Sender: No OFD packet to send [11:47:14]OFD Sender: No OFD packet to send [11:47:19]OFD Sender: No OFD packet to send [11:47:24]OFD Sender: No OFD packet to send [11:47:29]OFD Sender: No OFD packet to send [11:47:34]OFD Sender: No OFD packet to send [11:47:39]OFD Sender: No OFD packet to send [11:47:44]OFD Sender: No OFD packet to send [11:47:49]OFD Sender: No OFD packet to send [11:47:54]OFD Sender: No OFD packet to send [11:47:59]OFD Sender: No OFD packet to send [11:48:04]OFD Sender: No OFD packet to send [11:48:09]OFD Sender: No OFD packet to send [11:48:14]OFD Sender: No OFD packet to send [11:48:19]OFD Sender: No OFD packet to send [11:48:24]OFD Sender: No OFD packet to send [11:48:29]OFD Sender: No OFD packet to send [11:48:34]OFD Sender: No OFD packet to send [11:48:39]OFD Sender: No OFD packet to send [11:48:44]OFD Sender: No OFD packet to send [11:48:49]OFD Sender: No OFD packet to send [11:48:54]OFD Sender: No OFD packet to send [11:48:59]OFD Sender: No OFD packet to send [11:49:04]OFD Sender: No OFD packet to send [11:49:09]OFD Sender: No OFD packet to send [11:49:14]OFD Sender: No OFD packet to send [11:49:19]OFD Sender: No OFD packet to send [11:49:24]OFD Sender: No OFD packet to send [11:49:29]OFD Sender: No OFD packet to send [11:49:34]OFD Sender: No OFD packet to send [11:49:39]OFD Sender: No OFD packet to send [11:49:44]OFD Sender: No OFD packet to send [11:49:49]OFD Sender: No OFD packet to send [11:49:54]OFD Sender: No OFD packet to send [11:49:59]OFD Sender: No OFD packet to send [11:50:04]OFD Sender: No OFD packet to send [11:50:09]OFD Sender: No OFD packet to send [11:50:14]OFD Sender: No OFD packet to send [11:50:19]OFD Sender: No OFD packet to send [11:50:24]OFD Sender: No OFD packet to send [11:50:29]OFD Sender: No OFD packet to send [11:50:34]OFD Sender: No OFD packet to send [11:50:39]OFD Sender: No OFD packet to send [11:50:44]OFD Sender: No OFD packet to send [11:50:49]OFD Sender: No OFD packet to send [11:50:54]OFD Sender: No OFD packet to send [11:50:59]OFD Sender: No OFD packet to send [11:51:04]OFD Sender: No OFD packet to send [11:51:09]OFD Sender: No OFD packet to send [11:51:14]OFD Sender: No OFD packet to send [11:51:19]OFD Sender: No OFD packet to send [11:51:24]OFD Sender: No OFD packet to send [11:51:29]OFD Sender: No OFD packet to send [11:51:34]OFD Sender: No OFD packet to send [11:51:39]OFD Sender: No OFD packet to send [11:51:44]OFD Sender: No OFD packet to send [11:51:49]OFD Sender: No OFD packet to send [11:51:54]OFD Sender: No OFD packet to send [11:51:59]OFD Sender: No OFD packet to send [11:52:04]OFD Sender: No OFD packet to send [11:52:09]OFD Sender: No OFD packet to send [11:52:14]OFD Sender: No OFD packet to send [11:52:19]OFD Sender: No OFD packet to send [11:52:24]OFD Sender: No OFD packet to send [11:52:29]OFD Sender: No OFD packet to send [11:52:34]OFD Sender: No OFD packet to send [11:52:39]OFD Sender: No OFD packet to send [11:52:44]OFD Sender: No OFD packet to send [11:52:49]OFD Sender: No OFD packet to send [11:52:54]OFD Sender: No OFD packet to send [11:52:57]accept exits with 9 [11:52:57]New connection [11:52:57]New thread 3067342180 created [11:52:57]Thread 3067198820 joined [11:52:57]Waiting for new connection... [11:52:57] Sock 9.Parse request [11:52:57]Sock 9.Check first char [11:52:57]Sock 9.First char is OK [11:52:57]request: POST /json_proto HTTP/1.0 [11:52:57]Method: POST [11:52:57]URL: /json_proto [11:52:57]Method is POST - this is cgi request [11:52:57]url: /json_proto [11:52:57]query_string will be loaded in cgi processing [11:52:57]execute_cgi json_proto POST (null) [11:52:57]execute_cgi path=json_proto method=POST [11:52:57]POST find Content-Length [11:52:57]Host: 172.17.32.69:8080 [11:52:57]Content-Length: 215 [11:52:57]Content-Type: application/json [11:52:57] [11:52:57]POST finish read [11:52:57]Found Content-Length = 215 [11:52:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:57]execute_script... [11:52:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:57]POST & json_proto [11:52:57]process_json_proto [11:52:57]json parsed OK: [11:52:57]protocol is kg_v1.0 [11:52:57]action value=get_value [11:52:57]process_action get_value [11:52:57]cmd_get_value [11:52:57]process_action get_value done [11:52:57]requested_data is exist [11:52:57]produce_requested_data [11:52:57]requested_item kkm.sn is exist - process it [11:52:57]requested_item kkm.ver is exist - process it [11:52:57]requested_item fm.sn is exist - process it [11:52:57]wFMCommunicate request_size=4 [11:52:57]MH_SAM_APDU [11:52:57]CAPDU: 80 11 00 00 [11:52:57]Write to MH i2c: E2 08 00 3F 33 80 11 00 00 00 00 00 00 EC [11:52:57]Write i2c OK [11:52:57]MH_I2C_Read... [11:52:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:57]Read from MH i2c: E2 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: E2 17 00 [11:52:57]MH_I2C_Read... [11:52:57]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 31 38 90 00 40 [11:52:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 90 00 [11:52:57]wFMCommunicate OK [11:52:57]requested_item fd.num is exist - process it [11:52:57]SAM_PROTO_GetFieldsCounters [11:52:57]wFMCommunicate request_size=4 [11:52:57]MH_SAM_APDU [11:52:57]CAPDU: 80 13 00 00 [11:52:57]Write to MH i2c: E2 08 00 40 33 80 13 00 00 00 00 00 00 EF [11:52:57]Write i2c OK [11:52:57]MH_I2C_Read... [11:52:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:57]Read from MH i2c: E2 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: E2 62 00 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: E2 62 00 40 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 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 25 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [11:52:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 39 31 31 10 04 04 00 25 A8 01 00 0E 04 04 00 40 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:52:57]wFMCommunicate OK [11:52:57]SAM_PROTO_GetFieldsCounters done [11:52:57]requested_item shift.num is exist - process it [11:52:57]requested_item shift.opened is exist - process it [11:52:57]req_shift_opened [11:52:57]FM_GetShiftState [11:52:57]SAM_PROTO_GetShiftState [11:52:57]wFMCommunicate request_size=4 [11:52:57]MH_SAM_APDU [11:52:57]CAPDU: 80 13 01 00 [11:52:57]Write to MH i2c: E2 08 00 41 33 80 13 01 00 00 00 00 00 F1 [11:52:57]Write i2c OK [11:52:57]MH_I2C_Read... [11:52:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:57]Read from MH i2c: E2 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: E2 0E 00 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: E2 0E 00 41 33 00 09 00 00 00 00 00 00 00 00 00 00 90 00 FC [11:52:57]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [11:52:57]wFMCommunicate OK [11:52:57]SAM_PROTO_GetShiftState done [11:52:57]FM_GetShiftState done [11:52:57]req_shift_opened done [11:52:57]requested_item shift.open_date is exist - process it [11:52:57]req_shift_open_date [11:52:57]FM_GetShiftState [11:52:57]SAM_PROTO_GetShiftState [11:52:57]wFMCommunicate request_size=4 [11:52:57]MH_SAM_APDU [11:52:57]CAPDU: 80 13 01 00 [11:52:57]Write to MH i2c: E2 08 00 42 33 80 13 01 00 00 00 00 00 F2 [11:52:57]Write i2c OK [11:52:57]MH_I2C_Read... [11:52:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:57]Read from MH i2c: E2 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: E2 0E 00 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: E2 0E 00 42 33 00 09 00 00 00 00 00 00 00 00 00 00 90 00 FD [11:52:57]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [11:52:57]wFMCommunicate OK [11:52:57]SAM_PROTO_GetShiftState done [11:52:57]FM_GetShiftState done [11:52:57]req_shift_open_date done [11:52:57]produce_requested_data done [11:52:57]produce_requested_data return {"kkm.sn":"0300000266","kkm.ver":"001","fm.sn":"0000000000871818","fd.num":108581,"shift.num":320,"shift.opened":0,"shift.open_date":0} [11:52:57]process_action_free get_value [11:52:57]json_value_free [11:52:57]json_value_free done [11:52:57]process_json_proto returns [11:52:57]Send response to host [11:52:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000266","kkm.ver":"001","fm.sn":"0000000000871818","fd.num":108581,"shift.num":320,"shift.opened":0,"shift.open_date":0}}} [11:52:57]free response buf [11:52:57]execute_script done [11:52:57]execute_script returns [11:52:57]free content buf [11:52:57]Sock 9.Close socket [11:52:57]Sock 9.Thread stoped [11:52:58]accept exits with 8 [11:52:58]New connection [11:52:58]New thread 3067198820 created [11:52:58]Thread 3067342180 joined [11:52:58]Waiting for new connection... [11:52:58] Sock 8.Parse request [11:52:58]Sock 8.Check first char [11:52:58]Sock 8.First char is OK [11:52:58]request: POST /json_proto HTTP/1.0 [11:52:58]Method: POST [11:52:58]URL: /json_proto [11:52:58]Method is POST - this is cgi request [11:52:58]url: /json_proto [11:52:58]query_string will be loaded in cgi processing [11:52:58]execute_cgi json_proto POST (null) [11:52:58]execute_cgi path=json_proto method=POST [11:52:58]POST find Content-Length [11:52:58]Host: 172.17.32.69:8080 [11:52:58]Content-Length: 331 [11:52:58]Content-Type: application/json [11:52:58] [11:52:58]POST finish read [11:52:58]Found Content-Length = 331 [11:52:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:52:58]execute_script... [11:52:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:52:58]POST & json_proto [11:52:58]process_json_proto [11:52:58]json parsed OK: [11:52:58]protocol is kg_v1.0 [11:52:58]action value=get_value [11:52:58]process_action get_value [11:52:58]cmd_get_value [11:52:58]process_action get_value done [11:52:58]requested_data is exist [11:52:58]produce_requested_data [11:52:58]requested_item fm.sale.total is exist - process it [11:52:58]SAM_PROTO_GetFMData [11:52:58]wFMCommunicate request_size=4 [11:52:58]MH_SAM_APDU [11:52:58]CAPDU: 80 13 03 00 [11:52:58]Write to MH i2c: E2 08 00 43 33 80 13 03 00 00 00 00 00 F5 [11:52:58]Write i2c OK [11:52:58]MH_I2C_Read... [11:52:58]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:52:58]Read from MH i2c: E2 [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: E2 FD 00 [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: E2 FD 00 43 33 00 C5 04 85 04 C1 04 6E 04 04 00 A4 A5 01 00 69 04 A3 00 6F 04 04 00 73 9F 01 00 B1 04 05 00 7D 93 E4 F0 01 70 04 05 00 36 59 EE 92 01 72 04 04 00 47 3A F6 5D 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 21 82 C8 34 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 FE F4 65 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 31 06 00 00 B1 04 04 00 B8 82 30 0D 70 04 04 00 B8 82 30 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C9 A2 66 01 EF 03 09 90 00 30 [11:52:58]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 A4 A5 01 00 69 04 A3 00 6F 04 04 00 73 9F 01 00 B1 04 05 00 7D 93 E4 F0 01 70 04 05 00 36 59 EE 92 01 72 04 04 00 47 3A F6 5D 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 21 82 C8 34 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 FE F4 65 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 31 06 00 00 B1 04 04 00 B8 82 30 0D 70 04 04 00 B8 82 30 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C9 A2 66 01 EF 03 09 90 00 [11:52:58]wFMCommunicate OK [11:52:58]wFMCommunicate request_size=4 [11:52:58]MH_SAM_APDU [11:52:58]CAPDU: 80 17 00 00 [11:52:58]Write to MH i2c: E2 08 00 44 33 80 17 00 00 00 00 00 00 F7 [11:52:58]Write i2c OK [11:52:58]MH_I2C_Read... [11:52:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:52:58]Read from MH i2c: E2 [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: E2 FD 00 [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: E2 FD 00 44 33 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 5D E2 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 09 [11:52:58]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 5D E2 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [11:52:58]wFMCommunicate OK [11:52:58]wFMCommunicate request_size=4 [11:52:58]MH_SAM_APDU [11:52:58]CAPDU: 80 17 00 00 [11:52:58]Write to MH i2c: E2 08 00 45 33 80 17 00 00 00 00 00 00 F8 [11:52:58]Write i2c OK [11:52:58]MH_I2C_Read... [11:52:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:52:59]Read from MH i2c: E2 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: E2 FD 00 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: E2 FD 00 45 33 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 0A [11:52:59]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [11:52:59]wFMCommunicate OK [11:52:59]wFMCommunicate request_size=4 [11:52:59]MH_SAM_APDU [11:52:59]CAPDU: 80 17 00 00 [11:52:59]Write to MH i2c: E2 08 00 46 33 80 17 00 00 00 00 00 00 F9 [11:52:59]Write i2c OK [11:52:59]MH_I2C_Read... [11:52:59]OFD Sender: No OFD packet to send [11:52:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:52:59]Read from MH i2c: E2 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: E2 FD 00 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: E2 FD 00 46 33 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 85 [11:52:59]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:52:59]wFMCommunicate OK [11:52:59]wFMCommunicate request_size=4 [11:52:59]MH_SAM_APDU [11:52:59]CAPDU: 80 17 00 00 [11:52:59]Write to MH i2c: E2 08 00 47 33 80 17 00 00 00 00 00 00 FA [11:52:59]Write i2c OK [11:52:59]MH_I2C_Read... [11:52:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [11:52:59]Read from MH i2c: E2 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: E2 E2 00 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: E2 E2 00 47 33 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D8 [11:52:59]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:52:59]wFMCommunicate OK [11:52:59]SAM_PROTO_GetFMData done [11:52:59]requested_item fm.sale_refund.total is exist - process it [11:52:59]requested_item fm.buy.total is exist - process it [11:52:59]requested_item shift.sale.total is exist - process it [11:52:59]SAM_PROTO_GetShiftData [11:52:59]wFMCommunicate request_size=4 [11:52:59]MH_SAM_APDU [11:52:59]CAPDU: 80 13 02 00 [11:52:59]Write to MH i2c: E2 08 00 48 33 80 13 02 00 00 00 00 00 F9 [11:52:59]Write i2c OK [11:52:59]MH_I2C_Read... [11:53:00]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:53:00]Read from MH i2c: E2 [11:53:00]MH_I2C_Read... [11:53:00]Read from MH i2c: E2 FD 00 [11:53:00]MH_I2C_Read... [11:53:00]Read from MH i2c: E2 FD 00 48 33 00 B9 04 AA 04 B5 04 6E 04 04 00 67 00 00 00 69 04 9C 00 6F 04 04 00 65 00 00 00 B1 04 03 00 15 DF 7A 70 04 03 00 94 FF 66 72 04 03 00 81 DF 13 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 78 0D 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 16 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 B8 C1 03 70 04 03 00 B8 C1 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 26 66 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 30 [11:53:00]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 67 00 00 00 69 04 9C 00 6F 04 04 00 65 00 00 00 B1 04 03 00 15 DF 7A 70 04 03 00 94 FF 66 72 04 03 00 81 DF 13 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 78 0D 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 16 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 B8 C1 03 70 04 03 00 B8 C1 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 26 66 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [11:53:00]wFMCommunicate OK [11:53:00]wFMCommunicate request_size=4 [11:53:00]MH_SAM_APDU [11:53:00]CAPDU: 80 17 00 00 [11:53:00]Write to MH i2c: E2 08 00 49 33 80 17 00 00 00 00 00 00 FC [11:53:00]Write i2c OK [11:53:00]MH_I2C_Read... [11:53:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:53:00]Read from MH i2c: E2 [11:53:00]MH_I2C_Read... [11:53:00]Read from MH i2c: E2 FD 00 [11:53:00]MH_I2C_Read... [11:53:00]Read from MH i2c: E2 FD 00 49 33 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 82 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 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 90 00 45 [11:53:00]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 82 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 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 90 00 [11:53:00]wFMCommunicate OK [11:53:00]wFMCommunicate request_size=4 [11:53:00]MH_SAM_APDU [11:53:00]CAPDU: 80 17 00 00 [11:53:00]Write to MH i2c: E2 08 00 4A 33 80 17 00 00 00 00 00 00 FD [11:53:00]Write i2c OK [11:53:00]MH_I2C_Read... [11:53:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:53:00]Read from MH i2c: E2 [11:53:00]MH_I2C_Read... [11:53:00]Read from MH i2c: E2 FD 00 [11:53:00]MH_I2C_Read... [11:53:00]Read from MH i2c: E2 FD 00 4A 33 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 25 [11:53:00]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [11:53:00]wFMCommunicate OK [11:53:00]wFMCommunicate request_size=4 [11:53:00]MH_SAM_APDU [11:53:00]CAPDU: 80 17 00 00 [11:53:00]Write to MH i2c: E2 08 00 4B 33 80 17 00 00 00 00 00 00 FE [11:53:00]Write i2c OK [11:53:00]MH_I2C_Read... [11:53:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:53:01]Read from MH i2c: E2 [11:53:01]MH_I2C_Read... [11:53:01]Read from MH i2c: E2 FD 00 [11:53:01]MH_I2C_Read... [11:53:01]Read from MH i2c: E2 FD 00 4B 33 00 EF 03 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 90 00 76 [11:53:01]RAPDU: EF 03 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 90 00 [11:53:01]wFMCommunicate OK [11:53:01]wFMCommunicate request_size=4 [11:53:01]MH_SAM_APDU [11:53:01]CAPDU: 80 17 00 00 [11:53:01]Write to MH i2c: E2 08 00 4C 33 80 17 00 00 00 00 00 00 FF [11:53:01]Write i2c OK [11:53:01]MH_I2C_Read... [11:53:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [11:53:01]Read from MH i2c: E2 [11:53:01]MH_I2C_Read... [11:53:01]Read from MH i2c: E2 D6 00 [11:53:01]MH_I2C_Read... [11:53:01]Read from MH i2c: E2 D6 00 4C 33 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E1 [11:53:01]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:53:01]wFMCommunicate OK [11:53:01]SAM_PROTO_GetShiftData done [11:53:01]requested_item shift.sale.total_cash is exist - process it [11:53:01]requested_item shift.sale_refund.total is exist - process it [11:53:01]requested_item shift.sale_refund.total_cash is exist - process it [11:53:01]requested_item shift.buy.total is exist - process it [11:53:01]requested_item shift.buy.total_cash is exist - process it [11:53:01]produce_requested_data done [11:53:01]produce_requested_data return {"fm.sale.total":83364791.01,"fm.sale_refund.total":2212830.00,"fm.buy.total":0.00,"shift.sale.total":80525.01,"shift.sale.total_cash":67501.00,"shift.sale_refund.total":2462.00,"shift.sale_refund.total_cash":2462.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [11:53:01]process_action_free get_value [11:53:01]json_value_free [11:53:01]json_value_free done [11:53:01]process_json_proto returns [11:53:01]Send response to host [11:53:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":83364791.01,"fm.sale_refund.total":2212830.00,"fm.buy.total":0.00,"shift.sale.total":80525.01,"shift.sale.total_cash":67501.00,"shift.sale_refund.total":2462.00,"shift.sale_refund.total_cash":2462.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [11:53:01]free response buf [11:53:01]execute_script done [11:53:01]execute_script returns [11:53:01]free content buf [11:53:01]Sock 8.Close socket [11:53:01]Sock 8.Thread stoped [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]OFD Sender: No OFD packet to send [11:55:29]OFD Sender: No OFD packet to send [11:55:34]OFD Sender: No OFD packet to send [11:55:39]OFD Sender: No OFD packet to send [11:55:44]OFD Sender: No OFD packet to send [11:55:49]OFD Sender: No OFD packet to send [11:55:54]OFD Sender: No OFD packet to send [11:55:59]OFD Sender: No OFD packet to send [11:56:04]OFD Sender: No OFD packet to send [11:56:09]OFD Sender: No OFD packet to send [11:56:14]OFD Sender: No OFD packet to send [11:56:19]OFD Sender: No OFD packet to send [11:56:24]OFD Sender: No OFD packet to send [11:56:29]OFD Sender: No OFD packet to send [11:56:34]OFD Sender: No OFD packet to send [11:56:39]OFD Sender: No OFD packet to send [11:56:44]OFD Sender: No OFD packet to send [11:56:49]OFD Sender: No OFD packet to send [11:56:54]OFD Sender: No OFD packet to send [11:56:59]OFD Sender: No OFD packet to send [11:57:04]OFD Sender: No OFD packet to send [11:57:09]OFD Sender: No OFD packet to send [11:57:14]OFD Sender: No OFD packet to send [11:57:19]OFD Sender: No OFD packet to send [11:57:24]OFD Sender: No OFD packet to send [11:57:29]OFD Sender: No OFD packet to send [11:57:34]OFD Sender: No OFD packet to send [11:57:39]OFD Sender: No OFD packet to send [11:57:44]OFD Sender: No OFD packet to send [11:57:49]OFD Sender: No OFD packet to send [11:57:54]OFD Sender: No OFD packet to send [11:57:59]OFD Sender: No OFD packet to send [11:58:04]OFD Sender: No OFD packet to send [11:58:09]OFD Sender: No OFD packet to send [11:58:14]OFD Sender: No OFD packet to send [11:58:19]OFD Sender: No OFD packet to send [11:58:24]OFD Sender: No OFD packet to send [11:58:29]OFD Sender: No OFD packet to send [11:58:34]OFD Sender: No OFD packet to send [11:58:39]OFD Sender: No OFD packet to send [11:58:44]OFD Sender: No OFD packet to send [11:58:49]OFD Sender: No OFD packet to send [11:58:54]OFD Sender: No OFD packet to send [11:58:59]OFD Sender: No OFD packet to send [11:59:04]OFD Sender: No OFD packet to send [11:59:09]OFD Sender: No OFD packet to send [11:59:14]OFD Sender: No OFD packet to send [11:59:19]OFD Sender: No OFD packet to send [11:59:24]OFD Sender: No OFD packet to send [11:59:29]OFD Sender: No OFD packet to send [11:59:34]OFD Sender: No OFD packet to send [11:59:39]OFD Sender: No OFD packet to send [11:59:44]OFD Sender: No OFD packet to send [11:59:49]OFD Sender: No OFD packet to send [11:59:54]OFD Sender: No OFD packet to send [11:59:59]OFD Sender: No OFD packet to send [12:00:04]OFD Sender: No OFD packet to send [12:00:09]OFD Sender: No OFD packet to send [12:00:14]OFD Sender: No OFD packet to send [12:00:19]OFD Sender: No OFD packet to send [12:00:24]OFD Sender: No OFD packet to send [12:00:29]OFD Sender: No OFD packet to send [12:00:34]OFD Sender: No OFD packet to send [12:00:39]OFD Sender: No OFD packet to send [12:00:44]OFD Sender: No OFD packet to send [12:00:49]OFD Sender: No OFD packet to send [12:00:54]OFD Sender: No OFD packet to send [12:00:59]OFD Sender: No OFD packet to send [12:01:04]OFD Sender: No OFD packet to send [12:01:09]OFD Sender: No OFD packet to send [12:01:14]OFD Sender: No OFD packet to send [12:01:19]OFD Sender: No OFD packet to send [12:01:24]OFD Sender: No OFD packet to send