[03:03:51]OFD Sender: No OFD packet to send [03:03:56]OFD Sender: No OFD packet to send [03:04:01]OFD Sender: No OFD packet to send [03:04:06]OFD Sender: No OFD packet to send [03:04:11]OFD Sender: No OFD packet to send [03:04:16]OFD Sender: No OFD packet to send [03:04:21]OFD Sender: No OFD packet to send [03:04:26]OFD Sender: No OFD packet to send [03:04:31]OFD Sender: No OFD packet to send [03:04:36]OFD Sender: No OFD packet to send [03:04:41]OFD Sender: No OFD packet to send [03:04:46]OFD Sender: No OFD packet to send [03:04:47]recv_with_timeout no data received [03:04:51]OFD Sender: No OFD packet to send [03:04:56]OFD Sender: No OFD packet to send [03:05:01]OFD Sender: No OFD packet to send [03:05:06]OFD Sender: No OFD packet to send [03:05:11]OFD Sender: No OFD packet to send [03:05:11]recv_with_timeout no data received [03:05:16]OFD Sender: No OFD packet to send [03:05:21]OFD Sender: No OFD packet to send [03:05:26]OFD Sender: No OFD packet to send [03:05:29]recv_with_timeout no data received [03:05:31]OFD Sender: No OFD packet to send [03:05:36]OFD Sender: No OFD packet to send [03:05:41]OFD Sender: No OFD packet to send [03:05:46]OFD Sender: No OFD packet to send [03:05:51]OFD Sender: No OFD packet to send [03:05:56]OFD Sender: No OFD packet to send [03:05:59]recv_with_timeout no data received [03:06:01]OFD Sender: No OFD packet to send [03:06:06]OFD Sender: No OFD packet to send [03:06:11]OFD Sender: No OFD packet to send [03:06:16]OFD Sender: No OFD packet to send [03:06:21]OFD Sender: No OFD packet to send [03:06:26]OFD Sender: No OFD packet to send [03:06:30]recv_with_timeout no data received [03:06:31]OFD Sender: No OFD packet to send [03:06:36]OFD Sender: No OFD packet to send [03:06:41]OFD Sender: No OFD packet to send [03:06:46]OFD Sender: No OFD packet to send [03:06:47]recv_with_timeout no data received [03:06:51]OFD Sender: No OFD packet to send [03:06:56]OFD Sender: No OFD packet to send [03:06:57]recv_with_timeout no data received [03:07:01]OFD Sender: No OFD packet to send [03:07:06]OFD Sender: No OFD packet to send [03:07:08]recv_with_timeout no data received [03:07:11]OFD Sender: No OFD packet to send [03:07:16]OFD Sender: No OFD packet to send [03:07:21]OFD Sender: No OFD packet to send [03:07:26]OFD Sender: No OFD packet to send [03:07:31]OFD Sender: No OFD packet to send [03:07:36]OFD Sender: No OFD packet to send [03:07:41]OFD Sender: No OFD packet to send [03:07:46]OFD Sender: No OFD packet to send [03:07:51]OFD Sender: No OFD packet to send [03:07:56]OFD Sender: No OFD packet to send [03:08:01]OFD Sender: No OFD packet to send [03:08:06]OFD Sender: No OFD packet to send [03:08:11]OFD Sender: No OFD packet to send [03:08:16]OFD Sender: No OFD packet to send [03:08:21]OFD Sender: No OFD packet to send [03:08:26]OFD Sender: No OFD packet to send [03:08:31]OFD Sender: No OFD packet to send [03:08:36]OFD Sender: No OFD packet to send [03:08:41]OFD Sender: No OFD packet to send [03:08:46]OFD Sender: No OFD packet to send [03:08:51]OFD Sender: No OFD packet to send [03:08:56]OFD Sender: No OFD packet to send [03:09:01]OFD Sender: No OFD packet to send [03:09:06]OFD Sender: No OFD packet to send [03:09:11]OFD Sender: No OFD packet to send [03:09:16]OFD Sender: No OFD packet to send [03:09:21]OFD Sender: No OFD packet to send [03:09:26]OFD Sender: No OFD packet to send [03:09:31]OFD Sender: No OFD packet to send [03:09:36]OFD Sender: No OFD packet to send [03:09:41]OFD Sender: No OFD packet to send [03:09:46]OFD Sender: No OFD packet to send [03:09:51]OFD Sender: No OFD packet to send [03:09:56]OFD Sender: No OFD packet to send [03:10:01]OFD Sender: No OFD packet to send [03:10:03]accept exits with 9 [03:10:03]New connection [03:10:03]New thread 3066789220 created [03:10:03]Thread 3066932580 joined [03:10:03]Waiting for new connection... [03:10:03] Sock 9.Parse request [03:10:03]Sock 9.Check first char [03:10:03]Sock 9.First char is OK [03:10:03]request: POST /json_proto HTTP/1.0 [03:10:03]Method: POST [03:10:03]URL: /json_proto [03:10:03]Method is POST - this is cgi request [03:10:03]url: /json_proto [03:10:03]query_string will be loaded in cgi processing [03:10:03]execute_cgi json_proto POST (null) [03:10:03]execute_cgi path=json_proto method=POST [03:10:03]POST find Content-Length [03:10:03]Host: 172.17.43.195:8080 [03:10:03]Content-Length: 682 [03:10:03]Content-Type: application/json [03:10:03] [03:10:03]POST finish read [03:10:03]Found Content-Length = 682 [03:10:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:10:03]execute_script... [03:10:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:10:03]POST & json_proto [03:10:03]process_json_proto [03:10:03]json parsed OK: [03:10:03]protocol is kg_v1.0 [03:10:03]action value=close_receipt [03:10:03]process_action close_receipt [03:10:03]cmd_close_receipt [03:10:03]MH_GetDate [03:10:03]Write to MH i2c: F0 00 00 7D 01 6D [03:10:03]Write i2c OK [03:10:03]MH_I2C_Read... [03:10:03]Read from MH i2c: F0 [03:10:03]MH_I2C_Read... [03:10:03]Read from MH i2c: F0 09 00 [03:10:03]MH_I2C_Read... [03:10:03]Read from MH i2c: F0 09 00 7D 01 00 8C 46 24 67 74 2C AD 66 86 [03:10:03]GetLastDocTimeStamp 1730429281 [03:10:03]current date 1730430604 [03:10:03]FM_GetShiftState [03:10:03]SAM_PROTO_GetShiftState [03:10:03]wFMCommunicate request_size=4 [03:10:03]MH_SAM_APDU [03:10:03]CAPDU: 80 13 01 00 [03:10:03]Write to MH i2c: E2 08 00 7E 01 80 13 01 00 00 00 00 00 FC [03:10:03]Write i2c OK [03:10:03]MH_I2C_Read... [03:10:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:10:03]Read from MH i2c: E2 [03:10:03]MH_I2C_Read... [03:10:03]Read from MH i2c: E2 0E 00 [03:10:03]MH_I2C_Read... [03:10:03]Read from MH i2c: E2 0E 00 7E 01 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 43 [03:10:03]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [03:10:03]wFMCommunicate OK [03:10:03]SAM_PROTO_GetShiftState done [03:10:03]FM_GetShiftState done [03:10:03]opened in 1730419605 [03:10:03]opened+sec_in_day 1730506005 [03:10:03]quantity*price = 30022 [03:10:03]sum+1 = 30024 [03:10:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 16 01.11.2024 03:10 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73147 ФПД: 7481296498787 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T031004&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73147&fm=7481296498787&tin=02508201610067®Number=0000000000091644&sum=30000 [03:10:04]StoreToDocumentArchive [03:10:04]shift 558 fd 73147 [03:10:04]save to /storage/0558/doc_00073147 [03:10:04]save last doc name /storage/0558/doc_00073147 to /storage/kkm_last_doc_name [03:10:04]save OK [03:10:04]Clear old archive folders... [03:10:04]ProcessDocumentItem done err = 0, tmpTLVsize=252 [03:10:04]tlvbuf is 00215AB0 [03:10:04]SAM_PROTO_ClearQueue [03:10:04]wFMCommunicate request_size=4 [03:10:04]MH_SAM_APDU [03:10:04]CAPDU: 80 09 00 00 [03:10:04]Write to MH i2c: E2 08 00 8B 01 80 09 00 00 00 00 00 00 FE [03:10:04]Write i2c OK [03:10:04]MH_I2C_Read... [03:10:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:10:04]Read from MH i2c: E2 [03:10:04]MH_I2C_Read... [03:10:04]Read from MH i2c: E2 03 00 [03:10:04]MH_I2C_Read... [03:10:04]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [03:10:04]RAPDU: 90 00 [03:10:04]wFMCommunicate OK [03:10:04]SAM_PROTO_ClearQueue done [03:10:04]KKMCreateOFDPacket [03:10:04]OFDProtocolAddRootSTLVToBuf [03:10:04]FM_MakeSignedData [03:10:04]FM_MakeSignedData [03:10:04]SAM_PROTO_SignData [03:10:04]wFMCommunicate request_size=4 [03:10:04]MH_SAM_APDU [03:10:04]CAPDU: 80 0D 01 02 [03:10:04]Write to MH i2c: E2 08 00 8C 01 80 0D 01 02 00 00 00 00 06 [03:10:04]Write i2c OK [03:10:04]MH_I2C_Read... [03:10:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:10:04]Read from MH i2c: E2 [03:10:04]MH_I2C_Read... [03:10:04]Read from MH i2c: E2 03 00 [03:10:04]MH_I2C_Read... [03:10:04]Read from MH i2c: E2 03 00 8C 01 00 90 00 01 [03:10:04]RAPDU: 90 00 [03:10:04]wFMCommunicate OK [03:10:04]wFMCommunicate request_size=255 [03:10:04]MH_SAM_APDU [03:10: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 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 8C 46 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BB 1D 01 00 35 04 06 00 [03:10:04]Write to MH i2c: E2 02 01 8D 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 8C 46 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BB 1D 01 00 35 04 06 00 00 00 A6 [03:10:04]Write i2c OK [03:10:04]MH_I2C_Read... [03:10:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:10:04]Read from MH i2c: E2 [03:10:04]MH_I2C_Read... [03:10:04]Read from MH i2c: E2 03 00 [03:10:04]MH_I2C_Read... [03:10:04]Read from MH i2c: E2 03 00 8D 01 00 90 00 02 [03:10:04]RAPDU: 90 00 [03:10:04]wFMCommunicate OK [03:10:04]wFMCommunicate request_size=11 [03:10:04]MH_SAM_APDU [03:10:04]CAPDU: 80 0D 02 02 06 06 CD E0 05 30 63 [03:10:04]Write to MH i2c: E2 0E 00 8E 01 80 0D 02 02 06 00 06 CD E0 05 30 63 00 00 60 [03:10:04]Write i2c OK [03:10:04]MH_I2C_Read... [03:10:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:10:04]Read from MH i2c: E2 [03:10:04]MH_I2C_Read... [03:10:04]Read from MH i2c: E2 03 00 [03:10:04]MH_I2C_Read... [03:10:04]Read from MH i2c: E2 03 00 8E 01 00 90 00 03 [03:10:04]RAPDU: 90 00 [03:10:04]wFMCommunicate OK [03:10:04]wFMCommunicate request_size=4 [03:10:04]MH_SAM_APDU [03:10:04]CAPDU: 80 0D 03 02 [03:10:04]Write to MH i2c: E2 08 00 8F 01 80 0D 03 02 00 00 00 00 0B [03:10:04]Write i2c OK [03:10:04]MH_I2C_Read... [03:10:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:10:04]Read from MH i2c: E2 [03:10:04]MH_I2C_Read... [03:10:04]Read from MH i2c: E2 0B 00 [03:10:04]MH_I2C_Read... [03:10:04]Read from MH i2c: E2 0B 00 8F 01 00 57 E0 28 E6 23 8E B4 F7 90 00 AD [03:10:04]RAPDU: 57 E0 28 E6 23 8E B4 F7 90 00 [03:10:04]wFMCommunicate OK [03:10:04]SAM_PROTO_SignData done [03:10:04]FM_MakeSignedData done [03:10:04]CreateOFDProtocolMessage [03:10:04]wFMCommunicate request_size=4 [03:10:04]MH_SAM_APDU [03:10:04]CAPDU: 80 11 00 00 [03:10:04]Write to MH i2c: E2 08 00 90 01 80 11 00 00 00 00 00 00 0B [03:10:04]Write i2c OK [03:10:04]MH_I2C_Read... [03:10:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:10:04]Read from MH i2c: E2 [03:10:04]MH_I2C_Read... [03:10:04]Read from MH i2c: E2 17 00 [03:10:04]MH_I2C_Read... [03:10:04]Read from MH i2c: E2 17 00 90 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5F [03:10:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [03:10:04]wFMCommunicate OK [03:10:04]CreateOFDProtocolMessage done [03:10:04]OFDSenderStorePacket 73147 [03:10:04]StoreOFDPacket docnum=73147 [03:10:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 86 55 08 01 94 96 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 8C 46 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BB 1D 01 00 35 04 06 00 06 CD E0 05 30 63 57 E0 28 E6 23 8E B4 F7 [03:10:04]CheckFolder [03:10:04]dirname=/storage/ofd_packets [03:10:04]CheckFolder done [03:10:04]ProducePacketName [03:10:04]name=ofd_packets/00073147 [03:10:04]NVStorageSaveData ofd_packets/00073147 [03:10:04]File name is /storage/ofd_packets/00073147 [03:10:04]Write 302 bytes [03:10:04]NVStorageSaveData done [03:10:04]OFDSenderStorePacket done [03:10:04]KKMCreateOFDPacket done [03:10:04]NVStorageSaveData kkm_last_timestamp [03:10:04]File name is /storage/kkm_last_timestamp [03:10:04]Write 4 bytes [03:10:04]NVStorageSaveData done [03:10:04]ExternCall_PrintAddStr [03:10:04]wPrintStart [03:10:04]Write to MH i2c: 01 00 00 91 01 92 [03:10:04]Write i2c OK [03:10:04]MH_I2C_Read... [03:10:04]Read from MH i2c: 01 [03:10:04]MH_I2C_Read... [03:10:04]Read from MH i2c: 01 07 00 [03:10:04]MH_I2C_Read... [03:10:04]Read from MH i2c: 01 07 00 91 01 00 00 00 00 00 FF 0F A7 [03:10:04]RasterBufferAndPrint [03:10:04]line Счет N : (1)952746 [03:10:04]line ИНН: 02508201610067 [03:10:04]line Контрольно-Кассовый Чек [03:10:04]line ПРОДАЖА [03:10:04]line ТРК (МРК, ГНК) : 33 [03:10:04]line Товар: 2710194210 [03:10:04]line ДТ(л)-К-5 [03:10:04]line 3.940 * 76.20 [03:10:04]line = 300.23 [03:10:04]line НДС 12% НСП 1% [03:10:04]line > о реализуемом товаре [03:10:04]line ОКРУГЛЕНИЕ: -0.23 [03:10:04]line ИТОГО: 300.00 [03:10:04]line Внесено: 300.00 [03:10:04]line СДАЧА: 0.00 [03:10:04]line НСП 1% : 2.66 [03:10:04]line НДС 12% : 31.88 [03:10:04]line Наличными: 300.00 [03:10:04]line Безнал.: 0.00 [03:10:04]line Место: АЗС № 113 "Партнер Нефть" [03:10:04]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [03:10:04]line СНО: Общий режим [03:10:04]line Чек 16 01.11.2024 03:10 [03:10:04]line Смена: 558 ФФД: 1.0 [03:10:04]line ЗНМ: 0300000087 [03:10:04]line РНМ: 0000000000091644 [03:10:04]line Версия ККМ: 001 [03:10:04]line ФМ: 0000000000874662 [03:10:04]line ФД: 73147 [03:10:04]line ФПД: 7481296498787 [03:10:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T031004&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73147&fm=7481296498787&tin=02508201610067®Number=0000000000091644&sum=30000 [03:10:05]OFD Sender: Processing packet 73147 [packets to send 282, broken 281] [03:10:05]ProducePacketName [03:10:05]name=ofd_packets/00073147 [03:10:05]OFD Sender: To server: pG, [03:10:05]CommunicateWithHost lk.salyk.kg:30040 [03:10:05]ConnectInit lk.salyk.kg [03:10:05]written 0, free lines is 4095 [03:10:05]Write to MH i2c: 01 00 00 BC 01 BD [03:10:05]Write i2c OK [03:10:05]MH_I2C_Read... [03:10:05]Read from MH i2c: 01 [03:10:05]MH_I2C_Read... [03:10:05]Read from MH i2c: 01 07 00 [03:10:05]MH_I2C_Read... [03:10:05]Read from MH i2c: 01 07 00 BC 01 00 00 00 00 00 CD 0C 9D [03:10:05]RasterBufferAndPrint [03:10:05]line [03:10:05]line [03:10:05]line [03:10:05]line [03:10:05]line [03:10:05]written 0, free lines is 3284 [03:10:05]MH_Cut [03:10:05]Write to MH i2c: D1 01 00 C3 01 01 96 [03:10:05]Write i2c OK [03:10:05]MH_I2C_Read... [03:10:05]Read from MH i2c: D1 [03:10:05]MH_I2C_Read... [03:10:05]Read from MH i2c: D1 01 00 [03:10:05]MH_I2C_Read... [03:10:05]Read from MH i2c: D1 01 00 C3 01 00 95 [03:10:05]Write to MH i2c: 01 00 00 C4 01 C5 [03:10:05]Write i2c OK [03:10:05]MH_I2C_Read... [03:10:06]*** Cut start [03:10:06]*** Partial cut [03:10:06]*** CUTSNS_PIN = 1 [03:10:06]*** CUTSNS_PIN = 0 [03:10:06]*** Brake cut motor [03:10:06]Read from MH i2c: 01 [03:10:06]MH_I2C_Read... [03:10:06]*** Stop cut motor [03:10:06]*** Cut end [03:10:06]Read from MH i2c: 01 07 00 [03:10:06]MH_I2C_Read... [03:10:06]Read from MH i2c: 01 07 00 C4 01 00 00 00 00 00 FF 0F DA [03:10:06]process_action close_receipt done [03:10:06]requested_data is exist [03:10:06]produce_requested_data [03:10:06]requested_item fm.sn is exist - process it [03:10:06]wFMCommunicate request_size=4 [03:10:06]MH_SAM_APDU [03:10:06]CAPDU: 80 11 00 00 [03:10:06]Write to MH i2c: E2 08 00 C5 01 80 11 00 00 00 00 00 00 40 [03:10:06]Write i2c OK [03:10:06]MH_I2C_Read... [03:10:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:10:07]Read from MH i2c: E2 [03:10:07]MH_I2C_Read... [03:10:07]Read from MH i2c: E2 17 00 [03:10:07]MH_I2C_Read... [03:10:07]Read from MH i2c: E2 17 00 C5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 94 [03:10:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [03:10:07]wFMCommunicate OK [03:10:07]requested_item fd.num is exist - process it [03:10:07]SAM_PROTO_GetFieldsCounters [03:10:07]wFMCommunicate request_size=4 [03:10:07]MH_SAM_APDU [03:10:07]CAPDU: 80 13 00 00 [03:10:07]Write to MH i2c: E2 08 00 C6 01 80 13 00 00 00 00 00 00 43 [03:10:07]Write i2c OK [03:10:07]MH_I2C_Read... [03:10:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:10:07]Read from MH i2c: E2 [03:10:07]MH_I2C_Read... [03:10:07]Read from MH i2c: E2 62 00 [03:10:07]MH_I2C_Read... [03:10:07]Read from MH i2c: E2 62 00 C6 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 BB 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [03:10: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 BB 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:10:07]wFMCommunicate OK [03:10:07]SAM_PROTO_GetFieldsCounters done [03:10:07]requested_item shift.num is exist - process it [03:10:07]requested_item shift.opened is exist - process it [03:10:07]req_shift_opened [03:10:07]FM_GetShiftState [03:10:07]SAM_PROTO_GetShiftState [03:10:07]wFMCommunicate request_size=4 [03:10:07]MH_SAM_APDU [03:10:07]CAPDU: 80 13 01 00 [03:10:07]Write to MH i2c: E2 08 00 C7 01 80 13 01 00 00 00 00 00 45 [03:10:07]Write i2c OK [03:10:07]MH_I2C_Read... [03:10:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:10:07]Read from MH i2c: E2 [03:10:07]MH_I2C_Read... [03:10:07]Read from MH i2c: E2 0E 00 [03:10:07]MH_I2C_Read... [03:10:07]Read from MH i2c: E2 0E 00 C7 01 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 8C [03:10:07]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [03:10:07]wFMCommunicate OK [03:10:07]SAM_PROTO_GetShiftState done [03:10:07]FM_GetShiftState done [03:10:07]req_shift_opened done [03:10:07]requested_item shift.open_date is exist - process it [03:10:07]req_shift_open_date [03:10:07]req_shift_open_date done [03:10:07]produce_requested_data done [03:10:07]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73147,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [03:10:07]process_action_free close_receipt [03:10:07]json_value_free [03:10:07]json_value_free done [03:10:07]process_json_proto returns [03:10:07]Send response to host [03:10:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73147,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [03:10:07]free response buf [03:10:07]execute_script done [03:10:07]execute_script returns [03:10:07]free content buf [03:10:07]Sock 9.Close socket [03:10:07]Sock 9.Thread stoped [03:10:10]Connected sock=11 [03:10:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 86 55 08 01 94 96 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 8C 46 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BB 1D 01 00 35 04 06 00 06 CD E0 05 30 63 57 E0 28 E6 23 8E B4 F7 [03:10:15]recv_with_timeout no data received [03:10:15]CommunicateWithHost answer receiving error [03:10:15]CommunicateWithHost err = -3 [03:10:15]OFD Sender: Server communicate error [03:10:20]OFD Sender: Processing packet 73147 [packets to send 282, broken 281] [03:10:20]ProducePacketName [03:10:20]name=ofd_packets/00073147 [03:10:20]OFD Sender: To server: pG, [03:10:20]CommunicateWithHost lk.salyk.kg:30040 [03:10:20]ConnectInit lk.salyk.kg [03:10:26]Connected sock=10 [03:10:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 86 55 08 01 94 96 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 8C 46 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BB 1D 01 00 35 04 06 00 06 CD E0 05 30 63 57 E0 28 E6 23 8E B4 F7 [03:10:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 E6 73 47 00 12 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BB 1D 01 00 F4 03 04 00 55 F1 23 67 B6 04 01 00 00 6B 60 02 D0 AC C1 5F 05 [03:10:26]CommunicateWithHost err = 0 [03:10:26]CheckOFDResponse [03:10:26]1017 (14) - 77093643461234 [03:10:26]1041 (16) - 0000000000874662 [03:10:26]1040 (4) - 73147 [03:10:26]1012 (4) - 31.10.2024 21:06 [03:10:26]1206 (1) - 0 [03:10:26]OFD Sender: Remove packet 73147 [03:10:26]ProducePacketName [03:10:26]name=ofd_packets/00073147 [03:10:26]NVStorageDeleteData [03:10:27]OFD Sender: No OFD packet to send [03:10:32]OFD Sender: No OFD packet to send [03:10:37]OFD Sender: No OFD packet to send [03:10:42]OFD Sender: No OFD packet to send [03:10:47]OFD Sender: No OFD packet to send [03:10:52]OFD Sender: No OFD packet to send [03:10:57]OFD Sender: No OFD packet to send [03:11:02]OFD Sender: No OFD packet to send [03:11:07]OFD Sender: No OFD packet to send [03:11:07]recv_with_timeout no data received [03:11:12]OFD Sender: No OFD packet to send [03:11:17]OFD Sender: No OFD packet to send [03:11:22]OFD Sender: No OFD packet to send [03:11:27]OFD Sender: No OFD packet to send [03:11:32]OFD Sender: No OFD packet to send [03:11:37]OFD Sender: No OFD packet to send [03:11:42]OFD Sender: No OFD packet to send [03:11:47]OFD Sender: No OFD packet to send [03:11:52]OFD Sender: No OFD packet to send [03:11:57]OFD Sender: No OFD packet to send [03:12:02]OFD Sender: No OFD packet to send [03:12:07]OFD Sender: No OFD packet to send [03:12:08]recv_with_timeout no data received [03:12:12]OFD Sender: No OFD packet to send [03:12:17]OFD Sender: No OFD packet to send [03:12:22]OFD Sender: No OFD packet to send [03:12:27]OFD Sender: No OFD packet to send [03:12:32]OFD Sender: No OFD packet to send [03:12:33]recv_with_timeout no data received [03:12:37]OFD Sender: No OFD packet to send [03:12:42]OFD Sender: No OFD packet to send [03:12:47]OFD Sender: No OFD packet to send [03:12:52]OFD Sender: No OFD packet to send [03:12:57]recv_with_timeout no data received [03:12:57]OFD Sender: No OFD packet to send [03:13:02]OFD Sender: No OFD packet to send [03:13:07]OFD Sender: No OFD packet to send [03:13:12]OFD Sender: No OFD packet to send [03:13:17]OFD Sender: No OFD packet to send [03:13:22]OFD Sender: No OFD packet to send [03:13:27]OFD Sender: No OFD packet to send [03:13:28]recv_with_timeout no data received [03:13:32]OFD Sender: No OFD packet to send [03:13:37]OFD Sender: No OFD packet to send [03:13:42]OFD Sender: No OFD packet to send [03:13:47]OFD Sender: No OFD packet to send [03:13:52]OFD Sender: No OFD packet to send [03:13:57]OFD Sender: No OFD packet to send [03:14:02]OFD Sender: No OFD packet to send [03:14:07]OFD Sender: No OFD packet to send [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:30]recv_with_timeout no data received [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:52]OFD Sender: No OFD packet to send [03:15:57]OFD Sender: No OFD packet to send [03:16:01]recv_with_timeout no data received [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:18]recv_with_timeout no data received [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:48]OFD Sender: No OFD packet to send [03:17:53]OFD Sender: No OFD packet to send [03:17:58]OFD Sender: No OFD packet to send [03:18:03]OFD Sender: No OFD packet to send [03:18:08]OFD Sender: No OFD packet to send [03:18:13]OFD Sender: No OFD packet to send [03:18:18]OFD Sender: No OFD packet to send [03:18:23]OFD Sender: No OFD packet to send [03:18:28]OFD Sender: No OFD packet to send [03:18:33]OFD Sender: No OFD packet to send [03:18:38]OFD Sender: No OFD packet to send [03:18:43]OFD Sender: No OFD packet to send [03:18:48]OFD Sender: No OFD packet to send [03:18:48]recv_with_timeout no data received [03:18:53]OFD Sender: No OFD packet to send [03:18:58]OFD Sender: No OFD packet to send [03:19:03]OFD Sender: No OFD packet to send [03:19:08]OFD Sender: No OFD packet to send [03:19:13]OFD Sender: No OFD packet to send [03:19:18]OFD Sender: No OFD packet to send [03:19:23]OFD Sender: No OFD packet to send [03:19:28]OFD Sender: No OFD packet to send [03:19:33]OFD Sender: No OFD packet to send [03:19:38]OFD Sender: No OFD packet to send [03:19:43]OFD Sender: No OFD packet to send [03:19:48]OFD Sender: No OFD packet to send [03:19:53]OFD Sender: No OFD packet to send [03:19:58]OFD Sender: No OFD packet to send [03:20:03]OFD Sender: No OFD packet to send [03:20:08]OFD Sender: No OFD packet to send [03:20:13]OFD Sender: No OFD packet to send [03:20:18]OFD Sender: No OFD packet to send [03:20:23]OFD Sender: No OFD packet to send [03:20:28]OFD Sender: No OFD packet to send [03:20:33]OFD Sender: No OFD packet to send [03:20:38]OFD Sender: No OFD packet to send [03:20:43]OFD Sender: No OFD packet to send [03:20:48]OFD Sender: No OFD packet to send [03:20:53]OFD Sender: No OFD packet to send [03:20:58]OFD Sender: No OFD packet to send [03:21:01]recv_with_timeout no data received [03:21:03]OFD Sender: No OFD packet to send [03:21:08]OFD Sender: No OFD packet to send [03:21:13]OFD Sender: No OFD packet to send [03:21:18]OFD Sender: No OFD packet to send [03:21:23]OFD Sender: No OFD packet to send [03:21:28]OFD Sender: No OFD packet to send [03:21:33]OFD Sender: No OFD packet to send [03:21:38]OFD Sender: No OFD packet to send [03:21:43]OFD Sender: No OFD packet to send [03:21:48]OFD Sender: No OFD packet to send [03:21:53]OFD Sender: No OFD packet to send [03:21:58]OFD Sender: No OFD packet to send [03:22:03]OFD Sender: No OFD packet to send [03:22:08]OFD Sender: No OFD packet to send [03:22:13]OFD Sender: No OFD packet to send [03:22:18]OFD Sender: No OFD packet to send [03:22:23]OFD Sender: No OFD packet to send [03:22:28]OFD Sender: No OFD packet to send [03:22:33]OFD Sender: No OFD packet to send [03:22:38]OFD Sender: No OFD packet to send [03:22:43]OFD Sender: No OFD packet to send [03:22:48]OFD Sender: No OFD packet to send [03:22:53]OFD Sender: No OFD packet to send [03:22:58]OFD Sender: No OFD packet to send [03:23:01]recv_with_timeout no data received [03:23:03]OFD Sender: No OFD packet to send [03:23:08]OFD Sender: No OFD packet to send [03:23:13]OFD Sender: No OFD packet to send [03:23:18]OFD Sender: No OFD packet to send [03:23:23]OFD Sender: No OFD packet to send [03:23:28]OFD Sender: No OFD packet to send [03:23:33]OFD Sender: No OFD packet to send [03:23:38]OFD Sender: No OFD packet to send [03:23:43]OFD Sender: No OFD packet to send [03:23:48]OFD Sender: No OFD packet to send [03:23:53]OFD Sender: No OFD packet to send [03:23:58]OFD Sender: No OFD packet to send [03:23:59]recv_with_timeout no data received [03:24:03]OFD Sender: No OFD packet to send [03:24:08]OFD Sender: No OFD packet to send [03:24:13]OFD Sender: No OFD packet to send [03:24:18]OFD Sender: No OFD packet to send [03:24:23]OFD Sender: No OFD packet to send [03:24:28]OFD Sender: No OFD packet to send [03:24:33]OFD Sender: No OFD packet to send [03:24:38]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:45]recv_with_timeout no data received [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:28]recv_with_timeout no data received [03:26:33]OFD Sender: No OFD packet to send [03:26:38]OFD Sender: No OFD packet to send [03:26:39]recv_with_timeout no data received [03:26:43]OFD Sender: No OFD packet to send [03:26:48]OFD Sender: No OFD packet to send [03:26:53]OFD Sender: No OFD packet to send [03:26:58]OFD Sender: No OFD packet to send [03:27:03]OFD Sender: No OFD packet to send [03:27:08]OFD Sender: No OFD packet to send [03:27:13]OFD Sender: No OFD packet to send [03:27:18]recv_with_timeout no data received [03:27:18]OFD Sender: No OFD packet to send [03:27:23]OFD Sender: No OFD packet to send [03:27:28]OFD Sender: No OFD packet to send [03:27:29]recv_with_timeout no data received [03:27:33]OFD Sender: No OFD packet to send [03:27:39]OFD Sender: No OFD packet to send [03:27:44]OFD Sender: No OFD packet to send [03:27:49]OFD Sender: No OFD packet to send [03:27:54]OFD Sender: No OFD packet to send [03:27:59]OFD Sender: No OFD packet to send [03:28:04]OFD Sender: No OFD packet to send [03:28:09]OFD Sender: No OFD packet to send [03:28:13]recv_with_timeout no data received [03:28:14]OFD Sender: No OFD packet to send [03:28:19]OFD Sender: No OFD packet to send [03:28:24]OFD Sender: No OFD packet to send [03:28:29]OFD Sender: No OFD packet to send [03:28:32]recv_with_timeout no data received [03:28:34]OFD Sender: No OFD packet to send [03:28:39]OFD Sender: No OFD packet to send [03:28:44]OFD Sender: No OFD packet to send [03:28:49]OFD Sender: No OFD packet to send [03:28:50]recv_with_timeout no data received [03:28:54]OFD Sender: No OFD packet to send [03:28:59]OFD Sender: No OFD packet to send [03:29:01]recv_with_timeout no data received [03:29:04]OFD Sender: No OFD packet to send [03:29:09]OFD Sender: No OFD packet to send [03:29:14]OFD Sender: No OFD packet to send [03:29:19]OFD Sender: No OFD packet to send [03:29:24]OFD Sender: No OFD packet to send [03:29:29]OFD Sender: No OFD packet to send [03:29:34]OFD Sender: No OFD packet to send [03:29:39]OFD Sender: No OFD packet to send [03:29:44]OFD Sender: No OFD packet to send [03:29:49]OFD Sender: No OFD packet to send [03:29:54]OFD Sender: No OFD packet to send [03:29:59]OFD Sender: No OFD packet to send [03:30:04]OFD Sender: No OFD packet to send [03:30:09]OFD Sender: No OFD packet to send [03:30:14]OFD Sender: No OFD packet to send [03:30:18]recv_with_timeout no data received [03:30:19]OFD Sender: No OFD packet to send [03:30:24]OFD Sender: No OFD packet to send [03:30:29]OFD Sender: No OFD packet to send [03:30:34]OFD Sender: No OFD packet to send [03:30:39]OFD Sender: No OFD packet to send [03:30:44]OFD Sender: No OFD packet to send [03:30:49]OFD Sender: No OFD packet to send [03:30:54]OFD Sender: No OFD packet to send [03:30:59]OFD Sender: No OFD packet to send [03:31:01]recv_with_timeout no data received [03:31:04]OFD Sender: No OFD packet to send [03:31:09]OFD Sender: No OFD packet to send [03:31:14]OFD Sender: No OFD packet to send [03:31:19]OFD Sender: No OFD packet to send [03:31:24]OFD Sender: No OFD packet to send [03:31:27]recv_with_timeout no data received [03:31:29]OFD Sender: No OFD packet to send [03:31:34]OFD Sender: No OFD packet to send [03:31:39]OFD Sender: No OFD packet to send [03:31:44]OFD Sender: No OFD packet to send [03:31:46]recv_with_timeout no data received [03:31:49]OFD Sender: No OFD packet to send [03:31:54]OFD Sender: No OFD packet to send [03:31:59]OFD Sender: No OFD packet to send [03:32:04]OFD Sender: No OFD packet to send [03:32:09]OFD Sender: No OFD packet to send [03:32:14]OFD Sender: No OFD packet to send [03:32:18]recv_with_timeout no data received [03:32:19]OFD Sender: No OFD packet to send [03:32:24]OFD Sender: No OFD packet to send [03:32:29]OFD Sender: No OFD packet to send [03:32:34]OFD Sender: No OFD packet to send [03:32:39]OFD Sender: No OFD packet to send [03:32:44]OFD Sender: No OFD packet to send [03:32:49]OFD Sender: No OFD packet to send [03:32:54]OFD Sender: No OFD packet to send [03:32:59]OFD Sender: No OFD packet to send [03:33:04]OFD Sender: No OFD packet to send [03:33:09]OFD Sender: No OFD packet to send [03:33:14]OFD Sender: No OFD packet to send [03:33:19]OFD Sender: No OFD packet to send [03:33:19]recv_with_timeout no data received [03:33:24]OFD Sender: No OFD packet to send [03:33:29]OFD Sender: No OFD packet to send [03:33:34]OFD Sender: No OFD packet to send [03:33:39]OFD Sender: No OFD packet to send [03:33:44]OFD Sender: No OFD packet to send [03:33:49]OFD Sender: No OFD packet to send [03:33:54]OFD Sender: No OFD packet to send [03:33:59]OFD Sender: No OFD packet to send [03:34:04]OFD Sender: No OFD packet to send [03:34:09]OFD Sender: No OFD packet to send [03:34:14]OFD Sender: No OFD packet to send [03:34:19]OFD Sender: No OFD packet to send [03:34:24]OFD Sender: No OFD packet to send [03:34:29]OFD Sender: No OFD packet to send [03:34:34]OFD Sender: No OFD packet to send [03:34:39]OFD Sender: No OFD packet to send [03:34:44]OFD Sender: No OFD packet to send [03:34:49]OFD Sender: No OFD packet to send [03:34:54]OFD Sender: No OFD packet to send [03:34:59]OFD Sender: No OFD packet to send [03:35:04]OFD Sender: No OFD packet to send [03:35:09]OFD Sender: No OFD packet to send [03:35:14]OFD Sender: No OFD packet to send [03:35:19]OFD Sender: No OFD packet to send [03:35:24]OFD Sender: No OFD packet to send [03:35:29]OFD Sender: No OFD packet to send [03:35:34]OFD Sender: No OFD packet to send [03:35:39]OFD Sender: No OFD packet to send [03:35:44]OFD Sender: No OFD packet to send [03:35:49]OFD Sender: No OFD packet to send [03:35:54]OFD Sender: No OFD packet to send [03:35:59]OFD Sender: No OFD packet to send [03:36:04]OFD Sender: No OFD packet to send [03:36:09]OFD Sender: No OFD packet to send [03:36:14]OFD Sender: No OFD packet to send [03:36:19]OFD Sender: No OFD packet to send [03:36:24]OFD Sender: No OFD packet to send [03:36:29]OFD Sender: No OFD packet to send [03:36:31]recv_with_timeout no data received [03:36:34]OFD Sender: No OFD packet to send [03:36:39]OFD Sender: No OFD packet to send [03:36:41]recv_with_timeout no data received [03:36:44]OFD Sender: No OFD packet to send [03:36:49]OFD Sender: No OFD packet to send [03:36:54]OFD Sender: No OFD packet to send [03:36:59]OFD Sender: No OFD packet to send [03:37:04]OFD Sender: No OFD packet to send [03:37:09]OFD Sender: No OFD packet to send [03:37:11]recv_with_timeout no data received [03:37:14]OFD Sender: No OFD packet to send [03:37:19]OFD Sender: No OFD packet to send [03:37:24]OFD Sender: No OFD packet to send [03:37:30]OFD Sender: No OFD packet to send [03:37:35]OFD Sender: No OFD packet to send [03:37:40]OFD Sender: No OFD packet to send [03:37:45]OFD Sender: No OFD packet to send [03:37:50]OFD Sender: No OFD packet to send [03:37:55]OFD Sender: No OFD packet to send [03:37:55]recv_with_timeout no data received [03:38:00]OFD Sender: No OFD packet to send [03:38:05]OFD Sender: No OFD packet to send [03:38:10]OFD Sender: No OFD packet to send [03:38:15]OFD Sender: No OFD packet to send [03:38:20]OFD Sender: No OFD packet to send [03:38:25]OFD Sender: No OFD packet to send [03:38:30]OFD Sender: No OFD packet to send [03:38:35]OFD Sender: No OFD packet to send [03:38:40]OFD Sender: No OFD packet to send [03:38:45]OFD Sender: No OFD packet to send [03:38:50]OFD Sender: No OFD packet to send [03:38:55]OFD Sender: No OFD packet to send [03:39:00]OFD Sender: No OFD packet to send [03:39:05]OFD Sender: No OFD packet to send [03:39:10]OFD Sender: No OFD packet to send [03:39:15]OFD Sender: No OFD packet to send [03:39:20]OFD Sender: No OFD packet to send [03:39:25]OFD Sender: No OFD packet to send [03:39:28]recv_with_timeout no data received [03:39:30]OFD Sender: No OFD packet to send [03:39:35]OFD Sender: No OFD packet to send [03:39:40]OFD Sender: No OFD packet to send [03:39:45]OFD Sender: No OFD packet to send [03:39:50]OFD Sender: No OFD packet to send [03:39:55]OFD Sender: No OFD packet to send [03:40:00]recv_with_timeout no data received [03:40:00]OFD Sender: No OFD packet to send [03:40:05]OFD Sender: No OFD packet to send [03:40:10]OFD Sender: No OFD packet to send [03:40:15]OFD Sender: No OFD packet to send [03:40:20]OFD Sender: No OFD packet to send [03:40:25]OFD Sender: No OFD packet to send [03:40:30]OFD Sender: No OFD packet to send [03:40:35]OFD Sender: No OFD packet to send [03:40:40]OFD Sender: No OFD packet to send [03:40:45]OFD Sender: No OFD packet to send [03:40:46]recv_with_timeout no data received [03:40:50]OFD Sender: No OFD packet to send [03:40:55]OFD Sender: No OFD packet to send [03:41:00]OFD Sender: No OFD packet to send [03:41:05]OFD Sender: No OFD packet to send [03:41:10]OFD Sender: No OFD packet to send [03:41:11]recv_with_timeout no data received [03:41:15]OFD Sender: No OFD packet to send [03:41:20]OFD Sender: No OFD packet to send [03:41:25]OFD Sender: No OFD packet to send [03:41:30]OFD Sender: No OFD packet to send [03:41:35]OFD Sender: No OFD packet to send [03:41:40]OFD Sender: No OFD packet to send [03:41:45]OFD Sender: No OFD packet to send [03:41:50]OFD Sender: No OFD packet to send [03:41:55]OFD Sender: No OFD packet to send [03:42:00]OFD Sender: No OFD packet to send [03:42:05]OFD Sender: No OFD packet to send [03:42:10]OFD Sender: No OFD packet to send [03:42:15]OFD Sender: No OFD packet to send [03:42:16]recv_with_timeout no data received [03:42:20]OFD Sender: No OFD packet to send [03:42:25]OFD Sender: No OFD packet to send [03:42:30]OFD Sender: No OFD packet to send [03:42:35]OFD Sender: No OFD packet to send [03:42:40]OFD Sender: No OFD packet to send [03:42:45]OFD Sender: No OFD packet to send [03:42:50]OFD Sender: No OFD packet to send [03:42:53]recv_with_timeout no data received [03:42:55]OFD Sender: No OFD packet to send [03:43:00]OFD Sender: No OFD packet to send [03:43:05]OFD Sender: No OFD packet to send [03:43:10]OFD Sender: No OFD packet to send [03:43:15]OFD Sender: No OFD packet to send [03:43:20]OFD Sender: No OFD packet to send [03:43:25]OFD Sender: No OFD packet to send [03:43:29]recv_with_timeout no data received [03:43:30]OFD Sender: No OFD packet to send [03:43:35]OFD Sender: No OFD packet to send [03:43:40]OFD Sender: No OFD packet to send [03:43:45]OFD Sender: No OFD packet to send [03:43:50]OFD Sender: No OFD packet to send [03:43:55]OFD Sender: No OFD packet to send [03:44:00]OFD Sender: No OFD packet to send [03:44:03]recv_with_timeout no data received [03:44:05]OFD Sender: No OFD packet to send [03:44:10]OFD Sender: No OFD packet to send [03:44:15]OFD Sender: No OFD packet to send [03:44:20]OFD Sender: No OFD packet to send [03:44:25]OFD Sender: No OFD packet to send [03:44:30]OFD Sender: No OFD packet to send [03:44:35]OFD Sender: No OFD packet to send [03:44:40]OFD Sender: No OFD packet to send [03:44:45]OFD Sender: No OFD packet to send [03:44:50]OFD Sender: No OFD packet to send [03:44:55]OFD Sender: No OFD packet to send [03:45:00]OFD Sender: No OFD packet to send [03:45:05]OFD Sender: No OFD packet to send [03:45:10]OFD Sender: No OFD packet to send [03:45:15]OFD Sender: No OFD packet to send [03:45:20]OFD Sender: No OFD packet to send [03:45:25]OFD Sender: No OFD packet to send [03:45:30]OFD Sender: No OFD packet to send [03:45:35]OFD Sender: No OFD packet to send [03:45:40]OFD Sender: No OFD packet to send [03:45:45]OFD Sender: No OFD packet to send [03:45:50]OFD Sender: No OFD packet to send [03:45:55]OFD Sender: No OFD packet to send [03:46:00]OFD Sender: No OFD packet to send [03:46:05]OFD Sender: No OFD packet to send [03:46:10]OFD Sender: No OFD packet to send [03:46:13]recv_with_timeout no data received [03:46:15]OFD Sender: No OFD packet to send [03:46:20]OFD Sender: No OFD packet to send [03:46:25]OFD Sender: No OFD packet to send [03:46:30]OFD Sender: No OFD packet to send [03:46:35]OFD Sender: No OFD packet to send [03:46:40]OFD Sender: No OFD packet to send [03:46:45]OFD Sender: No OFD packet to send [03:46:50]OFD Sender: No OFD packet to send [03:46:55]OFD Sender: No OFD packet to send [03:47:00]OFD Sender: No OFD packet to send [03:47:01]recv_with_timeout no data received [03:47:05]OFD Sender: No OFD packet to send [03:47:10]OFD Sender: No OFD packet to send [03:47:15]OFD Sender: No OFD packet to send [03:47:21]OFD Sender: No OFD packet to send [03:47:26]OFD Sender: No OFD packet to send [03:47:31]OFD Sender: No OFD packet to send [03:47:36]OFD Sender: No OFD packet to send [03:47:41]OFD Sender: No OFD packet to send [03:47:46]OFD Sender: No OFD packet to send [03:47:51]OFD Sender: No OFD packet to send [03:47:56]OFD Sender: No OFD packet to send [03:48:01]OFD Sender: No OFD packet to send [03:48:06]OFD Sender: No OFD packet to send [03:48:11]OFD Sender: No OFD packet to send [03:48:16]OFD Sender: No OFD packet to send [03:48:21]OFD Sender: No OFD packet to send [03:48:26]OFD Sender: No OFD packet to send [03:48:31]OFD Sender: No OFD packet to send [03:48:36]OFD Sender: No OFD packet to send [03:48:41]OFD Sender: No OFD packet to send [03:48:46]OFD Sender: No OFD packet to send [03:48:51]OFD Sender: No OFD packet to send [03:48:56]OFD Sender: No OFD packet to send [03:49:01]OFD Sender: No OFD packet to send [03:49:04]recv_with_timeout no data received [03:49:06]OFD Sender: No OFD packet to send [03:49:11]OFD Sender: No OFD packet to send [03:49:16]OFD Sender: No OFD packet to send [03:49:21]OFD Sender: No OFD packet to send [03:49:26]OFD Sender: No OFD packet to send [03:49:31]OFD Sender: No OFD packet to send [03:49:36]OFD Sender: No OFD packet to send [03:49:41]OFD Sender: No OFD packet to send [03:49:46]OFD Sender: No OFD packet to send [03:49:51]OFD Sender: No OFD packet to send [03:49:56]OFD Sender: No OFD packet to send [03:50:01]OFD Sender: No OFD packet to send [03:50:06]OFD Sender: No OFD packet to send [03:50:11]OFD Sender: No OFD packet to send [03:50:16]OFD Sender: No OFD packet to send [03:50:21]OFD Sender: No OFD packet to send [03:50:26]OFD Sender: No OFD packet to send [03:50:31]OFD Sender: No OFD packet to send [03:50:36]OFD Sender: No OFD packet to send [03:50:41]OFD Sender: No OFD packet to send [03:50:46]OFD Sender: No OFD packet to send [03:50:51]OFD Sender: No OFD packet to send [03:50:56]OFD Sender: No OFD packet to send [03:51:01]OFD Sender: No OFD packet to send [03:51:06]OFD Sender: No OFD packet to send [03:51:11]OFD Sender: No OFD packet to send [03:51:16]OFD Sender: No OFD packet to send [03:51:21]OFD Sender: No OFD packet to send [03:51:26]OFD Sender: No OFD packet to send [03:51:31]OFD Sender: No OFD packet to send [03:51:36]OFD Sender: No OFD packet to send [03:51:41]OFD Sender: No OFD packet to send [03:51:46]OFD Sender: No OFD packet to send [03:51:51]OFD Sender: No OFD packet to send [03:51:56]OFD Sender: No OFD packet to send [03:52:01]OFD Sender: No OFD packet to send [03:52:06]OFD Sender: No OFD packet to send [03:52:11]OFD Sender: No OFD packet to send [03:52:16]OFD Sender: No OFD packet to send [03:52:21]OFD Sender: No OFD packet to send [03:52:26]OFD Sender: No OFD packet to send [03:52:31]OFD Sender: No OFD packet to send [03:52:36]OFD Sender: No OFD packet to send [03:52:41]OFD Sender: No OFD packet to send [03:52:46]OFD Sender: No OFD packet to send [03:52:51]OFD Sender: No OFD packet to send [03:52:56]OFD Sender: No OFD packet to send [03:53:01]OFD Sender: No OFD packet to send [03:53:06]OFD Sender: No OFD packet to send [03:53:11]OFD Sender: No OFD packet to send [03:53:16]OFD Sender: No OFD packet to send [03:53:18]recv_with_timeout no data received [03:53:21]OFD Sender: No OFD packet to send [03:53:26]OFD Sender: No OFD packet to send [03:53:31]OFD Sender: No OFD packet to send [03:53:36]OFD Sender: No OFD packet to send [03:53:41]OFD Sender: No OFD packet to send [03:53:46]OFD Sender: No OFD packet to send [03:53:51]OFD Sender: No OFD packet to send [03:53:56]OFD Sender: No OFD packet to send [03:54:01]OFD Sender: No OFD packet to send [03:54:06]OFD Sender: No OFD packet to send [03:54:11]OFD Sender: No OFD packet to send [03:54:16]OFD Sender: No OFD packet to send [03:54:21]OFD Sender: No OFD packet to send [03:54:26]OFD Sender: No OFD packet to send [03:54:31]OFD Sender: No OFD packet to send [03:54:36]OFD Sender: No OFD packet to send [03:54:41]recv_with_timeout no data received [03:54:41]OFD Sender: No OFD packet to send [03:54:46]OFD Sender: No OFD packet to send [03:54:51]OFD Sender: No OFD packet to send [03:54:56]OFD Sender: No OFD packet to send [03:55:01]OFD Sender: No OFD packet to send [03:55:06]recv_with_timeout no data received [03:55:06]OFD Sender: No OFD packet to send [03:55:11]OFD Sender: No OFD packet to send [03:55:16]OFD Sender: No OFD packet to send [03:55:21]OFD Sender: No OFD packet to send [03:55:26]OFD Sender: No OFD packet to send [03:55:31]OFD Sender: No OFD packet to send [03:55:36]OFD Sender: No OFD packet to send [03:55:41]OFD Sender: No OFD packet to send [03:55:46]OFD Sender: No OFD packet to send [03:55:51]OFD Sender: No OFD packet to send [03:55:56]OFD Sender: No OFD packet to send [03:56:01]OFD Sender: No OFD packet to send [03:56:06]recv_with_timeout no data received [03:56:06]OFD Sender: No OFD packet to send [03:56:11]OFD Sender: No OFD packet to send [03:56:16]OFD Sender: No OFD packet to send [03:56:21]OFD Sender: No OFD packet to send [03:56:26]OFD Sender: No OFD packet to send [03:56:31]OFD Sender: No OFD packet to send [03:56:36]OFD Sender: No OFD packet to send [03:56:41]OFD Sender: No OFD packet to send [03:56:46]OFD Sender: No OFD packet to send [03:56:51]OFD Sender: No OFD packet to send [03:56:56]OFD Sender: No OFD packet to send [03:57:02]OFD Sender: No OFD packet to send [03:57:07]OFD Sender: No OFD packet to send [03:57:07]recv_with_timeout no data received [03:57:12]OFD Sender: No OFD packet to send [03:57:17]OFD Sender: No OFD packet to send [03:57:22]OFD Sender: No OFD packet to send [03:57:27]OFD Sender: No OFD packet to send [03:57:28]recv_with_timeout no data received [03:57:32]OFD Sender: No OFD packet to send [03:57:37]OFD Sender: No OFD packet to send [03:57:42]OFD Sender: No OFD packet to send [03:57:47]OFD Sender: No OFD packet to send [03:57:52]OFD Sender: No OFD packet to send [03:57:57]OFD Sender: No OFD packet to send [03:58:02]OFD Sender: No OFD packet to send [03:58:07]OFD Sender: No OFD packet to send [03:58:12]OFD Sender: No OFD packet to send [03:58:17]OFD Sender: No OFD packet to send [03:58:22]OFD Sender: No OFD packet to send [03:58:27]OFD Sender: No OFD packet to send [03:58:32]OFD Sender: No OFD packet to send [03:58:37]OFD Sender: No OFD packet to send [03:58:42]OFD Sender: No OFD packet to send [03:58:47]OFD Sender: No OFD packet to send [03:58:52]OFD Sender: No OFD packet to send [03:58:57]OFD Sender: No OFD packet to send [03:59:02]OFD Sender: No OFD packet to send [03:59:07]OFD Sender: No OFD packet to send [03:59:12]OFD Sender: No OFD packet to send [03:59:17]OFD Sender: No OFD packet to send [03:59:22]OFD Sender: No OFD packet to send [03:59:27]OFD Sender: No OFD packet to send [03:59:29]recv_with_timeout no data received [03:59:32]OFD Sender: No OFD packet to send [03:59:37]OFD Sender: No OFD packet to send [03:59:42]OFD Sender: No OFD packet to send [03:59:46]recv_with_timeout no data received [03:59:47]OFD Sender: No OFD packet to send [03:59:52]OFD Sender: No OFD packet to send [03:59:57]recv_with_timeout no data received [03:59:57]OFD Sender: No OFD packet to send [04:00:02]OFD Sender: No OFD packet to send [04:00:07]OFD Sender: No OFD packet to send [04:00:12]OFD Sender: No OFD packet to send [04:00:17]OFD Sender: No OFD packet to send [04:00:19]recv_with_timeout no data received [04:00:22]OFD Sender: No OFD packet to send [04:00:27]OFD Sender: No OFD packet to send [04:00:32]OFD Sender: No OFD packet to send [04:00:37]OFD Sender: No OFD packet to send [04:00:42]OFD Sender: No OFD packet to send [04:00:47]OFD Sender: No OFD packet to send [04:00:52]OFD Sender: No OFD packet to send [04:00:57]OFD Sender: No OFD packet to send [04:01:02]OFD Sender: No OFD packet to send [04:01:07]OFD Sender: No OFD packet to send [04:01:12]OFD Sender: No OFD packet to send [04:01:17]OFD Sender: No OFD packet to send [04:01:22]OFD Sender: No OFD packet to send [04:01:27]OFD Sender: No OFD packet to send [04:01:32]OFD Sender: No OFD packet to send [04:01:37]OFD Sender: No OFD packet to send [04:01:41]recv_with_timeout no data received [04:01:42]OFD Sender: No OFD packet to send [04:01:47]OFD Sender: No OFD packet to send [04:01:52]OFD Sender: No OFD packet to send [04:01:57]OFD Sender: No OFD packet to send [04:02:02]OFD Sender: No OFD packet to send [04:02:07]OFD Sender: No OFD packet to send [04:02:12]recv_with_timeout no data received [04:02:12]OFD Sender: No OFD packet to send [04:02:17]OFD Sender: No OFD packet to send [04:02:22]OFD Sender: No OFD packet to send [04:02:27]OFD Sender: No OFD packet to send [04:02:32]OFD Sender: No OFD packet to send [04:02:37]OFD Sender: No OFD packet to send [04:02:42]OFD Sender: No OFD packet to send [04:02:47]OFD Sender: No OFD packet to send [04:02:52]OFD Sender: No OFD packet to send [04:02:57]OFD Sender: No OFD packet to send [04:03:02]OFD Sender: No OFD packet to send [04:03:07]OFD Sender: No OFD packet to send [04:03:12]OFD Sender: No OFD packet to send [04:03:17]OFD Sender: No OFD packet to send [04:03:22]OFD Sender: No OFD packet to send [04:03:27]OFD Sender: No OFD packet to send [04:03:32]OFD Sender: No OFD packet to send [04:03:37]OFD Sender: No OFD packet to send [04:03:41]recv_with_timeout no data received [04:03:42]OFD Sender: No OFD packet to send [04:03:47]OFD Sender: No OFD packet to send [04:03:52]OFD Sender: No OFD packet to send [04:03:57]OFD Sender: No OFD packet to send [04:03:58]recv_with_timeout no data received [04:04:02]OFD Sender: No OFD packet to send [04:04:07]OFD Sender: No OFD packet to send [04:04:22]OFD Sender: No OFD packet to send [04:04:27]OFD Sender: No OFD packet to send [04:04:32]OFD Sender: No OFD packet to send [04:04:37]OFD Sender: No OFD packet to send [04:04:42]OFD Sender: No OFD packet to send [04:04:47]OFD Sender: No OFD packet to send [04:04:52]OFD Sender: No OFD packet to send [04:04:57]OFD Sender: No OFD packet to send [04:05:02]OFD Sender: No OFD packet to send [04:05:07]OFD Sender: No OFD packet to send [04:05:12]OFD Sender: No OFD packet to send [04:05:17]OFD Sender: No OFD packet to send [04:05:22]OFD Sender: No OFD packet to send [04:05:27]OFD Sender: No OFD packet to send [04:05:32]OFD Sender: No OFD packet to send [04:05:37]OFD Sender: No OFD packet to send [04:05:42]OFD Sender: No OFD packet to send [04:05:47]OFD Sender: No OFD packet to send [04:05:52]OFD Sender: No OFD packet to send [04:05:57]OFD Sender: No OFD packet to send [04:06:02]OFD Sender: No OFD packet to send [04:06:07]OFD Sender: No OFD packet to send [04:06:12]OFD Sender: No OFD packet to send [04:06:17]OFD Sender: No OFD packet to send [04:06:22]OFD Sender: No OFD packet to send [04:06:27]OFD Sender: No OFD packet to send [04:06:31]ConnectInit Can't connect to host [04:06:32]OFD Sender: No OFD packet to send [04:06:37]OFD Sender: No OFD packet to send [04:06:42]OFD Sender: No OFD packet to send [04:06:48]OFD Sender: No OFD packet to send [04:06:53]OFD Sender: No OFD packet to send [04:06:58]OFD Sender: No OFD packet to send [04:06:58]recv_with_timeout no data received [04:07:03]OFD Sender: No OFD packet to send [04:07:08]OFD Sender: No OFD packet to send [04:07:13]OFD Sender: No OFD packet to send [04:07:18]OFD Sender: No OFD packet to send [04:07:23]OFD Sender: No OFD packet to send [04:07:28]OFD Sender: No OFD packet to send [04:07:33]OFD Sender: No OFD packet to send [04:07:38]OFD Sender: No OFD packet to send [04:07:43]OFD Sender: No OFD packet to send [04:07:48]OFD Sender: No OFD packet to send [04:07:53]OFD Sender: No OFD packet to send [04:07:58]OFD Sender: No OFD packet to send [04:08:03]OFD Sender: No OFD packet to send [04:08:08]OFD Sender: No OFD packet to send [04:08:13]OFD Sender: No OFD packet to send [04:08:18]OFD Sender: No OFD packet to send [04:08:23]OFD Sender: No OFD packet to send [04:08:28]OFD Sender: No OFD packet to send [04:08:33]OFD Sender: No OFD packet to send [04:08:38]OFD Sender: No OFD packet to send [04:08:43]OFD Sender: No OFD packet to send [04:08:48]OFD Sender: No OFD packet to send [04:08:53]OFD Sender: No OFD packet to send [04:08:58]OFD Sender: No OFD packet to send [04:09:03]OFD Sender: No OFD packet to send [04:09:08]OFD Sender: No OFD packet to send [04:09:13]OFD Sender: No OFD packet to send [04:09:18]OFD Sender: No OFD packet to send [04:09:23]OFD Sender: No OFD packet to send [04:09:28]OFD Sender: No OFD packet to send [04:09:33]OFD Sender: No OFD packet to send [04:09:38]OFD Sender: No OFD packet to send [04:09:43]OFD Sender: No OFD packet to send [04:09:48]OFD Sender: No OFD packet to send [04:09:53]OFD Sender: No OFD packet to send [04:09:58]OFD Sender: No OFD packet to send [04:10:03]OFD Sender: No OFD packet to send [04:10:05]accept exits with 7 [04:10:05]New connection [04:10:05]New thread 3066932580 created [04:10:05]Thread 3066789220 joined [04:10:05]Waiting for new connection... [04:10:05] Sock 7.Parse request [04:10:05]Sock 7.Check first char [04:10:05]Sock 7.First char is OK [04:10:05]request: POST /json_proto HTTP/1.0 [04:10:05]Method: POST [04:10:05]URL: /json_proto [04:10:05]Method is POST - this is cgi request [04:10:05]url: /json_proto [04:10:05]query_string will be loaded in cgi processing [04:10:05]execute_cgi json_proto POST (null) [04:10:05]execute_cgi path=json_proto method=POST [04:10:05]POST find Content-Length [04:10:05]Host: 172.17.43.195:8080 [04:10:05]Content-Length: 682 [04:10:05]Content-Type: application/json [04:10:05] [04:10:05]POST finish read [04:10:05]Found Content-Length = 682 [04:10:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:10:05]execute_script... [04:10: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)952747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:10:05]POST & json_proto [04:10:05]process_json_proto [04:10:05]json parsed OK: [04:10:05]protocol is kg_v1.0 [04:10:05]action value=close_receipt [04:10:05]process_action close_receipt [04:10:05]cmd_close_receipt [04:10:05]MH_GetDate [04:10:05]Write to MH i2c: F0 00 00 C8 01 B8 [04:10:05]Write i2c OK [04:10:05]MH_I2C_Read... [04:10:05]Read from MH i2c: F0 [04:10:05]MH_I2C_Read... [04:10:05]Read from MH i2c: F0 09 00 [04:10:05]MH_I2C_Read... [04:10:05]Read from MH i2c: F0 09 00 C8 01 00 9E 54 24 67 74 2C AD 66 F1 [04:10:05]GetLastDocTimeStamp 1730430604 [04:10:05]current date 1730434206 [04:10:05]FM_GetShiftState [04:10:05]SAM_PROTO_GetShiftState [04:10:05]wFMCommunicate request_size=4 [04:10:05]MH_SAM_APDU [04:10:05]CAPDU: 80 13 01 00 [04:10:05]Write to MH i2c: E2 08 00 C9 01 80 13 01 00 00 00 00 00 47 [04:10:05]Write i2c OK [04:10:05]MH_I2C_Read... [04:10:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:10:05]Read from MH i2c: E2 [04:10:05]MH_I2C_Read... [04:10:05]Read from MH i2c: E2 0E 00 [04:10:05]MH_I2C_Read... [04:10:05]Read from MH i2c: E2 0E 00 C9 01 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 8E [04:10:05]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [04:10:05]wFMCommunicate OK [04:10:05]SAM_PROTO_GetShiftState done [04:10:05]FM_GetShiftState done [04:10:05]opened in 1730419605 [04:10:05]opened+sec_in_day 1730506005 [04:10:05]quantity*price = 100015 [04:10:05]sum+1 = 100017 [04:10:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 17 01.11.2024 04:10 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73148 ФПД: 16872312465729 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T041006&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73148&fm=16872312465729&tin=02508201610067®Number=0000000000091644&sum=100000 [04:10:06]StoreToDocumentArchive [04:10:06]shift 558 fd 73148 [04:10:06]save to /storage/0558/doc_00073148 [04:10:06]save last doc name /storage/0558/doc_00073148 to /storage/kkm_last_doc_name [04:10:06]save OK [04:10:06]Clear old archive folders... [04:10:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:10:06]tlvbuf is 00215970 [04:10:06]SAM_PROTO_ClearQueue [04:10:06]wFMCommunicate request_size=4 [04:10:06]MH_SAM_APDU [04:10:06]CAPDU: 80 09 00 00 [04:10:06]Write to MH i2c: E2 08 00 D6 01 80 09 00 00 00 00 00 00 49 [04:10:06]Write i2c OK [04:10:06]MH_I2C_Read... [04:10:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:10:06]Read from MH i2c: E2 [04:10:06]MH_I2C_Read... [04:10:06]Read from MH i2c: E2 03 00 [04:10:06]MH_I2C_Read... [04:10:06]Read from MH i2c: E2 03 00 D6 01 00 90 00 4B [04:10:06]RAPDU: 90 00 [04:10:06]wFMCommunicate OK [04:10:06]SAM_PROTO_ClearQueue done [04:10:06]KKMCreateOFDPacket [04:10:06]OFDProtocolAddRootSTLVToBuf [04:10:06]FM_MakeSignedData [04:10:06]FM_MakeSignedData [04:10:06]SAM_PROTO_SignData [04:10:06]wFMCommunicate request_size=4 [04:10:06]MH_SAM_APDU [04:10:06]CAPDU: 80 0D 01 02 [04:10:06]Write to MH i2c: E2 08 00 D7 01 80 0D 01 02 00 00 00 00 51 [04:10:06]Write i2c OK [04:10:06]MH_I2C_Read... [04:10:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:10:06]Read from MH i2c: E2 [04:10:06]MH_I2C_Read... [04:10:06]Read from MH i2c: E2 03 00 [04:10:06]MH_I2C_Read... [04:10:06]Read from MH i2c: E2 03 00 D7 01 00 90 00 4C [04:10:06]RAPDU: 90 00 [04:10:06]wFMCommunicate OK [04:10:06]wFMCommunicate request_size=255 [04:10:06]MH_SAM_APDU [04:10:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 9E 54 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BC 1D 01 00 35 04 06 00 0F [04:10:06]Write to MH i2c: E2 02 01 D8 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 9E 54 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BC 1D 01 00 35 04 06 00 0F 00 00 81 [04:10:06]Write i2c OK [04:10:06]MH_I2C_Read... [04:10:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:10:06]Read from MH i2c: E2 [04:10:06]MH_I2C_Read... [04:10:06]Read from MH i2c: E2 03 00 [04:10:06]MH_I2C_Read... [04:10:06]Read from MH i2c: E2 03 00 D8 01 00 90 00 4D [04:10:06]RAPDU: 90 00 [04:10:06]wFMCommunicate OK [04:10:06]wFMCommunicate request_size=10 [04:10:06]MH_SAM_APDU [04:10:06]CAPDU: 80 0D 02 02 05 58 64 30 E9 41 [04:10:06]Write to MH i2c: E2 0D 00 D9 01 80 0D 02 02 05 00 58 64 30 E9 41 00 00 74 [04:10:06]Write i2c OK [04:10:06]MH_I2C_Read... [04:10:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:10:06]Read from MH i2c: E2 [04:10:06]MH_I2C_Read... [04:10:06]Read from MH i2c: E2 03 00 [04:10:06]MH_I2C_Read... [04:10:06]Read from MH i2c: E2 03 00 D9 01 00 90 00 4E [04:10:06]RAPDU: 90 00 [04:10:06]wFMCommunicate OK [04:10:06]wFMCommunicate request_size=4 [04:10:06]MH_SAM_APDU [04:10:06]CAPDU: 80 0D 03 02 [04:10:06]Write to MH i2c: E2 08 00 DA 01 80 0D 03 02 00 00 00 00 56 [04:10:06]Write i2c OK [04:10:06]MH_I2C_Read... [04:10:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:10:06]Read from MH i2c: E2 [04:10:06]MH_I2C_Read... [04:10:06]Read from MH i2c: E2 0B 00 [04:10:06]MH_I2C_Read... [04:10:06]Read from MH i2c: E2 0B 00 DA 01 00 CB 9F 11 D9 BD EB 43 EB 90 00 81 [04:10:06]RAPDU: CB 9F 11 D9 BD EB 43 EB 90 00 [04:10:06]wFMCommunicate OK [04:10:06]SAM_PROTO_SignData done [04:10:06]FM_MakeSignedData done [04:10:06]CreateOFDProtocolMessage [04:10:06]wFMCommunicate request_size=4 [04:10:06]MH_SAM_APDU [04:10:06]CAPDU: 80 11 00 00 [04:10:06]Write to MH i2c: E2 08 00 DB 01 80 11 00 00 00 00 00 00 56 [04:10:06]Write i2c OK [04:10:06]MH_I2C_Read... [04:10:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:10:06]Read from MH i2c: E2 [04:10:06]MH_I2C_Read... [04:10:06]Read from MH i2c: E2 17 00 [04:10:06]MH_I2C_Read... [04:10:06]Read from MH i2c: E2 17 00 DB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 AA [04:10:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [04:10:06]wFMCommunicate OK [04:10:06]CreateOFDProtocolMessage done [04:10:06]OFDSenderStorePacket 73148 [04:10:06]StoreOFDPacket docnum=73148 [04:10:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 41 78 07 01 B9 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 9E 54 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BC 1D 01 00 35 04 06 00 0F 58 64 30 E9 41 CB 9F 11 D9 BD EB 43 EB [04:10:06]CheckFolder [04:10:06]dirname=/storage/ofd_packets [04:10:06]CheckFolder done [04:10:06]ProducePacketName [04:10:06]name=ofd_packets/00073148 [04:10:06]NVStorageSaveData ofd_packets/00073148 [04:10:06]File name is /storage/ofd_packets/00073148 [04:10:06]Write 301 bytes [04:10:06]NVStorageSaveData done [04:10:06]OFDSenderStorePacket done [04:10:06]KKMCreateOFDPacket done [04:10:06]NVStorageSaveData kkm_last_timestamp [04:10:06]File name is /storage/kkm_last_timestamp [04:10:06]Write 4 bytes [04:10:06]NVStorageSaveData done [04:10:06]ExternCall_PrintAddStr [04:10:06]wPrintStart [04:10:06]Write to MH i2c: 01 00 00 DC 01 DD [04:10:06]Write i2c OK [04:10:06]MH_I2C_Read... [04:10:06]Read from MH i2c: 01 [04:10:06]MH_I2C_Read... [04:10:06]Read from MH i2c: 01 07 00 [04:10:06]MH_I2C_Read... [04:10:06]Read from MH i2c: 01 07 00 DC 01 00 00 00 00 00 FF 0F F2 [04:10:06]RasterBufferAndPrint [04:10:06]line Счет N : (1)952747 [04:10:06]line ИНН: 02508201610067 [04:10:06]line Контрольно-Кассовый Чек [04:10:06]line ПРОДАЖА [04:10:06]line ТРК (МРК, ГНК) : 53 [04:10:06]line Товар: 2710124130 [04:10:06]line Аи-92-К-5 [04:10:06]line 14.950 * 66.90 [04:10:06]line = 1000.16 [04:10:06]line НДС 12% НСП 1% [04:10:06]line > о реализуемом товаре [04:10:06]line ОКРУГЛЕНИЕ: -0.16 [04:10:06]line ИТОГО: 1000.00 [04:10:06]line Внесено: 1000.00 [04:10:06]line СДАЧА: 0.00 [04:10:06]line НСП 1% : 8.85 [04:10:06]line НДС 12% : 106.21 [04:10:06]line Наличными: 1000.00 [04:10:06]line Безнал.: 0.00 [04:10:06]line Место: АЗС № 113 "Партнер Нефть" [04:10:06]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [04:10:06]line СНО: Общий режим [04:10:06]line Чек 17 01.11.2024 04:10 [04:10:06]line Смена: 558 ФФД: 1.0 [04:10:06]line ЗНМ: 0300000087 [04:10:06]line РНМ: 0000000000091644 [04:10:06]line Версия ККМ: 001 [04:10:06]line ФМ: 0000000000874662 [04:10:06]line ФД: 73148 [04:10:06]line ФПД: 16872312465729 [04:10:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T041006&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73148&fm=16872312465729&tin=02508201610067®Number=0000000000091644&sum=100000 [04:10:07]OFD Sender: Processing packet 73148 [packets to send 282, broken 281] [04:10:07]ProducePacketName [04:10:07]name=ofd_packets/00073148 [04:10:07]OFD Sender: To server: pG, [04:10:07]CommunicateWithHost lk.salyk.kg:30040 [04:10:07]ConnectInit lk.salyk.kg [04:10:07]written 0, free lines is 4095 [04:10:07]Write to MH i2c: 01 00 00 07 02 09 [04:10:07]Write i2c OK [04:10:07]MH_I2C_Read... [04:10:07]Read from MH i2c: 01 [04:10:07]MH_I2C_Read... [04:10:07]Read from MH i2c: 01 07 00 [04:10:07]MH_I2C_Read... [04:10:07]Read from MH i2c: 01 07 00 07 02 00 00 00 00 00 D4 0C F0 [04:10:07]RasterBufferAndPrint [04:10:07]line [04:10:07]line [04:10:07]line [04:10:07]line [04:10:07]line [04:10:07]written 0, free lines is 3289 [04:10:07]MH_Cut [04:10:07]Write to MH i2c: D1 01 00 0E 02 01 E2 [04:10:07]Write i2c OK [04:10:07]MH_I2C_Read... [04:10:07]Read from MH i2c: D1 [04:10:07]MH_I2C_Read... [04:10:07]Read from MH i2c: D1 01 00 [04:10:07]MH_I2C_Read... [04:10:07]Read from MH i2c: D1 01 00 0E 02 00 E1 [04:10:07]Write to MH i2c: 01 00 00 0F 02 11 [04:10:07]Write i2c OK [04:10:07]MH_I2C_Read... [04:10:08]Connected sock=11 [04:10:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 41 78 07 01 B9 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 9E 54 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BC 1D 01 00 35 04 06 00 0F 58 64 30 E9 41 CB 9F 11 D9 BD EB 43 EB [04:10:08]*** Cut start [04:10:08]*** Partial cut [04:10:08]*** CUTSNS_PIN = 1 [04:10:08]*** CUTSNS_PIN = 0 [04:10:08]*** Brake cut motor [04:10:09]Read from MH i2c: 01 [04:10:09]MH_I2C_Read... [04:10:09]*** Stop cut motor [04:10:09]*** Cut end [04:10:09]Read from MH i2c: 01 07 00 [04:10:09]MH_I2C_Read... [04:10:09]Read from MH i2c: 01 07 00 0F 02 00 00 00 00 00 FF 0F 26 [04:10:09]process_action close_receipt done [04:10:09]requested_data is exist [04:10:09]produce_requested_data [04:10:09]requested_item fm.sn is exist - process it [04:10:09]wFMCommunicate request_size=4 [04:10:09]MH_SAM_APDU [04:10:09]CAPDU: 80 11 00 00 [04:10:09]Write to MH i2c: E2 08 00 10 02 80 11 00 00 00 00 00 00 8C [04:10:09]Write i2c OK [04:10:09]MH_I2C_Read... [04:10:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:10:09]Read from MH i2c: E2 [04:10:09]MH_I2C_Read... [04:10:09]Read from MH i2c: E2 17 00 [04:10:09]MH_I2C_Read... [04:10:09]Read from MH i2c: E2 17 00 10 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 E0 [04:10:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [04:10:09]wFMCommunicate OK [04:10:09]requested_item fd.num is exist - process it [04:10:09]SAM_PROTO_GetFieldsCounters [04:10:09]wFMCommunicate request_size=4 [04:10:09]MH_SAM_APDU [04:10:09]CAPDU: 80 13 00 00 [04:10:09]Write to MH i2c: E2 08 00 11 02 80 13 00 00 00 00 00 00 8F [04:10:09]Write i2c OK [04:10:09]MH_I2C_Read... [04:10:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:10:09]Read from MH i2c: E2 [04:10:09]MH_I2C_Read... [04:10:09]Read from MH i2c: E2 62 00 [04:10:09]MH_I2C_Read... [04:10:09]Read from MH i2c: E2 62 00 11 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 BC 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [04:10:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 BC 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:10:09]wFMCommunicate OK [04:10:09]SAM_PROTO_GetFieldsCounters done [04:10:09]requested_item shift.num is exist - process it [04:10:09]requested_item shift.opened is exist - process it [04:10:09]req_shift_opened [04:10:09]FM_GetShiftState [04:10:09]SAM_PROTO_GetShiftState [04:10:09]wFMCommunicate request_size=4 [04:10:09]MH_SAM_APDU [04:10:09]CAPDU: 80 13 01 00 [04:10:09]Write to MH i2c: E2 08 00 12 02 80 13 01 00 00 00 00 00 91 [04:10:09]Write i2c OK [04:10:09]MH_I2C_Read... [04:10:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 A7 40 47 00 FD F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BC 1D 01 00 F4 03 04 00 53 FF 23 67 B6 04 01 00 00 0A 38 49 4D 0C 9A 95 DD [04:10:09]CommunicateWithHost err = 0 [04:10:09]CheckOFDResponse [04:10:09]1017 (14) - 77093643461234 [04:10:09]1041 (16) - 0000000000874662 [04:10:09]1040 (4) - 73148 [04:10:09]1012 (4) - 31.10.2024 22:06 [04:10:09]1206 (1) - 0 [04:10:09]OFD Sender: Remove packet 73148 [04:10:09]ProducePacketName [04:10:09]name=ofd_packets/00073148 [04:10:09]NVStorageDeleteData [04:10:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:10:09]Read from MH i2c: E2 [04:10:09]MH_I2C_Read... [04:10:09]Read from MH i2c: E2 0E 00 [04:10:09]MH_I2C_Read... [04:10:09]Read from MH i2c: E2 0E 00 12 02 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 D8 [04:10:09]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [04:10:09]wFMCommunicate OK [04:10:09]SAM_PROTO_GetShiftState done [04:10:09]FM_GetShiftState done [04:10:09]req_shift_opened done [04:10:09]requested_item shift.open_date is exist - process it [04:10:09]req_shift_open_date [04:10:09]req_shift_open_date done [04:10:09]produce_requested_data done [04:10:09]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73148,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [04:10:09]process_action_free close_receipt [04:10:09]json_value_free [04:10:09]json_value_free done [04:10:09]process_json_proto returns [04:10:09]Send response to host [04:10:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73148,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [04:10:09]free response buf [04:10:09]execute_script done [04:10:09]execute_script returns [04:10:09]free content buf [04:10:09]Sock 7.Close socket [04:10:09]Sock 7.Thread stoped [04:10:09]OFD Sender: No OFD packet to send [04:10:14]OFD Sender: No OFD packet to send [04:10:19]OFD Sender: No OFD packet to send [04:10:24]OFD Sender: No OFD packet to send [04:10:29]OFD Sender: No OFD packet to send [04:10:34]OFD Sender: No OFD packet to send [04:10:39]OFD Sender: No OFD packet to send [04:10:44]recv_with_timeout no data received [04:10:44]OFD Sender: No OFD packet to send [04:10:49]OFD Sender: No OFD packet to send [04:10:54]OFD Sender: No OFD packet to send [04:10:59]OFD Sender: No OFD packet to send [04:11:02]recv_with_timeout no data received [04:11:04]OFD Sender: No OFD packet to send [04:11:09]OFD Sender: No OFD packet to send [04:11:14]OFD Sender: No OFD packet to send [04:11:19]OFD Sender: No OFD packet to send [04:11:24]OFD Sender: No OFD packet to send [04:11:29]OFD Sender: No OFD packet to send [04:11:30]recv_with_timeout no data received [04:11:34]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:37]recv_with_timeout no data received [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:03]recv_with_timeout no data received [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:54]recv_with_timeout no data received [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:11]recv_with_timeout no data received [04:14:15]OFD Sender: No OFD packet to send [04:14:20]OFD Sender: No OFD packet to send [04:14:25]OFD Sender: No OFD packet to send [04:14:28]recv_with_timeout no data received [04:14:30]OFD Sender: No OFD packet to send [04:14:35]OFD Sender: No OFD packet to send [04:14:40]OFD Sender: No OFD packet to send [04:14:45]OFD Sender: No OFD packet to send [04:14:49]recv_with_timeout no data received [04:14:50]OFD Sender: No OFD packet to send [04:14:55]OFD Sender: No OFD packet to send [04:14:59]recv_with_timeout no data received [04:15:00]OFD Sender: No OFD packet to send [04:15:05]OFD Sender: No OFD packet to send [04:15:10]OFD Sender: No OFD packet to send [04:15:11]recv_with_timeout no data received [04:15:15]OFD Sender: No OFD packet to send [04:15:20]OFD Sender: No OFD packet to send [04:15:25]OFD Sender: No OFD packet to send [04:15:28]recv_with_timeout no data received [04:15:30]OFD Sender: No OFD packet to send [04:15:35]OFD Sender: No OFD packet to send [04:15:38]recv_with_timeout no data received [04:15:40]OFD Sender: No OFD packet to send [04:15:45]OFD Sender: No OFD packet to send [04:15:49]recv_with_timeout no data received [04:15:50]OFD Sender: No OFD packet to send [04:15:55]OFD Sender: No OFD packet to send [04:16:00]OFD Sender: No OFD packet to send [04:16:05]OFD Sender: No OFD packet to send [04:16:10]OFD Sender: No OFD packet to send [04:16:15]OFD Sender: No OFD packet to send [04:16:20]OFD Sender: No OFD packet to send [04:16:23]recv_with_timeout no data received [04:16:25]OFD Sender: No OFD packet to send [04:16:30]OFD Sender: No OFD packet to send [04:16:35]OFD Sender: No OFD packet to send [04:16:40]OFD Sender: No OFD packet to send [04:16:45]OFD Sender: No OFD packet to send [04:16:50]OFD Sender: No OFD packet to send [04:16:55]OFD Sender: No OFD packet to send [04:17:00]recv_with_timeout no data received [04:17:00]OFD Sender: No OFD packet to send [04:17:05]OFD Sender: No OFD packet to send [04:17:10]OFD Sender: No OFD packet to send [04:17:10]recv_with_timeout no data received [04:17:15]OFD Sender: No OFD packet to send [04:17:20]OFD Sender: No OFD packet to send [04:17:25]OFD Sender: No OFD packet to send [04:17:30]OFD Sender: No OFD packet to send [04:17:35]OFD Sender: No OFD packet to send [04:17:40]OFD Sender: No OFD packet to send [04:17:45]OFD Sender: No OFD packet to send [04:17:50]OFD Sender: No OFD packet to send [04:17:55]OFD Sender: No OFD packet to send [04:17:58]recv_with_timeout no data received [04:18:00]OFD Sender: No OFD packet to send [04:18:05]OFD Sender: No OFD packet to send [04:18:10]OFD Sender: No OFD packet to send [04:18:15]OFD Sender: No OFD packet to send [04:18:20]OFD Sender: No OFD packet to send [04:18:25]OFD Sender: No OFD packet to send [04:18:29]recv_with_timeout no data received [04:18:30]OFD Sender: No OFD packet to send [04:18:35]OFD Sender: No OFD packet to send [04:18:40]recv_with_timeout no data received [04:18:40]OFD Sender: No OFD packet to send [04:18:45]OFD Sender: No OFD packet to send [04:18:50]OFD Sender: No OFD packet to send [04:18:55]OFD Sender: No OFD packet to send [04:19:00]OFD Sender: No OFD packet to send [04:19:05]OFD Sender: No OFD packet to send [04:19:10]OFD Sender: No OFD packet to send [04:19:15]OFD Sender: No OFD packet to send [04:19:20]OFD Sender: No OFD packet to send [04:19:25]OFD Sender: No OFD packet to send [04:19:30]OFD Sender: No OFD packet to send [04:19:35]OFD Sender: No OFD packet to send [04:19:40]OFD Sender: No OFD packet to send [04:19:45]OFD Sender: No OFD packet to send [04:19:50]OFD Sender: No OFD packet to send [04:19:55]OFD Sender: No OFD packet to send [04:20:00]OFD Sender: No OFD packet to send [04:20:05]OFD Sender: No OFD packet to send [04:20:10]OFD Sender: No OFD packet to send [04:20:15]OFD Sender: No OFD packet to send [04:20:18]recv_with_timeout no data received [04:20:20]OFD Sender: No OFD packet to send [04:20:25]OFD Sender: No OFD packet to send [04:20:30]OFD Sender: No OFD packet to send [04:20:35]OFD Sender: No OFD packet to send [04:20:40]OFD Sender: No OFD packet to send [04:20:45]OFD Sender: No OFD packet to send [04:20:50]OFD Sender: No OFD packet to send [04:20:55]OFD Sender: No OFD packet to send [04:21:00]recv_with_timeout no data received [04:21:00]OFD Sender: No OFD packet to send [04:21:05]OFD Sender: No OFD packet to send [04:21:10]OFD Sender: No OFD packet to send [04:21:15]OFD Sender: No OFD packet to send [04:21:20]OFD Sender: No OFD packet to send [04:21:25]OFD Sender: No OFD packet to send [04:21: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:47]recv_with_timeout no data received [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:28]recv_with_timeout no data received [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:04]accept exits with 10 [04:23:04]New connection [04:23:04]New thread 3066789220 created [04:23:04]Thread 3066932580 joined [04:23:04]Waiting for new connection... [04:23:04] Sock 10.Parse request [04:23:04]Sock 10.Check first char [04:23:04]Sock 10.First char is OK [04:23:04]request: POST /json_proto HTTP/1.0 [04:23:04]Method: POST [04:23:04]URL: /json_proto [04:23:04]Method is POST - this is cgi request [04:23:04]url: /json_proto [04:23:04]query_string will be loaded in cgi processing [04:23:04]execute_cgi json_proto POST (null) [04:23:04]execute_cgi path=json_proto method=POST [04:23:04]POST find Content-Length [04:23:04]Host: 172.17.43.195:8080 [04:23:04]Content-Length: 687 [04:23:04]Content-Type: application/json [04:23:04] [04:23:04]POST finish read [04:23:04]Found Content-Length = 687 [04:23:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:23:04]execute_script... [04:23: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)952748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:23:04]POST & json_proto [04:23:04]process_json_proto [04:23:04]json parsed OK: [04:23:04]protocol is kg_v1.0 [04:23:04]action value=close_receipt [04:23:04]process_action close_receipt [04:23:04]cmd_close_receipt [04:23:04]MH_GetDate [04:23:04]Write to MH i2c: F0 00 00 13 02 04 [04:23:04]Write i2c OK [04:23:04]MH_I2C_Read... [04:23:04]Read from MH i2c: F0 [04:23:04]MH_I2C_Read... [04:23:04]Read from MH i2c: F0 09 00 [04:23:04]MH_I2C_Read... [04:23:04]Read from MH i2c: F0 09 00 13 02 00 AA 57 24 67 74 2C AD 66 4C [04:23:04]GetLastDocTimeStamp 1730434206 [04:23:04]current date 1730434986 [04:23:04]FM_GetShiftState [04:23:04]SAM_PROTO_GetShiftState [04:23:04]wFMCommunicate request_size=4 [04:23:04]MH_SAM_APDU [04:23:04]CAPDU: 80 13 01 00 [04:23:04]Write to MH i2c: E2 08 00 14 02 80 13 01 00 00 00 00 00 93 [04:23:04]Write i2c OK [04:23:04]MH_I2C_Read... [04:23:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:23:04]Read from MH i2c: E2 [04:23:04]MH_I2C_Read... [04:23:04]Read from MH i2c: E2 0E 00 [04:23:04]MH_I2C_Read... [04:23:04]Read from MH i2c: E2 0E 00 14 02 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 DA [04:23:04]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [04:23:04]wFMCommunicate OK [04:23:04]SAM_PROTO_GetShiftState done [04:23:04]FM_GetShiftState done [04:23:04]opened in 1730419605 [04:23:04]opened+sec_in_day 1730506005 [04:23:04]quantity*price = 300075 [04:23:04]sum+1 = 300077 [04:23:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 18 01.11.2024 04:23 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73149 ФПД: 40386377910024 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T042306&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73149&fm=40386377910024&tin=02508201610067®Number=0000000000091644&sum=300000 [04:23:05]StoreToDocumentArchive [04:23:05]shift 558 fd 73149 [04:23:05]save to /storage/0558/doc_00073149 [04:23:05]save last doc name /storage/0558/doc_00073149 to /storage/kkm_last_doc_name [04:23:05]save OK [04:23:05]Clear old archive folders... [04:23:05]ProcessDocumentItem done err = 0, tmpTLVsize=252 [04:23:05]tlvbuf is 00219260 [04:23:05]SAM_PROTO_ClearQueue [04:23:05]wFMCommunicate request_size=4 [04:23:05]MH_SAM_APDU [04:23:05]CAPDU: 80 09 00 00 [04:23:05]Write to MH i2c: E2 08 00 21 02 80 09 00 00 00 00 00 00 95 [04:23:05]Write i2c OK [04:23:05]MH_I2C_Read... [04:23:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:23:05]Read from MH i2c: E2 [04:23:05]MH_I2C_Read... [04:23:05]Read from MH i2c: E2 03 00 [04:23:05]MH_I2C_Read... [04:23:05]Read from MH i2c: E2 03 00 21 02 00 90 00 97 [04:23:05]RAPDU: 90 00 [04:23:05]wFMCommunicate OK [04:23:05]SAM_PROTO_ClearQueue done [04:23:05]KKMCreateOFDPacket [04:23:05]OFDProtocolAddRootSTLVToBuf [04:23:05]FM_MakeSignedData [04:23:05]FM_MakeSignedData [04:23:05]SAM_PROTO_SignData [04:23:05]wFMCommunicate request_size=4 [04:23:05]MH_SAM_APDU [04:23:05]CAPDU: 80 0D 01 02 [04:23:05]Write to MH i2c: E2 08 00 22 02 80 0D 01 02 00 00 00 00 9D [04:23:05]Write i2c OK [04:23:05]MH_I2C_Read... [04:23:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:23:05]Read from MH i2c: E2 [04:23:05]MH_I2C_Read... [04:23:05]Read from MH i2c: E2 03 00 [04:23:05]MH_I2C_Read... [04:23:05]Read from MH i2c: E2 03 00 22 02 00 90 00 98 [04:23:05]RAPDU: 90 00 [04:23:05]wFMCommunicate OK [04:23:05]wFMCommunicate request_size=255 [04:23:05]MH_SAM_APDU [04:23:05]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 AA 57 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BD 1D 01 00 35 04 06 00 [04:23:05]Write to MH i2c: E2 02 01 23 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 AA 57 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BD 1D 01 00 35 04 06 00 00 00 EA [04:23:05]Write i2c OK [04:23:05]MH_I2C_Read... [04:23:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:23:06]OFD Sender: No OFD packet to send [04:23:06]Read from MH i2c: E2 [04:23:06]MH_I2C_Read... [04:23:06]Read from MH i2c: E2 03 00 [04:23:06]MH_I2C_Read... [04:23:06]Read from MH i2c: E2 03 00 23 02 00 90 00 99 [04:23:06]RAPDU: 90 00 [04:23:06]wFMCommunicate OK [04:23:06]wFMCommunicate request_size=11 [04:23:06]MH_SAM_APDU [04:23:06]CAPDU: 80 0D 02 02 06 24 BB 2F B5 87 08 [04:23:06]Write to MH i2c: E2 0E 00 24 02 80 0D 02 02 06 00 24 BB 2F B5 87 08 00 00 FE [04:23:06]Write i2c OK [04:23:06]MH_I2C_Read... [04:23:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:23:06]Read from MH i2c: E2 [04:23:06]MH_I2C_Read... [04:23:06]Read from MH i2c: E2 03 00 [04:23:06]MH_I2C_Read... [04:23:06]Read from MH i2c: E2 03 00 24 02 00 90 00 9A [04:23:06]RAPDU: 90 00 [04:23:06]wFMCommunicate OK [04:23:06]wFMCommunicate request_size=4 [04:23:06]MH_SAM_APDU [04:23:06]CAPDU: 80 0D 03 02 [04:23:06]Write to MH i2c: E2 08 00 25 02 80 0D 03 02 00 00 00 00 A2 [04:23:06]Write i2c OK [04:23:06]MH_I2C_Read... [04:23:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:23:06]Read from MH i2c: E2 [04:23:06]MH_I2C_Read... [04:23:06]Read from MH i2c: E2 0B 00 [04:23:06]MH_I2C_Read... [04:23:06]Read from MH i2c: E2 0B 00 25 02 00 70 7D 46 8C 46 AE FB C6 90 00 17 [04:23:06]RAPDU: 70 7D 46 8C 46 AE FB C6 90 00 [04:23:06]wFMCommunicate OK [04:23:06]SAM_PROTO_SignData done [04:23:06]FM_MakeSignedData done [04:23:06]CreateOFDProtocolMessage [04:23:06]wFMCommunicate request_size=4 [04:23:06]MH_SAM_APDU [04:23:06]CAPDU: 80 11 00 00 [04:23:06]Write to MH i2c: E2 08 00 26 02 80 11 00 00 00 00 00 00 A2 [04:23:06]Write i2c OK [04:23:06]MH_I2C_Read... [04:23:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:23:06]Read from MH i2c: E2 [04:23:06]MH_I2C_Read... [04:23:06]Read from MH i2c: E2 17 00 [04:23:06]MH_I2C_Read... [04:23:06]Read from MH i2c: E2 17 00 26 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 F6 [04:23:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [04:23:06]wFMCommunicate OK [04:23:06]CreateOFDProtocolMessage done [04:23:06]OFDSenderStorePacket 73149 [04:23:06]StoreOFDPacket docnum=73149 [04:23:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 BC 1E 08 01 D5 B2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 AA 57 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BD 1D 01 00 35 04 06 00 24 BB 2F B5 87 08 70 7D 46 8C 46 AE FB C6 [04:23:06]CheckFolder [04:23:06]dirname=/storage/ofd_packets [04:23:06]CheckFolder done [04:23:06]ProducePacketName [04:23:06]name=ofd_packets/00073149 [04:23:06]NVStorageSaveData ofd_packets/00073149 [04:23:06]File name is /storage/ofd_packets/00073149 [04:23:06]Write 302 bytes [04:23:06]NVStorageSaveData done [04:23:06]OFDSenderStorePacket done [04:23:06]KKMCreateOFDPacket done [04:23:06]NVStorageSaveData kkm_last_timestamp [04:23:06]File name is /storage/kkm_last_timestamp [04:23:06]Write 4 bytes [04:23:06]NVStorageSaveData done [04:23:06]ExternCall_PrintAddStr [04:23:06]wPrintStart [04:23:06]Write to MH i2c: 01 00 00 27 02 29 [04:23:06]Write i2c OK [04:23:06]MH_I2C_Read... [04:23:06]Read from MH i2c: 01 [04:23:06]MH_I2C_Read... [04:23:06]Read from MH i2c: 01 07 00 [04:23:06]MH_I2C_Read... [04:23:06]Read from MH i2c: 01 07 00 27 02 00 00 00 00 00 FF 0F 3E [04:23:06]RasterBufferAndPrint [04:23:06]line Счет N : (1)952748 [04:23:06]line ИНН: 02508201610067 [04:23:06]line Контрольно-Кассовый Чек [04:23:06]line ПРОДАЖА [04:23:06]line ТРК (МРК, ГНК) : 22 [04:23:06]line Товар: 2710194210 [04:23:06]line ДТ(л)-К-5 [04:23:06]line 39.380 * 76.20 [04:23:06]line = 3000.76 [04:23:06]line НДС 12% НСП 1% [04:23:06]line > о реализуемом товаре [04:23:06]line ОКРУГЛЕНИЕ: -0.76 [04:23:06]line ИТОГО: 3000.00 [04:23:06]line Внесено: 3000.00 [04:23:06]line СДАЧА: 0.00 [04:23:06]line НСП 1% : 26.55 [04:23:06]line НДС 12% : 318.66 [04:23:06]line Наличными: 3000.00 [04:23:06]line Безнал.: 0.00 [04:23:06]line Место: АЗС № 113 "Партнер Нефть" [04:23:06]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [04:23:06]line СНО: Общий режим [04:23:06]line Чек 18 01.11.2024 04:23 [04:23:06]line Смена: 558 ФФД: 1.0 [04:23:06]line ЗНМ: 0300000087 [04:23:06]line РНМ: 0000000000091644 [04:23:06]line Версия ККМ: 001 [04:23:06]line ФМ: 0000000000874662 [04:23:06]line ФД: 73149 [04:23:06]line ФПД: 40386377910024 [04:23:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T042306&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73149&fm=40386377910024&tin=02508201610067®Number=0000000000091644&sum=300000 [04:23:06]OFD Sender: Processing packet 73149 [packets to send 282, broken 281] [04:23:06]ProducePacketName [04:23:06]name=ofd_packets/00073149 [04:23:06]OFD Sender: To server: pG, [04:23:06]CommunicateWithHost lk.salyk.kg:30040 [04:23:06]ConnectInit lk.salyk.kg [04:23:06]written 0, free lines is 4095 [04:23:07]Write to MH i2c: 01 00 00 52 02 54 [04:23:07]Write i2c OK [04:23:07]MH_I2C_Read... [04:23:07]Read from MH i2c: 01 [04:23:07]MH_I2C_Read... [04:23:07]Read from MH i2c: 01 07 00 [04:23:07]MH_I2C_Read... [04:23:07]Read from MH i2c: 01 07 00 52 02 00 00 00 00 00 E0 0C 47 [04:23:07]RasterBufferAndPrint [04:23:07]line [04:23:07]line [04:23:07]line [04:23:07]line [04:23:07]line [04:23:07]written 0, free lines is 3302 [04:23:07]MH_Cut [04:23:07]Write to MH i2c: D1 01 00 59 02 01 2D [04:23:07]Write i2c OK [04:23:07]MH_I2C_Read... [04:23:07]Read from MH i2c: D1 [04:23:07]MH_I2C_Read... [04:23:07]Read from MH i2c: D1 01 00 [04:23:07]MH_I2C_Read... [04:23:07]Read from MH i2c: D1 01 00 59 02 00 2C [04:23:07]Write to MH i2c: 01 00 00 5A 02 5C [04:23:07]Write i2c OK [04:23:07]MH_I2C_Read... [04:23:07]*** Cut start [04:23:07]*** Partial cut [04:23:07]*** CUTSNS_PIN = 1 [04:23:07]Connected sock=11 [04:23:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 BC 1E 08 01 D5 B2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 AA 57 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BD 1D 01 00 35 04 06 00 24 BB 2F B5 87 08 70 7D 46 8C 46 AE FB C6 [04:23:07]*** CUTSNS_PIN = 0 [04:23:08]*** Brake cut motor [04:23:08]Read from MH i2c: 01 [04:23:08]MH_I2C_Read... [04:23:08]*** Stop cut motor [04:23:08]Read from MH i2c: 01 07 00 [04:23:08]MH_I2C_Read... [04:23:08]*** Cut end [04:23:08]Read from MH i2c: 01 07 00 5A 02 00 00 00 00 00 FF 0F 71 [04:23:08]process_action close_receipt done [04:23:08]requested_data is exist [04:23:08]produce_requested_data [04:23:08]requested_item fm.sn is exist - process it [04:23:08]wFMCommunicate request_size=4 [04:23:08]MH_SAM_APDU [04:23:08]CAPDU: 80 11 00 00 [04:23:08]Write to MH i2c: E2 08 00 5B 02 80 11 00 00 00 00 00 00 D7 [04:23:08]Write i2c OK [04:23:08]MH_I2C_Read... [04:23:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:23:08]Read from MH i2c: E2 [04:23:08]MH_I2C_Read... [04:23:08]Read from MH i2c: E2 17 00 [04:23:08]MH_I2C_Read... [04:23:08]Read from MH i2c: E2 17 00 5B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 2B [04:23:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [04:23:08]wFMCommunicate OK [04:23:08]requested_item fd.num is exist - process it [04:23:08]SAM_PROTO_GetFieldsCounters [04:23:08]wFMCommunicate request_size=4 [04:23:08]MH_SAM_APDU [04:23:08]CAPDU: 80 13 00 00 [04:23:08]Write to MH i2c: E2 08 00 5C 02 80 13 00 00 00 00 00 00 DA [04:23:08]Write i2c OK [04:23:08]MH_I2C_Read... [04:23:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 75 CE 47 00 4F 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BD 1D 01 00 F4 03 04 00 5F 02 24 67 B6 04 01 00 00 1F 53 DD 49 9F D3 43 C3 [04:23:08]CommunicateWithHost err = 0 [04:23:08]CheckOFDResponse [04:23:08]1017 (14) - 77093643461234 [04:23:08]1041 (16) - 0000000000874662 [04:23:08]1040 (4) - 73149 [04:23:08]1012 (4) - 31.10.2024 22:19 [04:23:08]1206 (1) - 0 [04:23:08]OFD Sender: Remove packet 73149 [04:23:08]ProducePacketName [04:23:08]name=ofd_packets/00073149 [04:23:08]NVStorageDeleteData [04:23:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:23:08]Read from MH i2c: E2 [04:23:08]MH_I2C_Read... [04:23:08]Read from MH i2c: E2 62 00 [04:23:08]MH_I2C_Read... [04:23:08]Read from MH i2c: E2 62 00 5C 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 BD 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [04:23:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 BD 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:23:08]wFMCommunicate OK [04:23:08]SAM_PROTO_GetFieldsCounters done [04:23:08]requested_item shift.num is exist - process it [04:23:08]requested_item shift.opened is exist - process it [04:23:08]req_shift_opened [04:23:08]FM_GetShiftState [04:23:08]SAM_PROTO_GetShiftState [04:23:08]wFMCommunicate request_size=4 [04:23:08]MH_SAM_APDU [04:23:08]CAPDU: 80 13 01 00 [04:23:08]Write to MH i2c: E2 08 00 5D 02 80 13 01 00 00 00 00 00 DC [04:23:08]Write i2c OK [04:23:08]MH_I2C_Read... [04:23:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:23:08]Read from MH i2c: E2 [04:23:08]MH_I2C_Read... [04:23:08]Read from MH i2c: E2 0E 00 [04:23:08]MH_I2C_Read... [04:23:08]Read from MH i2c: E2 0E 00 5D 02 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 23 [04:23:08]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [04:23:08]wFMCommunicate OK [04:23:08]SAM_PROTO_GetShiftState done [04:23:08]FM_GetShiftState done [04:23:08]req_shift_opened done [04:23:08]requested_item shift.open_date is exist - process it [04:23:08]req_shift_open_date [04:23:08]req_shift_open_date done [04:23:08]produce_requested_data done [04:23:08]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73149,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [04:23:08]process_action_free close_receipt [04:23:08]json_value_free [04:23:08]json_value_free done [04:23:08]process_json_proto returns [04:23:08]Send response to host [04:23:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73149,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [04:23:08]free response buf [04:23:08]execute_script done [04:23:08]execute_script returns [04:23:08]free content buf [04:23:08]Sock 10.Close socket [04:23:08]Sock 10.Thread stoped [04:23:09]OFD Sender: No OFD packet to send [04:23:14]OFD Sender: No OFD packet to send [04:23:19]OFD Sender: No OFD packet to send [04:23:24]OFD Sender: No OFD packet to send [04:23:29]OFD Sender: No OFD packet to send [04:23:34]OFD Sender: No OFD packet to send [04:23:39]OFD Sender: No OFD packet to send [04:23:44]OFD Sender: No OFD packet to send [04:23:49]OFD Sender: No OFD packet to send [04:23:54]OFD Sender: No OFD packet to send [04:23:59]OFD Sender: No OFD packet to send [04:24:04]OFD Sender: No OFD packet to send [04:24:09]OFD Sender: No OFD packet to send [04:24:14]OFD Sender: No OFD packet to send [04:24:19]OFD Sender: No OFD packet to send [04:24:24]OFD Sender: No OFD packet to send [04:24:28]recv_with_timeout no data received [04:24:29]OFD Sender: No OFD packet to send [04:24:34]OFD Sender: No OFD packet to send [04:24:39]recv_with_timeout no data received [04:24:39]OFD Sender: No OFD packet to send [04:24:44]OFD Sender: No OFD packet to send [04:24:49]OFD Sender: No OFD packet to send [04:24:54]OFD Sender: No OFD packet to send [04:24:59]OFD Sender: No OFD packet to send [04:25:04]OFD Sender: No OFD packet to send [04:25:04]recv_with_timeout no data received [04:25:09]OFD Sender: No OFD packet to send [04:25:14]OFD Sender: No OFD packet to send [04:25:19]OFD Sender: No OFD packet to send [04:25:24]OFD Sender: No OFD packet to send [04:25:29]OFD Sender: No OFD packet to send [04:25:34]OFD Sender: No OFD packet to send [04:25:39]OFD Sender: No OFD packet to send [04:25:44]OFD Sender: No OFD packet to send [04:25:49]OFD Sender: No OFD packet to send [04:25:54]OFD Sender: No OFD packet to send [04:25:59]OFD Sender: No OFD packet to send [04:26:04]OFD Sender: No OFD packet to send [04:26:09]OFD Sender: No OFD packet to send [04:26:14]OFD Sender: No OFD packet to send [04:26:19]OFD Sender: No OFD packet to send [04:26:24]OFD Sender: No OFD packet to send [04:26:29]OFD Sender: No OFD packet to send [04:26:34]OFD Sender: No OFD packet to send [04:26:39]OFD Sender: No OFD packet to send [04:26:44]OFD Sender: No OFD packet to send [04:26:49]OFD Sender: No OFD packet to send [04:26:54]OFD Sender: No OFD packet to send [04:26:58]recv_with_timeout no data received [04:26:59]OFD Sender: No OFD packet to send [04:27:04]OFD Sender: No OFD packet to send [04:27:09]OFD Sender: No OFD packet to send [04:27:14]OFD Sender: No OFD packet to send [04:27:19]OFD Sender: No OFD packet to send [04:27:24]OFD Sender: No OFD packet to send [04:27:29]OFD Sender: No OFD packet to send [04:27:34]OFD Sender: No OFD packet to send [04:27:39]OFD Sender: No OFD packet to send [04:27:44]OFD Sender: No OFD packet to send [04:27:49]OFD Sender: No OFD packet to send [04:27:54]OFD Sender: No OFD packet to send [04:27:59]OFD Sender: No OFD packet to send [04:28:04]OFD Sender: No OFD packet to send [04:28:09]OFD Sender: No OFD packet to send [04:28:14]OFD Sender: No OFD packet to send [04:28:19]OFD Sender: No OFD packet to send [04:28:24]OFD Sender: No OFD packet to send [04:28:28]recv_with_timeout no data received [04:28:29]OFD Sender: No OFD packet to send [04:28:34]OFD Sender: No OFD packet to send [04:28:39]OFD Sender: No OFD packet to send [04:28:44]OFD Sender: No OFD packet to send [04:28:49]OFD Sender: No OFD packet to send [04:28:54]OFD Sender: No OFD packet to send [04:28:59]OFD Sender: No OFD packet to send [04:29:04]OFD Sender: No OFD packet to send [04:29:09]OFD Sender: No OFD packet to send [04:29:14]OFD Sender: No OFD packet to send [04:29:19]OFD Sender: No OFD packet to send [04:29:24]OFD Sender: No OFD packet to send [04:29:29]recv_with_timeout no data received [04:29:29]OFD Sender: No OFD packet to send [04:29:34]OFD Sender: No OFD packet to send [04:29:39]recv_with_timeout no data received [04:29:39]OFD Sender: No OFD packet to send [04:29:44]OFD Sender: No OFD packet to send [04:29:49]OFD Sender: No OFD packet to send [04:29:54]OFD Sender: No OFD packet to send [04:29:59]recv_with_timeout no data received [04:29:59]OFD Sender: No OFD packet to send [04:30:04]OFD Sender: No OFD packet to send [04:30:09]OFD Sender: No OFD packet to send [04:30:14]OFD Sender: No OFD packet to send [04:30:19]OFD Sender: No OFD packet to send [04:30:24]OFD Sender: No OFD packet to send [04:30:29]OFD Sender: No OFD packet to send [04:30:34]OFD Sender: No OFD packet to send [04:30:38]recv_with_timeout no data received [04:30:39]OFD Sender: No OFD packet to send [04:30:44]OFD Sender: No OFD packet to send [04:30:49]OFD Sender: No OFD packet to send [04:30:54]OFD Sender: No OFD packet to send [04:30:59]OFD Sender: No OFD packet to send [04:31:04]OFD Sender: No OFD packet to send [04:31:06]recv_with_timeout no data received [04:31:09]OFD Sender: No OFD packet to send [04:31:14]OFD Sender: No OFD packet to send [04:31:19]OFD Sender: No OFD packet to send [04:31:24]OFD Sender: No OFD packet to send [04:31:29]OFD Sender: No OFD packet to send [04:31:34]OFD Sender: No OFD packet to send [04:31:39]OFD Sender: No OFD packet to send [04:31:44]OFD Sender: No OFD packet to send [04:31:46]recv_with_timeout no data received [04:31:49]OFD Sender: No OFD packet to send [04:31:55]OFD Sender: No OFD packet to send [04:32:00]OFD Sender: No OFD packet to send [04:32:05]OFD Sender: No OFD packet to send [04:32:10]OFD Sender: No OFD packet to send [04:32:15]OFD Sender: No OFD packet to send [04:32:20]OFD Sender: No OFD packet to send [04:32:25]OFD Sender: No OFD packet to send [04:32:30]OFD Sender: No OFD packet to send [04:32:35]OFD Sender: No OFD packet to send [04:32:40]OFD Sender: No OFD packet to send [04:32:45]OFD Sender: No OFD packet to send [04:32:50]OFD Sender: No OFD packet to send [04:32:55]OFD Sender: No OFD packet to send [04:33:00]OFD Sender: No OFD packet to send [04:33:05]OFD Sender: No OFD packet to send [04:33:10]OFD Sender: No OFD packet to send [04:33:15]OFD Sender: No OFD packet to send [04:33:20]OFD Sender: No OFD packet to send [04:33:25]OFD Sender: No OFD packet to send [04:33:30]OFD Sender: No OFD packet to send [04:33:35]OFD Sender: No OFD packet to send [04:33:40]OFD Sender: No OFD packet to send [04:33:45]OFD Sender: No OFD packet to send [04:33:50]OFD Sender: No OFD packet to send [04:33:55]OFD Sender: No OFD packet to send [04:34:00]OFD Sender: No OFD packet to send [04:34:05]OFD Sender: No OFD packet to send [04:34:10]OFD Sender: No OFD packet to send [04:34:15]OFD Sender: No OFD packet to send [04:34:17]recv_with_timeout no data received [04:34:20]OFD Sender: No OFD packet to send [04:34:25]OFD Sender: No OFD packet to send [04:34:30]OFD Sender: No OFD packet to send [04:34:35]OFD Sender: No OFD packet to send [04:34:40]OFD Sender: No OFD packet to send [04:34:45]OFD Sender: No OFD packet to send [04:34:50]OFD Sender: No OFD packet to send [04:34:55]OFD Sender: No OFD packet to send [04:35:00]OFD Sender: No OFD packet to send [04:35:05]OFD Sender: No OFD packet to send [04:35:10]OFD Sender: No OFD packet to send [04:35:15]OFD Sender: No OFD packet to send [04:35:20]OFD Sender: No OFD packet to send [04:35:25]OFD Sender: No OFD packet to send [04:35:30]OFD Sender: No OFD packet to send [04:35:32]recv_with_timeout no data received [04:35:35]OFD Sender: No OFD packet to send [04:35:40]OFD Sender: No OFD packet to send [04:35:45]OFD Sender: No OFD packet to send [04:35:50]OFD Sender: No OFD packet to send [04:35:55]OFD Sender: No OFD packet to send [04:36:00]OFD Sender: No OFD packet to send [04:36:05]OFD Sender: No OFD packet to send [04:36:10]OFD Sender: No OFD packet to send [04:36:15]OFD Sender: No OFD packet to send [04:36:17]recv_with_timeout no data received [04:36:20]OFD Sender: No OFD packet to send [04:36:25]OFD Sender: No OFD packet to send [04:36:30]OFD Sender: No OFD packet to send [04:36:35]OFD Sender: No OFD packet to send [04:36:40]OFD Sender: No OFD packet to send [04:36:45]OFD Sender: No OFD packet to send [04:36:50]OFD Sender: No OFD packet to send [04:36:55]OFD Sender: No OFD packet to send [04:37:00]OFD Sender: No OFD packet to send [04:37:02]recv_with_timeout no data received [04:37:05]OFD Sender: No OFD packet to send [04:37:10]OFD Sender: No OFD packet to send [04:37:15]OFD Sender: No OFD packet to send [04:37:20]OFD Sender: No OFD packet to send [04:37:25]OFD Sender: No OFD packet to send [04:37:30]OFD Sender: No OFD packet to send [04:37:35]OFD Sender: No OFD packet to send [04:37:40]OFD Sender: No OFD packet to send [04:37:45]OFD Sender: No OFD packet to send [04:37:50]recv_with_timeout no data received [04:37:50]OFD Sender: No OFD packet to send [04:37:55]OFD Sender: No OFD packet to send [04:38:00]OFD Sender: No OFD packet to send [04:38:05]OFD Sender: No OFD packet to send [04:38:10]OFD Sender: No OFD packet to send [04:38:15]OFD Sender: No OFD packet to send [04:38:20]OFD Sender: No OFD packet to send [04:38:25]OFD Sender: No OFD packet to send [04:38:30]OFD Sender: No OFD packet to send [04:38:31]recv_with_timeout no data received [04:38:31]accept exits with 9 [04:38:31]New connection [04:38:31]New thread 3066932580 created [04:38:31]Thread 3066789220 joined [04:38:31]Waiting for new connection... [04:38:31] Sock 9.Parse request [04:38:31]Sock 9.Check first char [04:38:31]Sock 9.First char is OK [04:38:31]request: POST /json_proto HTTP/1.0 [04:38:31]Method: POST [04:38:31]URL: /json_proto [04:38:31]Method is POST - this is cgi request [04:38:31]url: /json_proto [04:38:31]query_string will be loaded in cgi processing [04:38:31]execute_cgi json_proto POST (null) [04:38:31]execute_cgi path=json_proto method=POST [04:38:31]POST find Content-Length [04:38:31]Host: 172.17.43.195:8080 [04:38:31]Content-Length: 685 [04:38:31]Content-Type: application/json [04:38:31] [04:38:31]POST finish read [04:38:31]Found Content-Length = 685 [04:38:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 33.420, "sum" : 1300.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:38:31]execute_script... [04:38:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 33.420, "sum" : 1300.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:38:31]POST & json_proto [04:38:31]process_json_proto [04:38:31]json parsed OK: [04:38:31]protocol is kg_v1.0 [04:38:31]action value=close_receipt [04:38:31]process_action close_receipt [04:38:31]cmd_close_receipt [04:38:31]MH_GetDate [04:38:31]Write to MH i2c: F0 00 00 5E 02 4F [04:38:31]Write i2c OK [04:38:31]MH_I2C_Read... [04:38:31]Read from MH i2c: F0 [04:38:31]MH_I2C_Read... [04:38:31]Read from MH i2c: F0 09 00 [04:38:31]MH_I2C_Read... [04:38:31]Read from MH i2c: F0 09 00 5E 02 00 49 5B 24 67 74 2C AD 66 3A [04:38:31]GetLastDocTimeStamp 1730434986 [04:38:31]current date 1730435913 [04:38:31]FM_GetShiftState [04:38:31]SAM_PROTO_GetShiftState [04:38:31]wFMCommunicate request_size=4 [04:38:31]MH_SAM_APDU [04:38:31]CAPDU: 80 13 01 00 [04:38:31]Write to MH i2c: E2 08 00 5F 02 80 13 01 00 00 00 00 00 DE [04:38:31]Write i2c OK [04:38:31]MH_I2C_Read... [04:38:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:38:31]Read from MH i2c: E2 [04:38:31]MH_I2C_Read... [04:38:31]Read from MH i2c: E2 0E 00 [04:38:31]MH_I2C_Read... [04:38:31]Read from MH i2c: E2 0E 00 5F 02 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 25 [04:38:31]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [04:38:31]wFMCommunicate OK [04:38:31]SAM_PROTO_GetShiftState done [04:38:31]FM_GetShiftState done [04:38:31]opened in 1730419605 [04:38:31]opened+sec_in_day 1730506005 [04:38:31]quantity*price = 130003 [04:38:31]sum+1 = 130005 [04:38:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.50 НДС 12% : 138.06 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 19 01.11.2024 04:38 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73150 ФПД: 266593385741409 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T043833&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73150&fm=266593385741409&tin=02508201610067®Number=0000000000091644&sum=130000 [04:38:32]StoreToDocumentArchive [04:38:32]shift 558 fd 73150 [04:38:32]save to /storage/0558/doc_00073150 [04:38:32]save last doc name /storage/0558/doc_00073150 to /storage/kkm_last_doc_name [04:38:32]save OK [04:38:32]Clear old archive folders... [04:38:32]ProcessDocumentItem done err = 0, tmpTLVsize=250 [04:38:32]tlvbuf is 002159E0 [04:38:32]SAM_PROTO_ClearQueue [04:38:32]wFMCommunicate request_size=4 [04:38:32]MH_SAM_APDU [04:38:32]CAPDU: 80 09 00 00 [04:38:32]Write to MH i2c: E2 08 00 6C 02 80 09 00 00 00 00 00 00 E0 [04:38:32]Write i2c OK [04:38:32]MH_I2C_Read... [04:38:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:38:32]Read from MH i2c: E2 [04:38:32]MH_I2C_Read... [04:38:32]Read from MH i2c: E2 03 00 [04:38:32]MH_I2C_Read... [04:38:32]Read from MH i2c: E2 03 00 6C 02 00 90 00 E2 [04:38:32]RAPDU: 90 00 [04:38:32]wFMCommunicate OK [04:38:32]SAM_PROTO_ClearQueue done [04:38:32]KKMCreateOFDPacket [04:38:32]OFDProtocolAddRootSTLVToBuf [04:38:32]FM_MakeSignedData [04:38:32]FM_MakeSignedData [04:38:32]SAM_PROTO_SignData [04:38:32]wFMCommunicate request_size=4 [04:38:32]MH_SAM_APDU [04:38:32]CAPDU: 80 0D 01 02 [04:38:32]Write to MH i2c: E2 08 00 6D 02 80 0D 01 02 00 00 00 00 E8 [04:38:32]Write i2c OK [04:38:32]MH_I2C_Read... [04:38:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:38:32]Read from MH i2c: E2 [04:38:32]MH_I2C_Read... [04:38:32]Read from MH i2c: E2 03 00 [04:38:32]MH_I2C_Read... [04:38:32]Read from MH i2c: E2 03 00 6D 02 00 90 00 E3 [04:38:32]RAPDU: 90 00 [04:38:32]wFMCommunicate OK [04:38:32]wFMCommunicate request_size=255 [04:38:32]MH_SAM_APDU [04:38:32]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 8C 82 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 D4 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 49 5B 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BE 1D 01 00 35 04 06 00 F2 77 [04:38:32]Write to MH i2c: E2 02 01 6E 02 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 8C 82 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 D4 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 49 5B 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BE 1D 01 00 35 04 06 00 F2 77 00 00 AA [04:38:33]Write i2c OK [04:38:33]MH_I2C_Read... [04:38:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:38:33]Read from MH i2c: E2 [04:38:33]MH_I2C_Read... [04:38:33]Read from MH i2c: E2 03 00 [04:38:33]MH_I2C_Read... [04:38:33]Read from MH i2c: E2 03 00 6E 02 00 90 00 E4 [04:38:33]RAPDU: 90 00 [04:38:33]wFMCommunicate OK [04:38:33]wFMCommunicate request_size=9 [04:38:33]MH_SAM_APDU [04:38:33]CAPDU: 80 0D 02 02 04 1C 0E 7C 61 [04:38:33]Write to MH i2c: E2 0C 00 6F 02 80 0D 02 02 04 00 1C 0E 7C 61 00 00 FA [04:38:33]Write i2c OK [04:38:33]MH_I2C_Read... [04:38:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:38:33]Read from MH i2c: E2 [04:38:33]MH_I2C_Read... [04:38:33]Read from MH i2c: E2 03 00 [04:38:33]MH_I2C_Read... [04:38:33]Read from MH i2c: E2 03 00 6F 02 00 90 00 E5 [04:38:33]RAPDU: 90 00 [04:38:33]wFMCommunicate OK [04:38:33]wFMCommunicate request_size=4 [04:38:33]MH_SAM_APDU [04:38:33]CAPDU: 80 0D 03 02 [04:38:33]Write to MH i2c: E2 08 00 70 02 80 0D 03 02 00 00 00 00 ED [04:38:33]Write i2c OK [04:38:33]MH_I2C_Read... [04:38:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:38:33]Read from MH i2c: E2 [04:38:33]MH_I2C_Read... [04:38:33]Read from MH i2c: E2 0B 00 [04:38:33]MH_I2C_Read... [04:38:33]Read from MH i2c: E2 0B 00 70 02 00 5A 1F A6 BE E6 48 E3 0A 90 00 E6 [04:38:33]RAPDU: 5A 1F A6 BE E6 48 E3 0A 90 00 [04:38:33]wFMCommunicate OK [04:38:33]SAM_PROTO_SignData done [04:38:33]FM_MakeSignedData done [04:38:33]CreateOFDProtocolMessage [04:38:33]wFMCommunicate request_size=4 [04:38:33]MH_SAM_APDU [04:38:33]CAPDU: 80 11 00 00 [04:38:33]Write to MH i2c: E2 08 00 71 02 80 11 00 00 00 00 00 00 ED [04:38:33]Write i2c OK [04:38:33]MH_I2C_Read... [04:38:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:38:33]Read from MH i2c: E2 [04:38:33]MH_I2C_Read... [04:38:33]Read from MH i2c: E2 17 00 [04:38:33]MH_I2C_Read... [04:38:33]Read from MH i2c: E2 17 00 71 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 41 [04:38:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [04:38:33]wFMCommunicate OK [04:38:33]CreateOFDProtocolMessage done [04:38:33]OFDSenderStorePacket 73150 [04:38:33]StoreOFDPacket docnum=73150 [04:38:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 50 BC 06 01 BE 92 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 8C 82 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 D4 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 49 5B 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BE 1D 01 00 35 04 06 00 F2 77 1C 0E 7C 61 5A 1F A6 BE E6 48 E3 0A [04:38:33]CheckFolder [04:38:33]dirname=/storage/ofd_packets [04:38:33]CheckFolder done [04:38:33]ProducePacketName [04:38:33]name=ofd_packets/00073150 [04:38:33]NVStorageSaveData ofd_packets/00073150 [04:38:33]File name is /storage/ofd_packets/00073150 [04:38:33]Write 300 bytes [04:38:33]NVStorageSaveData done [04:38:33]OFDSenderStorePacket done [04:38:33]KKMCreateOFDPacket done [04:38:33]NVStorageSaveData kkm_last_timestamp [04:38:33]File name is /storage/kkm_last_timestamp [04:38:33]Write 4 bytes [04:38:33]NVStorageSaveData done [04:38:33]ExternCall_PrintAddStr [04:38:33]wPrintStart [04:38:33]Write to MH i2c: 01 00 00 72 02 74 [04:38:33]Write i2c OK [04:38:33]MH_I2C_Read... [04:38:33]Read from MH i2c: 01 [04:38:33]MH_I2C_Read... [04:38:33]Read from MH i2c: 01 07 00 [04:38:33]MH_I2C_Read... [04:38:33]Read from MH i2c: 01 07 00 72 02 00 00 00 00 00 FF 0F 89 [04:38:33]RasterBufferAndPrint [04:38:33]line Счет N : (1)952749 [04:38:33]line ИНН: 02508201610067 [04:38:33]line Контрольно-Кассовый Чек [04:38:33]line ПРОДАЖА [04:38:33]line ТРК (МРК, ГНК) : 71 [04:38:33]line Товар: 2711190000 [04:38:33]line ГАЗ-К-3 [04:38:33]line 33.420 * 38.90 [04:38:33]line = 1300.04 [04:38:33]line НДС 12% НСП 1% [04:38:33]line > о реализуемом товаре [04:38:33]line ОКРУГЛЕНИЕ: -0.04 [04:38:33]line ИТОГО: 1300.00 [04:38:33]line Внесено: 1300.00 [04:38:33]line СДАЧА: 0.00 [04:38:33]line НСП 1% : 11.50 [04:38:33]line НДС 12% : 138.06 [04:38:33]line Наличными: 1300.00 [04:38:33]line Безнал.: 0.00 [04:38:33]line Место: АЗС № 113 "Партнер Нефть" [04:38:33]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [04:38:33]line СНО: Общий режим [04:38:33]line Чек 19 01.11.2024 04:38 [04:38:33]line Смена: 558 ФФД: 1.0 [04:38:33]line ЗНМ: 0300000087 [04:38:33]line РНМ: 0000000000091644 [04:38:33]line Версия ККМ: 001 [04:38:33]line ФМ: 0000000000874662 [04:38:33]line ФД: 73150 [04:38:33]line ФПД: 266593385741409 [04:38:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T043833&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73150&fm=266593385741409&tin=02508201610067®Number=0000000000091644&sum=130000 [04:38:33]written 0, free lines is 4095 [04:38:33]OFD Sender: Processing packet 73150 [packets to send 282, broken 281] [04:38:33]ProducePacketName [04:38:33]name=ofd_packets/00073150 [04:38:33]OFD Sender: To server: pG, [04:38:33]CommunicateWithHost lk.salyk.kg:30040 [04:38:33]ConnectInit lk.salyk.kg [04:38:33]Write to MH i2c: 01 00 00 9D 02 9F [04:38:33]Write i2c OK [04:38:33]MH_I2C_Read... [04:38:33]Read from MH i2c: 01 [04:38:33]MH_I2C_Read... [04:38:33]Read from MH i2c: 01 07 00 [04:38:33]MH_I2C_Read... [04:38:33]Read from MH i2c: 01 07 00 9D 02 00 00 00 00 00 D4 0C 86 [04:38:33]RasterBufferAndPrint [04:38:33]line [04:38:33]line [04:38:33]line [04:38:33]line [04:38:33]line [04:38:33]written 0, free lines is 3290 [04:38:33]MH_Cut [04:38:33]Write to MH i2c: D1 01 00 A4 02 01 78 [04:38:33]Write i2c OK [04:38:33]MH_I2C_Read... [04:38:33]Read from MH i2c: D1 [04:38:33]MH_I2C_Read... [04:38:33]Read from MH i2c: D1 01 00 [04:38:33]MH_I2C_Read... [04:38:33]Read from MH i2c: D1 01 00 A4 02 00 77 [04:38:33]Write to MH i2c: 01 00 00 A5 02 A7 [04:38:33]Write i2c OK [04:38:33]MH_I2C_Read... [04:38:34]Connected sock=10 [04:38:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 50 BC 06 01 BE 92 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 8C 82 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 D4 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 49 5B 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BE 1D 01 00 35 04 06 00 F2 77 1C 0E 7C 61 5A 1F A6 BE E6 48 E3 0A [04:38:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 BA 26 47 00 AD 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BE 1D 01 00 F4 03 04 00 FD 05 24 67 B6 04 01 00 00 FC 2E DE 55 01 F5 A7 47 [04:38:34]CommunicateWithHost err = 0 [04:38:34]CheckOFDResponse [04:38:34]1017 (14) - 77093643461234 [04:38:34]1041 (16) - 0000000000874662 [04:38:34]1040 (4) - 73150 [04:38:34]1012 (4) - 31.10.2024 22:34 [04:38:34]1206 (1) - 0 [04:38:34]OFD Sender: Remove packet 73150 [04:38:34]ProducePacketName [04:38:34]name=ofd_packets/00073150 [04:38:34]NVStorageDeleteData [04:38:34]*** Cut start [04:38:34]*** Partial cut [04:38:34]*** CUTSNS_PIN = 1 [04:38:34]*** CUTSNS_PIN = 0 [04:38:34]*** Brake cut motor [04:38:35]OFD Sender: No OFD packet to send [04:38:35]Read from MH i2c: 01 [04:38:35]MH_I2C_Read... [04:38:35]*** Stop cut motor [04:38:35]*** Cut end [04:38:35]Read from MH i2c: 01 07 00 [04:38:35]MH_I2C_Read... [04:38:35]Read from MH i2c: 01 07 00 A5 02 00 00 00 00 00 FF 0F BC [04:38:35]process_action close_receipt done [04:38:35]requested_data is exist [04:38:35]produce_requested_data [04:38:35]requested_item fm.sn is exist - process it [04:38:35]wFMCommunicate request_size=4 [04:38:35]MH_SAM_APDU [04:38:35]CAPDU: 80 11 00 00 [04:38:35]Write to MH i2c: E2 08 00 A6 02 80 11 00 00 00 00 00 00 22 [04:38:35]Write i2c OK [04:38:35]MH_I2C_Read... [04:38:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:38:35]Read from MH i2c: E2 [04:38:35]MH_I2C_Read... [04:38:35]Read from MH i2c: E2 17 00 [04:38:35]MH_I2C_Read... [04:38:35]Read from MH i2c: E2 17 00 A6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 76 [04:38:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [04:38:35]wFMCommunicate OK [04:38:35]requested_item fd.num is exist - process it [04:38:35]SAM_PROTO_GetFieldsCounters [04:38:35]wFMCommunicate request_size=4 [04:38:35]MH_SAM_APDU [04:38:35]CAPDU: 80 13 00 00 [04:38:35]Write to MH i2c: E2 08 00 A7 02 80 13 00 00 00 00 00 00 25 [04:38:35]Write i2c OK [04:38:35]MH_I2C_Read... [04:38:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:38:35]Read from MH i2c: E2 [04:38:35]MH_I2C_Read... [04:38:35]Read from MH i2c: E2 62 00 [04:38:35]MH_I2C_Read... [04:38:35]Read from MH i2c: E2 62 00 A7 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 BE 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [04:38:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 BE 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:38:35]wFMCommunicate OK [04:38:35]SAM_PROTO_GetFieldsCounters done [04:38:35]requested_item shift.num is exist - process it [04:38:35]requested_item shift.opened is exist - process it [04:38:35]req_shift_opened [04:38:35]FM_GetShiftState [04:38:35]SAM_PROTO_GetShiftState [04:38:35]wFMCommunicate request_size=4 [04:38:35]MH_SAM_APDU [04:38:35]CAPDU: 80 13 01 00 [04:38:35]Write to MH i2c: E2 08 00 A8 02 80 13 01 00 00 00 00 00 27 [04:38:35]Write i2c OK [04:38:35]MH_I2C_Read... [04:38:35]Read from MH i2c: E2 [04:38:35]MH_I2C_Read... [04:38:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:38:35]Read from MH i2c: E2 0E 00 [04:38:35]MH_I2C_Read... [04:38:35]Read from MH i2c: E2 0E 00 A8 02 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 6E [04:38:35]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [04:38:35]wFMCommunicate OK [04:38:35]SAM_PROTO_GetShiftState done [04:38:35]FM_GetShiftState done [04:38:35]req_shift_opened done [04:38:35]requested_item shift.open_date is exist - process it [04:38:35]req_shift_open_date [04:38:35]req_shift_open_date done [04:38:35]produce_requested_data done [04:38:35]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73150,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [04:38:35]process_action_free close_receipt [04:38:35]json_value_free [04:38:35]json_value_free done [04:38:35]process_json_proto returns [04:38:35]Send response to host [04:38:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73150,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [04:38:35]free response buf [04:38:35]execute_script done [04:38:35]execute_script returns [04:38:35]free content buf [04:38:35]Sock 9.Close socket [04:38:35]Sock 9.Thread stoped [04:38:40]OFD Sender: No OFD packet to send [04:38:45]OFD Sender: No OFD packet to send [04:38:50]OFD Sender: No OFD packet to send [04:38:55]OFD Sender: No OFD packet to send [04:39:00]OFD Sender: No OFD packet to send [04:39:05]OFD Sender: No OFD packet to send [04:39:10]recv_with_timeout no data received [04:39:10]OFD Sender: No OFD packet to send [04:39:15]OFD Sender: No OFD packet to send [04:39:20]OFD Sender: No OFD packet to send [04:39:25]OFD Sender: No OFD packet to send [04:39:30]OFD Sender: No OFD packet to send [04:39:35]OFD Sender: No OFD packet to send [04:39:40]OFD Sender: No OFD packet to send [04:39:45]OFD Sender: No OFD packet to send [04:39:50]OFD Sender: No OFD packet to send [04:39:55]OFD Sender: No OFD packet to send [04:40:00]OFD Sender: No OFD packet to send [04:40:02]recv_with_timeout no data received [04:40:05]OFD Sender: No OFD packet to send [04:40:10]OFD Sender: No OFD packet to send [04:40:15]OFD Sender: No OFD packet to send [04:40:20]OFD Sender: No OFD packet to send [04:41:06]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [04:41:06]Read from MH i2c: E2 [04:41:06]MH_I2C_Read... [04:41:06]Read from MH i2c: E2 03 00 [04:41:06]MH_I2C_Read... [04:41:06]Read from MH i2c: E2 03 00 B2 02 00 90 00 28 [04:41:06]RAPDU: 90 00 [04:41:06]wFMCommunicate OK [04:41:06]wFMCommunicate request_size=13 [04:41:06]MH_SAM_APDU [04:41:06]CAPDU: 80 15 02 00 08 F4 03 04 00 E3 5B 24 67 [04:41:06]Write to MH i2c: E2 10 00 B3 02 80 15 02 00 08 00 F4 03 04 00 E3 5B 24 67 00 00 09 [04:41:06]Write i2c OK [04:41:06]MH_I2C_Read... [04:41:06]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [04:41:06]Read from MH i2c: E2 [04:41:06]MH_I2C_Read... [04:41:06]Read from MH i2c: E2 03 00 [04:41:06]MH_I2C_Read... [04:41:06]Read from MH i2c: E2 03 00 B3 02 00 90 00 29 [04:41:06]RAPDU: 90 00 [04:41:06]wFMCommunicate OK [04:41:06]wFMCommunicate request_size=25 [04:41:06]MH_SAM_APDU [04:41:06]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 [04:41:06]Write to MH i2c: E2 1C 00 B4 02 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 00 00 97 [04:41:06]Write i2c OK [04:41:06]MH_I2C_Read... [04:41:06]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [04:41:06]Read from MH i2c: E2 [04:41:06]MH_I2C_Read... [04:41:06]Read from MH i2c: E2 03 00 [04:41:06]MH_I2C_Read... [04:41:06]Read from MH i2c: E2 03 00 B4 02 00 90 00 2A [04:41:06]RAPDU: 90 00 [04:41:06]wFMCommunicate OK [04:41:06]wFMCommunicate request_size=4 [04:41:06]MH_SAM_APDU [04:41:06]CAPDU: 80 15 03 00 [04:41:06]Write to MH i2c: E2 08 00 B5 02 80 15 03 00 00 00 00 00 38 [04:41:06]Write i2c OK [04:41:06]MH_I2C_Read... [04:41:06]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [04:41:06]Read from MH i2c: E2 [04:41:06]MH_I2C_Read... [04:41:06]Read from MH i2c: E2 40 00 [04:41:06]MH_I2C_Read... [04:41:06]Read from MH i2c: E2 40 00 B5 02 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BF 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 14 00 00 00 35 04 06 00 36 66 53 8E 01 1E 90 00 EC [04:41:06]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BF 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 14 00 00 00 35 04 06 00 36 66 53 8E 01 1E 90 00 [04:41:06]wFMCommunicate OK [04:41:06]SAM_PROTO_ProcessDocument answer len = 59 [04:41:06]SAM_PROTO_ProcessDocument done [04:41:06]SetTLVBufToDocument [04:41:06]Processing tag 1209 (04B9) [04:41:06]Malloc new data [04:41:06]Processing tag 1041 (0411) [04:41:06]Processing tag 1040 (0410) [04:41:06]Malloc new data [04:41:06]Processing tag 1038 (040E) [04:41:06]Malloc new data [04:41:06]Processing tag 1042 (0412) [04:41:06]Malloc new data [04:41:06]Processing tag 1077 (0435) [04:41:06]Malloc new data [04:41:06]SetTLVBufToDocument err=0 [04:41:06]KKMLoadAndSignReceiptData store KKM data [04:41:06]KKMLoadAndSignReceiptData err=0 [04:41:06]wFMCommunicate request_size=4 [04:41:06]MH_SAM_APDU [04:41:06]CAPDU: 80 11 00 00 [04:41:06]Write to MH i2c: E2 08 00 B6 02 80 11 00 00 00 00 00 00 32 [04:41:06]Write i2c OK [04:41:06]MH_I2C_Read... [04:41:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:41:06]Read from MH i2c: E2 [04:41:06]MH_I2C_Read... [04:41:06]Read from MH i2c: E2 17 00 [04:41:07]MH_I2C_Read... [04:41:07]Read from MH i2c: E2 17 00 B6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 86 [04:41:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [04:41:07]wFMCommunicate OK [04:41:07]Счет N : (1)952750 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 71 Товар: 2711190000 ГАЗ-К-3 9.380 * 38.90 = 364.88 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.88 ИТОГО: 364.00 Внесено: 500.00 СДАЧА: 136.00 НСП 1% : 3.23 НДС 12% : 38.75 Наличными: 364.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 20 01.11.2024 04:41 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73151 ФПД: 59813116379422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T044107&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73151&fm=59813116379422&tin=02508201610067®Number=0000000000091644&sum=36400 [04:41:07]StoreToDocumentArchive [04:41:07]shift 558 fd 73151 [04:41:07]save to /storage/0558/doc_00073151 [04:41:07]save last doc name /storage/0558/doc_00073151 to /storage/kkm_last_doc_name [04:41:07]save OK [04:41:07]Clear old archive folders... [04:41:07]ProcessDocumentItem done err = 0, tmpTLVsize=250 [04:41:07]tlvbuf is 001A4BA0 [04:41:07]SAM_PROTO_ClearQueue [04:41:07]wFMCommunicate request_size=4 [04:41:07]MH_SAM_APDU [04:41:07]CAPDU: 80 09 00 00 [04:41:07]Write to MH i2c: E2 08 00 B7 02 80 09 00 00 00 00 00 00 2B [04:41:07]Write i2c OK [04:41:07]MH_I2C_Read... [04:41:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:41:07]Read from MH i2c: E2 [04:41:07]MH_I2C_Read... [04:41:07]Read from MH i2c: E2 03 00 [04:41:07]MH_I2C_Read... [04:41:07]Read from MH i2c: E2 03 00 B7 02 00 90 00 2D [04:41:07]RAPDU: 90 00 [04:41:07]wFMCommunicate OK [04:41:07]SAM_PROTO_ClearQueue done [04:41:07]KKMCreateOFDPacket [04:41:07]OFDProtocolAddRootSTLVToBuf [04:41:07]FM_MakeSignedData [04:41:07]FM_MakeSignedData [04:41:07]SAM_PROTO_SignData [04:41:07]wFMCommunicate request_size=4 [04:41:07]MH_SAM_APDU [04:41:07]CAPDU: 80 0D 01 02 [04:41:07]Write to MH i2c: E2 08 00 B8 02 80 0D 01 02 00 00 00 00 33 [04:41:07]Write i2c OK [04:41:07]MH_I2C_Read... [04:41:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:41:07]Read from MH i2c: E2 [04:41:07]MH_I2C_Read... [04:41:07]Read from MH i2c: E2 03 00 [04:41:07]MH_I2C_Read... [04:41:07]Read from MH i2c: E2 03 00 B8 02 00 90 00 2E [04:41:07]RAPDU: 90 00 [04:41:07]wFMCommunicate OK [04:41:07]wFMCommunicate request_size=255 [04:41:07]MH_SAM_APDU [04:41:07]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 A4 24 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 88 8E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 0F 00 00 00 00 07 04 06 00 30 8E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 E3 5B 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BF 1D 01 00 35 04 06 00 36 66 [04:41:07]Write to MH i2c: E2 02 01 B9 02 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 A4 24 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 88 8E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 0F 00 00 00 00 07 04 06 00 30 8E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 E3 5B 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BF 1D 01 00 35 04 06 00 36 66 00 00 79 [04:41:07]Write i2c OK [04:41:07]MH_I2C_Read... [04:41:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:41:07]Read from MH i2c: E2 [04:41:07]MH_I2C_Read... [04:41:07]Read from MH i2c: E2 03 00 [04:41:07]MH_I2C_Read... [04:41:07]Read from MH i2c: E2 03 00 B9 02 00 90 00 2F [04:41:07]RAPDU: 90 00 [04:41:07]wFMCommunicate OK [04:41:07]wFMCommunicate request_size=9 [04:41:07]MH_SAM_APDU [04:41:07]CAPDU: 80 0D 02 02 04 53 8E 01 1E [04:41:07]Write to MH i2c: E2 0C 00 BA 02 80 0D 02 02 04 00 53 8E 01 1E 00 00 3E [04:41:07]Write i2c OK [04:41:07]MH_I2C_Read... [04:41:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:41:07]Read from MH i2c: E2 [04:41:07]MH_I2C_Read... [04:41:07]Read from MH i2c: E2 03 00 [04:41:07]MH_I2C_Read... [04:41:07]Read from MH i2c: E2 03 00 BA 02 00 90 00 30 [04:41:07]RAPDU: 90 00 [04:41:07]wFMCommunicate OK [04:41:07]wFMCommunicate request_size=4 [04:41:07]MH_SAM_APDU [04:41:07]CAPDU: 80 0D 03 02 [04:41:07]Write to MH i2c: E2 08 00 BB 02 80 0D 03 02 00 00 00 00 38 [04:41:07]Write i2c OK [04:41:07]MH_I2C_Read... [04:41:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:41:07]Read from MH i2c: E2 [04:41:07]MH_I2C_Read... [04:41:07]Read from MH i2c: E2 0B 00 [04:41:07]MH_I2C_Read... [04:41:07]Read from MH i2c: E2 0B 00 BB 02 00 29 DF 8F 3F D7 44 7D 34 90 00 DB [04:41:07]RAPDU: 29 DF 8F 3F D7 44 7D 34 90 00 [04:41:07]wFMCommunicate OK [04:41:07]SAM_PROTO_SignData done [04:41:07]FM_MakeSignedData done [04:41:07]CreateOFDProtocolMessage [04:41:07]wFMCommunicate request_size=4 [04:41:07]MH_SAM_APDU [04:41:07]CAPDU: 80 11 00 00 [04:41:07]Write to MH i2c: E2 08 00 BC 02 80 11 00 00 00 00 00 00 38 [04:41:07]Write i2c OK [04:41:07]MH_I2C_Read... [04:41:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:41:07]Read from MH i2c: E2 [04:41:07]MH_I2C_Read... [04:41:07]Read from MH i2c: E2 17 00 [04:41:07]MH_I2C_Read... [04:41:07]Read from MH i2c: E2 17 00 BC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 8C [04:41:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [04:41:07]wFMCommunicate OK [04:41:07]CreateOFDProtocolMessage done [04:41:07]OFDSenderStorePacket 73151 [04:41:07]StoreOFDPacket docnum=73151 [04:41:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 28 3E 06 01 DA F4 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 A4 24 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 88 8E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 0F 00 00 00 00 07 04 06 00 30 8E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 E3 5B 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BF 1D 01 00 35 04 06 00 36 66 53 8E 01 1E 29 DF 8F 3F D7 44 7D 34 [04:41:07]CheckFolder [04:41:07]dirname=/storage/ofd_packets [04:41:07]CheckFolder done [04:41:07]ProducePacketName [04:41:07]name=ofd_packets/00073151 [04:41:07]NVStorageSaveData ofd_packets/00073151 [04:41:07]File name is /storage/ofd_packets/00073151 [04:41:07]Write 300 bytes [04:41:07]NVStorageSaveData done [04:41:07]OFDSenderStorePacket done [04:41:07]KKMCreateOFDPacket done [04:41:07]NVStorageSaveData kkm_last_timestamp [04:41:07]File name is /storage/kkm_last_timestamp [04:41:07]Write 4 bytes [04:41:07]NVStorageSaveData done [04:41:07]ExternCall_PrintAddStr [04:41:07]wPrintStart [04:41:07]Write to MH i2c: 01 00 00 BD 02 BF [04:41:07]Write i2c OK [04:41:07]MH_I2C_Read... [04:41:07]Read from MH i2c: 01 [04:41:07]MH_I2C_Read... [04:41:07]Read from MH i2c: 01 07 00 [04:41:07]MH_I2C_Read... [04:41:07]Read from MH i2c: 01 07 00 BD 02 00 00 00 00 00 FF 0F D4 [04:41:07]RasterBufferAndPrint [04:41:07]line Счет N : (1)952750 [04:41:07]line ИНН: 02508201610067 [04:41:07]line Контрольно-Кассовый Чек [04:41:07]line ПРОДАЖА [04:41:07]line ТРК (МРК, ГНК) : 71 [04:41:07]line Товар: 2711190000 [04:41:07]line ГАЗ-К-3 [04:41:07]line 9.380 * 38.90 [04:41:07]line = 364.88 [04:41:07]line НДС 12% НСП 1% [04:41:07]line > о реализуемом товаре [04:41:07]line ОКРУГЛЕНИЕ: -0.88 [04:41:07]line ИТОГО: 364.00 [04:41:07]line Внесено: 500.00 [04:41:07]line СДАЧА: 136.00 [04:41:07]line НСП 1% : 3.23 [04:41:07]line НДС 12% : 38.75 [04:41:07]line Наличными: 364.00 [04:41:07]line Безнал.: 0.00 [04:41:07]line Место: АЗС № 113 "Партнер Нефть" [04:41:07]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [04:41:07]line СНО: Общий режим [04:41:07]line Чек 20 01.11.2024 04:41 [04:41:07]line Смена: 558 ФФД: 1.0 [04:41:07]line ЗНМ: 0300000087 [04:41:07]line РНМ: 0000000000091644 [04:41:07]line Версия ККМ: 001 [04:41:07]line ФМ: 0000000000874662 [04:41:07]line ФД: 73151 [04:41:07]line ФПД: 59813116379422 [04:41:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T044107&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73151&fm=59813116379422&tin=02508201610067®Number=0000000000091644&sum=36400 [04:41:07]written 0, free lines is 4095 [04:41:07]OFD Sender: Processing packet 73151 [packets to send 282, broken 281] [04:41:07]ProducePacketName [04:41:07]name=ofd_packets/00073151 [04:41:07]OFD Sender: To server: pG, [04:41:07]CommunicateWithHost lk.salyk.kg:30040 [04:41:07]ConnectInit lk.salyk.kg [04:41:08]Write to MH i2c: 01 00 00 E8 02 EA [04:41:08]Write i2c OK [04:41:08]MH_I2C_Read... [04:41:08]Read from MH i2c: 01 [04:41:08]MH_I2C_Read... [04:41:08]Read from MH i2c: 01 07 00 [04:41:08]MH_I2C_Read... [04:41:08]Read from MH i2c: 01 07 00 E8 02 00 00 00 00 00 D4 0C D1 [04:41:08]RasterBufferAndPrint [04:41:08]line [04:41:08]line [04:41:08]line [04:41:08]line [04:41:08]line [04:41:08]written 0, free lines is 3292 [04:41:08]MH_Cut [04:41:08]Write to MH i2c: D1 01 00 EF 02 01 C3 [04:41:08]Write i2c OK [04:41:08]MH_I2C_Read... [04:41:08]Read from MH i2c: D1 [04:41:08]MH_I2C_Read... [04:41:08]Read from MH i2c: D1 01 00 [04:41:08]MH_I2C_Read... [04:41:08]Read from MH i2c: D1 01 00 EF 02 00 C2 [04:41:08]Write to MH i2c: 01 00 00 F0 02 F2 [04:41:08]Write i2c OK [04:41:08]MH_I2C_Read... [04:41:08]*** Cut start [04:41:08]*** Partial cut [04:41:08]*** CUTSNS_PIN = 1 [04:41:08]*** CUTSNS_PIN = 0 [04:41:09]*** Brake cut motor [04:41:09]Read from MH i2c: 01 [04:41:09]MH_I2C_Read... [04:41:09]*** Stop cut motor [04:41:09]*** Cut end [04:41:09]Read from MH i2c: 01 07 00 [04:41:09]MH_I2C_Read... [04:41:09]Read from MH i2c: 01 07 00 F0 02 00 00 00 00 00 FF 0F 07 [04:41:09]process_action close_receipt done [04:41:09]requested_data is exist [04:41:09]produce_requested_data [04:41:09]requested_item fm.sn is exist - process it [04:41:09]wFMCommunicate request_size=4 [04:41:09]MH_SAM_APDU [04:41:09]CAPDU: 80 11 00 00 [04:41:09]Write to MH i2c: E2 08 00 F1 02 80 11 00 00 00 00 00 00 6D [04:41:09]Write i2c OK [04:41:09]MH_I2C_Read... [04:41:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:41:09]Read from MH i2c: E2 [04:41:09]MH_I2C_Read... [04:41:09]Read from MH i2c: E2 17 00 [04:41:09]MH_I2C_Read... [04:41:09]Read from MH i2c: E2 17 00 F1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C1 [04:41:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [04:41:09]wFMCommunicate OK [04:41:09]requested_item fd.num is exist - process it [04:41:09]SAM_PROTO_GetFieldsCounters [04:41:09]wFMCommunicate request_size=4 [04:41:09]MH_SAM_APDU [04:41:09]CAPDU: 80 13 00 00 [04:41:09]Write to MH i2c: E2 08 00 F2 02 80 13 00 00 00 00 00 00 70 [04:41:09]Write i2c OK [04:41:09]MH_I2C_Read... [04:41:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:41:09]Read from MH i2c: E2 [04:41:09]MH_I2C_Read... [04:41:09]Read from MH i2c: E2 62 00 [04:41:09]MH_I2C_Read... [04:41:09]Read from MH i2c: E2 62 00 F2 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 BF 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [04:41:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 BF 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:41:09]wFMCommunicate OK [04:41:09]SAM_PROTO_GetFieldsCounters done [04:41:09]requested_item shift.num is exist - process it [04:41:09]requested_item shift.opened is exist - process it [04:41:09]req_shift_opened [04:41:09]FM_GetShiftState [04:41:09]SAM_PROTO_GetShiftState [04:41:09]wFMCommunicate request_size=4 [04:41:09]MH_SAM_APDU [04:41:09]CAPDU: 80 13 01 00 [04:41:09]Write to MH i2c: E2 08 00 F3 02 80 13 01 00 00 00 00 00 72 [04:41:09]Write i2c OK [04:41:09]MH_I2C_Read... [04:41:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:41:09]Read from MH i2c: E2 [04:41:09]MH_I2C_Read... [04:41:09]Read from MH i2c: E2 0E 00 [04:41:09]MH_I2C_Read... [04:41:09]Read from MH i2c: E2 0E 00 F3 02 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 B9 [04:41:09]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [04:41:09]wFMCommunicate OK [04:41:09]SAM_PROTO_GetShiftState done [04:41:09]FM_GetShiftState done [04:41:09]req_shift_opened done [04:41:09]requested_item shift.open_date is exist - process it [04:41:09]req_shift_open_date [04:41:09]req_shift_open_date done [04:41:09]produce_requested_data done [04:41:09]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73151,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [04:41:09]process_action_free close_receipt [04:41:09]json_value_free [04:41:09]json_value_free done [04:41:09]process_json_proto returns [04:41:09]Send response to host [04:41:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73151,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [04:41:09]free response buf [04:41:09]execute_script done [04:41:09]execute_script returns [04:41:09]free content buf [04:41:09]Sock 7.Close socket [04:41:09]Sock 7.Thread stoped [04:41:11]Connected sock=11 [04:41:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 28 3E 06 01 DA F4 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 A4 24 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 88 8E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 0F 00 00 00 00 07 04 06 00 30 8E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 E3 5B 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BF 1D 01 00 35 04 06 00 36 66 53 8E 01 1E 29 DF 8F 3F D7 44 7D 34 [04:41:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 D4 7B 47 00 BA B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BF 1D 01 00 F4 03 04 00 9A 06 24 67 B6 04 01 00 00 0A C0 B4 3E 42 A6 D5 15 [04:41:12]CommunicateWithHost err = 0 [04:41:12]CheckOFDResponse [04:41:12]1017 (14) - 77093643461234 [04:41:12]1041 (16) - 0000000000874662 [04:41:12]1040 (4) - 73151 [04:41:12]1012 (4) - 31.10.2024 22:37 [04:41:12]1206 (1) - 0 [04:41:12]OFD Sender: Remove packet 73151 [04:41:12]ProducePacketName [04:41:12]name=ofd_packets/00073151 [04:41:12]NVStorageDeleteData [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:44]ConnectInit Can't connect to host [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:03]recv_with_timeout no data received [04:44:07]OFD Sender: No OFD packet to send [04:44:13]OFD Sender: No OFD packet to send [04:44:18]OFD Sender: No OFD packet to send [04:44:23]OFD Sender: No OFD packet to send [04:44:28]OFD Sender: No OFD packet to send [04:44:33]OFD Sender: No OFD packet to send [04:44:38]OFD Sender: No OFD packet to send [04:44:43]OFD Sender: No OFD packet to send [04:44:48]OFD Sender: No OFD packet to send [04:44:52]recv_with_timeout no data received [04:44:53]OFD Sender: No OFD packet to send [04:44:58]OFD Sender: No OFD packet to send [04:45:03]OFD Sender: No OFD packet to send [04:45:08]OFD Sender: No OFD packet to send [04:45:13]OFD Sender: No OFD packet to send [04:45:18]OFD Sender: No OFD packet to send [04:45:23]OFD Sender: No OFD packet to send [04:45:28]OFD Sender: No OFD packet to send [04:45:33]OFD Sender: No OFD packet to send [04:45:38]OFD Sender: No OFD packet to send [04:45:43]OFD Sender: No OFD packet to send [04:45:48]OFD Sender: No OFD packet to send [04:45:53]OFD Sender: No OFD packet to send [04:45:58]OFD Sender: No OFD packet to send [04:46:03]OFD Sender: No OFD packet to send [04:46:08]OFD Sender: No OFD packet to send [04:46:13]OFD Sender: No OFD packet to send [04:46:18]OFD Sender: No OFD packet to send [04:46:23]OFD Sender: No OFD packet to send [04:46:28]OFD Sender: No OFD packet to send [04:46:33]OFD Sender: No OFD packet to send [04:46:38]OFD Sender: No OFD packet to send [04:46:43]OFD Sender: No OFD packet to send [04:46:48]OFD Sender: No OFD packet to send [04:46:53]OFD Sender: No OFD packet to send [04:46:58]OFD Sender: No OFD packet to send [04:46:58]recv_with_timeout no data received [04:47:03]OFD Sender: No OFD packet to send [04:47:08]OFD Sender: No OFD packet to send [04:47:13]OFD Sender: No OFD packet to send [04:47:18]OFD Sender: No OFD packet to send [04:47:23]OFD Sender: No OFD packet to send [04:47:28]OFD Sender: No OFD packet to send [04:47:33]OFD Sender: No OFD packet to send [04:47:37]recv_with_timeout no data received [04:47:38]OFD Sender: No OFD packet to send [04:47:43]OFD Sender: No OFD packet to send [04:47:47]recv_with_timeout no data received [04:47:48]OFD Sender: No OFD packet to send [04:47:53]OFD Sender: No OFD packet to send [04:47:58]OFD Sender: No OFD packet to send [04:48:03]OFD Sender: No OFD packet to send [04:48:08]OFD Sender: No OFD packet to send [04:48:12]recv_with_timeout no data received [04:48:13]OFD Sender: No OFD packet to send [04:48:18]OFD Sender: No OFD packet to send [04:48:22]recv_with_timeout no data received [04:48:23]OFD Sender: No OFD packet to send [04:48:28]OFD Sender: No OFD packet to send [04:48:33]OFD Sender: No OFD packet to send [04:48:38]OFD Sender: No OFD packet to send [04:48:43]OFD Sender: No OFD packet to send [04:48:48]OFD Sender: No OFD packet to send [04:48:53]OFD Sender: No OFD packet to send [04:48:58]OFD Sender: No OFD packet to send [04:48:59]recv_with_timeout no data received [04:49:03]OFD Sender: No OFD packet to send [04:49:08]OFD Sender: No OFD packet to send [04:49:13]OFD Sender: No OFD packet to send [04:49:18]OFD Sender: No OFD packet to send [04:49:23]OFD Sender: No OFD packet to send [04:49:28]OFD Sender: No OFD packet to send [04:49:30]recv_with_timeout no data received [04:49:33]OFD Sender: No OFD packet to send [04:49:38]OFD Sender: No OFD packet to send [04:49:43]OFD Sender: No OFD packet to send [04:49:48]OFD Sender: No OFD packet to send [04:49:53]OFD Sender: No OFD packet to send [04:49:58]OFD Sender: No OFD packet to send [04:50:03]OFD Sender: No OFD packet to send [04:50:08]OFD Sender: No OFD packet to send [04:50:13]OFD Sender: No OFD packet to send [04:50:18]OFD Sender: No OFD packet to send [04:50:23]OFD Sender: No OFD packet to send [04:50:28]OFD Sender: No OFD packet to send [04:50:33]OFD Sender: No OFD packet to send [04:50:38]OFD Sender: No OFD packet to send [04:50:43]OFD Sender: No OFD packet to send [04:50:48]OFD Sender: No OFD packet to send [04:50:53]OFD Sender: No OFD packet to send [04:50:58]OFD Sender: No OFD packet to send [04:51:02]recv_with_timeout no data received [04:51:03]OFD Sender: No OFD packet to send [04:51:08]OFD Sender: No OFD packet to send [04:51:13]OFD Sender: No OFD packet to send [04:51:18]OFD Sender: No OFD packet to send [04:51:23]OFD Sender: No OFD packet to send [04:51:28]OFD Sender: No OFD packet to send [04:51:33]OFD Sender: No OFD packet to send [04:51:38]OFD Sender: No OFD packet to send [04:51:40]recv_with_timeout no data received [04:51:43]OFD Sender: No OFD packet to send [04:51:48]OFD Sender: No OFD packet to send [04:51:53]OFD Sender: No OFD packet to send [04:51:58]OFD Sender: No OFD packet to send [04:52:03]OFD Sender: No OFD packet to send [04:52:08]OFD Sender: No OFD packet to send [04:52:13]OFD Sender: No OFD packet to send [04:52:18]OFD Sender: No OFD packet to send [04:52:23]OFD Sender: No OFD packet to send [04:52:28]OFD Sender: No OFD packet to send [04:52:33]OFD Sender: No OFD packet to send [04:52:37]recv_with_timeout no data received [04:52:38]OFD Sender: No OFD packet to send [04:52:43]OFD Sender: No OFD packet to send [04:52:48]OFD Sender: No OFD packet to send [04:52:53]OFD Sender: No OFD packet to send [04:52:58]OFD Sender: No OFD packet to send [04:53:03]OFD Sender: No OFD packet to send [04:53:07]recv_with_timeout no data received [04:53:08]OFD Sender: No OFD packet to send [04:53:13]OFD Sender: No OFD packet to send [04:53:18]OFD Sender: No OFD packet to send [04:53:23]OFD Sender: No OFD packet to send [04:53:28]OFD Sender: No OFD packet to send [04:53:33]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:50]recv_with_timeout no data received [04:53:53]OFD Sender: No OFD packet to send [04:53:58]OFD Sender: No OFD packet to send [04:54:04]OFD Sender: No OFD packet to send [04:54:09]OFD Sender: No OFD packet to send [04:54:14]OFD Sender: No OFD packet to send [04:54:16]recv_with_timeout no data received [04:54:19]OFD Sender: No OFD packet to send [04:54:24]OFD Sender: No OFD packet to send [04:54:29]OFD Sender: No OFD packet to send [04:54:34]OFD Sender: No OFD packet to send [04:54:39]OFD Sender: No OFD packet to send [04:54:40]recv_with_timeout no data received [04:54:44]OFD Sender: No OFD packet to send [04:54:49]OFD Sender: No OFD packet to send [04:54:54]OFD Sender: No OFD packet to send [04:54:59]OFD Sender: No OFD packet to send [04:55:04]OFD Sender: No OFD packet to send [04:55:09]OFD Sender: No OFD packet to send [04:55:14]OFD Sender: No OFD packet to send [04:55:19]OFD Sender: No OFD packet to send [04:55:24]OFD Sender: No OFD packet to send [04:55:29]OFD Sender: No OFD packet to send [04:55:34]OFD Sender: No OFD packet to send [04:55:37]recv_with_timeout no data received [04:55:39]OFD Sender: No OFD packet to send [04:55:44]OFD Sender: No OFD packet to send [04:55:49]OFD Sender: No OFD packet to send [04:55:54]OFD Sender: No OFD packet to send [04:55:59]OFD Sender: No OFD packet to send [04:56:04]OFD Sender: No OFD packet to send [04:56:09]OFD Sender: No OFD packet to send [04:56:14]OFD Sender: No OFD packet to send [04:56:17]recv_with_timeout no data received [04:56:19]OFD Sender: No OFD packet to send [04:56:24]OFD Sender: No OFD packet to send [04:56:29]OFD Sender: No OFD packet to send [04:56:34]OFD Sender: No OFD packet to send [04:56:39]OFD Sender: No OFD packet to send [04:56:44]OFD Sender: No OFD packet to send [04:56:49]OFD Sender: No OFD packet to send [04:56:53]recv_with_timeout no data received [04:56:54]OFD Sender: No OFD packet to send [04:56:59]OFD Sender: No OFD packet to send [04:57:04]OFD Sender: No OFD packet to send [04:57:09]OFD Sender: No OFD packet to send [04:57:14]OFD Sender: No OFD packet to send [04:57:17]recv_with_timeout no data received [04:57:19]OFD Sender: No OFD packet to send [04:57:24]OFD Sender: No OFD packet to send [04:57:29]OFD Sender: No OFD packet to send [04:57:34]OFD Sender: No OFD packet to send [04:57:39]OFD Sender: No OFD packet to send [04:57:44]OFD Sender: No OFD packet to send [04:57:49]OFD Sender: No OFD packet to send [04:57:54]OFD Sender: No OFD packet to send [04:57:59]OFD Sender: No OFD packet to send [04:58:04]OFD Sender: No OFD packet to send [04:58:09]OFD Sender: No OFD packet to send [04:58:14]OFD Sender: No OFD packet to send [04:58:19]OFD Sender: No OFD packet to send [04:58:22]recv_with_timeout no data received [04:58:24]OFD Sender: No OFD packet to send [04:58:29]OFD Sender: No OFD packet to send [04:58:34]OFD Sender: No OFD packet to send [04:58:39]OFD Sender: No OFD packet to send [04:58:44]OFD Sender: No OFD packet to send [04:58:49]OFD Sender: No OFD packet to send [04:58:54]OFD Sender: No OFD packet to send [04:58:59]OFD Sender: No OFD packet to send [04:59:04]OFD Sender: No OFD packet to send [04:59:09]OFD Sender: No OFD packet to send [04:59:11]recv_with_timeout no data received [04:59:14]OFD Sender: No OFD packet to send [04:59:19]OFD Sender: No OFD packet to send [04:59:24]OFD Sender: No OFD packet to send [04:59:29]OFD Sender: No OFD packet to send [04:59:34]OFD Sender: No OFD packet to send [04:59:39]OFD Sender: No OFD packet to send [04:59:44]OFD Sender: No OFD packet to send [04:59:49]OFD Sender: No OFD packet to send [04:59:54]OFD Sender: No OFD packet to send [04:59:59]recv_with_timeout no data received [04:59:59]OFD Sender: No OFD packet to send [05:00:04]OFD Sender: No OFD packet to send [05:00:09]OFD Sender: No OFD packet to send [05:00:14]OFD Sender: No OFD packet to send [05:00:19]OFD Sender: No OFD packet to send [05:00:24]OFD Sender: No OFD packet to send [05:00:29]OFD Sender: No OFD packet to send [05:00:34]OFD Sender: No OFD packet to send [05:00:39]OFD Sender: No OFD packet to send [05:00:44]OFD Sender: No OFD packet to send [05:00:49]OFD Sender: No OFD packet to send [05:00:54]OFD Sender: No OFD packet to send [05:00:59]OFD Sender: No OFD packet to send [05:01:04]recv_with_timeout no data received [05:01:04]OFD Sender: No OFD packet to send [05:01:09]OFD Sender: No OFD packet to send [05:01:14]OFD Sender: No OFD packet to send [05:01:19]OFD Sender: No OFD packet to send [05:01:24]OFD Sender: No OFD packet to send [05:01:29]OFD Sender: No OFD packet to send [05:01:29]recv_with_timeout no data received [05:01:34]OFD Sender: No OFD packet to send [05:01:39]OFD Sender: No OFD packet to send [05:01:44]OFD Sender: No OFD packet to send [05:01:49]OFD Sender: No OFD packet to send [05:01:53]recv_with_timeout no data received [05:01:54]OFD Sender: No OFD packet to send [05:01:59]OFD Sender: No OFD packet to send [05:02:04]OFD Sender: No OFD packet to send [05:02:06]recv_with_timeout no data received [05:02:09]OFD Sender: No OFD packet to send [05:02:14]OFD Sender: No OFD packet to send [05:02:19]OFD Sender: No OFD packet to send [05:02:24]OFD Sender: No OFD packet to send [05:02:29]OFD Sender: No OFD packet to send [05:02:34]OFD Sender: No OFD packet to send [05:02:39]OFD Sender: No OFD packet to send [05:02:44]OFD Sender: No OFD packet to send [05:02:49]OFD Sender: No OFD packet to send [05:02:51]recv_with_timeout no data received [05:02:54]OFD Sender: No OFD packet to send [05:02:59]OFD Sender: No OFD packet to send [05:03:04]OFD Sender: No OFD packet to send [05:03:09]OFD Sender: No OFD packet to send [05:03:14]OFD Sender: No OFD packet to send [05:03:19]OFD Sender: No OFD packet to send [05:03:24]OFD Sender: No OFD packet to send [05:03:29]OFD Sender: No OFD packet to send [05:03:32]recv_with_timeout no data received [05:03:34]OFD Sender: No OFD packet to send [05:03:39]OFD Sender: No OFD packet to send [05:03:43]recv_with_timeout no data received [05:03:44]OFD Sender: No OFD packet to send [05:03:49]OFD Sender: No OFD packet to send [05:03:55]OFD Sender: No OFD packet to send [05:04:00]OFD Sender: No OFD packet to send [05:04:05]OFD Sender: No OFD packet to send [05:04:10]OFD Sender: No OFD packet to send [05:04:15]OFD Sender: No OFD packet to send [05:04:20]OFD Sender: No OFD packet to send [05:04:25]OFD Sender: No OFD packet to send [05:04:30]OFD Sender: No OFD packet to send [05:04:35]OFD Sender: No OFD packet to send [05:04:40]OFD Sender: No OFD packet to send [05:04:45]OFD Sender: No OFD packet to send [05:04:50]OFD Sender: No OFD packet to send [05:04:55]OFD Sender: No OFD packet to send [05:05:00]OFD Sender: No OFD packet to send [05:05:05]OFD Sender: No OFD packet to send [05:05:10]OFD Sender: No OFD packet to send [05:05:15]OFD Sender: No OFD packet to send [05:05:20]OFD Sender: No OFD packet to send [05:05:25]OFD Sender: No OFD packet to send [05:05:30]OFD Sender: No OFD packet to send [05:05:35]OFD Sender: No OFD packet to send [05:05:37]recv_with_timeout no data received [05:05:40]OFD Sender: No OFD packet to send [05:05:45]OFD Sender: No OFD packet to send [05:05:50]OFD Sender: No OFD packet to send [05:05:55]OFD Sender: No OFD packet to send [05:06:00]OFD Sender: No OFD packet to send [05:06:00]recv_with_timeout no data received [05:06:05]OFD Sender: No OFD packet to send [05:06:10]OFD Sender: No OFD packet to send [05:06:10]recv_with_timeout no data received [05:06:15]OFD Sender: No OFD packet to send [05:06:20]OFD Sender: No OFD packet to send [05:06:25]OFD Sender: No OFD packet to send [05:06:30]OFD Sender: No OFD packet to send [05:06:35]OFD Sender: No OFD packet to send [05:06:40]OFD Sender: No OFD packet to send [05:06:45]OFD Sender: No OFD packet to send [05:06:49]recv_with_timeout no data received [05:06:50]OFD Sender: No OFD packet to send [05:06:55]OFD Sender: No OFD packet to send [05:07:00]OFD Sender: No OFD packet to send [05:07:05]OFD Sender: No OFD packet to send [05:07:10]OFD Sender: No OFD packet to send [05:07:15]OFD Sender: No OFD packet to send [05:07:20]OFD Sender: No OFD packet to send [05:07:25]OFD Sender: No OFD packet to send [05:07:30]OFD Sender: No OFD packet to send [05:07:35]OFD Sender: No OFD packet to send [05:07:40]OFD Sender: No OFD packet to send [05:07:45]OFD Sender: No OFD packet to send [05:07:49]recv_with_timeout no data received [05:07:50]OFD Sender: No OFD packet to send [05:07:55]OFD Sender: No OFD packet to send [05:07:59]recv_with_timeout no data received [05:08:00]OFD Sender: No OFD packet to send [05:08:05]OFD Sender: No OFD packet to send [05:08:10]recv_with_timeout no data received [05:08:10]OFD Sender: No OFD packet to send [05:08:15]OFD Sender: No OFD packet to send [05:08:20]OFD Sender: No OFD packet to send [05:08:21]recv_with_timeout no data received [05:08:25]OFD Sender: No OFD packet to send [05:08:30]OFD Sender: No OFD packet to send [05:08:35]OFD Sender: No OFD packet to send [05:08:40]OFD Sender: No OFD packet to send [05:08:45]OFD Sender: No OFD packet to send [05:08:50]OFD Sender: No OFD packet to send [05:08:55]OFD Sender: No OFD packet to send [05:09:00]OFD Sender: No OFD packet to send [05:09:05]OFD Sender: No OFD packet to send [05:09:10]OFD Sender: No OFD packet to send [05:09:15]OFD Sender: No OFD packet to send [05:09:20]OFD Sender: No OFD packet to send [05:09:25]OFD Sender: No OFD packet to send [05:09:30]OFD Sender: No OFD packet to send [05:09:35]OFD Sender: No OFD packet to send [05:09:40]OFD Sender: No OFD packet to send [05:09:45]OFD Sender: No OFD packet to send [05:09:50]OFD Sender: No OFD packet to send [05:09:55]OFD Sender: No OFD packet to send [05:10:00]OFD Sender: No OFD packet to send [05:10:05]OFD Sender: No OFD packet to send [05:10:10]OFD Sender: No OFD packet to send [05:10:15]OFD Sender: No OFD packet to send [05:10:18]recv_with_timeout no data received [05:10:20]OFD Sender: No OFD packet to send [05:10:25]OFD Sender: No OFD packet to send [05:10:30]OFD Sender: No OFD packet to send [05:10:35]OFD Sender: No OFD packet to send [05:10:40]OFD Sender: No OFD packet to send [05:10:45]OFD Sender: No OFD packet to send [05:10:50]OFD Sender: No OFD packet to send [05:10:55]OFD Sender: No OFD packet to send [05:11:00]OFD Sender: No OFD packet to send [05:11:05]OFD Sender: No OFD packet to send [05:11:10]OFD Sender: No OFD packet to send [05:11:15]OFD Sender: No OFD packet to send [05:11:20]OFD Sender: No OFD packet to send [05:11:25]OFD Sender: No OFD packet to send [05:11:30]OFD Sender: No OFD packet to send [05:11:35]OFD Sender: No OFD packet to send [05:11:40]OFD Sender: No OFD packet to send [05:11:45]OFD Sender: No OFD packet to send [05:11:50]OFD Sender: No OFD packet to send [05:11:55]OFD Sender: No OFD packet to send [05:12:00]OFD Sender: No OFD packet to send [05:12:05]OFD Sender: No OFD packet to send [05:12:10]OFD Sender: No OFD packet to send [05:12:15]OFD Sender: No OFD packet to send [05:12:20]OFD Sender: No OFD packet to send [05:12:25]OFD Sender: No OFD packet to send [05:12:30]OFD Sender: No OFD packet to send [05:12:35]OFD Sender: No OFD packet to send [05:12:40]OFD Sender: No OFD packet to send [05:12:45]OFD Sender: No OFD packet to send [05:12:50]OFD Sender: No OFD packet to send [05:12:55]OFD Sender: No OFD packet to send [05:13:00]OFD Sender: No OFD packet to send [05:13:05]OFD Sender: No OFD packet to send [05:13:10]OFD Sender: No OFD packet to send [05:13:13]recv_with_timeout no data received [05:13:15]OFD Sender: No OFD packet to send [05:13:20]OFD Sender: No OFD packet to send [05:13:25]OFD Sender: No OFD packet to send [05:13:30]OFD Sender: No OFD packet to send [05:13:35]OFD Sender: No OFD packet to send [05:13:40]OFD Sender: No OFD packet to send [05:13:46]OFD Sender: No OFD packet to send [05:13:51]OFD Sender: No OFD packet to send [05:13:56]OFD Sender: No OFD packet to send [05:14:01]OFD Sender: No OFD packet to send [05:14:06]OFD Sender: No OFD packet to send [05:14:11]OFD Sender: No OFD packet to send [05:14:16]OFD Sender: No OFD packet to send [05:14:21]OFD Sender: No OFD packet to send [05:14:26]OFD Sender: No OFD packet to send [05:14:31]OFD Sender: No OFD packet to send [05:14:36]OFD Sender: No OFD packet to send [05:14:41]OFD Sender: No OFD packet to send [05:14:46]OFD Sender: No OFD packet to send [05:14:51]OFD Sender: No OFD packet to send [05:14:56]OFD Sender: No OFD packet to send [05:15:01]OFD Sender: No OFD packet to send [05:15:06]OFD Sender: No OFD packet to send [05:15:11]OFD Sender: No OFD packet to send [05:15:16]OFD Sender: No OFD packet to send [05:15:21]OFD Sender: No OFD packet to send [05:15:26]OFD Sender: No OFD packet to send [05:15:31]OFD Sender: No OFD packet to send [05:15:36]OFD Sender: No OFD packet to send [05:15:41]OFD Sender: No OFD packet to send [05:15:46]OFD Sender: No OFD packet to send [05:15:51]OFD Sender: No OFD packet to send [05:15:56]OFD Sender: No OFD packet to send [05:16:01]OFD Sender: No OFD packet to send [05:16:06]OFD Sender: No OFD packet to send [05:16:11]OFD Sender: No OFD packet to send [05:16:16]OFD Sender: No OFD packet to send [05:16:21]OFD Sender: No OFD packet to send [05:16:26]OFD Sender: No OFD packet to send [05:16:31]OFD Sender: No OFD packet to send [05:16:36]OFD Sender: No OFD packet to send [05:16:41]OFD Sender: No OFD packet to send [05:16:46]OFD Sender: No OFD packet to send [05:16:51]OFD Sender: No OFD packet to send [05:16:56]OFD Sender: No OFD packet to send [05:17:01]OFD Sender: No OFD packet to send [05:17:06]OFD Sender: No OFD packet to send [05:17:11]OFD Sender: No OFD packet to send [05:17:16]OFD Sender: No OFD packet to send [05:17:21]OFD Sender: No OFD packet to send [05:17:21]recv_with_timeout no data received [05:17:26]OFD Sender: No OFD packet to send [05:17:31]OFD Sender: No OFD packet to send [05:17:36]OFD Sender: No OFD packet to send [05:17:41]OFD Sender: No OFD packet to send [05:17:46]OFD Sender: No OFD packet to send [05:17:50]recv_with_timeout no data received [05:17:51]OFD Sender: No OFD packet to send [05:17:56]OFD Sender: No OFD packet to send [05:18:01]recv_with_timeout no data received [05:18:01]OFD Sender: No OFD packet to send [05:18:06]OFD Sender: No OFD packet to send [05:18:11]OFD Sender: No OFD packet to send [05:18:16]OFD Sender: No OFD packet to send [05:18:21]OFD Sender: No OFD packet to send [05:18:26]OFD Sender: No OFD packet to send [05:18:30]recv_with_timeout no data received [05:18:31]OFD Sender: No OFD packet to send [05:18:36]OFD Sender: No OFD packet to send [05:18:40]recv_with_timeout no data received [05:18:41]OFD Sender: No OFD packet to send [05:18:46]OFD Sender: No OFD packet to send [05:18:51]OFD Sender: No OFD packet to send [05:18:56]OFD Sender: No OFD packet to send [05:19:01]OFD Sender: No OFD packet to send [05:19:06]OFD Sender: No OFD packet to send [05:19:11]OFD Sender: No OFD packet to send [05:19:16]OFD Sender: No OFD packet to send [05:19:21]OFD Sender: No OFD packet to send [05:19:26]OFD Sender: No OFD packet to send [05:19:31]OFD Sender: No OFD packet to send [05:19:35]recv_with_timeout no data received [05:19:36]OFD Sender: No OFD packet to send [05:19:41]OFD Sender: No OFD packet to send [05:19:46]OFD Sender: No OFD packet to send [05:19:51]OFD Sender: No OFD packet to send [05:19:56]OFD Sender: No OFD packet to send [05:20:01]OFD Sender: No OFD packet to send [05:20:06]OFD Sender: No OFD packet to send [05:20:11]OFD Sender: No OFD packet to send [05:20:16]OFD Sender: No OFD packet to send [05:20:21]OFD Sender: No OFD packet to send [05:20:26]OFD Sender: No OFD packet to send [05:20:27]recv_with_timeout no data received [05:20:31]OFD Sender: No OFD packet to send [05:20:36]OFD Sender: No OFD packet to send [05:20:41]OFD Sender: No OFD packet to send [05:20:46]OFD Sender: No OFD packet to send [05:20:51]OFD Sender: No OFD packet to send [05:20:56]OFD Sender: No OFD packet to send [05:21:01]OFD Sender: No OFD packet to send [05:21:06]OFD Sender: No OFD packet to send [05:21:11]OFD Sender: No OFD packet to send [05:21:16]OFD Sender: No OFD packet to send [05:21:21]OFD Sender: No OFD packet to send [05:21:26]OFD Sender: No OFD packet to send [05:21:31]OFD Sender: No OFD packet to send [05:21:36]OFD Sender: No OFD packet to send [05:21:41]OFD Sender: No OFD packet to send [05:21:46]OFD Sender: No OFD packet to send [05:21:51]recv_with_timeout no data received [05:21:51]OFD Sender: No OFD packet to send [05:21:56]OFD Sender: No OFD packet to send [05:22:01]OFD Sender: No OFD packet to send [05:22:02]recv_with_timeout no data received [05:22:06]OFD Sender: No OFD packet to send [05:22:11]OFD Sender: No OFD packet to send [05:22:16]OFD Sender: No OFD packet to send [05:22:21]OFD Sender: No OFD packet to send [05:22:26]OFD Sender: No OFD packet to send [05:22:31]OFD Sender: No OFD packet to send [05:22:36]OFD Sender: No OFD packet to send [05:22:41]OFD Sender: No OFD packet to send [05:22:46]OFD Sender: No OFD packet to send [05:22:51]OFD Sender: No OFD packet to send [05:22:56]OFD Sender: No OFD packet to send [05:23:01]OFD Sender: No OFD packet to send [05:23:06]OFD Sender: No OFD packet to send [05:23:11]recv_with_timeout no data received [05:23:11]OFD Sender: No OFD packet to send [05:23:16]OFD Sender: No OFD packet to send [05:23:21]OFD Sender: No OFD packet to send [05:23:22]recv_with_timeout no data received [05:23:26]OFD Sender: No OFD packet to send [05:23:31]OFD Sender: No OFD packet to send [05:23:37]OFD Sender: No OFD packet to send [05:23:38]recv_with_timeout no data received [05:23:42]OFD Sender: No OFD packet to send [05:23:47]OFD Sender: No OFD packet to send [05:23:52]OFD Sender: No OFD packet to send [05:23:57]OFD Sender: No OFD packet to send [05:24:02]OFD Sender: No OFD packet to send [05:24:07]OFD Sender: No OFD packet to send [05:24:12]OFD Sender: No OFD packet to send [05:24:17]OFD Sender: No OFD packet to send [05:24:22]OFD Sender: No OFD packet to send [05:24:27]OFD Sender: No OFD packet to send [05:24:32]OFD Sender: No OFD packet to send [05:24:37]OFD Sender: No OFD packet to send [05:24:42]OFD Sender: No OFD packet to send [05:24:47]OFD Sender: No OFD packet to send [05:24:52]OFD Sender: No OFD packet to send [05:24:57]OFD Sender: No OFD packet to send [05:25:02]OFD Sender: No OFD packet to send [05:25:07]OFD Sender: No OFD packet to send [05:25:12]OFD Sender: No OFD packet to send [05:25:17]OFD Sender: No OFD packet to send [05:25:18]recv_with_timeout no data received [05:25:22]OFD Sender: No OFD packet to send [05:25:27]OFD Sender: No OFD packet to send [05:25:32]OFD Sender: No OFD packet to send [05:25:37]OFD Sender: No OFD packet to send [05:25:42]OFD Sender: No OFD packet to send [05:25:47]OFD Sender: No OFD packet to send [05:25:52]OFD Sender: No OFD packet to send [05:25:57]OFD Sender: No OFD packet to send [05:25:57]recv_with_timeout no data received [05:26:02]OFD Sender: No OFD packet to send [05:26:07]OFD Sender: No OFD packet to send [05:26:12]OFD Sender: No OFD packet to send [05:26:17]OFD Sender: No OFD packet to send [05:26:21]recv_with_timeout no data received [05:26:22]OFD Sender: No OFD packet to send [05:26:23]accept exits with 10 [05:26:23]New connection [05:26:23]New thread 3066932580 created [05:26:23]Thread 3066789220 joined [05:26:23]Waiting for new connection... [05:26:23] Sock 10.Parse request [05:26:23]Sock 10.Check first char [05:26:23]Sock 10.First char is OK [05:26:23]request: POST /json_proto HTTP/1.0 [05:26:23]Method: POST [05:26:23]URL: /json_proto [05:26:23]Method is POST - this is cgi request [05:26:23]url: /json_proto [05:26:23]query_string will be loaded in cgi processing [05:26:23]execute_cgi json_proto POST (null) [05:26:23]execute_cgi path=json_proto method=POST [05:26:23]POST find Content-Length [05:26:23]Host: 172.17.43.195:8080 [05:26:23]Content-Length: 797 [05:26:23]Content-Type: application/json [05:26:23] [05:26:23]POST finish read [05:26:23]Found Content-Length = 797 [05:26:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 44.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02083", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:26:23]execute_script... [05:26:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 44.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02083", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:26:23]POST & json_proto [05:26:23]process_json_proto [05:26:23]json parsed OK: [05:26:23]protocol is kg_v1.0 [05:26:23]action value=close_receipt [05:26:23]process_action close_receipt [05:26:23]cmd_close_receipt [05:26:23]MH_GetDate [05:26:23]Write to MH i2c: F0 00 00 F4 02 E5 [05:26:23]Write i2c OK [05:26:23]MH_I2C_Read... [05:26:23]Read from MH i2c: F0 [05:26:23]MH_I2C_Read... [05:26:23]Read from MH i2c: F0 09 00 [05:26:23]MH_I2C_Read... [05:26:23]Read from MH i2c: F0 09 00 F4 02 00 81 66 24 67 74 2C AD 66 13 [05:26:23]GetLastDocTimeStamp 1730436067 [05:26:23]current date 1730438785 [05:26:23]FM_GetShiftState [05:26:23]SAM_PROTO_GetShiftState [05:26:23]wFMCommunicate request_size=4 [05:26:23]MH_SAM_APDU [05:26:23]CAPDU: 80 13 01 00 [05:26:23]Write to MH i2c: E2 08 00 F5 02 80 13 01 00 00 00 00 00 74 [05:26:23]Write i2c OK [05:26:23]MH_I2C_Read... [05:26:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:26:23]Read from MH i2c: E2 [05:26:23]MH_I2C_Read... [05:26:23]Read from MH i2c: E2 0E 00 [05:26:23]MH_I2C_Read... [05:26:23]Read from MH i2c: E2 0E 00 F5 02 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 BB [05:26:23]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [05:26:23]wFMCommunicate OK [05:26:23]SAM_PROTO_GetShiftState done [05:26:23]FM_GetShiftState done [05:26:23]opened in 1730419605 [05:26:23]opened+sec_in_day 1730506005 [05:26:23]quantity*price = 0 [05:26:23]sum+1 = 1 [05:26:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 21 01.11.2024 05:26 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02083 ФМ: 0000000000874662 ФД: 73152 ФПД: 92771692182845 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T052625&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73152&fm=92771692182845&tin=02508201610067®Number=0000000000091644&sum=0 [05:26:24]StoreToDocumentArchive [05:26:24]shift 558 fd 73152 [05:26:24]save to /storage/0558/doc_00073152 [05:26:24]save last doc name /storage/0558/doc_00073152 to /storage/kkm_last_doc_name [05:26:24]save OK [05:26:24]Clear old archive folders... [05:26:24]ProcessDocumentItem done err = 0, tmpTLVsize=252 [05:26:24]tlvbuf is 0020EB60 [05:26:24]SAM_PROTO_ClearQueue [05:26:24]wFMCommunicate request_size=4 [05:26:24]MH_SAM_APDU [05:26:24]CAPDU: 80 09 00 00 [05:26:24]Write to MH i2c: E2 08 00 02 03 80 09 00 00 00 00 00 00 77 [05:26:24]Write i2c OK [05:26:24]MH_I2C_Read... [05:26:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:26:24]Read from MH i2c: E2 [05:26:24]MH_I2C_Read... [05:26:24]Read from MH i2c: E2 03 00 [05:26:24]MH_I2C_Read... [05:26:24]Read from MH i2c: E2 03 00 02 03 00 90 00 79 [05:26:24]RAPDU: 90 00 [05:26:24]wFMCommunicate OK [05:26:24]SAM_PROTO_ClearQueue done [05:26:24]KKMCreateOFDPacket [05:26:24]OFDProtocolAddRootSTLVToBuf [05:26:24]FM_MakeSignedData [05:26:24]FM_MakeSignedData [05:26:24]SAM_PROTO_SignData [05:26:24]wFMCommunicate request_size=4 [05:26:24]MH_SAM_APDU [05:26:24]CAPDU: 80 0D 01 02 [05:26:24]Write to MH i2c: E2 08 00 03 03 80 0D 01 02 00 00 00 00 7F [05:26:24]Write i2c OK [05:26:24]MH_I2C_Read... [05:26:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:26:24]Read from MH i2c: E2 [05:26:24]MH_I2C_Read... [05:26:24]Read from MH i2c: E2 03 00 [05:26:24]MH_I2C_Read... [05:26:24]Read from MH i2c: E2 03 00 03 03 00 90 00 7A [05:26:24]RAPDU: 90 00 [05:26:24]wFMCommunicate OK [05:26:24]wFMCommunicate request_size=255 [05:26:24]MH_SAM_APDU [05:26:24]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E0 AB 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 81 66 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C0 1D 01 00 35 04 06 00 [05:26:24]Write to MH i2c: E2 02 01 04 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E0 AB 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 81 66 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C0 1D 01 00 35 04 06 00 00 00 E4 [05:26:24]Write i2c OK [05:26:24]MH_I2C_Read... [05:26:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:26:25]Read from MH i2c: E2 [05:26:25]MH_I2C_Read... [05:26:25]Read from MH i2c: E2 03 00 [05:26:25]MH_I2C_Read... [05:26:25]Read from MH i2c: E2 03 00 04 03 00 90 00 7B [05:26:25]RAPDU: 90 00 [05:26:25]wFMCommunicate OK [05:26:25]wFMCommunicate request_size=11 [05:26:25]MH_SAM_APDU [05:26:25]CAPDU: 80 0D 02 02 06 54 60 17 C1 FD 3D [05:26:25]Write to MH i2c: E2 0E 00 05 03 80 0D 02 02 06 00 54 60 17 C1 FD 3D 00 00 54 [05:26:25]Write i2c OK [05:26:25]MH_I2C_Read... [05:26:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:26:25]Read from MH i2c: E2 [05:26:25]MH_I2C_Read... [05:26:25]Read from MH i2c: E2 03 00 [05:26:25]MH_I2C_Read... [05:26:25]Read from MH i2c: E2 03 00 05 03 00 90 00 7C [05:26:25]RAPDU: 90 00 [05:26:25]wFMCommunicate OK [05:26:25]wFMCommunicate request_size=4 [05:26:25]MH_SAM_APDU [05:26:25]CAPDU: 80 0D 03 02 [05:26:25]Write to MH i2c: E2 08 00 06 03 80 0D 03 02 00 00 00 00 84 [05:26:25]Write i2c OK [05:26:25]MH_I2C_Read... [05:26:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:26:25]Read from MH i2c: E2 [05:26:25]MH_I2C_Read... [05:26:25]Read from MH i2c: E2 0B 00 [05:26:25]MH_I2C_Read... [05:26:25]Read from MH i2c: E2 0B 00 06 03 00 6A BC 9A 43 EA 9E F5 98 90 00 9D [05:26:25]RAPDU: 6A BC 9A 43 EA 9E F5 98 90 00 [05:26:25]wFMCommunicate OK [05:26:25]SAM_PROTO_SignData done [05:26:25]FM_MakeSignedData done [05:26:25]CreateOFDProtocolMessage [05:26:25]wFMCommunicate request_size=4 [05:26:25]MH_SAM_APDU [05:26:25]CAPDU: 80 11 00 00 [05:26:25]Write to MH i2c: E2 08 00 07 03 80 11 00 00 00 00 00 00 84 [05:26:25]Write i2c OK [05:26:25]MH_I2C_Read... [05:26:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:26:25]Read from MH i2c: E2 [05:26:25]MH_I2C_Read... [05:26:25]Read from MH i2c: E2 17 00 [05:26:25]MH_I2C_Read... [05:26:25]Read from MH i2c: E2 17 00 07 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D8 [05:26:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:26:25]wFMCommunicate OK [05:26:25]CreateOFDProtocolMessage done [05:26:25]OFDSenderStorePacket 73152 [05:26:25]StoreOFDPacket docnum=73152 [05:26:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 87 5D 08 01 B7 46 5A 03 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 E0 AB 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 81 66 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C0 1D 01 00 35 04 06 00 54 60 17 C1 FD 3D 6A BC 9A 43 EA 9E F5 98 [05:26:25]CheckFolder [05:26:25]dirname=/storage/ofd_packets [05:26:25]CheckFolder done [05:26:25]ProducePacketName [05:26:25]name=ofd_packets/00073152 [05:26:25]NVStorageSaveData ofd_packets/00073152 [05:26:25]File name is /storage/ofd_packets/00073152 [05:26:25]Write 302 bytes [05:26:25]NVStorageSaveData done [05:26:25]OFDSenderStorePacket done [05:26:25]KKMCreateOFDPacket done [05:26:25]NVStorageSaveData kkm_last_timestamp [05:26:25]File name is /storage/kkm_last_timestamp [05:26:25]Write 4 bytes [05:26:25]NVStorageSaveData done [05:26:25]ExternCall_PrintAddStr [05:26:25]wPrintStart [05:26:25]Write to MH i2c: 01 00 00 08 03 0B [05:26:25]Write i2c OK [05:26:25]MH_I2C_Read... [05:26:25]Read from MH i2c: 01 [05:26:25]MH_I2C_Read... [05:26:25]Read from MH i2c: 01 07 00 [05:26:25]MH_I2C_Read... [05:26:25]Read from MH i2c: 01 07 00 08 03 00 00 00 00 00 FF 0F 20 [05:26:25]RasterBufferAndPrint [05:26:25]line Счет N : (1)952751 [05:26:25]line ИНН: 02508201610067 [05:26:25]line Контрольно-Кассовый Чек [05:26:25]line ПРОДАЖА [05:26:25]line ТРК (МРК, ГНК) : 33 [05:26:25]line Товар: 2710194210 [05:26:25]line ДТ(л)-К-5 [05:26:25]line 44.000 * 0.00 [05:26:25]line = 0.00 [05:26:25]line НДС 12% НСП 1% [05:26:25]line > о реализуемом товаре [05:26:25]line ИТОГО: 0.00 [05:26:25]line НСП 1% : 0.00 [05:26:25]line НДС 12% : 0.00 [05:26:25]line Наличными: 0.00 [05:26:25]line Безнал.: 0.00 [05:26:25]line Место: АЗС № 113 "Партнер Нефть" [05:26:25]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [05:26:25]line СНО: Общий режим [05:26:25]line Чек 21 01.11.2024 05:26 [05:26:25]line Смена: 558 ФФД: 1.0 [05:26:25]line ЗНМ: 0300000087 [05:26:25]line РНМ: 0000000000091644 [05:26:25]line Версия ККМ: 001 [05:26:25]line Талоны: Топливная Карта [05:26:25]line 02083 [05:26:25]line ФМ: 0000000000874662 [05:26:25]line ФД: 73152 [05:26:25]line ФПД: 92771692182845 [05:26:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T052625&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73152&fm=92771692182845&tin=02508201610067®Number=0000000000091644&sum=0 [05:26:25]written 0, free lines is 4095 [05:26:25]OFD Sender: Processing packet 73152 [packets to send 282, broken 281] [05:26:25]ProducePacketName [05:26:25]name=ofd_packets/00073152 [05:26:25]OFD Sender: To server: pG, [05:26:25]CommunicateWithHost lk.salyk.kg:30040 [05:26:25]ConnectInit lk.salyk.kg [05:26:26]Write to MH i2c: 01 00 00 32 03 35 [05:26:26]Write i2c OK [05:26:26]MH_I2C_Read... [05:26:26]Read from MH i2c: 01 [05:26:26]MH_I2C_Read... [05:26:26]Read from MH i2c: 01 07 00 [05:26:26]MH_I2C_Read... [05:26:26]Read from MH i2c: 01 07 00 32 03 00 00 00 00 00 E3 0C 2B [05:26:26]RasterBufferAndPrint [05:26:26]line [05:26:26]line [05:26:26]line [05:26:26]line [05:26:26]line [05:26:26]written 0, free lines is 3305 [05:26:26]MH_Cut [05:26:26]Write to MH i2c: D1 01 00 39 03 01 0E [05:26:26]Write i2c OK [05:26:26]MH_I2C_Read... [05:26:26]Read from MH i2c: D1 [05:26:26]MH_I2C_Read... [05:26:26]Read from MH i2c: D1 01 00 [05:26:26]MH_I2C_Read... [05:26:26]Read from MH i2c: D1 01 00 39 03 00 0D [05:26:26]Write to MH i2c: 01 00 00 3A 03 3D [05:26:26]Write i2c OK [05:26:26]MH_I2C_Read... [05:26:26]*** Cut start [05:26:26]*** Partial cut [05:26:26]*** CUTSNS_PIN = 1 [05:26:26]*** CUTSNS_PIN = 0 [05:26:27]*** Brake cut motor [05:26:27]Read from MH i2c: 01 [05:26:27]MH_I2C_Read... [05:26:27]*** Stop cut motor [05:26:27]*** Cut end [05:26:27]Read from MH i2c: 01 07 00 [05:26:27]MH_I2C_Read... [05:26:27]Read from MH i2c: 01 07 00 3A 03 00 00 00 00 00 FF 0F 52 [05:26:27]process_action close_receipt done [05:26:27]requested_data is exist [05:26:27]produce_requested_data [05:26:27]requested_item fm.sn is exist - process it [05:26:27]wFMCommunicate request_size=4 [05:26:27]MH_SAM_APDU [05:26:27]CAPDU: 80 11 00 00 [05:26:27]Write to MH i2c: E2 08 00 3B 03 80 11 00 00 00 00 00 00 B8 [05:26:27]Write i2c OK [05:26:27]MH_I2C_Read... [05:26:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:26:27]Read from MH i2c: E2 [05:26:27]MH_I2C_Read... [05:26:27]Read from MH i2c: E2 17 00 [05:26:27]MH_I2C_Read... [05:26:27]Read from MH i2c: E2 17 00 3B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 0C [05:26:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:26:27]wFMCommunicate OK [05:26:27]requested_item fd.num is exist - process it [05:26:27]SAM_PROTO_GetFieldsCounters [05:26:27]wFMCommunicate request_size=4 [05:26:27]MH_SAM_APDU [05:26:27]CAPDU: 80 13 00 00 [05:26:27]Write to MH i2c: E2 08 00 3C 03 80 13 00 00 00 00 00 00 BB [05:26:27]Write i2c OK [05:26:27]MH_I2C_Read... [05:26:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:26:27]Read from MH i2c: E2 [05:26:27]MH_I2C_Read... [05:26:27]Read from MH i2c: E2 62 00 [05:26:27]MH_I2C_Read... [05:26:27]Read from MH i2c: E2 62 00 3C 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C0 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [05:26:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C0 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:26:27]wFMCommunicate OK [05:26:27]SAM_PROTO_GetFieldsCounters done [05:26:27]requested_item shift.num is exist - process it [05:26:27]requested_item shift.opened is exist - process it [05:26:27]req_shift_opened [05:26:27]FM_GetShiftState [05:26:27]SAM_PROTO_GetShiftState [05:26:27]wFMCommunicate request_size=4 [05:26:27]MH_SAM_APDU [05:26:27]CAPDU: 80 13 01 00 [05:26:27]Write to MH i2c: E2 08 00 3D 03 80 13 01 00 00 00 00 00 BD [05:26:27]Write i2c OK [05:26:27]MH_I2C_Read... [05:26:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:26:27]Read from MH i2c: E2 [05:26:27]MH_I2C_Read... [05:26:27]Read from MH i2c: E2 0E 00 [05:26:27]MH_I2C_Read... [05:26:27]Read from MH i2c: E2 0E 00 3D 03 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 04 [05:26:27]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [05:26:27]wFMCommunicate OK [05:26:27]SAM_PROTO_GetShiftState done [05:26:27]FM_GetShiftState done [05:26:27]req_shift_opened done [05:26:27]requested_item shift.open_date is exist - process it [05:26:27]req_shift_open_date [05:26:27]req_shift_open_date done [05:26:27]produce_requested_data done [05:26:27]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73152,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [05:26:27]process_action_free close_receipt [05:26:27]json_value_free [05:26:27]json_value_free done [05:26:27]process_json_proto returns [05:26:27]Send response to host [05:26:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73152,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [05:26:27]free response buf [05:26:27]execute_script done [05:26:27]execute_script returns [05:26:27]free content buf [05:26:27]Sock 10.Close socket [05:26:27]Sock 10.Thread stoped [05:26:30]ConnectInit Can't take IP for lk.salyk.kg [05:26:30]CommunicateWithHost connect error [05:26:30]CommunicateWithHost err = -1 [05:26:30]OFD Sender: Server communicate error [05:26:35]OFD Sender: Processing packet 73152 [packets to send 282, broken 281] [05:26:35]ProducePacketName [05:26:35]name=ofd_packets/00073152 [05:26:35]OFD Sender: To server: pG, [05:26:35]CommunicateWithHost lk.salyk.kg:30040 [05:26:35]ConnectInit lk.salyk.kg [05:26:36]Connected sock=9 [05:26:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 87 5D 08 01 B7 46 5A 03 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 E0 AB 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 81 66 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C0 1D 01 00 35 04 06 00 54 60 17 C1 FD 3D 6A BC 9A 43 EA 9E F5 98 [05:26:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 EB 28 47 00 B2 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C0 1D 01 00 F4 03 04 00 3F 11 24 67 B6 04 01 00 00 5E 4B 31 C9 CD 87 D2 10 [05:26:36]CommunicateWithHost err = 0 [05:26:36]CheckOFDResponse [05:26:36]1017 (14) - 77093643461234 [05:26:36]1041 (16) - 0000000000874662 [05:26:36]1040 (4) - 73152 [05:26:36]1012 (4) - 31.10.2024 23:22 [05:26:36]1206 (1) - 0 [05:26:36]OFD Sender: Remove packet 73152 [05:26:36]ProducePacketName [05:26:36]name=ofd_packets/00073152 [05:26:36]NVStorageDeleteData [05:26:37]OFD Sender: No OFD packet to send [05:26:42]OFD Sender: No OFD packet to send [05:26:45]recv_with_timeout no data received [05:26:47]OFD Sender: No OFD packet to send [05:26:52]OFD Sender: No OFD packet to send [05:26:56]recv_with_timeout no data received [05:26:57]OFD Sender: No OFD packet to send [05:27:02]OFD Sender: No OFD packet to send [05:27:07]OFD Sender: No OFD packet to send [05:27:12]OFD Sender: No OFD packet to send [05:27:17]OFD Sender: No OFD packet to send [05:27:22]OFD Sender: No OFD packet to send [05:27:27]OFD Sender: No OFD packet to send [05:27:32]OFD Sender: No OFD packet to send [05:27:37]OFD Sender: No OFD packet to send [05:27:42]OFD Sender: No OFD packet to send [05:27:47]OFD Sender: No OFD packet to send [05:27:52]OFD Sender: No OFD packet to send [05:27:57]OFD Sender: No OFD packet to send [05:28:02]OFD Sender: No OFD packet to send [05:28:07]OFD Sender: No OFD packet to send [05:28:12]OFD Sender: No OFD packet to send [05:28:12]recv_with_timeout no data received [05:28:17]OFD Sender: No OFD packet to send [05:28:22]OFD Sender: No OFD packet to send [05:28:23]recv_with_timeout no data received [05:28:27]OFD Sender: No OFD packet to send [05:28:32]OFD Sender: No OFD packet to send [05:28:37]OFD Sender: No OFD packet to send [05:28:42]OFD Sender: No OFD packet to send [05:28:44]accept exits with 7 [05:28:44]New connection [05:28:44]New thread 3066789220 created [05:28:44]Thread 3066932580 joined [05:28:44]Waiting for new connection... [05:28:44] Sock 7.Parse request [05:28:44]Sock 7.Check first char [05:28:44]Sock 7.First char is OK [05:28:44]request: POST /json_proto HTTP/1.0 [05:28:44]Method: POST [05:28:44]URL: /json_proto [05:28:44]Method is POST - this is cgi request [05:28:44]url: /json_proto [05:28:44]query_string will be loaded in cgi processing [05:28:44]execute_cgi json_proto POST (null) [05:28:44]execute_cgi path=json_proto method=POST [05:28:44]POST find Content-Length [05:28:44]Host: 172.17.43.195:8080 [05:28:44]Content-Length: 685 [05:28:44]Content-Type: application/json [05:28:44] [05:28:44]POST finish read [05:28:44]Found Content-Length = 685 [05:28:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:28:44]execute_script... [05:28: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)952752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:28:44]POST & json_proto [05:28:44]process_json_proto [05:28:44]json parsed OK: [05:28:44]protocol is kg_v1.0 [05:28:44]action value=close_receipt [05:28:44]process_action close_receipt [05:28:44]cmd_close_receipt [05:28:44]MH_GetDate [05:28:44]Write to MH i2c: F0 00 00 3E 03 30 [05:28:44]Write i2c OK [05:28:44]MH_I2C_Read... [05:28:44]Read from MH i2c: F0 [05:28:44]MH_I2C_Read... [05:28:44]Read from MH i2c: F0 09 00 [05:28:44]MH_I2C_Read... [05:28:44]Read from MH i2c: F0 09 00 3E 03 00 0E 67 24 67 74 2C AD 66 EC [05:28:44]GetLastDocTimeStamp 1730438785 [05:28:44]current date 1730438926 [05:28:44]FM_GetShiftState [05:28:44]SAM_PROTO_GetShiftState [05:28:44]wFMCommunicate request_size=4 [05:28:44]MH_SAM_APDU [05:28:44]CAPDU: 80 13 01 00 [05:28:44]Write to MH i2c: E2 08 00 3F 03 80 13 01 00 00 00 00 00 BF [05:28:44]Write i2c OK [05:28:44]MH_I2C_Read... [05:28:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:28:44]Read from MH i2c: E2 [05:28:44]MH_I2C_Read... [05:28:44]Read from MH i2c: E2 0E 00 [05:28:44]MH_I2C_Read... [05:28:44]Read from MH i2c: E2 0E 00 3F 03 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 06 [05:28:44]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [05:28:44]wFMCommunicate OK [05:28:44]SAM_PROTO_GetShiftState done [05:28:44]FM_GetShiftState done [05:28:44]opened in 1730419605 [05:28:44]opened+sec_in_day 1730506005 [05:28:44]quantity*price = 100011 [05:28:44]sum+1 = 100013 [05:28:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 22 01.11.2024 05:28 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73153 ФПД: 266396560274324 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T052846&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73153&fm=266396560274324&tin=02508201610067®Number=0000000000091644&sum=100000 [05:28:45]StoreToDocumentArchive [05:28:45]shift 558 fd 73153 [05:28:45]save to /storage/0558/doc_00073153 [05:28:45]save last doc name /storage/0558/doc_00073153 to /storage/kkm_last_doc_name [05:28:45]save OK [05:28:45]Clear old archive folders... [05:28:45]ProcessDocumentItem done err = 0, tmpTLVsize=250 [05:28:45]tlvbuf is 0021CB80 [05:28:45]SAM_PROTO_ClearQueue [05:28:45]wFMCommunicate request_size=4 [05:28:45]MH_SAM_APDU [05:28:45]CAPDU: 80 09 00 00 [05:28:45]Write to MH i2c: E2 08 00 4C 03 80 09 00 00 00 00 00 00 C1 [05:28:45]Write i2c OK [05:28:45]MH_I2C_Read... [05:28:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:28:45]Read from MH i2c: E2 [05:28:45]MH_I2C_Read... [05:28:45]Read from MH i2c: E2 03 00 [05:28:45]MH_I2C_Read... [05:28:45]Read from MH i2c: E2 03 00 4C 03 00 90 00 C3 [05:28:45]RAPDU: 90 00 [05:28:45]wFMCommunicate OK [05:28:45]SAM_PROTO_ClearQueue done [05:28:45]KKMCreateOFDPacket [05:28:45]OFDProtocolAddRootSTLVToBuf [05:28:45]FM_MakeSignedData [05:28:45]FM_MakeSignedData [05:28:45]SAM_PROTO_SignData [05:28:45]wFMCommunicate request_size=4 [05:28:45]MH_SAM_APDU [05:28:45]CAPDU: 80 0D 01 02 [05:28:45]Write to MH i2c: E2 08 00 4D 03 80 0D 01 02 00 00 00 00 C9 [05:28:45]Write i2c OK [05:28:45]MH_I2C_Read... [05:28:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:28:45]Read from MH i2c: E2 [05:28:45]MH_I2C_Read... [05:28:45]Read from MH i2c: E2 03 00 [05:28:45]MH_I2C_Read... [05:28:45]Read from MH i2c: E2 03 00 4D 03 00 90 00 C4 [05:28:45]RAPDU: 90 00 [05:28:45]wFMCommunicate OK [05:28:45]wFMCommunicate request_size=255 [05:28:45]MH_SAM_APDU [05:28:45]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 0E 67 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C1 1D 01 00 35 04 06 00 F2 49 [05:28:45]Write to MH i2c: E2 02 01 4E 03 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 0E 67 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C1 1D 01 00 35 04 06 00 F2 49 00 00 8A [05:28:45]Write i2c OK [05:28:45]MH_I2C_Read... [05:28:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:28:46]Read from MH i2c: E2 [05:28:46]MH_I2C_Read... [05:28:46]Read from MH i2c: E2 03 00 [05:28:46]MH_I2C_Read... [05:28:46]Read from MH i2c: E2 03 00 4E 03 00 90 00 C5 [05:28:46]RAPDU: 90 00 [05:28:46]wFMCommunicate OK [05:28:46]wFMCommunicate request_size=9 [05:28:46]MH_SAM_APDU [05:28:46]CAPDU: 80 0D 02 02 04 48 58 33 94 [05:28:46]Write to MH i2c: E2 0C 00 4F 03 80 0D 02 02 04 00 48 58 33 94 00 00 3B [05:28:46]Write i2c OK [05:28:46]MH_I2C_Read... [05:28:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:28:46]Read from MH i2c: E2 [05:28:46]MH_I2C_Read... [05:28:46]Read from MH i2c: E2 03 00 [05:28:46]MH_I2C_Read... [05:28:46]Read from MH i2c: E2 03 00 4F 03 00 90 00 C6 [05:28:46]RAPDU: 90 00 [05:28:46]wFMCommunicate OK [05:28:46]wFMCommunicate request_size=4 [05:28:46]MH_SAM_APDU [05:28:46]CAPDU: 80 0D 03 02 [05:28:46]Write to MH i2c: E2 08 00 50 03 80 0D 03 02 00 00 00 00 CE [05:28:46]Write i2c OK [05:28:46]MH_I2C_Read... [05:28:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:28:46]Read from MH i2c: E2 [05:28:46]MH_I2C_Read... [05:28:46]Read from MH i2c: E2 0B 00 [05:28:46]MH_I2C_Read... [05:28:46]Read from MH i2c: E2 0B 00 50 03 00 E3 4E 34 B2 A0 F7 89 2F 90 00 35 [05:28:46]RAPDU: E3 4E 34 B2 A0 F7 89 2F 90 00 [05:28:46]wFMCommunicate OK [05:28:46]SAM_PROTO_SignData done [05:28:46]FM_MakeSignedData done [05:28:46]CreateOFDProtocolMessage [05:28:46]wFMCommunicate request_size=4 [05:28:46]MH_SAM_APDU [05:28:46]CAPDU: 80 11 00 00 [05:28:46]Write to MH i2c: E2 08 00 51 03 80 11 00 00 00 00 00 00 CE [05:28:46]Write i2c OK [05:28:46]MH_I2C_Read... [05:28:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:28:46]Read from MH i2c: E2 [05:28:46]MH_I2C_Read... [05:28:46]Read from MH i2c: E2 17 00 [05:28:46]MH_I2C_Read... [05:28:46]Read from MH i2c: E2 17 00 51 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 22 [05:28:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:28:46]wFMCommunicate OK [05:28:46]CreateOFDProtocolMessage done [05:28:46]OFDSenderStorePacket 73153 [05:28:46]StoreOFDPacket docnum=73153 [05:28:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 5A 54 06 01 F9 C4 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 0E 67 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C1 1D 01 00 35 04 06 00 F2 49 48 58 33 94 E3 4E 34 B2 A0 F7 89 2F [05:28:46]CheckFolder [05:28:46]dirname=/storage/ofd_packets [05:28:46]CheckFolder done [05:28:46]ProducePacketName [05:28:46]name=ofd_packets/00073153 [05:28:46]NVStorageSaveData ofd_packets/00073153 [05:28:46]File name is /storage/ofd_packets/00073153 [05:28:46]Write 300 bytes [05:28:46]NVStorageSaveData done [05:28:46]OFDSenderStorePacket done [05:28:46]KKMCreateOFDPacket done [05:28:46]NVStorageSaveData kkm_last_timestamp [05:28:46]File name is /storage/kkm_last_timestamp [05:28:46]Write 4 bytes [05:28:46]NVStorageSaveData done [05:28:46]ExternCall_PrintAddStr [05:28:46]wPrintStart [05:28:46]Write to MH i2c: 01 00 00 52 03 55 [05:28:46]Write i2c OK [05:28:46]MH_I2C_Read... [05:28:46]Read from MH i2c: 01 [05:28:46]MH_I2C_Read... [05:28:46]Read from MH i2c: 01 07 00 [05:28:46]MH_I2C_Read... [05:28:46]Read from MH i2c: 01 07 00 52 03 00 00 00 00 00 FF 0F 6A [05:28:46]RasterBufferAndPrint [05:28:46]line Счет N : (1)952752 [05:28:46]line ИНН: 02508201610067 [05:28:46]line Контрольно-Кассовый Чек [05:28:46]line ПРОДАЖА [05:28:46]line ТРК (МРК, ГНК) : 71 [05:28:46]line Товар: 2711190000 [05:28:46]line ГАЗ-К-3 [05:28:46]line 25.710 * 38.90 [05:28:46]line = 1000.12 [05:28:46]line НДС 12% НСП 1% [05:28:46]line > о реализуемом товаре [05:28:46]line ОКРУГЛЕНИЕ: -0.12 [05:28:46]line ИТОГО: 1000.00 [05:28:46]line Внесено: 1000.00 [05:28:46]line СДАЧА: 0.00 [05:28:46]line НСП 1% : 8.85 [05:28:46]line НДС 12% : 106.21 [05:28:46]line Наличными: 1000.00 [05:28:46]line Безнал.: 0.00 [05:28:46]line Место: АЗС № 113 "Партнер Нефть" [05:28:46]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [05:28:46]line СНО: Общий режим [05:28:46]line Чек 22 01.11.2024 05:28 [05:28:46]line Смена: 558 ФФД: 1.0 [05:28:46]line ЗНМ: 0300000087 [05:28:46]line РНМ: 0000000000091644 [05:28:46]line Версия ККМ: 001 [05:28:46]line ФМ: 0000000000874662 [05:28:46]line ФД: 73153 [05:28:46]line ФПД: 266396560274324 [05:28:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T052846&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73153&fm=266396560274324&tin=02508201610067®Number=0000000000091644&sum=100000 [05:28:46]OFD Sender: Processing packet 73153 [packets to send 282, broken 281] [05:28:46]ProducePacketName [05:28:46]name=ofd_packets/00073153 [05:28:46]OFD Sender: To server: pG, [05:28:46]CommunicateWithHost lk.salyk.kg:30040 [05:28:46]ConnectInit lk.salyk.kg [05:28:46]written 0, free lines is 4095 [05:28:47]Write to MH i2c: 01 00 00 7D 03 80 [05:28:47]Write i2c OK [05:28:47]MH_I2C_Read... [05:28:47]Read from MH i2c: 01 [05:28:47]MH_I2C_Read... [05:28:47]Read from MH i2c: 01 07 00 [05:28:47]MH_I2C_Read... [05:28:47]Read from MH i2c: 01 07 00 7D 03 00 00 00 00 00 D5 0C 68 [05:28:47]RasterBufferAndPrint [05:28:47]line [05:28:47]line [05:28:47]line [05:28:47]line [05:28:47]line [05:28:47]written 0, free lines is 3293 [05:28:47]MH_Cut [05:28:47]Write to MH i2c: D1 01 00 84 03 01 59 [05:28:47]Write i2c OK [05:28:47]MH_I2C_Read... [05:28:47]Read from MH i2c: D1 [05:28:47]MH_I2C_Read... [05:28:47]Read from MH i2c: D1 01 00 [05:28:47]MH_I2C_Read... [05:28:47]Read from MH i2c: D1 01 00 84 03 00 58 [05:28:47]Write to MH i2c: 01 00 00 85 03 88 [05:28:47]Write i2c OK [05:28:47]MH_I2C_Read... [05:28:47]Connected sock=10 [05:28:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 5A 54 06 01 F9 C4 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 0E 67 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C1 1D 01 00 35 04 06 00 F2 49 48 58 33 94 E3 4E 34 B2 A0 F7 89 2F [05:28:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 80 70 47 00 76 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C1 1D 01 00 F4 03 04 00 C2 11 24 67 B6 04 01 00 00 A5 78 7A B5 C8 41 4B 8F [05:28:47]CommunicateWithHost err = 0 [05:28:47]CheckOFDResponse [05:28:47]1017 (14) - 77093643461234 [05:28:47]1041 (16) - 0000000000874662 [05:28:47]1040 (4) - 73153 [05:28:47]1012 (4) - 31.10.2024 23:24 [05:28:47]1206 (1) - 0 [05:28:47]OFD Sender: Remove packet 73153 [05:28:47]ProducePacketName [05:28:47]name=ofd_packets/00073153 [05:28:47]NVStorageDeleteData [05:28:47]*** Cut start [05:28:47]*** Partial cut [05:28:47]*** CUTSNS_PIN = 1 [05:28:47]*** CUTSNS_PIN = 0 [05:28:48]*** Brake cut motor [05:28:48]OFD Sender: No OFD packet to send [05:28:48]Read from MH i2c: 01 [05:28:48]MH_I2C_Read... [05:28:48]*** Stop cut motor [05:28:48]*** Cut end [05:28:48]Read from MH i2c: 01 07 00 [05:28:48]MH_I2C_Read... [05:28:48]Read from MH i2c: 01 07 00 85 03 00 00 00 00 00 FF 0F 9D [05:28:48]process_action close_receipt done [05:28:48]requested_data is exist [05:28:48]produce_requested_data [05:28:48]requested_item fm.sn is exist - process it [05:28:48]wFMCommunicate request_size=4 [05:28:48]MH_SAM_APDU [05:28:48]CAPDU: 80 11 00 00 [05:28:48]Write to MH i2c: E2 08 00 86 03 80 11 00 00 00 00 00 00 03 [05:28:48]Write i2c OK [05:28:48]MH_I2C_Read... [05:28:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:28:48]Read from MH i2c: E2 [05:28:48]MH_I2C_Read... [05:28:48]Read from MH i2c: E2 17 00 [05:28:48]MH_I2C_Read... [05:28:48]Read from MH i2c: E2 17 00 86 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 57 [05:28:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:28:48]wFMCommunicate OK [05:28:48]requested_item fd.num is exist - process it [05:28:48]SAM_PROTO_GetFieldsCounters [05:28:48]wFMCommunicate request_size=4 [05:28:48]MH_SAM_APDU [05:28:48]CAPDU: 80 13 00 00 [05:28:48]Write to MH i2c: E2 08 00 87 03 80 13 00 00 00 00 00 00 06 [05:28:48]Write i2c OK [05:28:48]MH_I2C_Read... [05:28:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:28:48]Read from MH i2c: E2 [05:28:48]MH_I2C_Read... [05:28:48]Read from MH i2c: E2 62 00 [05:28:48]MH_I2C_Read... [05:28:48]Read from MH i2c: E2 62 00 87 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C1 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [05:28:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C1 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:28:48]wFMCommunicate OK [05:28:48]SAM_PROTO_GetFieldsCounters done [05:28:48]requested_item shift.num is exist - process it [05:28:48]requested_item shift.opened is exist - process it [05:28:48]req_shift_opened [05:28:48]FM_GetShiftState [05:28:48]SAM_PROTO_GetShiftState [05:28:48]wFMCommunicate request_size=4 [05:28:48]MH_SAM_APDU [05:28:48]CAPDU: 80 13 01 00 [05:28:48]Write to MH i2c: E2 08 00 88 03 80 13 01 00 00 00 00 00 08 [05:28:48]Write i2c OK [05:28:48]MH_I2C_Read... [05:28:48]Read from MH i2c: E2 [05:28:48]MH_I2C_Read... [05:28:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:28:48]Read from MH i2c: E2 0E 00 [05:28:48]MH_I2C_Read... [05:28:48]Read from MH i2c: E2 0E 00 88 03 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 4F [05:28:48]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [05:28:48]wFMCommunicate OK [05:28:48]SAM_PROTO_GetShiftState done [05:28:48]FM_GetShiftState done [05:28:48]req_shift_opened done [05:28:48]requested_item shift.open_date is exist - process it [05:28:48]req_shift_open_date [05:28:48]req_shift_open_date done [05:28:48]produce_requested_data done [05:28:48]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73153,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [05:28:48]process_action_free close_receipt [05:28:48]json_value_free [05:28:48]json_value_free done [05:28:48]process_json_proto returns [05:28:48]Send response to host [05:28:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73153,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [05:28:48]free response buf [05:28:48]execute_script done [05:28:48]execute_script returns [05:28:48]free content buf [05:28:48]Sock 7.Close socket [05:28:48]Sock 7.Thread stoped [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:55]recv_with_timeout no data received [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:12]accept exits with 9 [05:30:12]New connection [05:30:12]New thread 3066932580 created [05:30:12]Thread 3066789220 joined [05:30:12]Waiting for new connection... [05:30:12] Sock 9.Parse request [05:30:12]Sock 9.Check first char [05:30:12]Sock 9.First char is OK [05:30:12]request: POST /json_proto HTTP/1.0 [05:30:12]Method: POST [05:30:12]URL: /json_proto [05:30:12]Method is POST - this is cgi request [05:30:12]url: /json_proto [05:30:12]query_string will be loaded in cgi processing [05:30:12]execute_cgi json_proto POST (null) [05:30:12]execute_cgi path=json_proto method=POST [05:30:12]POST find Content-Length [05:30:12]Host: 172.17.43.195:8080 [05:30:12]Content-Length: 792 [05:30:12]Content-Type: application/json [05:30:12] [05:30:12]POST finish read [05:30:12]Found Content-Length = 792 [05:30:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952753", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 28.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02645", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:30:12]execute_script... [05:30: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)952753", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 28.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02645", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:30:12]POST & json_proto [05:30:12]process_json_proto [05:30:12]json parsed OK: [05:30:12]protocol is kg_v1.0 [05:30:12]action value=close_receipt [05:30:12]process_action close_receipt [05:30:12]cmd_close_receipt [05:30:12]MH_GetDate [05:30:12]Write to MH i2c: F0 00 00 89 03 7B [05:30:12]Write i2c OK [05:30:12]MH_I2C_Read... [05:30:12]Read from MH i2c: F0 [05:30:12]MH_I2C_Read... [05:30:12]Read from MH i2c: F0 09 00 [05:30:12]MH_I2C_Read... [05:30:12]Read from MH i2c: F0 09 00 89 03 00 66 67 24 67 74 2C AD 66 8F [05:30:12]GetLastDocTimeStamp 1730438926 [05:30:12]current date 1730439014 [05:30:12]FM_GetShiftState [05:30:12]SAM_PROTO_GetShiftState [05:30:12]wFMCommunicate request_size=4 [05:30:12]MH_SAM_APDU [05:30:12]CAPDU: 80 13 01 00 [05:30:12]Write to MH i2c: E2 08 00 8A 03 80 13 01 00 00 00 00 00 0A [05:30:12]Write i2c OK [05:30:12]MH_I2C_Read... [05:30:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:30:12]Read from MH i2c: E2 [05:30:12]MH_I2C_Read... [05:30:12]Read from MH i2c: E2 0E 00 [05:30:12]MH_I2C_Read... [05:30:12]Read from MH i2c: E2 0E 00 8A 03 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 51 [05:30:12]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [05:30:12]wFMCommunicate OK [05:30:12]SAM_PROTO_GetShiftState done [05:30:12]FM_GetShiftState done [05:30:12]opened in 1730419605 [05:30:12]opened+sec_in_day 1730506005 [05:30:12]quantity*price = 0 [05:30:12]sum+1 = 1 [05:30:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 23 01.11.2024 05:30 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02645 ФМ: 0000000000874662 ФД: 73154 ФПД: 237948288462275 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T053014&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73154&fm=237948288462275&tin=02508201610067®Number=0000000000091644&sum=0 [05:30:13]StoreToDocumentArchive [05:30:13]shift 558 fd 73154 [05:30:13]save to /storage/0558/doc_00073154 [05:30:13]save last doc name /storage/0558/doc_00073154 to /storage/kkm_last_doc_name [05:30:13]save OK [05:30:13]Clear old archive folders... [05:30:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:30:13]tlvbuf is 001A2ED0 [05:30:13]SAM_PROTO_ClearQueue [05:30:13]wFMCommunicate request_size=4 [05:30:13]MH_SAM_APDU [05:30:13]CAPDU: 80 09 00 00 [05:30:13]Write to MH i2c: E2 08 00 97 03 80 09 00 00 00 00 00 00 0C [05:30:13]Write i2c OK [05:30:13]MH_I2C_Read... [05:30:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:30:13]Read from MH i2c: E2 [05:30:13]MH_I2C_Read... [05:30:13]Read from MH i2c: E2 03 00 [05:30:13]MH_I2C_Read... [05:30:13]Read from MH i2c: E2 03 00 97 03 00 90 00 0E [05:30:13]RAPDU: 90 00 [05:30:13]wFMCommunicate OK [05:30:13]SAM_PROTO_ClearQueue done [05:30:13]KKMCreateOFDPacket [05:30:13]OFDProtocolAddRootSTLVToBuf [05:30:13]FM_MakeSignedData [05:30:13]FM_MakeSignedData [05:30:13]SAM_PROTO_SignData [05:30:13]wFMCommunicate request_size=4 [05:30:13]MH_SAM_APDU [05:30:13]CAPDU: 80 0D 01 02 [05:30:13]Write to MH i2c: E2 08 00 98 03 80 0D 01 02 00 00 00 00 14 [05:30:13]Write i2c OK [05:30:13]MH_I2C_Read... [05:30:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:30:13]Read from MH i2c: E2 [05:30:13]MH_I2C_Read... [05:30:13]Read from MH i2c: E2 03 00 [05:30:13]MH_I2C_Read... [05:30:13]Read from MH i2c: E2 03 00 98 03 00 90 00 0F [05:30:13]RAPDU: 90 00 [05:30:13]wFMCommunicate OK [05:30:13]wFMCommunicate request_size=255 [05:30:13]MH_SAM_APDU [05:30: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 60 6D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 66 67 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C2 1D 01 00 35 04 06 00 D8 [05:30:13]Write to MH i2c: E2 02 01 99 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 66 67 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C2 1D 01 00 35 04 06 00 D8 00 00 42 [05:30:13]Write i2c OK [05:30:13]MH_I2C_Read... [05:30:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:30:14]Read from MH i2c: E2 [05:30:14]MH_I2C_Read... [05:30:14]Read from MH i2c: E2 03 00 [05:30:14]MH_I2C_Read... [05:30:14]Read from MH i2c: E2 03 00 99 03 00 90 00 10 [05:30:14]RAPDU: 90 00 [05:30:14]wFMCommunicate OK [05:30:14]wFMCommunicate request_size=10 [05:30:14]MH_SAM_APDU [05:30:14]CAPDU: 80 0D 02 02 05 69 A7 35 6D C3 [05:30:14]Write to MH i2c: E2 0D 00 9A 03 80 0D 02 02 05 00 69 A7 35 6D C3 00 00 96 [05:30:14]Write i2c OK [05:30:14]MH_I2C_Read... [05:30:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:30:14]Read from MH i2c: E2 [05:30:14]MH_I2C_Read... [05:30:14]Read from MH i2c: E2 03 00 [05:30:14]MH_I2C_Read... [05:30:14]Read from MH i2c: E2 03 00 9A 03 00 90 00 11 [05:30:14]RAPDU: 90 00 [05:30:14]wFMCommunicate OK [05:30:14]wFMCommunicate request_size=4 [05:30:14]MH_SAM_APDU [05:30:14]CAPDU: 80 0D 03 02 [05:30:14]Write to MH i2c: E2 08 00 9B 03 80 0D 03 02 00 00 00 00 19 [05:30:14]Write i2c OK [05:30:14]MH_I2C_Read... [05:30:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:30:14]Read from MH i2c: E2 [05:30:14]MH_I2C_Read... [05:30:14]Read from MH i2c: E2 0B 00 [05:30:14]MH_I2C_Read... [05:30:14]Read from MH i2c: E2 0B 00 9B 03 00 4E 97 9A CD AA 3E BE 72 90 00 7E [05:30:14]RAPDU: 4E 97 9A CD AA 3E BE 72 90 00 [05:30:14]wFMCommunicate OK [05:30:14]SAM_PROTO_SignData done [05:30:14]FM_MakeSignedData done [05:30:14]CreateOFDProtocolMessage [05:30:14]wFMCommunicate request_size=4 [05:30:14]MH_SAM_APDU [05:30:14]CAPDU: 80 11 00 00 [05:30:14]Write to MH i2c: E2 08 00 9C 03 80 11 00 00 00 00 00 00 19 [05:30:14]Write i2c OK [05:30:14]MH_I2C_Read... [05:30:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:30:14]Read from MH i2c: E2 [05:30:14]MH_I2C_Read... [05:30:14]Read from MH i2c: E2 17 00 [05:30:14]MH_I2C_Read... [05:30:14]Read from MH i2c: E2 17 00 9C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 6D [05:30:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:30:14]wFMCommunicate OK [05:30:14]CreateOFDProtocolMessage done [05:30:14]OFDSenderStorePacket 73154 [05:30:14]StoreOFDPacket docnum=73154 [05:30:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 4E 95 07 01 71 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 66 67 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C2 1D 01 00 35 04 06 00 D8 69 A7 35 6D C3 4E 97 9A CD AA 3E BE 72 [05:30:14]CheckFolder [05:30:14]dirname=/storage/ofd_packets [05:30:14]CheckFolder done [05:30:14]ProducePacketName [05:30:14]name=ofd_packets/00073154 [05:30:14]NVStorageSaveData ofd_packets/00073154 [05:30:14]File name is /storage/ofd_packets/00073154 [05:30:14]Write 301 bytes [05:30:14]NVStorageSaveData done [05:30:14]OFDSenderStorePacket done [05:30:14]KKMCreateOFDPacket done [05:30:14]NVStorageSaveData kkm_last_timestamp [05:30:14]File name is /storage/kkm_last_timestamp [05:30:14]Write 4 bytes [05:30:14]NVStorageSaveData done [05:30:14]ExternCall_PrintAddStr [05:30:14]wPrintStart [05:30:14]Write to MH i2c: 01 00 00 9D 03 A0 [05:30:14]Write i2c OK [05:30:14]MH_I2C_Read... [05:30:14]Read from MH i2c: 01 [05:30:14]MH_I2C_Read... [05:30:14]Read from MH i2c: 01 07 00 [05:30:14]MH_I2C_Read... [05:30:14]Read from MH i2c: 01 07 00 9D 03 00 00 00 00 00 FF 0F B5 [05:30:14]RasterBufferAndPrint [05:30:14]line Счет N : (1)952753 [05:30:14]line ИНН: 02508201610067 [05:30:14]line Контрольно-Кассовый Чек [05:30:14]line ПРОДАЖА [05:30:14]line ТРК (МРК, ГНК) : 63 [05:30:14]line Товар: 2710124130 [05:30:14]line Аи-92-К-5 [05:30:14]line 28.000 * 0.00 [05:30:14]line = 0.00 [05:30:14]line НДС 12% НСП 1% [05:30:14]line > о реализуемом товаре [05:30:14]line ИТОГО: 0.00 [05:30:14]line НСП 1% : 0.00 [05:30:14]line НДС 12% : 0.00 [05:30:14]line Наличными: 0.00 [05:30:14]line Безнал.: 0.00 [05:30:14]line Место: АЗС № 113 "Партнер Нефть" [05:30:14]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [05:30:14]line СНО: Общий режим [05:30:14]line Чек 23 01.11.2024 05:30 [05:30:14]line Смена: 558 ФФД: 1.0 [05:30:14]line ЗНМ: 0300000087 [05:30:14]line РНМ: 0000000000091644 [05:30:14]line Версия ККМ: 001 [05:30:14]line Талоны: Топливная Карта [05:30:14]line 02645 [05:30:14]line ФМ: 0000000000874662 [05:30:14]line ФД: 73154 [05:30:14]line ФПД: 237948288462275 [05:30:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T053014&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73154&fm=237948288462275&tin=02508201610067®Number=0000000000091644&sum=0 [05:30:14]OFD Sender: Processing packet 73154 [packets to send 282, broken 281] [05:30:14]ProducePacketName [05:30:14]name=ofd_packets/00073154 [05:30:14]OFD Sender: To server: pG, [05:30:14]CommunicateWithHost lk.salyk.kg:30040 [05:30:14]ConnectInit lk.salyk.kg [05:30:14]written 0, free lines is 4095 [05:30:15]Write to MH i2c: 01 00 00 C7 03 CA [05:30:15]Write i2c OK [05:30:15]MH_I2C_Read... [05:30:15]Read from MH i2c: 01 [05:30:15]MH_I2C_Read... [05:30:15]Read from MH i2c: 01 07 00 [05:30:15]MH_I2C_Read... [05:30:15]Read from MH i2c: 01 07 00 C7 03 00 00 00 00 00 EC 0C C9 [05:30:15]RasterBufferAndPrint [05:30:15]line [05:30:15]line [05:30:15]line [05:30:15]line [05:30:15]line [05:30:15]written 0, free lines is 3311 [05:30:15]MH_Cut [05:30:15]Write to MH i2c: D1 01 00 CE 03 01 A3 [05:30:15]Write i2c OK [05:30:15]MH_I2C_Read... [05:30:15]Read from MH i2c: D1 [05:30:15]MH_I2C_Read... [05:30:15]Read from MH i2c: D1 01 00 [05:30:15]MH_I2C_Read... [05:30:15]Read from MH i2c: D1 01 00 CE 03 00 A2 [05:30:15]Write to MH i2c: 01 00 00 CF 03 D2 [05:30:15]Write i2c OK [05:30:15]MH_I2C_Read... [05:30:15]*** Cut start [05:30:15]*** Partial cut [05:30:15]*** CUTSNS_PIN = 1 [05:30:15]*** CUTSNS_PIN = 0 [05:30:16]*** Brake cut motor [05:30:16]Read from MH i2c: 01 [05:30:16]MH_I2C_Read... [05:30:16]*** Stop cut motor [05:30:16]*** Cut end [05:30:16]Read from MH i2c: 01 07 00 [05:30:16]MH_I2C_Read... [05:30:16]Read from MH i2c: 01 07 00 CF 03 00 00 00 00 00 FF 0F E7 [05:30:16]process_action close_receipt done [05:30:16]requested_data is exist [05:30:16]produce_requested_data [05:30:16]requested_item fm.sn is exist - process it [05:30:16]wFMCommunicate request_size=4 [05:30:16]MH_SAM_APDU [05:30:16]CAPDU: 80 11 00 00 [05:30:16]Write to MH i2c: E2 08 00 D0 03 80 11 00 00 00 00 00 00 4D [05:30:16]Write i2c OK [05:30:16]MH_I2C_Read... [05:30:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:30:16]Read from MH i2c: E2 [05:30:16]MH_I2C_Read... [05:30:16]Read from MH i2c: E2 17 00 [05:30:16]MH_I2C_Read... [05:30:16]Read from MH i2c: E2 17 00 D0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A1 [05:30:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:30:16]wFMCommunicate OK [05:30:16]requested_item fd.num is exist - process it [05:30:16]SAM_PROTO_GetFieldsCounters [05:30:16]wFMCommunicate request_size=4 [05:30:16]MH_SAM_APDU [05:30:16]CAPDU: 80 13 00 00 [05:30:16]Write to MH i2c: E2 08 00 D1 03 80 13 00 00 00 00 00 00 50 [05:30:16]Write i2c OK [05:30:16]MH_I2C_Read... [05:30:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:30:16]Read from MH i2c: E2 [05:30:16]MH_I2C_Read... [05:30:16]Read from MH i2c: E2 62 00 [05:30:16]MH_I2C_Read... [05:30:16]Read from MH i2c: E2 62 00 D1 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C2 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [05:30:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C2 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:30:16]wFMCommunicate OK [05:30:16]SAM_PROTO_GetFieldsCounters done [05:30:16]requested_item shift.num is exist - process it [05:30:16]requested_item shift.opened is exist - process it [05:30:16]req_shift_opened [05:30:16]FM_GetShiftState [05:30:16]SAM_PROTO_GetShiftState [05:30:16]wFMCommunicate request_size=4 [05:30:16]MH_SAM_APDU [05:30:16]CAPDU: 80 13 01 00 [05:30:16]Write to MH i2c: E2 08 00 D2 03 80 13 01 00 00 00 00 00 52 [05:30:16]Write i2c OK [05:30:16]MH_I2C_Read... [05:30:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:30:16]Read from MH i2c: E2 [05:30:16]MH_I2C_Read... [05:30:16]Read from MH i2c: E2 0E 00 [05:30:16]MH_I2C_Read... [05:30:16]Read from MH i2c: E2 0E 00 D2 03 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 99 [05:30:16]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [05:30:16]wFMCommunicate OK [05:30:16]SAM_PROTO_GetShiftState done [05:30:16]FM_GetShiftState done [05:30:16]req_shift_opened done [05:30:16]requested_item shift.open_date is exist - process it [05:30:16]req_shift_open_date [05:30:16]req_shift_open_date done [05:30:16]produce_requested_data done [05:30:16]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73154,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [05:30:16]process_action_free close_receipt [05:30:16]json_value_free [05:30:16]json_value_free done [05:30:16]process_json_proto returns [05:30:16]Send response to host [05:30:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73154,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [05:30:16]free response buf [05:30:16]execute_script done [05:30:16]execute_script returns [05:30:16]free content buf [05:30:16]Sock 9.Close socket [05:30:16]Sock 9.Thread stoped [05:30:22]Connected sock=11 [05:30:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 4E 95 07 01 71 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 66 67 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C2 1D 01 00 35 04 06 00 D8 69 A7 35 6D C3 4E 97 9A CD AA 3E BE 72 [05:30:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 EE E8 47 00 A8 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C2 1D 01 00 F4 03 04 00 21 12 24 67 B6 04 01 00 00 DB 46 84 06 25 78 41 7F [05:30:23]CommunicateWithHost err = 0 [05:30:23]CheckOFDResponse [05:30:23]1017 (14) - 77093643461234 [05:30:23]1041 (16) - 0000000000874662 [05:30:23]1040 (4) - 73154 [05:30:23]1012 (4) - 31.10.2024 23:26 [05:30:23]1206 (1) - 0 [05:30:23]OFD Sender: Remove packet 73154 [05:30:23]ProducePacketName [05:30:23]name=ofd_packets/00073154 [05:30:23]NVStorageDeleteData [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:39]recv_with_timeout no data received [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:40]recv_with_timeout no data received [05:31:43]OFD Sender: No OFD packet to send [05:31:48]OFD Sender: No OFD packet to send [05:31:50]recv_with_timeout no data received [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]recv_with_timeout no data received [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:46]accept exits with 7 [05:32:46]New connection [05:32:46]New thread 3066789220 created [05:32:46]Thread 3066932580 joined [05:32:46]Waiting for new connection... [05:32:46] Sock 7.Parse request [05:32:46]Sock 7.Check first char [05:32:46]Sock 7.First char is OK [05:32:46]request: POST /json_proto HTTP/1.0 [05:32:46]Method: POST [05:32:46]URL: /json_proto [05:32:46]Method is POST - this is cgi request [05:32:46]url: /json_proto [05:32:46]query_string will be loaded in cgi processing [05:32:46]execute_cgi json_proto POST (null) [05:32:46]execute_cgi path=json_proto method=POST [05:32:46]POST find Content-Length [05:32:46]Host: 172.17.43.195:8080 [05:32:46]Content-Length: 792 [05:32:46]Content-Type: application/json [05:32:46] [05:32:46]POST finish read [05:32:46]Found Content-Length = 792 [05:32:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:32:46]execute_script... [05:32: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)952754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:32:46]POST & json_proto [05:32:46]process_json_proto [05:32:46]json parsed OK: [05:32:46]protocol is kg_v1.0 [05:32:46]action value=close_receipt [05:32:46]process_action close_receipt [05:32:46]cmd_close_receipt [05:32:46]MH_GetDate [05:32:46]Write to MH i2c: F0 00 00 D3 03 C5 [05:32:46]Write i2c OK [05:32:46]MH_I2C_Read... [05:32:46]Read from MH i2c: F0 [05:32:46]MH_I2C_Read... [05:32:46]Read from MH i2c: F0 09 00 [05:32:46]MH_I2C_Read... [05:32:46]Read from MH i2c: F0 09 00 D3 03 00 00 68 24 67 74 2C AD 66 74 [05:32:46]GetLastDocTimeStamp 1730439014 [05:32:46]current date 1730439168 [05:32:46]FM_GetShiftState [05:32:46]SAM_PROTO_GetShiftState [05:32:46]wFMCommunicate request_size=4 [05:32:46]MH_SAM_APDU [05:32:46]CAPDU: 80 13 01 00 [05:32:46]Write to MH i2c: E2 08 00 D4 03 80 13 01 00 00 00 00 00 54 [05:32:46]Write i2c OK [05:32:46]MH_I2C_Read... [05:32:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:32:46]Read from MH i2c: E2 [05:32:46]MH_I2C_Read... [05:32:46]Read from MH i2c: E2 0E 00 [05:32:46]MH_I2C_Read... [05:32:46]Read from MH i2c: E2 0E 00 D4 03 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 9B [05:32:46]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [05:32:46]wFMCommunicate OK [05:32:46]SAM_PROTO_GetShiftState done [05:32:46]FM_GetShiftState done [05:32:46]opened in 1730419605 [05:32:46]opened+sec_in_day 1730506005 [05:32:46]quantity*price = 0 [05:32:46]sum+1 = 1 [05:32:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 24 01.11.2024 05:32 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 73155 ФПД: 256733070889191 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T053248&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73155&fm=256733070889191&tin=02508201610067®Number=0000000000091644&sum=0 [05:32:47]StoreToDocumentArchive [05:32:47]shift 558 fd 73155 [05:32:47]save to /storage/0558/doc_00073155 [05:32:47]save last doc name /storage/0558/doc_00073155 to /storage/kkm_last_doc_name [05:32:47]save OK [05:32:47]Clear old archive folders... [05:32:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:32:47]tlvbuf is 001A2CD0 [05:32:47]SAM_PROTO_ClearQueue [05:32:47]wFMCommunicate request_size=4 [05:32:47]MH_SAM_APDU [05:32:47]CAPDU: 80 09 00 00 [05:32:47]Write to MH i2c: E2 08 00 E1 03 80 09 00 00 00 00 00 00 56 [05:32:47]Write i2c OK [05:32:47]MH_I2C_Read... [05:32:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:32:48]Read from MH i2c: E2 [05:32:48]MH_I2C_Read... [05:32:48]Read from MH i2c: E2 03 00 [05:32:48]MH_I2C_Read... [05:32:48]Read from MH i2c: E2 03 00 E1 03 00 90 00 58 [05:32:48]RAPDU: 90 00 [05:32:48]wFMCommunicate OK [05:32:48]SAM_PROTO_ClearQueue done [05:32:48]KKMCreateOFDPacket [05:32:48]OFDProtocolAddRootSTLVToBuf [05:32:48]FM_MakeSignedData [05:32:48]FM_MakeSignedData [05:32:48]SAM_PROTO_SignData [05:32:48]wFMCommunicate request_size=4 [05:32:48]MH_SAM_APDU [05:32:48]CAPDU: 80 0D 01 02 [05:32:48]Write to MH i2c: E2 08 00 E2 03 80 0D 01 02 00 00 00 00 5E [05:32:48]Write i2c OK [05:32:48]MH_I2C_Read... [05:32:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:32:48]Read from MH i2c: E2 [05:32:48]MH_I2C_Read... [05:32:48]Read from MH i2c: E2 03 00 [05:32:48]MH_I2C_Read... [05:32:48]Read from MH i2c: E2 03 00 E2 03 00 90 00 59 [05:32:48]RAPDU: 90 00 [05:32:48]wFMCommunicate OK [05:32:48]wFMCommunicate request_size=255 [05:32:48]MH_SAM_APDU [05:32:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 00 68 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C3 1D 01 00 35 04 06 00 E9 [05:32:48]Write to MH i2c: E2 02 01 E3 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 00 68 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C3 1D 01 00 35 04 06 00 E9 00 00 DB [05:32:48]Write i2c OK [05:32:48]MH_I2C_Read... [05:32:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:32:48]Read from MH i2c: E2 [05:32:48]MH_I2C_Read... [05:32:48]Read from MH i2c: E2 03 00 [05:32:48]MH_I2C_Read... [05:32:48]Read from MH i2c: E2 03 00 E3 03 00 90 00 5A [05:32:48]RAPDU: 90 00 [05:32:48]wFMCommunicate OK [05:32:48]wFMCommunicate request_size=10 [05:32:48]MH_SAM_APDU [05:32:48]CAPDU: 80 0D 02 02 05 7F 53 7E 10 E7 [05:32:48]Write to MH i2c: E2 0D 00 E4 03 80 0D 02 02 05 00 7F 53 7E 10 E7 00 00 B2 [05:32:48]Write i2c OK [05:32:48]MH_I2C_Read... [05:32:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:32:48]Read from MH i2c: E2 [05:32:48]MH_I2C_Read... [05:32:48]Read from MH i2c: E2 03 00 [05:32:48]MH_I2C_Read... [05:32:48]Read from MH i2c: E2 03 00 E4 03 00 90 00 5B [05:32:48]RAPDU: 90 00 [05:32:48]wFMCommunicate OK [05:32:48]wFMCommunicate request_size=4 [05:32:48]MH_SAM_APDU [05:32:48]CAPDU: 80 0D 03 02 [05:32:48]Write to MH i2c: E2 08 00 E5 03 80 0D 03 02 00 00 00 00 63 [05:32:48]Write i2c OK [05:32:48]MH_I2C_Read... [05:32:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:32:48]Read from MH i2c: E2 [05:32:48]MH_I2C_Read... [05:32:48]Read from MH i2c: E2 0B 00 [05:32:48]MH_I2C_Read... [05:32:48]Read from MH i2c: E2 0B 00 E5 03 00 27 F4 9F 33 DA 13 30 C0 90 00 2E [05:32:48]RAPDU: 27 F4 9F 33 DA 13 30 C0 90 00 [05:32:48]wFMCommunicate OK [05:32:48]SAM_PROTO_SignData done [05:32:48]FM_MakeSignedData done [05:32:48]CreateOFDProtocolMessage [05:32:48]wFMCommunicate request_size=4 [05:32:48]MH_SAM_APDU [05:32:48]CAPDU: 80 11 00 00 [05:32:48]Write to MH i2c: E2 08 00 E6 03 80 11 00 00 00 00 00 00 63 [05:32:48]Write i2c OK [05:32:48]MH_I2C_Read... [05:32:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:32:48]Read from MH i2c: E2 [05:32:48]MH_I2C_Read... [05:32:48]Read from MH i2c: E2 17 00 [05:32:48]MH_I2C_Read... [05:32:48]Read from MH i2c: E2 17 00 E6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 B7 [05:32:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:32:48]wFMCommunicate OK [05:32:48]CreateOFDProtocolMessage done [05:32:48]OFDSenderStorePacket 73155 [05:32:48]StoreOFDPacket docnum=73155 [05:32:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 75 B3 07 01 1B 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 00 68 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C3 1D 01 00 35 04 06 00 E9 7F 53 7E 10 E7 27 F4 9F 33 DA 13 30 C0 [05:32:48]CheckFolder [05:32:48]dirname=/storage/ofd_packets [05:32:48]CheckFolder done [05:32:48]ProducePacketName [05:32:48]name=ofd_packets/00073155 [05:32:48]NVStorageSaveData ofd_packets/00073155 [05:32:48]File name is /storage/ofd_packets/00073155 [05:32:48]Write 301 bytes [05:32:48]NVStorageSaveData done [05:32:48]OFDSenderStorePacket done [05:32:48]KKMCreateOFDPacket done [05:32:48]NVStorageSaveData kkm_last_timestamp [05:32:48]File name is /storage/kkm_last_timestamp [05:32:48]Write 4 bytes [05:32:48]NVStorageSaveData done [05:32:48]ExternCall_PrintAddStr [05:32:48]wPrintStart [05:32:48]Write to MH i2c: 01 00 00 E7 03 EA [05:32:48]OFD Sender: Processing packet 73155 [packets to send 282, broken 281] [05:32:48]ProducePacketName [05:32:48]name=ofd_packets/00073155 [05:32:48]OFD Sender: To server: pG, [05:32:48]CommunicateWithHost lk.salyk.kg:30040 [05:32:48]ConnectInit lk.salyk.kg [05:32:48]Write i2c OK [05:32:48]MH_I2C_Read... [05:32:48]Read from MH i2c: 01 [05:32:48]MH_I2C_Read... [05:32:48]Read from MH i2c: 01 07 00 [05:32:48]MH_I2C_Read... [05:32:48]Read from MH i2c: 01 07 00 E7 03 00 00 00 00 00 FF 0F FF [05:32:48]RasterBufferAndPrint [05:32:48]line Счет N : (1)952754 [05:32:48]line ИНН: 02508201610067 [05:32:48]line Контрольно-Кассовый Чек [05:32:48]line ПРОДАЖА [05:32:48]line ТРК (МРК, ГНК) : 53 [05:32:48]line Товар: 2710124130 [05:32:48]line Аи-92-К-5 [05:32:48]line 20.000 * 0.00 [05:32:48]line = 0.00 [05:32:48]line НДС 12% НСП 1% [05:32:48]line > о реализуемом товаре [05:32:48]line ИТОГО: 0.00 [05:32:48]line НСП 1% : 0.00 [05:32:48]line НДС 12% : 0.00 [05:32:48]line Наличными: 0.00 [05:32:48]line Безнал.: 0.00 [05:32:48]line Место: АЗС № 113 "Партнер Нефть" [05:32:48]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [05:32:48]line СНО: Общий режим [05:32:48]line Чек 24 01.11.2024 05:32 [05:32:48]line Смена: 558 ФФД: 1.0 [05:32:48]line ЗНМ: 0300000087 [05:32:48]line РНМ: 0000000000091644 [05:32:48]line Версия ККМ: 001 [05:32:48]line Талоны: Топливная Карта [05:32:48]line 03047 [05:32:48]line ФМ: 0000000000874662 [05:32:48]line ФД: 73155 [05:32:48]line ФПД: 256733070889191 [05:32:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T053248&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73155&fm=256733070889191&tin=02508201610067®Number=0000000000091644&sum=0 [05:32:48]written 0, free lines is 4095 [05:32:49]Write to MH i2c: 01 00 00 11 04 15 [05:32:49]Write i2c OK [05:32:49]MH_I2C_Read... [05:32:49]Read from MH i2c: 01 [05:32:49]MH_I2C_Read... [05:32:49]Read from MH i2c: 01 07 00 [05:32:49]MH_I2C_Read... [05:32:49]Read from MH i2c: 01 07 00 11 04 00 00 00 00 00 EA 0C 12 [05:32:49]RasterBufferAndPrint [05:32:49]line [05:32:49]line [05:32:49]line [05:32:49]line [05:32:49]line [05:32:49]written 0, free lines is 3310 [05:32:49]MH_Cut [05:32:49]Write to MH i2c: D1 01 00 18 04 01 EE [05:32:49]Write i2c OK [05:32:49]MH_I2C_Read... [05:32:49]Read from MH i2c: D1 [05:32:49]MH_I2C_Read... [05:32:49]Read from MH i2c: D1 01 00 [05:32:49]MH_I2C_Read... [05:32:49]Read from MH i2c: D1 01 00 18 04 00 ED [05:32:49]Write to MH i2c: 01 00 00 19 04 1D [05:32:49]Write i2c OK [05:32:49]MH_I2C_Read... [05:32:50]*** Cut start [05:32:50]*** Partial cut [05:32:50]*** CUTSNS_PIN = 1 [05:32:50]*** CUTSNS_PIN = 0 [05:32:50]*** Brake cut motor [05:32:50]Read from MH i2c: 01 [05:32:50]MH_I2C_Read... [05:32:50]*** Stop cut motor [05:32:50]*** Cut end [05:32:50]Read from MH i2c: 01 07 00 [05:32:50]MH_I2C_Read... [05:32:50]Read from MH i2c: 01 07 00 19 04 00 00 00 00 00 FF 0F 32 [05:32:50]process_action close_receipt done [05:32:50]requested_data is exist [05:32:50]produce_requested_data [05:32:50]requested_item fm.sn is exist - process it [05:32:50]wFMCommunicate request_size=4 [05:32:50]MH_SAM_APDU [05:32:50]CAPDU: 80 11 00 00 [05:32:50]Write to MH i2c: E2 08 00 1A 04 80 11 00 00 00 00 00 00 98 [05:32:50]Write i2c OK [05:32:50]MH_I2C_Read... [05:32:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:32:50]Read from MH i2c: E2 [05:32:50]MH_I2C_Read... [05:32:50]Read from MH i2c: E2 17 00 [05:32:50]MH_I2C_Read... [05:32:50]Read from MH i2c: E2 17 00 1A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 EC [05:32:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:32:50]wFMCommunicate OK [05:32:50]requested_item fd.num is exist - process it [05:32:50]SAM_PROTO_GetFieldsCounters [05:32:50]wFMCommunicate request_size=4 [05:32:50]MH_SAM_APDU [05:32:50]CAPDU: 80 13 00 00 [05:32:50]Write to MH i2c: E2 08 00 1B 04 80 13 00 00 00 00 00 00 9B [05:32:50]Write i2c OK [05:32:50]MH_I2C_Read... [05:32:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:32:50]Read from MH i2c: E2 [05:32:50]MH_I2C_Read... [05:32:50]Read from MH i2c: E2 62 00 [05:32:50]MH_I2C_Read... [05:32:50]Read from MH i2c: E2 62 00 1B 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C3 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [05:32:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C3 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:32:50]wFMCommunicate OK [05:32:50]SAM_PROTO_GetFieldsCounters done [05:32:50]requested_item shift.num is exist - process it [05:32:50]requested_item shift.opened is exist - process it [05:32:50]req_shift_opened [05:32:50]FM_GetShiftState [05:32:50]SAM_PROTO_GetShiftState [05:32:50]wFMCommunicate request_size=4 [05:32:50]MH_SAM_APDU [05:32:50]CAPDU: 80 13 01 00 [05:32:50]Write to MH i2c: E2 08 00 1C 04 80 13 01 00 00 00 00 00 9D [05:32:50]Write i2c OK [05:32:50]MH_I2C_Read... [05:32:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:32:50]Read from MH i2c: E2 [05:32:50]MH_I2C_Read... [05:32:50]Read from MH i2c: E2 0E 00 [05:32:50]MH_I2C_Read... [05:32:50]Read from MH i2c: E2 0E 00 1C 04 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 E4 [05:32:50]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [05:32:50]wFMCommunicate OK [05:32:50]SAM_PROTO_GetShiftState done [05:32:50]FM_GetShiftState done [05:32:50]req_shift_opened done [05:32:50]requested_item shift.open_date is exist - process it [05:32:50]req_shift_open_date [05:32:50]req_shift_open_date done [05:32:50]produce_requested_data done [05:32:50]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73155,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [05:32:50]process_action_free close_receipt [05:32:50]json_value_free [05:32:50]json_value_free done [05:32:50]process_json_proto returns [05:32:50]Send response to host [05:32:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73155,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [05:32:50]free response buf [05:32:50]execute_script done [05:32:50]execute_script returns [05:32:50]free content buf [05:32:50]Sock 7.Close socket [05:32:50]Sock 7.Thread stoped [05:35:01]ConnectInit Can't connect to host [05:35:01]CommunicateWithHost connect error [05:35:01]CommunicateWithHost err = -1 [05:35:01]OFD Sender: Server communicate error [05:35:06]OFD Sender: Processing packet 73155 [packets to send 282, broken 281] [05:35:06]ProducePacketName [05:35:06]name=ofd_packets/00073155 [05:35:06]OFD Sender: To server: pG, [05:35:06]CommunicateWithHost lk.salyk.kg:30040 [05:35:06]ConnectInit lk.salyk.kg [05:35:07]Connected sock=10 [05:35:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 75 B3 07 01 1B 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 00 68 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C3 1D 01 00 35 04 06 00 E9 7F 53 7E 10 E7 27 F4 9F 33 DA 13 30 C0 [05:35:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 FA 27 47 00 8F F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C3 1D 01 00 F4 03 04 00 3E 13 24 67 B6 04 01 00 00 F0 ED 0E C4 4E 93 07 C5 [05:35:07]CommunicateWithHost err = 0 [05:35:07]CheckOFDResponse [05:35:07]1017 (14) - 77093643461234 [05:35:07]1041 (16) - 0000000000874662 [05:35:07]1040 (4) - 73155 [05:35:07]1012 (4) - 31.10.2024 23:31 [05:35:07]1206 (1) - 0 [05:35:07]OFD Sender: Remove packet 73155 [05:35:07]ProducePacketName [05:35:07]name=ofd_packets/00073155 [05:35:07]NVStorageDeleteData [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:28]OFD Sender: No OFD packet to send [05:35:33]OFD Sender: No OFD packet to send [05:35:38]OFD Sender: No OFD packet to send [05:35:39]recv_with_timeout no data received [05:35:43]OFD Sender: No OFD packet to send [05:35:48]OFD Sender: No OFD packet to send [05:35:53]OFD Sender: No OFD packet to send [05:35:58]OFD Sender: No OFD packet to send [05:36:03]OFD Sender: No OFD packet to send [05:36:08]OFD Sender: No OFD packet to send [05:36:13]OFD Sender: No OFD packet to send [05:36:18]OFD Sender: No OFD packet to send [05:36:23]OFD Sender: No OFD packet to send [05:36:28]recv_with_timeout no data received [05:36:28]OFD Sender: No OFD packet to send [05:36:33]OFD Sender: No OFD packet to send [05:36:38]OFD Sender: No OFD packet to send [05:36:43]OFD Sender: No OFD packet to send [05:36:45]recv_with_timeout no data received [05:36:48]OFD Sender: No OFD packet to send [05:36:53]OFD Sender: No OFD packet to send [05:36:58]OFD Sender: No OFD packet to send [05:37:03]OFD Sender: No OFD packet to send [05:37:08]OFD Sender: No OFD packet to send [05:37:13]OFD Sender: No OFD packet to send [05:37:16]recv_with_timeout no data received [05:37:18]OFD Sender: No OFD packet to send [05:37:23]OFD Sender: No OFD packet to send [05:37:28]OFD Sender: No OFD packet to send [05:37:33]OFD Sender: No OFD packet to send [05:37:38]OFD Sender: No OFD packet to send [05:37:41]recv_with_timeout no data received [05:37:43]OFD Sender: No OFD packet to send [05:37:48]OFD Sender: No OFD packet to send [05:37:53]OFD Sender: No OFD packet to send [05:37:57]recv_with_timeout no data received [05:37:58]OFD Sender: No OFD packet to send [05:38:03]OFD Sender: No OFD packet to send [05:38:08]recv_with_timeout no data received [05:38:08]OFD Sender: No OFD packet to send [05:38:13]OFD Sender: No OFD packet to send [05:38:18]OFD Sender: No OFD packet to send [05:38:23]OFD Sender: No OFD packet to send [05:38:28]OFD Sender: No OFD packet to send [05:38:31]recv_with_timeout no data received [05:38:33]OFD Sender: No OFD packet to send [05:38:38]OFD Sender: No OFD packet to send [05:38:42]recv_with_timeout no data received [05:38:43]OFD Sender: No OFD packet to send [05:38:48]OFD Sender: No OFD packet to send [05:38:53]OFD Sender: No OFD packet to send [05:38:58]OFD Sender: No OFD packet to send [05:39:03]OFD Sender: No OFD packet to send [05:39:07]recv_with_timeout no data received [05:39:08]OFD Sender: No OFD packet to send [05:39:13]OFD Sender: No OFD packet to send [05:39:18]OFD Sender: No OFD packet to send [05:39:23]OFD Sender: No OFD packet to send [05:39:28]OFD Sender: No OFD packet to send [05:39:30]recv_with_timeout no data received [05:39:33]OFD Sender: No OFD packet to send [05:39:38]OFD Sender: No OFD packet to send [05:39:43]OFD Sender: No OFD packet to send [05:39:48]OFD Sender: No OFD packet to send [05:39:49]recv_with_timeout no data received [05:39:53]OFD Sender: No OFD packet to send [05:39:58]OFD Sender: No OFD packet to send [05:39:59]recv_with_timeout no data received [05:40:03]OFD Sender: No OFD packet to send [05:40:08]OFD Sender: No OFD packet to send [05:40:10]recv_with_timeout no data received [05:40:13]OFD Sender: No OFD packet to send [05:40:18]OFD Sender: No OFD packet to send [05:40:23]OFD Sender: No OFD packet to send [05:40:28]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:17]recv_with_timeout no data received [05:41:19]OFD Sender: No OFD packet to send [05:41:24]OFD Sender: No OFD packet to send [05:41:28]recv_with_timeout no data received [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:46]recv_with_timeout no data received [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:29]recv_with_timeout no data received [05:43:34]OFD Sender: No OFD packet to send [05:43:39]OFD Sender: No OFD packet to send [05:43:39]recv_with_timeout no data received [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:03]recv_with_timeout no data received [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:19]recv_with_timeout no data received [05:44:24]OFD Sender: No OFD packet to send [05:44:29]OFD Sender: No OFD packet to send [05:44:30]recv_with_timeout no data received [05:44:34]OFD Sender: No OFD packet to send [05:44:39]OFD Sender: No OFD packet to send [05:44:40]recv_with_timeout no data received [05:44:44]OFD Sender: No OFD packet to send [05:44:49]OFD Sender: No OFD packet to send [05:44:51]recv_with_timeout no data received [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:23]accept exits with 9 [05:45:23]New connection [05:45:23]New thread 3066932580 created [05:45:23]Thread 3066789220 joined [05:45:23]Waiting for new connection... [05:45:23] Sock 9.Parse request [05:45:23]Sock 9.Check first char [05:45:23]Sock 9.First char is OK [05:45:23]request: POST /json_proto HTTP/1.0 [05:45:23]Method: POST [05:45:23]URL: /json_proto [05:45:23]Method is POST - this is cgi request [05:45:23]url: /json_proto [05:45:23]query_string will be loaded in cgi processing [05:45:23]execute_cgi json_proto POST (null) [05:45:23]execute_cgi path=json_proto method=POST [05:45:23]POST find Content-Length [05:45:23]Host: 172.17.43.195:8080 [05:45:23]Content-Length: 792 [05:45:23]Content-Type: application/json [05:45:23] [05:45:23]POST finish read [05:45:23]Found Content-Length = 792 [05:45:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:45:23]execute_script... [05:45:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:45:23]POST & json_proto [05:45:23]process_json_proto [05:45:23]json parsed OK: [05:45:23]protocol is kg_v1.0 [05:45:23]action value=close_receipt [05:45:23]process_action close_receipt [05:45:23]cmd_close_receipt [05:45:23]MH_GetDate [05:45:23]Write to MH i2c: F0 00 00 1D 04 10 [05:45:23]Write i2c OK [05:45:23]MH_I2C_Read... [05:45:23]Read from MH i2c: F0 [05:45:23]MH_I2C_Read... [05:45:23]Read from MH i2c: F0 09 00 [05:45:23]MH_I2C_Read... [05:45:23]Read from MH i2c: F0 09 00 1D 04 00 F5 6A 24 67 74 2C AD 66 B6 [05:45:23]GetLastDocTimeStamp 1730439168 [05:45:23]current date 1730439925 [05:45:23]FM_GetShiftState [05:45:23]SAM_PROTO_GetShiftState [05:45:23]wFMCommunicate request_size=4 [05:45:23]MH_SAM_APDU [05:45:23]CAPDU: 80 13 01 00 [05:45:23]Write to MH i2c: E2 08 00 1E 04 80 13 01 00 00 00 00 00 9F [05:45:23]Write i2c OK [05:45:23]MH_I2C_Read... [05:45:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:45:23]Read from MH i2c: E2 [05:45:23]MH_I2C_Read... [05:45:23]Read from MH i2c: E2 0E 00 [05:45:23]MH_I2C_Read... [05:45:23]Read from MH i2c: E2 0E 00 1E 04 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 E6 [05:45:23]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [05:45:23]wFMCommunicate OK [05:45:23]SAM_PROTO_GetShiftState done [05:45:23]FM_GetShiftState done [05:45:23]opened in 1730419605 [05:45:23]opened+sec_in_day 1730506005 [05:45:23]quantity*price = 0 [05:45:23]sum+1 = 1 [05:45:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 25 01.11.2024 05:45 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 73156 ФПД: 24726325737534 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T054525&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73156&fm=24726325737534&tin=02508201610067®Number=0000000000091644&sum=0 [05:45:24]StoreToDocumentArchive [05:45:24]shift 558 fd 73156 [05:45:24]save to /storage/0558/doc_00073156 [05:45:24]save last doc name /storage/0558/doc_00073156 to /storage/kkm_last_doc_name [05:45:24]save OK [05:45:24]Clear old archive folders... [05:45:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:45:24]tlvbuf is 0020E600 [05:45:24]SAM_PROTO_ClearQueue [05:45:24]wFMCommunicate request_size=4 [05:45:24]MH_SAM_APDU [05:45:24]CAPDU: 80 09 00 00 [05:45:24]Write to MH i2c: E2 08 00 2B 04 80 09 00 00 00 00 00 00 A1 [05:45:24]Write i2c OK [05:45:24]MH_I2C_Read... [05:45:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:45:24]Read from MH i2c: E2 [05:45:24]MH_I2C_Read... [05:45:24]Read from MH i2c: E2 03 00 [05:45:24]MH_I2C_Read... [05:45:24]Read from MH i2c: E2 03 00 2B 04 00 90 00 A3 [05:45:24]RAPDU: 90 00 [05:45:24]wFMCommunicate OK [05:45:24]SAM_PROTO_ClearQueue done [05:45:24]KKMCreateOFDPacket [05:45:24]OFDProtocolAddRootSTLVToBuf [05:45:24]FM_MakeSignedData [05:45:24]FM_MakeSignedData [05:45:24]SAM_PROTO_SignData [05:45:24]wFMCommunicate request_size=4 [05:45:24]MH_SAM_APDU [05:45:24]CAPDU: 80 0D 01 02 [05:45:24]Write to MH i2c: E2 08 00 2C 04 80 0D 01 02 00 00 00 00 A9 [05:45:24]Write i2c OK [05:45:24]MH_I2C_Read... [05:45:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:45:25]Read from MH i2c: E2 [05:45:25]MH_I2C_Read... [05:45:25]Read from MH i2c: E2 03 00 [05:45:25]MH_I2C_Read... [05:45:25]Read from MH i2c: E2 03 00 2C 04 00 90 00 A4 [05:45:25]RAPDU: 90 00 [05:45:25]wFMCommunicate OK [05:45:25]wFMCommunicate request_size=255 [05:45:25]MH_SAM_APDU [05:45:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 F5 6A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C4 1D 01 00 35 04 06 00 16 [05:45:25]Write to MH i2c: E2 02 01 2D 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 F5 6A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C4 1D 01 00 35 04 06 00 16 00 00 15 [05:45:25]Write i2c OK [05:45:25]MH_I2C_Read... [05:45:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:45:25]Read from MH i2c: E2 [05:45:25]MH_I2C_Read... [05:45:25]Read from MH i2c: E2 03 00 [05:45:25]MH_I2C_Read... [05:45:25]Read from MH i2c: E2 03 00 2D 04 00 90 00 A5 [05:45:25]RAPDU: 90 00 [05:45:25]wFMCommunicate OK [05:45:25]wFMCommunicate request_size=10 [05:45:25]MH_SAM_APDU [05:45:25]CAPDU: 80 0D 02 02 05 7D 0B DC B8 3E [05:45:25]Write to MH i2c: E2 0D 00 2E 04 80 0D 02 02 05 00 7D 0B DC B8 3E 00 00 10 [05:45:25]Write i2c OK [05:45:25]MH_I2C_Read... [05:45:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:45:25]Read from MH i2c: E2 [05:45:25]MH_I2C_Read... [05:45:25]Read from MH i2c: E2 03 00 [05:45:25]MH_I2C_Read... [05:45:25]Read from MH i2c: E2 03 00 2E 04 00 90 00 A6 [05:45:25]RAPDU: 90 00 [05:45:25]wFMCommunicate OK [05:45:25]wFMCommunicate request_size=4 [05:45:25]MH_SAM_APDU [05:45:25]CAPDU: 80 0D 03 02 [05:45:25]Write to MH i2c: E2 08 00 2F 04 80 0D 03 02 00 00 00 00 AE [05:45:25]Write i2c OK [05:45:25]MH_I2C_Read... [05:45:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:45:25]Read from MH i2c: E2 [05:45:25]MH_I2C_Read... [05:45:25]Read from MH i2c: E2 0B 00 [05:45:25]MH_I2C_Read... [05:45:25]Read from MH i2c: E2 0B 00 2F 04 00 DA 61 D9 07 C8 6A 11 02 90 00 0F [05:45:25]RAPDU: DA 61 D9 07 C8 6A 11 02 90 00 [05:45:25]wFMCommunicate OK [05:45:25]SAM_PROTO_SignData done [05:45:25]FM_MakeSignedData done [05:45:25]CreateOFDProtocolMessage [05:45:25]wFMCommunicate request_size=4 [05:45:25]MH_SAM_APDU [05:45:25]CAPDU: 80 11 00 00 [05:45:25]Write to MH i2c: E2 08 00 30 04 80 11 00 00 00 00 00 00 AE [05:45:25]Write i2c OK [05:45:25]MH_I2C_Read... [05:45:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:45:25]Read from MH i2c: E2 [05:45:25]MH_I2C_Read... [05:45:25]Read from MH i2c: E2 17 00 [05:45:25]MH_I2C_Read... [05:45:25]Read from MH i2c: E2 17 00 30 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 02 [05:45:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:45:25]wFMCommunicate OK [05:45:25]CreateOFDProtocolMessage done [05:45:25]OFDSenderStorePacket 73156 [05:45:25]StoreOFDPacket docnum=73156 [05:45:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 03 24 07 01 CB 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 F5 6A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C4 1D 01 00 35 04 06 00 16 7D 0B DC B8 3E DA 61 D9 07 C8 6A 11 02 [05:45:25]CheckFolder [05:45:25]dirname=/storage/ofd_packets [05:45:25]CheckFolder done [05:45:25]ProducePacketName [05:45:25]name=ofd_packets/00073156 [05:45:25]NVStorageSaveData ofd_packets/00073156 [05:45:25]File name is /storage/ofd_packets/00073156 [05:45:25]Write 301 bytes [05:45:25]NVStorageSaveData done [05:45:25]OFDSenderStorePacket done [05:45:25]KKMCreateOFDPacket done [05:45:25]NVStorageSaveData kkm_last_timestamp [05:45:25]File name is /storage/kkm_last_timestamp [05:45:25]Write 4 bytes [05:45:25]NVStorageSaveData done [05:45:25]ExternCall_PrintAddStr [05:45:25]wPrintStart [05:45:25]Write to MH i2c: 01 00 00 31 04 35 [05:45:25]Write i2c OK [05:45:25]MH_I2C_Read... [05:45:25]Read from MH i2c: 01 [05:45:25]MH_I2C_Read... [05:45:25]Read from MH i2c: 01 07 00 [05:45:25]MH_I2C_Read... [05:45:25]Read from MH i2c: 01 07 00 31 04 00 00 00 00 00 FF 0F 4A [05:45:25]RasterBufferAndPrint [05:45:25]line Счет N : (1)952755 [05:45:25]line ИНН: 02508201610067 [05:45:25]line Контрольно-Кассовый Чек [05:45:25]line ПРОДАЖА [05:45:25]line ТРК (МРК, ГНК) : 42 [05:45:25]line Товар: 2710124130 [05:45:25]line Аи-92-К-5 [05:45:25]line 10.000 * 0.00 [05:45:25]line = 0.00 [05:45:25]line НДС 12% НСП 1% [05:45:25]line > о реализуемом товаре [05:45:25]line ИТОГО: 0.00 [05:45:25]line НСП 1% : 0.00 [05:45:25]line НДС 12% : 0.00 [05:45:25]line Наличными: 0.00 [05:45:25]line Безнал.: 0.00 [05:45:25]line Место: АЗС № 113 "Партнер Нефть" [05:45:25]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [05:45:25]line СНО: Общий режим [05:45:25]line Чек 25 01.11.2024 05:45 [05:45:25]line Смена: 558 ФФД: 1.0 [05:45:25]line ЗНМ: 0300000087 [05:45:25]line РНМ: 0000000000091644 [05:45:25]line Версия ККМ: 001 [05:45:25]line Талоны: Топливная Карта [05:45:25]line 03047 [05:45:25]line ФМ: 0000000000874662 [05:45:25]line ФД: 73156 [05:45:25]line ФПД: 24726325737534 [05:45:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T054525&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73156&fm=24726325737534&tin=02508201610067®Number=0000000000091644&sum=0 [05:45:25]written 0, free lines is 4095 [05:45:25]OFD Sender: Processing packet 73156 [packets to send 282, broken 281] [05:45:25]ProducePacketName [05:45:25]name=ofd_packets/00073156 [05:45:25]OFD Sender: To server: pG, [05:45:25]CommunicateWithHost lk.salyk.kg:30040 [05:45:25]ConnectInit lk.salyk.kg [05:45:25]Write to MH i2c: 01 00 00 5B 04 5F [05:45:25]Write i2c OK [05:45:25]MH_I2C_Read... [05:45:25]Read from MH i2c: 01 [05:45:25]MH_I2C_Read... [05:45:25]Read from MH i2c: 01 07 00 [05:45:25]MH_I2C_Read... [05:45:25]Read from MH i2c: 01 07 00 5B 04 00 00 00 00 00 E6 0C 58 [05:45:25]RasterBufferAndPrint [05:45:25]line [05:45:25]line [05:45:25]line [05:45:25]line [05:45:25]line [05:45:25]written 0, free lines is 3309 [05:45:25]MH_Cut [05:45:25]Write to MH i2c: D1 01 00 62 04 01 38 [05:45:25]Write i2c OK [05:45:25]MH_I2C_Read... [05:45:25]Read from MH i2c: D1 [05:45:25]MH_I2C_Read... [05:45:25]Read from MH i2c: D1 01 00 [05:45:25]MH_I2C_Read... [05:45:25]Read from MH i2c: D1 01 00 62 04 00 37 [05:45:25]Write to MH i2c: 01 00 00 63 04 67 [05:45:25]Write i2c OK [05:45:25]MH_I2C_Read... [05:45:26]Connected sock=7 [05:45:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 03 24 07 01 CB 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 F5 6A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C4 1D 01 00 35 04 06 00 16 7D 0B DC B8 3E DA 61 D9 07 C8 6A 11 02 [05:45:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 DD CA 47 00 9E 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C4 1D 01 00 F4 03 04 00 A9 15 24 67 B6 04 01 00 00 16 EB 86 5C C1 B0 A3 01 [05:45:26]CommunicateWithHost err = 0 [05:45:26]CheckOFDResponse [05:45:26]1017 (14) - 77093643461234 [05:45:26]1041 (16) - 0000000000874662 [05:45:26]1040 (4) - 73156 [05:45:26]1012 (4) - 31.10.2024 23:41 [05:45:26]1206 (1) - 0 [05:45:26]OFD Sender: Remove packet 73156 [05:45:26]ProducePacketName [05:45:26]name=ofd_packets/00073156 [05:45:26]NVStorageDeleteData [05:45:26]*** Cut start [05:45:26]*** Partial cut [05:45:26]*** CUTSNS_PIN = 1 [05:45:26]*** CUTSNS_PIN = 0 [05:45:26]*** Brake cut motor [05:45:27]OFD Sender: No OFD packet to send [05:45:27]Read from MH i2c: 01 [05:45:27]MH_I2C_Read... [05:45:27]*** Stop cut motor [05:45:27]*** Cut end [05:45:27]Read from MH i2c: 01 07 00 [05:45:27]MH_I2C_Read... [05:45:27]Read from MH i2c: 01 07 00 63 04 00 00 00 00 00 FF 0F 7C [05:45:27]process_action close_receipt done [05:45:27]requested_data is exist [05:45:27]produce_requested_data [05:45:27]requested_item fm.sn is exist - process it [05:45:27]wFMCommunicate request_size=4 [05:45:27]MH_SAM_APDU [05:45:27]CAPDU: 80 11 00 00 [05:45:27]Write to MH i2c: E2 08 00 64 04 80 11 00 00 00 00 00 00 E2 [05:45:27]Write i2c OK [05:45:27]MH_I2C_Read... [05:45:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:45:27]Read from MH i2c: E2 [05:45:27]MH_I2C_Read... [05:45:27]Read from MH i2c: E2 17 00 [05:45:27]MH_I2C_Read... [05:45:27]Read from MH i2c: E2 17 00 64 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 36 [05:45:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:45:27]wFMCommunicate OK [05:45:27]requested_item fd.num is exist - process it [05:45:27]SAM_PROTO_GetFieldsCounters [05:45:27]wFMCommunicate request_size=4 [05:45:27]MH_SAM_APDU [05:45:27]CAPDU: 80 13 00 00 [05:45:27]Write to MH i2c: E2 08 00 65 04 80 13 00 00 00 00 00 00 E5 [05:45:27]Write i2c OK [05:45:27]MH_I2C_Read... [05:45:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:45:27]Read from MH i2c: E2 [05:45:27]MH_I2C_Read... [05:45:27]Read from MH i2c: E2 62 00 [05:45:27]MH_I2C_Read... [05:45:27]Read from MH i2c: E2 62 00 65 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C4 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [05:45:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C4 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:45:27]wFMCommunicate OK [05:45:27]SAM_PROTO_GetFieldsCounters done [05:45:27]requested_item shift.num is exist - process it [05:45:27]requested_item shift.opened is exist - process it [05:45:27]req_shift_opened [05:45:27]FM_GetShiftState [05:45:27]SAM_PROTO_GetShiftState [05:45:27]wFMCommunicate request_size=4 [05:45:27]MH_SAM_APDU [05:45:27]CAPDU: 80 13 01 00 [05:45:27]Write to MH i2c: E2 08 00 66 04 80 13 01 00 00 00 00 00 E7 [05:45:27]Write i2c OK [05:45:27]MH_I2C_Read... [05:45:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:45:27]Read from MH i2c: E2 [05:45:27]MH_I2C_Read... [05:45:27]Read from MH i2c: E2 0E 00 [05:45:27]MH_I2C_Read... [05:45:27]Read from MH i2c: E2 0E 00 66 04 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 2E [05:45:27]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [05:45:27]wFMCommunicate OK [05:45:27]SAM_PROTO_GetShiftState done [05:45:27]FM_GetShiftState done [05:45:27]req_shift_opened done [05:45:27]requested_item shift.open_date is exist - process it [05:45:27]req_shift_open_date [05:45:27]req_shift_open_date done [05:45:27]produce_requested_data done [05:45:27]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73156,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [05:45:27]process_action_free close_receipt [05:45:27]json_value_free [05:45:27]json_value_free done [05:45:27]process_json_proto returns [05:45:27]Send response to host [05:45:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73156,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [05:45:27]free response buf [05:45:27]execute_script done [05:45:27]execute_script returns [05:45:27]free content buf [05:45:27]Sock 9.Close socket [05:45:27]Sock 9.Thread stoped [05:45:32]OFD Sender: No OFD packet to send [05:45:35]recv_with_timeout no data received [05:45:37]OFD Sender: No OFD packet to send [05:45:42]OFD Sender: No OFD packet to send [05:45:47]OFD Sender: No OFD packet to send [05:45:52]OFD Sender: No OFD packet to send [05:45:52]recv_with_timeout no data received [05:45:57]OFD Sender: No OFD packet to send [05:46:02]OFD Sender: No OFD packet to send [05:46:06]recv_with_timeout no data received [05:46:07]OFD Sender: No OFD packet to send [05:46:12]OFD Sender: No OFD packet to send [05:46:17]OFD Sender: No OFD packet to send [05:46:22]OFD Sender: No OFD packet to send [05:46:27]OFD Sender: No OFD packet to send [05:46:32]OFD Sender: No OFD packet to send [05:46:37]OFD Sender: No OFD packet to send [05:46:42]OFD Sender: No OFD packet to send [05:46:47]OFD Sender: No OFD packet to send [05:46:52]OFD Sender: No OFD packet to send [05:46:57]OFD Sender: No OFD packet to send [05:47:02]OFD Sender: No OFD packet to send [05:47:07]OFD Sender: No OFD packet to send [05:47:12]OFD Sender: No OFD packet to send [05:47:16]recv_with_timeout no data received [05:47:17]OFD Sender: No OFD packet to send [05:47:22]OFD Sender: No OFD packet to send [05:47:27]OFD Sender: No OFD packet to send [05:47:32]OFD Sender: No OFD packet to send [05:47:37]OFD Sender: No OFD packet to send [05:47:42]OFD Sender: No OFD packet to send [05:47:47]OFD Sender: No OFD packet to send [05:47:52]OFD Sender: No OFD packet to send [05:47:57]OFD Sender: No OFD packet to send [05:48:02]OFD Sender: No OFD packet to send [05:48:07]OFD Sender: No OFD packet to send [05:48:10]recv_with_timeout no data received [05:48:12]OFD Sender: No OFD packet to send [05:48:17]OFD Sender: No OFD packet to send [05:48:22]OFD Sender: No OFD packet to send [05:48:27]OFD Sender: No OFD packet to send [05:48:29]recv_with_timeout no data received [05:48:32]OFD Sender: No OFD packet to send [05:48:37]OFD Sender: No OFD packet to send [05:48:40]recv_with_timeout no data received [05:48:42]OFD Sender: No OFD packet to send [05:48:47]OFD Sender: No OFD packet to send [05:48:52]OFD Sender: No OFD packet to send [05:48:57]OFD Sender: No OFD packet to send [05:49:02]OFD Sender: No OFD packet to send [05:49:04]recv_with_timeout no data received [05:49:07]OFD Sender: No OFD packet to send [05:49:12]OFD Sender: No OFD packet to send [05:49:17]OFD Sender: No OFD packet to send [05:49:22]OFD Sender: No OFD packet to send [05:49:27]OFD Sender: No OFD packet to send [05:49:32]OFD Sender: No OFD packet to send [05:49:37]OFD Sender: No OFD packet to send [05:49:42]OFD Sender: No OFD packet to send [05:49:47]OFD Sender: No OFD packet to send [05:49:52]OFD Sender: No OFD packet to send [05:49:57]OFD Sender: No OFD packet to send [05:50:02]OFD Sender: No OFD packet to send [05:50:07]OFD Sender: No OFD packet to send [05:50:10]accept exits with 10 [05:50:10]New connection [05:50:10]New thread 3066789220 created [05:50:10]Thread 3066932580 joined [05:50:10]Waiting for new connection... [05:50:10] Sock 10.Parse request [05:50:10]Sock 10.Check first char [05:50:10]Sock 10.First char is OK [05:50:10]request: POST /json_proto HTTP/1.0 [05:50:10]Method: POST [05:50:10]URL: /json_proto [05:50:10]Method is POST - this is cgi request [05:50:10]url: /json_proto [05:50:10]query_string will be loaded in cgi processing [05:50:10]execute_cgi json_proto POST (null) [05:50:10]execute_cgi path=json_proto method=POST [05:50:10]POST find Content-Length [05:50:10]Host: 172.17.43.195:8080 [05:50:10]Content-Length: 791 [05:50:10]Content-Type: application/json [05:50:10] [05:50:10]POST finish read [05:50:10]Found Content-Length = 791 [05:50:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:50:10]execute_script... [05:50: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)952756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:50:10]POST & json_proto [05:50:10]process_json_proto [05:50:10]json parsed OK: [05:50:10]protocol is kg_v1.0 [05:50:10]action value=close_receipt [05:50:10]process_action close_receipt [05:50:10]cmd_close_receipt [05:50:10]MH_GetDate [05:50:10]Write to MH i2c: F0 00 00 67 04 5A [05:50:10]Write i2c OK [05:50:10]MH_I2C_Read... [05:50:10]Read from MH i2c: F0 [05:50:10]MH_I2C_Read... [05:50:10]Read from MH i2c: F0 09 00 [05:50:10]MH_I2C_Read... [05:50:10]Read from MH i2c: F0 09 00 67 04 00 14 6C 24 67 74 2C AD 66 21 [05:50:10]GetLastDocTimeStamp 1730439925 [05:50:10]current date 1730440212 [05:50:10]FM_GetShiftState [05:50:10]SAM_PROTO_GetShiftState [05:50:10]wFMCommunicate request_size=4 [05:50:10]MH_SAM_APDU [05:50:10]CAPDU: 80 13 01 00 [05:50:10]Write to MH i2c: E2 08 00 68 04 80 13 01 00 00 00 00 00 E9 [05:50:10]Write i2c OK [05:50:10]MH_I2C_Read... [05:50:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:50:10]Read from MH i2c: E2 [05:50:10]MH_I2C_Read... [05:50:10]Read from MH i2c: E2 0E 00 [05:50:10]MH_I2C_Read... [05:50:10]Read from MH i2c: E2 0E 00 68 04 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 30 [05:50:10]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [05:50:10]wFMCommunicate OK [05:50:10]SAM_PROTO_GetShiftState done [05:50:10]FM_GetShiftState done [05:50:10]opened in 1730419605 [05:50:10]opened+sec_in_day 1730506005 [05:50:10]quantity*price = 0 [05:50:10]sum+1 = 1 [05:50:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 26 01.11.2024 05:50 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 73157 ФПД: 18468230980666 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T055012&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73157&fm=18468230980666&tin=02508201610067®Number=0000000000091644&sum=0 [05:50:11]StoreToDocumentArchive [05:50:11]shift 558 fd 73157 [05:50:11]save to /storage/0558/doc_00073157 [05:50:11]save last doc name /storage/0558/doc_00073157 to /storage/kkm_last_doc_name [05:50:11]save OK [05:50:11]Clear old archive folders... [05:50:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:50:11]tlvbuf is B6F53B90 [05:50:11]SAM_PROTO_ClearQueue [05:50:11]wFMCommunicate request_size=4 [05:50:11]MH_SAM_APDU [05:50:11]CAPDU: 80 09 00 00 [05:50:11]Write to MH i2c: E2 08 00 75 04 80 09 00 00 00 00 00 00 EB [05:50:11]Write i2c OK [05:50:11]MH_I2C_Read... [05:50:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:50:11]Read from MH i2c: E2 [05:50:11]MH_I2C_Read... [05:50:11]Read from MH i2c: E2 03 00 [05:50:11]MH_I2C_Read... [05:50:11]Read from MH i2c: E2 03 00 75 04 00 90 00 ED [05:50:11]RAPDU: 90 00 [05:50:11]wFMCommunicate OK [05:50:11]SAM_PROTO_ClearQueue done [05:50:11]KKMCreateOFDPacket [05:50:11]OFDProtocolAddRootSTLVToBuf [05:50:11]FM_MakeSignedData [05:50:11]FM_MakeSignedData [05:50:11]SAM_PROTO_SignData [05:50:11]wFMCommunicate request_size=4 [05:50:11]MH_SAM_APDU [05:50:11]CAPDU: 80 0D 01 02 [05:50:11]Write to MH i2c: E2 08 00 76 04 80 0D 01 02 00 00 00 00 F3 [05:50:11]Write i2c OK [05:50:11]MH_I2C_Read... [05:50:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:50:11]Read from MH i2c: E2 [05:50:11]MH_I2C_Read... [05:50:11]Read from MH i2c: E2 03 00 [05:50:11]MH_I2C_Read... [05:50:11]Read from MH i2c: E2 03 00 76 04 00 90 00 EE [05:50:11]RAPDU: 90 00 [05:50:11]wFMCommunicate OK [05:50:11]wFMCommunicate request_size=255 [05:50:11]MH_SAM_APDU [05:50:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 14 6C 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C5 1D 01 00 35 04 06 00 10 [05:50:11]Write to MH i2c: E2 02 01 77 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 14 6C 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C5 1D 01 00 35 04 06 00 10 00 00 E0 [05:50:11]Write i2c OK [05:50:11]MH_I2C_Read... [05:50:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:50:11]Read from MH i2c: E2 [05:50:11]MH_I2C_Read... [05:50:11]Read from MH i2c: E2 03 00 [05:50:11]MH_I2C_Read... [05:50:11]Read from MH i2c: E2 03 00 77 04 00 90 00 EF [05:50:11]RAPDU: 90 00 [05:50:11]wFMCommunicate OK [05:50:11]wFMCommunicate request_size=10 [05:50:11]MH_SAM_APDU [05:50:11]CAPDU: 80 0D 02 02 05 CB F8 58 E4 3A [05:50:11]Write to MH i2c: E2 0D 00 78 04 80 0D 02 02 05 00 CB F8 58 E4 3A 00 00 39 [05:50:11]Write i2c OK [05:50:11]MH_I2C_Read... [05:50:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:50:11]Read from MH i2c: E2 [05:50:11]MH_I2C_Read... [05:50:11]Read from MH i2c: E2 03 00 [05:50:11]MH_I2C_Read... [05:50:11]Read from MH i2c: E2 03 00 78 04 00 90 00 F0 [05:50:11]RAPDU: 90 00 [05:50:11]wFMCommunicate OK [05:50:11]wFMCommunicate request_size=4 [05:50:11]MH_SAM_APDU [05:50:11]CAPDU: 80 0D 03 02 [05:50:11]Write to MH i2c: E2 08 00 79 04 80 0D 03 02 00 00 00 00 F8 [05:50:11]Write i2c OK [05:50:11]MH_I2C_Read... [05:50:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:50:12]Read from MH i2c: E2 [05:50:12]MH_I2C_Read... [05:50:12]Read from MH i2c: E2 0B 00 [05:50:12]MH_I2C_Read... [05:50:12]Read from MH i2c: E2 0B 00 79 04 00 6A 0F DC 28 A0 69 6A 92 90 00 7B [05:50:12]RAPDU: 6A 0F DC 28 A0 69 6A 92 90 00 [05:50:12]wFMCommunicate OK [05:50:12]SAM_PROTO_SignData done [05:50:12]FM_MakeSignedData done [05:50:12]CreateOFDProtocolMessage [05:50:12]wFMCommunicate request_size=4 [05:50:12]MH_SAM_APDU [05:50:12]CAPDU: 80 11 00 00 [05:50:12]Write to MH i2c: E2 08 00 7A 04 80 11 00 00 00 00 00 00 F8 [05:50:12]Write i2c OK [05:50:12]MH_I2C_Read... [05:50:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:50:12]Read from MH i2c: E2 [05:50:12]MH_I2C_Read... [05:50:12]Read from MH i2c: E2 17 00 [05:50:12]MH_I2C_Read... [05:50:12]Read from MH i2c: E2 17 00 7A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 4C [05:50:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:50:12]wFMCommunicate OK [05:50:12]CreateOFDProtocolMessage done [05:50:12]OFDSenderStorePacket 73157 [05:50:12]StoreOFDPacket docnum=73157 [05:50:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 EF C8 07 01 59 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 14 6C 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C5 1D 01 00 35 04 06 00 10 CB F8 58 E4 3A 6A 0F DC 28 A0 69 6A 92 [05:50:12]CheckFolder [05:50:12]dirname=/storage/ofd_packets [05:50:12]CheckFolder done [05:50:12]ProducePacketName [05:50:12]name=ofd_packets/00073157 [05:50:12]NVStorageSaveData ofd_packets/00073157 [05:50:12]File name is /storage/ofd_packets/00073157 [05:50:12]Write 301 bytes [05:50:12]NVStorageSaveData done [05:50:12]OFDSenderStorePacket done [05:50:12]KKMCreateOFDPacket done [05:50:12]NVStorageSaveData kkm_last_timestamp [05:50:12]File name is /storage/kkm_last_timestamp [05:50:12]Write 4 bytes [05:50:12]NVStorageSaveData done [05:50:12]ExternCall_PrintAddStr [05:50:12]wPrintStart [05:50:12]Write to MH i2c: 01 00 00 7B 04 7F [05:50:12]Write i2c OK [05:50:12]MH_I2C_Read... [05:50:12]Read from MH i2c: 01 [05:50:12]MH_I2C_Read... [05:50:12]Read from MH i2c: 01 07 00 [05:50:12]MH_I2C_Read... [05:50:12]Read from MH i2c: 01 07 00 7B 04 00 00 00 00 00 FF 0F 94 [05:50:12]RasterBufferAndPrint [05:50:12]line Счет N : (1)952756 [05:50:12]line ИНН: 02508201610067 [05:50:12]line Контрольно-Кассовый Чек [05:50:12]line ПРОДАЖА [05:50:12]line ТРК (МРК, ГНК) : 63 [05:50:12]line Товар: 2710124130 [05:50:12]line Аи-92-К-5 [05:50:12]line 5.000 * 0.00 [05:50:12]line = 0.00 [05:50:12]line НДС 12% НСП 1% [05:50:12]line > о реализуемом товаре [05:50:12]line ИТОГО: 0.00 [05:50:12]line НСП 1% : 0.00 [05:50:12]line НДС 12% : 0.00 [05:50:12]line Наличными: 0.00 [05:50:12]line Безнал.: 0.00 [05:50:12]line Место: АЗС № 113 "Партнер Нефть" [05:50:12]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [05:50:12]line СНО: Общий режим [05:50:12]line Чек 26 01.11.2024 05:50 [05:50:12]line Смена: 558 ФФД: 1.0 [05:50:12]line ЗНМ: 0300000087 [05:50:12]line РНМ: 0000000000091644 [05:50:12]line Версия ККМ: 001 [05:50:12]line Талоны: Топливная Карта [05:50:12]line 03047 [05:50:12]line ФМ: 0000000000874662 [05:50:12]line ФД: 73157 [05:50:12]line ФПД: 18468230980666 [05:50:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T055012&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73157&fm=18468230980666&tin=02508201610067®Number=0000000000091644&sum=0 [05:50:12]OFD Sender: Processing packet 73157 [packets to send 282, broken 281] [05:50:12]ProducePacketName [05:50:12]name=ofd_packets/00073157 [05:50:12]OFD Sender: To server: pG, [05:50:12]CommunicateWithHost lk.salyk.kg:30040 [05:50:12]ConnectInit lk.salyk.kg [05:50:12]written 0, free lines is 4095 [05:50:12]Write to MH i2c: 01 00 00 A5 04 A9 [05:50:12]Write i2c OK [05:50:12]MH_I2C_Read... [05:50:12]Read from MH i2c: 01 [05:50:12]MH_I2C_Read... [05:50:12]Read from MH i2c: 01 07 00 [05:50:12]MH_I2C_Read... [05:50:12]Read from MH i2c: 01 07 00 A5 04 00 00 00 00 00 DF 0C 9B [05:50:12]RasterBufferAndPrint [05:50:12]line [05:50:12]line [05:50:12]line [05:50:12]line [05:50:12]line [05:50:12]written 0, free lines is 3301 [05:50:12]MH_Cut [05:50:12]Write to MH i2c: D1 01 00 AC 04 01 82 [05:50:12]Write i2c OK [05:50:12]MH_I2C_Read... [05:50:12]Read from MH i2c: D1 [05:50:12]MH_I2C_Read... [05:50:12]Read from MH i2c: D1 01 00 [05:50:12]MH_I2C_Read... [05:50:12]Read from MH i2c: D1 01 00 AC 04 00 81 [05:50:12]Write to MH i2c: 01 00 00 AD 04 B1 [05:50:12]Write i2c OK [05:50:12]MH_I2C_Read... [05:50:13]*** Cut start [05:50:13]*** Partial cut [05:50:13]*** CUTSNS_PIN = 1 [05:50:13]*** CUTSNS_PIN = 0 [05:50:13]*** Brake cut motor [05:50:14]Read from MH i2c: 01 [05:50:14]MH_I2C_Read... [05:50:14]*** Stop cut motor [05:50:14]*** Cut end [05:50:14]Read from MH i2c: 01 07 00 [05:50:14]MH_I2C_Read... [05:50:14]Read from MH i2c: 01 07 00 AD 04 00 00 00 00 00 FF 0F C6 [05:50:14]process_action close_receipt done [05:50:14]requested_data is exist [05:50:14]produce_requested_data [05:50:14]requested_item fm.sn is exist - process it [05:50:14]wFMCommunicate request_size=4 [05:50:14]MH_SAM_APDU [05:50:14]CAPDU: 80 11 00 00 [05:50:14]Write to MH i2c: E2 08 00 AE 04 80 11 00 00 00 00 00 00 2C [05:50:14]Write i2c OK [05:50:14]MH_I2C_Read... [05:50:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:50:14]Read from MH i2c: E2 [05:50:14]MH_I2C_Read... [05:50:14]Read from MH i2c: E2 17 00 [05:50:14]MH_I2C_Read... [05:50:14]Read from MH i2c: E2 17 00 AE 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 80 [05:50:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:50:14]wFMCommunicate OK [05:50:14]requested_item fd.num is exist - process it [05:50:14]SAM_PROTO_GetFieldsCounters [05:50:14]wFMCommunicate request_size=4 [05:50:14]MH_SAM_APDU [05:50:14]CAPDU: 80 13 00 00 [05:50:14]Write to MH i2c: E2 08 00 AF 04 80 13 00 00 00 00 00 00 2F [05:50:14]Write i2c OK [05:50:14]MH_I2C_Read... [05:50:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:50:14]Read from MH i2c: E2 [05:50:14]MH_I2C_Read... [05:50:14]Read from MH i2c: E2 62 00 [05:50:14]MH_I2C_Read... [05:50:14]Read from MH i2c: E2 62 00 AF 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C5 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [05:50:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C5 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:50:14]wFMCommunicate OK [05:50:14]SAM_PROTO_GetFieldsCounters done [05:50:14]requested_item shift.num is exist - process it [05:50:14]requested_item shift.opened is exist - process it [05:50:14]req_shift_opened [05:50:14]FM_GetShiftState [05:50:14]SAM_PROTO_GetShiftState [05:50:14]wFMCommunicate request_size=4 [05:50:14]MH_SAM_APDU [05:50:14]CAPDU: 80 13 01 00 [05:50:14]Write to MH i2c: E2 08 00 B0 04 80 13 01 00 00 00 00 00 31 [05:50:14]Write i2c OK [05:50:14]MH_I2C_Read... [05:50:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:50:14]Read from MH i2c: E2 [05:50:14]MH_I2C_Read... [05:50:14]Read from MH i2c: E2 0E 00 [05:50:14]MH_I2C_Read... [05:50:14]Read from MH i2c: E2 0E 00 B0 04 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 78 [05:50:14]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [05:50:14]wFMCommunicate OK [05:50:14]SAM_PROTO_GetShiftState done [05:50:14]FM_GetShiftState done [05:50:14]req_shift_opened done [05:50:14]requested_item shift.open_date is exist - process it [05:50:14]req_shift_open_date [05:50:14]req_shift_open_date done [05:50:14]produce_requested_data done [05:50:14]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73157,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [05:50:14]process_action_free close_receipt [05:50:14]json_value_free [05:50:14]json_value_free done [05:50:14]process_json_proto returns [05:50:14]Send response to host [05:50:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73157,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [05:50:14]free response buf [05:50:14]execute_script done [05:50:14]execute_script returns [05:50:14]free content buf [05:50:14]Sock 10.Close socket [05:50:14]Sock 10.Thread stoped [05:50:17]recv_with_timeout no data received [05:50:17]ConnectInit Can't take IP for lk.salyk.kg [05:50:17]CommunicateWithHost connect error [05:50:17]CommunicateWithHost err = -1 [05:50:17]OFD Sender: Server communicate error [05:50:22]OFD Sender: Processing packet 73157 [packets to send 282, broken 281] [05:50:22]ProducePacketName [05:50:22]name=ofd_packets/00073157 [05:50:22]OFD Sender: To server: pG, [05:50:22]CommunicateWithHost lk.salyk.kg:30040 [05:50:22]ConnectInit lk.salyk.kg [05:50:27]Connected sock=10 [05:50:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 EF C8 07 01 59 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 14 6C 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C5 1D 01 00 35 04 06 00 10 CB F8 58 E4 3A 6A 0F DC 28 A0 69 6A 92 [05:50:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 2C 6B 47 00 C0 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C5 1D 01 00 F4 03 04 00 D7 16 24 67 B6 04 01 00 00 77 25 2B 6A FD 1F E2 AA [05:50:28]CommunicateWithHost err = 0 [05:50:28]CheckOFDResponse [05:50:28]1017 (14) - 77093643461234 [05:50:28]1041 (16) - 0000000000874662 [05:50:28]1040 (4) - 73157 [05:50:28]1012 (4) - 31.10.2024 23:46 [05:50:28]1206 (1) - 0 [05:50:28]OFD Sender: Remove packet 73157 [05:50:28]ProducePacketName [05:50:28]name=ofd_packets/00073157 [05:50:28]NVStorageDeleteData [05:50:28]OFD Sender: No OFD packet to send [05:50:33]OFD Sender: No OFD packet to send [05:50:38]OFD Sender: No OFD packet to send [05:50:43]OFD Sender: No OFD packet to send [05:50:48]OFD Sender: No OFD packet to send [05:50:53]OFD Sender: No OFD packet to send [05:50:58]OFD Sender: No OFD packet to send [05:51:02]recv_with_timeout no data received [05:51:03]OFD Sender: No OFD packet to send [05:51:08]OFD Sender: No OFD packet to send [05:51:13]OFD Sender: No OFD packet to send [05:51:18]OFD Sender: No OFD packet to send [05:51:23]OFD Sender: No OFD packet to send [05:51:28]OFD Sender: No OFD packet to send [05:51:33]OFD Sender: No OFD packet to send [05:51:38]OFD Sender: No OFD packet to send [05:51:43]OFD Sender: No OFD packet to send [05:51:48]OFD Sender: No OFD packet to send [05:51:53]OFD Sender: No OFD packet to send [05:51:58]OFD Sender: No OFD packet to send [05:52:03]OFD Sender: No OFD packet to send [05:52:08]OFD Sender: No OFD packet to send [05:52:13]OFD Sender: No OFD packet to send [05:52:18]OFD Sender: No OFD packet to send [05:52:23]OFD Sender: No OFD packet to send [05:52:28]OFD Sender: No OFD packet to send [05:52:33]OFD Sender: No OFD packet to send [05:52:38]OFD Sender: No OFD packet to send [05:52:43]OFD Sender: No OFD packet to send [05:52:48]OFD Sender: No OFD packet to send [05:52:53]OFD Sender: No OFD packet to send [05:52:55]recv_with_timeout no data received [05:52:58]OFD Sender: No OFD packet to send [05:53:03]OFD Sender: No OFD packet to send [05:53:08]OFD Sender: No OFD packet to send [05:53:13]OFD Sender: No OFD packet to send [05:53:18]OFD Sender: No OFD packet to send [05:53:23]OFD Sender: No OFD packet to send [05:53:28]OFD Sender: No OFD packet to send [05:53:33]OFD Sender: No OFD packet to send [05:53:38]OFD Sender: No OFD packet to send [05:53:42]recv_with_timeout no data received [05:53:43]OFD Sender: No OFD packet to send [05:53:48]OFD Sender: No OFD packet to send [05:53:53]OFD Sender: No OFD packet to send [05:53:58]OFD Sender: No OFD packet to send [05:54:03]OFD Sender: No OFD packet to send [05:54:07]recv_with_timeout no data received [05:54:08]OFD Sender: No OFD packet to send [05:54:13]OFD Sender: No OFD packet to send [05:54:17]recv_with_timeout no data received [05:54:18]OFD Sender: No OFD packet to send [05:54:23]OFD Sender: No OFD packet to send [05:54:28]OFD Sender: No OFD packet to send [05:54:33]OFD Sender: No OFD packet to send [05:54:38]OFD Sender: No OFD packet to send [05:54:43]OFD Sender: No OFD packet to send [05:54: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:09]OFD Sender: No OFD packet to send [05:55:14]OFD Sender: No OFD packet to send [05:55:19]OFD Sender: No OFD packet to send [05:55:24]OFD Sender: No OFD packet to send [05:55:29]OFD Sender: No OFD packet to send [05:55:34]OFD Sender: No OFD packet to send [05:55:39]OFD Sender: No OFD packet to send [05:55:39]recv_with_timeout no data received [05:55:44]OFD Sender: No OFD packet to send [05:55:49]OFD Sender: No OFD packet to send [05:55:54]OFD Sender: No OFD packet to send [05:55:59]OFD Sender: No OFD packet to send [05:56:04]OFD Sender: No OFD packet to send [05:56:09]OFD Sender: No OFD packet to send [05:56:14]OFD Sender: No OFD packet to send [05:56:19]OFD Sender: No OFD packet to send [05:56:24]OFD Sender: No OFD packet to send [05:56:29]OFD Sender: No OFD packet to send [05:56:34]OFD Sender: No OFD packet to send [05:56:39]OFD Sender: No OFD packet to send [05:56:44]OFD Sender: No OFD packet to send [05:56:49]OFD Sender: No OFD packet to send [05:56:50]recv_with_timeout no data received [05:56:54]OFD Sender: No OFD packet to send [05:56:59]OFD Sender: No OFD packet to send [05:57:00]recv_with_timeout no data received [05:57:04]OFD Sender: No OFD packet to send [05:57:09]OFD Sender: No OFD packet to send [05:57:14]OFD Sender: No OFD packet to send [05:57:19]OFD Sender: No OFD packet to send [05:57:24]OFD Sender: No OFD packet to send [05:57:26]recv_with_timeout no data received [05:57:29]OFD Sender: No OFD packet to send [05:57:34]OFD Sender: No OFD packet to send [05:57:39]OFD Sender: No OFD packet to send [05:57:44]OFD Sender: No OFD packet to send [05:57:49]OFD Sender: No OFD packet to send [05:57:54]OFD Sender: No OFD packet to send [05:57:59]OFD Sender: No OFD packet to send [05:58:04]OFD Sender: No OFD packet to send [05:58:09]OFD Sender: No OFD packet to send [05:58:14]OFD Sender: No OFD packet to send [05:58:19]OFD Sender: No OFD packet to send [05:58:24]OFD Sender: No OFD packet to send [05:58:29]OFD Sender: No OFD packet to send [05:58:30]recv_with_timeout no data received [05:58:34]OFD Sender: No OFD packet to send [05:58:39]OFD Sender: No OFD packet to send [05:58:44]OFD Sender: No OFD packet to send [05:58:49]OFD Sender: No OFD packet to send [05:58:54]OFD Sender: No OFD packet to send [05:58:59]OFD Sender: No OFD packet to send [05:59:04]OFD Sender: No OFD packet to send [05:59:09]OFD Sender: No OFD packet to send [05:59:14]OFD Sender: No OFD packet to send [05:59:19]OFD Sender: No OFD packet to send [05:59:24]OFD Sender: No OFD packet to send [05:59:29]OFD Sender: No OFD packet to send [05:59:34]OFD Sender: No OFD packet to send [05:59:39]OFD Sender: No OFD packet to send [05:59:44]OFD Sender: No OFD packet to send [05:59:49]OFD Sender: No OFD packet to send [05:59:54]OFD Sender: No OFD packet to send [05:59:59]OFD Sender: No OFD packet to send [06:00:04]OFD Sender: No OFD packet to send [06:00:09]OFD Sender: No OFD packet to send [06:00:14]OFD Sender: No OFD packet to send [06:00:19]OFD Sender: No OFD packet to send [06:00:24]OFD Sender: No OFD packet to send [06:00:29]OFD Sender: No OFD packet to send [06:00:34]OFD Sender: No OFD packet to send [06:00:39]OFD Sender: No OFD packet to send [06:00:44]OFD Sender: No OFD packet to send [06:00:49]OFD Sender: No OFD packet to send [06:00:54]OFD Sender: No OFD packet to send [06:00:59]OFD Sender: No OFD packet to send [06:01:04]OFD Sender: No OFD packet to send [06:01:09]OFD Sender: No OFD packet to send [06:01:14]OFD Sender: No OFD packet to send [06:01:19]OFD Sender: No OFD packet to send [06:01:24]OFD Sender: No OFD packet to send [06:01:29]OFD Sender: No OFD packet to send [06:01:34]OFD Sender: No OFD packet to send [06:01:39]OFD Sender: No OFD packet to send [06:01:44]OFD Sender: No OFD packet to send [06:01:49]OFD Sender: No OFD packet to send [06:01:54]OFD Sender: No OFD packet to send [06:01:59]OFD Sender: No OFD packet to send [06:02:04]OFD Sender: No OFD packet to send [06:02:09]OFD Sender: No OFD packet to send [06:02:14]OFD Sender: No OFD packet to send [06:02:19]OFD Sender: No OFD packet to send [06:02:24]OFD Sender: No OFD packet to send [06:02:29]OFD Sender: No OFD packet to send [06:02:34]OFD Sender: No OFD packet to send [06:02:39]OFD Sender: No OFD packet to send [06:02:41]recv_with_timeout no data received [06:02:44]OFD Sender: No OFD packet to send [06:02:49]OFD Sender: No OFD packet to send [06:02:52]recv_with_timeout no data received [06:02:54]OFD Sender: No OFD packet to send [06:02:59]OFD Sender: No OFD packet to send [06:03:02]recv_with_timeout no data received [06:03:04]OFD Sender: No OFD packet to send [06:03:09]OFD Sender: No OFD packet to send [06:03:14]OFD Sender: No OFD packet to send [06:03:19]OFD Sender: No OFD packet to send [06:03:24]OFD Sender: No OFD packet to send [06:03:27]recv_with_timeout no data received [06:03:29]OFD Sender: No OFD packet to send [06:03:34]OFD Sender: No OFD packet to send [06:03:39]OFD Sender: No OFD packet to send [06:03:44]OFD Sender: No OFD packet to send [06:03:47]recv_with_timeout no data received [06:03:49]OFD Sender: No OFD packet to send [06:03:54]OFD Sender: No OFD packet to send [06:03:58]recv_with_timeout no data received [06:03:59]OFD Sender: No OFD packet to send [06:04:04]OFD Sender: No OFD packet to send [06:04:09]OFD Sender: No OFD packet to send [06:04:14]OFD Sender: No OFD packet to send [06:04:19]OFD Sender: No OFD packet to send [06:04:24]OFD Sender: No OFD packet to send [06:04:29]OFD Sender: No OFD packet to send [06:04:34]OFD Sender: No OFD packet to send [06:04:40]OFD Sender: No OFD packet to send [06:04:40]recv_with_timeout no data received [06:04:45]OFD Sender: No OFD packet to send [06:04:50]OFD Sender: No OFD packet to send [06:04:51]recv_with_timeout no data received [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:35]recv_with_timeout no data received [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:07]recv_with_timeout no data received [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:41]recv_with_timeout no data received [06:08:45]OFD Sender: No OFD packet to send [06:08:50]OFD Sender: No OFD packet to send [06:08:51]recv_with_timeout no data received [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]recv_with_timeout no data received [06:10:45]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:31]OFD Sender: No OFD packet to send [06:14:36]OFD Sender: No OFD packet to send [06:14:41]OFD Sender: No OFD packet to send [06:14:46]OFD Sender: No OFD packet to send [06:14:51]OFD Sender: No OFD packet to send [06:14:56]OFD Sender: No OFD packet to send [06:15:01]OFD Sender: No OFD packet to send [06:15:06]OFD Sender: No OFD packet to send [06:15:11]OFD Sender: No OFD packet to send [06:15:16]OFD Sender: No OFD packet to send [06:15:21]OFD Sender: No OFD packet to send [06:15:26]OFD Sender: No OFD packet to send [06:15:28]ConnectInit Can't connect to host [06:15:29]accept exits with 7 [06:15:29]New connection [06:15:29]New thread 3066932580 created [06:15:29]Thread 3066789220 joined [06:15:29]Waiting for new connection... [06:15:29] Sock 7.Parse request [06:15:29]Sock 7.Check first char [06:15:29]Sock 7.First char is OK [06:15:29]request: POST /json_proto HTTP/1.0 [06:15:29]Method: POST [06:15:29]URL: /json_proto [06:15:29]Method is POST - this is cgi request [06:15:29]url: /json_proto [06:15:29]query_string will be loaded in cgi processing [06:15:29]execute_cgi json_proto POST (null) [06:15:29]execute_cgi path=json_proto method=POST [06:15:29]POST find Content-Length [06:15:29]Host: 172.17.43.195:8080 [06:15:29]Content-Length: 797 [06:15:29]Content-Type: application/json [06:15:29] [06:15:29]POST finish read [06:15:29]Found Content-Length = 797 [06:15:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02083", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:15:29]execute_script... [06:15: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)952758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02083", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:15:29]POST & json_proto [06:15:29]process_json_proto [06:15:29]json parsed OK: [06:15:29]protocol is kg_v1.0 [06:15:29]action value=close_receipt [06:15:29]process_action close_receipt [06:15:29]cmd_close_receipt [06:15:29]MH_GetDate [06:15:29]Write to MH i2c: F0 00 00 B1 04 A4 [06:15:29]Write i2c OK [06:15:29]MH_I2C_Read... [06:15:29]Read from MH i2c: F0 [06:15:29]MH_I2C_Read... [06:15:29]Read from MH i2c: F0 09 00 [06:15:29]MH_I2C_Read... [06:15:29]Read from MH i2c: F0 09 00 B1 04 00 03 72 24 67 74 2C AD 66 60 [06:15:29]GetLastDocTimeStamp 1730440212 [06:15:29]current date 1730441731 [06:15:29]FM_GetShiftState [06:15:29]SAM_PROTO_GetShiftState [06:15:29]wFMCommunicate request_size=4 [06:15:29]MH_SAM_APDU [06:15:29]CAPDU: 80 13 01 00 [06:15:29]Write to MH i2c: E2 08 00 B2 04 80 13 01 00 00 00 00 00 33 [06:15:29]Write i2c OK [06:15:29]MH_I2C_Read... [06:15:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:15:29]Read from MH i2c: E2 [06:15:29]MH_I2C_Read... [06:15:29]Read from MH i2c: E2 0E 00 [06:15:29]MH_I2C_Read... [06:15:29]Read from MH i2c: E2 0E 00 B2 04 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 7A [06:15:29]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [06:15:29]wFMCommunicate OK [06:15:29]SAM_PROTO_GetShiftState done [06:15:29]FM_GetShiftState done [06:15:29]opened in 1730419605 [06:15:29]opened+sec_in_day 1730506005 [06:15:29]quantity*price = 0 [06:15:29]sum+1 = 1 [06:15:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 27 01.11.2024 06:15 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02083 ФМ: 0000000000874662 ФД: 73158 ФПД: 79152872919203 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T061531&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73158&fm=79152872919203&tin=02508201610067®Number=0000000000091644&sum=0 [06:15:30]StoreToDocumentArchive [06:15:30]shift 558 fd 73158 [06:15:30]save to /storage/0558/doc_00073158 [06:15:30]save last doc name /storage/0558/doc_00073158 to /storage/kkm_last_doc_name [06:15:30]save OK [06:15:30]Clear old archive folders... [06:15:30]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:15:30]tlvbuf is 001A3F50 [06:15:30]SAM_PROTO_ClearQueue [06:15:30]wFMCommunicate request_size=4 [06:15:30]MH_SAM_APDU [06:15:30]CAPDU: 80 09 00 00 [06:15:30]Write to MH i2c: E2 08 00 BF 04 80 09 00 00 00 00 00 00 35 [06:15:30]Write i2c OK [06:15:30]MH_I2C_Read... [06:15:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:15:31]Read from MH i2c: E2 [06:15:31]MH_I2C_Read... [06:15:31]Read from MH i2c: E2 03 00 [06:15:31]MH_I2C_Read... [06:15:31]Read from MH i2c: E2 03 00 BF 04 00 90 00 37 [06:15:31]RAPDU: 90 00 [06:15:31]wFMCommunicate OK [06:15:31]SAM_PROTO_ClearQueue done [06:15:31]KKMCreateOFDPacket [06:15:31]OFDProtocolAddRootSTLVToBuf [06:15:31]FM_MakeSignedData [06:15:31]FM_MakeSignedData [06:15:31]SAM_PROTO_SignData [06:15:31]wFMCommunicate request_size=4 [06:15:31]MH_SAM_APDU [06:15:31]CAPDU: 80 0D 01 02 [06:15:31]Write to MH i2c: E2 08 00 C0 04 80 0D 01 02 00 00 00 00 3D [06:15:31]Write i2c OK [06:15:31]MH_I2C_Read... [06:15:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:15:31]Read from MH i2c: E2 [06:15:31]MH_I2C_Read... [06:15:31]Read from MH i2c: E2 03 00 [06:15:31]MH_I2C_Read... [06:15:31]Read from MH i2c: E2 03 00 C0 04 00 90 00 38 [06:15:31]RAPDU: 90 00 [06:15:31]wFMCommunicate OK [06:15:31]wFMCommunicate request_size=255 [06:15:31]MH_SAM_APDU [06:15: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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 03 72 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C6 1D 01 00 35 04 06 00 [06:15:31]Write to MH i2c: E2 02 01 C1 04 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 03 72 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C6 1D 01 00 35 04 06 00 00 00 1F [06:15:31]Write i2c OK [06:15:31]MH_I2C_Read... [06:15:31]OFD Sender: No OFD packet to send [06:15:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:15:31]Read from MH i2c: E2 [06:15:31]MH_I2C_Read... [06:15:31]Read from MH i2c: E2 03 00 [06:15:31]MH_I2C_Read... [06:15:31]Read from MH i2c: E2 03 00 C1 04 00 90 00 39 [06:15:31]RAPDU: 90 00 [06:15:31]wFMCommunicate OK [06:15:31]wFMCommunicate request_size=11 [06:15:31]MH_SAM_APDU [06:15:31]CAPDU: 80 0D 02 02 06 47 FD 36 DF 90 A3 [06:15:31]Write to MH i2c: E2 0E 00 C2 04 80 0D 02 02 06 00 47 FD 36 DF 90 A3 00 00 D8 [06:15:31]Write i2c OK [06:15:31]MH_I2C_Read... [06:15:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:15:31]Read from MH i2c: E2 [06:15:31]MH_I2C_Read... [06:15:31]Read from MH i2c: E2 03 00 [06:15:31]MH_I2C_Read... [06:15:31]Read from MH i2c: E2 03 00 C2 04 00 90 00 3A [06:15:31]RAPDU: 90 00 [06:15:31]wFMCommunicate OK [06:15:31]wFMCommunicate request_size=4 [06:15:31]MH_SAM_APDU [06:15:31]CAPDU: 80 0D 03 02 [06:15:31]Write to MH i2c: E2 08 00 C3 04 80 0D 03 02 00 00 00 00 42 [06:15:31]Write i2c OK [06:15:31]MH_I2C_Read... [06:15:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:15:31]Read from MH i2c: E2 [06:15:31]MH_I2C_Read... [06:15:31]Read from MH i2c: E2 0B 00 [06:15:31]MH_I2C_Read... [06:15:31]Read from MH i2c: E2 0B 00 C3 04 00 E4 C8 6C 83 5D 37 9E A2 90 00 B2 [06:15:31]RAPDU: E4 C8 6C 83 5D 37 9E A2 90 00 [06:15:31]wFMCommunicate OK [06:15:31]SAM_PROTO_SignData done [06:15:31]FM_MakeSignedData done [06:15:31]CreateOFDProtocolMessage [06:15:31]wFMCommunicate request_size=4 [06:15:31]MH_SAM_APDU [06:15:31]CAPDU: 80 11 00 00 [06:15:31]Write to MH i2c: E2 08 00 C4 04 80 11 00 00 00 00 00 00 42 [06:15:31]Write i2c OK [06:15:31]MH_I2C_Read... [06:15:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:15:31]Read from MH i2c: E2 [06:15:31]MH_I2C_Read... [06:15:31]Read from MH i2c: E2 17 00 [06:15:31]MH_I2C_Read... [06:15:31]Read from MH i2c: E2 17 00 C4 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 96 [06:15:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [06:15:31]wFMCommunicate OK [06:15:31]CreateOFDProtocolMessage done [06:15:31]OFDSenderStorePacket 73158 [06:15:31]StoreOFDPacket docnum=73158 [06:15:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 D4 C1 08 01 35 65 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 03 72 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C6 1D 01 00 35 04 06 00 47 FD 36 DF 90 A3 E4 C8 6C 83 5D 37 9E A2 [06:15:31]CheckFolder [06:15:31]dirname=/storage/ofd_packets [06:15:31]CheckFolder done [06:15:31]ProducePacketName [06:15:31]name=ofd_packets/00073158 [06:15:31]NVStorageSaveData ofd_packets/00073158 [06:15:31]File name is /storage/ofd_packets/00073158 [06:15:31]Write 302 bytes [06:15:31]NVStorageSaveData done [06:15:31]OFDSenderStorePacket done [06:15:31]KKMCreateOFDPacket done [06:15:31]NVStorageSaveData kkm_last_timestamp [06:15:31]File name is /storage/kkm_last_timestamp [06:15:31]Write 4 bytes [06:15:31]NVStorageSaveData done [06:15:31]ExternCall_PrintAddStr [06:15:31]wPrintStart [06:15:31]Write to MH i2c: 01 00 00 C5 04 C9 [06:15:31]Write i2c OK [06:15:31]MH_I2C_Read... [06:15:31]Read from MH i2c: 01 [06:15:31]MH_I2C_Read... [06:15:31]Read from MH i2c: 01 07 00 [06:15:31]MH_I2C_Read... [06:15:31]Read from MH i2c: 01 07 00 C5 04 00 00 00 00 00 FF 0F DE [06:15:31]RasterBufferAndPrint [06:15:31]line Счет N : (1)952758 [06:15:31]line ИНН: 02508201610067 [06:15:31]line Контрольно-Кассовый Чек [06:15:31]line ПРОДАЖА [06:15:31]line ТРК (МРК, ГНК) : 33 [06:15:31]line Товар: 2710194210 [06:15:31]line ДТ(л)-К-5 [06:15:31]line 20.000 * 0.00 [06:15:31]line = 0.00 [06:15:31]line НДС 12% НСП 1% [06:15:31]line > о реализуемом товаре [06:15:31]line ИТОГО: 0.00 [06:15:31]line НСП 1% : 0.00 [06:15:31]line НДС 12% : 0.00 [06:15:31]line Наличными: 0.00 [06:15:31]line Безнал.: 0.00 [06:15:31]line Место: АЗС № 113 "Партнер Нефть" [06:15:31]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [06:15:31]line СНО: Общий режим [06:15:31]line Чек 27 01.11.2024 06:15 [06:15:31]line Смена: 558 ФФД: 1.0 [06:15:31]line ЗНМ: 0300000087 [06:15:31]line РНМ: 0000000000091644 [06:15:31]line Версия ККМ: 001 [06:15:31]line Талоны: Топливная Карта [06:15:31]line 02083 [06:15:31]line ФМ: 0000000000874662 [06:15:31]line ФД: 73158 [06:15:31]line ФПД: 79152872919203 [06:15:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T061531&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73158&fm=79152872919203&tin=02508201610067®Number=0000000000091644&sum=0 [06:15:31]OFD Sender: Processing packet 73158 [packets to send 282, broken 281] [06:15:31]ProducePacketName [06:15:31]name=ofd_packets/00073158 [06:15:31]OFD Sender: To server: pG, [06:15:31]CommunicateWithHost lk.salyk.kg:30040 [06:15:31]ConnectInit lk.salyk.kg [06:15:31]written 0, free lines is 4095 [06:15:32]Write to MH i2c: 01 00 00 EF 04 F3 [06:15:32]Write i2c OK [06:15:32]MH_I2C_Read... [06:15:32]Read from MH i2c: 01 [06:15:32]MH_I2C_Read... [06:15:32]Read from MH i2c: 01 07 00 [06:15:32]MH_I2C_Read... [06:15:32]Read from MH i2c: 01 07 00 EF 04 00 00 00 00 00 E5 0C EB [06:15:32]RasterBufferAndPrint [06:15:32]line [06:15:32]line [06:15:32]line [06:15:32]line [06:15:32]line [06:15:32]written 0, free lines is 3307 [06:15:32]MH_Cut [06:15:32]Write to MH i2c: D1 01 00 F6 04 01 CC [06:15:32]Write i2c OK [06:15:32]MH_I2C_Read... [06:15:32]Read from MH i2c: D1 [06:15:32]MH_I2C_Read... [06:15:32]Read from MH i2c: D1 01 00 [06:15:32]MH_I2C_Read... [06:15:32]Read from MH i2c: D1 01 00 F6 04 00 CB [06:15:32]Write to MH i2c: 01 00 00 F7 04 FB [06:15:32]Write i2c OK [06:15:32]MH_I2C_Read... [06:15:32]Connected sock=10 [06:15:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 D4 C1 08 01 35 65 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 03 72 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C6 1D 01 00 35 04 06 00 47 FD 36 DF 90 A3 E4 C8 6C 83 5D 37 9E A2 [06:15:32]*** Cut start [06:15:32]*** Partial cut [06:15:32]*** CUTSNS_PIN = 1 [06:15:33]*** CUTSNS_PIN = 0 [06:15:33]*** Brake cut motor [06:15:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 67 04 47 00 7A 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C6 1D 01 00 F4 03 04 00 B8 1C 24 67 B6 04 01 00 00 33 01 0B 34 7F B2 5F 67 [06:15:33]CommunicateWithHost err = 0 [06:15:33]CheckOFDResponse [06:15:33]1017 (14) - 77093643461234 [06:15:33]1041 (16) - 0000000000874662 [06:15:33]1040 (4) - 73158 [06:15:33]1012 (4) - 01.11.2024 00:11 [06:15:33]1206 (1) - 0 [06:15:33]OFD Sender: Remove packet 73158 [06:15:33]ProducePacketName [06:15:33]name=ofd_packets/00073158 [06:15:33]NVStorageDeleteData [06:15:33]Read from MH i2c: 01 [06:15:33]MH_I2C_Read... [06:15:33]*** Stop cut motor [06:15:33]*** Cut end [06:15:33]Read from MH i2c: 01 07 00 [06:15:33]MH_I2C_Read... [06:15:33]Read from MH i2c: 01 07 00 F7 04 00 00 00 00 00 FF 0F 10 [06:15:33]process_action close_receipt done [06:15:33]requested_data is exist [06:15:33]produce_requested_data [06:15:33]requested_item fm.sn is exist - process it [06:15:33]wFMCommunicate request_size=4 [06:15:33]MH_SAM_APDU [06:15:33]CAPDU: 80 11 00 00 [06:15:33]Write to MH i2c: E2 08 00 F8 04 80 11 00 00 00 00 00 00 76 [06:15:33]Write i2c OK [06:15:33]MH_I2C_Read... [06:15:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:15:33]Read from MH i2c: E2 [06:15:33]MH_I2C_Read... [06:15:33]Read from MH i2c: E2 17 00 [06:15:33]MH_I2C_Read... [06:15:33]Read from MH i2c: E2 17 00 F8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 CA [06:15:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [06:15:33]wFMCommunicate OK [06:15:33]requested_item fd.num is exist - process it [06:15:33]SAM_PROTO_GetFieldsCounters [06:15:33]wFMCommunicate request_size=4 [06:15:33]MH_SAM_APDU [06:15:33]CAPDU: 80 13 00 00 [06:15:33]Write to MH i2c: E2 08 00 F9 04 80 13 00 00 00 00 00 00 79 [06:15:33]Write i2c OK [06:15:33]MH_I2C_Read... [06:15:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:15:33]Read from MH i2c: E2 [06:15:33]MH_I2C_Read... [06:15:33]Read from MH i2c: E2 62 00 [06:15:33]MH_I2C_Read... [06:15:33]Read from MH i2c: E2 62 00 F9 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C6 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [06:15:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C6 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:15:33]wFMCommunicate OK [06:15:33]SAM_PROTO_GetFieldsCounters done [06:15:33]requested_item shift.num is exist - process it [06:15:33]requested_item shift.opened is exist - process it [06:15:33]req_shift_opened [06:15:33]FM_GetShiftState [06:15:33]SAM_PROTO_GetShiftState [06:15:33]wFMCommunicate request_size=4 [06:15:33]MH_SAM_APDU [06:15:33]CAPDU: 80 13 01 00 [06:15:33]Write to MH i2c: E2 08 00 FA 04 80 13 01 00 00 00 00 00 7B [06:15:33]Write i2c OK [06:15:33]MH_I2C_Read... [06:15:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:15:33]Read from MH i2c: E2 [06:15:33]MH_I2C_Read... [06:15:33]Read from MH i2c: E2 0E 00 [06:15:33]MH_I2C_Read... [06:15:33]Read from MH i2c: E2 0E 00 FA 04 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 C2 [06:15:33]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [06:15:33]wFMCommunicate OK [06:15:33]SAM_PROTO_GetShiftState done [06:15:33]FM_GetShiftState done [06:15:33]req_shift_opened done [06:15:33]requested_item shift.open_date is exist - process it [06:15:33]req_shift_open_date [06:15:33]req_shift_open_date done [06:15:33]produce_requested_data done [06:15:33]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73158,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [06:15:33]process_action_free close_receipt [06:15:33]json_value_free [06:15:33]json_value_free done [06:15:33]process_json_proto returns [06:15:33]Send response to host [06:15:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73158,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [06:15:33]free response buf [06:15:33]execute_script done [06:15:33]execute_script returns [06:15:33]free content buf [06:15:33]Sock 7.Close socket [06:15:33]Sock 7.Thread stoped [06:15:33]OFD Sender: No OFD packet to send [06:15:38]OFD Sender: No OFD packet to send [06:15:43]OFD Sender: No OFD packet to send [06:15:48]OFD Sender: No OFD packet to send [06:15:54]OFD Sender: No OFD packet to send [06:15:59]OFD Sender: No OFD packet to send [06:16:04]OFD Sender: No OFD packet to send [06:16:09]OFD Sender: No OFD packet to send [06:16:10]recv_with_timeout no data received [06:16:14]OFD Sender: No OFD packet to send [06:16:19]OFD Sender: No OFD packet to send [06:16:22]accept exits with 9 [06:16:22]New connection [06:16:22]New thread 3066789220 created [06:16:22]Thread 3066932580 joined [06:16:22]Waiting for new connection... [06:16:22] Sock 9.Parse request [06:16:22]Sock 9.Check first char [06:16:22]Sock 9.First char is OK [06:16:22]request: POST /json_proto HTTP/1.0 [06:16:22]Method: POST [06:16:22]URL: /json_proto [06:16:22]Method is POST - this is cgi request [06:16:22]url: /json_proto [06:16:22]query_string will be loaded in cgi processing [06:16:22]execute_cgi json_proto POST (null) [06:16:22]execute_cgi path=json_proto method=POST [06:16:22]POST find Content-Length [06:16:22]Host: 172.17.43.195:8080 [06:16:22]Content-Length: 681 [06:16:22]Content-Type: application/json [06:16:22] [06:16:22]POST finish read [06:16:22]Found Content-Length = 681 [06:16:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 15.430, "sum" : 600.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [06:16:22]execute_script... [06:16: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)952757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 15.430, "sum" : 600.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [06:16:22]POST & json_proto [06:16:22]process_json_proto [06:16:22]json parsed OK: [06:16:22]protocol is kg_v1.0 [06:16:22]action value=close_receipt [06:16:22]process_action close_receipt [06:16:22]cmd_close_receipt [06:16:22]MH_GetDate [06:16:22]Write to MH i2c: F0 00 00 FB 04 EE [06:16:22]Write i2c OK [06:16:22]MH_I2C_Read... [06:16:22]Read from MH i2c: F0 [06:16:22]MH_I2C_Read... [06:16:22]Read from MH i2c: F0 09 00 [06:16:22]MH_I2C_Read... [06:16:22]Read from MH i2c: F0 09 00 FB 04 00 38 72 24 67 74 2C AD 66 DF [06:16:22]GetLastDocTimeStamp 1730441731 [06:16:22]current date 1730441784 [06:16:22]FM_GetShiftState [06:16:22]SAM_PROTO_GetShiftState [06:16:22]wFMCommunicate request_size=4 [06:16:22]MH_SAM_APDU [06:16:22]CAPDU: 80 13 01 00 [06:16:22]Write to MH i2c: E2 08 00 FC 04 80 13 01 00 00 00 00 00 7D [06:16:22]Write i2c OK [06:16:22]MH_I2C_Read... [06:16:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:16:22]Read from MH i2c: E2 [06:16:22]MH_I2C_Read... [06:16:22]Read from MH i2c: E2 0E 00 [06:16:22]MH_I2C_Read... [06:16:22]Read from MH i2c: E2 0E 00 FC 04 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 C4 [06:16:22]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [06:16:22]wFMCommunicate OK [06:16:22]SAM_PROTO_GetShiftState done [06:16:22]FM_GetShiftState done [06:16:22]opened in 1730419605 [06:16:22]opened+sec_in_day 1730506005 [06:16:22]quantity*price = 60022 [06:16:22]sum+1 = 60024 [06:16:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 28 01.11.2024 06:16 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73159 ФПД: 158318214424660 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T061624&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73159&fm=158318214424660&tin=02508201610067®Number=0000000000091644&sum=60000 [06:16:23]StoreToDocumentArchive [06:16:23]shift 558 fd 73159 [06:16:23]save to /storage/0558/doc_00073159 [06:16:23]save last doc name /storage/0558/doc_00073159 to /storage/kkm_last_doc_name [06:16:23]save OK [06:16:23]Clear old archive folders... [06:16:23]ProcessDocumentItem done err = 0, tmpTLVsize=250 [06:16:23]tlvbuf is 0020DDC0 [06:16:23]SAM_PROTO_ClearQueue [06:16:23]wFMCommunicate request_size=4 [06:16:23]MH_SAM_APDU [06:16:23]CAPDU: 80 09 00 00 [06:16:23]Write to MH i2c: E2 08 00 09 05 80 09 00 00 00 00 00 00 80 [06:16:23]Write i2c OK [06:16:23]MH_I2C_Read... [06:16:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:16:23]Read from MH i2c: E2 [06:16:23]MH_I2C_Read... [06:16:23]Read from MH i2c: E2 03 00 [06:16:23]MH_I2C_Read... [06:16:23]Read from MH i2c: E2 03 00 09 05 00 90 00 82 [06:16:23]RAPDU: 90 00 [06:16:23]wFMCommunicate OK [06:16:23]SAM_PROTO_ClearQueue done [06:16:23]KKMCreateOFDPacket [06:16:23]OFDProtocolAddRootSTLVToBuf [06:16:23]FM_MakeSignedData [06:16:23]FM_MakeSignedData [06:16:23]SAM_PROTO_SignData [06:16:23]wFMCommunicate request_size=4 [06:16:23]MH_SAM_APDU [06:16:23]CAPDU: 80 0D 01 02 [06:16:23]Write to MH i2c: E2 08 00 0A 05 80 0D 01 02 00 00 00 00 88 [06:16:23]Write i2c OK [06:16:23]MH_I2C_Read... [06:16:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:16:23]Read from MH i2c: E2 [06:16:23]MH_I2C_Read... [06:16:23]Read from MH i2c: E2 03 00 [06:16:23]MH_I2C_Read... [06:16:23]Read from MH i2c: E2 03 00 0A 05 00 90 00 83 [06:16:23]RAPDU: 90 00 [06:16:23]wFMCommunicate OK [06:16:23]wFMCommunicate request_size=255 [06:16:23]MH_SAM_APDU [06:16:23]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 E6 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 1C 00 00 00 F4 03 04 00 38 72 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C7 1D 01 00 35 04 06 00 8F FD [06:16:23]Write to MH i2c: E2 02 01 0B 05 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 E6 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 1C 00 00 00 F4 03 04 00 38 72 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C7 1D 01 00 35 04 06 00 8F FD 00 00 F4 [06:16:23]Write i2c OK [06:16:23]MH_I2C_Read... [06:16:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:16:23]Read from MH i2c: E2 [06:16:23]MH_I2C_Read... [06:16:23]Read from MH i2c: E2 03 00 [06:16:23]MH_I2C_Read... [06:16:23]Read from MH i2c: E2 03 00 0B 05 00 90 00 84 [06:16:23]RAPDU: 90 00 [06:16:23]wFMCommunicate OK [06:16:23]wFMCommunicate request_size=9 [06:16:23]MH_SAM_APDU [06:16:23]CAPDU: 80 0D 02 02 04 54 EE A8 54 [06:16:23]Write to MH i2c: E2 0C 00 0C 05 80 0D 02 02 04 00 54 EE A8 54 00 00 D1 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1F [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 540000000057257A (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 7819250+1722625140=1730444390 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33550623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 20 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 67 7C 24 67 74 2C AD 66 20 [06:59:51]Current date/time: 01.11.2024 06:59 [06:59:51]FM_Init [06:59:51]wFMConnect [06:59:51]MH_SAM_On [06:59:51]Write to MH i2c: E0 00 00 08 00 E7 [06:59:51]Write i2c OK [06:59:51]MH_I2C_Read... [06:59:51]*** iso7816_init finished! [06:59:51]*** atr: [06:59:51]*** 0F 3B D5 18 FF 81 91 FE [06:59:51]*** 1F C3 80 73 C8 21 10 0A [06:59:51]*** 00 00 00 00 00 00 00 00 [06:59:51]*** 00 00 00 00 00 00 00 00 [06:59:51]*** 00 00 00 00 00 00 00 00 [06:59:51]*** 00 00 00 00 00 00 00 00 [06:59:51]*** 00 00 00 00 00 00 00 00 [06:59:51]*** 00 00 00 00 00 00 00 00 [06:59:51]Read from MH i2c: E0 [06:59:51]MH_I2C_Read... [06:59:51]Read from MH i2c: E0 10 00 [06:59:51]MH_I2C_Read... [06:59:51]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [06:59:51]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [06:59:51]wFMCommunicate request_size=10 [06:59:51]MH_SAM_APDU [06:59:51]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [06:59:51]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [06:59:51]Write i2c OK [06:59:51]MH_I2C_Read... [06:59:51]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [06:59:51]Read from MH i2c: E2 [06:59:51]MH_I2C_Read... [06:59:51]Read from MH i2c: E2 03 00 [06:59:51]MH_I2C_Read... [06:59:51]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [06:59:51]RAPDU: 90 00 [06:59:51]wFMCommunicate OK [06:59:51]wFMCommunicate request_size=4 [06:59:51]MH_SAM_APDU [06:59:51]CAPDU: 80 11 00 00 [06:59:51]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [06:59:51]Write i2c OK [06:59:51]MH_I2C_Read... [06:59:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:51]Read from MH i2c: E2 [06:59:51]MH_I2C_Read... [06:59:51]Read from MH i2c: E2 17 00 [06:59:51]MH_I2C_Read... [06:59:51]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D8 [06:59:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [06:59:51]wFMCommunicate OK [06:59:51]Detected FM SN is 0000000000874662 [06:59:51]Stored FM SN is 0000000000874662 [06:59:51]wFMCommunicate request_size=9 [06:59:51]MH_SAM_APDU [06:59:51]CAPDU: 80 16 00 00 04 08 EB 00 00 [06:59:51]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 08 EB 00 00 00 00 85 [06:59:51]Write i2c OK [06:59:51]MH_I2C_Read... [06:59:51]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [06:59:51]Read from MH i2c: E2 [06:59:51]MH_I2C_Read... [06:59:51]Read from MH i2c: E2 03 00 [06:59:51]MH_I2C_Read... [06:59:51]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [06:59:51]RAPDU: 90 00 [06:59:51]wFMCommunicate OK [06:59:51]FM PIN OK [06:59:51]wFMCommunicate request_size=8 [06:59:51]MH_SAM_APDU [06:59:51]CAPDU: 80 14 04 00 03 02 00 01 [06:59:51]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [06:59:51]Write i2c OK [06:59:51]MH_I2C_Read... [06:59:51]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [06:59:51]Read from MH i2c: E2 [06:59:51]MH_I2C_Read... [06:59:51]Read from MH i2c: E2 03 00 [06:59:51]MH_I2C_Read... [06:59:51]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [06:59:51]RAPDU: 90 00 [06:59:51]wFMCommunicate OK [06:59:51]wFMCommunicate request_size=13 [06:59:51]MH_SAM_APDU [06:59:51]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [06:59:51]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [06:59:51]Write i2c OK [06:59:51]MH_I2C_Read... [06:59:51]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [06:59:51]Read from MH i2c: E2 [06:59:51]MH_I2C_Read... [06:59:51]Read from MH i2c: E2 03 00 [06:59:51]MH_I2C_Read... [06:59:51]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [06:59:51]RAPDU: 90 00 [06:59:51]wFMCommunicate OK [06:59:51]wFMCommunicate request_size=4 [06:59:51]MH_SAM_APDU [06:59:51]CAPDU: 80 11 00 00 [06:59:51]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [06:59:51]Write i2c OK [06:59:51]MH_I2C_Read... [06:59:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:51]Read from MH i2c: E2 [06:59:51]MH_I2C_Read... [06:59:51]Read from MH i2c: E2 17 00 [06:59:51]MH_I2C_Read... [06:59:51]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DC [06:59:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [06:59:51]wFMCommunicate OK [06:59:51]DocumentArchiveInit [06:59:51]Start Httpd... [06:59:51]Httpd thread 3067911524 created [06:59:51]Write to MH i2c: 01 00 00 0F 00 0F [06:59:51]Write i2c OK [06:59:51]MH_I2C_Read... [06:59:51]Read from MH i2c: 01 [06:59:51]MH_I2C_Read... [06:59:51]Read from MH i2c: 01 07 00 [06:59:51]MH_I2C_Read... [06:59:51]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [06:59:51]MH Int Process started [06:59:51]Allocated Socket 8 [06:59:51]Bind OK [06:59:51]Listen OK [06:59:51]httpd running on port 8080 [06:59:51]Waiting for new connection... [06:59:51]OFD Sender: Processing packet 73159 [packets to send 282, broken 281] [06:59:51]ProducePacketName [06:59:51]name=ofd_packets/00073159 [06:59:51]OFD Sender: To server: pG, [06:59:51]CommunicateWithHost lk.salyk.kg:30040 [06:59:51]ConnectInit lk.salyk.kg [06:59:52]Connected sock=6 [06:59:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 45 00 06 01 EE FB 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 E6 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 1C 00 00 00 F4 03 04 00 38 72 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C7 1D 01 00 35 04 06 00 8F FD 54 EE A8 54 79 87 EE 31 C9 43 D6 A3 [06:59:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 4D 5F 47 00 58 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C7 1D 01 00 F4 03 04 00 1A 27 24 67 B6 04 01 00 00 3C 18 EA EE 3B 2F 34 D6 [06:59:53]CommunicateWithHost err = 0 [06:59:53]CheckOFDResponse [06:59:53]1017 (14) - 77093643461234 [06:59:53]1041 (16) - 0000000000874662 [06:59:53]1040 (4) - 73159 [06:59:53]1012 (4) - 01.11.2024 00:55 [06:59:53]1206 (1) - 0 [06:59:53]OFD Sender: Remove packet 73159 [06:59:53]ProducePacketName [06:59:53]name=ofd_packets/00073159 [06:59:53]NVStorageDeleteData [06:59:53]accept exits with 9 [06:59:53]New connection [06:59:53]New thread 3067624804 created [06:59:53]Waiting for new connection... [06:59:53] Sock 9.Parse request [06:59:53]Sock 9.Check first char [06:59:53]Sock 9.First char is OK [06:59:53]request: POST /json_proto HTTP/1.0 [06:59:53]Method: POST [06:59:53]URL: /json_proto [06:59:53]Method is POST - this is cgi request [06:59:53]url: /json_proto [06:59:53]query_string will be loaded in cgi processing [06:59:53]execute_cgi json_proto POST (null) [06:59:53]execute_cgi path=json_proto method=POST [06:59:53]POST find Content-Length [06:59:53]Host: 172.17.43.195:8080 [06:59:53]Content-Length: 215 [06:59:53]Content-Type: application/json [06:59:53] [06:59:53]POST finish read [06:59:53]Found Content-Length = 215 [06:59:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:59:53]execute_script... [06:59:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:59:53]POST & json_proto [06:59:53]process_json_proto [06:59:53]json parsed OK: [06:59:53]protocol is kg_v1.0 [06:59:53]action value=get_value [06:59:53]process_action get_value [06:59:53]cmd_get_value [06:59:53]process_action get_value done [06:59:53]requested_data is exist [06:59:53]produce_requested_data [06:59:53]requested_item kkm.sn is exist - process it [06:59:53]requested_item kkm.ver is exist - process it [06:59:53]requested_item fm.sn is exist - process it [06:59:53]wFMCommunicate request_size=4 [06:59:53]MH_SAM_APDU [06:59:53]CAPDU: 80 11 00 00 [06:59:53]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [06:59:53]Write i2c OK [06:59:53]MH_I2C_Read... [06:59:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:53]Read from MH i2c: E2 [06:59:53]MH_I2C_Read... [06:59:53]Read from MH i2c: E2 17 00 [06:59:53]MH_I2C_Read... [06:59:53]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DE [06:59:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [06:59:53]wFMCommunicate OK [06:59:53]requested_item fd.num is exist - process it [06:59:53]SAM_PROTO_GetFieldsCounters [06:59:53]wFMCommunicate request_size=4 [06:59:53]MH_SAM_APDU [06:59:53]CAPDU: 80 13 00 00 [06:59:53]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [06:59:53]Write i2c OK [06:59:53]MH_I2C_Read... [06:59:53]OFD Sender: No OFD packet to send [06:59:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:59:53]Read from MH i2c: E2 [06:59:53]MH_I2C_Read... [06:59:53]Read from MH i2c: E2 62 00 [06:59:53]MH_I2C_Read... [06:59:53]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C7 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [06:59:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C7 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:59:53]wFMCommunicate OK [06:59:53]SAM_PROTO_GetFieldsCounters done [06:59:53]requested_item shift.num is exist - process it [06:59:53]requested_item shift.opened is exist - process it [06:59:53]req_shift_opened [06:59:53]FM_GetShiftState [06:59:53]SAM_PROTO_GetShiftState [06:59:53]wFMCommunicate request_size=4 [06:59:53]MH_SAM_APDU [06:59:53]CAPDU: 80 13 01 00 [06:59:53]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [06:59:53]Write i2c OK [06:59:53]MH_I2C_Read... [06:59:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:53]Read from MH i2c: E2 [06:59:53]MH_I2C_Read... [06:59:53]Read from MH i2c: E2 0E 00 [06:59:53]MH_I2C_Read... [06:59:53]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 D6 [06:59:53]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [06:59:53]wFMCommunicate OK [06:59:53]SAM_PROTO_GetShiftState done [06:59:53]FM_GetShiftState done [06:59:53]req_shift_opened done [06:59:53]requested_item shift.open_date is exist - process it [06:59:53]req_shift_open_date [06:59:53]req_shift_open_date done [06:59:53]produce_requested_data done [06:59:53]produce_requested_data return {"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":73159,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [06:59:53]process_action_free get_value [06:59:53]json_value_free [06:59:53]json_value_free done [06:59:53]process_json_proto returns [06:59:53]Send response to host [06:59:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":73159,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [06:59:53]free response buf [06:59:53]execute_script done [06:59:53]execute_script returns [06:59:53]free content buf [06:59:53]Sock 9.Close socket [06:59:53]Sock 9.Thread stoped [06:59:53]accept exits with 6 [06:59:53]New connection [06:59:53]New thread 3067481444 created [06:59:53]Thread 3067624804 joined [06:59:53]Waiting for new connection... [06:59:53] Sock 6.Parse request [06:59:53]Sock 6.Check first char [06:59:53]Sock 6.First char is OK [06:59:53]request: POST /json_proto HTTP/1.0 [06:59:53]Method: POST [06:59:53]URL: /json_proto [06:59:53]Method is POST - this is cgi request [06:59:53]url: /json_proto [06:59:53]query_string will be loaded in cgi processing [06:59:53]execute_cgi json_proto POST (null) [06:59:53]execute_cgi path=json_proto method=POST [06:59:53]POST find Content-Length [06:59:53]Host: 172.17.43.195:8080 [06:59:53]Content-Length: 331 [06:59:53]Content-Type: application/json [06:59:53] [06:59:53]POST finish read [06:59:53]Found Content-Length = 331 [06:59: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" ] } } [06:59:53]execute_script... [06:59: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" ] } } [06:59:53]POST & json_proto [06:59:53]process_json_proto [06:59:53]json parsed OK: [06:59:53]protocol is kg_v1.0 [06:59:53]action value=get_value [06:59:53]process_action get_value [06:59:53]cmd_get_value [06:59:53]process_action get_value done [06:59:53]requested_data is exist [06:59:53]produce_requested_data [06:59:53]requested_item fm.sale.total is exist - process it [06:59:53]SAM_PROTO_GetFMData [06:59:53]wFMCommunicate request_size=4 [06:59:53]MH_SAM_APDU [06:59:53]CAPDU: 80 13 03 00 [06:59:54]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [06:59:54]Write i2c OK [06:59:54]MH_I2C_Read... [06:59:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [06:59:54]Read from MH i2c: E2 [06:59:54]MH_I2C_Read... [06:59:54]Read from MH i2c: E2 FD 00 [06:59:54]MH_I2C_Read... [06:59:54]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 6B 19 01 00 69 04 A3 00 6F 04 04 00 7B 18 01 00 B1 04 05 00 33 E5 22 A5 01 70 04 05 00 F0 B3 6A 59 01 72 04 04 00 43 31 B8 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 60 C3 BB 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 55 3E BA 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 85 [06:59:54]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 6B 19 01 00 69 04 A3 00 6F 04 04 00 7B 18 01 00 B1 04 05 00 33 E5 22 A5 01 70 04 05 00 F0 B3 6A 59 01 72 04 04 00 43 31 B8 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 60 C3 BB 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 55 3E BA 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 [06:59:54]wFMCommunicate OK [06:59:54]wFMCommunicate request_size=4 [06:59:54]MH_SAM_APDU [06:59:54]CAPDU: 80 17 00 00 [06:59:54]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [06:59:54]Write i2c OK [06:59:54]MH_I2C_Read... [06:59:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:59:54]Read from MH i2c: E2 [06:59:54]MH_I2C_Read... [06:59:54]Read from MH i2c: E2 FD 00 [06:59:54]MH_I2C_Read... [06:59:54]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 14 [06:59:54]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [06:59:54]wFMCommunicate OK [06:59:54]wFMCommunicate request_size=4 [06:59:54]MH_SAM_APDU [06:59:54]CAPDU: 80 17 00 00 [06:59:54]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [06:59:54]Write i2c OK [06:59:54]MH_I2C_Read... [06:59:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:59:55]Read from MH i2c: E2 [06:59:55]MH_I2C_Read... [06:59:55]Read from MH i2c: E2 FD 00 [06:59:55]MH_I2C_Read... [06:59:55]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 AA [06:59:55]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [06:59:55]wFMCommunicate OK [06:59:55]wFMCommunicate request_size=4 [06:59:55]MH_SAM_APDU [06:59:55]CAPDU: 80 17 00 00 [06:59:55]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [06:59:55]Write i2c OK [06:59:55]MH_I2C_Read... [06:59:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:59:55]Read from MH i2c: E2 [06:59:55]MH_I2C_Read... [06:59:55]Read from MH i2c: E2 FD 00 [06:59:55]MH_I2C_Read... [06:59:55]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 0E [06:59:55]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [06:59:55]wFMCommunicate OK [06:59:55]wFMCommunicate request_size=4 [06:59:55]MH_SAM_APDU [06:59:55]CAPDU: 80 17 00 00 [06:59:55]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [06:59:55]Write i2c OK [06:59:55]MH_I2C_Read... [06:59:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [06:59:55]Read from MH i2c: E2 [06:59:55]MH_I2C_Read... [06:59:55]Read from MH i2c: E2 E1 00 [06:59:55]MH_I2C_Read... [06:59:55]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [06:59:55]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [06:59:55]wFMCommunicate OK [06:59:55]SAM_PROTO_GetFMData done [06:59:55]requested_item fm.sale_refund.total is exist - process it [06:59:55]requested_item fm.buy.total is exist - process it [06:59:55]requested_item shift.sale.total is exist - process it [06:59:55]SAM_PROTO_GetShiftData [06:59:55]wFMCommunicate request_size=4 [06:59:55]MH_SAM_APDU [06:59:55]CAPDU: 80 13 02 00 [06:59:55]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [06:59:55]Write i2c OK [06:59:55]MH_I2C_Read... [06:59:56]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [06:59:56]Read from MH i2c: E2 [06:59:56]MH_I2C_Read... [06:59:56]Read from MH i2c: E2 FD 00 [06:59:56]MH_I2C_Read... [06:59:56]Read from MH i2c: E2 FD 00 18 00 00 AD 04 AA 04 A9 04 6E 04 04 00 1C 00 00 00 69 04 9A 00 6F 04 04 00 1C 00 00 00 B1 04 03 00 0B 6C 36 70 04 03 00 E8 1D 36 72 04 02 00 23 4E 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CC C7 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4F 7B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 49 [06:59:56]RAPDU: AD 04 AA 04 A9 04 6E 04 04 00 1C 00 00 00 69 04 9A 00 6F 04 04 00 1C 00 00 00 B1 04 03 00 0B 6C 36 70 04 03 00 E8 1D 36 72 04 02 00 23 4E 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CC C7 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4F 7B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [06:59:56]wFMCommunicate OK [06:59:56]wFMCommunicate request_size=4 [06:59:56]MH_SAM_APDU [06:59:56]CAPDU: 80 17 00 00 [06:59:56]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [06:59:56]Write i2c OK [06:59:56]MH_I2C_Read... [06:59:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:59:56]Read from MH i2c: E2 [06:59:56]MH_I2C_Read... [06:59:56]Read from MH i2c: E2 FD 00 [06:59:56]MH_I2C_Read... [06:59:56]Read from MH i2c: E2 FD 00 19 00 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 90 00 AB [06:59:56]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 90 00 [06:59:56]wFMCommunicate OK [06:59:56]wFMCommunicate request_size=4 [06:59:56]MH_SAM_APDU [06:59:56]CAPDU: 80 17 00 00 [06:59:56]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [06:59:56]Write i2c OK [06:59:56]MH_I2C_Read... [06:59:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:59:56]Read from MH i2c: E2 [06:59:56]MH_I2C_Read... [06:59:56]Read from MH i2c: E2 FD 00 [06:59:56]MH_I2C_Read... [06:59:56]Read from MH i2c: E2 FD 00 1A 00 00 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 90 00 5E [06:59:56]RAPDU: 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 90 00 [06:59:56]wFMCommunicate OK [06:59:56]wFMCommunicate request_size=4 [06:59:56]MH_SAM_APDU [06:59:56]CAPDU: 80 17 00 00 [06:59:56]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [06:59:56]Write i2c OK [06:59:56]MH_I2C_Read... [06:59:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:59:57]Read from MH i2c: E2 [06:59:57]MH_I2C_Read... [06:59:57]Read from MH i2c: E2 FD 00 [06:59:57]MH_I2C_Read... [06:59:57]Read from MH i2c: E2 FD 00 1B 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 10 [06:59:57]RAPDU: 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [06:59:57]wFMCommunicate OK [06:59:57]wFMCommunicate request_size=4 [06:59:57]MH_SAM_APDU [06:59:57]CAPDU: 80 17 00 00 [06:59:57]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [06:59:57]Write i2c OK [06:59:57]MH_I2C_Read... [06:59:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 199! [06:59:57]Read from MH i2c: E2 [06:59:57]MH_I2C_Read... [06:59:57]Read from MH i2c: E2 CA 00 [06:59:57]MH_I2C_Read... [06:59:57]Read from MH i2c: E2 CA 00 1C 00 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 81 [06:59:57]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [06:59:57]wFMCommunicate OK [06:59:57]SAM_PROTO_GetShiftData done [06:59:57]requested_item shift.sale.total_cash is exist - process it [06:59:57]requested_item shift.sale_refund.total is exist - process it [06:59:57]requested_item shift.sale_refund.total_cash is exist - process it [06:59:57]requested_item shift.buy.total is exist - process it [06:59:57]requested_item shift.buy.total_cash is exist - process it [06:59:57]produce_requested_data done [06:59:57]produce_requested_data return {"fm.sale.total":70654948.35,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":35666.03,"shift.sale.total_cash":35466.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} [06:59:57]process_action_free get_value [06:59:57]json_value_free [06:59:57]json_value_free done [06:59:57]process_json_proto returns [06:59:57]Send response to host [06:59:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70654948.35,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":35666.03,"shift.sale.total_cash":35466.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}}} [06:59:57]free response buf [06:59:57]execute_script done [06:59:57]execute_script returns [06:59:57]free content buf [06:59:57]Sock 6.Close socket [06:59:57]Sock 6.Thread stoped [06:59:57]accept exits with 9 [06:59:57]New connection [06:59:57]New thread 3067624804 created [06:59:57]Thread 3067481444 joined [06:59:57]Waiting for new connection... [06:59:57] Sock 9.Parse request [06:59:57]Sock 9.Check first char [06:59:57]Sock 9.First char is OK [06:59:57]request: POST /json_proto HTTP/1.0 [06:59:57]Method: POST [06:59:57]URL: /json_proto [06:59:57]Method is POST - this is cgi request [06:59:57]url: /json_proto [06:59:57]query_string will be loaded in cgi processing [06:59:57]execute_cgi json_proto POST (null) [06:59:57]execute_cgi path=json_proto method=POST [06:59:57]POST find Content-Length [06:59:57]Host: 172.17.43.195:8080 [06:59:57]Content-Length: 687 [06:59:57]Content-Type: application/json [06:59:57] [06:59:57]POST finish read [06:59:57]Found Content-Length = 687 [06:59:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:59:57]execute_script... [06:59: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)952759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:59:57]POST & json_proto [06:59:57]process_json_proto [06:59:57]json parsed OK: [06:59:57]protocol is kg_v1.0 [06:59:57]action value=close_receipt [06:59:57]process_action close_receipt [06:59:57]cmd_close_receipt [06:59:57]MH_GetDate [06:59:57]Write to MH i2c: F0 00 00 1D 00 0C [06:59:57]Write i2c OK [06:59:57]MH_I2C_Read... [06:59:57]Read from MH i2c: F0 [06:59:57]MH_I2C_Read... [06:59:57]Read from MH i2c: F0 09 00 [06:59:57]MH_I2C_Read... [06:59:57]Read from MH i2c: F0 09 00 1D 00 00 6D 7C 24 67 74 2C AD 66 3C [06:59:57]GetLastDocTimeStamp 1730441784 [06:59:57]current date 1730444397 [06:59:57]FM_GetShiftState [06:59:57]SAM_PROTO_GetShiftState [06:59:57]wFMCommunicate request_size=4 [06:59:57]MH_SAM_APDU [06:59:57]CAPDU: 80 13 01 00 [06:59:57]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [06:59:57]Write i2c OK [06:59:57]MH_I2C_Read... [06:59:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:57]Read from MH i2c: E2 [06:59:57]MH_I2C_Read... [06:59:57]Read from MH i2c: E2 0E 00 [06:59:57]MH_I2C_Read... [06:59:57]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 E2 [06:59:57]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [06:59:57]wFMCommunicate OK [06:59:57]SAM_PROTO_GetShiftState done [06:59:57]FM_GetShiftState done [06:59:57]opened in 1730419605 [06:59:57]opened+sec_in_day 1730506005 [06:59:57]quantity*price = 400050 [06:59:58]sum+1 = 400051 [06:59:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 29 01.11.2024 06:59 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73160 ФПД: 108843352851777 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T065958&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73160&fm=108843352851777&tin=02508201610067®Number=0000000000091644&sum=400000 [06:59:59]StoreToDocumentArchive [06:59:59]shift 558 fd 73160 [06:59:59]save to /storage/0558/doc_00073160 [06:59:59]save last doc name /storage/0558/doc_00073160 to /storage/kkm_last_doc_name [06:59:59]save OK [06:59:59]Clear old archive folders... [06:59:59]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:59:59]tlvbuf is 00FE2C90 [06:59:59]SAM_PROTO_ClearQueue [06:59:59]wFMCommunicate request_size=4 [06:59:59]MH_SAM_APDU [06:59:59]CAPDU: 80 09 00 00 [06:59:59]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [06:59:59]Write i2c OK [06:59:59]MH_I2C_Read... [06:59:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:59:59]Read from MH i2c: E2 [06:59:59]MH_I2C_Read... [06:59:59]Read from MH i2c: E2 03 00 [06:59:59]MH_I2C_Read... [06:59:59]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [06:59:59]RAPDU: 90 00 [06:59:59]wFMCommunicate OK [06:59:59]SAM_PROTO_ClearQueue done [06:59:59]KKMCreateOFDPacket [06:59:59]OFDProtocolAddRootSTLVToBuf [06:59:59]FM_MakeSignedData [06:59:59]FM_MakeSignedData [06:59:59]SAM_PROTO_SignData [06:59:59]wFMCommunicate request_size=4 [06:59:59]MH_SAM_APDU [06:59:59]CAPDU: 80 0D 01 02 [06:59:59]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [06:59:59]Write i2c OK [06:59:59]MH_I2C_Read... [06:59:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:59:59]Read from MH i2c: E2 [06:59:59]MH_I2C_Read... [06:59:59]Read from MH i2c: E2 03 00 [06:59:59]MH_I2C_Read... [06:59:59]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [06:59:59]RAPDU: 90 00 [06:59:59]wFMCommunicate OK [06:59:59]wFMCommunicate request_size=255 [06:59:59]MH_SAM_APDU [06:59:59]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 6E 7C 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C8 1D 01 00 35 04 06 00 [06:59:59]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 6E 7C 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C8 1D 01 00 35 04 06 00 00 00 DF [06:59:59]Write i2c OK [06:59:59]MH_I2C_Read... [06:59:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:59]Read from MH i2c: E2 [06:59:59]MH_I2C_Read... [06:59:59]Read from MH i2c: E2 03 00 [06:59:59]MH_I2C_Read... [06:59:59]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [06:59:59]RAPDU: 90 00 [06:59:59]wFMCommunicate OK [06:59:59]wFMCommunicate request_size=11 [06:59:59]MH_SAM_APDU [06:59:59]CAPDU: 80 0D 02 02 06 62 FE 11 62 05 41 [06:59:59]Write to MH i2c: E2 0E 00 2E 00 80 0D 02 02 06 00 62 FE 11 62 05 41 00 00 CD [06:59:59]Write i2c OK [06:59:59]MH_I2C_Read... [06:59:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:59]Read from MH i2c: E2 [06:59:59]MH_I2C_Read... [06:59:59]Read from MH i2c: E2 03 00 [06:59:59]MH_I2C_Read... [06:59:59]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [06:59:59]RAPDU: 90 00 [06:59:59]wFMCommunicate OK [06:59:59]wFMCommunicate request_size=4 [06:59:59]MH_SAM_APDU [06:59:59]CAPDU: 80 0D 03 02 [06:59:59]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [06:59:59]Write i2c OK [06:59:59]MH_I2C_Read... [06:59:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:59:59]Read from MH i2c: E2 [06:59:59]MH_I2C_Read... [06:59:59]Read from MH i2c: E2 0B 00 [06:59:59]MH_I2C_Read... [06:59:59]Read from MH i2c: E2 0B 00 2F 00 00 CF 4A AE 5C 30 38 90 26 90 00 EC [06:59:59]RAPDU: CF 4A AE 5C 30 38 90 26 90 00 [06:59:59]wFMCommunicate OK [06:59:59]SAM_PROTO_SignData done [06:59:59]FM_MakeSignedData done [06:59:59]CreateOFDProtocolMessage [06:59:59]wFMCommunicate request_size=4 [06:59:59]MH_SAM_APDU [06:59:59]CAPDU: 80 11 00 00 [06:59:59]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [06:59:59]Write i2c OK [06:59:59]MH_I2C_Read... [06:59:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:59]Read from MH i2c: E2 [06:59:59]MH_I2C_Read... [06:59:59]Read from MH i2c: E2 17 00 [06:59:59]MH_I2C_Read... [06:59:59]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FE [06:59:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [06:59:59]wFMCommunicate OK [06:59:59]CreateOFDProtocolMessage done [06:59:59]OFDSenderStorePacket 73160 [06:59:59]StoreOFDPacket docnum=73160 [06:59:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 B5 72 08 01 AA 0D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 6E 7C 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C8 1D 01 00 35 04 06 00 62 FE 11 62 05 41 CF 4A AE 5C 30 38 90 26 [06:59:59]CheckFolder [06:59:59]dirname=/storage/ofd_packets [06:59:59]CheckFolder done [06:59:59]ProducePacketName [06:59:59]name=ofd_packets/00073160 [06:59:59]NVStorageSaveData ofd_packets/00073160 [06:59:59]File name is /storage/ofd_packets/00073160 [06:59:59]Write 302 bytes [06:59:59]NVStorageSaveData done [06:59:59]OFDSenderStorePacket done [06:59:59]KKMCreateOFDPacket done [06:59:59]NVStorageSaveData kkm_last_timestamp [06:59:59]File name is /storage/kkm_last_timestamp [06:59:59]Write 4 bytes [06:59:59]NVStorageSaveData done [07:00:00]ExternCall_PrintAddStr [07:00:00]wPrintStart [07:00:00]Write to MH i2c: 01 00 00 31 00 31 [07:00:00]Write i2c OK [07:00:00]MH_I2C_Read... [07:00:00]Read from MH i2c: 01 [07:00:00]MH_I2C_Read... [07:00:00]Read from MH i2c: 01 07 00 [07:00:00]MH_I2C_Read... [07:00:00]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [07:00:00]RasterBufferAndPrint [07:00:00]line Счет N : (1)952759 [07:00:00]line ИНН: 02508201610067 [07:00:00]line Контрольно-Кассовый Чек [07:00:00]line ПРОДАЖА [07:00:00]line ТРК (МРК, ГНК) : 33 [07:00:00]line Товар: 2710194210 [07:00:00]line ДТ(л)-К-5 [07:00:00]line 52.500 * 76.20 [07:00:00]line = 4000.50 [07:00:00]line НДС 12% НСП 1% [07:00:00]line > о реализуемом товаре [07:00:00]line ОКРУГЛЕНИЕ: -0.50 [07:00:00]line ИТОГО: 4000.00 [07:00:00]line Внесено: 4000.00 [07:00:00]line СДАЧА: 0.00 [07:00:00]line НСП 1% : 35.40 [07:00:00]line НДС 12% : 424.83 [07:00:00]line Наличными: 4000.00 [07:00:00]line Безнал.: 0.00 [07:00:00]line Место: АЗС № 113 "Партнер Нефть" [07:00:00]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [07:00:00]line СНО: Общий режим [07:00:00]line Чек 29 01.11.2024 06:59 [07:00:00]line Смена: 558 ФФД: 1.0 [07:00:00]line ЗНМ: 0300000087 [07:00:00]line РНМ: 0000000000091644 [07:00:00]line Версия ККМ: 001 [07:00:00]line ФМ: 0000000000874662 [07:00:00]line ФД: 73160 [07:00:00]line ФПД: 108843352851777 [07:00:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T065958&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73160&fm=108843352851777&tin=02508201610067®Number=0000000000091644&sum=400000 [07:00:00]written 0, free lines is 4095 [07:00:00]OFD Sender: Processing packet 73160 [packets to send 282, broken 281] [07:00:00]ProducePacketName [07:00:00]name=ofd_packets/00073160 [07:00:00]OFD Sender: To server: pG, [07:00:00]CommunicateWithHost lk.salyk.kg:30040 [07:00:00]ConnectInit lk.salyk.kg [07:00:00]Write to MH i2c: 01 00 00 5C 00 5C [07:00:00]Write i2c OK [07:00:00]MH_I2C_Read... [07:00:00]Read from MH i2c: 01 [07:00:00]MH_I2C_Read... [07:00:00]Read from MH i2c: 01 07 00 [07:00:00]MH_I2C_Read... [07:00:00]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 F3 0C 62 [07:00:00]RasterBufferAndPrint [07:00:00]line [07:00:00]line [07:00:00]line [07:00:00]line [07:00:00]line [07:00:00]Connected sock=10 [07:00:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 B5 72 08 01 AA 0D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 6E 7C 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C8 1D 01 00 35 04 06 00 62 FE 11 62 05 41 CF 4A AE 5C 30 38 90 26 [07:00:00]written 0, free lines is 3359 [07:00:00]MH_Cut [07:00:00]Write to MH i2c: D1 01 00 63 00 01 35 [07:00:00]Write i2c OK [07:00:00]MH_I2C_Read... [07:00:00]Read from MH i2c: D1 [07:00:00]MH_I2C_Read... [07:00:00]Read from MH i2c: D1 01 00 [07:00:00]MH_I2C_Read... [07:00:00]Read from MH i2c: D1 01 00 63 00 00 34 [07:00:00]Write to MH i2c: 01 00 00 64 00 64 [07:00:00]Write i2c OK [07:00:00]MH_I2C_Read... [07:00:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 9B D9 47 00 31 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C8 1D 01 00 F4 03 04 00 22 27 24 67 B6 04 01 00 00 3E FF 52 98 C6 46 39 69 [07:00:01]CommunicateWithHost err = 0 [07:00:01]CheckOFDResponse [07:00:01]1017 (14) - 77093643461234 [07:00:01]1041 (16) - 0000000000874662 [07:00:01]1040 (4) - 73160 [07:00:01]1012 (4) - 01.11.2024 00:56 [07:00:01]1206 (1) - 0 [07:00:01]OFD Sender: Remove packet 73160 [07:00:01]ProducePacketName [07:00:01]name=ofd_packets/00073160 [07:00:01]NVStorageDeleteData [07:00:01]*** Cut start [07:00:01]*** Partial cut [07:00:01]*** CUTSNS_PIN = 1 [07:00:01]*** CUTSNS_PIN = 0 [07:00:01]*** Brake cut motor [07:00:01]OFD Sender: No OFD packet to send [07:00:01]Read from MH i2c: 01 *** Stop cut motor [07:00:01] [07:00:01]*** Cut end [07:00:01]MH_I2C_Read... [07:00:01]Read from MH i2c: 01 07 00 [07:00:01]MH_I2C_Read... [07:00:01]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [07:00:01]process_action close_receipt done [07:00:01]requested_data is exist [07:00:01]produce_requested_data [07:00:01]requested_item fm.sn is exist - process it [07:00:01]wFMCommunicate request_size=4 [07:00:01]MH_SAM_APDU [07:00:01]CAPDU: 80 11 00 00 [07:00:01]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [07:00:01]Write i2c OK [07:00:01]MH_I2C_Read... [07:00:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:00:01]Read from MH i2c: E2 [07:00:01]MH_I2C_Read... [07:00:01]Read from MH i2c: E2 17 00 [07:00:01]MH_I2C_Read... [07:00:01]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 33 [07:00:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:00:01]wFMCommunicate OK [07:00:01]requested_item fd.num is exist - process it [07:00:01]SAM_PROTO_GetFieldsCounters [07:00:01]wFMCommunicate request_size=4 [07:00:01]MH_SAM_APDU [07:00:01]CAPDU: 80 13 00 00 [07:00:01]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [07:00:01]Write i2c OK [07:00:01]MH_I2C_Read... [07:00:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:00:02]Read from MH i2c: E2 [07:00:02]MH_I2C_Read... [07:00:02]Read from MH i2c: E2 62 00 [07:00:02]MH_I2C_Read... [07:00:02]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C8 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [07:00:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C8 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:00:02]wFMCommunicate OK [07:00:02]SAM_PROTO_GetFieldsCounters done [07:00:02]requested_item shift.num is exist - process it [07:00:02]requested_item shift.opened is exist - process it [07:00:02]req_shift_opened [07:00:02]FM_GetShiftState [07:00:02]SAM_PROTO_GetShiftState [07:00:02]wFMCommunicate request_size=4 [07:00:02]MH_SAM_APDU [07:00:02]CAPDU: 80 13 01 00 [07:00:02]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [07:00:02]Write i2c OK [07:00:02]MH_I2C_Read... [07:00:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:00:02]Read from MH i2c: E2 [07:00:02]MH_I2C_Read... [07:00:02]Read from MH i2c: E2 0E 00 [07:00:02]MH_I2C_Read... [07:00:02]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 2B [07:00:02]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [07:00:02]wFMCommunicate OK [07:00:02]SAM_PROTO_GetShiftState done [07:00:02]FM_GetShiftState done [07:00:02]req_shift_opened done [07:00:02]requested_item shift.open_date is exist - process it [07:00:02]req_shift_open_date [07:00:02]req_shift_open_date done [07:00:02]produce_requested_data done [07:00:02]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73160,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [07:00:02]process_action_free close_receipt [07:00:02]json_value_free [07:00:02]json_value_free done [07:00:02]process_json_proto returns [07:00:02]Send response to host [07:00:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73160,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [07:00:02]free response buf [07:00:02]execute_script done [07:00:02]execute_script returns [07:00:02]free content buf [07:00:02]Sock 9.Close socket [07:00:02]Sock 9.Thread stoped [07:00:06]OFD Sender: No OFD packet to send [07:00:11]OFD Sender: No OFD packet to send [07:00:16]OFD Sender: No OFD packet to send [07:00:21]OFD Sender: No OFD packet to send [07:00:26]OFD Sender: No OFD packet to send [07:00:31]OFD Sender: No OFD packet to send [07:00:36]OFD Sender: No OFD packet to send [07:00:41]OFD Sender: No OFD packet to send [07:00:46]OFD Sender: No OFD packet to send [07:00:51]OFD Sender: No OFD packet to send [07:00:56]OFD Sender: No OFD packet to send [07:00:57]recv_with_timeout no data received [07:01:01]OFD Sender: No OFD packet to send [07:01:06]OFD Sender: No OFD packet to send [07:01:11]OFD Sender: No OFD packet to send [07:01:16]OFD Sender: No OFD packet to send [07:01:17]recv_with_timeout no data received [07:01:21]accept exits with 6 [07:01:21]New connection [07:01:21]New thread 3067481444 created [07:01:21]Thread 3067624804 joined [07:01:21]Waiting for new connection... [07:01:21] Sock 6.Parse request [07:01:21]Sock 6.Check first char [07:01:21]Sock 6.First char is OK [07:01:21]request: POST /json_proto HTTP/1.0 [07:01:21]Method: POST [07:01:21]URL: /json_proto [07:01:21]Method is POST - this is cgi request [07:01:21]url: /json_proto [07:01:21]query_string will be loaded in cgi processing [07:01:21]execute_cgi json_proto POST (null) [07:01:21]execute_cgi path=json_proto method=POST [07:01:21]POST find Content-Length [07:01:21]Host: 172.17.43.195:8080 [07:01:21]Content-Length: 792 [07:01:21]Content-Type: application/json [07:01:21] [07:01:21]POST finish read [07:01:21]Found Content-Length = 792 [07:01:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 32.890, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:01:21]execute_script... [07:01:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 32.890, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:01:21]POST & json_proto [07:01:21]process_json_proto [07:01:21]json parsed OK: [07:01:21]protocol is kg_v1.0 [07:01:21]action value=close_receipt [07:01:21]process_action close_receipt [07:01:21]cmd_close_receipt [07:01:21]MH_GetDate [07:01:21]Write to MH i2c: F0 00 00 68 00 57 [07:01:21]Write i2c OK [07:01:21]MH_I2C_Read... [07:01:21]Read from MH i2c: F0 [07:01:21]MH_I2C_Read... [07:01:21]Read from MH i2c: F0 09 00 [07:01:21]MH_I2C_Read... [07:01:21]Read from MH i2c: F0 09 00 68 00 00 C1 7C 24 67 74 2C AD 66 DB [07:01:21]GetLastDocTimeStamp 1730444398 [07:01:21]current date 1730444481 [07:01:21]FM_GetShiftState [07:01:21]SAM_PROTO_GetShiftState [07:01:21]wFMCommunicate request_size=4 [07:01:21]MH_SAM_APDU [07:01:21]CAPDU: 80 13 01 00 [07:01:21]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [07:01:21]Write i2c OK [07:01:21]MH_I2C_Read... [07:01:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:01:21]Read from MH i2c: E2 [07:01:21]MH_I2C_Read... [07:01:21]Read from MH i2c: E2 0E 00 [07:01:21]MH_I2C_Read... [07:01:21]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 2D [07:01:21]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [07:01:21]wFMCommunicate OK [07:01:21]SAM_PROTO_GetShiftState done [07:01:21]FM_GetShiftState done [07:01:21]opened in 1730419605 [07:01:21]opened+sec_in_day 1730506005 [07:01:21]quantity*price = 0 [07:01:21]sum+1 = 1 [07:01:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 30 01.11.2024 07:01 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 73161 ФПД: 11129151370620 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T070121&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73161&fm=11129151370620&tin=02508201610067®Number=0000000000091644&sum=0 [07:01:22]StoreToDocumentArchive [07:01:22]shift 558 fd 73161 [07:01:22]save to /storage/0558/doc_00073161 [07:01:22]save last doc name /storage/0558/doc_00073161 to /storage/kkm_last_doc_name [07:01:22]save OK [07:01:22]Clear old archive folders... [07:01:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:01:22]tlvbuf is B6FF9460 [07:01:22]SAM_PROTO_ClearQueue [07:01:22]wFMCommunicate request_size=4 [07:01:22]MH_SAM_APDU [07:01:22]CAPDU: 80 09 00 00 [07:01:22]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [07:01:22]Write i2c OK [07:01:22]MH_I2C_Read... [07:01:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:01:22]Read from MH i2c: E2 [07:01:22]MH_I2C_Read... [07:01:22]Read from MH i2c: E2 03 00 [07:01:22]MH_I2C_Read... [07:01:22]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [07:01:22]RAPDU: 90 00 [07:01:22]wFMCommunicate OK [07:01:22]SAM_PROTO_ClearQueue done [07:01:22]KKMCreateOFDPacket [07:01:22]OFDProtocolAddRootSTLVToBuf [07:01:22]FM_MakeSignedData [07:01:22]FM_MakeSignedData [07:01:22]SAM_PROTO_SignData [07:01:22]wFMCommunicate request_size=4 [07:01:22]MH_SAM_APDU [07:01:22]CAPDU: 80 0D 01 02 [07:01:22]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [07:01:22]Write i2c OK [07:01:22]MH_I2C_Read... [07:01:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:01:22]Read from MH i2c: E2 [07:01:22]MH_I2C_Read... [07:01:22]Read from MH i2c: E2 03 00 [07:01:22]MH_I2C_Read... [07:01:22]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [07:01:22]RAPDU: 90 00 [07:01:22]wFMCommunicate OK [07:01:22]wFMCommunicate request_size=255 [07:01:22]MH_SAM_APDU [07:01:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 80 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 C1 7C 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C9 1D 01 00 35 04 06 00 0A [07:01:22]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 80 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 C1 7C 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C9 1D 01 00 35 04 06 00 0A 00 00 FB [07:01:22]Write i2c OK [07:01:22]MH_I2C_Read... [07:01:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:01:23]Read from MH i2c: E2 [07:01:23]MH_I2C_Read... [07:01:23]Read from MH i2c: E2 03 00 [07:01:23]MH_I2C_Read... [07:01:23]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [07:01:23]RAPDU: 90 00 [07:01:23]wFMCommunicate OK [07:01:23]wFMCommunicate request_size=10 [07:01:23]MH_SAM_APDU [07:01:23]CAPDU: 80 0D 02 02 05 1F 35 1D 35 7C [07:01:23]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 1F 35 1D 35 7C 00 00 1F [07:01:23]Write i2c OK [07:01:23]MH_I2C_Read... [07:01:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:01:23]Read from MH i2c: E2 [07:01:23]MH_I2C_Read... [07:01:23]Read from MH i2c: E2 03 00 [07:01:23]MH_I2C_Read... [07:01:23]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [07:01:23]RAPDU: 90 00 [07:01:23]wFMCommunicate OK [07:01:23]wFMCommunicate request_size=4 [07:01:23]MH_SAM_APDU [07:01:23]CAPDU: 80 0D 03 02 [07:01:23]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [07:01:23]Write i2c OK [07:01:23]MH_I2C_Read... [07:01:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:01:23]Read from MH i2c: E2 [07:01:23]MH_I2C_Read... [07:01:23]Read from MH i2c: E2 0B 00 [07:01:23]MH_I2C_Read... [07:01:23]Read from MH i2c: E2 0B 00 7A 00 00 0E D4 20 06 68 EA CE C8 90 00 E6 [07:01:23]RAPDU: 0E D4 20 06 68 EA CE C8 90 00 [07:01:23]wFMCommunicate OK [07:01:23]SAM_PROTO_SignData done [07:01:23]FM_MakeSignedData done [07:01:23]CreateOFDProtocolMessage [07:01:23]wFMCommunicate request_size=4 [07:01:23]MH_SAM_APDU [07:01:23]CAPDU: 80 11 00 00 [07:01:23]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [07:01:23]Write i2c OK [07:01:23]MH_I2C_Read... [07:01:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:01:23]Read from MH i2c: E2 [07:01:23]MH_I2C_Read... [07:01:23]Read from MH i2c: E2 17 00 [07:01:23]MH_I2C_Read... [07:01:23]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 49 [07:01:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:01:23]wFMCommunicate OK [07:01:23]CreateOFDProtocolMessage done [07:01:23]OFDSenderStorePacket 73161 [07:01:23]StoreOFDPacket docnum=73161 [07:01:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 63 7D 07 01 2E F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 80 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 C1 7C 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C9 1D 01 00 35 04 06 00 0A 1F 35 1D 35 7C 0E D4 20 06 68 EA CE C8 [07:01:23]CheckFolder [07:01:23]dirname=/storage/ofd_packets [07:01:23]CheckFolder done [07:01:23]ProducePacketName [07:01:23]name=ofd_packets/00073161 [07:01:23]NVStorageSaveData ofd_packets/00073161 [07:01:23]File name is /storage/ofd_packets/00073161 [07:01:23]Write 301 bytes [07:01:23]NVStorageSaveData done [07:01:23]OFDSenderStorePacket done [07:01:23]KKMCreateOFDPacket done [07:01:23]NVStorageSaveData kkm_last_timestamp [07:01:23]File name is /storage/kkm_last_timestamp [07:01:23]Write 4 bytes [07:01:23]NVStorageSaveData done [07:01:23]ExternCall_PrintAddStr [07:01:23]wPrintStart [07:01:23]Write to MH i2c: 01 00 00 7C 00 7C [07:01:23]Write i2c OK [07:01:23]MH_I2C_Read... [07:01:23]Read from MH i2c: 01 [07:01:23]MH_I2C_Read... [07:01:23]Read from MH i2c: 01 07 00 [07:01:23]MH_I2C_Read... [07:01:23]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [07:01:23]RasterBufferAndPrint [07:01:23]line Счет N : (1)952760 [07:01:23]line ИНН: 02508201610067 [07:01:23]line Контрольно-Кассовый Чек [07:01:23]line ПРОДАЖА [07:01:23]line ТРК (МРК, ГНК) : 42 [07:01:23]line Товар: 2710124130 [07:01:23]line Аи-92-К-5 [07:01:23]line 32.890 * 0.00 [07:01:23]line = 0.00 [07:01:23]line НДС 12% НСП 1% [07:01:23]line > о реализуемом товаре [07:01:23]line ИТОГО: 0.00 [07:01:23]line НСП 1% : 0.00 [07:01:23]line НДС 12% : 0.00 [07:01:23]line Наличными: 0.00 [07:01:23]line Безнал.: 0.00 [07:01:23]line Место: АЗС № 113 "Партнер Нефть" [07:01:23]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [07:01:23]line СНО: Общий режим [07:01:23]line Чек 30 01.11.2024 07:01 [07:01:23]line Смена: 558 ФФД: 1.0 [07:01:23]line ЗНМ: 0300000087 [07:01:23]line РНМ: 0000000000091644 [07:01:23]line Версия ККМ: 001 [07:01:23]line Талоны: Топливная Карта [07:01:23]line 03047 [07:01:23]line ФМ: 0000000000874662 [07:01:23]line ФД: 73161 [07:01:23]line ФПД: 11129151370620 [07:01:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T070121&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73161&fm=11129151370620&tin=02508201610067®Number=0000000000091644&sum=0 [07:01:23]written 0, free lines is 4095 [07:01:23]OFD Sender: Processing packet 73161 [packets to send 282, broken 281] [07:01:23]ProducePacketName [07:01:23]name=ofd_packets/00073161 [07:01:23]OFD Sender: To server: pG, [07:01:23]CommunicateWithHost lk.salyk.kg:30040 [07:01:23]ConnectInit lk.salyk.kg [07:01:23]Write to MH i2c: 01 00 00 A6 00 A6 [07:01:23]Write i2c OK [07:01:23]MH_I2C_Read... [07:01:23]Read from MH i2c: 01 [07:01:23]MH_I2C_Read... [07:01:23]Read from MH i2c: 01 07 00 [07:01:23]MH_I2C_Read... [07:01:23]Read from MH i2c: 01 07 00 A6 00 00 00 00 00 00 E2 0C 9B [07:01:23]RasterBufferAndPrint [07:01:23]line [07:01:23]line [07:01:23]line [07:01:23]line [07:01:23]line [07:01:23]written 0, free lines is 3304 [07:01:23]MH_Cut [07:01:23]Write to MH i2c: D1 01 00 AD 00 01 7F [07:01:23]Write i2c OK [07:01:23]MH_I2C_Read... [07:01:23]Read from MH i2c: D1 [07:01:23]MH_I2C_Read... [07:01:23]Read from MH i2c: D1 01 00 [07:01:23]MH_I2C_Read... [07:01:23]Read from MH i2c: D1 01 00 AD 00 00 7E [07:01:23]Write to MH i2c: 01 00 00 AE 00 AE [07:01:23]Write i2c OK [07:01:23]MH_I2C_Read... [07:01:24]*** Cut start [07:01:24]*** Partial cut [07:01:24]*** CUTSNS_PIN = 1 [07:01:24]*** CUTSNS_PIN = 0 [07:01:24]*** Brake cut motor [07:01:25]Read from MH i2c: 01 [07:01:25]MH_I2C_Read... [07:01:25]*** Stop cut motor [07:01:25]*** Cut end [07:01:25]Read from MH i2c: 01 07 00 [07:01:25]MH_I2C_Read... [07:01:25]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [07:01:25]process_action close_receipt done [07:01:25]requested_data is exist [07:01:25]produce_requested_data [07:01:25]requested_item fm.sn is exist - process it [07:01:25]wFMCommunicate request_size=4 [07:01:25]MH_SAM_APDU [07:01:25]CAPDU: 80 11 00 00 [07:01:25]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [07:01:25]Write i2c OK [07:01:25]MH_I2C_Read... [07:01:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:01:25]Read from MH i2c: E2 [07:01:25]MH_I2C_Read... [07:01:25]Read from MH i2c: E2 17 00 [07:01:25]MH_I2C_Read... [07:01:25]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7D [07:01:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:01:25]wFMCommunicate OK [07:01:25]requested_item fd.num is exist - process it [07:01:25]SAM_PROTO_GetFieldsCounters [07:01:25]wFMCommunicate request_size=4 [07:01:25]MH_SAM_APDU [07:01:25]CAPDU: 80 13 00 00 [07:01:25]Write to MH i2c: E2 08 00 B0 00 80 13 00 00 00 00 00 00 2C [07:01:25]Write i2c OK [07:01:25]MH_I2C_Read... [07:01:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:01:25]Read from MH i2c: E2 [07:01:25]MH_I2C_Read... [07:01:25]Read from MH i2c: E2 62 00 [07:01:25]MH_I2C_Read... [07:01:25]Read from MH i2c: E2 62 00 B0 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C9 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [07:01:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C9 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:01:25]wFMCommunicate OK [07:01:25]SAM_PROTO_GetFieldsCounters done [07:01:25]requested_item shift.num is exist - process it [07:01:25]requested_item shift.opened is exist - process it [07:01:25]req_shift_opened [07:01:25]FM_GetShiftState [07:01:25]SAM_PROTO_GetShiftState [07:01:25]wFMCommunicate request_size=4 [07:01:25]MH_SAM_APDU [07:01:25]CAPDU: 80 13 01 00 [07:01:25]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [07:01:25]Write i2c OK [07:01:25]MH_I2C_Read... [07:01:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:01:25]Read from MH i2c: E2 [07:01:25]MH_I2C_Read... [07:01:25]Read from MH i2c: E2 0E 00 [07:01:25]MH_I2C_Read... [07:01:25]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 75 [07:01:25]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [07:01:25]wFMCommunicate OK [07:01:25]SAM_PROTO_GetShiftState done [07:01:25]FM_GetShiftState done [07:01:25]req_shift_opened done [07:01:25]requested_item shift.open_date is exist - process it [07:01:25]req_shift_open_date [07:01:25]req_shift_open_date done [07:01:25]produce_requested_data done [07:01:25]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73161,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [07:01:25]process_action_free close_receipt [07:01:25]json_value_free [07:01:25]json_value_free done [07:01:25]process_json_proto returns [07:01:25]Send response to host [07:01:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73161,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [07:01:25]free response buf [07:01:25]execute_script done [07:01:25]execute_script returns [07:01:25]free content buf [07:01:25]Sock 6.Close socket [07:01:25]Sock 6.Thread stoped [07:01:28]recv_with_timeout no data received [07:01:28]Connected sock=11 [07:01:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 63 7D 07 01 2E F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 80 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 C1 7C 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C9 1D 01 00 35 04 06 00 0A 1F 35 1D 35 7C 0E D4 20 06 68 EA CE C8 [07:01:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 42 F0 47 00 8F 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 34 36 36 32 10 04 04 00 C9 1D 01 00 F4 03 04 00 7A 27 24 67 B6 04 01 00 00 B7 E1 A5 97 82 3D 37 FB [07:01:30]CommunicateWithHost err = 0 [07:01:30]CheckOFDResponse [07:01:30]1017 (14) - 77093643461234 [07:01:30]1041 (16) - 0000000000874662 [07:01:30]1040 (4) - 73161 [07:01:30]1012 (4) - 01.11.2024 00:57 [07:01:30]1206 (1) - 0 [07:01:30]OFD Sender: Remove packet 73161 [07:01:30]ProducePacketName [07:01:30]name=ofd_packets/00073161 [07:01:30]NVStorageDeleteData [07:01:31]OFD Sender: No OFD packet to send [07:01:36]OFD Sender: No OFD packet to send [07:01:41]OFD Sender: No OFD packet to send [07:01:46]OFD Sender: No OFD packet to send [07:01:51]OFD Sender: No OFD packet to send [07:01:56]OFD Sender: No OFD packet to send [07:02:01]OFD Sender: No OFD packet to send [07:02:06]recv_with_timeout no data received [07:02:06]OFD Sender: No OFD packet to send [07:02:11]OFD Sender: No OFD packet to send [07:02:16]OFD Sender: No OFD packet to send [07:02:21]OFD Sender: No OFD packet to send [07:02:26]OFD Sender: No OFD packet to send [07:02:31]OFD Sender: No OFD packet to send [07:02:36]OFD Sender: No OFD packet to send [07:02:41]OFD Sender: No OFD packet to send [07:02:46]OFD Sender: No OFD packet to send [07:02:51]OFD Sender: No OFD packet to send [07:02:56]OFD Sender: No OFD packet to send [07:03:01]OFD Sender: No OFD packet to send [07:03:06]OFD Sender: No OFD packet to send [07:03:11]OFD Sender: No OFD packet to send [07:03:16]OFD Sender: No OFD packet to send [07:03:21]OFD Sender: No OFD packet to send [07:03:26]OFD Sender: No OFD packet to send [07:03:31]OFD Sender: No OFD packet to send [07:03:36]OFD Sender: No OFD packet to send [07:03:41]OFD Sender: No OFD packet to send [07:03:45]recv_with_timeout no data received [07:03:46]OFD Sender: No OFD packet to send [07:03:51]OFD Sender: No OFD packet to send [07:03:56]OFD Sender: No OFD packet to send [07:04:01]OFD Sender: No OFD packet to send [07:04:06]OFD Sender: No OFD packet to send [07:04:11]OFD Sender: No OFD packet to send [07:04:16]OFD Sender: No OFD packet to send [07:04:21]OFD Sender: No OFD packet to send [07:04:26]OFD Sender: No OFD packet to send [07:04:31]recv_with_timeout no data received [07:04:31]OFD Sender: No OFD packet to send [07:04:36]OFD Sender: No OFD packet to send [07:04:41]OFD Sender: No OFD packet to send [07:04:46]OFD Sender: No OFD packet to send [07:04:51]OFD Sender: No OFD packet to send [07:04:56]OFD Sender: No OFD packet to send [07:05:01]OFD Sender: No OFD packet to send [07:05:06]OFD Sender: No OFD packet to send [07:05:11]OFD Sender: No OFD packet to send [07:05:16]OFD Sender: No OFD packet to send [07:05:21]OFD Sender: No OFD packet to send [07:05:26]OFD Sender: No OFD packet to send [07:05:31]OFD Sender: No OFD packet to send [07:05:36]OFD Sender: No OFD packet to send [07:05:41]OFD Sender: No OFD packet to send [07:05:46]OFD Sender: No OFD packet to send [07:05:51]OFD Sender: No OFD packet to send [07:05:56]OFD Sender: No OFD packet to send [07:06:01]OFD Sender: No OFD packet to send [07:06:06]OFD Sender: No OFD packet to send [07:06:07]recv_with_timeout no data received [07:06:11]OFD Sender: No OFD packet to send [07:06:16]OFD Sender: No OFD packet to send [07:06:21]OFD Sender: No OFD packet to send [07:06:26]OFD Sender: No OFD packet to send [07:06:31]OFD Sender: No OFD packet to send [07:06:36]OFD Sender: No OFD packet to send [07:06:42]OFD Sender: No OFD packet to send [07:06:47]OFD Sender: No OFD packet to send [07:06:49]recv_with_timeout no data received [07:06:52]OFD Sender: No OFD packet to send [07:06:57]OFD Sender: No OFD packet to send [07:07:02]OFD Sender: No OFD packet to send [07:07:07]OFD Sender: No OFD packet to send [07:07:12]OFD Sender: No OFD packet to send [07:07:17]OFD Sender: No OFD packet to send [07:07:22]OFD Sender: No OFD packet to send [07:07:27]OFD Sender: No OFD packet to send [07:07:32]OFD Sender: No OFD packet to send [07:07:37]OFD Sender: No OFD packet to send [07:07:42]OFD Sender: No OFD packet to send [07:07:44]recv_with_timeout no data received [07:07:47]OFD Sender: No OFD packet to send [07:07:52]OFD Sender: No OFD packet to send [07:07:57]OFD Sender: No OFD packet to send [07:08:01]recv_with_timeout no data received [07:08:02]OFD Sender: No OFD packet to send [07:08:07]OFD Sender: No OFD packet to send [07:08:12]OFD Sender: No OFD packet to send [07:08:17]OFD Sender: No OFD packet to send [07:08:21]recv_with_timeout no data received [07:08:22]OFD Sender: No OFD packet to send [07:08:27]OFD Sender: No OFD packet to send [07:08:32]OFD Sender: No OFD packet to send [07:08:37]OFD Sender: No OFD packet to send [07:08:42]OFD Sender: No OFD packet to send [07:08:47]OFD Sender: No OFD packet to send [07:08:52]OFD Sender: No OFD packet to send [07:08:57]OFD Sender: No OFD packet to send [07:09:02]OFD Sender: No OFD packet to send [07:09:07]OFD Sender: No OFD packet to send [07:09:12]accept exits with 9 [07:09:12]New connection [07:09:12]New thread 3067624804 created [07:09:12]Thread 3067481444 joined [07:09:12]Waiting for new connection... [07:09:12] Sock 9.Parse request [07:09:12]Sock 9.Check first char [07:09:12]Sock 9.First char is OK [07:09:12]request: POST /json_proto HTTP/1.0 [07:09:12]Method: POST [07:09:12]URL: /json_proto [07:09:12]Method is POST - this is cgi request [07:09:12]url: /json_proto [07:09:12]query_string will be loaded in cgi processing [07:09:12]execute_cgi json_proto POST (null) [07:09:12]execute_cgi path=json_proto method=POST [07:09:12]POST find Content-Length [07:09:12]Host: 172.17.43.195:8080 [07:09:12]Content-Length: 659 [07:09:12]Content-Type: application/json [07:09:12] [07:09:12]POST finish read [07:09:12]Found Content-Length = 659 [07:09:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:09:12]execute_script... [07:09: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)952761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:09:12]POST & json_proto [07:09:12]process_json_proto [07:09:12]json parsed OK: [07:09:12]protocol is kg_v1.0 [07:09:12]action value=close_receipt [07:09:12]process_action close_receipt [07:09:12]cmd_close_receipt [07:09:12]MH_GetDate [07:09:12]Write to MH i2c: F0 00 00 B2 00 A1 [07:09:12]Write i2c OK [07:09:12]MH_I2C_Read... [07:09:12]Read from MH i2c: F0 [07:09:12]MH_I2C_Read... [07:09:12]Read from MH i2c: F0 09 00 [07:09:12]MH_I2C_Read... [07:09:12]Read from MH i2c: F0 09 00 B2 00 00 98 7E 24 67 74 2C AD 66 FE [07:09:12]GetLastDocTimeStamp 1730444481 [07:09:12]current date 1730444952 [07:09:12]FM_GetShiftState [07:09:12]SAM_PROTO_GetShiftState [07:09:12]wFMCommunicate request_size=4 [07:09:12]MH_SAM_APDU [07:09:12]CAPDU: 80 13 01 00 [07:09:12]Write to MH i2c: E2 08 00 B3 00 80 13 01 00 00 00 00 00 30 [07:09:12]Write i2c OK [07:09:12]MH_I2C_Read... [07:09:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:09:12]Read from MH i2c: E2 [07:09:12]MH_I2C_Read... [07:09:12]Read from MH i2c: E2 0E 00 [07:09:12]MH_I2C_Read... [07:09:12]Read from MH i2c: E2 0E 00 B3 00 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 77 [07:09:12]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [07:09:12]wFMCommunicate OK [07:09:12]SAM_PROTO_GetShiftState done [07:09:12]FM_GetShiftState done [07:09:12]opened in 1730419605 [07:09:12]opened+sec_in_day 1730506005 [07:09:12]quantity*price = 70041 [07:09:12]sum+1 = 70043 [07:09:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 31 01.11.2024 07:09 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73162 ФПД: 128015522919891 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T070912&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73162&fm=128015522919891&tin=02508201610067®Number=0000000000091644&sum=70000 [07:09:13]StoreToDocumentArchive [07:09:13]shift 558 fd 73162 [07:09:13]save to /storage/0558/doc_00073162 [07:09:13]save last doc name /storage/0558/doc_00073162 to /storage/kkm_last_doc_name [07:09:13]save OK [07:09:13]Clear old archive folders... [07:09:13]ProcessDocumentItem done err = 0, tmpTLVsize=244 [07:09:13]tlvbuf is B6E4C560 [07:09:13]SAM_PROTO_ClearQueue [07:09:13]wFMCommunicate request_size=4 [07:09:13]MH_SAM_APDU [07:09:13]CAPDU: 80 09 00 00 [07:09:13]Write to MH i2c: E2 08 00 C0 00 80 09 00 00 00 00 00 00 32 [07:09:13]Write i2c OK [07:09:13]MH_I2C_Read... [07:09:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:09:13]Read from MH i2c: E2 [07:09:13]MH_I2C_Read... [07:09:13]Read from MH i2c: E2 03 00 [07:09:13]MH_I2C_Read... [07:09:13]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [07:09:13]RAPDU: 90 00 [07:09:13]wFMCommunicate OK [07:09:13]SAM_PROTO_ClearQueue done [07:09:13]KKMCreateOFDPacket [07:09:13]OFDProtocolAddRootSTLVToBuf [07:09:13]FM_MakeSignedData [07:09:13]FM_MakeSignedData [07:09:13]SAM_PROTO_SignData [07:09:13]wFMCommunicate request_size=4 [07:09:13]MH_SAM_APDU [07:09:13]CAPDU: 80 0D 01 02 [07:09:13]Write to MH i2c: E2 08 00 C1 00 80 0D 01 02 00 00 00 00 3A [07:09:13]Write i2c OK [07:09:13]MH_I2C_Read... [07:09:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:09:13]Read from MH i2c: E2 [07:09:13]MH_I2C_Read... [07:09:13]Read from MH i2c: E2 03 00 [07:09:13]MH_I2C_Read... [07:09:13]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [07:09:13]RAPDU: 90 00 [07:09:13]wFMCommunicate OK [07:09:13]wFMCommunicate request_size=253 [07:09:13]MH_SAM_APDU [07:09:13]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 98 7E 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CA 1D 01 00 35 04 06 00 74 6D EF C4 F5 D3 [07:09:13]Write to MH i2c: E2 00 01 C2 00 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 98 7E 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CA 1D 01 00 35 04 06 00 74 6D EF C4 F5 D3 00 00 24 [07:09:13]Write i2c OK [07:09:13]MH_I2C_Read... [07:09:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:09:13]Read from MH i2c: E2 [07:09:13]MH_I2C_Read... [07:09:13]Read from MH i2c: E2 03 00 [07:09:13]MH_I2C_Read... [07:09:13]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [07:09:13]RAPDU: 90 00 [07:09:13]wFMCommunicate OK [07:09:13]wFMCommunicate request_size=4 [07:09:13]MH_SAM_APDU [07:09:13]CAPDU: 80 0D 03 02 [07:09:13]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [07:09:13]Write i2c OK [07:09:13]MH_I2C_Read... [07:09:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:09:13]Read from MH i2c: E2 [07:09:13]MH_I2C_Read... [07:09:13]Read from MH i2c: E2 0B 00 [07:09:13]MH_I2C_Read... [07:09:13]Read from MH i2c: E2 0B 00 C3 00 00 F6 CE BC 38 E6 83 00 29 90 00 89 [07:09:13]RAPDU: F6 CE BC 38 E6 83 00 29 90 00 [07:09:13]wFMCommunicate OK [07:09:13]SAM_PROTO_SignData done [07:09:13]FM_MakeSignedData done [07:09:13]CreateOFDProtocolMessage [07:09:13]wFMCommunicate request_size=4 [07:09:13]MH_SAM_APDU [07:09:13]CAPDU: 80 11 00 00 [07:09:13]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [07:09:13]Write i2c OK [07:09:13]MH_I2C_Read... [07:09:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:09:13]Read from MH i2c: E2 [07:09:13]MH_I2C_Read... [07:09:13]Read from MH i2c: E2 17 00 [07:09:13]MH_I2C_Read... [07:09:13]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 92 [07:09:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:09:13]wFMCommunicate OK [07:09:13]CreateOFDProtocolMessage done [07:09:13]OFDSenderStorePacket 73162 [07:09:13]StoreOFDPacket docnum=73162 [07:09:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 CA 3B 00 01 CD E1 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 98 7E 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CA 1D 01 00 35 04 06 00 74 6D EF C4 F5 D3 F6 CE BC 38 E6 83 00 29 [07:09:13]CheckFolder [07:09:13]dirname=/storage/ofd_packets [07:09:13]CheckFolder done [07:09:13]ProducePacketName [07:09:13]name=ofd_packets/00073162 [07:09:13]NVStorageSaveData ofd_packets/00073162 [07:09:13]File name is /storage/ofd_packets/00073162 [07:09:13]Write 294 bytes [07:09:13]NVStorageSaveData done [07:09:13]OFDSenderStorePacket done [07:09:13]KKMCreateOFDPacket done [07:09:13]NVStorageSaveData kkm_last_timestamp [07:09:13]File name is /storage/kkm_last_timestamp [07:09:13]Write 4 bytes [07:09:13]NVStorageSaveData done [07:09:13]ExternCall_PrintAddStr [07:09:13]wPrintStart [07:09:13]Write to MH i2c: 01 00 00 C5 00 C5 [07:09:13]Write i2c OK [07:09:13]MH_I2C_Read... [07:09:13]Read from MH i2c: 01 [07:09:13]MH_I2C_Read... [07:09:13]Read from MH i2c: 01 07 00 [07:09:13]MH_I2C_Read... [07:09:13]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [07:09:13]RasterBufferAndPrint [07:09:13]line Счет N : (1)952761 [07:09:13]line ИНН: 02508201610067 [07:09:13]line Контрольно-Кассовый Чек [07:09:13]line ПРОДАЖА [07:09:13]line ТРК (МРК, ГНК) : 51 [07:09:13]line Товар: 50.50.0 [07:09:13]line Super 92 [07:09:13]line 10.240 * 68.40 [07:09:13]line = 700.42 [07:09:13]line НДС 12% НСП 1% [07:09:13]line > о реализуемом товаре [07:09:13]line ОКРУГЛЕНИЕ: -0.42 [07:09:13]line ИТОГО: 700.00 [07:09:13]line Внесено: 700.00 [07:09:13]line СДАЧА: 0.00 [07:09:13]line НСП 1% : 6.20 [07:09:13]line НДС 12% : 74.38 [07:09:13]line Наличными: 700.00 [07:09:13]line Безнал.: 0.00 [07:09:13]line Место: АЗС № 113 "Партнер Нефть" [07:09:13]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [07:09:13]line СНО: Общий режим [07:09:13]line Чек 31 01.11.2024 07:09 [07:09:13]line Смена: 558 ФФД: 1.0 [07:09:13]line ЗНМ: 0300000087 [07:09:13]line РНМ: 0000000000091644 [07:09:13]line Версия ККМ: 001 [07:09:13]line ФМ: 0000000000874662 [07:09:13]line ФД: 73162 [07:09:13]line ФПД: 128015522919891 [07:09:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T070912&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73162&fm=128015522919891&tin=02508201610067®Number=0000000000091644&sum=70000 [07:09:14]OFD Sender: Processing packet 73162 [packets to send 282, broken 281] [07:09:14]ProducePacketName [07:09:14]name=ofd_packets/00073162 [07:09:14]OFD Sender: To server: pG, [07:09:14]CommunicateWithHost lk.salyk.kg:30040 [07:09:14]ConnectInit lk.salyk.kg [07:09:14]written 0, free lines is 4095 [07:09:14]Write to MH i2c: 01 00 00 F0 00 F0 [07:09:14]Write i2c OK [07:09:14]MH_I2C_Read... [07:09:14]Read from MH i2c: 01 [07:09:14]MH_I2C_Read... [07:09:14]Read from MH i2c: 01 07 00 [07:09:14]MH_I2C_Read... [07:09:14]Read from MH i2c: 01 07 00 F0 00 00 00 00 00 00 D4 0C D7 [07:09:14]RasterBufferAndPrint [07:09:14]line [07:09:14]line [07:09:14]line [07:09:14]line [07:09:14]line [07:09:14]written 0, free lines is 3292 [07:09:14]MH_Cut [07:09:14]Write to MH i2c: D1 01 00 F7 00 01 C9 [07:09:14]Write i2c OK [07:09:14]MH_I2C_Read... [07:09:14]Read from MH i2c: D1 [07:09:14]MH_I2C_Read... [07:09:14]Read from MH i2c: D1 01 00 [07:09:14]MH_I2C_Read... [07:09:14]Read from MH i2c: D1 01 00 F7 00 00 C8 [07:09:14]Write to MH i2c: 01 00 00 F8 00 F8 [07:09:14]Write i2c OK [07:09:14]MH_I2C_Read... [07:09:14]Connected sock=10 [07:09:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 CA 3B 00 01 CD E1 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 98 7E 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CA 1D 01 00 35 04 06 00 74 6D EF C4 F5 D3 F6 CE BC 38 E6 83 00 29 [07:09:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 25 A2 47 00 6F 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 34 36 36 32 10 04 04 00 CA 1D 01 00 F4 03 04 00 4C 29 24 67 B6 04 01 00 00 11 B2 B4 31 B2 B2 89 29 [07:09:15]CommunicateWithHost err = 0 [07:09:15]CheckOFDResponse [07:09:15]1017 (14) - 77093643461234 [07:09:15]1041 (16) - 0000000000874662 [07:09:15]1040 (4) - 73162 [07:09:15]1012 (4) - 01.11.2024 01:05 [07:09:15]1206 (1) - 0 [07:09:15]OFD Sender: Remove packet 73162 [07:09:15]ProducePacketName [07:09:15]name=ofd_packets/00073162 [07:09:15]NVStorageDeleteData [07:09:15]*** Cut start [07:09:15]*** Partial cut [07:09:15]*** CUTSNS_PIN = 1 [07:09:15]*** CUTSNS_PIN = 0 [07:09:15]*** Brake cut motor [07:09:15]OFD Sender: No OFD packet to send [07:09:15]Read from MH i2c: 01 [07:09:15]MH_I2C_Read... [07:09:15]*** Stop cut motor [07:09:15]*** Cut end [07:09:15]Read from MH i2c: 01 07 00 [07:09:15]MH_I2C_Read... [07:09:15]Read from MH i2c: 01 07 00 F8 00 00 00 00 00 00 FF 0F 0D [07:09:15]process_action close_receipt done [07:09:15]requested_data is exist [07:09:15]produce_requested_data [07:09:15]requested_item fm.sn is exist - process it [07:09:15]wFMCommunicate request_size=4 [07:09:15]MH_SAM_APDU [07:09:15]CAPDU: 80 11 00 00 [07:09:15]Write to MH i2c: E2 08 00 F9 00 80 11 00 00 00 00 00 00 73 [07:09:15]Write i2c OK [07:09:15]MH_I2C_Read... [07:09:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:09:15]Read from MH i2c: E2 [07:09:15]MH_I2C_Read... [07:09:15]Read from MH i2c: E2 17 00 [07:09:15]MH_I2C_Read... [07:09:15]Read from MH i2c: E2 17 00 F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C7 [07:09:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:09:15]wFMCommunicate OK [07:09:15]requested_item fd.num is exist - process it [07:09:15]SAM_PROTO_GetFieldsCounters [07:09:15]wFMCommunicate request_size=4 [07:09:15]MH_SAM_APDU [07:09:15]CAPDU: 80 13 00 00 [07:09:15]Write to MH i2c: E2 08 00 FA 00 80 13 00 00 00 00 00 00 76 [07:09:15]Write i2c OK [07:09:15]MH_I2C_Read... [07:09:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:09:16]Read from MH i2c: E2 [07:09:16]MH_I2C_Read... [07:09:16]Read from MH i2c: E2 62 00 [07:09:16]MH_I2C_Read... [07:09:16]Read from MH i2c: E2 62 00 FA 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 CA 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [07:09:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 CA 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:09:16]wFMCommunicate OK [07:09:16]SAM_PROTO_GetFieldsCounters done [07:09:16]requested_item shift.num is exist - process it [07:09:16]requested_item shift.opened is exist - process it [07:09:16]req_shift_opened [07:09:16]FM_GetShiftState [07:09:16]SAM_PROTO_GetShiftState [07:09:16]wFMCommunicate request_size=4 [07:09:16]MH_SAM_APDU [07:09:16]CAPDU: 80 13 01 00 [07:09:16]Write to MH i2c: E2 08 00 FB 00 80 13 01 00 00 00 00 00 78 [07:09:16]Write i2c OK [07:09:16]MH_I2C_Read... [07:09:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:09:16]Read from MH i2c: E2 [07:09:16]MH_I2C_Read... [07:09:16]Read from MH i2c: E2 0E 00 [07:09:16]MH_I2C_Read... [07:09:16]Read from MH i2c: E2 0E 00 FB 00 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 BF [07:09:16]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [07:09:16]wFMCommunicate OK [07:09:16]SAM_PROTO_GetShiftState done [07:09:16]FM_GetShiftState done [07:09:16]req_shift_opened done [07:09:16]requested_item shift.open_date is exist - process it [07:09:16]req_shift_open_date [07:09:16]req_shift_open_date done [07:09:16]produce_requested_data done [07:09:16]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73162,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [07:09:16]process_action_free close_receipt [07:09:16]json_value_free [07:09:16]json_value_free done [07:09:16]process_json_proto returns [07:09:16]Send response to host [07:09:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73162,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [07:09:16]free response buf [07:09:16]execute_script done [07:09:16]execute_script returns [07:09:16]free content buf [07:09:16]Sock 9.Close socket [07:09:16]Sock 9.Thread stoped [07:09:20]OFD Sender: No OFD packet to send [07:09:25]OFD Sender: No OFD packet to send [07:09:29]recv_with_timeout no data received [07:09:30]OFD Sender: No OFD packet to send [07:09:35]OFD Sender: No OFD packet to send [07:09:39]recv_with_timeout no data received [07:09:40]OFD Sender: No OFD packet to send [07:09:45]OFD Sender: No OFD packet to send [07:09:50]OFD Sender: No OFD packet to send [07:09:55]OFD Sender: No OFD packet to send [07:10:00]OFD Sender: No OFD packet to send [07:10:05]OFD Sender: No OFD packet to send [07:10:10]OFD Sender: No OFD packet to send [07:10:15]OFD Sender: No OFD packet to send [07:10:20]OFD Sender: No OFD packet to send [07:10:25]OFD Sender: No OFD packet to send [07:10:30]OFD Sender: No OFD packet to send [07:10:35]OFD Sender: No OFD packet to send [07:10:40]OFD Sender: No OFD packet to send [07:10:45]OFD Sender: No OFD packet to send [07:10:50]OFD Sender: No OFD packet to send [07:10:52]recv_with_timeout no data received [07:10:55]OFD Sender: No OFD packet to send [07:11:00]OFD Sender: No OFD packet to send [07:11:05]OFD Sender: No OFD packet to send [07:11:10]OFD Sender: No OFD packet to send [07:11:14]recv_with_timeout no data received [07:11:15]OFD Sender: No OFD packet to send [07:11:20]OFD Sender: No OFD packet to send [07:11:25]OFD Sender: No OFD packet to send [07:11:30]OFD Sender: No OFD packet to send [07:11:31]recv_with_timeout no data received [07:11:35]OFD Sender: No OFD packet to send [07:11:40]OFD Sender: No OFD packet to send [07:11:41]recv_with_timeout no data received [07:11:45]OFD Sender: No OFD packet to send [07:11:50]OFD Sender: No OFD packet to send [07:11:54]accept exits with 7 [07:11:54]New connection [07:11:54]New thread 3067481444 created [07:11:54]Thread 3067624804 joined [07:11:54]Waiting for new connection... [07:11:54] Sock 7.Parse request [07:11:54]Sock 7.Check first char [07:11:54]Sock 7.First char is OK [07:11:54]request: POST /json_proto HTTP/1.0 [07:11:54]Method: POST [07:11:54]URL: /json_proto [07:11:54]Method is POST - this is cgi request [07:11:54]url: /json_proto [07:11:54]query_string will be loaded in cgi processing [07:11:54]execute_cgi json_proto POST (null) [07:11:54]execute_cgi path=json_proto method=POST [07:11:54]POST find Content-Length [07:11:54]Host: 172.17.43.195:8080 [07:11:54]Content-Length: 797 [07:11:54]Content-Type: application/json [07:11:54] [07:11:54]POST finish read [07:11:54]Found Content-Length = 797 [07:11:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952762", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 19.690, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:11:54]execute_script... [07:11: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)952762", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 19.690, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:11:54]POST & json_proto [07:11:54]process_json_proto [07:11:54]json parsed OK: [07:11:54]protocol is kg_v1.0 [07:11:54]action value=close_receipt [07:11:54]process_action close_receipt [07:11:54]cmd_close_receipt [07:11:54]MH_GetDate [07:11:54]Write to MH i2c: F0 00 00 FC 00 EB [07:11:54]Write i2c OK [07:11:54]MH_I2C_Read... [07:11:54]Read from MH i2c: F0 [07:11:54]MH_I2C_Read... [07:11:54]Read from MH i2c: F0 09 00 [07:11:54]MH_I2C_Read... [07:11:54]Read from MH i2c: F0 09 00 FC 00 00 3A 7F 24 67 74 2C AD 66 EB [07:11:54]GetLastDocTimeStamp 1730444952 [07:11:54]current date 1730445114 [07:11:54]FM_GetShiftState [07:11:54]SAM_PROTO_GetShiftState [07:11:54]wFMCommunicate request_size=4 [07:11:54]MH_SAM_APDU [07:11:54]CAPDU: 80 13 01 00 [07:11:54]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [07:11:54]Write i2c OK [07:11:54]MH_I2C_Read... [07:11:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:11:54]Read from MH i2c: E2 [07:11:54]MH_I2C_Read... [07:11:54]Read from MH i2c: E2 0E 00 [07:11:54]MH_I2C_Read... [07:11:54]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 C1 [07:11:54]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [07:11:54]wFMCommunicate OK [07:11:54]SAM_PROTO_GetShiftState done [07:11:54]FM_GetShiftState done [07:11:54]opened in 1730419605 [07:11:54]opened+sec_in_day 1730506005 [07:11:54]quantity*price = 0 [07:11:54]sum+1 = 1 [07:11:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 32 01.11.2024 07:11 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 53623 ФМ: 0000000000874662 ФД: 73163 ФПД: 9767403452684 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T071154&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73163&fm=9767403452684&tin=02508201610067®Number=0000000000091644&sum=0 [07:11:55]StoreToDocumentArchive [07:11:55]shift 558 fd 73163 [07:11:55]save to /storage/0558/doc_00073163 [07:11:55]save last doc name /storage/0558/doc_00073163 to /storage/kkm_last_doc_name [07:11:55]save OK [07:11:55]Clear old archive folders... [07:11:55]OFD Sender: No OFD packet to send [07:11:55]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:11:55]tlvbuf is 010016C0 [07:11:55]SAM_PROTO_ClearQueue [07:11:55]wFMCommunicate request_size=4 [07:11:55]MH_SAM_APDU [07:11:55]CAPDU: 80 09 00 00 [07:11:55]Write to MH i2c: E2 08 00 0A 01 80 09 00 00 00 00 00 00 7D [07:11:55]Write i2c OK [07:11:55]MH_I2C_Read... [07:11:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:11:56]Read from MH i2c: E2 [07:11:56]MH_I2C_Read... [07:11:56]Read from MH i2c: E2 03 00 [07:11:56]MH_I2C_Read... [07:11:56]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [07:11:56]RAPDU: 90 00 [07:11:56]wFMCommunicate OK [07:11:56]SAM_PROTO_ClearQueue done [07:11:56]KKMCreateOFDPacket [07:11:56]OFDProtocolAddRootSTLVToBuf [07:11:56]FM_MakeSignedData [07:11:56]FM_MakeSignedData [07:11:56]SAM_PROTO_SignData [07:11:56]wFMCommunicate request_size=4 [07:11:56]MH_SAM_APDU [07:11:56]CAPDU: 80 0D 01 02 [07:11:56]Write to MH i2c: E2 08 00 0B 01 80 0D 01 02 00 00 00 00 85 [07:11:56]Write i2c OK [07:11:56]MH_I2C_Read... [07:11:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:11:56]Read from MH i2c: E2 [07:11:56]MH_I2C_Read... [07:11:56]Read from MH i2c: E2 03 00 [07:11:56]MH_I2C_Read... [07:11:56]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [07:11:56]RAPDU: 90 00 [07:11:56]wFMCommunicate OK [07:11:56]wFMCommunicate request_size=255 [07:11:56]MH_SAM_APDU [07:11:56]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 3A 7F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CB 1D 01 00 35 04 06 00 [07:11:56]Write to MH i2c: E2 02 01 0C 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 3A 7F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CB 1D 01 00 35 04 06 00 00 00 7D [07:11:56]Write i2c OK [07:11:56]MH_I2C_Read... [07:11:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:11:56]Read from MH i2c: E2 [07:11:56]MH_I2C_Read... [07:11:56]Read from MH i2c: E2 03 00 [07:11:56]MH_I2C_Read... [07:11:56]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [07:11:56]RAPDU: 90 00 [07:11:56]wFMCommunicate OK [07:11:56]wFMCommunicate request_size=11 [07:11:56]MH_SAM_APDU [07:11:56]CAPDU: 80 0D 02 02 06 08 E2 26 9C F9 0C [07:11:56]Write to MH i2c: E2 0E 00 0D 01 80 0D 02 02 06 00 08 E2 26 9C F9 0C 00 00 45 [07:11:56]Write i2c OK [07:11:56]MH_I2C_Read... [07:11:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:11:56]Read from MH i2c: E2 [07:11:56]MH_I2C_Read... [07:11:56]Read from MH i2c: E2 03 00 [07:11:56]MH_I2C_Read... [07:11:56]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [07:11:56]RAPDU: 90 00 [07:11:56]wFMCommunicate OK [07:11:56]wFMCommunicate request_size=4 [07:11:56]MH_SAM_APDU [07:11:56]CAPDU: 80 0D 03 02 [07:11:56]Write to MH i2c: E2 08 00 0E 01 80 0D 03 02 00 00 00 00 8A [07:11:56]Write i2c OK [07:11:56]MH_I2C_Read... [07:11:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:11:56]Read from MH i2c: E2 [07:11:56]MH_I2C_Read... [07:11:56]Read from MH i2c: E2 0B 00 [07:11:56]MH_I2C_Read... [07:11:56]Read from MH i2c: E2 0B 00 0E 01 00 4F 7D F4 C4 51 1C 50 45 90 00 11 [07:11:56]RAPDU: 4F 7D F4 C4 51 1C 50 45 90 00 [07:11:56]wFMCommunicate OK [07:11:56]SAM_PROTO_SignData done [07:11:56]FM_MakeSignedData done [07:11:56]CreateOFDProtocolMessage [07:11:56]wFMCommunicate request_size=4 [07:11:56]MH_SAM_APDU [07:11:56]CAPDU: 80 11 00 00 [07:11:56]Write to MH i2c: E2 08 00 0F 01 80 11 00 00 00 00 00 00 8A [07:11:56]Write i2c OK [07:11:56]MH_I2C_Read... [07:11:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:11:56]Read from MH i2c: E2 [07:11:56]MH_I2C_Read... [07:11:56]Read from MH i2c: E2 17 00 [07:11:56]MH_I2C_Read... [07:11:56]Read from MH i2c: E2 17 00 0F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DE [07:11:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:11:56]wFMCommunicate OK [07:11:56]CreateOFDProtocolMessage done [07:11:56]OFDSenderStorePacket 73163 [07:11:56]StoreOFDPacket docnum=73163 [07:11:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 95 F4 08 01 4D 2D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 3A 7F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CB 1D 01 00 35 04 06 00 08 E2 26 9C F9 0C 4F 7D F4 C4 51 1C 50 45 [07:11:56]CheckFolder [07:11:56]dirname=/storage/ofd_packets [07:11:56]CheckFolder done [07:11:56]ProducePacketName [07:11:56]name=ofd_packets/00073163 [07:11:56]NVStorageSaveData ofd_packets/00073163 [07:11:56]File name is /storage/ofd_packets/00073163 [07:11:56]Write 302 bytes [07:11:56]NVStorageSaveData done [07:11:56]OFDSenderStorePacket done [07:11:56]KKMCreateOFDPacket done [07:11:56]NVStorageSaveData kkm_last_timestamp [07:11:56]File name is /storage/kkm_last_timestamp [07:11:56]Write 4 bytes [07:11:56]NVStorageSaveData done [07:11:56]ExternCall_PrintAddStr [07:11:56]wPrintStart [07:11:56]Write to MH i2c: 01 00 00 10 01 11 [07:11:56]Write i2c OK [07:11:56]MH_I2C_Read... [07:11:56]Read from MH i2c: 01 [07:11:56]MH_I2C_Read... [07:11:56]Read from MH i2c: 01 07 00 [07:11:56]MH_I2C_Read... [07:11:56]Read from MH i2c: 01 07 00 10 01 00 00 00 00 00 FF 0F 26 [07:11:56]RasterBufferAndPrint [07:11:56]line Счет N : (1)952762 [07:11:56]line ИНН: 02508201610067 [07:11:56]line Контрольно-Кассовый Чек [07:11:56]line ПРОДАЖА [07:11:56]line ТРК (МРК, ГНК) : 33 [07:11:56]line Товар: 2710194210 [07:11:56]line ДТ(л)-К-5 [07:11:56]line 19.690 * 0.00 [07:11:56]line = 0.00 [07:11:56]line НДС 12% НСП 1% [07:11:56]line > о реализуемом товаре [07:11:56]line ИТОГО: 0.00 [07:11:56]line НСП 1% : 0.00 [07:11:56]line НДС 12% : 0.00 [07:11:56]line Наличными: 0.00 [07:11:56]line Безнал.: 0.00 [07:11:56]line Место: АЗС № 113 "Партнер Нефть" [07:11:56]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [07:11:56]line СНО: Общий режим [07:11:56]line Чек 32 01.11.2024 07:11 [07:11:56]line Смена: 558 ФФД: 1.0 [07:11:56]line ЗНМ: 0300000087 [07:11:56]line РНМ: 0000000000091644 [07:11:56]line Версия ККМ: 001 [07:11:56]line Талоны: Топливная Карта [07:11:56]line 53623 [07:11:56]line ФМ: 0000000000874662 [07:11:56]line ФД: 73163 [07:11:56]line ФПД: 9767403452684 [07:11:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T071154&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73163&fm=9767403452684&tin=02508201610067®Number=0000000000091644&sum=0 [07:11:56]OFD Sender: Processing packet 73163 [packets to send 282, broken 281] [07:11:56]ProducePacketName [07:11:56]name=ofd_packets/00073163 [07:11:56]OFD Sender: To server: pG, [07:11:56]CommunicateWithHost lk.salyk.kg:30040 [07:11:56]ConnectInit lk.salyk.kg [07:11:56]written 0, free lines is 4095 [07:11:57]Write to MH i2c: 01 00 00 3A 01 3B [07:11:57]Write i2c OK [07:11:57]MH_I2C_Read... [07:11:57]Read from MH i2c: 01 [07:11:57]MH_I2C_Read... [07:11:57]Read from MH i2c: 01 07 00 [07:11:57]MH_I2C_Read... [07:11:57]Read from MH i2c: 01 07 00 3A 01 00 00 00 00 00 E4 0C 32 [07:11:57]RasterBufferAndPrint [07:11:57]line [07:11:57]line [07:11:57]line [07:11:57]line [07:11:57]line [07:11:57]written 0, free lines is 3306 [07:11:57]MH_Cut [07:11:57]Write to MH i2c: D1 01 00 41 01 01 14 [07:11:57]Write i2c OK [07:11:57]MH_I2C_Read... [07:11:57]Read from MH i2c: D1 [07:11:57]MH_I2C_Read... [07:11:57]Read from MH i2c: D1 01 00 [07:11:57]MH_I2C_Read... [07:11:57]Read from MH i2c: D1 01 00 41 01 00 13 [07:11:57]Write to MH i2c: 01 00 00 42 01 43 [07:11:57]Write i2c OK [07:11:57]MH_I2C_Read... [07:11:57]Connected sock=9 [07:11:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 95 F4 08 01 4D 2D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 3A 7F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CB 1D 01 00 35 04 06 00 08 E2 26 9C F9 0C 4F 7D F4 C4 51 1C 50 45 [07:11:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 BC B5 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 34 36 36 32 10 04 04 00 CB 1D 01 00 F4 03 04 00 EE 29 24 67 B6 04 01 00 00 C5 0E 37 2B B5 AB 03 AD [07:11:57]CommunicateWithHost err = 0 [07:11:57]CheckOFDResponse [07:11:57]1017 (14) - 77093643461234 [07:11:57]1041 (16) - 0000000000874662 [07:11:57]1040 (4) - 73163 [07:11:57]1012 (4) - 01.11.2024 01:07 [07:11:57]1206 (1) - 0 [07:11:57]OFD Sender: Remove packet 73163 [07:11:57]ProducePacketName [07:11:57]name=ofd_packets/00073163 [07:11:57]NVStorageDeleteData [07:11:57]*** Cut start [07:11:57]*** Partial cut [07:11:57]*** CUTSNS_PIN = 1 [07:11:58]*** CUTSNS_PIN = 0 [07:11:58]OFD Sender: No OFD packet to send [07:11:58]*** Brake cut motor [07:11:58]Read from MH i2c: 01 [07:11:58]MH_I2C_Read... [07:11:58]*** Stop cut motor [07:11:58]*** Cut end [07:11:58]Read from MH i2c: 01 07 00 [07:11:58]MH_I2C_Read... [07:11:58]Read from MH i2c: 01 07 00 42 01 00 00 00 00 00 FF 0F 58 [07:11:58]process_action close_receipt done [07:11:58]requested_data is exist [07:11:58]produce_requested_data [07:11:58]requested_item fm.sn is exist - process it [07:11:58]wFMCommunicate request_size=4 [07:11:58]MH_SAM_APDU [07:11:58]CAPDU: 80 11 00 00 [07:11:58]Write to MH i2c: E2 08 00 43 01 80 11 00 00 00 00 00 00 BE [07:11:58]Write i2c OK [07:11:58]MH_I2C_Read... [07:11:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:11:58]Read from MH i2c: E2 [07:11:58]MH_I2C_Read... [07:11:58]Read from MH i2c: E2 17 00 [07:11:58]MH_I2C_Read... [07:11:58]Read from MH i2c: E2 17 00 43 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 12 [07:11:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:11:58]wFMCommunicate OK [07:11:58]requested_item fd.num is exist - process it [07:11:58]SAM_PROTO_GetFieldsCounters [07:11:58]wFMCommunicate request_size=4 [07:11:58]MH_SAM_APDU [07:11:58]CAPDU: 80 13 00 00 [07:11:58]Write to MH i2c: E2 08 00 44 01 80 13 00 00 00 00 00 00 C1 [07:11:58]Write i2c OK [07:11:58]MH_I2C_Read... [07:11:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:11:58]Read from MH i2c: E2 [07:11:58]MH_I2C_Read... [07:11:58]Read from MH i2c: E2 62 00 [07:11:58]MH_I2C_Read... [07:11:58]Read from MH i2c: E2 62 00 44 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 CB 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [07:11:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 CB 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:11:58]wFMCommunicate OK [07:11:58]SAM_PROTO_GetFieldsCounters done [07:11:58]requested_item shift.num is exist - process it [07:11:58]requested_item shift.opened is exist - process it [07:11:58]req_shift_opened [07:11:58]FM_GetShiftState [07:11:58]SAM_PROTO_GetShiftState [07:11:58]wFMCommunicate request_size=4 [07:11:58]MH_SAM_APDU [07:11:58]CAPDU: 80 13 01 00 [07:11:58]Write to MH i2c: E2 08 00 45 01 80 13 01 00 00 00 00 00 C3 [07:11:58]Write i2c OK [07:11:58]MH_I2C_Read... [07:11:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:11:58]Read from MH i2c: E2 [07:11:58]MH_I2C_Read... [07:11:58]Read from MH i2c: E2 0E 00 [07:11:58]MH_I2C_Read... [07:11:58]Read from MH i2c: E2 0E 00 45 01 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 0A [07:11:58]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [07:11:58]wFMCommunicate OK [07:11:58]SAM_PROTO_GetShiftState done [07:11:58]FM_GetShiftState done [07:11:58]req_shift_opened done [07:11:58]requested_item shift.open_date is exist - process it [07:11:58]req_shift_open_date [07:11:58]req_shift_open_date done [07:11:58]produce_requested_data done [07:11:58]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73163,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [07:11:58]process_action_free close_receipt [07:11:58]json_value_free [07:11:58]json_value_free done [07:11:58]process_json_proto returns [07:11:58]Send response to host [07:11:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73163,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [07:11:58]free response buf [07:11:58]execute_script done [07:11:58]execute_script returns [07:11:58]free content buf [07:11:58]Sock 7.Close socket [07:11:58]Sock 7.Thread stoped [07:12:03]OFD Sender: No OFD packet to send [07:12:08]OFD Sender: No OFD packet to send [07:12:13]OFD Sender: No OFD packet to send [07:12:18]OFD Sender: No OFD packet to send [07:12:23]OFD Sender: No OFD packet to send [07:12:27]recv_with_timeout no data received [07:12:28]OFD Sender: No OFD packet to send [07:12:33]OFD Sender: No OFD packet to send [07:12:38]OFD Sender: No OFD packet to send [07:12:43]OFD Sender: No OFD packet to send [07:12:48]OFD Sender: No OFD packet to send [07:12:51]accept exits with 10 [07:12:51]New connection [07:12:51]New thread 3067624804 created [07:12:51]Thread 3067481444 joined [07:12:51]Waiting for new connection... [07:12:51] Sock 10.Parse request [07:12:51]Sock 10.Check first char [07:12:51]Sock 10.First char is OK [07:12:51]request: POST /json_proto HTTP/1.0 [07:12:51]Method: POST [07:12:51]URL: /json_proto [07:12:51]Method is POST - this is cgi request [07:12:51]url: /json_proto [07:12:51]query_string will be loaded in cgi processing [07:12:51]execute_cgi json_proto POST (null) [07:12:51]execute_cgi path=json_proto method=POST [07:12:51]POST find Content-Length [07:12:51]Host: 172.17.43.195:8080 [07:12:51]Content-Length: 683 [07:12:51]Content-Type: application/json [07:12:51] [07:12:51]POST finish read [07:12:51]Found Content-Length = 683 [07:12:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 11.570, "sum" : 881.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 881.00, "total" : 881.00, "payments": [ { "type": 0, "sum" : 881.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:12:51]execute_script... [07:12: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)952764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 11.570, "sum" : 881.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 881.00, "total" : 881.00, "payments": [ { "type": 0, "sum" : 881.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:12:51]POST & json_proto [07:12:51]process_json_proto [07:12:51]json parsed OK: [07:12:51]protocol is kg_v1.0 [07:12:51]action value=close_receipt [07:12:51]process_action close_receipt [07:12:51]cmd_close_receipt [07:12:51]MH_GetDate [07:12:51]Write to MH i2c: F0 00 00 46 01 36 [07:12:51]Write i2c OK [07:12:51]MH_I2C_Read... [07:12:51]Read from MH i2c: F0 [07:12:51]MH_I2C_Read... [07:12:51]Read from MH i2c: F0 09 00 [07:12:51]MH_I2C_Read... [07:12:51]Read from MH i2c: F0 09 00 46 01 00 73 7F 24 67 74 2C AD 66 6F [07:12:51]GetLastDocTimeStamp 1730445114 [07:12:51]current date 1730445171 [07:12:51]FM_GetShiftState [07:12:51]SAM_PROTO_GetShiftState [07:12:51]wFMCommunicate request_size=4 [07:12:51]MH_SAM_APDU [07:12:51]CAPDU: 80 13 01 00 [07:12:51]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [07:12:51]Write i2c OK [07:12:51]MH_I2C_Read... [07:12:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:12:51]Read from MH i2c: E2 [07:12:51]MH_I2C_Read... [07:12:51]Read from MH i2c: E2 0E 00 [07:12:51]MH_I2C_Read... [07:12:51]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 0C [07:12:51]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [07:12:51]wFMCommunicate OK [07:12:51]SAM_PROTO_GetShiftState done [07:12:51]FM_GetShiftState done [07:12:51]opened in 1730419605 [07:12:51]opened+sec_in_day 1730506005 [07:12:51]quantity*price = 88163 [07:12:51]sum+1 = 88164 [07:12:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 881.00 Внесено: 881.00 СДАЧА: 0.00 НСП 1% : 7.80 НДС 12% : 93.62 Наличными: 881.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 33 01.11.2024 07:12 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73164 ФПД: 169832288355131 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T071251&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73164&fm=169832288355131&tin=02508201610067®Number=0000000000091644&sum=88100 [07:12:52]StoreToDocumentArchive [07:12:52]shift 558 fd 73164 [07:12:52]save to /storage/0558/doc_00073164 [07:12:52]save last doc name /storage/0558/doc_00073164 to /storage/kkm_last_doc_name [07:12:52]save OK [07:12:52]Clear old archive folders... [07:12:52]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:12:52]tlvbuf is 00FF7830 [07:12:52]SAM_PROTO_ClearQueue [07:12:52]wFMCommunicate request_size=4 [07:12:52]MH_SAM_APDU [07:12:52]CAPDU: 80 09 00 00 [07:12:52]Write to MH i2c: E2 08 00 54 01 80 09 00 00 00 00 00 00 C7 [07:12:52]Write i2c OK [07:12:52]MH_I2C_Read... [07:12:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:12:52]Read from MH i2c: E2 [07:12:52]MH_I2C_Read... [07:12:52]Read from MH i2c: E2 03 00 [07:12:52]MH_I2C_Read... [07:12:52]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [07:12:52]RAPDU: 90 00 [07:12:52]wFMCommunicate OK [07:12:52]SAM_PROTO_ClearQueue done [07:12:52]KKMCreateOFDPacket [07:12:52]OFDProtocolAddRootSTLVToBuf [07:12:52]FM_MakeSignedData [07:12:52]FM_MakeSignedData [07:12:52]SAM_PROTO_SignData [07:12:52]wFMCommunicate request_size=4 [07:12:52]MH_SAM_APDU [07:12:52]CAPDU: 80 0D 01 02 [07:12:52]Write to MH i2c: E2 08 00 55 01 80 0D 01 02 00 00 00 00 CF [07:12:52]Write i2c OK [07:12:52]MH_I2C_Read... [07:12:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:12:52]Read from MH i2c: E2 [07:12:52]MH_I2C_Read... [07:12:52]Read from MH i2c: E2 03 00 [07:12:52]MH_I2C_Read... [07:12:52]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [07:12:52]RAPDU: 90 00 [07:12:52]wFMCommunicate OK [07:12:52]wFMCommunicate request_size=255 [07:12:52]MH_SAM_APDU [07:12:52]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 32 2D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 63 58 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 58 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 24 00 00 00 00 07 04 06 00 24 58 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 73 7F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CC 1D 01 00 35 04 06 00 [07:12:52]Write to MH i2c: E2 02 01 56 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 32 2D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 63 58 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 58 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 24 00 00 00 00 07 04 06 00 24 58 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 73 7F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CC 1D 01 00 35 04 06 00 00 00 87 [07:12:52]Write i2c OK [07:12:52]MH_I2C_Read... [07:12:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:12:52]Read from MH i2c: E2 [07:12:52]MH_I2C_Read... [07:12:52]Read from MH i2c: E2 03 00 [07:12:52]MH_I2C_Read... [07:12:52]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [07:12:52]RAPDU: 90 00 [07:12:52]wFMCommunicate OK [07:12:52]wFMCommunicate request_size=11 [07:12:52]MH_SAM_APDU [07:12:52]CAPDU: 80 0D 02 02 06 9A 76 29 38 03 3B [07:12:52]Write to MH i2c: E2 0E 00 57 01 80 0D 02 02 06 00 9A 76 29 38 03 3B 00 00 8D [07:12:52]Write i2c OK [07:12:52]MH_I2C_Read... [07:12:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:12:52]Read from MH i2c: E2 [07:12:52]MH_I2C_Read... [07:12:52]Read from MH i2c: E2 03 00 [07:12:52]MH_I2C_Read... [07:12:52]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [07:12:52]RAPDU: 90 00 [07:12:52]wFMCommunicate OK [07:12:52]wFMCommunicate request_size=4 [07:12:52]MH_SAM_APDU [07:12:52]CAPDU: 80 0D 03 02 [07:12:52]Write to MH i2c: E2 08 00 58 01 80 0D 03 02 00 00 00 00 D4 [07:12:52]Write i2c OK [07:12:52]MH_I2C_Read... [07:12:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:12:52]Read from MH i2c: E2 [07:12:52]MH_I2C_Read... [07:12:52]Read from MH i2c: E2 0B 00 [07:12:52]MH_I2C_Read... [07:12:52]Read from MH i2c: E2 0B 00 58 01 00 0A 9E 6C CF 11 F3 CB F2 90 00 79 [07:12:52]RAPDU: 0A 9E 6C CF 11 F3 CB F2 90 00 [07:12:52]wFMCommunicate OK [07:12:52]SAM_PROTO_SignData done [07:12:52]FM_MakeSignedData done [07:12:52]CreateOFDProtocolMessage [07:12:52]wFMCommunicate request_size=4 [07:12:52]MH_SAM_APDU [07:12:52]CAPDU: 80 11 00 00 [07:12:52]Write to MH i2c: E2 08 00 59 01 80 11 00 00 00 00 00 00 D4 [07:12:52]Write i2c OK [07:12:52]MH_I2C_Read... [07:12:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:12:52]Read from MH i2c: E2 [07:12:52]MH_I2C_Read... [07:12:52]Read from MH i2c: E2 17 00 [07:12:52]MH_I2C_Read... [07:12:52]Read from MH i2c: E2 17 00 59 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 28 [07:12:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:12:52]wFMCommunicate OK [07:12:52]CreateOFDProtocolMessage done [07:12:52]OFDSenderStorePacket 73164 [07:12:52]StoreOFDPacket docnum=73164 [07:12:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 AC 70 08 01 4A 4B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 32 2D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 63 58 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 58 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 24 00 00 00 00 07 04 06 00 24 58 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 73 7F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CC 1D 01 00 35 04 06 00 9A 76 29 38 03 3B 0A 9E 6C CF 11 F3 CB F2 [07:12:52]CheckFolder [07:12:52]dirname=/storage/ofd_packets [07:12:52]CheckFolder done [07:12:52]ProducePacketName [07:12:52]name=ofd_packets/00073164 [07:12:52]NVStorageSaveData ofd_packets/00073164 [07:12:52]File name is /storage/ofd_packets/00073164 [07:12:52]Write 302 bytes [07:12:52]NVStorageSaveData done [07:12:52]OFDSenderStorePacket done [07:12:52]KKMCreateOFDPacket done [07:12:52]NVStorageSaveData kkm_last_timestamp [07:12:52]File name is /storage/kkm_last_timestamp [07:12:52]Write 4 bytes [07:12:52]NVStorageSaveData done [07:12:52]ExternCall_PrintAddStr [07:12:52]wPrintStart [07:12:52]Write to MH i2c: 01 00 00 5A 01 5B [07:12:52]Write i2c OK [07:12:52]MH_I2C_Read... [07:12:52]Read from MH i2c: 01 [07:12:52]MH_I2C_Read... [07:12:52]Read from MH i2c: 01 07 00 [07:12:52]MH_I2C_Read... [07:12:52]Read from MH i2c: 01 07 00 5A 01 00 00 00 00 00 FF 0F 70 [07:12:52]RasterBufferAndPrint [07:12:52]line Счет N : (1)952764 [07:12:52]line ИНН: 02508201610067 [07:12:52]line Контрольно-Кассовый Чек [07:12:52]line ПРОДАЖА [07:12:52]line ТРК (МРК, ГНК) : 22 [07:12:52]line Товар: 2710194210 [07:12:52]line ДТ(л)-К-5 [07:12:52]line 11.570 * 76.20 [07:12:52]line = 881.63 [07:12:52]line НДС 12% НСП 1% [07:12:52]line > о реализуемом товаре [07:12:52]line ОКРУГЛЕНИЕ: -0.63 [07:12:52]line ИТОГО: 881.00 [07:12:52]line Внесено: 881.00 [07:12:52]line СДАЧА: 0.00 [07:12:52]line НСП 1% : 7.80 [07:12:52]line НДС 12% : 93.62 [07:12:52]line Наличными: 881.00 [07:12:52]line Безнал.: 0.00 [07:12:52]line Место: АЗС № 113 "Партнер Нефть" [07:12:52]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [07:12:52]line СНО: Общий режим [07:12:52]line Чек 33 01.11.2024 07:12 [07:12:52]line Смена: 558 ФФД: 1.0 [07:12:52]line ЗНМ: 0300000087 [07:12:52]line РНМ: 0000000000091644 [07:12:52]line Версия ККМ: 001 [07:12:52]line ФМ: 0000000000874662 [07:12:52]line ФД: 73164 [07:12:52]line ФПД: 169832288355131 [07:12:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T071251&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73164&fm=169832288355131&tin=02508201610067®Number=0000000000091644&sum=88100 [07:12:53]OFD Sender: Processing packet 73164 [packets to send 282, broken 281] [07:12:53]ProducePacketName [07:12:53]name=ofd_packets/00073164 [07:12:53]OFD Sender: To server: pG, [07:12:53]CommunicateWithHost lk.salyk.kg:30040 [07:12:53]ConnectInit lk.salyk.kg [07:12:53]written 0, free lines is 4095 [07:12:53]Write to MH i2c: 01 00 00 85 01 86 [07:12:53]Write i2c OK [07:12:53]MH_I2C_Read... [07:12:53]Read from MH i2c: 01 [07:12:53]MH_I2C_Read... [07:12:53]Read from MH i2c: 01 07 00 [07:12:53]MH_I2C_Read... [07:12:53]Read from MH i2c: 01 07 00 85 01 00 00 00 00 00 CF 0C 68 [07:12:53]RasterBufferAndPrint [07:12:53]line [07:12:53]line [07:12:53]line [07:12:53]line [07:12:53]line [07:12:53]written 0, free lines is 3287 [07:12:53]MH_Cut [07:12:53]Write to MH i2c: D1 01 00 8C 01 01 5F [07:12:53]Write i2c OK [07:12:53]MH_I2C_Read... [07:12:53]Read from MH i2c: D1 [07:12:53]MH_I2C_Read... [07:12:53]Read from MH i2c: D1 01 00 [07:12:53]MH_I2C_Read... [07:12:53]Read from MH i2c: D1 01 00 8C 01 00 5E [07:12:53]Write to MH i2c: 01 00 00 8D 01 8E [07:12:53]Write i2c OK [07:12:53]MH_I2C_Read... [07:12:54]Connected sock=7 [07:12:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 AC 70 08 01 4A 4B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 32 2D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 63 58 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 58 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 24 00 00 00 00 07 04 06 00 24 58 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 73 7F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CC 1D 01 00 35 04 06 00 9A 76 29 38 03 3B 0A 9E 6C CF 11 F3 CB F2 [07:12:54]*** Cut start [07:12:54]*** Partial cut [07:12:54]*** CUTSNS_PIN = 1 [07:12:54]*** CUTSNS_PIN = 0 [07:12:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 D7 B2 47 00 8A 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CC 1D 01 00 F4 03 04 00 27 2A 24 67 B6 04 01 00 00 45 C1 15 EF 21 ED AA 0B [07:12:54]CommunicateWithHost err = 0 [07:12:54]CheckOFDResponse [07:12:54]1017 (14) - 77093643461234 [07:12:54]1041 (16) - 0000000000874662 [07:12:54]1040 (4) - 73164 [07:12:54]1012 (4) - 01.11.2024 01:08 [07:12:54]1206 (1) - 0 [07:12:54]OFD Sender: Remove packet 73164 [07:12:54]ProducePacketName [07:12:54]name=ofd_packets/00073164 [07:12:54]NVStorageDeleteData [07:12:54]*** Brake cut motor [07:12:55]Read from MH i2c: 01 [07:12:55]MH_I2C_Read... [07:12:55]*** Stop cut motor [07:12:55]*** Cut end [07:12:55]Read from MH i2c: 01 07 00 [07:12:55]MH_I2C_Read... [07:12:55]Read from MH i2c: 01 07 00 8D 01 00 00 00 00 00 FF 0F A3 [07:12:55]process_action close_receipt done [07:12:55]requested_data is exist [07:12:55]produce_requested_data [07:12:55]requested_item fm.sn is exist - process it [07:12:55]wFMCommunicate request_size=4 [07:12:55]MH_SAM_APDU [07:12:55]CAPDU: 80 11 00 00 [07:12:55]Write to MH i2c: E2 08 00 8E 01 80 11 00 00 00 00 00 00 09 [07:12:55]Write i2c OK [07:12:55]MH_I2C_Read... [07:12:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:12:55]Read from MH i2c: E2 [07:12:55]MH_I2C_Read... [07:12:55]Read from MH i2c: E2 17 00 [07:12:55]MH_I2C_Read... [07:12:55]Read from MH i2c: E2 17 00 8E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5D [07:12:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:12:55]wFMCommunicate OK [07:12:55]requested_item fd.num is exist - process it [07:12:55]SAM_PROTO_GetFieldsCounters [07:12:55]wFMCommunicate request_size=4 [07:12:55]MH_SAM_APDU [07:12:55]CAPDU: 80 13 00 00 [07:12:55]Write to MH i2c: E2 08 00 8F 01 80 13 00 00 00 00 00 00 0C [07:12:55]Write i2c OK [07:12:55]MH_I2C_Read... [07:12:55]OFD Sender: No OFD packet to send [07:12:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:12:55]Read from MH i2c: E2 [07:12:55]MH_I2C_Read... [07:12:55]Read from MH i2c: E2 62 00 [07:12:55]MH_I2C_Read... [07:12:55]Read from MH i2c: E2 62 00 8F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 CC 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [07:12:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 CC 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:12:55]wFMCommunicate OK [07:12:55]SAM_PROTO_GetFieldsCounters done [07:12:55]requested_item shift.num is exist - process it [07:12:55]requested_item shift.opened is exist - process it [07:12:55]req_shift_opened [07:12:55]FM_GetShiftState [07:12:55]SAM_PROTO_GetShiftState [07:12:55]wFMCommunicate request_size=4 [07:12:55]MH_SAM_APDU [07:12:55]CAPDU: 80 13 01 00 [07:12:55]Write to MH i2c: E2 08 00 90 01 80 13 01 00 00 00 00 00 0E [07:12:55]Write i2c OK [07:12:55]MH_I2C_Read... [07:12:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:12:55]Read from MH i2c: E2 [07:12:55]MH_I2C_Read... [07:12:55]Read from MH i2c: E2 0E 00 [07:12:55]MH_I2C_Read... [07:12:55]Read from MH i2c: E2 0E 00 90 01 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 55 [07:12:55]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [07:12:55]wFMCommunicate OK [07:12:55]SAM_PROTO_GetShiftState done [07:12:55]FM_GetShiftState done [07:12:55]req_shift_opened done [07:12:55]requested_item shift.open_date is exist - process it [07:12:55]req_shift_open_date [07:12:55]req_shift_open_date done [07:12:55]produce_requested_data done [07:12:55]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73164,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [07:12:55]process_action_free close_receipt [07:12:55]json_value_free [07:12:55]json_value_free done [07:12:55]process_json_proto returns [07:12:55]Send response to host [07:12:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73164,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [07:12:55]free response buf [07:12:55]execute_script done [07:12:55]execute_script returns [07:12:55]free content buf [07:12:55]Sock 10.Close socket [07:12:55]Sock 10.Thread stoped [07:13:00]OFD Sender: No OFD packet to send [07:13:03]recv_with_timeout no data received [07:13:05]OFD Sender: No OFD packet to send [07:13:10]OFD Sender: No OFD packet to send [07:13:11]accept exits with 9 [07:13:11]New connection [07:13:11]New thread 3067481444 created [07:13:11]Thread 3067624804 joined [07:13:11]Waiting for new connection... [07:13:11] Sock 9.Parse request [07:13:11]Sock 9.Check first char [07:13:11]Sock 9.First char is OK [07:13:11]request: POST /json_proto HTTP/1.0 [07:13:11]Method: POST [07:13:11]URL: /json_proto [07:13:11]Method is POST - this is cgi request [07:13:11]url: /json_proto [07:13:11]query_string will be loaded in cgi processing [07:13:11]execute_cgi json_proto POST (null) [07:13:11]execute_cgi path=json_proto method=POST [07:13:11]POST find Content-Length [07:13:11]Host: 172.17.43.195:8080 [07:13:11]Content-Length: 682 [07:13:11]Content-Type: application/json [07:13:11] [07:13:11]POST finish read [07:13:11]Found Content-Length = 682 [07:13:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:13:11]execute_script... [07:13: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)952763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:13:11]POST & json_proto [07:13:11]process_json_proto [07:13:11]json parsed OK: [07:13:11]protocol is kg_v1.0 [07:13:11]action value=close_receipt [07:13:11]process_action close_receipt [07:13:11]cmd_close_receipt [07:13:11]MH_GetDate [07:13:11]Write to MH i2c: F0 00 00 91 01 81 [07:13:11]Write i2c OK [07:13:11]MH_I2C_Read... [07:13:11]Read from MH i2c: F0 [07:13:11]MH_I2C_Read... [07:13:11]Read from MH i2c: F0 09 00 [07:13:11]MH_I2C_Read... [07:13:11]Read from MH i2c: F0 09 00 91 01 00 87 7F 24 67 74 2C AD 66 CE [07:13:11]GetLastDocTimeStamp 1730445171 [07:13:11]current date 1730445191 [07:13:11]FM_GetShiftState [07:13:11]SAM_PROTO_GetShiftState [07:13:11]wFMCommunicate request_size=4 [07:13:11]MH_SAM_APDU [07:13:11]CAPDU: 80 13 01 00 [07:13:11]Write to MH i2c: E2 08 00 92 01 80 13 01 00 00 00 00 00 10 [07:13:11]Write i2c OK [07:13:11]MH_I2C_Read... [07:13:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:13:11]Read from MH i2c: E2 [07:13:11]MH_I2C_Read... [07:13:11]Read from MH i2c: E2 0E 00 [07:13:11]MH_I2C_Read... [07:13:11]Read from MH i2c: E2 0E 00 92 01 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 57 [07:13:11]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [07:13:11]wFMCommunicate OK [07:13:11]SAM_PROTO_GetShiftState done [07:13:11]FM_GetShiftState done [07:13:11]opened in 1730419605 [07:13:11]opened+sec_in_day 1730506005 [07:13:11]quantity*price = 60045 [07:13:11]sum+1 = 60047 [07:13:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 34 01.11.2024 07:13 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73165 ФПД: 56829442588169 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T071312&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73165&fm=56829442588169&tin=02508201610067®Number=0000000000091644&sum=60000 [07:13:13]StoreToDocumentArchive [07:13:13]shift 558 fd 73165 [07:13:13]save to /storage/0558/doc_00073165 [07:13:13]save last doc name /storage/0558/doc_00073165 to /storage/kkm_last_doc_name [07:13:13]save OK [07:13:13]Clear old archive folders... [07:13:13]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:13:13]tlvbuf is 00F85510 [07:13:13]SAM_PROTO_ClearQueue [07:13:13]wFMCommunicate request_size=4 [07:13:13]MH_SAM_APDU [07:13:13]CAPDU: 80 09 00 00 [07:13:13]Write to MH i2c: E2 08 00 9F 01 80 09 00 00 00 00 00 00 12 [07:13:13]Write i2c OK [07:13:13]MH_I2C_Read... [07:13:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:13:13]Read from MH i2c: E2 [07:13:13]MH_I2C_Read... [07:13:13]Read from MH i2c: E2 03 00 [07:13:13]MH_I2C_Read... [07:13:13]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [07:13:13]RAPDU: 90 00 [07:13:13]wFMCommunicate OK [07:13:13]SAM_PROTO_ClearQueue done [07:13:13]KKMCreateOFDPacket [07:13:13]OFDProtocolAddRootSTLVToBuf [07:13:13]FM_MakeSignedData [07:13:13]FM_MakeSignedData [07:13:13]SAM_PROTO_SignData [07:13:13]wFMCommunicate request_size=4 [07:13:13]MH_SAM_APDU [07:13:13]CAPDU: 80 0D 01 02 [07:13:13]Write to MH i2c: E2 08 00 A0 01 80 0D 01 02 00 00 00 00 1A [07:13:13]Write i2c OK [07:13:13]MH_I2C_Read... [07:13:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:13:13]Read from MH i2c: E2 [07:13:13]MH_I2C_Read... [07:13:13]Read from MH i2c: E2 03 00 [07:13:13]MH_I2C_Read... [07:13:13]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [07:13:13]RAPDU: 90 00 [07:13:13]wFMCommunicate OK [07:13:13]wFMCommunicate request_size=255 [07:13:13]MH_SAM_APDU [07:13: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 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 88 7F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CD 1D 01 00 35 04 06 00 [07:13:13]Write to MH i2c: E2 02 01 A1 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 88 7F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CD 1D 01 00 35 04 06 00 00 00 17 [07:13:13]Write i2c OK [07:13:13]MH_I2C_Read... [07:13:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:13:13]Read from MH i2c: E2 [07:13:13]MH_I2C_Read... [07:13:13]Read from MH i2c: E2 03 00 [07:13:13]MH_I2C_Read... [07:13:13]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [07:13:13]RAPDU: 90 00 [07:13:13]wFMCommunicate OK [07:13:13]wFMCommunicate request_size=11 [07:13:13]MH_SAM_APDU [07:13:13]CAPDU: 80 0D 02 02 06 33 AF A2 BC FE 09 [07:13:13]Write to MH i2c: E2 0E 00 A2 01 80 0D 02 02 06 00 33 AF A2 BC FE 09 00 00 70 [07:13:13]Write i2c OK [07:13:13]MH_I2C_Read... [07:13:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:13:13]Read from MH i2c: E2 [07:13:13]MH_I2C_Read... [07:13:13]Read from MH i2c: E2 03 00 [07:13:13]MH_I2C_Read... [07:13:13]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [07:13:13]RAPDU: 90 00 [07:13:13]wFMCommunicate OK [07:13:13]wFMCommunicate request_size=4 [07:13:13]MH_SAM_APDU [07:13:13]CAPDU: 80 0D 03 02 [07:13:13]Write to MH i2c: E2 08 00 A3 01 80 0D 03 02 00 00 00 00 1F [07:13:13]Write i2c OK [07:13:13]MH_I2C_Read... [07:13:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:13:13]Read from MH i2c: E2 [07:13:13]MH_I2C_Read... [07:13:13]Read from MH i2c: E2 0B 00 [07:13:13]MH_I2C_Read... [07:13:13]Read from MH i2c: E2 0B 00 A3 01 00 03 FF D7 46 74 EE B9 33 90 00 8D [07:13:13]RAPDU: 03 FF D7 46 74 EE B9 33 90 00 [07:13:13]wFMCommunicate OK [07:13:13]SAM_PROTO_SignData done [07:13:13]FM_MakeSignedData done [07:13:13]CreateOFDProtocolMessage [07:13:13]wFMCommunicate request_size=4 [07:13:13]MH_SAM_APDU [07:13:13]CAPDU: 80 11 00 00 [07:13:13]Write to MH i2c: E2 08 00 A4 01 80 11 00 00 00 00 00 00 1F [07:13:13]Write i2c OK [07:13:13]MH_I2C_Read... [07:13:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:13:13]Read from MH i2c: E2 [07:13:13]MH_I2C_Read... [07:13:13]Read from MH i2c: E2 17 00 [07:13:13]MH_I2C_Read... [07:13:13]Read from MH i2c: E2 17 00 A4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 73 [07:13:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:13:13]wFMCommunicate OK [07:13:13]CreateOFDProtocolMessage done [07:13:13]OFDSenderStorePacket 73165 [07:13:13]StoreOFDPacket docnum=73165 [07:13:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 1F 77 08 01 BC 3B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 88 7F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CD 1D 01 00 35 04 06 00 33 AF A2 BC FE 09 03 FF D7 46 74 EE B9 33 [07:13:13]CheckFolder [07:13:13]dirname=/storage/ofd_packets [07:13:13]CheckFolder done [07:13:13]ProducePacketName [07:13:13]name=ofd_packets/00073165 [07:13:13]NVStorageSaveData ofd_packets/00073165 [07:13:13]File name is /storage/ofd_packets/00073165 [07:13:13]Write 302 bytes [07:13:13]NVStorageSaveData done [07:13:13]OFDSenderStorePacket done [07:13:13]KKMCreateOFDPacket done [07:13:13]NVStorageSaveData kkm_last_timestamp [07:13:13]File name is /storage/kkm_last_timestamp [07:13:13]Write 4 bytes [07:13:13]NVStorageSaveData done [07:13:13]ExternCall_PrintAddStr [07:13:13]wPrintStart [07:13:13]Write to MH i2c: 01 00 00 A5 01 A6 [07:13:13]Write i2c OK [07:13:13]MH_I2C_Read... [07:13:13]Read from MH i2c: 01 [07:13:13]MH_I2C_Read... [07:13:13]Read from MH i2c: 01 07 00 [07:13:13]MH_I2C_Read... [07:13:13]Read from MH i2c: 01 07 00 A5 01 00 00 00 00 00 FF 0F BB [07:13:13]RasterBufferAndPrint [07:13:13]line Счет N : (1)952763 [07:13:13]line ИНН: 02508201610067 [07:13:13]line Контрольно-Кассовый Чек [07:13:13]line ПРОДАЖА [07:13:13]line ТРК (МРК, ГНК) : 43 [07:13:13]line Товар: 2710194210 [07:13:13]line ДТ(л)-К-5 [07:13:13]line 7.880 * 76.20 [07:13:13]line = 600.46 [07:13:13]line НДС 12% НСП 1% [07:13:13]line > о реализуемом товаре [07:13:13]line ОКРУГЛЕНИЕ: -0.46 [07:13:13]line ИТОГО: 600.00 [07:13:13]line Внесено: 600.00 [07:13:13]line СДАЧА: 0.00 [07:13:13]line НСП 1% : 5.31 [07:13:13]line НДС 12% : 63.77 [07:13:13]line Наличными: 600.00 [07:13:13]line Безнал.: 0.00 [07:13:13]line Место: АЗС № 113 "Партнер Нефть" [07:13:13]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [07:13:13]line СНО: Общий режим [07:13:13]line Чек 34 01.11.2024 07:13 [07:13:13]line Смена: 558 ФФД: 1.0 [07:13:13]line ЗНМ: 0300000087 [07:13:13]line РНМ: 0000000000091644 [07:13:13]line Версия ККМ: 001 [07:13:13]line ФМ: 0000000000874662 [07:13:13]line ФД: 73165 [07:13:13]line ФПД: 56829442588169 [07:13:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T071312&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73165&fm=56829442588169&tin=02508201610067®Number=0000000000091644&sum=60000 [07:13:13]written 0, free lines is 4095 [07:13:13]OFD Sender: Processing packet 73165 [packets to send 282, broken 281] [07:13:13]ProducePacketName [07:13:13]name=ofd_packets/00073165 [07:13:13]OFD Sender: To server: pG, [07:13:13]CommunicateWithHost lk.salyk.kg:30040 [07:13:13]ConnectInit lk.salyk.kg [07:13:14]recv_with_timeout no data received [07:13:14]Write to MH i2c: 01 00 00 D0 01 D1 [07:13:14]Write i2c OK [07:13:14]MH_I2C_Read... [07:13:14]Read from MH i2c: 01 [07:13:14]MH_I2C_Read... [07:13:14]Read from MH i2c: 01 07 00 [07:13:14]MH_I2C_Read... [07:13:14]Read from MH i2c: 01 07 00 D0 01 00 00 00 00 00 D8 0C BC [07:13:14]RasterBufferAndPrint [07:13:14]line [07:13:14]line [07:13:14]line [07:13:14]line [07:13:14]line [07:13:14]written 0, free lines is 3298 [07:13:14]MH_Cut [07:13:14]Write to MH i2c: D1 01 00 D7 01 01 AA [07:13:14]Write i2c OK [07:13:14]MH_I2C_Read... [07:13:14]Read from MH i2c: D1 [07:13:14]MH_I2C_Read... [07:13:14]Read from MH i2c: D1 01 00 [07:13:14]MH_I2C_Read... [07:13:14]Read from MH i2c: D1 01 00 D7 01 00 A9 [07:13:14]Write to MH i2c: 01 00 00 D8 01 D9 [07:13:14]Write i2c OK [07:13:14]MH_I2C_Read... [07:13:14]*** Cut start [07:13:14]*** Partial cut [07:13:14]*** CUTSNS_PIN = 1 [07:13:14]*** CUTSNS_PIN = 0 [07:13:15]*** Brake cut motor [07:13:15]Read from MH i2c: 01 [07:13:15]MH_I2C_Read... [07:13:15]*** Stop cut motor [07:13:15]*** Cut end [07:13:15]Read from MH i2c: 01 07 00 [07:13:15]MH_I2C_Read... [07:13:15]Read from MH i2c: 01 07 00 D8 01 00 00 00 00 00 FF 0F EE [07:13:15]process_action close_receipt done [07:13:15]requested_data is exist [07:13:15]produce_requested_data [07:13:15]requested_item fm.sn is exist - process it [07:13:15]wFMCommunicate request_size=4 [07:13:15]MH_SAM_APDU [07:13:15]CAPDU: 80 11 00 00 [07:13:15]Write to MH i2c: E2 08 00 D9 01 80 11 00 00 00 00 00 00 54 [07:13:15]Write i2c OK [07:13:15]MH_I2C_Read... [07:13:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:13:15]Read from MH i2c: E2 [07:13:15]MH_I2C_Read... [07:13:15]Read from MH i2c: E2 17 00 [07:13:15]MH_I2C_Read... [07:13:15]Read from MH i2c: E2 17 00 D9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A8 [07:13:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:13:15]wFMCommunicate OK [07:13:15]requested_item fd.num is exist - process it [07:13:15]SAM_PROTO_GetFieldsCounters [07:13:15]wFMCommunicate request_size=4 [07:13:15]MH_SAM_APDU [07:13:15]CAPDU: 80 13 00 00 [07:13:15]Write to MH i2c: E2 08 00 DA 01 80 13 00 00 00 00 00 00 57 [07:13:15]Write i2c OK [07:13:15]MH_I2C_Read... [07:13:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:13:15]Read from MH i2c: E2 [07:13:15]MH_I2C_Read... [07:13:15]Read from MH i2c: E2 62 00 [07:13:15]MH_I2C_Read... [07:13:15]Read from MH i2c: E2 62 00 DA 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 CD 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [07:13:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 CD 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:13:15]wFMCommunicate OK [07:13:15]SAM_PROTO_GetFieldsCounters done [07:13:15]requested_item shift.num is exist - process it [07:13:15]requested_item shift.opened is exist - process it [07:13:15]req_shift_opened [07:13:15]FM_GetShiftState [07:13:15]SAM_PROTO_GetShiftState [07:13:15]wFMCommunicate request_size=4 [07:13:15]MH_SAM_APDU [07:13:15]CAPDU: 80 13 01 00 [07:13:15]Write to MH i2c: E2 08 00 DB 01 80 13 01 00 00 00 00 00 59 [07:13:15]Write i2c OK [07:13:15]MH_I2C_Read... [07:13:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:13:15]Read from MH i2c: E2 [07:13:15]MH_I2C_Read... [07:13:15]Read from MH i2c: E2 0E 00 [07:13:15]MH_I2C_Read... [07:13:15]Read from MH i2c: E2 0E 00 DB 01 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 A0 [07:13:15]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [07:13:15]wFMCommunicate OK [07:13:15]SAM_PROTO_GetShiftState done [07:13:15]FM_GetShiftState done [07:13:15]req_shift_opened done [07:13:15]requested_item shift.open_date is exist - process it [07:13:15]req_shift_open_date [07:13:15]req_shift_open_date done [07:13:15]produce_requested_data done [07:13:15]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73165,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [07:13:15]process_action_free close_receipt [07:13:15]json_value_free [07:13:15]json_value_free done [07:13:15]process_json_proto returns [07:13:15]Send response to host [07:13:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73165,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [07:13:15]free response buf [07:13:15]execute_script done [07:13:15]execute_script returns [07:13:15]free content buf [07:13:15]Sock 9.Close socket [07:13:15]Sock 9.Thread stoped [07:13:19]Connected sock=11 [07:13:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 1F 77 08 01 BC 3B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 88 7F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CD 1D 01 00 35 04 06 00 33 AF A2 BC FE 09 03 FF D7 46 74 EE B9 33 [07:13:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 4C C4 47 00 D9 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CD 1D 01 00 F4 03 04 00 41 2A 24 67 B6 04 01 00 00 EE 03 84 FB 8E 1D C7 DF [07:13:21]CommunicateWithHost err = 0 [07:13:21]CheckOFDResponse [07:13:21]1017 (14) - 77093643461234 [07:13:21]1041 (16) - 0000000000874662 [07:13:21]1040 (4) - 73165 [07:13:21]1012 (4) - 01.11.2024 01:09 [07:13:21]1206 (1) - 0 [07:13:21]OFD Sender: Remove packet 73165 [07:13:21]ProducePacketName [07:13:21]name=ofd_packets/00073165 [07:13:21]NVStorageDeleteData [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:13]recv_with_timeout no data received [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:40]recv_with_timeout no data received [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:02]OFD Sender: No OFD packet to send [07:16:07]OFD Sender: No OFD packet to send [07:16:12]OFD Sender: No OFD packet to send [07:16:17]OFD Sender: No OFD packet to send [07:16:22]OFD Sender: No OFD packet to send [07:16:27]OFD Sender: No OFD packet to send [07:16:29]recv_with_timeout no data received [07:16:32]OFD Sender: No OFD packet to send [07:16:37]OFD Sender: No OFD packet to send [07:16:39]recv_with_timeout no data received [07:16:42]OFD Sender: No OFD packet to send [07:16:47]OFD Sender: No OFD packet to send [07:16:52]OFD Sender: No OFD packet to send [07:16:57]OFD Sender: No OFD packet to send [07:17:02]OFD Sender: No OFD packet to send [07:17:07]OFD Sender: No OFD packet to send [07:17:12]OFD Sender: No OFD packet to send [07:17:17]OFD Sender: No OFD packet to send [07:17:22]OFD Sender: No OFD packet to send [07:17:27]OFD Sender: No OFD packet to send [07:17:32]OFD Sender: No OFD packet to send [07:17:37]OFD Sender: No OFD packet to send [07:17:42]OFD Sender: No OFD packet to send [07:17:47]OFD Sender: No OFD packet to send [07:17:52]OFD Sender: No OFD packet to send [07:17:57]OFD Sender: No OFD packet to send [07:18:02]OFD Sender: No OFD packet to send [07:18:05]recv_with_timeout no data received [07:18:07]OFD Sender: No OFD packet to send [07:18:12]OFD Sender: No OFD packet to send [07:18:17]OFD Sender: No OFD packet to send [07:18:22]OFD Sender: No OFD packet to send [07:18:27]OFD Sender: No OFD packet to send [07:18:32]OFD Sender: No OFD packet to send [07:18:37]OFD Sender: No OFD packet to send [07:18:42]OFD Sender: No OFD packet to send [07:18:47]OFD Sender: No OFD packet to send [07:18:52]OFD Sender: No OFD packet to send [07:18:57]OFD Sender: No OFD packet to send [07:19:02]OFD Sender: No OFD packet to send [07:19:07]OFD Sender: No OFD packet to send [07:19:12]OFD Sender: No OFD packet to send [07:19:17]OFD Sender: No OFD packet to send [07:19:22]OFD Sender: No OFD packet to send [07:19:27]OFD Sender: No OFD packet to send [07:19:27]recv_with_timeout no data received [07:19:32]OFD Sender: No OFD packet to send [07:19:37]OFD Sender: No OFD packet to send [07:19:42]OFD Sender: No OFD packet to send [07:19:47]OFD Sender: No OFD packet to send [07:19:52]OFD Sender: No OFD packet to send [07:19:57]OFD Sender: No OFD packet to send [07:20:02]OFD Sender: No OFD packet to send [07:20:07]OFD Sender: No OFD packet to send [07:20:12]OFD Sender: No OFD packet to send [07:20:17]OFD Sender: No OFD packet to send [07:20:22]OFD Sender: No OFD packet to send [07:20:22]recv_with_timeout no data received [07:20:27]OFD Sender: No OFD packet to send [07:20:32]OFD Sender: No OFD packet to send [07:20:37]OFD Sender: No OFD packet to send [07:20:42]OFD Sender: No OFD packet to send [07:20:47]OFD Sender: No OFD packet to send [07:20:52]OFD Sender: No OFD packet to send [07:20:57]OFD Sender: No OFD packet to send [07:21:02]OFD Sender: No OFD packet to send [07:21:07]OFD Sender: No OFD packet to send [07:21:12]OFD Sender: No OFD packet to send [07:21:17]OFD Sender: No OFD packet to send [07:21:22]OFD Sender: No OFD packet to send [07:21:27]OFD Sender: No OFD packet to send [07:21:32]OFD Sender: No OFD packet to send [07:21:37]OFD Sender: No OFD packet to send [07:21:42]OFD Sender: No OFD packet to send [07:21:44]recv_with_timeout no data received [07:21:47]OFD Sender: No OFD packet to send [07:21:52]OFD Sender: No OFD packet to send [07:21:57]OFD Sender: No OFD packet to send [07:22:02]OFD Sender: No OFD packet to send [07:22:07]OFD Sender: No OFD packet to send [07:22:12]OFD Sender: No OFD packet to send [07:22:17]OFD Sender: No OFD packet to send [07:22:22]recv_with_timeout no data received [07:22:22]OFD Sender: No OFD packet to send [07:22:27]OFD Sender: No OFD packet to send [07:22:32]OFD Sender: No OFD packet to send [07:22:37]OFD Sender: No OFD packet to send [07:22:42]OFD Sender: No OFD packet to send [07:22:47]OFD Sender: No OFD packet to send [07:22:50]recv_with_timeout no data received [07:22:52]OFD Sender: No OFD packet to send [07:22:57]OFD Sender: No OFD packet to send [07:23:02]OFD Sender: No OFD packet to send [07:23:07]OFD Sender: No OFD packet to send [07:23:12]OFD Sender: No OFD packet to send [07:23:17]OFD Sender: No OFD packet to send [07:23:22]OFD Sender: No OFD packet to send [07:23:27]OFD Sender: No OFD packet to send [07:23:30]recv_with_timeout no data received [07:23:32]OFD Sender: No OFD packet to send [07:23:37]OFD Sender: No OFD packet to send [07:23:42]OFD Sender: No OFD packet to send [07:23:47]OFD Sender: No OFD packet to send [07:23:52]OFD Sender: No OFD packet to send [07:23:57]OFD Sender: No OFD packet to send [07:24:01]recv_with_timeout no data received [07:24:02]OFD Sender: No OFD packet to send [07:24:07]OFD Sender: No OFD packet to send [07:24:12]OFD Sender: No OFD packet to send [07:24:17]OFD Sender: No OFD packet to send [07:24:22]OFD Sender: No OFD packet to send [07:24:27]OFD Sender: No OFD packet to send [07:24:32]OFD Sender: No OFD packet to send [07:24:37]OFD Sender: No OFD packet to send [07:24:42]OFD Sender: No OFD packet to send [07:24:47]OFD Sender: No OFD packet to send [07:24:51]recv_with_timeout no data received [07:24:52]OFD Sender: No OFD packet to send [07:24:57]OFD Sender: No OFD packet to send [07:25:02]OFD Sender: No OFD packet to send [07:25:07]OFD Sender: No OFD packet to send [07:25:12]OFD Sender: No OFD packet to send [07:25:17]OFD Sender: No OFD packet to send [07:25:20]recv_with_timeout no data received [07:25:22]OFD Sender: No OFD packet to send [07:25:27]OFD Sender: No OFD packet to send [07:25:32]OFD Sender: No OFD packet to send [07:25:38]OFD Sender: No OFD packet to send [07:25:43]OFD Sender: No OFD packet to send [07:25:48]OFD Sender: No OFD packet to send [07:25:52]accept exits with 10 [07:25:52]New connection [07:25:52]New thread 3067624804 created [07:25:52]Thread 3067481444 joined [07:25:52]Waiting for new connection... [07:25:52] Sock 10.Parse request [07:25:52]Sock 10.Check first char [07:25:52]Sock 10.First char is OK [07:25:52]request: POST /json_proto HTTP/1.0 [07:25:52]Method: POST [07:25:52]URL: /json_proto [07:25:52]Method is POST - this is cgi request [07:25:52]url: /json_proto [07:25:52]query_string will be loaded in cgi processing [07:25:52]execute_cgi json_proto POST (null) [07:25:52]execute_cgi path=json_proto method=POST [07:25:52]POST find Content-Length [07:25:52]Host: 172.17.43.195:8080 [07:25:52]Content-Length: 824 [07:25:52]Content-Type: application/json [07:25:52] [07:25:52]POST finish read [07:25:52]Found Content-Length = 824 [07:25:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:25:52]execute_script... [07:25: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)952765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:25:52]POST & json_proto [07:25:52]process_json_proto [07:25:52]json parsed OK: [07:25:52]protocol is kg_v1.0 [07:25:52]action value=close_receipt [07:25:52]process_action close_receipt [07:25:52]cmd_close_receipt [07:25:52]MH_GetDate [07:25:52]Write to MH i2c: F0 00 00 DC 01 CC [07:25:52]Write i2c OK [07:25:52]MH_I2C_Read... [07:25:52]Read from MH i2c: F0 [07:25:52]MH_I2C_Read... [07:25:52]Read from MH i2c: F0 09 00 [07:25:52]MH_I2C_Read... [07:25:52]Read from MH i2c: F0 09 00 DC 01 00 80 82 24 67 74 2C AD 66 15 [07:25:52]GetLastDocTimeStamp 1730445192 [07:25:52]current date 1730445952 [07:25:52]FM_GetShiftState [07:25:52]SAM_PROTO_GetShiftState [07:25:52]wFMCommunicate request_size=4 [07:25:52]MH_SAM_APDU [07:25:52]CAPDU: 80 13 01 00 [07:25:52]Write to MH i2c: E2 08 00 DD 01 80 13 01 00 00 00 00 00 5B [07:25:52]Write i2c OK [07:25:52]MH_I2C_Read... [07:25:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:25:52]Read from MH i2c: E2 [07:25:52]MH_I2C_Read... [07:25:52]Read from MH i2c: E2 0E 00 [07:25:52]MH_I2C_Read... [07:25:52]Read from MH i2c: E2 0E 00 DD 01 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 A2 [07:25:52]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [07:25:52]wFMCommunicate OK [07:25:52]SAM_PROTO_GetShiftState done [07:25:52]FM_GetShiftState done [07:25:52]opened in 1730419605 [07:25:52]opened+sec_in_day 1730506005 [07:25:52]quantity*price = 300075 [07:25:52]sum+1 = 300077 [07:25:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.76 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.76 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 35 01.11.2024 07:25 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: Бакай банк ФМ: 0000000000874662 ФД: 73166 ФПД: 37658065332848 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T072552&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73166&fm=37658065332848&tin=02508201610067®Number=0000000000091644&sum=300076 [07:25:53]StoreToDocumentArchive [07:25:53]shift 558 fd 73166 [07:25:53]save to /storage/0558/doc_00073166 [07:25:53]save last doc name /storage/0558/doc_00073166 to /storage/kkm_last_doc_name [07:25:53]save OK [07:25:53]Clear old archive folders... [07:25:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:25:53]tlvbuf is 00F59590 [07:25:53]SAM_PROTO_ClearQueue [07:25:53]wFMCommunicate request_size=4 [07:25:53]MH_SAM_APDU [07:25:53]CAPDU: 80 09 00 00 [07:25:53]Write to MH i2c: E2 08 00 EA 01 80 09 00 00 00 00 00 00 5D [07:25:53]Write i2c OK [07:25:53]MH_I2C_Read... [07:25:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:25:53]Read from MH i2c: E2 [07:25:53]MH_I2C_Read... [07:25:53]Read from MH i2c: E2 03 00 [07:25:53]MH_I2C_Read... [07:25:53]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [07:25:53]RAPDU: 90 00 [07:25:53]wFMCommunicate OK [07:25:53]SAM_PROTO_ClearQueue done [07:25:53]KKMCreateOFDPacket [07:25:53]OFDProtocolAddRootSTLVToBuf [07:25:53]FM_MakeSignedData [07:25:53]FM_MakeSignedData [07:25:53]SAM_PROTO_SignData [07:25:53]wFMCommunicate request_size=4 [07:25:53]MH_SAM_APDU [07:25:53]CAPDU: 80 0D 01 02 [07:25:53]Write to MH i2c: E2 08 00 EB 01 80 0D 01 02 00 00 00 00 65 [07:25:53]Write i2c OK [07:25:53]MH_I2C_Read... [07:25:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:25:53]Read from MH i2c: E2 [07:25:53]MH_I2C_Read... [07:25:53]Read from MH i2c: E2 03 00 [07:25:53]MH_I2C_Read... [07:25:53]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [07:25:53]RAPDU: 90 00 [07:25:53]wFMCommunicate OK [07:25:53]wFMCommunicate request_size=255 [07:25:53]MH_SAM_APDU [07:25:53]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 80 82 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CE 1D 01 00 35 04 06 00 [07:25:53]Write to MH i2c: E2 02 01 EC 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 80 82 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CE 1D 01 00 35 04 06 00 00 00 6F [07:25:53]Write i2c OK [07:25:53]MH_I2C_Read... [07:25:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:25:53]Read from MH i2c: E2 [07:25:53]MH_I2C_Read... [07:25:53]Read from MH i2c: E2 03 00 [07:25:53]MH_I2C_Read... [07:25:53]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [07:25:53]RAPDU: 90 00 [07:25:53]wFMCommunicate OK [07:25:53]wFMCommunicate request_size=11 [07:25:53]MH_SAM_APDU [07:25:53]CAPDU: 80 0D 02 02 06 22 3F F3 9B 6A 70 [07:25:53]Write to MH i2c: E2 0E 00 ED 01 80 0D 02 02 06 00 22 3F F3 9B 6A 70 00 00 3D [07:25:53]Write i2c OK [07:25:53]MH_I2C_Read... [07:25:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:25:53]Read from MH i2c: E2 [07:25:53]MH_I2C_Read... [07:25:53]Read from MH i2c: E2 03 00 [07:25:53]MH_I2C_Read... [07:25:53]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [07:25:53]RAPDU: 90 00 [07:25:53]wFMCommunicate OK [07:25:53]wFMCommunicate request_size=4 [07:25:53]MH_SAM_APDU [07:25:53]CAPDU: 80 0D 03 02 [07:25:53]Write to MH i2c: E2 08 00 EE 01 80 0D 03 02 00 00 00 00 6A [07:25:53]Write i2c OK [07:25:53]MH_I2C_Read... [07:25:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:25:54]Read from MH i2c: E2 [07:25:54]MH_I2C_Read... [07:25:54]Read from MH i2c: E2 0B 00 [07:25:54]MH_I2C_Read... [07:25:54]Read from MH i2c: E2 0B 00 EE 01 00 DD 5C 8D 06 46 3F BB 2C 90 00 A3 [07:25:54]RAPDU: DD 5C 8D 06 46 3F BB 2C 90 00 [07:25:54]wFMCommunicate OK [07:25:54]SAM_PROTO_SignData done [07:25:54]FM_MakeSignedData done [07:25:54]CreateOFDProtocolMessage [07:25:54]wFMCommunicate request_size=4 [07:25:54]MH_SAM_APDU [07:25:54]CAPDU: 80 11 00 00 [07:25:54]Write to MH i2c: E2 08 00 EF 01 80 11 00 00 00 00 00 00 6A [07:25:54]Write i2c OK [07:25:54]MH_I2C_Read... [07:25:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:25:54]Read from MH i2c: E2 [07:25:54]MH_I2C_Read... [07:25:54]Read from MH i2c: E2 17 00 [07:25:54]MH_I2C_Read... [07:25:54]Read from MH i2c: E2 17 00 EF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 BE [07:25:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:25:54]wFMCommunicate OK [07:25:54]CreateOFDProtocolMessage done [07:25:54]OFDSenderStorePacket 73166 [07:25:54]StoreOFDPacket docnum=73166 [07:25:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 FE BE 08 01 FA A9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 80 82 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CE 1D 01 00 35 04 06 00 22 3F F3 9B 6A 70 DD 5C 8D 06 46 3F BB 2C [07:25:54]CheckFolder [07:25:54]dirname=/storage/ofd_packets [07:25:54]CheckFolder done [07:25:54]ProducePacketName [07:25:54]name=ofd_packets/00073166 [07:25:54]NVStorageSaveData ofd_packets/00073166 [07:25:54]File name is /storage/ofd_packets/00073166 [07:25:54]Write 302 bytes [07:25:54]NVStorageSaveData done [07:25:54]OFDSenderStorePacket done [07:25:54]KKMCreateOFDPacket done [07:25:54]NVStorageSaveData kkm_last_timestamp [07:25:54]File name is /storage/kkm_last_timestamp [07:25:54]Write 4 bytes [07:25:54]NVStorageSaveData done [07:25:54]ExternCall_PrintAddStr [07:25:54]wPrintStart [07:25:54]Write to MH i2c: 01 00 00 F0 01 F1 [07:25:54]Write i2c OK [07:25:54]MH_I2C_Read... [07:25:54]Read from MH i2c: 01 [07:25:54]MH_I2C_Read... [07:25:54]Read from MH i2c: 01 07 00 [07:25:54]MH_I2C_Read... [07:25:54]Read from MH i2c: 01 07 00 F0 01 00 00 00 00 00 FF 0F 06 [07:25:54]RasterBufferAndPrint [07:25:54]line Счет N : (1)952765 [07:25:54]line ИНН: 02508201610067 [07:25:54]line Контрольно-Кассовый Чек [07:25:54]line ПРОДАЖА [07:25:54]line ТРК (МРК, ГНК) : 22 [07:25:54]line Товар: 2710194210 [07:25:54]line ДТ(л)-К-5 [07:25:54]line 39.380 * 76.20 [07:25:54]line = 3000.76 [07:25:54]line НДС 12% НСП 1% [07:25:54]line > о реализуемом товаре [07:25:54]line ИТОГО: 3000.76 [07:25:54]line НСП 1% : 26.55 [07:25:54]line НДС 12% : 318.66 [07:25:54]line Наличными: 0.00 [07:25:54]line Безнал.: 3000.76 [07:25:54]line Место: АЗС № 113 "Партнер Нефть" [07:25:54]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [07:25:54]line СНО: Общий режим [07:25:54]line Чек 35 01.11.2024 07:25 [07:25:54]line Смена: 558 ФФД: 1.0 [07:25:54]line ЗНМ: 0300000087 [07:25:54]line РНМ: 0000000000091644 [07:25:54]line Версия ККМ: 001 [07:25:54]line Платежная система: Бакай банк [07:25:54]line ФМ: 0000000000874662 [07:25:54]line ФД: 73166 [07:25:54]line ФПД: 37658065332848 [07:25:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T072552&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73166&fm=37658065332848&tin=02508201610067®Number=0000000000091644&sum=300076 [07:25:54]OFD Sender: Processing packet 73166 [packets to send 282, broken 281] [07:25:54]ProducePacketName [07:25:54]name=ofd_packets/00073166 [07:25:54]OFD Sender: To server: pG, [07:25:54]CommunicateWithHost lk.salyk.kg:30040 [07:25:54]ConnectInit lk.salyk.kg [07:25:54]written 0, free lines is 4095 [07:25:54]Write to MH i2c: 01 00 00 1A 02 1C [07:25:54]Write i2c OK [07:25:54]MH_I2C_Read... [07:25:54]Read from MH i2c: 01 [07:25:54]MH_I2C_Read... [07:25:54]Read from MH i2c: 01 07 00 [07:25:54]MH_I2C_Read... [07:25:54]Read from MH i2c: 01 07 00 1A 02 00 00 00 00 00 F5 0C 24 [07:25:54]RasterBufferAndPrint [07:25:54]line [07:25:54]line [07:25:54]line [07:25:54]line [07:25:54]line [07:25:54]written 0, free lines is 3320 [07:25:54]MH_Cut [07:25:54]Write to MH i2c: D1 01 00 21 02 01 F5 [07:25:54]Write i2c OK [07:25:54]MH_I2C_Read... [07:25:54]Read from MH i2c: D1 [07:25:54]MH_I2C_Read... [07:25:54]Read from MH i2c: D1 01 00 [07:25:54]MH_I2C_Read... [07:25:54]Read from MH i2c: D1 01 00 21 02 00 F4 [07:25:54]Write to MH i2c: 01 00 00 22 02 24 [07:25:54]Write i2c OK [07:25:54]MH_I2C_Read... [07:25:55]*** Cut start [07:25:55]*** Partial cut [07:25:55]*** CUTSNS_PIN = 1 [07:25:55]*** CUTSNS_PIN = 0 [07:25:55]*** Brake cut motor [07:25:56]Read from MH i2c: 01 [07:25:56]MH_I2C_Read... [07:25:56]*** Stop cut motor [07:25:56]*** Cut end [07:25:56]Read from MH i2c: 01 07 00 [07:25:56]MH_I2C_Read... [07:25:56]Read from MH i2c: 01 07 00 22 02 00 00 00 00 00 FF 0F 39 [07:25:56]process_action close_receipt done [07:25:56]requested_data is exist [07:25:56]produce_requested_data [07:25:56]requested_item fm.sn is exist - process it [07:25:56]wFMCommunicate request_size=4 [07:25:56]MH_SAM_APDU [07:25:56]CAPDU: 80 11 00 00 [07:25:56]Write to MH i2c: E2 08 00 23 02 80 11 00 00 00 00 00 00 9F [07:25:56]Write i2c OK [07:25:56]MH_I2C_Read... [07:25:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:25:56]Read from MH i2c: E2 [07:25:56]MH_I2C_Read... [07:25:56]Read from MH i2c: E2 17 00 [07:25:56]MH_I2C_Read... [07:25:56]Read from MH i2c: E2 17 00 23 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 F3 [07:25:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:25:56]wFMCommunicate OK [07:25:56]requested_item fd.num is exist - process it [07:25:56]SAM_PROTO_GetFieldsCounters [07:25:56]wFMCommunicate request_size=4 [07:25:56]MH_SAM_APDU [07:25:56]CAPDU: 80 13 00 00 [07:25:56]Write to MH i2c: E2 08 00 24 02 80 13 00 00 00 00 00 00 A2 [07:25:56]Write i2c OK [07:25:56]MH_I2C_Read... [07:25:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:25:56]Read from MH i2c: E2 [07:25:56]MH_I2C_Read... [07:25:56]Read from MH i2c: E2 62 00 [07:25:56]MH_I2C_Read... [07:25:56]Read from MH i2c: E2 62 00 24 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 CE 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [07:25:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 CE 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:25:56]wFMCommunicate OK [07:25:56]SAM_PROTO_GetFieldsCounters done [07:25:56]requested_item shift.num is exist - process it [07:25:56]requested_item shift.opened is exist - process it [07:25:56]req_shift_opened [07:25:56]FM_GetShiftState [07:25:56]SAM_PROTO_GetShiftState [07:25:56]wFMCommunicate request_size=4 [07:25:56]MH_SAM_APDU [07:25:56]CAPDU: 80 13 01 00 [07:25:56]Write to MH i2c: E2 08 00 25 02 80 13 01 00 00 00 00 00 A4 [07:25:56]Write i2c OK [07:25:56]MH_I2C_Read... [07:25:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:25:56]Read from MH i2c: E2 [07:25:56]MH_I2C_Read... [07:25:56]Read from MH i2c: E2 0E 00 [07:25:56]MH_I2C_Read... [07:25:56]Read from MH i2c: E2 0E 00 25 02 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 EB [07:25:56]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [07:25:56]wFMCommunicate OK [07:25:56]SAM_PROTO_GetShiftState done [07:25:56]FM_GetShiftState done [07:25:56]req_shift_opened done [07:25:56]requested_item shift.open_date is exist - process it [07:25:56]req_shift_open_date [07:25:56]req_shift_open_date done [07:25:56]produce_requested_data done [07:25:56]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73166,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [07:25:56]process_action_free close_receipt [07:25:56]json_value_free [07:25:56]json_value_free done [07:25:56]process_json_proto returns [07:25:56]Send response to host [07:25:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73166,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [07:25:56]free response buf [07:25:56]execute_script done [07:25:56]execute_script returns [07:25:56]free content buf [07:25:56]Sock 10.Close socket [07:25:56]Sock 10.Thread stoped [07:25:58]Connected sock=11 [07:25:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 FE BE 08 01 FA A9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 80 82 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CE 1D 01 00 35 04 06 00 22 3F F3 9B 6A 70 DD 5C 8D 06 46 3F BB 2C [07:25:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 85 52 47 00 33 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CE 1D 01 00 F4 03 04 00 38 2D 24 67 B6 04 01 00 00 CB FD AB AE 13 E3 85 CE [07:25:59]CommunicateWithHost err = 0 [07:25:59]CheckOFDResponse [07:25:59]1017 (14) - 77093643461234 [07:25:59]1041 (16) - 0000000000874662 [07:25:59]1040 (4) - 73166 [07:25:59]1012 (4) - 01.11.2024 01:22 [07:25:59]1206 (1) - 0 [07:25:59]OFD Sender: Remove packet 73166 [07:25:59]ProducePacketName [07:25:59]name=ofd_packets/00073166 [07:25:59]NVStorageDeleteData [07:25:59]OFD Sender: No OFD packet to send [07:26:04]OFD Sender: No OFD packet to send [07:26:09]OFD Sender: No OFD packet to send [07:26:14]OFD Sender: No OFD packet to send [07:26:19]OFD Sender: No OFD packet to send [07:26:24]OFD Sender: No OFD packet to send [07:26:29]recv_with_timeout no data received [07:26:29]OFD Sender: No OFD packet to send [07:26:34]OFD Sender: No OFD packet to send [07:26:39]OFD Sender: No OFD packet to send [07:26:44]OFD Sender: No OFD packet to send [07:26:49]OFD Sender: No OFD packet to send [07:26:54]OFD Sender: No OFD packet to send [07:26:59]OFD Sender: No OFD packet to send [07:26:59]recv_with_timeout no data received [07:27:04]OFD Sender: No OFD packet to send [07:27:09]OFD Sender: No OFD packet to send [07:27:14]OFD Sender: No OFD packet to send [07:27:19]OFD Sender: No OFD packet to send [07:27:24]OFD Sender: No OFD packet to send [07:27:29]OFD Sender: No OFD packet to send [07:27:34]OFD Sender: No OFD packet to send [07:27:39]OFD Sender: No OFD packet to send [07:27:41]recv_with_timeout no data received [07:27:44]OFD Sender: No OFD packet to send [07:27:49]OFD Sender: No OFD packet to send [07:27:54]OFD Sender: No OFD packet to send [07:27:59]OFD Sender: No OFD packet to send [07:28:04]OFD Sender: No OFD packet to send [07:28:08]recv_with_timeout no data received [07:28:09]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:25]accept exits with 7 [07:28:25]New connection [07:28:25]New thread 3067481444 created [07:28:25]Thread 3067624804 joined [07:28:25]Waiting for new connection... [07:28:25] Sock 7.Parse request [07:28:25]Sock 7.Check first char [07:28:25]Sock 7.First char is OK [07:28:25]request: POST /json_proto HTTP/1.0 [07:28:25]Method: POST [07:28:25]URL: /json_proto [07:28:25]Method is POST - this is cgi request [07:28:25]url: /json_proto [07:28:25]query_string will be loaded in cgi processing [07:28:25]execute_cgi json_proto POST (null) [07:28:25]execute_cgi path=json_proto method=POST [07:28:25]POST find Content-Length [07:28:25]Host: 172.17.43.195:8080 [07:28:25]Content-Length: 663 [07:28:25]Content-Type: application/json [07:28:25] [07:28:25]POST finish read [07:28:25]Found Content-Length = 663 [07:28:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:28:25]execute_script... [07:28: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)952766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:28:25]POST & json_proto [07:28:25]process_json_proto [07:28:25]json parsed OK: [07:28:25]protocol is kg_v1.0 [07:28:25]action value=close_receipt [07:28:25]process_action close_receipt [07:28:25]cmd_close_receipt [07:28:25]MH_GetDate [07:28:25]Write to MH i2c: F0 00 00 26 02 17 [07:28:25]Write i2c OK [07:28:25]MH_I2C_Read... [07:28:25]Read from MH i2c: F0 [07:28:25]MH_I2C_Read... [07:28:25]Read from MH i2c: F0 09 00 [07:28:25]MH_I2C_Read... [07:28:25]Read from MH i2c: F0 09 00 26 02 00 19 83 24 67 74 2C AD 66 FA [07:28:25]GetLastDocTimeStamp 1730445952 [07:28:25]current date 1730446105 [07:28:25]FM_GetShiftState [07:28:25]SAM_PROTO_GetShiftState [07:28:25]wFMCommunicate request_size=4 [07:28:25]MH_SAM_APDU [07:28:25]CAPDU: 80 13 01 00 [07:28:25]Write to MH i2c: E2 08 00 27 02 80 13 01 00 00 00 00 00 A6 [07:28:25]Write i2c OK [07:28:25]MH_I2C_Read... [07:28:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:28:25]Read from MH i2c: E2 [07:28:25]MH_I2C_Read... [07:28:25]Read from MH i2c: E2 0E 00 [07:28:25]MH_I2C_Read... [07:28:25]Read from MH i2c: E2 0E 00 27 02 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 ED [07:28:25]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [07:28:25]wFMCommunicate OK [07:28:25]SAM_PROTO_GetShiftState done [07:28:25]FM_GetShiftState done [07:28:25]opened in 1730419605 [07:28:25]opened+sec_in_day 1730506005 [07:28:25]quantity*price = 100000 [07:28:25]sum+1 = 100002 [07:28:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 36 01.11.2024 07:28 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73167 ФПД: 115766547462270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T072825&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73167&fm=115766547462270&tin=02508201610067®Number=0000000000091644&sum=100000 [07:28:26]StoreToDocumentArchive [07:28:26]shift 558 fd 73167 [07:28:26]save to /storage/0558/doc_00073167 [07:28:26]save last doc name /storage/0558/doc_00073167 to /storage/kkm_last_doc_name [07:28:26]save OK [07:28:26]Clear old archive folders... [07:28:26]ProcessDocumentItem done err = 0, tmpTLVsize=244 [07:28:26]tlvbuf is B6F4C8A0 [07:28:26]SAM_PROTO_ClearQueue [07:28:26]wFMCommunicate request_size=4 [07:28:26]MH_SAM_APDU [07:28:26]CAPDU: 80 09 00 00 [07:28:26]Write to MH i2c: E2 08 00 34 02 80 09 00 00 00 00 00 00 A8 [07:28:26]Write i2c OK [07:28:26]MH_I2C_Read... [07:28:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:28:26]Read from MH i2c: E2 [07:28:26]MH_I2C_Read... [07:28:26]Read from MH i2c: E2 03 00 [07:28:26]MH_I2C_Read... [07:28:26]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [07:28:26]RAPDU: 90 00 [07:28:26]wFMCommunicate OK [07:28:26]SAM_PROTO_ClearQueue done [07:28:26]KKMCreateOFDPacket [07:28:26]OFDProtocolAddRootSTLVToBuf [07:28:26]FM_MakeSignedData [07:28:26]FM_MakeSignedData [07:28:26]SAM_PROTO_SignData [07:28:26]wFMCommunicate request_size=4 [07:28:26]MH_SAM_APDU [07:28:26]CAPDU: 80 0D 01 02 [07:28:26]Write to MH i2c: E2 08 00 35 02 80 0D 01 02 00 00 00 00 B0 [07:28:26]Write i2c OK [07:28:26]MH_I2C_Read... [07:28:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:28:26]Read from MH i2c: E2 [07:28:26]MH_I2C_Read... [07:28:26]Read from MH i2c: E2 03 00 [07:28:26]MH_I2C_Read... [07:28:26]Read from MH i2c: E2 03 00 35 02 00 90 00 AB [07:28:26]RAPDU: 90 00 [07:28:26]wFMCommunicate OK [07:28:26]wFMCommunicate request_size=253 [07:28:26]MH_SAM_APDU [07:28:26]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 19 83 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CF 1D 01 00 35 04 06 00 69 49 FF F0 38 7E [07:28:26]Write to MH i2c: E2 00 01 36 02 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 19 83 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CF 1D 01 00 35 04 06 00 69 49 FF F0 38 7E 00 00 9C [07:28:26]Write i2c OK [07:28:26]MH_I2C_Read... [07:28:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:28:26]Read from MH i2c: E2 [07:28:26]MH_I2C_Read... [07:28:26]Read from MH i2c: E2 03 00 [07:28:26]MH_I2C_Read... [07:28:26]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [07:28:26]RAPDU: 90 00 [07:28:26]wFMCommunicate OK [07:28:26]wFMCommunicate request_size=4 [07:28:26]MH_SAM_APDU [07:28:26]CAPDU: 80 0D 03 02 [07:28:26]Write to MH i2c: E2 08 00 37 02 80 0D 03 02 00 00 00 00 B4 [07:28:26]Write i2c OK [07:28:26]MH_I2C_Read... [07:28:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:28:27]Read from MH i2c: E2 [07:28:27]MH_I2C_Read... [07:28:27]Read from MH i2c: E2 0B 00 [07:28:27]MH_I2C_Read... [07:28:27]Read from MH i2c: E2 0B 00 37 02 00 90 CE 9D 51 3F F1 4D 95 90 00 13 [07:28:27]RAPDU: 90 CE 9D 51 3F F1 4D 95 90 00 [07:28:27]wFMCommunicate OK [07:28:27]SAM_PROTO_SignData done [07:28:27]FM_MakeSignedData done [07:28:27]CreateOFDProtocolMessage [07:28:27]wFMCommunicate request_size=4 [07:28:27]MH_SAM_APDU [07:28:27]CAPDU: 80 11 00 00 [07:28:27]Write to MH i2c: E2 08 00 38 02 80 11 00 00 00 00 00 00 B4 [07:28:27]Write i2c OK [07:28:27]MH_I2C_Read... [07:28:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:28:27]Read from MH i2c: E2 [07:28:27]MH_I2C_Read... [07:28:27]Read from MH i2c: E2 17 00 [07:28:27]MH_I2C_Read... [07:28:27]Read from MH i2c: E2 17 00 38 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 08 [07:28:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:28:27]wFMCommunicate OK [07:28:27]CreateOFDProtocolMessage done [07:28:27]OFDSenderStorePacket 73167 [07:28:27]StoreOFDPacket docnum=73167 [07:28:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 EA E8 00 01 79 42 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 19 83 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CF 1D 01 00 35 04 06 00 69 49 FF F0 38 7E 90 CE 9D 51 3F F1 4D 95 [07:28:27]CheckFolder [07:28:27]dirname=/storage/ofd_packets [07:28:27]CheckFolder done [07:28:27]ProducePacketName [07:28:27]name=ofd_packets/00073167 [07:28:27]NVStorageSaveData ofd_packets/00073167 [07:28:27]File name is /storage/ofd_packets/00073167 [07:28:27]Write 294 bytes [07:28:27]NVStorageSaveData done [07:28:27]OFDSenderStorePacket done [07:28:27]KKMCreateOFDPacket done [07:28:27]NVStorageSaveData kkm_last_timestamp [07:28:27]File name is /storage/kkm_last_timestamp [07:28:27]Write 4 bytes [07:28:27]NVStorageSaveData done [07:28:27]ExternCall_PrintAddStr [07:28:27]wPrintStart [07:28:27]Write to MH i2c: 01 00 00 39 02 3B [07:28:27]Write i2c OK [07:28:27]MH_I2C_Read... [07:28:27]Read from MH i2c: 01 [07:28:27]MH_I2C_Read... [07:28:27]Read from MH i2c: 01 07 00 [07:28:27]MH_I2C_Read... [07:28:27]Read from MH i2c: 01 07 00 39 02 00 00 00 00 00 FF 0F 50 [07:28:27]RasterBufferAndPrint [07:28:27]line Счет N : (1)952766 [07:28:27]line ИНН: 02508201610067 [07:28:27]line Контрольно-Кассовый Чек [07:28:27]line ПРОДАЖА [07:28:27]line ТРК (МРК, ГНК) : 51 [07:28:27]line Товар: 50.50.0 [07:28:27]line Super 92 [07:28:27]line 14.620 * 68.40 [07:28:27]line = 1000.01 [07:28:27]line НДС 12% НСП 1% [07:28:27]line > о реализуемом товаре [07:28:27]line ОКРУГЛЕНИЕ: -0.01 [07:28:27]line ИТОГО: 1000.00 [07:28:27]line Внесено: 1000.00 [07:28:27]line СДАЧА: 0.00 [07:28:27]line НСП 1% : 8.85 [07:28:27]line НДС 12% : 106.20 [07:28:27]line Наличными: 1000.00 [07:28:27]line Безнал.: 0.00 [07:28:27]line Место: АЗС № 113 "Партнер Нефть" [07:28:27]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [07:28:27]line СНО: Общий режим [07:28:27]line Чек 36 01.11.2024 07:28 [07:28:27]line Смена: 558 ФФД: 1.0 [07:28:27]line ЗНМ: 0300000087 [07:28:27]line РНМ: 0000000000091644 [07:28:27]line Версия ККМ: 001 [07:28:27]line ФМ: 0000000000874662 [07:28:27]line ФД: 73167 [07:28:27]line ФПД: 115766547462270 [07:28:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T072825&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73167&fm=115766547462270&tin=02508201610067®Number=0000000000091644&sum=100000 [07:28:27]OFD Sender: Processing packet 73167 [packets to send 282, broken 281] [07:28:27]ProducePacketName [07:28:27]name=ofd_packets/00073167 [07:28:27]OFD Sender: To server: pG, [07:28:27]CommunicateWithHost lk.salyk.kg:30040 [07:28:27]ConnectInit lk.salyk.kg [07:28:27]written 0, free lines is 4095 [07:28:27]Write to MH i2c: 01 00 00 64 02 66 [07:28:27]Write i2c OK [07:28:27]MH_I2C_Read... [07:28:27]Read from MH i2c: 01 [07:28:27]MH_I2C_Read... [07:28:27]Read from MH i2c: 01 07 00 [07:28:27]MH_I2C_Read... [07:28:27]Read from MH i2c: 01 07 00 64 02 00 00 00 00 00 DD 0C 56 [07:28:27]RasterBufferAndPrint [07:28:27]line [07:28:27]line [07:28:27]line [07:28:27]line [07:28:27]line [07:28:27]written 0, free lines is 3299 [07:28:27]MH_Cut [07:28:27]Write to MH i2c: D1 01 00 6B 02 01 3F [07:28:27]Write i2c OK [07:28:27]MH_I2C_Read... [07:28:27]Read from MH i2c: D1 [07:28:27]MH_I2C_Read... [07:28:27]Read from MH i2c: D1 01 00 [07:28:27]MH_I2C_Read... [07:28:27]Read from MH i2c: D1 01 00 6B 02 00 3E [07:28:27]Write to MH i2c: 01 00 00 6C 02 6E [07:28:27]Write i2c OK [07:28:27]MH_I2C_Read... [07:28:28]*** Cut start [07:28:28]*** Partial cut [07:28:28]*** CUTSNS_PIN = 1 [07:28:28]*** CUTSNS_PIN = 0 [07:28:28]*** Brake cut motor [07:28:29]Read from MH i2c: 01 [07:28:29]MH_I2C_Read... [07:28:29]*** Stop cut motor [07:28:29]*** Cut end [07:28:29]Read from MH i2c: 01 07 00 [07:28:29]MH_I2C_Read... [07:28:29]Read from MH i2c: 01 07 00 6C 02 00 00 00 00 00 FF 0F 83 [07:28:29]process_action close_receipt done [07:28:29]requested_data is exist [07:28:29]produce_requested_data [07:28:29]requested_item fm.sn is exist - process it [07:28:29]wFMCommunicate request_size=4 [07:28:29]MH_SAM_APDU [07:28:29]CAPDU: 80 11 00 00 [07:28:29]Write to MH i2c: E2 08 00 6D 02 80 11 00 00 00 00 00 00 E9 [07:28:29]Write i2c OK [07:28:29]MH_I2C_Read... [07:28:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:28:29]Read from MH i2c: E2 [07:28:29]MH_I2C_Read... [07:28:29]Read from MH i2c: E2 17 00 [07:28:29]MH_I2C_Read... [07:28:29]Read from MH i2c: E2 17 00 6D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 3D [07:28:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:28:29]wFMCommunicate OK [07:28:29]requested_item fd.num is exist - process it [07:28:29]SAM_PROTO_GetFieldsCounters [07:28:29]wFMCommunicate request_size=4 [07:28:29]MH_SAM_APDU [07:28:29]CAPDU: 80 13 00 00 [07:28:29]Write to MH i2c: E2 08 00 6E 02 80 13 00 00 00 00 00 00 EC [07:28:29]Write i2c OK [07:28:29]MH_I2C_Read... [07:28:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:28:29]Read from MH i2c: E2 [07:28:29]MH_I2C_Read... [07:28:29]Read from MH i2c: E2 62 00 [07:28:29]MH_I2C_Read... [07:28:29]Read from MH i2c: E2 62 00 6E 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 CF 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [07:28:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 CF 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:28:29]wFMCommunicate OK [07:28:29]SAM_PROTO_GetFieldsCounters done [07:28:29]requested_item shift.num is exist - process it [07:28:29]requested_item shift.opened is exist - process it [07:28:29]req_shift_opened [07:28:29]FM_GetShiftState [07:28:29]SAM_PROTO_GetShiftState [07:28:29]wFMCommunicate request_size=4 [07:28:29]MH_SAM_APDU [07:28:29]CAPDU: 80 13 01 00 [07:28:29]Write to MH i2c: E2 08 00 6F 02 80 13 01 00 00 00 00 00 EE [07:28:29]Write i2c OK [07:28:29]MH_I2C_Read... [07:28:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:28:29]Read from MH i2c: E2 [07:28:29]MH_I2C_Read... [07:28:29]Read from MH i2c: E2 0E 00 [07:28:29]MH_I2C_Read... [07:28:29]Read from MH i2c: E2 0E 00 6F 02 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 35 [07:28:29]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [07:28:29]wFMCommunicate OK [07:28:29]SAM_PROTO_GetShiftState done [07:28:29]FM_GetShiftState done [07:28:29]req_shift_opened done [07:28:29]requested_item shift.open_date is exist - process it [07:28:29]req_shift_open_date [07:28:29]req_shift_open_date done [07:28:29]produce_requested_data done [07:28:29]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73167,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [07:28:29]process_action_free close_receipt [07:28:29]json_value_free [07:28:29]json_value_free done [07:28:29]process_json_proto returns [07:28:29]Send response to host [07:28:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73167,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [07:28:29]free response buf [07:28:29]execute_script done [07:28:29]execute_script returns [07:28:29]free content buf [07:28:29]Sock 7.Close socket [07:28:29]Sock 7.Thread stoped [07:28:30]Connected sock=11 [07:28:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 EA E8 00 01 79 42 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 19 83 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CF 1D 01 00 35 04 06 00 69 49 FF F0 38 7E 90 CE 9D 51 3F F1 4D 95 [07:28:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 B4 21 47 00 63 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 34 36 36 32 10 04 04 00 CF 1D 01 00 F4 03 04 00 CF 2D 24 67 B6 04 01 00 00 F8 47 92 70 3D 32 3C FA [07:28:30]CommunicateWithHost err = 0 [07:28:30]CheckOFDResponse [07:28:30]1017 (14) - 77093643461234 [07:28:30]1041 (16) - 0000000000874662 [07:28:30]1040 (4) - 73167 [07:28:30]1012 (4) - 01.11.2024 01:24 [07:28:30]1206 (1) - 0 [07:28:30]OFD Sender: Remove packet 73167 [07:28:30]ProducePacketName [07:28:30]name=ofd_packets/00073167 [07:28:30]NVStorageDeleteData [07:28:31]OFD Sender: No OFD packet to send [07:28:36]OFD Sender: No OFD packet to send [07:28:41]OFD Sender: No OFD packet to send [07:28:46]OFD Sender: No OFD packet to send [07:28:47]recv_with_timeout no data received [07:28:51]OFD Sender: No OFD packet to send [07:28:56]OFD Sender: No OFD packet to send [07:29:01]OFD Sender: No OFD packet to send [07:29:06]OFD Sender: No OFD packet to send [07:29:11]OFD Sender: No OFD packet to send [07:29:16]OFD Sender: No OFD packet to send [07:29:21]OFD Sender: No OFD packet to send [07:29:26]OFD Sender: No OFD packet to send [07:29:31]OFD Sender: No OFD packet to send [07:29:36]OFD Sender: No OFD packet to send [07:29:41]OFD Sender: No OFD packet to send [07:29:46]OFD Sender: No OFD packet to send [07:29:51]OFD Sender: No OFD packet to send [07:29:56]OFD Sender: No OFD packet to send [07:30:01]OFD Sender: No OFD packet to send [07:30:06]OFD Sender: No OFD packet to send [07:30:11]OFD Sender: No OFD packet to send [07:30:16]OFD Sender: No OFD packet to send [07:30:21]OFD Sender: No OFD packet to send [07:30:26]OFD Sender: No OFD packet to send [07:30:31]OFD Sender: No OFD packet to send [07:30:36]OFD Sender: No OFD packet to send [07:30:41]OFD Sender: No OFD packet to send [07:30:46]OFD Sender: No OFD packet to send [07:30:51]OFD Sender: No OFD packet to send [07:30:56]OFD Sender: No OFD packet to send [07:30:59]recv_with_timeout no data received [07:31:01]OFD Sender: No OFD packet to send [07:31:06]OFD Sender: No OFD packet to send [07:31:11]OFD Sender: No OFD packet to send [07:31:16]OFD Sender: No OFD packet to send [07:31:21]OFD Sender: No OFD packet to send [07:31:26]OFD Sender: No OFD packet to send [07:31:31]OFD Sender: No OFD packet to send [07:31:36]OFD Sender: No OFD packet to send [07:31:40]recv_with_timeout no data received [07:31:41]OFD Sender: No OFD packet to send [07:31:46]OFD Sender: No OFD packet to send [07:31:51]OFD Sender: No OFD packet to send [07:31:56]OFD Sender: No OFD packet to send [07:32:01]OFD Sender: No OFD packet to send [07:32:06]OFD Sender: No OFD packet to send [07:32:11]OFD Sender: No OFD packet to send [07:32:16]OFD Sender: No OFD packet to send [07:32:21]OFD Sender: No OFD packet to send [07:32:26]OFD Sender: No OFD packet to send [07:32:31]OFD Sender: No OFD packet to send [07:32:36]OFD Sender: No OFD packet to send [07:32:41]OFD Sender: No OFD packet to send [07:32:45]recv_with_timeout no data received [07:32:46]OFD Sender: No OFD packet to send [07:32:51]OFD Sender: No OFD packet to send [07:32:56]OFD Sender: No OFD packet to send [07:33:01]OFD Sender: No OFD packet to send [07:33:06]OFD Sender: No OFD packet to send [07:33:11]OFD Sender: No OFD packet to send [07:33:16]OFD Sender: No OFD packet to send [07:33:21]OFD Sender: No OFD packet to send [07:33:26]OFD Sender: No OFD packet to send [07:33:31]OFD Sender: No OFD packet to send [07:33:36]OFD Sender: No OFD packet to send [07:33:37]recv_with_timeout no data received [07:33:41]OFD Sender: No OFD packet to send [07:33:46]OFD Sender: No OFD packet to send [07:33:51]OFD Sender: No OFD packet to send [07:33:56]OFD Sender: No OFD packet to send [07:34:01]OFD Sender: No OFD packet to send [07:34:07]OFD Sender: No OFD packet to send [07:34:09]recv_with_timeout no data received [07:34:12]OFD Sender: No OFD packet to send [07:34:17]OFD Sender: No OFD packet to send [07:34:22]OFD Sender: No OFD packet to send [07:34:27]OFD Sender: No OFD packet to send [07:34:32]OFD Sender: No OFD packet to send [07:34:37]OFD Sender: No OFD packet to send [07:34:42]OFD Sender: No OFD packet to send [07:34:47]OFD Sender: No OFD packet to send [07:34:52]OFD Sender: No OFD packet to send [07:34:57]OFD Sender: No OFD packet to send [07:35:02]OFD Sender: No OFD packet to send [07:35:02]recv_with_timeout no data received [07:35:07]OFD Sender: No OFD packet to send [07:35:12]OFD Sender: No OFD packet to send [07:35:17]OFD Sender: No OFD packet to send [07:35:22]OFD Sender: No OFD packet to send [07:35:25]recv_with_timeout no data received [07:35:27]OFD Sender: No OFD packet to send [07:35:32]OFD Sender: No OFD packet to send [07:35:37]OFD Sender: No OFD packet to send [07:35:42]OFD Sender: No OFD packet to send [07:35:47]OFD Sender: No OFD packet to send [07:35:52]OFD Sender: No OFD packet to send [07:35:57]OFD Sender: No OFD packet to send [07:36:02]OFD Sender: No OFD packet to send [07:36:07]OFD Sender: No OFD packet to send [07:36:12]OFD Sender: No OFD packet to send [07:36:17]OFD Sender: No OFD packet to send [07:36:22]OFD Sender: No OFD packet to send [07:36:27]OFD Sender: No OFD packet to send [07:36:32]OFD Sender: No OFD packet to send [07:36:37]OFD Sender: No OFD packet to send [07:36:42]OFD Sender: No OFD packet to send [07:36:47]OFD Sender: No OFD packet to send [07:36:51]recv_with_timeout no data received [07:36:52]OFD Sender: No OFD packet to send [07:36:57]OFD Sender: No OFD packet to send [07:37:02]OFD Sender: No OFD packet to send [07:37:07]OFD Sender: No OFD packet to send [07:37:12]OFD Sender: No OFD packet to send [07:37:17]OFD Sender: No OFD packet to send [07:37:22]OFD Sender: No OFD packet to send [07:37:27]OFD Sender: No OFD packet to send [07:37:32]OFD Sender: No OFD packet to send [07:37:37]OFD Sender: No OFD packet to send [07:37:42]OFD Sender: No OFD packet to send [07:37:47]OFD Sender: No OFD packet to send [07:37:52]OFD Sender: No OFD packet to send [07:37:57]OFD Sender: No OFD packet to send [07:38:02]OFD Sender: No OFD packet to send [07:38:07]OFD Sender: No OFD packet to send [07:38:12]OFD Sender: No OFD packet to send [07:38:17]OFD Sender: No OFD packet to send [07:38:22]OFD Sender: No OFD packet to send [07:38:27]OFD Sender: No OFD packet to send [07:38:32]OFD Sender: No OFD packet to send [07:38:37]OFD Sender: No OFD packet to send [07:38:42]OFD Sender: No OFD packet to send [07:38:45]recv_with_timeout no data received [07:38:47]OFD Sender: No OFD packet to send [07:38:52]OFD Sender: No OFD packet to send [07:38:55]recv_with_timeout no data received [07:38:57]OFD Sender: No OFD packet to send [07:39:02]OFD Sender: No OFD packet to send [07:39:07]OFD Sender: No OFD packet to send [07:39:12]OFD Sender: No OFD packet to send [07:39:17]OFD Sender: No OFD packet to send [07:39:22]OFD Sender: No OFD packet to send [07:39:27]OFD Sender: No OFD packet to send [07:39:32]OFD Sender: No OFD packet to send [07:39:37]OFD Sender: No OFD packet to send [07:39:42]OFD Sender: No OFD packet to send [07:39:47]OFD Sender: No OFD packet to send [07:39:52]OFD Sender: No OFD packet to send [07:39:53]recv_with_timeout no data received [07:39:57]OFD Sender: No OFD packet to send [07:40:02]OFD Sender: No OFD packet to send [07:40:07]OFD Sender: No OFD packet to send [07:40:09]recv_with_timeout no data received [07:40:12]OFD Sender: No OFD packet to send [07:40:17]OFD Sender: No OFD packet to send [07:40:22]OFD Sender: No OFD packet to send [07:40:27]OFD Sender: No OFD packet to send [07:40:32]OFD Sender: No OFD packet to send [07:40:37]OFD Sender: No OFD packet to send [07:40:41]recv_with_timeout no data received [07:40:42]OFD Sender: No OFD packet to send [07:40:47]OFD Sender: No OFD packet to send [07:40:51]recv_with_timeout no data received [07:40:52]OFD Sender: No OFD packet to send [07:40:57]OFD Sender: No OFD packet to send [07:41:01]recv_with_timeout no data received [07:41:02]OFD Sender: No OFD packet to send [07:41:07]OFD Sender: No OFD packet to send [07:41:12]recv_with_timeout no data received [07:41:12]OFD Sender: No OFD packet to send [07:41:17]OFD Sender: No OFD packet to send [07:41:22]OFD Sender: No OFD packet to send [07:41:27]OFD Sender: No OFD packet to send [07:41:32]OFD Sender: No OFD packet to send [07:41:37]OFD Sender: No OFD packet to send [07:41:41]recv_with_timeout no data received [07:41:42]OFD Sender: No OFD packet to send [07:41:47]OFD Sender: No OFD packet to send [07:41:52]OFD Sender: No OFD packet to send [07:41:57]OFD Sender: No OFD packet to send [07:42:02]OFD Sender: No OFD packet to send [07:42:07]OFD Sender: No OFD packet to send [07:42:11]recv_with_timeout no data received [07:42:12]OFD Sender: No OFD packet to send [07:42:17]OFD Sender: No OFD packet to send [07:42:22]OFD Sender: No OFD packet to send [07:42:27]OFD Sender: No OFD packet to send [07:42:27]recv_with_timeout no data received [07:42:32]OFD Sender: No OFD packet to send [07:42:37]OFD Sender: No OFD packet to send [07:42:42]OFD Sender: No OFD packet to send [07:42:47]OFD Sender: No OFD packet to send [07:42:52]OFD Sender: No OFD packet to send [07:42:57]OFD Sender: No OFD packet to send [07:43:01]recv_with_timeout no data received [07:43:02]OFD Sender: No OFD packet to send [07:43:07]OFD Sender: No OFD packet to send [07:43:12]OFD Sender: No OFD packet to send [07:43:17]OFD Sender: No OFD packet to send [07:43:22]OFD Sender: No OFD packet to send [07:43:26]recv_with_timeout no data received [07:43:27]OFD Sender: No OFD packet to send [07:43:32]OFD Sender: No OFD packet to send [07:43:37]OFD Sender: No OFD packet to send [07:43:42]OFD Sender: No OFD packet to send [07:43:47]OFD Sender: No OFD packet to send [07:43:53]OFD Sender: No OFD packet to send [07:43:58]OFD Sender: No OFD packet to send [07:44:03]OFD Sender: No OFD packet to send [07:44:08]OFD Sender: No OFD packet to send [07:44:13]OFD Sender: No OFD packet to send [07:44:18]OFD Sender: No OFD packet to send [07:44:23]OFD Sender: No OFD packet to send [07:44:28]OFD Sender: No OFD packet to send [07:44:33]OFD Sender: No OFD packet to send [07:44:38]OFD Sender: No OFD packet to send [07:44:43]OFD Sender: No OFD packet to send [07:44:48]OFD Sender: No OFD packet to send [07:44:53]OFD Sender: No OFD packet to send [07:44:58]OFD Sender: No OFD packet to send [07:45:03]OFD Sender: No OFD packet to send [07:45:08]OFD Sender: No OFD packet to send [07:45:13]OFD Sender: No OFD packet to send [07:45:18]OFD Sender: No OFD packet to send [07:45:23]OFD Sender: No OFD packet to send [07:45:28]OFD Sender: No OFD packet to send [07:45:33]OFD Sender: No OFD packet to send [07:45:37]recv_with_timeout no data received [07:45:38]OFD Sender: No OFD packet to send [07:45:43]OFD Sender: No OFD packet to send [07:45:48]OFD Sender: No OFD packet to send [07:45:53]OFD Sender: No OFD packet to send [07:45:58]OFD Sender: No OFD packet to send [07:46:03]OFD Sender: No OFD packet to send [07:46:08]OFD Sender: No OFD packet to send [07:46:13]OFD Sender: No OFD packet to send [07:46:18]OFD Sender: No OFD packet to send [07:46:23]OFD Sender: No OFD packet to send [07:46:28]OFD Sender: No OFD packet to send [07:46:33]OFD Sender: No OFD packet to send [07:46:38]OFD Sender: No OFD packet to send [07:46:43]OFD Sender: No OFD packet to send [07:46:48]OFD Sender: No OFD packet to send [07:46:53]OFD Sender: No OFD packet to send [07:46:58]OFD Sender: No OFD packet to send [07:47:03]OFD Sender: No OFD packet to send [07:47:08]OFD Sender: No OFD packet to send [07:47:13]OFD Sender: No OFD packet to send [07:47:18]OFD Sender: No OFD packet to send [07:47:23]OFD Sender: No OFD packet to send [07:47:28]OFD Sender: No OFD packet to send [07:47:32]recv_with_timeout no data received [07:47:33]OFD Sender: No OFD packet to send [07:47:38]OFD Sender: No OFD packet to send [07:47:43]OFD Sender: No OFD packet to send [07:47:48]OFD Sender: No OFD packet to send [07:47:53]OFD Sender: No OFD packet to send [07:47:58]OFD Sender: No OFD packet to send [07:48:03]OFD Sender: No OFD packet to send [07:48:08]OFD Sender: No OFD packet to send [07:48:13]OFD Sender: No OFD packet to send [07:48:18]OFD Sender: No OFD packet to send [07:48:23]OFD Sender: No OFD packet to send [07:48:28]OFD Sender: No OFD packet to send [07:48:33]OFD Sender: No OFD packet to send [07:48:38]OFD Sender: No OFD packet to send [07:48:43]OFD Sender: No OFD packet to send [07:48:48]OFD Sender: No OFD packet to send [07:48:53]OFD Sender: No OFD packet to send [07:48:58]OFD Sender: No OFD packet to send [07:49:03]recv_with_timeout no data received [07:49:03]OFD Sender: No OFD packet to send [07:49:08]OFD Sender: No OFD packet to send [07:49:13]OFD Sender: No OFD packet to send [07:49:18]OFD Sender: No OFD packet to send [07:49:23]OFD Sender: No OFD packet to send [07:49:28]OFD Sender: No OFD packet to send [07:49:33]OFD Sender: No OFD packet to send [07:49:38]OFD Sender: No OFD packet to send [07:49:43]OFD Sender: No OFD packet to send [07:49:48]OFD Sender: No OFD packet to send [07:49:50]recv_with_timeout no data received [07:49:53]OFD Sender: No OFD packet to send [07:49:58]OFD Sender: No OFD packet to send [07:50:03]OFD Sender: No OFD packet to send [07:50:08]OFD Sender: No OFD packet to send [07:50:13]OFD Sender: No OFD packet to send [07:50:18]OFD Sender: No OFD packet to send [07:50:23]OFD Sender: No OFD packet to send [07:50:25]accept exits with 9 [07:50:25]New connection [07:50:25]New thread 3067624804 created [07:50:25]Thread 3067481444 joined [07:50:25]Waiting for new connection... [07:50:25] Sock 9.Parse request [07:50:25]Sock 9.Check first char [07:50:25]Sock 9.First char is OK [07:50:25]request: POST /json_proto HTTP/1.0 [07:50:25]Method: POST [07:50:25]URL: /json_proto [07:50:25]Method is POST - this is cgi request [07:50:25]url: /json_proto [07:50:25]query_string will be loaded in cgi processing [07:50:25]execute_cgi json_proto POST (null) [07:50:25]execute_cgi path=json_proto method=POST [07:50:25]POST find Content-Length [07:50:25]Host: 172.17.43.195:8080 [07:50:25]Content-Length: 791 [07:50:25]Content-Type: application/json [07:50:25] [07:50:25]POST finish read [07:50:25]Found Content-Length = 791 [07:50:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 6.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:50:25]execute_script... [07:50: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)952767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 6.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:50:25]POST & json_proto [07:50:25]process_json_proto [07:50:25]json parsed OK: [07:50:25]protocol is kg_v1.0 [07:50:25]action value=close_receipt [07:50:25]process_action close_receipt [07:50:25]cmd_close_receipt [07:50:25]MH_GetDate [07:50:25]Write to MH i2c: F0 00 00 70 02 61 [07:50:25]Write i2c OK [07:50:25]MH_I2C_Read... [07:50:25]Read from MH i2c: F0 [07:50:25]MH_I2C_Read... [07:50:25]Read from MH i2c: F0 09 00 [07:50:25]MH_I2C_Read... [07:50:25]Read from MH i2c: F0 09 00 70 02 00 42 88 24 67 74 2C AD 66 72 [07:50:25]GetLastDocTimeStamp 1730446105 [07:50:25]current date 1730447426 [07:50:25]FM_GetShiftState [07:50:25]SAM_PROTO_GetShiftState [07:50:25]wFMCommunicate request_size=4 [07:50:25]MH_SAM_APDU [07:50:25]CAPDU: 80 13 01 00 [07:50:25]Write to MH i2c: E2 08 00 71 02 80 13 01 00 00 00 00 00 F0 [07:50:25]Write i2c OK [07:50:25]MH_I2C_Read... [07:50:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:25]Read from MH i2c: E2 [07:50:25]MH_I2C_Read... [07:50:25]Read from MH i2c: E2 0E 00 [07:50:25]MH_I2C_Read... [07:50:25]Read from MH i2c: E2 0E 00 71 02 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 37 [07:50:25]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [07:50:25]wFMCommunicate OK [07:50:25]SAM_PROTO_GetShiftState done [07:50:25]FM_GetShiftState done [07:50:25]opened in 1730419605 [07:50:25]opened+sec_in_day 1730506005 [07:50:25]quantity*price = 0 [07:50:25]sum+1 = 1 [07:50:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 37 01.11.2024 07:50 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 73168 ФПД: 172878546057902 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T075026&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73168&fm=172878546057902&tin=02508201610067®Number=0000000000091644&sum=0 [07:50:26]StoreToDocumentArchive [07:50:26]shift 558 fd 73168 [07:50:26]save to /storage/0558/doc_00073168 [07:50:26]save last doc name /storage/0558/doc_00073168 to /storage/kkm_last_doc_name [07:50:26]save OK [07:50:26]Clear old archive folders... [07:50:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:50:26]tlvbuf is 01000840 [07:50:26]SAM_PROTO_ClearQueue [07:50:26]wFMCommunicate request_size=4 [07:50:26]MH_SAM_APDU [07:50:26]CAPDU: 80 09 00 00 [07:50:26]Write to MH i2c: E2 08 00 7E 02 80 09 00 00 00 00 00 00 F2 [07:50:26]Write i2c OK [07:50:26]MH_I2C_Read... [07:50:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:50:27]Read from MH i2c: E2 [07:50:27]MH_I2C_Read... [07:50:27]Read from MH i2c: E2 03 00 [07:50:27]MH_I2C_Read... [07:50:27]Read from MH i2c: E2 03 00 7E 02 00 90 00 F4 [07:50:27]RAPDU: 90 00 [07:50:27]wFMCommunicate OK [07:50:27]SAM_PROTO_ClearQueue done [07:50:27]KKMCreateOFDPacket [07:50:27]OFDProtocolAddRootSTLVToBuf [07:50:27]FM_MakeSignedData [07:50:27]FM_MakeSignedData [07:50:27]SAM_PROTO_SignData [07:50:27]wFMCommunicate request_size=4 [07:50:27]MH_SAM_APDU [07:50:27]CAPDU: 80 0D 01 02 [07:50:27]Write to MH i2c: E2 08 00 7F 02 80 0D 01 02 00 00 00 00 FA [07:50:27]Write i2c OK [07:50:27]MH_I2C_Read... [07:50:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:50:27]Read from MH i2c: E2 [07:50:27]MH_I2C_Read... [07:50:27]Read from MH i2c: E2 03 00 [07:50:27]MH_I2C_Read... [07:50:27]Read from MH i2c: E2 03 00 7F 02 00 90 00 F5 [07:50:27]RAPDU: 90 00 [07:50:27]wFMCommunicate OK [07:50:27]wFMCommunicate request_size=255 [07:50:27]MH_SAM_APDU [07:50: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 70 17 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 42 88 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D0 1D 01 00 35 04 06 00 9D [07:50:27]Write to MH i2c: E2 02 01 80 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 42 88 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D0 1D 01 00 35 04 06 00 9D 00 00 C0 [07:50:27]Write i2c OK [07:50:27]MH_I2C_Read... [07:50:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:27]Read from MH i2c: E2 [07:50:27]MH_I2C_Read... [07:50:27]Read from MH i2c: E2 03 00 [07:50:27]MH_I2C_Read... [07:50:27]Read from MH i2c: E2 03 00 80 02 00 90 00 F6 [07:50:27]RAPDU: 90 00 [07:50:27]wFMCommunicate OK [07:50:27]wFMCommunicate request_size=10 [07:50:27]MH_SAM_APDU [07:50:27]CAPDU: 80 0D 02 02 05 3B 6C 53 BA AE [07:50:27]Write to MH i2c: E2 0D 00 81 02 80 0D 02 02 05 00 3B 6C 53 BA AE 00 00 69 [07:50:27]Write i2c OK [07:50:27]MH_I2C_Read... [07:50:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:27]Read from MH i2c: E2 [07:50:27]MH_I2C_Read... [07:50:27]Read from MH i2c: E2 03 00 [07:50:27]MH_I2C_Read... [07:50:27]Read from MH i2c: E2 03 00 81 02 00 90 00 F7 [07:50:27]RAPDU: 90 00 [07:50:27]wFMCommunicate OK [07:50:27]wFMCommunicate request_size=4 [07:50:27]MH_SAM_APDU [07:50:27]CAPDU: 80 0D 03 02 [07:50:27]Write to MH i2c: E2 08 00 82 02 80 0D 03 02 00 00 00 00 FF [07:50:27]Write i2c OK [07:50:27]MH_I2C_Read... [07:50:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:50:27]Read from MH i2c: E2 [07:50:27]MH_I2C_Read... [07:50:27]Read from MH i2c: E2 0B 00 [07:50:27]MH_I2C_Read... [07:50:27]Read from MH i2c: E2 0B 00 82 02 00 8E 02 53 8A F2 E6 81 38 90 00 FE [07:50:27]RAPDU: 8E 02 53 8A F2 E6 81 38 90 00 [07:50:27]wFMCommunicate OK [07:50:27]SAM_PROTO_SignData done [07:50:27]FM_MakeSignedData done [07:50:27]CreateOFDProtocolMessage [07:50:27]wFMCommunicate request_size=4 [07:50:27]MH_SAM_APDU [07:50:27]CAPDU: 80 11 00 00 [07:50:27]Write to MH i2c: E2 08 00 83 02 80 11 00 00 00 00 00 00 FF [07:50:27]Write i2c OK [07:50:27]MH_I2C_Read... [07:50:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:27]Read from MH i2c: E2 [07:50:27]MH_I2C_Read... [07:50:27]Read from MH i2c: E2 17 00 [07:50:27]MH_I2C_Read... [07:50:27]Read from MH i2c: E2 17 00 83 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 53 [07:50:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:50:27]wFMCommunicate OK [07:50:27]CreateOFDProtocolMessage done [07:50:27]OFDSenderStorePacket 73168 [07:50:27]StoreOFDPacket docnum=73168 [07:50:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 33 17 07 01 61 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 70 17 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 42 88 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D0 1D 01 00 35 04 06 00 9D 3B 6C 53 BA AE 8E 02 53 8A F2 E6 81 38 [07:50:27]CheckFolder [07:50:27]dirname=/storage/ofd_packets [07:50:27]CheckFolder done [07:50:27]ProducePacketName [07:50:27]name=ofd_packets/00073168 [07:50:27]NVStorageSaveData ofd_packets/00073168 [07:50:27]File name is /storage/ofd_packets/00073168 [07:50:27]Write 301 bytes [07:50:27]NVStorageSaveData done [07:50:27]OFDSenderStorePacket done [07:50:27]KKMCreateOFDPacket done [07:50:27]NVStorageSaveData kkm_last_timestamp [07:50:27]File name is /storage/kkm_last_timestamp [07:50:27]Write 4 bytes [07:50:27]NVStorageSaveData done [07:50:27]ExternCall_PrintAddStr [07:50:27]wPrintStart [07:50:27]Write to MH i2c: 01 00 00 84 02 86 [07:50:27]Write i2c OK [07:50:27]MH_I2C_Read... [07:50:27]Read from MH i2c: 01 [07:50:27]MH_I2C_Read... [07:50:27]Read from MH i2c: 01 07 00 [07:50:27]MH_I2C_Read... [07:50:27]Read from MH i2c: 01 07 00 84 02 00 00 00 00 00 FF 0F 9B [07:50:27]RasterBufferAndPrint [07:50:27]line Счет N : (1)952767 [07:50:27]line ИНН: 02508201610067 [07:50:27]line Контрольно-Кассовый Чек [07:50:27]line ПРОДАЖА [07:50:27]line ТРК (МРК, ГНК) : 63 [07:50:27]line Товар: 2710124130 [07:50:27]line Аи-92-К-5 [07:50:27]line 6.000 * 0.00 [07:50:27]line = 0.00 [07:50:27]line НДС 12% НСП 1% [07:50:27]line > о реализуемом товаре [07:50:27]line ИТОГО: 0.00 [07:50:27]line НСП 1% : 0.00 [07:50:27]line НДС 12% : 0.00 [07:50:27]line Наличными: 0.00 [07:50:27]line Безнал.: 0.00 [07:50:27]line Место: АЗС № 113 "Партнер Нефть" [07:50:27]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [07:50:27]line СНО: Общий режим [07:50:27]line Чек 37 01.11.2024 07:50 [07:50:27]line Смена: 558 ФФД: 1.0 [07:50:27]line ЗНМ: 0300000087 [07:50:27]line РНМ: 0000000000091644 [07:50:27]line Версия ККМ: 001 [07:50:27]line Талоны: Топливная Карта [07:50:27]line 03047 [07:50:27]line ФМ: 0000000000874662 [07:50:27]line ФД: 73168 [07:50:27]line ФПД: 172878546057902 [07:50:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T075026&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73168&fm=172878546057902&tin=02508201610067®Number=0000000000091644&sum=0 [07:50:27]written 0, free lines is 4095 [07:50:27]OFD Sender: Processing packet 73168 [packets to send 282, broken 281] [07:50:27]ProducePacketName [07:50:27]name=ofd_packets/00073168 [07:50:27]OFD Sender: To server: pG, [07:50:27]CommunicateWithHost lk.salyk.kg:30040 [07:50:27]ConnectInit lk.salyk.kg [07:50:27]Write to MH i2c: 01 00 00 AE 02 B0 [07:50:27]Write i2c OK [07:50:27]MH_I2C_Read... [07:50:27]Read from MH i2c: 01 [07:50:27]MH_I2C_Read... [07:50:27]Read from MH i2c: 01 07 00 [07:50:27]MH_I2C_Read... [07:50:27]Read from MH i2c: 01 07 00 AE 02 00 00 00 00 00 E5 0C A8 [07:50:27]RasterBufferAndPrint [07:50:27]line [07:50:27]line [07:50:27]line [07:50:27]line [07:50:27]line [07:50:27]written 0, free lines is 3308 [07:50:27]MH_Cut [07:50:27]Write to MH i2c: D1 01 00 B5 02 01 89 [07:50:27]Write i2c OK [07:50:27]MH_I2C_Read... [07:50:27]Read from MH i2c: D1 [07:50:27]MH_I2C_Read... [07:50:27]Read from MH i2c: D1 01 00 [07:50:27]MH_I2C_Read... [07:50:27]Read from MH i2c: D1 01 00 B5 02 00 88 [07:50:27]Write to MH i2c: 01 00 00 B6 02 B8 [07:50:27]Write i2c OK [07:50:27]MH_I2C_Read... [07:50:28]*** Cut start [07:50:28]*** Partial cut [07:50:28]*** CUTSNS_PIN = 1 [07:50:28]*** CUTSNS_PIN = 0 [07:50:28]*** Brake cut motor [07:50:29]Connected sock=10 [07:50:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 33 17 07 01 61 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 70 17 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 42 88 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D0 1D 01 00 35 04 06 00 9D 3B 6C 53 BA AE 8E 02 53 8A F2 E6 81 38 [07:50:29]Read from MH i2c: 01 [07:50:29]MH_I2C_Read... [07:50:29]*** Stop cut motor [07:50:29]*** Cut end [07:50:29]Read from MH i2c: 01 07 00 [07:50:29]MH_I2C_Read... [07:50:29]Read from MH i2c: 01 07 00 B6 02 00 00 00 00 00 FF 0F CD [07:50:29]process_action close_receipt done [07:50:29]requested_data is exist [07:50:29]produce_requested_data [07:50:29]requested_item fm.sn is exist - process it [07:50:29]wFMCommunicate request_size=4 [07:50:29]MH_SAM_APDU [07:50:29]CAPDU: 80 11 00 00 [07:50:29]Write to MH i2c: E2 08 00 B7 02 80 11 00 00 00 00 00 00 33 [07:50:29]Write i2c OK [07:50:29]MH_I2C_Read... [07:50:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:29]Read from MH i2c: E2 [07:50:29]MH_I2C_Read... [07:50:29]Read from MH i2c: E2 17 00 [07:50:29]MH_I2C_Read... [07:50:29]Read from MH i2c: E2 17 00 B7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 87 [07:50:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:50:29]wFMCommunicate OK [07:50:29]requested_item fd.num is exist - process it [07:50:29]SAM_PROTO_GetFieldsCounters [07:50:29]wFMCommunicate request_size=4 [07:50:29]MH_SAM_APDU [07:50:29]CAPDU: 80 13 00 00 [07:50:29]Write to MH i2c: E2 08 00 B8 02 80 13 00 00 00 00 00 00 36 [07:50:29]Write i2c OK [07:50:29]MH_I2C_Read... [07:50:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:50:29]Read from MH i2c: E2 [07:50:29]MH_I2C_Read... [07:50:29]Read from MH i2c: E2 62 00 [07:50:29]MH_I2C_Read... [07:50:29]Read from MH i2c: E2 62 00 B8 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 D0 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [07:50:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 D0 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:50:29]wFMCommunicate OK [07:50:29]SAM_PROTO_GetFieldsCounters done [07:50:29]requested_item shift.num is exist - process it [07:50:29]requested_item shift.opened is exist - process it [07:50:29]req_shift_opened [07:50:29]FM_GetShiftState [07:50:29]SAM_PROTO_GetShiftState [07:50:29]wFMCommunicate request_size=4 [07:50:29]MH_SAM_APDU [07:50:29]CAPDU: 80 13 01 00 [07:50:29]Write to MH i2c: E2 08 00 B9 02 80 13 01 00 00 00 00 00 38 [07:50:29]Write i2c OK [07:50:29]MH_I2C_Read... [07:50:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:29]Read from MH i2c: E2 [07:50:29]MH_I2C_Read... [07:50:29]Read from MH i2c: E2 0E 00 [07:50:29]MH_I2C_Read... [07:50:29]Read from MH i2c: E2 0E 00 B9 02 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 7F [07:50:29]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [07:50:29]wFMCommunicate OK [07:50:29]SAM_PROTO_GetShiftState done [07:50:29]FM_GetShiftState done [07:50:29]req_shift_opened done [07:50:29]requested_item shift.open_date is exist - process it [07:50:29]req_shift_open_date [07:50:29]req_shift_open_date done [07:50:29]produce_requested_data done [07:50:29]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73168,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [07:50:29]process_action_free close_receipt [07:50:29]json_value_free [07:50:29]json_value_free done [07:50:29]process_json_proto returns [07:50:29]Send response to host [07:50:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73168,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [07:50:29]free response buf [07:50:29]execute_script done [07:50:29]execute_script returns [07:50:29]free content buf [07:50:29]Sock 9.Close socket [07:50:29]Sock 9.Thread stoped [07:50:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 29 46 47 00 6A 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D0 1D 01 00 F4 03 04 00 F7 32 24 67 B6 04 01 00 00 FF E3 90 23 2E AE 8D 7D [07:50:29]CommunicateWithHost err = 0 [07:50:29]CheckOFDResponse [07:50:29]1017 (14) - 77093643461234 [07:50:29]1041 (16) - 0000000000874662 [07:50:29]1040 (4) - 73168 [07:50:29]1012 (4) - 01.11.2024 01:46 [07:50:29]1206 (1) - 0 [07:50:29]OFD Sender: Remove packet 73168 [07:50:29]ProducePacketName [07:50:29]name=ofd_packets/00073168 [07:50:29]NVStorageDeleteData [07:50:30]OFD Sender: No OFD packet to send [07:50:35]OFD Sender: No OFD packet to send [07:50:35]recv_with_timeout no data received [07:50:40]OFD Sender: No OFD packet to send [07:50:45]OFD Sender: No OFD packet to send [07:50:49]recv_with_timeout no data received [07:50:50]OFD Sender: No OFD packet to send [07:50:55]OFD Sender: No OFD packet to send [07:51:00]OFD Sender: No OFD packet to send [07:51:05]OFD Sender: No OFD packet to send [07:51:10]OFD Sender: No OFD packet to send [07:51:15]OFD Sender: No OFD packet to send [07:51:20]OFD Sender: No OFD packet to send [07:51:25]OFD Sender: No OFD packet to send [07:51:30]OFD Sender: No OFD packet to send [07:51:31]recv_with_timeout no data received [07:51:35]OFD Sender: No OFD packet to send [07:51:40]OFD Sender: No OFD packet to send [07:51:45]OFD Sender: No OFD packet to send [07:51:50]OFD Sender: No OFD packet to send [07:51:55]OFD Sender: No OFD packet to send [07:52:00]OFD Sender: No OFD packet to send [07:52:05]OFD Sender: No OFD packet to send [07:52:10]OFD Sender: No OFD packet to send [07:52:15]OFD Sender: No OFD packet to send [07:52:20]OFD Sender: No OFD packet to send [07:52:25]OFD Sender: No OFD packet to send [07:52:30]OFD Sender: No OFD packet to send [07:52:35]OFD Sender: No OFD packet to send [07:52:40]OFD Sender: No OFD packet to send [07:52:45]OFD Sender: No OFD packet to send [07:52:50]OFD Sender: No OFD packet to send [07:52:55]OFD Sender: No OFD packet to send [07:53:00]OFD Sender: No OFD packet to send [07:53:05]OFD Sender: No OFD packet to send [07:53:10]OFD Sender: No OFD packet to send [07:53:15]OFD Sender: No OFD packet to send [07:53:20]OFD Sender: No OFD packet to send [07:53:21]recv_with_timeout no data received [07:53:25]OFD Sender: No OFD packet to send [07:53:30]OFD Sender: No OFD packet to send [07:53:33]recv_with_timeout no data received [07:53:35]OFD Sender: No OFD packet to send [07:53:40]OFD Sender: No OFD packet to send [07:53:45]OFD Sender: No OFD packet to send [07:53:50]OFD Sender: No OFD packet to send [07:53:55]OFD Sender: No OFD packet to send [07:54:00]OFD Sender: No OFD packet to send [07:54:05]OFD Sender: No OFD packet to send [07:54:10]OFD Sender: No OFD packet to send [07:54:15]OFD Sender: No OFD packet to send [07:54:20]OFD Sender: No OFD packet to send [07:54:25]OFD Sender: No OFD packet to send [07:54:30]OFD Sender: No OFD packet to send [07:54:35]OFD Sender: No OFD packet to send [07:54:37]recv_with_timeout no data received [07:54:40]OFD Sender: No OFD packet to send [07:54:45]OFD Sender: No OFD packet to send [07:54:50]OFD Sender: No OFD packet to send [07:54:55]OFD Sender: No OFD packet to send [07:55:00]OFD Sender: No OFD packet to send [07:55:05]recv_with_timeout no data received [07:55:05]OFD Sender: No OFD packet to send [07:55:10]OFD Sender: No OFD packet to send [07:55:15]OFD Sender: No OFD packet to send [07:55:20]OFD Sender: No OFD packet to send [07:55:25]OFD Sender: No OFD packet to send [07:55:30]OFD Sender: No OFD packet to send [07:55:35]OFD Sender: No OFD packet to send [07:55:40]OFD Sender: No OFD packet to send [07:55:46]OFD Sender: No OFD packet to send [07:55:51]OFD Sender: No OFD packet to send [07:55:51]recv_with_timeout no data received [07:55:56]OFD Sender: No OFD packet to send [07:56:01]OFD Sender: No OFD packet to send [07:56:06]OFD Sender: No OFD packet to send [07:56:11]OFD Sender: No OFD packet to send [07:56:16]OFD Sender: No OFD packet to send [07:56:21]OFD Sender: No OFD packet to send [07:56:22]recv_with_timeout no data received [07:56:26]OFD Sender: No OFD packet to send [07:56:31]OFD Sender: No OFD packet to send [07:56:33]recv_with_timeout no data received [07:56:36]OFD Sender: No OFD packet to send [07:56:41]OFD Sender: No OFD packet to send [07:56:46]OFD Sender: No OFD packet to send [07:56:51]OFD Sender: No OFD packet to send [07:56:56]OFD Sender: No OFD packet to send [07:57:01]OFD Sender: No OFD packet to send [07:57:06]OFD Sender: No OFD packet to send [07:57:11]OFD Sender: No OFD packet to send [07:57:16]OFD Sender: No OFD packet to send [07:57:21]OFD Sender: No OFD packet to send [07:57:26]OFD Sender: No OFD packet to send [07:57:31]OFD Sender: No OFD packet to send [07:57:36]OFD Sender: No OFD packet to send [07:57:41]OFD Sender: No OFD packet to send [07:57:46]OFD Sender: No OFD packet to send [07:57:51]OFD Sender: No OFD packet to send [07:57:53]recv_with_timeout no data received [07:57:56]OFD Sender: No OFD packet to send [07:58:01]OFD Sender: No OFD packet to send [07:58:06]OFD Sender: No OFD packet to send [07:58:10]recv_with_timeout no data received [07:58:11]OFD Sender: No OFD packet to send [07:58:16]OFD Sender: No OFD packet to send [07:58:21]OFD Sender: No OFD packet to send [07:58:26]OFD Sender: No OFD packet to send [07:58:31]OFD Sender: No OFD packet to send [07:58:36]OFD Sender: No OFD packet to send [07:58:41]OFD Sender: No OFD packet to send [07:58:42]recv_with_timeout no data received [07:58:46]OFD Sender: No OFD packet to send [07:58:51]OFD Sender: No OFD packet to send [07:58:56]OFD Sender: No OFD packet to send [07:59:01]OFD Sender: No OFD packet to send [07:59:06]OFD Sender: No OFD packet to send [07:59:11]OFD Sender: No OFD packet to send [07:59:16]OFD Sender: No OFD packet to send [07:59:21]OFD Sender: No OFD packet to send [07:59:26]OFD Sender: No OFD packet to send [07:59:29]recv_with_timeout no data received [07:59:31]OFD Sender: No OFD packet to send [07:59:36]OFD Sender: No OFD packet to send [07:59:41]OFD Sender: No OFD packet to send [07:59:46]OFD Sender: No OFD packet to send [07:59:50]recv_with_timeout no data received [07:59:51]OFD Sender: No OFD packet to send [07:59:56]OFD Sender: No OFD packet to send [08:00:01]OFD Sender: No OFD packet to send [08:00:03]recv_with_timeout no data received [08:00:06]OFD Sender: No OFD packet to send [08:00:11]OFD Sender: No OFD packet to send [08:00:16]OFD Sender: No OFD packet to send [08:00:21]OFD Sender: No OFD packet to send [08:00:26]OFD Sender: No OFD packet to send [08:00:31]OFD Sender: No OFD packet to send [08:00:36]OFD Sender: No OFD packet to send [08:00:41]OFD Sender: No OFD packet to send [08:00:46]OFD Sender: No OFD packet to send [08:00:51]OFD Sender: No OFD packet to send [08:00:56]OFD Sender: No OFD packet to send [08:01:01]OFD Sender: No OFD packet to send [08:01:06]OFD Sender: No OFD packet to send [08:01:06]recv_with_timeout no data received [08:01:11]OFD Sender: No OFD packet to send [08:01:16]OFD Sender: No OFD packet to send [08:01:21]OFD Sender: No OFD packet to send [08:01:26]OFD Sender: No OFD packet to send [08:01:31]OFD Sender: No OFD packet to send [08:01:36]OFD Sender: No OFD packet to send [08:01:41]OFD Sender: No OFD packet to send [08:01:44]recv_with_timeout no data received [08:01:46]OFD Sender: No OFD packet to send [08:01:51]OFD Sender: No OFD packet to send [08:01:56]OFD Sender: No OFD packet to send [08:02:01]OFD Sender: No OFD packet to send [08:02:06]OFD Sender: No OFD packet to send [08:02:11]OFD Sender: No OFD packet to send [08:02:16]OFD Sender: No OFD packet to send [08:02:21]OFD Sender: No OFD packet to send [08:02:26]OFD Sender: No OFD packet to send [08:02:31]OFD Sender: No OFD packet to send [08:02:36]OFD Sender: No OFD packet to send [08:02:41]OFD Sender: No OFD packet to send [08:02:44]recv_with_timeout no data received [08:02:46]OFD Sender: No OFD packet to send [08:02:51]OFD Sender: No OFD packet to send [08:02:56]OFD Sender: No OFD packet to send [08:03:01]OFD Sender: No OFD packet to send [08:03:06]OFD Sender: No OFD packet to send [08:03:11]OFD Sender: No OFD packet to send [08:03:16]OFD Sender: No OFD packet to send [08:03:21]OFD Sender: No OFD packet to send [08:03:26]OFD Sender: No OFD packet to send [08:03:31]OFD Sender: No OFD packet to send [08:03:36]OFD Sender: No OFD packet to send [08:03:41]OFD Sender: No OFD packet to send [08:03:46]OFD Sender: No OFD packet to send [08:03:51]OFD Sender: No OFD packet to send [08:03:56]OFD Sender: No OFD packet to send [08:04:01]OFD Sender: No OFD packet to send [08:04:06]OFD Sender: No OFD packet to send [08:04:11]OFD Sender: No OFD packet to send [08:04:16]OFD Sender: No OFD packet to send [08:04:21]OFD Sender: No OFD packet to send [08:04:26]OFD Sender: No OFD packet to send [08:04:31]OFD Sender: No OFD packet to send [08:04:36]OFD Sender: No OFD packet to send [08:04:41]OFD Sender: No OFD packet to send [08:04:46]OFD Sender: No OFD packet to send [08:04:51]OFD Sender: No OFD packet to send [08:04:56]OFD Sender: No OFD packet to send [08:05:01]OFD Sender: No OFD packet to send [08:05:06]OFD Sender: No OFD packet to send [08:05:11]OFD Sender: No OFD packet to send [08:05:16]OFD Sender: No OFD packet to send [08:05:21]OFD Sender: No OFD packet to send [08:05:26]OFD Sender: No OFD packet to send [08:05:32]OFD Sender: No OFD packet to send [08:05:37]OFD Sender: No OFD packet to send [08:05:42]OFD Sender: No OFD packet to send [08:05:44]recv_with_timeout no data received [08:05:47]OFD Sender: No OFD packet to send [08:05:52]OFD Sender: No OFD packet to send [08:05:54]recv_with_timeout no data received [08:05:57]OFD Sender: No OFD packet to send [08:06:02]OFD Sender: No OFD packet to send [08:06:07]OFD Sender: No OFD packet to send [08:06:09]recv_with_timeout no data received [08:06:12]OFD Sender: No OFD packet to send [08:06:17]OFD Sender: No OFD packet to send [08:06:22]OFD Sender: No OFD packet to send [08:06:27]OFD Sender: No OFD packet to send [08:06:32]OFD Sender: No OFD packet to send [08:06:37]OFD Sender: No OFD packet to send [08:06:42]OFD Sender: No OFD packet to send [08:06:47]OFD Sender: No OFD packet to send [08:06:52]OFD Sender: No OFD packet to send [08:06:57]OFD Sender: No OFD packet to send [08:07:02]OFD Sender: No OFD packet to send [08:07:07]OFD Sender: No OFD packet to send [08:07:12]OFD Sender: No OFD packet to send [08:07:17]OFD Sender: No OFD packet to send [08:07:22]OFD Sender: No OFD packet to send [08:07:27]OFD Sender: No OFD packet to send [08:07:32]OFD Sender: No OFD packet to send [08:07:37]OFD Sender: No OFD packet to send [08:07:42]OFD Sender: No OFD packet to send [08:07:46]recv_with_timeout no data received [08:07:47]OFD Sender: No OFD packet to send [08:07:52]OFD Sender: No OFD packet to send [08:07:57]OFD Sender: No OFD packet to send [08:08:02]OFD Sender: No OFD packet to send [08:08:04]recv_with_timeout no data received [08:08:07]OFD Sender: No OFD packet to send [08:08:12]OFD Sender: No OFD packet to send [08:08:17]OFD Sender: No OFD packet to send [08:08:22]OFD Sender: No OFD packet to send [08:08:27]OFD Sender: No OFD packet to send [08:08:32]OFD Sender: No OFD packet to send [08:08:37]OFD Sender: No OFD packet to send [08:08:42]OFD Sender: No OFD packet to send [08:08:47]OFD Sender: No OFD packet to send [08:08:52]OFD Sender: No OFD packet to send [08:08:57]OFD Sender: No OFD packet to send [08:09:02]OFD Sender: No OFD packet to send [08:09:06]recv_with_timeout no data received [08:09:07]OFD Sender: No OFD packet to send [08:09:12]OFD Sender: No OFD packet to send [08:09:17]OFD Sender: No OFD packet to send [08:09:22]OFD Sender: No OFD packet to send [08:09:27]OFD Sender: No OFD packet to send [08:09:32]OFD Sender: No OFD packet to send [08:09:37]OFD Sender: No OFD packet to send [08:09:42]OFD Sender: No OFD packet to send [08:09:43]recv_with_timeout no data received [08:09:47]OFD Sender: No OFD packet to send [08:09:52]OFD Sender: No OFD packet to send [08:09:57]OFD Sender: No OFD packet to send [08:10:01]recv_with_timeout no data received [08:10:02]OFD Sender: No OFD packet to send [08:10:07]OFD Sender: No OFD packet to send [08:10:12]recv_with_timeout no data received [08:10:12]OFD Sender: No OFD packet to send [08:10:17]OFD Sender: No OFD packet to send [08:10:22]OFD Sender: No OFD packet to send [08:10:27]OFD Sender: No OFD packet to send [08:10:32]OFD Sender: No OFD packet to send [08:10:35]recv_with_timeout no data received [08:10:37]OFD Sender: No OFD packet to send [08:10:42]OFD Sender: No OFD packet to send [08:10:47]OFD Sender: No OFD packet to send [08:10:49]recv_with_timeout no data received [08:10:52]OFD Sender: No OFD packet to send [08:10:57]OFD Sender: No OFD packet to send [08:11:02]OFD Sender: No OFD packet to send [08:11:07]OFD Sender: No OFD packet to send [08:11:12]OFD Sender: No OFD packet to send [08:11:17]OFD Sender: No OFD packet to send [08:11:22]OFD Sender: No OFD packet to send [08:11:25]recv_with_timeout no data received [08:11:27]OFD Sender: No OFD packet to send [08:11:32]OFD Sender: No OFD packet to send [08:11:35]recv_with_timeout no data received [08:11:37]OFD Sender: No OFD packet to send [08:11:42]OFD Sender: No OFD packet to send [08:11:47]OFD Sender: No OFD packet to send [08:11:52]OFD Sender: No OFD packet to send [08:11:57]OFD Sender: No OFD packet to send [08:12:02]OFD Sender: No OFD packet to send [08:12:07]OFD Sender: No OFD packet to send [08:12:12]OFD Sender: No OFD packet to send [08:12:17]OFD Sender: No OFD packet to send [08:12:22]OFD Sender: No OFD packet to send [08:12:27]OFD Sender: No OFD packet to send [08:12:32]OFD Sender: No OFD packet to send [08:12:37]OFD Sender: No OFD packet to send [08:12:42]OFD Sender: No OFD packet to send [08:12:47]OFD Sender: No OFD packet to send [08:12:52]OFD Sender: No OFD packet to send [08:12:57]OFD Sender: No OFD packet to send [08:13:02]OFD Sender: No OFD packet to send [08:13:07]OFD Sender: No OFD packet to send [08:13:12]OFD Sender: No OFD packet to send [08:13:17]OFD Sender: No OFD packet to send [08:13:22]OFD Sender: No OFD packet to send [08:13:27]OFD Sender: No OFD packet to send [08:13:32]OFD Sender: No OFD packet to send [08:13:37]OFD Sender: No OFD packet to send [08:13:42]OFD Sender: No OFD packet to send [08:13:47]OFD Sender: No OFD packet to send [08:13:52]OFD Sender: No OFD packet to send [08:13:57]OFD Sender: No OFD packet to send [08:14:02]OFD Sender: No OFD packet to send [08:14:07]OFD Sender: No OFD packet to send [08:14:12]OFD Sender: No OFD packet to send [08:14:17]OFD Sender: No OFD packet to send [08:14:22]OFD Sender: No OFD packet to send [08:14:27]OFD Sender: No OFD packet to send [08:14:32]OFD Sender: No OFD packet to send [08:14:37]OFD Sender: No OFD packet to send [08:14:42]OFD Sender: No OFD packet to send [08:14:47]OFD Sender: No OFD packet to send [08:14:52]OFD Sender: No OFD packet to send [08:14:57]OFD Sender: No OFD packet to send [08:14:58]recv_with_timeout no data received [08:15:02]OFD Sender: No OFD packet to send [08:15:07]OFD Sender: No OFD packet to send [08:15:12]OFD Sender: No OFD packet to send [08:15: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:26]recv_with_timeout no data received [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:32]recv_with_timeout no data received [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:43]OFD Sender: No OFD packet to send [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:15]accept exits with 7 [08:20:15]New connection [08:20:15]New thread 3067481444 created [08:20:15]Thread 3067624804 joined [08:20:15]Waiting for new connection... [08:20:15] Sock 7.Parse request [08:20:15]Sock 7.Check first char [08:20:15]Sock 7.First char is OK [08:20:15]request: POST /json_proto HTTP/1.0 [08:20:15]Method: POST [08:20:15]URL: /json_proto [08:20:15]Method is POST - this is cgi request [08:20:15]url: /json_proto [08:20:15]query_string will be loaded in cgi processing [08:20:15]execute_cgi json_proto POST (null) [08:20:15]execute_cgi path=json_proto method=POST [08:20:15]POST find Content-Length [08:20:15]Host: 172.17.43.195:8080 [08:20:15]Content-Length: 685 [08:20:15]Content-Type: application/json [08:20:15] [08:20:15]POST finish read [08:20:15]Found Content-Length = 685 [08:20:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 51.420, "sum" : 2000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:15]execute_script... [08:20: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)952768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 51.420, "sum" : 2000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:15]POST & json_proto [08:20:15]process_json_proto [08:20:15]json parsed OK: [08:20:15]protocol is kg_v1.0 [08:20:15]action value=close_receipt [08:20:15]process_action close_receipt [08:20:15]cmd_close_receipt [08:20:15]MH_GetDate [08:20:15]Write to MH i2c: F0 00 00 BA 02 AB [08:20:15]Write i2c OK [08:20:15]MH_I2C_Read... [08:20:15]Read from MH i2c: F0 [08:20:15]MH_I2C_Read... [08:20:15]Read from MH i2c: F0 09 00 [08:20:15]MH_I2C_Read... [08:20:15]Read from MH i2c: F0 09 00 BA 02 00 40 8F 24 67 74 2C AD 66 C1 [08:20:15]GetLastDocTimeStamp 1730447426 [08:20:15]current date 1730449216 [08:20:15]FM_GetShiftState [08:20:15]SAM_PROTO_GetShiftState [08:20:15]wFMCommunicate request_size=4 [08:20:15]MH_SAM_APDU [08:20:15]CAPDU: 80 13 01 00 [08:20:15]Write to MH i2c: E2 08 00 BB 02 80 13 01 00 00 00 00 00 3A [08:20:15]Write i2c OK [08:20:15]MH_I2C_Read... [08:20:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:15]Read from MH i2c: E2 [08:20:15]MH_I2C_Read... [08:20:15]Read from MH i2c: E2 0E 00 [08:20:15]MH_I2C_Read... [08:20:15]Read from MH i2c: E2 0E 00 BB 02 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 81 [08:20:15]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [08:20:15]wFMCommunicate OK [08:20:15]SAM_PROTO_GetShiftState done [08:20:15]FM_GetShiftState done [08:20:15]opened in 1730419605 [08:20:15]opened+sec_in_day 1730506005 [08:20:15]quantity*price = 200023 [08:20:15]sum+1 = 200025 [08:20:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.41 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 38 01.11.2024 08:20 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73169 ФПД: 210492890999672 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T082016&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73169&fm=210492890999672&tin=02508201610067®Number=0000000000091644&sum=200000 [08:20:17]StoreToDocumentArchive [08:20:17]shift 558 fd 73169 [08:20:17]save to /storage/0558/doc_00073169 [08:20:17]save last doc name /storage/0558/doc_00073169 to /storage/kkm_last_doc_name [08:20:17]save OK [08:20:17]Clear old archive folders... [08:20:17]ProcessDocumentItem done err = 0, tmpTLVsize=250 [08:20:17]tlvbuf is 00F76B90 [08:20:17]SAM_PROTO_ClearQueue [08:20:17]wFMCommunicate request_size=4 [08:20:17]MH_SAM_APDU [08:20:17]CAPDU: 80 09 00 00 [08:20:17]Write to MH i2c: E2 08 00 C8 02 80 09 00 00 00 00 00 00 3C [08:20:17]Write i2c OK [08:20:17]MH_I2C_Read... [08:20:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:20:17]Read from MH i2c: E2 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: E2 03 00 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: E2 03 00 C8 02 00 90 00 3E [08:20:17]RAPDU: 90 00 [08:20:17]wFMCommunicate OK [08:20:17]SAM_PROTO_ClearQueue done [08:20:17]KKMCreateOFDPacket [08:20:17]OFDProtocolAddRootSTLVToBuf [08:20:17]FM_MakeSignedData [08:20:17]FM_MakeSignedData [08:20:17]SAM_PROTO_SignData [08:20:17]wFMCommunicate request_size=4 [08:20:17]MH_SAM_APDU [08:20:17]CAPDU: 80 0D 01 02 [08:20:17]Write to MH i2c: E2 08 00 C9 02 80 0D 01 02 00 00 00 00 44 [08:20:17]Write i2c OK [08:20:17]MH_I2C_Read... [08:20:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:20:17]Read from MH i2c: E2 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: E2 03 00 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: E2 03 00 C9 02 00 90 00 3F [08:20:17]RAPDU: 90 00 [08:20:17]wFMCommunicate OK [08:20:17]wFMCommunicate request_size=255 [08:20:17]MH_SAM_APDU [08:20:17]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 40 8F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D1 1D 01 00 35 04 06 00 BF 71 [08:20:17]Write to MH i2c: E2 02 01 CA 02 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 40 8F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D1 1D 01 00 35 04 06 00 BF 71 00 00 EA [08:20:17]Write i2c OK [08:20:17]MH_I2C_Read... [08:20:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:17]Read from MH i2c: E2 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: E2 03 00 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: E2 03 00 CA 02 00 90 00 40 [08:20:17]RAPDU: 90 00 [08:20:17]wFMCommunicate OK [08:20:17]wFMCommunicate request_size=9 [08:20:17]MH_SAM_APDU [08:20:17]CAPDU: 80 0D 02 02 04 31 FE EB 78 [08:20:17]Write to MH i2c: E2 0C 00 CB 02 80 0D 02 02 04 00 31 FE EB 78 00 00 E1 [08:20:17]Write i2c OK [08:20:17]MH_I2C_Read... [08:20:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:17]Read from MH i2c: E2 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: E2 03 00 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: E2 03 00 CB 02 00 90 00 41 [08:20:17]RAPDU: 90 00 [08:20:17]wFMCommunicate OK [08:20:17]wFMCommunicate request_size=4 [08:20:17]MH_SAM_APDU [08:20:17]CAPDU: 80 0D 03 02 [08:20:17]Write to MH i2c: E2 08 00 CC 02 80 0D 03 02 00 00 00 00 49 [08:20:17]Write i2c OK [08:20:17]MH_I2C_Read... [08:20:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:20:17]Read from MH i2c: E2 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: E2 0B 00 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: E2 0B 00 CC 02 00 36 12 F8 6A 78 27 F7 38 90 00 C2 [08:20:17]RAPDU: 36 12 F8 6A 78 27 F7 38 90 00 [08:20:17]wFMCommunicate OK [08:20:17]SAM_PROTO_SignData done [08:20:17]FM_MakeSignedData done [08:20:17]CreateOFDProtocolMessage [08:20:17]wFMCommunicate request_size=4 [08:20:17]MH_SAM_APDU [08:20:17]CAPDU: 80 11 00 00 [08:20:17]Write to MH i2c: E2 08 00 CD 02 80 11 00 00 00 00 00 00 49 [08:20:17]Write i2c OK [08:20:17]MH_I2C_Read... [08:20:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:17]Read from MH i2c: E2 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: E2 17 00 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: E2 17 00 CD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 9D [08:20:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:20:17]wFMCommunicate OK [08:20:17]CreateOFDProtocolMessage done [08:20:17]OFDSenderStorePacket 73169 [08:20:17]StoreOFDPacket docnum=73169 [08:20:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 6D C0 06 01 2C 9C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 40 8F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D1 1D 01 00 35 04 06 00 BF 71 31 FE EB 78 36 12 F8 6A 78 27 F7 38 [08:20:17]CheckFolder [08:20:17]dirname=/storage/ofd_packets [08:20:17]CheckFolder done [08:20:17]ProducePacketName [08:20:17]name=ofd_packets/00073169 [08:20:17]NVStorageSaveData ofd_packets/00073169 [08:20:17]File name is /storage/ofd_packets/00073169 [08:20:17]Write 300 bytes [08:20:17]NVStorageSaveData done [08:20:17]OFDSenderStorePacket done [08:20:17]KKMCreateOFDPacket done [08:20:17]NVStorageSaveData kkm_last_timestamp [08:20:17]File name is /storage/kkm_last_timestamp [08:20:17]Write 4 bytes [08:20:17]NVStorageSaveData done [08:20:17]ExternCall_PrintAddStr [08:20:17]wPrintStart [08:20:17]Write to MH i2c: 01 00 00 CE 02 D0 [08:20:17]Write i2c OK [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: 01 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: 01 07 00 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: 01 07 00 CE 02 00 00 00 00 00 FF 0F E5 [08:20:17]RasterBufferAndPrint [08:20:17]line Счет N : (1)952768 [08:20:17]line ИНН: 02508201610067 [08:20:17]line Контрольно-Кассовый Чек [08:20:17]line ПРОДАЖА [08:20:17]line ТРК (МРК, ГНК) : 71 [08:20:17]line Товар: 2711190000 [08:20:17]line ГАЗ-К-3 [08:20:17]line 51.420 * 38.90 [08:20:17]line = 2000.24 [08:20:17]line НДС 12% НСП 1% [08:20:17]line > о реализуемом товаре [08:20:17]line ОКРУГЛЕНИЕ: -0.24 [08:20:17]line ИТОГО: 2000.00 [08:20:17]line Внесено: 2000.00 [08:20:17]line СДАЧА: 0.00 [08:20:17]line НСП 1% : 17.70 [08:20:17]line НДС 12% : 212.41 [08:20:17]line Наличными: 2000.00 [08:20:17]line Безнал.: 0.00 [08:20:17]line Место: АЗС № 113 "Партнер Нефть" [08:20:17]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [08:20:17]line СНО: Общий режим [08:20:17]line Чек 38 01.11.2024 08:20 [08:20:17]line Смена: 558 ФФД: 1.0 [08:20:17]line ЗНМ: 0300000087 [08:20:17]line РНМ: 0000000000091644 [08:20:17]line Версия ККМ: 001 [08:20:17]line ФМ: 0000000000874662 [08:20:17]line ФД: 73169 [08:20:17]line ФПД: 210492890999672 [08:20:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T082016&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73169&fm=210492890999672&tin=02508201610067®Number=0000000000091644&sum=200000 [08:20:17]OFD Sender: Processing packet 73169 [packets to send 282, broken 281] [08:20:17]ProducePacketName [08:20:17]name=ofd_packets/00073169 [08:20:17]OFD Sender: To server: pG, [08:20:17]CommunicateWithHost lk.salyk.kg:30040 [08:20:17]ConnectInit lk.salyk.kg [08:20:17]written 0, free lines is 4095 [08:20:18]Write to MH i2c: 01 00 00 F9 02 FB [08:20:18]Write i2c OK [08:20:18]MH_I2C_Read... [08:20:18]Read from MH i2c: 01 [08:20:18]MH_I2C_Read... [08:20:18]Read from MH i2c: 01 07 00 [08:20:18]MH_I2C_Read... [08:20:18]Read from MH i2c: 01 07 00 F9 02 00 00 00 00 00 D9 0C E7 [08:20:18]RasterBufferAndPrint [08:20:18]line [08:20:18]line [08:20:18]line [08:20:18]line [08:20:18]line [08:20:18]written 0, free lines is 3298 [08:20:18]MH_Cut [08:20:18]Write to MH i2c: D1 01 00 00 03 01 D5 [08:20:18]Write i2c OK [08:20:18]MH_I2C_Read... [08:20:18]Read from MH i2c: D1 [08:20:18]MH_I2C_Read... [08:20:18]Read from MH i2c: D1 01 00 [08:20:18]MH_I2C_Read... [08:20:18]Read from MH i2c: D1 01 00 00 03 00 D4 [08:20:18]Write to MH i2c: 01 00 00 01 03 04 [08:20:18]Write i2c OK [08:20:18]MH_I2C_Read... [08:20:18]Connected sock=10 [08:20:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 6D C0 06 01 2C 9C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 40 8F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D1 1D 01 00 35 04 06 00 BF 71 31 FE EB 78 36 12 F8 6A 78 27 F7 38 [08:20:19]*** Cut start [08:20:19]*** Partial cut [08:20:19]*** CUTSNS_PIN = 1 [08:20:19]*** CUTSNS_PIN = 0 [08:20:19]*** Brake cut motor [08:20:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 34 BA 47 00 A8 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D1 1D 01 00 F4 03 04 00 F4 39 24 67 B6 04 01 00 00 FE 56 EC 7D E7 55 69 67 [08:20:19]CommunicateWithHost err = 0 [08:20:19]CheckOFDResponse [08:20:19]1017 (14) - 77093643461234 [08:20:19]1041 (16) - 0000000000874662 [08:20:19]1040 (4) - 73169 [08:20:19]1012 (4) - 01.11.2024 02:16 [08:20:19]1206 (1) - 0 [08:20:19]OFD Sender: Remove packet 73169 [08:20:19]ProducePacketName [08:20:19]name=ofd_packets/00073169 [08:20:19]NVStorageDeleteData [08:20:19]Read from MH i2c: 01 [08:20:19]MH_I2C_Read... [08:20:19]*** Stop cut motor [08:20:19]*** Cut end [08:20:19]Read from MH i2c: 01 07 00 [08:20:19]MH_I2C_Read... [08:20:19]Read from MH i2c: 01 07 00 01 03 00 00 00 00 00 FF 0F 19 [08:20:19]process_action close_receipt done [08:20:19]requested_data is exist [08:20:19]produce_requested_data [08:20:19]requested_item fm.sn is exist - process it [08:20:19]wFMCommunicate request_size=4 [08:20:19]MH_SAM_APDU [08:20:19]CAPDU: 80 11 00 00 [08:20:19]Write to MH i2c: E2 08 00 02 03 80 11 00 00 00 00 00 00 7F [08:20:19]Write i2c OK [08:20:19]MH_I2C_Read... [08:20:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:19]Read from MH i2c: E2 [08:20:19]MH_I2C_Read... [08:20:19]Read from MH i2c: E2 17 00 [08:20:19]MH_I2C_Read... [08:20:19]Read from MH i2c: E2 17 00 02 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D3 [08:20:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:20:19]wFMCommunicate OK [08:20:19]requested_item fd.num is exist - process it [08:20:19]SAM_PROTO_GetFieldsCounters [08:20:19]wFMCommunicate request_size=4 [08:20:19]MH_SAM_APDU [08:20:19]CAPDU: 80 13 00 00 [08:20:19]Write to MH i2c: E2 08 00 03 03 80 13 00 00 00 00 00 00 82 [08:20:19]Write i2c OK [08:20:19]MH_I2C_Read... [08:20:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:19]Read from MH i2c: E2 [08:20:19]MH_I2C_Read... [08:20:19]Read from MH i2c: E2 62 00 [08:20:19]MH_I2C_Read... [08:20:19]Read from MH i2c: E2 62 00 03 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 D1 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [08:20:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 D1 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:20:19]wFMCommunicate OK [08:20:19]SAM_PROTO_GetFieldsCounters done [08:20:19]requested_item shift.num is exist - process it [08:20:19]requested_item shift.opened is exist - process it [08:20:19]req_shift_opened [08:20:19]FM_GetShiftState [08:20:19]SAM_PROTO_GetShiftState [08:20:19]wFMCommunicate request_size=4 [08:20:19]MH_SAM_APDU [08:20:19]CAPDU: 80 13 01 00 [08:20:19]Write to MH i2c: E2 08 00 04 03 80 13 01 00 00 00 00 00 84 [08:20:19]Write i2c OK [08:20:19]MH_I2C_Read... [08:20:19]OFD Sender: No OFD packet to send [08:20:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:20]Read from MH i2c: E2 [08:20:20]MH_I2C_Read... [08:20:20]Read from MH i2c: E2 0E 00 [08:20:20]MH_I2C_Read... [08:20:20]Read from MH i2c: E2 0E 00 04 03 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 CB [08:20:20]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [08:20:20]wFMCommunicate OK [08:20:20]SAM_PROTO_GetShiftState done [08:20:20]FM_GetShiftState done [08:20:20]req_shift_opened done [08:20:20]requested_item shift.open_date is exist - process it [08:20:20]req_shift_open_date [08:20:20]req_shift_open_date done [08:20:20]produce_requested_data done [08:20:20]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73169,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [08:20:20]process_action_free close_receipt [08:20:20]json_value_free [08:20:20]json_value_free done [08:20:20]process_json_proto returns [08:20:20]Send response to host [08:20:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73169,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [08:20:20]free response buf [08:20:20]execute_script done [08:20:20]execute_script returns [08:20:20]free content buf [08:20:20]Sock 7.Close socket [08:20:20]Sock 7.Thread stoped [08:20:24]OFD Sender: No OFD packet to send [08:20:29]OFD Sender: No OFD packet to send [08:20:35]OFD Sender: No OFD packet to send [08:20:40]OFD Sender: No OFD packet to send [08:20:45]OFD Sender: No OFD packet to send [08:20:50]OFD Sender: No OFD packet to send [08:20:55]OFD Sender: No OFD packet to send [08:21:00]OFD Sender: No OFD packet to send [08:21:05]OFD Sender: No OFD packet to send [08:21:10]OFD Sender: No OFD packet to send [08:21:15]OFD Sender: No OFD packet to send [08:21:20]OFD Sender: No OFD packet to send [08:21:25]OFD Sender: No OFD packet to send [08:21:30]OFD Sender: No OFD packet to send [08:21:35]OFD Sender: No OFD packet to send [08:21:40]OFD Sender: No OFD packet to send [08:21:45]OFD Sender: No OFD packet to send [08:21:50]OFD Sender: No OFD packet to send [08:21:55]OFD Sender: No OFD packet to send [08:22:00]OFD Sender: No OFD packet to send [08:22:05]OFD Sender: No OFD packet to send [08:22:09]recv_with_timeout no data received [08:22:10]OFD Sender: No OFD packet to send [08:22:15]OFD Sender: No OFD packet to send [08:22:20]OFD Sender: No OFD packet to send [08:22:20]accept exits with 9 [08:22:20]New connection [08:22:20]New thread 3067624804 created [08:22:20]Thread 3067481444 joined [08:22:20]Waiting for new connection... [08:22:20] Sock 9.Parse request [08:22:20]Sock 9.Check first char [08:22:20]Sock 9.First char is OK [08:22:20]request: POST /json_proto HTTP/1.0 [08:22:20]Method: POST [08:22:20]URL: /json_proto [08:22:20]Method is POST - this is cgi request [08:22:20]url: /json_proto [08:22:20]query_string will be loaded in cgi processing [08:22:20]execute_cgi json_proto POST (null) [08:22:20]execute_cgi path=json_proto method=POST [08:22:20]POST find Content-Length [08:22:20]Host: 172.17.43.195:8080 [08:22:20]Content-Length: 677 [08:22:20]Content-Type: application/json [08:22:20] [08:22:20]POST finish read [08:22:20]Found Content-Length = 677 [08:22:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:20]execute_script... [08:22: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)952770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:20]POST & json_proto [08:22:20]process_json_proto [08:22:20]json parsed OK: [08:22:20]protocol is kg_v1.0 [08:22:20]action value=close_receipt [08:22:20]process_action close_receipt [08:22:20]cmd_close_receipt [08:22:20]MH_GetDate [08:22:20]Write to MH i2c: F0 00 00 05 03 F7 [08:22:20]Write i2c OK [08:22:20]MH_I2C_Read... [08:22:20]Read from MH i2c: F0 [08:22:20]MH_I2C_Read... [08:22:20]Read from MH i2c: F0 09 00 [08:22:20]MH_I2C_Read... [08:22:20]Read from MH i2c: F0 09 00 05 03 00 BC 8F 24 67 74 2C AD 66 89 [08:22:20]GetLastDocTimeStamp 1730449216 [08:22:20]current date 1730449340 [08:22:20]FM_GetShiftState [08:22:20]SAM_PROTO_GetShiftState [08:22:20]wFMCommunicate request_size=4 [08:22:20]MH_SAM_APDU [08:22:20]CAPDU: 80 13 01 00 [08:22:20]Write to MH i2c: E2 08 00 06 03 80 13 01 00 00 00 00 00 86 [08:22:20]Write i2c OK [08:22:20]MH_I2C_Read... [08:22:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:20]Read from MH i2c: E2 [08:22:20]MH_I2C_Read... [08:22:20]Read from MH i2c: E2 0E 00 [08:22:20]MH_I2C_Read... [08:22:20]Read from MH i2c: E2 0E 00 06 03 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 CD [08:22:20]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [08:22:20]wFMCommunicate OK [08:22:20]SAM_PROTO_GetShiftState done [08:22:20]FM_GetShiftState done [08:22:20]opened in 1730419605 [08:22:20]opened+sec_in_day 1730506005 [08:22:20]quantity*price = 40006 [08:22:20]sum+1 = 40007 [08:22:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 39 01.11.2024 08:22 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73170 ФПД: 193444824113858 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T082221&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73170&fm=193444824113858&tin=02508201610067®Number=0000000000091644&sum=40000 [08:22:21]StoreToDocumentArchive [08:22:21]shift 558 fd 73170 [08:22:21]save to /storage/0558/doc_00073170 [08:22:21]save last doc name /storage/0558/doc_00073170 to /storage/kkm_last_doc_name [08:22:21]save OK [08:22:21]Clear old archive folders... [08:22:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:22:21]tlvbuf is 00F76BB0 [08:22:21]SAM_PROTO_ClearQueue [08:22:21]wFMCommunicate request_size=4 [08:22:21]MH_SAM_APDU [08:22:21]CAPDU: 80 09 00 00 [08:22:21]Write to MH i2c: E2 08 00 13 03 80 09 00 00 00 00 00 00 88 [08:22:21]Write i2c OK [08:22:21]MH_I2C_Read... [08:22:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:22:21]Read from MH i2c: E2 [08:22:21]MH_I2C_Read... [08:22:21]Read from MH i2c: E2 03 00 [08:22:21]MH_I2C_Read... [08:22:21]Read from MH i2c: E2 03 00 13 03 00 90 00 8A [08:22:21]RAPDU: 90 00 [08:22:21]wFMCommunicate OK [08:22:21]SAM_PROTO_ClearQueue done [08:22:21]KKMCreateOFDPacket [08:22:21]OFDProtocolAddRootSTLVToBuf [08:22:21]FM_MakeSignedData [08:22:21]FM_MakeSignedData [08:22:21]SAM_PROTO_SignData [08:22:21]wFMCommunicate request_size=4 [08:22:21]MH_SAM_APDU [08:22:21]CAPDU: 80 0D 01 02 [08:22:21]Write to MH i2c: E2 08 00 14 03 80 0D 01 02 00 00 00 00 90 [08:22:21]Write i2c OK [08:22:21]MH_I2C_Read... [08:22:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:22:21]Read from MH i2c: E2 [08:22:21]MH_I2C_Read... [08:22:21]Read from MH i2c: E2 03 00 [08:22:21]MH_I2C_Read... [08:22:21]Read from MH i2c: E2 03 00 14 03 00 90 00 8B [08:22:21]RAPDU: 90 00 [08:22:21]wFMCommunicate OK [08:22:21]wFMCommunicate request_size=255 [08:22:21]MH_SAM_APDU [08:22: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 BD 8F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D2 1D 01 00 35 04 06 00 AF [08:22:21]Write to MH i2c: E2 02 01 15 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 BD 8F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D2 1D 01 00 35 04 06 00 AF 00 00 BB [08:22:21]Write i2c OK [08:22:21]MH_I2C_Read... [08:22:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:22]Read from MH i2c: E2 [08:22:22]MH_I2C_Read... [08:22:22]Read from MH i2c: E2 03 00 [08:22:22]MH_I2C_Read... [08:22:22]Read from MH i2c: E2 03 00 15 03 00 90 00 8C [08:22:22]RAPDU: 90 00 [08:22:22]wFMCommunicate OK [08:22:22]wFMCommunicate request_size=10 [08:22:22]MH_SAM_APDU [08:22:22]CAPDU: 80 0D 02 02 05 EF E2 06 62 C2 [08:22:22]Write to MH i2c: E2 0D 00 16 03 80 0D 02 02 05 00 EF E2 06 62 C2 00 00 98 [08:22:22]Write i2c OK [08:22:22]MH_I2C_Read... [08:22:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:22]Read from MH i2c: E2 [08:22:22]MH_I2C_Read... [08:22:22]Read from MH i2c: E2 03 00 [08:22:22]MH_I2C_Read... [08:22:22]Read from MH i2c: E2 03 00 16 03 00 90 00 8D [08:22:22]RAPDU: 90 00 [08:22:22]wFMCommunicate OK [08:22:22]wFMCommunicate request_size=4 [08:22:22]MH_SAM_APDU [08:22:22]CAPDU: 80 0D 03 02 [08:22:22]Write to MH i2c: E2 08 00 17 03 80 0D 03 02 00 00 00 00 95 [08:22:22]Write i2c OK [08:22:22]MH_I2C_Read... [08:22:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:22:22]Read from MH i2c: E2 [08:22:22]MH_I2C_Read... [08:22:22]Read from MH i2c: E2 0B 00 [08:22:22]MH_I2C_Read... [08:22:22]Read from MH i2c: E2 0B 00 17 03 00 5C 56 5C 64 D2 CE 9B 5E 90 00 A1 [08:22:22]RAPDU: 5C 56 5C 64 D2 CE 9B 5E 90 00 [08:22:22]wFMCommunicate OK [08:22:22]SAM_PROTO_SignData done [08:22:22]FM_MakeSignedData done [08:22:22]CreateOFDProtocolMessage [08:22:22]wFMCommunicate request_size=4 [08:22:22]MH_SAM_APDU [08:22:22]CAPDU: 80 11 00 00 [08:22:22]Write to MH i2c: E2 08 00 18 03 80 11 00 00 00 00 00 00 95 [08:22:22]Write i2c OK [08:22:22]MH_I2C_Read... [08:22:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:22]Read from MH i2c: E2 [08:22:22]MH_I2C_Read... [08:22:22]Read from MH i2c: E2 17 00 [08:22:22]MH_I2C_Read... [08:22:22]Read from MH i2c: E2 17 00 18 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 E9 [08:22:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:22:22]wFMCommunicate OK [08:22:22]CreateOFDProtocolMessage done [08:22:22]OFDSenderStorePacket 73170 [08:22:22]StoreOFDPacket docnum=73170 [08:22:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 C6 2E 07 01 F2 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 BD 8F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D2 1D 01 00 35 04 06 00 AF EF E2 06 62 C2 5C 56 5C 64 D2 CE 9B 5E [08:22:22]CheckFolder [08:22:22]dirname=/storage/ofd_packets [08:22:22]CheckFolder done [08:22:22]ProducePacketName [08:22:22]name=ofd_packets/00073170 [08:22:22]NVStorageSaveData ofd_packets/00073170 [08:22:22]File name is /storage/ofd_packets/00073170 [08:22:22]Write 301 bytes [08:22:22]NVStorageSaveData done [08:22:22]OFDSenderStorePacket done [08:22:22]KKMCreateOFDPacket done [08:22:22]NVStorageSaveData kkm_last_timestamp [08:22:22]File name is /storage/kkm_last_timestamp [08:22:22]Write 4 bytes [08:22:22]NVStorageSaveData done [08:22:22]ExternCall_PrintAddStr [08:22:22]wPrintStart [08:22:22]Write to MH i2c: 01 00 00 19 03 1C [08:22:22]Write i2c OK [08:22:22]MH_I2C_Read... [08:22:22]Read from MH i2c: 01 [08:22:22]MH_I2C_Read... [08:22:22]Read from MH i2c: 01 07 00 [08:22:22]MH_I2C_Read... [08:22:22]Read from MH i2c: 01 07 00 19 03 00 00 00 00 00 FF 0F 31 [08:22:22]RasterBufferAndPrint [08:22:22]line Счет N : (1)952770 [08:22:22]line ИНН: 02508201610067 [08:22:22]line Контрольно-Кассовый Чек [08:22:22]line ПРОДАЖА [08:22:22]line ТРК (МРК, ГНК) : 63 [08:22:22]line Товар: 2710124130 [08:22:22]line Аи-92-К-5 [08:22:22]line 5.980 * 66.90 [08:22:22]line = 400.06 [08:22:22]line НДС 12% НСП 1% [08:22:22]line > о реализуемом товаре [08:22:22]line ОКРУГЛЕНИЕ: -0.06 [08:22:22]line ИТОГО: 400.00 [08:22:22]line Внесено: 400.00 [08:22:22]line СДАЧА: 0.00 [08:22:22]line НСП 1% : 3.54 [08:22:22]line НДС 12% : 42.48 [08:22:22]line Наличными: 400.00 [08:22:22]line Безнал.: 0.00 [08:22:22]line Место: АЗС № 113 "Партнер Нефть" [08:22:22]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [08:22:22]line СНО: Общий режим [08:22:22]line Чек 39 01.11.2024 08:22 [08:22:22]line Смена: 558 ФФД: 1.0 [08:22:22]line ЗНМ: 0300000087 [08:22:22]line РНМ: 0000000000091644 [08:22:22]line Версия ККМ: 001 [08:22:22]line ФМ: 0000000000874662 [08:22:22]line ФД: 73170 [08:22:22]line ФПД: 193444824113858 [08:22:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T082221&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73170&fm=193444824113858&tin=02508201610067®Number=0000000000091644&sum=40000 [08:22:22]OFD Sender: Processing packet 73170 [packets to send 282, broken 281] [08:22:22]ProducePacketName [08:22:22]name=ofd_packets/00073170 [08:22:22]OFD Sender: To server: pG, [08:22:22]CommunicateWithHost lk.salyk.kg:30040 [08:22:22]ConnectInit lk.salyk.kg [08:22:22]written 0, free lines is 4095 [08:22:23]Write to MH i2c: 01 00 00 44 03 47 [08:22:23]Write i2c OK [08:22:23]MH_I2C_Read... [08:22:23]Read from MH i2c: 01 [08:22:23]MH_I2C_Read... [08:22:23]Read from MH i2c: 01 07 00 [08:22:23]MH_I2C_Read... [08:22:23]Read from MH i2c: 01 07 00 44 03 00 00 00 00 00 D9 0C 33 [08:22:23]RasterBufferAndPrint [08:22:23]line [08:22:23]line [08:22:23]line [08:22:23]line [08:22:23]line [08:22:23]written 0, free lines is 3293 [08:22:23]MH_Cut [08:22:23]Write to MH i2c: D1 01 00 4B 03 01 20 [08:22:23]Write i2c OK [08:22:23]MH_I2C_Read... [08:22:23]Read from MH i2c: D1 [08:22:23]MH_I2C_Read... [08:22:23]Read from MH i2c: D1 01 00 [08:22:23]MH_I2C_Read... [08:22:23]Read from MH i2c: D1 01 00 4B 03 00 1F [08:22:23]Write to MH i2c: 01 00 00 4C 03 4F [08:22:23]Write i2c OK [08:22:23]MH_I2C_Read... [08:22:23]Connected sock=11 [08:22:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 C6 2E 07 01 F2 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 BD 8F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D2 1D 01 00 35 04 06 00 AF EF E2 06 62 C2 5C 56 5C 64 D2 CE 9B 5E [08:22:23]*** Cut start [08:22:23]*** Partial cut [08:22:23]*** CUTSNS_PIN = 1 [08:22:23]*** CUTSNS_PIN = 0 [08:22:24]*** Brake cut motor [08:22:24]Read from MH i2c: 01 [08:22:24]MH_I2C_Read... [08:22:24]*** Stop cut motor [08:22:24]*** Cut end [08:22:24]Read from MH i2c: 01 07 00 [08:22:24]MH_I2C_Read... [08:22:24]Read from MH i2c: 01 07 00 4C 03 00 00 00 00 00 FF 0F 64 [08:22:24]process_action close_receipt done [08:22:24]requested_data is exist [08:22:24]produce_requested_data [08:22:24]requested_item fm.sn is exist - process it [08:22:24]wFMCommunicate request_size=4 [08:22:24]MH_SAM_APDU [08:22:24]CAPDU: 80 11 00 00 [08:22:24]Write to MH i2c: E2 08 00 4D 03 80 11 00 00 00 00 00 00 CA [08:22:24]Write i2c OK [08:22:24]MH_I2C_Read... [08:22:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:24]Read from MH i2c: E2 [08:22:24]MH_I2C_Read... [08:22:24]Read from MH i2c: E2 17 00 [08:22:24]MH_I2C_Read... [08:22:24]Read from MH i2c: E2 17 00 4D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 1E [08:22:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:22:24]wFMCommunicate OK [08:22:24]requested_item fd.num is exist - process it [08:22:24]SAM_PROTO_GetFieldsCounters [08:22:24]wFMCommunicate request_size=4 [08:22:24]MH_SAM_APDU [08:22:24]CAPDU: 80 13 00 00 [08:22:24]Write to MH i2c: E2 08 00 4E 03 80 13 00 00 00 00 00 00 CD [08:22:24]Write i2c OK [08:22:24]MH_I2C_Read... [08:22:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:22:24]Read from MH i2c: E2 [08:22:24]MH_I2C_Read... [08:22:24]Read from MH i2c: E2 62 00 [08:22:24]MH_I2C_Read... [08:22:24]Read from MH i2c: E2 62 00 4E 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 D2 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [08:22:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 D2 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:22:24]wFMCommunicate OK [08:22:24]SAM_PROTO_GetFieldsCounters done [08:22:24]requested_item shift.num is exist - process it [08:22:24]requested_item shift.opened is exist - process it [08:22:24]req_shift_opened [08:22:24]FM_GetShiftState [08:22:24]SAM_PROTO_GetShiftState [08:22:24]wFMCommunicate request_size=4 [08:22:24]MH_SAM_APDU [08:22:24]CAPDU: 80 13 01 00 [08:22:24]Write to MH i2c: E2 08 00 4F 03 80 13 01 00 00 00 00 00 CF [08:22:24]Write i2c OK [08:22:24]MH_I2C_Read... [08:22:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:24]Read from MH i2c: E2 [08:22:24]MH_I2C_Read... [08:22:24]Read from MH i2c: E2 0E 00 [08:22:24]MH_I2C_Read... [08:22:24]Read from MH i2c: E2 0E 00 4F 03 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 16 [08:22:24]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [08:22:24]wFMCommunicate OK [08:22:24]SAM_PROTO_GetShiftState done [08:22:24]FM_GetShiftState done [08:22:24]req_shift_opened done [08:22:24]requested_item shift.open_date is exist - process it [08:22:24]req_shift_open_date [08:22:24]req_shift_open_date done [08:22:24]produce_requested_data done [08:22:24]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73170,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [08:22:24]process_action_free close_receipt [08:22:24]json_value_free [08:22:24]json_value_free done [08:22:24]process_json_proto returns [08:22:24]Send response to host [08:22:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73170,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [08:22:24]free response buf [08:22:24]execute_script done [08:22:24]execute_script returns [08:22:24]free content buf [08:22:24]Sock 9.Close socket [08:22:24]Sock 9.Thread stoped [08:22:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 30 74 47 00 4E 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D2 1D 01 00 F4 03 04 00 75 3A 24 67 B6 04 01 00 00 77 D0 D3 40 77 E3 12 FF [08:22:28]CommunicateWithHost err = 0 [08:22:28]CheckOFDResponse [08:22:28]1017 (14) - 77093643461234 [08:22:28]1041 (16) - 0000000000874662 [08:22:28]1040 (4) - 73170 [08:22:28]1012 (4) - 01.11.2024 02:18 [08:22:28]1206 (1) - 0 [08:22:28]OFD Sender: Remove packet 73170 [08:22:28]ProducePacketName [08:22:28]name=ofd_packets/00073170 [08:22:28]NVStorageDeleteData [08:22:28]OFD Sender: No OFD packet to send [08:22:33]OFD Sender: No OFD packet to send [08:22:34]accept exits with 7 [08:22:34]New connection [08:22:34]New thread 3067481444 created [08:22:34]Thread 3067624804 joined [08:22:34]Waiting for new connection... [08:22:34] Sock 7.Parse request [08:22:34]Sock 7.Check first char [08:22:34]Sock 7.First char is OK [08:22:34]request: POST /json_proto HTTP/1.0 [08:22:34]Method: POST [08:22:34]URL: /json_proto [08:22:34]Method is POST - this is cgi request [08:22:34]url: /json_proto [08:22:34]query_string will be loaded in cgi processing [08:22:34]execute_cgi json_proto POST (null) [08:22:34]execute_cgi path=json_proto method=POST [08:22:34]POST find Content-Length [08:22:34]Host: 172.17.43.195:8080 [08:22:34]Content-Length: 687 [08:22:34]Content-Type: application/json [08:22:34] [08:22:34]POST finish read [08:22:34]Found Content-Length = 687 [08:22:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:34]execute_script... [08:22: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)952769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:34]POST & json_proto [08:22:34]process_json_proto [08:22:34]json parsed OK: [08:22:34]protocol is kg_v1.0 [08:22:34]action value=close_receipt [08:22:34]process_action close_receipt [08:22:34]cmd_close_receipt [08:22:34]MH_GetDate [08:22:34]Write to MH i2c: F0 00 00 50 03 42 [08:22:34]Write i2c OK [08:22:34]MH_I2C_Read... [08:22:34]Read from MH i2c: F0 [08:22:34]MH_I2C_Read... [08:22:34]Read from MH i2c: F0 09 00 [08:22:34]MH_I2C_Read... [08:22:34]Read from MH i2c: F0 09 00 50 03 00 CB 8F 24 67 74 2C AD 66 E3 [08:22:34]GetLastDocTimeStamp 1730449341 [08:22:34]current date 1730449355 [08:22:34]FM_GetShiftState [08:22:34]SAM_PROTO_GetShiftState [08:22:34]wFMCommunicate request_size=4 [08:22:34]MH_SAM_APDU [08:22:34]CAPDU: 80 13 01 00 [08:22:34]Write to MH i2c: E2 08 00 51 03 80 13 01 00 00 00 00 00 D1 [08:22:34]Write i2c OK [08:22:34]MH_I2C_Read... [08:22:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:34]Read from MH i2c: E2 [08:22:34]MH_I2C_Read... [08:22:34]Read from MH i2c: E2 0E 00 [08:22:34]MH_I2C_Read... [08:22:34]Read from MH i2c: E2 0E 00 51 03 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 18 [08:22:34]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [08:22:34]wFMCommunicate OK [08:22:34]SAM_PROTO_GetShiftState done [08:22:34]FM_GetShiftState done [08:22:34]opened in 1730419605 [08:22:34]opened+sec_in_day 1730506005 [08:22:34]quantity*price = 300075 [08:22:34]sum+1 = 300077 [08:22:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 40 01.11.2024 08:22 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73171 ФПД: 211531844385768 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T082235&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73171&fm=211531844385768&tin=02508201610067®Number=0000000000091644&sum=300000 [08:22:35]StoreToDocumentArchive [08:22:35]shift 558 fd 73171 [08:22:35]save to /storage/0558/doc_00073171 [08:22:35]save last doc name /storage/0558/doc_00073171 to /storage/kkm_last_doc_name [08:22:35]save OK [08:22:35]Clear old archive folders... [08:22:35]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:22:35]tlvbuf is 00F7F8C0 [08:22:35]SAM_PROTO_ClearQueue [08:22:35]wFMCommunicate request_size=4 [08:22:35]MH_SAM_APDU [08:22:35]CAPDU: 80 09 00 00 [08:22:35]Write to MH i2c: E2 08 00 5E 03 80 09 00 00 00 00 00 00 D3 [08:22:35]Write i2c OK [08:22:35]MH_I2C_Read... [08:22:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:22:35]Read from MH i2c: E2 [08:22:35]MH_I2C_Read... [08:22:35]Read from MH i2c: E2 03 00 [08:22:35]MH_I2C_Read... [08:22:35]Read from MH i2c: E2 03 00 5E 03 00 90 00 D5 [08:22:35]RAPDU: 90 00 [08:22:35]wFMCommunicate OK [08:22:35]SAM_PROTO_ClearQueue done [08:22:35]KKMCreateOFDPacket [08:22:35]OFDProtocolAddRootSTLVToBuf [08:22:35]FM_MakeSignedData [08:22:35]FM_MakeSignedData [08:22:35]SAM_PROTO_SignData [08:22:35]wFMCommunicate request_size=4 [08:22:35]MH_SAM_APDU [08:22:35]CAPDU: 80 0D 01 02 [08:22:35]Write to MH i2c: E2 08 00 5F 03 80 0D 01 02 00 00 00 00 DB [08:22:35]Write i2c OK [08:22:35]MH_I2C_Read... [08:22:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:22:35]Read from MH i2c: E2 [08:22:35]MH_I2C_Read... [08:22:35]Read from MH i2c: E2 03 00 [08:22:35]MH_I2C_Read... [08:22:35]Read from MH i2c: E2 03 00 5F 03 00 90 00 D6 [08:22:35]RAPDU: 90 00 [08:22:35]wFMCommunicate OK [08:22:35]wFMCommunicate request_size=255 [08:22:35]MH_SAM_APDU [08:22: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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 CB 8F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D3 1D 01 00 35 04 06 00 [08:22:35]Write to MH i2c: E2 02 01 60 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 CB 8F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D3 1D 01 00 35 04 06 00 00 00 AD [08:22:36]Write i2c OK [08:22:36]MH_I2C_Read... [08:22:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:36]Read from MH i2c: E2 [08:22:36]MH_I2C_Read... [08:22:36]Read from MH i2c: E2 03 00 [08:22:36]MH_I2C_Read... [08:22:36]Read from MH i2c: E2 03 00 60 03 00 90 00 D7 [08:22:36]RAPDU: 90 00 [08:22:36]wFMCommunicate OK [08:22:36]wFMCommunicate request_size=11 [08:22:36]MH_SAM_APDU [08:22:36]CAPDU: 80 0D 02 02 06 C0 63 18 71 7B E8 [08:22:36]Write to MH i2c: E2 0E 00 61 03 80 0D 02 02 06 00 C0 63 18 71 7B E8 00 00 F9 [08:22:36]Write i2c OK [08:22:36]MH_I2C_Read... [08:22:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:36]Read from MH i2c: E2 [08:22:36]MH_I2C_Read... [08:22:36]Read from MH i2c: E2 03 00 [08:22:36]MH_I2C_Read... [08:22:36]Read from MH i2c: E2 03 00 61 03 00 90 00 D8 [08:22:36]RAPDU: 90 00 [08:22:36]wFMCommunicate OK [08:22:36]wFMCommunicate request_size=4 [08:22:36]MH_SAM_APDU [08:22:36]CAPDU: 80 0D 03 02 [08:22:36]Write to MH i2c: E2 08 00 62 03 80 0D 03 02 00 00 00 00 E0 [08:22:36]Write i2c OK [08:22:36]MH_I2C_Read... [08:22:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:22:36]Read from MH i2c: E2 [08:22:36]MH_I2C_Read... [08:22:36]Read from MH i2c: E2 0B 00 [08:22:36]MH_I2C_Read... [08:22:36]Read from MH i2c: E2 0B 00 62 03 00 62 B1 D9 AE 47 FA 50 C5 90 00 D1 [08:22:36]RAPDU: 62 B1 D9 AE 47 FA 50 C5 90 00 [08:22:36]wFMCommunicate OK [08:22:36]SAM_PROTO_SignData done [08:22:36]FM_MakeSignedData done [08:22:36]CreateOFDProtocolMessage [08:22:36]wFMCommunicate request_size=4 [08:22:36]MH_SAM_APDU [08:22:36]CAPDU: 80 11 00 00 [08:22:36]Write to MH i2c: E2 08 00 63 03 80 11 00 00 00 00 00 00 E0 [08:22:36]Write i2c OK [08:22:36]MH_I2C_Read... [08:22:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:36]Read from MH i2c: E2 [08:22:36]MH_I2C_Read... [08:22:36]Read from MH i2c: E2 17 00 [08:22:36]MH_I2C_Read... [08:22:36]Read from MH i2c: E2 17 00 63 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 34 [08:22:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:22:36]wFMCommunicate OK [08:22:36]CreateOFDProtocolMessage done [08:22:36]OFDSenderStorePacket 73171 [08:22:36]StoreOFDPacket docnum=73171 [08:22:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 6E 5F 08 01 C6 9D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 CB 8F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D3 1D 01 00 35 04 06 00 C0 63 18 71 7B E8 62 B1 D9 AE 47 FA 50 C5 [08:22:36]CheckFolder [08:22:36]dirname=/storage/ofd_packets [08:22:36]CheckFolder done [08:22:36]ProducePacketName [08:22:36]name=ofd_packets/00073171 [08:22:36]NVStorageSaveData ofd_packets/00073171 [08:22:36]File name is /storage/ofd_packets/00073171 [08:22:36]Write 302 bytes [08:22:36]NVStorageSaveData done [08:22:36]OFDSenderStorePacket done [08:22:36]KKMCreateOFDPacket done [08:22:36]NVStorageSaveData kkm_last_timestamp [08:22:36]File name is /storage/kkm_last_timestamp [08:22:36]Write 4 bytes [08:22:36]NVStorageSaveData done [08:22:36]ExternCall_PrintAddStr [08:22:36]wPrintStart [08:22:36]Write to MH i2c: 01 00 00 64 03 67 [08:22:36]Write i2c OK [08:22:36]MH_I2C_Read... [08:22:36]Read from MH i2c: 01 [08:22:36]MH_I2C_Read... [08:22:36]Read from MH i2c: 01 07 00 [08:22:36]MH_I2C_Read... [08:22:36]Read from MH i2c: 01 07 00 64 03 00 00 00 00 00 FF 0F 7C [08:22:36]RasterBufferAndPrint [08:22:36]line Счет N : (1)952769 [08:22:36]line ИНН: 02508201610067 [08:22:36]line Контрольно-Кассовый Чек [08:22:36]line ПРОДАЖА [08:22:36]line ТРК (МРК, ГНК) : 22 [08:22:36]line Товар: 2710194210 [08:22:36]line ДТ(л)-К-5 [08:22:36]line 39.380 * 76.20 [08:22:36]line = 3000.76 [08:22:36]line НДС 12% НСП 1% [08:22:36]line > о реализуемом товаре [08:22:36]line ОКРУГЛЕНИЕ: -0.76 [08:22:36]line ИТОГО: 3000.00 [08:22:36]line Внесено: 3000.00 [08:22:36]line СДАЧА: 0.00 [08:22:36]line НСП 1% : 26.55 [08:22:36]line НДС 12% : 318.66 [08:22:36]line Наличными: 3000.00 [08:22:36]line Безнал.: 0.00 [08:22:36]line Место: АЗС № 113 "Партнер Нефть" [08:22:36]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [08:22:36]line СНО: Общий режим [08:22:36]line Чек 40 01.11.2024 08:22 [08:22:36]line Смена: 558 ФФД: 1.0 [08:22:36]line ЗНМ: 0300000087 [08:22:36]line РНМ: 0000000000091644 [08:22:36]line Версия ККМ: 001 [08:22:36]line ФМ: 0000000000874662 [08:22:36]line ФД: 73171 [08:22:36]line ФПД: 211531844385768 [08:22:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T082235&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73171&fm=211531844385768&tin=02508201610067®Number=0000000000091644&sum=300000 [08:22:36]written 0, free lines is 4095 [08:22:36]OFD Sender: Processing packet 73171 [packets to send 282, broken 281] [08:22:36]ProducePacketName [08:22:36]name=ofd_packets/00073171 [08:22:36]OFD Sender: To server: pG, [08:22:36]CommunicateWithHost lk.salyk.kg:30040 [08:22:36]ConnectInit lk.salyk.kg [08:22:36]Write to MH i2c: 01 00 00 8F 03 92 [08:22:36]Write i2c OK [08:22:36]MH_I2C_Read... [08:22:36]Read from MH i2c: 01 [08:22:36]MH_I2C_Read... [08:22:36]Read from MH i2c: 01 07 00 [08:22:36]MH_I2C_Read... [08:22:36]Read from MH i2c: 01 07 00 8F 03 00 00 00 00 00 E4 0C 89 [08:22:36]RasterBufferAndPrint [08:22:36]line [08:22:36]line [08:22:36]line [08:22:36]line [08:22:36]line [08:22:36]written 0, free lines is 3309 [08:22:36]MH_Cut [08:22:36]Write to MH i2c: D1 01 00 96 03 01 6B [08:22:36]Write i2c OK [08:22:36]MH_I2C_Read... [08:22:36]Read from MH i2c: D1 [08:22:36]MH_I2C_Read... [08:22:36]Read from MH i2c: D1 01 00 [08:22:36]MH_I2C_Read... [08:22:36]Read from MH i2c: D1 01 00 96 03 00 6A [08:22:36]Write to MH i2c: 01 00 00 97 03 9A [08:22:36]Write i2c OK [08:22:36]MH_I2C_Read... [08:22:37]*** Cut start [08:22:37]*** Partial cut [08:22:37]*** CUTSNS_PIN = 1 [08:22:37]*** CUTSNS_PIN = 0 [08:22:37]*** Brake cut motor [08:22:38]Read from MH i2c: 01 [08:22:38]MH_I2C_Read... [08:22:38]*** Stop cut motor [08:22:38]*** Cut end [08:22:38]Read from MH i2c: 01 07 00 [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: 01 07 00 97 03 00 00 00 00 00 FF 0F AF [08:22:38]process_action close_receipt done [08:22:38]requested_data is exist [08:22:38]produce_requested_data [08:22:38]requested_item fm.sn is exist - process it [08:22:38]wFMCommunicate request_size=4 [08:22:38]MH_SAM_APDU [08:22:38]CAPDU: 80 11 00 00 [08:22:38]Write to MH i2c: E2 08 00 98 03 80 11 00 00 00 00 00 00 15 [08:22:38]Write i2c OK [08:22:38]MH_I2C_Read... [08:22:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:38]Read from MH i2c: E2 [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: E2 17 00 [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: E2 17 00 98 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 69 [08:22:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:22:38]wFMCommunicate OK [08:22:38]requested_item fd.num is exist - process it [08:22:38]SAM_PROTO_GetFieldsCounters [08:22:38]wFMCommunicate request_size=4 [08:22:38]MH_SAM_APDU [08:22:38]CAPDU: 80 13 00 00 [08:22:38]Write to MH i2c: E2 08 00 99 03 80 13 00 00 00 00 00 00 18 [08:22:38]Write i2c OK [08:22:38]MH_I2C_Read... [08:22:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:22:38]Read from MH i2c: E2 [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: E2 62 00 [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: E2 62 00 99 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 D3 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [08:22:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 D3 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:22:38]wFMCommunicate OK [08:22:38]SAM_PROTO_GetFieldsCounters done [08:22:38]requested_item shift.num is exist - process it [08:22:38]requested_item shift.opened is exist - process it [08:22:38]req_shift_opened [08:22:38]FM_GetShiftState [08:22:38]SAM_PROTO_GetShiftState [08:22:38]wFMCommunicate request_size=4 [08:22:38]MH_SAM_APDU [08:22:38]CAPDU: 80 13 01 00 [08:22:38]Write to MH i2c: E2 08 00 9A 03 80 13 01 00 00 00 00 00 1A [08:22:38]Write i2c OK [08:22:38]MH_I2C_Read... [08:22:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:38]Read from MH i2c: E2 [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: E2 0E 00 [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: E2 0E 00 9A 03 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 61 [08:22:38]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [08:22:38]wFMCommunicate OK [08:22:38]SAM_PROTO_GetShiftState done [08:22:38]FM_GetShiftState done [08:22:38]req_shift_opened done [08:22:38]requested_item shift.open_date is exist - process it [08:22:38]req_shift_open_date [08:22:38]req_shift_open_date done [08:22:38]produce_requested_data done [08:22:38]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73171,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [08:22:38]process_action_free close_receipt [08:22:38]json_value_free [08:22:38]json_value_free done [08:22:38]process_json_proto returns [08:22:38]Send response to host [08:22:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73171,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [08:22:38]free response buf [08:22:38]execute_script done [08:22:38]execute_script returns [08:22:38]free content buf [08:22:38]Sock 7.Close socket [08:22:38]Sock 7.Thread stoped [08:22:39]recv_with_timeout no data received [08:22:41]Connected sock=11 [08:22:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 6E 5F 08 01 C6 9D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 CB 8F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D3 1D 01 00 35 04 06 00 C0 63 18 71 7B E8 62 B1 D9 AE 47 FA 50 C5 [08:22:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 79 1A 47 00 05 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 34 36 36 32 10 04 04 00 D3 1D 01 00 F4 03 04 00 83 3A 24 67 B6 04 01 00 00 C7 A0 9A 2B 4B 28 87 20 [08:22:44]CommunicateWithHost err = 0 [08:22:44]CheckOFDResponse [08:22:44]1017 (14) - 77093643461234 [08:22:44]1041 (16) - 0000000000874662 [08:22:44]1040 (4) - 73171 [08:22:44]1012 (4) - 01.11.2024 02:18 [08:22:44]1206 (1) - 0 [08:22:44]OFD Sender: Remove packet 73171 [08:22:44]ProducePacketName [08:22:44]name=ofd_packets/00073171 [08:22:44]NVStorageDeleteData [08:22:44]OFD Sender: No OFD packet to send [08:22:50]OFD Sender: No OFD packet to send [08:22:55]OFD Sender: No OFD packet to send [08:23:00]OFD Sender: No OFD packet to send [08:23:05]OFD Sender: No OFD packet to send [08:23:10]OFD Sender: No OFD packet to send [08:23:15]OFD Sender: No OFD packet to send [08:23:20]OFD Sender: No OFD packet to send [08:23:25]OFD Sender: No OFD packet to send [08:23:30]OFD Sender: No OFD packet to send [08:23:35]OFD Sender: No OFD packet to send [08:23:40]OFD Sender: No OFD packet to send [08:23:45]OFD Sender: No OFD packet to send [08:23:50]OFD Sender: No OFD packet to send [08:23:51]recv_with_timeout no data received [08:23:55]OFD Sender: No OFD packet to send [08:24:00]OFD Sender: No OFD packet to send [08:24:05]OFD Sender: No OFD packet to send [08:24:10]OFD Sender: No OFD packet to send [08:24:15]OFD Sender: No OFD packet to send [08:24:19]recv_with_timeout no data received [08:24:20]OFD Sender: No OFD packet to send [08:24:25]OFD Sender: No OFD packet to send [08:24:30]OFD Sender: No OFD packet to send [08:24:35]OFD Sender: No OFD packet to send [08:24:40]OFD Sender: No OFD packet to send [08:24:45]OFD Sender: No OFD packet to send [08:24:50]OFD Sender: No OFD packet to send [08:24:55]OFD Sender: No OFD packet to send [08:25:00]OFD Sender: No OFD packet to send [08:25:05]OFD Sender: No OFD packet to send [08:25:05]recv_with_timeout no data received [08:25:10]OFD Sender: No OFD packet to send [08:25:15]OFD Sender: No OFD packet to send [08:25:20]OFD Sender: No OFD packet to send [08:25:25]OFD Sender: No OFD packet to send [08:25:30]OFD Sender: No OFD packet to send [08:25:35]OFD Sender: No OFD packet to send [08:25:40]OFD Sender: No OFD packet to send [08:25:45]OFD Sender: No OFD packet to send [08:25:46]recv_with_timeout no data received [08:25:50]OFD Sender: No OFD packet to send [08:25:55]OFD Sender: No OFD packet to send [08:26:00]OFD Sender: No OFD packet to send [08:26:05]OFD Sender: No OFD packet to send [08:26:10]OFD Sender: No OFD packet to send [08:26:15]OFD Sender: No OFD packet to send [08:26:20]OFD Sender: No OFD packet to send [08:26:25]OFD Sender: No OFD packet to send [08:26:30]accept exits with 10 [08:26:30]New connection [08:26:30]New thread 3067624804 created [08:26:30]Thread 3067481444 joined [08:26:30]Waiting for new connection... [08:26:30] Sock 10.Parse request [08:26:30]Sock 10.Check first char [08:26:30]Sock 10.First char is OK [08:26:30]request: POST /json_proto HTTP/1.0 [08:26:30]Method: POST [08:26:30]URL: /json_proto [08:26:30]Method is POST - this is cgi request [08:26:30]url: /json_proto [08:26:30]query_string will be loaded in cgi processing [08:26:30]execute_cgi json_proto POST (null) [08:26:30]execute_cgi path=json_proto method=POST [08:26:30]POST find Content-Length [08:26:30]Host: 172.17.43.195:8080 [08:26:30]Content-Length: 754 [08:26:30]Content-Type: application/json [08:26:30] [08:26:30]POST finish read [08:26:30]Found Content-Length = 754 [08:26:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30085833", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:26:30]execute_script... [08:26:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30085833", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:26:30]POST & json_proto [08:26:30]process_json_proto [08:26:30]json parsed OK: [08:26:30]protocol is kg_v1.0 [08:26:30]action value=close_receipt [08:26:30]process_action close_receipt [08:26:30]cmd_close_receipt [08:26:30]MH_GetDate [08:26:30]Write to MH i2c: F0 00 00 9B 03 8D [08:26:30]Write i2c OK [08:26:30]MH_I2C_Read... [08:26:30]Read from MH i2c: F0 [08:26:30]MH_I2C_Read... [08:26:30]Read from MH i2c: F0 09 00 [08:26:30]MH_I2C_Read... [08:26:30]Read from MH i2c: F0 09 00 9B 03 00 B6 90 24 67 74 2C AD 66 1A [08:26:30]GetLastDocTimeStamp 1730449355 [08:26:30]current date 1730449590 [08:26:30]FM_GetShiftState [08:26:30]SAM_PROTO_GetShiftState [08:26:30]wFMCommunicate request_size=4 [08:26:30]MH_SAM_APDU [08:26:30]CAPDU: 80 13 01 00 [08:26:30]Write to MH i2c: E2 08 00 9C 03 80 13 01 00 00 00 00 00 1C [08:26:30]Write i2c OK [08:26:30]MH_I2C_Read... [08:26:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:30]Read from MH i2c: E2 [08:26:30]MH_I2C_Read... [08:26:30]Read from MH i2c: E2 0E 00 [08:26:30]MH_I2C_Read... [08:26:30]Read from MH i2c: E2 0E 00 9C 03 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 63 [08:26:30]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [08:26:30]wFMCommunicate OK [08:26:30]SAM_PROTO_GetShiftState done [08:26:30]FM_GetShiftState done [08:26:30]opened in 1730419605 [08:26:30]opened+sec_in_day 1730506005 [08:26:30]quantity*price = 0 [08:26:30]sum+1 = 1 [08:26:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 41 01.11.2024 08:26 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: ТК ГПНА Online 30085833 ФМ: 0000000000874662 ФД: 73172 ФПД: 245035291636370 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T082630&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73172&fm=245035291636370&tin=02508201610067®Number=0000000000091644&sum=0 [08:26:31]StoreToDocumentArchive [08:26:31]shift 558 fd 73172 [08:26:31]save to /storage/0558/doc_00073172 [08:26:31]save last doc name /storage/0558/doc_00073172 to /storage/kkm_last_doc_name [08:26:31]save OK [08:26:31]Clear old archive folders... [08:26:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:26:31]tlvbuf is 00F94A60 [08:26:31]SAM_PROTO_ClearQueue [08:26:31]wFMCommunicate request_size=4 [08:26:31]MH_SAM_APDU [08:26:31]CAPDU: 80 09 00 00 [08:26:31]Write to MH i2c: E2 08 00 A9 03 80 09 00 00 00 00 00 00 1E [08:26:31]Write i2c OK [08:26:31]MH_I2C_Read... [08:26:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:26:31]Read from MH i2c: E2 [08:26:31]MH_I2C_Read... [08:26:31]Read from MH i2c: E2 03 00 [08:26:31]MH_I2C_Read... [08:26:31]Read from MH i2c: E2 03 00 A9 03 00 90 00 20 [08:26:31]RAPDU: 90 00 [08:26:31]wFMCommunicate OK [08:26:31]SAM_PROTO_ClearQueue done [08:26:31]KKMCreateOFDPacket [08:26:31]OFDProtocolAddRootSTLVToBuf [08:26:31]FM_MakeSignedData [08:26:31]FM_MakeSignedData [08:26:31]SAM_PROTO_SignData [08:26:31]wFMCommunicate request_size=4 [08:26:31]MH_SAM_APDU [08:26:31]CAPDU: 80 0D 01 02 [08:26:31]Write to MH i2c: E2 08 00 AA 03 80 0D 01 02 00 00 00 00 26 [08:26:31]Write i2c OK [08:26:31]MH_I2C_Read... [08:26:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:26:31]Read from MH i2c: E2 [08:26:31]MH_I2C_Read... [08:26:31]Read from MH i2c: E2 03 00 [08:26:31]MH_I2C_Read... [08:26:31]Read from MH i2c: E2 03 00 AA 03 00 90 00 21 [08:26:31]RAPDU: 90 00 [08:26:31]wFMCommunicate OK [08:26:31]wFMCommunicate request_size=255 [08:26:31]MH_SAM_APDU [08:26:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 B6 90 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D4 1D 01 00 35 04 06 00 DE [08:26:31]Write to MH i2c: E2 02 01 AB 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 B6 90 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D4 1D 01 00 35 04 06 00 DE 00 00 CF [08:26:31]Write i2c OK [08:26:31]MH_I2C_Read... [08:26:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:31]Read from MH i2c: E2 [08:26:31]MH_I2C_Read... [08:26:31]Read from MH i2c: E2 03 00 [08:26:31]MH_I2C_Read... [08:26:31]Read from MH i2c: E2 03 00 AB 03 00 90 00 22 [08:26:31]RAPDU: 90 00 [08:26:31]wFMCommunicate OK [08:26:31]wFMCommunicate request_size=10 [08:26:31]MH_SAM_APDU [08:26:31]CAPDU: 80 0D 02 02 05 DB B9 83 F2 92 [08:26:31]Write to MH i2c: E2 0D 00 AC 03 80 0D 02 02 05 00 DB B9 83 F2 92 00 00 CE [08:26:31]Write i2c OK [08:26:31]MH_I2C_Read... [08:26:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:31]Read from MH i2c: E2 [08:26:31]MH_I2C_Read... [08:26:31]Read from MH i2c: E2 03 00 [08:26:31]MH_I2C_Read... [08:26:31]Read from MH i2c: E2 03 00 AC 03 00 90 00 23 [08:26:31]RAPDU: 90 00 [08:26:31]wFMCommunicate OK [08:26:31]wFMCommunicate request_size=4 [08:26:31]MH_SAM_APDU [08:26:31]CAPDU: 80 0D 03 02 [08:26:31]Write to MH i2c: E2 08 00 AD 03 80 0D 03 02 00 00 00 00 2B [08:26:31]Write i2c OK [08:26:31]MH_I2C_Read... [08:26:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:26:31]Read from MH i2c: E2 [08:26:31]MH_I2C_Read... [08:26:31]Read from MH i2c: E2 0B 00 [08:26:31]MH_I2C_Read... [08:26:31]Read from MH i2c: E2 0B 00 AD 03 00 3E 81 E1 4B F8 89 68 78 90 00 78 [08:26:31]RAPDU: 3E 81 E1 4B F8 89 68 78 90 00 [08:26:31]wFMCommunicate OK [08:26:31]SAM_PROTO_SignData done [08:26:31]FM_MakeSignedData done [08:26:31]CreateOFDProtocolMessage [08:26:31]wFMCommunicate request_size=4 [08:26:31]MH_SAM_APDU [08:26:31]CAPDU: 80 11 00 00 [08:26:31]Write to MH i2c: E2 08 00 AE 03 80 11 00 00 00 00 00 00 2B [08:26:31]Write i2c OK [08:26:31]MH_I2C_Read... [08:26:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:31]Read from MH i2c: E2 [08:26:31]MH_I2C_Read... [08:26:31]Read from MH i2c: E2 17 00 [08:26:31]MH_I2C_Read... [08:26:31]Read from MH i2c: E2 17 00 AE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7F [08:26:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:26:31]wFMCommunicate OK [08:26:31]CreateOFDProtocolMessage done [08:26:31]OFDSenderStorePacket 73172 [08:26:31]StoreOFDPacket docnum=73172 [08:26:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 58 01 07 01 11 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 B6 90 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D4 1D 01 00 35 04 06 00 DE DB B9 83 F2 92 3E 81 E1 4B F8 89 68 78 [08:26:31]CheckFolder [08:26:31]dirname=/storage/ofd_packets [08:26:31]CheckFolder done [08:26:31]ProducePacketName [08:26:31]name=ofd_packets/00073172 [08:26:31]NVStorageSaveData ofd_packets/00073172 [08:26:31]File name is /storage/ofd_packets/00073172 [08:26:31]Write 301 bytes [08:26:31]NVStorageSaveData done [08:26:31]OFDSenderStorePacket done [08:26:31]KKMCreateOFDPacket done [08:26:31]NVStorageSaveData kkm_last_timestamp [08:26:31]File name is /storage/kkm_last_timestamp [08:26:31]Write 4 bytes [08:26:31]NVStorageSaveData done [08:26:31]ExternCall_PrintAddStr [08:26:31]wPrintStart [08:26:31]Write to MH i2c: 01 00 00 AF 03 B2 [08:26:31]Write i2c OK [08:26:31]MH_I2C_Read... [08:26:31]Read from MH i2c: 01 [08:26:31]MH_I2C_Read... [08:26:31]Read from MH i2c: 01 07 00 [08:26:31]MH_I2C_Read... [08:26:31]Read from MH i2c: 01 07 00 AF 03 00 00 00 00 00 FF 0F C7 [08:26:31]RasterBufferAndPrint [08:26:31]line Счет N : (1)952771 [08:26:31]line ИНН: 02508201610067 [08:26:31]line Контрольно-Кассовый Чек [08:26:31]line ПРОДАЖА [08:26:31]line ТРК (МРК, ГНК) : 63 [08:26:31]line Товар: 2710124130 [08:26:31]line Аи-92-К-5 [08:26:31]line 30.000 * 0.00 [08:26:31]line = 0.00 [08:26:31]line НДС 12% НСП 1% [08:26:31]line > о реализуемом товаре [08:26:31]line ИТОГО: 0.00 [08:26:31]line НСП 1% : 0.00 [08:26:31]line НДС 12% : 0.00 [08:26:31]line Наличными: 0.00 [08:26:31]line Безнал.: 0.00 [08:26:31]line Место: АЗС № 113 "Партнер Нефть" [08:26:31]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [08:26:31]line СНО: Общий режим [08:26:31]line Чек 41 01.11.2024 08:26 [08:26:31]line Смена: 558 ФФД: 1.0 [08:26:31]line ЗНМ: 0300000087 [08:26:31]line РНМ: 0000000000091644 [08:26:31]line Версия ККМ: 001 [08:26:31]line Талоны: ТК ГПНА Online [08:26:31]line 30085833 [08:26:31]line ФМ: 0000000000874662 [08:26:31]line ФД: 73172 [08:26:31]line ФПД: 245035291636370 [08:26:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T082630&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73172&fm=245035291636370&tin=02508201610067®Number=0000000000091644&sum=0 [08:26:31]written 0, free lines is 4095 [08:26:31]OFD Sender: Processing packet 73172 [packets to send 282, broken 281] [08:26:31]ProducePacketName [08:26:31]name=ofd_packets/00073172 [08:26:31]OFD Sender: To server: pG, [08:26:31]CommunicateWithHost lk.salyk.kg:30040 [08:26:31]ConnectInit lk.salyk.kg [08:26:32]Write to MH i2c: 01 00 00 D9 03 DC [08:26:32]Write i2c OK [08:26:32]MH_I2C_Read... [08:26:32]Read from MH i2c: 01 [08:26:32]MH_I2C_Read... [08:26:32]Read from MH i2c: 01 07 00 [08:26:32]MH_I2C_Read... [08:26:32]Read from MH i2c: 01 07 00 D9 03 00 00 00 00 00 EE 0C DD [08:26:32]RasterBufferAndPrint [08:26:32]line [08:26:32]line [08:26:32]line [08:26:32]line [08:26:32]line [08:26:32]written 0, free lines is 3315 [08:26:32]MH_Cut [08:26:32]Write to MH i2c: D1 01 00 E0 03 01 B5 [08:26:32]Write i2c OK [08:26:32]MH_I2C_Read... [08:26:32]Read from MH i2c: D1 [08:26:32]MH_I2C_Read... [08:26:32]Read from MH i2c: D1 01 00 [08:26:32]MH_I2C_Read... [08:26:32]Read from MH i2c: D1 01 00 E0 03 00 B4 [08:26:32]Write to MH i2c: 01 00 00 E1 03 E4 [08:26:32]Write i2c OK [08:26:32]MH_I2C_Read... [08:26:32]Connected sock=11 [08:26:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 58 01 07 01 11 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 B6 90 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D4 1D 01 00 35 04 06 00 DE DB B9 83 F2 92 3E 81 E1 4B F8 89 68 78 [08:26:32]*** Cut start [08:26:32]*** Partial cut [08:26:32]*** CUTSNS_PIN = 1 [08:26:33]*** CUTSNS_PIN = 0 [08:26:33]*** Brake cut motor [08:26:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 65 55 47 00 3F A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D4 1D 01 00 F4 03 04 00 6A 3B 24 67 B6 04 01 00 00 19 7F 14 E4 C1 A1 71 47 [08:26:33]CommunicateWithHost err = 0 [08:26:33]CheckOFDResponse [08:26:33]1017 (14) - 77093643461234 [08:26:33]1041 (16) - 0000000000874662 [08:26:33]1040 (4) - 73172 [08:26:33]1012 (4) - 01.11.2024 02:22 [08:26:33]1206 (1) - 0 [08:26:33]OFD Sender: Remove packet 73172 [08:26:33]ProducePacketName [08:26:33]name=ofd_packets/00073172 [08:26:33]NVStorageDeleteData [08:26:33]Read from MH i2c: 01 [08:26:33]MH_I2C_Read... [08:26:33]*** Stop cut motor [08:26:33]*** Cut end [08:26:33]Read from MH i2c: 01 07 00 [08:26:33]MH_I2C_Read... [08:26:33]Read from MH i2c: 01 07 00 E1 03 00 00 00 00 00 FF 0F F9 [08:26:33]process_action close_receipt done [08:26:33]requested_data is exist [08:26:33]produce_requested_data [08:26:33]requested_item fm.sn is exist - process it [08:26:33]wFMCommunicate request_size=4 [08:26:33]MH_SAM_APDU [08:26:33]CAPDU: 80 11 00 00 [08:26:33]Write to MH i2c: E2 08 00 E2 03 80 11 00 00 00 00 00 00 5F [08:26:33]Write i2c OK [08:26:33]MH_I2C_Read... [08:26:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:33]Read from MH i2c: E2 [08:26:33]MH_I2C_Read... [08:26:33]Read from MH i2c: E2 17 00 [08:26:33]MH_I2C_Read... [08:26:33]Read from MH i2c: E2 17 00 E2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 B3 [08:26:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:26:33]wFMCommunicate OK [08:26:33]requested_item fd.num is exist - process it [08:26:33]SAM_PROTO_GetFieldsCounters [08:26:33]wFMCommunicate request_size=4 [08:26:33]MH_SAM_APDU [08:26:33]CAPDU: 80 13 00 00 [08:26:33]Write to MH i2c: E2 08 00 E3 03 80 13 00 00 00 00 00 00 62 [08:26:33]Write i2c OK [08:26:33]MH_I2C_Read... [08:26:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:26:33]Read from MH i2c: E2 [08:26:33]MH_I2C_Read... [08:26:33]Read from MH i2c: E2 62 00 [08:26:33]MH_I2C_Read... [08:26:33]Read from MH i2c: E2 62 00 E3 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 D4 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [08:26:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 D4 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:26:33]wFMCommunicate OK [08:26:33]SAM_PROTO_GetFieldsCounters done [08:26:33]requested_item shift.num is exist - process it [08:26:33]requested_item shift.opened is exist - process it [08:26:33]req_shift_opened [08:26:33]FM_GetShiftState [08:26:33]SAM_PROTO_GetShiftState [08:26:33]wFMCommunicate request_size=4 [08:26:33]MH_SAM_APDU [08:26:33]CAPDU: 80 13 01 00 [08:26:33]Write to MH i2c: E2 08 00 E4 03 80 13 01 00 00 00 00 00 64 [08:26:33]Write i2c OK [08:26:33]MH_I2C_Read... [08:26:33]OFD Sender: No OFD packet to send [08:26:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:33]Read from MH i2c: E2 [08:26:33]MH_I2C_Read... [08:26:33]Read from MH i2c: E2 0E 00 [08:26:33]MH_I2C_Read... [08:26:33]Read from MH i2c: E2 0E 00 E4 03 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 AB [08:26:33]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [08:26:33]wFMCommunicate OK [08:26:33]SAM_PROTO_GetShiftState done [08:26:33]FM_GetShiftState done [08:26:33]req_shift_opened done [08:26:33]requested_item shift.open_date is exist - process it [08:26:33]req_shift_open_date [08:26:33]req_shift_open_date done [08:26:33]produce_requested_data done [08:26:33]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73172,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [08:26:33]process_action_free close_receipt [08:26:33]json_value_free [08:26:33]json_value_free done [08:26:33]process_json_proto returns [08:26:33]Send response to host [08:26:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73172,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [08:26:33]free response buf [08:26:33]execute_script done [08:26:33]execute_script returns [08:26:33]free content buf [08:26:33]Sock 10.Close socket [08:26:33]Sock 10.Thread stoped [08:26:38]OFD Sender: No OFD packet to send [08:26:43]OFD Sender: No OFD packet to send [08:26:48]OFD Sender: No OFD packet to send [08:26:53]OFD Sender: No OFD packet to send [08:26:58]OFD Sender: No OFD packet to send [08:27:03]OFD Sender: No OFD packet to send [08:27:08]OFD Sender: No OFD packet to send [08:27:13]OFD Sender: No OFD packet to send [08:27:18]OFD Sender: No OFD packet to send [08:27:23]OFD Sender: No OFD packet to send [08:27:28]OFD Sender: No OFD packet to send [08:27:33]OFD Sender: No OFD packet to send [08:27:38]OFD Sender: No OFD packet to send [08:27:43]OFD Sender: No OFD packet to send [08:27:48]OFD Sender: No OFD packet to send [08:27:53]OFD Sender: No OFD packet to send [08:27:58]OFD Sender: No OFD packet to send [08:28:03]OFD Sender: No OFD packet to send [08:28:09]OFD Sender: No OFD packet to send [08:28:14]OFD Sender: No OFD packet to send [08:28:19]OFD Sender: No OFD packet to send [08:28:24]OFD Sender: No OFD packet to send [08:28:29]OFD Sender: No OFD packet to send [08:28:34]OFD Sender: No OFD packet to send [08:28:39]OFD Sender: No OFD packet to send [08:28:44]OFD Sender: No OFD packet to send [08:28:49]OFD Sender: No OFD packet to send [08:28:54]OFD Sender: No OFD packet to send [08:28:59]OFD Sender: No OFD packet to send [08:29:01]accept exits with 9 [08:29:01]New connection [08:29:01]New thread 3067481444 created [08:29:01]Thread 3067624804 joined [08:29:01]Waiting for new connection... [08:29:01] Sock 9.Parse request [08:29:01]Sock 9.Check first char [08:29:01]Sock 9.First char is OK [08:29:01]request: POST /json_proto HTTP/1.0 [08:29:01]Method: POST [08:29:01]URL: /json_proto [08:29:01]Method is POST - this is cgi request [08:29:01]url: /json_proto [08:29:01]query_string will be loaded in cgi processing [08:29:01]execute_cgi json_proto POST (null) [08:29:01]execute_cgi path=json_proto method=POST [08:29:01]POST find Content-Length [08:29:01]Host: 172.17.43.195:8080 [08:29:01]Content-Length: 797 [08:29:01]Content-Type: application/json [08:29:01] [08:29:01]POST finish read [08:29:01]Found Content-Length = 797 [08:29:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 22.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:01]execute_script... [08:29: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)952773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 22.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:01]POST & json_proto [08:29:01]process_json_proto [08:29:01]json parsed OK: [08:29:01]protocol is kg_v1.0 [08:29:01]action value=close_receipt [08:29:01]process_action close_receipt [08:29:01]cmd_close_receipt [08:29:01]MH_GetDate [08:29:01]Write to MH i2c: F0 00 00 E5 03 D7 [08:29:01]Write i2c OK [08:29:01]MH_I2C_Read... [08:29:01]Read from MH i2c: F0 [08:29:01]MH_I2C_Read... [08:29:01]Read from MH i2c: F0 09 00 [08:29:01]MH_I2C_Read... [08:29:01]Read from MH i2c: F0 09 00 E5 03 00 4D 91 24 67 74 2C AD 66 FC [08:29:01]GetLastDocTimeStamp 1730449590 [08:29:01]current date 1730449741 [08:29:01]FM_GetShiftState [08:29:01]SAM_PROTO_GetShiftState [08:29:01]wFMCommunicate request_size=4 [08:29:01]MH_SAM_APDU [08:29:01]CAPDU: 80 13 01 00 [08:29:01]Write to MH i2c: E2 08 00 E6 03 80 13 01 00 00 00 00 00 66 [08:29:01]Write i2c OK [08:29:01]MH_I2C_Read... [08:29:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:01]Read from MH i2c: E2 [08:29:01]MH_I2C_Read... [08:29:01]Read from MH i2c: E2 0E 00 [08:29:01]MH_I2C_Read... [08:29:01]Read from MH i2c: E2 0E 00 E6 03 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 AD [08:29:01]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [08:29:01]wFMCommunicate OK [08:29:01]SAM_PROTO_GetShiftState done [08:29:01]FM_GetShiftState done [08:29:01]opened in 1730419605 [08:29:01]opened+sec_in_day 1730506005 [08:29:01]quantity*price = 0 [08:29:01]sum+1 = 1 [08:29:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 42 01.11.2024 08:29 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 53623 ФМ: 0000000000874662 ФД: 73173 ФПД: 5461480408658 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T082901&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73173&fm=5461480408658&tin=02508201610067®Number=0000000000091644&sum=0 [08:29:02]StoreToDocumentArchive [08:29:02]shift 558 fd 73173 [08:29:02]save to /storage/0558/doc_00073173 [08:29:02]save last doc name /storage/0558/doc_00073173 to /storage/kkm_last_doc_name [08:29:02]save OK [08:29:02]Clear old archive folders... [08:29:02]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:29:02]tlvbuf is 010054C0 [08:29:02]SAM_PROTO_ClearQueue [08:29:02]wFMCommunicate request_size=4 [08:29:02]MH_SAM_APDU [08:29:02]CAPDU: 80 09 00 00 [08:29:02]Write to MH i2c: E2 08 00 F3 03 80 09 00 00 00 00 00 00 68 [08:29:02]Write i2c OK [08:29:02]MH_I2C_Read... [08:29:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:29:02]Read from MH i2c: E2 [08:29:02]MH_I2C_Read... [08:29:02]Read from MH i2c: E2 03 00 [08:29:02]MH_I2C_Read... [08:29:02]Read from MH i2c: E2 03 00 F3 03 00 90 00 6A [08:29:02]RAPDU: 90 00 [08:29:02]wFMCommunicate OK [08:29:02]SAM_PROTO_ClearQueue done [08:29:02]KKMCreateOFDPacket [08:29:02]OFDProtocolAddRootSTLVToBuf [08:29:02]FM_MakeSignedData [08:29:02]FM_MakeSignedData [08:29:02]SAM_PROTO_SignData [08:29:02]wFMCommunicate request_size=4 [08:29:02]MH_SAM_APDU [08:29:02]CAPDU: 80 0D 01 02 [08:29:02]Write to MH i2c: E2 08 00 F4 03 80 0D 01 02 00 00 00 00 70 [08:29:02]Write i2c OK [08:29:02]MH_I2C_Read... [08:29:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:29:02]Read from MH i2c: E2 [08:29:02]MH_I2C_Read... [08:29:02]Read from MH i2c: E2 03 00 [08:29:02]MH_I2C_Read... [08:29:02]Read from MH i2c: E2 03 00 F4 03 00 90 00 6B [08:29:02]RAPDU: 90 00 [08:29:02]wFMCommunicate OK [08:29:02]wFMCommunicate request_size=255 [08:29:02]MH_SAM_APDU [08:29: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 F0 55 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 4D 91 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D5 1D 01 00 35 04 06 00 [08:29:02]Write to MH i2c: E2 02 01 F5 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F0 55 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 4D 91 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D5 1D 01 00 35 04 06 00 00 00 B0 [08:29:02]Write i2c OK [08:29:02]MH_I2C_Read... [08:29:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:02]Read from MH i2c: E2 [08:29:02]MH_I2C_Read... [08:29:02]Read from MH i2c: E2 03 00 [08:29:02]MH_I2C_Read... [08:29:02]Read from MH i2c: E2 03 00 F5 03 00 90 00 6C [08:29:02]RAPDU: 90 00 [08:29:02]wFMCommunicate OK [08:29:02]wFMCommunicate request_size=11 [08:29:02]MH_SAM_APDU [08:29:02]CAPDU: 80 0D 02 02 06 04 F7 99 99 86 52 [08:29:02]Write to MH i2c: E2 0E 00 F6 03 80 0D 02 02 06 00 04 F7 99 99 86 52 00 00 84 [08:29:02]Write i2c OK [08:29:02]MH_I2C_Read... [08:29:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:02]Read from MH i2c: E2 [08:29:02]MH_I2C_Read... [08:29:02]Read from MH i2c: E2 03 00 [08:29:02]MH_I2C_Read... [08:29:02]Read from MH i2c: E2 03 00 F6 03 00 90 00 6D [08:29:02]RAPDU: 90 00 [08:29:02]wFMCommunicate OK [08:29:02]wFMCommunicate request_size=4 [08:29:02]MH_SAM_APDU [08:29:02]CAPDU: 80 0D 03 02 [08:29:02]Write to MH i2c: E2 08 00 F7 03 80 0D 03 02 00 00 00 00 75 [08:29:02]Write i2c OK [08:29:02]MH_I2C_Read... [08:29:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:29:02]Read from MH i2c: E2 [08:29:02]MH_I2C_Read... [08:29:02]Read from MH i2c: E2 0B 00 [08:29:02]MH_I2C_Read... [08:29:02]Read from MH i2c: E2 0B 00 F7 03 00 39 1B 02 BE EF 69 FA 2A 90 00 06 [08:29:02]RAPDU: 39 1B 02 BE EF 69 FA 2A 90 00 [08:29:02]wFMCommunicate OK [08:29:02]SAM_PROTO_SignData done [08:29:02]FM_MakeSignedData done [08:29:02]CreateOFDProtocolMessage [08:29:02]wFMCommunicate request_size=4 [08:29:02]MH_SAM_APDU [08:29:02]CAPDU: 80 11 00 00 [08:29:02]Write to MH i2c: E2 08 00 F8 03 80 11 00 00 00 00 00 00 75 [08:29:02]Write i2c OK [08:29:02]MH_I2C_Read... [08:29:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:02]Read from MH i2c: E2 [08:29:02]MH_I2C_Read... [08:29:02]Read from MH i2c: E2 17 00 [08:29:02]MH_I2C_Read... [08:29:02]Read from MH i2c: E2 17 00 F8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C9 [08:29:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:29:02]wFMCommunicate OK [08:29:02]CreateOFDProtocolMessage done [08:29:02]OFDSenderStorePacket 73173 [08:29:02]StoreOFDPacket docnum=73173 [08:29:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 A0 1A 08 01 F8 78 5A 03 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 F0 55 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 4D 91 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D5 1D 01 00 35 04 06 00 04 F7 99 99 86 52 39 1B 02 BE EF 69 FA 2A [08:29:02]CheckFolder [08:29:02]dirname=/storage/ofd_packets [08:29:02]CheckFolder done [08:29:02]ProducePacketName [08:29:02]name=ofd_packets/00073173 [08:29:02]NVStorageSaveData ofd_packets/00073173 [08:29:02]File name is /storage/ofd_packets/00073173 [08:29:02]Write 302 bytes [08:29:02]NVStorageSaveData done [08:29:02]OFDSenderStorePacket done [08:29:02]KKMCreateOFDPacket done [08:29:02]NVStorageSaveData kkm_last_timestamp [08:29:02]File name is /storage/kkm_last_timestamp [08:29:02]Write 4 bytes [08:29:02]NVStorageSaveData done [08:29:02]ExternCall_PrintAddStr [08:29:02]wPrintStart [08:29:02]Write to MH i2c: 01 00 00 F9 03 FC [08:29:02]Write i2c OK [08:29:02]MH_I2C_Read... [08:29:02]Read from MH i2c: 01 [08:29:02]MH_I2C_Read... [08:29:02]Read from MH i2c: 01 07 00 [08:29:02]MH_I2C_Read... [08:29:02]Read from MH i2c: 01 07 00 F9 03 00 00 00 00 00 FF 0F 11 [08:29:02]RasterBufferAndPrint [08:29:02]line Счет N : (1)952773 [08:29:02]line ИНН: 02508201610067 [08:29:02]line Контрольно-Кассовый Чек [08:29:02]line ПРОДАЖА [08:29:02]line ТРК (МРК, ГНК) : 43 [08:29:02]line Товар: 2710194210 [08:29:02]line ДТ(л)-К-5 [08:29:02]line 22.000 * 0.00 [08:29:02]line = 0.00 [08:29:02]line НДС 12% НСП 1% [08:29:02]line > о реализуемом товаре [08:29:02]line ИТОГО: 0.00 [08:29:02]line НСП 1% : 0.00 [08:29:02]line НДС 12% : 0.00 [08:29:02]line Наличными: 0.00 [08:29:02]line Безнал.: 0.00 [08:29:02]line Место: АЗС № 113 "Партнер Нефть" [08:29:02]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [08:29:02]line СНО: Общий режим [08:29:02]line Чек 42 01.11.2024 08:29 [08:29:02]line Смена: 558 ФФД: 1.0 [08:29:02]line ЗНМ: 0300000087 [08:29:02]line РНМ: 0000000000091644 [08:29:02]line Версия ККМ: 001 [08:29:02]line Талоны: Топливная Карта [08:29:02]line 53623 [08:29:02]line ФМ: 0000000000874662 [08:29:02]line ФД: 73173 [08:29:02]line ФПД: 5461480408658 [08:29:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T082901&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73173&fm=5461480408658&tin=02508201610067®Number=0000000000091644&sum=0 [08:29:02]written 0, free lines is 4095 [08:29:02]OFD Sender: Processing packet 73173 [packets to send 282, broken 281] [08:29:02]ProducePacketName [08:29:02]name=ofd_packets/00073173 [08:29:02]OFD Sender: To server: pG, [08:29:02]CommunicateWithHost lk.salyk.kg:30040 [08:29:02]ConnectInit lk.salyk.kg [08:29:03]Write to MH i2c: 01 00 00 23 04 27 [08:29:03]Write i2c OK [08:29:03]MH_I2C_Read... [08:29:03]Read from MH i2c: 01 [08:29:03]MH_I2C_Read... [08:29:03]Read from MH i2c: 01 07 00 [08:29:03]MH_I2C_Read... [08:29:03]Read from MH i2c: 01 07 00 23 04 00 00 00 00 00 ED 0C 27 [08:29:03]RasterBufferAndPrint [08:29:03]line [08:29:03]line [08:29:03]line [08:29:03]line [08:29:03]line [08:29:03]written 0, free lines is 3316 [08:29:03]MH_Cut [08:29:03]Write to MH i2c: D1 01 00 2A 04 01 00 [08:29:03]Write i2c OK [08:29:03]MH_I2C_Read... [08:29:03]Read from MH i2c: D1 [08:29:03]MH_I2C_Read... [08:29:03]Read from MH i2c: D1 01 00 [08:29:03]MH_I2C_Read... [08:29:03]Read from MH i2c: D1 01 00 2A 04 00 FF [08:29:03]Write to MH i2c: 01 00 00 2B 04 2F [08:29:03]Write i2c OK [08:29:03]MH_I2C_Read... [08:29:03]*** Cut start [08:29:03]*** Partial cut [08:29:03]*** CUTSNS_PIN = 1 [08:29:04]*** CUTSNS_PIN = 0 [08:29:04]*** Brake cut motor [08:29:04]Read from MH i2c: 01 [08:29:04]MH_I2C_Read... [08:29:04]*** Stop cut motor [08:29:04]*** Cut end [08:29:04]Read from MH i2c: 01 07 00 [08:29:04]MH_I2C_Read... [08:29:04]Read from MH i2c: 01 07 00 2B 04 00 00 00 00 00 FF 0F 44 [08:29:04]process_action close_receipt done [08:29:04]requested_data is exist [08:29:04]produce_requested_data [08:29:04]requested_item fm.sn is exist - process it [08:29:04]wFMCommunicate request_size=4 [08:29:04]MH_SAM_APDU [08:29:04]CAPDU: 80 11 00 00 [08:29:04]Write to MH i2c: E2 08 00 2C 04 80 11 00 00 00 00 00 00 AA [08:29:04]Write i2c OK [08:29:04]MH_I2C_Read... [08:29:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:04]Read from MH i2c: E2 [08:29:04]MH_I2C_Read... [08:29:04]Read from MH i2c: E2 17 00 [08:29:04]MH_I2C_Read... [08:29:04]Read from MH i2c: E2 17 00 2C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FE [08:29:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:29:04]wFMCommunicate OK [08:29:04]requested_item fd.num is exist - process it [08:29:04]SAM_PROTO_GetFieldsCounters [08:29:04]wFMCommunicate request_size=4 [08:29:04]MH_SAM_APDU [08:29:04]CAPDU: 80 13 00 00 [08:29:04]Write to MH i2c: E2 08 00 2D 04 80 13 00 00 00 00 00 00 AD [08:29:04]Write i2c OK [08:29:04]MH_I2C_Read... [08:29:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:29:04]Read from MH i2c: E2 [08:29:04]MH_I2C_Read... [08:29:04]Read from MH i2c: E2 62 00 [08:29:04]MH_I2C_Read... [08:29:04]Read from MH i2c: E2 62 00 2D 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 D5 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [08:29:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 D5 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:29:04]wFMCommunicate OK [08:29:04]SAM_PROTO_GetFieldsCounters done [08:29:04]requested_item shift.num is exist - process it [08:29:04]requested_item shift.opened is exist - process it [08:29:04]req_shift_opened [08:29:04]FM_GetShiftState [08:29:04]SAM_PROTO_GetShiftState [08:29:04]wFMCommunicate request_size=4 [08:29:04]MH_SAM_APDU [08:29:04]CAPDU: 80 13 01 00 [08:29:04]Write to MH i2c: E2 08 00 2E 04 80 13 01 00 00 00 00 00 AF [08:29:04]Write i2c OK [08:29:04]MH_I2C_Read... [08:29:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:04]Read from MH i2c: E2 [08:29:04]MH_I2C_Read... [08:29:04]Read from MH i2c: E2 0E 00 [08:29:04]MH_I2C_Read... [08:29:04]Read from MH i2c: E2 0E 00 2E 04 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 F6 [08:29:04]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [08:29:04]wFMCommunicate OK [08:29:04]SAM_PROTO_GetShiftState done [08:29:04]FM_GetShiftState done [08:29:04]req_shift_opened done [08:29:04]requested_item shift.open_date is exist - process it [08:29:04]req_shift_open_date [08:29:04]req_shift_open_date done [08:29:04]produce_requested_data done [08:29:04]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73173,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [08:29:04]process_action_free close_receipt [08:29:04]json_value_free [08:29:04]json_value_free done [08:29:04]process_json_proto returns [08:29:04]Send response to host [08:29:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73173,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [08:29:04]free response buf [08:29:04]execute_script done [08:29:04]execute_script returns [08:29:04]free content buf [08:29:04]Sock 9.Close socket [08:29:04]Sock 9.Thread stoped [08:29:04]Connected sock=11 [08:29:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 A0 1A 08 01 F8 78 5A 03 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 F0 55 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 4D 91 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D5 1D 01 00 35 04 06 00 04 F7 99 99 86 52 39 1B 02 BE EF 69 FA 2A [08:29:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 B3 76 47 00 22 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D5 1D 01 00 F4 03 04 00 03 3C 24 67 B6 04 01 00 00 7B DE 16 64 AA DC CA 20 [08:29:07]CommunicateWithHost err = 0 [08:29:07]CheckOFDResponse [08:29:07]1017 (14) - 77093643461234 [08:29:07]1041 (16) - 0000000000874662 [08:29:07]1040 (4) - 73173 [08:29:07]1012 (4) - 01.11.2024 02:25 [08:29:07]1206 (1) - 0 [08:29:07]OFD Sender: Remove packet 73173 [08:29:07]ProducePacketName [08:29:07]name=ofd_packets/00073173 [08:29:07]NVStorageDeleteData [08:29:07]OFD Sender: No OFD packet to send [08:29:12]OFD Sender: No OFD packet to send [08:29:14]recv_with_timeout no data received [08:29:17]OFD Sender: No OFD packet to send [08:29:22]OFD Sender: No OFD packet to send [08:29:27]OFD Sender: No OFD packet to send [08:29:28]recv_with_timeout no data received [08:29:32]OFD Sender: No OFD packet to send [08:29:37]OFD Sender: No OFD packet to send [08:29:41]recv_with_timeout no data received [08:29:42]OFD Sender: No OFD packet to send [08:29:47]OFD Sender: No OFD packet to send [08:29:48]accept exits with 10 [08:29:48]New connection [08:29:48]New thread 3067624804 created [08:29:48]Thread 3067481444 joined [08:29:48]Waiting for new connection... [08:29:48] Sock 10.Parse request [08:29:48]Sock 10.Check first char [08:29:48]Sock 10.First char is OK [08:29:48]request: POST /json_proto HTTP/1.0 [08:29:48]Method: POST [08:29:48]URL: /json_proto [08:29:48]Method is POST - this is cgi request [08:29:48]url: /json_proto [08:29:48]query_string will be loaded in cgi processing [08:29:48]execute_cgi json_proto POST (null) [08:29:48]execute_cgi path=json_proto method=POST [08:29:48]POST find Content-Length [08:29:48]Host: 172.17.43.195:8080 [08:29:48]Content-Length: 796 [08:29:48]Content-Type: application/json [08:29:48] [08:29:48]POST finish read [08:29:48]Found Content-Length = 796 [08:29:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 3.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53624", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:48]execute_script... [08:29: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)952774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 3.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53624", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:48]POST & json_proto [08:29:48]process_json_proto [08:29:48]json parsed OK: [08:29:48]protocol is kg_v1.0 [08:29:48]action value=close_receipt [08:29:48]process_action close_receipt [08:29:48]cmd_close_receipt [08:29:48]MH_GetDate [08:29:48]Write to MH i2c: F0 00 00 2F 04 22 [08:29:48]Write i2c OK [08:29:48]MH_I2C_Read... [08:29:48]Read from MH i2c: F0 [08:29:48]MH_I2C_Read... [08:29:48]Read from MH i2c: F0 09 00 [08:29:48]MH_I2C_Read... [08:29:48]Read from MH i2c: F0 09 00 2F 04 00 7C 91 24 67 74 2C AD 66 76 [08:29:48]GetLastDocTimeStamp 1730449741 [08:29:48]current date 1730449788 [08:29:48]FM_GetShiftState [08:29:48]SAM_PROTO_GetShiftState [08:29:48]wFMCommunicate request_size=4 [08:29:48]MH_SAM_APDU [08:29:48]CAPDU: 80 13 01 00 [08:29:48]Write to MH i2c: E2 08 00 30 04 80 13 01 00 00 00 00 00 B1 [08:29:48]Write i2c OK [08:29:48]MH_I2C_Read... [08:29:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:48]Read from MH i2c: E2 [08:29:48]MH_I2C_Read... [08:29:48]Read from MH i2c: E2 0E 00 [08:29:48]MH_I2C_Read... [08:29:48]Read from MH i2c: E2 0E 00 30 04 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 F8 [08:29:48]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [08:29:48]wFMCommunicate OK [08:29:48]SAM_PROTO_GetShiftState done [08:29:48]FM_GetShiftState done [08:29:48]opened in 1730419605 [08:29:48]opened+sec_in_day 1730506005 [08:29:48]quantity*price = 0 [08:29:48]sum+1 = 1 [08:29:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 43 01.11.2024 08:29 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 53624 ФМ: 0000000000874662 ФД: 73174 ФПД: 65096552535270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T082948&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73174&fm=65096552535270&tin=02508201610067®Number=0000000000091644&sum=0 [08:29:49]StoreToDocumentArchive [08:29:49]shift 558 fd 73174 [08:29:49]save to /storage/0558/doc_00073174 [08:29:49]save last doc name /storage/0558/doc_00073174 to /storage/kkm_last_doc_name [08:29:49]save OK [08:29:49]Clear old archive folders... [08:29:49]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:29:49]tlvbuf is 00F779D0 [08:29:49]SAM_PROTO_ClearQueue [08:29:49]wFMCommunicate request_size=4 [08:29:49]MH_SAM_APDU [08:29:49]CAPDU: 80 09 00 00 [08:29:49]Write to MH i2c: E2 08 00 3D 04 80 09 00 00 00 00 00 00 B3 [08:29:49]Write i2c OK [08:29:49]MH_I2C_Read... [08:29:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:29:49]Read from MH i2c: E2 [08:29:49]MH_I2C_Read... [08:29:49]Read from MH i2c: E2 03 00 [08:29:49]MH_I2C_Read... [08:29:49]Read from MH i2c: E2 03 00 3D 04 00 90 00 B5 [08:29:49]RAPDU: 90 00 [08:29:49]wFMCommunicate OK [08:29:49]SAM_PROTO_ClearQueue done [08:29:49]KKMCreateOFDPacket [08:29:49]OFDProtocolAddRootSTLVToBuf [08:29:49]FM_MakeSignedData [08:29:49]FM_MakeSignedData [08:29:49]SAM_PROTO_SignData [08:29:49]wFMCommunicate request_size=4 [08:29:49]MH_SAM_APDU [08:29:49]CAPDU: 80 0D 01 02 [08:29:49]Write to MH i2c: E2 08 00 3E 04 80 0D 01 02 00 00 00 00 BB [08:29:49]Write i2c OK [08:29:49]MH_I2C_Read... [08:29:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:29:49]Read from MH i2c: E2 [08:29:49]MH_I2C_Read... [08:29:49]Read from MH i2c: E2 03 00 [08:29:49]MH_I2C_Read... [08:29:49]Read from MH i2c: E2 03 00 3E 04 00 90 00 B6 [08:29:49]RAPDU: 90 00 [08:29:49]wFMCommunicate OK [08:29:49]wFMCommunicate request_size=255 [08:29:49]MH_SAM_APDU [08:29:49]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 B8 0B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 7C 91 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D6 1D 01 00 35 04 06 00 [08:29:49]Write to MH i2c: E2 02 01 3F 04 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 7C 91 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D6 1D 01 00 35 04 06 00 00 00 AA [08:29:49]Write i2c OK [08:29:49]MH_I2C_Read... [08:29:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:49]Read from MH i2c: E2 [08:29:49]MH_I2C_Read... [08:29:49]Read from MH i2c: E2 03 00 [08:29:49]MH_I2C_Read... [08:29:49]Read from MH i2c: E2 03 00 3F 04 00 90 00 B7 [08:29:49]RAPDU: 90 00 [08:29:49]wFMCommunicate OK [08:29:49]wFMCommunicate request_size=11 [08:29:49]MH_SAM_APDU [08:29:49]CAPDU: 80 0D 02 02 06 3B 34 78 E3 D4 E6 [08:29:49]Write to MH i2c: E2 0E 00 40 04 80 0D 02 02 06 00 3B 34 78 E3 D4 E6 00 00 4E [08:29:49]Write i2c OK [08:29:49]MH_I2C_Read... [08:29:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:49]Read from MH i2c: E2 [08:29:49]MH_I2C_Read... [08:29:49]Read from MH i2c: E2 03 00 [08:29:49]MH_I2C_Read... [08:29:49]Read from MH i2c: E2 03 00 40 04 00 90 00 B8 [08:29:49]RAPDU: 90 00 [08:29:49]wFMCommunicate OK [08:29:49]wFMCommunicate request_size=4 [08:29:49]MH_SAM_APDU [08:29:49]CAPDU: 80 0D 03 02 [08:29:49]Write to MH i2c: E2 08 00 41 04 80 0D 03 02 00 00 00 00 C0 [08:29:49]Write i2c OK [08:29:49]MH_I2C_Read... [08:29:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:29:49]Read from MH i2c: E2 [08:29:49]MH_I2C_Read... [08:29:49]Read from MH i2c: E2 0B 00 [08:29:49]MH_I2C_Read... [08:29:49]Read from MH i2c: E2 0B 00 41 04 00 C5 F8 73 C7 35 64 20 63 90 00 D4 [08:29:49]RAPDU: C5 F8 73 C7 35 64 20 63 90 00 [08:29:49]wFMCommunicate OK [08:29:49]SAM_PROTO_SignData done [08:29:49]FM_MakeSignedData done [08:29:49]CreateOFDProtocolMessage [08:29:49]wFMCommunicate request_size=4 [08:29:49]MH_SAM_APDU [08:29:49]CAPDU: 80 11 00 00 [08:29:49]Write to MH i2c: E2 08 00 42 04 80 11 00 00 00 00 00 00 C0 [08:29:50]Write i2c OK [08:29:50]MH_I2C_Read... [08:29:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:50]Read from MH i2c: E2 [08:29:50]MH_I2C_Read... [08:29:50]Read from MH i2c: E2 17 00 [08:29:50]MH_I2C_Read... [08:29:50]Read from MH i2c: E2 17 00 42 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 14 [08:29:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:29:50]wFMCommunicate OK [08:29:50]CreateOFDProtocolMessage done [08:29:50]OFDSenderStorePacket 73174 [08:29:50]StoreOFDPacket docnum=73174 [08:29:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 AD 8E 08 01 74 28 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 7C 91 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D6 1D 01 00 35 04 06 00 3B 34 78 E3 D4 E6 C5 F8 73 C7 35 64 20 63 [08:29:50]CheckFolder [08:29:50]dirname=/storage/ofd_packets [08:29:50]CheckFolder done [08:29:50]ProducePacketName [08:29:50]name=ofd_packets/00073174 [08:29:50]NVStorageSaveData ofd_packets/00073174 [08:29:50]File name is /storage/ofd_packets/00073174 [08:29:50]Write 302 bytes [08:29:50]NVStorageSaveData done [08:29:50]OFDSenderStorePacket done [08:29:50]KKMCreateOFDPacket done [08:29:50]NVStorageSaveData kkm_last_timestamp [08:29:50]File name is /storage/kkm_last_timestamp [08:29:50]Write 4 bytes [08:29:50]NVStorageSaveData done [08:29:50]ExternCall_PrintAddStr [08:29:50]wPrintStart [08:29:50]Write to MH i2c: 01 00 00 43 04 47 [08:29:50]Write i2c OK [08:29:50]MH_I2C_Read... [08:29:50]Read from MH i2c: 01 [08:29:50]MH_I2C_Read... [08:29:50]Read from MH i2c: 01 07 00 [08:29:50]MH_I2C_Read... [08:29:50]Read from MH i2c: 01 07 00 43 04 00 00 00 00 00 FF 0F 5C [08:29:50]RasterBufferAndPrint [08:29:50]line Счет N : (1)952774 [08:29:50]line ИНН: 02508201610067 [08:29:50]line Контрольно-Кассовый Чек [08:29:50]line ПРОДАЖА [08:29:50]line ТРК (МРК, ГНК) : 43 [08:29:50]line Товар: 2710194210 [08:29:50]line ДТ(л)-К-5 [08:29:50]line 3.000 * 0.00 [08:29:50]line = 0.00 [08:29:50]line НДС 12% НСП 1% [08:29:50]line > о реализуемом товаре [08:29:50]line ИТОГО: 0.00 [08:29:50]line НСП 1% : 0.00 [08:29:50]line НДС 12% : 0.00 [08:29:50]line Наличными: 0.00 [08:29:50]line Безнал.: 0.00 [08:29:50]line Место: АЗС № 113 "Партнер Нефть" [08:29:50]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [08:29:50]line СНО: Общий режим [08:29:50]line Чек 43 01.11.2024 08:29 [08:29:50]line Смена: 558 ФФД: 1.0 [08:29:50]line ЗНМ: 0300000087 [08:29:50]line РНМ: 0000000000091644 [08:29:50]line Версия ККМ: 001 [08:29:50]line Талоны: Топливная Карта [08:29:50]line 53624 [08:29:50]line ФМ: 0000000000874662 [08:29:50]line ФД: 73174 [08:29:50]line ФПД: 65096552535270 [08:29:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T082948&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73174&fm=65096552535270&tin=02508201610067®Number=0000000000091644&sum=0 [08:29:50]written 0, free lines is 4095 [08:29:50]OFD Sender: Processing packet 73174 [packets to send 282, broken 281] [08:29:50]ProducePacketName [08:29:50]name=ofd_packets/00073174 [08:29:50]OFD Sender: To server: pG, [08:29:50]CommunicateWithHost lk.salyk.kg:30040 [08:29:50]ConnectInit lk.salyk.kg [08:29:50]Write to MH i2c: 01 00 00 6D 04 71 [08:29:50]Write i2c OK [08:29:50]MH_I2C_Read... [08:29:50]Read from MH i2c: 01 [08:29:50]MH_I2C_Read... [08:29:50]Read from MH i2c: 01 07 00 [08:29:50]MH_I2C_Read... [08:29:50]Read from MH i2c: 01 07 00 6D 04 00 00 00 00 00 EE 0C 72 [08:29:50]RasterBufferAndPrint [08:29:50]line [08:29:50]line [08:29:50]line [08:29:50]line [08:29:50]line [08:29:50]written 0, free lines is 3316 [08:29:50]MH_Cut [08:29:50]Write to MH i2c: D1 01 00 74 04 01 4A [08:29:50]Write i2c OK [08:29:50]MH_I2C_Read... [08:29:50]Read from MH i2c: D1 [08:29:50]MH_I2C_Read... [08:29:50]Read from MH i2c: D1 01 00 [08:29:50]MH_I2C_Read... [08:29:50]Read from MH i2c: D1 01 00 74 04 00 49 [08:29:50]Write to MH i2c: 01 00 00 75 04 79 [08:29:50]Write i2c OK [08:29:50]MH_I2C_Read... [08:29:51]*** Cut start [08:29:51]*** Partial cut [08:29:51]*** CUTSNS_PIN = 1 [08:29:51]*** CUTSNS_PIN = 0 [08:29:51]*** Brake cut motor [08:29:51]Read from MH i2c: 01 [08:29:51]MH_I2C_Read... [08:29:51]*** Stop cut motor [08:29:51]*** Cut end [08:29:51]Read from MH i2c: 01 07 00 [08:29:51]MH_I2C_Read... [08:29:51]Read from MH i2c: 01 07 00 75 04 00 00 00 00 00 FF 0F 8E [08:29:51]process_action close_receipt done [08:29:51]requested_data is exist [08:29:51]produce_requested_data [08:29:51]requested_item fm.sn is exist - process it [08:29:51]wFMCommunicate request_size=4 [08:29:51]MH_SAM_APDU [08:29:51]CAPDU: 80 11 00 00 [08:29:51]Write to MH i2c: E2 08 00 76 04 80 11 00 00 00 00 00 00 F4 [08:29:51]Write i2c OK [08:29:51]MH_I2C_Read... [08:29:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:51]Read from MH i2c: E2 [08:29:51]MH_I2C_Read... [08:29:51]Read from MH i2c: E2 17 00 [08:29:51]MH_I2C_Read... [08:29:51]Read from MH i2c: E2 17 00 76 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 48 [08:29:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:29:51]wFMCommunicate OK [08:29:51]requested_item fd.num is exist - process it [08:29:51]SAM_PROTO_GetFieldsCounters [08:29:51]wFMCommunicate request_size=4 [08:29:51]MH_SAM_APDU [08:29:51]CAPDU: 80 13 00 00 [08:29:51]Write to MH i2c: E2 08 00 77 04 80 13 00 00 00 00 00 00 F7 [08:29:51]Write i2c OK [08:29:51]MH_I2C_Read... [08:29:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:29:52]Read from MH i2c: E2 [08:29:52]MH_I2C_Read... [08:29:52]Read from MH i2c: E2 62 00 [08:29:52]MH_I2C_Read... [08:29:52]Read from MH i2c: E2 62 00 77 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 D6 1D 01 00 0E 04 04 00 2E 02 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 BD [08:29:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 D6 1D 01 00 0E 04 04 00 2E 02 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:29:52]wFMCommunicate OK [08:29:52]SAM_PROTO_GetFieldsCounters done [08:29:52]requested_item shift.num is exist - process it [08:29:52]requested_item shift.opened is exist - process it [08:29:52]req_shift_opened [08:29:52]FM_GetShiftState [08:29:52]SAM_PROTO_GetShiftState [08:29:52]wFMCommunicate request_size=4 [08:29:52]MH_SAM_APDU [08:29:52]CAPDU: 80 13 01 00 [08:29:52]Write to MH i2c: E2 08 00 78 04 80 13 01 00 00 00 00 00 F9 [08:29:52]Write i2c OK [08:29:52]MH_I2C_Read... [08:29:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:52]Read from MH i2c: E2 [08:29:52]MH_I2C_Read... [08:29:52]Read from MH i2c: E2 0E 00 [08:29:52]MH_I2C_Read... [08:29:52]Read from MH i2c: E2 0E 00 78 04 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 40 [08:29:52]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [08:29:52]wFMCommunicate OK [08:29:52]SAM_PROTO_GetShiftState done [08:29:52]FM_GetShiftState done [08:29:52]req_shift_opened done [08:29:52]requested_item shift.open_date is exist - process it [08:29:52]req_shift_open_date [08:29:52]req_shift_open_date done [08:29:52]produce_requested_data done [08:29:52]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73174,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [08:29:52]process_action_free close_receipt [08:29:52]json_value_free [08:29:52]json_value_free done [08:29:52]process_json_proto returns [08:29:52]Send response to host [08:29:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73174,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [08:29:52]free response buf [08:29:52]execute_script done [08:29:52]execute_script returns [08:29:52]free content buf [08:29:52]Sock 10.Close socket [08:29:52]Sock 10.Thread stoped [08:29:55]Connected sock=11 [08:29:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 AD 8E 08 01 74 28 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 7C 91 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D6 1D 01 00 35 04 06 00 3B 34 78 E3 D4 E6 C5 F8 73 C7 35 64 20 63 [08:29:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 ED 2E 47 00 77 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D6 1D 01 00 F4 03 04 00 36 3C 24 67 B6 04 01 00 00 CF ED FB A0 62 A4 37 4F [08:29:56]CommunicateWithHost err = 0 [08:29:56]CheckOFDResponse [08:29:56]1017 (14) - 77093643461234 [08:29:56]1041 (16) - 0000000000874662 [08:29:56]1040 (4) - 73174 [08:29:56]1012 (4) - 01.11.2024 02:25 [08:29:56]1206 (1) - 0 [08:29:56]OFD Sender: Remove packet 73174 [08:29:56]ProducePacketName [08:29:56]name=ofd_packets/00073174 [08:29:56]NVStorageDeleteData [08:29:57]OFD Sender: No OFD packet to send [08:30:02]OFD Sender: No OFD packet to send [08:30:04]recv_with_timeout no data received [08:30:07]OFD Sender: No OFD packet to send [08:30:12]OFD Sender: No OFD packet to send [08:30:17]OFD Sender: No OFD packet to send [08:30:18]recv_with_timeout no data received [08:30:22]OFD Sender: No OFD packet to send [08:30:27]OFD Sender: No OFD packet to send [08:30:32]OFD Sender: No OFD packet to send [08:30:33]recv_with_timeout no data received [08:30:37]OFD Sender: No OFD packet to send [08:30:42]OFD Sender: No OFD packet to send [08:30:47]OFD Sender: No OFD packet to send [08:30:52]OFD Sender: No OFD packet to send [08:30:57]OFD Sender: No OFD packet to send [08:31:02]accept exits with 9 [08:31:02]New connection [08:31:02]New thread 3067481444 created [08:31:02]Thread 3067624804 joined [08:31:02]Waiting for new connection... [08:31:02] Sock 9.Parse request [08:31:02]Sock 9.Check first char [08:31:02]Sock 9.First char is OK [08:31:02]request: POST /json_proto HTTP/1.0 [08:31:02]Method: POST [08:31:02]URL: /json_proto [08:31:02]Method is POST - this is cgi request [08:31:02]url: /json_proto [08:31:02]query_string will be loaded in cgi processing [08:31:02]execute_cgi json_proto POST (null) [08:31:02]execute_cgi path=json_proto method=POST [08:31:02]POST find Content-Length [08:31:02]Host: 172.17.43.195:8080 [08:31:02]Content-Length: 792 [08:31:02]Content-Type: application/json [08:31:02] [08:31:02]POST finish read [08:31:02]Found Content-Length = 792 [08:31:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:02]execute_script... [08:31: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)952772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:02]POST & json_proto [08:31:02]process_json_proto [08:31:02]json parsed OK: [08:31:02]protocol is kg_v1.0 [08:31:02]action value=close_receipt [08:31:02]process_action close_receipt [08:31:02]cmd_close_receipt [08:31:02]MH_GetDate [08:31:02]Write to MH i2c: F0 00 00 79 04 6C [08:31:02]Write i2c OK [08:31:02]MH_I2C_Read... [08:31:02]Read from MH i2c: F0 [08:31:02]MH_I2C_Read... [08:31:02]Read from MH i2c: F0 09 00 [08:31:02]MH_I2C_Read... [08:31:02]Read from MH i2c: F0 09 00 79 04 00 C6 91 24 67 74 2C AD 66 0A [08:31:02]GetLastDocTimeStamp 1730449788 [08:31:02]current date 1730449862 [08:31:02]FM_GetShiftState [08:31:02]SAM_PROTO_GetShiftState [08:31:02]wFMCommunicate request_size=4 [08:31:02]MH_SAM_APDU [08:31:02]CAPDU: 80 13 01 00 [08:31:02]Write to MH i2c: E2 08 00 7A 04 80 13 01 00 00 00 00 00 FB [08:31:02]Write i2c OK [08:31:02]MH_I2C_Read... [08:31:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:02]OFD Sender: No OFD packet to send [08:31:02]Read from MH i2c: E2 [08:31:02]MH_I2C_Read... [08:31:02]Read from MH i2c: E2 0E 00 [08:31:02]MH_I2C_Read... [08:31:02]Read from MH i2c: E2 0E 00 7A 04 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 42 [08:31:02]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [08:31:02]wFMCommunicate OK [08:31:02]SAM_PROTO_GetShiftState done [08:31:02]FM_GetShiftState done [08:31:02]opened in 1730419605 [08:31:02]opened+sec_in_day 1730506005 [08:31:02]quantity*price = 0 [08:31:02]sum+1 = 1 [08:31:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 44 01.11.2024 08:31 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 73175 ФПД: 24910376405203 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T083102&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73175&fm=24910376405203&tin=02508201610067®Number=0000000000091644&sum=0 [08:31:03]StoreToDocumentArchive [08:31:03]shift 558 fd 73175 [08:31:03]save to /storage/0558/doc_00073175 [08:31:03]save last doc name /storage/0558/doc_00073175 to /storage/kkm_last_doc_name [08:31:03]save OK [08:31:03]Clear old archive folders... [08:31:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:31:03]tlvbuf is 00F9F260 [08:31:03]SAM_PROTO_ClearQueue [08:31:03]wFMCommunicate request_size=4 [08:31:03]MH_SAM_APDU [08:31:03]CAPDU: 80 09 00 00 [08:31:03]Write to MH i2c: E2 08 00 87 04 80 09 00 00 00 00 00 00 FD [08:31:03]Write i2c OK [08:31:03]MH_I2C_Read... [08:31:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:31:03]Read from MH i2c: E2 [08:31:03]MH_I2C_Read... [08:31:03]Read from MH i2c: E2 03 00 [08:31:03]MH_I2C_Read... [08:31:03]Read from MH i2c: E2 03 00 87 04 00 90 00 FF [08:31:03]RAPDU: 90 00 [08:31:03]wFMCommunicate OK [08:31:03]SAM_PROTO_ClearQueue done [08:31:03]KKMCreateOFDPacket [08:31:03]OFDProtocolAddRootSTLVToBuf [08:31:03]FM_MakeSignedData [08:31:03]FM_MakeSignedData [08:31:03]SAM_PROTO_SignData [08:31:03]wFMCommunicate request_size=4 [08:31:03]MH_SAM_APDU [08:31:03]CAPDU: 80 0D 01 02 [08:31:03]Write to MH i2c: E2 08 00 88 04 80 0D 01 02 00 00 00 00 05 [08:31:03]Write i2c OK [08:31:03]MH_I2C_Read... [08:31:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:31:03]Read from MH i2c: E2 [08:31:03]MH_I2C_Read... [08:31:03]Read from MH i2c: E2 03 00 [08:31:03]MH_I2C_Read... [08:31:03]Read from MH i2c: E2 03 00 88 04 00 90 00 00 [08:31:03]RAPDU: 90 00 [08:31:03]wFMCommunicate OK [08:31:03]wFMCommunicate request_size=255 [08:31:03]MH_SAM_APDU [08:31: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 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 C6 91 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D7 1D 01 00 35 04 06 00 16 [08:31:03]Write to MH i2c: E2 02 01 89 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 C6 91 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D7 1D 01 00 35 04 06 00 16 00 00 6B [08:31:03]Write i2c OK [08:31:03]MH_I2C_Read... [08:31:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:04]Read from MH i2c: E2 [08:31:04]MH_I2C_Read... [08:31:04]Read from MH i2c: E2 03 00 [08:31:04]MH_I2C_Read... [08:31:04]Read from MH i2c: E2 03 00 89 04 00 90 00 01 [08:31:04]RAPDU: 90 00 [08:31:04]wFMCommunicate OK [08:31:04]wFMCommunicate request_size=10 [08:31:04]MH_SAM_APDU [08:31:04]CAPDU: 80 0D 02 02 05 A7 E6 23 08 D3 [08:31:04]Write to MH i2c: E2 0D 00 8A 04 80 0D 02 02 05 00 A7 E6 23 08 D3 00 00 9D [08:31:04]Write i2c OK [08:31:04]MH_I2C_Read... [08:31:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:04]Read from MH i2c: E2 [08:31:04]MH_I2C_Read... [08:31:04]Read from MH i2c: E2 03 00 [08:31:04]MH_I2C_Read... [08:31:04]Read from MH i2c: E2 03 00 8A 04 00 90 00 02 [08:31:04]RAPDU: 90 00 [08:31:04]wFMCommunicate OK [08:31:04]wFMCommunicate request_size=4 [08:31:04]MH_SAM_APDU [08:31:04]CAPDU: 80 0D 03 02 [08:31:04]Write to MH i2c: E2 08 00 8B 04 80 0D 03 02 00 00 00 00 0A [08:31:04]Write i2c OK [08:31:04]MH_I2C_Read... [08:31:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:31:04]Read from MH i2c: E2 [08:31:04]MH_I2C_Read... [08:31:04]Read from MH i2c: E2 0B 00 [08:31:04]MH_I2C_Read... [08:31:04]Read from MH i2c: E2 0B 00 8B 04 00 CC 1E 3D 8C FC 2F BB 95 90 00 39 [08:31:04]RAPDU: CC 1E 3D 8C FC 2F BB 95 90 00 [08:31:04]wFMCommunicate OK [08:31:04]SAM_PROTO_SignData done [08:31:04]FM_MakeSignedData done [08:31:04]CreateOFDProtocolMessage [08:31:04]wFMCommunicate request_size=4 [08:31:04]MH_SAM_APDU [08:31:04]CAPDU: 80 11 00 00 [08:31:04]Write to MH i2c: E2 08 00 8C 04 80 11 00 00 00 00 00 00 0A [08:31:04]Write i2c OK [08:31:04]MH_I2C_Read... [08:31:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:04]Read from MH i2c: E2 [08:31:04]MH_I2C_Read... [08:31:04]Read from MH i2c: E2 17 00 [08:31:04]MH_I2C_Read... [08:31:04]Read from MH i2c: E2 17 00 8C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5E [08:31:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:31:04]wFMCommunicate OK [08:31:04]CreateOFDProtocolMessage done [08:31:04]OFDSenderStorePacket 73175 [08:31:04]StoreOFDPacket docnum=73175 [08:31:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 2B 3A 07 01 EC 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 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 C6 91 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D7 1D 01 00 35 04 06 00 16 A7 E6 23 08 D3 CC 1E 3D 8C FC 2F BB 95 [08:31:04]CheckFolder [08:31:04]dirname=/storage/ofd_packets [08:31:04]CheckFolder done [08:31:04]ProducePacketName [08:31:04]name=ofd_packets/00073175 [08:31:04]NVStorageSaveData ofd_packets/00073175 [08:31:04]File name is /storage/ofd_packets/00073175 [08:31:04]Write 301 bytes [08:31:04]NVStorageSaveData done [08:31:04]OFDSenderStorePacket done [08:31:04]KKMCreateOFDPacket done [08:31:04]NVStorageSaveData kkm_last_timestamp [08:31:04]File name is /storage/kkm_last_timestamp [08:31:04]Write 4 bytes [08:31:04]NVStorageSaveData done [08:31:04]OFD Sender: Processing packet 73175 [packets to send 282, broken 281] [08:31:04]ProducePacketName [08:31:04]name=ofd_packets/00073175 [08:31:04]OFD Sender: To server: pG, [08:31:04]CommunicateWithHost lk.salyk.kg:30040 [08:31:04]ConnectInit lk.salyk.kg [08:31:04]ExternCall_PrintAddStr [08:31:04]wPrintStart [08:31:04]Write to MH i2c: 01 00 00 8D 04 91 [08:31:04]Write i2c OK [08:31:04]MH_I2C_Read... [08:31:04]Read from MH i2c: 01 [08:31:04]MH_I2C_Read... [08:31:04]Read from MH i2c: 01 07 00 [08:31:04]MH_I2C_Read... [08:31:04]Read from MH i2c: 01 07 00 8D 04 00 00 00 00 00 FF 0F A6 [08:31:04]RasterBufferAndPrint [08:31:04]line Счет N : (1)952772 [08:31:04]line ИНН: 02508201610067 [08:31:04]line Контрольно-Кассовый Чек [08:31:04]line ПРОДАЖА [08:31:04]line ТРК (МРК, ГНК) : 63 [08:31:04]line Товар: 2710124130 [08:31:04]line Аи-92-К-5 [08:31:04]line 50.000 * 0.00 [08:31:04]line = 0.00 [08:31:04]line НДС 12% НСП 1% [08:31:04]line > о реализуемом товаре [08:31:04]line ИТОГО: 0.00 [08:31:04]line НСП 1% : 0.00 [08:31:04]line НДС 12% : 0.00 [08:31:04]line Наличными: 0.00 [08:31:04]line Безнал.: 0.00 [08:31:04]line Место: АЗС № 113 "Партнер Нефть" [08:31:04]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [08:31:04]line СНО: Общий режим [08:31:04]line Чек 44 01.11.2024 08:31 [08:31:04]line Смена: 558 ФФД: 1.0 [08:31:04]line ЗНМ: 0300000087 [08:31:04]line РНМ: 0000000000091644 [08:31:04]line Версия ККМ: 001 [08:31:04]line Талоны: Топливная Карта [08:31:04]line 03047 [08:31:04]line ФМ: 0000000000874662 [08:31:04]line ФД: 73175 [08:31:04]line ФПД: 24910376405203 [08:31:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T083102&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73175&fm=24910376405203&tin=02508201610067®Number=0000000000091644&sum=0 [08:31:04]written 0, free lines is 4095 [08:31:04]Write to MH i2c: 01 00 00 B7 04 BB [08:31:04]Write i2c OK [08:31:04]MH_I2C_Read... [08:31:04]Read from MH i2c: 01 [08:31:04]MH_I2C_Read... [08:31:04]Read from MH i2c: 01 07 00 [08:31:04]MH_I2C_Read... [08:31:04]Read from MH i2c: 01 07 00 B7 04 00 00 00 00 00 E5 0C B3 [08:31:04]RasterBufferAndPrint [08:31:04]line [08:31:04]line [08:31:04]line [08:31:04]line [08:31:04]line [08:31:04]written 0, free lines is 3308 [08:31:04]MH_Cut [08:31:04]Write to MH i2c: D1 01 00 BE 04 01 94 [08:31:04]Write i2c OK [08:31:04]MH_I2C_Read... [08:31:04]Read from MH i2c: D1 [08:31:04]MH_I2C_Read... [08:31:04]Read from MH i2c: D1 01 00 [08:31:04]MH_I2C_Read... [08:31:04]Read from MH i2c: D1 01 00 BE 04 00 93 [08:31:04]Write to MH i2c: 01 00 00 BF 04 C3 [08:31:04]Write i2c OK [08:31:04]MH_I2C_Read... [08:31:05]*** Cut start [08:31:05]*** Partial cut [08:31:05]*** CUTSNS_PIN = 1 [08:31:05]*** CUTSNS_PIN = 0 [08:31:05]*** Brake cut motor [08:31:06]Read from MH i2c: 01 [08:31:06]MH_I2C_Read... [08:31:06]*** Stop cut motor [08:31:06]*** Cut end [08:31:06]Read from MH i2c: 01 07 00 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: 01 07 00 BF 04 00 00 00 00 00 FF 0F D8 [08:31:06]process_action close_receipt done [08:31:06]requested_data is exist [08:31:06]produce_requested_data [08:31:06]requested_item fm.sn is exist - process it [08:31:06]wFMCommunicate request_size=4 [08:31:06]MH_SAM_APDU [08:31:06]CAPDU: 80 11 00 00 [08:31:06]Write to MH i2c: E2 08 00 C0 04 80 11 00 00 00 00 00 00 3E [08:31:06]Write i2c OK [08:31:06]MH_I2C_Read... [08:31:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:06]Read from MH i2c: E2 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 17 00 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 17 00 C0 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 92 [08:31:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:31:06]wFMCommunicate OK [08:31:06]requested_item fd.num is exist - process it [08:31:06]SAM_PROTO_GetFieldsCounters [08:31:06]wFMCommunicate request_size=4 [08:31:06]MH_SAM_APDU [08:31:06]CAPDU: 80 13 00 00 [08:31:06]Write to MH i2c: E2 08 00 C1 04 80 13 00 00 00 00 00 00 41 [08:31:06]Write i2c OK [08:31:06]MH_I2C_Read... [08:31:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:06]Read from MH i2c: E2 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 62 00 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 62 00 C1 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 D7 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [08:31:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 D7 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:31:06]wFMCommunicate OK [08:31:06]SAM_PROTO_GetFieldsCounters done [08:31:06]requested_item shift.num is exist - process it [08:31:06]requested_item shift.opened is exist - process it [08:31:06]req_shift_opened [08:31:06]FM_GetShiftState [08:31:06]SAM_PROTO_GetShiftState [08:31:06]wFMCommunicate request_size=4 [08:31:06]MH_SAM_APDU [08:31:06]CAPDU: 80 13 01 00 [08:31:06]Write to MH i2c: E2 08 00 C2 04 80 13 01 00 00 00 00 00 43 [08:31:06]Write i2c OK [08:31:06]MH_I2C_Read... [08:31:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:06]Read from MH i2c: E2 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 0E 00 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 0E 00 C2 04 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 8A [08:31:06]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [08:31:06]wFMCommunicate OK [08:31:06]SAM_PROTO_GetShiftState done [08:31:06]FM_GetShiftState done [08:31:06]req_shift_opened done [08:31:06]requested_item shift.open_date is exist - process it [08:31:06]req_shift_open_date [08:31:06]req_shift_open_date done [08:31:06]produce_requested_data done [08:31:06]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73175,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [08:31:06]process_action_free close_receipt [08:31:06]json_value_free [08:31:06]json_value_free done [08:31:06]process_json_proto returns [08:31:06]Send response to host [08:31:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73175,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [08:31:06]free response buf [08:31:06]execute_script done [08:31:06]execute_script returns [08:31:06]free content buf [08:31:06]Sock 9.Close socket [08:31:06]Sock 9.Thread stoped [08:31:10]Connected sock=12 [08:31:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 2B 3A 07 01 EC 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 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 C6 91 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D7 1D 01 00 35 04 06 00 16 A7 E6 23 08 D3 CC 1E 3D 8C FC 2F BB 95 [08:31:15]recv_with_timeout no data received [08:31:15]CommunicateWithHost answer receiving error [08:31:15]CommunicateWithHost err = -3 [08:31:15]OFD Sender: Server communicate error [08:31:20]OFD Sender: Processing packet 73175 [packets to send 282, broken 281] [08:31:20]ProducePacketName [08:31:20]name=ofd_packets/00073175 [08:31:20]OFD Sender: To server: pG, [08:31:20]CommunicateWithHost lk.salyk.kg:30040 [08:31:20]ConnectInit lk.salyk.kg [08:31:21]recv_with_timeout no data received [08:31:25]ConnectInit Can't take IP for lk.salyk.kg [08:31:25]CommunicateWithHost connect error [08:31:25]CommunicateWithHost err = -1 [08:31:25]OFD Sender: Server communicate error [08:31:30]OFD Sender: Processing packet 73175 [packets to send 282, broken 281] [08:31:30]ProducePacketName [08:31:30]name=ofd_packets/00073175 [08:31:30]OFD Sender: To server: pG, [08:31:30]CommunicateWithHost lk.salyk.kg:30040 [08:31:30]ConnectInit lk.salyk.kg [08:31:35]ConnectInit Can't take IP for lk.salyk.kg [08:31:35]CommunicateWithHost connect error [08:31:35]CommunicateWithHost err = -1 [08:31:35]OFD Sender: Server communicate error [08:31:39]recv_with_timeout no data received [08:31:40]OFD Sender: Processing packet 73175 [packets to send 282, broken 281] [08:31:40]ProducePacketName [08:31:40]name=ofd_packets/00073175 [08:31:40]OFD Sender: To server: pG, [08:31:40]CommunicateWithHost lk.salyk.kg:30040 [08:31:40]ConnectInit lk.salyk.kg [08:31:45]ConnectInit Can't take IP for lk.salyk.kg [08:31:45]CommunicateWithHost connect error [08:31:45]CommunicateWithHost err = -1 [08:31:45]OFD Sender: Server communicate error [08:31:50]OFD Sender: Processing packet 73175 [packets to send 282, broken 281] [08:31:50]ProducePacketName [08:31:50]name=ofd_packets/00073175 [08:31:50]OFD Sender: To server: pG, [08:31:50]CommunicateWithHost lk.salyk.kg:30040 [08:31:50]ConnectInit lk.salyk.kg [08:31:55]ConnectInit Can't take IP for lk.salyk.kg [08:31:55]CommunicateWithHost connect error [08:31:55]CommunicateWithHost err = -1 [08:31:55]OFD Sender: Server communicate error [08:32:00]OFD Sender: Processing packet 73175 [packets to send 282, broken 281] [08:32:00]ProducePacketName [08:32:00]name=ofd_packets/00073175 [08:32:00]OFD Sender: To server: pG, [08:32:00]CommunicateWithHost lk.salyk.kg:30040 [08:32:00]ConnectInit lk.salyk.kg [08:32:03]recv_with_timeout no data received [08:32:05]ConnectInit Can't take IP for lk.salyk.kg [08:32:05]CommunicateWithHost connect error [08:32:05]CommunicateWithHost err = -1 [08:32:05]OFD Sender: Server communicate error [08:32:10]OFD Sender: Processing packet 73175 [packets to send 282, broken 281] [08:32:10]ProducePacketName [08:32:10]name=ofd_packets/00073175 [08:32:10]OFD Sender: To server: pG, [08:32:10]CommunicateWithHost lk.salyk.kg:30040 [08:32:10]ConnectInit lk.salyk.kg [08:32:11]Connected sock=9 [08:32:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 2B 3A 07 01 EC 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 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 C6 91 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D7 1D 01 00 35 04 06 00 16 A7 E6 23 08 D3 CC 1E 3D 8C FC 2F BB 95 [08:32:12]accept exits with 10 [08:32:12]New connection [08:32:12]New thread 3067624804 created [08:32:12]Thread 3067481444 joined [08:32:12]Waiting for new connection... [08:32:12] Sock 10.Parse request [08:32:12]Sock 10.Check first char [08:32:12]Sock 10.First char is OK [08:32:12]request: POST /json_proto HTTP/1.0 [08:32:12]Method: POST [08:32:12]URL: /json_proto [08:32:12]Method is POST - this is cgi request [08:32:12]url: /json_proto [08:32:12]query_string will be loaded in cgi processing [08:32:12]execute_cgi json_proto POST (null) [08:32:12]execute_cgi path=json_proto method=POST [08:32:12]POST find Content-Length [08:32:12]Host: 172.17.43.195:8080 [08:32:12]Content-Length: 677 [08:32:12]Content-Type: application/json [08:32:12] [08:32:12]POST finish read [08:32:12]Found Content-Length = 677 [08:32:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952775", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.270, "sum" : 620.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:12]execute_script... [08:32: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)952775", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.270, "sum" : 620.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:12]POST & json_proto [08:32:12]process_json_proto [08:32:12]json parsed OK: [08:32:12]protocol is kg_v1.0 [08:32:12]action value=close_receipt [08:32:12]process_action close_receipt [08:32:12]cmd_close_receipt [08:32:12]MH_GetDate [08:32:12]Write to MH i2c: F0 00 00 C3 04 B6 [08:32:12]Write i2c OK [08:32:12]MH_I2C_Read... [08:32:12]Read from MH i2c: F0 [08:32:12]MH_I2C_Read... [08:32:12]Read from MH i2c: F0 09 00 [08:32:12]MH_I2C_Read... [08:32:12]Read from MH i2c: F0 09 00 C3 04 00 0D 92 24 67 74 2C AD 66 9C [08:32:12]GetLastDocTimeStamp 1730449862 [08:32:12]current date 1730449933 [08:32:12]FM_GetShiftState [08:32:12]SAM_PROTO_GetShiftState [08:32:12]wFMCommunicate request_size=4 [08:32:12]MH_SAM_APDU [08:32:12]CAPDU: 80 13 01 00 [08:32:12]Write to MH i2c: E2 08 00 C4 04 80 13 01 00 00 00 00 00 45 [08:32:12]Write i2c OK [08:32:12]MH_I2C_Read... [08:32:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:12]Read from MH i2c: E2 [08:32:12]MH_I2C_Read... [08:32:12]Read from MH i2c: E2 0E 00 [08:32:12]MH_I2C_Read... [08:32:12]Read from MH i2c: E2 0E 00 C4 04 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 8C [08:32:12]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [08:32:12]wFMCommunicate OK [08:32:12]SAM_PROTO_GetShiftState done [08:32:12]FM_GetShiftState done [08:32:12]opened in 1730419605 [08:32:12]opened+sec_in_day 1730506005 [08:32:12]quantity*price = 62016 [08:32:12]sum+1 = 62017 [08:32:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 620.00 Внесено: 620.00 СДАЧА: 0.00 НСП 1% : 5.49 НДС 12% : 65.86 Наличными: 620.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 45 01.11.2024 08:32 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73176 ФПД: 143677385462522 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T083213&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73176&fm=143677385462522&tin=02508201610067®Number=0000000000091644&sum=62000 [08:32:13]StoreToDocumentArchive [08:32:13]shift 558 fd 73176 [08:32:13]save to /storage/0558/doc_00073176 [08:32:13]save last doc name /storage/0558/doc_00073176 to /storage/kkm_last_doc_name [08:32:13]save OK [08:32:13]Clear old archive folders... [08:32:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:32:13]tlvbuf is 010016A0 [08:32:13]SAM_PROTO_ClearQueue [08:32:13]wFMCommunicate request_size=4 [08:32:13]MH_SAM_APDU [08:32:13]CAPDU: 80 09 00 00 [08:32:13]Write to MH i2c: E2 08 00 D1 04 80 09 00 00 00 00 00 00 47 [08:32:13]Write i2c OK [08:32:13]MH_I2C_Read... [08:32:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:32:13]Read from MH i2c: E2 [08:32:13]MH_I2C_Read... [08:32:13]Read from MH i2c: E2 03 00 [08:32:13]MH_I2C_Read... [08:32:13]Read from MH i2c: E2 03 00 D1 04 00 90 00 49 [08:32:13]RAPDU: 90 00 [08:32:13]wFMCommunicate OK [08:32:13]SAM_PROTO_ClearQueue done [08:32:13]KKMCreateOFDPacket [08:32:13]OFDProtocolAddRootSTLVToBuf [08:32:13]FM_MakeSignedData [08:32:13]FM_MakeSignedData [08:32:13]SAM_PROTO_SignData [08:32:13]wFMCommunicate request_size=4 [08:32:13]MH_SAM_APDU [08:32:13]CAPDU: 80 0D 01 02 [08:32:13]Write to MH i2c: E2 08 00 D2 04 80 0D 01 02 00 00 00 00 4F [08:32:13]Write i2c OK [08:32:13]MH_I2C_Read... [08:32:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:32:13]Read from MH i2c: E2 [08:32:13]MH_I2C_Read... [08:32:13]Read from MH i2c: E2 03 00 [08:32:13]MH_I2C_Read... [08:32:13]Read from MH i2c: E2 03 00 D2 04 00 90 00 4A [08:32:13]RAPDU: 90 00 [08:32:13]wFMCommunicate OK [08:32:13]wFMCommunicate request_size=255 [08:32:13]MH_SAM_APDU [08:32: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 36 24 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 40 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 19 00 00 00 00 07 04 06 00 30 F2 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 0D 92 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D8 1D 01 00 35 04 06 00 82 [08:32:13]Write to MH i2c: E2 02 01 D3 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 24 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 40 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 19 00 00 00 00 07 04 06 00 30 F2 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 0D 92 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D8 1D 01 00 35 04 06 00 82 00 00 5E [08:32:13]Write i2c OK [08:32:13]MH_I2C_Read... [08:32:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:14]Read from MH i2c: E2 [08:32:14]MH_I2C_Read... [08:32:14]Read from MH i2c: E2 03 00 [08:32:14]MH_I2C_Read... [08:32:14]Read from MH i2c: E2 03 00 D3 04 00 90 00 4B [08:32:14]RAPDU: 90 00 [08:32:14]wFMCommunicate OK [08:32:14]wFMCommunicate request_size=10 [08:32:14]MH_SAM_APDU [08:32:14]CAPDU: 80 0D 02 02 05 AC 7F 85 D2 FA [08:32:14]Write to MH i2c: E2 0D 00 D4 04 80 0D 02 02 05 00 AC 7F 85 D2 FA 00 00 D8 [08:32:14]Write i2c OK [08:32:14]MH_I2C_Read... [08:32:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:14]Read from MH i2c: E2 [08:32:14]MH_I2C_Read... [08:32:14]Read from MH i2c: E2 03 00 [08:32:14]MH_I2C_Read... [08:32:14]Read from MH i2c: E2 03 00 D4 04 00 90 00 4C [08:32:14]RAPDU: 90 00 [08:32:14]wFMCommunicate OK [08:32:14]wFMCommunicate request_size=4 [08:32:14]MH_SAM_APDU [08:32:14]CAPDU: 80 0D 03 02 [08:32:14]Write to MH i2c: E2 08 00 D5 04 80 0D 03 02 00 00 00 00 54 [08:32:14]Write i2c OK [08:32:14]MH_I2C_Read... [08:32:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:32:14]Read from MH i2c: E2 [08:32:14]MH_I2C_Read... [08:32:14]Read from MH i2c: [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]/dev/ttyS4 opened [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1F [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:09]*** MH1903S init start (LINUX_LIGHT) [00:00:09]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:09]*** Serial: 3139303353513838 540000000057257A (1903SQ88T) [00:00:09]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:09]*** step 0: 5000 (2650, 2350 REF) [00:00:09]*** step 1: 4835 (2500, 2335 REF) [00:00:09]*** step 2: 4676 (2440, 2236 REF) [00:00:09]*** step 3: 4523 (2280, 2243 REF) [00:00:09]*** step 4: 4376 (2160, 2216 REF) [00:00:09]*** step 5: 4235 (2050, 2185 REF) [00:00:09]*** step 6: 4098 (1950, 2148 REF) [00:00:09]*** step 7: 3967 (1870, 2097 REF) [00:00:09]*** step 8: 3840 (1828, 2012 REF) [00:00:09]*** step 9: 3719 (1728, 1991 REF) [00:00:09]*** step 10: 3601 (1675, 1926 REF) [00:00:09]*** step 11: 3488 (1635, 1853 REF) [00:00:09]*** step 12: 3379 (1595, 1784 REF) [00:00:09]*** step 13: 3275 (1565, 1710 REF) [00:00:09]*** step 14: 3174 (1543, 1631 REF) [00:00:09]*** step 15: 3077 (1523, 1554 REF) [00:00:09]*** step 16: 2983 (1503, 1480 REF) [00:00:09]*** step 17: 2893 (1486, 1407 REF) [00:00:09]*** step 18: 2806 (1466, 1340 REF) [00:00:09]*** step 19: 2723 (1426, 1297 REF) [00:00:09]*** step 20: 2642 (1406, 1236 REF) [00:00:09]*** step 21: 2565 (1384, 1181 REF) [00:00:09]*** step 22: 2490 (1364, 1126 REF) [00:00:09]*** step 23: 2418 (1344, 1074 REF) [00:00:09]*** step 24: 2349 (1322, 1027 REF) [00:00:09]*** step 25: 2283 (1302, 981 REF) [00:00:09]*** step 26: 2218 (1282, 936 REF) [00:00:09]*** step 27: 2157 (1262, 895 REF) [00:00:09]*** step 28: 2097 (1242, 855 REF) [00:00:09]*** step 29: 2040 (1222, 818 REF) [00:00:09]*** step 30: 1985 (1202, 783 REF) [00:00:09]*** step 31: 1932 (1191, 741 REF) [00:00:09]*** step 32: 1880 (1181, 699 REF) [00:00:09]*** step 33: 1831 (1171, 660 REF) [00:00:09]*** step 34: 1784 (1161, 623 REF) [00:00:09]*** step 35: 1738 (1151, 587 REF) [00:00:09]*** step 36: 1694 (1141, 553 REF) [00:00:09]*** step 37: 1652 (1131, 521 REF) [00:00:09]*** step 38: 1611 (1121, 490 REF) [00:00:09]*** step 39: 1572 (1111, 461 REF) [00:00:09]*** step 40: 1534 (1103, 431 REF) [00:00:09]*** step 41: 1497 (1093, 404 REF) [00:00:09]*** step 42: 1462 (1083, 379 REF) [00:00:09]*** step 43: 1428 (1073, 355 REF) [00:00:09]*** step 44: 1396 (1063, 333 REF) [00:00:09]*** step 45: 1365 (1053, 312 REF) [00:00:09]*** step 46: 1334 (1043, 291 REF) [00:00:09]*** step 47: 1305 (1033, 272 REF) [00:00:09]*** step 48: 1277 (1023, 254 REF) [00:00:09]*** step 49: 1250 (1013, 237 REF) [00:00:09]*** step 50: 1224 (990, 234 REF) [00:00:09]*** step 51: 1199 (980, 219 REF) [00:00:09]*** step 52: 1175 (970, 205 REF) [00:00:09]*** step 53: 1152 (960, 192 REF) [00:00:09]*** step 54: 1130 (950, 180 REF) [00:00:09]*** step 55: 1108 (940, 168 REF) [00:00:09]*** step 56: 1088 (930, 158 REF) [00:00:09]*** step 57: 1068 (920, 148 REF) [00:00:09]*** step 58: 1049 (910, 139 REF) [00:00:09]*** step 59: 1030 (900, 130 REF) [00:00:09]*** step 60: 1012 (890, 122 REF) [00:00:09]*** step 61: 995 (880, 115 REF) [00:00:09]*** step 62: 979 (870, 109 REF) [00:00:09]*** step 63: 963 (860, 103 REF) [00:00:09]*** step 64: 948 (850, 98 REF) [00:00:09]*** step 65: 933 (840, 93 REF) [00:00:09]*** step 66: 919 (830, 89 REF) [00:00:09]*** step 67: 905 (820, 85 REF) [00:00:09]*** step 68: 892 (810, 82 REF) [00:00:09]*** step 69: 879 (800, 79 REF) [00:00:09]*** step 70: 867 (790, 77 REF) [00:00:09]*** step 71: 855 (780, 75 REF) [00:00:09]*** step 72: 844 (770, 74 REF) [00:00:09]*** step 73: 833 (760, 73 REF) [00:00:09]*** step 74: 822 (750, 72 REF) [00:00:09]*** step 75: 812 (740, 72 REF) [00:00:09]*** step 76: 803 (730, 73 REF) [00:00:09]*** step 77: 793 (720, 73 REF) [00:00:09]*** step 78: 784 (710, 74 REF) [00:00:09]*** step 79: 776 (700, 76 REF) [00:00:09]*** step 80: 767 (690, 77 REF) [00:00:09]*** step 81: 759 (680, 79 REF) [00:00:09]*** step 82: 751 (670, 81 REF) [00:00:09]*** step 83: 744 (660, 84 REF) [00:00:09]*** step 84: 737 (650, 87 REF) [00:00:09]*** step 85: 730 (640, 90 REF) [00:00:09]*** step 86: 723 (630, 93 REF) [00:00:09]*** step 87: 717 (620, 97 REF) [00:00:09]*** step 88: 710 (610, 100 REF) [00:00:09]*** step 89: 705 (600, 105 REF) [00:00:09]*** step 90: 699 [00:00:09]*** step 91: 693 [00:00:09]*** step 92: 688 [00:00:09]*** step 93: 683 [00:00:09]*** step 94: 678 [00:00:09]*** step 95: 673 [00:00:09]*** step 96: 669 [00:00:09]*** step 97: 664 [00:00:09]*** step 98: 660 [00:00:09]*** step 99: 656 [00:00:09]*** step 100: 652 [00:00:09]*** step 101: 648 [00:00:09]*** step 102: 644 [00:00:09]*** step 103: 641 [00:00:09]*** step 104: 638 [00:00:09]*** step 105: 634 [00:00:09]*** step 106: 631 [00:00:09]*** step 107: 628 [00:00:09]*** step 108: 625 [00:00:09]*** step 109: 622 [00:00:09]*** step 110: 620 [00:00:09]*** step 111: 617 [00:00:09]*** step 112: 615 [00:00:09]*** step 113: 612 [00:00:09]*** step 114: 610 [00:00:09]*** step 115: 608 [00:00:09]*** step 116: 605 [00:00:09]*** step 117: 603 [00:00:09]*** step 118: 601 [00:00:09]*** step 119: 599 [00:00:09]*** printer: Printer HW initialized [00:00:09]*** initSamCard finished [00:00:09]*** RTC: 7826356+1722625140=1730451496 [00:00:09]*** BPK Status Register BPK_RDY = 0x0 [00:00:09]*** SEN State Register SEN_STATE = 0x20ff [00:00:09]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:09]*** Analog Control Register 0 SEN_ANA0 = 0x33550623 [00:00:09]*** Is cutter blocked? [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 20 [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30620 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:10]Write to MH i2c: D5 00 00 06 00 DA [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 28 98 24 67 74 2C AD 66 FD [08:58:16]Current date/time: 01.11.2024 08:58 [08:58:16]FM_Init [08:58:16]wFMConnect [08:58:16]MH_SAM_On [08:58:16]Write to MH i2c: E0 00 00 08 00 E7 [08:58:16]Write i2c OK [08:58:16]MH_I2C_Read... [08:58:16]*** iso7816_init finished! [08:58:16]*** atr: [08:58:16]*** 0F 3B D5 18 FF 81 91 FE [08:58:16]*** 1F C3 80 73 C8 21 10 0A [08:58:16]*** 00 00 00 00 00 00 00 00 [08:58:16]*** 00 00 00 00 00 00 00 00 [08:58:16]*** 00 00 00 00 00 00 00 00 [08:58:16]*** 00 00 00 00 00 00 00 00 [08:58:16]*** 00 00 00 00 00 00 00 00 [08:58:16]*** 00 00 00 00 00 00 00 00 [08:58:16]Read from MH i2c: E0 [08:58:16]MH_I2C_Read... [08:58:16]Read from MH i2c: E0 10 00 [08:58:16]MH_I2C_Read... [08:58:16]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [08:58:16]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [08:58:16]wFMCommunicate request_size=10 [08:58:16]MH_SAM_APDU [08:58:16]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [08:58:16]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [00:00:08] *** EcrCore started. Build 196 *** [00:00:08]MH_InterfaceInit /dev/i2c-1 [00:00:08]Malloc ok [00:00:08]/dev/ttyS4 opened [00:00:08]MH_GetMetrics [00:00:08]Write to MH i2c: 00 00 00 01 00 00 [00:00:08]Write i2c OK [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: 00 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: 00 29 00 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1F [00:00:08]Are we in boot? [00:00:08]We are in boot - try to switch [00:00:08]Write to MH i2c: A0 00 00 02 00 A1 [00:00:08]Write i2c OK [00:00:08]MH_I2C_Read... [00:00:08]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:08]*** [00:00:08]Read from MH i2c: A0 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: A0 01 00 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:08]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:08]*** Waiting for read because exit forced [00:00:08]*** 10 ms more... [00:00:08]*** MH1903S init start (LINUX_LIGHT) [00:00:08]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:08]*** Serial: 3139303353513838 540000000057257A (1903SQ88T) [00:00:08]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:08]*** step 0: 5000 (2650, 2350 REF) [00:00:08]*** step 1: 4835 (2500, 2335 REF) [00:00:08]*** step 2: 4676 (2440, 2236 REF) [00:00:08]*** step 3: 4523 (2280, 2243 REF) [00:00:08]*** step 4: 4376 (2160, 2216 REF) [00:00:08]*** step 5: 4235 (2050, 2185 REF) [00:00:08]*** step 6: 4098 (1950, 2148 REF) [00:00:08]*** step 7: 3967 (1870, 2097 REF) [00:00:08]*** step 8: 3840 (1828, 2012 REF) [00:00:08]*** step 9: 3719 (1728, 1991 REF) [00:00:09]*** step 10: 3601 (1675, 1926 REF) [00:00:09]*** step 11: 3488 (1635, 1853 REF) [00:00:09]*** step 12: 3379 (1595, 1784 REF) [00:00:09]*** step 13: 3275 (1565, 1710 REF) [00:00:09]*** step 14: 3174 (1543, 1631 REF) [00:00:09]*** step 15: 3077 (1523, 1554 REF) [00:00:09]*** step 16: 2983 (1503, 1480 REF) [00:00:09]*** step 17: 2893 (1486, 1407 REF) [00:00:09]*** step 18: 2806 (1466, 1340 REF) [00:00:09]*** step 19: 2723 (1426, 1297 REF) [00:00:09]*** step 20: 2642 (1406, 1236 REF) [00:00:09]*** step 21: 2565 (1384, 1181 REF) [00:00:09]*** step 22: 2490 (1364, 1126 REF) [00:00:09]*** step 23: 2418 (1344, 1074 REF) [00:00:09]*** step 24: 2349 (1322, 1027 REF) [00:00:09]*** step 25: 2283 (1302, 981 REF) [00:00:09]*** step 26: 2218 (1282, 936 REF) [00:00:09]*** step 27: 2157 (1262, 895 REF) [00:00:09]*** step 28: 2097 (1242, 855 REF) [00:00:09]*** step 29: 2040 (1222, 818 REF) [00:00:09]*** step 30: 1985 (1202, 783 REF) [00:00:09]*** step 31: 1932 (1191, 741 REF) [00:00:09]*** step 32: 1880 (1181, 699 REF) [00:00:09]*** step 33: 1831 (1171, 660 REF) [00:00:09]*** step 34: 1784 (1161, 623 REF) [00:00:09]*** step 35: 1738 (1151, 587 REF) [00:00:09]*** step 36: 1694 (1141, 553 REF) [00:00:09]*** step 37: 1652 (1131, 521 REF) [00:00:09]*** step 38: 1611 (1121, 490 REF) [00:00:09]*** step 39: 1572 (1111, 461 REF) [00:00:09]*** step 40: 1534 (1103, 431 REF) [00:00:09]*** step 41: 1497 (1093, 404 REF) [00:00:09]*** step 42: 1462 (1083, 379 REF) [00:00:09]*** step 43: 1428 (1073, 355 REF) [00:00:09]*** step 44: 1396 (1063, 333 REF) [00:00:09]*** step 45: 1365 (1053, 312 REF) [00:00:09]*** step 46: 1334 (1043, 291 REF) [00:00:09]*** step 47: 1305 (1033, 272 REF) [00:00:09]*** step 48: 1277 (1023, 254 REF) [00:00:09]*** step 49: 1250 (1013, 237 REF) [00:00:09]*** step 50: 1224 (990, 234 REF) [00:00:09]*** step 51: 1199 (980, 219 REF) [00:00:09]*** step 52: 1175 (970, 205 REF) [00:00:09]*** step 53: 1152 (960, 192 REF) [00:00:09]*** step 54: 1130 (950, 180 REF) [00:00:09]*** step 55: 1108 (940, 168 REF) [00:00:09]*** step 56: 1088 (930, 158 REF) [00:00:09]*** step 57: 1068 (920, 148 REF) [00:00:09]*** step 58: 1049 (910, 139 REF) [00:00:09]*** step 59: 1030 (900, 130 REF) [00:00:09]*** step 60: 1012 (890, 122 REF) [00:00:09]*** step 61: 995 (880, 115 REF) [00:00:09]*** step 62: 979 (870, 109 REF) [00:00:09]*** step 63: 963 (860, 103 REF) [00:00:09]*** step 64: 948 (850, 98 REF) [00:00:09]*** step 65: 933 (840, 93 REF) [00:00:09]*** step 66: 919 (830, 89 REF) [00:00:09]*** step 67: 905 (820, 85 REF) [00:00:09]*** step 68: 892 (810, 82 REF) [00:00:09]*** step 69: 879 (800, 79 REF) [00:00:09]*** step 70: 867 (790, 77 REF) [00:00:09]*** step 71: 855 (780, 75 REF) [00:00:09]*** step 72: 844 (770, 74 REF) [00:00:09]*** step 73: 833 (760, 73 REF) [00:00:09]*** step 74: 822 (750, 72 REF) [00:00:09]*** step 75: 812 (740, 72 REF) [00:00:09]*** step 76: 803 (730, 73 REF) [00:00:09]*** step 77: 793 (720, 73 REF) [00:00:09]*** step 78: 784 (710, 74 REF) [00:00:09]*** step 79: 776 (700, 76 REF) [00:00:09]*** step 80: 767 (690, 77 REF) [00:00:09]*** step 81: 759 (680, 79 REF) [00:00:09]*** step 82: 751 (670, 81 REF) [00:00:09]*** step 83: 744 (660, 84 REF) [00:00:09]*** step 84: 737 (650, 87 REF) [00:00:09]*** step 85: 730 (640, 90 REF) [00:00:09]*** step 86: 723 (630, 93 REF) [00:00:09]*** step 87: 717 (620, 97 REF) [00:00:09]*** step 88: 710 (610, 100 REF) [00:00:09]*** step 89: 705 (600, 105 REF) [00:00:09]*** step 90: 699 [00:00:09]*** step 91: 693 [00:00:09]*** step 92: 688 [00:00:09]*** step 93: 683 [00:00:09]*** step 94: 678 [00:00:09]*** step 95: 673 [00:00:09]*** step 96: 669 [00:00:09]*** step 97: 664 [00:00:09]*** step 98: 660 [00:00:09]*** step 99: 656 [00:00:09]*** step 100: 652 [00:00:09]*** step 101: 648 [00:00:09]*** step 102: 644 [00:00:09]*** step 103: 641 [00:00:09]*** step 104: 638 [00:00:09]*** step 105: 634 [00:00:09]*** step 106: 631 [00:00:09]*** step 107: 628 [00:00:09]*** step 108: 625 [00:00:09]*** step 109: 622 [00:00:09]*** step 110: 620 [00:00:09]*** step 111: 617 [00:00:09]*** step 112: 615 [00:00:09]*** step 113: 612 [00:00:09]*** step 114: 610 [00:00:09]*** step 115: 608 [00:00:09]*** step 116: 605 [00:00:09]*** step 117: 603 [00:00:09]*** step 118: 601 [00:00:09]*** step 119: 599 [00:00:09]*** printer: Printer HW initialized [00:00:09]*** initSamCard finished [00:00:09]*** RTC: 7826373+1722625140=1730451513 [00:00:09]*** BPK Status Register BPK_RDY = 0x0 [00:00:09]*** SEN State Register SEN_STATE = 0x20ff [00:00:09]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:09]*** Analog Control Register 0 SEN_ANA0 = 0x33550623 [00:00:09]*** Is cutter blocked? [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 03 00 02 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 20 [00:00:09]Are we in boot? [00:00:09]We are not in boot now [00:00:09]Write to MH i2c: 01 00 00 04 00 04 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 01 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 01 07 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:09]Model is 3 [00:00:09]MH firmware is 30620 [00:00:09]MH boot firmware is 3 [00:00:09]MH_SetPrinterDots 448 [00:00:09]HeadWidthInBytes 56 [00:00:09]maxmasksize 7 [00:00:09]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: D6 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: D6 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:09]Write to MH i2c: D5 00 00 06 00 DA [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: D5 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: D5 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:09]Load OK [00:00:09]LoadDictionaryFromArray [00:00:09]Load OK [00:00:09]LoadDictionaryFromArray [00:00:09]Load OK [00:00:09]LoadDictionaryFromArray [00:00:09]Load OK [00:00:09]LoadDictionaryFromArray [00:00:09]Load OK [00:00:09]LoadDictionaryFromArray [00:00:09]Load OK [00:00:09]LoadDictionaryFromArray [00:00:09]Load OK [00:00:09]LoadDictionaryFromArray [00:00:09]Load OK [00:00:09]LoadDictionaryFromArray [00:00:09]Load OK [00:00:09]LoadDictionaryFromArray [00:00:09]Load OK [00:00:09]LoadDictionaryFromArray [00:00:09]Load OK [00:00:09]LoadDictionaryFromArray [00:00:09]Load OK [00:00:09]LoadDictionaryFromArray [00:00:09]Load OK [00:00:09]ExternCall_SetCallbacks [00:00:09]NVStorageInit [00:00:09]MH_GetDate [00:00:09]Write to MH i2c: F0 00 00 07 00 F6 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: F0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: F0 09 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: F0 09 00 07 00 00 3A 98 24 67 74 2C AD 66 0F [08:58:34]Current date/time: 01.11.2024 08:58 [08:58:34]FM_Init [08:58:34]wFMConnect [08:58:34]MH_SAM_On [08:58:34]Write to MH i2c: E0 00 00 08 00 E7 [08:58:34]Write i2c OK [08:58:34]MH_I2C_Read... [08:58:34]*** iso7816_init finished! [08:58:34]*** atr: [08:58:34]*** 0F 3B D5 18 FF 81 91 FE [08:58:34]*** 1F C3 80 73 C8 21 10 0A [08:58:34]*** 00 00 00 00 00 00 00 00 [08:58:34]*** 00 00 00 00 00 00 00 00 [08:58:34]*** 00 00 00 00 00 00 00 00 [08:58:34]*** 00 00 00 00 00 00 00 00 [08:58:34]*** 00 00 00 00 00 00 00 00 [08:58:34]*** 00 00 00 00 00 00 00 00 [08:58:34]Read from MH i2c: E0 [08:58:34]MH_I2C_Read... [08:58:34]Read from MH i2c: E0 10 00 [08:58:34]MH_I2C_Read... [08:58:34]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [08:58:34]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [08:58:34]wFMCommunicate request_size=10 [08:58:34]MH_SAM_APDU [08:58:34]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [08:58:34]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [08:58:34]Write i2c OK [08:58:34]MH_I2C_Read... [08:58:34]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [08:58:34]Read from MH i2c: E2 [08:58:34]MH_I2C_Read... [08:58:34]Read from MH i2c: E2 03 00 [08:58:34]MH_I2C_Read... [08:58:34]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [08:58:34]RAPDU: 90 00 [08:58:34]wFMCommunicate OK [08:58:34]wFMCommunicate request_size=4 [08:58:34]MH_SAM_APDU [08:58:34]CAPDU: 80 11 00 00 [08:58:34]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [08:58:34]Write i2c OK [08:58:34]MH_I2C_Read... [08:58:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:34]Read from MH i2c: E2 [08:58:34]MH_I2C_Read... [08:58:34]Read from MH i2c: E2 17 00 [08:58:34]MH_I2C_Read... [08:58:34]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D8 [08:58:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:58:34]wFMCommunicate OK [08:58:34]Detected FM SN is 0000000000874662 [08:58:34]Stored FM SN is 0000000000874662 [08:58:34]wFMCommunicate request_size=9 [08:58:34]MH_SAM_APDU [08:58:34]CAPDU: 80 16 00 00 04 08 EB 00 00 [08:58:34]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 08 EB 00 00 00 00 85 [08:58:34]Write i2c OK [08:58:34]MH_I2C_Read... [08:58:34]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [08:58:34]Read from MH i2c: E2 [08:58:34]MH_I2C_Read... [08:58:34]Read from MH i2c: E2 03 00 [08:58:34]MH_I2C_Read... [08:58:34]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [08:58:34]RAPDU: 90 00 [08:58:34]wFMCommunicate OK [08:58:34]FM PIN OK [08:58:34]wFMCommunicate request_size=8 [08:58:34]MH_SAM_APDU [08:58:34]CAPDU: 80 14 04 00 03 02 00 01 [08:58:34]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [08:58:34]Write i2c OK [08:58:34]MH_I2C_Read... [08:58:34]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [08:58:34]Read from MH i2c: E2 [08:58:34]MH_I2C_Read... [08:58:34]Read from MH i2c: E2 03 00 [08:58:34]MH_I2C_Read... [08:58:34]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [08:58:34]RAPDU: 90 00 [08:58:34]wFMCommunicate OK [08:58:34]wFMCommunicate request_size=13 [08:58:34]MH_SAM_APDU [08:58:34]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [08:58:34]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [08:58:34]Write i2c OK [08:58:34]MH_I2C_Read... [08:58:34]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [08:58:34]Read from MH i2c: E2 [08:58:34]MH_I2C_Read... [08:58:34]Read from MH i2c: E2 03 00 [08:58:34]MH_I2C_Read... [08:58:34]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [08:58:34]RAPDU: 90 00 [08:58:34]wFMCommunicate OK [08:58:34]wFMCommunicate request_size=4 [08:58:34]MH_SAM_APDU [08:58:34]CAPDU: 80 11 00 00 [08:58:34]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [08:58:34]Write i2c OK [08:58:34]MH_I2C_Read... [08:58:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:34]Read from MH i2c: E2 [08:58:34]MH_I2C_Read... [08:58:34]Read from MH i2c: E2 17 00 [08:58:34]MH_I2C_Read... [08:58:34]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DC [08:58:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:58:34]wFMCommunicate OK [08:58:34]DocumentArchiveInit [08:58:34]Start Httpd... [08:58:34]Httpd thread 3067116900 created [08:58:34]Write to MH i2c: 01 00 00 0F 00 0F [08:58:34]Write i2c OK [08:58:34]MH_I2C_Read... [08:58:34]Read from MH i2c: 01 [08:58:34]MH_I2C_Read... [08:58:34]Read from MH i2c: 01 07 00 [08:58:34]MH_I2C_Read... [08:58:34]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [08:58:34]MH Int Process started [08:58:34]Allocated Socket 8 [08:58:34]Bind OK [08:58:34]Listen OK [08:58:34]httpd running on port 8080 [08:58:34]Waiting for new connection... [08:58:34]OFD Sender: Processing packet 73176 [packets to send 282, broken 281] [08:58:34]ProducePacketName [08:58:34]name=ofd_packets/00073176 [08:58:34]OFD Sender: To server: pG, [08:58:34]CommunicateWithHost lk.salyk.kg:30040 [08:58:34]ConnectInit lk.salyk.kg [08:58:35]Connected sock=6 [08:58:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 88 42 07 01 8B 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 24 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 40 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 19 00 00 00 00 07 04 06 00 30 F2 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 0D 92 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D8 1D 01 00 35 04 06 00 82 AC 7F 85 D2 FA 75 F1 A9 3A B7 E1 6C 47 [08:58:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 0A 3A 47 00 A3 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D8 1D 01 00 F4 03 04 00 EE 42 24 67 B6 04 01 00 00 29 E8 80 D7 DA 9C C9 77 [08:58:37]CommunicateWithHost err = 0 [08:58:37]CheckOFDResponse [08:58:37]1017 (14) - 77093643461234 [08:58:37]1041 (16) - 0000000000874662 [08:58:37]1040 (4) - 73176 [08:58:37]1012 (4) - 01.11.2024 02:54 [08:58:37]1206 (1) - 0 [08:58:37]OFD Sender: Remove packet 73176 [08:58:37]ProducePacketName [08:58:37]name=ofd_packets/00073176 [08:58:37]NVStorageDeleteData [08:58:37]OFD Sender: No OFD packet to send [08:58:39]accept exits with 9 [08:58:39]New connection [08:58:39]New thread 3066830180 created [08:58:39]Waiting for new connection... [08:58:39] Sock 9.Parse request [08:58:39]Sock 9.Check first char [08:58:39]Sock 9.First char is OK [08:58:39]request: POST /json_proto HTTP/1.0 [08:58:39]Method: POST [08:58:39]URL: /json_proto [08:58:39]Method is POST - this is cgi request [08:58:39]url: /json_proto [08:58:39]query_string will be loaded in cgi processing [08:58:39]execute_cgi json_proto POST (null) [08:58:39]execute_cgi path=json_proto method=POST [08:58:39]POST find Content-Length [08:58:39]Host: 172.17.43.195:8080 [08:58:39]Content-Length: 215 [08:58:39]Content-Type: application/json [08:58:39] [08:58:39]POST finish read [08:58:39]Found Content-Length = 215 [08:58:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:39]execute_script... [08:58:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:39]POST & json_proto [08:58:39]process_json_proto [08:58:39]json parsed OK: [08:58:39]protocol is kg_v1.0 [08:58:39]action value=get_value [08:58:39]process_action get_value [08:58:39]cmd_get_value [08:58:39]process_action get_value done [08:58:39]requested_data is exist [08:58:39]produce_requested_data [08:58:39]requested_item kkm.sn is exist - process it [08:58:40]requested_item kkm.ver is exist - process it [08:58:40]requested_item fm.sn is exist - process it [08:58:40]wFMCommunicate request_size=4 [08:58:40]MH_SAM_APDU [08:58:40]CAPDU: 80 11 00 00 [08:58:40]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [08:58:40]Write i2c OK [08:58:40]MH_I2C_Read... [08:58:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:40]Read from MH i2c: E2 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 17 00 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DE [08:58:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:58:40]wFMCommunicate OK [08:58:40]requested_item fd.num is exist - process it [08:58:40]SAM_PROTO_GetFieldsCounters [08:58:40]wFMCommunicate request_size=4 [08:58:40]MH_SAM_APDU [08:58:40]CAPDU: 80 13 00 00 [08:58:40]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [08:58:40]Write i2c OK [08:58:40]MH_I2C_Read... [08:58:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:58:40]Read from MH i2c: E2 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 62 00 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 D8 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [08:58:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 D8 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:58:40]wFMCommunicate OK [08:58:40]SAM_PROTO_GetFieldsCounters done [08:58:40]requested_item shift.num is exist - process it [08:58:40]requested_item shift.opened is exist - process it [08:58:40]req_shift_opened [08:58:40]FM_GetShiftState [08:58:40]SAM_PROTO_GetShiftState [08:58:40]wFMCommunicate request_size=4 [08:58:40]MH_SAM_APDU [08:58:40]CAPDU: 80 13 01 00 [08:58:40]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [08:58:40]Write i2c OK [08:58:40]MH_I2C_Read... [08:58:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:40]Read from MH i2c: E2 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 0E 00 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 D6 [08:58:40]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [08:58:40]wFMCommunicate OK [08:58:40]SAM_PROTO_GetShiftState done [08:58:40]FM_GetShiftState done [08:58:40]req_shift_opened done [08:58:40]requested_item shift.open_date is exist - process it [08:58:40]req_shift_open_date [08:58:40]req_shift_open_date done [08:58:40]produce_requested_data done [08:58:40]produce_requested_data return {"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":73176,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [08:58:40]process_action_free get_value [08:58:40]json_value_free [08:58:40]json_value_free done [08:58:40]process_json_proto returns [08:58:40]Send response to host [08:58:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":73176,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [08:58:40]free response buf [08:58:40]execute_script done [08:58:40]execute_script returns [08:58:40]free content buf [08:58:40]Sock 9.Close socket [08:58:40]Sock 9.Thread stoped [08:58:40]accept exits with 10 [08:58:40]New connection [08:58:40]New thread 3066686820 created [08:58:40]Thread 3066830180 joined [08:58:40]Waiting for new connection... [08:58:40] Sock 10.Parse request [08:58:40]Sock 10.Check first char [08:58:40]Sock 10.First char is OK [08:58:40]request: POST /json_proto HTTP/1.0 [08:58:40]Method: POST [08:58:40]URL: /json_proto [08:58:40]Method is POST - this is cgi request [08:58:40]url: /json_proto [08:58:40]query_string will be loaded in cgi processing [08:58:40]execute_cgi json_proto POST (null) [08:58:40]execute_cgi path=json_proto method=POST [08:58:40]POST find Content-Length [08:58:40]Host: 172.17.43.195:8080 [08:58:40]Content-Length: 331 [08:58:40]Content-Type: application/json [08:58:40] [08:58:40]POST finish read [08:58:40]Found Content-Length = 331 [08:58:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:58:40]execute_script... [08:58:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:58:40]POST & json_proto [08:58:40]process_json_proto [08:58:40]json parsed OK: [08:58:40]protocol is kg_v1.0 [08:58:40]action value=get_value [08:58:40]process_action get_value [08:58:40]cmd_get_value [08:58:40]process_action get_value done [08:58:40]requested_data is exist [08:58:40]produce_requested_data [08:58:40]requested_item fm.sale.total is exist - process it [08:58:40]SAM_PROTO_GetFMData [08:58:40]wFMCommunicate request_size=4 [08:58:40]MH_SAM_APDU [08:58:40]CAPDU: 80 13 03 00 [08:58:40]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [08:58:40]Write i2c OK [08:58:40]MH_I2C_Read... [08:58:41]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:58:41]Read from MH i2c: E2 [08:58:41]MH_I2C_Read... [08:58:41]Read from MH i2c: E2 FD 00 [08:58:41]MH_I2C_Read... [08:58:41]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 7C 19 01 00 69 04 A3 00 6F 04 04 00 8C 18 01 00 B1 04 05 00 03 9E 3B A5 01 70 04 05 00 94 D8 7E 59 01 72 04 04 00 6F C5 BC 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 97 63 BE 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 58 76 BA 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 FF [08:58:41]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 7C 19 01 00 69 04 A3 00 6F 04 04 00 8C 18 01 00 B1 04 05 00 03 9E 3B A5 01 70 04 05 00 94 D8 7E 59 01 72 04 04 00 6F C5 BC 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 97 63 BE 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 58 76 BA 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 [08:58:41]wFMCommunicate OK [08:58:41]wFMCommunicate request_size=4 [08:58:41]MH_SAM_APDU [08:58:41]CAPDU: 80 17 00 00 [08:58:41]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [08:58:41]Write i2c OK [08:58:41]MH_I2C_Read... [08:58:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:58:41]Read from MH i2c: E2 [08:58:41]MH_I2C_Read... [08:58:41]Read from MH i2c: E2 FD 00 [08:58:41]MH_I2C_Read... [08:58:41]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 14 [08:58:41]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [08:58:41]wFMCommunicate OK [08:58:41]wFMCommunicate request_size=4 [08:58:41]MH_SAM_APDU [08:58:41]CAPDU: 80 17 00 00 [08:58:41]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [08:58:41]Write i2c OK [08:58:41]MH_I2C_Read... [08:58:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:58:41]Read from MH i2c: E2 [08:58:41]MH_I2C_Read... [08:58:41]Read from MH i2c: E2 FD 00 [08:58:41]MH_I2C_Read... [08:58:41]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 AA [08:58:41]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [08:58:41]wFMCommunicate OK [08:58:41]wFMCommunicate request_size=4 [08:58:41]MH_SAM_APDU [08:58:41]CAPDU: 80 17 00 00 [08:58:41]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [08:58:41]Write i2c OK [08:58:41]MH_I2C_Read... [08:58:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:58:41]Read from MH i2c: E2 [08:58:41]MH_I2C_Read... [08:58:41]Read from MH i2c: E2 FD 00 [08:58:41]MH_I2C_Read... [08:58:41]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 0E [08:58:41]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [08:58:41]wFMCommunicate OK [08:58:41]wFMCommunicate request_size=4 [08:58:41]MH_SAM_APDU [08:58:41]CAPDU: 80 17 00 00 [08:58:41]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [08:58:41]Write i2c OK [08:58:41]MH_I2C_Read... [08:58:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [08:58:42]Read from MH i2c: E2 [08:58:42]MH_I2C_Read... [08:58:42]Read from MH i2c: E2 E1 00 [08:58:42]MH_I2C_Read... [08:58:42]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [08:58:42]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:58:42]wFMCommunicate OK [08:58:42]SAM_PROTO_GetFMData done [08:58:42]requested_item fm.sale_refund.total is exist - process it [08:58:42]requested_item fm.buy.total is exist - process it [08:58:42]requested_item shift.sale.total is exist - process it [08:58:42]SAM_PROTO_GetShiftData [08:58:42]wFMCommunicate request_size=4 [08:58:42]MH_SAM_APDU [08:58:42]CAPDU: 80 13 02 00 [08:58:42]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [08:58:42]Write i2c OK [08:58:42]MH_I2C_Read... [08:58:42]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:58:42]Read from MH i2c: E2 [08:58:42]MH_I2C_Read... [08:58:42]Read from MH i2c: E2 FD 00 [08:58:42]MH_I2C_Read... [08:58:42]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 2D 00 00 00 69 04 9B 00 6F 04 04 00 2D 00 00 00 B1 04 03 00 DB 24 4F 70 04 03 00 8C 42 4A 72 04 03 00 4F E2 04 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 03 68 08 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 52 B3 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 C4 [08:58:42]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 2D 00 00 00 69 04 9B 00 6F 04 04 00 2D 00 00 00 B1 04 03 00 DB 24 4F 70 04 03 00 8C 42 4A 72 04 03 00 4F E2 04 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 03 68 08 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 52 B3 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:58:42]wFMCommunicate OK [08:58:42]wFMCommunicate request_size=4 [08:58:42]MH_SAM_APDU [08:58:42]CAPDU: 80 17 00 00 [08:58:42]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [08:58:42]Write i2c OK [08:58:42]MH_I2C_Read... [08:58:42]OFD Sender: No OFD packet to send [08:58:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:58:42]Read from MH i2c: E2 [08:58:42]MH_I2C_Read... [08:58:42]Read from MH i2c: E2 FD 00 [08:58:42]MH_I2C_Read... [08:58:42]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BB [08:58:42]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [08:58:42]wFMCommunicate OK [08:58:42]wFMCommunicate request_size=4 [08:58:42]MH_SAM_APDU [08:58:42]CAPDU: 80 17 00 00 [08:58:42]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [08:58:42]Write i2c OK [08:58:42]MH_I2C_Read... [08:58:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:58:43]Read from MH i2c: E2 [08:58:43]MH_I2C_Read... [08:58:43]Read from MH i2c: E2 FD 00 [08:58:43]MH_I2C_Read... [08:58:43]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 51 [08:58:43]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [08:58:43]wFMCommunicate OK [08:58:43]wFMCommunicate request_size=4 [08:58:43]MH_SAM_APDU [08:58:43]CAPDU: 80 17 00 00 [08:58:43]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [08:58:43]Write i2c OK [08:58:43]MH_I2C_Read... [08:58:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:58:43]Read from MH i2c: E2 [08:58:43]MH_I2C_Read... [08:58:43]Read from MH i2c: E2 FD 00 [08:58:43]MH_I2C_Read... [08:58:43]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0D [08:58:43]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [08:58:43]wFMCommunicate OK [08:58:43]wFMCommunicate request_size=4 [08:58:43]MH_SAM_APDU [08:58:43]CAPDU: 80 17 00 00 [08:58:43]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [08:58:43]Write i2c OK [08:58:43]MH_I2C_Read... [08:58:43]recv_with_timeout no data received [08:58:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [08:58:43]Read from MH i2c: E2 [08:58:43]MH_I2C_Read... [08:58:43]Read from MH i2c: E2 CB 00 [08:58:43]MH_I2C_Read... [08:58:43]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [08:58:43]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:58:43]wFMCommunicate OK [08:58:43]SAM_PROTO_GetShiftData done [08:58:43]requested_item shift.sale.total_cash is exist - process it [08:58:43]requested_item shift.sale_refund.total is exist - process it [08:58:43]requested_item shift.sale_refund.total_cash is exist - process it [08:58:43]requested_item shift.buy.total is exist - process it [08:58:43]requested_item shift.buy.total_cash is exist - process it [08:58:43]produce_requested_data done [08:58:43]produce_requested_data return {"fm.sale.total":70671150.11,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":51867.79,"shift.sale.total_cash":48667.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [08:58:43]process_action_free get_value [08:58:43]json_value_free [08:58:43]json_value_free done [08:58:43]process_json_proto returns [08:58:43]Send response to host [08:58:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70671150.11,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":51867.79,"shift.sale.total_cash":48667.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [08:58:43]free response buf [08:58:43]execute_script done [08:58:43]execute_script returns [08:58:43]free content buf [08:58:43]Sock 10.Close socket [08:58:43]Sock 10.Thread stoped [08:58:44]accept exits with 9 [08:58:44]New connection [08:58:44]New thread 3066830180 created [08:58:44]Thread 3066686820 joined [08:58:44]Waiting for new connection... [08:58:44] Sock 9.Parse request [08:58:44]Sock 9.Check first char [08:58:44]Sock 9.First char is OK [08:58:44]request: POST /json_proto HTTP/1.0 [08:58:44]Method: POST [08:58:44]URL: /json_proto [08:58:44]Method is POST - this is cgi request [08:58:44]url: /json_proto [08:58:44]query_string will be loaded in cgi processing [08:58:44]execute_cgi json_proto POST (null) [08:58:44]execute_cgi path=json_proto method=POST [08:58:44]POST find Content-Length [08:58:44]Host: 172.17.43.195:8080 [08:58:44]Content-Length: 682 [08:58:44]Content-Type: application/json [08:58:44] [08:58:44]POST finish read [08:58:44]Found Content-Length = 682 [08:58:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 47.180, "sum" : 3500.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:44]execute_script... [08:58: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)952776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 47.180, "sum" : 3500.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:44]POST & json_proto [08:58:44]process_json_proto [08:58:44]json parsed OK: [08:58:44]protocol is kg_v1.0 [08:58:44]action value=close_receipt [08:58:44]process_action close_receipt [08:58:44]cmd_close_receipt [08:58:44]MH_GetDate [08:58:44]Write to MH i2c: F0 00 00 1D 00 0C [08:58:44]Write i2c OK [08:58:44]MH_I2C_Read... [08:58:44]Read from MH i2c: F0 [08:58:44]MH_I2C_Read... [08:58:44]Read from MH i2c: F0 09 00 [08:58:44]MH_I2C_Read... [08:58:44]Read from MH i2c: F0 09 00 1D 00 00 44 98 24 67 74 2C AD 66 2F [08:58:44]GetLastDocTimeStamp 1730449933 [08:58:44]current date 1730451524 [08:58:44]FM_GetShiftState [08:58:44]SAM_PROTO_GetShiftState [08:58:44]wFMCommunicate request_size=4 [08:58:44]MH_SAM_APDU [08:58:44]CAPDU: 80 13 01 00 [08:58:44]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [08:58:44]Write i2c OK [08:58:44]MH_I2C_Read... [08:58:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:44]Read from MH i2c: E2 [08:58:44]MH_I2C_Read... [08:58:44]Read from MH i2c: E2 0E 00 [08:58:44]MH_I2C_Read... [08:58:44]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 E2 [08:58:44]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [08:58:44]wFMCommunicate OK [08:58:44]SAM_PROTO_GetShiftState done [08:58:44]FM_GetShiftState done [08:58:44]opened in 1730419605 [08:58:44]opened+sec_in_day 1730506005 [08:58:44]quantity*price = 350075 [08:58:44]sum+1 = 350077 [08:58:44]Check (price>sum+1) || (price+1 о реализуемом товаре [09:01:02]line ОКРУГЛЕНИЕ: -0.41 [09:01:02]line ИТОГО: 500.00 [09:01:02]line Внесено: 500.00 [09:01:02]line СДАЧА: 0.00 [09:01:02]line НСП 1% : 4.43 [09:01:02]line НДС 12% : 53.14 [09:01:02]line Наличными: 500.00 [09:01:02]line Безнал.: 0.00 [09:01:02]line Место: АЗС № 113 "Партнер Нефть" [09:01:02]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:01:02]line СНО: Общий режим [09:01:02]line Чек 48 01.11.2024 09:01 [09:01:02]line Смена: 558 ФФД: 1.0 [09:01:02]line ЗНМ: 0300000087 [09:01:02]line РНМ: 0000000000091644 [09:01:02]line Версия ККМ: 001 [09:01:02]line ФМ: 0000000000874662 [09:01:02]line ФД: 73179 [09:01:02]line ФПД: 253171167936892 [09:01:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T090101&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73179&fm=253171167936892&tin=02508201610067®Number=0000000000091644&sum=50000 [09:01:02]written 0, free lines is 4095 [09:01:02]OFD Sender: Processing packet 73177 [packets to send 284, broken 281] [09:01:02]ProducePacketName [09:01:02]name=ofd_packets/00073177 [09:01:02]OFD Sender: To server: pG, [09:01:02]CommunicateWithHost lk.salyk.kg:30040 [09:01:02]ConnectInit lk.salyk.kg [09:01:03]Write to MH i2c: 01 00 00 F2 00 F2 [09:01:03]Write i2c OK [09:01:03]MH_I2C_Read... [09:01:03]Read from MH i2c: 01 [09:01:03]MH_I2C_Read... [09:01:03]Read from MH i2c: 01 07 00 [09:01:03]MH_I2C_Read... [09:01:03]Read from MH i2c: 01 07 00 F2 00 00 00 00 00 00 CD 0C D2 [09:01:03]RasterBufferAndPrint [09:01:03]line [09:01:03]line [09:01:03]line [09:01:03]line [09:01:03]line [09:01:03]written 0, free lines is 3283 [09:01:03]MH_Cut [09:01:03]Write to MH i2c: D1 01 00 F9 00 01 CB [09:01:03]Write i2c OK [09:01:03]MH_I2C_Read... [09:01:03]Read from MH i2c: D1 [09:01:03]MH_I2C_Read... [09:01:03]Read from MH i2c: D1 01 00 [09:01:03]MH_I2C_Read... [09:01:03]Read from MH i2c: D1 01 00 F9 00 00 CA [09:01:03]Write to MH i2c: 01 00 00 FA 00 FA [09:01:03]Write i2c OK [09:01:03]MH_I2C_Read... [09:01:03]*** Cut start [09:01:03]*** Partial cut [09:01:03]*** CUTSNS_PIN = 1 [09:01:03]*** CUTSNS_PIN = 0 [09:01:04]*** Brake cut motor [09:01:04]Read from MH i2c: 01 [09:01:04]MH_I2C_Read... [09:01:04]*** Stop cut motor [09:01:04]*** Cut end [09:01:04]Read from MH i2c: 01 07 00 [09:01:04]MH_I2C_Read... [09:01:04]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [09:01:04]process_action close_receipt done [09:01:04]requested_data is exist [09:01:04]produce_requested_data [09:01:04]requested_item fm.sn is exist - process it [09:01:04]wFMCommunicate request_size=4 [09:01:04]MH_SAM_APDU [09:01:04]CAPDU: 80 11 00 00 [09:01:04]Write to MH i2c: E2 08 00 FB 00 80 11 00 00 00 00 00 00 75 [09:01:04]Write i2c OK [09:01:04]MH_I2C_Read... [09:01:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:04]Read from MH i2c: E2 [09:01:04]MH_I2C_Read... [09:01:04]Read from MH i2c: E2 17 00 [09:01:04]MH_I2C_Read... [09:01:04]Read from MH i2c: E2 17 00 FB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C9 [09:01:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:01:04]wFMCommunicate OK [09:01:04]requested_item fd.num is exist - process it [09:01:04]SAM_PROTO_GetFieldsCounters [09:01:04]wFMCommunicate request_size=4 [09:01:04]MH_SAM_APDU [09:01:04]CAPDU: 80 13 00 00 [09:01:04]Write to MH i2c: E2 08 00 FC 00 80 13 00 00 00 00 00 00 78 [09:01:04]Write i2c OK [09:01:04]MH_I2C_Read... [09:01:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:04]Read from MH i2c: E2 [09:01:04]MH_I2C_Read... [09:01:04]Read from MH i2c: E2 62 00 [09:01:04]MH_I2C_Read... [09:01:04]Read from MH i2c: E2 62 00 FC 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 DB 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [09:01:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 DB 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:01:04]wFMCommunicate OK [09:01:04]SAM_PROTO_GetFieldsCounters done [09:01:04]requested_item shift.num is exist - process it [09:01:04]requested_item shift.opened is exist - process it [09:01:04]req_shift_opened [09:01:04]FM_GetShiftState [09:01:04]SAM_PROTO_GetShiftState [09:01:04]wFMCommunicate request_size=4 [09:01:04]MH_SAM_APDU [09:01:04]CAPDU: 80 13 01 00 [09:01:04]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [09:01:04]Write i2c OK [09:01:04]MH_I2C_Read... [09:01:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:04]Read from MH i2c: E2 [09:01:04]MH_I2C_Read... [09:01:04]Read from MH i2c: E2 0E 00 [09:01:04]MH_I2C_Read... [09:01:04]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 C1 [09:01:04]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [09:01:04]wFMCommunicate OK [09:01:04]SAM_PROTO_GetShiftState done [09:01:04]FM_GetShiftState done [09:01:04]req_shift_opened done [09:01:04]requested_item shift.open_date is exist - process it [09:01:04]req_shift_open_date [09:01:04]req_shift_open_date done [09:01:04]produce_requested_data done [09:01:04]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73179,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [09:01:04]process_action_free close_receipt [09:01:04]json_value_free [09:01:04]json_value_free done [09:01:04]process_json_proto returns [09:01:04]Send response to host [09:01:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73179,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [09:01:04]free response buf [09:01:04]execute_script done [09:01:04]execute_script returns [09:01:04]free content buf [09:01:04]Sock 10.Close socket [09:01:04]Sock 10.Thread stoped [09:01:07]ConnectInit Can't connect to host [09:01:07]ConnectInit Can't take IP for lk.salyk.kg [09:01:07]CommunicateWithHost connect error [09:01:07]CommunicateWithHost err = -1 [09:01:07]OFD Sender: Server communicate error [09:01:12]ConnectInit Can't connect to host [09:01:12]OFD Sender: Processing packet 73177 [packets to send 284, broken 281] [09:01:12]ProducePacketName [09:01:12]name=ofd_packets/00073177 [09:01:12]OFD Sender: To server: pG, [09:01:12]CommunicateWithHost lk.salyk.kg:30040 [09:01:12]ConnectInit lk.salyk.kg [09:01:16]Connected sock=9 [09:01:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 5E 13 07 01 AE 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 4C B8 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 44 98 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D9 1D 01 00 35 04 06 00 4B 04 99 10 75 C8 12 A6 6E 47 E3 DF A9 50 [09:01:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 8F A8 47 00 E6 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D9 1D 01 00 F4 03 04 00 8D 43 24 67 B6 04 01 00 00 79 96 76 2A 07 3F 96 98 [09:01:16]CommunicateWithHost err = 0 [09:01:16]CheckOFDResponse [09:01:16]1017 (14) - 77093643461234 [09:01:16]1041 (16) - 0000000000874662 [09:01:16]1040 (4) - 73177 [09:01:16]1012 (4) - 01.11.2024 02:57 [09:01:16]1206 (1) - 0 [09:01:16]OFD Sender: Remove packet 73177 [09:01:16]ProducePacketName [09:01:16]name=ofd_packets/00073177 [09:01:16]NVStorageDeleteData [09:01:17]OFD Sender: Processing packet 73178 [packets to send 283, broken 281] [09:01:17]ProducePacketName [09:01:17]name=ofd_packets/00073178 [09:01:17]OFD Sender: To server: pG, [09:01:17]CommunicateWithHost lk.salyk.kg:30040 [09:01:17]ConnectInit lk.salyk.kg [09:01:19]Connected sock=10 [09:01:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 10 4C 07 01 3C 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 93 98 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DA 1D 01 00 35 04 06 00 0F 54 B1 A0 4A E9 9B AE E8 66 5E 8B 4A 30 [09:01:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 FB E3 47 00 13 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DA 1D 01 00 F4 03 04 00 91 43 24 67 B6 04 01 00 00 02 D7 14 08 CB 15 38 AA [09:01:20]CommunicateWithHost err = 0 [09:01:20]CheckOFDResponse [09:01:20]1017 (14) - 77093643461234 [09:01:20]1041 (16) - 0000000000874662 [09:01:20]1040 (4) - 73178 [09:01:20]1012 (4) - 01.11.2024 02:57 [09:01:20]1206 (1) - 0 [09:01:20]OFD Sender: Remove packet 73178 [09:01:20]ProducePacketName [09:01:20]name=ofd_packets/00073178 [09:01:20]NVStorageDeleteData [09:01:21]OFD Sender: Processing packet 73179 [packets to send 282, broken 281] [09:01:21]ProducePacketName [09:01:21]name=ofd_packets/00073179 [09:01:21]OFD Sender: To server: pG, [09:01:21]CommunicateWithHost lk.salyk.kg:30040 [09:01:21]ConnectInit lk.salyk.kg [09:01:21]Connected sock=9 [09:01:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 CA 2E 07 01 8B 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 CD 98 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DB 1D 01 00 35 04 06 00 E6 42 01 88 41 7C 0B 03 E2 23 EC 7F 2D 6B [09:01:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 E3 C4 47 00 09 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 34 36 36 32 10 04 04 00 DB 1D 01 00 F4 03 04 00 92 43 24 67 B6 04 01 00 00 1A 5F 0A E3 99 FA 54 9B [09:01:21]CommunicateWithHost err = 0 [09:01:21]CheckOFDResponse [09:01:21]1017 (14) - 77093643461234 [09:01:21]1041 (16) - 0000000000874662 [09:01:21]1040 (4) - 73179 [09:01:21]1012 (4) - 01.11.2024 02:57 [09:01:21]1206 (1) - 0 [09:01:21]OFD Sender: Remove packet 73179 [09:01:21]ProducePacketName [09:01:21]name=ofd_packets/00073179 [09:01:21]NVStorageDeleteData [09:01:22]OFD Sender: No OFD packet to send [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:57]OFD Sender: No OFD packet to send [09:02:02]OFD Sender: No OFD packet to send [09:02:07]OFD Sender: No OFD packet to send [09:02:11]accept exits with 7 [09:02:11]New connection [09:02:11]New thread 3066686820 created [09:02:11]Thread 3066830180 joined [09:02:11]Waiting for new connection... [09:02:11] Sock 7.Parse request [09:02:11]Sock 7.Check first char [09:02:11]Sock 7.First char is OK [09:02:11]request: POST /json_proto HTTP/1.0 [09:02:11]Method: POST [09:02:11]URL: /json_proto [09:02:11]Method is POST - this is cgi request [09:02:11]url: /json_proto [09:02:11]query_string will be loaded in cgi processing [09:02:11]execute_cgi json_proto POST (null) [09:02:11]execute_cgi path=json_proto method=POST [09:02:11]POST find Content-Length [09:02:11]Host: 172.17.43.195:8080 [09:02:11]Content-Length: 792 [09:02:11]Content-Type: application/json [09:02:11] [09:02:11]POST finish read [09:02:11]Found Content-Length = 792 [09:02:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952779", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 45.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:11]execute_script... [09:02: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)952779", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 45.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:11]POST & json_proto [09:02:11]process_json_proto [09:02:11]json parsed OK: [09:02:11]protocol is kg_v1.0 [09:02:11]action value=close_receipt [09:02:11]process_action close_receipt [09:02:11]cmd_close_receipt [09:02:11]MH_GetDate [09:02:11]Write to MH i2c: F0 00 00 FE 00 ED [09:02:11]Write i2c OK [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: F0 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: F0 09 00 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: F0 09 00 FE 00 00 14 99 24 67 74 2C AD 66 E1 [09:02:11]GetLastDocTimeStamp 1730451661 [09:02:11]current date 1730451732 [09:02:11]FM_GetShiftState [09:02:11]SAM_PROTO_GetShiftState [09:02:11]wFMCommunicate request_size=4 [09:02:11]MH_SAM_APDU [09:02:11]CAPDU: 80 13 01 00 [09:02:11]Write to MH i2c: E2 08 00 FF 00 80 13 01 00 00 00 00 00 7C [09:02:11]Write i2c OK [09:02:11]MH_I2C_Read... [09:02:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:11]Read from MH i2c: E2 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: E2 0E 00 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: E2 0E 00 FF 00 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 C3 [09:02:11]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [09:02:11]wFMCommunicate OK [09:02:11]SAM_PROTO_GetShiftState done [09:02:11]FM_GetShiftState done [09:02:11]opened in 1730419605 [09:02:11]opened+sec_in_day 1730506005 [09:02:11]quantity*price = 0 [09:02:11]sum+1 = 1 [09:02:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3500.00 Внесено: 5000.00 СДАЧА: 1500.00 НСП 1% : 30.98 НДС 12% : 371.76 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 46 01.11.2024 08:58 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73177 ФПД: 82483119945160 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T085844&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73177&fm=82483119945160&tin=02508201610067®Number=0000000000091644&sum=350000 [08:58:45]StoreToDocumentArchive [08:58:45]shift 558 fd 73177 [08:58:45]save to /storage/0558/doc_00073177 [08:58:45]save last doc name /storage/0558/doc_00073177 to /storage/kkm_last_doc_name [08:58:45]save OK [08:58:45]Clear old archive folders... [08:58:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:58:45]tlvbuf is 001B2620 [08:58:45]SAM_PROTO_ClearQueue [08:58:45]wFMCommunicate request_size=4 [08:58:45]MH_SAM_APDU [08:58:45]CAPDU: 80 09 00 00 [08:58:45]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [08:58:45]Write i2c OK [08:58:45]MH_I2C_Read... [08:58:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:58:45]Read from MH i2c: E2 [08:58:45]MH_I2C_Read... [08:58:45]Read from MH i2c: E2 03 00 [08:58:45]MH_I2C_Read... [08:58:45]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [08:58:45]RAPDU: 90 00 [09:02:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:02:12]Read from MH i2c: E2 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 03 00 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 03 00 04 01 00 90 00 79 [09:02:12]RAPDU: 90 00 [09:02:12]wFMCommunicate OK [09:02:12]wFMCommunicate request_size=15 [09:02:12]MH_SAM_APDU [09:02:12]CAPDU: 80 15 02 00 0A 07 04 06 00 00 00 00 00 00 00 [09:02:12]Write to MH i2c: E2 12 00 05 01 80 15 02 00 0A 00 07 04 06 00 00 00 00 00 00 00 00 00 AB [09:02:12]Write i2c OK [09:02:12]MH_I2C_Read... [09:02:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:02:12]OFD Sender: No OFD packet to send [09:02:12]Read from MH i2c: E2 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 03 00 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 03 00 05 01 00 90 00 7A [09:02:12]RAPDU: 90 00 [09:02:12]wFMCommunicate OK [09:02:12]wFMCommunicate request_size=15 [09:02:12]MH_SAM_APDU [09:02:12]CAPDU: 80 15 02 00 0A 39 04 06 00 00 00 00 00 00 00 [09:02:12]Write to MH i2c: E2 12 00 06 01 80 15 02 00 0A 00 39 04 06 00 00 00 00 00 00 00 00 00 DE [09:02:12]Write i2c OK [09:02:12]MH_I2C_Read... [09:02:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:02:12]Read from MH i2c: E2 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 03 00 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 03 00 06 01 00 90 00 7B [09:02:12]RAPDU: 90 00 [09:02:12]wFMCommunicate OK [09:02:12]wFMCommunicate request_size=11 [09:02:12]MH_SAM_APDU [09:02:12]CAPDU: 80 15 02 00 06 1F 04 02 00 01 00 [09:02:12]Write to MH i2c: E2 0E 00 07 01 80 15 02 00 06 00 1F 04 02 00 01 00 00 00 BA [09:02:12]Write i2c OK [09:02:12]MH_I2C_Read... [09:02:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:02:12]Read from MH i2c: E2 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 03 00 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 03 00 07 01 00 90 00 7C [09:02:12]RAPDU: 90 00 [09:02:12]wFMCommunicate OK [09:02:12]wFMCommunicate request_size=13 [09:02:12]MH_SAM_APDU [09:02:12]CAPDU: 80 15 02 00 08 F4 03 04 00 14 99 24 67 [09:02:12]Write to MH i2c: E2 10 00 08 01 80 15 02 00 08 00 F4 03 04 00 14 99 24 67 00 00 CC [09:02:12]Write i2c OK [09:02:12]MH_I2C_Read... [09:02:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:02:12]Read from MH i2c: E2 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 03 00 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 03 00 08 01 00 90 00 7D [09:02:12]RAPDU: 90 00 [09:02:12]wFMCommunicate OK [09:02:12]wFMCommunicate request_size=25 [09:02:12]MH_SAM_APDU [09:02:12]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 [09:02:12]Write to MH i2c: E2 1C 00 09 01 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 00 00 EB [09:02:12]Write i2c OK [09:02:12]MH_I2C_Read... [09:02:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:02:12]Read from MH i2c: E2 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 03 00 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [09:02:12]RAPDU: 90 00 [09:02:12]wFMCommunicate OK [09:02:12]wFMCommunicate request_size=4 [09:02:12]MH_SAM_APDU [09:02:12]CAPDU: 80 15 03 00 [09:02:12]Write to MH i2c: E2 08 00 0A 01 80 15 03 00 00 00 00 00 8C [09:02:12]Write i2c OK [09:02:12]MH_I2C_Read... [09:02:12]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [09:02:12]Read from MH i2c: E2 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 40 00 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 40 00 0A 01 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DC 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 31 00 00 00 35 04 06 00 5B 63 EC 83 A7 26 90 00 D8 [09:02:12]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DC 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 31 00 00 00 35 04 06 00 5B 63 EC 83 A7 26 90 00 [09:02:12]wFMCommunicate OK [09:02:12]SAM_PROTO_ProcessDocument answer len = 59 [09:02:12]SAM_PROTO_ProcessDocument done [09:02:12]SetTLVBufToDocument [09:02:12]Processing tag 1209 (04B9) [09:02:12]Malloc new data [09:02:12]Processing tag 1041 (0411) [09:02:12]Processing tag 1040 (0410) [09:02:12]Malloc new data [09:02:12]Processing tag 1038 (040E) [09:02:12]Malloc new data [09:02:12]Processing tag 1042 (0412) [09:02:12]Malloc new data [09:02:12]Processing tag 1077 (0435) [09:02:12]Malloc new data [09:02:12]SetTLVBufToDocument err=0 [09:02:12]KKMLoadAndSignReceiptData store KKM data [09:02:12]KKMLoadAndSignReceiptData err=0 [09:02:12]wFMCommunicate request_size=4 [09:02:12]MH_SAM_APDU [09:02:12]CAPDU: 80 11 00 00 [09:02:12]Write to MH i2c: E2 08 00 0B 01 80 11 00 00 00 00 00 00 86 [09:02:12]Write i2c OK [09:02:12]MH_I2C_Read... [09:02:13]Read from MH i2c: E2 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: E2 17 00 [09:02:13]MH_I2C_Read... [09:02:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:13]Read from MH i2c: E2 17 00 0B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DA [09:02:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:02:13]wFMCommunicate OK [09:02:13]Счет N : (1)952779 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 63 Товар: 2710124130 Аи-92-К-5 45.000 * 0.00 = 0.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 49 01.11.2024 09:02 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 73180 ФПД: 100484727940902 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T090212&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73180&fm=100484727940902&tin=02508201610067®Number=0000000000091644&sum=0 [09:02:13]StoreToDocumentArchive [09:02:13]shift 558 fd 73180 [09:02:13]save to /storage/0558/doc_00073180 [09:02:13]save last doc name /storage/0558/doc_00073180 to /storage/kkm_last_doc_name [09:02:13]save OK [09:02:13]Clear old archive folders... [09:02:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:02:13]tlvbuf is 001BD760 [09:02:13]SAM_PROTO_ClearQueue [09:02:13]wFMCommunicate request_size=4 [09:02:13]MH_SAM_APDU [09:02:13]CAPDU: 80 09 00 00 [09:02:13]Write to MH i2c: E2 08 00 0C 01 80 09 00 00 00 00 00 00 7F [09:02:13]Write i2c OK [09:02:13]MH_I2C_Read... [09:02:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:02:13]Read from MH i2c: E2 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: E2 03 00 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [09:02:13]RAPDU: 90 00 [09:02:13]wFMCommunicate OK [09:02:13]SAM_PROTO_ClearQueue done [09:02:13]KKMCreateOFDPacket [09:02:13]OFDProtocolAddRootSTLVToBuf [09:02:13]FM_MakeSignedData [09:02:13]FM_MakeSignedData [09:02:13]SAM_PROTO_SignData [09:02:13]wFMCommunicate request_size=4 [09:02:13]MH_SAM_APDU [09:02:13]CAPDU: 80 0D 01 02 [09:02:13]Write to MH i2c: E2 08 00 0D 01 80 0D 01 02 00 00 00 00 87 [09:02:13]Write i2c OK [09:02:13]MH_I2C_Read... [09:02:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:02:13]Read from MH i2c: E2 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: E2 03 00 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [09:02:13]RAPDU: 90 00 [09:02:13]wFMCommunicate OK [09:02:13]wFMCommunicate request_size=255 [09:02:13]MH_SAM_APDU [09:02: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 C8 AF 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 14 99 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DC 1D 01 00 35 04 06 00 5B [09:02:13]Write to MH i2c: E2 02 01 0E 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 AF 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 14 99 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DC 1D 01 00 35 04 06 00 5B 00 00 F6 [09:02:13]Write i2c OK [09:02:13]MH_I2C_Read... [09:02:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:13]Read from MH i2c: E2 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: E2 03 00 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [09:02:13]RAPDU: 90 00 [09:02:13]wFMCommunicate OK [09:02:13]wFMCommunicate request_size=10 [09:02:13]MH_SAM_APDU [09:02:13]CAPDU: 80 0D 02 02 05 63 EC 83 A7 26 [09:02:13]Write to MH i2c: E2 0D 00 0F 01 80 0D 02 02 05 00 63 EC 83 A7 26 00 00 33 [09:02:13]Write i2c OK [09:02:13]MH_I2C_Read... [09:02:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:13]Read from MH i2c: E2 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: E2 03 00 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [09:02:13]RAPDU: 90 00 [09:02:13]wFMCommunicate OK [09:02:13]wFMCommunicate request_size=4 [09:02:13]MH_SAM_APDU [09:02:13]CAPDU: 80 0D 03 02 [09:02:13]Write to MH i2c: E2 08 00 10 01 80 0D 03 02 00 00 00 00 8C [09:02:13]Write i2c OK [09:02:13]MH_I2C_Read... [09:02:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:02:13]Read from MH i2c: E2 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: E2 0B 00 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: E2 0B 00 10 01 00 E0 D9 30 11 1B 66 83 8C 90 00 17 [09:02:13]RAPDU: E0 D9 30 11 1B 66 83 8C 90 00 [09:02:13]wFMCommunicate OK [09:02:13]SAM_PROTO_SignData done [09:02:13]FM_MakeSignedData done [09:02:13]CreateOFDProtocolMessage [09:02:13]wFMCommunicate request_size=4 [09:02:13]MH_SAM_APDU [09:02:13]CAPDU: 80 11 00 00 [09:02:13]Write to MH i2c: E2 08 00 11 01 80 11 00 00 00 00 00 00 8C [09:02:13]Write i2c OK [09:02:13]MH_I2C_Read... [09:02:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:13]Read from MH i2c: E2 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: E2 17 00 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: E2 17 00 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 E0 [09:02:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:02:13]wFMCommunicate OK [09:02:13]CreateOFDProtocolMessage done [09:02:13]OFDSenderStorePacket 73180 [09:02:13]StoreOFDPacket docnum=73180 [09:02:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 4A 49 07 01 F7 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 C8 AF 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 14 99 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DC 1D 01 00 35 04 06 00 5B 63 EC 83 A7 26 E0 D9 30 11 1B 66 83 8C [09:02:13]CheckFolder [09:02:13]dirname=/storage/ofd_packets [09:02:13]CheckFolder done [09:02:13]ProducePacketName [09:02:13]name=ofd_packets/00073180 [09:02:13]NVStorageSaveData ofd_packets/00073180 [09:02:13]File name is /storage/ofd_packets/00073180 [09:02:13]Write 301 bytes [09:02:13]NVStorageSaveData done [09:02:13]OFDSenderStorePacket done [09:02:13]KKMCreateOFDPacket done [09:02:13]NVStorageSaveData kkm_last_timestamp [09:02:13]File name is /storage/kkm_last_timestamp [09:02:13]Write 4 bytes [09:02:13]NVStorageSaveData done [09:02:13]ExternCall_PrintAddStr [09:02:13]wPrintStart [09:02:13]Write to MH i2c: 01 00 00 12 01 13 [09:02:13]Write i2c OK [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: 01 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: 01 07 00 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: 01 07 00 12 01 00 00 00 00 00 FF 0F 28 [09:02:13]RasterBufferAndPrint [09:02:13]line Счет N : (1)952779 [09:02:13]line ИНН: 02508201610067 [09:02:13]line Контрольно-Кассовый Чек [09:02:13]line ПРОДАЖА [09:02:13]line ТРК (МРК, ГНК) : 63 [09:02:13]line Товар: 2710124130 [09:02:13]line Аи-92-К-5 [09:02:13]line 45.000 * 0.00 [09:02:13]line = 0.00 [09:02:13]line НДС 12% НСП 1% [09:02:13]line > о реализуемом товаре [09:02:13]line ИТОГО: 0.00 [09:02:13]line НСП 1% : 0.00 [09:02:13]line НДС 12% : 0.00 [09:02:13]line Наличными: 0.00 [09:02:13]line Безнал.: 0.00 [09:02:13]line Место: АЗС № 113 "Партнер Нефть" [09:02:13]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:02:13]line СНО: Общий режим [09:02:13]line Чек 49 01.11.2024 09:02 [09:02:13]line Смена: 558 ФФД: 1.0 [09:02:13]line ЗНМ: 0300000087 [09:02:13]line РНМ: 0000000000091644 [09:02:13]line Версия ККМ: 001 [09:02:13]line Талоны: Топливная Карта [09:02:13]line 03047 [09:02:13]line ФМ: 0000000000874662 [09:02:13]line ФД: 73180 [09:02:13]line ФПД: 100484727940902 [09:02:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T090212&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73180&fm=100484727940902&tin=02508201610067®Number=0000000000091644&sum=0 [09:02:13]OFD Sender: Processing packet 73180 [packets to send 282, broken 281] [09:02:13]ProducePacketName [09:02:13]name=ofd_packets/00073180 [09:02:13]OFD Sender: To server: pG, [09:02:13]CommunicateWithHost lk.salyk.kg:30040 [09:02:13]ConnectInit lk.salyk.kg [09:02:13]written 0, free lines is 4095 [09:02:14]Write to MH i2c: 01 00 00 3C 01 3D [09:02:14]Write i2c OK [09:02:14]MH_I2C_Read... [09:02:14]Read from MH i2c: 01 [09:02:14]MH_I2C_Read... [09:02:14]Read from MH i2c: 01 07 00 [09:02:14]MH_I2C_Read... [09:02:14]Read from MH i2c: 01 07 00 3C 01 00 00 00 00 00 DF 0C 2F [09:02:14]RasterBufferAndPrint [09:02:14]line [09:02:14]line [09:02:14]line [09:02:14]line [09:02:14]line [09:02:14]written 0, free lines is 3301 [09:02:14]MH_Cut [09:02:14]Write to MH i2c: D1 01 00 43 01 01 16 [09:02:14]Write i2c OK [09:02:14]MH_I2C_Read... [09:02:14]Read from MH i2c: D1 [09:02:14]MH_I2C_Read... [09:02:14]Read from MH i2c: D1 01 00 [09:02:14]MH_I2C_Read... [09:02:14]Read from MH i2c: D1 01 00 43 01 00 15 [09:02:14]Write to MH i2c: 01 00 00 44 01 45 [09:02:14]Write i2c OK [09:02:14]MH_I2C_Read... [09:02:15]*** Cut start [09:02:15]*** Partial cut [09:02:15]*** CUTSNS_PIN = 1 [09:02:15]*** CUTSNS_PIN = 0 [09:02:15]*** Brake cut motor [09:02:15]Read from MH i2c: 01 [09:02:15]MH_I2C_Read... [09:02:15]*** Stop cut motor [09:02:15]*** Cut end [09:02:15]Read from MH i2c: 01 07 00 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: 01 07 00 44 01 00 00 00 00 00 FF 0F 5A [09:02:15]process_action close_receipt done [09:02:15]requested_data is exist [09:02:15]produce_requested_data [09:02:15]requested_item fm.sn is exist - process it [09:02:15]wFMCommunicate request_size=4 [09:02:15]MH_SAM_APDU [09:02:15]CAPDU: 80 11 00 00 [09:02:15]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [09:02:15]Write i2c OK [09:02:15]MH_I2C_Read... [09:02:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:15]Read from MH i2c: E2 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: E2 17 00 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 14 [09:02:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:02:15]wFMCommunicate OK [09:02:15]requested_item fd.num is exist - process it [09:02:15]SAM_PROTO_GetFieldsCounters [09:02:15]wFMCommunicate request_size=4 [09:02:15]MH_SAM_APDU [09:02:15]CAPDU: 80 13 00 00 [09:02:15]Write to MH i2c: E2 08 00 46 01 80 13 00 00 00 00 00 00 C3 [09:02:15]Write i2c OK [09:02:15]MH_I2C_Read... [09:02:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:15]Read from MH i2c: E2 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: E2 62 00 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: E2 62 00 46 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 DC 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [09:02:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 DC 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:02:15]wFMCommunicate OK [09:02:15]SAM_PROTO_GetFieldsCounters done [09:02:15]requested_item shift.num is exist - process it [09:02:15]requested_item shift.opened is exist - process it [09:02:15]req_shift_opened [09:02:15]FM_GetShiftState [09:02:15]SAM_PROTO_GetShiftState [09:02:15]wFMCommunicate request_size=4 [09:02:15]MH_SAM_APDU [09:02:15]CAPDU: 80 13 01 00 [09:02:15]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [09:02:15]Write i2c OK [09:02:15]MH_I2C_Read... [09:02:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:15]Read from MH i2c: E2 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: E2 0E 00 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 0C [09:02:15]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [09:02:15]wFMCommunicate OK [09:02:15]SAM_PROTO_GetShiftState done [09:02:15]FM_GetShiftState done [09:02:15]req_shift_opened done [09:02:15]requested_item shift.open_date is exist - process it [09:02:15]req_shift_open_date [09:02:15]req_shift_open_date done [09:02:15]produce_requested_data done [09:02:15]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73180,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [09:02:15]process_action_free close_receipt [09:02:15]json_value_free [09:02:15]json_value_free done [09:02:15]process_json_proto returns [09:02:15]Send response to host [09:02:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73180,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [09:02:15]free response buf [09:02:15]execute_script done [09:02:15]execute_script returns [09:02:15]free content buf [09:02:15]Sock 7.Close socket [09:02:15]Sock 7.Thread stoped [09:02:18]ConnectInit Can't take IP for lk.salyk.kg [09:02:18]CommunicateWithHost connect error [09:02:18]CommunicateWithHost err = -1 [09:02:18]OFD Sender: Server communicate error [09:02:23]OFD Sender: Processing packet 73180 [packets to send 282, broken 281] [09:02:23]ProducePacketName [09:02:23]name=ofd_packets/00073180 [09:02:23]OFD Sender: To server: pG, [09:02:23]CommunicateWithHost lk.salyk.kg:30040 [09:02:23]ConnectInit lk.salyk.kg [09:02:27]recv_with_timeout no data received [09:02:28]ConnectInit Can't take IP for lk.salyk.kg [09:02:28]CommunicateWithHost connect error [09:02:28]CommunicateWithHost err = -1 [09:02:28]OFD Sender: Server communicate error [09:02:33]OFD Sender: Processing packet 73180 [packets to send 282, broken 281] [09:02:33]ProducePacketName [09:02:33]name=ofd_packets/00073180 [09:02:33]OFD Sender: To server: pG, [09:02:33]CommunicateWithHost lk.salyk.kg:30040 [09:02:33]ConnectInit lk.salyk.kg [09:02:39]Connected sock=10 [09:02:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 4A 49 07 01 F7 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 C8 AF 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 14 99 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DC 1D 01 00 35 04 06 00 5B 63 EC 83 A7 26 E0 D9 30 11 1B 66 83 8C [09:02:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 F0 C5 47 00 2A 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DC 1D 01 00 F4 03 04 00 E1 43 24 67 B6 04 01 00 00 F0 1E D7 74 B6 7F DF 73 [09:02:40]CommunicateWithHost err = 0 [09:02:40]CheckOFDResponse [09:02:40]1017 (14) - 77093643461234 [09:02:40]1041 (16) - 0000000000874662 [09:02:40]1040 (4) - 73180 [09:02:40]1012 (4) - 01.11.2024 02:58 [09:02:40]1206 (1) - 0 [09:02:40]OFD Sender: Remove packet 73180 [09:02:40]ProducePacketName [09:02:40]name=ofd_packets/00073180 [09:02:40]NVStorageDeleteData [09:02:40]OFD Sender: No OFD packet to send [09:02:45]OFD Sender: No OFD packet to send [09:02:50]OFD Sender: No OFD packet to send [09:02:55]OFD Sender: No OFD packet to send [09:03:00]OFD Sender: No OFD packet to send [09:03:05]OFD Sender: No OFD packet to send [09:03:10]OFD Sender: No OFD packet to send [09:03:15]OFD Sender: No OFD packet to send [09:03:20]OFD Sender: No OFD packet to send [09:03:25]OFD Sender: No OFD packet to send [09:03:30]OFD Sender: No OFD packet to send [09:03:35]OFD Sender: No OFD packet to send [09:03:40]OFD Sender: No OFD packet to send [09:03:45]OFD Sender: No OFD packet to send [09:03:50]OFD Sender: No OFD packet to send [09:03:55]OFD Sender: No OFD packet to send [09:04:00]OFD Sender: No OFD packet to send [09:04:05]OFD Sender: No OFD packet to send [09:04:11]OFD Sender: No OFD packet to send [09:04:16]OFD Sender: No OFD packet to send [09:04:21]OFD Sender: No OFD packet to send [09:04:26]OFD Sender: No OFD packet to send [09:04:31]OFD Sender: No OFD packet to send [09:04:36]OFD Sender: No OFD packet to send [09:04:41]OFD Sender: No OFD packet to send [09:04:46]OFD Sender: No OFD packet to send [09:04:51]OFD Sender: No OFD packet to send [09:04:56]OFD Sender: No OFD packet to send [09:05:01]OFD Sender: No OFD packet to send [09:05:06]OFD Sender: No OFD packet to send [09:05:11]OFD Sender: No OFD packet to send [09:05:16]OFD Sender: No OFD packet to send [09:05:21]OFD Sender: No OFD packet to send [09:05:26]OFD Sender: No OFD packet to send [09:05:31]OFD Sender: No OFD packet to send [09:05:36]OFD Sender: No OFD packet to send [09:05:41]OFD Sender: No OFD packet to send [09:05:46]OFD Sender: No OFD packet to send [09:05:51]OFD Sender: No OFD packet to send [09:05:56]OFD Sender: No OFD packet to send [09:06:01]OFD Sender: No OFD packet to send [09:06:06]OFD Sender: No OFD packet to send [09:06:11]OFD Sender: No OFD packet to send [09:06:16]OFD Sender: No OFD packet to send [09:06:19]accept exits with 9 [09:06:19]New connection [09:06:19]New thread 3066830180 created [09:06:19]Thread 3066686820 joined [09:06:19]Waiting for new connection... [09:06:19] Sock 9.Parse request [09:06:19]Sock 9.Check first char [09:06:19]Sock 9.First char is OK [09:06:19]request: POST /json_proto HTTP/1.0 [09:06:19]Method: POST [09:06:19]URL: /json_proto [09:06:19]Method is POST - this is cgi request [09:06:19]url: /json_proto [09:06:19]query_string will be loaded in cgi processing [09:06:19]execute_cgi json_proto POST (null) [09:06:19]execute_cgi path=json_proto method=POST [09:06:19]POST find Content-Length [09:06:19]Host: 172.17.43.195:8080 [09:06:19]Content-Length: 677 [09:06:19]Content-Type: application/json [09:06:19] [09:06:19]POST finish read [09:06:19]Found Content-Length = 677 [09:06:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:19]execute_script... [09:06: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)952780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:19]POST & json_proto [09:06:19]process_json_proto [09:06:19]json parsed OK: [09:06:19]protocol is kg_v1.0 [09:06:19]action value=close_receipt [09:06:19]process_action close_receipt [09:06:19]cmd_close_receipt [09:06:19]MH_GetDate [09:06:19]Write to MH i2c: F0 00 00 48 01 38 [09:06:19]Write i2c OK [09:06:19]MH_I2C_Read... [09:06:19]Read from MH i2c: F0 [09:06:19]MH_I2C_Read... [09:06:19]Read from MH i2c: F0 09 00 [09:06:19]MH_I2C_Read... [09:06:19]Read from MH i2c: F0 09 00 48 01 00 0B 9A 24 67 74 2C AD 66 24 [09:06:19]GetLastDocTimeStamp 1730451732 [09:06:19]current date 1730451979 [09:06:19]FM_GetShiftState [09:06:19]SAM_PROTO_GetShiftState [09:06:19]wFMCommunicate request_size=4 [09:06:19]MH_SAM_APDU [09:06:19]CAPDU: 80 13 01 00 [09:06:19]Write to MH i2c: E2 08 00 49 01 80 13 01 00 00 00 00 00 C7 [09:06:19]Write i2c OK [09:06:19]MH_I2C_Read... [09:06:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:19]Read from MH i2c: E2 [09:06:19]MH_I2C_Read... [09:06:19]Read from MH i2c: E2 0E 00 [09:06:19]MH_I2C_Read... [09:06:19]Read from MH i2c: E2 0E 00 49 01 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 0E [09:06:19]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [09:06:19]wFMCommunicate OK [09:06:19]SAM_PROTO_GetShiftState done [09:06:19]FM_GetShiftState done [09:06:19]opened in 1730419605 [09:06:19]opened+sec_in_day 1730506005 [09:06:19]quantity*price = 50041 [09:06:19]sum+1 = 50042 [09:06:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 50 01.11.2024 09:06 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73181 ФПД: 111123112975910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T090619&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73181&fm=111123112975910&tin=02508201610067®Number=0000000000091644&sum=50000 [09:06:20]StoreToDocumentArchive [09:06:20]shift 558 fd 73181 [09:06:20]save to /storage/0558/doc_00073181 [09:06:20]save last doc name /storage/0558/doc_00073181 to /storage/kkm_last_doc_name [09:06:20]save OK [09:06:20]Clear old archive folders... [09:06:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:06:20]tlvbuf is 001C1B00 [09:06:20]SAM_PROTO_ClearQueue [09:06:20]wFMCommunicate request_size=4 [09:06:20]MH_SAM_APDU [09:06:20]CAPDU: 80 09 00 00 [09:06:20]Write to MH i2c: E2 08 00 56 01 80 09 00 00 00 00 00 00 C9 [09:06:20]Write i2c OK [09:06:20]MH_I2C_Read... [09:06:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:06:20]Read from MH i2c: E2 [09:06:20]MH_I2C_Read... [09:06:20]Read from MH i2c: E2 03 00 [09:06:20]MH_I2C_Read... [09:06:20]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [09:06:20]RAPDU: 90 00 [09:06:20]wFMCommunicate OK [09:06:20]SAM_PROTO_ClearQueue done [09:06:20]KKMCreateOFDPacket [09:06:20]OFDProtocolAddRootSTLVToBuf [09:06:20]FM_MakeSignedData [09:06:20]FM_MakeSignedData [09:06:20]SAM_PROTO_SignData [09:06:20]wFMCommunicate request_size=4 [09:06:20]MH_SAM_APDU [09:06:20]CAPDU: 80 0D 01 02 [09:06:20]Write to MH i2c: E2 08 00 57 01 80 0D 01 02 00 00 00 00 D1 [09:06:20]Write i2c OK [09:06:20]MH_I2C_Read... [09:06:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:06:20]Read from MH i2c: E2 [09:06:20]MH_I2C_Read... [09:06:20]Read from MH i2c: E2 03 00 [09:06:20]MH_I2C_Read... [09:06:20]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [09:06:20]RAPDU: 90 00 [09:06:20]wFMCommunicate OK [09:06:20]wFMCommunicate request_size=255 [09:06:20]MH_SAM_APDU [09:06: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 0B 9A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DD 1D 01 00 35 04 06 00 65 [09:06:20]Write to MH i2c: E2 02 01 58 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 0B 9A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DD 1D 01 00 35 04 06 00 65 00 00 52 [09:06:20]Write i2c OK [09:06:20]MH_I2C_Read... [09:06:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:20]Read from MH i2c: E2 [09:06:20]MH_I2C_Read... [09:06:20]Read from MH i2c: E2 03 00 [09:06:20]MH_I2C_Read... [09:06:20]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [09:06:20]RAPDU: 90 00 [09:06:20]wFMCommunicate OK [09:06:20]wFMCommunicate request_size=10 [09:06:20]MH_SAM_APDU [09:06:20]CAPDU: 80 0D 02 02 05 10 DD AC DE 26 [09:06:20]Write to MH i2c: E2 0D 00 59 01 80 0D 02 02 05 00 10 DD AC DE 26 00 00 7B [09:06:20]Write i2c OK [09:06:20]MH_I2C_Read... [09:06:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:21]Read from MH i2c: E2 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 03 00 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [09:06:21]RAPDU: 90 00 [09:06:21]wFMCommunicate OK [09:06:21]wFMCommunicate request_size=4 [09:06:21]MH_SAM_APDU [09:06:21]CAPDU: 80 0D 03 02 [09:06:21]Write to MH i2c: E2 08 00 5A 01 80 0D 03 02 00 00 00 00 D6 [09:06:21]Write i2c OK [09:06:21]MH_I2C_Read... [09:06:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:21]Read from MH i2c: E2 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 0B 00 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 0B 00 5A 01 00 F6 19 72 BF 4C 98 10 1E 90 00 29 [09:06:21]RAPDU: F6 19 72 BF 4C 98 10 1E 90 00 [09:06:21]wFMCommunicate OK [09:06:21]SAM_PROTO_SignData done [09:06:21]FM_MakeSignedData done [09:06:21]CreateOFDProtocolMessage [09:06:21]wFMCommunicate request_size=4 [09:06:21]MH_SAM_APDU [09:06:21]CAPDU: 80 11 00 00 [09:06:21]Write to MH i2c: E2 08 00 5B 01 80 11 00 00 00 00 00 00 D6 [09:06:21]Write i2c OK [09:06:21]MH_I2C_Read... [09:06:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:21]Read from MH i2c: E2 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 17 00 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 17 00 5B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 2A [09:06:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:06:21]wFMCommunicate OK [09:06:21]CreateOFDProtocolMessage done [09:06:21]OFDSenderStorePacket 73181 [09:06:21]StoreOFDPacket docnum=73181 [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]/dev/ttyS4 opened [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1F [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:09]*** MH1903S init start (LINUX_LIGHT) [00:00:09]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:09]*** Serial: 3139303353513838 540000000057257A (1903SQ88T) [00:00:09]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:09]*** step 0: 5000 (2650, 2350 REF) [00:00:09]*** step 1: 4835 (2500, 2335 REF) [00:00:09]*** step 2: 4676 (2440, 2236 REF) [00:00:09]*** step 3: 4523 (2280, 2243 REF) [00:00:09]*** step 4: 4376 (2160, 2216 REF) [00:00:09]*** step 5: 4235 (2050, 2185 REF) [00:00:09]*** step 6: 4098 (1950, 2148 REF) [00:00:09]*** step 7: 3967 (1870, 2097 REF) [00:00:09]*** step 8: 3840 (1828, 2012 REF) [00:00:09]*** step 9: 3719 (1728, 1991 REF) [00:00:09]*** step 10: 3601 (1675, 1926 REF) [00:00:09]*** step 11: 3488 (1635, 1853 REF) [00:00:09]*** step 12: 3379 (1595, 1784 REF) [00:00:09]*** step 13: 3275 (1565, 1710 REF) [00:00:09]*** step 14: 3174 (1543, 1631 REF) [00:00:09]*** step 15: 3077 (1523, 1554 REF) [00:00:09]*** step 16: 2983 (1503, 1480 REF) [00:00:09]*** step 17: 2893 (1486, 1407 REF) [00:00:09]*** step 18: 2806 (1466, 1340 REF) [00:00:09]*** step 19: 2723 (1426, 1297 REF) [00:00:09]*** step 20: 2642 (1406, 1236 REF) [00:00:09]*** step 21: 2565 (1384, 1181 REF) [00:00:09]*** step 22: 2490 (1364, 1126 REF) [00:00:09]*** step 23: 2418 (1344, 1074 REF) [00:00:09]*** step 24: 2349 (1322, 1027 REF) [00:00:09]*** step 25: 2283 (1302, 981 REF) [00:00:09]*** step 26: 2218 (1282, 936 REF) [00:00:09]*** step 27: 2157 (1262, 895 REF) [00:00:09]*** step 28: 2097 (1242, 855 REF) [00:00:09]*** step 29: 2040 (1222, 818 REF) [00:00:09]*** step 30: 1985 (1202, 783 REF) [00:00:09]*** step 31: 1932 (1191, 741 REF) [00:00:09]*** step 32: 1880 (1181, 699 REF) [00:00:09]*** step 33: 1831 (1171, 660 REF) [00:00:09]*** step 34: 1784 (1161, 623 REF) [00:00:09]*** step 35: 1738 (1151, 587 REF) [00:00:09]*** step 36: 1694 (1141, 553 REF) [00:00:09]*** step 37: 1652 (1131, 521 REF) [00:00:09]*** step 38: 1611 (1121, 490 REF) [00:00:09]*** step 39: 1572 (1111, 461 REF) [00:00:09]*** step 40: 1534 (1103, 431 REF) [00:00:09]*** step 41: 1497 (1093, 404 REF) [00:00:09]*** step 42: 1462 (1083, 379 REF) [00:00:09]*** step 43: 1428 (1073, 355 REF) [00:00:09]*** step 44: 1396 (1063, 333 REF) [00:00:09]*** step 45: 1365 (1053, 312 REF) [00:00:09]*** step 46: 1334 (1043, 291 REF) [00:00:09]*** step 47: 1305 (1033, 272 REF) [00:00:09]*** step 48: 1277 (1023, 254 REF) [00:00:09]*** step 49: 1250 (1013, 237 REF) [00:00:09]*** step 50: 1224 (990, 234 REF) [00:00:09]*** step 51: 1199 (980, 219 REF) [00:00:09]*** step 52: 1175 (970, 205 REF) [00:00:09]*** step 53: 1152 (960, 192 REF) [00:00:09]*** step 54: 1130 (950, 180 REF) [00:00:09]*** step 55: 1108 (940, 168 REF) [00:00:09]*** step 56: 1088 (930, 158 REF) [00:00:09]*** step 57: 1068 (920, 148 REF) [00:00:09]*** step 58: 1049 (910, 139 REF) [00:00:09]*** step 59: 1030 (900, 130 REF) [00:00:09]*** step 60: 1012 (890, 122 REF) [00:00:09]*** step 61: 995 (880, 115 REF) [00:00:09]*** step 62: 979 (870, 109 REF) [00:00:09]*** step 63: 963 (860, 103 REF) [00:00:09]*** step 64: 948 (850, 98 REF) [00:00:09]*** step 65: 933 (840, 93 REF) [00:00:09]*** step 66: 919 (830, 89 REF) [00:00:09]*** step 67: 905 (820, 85 REF) [00:00:09]*** step 68: 892 (810, 82 REF) [00:00:09]*** step 69: 879 (800, 79 REF) [00:00:09]*** step 70: 867 (790, 77 REF) [00:00:09]*** step 71: 855 (780, 75 REF) [00:00:09]*** step 72: 844 (770, 74 REF) [00:00:09]*** step 73: 833 (760, 73 REF) [00:00:09]*** step 74: 822 (750, 72 REF) [00:00:09]*** step 75: 812 (740, 72 REF) [00:00:09]*** step 76: 803 (730, 73 REF) [00:00:09]*** step 77: 793 (720, 73 REF) [00:00:09]*** step 78: 784 (710, 74 REF) [00:00:09]*** step 79: 776 (700, 76 REF) [00:00:09]*** step 80: 767 (690, 77 REF) [00:00:09]*** step 81: 759 (680, 79 REF) [00:00:09]*** step 82: 751 (670, 81 REF) [00:00:09]*** step 83: 744 (660, 84 REF) [00:00:09]*** step 84: 737 (650, 87 REF) [00:00:09]*** step 85: 730 (640, 90 REF) [00:00:09]*** step 86: 723 (630, 93 REF) [00:00:09]*** step 87: 717 (620, 97 REF) [00:00:09]*** step 88: 710 (610, 100 REF) [00:00:09]*** step 89: 705 (600, 105 REF) [00:00:09]*** step 90: 699 [00:00:09]*** step 91: 693 [00:00:09]*** step 92: 688 [00:00:09]*** step 93: 683 [00:00:09]*** step 94: 678 [00:00:09]*** step 95: 673 [00:00:09]*** step 96: 669 [00:00:09]*** step 97: 664 [00:00:09]*** step 98: 660 [00:00:09]*** step 99: 656 [00:00:09]*** step 100: 652 [00:00:09]*** step 101: 648 [00:00:09]*** step 102: 644 [00:00:09]*** step 103: 641 [00:00:09]*** step 104: 638 [00:00:09]*** step 105: 634 [00:00:09]*** step 106: 631 [00:00:09]*** step 107: 628 [00:00:09]*** step 108: 625 [00:00:09]*** step 109: 622 [00:00:09]*** step 110: 620 [00:00:09]*** step 111: 617 [00:00:09]*** step 112: 615 [00:00:09]*** step 113: 612 [00:00:09]*** step 114: 610 [00:00:09]*** step 115: 608 [00:00:09]*** step 116: 605 [00:00:09]*** step 117: 603 [00:00:09]*** step 118: 601 [00:00:09]*** step 119: 599 [00:00:09]*** printer: Printer HW initialized [00:00:09]*** initSamCard finished [00:00:09]*** RTC: 7827711+1722625140=1730452851 [00:00:09]*** BPK Status Register BPK_RDY = 0x0 [00:00:09]*** SEN State Register SEN_STATE = 0x20ff [00:00:09]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:09]*** Analog Control Register 0 SEN_ANA0 = 0x33550623 [00:00:09]*** Is cutter blocked? [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 20 [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30620 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:10]Write to MH i2c: D5 00 00 06 00 DA [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 73 9D 24 67 74 2C AD 66 4D [09:20:51]Current date/time: 01.11.2024 09:20 [09:20:51]FM_Init [09:20:51]wFMConnect [09:20:51]MH_SAM_On [09:20:51]Write to MH i2c: E0 00 00 08 00 E7 [09:20:51]Write i2c OK [09:20:51]MH_I2C_Read... [09:20:51]*** iso7816_init finished! [09:20:51]*** atr: [09:20:51]*** 0F 3B D5 18 FF 81 91 FE [09:20:51]*** 1F C3 80 73 C8 21 10 0A [09:20:51]*** 00 00 00 00 00 00 00 00 [09:20:51]*** 00 00 00 00 00 00 00 00 [09:20:51]*** 00 00 00 00 00 00 00 00 [09:20:51]*** 00 00 00 00 00 00 00 00 [09:20:51]*** 00 00 00 00 00 00 00 00 [09:20:51]*** 00 00 00 00 00 00 00 00 [09:20:51]Read from MH i2c: E0 [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: E0 10 00 [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [09:20:51]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [09:20:51]wFMCommunicate request_size=10 [09:20:51]MH_SAM_APDU [09:20:51]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [09:20:51]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [09:20:51]Write i2c OK [09:20:51]MH_I2C_Read... [09:20:51]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [09:20:51]Read from MH i2c: E2 [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: E2 03 00 [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [09:20:51]RAPDU: 90 00 [09:20:51]wFMCommunicate OK [09:20:51]wFMCommunicate request_size=4 [09:20:51]MH_SAM_APDU [09:20:51]CAPDU: 80 11 00 00 [09:20:51]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [09:20:51]Write i2c OK [09:20:51]MH_I2C_Read... [09:20:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:51]Read from MH i2c: E2 [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: E2 17 00 [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D8 [09:20:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:20:51]wFMCommunicate OK [09:20:51]Detected FM SN is 0000000000874662 [09:20:51]Stored FM SN is 0000000000874662 [09:20:51]wFMCommunicate request_size=9 [09:20:51]MH_SAM_APDU [09:20:51]CAPDU: 80 16 00 00 04 08 EB 00 00 [09:20:51]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 08 EB 00 00 00 00 85 [09:20:51]Write i2c OK [09:20:51]MH_I2C_Read... [09:20:51]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [09:20:51]Read from MH i2c: E2 [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: E2 03 00 [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [09:20:51]RAPDU: 90 00 [09:20:51]wFMCommunicate OK [09:20:51]FM PIN OK [09:20:51]wFMCommunicate request_size=8 [09:20:51]MH_SAM_APDU [09:20:51]CAPDU: 80 14 04 00 03 02 00 01 [09:20:51]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [09:20:51]Write i2c OK [09:20:51]MH_I2C_Read... [09:20:51]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [09:20:51]Read from MH i2c: E2 [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: E2 03 00 [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [09:20:51]RAPDU: 90 00 [09:20:51]wFMCommunicate OK [09:20:51]wFMCommunicate request_size=13 [09:20:51]MH_SAM_APDU [09:20:51]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [09:20:51]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [09:20:51]Write i2c OK [09:20:51]MH_I2C_Read... [09:20:51]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [09:20:51]Read from MH i2c: E2 [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: E2 03 00 [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [09:20:51]RAPDU: 90 00 [09:20:51]wFMCommunicate OK [09:20:51]wFMCommunicate request_size=4 [09:20:51]MH_SAM_APDU [09:20:51]CAPDU: 80 11 00 00 [09:20:51]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [09:20:51]Write i2c OK [09:20:51]MH_I2C_Read... [09:20:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:51]Read from MH i2c: E2 [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: E2 17 00 [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DC [09:20:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:20:51]wFMCommunicate OK [09:20:51]DocumentArchiveInit [09:20:51]Start Httpd... [09:20:51]Httpd thread 3067661668 created [09:20:51]Write to MH i2c: 01 00 00 0F 00 0F [09:20:51]Write i2c OK [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: 01 [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: 01 07 00 [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [09:20:51]MH Int Process started [09:20:51]Allocated Socket 8 [09:20:51]Bind OK [09:20:51]Listen OK [09:20:51]httpd running on port 8080 [09:20:51]Waiting for new connection... [09:20:51]OFD Sender: Processing packet 73181 [packets to send 282, broken 281] [09:20:51]ProducePacketName [09:20:51]name=ofd_packets/00073181 [09:20:51]OFD Sender: To server: pG, [09:20:51]CommunicateWithHost lk.salyk.kg:30040 [09:20:51]ConnectInit lk.salyk.kg [09:20:53]Connected sock=7 [09:20:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 A0 96 07 01 76 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 0B 9A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DD 1D 01 00 35 04 06 00 65 10 DD AC DE 26 F6 19 72 BF 4C 98 10 1E [09:20:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 BD 55 47 00 EB F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DD 1D 01 00 F4 03 04 00 28 48 24 67 B6 04 01 00 00 C7 2E 61 01 16 F6 C5 8F [09:20:54]CommunicateWithHost err = 0 [09:20:54]CheckOFDResponse [09:20:54]1017 (14) - 77093643461234 [09:20:54]1041 (16) - 0000000000874662 [09:20:54]1040 (4) - 73181 [09:20:54]1012 (4) - 01.11.2024 03:16 [09:20:54]1206 (1) - 0 [09:20:54]OFD Sender: Remove packet 73181 [09:20:54]ProducePacketName [09:20:54]name=ofd_packets/00073181 [09:20:54]NVStorageDeleteData [09:20:55]accept exits with 9 [09:20:55]New connection [09:20:55]New thread 3067374948 created [09:20:55]Waiting for new connection... [09:20:55] Sock 9.Parse request [09:20:55]Sock 9.Check first char [09:20:55]Sock 9.First char is OK [09:20:55]request: POST /json_proto HTTP/1.0 [09:20:55]Method: POST [09:20:55]URL: /json_proto [09:20:55]Method is POST - this is cgi request [09:20:55]url: /json_proto [09:20:55]query_string will be loaded in cgi processing [09:20:55]execute_cgi json_proto POST (null) [09:20:55]execute_cgi path=json_proto method=POST [09:20:55]POST find Content-Length [09:20:55]Host: 172.17.43.195:8080 [09:20:55]Content-Length: 215 [09:20:55]Content-Type: application/json [09:20:55] [09:20:55]POST finish read [09:20:55]Found Content-Length = 215 [09:20:55]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" ] } } [09:20:55]execute_script... [09:20:55]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" ] } } [09:20:55]POST & json_proto [09:20:55]process_json_proto [09:20:55]json parsed OK: [09:20:55]protocol is kg_v1.0 [09:20:55]action value=get_value [09:20:55]process_action get_value [09:20:55]cmd_get_value [09:20:55]process_action get_value done [09:20:55]requested_data is exist [09:20:55]produce_requested_data [09:20:55]requested_item kkm.sn is exist - process it [09:20:55]requested_item kkm.ver is exist - process it [09:20:55]requested_item fm.sn is exist - process it [09:20:55]wFMCommunicate request_size=4 [09:20:55]MH_SAM_APDU [09:20:55]CAPDU: 80 11 00 00 [09:20:55]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [09:20:55]Write i2c OK [09:20:55]MH_I2C_Read... [09:20:55]OFD Sender: No OFD packet to send [09:20:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:55]Read from MH i2c: E2 [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: E2 17 00 [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DE [09:20:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:20:55]wFMCommunicate OK [09:20:55]requested_item fd.num is exist - process it [09:20:55]SAM_PROTO_GetFieldsCounters [09:20:55]wFMCommunicate request_size=4 [09:20:55]MH_SAM_APDU [09:20:55]CAPDU: 80 13 00 00 [09:20:55]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [09:20:55]Write i2c OK [09:20:55]MH_I2C_Read... [09:20:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:55]Read from MH i2c: E2 [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: E2 62 00 [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 DD 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [09:20:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 DD 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:20:55]wFMCommunicate OK [09:20:55]SAM_PROTO_GetFieldsCounters done [09:20:55]requested_item shift.num is exist - process it [09:20:55]requested_item shift.opened is exist - process it [09:20:55]req_shift_opened [09:20:55]FM_GetShiftState [09:20:55]SAM_PROTO_GetShiftState [09:20:55]wFMCommunicate request_size=4 [09:20:55]MH_SAM_APDU [09:20:55]CAPDU: 80 13 01 00 [09:20:55]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [09:20:55]Write i2c OK [09:20:55]MH_I2C_Read... [09:20:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:55]Read from MH i2c: E2 [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: E2 0E 00 [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 D6 [09:20:55]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [09:20:55]wFMCommunicate OK [09:20:55]SAM_PROTO_GetShiftState done [09:20:55]FM_GetShiftState done [09:20:55]req_shift_opened done [09:20:55]requested_item shift.open_date is exist - process it [09:20:55]req_shift_open_date [09:20:55]req_shift_open_date done [09:20:55]produce_requested_data done [09:20:55]produce_requested_data return {"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":73181,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [09:20:55]process_action_free get_value [09:20:55]json_value_free [09:20:55]json_value_free done [09:20:55]process_json_proto returns [09:20:55]Send response to host [09:20:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":73181,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [09:20:55]free response buf [09:20:55]execute_script done [09:20:55]execute_script returns [09:20:55]free content buf [09:20:55]Sock 9.Close socket [09:20:55]Sock 9.Thread stoped [09:20:55]accept exits with 10 [09:20:55]New connection [09:20:55]New thread 3067231588 created [09:20:55]Thread 3067374948 joined [09:20:55]Waiting for new connection... [09:20:55] Sock 10.Parse request [09:20:55]Sock 10.Check first char [09:20:55]Sock 10.First char is OK [09:20:55]request: POST /json_proto HTTP/1.0 [09:20:55]Method: POST [09:20:55]URL: /json_proto [09:20:55]Method is POST - this is cgi request [09:20:55]url: /json_proto [09:20:55]query_string will be loaded in cgi processing [09:20:55]execute_cgi json_proto POST (null) [09:20:55]execute_cgi path=json_proto method=POST [09:20:55]POST find Content-Length [09:20:55]Host: 172.17.43.195:8080 [09:20:55]Content-Length: 331 [09:20:55]Content-Type: application/json [09:20:55] [09:20:55]POST finish read [09:20:55]Found Content-Length = 331 [09:20:55]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" ] } } [09:20:55]execute_script... [09:20:55]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" ] } } [09:20:55]POST & json_proto [09:20:55]process_json_proto [09:20:55]json parsed OK: [09:20:55]protocol is kg_v1.0 [09:20:55]action value=get_value [09:20:55]process_action get_value [09:20:55]cmd_get_value [09:20:55]process_action get_value done [09:20:55]requested_data is exist [09:20:55]produce_requested_data [09:20:55]requested_item fm.sale.total is exist - process it [09:20:55]SAM_PROTO_GetFMData [09:20:55]wFMCommunicate request_size=4 [09:20:55]MH_SAM_APDU [09:20:55]CAPDU: 80 13 03 00 [09:20:55]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [09:20:55]Write i2c OK [09:20:55]MH_I2C_Read... [09:20:56]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:20:56]Read from MH i2c: E2 [09:20:56]MH_I2C_Read... [09:20:56]Read from MH i2c: E2 FD 00 [09:20:56]MH_I2C_Read... [09:20:56]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 81 19 01 00 69 04 A3 00 6F 04 04 00 91 18 01 00 B1 04 05 00 23 3F 43 A5 01 70 04 05 00 B4 79 86 59 01 72 04 04 00 6F C5 BC 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 15 33 BF 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 A3 87 BA 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 46 [09:20:56]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 81 19 01 00 69 04 A3 00 6F 04 04 00 91 18 01 00 B1 04 05 00 23 3F 43 A5 01 70 04 05 00 B4 79 86 59 01 72 04 04 00 6F C5 BC 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 15 33 BF 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 A3 87 BA 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 [09:20:56]wFMCommunicate OK [09:20:56]wFMCommunicate request_size=4 [09:20:56]MH_SAM_APDU [09:20:56]CAPDU: 80 17 00 00 [09:20:56]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [09:20:56]Write i2c OK [09:20:56]MH_I2C_Read... [09:20:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:20:56]Read from MH i2c: E2 [09:20:56]MH_I2C_Read... [09:20:56]Read from MH i2c: E2 FD 00 [09:20:56]MH_I2C_Read... [09:20:56]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 14 [09:20:56]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [09:20:56]wFMCommunicate OK [09:20:56]wFMCommunicate request_size=4 [09:20:56]MH_SAM_APDU [09:20:56]CAPDU: 80 17 00 00 [09:20:56]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [09:20:56]Write i2c OK [09:20:56]MH_I2C_Read... [09:20:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:20:56]Read from MH i2c: E2 [09:20:56]MH_I2C_Read... [09:20:56]Read from MH i2c: E2 FD 00 [09:20:56]MH_I2C_Read... [09:20:56]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 AA [09:20:56]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [09:20:56]wFMCommunicate OK [09:20:56]wFMCommunicate request_size=4 [09:20:56]MH_SAM_APDU [09:20:56]CAPDU: 80 17 00 00 [09:20:56]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [09:20:56]Write i2c OK [09:20:56]MH_I2C_Read... [09:20:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:20:56]Read from MH i2c: E2 [09:20:56]MH_I2C_Read... [09:20:56]Read from MH i2c: E2 FD 00 [09:20:56]MH_I2C_Read... [09:20:56]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 0E [09:20:56]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [09:20:57]wFMCommunicate OK [09:20:57]wFMCommunicate request_size=4 [09:20:57]MH_SAM_APDU [09:20:57]CAPDU: 80 17 00 00 [09:20:57]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [09:20:57]Write i2c OK [09:20:57]MH_I2C_Read... [09:20:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [09:20:57]Read from MH i2c: E2 [09:20:57]MH_I2C_Read... [09:20:57]Read from MH i2c: E2 E1 00 [09:20:57]MH_I2C_Read... [09:20:57]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [09:20:57]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:20:57]wFMCommunicate OK [09:20:57]SAM_PROTO_GetFMData done [09:20:57]requested_item fm.sale_refund.total is exist - process it [09:20:57]requested_item fm.buy.total is exist - process it [09:20:57]requested_item shift.sale.total is exist - process it [09:20:57]SAM_PROTO_GetShiftData [09:20:57]wFMCommunicate request_size=4 [09:20:57]MH_SAM_APDU [09:20:57]CAPDU: 80 13 02 00 [09:20:57]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [09:20:57]Write i2c OK [09:20:57]MH_I2C_Read... [09:20:57]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:20:57]Read from MH i2c: E2 [09:20:57]MH_I2C_Read... [09:20:57]Read from MH i2c: E2 FD 00 [09:20:57]MH_I2C_Read... [09:20:57]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 32 00 00 00 69 04 9B 00 6F 04 04 00 32 00 00 00 B1 04 03 00 FB C5 56 70 04 03 00 AC E3 51 72 04 03 00 4F E2 04 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 81 37 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 9D C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 08 [09:20:57]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 32 00 00 00 69 04 9B 00 6F 04 04 00 32 00 00 00 B1 04 03 00 FB C5 56 70 04 03 00 AC E3 51 72 04 03 00 4F E2 04 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 81 37 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 9D C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [09:20:57]wFMCommunicate OK [09:20:57]wFMCommunicate request_size=4 [09:20:57]MH_SAM_APDU [09:20:57]CAPDU: 80 17 00 00 [09:20:57]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [09:20:57]Write i2c OK [09:20:57]MH_I2C_Read... [09:20:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:20:58]Read from MH i2c: E2 [09:20:58]MH_I2C_Read... [09:20:58]Read from MH i2c: E2 FD 00 [09:20:58]MH_I2C_Read... [09:20:58]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BB [09:20:58]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 [09:20:58]wFMCommunicate OK [09:20:58]wFMCommunicate request_size=4 [09:20:58]MH_SAM_APDU [09:20:58]CAPDU: 80 17 00 00 [09:20:58]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [09:20:58]Write i2c OK [09:20:58]MH_I2C_Read... [09:20:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:20:58]Read from MH i2c: E2 [09:20:58]MH_I2C_Read... [09:20:58]Read from MH i2c: E2 FD 00 [09:20:58]MH_I2C_Read... [09:20:58]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 51 [09:20:58]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 [09:20:58]wFMCommunicate OK [09:20:58]wFMCommunicate request_size=4 [09:20:58]MH_SAM_APDU [09:20:58]CAPDU: 80 17 00 00 [09:20:58]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [09:20:58]Write i2c OK [09:20:58]MH_I2C_Read... [09:20:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:20:58]Read from MH i2c: E2 [09:20:58]MH_I2C_Read... [09:20:58]Read from MH i2c: E2 FD 00 [09:20:58]MH_I2C_Read... [09:20:58]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0D [09:20:58]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 [09:20:58]wFMCommunicate OK [09:20:58]wFMCommunicate request_size=4 [09:20:58]MH_SAM_APDU [09:20:58]CAPDU: 80 17 00 00 [09:20:58]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [09:20:58]Write i2c OK [09:20:58]MH_I2C_Read... [09:20:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [09:20:58]Read from MH i2c: E2 [09:20:58]MH_I2C_Read... [09:20:58]Read from MH i2c: E2 CB 00 [09:20:58]MH_I2C_Read... [09:20:58]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [09:20:58]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 [09:20:59]wFMCommunicate OK [09:20:59]SAM_PROTO_GetShiftData done [09:20:59]requested_item shift.sale.total_cash is exist - process it [09:20:59]requested_item shift.sale_refund.total is exist - process it [09:20:59]requested_item shift.sale_refund.total_cash is exist - process it [09:20:59]requested_item shift.buy.total is exist - process it [09:20:59]requested_item shift.buy.total_cash is exist - process it [09:20:59]produce_requested_data done [09:20:59]produce_requested_data return {"fm.sale.total":70676150.11,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":56867.79,"shift.sale.total_cash":53667.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} [09:20:59]process_action_free get_value [09:20:59]json_value_free [09:20:59]json_value_free done [09:20:59]process_json_proto returns [09:20:59]Send response to host [09:20:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70676150.11,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":56867.79,"shift.sale.total_cash":53667.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}}} [09:20:59]free response buf [09:20:59]execute_script done [09:20:59]execute_script returns [09:20:59]free content buf [09:20:59]Sock 10.Close socket [09:20:59]Sock 10.Thread stoped [09:20:59]accept exits with 9 [09:20:59]New connection [09:20:59]New thread 3067374948 created [09:20:59]Thread 3067231588 joined [09:20:59]Waiting for new connection... [09:20:59] Sock 9.Parse request [09:20:59]Sock 9.Check first char [09:20:59]Sock 9.First char is OK [09:20:59]request: POST /json_proto HTTP/1.0 [09:20:59]Method: POST [09:20:59]URL: /json_proto [09:20:59]Method is POST - this is cgi request [09:20:59]url: /json_proto [09:20:59]query_string will be loaded in cgi processing [09:20:59]execute_cgi json_proto POST (null) [09:20:59]execute_cgi path=json_proto method=POST [09:20:59]POST find Content-Length [09:20:59]Host: 172.17.43.195:8080 [09:20:59]Content-Length: 791 [09:20:59]Content-Type: application/json [09:20:59] [09:20:59]POST finish read [09:20:59]Found Content-Length = 791 [09:20:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952781", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:59]execute_script... [09:20:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952781", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:59]POST & json_proto [09:20:59]process_json_proto [09:20:59]json parsed OK: [09:20:59]protocol is kg_v1.0 [09:20:59]action value=close_receipt [09:20:59]process_action close_receipt [09:20:59]cmd_close_receipt [09:20:59]MH_GetDate [09:20:59]Write to MH i2c: F0 00 00 1D 00 0C [09:20:59]Write i2c OK [09:20:59]MH_I2C_Read... [09:20:59]Read from MH i2c: F0 [09:20:59]MH_I2C_Read... [09:20:59]Read from MH i2c: F0 09 00 [09:20:59]MH_I2C_Read... [09:20:59]Read from MH i2c: F0 09 00 1D 00 00 7C 9D 24 67 74 2C AD 66 6C [09:20:59]GetLastDocTimeStamp 1730451979 [09:20:59]current date 1730452860 [09:20:59]FM_GetShiftState [09:20:59]SAM_PROTO_GetShiftState [09:20:59]wFMCommunicate request_size=4 [09:20:59]MH_SAM_APDU [09:20:59]CAPDU: 80 13 01 00 [09:20:59]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [09:20:59]Write i2c OK [09:20:59]MH_I2C_Read... [09:20:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:59]Read from MH i2c: E2 [09:20:59]MH_I2C_Read... [09:20:59]Read from MH i2c: E2 0E 00 [09:20:59]MH_I2C_Read... [09:20:59]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 E2 [09:20:59]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [09:20:59]wFMCommunicate OK [09:20:59]SAM_PROTO_GetShiftState done [09:20:59]FM_GetShiftState done [09:20:59]opened in 1730419605 [09:20:59]opened+sec_in_day 1730506005 [09:20:59]quantity*price = 0 [09:20:59]sum+1 = 1 [09:20:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 51 01.11.2024 09:21 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 73182 ФПД: 170219366858236 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T092100&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73182&fm=170219366858236&tin=02508201610067®Number=0000000000091644&sum=0 [09:21:00]StoreToDocumentArchive [09:21:00]shift 558 fd 73182 [09:21:00]save to /storage/0558/doc_00073182 [09:21:00]save last doc name /storage/0558/doc_00073182 to /storage/kkm_last_doc_name [09:21:00]save OK [09:21:00]Clear old archive folders... [09:21:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:21:00]tlvbuf is 00A1F5A0 [09:21:00]SAM_PROTO_ClearQueue [09:21:00]wFMCommunicate request_size=4 [09:21:00]MH_SAM_APDU [09:21:00]CAPDU: 80 09 00 00 [09:21:00]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [09:21:00]Write i2c OK [09:21:00]MH_I2C_Read... [09:21:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:21:00]Read from MH i2c: E2 [09:21:00]MH_I2C_Read... [09:21:00]Read from MH i2c: E2 03 00 [09:21:00]MH_I2C_Read... [09:21:00]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [09:21:00]RAPDU: 90 00 [09:21:00]wFMCommunicate OK [09:21:00]SAM_PROTO_ClearQueue done [09:21:00]KKMCreateOFDPacket [09:21:00]OFDProtocolAddRootSTLVToBuf [09:21:00]FM_MakeSignedData [09:21:00]FM_MakeSignedData [09:21:00]SAM_PROTO_SignData [09:21:00]wFMCommunicate request_size=4 [09:21:00]MH_SAM_APDU [09:21:00]CAPDU: 80 0D 01 02 [09:21:00]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [09:21:00]Write i2c OK [09:21:00]MH_I2C_Read... [09:21:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:21:00]Read from MH i2c: E2 [09:21:00]MH_I2C_Read... [09:21:00]Read from MH i2c: E2 03 00 [09:21:00]MH_I2C_Read... [09:21:00]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [09:21:00]RAPDU: 90 00 [09:21:00]wFMCommunicate OK [09:21:00]wFMCommunicate request_size=255 [09:21:00]MH_SAM_APDU [09:21:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 7C 9D 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DE 1D 01 00 35 04 06 00 9A [09:21:00]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 7C 9D 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DE 1D 01 00 35 04 06 00 9A 00 00 E7 [09:21:01]Write i2c OK [09:21:01]MH_I2C_Read... [09:21:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:01]Read from MH i2c: E2 [09:21:01]MH_I2C_Read... [09:21:01]Read from MH i2c: E2 03 00 [09:21:01]MH_I2C_Read... [09:21:01]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [09:21:01]RAPDU: 90 00 [09:21:01]wFMCommunicate OK [09:21:01]wFMCommunicate request_size=10 [09:21:01]MH_SAM_APDU [09:21:01]CAPDU: 80 0D 02 02 05 D0 48 E5 3D FC [09:21:01]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 D0 48 E5 3D FC 00 00 E8 [09:21:01]Write i2c OK [09:21:01]MH_I2C_Read... [09:21:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:01]Read from MH i2c: E2 [09:21:01]MH_I2C_Read... [09:21:01]Read from MH i2c: E2 03 00 [09:21:01]MH_I2C_Read... [09:21:01]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [09:21:01]RAPDU: 90 00 [09:21:01]wFMCommunicate OK [09:21:01]wFMCommunicate request_size=4 [09:21:01]MH_SAM_APDU [09:21:01]CAPDU: 80 0D 03 02 [09:21:01]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [09:21:01]Write i2c OK [09:21:01]MH_I2C_Read... [09:21:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:21:01]Read from MH i2c: E2 [09:21:01]MH_I2C_Read... [09:21:01]Read from MH i2c: E2 0B 00 [09:21:01]MH_I2C_Read... [09:21:01]Read from MH i2c: E2 0B 00 2F 00 00 70 0E 97 22 AA 1F 26 03 90 00 D4 [09:21:01]RAPDU: 70 0E 97 22 AA 1F 26 03 90 00 [09:21:01]wFMCommunicate OK [09:21:01]SAM_PROTO_SignData done [09:21:01]FM_MakeSignedData done [09:21:01]CreateOFDProtocolMessage [09:21:01]wFMCommunicate request_size=4 [09:21:01]MH_SAM_APDU [09:21:01]CAPDU: 80 11 00 00 [09:21:01]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [09:21:01]Write i2c OK [09:21:01]MH_I2C_Read... [09:21:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:01]Read from MH i2c: E2 [09:21:01]MH_I2C_Read... [09:21:01]Read from MH i2c: E2 17 00 [09:21:01]MH_I2C_Read... [09:21:01]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FE [09:21:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:21:01]wFMCommunicate OK [09:21:01]CreateOFDProtocolMessage done [09:21:01]OFDSenderStorePacket 73182 [09:21:01]StoreOFDPacket docnum=73182 [09:21:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 BD 95 07 01 99 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 7C 9D 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DE 1D 01 00 35 04 06 00 9A D0 48 E5 3D FC 70 0E 97 22 AA 1F 26 03 [09:21:01]CheckFolder [09:21:01]dirname=/storage/ofd_packets [09:21:01]CheckFolder done [09:21:01]ProducePacketName [09:21:01]name=ofd_packets/00073182 [09:21:01]NVStorageSaveData ofd_packets/00073182 [09:21:01]File name is /storage/ofd_packets/00073182 [09:21:01]Write 301 bytes [09:21:01]NVStorageSaveData done [09:21:01]OFDSenderStorePacket done [09:21:01]KKMCreateOFDPacket done [09:21:01]NVStorageSaveData kkm_last_timestamp [09:21:01]File name is /storage/kkm_last_timestamp [09:21:01]Write 4 bytes [09:21:01]NVStorageSaveData done [09:21:01]OFD Sender: Processing packet 73182 [packets to send 282, broken 281] [09:21:01]ProducePacketName [09:21:01]name=ofd_packets/00073182 [09:21:01]OFD Sender: To server: pG, [09:21:01]CommunicateWithHost lk.salyk.kg:30040 [09:21:01]ConnectInit lk.salyk.kg [09:21:01]ExternCall_PrintAddStr [09:21:01]wPrintStart [09:21:01]Write to MH i2c: 01 00 00 31 00 31 [09:21:01]Write i2c OK [09:21:01]MH_I2C_Read... [09:21:01]Read from MH i2c: 01 [09:21:01]MH_I2C_Read... [09:21:01]Read from MH i2c: 01 07 00 [09:21:01]MH_I2C_Read... [09:21:01]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [09:21:01]RasterBufferAndPrint [09:21:01]line Счет N : (1)952781 [09:21:01]line ИНН: 02508201610067 [09:21:01]line Контрольно-Кассовый Чек [09:21:01]line ПРОДАЖА [09:21:01]line ТРК (МРК, ГНК) : 53 [09:21:01]line Товар: 2710124130 [09:21:01]line Аи-92-К-5 [09:21:01]line 5.000 * 0.00 [09:21:01]line = 0.00 [09:21:01]line НДС 12% НСП 1% [09:21:01]line > о реализуемом товаре [09:21:01]line ИТОГО: 0.00 [09:21:01]line НСП 1% : 0.00 [09:21:01]line НДС 12% : 0.00 [09:21:01]line Наличными: 0.00 [09:21:01]line Безнал.: 0.00 [09:21:01]line Место: АЗС № 113 "Партнер Нефть" [09:21:01]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:21:01]line СНО: Общий режим [09:21:01]line Чек 51 01.11.2024 09:21 [09:21:01]line Смена: 558 ФФД: 1.0 [09:21:01]line ЗНМ: 0300000087 [09:21:01]line РНМ: 0000000000091644 [09:21:01]line Версия ККМ: 001 [09:21:01]line Талоны: Топливная Карта [09:21:01]line 03047 [09:21:01]line ФМ: 0000000000874662 [09:21:01]line ФД: 73182 [09:21:01]line ФПД: 170219366858236 [09:21:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T092100&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73182&fm=170219366858236&tin=02508201610067®Number=0000000000091644&sum=0 [09:21:01]written 0, free lines is 4095 [09:21:02]Write to MH i2c: 01 00 00 5B 00 5B [09:21:02]Write i2c OK [09:21:02]MH_I2C_Read... [09:21:02]Read from MH i2c: 01 [09:21:02]MH_I2C_Read... [09:21:02]Read from MH i2c: 01 07 00 [09:21:02]MH_I2C_Read... [09:21:02]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 F3 0C 61 [09:21:02]RasterBufferAndPrint [09:21:02]line [09:21:02]line [09:21:02]line [09:21:02]line [09:21:02]line [09:21:02]written 0, free lines is 3340 [09:21:02]Connected sock=11 [09:21:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 BD 95 07 01 99 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 7C 9D 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DE 1D 01 00 35 04 06 00 9A D0 48 E5 3D FC 70 0E 97 22 AA 1F 26 03 [09:21:02]MH_Cut [09:21:02]Write to MH i2c: D1 01 00 62 00 01 34 [09:21:02]Write i2c OK [09:21:02]MH_I2C_Read... [09:21:02]Read from MH i2c: D1 [09:21:02]MH_I2C_Read... [09:21:02]Read from MH i2c: D1 01 00 [09:21:02]MH_I2C_Read... [09:21:02]Read from MH i2c: D1 01 00 62 00 00 33 [09:21:02]Write to MH i2c: 01 00 00 63 00 63 [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]/dev/ttyS4 opened [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1F [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 540000000057257A (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 7828195+1722625140=1730453335 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33550623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 20 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 58 9F 24 67 74 2C AD 66 34 [09:28:56]Current date/time: 01.11.2024 09:28 [09:28:56]FM_Init [09:28:56]wFMConnect [09:28:56]MH_SAM_On [09:28:56]Write to MH i2c: E0 00 00 08 00 E7 [09:28:56]Write i2c OK [09:28:56]MH_I2C_Read... [09:28:56]*** iso7816_init finished! [09:28:56]*** atr: [09:28:56]*** 0F 3B D5 18 FF 81 91 FE [09:28:56]*** 1F C3 80 73 C8 21 10 0A [09:28:56]*** 00 00 00 00 00 00 00 00 [09:28:56]*** 00 00 00 00 00 00 00 00 [09:28:56]*** 00 00 00 00 00 00 00 00 [09:28:56]*** 00 00 00 00 00 00 00 00 [09:28:56]*** 00 00 00 00 00 00 00 00 [09:28:56]*** 00 00 00 00 00 00 00 00 [09:28:56]Read from MH i2c: E0 [09:28:56]MH_I2C_Read... [09:28:56]Read from MH i2c: E0 10 00 [09:28:56]MH_I2C_Read... [09:28:56]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [09:28:56]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [09:28:56]wFMCommunicate request_size=10 [09:28:56]MH_SAM_APDU [09:28:56]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [09:28:56]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [09:28:56]Write i2c OK [09:28:56]MH_I2C_Read... [09:28:56]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [09:28:56]Read from MH i2c: E2 [09:28:56]MH_I2C_Read... [09:28:56]Read from MH i2c: E2 03 00 [09:28:56]MH_I2C_Read... [09:28:56]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [09:28:56]RAPDU: 90 00 [09:28:56]wFMCommunicate OK [09:28:56]wFMCommunicate request_size=4 [09:28:56]MH_SAM_APDU [09:28:56]CAPDU: 80 11 00 00 [09:28:56]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [09:28:56]Write i2c OK [09:28:56]MH_I2C_Read... [09:28:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:56]Read from MH i2c: E2 [09:28:56]MH_I2C_Read... [09:28:56]Read from MH i2c: E2 17 00 [09:28:56]MH_I2C_Read... [09:28:56]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D8 [09:28:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:28:56]wFMCommunicate OK [09:28:56]Detected FM SN is 0000000000874662 [09:28:56]Stored FM SN is 0000000000874662 [09:28:56]wFMCommunicate request_size=9 [09:28:56]MH_SAM_APDU [09:28:56]CAPDU: 80 16 00 00 04 08 EB 00 00 [09:28:56]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 08 EB 00 00 00 00 85 [09:28:56]Write i2c OK [09:28:56]MH_I2C_Read... [09:28:56]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [09:28:56]Read from MH i2c: E2 [09:28:56]MH_I2C_Read... [09:28:56]Read from MH i2c: E2 03 00 [09:28:56]MH_I2C_Read... [09:28:56]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [09:28:56]RAPDU: 90 00 [09:28:56]wFMCommunicate OK [09:28:56]FM PIN OK [09:28:56]wFMCommunicate request_size=8 [09:28:56]MH_SAM_APDU [09:28:56]CAPDU: 80 14 04 00 03 02 00 01 [09:28:56]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [09:28:56]Write i2c OK [09:28:56]MH_I2C_Read... [09:28:56]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [09:28:56]Read from MH i2c: E2 [09:28:56]MH_I2C_Read... [09:28:56]Read from MH i2c: E2 03 00 [09:28:56]MH_I2C_Read... [09:28:56]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [09:28:56]RAPDU: 90 00 [09:28:56]wFMCommunicate OK [09:28:56]wFMCommunicate request_size=13 [09:28:56]MH_SAM_APDU [09:28:56]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [09:28:56]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [09:28:56]Write i2c OK [09:28:56]MH_I2C_Read... [09:28:56]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [09:28:56]Read from MH i2c: E2 [09:28:56]MH_I2C_Read... [09:28:56]Read from MH i2c: E2 03 00 [09:28:56]MH_I2C_Read... [09:28:56]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [09:28:56]RAPDU: 90 00 [09:28:56]wFMCommunicate OK [09:28:56]wFMCommunicate request_size=4 [09:28:56]MH_SAM_APDU [09:28:56]CAPDU: 80 11 00 00 [09:28:56]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [09:28:56]Write i2c OK [09:28:56]MH_I2C_Read... [09:28:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:56]Read from MH i2c: E2 [09:28:56]MH_I2C_Read... [09:28:56]Read from MH i2c: E2 17 00 [09:28:56]MH_I2C_Read... [09:28:56]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DC [09:28:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:28:56]wFMCommunicate OK [09:28:56]DocumentArchiveInit [09:28:56]Start Httpd... [09:28:56]Httpd thread 3067923812 created [09:28:56]Write to MH i2c: 01 00 00 0F 00 0F [09:28:56]Write i2c OK [09:28:56]MH_I2C_Read... [09:28:56]Read from MH i2c: 01 [09:28:56]MH_I2C_Read... [09:28:56]Read from MH i2c: 01 07 00 [09:28:56]MH_I2C_Read... [09:28:56]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [09:28:56]MH Int Process started [09:28:56]Allocated Socket 7 [09:28:56]Bind OK [09:28:56]Listen OK [09:28:56]httpd running on port 8080 [09:28:56]Waiting for new connection... [09:28:56]OFD Sender: Processing packet 73183 [packets to send 282, broken 281] [09:28:56]ProducePacketName [09:28:56]name=ofd_packets/00073183 [09:28:56]OFD Sender: To server: pG, [09:28:56]CommunicateWithHost lk.salyk.kg:30040 [09:28:56]ConnectInit lk.salyk.kg [09:28:57]accept exits with 8 [09:28:57]New connection [09:28:57]New thread 3067637092 created [09:28:57]Waiting for new connection... [09:28:57] Sock 8.Parse request [09:28:57]Sock 8.Check first char [09:28:57]Sock 8.First char is OK [09:28:57]request: POST /json_proto HTTP/1.0 [09:28:57]Method: POST [09:28:57]URL: /json_proto [09:28:57]Method is POST - this is cgi request [09:28:57]url: /json_proto [09:28:57]query_string will be loaded in cgi processing [09:28:57]execute_cgi json_proto POST (null) [09:28:57]execute_cgi path=json_proto method=POST [09:28:57]POST find Content-Length [09:28:57]Host: 172.17.43.195:8080 [09:28:57]Content-Length: 215 [09:28:57]Content-Type: application/json [09:28:57] [09:28:57]POST finish read [09:28:57]Found Content-Length = 215 [09:28: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" ] } } [09:28:57]execute_script... [09:28: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" ] } } [09:28:57]POST & json_proto [09:28:57]process_json_proto [09:28:57]json parsed OK: [09:28:57]protocol is kg_v1.0 [09:28:57]action value=get_value [09:28:57]process_action get_value [09:28:57]cmd_get_value [09:28:57]process_action get_value done [09:28:57]requested_data is exist [09:28:57]produce_requested_data [09:28:57]requested_item kkm.sn is exist - process it [09:28:57]requested_item kkm.ver is exist - process it [09:28:57]requested_item fm.sn is exist - process it [09:28:57]wFMCommunicate request_size=4 [09:28:57]MH_SAM_APDU [09:28:57]CAPDU: 80 11 00 00 [09:28:57]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [09:28:57]Write i2c OK [09:28:57]MH_I2C_Read... [09:28:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:57]Read from MH i2c: E2 [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: E2 17 00 [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DE [09:28:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:28:57]wFMCommunicate OK [09:28:57]requested_item fd.num is exist - process it [09:28:57]SAM_PROTO_GetFieldsCounters [09:28:57]wFMCommunicate request_size=4 [09:28:57]MH_SAM_APDU [09:28:57]CAPDU: 80 13 00 00 [09:28:57]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [09:28:57]Write i2c OK [09:28:57]MH_I2C_Read... [09:28:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:57]Read from MH i2c: E2 [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: E2 62 00 [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 DF 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [09:28:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 DF 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:28:57]wFMCommunicate OK [09:28:57]SAM_PROTO_GetFieldsCounters done [09:28:57]requested_item shift.num is exist - process it [09:28:57]requested_item shift.opened is exist - process it [09:28:57]req_shift_opened [09:28:57]FM_GetShiftState [09:28:57]SAM_PROTO_GetShiftState [09:28:57]wFMCommunicate request_size=4 [09:28:57]MH_SAM_APDU [09:28:57]CAPDU: 80 13 01 00 [09:28:57]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [09:28:57]Write i2c OK [09:28:57]MH_I2C_Read... [09:28:57]Connected sock=6 [09:28:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 F4 7C 07 01 51 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 A9 9D 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DF 1D 01 00 35 04 06 00 04 5C F8 E3 B4 5F CB 86 26 6F AE C2 70 1E [09:28:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:57]Read from MH i2c: E2 [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: E2 0E 00 [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 D6 [09:28:57]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [09:28:57]wFMCommunicate OK [09:28:57]SAM_PROTO_GetShiftState done [09:28:57]FM_GetShiftState done [09:28:57]req_shift_opened done [09:28:57]requested_item shift.open_date is exist - process it [09:28:57]req_shift_open_date [09:28:57]req_shift_open_date done [09:28:57]produce_requested_data done [09:28:57]produce_requested_data return {"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":73183,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [09:28:57]process_action_free get_value [09:28:57]json_value_free [09:28:57]json_value_free done [09:28:57]process_json_proto returns [09:28:57]Send response to host [09:28:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":73183,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [09:28:57]free response buf [09:28:57]execute_script done [09:28:57]execute_script returns [09:28:57]free content buf [09:28:57]Sock 8.Close socket [09:28:57]Sock 8.Thread stoped [09:28:57]accept exits with 10 [09:28:57]New connection [09:28:57]New thread 3067493732 created [09:28:57]Thread 3067637092 joined [09:28:57]Waiting for new connection... [09:28:57] Sock 10.Parse request [09:28:57]Sock 10.Check first char [09:28:57]Sock 10.First char is OK [09:28:57]request: POST /json_proto HTTP/1.0 [09:28:57]Method: POST [09:28:57]URL: /json_proto [09:28:57]Method is POST - this is cgi request [09:28:57]url: /json_proto [09:28:57]query_string will be loaded in cgi processing [09:28:57]execute_cgi json_proto POST (null) [09:28:57]execute_cgi path=json_proto method=POST [09:28:57]POST find Content-Length [09:28:57]Host: 172.17.43.195:8080 [09:28:57]Content-Length: 331 [09:28:57]Content-Type: application/json [09:28:57] [09:28:57]POST finish read [09:28:57]Found Content-Length = 331 [09:28:57]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" ] } } [09:28:57]execute_script... [09:28: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" ] } } [09:28:58]POST & json_proto [09:28:58]process_json_proto [09:28:58]json parsed OK: [09:28:58]protocol is kg_v1.0 [09:28:58]action value=get_value [09:28:58]process_action get_value [09:28:58]cmd_get_value [09:28:58]process_action get_value done [09:28:58]requested_data is exist [09:28:58]produce_requested_data [09:28:58]requested_item fm.sale.total is exist - process it [09:28:58]SAM_PROTO_GetFMData [09:28:58]wFMCommunicate request_size=4 [09:28:58]MH_SAM_APDU [09:28:58]CAPDU: 80 13 03 00 [09:28:58]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [09:28:58]Write i2c OK [09:28:58]MH_I2C_Read... [09:28:58]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:28:58]Read from MH i2c: E2 [09:28:58]MH_I2C_Read... [09:28:58]Read from MH i2c: E2 FD 00 [09:28:58]MH_I2C_Read... [09:28:58]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 83 19 01 00 69 04 A3 00 6F 04 04 00 93 18 01 00 B1 04 05 00 23 3F 43 A5 01 70 04 05 00 B4 79 86 59 01 72 04 04 00 6F C5 BC 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 15 33 BF 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 A3 87 BA 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 4A [09:28:58]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 83 19 01 00 69 04 A3 00 6F 04 04 00 93 18 01 00 B1 04 05 00 23 3F 43 A5 01 70 04 05 00 B4 79 86 59 01 72 04 04 00 6F C5 BC 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 15 33 BF 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 A3 87 BA 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 [09:28:58]wFMCommunicate OK [09:28:58]wFMCommunicate request_size=4 [09:28:58]MH_SAM_APDU [09:28:58]CAPDU: 80 17 00 00 [09:28:58]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [09:28:58]Write i2c OK [09:28:58]MH_I2C_Read... [09:28:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:28:58]Read from MH i2c: E2 [09:28:58]MH_I2C_Read... [09:28:58]Read from MH i2c: E2 FD 00 [09:28:58]MH_I2C_Read... [09:28:58]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 14 [09:28:58]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [09:28:58]wFMCommunicate OK [09:28:58]wFMCommunicate request_size=4 [09:28:58]MH_SAM_APDU [09:28:58]CAPDU: 80 17 00 00 [09:28:58]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [09:28:58]Write i2c OK [09:28:58]MH_I2C_Read... [09:28:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:28:58]Read from MH i2c: E2 [09:28:58]MH_I2C_Read... [09:28:58]Read from MH i2c: E2 FD 00 [09:28:58]MH_I2C_Read... [09:28:59]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 AA [09:28:59]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [09:28:59]wFMCommunicate OK [09:28:59]wFMCommunicate request_size=4 [09:28:59]MH_SAM_APDU [09:28:59]CAPDU: 80 17 00 00 [09:28:59]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [09:28:59]Write i2c OK [09:28:59]MH_I2C_Read... [09:28:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:28:59]Read from MH i2c: E2 [09:28:59]MH_I2C_Read... [09:28:59]Read from MH i2c: E2 FD 00 [09:28:59]MH_I2C_Read... [09:28:59]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 0E [09:28:59]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [09:28:59]wFMCommunicate OK [09:28:59]wFMCommunicate request_size=4 [09:28:59]MH_SAM_APDU [09:28:59]CAPDU: 80 17 00 00 [09:28:59]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [09:28:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 25 F2 47 00 BE EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DF 1D 01 00 F4 03 04 00 0B 4A 24 67 B6 04 01 00 00 FB 40 D3 3E 3D DA EA 5E [09:28:59]CommunicateWithHost err = 0 [09:28:59]CheckOFDResponse [09:28:59]1017 (14) - 77093643461234 [09:28:59]1041 (16) - 0000000000874662 [09:28:59]1040 (4) - 73183 [09:28:59]1012 (4) - 01.11.2024 03:24 [09:28:59]1206 (1) - 0 [09:28:59]OFD Sender: Remove packet 73183 [09:28:59]ProducePacketName [09:28:59]name=ofd_packets/00073183 [09:28:59]NVStorageDeleteData [09:28:59]Write i2c OK [09:28:59]MH_I2C_Read... [09:28:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [09:28:59]Read from MH i2c: E2 [09:28:59]MH_I2C_Read... [09:28:59]Read from MH i2c: E2 E1 00 [09:28:59]MH_I2C_Read... [09:28:59]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [09:28:59]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:28:59]wFMCommunicate OK [09:28:59]SAM_PROTO_GetFMData done [09:28:59]requested_item fm.sale_refund.total is exist - process it [09:28:59]requested_item fm.buy.total is exist - process it [09:28:59]requested_item shift.sale.total is exist - process it [09:28:59]SAM_PROTO_GetShiftData [09:28:59]wFMCommunicate request_size=4 [09:28:59]MH_SAM_APDU [09:28:59]CAPDU: 80 13 02 00 [09:28:59]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [09:28:59]Write i2c OK [09:28:59]MH_I2C_Read... [09:28:59]OFD Sender: No OFD packet to send [09:29:00]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:29:00]Read from MH i2c: E2 [09:29:00]MH_I2C_Read... [09:29:00]Read from MH i2c: E2 FD 00 [09:29:00]MH_I2C_Read... [09:29:00]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 34 00 00 00 69 04 9B 00 6F 04 04 00 34 00 00 00 B1 04 03 00 FB C5 56 70 04 03 00 AC E3 51 72 04 03 00 4F E2 04 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 81 37 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 9D C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 0C [09:29:00]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 34 00 00 00 69 04 9B 00 6F 04 04 00 34 00 00 00 B1 04 03 00 FB C5 56 70 04 03 00 AC E3 51 72 04 03 00 4F E2 04 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 81 37 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 9D C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [09:29:00]wFMCommunicate OK [09:29:00]wFMCommunicate request_size=4 [09:29:00]MH_SAM_APDU [09:29:00]CAPDU: 80 17 00 00 [09:29:00]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [09:29:00]Write i2c OK [09:29:00]MH_I2C_Read... [09:29:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:29:00]Read from MH i2c: E2 [09:29:00]MH_I2C_Read... [09:29:00]Read from MH i2c: E2 FD 00 [09:29:00]MH_I2C_Read... [09:29:00]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BB [09:29:00]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 [09:29:00]wFMCommunicate OK [09:29:00]wFMCommunicate request_size=4 [09:29:00]MH_SAM_APDU [09:29:00]CAPDU: 80 17 00 00 [09:29:00]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [09:29:00]Write i2c OK [09:29:00]MH_I2C_Read... [09:29:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:29:00]Read from MH i2c: E2 [09:29:00]MH_I2C_Read... [09:29:00]Read from MH i2c: E2 FD 00 [09:29:00]MH_I2C_Read... [09:29:00]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 51 [09:29:00]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 [09:29:00]wFMCommunicate OK [09:29:00]wFMCommunicate request_size=4 [09:29:00]MH_SAM_APDU [09:29:00]CAPDU: 80 17 00 00 [09:29:00]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [09:29:00]Write i2c OK [09:29:00]MH_I2C_Read... [09:29:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:29:01]Read from MH i2c: E2 [09:29:01]MH_I2C_Read... [09:29:01]Read from MH i2c: E2 FD 00 [09:29:01]MH_I2C_Read... [09:29:01]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0D [09:29:01]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 [09:29:01]wFMCommunicate OK [09:29:01]wFMCommunicate request_size=4 [09:29:01]MH_SAM_APDU [09:29:01]CAPDU: 80 17 00 00 [09:29:01]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [09:29:01]Write i2c OK [09:29:01]MH_I2C_Read... [09:29:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [09:29:01]Read from MH i2c: E2 [09:29:01]MH_I2C_Read... [09:29:01]Read from MH i2c: E2 CB 00 [09:29:01]MH_I2C_Read... [09:29:01]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [09:29:01]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 [09:29:01]wFMCommunicate OK [09:29:01]SAM_PROTO_GetShiftData done [09:29:01]requested_item shift.sale.total_cash is exist - process it [09:29:01]requested_item shift.sale_refund.total is exist - process it [09:29:01]requested_item shift.sale_refund.total_cash is exist - process it [09:29:01]requested_item shift.buy.total is exist - process it [09:29:01]requested_item shift.buy.total_cash is exist - process it [09:29:01]produce_requested_data done [09:29:01]produce_requested_data return {"fm.sale.total":70676150.11,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":56867.79,"shift.sale.total_cash":53667.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} [09:29:01]process_action_free get_value [09:29:01]json_value_free [09:29:01]json_value_free done [09:29:01]process_json_proto returns [09:29:01]Send response to host [09:29:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70676150.11,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":56867.79,"shift.sale.total_cash":53667.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}}} [09:29:01]free response buf [09:29:01]execute_script done [09:29:01]execute_script returns [09:29:01]free content buf [09:29:01]Sock 10.Close socket [09:29:01]Sock 10.Thread stoped [09:29:01]accept exits with 8 [09:29:01]New connection [09:29:01]New thread 3067637092 created [09:29:01]Thread 3067493732 joined [09:29:01]Waiting for new connection... [09:29:01] Sock 8.Parse request [09:29:01]Sock 8.Check first char [09:29:01]Sock 8.First char is OK [09:29:01]request: POST /json_proto HTTP/1.0 [09:29:01]Method: POST [09:29:01]URL: /json_proto [09:29:01]Method is POST - this is cgi request [09:29:01]url: /json_proto [09:29:01]query_string will be loaded in cgi processing [09:29:01]execute_cgi json_proto POST (null) [09:29:01]execute_cgi path=json_proto method=POST [09:29:01]POST find Content-Length [09:29:01]Host: 172.17.43.195:8080 [09:29:01]Content-Length: 792 [09:29:01]Content-Type: application/json [09:29:01] [09:29:01]POST finish read [09:29:01]Found Content-Length = 792 [09:29:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:01]execute_script... [09:29: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)952782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:01]POST & json_proto [09:29:01]process_json_proto [09:29:01]json parsed OK: [09:29:01]protocol is kg_v1.0 [09:29:01]action value=close_receipt [09:29:01]process_action close_receipt [09:29:01]cmd_close_receipt [09:29:01]MH_GetDate [09:29:01]Write to MH i2c: F0 00 00 1D 00 0C [09:29:01]Write i2c OK [09:29:01]MH_I2C_Read... [09:29:01]Read from MH i2c: F0 [09:29:01]MH_I2C_Read... [09:29:01]Read from MH i2c: F0 09 00 [09:29:01]MH_I2C_Read... [09:29:01]Read from MH i2c: F0 09 00 1D 00 00 5D 9F 24 67 74 2C AD 66 4F [09:29:01]GetLastDocTimeStamp 1730452905 [09:29:01]current date 1730453341 [09:29:01]FM_GetShiftState [09:29:01]SAM_PROTO_GetShiftState [09:29:01]wFMCommunicate request_size=4 [09:29:01]MH_SAM_APDU [09:29:01]CAPDU: 80 13 01 00 [09:29:01]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [09:29:01]Write i2c OK [09:29:01]MH_I2C_Read... [09:29:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:01]Read from MH i2c: E2 [09:29:01]MH_I2C_Read... [09:29:01]Read from MH i2c: E2 0E 00 [09:29:01]MH_I2C_Read... [09:29:01]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 E2 [09:29:01]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [09:29:01]wFMCommunicate OK [09:29:01]SAM_PROTO_GetShiftState done [09:29:01]FM_GetShiftState done [09:29:01]opened in 1730419605 [09:29:01]opened+sec_in_day 1730506005 [09:29:01]quantity*price = 0 [09:29:01]sum+1 = 1 [09:29:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 53 01.11.2024 09:29 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 73184 ФПД: 238584598017430 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T092901&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73184&fm=238584598017430&tin=02508201610067®Number=0000000000091644&sum=0 [09:29:02]StoreToDocumentArchive [09:29:02]shift 558 fd 73184 [09:29:02]save to /storage/0558/doc_00073184 [09:29:02]save last doc name /storage/0558/doc_00073184 to /storage/kkm_last_doc_name [09:29:02]save OK [09:29:02]Clear old archive folders... [09:29:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:29:02]tlvbuf is 005A0C70 [09:29:02]SAM_PROTO_ClearQueue [09:29:02]wFMCommunicate request_size=4 [09:29:02]MH_SAM_APDU [09:29:02]CAPDU: 80 09 00 00 [09:29:02]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [09:29:02]Write i2c OK [09:29:02]MH_I2C_Read... [09:29:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:29:02]Read from MH i2c: E2 [09:29:02]MH_I2C_Read... [09:29:02]Read from MH i2c: E2 03 00 [09:29:02]MH_I2C_Read... [09:29:02]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [09:29:02]RAPDU: 90 00 [09:29:02]wFMCommunicate OK [09:29:02]SAM_PROTO_ClearQueue done [09:29:02]KKMCreateOFDPacket [09:29:02]OFDProtocolAddRootSTLVToBuf [09:29:02]FM_MakeSignedData [09:29:02]FM_MakeSignedData [09:29:02]SAM_PROTO_SignData [09:29:02]wFMCommunicate request_size=4 [09:29:02]MH_SAM_APDU [09:29:02]CAPDU: 80 0D 01 02 [09:29:02]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [09:29:02]Write i2c OK [09:29:02]MH_I2C_Read... [09:29:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:29:02]Read from MH i2c: E2 [09:29:02]MH_I2C_Read... [09:29:02]Read from MH i2c: E2 03 00 [09:29:02]MH_I2C_Read... [09:29:02]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [09:29:02]RAPDU: 90 00 [09:29:02]wFMCommunicate OK [09:29:02]wFMCommunicate request_size=255 [09:29:02]MH_SAM_APDU [09:29: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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 5D 9F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E0 1D 01 00 35 04 06 00 D8 [09:29:03]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 5D 9F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E0 1D 01 00 35 04 06 00 D8 00 00 A8 [09:29:03]Write i2c OK [09:29:03]MH_I2C_Read... [09:29:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:03]Read from MH i2c: E2 [09:29:03]MH_I2C_Read... [09:29:03]Read from MH i2c: E2 03 00 [09:29:03]MH_I2C_Read... [09:29:03]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [09:29:03]RAPDU: 90 00 [09:29:03]wFMCommunicate OK [09:29:03]wFMCommunicate request_size=10 [09:29:03]MH_SAM_APDU [09:29:03]CAPDU: 80 0D 02 02 05 FD CE 36 B5 96 [09:29:03]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 FD CE 36 B5 96 00 00 FE [09:29:03]Write i2c OK [09:29:03]MH_I2C_Read... [09:29:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:03]Read from MH i2c: E2 [09:29:03]MH_I2C_Read... [09:29:03]Read from MH i2c: E2 03 00 [09:29:03]MH_I2C_Read... [09:29:03]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [09:29:03]RAPDU: 90 00 [09:29:03]wFMCommunicate OK [09:29:03]wFMCommunicate request_size=4 [09:29:03]MH_SAM_APDU [09:29:03]CAPDU: 80 0D 03 02 [09:29:03]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [09:29:03]Write i2c OK [09:29:03]MH_I2C_Read... [09:29:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:29:03]Read from MH i2c: E2 [09:29:03]MH_I2C_Read... [09:29:03]Read from MH i2c: E2 0B 00 [09:29:03]MH_I2C_Read... [09:29:03]Read from MH i2c: E2 0B 00 2F 00 00 4A 24 1B 59 32 07 2E 06 90 00 FA [09:29:03]RAPDU: 4A 24 1B 59 32 07 2E 06 90 00 [09:29:03]wFMCommunicate OK [09:29:03]SAM_PROTO_SignData done [09:29:03]FM_MakeSignedData done [09:29:03]CreateOFDProtocolMessage [09:29:03]wFMCommunicate request_size=4 [09:29:03]MH_SAM_APDU [09:29:03]CAPDU: 80 11 00 00 [09:29:03]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [09:29:03]Write i2c OK [09:29:03]MH_I2C_Read... [09:29:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:03]Read from MH i2c: E2 [09:29:03]MH_I2C_Read... [09:29:03]Read from MH i2c: E2 17 00 [09:29:03]MH_I2C_Read... [09:29:03]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FE [09:29:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:29:03]wFMCommunicate OK [09:29:03]CreateOFDProtocolMessage done [09:29:03]OFDSenderStorePacket 73184 [09:29:03]StoreOFDPacket docnum=73184 [09:29:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 E5 9D 07 01 C7 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 5D 9F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E0 1D 01 00 35 04 06 00 D8 FD CE 36 B5 96 4A 24 1B 59 32 07 2E 06 [09:29:03]CheckFolder [09:29:03]dirname=/storage/ofd_packets [09:29:03]CheckFolder done [09:29:03]ProducePacketName [09:29:03]name=ofd_packets/00073184 [09:29:03]NVStorageSaveData ofd_packets/00073184 [09:29:03]File name is /storage/ofd_packets/00073184 [09:29:03]Write 301 bytes [09:29:03]NVStorageSaveData done [09:29:03]OFDSenderStorePacket done [09:29:03]KKMCreateOFDPacket done [09:29:03]NVStorageSaveData kkm_last_timestamp [09:29:03]File name is /storage/kkm_last_timestamp [09:29:03]Write 4 bytes [09:29:03]NVStorageSaveData done [09:29:03]ExternCall_PrintAddStr [09:29:03]wPrintStart [09:29:03]Write to MH i2c: 01 00 00 31 00 31 [09:29:03]Write i2c OK [09:29:03]MH_I2C_Read... [09:29:03]Read from MH i2c: 01 [09:29:03]MH_I2C_Read... [09:29:03]Read from MH i2c: 01 07 00 [09:29:03]MH_I2C_Read... [09:29:03]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [09:29:03]RasterBufferAndPrint [09:29:03]line Счет N : (1)952782 [09:29:03]line ИНН: 02508201610067 [09:29:03]line Контрольно-Кассовый Чек [09:29:03]line ПРОДАЖА [09:29:03]line ТРК (МРК, ГНК) : 53 [09:29:03]line Товар: 2710124130 [09:29:03]line Аи-92-К-5 [09:29:03]line 10.000 * 0.00 [09:29:03]line = 0.00 [09:29:03]line НДС 12% НСП 1% [09:29:03]line > о реализуемом товаре [09:29:03]line ИТОГО: 0.00 [09:29:03]line НСП 1% : 0.00 [09:29:03]line НДС 12% : 0.00 [09:29:03]line Наличными: 0.00 [09:29:03]line Безнал.: 0.00 [09:29:03]line Место: АЗС № 113 "Партнер Нефть" [09:29:03]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:29:03]line СНО: Общий режим [09:29:03]line Чек 53 01.11.2024 09:29 [09:29:03]line Смена: 558 ФФД: 1.0 [09:29:03]line ЗНМ: 0300000087 [09:29:03]line РНМ: 0000000000091644 [09:29:03]line Версия ККМ: 001 [09:29:03]line Талоны: Топливная Карта [09:29:03]line 03047 [09:29:03]line ФМ: 0000000000874662 [09:29:03]line ФД: 73184 [09:29:03]line ФПД: 238584598017430 [09:29:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T092901&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73184&fm=238584598017430&tin=02508201610067®Number=0000000000091644&sum=0 [09:29:03]written 0, free lines is 4095 [09:29:04]OFD Sender: Processing packet 73184 [packets to send 282, broken 281] [09:29:04]ProducePacketName [09:29:04]name=ofd_packets/00073184 [09:29:04]OFD Sender: To server: pG, [09:29:04]CommunicateWithHost lk.salyk.kg:30040 [09:29:04]ConnectInit lk.salyk.kg [09:29:04]Write to MH i2c: 01 00 00 5B 00 5B [09:29:04]Write i2c OK [09:29:04]MH_I2C_Read... [09:29:04]Read from MH i2c: 01 [09:29:04]MH_I2C_Read... [09:29:04]Read from MH i2c: 01 07 00 [09:29:04]MH_I2C_Read... [09:29:04]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 E9 0C 57 [09:29:04]RasterBufferAndPrint [09:29:04]line [09:29:04]line [09:29:04]line [09:29:04]line [09:29:04]line [09:29:04]written 0, free lines is 3330 [09:29:04]MH_Cut [09:29:04]Write to MH i2c: D1 01 00 62 00 01 34 [09:29:04]Write i2c OK [09:29:04]MH_I2C_Read... [09:29:04]Read from MH i2c: D1 [09:29:04]MH_I2C_Read... [09:29:04]Read from MH i2c: D1 01 00 [09:29:04]MH_I2C_Read... [09:29:04]Read from MH i2c: D1 01 00 62 00 00 33 [09:29:04]Write to MH i2c: 01 00 00 63 00 63 [09:29:04]Write i2c OK [09:29:04]MH_I2C_Read... [09:29:05]*** Cut start [09:29:05]*** Partial cut [09:29:05]*** CUTSNS_PIN = 1 [09:29:05]*** CUTSNS_PIN = 0 [09:29:05]*** Brake cut motor [09:29:05]Read from MH i2c: 01 *** Stop cut motor [09:29:05] [09:29:05]*** Cut end [09:29:05]MH_I2C_Read... [09:29:05]Read from MH i2c: 01 07 00 [09:29:05]MH_I2C_Read... [09:29:05]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [09:29:05]process_action close_receipt done [09:29:05]requested_data is exist [09:29:05]produce_requested_data [09:29:05]requested_item fm.sn is exist - process it [09:29:05]wFMCommunicate request_size=4 [09:29:05]MH_SAM_APDU [09:29:05]CAPDU: 80 11 00 00 [09:29:05]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [09:29:05]Write i2c OK [09:29:05]MH_I2C_Read... [09:29:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:05]Read from MH i2c: E2 [09:29:05]MH_I2C_Read... [09:29:05]Read from MH i2c: E2 17 00 [09:29:05]MH_I2C_Read... [09:29:05]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 32 [09:29:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:29:05]wFMCommunicate OK [09:29:05]requested_item fd.num is exist - process it [09:29:05]SAM_PROTO_GetFieldsCounters [09:29:05]wFMCommunicate request_size=4 [09:29:05]MH_SAM_APDU [09:29:05]CAPDU: 80 13 00 00 [09:29:05]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [09:29:05]Write i2c OK [09:29:05]MH_I2C_Read... [09:29:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:29:06]Read from MH i2c: E2 [09:29:06]MH_I2C_Read... [09:29:06]Read from MH i2c: E2 62 00 [09:29:06]MH_I2C_Read... [09:29:06]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 recv_with_timeout no data received [09:29:06]39 31 36 34 34 10 04 04 00 E0 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [09:29:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 E0 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:29:06]wFMCommunicate OK [09:29:06]SAM_PROTO_GetFieldsCounters done [09:29:06]requested_item shift.num is exist - process it [09:29:06]requested_item shift.opened is exist - process it [09:29:06]req_shift_opened [09:29:06]FM_GetShiftState [09:29:06]SAM_PROTO_GetShiftState [09:29:06]wFMCommunicate request_size=4 [09:29:06]MH_SAM_APDU [09:29:06]CAPDU: 80 13 01 00 [09:29:06]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [09:29:06]Write i2c OK [09:29:06]MH_I2C_Read... [09:29:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:06]Read from MH i2c: E2 [09:29:06]MH_I2C_Read... [09:29:06]Read from MH i2c: E2 0E 00 [09:29:06]MH_I2C_Read... [09:29:06]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 2A [09:29:06]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [09:29:06]wFMCommunicate OK [09:29:06]SAM_PROTO_GetShiftState done [09:29:06]FM_GetShiftState done [09:29:06]req_shift_opened done [09:29:06]requested_item shift.open_date is exist - process it [09:29:06]req_shift_open_date [09:29:06]req_shift_open_date done [09:29:06]produce_requested_data done [09:29:06]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73184,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [09:29:06]process_action_free close_receipt [09:29:06]json_value_free [09:29:06]json_value_free done [09:29:06]process_json_proto returns [09:29:06]Send response to host [09:29:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73184,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [09:29:06]free response buf [09:29:06]execute_script done [09:29:06]execute_script returns [09:29:06]free content buf [09:29:06]Sock 8.Close socket [09:29:06]Sock 8.Thread stoped [09:29:09]ConnectInit Can't take IP for lk.salyk.kg [09:29:09]CommunicateWithHost connect error [09:29:09]CommunicateWithHost err = -1 [09:29:09]OFD Sender: Server communicate error [09:29:14]OFD Sender: Processing packet 73184 [packets to send 282, broken 281] [09:29:14]ProducePacketName [09:29:14]name=ofd_packets/00073184 [09:29:14]OFD Sender: To server: pG, [09:29:14]CommunicateWithHost lk.salyk.kg:30040 [09:29:14]ConnectInit lk.salyk.kg [09:29:19]recv_with_timeout no data received [09:29:29]Connected sock=9 [09:29:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 E5 9D 07 01 C7 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 5D 9F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E0 1D 01 00 35 04 06 00 D8 FD CE 36 B5 96 4A 24 1B 59 32 07 2E 06 [09:29:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 42 8B 47 00 B6 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 34 36 36 32 10 04 04 00 E0 1D 01 00 F4 03 04 00 2E 4A 24 67 B6 04 01 00 00 6E 50 A9 8E 42 34 5F B0 [09:29:33]CommunicateWithHost err = 0 [09:29:33]CheckOFDResponse [09:29:33]1017 (14) - 77093643461234 [09:29:33]1041 (16) - 0000000000874662 [09:29:33]1040 (4) - 73184 [09:29:33]1012 (4) - 01.11.2024 03:25 [09:29:33]1206 (1) - 0 [09:29:33]OFD Sender: Remove packet 73184 [09:29:33]ProducePacketName [09:29:33]name=ofd_packets/00073184 [09:29:33]NVStorageDeleteData [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:09]recv_with_timeout no data received [09:30:14]OFD Sender: No OFD packet to send [09:30:19]OFD Sender: No OFD packet to send [09:30:21]recv_with_timeout no data received [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:18]recv_with_timeout no data received [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:46]recv_with_timeout no data received [09:31:49]OFD Sender: No OFD packet to send [09:31:51]accept exits with 10 [09:31:51]New connection [09:31:51]New thread 3067493732 created [09:31:51]Thread 3067637092 joined [09:31:51]Waiting for new connection... [09:31:51] Sock 10.Parse request [09:31:51]Sock 10.Check first char [09:31:51]Sock 10.First char is OK [09:31:51]request: POST /json_proto HTTP/1.0 [09:31:51]Method: POST [09:31:51]URL: /json_proto [09:31:51]Method is POST - this is cgi request [09:31:51]url: /json_proto [09:31:51]query_string will be loaded in cgi processing [09:31:51]execute_cgi json_proto POST (null) [09:31:51]execute_cgi path=json_proto method=POST [09:31:51]POST find Content-Length [09:31:51]Host: 172.17.43.195:8080 [09:31:51]Content-Length: 792 [09:31:51]Content-Type: application/json [09:31:51] [09:31:51]POST finish read [09:31:51]Found Content-Length = 792 [09:31:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:51]execute_script... [09:31:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:51]POST & json_proto [09:31:51]process_json_proto [09:31:51]json parsed OK: [09:31:51]protocol is kg_v1.0 [09:31:51]action value=close_receipt [09:31:51]process_action close_receipt [09:31:51]cmd_close_receipt [09:31:51]MH_GetDate [09:31:51]Write to MH i2c: F0 00 00 67 00 56 [09:31:51]Write i2c OK [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: F0 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: F0 09 00 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: F0 09 00 67 00 00 07 A0 24 67 74 2C AD 66 44 [09:31:51]GetLastDocTimeStamp 1730453341 [09:31:51]current date 1730453511 [09:31:51]FM_GetShiftState [09:31:51]SAM_PROTO_GetShiftState [09:31:51]wFMCommunicate request_size=4 [09:31:51]MH_SAM_APDU [09:31:51]CAPDU: 80 13 01 00 [09:31:51]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [09:31:51]Write i2c OK [09:31:51]MH_I2C_Read... [09:31:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:51]Read from MH i2c: E2 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: E2 0E 00 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 2C [09:31:51]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [09:31:51]wFMCommunicate OK [09:31:51]SAM_PROTO_GetShiftState done [09:31:51]FM_GetShiftState done [09:31:51]opened in 1730419605 [09:31:51]opened+sec_in_day 1730506005 [09:31:51]quantity*price = 0 [09:31:51]sum+1 = 1 [09:31:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 54 01.11.2024 09:31 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 73185 ФПД: 196678097272976 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T093151&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73185&fm=196678097272976&tin=02508201610067®Number=0000000000091644&sum=0 [09:31:52]StoreToDocumentArchive [09:31:52]shift 558 fd 73185 [09:31:52]save to /storage/0558/doc_00073185 [09:31:52]save last doc name /storage/0558/doc_00073185 to /storage/kkm_last_doc_name [09:31:52]save OK [09:31:52]Clear old archive folders... [09:31:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:31:52]tlvbuf is 005AC4C0 [09:31:52]SAM_PROTO_ClearQueue [09:31:52]wFMCommunicate request_size=4 [09:31:52]MH_SAM_APDU [09:31:52]CAPDU: 80 09 00 00 [09:31:52]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [09:31:52]Write i2c OK [09:31:52]MH_I2C_Read... [09:31:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:31:52]Read from MH i2c: E2 [09:31:52]MH_I2C_Read... [09:31:52]Read from MH i2c: E2 03 00 [09:31:52]MH_I2C_Read... [09:31:52]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [09:31:52]RAPDU: 90 00 [09:31:52]wFMCommunicate OK [09:31:52]SAM_PROTO_ClearQueue done [09:31:52]KKMCreateOFDPacket [09:31:52]OFDProtocolAddRootSTLVToBuf [09:31:52]FM_MakeSignedData [09:31:52]FM_MakeSignedData [09:31:52]SAM_PROTO_SignData [09:31:52]wFMCommunicate request_size=4 [09:31:52]MH_SAM_APDU [09:31:52]CAPDU: 80 0D 01 02 [09:31:52]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [09:31:52]Write i2c OK [09:31:52]MH_I2C_Read... [09:31:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:31:52]Read from MH i2c: E2 [09:31:52]MH_I2C_Read... [09:31:52]Read from MH i2c: E2 03 00 [09:31:52]MH_I2C_Read... [09:31:52]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [09:31:52]RAPDU: 90 00 [09:31:52]wFMCommunicate OK [09:31:52]wFMCommunicate request_size=255 [09:31:52]MH_SAM_APDU [09:31:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 07 A0 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E1 1D 01 00 35 04 06 00 B2 [09:31:52]Write to MH i2c: E2 02 01 77 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 07 A0 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E1 1D 01 00 35 04 06 00 B2 00 00 79 [09:31:52]Write i2c OK [09:31:52]MH_I2C_Read... [09:31:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:52]Read from MH i2c: E2 [09:31:52]MH_I2C_Read... [09:31:52]Read from MH i2c: E2 03 00 [09:31:52]MH_I2C_Read... [09:31:52]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [09:31:52]RAPDU: 90 00 [09:31:52]wFMCommunicate OK [09:31:52]wFMCommunicate request_size=10 [09:31:52]MH_SAM_APDU [09:31:52]CAPDU: 80 0D 02 02 05 E0 B0 1F 80 90 [09:31:52]Write to MH i2c: E2 0D 00 78 00 80 0D 02 02 05 00 E0 B0 1F 80 90 00 00 BB [09:31:52]Write i2c OK [09:31:52]MH_I2C_Read... [09:31:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:52]Read from MH i2c: E2 [09:31:52]MH_I2C_Read... [09:31:52]Read from MH i2c: E2 03 00 [09:31:52]MH_I2C_Read... [09:31:52]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [09:31:52]RAPDU: 90 00 [09:31:52]wFMCommunicate OK [09:31:52]wFMCommunicate request_size=4 [09:31:52]MH_SAM_APDU [09:31:52]CAPDU: 80 0D 03 02 [09:31:52]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [09:31:52]Write i2c OK [09:31:52]MH_I2C_Read... [09:31:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:31:52]Read from MH i2c: E2 [09:31:52]MH_I2C_Read... [09:31:52]Read from MH i2c: E2 0B 00 [09:31:52]MH_I2C_Read... [09:31:52]Read from MH i2c: E2 0B 00 79 00 00 0D DC 7E 8D DE 4B D2 36 90 00 1A [09:31:52]RAPDU: 0D DC 7E 8D DE 4B D2 36 90 00 [09:31:52]wFMCommunicate OK [09:31:52]SAM_PROTO_SignData done [09:31:52]FM_MakeSignedData done [09:31:52]CreateOFDProtocolMessage [09:31:52]wFMCommunicate request_size=4 [09:31:52]MH_SAM_APDU [09:31:52]CAPDU: 80 11 00 00 [09:31:52]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [09:31:52]Write i2c OK [09:31:52]MH_I2C_Read... [09:31:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:52]Read from MH i2c: E2 [09:31:52]MH_I2C_Read... [09:31:52]Read from MH i2c: E2 17 00 [09:31:52]MH_I2C_Read... [09:31:52]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 48 [09:31:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:31:52]wFMCommunicate OK [09:31:52]CreateOFDProtocolMessage done [09:31:52]OFDSenderStorePacket 73185 [09:31:52]StoreOFDPacket docnum=73185 [09:31:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 90 84 07 01 F7 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 07 A0 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E1 1D 01 00 35 04 06 00 B2 E0 B0 1F 80 90 0D DC 7E 8D DE 4B D2 36 [09:31:52]CheckFolder [09:31:52]dirname=/storage/ofd_packets [09:31:52]CheckFolder done [09:31:52]ProducePacketName [09:31:52]name=ofd_packets/00073185 [09:31:52]NVStorageSaveData ofd_packets/00073185 [09:31:52]File name is /storage/ofd_packets/00073185 [09:31:52]Write 301 bytes [09:31:52]NVStorageSaveData done [09:31:52]OFDSenderStorePacket done [09:31:52]KKMCreateOFDPacket done [09:31:52]NVStorageSaveData kkm_last_timestamp [09:31:52]File name is /storage/kkm_last_timestamp [09:31:52]Write 4 bytes [09:31:52]NVStorageSaveData done [09:31:52]ExternCall_PrintAddStr [09:31:52]wPrintStart [09:31:52]Write to MH i2c: 01 00 00 7B 00 7B [09:31:52]Write i2c OK [09:31:52]MH_I2C_Read... [09:31:52]Read from MH i2c: 01 [09:31:52]MH_I2C_Read... [09:31:52]Read from MH i2c: 01 07 00 [09:31:52]MH_I2C_Read... [09:31:52]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [09:31:52]RasterBufferAndPrint [09:31:52]line Счет N : (1)952784 [09:31:52]line ИНН: 02508201610067 [09:31:52]line Контрольно-Кассовый Чек [09:31:52]line ПРОДАЖА [09:31:52]line ТРК (МРК, ГНК) : 63 [09:31:52]line Товар: 2710124130 [09:31:52]line Аи-92-К-5 [09:31:52]line 10.000 * 0.00 [09:31:52]line = 0.00 [09:31:52]line НДС 12% НСП 1% [09:31:52]line > о реализуемом товаре [09:31:52]line ИТОГО: 0.00 [09:31:52]line НСП 1% : 0.00 [09:31:52]line НДС 12% : 0.00 [09:31:52]line Наличными: 0.00 [09:31:52]line Безнал.: 0.00 [09:31:52]line Место: АЗС № 113 "Партнер Нефть" [09:31:52]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:31:52]line СНО: Общий режим [09:31:52]line Чек 54 01.11.2024 09:31 [09:31:52]line Смена: 558 ФФД: 1.0 [09:31:52]line ЗНМ: 0300000087 [09:31:52]line РНМ: 0000000000091644 [09:31:52]line Версия ККМ: 001 [09:31:52]line Талоны: Топливная Карта [09:31:52]line 03047 [09:31:52]line ФМ: 0000000000874662 [09:31:52]line ФД: 73185 [09:31:52]line ФПД: 196678097272976 [09:31:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T093151&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73185&fm=196678097272976&tin=02508201610067®Number=0000000000091644&sum=0 [09:31:53]OFD Sender: Processing packet 73185 [packets to send 282, broken 281] [09:31:53]ProducePacketName [09:31:53]name=ofd_packets/00073185 [09:31:53]OFD Sender: To server: pG, [09:31:53]CommunicateWithHost lk.salyk.kg:30040 [09:31:53]ConnectInit lk.salyk.kg [09:31:53]written 0, free lines is 4095 [09:31:53]Write to MH i2c: 01 00 00 A5 00 A5 [09:31:53]Write i2c OK [09:31:53]MH_I2C_Read... [09:31:53]Read from MH i2c: 01 [09:31:53]MH_I2C_Read... [09:31:53]Read from MH i2c: 01 07 00 [09:31:53]MH_I2C_Read... [09:31:53]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 E2 0C 9A [09:31:53]RasterBufferAndPrint [09:31:53]line [09:31:53]line [09:31:53]line [09:31:53]line [09:31:53]line [09:31:53]written 0, free lines is 3304 [09:31:53]MH_Cut [09:31:53]Write to MH i2c: D1 01 00 AC 00 01 7E [09:31:53]Write i2c OK [09:31:53]MH_I2C_Read... [09:31:53]Read from MH i2c: D1 [09:31:53]MH_I2C_Read... [09:31:53]Read from MH i2c: D1 01 00 [09:31:53]MH_I2C_Read... [09:31:53]Read from MH i2c: D1 01 00 AC 00 00 7D [09:31:53]Write to MH i2c: 01 00 00 AD 00 AD [09:31:53]Write i2c OK [09:31:53]MH_I2C_Read... [09:31:54]*** Cut start [09:31:54]*** Partial cut [09:31:54]*** CUTSNS_PIN = 1 [09:31:54]*** CUTSNS_PIN = 0 [09:31:54]*** Brake cut motor [09:31:55]Read from MH i2c: 01 [09:31:55]MH_I2C_Read... [09:31:55]*** Stop cut motor [09:31:55]*** Cut end [09:31:55]Read from MH i2c: 01 07 00 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [09:31:55]process_action close_receipt done [09:31:55]requested_data is exist [09:31:55]produce_requested_data [09:31:55]requested_item fm.sn is exist - process it [09:31:55]wFMCommunicate request_size=4 [09:31:55]MH_SAM_APDU [09:31:55]CAPDU: 80 11 00 00 [09:31:55]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [09:31:55]Write i2c OK [09:31:55]MH_I2C_Read... [09:31:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:55]Read from MH i2c: E2 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: E2 17 00 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7C [09:31:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:31:55]wFMCommunicate OK [09:31:55]requested_item fd.num is exist - process it [09:31:55]SAM_PROTO_GetFieldsCounters [09:31:55]wFMCommunicate request_size=4 [09:31:55]MH_SAM_APDU [09:31:55]CAPDU: 80 13 00 00 [09:31:55]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [09:31:55]Write i2c OK [09:31:55]MH_I2C_Read... [09:31:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:55]Read from MH i2c: E2 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: E2 62 00 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: E2 62 00 AF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 E1 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [09:31:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 E1 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:31:55]wFMCommunicate OK [09:31:55]SAM_PROTO_GetFieldsCounters done [09:31:55]requested_item shift.num is exist - process it [09:31:55]requested_item shift.opened is exist - process it [09:31:55]req_shift_opened [09:31:55]FM_GetShiftState [09:31:55]SAM_PROTO_GetShiftState [09:31:55]wFMCommunicate request_size=4 [09:31:55]MH_SAM_APDU [09:31:55]CAPDU: 80 13 01 00 [09:31:55]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [09:31:55]Write i2c OK [09:31:55]MH_I2C_Read... [09:31:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:55]Read from MH i2c: E2 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: E2 0E 00 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 74 [09:31:55]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [09:31:55]wFMCommunicate OK [09:31:55]SAM_PROTO_GetShiftState done [09:31:55]FM_GetShiftState done [09:31:55]req_shift_opened done [09:31:55]requested_item shift.open_date is exist - process it [09:31:55]req_shift_open_date [09:31:55]req_shift_open_date done [09:31:55]produce_requested_data done [09:31:55]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73185,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [09:31:55]process_action_free close_receipt [09:31:55]json_value_free [09:31:55]json_value_free done [09:31:55]process_json_proto returns [09:31:55]Send response to host [09:31:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73185,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [09:31:55]free response buf [09:31:55]execute_script done [09:31:55]execute_script returns [09:31:55]free content buf [09:31:55]Sock 10.Close socket [09:31:55]Sock 10.Thread stoped [09:31:57]recv_with_timeout no data received [09:31:58]ConnectInit Can't take IP for lk.salyk.kg [09:31:58]CommunicateWithHost connect error [09:31:58]CommunicateWithHost err = -1 [09:31:58]OFD Sender: Server communicate error [09:32:03]OFD Sender: Processing packet 73185 [packets to send 282, broken 281] [09:32:03]ProducePacketName [09:32:03]name=ofd_packets/00073185 [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:08]ConnectInit Can't take IP for lk.salyk.kg [09:32:08]CommunicateWithHost connect error [09:32:08]CommunicateWithHost err = -1 [09:32:08]OFD Sender: Server communicate error [09:32:13]OFD Sender: Processing packet 73185 [packets to send 282, broken 281] [09:32:13]ProducePacketName [09:32:13]name=ofd_packets/00073185 [09:32:13]OFD Sender: To server: pG, [09:32:13]CommunicateWithHost lk.salyk.kg:30040 [09:32:13]ConnectInit lk.salyk.kg [09:32:18]ConnectInit Can't take IP for lk.salyk.kg [09:32:18]CommunicateWithHost connect error [09:32:18]CommunicateWithHost err = -1 [09:32:18]OFD Sender: Server communicate error [09:32:23]OFD Sender: Processing packet 73185 [packets to send 282, broken 281] [09:32:23]ProducePacketName [09:32:23]name=ofd_packets/00073185 [09:32:23]OFD Sender: To server: pG, [09:32:23]CommunicateWithHost lk.salyk.kg:30040 [09:32:23]ConnectInit lk.salyk.kg [09:32:24]recv_with_timeout no data received [09:32:27]Connected sock=10 [09:32:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 90 84 07 01 F7 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 07 A0 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E1 1D 01 00 35 04 06 00 B2 E0 B0 1F 80 90 0D DC 7E 8D DE 4B D2 36 [09:32:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 D5 3E 47 00 55 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E1 1D 01 00 F4 03 04 00 DD 4A 24 67 B6 04 01 00 00 38 C7 35 89 B4 D3 20 E3 [09:32:28]CommunicateWithHost err = 0 [09:32:28]CheckOFDResponse [09:32:28]1017 (14) - 77093643461234 [09:32:28]1041 (16) - 0000000000874662 [09:32:28]1040 (4) - 73185 [09:32:28]1012 (4) - 01.11.2024 03:28 [09:32:28]1206 (1) - 0 [09:32:28]OFD Sender: Remove packet 73185 [09:32:28]ProducePacketName [09:32:28]name=ofd_packets/00073185 [09:32:28]NVStorageDeleteData [09:32:29]OFD Sender: No OFD packet to send [09:32:34]OFD Sender: No OFD packet to send [09:32:39]OFD Sender: No OFD packet to send [09:32:44]OFD Sender: No OFD packet to send [09:32:49]OFD Sender: No OFD packet to send [09:32:54]OFD Sender: No OFD packet to send [09:32:59]OFD Sender: No OFD packet to send [09:33:04]OFD Sender: No OFD packet to send [09:33:09]OFD Sender: No OFD packet to send [09:33:14]OFD Sender: No OFD packet to send [09:33:19]OFD Sender: No OFD packet to send [09:33:24]OFD Sender: No OFD packet to send [09:33:29]OFD Sender: No OFD packet to send [09:33:34]OFD Sender: No OFD packet to send [09:33:38]recv_with_timeout no data received [09:33:39]OFD Sender: No OFD packet to send [09:33:44]OFD Sender: No OFD packet to send [09:33:49]OFD Sender: No OFD packet to send [09:33:54]OFD Sender: No OFD packet to send [09:33:59]OFD Sender: No OFD packet to send [09:34:04]OFD Sender: No OFD packet to send [09:34:07]recv_with_timeout no data received [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:47]accept exits with 8 [09:35:47]New connection [09:35:47]New thread 3067637092 created [09:35:47]Thread 3067493732 joined [09:35:47]Waiting for new connection... [09:35:47] Sock 8.Parse request [09:35:47]Sock 8.Check first char [09:35:47]Sock 8.First char is OK [09:35:47]request: POST /json_proto HTTP/1.0 [09:35:47]Method: POST [09:35:47]URL: /json_proto [09:35:47]Method is POST - this is cgi request [09:35:47]url: /json_proto [09:35:47]query_string will be loaded in cgi processing [09:35:47]execute_cgi json_proto POST (null) [09:35:47]execute_cgi path=json_proto method=POST [09:35:47]POST find Content-Length [09:35:47]Host: 172.17.43.195:8080 [09:35:47]Content-Length: 792 [09:35:47]Content-Type: application/json [09:35:47] [09:35:47]POST finish read [09:35:47]Found Content-Length = 792 [09:35:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:47]execute_script... [09:35: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)952785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:47]POST & json_proto [09:35:47]process_json_proto [09:35:47]json parsed OK: [09:35:47]protocol is kg_v1.0 [09:35:47]action value=close_receipt [09:35:47]process_action close_receipt [09:35:47]cmd_close_receipt [09:35:47]MH_GetDate [09:35:47]Write to MH i2c: F0 00 00 B1 00 A0 [09:35:47]Write i2c OK [09:35:47]MH_I2C_Read... [09:35:47]Read from MH i2c: F0 [09:35:47]MH_I2C_Read... [09:35:47]Read from MH i2c: F0 09 00 [09:35:47]MH_I2C_Read... [09:35:47]Read from MH i2c: F0 09 00 B1 00 00 F3 A0 24 67 74 2C AD 66 7A [09:35:47]GetLastDocTimeStamp 1730453511 [09:35:47]current date 1730453747 [09:35:47]FM_GetShiftState [09:35:47]SAM_PROTO_GetShiftState [09:35:47]wFMCommunicate request_size=4 [09:35:47]MH_SAM_APDU [09:35:47]CAPDU: 80 13 01 00 [09:35:47]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [09:35:47]Write i2c OK [09:35:47]MH_I2C_Read... [09:35:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:47]Read from MH i2c: E2 [09:35:47]MH_I2C_Read... [09:35:47]Read from MH i2c: E2 0E 00 [09:35:47]MH_I2C_Read... [09:35:47]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 76 [09:35:47]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [09:35:47]wFMCommunicate OK [09:35:47]SAM_PROTO_GetShiftState done [09:35:47]FM_GetShiftState done [09:35:47]opened in 1730419605 [09:35:47]opened+sec_in_day 1730506005 [09:35:47]quantity*price = 0 [09:35:47]sum+1 = 1 [09:35:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 55 01.11.2024 09:35 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 73186 ФПД: 150348484625586 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T093547&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73186&fm=150348484625586&tin=02508201610067®Number=0000000000091644&sum=0 [09:35:48]StoreToDocumentArchive [09:35:48]shift 558 fd 73186 [09:35:48]save to /storage/0558/doc_00073186 [09:35:48]save last doc name /storage/0558/doc_00073186 to /storage/kkm_last_doc_name [09:35:48]save OK [09:35:48]Clear old archive folders... [09:35:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:35:48]tlvbuf is 005ADDF0 [09:35:48]SAM_PROTO_ClearQueue [09:35:48]wFMCommunicate request_size=4 [09:35:48]MH_SAM_APDU [09:35:48]CAPDU: 80 09 00 00 [09:35:48]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [09:35:48]Write i2c OK [09:35:48]MH_I2C_Read... [09:35:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:35:48]Read from MH i2c: E2 [09:35:48]MH_I2C_Read... [09:35:48]Read from MH i2c: E2 03 00 [09:35:48]MH_I2C_Read... [09:35:48]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [09:35:48]RAPDU: 90 00 [09:35:48]wFMCommunicate OK [09:35:48]SAM_PROTO_ClearQueue done [09:35:48]KKMCreateOFDPacket [09:35:48]OFDProtocolAddRootSTLVToBuf [09:35:48]FM_MakeSignedData [09:35:48]FM_MakeSignedData [09:35:48]SAM_PROTO_SignData [09:35:48]wFMCommunicate request_size=4 [09:35:48]MH_SAM_APDU [09:35:48]CAPDU: 80 0D 01 02 [09:35:48]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [09:35:48]Write i2c OK [09:35:48]MH_I2C_Read... [09:35:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:35:48]Read from MH i2c: E2 [09:35:48]MH_I2C_Read... [09:35:48]Read from MH i2c: E2 03 00 [09:35:48]MH_I2C_Read... [09:35:48]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [09:35:48]RAPDU: 90 00 [09:35:48]wFMCommunicate OK [09:35:48]wFMCommunicate request_size=255 [09:35:48]MH_SAM_APDU [09:35:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 F3 A0 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E2 1D 01 00 35 04 06 00 88 [09:35:48]Write to MH i2c: E2 02 01 C1 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 F3 A0 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E2 1D 01 00 35 04 06 00 88 00 00 87 [09:35:48]Write i2c OK [09:35:48]MH_I2C_Read... [09:35:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:49]Read from MH i2c: E2 [09:35:49]MH_I2C_Read... [09:35:49]Read from MH i2c: E2 03 00 [09:35:49]MH_I2C_Read... [09:35:49]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [09:35:49]RAPDU: 90 00 [09:35:49]wFMCommunicate OK [09:35:49]wFMCommunicate request_size=10 [09:35:49]MH_SAM_APDU [09:35:49]CAPDU: 80 0D 02 02 05 BD BC 04 C4 B2 [09:35:49]Write to MH i2c: E2 0D 00 C2 00 80 0D 02 02 05 00 BD BC 04 C4 B2 00 00 39 [09:35:49]Write i2c OK [09:35:49]MH_I2C_Read... [09:35:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:49]Read from MH i2c: E2 [09:35:49]MH_I2C_Read... [09:35:49]Read from MH i2c: E2 03 00 [09:35:49]MH_I2C_Read... [09:35:49]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [09:35:49]RAPDU: 90 00 [09:35:49]wFMCommunicate OK [09:35:49]wFMCommunicate request_size=4 [09:35:49]MH_SAM_APDU [09:35:49]CAPDU: 80 0D 03 02 [09:35:49]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [09:35:49]Write i2c OK [09:35:49]MH_I2C_Read... [09:35:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:35:49]Read from MH i2c: E2 [09:35:49]MH_I2C_Read... [09:35:49]Read from MH i2c: E2 0B 00 [09:35:49]MH_I2C_Read... [09:35:49]Read from MH i2c: E2 0B 00 C3 00 00 5F 61 23 B9 9D D3 88 28 90 00 FB [09:35:49]RAPDU: 5F 61 23 B9 9D D3 88 28 90 00 [09:35:49]wFMCommunicate OK [09:35:49]SAM_PROTO_SignData done [09:35:49]FM_MakeSignedData done [09:35:49]CreateOFDProtocolMessage [09:35:49]wFMCommunicate request_size=4 [09:35:49]MH_SAM_APDU [09:35:49]CAPDU: 80 11 00 00 [09:35:49]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [09:35:49]Write i2c OK [09:35:49]MH_I2C_Read... [09:35:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:49]Read from MH i2c: E2 [09:35:49]MH_I2C_Read... [09:35:49]Read from MH i2c: E2 17 00 [09:35:49]MH_I2C_Read... [09:35:49]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 92 [09:35:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:35:49]wFMCommunicate OK [09:35:49]CreateOFDProtocolMessage done [09:35:49]OFDSenderStorePacket 73186 [09:35:49]StoreOFDPacket docnum=73186 [09:35:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 D4 60 07 01 28 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 F3 A0 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E2 1D 01 00 35 04 06 00 88 BD BC 04 C4 B2 5F 61 23 B9 9D D3 88 28 [09:35:49]CheckFolder [09:35:49]dirname=/storage/ofd_packets [09:35:49]CheckFolder done [09:35:49]ProducePacketName [09:35:49]name=ofd_packets/00073186 [09:35:49]NVStorageSaveData ofd_packets/00073186 [09:35:49]File name is /storage/ofd_packets/00073186 [09:35:49]Write 301 bytes [09:35:49]NVStorageSaveData done [09:35:49]OFDSenderStorePacket done [09:35:49]KKMCreateOFDPacket done [09:35:49]NVStorageSaveData kkm_last_timestamp [09:35:49]File name is /storage/kkm_last_timestamp [09:35:49]Write 4 bytes [09:35:49]NVStorageSaveData done [09:35:49]ExternCall_PrintAddStr [09:35:49]wPrintStart [09:35:49]Write to MH i2c: 01 00 00 C5 00 C5 [09:35:49]Write i2c OK [09:35:49]MH_I2C_Read... [09:35:49]Read from MH i2c: 01 [09:35:49]MH_I2C_Read... [09:35:49]Read from MH i2c: 01 07 00 [09:35:49]MH_I2C_Read... [09:35:49]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [09:35:49]RasterBufferAndPrint [09:35:49]line Счет N : (1)952785 [09:35:49]line ИНН: 02508201610067 [09:35:49]line Контрольно-Кассовый Чек [09:35:49]line ПРОДАЖА [09:35:49]line ТРК (МРК, ГНК) : 63 [09:35:49]line Товар: 2710124130 [09:35:49]line Аи-92-К-5 [09:35:49]line 10.000 * 0.00 [09:35:49]line = 0.00 [09:35:49]line НДС 12% НСП 1% [09:35:49]line > о реализуемом товаре [09:35:49]line ИТОГО: 0.00 [09:35:49]line НСП 1% : 0.00 [09:35:49]line НДС 12% : 0.00 [09:35:49]line Наличными: 0.00 [09:35:49]line Безнал.: 0.00 [09:35:49]line Место: АЗС № 113 "Партнер Нефть" [09:35:49]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:35:49]line СНО: Общий режим [09:35:49]line Чек 55 01.11.2024 09:35 [09:35:49]line Смена: 558 ФФД: 1.0 [09:35:49]line ЗНМ: 0300000087 [09:35:49]line РНМ: 0000000000091644 [09:35:49]line Версия ККМ: 001 [09:35:49]line Талоны: Топливная Карта [09:35:49]line 03047 [09:35:49]line ФМ: 0000000000874662 [09:35:49]line ФД: 73186 [09:35:49]line ФПД: 150348484625586 [09:35:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T093547&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73186&fm=150348484625586&tin=02508201610067®Number=0000000000091644&sum=0 [09:35:49]OFD Sender: Processing packet 73186 [packets to send 282, broken 281] [09:35:49]ProducePacketName [09:35:49]name=ofd_packets/00073186 [09:35:49]OFD Sender: To server: pG, [09:35:49]CommunicateWithHost lk.salyk.kg:30040 [09:35:49]ConnectInit lk.salyk.kg [09:35:49]written 0, free lines is 4095 [09:35:50]Write to MH i2c: 01 00 00 EF 00 EF [09:35:50]Write i2c OK [09:35:50]MH_I2C_Read... [09:35:50]Read from MH i2c: 01 [09:35:50]MH_I2C_Read... [09:35:50]Read from MH i2c: 01 07 00 [09:35:50]MH_I2C_Read... [09:35:50]Read from MH i2c: 01 07 00 EF 00 00 00 00 00 00 E4 0C E6 [09:35:50]RasterBufferAndPrint [09:35:50]line [09:35:50]line [09:35:50]line [09:35:50]line [09:35:50]line [09:35:50]written 0, free lines is 3306 [09:35:50]MH_Cut [09:35:50]Write to MH i2c: D1 01 00 F6 00 01 C8 [09:35:50]Write i2c OK [09:35:50]MH_I2C_Read... [09:35:50]Read from MH i2c: D1 [09:35:50]MH_I2C_Read... [09:35:50]Read from MH i2c: D1 01 00 [09:35:50]MH_I2C_Read... [09:35:50]Read from MH i2c: D1 01 00 F6 00 00 C7 [09:35:50]Write to MH i2c: 01 00 00 F7 00 F7 [09:35:50]Write i2c OK [09:35:50]MH_I2C_Read... [09:35:50]*** Cut start [09:35:50]*** Partial cut [09:35:50]*** CUTSNS_PIN = 1 [09:35:50]*** CUTSNS_PIN = 0 [09:35:51]*** Brake cut motor [09:35:51]Read from MH i2c: 01 [09:35:51]MH_I2C_Read... [09:35:51]*** Stop cut motor [09:35:51]*** Cut end [09:35:51]Read from MH i2c: 01 07 00 [09:35:51]MH_I2C_Read... [09:35:51]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 FF 0F 0C [09:35:51]process_action close_receipt done [09:35:51]requested_data is exist [09:35:51]produce_requested_data [09:35:51]requested_item fm.sn is exist - process it [09:35:51]wFMCommunicate request_size=4 [09:35:51]MH_SAM_APDU [09:35:51]CAPDU: 80 11 00 00 [09:35:51]Write to MH i2c: E2 08 00 F8 00 80 11 00 00 00 00 00 00 72 [09:35:51]Write i2c OK [09:35:51]MH_I2C_Read... [09:35:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:51]Read from MH i2c: E2 [09:35:51]MH_I2C_Read... [09:35:51]Read from MH i2c: E2 17 00 [09:35:51]MH_I2C_Read... [09:35:51]Read from MH i2c: E2 17 00 F8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C6 [09:35:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:35:51]wFMCommunicate OK [09:35:51]requested_item fd.num is exist - process it [09:35:51]SAM_PROTO_GetFieldsCounters [09:35:51]wFMCommunicate request_size=4 [09:35:51]MH_SAM_APDU [09:35:51]CAPDU: 80 13 00 00 [09:35:51]Write to MH i2c: E2 08 00 F9 00 80 13 00 00 00 00 00 00 75 [09:35:51]Write i2c OK [09:35:51]MH_I2C_Read... [09:35:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:51]Read from MH i2c: E2 [09:35:51]MH_I2C_Read... [09:35:51]Read from MH i2c: E2 62 00 [09:35:51]MH_I2C_Read... [09:35:51]Read from MH i2c: E2 62 00 F9 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 E2 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [09:35:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 E2 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:35:51]wFMCommunicate OK [09:35:51]SAM_PROTO_GetFieldsCounters done [09:35:51]requested_item shift.num is exist - process it [09:35:51]requested_item shift.opened is exist - process it [09:35:51]req_shift_opened [09:35:51]FM_GetShiftState [09:35:51]SAM_PROTO_GetShiftState [09:35:51]wFMCommunicate request_size=4 [09:35:51]MH_SAM_APDU [09:35:51]CAPDU: 80 13 01 00 [09:35:51]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [09:35:51]Write i2c OK [09:35:51]MH_I2C_Read... [09:35:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:51]Read from MH i2c: E2 [09:35:51]MH_I2C_Read... [09:35:51]Read from MH i2c: E2 0E 00 [09:35:51]MH_I2C_Read... [09:35:51]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 BE [09:35:51]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [09:35:51]wFMCommunicate OK [09:35:51]SAM_PROTO_GetShiftState done [09:35:51]FM_GetShiftState done [09:35:51]req_shift_opened done [09:35:51]requested_item shift.open_date is exist - process it [09:35:51]req_shift_open_date [09:35:51]req_shift_open_date done [09:35:51]produce_requested_data done [09:35:51]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73186,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [09:35:51]process_action_free close_receipt [09:35:51]json_value_free [09:35:51]json_value_free done [09:35:51]process_json_proto returns [09:35:51]Send response to host [09:35:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73186,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [09:35:51]free response buf [09:35:51]execute_script done [09:35:51]execute_script returns [09:35:51]free content buf [09:35:51]Sock 8.Close socket [09:35:51]Sock 8.Thread stoped [09:35:53]recv_with_timeout no data received [09:35:55]Connected sock=11 [09:35:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 D4 60 07 01 28 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 F3 A0 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E2 1D 01 00 35 04 06 00 88 BD BC 04 C4 B2 5F 61 23 B9 9D D3 88 28 [09:35:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 9F 4B 47 00 3E 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E2 1D 01 00 F4 03 04 00 AC 4B 24 67 B6 04 01 00 00 81 0D C7 DD 87 8E 9E D9 [09:35:56]CommunicateWithHost err = 0 [09:35:56]CheckOFDResponse [09:35:56]1017 (14) - 77093643461234 [09:35:56]1041 (16) - 0000000000874662 [09:35:56]1040 (4) - 73186 [09:35:56]1012 (4) - 01.11.2024 03:31 [09:35:56]1206 (1) - 0 [09:35:56]OFD Sender: Remove packet 73186 [09:35:56]ProducePacketName [09:35:56]name=ofd_packets/00073186 [09:35:56]NVStorageDeleteData [09:35:56]OFD Sender: No OFD packet to send [09:36:01]OFD Sender: No OFD packet to send [09:36:06]OFD Sender: No OFD packet to send [09:36:11]OFD Sender: No OFD packet to send [09:36:16]OFD Sender: No OFD packet to send [09:36:21]OFD Sender: No OFD packet to send [09:36:26]OFD Sender: No OFD packet to send [09:36:31]OFD Sender: No OFD packet to send [09:36:31]accept exits with 9 [09:36:31]New connection [09:36:31]New thread 3067493732 created [09:36:31]Thread 3067637092 joined [09:36:31]Waiting for new connection... [09:36:31] Sock 9.Parse request [09:36:31]Sock 9.Check first char [09:36:31]Sock 9.First char is OK [09:36:31]request: POST /json_proto HTTP/1.0 [09:36:31]Method: POST [09:36:31]URL: /json_proto [09:36:31]Method is POST - this is cgi request [09:36:31]url: /json_proto [09:36:31]query_string will be loaded in cgi processing [09:36:31]execute_cgi json_proto POST (null) [09:36:31]execute_cgi path=json_proto method=POST [09:36:31]POST find Content-Length [09:36:31]Host: 172.17.43.195:8080 [09:36:31]Content-Length: 825 [09:36:31]Content-Type: application/json [09:36:31] [09:36:31]POST finish read [09:36:31]Found Content-Length = 825 [09:36:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 118.120, "sum" : 9000.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 9000.74 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:31]execute_script... [09:36:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 118.120, "sum" : 9000.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 9000.74 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:31]POST & json_proto [09:36:31]process_json_proto [09:36:31]json parsed OK: [09:36:31]protocol is kg_v1.0 [09:36:31]action value=close_receipt [09:36:31]process_action close_receipt [09:36:31]cmd_close_receipt [09:36:31]MH_GetDate [09:36:31]Write to MH i2c: F0 00 00 FB 00 EA [09:36:31]Write i2c OK [09:36:31]MH_I2C_Read... [09:36:31]Read from MH i2c: F0 [09:36:31]MH_I2C_Read... [09:36:31]Read from MH i2c: F0 09 00 [09:36:31]MH_I2C_Read... [09:36:31]Read from MH i2c: F0 09 00 FB 00 00 20 A1 24 67 74 2C AD 66 F2 [09:36:31]GetLastDocTimeStamp 1730453747 [09:36:31]current date 1730453792 [09:36:31]FM_GetShiftState [09:36:31]SAM_PROTO_GetShiftState [09:36:31]wFMCommunicate request_size=4 [09:36:31]MH_SAM_APDU [09:36:31]CAPDU: 80 13 01 00 [09:36:31]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [09:36:31]Write i2c OK [09:36:31]MH_I2C_Read... [09:36:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:32]Read from MH i2c: E2 [09:36:32]MH_I2C_Read... [09:36:32]Read from MH i2c: E2 0E 00 [09:36:32]MH_I2C_Read... [09:36:32]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 C0 [09:36:32]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [09:36:32]wFMCommunicate OK [09:36:32]SAM_PROTO_GetShiftState done [09:36:32]FM_GetShiftState done [09:36:32]opened in 1730419605 [09:36:32]opened+sec_in_day 1730506005 [09:36:32]quantity*price = 900074 [09:36:32]sum+1 = 900075 [09:36:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9000.74 НСП 1% : 79.65 НДС 12% : 955.83 Наличными: 0.00 Безнал.: 9000.74 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 56 01.11.2024 09:36 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: Бакай банк ФМ: 0000000000874662 ФД: 73187 ФПД: 261964367837296 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T093632&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73187&fm=261964367837296&tin=02508201610067®Number=0000000000091644&sum=900074 [09:36:33]StoreToDocumentArchive [09:36:33]shift 558 fd 73187 [09:36:33]save to /storage/0558/doc_00073187 [09:36:33]save last doc name /storage/0558/doc_00073187 to /storage/kkm_last_doc_name [09:36:33]save OK [09:36:33]Clear old archive folders... [09:36:33]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:36:33]tlvbuf is 005ADCC0 [09:36:33]SAM_PROTO_ClearQueue [09:36:33]wFMCommunicate request_size=4 [09:36:33]MH_SAM_APDU [09:36:33]CAPDU: 80 09 00 00 [09:36:33]Write to MH i2c: E2 08 00 09 01 80 09 00 00 00 00 00 00 7C [09:36:33]Write i2c OK [09:36:33]MH_I2C_Read... [09:36:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:36:33]Read from MH i2c: E2 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: E2 03 00 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [09:36:33]RAPDU: 90 00 [09:36:33]wFMCommunicate OK [09:36:33]SAM_PROTO_ClearQueue done [09:36:33]KKMCreateOFDPacket [09:36:33]OFDProtocolAddRootSTLVToBuf [09:36:33]FM_MakeSignedData [09:36:33]FM_MakeSignedData [09:36:33]SAM_PROTO_SignData [09:36:33]wFMCommunicate request_size=4 [09:36:33]MH_SAM_APDU [09:36:33]CAPDU: 80 0D 01 02 [09:36:33]Write to MH i2c: E2 08 00 0A 01 80 0D 01 02 00 00 00 00 84 [09:36:33]Write i2c OK [09:36:33]MH_I2C_Read... [09:36:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:36:33]Read from MH i2c: E2 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: E2 03 00 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [09:36:33]RAPDU: 90 00 [09:36:33]wFMCommunicate OK [09:36:33]wFMCommunicate request_size=255 [09:36:33]MH_SAM_APDU [09:36:33]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 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 20 A1 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E3 1D 01 00 35 04 06 00 [09:36:33]Write to MH i2c: E2 02 01 0B 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 20 A1 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E3 1D 01 00 35 04 06 00 00 00 BC [09:36:33]Write i2c OK [09:36:33]MH_I2C_Read... [09:36:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:33]Read from MH i2c: E2 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: E2 03 00 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [09:36:33]RAPDU: 90 00 [09:36:33]wFMCommunicate OK [09:36:33]wFMCommunicate request_size=11 [09:36:33]MH_SAM_APDU [09:36:33]CAPDU: 80 0D 02 02 06 EE 41 55 16 B8 70 [09:36:33]Write to MH i2c: E2 0E 00 0C 01 80 0D 02 02 06 00 EE 41 55 16 B8 70 00 00 55 [09:36:33]Write i2c OK [09:36:33]MH_I2C_Read... [09:36:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:33]Read from MH i2c: E2 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: E2 03 00 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [09:36:33]RAPDU: 90 00 [09:36:33]wFMCommunicate OK [09:36:33]wFMCommunicate request_size=4 [09:36:33]MH_SAM_APDU [09:36:33]CAPDU: 80 0D 03 02 [09:36:33]Write to MH i2c: E2 08 00 0D 01 80 0D 03 02 00 00 00 00 89 [09:36:33]Write i2c OK [09:36:33]MH_I2C_Read... [09:36:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:36:33]Read from MH i2c: E2 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: E2 0B 00 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: E2 0B 00 0D 01 00 90 BA 34 3F 20 BC 14 DE 90 00 15 [09:36:33]RAPDU: 90 BA 34 3F 20 BC 14 DE 90 00 [09:36:33]wFMCommunicate OK [09:36:33]SAM_PROTO_SignData done [09:36:33]FM_MakeSignedData done [09:36:33]CreateOFDProtocolMessage [09:36:33]wFMCommunicate request_size=4 [09:36:33]MH_SAM_APDU [09:36:33]CAPDU: 80 11 00 00 [09:36:33]Write to MH i2c: E2 08 00 0E 01 80 11 00 00 00 00 00 00 89 [09:36:33]Write i2c OK [09:36:33]MH_I2C_Read... [09:36:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:33]Read from MH i2c: E2 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: E2 17 00 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: E2 17 00 0E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DD [09:36:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:36:33]wFMCommunicate OK [09:36:33]CreateOFDProtocolMessage done [09:36:33]OFDSenderStorePacket 73187 [09:36:33]StoreOFDPacket docnum=73187 [09:36:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 1E 2A 08 01 63 39 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 20 A1 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E3 1D 01 00 35 04 06 00 EE 41 55 16 B8 70 90 BA 34 3F 20 BC 14 DE [09:36:33]CheckFolder [09:36:33]dirname=/storage/ofd_packets [09:36:33]CheckFolder done [09:36:33]ProducePacketName [09:36:33]name=ofd_packets/00073187 [09:36:33]NVStorageSaveData ofd_packets/00073187 [09:36:33]File name is /storage/ofd_packets/00073187 [09:36:33]Write 302 bytes [09:36:33]NVStorageSaveData done [09:36:33]OFDSenderStorePacket done [09:36:33]KKMCreateOFDPacket done [09:36:33]NVStorageSaveData kkm_last_timestamp [09:36:33]File name is /storage/kkm_last_timestamp [09:36:33]Write 4 bytes [09:36:33]NVStorageSaveData done [09:36:33]ExternCall_PrintAddStr [09:36:33]wPrintStart [09:36:33]Write to MH i2c: 01 00 00 0F 01 10 [09:36:33]Write i2c OK [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: 01 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: 01 07 00 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: 01 07 00 0F 01 00 00 00 00 00 FF 0F 25 [09:36:33]RasterBufferAndPrint [09:36:33]line Счет N : (1)952783 [09:36:33]line ИНН: 02508201610067 [09:36:33]line Контрольно-Кассовый Чек [09:36:33]line ПРОДАЖА [09:36:33]line ТРК (МРК, ГНК) : 22 [09:36:33]line Товар: 2710194210 [09:36:33]line ДТ(л)-К-5 [09:36:33]line 118.120 * 76.20 [09:36:33]line = 9000.74 [09:36:33]line НДС 12% НСП 1% [09:36:33]line > о реализуемом товаре [09:36:33]line ИТОГО: 9000.74 [09:36:33]line НСП 1% : 79.65 [09:36:33]line НДС 12% : 955.83 [09:36:33]line Наличными: 0.00 [09:36:33]line Безнал.: 9000.74 [09:36:33]line Место: АЗС № 113 "Партнер Нефть" [09:36:33]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:36:33]line СНО: Общий режим [09:36:33]line Чек 56 01.11.2024 09:36 [09:36:33]line Смена: 558 ФФД: 1.0 [09:36:33]line ЗНМ: 0300000087 [09:36:33]line РНМ: 0000000000091644 [09:36:33]line Версия ККМ: 001 [09:36:33]line Платежная система: Бакай банк [09:36:33]line ФМ: 0000000000874662 [09:36:33]line ФД: 73187 [09:36:33]line ФПД: 261964367837296 [09:36:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T093632&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73187&fm=261964367837296&tin=02508201610067®Number=0000000000091644&sum=900074 [09:36:34]written 0, free lines is 4095 [09:36:34]OFD Sender: Processing packet 73187 [packets to send 282, broken 281] [09:36:34]ProducePacketName [09:36:34]name=ofd_packets/00073187 [09:36:34]OFD Sender: To server: pG, [09:36:34]CommunicateWithHost lk.salyk.kg:30040 [09:36:34]ConnectInit lk.salyk.kg [09:36:34]Connected sock=10 [09:36:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 1E 2A 08 01 63 39 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 20 A1 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E3 1D 01 00 35 04 06 00 EE 41 55 16 B8 70 90 BA 34 3F 20 BC 14 DE [09:36:34]Write to MH i2c: 01 00 00 39 01 3A [09:36:34]Write i2c OK [09:36:34]MH_I2C_Read... [09:36:34]Read from MH i2c: 01 [09:36:34]MH_I2C_Read... [09:36:34]Read from MH i2c: 01 07 00 [09:36:34]MH_I2C_Read... [09:36:34]Read from MH i2c: 01 07 00 39 01 00 00 00 00 00 F2 0C 3F [09:36:34]RasterBufferAndPrint [09:36:34]line [09:36:34]line [09:36:34]line [09:36:34]line [09:36:34]line [09:36:34]written 0, free lines is 3320 [09:36:34]MH_Cut [09:36:34]Write to MH i2c: D1 01 00 40 01 01 13 [09:36:34]Write i2c OK [09:36:34]MH_I2C_Read... [09:36:34]Read from MH i2c: D1 [09:36:34]MH_I2C_Read... [09:36:34]Read from MH i2c: D1 01 00 [09:36:34]MH_I2C_Read... [09:36:34]Read from MH i2c: D1 01 00 40 01 00 12 [09:36:34]Write to MH i2c: 01 00 00 41 01 42 [09:36:34]Write i2c OK [09:36:34]MH_I2C_Read... [09:36:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 D1 69 47 00 D5 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E3 1D 01 00 F4 03 04 00 D3 4B 24 67 B6 04 01 00 00 27 22 E6 37 AC 9F AB 07 [09:36:34]CommunicateWithHost err = 0 [09:36:34]CheckOFDResponse [09:36:34]1017 (14) - 77093643461234 [09:36:34]1041 (16) - 0000000000874662 [09:36:34]1040 (4) - 73187 [09:36:34]1012 (4) - 01.11.2024 03:32 [09:36:34]1206 (1) - 0 [09:36:34]OFD Sender: Remove packet 73187 [09:36:34]ProducePacketName [09:36:34]name=ofd_packets/00073187 [09:36:34]NVStorageDeleteData [09:36:35]*** Cut start [09:36:35]*** Partial cut [09:36:35]*** CUTSNS_PIN = 1 [09:36:35]*** CUTSNS_PIN = 0 [09:36:35]OFD Sender: No OFD packet to send [09:36:35]*** Brake cut motor [09:36:35]Read from MH i2c: 01 [09:36:35]MH_I2C_Read... [09:36:35]*** Stop cut motor [09:36:35]*** Cut end [09:36:35]Read from MH i2c: 01 07 00 [09:36:35]MH_I2C_Read... [09:36:35]Read from MH i2c: 01 07 00 41 01 00 00 00 00 00 FF 0F 57 [09:36:35]process_action close_receipt done [09:36:35]requested_data is exist [09:36:35]produce_requested_data [09:36:35]requested_item fm.sn is exist - process it [09:36:35]wFMCommunicate request_size=4 [09:36:35]MH_SAM_APDU [09:36:35]CAPDU: 80 11 00 00 [09:36:35]Write to MH i2c: E2 08 00 42 01 80 11 00 00 00 00 00 00 BD [09:36:35]Write i2c OK [09:36:35]MH_I2C_Read... [09:36:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:35]Read from MH i2c: E2 [09:36:35]MH_I2C_Read... [09:36:35]Read from MH i2c: E2 17 00 [09:36:35]MH_I2C_Read... [09:36:35]Read from MH i2c: E2 17 00 42 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 11 [09:36:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:36:35]wFMCommunicate OK [09:36:35]requested_item fd.num is exist - process it [09:36:35]SAM_PROTO_GetFieldsCounters [09:36:35]wFMCommunicate request_size=4 [09:36:35]MH_SAM_APDU [09:36:35]CAPDU: 80 13 00 00 [09:36:35]Write to MH i2c: E2 08 00 43 01 80 13 00 00 00 00 00 00 C0 [09:36:35]Write i2c OK [09:36:35]MH_I2C_Read... [09:36:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:36:36]Read from MH i2c: E2 [09:36:36]MH_I2C_Read... [09:36:36]Read from MH i2c: E2 62 00 [09:36:36]MH_I2C_Read... [09:36:36]Read from MH i2c: E2 62 00 43 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 E3 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [09:36:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 E3 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:36:36]wFMCommunicate OK [09:36:36]SAM_PROTO_GetFieldsCounters done [09:36:36]requested_item shift.num is exist - process it [09:36:36]requested_item shift.opened is exist - process it [09:36:36]req_shift_opened [09:36:36]FM_GetShiftState [09:36:36]SAM_PROTO_GetShiftState [09:36:36]wFMCommunicate request_size=4 [09:36:36]MH_SAM_APDU [09:36:36]CAPDU: 80 13 01 00 [09:36:36]Write to MH i2c: E2 08 00 44 01 80 13 01 00 00 00 00 00 C2 [09:36:36]Write i2c OK [09:36:36]MH_I2C_Read... [09:36:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:36]Read from MH i2c: E2 [09:36:36]MH_I2C_Read... [09:36:36]Read from MH i2c: E2 0E 00 [09:36:36]MH_I2C_Read... [09:36:36]Read from MH i2c: E2 0E 00 44 01 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 09 [09:36:36]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [09:36:36]wFMCommunicate OK [09:36:36]SAM_PROTO_GetShiftState done [09:36:36]FM_GetShiftState done [09:36:36]req_shift_opened done [09:36:36]requested_item shift.open_date is exist - process it [09:36:36]req_shift_open_date [09:36:36]req_shift_open_date done [09:36:36]produce_requested_data done [09:36:36]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73187,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [09:36:36]process_action_free close_receipt [09:36:36]json_value_free [09:36:36]json_value_free done [09:36:36]process_json_proto returns [09:36:36]Send response to host [09:36:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73187,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [09:36:36]free response buf [09:36:36]execute_script done [09:36:36]execute_script returns [09:36:36]free content buf [09:36:36]Sock 9.Close socket [09:36:36]Sock 9.Thread stoped [09:36:40]OFD Sender: No OFD packet to send [09:36:40]recv_with_timeout no data received [09:36:45]OFD Sender: No OFD packet to send [09:36:50]OFD Sender: No OFD packet to send [09:36:55]OFD Sender: No OFD packet to send [09:37:00]OFD Sender: No OFD packet to send [09:37:05]OFD Sender: No OFD packet to send [09:37:10]OFD Sender: No OFD packet to send [09:37:15]OFD Sender: No OFD packet to send [09:37:20]OFD Sender: No OFD packet to send [09:37:25]OFD Sender: No OFD packet to send [09:37:30]OFD Sender: No OFD packet to send [09:37:35]OFD Sender: No OFD packet to send [09:37:40]OFD Sender: No OFD packet to send [09:37:45]OFD Sender: No OFD packet to send [09:37:50]OFD Sender: No OFD packet to send [09:37:51]recv_with_timeout no data received [09:37:55]OFD Sender: No OFD packet to send [09:38:00]OFD Sender: No OFD packet to send [09:38:01]recv_with_timeout no data received [09:38:05]OFD Sender: No OFD packet to send [09:38:10]OFD Sender: No OFD packet to send [09:38:15]OFD Sender: No OFD packet to send [09:38:20]OFD Sender: No OFD packet to send [09:38:23]accept exits with 8 [09:38:23]New connection [09:38:23]New thread 3067637092 created [09:38:23]Thread 3067493732 joined [09:38:23]Waiting for new connection... [09:38:23] Sock 8.Parse request [09:38:23]Sock 8.Check first char [09:38:23]Sock 8.First char is OK [09:38:23]request: POST /json_proto HTTP/1.0 [09:38:23]Method: POST [09:38:23]URL: /json_proto [09:38:23]Method is POST - this is cgi request [09:38:23]url: /json_proto [09:38:23]query_string will be loaded in cgi processing [09:38:23]execute_cgi json_proto POST (null) [09:38:23]execute_cgi path=json_proto method=POST [09:38:23]POST find Content-Length [09:38:23]Host: 172.17.43.195:8080 [09:38:23]Content-Length: 792 [09:38:23]Content-Type: application/json [09:38:23] [09:38:23]POST finish read [09:38:23]Found Content-Length = 792 [09:38:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 29.900, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:23]execute_script... [09:38:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 29.900, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:23]POST & json_proto [09:38:23]process_json_proto [09:38:23]json parsed OK: [09:38:23]protocol is kg_v1.0 [09:38:23]action value=close_receipt [09:38:23]process_action close_receipt [09:38:23]cmd_close_receipt [09:38:23]MH_GetDate [09:38:23]Write to MH i2c: F0 00 00 45 01 35 [09:38:23]Write i2c OK [09:38:23]MH_I2C_Read... [09:38:23]Read from MH i2c: F0 [09:38:23]MH_I2C_Read... [09:38:23]Read from MH i2c: F0 09 00 [09:38:23]MH_I2C_Read... [09:38:23]Read from MH i2c: F0 09 00 45 01 00 8F A1 24 67 74 2C AD 66 AC [09:38:23]GetLastDocTimeStamp 1730453792 [09:38:23]current date 1730453903 [09:38:23]FM_GetShiftState [09:38:23]SAM_PROTO_GetShiftState [09:38:23]wFMCommunicate request_size=4 [09:38:23]MH_SAM_APDU [09:38:23]CAPDU: 80 13 01 00 [09:38:23]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [09:38:23]Write i2c OK [09:38:23]MH_I2C_Read... [09:38:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:23]Read from MH i2c: E2 [09:38:23]MH_I2C_Read... [09:38:23]Read from MH i2c: E2 0E 00 [09:38:23]MH_I2C_Read... [09:38:23]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 0B [09:38:23]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [09:38:23]wFMCommunicate OK [09:38:23]SAM_PROTO_GetShiftState done [09:38:23]FM_GetShiftState done [09:38:23]opened in 1730419605 [09:38:23]opened+sec_in_day 1730506005 [09:38:23]quantity*price = 0 [09:38:23]sum+1 = 1 [09:38:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 57 01.11.2024 09:38 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 73188 ФПД: 6800521181583 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T093823&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73188&fm=6800521181583&tin=02508201610067®Number=0000000000091644&sum=0 [09:38:24]StoreToDocumentArchive [09:38:24]shift 558 fd 73188 [09:38:24]save to /storage/0558/doc_00073188 [09:38:24]save last doc name /storage/0558/doc_00073188 to /storage/kkm_last_doc_name [09:38:24]save OK [09:38:24]Clear old archive folders... [09:38:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:38:24]tlvbuf is 005AD5F0 [09:38:24]SAM_PROTO_ClearQueue [09:38:24]wFMCommunicate request_size=4 [09:38:24]MH_SAM_APDU [09:38:24]CAPDU: 80 09 00 00 [09:38:24]Write to MH i2c: E2 08 00 53 01 80 09 00 00 00 00 00 00 C6 [09:38:24]Write i2c OK [09:38:24]MH_I2C_Read... [09:38:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:38:24]Read from MH i2c: E2 [09:38:24]MH_I2C_Read... [09:38:24]Read from MH i2c: E2 03 00 [09:38:24]MH_I2C_Read... [09:38:24]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [09:38:24]RAPDU: 90 00 [09:38:24]wFMCommunicate OK [09:38:24]SAM_PROTO_ClearQueue done [09:38:24]KKMCreateOFDPacket [09:38:24]OFDProtocolAddRootSTLVToBuf [09:38:24]FM_MakeSignedData [09:38:24]FM_MakeSignedData [09:38:24]SAM_PROTO_SignData [09:38:24]wFMCommunicate request_size=4 [09:38:24]MH_SAM_APDU [09:38:24]CAPDU: 80 0D 01 02 [09:38:24]Write to MH i2c: E2 08 00 54 01 80 0D 01 02 00 00 00 00 CE [09:38:24]Write i2c OK [09:38:24]MH_I2C_Read... [09:38:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:38:24]Read from MH i2c: E2 [09:38:24]MH_I2C_Read... [09:38:24]Read from MH i2c: E2 03 00 [09:38:24]MH_I2C_Read... [09:38:24]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [09:38:24]RAPDU: 90 00 [09:38:24]wFMCommunicate OK [09:38:24]wFMCommunicate request_size=255 [09:38:24]MH_SAM_APDU [09:38:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 8F A1 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E4 1D 01 00 35 04 06 00 06 [09:38:24]Write to MH i2c: E2 02 01 55 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 8F A1 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E4 1D 01 00 35 04 06 00 06 00 00 44 [09:38:24]Write i2c OK [09:38:24]MH_I2C_Read... [09:38:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:25]Read from MH i2c: E2 [09:38:25]MH_I2C_Read... [09:38:25]Read from MH i2c: E2 03 00 [09:38:25]MH_I2C_Read... [09:38:25]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [09:38:25]RAPDU: 90 00 [09:38:25]wFMCommunicate OK [09:38:25]wFMCommunicate request_size=10 [09:38:25]MH_SAM_APDU [09:38:25]CAPDU: 80 0D 02 02 05 2F 5E A6 39 8F [09:38:25]Write to MH i2c: E2 0D 00 56 01 80 0D 02 02 05 00 2F 5E A6 39 8F 00 00 D6 [09:38:25]Write i2c OK [09:38:25]MH_I2C_Read... [09:38:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:25]Read from MH i2c: E2 [09:38:25]MH_I2C_Read... [09:38:25]Read from MH i2c: E2 03 00 [09:38:25]MH_I2C_Read... [09:38:25]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [09:38:25]RAPDU: 90 00 [09:38:25]wFMCommunicate OK [09:38:25]wFMCommunicate request_size=4 [09:38:25]MH_SAM_APDU [09:38:25]CAPDU: 80 0D 03 02 [09:38:25]Write to MH i2c: E2 08 00 57 01 80 0D 03 02 00 00 00 00 D3 [09:38:25]Write i2c OK [09:38:25]MH_I2C_Read... [09:38:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:38:25]Read from MH i2c: E2 [09:38:25]MH_I2C_Read... [09:38:25]Read from MH i2c: E2 0B 00 [09:38:25]MH_I2C_Read... [09:38:25]Read from MH i2c: E2 0B 00 57 01 00 B1 5F C3 68 BC 5D 5F B9 90 00 40 [09:38:25]RAPDU: B1 5F C3 68 BC 5D 5F B9 90 00 [09:38:25]wFMCommunicate OK [09:38:25]SAM_PROTO_SignData done [09:38:25]FM_MakeSignedData done [09:38:25]CreateOFDProtocolMessage [09:38:25]wFMCommunicate request_size=4 [09:38:25]MH_SAM_APDU [09:38:25]CAPDU: 80 11 00 00 [09:38:25]Write to MH i2c: E2 08 00 58 01 80 11 00 00 00 00 00 00 D3 [09:38:25]Write i2c OK [09:38:25]MH_I2C_Read... [09:38:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:25]Read from MH i2c: E2 [09:38:25]MH_I2C_Read... [09:38:25]Read from MH i2c: E2 17 00 [09:38:25]MH_I2C_Read... [09:38:25]Read from MH i2c: E2 17 00 58 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 27 [09:38:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:38:25]wFMCommunicate OK [09:38:25]CreateOFDProtocolMessage done [09:38:25]OFDSenderStorePacket 73188 [09:38:25]StoreOFDPacket docnum=73188 [09:38:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 B3 A8 07 01 07 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 8F A1 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E4 1D 01 00 35 04 06 00 06 2F 5E A6 39 8F B1 5F C3 68 BC 5D 5F B9 [09:38:25]CheckFolder [09:38:25]dirname=/storage/ofd_packets [09:38:25]CheckFolder done [09:38:25]ProducePacketName [09:38:25]name=ofd_packets/00073188 [09:38:25]NVStorageSaveData ofd_packets/00073188 [09:38:25]File name is /storage/ofd_packets/00073188 [09:38:25]Write 301 bytes [09:38:25]NVStorageSaveData done [09:38:25]OFDSenderStorePacket done [09:38:25]KKMCreateOFDPacket done [09:38:25]NVStorageSaveData kkm_last_timestamp [09:38:25]File name is /storage/kkm_last_timestamp [09:38:25]Write 4 bytes [09:38:25]NVStorageSaveData done [09:38:25]ExternCall_PrintAddStr [09:38:25]wPrintStart [09:38:25]Write to MH i2c: 01 00 00 59 01 5A [09:38:25]Write i2c OK [09:38:25]MH_I2C_Read... [09:38:25]Read from MH i2c: 01 [09:38:25]MH_I2C_Read... [09:38:25]Read from MH i2c: 01 07 00 [09:38:25]MH_I2C_Read... [09:38:25]Read from MH i2c: 01 07 00 59 01 00 00 00 00 00 FF 0F 6F [09:38:25]RasterBufferAndPrint [09:38:25]line Счет N : (1)952786 [09:38:25]line ИНН: 02508201610067 [09:38:25]line Контрольно-Кассовый Чек [09:38:25]line ПРОДАЖА [09:38:25]line ТРК (МРК, ГНК) : 63 [09:38:25]line Товар: 2710124130 [09:38:25]line Аи-92-К-5 [09:38:25]line 29.900 * 0.00 [09:38:25]line = 0.00 [09:38:25]line НДС 12% НСП 1% [09:38:25]line > о реализуемом товаре [09:38:25]line ИТОГО: 0.00 [09:38:25]line НСП 1% : 0.00 [09:38:25]line НДС 12% : 0.00 [09:38:25]line Наличными: 0.00 [09:38:25]line Безнал.: 0.00 [09:38:25]line Место: АЗС № 113 "Партнер Нефть" [09:38:25]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:38:25]line СНО: Общий режим [09:38:25]line Чек 57 01.11.2024 09:38 [09:38:25]line Смена: 558 ФФД: 1.0 [09:38:25]line ЗНМ: 0300000087 [09:38:25]line РНМ: 0000000000091644 [09:38:25]line Версия ККМ: 001 [09:38:25]line Талоны: Топливная Карта [09:38:25]line 03047 [09:38:25]line ФМ: 0000000000874662 [09:38:25]line ФД: 73188 [09:38:25]line ФПД: 6800521181583 [09:38:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T093823&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73188&fm=6800521181583&tin=02508201610067®Number=0000000000091644&sum=0 [09:38:25]written 0, free lines is 4095 [09:38:25]OFD Sender: Processing packet 73188 [packets to send 282, broken 281] [09:38:25]ProducePacketName [09:38:25]name=ofd_packets/00073188 [09:38:25]OFD Sender: To server: pG, [09:38:25]CommunicateWithHost lk.salyk.kg:30040 [09:38:25]ConnectInit lk.salyk.kg [09:38:25]Write to MH i2c: 01 00 00 83 01 84 [09:38:25]Write i2c OK [09:38:25]MH_I2C_Read... [09:38:25]Read from MH i2c: 01 [09:38:25]MH_I2C_Read... [09:38:25]Read from MH i2c: 01 07 00 [09:38:25]MH_I2C_Read... [09:38:25]Read from MH i2c: 01 07 00 83 01 00 00 00 00 00 E6 0C 7D [09:38:25]RasterBufferAndPrint [09:38:25]line [09:38:25]line [09:38:25]line [09:38:25]line [09:38:25]line [09:38:25]written 0, free lines is 3309 [09:38:25]MH_Cut [09:38:25]Write to MH i2c: D1 01 00 8A 01 01 5D [09:38:25]Write i2c OK [09:38:25]MH_I2C_Read... [09:38:25]Read from MH i2c: D1 [09:38:25]MH_I2C_Read... [09:38:25]Read from MH i2c: D1 01 00 [09:38:25]MH_I2C_Read... [09:38:25]Read from MH i2c: D1 01 00 8A 01 00 5C [09:38:25]Write to MH i2c: 01 00 00 8B 01 8C [09:38:25]Write i2c OK [09:38:25]MH_I2C_Read... [09:38:26]*** Cut start [09:38:26]*** Partial cut [09:38:26]*** CUTSNS_PIN = 1 [09:38:26]*** CUTSNS_PIN = 0 [09:38:26]*** Brake cut motor [09:38:27]Read from MH i2c: 01 [09:38:27]MH_I2C_Read... [09:38:27]*** Stop cut motor [09:38:27]*** Cut end [09:38:27]Read from MH i2c: 01 07 00 [09:38:27]MH_I2C_Read... [09:38:27]Read from MH i2c: 01 07 00 8B 01 00 00 00 00 00 FF 0F A1 [09:38:27]process_action close_receipt done [09:38:27]requested_data is exist [09:38:27]produce_requested_data [09:38:27]requested_item fm.sn is exist - process it [09:38:27]wFMCommunicate request_size=4 [09:38:27]MH_SAM_APDU [09:38:27]CAPDU: 80 11 00 00 [09:38:27]Write to MH i2c: E2 08 00 8C 01 80 11 00 00 00 00 00 00 07 [09:38:27]Write i2c OK [09:38:27]MH_I2C_Read... [09:38:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:27]Read from MH i2c: E2 [09:38:27]MH_I2C_Read... [09:38:27]Read from MH i2c: E2 17 00 [09:38:27]MH_I2C_Read... [09:38:27]Read from MH i2c: E2 17 00 8C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5B [09:38:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:38:27]wFMCommunicate OK [09:38:27]requested_item fd.num is exist - process it [09:38:27]SAM_PROTO_GetFieldsCounters [09:38:27]wFMCommunicate request_size=4 [09:38:27]MH_SAM_APDU [09:38:27]CAPDU: 80 13 00 00 [09:38:27]Write to MH i2c: E2 08 00 8D 01 80 13 00 00 00 00 00 00 0A [09:38:27]Write i2c OK [09:38:27]MH_I2C_Read... [09:38:27]Connected sock=10 [09:38:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 B3 A8 07 01 07 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 8F A1 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E4 1D 01 00 35 04 06 00 06 2F 5E A6 39 8F B1 5F C3 68 BC 5D 5F B9 [09:38:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:38:27]Read from MH i2c: E2 [09:38:27]MH_I2C_Read... [09:38:27]Read from MH i2c: E2 62 00 [09:38:27]MH_I2C_Read... [09:38:27]Read from MH i2c: E2 62 00 8D 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 E4 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [09:38:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 E4 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:38:27]wFMCommunicate OK [09:38:27]SAM_PROTO_GetFieldsCounters done [09:38:27]requested_item shift.num is exist - process it [09:38:27]requested_item shift.opened is exist - process it [09:38:27]req_shift_opened [09:38:27]FM_GetShiftState [09:38:27]SAM_PROTO_GetShiftState [09:38:27]wFMCommunicate request_size=4 [09:38:27]MH_SAM_APDU [09:38:27]CAPDU: 80 13 01 00 [09:38:27]Write to MH i2c: E2 08 00 8E 01 80 13 01 00 00 00 00 00 0C [09:38:27]Write i2c OK [09:38:27]MH_I2C_Read... [09:38:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:27]Read from MH i2c: E2 [09:38:27]MH_I2C_Read... [09:38:27]Read from MH i2c: E2 0E 00 [09:38:27]MH_I2C_Read... [09:38:27]Read from MH i2c: E2 0E 00 8E 01 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 53 [09:38:27]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [09:38:27]wFMCommunicate OK [09:38:27]SAM_PROTO_GetShiftState done [09:38:27]FM_GetShiftState done [09:38:27]req_shift_opened done [09:38:27]requested_item shift.open_date is exist - process it [09:38:27]req_shift_open_date [09:38:27]req_shift_open_date done [09:38:27]produce_requested_data done [09:38:27]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73188,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [09:38:27]process_action_free close_receipt [09:38:27]json_value_free [09:38:27]json_value_free done [09:38:27]process_json_proto returns [09:38:27]Send response to host [09:38:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73188,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [09:38:27]free response buf [09:38:27]execute_script done [09:38:27]execute_script returns [09:38:27]free content buf [09:38:27]Sock 8.Close socket [09:38:27]Sock 8.Thread stoped [09:38:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 06 CA 47 00 A8 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E4 1D 01 00 F4 03 04 00 44 4C 24 67 B6 04 01 00 00 DB E2 E6 E6 98 32 71 6C [09:38:27]CommunicateWithHost err = 0 [09:38:27]CheckOFDResponse [09:38:27]1017 (14) - 77093643461234 [09:38:27]1041 (16) - 0000000000874662 [09:38:27]1040 (4) - 73188 [09:38:27]1012 (4) - 01.11.2024 03:34 [09:38:27]1206 (1) - 0 [09:38:27]OFD Sender: Remove packet 73188 [09:38:27]ProducePacketName [09:38:27]name=ofd_packets/00073188 [09:38:27]NVStorageDeleteData [09:38:28]OFD Sender: No OFD packet to send [09:38:33]OFD Sender: No OFD packet to send [09:38:38]OFD Sender: No OFD packet to send [09:38:43]OFD Sender: No OFD packet to send [09:38:44]recv_with_timeout no data received [09:38:48]OFD Sender: No OFD packet to send [09:38:53]OFD Sender: No OFD packet to send [09:38:58]recv_with_timeout no data received [09:38:58]OFD Sender: No OFD packet to send [09:39:03]OFD Sender: No OFD packet to send [09:39:08]OFD Sender: No OFD packet to send [09:39:13]OFD Sender: No OFD packet to send [09:39:18]OFD Sender: No OFD packet to send [09:39:22]recv_with_timeout no data received [09:39:23]OFD Sender: No OFD packet to send [09:39:28]OFD Sender: No OFD packet to send [09:39:33]OFD Sender: No OFD packet to send [09:39:38]OFD Sender: No OFD packet to send [09:39:43]OFD Sender: No OFD packet to send [09:39:48]OFD Sender: No OFD packet to send [09:39:53]OFD Sender: No OFD packet to send [09:39:58]OFD Sender: No OFD packet to send [09:40:03]OFD Sender: No OFD packet to send [09:40:08]OFD Sender: No OFD packet to send [09:40:13]OFD Sender: No OFD packet to send [09:40:13]recv_with_timeout no data received [09:40:18]OFD Sender: No OFD packet to send [09:40:23]OFD Sender: No OFD packet to send [09:40:28]OFD Sender: No OFD packet to send [09:40:43]OFD Sender: No OFD packet to send [09:40:48]OFD Sender: No OFD packet to send [09:40:49]recv_with_timeout no data received [09:40:53]OFD Sender: No OFD packet to send [09:40:58]OFD Sender: No OFD packet to send [09:41:03]OFD Sender: No OFD packet to send [09:41:08]OFD Sender: No OFD packet to send [09:41:13]OFD Sender: No OFD packet to send [09:41:18]OFD Sender: No OFD packet to send [09:41:23]OFD Sender: No OFD packet to send [09:41:28]OFD Sender: No OFD packet to send [09:41:33]OFD Sender: No OFD packet to send [09:41:38]OFD Sender: No OFD packet to send [09:41:43]OFD Sender: No OFD packet to send [09:41:48]OFD Sender: No OFD packet to send [09:41:53]OFD Sender: No OFD packet to send [09:41:58]OFD Sender: No OFD packet to send [09:42:00]recv_with_timeout no data received [09:42:03]OFD Sender: No OFD packet to send [09:42:08]OFD Sender: No OFD packet to send [09:42:13]OFD Sender: No OFD packet to send [09:42:18]OFD Sender: No OFD packet to send [09:42:23]OFD Sender: No OFD packet to send [09:42:24]recv_with_timeout no data received [09:42:28]OFD Sender: No OFD packet to send [09:42:33]OFD Sender: No OFD packet to send [09:42:38]OFD Sender: No OFD packet to send [09:42:43]OFD Sender: No OFD packet to send [09:42:48]OFD Sender: No OFD packet to send [09:42:53]OFD Sender: No OFD packet to send [09:42:58]OFD Sender: No OFD packet to send [09:43:03]OFD Sender: No OFD packet to send [09:43:08]OFD Sender: No OFD packet to send [09:43:13]OFD Sender: No OFD packet to send [09:43:18]OFD Sender: No OFD packet to send [09:43:23]OFD Sender: No OFD packet to send [09:43:28]OFD Sender: No OFD packet to send [09:43:34]OFD Sender: No OFD packet to send [09:43:39]OFD Sender: No OFD packet to send [09:43:40]recv_with_timeout no data received [09:43:44]OFD Sender: No OFD packet to send [09:43:49]OFD Sender: No OFD packet to send [09:43:54]OFD Sender: No OFD packet to send [09:43:59]OFD Sender: No OFD packet to send [09:44:04]OFD Sender: No OFD packet to send [09:44:09]OFD Sender: No OFD packet to send [09:44:14]OFD Sender: No OFD packet to send [09:44:19]OFD Sender: No OFD packet to send [09:44:24]OFD Sender: No OFD packet to send [09:44:29]OFD Sender: No OFD packet to send [09:44:34]OFD Sender: No OFD packet to send [09:44:35]accept exits with 9 [09:44:35]New connection [09:44:35]New thread 3067493732 created [09:44:35]Thread 3067637092 joined [09:44:35]Waiting for new connection... [09:44:35] Sock 9.Parse request [09:44:35]Sock 9.Check first char [09:44:35]Sock 9.First char is OK [09:44:35]request: POST /json_proto HTTP/1.0 [09:44:35]Method: POST [09:44:35]URL: /json_proto [09:44:35]Method is POST - this is cgi request [09:44:35]url: /json_proto [09:44:35]query_string will be loaded in cgi processing [09:44:35]execute_cgi json_proto POST (null) [09:44:35]execute_cgi path=json_proto method=POST [09:44:35]POST find Content-Length [09:44:35]Host: 172.17.43.195:8080 [09:44:35]Content-Length: 663 [09:44:35]Content-Type: application/json [09:44:35] [09:44:35]POST finish read [09:44:35]Found Content-Length = 663 [09:44:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 22.670, "sum" : 1550.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1550.00, "total" : 1550.00, "payments": [ { "type": 0, "sum" : 1550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:35]execute_script... [09:44: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)952787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 22.670, "sum" : 1550.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1550.00, "total" : 1550.00, "payments": [ { "type": 0, "sum" : 1550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:35]POST & json_proto [09:44:35]process_json_proto [09:44:35]json parsed OK: [09:44:35]protocol is kg_v1.0 [09:44:35]action value=close_receipt [09:44:35]process_action close_receipt [09:44:35]cmd_close_receipt [09:44:35]MH_GetDate [09:44:35]Write to MH i2c: F0 00 00 8F 01 7F [09:44:35]Write i2c OK [09:44:35]MH_I2C_Read... [09:44:35]Read from MH i2c: F0 [09:44:35]MH_I2C_Read... [09:44:35]Read from MH i2c: F0 09 00 [09:44:35]MH_I2C_Read... [09:44:35]Read from MH i2c: F0 09 00 8F 01 00 03 A3 24 67 74 2C AD 66 6C [09:44:35]GetLastDocTimeStamp 1730453903 [09:44:35]current date 1730454275 [09:44:35]FM_GetShiftState [09:44:35]SAM_PROTO_GetShiftState [09:44:35]wFMCommunicate request_size=4 [09:44:35]MH_SAM_APDU [09:44:35]CAPDU: 80 13 01 00 [09:44:35]Write to MH i2c: E2 08 00 90 01 80 13 01 00 00 00 00 00 0E [09:44:35]Write i2c OK [09:44:35]MH_I2C_Read... [09:44:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:35]Read from MH i2c: E2 [09:44:35]MH_I2C_Read... [09:44:35]Read from MH i2c: E2 0E 00 [09:44:35]MH_I2C_Read... [09:44:35]Read from MH i2c: E2 0E 00 90 01 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 55 [09:44:35]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [09:44:35]wFMCommunicate OK [09:44:35]SAM_PROTO_GetShiftState done [09:44:35]FM_GetShiftState done [09:44:35]opened in 1730419605 [09:44:35]opened+sec_in_day 1730506005 [09:44:35]quantity*price = 155062 [09:44:35]sum+1 = 155064 [09:44:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 1550.00 Внесено: 1550.00 СДАЧА: 0.00 НСП 1% : 13.72 НДС 12% : 164.67 Наличными: 1550.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 58 01.11.2024 09:44 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73189 ФПД: 243652963237986 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T094435&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73189&fm=243652963237986&tin=02508201610067®Number=0000000000091644&sum=155000 [09:44:36]StoreToDocumentArchive [09:44:36]shift 558 fd 73189 [09:44:36]save to /storage/0558/doc_00073189 [09:44:36]save last doc name /storage/0558/doc_00073189 to /storage/kkm_last_doc_name [09:44:36]save OK [09:44:36]Clear old archive folders... [09:44:36]ProcessDocumentItem done err = 0, tmpTLVsize=244 [09:44:36]tlvbuf is 00532B10 [09:44:36]SAM_PROTO_ClearQueue [09:44:36]wFMCommunicate request_size=4 [09:44:36]MH_SAM_APDU [09:44:36]CAPDU: 80 09 00 00 [09:44:36]Write to MH i2c: E2 08 00 9D 01 80 09 00 00 00 00 00 00 10 [09:44:36]Write i2c OK [09:44:36]MH_I2C_Read... [09:44:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:36]Read from MH i2c: E2 [09:44:36]MH_I2C_Read... [09:44:36]Read from MH i2c: E2 03 00 [09:44:36]MH_I2C_Read... [09:44:36]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [09:44:36]RAPDU: 90 00 [09:44:36]wFMCommunicate OK [09:44:36]SAM_PROTO_ClearQueue done [09:44:36]KKMCreateOFDPacket [09:44:36]OFDProtocolAddRootSTLVToBuf [09:44:36]FM_MakeSignedData [09:44:36]FM_MakeSignedData [09:44:36]SAM_PROTO_SignData [09:44:36]wFMCommunicate request_size=4 [09:44:36]MH_SAM_APDU [09:44:36]CAPDU: 80 0D 01 02 [09:44:36]Write to MH i2c: E2 08 00 9E 01 80 0D 01 02 00 00 00 00 18 [09:44:36]Write i2c OK [09:44:36]MH_I2C_Read... [09:44:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:36]Read from MH i2c: E2 [09:44:36]MH_I2C_Read... [09:44:36]Read from MH i2c: E2 03 00 [09:44:36]MH_I2C_Read... [09:44:36]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [09:44:36]RAPDU: 90 00 [09:44:36]wFMCommunicate OK [09:44:36]wFMCommunicate request_size=253 [09:44:36]MH_SAM_APDU [09:44:36]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 8E 58 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 B7 5D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 5D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 40 00 00 00 00 07 04 06 00 78 5D 02 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 03 A3 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E5 1D 01 00 35 04 06 00 DD 99 E0 52 80 62 [09:44:36]Write to MH i2c: E2 00 01 9F 01 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 8E 58 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 B7 5D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 5D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 40 00 00 00 00 07 04 06 00 78 5D 02 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 03 A3 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E5 1D 01 00 35 04 06 00 DD 99 E0 52 80 62 00 00 23 [09:44:36]Write i2c OK [09:44:36]MH_I2C_Read... [09:44:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:37]Read from MH i2c: E2 [09:44:37]MH_I2C_Read... [09:44:37]Read from MH i2c: E2 03 00 [09:44:37]MH_I2C_Read... [09:44:37]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [09:44:37]RAPDU: 90 00 [09:44:37]wFMCommunicate OK [09:44:37]wFMCommunicate request_size=4 [09:44:37]MH_SAM_APDU [09:44:37]CAPDU: 80 0D 03 02 [09:44:37]Write to MH i2c: E2 08 00 A0 01 80 0D 03 02 00 00 00 00 1C [09:44:37]Write i2c OK [09:44:37]MH_I2C_Read... [09:44:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:37]Read from MH i2c: E2 [09:44:37]MH_I2C_Read... [09:44:37]Read from MH i2c: E2 0B 00 [09:44:37]MH_I2C_Read... [09:44:37]Read from MH i2c: E2 0B 00 A0 01 00 BA A7 83 F5 AC A2 95 15 90 00 EE [09:44:37]RAPDU: BA A7 83 F5 AC A2 95 15 90 00 [09:44:37]wFMCommunicate OK [09:44:37]SAM_PROTO_SignData done [09:44:37]FM_MakeSignedData done [09:44:37]CreateOFDProtocolMessage [09:44:37]wFMCommunicate request_size=4 [09:44:37]MH_SAM_APDU [09:44:37]CAPDU: 80 11 00 00 [09:44:37]Write to MH i2c: E2 08 00 A1 01 80 11 00 00 00 00 00 00 1C [09:44:37]Write i2c OK [09:44:37]MH_I2C_Read... [09:44:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:37]Read from MH i2c: E2 [09:44:37]MH_I2C_Read... [09:44:37]Read from MH i2c: E2 17 00 [09:44:37]MH_I2C_Read... [09:44:37]Read from MH i2c: E2 17 00 A1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 70 [09:44:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:44:37]wFMCommunicate OK [09:44:37]CreateOFDProtocolMessage done [09:44:37]OFDSenderStorePacket 73189 [09:44:37]StoreOFDPacket docnum=73189 [09:44:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 C9 B3 00 01 20 68 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 8E 58 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 B7 5D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 5D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 40 00 00 00 00 07 04 06 00 78 5D 02 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 03 A3 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E5 1D 01 00 35 04 06 00 DD 99 E0 52 80 62 BA A7 83 F5 AC A2 95 15 [09:44:37]CheckFolder [09:44:37]dirname=/storage/ofd_packets [09:44:37]CheckFolder done [09:44:37]ProducePacketName [09:44:37]name=ofd_packets/00073189 [09:44:37]NVStorageSaveData ofd_packets/00073189 [09:44:37]File name is /storage/ofd_packets/00073189 [09:44:37]Write 294 bytes [09:44:37]NVStorageSaveData done [09:44:37]OFDSenderStorePacket done [09:44:37]KKMCreateOFDPacket done [09:44:37]NVStorageSaveData kkm_last_timestamp [09:44:37]File name is /storage/kkm_last_timestamp [09:44:37]Write 4 bytes [09:44:37]NVStorageSaveData done [09:44:37]ExternCall_PrintAddStr [09:44:37]wPrintStart [09:44:37]Write to MH i2c: 01 00 00 A2 01 A3 [09:44:37]Write i2c OK [09:44:37]MH_I2C_Read... [09:44:37]Read from MH i2c: 01 [09:44:37]MH_I2C_Read... [09:44:37]Read from MH i2c: 01 07 00 [09:44:37]MH_I2C_Read... [09:44:37]Read from MH i2c: 01 07 00 A2 01 00 00 00 00 00 FF 0F B8 [09:44:37]RasterBufferAndPrint [09:44:37]line Счет N : (1)952787 [09:44:37]line ИНН: 02508201610067 [09:44:37]line Контрольно-Кассовый Чек [09:44:37]line ПРОДАЖА [09:44:37]line ТРК (МРК, ГНК) : 51 [09:44:37]line Товар: 50.50.0 [09:44:37]line Super 92 [09:44:37]line 22.670 * 68.40 [09:44:37]line = 1550.63 [09:44:37]line НДС 12% НСП 1% [09:44:37]line > о реализуемом товаре [09:44:37]line ОКРУГЛЕНИЕ: -0.63 [09:44:37]line ИТОГО: 1550.00 [09:44:37]line Внесено: 1550.00 [09:44:37]line СДАЧА: 0.00 [09:44:37]line НСП 1% : 13.72 [09:44:37]line НДС 12% : 164.67 [09:44:37]line Наличными: 1550.00 [09:44:37]line Безнал.: 0.00 [09:44:37]line Место: АЗС № 113 "Партнер Нефть" [09:44:37]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:44:37]line СНО: Общий режим [09:44:37]line Чек 58 01.11.2024 09:44 [09:44:37]line Смена: 558 ФФД: 1.0 [09:44:37]line ЗНМ: 0300000087 [09:44:37]line РНМ: 0000000000091644 [09:44:37]line Версия ККМ: 001 [09:44:37]line ФМ: 0000000000874662 [09:44:37]line ФД: 73189 [09:44:37]line ФПД: 243652963237986 [09:44:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T094435&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73189&fm=243652963237986&tin=02508201610067®Number=0000000000091644&sum=155000 [09:44:37]OFD Sender: Processing packet 73189 [packets to send 282, broken 281] [09:44:37]ProducePacketName [09:44:37]name=ofd_packets/00073189 [09:44:37]OFD Sender: To server: pG, [09:44:37]CommunicateWithHost lk.salyk.kg:30040 [09:44:37]ConnectInit lk.salyk.kg [09:44:37]written 0, free lines is 4095 [09:44:37]Write to MH i2c: 01 00 00 CD 01 CE [09:44:37]Write i2c OK [09:44:37]MH_I2C_Read... [09:44:37]Read from MH i2c: 01 [09:44:37]MH_I2C_Read... [09:44:37]Read from MH i2c: 01 07 00 [09:44:37]MH_I2C_Read... [09:44:37]Read from MH i2c: 01 07 00 CD 01 00 00 00 00 00 E1 0C C2 [09:44:37]RasterBufferAndPrint [09:44:37]line [09:44:37]line [09:44:37]line [09:44:37]line [09:44:37]line [09:44:37]written 0, free lines is 3303 [09:44:38]MH_Cut [09:44:38]Write to MH i2c: D1 01 00 D4 01 01 A7 [09:44:38]Write i2c OK [09:44:38]MH_I2C_Read... [09:44:38]Read from MH i2c: D1 [09:44:38]MH_I2C_Read... [09:44:38]Read from MH i2c: D1 01 00 [09:44:38]MH_I2C_Read... [09:44:38]Read from MH i2c: D1 01 00 D4 01 00 A6 [09:44:38]Write to MH i2c: 01 00 00 D5 01 D6 [09:44:38]Write i2c OK [09:44:38]MH_I2C_Read... [09:44:38]*** Cut start [09:44:38]*** Partial cut [09:44:38]*** CUTSNS_PIN = 1 [09:44:38]*** CUTSNS_PIN = 0 [09:44:38]Connected sock=10 [09:44:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 C9 B3 00 01 20 68 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 8E 58 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 B7 5D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 5D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 40 00 00 00 00 07 04 06 00 78 5D 02 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 03 A3 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E5 1D 01 00 35 04 06 00 DD 99 E0 52 80 62 BA A7 83 F5 AC A2 95 15 [09:44:39]*** Brake cut motor [09:44:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 1E B1 47 00 5B 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E5 1D 01 00 F4 03 04 00 B8 4D 24 67 B6 04 01 00 00 5F 52 E4 87 D7 58 8C 0E [09:44:39]CommunicateWithHost err = 0 [09:44:39]CheckOFDResponse [09:44:39]1017 (14) - 77093643461234 [09:44:39]1041 (16) - 0000000000874662 [09:44:39]1040 (4) - 73189 [09:44:39]1012 (4) - 01.11.2024 03:40 [09:44:39]1206 (1) - 0 [09:44:39]OFD Sender: Remove packet 73189 [09:44:39]ProducePacketName [09:44:39]name=ofd_packets/00073189 [09:44:39]NVStorageDeleteData [09:44:39]Read from MH i2c: 01 [09:44:39]MH_I2C_Read... [09:44:39]*** Stop cut motor [09:44:39]*** Cut end [09:44:39]Read from MH i2c: 01 07 00 [09:44:39]MH_I2C_Read... [09:44:39]Read from MH i2c: 01 07 00 D5 01 00 00 00 00 00 FF 0F EB [09:44:39]process_action close_receipt done [09:44:39]requested_data is exist [09:44:39]produce_requested_data [09:44:39]requested_item fm.sn is exist - process it [09:44:39]wFMCommunicate request_size=4 [09:44:39]MH_SAM_APDU [09:44:39]CAPDU: 80 11 00 00 [09:44:39]Write to MH i2c: E2 08 00 D6 01 80 11 00 00 00 00 00 00 51 [09:44:39]Write i2c OK [09:44:39]MH_I2C_Read... [09:44:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:39]Read from MH i2c: E2 [09:44:39]MH_I2C_Read... [09:44:39]Read from MH i2c: E2 17 00 [09:44:39]MH_I2C_Read... [09:44:39]Read from MH i2c: E2 17 00 D6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A5 [09:44:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:44:39]wFMCommunicate OK [09:44:39]requested_item fd.num is exist - process it [09:44:39]SAM_PROTO_GetFieldsCounters [09:44:39]wFMCommunicate request_size=4 [09:44:39]MH_SAM_APDU [09:44:39]CAPDU: 80 13 00 00 [09:44:39]Write to MH i2c: E2 08 00 D7 01 80 13 00 00 00 00 00 00 54 [09:44:39]Write i2c OK [09:44:39]MH_I2C_Read... [09:44:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:39]Read from MH i2c: E2 [09:44:39]MH_I2C_Read... [09:44:39]Read from MH i2c: E2 62 00 [09:44:39]MH_I2C_Read... [09:44:39]Read from MH i2c: E2 62 00 D7 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 E5 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [09:44:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 E5 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:44:39]wFMCommunicate OK [09:44:39]SAM_PROTO_GetFieldsCounters done [09:44:39]requested_item shift.num is exist - process it [09:44:39]requested_item shift.opened is exist - process it [09:44:39]req_shift_opened [09:44:39]FM_GetShiftState [09:44:39]SAM_PROTO_GetShiftState [09:44:39]wFMCommunicate request_size=4 [09:44:39]MH_SAM_APDU [09:44:39]CAPDU: 80 13 01 00 [09:44:39]Write to MH i2c: E2 08 00 D8 01 80 13 01 00 00 00 00 00 56 [09:44:39]Write i2c OK [09:44:39]MH_I2C_Read... [09:44:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:39]Read from MH i2c: E2 [09:44:39]MH_I2C_Read... [09:44:39]Read from MH i2c: E2 0E 00 [09:44:39]MH_I2C_Read... [09:44:39]Read from MH i2c: E2 0E 00 D8 01 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 9D [09:44:39]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [09:44:39]wFMCommunicate OK [09:44:39]SAM_PROTO_GetShiftState done [09:44:39]FM_GetShiftState done [09:44:39]req_shift_opened done [09:44:39]requested_item shift.open_date is exist - process it [09:44:39]req_shift_open_date [09:44:39]req_shift_open_date done [09:44:39]produce_requested_data done [09:44:39]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73189,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [09:44:39]process_action_free close_receipt [09:44:39]json_value_free [09:44:39]json_value_free done [09:44:39]process_json_proto returns [09:44:39]Send response to host [09:44:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73189,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [09:44:39]free response buf [09:44:39]execute_script done [09:44:39]execute_script returns [09:44:39]free content buf [09:44:39]Sock 9.Close socket [09:44:39]Sock 9.Thread stoped [09:44:39]OFD Sender: No OFD packet to send [09:44:44]OFD Sender: No OFD packet to send [09:44:49]OFD Sender: No OFD packet to send [09:44:54]OFD Sender: No OFD packet to send [09:44:59]OFD Sender: No OFD packet to send [09:45:00]accept exits with 8 [09:45:00]New connection [09:45:00]New thread 3067637092 created [09:45:00]Thread 3067493732 joined [09:45:00]Waiting for new connection... [09:45:00] Sock 8.Parse request [09:45:00]Sock 8.Check first char [09:45:00]Sock 8.First char is OK [09:45:00]request: POST /json_proto HTTP/1.0 [09:45:00]Method: POST [09:45:00]URL: /json_proto [09:45:00]Method is POST - this is cgi request [09:45:00]url: /json_proto [09:45:00]query_string will be loaded in cgi processing [09:45:00]execute_cgi json_proto POST (null) [09:45:00]execute_cgi path=json_proto method=POST [09:45:00]POST find Content-Length [09:45:00]Host: 172.17.43.195:8080 [09:45:00]Content-Length: 681 [09:45:00]Content-Type: application/json [09:45:00] [09:45:00]POST finish read [09:45:00]Found Content-Length = 681 [09:45:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 15.430, "sum" : 600.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:00]execute_script... [09:45:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 15.430, "sum" : 600.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:00]POST & json_proto [09:45:00]process_json_proto [09:45:00]json parsed OK: [09:45:00]protocol is kg_v1.0 [09:45:00]action value=close_receipt [09:45:00]process_action close_receipt [09:45:00]cmd_close_receipt [09:45:00]MH_GetDate [09:45:00]Write to MH i2c: F0 00 00 D9 01 C9 [09:45:00]Write i2c OK [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: F0 [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: F0 09 00 [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: F0 09 00 D9 01 00 1C A3 24 67 74 2C AD 66 CF [09:45:00]GetLastDocTimeStamp 1730454275 [09:45:00]current date 1730454300 [09:45:00]FM_GetShiftState [09:45:00]SAM_PROTO_GetShiftState [09:45:00]wFMCommunicate request_size=4 [09:45:00]MH_SAM_APDU [09:45:00]CAPDU: 80 13 01 00 [09:45:00]Write to MH i2c: E2 08 00 DA 01 80 13 01 00 00 00 00 00 58 [09:45:00]Write i2c OK [09:45:00]MH_I2C_Read... [09:45:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:00]Read from MH i2c: E2 [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: E2 0E 00 [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: E2 0E 00 DA 01 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 9F [09:45:00]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [09:45:00]wFMCommunicate OK [09:45:00]SAM_PROTO_GetShiftState done [09:45:00]FM_GetShiftState done [09:45:00]opened in 1730419605 [09:45:00]opened+sec_in_day 1730506005 [09:45:00]quantity*price = 60022 [09:45:00]sum+1 = 60024 [09:45:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 59 01.11.2024 09:45 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73190 ФПД: 194281018665413 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T094500&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73190&fm=194281018665413&tin=02508201610067®Number=0000000000091644&sum=60000 [09:45:01]StoreToDocumentArchive [09:45:01]shift 558 fd 73190 [09:45:01]save to /storage/0558/doc_00073190 [09:45:01]save last doc name /storage/0558/doc_00073190 to /storage/kkm_last_doc_name [09:45:01]save OK [09:45:01]Clear old archive folders... [09:45:01]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:45:01]tlvbuf is 005BF330 [09:45:01]SAM_PROTO_ClearQueue [09:45:01]wFMCommunicate request_size=4 [09:45:01]MH_SAM_APDU [09:45:01]CAPDU: 80 09 00 00 [09:45:01]Write to MH i2c: E2 08 00 E7 01 80 09 00 00 00 00 00 00 5A [09:45:01]Write i2c OK [09:45:01]MH_I2C_Read... [09:45:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:45:01]Read from MH i2c: E2 [09:45:01]MH_I2C_Read... [09:45:01]Read from MH i2c: E2 03 00 [09:45:01]MH_I2C_Read... [09:45:01]Read from MH i2c: E2 03 00 E7 01 00 90 00 5C [09:45:01]RAPDU: 90 00 [09:45:01]wFMCommunicate OK [09:45:01]SAM_PROTO_ClearQueue done [09:45:01]KKMCreateOFDPacket [09:45:01]OFDProtocolAddRootSTLVToBuf [09:45:01]FM_MakeSignedData [09:45:01]FM_MakeSignedData [09:45:01]SAM_PROTO_SignData [09:45:01]wFMCommunicate request_size=4 [09:45:01]MH_SAM_APDU [09:45:01]CAPDU: 80 0D 01 02 [09:45:01]Write to MH i2c: E2 08 00 E8 01 80 0D 01 02 00 00 00 00 62 [09:45:01]Write i2c OK [09:45:01]MH_I2C_Read... [09:45:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:45:01]Read from MH i2c: E2 [09:45:01]MH_I2C_Read... [09:45:01]Read from MH i2c: E2 03 00 [09:45:01]MH_I2C_Read... [09:45:01]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [09:45:01]RAPDU: 90 00 [09:45:01]wFMCommunicate OK [09:45:01]wFMCommunicate request_size=255 [09:45:01]MH_SAM_APDU [09:45:01]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 E6 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 3B 00 00 00 F4 03 04 00 1C A3 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E6 1D 01 00 35 04 06 00 B0 B2 [09:45:01]Write to MH i2c: E2 02 01 E9 01 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 E6 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 3B 00 00 00 F4 03 04 00 1C A3 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E6 1D 01 00 35 04 06 00 B0 B2 00 00 F7 [09:45:01]Write i2c OK [09:45:01]MH_I2C_Read... [09:45:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:02]Read from MH i2c: E2 [09:45:02]MH_I2C_Read... [09:45:02]Read from MH i2c: E2 03 00 [09:45:02]MH_I2C_Read... [09:45:02]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [09:45:02]RAPDU: 90 00 [09:45:02]wFMCommunicate OK [09:45:02]wFMCommunicate request_size=9 [09:45:02]MH_SAM_APDU [09:45:02]CAPDU: 80 0D 02 02 04 93 1A A9 C5 [09:45:02]Write to MH i2c: E2 0C 00 EA 01 80 0D 02 02 04 00 93 1A A9 C5 00 00 88 [09:45:02]Write i2c OK [09:45:02]MH_I2C_Read... [09:45:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:02]Read from MH i2c: E2 [09:45:02]MH_I2C_Read... [09:45:02]Read from MH i2c: E2 03 00 [09:45:02]MH_I2C_Read... [09:45:02]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [09:45:02]RAPDU: 90 00 [09:45:02]wFMCommunicate OK [09:45:02]wFMCommunicate request_size=4 [09:45:02]MH_SAM_APDU [09:45:02]CAPDU: 80 0D 03 02 [09:45:02]Write to MH i2c: E2 08 00 EB 01 80 0D 03 02 00 00 00 00 67 [09:45:02]Write i2c OK [09:45:02]MH_I2C_Read... [09:45:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:45:02]Read from MH i2c: E2 [09:45:02]MH_I2C_Read... [09:45:02]Read from MH i2c: E2 0B 00 [09:45:02]MH_I2C_Read... [09:45:02]Read from MH i2c: E2 0B 00 EB 01 00 58 26 12 2E B8 F0 3A 39 90 00 41 [09:45:02]RAPDU: 58 26 12 2E B8 F0 3A 39 90 00 [09:45:02]wFMCommunicate OK [09:45:02]SAM_PROTO_SignData done [09:45:02]FM_MakeSignedData done [09:45:02]CreateOFDProtocolMessage [09:45:02]wFMCommunicate request_size=4 [09:45:02]MH_SAM_APDU [09:45:02]CAPDU: 80 11 00 00 [09:45:02]Write to MH i2c: E2 08 00 EC 01 80 11 00 00 00 00 00 00 67 [09:45:02]Write i2c OK [09:45:02]MH_I2C_Read... [09:45:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:02]Read from MH i2c: E2 [09:45:02]MH_I2C_Read... [09:45:02]Read from MH i2c: E2 17 00 [09:45:02]MH_I2C_Read... [09:45:02]Read from MH i2c: E2 17 00 EC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 BB [09:45:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:45:02]wFMCommunicate OK [09:45:02]CreateOFDProtocolMessage done [09:45:02]OFDSenderStorePacket 73190 [09:45:02]StoreOFDPacket docnum=73190 [09:45:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 54 D1 06 01 A9 E4 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 E6 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 3B 00 00 00 F4 03 04 00 1C A3 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E6 1D 01 00 35 04 06 00 B0 B2 93 1A A9 C5 58 26 12 2E B8 F0 3A 39 [09:45:02]CheckFolder [09:45:02]dirname=/storage/ofd_packets [09:45:02]CheckFolder done [09:45:02]ProducePacketName [09:45:02]name=ofd_packets/00073190 [09:45:02]NVStorageSaveData ofd_packets/00073190 [09:45:02]File name is /storage/ofd_packets/00073190 [09:45:02]Write 300 bytes [09:45:02]NVStorageSaveData done [09:45:02]OFDSenderStorePacket done [09:45:02]KKMCreateOFDPacket done [09:45:02]NVStorageSaveData kkm_last_timestamp [09:45:02]File name is /storage/kkm_last_timestamp [09:45:02]Write 4 bytes [09:45:02]NVStorageSaveData done [09:45:02]ExternCall_PrintAddStr [09:45:02]wPrintStart [09:45:02]Write to MH i2c: 01 00 00 ED 01 EE [09:45:02]Write i2c OK [09:45:02]MH_I2C_Read... [09:45:02]Read from MH i2c: 01 [09:45:02]MH_I2C_Read... [09:45:02]Read from MH i2c: 01 07 00 [09:45:02]MH_I2C_Read... [09:45:02]Read from MH i2c: 01 07 00 ED 01 00 00 00 00 00 FF 0F 03 [09:45:02]RasterBufferAndPrint [09:45:02]line Счет N : (1)952788 [09:45:02]line ИНН: 02508201610067 [09:45:02]line Контрольно-Кассовый Чек [09:45:02]line ПРОДАЖА [09:45:02]line ТРК (МРК, ГНК) : 71 [09:45:02]line Товар: 2711190000 [09:45:02]line ГАЗ-К-3 [09:45:02]line 15.430 * 38.90 [09:45:02]line = 600.23 [09:45:02]line НДС 12% НСП 1% [09:45:02]line > о реализуемом товаре [09:45:02]line ОКРУГЛЕНИЕ: -0.23 [09:45:02]line ИТОГО: 600.00 [09:45:02]line Внесено: 600.00 [09:45:02]line СДАЧА: 0.00 [09:45:02]line НСП 1% : 5.31 [09:45:02]line НДС 12% : 63.74 [09:45:02]line Наличными: 600.00 [09:45:02]line Безнал.: 0.00 [09:45:02]line Место: АЗС № 113 "Партнер Нефть" [09:45:02]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:45:02]line СНО: Общий режим [09:45:02]line Чек 59 01.11.2024 09:45 [09:45:02]line Смена: 558 ФФД: 1.0 [09:45:02]line ЗНМ: 0300000087 [09:45:02]line РНМ: 0000000000091644 [09:45:02]line Версия ККМ: 001 [09:45:02]line ФМ: 0000000000874662 [09:45:02]line ФД: 73190 [09:45:02]line ФПД: 194281018665413 [09:45:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T094500&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73190&fm=194281018665413&tin=02508201610067®Number=0000000000091644&sum=60000 [09:45:02]written 0, free lines is 4095 [09:45:02]OFD Sender: Processing packet 73190 [packets to send 282, broken 281] [09:45:02]ProducePacketName [09:45:02]name=ofd_packets/00073190 [09:45:02]OFD Sender: To server: pG, [09:45:02]CommunicateWithHost lk.salyk.kg:30040 [09:45:02]ConnectInit lk.salyk.kg [09:45:02]Write to MH i2c: 01 00 00 18 02 1A [09:45:02]Write i2c OK [09:45:02]MH_I2C_Read... [09:45:02]Read from MH i2c: 01 [09:45:02]MH_I2C_Read... [09:45:02]Read from MH i2c: 01 07 00 [09:45:02]MH_I2C_Read... [09:45:02]Read from MH i2c: 01 07 00 18 02 00 00 00 00 00 D2 0C FF [09:45:02]RasterBufferAndPrint [09:45:02]line [09:45:02]line [09:45:02]line [09:45:02]line [09:45:02]line [09:45:02]written 0, free lines is 3287 [09:45:02]MH_Cut [09:45:02]Write to MH i2c: D1 01 00 1F 02 01 F3 [09:45:02]Write i2c OK [09:45:02]MH_I2C_Read... [09:45:02]Read from MH i2c: D1 [09:45:02]MH_I2C_Read... [09:45:02]Read from MH i2c: D1 01 00 [09:45:02]MH_I2C_Read... [09:45:02]Read from MH i2c: D1 01 00 1F 02 00 F2 [09:45:02]Write to MH i2c: 01 00 00 20 02 22 [09:45:02]Write i2c OK [09:45:02]MH_I2C_Read... [09:45:03]*** Cut start [09:45:03]*** Partial cut [09:45:03]*** CUTSNS_PIN = 1 [09:45:03]*** CUTSNS_PIN = 0 [09:45:03]*** Brake cut motor [09:45:03]recv_with_timeout no data received [09:45:04]Read from MH i2c: 01 [09:45:04]MH_I2C_Read... [09:45:04]*** Stop cut motor [09:45:04]*** Cut end [09:45:04]Read from MH i2c: 01 07 00 [09:45:04]MH_I2C_Read... [09:45:04]Read from MH i2c: 01 07 00 20 02 00 00 00 00 00 FF 0F 37 [09:45:04]process_action close_receipt done [09:45:04]requested_data is exist [09:45:04]produce_requested_data [09:45:04]requested_item fm.sn is exist - process it [09:45:04]wFMCommunicate request_size=4 [09:45:04]MH_SAM_APDU [09:45:04]CAPDU: 80 11 00 00 [09:45:04]Write to MH i2c: E2 08 00 21 02 80 11 00 00 00 00 00 00 9D [09:45:04]Write i2c OK [09:45:04]MH_I2C_Read... [09:45:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:04]Read from MH i2c: E2 [09:45:04]MH_I2C_Read... [09:45:04]Read from MH i2c: E2 17 00 [09:45:04]MH_I2C_Read... [09:45:04]Read from MH i2c: E2 17 00 21 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 F1 [09:45:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:45:04]wFMCommunicate OK [09:45:04]requested_item fd.num is exist - process it [09:45:04]SAM_PROTO_GetFieldsCounters [09:45:04]wFMCommunicate request_size=4 [09:45:04]MH_SAM_APDU [09:45:04]CAPDU: 80 13 00 00 [09:45:04]Write to MH i2c: E2 08 00 22 02 80 13 00 00 00 00 00 00 A0 [09:45:04]Write i2c OK [09:45:04]MH_I2C_Read... [09:45:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:04]Read from MH i2c: E2 [09:45:04]MH_I2C_Read... [09:45:04]Read from MH i2c: E2 62 00 [09:45:04]MH_I2C_Read... [09:45:04]Read from MH i2c: E2 62 00 22 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 E6 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [09:45:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 E6 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:45:04]wFMCommunicate OK [09:45:04]SAM_PROTO_GetFieldsCounters done [09:45:04]requested_item shift.num is exist - process it [09:45:04]requested_item shift.opened is exist - process it [09:45:04]req_shift_opened [09:45:04]FM_GetShiftState [09:45:04]SAM_PROTO_GetShiftState [09:45:04]wFMCommunicate request_size=4 [09:45:04]MH_SAM_APDU [09:45:04]CAPDU: 80 13 01 00 [09:45:04]Write to MH i2c: E2 08 00 23 02 80 13 01 00 00 00 00 00 A2 [09:45:04]Connected sock=11 [09:45:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 54 D1 06 01 A9 E4 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 E6 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 3B 00 00 00 F4 03 04 00 1C A3 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E6 1D 01 00 35 04 06 00 B0 B2 93 1A A9 C5 58 26 12 2E B8 F0 3A 39 [09:45:04]Write i2c OK [09:45:04]MH_I2C_Read... [09:45:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:04]Read from MH i2c: E2 [09:45:04]MH_I2C_Read... [09:45:04]Read from MH i2c: E2 0E 00 [09:45:04]MH_I2C_Read... [09:45:04]Read from MH i2c: E2 0E 00 23 02 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 E9 [09:45:04]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [09:45:04]wFMCommunicate OK [09:45:04]SAM_PROTO_GetShiftState done [09:45:04]FM_GetShiftState done [09:45:04]req_shift_opened done [09:45:04]requested_item shift.open_date is exist - process it [09:45:04]req_shift_open_date [09:45:04]req_shift_open_date done [09:45:04]produce_requested_data done [09:45:04]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73190,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [09:45:04]process_action_free close_receipt [09:45:04]json_value_free [09:45:04]json_value_free done [09:45:04]process_json_proto returns [09:45:04]Send response to host [09:45:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73190,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [09:45:04]free response buf [09:45:04]execute_script done [09:45:04]execute_script returns [09:45:04]free content buf [09:45:04]Sock 8.Close socket [09:45:04]Sock 8.Thread stoped [09:45:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 B9 75 47 00 49 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 34 36 36 32 10 04 04 00 E6 1D 01 00 F4 03 04 00 D1 4D 24 67 B6 04 01 00 00 DF 1A D8 9D 3B B2 DB 4B [09:45:04]CommunicateWithHost err = 0 [09:45:04]CheckOFDResponse [09:45:04]1017 (14) - 77093643461234 [09:45:04]1041 (16) - 0000000000874662 [09:45:04]1040 (4) - 73190 [09:45:04]1012 (4) - 01.11.2024 03:41 [09:45:04]1206 (1) - 0 [09:45:04]OFD Sender: Remove packet 73190 [09:45:04]ProducePacketName [09:45:04]name=ofd_packets/00073190 [09:45:04]NVStorageDeleteData [09:45:05]OFD Sender: No OFD packet to send [09:45:10]OFD Sender: No OFD packet to send [09:45:15]OFD Sender: No OFD packet to send [09:45:20]OFD Sender: No OFD packet to send [09:45:25]OFD Sender: No OFD packet to send [09:45:30]OFD Sender: No OFD packet to send [09:45:31]recv_with_timeout no data received [09:45:35]OFD Sender: No OFD packet to send [09:45:40]OFD Sender: No OFD packet to send [09:45:45]OFD Sender: No OFD packet to send [09:45:46]recv_with_timeout no data received [09:45:50]OFD Sender: No OFD packet to send [09:45:55]OFD Sender: No OFD packet to send [09:46:00]OFD Sender: No OFD packet to send [09:46:05]OFD Sender: No OFD packet to send [09:46:06]recv_with_timeout no data received [09:46:10]OFD Sender: No OFD packet to send [09:46:15]OFD Sender: No OFD packet to send [09:46:20]OFD Sender: No OFD packet to send [09:46:25]OFD Sender: No OFD packet to send [09:46:30]OFD Sender: No OFD packet to send [09:46:35]OFD Sender: No OFD packet to send [09:46:40]OFD Sender: No OFD packet to send [09:46:41]recv_with_timeout no data received [09:46:45]OFD Sender: No OFD packet to send [09:46:50]OFD Sender: No OFD packet to send [09:46:55]OFD Sender: No OFD packet to send [09:47:00]OFD Sender: No OFD packet to send [09:47:05]OFD Sender: No OFD packet to send [09:47:10]OFD Sender: No OFD packet to send [09:47:15]OFD Sender: No OFD packet to send [09:47:20]OFD Sender: No OFD packet to send [09:47:25]OFD Sender: No OFD packet to send [09:47:30]OFD Sender: No OFD packet to send [09:47:35]OFD Sender: No OFD packet to send [09:47:40]OFD Sender: No OFD packet to send [09:47:45]OFD Sender: No OFD packet to send [09:47:50]OFD Sender: No OFD packet to send [09:47:54]recv_with_timeout no data received [09:47:55]OFD Sender: No OFD packet to send [09:47:57]accept exits with 10 [09:47:57]New connection [09:47:57]New thread 3067493732 created [09:47:57]Thread 3067637092 joined [09:47:57]Waiting for new connection... [09:47:57] Sock 10.Parse request [09:47:57]Sock 10.Check first char [09:47:57]Sock 10.First char is OK [09:47:57]request: POST /json_proto HTTP/1.0 [09:47:57]Method: POST [09:47:57]URL: /json_proto [09:47:57]Method is POST - this is cgi request [09:47:57]url: /json_proto [09:47:57]query_string will be loaded in cgi processing [09:47:57]execute_cgi json_proto POST (null) [09:47:57]execute_cgi path=json_proto method=POST [09:47:57]POST find Content-Length [09:47:57]Host: 172.17.43.195:8080 [09:47:57]Content-Length: 685 [09:47:57]Content-Type: application/json [09:47:57] [09:47:57]POST finish read [09:47:57]Found Content-Length = 685 [09:47:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 39.080, "sum" : 1520.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1520.00, "total" : 1520.00, "payments": [ { "type": 0, "sum" : 1520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:57]execute_script... [09:47: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)952789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 39.080, "sum" : 1520.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1520.00, "total" : 1520.00, "payments": [ { "type": 0, "sum" : 1520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:57]POST & json_proto [09:47:57]process_json_proto [09:47:57]json parsed OK: [09:47:57]protocol is kg_v1.0 [09:47:57]action value=close_receipt [09:47:57]process_action close_receipt [09:47:57]cmd_close_receipt [09:47:57]MH_GetDate [09:47:57]Write to MH i2c: F0 00 00 24 02 15 [09:47:57]Write i2c OK [09:47:57]MH_I2C_Read... [09:47:57]Read from MH i2c: F0 [09:47:57]MH_I2C_Read... [09:47:57]Read from MH i2c: F0 09 00 [09:47:57]MH_I2C_Read... [09:47:57]Read from MH i2c: F0 09 00 24 02 00 CD A3 24 67 74 2C AD 66 CC [09:47:57]GetLastDocTimeStamp 1730454300 [09:47:57]current date 1730454477 [09:47:57]FM_GetShiftState [09:47:57]SAM_PROTO_GetShiftState [09:47:57]wFMCommunicate request_size=4 [09:47:57]MH_SAM_APDU [09:47:57]CAPDU: 80 13 01 00 [09:47:57]Write to MH i2c: E2 08 00 25 02 80 13 01 00 00 00 00 00 A4 [09:47:57]Write i2c OK [09:47:57]MH_I2C_Read... [09:47:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:57]Read from MH i2c: E2 [09:47:57]MH_I2C_Read... [09:47:57]Read from MH i2c: E2 0E 00 [09:47:57]MH_I2C_Read... [09:47:57]Read from MH i2c: E2 0E 00 25 02 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 EB [09:47:57]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [09:47:57]wFMCommunicate OK [09:47:57]SAM_PROTO_GetShiftState done [09:47:57]FM_GetShiftState done [09:47:57]opened in 1730419605 [09:47:57]opened+sec_in_day 1730506005 [09:47:57]quantity*price = 152021 [09:47:57]sum+1 = 152022 [09:47:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 1520.00 Внесено: 1520.00 СДАЧА: 0.00 НСП 1% : 13.45 НДС 12% : 161.44 Наличными: 1520.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 60 01.11.2024 09:47 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73191 ФПД: 104217814544788 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T094757&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73191&fm=104217814544788&tin=02508201610067®Number=0000000000091644&sum=152000 [09:47:58]StoreToDocumentArchive [09:47:58]shift 558 fd 73191 [09:47:58]save to /storage/0558/doc_00073191 [09:47:58]save last doc name /storage/0558/doc_00073191 to /storage/kkm_last_doc_name [09:47:58]save OK [09:47:58]Clear old archive folders... [09:47:58]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:47:58]tlvbuf is 005BA0A0 [09:47:58]SAM_PROTO_ClearQueue [09:47:58]wFMCommunicate request_size=4 [09:47:58]MH_SAM_APDU [09:47:58]CAPDU: 80 09 00 00 [09:47:58]Write to MH i2c: E2 08 00 32 02 80 09 00 00 00 00 00 00 A6 [09:47:58]Write i2c OK [09:47:58]MH_I2C_Read... [09:47:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:58]Read from MH i2c: E2 [09:47:58]MH_I2C_Read... [09:47:58]Read from MH i2c: E2 03 00 [09:47:58]MH_I2C_Read... [09:47:58]Read from MH i2c: E2 03 00 32 02 00 90 00 A8 [09:47:58]RAPDU: 90 00 [09:47:58]wFMCommunicate OK [09:47:58]SAM_PROTO_ClearQueue done [09:47:58]KKMCreateOFDPacket [09:47:58]OFDProtocolAddRootSTLVToBuf [09:47:58]FM_MakeSignedData [09:47:58]FM_MakeSignedData [09:47:58]SAM_PROTO_SignData [09:47:58]wFMCommunicate request_size=4 [09:47:58]MH_SAM_APDU [09:47:58]CAPDU: 80 0D 01 02 [09:47:58]Write to MH i2c: E2 08 00 33 02 80 0D 01 02 00 00 00 00 AE [09:47:58]Write i2c OK [09:47:58]MH_I2C_Read... [09:47:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:58]Read from MH i2c: E2 [09:47:58]MH_I2C_Read... [09:47:58]Read from MH i2c: E2 03 00 [09:47:58]MH_I2C_Read... [09:47:58]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [09:47:58]RAPDU: 90 00 [09:47:58]wFMCommunicate OK [09:47:58]wFMCommunicate request_size=255 [09:47:58]MH_SAM_APDU [09:47:58]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 A8 98 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 D5 51 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 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 10 3F 00 00 00 00 07 04 06 00 C0 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 3C 00 00 00 F4 03 04 00 CD A3 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E7 1D 01 00 35 04 06 00 5E C9 [09:47:58]Write to MH i2c: E2 02 01 34 02 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 A8 98 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 D5 51 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 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 10 3F 00 00 00 00 07 04 06 00 C0 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 3C 00 00 00 F4 03 04 00 CD A3 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E7 1D 01 00 35 04 06 00 5E C9 00 00 54 [09:47:58]Write i2c OK [09:47:58]MH_I2C_Read... [09:47:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:59]Read from MH i2c: E2 [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: E2 03 00 [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [09:47:59]RAPDU: 90 00 [09:47:59]wFMCommunicate OK [09:47:59]wFMCommunicate request_size=9 [09:47:59]MH_SAM_APDU [09:47:59]CAPDU: 80 0D 02 02 04 19 D0 B1 94 [09:47:59]Write to MH i2c: E2 0C 00 35 02 80 0D 02 02 04 00 19 D0 B1 94 00 00 E7 [09:47:59]Write i2c OK [09:47:59]MH_I2C_Read... [09:47:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:59]Read from MH i2c: E2 [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: E2 03 00 [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: E2 03 00 35 02 00 90 00 AB [09:47:59]RAPDU: 90 00 [09:47:59]wFMCommunicate OK [09:47:59]wFMCommunicate request_size=4 [09:47:59]MH_SAM_APDU [09:47:59]CAPDU: 80 0D 03 02 [09:47:59]Write to MH i2c: E2 08 00 36 02 80 0D 03 02 00 00 00 00 B3 [09:47:59]Write i2c OK [09:47:59]MH_I2C_Read... [09:47:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:59]Read from MH i2c: E2 [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: E2 0B 00 [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: E2 0B 00 36 02 00 68 66 ED AB B0 9E A8 5A 90 00 6A [09:47:59]RAPDU: 68 66 ED AB B0 9E A8 5A 90 00 [09:47:59]wFMCommunicate OK [09:47:59]SAM_PROTO_SignData done [09:47:59]FM_MakeSignedData done [09:47:59]CreateOFDProtocolMessage [09:47:59]wFMCommunicate request_size=4 [09:47:59]MH_SAM_APDU [09:47:59]CAPDU: 80 11 00 00 [09:47:59]Write to MH i2c: E2 08 00 37 02 80 11 00 00 00 00 00 00 B3 [09:47:59]Write i2c OK [09:47:59]MH_I2C_Read... [09:47:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:59]Read from MH i2c: E2 [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: E2 17 00 [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: E2 17 00 37 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 07 [09:47:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:47:59]wFMCommunicate OK [09:47:59]CreateOFDProtocolMessage done [09:47:59]OFDSenderStorePacket 73191 [09:47:59]StoreOFDPacket docnum=73191 [09:47:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 57 2E 06 01 22 0F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 A8 98 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 D5 51 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 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 10 3F 00 00 00 00 07 04 06 00 C0 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 3C 00 00 00 F4 03 04 00 CD A3 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E7 1D 01 00 35 04 06 00 5E C9 19 D0 B1 94 68 66 ED AB B0 9E A8 5A [09:47:59]CheckFolder [09:47:59]dirname=/storage/ofd_packets [09:47:59]CheckFolder done [09:47:59]ProducePacketName [09:47:59]name=ofd_packets/00073191 [09:47:59]NVStorageSaveData ofd_packets/00073191 [09:47:59]File name is /storage/ofd_packets/00073191 [09:47:59]Write 300 bytes [09:47:59]NVStorageSaveData done [09:47:59]OFDSenderStorePacket done [09:47:59]KKMCreateOFDPacket done [09:47:59]NVStorageSaveData kkm_last_timestamp [09:47:59]File name is /storage/kkm_last_timestamp [09:47:59]Write 4 bytes [09:47:59]NVStorageSaveData done [09:47:59]ExternCall_PrintAddStr [09:47:59]wPrintStart [09:47:59]Write to MH i2c: 01 00 00 38 02 3A [09:47:59]Write i2c OK [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: 01 [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: 01 07 00 [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: 01 07 00 38 02 00 00 00 00 00 FF 0F 4F [09:47:59]RasterBufferAndPrint [09:47:59]line Счет N : (1)952789 [09:47:59]line ИНН: 02508201610067 [09:47:59]line Контрольно-Кассовый Чек [09:47:59]line ПРОДАЖА [09:47:59]line ТРК (МРК, ГНК) : 71 [09:47:59]line Товар: 2711190000 [09:47:59]line ГАЗ-К-3 [09:47:59]line 39.080 * 38.90 [09:47:59]line = 1520.21 [09:47:59]line НДС 12% НСП 1% [09:47:59]line > о реализуемом товаре [09:47:59]line ОКРУГЛЕНИЕ: -0.21 [09:47:59]line ИТОГО: 1520.00 [09:47:59]line Внесено: 1520.00 [09:47:59]line СДАЧА: 0.00 [09:47:59]line НСП 1% : 13.45 [09:47:59]line НДС 12% : 161.44 [09:47:59]line Наличными: 1520.00 [09:47:59]line Безнал.: 0.00 [09:47:59]line Место: АЗС № 113 "Партнер Нефть" [09:47:59]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:47:59]line СНО: Общий режим [09:47:59]line Чек 60 01.11.2024 09:47 [09:47:59]line Смена: 558 ФФД: 1.0 [09:47:59]line ЗНМ: 0300000087 [09:47:59]line РНМ: 0000000000091644 [09:47:59]line Версия ККМ: 001 [09:47:59]line ФМ: 0000000000874662 [09:47:59]line ФД: 73191 [09:47:59]line ФПД: 104217814544788 [09:47:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T094757&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73191&fm=104217814544788&tin=02508201610067®Number=0000000000091644&sum=152000 [09:47:59]written 0, free lines is 4095 [09:47:59]OFD Sender: Processing packet 73191 [packets to send 282, broken 281] [09:47:59]ProducePacketName [09:47:59]name=ofd_packets/00073191 [09:47:59]OFD Sender: To server: pG, [09:47:59]CommunicateWithHost lk.salyk.kg:30040 [09:47:59]ConnectInit lk.salyk.kg [09:47:59]Write to MH i2c: 01 00 00 63 02 65 [09:47:59]Write i2c OK [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: 01 [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: 01 07 00 [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: 01 07 00 63 02 00 00 00 00 00 CF 0C 47 [09:47:59]RasterBufferAndPrint [09:47:59]line [09:47:59]line [09:47:59]line [09:47:59]line [09:47:59]line [09:47:59]written 0, free lines is 3283 [09:47:59]MH_Cut [09:47:59]Write to MH i2c: D1 01 00 6A 02 01 3E [09:47:59]Write i2c OK [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: D1 [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: D1 01 00 [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: D1 01 00 6A 02 00 3D [09:47:59]Write to MH i2c: 01 00 00 6B 02 6D [09:47:59]Write i2c OK [09:47:59]MH_I2C_Read... [09:48:00]*** Cut start [09:48:00]*** Partial cut [09:48:00]*** CUTSNS_PIN = 1 [09:48:00]*** CUTSNS_PIN = 0 [09:48:00]*** Brake cut motor [09:48:01]Read from MH i2c: 01 [09:48:01]MH_I2C_Read... [09:48:01]*** Stop cut motor [09:48:01]*** Cut end [09:48:01]Read from MH i2c: 01 07 00 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: 01 07 00 6B 02 00 00 00 00 00 FF 0F 82 [09:48:01]process_action close_receipt done [09:48:01]requested_data is exist [09:48:01]produce_requested_data [09:48:01]requested_item fm.sn is exist - process it [09:48:01]wFMCommunicate request_size=4 [09:48:01]MH_SAM_APDU [09:48:01]CAPDU: 80 11 00 00 [09:48:01]Write to MH i2c: E2 08 00 6C 02 80 11 00 00 00 00 00 00 E8 [09:48:01]Write i2c OK [09:48:01]MH_I2C_Read... [09:48:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:01]Read from MH i2c: E2 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: E2 17 00 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: E2 17 00 6C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 3C [09:48:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:48:01]wFMCommunicate OK [09:48:01]requested_item fd.num is exist - process it [09:48:01]SAM_PROTO_GetFieldsCounters [09:48:01]wFMCommunicate request_size=4 [09:48:01]MH_SAM_APDU [09:48:01]CAPDU: 80 13 00 00 [09:48:01]Write to MH i2c: E2 08 00 6D 02 80 13 00 00 00 00 00 00 EB [09:48:01]Write i2c OK [09:48:01]MH_I2C_Read... [09:48:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:01]Read from MH i2c: E2 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: E2 62 00 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: E2 62 00 6D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 E7 1D 01 00 0E 04 04 00 2E 02 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 F5 [09:48:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 E7 1D 01 00 0E 04 04 00 2E 02 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:48:01]wFMCommunicate OK [09:48:01]SAM_PROTO_GetFieldsCounters done [09:48:01]requested_item shift.num is exist - process it [09:48:01]requested_item shift.opened is exist - process it [09:48:01]req_shift_opened [09:48:01]FM_GetShiftState [09:48:01]SAM_PROTO_GetShiftState [09:48:01]wFMCommunicate request_size=4 [09:48:01]MH_SAM_APDU [09:48:01]CAPDU: 80 13 01 00 [09:48:01]Write to MH i2c: E2 08 00 6E 02 80 13 01 00 00 00 00 00 ED [09:48:01]Write i2c OK [09:48:01]MH_I2C_Read... [09:48:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:01]Read from MH i2c: E2 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: E2 0E 00 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: E2 0E 00 6E 02 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 34 [09:48:01]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [09:48:01]wFMCommunicate OK [09:48:01]SAM_PROTO_GetShiftState done [09:48:01]FM_GetShiftState done [09:48:01]req_shift_opened done [09:48:01]requested_item shift.open_date is exist - process it [09:48:01]req_shift_open_date [09:48:01]req_shift_open_date done [09:48:01]produce_requested_data done [09:48:01]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73191,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [09:48:01]process_action_free close_receipt [09:48:01]json_value_free [09:48:01]json_value_free done [09:48:01]process_json_proto returns [09:48:01]Send response to host [09:48:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73191,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [09:48:01]free response buf [09:48:01]execute_script done [09:48:01]execute_script returns [09:48:01]free content buf [09:48:01]Sock 10.Close socket [09:48:01]Sock 10.Thread stoped [09:48:22]recv_with_timeout no data received [09:48:32]recv_with_timeout no data received [09:50:10]ConnectInit Can't connect to host [09:50:10]CommunicateWithHost connect error [09:50:10]CommunicateWithHost err = -1 [09:50:10]OFD Sender: Server communicate error [09:50:15]OFD Sender: Processing packet 73191 [packets to send 282, broken 281] [09:50:15]ProducePacketName [09:50:15]name=ofd_packets/00073191 [09:50:15]OFD Sender: To server: pG, [09:50:15]CommunicateWithHost lk.salyk.kg:30040 [09:50:15]ConnectInit lk.salyk.kg [09:50:17]Connected sock=9 [09:50:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 57 2E 06 01 22 0F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 A8 98 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 D5 51 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 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 10 3F 00 00 00 00 07 04 06 00 C0 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 3C 00 00 00 F4 03 04 00 CD A3 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E7 1D 01 00 35 04 06 00 5E C9 19 D0 B1 94 68 66 ED AB B0 9E A8 5A [09:50:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 9D 26 47 00 2F A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E7 1D 01 00 F4 03 04 00 0A 4F 24 67 B6 04 01 00 00 86 95 A0 01 5A A5 91 5A [09:50:17]CommunicateWithHost err = 0 [09:50:17]CheckOFDResponse [09:50:17]1017 (14) - 77093643461234 [09:50:17]1041 (16) - 0000000000874662 [09:50:17]1040 (4) - 73191 [09:50:17]1012 (4) - 01.11.2024 03:46 [09:50:17]1206 (1) - 0 [09:50:17]OFD Sender: Remove packet 73191 [09:50:17]ProducePacketName [09:50:17]name=ofd_packets/00073191 [09:50:17]NVStorageDeleteData [09:50:18]OFD Sender: No OFD packet to send [09:50:23]OFD Sender: No OFD packet to send [09:50:28]OFD Sender: No OFD packet to send [09:50:33]OFD Sender: No OFD packet to send [09:50:38]OFD Sender: No OFD packet to send [09:50:39]recv_with_timeout no data received [09:50:43]OFD Sender: No OFD packet to send [09:50:48]OFD Sender: No OFD packet to send [09:50:53]OFD Sender: No OFD packet to send [09:50:58]OFD Sender: No OFD packet to send [09:51:03]OFD Sender: No OFD packet to send [09:51:08]OFD Sender: No OFD packet to send [09:51:13]OFD Sender: No OFD packet to send [09:51:18]OFD Sender: No OFD packet to send [09:51:23]OFD Sender: No OFD packet to send [09:51:28]OFD Sender: No OFD packet to send [09:51:32]accept exits with 8 [09:51:32]New connection [09:51:32]New thread 3067637092 created [09:51:32]Thread 3067493732 joined [09:51:32]Waiting for new connection... [09:51:32] Sock 8.Parse request [09:51:32]Sock 8.Check first char [09:51:32]Sock 8.First char is OK [09:51:32]request: POST /json_proto HTTP/1.0 [09:51:32]Method: POST [09:51:32]URL: /json_proto [09:51:32]Method is POST - this is cgi request [09:51:32]url: /json_proto [09:51:32]query_string will be loaded in cgi processing [09:51:32]execute_cgi json_proto POST (null) [09:51:32]execute_cgi path=json_proto method=POST [09:51:32]POST find Content-Length [09:51:32]Host: 172.17.43.195:8080 [09:51:32]Content-Length: 792 [09:51:32]Content-Type: application/json [09:51:32] [09:51:32]POST finish read [09:51:32]Found Content-Length = 792 [09:51:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 45.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:32]execute_script... [09:51: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)952791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 45.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:32]POST & json_proto [09:51:32]process_json_proto [09:51:32]json parsed OK: [09:51:32]protocol is kg_v1.0 [09:51:32]action value=close_receipt [09:51:32]process_action close_receipt [09:51:32]cmd_close_receipt [09:51:32]MH_GetDate [09:51:32]Write to MH i2c: F0 00 00 6F 02 60 [09:51:32]Write i2c OK [09:51:32]MH_I2C_Read... [09:51:32]Read from MH i2c: F0 [09:51:32]MH_I2C_Read... [09:51:32]Read from MH i2c: F0 09 00 [09:51:32]MH_I2C_Read... [09:51:32]Read from MH i2c: F0 09 00 6F 02 00 A4 A4 24 67 74 2C AD 66 EF [09:51:32]GetLastDocTimeStamp 1730454477 [09:51:32]current date 1730454692 [09:51:32]FM_GetShiftState [09:51:32]SAM_PROTO_GetShiftState [09:51:32]wFMCommunicate request_size=4 [09:51:32]MH_SAM_APDU [09:51:32]CAPDU: 80 13 01 00 [09:51:32]Write to MH i2c: E2 08 00 70 02 80 13 01 00 00 00 00 00 EF [09:51:32]Write i2c OK [09:51:32]MH_I2C_Read... [09:51:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:32]Read from MH i2c: E2 [09:51:32]MH_I2C_Read... [09:51:32]Read from MH i2c: E2 0E 00 [09:51:32]MH_I2C_Read... [09:51:32]Read from MH i2c: E2 0E 00 70 02 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 36 [09:51:32]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [09:51:32]wFMCommunicate OK [09:51:32]SAM_PROTO_GetShiftState done [09:51:32]FM_GetShiftState done [09:51:32]opened in 1730419605 [09:51:32]opened+sec_in_day 1730506005 [09:51:32]quantity*price = 0 [09:51:32]sum+1 = 1 [09:51:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 61 01.11.2024 09:51 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 73192 ФПД: 65107542416473 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T095132&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73192&fm=65107542416473&tin=02508201610067®Number=0000000000091644&sum=0 [09:51:33]StoreToDocumentArchive [09:51:33]shift 558 fd 73192 [09:51:33]save to /storage/0558/doc_00073192 [09:51:33]save last doc name /storage/0558/doc_00073192 to /storage/kkm_last_doc_name [09:51:33]save OK [09:51:33]Clear old archive folders... [09:51:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:51:33]tlvbuf is 005C2B40 [09:51:33]SAM_PROTO_ClearQueue [09:51:33]wFMCommunicate request_size=4 [09:51:33]MH_SAM_APDU [09:51:33]CAPDU: 80 09 00 00 [09:51:33]Write to MH i2c: E2 08 00 7D 02 80 09 00 00 00 00 00 00 F1 [09:51:33]Write i2c OK [09:51:33]MH_I2C_Read... [09:51:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:33]Read from MH i2c: E2 [09:51:33]MH_I2C_Read... [09:51:33]Read from MH i2c: E2 03 00 [09:51:33]MH_I2C_Read... [09:51:33]Read from MH i2c: E2 03 00 7D 02 00 90 00 F3 [09:51:33]RAPDU: 90 00 [09:51:33]wFMCommunicate OK [09:51:33]SAM_PROTO_ClearQueue done [09:51:33]KKMCreateOFDPacket [09:51:33]OFDProtocolAddRootSTLVToBuf [09:51:33]FM_MakeSignedData [09:51:33]FM_MakeSignedData [09:51:33]SAM_PROTO_SignData [09:51:33]wFMCommunicate request_size=4 [09:51:33]MH_SAM_APDU [09:51:33]CAPDU: 80 0D 01 02 [09:51:33]Write to MH i2c: E2 08 00 7E 02 80 0D 01 02 00 00 00 00 F9 [09:51:33]Write i2c OK [09:51:33]MH_I2C_Read... [09:51:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:33]Read from MH i2c: E2 [09:51:33]MH_I2C_Read... [09:51:33]Read from MH i2c: E2 03 00 [09:51:33]MH_I2C_Read... [09:51:33]Read from MH i2c: E2 03 00 7E 02 00 90 00 F4 [09:51:33]RAPDU: 90 00 [09:51:33]wFMCommunicate OK [09:51:33]wFMCommunicate request_size=255 [09:51:33]MH_SAM_APDU [09:51: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 C8 AF 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 A4 A4 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E8 1D 01 00 35 04 06 00 3B [09:51:33]Write to MH i2c: E2 02 01 7F 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 AF 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 A4 A4 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E8 1D 01 00 35 04 06 00 3B 00 00 FB [09:51:33]Write i2c OK [09:51:33]MH_I2C_Read... [09:51:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:34]Read from MH i2c: E2 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: E2 03 00 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: E2 03 00 7F 02 00 90 00 F5 [09:51:34]RAPDU: 90 00 [09:51:34]wFMCommunicate OK [09:51:34]wFMCommunicate request_size=10 [09:51:34]MH_SAM_APDU [09:51:34]CAPDU: 80 0D 02 02 05 37 07 F0 1C 59 [09:51:34]Write to MH i2c: E2 0D 00 80 02 80 0D 02 02 05 00 37 07 F0 1C 59 00 00 A9 [09:51:34]Write i2c OK [09:51:34]MH_I2C_Read... [09:51:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:34]Read from MH i2c: E2 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: E2 03 00 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: E2 03 00 80 02 00 90 00 F6 [09:51:34]RAPDU: 90 00 [09:51:34]wFMCommunicate OK [09:51:34]wFMCommunicate request_size=4 [09:51:34]MH_SAM_APDU [09:51:34]CAPDU: 80 0D 03 02 [09:51:34]Write to MH i2c: E2 08 00 81 02 80 0D 03 02 00 00 00 00 FE [09:51:34]Write i2c OK [09:51:34]MH_I2C_Read... [09:51:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:34]Read from MH i2c: E2 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: E2 0B 00 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: E2 0B 00 81 02 00 7B 93 D6 0E B2 93 9F 18 90 00 ED [09:51:34]RAPDU: 7B 93 D6 0E B2 93 9F 18 90 00 [09:51:34]wFMCommunicate OK [09:51:34]SAM_PROTO_SignData done [09:51:34]FM_MakeSignedData done [09:51:34]CreateOFDProtocolMessage [09:51:34]wFMCommunicate request_size=4 [09:51:34]MH_SAM_APDU [09:51:34]CAPDU: 80 11 00 00 [09:51:34]Write to MH i2c: E2 08 00 82 02 80 11 00 00 00 00 00 00 FE [09:51:34]Write i2c OK [09:51:34]MH_I2C_Read... [09:51:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:34]Read from MH i2c: E2 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: E2 17 00 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: E2 17 00 82 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 52 [09:51:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:51:34]wFMCommunicate OK [09:51:34]CreateOFDProtocolMessage done [09:51:34]OFDSenderStorePacket 73192 [09:51:34]StoreOFDPacket docnum=73192 [09:51:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 71 9C 07 01 43 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 AF 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 A4 A4 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E8 1D 01 00 35 04 06 00 3B 37 07 F0 1C 59 7B 93 D6 0E B2 93 9F 18 [09:51:34]CheckFolder [09:51:34]dirname=/storage/ofd_packets [09:51:34]CheckFolder done [09:51:34]ProducePacketName [09:51:34]name=ofd_packets/00073192 [09:51:34]NVStorageSaveData ofd_packets/00073192 [09:51:34]File name is /storage/ofd_packets/00073192 [09:51:34]Write 301 bytes [09:51:34]NVStorageSaveData done [09:51:34]OFDSenderStorePacket done [09:51:34]KKMCreateOFDPacket done [09:51:34]NVStorageSaveData kkm_last_timestamp [09:51:34]File name is /storage/kkm_last_timestamp [09:51:34]Write 4 bytes [09:51:34]NVStorageSaveData done [09:51:34]ExternCall_PrintAddStr [09:51:34]wPrintStart [09:51:34]Write to MH i2c: 01 00 00 83 02 85 [09:51:34]Write i2c OK [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: 01 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: 01 07 00 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: 01 07 00 83 02 00 00 00 00 00 FF 0F 9A [09:51:34]RasterBufferAndPrint [09:51:34]line Счет N : (1)952791 [09:51:34]line ИНН: 02508201610067 [09:51:34]line Контрольно-Кассовый Чек [09:51:34]line ПРОДАЖА [09:51:34]line ТРК (МРК, ГНК) : 53 [09:51:34]line Товар: 2710124130 [09:51:34]line Аи-92-К-5 [09:51:34]line 45.000 * 0.00 [09:51:34]line = 0.00 [09:51:34]line НДС 12% НСП 1% [09:51:34]line > о реализуемом товаре [09:51:34]line ИТОГО: 0.00 [09:51:34]line НСП 1% : 0.00 [09:51:34]line НДС 12% : 0.00 [09:51:34]line Наличными: 0.00 [09:51:34]line Безнал.: 0.00 [09:51:34]line Место: АЗС № 113 "Партнер Нефть" [09:51:34]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:51:34]line СНО: Общий режим [09:51:34]line Чек 61 01.11.2024 09:51 [09:51:34]line Смена: 558 ФФД: 1.0 [09:51:34]line ЗНМ: 0300000087 [09:51:34]line РНМ: 0000000000091644 [09:51:34]line Версия ККМ: 001 [09:51:34]line Талоны: Топливная Карта [09:51:34]line 03047 [09:51:34]line ФМ: 0000000000874662 [09:51:34]line ФД: 73192 [09:51:34]line ФПД: 65107542416473 [09:51:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T095132&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73192&fm=65107542416473&tin=02508201610067®Number=0000000000091644&sum=0 [09:51:34]written 0, free lines is 4095 [09:51:34]OFD Sender: Processing packet 73192 [packets to send 282, broken 281] [09:51:34]ProducePacketName [09:51:34]name=ofd_packets/00073192 [09:51:34]OFD Sender: To server: pG, [09:51:34]CommunicateWithHost lk.salyk.kg:30040 [09:51:34]ConnectInit lk.salyk.kg [09:51:34]Write to MH i2c: 01 00 00 AD 02 AF [09:51:34]Write i2c OK [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: 01 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: 01 07 00 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: 01 07 00 AD 02 00 00 00 00 00 DE 0C A0 [09:51:34]RasterBufferAndPrint [09:51:34]line [09:51:34]line [09:51:34]line [09:51:34]line [09:51:34]line [09:51:34]written 0, free lines is 3300 [09:51:34]MH_Cut [09:51:34]Write to MH i2c: D1 01 00 B4 02 01 88 [09:51:34]Write i2c OK [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: D1 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: D1 01 00 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: D1 01 00 B4 02 00 87 [09:51:34]Write to MH i2c: 01 00 00 B5 02 B7 [09:51:34]Write i2c OK [09:51:34]MH_I2C_Read... [09:51:35]*** Cut start [09:51:35]*** Partial cut [09:51:35]*** CUTSNS_PIN = 1 [09:51:35]Connected sock=11 [09:51:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 71 9C 07 01 43 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 AF 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 A4 A4 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E8 1D 01 00 35 04 06 00 3B 37 07 F0 1C 59 7B 93 D6 0E B2 93 9F 18 [09:51:35]*** CUTSNS_PIN = 0 [09:51:35]*** Brake cut motor [09:51:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 6C 93 47 00 7F D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E8 1D 01 00 F4 03 04 00 58 4F 24 67 B6 04 01 00 00 2F 98 7E C3 CF AE C7 BE [09:51:36]CommunicateWithHost err = 0 [09:51:36]CheckOFDResponse [09:51:36]1017 (14) - 77093643461234 [09:51:36]1041 (16) - 0000000000874662 [09:51:36]1040 (4) - 73192 [09:51:36]1012 (4) - 01.11.2024 03:47 [09:51:36]1206 (1) - 0 [09:51:36]OFD Sender: Remove packet 73192 [09:51:36]ProducePacketName [09:51:36]*** Stop cut motor [09:51:36]*** Cut end [09:51:36]name=ofd_packets/00073192 [09:51:36]NVStorageDeleteData [09:51:36]Read from MH i2c: 01 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: 01 07 00 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: 01 07 00 B5 02 00 00 00 00 00 FF 0F CC [09:51:36]process_action close_receipt done [09:51:36]requested_data is exist [09:51:36]produce_requested_data [09:51:36]requested_item fm.sn is exist - process it [09:51:36]wFMCommunicate request_size=4 [09:51:36]MH_SAM_APDU [09:51:36]CAPDU: 80 11 00 00 [09:51:36]Write to MH i2c: E2 08 00 B6 02 80 11 00 00 00 00 00 00 32 [09:51:36]Write i2c OK [09:51:36]MH_I2C_Read... [09:51:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:36]Read from MH i2c: E2 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 17 00 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 17 00 B6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 86 [09:51:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:51:36]wFMCommunicate OK [09:51:36]requested_item fd.num is exist - process it [09:51:36]SAM_PROTO_GetFieldsCounters [09:51:36]wFMCommunicate request_size=4 [09:51:36]MH_SAM_APDU [09:51:36]CAPDU: 80 13 00 00 [09:51:36]Write to MH i2c: E2 08 00 B7 02 80 13 00 00 00 00 00 00 35 [09:51:36]Write i2c OK [09:51:36]MH_I2C_Read... [09:51:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:36]Read from MH i2c: E2 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 62 00 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 62 00 B7 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 E8 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [09:51:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 E8 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:51:36]wFMCommunicate OK [09:51:36]SAM_PROTO_GetFieldsCounters done [09:51:36]requested_item shift.num is exist - process it [09:51:36]requested_item shift.opened is exist - process it [09:51:36]req_shift_opened [09:51:36]FM_GetShiftState [09:51:36]SAM_PROTO_GetShiftState [09:51:36]wFMCommunicate request_size=4 [09:51:36]MH_SAM_APDU [09:51:36]CAPDU: 80 13 01 00 [09:51:36]Write to MH i2c: E2 08 00 B8 02 80 13 01 00 00 00 00 00 37 [09:51:36]Write i2c OK [09:51:36]MH_I2C_Read... [09:51:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:36]Read from MH i2c: E2 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 0E 00 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 0E 00 B8 02 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 7E [09:51:36]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [09:51:36]wFMCommunicate OK [09:51:36]SAM_PROTO_GetShiftState done [09:51:36]FM_GetShiftState done [09:51:36]req_shift_opened done [09:51:36]requested_item shift.open_date is exist - process it [09:51:36]req_shift_open_date [09:51:36]req_shift_open_date done [09:51:36]produce_requested_data done [09:51:36]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73192,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [09:51:36]process_action_free close_receipt [09:51:36]json_value_free [09:51:36]json_value_free done [09:51:36]process_json_proto returns [09:51:36]Send response to host [09:51:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73192,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [09:51:36]free response buf [09:51:36]execute_script done [09:51:36]execute_script returns [09:51:36]free content buf [09:51:36]Sock 8.Close socket [09:51:36]Sock 8.Thread stoped [09:51:36]OFD Sender: No OFD packet to send [09:51:41]OFD Sender: No OFD packet to send [09:51:46]OFD Sender: No OFD packet to send [09:51:51]OFD Sender: No OFD packet to send [09:51:56]OFD Sender: No OFD packet to send [09:52:01]OFD Sender: No OFD packet to send [09:52:06]OFD Sender: No OFD packet to send [09:52:11]OFD Sender: No OFD packet to send [09:52:16]OFD Sender: No OFD packet to send [09:52:21]OFD Sender: No OFD packet to send [09:52:26]OFD Sender: No OFD packet to send [09:52:28]recv_with_timeout no data received [09:52:31]OFD Sender: No OFD packet to send [09:52:36]OFD Sender: No OFD packet to send [09:52:39]recv_with_timeout no data received [09:52:41]OFD Sender: No OFD packet to send [09:52:46]OFD Sender: No OFD packet to send [09:52:51]OFD Sender: No OFD packet to send [09:52:56]OFD Sender: No OFD packet to send [09:53:01]OFD Sender: No OFD packet to send [09:53:06]OFD Sender: No OFD packet to send [09:53:11]OFD Sender: No OFD packet to send [09:53:16]OFD Sender: No OFD packet to send [09:53:21]OFD Sender: No OFD packet to send [09:53:26]OFD Sender: No OFD packet to send [09:53:31]OFD Sender: No OFD packet to send [09:53:36]OFD Sender: No OFD packet to send [09:53:41]recv_with_timeout no data received [09:53:41]OFD Sender: No OFD packet to send [09:53:46]accept exits with 10 [09:53:46]New connection [09:53:46]New thread 3067493732 created [09:53:46]Thread 3067637092 joined [09:53:46]Waiting for new connection... [09:53:46] Sock 10.Parse request [09:53:46]Sock 10.Check first char [09:53:46]Sock 10.First char is OK [09:53:46]request: POST /json_proto HTTP/1.0 [09:53:46]Method: POST [09:53:46]URL: /json_proto [09:53:46]Method is POST - this is cgi request [09:53:46]url: /json_proto [09:53:46]query_string will be loaded in cgi processing [09:53:46]execute_cgi json_proto POST (null) [09:53:46]execute_cgi path=json_proto method=POST [09:53:46]POST find Content-Length [09:53:46]Host: 172.17.43.195:8080 [09:53:46]Content-Length: 792 [09:53:46]Content-Type: application/json [09:53:46] [09:53:46]POST finish read [09:53:46]Found Content-Length = 792 [09:53:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 22.430, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:46]execute_script... [09:53: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)952793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 22.430, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:46]POST & json_proto [09:53:46]process_json_proto [09:53:46]json parsed OK: [09:53:46]protocol is kg_v1.0 [09:53:46]action value=close_receipt [09:53:46]process_action close_receipt [09:53:46]cmd_close_receipt [09:53:46]MH_GetDate [09:53:46]Write to MH i2c: F0 00 00 B9 02 AA [09:53:46]Write i2c OK [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: F0 [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: F0 09 00 [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: F0 09 00 B9 02 00 2A A5 24 67 74 2C AD 66 C0 [09:53:46]GetLastDocTimeStamp 1730454692 [09:53:46]current date 1730454826 [09:53:46]FM_GetShiftState [09:53:46]SAM_PROTO_GetShiftState [09:53:46]wFMCommunicate request_size=4 [09:53:46]MH_SAM_APDU [09:53:46]CAPDU: 80 13 01 00 [09:53:46]Write to MH i2c: E2 08 00 BA 02 80 13 01 00 00 00 00 00 39 [09:53:46]Write i2c OK [09:53:46]MH_I2C_Read... [09:53:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:46]Read from MH i2c: E2 [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: E2 0E 00 [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: E2 0E 00 BA 02 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 80 [09:53:46]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [09:53:46]wFMCommunicate OK [09:53:46]SAM_PROTO_GetShiftState done [09:53:46]FM_GetShiftState done [09:53:46]opened in 1730419605 [09:53:46]opened+sec_in_day 1730506005 [09:53:46]quantity*price = 0 [09:53:46]sum+1 = 1 [09:53:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 62 01.11.2024 09:53 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 73193 ФПД: 42318719878478 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T095346&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73193&fm=42318719878478&tin=02508201610067®Number=0000000000091644&sum=0 [09:53:47]StoreToDocumentArchive [09:53:47]shift 558 fd 73193 [09:53:47]save to /storage/0558/doc_00073193 [09:53:47]save last doc name /storage/0558/doc_00073193 to /storage/kkm_last_doc_name [09:53:47]save OK [09:53:47]Clear old archive folders... [09:53:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:53:47]tlvbuf is 005320D0 [09:53:47]SAM_PROTO_ClearQueue [09:53:47]wFMCommunicate request_size=4 [09:53:47]MH_SAM_APDU [09:53:47]CAPDU: 80 09 00 00 [09:53:47]Write to MH i2c: E2 08 00 C7 02 80 09 00 00 00 00 00 00 3B [09:53:47]Write i2c OK [09:53:47]MH_I2C_Read... [09:53:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:47]Read from MH i2c: E2 [09:53:47]MH_I2C_Read... [09:53:47]Read from MH i2c: E2 03 00 [09:53:47]MH_I2C_Read... [09:53:47]Read from MH i2c: E2 03 00 C7 02 00 90 00 3D [09:53:47]RAPDU: 90 00 [09:53:47]wFMCommunicate OK [09:53:47]SAM_PROTO_ClearQueue done [09:53:47]KKMCreateOFDPacket [09:53:47]OFDProtocolAddRootSTLVToBuf [09:53:47]FM_MakeSignedData [09:53:47]FM_MakeSignedData [09:53:47]SAM_PROTO_SignData [09:53:47]wFMCommunicate request_size=4 [09:53:47]MH_SAM_APDU [09:53:47]CAPDU: 80 0D 01 02 [09:53:47]Write to MH i2c: E2 08 00 C8 02 80 0D 01 02 00 00 00 00 43 [09:53:47]Write i2c OK [09:53:47]MH_I2C_Read... [09:53:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:47]Read from MH i2c: E2 [09:53:47]MH_I2C_Read... [09:53:47]Read from MH i2c: E2 03 00 [09:53:47]MH_I2C_Read... [09:53:47]Read from MH i2c: E2 03 00 C8 02 00 90 00 3E [09:53:47]RAPDU: 90 00 [09:53:47]wFMCommunicate OK [09:53:47]wFMCommunicate request_size=255 [09:53:47]MH_SAM_APDU [09:53: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 9E 57 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 2A A5 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E9 1D 01 00 35 04 06 00 26 [09:53:47]Write to MH i2c: E2 02 01 C9 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 2A A5 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E9 1D 01 00 35 04 06 00 26 00 00 37 [09:53:47]Write i2c OK [09:53:47]MH_I2C_Read... [09:53:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:47]Read from MH i2c: E2 [09:53:47]MH_I2C_Read... [09:53:47]Read from MH i2c: E2 03 00 [09:53:47]MH_I2C_Read... [09:53:47]Read from MH i2c: E2 03 00 C9 02 00 90 00 3F [09:53:47]RAPDU: 90 00 [09:53:47]wFMCommunicate OK [09:53:47]wFMCommunicate request_size=10 [09:53:47]MH_SAM_APDU [09:53:47]CAPDU: 80 0D 02 02 05 7D 18 44 05 4E [09:53:47]Write to MH i2c: E2 0D 00 CA 02 80 0D 02 02 05 00 7D 18 44 05 4E 00 00 7C [09:53:47]Write i2c OK [09:53:47]MH_I2C_Read... [09:53:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:47]Read from MH i2c: E2 [09:53:47]MH_I2C_Read... [09:53:47]Read from MH i2c: E2 03 00 [09:53:47]MH_I2C_Read... [09:53:47]Read from MH i2c: E2 03 00 CA 02 00 90 00 40 [09:53:47]RAPDU: 90 00 [09:53:47]wFMCommunicate OK [09:53:47]wFMCommunicate request_size=4 [09:53:47]MH_SAM_APDU [09:53:47]CAPDU: 80 0D 03 02 [09:53:47]Write to MH i2c: E2 08 00 CB 02 80 0D 03 02 00 00 00 00 48 [09:53:47]Write i2c OK [09:53:47]MH_I2C_Read... [09:53:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:47]Read from MH i2c: E2 [09:53:47]MH_I2C_Read... [09:53:47]Read from MH i2c: E2 0B 00 [09:53:47]MH_I2C_Read... [09:53:47]Read from MH i2c: E2 0B 00 CB 02 00 0E D8 C5 27 EB 72 22 10 90 00 AA [09:53:47]RAPDU: 0E D8 C5 27 EB 72 22 10 90 00 [09:53:47]wFMCommunicate OK [09:53:47]SAM_PROTO_SignData done [09:53:47]FM_MakeSignedData done [09:53:47]CreateOFDProtocolMessage [09:53:47]wFMCommunicate request_size=4 [09:53:47]MH_SAM_APDU [09:53:47]CAPDU: 80 11 00 00 [09:53:47]Write to MH i2c: E2 08 00 CC 02 80 11 00 00 00 00 00 00 48 [09:53:47]Write i2c OK [09:53:47]MH_I2C_Read... [09:53:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:47]Read from MH i2c: E2 [09:53:47]MH_I2C_Read... [09:53:47]Read from MH i2c: E2 17 00 [09:53:47]MH_I2C_Read... [09:53:47]Read from MH i2c: E2 17 00 CC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 9C [09:53:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:53:47]wFMCommunicate OK [09:53:47]CreateOFDProtocolMessage done [09:53:47]OFDSenderStorePacket 73193 [09:53:47]StoreOFDPacket docnum=73193 [09:53:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 B8 35 07 01 67 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 2A A5 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E9 1D 01 00 35 04 06 00 26 7D 18 44 05 4E 0E D8 C5 27 EB 72 22 10 [09:53:47]CheckFolder [09:53:47]dirname=/storage/ofd_packets [09:53:47]CheckFolder done [09:53:47]ProducePacketName [09:53:47]name=ofd_packets/00073193 [09:53:47]NVStorageSaveData ofd_packets/00073193 [09:53:47]File name is /storage/ofd_packets/00073193 [09:53:47]Write 301 bytes [09:53:47]NVStorageSaveData done [09:53:47]OFDSenderStorePacket done [09:53:47]KKMCreateOFDPacket done [09:53:47]NVStorageSaveData kkm_last_timestamp [09:53:47]File name is /storage/kkm_last_timestamp [09:53:47]Write 4 bytes [09:53:47]NVStorageSaveData done [09:53:47]ExternCall_PrintAddStr [09:53:47]wPrintStart [09:53:47]Write to MH i2c: 01 00 00 CD 02 CF [09:53:47]Write i2c OK [09:53:47]MH_I2C_Read... [09:53:47]Read from MH i2c: 01 [09:53:47]MH_I2C_Read... [09:53:47]Read from MH i2c: 01 07 00 [09:53:47]MH_I2C_Read... [09:53:47]Read from MH i2c: 01 07 00 CD 02 00 00 00 00 00 FF 0F E4 [09:53:47]RasterBufferAndPrint [09:53:47]line Счет N : (1)952793 [09:53:47]line ИНН: 02508201610067 [09:53:47]line Контрольно-Кассовый Чек [09:53:47]line ПРОДАЖА [09:53:47]line ТРК (МРК, ГНК) : 42 [09:53:47]line Товар: 2710124130 [09:53:47]line Аи-92-К-5 [09:53:47]line 22.430 * 0.00 [09:53:47]line = 0.00 [09:53:47]line НДС 12% НСП 1% [09:53:47]line > о реализуемом товаре [09:53:47]line ИТОГО: 0.00 [09:53:47]line НСП 1% : 0.00 [09:53:47]line НДС 12% : 0.00 [09:53:47]line Наличными: 0.00 [09:53:47]line Безнал.: 0.00 [09:53:47]line Место: АЗС № 113 "Партнер Нефть" [09:53:47]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:53:47]line СНО: Общий режим [09:53:47]line Чек 62 01.11.2024 09:53 [09:53:47]line Смена: 558 ФФД: 1.0 [09:53:47]line ЗНМ: 0300000087 [09:53:47]line РНМ: 0000000000091644 [09:53:47]line Версия ККМ: 001 [09:53:47]line Талоны: Топливная Карта [09:53:47]line 03047 [09:53:47]line ФМ: 0000000000874662 [09:53:47]line ФД: 73193 [09:53:47]line ФПД: 42318719878478 [09:53:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T095346&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73193&fm=42318719878478&tin=02508201610067®Number=0000000000091644&sum=0 [09:53:47]written 0, free lines is 4095 [09:53:47]OFD Sender: Processing packet 73193 [packets to send 282, broken 281] [09:53:47]ProducePacketName [09:53:47]name=ofd_packets/00073193 [09:53:47]OFD Sender: To server: pG, [09:53:47]CommunicateWithHost lk.salyk.kg:30040 [09:53:47]ConnectInit lk.salyk.kg [09:53:48]Write to MH i2c: 01 00 00 F7 02 F9 [09:53:48]Write i2c OK [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: 01 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: 01 07 00 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: 01 07 00 F7 02 00 00 00 00 00 E7 0C F3 [09:53:48]RasterBufferAndPrint [09:53:48]line [09:53:48]line [09:53:48]line [09:53:48]line [09:53:48]line [09:53:48]written 0, free lines is 3309 [09:53:48]MH_Cut [09:53:48]Write to MH i2c: D1 01 00 FE 02 01 D2 [09:53:48]Write i2c OK [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: D1 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: D1 01 00 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: D1 01 00 FE 02 00 D1 [09:53:48]Write to MH i2c: 01 00 00 FF 02 01 [09:53:48]Write i2c OK [09:53:48]MH_I2C_Read... [09:53:48]*** Cut start [09:53:48]*** Partial cut [09:53:48]*** CUTSNS_PIN = 1 [09:53:49]*** CUTSNS_PIN = 0 [09:53:49]*** Brake cut motor [09:53:49]Read from MH i2c: 01 [09:53:49]MH_I2C_Read... [09:53:49]*** Stop cut motor [09:53:49]*** Cut end [09:53:49]Read from MH i2c: 01 07 00 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: 01 07 00 FF 02 00 00 00 00 00 FF 0F 16 [09:53:49]process_action close_receipt done [09:53:49]requested_data is exist [09:53:49]produce_requested_data [09:53:49]requested_item fm.sn is exist - process it [09:53:49]wFMCommunicate request_size=4 [09:53:49]MH_SAM_APDU [09:53:49]CAPDU: 80 11 00 00 [09:53:49]Write to MH i2c: E2 08 00 00 03 80 11 00 00 00 00 00 00 7D [09:53:49]Write i2c OK [09:53:49]MH_I2C_Read... [09:53:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:49]Read from MH i2c: E2 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: E2 17 00 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: E2 17 00 00 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D1 [09:53:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:53:49]wFMCommunicate OK [09:53:49]requested_item fd.num is exist - process it [09:53:49]SAM_PROTO_GetFieldsCounters [09:53:49]wFMCommunicate request_size=4 [09:53:49]MH_SAM_APDU [09:53:49]CAPDU: 80 13 00 00 [09:53:49]Write to MH i2c: E2 08 00 01 03 80 13 00 00 00 00 00 00 80 [09:53:49]Write i2c OK [09:53:49]MH_I2C_Read... [09:53:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:49]Read from MH i2c: E2 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: E2 62 00 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: E2 62 00 01 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 E9 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [09:53:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 E9 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:53:49]wFMCommunicate OK [09:53:49]SAM_PROTO_GetFieldsCounters done [09:53:49]requested_item shift.num is exist - process it [09:53:49]requested_item shift.opened is exist - process it [09:53:49]req_shift_opened [09:53:49]FM_GetShiftState [09:53:49]SAM_PROTO_GetShiftState [09:53:49]wFMCommunicate request_size=4 [09:53:49]MH_SAM_APDU [09:53:49]CAPDU: 80 13 01 00 [09:53:49]Write to MH i2c: E2 08 00 02 03 80 13 01 00 00 00 00 00 82 [09:53:49]Write i2c OK [09:53:49]MH_I2C_Read... [09:53:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:49]Read from MH i2c: E2 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: E2 0E 00 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: E2 0E 00 02 03 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 C9 [09:53:49]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [09:53:49]wFMCommunicate OK [09:53:49]SAM_PROTO_GetShiftState done [09:53:49]FM_GetShiftState done [09:53:49]req_shift_opened done [09:53:49]requested_item shift.open_date is exist - process it [09:53:49]req_shift_open_date [09:53:49]req_shift_open_date done [09:53:49]produce_requested_data done [09:53:49]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73193,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [09:53:49]process_action_free close_receipt [09:53:49]json_value_free [09:53:49]json_value_free done [09:53:49]process_json_proto returns [09:53:49]Send response to host [09:53:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73193,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [09:53:49]free response buf [09:53:49]execute_script done [09:53:49]execute_script returns [09:53:49]free content buf [09:53:49]Sock 10.Close socket [09:53:49]Sock 10.Thread stoped [09:53:53]Connected sock=11 [09:53:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 B8 35 07 01 67 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 2A A5 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E9 1D 01 00 35 04 06 00 26 7D 18 44 05 4E 0E D8 C5 27 EB 72 22 10 [09:53:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 F3 DD 47 00 DD 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E9 1D 01 00 F4 03 04 00 E2 4F 24 67 B6 04 01 00 00 F7 83 BE 95 1B A2 BC 00 [09:53:55]CommunicateWithHost err = 0 [09:53:55]CheckOFDResponse [09:53:55]1017 (14) - 77093643461234 [09:53:55]1041 (16) - 0000000000874662 [09:53:55]1040 (4) - 73193 [09:53:55]1012 (4) - 01.11.2024 03:49 [09:53:55]1206 (1) - 0 [09:53:55]OFD Sender: Remove packet 73193 [09:53:55]ProducePacketName [09:53:55]name=ofd_packets/00073193 [09:53:55]NVStorageDeleteData [09:53:56]OFD Sender: No OFD packet to send [09:54:01]OFD Sender: No OFD packet to send [09:54:06]OFD Sender: No OFD packet to send [09:54:06]recv_with_timeout no data received [09:54:11]OFD Sender: No OFD packet to send [09:54:16]OFD Sender: No OFD packet to send [09:54:21]OFD Sender: No OFD packet to send [09:54:26]OFD Sender: No OFD packet to send [09:54:31]OFD Sender: No OFD packet to send [09:54:36]OFD Sender: No OFD packet to send [09:54:40]accept exits with 8 [09:54:40]New connection [09:54:40]New thread 3067637092 created [09:54:40]Thread 3067493732 joined [09:54:40]Waiting for new connection... [09:54:40] Sock 8.Parse request [09:54:40]Sock 8.Check first char [09:54:40]Sock 8.First char is OK [09:54:40]request: POST /json_proto HTTP/1.0 [09:54:40]Method: POST [09:54:40]URL: /json_proto [09:54:40]Method is POST - this is cgi request [09:54:40]url: /json_proto [09:54:40]query_string will be loaded in cgi processing [09:54:40]execute_cgi json_proto POST (null) [09:54:40]execute_cgi path=json_proto method=POST [09:54:40]POST find Content-Length [09:54:40]Host: 172.17.43.195:8080 [09:54:40]Content-Length: 792 [09:54:40]Content-Type: application/json [09:54:40] [09:54:40]POST finish read [09:54:40]Found Content-Length = 792 [09:54:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:40]execute_script... [09:54: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)952794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:40]POST & json_proto [09:54:40]process_json_proto [09:54:40]json parsed OK: [09:54:40]protocol is kg_v1.0 [09:54:40]action value=close_receipt [09:54:40]process_action close_receipt [09:54:40]cmd_close_receipt [09:54:40]MH_GetDate [09:54:40]Write to MH i2c: F0 00 00 03 03 F5 [09:54:40]Write i2c OK [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: F0 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: F0 09 00 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: F0 09 00 03 03 00 60 A5 24 67 74 2C AD 66 41 [09:54:40]GetLastDocTimeStamp 1730454826 [09:54:40]current date 1730454880 [09:54:40]FM_GetShiftState [09:54:40]SAM_PROTO_GetShiftState [09:54:40]wFMCommunicate request_size=4 [09:54:40]MH_SAM_APDU [09:54:40]CAPDU: 80 13 01 00 [09:54:40]Write to MH i2c: E2 08 00 04 03 80 13 01 00 00 00 00 00 84 [09:54:40]Write i2c OK [09:54:40]MH_I2C_Read... [09:54:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:40]Read from MH i2c: E2 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 0E 00 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 0E 00 04 03 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 CB [09:54:40]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [09:54:40]wFMCommunicate OK [09:54:40]SAM_PROTO_GetShiftState done [09:54:40]FM_GetShiftState done [09:54:40]opened in 1730419605 [09:54:40]opened+sec_in_day 1730506005 [09:54:40]quantity*price = 0 [09:54:40]sum+1 = 1 [09:54:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 63 01.11.2024 09:54 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 73194 ФПД: 116692224638438 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T095440&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73194&fm=116692224638438&tin=02508201610067®Number=0000000000091644&sum=0 [09:54:41]StoreToDocumentArchive [09:54:41]shift 558 fd 73194 [09:54:41]save to /storage/0558/doc_00073194 [09:54:41]save last doc name /storage/0558/doc_00073194 to /storage/kkm_last_doc_name [09:54:41]save OK [09:54:41]Clear old archive folders... [09:54:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:54:41]tlvbuf is 005A8270 [09:54:41]SAM_PROTO_ClearQueue [09:54:41]wFMCommunicate request_size=4 [09:54:41]MH_SAM_APDU [09:54:41]CAPDU: 80 09 00 00 [09:54:41]Write to MH i2c: E2 08 00 11 03 80 09 00 00 00 00 00 00 86 [09:54:41]Write i2c OK [09:54:41]MH_I2C_Read... [09:54:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:54:42]Read from MH i2c: E2 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 03 00 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 03 00 11 03 00 90 00 88 [09:54:42]RAPDU: 90 00 [09:54:42]wFMCommunicate OK [09:54:42]SAM_PROTO_ClearQueue done [09:54:42]KKMCreateOFDPacket [09:54:42]OFDProtocolAddRootSTLVToBuf [09:54:42]FM_MakeSignedData [09:54:42]FM_MakeSignedData [09:54:42]SAM_PROTO_SignData [09:54:42]wFMCommunicate request_size=4 [09:54:42]MH_SAM_APDU [09:54:42]CAPDU: 80 0D 01 02 [09:54:42]Write to MH i2c: E2 08 00 12 03 80 0D 01 02 00 00 00 00 8E [09:54:42]Write i2c OK [09:54:42]MH_I2C_Read... [09:54:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:54:42]Read from MH i2c: E2 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 03 00 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 03 00 12 03 00 90 00 89 [09:54:42]RAPDU: 90 00 [09:54:42]wFMCommunicate OK [09:54:42]wFMCommunicate request_size=255 [09:54:42]MH_SAM_APDU [09:54: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 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 60 A5 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EA 1D 01 00 35 04 06 00 6A [09:54:42]Write to MH i2c: E2 02 01 13 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 60 A5 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EA 1D 01 00 35 04 06 00 6A 00 00 A9 [09:54:42]Write i2c OK [09:54:42]MH_I2C_Read... [09:54:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:42]Read from MH i2c: E2 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 03 00 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 03 00 13 03 00 90 00 8A [09:54:42]RAPDU: 90 00 [09:54:42]wFMCommunicate OK [09:54:42]wFMCommunicate request_size=10 [09:54:42]MH_SAM_APDU [09:54:42]CAPDU: 80 0D 02 02 05 21 86 98 FD E6 [09:54:42]Write to MH i2c: E2 0D 00 14 03 80 0D 02 02 05 00 21 86 98 FD E6 00 00 BD [09:54:42]Write i2c OK [09:54:42]MH_I2C_Read... [09:54:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:42]Read from MH i2c: E2 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 03 00 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 03 00 14 03 00 90 00 8B [09:54:42]RAPDU: 90 00 [09:54:42]wFMCommunicate OK [09:54:42]wFMCommunicate request_size=4 [09:54:42]MH_SAM_APDU [09:54:42]CAPDU: 80 0D 03 02 [09:54:42]Write to MH i2c: E2 08 00 15 03 80 0D 03 02 00 00 00 00 93 [09:54:42]Write i2c OK [09:54:42]MH_I2C_Read... [09:54:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:54:42]Read from MH i2c: E2 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 0B 00 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 0B 00 15 03 00 A0 F3 F1 0E 51 B5 8C EB 90 00 A3 [09:54:42]RAPDU: A0 F3 F1 0E 51 B5 8C EB 90 00 [09:54:42]wFMCommunicate OK [09:54:42]SAM_PROTO_SignData done [09:54:42]FM_MakeSignedData done [09:54:42]CreateOFDProtocolMessage [09:54:42]wFMCommunicate request_size=4 [09:54:42]MH_SAM_APDU [09:54:42]CAPDU: 80 11 00 00 [09:54:42]Write to MH i2c: E2 08 00 16 03 80 11 00 00 00 00 00 00 93 [09:54:42]Write i2c OK [09:54:42]MH_I2C_Read... [09:54:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:42]Read from MH i2c: E2 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 17 00 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 17 00 16 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 E7 [09:54:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:54:42]wFMCommunicate OK [09:54:42]CreateOFDProtocolMessage done [09:54:42]OFDSenderStorePacket 73194 [09:54:42]StoreOFDPacket docnum=73194 [09:54:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 97 F4 07 01 A4 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 60 A5 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EA 1D 01 00 35 04 06 00 6A 21 86 98 FD E6 A0 F3 F1 0E 51 B5 8C EB [09:54:42]CheckFolder [09:54:42]dirname=/storage/ofd_packets [09:54:42]CheckFolder done [09:54:42]ProducePacketName [09:54:42]name=ofd_packets/00073194 [09:54:42]NVStorageSaveData ofd_packets/00073194 [09:54:42]File name is /storage/ofd_packets/00073194 [09:54:42]Write 301 bytes [09:54:42]NVStorageSaveData done [09:54:42]OFDSenderStorePacket done [09:54:42]KKMCreateOFDPacket done [09:54:42]NVStorageSaveData kkm_last_timestamp [09:54:42]File name is /storage/kkm_last_timestamp [09:54:42]Write 4 bytes [09:54:42]NVStorageSaveData done [09:54:42]ExternCall_PrintAddStr [09:54:42]wPrintStart [09:54:42]Write to MH i2c: 01 00 00 17 03 1A [09:54:42]Write i2c OK [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: 01 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: 01 07 00 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: 01 07 00 17 03 00 00 00 00 00 FF 0F 2F [09:54:42]RasterBufferAndPrint [09:54:42]line Счет N : (1)952794 [09:54:42]line ИНН: 02508201610067 [09:54:42]line Контрольно-Кассовый Чек [09:54:42]line ПРОДАЖА [09:54:42]line ТРК (МРК, ГНК) : 63 [09:54:42]line Товар: 2710124130 [09:54:42]line Аи-92-К-5 [09:54:42]line 14.950 * 0.00 [09:54:42]line = 0.00 [09:54:42]line НДС 12% НСП 1% [09:54:42]line > о реализуемом товаре [09:54:42]line ИТОГО: 0.00 [09:54:42]line НСП 1% : 0.00 [09:54:42]line НДС 12% : 0.00 [09:54:42]line Наличными: 0.00 [09:54:42]line Безнал.: 0.00 [09:54:42]line Место: АЗС № 113 "Партнер Нефть" [09:54:42]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:54:42]line СНО: Общий режим [09:54:42]line Чек 63 01.11.2024 09:54 [09:54:42]line Смена: 558 ФФД: 1.0 [09:54:42]line ЗНМ: 0300000087 [09:54:42]line РНМ: 0000000000091644 [09:54:42]line Версия ККМ: 001 [09:54:42]line Талоны: Топливная Карта [09:54:42]line 03047 [09:54:42]line ФМ: 0000000000874662 [09:54:42]line ФД: 73194 [09:54:42]line ФПД: 116692224638438 [09:54:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T095440&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73194&fm=116692224638438&tin=02508201610067®Number=0000000000091644&sum=0 [09:54:42]written 0, free lines is 4095 [09:54:42]OFD Sender: Processing packet 73194 [packets to send 282, broken 281] [09:54:42]ProducePacketName [09:54:42]name=ofd_packets/00073194 [09:54:42]OFD Sender: To server: pG, [09:54:42]CommunicateWithHost lk.salyk.kg:30040 [09:54:42]ConnectInit lk.salyk.kg [09:54:42]Write to MH i2c: 01 00 00 41 03 44 [09:54:42]Write i2c OK [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: 01 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: 01 07 00 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: 01 07 00 41 03 00 00 00 00 00 E3 0C 3A [09:54:42]RasterBufferAndPrint [09:54:42]line [09:54:42]line [09:54:42]line [09:54:42]line [09:54:42]line [09:54:42]written 0, free lines is 3305 [09:54:42]MH_Cut [09:54:42]Write to MH i2c: D1 01 00 48 03 01 1D [09:54:42]Write i2c OK [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: D1 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: D1 01 00 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: D1 01 00 48 03 00 1C [09:54:42]Write to MH i2c: 01 00 00 49 03 4C [09:54:42]Write i2c OK [09:54:42]MH_I2C_Read... [09:54:43]*** Cut start [09:54:43]*** Partial cut [09:54:43]*** CUTSNS_PIN = 1 [09:54:43]*** CUTSNS_PIN = 0 [09:54:44]*** Brake cut motor [09:54:44]Read from MH i2c: 01 [09:54:44]MH_I2C_Read... [09:54:44]*** Stop cut motor [09:54:44]*** Cut end [09:54:44]Read from MH i2c: 01 07 00 [09:54:44]MH_I2C_Read... [09:54:44]Read from MH i2c: 01 07 00 49 03 00 00 00 00 00 FF 0F 61 [09:54:44]process_action close_receipt done [09:54:44]requested_data is exist [09:54:44]produce_requested_data [09:54:44]requested_item fm.sn is exist - process it [09:54:44]wFMCommunicate request_size=4 [09:54:44]MH_SAM_APDU [09:54:44]CAPDU: 80 11 00 00 [09:54:44]Write to MH i2c: E2 08 00 4A 03 80 11 00 00 00 00 00 00 C7 [09:54:44]Write i2c OK [09:54:44]MH_I2C_Read... [09:54:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:44]Read from MH i2c: E2 [09:54:44]MH_I2C_Read... [09:54:44]Read from MH i2c: E2 17 00 [09:54:44]MH_I2C_Read... [09:54:44]Read from MH i2c: E2 17 00 4A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 1B [09:54:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:54:44]wFMCommunicate OK [09:54:44]requested_item fd.num is exist - process it [09:54:44]SAM_PROTO_GetFieldsCounters [09:54:44]wFMCommunicate request_size=4 [09:54:44]MH_SAM_APDU [09:54:44]CAPDU: 80 13 00 00 [09:54:44]Write to MH i2c: E2 08 00 4B 03 80 13 00 00 00 00 00 00 CA [09:54:44]Write i2c OK [09:54:44]MH_I2C_Read... [09:54:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:54:44]Read from MH i2c: E2 [09:54:44]MH_I2C_Read... [09:54:44]Read from MH i2c: E2 62 00 [09:54:44]MH_I2C_Read... [09:54:44]Read from MH i2c: E2 62 00 4B 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 EA 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [09:54:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 EA 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:54:44]wFMCommunicate OK [09:54:44]SAM_PROTO_GetFieldsCounters done [09:54:44]requested_item shift.num is exist - process it [09:54:44]requested_item shift.opened is exist - process it [09:54:44]req_shift_opened [09:54:44]FM_GetShiftState [09:54:44]SAM_PROTO_GetShiftState [09:54:44]wFMCommunicate request_size=4 [09:54:44]MH_SAM_APDU [09:54:44]CAPDU: 80 13 01 00 [09:54:44]Write to MH i2c: E2 08 00 4C 03 80 13 01 00 00 00 00 00 CC [09:54:44]Write i2c OK [09:54:44]MH_I2C_Read... [09:54:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:44]Read from MH i2c: E2 [09:54:44]MH_I2C_Read... [09:54:44]Read from MH i2c: E2 0E 00 [09:54:44]MH_I2C_Read... [09:54:44]Read from MH i2c: E2 0E 00 4C 03 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 13 [09:54:44]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [09:54:44]wFMCommunicate OK [09:54:44]SAM_PROTO_GetShiftState done [09:54:44]FM_GetShiftState done [09:54:44]req_shift_opened done [09:54:44]requested_item shift.open_date is exist - process it [09:54:44]req_shift_open_date [09:54:44]req_shift_open_date done [09:54:44]produce_requested_data done [09:54:44]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73194,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [09:54:44]process_action_free close_receipt [09:54:44]json_value_free [09:54:44]json_value_free done [09:54:44]process_json_proto returns [09:54:44]Send response to host [09:54:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73194,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [09:54:44]free response buf [09:54:44]execute_script done [09:54:44]execute_script returns [09:54:44]free content buf [09:54:44]Sock 8.Close socket [09:54:44]Sock 8.Thread stoped [09:54:44]Connected sock=10 [09:54:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 97 F4 07 01 A4 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 60 A5 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EA 1D 01 00 35 04 06 00 6A 21 86 98 FD E6 A0 F3 F1 0E 51 B5 8C EB [09:54:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 9B 2C 47 00 94 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EA 1D 01 00 F4 03 04 00 16 50 24 67 B6 04 01 00 00 60 74 4C AE 8B BE A0 3E [09:54:46]CommunicateWithHost err = 0 [09:54:46]CheckOFDResponse [09:54:46]1017 (14) - 77093643461234 [09:54:46]1041 (16) - 0000000000874662 [09:54:46]1040 (4) - 73194 [09:54:46]1012 (4) - 01.11.2024 03:50 [09:54:46]1206 (1) - 0 [09:54:46]OFD Sender: Remove packet 73194 [09:54:46]ProducePacketName [09:54:46]name=ofd_packets/00073194 [09:54:46]NVStorageDeleteData [09:54:46]OFD Sender: No OFD packet to send [09:54:51]recv_with_timeout no data received [09:54:51]OFD Sender: No OFD packet to send [09:54:56]OFD Sender: No OFD packet to send [09:55:01]OFD Sender: No OFD packet to send [09:55:06]OFD Sender: No OFD packet to send [09:55:11]OFD Sender: No OFD packet to send [09:55:16]OFD Sender: No OFD packet to send [09:55:21]OFD Sender: No OFD packet to send [09:55:26]OFD Sender: No OFD packet to send [09:55:31]OFD Sender: No OFD packet to send [09:55:36]OFD Sender: No OFD packet to send [09:55:41]OFD Sender: No OFD packet to send [09:55:46]OFD Sender: No OFD packet to send [09:55:51]OFD Sender: No OFD packet to send [09:55:56]OFD Sender: No OFD packet to send [09:56:01]OFD Sender: No OFD packet to send [09:56:06]OFD Sender: No OFD packet to send [09:56:11]OFD Sender: No OFD packet to send [09:56:16]OFD Sender: No OFD packet to send [09:56:21]OFD Sender: No OFD packet to send [09:56:26]OFD Sender: No OFD packet to send [09:56:31]OFD Sender: No OFD packet to send [09:56:36]OFD Sender: No OFD packet to send [09:56:41]OFD Sender: No OFD packet to send [09:56:46]OFD Sender: No OFD packet to send [09:56:51]OFD Sender: No OFD packet to send [09:56:56]OFD Sender: No OFD packet to send [09:57:01]OFD Sender: No OFD packet to send [09:57:06]OFD Sender: No OFD packet to send [09:57:11]OFD Sender: No OFD packet to send [09:57:16]OFD Sender: No OFD packet to send [09:57:21]OFD Sender: No OFD packet to send [09:57:26]OFD Sender: No OFD packet to send [09:57:31]OFD Sender: No OFD packet to send [09:57:36]OFD Sender: No OFD packet to send [09:57:42]OFD Sender: No OFD packet to send [09:57:47]OFD Sender: No OFD packet to send [09:57:52]OFD Sender: No OFD packet to send [09:57:57]OFD Sender: No OFD packet to send [09:58:02]OFD Sender: No OFD packet to send [09:58:07]OFD Sender: No OFD packet to send [09:58:12]OFD Sender: No OFD packet to send [09:58:17]OFD Sender: No OFD packet to send [09:58:22]OFD Sender: No OFD packet to send [09:58:27]OFD Sender: No OFD packet to send [09:58:32]OFD Sender: No OFD packet to send [09:58:37]OFD Sender: No OFD packet to send [09:58:42]OFD Sender: No OFD packet to send [09:58:47]OFD Sender: No OFD packet to send [09:58:52]OFD Sender: No OFD packet to send [09:58:57]OFD Sender: No OFD packet to send [09:59:02]OFD Sender: No OFD packet to send [09:59:06]recv_with_timeout no data received [09:59:07]OFD Sender: No OFD packet to send [09:59:12]OFD Sender: No OFD packet to send [09:59:17]OFD Sender: No OFD packet to send [09:59:22]OFD Sender: No OFD packet to send [09:59:27]OFD Sender: No OFD packet to send [09:59:29]recv_with_timeout no data received [09:59:32]OFD Sender: No OFD packet to send [09:59:37]OFD Sender: No OFD packet to send [09:59:42]OFD Sender: No OFD packet to send [09:59:47]OFD Sender: No OFD packet to send [09:59:52]OFD Sender: No OFD packet to send [09:59:57]OFD Sender: No OFD packet to send [10:00:02]OFD Sender: No OFD packet to send [10:00:07]OFD Sender: No OFD packet to send [10:00:12]OFD Sender: No OFD packet to send [10:00:17]OFD Sender: No OFD packet to send [10:00:22]OFD Sender: No OFD packet to send [10:00:27]OFD Sender: No OFD packet to send [10:00:32]OFD Sender: No OFD packet to send [10:00:37]OFD Sender: No OFD packet to send [10:00:42]OFD Sender: No OFD packet to send [10:00:47]OFD Sender: No OFD packet to send [10:00:51]recv_with_timeout no data received [10:00:52]OFD Sender: No OFD packet to send [10:00:57]OFD Sender: No OFD packet to send [10:01:02]OFD Sender: No OFD packet to send [10:01:07]OFD Sender: No OFD packet to send [10:01:12]OFD Sender: No OFD packet to send [10:01:17]OFD Sender: No OFD packet to send [10:01:22]OFD Sender: No OFD packet to send [10:01:27]OFD Sender: No OFD packet to send [10:01:32]OFD Sender: No OFD packet to send [10:01:37]OFD Sender: No OFD packet to send [10:01:42]OFD Sender: No OFD packet to send [10:01:47]OFD Sender: No OFD packet to send [10:01:52]OFD Sender: No OFD packet to send [10:01:57]OFD Sender: No OFD packet to send [10:02:02]OFD Sender: No OFD packet to send [10:02:07]OFD Sender: No OFD packet to send [10:02:12]OFD Sender: No OFD packet to send [10:02:16]recv_with_timeout no data received [10:02:17]OFD Sender: No OFD packet to send [10:02:22]OFD Sender: No OFD packet to send [10:02:27]OFD Sender: No OFD packet to send [10:02:32]OFD Sender: No OFD packet to send [10:02:37]OFD Sender: No OFD packet to send [10:02:42]OFD Sender: No OFD packet to send [10:02:47]OFD Sender: No OFD packet to send [10:02:52]OFD Sender: No OFD packet to send [10:02:57]OFD Sender: No OFD packet to send [10:03:02]OFD Sender: No OFD packet to send [10:03:07]OFD Sender: No OFD packet to send [10:03:12]OFD Sender: No OFD packet to send [10:03:17]OFD Sender: No OFD packet to send [10:03:22]OFD Sender: No OFD packet to send [10:03:27]OFD Sender: No OFD packet to send [10:03:32]OFD Sender: No OFD packet to send [10:03:37]OFD Sender: No OFD packet to send [10:03:42]OFD Sender: No OFD packet to send [10:03:47]OFD Sender: No OFD packet to send [10:03:52]OFD Sender: No OFD packet to send [10:03:57]OFD Sender: No OFD packet to send [10:03:58]accept exits with 9 [10:03:58]New connection [10:03:58]New thread 3067493732 created [10:03:58]Thread 3067637092 joined [10:03:58]Waiting for new connection... [10:03:58] Sock 9.Parse request [10:03:58]Sock 9.Check first char [10:03:58]Sock 9.First char is OK [10:03:58]request: POST /json_proto HTTP/1.0 [10:03:58]Method: POST [10:03:58]URL: /json_proto [10:03:58]Method is POST - this is cgi request [10:03:58]url: /json_proto [10:03:58]query_string will be loaded in cgi processing [10:03:58]execute_cgi json_proto POST (null) [10:03:58]execute_cgi path=json_proto method=POST [10:03:58]POST find Content-Length [10:03:58]Host: 172.17.43.195:8080 [10:03:58]Content-Length: 791 [10:03:58]Content-Type: application/json [10:03:58] [10:03:58]POST finish read [10:03:58]Found Content-Length = 791 [10:03:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952795", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 2.990, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:58]execute_script... [10:03:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952795", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 2.990, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:58]POST & json_proto [10:03:58]process_json_proto [10:03:58]json parsed OK: [10:03:58]protocol is kg_v1.0 [10:03:58]action value=close_receipt [10:03:58]process_action close_receipt [10:03:58]cmd_close_receipt [10:03:58]MH_GetDate [10:03:58]Write to MH i2c: F0 00 00 4D 03 3F [10:03:58]Write i2c OK [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: F0 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: F0 09 00 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: F0 09 00 4D 03 00 8E A7 24 67 74 2C AD 66 BB [10:03:58]GetLastDocTimeStamp 1730454880 [10:03:58]current date 1730455438 [10:03:58]FM_GetShiftState [10:03:58]SAM_PROTO_GetShiftState [10:03:58]wFMCommunicate request_size=4 [10:03:58]MH_SAM_APDU [10:03:58]CAPDU: 80 13 01 00 [10:03:58]Write to MH i2c: E2 08 00 4E 03 80 13 01 00 00 00 00 00 CE [10:03:58]Write i2c OK [10:03:58]MH_I2C_Read... [10:03:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:58]Read from MH i2c: E2 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: E2 0E 00 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: E2 0E 00 4E 03 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 15 [10:03:58]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [10:03:58]wFMCommunicate OK [10:03:58]SAM_PROTO_GetShiftState done [10:03:58]FM_GetShiftState done [10:03:58]opened in 1730419605 [10:03:58]opened+sec_in_day 1730506005 [10:03:58]quantity*price = 0 [10:03:58]sum+1 = 1 [10:03:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 64 01.11.2024 10:03 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 73195 ФПД: 139436702272271 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T100358&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73195&fm=139436702272271&tin=02508201610067®Number=0000000000091644&sum=0 [10:03:59]StoreToDocumentArchive [10:03:59]shift 558 fd 73195 [10:03:59]save to /storage/0558/doc_00073195 [10:03:59]save last doc name /storage/0558/doc_00073195 to /storage/kkm_last_doc_name [10:03:59]save OK [10:03:59]Clear old archive folders... [10:03:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:03:59]tlvbuf is 005AF100 [10:03:59]SAM_PROTO_ClearQueue [10:03:59]wFMCommunicate request_size=4 [10:03:59]MH_SAM_APDU [10:03:59]CAPDU: 80 09 00 00 [10:03:59]Write to MH i2c: E2 08 00 5B 03 80 09 00 00 00 00 00 00 D0 [10:03:59]Write i2c OK [10:03:59]MH_I2C_Read... [10:04:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:00]Read from MH i2c: E2 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: E2 03 00 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: E2 03 00 5B 03 00 90 00 D2 [10:04:00]RAPDU: 90 00 [10:04:00]wFMCommunicate OK [10:04:00]SAM_PROTO_ClearQueue done [10:04:00]KKMCreateOFDPacket [10:04:00]OFDProtocolAddRootSTLVToBuf [10:04:00]FM_MakeSignedData [10:04:00]FM_MakeSignedData [10:04:00]SAM_PROTO_SignData [10:04:00]wFMCommunicate request_size=4 [10:04:00]MH_SAM_APDU [10:04:00]CAPDU: 80 0D 01 02 [10:04:00]Write to MH i2c: E2 08 00 5C 03 80 0D 01 02 00 00 00 00 D8 [10:04:00]Write i2c OK [10:04:00]MH_I2C_Read... [10:04:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:00]Read from MH i2c: E2 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: E2 03 00 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: E2 03 00 5C 03 00 90 00 D3 [10:04:00]RAPDU: 90 00 [10:04:00]wFMCommunicate OK [10:04:00]wFMCommunicate request_size=255 [10:04:00]MH_SAM_APDU [10:04:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 8E A7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EB 1D 01 00 35 04 06 00 7E [10:04:00]Write to MH i2c: E2 02 01 5D 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 8E A7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EB 1D 01 00 35 04 06 00 7E 00 00 52 [10:04:00]Write i2c OK [10:04:00]MH_I2C_Read... [10:04:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:00]Read from MH i2c: E2 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: E2 03 00 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: E2 03 00 5D 03 00 90 00 D4 [10:04:00]RAPDU: 90 00 [10:04:00]wFMCommunicate OK [10:04:00]wFMCommunicate request_size=10 [10:04:00]MH_SAM_APDU [10:04:00]CAPDU: 80 0D 02 02 05 D1 23 1B 8B 0F [10:04:00]Write to MH i2c: E2 0D 00 5E 03 80 0D 02 02 05 00 D1 23 1B 8B 0F 00 00 8E [10:04:00]Write i2c OK [10:04:00]MH_I2C_Read... [10:04:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:00]Read from MH i2c: E2 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: E2 03 00 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: E2 03 00 5E 03 00 90 00 D5 [10:04:00]RAPDU: 90 00 [10:04:00]wFMCommunicate OK [10:04:00]wFMCommunicate request_size=4 [10:04:00]MH_SAM_APDU [10:04:00]CAPDU: 80 0D 03 02 [10:04:00]Write to MH i2c: E2 08 00 5F 03 80 0D 03 02 00 00 00 00 DD [10:04:00]Write i2c OK [10:04:00]MH_I2C_Read... [10:04:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:00]Read from MH i2c: E2 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: E2 0B 00 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: E2 0B 00 5F 03 00 6E 8F A2 32 1D 25 E1 FD 90 00 CF [10:04:00]RAPDU: 6E 8F A2 32 1D 25 E1 FD 90 00 [10:04:00]wFMCommunicate OK [10:04:00]SAM_PROTO_SignData done [10:04:00]FM_MakeSignedData done [10:04:00]CreateOFDProtocolMessage [10:04:00]wFMCommunicate request_size=4 [10:04:00]MH_SAM_APDU [10:04:00]CAPDU: 80 11 00 00 [10:04:00]Write to MH i2c: E2 08 00 60 03 80 11 00 00 00 00 00 00 DD [10:04:00]Write i2c OK [10:04:00]MH_I2C_Read... [10:04:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:00]Read from MH i2c: E2 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: E2 17 00 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: E2 17 00 60 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 31 [10:04:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:04:00]wFMCommunicate OK [10:04:00]CreateOFDProtocolMessage done [10:04:00]OFDSenderStorePacket 73195 [10:04:00]StoreOFDPacket docnum=73195 [10:04:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 F2 32 07 01 00 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 8E A7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EB 1D 01 00 35 04 06 00 7E D1 23 1B 8B 0F 6E 8F A2 32 1D 25 E1 FD [10:04:00]CheckFolder [10:04:00]dirname=/storage/ofd_packets [10:04:00]CheckFolder done [10:04:00]ProducePacketName [10:04:00]name=ofd_packets/00073195 [10:04:00]NVStorageSaveData ofd_packets/00073195 [10:04:00]File name is /storage/ofd_packets/00073195 [10:04:00]Write 301 bytes [10:04:00]NVStorageSaveData done [10:04:00]OFDSenderStorePacket done [10:04:00]KKMCreateOFDPacket done [10:04:00]NVStorageSaveData kkm_last_timestamp [10:04:00]File name is /storage/kkm_last_timestamp [10:04:00]Write 4 bytes [10:04:00]NVStorageSaveData done [10:04:00]ExternCall_PrintAddStr [10:04:00]wPrintStart [10:04:00]Write to MH i2c: 01 00 00 61 03 64 [10:04:00]Write i2c OK [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: 01 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: 01 07 00 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: 01 07 00 61 03 00 00 00 00 00 FF 0F 79 [10:04:00]RasterBufferAndPrint [10:04:00]line Счет N : (1)952795 [10:04:00]line ИНН: 02508201610067 [10:04:00]line Контрольно-Кассовый Чек [10:04:00]line ПРОДАЖА [10:04:00]line ТРК (МРК, ГНК) : 53 [10:04:00]line Товар: 2710124130 [10:04:00]line Аи-92-К-5 [10:04:00]line 2.990 * 0.00 [10:04:00]line = 0.00 [10:04:00]line НДС 12% НСП 1% [10:04:00]line > о реализуемом товаре [10:04:00]line ИТОГО: 0.00 [10:04:00]line НСП 1% : 0.00 [10:04:00]line НДС 12% : 0.00 [10:04:00]line Наличными: 0.00 [10:04:00]line Безнал.: 0.00 [10:04:00]line Место: АЗС № 113 "Партнер Нефть" [10:04:00]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [10:04:00]line СНО: Общий режим [10:04:00]line Чек 64 01.11.2024 10:03 [10:04:00]line Смена: 558 ФФД: 1.0 [10:04:00]line ЗНМ: 0300000087 [10:04:00]line РНМ: 0000000000091644 [10:04:00]line Версия ККМ: 001 [10:04:00]line Талоны: Топливная Карта [10:04:00]line 03047 [10:04:00]line ФМ: 0000000000874662 [10:04:00]line ФД: 73195 [10:04:00]line ФПД: 139436702272271 [10:04:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T100358&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73195&fm=139436702272271&tin=02508201610067®Number=0000000000091644&sum=0 [10:04:00]OFD Sender: Processing packet 73195 [packets to send 282, broken 281] [10:04:00]ProducePacketName [10:04:00]name=ofd_packets/00073195 [10:04:00]OFD Sender: To server: pG, [10:04:00]CommunicateWithHost lk.salyk.kg:30040 [10:04:00]ConnectInit lk.salyk.kg [10:04:00]written 0, free lines is 4095 [10:04:01]Write to MH i2c: 01 00 00 8B 03 8E [10:04:01]Write i2c OK [10:04:01]MH_I2C_Read... [10:04:01]Read from MH i2c: 01 [10:04:01]MH_I2C_Read... [10:04:01]Read from MH i2c: 01 07 00 [10:04:01]MH_I2C_Read... [10:04:01]Read from MH i2c: 01 07 00 8B 03 00 00 00 00 00 E1 0C 82 [10:04:01]RasterBufferAndPrint [10:04:01]line [10:04:01]line [10:04:01]line [10:04:01]line [10:04:01]line [10:04:01]written 0, free lines is 3303 [10:04:01]MH_Cut [10:04:01]Write to MH i2c: D1 01 00 92 03 01 67 [10:04:01]Write i2c OK [10:04:01]MH_I2C_Read... [10:04:01]Read from MH i2c: D1 [10:04:01]MH_I2C_Read... [10:04:01]Read from MH i2c: D1 01 00 [10:04:01]MH_I2C_Read... [10:04:01]Read from MH i2c: D1 01 00 92 03 00 66 [10:04:01]Write to MH i2c: 01 00 00 93 03 96 [10:04:01]Write i2c OK [10:04:01]MH_I2C_Read... [10:04:02]*** Cut start [10:04:02]*** Partial cut [10:04:02]*** CUTSNS_PIN = 1 [10:04:02]*** CUTSNS_PIN = 0 [10:04:02]*** Brake cut motor [10:04:02]Read from MH i2c: 01 [10:04:02]MH_I2C_Read... [10:04:02]*** Stop cut motor [10:04:02]*** Cut end [10:04:02]Read from MH i2c: 01 07 00 [10:04:02]MH_I2C_Read... [10:04:02]Read from MH i2c: 01 07 00 93 03 00 00 00 00 00 FF 0F AB [10:04:02]process_action close_receipt done [10:04:02]requested_data is exist [10:04:02]produce_requested_data [10:04:02]requested_item fm.sn is exist - process it [10:04:02]wFMCommunicate request_size=4 [10:04:02]MH_SAM_APDU [10:04:02]CAPDU: 80 11 00 00 [10:04:02]Write to MH i2c: E2 08 00 94 03 80 11 00 00 00 00 00 00 11 [10:04:02]Write i2c OK [10:04:02]MH_I2C_Read... [10:04:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:02]Read from MH i2c: E2 [10:04:02]MH_I2C_Read... [10:04:02]Read from MH i2c: E2 17 00 [10:04:02]MH_I2C_Read... [10:04:02]Read from MH i2c: E2 17 00 94 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 65 [10:04:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:04:02]wFMCommunicate OK [10:04:02]requested_item fd.num is exist - process it [10:04:02]SAM_PROTO_GetFieldsCounters [10:04:02]wFMCommunicate request_size=4 [10:04:02]MH_SAM_APDU [10:04:02]CAPDU: 80 13 00 00 [10:04:02]Write to MH i2c: E2 08 00 95 03 80 13 00 00 00 00 00 00 14 [10:04:02]Write i2c OK [10:04:02]MH_I2C_Read... [10:04:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:02]Read from MH i2c: E2 [10:04:02]MH_I2C_Read... [10:04:02]Read from MH i2c: E2 62 00 [10:04:02]MH_I2C_Read... [10:04:02]Read from MH i2c: E2 62 00 95 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 EB 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [10:04:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 EB 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:04:02]wFMCommunicate OK [10:04:02]SAM_PROTO_GetFieldsCounters done [10:04:02]requested_item shift.num is exist - process it [10:04:02]requested_item shift.opened is exist - process it [10:04:02]req_shift_opened [10:04:02]FM_GetShiftState [10:04:02]SAM_PROTO_GetShiftState [10:04:02]wFMCommunicate request_size=4 [10:04:02]MH_SAM_APDU [10:04:02]CAPDU: 80 13 01 00 [10:04:02]Write to MH i2c: E2 08 00 96 03 80 13 01 00 00 00 00 00 16 [10:04:02]Write i2c OK [10:04:02]MH_I2C_Read... [10:04:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:02]Read from MH i2c: E2 [10:04:02]MH_I2C_Read... [10:04:02]Read from MH i2c: E2 0E 00 [10:04:02]MH_I2C_Read... [10:04:02]Read from MH i2c: E2 0E 00 96 03 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 5D [10:04:02]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [10:04:02]wFMCommunicate OK [10:04:02]SAM_PROTO_GetShiftState done [10:04:02]FM_GetShiftState done [10:04:02]req_shift_opened done [10:04:02]requested_item shift.open_date is exist - process it [10:04:02]req_shift_open_date [10:04:02]req_shift_open_date done [10:04:02]produce_requested_data done [10:04:02]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73195,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [10:04:02]process_action_free close_receipt [10:04:02]json_value_free [10:04:02]json_value_free done [10:04:02]process_json_proto returns [10:04:02]Send response to host [10:04:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73195,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [10:04:02]free response buf [10:04:02]execute_script done [10:04:02]execute_script returns [10:04:02]free content buf [10:04:02]Sock 9.Close socket [10:04:02]Sock 9.Thread stoped [10:04:06]recv_with_timeout no data received [10:04:17]Connected sock=11 [10:04:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 F2 32 07 01 00 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 8E A7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EB 1D 01 00 35 04 06 00 7E D1 23 1B 8B 0F 6E 8F A2 32 1D 25 E1 FD [10:04:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 59 2D 47 00 1E 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EB 1D 01 00 F4 03 04 00 55 52 24 67 B6 04 01 00 00 9C 41 3E 90 50 7F A9 01 [10:04:21]CommunicateWithHost err = 0 [10:04:21]CheckOFDResponse [10:04:21]1017 (14) - 77093643461234 [10:04:21]1041 (16) - 0000000000874662 [10:04:21]1040 (4) - 73195 [10:04:21]1012 (4) - 01.11.2024 04:00 [10:04:21]1206 (1) - 0 [10:04:21]OFD Sender: Remove packet 73195 [10:04:21]ProducePacketName [10:04:21]name=ofd_packets/00073195 [10:04:21]NVStorageDeleteData [10:04:21]OFD Sender: No OFD packet to send [10:04:25]recv_with_timeout no data received [10:04:26]OFD Sender: No OFD packet to send [10:04:31]OFD Sender: No OFD packet to send [10:04:36]OFD Sender: No OFD packet to send [10:04:40]recv_with_timeout no data received [10:04:41]OFD Sender: No OFD packet to send [10:04:46]OFD Sender: No OFD packet to send [10:04:51]OFD Sender: No OFD packet to send [10:04:56]OFD Sender: No OFD packet to send [10:05:01]OFD Sender: No OFD packet to send [10:05:06]OFD Sender: No OFD packet to send [10:05:11]OFD Sender: No OFD packet to send [10:05:16]OFD Sender: No OFD packet to send [10:05:21]OFD Sender: No OFD packet to send [10:05:26]OFD Sender: No OFD packet to send [10:05:31]OFD Sender: No OFD packet to send [10:05:36]OFD Sender: No OFD packet to send [10:05:41]OFD Sender: No OFD packet to send [10:05:46]OFD Sender: No OFD packet to send [10:05:51]OFD Sender: No OFD packet to send [10:05:55]recv_with_timeout no data received [10:05:56]OFD Sender: No OFD packet to send [10:06:01]OFD Sender: No OFD packet to send [10:06:06]OFD Sender: No OFD packet to send [10:06:08]accept exits with 8 [10:06:08]New connection [10:06:08]New thread 3067637092 created [10:06:08]Thread 3067493732 joined [10:06:08]Waiting for new connection... [10:06:08] Sock 8.Parse request [10:06:08]Sock 8.Check first char [10:06:08]Sock 8.First char is OK [10:06:08]request: POST /json_proto HTTP/1.0 [10:06:08]Method: POST [10:06:08]URL: /json_proto [10:06:08]Method is POST - this is cgi request [10:06:08]url: /json_proto [10:06:08]query_string will be loaded in cgi processing [10:06:08]execute_cgi json_proto POST (null) [10:06:08]execute_cgi path=json_proto method=POST [10:06:08]POST find Content-Length [10:06:08]Host: 172.17.43.195:8080 [10:06:08]Content-Length: 792 [10:06:08]Content-Type: application/json [10:06:08] [10:06:08]POST finish read [10:06:08]Found Content-Length = 792 [10:06:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02645", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:08]execute_script... [10:06:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02645", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:08]POST & json_proto [10:06:08]process_json_proto [10:06:08]json parsed OK: [10:06:08]protocol is kg_v1.0 [10:06:08]action value=close_receipt [10:06:08]process_action close_receipt [10:06:08]cmd_close_receipt [10:06:08]MH_GetDate [10:06:08]Write to MH i2c: F0 00 00 97 03 89 [10:06:08]Write i2c OK [10:06:08]MH_I2C_Read... [10:06:08]Read from MH i2c: F0 [10:06:08]MH_I2C_Read... [10:06:08]Read from MH i2c: F0 09 00 [10:06:08]MH_I2C_Read... [10:06:08]Read from MH i2c: F0 09 00 97 03 00 10 A8 24 67 74 2C AD 66 88 [10:06:08]GetLastDocTimeStamp 1730455438 [10:06:08]current date 1730455568 [10:06:08]FM_GetShiftState [10:06:08]SAM_PROTO_GetShiftState [10:06:08]wFMCommunicate request_size=4 [10:06:08]MH_SAM_APDU [10:06:08]CAPDU: 80 13 01 00 [10:06:08]Write to MH i2c: E2 08 00 98 03 80 13 01 00 00 00 00 00 18 [10:06:08]Write i2c OK [10:06:08]MH_I2C_Read... [10:06:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:08]Read from MH i2c: E2 [10:06:08]MH_I2C_Read... [10:06:08]Read from MH i2c: E2 0E 00 [10:06:08]MH_I2C_Read... [10:06:08]Read from MH i2c: E2 0E 00 98 03 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 5F [10:06:08]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [10:06:08]wFMCommunicate OK [10:06:08]SAM_PROTO_GetShiftState done [10:06:08]FM_GetShiftState done [10:06:08]opened in 1730419605 [10:06:08]opened+sec_in_day 1730506005 [10:06:08]quantity*price = 0 [10:06:08]sum+1 = 1 [10:06:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 65 01.11.2024 10:06 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02645 ФМ: 0000000000874662 ФД: 73196 ФПД: 266040618512899 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T100608&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73196&fm=266040618512899&tin=02508201610067®Number=0000000000091644&sum=0 [10:06:09]StoreToDocumentArchive [10:06:09]shift 558 fd 73196 [10:06:09]save to /storage/0558/doc_00073196 [10:06:09]save last doc name /storage/0558/doc_00073196 to /storage/kkm_last_doc_name [10:06:09]save OK [10:06:09]Clear old archive folders... [10:06:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:06:09]tlvbuf is 005A6320 [10:06:09]SAM_PROTO_ClearQueue [10:06:09]wFMCommunicate request_size=4 [10:06:09]MH_SAM_APDU [10:06:09]CAPDU: 80 09 00 00 [10:06:09]Write to MH i2c: E2 08 00 A5 03 80 09 00 00 00 00 00 00 1A [10:06:09]Write i2c OK [10:06:09]MH_I2C_Read... [10:06:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:06:09]Read from MH i2c: E2 [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: E2 03 00 [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: E2 03 00 A5 03 00 90 00 1C [10:06:09]RAPDU: 90 00 [10:06:09]wFMCommunicate OK [10:06:09]SAM_PROTO_ClearQueue done [10:06:09]KKMCreateOFDPacket [10:06:09]OFDProtocolAddRootSTLVToBuf [10:06:09]FM_MakeSignedData [10:06:09]FM_MakeSignedData [10:06:09]SAM_PROTO_SignData [10:06:09]wFMCommunicate request_size=4 [10:06:09]MH_SAM_APDU [10:06:09]CAPDU: 80 0D 01 02 [10:06:09]Write to MH i2c: E2 08 00 A6 03 80 0D 01 02 00 00 00 00 22 [10:06:09]Write i2c OK [10:06:09]MH_I2C_Read... [10:06:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:06:10]Read from MH i2c: E2 [10:06:10]MH_I2C_Read... [10:06:10]Read from MH i2c: E2 03 00 [10:06:10]MH_I2C_Read... [10:06:10]Read from MH i2c: E2 03 00 A6 03 00 90 00 1D [10:06:10]RAPDU: 90 00 [10:06:10]wFMCommunicate OK [10:06:10]wFMCommunicate request_size=255 [10:06:10]MH_SAM_APDU [10:06:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 10 A8 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EC 1D 01 00 35 04 06 00 F1 [10:06:10]Write to MH i2c: E2 02 01 A7 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 10 A8 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EC 1D 01 00 35 04 06 00 F1 00 00 12 [10:06:10]Write i2c OK [10:06:10]MH_I2C_Read... [10:06:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:10]Read from MH i2c: E2 [10:06:10]MH_I2C_Read... [10:06:10]Read from MH i2c: E2 03 00 [10:06:10]MH_I2C_Read... [10:06:10]Read from MH i2c: E2 03 00 A7 03 00 90 00 1E [10:06:10]RAPDU: 90 00 [10:06:10]wFMCommunicate OK [10:06:10]wFMCommunicate request_size=10 [10:06:10]MH_SAM_APDU [10:06:10]CAPDU: 80 0D 02 02 05 F6 68 8F F2 03 [10:06:10]Write to MH i2c: E2 0D 00 A8 03 80 0D 02 02 05 00 F6 68 8F F2 03 00 00 11 [10:06:10]Write i2c OK [10:06:10]MH_I2C_Read... [10:06:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:10]Read from MH i2c: E2 [10:06:10]MH_I2C_Read... [10:06:10]Read from MH i2c: E2 03 00 [10:06:10]MH_I2C_Read... [10:06:10]Read from MH i2c: E2 03 00 A8 03 00 90 00 1F [10:06:10]RAPDU: 90 00 [10:06:10]wFMCommunicate OK [10:06:10]wFMCommunicate request_size=4 [10:06:10]MH_SAM_APDU [10:06:10]CAPDU: 80 0D 03 02 [10:06:10]Write to MH i2c: E2 08 00 A9 03 80 0D 03 02 00 00 00 00 27 [10:06:10]Write i2c OK [10:06:10]MH_I2C_Read... [10:06:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:06:10]Read from MH i2c: E2 [10:06:10]MH_I2C_Read... [10:06:10]Read from MH i2c: E2 0B 00 [10:06:10]MH_I2C_Read... [10:06:10]Read from MH i2c: E2 0B 00 A9 03 00 03 3C F9 D8 D4 D5 E5 59 90 00 1F [10:06:10]RAPDU: 03 3C F9 D8 D4 D5 E5 59 90 00 [10:06:10]wFMCommunicate OK [10:06:10]SAM_PROTO_SignData done [10:06:10]FM_MakeSignedData done [10:06:10]CreateOFDProtocolMessage [10:06:10]wFMCommunicate request_size=4 [10:06:10]MH_SAM_APDU [10:06:10]CAPDU: 80 11 00 00 [10:06:10]Write to MH i2c: E2 08 00 AA 03 80 11 00 00 00 00 00 00 27 [10:06:10]Write i2c OK [10:06:10]MH_I2C_Read... [10:06:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:10]Read from MH i2c: E2 [10:06:10]MH_I2C_Read... [10:06:10]Read from MH i2c: E2 17 00 [10:06:10]MH_I2C_Read... [10:06:10]Read from MH i2c: E2 17 00 AA 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7B [10:06:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:06:10]wFMCommunicate OK [10:06:10]CreateOFDProtocolMessage done [10:06:10]OFDSenderStorePacket 73196 [10:06:10]StoreOFDPacket docnum=73196 [10:06:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 62 B9 07 01 03 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 10 A8 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EC 1D 01 00 35 04 06 00 F1 F6 68 8F F2 03 03 3C F9 D8 D4 D5 E5 59 [10:06:10]CheckFolder [10:06:10]dirname=/storage/ofd_packets [10:06:10]CheckFolder done [10:06:10]ProducePacketName [10:06:10]name=ofd_packets/00073196 [10:06:10]NVStorageSaveData ofd_packets/00073196 [10:06:10]File name is /storage/ofd_packets/00073196 [10:06:10]Write 301 bytes [10:06:10]NVStorageSaveData done [10:06:10]OFDSenderStorePacket done [10:06:10]KKMCreateOFDPacket done [10:06:10]NVStorageSaveData kkm_last_timestamp [10:06:10]File name is /storage/kkm_last_timestamp [10:06:10]Write 4 bytes [10:06:10]NVStorageSaveData done [10:06:10]OFD Sender: Processing packet 73196 [packets to send 282, broken 281] [10:06:10]ProducePacketName [10:06:10]name=ofd_packets/00073196 [10:06:10]OFD Sender: To server: pG, [10:06:10]CommunicateWithHost lk.salyk.kg:30040 [10:06:10]ConnectInit lk.salyk.kg [10:06:10]ExternCall_PrintAddStr [10:06:10]wPrintStart [10:06:10]Write to MH i2c: 01 00 00 AB 03 AE [10:06:10]Write i2c OK [10:06:10]MH_I2C_Read... [10:06:10]Read from MH i2c: 01 [10:06:10]MH_I2C_Read... [10:06:10]Read from MH i2c: 01 07 00 [10:06:10]MH_I2C_Read... [10:06:10]Read from MH i2c: 01 07 00 AB 03 00 00 00 00 00 FF 0F C3 [10:06:10]RasterBufferAndPrint [10:06:10]line Счет N : (1)952796 [10:06:10]line ИНН: 02508201610067 [10:06:10]line Контрольно-Кассовый Чек [10:06:10]line ПРОДАЖА [10:06:10]line ТРК (МРК, ГНК) : 63 [10:06:10]line Товар: 2710124130 [10:06:10]line Аи-92-К-5 [10:06:10]line 10.000 * 0.00 [10:06:10]line = 0.00 [10:06:10]line НДС 12% НСП 1% [10:06:10]line > о реализуемом товаре [10:06:10]line ИТОГО: 0.00 [10:06:10]line НСП 1% : 0.00 [10:06:10]line НДС 12% : 0.00 [10:06:10]line Наличными: 0.00 [10:06:10]line Безнал.: 0.00 [10:06:10]line Место: АЗС № 113 "Партнер Нефть" [10:06:10]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [10:06:10]line СНО: Общий режим [10:06:10]line Чек 65 01.11.2024 10:06 [10:06:10]line Смена: 558 ФФД: 1.0 [10:06:10]line ЗНМ: 0300000087 [10:06:10]line РНМ: 0000000000091644 [10:06:10]line Версия ККМ: 001 [10:06:10]line Талоны: Топливная Карта [10:06:10]line 02645 [10:06:10]line ФМ: 0000000000874662 [10:06:10]line ФД: 73196 [10:06:10]line ФПД: 266040618512899 [10:06:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T100608&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73196&fm=266040618512899&tin=02508201610067®Number=0000000000091644&sum=0 [10:06:10]written 0, free lines is 4095 [10:06:11]Write to MH i2c: 01 00 00 D5 03 D8 [10:06:11]Write i2c OK [10:06:11]MH_I2C_Read... [10:06:11]Read from MH i2c: 01 [10:06:11]MH_I2C_Read... [10:06:11]Read from MH i2c: 01 07 00 [10:06:11]MH_I2C_Read... [10:06:11]Read from MH i2c: 01 07 00 D5 03 00 00 00 00 00 DF 0C CA [10:06:11]RasterBufferAndPrint [10:06:11]line [10:06:11]line [10:06:11]line [10:06:11]line [10:06:11]line [10:06:11]written 0, free lines is 3301 [10:06:11]MH_Cut [10:06:11]Write to MH i2c: D1 01 00 DC 03 01 B1 [10:06:11]Write i2c OK [10:06:11]MH_I2C_Read... [10:06:11]Read from MH i2c: D1 [10:06:11]MH_I2C_Read... [10:06:11]Read from MH i2c: D1 01 00 [10:06:11]MH_I2C_Read... [10:06:11]Read from MH i2c: D1 01 00 DC 03 00 B0 [10:06:11]Write to MH i2c: 01 00 00 DD 03 E0 [10:06:11]Write i2c OK [10:06:11]MH_I2C_Read... [10:06:12]*** Cut start [10:06:12]*** Partial cut [10:06:12]*** CUTSNS_PIN = 1 [10:06:12]*** CUTSNS_PIN = 0 [10:06:12]*** Brake cut motor [10:06:12]Connected sock=12 [10:06:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 62 B9 07 01 03 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 10 A8 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EC 1D 01 00 35 04 06 00 F1 F6 68 8F F2 03 03 3C F9 D8 D4 D5 E5 59 [10:06:12]Read from MH i2c: 01 [10:06:12]MH_I2C_Read... [10:06:12]*** Stop cut motor [10:06:12]*** Cut end [10:06:12]Read from MH i2c: 01 07 00 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: 01 07 00 DD 03 00 00 00 00 00 FF 0F F5 [10:06:12]process_action close_receipt done [10:06:12]requested_data is exist [10:06:12]produce_requested_data [10:06:12]requested_item fm.sn is exist - process it [10:06:12]wFMCommunicate request_size=4 [10:06:12]MH_SAM_APDU [10:06:12]CAPDU: 80 11 00 00 [10:06:12]Write to MH i2c: E2 08 00 DE 03 80 11 00 00 00 00 00 00 5B [10:06:12]Write i2c OK [10:06:12]MH_I2C_Read... [10:06:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:12]Read from MH i2c: E2 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: E2 17 00 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: E2 17 00 DE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 AF [10:06:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:06:12]wFMCommunicate OK [10:06:12]requested_item fd.num is exist - process it [10:06:12]SAM_PROTO_GetFieldsCounters [10:06:12]wFMCommunicate request_size=4 [10:06:12]MH_SAM_APDU [10:06:12]CAPDU: 80 13 00 00 [10:06:12]Write to MH i2c: E2 08 00 DF 03 80 13 00 00 00 00 00 00 5E [10:06:12]Write i2c OK [10:06:12]MH_I2C_Read... [10:06:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:06:12]Read from MH i2c: E2 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: E2 62 00 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: E2 62 00 DF 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 EC 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [10:06: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 EC 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:06:12]wFMCommunicate OK [10:06:12]SAM_PROTO_GetFieldsCounters done [10:06:12]requested_item shift.num is exist - process it [10:06:12]requested_item shift.opened is exist - process it [10:06:12]req_shift_opened [10:06:12]FM_GetShiftState [10:06:12]SAM_PROTO_GetShiftState [10:06:12]wFMCommunicate request_size=4 [10:06:12]MH_SAM_APDU [10:06:12]CAPDU: 80 13 01 00 [10:06:12]Write to MH i2c: E2 08 00 E0 03 80 13 01 00 00 00 00 00 60 [10:06:12]Write i2c OK [10:06:12]MH_I2C_Read... [10:06:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:12]Read from MH i2c: E2 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: E2 0E 00 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: E2 0E 00 E0 03 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 A7 [10:06:12]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [10:06:12]wFMCommunicate OK [10:06:12]SAM_PROTO_GetShiftState done [10:06:12]FM_GetShiftState done [10:06:12]req_shift_opened done [10:06:12]requested_item shift.open_date is exist - process it [10:06:12]req_shift_open_date [10:06:12]req_shift_open_date done [10:06:12]produce_requested_data done [10:06:12]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73196,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [10:06:12]process_action_free close_receipt [10:06:12]json_value_free [10:06:12]json_value_free done [10:06:12]process_json_proto returns [10:06:12]Send response to host [10:06:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73196,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [10:06:12]free response buf [10:06:12]execute_script done [10:06:12]execute_script returns [10:06:12]free content buf [10:06:12]Sock 8.Close socket [10:06:12]Sock 8.Thread stoped [10:06:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 69 99 47 00 43 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 34 36 36 32 10 04 04 00 EC 1D 01 00 F4 03 04 00 C8 52 24 67 B6 04 01 00 00 A2 A6 71 BF 82 01 37 99 [10:06:15]CommunicateWithHost err = 0 [10:06:15]CheckOFDResponse [10:06:15]1017 (14) - 77093643461234 [10:06:15]1041 (16) - 0000000000874662 [10:06:15]1040 (4) - 73196 [10:06:15]1012 (4) - 01.11.2024 04:02 [10:06:15]1206 (1) - 0 [10:06:15]OFD Sender: Remove packet 73196 [10:06:15]ProducePacketName [10:06:15]name=ofd_packets/00073196 [10:06:15]NVStorageDeleteData [10:06:15]OFD Sender: No OFD packet to send [10:06:20]OFD Sender: No OFD packet to send [10:06:21]recv_with_timeout no data received [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:39]recv_with_timeout no data received [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:06:57]recv_with_timeout no data received [10:07:00]OFD Sender: No OFD packet to send [10:07:55]ConnectInit Can't connect to host [10:07:56]OFD Sender: No OFD packet to send [10:08:01]OFD Sender: No OFD packet to send [10:08:06]OFD Sender: No OFD packet to send [10:08:11]OFD Sender: No OFD packet to send [10:08:16]OFD Sender: No OFD packet to send [10:08:21]OFD Sender: No OFD packet to send [10:08:26]OFD Sender: No OFD packet to send [10:08:31]OFD Sender: No OFD packet to send [10:08:36]OFD Sender: No OFD packet to send [10:08:41]OFD Sender: No OFD packet to send [10:08:46]OFD Sender: No OFD packet to send [10:08:51]OFD Sender: No OFD packet to send [10:08:56]OFD Sender: No OFD packet to send [10:09:01]OFD Sender: No OFD packet to send [10:09:06]OFD Sender: No OFD packet to send [10:09:11]OFD Sender: No OFD packet to send [10:09:16]OFD Sender: No OFD packet to send [10:09:21]OFD Sender: No OFD packet to send [10:09:26]OFD Sender: No OFD packet to send [10:09:31]OFD Sender: No OFD packet to send [10:09:36]OFD Sender: No OFD packet to send [10:09:41]OFD Sender: No OFD packet to send [10:09:46]OFD Sender: No OFD packet to send [10:09:51]OFD Sender: No OFD packet to send [10:09:56]OFD Sender: No OFD packet to send [10:10:01]OFD Sender: No OFD packet to send [10:10:06]OFD Sender: No OFD packet to send [10:10:11]OFD Sender: No OFD packet to send [10:10:16]OFD Sender: No OFD packet to send [10:10:21]OFD Sender: No OFD packet to send [10:10:26]OFD Sender: No OFD packet to send [10:10:31]OFD Sender: No OFD packet to send [10:10:36]OFD Sender: No OFD packet to send [10:10:41]OFD Sender: No OFD packet to send [10:10:46]OFD Sender: No OFD packet to send [10:10:51]OFD Sender: No OFD packet to send [10:10:56]OFD Sender: No OFD packet to send [10:11:01]OFD Sender: No OFD packet to send [10:11:06]OFD Sender: No OFD packet to send [10:11:11]OFD Sender: No OFD packet to send [10:11:16]OFD Sender: No OFD packet to send [10:11:21]OFD Sender: No OFD packet to send [10:11:26]OFD Sender: No OFD packet to send [10:11:31]OFD Sender: No OFD packet to send [10:11:32]recv_with_timeout no data received [10:11:36]OFD Sender: No OFD packet to send [10:11:41]OFD Sender: No OFD packet to send [10:11:46]OFD Sender: No OFD packet to send [10:11:51]OFD Sender: No OFD packet to send [10:11:56]OFD Sender: No OFD packet to send [10:12:01]OFD Sender: No OFD packet to send [10:12:06]OFD Sender: No OFD packet to send [10:12:11]OFD Sender: No OFD packet to send [10:12:16]OFD Sender: No OFD packet to send [10:12:21]recv_with_timeout no data received [10:12:21]OFD Sender: No OFD packet to send [10:12:26]OFD Sender: No OFD packet to send [10:12:31]OFD Sender: No OFD packet to send [10:12:33]accept exits with 10 [10:12:33]New connection [10:12:33]New thread 3067493732 created [10:12:33]Thread 3067637092 joined [10:12:33]Waiting for new connection... [10:12:33] Sock 10.Parse request [10:12:33]Sock 10.Check first char [10:12:33]Sock 10.First char is OK [10:12:33]request: POST /json_proto HTTP/1.0 [10:12:33]Method: POST [10:12:33]URL: /json_proto [10:12:33]Method is POST - this is cgi request [10:12:33]url: /json_proto [10:12:33]query_string will be loaded in cgi processing [10:12:33]execute_cgi json_proto POST (null) [10:12:33]execute_cgi path=json_proto method=POST [10:12:33]POST find Content-Length [10:12:33]Host: 172.17.43.195:8080 [10:12:33]Content-Length: 682 [10:12:33]Content-Type: application/json [10:12:33] [10:12:33]POST finish read [10:12:33]Found Content-Length = 682 [10:12:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 14.830, "sum" : 1100.39, "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" ] } } [10:12:33]execute_script... [10:12:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 14.830, "sum" : 1100.39, "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" ] } } [10:12:33]POST & json_proto [10:12:33]process_json_proto [10:12:33]json parsed OK: [10:12:33]protocol is kg_v1.0 [10:12:33]action value=close_receipt [10:12:33]process_action close_receipt [10:12:33]cmd_close_receipt [10:12:33]MH_GetDate [10:12:33]Write to MH i2c: F0 00 00 E1 03 D3 [10:12:33]Write i2c OK [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: F0 [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: F0 09 00 [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: F0 09 00 E1 03 00 91 A9 24 67 74 2C AD 66 54 [10:12:33]GetLastDocTimeStamp 1730455568 [10:12:33]current date 1730455953 [10:12:33]FM_GetShiftState [10:12:33]SAM_PROTO_GetShiftState [10:12:33]wFMCommunicate request_size=4 [10:12:33]MH_SAM_APDU [10:12:33]CAPDU: 80 13 01 00 [10:12:33]Write to MH i2c: E2 08 00 E2 03 80 13 01 00 00 00 00 00 62 [10:12:33]Write i2c OK [10:12:33]MH_I2C_Read... [10:12:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:33]Read from MH i2c: E2 [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: E2 0E 00 [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: E2 0E 00 E2 03 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 A9 [10:12:33]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [10:12:33]wFMCommunicate OK [10:12:33]SAM_PROTO_GetShiftState done [10:12:33]FM_GetShiftState done [10:12:33]opened in 1730419605 [10:12:33]opened+sec_in_day 1730506005 [10:12:33]quantity*price = 110038 [10:12:33]sum+1 = 110040 [10:12:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.86 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 66 01.11.2024 10:12 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73197 ФПД: 153062567062485 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T101233&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73197&fm=153062567062485&tin=02508201610067®Number=0000000000091644&sum=110000 [10:12:34]StoreToDocumentArchive [10:12:34]shift 558 fd 73197 [10:12:34]save to /storage/0558/doc_00073197 [10:12:34]save last doc name /storage/0558/doc_00073197 to /storage/kkm_last_doc_name [10:12:34]save OK [10:12:34]Clear old archive folders... [10:12:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:12:34]tlvbuf is 00531610 [10:12:34]SAM_PROTO_ClearQueue [10:12:34]wFMCommunicate request_size=4 [10:12:34]MH_SAM_APDU [10:12:34]CAPDU: 80 09 00 00 [10:12:34]Write to MH i2c: E2 08 00 EF 03 80 09 00 00 00 00 00 00 64 [10:12:34]Write i2c OK [10:12:34]MH_I2C_Read... [10:12:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:34]Read from MH i2c: E2 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 03 00 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 03 00 EF 03 00 90 00 66 [10:12:34]RAPDU: 90 00 [10:12:34]wFMCommunicate OK [10:12:34]SAM_PROTO_ClearQueue done [10:12:34]KKMCreateOFDPacket [10:12:34]OFDProtocolAddRootSTLVToBuf [10:12:34]FM_MakeSignedData [10:12:34]FM_MakeSignedData [10:12:34]SAM_PROTO_SignData [10:12:34]wFMCommunicate request_size=4 [10:12:34]MH_SAM_APDU [10:12:34]CAPDU: 80 0D 01 02 [10:12:34]Write to MH i2c: E2 08 00 F0 03 80 0D 01 02 00 00 00 00 6C [10:12:34]Write i2c OK [10:12:34]MH_I2C_Read... [10:12:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:34]Read from MH i2c: E2 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 03 00 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 03 00 F0 03 00 90 00 67 [10:12:34]RAPDU: 90 00 [10:12:34]wFMCommunicate OK [10:12:34]wFMCommunicate request_size=255 [10:12:34]MH_SAM_APDU [10:12:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 EE 39 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D7 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 A6 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 42 00 00 00 F4 03 04 00 91 A9 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 ED 1D 01 00 35 04 06 00 8B [10:12:34]Write to MH i2c: E2 02 01 F1 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 EE 39 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D7 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 A6 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 42 00 00 00 F4 03 04 00 91 A9 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 ED 1D 01 00 35 04 06 00 8B 00 00 69 [10:12:34]Write i2c OK [10:12:34]MH_I2C_Read... [10:12:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:34]Read from MH i2c: E2 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 03 00 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 03 00 F1 03 00 90 00 68 [10:12:34]RAPDU: 90 00 [10:12:34]wFMCommunicate OK [10:12:34]wFMCommunicate request_size=10 [10:12:34]MH_SAM_APDU [10:12:34]CAPDU: 80 0D 02 02 05 35 A7 F0 2B D5 [10:12:34]Write to MH i2c: E2 0D 00 F2 03 80 0D 02 02 05 00 35 A7 F0 2B D5 00 00 45 [10:12:34]Write i2c OK [10:12:34]MH_I2C_Read... [10:12:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:34]Read from MH i2c: E2 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 03 00 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 03 00 F2 03 00 90 00 69 [10:12:34]RAPDU: 90 00 [10:12:34]wFMCommunicate OK [10:12:34]wFMCommunicate request_size=4 [10:12:34]MH_SAM_APDU [10:12:34]CAPDU: 80 0D 03 02 [10:12:34]Write to MH i2c: E2 08 00 F3 03 80 0D 03 02 00 00 00 00 71 [10:12:34]Write i2c OK [10:12:34]MH_I2C_Read... [10:12:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:34]Read from MH i2c: E2 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 0B 00 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 0B 00 F3 03 00 3C 8F 6A 87 46 80 F4 D1 90 00 B9 [10:12:34]RAPDU: 3C 8F 6A 87 46 80 F4 D1 90 00 [10:12:34]wFMCommunicate OK [10:12:34]SAM_PROTO_SignData done [10:12:34]FM_MakeSignedData done [10:12:34]CreateOFDProtocolMessage [10:12:34]wFMCommunicate request_size=4 [10:12:34]MH_SAM_APDU [10:12:34]CAPDU: 80 11 00 00 [10:12:34]Write to MH i2c: E2 08 00 F4 03 80 11 00 00 00 00 00 00 71 [10:12:34]Write i2c OK [10:12:34]MH_I2C_Read... [10:12:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:34]Read from MH i2c: E2 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 17 00 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 17 00 F4 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C5 [10:12:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:12:34]wFMCommunicate OK [10:12:34]CreateOFDProtocolMessage done [10:12:34]OFDSenderStorePacket 73197 [10:12:34]StoreOFDPacket docnum=73197 [10:12:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 F7 D9 07 01 75 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 EE 39 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D7 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 A6 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 42 00 00 00 F4 03 04 00 91 A9 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 ED 1D 01 00 35 04 06 00 8B 35 A7 F0 2B D5 3C 8F 6A 87 46 80 F4 D1 [10:12:34]CheckFolder [10:12:34]dirname=/storage/ofd_packets [10:12:34]CheckFolder done [10:12:34]ProducePacketName [10:12:34]name=ofd_packets/00073197 [10:12:34]NVStorageSaveData ofd_packets/00073197 [10:12:34]File name is /storage/ofd_packets/00073197 [10:12:34]Write 301 bytes [10:12:34]NVStorageSaveData done [10:12:34]OFDSenderStorePacket done [10:12:34]KKMCreateOFDPacket done [10:12:34]NVStorageSaveData kkm_last_timestamp [10:12:34]File name is /storage/kkm_last_timestamp [10:12:34]Write 4 bytes [10:12:34]NVStorageSaveData done [10:12:34]ExternCall_PrintAddStr [10:12:34]wPrintStart [10:12:34]Write to MH i2c: 01 00 00 F5 03 F8 [10:12:34]Write i2c OK [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: 01 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: 01 07 00 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: 01 07 00 F5 03 00 00 00 00 00 FF 0F 0D [10:12:34]RasterBufferAndPrint [10:12:34]line Счет N : (1)952798 [10:12:34]line ИНН: 02508201610067 [10:12:34]line Контрольно-Кассовый Чек [10:12:34]line ПРОДАЖА [10:12:34]line ТРК (МРК, ГНК) : 31 [10:12:34]line Товар: 2710124500 [10:12:34]line Аи-95-К-3 [10:12:34]line 14.830 * 74.20 [10:12:34]line = 1100.39 [10:12:34]line НДС 12% НСП 1% [10:12:34]line > о реализуемом товаре [10:12:34]line ОКРУГЛЕНИЕ: -0.39 [10:12:34]line ИТОГО: 1100.00 [10:12:34]line Внесено: 1100.00 [10:12:34]line СДАЧА: 0.00 [10:12:34]line НСП 1% : 9.74 [10:12:34]line НДС 12% : 116.86 [10:12:34]line Наличными: 1100.00 [10:12:34]line Безнал.: 0.00 [10:12:34]line Место: АЗС № 113 "Партнер Нефть" [10:12:34]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [10:12:34]line СНО: Общий режим [10:12:34]line Чек 66 01.11.2024 10:12 [10:12:34]line Смена: 558 ФФД: 1.0 [10:12:34]line ЗНМ: 0300000087 [10:12:34]line РНМ: 0000000000091644 [10:12:34]line Версия ККМ: 001 [10:12:34]line ФМ: 0000000000874662 [10:12:34]line ФД: 73197 [10:12:34]line ФПД: 153062567062485 [10:12:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T101233&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73197&fm=153062567062485&tin=02508201610067®Number=0000000000091644&sum=110000 [10:12:35]OFD Sender: Processing packet 73197 [packets to send 282, broken 281] [10:12:35]ProducePacketName [10:12:35]name=ofd_packets/00073197 [10:12:35]OFD Sender: To server: pG, [10:12:35]CommunicateWithHost lk.salyk.kg:30040 [10:12:35]ConnectInit lk.salyk.kg [10:12:35]written 0, free lines is 4095 [10:12:35]Write to MH i2c: 01 00 00 20 04 24 [10:12:35]Write i2c OK [10:12:35]MH_I2C_Read... [10:12:35]Read from MH i2c: 01 [10:12:35]MH_I2C_Read... [10:12:35]Read from MH i2c: 01 07 00 [10:12:35]MH_I2C_Read... [10:12:35]Read from MH i2c: 01 07 00 20 04 00 00 00 00 00 D6 0C 0D [10:12:35]RasterBufferAndPrint [10:12:35]line [10:12:35]line [10:12:35]line [10:12:35]line [10:12:35]line [10:12:35]written 0, free lines is 3293 [10:12:35]MH_Cut [10:12:35]Write to MH i2c: D1 01 00 27 04 01 FD [10:12:35]Write i2c OK [10:12:35]MH_I2C_Read... [10:12:35]Read from MH i2c: D1 [10:12:35]MH_I2C_Read... [10:12:35]Read from MH i2c: D1 01 00 [10:12:35]MH_I2C_Read... [10:12:35]Read from MH i2c: D1 01 00 27 04 00 FC [10:12:35]Write to MH i2c: 01 00 00 28 04 2C [10:12:35]Write i2c OK [10:12:35]MH_I2C_Read... [10:12:35]Connected sock=11 [10:12:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 F7 D9 07 01 75 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 EE 39 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D7 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 A6 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 42 00 00 00 F4 03 04 00 91 A9 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 ED 1D 01 00 35 04 06 00 8B 35 A7 F0 2B D5 3C 8F 6A 87 46 80 F4 D1 [10:12:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 E7 90 47 00 5E D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 ED 1D 01 00 F4 03 04 00 45 54 24 67 B6 04 01 00 00 40 EC 91 71 C5 4F EE AD [10:12:36]CommunicateWithHost err = 0 [10:12:36]CheckOFDResponse [10:12:36]1017 (14) - 77093643461234 [10:12:36]1041 (16) - 0000000000874662 [10:12:36]1040 (4) - 73197 [10:12:36]1012 (4) - 01.11.2024 04:08 [10:12:36]1206 (1) - 0 [10:12:36]OFD Sender: Remove packet 73197 [10:12:36]ProducePacketName [10:12:36]name=ofd_packets/00073197 [10:12:36]NVStorageDeleteData [10:12:36]*** Cut start [10:12:36]*** Partial cut [10:12:36]*** CUTSNS_PIN = 1 [10:12:36]*** CUTSNS_PIN = 0 [10:12:36]*** Brake cut motor [10:12:36]OFD Sender: No OFD packet to send [10:12:37]Read from MH i2c: 01 [10:12:37]MH_I2C_Read... [10:12:37]*** Stop cut motor [10:12:37]*** Cut end [10:12:37]Read from MH i2c: 01 07 00 [10:12:37]MH_I2C_Read... [10:12:37]Read from MH i2c: 01 07 00 28 04 00 00 00 00 00 FF 0F 41 [10:12:37]process_action close_receipt done [10:12:37]requested_data is exist [10:12:37]produce_requested_data [10:12:37]requested_item fm.sn is exist - process it [10:12:37]wFMCommunicate request_size=4 [10:12:37]MH_SAM_APDU [10:12:37]CAPDU: 80 11 00 00 [10:12:37]Write to MH i2c: E2 08 00 29 04 80 11 00 00 00 00 00 00 A7 [10:12:37]Write i2c OK [10:12:37]MH_I2C_Read... [10:12:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:37]Read from MH i2c: E2 [10:12:37]MH_I2C_Read... [10:12:37]Read from MH i2c: E2 17 00 [10:12:37]MH_I2C_Read... [10:12:37]Read from MH i2c: E2 17 00 29 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FB [10:12:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:12:37]wFMCommunicate OK [10:12:37]requested_item fd.num is exist - process it [10:12:37]SAM_PROTO_GetFieldsCounters [10:12:37]wFMCommunicate request_size=4 [10:12:37]MH_SAM_APDU [10:12:37]CAPDU: 80 13 00 00 [10:12:37]Write to MH i2c: E2 08 00 2A 04 80 13 00 00 00 00 00 00 AA [10:12:37]Write i2c OK [10:12:37]MH_I2C_Read... [10:12:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:37]Read from MH i2c: E2 [10:12:37]MH_I2C_Read... [10:12:37]Read from MH i2c: E2 62 00 [10:12:37]MH_I2C_Read... [10:12:37]Read from MH i2c: E2 62 00 2A 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 ED 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [10:12:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 ED 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:12:37]wFMCommunicate OK [10:12:37]SAM_PROTO_GetFieldsCounters done [10:12:37]requested_item shift.num is exist - process it [10:12:37]requested_item shift.opened is exist - process it [10:12:37]req_shift_opened [10:12:37]FM_GetShiftState [10:12:37]SAM_PROTO_GetShiftState [10:12:37]wFMCommunicate request_size=4 [10:12:37]MH_SAM_APDU [10:12:37]CAPDU: 80 13 01 00 [10:12:37]Write to MH i2c: E2 08 00 2B 04 80 13 01 00 00 00 00 00 AC [10:12:37]Write i2c OK [10:12:37]MH_I2C_Read... [10:12:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:37]Read from MH i2c: E2 [10:12:37]MH_I2C_Read... [10:12:37]Read from MH i2c: E2 0E 00 [10:12:37]MH_I2C_Read... [10:12:37]Read from MH i2c: E2 0E 00 2B 04 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 F3 [10:12:37]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [10:12:37]wFMCommunicate OK [10:12:37]SAM_PROTO_GetShiftState done [10:12:37]FM_GetShiftState done [10:12:37]req_shift_opened done [10:12:37]requested_item shift.open_date is exist - process it [10:12:37]req_shift_open_date [10:12:37]req_shift_open_date done [10:12:37]produce_requested_data done [10:12:37]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73197,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [10:12:37]process_action_free close_receipt [10:12:37]json_value_free [10:12:37]json_value_free done [10:12:37]process_json_proto returns [10:12:37]Send response to host [10:12:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73197,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [10:12:37]free response buf [10:12:37]execute_script done [10:12:37]execute_script returns [10:12:37]free content buf [10:12:37]Sock 10.Close socket [10:12:37]Sock 10.Thread stoped [10:12:41]OFD Sender: No OFD packet to send [10:12:43]accept exits with 9 [10:12:43]New connection [10:12:43]New thread 3067637092 created [10:12:43]Thread 3067493732 joined [10:12:43]Waiting for new connection... [10:12:43] Sock 9.Parse request [10:12:43]Sock 9.Check first char [10:12:43]Sock 9.First char is OK [10:12:43]request: POST /json_proto HTTP/1.0 [10:12:43]Method: POST [10:12:43]URL: /json_proto [10:12:43]Method is POST - this is cgi request [10:12:43]url: /json_proto [10:12:43]query_string will be loaded in cgi processing [10:12:43]execute_cgi json_proto POST (null) [10:12:43]execute_cgi path=json_proto method=POST [10:12:43]POST find Content-Length [10:12:43]Host: 172.17.43.195:8080 [10:12:43]Content-Length: 682 [10:12:43]Content-Type: application/json [10:12:43] [10:12:43]POST finish read [10:12:43]Found Content-Length = 682 [10:12:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [10:12:43]execute_script... [10:12:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [10:12:43]POST & json_proto [10:12:43]process_json_proto [10:12:43]json parsed OK: [10:12:43]protocol is kg_v1.0 [10:12:43]action value=close_receipt [10:12:43]process_action close_receipt [10:12:43]cmd_close_receipt [10:12:43]MH_GetDate [10:12:43]Write to MH i2c: F0 00 00 2C 04 1F [10:12:43]Write i2c OK [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: F0 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: F0 09 00 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: F0 09 00 2C 04 00 9B A9 24 67 74 2C AD 66 AA [10:12:43]GetLastDocTimeStamp 1730455953 [10:12:43]current date 1730455963 [10:12:43]FM_GetShiftState [10:12:43]SAM_PROTO_GetShiftState [10:12:43]wFMCommunicate request_size=4 [10:12:43]MH_SAM_APDU [10:12:43]CAPDU: 80 13 01 00 [10:12:43]Write to MH i2c: E2 08 00 2D 04 80 13 01 00 00 00 00 00 AE [10:12:43]Write i2c OK [10:12:43]MH_I2C_Read... [10:12:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:43]Read from MH i2c: E2 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: E2 0E 00 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: E2 0E 00 2D 04 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 F5 [10:12:43]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [10:12:43]wFMCommunicate OK [10:12:43]SAM_PROTO_GetShiftState done [10:12:43]FM_GetShiftState done [10:12:43]opened in 1730419605 [10:12:43]opened+sec_in_day 1730506005 [10:12:43]quantity*price = 300064 [10:12:43]sum+1 = 300066 [10:12:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 67 01.11.2024 10:12 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73198 ФПД: 222413467144175 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T101243&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73198&fm=222413467144175&tin=02508201610067®Number=0000000000091644&sum=300000 [10:12:44]StoreToDocumentArchive [10:12:44]shift 558 fd 73198 [10:12:44]save to /storage/0558/doc_00073198 [10:12:44]save last doc name /storage/0558/doc_00073198 to /storage/kkm_last_doc_name [10:12:44]save OK [10:12:44]Clear old archive folders... [10:12:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:12:44]tlvbuf is 0053FF50 [10:12:44]SAM_PROTO_ClearQueue [10:12:44]wFMCommunicate request_size=4 [10:12:44]MH_SAM_APDU [10:12:44]CAPDU: 80 09 00 00 [10:12:44]Write to MH i2c: E2 08 00 3A 04 80 09 00 00 00 00 00 00 B0 [10:12:44]Write i2c OK [10:12:44]MH_I2C_Read... [10:12:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:44]Read from MH i2c: E2 [10:12:44]MH_I2C_Read... [10:12:44]Read from MH i2c: E2 03 00 [10:12:44]MH_I2C_Read... [10:12:44]Read from MH i2c: E2 03 00 3A 04 00 90 00 B2 [10:12:44]RAPDU: 90 00 [10:12:44]wFMCommunicate OK [10:12:44]SAM_PROTO_ClearQueue done [10:12:44]KKMCreateOFDPacket [10:12:44]OFDProtocolAddRootSTLVToBuf [10:12:44]FM_MakeSignedData [10:12:44]FM_MakeSignedData [10:12:44]SAM_PROTO_SignData [10:12:44]wFMCommunicate request_size=4 [10:12:44]MH_SAM_APDU [10:12:44]CAPDU: 80 0D 01 02 [10:12:44]Write to MH i2c: E2 08 00 3B 04 80 0D 01 02 00 00 00 00 B8 [10:12:44]Write i2c OK [10:12:44]MH_I2C_Read... [10:12:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:44]Read from MH i2c: E2 [10:12:44]MH_I2C_Read... [10:12:44]Read from MH i2c: E2 03 00 [10:12:44]MH_I2C_Read... [10:12:44]Read from MH i2c: E2 03 00 3B 04 00 90 00 B3 [10:12:44]RAPDU: 90 00 [10:12:44]wFMCommunicate OK [10:12:44]wFMCommunicate request_size=255 [10:12:44]MH_SAM_APDU [10:12:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 79 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 43 00 00 00 F4 03 04 00 9B A9 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EE 1D 01 00 35 04 06 00 CA [10:12:44]Write to MH i2c: E2 02 01 3C 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 79 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 43 00 00 00 F4 03 04 00 9B A9 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EE 1D 01 00 35 04 06 00 CA 00 00 8E [10:12:44]Write i2c OK [10:12:44]MH_I2C_Read... [10:12:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:45]Read from MH i2c: E2 [10:12:45]MH_I2C_Read... [10:12:45]Read from MH i2c: E2 03 00 [10:12:45]MH_I2C_Read... [10:12:45]Read from MH i2c: E2 03 00 3C 04 00 90 00 B4 [10:12:45]RAPDU: 90 00 [10:12:45]wFMCommunicate OK [10:12:45]wFMCommunicate request_size=10 [10:12:45]MH_SAM_APDU [10:12:45]CAPDU: 80 0D 02 02 05 48 AB B3 CF EF [10:12:45]Write to MH i2c: E2 0D 00 3D 04 80 0D 02 02 05 00 48 AB B3 CF EF 00 00 29 [10:12:45]Write i2c OK [10:12:45]MH_I2C_Read... [10:12:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:45]Read from MH i2c: E2 [10:12:45]MH_I2C_Read... [10:12:45]Read from MH i2c: E2 03 00 [10:12:45]MH_I2C_Read... [10:12:45]Read from MH i2c: E2 03 00 3D 04 00 90 00 B5 [10:12:45]RAPDU: 90 00 [10:12:45]wFMCommunicate OK [10:12:45]wFMCommunicate request_size=4 [10:12:45]MH_SAM_APDU [10:12:45]CAPDU: 80 0D 03 02 [10:12:45]Write to MH i2c: E2 08 00 3E 04 80 0D 03 02 00 00 00 00 BD [10:12:45]Write i2c OK [10:12:45]MH_I2C_Read... [10:12:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:45]Read from MH i2c: E2 [10:12:45]MH_I2C_Read... [10:12:45]Read from MH i2c: E2 0B 00 [10:12:45]MH_I2C_Read... [10:12:45]Read from MH i2c: E2 0B 00 3E 04 00 A5 05 31 E9 AA 37 02 5F 90 00 C4 [10:12:45]RAPDU: A5 05 31 E9 AA 37 02 5F 90 00 [10:12:45]wFMCommunicate OK [10:12:45]SAM_PROTO_SignData done [10:12:45]FM_MakeSignedData done [10:12:45]CreateOFDProtocolMessage [10:12:45]wFMCommunicate request_size=4 [10:12:45]MH_SAM_APDU [10:12:45]CAPDU: 80 11 00 00 [10:12:45]Write to MH i2c: E2 08 00 3F 04 80 11 00 00 00 00 00 00 BD [10:12:45]Write i2c OK [10:12:45]MH_I2C_Read... [10:12:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:45]Read from MH i2c: E2 [10:12:45]MH_I2C_Read... [10:12:45]Read from MH i2c: E2 17 00 [10:12:45]MH_I2C_Read... [10:12:45]Read from MH i2c: E2 17 00 3F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 11 [10:12:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:12:45]wFMCommunicate OK [10:12:45]CreateOFDProtocolMessage done [10:12:45]OFDSenderStorePacket 73198 [10:12:45]StoreOFDPacket docnum=73198 [10:12:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 93 FC 07 01 EB 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 79 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 43 00 00 00 F4 03 04 00 9B A9 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EE 1D 01 00 35 04 06 00 CA 48 AB B3 CF EF A5 05 31 E9 AA 37 02 5F [10:12:45]CheckFolder [10:12:45]dirname=/storage/ofd_packets [10:12:45]CheckFolder done [10:12:45]ProducePacketName [10:12:45]name=ofd_packets/00073198 [10:12:45]NVStorageSaveData ofd_packets/00073198 [10:12:45]File name is /storage/ofd_packets/00073198 [10:12:45]Write 301 bytes [10:12:45]NVStorageSaveData done [10:12:45]OFDSenderStorePacket done [10:12:45]KKMCreateOFDPacket done [10:12:45]NVStorageSaveData kkm_last_timestamp [10:12:45]File name is /storage/kkm_last_timestamp [10:12:45]Write 4 bytes [10:12:45]NVStorageSaveData done [10:12:45]ExternCall_PrintAddStr [10:12:45]wPrintStart [10:12:45]Write to MH i2c: 01 00 00 40 04 44 [10:12:45]Write i2c OK [10:12:45]MH_I2C_Read... [10:12:45]Read from MH i2c: 01 [10:12:45]MH_I2C_Read... [10:12:45]Read from MH i2c: 01 07 00 [10:12:45]MH_I2C_Read... [10:12:45]Read from MH i2c: 01 07 00 40 04 00 00 00 00 00 FF 0F 59 [10:12:45]RasterBufferAndPrint [10:12:45]line Счет N : (1)952797 [10:12:45]line ИНН: 02508201610067 [10:12:45]line Контрольно-Кассовый Чек [10:12:45]line ПРОДАЖА [10:12:45]line ТРК (МРК, ГНК) : 52 [10:12:45]line Товар: 2710124500 [10:12:45]line Аи-95-К-3 [10:12:45]line 40.440 * 74.20 [10:12:45]line = 3000.65 [10:12:45]line НДС 12% НСП 1% [10:12:45]line > о реализуемом товаре [10:12:45]line ОКРУГЛЕНИЕ: -0.65 [10:12:45]line ИТОГО: 3000.00 [10:12:45]line Внесено: 3000.00 [10:12:45]line СДАЧА: 0.00 [10:12:45]line НСП 1% : 26.55 [10:12:45]line НДС 12% : 318.65 [10:12:45]line Наличными: 3000.00 [10:12:45]line Безнал.: 0.00 [10:12:45]line Место: АЗС № 113 "Партнер Нефть" [10:12:45]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [10:12:45]line СНО: Общий режим [10:12:45]line Чек 67 01.11.2024 10:12 [10:12:45]line Смена: 558 ФФД: 1.0 [10:12:45]line ЗНМ: 0300000087 [10:12:45]line РНМ: 0000000000091644 [10:12:45]line Версия ККМ: 001 [10:12:45]line ФМ: 0000000000874662 [10:12:45]line ФД: 73198 [10:12:45]line ФПД: 222413467144175 [10:12:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T101243&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73198&fm=222413467144175&tin=02508201610067®Number=0000000000091644&sum=300000 [10:12:45]OFD Sender: Processing packet 73198 [packets to send 282, broken 281] [10:12:45]ProducePacketName [10:12:45]name=ofd_packets/00073198 [10:12:45]OFD Sender: To server: pG, [10:12:45]CommunicateWithHost lk.salyk.kg:30040 [10:12:45]ConnectInit lk.salyk.kg [10:12:45]written 0, free lines is 4095 [10:12:45]Write to MH i2c: 01 00 00 6B 04 6F [10:12:45]Write i2c OK [10:12:45]MH_I2C_Read... [10:12:45]Read from MH i2c: 01 [10:12:45]MH_I2C_Read... [10:12:45]Read from MH i2c: 01 07 00 [10:12:45]MH_I2C_Read... [10:12:45]Read from MH i2c: 01 07 00 6B 04 00 00 00 00 00 D7 0C 59 [10:12:45]RasterBufferAndPrint [10:12:45]line [10:12:45]line [10:12:45]line [10:12:45]line [10:12:45]line [10:12:45]written 0, free lines is 3298 [10:12:45]MH_Cut [10:12:45]Write to MH i2c: D1 01 00 72 04 01 48 [10:12:45]Write i2c OK [10:12:45]MH_I2C_Read... [10:12:45]Read from MH i2c: D1 [10:12:45]MH_I2C_Read... [10:12:45]Read from MH i2c: D1 01 00 [10:12:45]MH_I2C_Read... [10:12:45]Read from MH i2c: D1 01 00 72 04 00 47 [10:12:45]Write to MH i2c: 01 00 00 73 04 77 [10:12:45]Write i2c OK [10:12:45]MH_I2C_Read... [10:12:46]*** Cut start [10:12:46]*** Partial cut [10:12:46]*** CUTSNS_PIN = 1 [10:12:46]*** CUTSNS_PIN = 0 [10:12:46]*** Brake cut motor [10:12:47]Read from MH i2c: 01 [10:12:47]MH_I2C_Read... [10:12:47]*** Stop cut motor [10:12:47]*** Cut end [10:12:47]Read from MH i2c: 01 07 00 [10:12:47]MH_I2C_Read... [10:12:47]Read from MH i2c: 01 07 00 73 04 00 00 00 00 00 FF 0F 8C [10:12:47]process_action close_receipt done [10:12:47]requested_data is exist [10:12:47]produce_requested_data [10:12:47]requested_item fm.sn is exist - process it [10:12:47]wFMCommunicate request_size=4 [10:12:47]MH_SAM_APDU [10:12:47]CAPDU: 80 11 00 00 [10:12:47]Write to MH i2c: E2 08 00 74 04 80 11 00 00 00 00 00 00 F2 [10:12:47]Write i2c OK [10:12:47]MH_I2C_Read... [10:12:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:47]Read from MH i2c: E2 [10:12:47]MH_I2C_Read... [10:12:47]Read from MH i2c: E2 17 00 [10:12:47]MH_I2C_Read... [10:12:47]Read from MH i2c: E2 17 00 74 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 46 [10:12:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:12:47]wFMCommunicate OK [10:12:47]requested_item fd.num is exist - process it [10:12:47]SAM_PROTO_GetFieldsCounters [10:12:47]wFMCommunicate request_size=4 [10:12:47]MH_SAM_APDU [10:12:47]CAPDU: 80 13 00 00 [10:12:47]Write to MH i2c: E2 08 00 75 04 80 13 00 00 00 00 00 00 F5 [10:12:47]Write i2c OK [10:12:47]MH_I2C_Read... [10:12:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:47]Read from MH i2c: E2 [10:12:47]MH_I2C_Read... [10:12:47]Read from MH i2c: E2 62 00 [10:12:47]MH_I2C_Read... [10:12:47]Read from MH i2c: E2 62 00 75 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 EE 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [10:12:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 EE 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:12:47]wFMCommunicate OK [10:12:47]SAM_PROTO_GetFieldsCounters done [10:12:47]requested_item shift.num is exist - process it [10:12:47]requested_item shift.opened is exist - process it [10:12:47]req_shift_opened [10:12:47]FM_GetShiftState [10:12:47]SAM_PROTO_GetShiftState [10:12:47]wFMCommunicate request_size=4 [10:12:47]MH_SAM_APDU [10:12:47]CAPDU: 80 13 01 00 [10:12:47]Write to MH i2c: E2 08 00 76 04 80 13 01 00 00 00 00 00 F7 [10:12:47]Write i2c OK [10:12:47]MH_I2C_Read... [10:12:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:47]Read from MH i2c: E2 [10:12:47]MH_I2C_Read... [10:12:47]Read from MH i2c: E2 0E 00 [10:12:47]MH_I2C_Read... [10:12:47]Read from MH i2c: E2 0E 00 76 04 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 3E [10:12:47]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [10:12:47]wFMCommunicate OK [10:12:47]SAM_PROTO_GetShiftState done [10:12:47]FM_GetShiftState done [10:12:47]req_shift_opened done [10:12:47]requested_item shift.open_date is exist - process it [10:12:47]req_shift_open_date [10:12:47]req_shift_open_date done [10:12:47]produce_requested_data done [10:12:47]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73198,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [10:12:47]process_action_free close_receipt [10:12:47]json_value_free [10:12:47]json_value_free done [10:12:47]process_json_proto returns [10:12:47]Send response to host [10:12:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73198,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [10:12:47]free response buf [10:12:47]execute_script done [10:12:47]execute_script returns [10:12:47]free content buf [10:12:47]Sock 9.Close socket [10:12:47]Sock 9.Thread stoped [10:12:47]Connected sock=11 [10:12:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 93 FC 07 01 EB 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 79 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 43 00 00 00 F4 03 04 00 9B A9 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EE 1D 01 00 35 04 06 00 CA 48 AB B3 CF EF A5 05 31 E9 AA 37 02 5F [10:12:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 34 07 47 00 AC 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EE 1D 01 00 F4 03 04 00 50 54 24 67 B6 04 01 00 00 91 35 82 0F 80 E5 36 17 [10:12:48]CommunicateWithHost err = 0 [10:12:48]CheckOFDResponse [10:12:48]1017 (14) - 77093643461234 [10:12:48]1041 (16) - 0000000000874662 [10:12:48]1040 (4) - 73198 [10:12:48]1012 (4) - 01.11.2024 04:08 [10:12:48]1206 (1) - 0 [10:12:48]OFD Sender: Remove packet 73198 [10:12:48]ProducePacketName [10:12:48]name=ofd_packets/00073198 [10:12:48]NVStorageDeleteData [10:12:48]OFD Sender: No OFD packet to send [10:12:53]OFD Sender: No OFD packet to send [10:12:58]OFD Sender: No OFD packet to send [10:13:03]OFD Sender: No OFD packet to send [10:13:08]OFD Sender: No OFD packet to send [10:13:13]OFD Sender: No OFD packet to send [10:13:18]OFD Sender: No OFD packet to send [10:13:23]OFD Sender: No OFD packet to send [10:13:28]OFD Sender: No OFD packet to send [10:13:33]OFD Sender: No OFD packet to send [10:13:38]OFD Sender: No OFD packet to send [10:13:43]OFD Sender: No OFD packet to send [10:13:48]OFD Sender: No OFD packet to send [10:13:53]OFD Sender: No OFD packet to send [10:13:54]recv_with_timeout no data received [10:13:58]OFD Sender: No OFD packet to send [10:14:03]OFD Sender: No OFD packet to send [10:14:08]OFD Sender: No OFD packet to send [10:14:13]OFD Sender: No OFD packet to send [10:14:18]OFD Sender: No OFD packet to send [10:14:23]OFD Sender: No OFD packet to send [10:14:28]OFD Sender: No OFD packet to send [10:14:33]OFD Sender: No OFD packet to send [10:14:38]OFD Sender: No OFD packet to send [10:14:43]OFD Sender: No OFD packet to send [10:14:45]recv_with_timeout no data received [10:14:48]OFD Sender: No OFD packet to send [10:14:53]OFD Sender: No OFD packet to send [10:14:58]OFD Sender: No OFD packet to send [10:15:03]OFD Sender: No OFD packet to send [10:15:05]recv_with_timeout no data received [10:15:08]OFD Sender: No OFD packet to send [10:15:13]OFD Sender: No OFD packet to send [10:15:18]OFD Sender: No OFD packet to send [10:15:23]OFD Sender: No OFD packet to send [10:15:28]OFD Sender: No OFD packet to send [10:15:33]OFD Sender: No OFD packet to send [10:15:38]accept exits with 10 [10:15:38]New connection [10:15:38]New thread 3067493732 created [10:15:38]Thread 3067637092 joined [10:15:38]Waiting for new connection... [10:15:38] Sock 10.Parse request [10:15:38]Sock 10.Check first char [10:15:38]Sock 10.First char is OK [10:15:38]request: POST /json_proto HTTP/1.0 [10:15:38]Method: POST [10:15:38]URL: /json_proto [10:15:38]Method is POST - this is cgi request [10:15:38]url: /json_proto [10:15:38]query_string will be loaded in cgi processing [10:15:38]execute_cgi json_proto POST (null) [10:15:38]execute_cgi path=json_proto method=POST [10:15:38]POST find Content-Length [10:15:38]Host: 172.17.43.195:8080 [10:15:38]Content-Length: 677 [10:15:38]Content-Type: application/json [10:15:38] [10:15:38]POST finish read [10:15:38]Found Content-Length = 677 [10:15:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:38]execute_script... [10:15:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:38]POST & json_proto [10:15:38]process_json_proto [10:15:38]json parsed OK: [10:15:38]protocol is kg_v1.0 [10:15:38]action value=close_receipt [10:15:38]process_action close_receipt [10:15:38]cmd_close_receipt [10:15:38]MH_GetDate [10:15:38]Write to MH i2c: F0 00 00 77 04 6A [10:15:38]Write i2c OK [10:15:38]MH_I2C_Read... [10:15:38]Read from MH i2c: F0 [10:15:38]MH_I2C_Read... [10:15:38]Read from MH i2c: F0 09 00 [10:15:38]MH_I2C_Read... [10:15:38]Read from MH i2c: F0 09 00 77 04 00 4A AA 24 67 74 2C AD 66 A5 [10:15:38]GetLastDocTimeStamp 1730455963 [10:15:38]current date 1730456138 [10:15:38]FM_GetShiftState [10:15:38]SAM_PROTO_GetShiftState [10:15:38]wFMCommunicate request_size=4 [10:15:38]MH_SAM_APDU [10:15:38]CAPDU: 80 13 01 00 [10:15:38]Write to MH i2c: E2 08 00 78 04 80 13 01 00 00 00 00 00 F9 [10:15:38]Write i2c OK [10:15:38]MH_I2C_Read... [10:15:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:38]Read from MH i2c: E2 [10:15:38]MH_I2C_Read... [10:15:38]Read from MH i2c: E2 0E 00 [10:15:38]MH_I2C_Read... [10:15:38]Read from MH i2c: E2 0E 00 78 04 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 40 [10:15:38]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [10:15:38]wFMCommunicate OK [10:15:38]SAM_PROTO_GetShiftState done [10:15:38]FM_GetShiftState done [10:15:38]opened in 1730419605 [10:15:38]opened+sec_in_day 1730506005 [10:15:38]quantity*price = 50041 [10:15:38]sum+1 = 50042 [10:15:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 68 01.11.2024 10:15 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73199 ФПД: 89985271905128 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T101538&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73199&fm=89985271905128&tin=02508201610067®Number=0000000000091644&sum=50000 [10:15:39]StoreToDocumentArchive [10:15:39]shift 558 fd 73199 [10:15:39]save to /storage/0558/doc_00073199 [10:15:39]save last doc name /storage/0558/doc_00073199 to /storage/kkm_last_doc_name [10:15:39]save OK [10:15:39]Clear old archive folders... [10:15:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:15:39]tlvbuf is 00541880 [10:15:39]SAM_PROTO_ClearQueue [10:15:39]wFMCommunicate request_size=4 [10:15:39]MH_SAM_APDU [10:15:39]CAPDU: 80 09 00 00 [10:15:39]Write to MH i2c: E2 08 00 85 04 80 09 00 00 00 00 00 00 FB [10:15:39]Write i2c OK [10:15:39]MH_I2C_Read... [10:15:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:39]Read from MH i2c: E2 [10:15:39]MH_I2C_Read... [10:15:39]Read from MH i2c: E2 03 00 [10:15:39]MH_I2C_Read... [10:15:39]Read from MH i2c: E2 03 00 85 04 00 90 00 FD [10:15:39]RAPDU: 90 00 [10:15:39]wFMCommunicate OK [10:15:39]SAM_PROTO_ClearQueue done [10:15:39]KKMCreateOFDPacket [10:15:39]OFDProtocolAddRootSTLVToBuf [10:15:39]FM_MakeSignedData [10:15:39]FM_MakeSignedData [10:15:39]SAM_PROTO_SignData [10:15:39]wFMCommunicate request_size=4 [10:15:39]MH_SAM_APDU [10:15:39]CAPDU: 80 0D 01 02 [10:15:39]Write to MH i2c: E2 08 00 86 04 80 0D 01 02 00 00 00 00 03 [10:15:39]Write i2c OK [10:15:39]MH_I2C_Read... [10:15:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:39]Read from MH i2c: E2 [10:15:39]MH_I2C_Read... [10:15:39]Read from MH i2c: E2 03 00 [10:15:39]MH_I2C_Read... [10:15:39]Read from MH i2c: E2 03 00 86 04 00 90 00 FE [10:15:39]RAPDU: 90 00 [10:15:39]wFMCommunicate OK [10:15:39]wFMCommunicate request_size=255 [10:15:39]MH_SAM_APDU [10:15: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 4A AA 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EF 1D 01 00 35 04 06 00 51 [10:15:39]Write to MH i2c: E2 02 01 87 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 4A AA 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EF 1D 01 00 35 04 06 00 51 00 00 E3 [10:15:39]Write i2c OK [10:15:39]MH_I2C_Read... [10:15:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:39]Read from MH i2c: E2 [10:15:39]MH_I2C_Read... [10:15:39]Read from MH i2c: E2 03 00 [10:15:39]MH_I2C_Read... [10:15:39]Read from MH i2c: E2 03 00 87 04 00 90 00 FF [10:15:39]RAPDU: 90 00 [10:15:39]wFMCommunicate OK [10:15:39]wFMCommunicate request_size=10 [10:15:39]MH_SAM_APDU [10:15:39]CAPDU: 80 0D 02 02 05 D7 54 2A BB 68 [10:15:39]Write to MH i2c: E2 0D 00 88 04 80 0D 02 02 05 00 D7 54 2A BB 68 00 00 88 [10:15:39]Write i2c OK [10:15:39]MH_I2C_Read... [10:15:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:39]Read from MH i2c: E2 [10:15:39]MH_I2C_Read... [10:15:39]Read from MH i2c: E2 03 00 [10:15:39]MH_I2C_Read... [10:15:39]Read from MH i2c: E2 03 00 88 04 00 90 00 00 [10:15:39]RAPDU: 90 00 [10:15:39]wFMCommunicate OK [10:15:39]wFMCommunicate request_size=4 [10:15:39]MH_SAM_APDU [10:15:39]CAPDU: 80 0D 03 02 [10:15:39]Write to MH i2c: E2 08 00 89 04 80 0D 03 02 00 00 00 00 08 [10:15:39]Write i2c OK [10:15:39]MH_I2C_Read... [10:15:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:39]Read from MH i2c: E2 [10:15:39]MH_I2C_Read... [10:15:39]Read from MH i2c: E2 0B 00 [10:15:39]MH_I2C_Read... [10:15:39]Read from MH i2c: E2 0B 00 89 04 00 9D 83 B4 71 34 3C 9C 30 90 00 8A [10:15:39]RAPDU: 9D 83 B4 71 34 3C 9C 30 90 00 [10:15:39]wFMCommunicate OK [10:15:39]SAM_PROTO_SignData done [10:15:39]FM_MakeSignedData done [10:15:39]CreateOFDProtocolMessage [10:15:39]wFMCommunicate request_size=4 [10:15:39]MH_SAM_APDU [10:15:39]CAPDU: 80 11 00 00 [10:15:39]Write to MH i2c: E2 08 00 8A 04 80 11 00 00 00 00 00 00 08 [10:15:39]Write i2c OK [10:15:39]MH_I2C_Read... [10:15:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:39]Read from MH i2c: E2 [10:15:39]MH_I2C_Read... [10:15:39]Read from MH i2c: E2 17 00 [10:15:39]MH_I2C_Read... [10:15:39]Read from MH i2c: E2 17 00 8A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5C [10:15:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:15:39]wFMCommunicate OK [10:15:39]CreateOFDProtocolMessage done [10:15:39]OFDSenderStorePacket 73199 [10:15:39]StoreOFDPacket docnum=73199 [10:15:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 B6 E9 07 01 60 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 4A AA 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EF 1D 01 00 35 04 06 00 51 D7 54 2A BB 68 9D 83 B4 71 34 3C 9C 30 [10:15:39]CheckFolder [10:15:39]dirname=/storage/ofd_packets [10:15:39]CheckFolder done [10:15:39]ProducePacketName [10:15:39]name=ofd_packets/00073199 [10:15:39]NVStorageSaveData ofd_packets/00073199 [10:15:39]File name is /storage/ofd_packets/00073199 [10:15:39]Write 301 bytes [10:15:39]NVStorageSaveData done [10:15:39]OFDSenderStorePacket done [10:15:39]KKMCreateOFDPacket done [10:15:39]NVStorageSaveData kkm_last_timestamp [10:15:39]File name is /storage/kkm_last_timestamp [10:15:39]Write 4 bytes [10:15:39]NVStorageSaveData done [10:15:39]ExternCall_PrintAddStr [10:15:39]wPrintStart [10:15:39]Write to MH i2c: 01 00 00 8B 04 8F [10:15:39]Write i2c OK [10:15:39]MH_I2C_Read... [10:15:39]Read from MH i2c: 01 [10:15:39]MH_I2C_Read... [10:15:39]Read from MH i2c: 01 07 00 [10:15:39]MH_I2C_Read... [10:15:39]Read from MH i2c: 01 07 00 8B 04 00 00 00 00 00 FF 0F A4 [10:15:39]RasterBufferAndPrint [10:15:39]line Счет N : (1)952799 [10:15:39]line ИНН: 02508201610067 [10:15:39]line Контрольно-Кассовый Чек [10:15:39]line ПРОДАЖА [10:15:39]line ТРК (МРК, ГНК) : 63 [10:15:39]line Товар: 2710124130 [10:15:39]line Аи-92-К-5 [10:15:39]line 7.480 * 66.90 [10:15:39]line = 500.41 [10:15:39]line НДС 12% НСП 1% [10:15:39]line > о реализуемом товаре [10:15:39]line ОКРУГЛЕНИЕ: -0.41 [10:15:39]line ИТОГО: 500.00 [10:15:39]line Внесено: 500.00 [10:15:39]line СДАЧА: 0.00 [10:15:39]line НСП 1% : 4.43 [10:15:39]line НДС 12% : 53.14 [10:15:39]line Наличными: 500.00 [10:15:39]line Безнал.: 0.00 [10:15:39]line Место: АЗС № 113 "Партнер Нефть" [10:15:39]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [10:15:39]line СНО: Общий режим [10:15:39]line Чек 68 01.11.2024 10:15 [10:15:39]line Смена: 558 ФФД: 1.0 [10:15:39]line ЗНМ: 0300000087 [10:15:39]line РНМ: 0000000000091644 [10:15:39]line Версия ККМ: 001 [10:15:39]line ФМ: 0000000000874662 [10:15:39]line ФД: 73199 [10:15:39]line ФПД: 89985271905128 [10:15:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T101538&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73199&fm=89985271905128&tin=02508201610067®Number=0000000000091644&sum=50000 [10:15:39]written 0, free lines is 4095 [10:15:39]OFD Sender: Processing packet 73199 [packets to send 282, broken 281] [10:15:39]ProducePacketName [10:15:39]name=ofd_packets/00073199 [10:15:39]OFD Sender: To server: pG, [10:15:39]CommunicateWithHost lk.salyk.kg:30040 [10:15:39]ConnectInit lk.salyk.kg [10:15:40]Write to MH i2c: 01 00 00 B6 04 BA [10:15:40]Write i2c OK [10:15:40]MH_I2C_Read... [10:15:40]Read from MH i2c: 01 [10:15:40]MH_I2C_Read... [10:15:40]Read from MH i2c: 01 07 00 [10:15:40]MH_I2C_Read... [10:15:40]Read from MH i2c: 01 07 00 B6 04 00 00 00 00 00 CF 0C 9C [10:15:40]RasterBufferAndPrint [10:15:40]line [10:15:40]line [10:15:40]line [10:15:40]line [10:15:40]line [10:15:40]written 0, free lines is 3287 [10:15:40]MH_Cut [10:15:40]Write to MH i2c: D1 01 00 BD 04 01 93 [10:15:40]Write i2c OK [10:15:40]MH_I2C_Read... [10:15:40]Read from MH i2c: D1 [10:15:40]MH_I2C_Read... [10:15:40]Read from MH i2c: D1 01 00 [10:15:40]MH_I2C_Read... [10:15:40]Read from MH i2c: D1 01 00 BD 04 00 92 [10:15:40]Write to MH i2c: 01 00 00 BE 04 C2 [10:15:40]Write i2c OK [10:15:40]MH_I2C_Read... [10:15:40]*** Cut start [10:15:40]*** Partial cut [10:15:40]*** CUTSNS_PIN = 1 [10:15:41]*** CUTSNS_PIN = 0 [10:15:41]Connected sock=9 [10:15:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 B6 E9 07 01 60 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 4A AA 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 EF 1D 01 00 35 04 06 00 51 D7 54 2A BB 68 9D 83 B4 71 34 3C 9C 30 [10:15:41]*** Brake cut motor [10:15:41]Read from MH i2c: 01 [10:15:41]MH_I2C_Read... [10:15:41]*** Stop cut motor [10:15:41]*** Cut end [10:15:41]Read from MH i2c: 01 07 00 [10:15:41]MH_I2C_Read... [10:15:41]Read from MH i2c: 01 07 00 BE 04 00 00 00 00 00 FF 0F D7 [10:15:41]process_action close_receipt done [10:15:41]requested_data is exist [10:15:41]produce_requested_data [10:15:41]requested_item fm.sn is exist - process it [10:15:41]wFMCommunicate request_size=4 [10:15:41]MH_SAM_APDU [10:15:41]CAPDU: 80 11 00 00 [10:15:41]Write to MH i2c: E2 08 00 BF 04 80 11 00 00 00 00 00 00 3D [10:15:41]Write i2c OK [10:15:41]MH_I2C_Read... [10:15:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:41]Read from MH i2c: E2 [10:15:41]MH_I2C_Read... [10:15:41]Read from MH i2c: E2 17 00 [10:15:41]MH_I2C_Read... [10:15:41]Read from MH i2c: E2 17 00 BF 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 91 [10:15:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:15:41]wFMCommunicate OK [10:15:41]requested_item fd.num is exist - process it [10:15:41]SAM_PROTO_GetFieldsCounters [10:15:41]wFMCommunicate request_size=4 [10:15:41]MH_SAM_APDU [10:15:41]CAPDU: 80 13 00 00 [10:15:41]Write to MH i2c: E2 08 00 C0 04 80 13 00 00 00 00 00 00 40 [10:15:41]Write i2c OK [10:15:41]MH_I2C_Read... [10:15:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:41]Read from MH i2c: E2 [10:15:41]MH_I2C_Read... [10:15:41]Read from MH i2c: E2 62 00 [10:15:41]MH_I2C_Read... [10:15:41]Read from MH i2c: E2 62 00 C0 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 EF 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [10:15:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 EF 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:15:41]wFMCommunicate OK [10:15:41]SAM_PROTO_GetFieldsCounters done [10:15:41]requested_item shift.num is exist - process it [10:15:41]requested_item shift.opened is exist - process it [10:15:41]req_shift_opened [10:15:41]FM_GetShiftState [10:15:41]SAM_PROTO_GetShiftState [10:15:41]wFMCommunicate request_size=4 [10:15:41]MH_SAM_APDU [10:15:41]CAPDU: 80 13 01 00 [10:15:41]Write to MH i2c: E2 08 00 C1 04 80 13 01 00 00 00 00 00 42 [10:15:41]Write i2c OK [10:15:41]MH_I2C_Read... [10:15:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:41]Read from MH i2c: E2 [10:15:41]MH_I2C_Read... [10:15:41]Read from MH i2c: E2 0E 00 [10:15:41]MH_I2C_Read... [10:15:41]Read from MH i2c: E2 0E 00 C1 04 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 89 [10:15:41]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [10:15:41]wFMCommunicate OK [10:15:41]SAM_PROTO_GetShiftState done [10:15:41]FM_GetShiftState done [10:15:41]req_shift_opened done [10:15:41]requested_item shift.open_date is exist - process it [10:15:41]req_shift_open_date [10:15:41]req_shift_open_date done [10:15:41]produce_requested_data done [10:15:41]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73199,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [10:15:41]process_action_free close_receipt [10:15:41]json_value_free [10:15:41]json_value_free done [10:15:41]process_json_proto returns [10:15:41]Send response to host [10:15:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73199,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [10:15:41]free response buf [10:15:41]execute_script done [10:15:41]execute_script returns [10:15:41]free content buf [10:15:41]Sock 10.Close socket [10:15:41]Sock 10.Thread stoped [10:15:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 6C C3 47 00 AE 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 34 36 36 32 10 04 04 00 EF 1D 01 00 F4 03 04 00 FE 54 24 67 B6 04 01 00 00 57 B4 ED B5 6B 54 5F DA [10:15:43]CommunicateWithHost err = 0 [10:15:43]CheckOFDResponse [10:15:43]1017 (14) - 77093643461234 [10:15:43]1041 (16) - 0000000000874662 [10:15:43]1040 (4) - 73199 [10:15:43]1012 (4) - 01.11.2024 04:11 [10:15:43]1206 (1) - 0 [10:15:43]OFD Sender: Remove packet 73199 [10:15:43]ProducePacketName [10:15:43]name=ofd_packets/00073199 [10:15:43]NVStorageDeleteData [10:15:44]OFD Sender: No OFD packet to send [10:15:48]recv_with_timeout no data received [10:15:49]OFD Sender: No OFD packet to send [10:15:54]OFD Sender: No OFD packet to send [10:15:59]OFD Sender: No OFD packet to send [10:16:02]recv_with_timeout no data received [10:16:04]OFD Sender: No OFD packet to send [10:16:09]OFD Sender: No OFD packet to send [10:16:14]OFD Sender: No OFD packet to send [10:16:17]recv_with_timeout no data received [10:16:19]OFD Sender: No OFD packet to send [10:16:24]OFD Sender: No OFD packet to send [10:16:29]OFD Sender: No OFD packet to send [10:16:34]OFD Sender: No OFD packet to send [10:16:39]OFD Sender: No OFD packet to send [10:16:44]OFD Sender: No OFD packet to send [10:16:49]OFD Sender: No OFD packet to send [10:16:54]OFD Sender: No OFD packet to send [10:16:59]OFD Sender: No OFD packet to send [10:17:04]OFD Sender: No OFD packet to send [10:17:09]OFD Sender: No OFD packet to send [10:17:14]OFD Sender: No OFD packet to send [10:17:19]OFD Sender: No OFD packet to send [10:17:24]OFD Sender: No OFD packet to send [10:17:29]OFD Sender: No OFD packet to send [10:17:34]OFD Sender: No OFD packet to send [10:17:39]OFD Sender: No OFD packet to send [10:17:44]OFD Sender: No OFD packet to send [10:17:49]OFD Sender: No OFD packet to send [10:17:54]OFD Sender: No OFD packet to send [10:17:56]recv_with_timeout no data received [10:17:59]OFD Sender: No OFD packet to send [10:18:04]OFD Sender: No OFD packet to send [10:18:09]OFD Sender: No OFD packet to send [10:18:14]OFD Sender: No OFD packet to send [10:18:19]OFD Sender: No OFD packet to send [10:18:24]OFD Sender: No OFD packet to send [10:18:29]OFD Sender: No OFD packet to send [10:18:34]OFD Sender: No OFD packet to send [10:18:39]OFD Sender: No OFD packet to send [10:18:44]OFD Sender: No OFD packet to send [10:18:49]OFD Sender: No OFD packet to send [10:18:54]OFD Sender: No OFD packet to send [10:18:59]OFD Sender: No OFD packet to send [10:19:04]OFD Sender: No OFD packet to send [10:19:05]accept exits with 8 [10:19:05]New connection [10:19:05]New thread 3067637092 created [10:19:05]Thread 3067493732 joined [10:19:05]Waiting for new connection... [10:19:05] Sock 8.Parse request [10:19:05]Sock 8.Check first char [10:19:05]Sock 8.First char is OK [10:19:05]request: POST /json_proto HTTP/1.0 [10:19:05]Method: POST [10:19:05]URL: /json_proto [10:19:05]Method is POST - this is cgi request [10:19:05]url: /json_proto [10:19:05]query_string will be loaded in cgi processing [10:19:05]execute_cgi json_proto POST (null) [10:19:05]execute_cgi path=json_proto method=POST [10:19:05]POST find Content-Length [10:19:05]Host: 172.17.43.195:8080 [10:19:05]Content-Length: 663 [10:19:05]Content-Type: application/json [10:19:05] [10:19:05]POST finish read [10:19:05]Found Content-Length = 663 [10:19:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 21.930, "sum" : 1500.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:05]execute_script... [10:19: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)952801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 21.930, "sum" : 1500.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:05]POST & json_proto [10:19:05]process_json_proto [10:19:05]json parsed OK: [10:19:05]protocol is kg_v1.0 [10:19:05]action value=close_receipt [10:19:05]process_action close_receipt [10:19:05]cmd_close_receipt [10:19:05]MH_GetDate [10:19:05]Write to MH i2c: F0 00 00 C2 04 B5 [10:19:05]Write i2c OK [10:19:05]MH_I2C_Read... [10:19:05]Read from MH i2c: F0 [10:19:05]MH_I2C_Read... [10:19:05]Read from MH i2c: F0 09 00 [10:19:05]MH_I2C_Read... [10:19:05]Read from MH i2c: F0 09 00 C2 04 00 19 AB 24 67 74 2C AD 66 C0 [10:19:05]GetLastDocTimeStamp 1730456138 [10:19:05]current date 1730456345 [10:19:05]FM_GetShiftState [10:19:05]SAM_PROTO_GetShiftState [10:19:05]wFMCommunicate request_size=4 [10:19:05]MH_SAM_APDU [10:19:05]CAPDU: 80 13 01 00 [10:19:05]Write to MH i2c: E2 08 00 C3 04 80 13 01 00 00 00 00 00 44 [10:19:05]Write i2c OK [10:19:05]MH_I2C_Read... [10:19:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:05]Read from MH i2c: E2 [10:19:05]MH_I2C_Read... [10:19:05]Read from MH i2c: E2 0E 00 [10:19:05]MH_I2C_Read... [10:19:05]Read from MH i2c: E2 0E 00 C3 04 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 8B [10:19:05]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [10:19:05]wFMCommunicate OK [10:19:05]SAM_PROTO_GetShiftState done [10:19:05]FM_GetShiftState done [10:19:05]opened in 1730419605 [10:19:05]opened+sec_in_day 1730506005 [10:19:05]quantity*price = 150001 [10:19:05]sum+1 = 150002 [10:19:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.29 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 69 01.11.2024 10:19 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73200 ФПД: 85245213979947 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T101905&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73200&fm=85245213979947&tin=02508201610067®Number=0000000000091644&sum=150000 [10:19:06]StoreToDocumentArchive [10:19:06]shift 558 fd 73200 [10:19:06]save to /storage/0558/doc_00073200 [10:19:06]save last doc name /storage/0558/doc_00073200 to /storage/kkm_last_doc_name [10:19:06]save OK [10:19:06]Clear old archive folders... [10:19:06]ProcessDocumentItem done err = 0, tmpTLVsize=244 [10:19:06]tlvbuf is 005BF740 [10:19:06]SAM_PROTO_ClearQueue [10:19:06]wFMCommunicate request_size=4 [10:19:06]MH_SAM_APDU [10:19:06]CAPDU: 80 09 00 00 [10:19:06]Write to MH i2c: E2 08 00 D0 04 80 09 00 00 00 00 00 00 46 [10:19:06]Write i2c OK [10:19:06]MH_I2C_Read... [10:19:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:06]Read from MH i2c: E2 [10:19:06]MH_I2C_Read... [10:19:06]Read from MH i2c: E2 03 00 [10:19:06]MH_I2C_Read... [10:19:06]Read from MH i2c: E2 03 00 D0 04 00 90 00 48 [10:19:06]RAPDU: 90 00 [10:19:06]wFMCommunicate OK [10:19:06]SAM_PROTO_ClearQueue done [10:19:06]KKMCreateOFDPacket [10:19:06]OFDProtocolAddRootSTLVToBuf [10:19:06]FM_MakeSignedData [10:19:06]FM_MakeSignedData [10:19:06]SAM_PROTO_SignData [10:19:06]wFMCommunicate request_size=4 [10:19:06]MH_SAM_APDU [10:19:06]CAPDU: 80 0D 01 02 [10:19:06]Write to MH i2c: E2 08 00 D1 04 80 0D 01 02 00 00 00 00 4E [10:19:06]Write i2c OK [10:19:06]MH_I2C_Read... [10:19:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:06]Read from MH i2c: E2 [10:19:06]MH_I2C_Read... [10:19:06]Read from MH i2c: E2 03 00 [10:19:06]MH_I2C_Read... [10:19:06]Read from MH i2c: E2 03 00 D1 04 00 90 00 49 [10:19:06]RAPDU: 90 00 [10:19:06]wFMCommunicate OK [10:19:06]wFMCommunicate request_size=253 [10:19:06]MH_SAM_APDU [10:19:06]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 19 AB 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F0 1D 01 00 35 04 06 00 4D 87 B2 B2 B5 2B [10:19:06]Write to MH i2c: E2 00 01 D2 04 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 19 AB 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F0 1D 01 00 35 04 06 00 4D 87 B2 B2 B5 2B 00 00 D9 [10:19:06]Write i2c OK [10:19:06]MH_I2C_Read... [10:19:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:07]Read from MH i2c: E2 [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: E2 03 00 [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: E2 03 00 D2 04 00 90 00 4A [10:19:07]RAPDU: 90 00 [10:19:07]wFMCommunicate OK [10:19:07]wFMCommunicate request_size=4 [10:19:07]MH_SAM_APDU [10:19:07]CAPDU: 80 0D 03 02 [10:19:07]Write to MH i2c: E2 08 00 D3 04 80 0D 03 02 00 00 00 00 52 [10:19:07]Write i2c OK [10:19:07]MH_I2C_Read... [10:19:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:07]Read from MH i2c: E2 [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: E2 0B 00 [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: E2 0B 00 D3 04 00 08 71 C0 D2 2C 14 7F 6C 90 00 89 [10:19:07]RAPDU: 08 71 C0 D2 2C 14 7F 6C 90 00 [10:19:07]wFMCommunicate OK [10:19:07]SAM_PROTO_SignData done [10:19:07]FM_MakeSignedData done [10:19:07]CreateOFDProtocolMessage [10:19:07]wFMCommunicate request_size=4 [10:19:07]MH_SAM_APDU [10:19:07]CAPDU: 80 11 00 00 [10:19:07]Write to MH i2c: E2 08 00 D4 04 80 11 00 00 00 00 00 00 52 [10:19:07]Write i2c OK [10:19:07]MH_I2C_Read... [10:19:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:07]Read from MH i2c: E2 [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: E2 17 00 [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: E2 17 00 D4 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A6 [10:19:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:19:07]wFMCommunicate OK [10:19:07]CreateOFDProtocolMessage done [10:19:07]OFDSenderStorePacket 73200 [10:19:07]StoreOFDPacket docnum=73200 [10:19:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 44 B5 00 01 CF 44 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 19 AB 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F0 1D 01 00 35 04 06 00 4D 87 B2 B2 B5 2B 08 71 C0 D2 2C 14 7F 6C [10:19:07]CheckFolder [10:19:07]dirname=/storage/ofd_packets [10:19:07]CheckFolder done [10:19:07]ProducePacketName [10:19:07]name=ofd_packets/00073200 [10:19:07]NVStorageSaveData ofd_packets/00073200 [10:19:07]File name is /storage/ofd_packets/00073200 [10:19:07]Write 294 bytes [10:19:07]NVStorageSaveData done [10:19:07]OFDSenderStorePacket done [10:19:07]KKMCreateOFDPacket done [10:19:07]NVStorageSaveData kkm_last_timestamp [10:19:07]File name is /storage/kkm_last_timestamp [10:19:07]Write 4 bytes [10:19:07]NVStorageSaveData done [10:19:07]ExternCall_PrintAddStr [10:19:07]wPrintStart [10:19:07]Write to MH i2c: 01 00 00 D5 04 D9 [10:19:07]Write i2c OK [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: 01 [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: 01 07 00 [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: 01 07 00 D5 04 00 00 00 00 00 FF 0F EE [10:19:07]RasterBufferAndPrint [10:19:07]line Счет N : (1)952801 [10:19:07]line ИНН: 02508201610067 [10:19:07]line Контрольно-Кассовый Чек [10:19:07]line ПРОДАЖА [10:19:07]line ТРК (МРК, ГНК) : 51 [10:19:07]line Товар: 50.50.0 [10:19:07]line Super 92 [10:19:07]line 21.930 * 68.40 [10:19:07]line = 1500.01 [10:19:07]line НДС 12% НСП 1% [10:19:07]line > о реализуемом товаре [10:19:07]line ОКРУГЛЕНИЕ: -0.01 [10:19:07]line ИТОГО: 1500.00 [10:19:07]line Внесено: 1500.00 [10:19:07]line СДАЧА: 0.00 [10:19:07]line НСП 1% : 13.27 [10:19:07]line НДС 12% : 159.29 [10:19:07]line Наличными: 1500.00 [10:19:07]line Безнал.: 0.00 [10:19:07]line Место: АЗС № 113 "Партнер Нефть" [10:19:07]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [10:19:07]line СНО: Общий режим [10:19:07]line Чек 69 01.11.2024 10:19 [10:19:07]line Смена: 558 ФФД: 1.0 [10:19:07]line ЗНМ: 0300000087 [10:19:07]line РНМ: 0000000000091644 [10:19:07]line Версия ККМ: 001 [10:19:07]line ФМ: 0000000000874662 [10:19:07]line ФД: 73200 [10:19:07]line ФПД: 85245213979947 [10:19:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T101905&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73200&fm=85245213979947&tin=02508201610067®Number=0000000000091644&sum=150000 [10:19:07]OFD Sender: Processing packet 73200 [packets to send 282, broken 281] [10:19:07]ProducePacketName [10:19:07]name=ofd_packets/00073200 [10:19:07]OFD Sender: To server: pG, [10:19:07]CommunicateWithHost lk.salyk.kg:30040 [10:19:07]ConnectInit lk.salyk.kg [10:19:07]written 0, free lines is 4095 [10:19:07]Write to MH i2c: 01 00 00 00 05 05 [10:19:07]Write i2c OK [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: 01 [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: 01 07 00 [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: 01 07 00 00 05 00 00 00 00 00 DC 0C F4 [10:19:07]RasterBufferAndPrint [10:19:07]line [10:19:07]line [10:19:07]line [10:19:07]line [10:19:07]line [10:19:07]written 0, free lines is 3298 [10:19:07]MH_Cut [10:19:07]Write to MH i2c: D1 01 00 07 05 01 DE [10:19:07]Write i2c OK [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: D1 [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: D1 01 00 [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: D1 01 00 07 05 00 DD [10:19:07]Write to MH i2c: 01 00 00 08 05 0D [10:19:07]Write i2c OK [10:19:07]MH_I2C_Read... [10:19:08]Connected sock=10 [10:19:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 44 B5 00 01 CF 44 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 19 AB 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F0 1D 01 00 35 04 06 00 4D 87 B2 B2 B5 2B 08 71 C0 D2 2C 14 7F 6C [10:19:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 14 27 47 00 6E B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F0 1D 01 00 F4 03 04 00 CD 55 24 67 B6 04 01 00 00 4D 3F 0F C1 76 6B 0E 22 [10:19:08]CommunicateWithHost err = 0 [10:19:08]CheckOFDResponse [10:19:08]1017 (14) - 77093643461234 [10:19:08]1041 (16) - 0000000000874662 [10:19:08]1040 (4) - 73200 [10:19:08]1012 (4) - 01.11.2024 04:15 [10:19:08]1206 (1) - 0 [10:19:08]OFD Sender: Remove packet 73200 [10:19:08]ProducePacketName [10:19:08]name=ofd_packets/00073200 [10:19:08]NVStorageDeleteData [10:19:08]*** Cut start [10:19:08]*** Partial cut [10:19:08]*** CUTSNS_PIN = 1 [10:19:08]*** CUTSNS_PIN = 0 [10:19:09]*** Brake cut motor [10:19:09]OFD Sender: No OFD packet to send [10:19:09]Read from MH i2c: 01 [10:19:09]MH_I2C_Read... [10:19:09]*** Stop cut motor [10:19:09]*** Cut end [10:19:09]Read from MH i2c: 01 07 00 [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: 01 07 00 08 05 00 00 00 00 00 FF 0F 22 [10:19:09]process_action close_receipt done [10:19:09]requested_data is exist [10:19:09]produce_requested_data [10:19:09]requested_item fm.sn is exist - process it [10:19:09]wFMCommunicate request_size=4 [10:19:09]MH_SAM_APDU [10:19:09]CAPDU: 80 11 00 00 [10:19:09]Write to MH i2c: E2 08 00 09 05 80 11 00 00 00 00 00 00 88 [10:19:09]Write i2c OK [10:19:09]MH_I2C_Read... [10:19:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:09]Read from MH i2c: E2 [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: E2 17 00 [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: E2 17 00 09 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DC [10:19:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:19:09]wFMCommunicate OK [10:19:09]requested_item fd.num is exist - process it [10:19:09]SAM_PROTO_GetFieldsCounters [10:19:09]wFMCommunicate request_size=4 [10:19:09]MH_SAM_APDU [10:19:09]CAPDU: 80 13 00 00 [10:19:09]Write to MH i2c: E2 08 00 0A 05 80 13 00 00 00 00 00 00 8B [10:19:09]Write i2c OK [10:19:09]MH_I2C_Read... [10:19:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:09]Read from MH i2c: E2 [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: E2 62 00 [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: E2 62 00 0A 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F0 1D 01 00 0E 04 04 00 2E 02 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 B9 [10:19:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F0 1D 01 00 0E 04 04 00 2E 02 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 [10:19:09]wFMCommunicate OK [10:19:09]SAM_PROTO_GetFieldsCounters done [10:19:09]requested_item shift.num is exist - process it [10:19:09]requested_item shift.opened is exist - process it [10:19:09]req_shift_opened [10:19:09]FM_GetShiftState [10:19:09]SAM_PROTO_GetShiftState [10:19:09]wFMCommunicate request_size=4 [10:19:09]MH_SAM_APDU [10:19:09]CAPDU: 80 13 01 00 [10:19:09]Write to MH i2c: E2 08 00 0B 05 80 13 01 00 00 00 00 00 8D [10:19:09]Write i2c OK [10:19:09]MH_I2C_Read... [10:19:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:09]Read from MH i2c: E2 [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: E2 0E 00 [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: E2 0E 00 0B 05 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 D4 [10:19:09]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [10:19:09]wFMCommunicate OK [10:19:09]SAM_PROTO_GetShiftState done [10:19:09]FM_GetShiftState done [10:19:09]req_shift_opened done [10:19:09]requested_item shift.open_date is exist - process it [10:19:09]req_shift_open_date [10:19:09]req_shift_open_date done [10:19:09]produce_requested_data done [10:19:09]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73200,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [10:19:09]process_action_free close_receipt [10:19:09]json_value_free [10:19:09]json_value_free done [10:19:09]process_json_proto returns [10:19:09]Send response to host [10:19:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73200,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [10:19:09]free response buf [10:19:09]execute_script done [10:19:09]execute_script returns [10:19:09]free content buf [10:19:09]Sock 8.Close socket [10:19:09]Sock 8.Thread stoped [10:19:14]OFD Sender: No OFD packet to send [10:19:19]OFD Sender: No OFD packet to send [10:19:24]OFD Sender: No OFD packet to send [10:19:29]OFD Sender: No OFD packet to send [10:19:34]OFD Sender: No OFD packet to send [10:19:39]OFD Sender: No OFD packet to send [10:19:44]OFD Sender: No OFD packet to send [10:19:45]recv_with_timeout no data received [10:19:49]OFD Sender: No OFD packet to send [10:19:54]OFD Sender: No OFD packet to send [10:19:59]OFD Sender: No OFD packet to send [10:20:04]OFD Sender: No OFD packet to send [10:20:09]OFD Sender: No OFD packet to send [10:20:14]OFD Sender: No OFD packet to send [10:20:16]recv_with_timeout no data received [10:20:19]OFD Sender: No OFD packet to send [10:20:24]OFD Sender: No OFD packet to send [10:20:29]OFD Sender: No OFD packet to send [10:20:34]OFD Sender: No OFD packet to send [10:20:35]recv_with_timeout no data received [10:20:39]OFD Sender: No OFD packet to send [10:20:44]OFD Sender: No OFD packet to send [10:20:45]recv_with_timeout no data received [10:20:49]OFD Sender: No OFD packet to send [10:20:54]OFD Sender: No OFD packet to send [10:20:56]recv_with_timeout no data received [10:20:59]OFD Sender: No OFD packet to send [10:21:04]OFD Sender: No OFD packet to send [10:21:09]OFD Sender: No OFD packet to send [10:21:14]OFD Sender: No OFD packet to send [10:21:19]OFD Sender: No OFD packet to send [10:21:24]OFD Sender: No OFD packet to send [10:21:29]OFD Sender: No OFD packet to send [10:21:34]OFD Sender: No OFD packet to send [10:21:36]recv_with_timeout no data received [10:21:39]OFD Sender: No OFD packet to send [10:21:44]OFD Sender: No OFD packet to send [10:21:49]OFD Sender: No OFD packet to send [10:21:54]OFD Sender: No OFD packet to send [10:21:59]OFD Sender: No OFD packet to send [10:22:04]OFD Sender: No OFD packet to send [10:22:09]OFD Sender: No OFD packet to send [10:22:14]OFD Sender: No OFD packet to send [10:22:19]OFD Sender: No OFD packet to send [10:22:24]OFD Sender: No OFD packet to send [10:22:29]OFD Sender: No OFD packet to send [10:22:34]OFD Sender: No OFD packet to send [10:22:39]OFD Sender: No OFD packet to send [10:22:44]OFD Sender: No OFD packet to send [10:22:49]OFD Sender: No OFD packet to send [10:22:54]OFD Sender: No OFD packet to send [10:22:59]OFD Sender: No OFD packet to send [10:23:04]OFD Sender: No OFD packet to send [10:23:09]OFD Sender: No OFD packet to send [10:23:14]OFD Sender: No OFD packet to send [10:23:19]OFD Sender: No OFD packet to send [10:23:24]OFD Sender: No OFD packet to send [10:23:27]accept exits with 9 [10:23:27]New connection [10:23:27]New thread 3067493732 created [10:23:27]Thread 3067637092 joined [10:23:27]Waiting for new connection... [10:23:27] Sock 9.Parse request [10:23:27]Sock 9.Check first char [10:23:27]Sock 9.First char is OK [10:23:27]request: POST /json_proto HTTP/1.0 [10:23:27]Method: POST [10:23:27]URL: /json_proto [10:23:27]Method is POST - this is cgi request [10:23:27]url: /json_proto [10:23:27]query_string will be loaded in cgi processing [10:23:27]execute_cgi json_proto POST (null) [10:23:27]execute_cgi path=json_proto method=POST [10:23:27]POST find Content-Length [10:23:27]Host: 172.17.43.195:8080 [10:23:27]Content-Length: 685 [10:23:27]Content-Type: application/json [10:23:27] [10:23:27]POST finish read [10:23:27]Found Content-Length = 685 [10:23:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 30.090, "sum" : 1170.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1170.00, "payments": [ { "type": 0, "sum" : 1170.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:27]execute_script... [10:23:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 30.090, "sum" : 1170.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1170.00, "payments": [ { "type": 0, "sum" : 1170.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:27]POST & json_proto [10:23:27]process_json_proto [10:23:27]json parsed OK: [10:23:27]protocol is kg_v1.0 [10:23:27]action value=close_receipt [10:23:27]process_action close_receipt [10:23:27]cmd_close_receipt [10:23:27]MH_GetDate [10:23:27]Write to MH i2c: F0 00 00 0C 05 00 [10:23:27]Write i2c OK [10:23:27]MH_I2C_Read... [10:23:27]Read from MH i2c: F0 [10:23:27]MH_I2C_Read... [10:23:27]Read from MH i2c: F0 09 00 [10:23:27]MH_I2C_Read... [10:23:27]Read from MH i2c: F0 09 00 0C 05 00 1F AC 24 67 74 2C AD 66 12 [10:23:27]GetLastDocTimeStamp 1730456345 [10:23:27]current date 1730456607 [10:23:27]FM_GetShiftState [10:23:27]SAM_PROTO_GetShiftState [10:23:27]wFMCommunicate request_size=4 [10:23:27]MH_SAM_APDU [10:23:27]CAPDU: 80 13 01 00 [10:23:27]Write to MH i2c: E2 08 00 0D 05 80 13 01 00 00 00 00 00 8F [10:23:27]Write i2c OK [10:23:27]MH_I2C_Read... [10:23:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:27]Read from MH i2c: E2 [10:23:27]MH_I2C_Read... [10:23:27]Read from MH i2c: E2 0E 00 [10:23:27]MH_I2C_Read... [10:23:27]Read from MH i2c: E2 0E 00 0D 05 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 D6 [10:23:27]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [10:23:27]wFMCommunicate OK [10:23:27]SAM_PROTO_GetShiftState done [10:23:27]FM_GetShiftState done [10:23:27]opened in 1730419605 [10:23:27]opened+sec_in_day 1730506005 [10:23:27]quantity*price = 117050 [10:23:27]sum+1 = 117051 [10:23:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 1170.00 Внесено: 3000.00 СДАЧА: 1830.00 НСП 1% : 10.36 НДС 12% : 124.30 Наличными: 1170.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 70 01.11.2024 10:23 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73201 ФПД: 203258512625601 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T102327&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73201&fm=203258512625601&tin=02508201610067®Number=0000000000091644&sum=117000 [10:23:28]StoreToDocumentArchive [10:23:28]shift 558 fd 73201 [10:23:28]save to /storage/0558/doc_00073201 [10:23:28]save last doc name /storage/0558/doc_00073201 to /storage/kkm_last_doc_name [10:23:28]save OK [10:23:28]Clear old archive folders... [10:23:28]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:23:28]tlvbuf is 00543D40 [10:23:28]SAM_PROTO_ClearQueue [10:23:28]wFMCommunicate request_size=4 [10:23:28]MH_SAM_APDU [10:23:28]CAPDU: 80 09 00 00 [10:23:28]Write to MH i2c: E2 08 00 1A 05 80 09 00 00 00 00 00 00 91 [10:23:28]Write i2c OK [10:23:28]MH_I2C_Read... [10:23:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:28]Read from MH i2c: E2 [10:23:28]MH_I2C_Read... [10:23:28]Read from MH i2c: E2 03 00 [10:23:28]MH_I2C_Read... [10:23:28]Read from MH i2c: E2 03 00 1A 05 00 90 00 93 [10:23:28]RAPDU: 90 00 [10:23:28]wFMCommunicate OK [10:23:28]SAM_PROTO_ClearQueue done [10:23:28]KKMCreateOFDPacket [10:23:28]OFDProtocolAddRootSTLVToBuf [10:23:28]FM_MakeSignedData [10:23:28]FM_MakeSignedData [10:23:28]SAM_PROTO_SignData [10:23:28]wFMCommunicate request_size=4 [10:23:28]MH_SAM_APDU [10:23:28]CAPDU: 80 0D 01 02 [10:23:28]Write to MH i2c: E2 08 00 1B 05 80 0D 01 02 00 00 00 00 99 [10:23:28]Write i2c OK [10:23:28]MH_I2C_Read... [10:23:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:28]Read from MH i2c: E2 [10:23:28]MH_I2C_Read... [10:23:28]Read from MH i2c: E2 03 00 [10:23:28]MH_I2C_Read... [10:23:28]Read from MH i2c: E2 03 00 1B 05 00 90 00 94 [10:23:28]RAPDU: 90 00 [10:23:28]wFMCommunicate OK [10:23:28]wFMCommunicate request_size=255 [10:23:28]MH_SAM_APDU [10:23:28]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 8A 75 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 3A C9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 C9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 30 00 00 00 00 07 04 06 00 08 C9 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 1F AC 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F1 1D 01 00 35 04 06 00 B8 DC [10:23:28]Write to MH i2c: E2 02 01 1C 05 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 8A 75 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 3A C9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 C9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 30 00 00 00 00 07 04 06 00 08 C9 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 1F AC 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F1 1D 01 00 35 04 06 00 B8 DC 00 00 6D [10:23:28]Write i2c OK [10:23:28]MH_I2C_Read... [10:23:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:28]Read from MH i2c: E2 [10:23:28]MH_I2C_Read... [10:23:28]Read from MH i2c: E2 03 00 [10:23:28]MH_I2C_Read... [10:23:28]Read from MH i2c: E2 03 00 1C 05 00 90 00 95 [10:23:28]RAPDU: 90 00 [10:23:28]wFMCommunicate OK [10:23:28]wFMCommunicate request_size=9 [10:23:28]MH_SAM_APDU [10:23:28]CAPDU: 80 0D 02 02 04 CF 71 4F C1 [10:23:28]Write to MH i2c: E2 0C 00 1D 05 80 0D 02 02 04 00 CF 71 4F C1 00 00 F4 [10:23:28]Write i2c OK [10:23:28]MH_I2C_Read... [10:23:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:28]Read from MH i2c: E2 [10:23:28]MH_I2C_Read... [10:23:28]Read from MH i2c: E2 03 00 [10:23:28]MH_I2C_Read... [10:23:28]Read from MH i2c: E2 03 00 1D 05 00 90 00 96 [10:23:28]RAPDU: 90 00 [10:23:28]wFMCommunicate OK [10:23:28]wFMCommunicate request_size=4 [10:23:28]MH_SAM_APDU [10:23:28]CAPDU: 80 0D 03 02 [10:23:28]Write to MH i2c: E2 08 00 1E 05 80 0D 03 02 00 00 00 00 9E [10:23:28]Write i2c OK [10:23:28]MH_I2C_Read... [10:23:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:28]Read from MH i2c: E2 [10:23:28]MH_I2C_Read... [10:23:28]Read from MH i2c: E2 0B 00 [10:23:28]MH_I2C_Read... [10:23:28]Read from MH i2c: E2 0B 00 1E 05 00 E0 A3 2F 6E 9E 72 D7 60 90 00 06 [10:23:28]RAPDU: E0 A3 2F 6E 9E 72 D7 60 90 00 [10:23:28]wFMCommunicate OK [10:23:28]SAM_PROTO_SignData done [10:23:28]FM_MakeSignedData done [10:23:28]CreateOFDProtocolMessage [10:23:28]wFMCommunicate request_size=4 [10:23:28]MH_SAM_APDU [10:23:28]CAPDU: 80 11 00 00 [10:23:28]Write to MH i2c: E2 08 00 1F 05 80 11 00 00 00 00 00 00 9E [10:23:28]Write i2c OK [10:23:28]MH_I2C_Read... [10:23:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:28]Read from MH i2c: E2 [10:23:28]MH_I2C_Read... [10:23:28]Read from MH i2c: E2 17 00 [10:23:28]MH_I2C_Read... [10:23:28]Read from MH i2c: E2 17 00 1F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 F2 [10:23:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:23:28]wFMCommunicate OK [10:23:28]CreateOFDProtocolMessage done [10:23:28]OFDSenderStorePacket 73201 [10:23:28]StoreOFDPacket docnum=73201 [10:23:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 C3 67 06 01 48 6A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 8A 75 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 3A C9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 C9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 30 00 00 00 00 07 04 06 00 08 C9 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 1F AC 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F1 1D 01 00 35 04 06 00 B8 DC CF 71 4F C1 E0 A3 2F 6E 9E 72 D7 60 [10:23:28]CheckFolder [10:23:28]dirname=/storage/ofd_packets [10:23:28]CheckFolder done [10:23:28]ProducePacketName [10:23:28]name=ofd_packets/00073201 [10:23:28]NVStorageSaveData ofd_packets/00073201 [10:23:28]File name is /storage/ofd_packets/00073201 [10:23:28]Write 300 bytes [10:23:28]NVStorageSaveData done [10:23:28]OFDSenderStorePacket done [10:23:28]KKMCreateOFDPacket done [10:23:28]NVStorageSaveData kkm_last_timestamp [10:23:28]File name is /storage/kkm_last_timestamp [10:23:28]Write 4 bytes [10:23:28]NVStorageSaveData done [10:23:28]ExternCall_PrintAddStr [10:23:28]wPrintStart [10:23:28]Write to MH i2c: 01 00 00 20 05 25 [10:23:28]OFD Sender: Processing packet 73201 [packets to send 282, broken 281] [10:23:28]ProducePacketName [10:23:28]name=ofd_packets/00073201 [10:23:28]OFD Sender: To server: pG, [10:23:28]CommunicateWithHost lk.salyk.kg:30040 [10:23:28]ConnectInit lk.salyk.kg [10:23:28]Write i2c OK [10:23:28]MH_I2C_Read... [10:23:28]Read from MH i2c: 01 [10:23:28]MH_I2C_Read... [10:23:28]Read from MH i2c: 01 07 00 [10:23:28]MH_I2C_Read... [10:23:28]Read from MH i2c: 01 07 00 20 05 00 00 00 00 00 FF 0F 3A [10:23:28]RasterBufferAndPrint [10:23:28]line Счет N : (1)952802 [10:23:28]line ИНН: 02508201610067 [10:23:28]line Контрольно-Кассовый Чек [10:23:28]line ПРОДАЖА [10:23:28]line ТРК (МРК, ГНК) : 71 [10:23:28]line Товар: 2711190000 [10:23:28]line ГАЗ-К-3 [10:23:28]line 30.090 * 38.90 [10:23:28]line = 1170.50 [10:23:28]line НДС 12% НСП 1% [10:23:28]line > о реализуемом товаре [10:23:28]line ОКРУГЛЕНИЕ: -0.50 [10:23:28]line ИТОГО: 1170.00 [10:23:28]line Внесено: 3000.00 [10:23:28]line СДАЧА: 1830.00 [10:23:28]line НСП 1% : 10.36 [10:23:28]line НДС 12% : 124.30 [10:23:28]line Наличными: 1170.00 [10:23:28]line Безнал.: 0.00 [10:23:28]line Место: АЗС № 113 "Партнер Нефть" [10:23:28]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [10:23:28]line СНО: Общий режим [10:23:28]line Чек 70 01.11.2024 10:23 [10:23:28]line Смена: 558 ФФД: 1.0 [10:23:28]line ЗНМ: 0300000087 [10:23:28]line РНМ: 0000000000091644 [10:23:28]line Версия ККМ: 001 [10:23:28]line ФМ: 0000000000874662 [10:23:28]line ФД: 73201 [10:23:28]line ФПД: 203258512625601 [10:23:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T102327&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73201&fm=203258512625601&tin=02508201610067®Number=0000000000091644&sum=117000 [10:23:29]written 0, free lines is 4095 [10:23:29]Write to MH i2c: 01 00 00 4B 05 50 [10:23:29]Write i2c OK [10:23:29]MH_I2C_Read... [10:23:29]Read from MH i2c: 01 [10:23:29]MH_I2C_Read... [10:23:29]Read from MH i2c: 01 07 00 [10:23:29]MH_I2C_Read... [10:23:29]Read from MH i2c: 01 07 00 4B 05 00 00 00 00 00 CE 0C 31 [10:23:29]RasterBufferAndPrint [10:23:29]line [10:23:29]line [10:23:29]line [10:23:29]line [10:23:29]line [10:23:29]written 0, free lines is 3285 [10:23:29]MH_Cut [10:23:29]Write to MH i2c: D1 01 00 52 05 01 29 [10:23:29]Write i2c OK [10:23:29]MH_I2C_Read... [10:23:29]Read from MH i2c: D1 [10:23:29]MH_I2C_Read... [10:23:29]Read from MH i2c: D1 01 00 [10:23:29]MH_I2C_Read... [10:23:29]Read from MH i2c: D1 01 00 52 05 00 28 [10:23:29]Write to MH i2c: 01 00 00 53 05 58 [10:23:29]Write i2c OK [10:23:29]MH_I2C_Read... [10:23:30]*** Cut start [10:23:30]*** Partial cut [10:23:30]*** CUTSNS_PIN = 1 [10:23:30]*** CUTSNS_PIN = 0 [10:23:30]*** Brake cut motor [10:23:31]Read from MH i2c: 01 [10:23:31]MH_I2C_Read... [10:23:31]*** Stop cut motor [10:23:31]*** Cut end [10:23:31]Read from MH i2c: 01 07 00 [10:23:31]MH_I2C_Read... [10:23:31]Read from MH i2c: 01 07 00 53 05 00 00 00 00 00 FF 0F 6D [10:23:31]process_action close_receipt done [10:23:31]requested_data is exist [10:23:31]produce_requested_data [10:23:31]requested_item fm.sn is exist - process it [10:23:31]wFMCommunicate request_size=4 [10:23:31]MH_SAM_APDU [10:23:31]CAPDU: 80 11 00 00 [10:23:31]Write to MH i2c: E2 08 00 54 05 80 11 00 00 00 00 00 00 D3 [10:23:31]Write i2c OK [10:23:31]MH_I2C_Read... [10:23:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:31]Read from MH i2c: E2 [10:23:31]MH_I2C_Read... [10:23:31]Read from MH i2c: E2 17 00 [10:23:31]MH_I2C_Read... [10:23:31]Read from MH i2c: E2 17 00 54 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 27 [10:23:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:23:31]wFMCommunicate OK [10:23:31]requested_item fd.num is exist - process it [10:23:31]SAM_PROTO_GetFieldsCounters [10:23:31]wFMCommunicate request_size=4 [10:23:31]MH_SAM_APDU [10:23:31]CAPDU: 80 13 00 00 [10:23:31]Write to MH i2c: E2 08 00 55 05 80 13 00 00 00 00 00 00 D6 [10:23:31]Write i2c OK [10:23:31]MH_I2C_Read... [10:23:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:31]Read from MH i2c: E2 [10:23:31]MH_I2C_Read... [10:23:31]Read from MH i2c: E2 62 00 [10:23:31]MH_I2C_Read... [10:23:31]Read from MH i2c: E2 62 00 55 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F1 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [10:23:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F1 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:23:31]wFMCommunicate OK [10:23:31]SAM_PROTO_GetFieldsCounters done [10:23:31]requested_item shift.num is exist - process it [10:23:31]requested_item shift.opened is exist - process it [10:23:31]req_shift_opened [10:23:31]FM_GetShiftState [10:23:31]SAM_PROTO_GetShiftState [10:23:31]wFMCommunicate request_size=4 [10:23:31]MH_SAM_APDU [10:23:31]CAPDU: 80 13 01 00 [10:23:31]Write to MH i2c: E2 08 00 56 05 80 13 01 00 00 00 00 00 D8 [10:23:31]Write i2c OK [10:23:31]MH_I2C_Read... [10:23:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:31]Read from MH i2c: E2 [10:23:31]MH_I2C_Read... [10:23:31]Read from MH i2c: E2 0E 00 [10:23:31]MH_I2C_Read... [10:23:31]Read from MH i2c: E2 0E 00 56 05 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 1F [10:23:31]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [10:23:31]wFMCommunicate OK [10:23:31]SAM_PROTO_GetShiftState done [10:23:31]FM_GetShiftState done [10:23:31]req_shift_opened done [10:23:31]requested_item shift.open_date is exist - process it [10:23:31]req_shift_open_date [10:23:31]req_shift_open_date done [10:23:31]produce_requested_data done [10:23:31]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73201,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [10:23:31]process_action_free close_receipt [10:23:31]json_value_free [10:23:31]json_value_free done [10:23:31]process_json_proto returns [10:23:31]Send response to host [10:23:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73201,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [10:23:31]free response buf [10:23:31]execute_script done [10:23:31]execute_script returns [10:23:31]free content buf [10:23:31]Sock 9.Close socket [10:23:31]Sock 9.Thread stoped [10:23:31]Connected sock=11 [10:23:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 C3 67 06 01 48 6A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 8A 75 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 3A C9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 C9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 30 00 00 00 00 07 04 06 00 08 C9 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 1F AC 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F1 1D 01 00 35 04 06 00 B8 DC CF 71 4F C1 E0 A3 2F 6E 9E 72 D7 60 [10:23:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 1D 4B 47 00 F3 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F1 1D 01 00 F4 03 04 00 D4 56 24 67 B6 04 01 00 00 DC 18 43 A0 5C B2 DC 3B [10:23:31]CommunicateWithHost err = 0 [10:23:31]CheckOFDResponse [10:23:31]1017 (14) - 77093643461234 [10:23:31]1041 (16) - 0000000000874662 [10:23:31]1040 (4) - 73201 [10:23:31]1012 (4) - 01.11.2024 04:19 [10:23:31]1206 (1) - 0 [10:23:31]OFD Sender: Remove packet 73201 [10:23:31]ProducePacketName [10:23:31]name=ofd_packets/00073201 [10:23:31]NVStorageDeleteData [10:23:32]OFD Sender: No OFD packet to send [10:23:37]OFD Sender: No OFD packet to send [10:23:42]OFD Sender: No OFD packet to send [10:23:47]OFD Sender: No OFD packet to send [10:23:51]recv_with_timeout no data received [10:23:52]OFD Sender: No OFD packet to send [10:23:57]OFD Sender: No OFD packet to send [10:24:02]OFD Sender: No OFD packet to send [10:24:04]recv_with_timeout no data received [10:24:07]OFD Sender: No OFD packet to send [10:24:12]OFD Sender: No OFD packet to send [10:24:17]OFD Sender: No OFD packet to send [10:24:22]OFD Sender: No OFD packet to send [10:24:27]OFD Sender: No OFD packet to send [10:24:32]OFD Sender: No OFD packet to send [10:24:37]OFD Sender: No OFD packet to send [10:24:42]OFD Sender: No OFD packet to send [10:24:47]OFD Sender: No OFD packet to send [10:24:52]OFD Sender: No OFD packet to send [10:24:55]recv_with_timeout no data received [10:24:57]OFD Sender: No OFD packet to send [10:25:02]OFD Sender: No OFD packet to send [10:25:06]recv_with_timeout no data received [10:25:07]OFD Sender: No OFD packet to send [10:25:12]OFD Sender: No OFD packet to send [10:25:17]OFD Sender: No OFD packet to send [10:25:22]OFD Sender: No OFD packet to send [10:25:27]OFD Sender: No OFD packet to send [10:25:32]OFD Sender: No OFD packet to send [10:25:37]OFD Sender: No OFD packet to send [10:25:42]OFD Sender: No OFD packet to send [10:25:47]OFD Sender: No OFD packet to send [10:25:52]OFD Sender: No OFD packet to send [10:25:57]OFD Sender: No OFD packet to send [10:26:02]OFD Sender: No OFD packet to send [10:26:07]OFD Sender: No OFD packet to send [10:26:12]OFD Sender: No OFD packet to send [10:26:17]recv_with_timeout no data received [10:26:17]OFD Sender: No OFD packet to send [10:26:22]OFD Sender: No OFD packet to send [10:26:27]OFD Sender: No OFD packet to send [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:09]recv_with_timeout no data received [10:28:12]OFD Sender: No OFD packet to send [10:28:17]OFD Sender: No OFD packet to send [10:28:22]OFD Sender: No OFD packet to send [10:28:27]OFD Sender: No OFD packet to send [10:28:32]OFD Sender: No OFD packet to send [10:28:37]OFD Sender: No OFD packet to send [10:28:42]OFD Sender: No OFD packet to send [10:28:43]recv_with_timeout no data received [10:28:47]OFD Sender: No OFD packet to send [10:28:52]OFD Sender: No OFD packet to send [10:28:57]OFD Sender: No OFD packet to send [10:29:02]OFD Sender: No OFD packet to send [10:29:08]OFD Sender: No OFD packet to send [10:29:13]OFD Sender: No OFD packet to send [10:29:18]OFD Sender: No OFD packet to send [10:29:23]OFD Sender: No OFD packet to send [10:29:28]OFD Sender: No OFD packet to send [10:29:33]OFD Sender: No OFD packet to send [10:29:38]OFD Sender: No OFD packet to send [10:29:43]OFD Sender: No OFD packet to send [10:29:48]OFD Sender: No OFD packet to send [10:29:53]OFD Sender: No OFD packet to send [10:29:58]OFD Sender: No OFD packet to send [10:30:03]OFD Sender: No OFD packet to send [10:30:08]OFD Sender: No OFD packet to send [10:30:13]OFD Sender: No OFD packet to send [10:30:18]OFD Sender: No OFD packet to send [10:30:23]OFD Sender: No OFD packet to send [10:30:28]OFD Sender: No OFD packet to send [10:30:32]accept exits with 8 [10:30:32]New connection [10:30:32]New thread 3067637092 created [10:30:32]Thread 3067493732 joined [10:30:32]Waiting for new connection... [10:30:32] Sock 8.Parse request [10:30:32]Sock 8.Check first char [10:30:32]Sock 8.First char is OK [10:30:32]request: POST /json_proto HTTP/1.0 [10:30:32]Method: POST [10:30:32]URL: /json_proto [10:30:32]Method is POST - this is cgi request [10:30:32]url: /json_proto [10:30:32]query_string will be loaded in cgi processing [10:30:32]execute_cgi json_proto POST (null) [10:30:32]execute_cgi path=json_proto method=POST [10:30:32]POST find Content-Length [10:30:32]Host: 172.17.43.195:8080 [10:30:32]Content-Length: 685 [10:30:32]Content-Type: application/json [10:30:32] [10:30:32]POST finish read [10:30:32]Found Content-Length = 685 [10:30:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952803", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 53.480, "sum" : 2080.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2080.00, "payments": [ { "type": 0, "sum" : 2080.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:32]execute_script... [10:30: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)952803", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 53.480, "sum" : 2080.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2080.00, "payments": [ { "type": 0, "sum" : 2080.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:32]POST & json_proto [10:30:32]process_json_proto [10:30:32]json parsed OK: [10:30:32]protocol is kg_v1.0 [10:30:32]action value=close_receipt [10:30:32]process_action close_receipt [10:30:32]cmd_close_receipt [10:30:32]MH_GetDate [10:30:32]Write to MH i2c: F0 00 00 57 05 4B [10:30:32]Write i2c OK [10:30:32]MH_I2C_Read... [10:30:32]Read from MH i2c: F0 [10:30:32]MH_I2C_Read... [10:30:32]Read from MH i2c: F0 09 00 [10:30:32]MH_I2C_Read... [10:30:32]Read from MH i2c: F0 09 00 57 05 00 C8 AD 24 67 74 2C AD 66 07 [10:30:32]GetLastDocTimeStamp 1730456607 [10:30:32]current date 1730457032 [10:30:32]FM_GetShiftState [10:30:32]SAM_PROTO_GetShiftState [10:30:32]wFMCommunicate request_size=4 [10:30:32]MH_SAM_APDU [10:30:32]CAPDU: 80 13 01 00 [10:30:32]Write to MH i2c: E2 08 00 58 05 80 13 01 00 00 00 00 00 DA [10:30:32]Write i2c OK [10:30:32]MH_I2C_Read... [10:30:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:32]Read from MH i2c: E2 [10:30:32]MH_I2C_Read... [10:30:32]Read from MH i2c: E2 0E 00 [10:30:32]MH_I2C_Read... [10:30:32]Read from MH i2c: E2 0E 00 58 05 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 21 [10:30:32]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [10:30:32]wFMCommunicate OK [10:30:32]SAM_PROTO_GetShiftState done [10:30:32]FM_GetShiftState done [10:30:32]opened in 1730419605 [10:30:32]opened+sec_in_day 1730506005 [10:30:32]quantity*price = 208037 [10:30:32]sum+1 = 208038 [10:30:32]Check (price>sum+1) || (price+1 о реализуемом товаре [10:31:39]line ОКРУГЛЕНИЕ: -0.37 [10:31:39]line ИТОГО: 2080.00 [10:31:39]line Внесено: 3000.00 [10:31:39]line СДАЧА: 920.00 [10:31:39]line НСП 1% : 18.41 [10:31:39]line НДС 12% : 220.92 [10:31:39]line Наличными: 2080.00 [10:31:39]line Безнал.: 0.00 [10:31:39]line Место: АЗС № 113 "Партнер Нефть" [10:31:39]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [10:31:39]line СНО: Общий режим [10:31:39]line Чек 71 01.11.2024 10:30 [10:31:39]line Смена: 558 ФФД: 1.0 [10:31:39]line ЗНМ: 0300000087 [10:31:39]line РНМ: 0000000000091644 [10:31:39]line Версия ККМ: 001 [10:31:39]line ФМ: 0000000000874662 [10:31:39]line ФД: 73202 [10:31:39]line ФПД: 111243259799386 [10:31:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T103032&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73202&fm=111243259799386&tin=02508201610067®Number=0000000000091644&sum=208000 [10:31:39]written 0, free lines is 4095 [10:31:40]Write to MH i2c: 01 00 00 48 00 48 [10:31:40]Write i2c OK [10:31:40]MH_I2C_Read... [10:31:40]Read from MH i2c: 01 [10:31:40]MH_I2C_Read... [10:31:40]Read from MH i2c: 01 07 00 [10:31:40]MH_I2C_Read... [10:31:40]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 E0 0C 3B [10:31:40]RasterBufferAndPrint [10:31:40]line [10:31:40]line [10:31:40]line [10:31:40]line [10:31:40]line [10:31:40]written 0, free lines is 3311 [10:31:40]MH_Cut [10:31:40]Write to MH i2c: D1 01 00 4F 00 01 21 [10:31:40]Write i2c OK [10:31:40]MH_I2C_Read... [10:31:40]Read from MH i2c: D1 [10:31:40]MH_I2C_Read... [10:31:40]Read from MH i2c: D1 01 00 [10:31:40]MH_I2C_Read... [10:31:40]Read from MH i2c: D1 01 00 4F 00 00 20 [10:31:40]Write to MH i2c: 01 00 00 50 00 50 [10:31:40]Write i2c OK [10:31:40]MH_I2C_Read... [10:31:40]*** Cut start [10:31:40]*** Partial cut [10:31:40]*** CUTSNS_PIN = 1 [10:31:40]*** CUTSNS_PIN = 0 [10:31:41]*** Brake cut motor [10:31:41]Read from MH i2c: 01 [10:31:41]MH_I2C_Read... [10:31:41]*** Stop cut motor [10:31:41]*** Cut end [10:31:41]Read from MH i2c: 01 07 00 [10:31:41]MH_I2C_Read... [10:31:41]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [10:31:41]process_action print_doc done [10:31:41]requested_data is exist [10:31:41]produce_requested_data [10:31:41]produce_requested_data return (null) [10:31:41]process_action_free print_doc [10:31:41]json_value_free [10:31:41]json_value_free done [10:31:41]process_json_proto returns [10:31:41]Send response to host [10:31:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [10:31:41]free response buf [10:31:41]execute_script done [10:31:41]execute_script returns [10:31:41]free content buf [10:31:41]Sock 7.Close socket [10:31:41]Sock 7.Thread stoped [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:53]recv_with_timeout no data received [10:31:58]OFD Sender: No OFD packet to send 0A 39 04 06 00 00 00 00 00 00 00 [10:34:18]Write to MH i2c: E2 12 00 59 00 80 15 02 00 0A 00 39 04 06 00 00 00 00 00 00 00 00 00 30 [10:34:18]Write i2c OK [10:34:18]MH_I2C_Read... [10:34:18]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [10:34:18]Read from MH i2c: E2 [10:34:18]MH_I2C_Read... [10:34:18]Read from MH i2c: E2 03 00 [10:34:18]MH_I2C_Read... [10:34:18]Read from MH i2c: E2 03 00 59 00 00 90 00 CD [10:34:18]RAPDU: 90 00 [10:34:18]wFMCommunicate OK [10:34:18]wFMCommunicate request_size=11 [10:34:18]MH_SAM_APDU [10:34:18]CAPDU: 80 15 02 00 06 1F 04 02 00 01 00 [10:34:18]Write to MH i2c: E2 0E 00 5A 00 80 15 02 00 06 00 1F 04 02 00 01 00 00 00 0C [10:34:18]Write i2c OK [10:34:18]MH_I2C_Read... [10:34:18]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [10:34:18]Read from MH i2c: E2 [10:34:18]MH_I2C_Read... [10:34:18]Read from MH i2c: E2 03 00 [10:34:18]MH_I2C_Read... [10:34:18]Read from MH i2c: E2 03 00 5A 00 00 90 00 CE [10:34:18]RAPDU: 90 00 [10:34:18]wFMCommunicate OK [10:34:18]wFMCommunicate request_size=13 [10:34:18]MH_SAM_APDU [10:34:18]CAPDU: 80 15 02 00 08 F4 03 04 00 AA AE 24 67 [10:34:18]Write to MH i2c: E2 10 00 5B 00 80 15 02 00 08 00 F4 03 04 00 AA AE 24 67 00 00 C9 [10:34:18]Write i2c OK [10:34:18]MH_I2C_Read... [10:34:18]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [10:34:18]Read from MH i2c: E2 [10:34:18]MH_I2C_Read... [10:34:18]Read from MH i2c: E2 03 00 [10:34:18]MH_I2C_Read... [10:34:18]Read from MH i2c: E2 03 00 5B 00 00 90 00 CF [10:34:18]RAPDU: 90 00 [10:34:18]wFMCommunicate OK [10:34:18]wFMCommunicate request_size=25 [10:34:18]MH_SAM_APDU [10:34:18]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 [10:34:18]Write to MH i2c: E2 1C 00 5C 00 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 00 00 3D [10:34:18]Write i2c OK [10:34:18]MH_I2C_Read... [10:34:18]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [10:34:18]Read from MH i2c: E2 [10:34:18]MH_I2C_Read... [10:34:18]Read from MH i2c: E2 03 00 [10:34:18]MH_I2C_Read... [10:34:18]Read from MH i2c: E2 03 00 5C 00 00 90 00 D0 [10:34:18]RAPDU: 90 00 [10:34:18]wFMCommunicate OK [10:34:18]wFMCommunicate request_size=4 [10:34:18]MH_SAM_APDU [10:34:18]CAPDU: 80 15 03 00 [10:34:18]Write to MH i2c: E2 08 00 5D 00 80 15 03 00 00 00 00 00 DE [10:34:18]Write i2c OK [10:34:18]MH_I2C_Read... [10:34:19]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [10:34:19]Read from MH i2c: E2 [10:34:19]MH_I2C_Read... [10:34:19]Read from MH i2c: E2 40 00 [10:34:19]MH_I2C_Read... [10:34:19]Read from MH i2c: E2 40 00 5D 00 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F3 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 48 00 00 00 35 04 06 00 15 C4 FD 8F E5 41 90 00 E9 [10:34:19]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F3 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 48 00 00 00 35 04 06 00 15 C4 FD 8F E5 41 90 00 [10:34:19]wFMCommunicate OK [10:34:19]SAM_PROTO_ProcessDocument answer len = 59 [10:34:19]SAM_PROTO_ProcessDocument done [10:34:19]SetTLVBufToDocument [10:34:19]Processing tag 1209 (04B9) [10:34:19]Malloc new data [10:34:19]Processing tag 1041 (0411) [10:34:19]Processing tag 1040 (0410) [10:34:19]Malloc new data [10:34:19]Processing tag 1038 (040E) [10:34:19]Malloc new data [10:34:19]Processing tag 1042 (0412) [10:34:19]Malloc new data [10:34:19]Processing tag 1077 (0435) [10:34:19]Malloc new data [10:34:19]SetTLVBufToDocument err=0 [10:34:19]KKMLoadAndSignReceiptData store KKM data [10:34:19]KKMLoadAndSignReceiptData err=0 [10:34:19]wFMCommunicate request_size=4 [10:34:19]MH_SAM_APDU [10:34:19]CAPDU: 80 11 00 00 [10:34:19]Write to MH i2c: E2 08 00 5E 00 80 11 00 00 00 00 00 00 D8 [10:34:19]Write i2c OK [10:34:19]MH_I2C_Read... [10:34:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:19]Read from MH i2c: E2 [10:34:19]MH_I2C_Read... [10:34:19]Read from MH i2c: E2 17 00 [10:34:19]MH_I2C_Read... [10:34:19]Read from MH i2c: E2 17 00 5E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 2C [10:34:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:34:19]wFMCommunicate OK [10:34:19]Счет N : (1)952805 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 53 Товар: 2710124130 Аи-92-К-5 50.000 * 0.00 = 0.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 72 01.11.2024 10:34 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливные Талоны 4612109-10-11-12-13 ФМ: 0000000000874662 ФД: 73203 ФПД: 23935811839297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T103418&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73203&fm=23935811839297&tin=02508201610067®Number=0000000000091644&sum=0 [10:34:19]StoreToDocumentArchive [10:34:19]shift 558 fd 73203 [10:34:19]save to /storage/0558/doc_00073203 [10:34:19]save last doc name /storage/0558/doc_00073203 to /storage/kkm_last_doc_name [10:34:19]save OK [10:34:19]Clear old archive folders... [10:34:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:34:19]tlvbuf is 0091A800 [10:34:19]SAM_PROTO_ClearQueue [10:34:19]wFMCommunicate request_size=4 [10:34:19]MH_SAM_APDU [10:34:19]CAPDU: 80 09 00 00 [10:34:19]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [10:34:19]Write i2c OK [10:34:19]MH_I2C_Read... [10:34:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:19]Read from MH i2c: E2 [10:34:19]MH_I2C_Read... [10:34:19]Read from MH i2c: E2 03 00 [10:34:19]MH_I2C_Read... [10:34:19]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [10:34:19]RAPDU: 90 00 [10:34:19]wFMCommunicate OK [10:34:19]SAM_PROTO_ClearQueue done [10:34:19]KKMCreateOFDPacket [10:34:19]OFDProtocolAddRootSTLVToBuf [10:34:19]FM_MakeSignedData [10:34:19]FM_MakeSignedData [10:34:19]SAM_PROTO_SignData [10:34:19]wFMCommunicate request_size=4 [10:34:19]MH_SAM_APDU [10:34:19]CAPDU: 80 0D 01 02 [10:34:19]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [10:34:19]Write i2c OK [10:34:19]MH_I2C_Read... [10:34:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:19]Read from MH i2c: E2 [10:34:19]MH_I2C_Read... [10:34:19]Read from MH i2c: E2 03 00 [10:34:19]MH_I2C_Read... [10:34:19]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [10:34:19]RAPDU: 90 00 [10:34:19]wFMCommunicate OK [10:34:19]wFMCommunicate request_size=255 [10:34:19]MH_SAM_APDU [10:34:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 AA AE 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F3 1D 01 00 35 04 06 00 15 [10:34:19]Write to MH i2c: E2 02 01 61 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 AA AE 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F3 1D 01 00 35 04 06 00 15 00 00 77 [10:34:19]Write i2c OK [10:34:19]MH_I2C_Read... [10:34:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:19]Read from MH i2c: E2 [10:34:19]MH_I2C_Read... [10:34:19]Read from MH i2c: E2 03 00 [10:34:19]MH_I2C_Read... [10:34:19]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [10:34:19]RAPDU: 90 00 [10:34:19]wFMCommunicate OK [10:34:19]wFMCommunicate request_size=10 [10:34:19]MH_SAM_APDU [10:34:19]CAPDU: 80 0D 02 02 05 C4 FD 8F E5 41 [10:34:19]Write to MH i2c: E2 0D 00 62 00 80 0D 02 02 05 00 C4 FD 8F E5 41 00 00 5C [10:34:19]Write i2c OK [10:34:19]MH_I2C_Read... [10:34:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:19]Read from MH i2c: E2 [10:34:19]MH_I2C_Read... [10:34:19]Read from MH i2c: E2 03 00 [10:34:19]MH_I2C_Read... [10:34:19]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [10:34:19]RAPDU: 90 00 [10:34:19]wFMCommunicate OK [10:34:19]wFMCommunicate request_size=4 [10:34:19]MH_SAM_APDU [10:34:19]CAPDU: 80 0D 03 02 [10:34:19]Write to MH i2c: E2 08 00 63 00 80 0D 03 02 00 00 00 00 DE [10:34:19]Write i2c OK [10:34:19]MH_I2C_Read... [10:34:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:19]Read from MH i2c: E2 [10:34:19]MH_I2C_Read... [10:34:19]Read from MH i2c: E2 0B 00 [10:34:19]MH_I2C_Read... [10:34:19]Read from MH i2c: E2 0B 00 63 00 00 81 41 07 C4 F0 18 9A B7 90 00 C5 [10:34:19]RAPDU: 81 41 07 C4 F0 18 9A B7 90 00 [10:34:19]wFMCommunicate OK [10:34:19]SAM_PROTO_SignData done [10:34:19]FM_MakeSignedData done [10:34:19]CreateOFDProtocolMessage [10:34:19]wFMCommunicate request_size=4 [10:34:19]MH_SAM_APDU [10:34:19]CAPDU: 80 11 00 00 [10:34:19]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [10:34:19]Write i2c OK [10:34:19]MH_I2C_Read... [10:34:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:19]Read from MH i2c: E2 [10:34:19]MH_I2C_Read... [10:34:19]Read from MH i2c: E2 17 00 [10:34:19]MH_I2C_Read... [10:34:19]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 32 [10:34:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:34:19]wFMCommunicate OK [10:34:19]CreateOFDProtocolMessage done [10:34:19]OFDSenderStorePacket 73203 [10:34:19]StoreOFDPacket docnum=73203 [10:34:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 F7 73 07 01 67 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 AA AE 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F3 1D 01 00 35 04 06 00 15 C4 FD 8F E5 41 81 41 07 C4 F0 18 9A B7 [10:34:19]CheckFolder [10:34:19]dirname=/storage/ofd_packets [10:34:19]CheckFolder done [10:34:19]ProducePacketName [10:34:19]name=ofd_packets/00073203 [10:34:19]NVStorageSaveData ofd_packets/00073203 [10:34:19]File name is /storage/ofd_packets/00073203 [10:34:19]Write 301 bytes [10:34:19]NVStorageSaveData done [10:34:19]OFDSenderStorePacket done [10:34:19]KKMCreateOFDPacket done [10:34:19]NVStorageSaveData kkm_last_timestamp [10:34:19]File name is /storage/kkm_last_timestamp [10:34:19]Write 4 bytes [10:34:19]NVStorageSaveData done [10:34:19]ExternCall_PrintAddStr [10:34:19]wPrintStart [10:34:19]Write to MH i2c: 01 00 00 65 00 65 [10:34:19]Write i2c OK [10:34:19]MH_I2C_Read... [10:34:19]Read from MH i2c: 01 [10:34:19]MH_I2C_Read... [10:34:19]Read from MH i2c: 01 07 00 [10:34:19]MH_I2C_Read... [10:34:19]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [10:34:19]RasterBufferAndPrint [10:34:19]line Счет N : (1)952805 [10:34:19]line ИНН: 02508201610067 [10:34:19]line Контрольно-Кассовый Чек [10:34:19]line ПРОДАЖА [10:34:19]line ТРК (МРК, ГНК) : 53 [10:34:19]line Товар: 2710124130 [10:34:19]line Аи-92-К-5 [10:34:19]line 50.000 * 0.00 [10:34:19]line = 0.00 [10:34:19]line НДС 12% НСП 1% [10:34:19]line > о реализуемом товаре [10:34:19]line ИТОГО: 0.00 [10:34:19]line НСП 1% : 0.00 [10:34:19]line НДС 12% : 0.00 [10:34:19]line Наличными: 0.00 [10:34:19]line Безнал.: 0.00 [10:34:19]line Место: АЗС № 113 "Партнер Нефть" [10:34:19]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [10:34:19]line СНО: Общий режим [10:34:19]line Чек 72 01.11.2024 10:34 [10:34:19]line Смена: 558 ФФД: 1.0 [10:34:19]line ЗНМ: 0300000087 [10:34:19]line РНМ: 0000000000091644 [10:34:19]line Версия ККМ: 001 [10:34:19]line Талоны: Топливные Талоны [10:34:19]line 4612109-10-11-12-13 [10:34:19]line ФМ: 0000000000874662 [10:34:19]line ФД: 73203 [10:34:19]line ФПД: 23935811839297 [10:34:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T103418&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73203&fm=23935811839297&tin=02508201610067®Number=0000000000091644&sum=0 [10:34:20]written 0, free lines is 4095 [10:34:20]OFD Sender: Processing packet 73203 [packets to send 282, broken 281] [10:34:20]ProducePacketName [10:34:20]name=ofd_packets/00073203 [10:34:20]OFD Sender: To server: pG, [10:34:20]CommunicateWithHost lk.salyk.kg:30040 [10:34:20]ConnectInit lk.salyk.kg [10:34:20]Write to MH i2c: 01 00 00 8F 00 8F [10:34:20]Write i2c OK [10:34:20]MH_I2C_Read... [10:34:20]Read from MH i2c: 01 [10:34:20]MH_I2C_Read... [10:34:20]Read from MH i2c: 01 07 00 [10:34:20]MH_I2C_Read... [10:34:20]Read from MH i2c: 01 07 00 8F 00 00 00 00 00 00 DD 0C 7F [10:34:20]RasterBufferAndPrint [10:34:20]line [10:34:20]line [10:34:20]line [10:34:20]line [10:34:20]line [10:34:20]written 0, free lines is 3299 [10:34:20]MH_Cut [10:34:20]Write to MH i2c: D1 01 00 96 00 01 68 [10:34:20]Write i2c OK [10:34:20]MH_I2C_Read... [10:34:20]Read from MH i2c: D1 [10:34:20]MH_I2C_Read... [10:34:20]Read from MH i2c: D1 01 00 [10:34:20]MH_I2C_Read... [10:34:20]Read from MH i2c: D1 01 00 96 00 00 67 [10:34:20]Write to MH i2c: 01 00 00 97 00 97 [10:34:20]Write i2c OK [10:34:20]MH_I2C_Read... [10:34:20]Connected sock=11 [10:34:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 F7 73 07 01 67 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 AA AE 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F3 1D 01 00 35 04 06 00 15 C4 FD 8F E5 41 81 41 07 C4 F0 18 9A B7 [10:34:21]*** Cut start [10:34:21]*** Partial cut [10:34:21]*** CUTSNS_PIN = 1 [10:34:21]*** CUTSNS_PIN = 0 [10:34:21]*** Brake cut motor [10:34:21]Read from MH i2c: 01 [10:34:21]MH_I2C_Read... [10:34:21]*** Stop cut motor [10:34:21]*** Cut end [10:34:21]Read from MH i2c: 01 07 00 [10:34:21]MH_I2C_Read... [10:34:21]Read from MH i2c: 01 07 00 97 00 00 00 00 00 00 FF 0F AC [10:34:21]process_action close_receipt done [10:34:21]requested_data is exist [10:34:21]produce_requested_data [10:34:21]requested_item fm.sn is exist - process it [10:34:21]wFMCommunicate request_size=4 [10:34:21]MH_SAM_APDU [10:34:21]CAPDU: 80 11 00 00 [10:34:21]Write to MH i2c: E2 08 00 98 00 80 11 00 00 00 00 00 00 12 [10:34:21]Write i2c OK [10:34:21]MH_I2C_Read... [10:34:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:21]Read from MH i2c: E2 [10:34:21]MH_I2C_Read... [10:34:21]Read from MH i2c: E2 17 00 [10:34:21]MH_I2C_Read... [10:34:21]Read from MH i2c: E2 17 00 98 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 66 [10:34:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:34:21]wFMCommunicate OK [10:34:21]requested_item fd.num is exist - process it [10:34:21]SAM_PROTO_GetFieldsCounters [10:34:21]wFMCommunicate request_size=4 [10:34:21]MH_SAM_APDU [10:34:21]CAPDU: 80 13 00 00 [10:34:21]Write to MH i2c: E2 08 00 99 00 80 13 00 00 00 00 00 00 15 [10:34:21]Write i2c OK [10:34:21]MH_I2C_Read... [10:34:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:22]Read from MH i2c: E2 [10:34:22]MH_I2C_Read... [10:34:22]Read from MH i2c: E2 62 00 [10:34:22]MH_I2C_Read... [10:34:22]Read from MH i2c: E2 62 00 99 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F3 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [10:34:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F3 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:34:22]wFMCommunicate OK [10:34:22]SAM_PROTO_GetFieldsCounters done [10:34:22]requested_item shift.num is exist - process it [10:34:22]requested_item shift.opened is exist - process it [10:34:22]req_shift_opened [10:34:22]FM_GetShiftState [10:34:22]SAM_PROTO_GetShiftState [10:34:22]wFMCommunicate request_size=4 [10:34:22]MH_SAM_APDU [10:34:22]CAPDU: 80 13 01 00 [10:34:22]Write to MH i2c: E2 08 00 9A 00 80 13 01 00 00 00 00 00 17 [10:34:22]Write i2c OK [10:34:22]MH_I2C_Read... [10:34:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 3A 2B 47 00 A9 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F3 1D 01 00 F4 03 04 00 5F 59 24 67 B6 04 01 00 00 16 AA B5 37 52 48 A9 B9 [10:34:22]CommunicateWithHost err = 0 [10:34:22]CheckOFDResponse [10:34:22]1017 (14) - 77093643461234 [10:34:22]1041 (16) - 0000000000874662 [10:34:22]1040 (4) - 73203 [10:34:22]1012 (4) - 01.11.2024 04:30 [10:34:22]1206 (1) - 0 [10:34:22]OFD Sender: Remove packet 73203 [10:34:22]ProducePacketName [10:34:22]name=ofd_packets/00073203 [10:34:22]NVStorageDeleteData [10:34:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:22]Read from MH i2c: E2 [10:34:22]MH_I2C_Read... [10:34:22]Read from MH i2c: E2 0E 00 [10:34:22]MH_I2C_Read... [10:34:22]Read from MH i2c: E2 0E 00 9A 00 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 5E [10:34:22]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [10:34:22]wFMCommunicate OK [10:34:22]SAM_PROTO_GetShiftState done [10:34:22]FM_GetShiftState done [10:34:22]req_shift_opened done [10:34:22]requested_item shift.open_date is exist - process it [10:34:22]req_shift_open_date [10:34:22]req_shift_open_date done [10:34:22]produce_requested_data done [10:34:22]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73203,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [10:34:22]process_action_free close_receipt [10:34:22]json_value_free [10:34:22]json_value_free done [10:34:22]process_json_proto returns [10:34:22]Send response to host [10:34:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73203,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [10:34:22]free response buf [10:34:22]execute_script done [10:34:22]execute_script returns [10:34:22]free content buf [10:34:22]Sock 10.Close socket [10:34:22]Sock 10.Thread stoped [10:34:22]OFD Sender: No OFD packet to send [10:34:27]OFD Sender: No OFD packet to send [10:34:32]OFD Sender: No OFD packet to send [10:34:37]OFD Sender: No OFD packet to send [10:34:38]ConnectInit Can't connect to host [10:34:42]OFD Sender: No OFD packet to send [10:34:43]accept exits with 9 [10:34:43]New connection [10:34:43]New thread 3067473252 created [10:34:43]Thread 3067329892 joined [10:34:43]Waiting for new connection... [10:34:43] Sock 9.Parse request [10:34:43]Sock 9.Check first char [10:34:43]Sock 9.First char is OK [10:34:43]request: POST /json_proto HTTP/1.0 [10:34:43]Method: POST [10:34:43]URL: /json_proto [10:34:43]Method is POST - this is cgi request [10:34:43]url: /json_proto [10:34:43]query_string will be loaded in cgi processing [10:34:43]execute_cgi json_proto POST (null) [10:34:43]execute_cgi path=json_proto method=POST [10:34:43]POST find Content-Length [10:34:43]Host: 172.17.43.195:8080 [10:34:43]Content-Length: 678 [10:34:43]Content-Type: application/json [10:34:43] [10:34:43]POST finish read [10:34:43]Found Content-Length = 678 [10:34:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 12.400, "sum" : 920.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 920.00, "total" : 920.00, "payments": [ { "type": 0, "sum" : 920.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:43]execute_script... [10:34:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 12.400, "sum" : 920.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 920.00, "total" : 920.00, "payments": [ { "type": 0, "sum" : 920.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:43]POST & json_proto [10:34:43]process_json_proto [10:34:43]json parsed OK: [10:34:43]protocol is kg_v1.0 [10:34:43]action value=close_receipt [10:34:43]process_action close_receipt [10:34:43]cmd_close_receipt [10:34:43]MH_GetDate [10:34:43]Write to MH i2c: F0 00 00 9B 00 8A [10:34:43]Write i2c OK [10:34:43]MH_I2C_Read... [10:34:43]Read from MH i2c: F0 [10:34:43]MH_I2C_Read... [10:34:43]Read from MH i2c: F0 09 00 [10:34:43]MH_I2C_Read... [10:34:43]Read from MH i2c: F0 09 00 9B 00 00 C4 AE 24 67 74 2C AD 66 43 [10:34:43]GetLastDocTimeStamp 1730457258 [10:34:43]current date 1730457284 [10:34:43]FM_GetShiftState [10:34:43]SAM_PROTO_GetShiftState [10:34:43]wFMCommunicate request_size=4 [10:34:43]MH_SAM_APDU [10:34:43]CAPDU: 80 13 01 00 [10:34:43]Write to MH i2c: E2 08 00 9C 00 80 13 01 00 00 00 00 00 19 [10:34:43]Write i2c OK [10:34:43]MH_I2C_Read... [10:34:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:43]Read from MH i2c: E2 [10:34:43]MH_I2C_Read... [10:34:43]Read from MH i2c: E2 0E 00 [10:34:43]MH_I2C_Read... [10:34:43]Read from MH i2c: E2 0E 00 9C 00 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 60 [10:34:43]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [10:34:43]wFMCommunicate OK [10:34:43]SAM_PROTO_GetShiftState done [10:34:43]FM_GetShiftState done [10:34:43]opened in 1730419605 [10:34:43]opened+sec_in_day 1730506005 [10:34:43]quantity*price = 92008 [10:34:43]sum+1 = 92009 [10:34:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 920.00 Внесено: 920.00 СДАЧА: 0.00 НСП 1% : 8.14 НДС 12% : 97.71 Наличными: 920.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 73 01.11.2024 10:34 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73204 ФПД: 143122837223410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T103444&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73204&fm=143122837223410&tin=02508201610067®Number=0000000000091644&sum=92000 [10:34:44]StoreToDocumentArchive [10:34:44]shift 558 fd 73204 [10:34:44]save to /storage/0558/doc_00073204 [10:34:44]save last doc name /storage/0558/doc_00073204 to /storage/kkm_last_doc_name [10:34:44]save OK [10:34:44]Clear old archive folders... [10:34:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:34:44]tlvbuf is 009228B0 [10:34:44]SAM_PROTO_ClearQueue [10:34:44]wFMCommunicate request_size=4 [10:34:44]MH_SAM_APDU [10:34:44]CAPDU: 80 09 00 00 [10:34:44]Write to MH i2c: E2 08 00 A9 00 80 09 00 00 00 00 00 00 1B [10:34:44]Write i2c OK [10:34:44]MH_I2C_Read... [10:34:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:44]Read from MH i2c: E2 [10:34:44]MH_I2C_Read... [10:34:44]Read from MH i2c: E2 03 00 [10:34:44]MH_I2C_Read... [10:34:44]Read from MH i2c: E2 03 00 A9 00 00 90 00 1D [10:34:44]RAPDU: 90 00 [10:34:44]wFMCommunicate OK [10:34:44]SAM_PROTO_ClearQueue done [10:34:44]KKMCreateOFDPacket [10:34:44]OFDProtocolAddRootSTLVToBuf [10:34:44]FM_MakeSignedData [10:34:44]FM_MakeSignedData [10:34:44]SAM_PROTO_SignData [10:34:44]wFMCommunicate request_size=4 [10:34:44]MH_SAM_APDU [10:34:44]CAPDU: 80 0D 01 02 [10:34:44]Write to MH i2c: E2 08 00 AA 00 80 0D 01 02 00 00 00 00 23 [10:34:44]Write i2c OK [10:34:44]MH_I2C_Read... [10:34:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:44]Read from MH i2c: E2 [10:34:44]MH_I2C_Read... [10:34:44]Read from MH i2c: E2 03 00 [10:34:44]MH_I2C_Read... [10:34:44]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [10:34:44]RAPDU: 90 00 [10:34:44]wFMCommunicate OK [10:34:44]wFMCommunicate request_size=255 [10:34:44]MH_SAM_APDU [10:34:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 70 30 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 68 67 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 67 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 26 00 00 00 00 07 04 06 00 60 67 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 C4 AE 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F4 1D 01 00 35 04 06 00 82 [10:34:44]Write to MH i2c: E2 02 01 AB 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 70 30 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 68 67 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 67 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 26 00 00 00 00 07 04 06 00 60 67 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 C4 AE 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F4 1D 01 00 35 04 06 00 82 00 00 D3 [10:34:44]Write i2c OK [10:34:44]MH_I2C_Read... [10:34:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:44]Read from MH i2c: E2 [10:34:44]MH_I2C_Read... [10:34:44]Read from MH i2c: E2 03 00 [10:34:44]MH_I2C_Read... [10:34:44]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [10:34:44]RAPDU: 90 00 [10:34:44]wFMCommunicate OK [10:34:44]wFMCommunicate request_size=10 [10:34:44]MH_SAM_APDU [10:34:44]CAPDU: 80 0D 02 02 05 2B 61 DF 37 F2 [10:34:44]Write to MH i2c: E2 0D 00 AC 00 80 0D 02 02 05 00 2B 61 DF 37 F2 00 00 C4 [10:34:44]Write i2c OK [10:34:44]MH_I2C_Read... [10:34:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:45]Read from MH i2c: E2 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: E2 03 00 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [10:34:45]RAPDU: 90 00 [10:34:45]wFMCommunicate OK [10:34:45]wFMCommunicate request_size=4 [10:34:45]MH_SAM_APDU [10:34:45]CAPDU: 80 0D 03 02 [10:34:45]Write to MH i2c: E2 08 00 AD 00 80 0D 03 02 00 00 00 00 28 [10:34:45]Write i2c OK [10:34:45]MH_I2C_Read... [10:34:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:45]Read from MH i2c: E2 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: E2 0B 00 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: E2 0B 00 AD 00 00 88 38 8C 61 EA 0C 23 A9 90 00 98 [10:34:45]RAPDU: 88 38 8C 61 EA 0C 23 A9 90 00 [10:34:45]wFMCommunicate OK [10:34:45]SAM_PROTO_SignData done [10:34:45]FM_MakeSignedData done [10:34:45]CreateOFDProtocolMessage [10:34:45]wFMCommunicate request_size=4 [10:34:45]MH_SAM_APDU [10:34:45]CAPDU: 80 11 00 00 [10:34:45]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [10:34:45]Write i2c OK [10:34:45]MH_I2C_Read... [10:34:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:45]Read from MH i2c: E2 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: E2 17 00 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7C [10:34:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:34:45]wFMCommunicate OK [10:34:45]CreateOFDProtocolMessage done [10:34:45]OFDSenderStorePacket 73204 [10:34:45]StoreOFDPacket docnum=73204 [10:34:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 E6 2C 07 01 1F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 70 30 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 68 67 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 67 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 26 00 00 00 00 07 04 06 00 60 67 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 C4 AE 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F4 1D 01 00 35 04 06 00 82 2B 61 DF 37 F2 88 38 8C 61 EA 0C 23 A9 [10:34:45]CheckFolder [10:34:45]dirname=/storage/ofd_packets [10:34:45]CheckFolder done [10:34:45]ProducePacketName [10:34:45]name=ofd_packets/00073204 [10:34:45]NVStorageSaveData ofd_packets/00073204 [10:34:45]File name is /storage/ofd_packets/00073204 [10:34:45]Write 301 bytes [10:34:45]NVStorageSaveData done [10:34:45]OFDSenderStorePacket done [10:34:45]KKMCreateOFDPacket done [10:34:45]NVStorageSaveData kkm_last_timestamp [10:34:45]File name is /storage/kkm_last_timestamp [10:34:45]Write 4 bytes [10:34:45]NVStorageSaveData done [10:34:45]ExternCall_PrintAddStr [10:34:45]wPrintStart [10:34:45]Write to MH i2c: 01 00 00 AF 00 AF [10:34:45]OFD Sender: Processing packet 73204 [packets to send 282, broken 281] [10:34:45]ProducePacketName [10:34:45]name=ofd_packets/00073204 [10:34:45]OFD Sender: To server: pG, [10:34:45]CommunicateWithHost lk.salyk.kg:30040 [10:34:45]ConnectInit lk.salyk.kg [10:34:45]Write i2c OK [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: 01 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: 01 07 00 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [10:34:45]RasterBufferAndPrint [10:34:45]line Счет N : (1)952806 [10:34:45]line ИНН: 02508201610067 [10:34:45]line Контрольно-Кассовый Чек [10:34:45]line ПРОДАЖА [10:34:45]line ТРК (МРК, ГНК) : 41 [10:34:45]line Товар: 2710124500 [10:34:45]line Аи-95-К-3 [10:34:45]line 12.400 * 74.20 [10:34:45]line = 920.08 [10:34:45]line НДС 12% НСП 1% [10:34:45]line > о реализуемом товаре [10:34:45]line ОКРУГЛЕНИЕ: -0.08 [10:34:45]line ИТОГО: 920.00 [10:34:45]line Внесено: 920.00 [10:34:45]line СДАЧА: 0.00 [10:34:45]line НСП 1% : 8.14 [10:34:45]line НДС 12% : 97.71 [10:34:45]line Наличными: 920.00 [10:34:45]line Безнал.: 0.00 [10:34:45]line Место: АЗС № 113 "Партнер Нефть" [10:34:45]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [10:34:45]line СНО: Общий режим [10:34:45]line Чек 73 01.11.2024 10:34 [10:34:45]line Смена: 558 ФФД: 1.0 [10:34:45]line ЗНМ: 0300000087 [10:34:45]line РНМ: 0000000000091644 [10:34:45]line Версия ККМ: 001 [10:34:45]line ФМ: 0000000000874662 [10:34:45]line ФД: 73204 [10:34:45]line ФПД: 143122837223410 [10:34:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T103444&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73204&fm=143122837223410&tin=02508201610067®Number=0000000000091644&sum=92000 [10:34:45]written 0, free lines is 4095 [10:34:45]Write to MH i2c: 01 00 00 DA 00 DA [10:34:45]Write i2c OK [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: 01 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: 01 07 00 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: 01 07 00 DA 00 00 00 00 00 00 CD 0C BA [10:34:45]RasterBufferAndPrint [10:34:45]line [10:34:45]line [10:34:45]line [10:34:45]line [10:34:45]line [10:34:45]written 0, free lines is 3290 [10:34:45]MH_Cut [10:34:45]Write to MH i2c: D1 01 00 E1 00 01 B3 [10:34:45]Write i2c OK [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: D1 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: D1 01 00 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: D1 01 00 E1 00 00 B2 [10:34:45]Write to MH i2c: 01 00 00 E2 00 E2 [10:34:45]Write i2c OK [10:34:45]MH_I2C_Read... [10:34:46]*** Cut start [10:34:46]*** Partial cut [10:34:46]*** CUTSNS_PIN = 1 [10:34:46]*** CUTSNS_PIN = 0 [10:34:46]*** Brake cut motor [10:34:47]Read from MH i2c: 01 [10:34:47]MH_I2C_Read... [10:34:47]*** Stop cut motor [10:34:47]*** Cut end [10:34:47]Read from MH i2c: 01 07 00 [10:34:47]MH_I2C_Read... [10:34:47]Read from MH i2c: 01 07 00 E2 00 00 00 00 00 00 FF 0F F7 [10:34:47]process_action close_receipt done [10:34:47]requested_data is exist [10:34:47]produce_requested_data [10:34:47]requested_item fm.sn is exist - process it [10:34:47]wFMCommunicate request_size=4 [10:34:47]MH_SAM_APDU [10:34:47]CAPDU: 80 11 00 00 [10:34:47]Write to MH i2c: E2 08 00 E3 00 80 11 00 00 00 00 00 00 5D [10:34:47]Write i2c OK [10:34:47]MH_I2C_Read... [10:34:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:47]Read from MH i2c: E2 [10:34:47]MH_I2C_Read... [10:34:47]Read from MH i2c: E2 17 00 [10:34:47]MH_I2C_Read... [10:34:47]Read from MH i2c: E2 17 00 E3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 B1 [10:34:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:34:47]wFMCommunicate OK [10:34:47]requested_item fd.num is exist - process it [10:34:47]SAM_PROTO_GetFieldsCounters [10:34:47]wFMCommunicate request_size=4 [10:34:47]MH_SAM_APDU [10:34:47]CAPDU: 80 13 00 00 [10:34:47]Write to MH i2c: E2 08 00 E4 00 80 13 00 00 00 00 00 00 60 [10:34:47]Write i2c OK [10:34:47]MH_I2C_Read... [10:34:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:47]Read from MH i2c: E2 [10:34:47]MH_I2C_Read... [10:34:47]Read from MH i2c: E2 62 00 [10:34:47]MH_I2C_Read... [10:34:47]Read from MH i2c: E2 62 00 E4 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F4 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [10:34:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F4 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:34:47]wFMCommunicate OK [10:34:47]SAM_PROTO_GetFieldsCounters done [10:34:47]requested_item shift.num is exist - process it [10:34:47]requested_item shift.opened is exist - process it [10:34:47]req_shift_opened [10:34:47]FM_GetShiftState [10:34:47]SAM_PROTO_GetShiftState [10:34:47]wFMCommunicate request_size=4 [10:34:47]MH_SAM_APDU [10:34:47]CAPDU: 80 13 01 00 [10:34:47]Write to MH i2c: E2 08 00 E5 00 80 13 01 00 00 00 00 00 62 [10:34:47]Write i2c OK [10:34:47]MH_I2C_Read... [10:34:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:47]Read from MH i2c: E2 [10:34:47]MH_I2C_Read... [10:34:47]Read from MH i2c: E2 0E 00 [10:34:47]MH_I2C_Read... [10:34:47]Read from MH i2c: E2 0E 00 E5 00 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 A9 [10:34:47]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [10:34:47]wFMCommunicate OK [10:34:47]SAM_PROTO_GetShiftState done [10:34:47]FM_GetShiftState done [10:34:47]req_shift_opened done [10:34:47]requested_item shift.open_date is exist - process it [10:34:47]req_shift_open_date [10:34:47]req_shift_open_date done [10:34:47]produce_requested_data done [10:34:47]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73204,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [10:34:47]process_action_free close_receipt [10:34:47]json_value_free [10:34:47]json_value_free done [10:34:47]process_json_proto returns [10:34:47]Send response to host [10:34:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73204,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [10:34:47]free response buf [10:34:47]execute_script done [10:34:47]execute_script returns [10:34:47]free content buf [10:34:47]Sock 9.Close socket [10:34:47]Sock 9.Thread stoped [10:34:51]Connected sock=11 [10:34:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 E6 2C 07 01 1F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 70 30 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 68 67 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 67 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 26 00 00 00 00 07 04 06 00 60 67 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 C4 AE 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F4 1D 01 00 35 04 06 00 82 2B 61 DF 37 F2 88 38 8C 61 EA 0C 23 A9 [10:34:56]recv_with_timeout no data received [10:34:56]CommunicateWithHost answer receiving error [10:34:56]CommunicateWithHost err = -3 [10:34:56]OFD Sender: Server communicate error [10:35:01]OFD Sender: Processing packet 73204 [packets to send 282, broken 281] [10:35:01]ProducePacketName [10:35:01]name=ofd_packets/00073204 [10:35:01]OFD Sender: To server: pG, [10:35:01]CommunicateWithHost lk.salyk.kg:30040 [10:35:01]ConnectInit lk.salyk.kg [10:35:02]Connected sock=9 [10:35:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 E6 2C 07 01 1F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 70 30 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 68 67 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 67 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 26 00 00 00 00 07 04 06 00 60 67 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 C4 AE 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F4 1D 01 00 35 04 06 00 82 2B 61 DF 37 F2 88 38 8C 61 EA 0C 23 A9 [10:35:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 86 15 47 00 9F 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F4 1D 01 00 F4 03 04 00 88 59 24 67 B6 04 01 00 00 38 C7 60 BE B8 93 C8 AF [10:35:02]CommunicateWithHost err = 0 [10:35:02]CheckOFDResponse [10:35:02]1017 (14) - 77093643461234 [10:35:02]1041 (16) - 0000000000874662 [10:35:02]1040 (4) - 73204 [10:35:02]1012 (4) - 01.11.2024 04:31 [10:35:02]1206 (1) - 0 [10:35:02]OFD Sender: Remove packet 73204 [10:35:02]ProducePacketName [10:35:02]name=ofd_packets/00073204 [10:35:02]NVStorageDeleteData [10:35:03]OFD Sender: No OFD packet to send [10:35:08]OFD Sender: No OFD packet to send [10:35:13]OFD Sender: No OFD packet to send [10:35:18]OFD Sender: No OFD packet to send [10:35:23]OFD Sender: No OFD packet to send [10:35:28]OFD Sender: No OFD packet to send [10:35:33]OFD Sender: No OFD packet to send [10:35:38]OFD Sender: No OFD packet to send [10:35:41]accept exits with 8 [10:35:41]New connection [10:35:41]New thread 3067329892 created [10:35:41]Thread 3067473252 joined [10:35:41]Waiting for new connection... [10:35:41] Sock 8.Parse request [10:35:41]Sock 8.Check first char [10:35:41]Sock 8.First char is OK [10:35:41]request: POST /json_proto HTTP/1.0 [10:35:41]Method: POST [10:35:41]URL: /json_proto [10:35:41]Method is POST - this is cgi request [10:35:41]url: /json_proto [10:35:41]query_string will be loaded in cgi processing [10:35:41]execute_cgi json_proto POST (null) [10:35:41]execute_cgi path=json_proto method=POST [10:35:41]POST find Content-Length [10:35:41]Host: 172.17.43.195:8080 [10:35:41]Content-Length: 988 [10:35:41]Content-Type: application/json [10:35:41] [10:35:41]POST finish read [10:35:41]Found Content-Length = 988 [10:35:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 75.20, "quantity" : 131.650, "sum" : 9900.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 113\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 131.65 \u0441\u043E\u043C", "deposit" : 9900.00, "total" : 9900.00, "payments": [ { "type": 0, "sum" : 9900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:41]execute_script... [10:35: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)952804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 75.20, "quantity" : 131.650, "sum" : 9900.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 113\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 131.65 \u0441\u043E\u043C", "deposit" : 9900.00, "total" : 9900.00, "payments": [ { "type": 0, "sum" : 9900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:41]POST & json_proto [10:35:41]process_json_proto [10:35:41]json parsed OK: [10:35:41]protocol is kg_v1.0 [10:35:41]action value=close_receipt [10:35:41]process_action close_receipt [10:35:41]cmd_close_receipt [10:35:41]MH_GetDate [10:35:41]Write to MH i2c: F0 00 00 E6 00 D5 [10:35:41]Write i2c OK [10:35:41]MH_I2C_Read... [10:35:41]Read from MH i2c: F0 [10:35:41]MH_I2C_Read... [10:35:41]Read from MH i2c: F0 09 00 [10:35:41]MH_I2C_Read... [10:35:41]Read from MH i2c: F0 09 00 E6 00 00 FE AE 24 67 74 2C AD 66 C8 [10:35:41]GetLastDocTimeStamp 1730457284 [10:35:41]current date 1730457342 [10:35:41]FM_GetShiftState [10:35:41]SAM_PROTO_GetShiftState [10:35:41]wFMCommunicate request_size=4 [10:35:41]MH_SAM_APDU [10:35:41]CAPDU: 80 13 01 00 [10:35:41]Write to MH i2c: E2 08 00 E7 00 80 13 01 00 00 00 00 00 64 [10:35:41]Write i2c OK [10:35:41]MH_I2C_Read... [10:35:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:41]Read from MH i2c: E2 [10:35:41]MH_I2C_Read... [10:35:41]Read from MH i2c: E2 0E 00 [10:35:41]MH_I2C_Read... [10:35:41]Read from MH i2c: E2 0E 00 E7 00 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 AB [10:35:41]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [10:35:41]wFMCommunicate OK [10:35:41]SAM_PROTO_GetShiftState done [10:35:41]FM_GetShiftState done [10:35:41]opened in 1730419605 [10:35:41]opened+sec_in_day 1730506005 [10:35:41]quantity*price = 990008 [10:35:41]sum+1 = 990009 [10:35:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 9900.00 Внесено: 9900.00 СДАЧА: 0.00 НСП 1% : 87.61 НДС 12% : 1051.34 Наличными: 9900.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 74 01.11.2024 10:35 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Дисконтная программа ДТ номер 113 сэкономлено 131.65 сом ФМ: 0000000000874662 ФД: 73205 ФПД: 84542748958874 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T103542&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73205&fm=84542748958874&tin=02508201610067®Number=0000000000091644&sum=990000 [10:35:42]StoreToDocumentArchive [10:35:42]shift 558 fd 73205 [10:35:42]save to /storage/0558/doc_00073205 [10:35:42]save last doc name /storage/0558/doc_00073205 to /storage/kkm_last_doc_name [10:35:42]save OK [10:35:42]Clear old archive folders... [10:35:42]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:35:42]tlvbuf is 008EF5B0 [10:35:42]SAM_PROTO_ClearQueue [10:35:42]wFMCommunicate request_size=4 [10:35:42]MH_SAM_APDU [10:35:42]CAPDU: 80 09 00 00 [10:35:42]Write to MH i2c: E2 08 00 F4 00 80 09 00 00 00 00 00 00 66 [10:35:42]Write i2c OK [10:35:42]MH_I2C_Read... [10:35:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:42]Read from MH i2c: E2 [10:35:42]MH_I2C_Read... [10:35:42]Read from MH i2c: E2 03 00 [10:35:42]MH_I2C_Read... [10:35:42]Read from MH i2c: E2 03 00 F4 00 00 90 00 68 [10:35:42]RAPDU: 90 00 [10:35:42]wFMCommunicate OK [10:35:42]SAM_PROTO_ClearQueue done [10:35:42]KKMCreateOFDPacket [10:35:42]OFDProtocolAddRootSTLVToBuf [10:35:42]FM_MakeSignedData [10:35:42]FM_MakeSignedData [10:35:42]SAM_PROTO_SignData [10:35:42]wFMCommunicate request_size=4 [10:35:42]MH_SAM_APDU [10:35:42]CAPDU: 80 0D 01 02 [10:35:42]Write to MH i2c: E2 08 00 F5 00 80 0D 01 02 00 00 00 00 6E [10:35:42]Write i2c OK [10:35:42]MH_I2C_Read... [10:35:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:43]Read from MH i2c: E2 [10:35:43]MH_I2C_Read... [10:35:43]Read from MH i2c: E2 03 00 [10:35:43]MH_I2C_Read... [10:35:43]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [10:35:43]RAPDU: 90 00 [10:35:43]wFMCommunicate OK [10:35:43]wFMCommunicate request_size=255 [10:35:43]MH_SAM_APDU [10:35:43]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 42 02 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 38 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 9A 01 00 00 00 07 04 06 00 30 1B 0F 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 FE AE 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F5 1D 01 00 35 04 06 00 [10:35:43]Write to MH i2c: E2 02 01 F6 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 42 02 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 38 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 9A 01 00 00 00 07 04 06 00 30 1B 0F 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 FE AE 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F5 1D 01 00 35 04 06 00 00 00 F4 [10:35:43]Write i2c OK [10:35:43]MH_I2C_Read... [10:35:43]OFD Sender: No OFD packet to send [10:35:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:43]Read from MH i2c: E2 [10:35:43]MH_I2C_Read... [10:35:43]Read from MH i2c: E2 03 00 [10:35:43]MH_I2C_Read... [10:35:43]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [10:35:43]RAPDU: 90 00 [10:35:43]wFMCommunicate OK [10:35:43]wFMCommunicate request_size=11 [10:35:43]MH_SAM_APDU [10:35:43]CAPDU: 80 0D 02 02 06 4C E4 24 85 20 9A [10:35:43]Write to MH i2c: E2 0E 00 F7 00 80 0D 02 02 06 00 4C E4 24 85 20 9A 00 00 10 [10:35:43]Write i2c OK [10:35:43]MH_I2C_Read... [10:35:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:43]Read from MH i2c: E2 [10:35:43]MH_I2C_Read... [10:35:43]Read from MH i2c: E2 03 00 [10:35:43]MH_I2C_Read... [10:35:43]Read from MH i2c: E2 03 00 F7 00 00 90 00 6B [10:35:43]RAPDU: 90 00 [10:35:43]wFMCommunicate OK [10:35:43]wFMCommunicate request_size=4 [10:35:43]MH_SAM_APDU [10:35:43]CAPDU: 80 0D 03 02 [10:35:43]Write to MH i2c: E2 08 00 F8 00 80 0D 03 02 00 00 00 00 73 [10:35:43]Write i2c OK [10:35:43]MH_I2C_Read... [10:35:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:35:43]Read from MH i2c: E2 [10:35:43]MH_I2C_Read... [10:35:43]Read from MH i2c: E2 0B 00 [10:35:43]MH_I2C_Read... [10:35:43]Read from MH i2c: E2 0B 00 F8 00 00 55 C9 84 A7 F3 74 17 E2 90 00 1D [10:35:43]RAPDU: 55 C9 84 A7 F3 74 17 E2 90 00 [10:35:43]wFMCommunicate OK [10:35:43]SAM_PROTO_SignData done [10:35:43]FM_MakeSignedData done [10:35:43]CreateOFDProtocolMessage [10:35:43]wFMCommunicate request_size=4 [10:35:43]MH_SAM_APDU [10:35:43]CAPDU: 80 11 00 00 [10:35:43]Write to MH i2c: E2 08 00 F9 00 80 11 00 00 00 00 00 00 73 [10:35:43]Write i2c OK [10:35:43]MH_I2C_Read... [10:35:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:43]Read from MH i2c: E2 [10:35:43]MH_I2C_Read... [10:35:43]Read from MH i2c: E2 17 00 [10:35:43]MH_I2C_Read... [10:35:43]Read from MH i2c: E2 17 00 F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C7 [10:35:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:35:43]wFMCommunicate OK [10:35:43]CreateOFDProtocolMessage done [10:35:43]OFDSenderStorePacket 73205 [10:35:43]StoreOFDPacket docnum=73205 [10:35:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 4A 88 08 01 18 B6 5A 03 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 42 02 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 38 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 9A 01 00 00 00 07 04 06 00 30 1B 0F 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 FE AE 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F5 1D 01 00 35 04 06 00 4C E4 24 85 20 9A 55 C9 84 A7 F3 74 17 E2 [10:35:43]CheckFolder [10:35:43]dirname=/storage/ofd_packets [10:35:43]CheckFolder done [10:35:43]ProducePacketName [10:35:43]name=ofd_packets/00073205 [10:35:43]NVStorageSaveData ofd_packets/00073205 [10:35:43]File name is /storage/ofd_packets/00073205 [10:35:43]Write 302 bytes [10:35:43]NVStorageSaveData done [10:35:43]OFDSenderStorePacket done [10:35:43]KKMCreateOFDPacket done [10:35:43]NVStorageSaveData kkm_last_timestamp [10:35:43]File name is /storage/kkm_last_timestamp [10:35:43]Write 4 bytes [10:35:43]NVStorageSaveData done [10:35:43]ExternCall_PrintAddStr [10:35:43]wPrintStart [10:35:43]Write to MH i2c: 01 00 00 FA 00 FA [10:35:43]Write i2c OK [10:35:43]MH_I2C_Read... [10:35:43]Read from MH i2c: 01 [10:35:43]MH_I2C_Read... [10:35:43]Read from MH i2c: 01 07 00 [10:35:43]MH_I2C_Read... [10:35:43]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [10:35:43]RasterBufferAndPrint [10:35:43]line Счет N : (1)952804 [10:35:43]line ИНН: 02508201610067 [10:35:43]line Контрольно-Кассовый Чек [10:35:43]line ПРОДАЖА [10:35:43]line ТРК (МРК, ГНК) : 33 [10:35:43]line Товар: 2710194210 [10:35:43]line ДТ(л)-К-5 [10:35:43]line 131.650 * 75.20 [10:35:43]line = 9900.08 [10:35:43]line НДС 12% НСП 1% [10:35:43]line > о реализуемом товаре [10:35:43]line ОКРУГЛЕНИЕ: -0.08 [10:35:43]line ИТОГО: 9900.00 [10:35:43]line Внесено: 9900.00 [10:35:43]line СДАЧА: 0.00 [10:35:43]line НСП 1% : 87.61 [10:35:43]line НДС 12% : 1051.34 [10:35:43]line Наличными: 9900.00 [10:35:43]line Безнал.: 0.00 [10:35:43]line Место: АЗС № 113 "Партнер Нефть" [10:35:43]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [10:35:43]line СНО: Общий режим [10:35:43]line Чек 74 01.11.2024 10:35 [10:35:43]line Смена: 558 ФФД: 1.0 [10:35:43]line ЗНМ: 0300000087 [10:35:43]line РНМ: 0000000000091644 [10:35:43]line Версия ККМ: 001 [10:35:43]line [10:35:43]line Дисконтная программа [10:35:43]line ДТ [10:35:43]line номер 113 [10:35:43]line сэкономлено 131.65 сом [10:35:43]line ФМ: 0000000000874662 [10:35:43]line ФД: 73205 [10:35:43]line ФПД: 84542748958874 [10:35:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T103542&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73205&fm=84542748958874&tin=02508201610067®Number=0000000000091644&sum=990000 [10:35:43]written 0, free lines is 4095 [10:35:43]OFD Sender: Processing packet 73205 [packets to send 282, broken 281] [10:35:43]ProducePacketName [10:35:43]name=ofd_packets/00073205 [10:35:43]OFD Sender: To server: pG, [10:35:43]CommunicateWithHost lk.salyk.kg:30040 [10:35:43]ConnectInit lk.salyk.kg [10:35:44]Write to MH i2c: 01 00 00 2A 01 2B [10:35:44]Write i2c OK [10:35:44]MH_I2C_Read... [10:35:44]Read from MH i2c: 01 [10:35:44]MH_I2C_Read... [10:35:44]Read from MH i2c: 01 07 00 [10:35:44]MH_I2C_Read... [10:35:44]Read from MH i2c: 01 07 00 2A 01 00 00 00 00 00 7F 0C BD [10:35:44]RasterBufferAndPrint [10:35:44]line [10:35:44]line [10:35:44]line [10:35:44]line [10:35:44]line [10:35:44]written 0, free lines is 3222 [10:35:44]MH_Cut [10:35:44]Write to MH i2c: D1 01 00 31 01 01 04 [10:35:44]Write i2c OK [10:35:44]MH_I2C_Read... [10:35:44]Read from MH i2c: D1 [10:35:44]MH_I2C_Read... [10:35:44]Read from MH i2c: D1 01 00 [10:35:44]MH_I2C_Read... [10:35:44]Read from MH i2c: D1 01 00 31 01 00 03 [10:35:44]Write to MH i2c: 01 00 00 32 01 33 [10:35:44]Write i2c OK [10:35:44]MH_I2C_Read... [10:35:45]*** Cut start [10:35:45]*** Partial cut [10:35:45]*** CUTSNS_PIN = 1 [10:35:45]*** CUTSNS_PIN = 0 [10:35:45]*** Brake cut motor [10:35:45]Connected sock=11 [10:35:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 4A 88 08 01 18 B6 5A 03 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 42 02 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 38 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 *** Stop cut motor [10:35:45]01 *** Cut end [10:35:45]00 01 F7 03 06 00 39 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 9A 01 00 00 00 07 04 06 00 30 1B 0F 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 FE AE 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F5 1D 01 00 35 04 06 00 4C E4 24 85 20 9A 55 C9 84 A7 F3 74 17 E2 [10:35:45]Read from MH i2c: 01 [10:35:45]MH_I2C_Read... [10:35:45]Read from MH i2c: 01 07 00 [10:35:45]MH_I2C_Read... [10:35:45]Read from MH i2c: 01 07 00 32 01 00 00 00 00 00 FF 0F 48 [10:35:45]process_action close_receipt done [10:35:45]requested_data is exist [10:35:45]produce_requested_data [10:35:45]requested_item fm.sn is exist - process it [10:35:45]wFMCommunicate request_size=4 [10:35:45]MH_SAM_APDU [10:35:45]CAPDU: 80 11 00 00 [10:35:45]Write to MH i2c: E2 08 00 33 01 80 11 00 00 00 00 00 00 AE [10:35:45]Write i2c OK [10:35:45]MH_I2C_Read... [10:35:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:45]Read from MH i2c: E2 [10:35:45]MH_I2C_Read... [10:35:45]Read from MH i2c: E2 17 00 [10:35:45]MH_I2C_Read... [10:35:45]Read from MH i2c: E2 17 00 33 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 02 [10:35:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:35:45]wFMCommunicate OK [10:35:45]requested_item fd.num is exist - process it [10:35:45]SAM_PROTO_GetFieldsCounters [10:35:45]wFMCommunicate request_size=4 [10:35:45]MH_SAM_APDU [10:35:45]CAPDU: 80 13 00 00 [10:35:45]Write to MH i2c: E2 08 00 34 01 80 13 00 00 00 00 00 00 B1 [10:35:45]Write i2c OK [10:35:45]MH_I2C_Read... [10:35:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:46]Read from MH i2c: E2 [10:35:46]MH_I2C_Read... [10:35:46]Read from MH i2c: E2 62 00 [10:35:46]MH_I2C_Read... [10:35:46]Read from MH i2c: E2 62 00 34 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F5 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [10:35:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F5 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:35:46]wFMCommunicate OK [10:35:46]SAM_PROTO_GetFieldsCounters done [10:35:46]requested_item shift.num is exist - process it [10:35:46]requested_item shift.opened is exist - process it [10:35:46]req_shift_opened [10:35:46]FM_GetShiftState [10:35:46]SAM_PROTO_GetShiftState [10:35:46]wFMCommunicate request_size=4 [10:35:46]MH_SAM_APDU [10:35:46]CAPDU: 80 13 01 00 [10:35:46]Write to MH i2c: E2 08 00 35 01 80 13 01 00 00 00 00 00 B3 [10:35:46]Write i2c OK [10:35:46]MH_I2C_Read... [10:35:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:46]Read from MH i2c: E2 [10:35:46]MH_I2C_Read... [10:35:46]Read from MH i2c: E2 0E 00 [10:35:46]MH_I2C_Read... [10:35:46]Read from MH i2c: E2 0E 00 35 01 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 FA [10:35:46]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [10:35:46]wFMCommunicate OK [10:35:46]SAM_PROTO_GetShiftState done [10:35:46]FM_GetShiftState done [10:35:46]req_shift_opened done [10:35:46]requested_item shift.open_date is exist - process it [10:35:46]req_shift_open_date [10:35:46]req_shift_open_date done [10:35:46]produce_requested_data done [10:35:46]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73205,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [10:35:46]process_action_free close_receipt [10:35:46]json_value_free [10:35:46]json_value_free done [10:35:46]process_json_proto returns [10:35:46]Send response to host [10:35:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73205,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [10:35:46]free response buf [10:35:46]execute_script done [10:35:46]execute_script returns [10:35:46]free content buf [10:35:46]Sock 8.Close socket [10:35:46]Sock 8.Thread stoped [10:35:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 72 3F 47 00 8E 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 34 36 36 32 10 04 04 00 F5 1D 01 00 F4 03 04 00 B3 59 24 67 B6 04 01 00 00 77 C2 69 56 F0 D0 D8 75 [10:35:46]CommunicateWithHost err = 0 [10:35:46]CheckOFDResponse [10:35:46]1017 (14) - 77093643461234 [10:35:46]1041 (16) - 0000000000874662 [10:35:46]1040 (4) - 73205 [10:35:46]1012 (4) - 01.11.2024 04:31 [10:35:46]1206 (1) - 0 [10:35:46]OFD Sender: Remove packet 73205 [10:35:46]ProducePacketName [10:35:46]name=ofd_packets/00073205 [10:35:46]NVStorageDeleteData [10:35:46]OFD Sender: No OFD packet to send [10:35:51]OFD Sender: No OFD packet to send [10:35:56]OFD Sender: No OFD packet to send [10:36:02]OFD Sender: No OFD packet to send [10:36:07]OFD Sender: No OFD packet to send [10:36:12]OFD Sender: No OFD packet to send [10:36:17]OFD Sender: No OFD packet to send [10:36:22]OFD Sender: No OFD packet to send [10:36:27]OFD Sender: No OFD packet to send [10:36:32]OFD Sender: No OFD packet to send [10:36:37]OFD Sender: No OFD packet to send [10:36:42]OFD Sender: No OFD packet to send [10:36:47]OFD Sender: No OFD packet to send [10:36:52]OFD Sender: No OFD packet to send [10:36:56]ConnectInit Can't connect to host [10:36:57]OFD Sender: No OFD packet to send [10:37:02]OFD Sender: No OFD packet to send [10:37:07]OFD Sender: No OFD packet to send [10:37:07]recv_with_timeout no data received [10:37:12]OFD Sender: No OFD packet to send [10:37:17]OFD Sender: No OFD packet to send [10:37:22]OFD Sender: No OFD packet to send [10:37:27]OFD Sender: No OFD packet to send [10:37:31]recv_with_timeout no data received [10:37:32]OFD Sender: No OFD packet to send [10:37:37]accept exits with 9 [10:37:37]New connection [10:37:37]New thread 3067473252 created [10:37:37]Thread 3067329892 joined [10:37:37]Waiting for new connection... [10:37:37] Sock 9.Parse request [10:37:37]Sock 9.Check first char [10:37:37]Sock 9.First char is OK [10:37:37]request: POST /json_proto HTTP/1.0 [10:37:37]Method: POST [10:37:37]URL: /json_proto [10:37:37]Method is POST - this is cgi request [10:37:37]url: /json_proto [10:37:37]query_string will be loaded in cgi processing [10:37:37]execute_cgi json_proto POST (null) [10:37:37]execute_cgi path=json_proto method=POST [10:37:37]POST find Content-Length [10:37:37]Host: 172.17.43.195:8080 [10:37:37]Content-Length: 678 [10:37:37]Content-Type: application/json [10:37:37] [10:37:37]POST finish read [10:37:37]Found Content-Length = 678 [10:37:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.670, "sum" : 780.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 780.00, "payments": [ { "type": 0, "sum" : 780.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:37]execute_script... [10:37: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)952808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.670, "sum" : 780.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 780.00, "payments": [ { "type": 0, "sum" : 780.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:37]POST & json_proto [10:37:37]process_json_proto [10:37:37]json parsed OK: [10:37:37]protocol is kg_v1.0 [10:37:37]action value=close_receipt [10:37:37]process_action close_receipt [10:37:37]cmd_close_receipt [10:37:37]MH_GetDate [10:37:37]Write to MH i2c: F0 00 00 36 01 26 [10:37:37]Write i2c OK [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: F0 [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: F0 09 00 [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: F0 09 00 36 01 00 71 AF 24 67 74 2C AD 66 8D [10:37:37]GetLastDocTimeStamp 1730457342 [10:37:37]current date 1730457457 [10:37:37]FM_GetShiftState [10:37:37]SAM_PROTO_GetShiftState [10:37:37]wFMCommunicate request_size=4 [10:37:37]MH_SAM_APDU [10:37:37]CAPDU: 80 13 01 00 [10:37:37]Write to MH i2c: E2 08 00 37 01 80 13 01 00 00 00 00 00 B5 [10:37:37]Write i2c OK [10:37:37]MH_I2C_Read... [10:37:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:37]Read from MH i2c: E2 [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: E2 0E 00 [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: E2 0E 00 37 01 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 FC [10:37:37]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [10:37:37]wFMCommunicate OK [10:37:37]SAM_PROTO_GetShiftState done [10:37:37]FM_GetShiftState done [10:37:37]opened in 1730419605 [10:37:37]opened+sec_in_day 1730506005 [10:37:37]quantity*price = 78072 [10:37:37]sum+1 = 78073 [10:37:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 780.00 Внесено: 800.00 СДАЧА: 20.00 НСП 1% : 6.91 НДС 12% : 82.91 Наличными: 780.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 75 01.11.2024 10:37 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 73206 ФПД: 116989618085799 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T103737&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73206&fm=116989618085799&tin=02508201610067®Number=0000000000091644&sum=78000 [10:37:38]StoreToDocumentArchive [10:37:38]shift 558 fd 73206 [10:37:38]save to /storage/0558/doc_00073206 [10:37:38]save last doc name /storage/0558/doc_00073206 to /storage/kkm_last_doc_name [10:37:38]save OK [10:37:38]Clear old archive folders... [10:37:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:37:38]tlvbuf is 008C4BB0 [10:37:38]SAM_PROTO_ClearQueue [10:37:38]wFMCommunicate request_size=4 [10:37:38]MH_SAM_APDU [10:37:38]CAPDU: 80 09 00 00 [10:37:38]Write to MH i2c: E2 08 00 44 01 80 09 00 00 00 00 00 00 B7 [10:37:38]Write i2c OK [10:37:38]MH_I2C_Read... [10:37:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:38]Read from MH i2c: E2 [10:37:38]MH_I2C_Read... [10:37:38]Read from MH i2c: E2 03 00 [10:37:38]MH_I2C_Read... [10:37:38]Read from MH i2c: E2 03 00 44 01 00 90 00 B9 [10:37:38]RAPDU: 90 00 [10:37:38]wFMCommunicate OK [10:37:38]SAM_PROTO_ClearQueue done [10:37:38]KKMCreateOFDPacket [10:37:38]OFDProtocolAddRootSTLVToBuf [10:37:38]FM_MakeSignedData [10:37:38]FM_MakeSignedData [10:37:38]SAM_PROTO_SignData [10:37:38]wFMCommunicate request_size=4 [10:37:38]MH_SAM_APDU [10:37:38]CAPDU: 80 0D 01 02 [10:37:38]Write to MH i2c: E2 08 00 45 01 80 0D 01 02 00 00 00 00 BF [10:37:38]Write i2c OK [10:37:38]MH_I2C_Read... [10:37:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:38]Read from MH i2c: E2 [10:37:38]MH_I2C_Read... [10:37:38]Read from MH i2c: E2 03 00 [10:37:38]MH_I2C_Read... [10:37:38]Read from MH i2c: E2 03 00 45 01 00 90 00 BA [10:37:38]RAPDU: 90 00 [10:37:38]wFMCommunicate OK [10:37:38]wFMCommunicate request_size=255 [10:37:38]MH_SAM_APDU [10:37:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 2D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F8 30 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 30 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 20 00 00 00 00 07 04 06 00 B0 30 01 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 71 AF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F6 1D 01 00 35 04 06 00 6A [10:37:38]Write to MH i2c: E2 02 01 46 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 2D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F8 30 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 30 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 20 00 00 00 00 07 04 06 00 B0 30 01 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 71 AF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F6 1D 01 00 35 04 06 00 6A 00 00 8F [10:37:38]Write i2c OK [10:37:38]MH_I2C_Read... [10:37:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:38]Read from MH i2c: E2 [10:37:38]MH_I2C_Read... [10:37:38]Read from MH i2c: E2 03 00 [10:37:38]MH_I2C_Read... [10:37:38]Read from MH i2c: E2 03 00 46 01 00 90 00 BB [10:37:38]RAPDU: 90 00 [10:37:38]wFMCommunicate OK [10:37:38]wFMCommunicate request_size=10 [10:37:38]MH_SAM_APDU [10:37:38]CAPDU: 80 0D 02 02 05 66 C4 A0 DF A7 [10:37:38]Write to MH i2c: E2 0D 00 47 01 80 0D 02 02 05 00 66 C4 A0 DF A7 00 00 1C [10:37:38]Write i2c OK [10:37:38]MH_I2C_Read... [10:37:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:38]Read from MH i2c: E2 [10:37:38]MH_I2C_Read... [10:37:38]Read from MH i2c: E2 03 00 [10:37:38]MH_I2C_Read... [10:37:38]Read from MH i2c: E2 03 00 47 01 00 90 00 BC [10:37:38]RAPDU: 90 00 [10:37:38]wFMCommunicate OK [10:37:38]wFMCommunicate request_size=4 [10:37:38]MH_SAM_APDU [10:37:38]CAPDU: 80 0D 03 02 [10:37:38]Write to MH i2c: E2 08 00 48 01 80 0D 03 02 00 00 00 00 C4 [10:37:38]Write i2c OK [10:37:38]MH_I2C_Read... [10:37:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:38]Read from MH i2c: E2 [10:37:38]MH_I2C_Read... [10:37:38]Read from MH i2c: E2 0B 00 [10:37:38]MH_I2C_Read... [10:37:38]Read from MH i2c: E2 0B 00 48 01 00 A7 B2 9E 7F 0A 05 59 2A 90 00 CD [10:37:38]RAPDU: A7 B2 9E 7F 0A 05 59 2A 90 00 [10:37:38]wFMCommunicate OK [10:37:38]SAM_PROTO_SignData done [10:37:38]FM_MakeSignedData done [10:37:38]CreateOFDProtocolMessage [10:37:38]wFMCommunicate request_size=4 [10:37:38]MH_SAM_APDU [10:37:38]CAPDU: 80 11 00 00 [10:37:38]Write to MH i2c: E2 08 00 49 01 80 11 00 00 00 00 00 00 C4 [10:37:38]Write i2c OK [10:37:38]MH_I2C_Read... [10:37:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:38]Read from MH i2c: E2 [10:37:38]MH_I2C_Read... [10:37:38]Read from MH i2c: E2 17 00 [10:37:38]MH_I2C_Read... [10:37:38]Read from MH i2c: E2 17 00 49 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 18 [10:37:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:37:38]wFMCommunicate OK [10:37:38]CreateOFDProtocolMessage done [10:37:38]OFDSenderStorePacket 73206 [10:37:38]StoreOFDPacket docnum=73206 [10:37:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 10 1C 07 01 86 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 2D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F8 30 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 30 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 20 00 00 00 00 07 04 06 00 B0 30 01 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 71 AF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F6 1D 01 00 35 04 06 00 6A 66 C4 A0 DF A7 A7 B2 9E 7F 0A 05 59 2A [10:37:38]CheckFolder [10:37:38]dirname=/storage/ofd_packets [10:37:38]CheckFolder done [10:37:38]ProducePacketName [10:37:38]name=ofd_packets/00073206 [10:37:38]NVStorageSaveData ofd_packets/00073206 [10:37:38]File name is /storage/ofd_packets/00073206 [10:37:38]Write 301 bytes [10:37:38]NVStorageSaveData done [10:37:38]OFDSenderStorePacket done [10:37:38]KKMCreateOFDPacket done [10:37:38]NVStorageSaveData kkm_last_timestamp [10:37:38]File name is /storage/kkm_last_timestamp [10:37:38]Write 4 bytes [10:37:38]NVStorageSaveData done [10:37:38]ExternCall_PrintAddStr [10:37:38]wPrintStart [10:37:38]Write to MH i2c: 01 00 00 4A 01 4B [10:37:38]OFD Sender: Processing packet 73206 [packets to send 282, broken 281] [10:37:38]ProducePacketName [10:37:38]name=ofd_packets/00073206 [10:37:38]OFD Sender: To server: pG, [10:37:38]CommunicateWithHost lk.salyk.kg:30040 [10:37:38]ConnectInit lk.salyk.kg [10:37:38]Write i2c OK [10:37:38]MH_I2C_Read... [10:37:38]Read from MH i2c: 01 [10:37:38]MH_I2C_Read... [10:37:38]Read from MH i2c: 01 07 00 [10:37:38]MH_I2C_Read... [10:37:38]Read from MH i2c: 01 07 00 4A 01 00 00 00 00 00 FF 0F 60 [10:37:38]RasterBufferAndPrint [10:37:38]line Счет N : (1)952808 [10:37:38]line ИНН: 02508201610067 [10:37:38]line Контрольно-Кассовый Чек [10:37:38]line ПРОДАЖА [10:37:38]line ТРК (МРК, ГНК) : 42 [10:37:38]line Товар: 2710124130 [10:37:38]line Аи-92-К-5 [10:37:38]line 11.670 * 66.90 [10:37:38]line = 780.72 [10:37:38]line НДС 12% НСП 1% [10:37:38]line > о реализуемом товаре [10:37:38]line ОКРУГЛЕНИЕ: -0.72 [10:37:38]line ИТОГО: 780.00 [10:37:38]line Внесено: 800.00 [10:37:38]line СДАЧА: 20.00 [10:37:38]line НСП 1% : 6.91 [10:37:38]line НДС 12% : 82.91 [10:37:38]line Наличными: 780.00 [10:37:38]line Безнал.: 0.00 [10:37:38]line Место: АЗС № 113 "Партнер Нефть" [10:37:38]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [10:37:38]line СНО: Общий режим [10:37:38]line Чек 75 01.11.2024 10:37 [10:37:38]line Смена: 558 ФФД: 1.0 [10:37:38]line ЗНМ: 0300000087 [10:37:38]line РНМ: 0000000000091644 [10:37:38]line Версия ККМ: 001 [10:37:38]line ФМ: 0000000000874662 [10:37:38]line ФД: 73206 [10:37:38]line ФПД: 116989618085799 [10:37:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T103737&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73206&fm=116989618085799&tin=02508201610067®Number=0000000000091644&sum=78000 [10:37:38]written 0, free lines is 4095 [10:37:39]Write to MH i2c: 01 00 00 75 01 76 [10:37:39]Write i2c OK [10:37:39]MH_I2C_Read... [10:37:39]Read from MH i2c: 01 [10:37:39]MH_I2C_Read... [10:37:39]Read from MH i2c: 01 07 00 [10:37:39]MH_I2C_Read... [10:37:39]Read from MH i2c: 01 07 00 75 01 00 00 00 00 00 DE 0C 67 [10:37:39]RasterBufferAndPrint [10:37:39]line [10:37:39]line [10:37:39]line [10:37:39]line [10:37:39]line [10:37:39]written 0, free lines is 3316 [10:37:39]MH_Cut [10:37:39]Write to MH i2c: D1 01 00 7C 01 01 4F [10:37:39]Write i2c OK [10:37:39]MH_I2C_Read... [10:37:39]Read from MH i2c: D1 [10:37:39]MH_I2C_Read... [10:37:39]Read from MH i2c: D1 01 00 [10:37:39]MH_I2C_Read... [10:37:39]Read from MH i2c: D1 01 00 7C 01 00 4E [10:37:39]Write to MH i2c: 01 00 00 7D 01 7E [10:37:39]Write i2c OK [10:37:39]MH_I2C_Read... [10:37:40]*** Cut start [10:37:40]*** Partial cut [10:37:40]*** CUTSNS_PIN = 1 [10:37:40]*** CUTSNS_PIN = 0 [10:37:40]*** Brake cut motor [10:37:40]Read from MH i2c: 01 [10:37:40]MH_I2C_Read... [10:37:40]*** Stop cut motor [10:37:40]*** Cut end [10:37:40]Read from MH i2c: 01 07 00 [10:37:40]MH_I2C_Read... [10:37:40]Read from MH i2c: 01 07 00 7D 01 00 00 00 00 00 FF 0F 93 [10:37:40]process_action close_receipt done [10:37:40]requested_data is exist [10:37:40]produce_requested_data [10:37:40]requested_item fm.sn is exist - process it [10:37:40]wFMCommunicate request_size=4 [10:37:40]MH_SAM_APDU [10:37:40]CAPDU: 80 11 00 00 [10:37:40]Write to MH i2c: E2 08 00 7E 01 80 11 00 00 00 00 00 00 F9 [10:37:40]Write i2c OK [10:37:40]MH_I2C_Read... [10:37:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:40]Read from MH i2c: E2 [10:37:40]MH_I2C_Read... [10:37:40]Read from MH i2c: E2 17 00 [10:37:40]MH_I2C_Read... [10:37:40]Read from MH i2c: E2 17 00 7E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 4D [10:37:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:37:40]wFMCommunicate OK [10:37:40]requested_item fd.num is exist - process it [10:37:40]SAM_PROTO_GetFieldsCounters [10:37:40]wFMCommunicate request_size=4 [10:37:40]MH_SAM_APDU [10:37:40]CAPDU: 80 13 00 00 [10:37:40]Write to MH i2c: E2 08 00 7F 01 80 13 00 00 00 00 00 00 FC [10:37:40]Write i2c OK [10:37:40]MH_I2C_Read... [10:37:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:40]Read from MH i2c: E2 [10:37:40]MH_I2C_Read... [10:37:40]Read from MH i2c: E2 62 00 [10:37:40]MH_I2C_Read... [10:37:40]Read from MH i2c: E2 62 00 7F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F6 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [10:37:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F6 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:37:41]wFMCommunicate OK [10:37:41]SAM_PROTO_GetFieldsCounters done [10:37:41]requested_item shift.num is exist - process it [10:37:41]requested_item shift.opened is exist - process it [10:37:41]req_shift_opened [10:37:41]FM_GetShiftState [10:37:41]SAM_PROTO_GetShiftState [10:37:41]wFMCommunicate request_size=4 [10:37:41]MH_SAM_APDU [10:37:41]CAPDU: 80 13 01 00 [10:37:41]Write to MH i2c: E2 08 00 80 01 80 13 01 00 00 00 00 00 FE [10:37:41]Write i2c OK [10:37:41]MH_I2C_Read... [10:37:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:41]Read from MH i2c: E2 [10:37:41]MH_I2C_Read... [10:37:41]Read from MH i2c: E2 0E 00 [10:37:41]MH_I2C_Read... [10:37:41]Read from MH i2c: E2 0E 00 80 01 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 45 [10:37:41]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [10:37:41]wFMCommunicate OK [10:37:41]SAM_PROTO_GetShiftState done [10:37:41]FM_GetShiftState done [10:37:41]req_shift_opened done [10:37:41]requested_item shift.open_date is exist - process it [10:37:41]req_shift_open_date [10:37:41]req_shift_open_date done [10:37:41]produce_requested_data done [10:37:41]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73206,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [10:37:41]process_action_free close_receipt [10:37:41]json_value_free [10:37:41]json_value_free done [10:37:41]process_json_proto returns [10:37:41]Send response to host [10:37:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73206,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [10:37:41]free response buf [10:37:41]execute_script done [10:37:41]execute_script returns [10:37:41]free content buf [10:37:41]Sock 9.Close socket [10:37:41]Sock 9.Thread stoped [10:37:43]Connected sock=11 [10:37:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 10 1C 07 01 86 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 2D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F8 30 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 30 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 20 00 00 00 00 07 04 06 00 B0 30 01 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 71 AF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F6 1D 01 00 35 04 06 00 6A 66 C4 A0 DF A7 A7 B2 9E 7F 0A 05 59 2A [10:37:45]recv_with_timeout no data received [10:37:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 1D 3F 47 00 63 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F6 1D 01 00 F4 03 04 00 2D 5A 24 67 B6 04 01 00 00 99 80 E1 19 6E 9D 94 BC [10:37:47]CommunicateWithHost err = 0 [10:37:47]CheckOFDResponse [10:37:47]1017 (14) - 77093643461234 [10:37:47]1041 (16) - 0000000000874662 [10:37:47]1040 (4) - 73206 [10:37:47]1012 (4) - 01.11.2024 04:33 [10:37:47]1206 (1) - 0 [10:37:47]OFD Sender: Remove packet 73206 [10:37:47]ProducePacketName [10:37:47]name=ofd_packets/00073206 [10:37:47]NVStorageDeleteData [10:37:48]OFD Sender: No OFD packet to send [10:37:53]OFD Sender: No OFD packet to send [10:37:58]OFD Sender: No OFD packet to send [10:38:03]OFD Sender: No OFD packet to send [10:38:08]OFD Sender: No OFD packet to send [10:38:11]recv_with_timeout no data received [10:38:13]OFD Sender: No OFD packet to send [10:38:18]OFD Sender: No OFD packet to send [10:38:23]OFD Sender: No OFD packet to send [10:38:28]OFD Sender: No OFD packet to send [10:38:33]OFD Sender: No OFD packet to send [10:38:38]OFD Sender: No OFD packet to send [10:38:40]recv_with_timeout no data received [10:38:43]OFD Sender: No OFD packet to send [10:38:48]OFD Sender: No OFD packet to send [10:38:51]recv_with_timeout no data received [10:38:53]OFD Sender: No OFD packet to send [10:38:58]OFD Sender: No OFD packet to send [10:39:03]recv_with_timeout no data received [10:39:03]OFD Sender: No OFD packet to send [10:39:08]OFD Sender: No OFD packet to send [10:39:13]OFD Sender: No OFD packet to send [10:39:17]recv_with_timeout no data received [10:39:18]OFD Sender: No OFD packet to send [10:39:23]OFD Sender: No OFD packet to send [10:39:28]OFD Sender: No OFD packet to send [10:39:29]recv_with_timeout no data received [10:39:33]OFD Sender: No OFD packet to send [10:39:38]OFD Sender: No OFD packet to send [10:39:43]OFD Sender: No OFD packet to send [10:39:48]OFD Sender: No OFD packet to send [10:39:53]OFD Sender: No OFD packet to send [10:39:55]accept exits with 10 [10:39:55]New connection [10:39:55]New thread 3067329892 created [10:39:55]Thread 3067473252 joined [10:39:55]Waiting for new connection... [10:39:55] Sock 10.Parse request [10:39:55]Sock 10.Check first char [10:39:55]Sock 10.First char is OK [10:39:55]request: POST /json_proto HTTP/1.0 [10:39:55]Method: POST [10:39:55]URL: /json_proto [10:39:55]Method is POST - this is cgi request [10:39:55]url: /json_proto [10:39:55]query_string will be loaded in cgi processing [10:39:55]execute_cgi json_proto POST (null) [10:39:55]execute_cgi path=json_proto method=POST [10:39:55]POST find Content-Length [10:39:55]Host: 172.17.43.195:8080 [10:39:55]Content-Length: 988 [10:39:55]Content-Type: application/json [10:39:55] [10:39:55]POST finish read [10:39:55]Found Content-Length = 988 [10:39:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 75.20, "quantity" : 131.650, "sum" : 9900.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 113\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 131.65 \u0441\u043E\u043C", "deposit" : 9900.00, "total" : 9900.00, "payments": [ { "type": 0, "sum" : 9900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:55]execute_script... [10:39: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)952807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 75.20, "quantity" : 131.650, "sum" : 9900.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 113\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 131.65 \u0441\u043E\u043C", "deposit" : 9900.00, "total" : 9900.00, "payments": [ { "type": 0, "sum" : 9900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:55]POST & json_proto [10:39:55]process_json_proto [10:39:55]json parsed OK: [10:39:55]protocol is kg_v1.0 [10:39:55]action value=close_receipt [10:39:55]process_action close_receipt [10:39:55]cmd_close_receipt [10:39:55]MH_GetDate [10:39:55]Write to MH i2c: F0 00 00 81 01 71 [10:39:55]Write i2c OK [10:39:55]MH_I2C_Read... [10:39:55]Read from MH i2c: F0 [10:39:55]MH_I2C_Read... [10:39:55]Read from MH i2c: F0 09 00 [10:39:55]MH_I2C_Read... [10:39:55]Read from MH i2c: F0 09 00 81 01 00 FC AF 24 67 74 2C AD 66 63 [10:39:55]GetLastDocTimeStamp 1730457457 [10:39:55]current date 1730457596 [10:39:55]FM_GetShiftState [10:39:55]SAM_PROTO_GetShiftState [10:39:55]wFMCommunicate request_size=4 [10:39:55]MH_SAM_APDU [10:39:55]CAPDU: 80 13 01 00 [10:39:55]Write to MH i2c: E2 08 00 82 01 80 13 01 00 00 00 00 00 00 [10:39:55]Write i2c OK [10:39:55]MH_I2C_Read... [10:39:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:55]Read from MH i2c: E2 [10:39:55]MH_I2C_Read... [10:39:55]Read from MH i2c: E2 0E 00 [10:39:55]MH_I2C_Read... [10:39:55]Read from MH i2c: E2 0E 00 82 01 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 47 [10:39:55]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [10:39:55]wFMCommunicate OK [10:39:55]SAM_PROTO_GetShiftState done [10:39:55]FM_GetShiftState done [10:39:55]opened in 1730419605 [10:39:55]opened+sec_in_day 1730506005 [10:39:55]quantity*price = 990008 [10:39:55]sum+1 = 990009 [10:39:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 9900.00 Внесено: 9900.00 СДАЧА: 0.00 НСП 1% : 87.61 НДС 12% : 1051.34 Наличными: 9900.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 76 01.11.2024 10:39 Смена: 558 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Дисконтная программа ДТ номер 113 сэкономлено 131.65 сом ФМ: 0000000000874662 ФД: 73207 ФПД: 254748581024141 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T103956&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73207&fm=254748581024141&tin=02508201610067®Number=0000000000091644&sum=990000 [10:39:56]StoreToDocumentArchive [10:39:56]shift 558 fd 73207 [10:39:56]save to /storage/0558/doc_00073207 [10:39:56]save last doc name /storage/0558/doc_00073207 to /storage/kkm_last_doc_name [10:39:56]save OK [10:39:56]Clear old archive folders... [10:39:56]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:39:56]tlvbuf is 0090E450 [10:39:56]SAM_PROTO_ClearQueue [10:39:56]wFMCommunicate request_size=4 [10:39:56]MH_SAM_APDU [10:39:56]CAPDU: 80 09 00 00 [10:39:56]Write to MH i2c: E2 08 00 8F 01 80 09 00 00 00 00 00 00 02 [10:39:56]Write i2c OK [10:39:56]MH_I2C_Read... [10:39:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:56]Read from MH i2c: E2 [10:39:56]MH_I2C_Read... [10:39:56]Read from MH i2c: E2 03 00 [10:39:56]MH_I2C_Read... [10:39:56]Read from MH i2c: E2 03 00 8F 01 00 90 00 04 [10:39:56]RAPDU: 90 00 [10:39:56]wFMCommunicate OK [10:39:56]SAM_PROTO_ClearQueue done [10:39:56]KKMCreateOFDPacket [10:39:56]OFDProtocolAddRootSTLVToBuf [10:39:56]FM_MakeSignedData [10:39:56]FM_MakeSignedData [10:39:56]SAM_PROTO_SignData [10:39:56]wFMCommunicate request_size=4 [10:39:56]MH_SAM_APDU [10:39:56]CAPDU: 80 0D 01 02 [10:39:56]Write to MH i2c: E2 08 00 90 01 80 0D 01 02 00 00 00 00 0A [10:39:56]Write i2c OK [10:39:56]MH_I2C_Read... [10:39:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:56]Read from MH i2c: E2 [10:39:56]MH_I2C_Read... [10:39:56]Read from MH i2c: E2 03 00 [10:39:56]MH_I2C_Read... [10:39:56]Read from MH i2c: E2 03 00 90 01 00 90 00 05 [10:39:56]RAPDU: 90 00 [10:39:56]wFMCommunicate OK [10:39:56]wFMCommunicate request_size=255 [10:39:56]MH_SAM_APDU [10:39:56]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 42 02 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 38 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 9A 01 00 00 00 07 04 06 00 30 1B 0F 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 FC AF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F7 1D 01 00 35 04 06 00 [10:39:56]Write to MH i2c: E2 02 01 91 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 42 02 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 38 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 9A 01 00 00 00 07 04 06 00 30 1B 0F 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 FC AF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F7 1D 01 00 35 04 06 00 00 00 93 [10:39:56]Write i2c OK [10:39:56]MH_I2C_Read... [10:39:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:57]Read from MH i2c: E2 [10:39:57]MH_I2C_Read... [10:39:57]Read from MH i2c: E2 03 00 [10:39:57]MH_I2C_Read... [10:39:57]Read from MH i2c: E2 03 00 91 01 00 90 00 06 [10:39:57]RAPDU: 90 00 [10:39:57]wFMCommunicate OK [10:39:57]wFMCommunicate request_size=11 [10:39:57]MH_SAM_APDU [10:39:57]CAPDU: 80 0D 02 02 06 E7 B1 46 AD D1 8D [10:39:57]Write to MH i2c: E2 0E 00 92 01 80 0D 02 02 06 00 E7 B1 46 AD D1 8D 00 00 02 [10:39:57]Write i2c OK [10:39:57]MH_I2C_Read... [10:39:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:57]Read from MH i2c: E2 [10:39:57]MH_I2C_Read... [10:39:57]Read from MH i2c: E2 03 00 [10:39:57]MH_I2C_Read... [10:39:57]Read from MH i2c: E2 03 00 92 01 00 90 00 07 [10:39:57]RAPDU: 90 00 [10:39:57]wFMCommunicate OK [10:39:57]wFMCommunicate request_size=4 [10:39:57]MH_SAM_APDU [10:39:57]CAPDU: 80 0D 03 02 [10:39:57]Write to MH i2c: E2 08 00 93 01 80 0D 03 02 00 00 00 00 0F [10:39:57]Write i2c OK [10:39:57]MH_I2C_Read... [10:39:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:39:57]Read from MH i2c: E2 [10:39:57]MH_I2C_Read... [10:39:57]Read from MH i2c: E2 0B 00 [10:39:57]MH_I2C_Read... [10:39:57]Read from MH i2c: E2 0B 00 93 01 00 B5 BA 51 43 65 83 86 BC 90 00 3D [10:39:57]RAPDU: B5 BA 51 43 65 83 86 BC 90 00 [10:39:57]wFMCommunicate OK [10:39:57]SAM_PROTO_SignData done [10:39:57]FM_MakeSignedData done [10:39:57]CreateOFDProtocolMessage [10:39:57]wFMCommunicate request_size=4 [10:39:57]MH_SAM_APDU [10:39:57]CAPDU: 80 11 00 00 [10:39:57]Write to MH i2c: E2 08 00 94 01 80 11 00 00 00 00 00 00 0F [10:39:57]Write i2c OK [10:39:57]MH_I2C_Read... [10:39:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:57]Read from MH i2c: E2 [10:39:57]MH_I2C_Read... [10:39:57]Read from MH i2c: E2 17 00 [10:39:57]MH_I2C_Read... [10:39:57]Read from MH i2c: E2 17 00 94 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 63 [10:39:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:39:57]wFMCommunicate OK [10:39:57]CreateOFDProtocolMessage done [10:39:57]OFDSenderStorePacket 73207 [10:39:57]StoreOFDPacket docnum=73207 [10:39:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 1B DC 08 01 12 C4 5A 03 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 42 02 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 38 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 9A 01 00 00 00 07 04 06 00 30 1B 0F 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 FC AF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F7 1D 01 00 35 04 06 00 E7 B1 46 AD D1 8D B5 BA 51 43 65 83 86 BC [10:39:57]CheckFolder [10:39:57]dirname=/storage/ofd_packets [10:39:57]CheckFolder done [10:39:57]ProducePacketName [10:39:57]name=ofd_packets/00073207 [10:39:57]NVStorageSaveData ofd_packets/00073207 [10:39:57]File name is /storage/ofd_packets/00073207 [10:39:57]Write 302 bytes [10:39:57]NVStorageSaveData done [10:39:57]OFDSenderStorePacket done [10:39:57]KKMCreateOFDPacket done [10:39:57]NVStorageSaveData kkm_last_timestamp [10:39:57]File name is /storage/kkm_last_timestamp [10:39:57]Write 4 bytes [10:39:57]NVStorageSaveData done [10:39:57]ExternCall_PrintAddStr [10:39:57]wPrintStart [10:39:57]Write to MH i2c: 01 00 00 95 01 96 [10:39:57]Write i2c OK [10:39:57]MH_I2C_Read... [10:39:57]Read from MH i2c: 01 [10:39:57]MH_I2C_Read... [10:39:57]Read from MH i2c: 01 07 00 [10:39:57]MH_I2C_Read... [10:39:57]Read from MH i2c: 01 07 00 95 01 00 00 00 00 00 FF 0F AB [10:39:57]RasterBufferAndPrint [10:39:57]line Счет N : (1)952807 [10:39:57]line ИНН: 02508201610067 [10:39:57]line Контрольно-Кассовый Чек [10:39:57]line ПРОДАЖА [10:39:57]line ТРК (МРК, ГНК) : 33 [10:39:57]line Товар: 2710194210 [10:39:57]line ДТ(л)-К-5 [10:39:57]line 131.650 * 75.20 [10:39:57]line = 9900.08 [10:39:57]line НДС 12% НСП 1% [10:39:57]line > о реализуемом товаре [10:39:57]line ОКРУГЛЕНИЕ: -0.08 [10:39:57]line ИТОГО: 9900.00 [10:39:57]line Внесено: 9900.00 [10:39:57]line СДАЧА: 0.00 [10:39:57]line НСП 1% : 87.61 [10:39:57]line НДС 12% : 1051.34 [10:39:57]line Наличными: 9900.00 [10:39:57]line Безнал.: 0.00 [10:39:57]line Место: АЗС № 113 "Партнер Нефть" [10:39:57]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [10:39:57]line СНО: Общий режим [10:39:57]line Чек 76 01.11.2024 10:39 [10:39:57]line Смена: 558 ФФД: 1.0 [10:39:57]line ЗНМ: 0300000087 [10:39:57]line РНМ: 0000000000091644 [10:39:57]line Версия ККМ: 001 [10:39:57]line [10:39:57]line Дисконтная программа [10:39:57]line ДТ [10:39:57]line номер 113 [10:39:57]line сэкономлено 131.65 сом [10:39:57]line ФМ: 0000000000874662 [10:39:57]line ФД: 73207 [10:39:57]line ФПД: 254748581024141 [10:39:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T103956&type=1&operation_type=1&fn_number=0000000000874662&fd_number=73207&fm=254748581024141&tin=02508201610067®Number=0000000000091644&sum=990000 [10:39:57]OFD Sender: Processing packet 73207 [packets to send 282, broken 281] [10:39:57]ProducePacketName [10:39:57]name=ofd_packets/00073207 [10:39:57]OFD Sender: To server: pG, [10:39:57]CommunicateWithHost lk.salyk.kg:30040 [10:39:57]ConnectInit lk.salyk.kg [10:39:57]written 0, free lines is 4095 [10:39:58]Write to MH i2c: 01 00 00 C5 01 C6 [10:39:58]Write i2c OK [10:39:58]MH_I2C_Read... [10:39:58]Read from MH i2c: 01 [10:39:58]MH_I2C_Read... [10:39:58]Read from MH i2c: 01 07 00 [10:39:58]MH_I2C_Read... [10:39:58]Read from MH i2c: 01 07 00 C5 01 00 00 00 00 00 7B 0C 54 [10:39:58]RasterBufferAndPrint [10:39:58]line [10:39:58]line [10:39:58]line [10:39:58]line [10:39:58]line [10:39:58]written 0, free lines is 3200 [10:39:58]MH_Cut [10:39:58]Write to MH i2c: D1 01 00 CC 01 01 9F [10:39:58]Write i2c OK [10:39:58]MH_I2C_Read... [10:39:58]Read from MH i2c: D1 [10:39:58]MH_I2C_Read... [10:39:58]Read from MH i2c: D1 01 00 [10:39:58]MH_I2C_Read... [10:39:58]Read from MH i2c: D1 01 00 CC 01 00 9E [10:39:58]Write to MH i2c: 01 00 00 CD 01 CE [10:39:58]Write i2c OK [10:39:58]MH_I2C_Read... [10:39:59]*** Cut start [10:39:59]*** Partial cut [10:39:59]*** CUTSNS_PIN = 1 [10:39:59]*** CUTSNS_PIN = 0 [10:39:59]*** Brake cut motor [10:39:59]Read from MH i2c: 01 [10:39:59]MH_I2C_Read... [10:39:59]*** Stop cut motor [10:39:59]*** Cut end [10:39:59]Read from MH i2c: 01 07 00 [10:39:59]MH_I2C_Read... [10:39:59]Read from MH i2c: 01 07 00 CD 01 00 00 00 00 00 FF 0F E3 [10:39:59]process_action close_receipt done [10:39:59]requested_data is exist [10:39:59]produce_requested_data [10:39:59]requested_item fm.sn is exist - process it [10:39:59]wFMCommunicate request_size=4 [10:39:59]MH_SAM_APDU [10:39:59]CAPDU: 80 11 00 00 [10:39:59]Write to MH i2c: E2 08 00 CE 01 80 11 00 00 00 00 00 00 49 [10:39:59]Write i2c OK [10:39:59]MH_I2C_Read... [10:39:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:59]Read from MH i2c: E2 [10:39:59]MH_I2C_Read... [10:39:59]Read from MH i2c: E2 17 00 [10:39:59]MH_I2C_Read... [10:39:59]Read from MH i2c: E2 17 00 CE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 9D [10:39:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:39:59]wFMCommunicate OK [10:39:59]requested_item fd.num is exist - process it [10:39:59]SAM_PROTO_GetFieldsCounters [10:39:59]wFMCommunicate request_size=4 [10:39:59]MH_SAM_APDU [10:39:59]CAPDU: 80 13 00 00 [10:39:59]Write to MH i2c: E2 08 00 CF 01 80 13 00 00 00 00 00 00 4C [10:39:59]Write i2c OK [10:39:59]MH_I2C_Read... [10:39:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:59]Read from MH i2c: E2 [10:39:59]MH_I2C_Read... [10:39:59]Read from MH i2c: E2 62 00 [10:39:59]MH_I2C_Read... [10:39:59]Read from MH i2c: E2 62 00 CF 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F7 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [10:39:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F7 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:39:59]wFMCommunicate OK [10:39:59]SAM_PROTO_GetFieldsCounters done [10:39:59]requested_item shift.num is exist - process it [10:39:59]requested_item shift.opened is exist - process it [10:39:59]req_shift_opened [10:39:59]FM_GetShiftState [10:39:59]SAM_PROTO_GetShiftState [10:39:59]wFMCommunicate request_size=4 [10:39:59]MH_SAM_APDU [10:39:59]CAPDU: 80 13 01 00 [10:39:59]Write to MH i2c: E2 08 00 D0 01 80 13 01 00 00 00 00 00 4E [10:39:59]Write i2c OK [10:39:59]MH_I2C_Read... [10:39:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:59]Read from MH i2c: E2 [10:39:59]MH_I2C_Read... [10:39:59]Read from MH i2c: E2 0E 00 [10:39:59]MH_I2C_Read... [10:39:59]Read from MH i2c: E2 0E 00 D0 01 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 95 [10:39:59]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [10:39:59]wFMCommunicate OK [10:39:59]SAM_PROTO_GetShiftState done [10:39:59]FM_GetShiftState done [10:39:59]req_shift_opened done [10:39:59]requested_item shift.open_date is exist - process it [10:39:59]req_shift_open_date [10:39:59]req_shift_open_date done [10:39:59]produce_requested_data done [10:39:59]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":73207,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [10:39:59]process_action_free close_receipt [10:39:59]json_value_free [10:39:59]json_value_free done [10:39:59]process_json_proto returns [10:39:59]Send response to host [10:39:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":73207,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [10:39:59]free response buf [10:39:59]execute_script done [10:39:59]execute_script returns [10:39:59]free content buf [10:39:59]Sock 10.Close socket [10:39:59]Sock 10.Thread stoped [10:40:00]Connected sock=11 [10:40:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 1B DC 08 01 12 C4 5A 03 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 42 02 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 38 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 9A 01 00 00 00 07 04 06 00 30 1B 0F 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 FC AF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F7 1D 01 00 35 04 06 00 E7 B1 46 AD D1 8D B5 BA 51 43 65 83 86 BC [10:40:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 72 7B 47 00 17 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F7 1D 01 00 F4 03 04 00 B1 5A 24 67 B6 04 01 00 00 A6 2F 55 6A BB 36 28 6A [10:40:00]CommunicateWithHost err = 0 [10:40:00]CheckOFDResponse [10:40:00]1017 (14) - 77093643461234 [10:40:00]1041 (16) - 0000000000874662 [10:40:00]1040 (4) - 73207 [10:40:00]1012 (4) - 01.11.2024 04:36 [10:40:00]1206 (1) - 0 [10:40:00]OFD Sender: Remove packet 73207 [10:40:00]ProducePacketName [10:40:00]name=ofd_packets/00073207 [10:40:00]NVStorageDeleteData [10:40:00]OFD Sender: No OFD packet to send [10:40:05]OFD Sender: No OFD packet to send [10:40:10]recv_with_timeout no data received [10:40:10]OFD Sender: No OFD packet to send [10:40:15]OFD Sender: No OFD packet to send [10:40:20]OFD Sender: No OFD packet to send [10:40:25]OFD Sender: No OFD packet to send [10:40:31]OFD Sender: No OFD packet to send [10:40:36]OFD Sender: No OFD packet to send [10:40:40]recv_with_timeout no data received [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:53]recv_with_timeout no data received [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:45]accept exits with 8 [10:41:45]New connection [10:41:45]New thread 3067473252 created [10:41:45]Thread 3067329892 joined [10:41:45]Waiting for new connection... [10:41:45] Sock 8.Parse request [10:41:45]Sock 8.Check first char [10:41:45]Sock 8.First char is OK [10:41:45]request: POST /json_proto HTTP/1.0 [10:41:45]Method: POST [10:41:45]URL: /json_proto [10:41:45]Method is POST - this is cgi request [10:41:45]url: /json_proto [10:41:45]query_string will be loaded in cgi processing [10:41:45]execute_cgi json_proto POST (null) [10:41:45]execute_cgi path=json_proto method=POST [10:41:45]POST find Content-Length [10:41:45]Host: 172.17.43.195:8080 [10:41:45]Content-Length: 215 [10:41:45]Content-Type: application/json [10:41:45] [10:41:45]POST finish read [10:41:45]Found Content-Length = 215 [10:41:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:45]execute_script... [10:41:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:45]POST & json_proto [10:41:45]process_json_proto [10:41:45]json parsed OK: [10:41:45]protocol is kg_v1.0 [10:41:45]action value=get_value [10:41:45]process_action get_value [10:41:45]cmd_get_value [10:41:45]process_action get_value done [10:41:45]requested_data is exist [10:41:45]produce_requested_data [10:41:45]requested_item kkm.sn is exist - process it [10:41:45]requested_item kkm.ver is exist - process it [10:41:45]requested_item fm.sn is exist - process it [10:41:45]wFMCommunicate request_size=4 [10:41:45]MH_SAM_APDU [10:41:45]CAPDU: 80 11 00 00 [10:41:45]Write to MH i2c: E2 08 00 D1 01 80 11 00 00 00 00 00 00 4C [10:41:45]Write i2c OK [10:41:45]MH_I2C_Read... [10:41:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:45]Read from MH i2c: E2 [10:41:45]MH_I2C_Read... [10:41:45]Read from MH i2c: E2 17 00 [10:41:45]MH_I2C_Read... [10:41:45]Read from MH i2c: E2 17 00 D1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A0 [10:41:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:41:45]wFMCommunicate OK [10:41:45]requested_item fd.num is exist - process it [10:41:45]SAM_PROTO_GetFieldsCounters [10:41:45]wFMCommunicate request_size=4 [10:41:45]MH_SAM_APDU [10:41:45]CAPDU: 80 13 00 00 [10:41:45]Write to MH i2c: E2 08 00 D2 01 80 13 00 00 00 00 00 00 4F [10:41:45]Write i2c OK [10:41:45]MH_I2C_Read... [10:41:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:45]Read from MH i2c: E2 [10:41:45]MH_I2C_Read... [10:41:45]Read from MH i2c: E2 62 00 [10:41:45]MH_I2C_Read... [10:41:45]Read from MH i2c: E2 62 00 D2 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F7 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [10:41:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F7 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:41:45]wFMCommunicate OK [10:41:45]SAM_PROTO_GetFieldsCounters done [10:41:45]requested_item shift.num is exist - process it [10:41:45]requested_item shift.opened is exist - process it [10:41:45]req_shift_opened [10:41:45]FM_GetShiftState [10:41:45]SAM_PROTO_GetShiftState [10:41:45]wFMCommunicate request_size=4 [10:41:45]MH_SAM_APDU [10:41:45]CAPDU: 80 13 01 00 [10:41:45]Write to MH i2c: E2 08 00 D3 01 80 13 01 00 00 00 00 00 51 [10:41:45]Write i2c OK [10:41:45]MH_I2C_Read... [10:41:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:45]Read from MH i2c: E2 [10:41:45]MH_I2C_Read... [10:41:45]Read from MH i2c: E2 0E 00 [10:41:45]MH_I2C_Read... [10:41:45]Read from MH i2c: E2 0E 00 D3 01 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 98 [10:41:45]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [10:41:45]wFMCommunicate OK [10:41:45]SAM_PROTO_GetShiftState done [10:41:45]FM_GetShiftState done [10:41:45]req_shift_opened done [10:41:45]requested_item shift.open_date is exist - process it [10:41:45]req_shift_open_date [10:41:45]req_shift_open_date done [10:41:45]produce_requested_data done [10:41:45]produce_requested_data return {"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":73207,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [10:41:45]process_action_free get_value [10:41:45]json_value_free [10:41:45]json_value_free done [10:41:45]process_json_proto returns [10:41:45]Send response to host [10:41:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":73207,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [10:41:45]free response buf [10:41:45]execute_script done [10:41:45]execute_script returns [10:41:45]free content buf [10:41:45]Sock 8.Close socket [10:41:45]Sock 8.Thread stoped [10:41:45]accept exits with 10 [10:41:45]New connection [10:41:45]New thread 3067329892 created [10:41:45]Thread 3067473252 joined [10:41:45]Waiting for new connection... [10:41:45] Sock 10.Parse request [10:41:45]Sock 10.Check first char [10:41:45]Sock 10.First char is OK [10:41:45]request: POST /json_proto HTTP/1.0 [10:41:45]Method: POST [10:41:45]URL: /json_proto [10:41:45]Method is POST - this is cgi request [10:41:45]url: /json_proto [10:41:45]query_string will be loaded in cgi processing [10:41:45]execute_cgi json_proto POST (null) [10:41:45]execute_cgi path=json_proto method=POST [10:41:45]POST find Content-Length [10:41:45]Host: 172.17.43.195:8080 [10:41:45]Content-Length: 331 [10:41:45]Content-Type: application/json [10:41:45] [10:41:45]POST finish read [10:41:45]Found Content-Length = 331 [10:41:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:41:45]execute_script... [10:41:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:41:46]POST & json_proto [10:41:46]process_json_proto [10:41:46]json parsed OK: [10:41:46]protocol is kg_v1.0 [10:41:46]action value=get_value [10:41:46]process_action get_value [10:41:46]cmd_get_value [10:41:46]process_action get_value done [10:41:46]requested_data is exist [10:41:46]produce_requested_data [10:41:46]requested_item fm.sale.total is exist - process it [10:41:46]SAM_PROTO_GetFMData [10:41:46]wFMCommunicate request_size=4 [10:41:46]MH_SAM_APDU [10:41:46]CAPDU: 80 13 03 00 [10:41:46]Write to MH i2c: E2 08 00 D4 01 80 13 03 00 00 00 00 00 54 [10:41:46]Write i2c OK [10:41:46]MH_I2C_Read... [10:41:46]OFD Sender: No OFD packet to send [10:41:46]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:41:46]Read from MH i2c: E2 [10:41:46]MH_I2C_Read... [10:41:46]Read from MH i2c: E2 FD 00 [10:41:46]MH_I2C_Read... [10:41:46]Read from MH i2c: E2 FD 00 D4 01 00 C4 04 85 04 C0 04 6E 04 04 00 9B 19 01 00 69 04 A3 00 6F 04 04 00 AB 18 01 00 B1 04 05 00 6D A7 85 A5 01 70 04 05 00 14 26 BB 59 01 72 04 04 00 59 81 CA 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 9B 40 C6 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 17 1E BB 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 CC [10:41:46]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 9B 19 01 00 69 04 A3 00 6F 04 04 00 AB 18 01 00 B1 04 05 00 6D A7 85 A5 01 70 04 05 00 14 26 BB 59 01 72 04 04 00 59 81 CA 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 9B 40 C6 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 17 1E BB 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 [10:41:46]wFMCommunicate OK [10:41:46]wFMCommunicate request_size=4 [10:41:46]MH_SAM_APDU [10:41:46]CAPDU: 80 17 00 00 [10:41:46]Write to MH i2c: E2 08 00 D5 01 80 17 00 00 00 00 00 00 56 [10:41:46]Write i2c OK [10:41:46]MH_I2C_Read... [10:41:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:41:46]Read from MH i2c: E2 [10:41:46]MH_I2C_Read... [10:41:46]Read from MH i2c: E2 FD 00 [10:41:46]MH_I2C_Read... [10:41:46]Read from MH i2c: E2 FD 00 D5 01 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 D6 [10:41:46]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [10:41:46]wFMCommunicate OK [10:41:46]wFMCommunicate request_size=4 [10:41:46]MH_SAM_APDU [10:41:46]CAPDU: 80 17 00 00 [10:41:46]Write to MH i2c: E2 08 00 D6 01 80 17 00 00 00 00 00 00 57 [10:41:46]Write i2c OK [10:41:46]MH_I2C_Read... [10:41:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:41:47]Read from MH i2c: E2 [10:41:47]MH_I2C_Read... [10:41:47]Read from MH i2c: E2 FD 00 [10:41:47]MH_I2C_Read... [10:41:47]Read from MH i2c: E2 FD 00 D6 01 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 6C [10:41:47]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [10:41:47]wFMCommunicate OK [10:41:47]wFMCommunicate request_size=4 [10:41:47]MH_SAM_APDU [10:41:47]CAPDU: 80 17 00 00 [10:41:47]Write to MH i2c: E2 08 00 D7 01 80 17 00 00 00 00 00 00 58 [10:41:47]Write i2c OK [10:41:47]MH_I2C_Read... [10:41:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:41:47]Read from MH i2c: E2 [10:41:47]MH_I2C_Read... [10:41:47]Read from MH i2c: E2 FD 00 [10:41:47]MH_I2C_Read... [10:41:47]Read from MH i2c: E2 FD 00 D7 01 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 D0 [10:41:47]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [10:41:47]wFMCommunicate OK [10:41:47]wFMCommunicate request_size=4 [10:41:47]MH_SAM_APDU [10:41:47]CAPDU: 80 17 00 00 [10:41:47]Write to MH i2c: E2 08 00 D8 01 80 17 00 00 00 00 00 00 59 [10:41:47]Write i2c OK [10:41:47]MH_I2C_Read... [10:41:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [10:41:47]Read from MH i2c: E2 [10:41:47]MH_I2C_Read... [10:41:47]Read from MH i2c: E2 E1 00 [10:41:47]MH_I2C_Read... [10:41:47]Read from MH i2c: E2 E1 00 D8 01 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 47 [10:41:47]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:41:47]wFMCommunicate OK [10:41:47]SAM_PROTO_GetFMData done [10:41:47]requested_item fm.sale_refund.total is exist - process it [10:41:47]requested_item fm.buy.total is exist - process it [10:41:47]requested_item shift.sale.total is exist - process it [10:41:47]SAM_PROTO_GetShiftData [10:41:47]wFMCommunicate request_size=4 [10:41:47]MH_SAM_APDU [10:41:47]CAPDU: 80 13 02 00 [10:41:47]Write to MH i2c: E2 08 00 D9 01 80 13 02 00 00 00 00 00 58 [10:41:47]Write i2c OK [10:41:47]MH_I2C_Read... [10:41:47]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:41:47]Read from MH i2c: E2 [10:41:47]MH_I2C_Read... [10:41:47]Read from MH i2c: E2 FD 00 [10:41:47]MH_I2C_Read... [10:41:47]Read from MH i2c: E2 FD 00 D9 01 00 AF 04 AA 04 AB 04 6E 04 04 00 4C 00 00 00 69 04 9C 00 6F 04 04 00 4C 00 00 00 B1 04 03 00 45 2E 99 70 04 03 00 0C 90 86 72 04 03 00 39 9E 12 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 07 45 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 11 5B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 A0 [10:41:47]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 4C 00 00 00 69 04 9C 00 6F 04 04 00 4C 00 00 00 B1 04 03 00 45 2E 99 70 04 03 00 0C 90 86 72 04 03 00 39 9E 12 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 07 45 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 11 5B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [10:41:48]wFMCommunicate OK [10:41:48]wFMCommunicate request_size=4 [10:41:48]MH_SAM_APDU [10:41:48]CAPDU: 80 17 00 00 [10:41:48]Write to MH i2c: E2 08 00 DA 01 80 17 00 00 00 00 00 00 5B [10:41:48]Write i2c OK [10:41:48]MH_I2C_Read... [10:41:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:41:48]Read from MH i2c: E2 [10:41:48]MH_I2C_Read... [10:41:48]Read from MH i2c: E2 FD 00 [10:41:48]MH_I2C_Read... [10:41:48]Read from MH i2c: E2 FD 00 DA 01 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 74 [10:41:48]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [10:41:48]wFMCommunicate OK [10:41:48]wFMCommunicate request_size=4 [10:41:48]MH_SAM_APDU [10:41:48]CAPDU: 80 17 00 00 [10:41:48]Write to MH i2c: E2 08 00 DB 01 80 17 00 00 00 00 00 00 5C [10:41:48]Write i2c OK [10:41:48]MH_I2C_Read... [10:41:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:41:48]Read from MH i2c: E2 [10:41:48]MH_I2C_Read... [10:41:48]Read from MH i2c: E2 FD 00 [10:41:48]MH_I2C_Read... [10:41:48]Read from MH i2c: E2 FD 00 DB 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 10 [10:41:48]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [10:41:48]wFMCommunicate OK [10:41:48]wFMCommunicate request_size=4 [10:41:48]MH_SAM_APDU [10:41:48]CAPDU: 80 17 00 00 [10:41:48]Write to MH i2c: E2 08 00 DC 01 80 17 00 00 00 00 00 00 5D [10:41:48]Write i2c OK [10:41:48]MH_I2C_Read... [10:41:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:41:48]Read from MH i2c: E2 [10:41:48]MH_I2C_Read... [10:41:48]Read from MH i2c: E2 FD 00 [10:41:48]MH_I2C_Read... [10:41:48]Read from MH i2c: E2 FD 00 DC 01 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 DB [10:41:48]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [10:41:48]wFMCommunicate OK [10:41:48]wFMCommunicate request_size=4 [10:41:48]MH_SAM_APDU [10:41:48]CAPDU: 80 17 00 00 [10:41:48]Write to MH i2c: E2 08 00 DD 01 80 17 00 00 00 00 00 00 5E [10:41:48]Write i2c OK [10:41:48]MH_I2C_Read... [10:41:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [10:41:49]Read from MH i2c: E2 [10:41:49]MH_I2C_Read... [10:41:49]Read from MH i2c: E2 CC 00 [10:41:49]MH_I2C_Read... [10:41:49]Read from MH i2c: E2 CC 00 DD 01 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 3F [10:41:49]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:41:49]wFMCommunicate OK [10:41:49]SAM_PROTO_GetShiftData done [10:41:49]requested_item shift.sale.total_cash is exist - process it [10:41:49]requested_item shift.sale_refund.total is exist - process it [10:41:49]requested_item shift.sale_refund.total_cash is exist - process it [10:41:49]requested_item shift.buy.total is exist - process it [10:41:49]requested_item shift.buy.total_cash is exist - process it [10:41:49]produce_requested_data done [10:41:49]produce_requested_data return {"fm.sale.total":70719670.85,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":100388.53,"shift.sale.total_cash":88187.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [10:41:49]process_action_free get_value [10:41:49]json_value_free [10:41:49]json_value_free done [10:41:49]process_json_proto returns [10:41:49]Send response to host [10:41:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70719670.85,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":100388.53,"shift.sale.total_cash":88187.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [10:41:49]free response buf [10:41:49]execute_script done [10:41:49]execute_script returns [10:41:49]free content buf [10:41:49]Sock 10.Close socket [10:41:49]Sock 10.Thread stoped [10:41:49]accept exits with 8 [10:41:49]New connection [10:41:49]New thread 3067473252 created [10:41:49]Thread 3067329892 joined [10:41:49]Waiting for new connection... [10:41:49] Sock 8.Parse request [10:41:49]Sock 8.Check first char [10:41:49]Sock 8.First char is OK [10:41:49]request: POST /json_proto HTTP/1.0 [10:41:49]Method: POST [10:41:49]URL: /json_proto [10:41:49]Method is POST - this is cgi request [10:41:49]url: /json_proto [10:41:49]query_string will be loaded in cgi processing [10:41:49]execute_cgi json_proto POST (null) [10:41:49]execute_cgi path=json_proto method=POST [10:41:49]POST find Content-Length [10:41:49]Host: 172.17.43.195:8080 [10:41:49]Content-Length: 331 [10:41:49]Content-Type: application/json [10:41:49] [10:41:49]POST finish read [10:41:49]Found Content-Length = 331 [10:41: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" ] } } [10:41:49]execute_script... [10:41:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:41:49]POST & json_proto [10:41:49]process_json_proto [10:41:49]json parsed OK: [10:41:49]protocol is kg_v1.0 [10:41:49]action value=get_value [10:41:49]process_action get_value [10:41:49]cmd_get_value [10:41:49]process_action get_value done [10:41:49]requested_data is exist [10:41:49]produce_requested_data [10:41:49]requested_item fm.sale.total is exist - process it [10:41:49]SAM_PROTO_GetFMData [10:41:49]wFMCommunicate request_size=4 [10:41:49]MH_SAM_APDU [10:41:49]CAPDU: 80 13 03 00 [10:41:49]Write to MH i2c: E2 08 00 DE 01 80 13 03 00 00 00 00 00 5E [10:41:49]Write i2c OK [10:41:49]MH_I2C_Read... [10:41:49]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:41:49]Read from MH i2c: E2 [10:41:49]MH_I2C_Read... [10:41:49]Read from MH i2c: E2 FD 00 [10:41:49]MH_I2C_Read... [10:41:49]Read from MH i2c: E2 FD 00 DE 01 00 C4 04 85 04 C0 04 6E 04 04 00 9B 19 01 00 69 04 A3 00 6F 04 04 00 AB 18 01 00 B1 04 05 00 6D A7 85 A5 01 70 04 05 00 14 26 BB 59 01 72 04 04 00 59 81 CA 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 9B 40 C6 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 17 1E BB 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 D6 [10:41:49]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 9B 19 01 00 69 04 A3 00 6F 04 04 00 AB 18 01 00 B1 04 05 00 6D A7 85 A5 01 70 04 05 00 14 26 BB 59 01 72 04 04 00 59 81 CA 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 9B 40 C6 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 17 1E BB 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 [10:41:49]wFMCommunicate OK [10:41:49]wFMCommunicate request_size=4 [10:41:49]MH_SAM_APDU [10:41:49]CAPDU: 80 17 00 00 [10:41:49]Write to MH i2c: E2 08 00 DF 01 80 17 00 00 00 00 00 00 60 [10:41:49]Write i2c OK [10:41:49]MH_I2C_Read... [10:41:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:41:49]Read from MH i2c: E2 [10:41:49]MH_I2C_Read... [10:41:49]Read from MH i2c: E2 FD 00 [10:41:49]MH_I2C_Read... [10:41:49]Read from MH i2c: E2 FD 00 DF 01 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 E0 [10:41:50]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [10:41:50]wFMCommunicate OK [10:41:50]wFMCommunicate request_size=4 [10:41:50]MH_SAM_APDU [10:41:50]CAPDU: 80 17 00 00 [10:41:50]Write to MH i2c: E2 08 00 E0 01 80 17 00 00 00 00 00 00 61 [10:41:50]Write i2c OK [10:41:50]MH_I2C_Read... [10:41:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:41:50]Read from MH i2c: E2 [10:41:50]MH_I2C_Read... [10:41:50]Read from MH i2c: E2 FD 00 [10:41:50]MH_I2C_Read... [10:41:50]Read from MH i2c: E2 FD 00 E0 01 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 76 [10:41:50]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [10:41:50]wFMCommunicate OK [10:41:50]wFMCommunicate request_size=4 [10:41:50]MH_SAM_APDU [10:41:50]CAPDU: 80 17 00 00 [10:41:50]Write to MH i2c: E2 08 00 E1 01 80 17 00 00 00 00 00 00 62 [10:41:50]Write i2c OK [10:41:50]MH_I2C_Read... [10:41:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:41:50]Read from MH i2c: E2 [10:41:50]MH_I2C_Read... [10:41:50]Read from MH i2c: E2 FD 00 [10:41:50]MH_I2C_Read... [10:41:50]Read from MH i2c: E2 FD 00 E1 01 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 DA [10:41:50]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [10:41:50]wFMCommunicate OK [10:41:50]wFMCommunicate request_size=4 [10:41:50]MH_SAM_APDU [10:41:50]CAPDU: 80 17 00 00 [10:41:50]Write to MH i2c: E2 08 00 E2 01 80 17 00 00 00 00 00 00 63 [10:41:50]Write i2c OK [10:41:50]MH_I2C_Read... [10:41:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [10:41:51]Read from MH i2c: E2 [10:41:51]MH_I2C_Read... [10:41:51]Read from MH i2c: E2 E1 00 [10:41:51]MH_I2C_Read... [10:41:51]Read from MH i2c: E2 E1 00 E2 01 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 51 [10:41:51]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:41:51]wFMCommunicate OK [10:41:51]SAM_PROTO_GetFMData done [10:41:51]requested_item fm.sale_refund.total is exist - process it [10:41:51]requested_item fm.buy.total is exist - process it [10:41:51]requested_item shift.sale.total is exist - process it [10:41:51]SAM_PROTO_GetShiftData [10:41:51]wFMCommunicate request_size=4 [10:41:51]MH_SAM_APDU [10:41:51]CAPDU: 80 13 02 00 [10:41:51]Write to MH i2c: E2 08 00 E3 01 80 13 02 00 00 00 00 00 62 [10:41:51]OFD Sender: No OFD packet to send [10:41:51]Write i2c OK [10:41:51]MH_I2C_Read... [10:41:51]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:41:51]Read from MH i2c: E2 [10:41:51]MH_I2C_Read... [10:41:51]Read from MH i2c: E2 FD 00 [10:41:51]MH_I2C_Read... [10:41:51]Read from MH i2c: E2 FD 00 E3 01 00 AF 04 AA 04 AB 04 6E 04 04 00 4C 00 00 00 69 04 9C 00 6F 04 04 00 4C 00 00 00 B1 04 03 00 45 2E 99 70 04 03 00 0C 90 86 72 04 03 00 39 9E 12 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 07 45 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 11 5B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 AA [10:41:51]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 4C 00 00 00 69 04 9C 00 6F 04 04 00 4C 00 00 00 B1 04 03 00 45 2E 99 70 04 03 00 0C 90 86 72 04 03 00 39 9E 12 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 07 45 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 11 5B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [10:41:51]wFMCommunicate OK [10:41:51]wFMCommunicate request_size=4 [10:41:51]MH_SAM_APDU [10:41:51]CAPDU: 80 17 00 00 [10:41:51]Write to MH i2c: E2 08 00 E4 01 80 17 00 00 00 00 00 00 65 [10:41:51]Write i2c OK [10:41:51]MH_I2C_Read... [10:41:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:41:52]Read from MH i2c: E2 [10:41:52]MH_I2C_Read... [10:41:52]Read from MH i2c: E2 FD 00 [10:41:52]MH_I2C_Read... [10:41:52]Read from MH i2c: E2 FD 00 E4 01 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 7E [10:41:52]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [10:41:52]wFMCommunicate OK [10:41:52]wFMCommunicate request_size=4 [10:41:52]MH_SAM_APDU [10:41:52]CAPDU: 80 17 00 00 [10:41:52]Write to MH i2c: E2 08 00 E5 01 80 17 00 00 00 00 00 00 66 [10:41:52]Write i2c OK [10:41:52]MH_I2C_Read... [10:41:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:41:52]Read from MH i2c: E2 [10:41:52]MH_I2C_Read... [10:41:52]Read from MH i2c: E2 FD 00 [10:41:52]MH_I2C_Read... [10:41:52]Read from MH i2c: E2 FD 00 E5 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 1A [10:41:52]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [10:41:52]wFMCommunicate OK [10:41:52]wFMCommunicate request_size=4 [10:41:52]MH_SAM_APDU [10:41:52]CAPDU: 80 17 00 00 [10:41:52]Write to MH i2c: E2 08 00 E6 01 80 17 00 00 00 00 00 00 67 [10:41:52]Write i2c OK [10:41:52]MH_I2C_Read... [10:41:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:41:52]Read from MH i2c: E2 [10:41:52]MH_I2C_Read... [10:41:52]Read from MH i2c: E2 FD 00 [10:41:52]MH_I2C_Read... [10:41:52]Read from MH i2c: E2 FD 00 E6 01 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 E5 [10:41:52]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [10:41:53]wFMCommunicate OK [10:41:53]wFMCommunicate request_size=4 [10:41:53]MH_SAM_APDU [10:41:53]CAPDU: 80 17 00 00 [10:41:53]Write to MH i2c: E2 08 00 E7 01 80 17 00 00 00 00 00 00 68 [10:41:53]Write i2c OK [10:41:53]MH_I2C_Read... [10:41:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [10:41:53]Read from MH i2c: E2 [10:41:53]MH_I2C_Read... [10:41:53]Read from MH i2c: E2 CC 00 [10:41:53]MH_I2C_Read... [10:41:53]Read from MH i2c: E2 CC 00 E7 01 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 49 [10:41:53]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:41:53]wFMCommunicate OK [10:41:53]SAM_PROTO_GetShiftData done [10:41:53]requested_item shift.sale.total_cash is exist - process it [10:41:53]requested_item shift.sale_refund.total is exist - process it [10:41:53]requested_item shift.sale_refund.total_cash is exist - process it [10:41:53]requested_item shift.buy.total is exist - process it [10:41:53]requested_item shift.buy.total_cash is exist - process it [10:41:53]produce_requested_data done [10:41:53]produce_requested_data return {"fm.sale.total":70719670.85,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":100388.53,"shift.sale.total_cash":88187.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [10:41:53]process_action_free get_value [10:41:53]json_value_free [10:41:53]json_value_free done [10:41:53]process_json_proto returns [10:41:53]Send response to host [10:41:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70719670.85,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":100388.53,"shift.sale.total_cash":88187.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [10:41:53]free response buf [10:41:53]execute_script done [10:41:53]execute_script returns [10:41:53]free content buf [10:41:53]Sock 8.Close socket [10:41:53]Sock 8.Thread stoped [10:41:53]accept exits with 9 [10:41:53]New connection [10:41:53]New thread 3067329892 created [10:41:53]Thread 3067473252 joined [10:41:53]Waiting for new connection... [10:41:53] Sock 9.Parse request [10:41:53]Sock 9.Check first char [10:41:53]Sock 9.First char is OK [10:41:53]request: POST /json_proto HTTP/1.0 [10:41:53]Method: POST [10:41:53]URL: /json_proto [10:41:53]Method is POST - this is cgi request [10:41:53]url: /json_proto [10:41:53]query_string will be loaded in cgi processing [10:41:53]execute_cgi json_proto POST (null) [10:41:53]execute_cgi path=json_proto method=POST [10:41:53]POST find Content-Length [10:41:53]Host: 172.17.43.195:8080 [10:41:53]Content-Length: 281 [10:41:53]Content-Type: application/json [10:41:53] [10:41:53]POST finish read [10:41:53]Found Content-Length = 281 [10:41:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u0443\u0442\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:53]execute_script... [10:41:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u0443\u0442\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:53]POST & json_proto [10:41:53]process_json_proto [10:41:53]json parsed OK: [10:41:53]protocol is kg_v1.0 [10:41:53]action value=x_report [10:41:53]process_action x_report [10:41:53]cmd_x_report [10:41:53]MH_GetDate [10:41:53]Write to MH i2c: F0 00 00 E8 01 D8 [10:41:53]Write i2c OK [10:41:53]MH_I2C_Read... [10:41:53]Read from MH i2c: F0 [10:41:53]MH_I2C_Read... [10:41:53]Read from MH i2c: F0 09 00 [10:41:53]MH_I2C_Read... [10:41:53]Read from MH i2c: F0 09 00 E8 01 00 72 B0 24 67 74 2C AD 66 41 [10:41:53]GetLastDocTimeStamp 1730457596 [10:41:53]current date 1730457714 [10:41:53]FM_GetShiftState [10:41:53]SAM_PROTO_GetShiftState [10:41:53]wFMCommunicate request_size=4 [10:41:53]MH_SAM_APDU [10:41:53]CAPDU: 80 13 01 00 [10:41:53]Write to MH i2c: E2 08 00 E9 01 80 13 01 00 00 00 00 00 67 [10:41:53]Write i2c OK [10:41:53]MH_I2C_Read... [10:41:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:53]Read from MH i2c: E2 [10:41:53]MH_I2C_Read... [10:41:53]Read from MH i2c: E2 0E 00 [10:41:53]MH_I2C_Read... [10:41:53]Read from MH i2c: E2 0E 00 E9 01 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 AE [10:41:53]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [10:41:53]wFMCommunicate OK [10:41:53]SAM_PROTO_GetShiftState done [10:41:53]FM_GetShiftState done [10:41:53]KKMCreateXReportDocument [10:41:53]Load OK [10:41:53]Malloc new data [10:41:53]MH_GetDate [10:41:53]Write to MH i2c: F0 00 00 EA 01 DA [10:41:53]Write i2c OK [10:41:53]MH_I2C_Read... [10:41:53]Read from MH i2c: F0 [10:41:53]MH_I2C_Read... [10:41:53]Read from MH i2c: F0 09 00 [10:41:53]MH_I2C_Read... [10:41:53]Read from MH i2c: F0 09 00 EA 01 00 72 B0 24 67 74 2C AD 66 43 [10:41:53]Malloc new data [10:41:53]Malloc new data [10:41:53]wFMCommunicate request_size=4 [10:41:53]MH_SAM_APDU [10:41:53]CAPDU: 80 11 00 00 [10:41:53]Write to MH i2c: E2 08 00 EB 01 80 11 00 00 00 00 00 00 66 [10:41:53]Write i2c OK [10:41:53]MH_I2C_Read... [10:41:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:53]Read from MH i2c: E2 [10:41:53]MH_I2C_Read... [10:41:53]Read from MH i2c: E2 17 00 [10:41:53]MH_I2C_Read... [10:41:53]Read from MH i2c: E2 17 00 EB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 BA [10:41:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:41:53]wFMCommunicate OK [10:41:53]SAM_PROTO_GetFieldsCounters [10:41:53]wFMCommunicate request_size=4 [10:41:53]MH_SAM_APDU [10:41:53]CAPDU: 80 13 00 00 [10:41:53]Write to MH i2c: E2 08 00 EC 01 80 13 00 00 00 00 00 00 69 [10:41:53]Write i2c OK [10:41:53]MH_I2C_Read... [10:41:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:53]Read from MH i2c: E2 [10:41:53]MH_I2C_Read... [10:41:53]Read from MH i2c: E2 62 00 [10:41:53]MH_I2C_Read... [10:41:53]Read from MH i2c: E2 62 00 EC 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F7 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [10:41:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F7 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:41:53]wFMCommunicate OK [10:41:53]SAM_PROTO_GetFieldsCounters done [10:41:53]Malloc new data [10:41:53]Malloc new data [10:41:53]Malloc new data [10:41:53]KKMCreateXReportDocument OK [10:41:53]KKMSetXReportData OK [10:41:53]KKMPrepareXReportFMData [10:41:53]SAM_PROTO_GetShiftData [10:41:53]wFMCommunicate request_size=4 [10:41:53]MH_SAM_APDU [10:41:53]CAPDU: 80 13 02 00 [10:41:53]Write to MH i2c: E2 08 00 ED 01 80 13 02 00 00 00 00 00 6C [10:41:53]Write i2c OK [10:41:53]MH_I2C_Read... [10:41:54]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:41:54]Read from MH i2c: E2 [10:41:54]MH_I2C_Read... [10:41:54]Read from MH i2c: E2 FD 00 [10:41:54]MH_I2C_Read... [10:41:54]Read from MH i2c: E2 FD 00 ED 01 00 AF 04 AA 04 AB 04 6E 04 04 00 4C 00 00 00 69 04 9C 00 6F 04 04 00 4C 00 00 00 B1 04 03 00 45 2E 99 70 04 03 00 0C 90 86 72 04 03 00 39 9E 12 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 07 45 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 11 5B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 B4 [10:41:54]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 4C 00 00 00 69 04 9C 00 6F 04 04 00 4C 00 00 00 B1 04 03 00 45 2E 99 70 04 03 00 0C 90 86 72 04 03 00 39 9E 12 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 07 45 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 11 5B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [10:41:54]wFMCommunicate OK [10:41:54]wFMCommunicate request_size=4 [10:41:54]MH_SAM_APDU [10:41:54]CAPDU: 80 17 00 00 [10:41:54]Write to MH i2c: E2 08 00 EE 01 80 17 00 00 00 00 00 00 6F [10:41:54]Write i2c OK [10:41:54]MH_I2C_Read... [10:41:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:41:54]Read from MH i2c: E2 [10:41:54]MH_I2C_Read... [10:41:54]Read from MH i2c: E2 FD 00 [10:41:54]MH_I2C_Read... [10:41:54]Read from MH i2c: E2 FD 00 EE 01 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 88 [10:41:54]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [10:41:54]wFMCommunicate OK [10:41:54]wFMCommunicate request_size=4 [10:41:54]MH_SAM_APDU [10:41:54]CAPDU: 80 17 00 00 [10:41:54]Write to MH i2c: E2 08 00 EF 01 80 17 00 00 00 00 00 00 70 [10:41:54]Write i2c OK [10:41:54]MH_I2C_Read... [10:41:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:41:55]Read from MH i2c: E2 [10:41:55]MH_I2C_Read... [10:41:55]Read from MH i2c: E2 FD 00 [10:41:55]MH_I2C_Read... [10:41:55]Read from MH i2c: E2 FD 00 EF 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 24 [10:41:55]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [10:41:55]wFMCommunicate OK [10:41:55]wFMCommunicate request_size=4 [10:41:55]MH_SAM_APDU [10:41:55]CAPDU: 80 17 00 00 [10:41:55]Write to MH i2c: E2 08 00 F0 01 80 17 00 00 00 00 00 00 71 [10:41:55]Write i2c OK [10:41:55]MH_I2C_Read... [10:41:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:41:55]Read from MH i2c: E2 [10:41:55]MH_I2C_Read... [10:41:55]Read from MH i2c: E2 FD 00 [10:41:55]MH_I2C_Read... [10:41:55]Read from MH i2c: E2 FD 00 F0 01 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 EF [10:41:55]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [10:41:55]wFMCommunicate OK [10:41:55]wFMCommunicate request_size=4 [10:41:55]MH_SAM_APDU [10:41:55]CAPDU: 80 17 00 00 [10:41:55]Write to MH i2c: E2 08 00 F1 01 80 17 00 00 00 00 00 00 72 [10:41:55]Write i2c OK [10:41:55]MH_I2C_Read... [10:41:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [10:41:56]Read from MH i2c: E2 [10:41:56]MH_I2C_Read... [10:41:56]Read from MH i2c: E2 CC 00 [10:41:56]MH_I2C_Read... [10:41:56]Read from MH i2c: E2 CC 00 F1 01 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 53 [10:41:56]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 OFD Sender: No OFD packet to send [10:41:56]00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:41:56]wFMCommunicate OK [10:41:56]SAM_PROTO_GetShiftData done [10:41:56]1194 (1195) - счетчики итогов смены [10:41:56] 1134 (4) - 76 - количество чеков со всеми признаками расчетов [10:41:56] 1129 (156) - счетчики операций «приход» [10:41:56] 1135 (4) - 76 - количество чеков по признаку расчетов [10:41:56] 1201 (3) - 100388.53 - общая итоговая сумма в чеках [10:41:56] 1136 (3) - 88187.00 - итоговая сумма в чеках наличными [10:41:56] 1138 (3) - 12201.53 - итоговая сумма в чеках безналичными [10:41:56] 1024 (123) - суммы налогов [10:41:56] 1006 (9) - суммы НДС [10:41:56] 1010 (1) - 0% - код ставки НДС [10:41:56] 1011 (0) - 0.00 - сумма НДС по ставке [10:41:56] 1006 (12) - суммы НДС [10:41:56] 1010 (1) - 12% - код ставки НДС [10:41:56] 1011 (3) - 10662.47 - сумма НДС по ставке [10:41:56] 1007 (9) - суммы НСП [10:41:56] 1014 (1) - 0% - код ставки НСП [10:41:56] 1015 (0) - 0.00 - сумма НСП по ставке [10:41:56] 1007 (12) - суммы НСП [10:41:56] 1014 (1) - 1% - код ставки НСП [10:41:56] 1015 (3) - 888.49 - сумма НСП по ставке [10:41:56] 1007 (9) - суммы НСП [10:41:56] 1014 (1) - 2% - код ставки НСП [10:41:56] 1015 (0) - 0.00 - сумма НСП по ставке [10:41:56] 1007 (9) - суммы НСП [10:41:56] 1014 (1) - 3% - код ставки НСП [10:41:56] 1015 (0) - 0.00 - сумма НСП по ставке [10:41:56] 1007 (9) - суммы НСП [10:41:56] 1014 (1) - 5% - код ставки НСП [10:41:56] 1015 (0) - 0.00 - сумма НСП по ставке [10:41:56] 1007 (9) - суммы НСП [10:41:56] 1014 (1) - 0,50% - код ставки НСП [10:41:56] 1015 (0) - 0.00 - сумма НСП по ставке [10:41:56] 1007 (9) - суммы НСП [10:41:56] 1014 (1) - 1,50% - код ставки НСП [10:41:56] 1015 (0) - 0.00 - сумма НСП по ставке [10:41:56] 1130 (141) - счетчики операций «возврат прихода» [10:41:56] 1135 (4) - 0 - количество чеков по признаку расчетов [10:41:56] 1201 (0) - 0.00 - общая итоговая сумма в чеках [10:41:56] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [10:41:56] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [10:41:56] 1024 (117) - суммы налогов [10:41:56] 1006 (9) - суммы НДС [10:41:56] 1010 (1) - 0% - код ставки НДС [10:41:56] 1011 (0) - 0.00 - сумма НДС по ставке [10:41:56] 1006 (9) - суммы НДС [10:41:56] 1010 (1) - 12% - код ставки НДС [10:41:56] 1011 (0) - 0.00 - сумма НДС по ставке [10:41:56] 1007 (9) - суммы НСП [10:41:56] 1014 (1) - 0% - код ставки НСП [10:41:56] 1015 (0) - 0.00 - сумма НСП по ставке [10:41:56] 1007 (9) - суммы НСП [10:41:56] 1014 (1) - 1% - код ставки НСП [10:41:56] 1015 (0) - 0.00 - сумма НСП по ставке [10:41:56] 1007 (9) - суммы НСП [10:41:56] 1014 (1) - 2% - код ставки НСП [10:41:56] 1015 (0) - 0.00 - сумма НСП по ставке [10:41:56] 1007 (9) - суммы НСП [10:41:56] 1014 (1) - 3% - код ставки НСП [10:41:56] 1015 (0) - 0.00 - сумма НСП по ставке [10:41:56] 1007 (9) - суммы НСП [10:41:56] 1014 (1) - 5% - код ставки НСП [10:41:56] 1015 (0) - 0.00 - сумма НСП по ставке [10:41:56] 1007 (9) - суммы НСП [10:41:56] 1014 (1) - 0,50% - код ставки НСП [10:41:56] 1015 (0) - 0.00 - сумма НСП по ставке [10:41:56] 1007 (9) - суммы НСП [10:41:56] 1014 (1) - 1,50% - код ставки НСП [10:41:56] 1015 (0) - 0.00 - сумма НСП по ставке [10:41:56] 1131 (141) - счетчики операций «расход» [10:41:56] 1135 (4) - 0 - количество чеков по признаку расчетов [10:41:56] 1201 (0) - 0.00 - общая итоговая сумма в чеках [10:41:56] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [10:41:56] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [10:41:56] 1024 (117) - суммы налогов [10:41:56] 1006 (9) - суммы НДС [10:41:56] 1010 (1) - 0% - код ставки НДС [10:41:56] 1011 (0) - 0.00 - сумма НДС по ставке [10:41:56] 1006 (9) - суммы НДС [10:41:56] 1010 (1) - 12% - код ставки НДС [10:41:56] 1011 (0) - 0.00 - сумма НДС по ставке [10:41:56] 1007 (9) - суммы НСП [10:41:56] 1014 (1) - 0% - код ставки НСП [10:41:56] 1015 (0) - 0.00 - сумма НСП по ставке [10:41:56] 1007 (9) - суммы НСП [10:41:56] 1014 (1) - 1% - код ставки НСП [10:41:56] 1015 (0) - 0.00 - сумма НСП по ставке [10:41:56] 1007 (9) - суммы НСП [10:41:56] 1014 (1) - 2% - код ставки НСП [10:41:56] 1015 (0) - 0.00 - сумма НСП по ставке [10:41:56] 1007 (9) - суммы НСП [10:41:56] 1014 (1) - 3% - код ставки НСП [10:41:56] 1015 (0) - 0.00 - сумма НСП по ставке [10:41:56] 1007 (9) - суммы НСП [10:41:56] 1014 (1) - 5% - код ставки НСП [10:41:56] 1015 (0) - 0.00 - сумма НСП по ставке [10:41:56] 1007 (9) - суммы НСП [10:41:56] 1014 (1) - 0,50% - код ставки НСП [10:41:56] 1015 (0) - 0.00 - сумма НСП по ставке [10:41:56] 1007 (9) - суммы НСП [10:41:56] 1014 (1) - 1,50% - код ставки НСП [10:41:56] 1015 (0) - 0.00 - сумма НСП по ставке [10:41:56] 1132 (141) - счетчики операций «возврат расхода» [10:41:56] 1135 (4) - 0 - количество чеков по признаку расчетов [10:41:56] 1201 (0) - 0.00 - общая итоговая сумма в чеках [10:41:56] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [10:41:56] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [10:41:56] 1024 (117) - суммы налогов [10:41:56] 1006 (9) - суммы НДС [10:41:56] 1010 (1) - 0% - код ставки НДС [10:41:56] 1011 (0) - 0.00 - сумма НДС по ставке [10:41:56] 1006 (9) - суммы НДС [10:41:56] 1010 (1) - 12% - код ставки НДС [10:41:56] 1011 (0) - 0.00 - сумма НДС по ставке [10:41:56] 1007 (9) - суммы НСП [10:41:56] 1014 (1) - 0% - код ставки НСП [10:41:56] 1015 (0) - 0.00 - сумма НСП по ставке [10:41:56] 1007 (9) - суммы НСП [10:41:56] 1014 (1) - 1% - код ставки НСП [10:41:56] 1015 (0) - 0.00 - сумма НСП по ставке [10:41:56] 1007 (9) - суммы НСП [10:41:56] 1014 (1) - 2% - код ставки НСП [10:41:56] 1015 (0) - 0.00 - сумма НСП по ставке [10:41:56] 1007 (9) - суммы НСП [10:41:56] 1014 (1) - 3% - код ставки НСП [10:41:56] 1015 (0) - 0.00 - сумма НСП по ставке [10:41:56] 1007 (9) - суммы НСП [10:41:56] 1014 (1) - 5% - код ставки НСП [10:41:56] 1015 (0) - 0.00 - сумма НСП по ставке [10:41:56] 1007 (9) - суммы НСП [10:41:56] 1014 (1) - 0,50% - код ставки НСП [10:41:56] 1015 (0) - 0.00 - сумма НСП по ставке [10:41:56] 1007 (9) - суммы НСП [10:41:56] 1014 (1) - 1,50% - код ставки НСП [10:41:56] 1015 (0) - 0.00 - сумма НСП по ставке [10:41:56] 1133 (588) - - счетчики коррекции - не используются [10:41:56]SetTLVBufToDocument [10:41:56]Processing tag 1194 (04AA) [10:41:56]Load OK [10:41:56]SetTLVBufToDocument [10:41:56]Processing tag 1134 (046E) [10:41:56]Malloc new data [10:41:56]Processing tag 1129 (0469) [10:41:56]Load OK [10:41:56]SetTLVBufToDocument [10:41:56]Processing tag 1135 (046F) [10:41:56]Malloc new data [10:41:56]Processing tag 1201 (04B1) [10:41:56]Malloc new data [10:41:56]Processing tag 1136 (0470) [10:41:56]Malloc new data [10:41:56]Processing tag 1138 (0472) [10:41:56]Malloc new data [10:41:56]Processing tag 1024 (0400) [10:41:56]Load OK [10:41:56]SetTLVBufToDocument [10:41:56]Processing tag 1006 (03EE) [10:41:56]Load OK [10:41:56]SetTLVBufToDocument [10:41:56]Processing tag 1010 (03F2) [10:41:56]Malloc new data [10:41:56]Processing tag 1011 (03F3) [10:41:56]Malloc new data [10:41:56]SetTLVBufToDocument err=0 [10:41:56]Processing tag 1006 (03EE) [10:41:56]Load OK [10:41:56]SetTLVBufToDocument [10:41:56]Processing tag 1010 (03F2) [10:41:56]Malloc new data [10:41:56]Processing tag 1011 (03F3) [10:41:56]Malloc new data [10:41:56]SetTLVBufToDocument err=0 [10:41:56]Processing tag 1007 (03EF) [10:41:56]Load OK [10:41:56]SetTLVBufToDocument [10:41:56]Processing tag 1014 (03F6) [10:41:56]Malloc new data [10:41:56]Processing tag 1015 (03F7) [10:41:56]Malloc new data [10:41:56]SetTLVBufToDocument err=0 [10:41:56]Processing tag 1007 (03EF) [10:41:56]Load OK [10:41:56]SetTLVBufToDocument [10:41:56]Processing tag 1014 (03F6) [10:41:56]Malloc new data [10:41:56]Processing tag 1015 (03F7) [10:41:56]Malloc new data [10:41:56]SetTLVBufToDocument err=0 [10:41:56]Processing tag 1007 (03EF) [10:41:56]Load OK [10:41:56]SetTLVBufToDocument [10:41:56]Processing tag 1014 (03F6) [10:41:56]Malloc new data [10:41:56]Processing tag 1015 (03F7) [10:41:56]Malloc new data [10:41:56]SetTLVBufToDocument err=0 [10:41:56]Processing tag 1007 (03EF) [10:41:56]Load OK [10:41:56]SetTLVBufToDocument [10:41:56]Processing tag 1014 (03F6) [10:41:56]Malloc new data [10:41:56]Processing tag 1015 (03F7) [10:41:56]Malloc new data [10:41:56]SetTLVBufToDocument err=0 [10:41:56]Processing tag 1007 (03EF) [10:41:56]Load OK [10:41:56]SetTLVBufToDocument [10:41:57]Processing tag 1014 (03F6) [10:41:57]Malloc new data [10:41:57]Processing tag 1015 (03F7) [10:41:57]Malloc new data [10:41:57]SetTLVBufToDocument err=0 [10:41:57]Processing tag 1007 (03EF) [10:41:57]Load OK [10:41:57]SetTLVBufToDocument [10:41:57]Processing tag 1014 (03F6) [10:41:57]Malloc new data [10:41:57]Processing tag 1015 (03F7) [10:41:57]Malloc new data [10:41:57]SetTLVBufToDocument err=0 [10:41:57]Processing tag 1007 (03EF) [10:41:57]Load OK [10:41:57]SetTLVBufToDocument [10:41:57]Processing tag 1014 (03F6) [10:41:57]Malloc new data [10:41:57]Processing tag 1015 (03F7) [10:41:57]Malloc new data [10:41:57]SetTLVBufToDocument err=0 [10:41:57]SetTLVBufToDocument err=0 [10:41:57]SetTLVBufToDocument err=0 [10:41:57]Processing tag 1130 (046A) [10:41:57]Load OK [10:41:57]SetTLVBufToDocument [10:41:57]Processing tag 1135 (046F) [10:41:57]Malloc new data [10:41:57]Processing tag 1201 (04B1) [10:41:57]Malloc new data [10:41:57]Processing tag 1136 (0470) [10:41:57]Malloc new data [10:41:57]Processing tag 1138 (0472) [10:41:57]Malloc new data [10:41:57]Processing tag 1024 (0400) [10:41:57]Load OK [10:41:57]SetTLVBufToDocument [10:41:57]Processing tag 1006 (03EE) [10:41:57]Load OK [10:41:57]SetTLVBufToDocument [10:41:57]Processing tag 1010 (03F2) [10:41:57]Malloc new data [10:41:57]Processing tag 1011 (03F3) [10:41:57]Malloc new data [10:41:57]SetTLVBufToDocument err=0 [10:41:57]Processing tag 1006 (03EE) [10:41:57]Load OK [10:41:57]SetTLVBufToDocument [10:41:57]Processing tag 1010 (03F2) [10:41:57]Malloc new data [10:41:57]Processing tag 1011 (03F3) [10:41:57]Malloc new data [10:41:57]SetTLVBufToDocument err=0 [10:41:57]Processing tag 1007 (03EF) [10:41:57]Load OK [10:41:57]SetTLVBufToDocument [10:41:57]Processing tag 1014 (03F6) [10:41:57]Malloc new data [10:41:57]Processing tag 1015 (03F7) [10:41:57]Malloc new data [10:41:57]SetTLVBufToDocument err=0 [10:41:57]Processing tag 1007 (03EF) [10:41:57]Load OK [10:41:57]SetTLVBufToDocument [10:41:57]Processing tag 1014 (03F6) [10:41:57]Malloc new data [10:41:57]Processing tag 1015 (03F7) [10:41:57]Malloc new data [10:41:57]SetTLVBufToDocument err=0 [10:41:57]Processing tag 1007 (03EF) [10:41:57]Load OK [10:41:57]SetTLVBufToDocument [10:41:57]Processing tag 1014 (03F6) [10:41:57]Malloc new data [10:41:57]Processing tag 1015 (03F7) [10:41:57]Malloc new data [10:41:57]SetTLVBufToDocument err=0 [10:41:57]Processing tag 1007 (03EF) [10:41:57]Load OK [10:41:57]SetTLVBufToDocument [10:41:57]Processing tag 1014 (03F6) [10:41:57]Malloc new data [10:41:57]Processing tag 1015 (03F7) [10:41:57]Malloc new data [10:41:57]SetTLVBufToDocument err=0 [10:41:57]Processing tag 1007 (03EF) [10:41:57]Load OK [10:41:57]SetTLVBufToDocument [10:41:57]Processing tag 1014 (03F6) [10:41:57]Malloc new data [10:41:57]Processing tag 1015 (03F7) [10:41:57]Malloc new data [10:41:57]SetTLVBufToDocument err=0 [10:41:57]Processing tag 1007 (03EF) [10:41:57]Load OK [10:41:57]SetTLVBufToDocument [10:41:57]Processing tag 1014 (03F6) [10:41:57]Malloc new data [10:41:57]Processing tag 1015 (03F7) [10:41:57]Malloc new data [10:41:57]SetTLVBufToDocument err=0 [10:41:57]Processing tag 1007 (03EF) [10:41:57]Load OK [10:41:57]SetTLVBufToDocument [10:41:57]Processing tag 1014 (03F6) [10:41:57]Malloc new data [10:41:57]Processing tag 1015 (03F7) [10:41:57]Malloc new data [10:41:57]SetTLVBufToDocument err=0 [10:41:57]SetTLVBufToDocument err=0 [10:41:57]SetTLVBufToDocument err=0 [10:41:57]Processing tag 1131 (046B) [10:41:57]Load OK [10:41:57]SetTLVBufToDocument [10:41:57]Processing tag 1135 (046F) [10:41:57]Malloc new data [10:41:57]Processing tag 1201 (04B1) [10:41:57]Malloc new data [10:41:57]Processing tag 1136 (0470) [10:41:57]Malloc new data [10:41:57]Processing tag 1138 (0472) [10:41:57]Malloc new data [10:41:57]Processing tag 1024 (0400) [10:41:57]Load OK [10:41:57]SetTLVBufToDocument [10:41:57]Processing tag 1006 (03EE) [10:41:57]Load OK [10:41:57]SetTLVBufToDocument [10:41:57]Processing tag 1010 (03F2) [10:41:57]Malloc new data [10:41:57]Processing tag 1011 (03F3) [10:41:57]Malloc new data [10:41:57]SetTLVBufToDocument err=0 [10:41:57]Processing tag 1006 (03EE) [10:41:57]Load OK [10:41:57]SetTLVBufToDocument [10:41:57]Processing tag 1010 (03F2) [10:41:57]Malloc new data [10:41:57]Processing tag 1011 (03F3) [10:41:57]Malloc new data [10:41:57]SetTLVBufToDocument err=0 [10:41:57]Processing tag 1007 (03EF) [10:41:57]Load OK [10:41:57]SetTLVBufToDocument [10:41:57]Processing tag 1014 (03F6) [10:41:57]Malloc new data [10:41:57]Processing tag 1015 (03F7) [10:41:57]Malloc new data [10:41:57]SetTLVBufToDocument err=0 [10:41:57]Processing tag 1007 (03EF) [10:41:57]Load OK [10:41:57]SetTLVBufToDocument [10:41:57]Processing tag 1014 (03F6) [10:41:57]Malloc new data [10:41:57]Processing tag 1015 (03F7) [10:41:57]Malloc new data [10:41:57]SetTLVBufToDocument err=0 [10:41:57]Processing tag 1007 (03EF) [10:41:57]Load OK [10:41:57]SetTLVBufToDocument [10:41:57]Processing tag 1014 (03F6) [10:41:57]Malloc new data [10:41:57]Processing tag 1015 (03F7) [10:41:57]Malloc new data [10:41:57]SetTLVBufToDocument err=0 [10:41:57]Processing tag 1007 (03EF) [10:41:57]Load OK [10:41:57]SetTLVBufToDocument [10:41:57]Processing tag 1014 (03F6) [10:41:57]Malloc new data [10:41:57]Processing tag 1015 (03F7) [10:41:57]Malloc new data [10:41:57]SetTLVBufToDocument err=0 [10:41:57]Processing tag 1007 (03EF) [10:41:57]Load OK [10:41:57]SetTLVBufToDocument [10:41:57]Processing tag 1014 (03F6) [10:41:57]Malloc new data [10:41:57]Processing tag 1015 (03F7) [10:41:57]Malloc new data [10:41:57]SetTLVBufToDocument err=0 [10:41:57]Processing tag 1007 (03EF) [10:41:57]Load OK [10:41:57]SetTLVBufToDocument [10:41:57]Processing tag 1014 (03F6) [10:41:57]Malloc new data [10:41:57]Processing tag 1015 (03F7) [10:41:57]Malloc new data [10:41:57]SetTLVBufToDocument err=0 [10:41:57]Processing tag 1007 (03EF) [10:41:57]Load OK [10:41:57]SetTLVBufToDocument [10:41:57]Processing tag 1014 (03F6) [10:41:57]Malloc new data [10:41:57]Processing tag 1015 (03F7) [10:41:57]Malloc new data [10:41:57]SetTLVBufToDocument err=0 [10:41:57]SetTLVBufToDocument err=0 [10:41:57]SetTLVBufToDocument err=0 [10:41:57]Processing tag 1132 (046C) [10:41:57]Load OK [10:41:57]SetTLVBufToDocument [10:41:57]Processing tag 1135 (046F) [10:41:57]Malloc new data [10:41:57]Processing tag 1201 (04B1) [10:41:57]Malloc new data [10:41:57]Processing tag 1136 (0470) [10:41:57]Malloc new data [10:41:57]Processing tag 1138 (0472) [10:41:57]Malloc new data [10:41:57]Processing tag 1024 (0400) [10:41:57]Load OK [10:41:57]SetTLVBufToDocument [10:41:57]Processing tag 1006 (03EE) [10:41:57]Load OK [10:41:57]SetTLVBufToDocument [10:41:57]Processing tag 1010 (03F2) [10:41:57]Malloc new data [10:41:57]Processing tag 1011 (03F3) [10:41:57]Malloc new data [10:41:57]SetTLVBufToDocument err=0 [10:41:57]Processing tag 1006 (03EE) [10:41:57]Load OK [10:41:57]SetTLVBufToDocument [10:41:57]Processing tag 1010 (03F2) [10:41:57]Malloc new data [10:41:57]Processing tag 1011 (03F3) [10:41:57]Malloc new data [10:41:57]SetTLVBufToDocument err=0 [10:41:57]Processing tag 1007 (03EF) [10:41:57]Load OK [10:41:57]SetTLVBufToDocument [10:41:57]Processing tag 1014 (03F6) [10:41:57]Malloc new data [10:41:57]Processing tag 1015 (03F7) [10:41:57]Malloc new data [10:41:57]SetTLVBufToDocument err=0 [10:41:57]Processing tag 1007 (03EF) [10:41:57]Load OK [10:41:57]SetTLVBufToDocument [10:41:57]Processing tag 1014 (03F6) [10:41:57]Malloc new data [10:41:57]Processing tag 1015 (03F7) [10:41:57]Malloc new data [10:41:57]SetTLVBufToDocument err=0 [10:41:57]Processing tag 1007 (03EF) [10:41:57]Load OK [10:41:57]SetTLVBufToDocument [10:41:57]Processing tag 1014 (03F6) [10:41:57]Malloc new data [10:41:57]Processing tag 1015 (03F7) [10:41:57]Malloc new data [10:41:57]SetTLVBufToDocument err=0 [10:41:57]Processing tag 1007 (03EF) [10:41:57]Load OK [10:41:57]SetTLVBufToDocument [10:41:57]Processing tag 1014 (03F6) [10:41:57]Malloc new data [10:41:57]Processing tag 1015 (03F7) [10:41:57]Malloc new data [10:41:57]SetTLVBufToDocument err=0 [10:41:57]Processing tag 1007 (03EF) [10:41:57]Load OK [10:41:57]SetTLVBufToDocument [10:41:57]Processing tag 1014 (03F6) [10:41:57]Malloc new data [10:41:57]Processing tag 1015 (03F7) [10:41:57]Malloc new data [10:41:57]SetTLVBufToDocument err=0 [10:41:57]Processing tag 1007 (03EF) [10:41:57]Load OK [10:41:57]SetTLVBufToDocument [10:41:57]Processing tag 1014 (03F6) [10:41:57]Malloc new data [10:41:57]Processing tag 1015 (03F7) [10:41:57]Malloc new data [10:41:57]SetTLVBufToDocument err=0 [10:41:57]Processing tag 1007 (03EF) [10:41:57]Load OK [10:41:57]SetTLVBufToDocument [10:41:57]Processing tag 1014 (03F6) [10:41:57]Malloc new data [10:41:57]Processing tag 1015 (03F7) [10:41:57]Malloc new data [10:41:57]SetTLVBufToDocument err=0 [10:41:57]SetTLVBufToDocument err=0 [10:41:57]SetTLVBufToDocument err=0 [10:41:57]Processing tag 1133 (046D) [10:41:57]Malloc new data [10:41:57]SetTLVBufToDocument err=0 [10:41:57]SetTLVBufToDocument err=0 [10:41:57]Malloc new data [10:41:57]SAM_PROTO_GetFMData [10:41:57]wFMCommunicate request_size=4 [10:41:57]MH_SAM_APDU [10:41:57]CAPDU: 80 13 03 00 [10:41:57]Write to MH i2c: E2 08 00 F2 01 80 13 03 00 00 00 00 00 72 [10:41:57]Write i2c OK [10:41:57]MH_I2C_Read... [10:41:58]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:41:58]Read from MH i2c: E2 [10:41:58]MH_I2C_Read... [10:41:58]Read from MH i2c: E2 FD 00 [10:41:58]MH_I2C_Read... [10:41:58]Read from MH i2c: E2 FD 00 F2 01 00 C4 04 85 04 C0 04 6E 04 04 00 9B 19 01 00 69 04 A3 00 6F 04 04 00 AB 18 01 00 B1 04 05 00 6D A7 85 A5 01 70 04 05 00 14 26 BB 59 01 72 04 04 00 59 81 CA 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 9B 40 C6 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 17 1E BB 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 EA [10:41:58]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 9B 19 01 00 69 04 A3 00 6F 04 04 00 AB 18 01 00 B1 04 05 00 6D A7 85 A5 01 70 04 05 00 14 26 BB 59 01 72 04 04 00 59 81 CA 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 9B 40 C6 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 17 1E BB 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 [10:41:58]wFMCommunicate OK [10:41:58]wFMCommunicate request_size=4 [10:41:58]MH_SAM_APDU [10:41:58]CAPDU: 80 17 00 00 [10:41:58]Write to MH i2c: E2 08 00 F3 01 80 17 00 00 00 00 00 00 74 [10:41:58]Write i2c OK [10:41:58]MH_I2C_Read... [10:41:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:41:58]Read from MH i2c: E2 [10:41:58]MH_I2C_Read... [10:41:58]Read from MH i2c: E2 FD 00 [10:41:58]MH_I2C_Read... [10:41:58]Read from MH i2c: E2 FD 00 F3 01 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 F4 [10:41:58]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [10:41:58]wFMCommunicate OK [10:41:58]wFMCommunicate request_size=4 [10:41:58]MH_SAM_APDU [10:41:58]CAPDU: 80 17 00 00 [10:41:58]Write to MH i2c: E2 08 00 F4 01 80 17 00 00 00 00 00 00 75 [10:41:58]Write i2c OK [10:41:58]MH_I2C_Read... [10:41:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:41:59]Read from MH i2c: E2 [10:41:59]MH_I2C_Read... [10:41:59]Read from MH i2c: E2 FD 00 [10:41:59]MH_I2C_Read... [10:41:59]Read from MH i2c: E2 FD 00 F4 01 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 8A [10:41:59]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [10:41:59]wFMCommunicate OK [10:41:59]wFMCommunicate request_size=4 [10:41:59]MH_SAM_APDU [10:41:59]CAPDU: 80 17 00 00 [10:41:59]Write to MH i2c: E2 08 00 F5 01 80 17 00 00 00 00 00 00 76 [10:41:59]Write i2c OK [10:41:59]MH_I2C_Read... [10:41:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:41:59]Read from MH i2c: E2 [10:41:59]MH_I2C_Read... [10:41:59]Read from MH i2c: E2 FD 00 [10:41:59]MH_I2C_Read... [10:41:59]Read from MH i2c: E2 FD 00 F5 01 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 EE [10:41:59]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [10:42:00]wFMCommunicate OK [10:42:00]wFMCommunicate request_size=4 [10:42:00]MH_SAM_APDU [10:42:00]CAPDU: 80 17 00 00 [10:42:00]Write to MH i2c: E2 08 00 F6 01 80 17 00 00 00 00 00 00 77 [10:42:00]Write i2c OK [10:42:00]MH_I2C_Read... [10:42:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [10:42:00]Read from MH i2c: E2 [10:42:00]MH_I2C_Read... [10:42:00]Read from MH i2c: E2 E1 00 [10:42:00]MH_I2C_Read... [10:42:00]Read from MH i2c: E2 E1 00 F6 01 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 65 [10:42:00]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:42:00]wFMCommunicate OK [10:42:00]SAM_PROTO_GetFMData done [10:42:00]FM_GetFMData:85 04 C0 04 6E 04 04 00 9B 19 01 00 69 04 A3 00 6F 04 04 00 AB 18 01 00 B1 04 05 00 6D A7 85 A5 01 70 04 05 00 14 26 BB 59 01 72 04 04 00 59 81 CA 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 9B 40 C6 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 17 1E BB 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [10:42:01]oper:6F 04 04 00 AB 18 01 00 B1 04 05 00 6D A7 85 A5 01 70 04 05 00 14 26 BB 59 01 72 04 04 00 59 81 CA 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 9B 40 C6 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 17 1E BB 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [10:42:01]total:6D A7 85 A5 01 [10:42:01]Malloc new data [10:42:01]oper:6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [10:42:01]total:BC 6D FE 04 [10:42:01]Malloc new data [10:42:01]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 OFD Sender: No OFD packet to send [10:42:01]75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:42:02]total: [10:42:02]Malloc new data [10:42:02]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 [10:42:02]total: [10:42:02]Malloc new data [10:42:02]KKMPrepareXReportFMData err=0 [10:42:02]Х отчет ИНН: 02508201610067 Кассир: Кутманалиева Н. 01.11.2024 10:41 Смена: 522 РНМ: 0000000000091644 ЗНМ: 0300000087 СНО: Общий режим Всего чеков: 76 ИТОГИ ПРИХОД Чеков: 76 Общий итог: 100388.53 Итого наличными: 88187.00 Итого безнал.: 12201.53 НДС 0% : 0.00 НДС 12% : 10662.47 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 888.49 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 88187.00 НС Приход: 70719670.85 НС Возвр.Прихода: 837831.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874662 [10:42:02]StoreToDocumentArchive [10:42:02]MH_GetDate [10:42:02]Write to MH i2c: F0 00 00 F7 01 E7 [10:42:02]Write i2c OK [10:42:02]MH_I2C_Read... [10:42:02]Read from MH i2c: F0 [10:42:02]MH_I2C_Read... [10:42:02]Read from MH i2c: F0 09 00 [10:42:02]MH_I2C_Read... [10:42:02]Read from MH i2c: F0 09 00 F7 01 00 7B B0 24 67 74 2C AD 66 59 [10:42:02]shift 522 fd 1730457723 [10:42:02]Create dir for shift 0522 [10:42:02]save to /storage/0522/doc_1730457723 [10:42:02]save last doc name /storage/0522/doc_1730457723 to /storage/kkm_last_doc_name [10:42:02]save OK [10:42:02]Clear old archive folders... [10:42:02]NVStorageSaveData kkm_last_timestamp [10:42:02]File name is /storage/kkm_last_timestamp [10:42:02]Write 4 bytes [10:42:02]NVStorageSaveData done [10:42:02]ExternCall_PrintAddStr [10:42:02]wPrintStart [10:42:02]Write to MH i2c: 01 00 00 F8 01 F9 [10:42:02]Write i2c OK [10:42:02]MH_I2C_Read... [10:42:02]Read from MH i2c: 01 [10:42:02]MH_I2C_Read... [10:42:02]Read from MH i2c: 01 07 00 [10:42:02]MH_I2C_Read... [10:42:02]Read from MH i2c: 01 07 00 F8 01 00 00 00 00 00 FF 0F 0E [10:42:02]RasterBufferAndPrint [10:42:02]line Х отчет [10:42:02]line ИНН: 02508201610067 [10:42:02]line Кассир: Кутманалиева Н. [10:42:02]line 01.11.2024 10:41 [10:42:02]line Смена: 522 [10:42:02]line РНМ: 0000000000091644 [10:42:02]line ЗНМ: 0300000087 [10:42:02]line СНО: Общий режим [10:42:02]line Всего чеков: 76 [10:42:02]line ИТОГИ ПРИХОД [10:42:02]line Чеков: 76 [10:42:02]line Общий итог: 100388.53 [10:42:02]line Итого наличными: 88187.00 [10:42:02]line Итого безнал.: 12201.53 [10:42:02]line НДС 0% : 0.00 [10:42:02]line НДС 12% : 10662.47 [10:42:02]line НСП 0% : 0.00 [10:42:02]line НСП 1,50% : 0.00 [10:42:02]line НСП 0,50% : 0.00 [10:42:02]line НСП 5% : 0.00 [10:42:02]line НСП 3% : 0.00 [10:42:02]line НСП 2% : 0.00 [10:42:02]line НСП 1% : 888.49 [10:42:02]line ИТОГИ ВОЗВРАТ ПРИХОДА [10:42:02]line Чеков: 0 [10:42:02]line Общий итог: 0.00 [10:42:02]line Итого наличными: 0.00 [10:42:02]line Итого безнал.: 0.00 [10:42:02]line НДС 0% : 0.00 [10:42:02]line НДС 12% : 0.00 [10:42:02]line НСП 0% : 0.00 [10:42:02]line НСП 1,50% : 0.00 [10:42:02]line НСП 0,50% : 0.00 [10:42:02]line НСП 5% : 0.00 [10:42:02]line НСП 3% : 0.00 [10:42:02]line НСП 2% : 0.00 [10:42:02]line НСП 1% : 0.00 [10:42:02]line ИТОГИ РАСХОД [10:42:02]line Чеков: 0 [10:42:02]line Общий итог: 0.00 [10:42:02]line Итого наличными: 0.00 [10:42:02]line Итого безнал.: 0.00 [10:42:02]line НДС 0% : 0.00 [10:42:02]line НДС 12% : 0.00 [10:42:02]line НСП 0% : 0.00 [10:42:02]line НСП 1,50% : 0.00 [10:42:02]line НСП 0,50% : 0.00 [10:42:02]line НСП 5% : 0.00 [10:42:02]line НСП 3% : 0.00 [10:42:02]line НСП 2% : 0.00 [10:42:02]line НСП 1% : 0.00 [10:42:02]line ИТОГИ ВОЗВРАТ РАСХОДА [10:42:02]line Чеков: 0 [10:42:02]line Общий итог: 0.00 [10:42:02]line Итого наличными: 0.00 [10:42:02]line Итого безнал.: 0.00 [10:42:02]line НДС 0% : 0.00 [10:42:02]line НДС 12% : 0.00 [10:42:02]line НСП 0% : 0.00 [10:42:02]line НСП 1,50% : 0.00 [10:42:02]line НСП 0,50% : 0.00 [10:42:02]line НСП 5% : 0.00 [10:42:02]line НСП 3% : 0.00 [10:42:02]line НСП 2% : 0.00 [10:42:02]line НСП 1% : 0.00 [10:42:02]line Сумма внесений: 0.00 [10:42:02]line Сумма выплат: 0.00 [10:42:02]line Нал. в кассе: 88187.00 [10:42:02]line НС Приход: 70719670.85 [10:42:02]line НС Возвр.Прихода: 837831.00 [10:42:02]line НС Расход: 0.00 [10:42:02]line НС Возвр.Расхода: 0.00 [10:42:02]line ФМ: 0000000000874662 [10:42:02]written 0, free lines is 4095 [10:42:03]Write to MH i2c: 01 00 00 43 02 45 [10:42:03]Write i2c OK [10:42:03]MH_I2C_Read... [10:42:03]Read from MH i2c: 01 [10:42:03]MH_I2C_Read... [10:42:03]Read from MH i2c: 01 07 00 [10:42:03]MH_I2C_Read... [10:42:03]Read from MH i2c: 01 07 00 43 02 00 00 00 00 00 A6 0A FC [10:42:03]RasterBufferAndPrint [10:42:03]line [10:42:03]line [10:42:03]line [10:42:03]line [10:42:03]line [10:42:03]written 0, free lines is 2762 [10:42:03]MH_Cut [10:42:03]Write to MH i2c: D1 01 00 4A 02 01 1E [10:42:03]Write i2c OK [10:42:03]MH_I2C_Read... [10:42:03]Read from MH i2c: D1 [10:42:03]MH_I2C_Read... [10:42:03]Read from MH i2c: D1 01 00 [10:42:03]MH_I2C_Read... [10:42:03]Read from MH i2c: D1 01 00 4A 02 00 1D [10:42:03]Write to MH i2c: 01 00 00 4B 02 4D [10:42:03]Write i2c OK [10:42:03]MH_I2C_Read... [10:42:04]*** Cut start [10:42:04]*** Partial cut [10:42:04]*** CUTSNS_PIN = 1 [10:42:04]*** CUTSNS_PIN = 0 [10:42:04]*** Brake cut motor [10:42:04]Read from MH i2c: 01 [10:42:04]MH_I2C_Read... [10:42:04]*** Stop cut motor [10:42:04]*** Cut end [10:42:04]Read from MH i2c: 01 07 00 [10:42:04]MH_I2C_Read... [10:42:04]Read from MH i2c: 01 07 00 4B 02 00 00 00 00 00 FF 0F 62 [10:42:04]process_action x_report done [10:42:04]requested_data is exist [10:42:04]produce_requested_data [10:42:04]requested_item fd.num is exist - process it [10:42:04]SAM_PROTO_GetFieldsCounters [10:42:04]wFMCommunicate request_size=4 [10:42:04]MH_SAM_APDU [10:42:04]CAPDU: 80 13 00 00 [10:42:04]Write to MH i2c: E2 08 00 4C 02 80 13 00 00 00 00 00 00 CA [10:42:04]Write i2c OK [10:42:04]MH_I2C_Read... [10:42:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:04]Read from MH i2c: E2 [10:42:04]MH_I2C_Read... [10:42:04]Read from MH i2c: E2 62 00 [10:42:04]MH_I2C_Read... [10:42:04]Read from MH i2c: E2 62 00 4C 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F7 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [10:42:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F7 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:42:05]wFMCommunicate OK [10:42:05]SAM_PROTO_GetFieldsCounters done [10:42:05]requested_item shift.num is exist - process it [10:42:05]requested_item shift.opened is exist - process it [10:42:05]req_shift_opened [10:42:05]FM_GetShiftState [10:42:05]SAM_PROTO_GetShiftState [10:42:05]wFMCommunicate request_size=4 [10:42:05]MH_SAM_APDU [10:42:05]CAPDU: 80 13 01 00 [10:42:05]Write to MH i2c: E2 08 00 4D 02 80 13 01 00 00 00 00 00 CC [10:42:05]Write i2c OK [10:42:05]MH_I2C_Read... [10:42:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:05]Read from MH i2c: E2 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 0E 00 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 0E 00 4D 02 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 13 [10:42:05]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [10:42:05]wFMCommunicate OK [10:42:05]SAM_PROTO_GetShiftState done [10:42:05]FM_GetShiftState done [10:42:05]req_shift_opened done [10:42:05]requested_item shift.open_date is exist - process it [10:42:05]req_shift_open_date [10:42:05]req_shift_open_date done [10:42:05]produce_requested_data done [10:42:05]produce_requested_data return {"fd.num":73207,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [10:42:05]process_action_free x_report [10:42:05]json_value_free [10:42:05]json_value_free done [10:42:05]process_json_proto returns [10:42:05]Send response to host [10:42:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":73207,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [10:42:05]free response buf [10:42:05]execute_script done [10:42:05]execute_script returns [10:42:05]free content buf [10:42:05]Sock 9.Close socket [10:42:05]Sock 9.Thread stoped [10:42:06]OFD Sender: No OFD packet to send [10:42:09]accept exits with 8 [10:42:09]New connection [10:42:09]New thread 3067473252 created [10:42:09]Thread 3067329892 joined [10:42:09]Waiting for new connection... [10:42:09] Sock 8.Parse request [10:42:09]Sock 8.Check first char [10:42:09]Sock 8.First char is OK [10:42:09]request: POST /json_proto HTTP/1.0 [10:42:09]Method: POST [10:42:09]URL: /json_proto [10:42:09]Method is POST - this is cgi request [10:42:09]url: /json_proto [10:42:09]query_string will be loaded in cgi processing [10:42:09]execute_cgi json_proto POST (null) [10:42:09]execute_cgi path=json_proto method=POST [10:42:09]POST find Content-Length [10:42:09]Host: 172.17.43.195:8080 [10:42:09]Content-Length: 215 [10:42:09]Content-Type: application/json [10:42:09] [10:42:09]POST finish read [10:42:09]Found Content-Length = 215 [10:42:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:09]execute_script... [10:42:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:09]POST & json_proto [10:42:09]process_json_proto [10:42:09]json parsed OK: [10:42:09]protocol is kg_v1.0 [10:42:09]action value=get_value [10:42:09]process_action get_value [10:42:09]cmd_get_value [10:42:09]process_action get_value done [10:42:09]requested_data is exist [10:42:09]produce_requested_data [10:42:09]requested_item kkm.sn is exist - process it [10:42:09]requested_item kkm.ver is exist - process it [10:42:09]requested_item fm.sn is exist - process it [10:42:09]wFMCommunicate request_size=4 [10:42:09]MH_SAM_APDU [10:42:09]CAPDU: 80 11 00 00 [10:42:09]Write to MH i2c: E2 08 00 4E 02 80 11 00 00 00 00 00 00 CA [10:42:09]Write i2c OK [10:42:09]MH_I2C_Read... [10:42:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:09]Read from MH i2c: E2 [10:42:09]MH_I2C_Read... [10:42:09]Read from MH i2c: E2 17 00 [10:42:09]MH_I2C_Read... [10:42:09]Read from MH i2c: E2 17 00 4E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 1E [10:42:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:42:09]wFMCommunicate OK [10:42:09]requested_item fd.num is exist - process it [10:42:09]SAM_PROTO_GetFieldsCounters [10:42:09]wFMCommunicate request_size=4 [10:42:09]MH_SAM_APDU [10:42:09]CAPDU: 80 13 00 00 [10:42:09]Write to MH i2c: E2 08 00 4F 02 80 13 00 00 00 00 00 00 CD [10:42:09]Write i2c OK [10:42:09]MH_I2C_Read... [10:42:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:09]Read from MH i2c: E2 [10:42:09]MH_I2C_Read... [10:42:09]Read from MH i2c: E2 62 00 [10:42:09]MH_I2C_Read... [10:42:09]Read from MH i2c: E2 62 00 4F 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F7 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [10:42:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F7 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:42:10]wFMCommunicate OK [10:42:10]SAM_PROTO_GetFieldsCounters done [10:42:10]requested_item shift.num is exist - process it [10:42:10]requested_item shift.opened is exist - process it [10:42:10]req_shift_opened [10:42:10]FM_GetShiftState [10:42:10]SAM_PROTO_GetShiftState [10:42:10]wFMCommunicate request_size=4 [10:42:10]MH_SAM_APDU [10:42:10]CAPDU: 80 13 01 00 [10:42:10]Write to MH i2c: E2 08 00 50 02 80 13 01 00 00 00 00 00 CF [10:42:10]Write i2c OK [10:42:10]MH_I2C_Read... [10:42:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:10]Read from MH i2c: E2 [10:42:10]MH_I2C_Read... [10:42:10]Read from MH i2c: E2 0E 00 [10:42:10]MH_I2C_Read... [10:42:10]Read from MH i2c: E2 0E 00 50 02 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 16 [10:42:10]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [10:42:10]wFMCommunicate OK [10:42:10]SAM_PROTO_GetShiftState done [10:42:10]FM_GetShiftState done [10:42:10]req_shift_opened done [10:42:10]requested_item shift.open_date is exist - process it [10:42:10]req_shift_open_date [10:42:10]req_shift_open_date done [10:42:10]produce_requested_data done [10:42:10]produce_requested_data return {"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":73207,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605} [10:42:10]process_action_free get_value [10:42:10]json_value_free [10:42:10]json_value_free done [10:42:10]process_json_proto returns [10:42:10]Send response to host [10:42:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":73207,"shift.num":558,"shift.opened":1,"shift.open_date":1730419605}}} [10:42:10]free response buf [10:42:10]execute_script done [10:42:10]execute_script returns [10:42:10]free content buf [10:42:10]Sock 8.Close socket [10:42:10]Sock 8.Thread stoped [10:42:10]accept exits with 9 [10:42:10]New connection [10:42:10]New thread 3067329892 created [10:42:10]Thread 3067473252 joined [10:42:10]Waiting for new connection... [10:42:10] Sock 9.Parse request [10:42:10]Sock 9.Check first char [10:42:10]Sock 9.First char is OK [10:42:10]request: POST /json_proto HTTP/1.0 [10:42:10]Method: POST [10:42:10]URL: /json_proto [10:42:10]Method is POST - this is cgi request [10:42:10]url: /json_proto [10:42:10]query_string will be loaded in cgi processing [10:42:10]execute_cgi json_proto POST (null) [10:42:10]execute_cgi path=json_proto method=POST [10:42:10]POST find Content-Length [10:42:10]Host: 172.17.43.195:8080 [10:42:10]Content-Length: 331 [10:42:10]Content-Type: application/json [10:42:10] [10:42:10]POST finish read [10:42:10]Found Content-Length = 331 [10:42:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:42:10]execute_script... [10:42:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:42:10]POST & json_proto [10:42:10]process_json_proto [10:42:10]json parsed OK: [10:42:10]protocol is kg_v1.0 [10:42:10]action value=get_value [10:42:10]process_action get_value [10:42:10]cmd_get_value [10:42:10]process_action get_value done [10:42:10]requested_data is exist [10:42:10]produce_requested_data [10:42:10]requested_item fm.sale.total is exist - process it [10:42:10]SAM_PROTO_GetFMData [10:42:10]wFMCommunicate request_size=4 [10:42:10]MH_SAM_APDU [10:42:10]CAPDU: 80 13 03 00 [10:42:10]Write to MH i2c: E2 08 00 51 02 80 13 03 00 00 00 00 00 D2 [10:42:10]Write i2c OK [10:42:10]MH_I2C_Read... [10:42:10]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:42:10]Read from MH i2c: E2 [10:42:10]MH_I2C_Read... [10:42:10]Read from MH i2c: E2 FD 00 [10:42:10]MH_I2C_Read... [10:42:10]Read from MH i2c: E2 FD 00 51 02 00 C4 04 85 04 C0 04 6E 04 04 00 9B 19 01 00 69 04 A3 00 6F 04 04 00 AB 18 01 00 B1 04 05 00 6D A7 85 A5 01 70 04 05 00 14 26 BB 59 01 72 04 04 00 59 81 CA 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 9B 40 C6 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 17 1E BB 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 4A [10:42:10]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 9B 19 01 00 69 04 A3 00 6F 04 04 00 AB 18 01 00 B1 04 05 00 6D A7 85 A5 01 70 04 05 00 14 26 BB 59 01 72 04 04 00 59 81 CA 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 9B 40 C6 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 17 1E BB 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 [10:42:11]wFMCommunicate OK [10:42:11]wFMCommunicate request_size=4 [10:42:11]MH_SAM_APDU [10:42:11]CAPDU: 80 17 00 00 [10:42:11]Write to MH i2c: E2 08 00 52 02 80 17 00 00 00 00 00 00 D4 [10:42:11]Write i2c OK [10:42:11]MH_I2C_Read... [10:42:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:42:11]Read from MH i2c: E2 [10:42:11]MH_I2C_Read... [10:42:11]Read from MH i2c: E2 FD 00 [10:42:11]MH_I2C_Read... [10:42:11]Read from MH i2c: E2 FD 00 52 02 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 54 [10:42:11]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [10:42:11]wFMCommunicate OK [10:42:11]wFMCommunicate request_size=4 [10:42:11]MH_SAM_APDU [10:42:11]CAPDU: 80 17 00 00 [10:42:11]Write to MH i2c: E2 08 00 53 02 80 17 00 00 00 00 00 00 D5 [10:42:11]Write i2c OK [10:42:11]MH_I2C_Read... [10:42:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:42:11]Read from MH i2c: E2 [10:42:11]MH_I2C_Read... [10:42:11]Read from MH i2c: E2 FD 00 [10:42:11]MH_I2C_Read... [10:42:12]Read from MH i2c: E2 FD 00 53 02 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 EA [10:42:12]RAPDU: 00 70 04 00 00 OFD Sender: No OFD packet to send [10:42:12]72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [10:42:12]wFMCommunicate OK [10:42:12]wFMCommunicate request_size=4 [10:42:12]MH_SAM_APDU [10:42:12]CAPDU: 80 17 00 00 [10:42:12]Write to MH i2c: E2 08 00 54 02 80 17 00 00 00 00 00 00 D6 [10:42:12]Write i2c OK [10:42:12]MH_I2C_Read... [10:42:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:42:12]Read from MH i2c: E2 [10:42:12]MH_I2C_Read... [10:42:12]Read from MH i2c: E2 FD 00 [10:42:12]MH_I2C_Read... [10:42:12]Read from MH i2c: E2 FD 00 54 02 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 4E [10:42:12]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [10:42:13]wFMCommunicate OK [10:42:13]wFMCommunicate request_size=4 [10:42:13]MH_SAM_APDU [10:42:13]CAPDU: 80 17 00 00 [10:42:13]Write to MH i2c: E2 08 00 55 02 80 17 00 00 00 00 00 00 D7 [10:42:13]Write i2c OK [10:42:13]MH_I2C_Read... [10:42:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [10:42:13]Read from MH i2c: E2 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 E1 00 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 E1 00 55 02 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C5 [10:42:13]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:42:13]wFMCommunicate OK [10:42:13]SAM_PROTO_GetFMData done [10:42:13]requested_item fm.sale_refund.total is exist - process it [10:42:13]requested_item fm.buy.total is exist - process it [10:42:13]requested_item shift.sale.total is exist - process it [10:42:13]SAM_PROTO_GetShiftData [10:42:13]wFMCommunicate request_size=4 [10:42:13]MH_SAM_APDU [10:42:13]CAPDU: 80 13 02 00 [10:42:13]Write to MH i2c: E2 08 00 56 02 80 13 02 00 00 00 00 00 D6 [10:42:13]Write i2c OK [10:42:13]MH_I2C_Read... [10:42:14]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:42:14]Read from MH i2c: E2 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: E2 FD 00 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: E2 FD 00 56 02 00 AF 04 AA 04 AB 04 6E 04 04 00 4C 00 00 00 69 04 9C 00 6F 04 04 00 4C 00 00 00 B1 04 03 00 45 2E 99 70 04 03 00 0C 90 86 72 04 03 00 39 9E 12 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 07 45 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 11 5B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 1E [10:42:14]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 4C 00 00 00 69 04 9C 00 6F 04 04 00 4C 00 00 00 B1 04 03 00 45 2E 99 70 04 03 00 0C 90 86 72 04 03 00 39 9E 12 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 07 45 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 11 5B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [10:42:14]wFMCommunicate OK [10:42:14]wFMCommunicate request_size=4 [10:42:14]MH_SAM_APDU [10:42:14]CAPDU: 80 17 00 00 [10:42:14]Write to MH i2c: E2 08 00 57 02 80 17 00 00 00 00 00 00 D9 [10:42:14]Write i2c OK [10:42:14]MH_I2C_Read... [10:42:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:42:14]Read from MH i2c: E2 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: E2 FD 00 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: E2 FD 00 57 02 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 F2 [10:42:15]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [10:42:15]wFMCommunicate OK [10:42:15]wFMCommunicate request_size=4 [10:42:15]MH_SAM_APDU [10:42:15]CAPDU: 80 17 00 00 [10:42:15]Write to MH i2c: E2 08 00 58 02 80 17 00 00 00 00 00 00 DA [10:42:15]Write i2c OK [10:42:15]MH_I2C_Read... [10:42:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:42:15]Read from MH i2c: E2 [10:42:15]MH_I2C_Read... [10:42:15]Read from MH i2c: E2 FD 00 [10:42:15]MH_I2C_Read... [10:42:15]Read from MH i2c: E2 FD 00 58 02 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 8E [10:42:15]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [10:42:15]wFMCommunicate OK [10:42:15]wFMCommunicate request_size=4 [10:42:15]MH_SAM_APDU [10:42:15]CAPDU: 80 17 00 00 [10:42:15]Write to MH i2c: E2 08 00 59 02 80 17 00 00 00 00 00 00 DB [10:42:15]Write i2c OK [10:42:15]MH_I2C_Read... [10:42:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:42:16]Read from MH i2c: E2 [10:42:16]MH_I2C_Read... [10:42:16]Read from MH i2c: E2 FD 00 [10:42:16]MH_I2C_Read... [10:42:16]Read from MH i2c: E2 FD 00 59 02 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 59 [10:42:16]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [10:42:16]wFMCommunicate OK [10:42:16]wFMCommunicate request_size=4 [10:42:16]MH_SAM_APDU [10:42:16]CAPDU: 80 17 00 00 [10:42:16]Write to MH i2c: E2 08 00 5A 02 80 17 00 00 00 00 00 00 DC [10:42:16]Write i2c OK [10:42:16]MH_I2C_Read... [10:42:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [10:42:16]Read from MH i2c: E2 [10:42:16]MH_I2C_Read... [10:42:16]Read from MH i2c: E2 CC 00 [10:42:16]MH_I2C_Read... [10:42:16]Read from MH i2c: E2 CC 00 5A 02 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 BD [10:42:17]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:42:17]wFMCommunicate OK [10:42:17]SAM_PROTO_GetShiftData done [10:42:17]requested_item shift.sale.total_cash is exist - process it [10:42:17]requested_item shift.sale_refund.total is exist - process it [10:42:17]requested_item shift.sale_refund.total_cash is exist - process it [10:42:17]requested_item shift.buy.total is exist - process it [10:42:17]requested_item shift.buy.total_cash is exist - process it [10:42:17]produce_requested_data done [10:42:17]produce_requested_data return {"fm.sale.total":70719670.85,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":100388.53,"shift.sale.total_cash":88187.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [10:42:17]process_action_free get_value [10:42:17]json_value_free [10:42:17]json_value_free done [10:42:17]process_json_proto returns [10:42:17]Send response to host [10:42:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70719670.85,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":100388.53,"shift.sale.total_cash":88187.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [10:42:17]free response buf [10:42:17]execute_script done [10:42:17]execute_script returns [10:42:17]free content buf [10:42:17]Sock 9.Close socket [10:42:17]Sock 9.Thread stoped [10:42:17]accept exits with 8 [10:42:17]New connection [10:42:17]New thread 3067473252 created [10:42:17]Thread 3067329892 joined [10:42:17]Waiting for new connection... [10:42:17] Sock 8.Parse request [10:42:17]Sock 8.Check first char [10:42:17]Sock 8.First char is OK [10:42:17]request: POST /json_proto HTTP/1.0 [10:42:17]Method: POST [10:42:17]URL: /json_proto [10:42:17]Method is POST - this is cgi request [10:42:17]url: /json_proto [10:42:17]query_string will be loaded in cgi processing [10:42:17]execute_cgi json_proto POST (null) [10:42:17]execute_cgi path=json_proto method=POST [10:42:17]POST find Content-Length [10:42:17]Host: 172.17.43.195:8080 [10:42:17]Content-Length: 331 [10:42:17]Content-Type: application/json [10:42:17] [10:42:17]POST finish read [10:42:17]Found Content-Length = 331 [10:42:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:42:17]execute_script... [10:42: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" ] } } [10:42:17]POST & json_proto [10:42:17]process_json_proto [10:42:17]json parsed OK: [10:42:17]protocol is kg_v1.0 [10:42:17]action value=get_value [10:42:17]process_action get_value [10:42:17]cmd_get_value [10:42:17]process_action get_value done [10:42:17]requested_data is exist [10:42:17]produce_requested_data [10:42:17]requested_item fm.sale.total is exist - process it [10:42:17]SAM_PROTO_GetFMData [10:42:17]wFMCommunicate request_size=4 [10:42:17]MH_SAM_APDU [10:42:17]CAPDU: 80 13 03 00 [10:42:17]Write to MH i2c: E2 08 00 5B 02 80 13 03 00 00 00 00 00 DC [10:42:17]Write i2c OK [10:42:17]MH_I2C_Read... [10:42:17]OFD Sender: No OFD packet to send [10:42:17]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:42:17]Read from MH i2c: E2 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: E2 FD 00 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: E2 FD 00 5B 02 00 C4 04 85 04 C0 04 6E 04 04 00 9B 19 01 00 69 04 A3 00 6F 04 04 00 AB 18 01 00 B1 04 05 00 6D A7 85 A5 01 70 04 05 00 14 26 BB 59 01 72 04 04 00 59 81 CA 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 9B 40 C6 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 17 1E BB 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 54 [10:42:18]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 9B 19 01 00 69 04 A3 00 6F 04 04 00 AB 18 01 00 B1 04 05 00 6D A7 85 A5 01 70 04 05 00 14 26 BB 59 01 72 04 04 00 59 81 CA 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 9B 40 C6 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 17 1E BB 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 [10:42:18]wFMCommunicate OK [10:42:18]wFMCommunicate request_size=4 [10:42:18]MH_SAM_APDU [10:42:18]CAPDU: 80 17 00 00 [10:42:18]Write to MH i2c: E2 08 00 5C 02 80 17 00 00 00 00 00 00 DE [10:42:18]Write i2c OK [10:42:18]MH_I2C_Read... [10:42:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:42:18]Read from MH i2c: E2 [10:42:18]MH_I2C_Read... [10:42:18]Read from MH i2c: E2 FD 00 [10:42:18]MH_I2C_Read... [10:42:18]Read from MH i2c: E2 FD 00 5C 02 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 5E [10:42:18]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [10:42:19]wFMCommunicate OK [10:42:19]wFMCommunicate request_size=4 [10:42:19]MH_SAM_APDU [10:42:19]CAPDU: 80 17 00 00 [10:42:19]Write to MH i2c: E2 08 00 5D 02 80 17 00 00 00 00 00 00 DF [10:42:19]Write i2c OK [10:42:19]MH_I2C_Read... [10:42:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:42:19]Read from MH i2c: E2 [10:42:19]MH_I2C_Read... [10:42:19]Read from MH i2c: E2 FD 00 [10:42:19]MH_I2C_Read... [10:42:19]Read from MH i2c: E2 FD 00 5D 02 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 F4 [10:42:19]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [10:42:19]wFMCommunicate OK [10:42:19]wFMCommunicate request_size=4 [10:42:19]MH_SAM_APDU [10:42:19]CAPDU: 80 17 00 00 [10:42:19]Write to MH i2c: E2 08 00 5E 02 80 17 00 00 00 00 00 00 E0 [10:42:19]Write i2c OK [10:42:19]MH_I2C_Read... [10:42:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:42:20]Read from MH i2c: E2 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 FD 00 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 FD 00 5E 02 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 58 [10:42:20]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [10:42:20]wFMCommunicate OK [10:42:20]wFMCommunicate request_size=4 [10:42:20]MH_SAM_APDU [10:42:20]CAPDU: 80 17 00 00 [10:42:20]Write to MH i2c: E2 08 00 5F 02 80 17 00 00 00 00 00 00 E1 [10:42:20]Write i2c OK [10:42:20]MH_I2C_Read... [10:42:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [10:42:20]Read from MH i2c: E2 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 E1 00 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 E1 00 5F 02 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 CF [10:42:20]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:42:21]wFMCommunicate OK [10:42:21]SAM_PROTO_GetFMData done [10:42:21]requested_item fm.sale_refund.total is exist - process it [10:42:21]requested_item fm.buy.total is exist - process it [10:42:21]requested_item shift.sale.total is exist - process it [10:42:21]SAM_PROTO_GetShiftData [10:42:21]wFMCommunicate request_size=4 [10:42:21]MH_SAM_APDU [10:42:21]CAPDU: 80 13 02 00 [10:42:21]Write to MH i2c: E2 08 00 60 02 80 13 02 00 00 00 00 00 E0 [10:42:21]Write i2c OK [10:42:21]MH_I2C_Read... [10:42:21]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:42:21]Read from MH i2c: E2 [10:42:21]MH_I2C_Read... [10:42:21]Read from MH i2c: E2 FD 00 [10:42:21]MH_I2C_Read... [10:42:21]Read from MH i2c: E2 FD 00 60 02 00 AF 04 AA 04 AB 04 6E 04 04 00 4C 00 00 00 69 04 9C 00 6F 04 04 00 4C 00 00 00 B1 04 03 00 45 2E 99 70 04 03 00 0C 90 86 72 04 03 00 39 9E 12 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 07 45 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 11 5B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 28 [10:42:21]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 4C 00 00 00 69 04 9C 00 6F 04 04 00 4C 00 00 00 B1 04 03 00 45 2E 99 70 04 03 00 0C 90 86 72 04 03 00 39 9E 12 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 07 45 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 11 5B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [10:42:22]wFMCommunicate OK [10:42:22]wFMCommunicate request_size=4 [10:42:22]MH_SAM_APDU [10:42:22]CAPDU: 80 17 00 00 [10:42:22]Write to MH i2c: E2 08 00 61 02 80 17 00 00 00 00 00 00 E3 [10:42:22]Write i2c OK [10:42:22]MH_I2C_Read... [10:42:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:42:22]Read from MH i2c: E2 [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: E2 FD 00 [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: E2 FD 00 61 02 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 FC [10:42:22]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 OFD Sender: No OFD packet to send [10:42:22]03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [10:42:22]wFMCommunicate OK [10:42:22]wFMCommunicate request_size=4 [10:42:22]MH_SAM_APDU [10:42:22]CAPDU: 80 17 00 00 [10:42:22]Write to MH i2c: E2 08 00 62 02 80 17 00 00 00 00 00 00 E4 [10:42:22]Write i2c OK [10:42:22]MH_I2C_Read... [10:42:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:42:23]Read from MH i2c: E2 [10:42:23]MH_I2C_Read... [10:42:23]Read from MH i2c: E2 FD 00 [10:42:23]MH_I2C_Read... [10:42:23]Read from MH i2c: E2 FD 00 62 02 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 98 [10:42:23]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [10:42:23]wFMCommunicate OK [10:42:23]wFMCommunicate request_size=4 [10:42:23]MH_SAM_APDU [10:42:23]CAPDU: 80 17 00 00 [10:42:23]Write to MH i2c: E2 08 00 63 02 80 17 00 00 00 00 00 00 E5 [10:42:23]Write i2c OK [10:42:23]MH_I2C_Read... [10:42:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:42:23]Read from MH i2c: E2 [10:42:23]MH_I2C_Read... [10:42:23]Read from MH i2c: E2 FD 00 [10:42:23]MH_I2C_Read... [10:42:23]Read from MH i2c: E2 FD 00 63 02 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 63 [10:42:24]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [10:42:24]wFMCommunicate OK [10:42:24]wFMCommunicate request_size=4 [10:42:24]MH_SAM_APDU [10:42:24]CAPDU: 80 17 00 00 [10:42:24]Write to MH i2c: E2 08 00 64 02 80 17 00 00 00 00 00 00 E6 [10:42:24]Write i2c OK [10:42:24]MH_I2C_Read... [10:42:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [10:42:24]Read from MH i2c: E2 [10:42:24]MH_I2C_Read... [10:42:24]Read from MH i2c: E2 CC 00 [10:42:24]MH_I2C_Read... [10:42:24]Read from MH i2c: E2 CC 00 64 02 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C7 [10:42:24]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:42:25]wFMCommunicate OK [10:42:25]SAM_PROTO_GetShiftData done [10:42:25]requested_item shift.sale.total_cash is exist - process it [10:42:25]requested_item shift.sale_refund.total is exist - process it [10:42:25]requested_item shift.sale_refund.total_cash is exist - process it [10:42:25]requested_item shift.buy.total is exist - process it [10:42:25]requested_item shift.buy.total_cash is exist - process it [10:42:25]produce_requested_data done [10:42:25]produce_requested_data return {"fm.sale.total":70719670.85,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":100388.53,"shift.sale.total_cash":88187.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [10:42:25]process_action_free get_value [10:42:25]json_value_free [10:42:25]json_value_free done [10:42:25]process_json_proto returns [10:42:25]Send response to host [10:42:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70719670.85,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":100388.53,"shift.sale.total_cash":88187.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [10:42:25]free response buf [10:42:25]execute_script done [10:42:25]execute_script returns [10:42:25]free content buf [10:42:25]Sock 8.Close socket [10:42:25]Sock 8.Thread stoped [10:42:25]accept exits with 9 [10:42:25]New connection [10:42:25]New thread 3067329892 created [10:42:25]Thread 3067473252 joined [10:42:25]Waiting for new connection... [10:42:25] Sock 9.Parse request [10:42:25]Sock 9.Check first char [10:42:25]Sock 9.First char is OK [10:42:25]request: POST /json_proto HTTP/1.0 [10:42:25]Method: POST [10:42:25]URL: /json_proto [10:42:25]Method is POST - this is cgi request [10:42:25]url: /json_proto [10:42:25]query_string will be loaded in cgi processing [10:42:25]execute_cgi json_proto POST (null) [10:42:25]execute_cgi path=json_proto method=POST [10:42:25]POST find Content-Length [10:42:25]Host: 172.17.43.195:8080 [10:42:25]Content-Length: 284 [10:42:25]Content-Type: application/json [10:42:25] [10:42:25]POST finish read [10:42:25]Found Content-Length = 284 [10:42:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041A\u0443\u0442\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:25]execute_script... [10:42:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041A\u0443\u0442\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:25]POST & json_proto [10:42:25]process_json_proto [10:42:25]json parsed OK: [10:42:25]protocol is kg_v1.0 [10:42:25]action value=close_shift [10:42:25]process_action close_shift [10:42:25]cmd_close_shift [10:42:25]MH_GetDate [10:42:25]Write to MH i2c: F0 00 00 65 02 56 [10:42:25]Write i2c OK [10:42:25]MH_I2C_Read... [10:42:25]Read from MH i2c: F0 [10:42:25]MH_I2C_Read... [10:42:25]Read from MH i2c: F0 09 00 [10:42:25]MH_I2C_Read... [10:42:25]Read from MH i2c: F0 09 00 65 02 00 92 B0 24 67 74 2C AD 66 DF [10:42:25]GetLastDocTimeStamp 1730457714 [10:42:25]current date 1730457746 [10:42:25]FM_GetShiftState [10:42:25]SAM_PROTO_GetShiftState [10:42:25]wFMCommunicate request_size=4 [10:42:25]MH_SAM_APDU [10:42:25]CAPDU: 80 13 01 00 [10:42:25]Write to MH i2c: E2 08 00 66 02 80 13 01 00 00 00 00 00 E5 [10:42:25]Write i2c OK [10:42:25]MH_I2C_Read... [10:42:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:25]Read from MH i2c: E2 [10:42:25]MH_I2C_Read... [10:42:25]Read from MH i2c: E2 0E 00 [10:42:25]MH_I2C_Read... [10:42:25]Read from MH i2c: E2 0E 00 66 02 00 09 00 01 95 1B 24 67 00 00 00 00 90 00 2C [10:42:25]RAPDU: 09 00 01 95 1B 24 67 00 00 00 00 90 00 [10:42:25]wFMCommunicate OK [10:42:25]SAM_PROTO_GetShiftState done [10:42:25]FM_GetShiftState done [10:42:25]KKMCreateCloseShiftDocument [10:42:25]Load OK [10:42:25]Malloc new data [10:42:25]MH_GetDate [10:42:25]Write to MH i2c: F0 00 00 67 02 58 [10:42:25]Write i2c OK [10:42:25]MH_I2C_Read... [10:42:25]Read from MH i2c: F0 [10:42:25]MH_I2C_Read... [10:42:25]Read from MH i2c: F0 09 00 [10:42:25]MH_I2C_Read... [10:42:25]Read from MH i2c: F0 09 00 67 02 00 92 B0 24 67 74 2C AD 66 E1 [10:42:25]Malloc new data [10:42:25]Malloc new data [10:42:25]Malloc new data [10:42:25]Malloc new data [10:42:25]KKMCreateCloseShiftDocument OK [10:42:25]KKMSetCloseShiftData OK [10:42:25]ProcessDocumentItem done err = 0, tmpTLVsize=79 [10:42:25]tlvbuf is 009FEC90 [10:42:25]KKMLoadAndSignCloseShiftData [10:42:25]SAM_PROTO_ProcessDocument [10:42:25]wFMCommunicate request_size=9 [10:42:25]MH_SAM_APDU [10:42:25]CAPDU: 80 15 01 00 04 05 00 4F 00 [10:42:25]Write to MH i2c: E2 0C 00 68 02 80 15 01 00 04 00 05 00 4F 00 00 00 45 [10:42:25]Write i2c OK [10:42:25]MH_I2C_Read... [10:42:25]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [10:42:25]Read from MH i2c: E2 [10:42:25]MH_I2C_Read... [10:42:25]Read from MH i2c: E2 03 00 [10:42:25]MH_I2C_Read... [10:42:25]Read from MH i2c: E2 03 00 68 02 00 90 00 DE [10:42:25]RAPDU: 90 00 [10:42:25]wFMCommunicate OK [10:42:25]wFMCommunicate request_size=23 [10:42:25]MH_SAM_APDU [10:42:25]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [10:42:25]Write to MH i2c: E2 1A 00 69 02 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 E0 [10:42:25]Write i2c OK [10:42:25]MH_I2C_Read... [10:42:25]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [10:42:25]Read from MH i2c: E2 [10:42:25]MH_I2C_Read... [10:42:25]Read from MH i2c: E2 03 00 [10:42:25]MH_I2C_Read... [10:42:25]Read from MH i2c: E2 03 00 69 02 00 90 00 DF [10:42:25]RAPDU: 90 00 [10:42:25]wFMCommunicate OK [10:42:25]wFMCommunicate request_size=38 [10:42:25]MH_SAM_APDU [10:42:25]CAPDU: 80 15 02 00 21 FD 03 1D 00 D0 9A D1 83 D1 82 D0 BC D0 B0 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 [10:42:25]Write to MH i2c: E2 29 00 6A 02 80 15 02 00 21 00 FD 03 1D 00 D0 9A D1 83 D1 82 D0 BC D0 B0 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 00 00 EA [10:42:25]Write i2c OK [10:42:25]MH_I2C_Read... [10:42:25]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [10:42:25]Read from MH i2c: E2 [10:42:25]MH_I2C_Read... [10:42:25]Read from MH i2c: E2 03 00 [10:42:25]MH_I2C_Read... [10:42:25]Read from MH i2c: E2 03 00 6A 02 00 90 00 E0 [10:42:25]RAPDU: 90 00 [10:42:25]wFMCommunicate OK [10:42:25]wFMCommunicate request_size=13 [10:42:25]MH_SAM_APDU [10:42:25]CAPDU: 80 15 02 00 08 F4 03 04 00 92 B0 24 67 [10:42:25]Write to MH i2c: E2 10 00 6B 02 80 15 02 00 08 00 F4 03 04 00 92 B0 24 67 00 00 C5 [10:42:25]Write i2c OK [10:42:25]MH_I2C_Read... [10:42:25]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [10:42:25]Read from MH i2c: E2 [10:42:25]MH_I2C_Read... [10:42:25]Read from MH i2c: E2 03 00 [10:42:25]MH_I2C_Read... [10:42:25]Read from MH i2c: E2 03 00 6B 02 00 90 00 E1 [10:42:25]RAPDU: 90 00 [10:42:25]wFMCommunicate OK [10:42:25]wFMCommunicate request_size=25 [10:42:25]MH_SAM_APDU [10:42:25]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 [10:42:25]Write to MH i2c: E2 1C 00 6C 02 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 00 00 4F [10:42:25]Write i2c OK [10:42:25]MH_I2C_Read... [10:42:26]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [10:42:26]Read from MH i2c: E2 [10:42:26]MH_I2C_Read... [10:42:26]Read from MH i2c: E2 03 00 [10:42:26]MH_I2C_Read... [10:42:26]Read from MH i2c: E2 03 00 6C 02 00 90 00 E2 [10:42:26]RAPDU: 90 00 [10:42:26]wFMCommunicate OK [10:42:26]wFMCommunicate request_size=4 [10:42:26]MH_SAM_APDU [10:42:26]CAPDU: 80 15 03 00 [10:42:26]Write to MH i2c: E2 08 00 6D 02 80 15 03 00 00 00 00 00 F0 [10:42:26]Write i2c OK [10:42:26]MH_I2C_Read... [10:42:26]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [10:42:26]Read from MH i2c: E2 [10:42:26]MH_I2C_Read... [10:42:26]Read from MH i2c: E2 FD 00 [10:42:26]MH_I2C_Read... [10:42:26]Read from MH i2c: E2 FD 00 6D 02 00 F2 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F8 1D 01 00 0E 04 04 00 2E 02 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4E 00 00 00 AA 04 AB 04 6E 04 04 00 4C 00 00 00 69 04 recv_with_timeout no data received [10:42:26]9C 00 6F 04 04 00 4C 00 00 00 B1 04 03 00 45 2E 99 70 04 03 00 0C 90 86 72 04 03 00 39 9E 12 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 07 45 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 11 5B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 90 00 AF [10:42:26]RAPDU: F2 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F8 1D 01 00 0E 04 04 00 2E 02 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4E 00 00 00 AA 04 AB 04 6E 04 04 00 4C 00 00 00 69 04 9C 00 6F 04 04 00 4C 00 00 00 B1 04 03 00 45 2E 99 70 04 03 00 0C 90 86 72 04 03 00 39 9E 12 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 07 45 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 11 5B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 90 00 [10:42:27]wFMCommunicate OK [10:42:27]SAM_PROTO_ProcessDocument answer len = 1266 [10:42:27]SAM_PROTO_ProcessDocument remain to read = 1018 [10:42:27]wFMCommunicate request_size=4 [10:42:27]MH_SAM_APDU [10:42:27]CAPDU: 80 17 00 00 [10:42:27]Write to MH i2c: E2 08 00 6E 02 80 17 00 00 00 00 00 00 F0 [10:42:27]Write i2c OK [10:42:27]MH_I2C_Read... [10:42:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:42:27]Read from MH i2c: E2 [10:42:27]MH_I2C_Read... [10:42:27]Read from MH i2c: E2 FD 00 [10:42:27]MH_I2C_Read... [10:42:27]Read from MH i2c: E2 FD 00 6E 02 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 90 00 36 [10:42:27]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 OFD Sender: No OFD packet to send [10:42:27]09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 90 00 [10:42:27]wFMCommunicate OK [10:42:27]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [10:42:27]SAM_PROTO_ProcessDocument remain to read = 768 [10:42:27]wFMCommunicate request_size=4 [10:42:27]MH_SAM_APDU [10:42:27]CAPDU: 80 17 00 00 [10:42:27]Write to MH i2c: E2 08 00 6F 02 80 17 00 00 00 00 00 00 F1 [10:42:27]Write i2c OK [10:42:27]MH_I2C_Read... [10:42:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:42:28]Read from MH i2c: E2 [10:42:28]MH_I2C_Read... [10:42:28]Read from MH i2c: E2 FD 00 [10:42:28]MH_I2C_Read... [10:42:28]Read from MH i2c: E2 FD 00 6F 02 00 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 90 00 53 [10:42:28]RAPDU: 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 90 00 [10:42:28]wFMCommunicate OK [10:42:28]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [10:42:28]SAM_PROTO_ProcessDocument remain to read = 518 [10:42:28]wFMCommunicate request_size=4 [10:42:28]MH_SAM_APDU [10:42:28]CAPDU: 80 17 00 00 [10:42:28]Write to MH i2c: E2 08 00 70 02 80 17 00 00 00 00 00 00 F2 [10:42:28]Write i2c OK [10:42:28]MH_I2C_Read... [10:42:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:42:29]Read from MH i2c: E2 [10:42:29]MH_I2C_Read... [10:42:29]Read from MH i2c: E2 FD 00 [10:42:29]MH_I2C_Read... [10:42:29]Read from MH i2c: E2 FD 00 70 02 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 90 00 8D [10:42:29]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 90 00 [10:42:29]wFMCommunicate OK [10:42:29]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [10:42:29]SAM_PROTO_ProcessDocument remain to read = 268 [10:42:29]wFMCommunicate request_size=4 [10:42:29]MH_SAM_APDU [10:42:29]CAPDU: 80 17 00 00 [10:42:29]Write to MH i2c: E2 08 00 71 02 80 17 00 00 00 00 00 00 F3 [10:42:29]Write i2c OK [10:42:29]MH_I2C_Read... [10:42:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:42:29]Read from MH i2c: E2 [10:42:29]MH_I2C_Read... [10:42:29]Read from MH i2c: E2 FD 00 [10:42:29]MH_I2C_Read... [10:42:29]Read from MH i2c: E2 FD 00 71 02 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 90 00 AA [10:42:30]RAPDU: F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 90 00 [10:42:30]wFMCommunicate OK [10:42:30]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [10:42:30]SAM_PROTO_ProcessDocument remain to read = 18 [10:42:30]wFMCommunicate request_size=4 [10:42:30]MH_SAM_APDU [10:42:30]CAPDU: 80 17 00 00 [10:42:30]Write to MH i2c: E2 08 00 72 02 80 17 00 00 00 00 00 00 F4 [10:42:30]Write i2c OK [10:42:30]MH_I2C_Read... [10:42:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 18! [10:42:30]Read from MH i2c: E2 [10:42:30]MH_I2C_Read... [10:42:30]Read from MH i2c: E2 15 00 [10:42:30]MH_I2C_Read... [10:42:30]Read from MH i2c: E2 15 00 72 02 00 03 01 00 06 F7 03 00 00 35 04 06 00 8B 74 F0 EE 56 C4 90 00 34 [10:42:30]RAPDU: 03 01 00 06 F7 03 00 00 35 04 06 00 8B 74 F0 EE 56 C4 90 00 [10:42:30]wFMCommunicate OK [10:42:30]SAM_PROTO_ProcessDocument received (without SW) 18 bytes [10:42:30]SAM_PROTO_ProcessDocument done [10:42:30]1209 (1) - 1.0 - номер версии ФФД [10:42:30]1041 (16) - 0000000000874662 - номер ФМ [10:42:30]1040 (4) - 73208 - номер ФД [10:42:30]1038 (4) - 558 - номер смены [10:42:30]1118 (4) - 76 - количество кассовых чеков за смену [10:42:30]1111 (4) - 78 - общее количество ФД за смену [10:42:30]1194 (1195) - счетчики итогов смены [10:42:30] 1134 (4) - 76 - количество чеков со всеми признаками расчетов [10:42:30] 1129 (156) - счетчики операций «приход» [10:42:30] 1135 (4) - 76 - количество чеков по признаку расчетов [10:42:30] 1201 (3) - 100388.53 - общая итоговая сумма в чеках [10:42:30] 1136 (3) - 88187.00 - итоговая сумма в чеках наличными [10:42:30] 1138 (3) - 12201.53 - итоговая сумма в чеках безналичными [10:42:30] 1024 (123) - суммы налогов [10:42:30] 1006 (9) - суммы НДС [10:42:30] 1010 (1) - 0% - код ставки НДС [10:42:30] 1011 (0) - 0.00 - сумма НДС по ставке [10:42:30] 1006 (12) - суммы НДС [10:42:30] 1010 (1) - 12% - код ставки НДС [10:42:30] 1011 (3) - 10662.47 - сумма НДС по ставке [10:42:30] 1007 (9) - суммы НСП [10:42:30] 1014 (1) - 0% - код ставки НСП [10:42:30] 1015 (0) - 0.00 - сумма НСП по ставке [10:42:30] 1007 (12) - суммы НСП [10:42:30] 1014 (1) - 1% - код ставки НСП [10:42:30] 1015 (3) - 888.49 - сумма НСП по ставке [10:42:30] 1007 (9) - суммы НСП [10:42:30] 1014 (1) - 2% - код ставки НСП [10:42:30] 1015 (0) - 0.00 - сумма НСП по ставке [10:42:30] 1007 (9) - суммы НСП [10:42:30] 1014 (1) - 3% - код ставки НСП [10:42:30] 1015 (0) - 0.00 - сумма НСП по ставке [10:42:30] 1007 (9) - суммы НСП [10:42:30] 1014 (1) - 5% - код ставки НСП [10:42:30] 1015 (0) - 0.00 - сумма НСП по ставке [10:42:30] 1007 (9) - суммы НСП [10:42:30] 1014 (1) - 0,50% - код ставки НСП [10:42:30] 1015 (0) - 0.00 - сумма НСП по ставке [10:42:30] 1007 (9) - суммы НСП [10:42:30] 1014 (1) - 1,50% - код ставки НСП [10:42:30] 1015 (0) - 0.00 - сумма НСП по ставке [10:42:30] 1130 (141) - счетчики операций «возврат прихода» [10:42:30] 1135 (4) - 0 - количество чеков по признаку расчетов [10:42:30] 1201 (0) - 0.00 - общая итоговая сумма в чеках [10:42:30] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [10:42:30] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [10:42:30] 1024 (117) - суммы налогов [10:42:30] 1006 (9) - суммы НДС [10:42:30] 1010 (1) - 0% - код ставки НДС [10:42:30] 1011 (0) - 0.00 - сумма НДС по ставке [10:42:30] 1006 (9) - суммы НДС [10:42:30] 1010 (1) - 12% - код ставки НДС [10:42:30] 1011 (0) - 0.00 - сумма НДС по ставке [10:42:30] 1007 (9) - суммы НСП [10:42:30] 1014 (1) - 0% - код ставки НСП [10:42:30] 1015 (0) - 0.00 - сумма НСП по ставке [10:42:30] 1007 (9) - суммы НСП [10:42:30] 1014 (1) - 1% - код ставки НСП [10:42:30] 1015 (0) - 0.00 - сумма НСП по ставке [10:42:30] 1007 (9) - суммы НСП [10:42:30] 1014 (1) - 2% - код ставки НСП [10:42:30] 1015 (0) - 0.00 - сумма НСП по ставке [10:42:30] 1007 (9) - суммы НСП [10:42:30] 1014 (1) - 3% - код ставки НСП [10:42:30] 1015 (0) - 0.00 - сумма НСП по ставке [10:42:30] 1007 (9) - суммы НСП [10:42:30] 1014 (1) - 5% - код ставки НСП [10:42:30] 1015 (0) - 0.00 - сумма НСП по ставке [10:42:30] 1007 (9) - суммы НСП [10:42:30] 1014 (1) - 0,50% - код ставки НСП [10:42:30] 1015 (0) - 0.00 - сумма НСП по ставке [10:42:30] 1007 (9) - суммы НСП [10:42:30] 1014 (1) - 1,50% - код ставки НСП [10:42:30] 1015 (0) - 0.00 - сумма НСП по ставке [10:42:30] 1131 (141) - счетчики операций «расход» [10:42:30] 1135 (4) - 0 - количество чеков по признаку расчетов [10:42:30] 1201 (0) - 0.00 - общая итоговая сумма в чеках [10:42:30] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [10:42:30] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [10:42:30] 1024 (117) - суммы налогов [10:42:30] 1006 (9) - суммы НДС [10:42:30] 1010 (1) - 0% - код ставки НДС [10:42:31] 1011 (0) - 0.00 - сумма НДС по ставке [10:42:31] 1006 (9) - суммы НДС [10:42:31] 1010 (1) - 12% - код ставки НДС [10:42:31] 1011 (0) - 0.00 - сумма НДС по ставке [10:42:31] 1007 (9) - суммы НСП [10:42:31] 1014 (1) - 0% - код ставки НСП [10:42:31] 1015 (0) - 0.00 - сумма НСП по ставке [10:42:31] 1007 (9) - суммы НСП [10:42:31] 1014 (1) - 1% - код ставки НСП [10:42:31] 1015 (0) - 0.00 - сумма НСП по ставке [10:42:31] 1007 (9) - суммы НСП [10:42:31] 1014 (1) - 2% - код ставки НСП [10:42:31] 1015 (0) - 0.00 - сумма НСП по ставке [10:42:31] 1007 (9) - суммы НСП [10:42:31] 1014 (1) - 3% - код ставки НСП [10:42:31] 1015 (0) - 0.00 - сумма НСП по ставке [10:42:31] 1007 (9) - суммы НСП [10:42:31] 1014 (1) - 5% - код ставки НСП [10:42:31] 1015 (0) - 0.00 - сумма НСП по ставке [10:42:31] 1007 (9) - суммы НСП [10:42:31] 1014 (1) - 0,50% - код ставки НСП [10:42:31] 1015 (0) - 0.00 - сумма НСП по ставке [10:42:31] 1007 (9) - суммы НСП [10:42:31] 1014 (1) - 1,50% - код ставки НСП [10:42:31] 1015 (0) - 0.00 - сумма НСП по ставке [10:42:31] 1132 (141) - счетчики операций «возврат расхода» [10:42:31] 1135 (4) - 0 - количество чеков по признаку расчетов [10:42:31] 1201 (0) - 0.00 - общая итоговая сумма в чеках [10:42:31] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [10:42:31] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [10:42:31] 1024 (117) - суммы налогов [10:42:31] 1006 (9) - суммы НДС [10:42:31] 1010 (1) - 0% - код ставки НДС [10:42:31] 1011 (0) - 0.00 - сумма НДС по ставке [10:42:31] 1006 (9) - суммы НДС [10:42:31] 1010 (1) - 12% - код ставки НДС [10:42:31] 1011 (0) - 0.00 - сумма НДС по ставке [10:42:31] 1007 (9) - суммы НСП [10:42:31] 1014 (1) - 0% - код ставки НСП [10:42:31] 1015 (0) - 0.00 - сумма НСП по ставке [10:42:31] 1007 (9) - суммы НСП [10:42:31] 1014 (1) - 1% - код ставки НСП [10:42:31] 1015 (0) - 0.00 - сумма НСП по ставке [10:42:31] 1007 (9) - суммы НСП [10:42:31] 1014 (1) - 2% - код ставки НСП [10:42:31] 1015 (0) - 0.00 - сумма НСП по ставке [10:42:31] 1007 (9) - суммы НСП [10:42:31] 1014 (1) - 3% - код ставки НСП [10:42:31] 1015 (0) - 0.00 - сумма НСП по ставке [10:42:31] 1007 (9) - суммы НСП [10:42:31] 1014 (1) - 5% - код ставки НСП [10:42:31] 1015 (0) - 0.00 - сумма НСП по ставке [10:42:31] 1007 (9) - суммы НСП [10:42:31] 1014 (1) - 0,50% - код ставки НСП [10:42:31] 1015 (0) - 0.00 - сумма НСП по ставке [10:42:31] 1007 (9) - суммы НСП [10:42:31] 1014 (1) - 1,50% - код ставки НСП [10:42:31] 1015 (0) - 0.00 - сумма НСП по ставке [10:42:31] 1133 (588) - - счетчики коррекции - не используются [10:42:31]1077 (6) - 153334374618820 - ФПД [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1209 (04B9) [10:42:31]Malloc new data [10:42:31]Processing tag 1041 (0411) [10:42:31]Processing tag 1040 (0410) [10:42:31]Malloc new data [10:42:31]Processing tag 1038 (040E) [10:42:31]Malloc new data [10:42:31]Processing tag 1118 (045E) [10:42:31]Malloc new data [10:42:31]Processing tag 1111 (0457) [10:42:31]Malloc new data [10:42:31]Processing tag 1194 (04AA) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1134 (046E) [10:42:31]Malloc new data [10:42:31]Processing tag 1129 (0469) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1135 (046F) [10:42:31]Malloc new data [10:42:31]Processing tag 1201 (04B1) [10:42:31]Malloc new data [10:42:31]Processing tag 1136 (0470) [10:42:31]Malloc new data [10:42:31]Processing tag 1138 (0472) [10:42:31]Malloc new data [10:42:31]Processing tag 1024 (0400) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1006 (03EE) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1010 (03F2) [10:42:31]Malloc new data [10:42:31]Processing tag 1011 (03F3) [10:42:31]Malloc new data [10:42:31]SetTLVBufToDocument err=0 [10:42:31]Processing tag 1006 (03EE) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1010 (03F2) [10:42:31]Malloc new data [10:42:31]Processing tag 1011 (03F3) [10:42:31]Malloc new data [10:42:31]SetTLVBufToDocument err=0 [10:42:31]Processing tag 1007 (03EF) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1014 (03F6) [10:42:31]Malloc new data [10:42:31]Processing tag 1015 (03F7) [10:42:31]Malloc new data [10:42:31]SetTLVBufToDocument err=0 [10:42:31]Processing tag 1007 (03EF) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1014 (03F6) [10:42:31]Malloc new data [10:42:31]Processing tag 1015 (03F7) [10:42:31]Malloc new data [10:42:31]SetTLVBufToDocument err=0 [10:42:31]Processing tag 1007 (03EF) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1014 (03F6) [10:42:31]Malloc new data [10:42:31]Processing tag 1015 (03F7) [10:42:31]Malloc new data [10:42:31]SetTLVBufToDocument err=0 [10:42:31]Processing tag 1007 (03EF) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1014 (03F6) [10:42:31]Malloc new data [10:42:31]Processing tag 1015 (03F7) [10:42:31]Malloc new data [10:42:31]SetTLVBufToDocument err=0 [10:42:31]Processing tag 1007 (03EF) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1014 (03F6) [10:42:31]Malloc new data [10:42:31]Processing tag 1015 (03F7) [10:42:31]Malloc new data [10:42:31]SetTLVBufToDocument err=0 [10:42:31]Processing tag 1007 (03EF) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1014 (03F6) [10:42:31]Malloc new data [10:42:31]Processing tag 1015 (03F7) [10:42:31]Malloc new data [10:42:31]SetTLVBufToDocument err=0 [10:42:31]Processing tag 1007 (03EF) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1014 (03F6) [10:42:31]Malloc new data [10:42:31]Processing tag 1015 (03F7) [10:42:31]Malloc new data [10:42:31]SetTLVBufToDocument err=0 [10:42:31]SetTLVBufToDocument err=0 [10:42:31]SetTLVBufToDocument err=0 [10:42:31]Processing tag 1130 (046A) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1135 (046F) [10:42:31]Malloc new data [10:42:31]Processing tag 1201 (04B1) [10:42:31]Malloc new data [10:42:31]Processing tag 1136 (0470) [10:42:31]Malloc new data [10:42:31]Processing tag 1138 (0472) [10:42:31]Malloc new data [10:42:31]Processing tag 1024 (0400) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1006 (03EE) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1010 (03F2) [10:42:31]Malloc new data [10:42:31]Processing tag 1011 (03F3) [10:42:31]Malloc new data [10:42:31]SetTLVBufToDocument err=0 [10:42:31]Processing tag 1006 (03EE) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1010 (03F2) [10:42:31]Malloc new data [10:42:31]Processing tag 1011 (03F3) [10:42:31]Malloc new data [10:42:31]SetTLVBufToDocument err=0 [10:42:31]Processing tag 1007 (03EF) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1014 (03F6) [10:42:31]Malloc new data [10:42:31]Processing tag 1015 (03F7) [10:42:31]Malloc new data [10:42:31]SetTLVBufToDocument err=0 [10:42:31]Processing tag 1007 (03EF) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1014 (03F6) [10:42:31]Malloc new data [10:42:31]Processing tag 1015 (03F7) [10:42:31]Malloc new data [10:42:31]SetTLVBufToDocument err=0 [10:42:31]Processing tag 1007 (03EF) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1014 (03F6) [10:42:31]Malloc new data [10:42:31]Processing tag 1015 (03F7) [10:42:31]Malloc new data [10:42:31]SetTLVBufToDocument err=0 [10:42:31]Processing tag 1007 (03EF) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1014 (03F6) [10:42:31]Malloc new data [10:42:31]Processing tag 1015 (03F7) [10:42:31]Malloc new data [10:42:31]SetTLVBufToDocument err=0 [10:42:31]Processing tag 1007 (03EF) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1014 (03F6) [10:42:31]Malloc new data [10:42:31]Processing tag 1015 (03F7) [10:42:31]Malloc new data [10:42:31]SetTLVBufToDocument err=0 [10:42:31]Processing tag 1007 (03EF) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1014 (03F6) [10:42:31]Malloc new data [10:42:31]Processing tag 1015 (03F7) [10:42:31]Malloc new data [10:42:31]SetTLVBufToDocument err=0 [10:42:31]Processing tag 1007 (03EF) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1014 (03F6) [10:42:31]Malloc new data [10:42:31]Processing tag 1015 (03F7) [10:42:31]Malloc new data [10:42:31]SetTLVBufToDocument err=0 [10:42:31]SetTLVBufToDocument err=0 [10:42:31]SetTLVBufToDocument err=0 [10:42:31]Processing tag 1131 (046B) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1135 (046F) [10:42:31]Malloc new data [10:42:31]Processing tag 1201 (04B1) [10:42:31]Malloc new data [10:42:31]Processing tag 1136 (0470) [10:42:31]Malloc new data [10:42:31]Processing tag 1138 (0472) [10:42:31]Malloc new data [10:42:31]Processing tag 1024 (0400) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1006 (03EE) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1010 (03F2) [10:42:31]Malloc new data [10:42:31]Processing tag 1011 (03F3) [10:42:31]Malloc new data [10:42:31]SetTLVBufToDocument err=0 [10:42:31]Processing tag 1006 (03EE) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1010 (03F2) [10:42:31]Malloc new data [10:42:31]Processing tag 1011 (03F3) [10:42:31]Malloc new data [10:42:31]SetTLVBufToDocument err=0 [10:42:31]Processing tag 1007 (03EF) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1014 (03F6) [10:42:31]Malloc new data [10:42:31]Processing tag 1015 (03F7) [10:42:31]Malloc new data [10:42:31]SetTLVBufToDocument err=0 [10:42:31]Processing tag 1007 (03EF) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1014 (03F6) [10:42:31]Malloc new data [10:42:31]Processing tag 1015 (03F7) [10:42:31]Malloc new data [10:42:31]SetTLVBufToDocument err=0 [10:42:31]Processing tag 1007 (03EF) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1014 (03F6) [10:42:31]Malloc new data [10:42:31]Processing tag 1015 (03F7) [10:42:31]Malloc new data [10:42:31]SetTLVBufToDocument err=0 [10:42:31]Processing tag 1007 (03EF) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1014 (03F6) [10:42:31]Malloc new data [10:42:31]Processing tag 1015 (03F7) [10:42:31]Malloc new data [10:42:31]SetTLVBufToDocument err=0 [10:42:31]Processing tag 1007 (03EF) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1014 (03F6) [10:42:31]Malloc new data [10:42:31]Processing tag 1015 (03F7) [10:42:31]Malloc new data [10:42:31]SetTLVBufToDocument err=0 [10:42:31]Processing tag 1007 (03EF) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1014 (03F6) [10:42:31]Malloc new data [10:42:31]Processing tag 1015 (03F7) [10:42:31]Malloc new data [10:42:31]SetTLVBufToDocument err=0 [10:42:31]Processing tag 1007 (03EF) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1014 (03F6) [10:42:31]Malloc new data [10:42:31]Processing tag 1015 (03F7) [10:42:31]Malloc new data [10:42:31]SetTLVBufToDocument err=0 [10:42:31]SetTLVBufToDocument err=0 [10:42:31]SetTLVBufToDocument err=0 [10:42:31]Processing tag 1132 (046C) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1135 (046F) [10:42:31]Malloc new data [10:42:31]Processing tag 1201 (04B1) [10:42:31]Malloc new data [10:42:31]Processing tag 1136 (0470) [10:42:31]Malloc new data [10:42:31]Processing tag 1138 (0472) [10:42:31]Malloc new data [10:42:31]Processing tag 1024 (0400) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1006 (03EE) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1010 (03F2) [10:42:31]Malloc new data [10:42:31]Processing tag 1011 (03F3) [10:42:31]Malloc new data [10:42:31]SetTLVBufToDocument err=0 [10:42:31]Processing tag 1006 (03EE) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1010 (03F2) [10:42:31]Malloc new data [10:42:31]Processing tag 1011 (03F3) [10:42:31]Malloc new data [10:42:31]SetTLVBufToDocument err=0 [10:42:31]Processing tag 1007 (03EF) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1014 (03F6) [10:42:31]Malloc new data [10:42:31]Processing tag 1015 (03F7) [10:42:31]Malloc new data [10:42:31]SetTLVBufToDocument err=0 [10:42:31]Processing tag 1007 (03EF) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1014 (03F6) [10:42:31]Malloc new data [10:42:31]Processing tag 1015 (03F7) [10:42:31]Malloc new data [10:42:31]SetTLVBufToDocument err=0 [10:42:31]Processing tag 1007 (03EF) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1014 (03F6) [10:42:31]Malloc new data [10:42:31]Processing tag 1015 (03F7) [10:42:31]Malloc new data [10:42:31]SetTLVBufToDocument err=0 [10:42:31]Processing tag 1007 (03EF) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1014 (03F6) [10:42:31]Malloc new data [10:42:31]Processing tag 1015 (03F7) [10:42:31]Malloc new data [10:42:31]SetTLVBufToDocument err=0 [10:42:31]Processing tag 1007 (03EF) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1014 (03F6) [10:42:31]Malloc new data [10:42:31]Processing tag 1015 (03F7) [10:42:31]Malloc new data [10:42:31]SetTLVBufToDocument err=0 [10:42:31]Processing tag 1007 (03EF) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1014 (03F6) [10:42:31]Malloc new data [10:42:31]Processing tag 1015 (03F7) [10:42:31]Malloc new data [10:42:31]SetTLVBufToDocument err=0 [10:42:31]Processing tag 1007 (03EF) [10:42:31]Load OK [10:42:31]SetTLVBufToDocument [10:42:31]Processing tag 1014 (03F6) [10:42:31]Malloc new data [10:42:31]Processing tag 1015 (03F7) [10:42:31]Malloc new data [10:42:31]SetTLVBufToDocument err=0 [10:42:31]SetTLVBufToDocument err=0 [10:42:31]SetTLVBufToDocument err=0 [10:42:31]Processing tag 1133 (046D) [10:42:31]Malloc new data [10:42:31]SetTLVBufToDocument err=0 [10:42:31]Processing tag 1077 (0435) [10:42:31]Malloc new data [10:42:31]SetTLVBufToDocument err=0 [10:42:31]Malloc new data [10:42:31]SAM_PROTO_GetFMData [10:42:31]wFMCommunicate request_size=4 [10:42:31]MH_SAM_APDU [10:42:31]CAPDU: 80 13 03 00 [10:42:31]Write to MH i2c: E2 08 00 73 02 80 13 03 00 00 00 00 00 F4 [10:42:31]Write i2c OK [10:42:31]MH_I2C_Read... [10:42:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:42:32]Read from MH i2c: E2 [10:42:32]MH_I2C_Read... [10:42:32]Read from MH i2c: E2 FD 00 [10:42:32]MH_I2C_Read... [10:42:32]Read from MH i2c: E2 FD 00 73 02 00 C4 04 85 04 C0 04 6E 04 04 00 9B 19 01 00 69 04 A3 00 6F 04 04 00 AB 18 01 00 B1 04 05 00 6D A7 85 A5 01 70 04 05 00 14 26 BB 59 01 72 04 04 00 59 81 CA 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 9B 40 C6 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 17 1E BB 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 6C [10:42:32]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 9B 19 01 00 69 04 A3 00 6F 04 04 00 AB 18 01 00 B1 04 05 00 6D A7 85 A5 01 70 04 05 00 14 26 BB 59 01 72 04 04 00 59 81 CA 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 9B 40 C6 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 17 1E BB 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 [10:42:32]wFMCommunicate OK [10:42:32]wFMCommunicate request_size=4 [10:42:32]MH_SAM_APDU [10:42:32]CAPDU: 80 17 00 00 [10:42:32]Write to MH i2c: E2 08 00 74 02 80 17 00 00 00 00 00 00 F6 [10:42:32]Write i2c OK [10:42:32]MH_I2C_Read... [10:42:32]OFD Sender: No OFD packet to send [10:42:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:42:33]Read from MH i2c: E2 [10:42:33]MH_I2C_Read... [10:42:33]Read from MH i2c: E2 FD 00 [10:42:33]MH_I2C_Read... [10:42:33]Read from MH i2c: E2 FD 00 74 02 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 76 [10:42:33]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [10:42:33]wFMCommunicate OK [10:42:33]wFMCommunicate request_size=4 [10:42:33]MH_SAM_APDU [10:42:33]CAPDU: 80 17 00 00 [10:42:33]Write to MH i2c: E2 08 00 75 02 80 17 00 00 00 00 00 00 F7 [10:42:33]Write i2c OK [10:42:33]MH_I2C_Read... [10:42:33]Read from MH i2c: E2 [10:42:33]MH_I2C_Read... [10:42:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:42:33]Read from MH i2c: E2 FD 00 [10:42:33]MH_I2C_Read... [10:42:33]Read from MH i2c: E2 FD 00 75 02 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 0C [10:42:34]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [10:42:34]wFMCommunicate OK [10:42:34]wFMCommunicate request_size=4 [10:42:34]MH_SAM_APDU [10:42:34]CAPDU: 80 17 00 00 [10:42:34]Write to MH i2c: E2 08 00 76 02 80 17 00 00 00 00 00 00 F8 [10:42:34]Write i2c OK [10:42:34]MH_I2C_Read... [10:42:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:42:34]Read from MH i2c: E2 [10:42:34]MH_I2C_Read... [10:42:34]Read from MH i2c: E2 FD 00 [10:42:34]MH_I2C_Read... [10:42:34]Read from MH i2c: E2 FD 00 76 02 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 70 [10:42:35]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [10:42:35]wFMCommunicate OK [10:42:35]wFMCommunicate request_size=4 [10:42:35]MH_SAM_APDU [10:42:35]CAPDU: 80 17 00 00 [10:42:35]Write to MH i2c: E2 08 00 77 02 80 17 00 00 00 00 00 00 F9 [10:42:35]Write i2c OK [10:42:35]MH_I2C_Read... [10:42:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [10:42:35]Read from MH i2c: E2 [10:42:35]MH_I2C_Read... [10:42:35]Read from MH i2c: E2 E1 00 [10:42:35]MH_I2C_Read... [10:42:35]Read from MH i2c: E2 E1 00 77 02 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E7 [10:42:35]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:42:36]wFMCommunicate OK [10:42:36]SAM_PROTO_GetFMData done [10:42:36]Malloc new data [10:42:36]Malloc new data [10:42:36]Malloc new data [10:42:36]Malloc new data [10:42:36]KKMLoadAndSignCloseShiftData err=0 [10:42:36]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Кутманалиева Н. 01.11.2024 10:42 Смена: 558 РНМ: 0000000000091644 ЗНМ: 0300000087 СНО: Общий режим Чеков за смену: 76 ФД за смену: 78 Всего чеков: 76 ИТОГИ ПРИХОД Чеков: 76 Общий итог: 100388.53 Итого наличными: 88187.00 Итого безнал.: 12201.53 НДС 0% : 0.00 НДС 12% : 10662.47 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 888.49 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 88187.00 НС Приход: 70719670.85 НС Возвр.Прихода: 837831.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 73208 ФМ: 0000000000874662 ФПД: 153334374618820 [10:42:36]StoreToDocumentArchive [10:42:36]shift 558 fd 73208 [10:42:36]save to /storage/0558/doc_00073208 [10:42:36]save last doc name /storage/0558/doc_00073208 to /storage/kkm_last_doc_name [10:42:36]save OK [10:42:36]Clear old archive folders... [10:42:36]Remove dir /storage/0522 [10:42:36]opendir ok [10:42:36]file . [10:42:36]file .. [10:42:36]file doc_1730457723 [10:42:36]remove file /storage/0522/doc_1730457723 [10:42:36]remove dir /storage/0522 [10:42:36]NVStorageSaveData kkm_registers [10:42:36]File name is /storage/kkm_registers [10:42:36]Write 24 bytes [10:42:36]NVStorageSaveData done [10:42:36]NVStorageSaveData kkm_registers [10:42:36]File name is /storage/kkm_registers [10:42:36]Write 24 bytes [10:42:36]NVStorageSaveData done [10:42:36]ProcessDocumentItem done err = 0, tmpTLVsize=1388 [10:42:36]tlvbuf is 00959130 [10:42:36]SAM_PROTO_ClearQueue [10:42:36]wFMCommunicate request_size=4 [10:42:36]MH_SAM_APDU [10:42:36]CAPDU: 80 09 00 00 [10:42:36]Write to MH i2c: E2 08 00 78 02 80 09 00 00 00 00 00 00 EC [10:42:36]Write i2c OK [10:42:36]MH_I2C_Read... [10:42:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:42:36]Read from MH i2c: E2 [10:42:36]MH_I2C_Read... [10:42:36]Read from MH i2c: E2 03 00 [10:42:36]MH_I2C_Read... [10:42:36]Read from MH i2c: E2 03 00 78 02 00 90 00 EE [10:42:36]RAPDU: 90 00 [10:42:36]wFMCommunicate OK [10:42:36]SAM_PROTO_ClearQueue done [10:42:36]KKMCreateOFDPacket [10:42:36]OFDProtocolAddRootSTLVToBuf [10:42:36]FM_MakeSignedData [10:42:36]FM_MakeSignedData [10:42:36]SAM_PROTO_SignData [10:42:36]wFMCommunicate request_size=4 [10:42:36]MH_SAM_APDU [10:42:36]CAPDU: 80 0D 01 02 [10:42:36]Write to MH i2c: E2 08 00 79 02 80 0D 01 02 00 00 00 00 F4 [10:42:36]Write i2c OK [10:42:36]MH_I2C_Read... [10:42:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:42:36]Read from MH i2c: E2 [10:42:36]MH_I2C_Read... [10:42:36]Read from MH i2c: E2 03 00 [10:42:36]MH_I2C_Read... [10:42:36]Read from MH i2c: E2 03 00 79 02 00 90 00 EF [10:42:36]RAPDU: 90 00 [10:42:36]wFMCommunicate OK [10:42:36]wFMCommunicate request_size=255 [10:42:36]MH_SAM_APDU [10:42:36]CAPDU: 80 0D 02 02 FA 05 00 6C 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 1D 00 D0 9A D1 83 D1 82 D0 BC D0 B0 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F4 03 04 00 92 B0 24 67 0E 04 04 00 2E 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 5E 04 04 00 4C 00 00 00 57 04 04 00 4E 00 00 00 AA 04 D6 04 6E 04 04 00 4C 00 00 00 69 04 A3 00 6F 04 04 00 4C 00 00 00 B1 04 03 00 45 2E 99 70 04 03 00 0C 90 86 72 04 03 00 39 9E 12 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 07 45 10 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 [10:42:36]Write to MH i2c: E2 02 01 7A 02 80 0D 02 02 FA 00 05 00 6C 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 1D 00 D0 9A D1 83 D1 82 D0 BC D0 B0 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F4 03 04 00 92 B0 24 67 0E 04 04 00 2E 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 5E 04 04 00 4C 00 00 00 57 04 04 00 4E 00 00 00 AA 04 D6 04 6E 04 04 00 4C 00 00 00 69 04 A3 00 6F 04 04 00 4C 00 00 00 B1 04 03 00 45 2E 99 70 04 03 00 0C 90 86 72 04 03 00 39 9E 12 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 07 45 10 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 00 B5 [10:42:37]Write i2c OK [10:42:37]MH_I2C_Read... [10:42:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:37]Read from MH i2c: E2 [10:42:37]MH_I2C_Read... [10:42:37]Read from MH i2c: E2 03 00 [10:42:37]MH_I2C_Read... [10:42:37]Read from MH i2c: E2 03 00 7A 02 00 90 00 F0 [10:42:37]RAPDU: 90 00 [10:42:37]wFMCommunicate OK [10:42:37]wFMCommunicate request_size=255 [10:42:37]MH_SAM_APDU [10:42:37]CAPDU: 80 0D 02 02 FA 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 11 5B 01 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 [10:42:37]Write to MH i2c: E2 02 01 7B 02 80 0D 02 02 FA 00 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 11 5B 01 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 00 D5 [10:42:38]OFD Sender: No OFD packet to send [10:42:38]Write i2c OK [10:42:38]MH_I2C_Read... [10:42:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:38]Read from MH i2c: E2 [10:42:38]MH_I2C_Read... [10:42:38]Read from MH i2c: E2 03 00 [10:42:38]MH_I2C_Read... [10:42:38]Read from MH i2c: E2 03 00 7B 02 00 90 00 F1 [10:42:38]RAPDU: 90 00 [10:42:38]wFMCommunicate OK [10:42:38]wFMCommunicate request_size=255 [10:42:38]MH_SAM_APDU [10:42:38]CAPDU: 80 0D 02 02 FA 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 [10:42:38]Write to MH i2c: E2 02 01 7C 02 80 0D 02 02 FA 00 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 00 00 B2 [10:42:38]Write i2c OK [10:42:38]MH_I2C_Read... [10:42:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:39]Read from MH i2c: E2 [10:42:39]MH_I2C_Read... [10:42:39]Read from MH i2c: E2 03 00 [10:42:39]MH_I2C_Read... [10:42:39]Read from MH i2c: E2 03 00 7C 02 00 90 00 F2 [10:42:39]RAPDU: 90 00 [10:42:39]wFMCommunicate OK [10:42:39]wFMCommunicate request_size=255 [10:42:39]MH_SAM_APDU [10:42:39]CAPDU: 80 0D 02 02 FA 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 [10:42:39]Write to MH i2c: E2 02 01 7D 02 80 0D 02 02 FA 00 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 00 00 BC [10:42:39]Write i2c OK [10:42:39]MH_I2C_Read... [10:42:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:40]Read from MH i2c: E2 [10:42:40]MH_I2C_Read... [10:42:40]Read from MH i2c: E2 03 00 [10:42:40]MH_I2C_Read... [10:42:40]Read from MH i2c: E2 03 00 7D 02 00 90 00 F3 [10:42:40]RAPDU: 90 00 [10:42:40]wFMCommunicate OK [10:42:40]wFMCommunicate request_size=255 [10:42:40]MH_SAM_APDU [10:42:40]CAPDU: 80 0D 02 02 FA 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 [10:42:40]Write to MH i2c: E2 02 01 7E 02 80 0D 02 02 FA 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 00 00 9B [10:42:41]Write i2c OK [10:42:41]MH_I2C_Read... [10:42:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:41]Read from MH i2c: E2 [10:42:41]MH_I2C_Read... [10:42:41]Read from MH i2c: E2 03 00 [10:42:41]MH_I2C_Read... [10:42:41]Read from MH i2c: E2 03 00 7E 02 00 90 00 F4 [10:42:41]RAPDU: 90 00 [10:42:41]wFMCommunicate OK [10:42:41]wFMCommunicate request_size=147 [10:42:41]MH_SAM_APDU [10:42:41]CAPDU: 80 0D 02 02 8E EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F8 1D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 35 04 06 00 8B 74 F0 EE 56 C4 [10:42:41]Write to MH i2c: E2 96 00 7F 02 80 0D 02 02 8E 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F8 1D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 35 04 06 00 8B 74 F0 EE 56 C4 00 00 46 [10:42:41]Write i2c OK [10:42:41]MH_I2C_Read... [10:42:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:41]Read from MH i2c: E2 [10:42:41]MH_I2C_Read... [10:42:41]Read from MH i2c: E2 03 00 [10:42:41]MH_I2C_Read... [10:42:41]Read from MH i2c: E2 03 00 7F 02 00 90 00 F5 [10:42:41]RAPDU: 90 00 [10:42:41]wFMCommunicate OK [10:42:41]wFMCommunicate request_size=4 [10:42:41]MH_SAM_APDU [10:42:41]CAPDU: 80 0D 03 02 [10:42:41]Write to MH i2c: E2 08 00 80 02 80 0D 03 02 00 00 00 00 FD [10:42:41]Write i2c OK [10:42:41]MH_I2C_Read... [10:42:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:42:41]Read from MH i2c: E2 [10:42:41]MH_I2C_Read... [10:42:42]Read from MH i2c: E2 0B 00 [10:42:42]MH_I2C_Read... [10:42:42]Read from MH i2c: E2 0B 00 80 02 00 59 F0 76 38 2C F6 9D C6 90 00 7A [10:42:42]RAPDU: 59 F0 76 38 2C F6 9D C6 90 00 [10:42:42]wFMCommunicate OK [10:42:42]SAM_PROTO_SignData done [10:42:42]FM_MakeSignedData done [10:42:42]CreateOFDProtocolMessage [10:42:42]wFMCommunicate request_size=4 [10:42:42]MH_SAM_APDU [10:42:42]CAPDU: 80 11 00 00 [10:42:42]Write to MH i2c: E2 08 00 81 02 80 11 00 00 00 00 00 00 FD [10:42:42]Write i2c OK [10:42:42]MH_I2C_Read... [10:42:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:42]Read from MH i2c: E2 [10:42:42]MH_I2C_Read... [10:42:42]Read from MH i2c: E2 17 00 [10:42:42]MH_I2C_Read... [10:42:42]Read from MH i2c: E2 17 00 81 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 51 [10:42:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:42:42]wFMCommunicate OK [10:42:42]CreateOFDProtocolMessage done [10:42:42]OFDSenderStorePacket 73208 [10:42:42]StoreOFDPacket docnum=73208 [10:42:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 80 05 00 00 A8 FD 78 05 C0 2C 5A 05 01 00 05 00 6C 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 1D 00 D0 9A D1 83 D1 82 D0 BC D0 B0 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F4 03 04 00 92 B0 24 67 0E 04 04 00 2E 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 5E 04 04 00 4C 00 00 00 57 04 04 00 4E 00 00 00 AA 04 D6 04 6E 04 04 00 4C 00 00 00 69 04 A3 00 6F 04 04 00 4C 00 00 00 B1 04 03 00 45 2E 99 70 04 03 00 0C 90 86 72 04 03 00 39 9E 12 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 07 45 10 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 11 5B 01 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 F8 1D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 35 04 06 00 8B 74 F0 EE 56 C4 59 F0 76 38 2C F6 9D C6 [10:42:42]CheckFolder [10:42:42]dirname=/storage/ofd_packets [10:42:42]CheckFolder done [10:42:42]ProducePacketName [10:42:42]name=ofd_packets/00073208 [10:42:42]NVStorageSaveData ofd_packets/00073208 [10:42:42]File name is /storage/ofd_packets/00073208 [10:42:42]Write 1438 bytes [10:42:42]NVStorageSaveData done [10:42:42]OFDSenderStorePacket done [10:42:42]KKMCreateOFDPacket done [10:42:42]NVStorageSaveData kkm_last_timestamp [10:42:42]File name is /storage/kkm_last_timestamp [10:42:42]Write 4 bytes [10:42:42]NVStorageSaveData done [10:42:42]ExternCall_PrintAddStr [10:42:42]wPrintStart [10:42:42]Write to MH i2c: 01 00 00 82 02 84 [10:42:42]Write i2c OK [10:42:42]MH_I2C_Read... [10:42:42]Read from MH i2c: 01 [10:42:42]MH_I2C_Read... [10:42:42]OFD Sender: Processing packet 73208 [packets to send 282, broken 281] [10:42:42]ProducePacketName [10:42:42]name=ofd_packets/00073208 [10:42:42]OFD Sender: To server: pG, [10:42:42]CommunicateWithHost lk.salyk.kg:30040 [10:42:42]ConnectInit lk.salyk.kg [10:42:42]Read from MH i2c: 01 07 00 [10:42:42]MH_I2C_Read... [10:42:42]Read from MH i2c: 01 07 00 82 02 00 00 00 00 00 FF 0F 99 [10:42:42]RasterBufferAndPrint [10:42:42]line Отчет о закрытии смены [10:42:42]line ФФД: 1.0 [10:42:42]line ИНН: 02508201610067 [10:42:42]line Кассир: Кутманалиева Н. [10:42:42]line 01.11.2024 10:42 [10:42:42]line Смена: 558 [10:42:42]line РНМ: 0000000000091644 [10:42:42]line ЗНМ: 0300000087 [10:42:42]line СНО: Общий режим [10:42:42]line Чеков за смену: 76 [10:42:42]line ФД за смену: 78 [10:42:42]line Всего чеков: 76 [10:42:42]line ИТОГИ ПРИХОД [10:42:42]line Чеков: 76 [10:42:42]line Общий итог: 100388.53 [10:42:42]line Итого наличными: 88187.00 [10:42:42]line Итого безнал.: 12201.53 [10:42:42]line НДС 0% : 0.00 [10:42:42]line НДС 12% : 10662.47 [10:42:42]line НСП 0% : 0.00 [10:42:42]line НСП 1,50% : 0.00 [10:42:42]line НСП 0,50% : 0.00 [10:42:42]line НСП 5% : 0.00 [10:42:42]line НСП 3% : 0.00 [10:42:42]line НСП 2% : 0.00 [10:42:42]line НСП 1% : 888.49 [10:42:42]line ИТОГИ ВОЗВРАТ ПРИХОДА [10:42:42]line Чеков: 0 [10:42:42]line Общий итог: 0.00 [10:42:42]line Итого наличными: 0.00 [10:42:42]line Итого безнал.: 0.00 [10:42:42]line НДС 0% : 0.00 [10:42:42]line НДС 12% : 0.00 [10:42:42]line НСП 0% : 0.00 [10:42:42]line НСП 1,50% : 0.00 [10:42:42]line НСП 0,50% : 0.00 [10:42:42]line НСП 5% : 0.00 [10:42:42]line НСП 3% : 0.00 [10:42:42]line НСП 2% : 0.00 [10:42:42]line НСП 1% : 0.00 [10:42:42]line ИТОГИ РАСХОД [10:42:42]line Чеков: 0 [10:42:42]line Общий итог: 0.00 [10:42:42]line Итого наличными: 0.00 [10:42:42]line Итого безнал.: 0.00 [10:42:42]line НДС 0% : 0.00 [10:42:42]line НДС 12% : 0.00 [10:42:42]line НСП 0% : 0.00 [10:42:42]line НСП 1,50% : 0.00 [10:42:42]line НСП 0,50% : 0.00 [10:42:42]line НСП 5% : 0.00 [10:42:42]line НСП 3% : 0.00 [10:42:42]line НСП 2% : 0.00 [10:42:42]line НСП 1% : 0.00 [10:42:42]line ИТОГИ ВОЗВРАТ РАСХОДА [10:42:42]line Чеков: 0 [10:42:42]line Общий итог: 0.00 [10:42:42]line Итого наличными: 0.00 [10:42:42]line Итого безнал.: 0.00 [10:42:42]line НДС 0% : 0.00 [10:42:42]line НДС 12% : 0.00 [10:42:42]line НСП 0% : 0.00 [10:42:42]line НСП 1,50% : 0.00 [10:42:42]line НСП 0,50% : 0.00 [10:42:42]line НСП 5% : 0.00 [10:42:42]line НСП 3% : 0.00 [10:42:42]line НСП 2% : 0.00 [10:42:42]line НСП 1% : 0.00 [10:42:42]line Сумма внесений: 0.00 [10:42:42]line Сумма выплат: 0.00 [10:42:42]line Нал. в кассе: 88187.00 [10:42:42]line НС Приход: 70719670.85 [10:42:42]line НС Возвр.Прихода: 837831.00 [10:42:42]line НС Расход: 0.00 [10:42:42]line НС Возвр.Расхода: 0.00 [10:42:42]line ФД: 73208 [10:42:42]line ФМ: 0000000000874662 [10:42:42]line ФПД: 153334374618820 [10:42:42]written 0, free lines is 4095 [10:42:43]Write to MH i2c: 01 00 00 D2 02 D4 [10:42:43]Write i2c OK [10:42:43]MH_I2C_Read... [10:42:43]Read from MH i2c: 01 [10:42:43]MH_I2C_Read... [10:42:43]Read from MH i2c: 01 07 00 [10:42:43]MH_I2C_Read... [10:42:43]Read from MH i2c: 01 07 00 D2 02 00 00 00 00 00 69 0A 4E [10:42:43]RasterBufferAndPrint [10:42:43]line [10:42:43]line [10:42:43]line [10:42:43]line [10:42:43]line [10:42:43]written 0, free lines is 2734 [10:42:43]MH_Cut [10:42:43]Write to MH i2c: D1 01 00 D9 02 01 AD [10:42:43]Write i2c OK [10:42:43]MH_I2C_Read... [10:42:43]Read from MH i2c: D1 [10:42:43]MH_I2C_Read... [10:42:43]Read from MH i2c: D1 01 00 [10:42:43]MH_I2C_Read... [10:42:43]Read from MH i2c: D1 01 00 D9 02 00 AC [10:42:43]Write to MH i2c: 01 00 00 DA 02 DC [10:42:43]Write i2c OK [10:42:43]MH_I2C_Read... [10:42:44]*** Cut start [10:42:44]*** Partial cut [10:42:44]*** CUTSNS_PIN = 1 [10:42:44]*** CUTSNS_PIN = 0 [10:42:44]*** Brake cut motor [10:42:45]Read from MH i2c: 01 [10:42:45]MH_I2C_Read... [10:42:45]*** Stop cut motor [10:42:45]*** Cut end [10:42:45]Read from MH i2c: 01 07 00 [10:42:45]MH_I2C_Read... [10:42:45]Read from MH i2c: 01 07 00 DA 02 00 00 00 00 00 FF 0F F1 [10:42:45]process_action close_shift done [10:42:45]requested_data is exist [10:42:45]produce_requested_data [10:42:45]requested_item fd.num is exist - process it [10:42:45]SAM_PROTO_GetFieldsCounters [10:42:45]wFMCommunicate request_size=4 [10:42:45]MH_SAM_APDU [10:42:45]CAPDU: 80 13 00 00 [10:42:45]Write to MH i2c: E2 08 00 DB 02 80 13 00 00 00 00 00 00 59 [10:42:45]Write i2c OK [10:42:45]MH_I2C_Read... [10:42:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:45]Read from MH i2c: E2 [10:42:45]MH_I2C_Read... [10:42:45]Read from MH i2c: E2 62 00 [10:42:45]MH_I2C_Read... [10:42:45]Read from MH i2c: E2 62 00 DB 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F8 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [10:42:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 F8 1D 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:42:45]wFMCommunicate OK [10:42:45]SAM_PROTO_GetFieldsCounters done [10:42:45]requested_item shift.num is exist - process it [10:42:45]requested_item shift.opened is exist - process it [10:42:45]req_shift_opened [10:42:45]FM_GetShiftState [10:42:45]SAM_PROTO_GetShiftState [10:42:45]wFMCommunicate request_size=4 [10:42:45]MH_SAM_APDU [10:42:45]CAPDU: 80 13 01 00 [10:42:45]Write to MH i2c: E2 08 00 DC 02 80 13 01 00 00 00 00 00 5B [10:42:45]Write i2c OK [10:42:45]MH_I2C_Read... [10:42:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:45]Read from MH i2c: E2 [10:42:45]MH_I2C_Read... [10:42:45]Read from MH i2c: E2 0E 00 [10:42:45]MH_I2C_Read... [10:42:45]Read from MH i2c: E2 0E 00 DC 02 00 09 00 00 00 00 00 00 00 00 00 00 90 00 66 [10:42:45]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [10:42:45]wFMCommunicate OK [10:42:45]SAM_PROTO_GetShiftState done [10:42:45]FM_GetShiftState done [10:42:45]req_shift_opened done [10:42:45]requested_item shift.open_date is exist - process it [10:42:45]req_shift_open_date [10:42:45]FM_GetShiftState [10:42:45]SAM_PROTO_GetShiftState [10:42:45]wFMCommunicate request_size=4 [10:42:45]MH_SAM_APDU [10:42:45]CAPDU: 80 13 01 00 [10:42:45]Write to MH i2c: E2 08 00 DD 02 80 13 01 00 00 00 00 00 5C [10:42:45]Write i2c OK [10:42:45]MH_I2C_Read... [10:42:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:46]Read from MH i2c: E2 [10:42:46]MH_I2C_Read... [10:42:46]Read from MH i2c: E2 0E 00 [10:42:46]MH_I2C_Read... [10:42:46]Read from MH i2c: E2 0E 00 DD 02 00 09 00 00 00 00 00 00 00 00 00 00 90 00 67 [10:42:46]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [10:42:46]wFMCommunicate OK [10:42:46]SAM_PROTO_GetShiftState done [10:42:46]FM_GetShiftState done [10:42:46]req_shift_open_date done [10:42:46]produce_requested_data done [10:42:46]produce_requested_data return {"fd.num":73208,"shift.num":558,"shift.opened":0,"shift.open_date":0} [10:42:46]process_action_free close_shift [10:42:46]json_value_free [10:42:46]json_value_free done [10:42:46]process_json_proto returns [10:42:46]Send response to host [10:42:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":73208,"shift.num":558,"shift.opened":0,"shift.open_date":0}}} [10:42:46]free response buf [10:42:46]recv_with_timeout no data received [10:42:46]execute_script done [10:42:46]execute_script returns [10:42:46]free content buf [10:42:46]Sock 9.Close socket [10:42:46]Sock 9.Thread stoped [10:42:47]Connected sock=11 [10:42:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 80 05 00 00 A8 FD 78 05 C0 2C 5A 05 01 00 05 00 6C 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 1D 00 D0 9A D1 83 D1 82 D0 BC D0 B0 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F4 03 04 00 92 B0 24 67 0E 04 04 00 2E 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 5E 04 04 00 4C 00 00 00 57 04 04 00 4E 00 00 00 AA 04 D6 04 6E 04 04 00 4C 00 00 00 69 04 A3 00 6F 04 04 00 4C 00 00 00 B1 04 03 00 45 2E 99 70 04 03 00 0C 90 86 72 04 03 00 39 9E 12 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 07 45 10 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 11 5B 01 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 F8 1D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 35 04 06 00 8B 74 F0 EE 56 C4 59 F0 76 38 2C F6 9D C6 [10:42:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 F8 E0 47 00 05 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 F8 1D 01 00 F4 03 04 00 5B 5B 24 67 B6 04 01 00 00 CC 95 F6 DE 22 E2 BF 23 [10:42:51]CommunicateWithHost err = 0 [10:42:51]CheckOFDResponse [10:42:51]1017 (14) - 77093643461234 [10:42:51]1041 (16) - 0000000000874662 [10:42:51]1040 (4) - 73208 [10:42:51]1012 (4) - 01.11.2024 04:38 [10:42:51]1206 (1) - 0 [10:42:51]OFD Sender: Remove packet 73208 [10:42:51]ProducePacketName [10:42:51]name=ofd_packets/00073208 [10:42:51]NVStorageDeleteData [10:42:52]OFD Sender: No OFD packet to send [10:42:56]recv_with_timeout no data received [10:42:57]OFD Sender: No OFD packet to send [10:43:02]OFD Sender: No OFD packet to send [10:43:07]OFD Sender: No OFD packet to send [10:43:12]OFD Sender: No OFD packet to send [10:43:17]OFD Sender: No OFD packet to send [10:43:17]recv_with_timeout no data received [10:43:22]OFD Sender: No OFD packet to send [10:43:27]OFD Sender: No OFD packet to send [10:43:27]recv_with_timeout no data received [10:43:32]OFD Sender: No OFD packet to send [10:43:37]OFD Sender: No OFD packet to send [10:43:42]OFD Sender: No OFD packet to send [10:43:43]recv_with_timeout no data received [10:43:47]OFD Sender: No OFD packet to send [10:43:52]OFD Sender: No OFD packet to send [10:43:57]OFD Sender: No OFD packet to send [10:43:58]recv_with_timeout no data received [10:44:02]OFD Sender: No OFD packet to send [10:44:07]OFD Sender: No OFD packet to send [10:44:12]OFD Sender: No OFD packet to send [10:44:16]recv_with_timeout no data received [10:44:17]OFD Sender: No OFD packet to send [10:44:22]OFD Sender: No OFD packet to send [10:44:27]OFD Sender: No OFD packet to send [10:44:32]OFD Sender: No OFD packet to send [10:44:34]recv_with_timeout no data received [10:44:37]OFD Sender: No OFD packet to send [10:44:42]OFD Sender: No OFD packet to send [10:44:47]OFD Sender: No OFD packet to send [10:44:52]OFD Sender: No OFD packet to send [10:44:54]recv_with_timeout no data received [10:44:57]OFD Sender: No OFD packet to send [10:45:02]OFD Sender: No OFD packet to send [10:45:07]OFD Sender: No OFD packet to send [10:45:11]recv_with_timeout no data received [10:45:12]OFD Sender: No OFD packet to send [10:45:17]OFD Sender: No OFD packet to send [10:45:22]OFD Sender: No OFD packet to send [10:45:27]OFD Sender: No OFD packet to send [10:45:31]recv_with_timeout no data received [10:45:32]OFD Sender: No OFD packet to send [10:45:37]OFD Sender: No OFD packet to send [10:45:42]OFD Sender: No OFD packet to send [10:45:47]OFD Sender: No OFD packet to send [10:45:49]recv_with_timeout no data received [10:45:52]OFD Sender: No OFD packet to send [10:45:57]OFD Sender: No OFD packet to send [10:46:02]OFD Sender: No OFD packet to send [10:46:04]recv_with_timeout no data received [10:46:07]OFD Sender: No OFD packet to send [10:46:12]OFD Sender: No OFD packet to send [10:46:17]OFD Sender: No OFD packet to send [10:46:20]recv_with_timeout no data received [10:46:22]OFD Sender: No OFD packet to send [10:46:27]OFD Sender: No OFD packet to send [10:46:32]OFD Sender: No OFD packet to send [10:46:35]recv_with_timeout no data received [10:46:37]OFD Sender: No OFD packet to send [10:46:42]OFD Sender: No OFD packet to send [10:46:47]OFD Sender: No OFD packet to send [10:46:52]recv_with_timeout no data received [10:46:52]OFD Sender: No OFD packet to send [10:46:57]OFD Sender: No OFD packet to send [10:47:02]OFD Sender: No OFD packet to send [10:47:07]OFD Sender: No OFD packet to send [10:47:12]OFD Sender: No OFD packet to send [10:47:17]OFD Sender: No OFD packet to send [10:47:22]OFD Sender: No OFD packet to send [10:47:27]OFD Sender: No OFD packet to send [10:47:32]OFD Sender: No OFD packet to send [10:47:37]OFD Sender: No OFD packet to send [10:47:42]OFD Sender: No OFD packet to send [10:47:47]OFD Sender: No OFD packet to send [10:47:52]OFD Sender: No OFD packet to send [10:47:57]OFD Sender: No OFD packet to send [10:48:02]OFD Sender: No OFD packet to send [10:48:07]OFD Sender: No OFD packet to send [10:48:12]OFD Sender: No OFD packet to send [10:48:17]OFD Sender: No OFD packet to send [10:48:22]OFD Sender: No OFD packet to send [10:48:27]OFD Sender: No OFD packet to send [10:48:32]OFD Sender: No OFD packet to send [10:48:37]OFD Sender: No OFD packet to send [10:48:42]OFD Sender: No OFD packet to send [10:48:47]OFD Sender: No OFD packet to send [10:48:52]OFD Sender: No OFD packet to send [10:48:57]OFD Sender: No OFD packet to send [10:49:02]OFD Sender: No OFD packet to send [10:49:07]OFD Sender: No OFD packet to send [10:49:12]OFD Sender: No OFD packet to send [10:49:17]OFD Sender: No OFD packet to send [10:49:18]recv_with_timeout no data received [10:49:22]OFD Sender: No OFD packet to send [10:49:27]OFD Sender: No OFD packet to send [10:49:29]recv_with_timeout no data received [10:49:32]OFD Sender: No OFD packet to send [10:49:37]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:49:58]recv_with_timeout no data received [10:50:03]OFD Sender: No OFD packet to send [10:50:08]OFD Sender: No OFD packet to send [10:50:13]OFD Sender: No OFD packet to send [10:50:15]recv_with_timeout no data received [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:50:59]recv_with_timeout no data received [10:51:03]OFD Sender: No OFD packet to send [10:51:08]OFD Sender: No OFD packet to send [10:51:09]recv_with_timeout no data received [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:25]recv_with_timeout no data received [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:49]recv_with_timeout no data received [10:52:53]OFD Sender: No OFD packet to send [10:52:58]OFD Sender: No OFD packet to send [10:52:59]recv_with_timeout no data received [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:48]OFD Sender: No OFD packet to send [10:54:53]OFD Sender: No OFD packet to send [10:54:58]OFD Sender: No OFD packet to send [10:54:59]recv_with_timeout no data received [10:55:03]OFD Sender: No OFD packet to send [10:55:08]OFD Sender: No OFD packet to send [10:55:09]recv_with_timeout no data received [10:55:13]OFD Sender: No OFD packet to send [10:55:18]OFD Sender: No OFD packet to send [10:55:20]recv_with_timeout no data received [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:04]recv_with_timeout no data received [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:40]recv_with_timeout no data received [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:29]recv_with_timeout no data received [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:31]recv_with_timeout no data received [10:58:33]OFD Sender: No OFD packet to send [10:58:38]OFD Sender: No OFD packet to send [10:58:41]recv_with_timeout no data received [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