[02:51:55]OFD Sender: No OFD packet to send [02:52:00]OFD Sender: No OFD packet to send [02:52:05]OFD Sender: No OFD packet to send [02:52:10]OFD Sender: No OFD packet to send [02:52:15]OFD Sender: No OFD packet to send [02:52:20]OFD Sender: No OFD packet to send [02:52:25]OFD Sender: No OFD packet to send [02:52:30]OFD Sender: No OFD packet to send [02:52:35]OFD Sender: No OFD packet to send [02:52:40]OFD Sender: No OFD packet to send [02:52:45]OFD Sender: No OFD packet to send [02:52:50]OFD Sender: No OFD packet to send [02:52:55]OFD Sender: No OFD packet to send [02:53:00]OFD Sender: No OFD packet to send [02:53:05]OFD Sender: No OFD packet to send [02:53:10]OFD Sender: No OFD packet to send [02:53:15]OFD Sender: No OFD packet to send [02:53:20]OFD Sender: No OFD packet to send [02:53:25]OFD Sender: No OFD packet to send [02:53:30]OFD Sender: No OFD packet to send [02:53:35]OFD Sender: No OFD packet to send [02:53:40]OFD Sender: No OFD packet to send [02:53:45]OFD Sender: No OFD packet to send [02:53:50]OFD Sender: No OFD packet to send [02:53:55]OFD Sender: No OFD packet to send [02:54:00]OFD Sender: No OFD packet to send [02:54:05]OFD Sender: No OFD packet to send [02:54:10]OFD Sender: No OFD packet to send [02:54:15]OFD Sender: No OFD packet to send [02:54:20]OFD Sender: No OFD packet to send [02:54:25]OFD Sender: No OFD packet to send [02:54:30]OFD Sender: No OFD packet to send [02:54:35]OFD Sender: No OFD packet to send [02:54:40]OFD Sender: No OFD packet to send [02:54:45]OFD Sender: No OFD packet to send [02:54:50]OFD Sender: No OFD packet to send [02:54:55]OFD Sender: No OFD packet to send [02:55:00]OFD Sender: No OFD packet to send [02:55:05]OFD Sender: No OFD packet to send [02:55:10]OFD Sender: No OFD packet to send [02:55:15]OFD Sender: No OFD packet to send [02:55:20]OFD Sender: No OFD packet to send [02:55:25]OFD Sender: No OFD packet to send [02:55:30]OFD Sender: No OFD packet to send [02:55:35]OFD Sender: No OFD packet to send [02:55:40]OFD Sender: No OFD packet to send [02:55:45]OFD Sender: No OFD packet to send [02:55:50]OFD Sender: No OFD packet to send [02:55:55]OFD Sender: No OFD packet to send [02:56:00]OFD Sender: No OFD packet to send [02:56:05]OFD Sender: No OFD packet to send [02:56:10]OFD Sender: No OFD packet to send [02:56:15]OFD Sender: No OFD packet to send [02:56:20]OFD Sender: No OFD packet to send [02:56:25]OFD Sender: No OFD packet to send [02:56:30]OFD Sender: No OFD packet to send [02:56:35]OFD Sender: No OFD packet to send [02:56:40]OFD Sender: No OFD packet to send [02:56:45]OFD Sender: No OFD packet to send [02:56:50]OFD Sender: No OFD packet to send [02:56:55]OFD Sender: No OFD packet to send [02:57:00]OFD Sender: No OFD packet to send [02:57:05]OFD Sender: No OFD packet to send [02:57:10]OFD Sender: No OFD packet to send [02:57:15]OFD Sender: No OFD packet to send [02:57:20]OFD Sender: No OFD packet to send [02:57:25]OFD Sender: No OFD packet to send [02:57:30]OFD Sender: No OFD packet to send [02:57:35]OFD Sender: No OFD packet to send [02:57:40]OFD Sender: No OFD packet to send [02:57:45]OFD Sender: No OFD packet to send [02:57:50]OFD Sender: No OFD packet to send [02:57:51]accept exits with 8 [02:57:51]New connection [02:57:51]New thread 3067338084 created [02:57:51]Thread 3067194724 joined [02:57:51]Waiting for new connection... [02:57:51] Sock 8.Parse request [02:57:51]Sock 8.Check first char [02:57:51]Sock 8.First char is OK [02:57:51]request: POST /json_proto HTTP/1.0 [02:57:51]Method: POST [02:57:51]URL: /json_proto [02:57:51]Method is POST - this is cgi request [02:57:51]url: /json_proto [02:57:51]query_string will be loaded in cgi processing [02:57:51]execute_cgi json_proto POST (null) [02:57:51]execute_cgi path=json_proto method=POST [02:57:51]POST find Content-Length [02:57:51]Host: 172.17.45.7:8080 [02:57:51]Content-Length: 819 [02:57:51]Content-Type: application/json [02:57:51] [02:57:51]POST finish read [02:57:51]Found Content-Length = 819 [02:57:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:57:51]execute_script... [02:57: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)950207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:57:51]POST & json_proto [02:57:51]process_json_proto [02:57:51]json parsed OK: [02:57:51]protocol is kg_v1.0 [02:57:51]action value=close_receipt [02:57:51]process_action close_receipt [02:57:51]cmd_close_receipt [02:57:51]MH_GetDate [02:57:51]Write to MH i2c: F0 00 00 B1 00 A0 [02:57:51]Write i2c OK [02:57:51]MH_I2C_Read... [02:57:51]Read from MH i2c: F0 [02:57:51]MH_I2C_Read... [02:57:51]Read from MH i2c: F0 09 00 [02:57:51]MH_I2C_Read... [02:57:51]Read from MH i2c: F0 09 00 B1 00 00 2F A8 A9 66 90 0F 3E 66 D2 [02:57:51]GetLastDocTimeStamp 1722394102 [02:57:51]current date 1722394671 [02:57:51]FM_GetShiftState [02:57:51]SAM_PROTO_GetShiftState [02:57:51]wFMCommunicate request_size=4 [02:57:51]MH_SAM_APDU [02:57:51]CAPDU: 80 13 01 00 [02:57:51]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [02:57:51]Write i2c OK [02:57:51]MH_I2C_Read... [02:57:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:57:51]Read from MH i2c: E2 [02:57:51]MH_I2C_Read... [02:57:51]Read from MH i2c: E2 0E 00 [02:57:51]MH_I2C_Read... [02:57:51]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 C7 [02:57:51]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [02:57:51]wFMCommunicate OK [02:57:51]SAM_PROTO_GetShiftState done [02:57:51]FM_GetShiftState done [02:57:51]opened in 1722384637 [02:57:51]opened+sec_in_day 1722471037 [02:57:51]quantity*price = 100050 [02:57:51]sum+1 = 100052 [02:57:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 12 31.07.2024 02:57 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119281 ФПД: 153958433005253 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T025751&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119281&fm=153958433005253&tin=02508201610067®Number=0000000000092660&sum=100000 [02:57:52]StoreToDocumentArchive [02:57:52]shift 436 fd 119281 [02:57:52]save to /storage/0436/doc_00119281 [02:57:52]save last doc name /storage/0436/doc_00119281 to /storage/kkm_last_doc_name [02:57:52]save OK [02:57:52]Clear old archive folders... [02:57:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [02:57:52]tlvbuf is 00ACA100 [02:57:52]SAM_PROTO_ClearQueue [02:57:52]wFMCommunicate request_size=4 [02:57:52]MH_SAM_APDU [02:57:52]CAPDU: 80 09 00 00 [02:57:52]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [02:57:52]Write i2c OK [02:57:52]MH_I2C_Read... [02:57:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:57:52]Read from MH i2c: E2 [02:57:52]MH_I2C_Read... [02:57:52]Read from MH i2c: E2 03 00 [02:57:52]MH_I2C_Read... [02:57:52]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [02:57:52]RAPDU: 90 00 [02:57:52]wFMCommunicate OK [02:57:52]SAM_PROTO_ClearQueue done [02:57:52]KKMCreateOFDPacket [02:57:52]OFDProtocolAddRootSTLVToBuf [02:57:52]FM_MakeSignedData [02:57:52]FM_MakeSignedData [02:57:52]SAM_PROTO_SignData [02:57:52]wFMCommunicate request_size=4 [02:57:52]MH_SAM_APDU [02:57:52]CAPDU: 80 0D 01 02 [02:57:52]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [02:57:52]Write i2c OK [02:57:52]MH_I2C_Read... [02:57:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:57:52]Read from MH i2c: E2 [02:57:52]MH_I2C_Read... [02:57:52]Read from MH i2c: E2 03 00 [02:57:52]MH_I2C_Read... [02:57:52]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [02:57:52]RAPDU: 90 00 [02:57:52]wFMCommunicate OK [02:57:52]wFMCommunicate request_size=255 [02:57:52]MH_SAM_APDU [02:57:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 2F A8 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F1 D1 01 00 35 04 06 00 8C 06 3D B5 [02:57:52]Write to MH i2c: E2 02 01 C1 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 2F A8 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F1 D1 01 00 35 04 06 00 8C 06 3D B5 00 00 B7 [02:57:52]Write i2c OK [02:57:52]MH_I2C_Read... [02:57:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:57:52]Read from MH i2c: E2 [02:57:52]MH_I2C_Read... [02:57:52]Read from MH i2c: E2 03 00 [02:57:52]MH_I2C_Read... [02:57:52]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [02:57:52]RAPDU: 90 00 [02:57:52]wFMCommunicate OK [02:57:52]wFMCommunicate request_size=7 [02:57:52]MH_SAM_APDU [02:57:52]CAPDU: 80 0D 02 02 02 9E C5 [02:57:52]Write to MH i2c: E2 0A 00 C2 00 80 0D 02 02 02 00 9E C5 00 00 A3 [02:57:52]Write i2c OK [02:57:52]MH_I2C_Read... [02:57:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:57:52]Read from MH i2c: E2 [02:57:52]MH_I2C_Read... [02:57:52]Read from MH i2c: E2 03 00 [02:57:52]MH_I2C_Read... [02:57:52]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [02:57:52]RAPDU: 90 00 [02:57:52]wFMCommunicate OK [02:57:52]wFMCommunicate request_size=4 [02:57:52]MH_SAM_APDU [02:57:52]CAPDU: 80 0D 03 02 [02:57:52]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [02:57:52]Write i2c OK [02:57:52]MH_I2C_Read... [02:57:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:57:52]Read from MH i2c: E2 [02:57:52]MH_I2C_Read... [02:57:52]Read from MH i2c: E2 0B 00 [02:57:52]MH_I2C_Read... [02:57:52]Read from MH i2c: E2 0B 00 C3 00 00 CC EA 1A 38 D2 50 DF 00 90 00 48 [02:57:52]RAPDU: CC EA 1A 38 D2 50 DF 00 90 00 [02:57:52]wFMCommunicate OK [02:57:52]SAM_PROTO_SignData done [02:57:52]FM_MakeSignedData done [02:57:52]CreateOFDProtocolMessage [02:57:52]wFMCommunicate request_size=4 [02:57:52]MH_SAM_APDU [02:57:52]CAPDU: 80 11 00 00 [02:57:52]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [02:57:52]Write i2c OK [02:57:52]MH_I2C_Read... [02:57:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:57:52]Read from MH i2c: E2 [02:57:52]MH_I2C_Read... [02:57:52]Read from MH i2c: E2 17 00 [02:57:52]MH_I2C_Read... [02:57:52]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 99 [02:57:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [02:57:52]wFMCommunicate OK [02:57:52]CreateOFDProtocolMessage done [02:57:52]OFDSenderStorePacket 119281 [02:57:52]StoreOFDPacket docnum=119281 [02:57:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 09 6D 04 01 09 19 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 2F A8 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F1 D1 01 00 35 04 06 00 8C 06 3D B5 9E C5 CC EA 1A 38 D2 50 DF 00 [02:57:52]CheckFolder [02:57:52]dirname=/storage/ofd_packets [02:57:52]CheckFolder done [02:57:52]ProducePacketName [02:57:52]name=ofd_packets/00119281 [02:57:52]NVStorageSaveData ofd_packets/00119281 [02:57:52]File name is /storage/ofd_packets/00119281 [02:57:52]Write 298 bytes [02:57:52]NVStorageSaveData done [02:57:52]OFDSenderStorePacket done [02:57:52]KKMCreateOFDPacket done [02:57:52]NVStorageSaveData kkm_last_timestamp [02:57:52]File name is /storage/kkm_last_timestamp [02:57:52]Write 4 bytes [02:57:52]NVStorageSaveData done [02:57:52]ExternCall_PrintAddStr [02:57:52]wPrintStart [02:57:52]Write to MH i2c: 01 00 00 C5 00 C5 [02:57:52]Write i2c OK [02:57:52]MH_I2C_Read... [02:57:52]Read from MH i2c: 01 [02:57:52]MH_I2C_Read... [02:57:52]Read from MH i2c: 01 07 00 [02:57:52]MH_I2C_Read... [02:57:52]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [02:57:52]RasterBufferAndPrint [02:57:52]line Счет N : (1)950207 [02:57:52]line ИНН: 02508201610067 [02:57:52]line Контрольно-Кассовый Чек [02:57:52]line ПРОДАЖА [02:57:52]line ТРК (МРК, ГНК) : 44 [02:57:52]line Товар: 2710194800 [02:57:52]line ДТ-К-5 [02:57:52]line 13.130 * 76.20 [02:57:52]line = 1000.51 [02:57:52]line НДС 12% НСП 1% [02:57:52]line > о реализуемом товаре [02:57:52]line ОКРУГЛЕНИЕ: -0.51 [02:57:52]line ИТОГО: 1000.00 [02:57:52]line НСП 1% : 8.85 [02:57:52]line НДС 12% : 106.25 [02:57:52]line Наличными: 0.00 [02:57:52]line Безнал.: 1000.00 [02:57:52]line Место: АЗС № 134 "Партнер Нефть" [02:57:52]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [02:57:52]line СНО: Общий режим [02:57:52]line Чек 12 31.07.2024 02:57 [02:57:52]line Смена: 436 ФФД: 1.0 [02:57:52]line ЗНМ: 0300000044 [02:57:52]line РНМ: 0000000000092660 [02:57:52]line Версия ККМ: 001 [02:57:52]line Платежная система: O! деньги [02:57:52]line ФМ: 0000000000874939 [02:57:52]line ФД: 119281 [02:57:52]line ФПД: 153958433005253 [02:57:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T025751&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119281&fm=153958433005253&tin=02508201610067®Number=0000000000092660&sum=100000 [02:57:53]OFD Sender: Processing packet 119281 [packets to send 86, broken 85] [02:57:53]ProducePacketName [02:57:53]name=ofd_packets/00119281 [02:57:53]OFD Sender: To server: pG, [02:57:53]CommunicateWithHost lk.salyk.kg:30040 [02:57:53]ConnectInit lk.salyk.kg [02:57:53]written 0, free lines is 4095 [02:57:53]Connected sock=10 [02:57: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 39 33 39 0C 01 00 00 09 6D 04 01 09 19 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 2F A8 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F1 D1 01 00 35 04 06 00 8C 06 3D B5 9E C5 CC EA 1A 38 D2 50 DF 00 [02:57:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 15 18 47 00 9B 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F1 D1 01 00 F4 03 04 00 B9 55 A9 66 B6 04 01 00 00 53 45 F8 19 9A D2 64 E2 [02:57:53]CommunicateWithHost err = 0 [02:57:53]CheckOFDResponse [02:57:53]1017 (14) - 77093643461234 [02:57:53]1041 (16) - 0000000000874939 [02:57:53]1040 (4) - 119281 [02:57:53]1012 (4) - 30.07.2024 21:06 [02:57:53]1206 (1) - 0 [02:57:53]OFD Sender: Remove packet 119281 [02:57:53]ProducePacketName [02:57:53]name=ofd_packets/00119281 [02:57:53]NVStorageDeleteData [02:57:53]Write to MH i2c: 01 00 00 EF 00 EF [02:57:53]Write i2c OK [02:57:53]MH_I2C_Read... [02:57:53]Read from MH i2c: 01 [02:57:53]MH_I2C_Read... [02:57:53]Read from MH i2c: 01 07 00 [02:57:53]MH_I2C_Read... [02:57:53]Read from MH i2c: 01 07 00 EF 00 00 00 00 00 00 C9 0C CB [02:57:53]RasterBufferAndPrint [02:57:53]line [02:57:53]line [02:57:53]line [02:57:53]line [02:57:53]line [02:57:53]written 0, free lines is 3279 [02:57:53]MH_Cut [02:57:53]Write to MH i2c: D1 01 00 F6 00 01 C8 [02:57:53]Write i2c OK [02:57:53]MH_I2C_Read... [02:57:53]Read from MH i2c: D1 [02:57:53]MH_I2C_Read... [02:57:53]Read from MH i2c: D1 01 00 [02:57:53]MH_I2C_Read... [02:57:53]Read from MH i2c: D1 01 00 F6 00 00 C7 [02:57:53]Write to MH i2c: 01 00 00 F7 00 F7 [02:57:53]Write i2c OK [02:57:53]MH_I2C_Read... [02:57:54]OFD Sender: No OFD packet to send [02:57:54]*** Cut start [02:57:54]*** Partial cut [02:57:54]*** CUTSNS_PIN = 1 [02:57:54]*** CUTSNS_PIN = 0 [02:57:54]*** Brake cut motor [02:57:55]Read from MH i2c: 01 [02:57:55]MH_I2C_Read... [02:57:55]*** Stop cut motor [02:57:55]*** Cut end [02:57:55]Read from MH i2c: 01 07 00 [02:57:55]MH_I2C_Read... [02:57:55]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 FF 0F 0C [02:57:55]process_action close_receipt done [02:57:55]requested_data is exist [02:57:55]produce_requested_data [02:57:55]requested_item fm.sn is exist - process it [02:57:55]wFMCommunicate request_size=4 [02:57:55]MH_SAM_APDU [02:57:55]CAPDU: 80 11 00 00 [02:57:55]Write to MH i2c: E2 08 00 F8 00 80 11 00 00 00 00 00 00 72 [02:57:55]Write i2c OK [02:57:55]MH_I2C_Read... [02:57:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:57:55]Read from MH i2c: E2 [02:57:55]MH_I2C_Read... [02:57:55]Read from MH i2c: E2 17 00 [02:57:55]MH_I2C_Read... [02:57:55]Read from MH i2c: E2 17 00 F8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CD [02:57:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [02:57:55]wFMCommunicate OK [02:57:55]requested_item fd.num is exist - process it [02:57:55]SAM_PROTO_GetFieldsCounters [02:57:55]wFMCommunicate request_size=4 [02:57:55]MH_SAM_APDU [02:57:55]CAPDU: 80 13 00 00 [02:57:55]Write to MH i2c: E2 08 00 F9 00 80 13 00 00 00 00 00 00 75 [02:57:55]Write i2c OK [02:57:55]MH_I2C_Read... [02:57:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:57:55]Read from MH i2c: E2 [02:57:55]MH_I2C_Read... [02:57:55]Read from MH i2c: E2 62 00 [02:57:55]MH_I2C_Read... [02:57:55]Read from MH i2c: E2 62 00 F9 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F1 D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [02:57: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F1 D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:57:55]wFMCommunicate OK [02:57:55]SAM_PROTO_GetFieldsCounters done [02:57:55]requested_item shift.num is exist - process it [02:57:55]requested_item shift.opened is exist - process it [02:57:55]req_shift_opened [02:57:55]FM_GetShiftState [02:57:55]SAM_PROTO_GetShiftState [02:57:55]wFMCommunicate request_size=4 [02:57:55]MH_SAM_APDU [02:57:55]CAPDU: 80 13 01 00 [02:57:55]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [02:57:55]Write i2c OK [02:57:55]MH_I2C_Read... [02:57:55]Read from MH i2c: E2 [02:57:55]MH_I2C_Read... [02:57:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:57:55]Read from MH i2c: E2 0E 00 [02:57:55]MH_I2C_Read... [02:57:55]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 0F [02:57:55]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [02:57:55]wFMCommunicate OK [02:57:55]SAM_PROTO_GetShiftState done [02:57:55]FM_GetShiftState done [02:57:55]req_shift_opened done [02:57:55]requested_item shift.open_date is exist - process it [02:57:55]req_shift_open_date [02:57:55]req_shift_open_date done [02:57:55]produce_requested_data done [02:57:55]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119281,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [02:57:55]process_action_free close_receipt [02:57:55]json_value_free [02:57:55]json_value_free done [02:57:55]process_json_proto returns [02:57:55]Send response to host [02:57:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119281,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [02:57:55]free response buf [02:57:55]execute_script done [02:57:55]execute_script returns [02:57:55]free content buf [02:57:55]Sock 8.Close socket [02:57:55]Sock 8.Thread stoped [02:57:59]OFD Sender: No OFD packet to send [02:58:04]OFD Sender: No OFD packet to send [02:58:09]OFD Sender: No OFD packet to send [02:58:14]OFD Sender: No OFD packet to send [02:58:19]OFD Sender: No OFD packet to send [02:58:24]OFD Sender: No OFD packet to send [02:58:29]OFD Sender: No OFD packet to send [02:58:34]OFD Sender: No OFD packet to send [02:58:39]OFD Sender: No OFD packet to send [02:58:44]OFD Sender: No OFD packet to send [02:58:49]OFD Sender: No OFD packet to send [02:58:54]OFD Sender: No OFD packet to send [02:58:59]OFD Sender: No OFD packet to send [02:59:04]OFD Sender: No OFD packet to send [02:59:09]OFD Sender: No OFD packet to send [02:59:14]OFD Sender: No OFD packet to send [02:59:19]OFD Sender: No OFD packet to send [02:59:24]OFD Sender: No OFD packet to send [02:59:29]OFD Sender: No OFD packet to send [02:59:34]OFD Sender: No OFD packet to send [02:59:39]OFD Sender: No OFD packet to send [02:59:44]OFD Sender: No OFD packet to send [02:59:49]OFD Sender: No OFD packet to send [02:59:54]OFD Sender: No OFD packet to send [02:59:59]OFD Sender: No OFD packet to send [03:00:04]OFD Sender: No OFD packet to send [03:00:09]OFD Sender: No OFD packet to send [03:00:14]OFD Sender: No OFD packet to send [03:00:19]OFD Sender: No OFD packet to send [03:00:24]OFD Sender: No OFD packet to send [03:00:29]OFD Sender: No OFD packet to send [03:00:34]OFD Sender: No OFD packet to send [03:00:39]OFD Sender: No OFD packet to send [03:00:44]OFD Sender: No OFD packet to send [03:00:49]OFD Sender: No OFD packet to send [03:00:54]OFD Sender: No OFD packet to send [03:00:59]OFD Sender: No OFD packet to send [03:01:04]OFD Sender: No OFD packet to send [03:01:09]OFD Sender: No OFD packet to send [03:01:14]OFD Sender: No OFD packet to send [03:01:19]OFD Sender: No OFD packet to send [03:01:24]OFD Sender: No OFD packet to send [03:01:29]OFD Sender: No OFD packet to send [03:01:34]OFD Sender: No OFD packet to send [03:01:39]OFD Sender: No OFD packet to send [03:01:44]OFD Sender: No OFD packet to send [03:01:49]OFD Sender: No OFD packet to send [03:01:54]OFD Sender: No OFD packet to send [03:01:59]OFD Sender: No OFD packet to send [03:02:04]OFD Sender: No OFD packet to send [03:02:09]OFD Sender: No OFD packet to send [03:02:14]OFD Sender: No OFD packet to send [03:02:19]OFD Sender: No OFD packet to send [03:02:24]OFD Sender: No OFD packet to send [03:02:29]OFD Sender: No OFD packet to send [03:02:34]OFD Sender: No OFD packet to send [03:02:39]OFD Sender: No OFD packet to send [03:02:44]OFD Sender: No OFD packet to send [03:02:49]OFD Sender: No OFD packet to send [03:02:54]OFD Sender: No OFD packet to send [03:02:59]OFD Sender: No OFD packet to send [03:03:04]OFD Sender: No OFD packet to send [03:03:09]OFD Sender: No OFD packet to send [03:03:14]OFD Sender: No OFD packet to send [03:03:19]OFD Sender: No OFD packet to send [03:03:24]OFD Sender: No OFD packet to send [03:03:29]OFD Sender: No OFD packet to send [03:03:34]OFD Sender: No OFD packet to send [03:03:39]OFD Sender: No OFD packet to send [03:03:44]OFD Sender: No OFD packet to send [03:03:49]OFD Sender: No OFD packet to send [03:03:54]OFD Sender: No OFD packet to send [03:03:59]OFD Sender: No OFD packet to send [03:04:04]OFD Sender: No OFD packet to send [03:04:09]OFD Sender: No OFD packet to send [03:04:14]OFD Sender: No OFD packet to send [03:04:19]OFD Sender: No OFD packet to send [03:04:24]OFD Sender: No OFD packet to send [03:04:29]OFD Sender: No OFD packet to send [03:04:34]OFD Sender: No OFD packet to send [03:04:39]OFD Sender: No OFD packet to send [03:04:44]OFD Sender: No OFD packet to send [03:04:49]OFD Sender: No OFD packet to send [03:04:54]OFD Sender: No OFD packet to send [03:04:59]OFD Sender: No OFD packet to send [03:05:04]OFD Sender: No OFD packet to send [03:05:09]OFD Sender: No OFD packet to send [03:05:14]OFD Sender: No OFD packet to send [03:05:19]OFD Sender: No OFD packet to send [03:05:24]OFD Sender: No OFD packet to send [03:05:29]OFD Sender: No OFD packet to send [03:05:34]OFD Sender: No OFD packet to send [03:05:39]OFD Sender: No OFD packet to send [03:05:44]OFD Sender: No OFD packet to send [03:05:49]OFD Sender: No OFD packet to send [03:05:54]OFD Sender: No OFD packet to send [03:05:59]OFD Sender: No OFD packet to send [03:06:04]OFD Sender: No OFD packet to send [03:06:09]OFD Sender: No OFD packet to send [03:06:14]OFD Sender: No OFD packet to send [03:06:19]OFD Sender: No OFD packet to send [03:06:24]OFD Sender: No OFD packet to send [03:06:29]OFD Sender: No OFD packet to send [03:06:34]OFD Sender: No OFD packet to send [03:06:39]OFD Sender: No OFD packet to send [03:06:44]OFD Sender: No OFD packet to send [03:06:49]OFD Sender: No OFD packet to send [03:06:54]OFD Sender: No OFD packet to send [03:06:59]OFD Sender: No OFD packet to send [03:07:04]OFD Sender: No OFD packet to send [03:07:09]OFD Sender: No OFD packet to send [03:07:14]OFD Sender: No OFD packet to send [03:07:19]OFD Sender: No OFD packet to send [03:07:24]OFD Sender: No OFD packet to send [03:07:29]OFD Sender: No OFD packet to send [03:07:34]OFD Sender: No OFD packet to send [03:07:39]OFD Sender: No OFD packet to send [03:07:44]OFD Sender: No OFD packet to send [03:07:49]OFD Sender: No OFD packet to send [03:07:54]OFD Sender: No OFD packet to send [03:07:59]OFD Sender: No OFD packet to send [03:08:04]OFD Sender: No OFD packet to send [03:08:09]OFD Sender: No OFD packet to send [03:08:14]OFD Sender: No OFD packet to send [03:08:19]OFD Sender: No OFD packet to send [03:08:24]OFD Sender: No OFD packet to send [03:08:29]OFD Sender: No OFD packet to send [03:08:34]OFD Sender: No OFD packet to send [03:08:39]OFD Sender: No OFD packet to send [03:08:44]OFD Sender: No OFD packet to send [03:08:49]OFD Sender: No OFD packet to send [03:08:54]OFD Sender: No OFD packet to send [03:08:59]OFD Sender: No OFD packet to send [03:09:04]OFD Sender: No OFD packet to send [03:09:09]OFD Sender: No OFD packet to send [03:09:14]OFD Sender: No OFD packet to send [03:09:19]OFD Sender: No OFD packet to send [03:09:24]OFD Sender: No OFD packet to send [03:09:29]OFD Sender: No OFD packet to send [03:09:34]OFD Sender: No OFD packet to send [03:09:39]OFD Sender: No OFD packet to send [03:09:44]OFD Sender: No OFD packet to send [03:09:49]OFD Sender: No OFD packet to send [03:09:54]OFD Sender: No OFD packet to send [03:09:59]OFD Sender: No OFD packet to send [03:10:04]OFD Sender: No OFD packet to send [03:10:09]OFD Sender: No OFD packet to send [03:10:14]OFD Sender: No OFD packet to send [03:10:19]OFD Sender: No OFD packet to send [03:10:24]OFD Sender: No OFD packet to send [03:10:29]OFD Sender: No OFD packet to send [03:10:34]OFD Sender: No OFD packet to send [03:10:39]OFD Sender: No OFD packet to send [03:10:44]OFD Sender: No OFD packet to send [03:10:49]OFD Sender: No OFD packet to send [03:10:54]OFD Sender: No OFD packet to send [03:10:59]OFD Sender: No OFD packet to send [03:11:04]OFD Sender: No OFD packet to send [03:11:09]OFD Sender: No OFD packet to send [03:11:14]OFD Sender: No OFD packet to send [03:11:19]OFD Sender: No OFD packet to send [03:11:24]OFD Sender: No OFD packet to send [03:11:29]OFD Sender: No OFD packet to send [03:11:34]OFD Sender: No OFD packet to send [03:11:39]OFD Sender: No OFD packet to send [03:11:44]OFD Sender: No OFD packet to send [03:11:49]OFD Sender: No OFD packet to send [03:11:54]OFD Sender: No OFD packet to send [03:11:59]OFD Sender: No OFD packet to send [03:12:04]OFD Sender: No OFD packet to send [03:12:09]OFD Sender: No OFD packet to send [03:12:14]OFD Sender: No OFD packet to send [03:12:19]OFD Sender: No OFD packet to send [03:12:24]OFD Sender: No OFD packet to send [03:12:29]OFD Sender: No OFD packet to send [03:12:34]OFD Sender: No OFD packet to send [03:12:39]OFD Sender: No OFD packet to send [03:12:44]OFD Sender: No OFD packet to send [03:12:49]OFD Sender: No OFD packet to send [03:12:54]OFD Sender: No OFD packet to send [03:12:59]OFD Sender: No OFD packet to send [03:13:04]OFD Sender: No OFD packet to send [03:13:09]OFD Sender: No OFD packet to send [03:13:14]OFD Sender: No OFD packet to send [03:13:19]OFD Sender: No OFD packet to send [03:13:24]OFD Sender: No OFD packet to send [03:13:29]OFD Sender: No OFD packet to send [03:13:34]OFD Sender: No OFD packet to send [03:13:40]OFD Sender: No OFD packet to send [03:13:45]OFD Sender: No OFD packet to send [03:13:50]OFD Sender: No OFD packet to send [03:13:55]OFD Sender: No OFD packet to send [03:14:00]OFD Sender: No OFD packet to send [03:14:05]OFD Sender: No OFD packet to send [03:14:10]OFD Sender: No OFD packet to send [03:14:15]OFD Sender: No OFD packet to send [03:14:20]OFD Sender: No OFD packet to send [03:14:25]OFD Sender: No OFD packet to send [03:14:30]OFD Sender: No OFD packet to send [03:14:35]OFD Sender: No OFD packet to send [03:14:40]OFD Sender: No OFD packet to send [03:14:45]OFD Sender: No OFD packet to send [03:14:50]OFD Sender: No OFD packet to send [03:14:55]OFD Sender: No OFD packet to send [03:15:00]OFD Sender: No OFD packet to send [03:15:05]OFD Sender: No OFD packet to send [03:15:10]OFD Sender: No OFD packet to send [03:15:15]OFD Sender: No OFD packet to send [03:15:20]OFD Sender: No OFD packet to send [03:15:25]OFD Sender: No OFD packet to send [03:15:30]OFD Sender: No OFD packet to send [03:15:35]OFD Sender: No OFD packet to send [03:15:40]OFD Sender: No OFD packet to send [03:15:45]OFD Sender: No OFD packet to send [03:15:50]OFD Sender: No OFD packet to send [03:15:55]OFD Sender: No OFD packet to send [03:16:00]OFD Sender: No OFD packet to send [03:16:05]OFD Sender: No OFD packet to send [03:16:10]OFD Sender: No OFD packet to send [03:16:15]OFD Sender: No OFD packet to send [03:16:20]OFD Sender: No OFD packet to send [03:16:25]OFD Sender: No OFD packet to send [03:16:30]OFD Sender: No OFD packet to send [03:16:35]OFD Sender: No OFD packet to send [03:16:40]OFD Sender: No OFD packet to send [03:16:45]OFD Sender: No OFD packet to send [03:16:50]OFD Sender: No OFD packet to send [03:16:55]OFD Sender: No OFD packet to send [03:17:00]OFD Sender: No OFD packet to send [03:17:05]OFD Sender: No OFD packet to send [03:17:10]OFD Sender: No OFD packet to send [03:17:15]OFD Sender: No OFD packet to send [03:17:20]OFD Sender: No OFD packet to send [03:17:25]OFD Sender: No OFD packet to send [03:17:30]OFD Sender: No OFD packet to send [03:17:35]OFD Sender: No OFD packet to send [03:17:40]OFD Sender: No OFD packet to send [03:17:45]OFD Sender: No OFD packet to send [03:17:50]OFD Sender: No OFD packet to send [03:17:55]OFD Sender: No OFD packet to send [03:18:00]OFD Sender: No OFD packet to send [03:18:05]OFD Sender: No OFD packet to send [03:18:10]OFD Sender: No OFD packet to send [03:18:15]OFD Sender: No OFD packet to send [03:18:20]OFD Sender: No OFD packet to send [03:18:25]OFD Sender: No OFD packet to send [03:18:30]OFD Sender: No OFD packet to send [03:18:35]OFD Sender: No OFD packet to send [03:18:40]OFD Sender: No OFD packet to send [03:18:45]OFD Sender: No OFD packet to send [03:18:50]OFD Sender: No OFD packet to send [03:18:55]OFD Sender: No OFD packet to send [03:19:00]OFD Sender: No OFD packet to send [03:19:05]OFD Sender: No OFD packet to send [03:19:10]OFD Sender: No OFD packet to send [03:19:15]OFD Sender: No OFD packet to send [03:19:20]OFD Sender: No OFD packet to send [03:19:25]OFD Sender: No OFD packet to send [03:19:30]OFD Sender: No OFD packet to send [03:19:35]OFD Sender: No OFD packet to send [03:19:40]OFD Sender: No OFD packet to send [03:19:45]OFD Sender: No OFD packet to send [03:19:50]OFD Sender: No OFD packet to send [03:19:55]OFD Sender: No OFD packet to send [03:20:00]OFD Sender: No OFD packet to send [03:20:05]OFD Sender: No OFD packet to send [03:20:10]OFD Sender: No OFD packet to send [03:20:15]OFD Sender: No OFD packet to send [03:20:20]OFD Sender: No OFD packet to send [03:20:25]OFD Sender: No OFD packet to send [03:20:30]OFD Sender: No OFD packet to send [03:20:35]OFD Sender: No OFD packet to send [03:20:40]OFD Sender: No OFD packet to send [03:20:45]OFD Sender: No OFD packet to send [03:20:50]OFD Sender: No OFD packet to send [03:20:55]OFD Sender: No OFD packet to send [03:21:00]OFD Sender: No OFD packet to send [03:21:05]OFD Sender: No OFD packet to send [03:21:10]OFD Sender: No OFD packet to send [03:21:15]OFD Sender: No OFD packet to send [03:21:20]OFD Sender: No OFD packet to send [03:21:25]OFD Sender: No OFD packet to send [03:21:30]OFD Sender: No OFD packet to send [03:21:35]OFD Sender: No OFD packet to send [03:21:40]OFD Sender: No OFD packet to send [03:21:45]OFD Sender: No OFD packet to send [03:21:50]OFD Sender: No OFD packet to send [03:21:55]OFD Sender: No OFD packet to send [03:22:00]OFD Sender: No OFD packet to send [03:22:05]OFD Sender: No OFD packet to send [03:22:10]OFD Sender: No OFD packet to send [03:22:15]OFD Sender: No OFD packet to send [03:22:20]OFD Sender: No OFD packet to send [03:22:25]OFD Sender: No OFD packet to send [03:22:30]OFD Sender: No OFD packet to send [03:22:35]OFD Sender: No OFD packet to send [03:22:40]OFD Sender: No OFD packet to send [03:22:45]OFD Sender: No OFD packet to send [03:22:50]OFD Sender: No OFD packet to send [03:22:55]OFD Sender: No OFD packet to send [03:23:00]OFD Sender: No OFD packet to send [03:23:05]OFD Sender: No OFD packet to send [03:23:10]OFD Sender: No OFD packet to send [03:23:15]OFD Sender: No OFD packet to send [03:23:20]OFD Sender: No OFD packet to send [03:23:25]OFD Sender: No OFD packet to send [03:23:30]OFD Sender: No OFD packet to send [03:23:35]OFD Sender: No OFD packet to send [03:23:40]OFD Sender: No OFD packet to send [03:23:45]OFD Sender: No OFD packet to send [03:23:50]OFD Sender: No OFD packet to send [03:23:55]OFD Sender: No OFD packet to send [03:24:00]OFD Sender: No OFD packet to send [03:24:05]OFD Sender: No OFD packet to send [03:24:10]OFD Sender: No OFD packet to send [03:24:15]OFD Sender: No OFD packet to send [03:24:20]OFD Sender: No OFD packet to send [03:24:25]OFD Sender: No OFD packet to send [03:24:30]OFD Sender: No OFD packet to send [03:24:35]OFD Sender: No OFD packet to send [03:24:40]OFD Sender: No OFD packet to send [03:24:45]OFD Sender: No OFD packet to send [03:24:50]OFD Sender: No OFD packet to send [03:24:55]OFD Sender: No OFD packet to send [03:25:00]OFD Sender: No OFD packet to send [03:25:05]OFD Sender: No OFD packet to send [03:25:10]OFD Sender: No OFD packet to send [03:25:15]OFD Sender: No OFD packet to send [03:25:20]OFD Sender: No OFD packet to send [03:25:25]OFD Sender: No OFD packet to send [03:25:30]OFD Sender: No OFD packet to send [03:25:35]OFD Sender: No OFD packet to send [03:25:40]OFD Sender: No OFD packet to send [03:25:45]OFD Sender: No OFD packet to send [03:25:50]OFD Sender: No OFD packet to send [03:25:55]OFD Sender: No OFD packet to send [03:26:00]OFD Sender: No OFD packet to send [03:26:05]OFD Sender: No OFD packet to send [03:26:10]OFD Sender: No OFD packet to send [03:26:15]OFD Sender: No OFD packet to send [03:26:20]OFD Sender: No OFD packet to send [03:26:25]OFD Sender: No OFD packet to send [03:26:30]OFD Sender: No OFD packet to send [03:26:35]OFD Sender: No OFD packet to send [03:26:40]OFD Sender: No OFD packet to send [03:26:45]OFD Sender: No OFD packet to send [03:26:50]OFD Sender: No OFD packet to send [03:26:55]OFD Sender: No OFD packet to send [03:27:00]OFD Sender: No OFD packet to send [03:27:05]OFD Sender: No OFD packet to send [03:27:10]OFD Sender: No OFD packet to send [03:27:15]OFD Sender: No OFD packet to send [03:27:20]OFD Sender: No OFD packet to send [03:27:25]OFD Sender: No OFD packet to send [03:27:30]OFD Sender: No OFD packet to send [03:27:35]OFD Sender: No OFD packet to send [03:27:40]OFD Sender: No OFD packet to send [03:27:45]OFD Sender: No OFD packet to send [03:27:50]OFD Sender: No OFD packet to send [03:27:55]OFD Sender: No OFD packet to send [03:28:00]OFD Sender: No OFD packet to send [03:28:05]OFD Sender: No OFD packet to send [03:28:10]OFD Sender: No OFD packet to send [03:28:15]OFD Sender: No OFD packet to send [03:28:20]OFD Sender: No OFD packet to send [03:28:25]OFD Sender: No OFD packet to send [03:28:30]OFD Sender: No OFD packet to send [03:28:35]OFD Sender: No OFD packet to send [03:28:40]OFD Sender: No OFD packet to send [03:28:45]OFD Sender: No OFD packet to send [03:28:50]OFD Sender: No OFD packet to send [03:28:55]OFD Sender: No OFD packet to send [03:29:00]OFD Sender: No OFD packet to send [03:29:05]OFD Sender: No OFD packet to send [03:29:10]OFD Sender: No OFD packet to send [03:29:15]OFD Sender: No OFD packet to send [03:29:20]OFD Sender: No OFD packet to send [03:29:25]OFD Sender: No OFD packet to send [03:29:30]OFD Sender: No OFD packet to send [03:29:35]OFD Sender: No OFD packet to send [03:29:40]OFD Sender: No OFD packet to send [03:29:46]OFD Sender: No OFD packet to send [03:29:51]OFD Sender: No OFD packet to send [03:29:56]OFD Sender: No OFD packet to send [03:30:01]OFD Sender: No OFD packet to send [03:30:06]OFD Sender: No OFD packet to send [03:30:11]OFD Sender: No OFD packet to send [03:30:16]OFD Sender: No OFD packet to send [03:30:21]OFD Sender: No OFD packet to send [03:30:26]OFD Sender: No OFD packet to send [03:30:31]OFD Sender: No OFD packet to send [03:30:36]OFD Sender: No OFD packet to send [03:30:41]OFD Sender: No OFD packet to send [03:30:46]OFD Sender: No OFD packet to send [03:30:51]OFD Sender: No OFD packet to send [03:30:56]OFD Sender: No OFD packet to send [03:31:01]OFD Sender: No OFD packet to send [03:31:06]OFD Sender: No OFD packet to send [03:31:11]OFD Sender: No OFD packet to send [03:31:16]OFD Sender: No OFD packet to send [03:31:21]OFD Sender: No OFD packet to send [03:31:26]OFD Sender: No OFD packet to send [03:31:31]OFD Sender: No OFD packet to send [03:31:36]OFD Sender: No OFD packet to send [03:31:41]OFD Sender: No OFD packet to send [03:31:46]OFD Sender: No OFD packet to send [03:31:51]OFD Sender: No OFD packet to send [03:31:56]OFD Sender: No OFD packet to send [03:32:01]OFD Sender: No OFD packet to send [03:32:06]OFD Sender: No OFD packet to send [03:32:11]OFD Sender: No OFD packet to send [03:32:16]OFD Sender: No OFD packet to send [03:32:21]OFD Sender: No OFD packet to send [03:32:26]OFD Sender: No OFD packet to send [03:32:31]OFD Sender: No OFD packet to send [03:32:36]OFD Sender: No OFD packet to send [03:32:41]OFD Sender: No OFD packet to send [03:32:46]OFD Sender: No OFD packet to send [03:32:51]OFD Sender: No OFD packet to send [03:32:56]OFD Sender: No OFD packet to send [03:33:01]OFD Sender: No OFD packet to send [03:33:06]OFD Sender: No OFD packet to send [03:33:11]OFD Sender: No OFD packet to send [03:33:16]OFD Sender: No OFD packet to send [03:33:21]OFD Sender: No OFD packet to send [03:33:26]OFD Sender: No OFD packet to send [03:33:31]OFD Sender: No OFD packet to send [03:33:36]OFD Sender: No OFD packet to send [03:33:41]OFD Sender: No OFD packet to send [03:33:46]OFD Sender: No OFD packet to send [03:33:51]OFD Sender: No OFD packet to send [03:33:56]OFD Sender: No OFD packet to send [03:34:01]OFD Sender: No OFD packet to send [03:34:06]OFD Sender: No OFD packet to send [03:34:11]OFD Sender: No OFD packet to send [03:34:16]OFD Sender: No OFD packet to send [03:34:21]OFD Sender: No OFD packet to send [03:34:26]OFD Sender: No OFD packet to send [03:34:31]OFD Sender: No OFD packet to send [03:34:36]OFD Sender: No OFD packet to send [03:34:41]OFD Sender: No OFD packet to send [03:34:46]OFD Sender: No OFD packet to send [03:34:51]OFD Sender: No OFD packet to send [03:34:56]OFD Sender: No OFD packet to send [03:35:01]OFD Sender: No OFD packet to send [03:35:06]OFD Sender: No OFD packet to send [03:35:11]OFD Sender: No OFD packet to send [03:35:16]OFD Sender: No OFD packet to send [03:35:21]OFD Sender: No OFD packet to send [03:35:26]OFD Sender: No OFD packet to send [03:35:31]OFD Sender: No OFD packet to send [03:35:36]OFD Sender: No OFD packet to send [03:35:41]OFD Sender: No OFD packet to send [03:35:46]OFD Sender: No OFD packet to send [03:35:51]OFD Sender: No OFD packet to send [03:35:56]OFD Sender: No OFD packet to send [03:36:01]OFD Sender: No OFD packet to send [03:36:06]OFD Sender: No OFD packet to send [03:36:11]OFD Sender: No OFD packet to send [03:36:16]OFD Sender: No OFD packet to send [03:36:21]OFD Sender: No OFD packet to send [03:36:26]OFD Sender: No OFD packet to send [03:36:31]OFD Sender: No OFD packet to send [03:36:36]OFD Sender: No OFD packet to send [03:36:41]OFD Sender: No OFD packet to send [03:36:46]OFD Sender: No OFD packet to send [03:36:51]OFD Sender: No OFD packet to send [03:36:56]OFD Sender: No OFD packet to send [03:37:01]OFD Sender: No OFD packet to send [03:37:06]OFD Sender: No OFD packet to send [03:37:11]OFD Sender: No OFD packet to send [03:37:16]OFD Sender: No OFD packet to send [03:37:21]OFD Sender: No OFD packet to send [03:37:26]OFD Sender: No OFD packet to send [03:37:31]OFD Sender: No OFD packet to send [03:37:36]OFD Sender: No OFD packet to send [03:37:41]OFD Sender: No OFD packet to send [03:37:46]OFD Sender: No OFD packet to send [03:37:51]OFD Sender: No OFD packet to send [03:37:56]OFD Sender: No OFD packet to send [03:38:01]OFD Sender: No OFD packet to send [03:38:06]OFD Sender: No OFD packet to send [03:38:11]OFD Sender: No OFD packet to send [03:38:16]OFD Sender: No OFD packet to send [03:38:21]OFD Sender: No OFD packet to send [03:38:26]OFD Sender: No OFD packet to send [03:38:31]OFD Sender: No OFD packet to send [03:38:36]OFD Sender: No OFD packet to send [03:38:41]OFD Sender: No OFD packet to send [03:38:46]OFD Sender: No OFD packet to send [03:38:51]OFD Sender: No OFD packet to send [03:38:56]OFD Sender: No OFD packet to send [03:39:01]OFD Sender: No OFD packet to send [03:39:06]OFD Sender: No OFD packet to send [03:39:11]OFD Sender: No OFD packet to send [03:39:16]OFD Sender: No OFD packet to send [03:39:21]OFD Sender: No OFD packet to send [03:39:26]OFD Sender: No OFD packet to send [03:39:31]OFD Sender: No OFD packet to send [03:39:36]OFD Sender: No OFD packet to send [03:39:41]OFD Sender: No OFD packet to send [03:39:46]OFD Sender: No OFD packet to send [03:39:51]OFD Sender: No OFD packet to send [03:39:56]OFD Sender: No OFD packet to send [03:40:01]OFD Sender: No OFD packet to send [03:40:06]OFD Sender: No OFD packet to send [03:40:11]OFD Sender: No OFD packet to send [03:40:16]OFD Sender: No OFD packet to send [03:40:21]OFD Sender: No OFD packet to send [03:40:26]OFD Sender: No OFD packet to send [03:40:31]OFD Sender: No OFD packet to send [03:40:36]OFD Sender: No OFD packet to send [03:40:41]OFD Sender: No OFD packet to send [03:40:46]OFD Sender: No OFD packet to send [03:40:51]OFD Sender: No OFD packet to send [03:40:56]OFD Sender: No OFD packet to send [03:41:01]OFD Sender: No OFD packet to send [03:41:06]OFD Sender: No OFD packet to send [03:41:11]OFD Sender: No OFD packet to send [03:41:16]OFD Sender: No OFD packet to send [03:41:21]OFD Sender: No OFD packet to send [03:41:26]OFD Sender: No OFD packet to send [03:41:31]OFD Sender: No OFD packet to send [03:41:36]OFD Sender: No OFD packet to send [03:41:41]OFD Sender: No OFD packet to send [03:41:46]OFD Sender: No OFD packet to send [03:41:51]OFD Sender: No OFD packet to send [03:41:56]OFD Sender: No OFD packet to send [03:42:01]OFD Sender: No OFD packet to send [03:42:06]OFD Sender: No OFD packet to send [03:42:11]OFD Sender: No OFD packet to send [03:42:16]OFD Sender: No OFD packet to send [03:42:21]OFD Sender: No OFD packet to send [03:42:26]OFD Sender: No OFD packet to send [03:42:31]OFD Sender: No OFD packet to send [03:42:36]OFD Sender: No OFD packet to send [03:42:41]OFD Sender: No OFD packet to send [03:42:46]OFD Sender: No OFD packet to send [03:42:51]OFD Sender: No OFD packet to send [03:42:56]OFD Sender: No OFD packet to send [03:43:01]OFD Sender: No OFD packet to send [03:43:06]OFD Sender: No OFD packet to send [03:43:11]OFD Sender: No OFD packet to send [03:43:16]OFD Sender: No OFD packet to send [03:43:21]OFD Sender: No OFD packet to send [03:43:26]OFD Sender: No OFD packet to send [03:43:31]OFD Sender: No OFD packet to send [03:43:36]OFD Sender: No OFD packet to send [03:43:41]OFD Sender: No OFD packet to send [03:43:46]OFD Sender: No OFD packet to send [03:43:51]OFD Sender: No OFD packet to send [03:43:56]OFD Sender: No OFD packet to send [03:44:01]OFD Sender: No OFD packet to send [03:44:06]OFD Sender: No OFD packet to send [03:44:11]OFD Sender: No OFD packet to send [03:44:16]OFD Sender: No OFD packet to send [03:44:21]OFD Sender: No OFD packet to send [03:44:26]OFD Sender: No OFD packet to send [03:44:31]OFD Sender: No OFD packet to send [03:44:36]OFD Sender: No OFD packet to send [03:44:41]OFD Sender: No OFD packet to send [03:44:46]OFD Sender: No OFD packet to send [03:44:51]OFD Sender: No OFD packet to send [03:44:56]OFD Sender: No OFD packet to send [03:45:01]OFD Sender: No OFD packet to send [03:45:06]OFD Sender: No OFD packet to send [03:45:11]OFD Sender: No OFD packet to send [03:45:16]OFD Sender: No OFD packet to send [03:45:21]OFD Sender: No OFD packet to send [03:45:26]OFD Sender: No OFD packet to send [03:45:31]OFD Sender: No OFD packet to send [03:45:36]OFD Sender: No OFD packet to send [03:45:41]OFD Sender: No OFD packet to send [03:45:46]OFD Sender: No OFD packet to send [03:45:52]OFD Sender: No OFD packet to send [03:45:57]OFD Sender: No OFD packet to send [03:46:02]OFD Sender: No OFD packet to send [03:46:07]OFD Sender: No OFD packet to send [03:46:12]OFD Sender: No OFD packet to send [03:46:17]OFD Sender: No OFD packet to send [03:46:22]OFD Sender: No OFD packet to send [03:46:27]OFD Sender: No OFD packet to send [03:46:32]OFD Sender: No OFD packet to send [03:46:37]OFD Sender: No OFD packet to send [03:46:42]OFD Sender: No OFD packet to send [03:46:47]OFD Sender: No OFD packet to send [03:46:52]OFD Sender: No OFD packet to send [03:46:57]OFD Sender: No OFD packet to send [03:47:02]OFD Sender: No OFD packet to send [03:47:07]OFD Sender: No OFD packet to send [03:47:12]OFD Sender: No OFD packet to send [03:47:17]OFD Sender: No OFD packet to send [03:47:22]OFD Sender: No OFD packet to send [03:47:27]OFD Sender: No OFD packet to send [03:47:32]OFD Sender: No OFD packet to send [03:47:37]OFD Sender: No OFD packet to send [03:47:42]OFD Sender: No OFD packet to send [03:47:47]OFD Sender: No OFD packet to send [03:47:52]OFD Sender: No OFD packet to send [03:47:57]OFD Sender: No OFD packet to send [03:48:02]OFD Sender: No OFD packet to send [03:48:07]OFD Sender: No OFD packet to send [03:48:12]OFD Sender: No OFD packet to send [03:48:17]OFD Sender: No OFD packet to send [03:48:22]OFD Sender: No OFD packet to send [03:48:27]OFD Sender: No OFD packet to send [03:48:32]OFD Sender: No OFD packet to send [03:48:37]OFD Sender: No OFD packet to send [03:48:42]OFD Sender: No OFD packet to send [03:48:47]OFD Sender: No OFD packet to send [03:48:52]OFD Sender: No OFD packet to send [03:48:57]OFD Sender: No OFD packet to send [03:49:02]OFD Sender: No OFD packet to send [03:49:07]OFD Sender: No OFD packet to send [03:49:12]OFD Sender: No OFD packet to send [03:49:17]OFD Sender: No OFD packet to send [03:49:22]OFD Sender: No OFD packet to send [03:49:27]OFD Sender: No OFD packet to send [03:49:32]OFD Sender: No OFD packet to send [03:49:37]OFD Sender: No OFD packet to send [03:49:42]OFD Sender: No OFD packet to send [03:49:47]OFD Sender: No OFD packet to send [03:49:52]OFD Sender: No OFD packet to send [03:49:57]OFD Sender: No OFD packet to send [03:50:02]OFD Sender: No OFD packet to send [03:50:07]OFD Sender: No OFD packet to send [03:50:12]OFD Sender: No OFD packet to send [03:50:17]OFD Sender: No OFD packet to send [03:50:22]OFD Sender: No OFD packet to send [03:50:27]OFD Sender: No OFD packet to send [03:50:32]OFD Sender: No OFD packet to send [03:50:37]OFD Sender: No OFD packet to send [03:50:42]OFD Sender: No OFD packet to send [03:50:47]OFD Sender: No OFD packet to send [03:50:52]OFD Sender: No OFD packet to send [03:50:57]OFD Sender: No OFD packet to send [03:51:02]OFD Sender: No OFD packet to send [03:51:07]OFD Sender: No OFD packet to send [03:51:12]OFD Sender: No OFD packet to send [03:51:17]OFD Sender: No OFD packet to send [03:51:22]OFD Sender: No OFD packet to send [03:51:27]OFD Sender: No OFD packet to send [03:51:32]OFD Sender: No OFD packet to send [03:51:37]OFD Sender: No OFD packet to send [03:51:42]OFD Sender: No OFD packet to send [03:51:47]OFD Sender: No OFD packet to send [03:51:52]OFD Sender: No OFD packet to send [03:51:57]OFD Sender: No OFD packet to send [03:52:02]OFD Sender: No OFD packet to send [03:52:07]OFD Sender: No OFD packet to send [03:52:12]OFD Sender: No OFD packet to send [03:52:17]OFD Sender: No OFD packet to send [03:52:22]OFD Sender: No OFD packet to send [03:52:27]OFD Sender: No OFD packet to send [03:52:32]OFD Sender: No OFD packet to send [03:52:37]OFD Sender: No OFD packet to send [03:52:42]OFD Sender: No OFD packet to send [03:52:47]OFD Sender: No OFD packet to send [03:52:52]OFD Sender: No OFD packet to send [03:52:57]OFD Sender: No OFD packet to send [03:53:02]OFD Sender: No OFD packet to send [03:53:07]OFD Sender: No OFD packet to send [03:53:12]OFD Sender: No OFD packet to send [03:53:17]OFD Sender: No OFD packet to send [03:53:22]OFD Sender: No OFD packet to send [03:53:27]OFD Sender: No OFD packet to send [03:53:32]OFD Sender: No OFD packet to send [03:53:37]OFD Sender: No OFD packet to send [03:53:42]OFD Sender: No OFD packet to send [03:53:47]OFD Sender: No OFD packet to send [03:53:52]OFD Sender: No OFD packet to send [03:53:57]OFD Sender: No OFD packet to send [03:54:02]OFD Sender: No OFD packet to send [03:54:07]OFD Sender: No OFD packet to send [03:54:12]OFD Sender: No OFD packet to send [03:54:17]OFD Sender: No OFD packet to send [03:54:22]OFD Sender: No OFD packet to send [03:54:27]OFD Sender: No OFD packet to send [03:54:32]OFD Sender: No OFD packet to send [03:54:37]OFD Sender: No OFD packet to send [03:54:42]OFD Sender: No OFD packet to send [03:54:47]OFD Sender: No OFD packet to send [03:54:52]OFD Sender: No OFD packet to send [03:54:57]OFD Sender: No OFD packet to send [03:55:02]OFD Sender: No OFD packet to send [03:55:07]OFD Sender: No OFD packet to send [03:55:12]OFD Sender: No OFD packet to send [03:55:17]OFD Sender: No OFD packet to send [03:55:22]OFD Sender: No OFD packet to send [03:55:27]OFD Sender: No OFD packet to send [03:55:32]OFD Sender: No OFD packet to send [03:55:34]accept exits with 9 [03:55:34]New connection [03:55:34]New thread 3067194724 created [03:55:34]Thread 3067338084 joined [03:55:34]Waiting for new connection... [03:55:34] Sock 9.Parse request [03:55:34]Sock 9.Check first char [03:55:34]Sock 9.First char is OK [03:55:34]request: POST /json_proto HTTP/1.0 [03:55:34]Method: POST [03:55:34]URL: /json_proto [03:55:34]Method is POST - this is cgi request [03:55:34]url: /json_proto [03:55:34]query_string will be loaded in cgi processing [03:55:34]execute_cgi json_proto POST (null) [03:55:34]execute_cgi path=json_proto method=POST [03:55:34]POST find Content-Length [03:55:34]Host: 172.17.45.7:8080 [03:55:34]Content-Length: 674 [03:55:34]Content-Type: application/json [03:55:34] [03:55:34]POST finish read [03:55:34]Found Content-Length = 674 [03:55:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.760, "sum" : 515.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 515.00, "total" : 515.00, "payments": [ { "type": 0, "sum" : 515.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:55:34]execute_script... [03:55: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)950208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.760, "sum" : 515.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 515.00, "total" : 515.00, "payments": [ { "type": 0, "sum" : 515.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:55:34]POST & json_proto [03:55:34]process_json_proto [03:55:34]json parsed OK: [03:55:34]protocol is kg_v1.0 [03:55:34]action value=close_receipt [03:55:34]process_action close_receipt [03:55:34]cmd_close_receipt [03:55:34]MH_GetDate [03:55:34]Write to MH i2c: F0 00 00 FB 00 EA [03:55:34]Write i2c OK [03:55:34]MH_I2C_Read... [03:55:34]Read from MH i2c: F0 [03:55:34]MH_I2C_Read... [03:55:34]Read from MH i2c: F0 09 00 [03:55:34]MH_I2C_Read... [03:55:34]Read from MH i2c: F0 09 00 FB 00 00 B7 B5 A9 66 90 0F 3E 66 B1 [03:55:34]GetLastDocTimeStamp 1722394671 [03:55:34]current date 1722398135 [03:55:34]FM_GetShiftState [03:55:34]SAM_PROTO_GetShiftState [03:55:34]wFMCommunicate request_size=4 [03:55:34]MH_SAM_APDU [03:55:34]CAPDU: 80 13 01 00 [03:55:34]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [03:55:34]Write i2c OK [03:55:34]MH_I2C_Read... [03:55:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:55:34]Read from MH i2c: E2 [03:55:34]MH_I2C_Read... [03:55:34]Read from MH i2c: E2 0E 00 [03:55:34]MH_I2C_Read... [03:55:34]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 11 [03:55:34]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [03:55:34]wFMCommunicate OK [03:55:34]SAM_PROTO_GetShiftState done [03:55:34]FM_GetShiftState done [03:55:34]opened in 1722384637 [03:55:34]opened+sec_in_day 1722471037 [03:55:34]quantity*price = 51511 [03:55:34]sum+1 = 51512 [03:55:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 515.00 Внесено: 515.00 СДАЧА: 0.00 НСП 1% : 4.56 НДС 12% : 54.70 Наличными: 515.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 13 31.07.2024 03:55 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119282 ФПД: 239218864258678 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T035535&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119282&fm=239218864258678&tin=02508201610067®Number=0000000000092660&sum=51500 [03:55:35]StoreToDocumentArchive [03:55:35]shift 436 fd 119282 [03:55:35]save to /storage/0436/doc_00119282 [03:55:35]save last doc name /storage/0436/doc_00119282 to /storage/kkm_last_doc_name [03:55:35]save OK [03:55:35]Clear old archive folders... [03:55:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [03:55:35]tlvbuf is 00AC9FD0 [03:55:35]SAM_PROTO_ClearQueue [03:55:35]wFMCommunicate request_size=4 [03:55:35]MH_SAM_APDU [03:55:35]CAPDU: 80 09 00 00 [03:55:35]Write to MH i2c: E2 08 00 09 01 80 09 00 00 00 00 00 00 7C [03:55:35]Write i2c OK [03:55:35]MH_I2C_Read... [03:55:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:55:35]Read from MH i2c: E2 [03:55:35]MH_I2C_Read... [03:55:35]Read from MH i2c: E2 03 00 [03:55:35]MH_I2C_Read... [03:55:35]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [03:55:35]RAPDU: 90 00 [03:55:35]wFMCommunicate OK [03:55:35]SAM_PROTO_ClearQueue done [03:55:35]KKMCreateOFDPacket [03:55:35]OFDProtocolAddRootSTLVToBuf [03:55:35]FM_MakeSignedData [03:55:35]FM_MakeSignedData [03:55:35]SAM_PROTO_SignData [03:55:35]wFMCommunicate request_size=4 [03:55:35]MH_SAM_APDU [03:55:35]CAPDU: 80 0D 01 02 [03:55:35]Write to MH i2c: E2 08 00 0A 01 80 0D 01 02 00 00 00 00 84 [03:55:35]Write i2c OK [03:55:35]MH_I2C_Read... [03:55:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:55:35]Read from MH i2c: E2 [03:55:35]MH_I2C_Read... [03:55:35]Read from MH i2c: E2 03 00 [03:55:35]MH_I2C_Read... [03:55:35]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [03:55:35]RAPDU: 90 00 [03:55:35]wFMCommunicate OK [03:55:35]wFMCommunicate request_size=255 [03:55:35]MH_SAM_APDU [03:55:35]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 1A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 37 C9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C C9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 15 00 00 00 00 07 04 06 00 2C C9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 B7 B5 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F2 D1 01 00 35 04 06 00 D9 91 7B 6D [03:55:35]Write to MH i2c: E2 02 01 0B 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 1A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 37 C9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C C9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 15 00 00 00 00 07 04 06 00 2C C9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 B7 B5 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F2 D1 01 00 35 04 06 00 D9 91 7B 6D 00 00 C8 [03:55:35]Write i2c OK [03:55:35]MH_I2C_Read... [03:55:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:55:36]Read from MH i2c: E2 [03:55:36]MH_I2C_Read... [03:55:36]Read from MH i2c: E2 03 00 [03:55:36]MH_I2C_Read... [03:55:36]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [03:55:36]RAPDU: 90 00 [03:55:36]wFMCommunicate OK [03:55:36]wFMCommunicate request_size=7 [03:55:36]MH_SAM_APDU [03:55:36]CAPDU: 80 0D 02 02 02 7E 76 [03:55:36]Write to MH i2c: E2 0A 00 0C 01 80 0D 02 02 02 00 7E 76 00 00 7F [03:55:36]Write i2c OK [03:55:36]MH_I2C_Read... [03:55:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:55:36]Read from MH i2c: E2 [03:55:36]MH_I2C_Read... [03:55:36]Read from MH i2c: E2 03 00 [03:55:36]MH_I2C_Read... [03:55:36]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [03:55:36]RAPDU: 90 00 [03:55:36]wFMCommunicate OK [03:55:36]wFMCommunicate request_size=4 [03:55:36]MH_SAM_APDU [03:55:36]CAPDU: 80 0D 03 02 [03:55:36]Write to MH i2c: E2 08 00 0D 01 80 0D 03 02 00 00 00 00 89 [03:55:36]Write i2c OK [03:55:36]MH_I2C_Read... [03:55:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:55:36]Read from MH i2c: E2 [03:55:36]MH_I2C_Read... [03:55:36]Read from MH i2c: E2 0B 00 [03:55:36]MH_I2C_Read... [03:55:36]Read from MH i2c: E2 0B 00 0D 01 00 82 7B 04 BC D2 95 2A E6 90 00 BE [03:55:36]RAPDU: 82 7B 04 BC D2 95 2A E6 90 00 [03:55:36]wFMCommunicate OK [03:55:36]SAM_PROTO_SignData done [03:55:36]FM_MakeSignedData done [03:55:36]CreateOFDProtocolMessage [03:55:36]wFMCommunicate request_size=4 [03:55:36]MH_SAM_APDU [03:55:36]CAPDU: 80 11 00 00 [03:55:36]Write to MH i2c: E2 08 00 0E 01 80 11 00 00 00 00 00 00 89 [03:55:36]Write i2c OK [03:55:36]MH_I2C_Read... [03:55:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:55:36]Read from MH i2c: E2 [03:55:36]MH_I2C_Read... [03:55:36]Read from MH i2c: E2 17 00 [03:55:36]MH_I2C_Read... [03:55:36]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 39 33 39 90 00 E4 [03:55:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [03:55:36]wFMCommunicate OK [03:55:36]CreateOFDProtocolMessage done [03:55:36]OFDSenderStorePacket 119282 [03:55:36]StoreOFDPacket docnum=119282 [03:55:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 FF A1 04 01 78 D8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 1A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 37 C9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C C9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 15 00 00 00 00 07 04 06 00 2C C9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 B7 B5 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F2 D1 01 00 35 04 06 00 D9 91 7B 6D 7E 76 82 7B 04 BC D2 95 2A E6 [03:55:36]CheckFolder [03:55:36]dirname=/storage/ofd_packets [03:55:36]CheckFolder done [03:55:36]ProducePacketName [03:55:36]name=ofd_packets/00119282 [03:55:36]NVStorageSaveData ofd_packets/00119282 [03:55:36]File name is /storage/ofd_packets/00119282 [03:55:36]Write 298 bytes [03:55:36]NVStorageSaveData done [03:55:36]OFDSenderStorePacket done [03:55:36]KKMCreateOFDPacket done [03:55:36]NVStorageSaveData kkm_last_timestamp [03:55:36]File name is /storage/kkm_last_timestamp [03:55:36]Write 4 bytes [03:55:36]NVStorageSaveData done [03:55:36]ExternCall_PrintAddStr [03:55:36]wPrintStart [03:55:36]Write to MH i2c: 01 00 00 0F 01 10 [03:55:36]Write i2c OK [03:55:36]MH_I2C_Read... [03:55:36]Read from MH i2c: 01 [03:55:36]MH_I2C_Read... [03:55:36]Read from MH i2c: 01 07 00 [03:55:36]MH_I2C_Read... [03:55:36]Read from MH i2c: 01 07 00 0F 01 00 00 00 00 00 FF 0F 25 [03:55:36]RasterBufferAndPrint [03:55:36]line Счет N : (1)950208 [03:55:36]line ИНН: 02508201610067 [03:55:36]line Контрольно-Кассовый Чек [03:55:36]line ПРОДАЖА [03:55:36]line ТРК (МРК, ГНК) : 21 [03:55:36]line Товар: 2710194800 [03:55:36]line ДТ-К-5 [03:55:36]line 6.760 * 76.20 [03:55:36]line = 515.11 [03:55:36]line НДС 12% НСП 1% [03:55:36]line > о реализуемом товаре [03:55:36]line ОКРУГЛЕНИЕ: -0.11 [03:55:36]line ИТОГО: 515.00 [03:55:36]line Внесено: 515.00 [03:55:36]line СДАЧА: 0.00 [03:55:36]line НСП 1% : 4.56 [03:55:36]line НДС 12% : 54.70 [03:55:36]line Наличными: 515.00 [03:55:36]line Безнал.: 0.00 [03:55:36]line Место: АЗС № 134 "Партнер Нефть" [03:55:36]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [03:55:36]line СНО: Общий режим [03:55:36]line Чек 13 31.07.2024 03:55 [03:55:36]line Смена: 436 ФФД: 1.0 [03:55:36]line ЗНМ: 0300000044 [03:55:36]line РНМ: 0000000000092660 [03:55:36]line Версия ККМ: 001 [03:55:36]line ФМ: 0000000000874939 [03:55:36]line ФД: 119282 [03:55:36]line ФПД: 239218864258678 [03:55:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T035535&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119282&fm=239218864258678&tin=02508201610067®Number=0000000000092660&sum=51500 [03:55:36]OFD Sender: Processing packet 119282 [packets to send 86, broken 85] [03:55:36]ProducePacketName [03:55:36]name=ofd_packets/00119282 [03:55:36]OFD Sender: To server: pG, [03:55:36]CommunicateWithHost lk.salyk.kg:30040 [03:55:36]ConnectInit lk.salyk.kg [03:55:36]written 0, free lines is 4095 [03:55:36]Connected sock=10 [03:55: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 39 33 39 0C 01 00 00 FF A1 04 01 78 D8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 1A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 37 C9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C C9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 15 00 00 00 00 07 04 06 00 2C C9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 B7 B5 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F2 D1 01 00 35 04 06 00 D9 91 7B 6D 7E 76 82 7B 04 BC D2 95 2A E6 [03:55:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 6C 2C 47 00 AC 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F2 D1 01 00 F4 03 04 00 41 63 A9 66 B6 04 01 00 00 82 3C 47 80 8C B2 A1 6D [03:55:36]CommunicateWithHost err = 0 [03:55:36]CheckOFDResponse [03:55:36]1017 (14) - 77093643461234 [03:55:36]1041 (16) - 0000000000874939 [03:55:36]1040 (4) - 119282 [03:55:36]1012 (4) - 30.07.2024 22:03 [03:55:36]1206 (1) - 0 [03:55:36]OFD Sender: Remove packet 119282 [03:55:36]ProducePacketName [03:55:36]name=ofd_packets/00119282 [03:55:36]NVStorageDeleteData [03:55:37]Write to MH i2c: 01 00 00 39 01 3A [03:55:37]Write i2c OK [03:55:37]MH_I2C_Read... [03:55:37]Read from MH i2c: 01 [03:55:37]MH_I2C_Read... [03:55:37]Read from MH i2c: 01 07 00 [03:55:37]MH_I2C_Read... [03:55:37]Read from MH i2c: 01 07 00 39 01 00 00 00 00 00 C0 0C 0D [03:55:37]RasterBufferAndPrint [03:55:37]line [03:55:37]line [03:55:37]line [03:55:37]line [03:55:37]line [03:55:37]written 0, free lines is 3270 [03:55:37]MH_Cut [03:55:37]Write to MH i2c: D1 01 00 40 01 01 13 [03:55:37]Write i2c OK [03:55:37]MH_I2C_Read... [03:55:37]Read from MH i2c: D1 [03:55:37]MH_I2C_Read... [03:55:37]Read from MH i2c: D1 01 00 [03:55:37]MH_I2C_Read... [03:55:37]Read from MH i2c: D1 01 00 40 01 00 12 [03:55:37]Write to MH i2c: 01 00 00 41 01 42 [03:55:37]Write i2c OK [03:55:37]MH_I2C_Read... [03:55:37]OFD Sender: No OFD packet to send [03:55:37]*** Cut start [03:55:37]*** Partial cut [03:55:37]*** CUTSNS_PIN = 1 [03:55:37]*** CUTSNS_PIN = 0 [03:55:38]*** Brake cut motor [03:55:38]Read from MH i2c: 01 [03:55:38]MH_I2C_Read... [03:55:38]*** Stop cut motor [03:55:38]*** Cut end [03:55:38]Read from MH i2c: 01 07 00 [03:55:38]MH_I2C_Read... [03:55:38]Read from MH i2c: 01 07 00 41 01 00 00 00 00 00 FF 0F 57 [03:55:38]process_action close_receipt done [03:55:38]requested_data is exist [03:55:38]produce_requested_data [03:55:38]requested_item fm.sn is exist - process it [03:55:38]wFMCommunicate request_size=4 [03:55:38]MH_SAM_APDU [03:55:38]CAPDU: 80 11 00 00 [03:55:38]Write to MH i2c: E2 08 00 42 01 80 11 00 00 00 00 00 00 BD [03:55:38]Write i2c OK [03:55:38]MH_I2C_Read... [03:55:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:55:38]Read from MH i2c: E2 [03:55:38]MH_I2C_Read... [03:55:38]Read from MH i2c: E2 17 00 [03:55:38]MH_I2C_Read... [03:55:38]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 39 33 39 90 00 18 [03:55:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [03:55:38]wFMCommunicate OK [03:55:38]requested_item fd.num is exist - process it [03:55:38]SAM_PROTO_GetFieldsCounters [03:55:38]wFMCommunicate request_size=4 [03:55:38]MH_SAM_APDU [03:55:38]CAPDU: 80 13 00 00 [03:55:38]Write to MH i2c: E2 08 00 43 01 80 13 00 00 00 00 00 00 C0 [03:55:38]Write i2c OK [03:55:38]MH_I2C_Read... [03:55:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:55:38]Read from MH i2c: E2 [03:55:38]MH_I2C_Read... [03:55:38]Read from MH i2c: E2 62 00 [03:55:38]MH_I2C_Read... [03:55:38]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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F2 D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [03:55: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F2 D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:55:38]wFMCommunicate OK [03:55:38]SAM_PROTO_GetFieldsCounters done [03:55:38]requested_item shift.num is exist - process it [03:55:38]requested_item shift.opened is exist - process it [03:55:38]req_shift_opened [03:55:38]FM_GetShiftState [03:55:38]SAM_PROTO_GetShiftState [03:55:38]wFMCommunicate request_size=4 [03:55:38]MH_SAM_APDU [03:55:38]CAPDU: 80 13 01 00 [03:55:38]Write to MH i2c: E2 08 00 44 01 80 13 01 00 00 00 00 00 C2 [03:55:38]Write i2c OK [03:55:38]MH_I2C_Read... [03:55:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:55:38]Read from MH i2c: E2 [03:55:38]MH_I2C_Read... [03:55:38]Read from MH i2c: E2 0E 00 [03:55:38]MH_I2C_Read... [03:55:38]Read from MH i2c: E2 0E 00 44 01 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 5A [03:55:38]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [03:55:38]wFMCommunicate OK [03:55:38]SAM_PROTO_GetShiftState done [03:55:38]FM_GetShiftState done [03:55:38]req_shift_opened done [03:55:38]requested_item shift.open_date is exist - process it [03:55:38]req_shift_open_date [03:55:38]req_shift_open_date done [03:55:38]produce_requested_data done [03:55:38]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119282,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [03:55:38]process_action_free close_receipt [03:55:38]json_value_free [03:55:38]json_value_free done [03:55:38]process_json_proto returns [03:55:38]Send response to host [03:55:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119282,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [03:55:38]free response buf [03:55:38]execute_script done [03:55:38]execute_script returns [03:55:38]free content buf [03:55:38]Sock 9.Close socket [03:55:38]Sock 9.Thread stoped [03:55:42]OFD Sender: No OFD packet to send [03:55:47]OFD Sender: No OFD packet to send [03:55:52]OFD Sender: No OFD packet to send [03:55:57]OFD Sender: No OFD packet to send [03:56:02]OFD Sender: No OFD packet to send [03:56:07]OFD Sender: No OFD packet to send [03:56:12]OFD Sender: No OFD packet to send [03:56:17]OFD Sender: No OFD packet to send [03:56:22]OFD Sender: No OFD packet to send [03:56:27]OFD Sender: No OFD packet to send [03:56:32]OFD Sender: No OFD packet to send [03:56:37]OFD Sender: No OFD packet to send [03:56:42]OFD Sender: No OFD packet to send [03:56:47]OFD Sender: No OFD packet to send [03:56:52]OFD Sender: No OFD packet to send [03:56:57]OFD Sender: No OFD packet to send [03:57:02]OFD Sender: No OFD packet to send [03:57:07]OFD Sender: No OFD packet to send [03:57:12]OFD Sender: No OFD packet to send [03:57:17]OFD Sender: No OFD packet to send [03:57:22]OFD Sender: No OFD packet to send [03:57:27]OFD Sender: No OFD packet to send [03:57:32]OFD Sender: No OFD packet to send [03:57:37]OFD Sender: No OFD packet to send [03:57:42]OFD Sender: No OFD packet to send [03:57:47]OFD Sender: No OFD packet to send [03:57:52]OFD Sender: No OFD packet to send [03:57:57]OFD Sender: No OFD packet to send [03:58:02]OFD Sender: No OFD packet to send [03:58:07]OFD Sender: No OFD packet to send [03:58:12]OFD Sender: No OFD packet to send [03:58:17]OFD Sender: No OFD packet to send [03:58:22]OFD Sender: No OFD packet to send [03:58:27]OFD Sender: No OFD packet to send [03:58:32]OFD Sender: No OFD packet to send [03:58:37]OFD Sender: No OFD packet to send [03:58:42]OFD Sender: No OFD packet to send [03:58:47]OFD Sender: No OFD packet to send [03:58:52]OFD Sender: No OFD packet to send [03:58:57]OFD Sender: No OFD packet to send [03:59:02]OFD Sender: No OFD packet to send [03:59:07]OFD Sender: No OFD packet to send [03:59:12]OFD Sender: No OFD packet to send [03:59:17]OFD Sender: No OFD packet to send [03:59:22]OFD Sender: No OFD packet to send [03:59:27]OFD Sender: No OFD packet to send [03:59:32]OFD Sender: No OFD packet to send [03:59:37]OFD Sender: No OFD packet to send [03:59:42]OFD Sender: No OFD packet to send [03:59:47]OFD Sender: No OFD packet to send [03:59:52]OFD Sender: No OFD packet to send [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: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: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]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: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:04:02]OFD Sender: No OFD packet to send [04:04:07]OFD Sender: No OFD packet to send [04:04:12]OFD Sender: No OFD packet to send [04:04:17]OFD Sender: No OFD packet to send [04:04:22]OFD Sender: No OFD packet to send [04:04:27]OFD Sender: No OFD packet to send [04:04:33]OFD Sender: No OFD packet to send [04:04:38]OFD Sender: No OFD packet to send [04:04:43]OFD Sender: No OFD packet to send [04:04:48]OFD Sender: No OFD packet to send [04:04:53]OFD Sender: No OFD packet to send [04:04:58]OFD Sender: No OFD packet to send [04:05:03]OFD Sender: No OFD packet to send [04:05:08]OFD Sender: No OFD packet to send [04:05:13]OFD Sender: No OFD packet to send [04:05:18]OFD Sender: No OFD packet to send [04:05:23]OFD Sender: No OFD packet to send [04:05:28]OFD Sender: No OFD packet to send [04:05:33]OFD Sender: No OFD packet to send [04:05:38]OFD Sender: No OFD packet to send [04:05:43]OFD Sender: No OFD packet to send [04:05:48]OFD Sender: No OFD packet to send [04:05:53]OFD Sender: No OFD packet to send [04:05:58]OFD Sender: No OFD packet to send [04:06:03]OFD Sender: No OFD packet to send [04:06:08]OFD Sender: No OFD packet to send [04:06:13]OFD Sender: No OFD packet to send [04:06:18]OFD Sender: No OFD packet to send [04:06:23]OFD Sender: No OFD packet to send [04:06:28]OFD Sender: No OFD packet to send [04:06:33]OFD Sender: No OFD packet to send [04:06:38]OFD Sender: No OFD packet to send [04:06:43]OFD Sender: No OFD packet to send [04:06:48]OFD Sender: No OFD packet to send [04:06:53]OFD Sender: No OFD packet to send [04:06:58]OFD Sender: No OFD packet to send [04:07:03]OFD Sender: No OFD packet to send [04:07:08]OFD Sender: No OFD packet to send [04:07:13]OFD Sender: No OFD packet to send [04:07:18]OFD Sender: No OFD packet to send [04:07:23]OFD Sender: No OFD packet to send [04:07:28]OFD Sender: No OFD packet to send [04:07:33]OFD Sender: No OFD packet to send [04:07:38]OFD Sender: No OFD packet to send [04:07:43]OFD Sender: No OFD packet to send [04:07:48]OFD Sender: No OFD packet to send [04:07: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:08]OFD Sender: No OFD packet to send [04:10:13]OFD Sender: No OFD packet to send [04:10:18]OFD Sender: No OFD packet to send [04:10:23]OFD Sender: No OFD packet to send [04:10:28]OFD Sender: No OFD packet to send [04:10:33]OFD Sender: No OFD packet to send [04:10:38]OFD Sender: No OFD packet to send [04:10:43]OFD Sender: No OFD packet to send [04:10:48]OFD Sender: No OFD packet to send [04:10:53]OFD Sender: No OFD packet to send [04:10:58]OFD Sender: No OFD packet to send [04:11:03]OFD Sender: No OFD packet to send [04:11:08]OFD Sender: No OFD packet to send [04:11:13]OFD Sender: No OFD packet to send [04:11:18]OFD Sender: No OFD packet to send [04:11:23]OFD Sender: No OFD packet to send [04:11:28]OFD Sender: No OFD packet to send [04:11:33]OFD Sender: No OFD packet to send [04:11:38]OFD Sender: No OFD packet to send [04:11:43]OFD Sender: No OFD packet to send [04:11:48]OFD Sender: No OFD packet to send [04:11:53]OFD Sender: No OFD packet to send [04:11:58]OFD Sender: No OFD packet to send [04:12:03]OFD Sender: No OFD packet to send [04:12:08]OFD Sender: No OFD packet to send [04:12:13]OFD Sender: No OFD packet to send [04:12:18]OFD Sender: No OFD packet to send [04:12:23]OFD Sender: No OFD packet to send [04:12:28]OFD Sender: No OFD packet to send [04:12:33]OFD Sender: No OFD packet to send [04:12:38]OFD Sender: No OFD packet to send [04:12:43]OFD Sender: No OFD packet to send [04:12:48]OFD Sender: No OFD packet to send [04:12:53]OFD Sender: No OFD packet to send [04:12:58]OFD Sender: No OFD packet to send [04:13:03]OFD Sender: No OFD packet to send [04:13:08]OFD Sender: No OFD packet to send [04:13:13]OFD Sender: No OFD packet to send [04:13:18]OFD Sender: No OFD packet to send [04:13:23]OFD Sender: No OFD packet to send [04:13:28]OFD Sender: No OFD packet to send [04:13:33]OFD Sender: No OFD packet to send [04:13:38]OFD Sender: No OFD packet to send [04:13:43]OFD Sender: No OFD packet to send [04:13:48]OFD Sender: No OFD packet to send [04:13:53]OFD Sender: No OFD packet to send [04:13:58]OFD Sender: No OFD packet to send [04:14:03]OFD Sender: No OFD packet to send [04:14:08]OFD Sender: No OFD packet to send [04:14:13]OFD Sender: No OFD packet to send [04:14:18]OFD Sender: No OFD packet to send [04:14:23]OFD Sender: No OFD packet to send [04:14:28]OFD Sender: No OFD packet to send [04:14:33]OFD Sender: No OFD packet to send [04:14:38]OFD Sender: No OFD packet to send [04:14:43]OFD Sender: No OFD packet to send [04:14:48]OFD Sender: No OFD packet to send [04:14:53]OFD Sender: No OFD packet to send [04:14:58]OFD Sender: No OFD packet to send [04:15:03]OFD Sender: No OFD packet to send [04:15:08]OFD Sender: No OFD packet to send [04:15:13]OFD Sender: No OFD packet to send [04:15:18]OFD Sender: No OFD packet to send [04:15:23]OFD Sender: No OFD packet to send [04:15:28]OFD Sender: No OFD packet to send [04:15:33]OFD Sender: No OFD packet to send [04:15:38]OFD Sender: No OFD packet to send [04:15:43]OFD Sender: No OFD packet to send [04:15:48]OFD Sender: No OFD packet to send [04:15:53]OFD Sender: No OFD packet to send [04:15:58]OFD Sender: No OFD packet to send [04:16:03]OFD Sender: No OFD packet to send [04:16:08]OFD Sender: No OFD packet to send [04:16:13]OFD Sender: No OFD packet to send [04:16:18]OFD Sender: No OFD packet to send [04:16:23]OFD Sender: No OFD packet to send [04:16:28]OFD Sender: No OFD packet to send [04:16:33]OFD Sender: No OFD packet to send [04:16:38]OFD Sender: No OFD packet to send [04:16:43]OFD Sender: No OFD packet to send [04:16:48]OFD Sender: No OFD packet to send [04:16:53]OFD Sender: No OFD packet to send [04:16:58]OFD Sender: No OFD packet to send [04:17:03]OFD Sender: No OFD packet to send [04:17:08]OFD Sender: No OFD packet to send [04:17:13]OFD Sender: No OFD packet to send [04:17:18]OFD Sender: No OFD packet to send [04:17:23]OFD Sender: No OFD packet to send [04:17:28]OFD Sender: No OFD packet to send [04:17:33]OFD Sender: No OFD packet to send [04:17:38]OFD Sender: No OFD packet to send [04:17:43]OFD Sender: No OFD packet to send [04:17:48]OFD Sender: No OFD packet to send [04:17:53]OFD Sender: No OFD packet to send [04:17:58]OFD Sender: No OFD packet to send [04:18:03]OFD Sender: No OFD packet to send [04:18:08]OFD Sender: No OFD packet to send [04:18:13]OFD Sender: No OFD packet to send [04:18:18]OFD Sender: No OFD packet to send [04:18:23]OFD Sender: No OFD packet to send [04:18:28]OFD Sender: No OFD packet to send [04:18:33]OFD Sender: No OFD packet to send [04:18:38]OFD Sender: No OFD packet to send [04:18:43]OFD Sender: No OFD packet to send [04:18:48]OFD Sender: No OFD packet to send [04:18:53]OFD Sender: No OFD packet to send [04:18:58]OFD Sender: No OFD packet to send [04:19:03]OFD Sender: No OFD packet to send [04:19:08]OFD Sender: No OFD packet to send [04:19:13]OFD Sender: No OFD packet to send [04:19:18]OFD Sender: No OFD packet to send [04:19:22]accept exits with 8 [04:19:22]New connection [04:19:22]New thread 3067338084 created [04:19:22]Thread 3067194724 joined [04:19:22]Waiting for new connection... [04:19:22] Sock 8.Parse request [04:19:22]Sock 8.Check first char [04:19:22]Sock 8.First char is OK [04:19:22]request: POST /json_proto HTTP/1.0 [04:19:22]Method: POST [04:19:22]URL: /json_proto [04:19:22]Method is POST - this is cgi request [04:19:22]url: /json_proto [04:19:22]query_string will be loaded in cgi processing [04:19:22]execute_cgi json_proto POST (null) [04:19:22]execute_cgi path=json_proto method=POST [04:19:22]POST find Content-Length [04:19:22]Host: 172.17.45.7:8080 [04:19:22]Content-Length: 677 [04:19:22]Content-Type: application/json [04:19:22] [04:19:22]POST finish read [04:19:22]Found Content-Length = 677 [04:19:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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" ] } } [04:19:22]execute_script... [04:19: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)950209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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" ] } } [04:19:22]POST & json_proto [04:19:22]process_json_proto [04:19:22]json parsed OK: [04:19:22]protocol is kg_v1.0 [04:19:22]action value=close_receipt [04:19:22]process_action close_receipt [04:19:22]cmd_close_receipt [04:19:22]MH_GetDate [04:19:22]Write to MH i2c: F0 00 00 45 01 35 [04:19:22]Write i2c OK [04:19:22]MH_I2C_Read... [04:19:22]Read from MH i2c: F0 [04:19:22]MH_I2C_Read... [04:19:22]Read from MH i2c: F0 09 00 [04:19:22]MH_I2C_Read... [04:19:22]Read from MH i2c: F0 09 00 45 01 00 4B BB A9 66 90 0F 3E 66 96 [04:19:22]GetLastDocTimeStamp 1722398135 [04:19:22]current date 1722399563 [04:19:22]FM_GetShiftState [04:19:22]SAM_PROTO_GetShiftState [04:19:22]wFMCommunicate request_size=4 [04:19:22]MH_SAM_APDU [04:19:22]CAPDU: 80 13 01 00 [04:19:22]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [04:19:22]Write i2c OK [04:19:22]MH_I2C_Read... [04:19:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:19:22]Read from MH i2c: E2 [04:19:22]MH_I2C_Read... [04:19:22]Read from MH i2c: E2 0E 00 [04:19:22]MH_I2C_Read... [04:19:22]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 5C [04:19:22]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [04:19:22]wFMCommunicate OK [04:19:22]SAM_PROTO_GetShiftState done [04:19:22]FM_GetShiftState done [04:19:22]opened in 1722384637 [04:19:22]opened+sec_in_day 1722471037 [04:19:22]quantity*price = 50036 [04:19:22]sum+1 = 50037 [04:19:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 14 31.07.2024 04:19 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119283 ФПД: 242332490251455 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T041923&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119283&fm=242332490251455&tin=02508201610067®Number=0000000000092660&sum=50000 [04:19:23]StoreToDocumentArchive [04:19:23]shift 436 fd 119283 [04:19:23]save to /storage/0436/doc_00119283 [04:19:23]save last doc name /storage/0436/doc_00119283 to /storage/kkm_last_doc_name [04:19:23]save OK [04:19:23]Clear old archive folders... [04:19:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:19:23]tlvbuf is 00AC5990 [04:19:23]SAM_PROTO_ClearQueue [04:19:23]wFMCommunicate request_size=4 [04:19:23]MH_SAM_APDU [04:19:23]CAPDU: 80 09 00 00 [04:19:23]Write to MH i2c: E2 08 00 53 01 80 09 00 00 00 00 00 00 C6 [04:19:23]Write i2c OK [04:19:23]MH_I2C_Read... [04:19:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:19:24]Read from MH i2c: E2 [04:19:24]MH_I2C_Read... [04:19:24]Read from MH i2c: E2 03 00 [04:19:24]MH_I2C_Read... [04:19:24]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [04:19:24]RAPDU: 90 00 [04:19:24]wFMCommunicate OK [04:19:24]SAM_PROTO_ClearQueue done [04:19:24]KKMCreateOFDPacket [04:19:24]OFDProtocolAddRootSTLVToBuf [04:19:24]FM_MakeSignedData [04:19:24]FM_MakeSignedData [04:19:24]SAM_PROTO_SignData [04:19:24]wFMCommunicate request_size=4 [04:19:24]MH_SAM_APDU [04:19:24]CAPDU: 80 0D 01 02 [04:19:24]Write to MH i2c: E2 08 00 54 01 80 0D 01 02 00 00 00 00 CE [04:19:24]Write i2c OK [04:19:24]MH_I2C_Read... [04:19:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:19:24]Read from MH i2c: E2 [04:19:24]MH_I2C_Read... [04:19:24]Read from MH i2c: E2 03 00 [04:19:24]MH_I2C_Read... [04:19:24]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [04:19:24]RAPDU: 90 00 [04:19:24]wFMCommunicate OK [04:19:24]wFMCommunicate request_size=255 [04:19:24]MH_SAM_APDU [04:19: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 0E 00 00 00 F4 03 04 00 4B BB A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F3 D1 01 00 35 04 06 00 DC [04:19: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 0E 00 00 00 F4 03 04 00 4B BB A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F3 D1 01 00 35 04 06 00 DC 00 00 CB [04:19:24]Write i2c OK [04:19:24]MH_I2C_Read... [04:19:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:19:24]Read from MH i2c: E2 [04:19:24]MH_I2C_Read... [04:19:24]Read from MH i2c: E2 03 00 [04:19:24]MH_I2C_Read... [04:19:24]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [04:19:24]RAPDU: 90 00 [04:19:24]wFMCommunicate OK [04:19:24]wFMCommunicate request_size=10 [04:19:24]MH_SAM_APDU [04:19:24]CAPDU: 80 0D 02 02 05 66 6D FF BC BF [04:19:24]Write to MH i2c: E2 0D 00 56 01 80 0D 02 02 05 00 66 6D FF BC BF 00 00 28 [04:19:24]Write i2c OK [04:19:24]MH_I2C_Read... [04:19:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:19:24]Read from MH i2c: E2 [04:19:24]MH_I2C_Read... [04:19:24]Read from MH i2c: E2 03 00 [04:19:24]MH_I2C_Read... [04:19:24]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [04:19:24]RAPDU: 90 00 [04:19:24]wFMCommunicate OK [04:19:24]wFMCommunicate request_size=4 [04:19:24]MH_SAM_APDU [04:19:24]CAPDU: 80 0D 03 02 [04:19:24]Write to MH i2c: E2 08 00 57 01 80 0D 03 02 00 00 00 00 D3 [04:19:24]Write i2c OK [04:19:24]MH_I2C_Read... [04:19:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:19:24]Read from MH i2c: E2 [04:19:24]MH_I2C_Read... [04:19:24]Read from MH i2c: E2 0B 00 [04:19:24]MH_I2C_Read... [04:19:24]Read from MH i2c: E2 0B 00 57 01 00 0F 6B EA BB 9B 9C FB 17 90 00 3C [04:19:24]RAPDU: 0F 6B EA BB 9B 9C FB 17 90 00 [04:19:24]wFMCommunicate OK [04:19:24]SAM_PROTO_SignData done [04:19:24]FM_MakeSignedData done [04:19:24]CreateOFDProtocolMessage [04:19:24]wFMCommunicate request_size=4 [04:19:24]MH_SAM_APDU [04:19:24]CAPDU: 80 11 00 00 [04:19:24]Write to MH i2c: E2 08 00 58 01 80 11 00 00 00 00 00 00 D3 [04:19:24]Write i2c OK [04:19:24]MH_I2C_Read... [04:19:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:19:24]Read from MH i2c: E2 [04:19:24]MH_I2C_Read... [04:19:24]Read from MH i2c: E2 17 00 [04:19:24]MH_I2C_Read... [04:19:24]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 39 33 39 90 00 2E [04:19:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:19:24]wFMCommunicate OK [04:19:24]CreateOFDProtocolMessage done [04:19:24]OFDSenderStorePacket 119283 [04:19:24]StoreOFDPacket docnum=119283 [04:19:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 94 33 07 01 5B 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 0E 00 00 00 F4 03 04 00 4B BB A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F3 D1 01 00 35 04 06 00 DC 66 6D FF BC BF 0F 6B EA BB 9B 9C FB 17 [04:19:24]CheckFolder [04:19:24]dirname=/storage/ofd_packets [04:19:24]CheckFolder done [04:19:24]ProducePacketName [04:19:24]name=ofd_packets/00119283 [04:19:24]NVStorageSaveData ofd_packets/00119283 [04:19:24]File name is /storage/ofd_packets/00119283 [04:19:24]Write 301 bytes [04:19:24]NVStorageSaveData done [04:19:24]OFDSenderStorePacket done [04:19:24]KKMCreateOFDPacket done [04:19:24]NVStorageSaveData kkm_last_timestamp [04:19:24]File name is /storage/kkm_last_timestamp [04:19:24]Write 4 bytes [04:19:24]NVStorageSaveData done [04:19:24]ExternCall_PrintAddStr [04:19:24]wPrintStart [04:19:24]Write to MH i2c: 01 00 00 59 01 5A [04:19:24]Write i2c OK [04:19:24]MH_I2C_Read... [04:19:24]Read from MH i2c: 01 [04:19:24]MH_I2C_Read... [04:19:24]Read from MH i2c: 01 07 00 [04:19:24]MH_I2C_Read... [04:19:24]Read from MH i2c: 01 07 00 59 01 00 00 00 00 00 FF 0F 6F [04:19:24]RasterBufferAndPrint [04:19:24]line Счет N : (1)950209 [04:19:24]line ИНН: 02508201610067 [04:19:24]line Контрольно-Кассовый Чек [04:19:24]line ПРОДАЖА [04:19:24]line ТРК (МРК, ГНК) : 31 [04:19:24]line Товар: 2710124130 [04:19:24]line Аи-92-К-4 [04:19:24]line 7.380 * 67.80 [04:19:24]line = 500.36 [04:19:24]line НДС 12% НСП 1% [04:19:24]line > о реализуемом товаре [04:19:24]line ОКРУГЛЕНИЕ: -0.36 [04:19:24]line ИТОГО: 500.00 [04:19:24]line Внесено: 500.00 [04:19:24]line СДАЧА: 0.00 [04:19:24]line НСП 1% : 4.43 [04:19:24]line НДС 12% : 53.14 [04:19:24]line Наличными: 500.00 [04:19:24]line Безнал.: 0.00 [04:19:24]line Место: АЗС № 134 "Партнер Нефть" [04:19:24]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [04:19:24]line СНО: Общий режим [04:19:24]line Чек 14 31.07.2024 04:19 [04:19:24]line Смена: 436 ФФД: 1.0 [04:19:24]line ЗНМ: 0300000044 [04:19:24]line РНМ: 0000000000092660 [04:19:24]line Версия ККМ: 001 [04:19:24]line ФМ: 0000000000874939 [04:19:24]line ФД: 119283 [04:19:24]line ФПД: 242332490251455 [04:19:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T041923&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119283&fm=242332490251455&tin=02508201610067®Number=0000000000092660&sum=50000 [04:19:24]OFD Sender: Processing packet 119283 [packets to send 86, broken 85] [04:19:24]ProducePacketName [04:19:24]name=ofd_packets/00119283 [04:19:24]OFD Sender: To server: pG, [04:19:24]CommunicateWithHost lk.salyk.kg:30040 [04:19:24]ConnectInit lk.salyk.kg [04:19:24]written 0, free lines is 4095 [04:19:24]Connected sock=10 [04:19:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 94 33 07 01 5B 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 0E 00 00 00 F4 03 04 00 4B BB A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F3 D1 01 00 35 04 06 00 DC 66 6D FF BC BF 0F 6B EA BB 9B 9C FB 17 [04:19:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 C0 DA 47 00 AA 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 39 33 39 10 04 04 00 F3 D1 01 00 F4 03 04 00 D5 68 A9 66 B6 04 01 00 00 66 7D C5 38 C1 75 74 50 [04:19:25]CommunicateWithHost err = 0 [04:19:25]CheckOFDResponse [04:19:25]1017 (14) - 77093643461234 [04:19:25]1041 (16) - 0000000000874939 [04:19:25]1040 (4) - 119283 [04:19:25]1012 (4) - 30.07.2024 22:27 [04:19:25]1206 (1) - 0 [04:19:25]OFD Sender: Remove packet 119283 [04:19:25]ProducePacketName [04:19:25]name=ofd_packets/00119283 [04:19:25]NVStorageDeleteData [04:19:25]Write to MH i2c: 01 00 00 83 01 84 [04:19:25]Write i2c OK [04:19:25]MH_I2C_Read... [04:19:25]Read from MH i2c: 01 [04:19:25]MH_I2C_Read... [04:19:25]Read from MH i2c: 01 07 00 [04:19:25]MH_I2C_Read... [04:19:25]Read from MH i2c: 01 07 00 83 01 00 00 00 00 00 D5 0C 6C [04:19:25]RasterBufferAndPrint [04:19:25]line [04:19:25]line [04:19:25]line [04:19:25]line [04:19:25]line [04:19:25]written 0, free lines is 3292 [04:19:25]MH_Cut [04:19:25]Write to MH i2c: D1 01 00 8A 01 01 5D [04:19:25]Write i2c OK [04:19:25]MH_I2C_Read... [04:19:25]Read from MH i2c: D1 [04:19:25]MH_I2C_Read... [04:19:25]Read from MH i2c: D1 01 00 [04:19:25]MH_I2C_Read... [04:19:25]Read from MH i2c: D1 01 00 8A 01 00 5C [04:19:25]Write to MH i2c: 01 00 00 8B 01 8C [04:19:25]Write i2c OK [04:19:25]MH_I2C_Read... [04:19:25]OFD Sender: No OFD packet to send [04:19:26]*** Cut start [04:19:26]*** Partial cut [04:19:26]*** CUTSNS_PIN = 1 [04:19:26]*** CUTSNS_PIN = 0 [04:19:26]*** Brake cut motor [04:19:26]Read from MH i2c: 01 [04:19:26]MH_I2C_Read... [04:19:26]*** Stop cut motor [04:19:26]*** Cut end [04:19:26]Read from MH i2c: 01 07 00 [04:19:26]MH_I2C_Read... [04:19:26]Read from MH i2c: 01 07 00 8B 01 00 00 00 00 00 FF 0F A1 [04:19:26]process_action close_receipt done [04:19:26]requested_data is exist [04:19:26]produce_requested_data [04:19:26]requested_item fm.sn is exist - process it [04:19:26]wFMCommunicate request_size=4 [04:19:26]MH_SAM_APDU [04:19:26]CAPDU: 80 11 00 00 [04:19:26]Write to MH i2c: E2 08 00 8C 01 80 11 00 00 00 00 00 00 07 [04:19:26]Write i2c OK [04:19:26]MH_I2C_Read... [04:19:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:19:26]Read from MH i2c: E2 [04:19:26]MH_I2C_Read... [04:19:26]Read from MH i2c: E2 17 00 [04:19:26]MH_I2C_Read... [04:19:26]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 39 33 39 90 00 62 [04:19:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:19:26]wFMCommunicate OK [04:19:26]requested_item fd.num is exist - process it [04:19:26]SAM_PROTO_GetFieldsCounters [04:19:26]wFMCommunicate request_size=4 [04:19:26]MH_SAM_APDU [04:19:26]CAPDU: 80 13 00 00 [04:19:26]Write to MH i2c: E2 08 00 8D 01 80 13 00 00 00 00 00 00 0A [04:19:26]Write i2c OK [04:19:26]MH_I2C_Read... [04:19:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:19:26]Read from MH i2c: E2 [04:19:26]MH_I2C_Read... [04:19:26]Read from MH i2c: E2 62 00 [04:19:26]MH_I2C_Read... [04:19:26]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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F3 D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [04:19:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F3 D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:19:26]wFMCommunicate OK [04:19:26]SAM_PROTO_GetFieldsCounters done [04:19:26]requested_item shift.num is exist - process it [04:19:26]requested_item shift.opened is exist - process it [04:19:26]req_shift_opened [04:19:26]FM_GetShiftState [04:19:26]SAM_PROTO_GetShiftState [04:19:26]wFMCommunicate request_size=4 [04:19:26]MH_SAM_APDU [04:19:26]CAPDU: 80 13 01 00 [04:19:26]Write to MH i2c: E2 08 00 8E 01 80 13 01 00 00 00 00 00 0C [04:19:26]Write i2c OK [04:19:26]MH_I2C_Read... [04:19:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:19:26]Read from MH i2c: E2 [04:19:26]MH_I2C_Read... [04:19:26]Read from MH i2c: E2 0E 00 [04:19:26]MH_I2C_Read... [04:19:26]Read from MH i2c: E2 0E 00 8E 01 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 A4 [04:19:26]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [04:19:26]wFMCommunicate OK [04:19:26]SAM_PROTO_GetShiftState done [04:19:26]FM_GetShiftState done [04:19:26]req_shift_opened done [04:19:26]requested_item shift.open_date is exist - process it [04:19:26]req_shift_open_date [04:19:26]req_shift_open_date done [04:19:26]produce_requested_data done [04:19:26]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119283,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [04:19:26]process_action_free close_receipt [04:19:26]json_value_free [04:19:26]json_value_free done [04:19:26]process_json_proto returns [04:19:26]Send response to host [04:19:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119283,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [04:19:26]free response buf [04:19:26]execute_script done [04:19:26]execute_script returns [04:19:26]free content buf [04:19:26]Sock 8.Close socket [04:19:26]Sock 8.Thread stoped [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:20]OFD Sender: No OFD packet to send [04:20:25]OFD Sender: No OFD packet to send [04:20:30]OFD Sender: No OFD packet to send [04:20:35]OFD Sender: No OFD packet to send [04:20:40]OFD Sender: No OFD packet to send [04:20:45]OFD Sender: No OFD packet to send [04:20:50]OFD Sender: No OFD packet to send [04:20:55]OFD Sender: No OFD packet to send [04:21:00]OFD Sender: No OFD packet to send [04:21:05]OFD Sender: No OFD packet to send [04:21:10]OFD Sender: No OFD packet to send [04:21:15]OFD Sender: No OFD packet to send [04:21:20]OFD Sender: No OFD packet to send [04:21:25]OFD Sender: No OFD packet to send [04:21:30]OFD Sender: No OFD packet to send [04:21:35]OFD Sender: No OFD packet to send [04:21:40]OFD Sender: No OFD packet to send [04:21:45]OFD Sender: No OFD packet to send [04:21:50]OFD Sender: No OFD packet to send [04:21:55]OFD Sender: No OFD packet to send [04:22:00]OFD Sender: No OFD packet to send [04:22:05]OFD Sender: No OFD packet to send [04:22:10]OFD Sender: No OFD packet to send [04:22:15]OFD Sender: No OFD packet to send [04:22:20]OFD Sender: No OFD packet to send [04:22:25]OFD Sender: No OFD packet to send [04:22:30]OFD Sender: No OFD packet to send [04:22:35]OFD Sender: No OFD packet to send [04:22:40]OFD Sender: No OFD packet to send [04:22:45]OFD Sender: No OFD packet to send [04:22:50]OFD Sender: No OFD packet to send [04:22:55]OFD Sender: No OFD packet to send [04:23:00]OFD Sender: No OFD packet to send [04:23:05]OFD Sender: No OFD packet to send [04:23:10]OFD Sender: No OFD packet to send [04:23:15]OFD Sender: No OFD packet to send [04:23:20]OFD Sender: No OFD packet to send [04:23:21]accept exits with 9 [04:23:21]New connection [04:23:21]New thread 3067194724 created [04:23:21]Thread 3067338084 joined [04:23:21]Waiting for new connection... [04:23:21] Sock 9.Parse request [04:23:21]Sock 9.Check first char [04:23:21]Sock 9.First char is OK [04:23:21]request: POST /json_proto HTTP/1.0 [04:23:21]Method: POST [04:23:21]URL: /json_proto [04:23:21]Method is POST - this is cgi request [04:23:21]url: /json_proto [04:23:21]query_string will be loaded in cgi processing [04:23:21]execute_cgi json_proto POST (null) [04:23:21]execute_cgi path=json_proto method=POST [04:23:21]POST find Content-Length [04:23:21]Host: 172.17.45.7:8080 [04:23:21]Content-Length: 819 [04:23:21]Content-Type: application/json [04:23:21] [04:23:21]POST finish read [04:23:21]Found Content-Length = 819 [04:23:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 21.650, "sum" : 1649.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1649.00, "payments": [ { "type": 1, "sum" : 1649.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:23:21]execute_script... [04:23: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)950210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 21.650, "sum" : 1649.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1649.00, "payments": [ { "type": 1, "sum" : 1649.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:23:21]POST & json_proto [04:23:21]process_json_proto [04:23:21]json parsed OK: [04:23:21]protocol is kg_v1.0 [04:23:21]action value=close_receipt [04:23:21]process_action close_receipt [04:23:21]cmd_close_receipt [04:23:21]MH_GetDate [04:23:21]Write to MH i2c: F0 00 00 8F 01 7F [04:23:21]Write i2c OK [04:23:21]MH_I2C_Read... [04:23:21]Read from MH i2c: F0 [04:23:21]MH_I2C_Read... [04:23:21]Read from MH i2c: F0 09 00 [04:23:21]MH_I2C_Read... [04:23:21]Read from MH i2c: F0 09 00 8F 01 00 3A BC A9 66 90 0F 3E 66 D0 [04:23:21]GetLastDocTimeStamp 1722399563 [04:23:21]current date 1722399802 [04:23:21]FM_GetShiftState [04:23:21]SAM_PROTO_GetShiftState [04:23:21]wFMCommunicate request_size=4 [04:23:21]MH_SAM_APDU [04:23:21]CAPDU: 80 13 01 00 [04:23:21]Write to MH i2c: E2 08 00 90 01 80 13 01 00 00 00 00 00 0E [04:23:21]Write i2c OK [04:23:21]MH_I2C_Read... [04:23:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:23:22]Read from MH i2c: E2 [04:23:22]MH_I2C_Read... [04:23:22]Read from MH i2c: E2 0E 00 [04:23:22]MH_I2C_Read... [04:23:22]Read from MH i2c: E2 0E 00 90 01 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 A6 [04:23:22]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [04:23:22]wFMCommunicate OK [04:23:22]SAM_PROTO_GetShiftState done [04:23:22]FM_GetShiftState done [04:23:22]opened in 1722384637 [04:23:22]opened+sec_in_day 1722471037 [04:23:22]quantity*price = 164973 [04:23:22]sum+1 = 164974 [04:23:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 1649.00 НСП 1% : 14.60 НДС 12% : 175.19 Наличными: 0.00 Безнал.: 1649.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 15 31.07.2024 04:23 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119284 ФПД: 206658566654738 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T042322&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119284&fm=206658566654738&tin=02508201610067®Number=0000000000092660&sum=164900 [04:23:23]StoreToDocumentArchive [04:23:23]shift 436 fd 119284 [04:23:23]save to /storage/0436/doc_00119284 [04:23:23]save last doc name /storage/0436/doc_00119284 to /storage/kkm_last_doc_name [04:23:23]save OK [04:23:23]Clear old archive folders... [04:23:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:23:23]tlvbuf is 00AC5860 [04:23:23]SAM_PROTO_ClearQueue [04:23:23]wFMCommunicate request_size=4 [04:23:23]MH_SAM_APDU [04:23:23]CAPDU: 80 09 00 00 [04:23:23]Write to MH i2c: E2 08 00 9D 01 80 09 00 00 00 00 00 00 10 [04:23:23]Write i2c OK [04:23:23]MH_I2C_Read... [04:23:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:23:23]Read from MH i2c: E2 [04:23:23]MH_I2C_Read... [04:23:23]Read from MH i2c: E2 03 00 [04:23:23]MH_I2C_Read... [04:23:23]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [04:23:23]RAPDU: 90 00 [04:23:23]wFMCommunicate OK [04:23:23]SAM_PROTO_ClearQueue done [04:23:23]KKMCreateOFDPacket [04:23:23]OFDProtocolAddRootSTLVToBuf [04:23:23]FM_MakeSignedData [04:23:23]FM_MakeSignedData [04:23:23]SAM_PROTO_SignData [04:23:23]wFMCommunicate request_size=4 [04:23:23]MH_SAM_APDU [04:23:23]CAPDU: 80 0D 01 02 [04:23:23]Write to MH i2c: E2 08 00 9E 01 80 0D 01 02 00 00 00 00 18 [04:23:23]Write i2c OK [04:23:23]MH_I2C_Read... [04:23:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:23:23]Read from MH i2c: E2 [04:23:23]MH_I2C_Read... [04:23:23]Read from MH i2c: E2 03 00 [04:23:23]MH_I2C_Read... [04:23:23]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [04:23:23]RAPDU: 90 00 [04:23:23]wFMCommunicate OK [04:23:23]wFMCommunicate request_size=255 [04:23:23]MH_SAM_APDU [04:23:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 92 54 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6D 84 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 84 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 44 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 84 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 3A BC A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F4 D1 01 00 35 04 06 00 BB F4 72 74 [04:23:23]Write to MH i2c: E2 02 01 9F 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 92 54 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6D 84 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 84 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 44 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 84 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 3A BC A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F4 D1 01 00 35 04 06 00 BB F4 72 74 00 00 1E [04:23:23]Write i2c OK [04:23:23]MH_I2C_Read... [04:23:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:23:23]Read from MH i2c: E2 [04:23:23]MH_I2C_Read... [04:23:23]Read from MH i2c: E2 03 00 [04:23:23]MH_I2C_Read... [04:23:23]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [04:23:23]RAPDU: 90 00 [04:23:23]wFMCommunicate OK [04:23:23]wFMCommunicate request_size=7 [04:23:23]MH_SAM_APDU [04:23:23]CAPDU: 80 0D 02 02 02 8B 12 [04:23:23]Write to MH i2c: E2 0A 00 A0 01 80 0D 02 02 02 00 8B 12 00 00 BC [04:23:23]Write i2c OK [04:23:23]MH_I2C_Read... [04:23:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:23:23]Read from MH i2c: E2 [04:23:23]MH_I2C_Read... [04:23:23]Read from MH i2c: E2 03 00 [04:23:23]MH_I2C_Read... [04:23:23]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [04:23:23]RAPDU: 90 00 [04:23:23]wFMCommunicate OK [04:23:23]wFMCommunicate request_size=4 [04:23:23]MH_SAM_APDU [04:23:23]CAPDU: 80 0D 03 02 [04:23:23]Write to MH i2c: E2 08 00 A1 01 80 0D 03 02 00 00 00 00 1D [04:23:23]Write i2c OK [04:23:23]MH_I2C_Read... [04:23:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:23:23]Read from MH i2c: E2 [04:23:23]MH_I2C_Read... [04:23:23]Read from MH i2c: E2 0B 00 [04:23:23]MH_I2C_Read... [04:23:23]Read from MH i2c: E2 0B 00 A1 01 00 74 E6 10 BE EA D0 7D 6A 90 00 E7 [04:23:23]RAPDU: 74 E6 10 BE EA D0 7D 6A 90 00 [04:23:23]wFMCommunicate OK [04:23:23]SAM_PROTO_SignData done [04:23:23]FM_MakeSignedData done [04:23:23]CreateOFDProtocolMessage [04:23:23]wFMCommunicate request_size=4 [04:23:23]MH_SAM_APDU [04:23:23]CAPDU: 80 11 00 00 [04:23:23]Write to MH i2c: E2 08 00 A2 01 80 11 00 00 00 00 00 00 1D [04:23:23]Write i2c OK [04:23:23]MH_I2C_Read... [04:23:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:23:23]Read from MH i2c: E2 [04:23:23]MH_I2C_Read... [04:23:23]Read from MH i2c: E2 17 00 [04:23:23]MH_I2C_Read... [04:23:23]Read from MH i2c: E2 17 00 A2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 78 [04:23:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:23:23]wFMCommunicate OK [04:23:23]CreateOFDProtocolMessage done [04:23:23]OFDSenderStorePacket 119284 [04:23:23]StoreOFDPacket docnum=119284 [04:23:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B9 5A 04 01 D7 67 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 92 54 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6D 84 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 84 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 44 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 84 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 3A BC A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F4 D1 01 00 35 04 06 00 BB F4 72 74 8B 12 74 E6 10 BE EA D0 7D 6A [04:23:23]CheckFolder [04:23:23]dirname=/storage/ofd_packets [04:23:23]CheckFolder done [04:23:23]ProducePacketName [04:23:23]name=ofd_packets/00119284 [04:23:23]NVStorageSaveData ofd_packets/00119284 [04:23:23]File name is /storage/ofd_packets/00119284 [04:23:23]Write 298 bytes [04:23:23]NVStorageSaveData done [04:23:23]OFDSenderStorePacket done [04:23:23]KKMCreateOFDPacket done [04:23:23]NVStorageSaveData kkm_last_timestamp [04:23:23]File name is /storage/kkm_last_timestamp [04:23:23]Write 4 bytes [04:23:23]NVStorageSaveData done [04:23:23]ExternCall_PrintAddStr [04:23:23]wPrintStart [04:23:23]Write to MH i2c: 01 00 00 A3 01 A4 [04:23:23]Write i2c OK [04:23:23]MH_I2C_Read... [04:23:23]Read from MH i2c: 01 [04:23:23]MH_I2C_Read... [04:23:23]Read from MH i2c: 01 07 00 [04:23:23]MH_I2C_Read... [04:23:23]Read from MH i2c: 01 07 00 A3 01 00 00 00 00 00 FF 0F B9 [04:23:23]RasterBufferAndPrint [04:23:23]line Счет N : (1)950210 [04:23:23]line ИНН: 02508201610067 [04:23:23]line Контрольно-Кассовый Чек [04:23:23]line ПРОДАЖА [04:23:23]line ТРК (МРК, ГНК) : 44 [04:23:23]line Товар: 2710194800 [04:23:23]line ДТ-К-5 [04:23:23]line 21.650 * 76.20 [04:23:23]line = 1649.73 [04:23:23]line НДС 12% НСП 1% [04:23:23]line > о реализуемом товаре [04:23:23]line ОКРУГЛЕНИЕ: -0.73 [04:23:23]line ИТОГО: 1649.00 [04:23:23]line НСП 1% : 14.60 [04:23:23]line НДС 12% : 175.19 [04:23:23]line Наличными: 0.00 [04:23:23]line Безнал.: 1649.00 [04:23:23]line Место: АЗС № 134 "Партнер Нефть" [04:23:23]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [04:23:23]line СНО: Общий режим [04:23:23]line Чек 15 31.07.2024 04:23 [04:23:23]line Смена: 436 ФФД: 1.0 [04:23:23]line ЗНМ: 0300000044 [04:23:23]line РНМ: 0000000000092660 [04:23:23]line Версия ККМ: 001 [04:23:23]line Платежная система: O! деньги [04:23:23]line ФМ: 0000000000874939 [04:23:23]line ФД: 119284 [04:23:23]line ФПД: 206658566654738 [04:23:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T042322&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119284&fm=206658566654738&tin=02508201610067®Number=0000000000092660&sum=164900 [04:23:24]OFD Sender: Processing packet 119284 [packets to send 86, broken 85] [04:23:24]ProducePacketName [04:23:24]name=ofd_packets/00119284 [04:23:24]OFD Sender: To server: pG, [04:23:24]CommunicateWithHost lk.salyk.kg:30040 [04:23:24]ConnectInit lk.salyk.kg [04:23:24]written 0, free lines is 4095 [04:23:24]Connected sock=10 [04:23:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B9 5A 04 01 D7 67 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 92 54 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6D 84 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 84 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 44 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 84 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 3A BC A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F4 D1 01 00 35 04 06 00 BB F4 72 74 8B 12 74 E6 10 BE EA D0 7D 6A [04:23:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 73 8D 47 00 76 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 39 33 39 10 04 04 00 F4 D1 01 00 F4 03 04 00 C4 69 A9 66 B6 04 01 00 00 A0 2B 74 0F 3A CB 5E D1 [04:23:24]CommunicateWithHost err = 0 [04:23:24]CheckOFDResponse [04:23:24]1017 (14) - 77093643461234 [04:23:24]1041 (16) - 0000000000874939 [04:23:24]1040 (4) - 119284 [04:23:24]1012 (4) - 30.07.2024 22:31 [04:23:24]1206 (1) - 0 [04:23:24]OFD Sender: Remove packet 119284 [04:23:24]ProducePacketName [04:23:24]name=ofd_packets/00119284 [04:23:24]NVStorageDeleteData [04:23:24]Write to MH i2c: 01 00 00 CD 01 CE [04:23:24]Write i2c OK [04:23:24]MH_I2C_Read... [04:23:24]Read from MH i2c: 01 [04:23:24]MH_I2C_Read... [04:23:24]Read from MH i2c: 01 07 00 [04:23:24]MH_I2C_Read... [04:23:24]Read from MH i2c: 01 07 00 CD 01 00 00 00 00 00 D3 0C B4 [04:23:24]RasterBufferAndPrint [04:23:24]line [04:23:24]line [04:23:24]line [04:23:24]line [04:23:24]line [04:23:24]written 0, free lines is 3290 [04:23:24]MH_Cut [04:23:24]Write to MH i2c: D1 01 00 D4 01 01 A7 [04:23:24]Write i2c OK [04:23:24]MH_I2C_Read... [04:23:24]Read from MH i2c: D1 [04:23:24]MH_I2C_Read... [04:23:24]Read from MH i2c: D1 01 00 [04:23:24]MH_I2C_Read... [04:23:24]Read from MH i2c: D1 01 00 D4 01 00 A6 [04:23:24]Write to MH i2c: 01 00 00 D5 01 D6 [04:23:24]Write i2c OK [04:23:24]MH_I2C_Read... [04:23:24]OFD Sender: No OFD packet to send [04:23:25]*** Cut start [04:23:25]*** Partial cut [04:23:25]*** CUTSNS_PIN = 1 [04:23:25]*** CUTSNS_PIN = 0 [04:23:25]*** Brake cut motor [04:23:25]Read from MH i2c: 01 [04:23:25]MH_I2C_Read... [04:23:25]*** Stop cut motor [04:23:25]*** Cut end [04:23:25]Read from MH i2c: 01 07 00 [04:23:25]MH_I2C_Read... [04:23:25]Read from MH i2c: 01 07 00 D5 01 00 00 00 00 00 FF 0F EB [04:23:25]process_action close_receipt done [04:23:25]requested_data is exist [04:23:25]produce_requested_data [04:23:25]requested_item fm.sn is exist - process it [04:23:25]wFMCommunicate request_size=4 [04:23:25]MH_SAM_APDU [04:23:25]CAPDU: 80 11 00 00 [04:23:25]Write to MH i2c: E2 08 00 D6 01 80 11 00 00 00 00 00 00 51 [04:23:25]Write i2c OK [04:23:25]MH_I2C_Read... [04:23:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:23:25]Read from MH i2c: E2 [04:23:25]MH_I2C_Read... [04:23:25]Read from MH i2c: E2 17 00 [04:23:25]MH_I2C_Read... [04:23:25]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 39 33 39 90 00 AC [04:23:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:23:25]wFMCommunicate OK [04:23:25]requested_item fd.num is exist - process it [04:23:25]SAM_PROTO_GetFieldsCounters [04:23:25]wFMCommunicate request_size=4 [04:23:25]MH_SAM_APDU [04:23:25]CAPDU: 80 13 00 00 [04:23:25]Write to MH i2c: E2 08 00 D7 01 80 13 00 00 00 00 00 00 54 [04:23:25]Write i2c OK [04:23:25]MH_I2C_Read... [04:23:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:23:25]Read from MH i2c: E2 [04:23:25]MH_I2C_Read... [04:23:25]Read from MH i2c: E2 62 00 [04:23:25]MH_I2C_Read... [04:23:25]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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F4 D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [04:23: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F4 D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:23:26]wFMCommunicate OK [04:23:26]SAM_PROTO_GetFieldsCounters done [04:23:26]requested_item shift.num is exist - process it [04:23:26]requested_item shift.opened is exist - process it [04:23:26]req_shift_opened [04:23:26]FM_GetShiftState [04:23:26]SAM_PROTO_GetShiftState [04:23:26]wFMCommunicate request_size=4 [04:23:26]MH_SAM_APDU [04:23:26]CAPDU: 80 13 01 00 [04:23:26]Write to MH i2c: E2 08 00 D8 01 80 13 01 00 00 00 00 00 56 [04:23:26]Write i2c OK [04:23:26]MH_I2C_Read... [04:23:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:23:26]Read from MH i2c: E2 [04:23:26]MH_I2C_Read... [04:23:26]Read from MH i2c: E2 0E 00 [04:23:26]MH_I2C_Read... [04:23:26]Read from MH i2c: E2 0E 00 D8 01 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 EE [04:23:26]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [04:23:26]wFMCommunicate OK [04:23:26]SAM_PROTO_GetShiftState done [04:23:26]FM_GetShiftState done [04:23:26]req_shift_opened done [04:23:26]requested_item shift.open_date is exist - process it [04:23:26]req_shift_open_date [04:23:26]req_shift_open_date done [04:23:26]produce_requested_data done [04:23:26]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119284,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [04:23:26]process_action_free close_receipt [04:23:26]json_value_free [04:23:26]json_value_free done [04:23:26]process_json_proto returns [04:23:26]Send response to host [04:23:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119284,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [04:23:26]free response buf [04:23:26]execute_script done [04:23:26]execute_script returns [04:23:26]free content buf [04:23:26]Sock 9.Close socket [04:23:26]Sock 9.Thread stoped [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:29]OFD Sender: No OFD packet to send [04:24:34]OFD Sender: No OFD packet to send [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: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:25]OFD Sender: No OFD packet to send [04:26:30]OFD Sender: No OFD packet to send [04:26:35]OFD Sender: No OFD packet to send [04:26:40]OFD Sender: No OFD packet to send [04:26:45]OFD Sender: No OFD packet to send [04:26:50]OFD Sender: No OFD packet to send [04:26:55]OFD Sender: No OFD packet to send [04:27:00]OFD Sender: No OFD packet to send [04:27:05]OFD Sender: No OFD packet to send [04:27:10]OFD Sender: No OFD packet to send [04:27:15]OFD Sender: No OFD packet to send [04:27:20]OFD Sender: No OFD packet to send [04:27:25]OFD Sender: No OFD packet to send [04:27:30]OFD Sender: No OFD packet to send [04:27:35]OFD Sender: No OFD packet to send [04:27:40]OFD Sender: No OFD packet to send [04:27:45]OFD Sender: No OFD packet to send [04:27:50]OFD Sender: No OFD packet to send [04:27:55]OFD Sender: No OFD packet to send [04:28:00]OFD Sender: No OFD packet to send [04:28:05]OFD Sender: No OFD packet to send [04:28:10]OFD Sender: No OFD packet to send [04:28:15]OFD Sender: No OFD packet to send [04:28:20]OFD Sender: No OFD packet to send [04:28:25]OFD Sender: No OFD packet to send [04:28:30]OFD Sender: No OFD packet to send [04:28:35]OFD Sender: No OFD packet to send [04:28:40]OFD Sender: No OFD packet to send [04:28:45]OFD Sender: No OFD packet to send [04:28:50]OFD Sender: No OFD packet to send [04:28:55]OFD Sender: No OFD packet to send [04:29:00]OFD Sender: No OFD packet to send [04:29:05]OFD Sender: No OFD packet to send [04:29:10]OFD Sender: No OFD packet to send [04:29:15]OFD Sender: No OFD packet to send [04:29:20]OFD Sender: No OFD packet to send [04:29:25]OFD Sender: No OFD packet to send [04:29:30]OFD Sender: No OFD packet to send [04:29:35]OFD Sender: No OFD packet to send [04:29:40]OFD Sender: No OFD packet to send [04:29:45]OFD Sender: No OFD packet to send [04:29:50]OFD Sender: No OFD packet to send [04:29:55]OFD Sender: No OFD packet to send [04:30:00]OFD Sender: No OFD packet to send [04:30:05]OFD Sender: No OFD packet to send [04:30:10]OFD Sender: No OFD packet to send [04:30:15]OFD Sender: No OFD packet to send [04:30:20]OFD Sender: No OFD packet to send [04:30:25]OFD Sender: No OFD packet to send [04:30:30]OFD Sender: No OFD packet to send [04:30:35]OFD Sender: No OFD packet to send [04:30:40]OFD Sender: No OFD packet to send [04:30:45]OFD Sender: No OFD packet to send [04:30:50]OFD Sender: No OFD packet to send [04:30:55]OFD Sender: No OFD packet to send [04:31:00]OFD Sender: No OFD packet to send [04:31:05]OFD Sender: No OFD packet to send [04:31:10]OFD Sender: No OFD packet to send [04:31:15]OFD Sender: No OFD packet to send [04:31:20]OFD Sender: No OFD packet to send [04:31:25]OFD Sender: No OFD packet to send [04:31:30]OFD Sender: No OFD packet to send [04:31:35]OFD Sender: No OFD packet to send [04:31:40]OFD Sender: No OFD packet to send [04:31:45]OFD Sender: No OFD packet to send [04:31:50]OFD Sender: No OFD packet to send [04:31:55]OFD Sender: No OFD packet to send [04:32:00]OFD Sender: No OFD packet to send [04:32: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:20]OFD Sender: No OFD packet to send [04:34:25]OFD Sender: No OFD packet to send [04:34:30]OFD Sender: No OFD packet to send [04:34:35]OFD Sender: No OFD packet to send [04:34:40]OFD Sender: No OFD packet to send [04:34:45]OFD Sender: No OFD packet to send [04:34:50]OFD Sender: No OFD packet to send [04:34:55]OFD Sender: No OFD packet to send [04:35:00]OFD Sender: No OFD packet to send [04:35:05]OFD Sender: No OFD packet to send [04:35:10]OFD Sender: No OFD packet to send [04:35:15]OFD Sender: No OFD packet to send [04:35:20]OFD Sender: No OFD packet to send [04:35:25]OFD Sender: No OFD packet to send [04:35:30]OFD Sender: No OFD packet to send [04:35:35]OFD Sender: No OFD packet to send [04:35: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: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: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]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:35]OFD Sender: No OFD packet to send [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]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: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:40:25]OFD Sender: No OFD packet to send [04:40:30]OFD Sender: No OFD packet to send [04:40:35]OFD Sender: No OFD packet to send [04:40:40]OFD Sender: No OFD packet to send [04:40:45]OFD Sender: No OFD packet to send [04:40:50]OFD Sender: No OFD packet to send [04:40:55]OFD Sender: No OFD packet to send [04:41:00]OFD Sender: No OFD packet to send [04:41:05]OFD Sender: No OFD packet to send [04:41:10]OFD Sender: No OFD packet to send [04:41:15]OFD Sender: No OFD packet to send [04:41:20]OFD Sender: No OFD packet to send [04:41:25]OFD Sender: No OFD packet to send [04:41:30]OFD Sender: No OFD packet to send [04:41:35]OFD Sender: No OFD packet to send [04:41:40]OFD Sender: No OFD packet to send [04:41:45]OFD Sender: No OFD packet to send [04:41:50]OFD Sender: No OFD packet to send [04:41:55]OFD Sender: No OFD packet to send [04:42:00]OFD Sender: No OFD packet to send [04:42:05]OFD Sender: No OFD packet to send [04:42:10]OFD Sender: No OFD packet to send [04:42:15]OFD Sender: No OFD packet to send [04:42:21]OFD Sender: No OFD packet to send [04:42:26]OFD Sender: No OFD packet to send [04:42:31]OFD Sender: No OFD packet to send [04:42:36]OFD Sender: No OFD packet to send [04:42:41]OFD Sender: No OFD packet to send [04:42:46]OFD Sender: No OFD packet to send [04:42:51]OFD Sender: No OFD packet to send [04:42:56]OFD Sender: No OFD packet to send [04:43:01]OFD Sender: No OFD packet to send [04:43:06]OFD Sender: No OFD packet to send [04:43:11]OFD Sender: No OFD packet to send [04:43:16]OFD Sender: No OFD packet to send [04:43:21]OFD Sender: No OFD packet to send [04:43:26]OFD Sender: No OFD packet to send [04:43:31]OFD Sender: No OFD packet to send [04:43:36]OFD Sender: No OFD packet to send [04:43:41]OFD Sender: No OFD packet to send [04:43:46]OFD Sender: No OFD packet to send [04:43:51]OFD Sender: No OFD packet to send [04:43:56]OFD Sender: No OFD packet to send [04:44:01]OFD Sender: No OFD packet to send [04:44:06]OFD Sender: No OFD packet to send [04:44:11]OFD Sender: No OFD packet to send [04:44:16]OFD Sender: No OFD packet to send [04:44:21]OFD Sender: No OFD packet to send [04:44:26]OFD Sender: No OFD packet to send [04:44:31]OFD Sender: No OFD packet to send [04:44:36]OFD Sender: No OFD packet to send [04:44:41]OFD Sender: No OFD packet to send [04:44:46]OFD Sender: No OFD packet to send [04:44:51]OFD Sender: No OFD packet to send [04:44:56]OFD Sender: No OFD packet to send [04:45:01]OFD Sender: No OFD packet to send [04:45:06]OFD Sender: No OFD packet to send [04:45:11]OFD Sender: No OFD packet to send [04:45:16]OFD Sender: No OFD packet to send [04:45:21]OFD Sender: No OFD packet to send [04:45:26]OFD Sender: No OFD packet to send [04:45:31]OFD Sender: No OFD packet to send [04:45:36]OFD Sender: No OFD packet to send [04:45:41]OFD Sender: No OFD packet to send [04:45:46]OFD Sender: No OFD packet to send [04:45:51]OFD Sender: No OFD packet to send [04:45:56]OFD Sender: No OFD packet to send [04:46:01]OFD Sender: No OFD packet to send [04:46:06]OFD Sender: No OFD packet to send [04:46:11]OFD Sender: No OFD packet to send [04:46:16]OFD Sender: No OFD packet to send [04:46:21]OFD Sender: No OFD packet to send [04:46:26]OFD Sender: No OFD packet to send [04:46:31]OFD Sender: No OFD packet to send [04:46:36]OFD Sender: No OFD packet to send [04:46:41]OFD Sender: No OFD packet to send [04:46:46]OFD Sender: No OFD packet to send [04:46:51]OFD Sender: No OFD packet to send [04:46:56]OFD Sender: No OFD packet to send [04:47:01]OFD Sender: No OFD packet to send [04:47:06]OFD Sender: No OFD packet to send [04:47:11]OFD Sender: No OFD packet to send [04:47:16]OFD Sender: No OFD packet to send [04:47:21]OFD Sender: No OFD packet to send [04:47:26]OFD Sender: No OFD packet to send [04:47:31]OFD Sender: No OFD packet to send [04:47:36]OFD Sender: No OFD packet to send [04:47:41]OFD Sender: No OFD packet to send [04:47:46]OFD Sender: No OFD packet to send [04:47:51]OFD Sender: No OFD packet to send [04:47:56]OFD Sender: No OFD packet to send [04:48:01]OFD Sender: No OFD packet to send [04:48:06]OFD Sender: No OFD packet to send [04:48:11]OFD Sender: No OFD packet to send [04:48:16]OFD Sender: No OFD packet to send [04:48:21]OFD Sender: No OFD packet to send [04:48:26]OFD Sender: No OFD packet to send [04:48:31]OFD Sender: No OFD packet to send [04:48:36]OFD Sender: No OFD packet to send [04:48:41]OFD Sender: No OFD packet to send [04:48:46]OFD Sender: No OFD packet to send [04:48:51]OFD Sender: No OFD packet to send [04:48:56]OFD Sender: No OFD packet to send [04:49:01]OFD Sender: No OFD packet to send [04:49:06]OFD Sender: No OFD packet to send [04:49:11]OFD Sender: No OFD packet to send [04:49:16]OFD Sender: No OFD packet to send [04:49:21]OFD Sender: No OFD packet to send [04:49:26]OFD Sender: No OFD packet to send [04:49:31]OFD Sender: No OFD packet to send [04:49:36]OFD Sender: No OFD packet to send [04:49:41]OFD Sender: No OFD packet to send [04:49:46]OFD Sender: No OFD packet to send [04:49:51]OFD Sender: No OFD packet to send [04:49:56]OFD Sender: No OFD packet to send [04:50:01]OFD Sender: No OFD packet to send [04:50:06]OFD Sender: No OFD packet to send [04:50:11]OFD Sender: No OFD packet to send [04:50:16]OFD Sender: No OFD packet to send [04:50:21]OFD Sender: No OFD packet to send [04:50:26]OFD Sender: No OFD packet to send [04:50:31]OFD Sender: No OFD packet to send [04:50:36]OFD Sender: No OFD packet to send [04:50:41]OFD Sender: No OFD packet to send [04:50:46]OFD Sender: No OFD packet to send [04:50:50]accept exits with 8 [04:50:50]New connection [04:50:50]New thread 3067338084 created [04:50:50]Thread 3067194724 joined [04:50:50]Waiting for new connection... [04:50:50] Sock 8.Parse request [04:50:50]Sock 8.Check first char [04:50:50]Sock 8.First char is OK [04:50:50]request: POST /json_proto HTTP/1.0 [04:50:50]Method: POST [04:50:50]URL: /json_proto [04:50:50]Method is POST - this is cgi request [04:50:50]url: /json_proto [04:50:50]query_string will be loaded in cgi processing [04:50:50]execute_cgi json_proto POST (null) [04:50:50]execute_cgi path=json_proto method=POST [04:50:50]POST find Content-Length [04:50:50]Host: 172.17.45.7:8080 [04:50:50]Content-Length: 679 [04:50:50]Content-Type: application/json [04:50:50] [04:50:50]POST finish read [04:50:50]Found Content-Length = 679 [04:50:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:50:50]execute_script... [04:50:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:50:50]POST & json_proto [04:50:50]process_json_proto [04:50:50]json parsed OK: [04:50:50]protocol is kg_v1.0 [04:50:50]action value=close_receipt [04:50:50]process_action close_receipt [04:50:50]cmd_close_receipt [04:50:50]MH_GetDate [04:50:50]Write to MH i2c: F0 00 00 D9 01 C9 [04:50:50]Write i2c OK [04:50:50]MH_I2C_Read... [04:50:50]Read from MH i2c: F0 [04:50:50]MH_I2C_Read... [04:50:50]Read from MH i2c: F0 09 00 [04:50:50]MH_I2C_Read... [04:50:50]Read from MH i2c: F0 09 00 D9 01 00 AB C2 A9 66 90 0F 3E 66 91 [04:50:50]GetLastDocTimeStamp 1722399802 [04:50:50]current date 1722401451 [04:50:50]FM_GetShiftState [04:50:50]SAM_PROTO_GetShiftState [04:50:50]wFMCommunicate request_size=4 [04:50:50]MH_SAM_APDU [04:50:50]CAPDU: 80 13 01 00 [04:50:50]Write to MH i2c: E2 08 00 DA 01 80 13 01 00 00 00 00 00 58 [04:50:50]Write i2c OK [04:50:50]MH_I2C_Read... [04:50:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:50:50]Read from MH i2c: E2 [04:50:50]MH_I2C_Read... [04:50:50]Read from MH i2c: E2 0E 00 [04:50:50]MH_I2C_Read... [04:50:50]Read from MH i2c: E2 0E 00 DA 01 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 F0 [04:50:50]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [04:50:50]wFMCommunicate OK [04:50:50]SAM_PROTO_GetShiftState done [04:50:50]FM_GetShiftState done [04:50:50]opened in 1722384637 [04:50:50]opened+sec_in_day 1722471037 [04:50:50]quantity*price = 100050 [04:50:50]sum+1 = 100052 [04:50:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 16 31.07.2024 04:50 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119285 ФПД: 4262597832017 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T045051&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119285&fm=4262597832017&tin=02508201610067®Number=0000000000092660&sum=100000 [04:50:51]StoreToDocumentArchive [04:50:51]shift 436 fd 119285 [04:50:51]save to /storage/0436/doc_00119285 [04:50:51]save last doc name /storage/0436/doc_00119285 to /storage/kkm_last_doc_name [04:50:51]save OK [04:50:51]Clear old archive folders... [04:50:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:50:51]tlvbuf is 00AF2E90 [04:50:51]SAM_PROTO_ClearQueue [04:50:51]wFMCommunicate request_size=4 [04:50:51]MH_SAM_APDU [04:50:51]CAPDU: 80 09 00 00 [04:50:51]Write to MH i2c: E2 08 00 E7 01 80 09 00 00 00 00 00 00 5A [04:50:51]Write i2c OK [04:50:51]MH_I2C_Read... [04:50:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:50:51]Read from MH i2c: E2 [04:50:51]MH_I2C_Read... [04:50:51]Read from MH i2c: E2 03 00 [04:50:51]MH_I2C_Read... [04:50:51]Read from MH i2c: E2 03 00 E7 01 00 90 00 5C [04:50:51]RAPDU: 90 00 [04:50:51]wFMCommunicate OK [04:50:51]SAM_PROTO_ClearQueue done [04:50:51]KKMCreateOFDPacket [04:50:51]OFDProtocolAddRootSTLVToBuf [04:50:51]FM_MakeSignedData [04:50:51]FM_MakeSignedData [04:50:51]SAM_PROTO_SignData [04:50:51]wFMCommunicate request_size=4 [04:50:51]MH_SAM_APDU [04:50:51]CAPDU: 80 0D 01 02 [04:50:51]Write to MH i2c: E2 08 00 E8 01 80 0D 01 02 00 00 00 00 62 [04:50:51]Write i2c OK [04:50:51]MH_I2C_Read... [04:50:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:50:51]Read from MH i2c: E2 [04:50:51]MH_I2C_Read... [04:50:51]Read from MH i2c: E2 03 00 [04:50:51]MH_I2C_Read... [04:50:51]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [04:50:51]RAPDU: 90 00 [04:50:51]wFMCommunicate OK [04:50:51]wFMCommunicate request_size=255 [04:50:51]MH_SAM_APDU [04:50:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 AB C2 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F5 D1 01 00 35 04 06 00 03 E0 76 A1 [04:50:51]Write to MH i2c: E2 02 01 E9 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 AB C2 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F5 D1 01 00 35 04 06 00 03 E0 76 A1 00 00 F4 [04:50:51]Write i2c OK [04:50:51]MH_I2C_Read... [04:50:51]OFD Sender: No OFD packet to send [04:50:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:50:51]Read from MH i2c: E2 [04:50:51]MH_I2C_Read... [04:50:51]Read from MH i2c: E2 03 00 [04:50:51]MH_I2C_Read... [04:50:51]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [04:50:51]RAPDU: 90 00 [04:50:51]wFMCommunicate OK [04:50:51]wFMCommunicate request_size=7 [04:50:51]MH_SAM_APDU [04:50:51]CAPDU: 80 0D 02 02 02 2D 51 [04:50:51]Write to MH i2c: E2 0A 00 EA 01 80 0D 02 02 02 00 2D 51 00 00 E7 [04:50:51]Write i2c OK [04:50:51]MH_I2C_Read... [04:50:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:50:51]Read from MH i2c: E2 [04:50:51]MH_I2C_Read... [04:50:51]Read from MH i2c: E2 03 00 [04:50:51]MH_I2C_Read... [04:50:51]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [04:50:51]RAPDU: 90 00 [04:50:51]wFMCommunicate OK [04:50:51]wFMCommunicate request_size=4 [04:50:51]MH_SAM_APDU [04:50:51]CAPDU: 80 0D 03 02 [04:50:51]Write to MH i2c: E2 08 00 EB 01 80 0D 03 02 00 00 00 00 67 [04:50:51]Write i2c OK [04:50:51]MH_I2C_Read... [04:50:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:50:51]Read from MH i2c: E2 [04:50:51]MH_I2C_Read... [04:50:51]Read from MH i2c: E2 0B 00 [04:50:51]MH_I2C_Read... [04:50:51]Read from MH i2c: E2 0B 00 EB 01 00 9E B6 43 E7 BF 55 80 5A 90 00 D4 [04:50:51]RAPDU: 9E B6 43 E7 BF 55 80 5A 90 00 [04:50:51]wFMCommunicate OK [04:50:51]SAM_PROTO_SignData done [04:50:51]FM_MakeSignedData done [04:50:51]CreateOFDProtocolMessage [04:50:51]wFMCommunicate request_size=4 [04:50:51]MH_SAM_APDU [04:50:51]CAPDU: 80 11 00 00 [04:50:51]Write to MH i2c: E2 08 00 EC 01 80 11 00 00 00 00 00 00 67 [04:50:51]Write i2c OK [04:50:51]MH_I2C_Read... [04:50:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:50:51]Read from MH i2c: E2 [04:50:51]MH_I2C_Read... [04:50:51]Read from MH i2c: E2 17 00 [04:50:51]MH_I2C_Read... [04:50:51]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 39 33 39 90 00 C2 [04:50:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:50:51]wFMCommunicate OK [04:50:51]CreateOFDProtocolMessage done [04:50:51]OFDSenderStorePacket 119285 [04:50:51]StoreOFDPacket docnum=119285 [04:50:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C3 C2 04 01 A8 4C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 AB C2 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F5 D1 01 00 35 04 06 00 03 E0 76 A1 2D 51 9E B6 43 E7 BF 55 80 5A [04:50:51]CheckFolder [04:50:51]dirname=/storage/ofd_packets [04:50:51]CheckFolder done [04:50:51]ProducePacketName [04:50:51]name=ofd_packets/00119285 [04:50:51]NVStorageSaveData ofd_packets/00119285 [04:50:51]File name is /storage/ofd_packets/00119285 [04:50:51]Write 298 bytes [04:50:51]NVStorageSaveData done [04:50:51]OFDSenderStorePacket done [04:50:51]KKMCreateOFDPacket done [04:50:51]NVStorageSaveData kkm_last_timestamp [04:50:51]File name is /storage/kkm_last_timestamp [04:50:51]Write 4 bytes [04:50:51]NVStorageSaveData done [04:50:51]ExternCall_PrintAddStr [04:50:51]wPrintStart [04:50:51]Write to MH i2c: 01 00 00 ED 01 EE [04:50:51]Write i2c OK [04:50:51]MH_I2C_Read... [04:50:51]Read from MH i2c: 01 [04:50:51]MH_I2C_Read... [04:50:51]Read from MH i2c: 01 07 00 [04:50:51]MH_I2C_Read... [04:50:51]Read from MH i2c: 01 07 00 ED 01 00 00 00 00 00 FF 0F 03 [04:50:51]RasterBufferAndPrint [04:50:51]line Счет N : (1)950211 [04:50:51]line ИНН: 02508201610067 [04:50:51]line Контрольно-Кассовый Чек [04:50:51]line ПРОДАЖА [04:50:51]line ТРК (МРК, ГНК) : 44 [04:50:51]line Товар: 2710194800 [04:50:51]line ДТ-К-5 [04:50:51]line 13.130 * 76.20 [04:50:51]line = 1000.51 [04:50:51]line НДС 12% НСП 1% [04:50:51]line > о реализуемом товаре [04:50:51]line ОКРУГЛЕНИЕ: -0.51 [04:50:51]line ИТОГО: 1000.00 [04:50:51]line Внесено: 1000.00 [04:50:51]line СДАЧА: 0.00 [04:50:51]line НСП 1% : 8.85 [04:50:51]line НДС 12% : 106.25 [04:50:51]line Наличными: 1000.00 [04:50:51]line Безнал.: 0.00 [04:50:51]line Место: АЗС № 134 "Партнер Нефть" [04:50:51]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [04:50:51]line СНО: Общий режим [04:50:51]line Чек 16 31.07.2024 04:50 [04:50:51]line Смена: 436 ФФД: 1.0 [04:50:51]line ЗНМ: 0300000044 [04:50:51]line РНМ: 0000000000092660 [04:50:51]line Версия ККМ: 001 [04:50:51]line ФМ: 0000000000874939 [04:50:51]line ФД: 119285 [04:50:51]line ФПД: 4262597832017 [04:50:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T045051&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119285&fm=4262597832017&tin=02508201610067®Number=0000000000092660&sum=100000 [04:50:52]OFD Sender: Processing packet 119285 [packets to send 86, broken 85] [04:50:52]ProducePacketName [04:50:52]name=ofd_packets/00119285 [04:50:52]OFD Sender: To server: pG, [04:50:52]CommunicateWithHost lk.salyk.kg:30040 [04:50:52]ConnectInit lk.salyk.kg [04:50:52]written 0, free lines is 4095 [04:50:52]Connected sock=11 [04:50:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C3 C2 04 01 A8 4C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 AB C2 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F5 D1 01 00 35 04 06 00 03 E0 76 A1 2D 51 9E B6 43 E7 BF 55 80 5A [04:50:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 74 64 47 00 E4 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F5 D1 01 00 F4 03 04 00 34 70 A9 66 B6 04 01 00 00 59 AA A3 BB C8 22 DE 57 [04:50:52]CommunicateWithHost err = 0 [04:50:52]CheckOFDResponse [04:50:52]1017 (14) - 77093643461234 [04:50:52]1041 (16) - 0000000000874939 [04:50:52]1040 (4) - 119285 [04:50:52]1012 (4) - 30.07.2024 22:59 [04:50:52]1206 (1) - 0 [04:50:52]OFD Sender: Remove packet 119285 [04:50:52]ProducePacketName [04:50:52]name=ofd_packets/00119285 [04:50:52]NVStorageDeleteData [04:50:52]Write to MH i2c: 01 00 00 17 02 19 [04:50:52]Write i2c OK [04:50:52]MH_I2C_Read... [04:50:52]Read from MH i2c: 01 [04:50:52]MH_I2C_Read... [04:50:52]Read from MH i2c: 01 07 00 [04:50:52]MH_I2C_Read... [04:50:52]Read from MH i2c: 01 07 00 17 02 00 00 00 00 00 CA 0C F6 [04:50:52]RasterBufferAndPrint [04:50:52]line [04:50:52]line [04:50:52]line [04:50:52]line [04:50:52]line [04:50:52]written 0, free lines is 3280 [04:50:52]MH_Cut [04:50:52]Write to MH i2c: D1 01 00 1E 02 01 F2 [04:50:52]Write i2c OK [04:50:52]MH_I2C_Read... [04:50:52]Read from MH i2c: D1 [04:50:52]MH_I2C_Read... [04:50:52]Read from MH i2c: D1 01 00 [04:50:52]MH_I2C_Read... [04:50:52]Read from MH i2c: D1 01 00 1E 02 00 F1 [04:50:52]Write to MH i2c: 01 00 00 1F 02 21 [04:50:52]Write i2c OK [04:50:52]MH_I2C_Read... [04:50:53]OFD Sender: No OFD packet to send [04:50:53]*** Cut start [04:50:53]*** Partial cut [04:50:53]*** CUTSNS_PIN = 1 [04:50:53]*** CUTSNS_PIN = 0 [04:50:53]*** Brake cut motor [04:50:54]Read from MH i2c: 01 [04:50:54]MH_I2C_Read... [04:50:54]*** Stop cut motor [04:50:54]*** Cut end [04:50:54]Read from MH i2c: 01 07 00 [04:50:54]MH_I2C_Read... [04:50:54]Read from MH i2c: 01 07 00 1F 02 00 00 00 00 00 FF 0F 36 [04:50:54]process_action close_receipt done [04:50:54]requested_data is exist [04:50:54]produce_requested_data [04:50:54]requested_item fm.sn is exist - process it [04:50:54]wFMCommunicate request_size=4 [04:50:54]MH_SAM_APDU [04:50:54]CAPDU: 80 11 00 00 [04:50:54]Write to MH i2c: E2 08 00 20 02 80 11 00 00 00 00 00 00 9C [04:50:54]Write i2c OK [04:50:54]MH_I2C_Read... [04:50:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:50:54]Read from MH i2c: E2 [04:50:54]MH_I2C_Read... [04:50:54]Read from MH i2c: E2 17 00 [04:50:54]MH_I2C_Read... [04:50:54]Read from MH i2c: E2 17 00 20 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F7 [04:50:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:50:54]wFMCommunicate OK [04:50:54]requested_item fd.num is exist - process it [04:50:54]SAM_PROTO_GetFieldsCounters [04:50:54]wFMCommunicate request_size=4 [04:50:54]MH_SAM_APDU [04:50:54]CAPDU: 80 13 00 00 [04:50:54]Write to MH i2c: E2 08 00 21 02 80 13 00 00 00 00 00 00 9F [04:50:54]Write i2c OK [04:50:54]MH_I2C_Read... [04:50:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:50:54]Read from MH i2c: E2 [04:50:54]MH_I2C_Read... [04:50:54]Read from MH i2c: E2 62 00 [04:50:54]MH_I2C_Read... [04:50:54]Read from MH i2c: E2 62 00 21 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F5 D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [04:50:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F5 D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:50:54]wFMCommunicate OK [04:50:54]SAM_PROTO_GetFieldsCounters done [04:50:54]requested_item shift.num is exist - process it [04:50:54]requested_item shift.opened is exist - process it [04:50:54]req_shift_opened [04:50:54]FM_GetShiftState [04:50:54]SAM_PROTO_GetShiftState [04:50:54]wFMCommunicate request_size=4 [04:50:54]MH_SAM_APDU [04:50:54]CAPDU: 80 13 01 00 [04:50:54]Write to MH i2c: E2 08 00 22 02 80 13 01 00 00 00 00 00 A1 [04:50:54]Write i2c OK [04:50:54]MH_I2C_Read... [04:50:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:50:54]Read from MH i2c: E2 [04:50:54]MH_I2C_Read... [04:50:54]Read from MH i2c: E2 0E 00 [04:50:54]MH_I2C_Read... [04:50:54]Read from MH i2c: E2 0E 00 22 02 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 39 [04:50:54]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [04:50:54]wFMCommunicate OK [04:50:54]SAM_PROTO_GetShiftState done [04:50:54]FM_GetShiftState done [04:50:54]req_shift_opened done [04:50:54]requested_item shift.open_date is exist - process it [04:50:54]req_shift_open_date [04:50:54]req_shift_open_date done [04:50:54]produce_requested_data done [04:50:54]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119285,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [04:50:54]process_action_free close_receipt [04:50:54]json_value_free [04:50:54]json_value_free done [04:50:54]process_json_proto returns [04:50:54]Send response to host [04:50:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119285,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [04:50:54]free response buf [04:50:54]execute_script done [04:50:54]execute_script returns [04:50:54]free content buf [04:50:54]Sock 8.Close socket [04:50:54]Sock 8.Thread stoped [04:50:58]OFD Sender: No OFD packet to send [04:51:03]OFD Sender: No OFD packet to send [04:51:08]OFD Sender: No OFD packet to send [04:51:13]OFD Sender: No OFD packet to send [04:51:18]OFD Sender: No OFD packet to send [04:51:23]OFD Sender: No OFD packet to send [04:51:28]OFD Sender: No OFD packet to send [04:51:33]OFD Sender: No OFD packet to send [04:51:38]OFD Sender: No OFD packet to send [04:51:43]OFD Sender: No OFD packet to send [04:51:48]OFD Sender: No OFD packet to send [04:51:53]OFD Sender: No OFD packet to send [04:51:58]OFD Sender: No OFD packet to send [04:51:58]accept exits with 9 [04:51:58]New connection [04:51:58]New thread 3067194724 created [04:51:58]Thread 3067338084 joined [04:51:58]Waiting for new connection... [04:51:58] Sock 9.Parse request [04:51:58]Sock 9.Check first char [04:51:58]Sock 9.First char is OK [04:51:58]request: POST /json_proto HTTP/1.0 [04:51:58]Method: POST [04:51:58]URL: /json_proto [04:51:58]Method is POST - this is cgi request [04:51:58]url: /json_proto [04:51:58]query_string will be loaded in cgi processing [04:51:58]execute_cgi json_proto POST (null) [04:51:58]execute_cgi path=json_proto method=POST [04:51:58]POST find Content-Length [04:51:58]Host: 172.17.45.7:8080 [04:51:58]Content-Length: 677 [04:51:58]Content-Type: application/json [04:51:58] [04:51:58]POST finish read [04:51:58]Found Content-Length = 677 [04:51:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.500, "sum" : 305.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 305.00, "total" : 305.00, "payments": [ { "type": 0, "sum" : 305.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:51:58]execute_script... [04:51: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)950212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.500, "sum" : 305.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 305.00, "total" : 305.00, "payments": [ { "type": 0, "sum" : 305.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:51:58]POST & json_proto [04:51:58]process_json_proto [04:51:58]json parsed OK: [04:51:58]protocol is kg_v1.0 [04:51:58]action value=close_receipt [04:51:58]process_action close_receipt [04:51:58]cmd_close_receipt [04:51:58]MH_GetDate [04:51:58]Write to MH i2c: F0 00 00 23 02 14 [04:51:58]Write i2c OK [04:51:58]MH_I2C_Read... [04:51:58]Read from MH i2c: F0 [04:51:58]MH_I2C_Read... [04:51:58]Read from MH i2c: F0 09 00 [04:51:58]MH_I2C_Read... [04:51:58]Read from MH i2c: F0 09 00 23 02 00 EF C2 A9 66 90 0F 3E 66 20 [04:51:58]GetLastDocTimeStamp 1722401451 [04:51:58]current date 1722401519 [04:51:58]FM_GetShiftState [04:51:58]SAM_PROTO_GetShiftState [04:51:58]wFMCommunicate request_size=4 [04:51:58]MH_SAM_APDU [04:51:58]CAPDU: 80 13 01 00 [04:51:58]Write to MH i2c: E2 08 00 24 02 80 13 01 00 00 00 00 00 A3 [04:51:58]Write i2c OK [04:51:58]MH_I2C_Read... [04:51:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:51:58]Read from MH i2c: E2 [04:51:58]MH_I2C_Read... [04:51:58]Read from MH i2c: E2 0E 00 [04:51:58]MH_I2C_Read... [04:51:58]Read from MH i2c: E2 0E 00 24 02 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 3B [04:51:58]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [04:51:58]wFMCommunicate OK [04:51:58]SAM_PROTO_GetShiftState done [04:51:58]FM_GetShiftState done [04:51:58]opened in 1722384637 [04:51:58]opened+sec_in_day 1722471037 [04:51:58]quantity*price = 30510 [04:51:58]sum+1 = 30511 [04:51:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 305.00 Внесено: 305.00 СДАЧА: 0.00 НСП 1% : 2.70 НДС 12% : 32.40 Наличными: 305.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 17 31.07.2024 04:51 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119286 ФПД: 182358134742768 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T045159&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119286&fm=182358134742768&tin=02508201610067®Number=0000000000092660&sum=30500 [04:51:59]StoreToDocumentArchive [04:51:59]shift 436 fd 119286 [04:51:59]save to /storage/0436/doc_00119286 [04:51:59]save last doc name /storage/0436/doc_00119286 to /storage/kkm_last_doc_name [04:51:59]save OK [04:51:59]Clear old archive folders... [04:51:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:51:59]tlvbuf is 00B03920 [04:51:59]SAM_PROTO_ClearQueue [04:51:59]wFMCommunicate request_size=4 [04:51:59]MH_SAM_APDU [04:51:59]CAPDU: 80 09 00 00 [04:51:59]Write to MH i2c: E2 08 00 31 02 80 09 00 00 00 00 00 00 A5 [04:51:59]Write i2c OK [04:51:59]MH_I2C_Read... [04:51:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:51:59]Read from MH i2c: E2 [04:51:59]MH_I2C_Read... [04:51:59]Read from MH i2c: E2 03 00 [04:51:59]MH_I2C_Read... [04:51:59]Read from MH i2c: E2 03 00 31 02 00 90 00 A7 [04:51:59]RAPDU: 90 00 [04:51:59]wFMCommunicate OK [04:51:59]SAM_PROTO_ClearQueue done [04:51:59]KKMCreateOFDPacket [04:51:59]OFDProtocolAddRootSTLVToBuf [04:51:59]FM_MakeSignedData [04:51:59]FM_MakeSignedData [04:51:59]SAM_PROTO_SignData [04:51:59]wFMCommunicate request_size=4 [04:51:59]MH_SAM_APDU [04:51:59]CAPDU: 80 0D 01 02 [04:51:59]Write to MH i2c: E2 08 00 32 02 80 0D 01 02 00 00 00 00 AD [04:51:59]Write i2c OK [04:51:59]MH_I2C_Read... [04:51:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:51:59]Read from MH i2c: E2 [04:51:59]MH_I2C_Read... [04:51:59]Read from MH i2c: E2 03 00 [04:51:59]MH_I2C_Read... [04:51:59]Read from MH i2c: E2 03 00 32 02 00 90 00 A8 [04:51:59]RAPDU: 90 00 [04:51:59]wFMCommunicate OK [04:51:59]wFMCommunicate request_size=255 [04:51:59]MH_SAM_APDU [04:51:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 94 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 2E 77 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 0C 00 00 00 00 07 04 06 00 24 77 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 EF C2 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F6 D1 01 00 35 04 06 00 A5 [04:51:59]Write to MH i2c: E2 02 01 33 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 94 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 2E 77 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 0C 00 00 00 00 07 04 06 00 24 77 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 EF C2 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F6 D1 01 00 35 04 06 00 A5 00 00 88 [04:51:59]Write i2c OK [04:51:59]MH_I2C_Read... [04:51:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:51:59]Read from MH i2c: E2 [04:51:59]MH_I2C_Read... [04:51:59]Read from MH i2c: E2 03 00 [04:51:59]MH_I2C_Read... [04:51:59]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [04:51:59]RAPDU: 90 00 [04:51:59]wFMCommunicate OK [04:51:59]wFMCommunicate request_size=10 [04:51:59]MH_SAM_APDU [04:51:59]CAPDU: 80 0D 02 02 05 DA 8F D7 DE F0 [04:51:59]Write to MH i2c: E2 0D 00 34 02 80 0D 02 02 05 00 DA 8F D7 DE F0 00 00 C8 [04:51:59]Write i2c OK [04:51:59]MH_I2C_Read... [04:51:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:51:59]Read from MH i2c: E2 [04:51:59]MH_I2C_Read... [04:51:59]Read from MH i2c: E2 03 00 [04:51:59]MH_I2C_Read... [04:51:59]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [04:51:59]RAPDU: 90 00 [04:51:59]wFMCommunicate OK [04:51:59]wFMCommunicate request_size=4 [04:51:59]MH_SAM_APDU [04:51:59]CAPDU: 80 0D 03 02 [04:51:59]Write to MH i2c: E2 08 00 35 02 80 0D 03 02 00 00 00 00 B2 [04:51:59]Write i2c OK [04:51:59]MH_I2C_Read... [04:51:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:51:59]Read from MH i2c: E2 [04:51:59]MH_I2C_Read... [04:51:59]Read from MH i2c: E2 0B 00 [04:51:59]MH_I2C_Read... [04:51:59]Read from MH i2c: E2 0B 00 35 02 00 79 E1 D8 4D 8E 60 AC 2F 90 00 FB [04:51:59]RAPDU: 79 E1 D8 4D 8E 60 AC 2F 90 00 [04:51:59]wFMCommunicate OK [04:51:59]SAM_PROTO_SignData done [04:51:59]FM_MakeSignedData done [04:51:59]CreateOFDProtocolMessage [04:51:59]wFMCommunicate request_size=4 [04:51:59]MH_SAM_APDU [04:51:59]CAPDU: 80 11 00 00 [04:51:59]Write to MH i2c: E2 08 00 36 02 80 11 00 00 00 00 00 00 B2 [04:51:59]Write i2c OK [04:51:59]MH_I2C_Read... [04:52:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:52:00]Read from MH i2c: E2 [04:52:00]MH_I2C_Read... [04:52:00]Read from MH i2c: E2 17 00 [04:52:00]MH_I2C_Read... [04:52:00]Read from MH i2c: E2 17 00 36 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0D [04:52:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:52:00]wFMCommunicate OK [04:52:00]CreateOFDProtocolMessage done [04:52:00]OFDSenderStorePacket 119286 [04:52:00]StoreOFDPacket docnum=119286 [04:52:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B4 86 07 01 A9 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 94 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 2E 77 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 0C 00 00 00 00 07 04 06 00 24 77 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 EF C2 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F6 D1 01 00 35 04 06 00 A5 DA 8F D7 DE F0 79 E1 D8 4D 8E 60 AC 2F [04:52:00]CheckFolder [04:52:00]dirname=/storage/ofd_packets [04:52:00]CheckFolder done [04:52:00]ProducePacketName [04:52:00]name=ofd_packets/00119286 [04:52:00]NVStorageSaveData ofd_packets/00119286 [04:52:00]File name is /storage/ofd_packets/00119286 [04:52:00]Write 301 bytes [04:52:00]NVStorageSaveData done [04:52:00]OFDSenderStorePacket done [04:52:00]KKMCreateOFDPacket done [04:52:00]NVStorageSaveData kkm_last_timestamp [04:52:00]File name is /storage/kkm_last_timestamp [04:52:00]Write 4 bytes [04:52:00]NVStorageSaveData done [04:52:00]ExternCall_PrintAddStr [04:52:00]wPrintStart [04:52:00]Write to MH i2c: 01 00 00 37 02 39 [04:52:00]Write i2c OK [04:52:00]MH_I2C_Read... [04:52:00]Read from MH i2c: 01 [04:52:00]MH_I2C_Read... [04:52:00]Read from MH i2c: 01 07 00 [04:52:00]MH_I2C_Read... [04:52:00]Read from MH i2c: 01 07 00 37 02 00 00 00 00 00 FF 0F 4E [04:52:00]RasterBufferAndPrint [04:52:00]line Счет N : (1)950212 [04:52:00]line ИНН: 02508201610067 [04:52:00]line Контрольно-Кассовый Чек [04:52:00]line ПРОДАЖА [04:52:00]line ТРК (МРК, ГНК) : 31 [04:52:00]line Товар: 2710124130 [04:52:00]line Аи-92-К-4 [04:52:00]line 4.500 * 67.80 [04:52:00]line = 305.10 [04:52:00]line НДС 12% НСП 1% [04:52:00]line > о реализуемом товаре [04:52:00]line ОКРУГЛЕНИЕ: -0.10 [04:52:00]line ИТОГО: 305.00 [04:52:00]line Внесено: 305.00 [04:52:00]line СДАЧА: 0.00 [04:52:00]line НСП 1% : 2.70 [04:52:00]line НДС 12% : 32.40 [04:52:00]line Наличными: 305.00 [04:52:00]line Безнал.: 0.00 [04:52:00]line Место: АЗС № 134 "Партнер Нефть" [04:52:00]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [04:52:00]line СНО: Общий режим [04:52:00]line Чек 17 31.07.2024 04:51 [04:52:00]line Смена: 436 ФФД: 1.0 [04:52:00]line ЗНМ: 0300000044 [04:52:00]line РНМ: 0000000000092660 [04:52:00]line Версия ККМ: 001 [04:52:00]line ФМ: 0000000000874939 [04:52:00]line ФД: 119286 [04:52:00]line ФПД: 182358134742768 [04:52:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T045159&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119286&fm=182358134742768&tin=02508201610067®Number=0000000000092660&sum=30500 [04:52:00]written 0, free lines is 4095 [04:52:00]OFD Sender: Processing packet 119286 [packets to send 86, broken 85] [04:52:00]ProducePacketName [04:52:00]name=ofd_packets/00119286 [04:52:00]OFD Sender: To server: pG, [04:52:00]CommunicateWithHost lk.salyk.kg:30040 [04:52:00]ConnectInit lk.salyk.kg [04:52:00]Connected sock=10 [04:52: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 39 33 39 0F 01 00 00 B4 86 07 01 A9 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 94 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 2E 77 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 0C 00 00 00 00 07 04 06 00 24 77 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 EF C2 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F6 D1 01 00 35 04 06 00 A5 DA 8F D7 DE F0 79 E1 D8 4D 8E 60 AC 2F [04:52:00]Write to MH i2c: 01 00 00 61 02 63 [04:52:00]Write i2c OK [04:52:00]MH_I2C_Read... [04:52:00]Read from MH i2c: 01 [04:52:00]MH_I2C_Read... [04:52:00]Read from MH i2c: 01 07 00 [04:52:00]MH_I2C_Read... [04:52:00]Read from MH i2c: 01 07 00 61 02 00 00 00 00 00 D7 0C 4D [04:52:00]RasterBufferAndPrint [04:52:00]line [04:52:00]line [04:52:00]line [04:52:00]line [04:52:00]line [04:52:00]written 0, free lines is 3295 [04:52:00]MH_Cut [04:52:00]Write to MH i2c: D1 01 00 68 02 01 3C [04:52:00]Write i2c OK [04:52:00]MH_I2C_Read... [04:52:00]Read from MH i2c: D1 [04:52:00]MH_I2C_Read... [04:52:00]Read from MH i2c: D1 01 00 [04:52:00]MH_I2C_Read... [04:52:00]Read from MH i2c: D1 01 00 68 02 00 3B [04:52:00]Write to MH i2c: 01 00 00 69 02 6B [04:52:00]Write i2c OK [04:52:00]MH_I2C_Read... [04:52:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 70 1B 47 00 3E C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F6 D1 01 00 F4 03 04 00 78 70 A9 66 B6 04 01 00 00 B8 1F C3 53 C0 C4 10 AB [04:52:00]CommunicateWithHost err = 0 [04:52:00]CheckOFDResponse [04:52:00]1017 (14) - 77093643461234 [04:52:00]1041 (16) - 0000000000874939 [04:52:00]1040 (4) - 119286 [04:52:00]1012 (4) - 30.07.2024 23:00 [04:52:00]1206 (1) - 0 [04:52:00]OFD Sender: Remove packet 119286 [04:52:00]ProducePacketName [04:52:00]name=ofd_packets/00119286 [04:52:00]NVStorageDeleteData [04:52:01]OFD Sender: No OFD packet to send [04:52:01]*** Cut start [04:52:01]*** Partial cut [04:52:01]*** CUTSNS_PIN = 1 [04:52:01]*** CUTSNS_PIN = 0 [04:52:01]*** Brake cut motor [04:52:01]Read from MH i2c: 01 [04:52:01]MH_I2C_Read... [04:52:01]*** Stop cut motor [04:52:01]*** Cut end [04:52:01]Read from MH i2c: 01 07 00 [04:52:01]MH_I2C_Read... [04:52:01]Read from MH i2c: 01 07 00 69 02 00 00 00 00 00 FF 0F 80 [04:52:01]process_action close_receipt done [04:52:01]requested_data is exist [04:52:01]produce_requested_data [04:52:01]requested_item fm.sn is exist - process it [04:52:01]wFMCommunicate request_size=4 [04:52:01]MH_SAM_APDU [04:52:01]CAPDU: 80 11 00 00 [04:52:01]Write to MH i2c: E2 08 00 6A 02 80 11 00 00 00 00 00 00 E6 [04:52:01]Write i2c OK [04:52:01]MH_I2C_Read... [04:52:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:52:01]Read from MH i2c: E2 [04:52:01]MH_I2C_Read... [04:52:01]Read from MH i2c: E2 17 00 [04:52:01]MH_I2C_Read... [04:52:01]Read from MH i2c: E2 17 00 6A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 41 [04:52:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:52:01]wFMCommunicate OK [04:52:01]requested_item fd.num is exist - process it [04:52:01]SAM_PROTO_GetFieldsCounters [04:52:01]wFMCommunicate request_size=4 [04:52:01]MH_SAM_APDU [04:52:01]CAPDU: 80 13 00 00 [04:52:01]Write to MH i2c: E2 08 00 6B 02 80 13 00 00 00 00 00 00 E9 [04:52:01]Write i2c OK [04:52:01]MH_I2C_Read... [04:52:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:52:02]Read from MH i2c: E2 [04:52:02]MH_I2C_Read... [04:52:02]Read from MH i2c: E2 62 00 [04:52:02]MH_I2C_Read... [04:52:02]Read from MH i2c: E2 62 00 6B 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F6 D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [04:52: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F6 D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:52:02]wFMCommunicate OK [04:52:02]SAM_PROTO_GetFieldsCounters done [04:52:02]requested_item shift.num is exist - process it [04:52:02]requested_item shift.opened is exist - process it [04:52:02]req_shift_opened [04:52:02]FM_GetShiftState [04:52:02]SAM_PROTO_GetShiftState [04:52:02]wFMCommunicate request_size=4 [04:52:02]MH_SAM_APDU [04:52:02]CAPDU: 80 13 01 00 [04:52:02]Write to MH i2c: E2 08 00 6C 02 80 13 01 00 00 00 00 00 EB [04:52:02]Write i2c OK [04:52:02]MH_I2C_Read... [04:52:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:52:02]Read from MH i2c: E2 [04:52:02]MH_I2C_Read... [04:52:02]Read from MH i2c: E2 0E 00 [04:52:02]MH_I2C_Read... [04:52:02]Read from MH i2c: E2 0E 00 6C 02 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 83 [04:52:02]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [04:52:02]wFMCommunicate OK [04:52:02]SAM_PROTO_GetShiftState done [04:52:02]FM_GetShiftState done [04:52:02]req_shift_opened done [04:52:02]requested_item shift.open_date is exist - process it [04:52:02]req_shift_open_date [04:52:02]req_shift_open_date done [04:52:02]produce_requested_data done [04:52:02]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119286,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [04:52:02]process_action_free close_receipt [04:52:02]json_value_free [04:52:02]json_value_free done [04:52:02]process_json_proto returns [04:52:02]Send response to host [04:52:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119286,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [04:52:02]free response buf [04:52:02]execute_script done [04:52:02]execute_script returns [04:52:02]free content buf [04:52:02]Sock 9.Close socket [04:52:02]Sock 9.Thread stoped [04:52:06]OFD Sender: No OFD packet to send [04:52:11]OFD Sender: No OFD packet to send [04:52:12]accept exits with 8 [04:52:12]New connection [04:52:12]New thread 3067338084 created [04:52:12]Thread 3067194724 joined [04:52:12]Waiting for new connection... [04:52:12] Sock 8.Parse request [04:52:12]Sock 8.Check first char [04:52:12]Sock 8.First char is OK [04:52:12]request: POST /json_proto HTTP/1.0 [04:52:12]Method: POST [04:52:12]URL: /json_proto [04:52:12]Method is POST - this is cgi request [04:52:12]url: /json_proto [04:52:12]query_string will be loaded in cgi processing [04:52:12]execute_cgi json_proto POST (null) [04:52:12]execute_cgi path=json_proto method=POST [04:52:12]POST find Content-Length [04:52:12]Host: 172.17.45.7:8080 [04:52:12]Content-Length: 679 [04:52:12]Content-Type: application/json [04:52:12] [04:52:12]POST finish read [04:52:12]Found Content-Length = 679 [04:52:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:52:12]execute_script... [04:52: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)950213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:52:12]POST & json_proto [04:52:12]process_json_proto [04:52:12]json parsed OK: [04:52:12]protocol is kg_v1.0 [04:52:12]action value=close_receipt [04:52:12]process_action close_receipt [04:52:12]cmd_close_receipt [04:52:12]MH_GetDate [04:52:12]Write to MH i2c: F0 00 00 6D 02 5E [04:52:12]Write i2c OK [04:52:12]MH_I2C_Read... [04:52:12]Read from MH i2c: F0 [04:52:12]MH_I2C_Read... [04:52:12]Read from MH i2c: F0 09 00 [04:52:12]MH_I2C_Read... [04:52:12]Read from MH i2c: F0 09 00 6D 02 00 FD C2 A9 66 90 0F 3E 66 78 [04:52:12]GetLastDocTimeStamp 1722401519 [04:52:12]current date 1722401533 [04:52:12]FM_GetShiftState [04:52:12]SAM_PROTO_GetShiftState [04:52:12]wFMCommunicate request_size=4 [04:52:12]MH_SAM_APDU [04:52:12]CAPDU: 80 13 01 00 [04:52:12]Write to MH i2c: E2 08 00 6E 02 80 13 01 00 00 00 00 00 ED [04:52:12]Write i2c OK [04:52:12]MH_I2C_Read... [04:52:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:52:12]Read from MH i2c: E2 [04:52:12]MH_I2C_Read... [04:52:12]Read from MH i2c: E2 0E 00 [04:52:12]MH_I2C_Read... [04:52:12]Read from MH i2c: E2 0E 00 6E 02 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 85 [04:52:12]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [04:52:12]wFMCommunicate OK [04:52:12]SAM_PROTO_GetShiftState done [04:52:12]FM_GetShiftState done [04:52:12]opened in 1722384637 [04:52:12]opened+sec_in_day 1722471037 [04:52:12]quantity*price = 100050 [04:52:12]sum+1 = 100052 [04:52:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 18 31.07.2024 04:52 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119287 ФПД: 55575830755089 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T045213&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119287&fm=55575830755089&tin=02508201610067®Number=0000000000092660&sum=100000 [04:52:13]StoreToDocumentArchive [04:52:13]shift 436 fd 119287 [04:52:13]save to /storage/0436/doc_00119287 [04:52:13]save last doc name /storage/0436/doc_00119287 to /storage/kkm_last_doc_name [04:52:13]save OK [04:52:13]Clear old archive folders... [04:52:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:52:13]tlvbuf is 00B08030 [04:52:13]SAM_PROTO_ClearQueue [04:52:13]wFMCommunicate request_size=4 [04:52:13]MH_SAM_APDU [04:52:13]CAPDU: 80 09 00 00 [04:52:13]Write to MH i2c: E2 08 00 7B 02 80 09 00 00 00 00 00 00 EF [04:52:13]Write i2c OK [04:52:13]MH_I2C_Read... [04:52:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:52:13]Read from MH i2c: E2 [04:52:13]MH_I2C_Read... [04:52:13]Read from MH i2c: E2 03 00 [04:52:13]MH_I2C_Read... [04:52:13]Read from MH i2c: E2 03 00 7B 02 00 90 00 F1 [04:52:13]RAPDU: 90 00 [04:52:13]wFMCommunicate OK [04:52:13]SAM_PROTO_ClearQueue done [04:52:13]KKMCreateOFDPacket [04:52:13]OFDProtocolAddRootSTLVToBuf [04:52:13]FM_MakeSignedData [04:52:13]FM_MakeSignedData [04:52:13]SAM_PROTO_SignData [04:52:13]wFMCommunicate request_size=4 [04:52:13]MH_SAM_APDU [04:52:13]CAPDU: 80 0D 01 02 [04:52:13]Write to MH i2c: E2 08 00 7C 02 80 0D 01 02 00 00 00 00 F7 [04:52:13]Write i2c OK [04:52:13]MH_I2C_Read... [04:52:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:52:13]Read from MH i2c: E2 [04:52:13]MH_I2C_Read... [04:52:13]Read from MH i2c: E2 03 00 [04:52:13]MH_I2C_Read... [04:52:13]Read from MH i2c: E2 03 00 7C 02 00 90 00 F2 [04:52:13]RAPDU: 90 00 [04:52:13]wFMCommunicate OK [04:52:13]wFMCommunicate request_size=255 [04:52:13]MH_SAM_APDU [04:52:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 FD C2 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F7 D1 01 00 35 04 06 00 32 8B C1 A6 [04:52:13]Write to MH i2c: E2 02 01 7D 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 FD C2 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F7 D1 01 00 35 04 06 00 32 8B C1 A6 00 00 09 [04:52:13]Write i2c OK [04:52:13]MH_I2C_Read... [04:52:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:52:14]Read from MH i2c: E2 [04:52:14]MH_I2C_Read... [04:52:14]Read from MH i2c: E2 03 00 [04:52:14]MH_I2C_Read... [04:52:14]Read from MH i2c: E2 03 00 7D 02 00 90 00 F3 [04:52:14]RAPDU: 90 00 [04:52:14]wFMCommunicate OK [04:52:14]wFMCommunicate request_size=7 [04:52:14]MH_SAM_APDU [04:52:14]CAPDU: 80 0D 02 02 02 77 11 [04:52:14]Write to MH i2c: E2 0A 00 7E 02 80 0D 02 02 02 00 77 11 00 00 86 [04:52:14]Write i2c OK [04:52:14]MH_I2C_Read... [04:52:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:52:14]Read from MH i2c: E2 [04:52:14]MH_I2C_Read... [04:52:14]Read from MH i2c: E2 03 00 [04:52:14]MH_I2C_Read... [04:52:14]Read from MH i2c: E2 03 00 7E 02 00 90 00 F4 [04:52:14]RAPDU: 90 00 [04:52:14]wFMCommunicate OK [04:52:14]wFMCommunicate request_size=4 [04:52:14]MH_SAM_APDU [04:52:14]CAPDU: 80 0D 03 02 [04:52:14]Write to MH i2c: E2 08 00 7F 02 80 0D 03 02 00 00 00 00 FC [04:52:14]Write i2c OK [04:52:14]MH_I2C_Read... [04:52:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:52:14]Read from MH i2c: E2 [04:52:14]MH_I2C_Read... [04:52:14]Read from MH i2c: E2 0B 00 [04:52:14]MH_I2C_Read... [04:52:14]Read from MH i2c: E2 0B 00 7F 02 00 B3 10 0A 42 20 00 D9 B4 90 00 B9 [04:52:14]RAPDU: B3 10 0A 42 20 00 D9 B4 90 00 [04:52:14]wFMCommunicate OK [04:52:14]SAM_PROTO_SignData done [04:52:14]FM_MakeSignedData done [04:52:14]CreateOFDProtocolMessage [04:52:14]wFMCommunicate request_size=4 [04:52:14]MH_SAM_APDU [04:52:14]CAPDU: 80 11 00 00 [04:52:14]Write to MH i2c: E2 08 00 80 02 80 11 00 00 00 00 00 00 FC [04:52:14]Write i2c OK [04:52:14]MH_I2C_Read... [04:52:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:52:14]Read from MH i2c: E2 [04:52:14]MH_I2C_Read... [04:52:14]Read from MH i2c: E2 17 00 [04:52:14]MH_I2C_Read... [04:52:14]Read from MH i2c: E2 17 00 80 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 57 [04:52:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:52:14]wFMCommunicate OK [04:52:14]CreateOFDProtocolMessage done [04:52:14]OFDSenderStorePacket 119287 [04:52:14]StoreOFDPacket docnum=119287 [04:52:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 45 3A 04 01 04 B1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 FD C2 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F7 D1 01 00 35 04 06 00 32 8B C1 A6 77 11 B3 10 0A 42 20 00 D9 B4 [04:52:14]CheckFolder [04:52:14]dirname=/storage/ofd_packets [04:52:14]CheckFolder done [04:52:14]ProducePacketName [04:52:14]name=ofd_packets/00119287 [04:52:14]NVStorageSaveData ofd_packets/00119287 [04:52:14]File name is /storage/ofd_packets/00119287 [04:52:14]Write 298 bytes [04:52:14]NVStorageSaveData done [04:52:14]OFDSenderStorePacket done [04:52:14]KKMCreateOFDPacket done [04:52:14]NVStorageSaveData kkm_last_timestamp [04:52:14]File name is /storage/kkm_last_timestamp [04:52:14]Write 4 bytes [04:52:14]NVStorageSaveData done [04:52:14]ExternCall_PrintAddStr [04:52:14]wPrintStart [04:52:14]Write to MH i2c: 01 00 00 81 02 83 [04:52:14]Write i2c OK [04:52:14]MH_I2C_Read... [04:52:14]Read from MH i2c: 01 [04:52:14]MH_I2C_Read... [04:52:14]Read from MH i2c: 01 07 00 [04:52:14]MH_I2C_Read... [04:52:14]Read from MH i2c: 01 07 00 81 02 00 00 00 00 00 FF 0F 98 [04:52:14]RasterBufferAndPrint [04:52:14]line Счет N : (1)950213 [04:52:14]line ИНН: 02508201610067 [04:52:14]line Контрольно-Кассовый Чек [04:52:14]line ПРОДАЖА [04:52:14]line ТРК (МРК, ГНК) : 21 [04:52:14]line Товар: 2710194800 [04:52:14]line ДТ-К-5 [04:52:14]line 13.130 * 76.20 [04:52:14]line = 1000.51 [04:52:14]line НДС 12% НСП 1% [04:52:14]line > о реализуемом товаре [04:52:14]line ОКРУГЛЕНИЕ: -0.51 [04:52:14]line ИТОГО: 1000.00 [04:52:14]line Внесено: 1000.00 [04:52:14]line СДАЧА: 0.00 [04:52:14]line НСП 1% : 8.85 [04:52:14]line НДС 12% : 106.25 [04:52:14]line Наличными: 1000.00 [04:52:14]line Безнал.: 0.00 [04:52:14]line Место: АЗС № 134 "Партнер Нефть" [04:52:14]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [04:52:14]line СНО: Общий режим [04:52:14]line Чек 18 31.07.2024 04:52 [04:52:14]line Смена: 436 ФФД: 1.0 [04:52:14]line ЗНМ: 0300000044 [04:52:14]line РНМ: 0000000000092660 [04:52:14]line Версия ККМ: 001 [04:52:14]line ФМ: 0000000000874939 [04:52:14]line ФД: 119287 [04:52:14]line ФПД: 55575830755089 [04:52:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T045213&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119287&fm=55575830755089&tin=02508201610067®Number=0000000000092660&sum=100000 [04:52:14]OFD Sender: Processing packet 119287 [packets to send 86, broken 85] [04:52:14]ProducePacketName [04:52:14]name=ofd_packets/00119287 [04:52:14]OFD Sender: To server: pG, [04:52:14]CommunicateWithHost lk.salyk.kg:30040 [04:52:14]ConnectInit lk.salyk.kg [04:52:14]written 0, free lines is 4095 [04:52:14]Connected sock=10 [04:52: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 39 33 39 0C 01 00 00 45 3A 04 01 04 B1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 FD C2 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F7 D1 01 00 35 04 06 00 32 8B C1 A6 77 11 B3 10 0A 42 20 00 D9 B4 [04:52:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 06 EC 47 00 78 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F7 D1 01 00 F4 03 04 00 87 70 A9 66 B6 04 01 00 00 4A 29 A4 DE 5E 3E A8 44 [04:52:14]CommunicateWithHost err = 0 [04:52:14]CheckOFDResponse [04:52:14]1017 (14) - 77093643461234 [04:52:14]1041 (16) - 0000000000874939 [04:52:14]1040 (4) - 119287 [04:52:14]1012 (4) - 30.07.2024 23:00 [04:52:14]1206 (1) - 0 [04:52:14]OFD Sender: Remove packet 119287 [04:52:14]ProducePacketName [04:52:14]name=ofd_packets/00119287 [04:52:14]NVStorageDeleteData [04:52:15]Write to MH i2c: 01 00 00 AB 02 AD [04:52:15]Write i2c OK [04:52:15]MH_I2C_Read... [04:52:15]Read from MH i2c: 01 [04:52:15]MH_I2C_Read... [04:52:15]Read from MH i2c: 01 07 00 [04:52:15]MH_I2C_Read... [04:52:15]Read from MH i2c: 01 07 00 AB 02 00 00 00 00 00 C8 0C 88 [04:52:15]RasterBufferAndPrint [04:52:15]line [04:52:15]line [04:52:15]line [04:52:15]line [04:52:15]line [04:52:15]written 0, free lines is 3278 [04:52:15]MH_Cut [04:52:15]Write to MH i2c: D1 01 00 B2 02 01 86 [04:52:15]Write i2c OK [04:52:15]MH_I2C_Read... [04:52:15]Read from MH i2c: D1 [04:52:15]MH_I2C_Read... [04:52:15]Read from MH i2c: D1 01 00 [04:52:15]MH_I2C_Read... [04:52:15]Read from MH i2c: D1 01 00 B2 02 00 85 [04:52:15]Write to MH i2c: 01 00 00 B3 02 B5 [04:52:15]Write i2c OK [04:52:15]MH_I2C_Read... [04:52:15]OFD Sender: No OFD packet to send [04:52:15]*** Cut start [04:52:15]*** Partial cut [04:52:15]*** CUTSNS_PIN = 1 [04:52:15]*** CUTSNS_PIN = 0 [04:52:16]*** Brake cut motor [04:52:16]Read from MH i2c: 01 [04:52:16]MH_I2C_Read... [04:52:16]*** Stop cut motor [04:52:16]*** Cut end [04:52:16]Read from MH i2c: 01 07 00 [04:52:16]MH_I2C_Read... [04:52:16]Read from MH i2c: 01 07 00 B3 02 00 00 00 00 00 FF 0F CA [04:52:16]process_action close_receipt done [04:52:16]requested_data is exist [04:52:16]produce_requested_data [04:52:16]requested_item fm.sn is exist - process it [04:52:16]wFMCommunicate request_size=4 [04:52:16]MH_SAM_APDU [04:52:16]CAPDU: 80 11 00 00 [04:52:16]Write to MH i2c: E2 08 00 B4 02 80 11 00 00 00 00 00 00 30 [04:52:16]Write i2c OK [04:52:16]MH_I2C_Read... [04:52:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:52:16]Read from MH i2c: E2 [04:52:16]MH_I2C_Read... [04:52:16]Read from MH i2c: E2 17 00 [04:52:16]MH_I2C_Read... [04:52:16]Read from MH i2c: E2 17 00 B4 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8B [04:52:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:52:16]wFMCommunicate OK [04:52:16]requested_item fd.num is exist - process it [04:52:16]SAM_PROTO_GetFieldsCounters [04:52:16]wFMCommunicate request_size=4 [04:52:16]MH_SAM_APDU [04:52:16]CAPDU: 80 13 00 00 [04:52:16]Write to MH i2c: E2 08 00 B5 02 80 13 00 00 00 00 00 00 33 [04:52:16]Write i2c OK [04:52:16]MH_I2C_Read... [04:52:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:52:16]Read from MH i2c: E2 [04:52:16]MH_I2C_Read... [04:52:16]Read from MH i2c: E2 62 00 [04:52:16]MH_I2C_Read... [04:52:16]Read from MH i2c: E2 62 00 B5 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F7 D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [04:52: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F7 D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:52:16]wFMCommunicate OK [04:52:16]SAM_PROTO_GetFieldsCounters done [04:52:16]requested_item shift.num is exist - process it [04:52:16]requested_item shift.opened is exist - process it [04:52:16]req_shift_opened [04:52:16]FM_GetShiftState [04:52:16]SAM_PROTO_GetShiftState [04:52:16]wFMCommunicate request_size=4 [04:52:16]MH_SAM_APDU [04:52:16]CAPDU: 80 13 01 00 [04:52:16]Write to MH i2c: E2 08 00 B6 02 80 13 01 00 00 00 00 00 35 [04:52:16]Write i2c OK [04:52:16]MH_I2C_Read... [04:52:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:52:16]Read from MH i2c: E2 [04:52:16]MH_I2C_Read... [04:52:16]Read from MH i2c: E2 0E 00 [04:52:16]MH_I2C_Read... [04:52:16]Read from MH i2c: E2 0E 00 B6 02 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 CD [04:52:16]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [04:52:16]wFMCommunicate OK [04:52:16]SAM_PROTO_GetShiftState done [04:52:16]FM_GetShiftState done [04:52:16]req_shift_opened done [04:52:16]requested_item shift.open_date is exist - process it [04:52:16]req_shift_open_date [04:52:16]req_shift_open_date done [04:52:16]produce_requested_data done [04:52:16]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119287,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [04:52:16]process_action_free close_receipt [04:52:16]json_value_free [04:52:16]json_value_free done [04:52:16]process_json_proto returns [04:52:16]Send response to host [04:52:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119287,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [04:52:16]free response buf [04:52:16]execute_script done [04:52:16]execute_script returns [04:52:16]free content buf [04:52:16]Sock 8.Close socket [04:52:16]Sock 8.Thread stoped [04:52:20]OFD Sender: No OFD packet to send [04:52:25]OFD Sender: No OFD packet to send [04:52:30]OFD Sender: No OFD packet to send [04:52:35]OFD Sender: No OFD packet to send [04:52:40]OFD Sender: No OFD packet to send [04:52:45]OFD Sender: No OFD packet to send [04:52:50]OFD Sender: No OFD packet to send [04:52:55]OFD Sender: No OFD packet to send [04:53:00]OFD Sender: No OFD packet to send [04:53:05]OFD Sender: No OFD packet to send [04:53:10]OFD Sender: No OFD packet to send [04:53:15]OFD Sender: No OFD packet to send [04:53:20]OFD Sender: No OFD packet to send [04:53:25]OFD Sender: No OFD packet to send [04:53:30]OFD Sender: No OFD packet to send [04:53:35]OFD Sender: No OFD packet to send [04:53:40]OFD Sender: No OFD packet to send [04:53:45]accept exits with 9 [04:53:45]New connection [04:53:45]New thread 3067194724 created [04:53:45]Thread 3067338084 joined [04:53:45]Waiting for new connection... [04:53:45] Sock 9.Parse request [04:53:45]Sock 9.Check first char [04:53:45]Sock 9.First char is OK [04:53:45]request: POST /json_proto HTTP/1.0 [04:53:45]Method: POST [04:53:45]URL: /json_proto [04:53:45]Method is POST - this is cgi request [04:53:45]url: /json_proto [04:53:45]query_string will be loaded in cgi processing [04:53:45]execute_cgi json_proto POST (null) [04:53:45]execute_cgi path=json_proto method=POST [04:53:45]POST find Content-Length [04:53:45]Host: 172.17.45.7:8080 [04:53:45]Content-Length: 677 [04:53:45]Content-Type: application/json [04:53:45] [04:53:45]POST finish read [04:53:45]Found Content-Length = 677 [04:53:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 1.480, "sum" : 100.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:53:45]execute_script... [04:53:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 1.480, "sum" : 100.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:53:45]POST & json_proto [04:53:45]process_json_proto [04:53:45]json parsed OK: [04:53:45]protocol is kg_v1.0 [04:53:45]action value=close_receipt [04:53:45]process_action close_receipt [04:53:45]cmd_close_receipt [04:53:45]MH_GetDate [04:53:45]Write to MH i2c: F0 00 00 B7 02 A8 [04:53:45]Write i2c OK [04:53:45]MH_I2C_Read... [04:53:45]Read from MH i2c: F0 [04:53:45]MH_I2C_Read... [04:53:45]Read from MH i2c: F0 09 00 [04:53:45]MH_I2C_Read... [04:53:45]Read from MH i2c: F0 09 00 B7 02 00 5A C3 A9 66 90 0F 3E 66 20 [04:53:45]GetLastDocTimeStamp 1722401533 [04:53:45]current date 1722401626 [04:53:45]FM_GetShiftState [04:53:45]SAM_PROTO_GetShiftState [04:53:45]wFMCommunicate request_size=4 [04:53:45]MH_SAM_APDU [04:53:45]CAPDU: 80 13 01 00 [04:53:45]Write to MH i2c: E2 08 00 B8 02 80 13 01 00 00 00 00 00 37 [04:53:45]Write i2c OK [04:53:45]MH_I2C_Read... [04:53:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:53:45]Read from MH i2c: E2 [04:53:45]MH_I2C_Read... [04:53:45]Read from MH i2c: E2 0E 00 [04:53:45]MH_I2C_Read... [04:53:45]Read from MH i2c: E2 0E 00 B8 02 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 CF [04:53:45]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [04:53:45]wFMCommunicate OK [04:53:45]SAM_PROTO_GetShiftState done [04:53:45]FM_GetShiftState done [04:53:45]opened in 1722384637 [04:53:45]opened+sec_in_day 1722471037 [04:53:45]quantity*price = 10034 [04:53:45]sum+1 = 10035 [04:53:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 19 31.07.2024 04:53 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119288 ФПД: 71424810152514 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T045346&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119288&fm=71424810152514&tin=02508201610067®Number=0000000000092660&sum=10000 [04:53:46]StoreToDocumentArchive [04:53:46]shift 436 fd 119288 [04:53:46]save to /storage/0436/doc_00119288 [04:53:46]save last doc name /storage/0436/doc_00119288 to /storage/kkm_last_doc_name [04:53:46]save OK [04:53:46]Clear old archive folders... [04:53:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:53:46]tlvbuf is 00B0BFD0 [04:53:46]SAM_PROTO_ClearQueue [04:53:46]wFMCommunicate request_size=4 [04:53:46]MH_SAM_APDU [04:53:46]CAPDU: 80 09 00 00 [04:53:46]Write to MH i2c: E2 08 00 C5 02 80 09 00 00 00 00 00 00 39 [04:53:46]Write i2c OK [04:53:46]MH_I2C_Read... [04:53:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:53:46]Read from MH i2c: E2 [04:53:46]MH_I2C_Read... [04:53:46]Read from MH i2c: E2 03 00 [04:53:46]MH_I2C_Read... [04:53:46]Read from MH i2c: E2 03 00 C5 02 00 90 00 3B [04:53:46]RAPDU: 90 00 [04:53:46]wFMCommunicate OK [04:53:46]SAM_PROTO_ClearQueue done [04:53:46]KKMCreateOFDPacket [04:53:46]OFDProtocolAddRootSTLVToBuf [04:53:46]FM_MakeSignedData [04:53:46]FM_MakeSignedData [04:53:46]SAM_PROTO_SignData [04:53:46]wFMCommunicate request_size=4 [04:53:46]MH_SAM_APDU [04:53:46]CAPDU: 80 0D 01 02 [04:53:46]Write to MH i2c: E2 08 00 C6 02 80 0D 01 02 00 00 00 00 41 [04:53:46]Write i2c OK [04:53:46]MH_I2C_Read... [04:53:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:53:46]Read from MH i2c: E2 [04:53:46]MH_I2C_Read... [04:53:46]Read from MH i2c: E2 03 00 [04:53:46]MH_I2C_Read... [04:53:46]Read from MH i2c: E2 03 00 C6 02 00 90 00 3C [04:53:46]RAPDU: 90 00 [04:53:46]wFMCommunicate OK [04:53:46]wFMCommunicate request_size=255 [04:53:46]MH_SAM_APDU [04:53:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 5A C3 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F8 D1 01 00 35 04 06 00 40 [04:53:46]Write to MH i2c: E2 02 01 C7 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 5A C3 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F8 D1 01 00 35 04 06 00 40 00 00 FF [04:53:46]Write i2c OK [04:53:46]MH_I2C_Read... [04:53:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:53:46]Read from MH i2c: E2 [04:53:46]MH_I2C_Read... [04:53:46]Read from MH i2c: E2 03 00 [04:53:46]MH_I2C_Read... [04:53:46]Read from MH i2c: E2 03 00 C7 02 00 90 00 3D [04:53:46]RAPDU: 90 00 [04:53:46]wFMCommunicate OK [04:53:46]wFMCommunicate request_size=10 [04:53:46]MH_SAM_APDU [04:53:46]CAPDU: 80 0D 02 02 05 F5 E2 6F F2 42 [04:53:46]Write to MH i2c: E2 0D 00 C8 02 80 0D 02 02 05 00 F5 E2 6F F2 42 00 00 C8 [04:53:46]Write i2c OK [04:53:46]MH_I2C_Read... [04:53:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:53:46]Read from MH i2c: E2 [04:53:46]MH_I2C_Read... [04:53:46]Read from MH i2c: E2 03 00 [04:53:46]MH_I2C_Read... [04:53:46]Read from MH i2c: E2 03 00 C8 02 00 90 00 3E [04:53:46]RAPDU: 90 00 [04:53:46]wFMCommunicate OK [04:53:46]wFMCommunicate request_size=4 [04:53:46]MH_SAM_APDU [04:53:46]CAPDU: 80 0D 03 02 [04:53:46]Write to MH i2c: E2 08 00 C9 02 80 0D 03 02 00 00 00 00 46 [04:53:46]Write i2c OK [04:53:46]MH_I2C_Read... [04:53:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:53:46]Read from MH i2c: E2 [04:53:46]MH_I2C_Read... [04:53:46]Read from MH i2c: E2 0B 00 [04:53:46]MH_I2C_Read... [04:53:46]Read from MH i2c: E2 0B 00 C9 02 00 F3 D8 8E BD 1F F3 C4 86 90 00 B9 [04:53:46]RAPDU: F3 D8 8E BD 1F F3 C4 86 90 00 [04:53:46]wFMCommunicate OK [04:53:46]SAM_PROTO_SignData done [04:53:46]FM_MakeSignedData done [04:53:46]CreateOFDProtocolMessage [04:53:46]wFMCommunicate request_size=4 [04:53:46]MH_SAM_APDU [04:53:46]CAPDU: 80 11 00 00 [04:53:46]Write to MH i2c: E2 08 00 CA 02 80 11 00 00 00 00 00 00 46 [04:53:46]Write i2c OK [04:53:46]MH_I2C_Read... [04:53:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:53:47]Read from MH i2c: E2 [04:53:47]MH_I2C_Read... [04:53:47]Read from MH i2c: E2 17 00 [04:53:47]MH_I2C_Read... [04:53:47]Read from MH i2c: E2 17 00 CA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A1 [04:53:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:53:47]wFMCommunicate OK [04:53:47]CreateOFDProtocolMessage done [04:53:47]OFDSenderStorePacket 119288 [04:53:47]StoreOFDPacket docnum=119288 [04:53:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E4 B3 07 01 91 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 5A C3 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F8 D1 01 00 35 04 06 00 40 F5 E2 6F F2 42 F3 D8 8E BD 1F F3 C4 86 [04:53:47]CheckFolder [04:53:47]dirname=/storage/ofd_packets [04:53:47]CheckFolder done [04:53:47]ProducePacketName [04:53:47]name=ofd_packets/00119288 [04:53:47]NVStorageSaveData ofd_packets/00119288 [04:53:47]File name is /storage/ofd_packets/00119288 [04:53:47]Write 301 bytes [04:53:47]NVStorageSaveData done [04:53:47]OFDSenderStorePacket done [04:53:47]KKMCreateOFDPacket done [04:53:47]NVStorageSaveData kkm_last_timestamp [04:53:47]File name is /storage/kkm_last_timestamp [04:53:47]Write 4 bytes [04:53:47]NVStorageSaveData done [04:53:47]ExternCall_PrintAddStr [04:53:47]wPrintStart [04:53:47]Write to MH i2c: 01 00 00 CB 02 CD [04:53:47]Write i2c OK [04:53:47]MH_I2C_Read... [04:53:47]Read from MH i2c: 01 [04:53:47]MH_I2C_Read... [04:53:47]Read from MH i2c: 01 07 00 [04:53:47]MH_I2C_Read... [04:53:47]Read from MH i2c: 01 07 00 CB 02 00 00 00 00 00 FF 0F E2 [04:53:47]RasterBufferAndPrint [04:53:47]line Счет N : (1)950214 [04:53:47]line ИНН: 02508201610067 [04:53:47]line Контрольно-Кассовый Чек [04:53:47]line ПРОДАЖА [04:53:47]line ТРК (МРК, ГНК) : 31 [04:53:47]line Товар: 2710124130 [04:53:47]line Аи-92-К-4 [04:53:47]line 1.480 * 67.80 [04:53:47]line = 100.34 [04:53:47]line НДС 12% НСП 1% [04:53:47]line > о реализуемом товаре [04:53:47]line ОКРУГЛЕНИЕ: -0.34 [04:53:47]line ИТОГО: 100.00 [04:53:47]line Внесено: 100.00 [04:53:47]line СДАЧА: 0.00 [04:53:47]line НСП 1% : 0.89 [04:53:47]line НДС 12% : 10.66 [04:53:47]line Наличными: 100.00 [04:53:47]line Безнал.: 0.00 [04:53:47]line Место: АЗС № 134 "Партнер Нефть" [04:53:47]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [04:53:47]line СНО: Общий режим [04:53:47]line Чек 19 31.07.2024 04:53 [04:53:47]line Смена: 436 ФФД: 1.0 [04:53:47]line ЗНМ: 0300000044 [04:53:47]line РНМ: 0000000000092660 [04:53:47]line Версия ККМ: 001 [04:53:47]line ФМ: 0000000000874939 [04:53:47]line ФД: 119288 [04:53:47]line ФПД: 71424810152514 [04:53:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T045346&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119288&fm=71424810152514&tin=02508201610067®Number=0000000000092660&sum=10000 [04:53:47]OFD Sender: Processing packet 119288 [packets to send 86, broken 85] [04:53:47]ProducePacketName [04:53:47]name=ofd_packets/00119288 [04:53:47]OFD Sender: To server: pG, [04:53:47]CommunicateWithHost lk.salyk.kg:30040 [04:53:47]ConnectInit lk.salyk.kg [04:53:47]written 0, free lines is 4095 [04:53:47]Connected sock=10 [04:53: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 39 33 39 0F 01 00 00 E4 B3 07 01 91 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 5A C3 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F8 D1 01 00 35 04 06 00 40 F5 E2 6F F2 42 F3 D8 8E BD 1F F3 C4 86 [04:53:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A7 4D 47 00 A0 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 39 33 39 10 04 04 00 F8 D1 01 00 F4 03 04 00 E3 70 A9 66 B6 04 01 00 00 D3 6E 01 43 9E 8B D7 5D [04:53:47]CommunicateWithHost err = 0 [04:53:47]CheckOFDResponse [04:53:47]1017 (14) - 77093643461234 [04:53:47]1041 (16) - 0000000000874939 [04:53:47]1040 (4) - 119288 [04:53:47]1012 (4) - 30.07.2024 23:01 [04:53:47]1206 (1) - 0 [04:53:47]OFD Sender: Remove packet 119288 [04:53:47]ProducePacketName [04:53:47]name=ofd_packets/00119288 [04:53:47]NVStorageDeleteData [04:53:47]Write to MH i2c: 01 00 00 F5 02 F7 [04:53:47]Write i2c OK [04:53:47]MH_I2C_Read... [04:53:47]Read from MH i2c: 01 [04:53:47]MH_I2C_Read... [04:53:47]Read from MH i2c: 01 07 00 [04:53:47]MH_I2C_Read... [04:53:47]Read from MH i2c: 01 07 00 F5 02 00 00 00 00 00 C9 0C D3 [04:53:47]RasterBufferAndPrint [04:53:47]line [04:53:47]line [04:53:47]line [04:53:47]line [04:53:47]line [04:53:47]written 0, free lines is 3280 [04:53:47]MH_Cut [04:53:47]Write to MH i2c: D1 01 00 FC 02 01 D0 [04:53:47]Write i2c OK [04:53:47]MH_I2C_Read... [04:53:47]Read from MH i2c: D1 [04:53:47]MH_I2C_Read... [04:53:47]Read from MH i2c: D1 01 00 [04:53:47]MH_I2C_Read... [04:53:47]Read from MH i2c: D1 01 00 FC 02 00 CF [04:53:47]Write to MH i2c: 01 00 00 FD 02 FF [04:53:47]Write i2c OK [04:53:47]MH_I2C_Read... [04:53:48]OFD Sender: No OFD packet to send [04:53:48]*** Cut start [04:53:48]*** Partial cut [04:53:48]*** CUTSNS_PIN = 1 [04:53:48]*** CUTSNS_PIN = 0 [04:53:48]*** Brake cut motor [04:53:49]Read from MH i2c: 01 [04:53:49]MH_I2C_Read... [04:53:49]*** Stop cut motor [04:53:49]*** Cut end [04:53:49]Read from MH i2c: 01 07 00 [04:53:49]MH_I2C_Read... [04:53:49]Read from MH i2c: 01 07 00 FD 02 00 00 00 00 00 FF 0F 14 [04:53:49]process_action close_receipt done [04:53:49]requested_data is exist [04:53:49]produce_requested_data [04:53:49]requested_item fm.sn is exist - process it [04:53:49]wFMCommunicate request_size=4 [04:53:49]MH_SAM_APDU [04:53:49]CAPDU: 80 11 00 00 [04:53:49]Write to MH i2c: E2 08 00 FE 02 80 11 00 00 00 00 00 00 7A [04:53:49]Write i2c OK [04:53:49]MH_I2C_Read... [04:53:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:53:49]Read from MH i2c: E2 [04:53:49]MH_I2C_Read... [04:53:49]Read from MH i2c: E2 17 00 [04:53:49]MH_I2C_Read... [04:53:49]Read from MH i2c: E2 17 00 FE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D5 [04:53:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:53:49]wFMCommunicate OK [04:53:49]requested_item fd.num is exist - process it [04:53:49]SAM_PROTO_GetFieldsCounters [04:53:49]wFMCommunicate request_size=4 [04:53:49]MH_SAM_APDU [04:53:49]CAPDU: 80 13 00 00 [04:53:49]Write to MH i2c: E2 08 00 FF 02 80 13 00 00 00 00 00 00 7D [04:53:49]Write i2c OK [04:53:49]MH_I2C_Read... [04:53:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:53:49]Read from MH i2c: E2 [04:53:49]MH_I2C_Read... [04:53:49]Read from MH i2c: E2 62 00 [04:53:49]MH_I2C_Read... [04:53:49]Read from MH i2c: E2 62 00 FF 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F8 D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [04: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F8 D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:53:49]wFMCommunicate OK [04:53:49]SAM_PROTO_GetFieldsCounters done [04:53:49]requested_item shift.num is exist - process it [04:53:49]requested_item shift.opened is exist - process it [04:53:49]req_shift_opened [04:53:49]FM_GetShiftState [04:53:49]SAM_PROTO_GetShiftState [04:53:49]wFMCommunicate request_size=4 [04:53:49]MH_SAM_APDU [04:53:49]CAPDU: 80 13 01 00 [04:53:49]Write to MH i2c: E2 08 00 00 03 80 13 01 00 00 00 00 00 80 [04:53:49]Write i2c OK [04:53:49]MH_I2C_Read... [04:53:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:53:49]Read from MH i2c: E2 [04:53:49]MH_I2C_Read... [04:53:49]Read from MH i2c: E2 0E 00 [04:53:49]MH_I2C_Read... [04:53:49]Read from MH i2c: E2 0E 00 00 03 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 18 [04:53:49]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [04:53:49]wFMCommunicate OK [04:53:49]SAM_PROTO_GetShiftState done [04:53:49]FM_GetShiftState done [04:53:49]req_shift_opened done [04:53:49]requested_item shift.open_date is exist - process it [04:53:49]req_shift_open_date [04:53:49]req_shift_open_date done [04:53:49]produce_requested_data done [04:53:49]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119288,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [04:53:49]process_action_free close_receipt [04:53:49]json_value_free [04:53:49]json_value_free done [04:53:49]process_json_proto returns [04:53:49]Send response to host [04:53:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119288,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [04:53:49]free response buf [04:53:49]execute_script done [04:53:49]execute_script returns [04:53:49]free content buf [04:53:49]Sock 9.Close socket [04:53:49]Sock 9.Thread stoped [04:53:53]OFD Sender: No OFD packet to send [04:53:58]OFD Sender: No OFD packet to send [04:54:03]OFD Sender: No OFD packet to send [04:54:08]OFD Sender: No OFD packet to send [04:54:13]OFD Sender: No OFD packet to send [04:54:18]OFD Sender: No OFD packet to send [04:54:23]OFD Sender: No OFD packet to send [04:54:28]OFD Sender: No OFD packet to send [04:54:33]OFD Sender: No OFD packet to send [04:54:38]OFD Sender: No OFD packet to send [04:54:43]OFD Sender: No OFD packet to send [04:54:48]OFD Sender: No OFD packet to send [04:54:53]OFD Sender: No OFD packet to send [04:54:58]OFD Sender: No OFD packet to send [04:55:03]OFD Sender: No OFD packet to send [04:55:08]OFD Sender: No OFD packet to send [04:55:13]OFD Sender: No OFD packet to send [04:55:18]OFD Sender: No OFD packet to send [04:55:23]OFD Sender: No OFD packet to send [04:55:28]OFD Sender: No OFD packet to send [04:55:33]OFD Sender: No OFD packet to send [04:55:38]OFD Sender: No OFD packet to send [04:55:43]OFD Sender: No OFD packet to send [04:55:48]OFD Sender: No OFD packet to send [04:55:53]OFD Sender: No OFD packet to send [04:55:58]OFD Sender: No OFD packet to send [04:56:03]OFD Sender: No OFD packet to send [04:56:08]OFD Sender: No OFD packet to send [04:56:13]OFD Sender: No OFD packet to send [04:56:18]OFD Sender: No OFD packet to send [04:56:23]OFD Sender: No OFD packet to send [04:56:28]OFD Sender: No OFD packet to send [04:56:33]OFD Sender: No OFD packet to send [04:56:38]OFD Sender: No OFD packet to send [04:56:43]OFD Sender: No OFD packet to send [04:56:48]OFD Sender: No OFD packet to send [04:56:53]OFD Sender: No OFD packet to send [04:56:58]OFD Sender: No OFD packet to send [04:57:03]OFD Sender: No OFD packet to send [04:57:08]OFD Sender: No OFD packet to send [04:57:13]OFD Sender: No OFD packet to send [04:57:18]OFD Sender: No OFD packet to send [04:57:23]OFD Sender: No OFD packet to send [04:57:28]OFD Sender: No OFD packet to send [04:57:33]OFD Sender: No OFD packet to send [04:57:38]OFD Sender: No OFD packet to send [04:57:43]OFD Sender: No OFD packet to send [04:57:48]OFD Sender: No OFD packet to send [04:57:53]OFD Sender: No OFD packet to send [04:57:58]OFD Sender: No OFD packet to send [04:58:03]OFD Sender: No OFD packet to send [04:58:08]OFD Sender: No OFD packet to send [04:58:13]OFD Sender: No OFD packet to send [04:58:18]OFD Sender: No OFD packet to send [04:58:23]OFD Sender: No OFD packet to send [04:58:28]OFD Sender: No OFD packet to send [04:58:33]OFD Sender: No OFD packet to send [04:58:38]OFD Sender: No OFD packet to send [04:58:43]OFD Sender: No OFD packet to send [04:58:48]OFD Sender: No OFD packet to send [04:58:53]OFD Sender: No OFD packet to send [04:58:58]OFD Sender: No OFD packet to send [04:59:03]OFD Sender: No OFD packet to send [04:59:08]OFD Sender: No OFD packet to send [04:59:13]OFD Sender: No OFD packet to send [04:59:18]OFD Sender: No OFD packet to send [04:59:23]OFD Sender: No OFD packet to send [04:59:28]OFD Sender: No OFD packet to send [04:59:33]OFD Sender: No OFD packet to send [04:59:38]OFD Sender: No OFD packet to send [04:59:43]OFD Sender: No OFD packet to send [04:59:48]OFD Sender: No OFD packet to send [04:59:53]OFD Sender: No OFD packet to send [04:59:58]OFD Sender: No OFD packet to send [05:00:03]OFD Sender: No OFD packet to send [05:00:08]OFD Sender: No OFD packet to send [05:00:13]OFD Sender: No OFD packet to send [05:00:18]OFD Sender: No OFD packet to send [05:00:23]OFD Sender: No OFD packet to send [05:00:28]OFD Sender: No OFD packet to send [05:00:33]OFD Sender: No OFD packet to send [05:00:38]OFD Sender: No OFD packet to send [05:00:43]OFD Sender: No OFD packet to send [05:00:48]OFD Sender: No OFD packet to send [05:00:53]OFD Sender: No OFD packet to send [05:00:58]OFD Sender: No OFD packet to send [05:01:03]OFD Sender: No OFD packet to send [05:01:08]OFD Sender: No OFD packet to send [05:01:13]OFD Sender: No OFD packet to send [05:01:18]OFD Sender: No OFD packet to send [05:01:23]OFD Sender: No OFD packet to send [05:01:28]OFD Sender: No OFD packet to send [05:01:33]OFD Sender: No OFD packet to send [05:01:38]OFD Sender: No OFD packet to send [05:01:43]OFD Sender: No OFD packet to send [05:01:48]OFD Sender: No OFD packet to send [05:01:53]OFD Sender: No OFD packet to send [05:01:58]OFD Sender: No OFD packet to send [05:02:03]OFD Sender: No OFD packet to send [05:02:08]OFD Sender: No OFD packet to send [05:02:13]OFD Sender: No OFD packet to send [05:02:18]OFD Sender: No OFD packet to send [05:02:23]OFD Sender: No OFD packet to send [05:02:28]OFD Sender: No OFD packet to send [05:02:33]OFD Sender: No OFD packet to send [05:02:38]OFD Sender: No OFD packet to send [05:02:43]OFD Sender: No OFD packet to send [05:02:48]OFD Sender: No OFD packet to send [05:02:53]OFD Sender: No OFD packet to send [05:02:58]OFD Sender: No OFD packet to send [05:03:03]OFD Sender: No OFD packet to send [05:03:08]OFD Sender: No OFD packet to send [05:03:13]OFD Sender: No OFD packet to send [05:03:18]OFD Sender: No OFD packet to send [05:03:23]OFD Sender: No OFD packet to send [05:03:28]OFD Sender: No OFD packet to send [05:03:31]accept exits with 8 [05:03:31]New connection [05:03:31]New thread 3067338084 created [05:03:31]Thread 3067194724 joined [05:03:31]Waiting for new connection... [05:03:31] Sock 8.Parse request [05:03:31]Sock 8.Check first char [05:03:31]Sock 8.First char is OK [05:03:31]request: POST /json_proto HTTP/1.0 [05:03:31]Method: POST [05:03:31]URL: /json_proto [05:03:31]Method is POST - this is cgi request [05:03:31]url: /json_proto [05:03:31]query_string will be loaded in cgi processing [05:03:31]execute_cgi json_proto POST (null) [05:03:31]execute_cgi path=json_proto method=POST [05:03:31]POST find Content-Length [05:03:31]Host: 172.17.45.7:8080 [05:03:31]Content-Length: 679 [05:03:31]Content-Type: application/json [05:03:31] [05:03:31]POST finish read [05:03:31]Found Content-Length = 679 [05:03:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 21.000, "sum" : 1600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:03:31]execute_script... [05:03: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)950215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 21.000, "sum" : 1600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:03:31]POST & json_proto [05:03:31]process_json_proto [05:03:31]json parsed OK: [05:03:31]protocol is kg_v1.0 [05:03:31]action value=close_receipt [05:03:31]process_action close_receipt [05:03:31]cmd_close_receipt [05:03:31]MH_GetDate [05:03:31]Write to MH i2c: F0 00 00 01 03 F3 [05:03:31]Write i2c OK [05:03:31]MH_I2C_Read... [05:03:31]Read from MH i2c: F0 [05:03:31]MH_I2C_Read... [05:03:31]Read from MH i2c: F0 09 00 [05:03:31]MH_I2C_Read... [05:03:31]Read from MH i2c: F0 09 00 01 03 00 A4 C5 A9 66 90 0F 3E 66 B7 [05:03:31]GetLastDocTimeStamp 1722401626 [05:03:31]current date 1722402212 [05:03:31]FM_GetShiftState [05:03:31]SAM_PROTO_GetShiftState [05:03:31]wFMCommunicate request_size=4 [05:03:31]MH_SAM_APDU [05:03:31]CAPDU: 80 13 01 00 [05:03:31]Write to MH i2c: E2 08 00 02 03 80 13 01 00 00 00 00 00 82 [05:03:31]Write i2c OK [05:03:31]MH_I2C_Read... [05:03:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:03:31]Read from MH i2c: E2 [05:03:31]MH_I2C_Read... [05:03:31]Read from MH i2c: E2 0E 00 [05:03:31]MH_I2C_Read... [05:03:31]Read from MH i2c: E2 0E 00 02 03 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 1A [05:03:31]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [05:03:31]wFMCommunicate OK [05:03:31]SAM_PROTO_GetShiftState done [05:03:31]FM_GetShiftState done [05:03:31]opened in 1722384637 [05:03:31]opened+sec_in_day 1722471037 [05:03:31]quantity*price = 160020 [05:03:31]sum+1 = 160021 [05:03:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.93 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 20 31.07.2024 05:03 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119289 ФПД: 236737346597011 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T050332&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119289&fm=236737346597011&tin=02508201610067®Number=0000000000092660&sum=160000 [05:03:32]StoreToDocumentArchive [05:03:32]shift 436 fd 119289 [05:03:32]save to /storage/0436/doc_00119289 [05:03:32]save last doc name /storage/0436/doc_00119289 to /storage/kkm_last_doc_name [05:03:32]save OK [05:03:32]Clear old archive folders... [05:03:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:03:32]tlvbuf is B6F067B0 [05:03:32]SAM_PROTO_ClearQueue [05:03:32]wFMCommunicate request_size=4 [05:03:32]MH_SAM_APDU [05:03:32]CAPDU: 80 09 00 00 [05:03:32]Write to MH i2c: E2 08 00 0F 03 80 09 00 00 00 00 00 00 84 [05:03:32]Write i2c OK [05:03:32]MH_I2C_Read... [05:03:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:03:32]Read from MH i2c: E2 [05:03:32]MH_I2C_Read... [05:03:32]Read from MH i2c: E2 03 00 [05:03:32]MH_I2C_Read... [05:03:32]Read from MH i2c: E2 03 00 0F 03 00 90 00 86 [05:03:32]RAPDU: 90 00 [05:03:32]wFMCommunicate OK [05:03:32]SAM_PROTO_ClearQueue done [05:03:32]KKMCreateOFDPacket [05:03:32]OFDProtocolAddRootSTLVToBuf [05:03:32]FM_MakeSignedData [05:03:32]FM_MakeSignedData [05:03:32]SAM_PROTO_SignData [05:03:32]wFMCommunicate request_size=4 [05:03:32]MH_SAM_APDU [05:03:32]CAPDU: 80 0D 01 02 [05:03:32]Write to MH i2c: E2 08 00 10 03 80 0D 01 02 00 00 00 00 8C [05:03:32]Write i2c OK [05:03:32]MH_I2C_Read... [05:03:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:03:32]Read from MH i2c: E2 [05:03:32]MH_I2C_Read... [05:03:32]Read from MH i2c: E2 03 00 [05:03:32]MH_I2C_Read... [05:03:32]Read from MH i2c: E2 03 00 10 03 00 90 00 87 [05:03:32]RAPDU: 90 00 [05:03:32]wFMCommunicate OK [05:03:32]wFMCommunicate request_size=255 [05:03:32]MH_SAM_APDU [05:03:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 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 A4 C5 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F9 D1 01 00 35 04 06 00 D7 4F B5 72 [05:03:32]Write to MH i2c: E2 02 01 11 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 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 A4 C5 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F9 D1 01 00 35 04 06 00 D7 4F B5 72 00 00 25 [05:03:32]Write i2c OK [05:03:32]MH_I2C_Read... [05:03:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:03:32]Read from MH i2c: E2 [05:03:32]MH_I2C_Read... [05:03:32]Read from MH i2c: E2 03 00 [05:03:32]MH_I2C_Read... [05:03:32]Read from MH i2c: E2 03 00 11 03 00 90 00 88 [05:03:32]RAPDU: 90 00 [05:03:32]wFMCommunicate OK [05:03:32]wFMCommunicate request_size=7 [05:03:32]MH_SAM_APDU [05:03:32]CAPDU: 80 0D 02 02 02 F0 93 [05:03:32]Write to MH i2c: E2 0A 00 12 03 80 0D 02 02 02 00 F0 93 00 00 16 [05:03:32]Write i2c OK [05:03:32]MH_I2C_Read... [05:03:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:03:32]Read from MH i2c: E2 [05:03:32]MH_I2C_Read... [05:03:32]Read from MH i2c: E2 03 00 [05:03:32]MH_I2C_Read... [05:03:32]Read from MH i2c: E2 03 00 12 03 00 90 00 89 [05:03:32]RAPDU: 90 00 [05:03:32]wFMCommunicate OK [05:03:32]wFMCommunicate request_size=4 [05:03:32]MH_SAM_APDU [05:03:32]CAPDU: 80 0D 03 02 [05:03:32]Write to MH i2c: E2 08 00 13 03 80 0D 03 02 00 00 00 00 91 [05:03:32]Write i2c OK [05:03:32]MH_I2C_Read... [05:03:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:03:33]Read from MH i2c: E2 [05:03:33]MH_I2C_Read... [05:03:33]Read from MH i2c: E2 0B 00 [05:03:33]MH_I2C_Read... [05:03:33]Read from MH i2c: E2 0B 00 13 03 00 7A F5 63 4B A6 31 20 74 90 00 1A [05:03:33]RAPDU: 7A F5 63 4B A6 31 20 74 90 00 [05:03:33]wFMCommunicate OK [05:03:33]SAM_PROTO_SignData done [05:03:33]FM_MakeSignedData done [05:03:33]CreateOFDProtocolMessage [05:03:33]wFMCommunicate request_size=4 [05:03:33]MH_SAM_APDU [05:03:33]CAPDU: 80 11 00 00 [05:03:33]Write to MH i2c: E2 08 00 14 03 80 11 00 00 00 00 00 00 91 [05:03:33]Write i2c OK [05:03:33]MH_I2C_Read... [05:03:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:03:33]Read from MH i2c: E2 [05:03:33]MH_I2C_Read... [05:03:33]Read from MH i2c: E2 17 00 [05:03:33]MH_I2C_Read... [05:03:33]Read from MH i2c: E2 17 00 14 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EC [05:03:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [05:03:33]wFMCommunicate OK [05:03:33]CreateOFDProtocolMessage done [05:03:33]OFDSenderStorePacket 119289 [05:03:33]StoreOFDPacket docnum=119289 [05:03:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 0A B0 04 01 31 DA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 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 A4 C5 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F9 D1 01 00 35 04 06 00 D7 4F B5 72 F0 93 7A F5 63 4B A6 31 20 74 [05:03:33]CheckFolder [05:03:33]dirname=/storage/ofd_packets [05:03:33]CheckFolder done [05:03:33]ProducePacketName [05:03:33]name=ofd_packets/00119289 [05:03:33]NVStorageSaveData ofd_packets/00119289 [05:03:33]File name is /storage/ofd_packets/00119289 [05:03:33]Write 298 bytes [05:03:33]NVStorageSaveData done [05:03:33]OFDSenderStorePacket done [05:03:33]KKMCreateOFDPacket done [05:03:33]NVStorageSaveData kkm_last_timestamp [05:03:33]File name is /storage/kkm_last_timestamp [05:03:33]Write 4 bytes [05:03:33]NVStorageSaveData done [05:03:33]ExternCall_PrintAddStr [05:03:33]wPrintStart [05:03:33]Write to MH i2c: 01 00 00 15 03 18 [05:03:33]Write i2c OK [05:03:33]MH_I2C_Read... [05:03:33]Read from MH i2c: 01 [05:03:33]MH_I2C_Read... [05:03:33]Read from MH i2c: 01 07 00 [05:03:33]MH_I2C_Read... [05:03:33]Read from MH i2c: 01 07 00 15 03 00 00 00 00 00 FF 0F 2D [05:03:33]RasterBufferAndPrint [05:03:33]line Счет N : (1)950215 [05:03:33]line ИНН: 02508201610067 [05:03:33]line Контрольно-Кассовый Чек [05:03:33]line ПРОДАЖА [05:03:33]line ТРК (МРК, ГНК) : 21 [05:03:33]line Товар: 2710194800 [05:03:33]line ДТ-К-5 [05:03:33]line 21.000 * 76.20 [05:03:33]line = 1600.20 [05:03:33]line НДС 12% НСП 1% [05:03:33]line > о реализуемом товаре [05:03:33]line ОКРУГЛЕНИЕ: -0.20 [05:03:33]line ИТОГО: 1600.00 [05:03:33]line Внесено: 1600.00 [05:03:33]line СДАЧА: 0.00 [05:03:33]line НСП 1% : 14.16 [05:03:33]line НДС 12% : 169.93 [05:03:33]line Наличными: 1600.00 [05:03:33]line Безнал.: 0.00 [05:03:33]line Место: АЗС № 134 "Партнер Нефть" [05:03:33]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [05:03:33]line СНО: Общий режим [05:03:33]line Чек 20 31.07.2024 05:03 [05:03:33]line Смена: 436 ФФД: 1.0 [05:03:33]line ЗНМ: 0300000044 [05:03:33]line РНМ: 0000000000092660 [05:03:33]line Версия ККМ: 001 [05:03:33]line ФМ: 0000000000874939 [05:03:33]line ФД: 119289 [05:03:33]line ФПД: 236737346597011 [05:03:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T050332&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119289&fm=236737346597011&tin=02508201610067®Number=0000000000092660&sum=160000 [05:03:33]OFD Sender: Processing packet 119289 [packets to send 86, broken 85] [05:03:33]ProducePacketName [05:03:33]name=ofd_packets/00119289 [05:03:33]OFD Sender: To server: pG, [05:03:33]CommunicateWithHost lk.salyk.kg:30040 [05:03:33]ConnectInit lk.salyk.kg [05:03:33]written 0, free lines is 4095 [05:03:33]Connected sock=10 [05:03:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 0A B0 04 01 31 DA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 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 A4 C5 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F9 D1 01 00 35 04 06 00 D7 4F B5 72 F0 93 7A F5 63 4B A6 31 20 74 [05:03:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 7C 4E 47 00 41 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F9 D1 01 00 F4 03 04 00 2D 73 A9 66 B6 04 01 00 00 B7 BF 86 9C 99 D7 77 C0 [05:03:33]CommunicateWithHost err = 0 [05:03:33]CheckOFDResponse [05:03:33]1017 (14) - 77093643461234 [05:03:33]1041 (16) - 0000000000874939 [05:03:33]1040 (4) - 119289 [05:03:33]1012 (4) - 30.07.2024 23:11 [05:03:33]1206 (1) - 0 [05:03:33]OFD Sender: Remove packet 119289 [05:03:33]ProducePacketName [05:03:33]name=ofd_packets/00119289 [05:03:33]NVStorageDeleteData [05:03:33]Write to MH i2c: 01 00 00 3F 03 42 [05:03:33]Write i2c OK [05:03:33]MH_I2C_Read... [05:03:33]Read from MH i2c: 01 [05:03:33]MH_I2C_Read... [05:03:33]Read from MH i2c: 01 07 00 [05:03:33]MH_I2C_Read... [05:03:33]Read from MH i2c: 01 07 00 3F 03 00 00 00 00 00 D3 0C 28 [05:03:33]RasterBufferAndPrint [05:03:33]line [05:03:33]line [05:03:33]line [05:03:33]line [05:03:33]line [05:03:33]written 0, free lines is 3289 [05:03:33]MH_Cut [05:03:33]Write to MH i2c: D1 01 00 46 03 01 1B [05:03:33]Write i2c OK [05:03:33]MH_I2C_Read... [05:03:33]Read from MH i2c: D1 [05:03:33]MH_I2C_Read... [05:03:33]Read from MH i2c: D1 01 00 [05:03:33]MH_I2C_Read... [05:03:33]Read from MH i2c: D1 01 00 46 03 00 1A [05:03:33]Write to MH i2c: 01 00 00 47 03 4A [05:03:33]Write i2c OK [05:03:33]MH_I2C_Read... [05:03:34]OFD Sender: No OFD packet to send [05:03:34]*** Cut start [05:03:34]*** Partial cut [05:03:34]*** CUTSNS_PIN = 1 [05:03:34]*** CUTSNS_PIN = 0 [05:03:34]*** Brake cut motor [05:03:35]Read from MH i2c: 01 [05:03:35]MH_I2C_Read... [05:03:35]*** Stop cut motor [05:03:35]*** Cut end [05:03:35]Read from MH i2c: 01 07 00 [05:03:35]MH_I2C_Read... [05:03:35]Read from MH i2c: 01 07 00 47 03 00 00 00 00 00 FF 0F 5F [05:03:35]process_action close_receipt done [05:03:35]requested_data is exist [05:03:35]produce_requested_data [05:03:35]requested_item fm.sn is exist - process it [05:03:35]wFMCommunicate request_size=4 [05:03:35]MH_SAM_APDU [05:03:35]CAPDU: 80 11 00 00 [05:03:35]Write to MH i2c: E2 08 00 48 03 80 11 00 00 00 00 00 00 C5 [05:03:35]Write i2c OK [05:03:35]MH_I2C_Read... [05:03:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:03:35]Read from MH i2c: E2 [05:03:35]MH_I2C_Read... [05:03:35]Read from MH i2c: E2 17 00 [05:03:35]MH_I2C_Read... [05:03:35]Read from MH i2c: E2 17 00 48 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 20 [05:03:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [05:03:35]wFMCommunicate OK [05:03:35]requested_item fd.num is exist - process it [05:03:35]SAM_PROTO_GetFieldsCounters [05:03:35]wFMCommunicate request_size=4 [05:03:35]MH_SAM_APDU [05:03:35]CAPDU: 80 13 00 00 [05:03:35]Write to MH i2c: E2 08 00 49 03 80 13 00 00 00 00 00 00 C8 [05:03:35]Write i2c OK [05:03:35]MH_I2C_Read... [05:03:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:03:35]Read from MH i2c: E2 [05:03:35]MH_I2C_Read... [05:03:35]Read from MH i2c: E2 62 00 [05:03:35]MH_I2C_Read... [05:03:35]Read from MH i2c: E2 62 00 49 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F9 D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [05:03: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F9 D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:03:35]wFMCommunicate OK [05:03:35]SAM_PROTO_GetFieldsCounters done [05:03:35]requested_item shift.num is exist - process it [05:03:35]requested_item shift.opened is exist - process it [05:03:35]req_shift_opened [05:03:35]FM_GetShiftState [05:03:35]SAM_PROTO_GetShiftState [05:03:35]wFMCommunicate request_size=4 [05:03:35]MH_SAM_APDU [05:03:35]CAPDU: 80 13 01 00 [05:03:35]Write to MH i2c: E2 08 00 4A 03 80 13 01 00 00 00 00 00 CA [05:03:35]Write i2c OK [05:03:35]MH_I2C_Read... [05:03:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:03:35]Read from MH i2c: E2 [05:03:35]MH_I2C_Read... [05:03:35]Read from MH i2c: E2 0E 00 [05:03:35]MH_I2C_Read... [05:03:35]Read from MH i2c: E2 0E 00 4A 03 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 62 [05:03:35]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [05:03:35]wFMCommunicate OK [05:03:35]SAM_PROTO_GetShiftState done [05:03:35]FM_GetShiftState done [05:03:35]req_shift_opened done [05:03:35]requested_item shift.open_date is exist - process it [05:03:35]req_shift_open_date [05:03:35]req_shift_open_date done [05:03:35]produce_requested_data done [05:03:35]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119289,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [05:03:35]process_action_free close_receipt [05:03:35]json_value_free [05:03:35]json_value_free done [05:03:35]process_json_proto returns [05:03:35]Send response to host [05:03:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119289,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [05:03:35]free response buf [05:03:35]execute_script done [05:03:35]execute_script returns [05:03:35]free content buf [05:03:35]Sock 8.Close socket [05:03:35]Sock 8.Thread stoped [05:03:39]OFD Sender: No OFD packet to send [05:03:44]OFD Sender: No OFD packet to send [05:03:49]OFD Sender: No OFD packet to send [05:03:54]OFD Sender: No OFD packet to send [05:03:59]OFD Sender: No OFD packet to send [05:04:04]OFD Sender: No OFD packet to send [05:04:09]OFD Sender: No OFD packet to send [05:04:14]OFD Sender: No OFD packet to send [05:04:19]OFD Sender: No OFD packet to send [05:04:24]OFD Sender: No OFD packet to send [05:04:29]OFD Sender: No OFD packet to send [05:04:34]OFD Sender: No OFD packet to send [05:04:39]OFD Sender: No OFD packet to send [05:04:44]OFD Sender: No OFD packet to send [05:04:49]OFD Sender: No OFD packet to send [05:04:54]OFD Sender: No OFD packet to send [05:04:59]OFD Sender: No OFD packet to send [05:05:04]OFD Sender: No OFD packet to send [05:05:09]OFD Sender: No OFD packet to send [05:05:14]OFD Sender: No OFD packet to send [05:05:19]OFD Sender: No OFD packet to send [05:05:24]OFD Sender: No OFD packet to send [05:05:29]OFD Sender: No OFD packet to send [05:05:34]OFD Sender: No OFD packet to send [05:05:39]OFD Sender: No OFD packet to send [05:05:44]OFD Sender: No OFD packet to send [05:05:49]OFD Sender: No OFD packet to send [05:05:54]OFD Sender: No OFD packet to send [05:05:59]OFD Sender: No OFD packet to send [05:06:04]OFD Sender: No OFD packet to send [05:06:09]OFD Sender: No OFD packet to send [05:06:14]OFD Sender: No OFD packet to send [05:06:19]OFD Sender: No OFD packet to send [05:06:24]OFD Sender: No OFD packet to send [05:06:29]OFD Sender: No OFD packet to send [05:06:34]OFD Sender: No OFD packet to send [05:06:39]OFD Sender: No OFD packet to send [05:06:44]OFD Sender: No OFD packet to send [05:06:49]OFD Sender: No OFD packet to send [05:06:54]OFD Sender: No OFD packet to send [05:06:59]OFD Sender: No OFD packet to send [05:07:04]OFD Sender: No OFD packet to send [05:07:09]OFD Sender: No OFD packet to send [05:07:14]OFD Sender: No OFD packet to send [05:07:19]OFD Sender: No OFD packet to send [05:07:24]OFD Sender: No OFD packet to send [05:07:29]OFD Sender: No OFD packet to send [05:07:34]OFD Sender: No OFD packet to send [05:07:39]OFD Sender: No OFD packet to send [05:07:44]OFD Sender: No OFD packet to send [05:07:49]OFD Sender: No OFD packet to send [05:07:54]OFD Sender: No OFD packet to send [05:07:59]OFD Sender: No OFD packet to send [05:08:04]OFD Sender: No OFD packet to send [05:08:09]OFD Sender: No OFD packet to send [05:08:14]OFD Sender: No OFD packet to send [05:08:19]OFD Sender: No OFD packet to send [05:08:24]OFD Sender: No OFD packet to send [05:08:29]OFD Sender: No OFD packet to send [05:08:34]OFD Sender: No OFD packet to send [05:08:39]OFD Sender: No OFD packet to send [05:08:44]OFD Sender: No OFD packet to send [05:08:49]OFD Sender: No OFD packet to send [05:08:54]OFD Sender: No OFD packet to send [05:08:59]OFD Sender: No OFD packet to send [05:09:04]OFD Sender: No OFD packet to send [05:09:09]OFD Sender: No OFD packet to send [05:09:14]OFD Sender: No OFD packet to send [05:09:19]OFD Sender: No OFD packet to send [05:09:24]OFD Sender: No OFD packet to send [05:09:29]OFD Sender: No OFD packet to send [05:09:34]OFD Sender: No OFD packet to send [05:09:39]OFD Sender: No OFD packet to send [05:09:44]OFD Sender: No OFD packet to send [05:09:49]OFD Sender: No OFD packet to send [05:09:54]OFD Sender: No OFD packet to send [05:09:59]OFD Sender: No OFD packet to send [05:10:04]OFD Sender: No OFD packet to send [05:10:09]OFD Sender: No OFD packet to send [05:10:14]OFD Sender: No OFD packet to send [05:10:19]OFD Sender: No OFD packet to send [05:10:24]OFD Sender: No OFD packet to send [05:10:29]OFD Sender: No OFD packet to send [05:10:34]OFD Sender: No OFD packet to send [05:10:39]OFD Sender: No OFD packet to send [05:10:44]OFD Sender: No OFD packet to send [05:10:49]OFD Sender: No OFD packet to send [05:10:54]OFD Sender: No OFD packet to send [05:10:59]OFD Sender: No OFD packet to send [05:11:04]OFD Sender: No OFD packet to send [05:11:09]OFD Sender: No OFD packet to send [05:11:14]OFD Sender: No OFD packet to send [05:11:19]OFD Sender: No OFD packet to send [05:11:24]OFD Sender: No OFD packet to send [05:11:29]OFD Sender: No OFD packet to send [05:11:34]OFD Sender: No OFD packet to send [05:11:39]OFD Sender: No OFD packet to send [05:11:44]OFD Sender: No OFD packet to send [05:11:49]OFD Sender: No OFD packet to send [05:11:54]OFD Sender: No OFD packet to send [05:11:59]OFD Sender: No OFD packet to send [05:12:04]OFD Sender: No OFD packet to send [05:12:09]OFD Sender: No OFD packet to send [05:12:14]OFD Sender: No OFD packet to send [05:12:19]OFD Sender: No OFD packet to send [05:12:24]OFD Sender: No OFD packet to send [05:12:29]OFD Sender: No OFD packet to send [05:12:34]OFD Sender: No OFD packet to send [05:12:39]OFD Sender: No OFD packet to send [05:12:44]OFD Sender: No OFD packet to send [05:12:49]OFD Sender: No OFD packet to send [05:12:54]OFD Sender: No OFD packet to send [05:12:59]OFD Sender: No OFD packet to send [05:13:04]OFD Sender: No OFD packet to send [05:13:09]OFD Sender: No OFD packet to send [05:13:14]OFD Sender: No OFD packet to send [05:13:19]OFD Sender: No OFD packet to send [05:13:24]OFD Sender: No OFD packet to send [05:13:29]OFD Sender: No OFD packet to send [05:13:34]OFD Sender: No OFD packet to send [05:13:39]OFD Sender: No OFD packet to send [05:13:44]OFD Sender: No OFD packet to send [05:13:49]OFD Sender: No OFD packet to send [05:13:54]OFD Sender: No OFD packet to send [05:13:59]OFD Sender: No OFD packet to send [05:14:04]OFD Sender: No OFD packet to send [05:14:09]OFD Sender: No OFD packet to send [05:14:14]OFD Sender: No OFD packet to send [05:14:19]OFD Sender: No OFD packet to send [05:14:24]OFD Sender: No OFD packet to send [05:14:29]OFD Sender: No OFD packet to send [05:14:34]OFD Sender: No OFD packet to send [05:14:39]OFD Sender: No OFD packet to send [05:14:44]OFD Sender: No OFD packet to send [05:14:49]OFD Sender: No OFD packet to send [05:14:54]OFD Sender: No OFD packet to send [05:14:59]OFD Sender: No OFD packet to send [05:15:04]OFD Sender: No OFD packet to send [05:15:09]OFD Sender: No OFD packet to send [05:15:14]OFD Sender: No OFD packet to send [05:15:19]OFD Sender: No OFD packet to send [05:15:24]OFD Sender: No OFD packet to send [05:15:29]OFD Sender: No OFD packet to send [05:15:35]OFD Sender: No OFD packet to send [05:15:40]OFD Sender: No OFD packet to send [05:15:45]OFD Sender: No OFD packet to send [05:15:50]OFD Sender: No OFD packet to send [05:15:55]OFD Sender: No OFD packet to send [05:16:00]OFD Sender: No OFD packet to send [05:16:05]OFD Sender: No OFD packet to send [05:16:10]OFD Sender: No OFD packet to send [05:16:15]OFD Sender: No OFD packet to send [05:16:20]OFD Sender: No OFD packet to send [05:16:25]OFD Sender: No OFD packet to send [05:16:30]OFD Sender: No OFD packet to send [05:16:35]OFD Sender: No OFD packet to send [05:16:40]OFD Sender: No OFD packet to send [05:16:45]OFD Sender: No OFD packet to send [05:16:50]OFD Sender: No OFD packet to send [05:16:55]OFD Sender: No OFD packet to send [05:17:00]OFD Sender: No OFD packet to send [05:17:05]OFD Sender: No OFD packet to send [05:17:10]OFD Sender: No OFD packet to send [05:17:15]OFD Sender: No OFD packet to send [05:17:20]OFD Sender: No OFD packet to send [05:17:25]OFD Sender: No OFD packet to send [05:17:30]OFD Sender: No OFD packet to send [05:17:35]OFD Sender: No OFD packet to send [05:17:40]OFD Sender: No OFD packet to send [05:17:45]OFD Sender: No OFD packet to send [05:17:50]OFD Sender: No OFD packet to send [05:17:55]OFD Sender: No OFD packet to send [05:18:00]OFD Sender: No OFD packet to send [05:18:05]OFD Sender: No OFD packet to send [05:18:10]OFD Sender: No OFD packet to send [05:18:15]OFD Sender: No OFD packet to send [05:18:20]OFD Sender: No OFD packet to send [05:18:25]OFD Sender: No OFD packet to send [05:18:30]OFD Sender: No OFD packet to send [05:18:35]OFD Sender: No OFD packet to send [05:18:40]OFD Sender: No OFD packet to send [05:18:45]OFD Sender: No OFD packet to send [05:18:50]OFD Sender: No OFD packet to send [05:18:55]OFD Sender: No OFD packet to send [05:19:00]OFD Sender: No OFD packet to send [05:19:05]OFD Sender: No OFD packet to send [05:19:10]OFD Sender: No OFD packet to send [05:19:15]OFD Sender: No OFD packet to send [05:19:20]OFD Sender: No OFD packet to send [05:19:25]OFD Sender: No OFD packet to send [05:19:30]OFD Sender: No OFD packet to send [05:19:35]OFD Sender: No OFD packet to send [05:19:40]OFD Sender: No OFD packet to send [05:19:45]OFD Sender: No OFD packet to send [05:19:50]OFD Sender: No OFD packet to send [05:19:55]OFD Sender: No OFD packet to send [05:19:57]accept exits with 9 [05:19:57]New connection [05:19:57]New thread 3067194724 created [05:19:57]Thread 3067338084 joined [05:19:57]Waiting for new connection... [05:19:57] Sock 9.Parse request [05:19:57]Sock 9.Check first char [05:19:57]Sock 9.First char is OK [05:19:57]request: POST /json_proto HTTP/1.0 [05:19:57]Method: POST [05:19:57]URL: /json_proto [05:19:57]Method is POST - this is cgi request [05:19:57]url: /json_proto [05:19:57]query_string will be loaded in cgi processing [05:19:57]execute_cgi json_proto POST (null) [05:19:57]execute_cgi path=json_proto method=POST [05:19:57]POST find Content-Length [05:19:57]Host: 172.17.45.7:8080 [05:19:57]Content-Length: 677 [05:19:57]Content-Type: application/json [05:19:57] [05:19:57]POST finish read [05:19:57]Found Content-Length = 677 [05:19:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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" ] } } [05:19:57]execute_script... [05:19:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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" ] } } [05:19:57]POST & json_proto [05:19:57]process_json_proto [05:19:57]json parsed OK: [05:19:57]protocol is kg_v1.0 [05:19:57]action value=close_receipt [05:19:57]process_action close_receipt [05:19:57]cmd_close_receipt [05:19:57]MH_GetDate [05:19:57]Write to MH i2c: F0 00 00 4B 03 3D [05:19:57]Write i2c OK [05:19:57]MH_I2C_Read... [05:19:57]Read from MH i2c: F0 [05:19:57]MH_I2C_Read... [05:19:57]Read from MH i2c: F0 09 00 [05:19:57]MH_I2C_Read... [05:19:57]Read from MH i2c: F0 09 00 4B 03 00 7E C9 A9 66 90 0F 3E 66 DF [05:19:57]GetLastDocTimeStamp 1722402212 [05:19:57]current date 1722403198 [05:19:57]FM_GetShiftState [05:19:57]SAM_PROTO_GetShiftState [05:19:57]wFMCommunicate request_size=4 [05:19:57]MH_SAM_APDU [05:19:57]CAPDU: 80 13 01 00 [05:19:57]Write to MH i2c: E2 08 00 4C 03 80 13 01 00 00 00 00 00 CC [05:19:57]Write i2c OK [05:19:57]MH_I2C_Read... [05:19:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:19:57]Read from MH i2c: E2 [05:19:57]MH_I2C_Read... [05:19:57]Read from MH i2c: E2 0E 00 [05:19:57]MH_I2C_Read... [05:19:57]Read from MH i2c: E2 0E 00 4C 03 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 64 [05:19:57]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [05:19:57]wFMCommunicate OK [05:19:57]SAM_PROTO_GetShiftState done [05:19:57]FM_GetShiftState done [05:19:57]opened in 1722384637 [05:19:57]opened+sec_in_day 1722471037 [05:19:57]quantity*price = 50036 [05:19:57]sum+1 = 50037 [05:19:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 21 31.07.2024 05:19 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119290 ФПД: 157341788930260 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T051958&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119290&fm=157341788930260&tin=02508201610067®Number=0000000000092660&sum=50000 [05:19:58]StoreToDocumentArchive [05:19:58]shift 436 fd 119290 [05:19:58]save to /storage/0436/doc_00119290 [05:19:58]save last doc name /storage/0436/doc_00119290 to /storage/kkm_last_doc_name [05:19:58]save OK [05:19:58]Clear old archive folders... [05:19:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:19:58]tlvbuf is 00AC69B0 [05:19:58]SAM_PROTO_ClearQueue [05:19:58]wFMCommunicate request_size=4 [05:19:58]MH_SAM_APDU [05:19:58]CAPDU: 80 09 00 00 [05:19:58]Write to MH i2c: E2 08 00 59 03 80 09 00 00 00 00 00 00 CE [05:19:58]Write i2c OK [05:19:58]MH_I2C_Read... [05:19:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:19:58]Read from MH i2c: E2 [05:19:58]MH_I2C_Read... [05:19:58]Read from MH i2c: E2 03 00 [05:19:58]MH_I2C_Read... [05:19:58]Read from MH i2c: E2 03 00 59 03 00 90 00 D0 [05:19:58]RAPDU: 90 00 [05:19:58]wFMCommunicate OK [05:19:58]SAM_PROTO_ClearQueue done [05:19:58]KKMCreateOFDPacket [05:19:58]OFDProtocolAddRootSTLVToBuf [05:19:58]FM_MakeSignedData [05:19:58]FM_MakeSignedData [05:19:58]SAM_PROTO_SignData [05:19:58]wFMCommunicate request_size=4 [05:19:58]MH_SAM_APDU [05:19:58]CAPDU: 80 0D 01 02 [05:19:58]Write to MH i2c: E2 08 00 5A 03 80 0D 01 02 00 00 00 00 D6 [05:19:58]Write i2c OK [05:19:58]MH_I2C_Read... [05:19:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:19:58]Read from MH i2c: E2 [05:19:58]MH_I2C_Read... [05:19:58]Read from MH i2c: E2 03 00 [05:19:58]MH_I2C_Read... [05:19:58]Read from MH i2c: E2 03 00 5A 03 00 90 00 D1 [05:19:58]RAPDU: 90 00 [05:19:58]wFMCommunicate OK [05:19:58]wFMCommunicate request_size=255 [05:19:58]MH_SAM_APDU [05:19:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 15 00 00 00 F4 03 04 00 7E C9 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FA D1 01 00 35 04 06 00 8F [05:19:58]Write to MH i2c: E2 02 01 5B 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 15 00 00 00 F4 03 04 00 7E C9 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FA D1 01 00 35 04 06 00 8F 00 00 D5 [05:19:58]Write i2c OK [05:19:58]MH_I2C_Read... [05:19:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:19:58]Read from MH i2c: E2 [05:19:58]MH_I2C_Read... [05:19:58]Read from MH i2c: E2 03 00 [05:19:58]MH_I2C_Read... [05:19:58]Read from MH i2c: E2 03 00 5B 03 00 90 00 D2 [05:19:58]RAPDU: 90 00 [05:19:58]wFMCommunicate OK [05:19:58]wFMCommunicate request_size=10 [05:19:58]MH_SAM_APDU [05:19:58]CAPDU: 80 0D 02 02 05 19 FD 70 00 D4 [05:19:58]Write to MH i2c: E2 0D 00 5C 03 80 0D 02 02 05 00 19 FD 70 00 D4 00 00 3D [05:19:58]Write i2c OK [05:19:58]MH_I2C_Read... [05:19:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:19:58]Read from MH i2c: E2 [05:19:58]MH_I2C_Read... [05:19:58]Read from MH i2c: E2 03 00 [05:19:58]MH_I2C_Read... [05:19:58]Read from MH i2c: E2 03 00 5C 03 00 90 00 D3 [05:19:58]RAPDU: 90 00 [05:19:58]wFMCommunicate OK [05:19:58]wFMCommunicate request_size=4 [05:19:58]MH_SAM_APDU [05:19:58]CAPDU: 80 0D 03 02 [05:19:58]Write to MH i2c: E2 08 00 5D 03 80 0D 03 02 00 00 00 00 DB [05:19:58]Write i2c OK [05:19:58]MH_I2C_Read... [05:19:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:19:58]Read from MH i2c: E2 [05:19:58]MH_I2C_Read... [05:19:58]Read from MH i2c: E2 0B 00 [05:19:58]MH_I2C_Read... [05:19:58]Read from MH i2c: E2 0B 00 5D 03 00 7E 1F 3C EE DC D3 FD AE 90 00 FD [05:19:58]RAPDU: 7E 1F 3C EE DC D3 FD AE 90 00 [05:19:58]wFMCommunicate OK [05:19:58]SAM_PROTO_SignData done [05:19:58]FM_MakeSignedData done [05:19:58]CreateOFDProtocolMessage [05:19:58]wFMCommunicate request_size=4 [05:19:58]MH_SAM_APDU [05:19:58]CAPDU: 80 11 00 00 [05:19:58]Write to MH i2c: E2 08 00 5E 03 80 11 00 00 00 00 00 00 DB [05:19:58]Write i2c OK [05:19:58]MH_I2C_Read... [05:19:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:19:58]Read from MH i2c: E2 [05:19:58]MH_I2C_Read... [05:19:58]Read from MH i2c: E2 17 00 [05:19:58]MH_I2C_Read... [05:19:58]Read from MH i2c: E2 17 00 5E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 36 [05:19:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [05:19:58]wFMCommunicate OK [05:19:58]CreateOFDProtocolMessage done [05:19:58]OFDSenderStorePacket 119290 [05:19:58]StoreOFDPacket docnum=119290 [05:19:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E9 3A 07 01 F5 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 15 00 00 00 F4 03 04 00 7E C9 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FA D1 01 00 35 04 06 00 8F 19 FD 70 00 D4 7E 1F 3C EE DC D3 FD AE [05:19:58]CheckFolder [05:19:58]dirname=/storage/ofd_packets [05:19:58]CheckFolder done [05:19:58]ProducePacketName [05:19:58]name=ofd_packets/00119290 [05:19:58]NVStorageSaveData ofd_packets/00119290 [05:19:58]File name is /storage/ofd_packets/00119290 [05:19:58]Write 301 bytes [05:19:58]NVStorageSaveData done [05:19:58]OFDSenderStorePacket done [05:19:58]KKMCreateOFDPacket done [05:19:58]NVStorageSaveData kkm_last_timestamp [05:19:58]File name is /storage/kkm_last_timestamp [05:19:58]Write 4 bytes [05:19:58]NVStorageSaveData done [05:19:58]ExternCall_PrintAddStr [05:19:58]wPrintStart [05:19:58]Write to MH i2c: 01 00 00 5F 03 62 [05:19:58]Write i2c OK [05:19:58]MH_I2C_Read... [05:19:58]Read from MH i2c: 01 [05:19:58]MH_I2C_Read... [05:19:58]Read from MH i2c: 01 07 00 [05:19:58]MH_I2C_Read... [05:19:58]Read from MH i2c: 01 07 00 5F 03 00 00 00 00 00 FF 0F 77 [05:19:58]RasterBufferAndPrint [05:19:58]line Счет N : (1)950216 [05:19:58]line ИНН: 02508201610067 [05:19:58]line Контрольно-Кассовый Чек [05:19:58]line ПРОДАЖА [05:19:58]line ТРК (МРК, ГНК) : 31 [05:19:58]line Товар: 2710124130 [05:19:58]line Аи-92-К-4 [05:19:58]line 7.380 * 67.80 [05:19:58]line = 500.36 [05:19:58]line НДС 12% НСП 1% [05:19:58]line > о реализуемом товаре [05:19:58]line ОКРУГЛЕНИЕ: -0.36 [05:19:58]line ИТОГО: 500.00 [05:19:58]line Внесено: 500.00 [05:19:58]line СДАЧА: 0.00 [05:19:58]line НСП 1% : 4.43 [05:19:58]line НДС 12% : 53.14 [05:19:58]line Наличными: 500.00 [05:19:58]line Безнал.: 0.00 [05:19:58]line Место: АЗС № 134 "Партнер Нефть" [05:19:58]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [05:19:58]line СНО: Общий режим [05:19:58]line Чек 21 31.07.2024 05:19 [05:19:58]line Смена: 436 ФФД: 1.0 [05:19:58]line ЗНМ: 0300000044 [05:19:58]line РНМ: 0000000000092660 [05:19:58]line Версия ККМ: 001 [05:19:58]line ФМ: 0000000000874939 [05:19:58]line ФД: 119290 [05:19:58]line ФПД: 157341788930260 [05:19:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T051958&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119290&fm=157341788930260&tin=02508201610067®Number=0000000000092660&sum=50000 [05:19:58]written 0, free lines is 4095 [05:19:58]OFD Sender: Processing packet 119290 [packets to send 86, broken 85] [05:19:58]ProducePacketName [05:19:58]name=ofd_packets/00119290 [05:19:58]OFD Sender: To server: pG, [05:19:58]CommunicateWithHost lk.salyk.kg:30040 [05:19:58]ConnectInit lk.salyk.kg [05:19:58]Connected sock=10 [05:19: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 39 33 39 0F 01 00 00 E9 3A 07 01 F5 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 15 00 00 00 F4 03 04 00 7E C9 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FA D1 01 00 35 04 06 00 8F 19 FD 70 00 D4 7E 1F 3C EE DC D3 FD AE [05:19:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A6 B9 47 00 16 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 39 33 39 10 04 04 00 FA D1 01 00 F4 03 04 00 07 77 A9 66 B6 04 01 00 00 B6 DF B1 03 42 FA CB B4 [05:19:59]CommunicateWithHost err = 0 [05:19:59]CheckOFDResponse [05:19:59]1017 (14) - 77093643461234 [05:19:59]1041 (16) - 0000000000874939 [05:19:59]1040 (4) - 119290 [05:19:59]1012 (4) - 30.07.2024 23:28 [05:19:59]1206 (1) - 0 [05:19:59]OFD Sender: Remove packet 119290 [05:19:59]ProducePacketName [05:19:59]name=ofd_packets/00119290 [05:19:59]NVStorageDeleteData [05:19:59]Write to MH i2c: 01 00 00 89 03 8C [05:19:59]Write i2c OK [05:19:59]MH_I2C_Read... [05:19:59]Read from MH i2c: 01 [05:19:59]MH_I2C_Read... [05:19:59]Read from MH i2c: 01 07 00 [05:19:59]MH_I2C_Read... [05:19:59]Read from MH i2c: 01 07 00 89 03 00 00 00 00 00 D6 0C 75 [05:19:59]RasterBufferAndPrint [05:19:59]line [05:19:59]line [05:19:59]line [05:19:59]line [05:19:59]line [05:19:59]written 0, free lines is 3296 [05:19:59]MH_Cut [05:19:59]Write to MH i2c: D1 01 00 90 03 01 65 [05:19:59]Write i2c OK [05:19:59]MH_I2C_Read... [05:19:59]Read from MH i2c: D1 [05:19:59]MH_I2C_Read... [05:19:59]Read from MH i2c: D1 01 00 [05:19:59]MH_I2C_Read... [05:19:59]Read from MH i2c: D1 01 00 90 03 00 64 [05:19:59]Write to MH i2c: 01 00 00 91 03 94 [05:19:59]Write i2c OK [05:19:59]MH_I2C_Read... [05:19:59]OFD Sender: No OFD packet to send [05:19:59]*** Cut start [05:19:59]*** Partial cut [05:19:59]*** CUTSNS_PIN = 1 [05:20:00]*** CUTSNS_PIN = 0 [05:20:00]*** Brake cut motor [05:20:00]Read from MH i2c: 01 [05:20:00]MH_I2C_Read... [05:20:00]*** Stop cut motor [05:20:00]*** Cut end [05:20:00]Read from MH i2c: 01 07 00 [05:20:00]MH_I2C_Read... [05:20:00]Read from MH i2c: 01 07 00 91 03 00 00 00 00 00 FF 0F A9 [05:20:00]process_action close_receipt done [05:20:00]requested_data is exist [05:20:00]produce_requested_data [05:20:00]requested_item fm.sn is exist - process it [05:20:00]wFMCommunicate request_size=4 [05:20:00]MH_SAM_APDU [05:20:00]CAPDU: 80 11 00 00 [05:20:00]Write to MH i2c: E2 08 00 92 03 80 11 00 00 00 00 00 00 0F [05:20:00]Write i2c OK [05:20:00]MH_I2C_Read... [05:20:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:20:00]Read from MH i2c: E2 [05:20:00]MH_I2C_Read... [05:20:00]Read from MH i2c: E2 17 00 [05:20:00]MH_I2C_Read... [05:20:00]Read from MH i2c: E2 17 00 92 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6A [05:20:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [05:20:00]wFMCommunicate OK [05:20:00]requested_item fd.num is exist - process it [05:20:00]SAM_PROTO_GetFieldsCounters [05:20:00]wFMCommunicate request_size=4 [05:20:00]MH_SAM_APDU [05:20:00]CAPDU: 80 13 00 00 [05:20:00]Write to MH i2c: E2 08 00 93 03 80 13 00 00 00 00 00 00 12 [05:20:00]Write i2c OK [05:20:00]MH_I2C_Read... [05:20:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:20:00]Read from MH i2c: E2 [05:20:00]MH_I2C_Read... [05:20:00]Read from MH i2c: E2 62 00 [05:20:00]MH_I2C_Read... [05:20:00]Read from MH i2c: E2 62 00 93 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FA D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [05:20:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FA D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:20:00]wFMCommunicate OK [05:20:00]SAM_PROTO_GetFieldsCounters done [05:20:00]requested_item shift.num is exist - process it [05:20:00]requested_item shift.opened is exist - process it [05:20:00]req_shift_opened [05:20:00]FM_GetShiftState [05:20:00]SAM_PROTO_GetShiftState [05:20:00]wFMCommunicate request_size=4 [05:20:00]MH_SAM_APDU [05:20:00]CAPDU: 80 13 01 00 [05:20:00]Write to MH i2c: E2 08 00 94 03 80 13 01 00 00 00 00 00 14 [05:20:00]Write i2c OK [05:20:00]MH_I2C_Read... [05:20:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:20:00]Read from MH i2c: E2 [05:20:00]MH_I2C_Read... [05:20:00]Read from MH i2c: E2 0E 00 [05:20:00]MH_I2C_Read... [05:20:00]Read from MH i2c: E2 0E 00 94 03 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 AC [05:20:00]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [05:20:00]wFMCommunicate OK [05:20:00]SAM_PROTO_GetShiftState done [05:20:00]FM_GetShiftState done [05:20:00]req_shift_opened done [05:20:00]requested_item shift.open_date is exist - process it [05:20:00]req_shift_open_date [05:20:00]req_shift_open_date done [05:20:00]produce_requested_data done [05:20:00]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119290,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [05:20:00]process_action_free close_receipt [05:20:00]json_value_free [05:20:00]json_value_free done [05:20:00]process_json_proto returns [05:20:00]Send response to host [05:20:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119290,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [05:20:00]free response buf [05:20:00]execute_script done [05:20:00]execute_script returns [05:20:00]free content buf [05:20:00]Sock 9.Close socket [05:20:00]Sock 9.Thread stoped [05:20:04]OFD Sender: No OFD packet to send [05:20:09]OFD Sender: No OFD packet to send [05:20:14]OFD Sender: No OFD packet to send [05:20:19]OFD Sender: No OFD packet to send [05:20:24]OFD Sender: No OFD packet to send [05:20:29]OFD Sender: No OFD packet to send [05:20:34]OFD Sender: No OFD packet to send [05:20:39]OFD Sender: No OFD packet to send [05:20:44]OFD Sender: No OFD packet to send [05:20:49]OFD Sender: No OFD packet to send [05:20:54]OFD Sender: No OFD packet to send [05:20:59]OFD Sender: No OFD packet to send [05:21:04]OFD Sender: No OFD packet to send [05:21:09]OFD Sender: No OFD packet to send [05:21:14]OFD Sender: No OFD packet to send [05:21:19]OFD Sender: No OFD packet to send [05:21:24]OFD Sender: No OFD packet to send [05:21:29]OFD Sender: No OFD packet to send [05:21:34]OFD Sender: No OFD packet to send [05:21:39]OFD Sender: No OFD packet to send [05:21:44]OFD Sender: No OFD packet to send [05:21:49]OFD Sender: No OFD packet to send [05:21:54]OFD Sender: No OFD packet to send [05:21:59]OFD Sender: No OFD packet to send [05:22:04]OFD Sender: No OFD packet to send [05:22:09]OFD Sender: No OFD packet to send [05:22:14]OFD Sender: No OFD packet to send [05:22:19]OFD Sender: No OFD packet to send [05:22:22]accept exits with 8 [05:22:22]New connection [05:22:22]New thread 3067338084 created [05:22:22]Thread 3067194724 joined [05:22:22]Waiting for new connection... [05:22:22] Sock 8.Parse request [05:22:22]Sock 8.Check first char [05:22:22]Sock 8.First char is OK [05:22:22]request: POST /json_proto HTTP/1.0 [05:22:22]Method: POST [05:22:22]URL: /json_proto [05:22:22]Method is POST - this is cgi request [05:22:22]url: /json_proto [05:22:22]query_string will be loaded in cgi processing [05:22:22]execute_cgi json_proto POST (null) [05:22:22]execute_cgi path=json_proto method=POST [05:22:22]POST find Content-Length [05:22:22]Host: 172.17.45.7:8080 [05:22:22]Content-Length: 677 [05:22:22]Content-Type: application/json [05:22:22] [05:22:22]POST finish read [05:22:22]Found Content-Length = 677 [05:22:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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" ] } } [05:22:22]execute_script... [05:22: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)950217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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" ] } } [05:22:22]POST & json_proto [05:22:22]process_json_proto [05:22:22]json parsed OK: [05:22:22]protocol is kg_v1.0 [05:22:22]action value=close_receipt [05:22:22]process_action close_receipt [05:22:22]cmd_close_receipt [05:22:22]MH_GetDate [05:22:22]Write to MH i2c: F0 00 00 95 03 87 [05:22:22]Write i2c OK [05:22:22]MH_I2C_Read... [05:22:22]Read from MH i2c: F0 [05:22:22]MH_I2C_Read... [05:22:22]Read from MH i2c: F0 09 00 [05:22:22]MH_I2C_Read... [05:22:22]Read from MH i2c: F0 09 00 95 03 00 0F CA A9 66 90 0F 3E 66 BB [05:22:22]GetLastDocTimeStamp 1722403198 [05:22:22]current date 1722403343 [05:22:22]FM_GetShiftState [05:22:22]SAM_PROTO_GetShiftState [05:22:22]wFMCommunicate request_size=4 [05:22:22]MH_SAM_APDU [05:22:22]CAPDU: 80 13 01 00 [05:22:22]Write to MH i2c: E2 08 00 96 03 80 13 01 00 00 00 00 00 16 [05:22:22]Write i2c OK [05:22:22]MH_I2C_Read... [05:22:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:22:23]Read from MH i2c: E2 [05:22:23]MH_I2C_Read... [05:22:23]Read from MH i2c: E2 0E 00 [05:22:23]MH_I2C_Read... [05:22:23]Read from MH i2c: E2 0E 00 96 03 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 AE [05:22:23]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [05:22:23]wFMCommunicate OK [05:22:23]SAM_PROTO_GetShiftState done [05:22:23]FM_GetShiftState done [05:22:23]opened in 1722384637 [05:22:23]opened+sec_in_day 1722471037 [05:22:23]quantity*price = 50036 [05:22:23]sum+1 = 50037 [05:22:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 22 31.07.2024 05:22 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119291 ФПД: 48144283870965 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T052223&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119291&fm=48144283870965&tin=02508201610067®Number=0000000000092660&sum=50000 [05:22:24]StoreToDocumentArchive [05:22:24]shift 436 fd 119291 [05:22:24]save to /storage/0436/doc_00119291 [05:22:24]save last doc name /storage/0436/doc_00119291 to /storage/kkm_last_doc_name [05:22:24]save OK [05:22:24]Clear old archive folders... [05:22:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:22:24]tlvbuf is 00AC9D20 [05:22:24]SAM_PROTO_ClearQueue [05:22:24]wFMCommunicate request_size=4 [05:22:24]MH_SAM_APDU [05:22:24]CAPDU: 80 09 00 00 [05:22:24]Write to MH i2c: E2 08 00 A3 03 80 09 00 00 00 00 00 00 18 [05:22:24]Write i2c OK [05:22:24]MH_I2C_Read... [05:22:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:22:24]Read from MH i2c: E2 [05:22:24]MH_I2C_Read... [05:22:24]Read from MH i2c: E2 03 00 [05:22:24]MH_I2C_Read... [05:22:24]Read from MH i2c: E2 03 00 A3 03 00 90 00 1A [05:22:24]RAPDU: 90 00 [05:22:24]wFMCommunicate OK [05:22:24]SAM_PROTO_ClearQueue done [05:22:24]KKMCreateOFDPacket [05:22:24]OFDProtocolAddRootSTLVToBuf [05:22:24]FM_MakeSignedData [05:22:24]FM_MakeSignedData [05:22:24]SAM_PROTO_SignData [05:22:24]wFMCommunicate request_size=4 [05:22:24]MH_SAM_APDU [05:22:24]CAPDU: 80 0D 01 02 [05:22:24]Write to MH i2c: E2 08 00 A4 03 80 0D 01 02 00 00 00 00 20 [05:22:24]Write i2c OK [05:22:24]MH_I2C_Read... [05:22:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:22:24]Read from MH i2c: E2 [05:22:24]MH_I2C_Read... [05:22:24]Read from MH i2c: E2 03 00 [05:22:24]MH_I2C_Read... [05:22:24]Read from MH i2c: E2 03 00 A4 03 00 90 00 1B [05:22:24]RAPDU: 90 00 [05:22:24]wFMCommunicate OK [05:22:24]wFMCommunicate request_size=255 [05:22:24]MH_SAM_APDU [05:22: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 0F CA A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FB D1 01 00 35 04 06 00 2B [05:22:24]Write to MH i2c: E2 02 01 A5 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 0F CA A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FB D1 01 00 35 04 06 00 2B 00 00 4F [05:22:24]Write i2c OK [05:22:24]MH_I2C_Read... [05:22:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:22:24]Read from MH i2c: E2 [05:22:24]MH_I2C_Read... [05:22:24]Read from MH i2c: E2 03 00 [05:22:24]MH_I2C_Read... [05:22:24]Read from MH i2c: E2 03 00 A5 03 00 90 00 1C [05:22:24]RAPDU: 90 00 [05:22:24]wFMCommunicate OK [05:22:24]wFMCommunicate request_size=10 [05:22:24]MH_SAM_APDU [05:22:24]CAPDU: 80 0D 02 02 05 C9 76 F0 26 F5 [05:22:24]Write to MH i2c: E2 0D 00 A6 03 80 0D 02 02 05 00 C9 76 F0 26 F5 00 00 77 [05:22:24]Write i2c OK [05:22:24]MH_I2C_Read... [05:22:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:22:24]Read from MH i2c: E2 [05:22:24]MH_I2C_Read... [05:22:24]Read from MH i2c: E2 03 00 [05:22:24]MH_I2C_Read... [05:22:24]Read from MH i2c: E2 03 00 A6 03 00 90 00 1D [05:22:24]RAPDU: 90 00 [05:22:24]wFMCommunicate OK [05:22:24]wFMCommunicate request_size=4 [05:22:24]MH_SAM_APDU [05:22:24]CAPDU: 80 0D 03 02 [05:22:24]Write to MH i2c: E2 08 00 A7 03 80 0D 03 02 00 00 00 00 25 [05:22:24]Write i2c OK [05:22:24]MH_I2C_Read... [05:22:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:22:24]Read from MH i2c: E2 [05:22:24]MH_I2C_Read... [05:22:24]Read from MH i2c: E2 0B 00 [05:22:24]MH_I2C_Read... [05:22:24]Read from MH i2c: E2 0B 00 A7 03 00 8A 86 BC 16 92 C5 56 82 90 00 37 [05:22:24]RAPDU: 8A 86 BC 16 92 C5 56 82 90 00 [05:22:24]wFMCommunicate OK [05:22:24]SAM_PROTO_SignData done [05:22:24]FM_MakeSignedData done [05:22:24]CreateOFDProtocolMessage [05:22:24]wFMCommunicate request_size=4 [05:22:24]MH_SAM_APDU [05:22:24]CAPDU: 80 11 00 00 [05:22:24]Write to MH i2c: E2 08 00 A8 03 80 11 00 00 00 00 00 00 25 [05:22:24]Write i2c OK [05:22:24]MH_I2C_Read... [05:22:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:22:24]Read from MH i2c: E2 [05:22:24]MH_I2C_Read... [05:22:24]Read from MH i2c: E2 17 00 [05:22:24]MH_I2C_Read... [05:22:24]Read from MH i2c: E2 17 00 A8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 80 [05:22:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [05:22:24]wFMCommunicate OK [05:22:24]CreateOFDProtocolMessage done [05:22:24]OFDSenderStorePacket 119291 [05:22:24]StoreOFDPacket docnum=119291 [05:22:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4B 5B 07 01 00 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 0F CA A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FB D1 01 00 35 04 06 00 2B C9 76 F0 26 F5 8A 86 BC 16 92 C5 56 82 [05:22:24]CheckFolder [05:22:24]dirname=/storage/ofd_packets [05:22:24]CheckFolder done [05:22:24]ProducePacketName [05:22:24]name=ofd_packets/00119291 [05:22:24]NVStorageSaveData ofd_packets/00119291 [05:22:24]File name is /storage/ofd_packets/00119291 [05:22:24]Write 301 bytes [05:22:24]NVStorageSaveData done [05:22:24]OFDSenderStorePacket done [05:22:24]KKMCreateOFDPacket done [05:22:24]NVStorageSaveData kkm_last_timestamp [05:22:24]File name is /storage/kkm_last_timestamp [05:22:24]Write 4 bytes [05:22:24]NVStorageSaveData done [05:22:24]ExternCall_PrintAddStr [05:22:24]wPrintStart [05:22:24]Write to MH i2c: 01 00 00 A9 03 AC [05:22:24]Write i2c OK [05:22:24]MH_I2C_Read... [05:22:24]Read from MH i2c: 01 [05:22:24]MH_I2C_Read... [05:22:24]Read from MH i2c: 01 07 00 [05:22:24]MH_I2C_Read... [05:22:24]Read from MH i2c: 01 07 00 A9 03 00 00 00 00 00 FF 0F C1 [05:22:24]RasterBufferAndPrint [05:22:24]line Счет N : (1)950217 [05:22:24]line ИНН: 02508201610067 [05:22:24]line Контрольно-Кассовый Чек [05:22:24]line ПРОДАЖА [05:22:24]line ТРК (МРК, ГНК) : 31 [05:22:24]line Товар: 2710124130 [05:22:24]line Аи-92-К-4 [05:22:24]line 7.380 * 67.80 [05:22:24]line = 500.36 [05:22:24]line НДС 12% НСП 1% [05:22:24]line > о реализуемом товаре [05:22:24]line ОКРУГЛЕНИЕ: -0.36 [05:22:24]line ИТОГО: 500.00 [05:22:24]line Внесено: 500.00 [05:22:24]line СДАЧА: 0.00 [05:22:24]line НСП 1% : 4.43 [05:22:24]line НДС 12% : 53.14 [05:22:24]line Наличными: 500.00 [05:22:24]line Безнал.: 0.00 [05:22:24]line Место: АЗС № 134 "Партнер Нефть" [05:22:24]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [05:22:24]line СНО: Общий режим [05:22:24]line Чек 22 31.07.2024 05:22 [05:22:24]line Смена: 436 ФФД: 1.0 [05:22:24]line ЗНМ: 0300000044 [05:22:24]line РНМ: 0000000000092660 [05:22:24]line Версия ККМ: 001 [05:22:24]line ФМ: 0000000000874939 [05:22:24]line ФД: 119291 [05:22:24]line ФПД: 48144283870965 [05:22:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T052223&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119291&fm=48144283870965&tin=02508201610067®Number=0000000000092660&sum=50000 [05:22:25]OFD Sender: Processing packet 119291 [packets to send 86, broken 85] [05:22:25]ProducePacketName [05:22:25]name=ofd_packets/00119291 [05:22:25]OFD Sender: To server: pG, [05:22:25]CommunicateWithHost lk.salyk.kg:30040 [05:22:25]ConnectInit lk.salyk.kg [05:22:25]written 0, free lines is 4095 [05:22:25]Connected sock=10 [05:22:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4B 5B 07 01 00 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 0F CA A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FB D1 01 00 35 04 06 00 2B C9 76 F0 26 F5 8A 86 BC 16 92 C5 56 82 [05:22:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 4D 98 47 00 23 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 39 33 39 10 04 04 00 FB D1 01 00 F4 03 04 00 99 77 A9 66 B6 04 01 00 00 37 C0 14 A7 FF C6 A5 71 [05:22:25]CommunicateWithHost err = 0 [05:22:25]CheckOFDResponse [05:22:25]1017 (14) - 77093643461234 [05:22:25]1041 (16) - 0000000000874939 [05:22:25]1040 (4) - 119291 [05:22:25]1012 (4) - 30.07.2024 23:30 [05:22:25]1206 (1) - 0 [05:22:25]OFD Sender: Remove packet 119291 [05:22:25]ProducePacketName [05:22:25]name=ofd_packets/00119291 [05:22:25]NVStorageDeleteData [05:22:25]Write to MH i2c: 01 00 00 D3 03 D6 [05:22:25]Write i2c OK [05:22:25]MH_I2C_Read... [05:22:25]Read from MH i2c: 01 [05:22:25]MH_I2C_Read... [05:22:25]Read from MH i2c: 01 07 00 [05:22:25]MH_I2C_Read... [05:22:25]Read from MH i2c: 01 07 00 D3 03 00 00 00 00 00 D2 0C BB [05:22:25]RasterBufferAndPrint [05:22:25]line [05:22:25]line [05:22:25]line [05:22:25]line [05:22:25]line [05:22:25]written 0, free lines is 3288 [05:22:25]MH_Cut [05:22:25]Write to MH i2c: D1 01 00 DA 03 01 AF [05:22:25]Write i2c OK [05:22:25]MH_I2C_Read... [05:22:25]Read from MH i2c: D1 [05:22:25]MH_I2C_Read... [05:22:25]Read from MH i2c: D1 01 00 [05:22:25]MH_I2C_Read... [05:22:25]Read from MH i2c: D1 01 00 DA 03 00 AE [05:22:25]Write to MH i2c: 01 00 00 DB 03 DE [05:22:25]Write i2c OK [05:22:25]MH_I2C_Read... [05:22:25]OFD Sender: No OFD packet to send [05:22:26]*** Cut start [05:22:26]*** Partial cut [05:22:26]*** CUTSNS_PIN = 1 [05:22:26]*** CUTSNS_PIN = 0 [05:22:26]*** Brake cut motor [05:22:26]Read from MH i2c: 01 [05:22:26]MH_I2C_Read... [05:22:26]*** Stop cut motor [05:22:26]*** Cut end [05:22:26]Read from MH i2c: 01 07 00 [05:22:26]MH_I2C_Read... [05:22:26]Read from MH i2c: 01 07 00 DB 03 00 00 00 00 00 FF 0F F3 [05:22:26]process_action close_receipt done [05:22:26]requested_data is exist [05:22:26]produce_requested_data [05:22:26]requested_item fm.sn is exist - process it [05:22:26]wFMCommunicate request_size=4 [05:22:26]MH_SAM_APDU [05:22:26]CAPDU: 80 11 00 00 [05:22:26]Write to MH i2c: E2 08 00 DC 03 80 11 00 00 00 00 00 00 59 [05:22:26]Write i2c OK [05:22:26]MH_I2C_Read... [05:22:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:22:26]Read from MH i2c: E2 [05:22:26]MH_I2C_Read... [05:22:26]Read from MH i2c: E2 17 00 [05:22:26]MH_I2C_Read... [05:22:26]Read from MH i2c: E2 17 00 DC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B4 [05:22:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [05:22:26]wFMCommunicate OK [05:22:26]requested_item fd.num is exist - process it [05:22:26]SAM_PROTO_GetFieldsCounters [05:22:26]wFMCommunicate request_size=4 [05:22:26]MH_SAM_APDU [05:22:26]CAPDU: 80 13 00 00 [05:22:26]Write to MH i2c: E2 08 00 DD 03 80 13 00 00 00 00 00 00 5C [05:22:26]Write i2c OK [05:22:26]MH_I2C_Read... [05:22:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:22:27]Read from MH i2c: E2 [05:22:27]MH_I2C_Read... [05:22:27]Read from MH i2c: E2 62 00 [05:22:27]MH_I2C_Read... [05:22:27]Read from MH i2c: E2 62 00 DD 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FB D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [05:22: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FB D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:22:27]wFMCommunicate OK [05:22:27]SAM_PROTO_GetFieldsCounters done [05:22:27]requested_item shift.num is exist - process it [05:22:27]requested_item shift.opened is exist - process it [05:22:27]req_shift_opened [05:22:27]FM_GetShiftState [05:22:27]SAM_PROTO_GetShiftState [05:22:27]wFMCommunicate request_size=4 [05:22:27]MH_SAM_APDU [05:22:27]CAPDU: 80 13 01 00 [05:22:27]Write to MH i2c: E2 08 00 DE 03 80 13 01 00 00 00 00 00 5E [05:22:27]Write i2c OK [05:22:27]MH_I2C_Read... [05:22:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:22:27]Read from MH i2c: E2 [05:22:27]MH_I2C_Read... [05:22:27]Read from MH i2c: E2 0E 00 [05:22:27]MH_I2C_Read... [05:22:27]Read from MH i2c: E2 0E 00 DE 03 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 F6 [05:22:27]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [05:22:27]wFMCommunicate OK [05:22:27]SAM_PROTO_GetShiftState done [05:22:27]FM_GetShiftState done [05:22:27]req_shift_opened done [05:22:27]requested_item shift.open_date is exist - process it [05:22:27]req_shift_open_date [05:22:27]req_shift_open_date done [05:22:27]produce_requested_data done [05:22:27]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119291,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [05:22:27]process_action_free close_receipt [05:22:27]json_value_free [05:22:27]json_value_free done [05:22:27]process_json_proto returns [05:22:27]Send response to host [05:22:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119291,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [05:22:27]free response buf [05:22:27]execute_script done [05:22:27]execute_script returns [05:22:27]free content buf [05:22:27]Sock 8.Close socket [05:22:27]Sock 8.Thread stoped [05:22:30]OFD Sender: No OFD packet to send [05:22:35]OFD Sender: No OFD packet to send [05:22:40]OFD Sender: No OFD packet to send [05:22:45]OFD Sender: No OFD packet to send [05:22:50]OFD Sender: No OFD packet to send [05:22:55]OFD Sender: No OFD packet to send [05:23:00]OFD Sender: No OFD packet to send [05:23:05]OFD Sender: No OFD packet to send [05:23:10]OFD Sender: No OFD packet to send [05:23:15]OFD Sender: No OFD packet to send [05:23:20]OFD Sender: No OFD packet to send [05:23:25]OFD Sender: No OFD packet to send [05:23:30]OFD Sender: No OFD packet to send [05:23:35]OFD Sender: No OFD packet to send [05:23:40]OFD Sender: No OFD packet to send [05:23:45]OFD Sender: No OFD packet to send [05:23:50]OFD Sender: No OFD packet to send [05:23:55]OFD Sender: No OFD packet to send [05:24:00]OFD Sender: No OFD packet to send [05:24:05]OFD Sender: No OFD packet to send [05:24:10]OFD Sender: No OFD packet to send [05:24:15]OFD Sender: No OFD packet to send [05:24:20]OFD Sender: No OFD packet to send [05:24:25]OFD Sender: No OFD packet to send [05:24:30]OFD Sender: No OFD packet to send [05:24:35]OFD Sender: No OFD packet to send [05:24:40]OFD Sender: No OFD packet to send [05:24:45]OFD Sender: No OFD packet to send [05:24:50]OFD Sender: No OFD packet to send [05:24:55]OFD Sender: No OFD packet to send [05:25:00]OFD Sender: No OFD packet to send [05:25:05]OFD Sender: No OFD packet to send [05:25:10]OFD Sender: No OFD packet to send [05:25:16]OFD Sender: No OFD packet to send [05:25:21]OFD Sender: No OFD packet to send [05:25:26]OFD Sender: No OFD packet to send [05:25:31]OFD Sender: No OFD packet to send [05:25:36]OFD Sender: No OFD packet to send [05:25:41]OFD Sender: No OFD packet to send [05:25:46]OFD Sender: No OFD packet to send [05:25:51]OFD Sender: No OFD packet to send [05:25:56]OFD Sender: No OFD packet to send [05:26:01]OFD Sender: No OFD packet to send [05:26:06]OFD Sender: No OFD packet to send [05:26:11]OFD Sender: No OFD packet to send [05:26:16]OFD Sender: No OFD packet to send [05:26:21]OFD Sender: No OFD packet to send [05:26:26]OFD Sender: No OFD packet to send [05:26:31]OFD Sender: No OFD packet to send [05:26:36]OFD Sender: No OFD packet to send [05:26:41]OFD Sender: No OFD packet to send [05:26:46]OFD Sender: No OFD packet to send [05:26:51]OFD Sender: No OFD packet to send [05:26:56]OFD Sender: No OFD packet to send [05:27:01]OFD Sender: No OFD packet to send [05:27:06]OFD Sender: No OFD packet to send [05:27:11]OFD Sender: No OFD packet to send [05:27:16]OFD Sender: No OFD packet to send [05:27:21]OFD Sender: No OFD packet to send [05:27:26]OFD Sender: No OFD packet to send [05:27:31]OFD Sender: No OFD packet to send [05:27:36]OFD Sender: No OFD packet to send [05:27:41]OFD Sender: No OFD packet to send [05:27:46]OFD Sender: No OFD packet to send [05:27:51]OFD Sender: No OFD packet to send [05:27:56]OFD Sender: No OFD packet to send [05:28:01]OFD Sender: No OFD packet to send [05:28:06]OFD Sender: No OFD packet to send [05:28:11]OFD Sender: No OFD packet to send [05:28:16]OFD Sender: No OFD packet to send [05:28:21]OFD Sender: No OFD packet to send [05:28:26]OFD Sender: No OFD packet to send [05:28:27]accept exits with 9 [05:28:27]New connection [05:28:27]New thread 3067194724 created [05:28:27]Thread 3067338084 joined [05:28:27]Waiting for new connection... [05:28:27] Sock 9.Parse request [05:28:27]Sock 9.Check first char [05:28:27]Sock 9.First char is OK [05:28:27]request: POST /json_proto HTTP/1.0 [05:28:27]Method: POST [05:28:27]URL: /json_proto [05:28:27]Method is POST - this is cgi request [05:28:27]url: /json_proto [05:28:27]query_string will be loaded in cgi processing [05:28:27]execute_cgi json_proto POST (null) [05:28:27]execute_cgi path=json_proto method=POST [05:28:27]POST find Content-Length [05:28:27]Host: 172.17.45.7:8080 [05:28:27]Content-Length: 674 [05:28:27]Content-Type: application/json [05:28:27] [05:28:27]POST finish read [05:28:27]Found Content-Length = 674 [05:28:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:28:27]execute_script... [05:28: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)950218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:28:27]POST & json_proto [05:28:27]process_json_proto [05:28:27]json parsed OK: [05:28:27]protocol is kg_v1.0 [05:28:27]action value=close_receipt [05:28:27]process_action close_receipt [05:28:27]cmd_close_receipt [05:28:27]MH_GetDate [05:28:27]Write to MH i2c: F0 00 00 DF 03 D1 [05:28:27]Write i2c OK [05:28:27]MH_I2C_Read... [05:28:27]Read from MH i2c: F0 [05:28:27]MH_I2C_Read... [05:28:27]Read from MH i2c: F0 09 00 [05:28:27]MH_I2C_Read... [05:28:27]Read from MH i2c: F0 09 00 DF 03 00 7C CB A9 66 90 0F 3E 66 73 [05:28:27]GetLastDocTimeStamp 1722403343 [05:28:27]current date 1722403708 [05:28:27]FM_GetShiftState [05:28:27]SAM_PROTO_GetShiftState [05:28:27]wFMCommunicate request_size=4 [05:28:27]MH_SAM_APDU [05:28:27]CAPDU: 80 13 01 00 [05:28:27]Write to MH i2c: E2 08 00 E0 03 80 13 01 00 00 00 00 00 60 [05:28:27]Write i2c OK [05:28:27]MH_I2C_Read... [05:28:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:28:27]Read from MH i2c: E2 [05:28:27]MH_I2C_Read... [05:28:27]Read from MH i2c: E2 0E 00 [05:28:27]MH_I2C_Read... [05:28:27]Read from MH i2c: E2 0E 00 E0 03 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 F8 [05:28:27]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [05:28:27]wFMCommunicate OK [05:28:27]SAM_PROTO_GetShiftState done [05:28:27]FM_GetShiftState done [05:28:27]opened in 1722384637 [05:28:27]opened+sec_in_day 1722471037 [05:28:27]quantity*price = 40005 [05:28:27]sum+1 = 40006 [05:28:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 23 31.07.2024 05:28 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119292 ФПД: 239742874066988 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T052828&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119292&fm=239742874066988&tin=02508201610067®Number=0000000000092660&sum=40000 [05:28:28]StoreToDocumentArchive [05:28:28]shift 436 fd 119292 [05:28:28]save to /storage/0436/doc_00119292 [05:28:28]save last doc name /storage/0436/doc_00119292 to /storage/kkm_last_doc_name [05:28:28]save OK [05:28:28]Clear old archive folders... [05:28:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:28:28]tlvbuf is 00AC56B0 [05:28:28]SAM_PROTO_ClearQueue [05:28:28]wFMCommunicate request_size=4 [05:28:28]MH_SAM_APDU [05:28:28]CAPDU: 80 09 00 00 [05:28:28]Write to MH i2c: E2 08 00 ED 03 80 09 00 00 00 00 00 00 62 [05:28:28]Write i2c OK [05:28:28]MH_I2C_Read... [05:28:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:28:28]Read from MH i2c: E2 [05:28:28]MH_I2C_Read... [05:28:28]Read from MH i2c: E2 03 00 [05:28:28]MH_I2C_Read... [05:28:28]Read from MH i2c: E2 03 00 ED 03 00 90 00 64 [05:28:28]RAPDU: 90 00 [05:28:28]wFMCommunicate OK [05:28:28]SAM_PROTO_ClearQueue done [05:28:28]KKMCreateOFDPacket [05:28:28]OFDProtocolAddRootSTLVToBuf [05:28:28]FM_MakeSignedData [05:28:28]FM_MakeSignedData [05:28:28]SAM_PROTO_SignData [05:28:28]wFMCommunicate request_size=4 [05:28:28]MH_SAM_APDU [05:28:28]CAPDU: 80 0D 01 02 [05:28:28]Write to MH i2c: E2 08 00 EE 03 80 0D 01 02 00 00 00 00 6A [05:28:28]Write i2c OK [05:28:28]MH_I2C_Read... [05:28:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:28:28]Read from MH i2c: E2 [05:28:28]MH_I2C_Read... [05:28:28]Read from MH i2c: E2 03 00 [05:28:28]MH_I2C_Read... [05:28:28]Read from MH i2c: E2 03 00 EE 03 00 90 00 65 [05:28:28]RAPDU: 90 00 [05:28:28]wFMCommunicate OK [05:28:28]wFMCommunicate request_size=255 [05:28:28]MH_SAM_APDU [05:28:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 7C CB A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FC D1 01 00 35 04 06 00 DA 0B 7C D8 [05:28:28]Write to MH i2c: E2 02 01 EF 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 7C CB A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FC D1 01 00 35 04 06 00 DA 0B 7C D8 00 00 16 [05:28:28]Write i2c OK [05:28:28]MH_I2C_Read... [05:28:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:28:28]Read from MH i2c: E2 [05:28:28]MH_I2C_Read... [05:28:28]Read from MH i2c: E2 03 00 [05:28:28]MH_I2C_Read... [05:28:28]Read from MH i2c: E2 03 00 EF 03 00 90 00 66 [05:28:28]RAPDU: 90 00 [05:28:28]wFMCommunicate OK [05:28:28]wFMCommunicate request_size=7 [05:28:28]MH_SAM_APDU [05:28:28]CAPDU: 80 0D 02 02 02 A0 2C [05:28:28]Write to MH i2c: E2 0A 00 F0 03 80 0D 02 02 02 00 A0 2C 00 00 3D [05:28:28]Write i2c OK [05:28:28]MH_I2C_Read... [05:28:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:28:28]Read from MH i2c: E2 [05:28:28]MH_I2C_Read... [05:28:28]Read from MH i2c: E2 03 00 [05:28:28]MH_I2C_Read... [05:28:28]Read from MH i2c: E2 03 00 F0 03 00 90 00 67 [05:28:28]RAPDU: 90 00 [05:28:28]wFMCommunicate OK [05:28:28]wFMCommunicate request_size=4 [05:28:28]MH_SAM_APDU [05:28:28]CAPDU: 80 0D 03 02 [05:28:28]Write to MH i2c: E2 08 00 F1 03 80 0D 03 02 00 00 00 00 6F [05:28:28]Write i2c OK [05:28:28]MH_I2C_Read... [05:28:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:28:28]Read from MH i2c: E2 [05:28:28]MH_I2C_Read... [05:28:28]Read from MH i2c: E2 0B 00 [05:28:28]MH_I2C_Read... [05:28:28]Read from MH i2c: E2 0B 00 F1 03 00 A1 ED A7 61 2E 26 79 4C 90 00 1F [05:28:28]RAPDU: A1 ED A7 61 2E 26 79 4C 90 00 [05:28:28]wFMCommunicate OK [05:28:28]SAM_PROTO_SignData done [05:28:28]FM_MakeSignedData done [05:28:28]CreateOFDProtocolMessage [05:28:28]wFMCommunicate request_size=4 [05:28:28]MH_SAM_APDU [05:28:28]CAPDU: 80 11 00 00 [05:28:28]Write to MH i2c: E2 08 00 F2 03 80 11 00 00 00 00 00 00 6F [05:28:28]Write i2c OK [05:28:28]MH_I2C_Read... [05:28:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:28:28]Read from MH i2c: E2 [05:28:28]MH_I2C_Read... [05:28:28]Read from MH i2c: E2 17 00 [05:28:28]MH_I2C_Read... [05:28:28]Read from MH i2c: E2 17 00 F2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CA [05:28:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [05:28:28]wFMCommunicate OK [05:28:28]CreateOFDProtocolMessage done [05:28:28]OFDSenderStorePacket 119292 [05:28:28]StoreOFDPacket docnum=119292 [05:28:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 EE D9 04 01 6C 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 7C CB A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FC D1 01 00 35 04 06 00 DA 0B 7C D8 A0 2C A1 ED A7 61 2E 26 79 4C [05:28:28]CheckFolder [05:28:28]dirname=/storage/ofd_packets [05:28:28]CheckFolder done [05:28:28]ProducePacketName [05:28:28]name=ofd_packets/00119292 [05:28:28]NVStorageSaveData ofd_packets/00119292 [05:28:28]File name is /storage/ofd_packets/00119292 [05:28:28]Write 298 bytes [05:28:28]NVStorageSaveData done [05:28:28]OFDSenderStorePacket done [05:28:28]KKMCreateOFDPacket done [05:28:28]NVStorageSaveData kkm_last_timestamp [05:28:28]File name is /storage/kkm_last_timestamp [05:28:28]Write 4 bytes [05:28:28]NVStorageSaveData done [05:28:28]ExternCall_PrintAddStr [05:28:28]wPrintStart [05:28:28]Write to MH i2c: 01 00 00 F3 03 F6 [05:28:28]Write i2c OK [05:28:28]MH_I2C_Read... [05:28:28]Read from MH i2c: 01 [05:28:28]MH_I2C_Read... [05:28:28]Read from MH i2c: 01 07 00 [05:28:28]MH_I2C_Read... [05:28:28]Read from MH i2c: 01 07 00 F3 03 00 00 00 00 00 FF 0F 0B [05:28:28]RasterBufferAndPrint [05:28:28]line Счет N : (1)950218 [05:28:28]line ИНН: 02508201610067 [05:28:28]line Контрольно-Кассовый Чек [05:28:28]line ПРОДАЖА [05:28:28]line ТРК (МРК, ГНК) : 21 [05:28:28]line Товар: 2710194800 [05:28:28]line ДТ-К-5 [05:28:28]line 5.250 * 76.20 [05:28:28]line = 400.05 [05:28:28]line НДС 12% НСП 1% [05:28:28]line > о реализуемом товаре [05:28:28]line ОКРУГЛЕНИЕ: -0.05 [05:28:28]line ИТОГО: 400.00 [05:28:28]line Внесено: 400.00 [05:28:28]line СДАЧА: 0.00 [05:28:28]line НСП 1% : 3.54 [05:28:28]line НДС 12% : 42.48 [05:28:28]line Наличными: 400.00 [05:28:28]line Безнал.: 0.00 [05:28:28]line Место: АЗС № 134 "Партнер Нефть" [05:28:28]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [05:28:28]line СНО: Общий режим [05:28:28]line Чек 23 31.07.2024 05:28 [05:28:28]line Смена: 436 ФФД: 1.0 [05:28:28]line ЗНМ: 0300000044 [05:28:28]line РНМ: 0000000000092660 [05:28:28]line Версия ККМ: 001 [05:28:28]line ФМ: 0000000000874939 [05:28:28]line ФД: 119292 [05:28:28]line ФПД: 239742874066988 [05:28:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T052828&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119292&fm=239742874066988&tin=02508201610067®Number=0000000000092660&sum=40000 [05:28:29]OFD Sender: Processing packet 119292 [packets to send 86, broken 85] [05:28:29]ProducePacketName [05:28:29]name=ofd_packets/00119292 [05:28:29]OFD Sender: To server: pG, [05:28:29]CommunicateWithHost lk.salyk.kg:30040 [05:28:29]ConnectInit lk.salyk.kg [05:28:29]written 0, free lines is 4095 [05:28:29]Connected sock=8 [05:28: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 39 33 39 0C 01 00 00 EE D9 04 01 6C 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 7C CB A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FC D1 01 00 35 04 06 00 DA 0B 7C D8 A0 2C A1 ED A7 61 2E 26 79 4C [05:28:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 6D 9C 47 00 E6 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FC D1 01 00 F4 03 04 00 05 79 A9 66 B6 04 01 00 00 53 B1 EB C6 B9 88 3F 78 [05:28:29]CommunicateWithHost err = 0 [05:28:29]CheckOFDResponse [05:28:29]1017 (14) - 77093643461234 [05:28:29]1041 (16) - 0000000000874939 [05:28:29]1040 (4) - 119292 [05:28:29]1012 (4) - 30.07.2024 23:36 [05:28:29]1206 (1) - 0 [05:28:29]OFD Sender: Remove packet 119292 [05:28:29]ProducePacketName [05:28:29]name=ofd_packets/00119292 [05:28:29]NVStorageDeleteData [05:28:29]Write to MH i2c: 01 00 00 1D 04 21 [05:28:29]Write i2c OK [05:28:29]MH_I2C_Read... [05:28:29]Read from MH i2c: 01 [05:28:29]MH_I2C_Read... [05:28:29]Read from MH i2c: 01 07 00 [05:28:29]MH_I2C_Read... [05:28:29]Read from MH i2c: 01 07 00 1D 04 00 00 00 00 00 CA 0C FE [05:28:29]RasterBufferAndPrint [05:28:29]line [05:28:29]line [05:28:29]line [05:28:29]line [05:28:29]line [05:28:29]written 0, free lines is 3280 [05:28:29]MH_Cut [05:28:29]Write to MH i2c: D1 01 00 24 04 01 FA [05:28:29]Write i2c OK [05:28:29]MH_I2C_Read... [05:28:29]Read from MH i2c: D1 [05:28:29]MH_I2C_Read... [05:28:29]Read from MH i2c: D1 01 00 [05:28:29]MH_I2C_Read... [05:28:29]Read from MH i2c: D1 01 00 24 04 00 F9 [05:28:29]Write to MH i2c: 01 00 00 25 04 29 [05:28:29]Write i2c OK [05:28:29]MH_I2C_Read... [05:28:29]OFD Sender: No OFD packet to send [05:28:30]*** Cut start [05:28:30]*** Partial cut [05:28:30]*** CUTSNS_PIN = 1 [05:28:30]*** CUTSNS_PIN = 0 [05:28:30]*** Brake cut motor [05:28:30]Read from MH i2c: 01 [05:28:30]MH_I2C_Read... [05:28:30]*** Stop cut motor [05:28:30]*** Cut end [05:28:30]Read from MH i2c: 01 07 00 [05:28:30]MH_I2C_Read... [05:28:30]Read from MH i2c: 01 07 00 25 04 00 00 00 00 00 FF 0F 3E [05:28:30]process_action close_receipt done [05:28:30]requested_data is exist [05:28:30]produce_requested_data [05:28:30]requested_item fm.sn is exist - process it [05:28:30]wFMCommunicate request_size=4 [05:28:30]MH_SAM_APDU [05:28:30]CAPDU: 80 11 00 00 [05:28:30]Write to MH i2c: E2 08 00 26 04 80 11 00 00 00 00 00 00 A4 [05:28:30]Write i2c OK [05:28:30]MH_I2C_Read... [05:28:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:28:30]Read from MH i2c: E2 [05:28:30]MH_I2C_Read... [05:28:30]Read from MH i2c: E2 17 00 [05:28:30]MH_I2C_Read... [05:28:30]Read from MH i2c: E2 17 00 26 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FF [05:28:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [05:28:30]wFMCommunicate OK [05:28:30]requested_item fd.num is exist - process it [05:28:30]SAM_PROTO_GetFieldsCounters [05:28:30]wFMCommunicate request_size=4 [05:28:30]MH_SAM_APDU [05:28:31]CAPDU: 80 13 00 00 [05:28:31]Write to MH i2c: E2 08 00 27 04 80 13 00 00 00 00 00 00 A7 [05:28:31]Write i2c OK [05:28:31]MH_I2C_Read... [05:28:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:28:31]Read from MH i2c: E2 [05:28:31]MH_I2C_Read... [05:28:31]Read from MH i2c: E2 62 00 [05:28:31]MH_I2C_Read... [05:28:31]Read from MH i2c: E2 62 00 27 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FC D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [05:28: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FC D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:28:31]wFMCommunicate OK [05:28:31]SAM_PROTO_GetFieldsCounters done [05:28:31]requested_item shift.num is exist - process it [05:28:31]requested_item shift.opened is exist - process it [05:28:31]req_shift_opened [05:28:31]FM_GetShiftState [05:28:31]SAM_PROTO_GetShiftState [05:28:31]wFMCommunicate request_size=4 [05:28:31]MH_SAM_APDU [05:28:31]CAPDU: 80 13 01 00 [05:28:31]Write to MH i2c: E2 08 00 28 04 80 13 01 00 00 00 00 00 A9 [05:28:31]Write i2c OK [05:28:31]MH_I2C_Read... [05:28:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:28:31]Read from MH i2c: E2 [05:28:31]MH_I2C_Read... [05:28:31]Read from MH i2c: E2 0E 00 [05:28:31]MH_I2C_Read... [05:28:31]Read from MH i2c: E2 0E 00 28 04 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 41 [05:28:31]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [05:28:31]wFMCommunicate OK [05:28:31]SAM_PROTO_GetShiftState done [05:28:31]FM_GetShiftState done [05:28:31]req_shift_opened done [05:28:31]requested_item shift.open_date is exist - process it [05:28:31]req_shift_open_date [05:28:31]req_shift_open_date done [05:28:31]produce_requested_data done [05:28:31]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119292,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [05:28:31]process_action_free close_receipt [05:28:31]json_value_free [05:28:31]json_value_free done [05:28:31]process_json_proto returns [05:28:31]Send response to host [05:28:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119292,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [05:28:31]free response buf [05:28:31]execute_script done [05:28:31]execute_script returns [05:28:31]free content buf [05:28:31]Sock 9.Close socket [05:28:31]Sock 9.Thread stoped [05:28:34]OFD Sender: No OFD packet to send [05:28:39]OFD Sender: No OFD packet to send [05:28:44]OFD Sender: No OFD packet to send [05:28:49]OFD Sender: No OFD packet to send [05:28:54]OFD Sender: No OFD packet to send [05:28:59]OFD Sender: No OFD packet to send [05:29:04]OFD Sender: No OFD packet to send [05:29:09]OFD Sender: No OFD packet to send [05:29:14]OFD Sender: No OFD packet to send [05:29:19]OFD Sender: No OFD packet to send [05:29:24]OFD Sender: No OFD packet to send [05:29:29]OFD Sender: No OFD packet to send [05:29:34]OFD Sender: No OFD packet to send [05:29:39]OFD Sender: No OFD packet to send [05:29:44]OFD Sender: No OFD packet to send [05:29:50]OFD Sender: No OFD packet to send [05:29:55]OFD Sender: No OFD packet to send [05:30:00]OFD Sender: No OFD packet to send [05:30:05]OFD Sender: No OFD packet to send [05:30:10]OFD Sender: No OFD packet to send [05:30:15]OFD Sender: No OFD packet to send [05:30:20]OFD Sender: No OFD packet to send [05:30:25]OFD Sender: No OFD packet to send [05:30:30]OFD Sender: No OFD packet to send [05:30:35]OFD Sender: No OFD packet to send [05:30:40]OFD Sender: No OFD packet to send [05:30:45]OFD Sender: No OFD packet to send [05:30:50]OFD Sender: No OFD packet to send [05:30:55]OFD Sender: No OFD packet to send [05:31:00]OFD Sender: No OFD packet to send [05:31:05]OFD Sender: No OFD packet to send [05:31:10]OFD Sender: No OFD packet to send [05:31:15]OFD Sender: No OFD packet to send [05:31:20]OFD Sender: No OFD packet to send [05:31:25]OFD Sender: No OFD packet to send [05:31:30]OFD Sender: No OFD packet to send [05:31:35]OFD Sender: No OFD packet to send [05:31:40]OFD Sender: No OFD packet to send [05:31:45]OFD Sender: No OFD packet to send [05:31:50]OFD Sender: No OFD packet to send [05:31:55]OFD Sender: No OFD packet to send [05:32:00]OFD Sender: No OFD packet to send [05:32:05]OFD Sender: No OFD packet to send [05:32:10]OFD Sender: No OFD packet to send [05:32:15]OFD Sender: No OFD packet to send [05:32:20]OFD Sender: No OFD packet to send [05:32:25]OFD Sender: No OFD packet to send [05:32:30]OFD Sender: No OFD packet to send [05:32:35]OFD Sender: No OFD packet to send [05:32:40]OFD Sender: No OFD packet to send [05:32:45]OFD Sender: No OFD packet to send [05:32:50]OFD Sender: No OFD packet to send [05:32:55]OFD Sender: No OFD packet to send [05:33:00]OFD Sender: No OFD packet to send [05:33:05]OFD Sender: No OFD packet to send [05:33:10]OFD Sender: No OFD packet to send [05:33:15]OFD Sender: No OFD packet to send [05:33:20]OFD Sender: No OFD packet to send [05:33:25]OFD Sender: No OFD packet to send [05:33:30]OFD Sender: No OFD packet to send [05:33:35]OFD Sender: No OFD packet to send [05:33:40]OFD Sender: No OFD packet to send [05:33:45]OFD Sender: No OFD packet to send [05:33:50]OFD Sender: No OFD packet to send [05:33:55]OFD Sender: No OFD packet to send [05:34:00]OFD Sender: No OFD packet to send [05:34:05]OFD Sender: No OFD packet to send [05:34:10]OFD Sender: No OFD packet to send [05:34:15]OFD Sender: No OFD packet to send [05:34:20]OFD Sender: No OFD packet to send [05:34:25]OFD Sender: No OFD packet to send [05:34:30]OFD Sender: No OFD packet to send [05:34:35]OFD Sender: No OFD packet to send [05:34:40]OFD Sender: No OFD packet to send [05:34:45]OFD Sender: No OFD packet to send [05:34:50]OFD Sender: No OFD packet to send [05:34:55]OFD Sender: No OFD packet to send [05:35:00]OFD Sender: No OFD packet to send [05:35:05]OFD Sender: No OFD packet to send [05:35:10]OFD Sender: No OFD packet to send [05:35:15]OFD Sender: No OFD packet to send [05:35:20]OFD Sender: No OFD packet to send [05:35:25]OFD Sender: No OFD packet to send [05:35:30]OFD Sender: No OFD packet to send [05:35:35]OFD Sender: No OFD packet to send [05:35:40]OFD Sender: No OFD packet to send [05:35:40]accept exits with 10 [05:35:40]New connection [05:35:40]New thread 3067338084 created [05:35:40]Thread 3067194724 joined [05:35:40]Waiting for new connection... [05:35:40] Sock 10.Parse request [05:35:40]Sock 10.Check first char [05:35:40]Sock 10.First char is OK [05:35:40]request: POST /json_proto HTTP/1.0 [05:35:40]Method: POST [05:35:40]URL: /json_proto [05:35:40]Method is POST - this is cgi request [05:35:40]url: /json_proto [05:35:40]query_string will be loaded in cgi processing [05:35:40]execute_cgi json_proto POST (null) [05:35:40]execute_cgi path=json_proto method=POST [05:35:40]POST find Content-Length [05:35:40]Host: 172.17.45.7:8080 [05:35:40]Content-Length: 677 [05:35:40]Content-Type: application/json [05:35:40] [05:35:40]POST finish read [05:35:40]Found Content-Length = 677 [05:35:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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" ] } } [05:35:40]execute_script... [05:35: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)950219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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" ] } } [05:35:40]POST & json_proto [05:35:40]process_json_proto [05:35:40]json parsed OK: [05:35:40]protocol is kg_v1.0 [05:35:40]action value=close_receipt [05:35:40]process_action close_receipt [05:35:40]cmd_close_receipt [05:35:40]MH_GetDate [05:35:40]Write to MH i2c: F0 00 00 29 04 1C [05:35:40]Write i2c OK [05:35:40]MH_I2C_Read... [05:35:40]Read from MH i2c: F0 [05:35:40]MH_I2C_Read... [05:35:40]Read from MH i2c: F0 09 00 [05:35:40]MH_I2C_Read... [05:35:40]Read from MH i2c: F0 09 00 29 04 00 2D CD A9 66 90 0F 3E 66 71 [05:35:40]GetLastDocTimeStamp 1722403708 [05:35:40]current date 1722404141 [05:35:40]FM_GetShiftState [05:35:40]SAM_PROTO_GetShiftState [05:35:40]wFMCommunicate request_size=4 [05:35:40]MH_SAM_APDU [05:35:40]CAPDU: 80 13 01 00 [05:35:40]Write to MH i2c: E2 08 00 2A 04 80 13 01 00 00 00 00 00 AB [05:35:40]Write i2c OK [05:35:40]MH_I2C_Read... [05:35:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:35:40]Read from MH i2c: E2 [05:35:40]MH_I2C_Read... [05:35:40]Read from MH i2c: E2 0E 00 [05:35:40]MH_I2C_Read... [05:35:40]Read from MH i2c: E2 0E 00 2A 04 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 43 [05:35:40]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [05:35:40]wFMCommunicate OK [05:35:40]SAM_PROTO_GetShiftState done [05:35:40]FM_GetShiftState done [05:35:40]opened in 1722384637 [05:35:40]opened+sec_in_day 1722471037 [05:35:40]quantity*price = 60003 [05:35:40]sum+1 = 60004 [05:35:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 24 31.07.2024 05:35 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119293 ФПД: 117982337267527 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T053541&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119293&fm=117982337267527&tin=02508201610067®Number=0000000000092660&sum=60000 [05:35:41]StoreToDocumentArchive [05:35:41]shift 436 fd 119293 [05:35:41]save to /storage/0436/doc_00119293 [05:35:41]save last doc name /storage/0436/doc_00119293 to /storage/kkm_last_doc_name [05:35:41]save OK [05:35:41]Clear old archive folders... [05:35:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:35:41]tlvbuf is 00AC6780 [05:35:41]SAM_PROTO_ClearQueue [05:35:41]wFMCommunicate request_size=4 [05:35:41]MH_SAM_APDU [05:35:41]CAPDU: 80 09 00 00 [05:35:41]Write to MH i2c: E2 08 00 37 04 80 09 00 00 00 00 00 00 AD [05:35:41]Write i2c OK [05:35:41]MH_I2C_Read... [05:35:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:35:41]Read from MH i2c: E2 [05:35:41]MH_I2C_Read... [05:35:41]Read from MH i2c: E2 03 00 [05:35:41]MH_I2C_Read... [05:35:41]Read from MH i2c: E2 03 00 37 04 00 90 00 AF [05:35:41]RAPDU: 90 00 [05:35:41]wFMCommunicate OK [05:35:41]SAM_PROTO_ClearQueue done [05:35:41]KKMCreateOFDPacket [05:35:41]OFDProtocolAddRootSTLVToBuf [05:35:41]FM_MakeSignedData [05:35:41]FM_MakeSignedData [05:35:41]SAM_PROTO_SignData [05:35:41]wFMCommunicate request_size=4 [05:35:41]MH_SAM_APDU [05:35:41]CAPDU: 80 0D 01 02 [05:35:41]Write to MH i2c: E2 08 00 38 04 80 0D 01 02 00 00 00 00 B5 [05:35:41]Write i2c OK [05:35:41]MH_I2C_Read... [05:35:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:35:41]Read from MH i2c: E2 [05:35:41]MH_I2C_Read... [05:35:41]Read from MH i2c: E2 03 00 [05:35:41]MH_I2C_Read... [05:35:41]Read from MH i2c: E2 03 00 38 04 00 90 00 B0 [05:35:41]RAPDU: 90 00 [05:35:41]wFMCommunicate OK [05:35:41]wFMCommunicate request_size=255 [05:35:41]MH_SAM_APDU [05:35:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 18 00 00 00 F4 03 04 00 2D CD A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FD D1 01 00 35 04 06 00 6B [05:35:41]Write to MH i2c: E2 02 01 39 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 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 18 00 00 00 F4 03 04 00 2D CD A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FD D1 01 00 35 04 06 00 6B 00 00 10 [05:35:41]Write i2c OK [05:35:41]MH_I2C_Read... [05:35:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:35:42]Read from MH i2c: E2 [05:35:42]MH_I2C_Read... [05:35:42]Read from MH i2c: E2 03 00 [05:35:42]MH_I2C_Read... [05:35:42]Read from MH i2c: E2 03 00 39 04 00 90 00 B1 [05:35:42]RAPDU: 90 00 [05:35:42]wFMCommunicate OK [05:35:42]wFMCommunicate request_size=10 [05:35:42]MH_SAM_APDU [05:35:42]CAPDU: 80 0D 02 02 05 4D E7 4D 77 47 [05:35:42]Write to MH i2c: E2 0D 00 3A 04 80 0D 02 02 05 00 4D E7 4D 77 47 00 00 01 [05:35:42]Write i2c OK [05:35:42]MH_I2C_Read... [05:35:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:35:42]Read from MH i2c: E2 [05:35:42]MH_I2C_Read... [05:35:42]Read from MH i2c: E2 03 00 [05:35:42]MH_I2C_Read... [05:35:42]Read from MH i2c: E2 03 00 3A 04 00 90 00 B2 [05:35:42]RAPDU: 90 00 [05:35:42]wFMCommunicate OK [05:35:42]wFMCommunicate request_size=4 [05:35:42]MH_SAM_APDU [05:35:42]CAPDU: 80 0D 03 02 [05:35:42]Write to MH i2c: E2 08 00 3B 04 80 0D 03 02 00 00 00 00 BA [05:35:42]Write i2c OK [05:35:42]MH_I2C_Read... [05:35:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:35:42]Read from MH i2c: E2 [05:35:42]MH_I2C_Read... [05:35:42]Read from MH i2c: E2 0B 00 [05:35:42]MH_I2C_Read... [05:35:42]Read from MH i2c: E2 0B 00 3B 04 00 58 0E DC 67 F6 9C 83 34 90 00 AD [05:35:42]RAPDU: 58 0E DC 67 F6 9C 83 34 90 00 [05:35:42]wFMCommunicate OK [05:35:42]SAM_PROTO_SignData done [05:35:42]FM_MakeSignedData done [05:35:42]CreateOFDProtocolMessage [05:35:42]wFMCommunicate request_size=4 [05:35:42]MH_SAM_APDU [05:35:42]CAPDU: 80 11 00 00 [05:35:42]Write to MH i2c: E2 08 00 3C 04 80 11 00 00 00 00 00 00 BA [05:35:42]Write i2c OK [05:35:42]MH_I2C_Read... [05:35:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:35:42]Read from MH i2c: E2 [05:35:42]MH_I2C_Read... [05:35:42]Read from MH i2c: E2 17 00 [05:35:42]MH_I2C_Read... [05:35:42]Read from MH i2c: E2 17 00 3C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 15 [05:35:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [05:35:42]wFMCommunicate OK [05:35:42]CreateOFDProtocolMessage done [05:35:42]OFDSenderStorePacket 119293 [05:35:42]StoreOFDPacket docnum=119293 [05:35:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 FD A9 07 01 68 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 18 00 00 00 F4 03 04 00 2D CD A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FD D1 01 00 35 04 06 00 6B 4D E7 4D 77 47 58 0E DC 67 F6 9C 83 34 [05:35:42]CheckFolder [05:35:42]dirname=/storage/ofd_packets [05:35:42]CheckFolder done [05:35:42]ProducePacketName [05:35:42]name=ofd_packets/00119293 [05:35:42]NVStorageSaveData ofd_packets/00119293 [05:35:42]File name is /storage/ofd_packets/00119293 [05:35:42]Write 301 bytes [05:35:42]NVStorageSaveData done [05:35:42]OFDSenderStorePacket done [05:35:42]KKMCreateOFDPacket done [05:35:42]NVStorageSaveData kkm_last_timestamp [05:35:42]File name is /storage/kkm_last_timestamp [05:35:42]Write 4 bytes [05:35:42]NVStorageSaveData done [05:35:42]ExternCall_PrintAddStr [05:35:42]wPrintStart [05:35:42]Write to MH i2c: 01 00 00 3D 04 41 [05:35:42]Write i2c OK [05:35:42]MH_I2C_Read... [05:35:42]Read from MH i2c: 01 [05:35:42]MH_I2C_Read... [05:35:42]Read from MH i2c: 01 07 00 [05:35:42]MH_I2C_Read... [05:35:42]Read from MH i2c: 01 07 00 3D 04 00 00 00 00 00 FF 0F 56 [05:35:42]RasterBufferAndPrint [05:35:42]line Счет N : (1)950219 [05:35:42]line ИНН: 02508201610067 [05:35:42]line Контрольно-Кассовый Чек [05:35:42]line ПРОДАЖА [05:35:42]line ТРК (МРК, ГНК) : 31 [05:35:42]line Товар: 2710124130 [05:35:42]line Аи-92-К-4 [05:35:42]line 8.850 * 67.80 [05:35:42]line = 600.03 [05:35:42]line НДС 12% НСП 1% [05:35:42]line > о реализуемом товаре [05:35:42]line ОКРУГЛЕНИЕ: -0.03 [05:35:42]line ИТОГО: 600.00 [05:35:42]line Внесено: 600.00 [05:35:42]line СДАЧА: 0.00 [05:35:42]line НСП 1% : 5.31 [05:35:42]line НДС 12% : 63.72 [05:35:42]line Наличными: 600.00 [05:35:42]line Безнал.: 0.00 [05:35:42]line Место: АЗС № 134 "Партнер Нефть" [05:35:42]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [05:35:42]line СНО: Общий режим [05:35:42]line Чек 24 31.07.2024 05:35 [05:35:42]line Смена: 436 ФФД: 1.0 [05:35:42]line ЗНМ: 0300000044 [05:35:42]line РНМ: 0000000000092660 [05:35:42]line Версия ККМ: 001 [05:35:42]line ФМ: 0000000000874939 [05:35:42]line ФД: 119293 [05:35:42]line ФПД: 117982337267527 [05:35:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T053541&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119293&fm=117982337267527&tin=02508201610067®Number=0000000000092660&sum=60000 [05:35:42]OFD Sender: Processing packet 119293 [packets to send 86, broken 85] [05:35:42]ProducePacketName [05:35:42]name=ofd_packets/00119293 [05:35:42]OFD Sender: To server: pG, [05:35:42]CommunicateWithHost lk.salyk.kg:30040 [05:35:42]ConnectInit lk.salyk.kg [05:35:42]written 0, free lines is 4095 [05:35:42]Connected sock=9 [05:35:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 FD A9 07 01 68 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 18 00 00 00 F4 03 04 00 2D CD A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FD D1 01 00 35 04 06 00 6B 4D E7 4D 77 47 58 0E DC 67 F6 9C 83 34 [05:35:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 4F ED 47 00 04 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 39 33 39 10 04 04 00 FD D1 01 00 F4 03 04 00 B7 7A A9 66 B6 04 01 00 00 D8 E8 C1 6F 6B E9 AD 36 [05:35:43]CommunicateWithHost err = 0 [05:35:43]CheckOFDResponse [05:35:43]1017 (14) - 77093643461234 [05:35:43]1041 (16) - 0000000000874939 [05:35:43]1040 (4) - 119293 [05:35:43]1012 (4) - 30.07.2024 23:43 [05:35:43]1206 (1) - 0 [05:35:43]OFD Sender: Remove packet 119293 [05:35:43]ProducePacketName [05:35:43]name=ofd_packets/00119293 [05:35:43]NVStorageDeleteData [05:35:43]Write to MH i2c: 01 00 00 67 04 6B [05:35:43]Write i2c OK [05:35:43]MH_I2C_Read... [05:35:43]Read from MH i2c: 01 [05:35:43]MH_I2C_Read... [05:35:43]Read from MH i2c: 01 07 00 [05:35:43]MH_I2C_Read... [05:35:43]Read from MH i2c: 01 07 00 67 04 00 00 00 00 00 E0 0C 5E [05:35:43]RasterBufferAndPrint [05:35:43]line [05:35:43]line [05:35:43]line [05:35:43]line [05:35:43]line [05:35:43]written 0, free lines is 3302 [05:35:43]MH_Cut [05:35:43]Write to MH i2c: D1 01 00 6E 04 01 44 [05:35:43]Write i2c OK [05:35:43]MH_I2C_Read... [05:35:43]Read from MH i2c: D1 [05:35:43]MH_I2C_Read... [05:35:43]Read from MH i2c: D1 01 00 [05:35:43]MH_I2C_Read... [05:35:43]Read from MH i2c: D1 01 00 6E 04 00 43 [05:35:43]Write to MH i2c: 01 00 00 6F 04 73 [05:35:43]Write i2c OK [05:35:43]MH_I2C_Read... [05:35:43]OFD Sender: No OFD packet to send [05:35:43]*** Cut start [05:35:43]*** Partial cut [05:35:43]*** CUTSNS_PIN = 1 [05:35:43]*** CUTSNS_PIN = 0 [05:35:44]*** Brake cut motor [05:35:44]Read from MH i2c: 01 [05:35:44]MH_I2C_Read... [05:35:44]*** Stop cut motor [05:35:44]*** Cut end [05:35:44]Read from MH i2c: 01 07 00 [05:35:44]MH_I2C_Read... [05:35:44]Read from MH i2c: 01 07 00 6F 04 00 00 00 00 00 FF 0F 88 [05:35:44]process_action close_receipt done [05:35:44]requested_data is exist [05:35:44]produce_requested_data [05:35:44]requested_item fm.sn is exist - process it [05:35:44]wFMCommunicate request_size=4 [05:35:44]MH_SAM_APDU [05:35:44]CAPDU: 80 11 00 00 [05:35:44]Write to MH i2c: E2 08 00 70 04 80 11 00 00 00 00 00 00 EE [05:35:44]Write i2c OK [05:35:44]MH_I2C_Read... [05:35:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:35:44]Read from MH i2c: E2 [05:35:44]MH_I2C_Read... [05:35:44]Read from MH i2c: E2 17 00 [05:35:44]MH_I2C_Read... [05:35:44]Read from MH i2c: E2 17 00 70 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 49 [05:35:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [05:35:44]wFMCommunicate OK [05:35:44]requested_item fd.num is exist - process it [05:35:44]SAM_PROTO_GetFieldsCounters [05:35:44]wFMCommunicate request_size=4 [05:35:44]MH_SAM_APDU [05:35:44]CAPDU: 80 13 00 00 [05:35:44]Write to MH i2c: E2 08 00 71 04 80 13 00 00 00 00 00 00 F1 [05:35:44]Write i2c OK [05:35:44]MH_I2C_Read... [05:35:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:35:44]Read from MH i2c: E2 [05:35:44]MH_I2C_Read... [05:35:44]Read from MH i2c: E2 62 00 [05:35:44]MH_I2C_Read... [05:35:44]Read from MH i2c: E2 62 00 71 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FD D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [05:35: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FD D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:35:44]wFMCommunicate OK [05:35:44]SAM_PROTO_GetFieldsCounters done [05:35:44]requested_item shift.num is exist - process it [05:35:44]requested_item shift.opened is exist - process it [05:35:44]req_shift_opened [05:35:44]FM_GetShiftState [05:35:44]SAM_PROTO_GetShiftState [05:35:44]wFMCommunicate request_size=4 [05:35:44]MH_SAM_APDU [05:35:44]CAPDU: 80 13 01 00 [05:35:44]Write to MH i2c: E2 08 00 72 04 80 13 01 00 00 00 00 00 F3 [05:35:44]Write i2c OK [05:35:44]MH_I2C_Read... [05:35:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:35:44]Read from MH i2c: E2 [05:35:44]MH_I2C_Read... [05:35:44]Read from MH i2c: E2 0E 00 [05:35:44]MH_I2C_Read... [05:35:44]Read from MH i2c: E2 0E 00 72 04 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 8B [05:35:44]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [05:35:44]wFMCommunicate OK [05:35:44]SAM_PROTO_GetShiftState done [05:35:44]FM_GetShiftState done [05:35:44]req_shift_opened done [05:35:44]requested_item shift.open_date is exist - process it [05:35:44]req_shift_open_date [05:35:44]req_shift_open_date done [05:35:44]produce_requested_data done [05:35:44]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119293,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [05:35:44]process_action_free close_receipt [05:35:44]json_value_free [05:35:44]json_value_free done [05:35:44]process_json_proto returns [05:35:44]Send response to host [05:35:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119293,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [05:35:44]free response buf [05:35:44]execute_script done [05:35:44]execute_script returns [05:35:44]free content buf [05:35:44]Sock 10.Close socket [05:35:44]Sock 10.Thread stoped [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]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: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: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: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:58]OFD Sender: No OFD packet to send [05:38:03]OFD Sender: No OFD packet to send [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:33]OFD Sender: No OFD packet to send [05:38:38]OFD Sender: No OFD packet to send [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: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: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:53]OFD Sender: No OFD packet to send [05:39:58]OFD Sender: No OFD packet to send [05:40:03]OFD Sender: No OFD packet to send [05:40:08]OFD Sender: No OFD packet to send [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:33]OFD Sender: No OFD packet to send [05:40:38]OFD Sender: No OFD packet to send [05:40:43]OFD Sender: No OFD packet to send [05:40:48]OFD Sender: No OFD packet to send [05:40:53]OFD Sender: No OFD packet to send [05:40:58]OFD Sender: No OFD packet to send [05:41:03]OFD Sender: No OFD packet to send [05:41:08]OFD Sender: No OFD packet to send [05:41:13]OFD Sender: No OFD packet to send [05:41:18]OFD Sender: No OFD packet to send [05:41:23]OFD Sender: No OFD packet to send [05:41:28]OFD Sender: No OFD packet to send [05:41:33]OFD Sender: No OFD packet to send [05:41:38]OFD Sender: No OFD packet to send [05:41:43]OFD Sender: No OFD packet to send [05:41:48]OFD Sender: No OFD packet to send [05:41:53]OFD Sender: No OFD packet to send [05:41:58]OFD Sender: No OFD packet to send [05:42:03]OFD Sender: No OFD packet to send [05:42:08]OFD Sender: No OFD packet to send [05:42:13]OFD Sender: No OFD packet to send [05:42:18]OFD Sender: No OFD packet to send [05:42:23]OFD Sender: No OFD packet to send [05:42:28]OFD Sender: No OFD packet to send [05:42:33]OFD Sender: No OFD packet to send [05:42:38]OFD Sender: No OFD packet to send [05:42:43]OFD Sender: No OFD packet to send [05:42:48]OFD Sender: No OFD packet to send [05:42:53]OFD Sender: No OFD packet to send [05:42:58]OFD Sender: No OFD packet to send [05:43:04]OFD Sender: No OFD packet to send [05:43:09]OFD Sender: No OFD packet to send [05:43:14]OFD Sender: No OFD packet to send [05:43:19]OFD Sender: No OFD packet to send [05:43:24]OFD Sender: No OFD packet to send [05:43:29]OFD Sender: No OFD packet to send [05:43:34]OFD Sender: No OFD packet to send [05:43:39]OFD Sender: No OFD packet to send [05:43:44]OFD Sender: No OFD packet to send [05:43:49]OFD Sender: No OFD packet to send [05:43:54]OFD Sender: No OFD packet to send [05:43:59]OFD Sender: No OFD packet to send [05:44:04]OFD Sender: No OFD packet to send [05:44:09]OFD Sender: No OFD packet to send [05:44:14]OFD Sender: No OFD packet to send [05:44:19]OFD Sender: No OFD packet to send [05:44:24]OFD Sender: No OFD packet to send [05:44:29]OFD Sender: No OFD packet to send [05:44:34]OFD Sender: No OFD packet to send [05:44:39]OFD Sender: No OFD packet to send [05:44:44]OFD Sender: No OFD packet to send [05:44:49]OFD Sender: No OFD packet to send [05:44:54]OFD Sender: No OFD packet to send [05:44:59]OFD Sender: No OFD packet to send [05:45:04]OFD Sender: No OFD packet to send [05:45:09]OFD Sender: No OFD packet to send [05:45:14]OFD Sender: No OFD packet to send [05:45:19]OFD Sender: No OFD packet to send [05:45:24]OFD Sender: No OFD packet to send [05:45:29]OFD Sender: No OFD packet to send [05:45:34]OFD Sender: No OFD packet to send [05:45:39]OFD Sender: No OFD packet to send [05:45:44]OFD Sender: No OFD packet to send [05:45:49]OFD Sender: No OFD packet to send [05:45:54]OFD Sender: No OFD packet to send [05:45:59]OFD Sender: No OFD packet to send [05:46:04]OFD Sender: No OFD packet to send [05:46:09]OFD Sender: No OFD packet to send [05:46:14]OFD Sender: No OFD packet to send [05:46:19]OFD Sender: No OFD packet to send [05:46:24]OFD Sender: No OFD packet to send [05:46:29]OFD Sender: No OFD packet to send [05:46:32]accept exits with 8 [05:46:32]New connection [05:46:32]New thread 3067194724 created [05:46:32]Thread 3067338084 joined [05:46:32]Waiting for new connection... [05:46:32] Sock 8.Parse request [05:46:32]Sock 8.Check first char [05:46:32]Sock 8.First char is OK [05:46:32]request: POST /json_proto HTTP/1.0 [05:46:32]Method: POST [05:46:32]URL: /json_proto [05:46:32]Method is POST - this is cgi request [05:46:32]url: /json_proto [05:46:32]query_string will be loaded in cgi processing [05:46:32]execute_cgi json_proto POST (null) [05:46:32]execute_cgi path=json_proto method=POST [05:46:32]POST find Content-Length [05:46:32]Host: 172.17.45.7:8080 [05:46:32]Content-Length: 674 [05:46:32]Content-Type: application/json [05:46:32] [05:46:32]POST finish read [05:46:32]Found Content-Length = 674 [05:46:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:46:32]execute_script... [05:46:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:46:32]POST & json_proto [05:46:32]process_json_proto [05:46:32]json parsed OK: [05:46:32]protocol is kg_v1.0 [05:46:32]action value=close_receipt [05:46:32]process_action close_receipt [05:46:32]cmd_close_receipt [05:46:32]MH_GetDate [05:46:32]Write to MH i2c: F0 00 00 73 04 66 [05:46:32]Write i2c OK [05:46:32]MH_I2C_Read... [05:46:32]Read from MH i2c: F0 [05:46:32]MH_I2C_Read... [05:46:32]Read from MH i2c: F0 09 00 [05:46:32]MH_I2C_Read... [05:46:32]Read from MH i2c: F0 09 00 73 04 00 B9 CF A9 66 90 0F 3E 66 49 [05:46:32]GetLastDocTimeStamp 1722404141 [05:46:32]current date 1722404793 [05:46:32]FM_GetShiftState [05:46:32]SAM_PROTO_GetShiftState [05:46:32]wFMCommunicate request_size=4 [05:46:32]MH_SAM_APDU [05:46:32]CAPDU: 80 13 01 00 [05:46:32]Write to MH i2c: E2 08 00 74 04 80 13 01 00 00 00 00 00 F5 [05:46:32]Write i2c OK [05:46:32]MH_I2C_Read... [05:46:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:46:32]Read from MH i2c: E2 [05:46:32]MH_I2C_Read... [05:46:32]Read from MH i2c: E2 0E 00 [05:46:32]MH_I2C_Read... [05:46:32]Read from MH i2c: E2 0E 00 74 04 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 8D [05:46:32]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [05:46:32]wFMCommunicate OK [05:46:32]SAM_PROTO_GetShiftState done [05:46:32]FM_GetShiftState done [05:46:32]opened in 1722384637 [05:46:32]opened+sec_in_day 1722471037 [05:46:32]quantity*price = 50063 [05:46:32]sum+1 = 50064 [05:46:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 25 31.07.2024 05:46 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119294 ФПД: 93322139588294 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T054633&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119294&fm=93322139588294&tin=02508201610067®Number=0000000000092660&sum=50000 [05:46:33]StoreToDocumentArchive [05:46:33]shift 436 fd 119294 [05:46:33]save to /storage/0436/doc_00119294 [05:46:33]save last doc name /storage/0436/doc_00119294 to /storage/kkm_last_doc_name [05:46:33]save OK [05:46:33]Clear old archive folders... [05:46:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:46:33]tlvbuf is 00AC9D70 [05:46:33]SAM_PROTO_ClearQueue [05:46:33]wFMCommunicate request_size=4 [05:46:33]MH_SAM_APDU [05:46:33]CAPDU: 80 09 00 00 [05:46:33]Write to MH i2c: E2 08 00 81 04 80 09 00 00 00 00 00 00 F7 [05:46:33]Write i2c OK [05:46:33]MH_I2C_Read... [05:46:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:46:33]Read from MH i2c: E2 [05:46:33]MH_I2C_Read... [05:46:33]Read from MH i2c: E2 03 00 [05:46:33]MH_I2C_Read... [05:46:33]Read from MH i2c: E2 03 00 81 04 00 90 00 F9 [05:46:33]RAPDU: 90 00 [05:46:33]wFMCommunicate OK [05:46:33]SAM_PROTO_ClearQueue done [05:46:33]KKMCreateOFDPacket [05:46:33]OFDProtocolAddRootSTLVToBuf [05:46:33]FM_MakeSignedData [05:46:33]FM_MakeSignedData [05:46:33]SAM_PROTO_SignData [05:46:33]wFMCommunicate request_size=4 [05:46:33]MH_SAM_APDU [05:46:33]CAPDU: 80 0D 01 02 [05:46:33]Write to MH i2c: E2 08 00 82 04 80 0D 01 02 00 00 00 00 FF [05:46:33]Write i2c OK [05:46:33]MH_I2C_Read... [05:46:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:46:33]Read from MH i2c: E2 [05:46:33]MH_I2C_Read... [05:46:33]Read from MH i2c: E2 03 00 [05:46:33]MH_I2C_Read... [05:46:33]Read from MH i2c: E2 03 00 82 04 00 90 00 FA [05:46:33]RAPDU: 90 00 [05:46:33]wFMCommunicate OK [05:46:33]wFMCommunicate request_size=255 [05:46:33]MH_SAM_APDU [05:46:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 B9 CF A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FE D1 01 00 35 04 06 00 54 E0 40 FA [05:46:33]Write to MH i2c: E2 02 01 83 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 B9 CF A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FE D1 01 00 35 04 06 00 54 E0 40 FA 00 00 BA [05:46:33]Write i2c OK [05:46:33]MH_I2C_Read... [05:46:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:46:33]Read from MH i2c: E2 [05:46:33]MH_I2C_Read... [05:46:33]Read from MH i2c: E2 03 00 [05:46:33]MH_I2C_Read... [05:46:33]Read from MH i2c: E2 03 00 83 04 00 90 00 FB [05:46:33]RAPDU: 90 00 [05:46:33]wFMCommunicate OK [05:46:33]wFMCommunicate request_size=7 [05:46:33]MH_SAM_APDU [05:46:33]CAPDU: 80 0D 02 02 02 D6 C6 [05:46:33]Write to MH i2c: E2 0A 00 84 04 80 0D 02 02 02 00 D6 C6 00 00 A2 [05:46:33]Write i2c OK [05:46:33]MH_I2C_Read... [05:46:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:46:33]Read from MH i2c: E2 [05:46:33]MH_I2C_Read... [05:46:33]Read from MH i2c: E2 03 00 [05:46:33]MH_I2C_Read... [05:46:33]Read from MH i2c: E2 03 00 84 04 00 90 00 FC [05:46:33]RAPDU: 90 00 [05:46:33]wFMCommunicate OK [05:46:33]wFMCommunicate request_size=4 [05:46:33]MH_SAM_APDU [05:46:33]CAPDU: 80 0D 03 02 [05:46:33]Write to MH i2c: E2 08 00 85 04 80 0D 03 02 00 00 00 00 04 [05:46:33]Write i2c OK [05:46:33]MH_I2C_Read... [05:46:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:46:33]Read from MH i2c: E2 [05:46:33]MH_I2C_Read... [05:46:33]Read from MH i2c: E2 0B 00 [05:46:33]MH_I2C_Read... [05:46:33]Read from MH i2c: E2 0B 00 85 04 00 F2 05 C4 32 AE 21 BD 7C 90 00 FA [05:46:33]RAPDU: F2 05 C4 32 AE 21 BD 7C 90 00 [05:46:33]wFMCommunicate OK [05:46:33]SAM_PROTO_SignData done [05:46:33]FM_MakeSignedData done [05:46:33]CreateOFDProtocolMessage [05:46:33]wFMCommunicate request_size=4 [05:46:33]MH_SAM_APDU [05:46:33]CAPDU: 80 11 00 00 [05:46:33]Write to MH i2c: E2 08 00 86 04 80 11 00 00 00 00 00 00 04 [05:46:33]Write i2c OK [05:46:33]MH_I2C_Read... [05:46:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:46:33]Read from MH i2c: E2 [05:46:33]MH_I2C_Read... [05:46:33]Read from MH i2c: E2 17 00 [05:46:33]MH_I2C_Read... [05:46:33]Read from MH i2c: E2 17 00 86 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5F [05:46:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [05:46:33]wFMCommunicate OK [05:46:33]CreateOFDProtocolMessage done [05:46:33]OFDSenderStorePacket 119294 [05:46:33]StoreOFDPacket docnum=119294 [05:46:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 3B 03 04 01 02 F4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 B9 CF A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FE D1 01 00 35 04 06 00 54 E0 40 FA D6 C6 F2 05 C4 32 AE 21 BD 7C [05:46:33]CheckFolder [05:46:33]dirname=/storage/ofd_packets [05:46:33]CheckFolder done [05:46:33]ProducePacketName [05:46:33]name=ofd_packets/00119294 [05:46:33]NVStorageSaveData ofd_packets/00119294 [05:46:33]File name is /storage/ofd_packets/00119294 [05:46:33]Write 298 bytes [05:46:33]NVStorageSaveData done [05:46:33]OFDSenderStorePacket done [05:46:33]KKMCreateOFDPacket done [05:46:33]NVStorageSaveData kkm_last_timestamp [05:46:33]File name is /storage/kkm_last_timestamp [05:46:33]Write 4 bytes [05:46:33]NVStorageSaveData done [05:46:33]ExternCall_PrintAddStr [05:46:33]wPrintStart [05:46:33]Write to MH i2c: 01 00 00 87 04 8B [05:46:33]Write i2c OK [05:46:33]MH_I2C_Read... [05:46:33]Read from MH i2c: 01 [05:46:33]MH_I2C_Read... [05:46:33]Read from MH i2c: 01 07 00 [05:46:33]MH_I2C_Read... [05:46:33]Read from MH i2c: 01 07 00 87 04 00 00 00 00 00 FF 0F A0 [05:46:33]RasterBufferAndPrint [05:46:33]line Счет N : (1)950220 [05:46:33]line ИНН: 02508201610067 [05:46:33]line Контрольно-Кассовый Чек [05:46:33]line ПРОДАЖА [05:46:33]line ТРК (МРК, ГНК) : 21 [05:46:33]line Товар: 2710194800 [05:46:33]line ДТ-К-5 [05:46:33]line 6.570 * 76.20 [05:46:33]line = 500.63 [05:46:33]line НДС 12% НСП 1% [05:46:33]line > о реализуемом товаре [05:46:33]line ОКРУГЛЕНИЕ: -0.63 [05:46:33]line ИТОГО: 500.00 [05:46:33]line Внесено: 500.00 [05:46:33]line СДАЧА: 0.00 [05:46:33]line НСП 1% : 4.43 [05:46:33]line НДС 12% : 53.16 [05:46:33]line Наличными: 500.00 [05:46:33]line Безнал.: 0.00 [05:46:33]line Место: АЗС № 134 "Партнер Нефть" [05:46:33]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [05:46:33]line СНО: Общий режим [05:46:33]line Чек 25 31.07.2024 05:46 [05:46:33]line Смена: 436 ФФД: 1.0 [05:46:33]line ЗНМ: 0300000044 [05:46:33]line РНМ: 0000000000092660 [05:46:33]line Версия ККМ: 001 [05:46:33]line ФМ: 0000000000874939 [05:46:33]line ФД: 119294 [05:46:33]line ФПД: 93322139588294 [05:46:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T054633&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119294&fm=93322139588294&tin=02508201610067®Number=0000000000092660&sum=50000 [05:46:34]OFD Sender: Processing packet 119294 [packets to send 86, broken 85] [05:46:34]ProducePacketName [05:46:34]name=ofd_packets/00119294 [05:46:34]OFD Sender: To server: pG, [05:46:34]CommunicateWithHost lk.salyk.kg:30040 [05:46:34]ConnectInit lk.salyk.kg [05:46:34]written 0, free lines is 4095 [05:46:34]Connected sock=11 [05:46:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 3B 03 04 01 02 F4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 B9 CF A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FE D1 01 00 35 04 06 00 54 E0 40 FA D6 C6 F2 05 C4 32 AE 21 BD 7C [05:46:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D3 1D 47 00 F2 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 39 33 39 10 04 04 00 FE D1 01 00 F4 03 04 00 42 7D A9 66 B6 04 01 00 00 D6 D9 27 C6 9E FF B5 6E [05:46:34]CommunicateWithHost err = 0 [05:46:34]CheckOFDResponse [05:46:34]1017 (14) - 77093643461234 [05:46:34]1041 (16) - 0000000000874939 [05:46:34]1040 (4) - 119294 [05:46:34]1012 (4) - 30.07.2024 23:54 [05:46:34]1206 (1) - 0 [05:46:34]OFD Sender: Remove packet 119294 [05:46:34]ProducePacketName [05:46:34]name=ofd_packets/00119294 [05:46:34]NVStorageDeleteData [05:46:34]Write to MH i2c: 01 00 00 B1 04 B5 [05:46:34]Write i2c OK [05:46:34]MH_I2C_Read... [05:46:34]Read from MH i2c: 01 [05:46:34]MH_I2C_Read... [05:46:34]Read from MH i2c: 01 07 00 [05:46:34]MH_I2C_Read... [05:46:34]Read from MH i2c: 01 07 00 B1 04 00 00 00 00 00 C9 0C 91 [05:46:34]RasterBufferAndPrint [05:46:34]line [05:46:34]line [05:46:34]line [05:46:34]line [05:46:34]line [05:46:34]written 0, free lines is 3280 [05:46:34]MH_Cut [05:46:34]Write to MH i2c: D1 01 00 B8 04 01 8E [05:46:34]Write i2c OK [05:46:34]MH_I2C_Read... [05:46:34]Read from MH i2c: D1 [05:46:34]MH_I2C_Read... [05:46:34]Read from MH i2c: D1 01 00 [05:46:34]MH_I2C_Read... [05:46:34]Read from MH i2c: D1 01 00 B8 04 00 8D [05:46:34]Write to MH i2c: 01 00 00 B9 04 BD [05:46:34]Write i2c OK [05:46:34]MH_I2C_Read... [05:46:35]OFD Sender: No OFD packet to send [05:46:35]*** Cut start [05:46:35]*** Partial cut [05:46:35]*** CUTSNS_PIN = 1 [05:46:35]*** CUTSNS_PIN = 0 [05:46:35]*** Brake cut motor [05:46:36]Read from MH i2c: 01 [05:46:36]MH_I2C_Read... [05:46:36]*** Stop cut motor [05:46:36]*** Cut end [05:46:36]Read from MH i2c: 01 07 00 [05:46:36]MH_I2C_Read... [05:46:36]Read from MH i2c: 01 07 00 B9 04 00 00 00 00 00 FF 0F D2 [05:46:36]process_action close_receipt done [05:46:36]requested_data is exist [05:46:36]produce_requested_data [05:46:36]requested_item fm.sn is exist - process it [05:46:36]wFMCommunicate request_size=4 [05:46:36]MH_SAM_APDU [05:46:36]CAPDU: 80 11 00 00 [05:46:36]Write to MH i2c: E2 08 00 BA 04 80 11 00 00 00 00 00 00 38 [05:46:36]Write i2c OK [05:46:36]MH_I2C_Read... [05:46:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:46:36]Read from MH i2c: E2 [05:46:36]MH_I2C_Read... [05:46:36]Read from MH i2c: E2 17 00 [05:46:36]MH_I2C_Read... [05:46:36]Read from MH i2c: E2 17 00 BA 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 93 [05:46:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [05:46:36]wFMCommunicate OK [05:46:36]requested_item fd.num is exist - process it [05:46:36]SAM_PROTO_GetFieldsCounters [05:46:36]wFMCommunicate request_size=4 [05:46:36]MH_SAM_APDU [05:46:36]CAPDU: 80 13 00 00 [05:46:36]Write to MH i2c: E2 08 00 BB 04 80 13 00 00 00 00 00 00 3B [05:46:36]Write i2c OK [05:46:36]MH_I2C_Read... [05:46:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:46:36]Read from MH i2c: E2 [05:46:36]MH_I2C_Read... [05:46:36]Read from MH i2c: E2 62 00 [05:46:36]MH_I2C_Read... [05:46:36]Read from MH i2c: E2 62 00 BB 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FE D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [05:46:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FE D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:46:36]wFMCommunicate OK [05:46:36]SAM_PROTO_GetFieldsCounters done [05:46:36]requested_item shift.num is exist - process it [05:46:36]requested_item shift.opened is exist - process it [05:46:36]req_shift_opened [05:46:36]FM_GetShiftState [05:46:36]SAM_PROTO_GetShiftState [05:46:36]wFMCommunicate request_size=4 [05:46:36]MH_SAM_APDU [05:46:36]CAPDU: 80 13 01 00 [05:46:36]Write to MH i2c: E2 08 00 BC 04 80 13 01 00 00 00 00 00 3D [05:46:36]Write i2c OK [05:46:36]MH_I2C_Read... [05:46:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:46:36]Read from MH i2c: E2 [05:46:36]MH_I2C_Read... [05:46:36]Read from MH i2c: E2 0E 00 [05:46:36]MH_I2C_Read... [05:46:36]Read from MH i2c: E2 0E 00 BC 04 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 D5 [05:46:36]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [05:46:36]wFMCommunicate OK [05:46:36]SAM_PROTO_GetShiftState done [05:46:36]FM_GetShiftState done [05:46:36]req_shift_opened done [05:46:36]requested_item shift.open_date is exist - process it [05:46:36]req_shift_open_date [05:46:36]req_shift_open_date done [05:46:36]produce_requested_data done [05:46:36]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119294,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [05:46:36]process_action_free close_receipt [05:46:36]json_value_free [05:46:36]json_value_free done [05:46:36]process_json_proto returns [05:46:36]Send response to host [05:46:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119294,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [05:46:36]free response buf [05:46:36]execute_script done [05:46:36]execute_script returns [05:46:36]free content buf [05:46:36]Sock 8.Close socket [05:46:36]Sock 8.Thread stoped [05:46:40]OFD Sender: No OFD packet to send [05:46:45]OFD Sender: No OFD packet to send [05:46:50]OFD Sender: No OFD packet to send [05:46:55]OFD Sender: No OFD packet to send [05:47:00]OFD Sender: No OFD packet to send [05:47:05]OFD Sender: No OFD packet to send [05:47:10]OFD Sender: No OFD packet to send [05:47:15]OFD Sender: No OFD packet to send [05:47:20]OFD Sender: No OFD packet to send [05:47:25]OFD Sender: No OFD packet to send [05:47:30]OFD Sender: No OFD packet to send [05:47:35]OFD Sender: No OFD packet to send [05:47:40]OFD Sender: No OFD packet to send [05:47:45]OFD Sender: No OFD packet to send [05:47:50]OFD Sender: No OFD packet to send [05:47:55]OFD Sender: No OFD packet to send [05:48:00]OFD Sender: No OFD packet to send [05:48:05]OFD Sender: No OFD packet to send [05:48:10]OFD Sender: No OFD packet to send [05:48:15]OFD Sender: No OFD packet to send [05:48:20]OFD Sender: No OFD packet to send [05:48:25]OFD Sender: No OFD packet to send [05:48:30]OFD Sender: No OFD packet to send [05:48:35]OFD Sender: No OFD packet to send [05:48:40]OFD Sender: No OFD packet to send [05:48:45]OFD Sender: No OFD packet to send [05:48:50]OFD Sender: No OFD packet to send [05:48:55]OFD Sender: No OFD packet to send [05:49:00]OFD Sender: No OFD packet to send [05:49:05]OFD Sender: No OFD packet to send [05:49:10]OFD Sender: No OFD packet to send [05:49:15]OFD Sender: No OFD packet to send [05:49:20]OFD Sender: No OFD packet to send [05:49:25]OFD Sender: No OFD packet to send [05:49:30]OFD Sender: No OFD packet to send [05:49:35]OFD Sender: No OFD packet to send [05:49:40]OFD Sender: No OFD packet to send [05:49:45]OFD Sender: No OFD packet to send [05:49:50]OFD Sender: No OFD packet to send [05:49:55]OFD Sender: No OFD packet to send [05:50:00]OFD Sender: No OFD packet to send [05:50:05]OFD Sender: No OFD packet to send [05:50:10]OFD Sender: No OFD packet to send [05:50:15]OFD Sender: No OFD packet to send [05:50:20]OFD Sender: No OFD packet to send [05:50:25]OFD Sender: No OFD packet to send [05:50:30]OFD Sender: No OFD packet to send [05:50:35]OFD Sender: No OFD packet to send [05:50:40]OFD Sender: No OFD packet to send [05:50:45]OFD Sender: No OFD packet to send [05:50:50]OFD Sender: No OFD packet to send [05:50:55]OFD Sender: No OFD packet to send [05:51:00]OFD Sender: No OFD packet to send [05:51:05]OFD Sender: No OFD packet to send [05:51:10]OFD Sender: No OFD packet to send [05:51:15]OFD Sender: No OFD packet to send [05:51:20]OFD Sender: No OFD packet to send [05:51:25]OFD Sender: No OFD packet to send [05:51:30]OFD Sender: No OFD packet to send [05:51:35]OFD Sender: No OFD packet to send [05:51:40]OFD Sender: No OFD packet to send [05:51:45]OFD Sender: No OFD packet to send [05:51:50]OFD Sender: No OFD packet to send [05:51:55]OFD Sender: No OFD packet to send [05:52:00]OFD Sender: No OFD packet to send [05:52:05]OFD Sender: No OFD packet to send [05:52:10]OFD Sender: No OFD packet to send [05:52:15]OFD Sender: No OFD packet to send [05:52:20]OFD Sender: No OFD packet to send [05:52:25]OFD Sender: No OFD packet to send [05:52:30]OFD Sender: No OFD packet to send [05:52:35]OFD Sender: No OFD packet to send [05:52:40]OFD Sender: No OFD packet to send [05:52:45]OFD Sender: No OFD packet to send [05:52:50]OFD Sender: No OFD packet to send [05:52:55]OFD Sender: No OFD packet to send [05:53:00]OFD Sender: No OFD packet to send [05:53:05]OFD Sender: No OFD packet to send [05:53:10]OFD Sender: No OFD packet to send [05:53:15]OFD Sender: No OFD packet to send [05:53:20]OFD Sender: No OFD packet to send [05:53:25]OFD Sender: No OFD packet to send [05:53:30]OFD Sender: No OFD packet to send [05:53:34]accept exits with 9 [05:53:34]New connection [05:53:34]New thread 3067338084 created [05:53:34]Thread 3067194724 joined [05:53:34]Waiting for new connection... [05:53:34] Sock 9.Parse request [05:53:34]Sock 9.Check first char [05:53:34]Sock 9.First char is OK [05:53:34]request: POST /json_proto HTTP/1.0 [05:53:34]Method: POST [05:53:34]URL: /json_proto [05:53:34]Method is POST - this is cgi request [05:53:34]url: /json_proto [05:53:34]query_string will be loaded in cgi processing [05:53:34]execute_cgi json_proto POST (null) [05:53:34]execute_cgi path=json_proto method=POST [05:53:34]POST find Content-Length [05:53:34]Host: 172.17.45.7:8080 [05:53:34]Content-Length: 682 [05:53:34]Content-Type: application/json [05:53:34] [05:53:34]POST finish read [05:53:34]Found Content-Length = 682 [05:53:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:53:34]execute_script... [05:53:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:53:34]POST & json_proto [05:53:34]process_json_proto [05:53:34]json parsed OK: [05:53:34]protocol is kg_v1.0 [05:53:34]action value=close_receipt [05:53:34]process_action close_receipt [05:53:34]cmd_close_receipt [05:53:34]MH_GetDate [05:53:34]Write to MH i2c: F0 00 00 BD 04 B0 [05:53:34]Write i2c OK [05:53:34]MH_I2C_Read... [05:53:34]Read from MH i2c: F0 [05:53:34]MH_I2C_Read... [05:53:34]Read from MH i2c: F0 09 00 [05:53:34]MH_I2C_Read... [05:53:34]Read from MH i2c: F0 09 00 BD 04 00 5F D1 A9 66 90 0F 3E 66 3B [05:53:34]GetLastDocTimeStamp 1722404793 [05:53:34]current date 1722405215 [05:53:34]FM_GetShiftState [05:53:34]SAM_PROTO_GetShiftState [05:53:34]wFMCommunicate request_size=4 [05:53:34]MH_SAM_APDU [05:53:34]CAPDU: 80 13 01 00 [05:53:34]Write to MH i2c: E2 08 00 BE 04 80 13 01 00 00 00 00 00 3F [05:53:34]Write i2c OK [05:53:34]MH_I2C_Read... [05:53:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:53:34]Read from MH i2c: E2 [05:53:34]MH_I2C_Read... [05:53:34]Read from MH i2c: E2 0E 00 [05:53:34]MH_I2C_Read... [05:53:34]Read from MH i2c: E2 0E 00 BE 04 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 D7 [05:53:34]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [05:53:34]wFMCommunicate OK [05:53:34]SAM_PROTO_GetShiftState done [05:53:34]FM_GetShiftState done [05:53:34]opened in 1722384637 [05:53:34]opened+sec_in_day 1722471037 [05:53:34]quantity*price = 100005 [05:53:34]sum+1 = 100006 [05:53:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 26 31.07.2024 05:53 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119295 ФПД: 22059160351467 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T055335&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119295&fm=22059160351467&tin=02508201610067®Number=0000000000092660&sum=100000 [05:53:35]StoreToDocumentArchive [05:53:35]shift 436 fd 119295 [05:53:35]save to /storage/0436/doc_00119295 [05:53:35]save last doc name /storage/0436/doc_00119295 to /storage/kkm_last_doc_name [05:53:35]save OK [05:53:35]Clear old archive folders... [05:53:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:53:35]tlvbuf is 00AC5910 [05:53:35]SAM_PROTO_ClearQueue [05:53:35]wFMCommunicate request_size=4 [05:53:35]MH_SAM_APDU [05:53:35]CAPDU: 80 09 00 00 [05:53:35]Write to MH i2c: E2 08 00 CB 04 80 09 00 00 00 00 00 00 41 [05:53:35]Write i2c OK [05:53:35]MH_I2C_Read... [05:53:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:53:35]Read from MH i2c: E2 [05:53:35]MH_I2C_Read... [05:53:35]Read from MH i2c: E2 03 00 [05:53:35]MH_I2C_Read... [05:53:35]Read from MH i2c: E2 03 00 CB 04 00 90 00 43 [05:53:35]RAPDU: 90 00 [05:53:35]wFMCommunicate OK [05:53:35]SAM_PROTO_ClearQueue done [05:53:35]KKMCreateOFDPacket [05:53:35]OFDProtocolAddRootSTLVToBuf [05:53:35]FM_MakeSignedData [05:53:35]FM_MakeSignedData [05:53:35]SAM_PROTO_SignData [05:53:35]wFMCommunicate request_size=4 [05:53:35]MH_SAM_APDU [05:53:35]CAPDU: 80 0D 01 02 [05:53:35]Write to MH i2c: E2 08 00 CC 04 80 0D 01 02 00 00 00 00 49 [05:53:35]Write i2c OK [05:53:35]MH_I2C_Read... [05:53:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:53:35]Read from MH i2c: E2 [05:53:35]MH_I2C_Read... [05:53:35]Read from MH i2c: E2 03 00 [05:53:35]MH_I2C_Read... [05:53:35]Read from MH i2c: E2 03 00 CC 04 00 90 00 44 [05:53:35]RAPDU: 90 00 [05:53:35]wFMCommunicate OK [05:53:35]wFMCommunicate request_size=255 [05:53:35]MH_SAM_APDU [05:53:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 1A 00 00 00 F4 03 04 00 5F D1 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FF D1 01 00 35 04 06 00 14 [05:53:35]Write to MH i2c: E2 02 01 CD 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 1A 00 00 00 F4 03 04 00 5F D1 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FF D1 01 00 35 04 06 00 14 00 00 4F [05:53:35]Write i2c OK [05:53:35]MH_I2C_Read... [05:53:35]OFD Sender: No OFD packet to send [05:53:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:53:35]Read from MH i2c: E2 [05:53:35]MH_I2C_Read... [05:53:35]Read from MH i2c: E2 03 00 [05:53:35]MH_I2C_Read... [05:53:35]Read from MH i2c: E2 03 00 CD 04 00 90 00 45 [05:53:35]RAPDU: 90 00 [05:53:35]wFMCommunicate OK [05:53:35]wFMCommunicate request_size=10 [05:53:35]MH_SAM_APDU [05:53:35]CAPDU: 80 0D 02 02 05 10 0C 6A B2 EB [05:53:35]Write to MH i2c: E2 0D 00 CE 04 80 0D 02 02 05 00 10 0C 6A B2 EB 00 00 79 [05:53:35]Write i2c OK [05:53:35]MH_I2C_Read... [05:53:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:53:35]Read from MH i2c: E2 [05:53:35]MH_I2C_Read... [05:53:35]Read from MH i2c: E2 03 00 [05:53:35]MH_I2C_Read... [05:53:35]Read from MH i2c: E2 03 00 CE 04 00 90 00 46 [05:53:35]RAPDU: 90 00 [05:53:35]wFMCommunicate OK [05:53:35]wFMCommunicate request_size=4 [05:53:35]MH_SAM_APDU [05:53:35]CAPDU: 80 0D 03 02 [05:53:35]Write to MH i2c: E2 08 00 CF 04 80 0D 03 02 00 00 00 00 4E [05:53:35]Write i2c OK [05:53:35]MH_I2C_Read... [05:53:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:53:35]Read from MH i2c: E2 [05:53:35]MH_I2C_Read... [05:53:35]Read from MH i2c: E2 0B 00 [05:53:35]MH_I2C_Read... [05:53:35]Read from MH i2c: E2 0B 00 CF 04 00 83 F2 2C 26 45 00 89 91 90 00 75 [05:53:35]RAPDU: 83 F2 2C 26 45 00 89 91 90 00 [05:53:35]wFMCommunicate OK [05:53:35]SAM_PROTO_SignData done [05:53:35]FM_MakeSignedData done [05:53:35]CreateOFDProtocolMessage [05:53:35]wFMCommunicate request_size=4 [05:53:35]MH_SAM_APDU [05:53:35]CAPDU: 80 11 00 00 [05:53:35]Write to MH i2c: E2 08 00 D0 04 80 11 00 00 00 00 00 00 4E [05:53:35]Write i2c OK [05:53:35]MH_I2C_Read... [05:53:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:53:35]Read from MH i2c: E2 [05:53:35]MH_I2C_Read... [05:53:35]Read from MH i2c: E2 17 00 [05:53:35]MH_I2C_Read... [05:53:35]Read from MH i2c: E2 17 00 D0 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A9 [05:53:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [05:53:35]wFMCommunicate OK [05:53:35]CreateOFDProtocolMessage done [05:53:35]OFDSenderStorePacket 119295 [05:53:35]StoreOFDPacket docnum=119295 [05:53:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A7 DB 07 01 89 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 1A 00 00 00 F4 03 04 00 5F D1 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FF D1 01 00 35 04 06 00 14 10 0C 6A B2 EB 83 F2 2C 26 45 00 89 91 [05:53:35]CheckFolder [05:53:35]dirname=/storage/ofd_packets [05:53:35]CheckFolder done [05:53:35]ProducePacketName [05:53:35]name=ofd_packets/00119295 [05:53:35]NVStorageSaveData ofd_packets/00119295 [05:53:35]File name is /storage/ofd_packets/00119295 [05:53:35]Write 301 bytes [05:53:35]NVStorageSaveData done [05:53:35]OFDSenderStorePacket done [05:53:35]KKMCreateOFDPacket done [05:53:35]NVStorageSaveData kkm_last_timestamp [05:53:35]File name is /storage/kkm_last_timestamp [05:53:35]Write 4 bytes [05:53:35]NVStorageSaveData done [05:53:35]ExternCall_PrintAddStr [05:53:35]wPrintStart [05:53:35]Write to MH i2c: 01 00 00 D1 04 D5 [05:53:35]Write i2c OK [05:53:35]MH_I2C_Read... [05:53:35]Read from MH i2c: 01 [05:53:35]MH_I2C_Read... [05:53:35]Read from MH i2c: 01 07 00 [05:53:35]MH_I2C_Read... [05:53:35]Read from MH i2c: 01 07 00 D1 04 00 00 00 00 00 FF 0F EA [05:53:35]RasterBufferAndPrint [05:53:35]line Счет N : (1)950221 [05:53:35]line ИНН: 02508201610067 [05:53:35]line Контрольно-Кассовый Чек [05:53:35]line ПРОДАЖА [05:53:35]line ТРК (МРК, ГНК) : 51 [05:53:35]line Товар: 2710124130 [05:53:35]line Аи-92-К-4 [05:53:35]line 14.750 * 67.80 [05:53:35]line = 1000.05 [05:53:35]line НДС 12% НСП 1% [05:53:35]line > о реализуемом товаре [05:53:35]line ОКРУГЛЕНИЕ: -0.05 [05:53:35]line ИТОГО: 1000.00 [05:53:35]line Внесено: 1000.00 [05:53:35]line СДАЧА: 0.00 [05:53:35]line НСП 1% : 8.85 [05:53:35]line НДС 12% : 106.20 [05:53:35]line Наличными: 1000.00 [05:53:35]line Безнал.: 0.00 [05:53:35]line Место: АЗС № 134 "Партнер Нефть" [05:53:35]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [05:53:35]line СНО: Общий режим [05:53:35]line Чек 26 31.07.2024 05:53 [05:53:35]line Смена: 436 ФФД: 1.0 [05:53:35]line ЗНМ: 0300000044 [05:53:35]line РНМ: 0000000000092660 [05:53:35]line Версия ККМ: 001 [05:53:35]line ФМ: 0000000000874939 [05:53:35]line ФД: 119295 [05:53:35]line ФПД: 22059160351467 [05:53:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T055335&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119295&fm=22059160351467&tin=02508201610067®Number=0000000000092660&sum=100000 [05:53:35]written 0, free lines is 4095 [05:53:35]OFD Sender: Processing packet 119295 [packets to send 86, broken 85] [05:53:35]ProducePacketName [05:53:35]name=ofd_packets/00119295 [05:53:35]OFD Sender: To server: pG, [05:53:35]CommunicateWithHost lk.salyk.kg:30040 [05:53:35]ConnectInit lk.salyk.kg [05:53:36]Write to MH i2c: 01 00 00 FB 04 FF [05:53:36]Write i2c OK [05:53:36]MH_I2C_Read... [05:53:36]Read from MH i2c: 01 [05:53:36]MH_I2C_Read... [05:53:36]Read from MH i2c: 01 07 00 [05:53:36]MH_I2C_Read... [05:53:36]Read from MH i2c: 01 07 00 FB 04 00 00 00 00 00 D1 0C E3 [05:53:36]RasterBufferAndPrint [05:53:36]line [05:53:36]line [05:53:36]line [05:53:36]line [05:53:36]line [05:53:36]written 0, free lines is 3288 [05:53:36]MH_Cut [05:53:36]Write to MH i2c: D1 01 00 02 05 01 D9 [05:53:36]Write i2c OK [05:53:36]MH_I2C_Read... [05:53:36]Read from MH i2c: D1 [05:53:36]MH_I2C_Read... [05:53:36]Read from MH i2c: D1 01 00 [05:53:36]MH_I2C_Read... [05:53:36]Read from MH i2c: D1 01 00 02 05 00 D8 [05:53:36]Write to MH i2c: 01 00 00 03 05 08 [05:53:36]Write i2c OK [05:53:36]MH_I2C_Read... [05:53:37]*** Cut start [05:53:37]*** Partial cut [05:53:37]*** CUTSNS_PIN = 1 [05:53:37]*** CUTSNS_PIN = 0 [05:53:37]*** Brake cut motor [05:53:37]Read from MH i2c: 01 [05:53:37]MH_I2C_Read... [05:53:37]*** Stop cut motor [05:53:37]*** Cut end [05:53:37]Read from MH i2c: 01 07 00 [05:53:37]MH_I2C_Read... [05:53:37]Read from MH i2c: 01 07 00 03 05 00 00 00 00 00 FF 0F 1D [05:53:37]process_action close_receipt done [05:53:37]requested_data is exist [05:53:37]produce_requested_data [05:53:37]requested_item fm.sn is exist - process it [05:53:37]wFMCommunicate request_size=4 [05:53:37]MH_SAM_APDU [05:53:37]CAPDU: 80 11 00 00 [05:53:37]Write to MH i2c: E2 08 00 04 05 80 11 00 00 00 00 00 00 83 [05:53:37]Write i2c OK [05:53:37]MH_I2C_Read... [05:53:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:53:37]Read from MH i2c: E2 [05:53:37]MH_I2C_Read... [05:53:37]Read from MH i2c: E2 17 00 [05:53:37]MH_I2C_Read... [05:53:37]Read from MH i2c: E2 17 00 04 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DE [05:53:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [05:53:37]wFMCommunicate OK [05:53:37]requested_item fd.num is exist - process it [05:53:37]SAM_PROTO_GetFieldsCounters [05:53:37]wFMCommunicate request_size=4 [05:53:37]MH_SAM_APDU [05:53:37]CAPDU: 80 13 00 00 [05:53:37]Write to MH i2c: E2 08 00 05 05 80 13 00 00 00 00 00 00 86 [05:53:37]Write i2c OK [05:53:37]MH_I2C_Read... [05:53:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:53:37]Read from MH i2c: E2 [05:53:37]MH_I2C_Read... [05:53:37]Read from MH i2c: E2 62 00 [05:53:37]MH_I2C_Read... [05:53:37]Read from MH i2c: E2 62 00 05 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FF D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [05:53: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FF D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:53:37]wFMCommunicate OK [05:53:37]SAM_PROTO_GetFieldsCounters done [05:53:37]requested_item shift.num is exist - process it [05:53:37]requested_item shift.opened is exist - process it [05:53:37]req_shift_opened [05:53:37]FM_GetShiftState [05:53:37]SAM_PROTO_GetShiftState [05:53:37]wFMCommunicate request_size=4 [05:53:37]MH_SAM_APDU [05:53:37]CAPDU: 80 13 01 00 [05:53:37]Write to MH i2c: E2 08 00 06 05 80 13 01 00 00 00 00 00 88 [05:53:37]Write i2c OK [05:53:37]MH_I2C_Read... [05:53:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:53:37]Read from MH i2c: E2 [05:53:37]MH_I2C_Read... [05:53:37]Read from MH i2c: E2 0E 00 [05:53:37]MH_I2C_Read... [05:53:37]Read from MH i2c: E2 0E 00 06 05 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 20 [05:53:37]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [05:53:37]wFMCommunicate OK [05:53:37]SAM_PROTO_GetShiftState done [05:53:37]FM_GetShiftState done [05:53:37]req_shift_opened done [05:53:37]requested_item shift.open_date is exist - process it [05:53:37]req_shift_open_date [05:53:37]req_shift_open_date done [05:53:37]produce_requested_data done [05:53:37]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119295,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [05:53:37]process_action_free close_receipt [05:53:37]json_value_free [05:53:37]json_value_free done [05:53:37]process_json_proto returns [05:53:37]Send response to host [05:53:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119295,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [05:53:37]free response buf [05:53:37]execute_script done [05:53:37]execute_script returns [05:53:37]free content buf [05:53:37]Sock 9.Close socket [05:53:37]Sock 9.Thread stoped [05:55:47]ConnectInit Can't connect to host [05:55:47]CommunicateWithHost connect error [05:55:47]CommunicateWithHost err = -1 [05:55:47]OFD Sender: Server communicate error [05:55:52]OFD Sender: Processing packet 119295 [packets to send 86, broken 85] [05:55:52]ProducePacketName [05:55:52]name=ofd_packets/00119295 [05:55:52]OFD Sender: To server: pG, [05:55:52]CommunicateWithHost lk.salyk.kg:30040 [05:55:52]ConnectInit lk.salyk.kg [05:55:52]Connected sock=9 [05:55: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 39 33 39 0F 01 00 00 A7 DB 07 01 89 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 1A 00 00 00 F4 03 04 00 5F D1 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FF D1 01 00 35 04 06 00 14 10 0C 6A B2 EB 83 F2 2C 26 45 00 89 91 [05:55:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 01 AF 47 00 52 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FF D1 01 00 F4 03 04 00 70 7F A9 66 B6 04 01 00 00 D3 80 40 03 C8 4D 9F BA [05:55:52]CommunicateWithHost err = 0 [05:55:52]CheckOFDResponse [05:55:52]1017 (14) - 77093643461234 [05:55:52]1041 (16) - 0000000000874939 [05:55:52]1040 (4) - 119295 [05:55:52]1012 (4) - 31.07.2024 00:04 [05:55:52]1206 (1) - 0 [05:55:52]OFD Sender: Remove packet 119295 [05:55:52]ProducePacketName [05:55:52]name=ofd_packets/00119295 [05:55:52]NVStorageDeleteData [05:55:52]OFD Sender: No OFD packet to send [05:55:57]OFD Sender: No OFD packet to send [05:56:02]OFD Sender: No OFD packet to send [05:56:07]OFD Sender: No OFD packet to send [05:56:12]OFD Sender: No OFD packet to send [05:56:17]OFD Sender: No OFD packet to send [05:56:22]OFD Sender: No OFD packet to send [05:56:27]OFD Sender: No OFD packet to send [05:56:32]OFD Sender: No OFD packet to send [05:56:37]OFD Sender: No OFD packet to send [05:56:42]OFD Sender: No OFD packet to send [05:56:47]OFD Sender: No OFD packet to send [05:56:52]OFD Sender: No OFD packet to send [05:56:57]OFD Sender: No OFD packet to send [05:57:02]OFD Sender: No OFD packet to send [05:57:07]OFD Sender: No OFD packet to send [05:57:12]OFD Sender: No OFD packet to send [05:57:17]OFD Sender: No OFD packet to send [05:57:22]OFD Sender: No OFD packet to send [05:57:27]OFD Sender: No OFD packet to send [05:57:32]OFD Sender: No OFD packet to send [05:57:37]OFD Sender: No OFD packet to send [05:57:42]OFD Sender: No OFD packet to send [05:57:47]OFD Sender: No OFD packet to send [05:57:52]OFD Sender: No OFD packet to send [05:57:57]OFD Sender: No OFD packet to send [05:58:02]OFD Sender: No OFD packet to send [05:58:07]OFD Sender: No OFD packet to send [05:58:13]OFD Sender: No OFD packet to send [05:58:18]OFD Sender: No OFD packet to send [05:58:23]OFD Sender: No OFD packet to send [05:58:28]OFD Sender: No OFD packet to send [05:58:33]OFD Sender: No OFD packet to send [05:58:38]OFD Sender: No OFD packet to send [05:58:43]OFD Sender: No OFD packet to send [05:58:48]OFD Sender: No OFD packet to send [05:58:53]OFD Sender: No OFD packet to send [05:58:58]OFD Sender: No OFD packet to send [05:59:03]OFD Sender: No OFD packet to send [05:59:08]OFD Sender: No OFD packet to send [05:59:13]OFD Sender: No OFD packet to send [05:59:18]OFD Sender: No OFD packet to send [05:59:23]OFD Sender: No OFD packet to send [05:59:28]OFD Sender: No OFD packet to send [05:59:33]OFD Sender: No OFD packet to send [05:59:38]OFD Sender: No OFD packet to send [05:59:43]OFD Sender: No OFD packet to send [05:59:48]OFD Sender: No OFD packet to send [05:59:53]OFD Sender: No OFD packet to send [05:59:58]OFD Sender: No OFD packet to send [06:00:03]OFD Sender: No OFD packet to send [06:00:08]OFD Sender: No OFD packet to send [06:00:13]OFD Sender: No OFD packet to send [06:00:18]OFD Sender: No OFD packet to send [06:00:23]OFD Sender: No OFD packet to send [06:00:28]OFD Sender: No OFD packet to send [06:00:33]OFD Sender: No OFD packet to send [06:00:38]OFD Sender: No OFD packet to send [06:00:43]OFD Sender: No OFD packet to send [06:00:48]OFD Sender: No OFD packet to send [06:00:53]OFD Sender: No OFD packet to send [06:00:58]OFD Sender: No OFD packet to send [06:01:03]OFD Sender: No OFD packet to send [06:01:08]OFD Sender: No OFD packet to send [06:01:13]OFD Sender: No OFD packet to send [06:01:18]OFD Sender: No OFD packet to send [06:01:23]OFD Sender: No OFD packet to send [06:01:28]OFD Sender: No OFD packet to send [06:01:33]OFD Sender: No OFD packet to send [06:01:38]OFD Sender: No OFD packet to send [06:01:43]OFD Sender: No OFD packet to send [06:01:48]OFD Sender: No OFD packet to send [06:01:53]OFD Sender: No OFD packet to send [06:01:58]OFD Sender: No OFD packet to send [06:02:03]OFD Sender: No OFD packet to send [06:02:08]OFD Sender: No OFD packet to send [06:02:13]OFD Sender: No OFD packet to send [06:02:18]OFD Sender: No OFD packet to send [06:02:23]OFD Sender: No OFD packet to send [06:02:28]OFD Sender: No OFD packet to send [06:02:33]OFD Sender: No OFD packet to send [06:02:38]OFD Sender: No OFD packet to send [06:02:43]OFD Sender: No OFD packet to send [06:02:48]OFD Sender: No OFD packet to send [06:02:53]OFD Sender: No OFD packet to send [06:02:58]OFD Sender: No OFD packet to send [06:03:03]OFD Sender: No OFD packet to send [06:03:08]OFD Sender: No OFD packet to send [06:03:13]OFD Sender: No OFD packet to send [06:03:18]OFD Sender: No OFD packet to send [06:03:23]OFD Sender: No OFD packet to send [06:03:28]OFD Sender: No OFD packet to send [06:03:33]OFD Sender: No OFD packet to send [06:03:38]OFD Sender: No OFD packet to send [06:03:43]OFD Sender: No OFD packet to send [06:03:48]OFD Sender: No OFD packet to send [06:03:53]OFD Sender: No OFD packet to send [06:03:58]OFD Sender: No OFD packet to send [06:04:03]OFD Sender: No OFD packet to send [06:04:08]OFD Sender: No OFD packet to send [06:04:13]OFD Sender: No OFD packet to send [06:04:18]OFD Sender: No OFD packet to send [06:04:23]OFD Sender: No OFD packet to send [06:04:28]OFD Sender: No OFD packet to send [06:04:33]OFD Sender: No OFD packet to send [06:04:38]OFD Sender: No OFD packet to send [06:04:43]OFD Sender: No OFD packet to send [06:04:48]OFD Sender: No OFD packet to send [06:04:53]OFD Sender: No OFD packet to send [06:04:58]OFD Sender: No OFD packet to send [06:05:03]OFD Sender: No OFD packet to send [06:05:08]OFD Sender: No OFD packet to send [06:05:13]OFD Sender: No OFD packet to send [06:05:18]OFD Sender: No OFD packet to send [06:05:23]OFD Sender: No OFD packet to send [06:05:28]OFD Sender: No OFD packet to send [06:05:33]OFD Sender: No OFD packet to send [06:05:38]OFD Sender: No OFD packet to send [06:05:43]OFD Sender: No OFD packet to send [06:05:48]OFD Sender: No OFD packet to send [06:05:53]OFD Sender: No OFD packet to send [06:05:58]OFD Sender: No OFD packet to send [06:06:03]OFD Sender: No OFD packet to send [06:06:08]OFD Sender: No OFD packet to send [06:06:13]OFD Sender: No OFD packet to send [06:06:18]OFD Sender: No OFD packet to send [06:06:23]OFD Sender: No OFD packet to send [06:06:28]OFD Sender: No OFD packet to send [06:06:33]OFD Sender: No OFD packet to send [06:06:38]OFD Sender: No OFD packet to send [06:06:43]OFD Sender: No OFD packet to send [06:06:48]OFD Sender: No OFD packet to send [06:06:53]OFD Sender: No OFD packet to send [06:06:58]OFD Sender: No OFD packet to send [06:07:03]OFD Sender: No OFD packet to send [06:07:08]OFD Sender: No OFD packet to send [06:07:13]OFD Sender: No OFD packet to send [06:07:18]OFD Sender: No OFD packet to send [06:07:23]OFD Sender: No OFD packet to send [06:07:28]OFD Sender: No OFD packet to send [06:07:33]OFD Sender: No OFD packet to send [06:07:38]OFD Sender: No OFD packet to send [06:07:43]OFD Sender: No OFD packet to send [06:07:48]OFD Sender: No OFD packet to send [06:07:53]OFD Sender: No OFD packet to send [06:07:58]OFD Sender: No OFD packet to send [06:08:03]OFD Sender: No OFD packet to send [06:08:08]OFD Sender: No OFD packet to send [06:08:13]OFD Sender: No OFD packet to send [06:08:18]OFD Sender: No OFD packet to send [06:08:23]OFD Sender: No OFD packet to send [06:08:28]OFD Sender: No OFD packet to send [06:08:33]OFD Sender: No OFD packet to send [06:08:38]OFD Sender: No OFD packet to send [06:08:43]OFD Sender: No OFD packet to send [06:08:48]OFD Sender: No OFD packet to send [06:08:53]OFD Sender: No OFD packet to send [06:08:58]OFD Sender: No OFD packet to send [06:09:03]OFD Sender: No OFD packet to send [06:09:08]OFD Sender: No OFD packet to send [06:09:13]OFD Sender: No OFD packet to send [06:09:18]OFD Sender: No OFD packet to send [06:09:23]OFD Sender: No OFD packet to send [06:09:28]OFD Sender: No OFD packet to send [06:09:33]OFD Sender: No OFD packet to send [06:09:38]OFD Sender: No OFD packet to send [06:09:43]OFD Sender: No OFD packet to send [06:09:48]OFD Sender: No OFD packet to send [06:09:53]OFD Sender: No OFD packet to send [06:09:58]OFD Sender: No OFD packet to send [06:10:03]OFD Sender: No OFD packet to send [06:10:08]OFD Sender: No OFD packet to send [06:10:13]OFD Sender: No OFD packet to send [06:10:17]accept exits with 8 [06:10:17]New connection [06:10:17]New thread 3067194724 created [06:10:17]Thread 3067338084 joined [06:10:17]Waiting for new connection... [06:10:17] Sock 8.Parse request [06:10:17]Sock 8.Check first char [06:10:17]Sock 8.First char is OK [06:10:17]request: POST /json_proto HTTP/1.0 [06:10:17]Method: POST [06:10:17]URL: /json_proto [06:10:17]Method is POST - this is cgi request [06:10:17]url: /json_proto [06:10:17]query_string will be loaded in cgi processing [06:10:17]execute_cgi json_proto POST (null) [06:10:17]execute_cgi path=json_proto method=POST [06:10:17]POST find Content-Length [06:10:17]Host: 172.17.45.7:8080 [06:10:17]Content-Length: 677 [06:10:17]Content-Type: application/json [06:10:17] [06:10:17]POST finish read [06:10:17]Found Content-Length = 677 [06:10:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:10:17]execute_script... [06:10:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:10:17]POST & json_proto [06:10:17]process_json_proto [06:10:17]json parsed OK: [06:10:17]protocol is kg_v1.0 [06:10:17]action value=close_receipt [06:10:17]process_action close_receipt [06:10:17]cmd_close_receipt [06:10:17]MH_GetDate [06:10:17]Write to MH i2c: F0 00 00 07 05 FB [06:10:17]Write i2c OK [06:10:17]MH_I2C_Read... [06:10:17]Read from MH i2c: F0 [06:10:17]MH_I2C_Read... [06:10:17]Read from MH i2c: F0 09 00 [06:10:17]MH_I2C_Read... [06:10:17]Read from MH i2c: F0 09 00 07 05 00 4A D5 A9 66 90 0F 3E 66 75 [06:10:17]GetLastDocTimeStamp 1722405215 [06:10:17]current date 1722406218 [06:10:17]FM_GetShiftState [06:10:17]SAM_PROTO_GetShiftState [06:10:17]wFMCommunicate request_size=4 [06:10:17]MH_SAM_APDU [06:10:17]CAPDU: 80 13 01 00 [06:10:17]Write to MH i2c: E2 08 00 08 05 80 13 01 00 00 00 00 00 8A [06:10:17]Write i2c OK [06:10:17]MH_I2C_Read... [06:10:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:10:17]Read from MH i2c: E2 [06:10:17]MH_I2C_Read... [06:10:17]Read from MH i2c: E2 0E 00 [06:10:17]MH_I2C_Read... [06:10:17]Read from MH i2c: E2 0E 00 08 05 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 22 [06:10:17]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [06:10:17]wFMCommunicate OK [06:10:17]SAM_PROTO_GetShiftState done [06:10:17]FM_GetShiftState done [06:10:17]opened in 1722384637 [06:10:17]opened+sec_in_day 1722471037 [06:10:17]quantity*price = 50036 [06:10:17]sum+1 = 50037 [06:10:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 27 31.07.2024 06:10 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119296 ФПД: 136024247564151 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T061018&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119296&fm=136024247564151&tin=02508201610067®Number=0000000000092660&sum=50000 [06:10:18]StoreToDocumentArchive [06:10:18]shift 436 fd 119296 [06:10:18]save to /storage/0436/doc_00119296 [06:10:18]save last doc name /storage/0436/doc_00119296 to /storage/kkm_last_doc_name [06:10:18]save OK [06:10:18]Clear old archive folders... [06:10:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:10:18]tlvbuf is 00B21470 [06:10:18]SAM_PROTO_ClearQueue [06:10:18]wFMCommunicate request_size=4 [06:10:18]MH_SAM_APDU [06:10:18]CAPDU: 80 09 00 00 [06:10:18]Write to MH i2c: E2 08 00 15 05 80 09 00 00 00 00 00 00 8C [06:10:18]Write i2c OK [06:10:18]MH_I2C_Read... [06:10:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:10:18]Read from MH i2c: E2 [06:10:18]MH_I2C_Read... [06:10:18]Read from MH i2c: E2 03 00 [06:10:18]MH_I2C_Read... [06:10:18]Read from MH i2c: E2 03 00 15 05 00 90 00 8E [06:10:18]RAPDU: 90 00 [06:10:18]wFMCommunicate OK [06:10:18]SAM_PROTO_ClearQueue done [06:10:18]KKMCreateOFDPacket [06:10:18]OFDProtocolAddRootSTLVToBuf [06:10:18]FM_MakeSignedData [06:10:18]FM_MakeSignedData [06:10:18]SAM_PROTO_SignData [06:10:18]wFMCommunicate request_size=4 [06:10:18]MH_SAM_APDU [06:10:18]CAPDU: 80 0D 01 02 [06:10:18]Write to MH i2c: E2 08 00 16 05 80 0D 01 02 00 00 00 00 94 [06:10:18]Write i2c OK [06:10:18]MH_I2C_Read... [06:10:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:10:18]Read from MH i2c: E2 [06:10:18]MH_I2C_Read... [06:10:18]Read from MH i2c: E2 03 00 [06:10:18]MH_I2C_Read... [06:10:18]Read from MH i2c: E2 03 00 16 05 00 90 00 8F [06:10:18]RAPDU: 90 00 [06:10:18]wFMCommunicate OK [06:10:18]wFMCommunicate request_size=255 [06:10:18]MH_SAM_APDU [06:10:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 4A D5 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 00 D2 01 00 35 04 06 00 7B [06:10:18]Write to MH i2c: E2 02 01 17 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 4A D5 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 00 D2 01 00 35 04 06 00 7B 00 00 64 [06:10:18]Write i2c OK [06:10:18]MH_I2C_Read... [06:10:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:10:18]Read from MH i2c: E2 [06:10:18]MH_I2C_Read... [06:10:18]Read from MH i2c: E2 03 00 [06:10:18]MH_I2C_Read... [06:10:18]Read from MH i2c: E2 03 00 17 05 00 90 00 90 [06:10:18]RAPDU: 90 00 [06:10:18]wFMCommunicate OK [06:10:18]wFMCommunicate request_size=10 [06:10:18]MH_SAM_APDU [06:10:18]CAPDU: 80 0D 02 02 05 B6 9C F4 F7 77 [06:10:18]Write to MH i2c: E2 0D 00 18 05 80 0D 02 02 05 00 B6 9C F4 F7 77 00 00 55 [06:10:18]Write i2c OK [06:10:18]MH_I2C_Read... [06:10:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:10:18]Read from MH i2c: E2 [06:10:18]MH_I2C_Read... [06:10:18]Read from MH i2c: E2 03 00 [06:10:18]MH_I2C_Read... [06:10:18]Read from MH i2c: E2 03 00 18 05 00 90 00 91 [06:10:18]RAPDU: 90 00 [06:10:18]wFMCommunicate OK [06:10:18]wFMCommunicate request_size=4 [06:10:18]MH_SAM_APDU [06:10:18]CAPDU: 80 0D 03 02 [06:10:18]Write to MH i2c: E2 08 00 19 05 80 0D 03 02 00 00 00 00 99 [06:10:18]Write i2c OK [06:10:18]MH_I2C_Read... [06:10:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:10:18]Read from MH i2c: E2 [06:10:18]MH_I2C_Read... [06:10:18]Read from MH i2c: E2 0B 00 [06:10:18]MH_I2C_Read... [06:10:18]Read from MH i2c: E2 0B 00 19 05 00 8C EE 71 E5 C1 08 EE F9 90 00 1A [06:10:18]RAPDU: 8C EE 71 E5 C1 08 EE F9 90 00 [06:10:18]wFMCommunicate OK [06:10:18]SAM_PROTO_SignData done [06:10:18]FM_MakeSignedData done [06:10:18]CreateOFDProtocolMessage [06:10:18]wFMCommunicate request_size=4 [06:10:18]MH_SAM_APDU [06:10:18]CAPDU: 80 11 00 00 [06:10:18]Write to MH i2c: E2 08 00 1A 05 80 11 00 00 00 00 00 00 99 [06:10:18]Write i2c OK [06:10:18]MH_I2C_Read... [06:10:18]OFD Sender: No OFD packet to send [06:10:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:10:18]Read from MH i2c: E2 [06:10:18]MH_I2C_Read... [06:10:18]Read from MH i2c: E2 17 00 [06:10:18]MH_I2C_Read... [06:10:18]Read from MH i2c: E2 17 00 1A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F4 [06:10:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:10:18]wFMCommunicate OK [06:10:18]CreateOFDProtocolMessage done [06:10:18]OFDSenderStorePacket 119296 [06:10:18]StoreOFDPacket docnum=119296 [06:10:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 8A 8D 07 01 38 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 4A D5 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 00 D2 01 00 35 04 06 00 7B B6 9C F4 F7 77 8C EE 71 E5 C1 08 EE F9 [06:10:18]CheckFolder [06:10:18]dirname=/storage/ofd_packets [06:10:18]CheckFolder done [06:10:18]ProducePacketName [06:10:18]name=ofd_packets/00119296 [06:10:18]NVStorageSaveData ofd_packets/00119296 [06:10:18]File name is /storage/ofd_packets/00119296 [06:10:18]Write 301 bytes [06:10:18]NVStorageSaveData done [06:10:18]OFDSenderStorePacket done [06:10:18]KKMCreateOFDPacket done [06:10:18]NVStorageSaveData kkm_last_timestamp [06:10:18]File name is /storage/kkm_last_timestamp [06:10:18]Write 4 bytes [06:10:18]NVStorageSaveData done [06:10:18]ExternCall_PrintAddStr [06:10:18]wPrintStart [06:10:18]Write to MH i2c: 01 00 00 1B 05 20 [06:10:18]Write i2c OK [06:10:18]MH_I2C_Read... [06:10:18]Read from MH i2c: 01 [06:10:18]MH_I2C_Read... [06:10:18]Read from MH i2c: 01 07 00 [06:10:18]MH_I2C_Read... [06:10:18]Read from MH i2c: 01 07 00 1B 05 00 00 00 00 00 FF 0F 35 [06:10:18]RasterBufferAndPrint [06:10:18]line Счет N : (1)950222 [06:10:18]line ИНН: 02508201610067 [06:10:18]line Контрольно-Кассовый Чек [06:10:18]line ПРОДАЖА [06:10:18]line ТРК (МРК, ГНК) : 41 [06:10:18]line Товар: 2710124130 [06:10:18]line Аи-92-К-4 [06:10:18]line 7.380 * 67.80 [06:10:18]line = 500.36 [06:10:18]line НДС 12% НСП 1% [06:10:18]line > о реализуемом товаре [06:10:18]line ОКРУГЛЕНИЕ: -0.36 [06:10:18]line ИТОГО: 500.00 [06:10:18]line Внесено: 500.00 [06:10:18]line СДАЧА: 0.00 [06:10:18]line НСП 1% : 4.43 [06:10:18]line НДС 12% : 53.14 [06:10:18]line Наличными: 500.00 [06:10:18]line Безнал.: 0.00 [06:10:18]line Место: АЗС № 134 "Партнер Нефть" [06:10:18]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:10:18]line СНО: Общий режим [06:10:18]line Чек 27 31.07.2024 06:10 [06:10:18]line Смена: 436 ФФД: 1.0 [06:10:18]line ЗНМ: 0300000044 [06:10:18]line РНМ: 0000000000092660 [06:10:18]line Версия ККМ: 001 [06:10:18]line ФМ: 0000000000874939 [06:10:18]line ФД: 119296 [06:10:18]line ФПД: 136024247564151 [06:10:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T061018&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119296&fm=136024247564151&tin=02508201610067®Number=0000000000092660&sum=50000 [06:10:19]OFD Sender: Processing packet 119296 [packets to send 86, broken 85] [06:10:19]ProducePacketName [06:10:19]name=ofd_packets/00119296 [06:10:19]OFD Sender: To server: pG, [06:10:19]CommunicateWithHost lk.salyk.kg:30040 [06:10:19]ConnectInit lk.salyk.kg [06:10:19]written 0, free lines is 4095 [06:10:19]Connected sock=10 [06:10: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 39 33 39 0F 01 00 00 8A 8D 07 01 38 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 4A D5 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 00 D2 01 00 35 04 06 00 7B B6 9C F4 F7 77 8C EE 71 E5 C1 08 EE F9 [06:10:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 6C 89 47 00 9E 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 39 33 39 10 04 04 00 00 D2 01 00 F4 03 04 00 D3 82 A9 66 B6 04 01 00 00 F4 9D F4 52 D2 7D 09 7F [06:10:19]CommunicateWithHost err = 0 [06:10:19]CheckOFDResponse [06:10:19]1017 (14) - 77093643461234 [06:10:19]1041 (16) - 0000000000874939 [06:10:19]1040 (4) - 119296 [06:10:19]1012 (4) - 31.07.2024 00:18 [06:10:19]1206 (1) - 0 [06:10:19]OFD Sender: Remove packet 119296 [06:10:19]ProducePacketName [06:10:19]name=ofd_packets/00119296 [06:10:19]NVStorageDeleteData [06:10:19]Write to MH i2c: 01 00 00 45 05 4A [06:10:19]Write i2c OK [06:10:19]MH_I2C_Read... [06:10:19]Read from MH i2c: 01 [06:10:19]MH_I2C_Read... [06:10:19]Read from MH i2c: 01 07 00 [06:10:19]MH_I2C_Read... [06:10:19]Read from MH i2c: 01 07 00 45 05 00 00 00 00 00 D5 0C 32 [06:10:19]RasterBufferAndPrint [06:10:19]line [06:10:19]line [06:10:19]line [06:10:19]line [06:10:19]line [06:10:19]written 0, free lines is 3293 [06:10:19]MH_Cut [06:10:19]Write to MH i2c: D1 01 00 4C 05 01 23 [06:10:19]Write i2c OK [06:10:19]MH_I2C_Read... [06:10:19]Read from MH i2c: D1 [06:10:19]MH_I2C_Read... [06:10:19]Read from MH i2c: D1 01 00 [06:10:19]MH_I2C_Read... [06:10:19]Read from MH i2c: D1 01 00 4C 05 00 22 [06:10:19]Write to MH i2c: 01 00 00 4D 05 52 [06:10:19]Write i2c OK [06:10:19]MH_I2C_Read... [06:10:19]OFD Sender: No OFD packet to send [06:10:20]*** Cut start [06:10:20]*** Partial cut [06:10:20]*** CUTSNS_PIN = 1 [06:10:20]*** CUTSNS_PIN = 0 [06:10:20]*** Brake cut motor [06:10:20]Read from MH i2c: 01 [06:10:20]MH_I2C_Read... [06:10:20]*** Stop cut motor [06:10:20]*** Cut end [06:10:20]Read from MH i2c: 01 07 00 [06:10:20]MH_I2C_Read... [06:10:20]Read from MH i2c: 01 07 00 4D 05 00 00 00 00 00 FF 0F 67 [06:10:20]process_action close_receipt done [06:10:20]requested_data is exist [06:10:20]produce_requested_data [06:10:20]requested_item fm.sn is exist - process it [06:10:20]wFMCommunicate request_size=4 [06:10:20]MH_SAM_APDU [06:10:20]CAPDU: 80 11 00 00 [06:10:20]Write to MH i2c: E2 08 00 4E 05 80 11 00 00 00 00 00 00 CD [06:10:20]Write i2c OK [06:10:20]MH_I2C_Read... [06:10:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:10:21]Read from MH i2c: E2 [06:10:21]MH_I2C_Read... [06:10:21]Read from MH i2c: E2 17 00 [06:10:21]MH_I2C_Read... [06:10:21]Read from MH i2c: E2 17 00 4E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 28 [06:10:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:10:21]wFMCommunicate OK [06:10:21]requested_item fd.num is exist - process it [06:10:21]SAM_PROTO_GetFieldsCounters [06:10:21]wFMCommunicate request_size=4 [06:10:21]MH_SAM_APDU [06:10:21]CAPDU: 80 13 00 00 [06:10:21]Write to MH i2c: E2 08 00 4F 05 80 13 00 00 00 00 00 00 D0 [06:10:21]Write i2c OK [06:10:21]MH_I2C_Read... [06:10:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:10:21]Read from MH i2c: E2 [06:10:21]MH_I2C_Read... [06:10:21]Read from MH i2c: E2 62 00 [06:10:21]MH_I2C_Read... [06:10:21]Read from MH i2c: E2 62 00 4F 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 00 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [06:10:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 00 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:10:21]wFMCommunicate OK [06:10:21]SAM_PROTO_GetFieldsCounters done [06:10:21]requested_item shift.num is exist - process it [06:10:21]requested_item shift.opened is exist - process it [06:10:21]req_shift_opened [06:10:21]FM_GetShiftState [06:10:21]SAM_PROTO_GetShiftState [06:10:21]wFMCommunicate request_size=4 [06:10:21]MH_SAM_APDU [06:10:21]CAPDU: 80 13 01 00 [06:10:21]Write to MH i2c: E2 08 00 50 05 80 13 01 00 00 00 00 00 D2 [06:10:21]Write i2c OK [06:10:21]MH_I2C_Read... [06:10:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:10:21]Read from MH i2c: E2 [06:10:21]MH_I2C_Read... [06:10:21]Read from MH i2c: E2 0E 00 [06:10:21]MH_I2C_Read... [06:10:21]Read from MH i2c: E2 0E 00 50 05 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 6A [06:10:21]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [06:10:21]wFMCommunicate OK [06:10:21]SAM_PROTO_GetShiftState done [06:10:21]FM_GetShiftState done [06:10:21]req_shift_opened done [06:10:21]requested_item shift.open_date is exist - process it [06:10:21]req_shift_open_date [06:10:21]req_shift_open_date done [06:10:21]produce_requested_data done [06:10:21]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119296,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [06:10:21]process_action_free close_receipt [06:10:21]json_value_free [06:10:21]json_value_free done [06:10:21]process_json_proto returns [06:10:21]Send response to host [06:10:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119296,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [06:10:21]free response buf [06:10:21]execute_script done [06:10:21]execute_script returns [06:10:21]free content buf [06:10:21]Sock 8.Close socket [06:10:21]Sock 8.Thread stoped [06:10:24]OFD Sender: No OFD packet to send [06:10:30]OFD Sender: No OFD packet to send [06:10:35]OFD Sender: No OFD packet to send [06:10:40]OFD Sender: No OFD packet to send [06:10:45]OFD Sender: No OFD packet to send [06:10:50]OFD Sender: No OFD packet to send [06:10:55]OFD Sender: No OFD packet to send [06:11:00]OFD Sender: No OFD packet to send [06:11:05]OFD Sender: No OFD packet to send [06:11:10]OFD Sender: No OFD packet to send [06:11:15]OFD Sender: No OFD packet to send [06:11:20]OFD Sender: No OFD packet to send [06:11:25]OFD Sender: No OFD packet to send [06:11:30]OFD Sender: No OFD packet to send [06:11:35]OFD Sender: No OFD packet to send [06:11:40]OFD Sender: No OFD packet to send [06:11:45]OFD Sender: No OFD packet to send [06:11:50]OFD Sender: No OFD packet to send [06:11:55]OFD Sender: No OFD packet to send [06:12:00]OFD Sender: No OFD packet to send [06:12:05]OFD Sender: No OFD packet to send [06:12:10]OFD Sender: No OFD packet to send [06:12:15]OFD Sender: No OFD packet to send [06:12:20]OFD Sender: No OFD packet to send [06:12:25]OFD Sender: No OFD packet to send [06:12:30]OFD Sender: No OFD packet to send [06:12:35]OFD Sender: No OFD packet to send [06:12:40]OFD Sender: No OFD packet to send [06:12:45]OFD Sender: No OFD packet to send [06:12:50]OFD Sender: No OFD packet to send [06:12:55]OFD Sender: No OFD packet to send [06:13:00]OFD Sender: No OFD packet to send [06:13:05]OFD Sender: No OFD packet to send [06:13:10]OFD Sender: No OFD packet to send [06:13:15]OFD Sender: No OFD packet to send [06:13:20]OFD Sender: No OFD packet to send [06:13:25]OFD Sender: No OFD packet to send [06:13:30]OFD Sender: No OFD packet to send [06:13:35]OFD Sender: No OFD packet to send [06:13:40]OFD Sender: No OFD packet to send [06:13:45]OFD Sender: No OFD packet to send [06:13:50]OFD Sender: No OFD packet to send [06:13:55]OFD Sender: No OFD packet to send [06:14:00]OFD Sender: No OFD packet to send [06:14:05]OFD Sender: No OFD packet to send [06:14:10]OFD Sender: No OFD packet to send [06:14:15]OFD Sender: No OFD packet to send [06:14:20]OFD Sender: No OFD packet to send [06:14:25]OFD Sender: No OFD packet to send [06:14:30]OFD Sender: No OFD packet to send [06:14:35]OFD Sender: No OFD packet to send [06:14:40]OFD Sender: No OFD packet to send [06:14:45]OFD Sender: No OFD packet to send [06:14:50]OFD Sender: No OFD packet to send [06:14:55]OFD Sender: No OFD packet to send [06:15:00]OFD Sender: No OFD packet to send [06:15:05]OFD Sender: No OFD packet to send [06:15:10]OFD Sender: No OFD packet to send [06:15:15]OFD Sender: No OFD packet to send [06:15:20]OFD Sender: No OFD packet to send [06:15:25]OFD Sender: No OFD packet to send [06:15:30]OFD Sender: No OFD packet to send [06:15:35]OFD Sender: No OFD packet to send [06:15:40]OFD Sender: No OFD packet to send [06:15:45]OFD Sender: No OFD packet to send [06:15:50]OFD Sender: No OFD packet to send [06:15:55]OFD Sender: No OFD packet to send [06:16:00]OFD Sender: No OFD packet to send [06:16:05]OFD Sender: No OFD packet to send [06:16:10]OFD Sender: No OFD packet to send [06:16:15]OFD Sender: No OFD packet to send [06:16:20]OFD Sender: No OFD packet to send [06:16:25]OFD Sender: No OFD packet to send [06:16:30]OFD Sender: No OFD packet to send [06:16:35]OFD Sender: No OFD packet to send [06:16:40]OFD Sender: No OFD packet to send [06:16:45]OFD Sender: No OFD packet to send [06:16:50]OFD Sender: No OFD packet to send [06:16:55]OFD Sender: No OFD packet to send [06:17:00]OFD Sender: No OFD packet to send [06:17:05]OFD Sender: No OFD packet to send [06:17:10]OFD Sender: No OFD packet to send [06:17:15]OFD Sender: No OFD packet to send [06:17:20]OFD Sender: No OFD packet to send [06:17:25]OFD Sender: No OFD packet to send [06:17:30]OFD Sender: No OFD packet to send [06:17:35]OFD Sender: No OFD packet to send [06:17:40]OFD Sender: No OFD packet to send [06:17:45]OFD Sender: No OFD packet to send [06:17:50]OFD Sender: No OFD packet to send [06:17:55]OFD Sender: No OFD packet to send [06:18:00]OFD Sender: No OFD packet to send [06:18:05]OFD Sender: No OFD packet to send [06:18:10]OFD Sender: No OFD packet to send [06:18:15]OFD Sender: No OFD packet to send [06:18:20]OFD Sender: No OFD packet to send [06:18:25]OFD Sender: No OFD packet to send [06:18:30]OFD Sender: No OFD packet to send [06:18:35]OFD Sender: No OFD packet to send [06:18:40]OFD Sender: No OFD packet to send [06:18:45]OFD Sender: No OFD packet to send [06:18:50]OFD Sender: No OFD packet to send [06:18:55]OFD Sender: No OFD packet to send [06:19:00]OFD Sender: No OFD packet to send [06:19:05]OFD Sender: No OFD packet to send [06:19:10]OFD Sender: No OFD packet to send [06:19:15]OFD Sender: No OFD packet to send [06:19:20]OFD Sender: No OFD packet to send [06:19:25]OFD Sender: No OFD packet to send [06:19:30]OFD Sender: No OFD packet to send [06:19:35]OFD Sender: No OFD packet to send [06:19:40]OFD Sender: No OFD packet to send [06:19:45]OFD Sender: No OFD packet to send [06:19:50]OFD Sender: No OFD packet to send [06:19:55]OFD Sender: No OFD packet to send [06:20:00]OFD Sender: No OFD packet to send [06:20:05]OFD Sender: No OFD packet to send [06:20:10]OFD Sender: No OFD packet to send [06:20:15]OFD Sender: No OFD packet to send [06:20:20]OFD Sender: No OFD packet to send [06:20:25]OFD Sender: No OFD packet to send [06:20:30]OFD Sender: No OFD packet to send [06:20:35]OFD Sender: No OFD packet to send [06:20:40]OFD Sender: No OFD packet to send [06:20:45]OFD Sender: No OFD packet to send [06:20:50]OFD Sender: No OFD packet to send [06:20:55]OFD Sender: No OFD packet to send [06:21:00]OFD Sender: No OFD packet to send [06:21:05]OFD Sender: No OFD packet to send [06:21:10]OFD Sender: No OFD packet to send [06:21:15]OFD Sender: No OFD packet to send [06:21:20]OFD Sender: No OFD packet to send [06:21:25]OFD Sender: No OFD packet to send [06:21:30]OFD Sender: No OFD packet to send [06:21:35]OFD Sender: No OFD packet to send [06:21:40]OFD Sender: No OFD packet to send [06:21:45]OFD Sender: No OFD packet to send [06:21:50]OFD Sender: No OFD packet to send [06:21:55]OFD Sender: No OFD packet to send [06:22:00]OFD Sender: No OFD packet to send [06:22:05]OFD Sender: No OFD packet to send [06:22:10]OFD Sender: No OFD packet to send [06:22:15]OFD Sender: No OFD packet to send [06:22:20]OFD Sender: No OFD packet to send [06:22:25]OFD Sender: No OFD packet to send [06:22:30]OFD Sender: No OFD packet to send [06:22:35]OFD Sender: No OFD packet to send [06:22:40]OFD Sender: No OFD packet to send [06:22:45]OFD Sender: No OFD packet to send [06:22:50]OFD Sender: No OFD packet to send [06:22:55]OFD Sender: No OFD packet to send [06:23:00]OFD Sender: No OFD packet to send [06:23:05]OFD Sender: No OFD packet to send [06:23:10]OFD Sender: No OFD packet to send [06:23:15]accept exits with 9 [06:23:15]New connection [06:23:15]New thread 3067338084 created [06:23:15]Thread 3067194724 joined [06:23:15]Waiting for new connection... [06:23:15] Sock 9.Parse request [06:23:15]Sock 9.Check first char [06:23:15]Sock 9.First char is OK [06:23:15]request: POST /json_proto HTTP/1.0 [06:23:15]Method: POST [06:23:15]URL: /json_proto [06:23:15]Method is POST - this is cgi request [06:23:15]url: /json_proto [06:23:15]query_string will be loaded in cgi processing [06:23:15]execute_cgi json_proto POST (null) [06:23:15]execute_cgi path=json_proto method=POST [06:23:15]POST find Content-Length [06:23:15]Host: 172.17.45.7:8080 [06:23:15]Content-Length: 679 [06:23:15]Content-Type: application/json [06:23:15] [06:23:15]POST finish read [06:23:15]Found Content-Length = 679 [06:23:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:23:15]execute_script... [06:23: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)950223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:23:15]POST & json_proto [06:23:15]process_json_proto [06:23:15]json parsed OK: [06:23:15]protocol is kg_v1.0 [06:23:15]action value=close_receipt [06:23:15]process_action close_receipt [06:23:15]cmd_close_receipt [06:23:15]MH_GetDate [06:23:15]Write to MH i2c: F0 00 00 51 05 45 [06:23:15]Write i2c OK [06:23:15]MH_I2C_Read... [06:23:15]Read from MH i2c: F0 [06:23:15]MH_I2C_Read... [06:23:15]Read from MH i2c: F0 09 00 [06:23:15]MH_I2C_Read... [06:23:15]Read from MH i2c: F0 09 00 51 05 00 54 D8 A9 66 90 0F 3E 66 CC [06:23:15]GetLastDocTimeStamp 1722406218 [06:23:15]current date 1722406996 [06:23:15]FM_GetShiftState [06:23:15]SAM_PROTO_GetShiftState [06:23:15]wFMCommunicate request_size=4 [06:23:15]MH_SAM_APDU [06:23:15]CAPDU: 80 13 01 00 [06:23:15]Write to MH i2c: E2 08 00 52 05 80 13 01 00 00 00 00 00 D4 [06:23:15]Write i2c OK [06:23:15]MH_I2C_Read... [06:23:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:23:15]Read from MH i2c: E2 [06:23:15]MH_I2C_Read... [06:23:15]Read from MH i2c: E2 0E 00 [06:23:15]MH_I2C_Read... [06:23:15]Read from MH i2c: E2 0E 00 52 05 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 6C [06:23:15]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [06:23:15]wFMCommunicate OK [06:23:15]SAM_PROTO_GetShiftState done [06:23:15]FM_GetShiftState done [06:23:15]opened in 1722384637 [06:23:15]opened+sec_in_day 1722471037 [06:23:15]quantity*price = 120015 [06:23:15]sum+1 = 120016 [06:23:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 28 31.07.2024 06:23 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119297 ФПД: 237579959717652 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T062316&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119297&fm=237579959717652&tin=02508201610067®Number=0000000000092660&sum=120000 [06:23:16]StoreToDocumentArchive [06:23:16]shift 436 fd 119297 [06:23:16]save to /storage/0436/doc_00119297 [06:23:16]save last doc name /storage/0436/doc_00119297 to /storage/kkm_last_doc_name [06:23:16]save OK [06:23:16]Clear old archive folders... [06:23:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:23:16]tlvbuf is 00AFA5F0 [06:23:16]SAM_PROTO_ClearQueue [06:23:16]wFMCommunicate request_size=4 [06:23:16]MH_SAM_APDU [06:23:16]CAPDU: 80 09 00 00 [06:23:16]Write to MH i2c: E2 08 00 5F 05 80 09 00 00 00 00 00 00 D6 [06:23:16]Write i2c OK [06:23:16]MH_I2C_Read... [06:23:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:23:16]Read from MH i2c: E2 [06:23:16]MH_I2C_Read... [06:23:16]Read from MH i2c: E2 03 00 [06:23:16]MH_I2C_Read... [06:23:16]Read from MH i2c: E2 03 00 5F 05 00 90 00 D8 [06:23:16]RAPDU: 90 00 [06:23:16]wFMCommunicate OK [06:23:16]SAM_PROTO_ClearQueue done [06:23:16]KKMCreateOFDPacket [06:23:16]OFDProtocolAddRootSTLVToBuf [06:23:16]FM_MakeSignedData [06:23:16]FM_MakeSignedData [06:23:16]SAM_PROTO_SignData [06:23:16]wFMCommunicate request_size=4 [06:23:16]MH_SAM_APDU [06:23:16]CAPDU: 80 0D 01 02 [06:23:16]Write to MH i2c: E2 08 00 60 05 80 0D 01 02 00 00 00 00 DE [06:23:16]Write i2c OK [06:23:16]MH_I2C_Read... [06:23:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:23:16]Read from MH i2c: E2 [06:23:16]MH_I2C_Read... [06:23:16]Read from MH i2c: E2 03 00 [06:23:16]MH_I2C_Read... [06:23:16]Read from MH i2c: E2 03 00 60 05 00 90 00 D9 [06:23:16]RAPDU: 90 00 [06:23:16]wFMCommunicate OK [06:23:16]wFMCommunicate request_size=255 [06:23:16]MH_SAM_APDU [06:23:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 54 D8 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 01 D2 01 00 35 04 06 00 D8 13 E5 1A [06:23:16]Write to MH i2c: E2 02 01 61 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 54 D8 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 01 D2 01 00 35 04 06 00 D8 13 E5 1A 00 00 A6 [06:23:17]Write i2c OK [06:23:17]MH_I2C_Read... [06:23:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:23:17]Read from MH i2c: E2 [06:23:17]MH_I2C_Read... [06:23:17]Read from MH i2c: E2 03 00 [06:23:17]MH_I2C_Read... [06:23:17]Read from MH i2c: E2 03 00 61 05 00 90 00 DA [06:23:17]RAPDU: 90 00 [06:23:17]wFMCommunicate OK [06:23:17]wFMCommunicate request_size=7 [06:23:17]MH_SAM_APDU [06:23:17]CAPDU: 80 0D 02 02 02 CF 14 [06:23:17]Write to MH i2c: E2 0A 00 62 05 80 0D 02 02 02 00 CF 14 00 00 C8 [06:23:17]Write i2c OK [06:23:17]MH_I2C_Read... [06:23:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:23:17]Read from MH i2c: E2 [06:23:17]MH_I2C_Read... [06:23:17]Read from MH i2c: E2 03 00 [06:23:17]MH_I2C_Read... [06:23:17]Read from MH i2c: E2 03 00 62 05 00 90 00 DB [06:23:17]RAPDU: 90 00 [06:23:17]wFMCommunicate OK [06:23:17]wFMCommunicate request_size=4 [06:23:17]MH_SAM_APDU [06:23:17]CAPDU: 80 0D 03 02 [06:23:17]Write to MH i2c: E2 08 00 63 05 80 0D 03 02 00 00 00 00 E3 [06:23:17]Write i2c OK [06:23:17]MH_I2C_Read... [06:23:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:23:17]Read from MH i2c: E2 [06:23:17]MH_I2C_Read... [06:23:17]Read from MH i2c: E2 0B 00 [06:23:17]MH_I2C_Read... [06:23:17]Read from MH i2c: E2 0B 00 63 05 00 AC 6C C6 D9 AC E7 20 DB 90 00 29 [06:23:17]RAPDU: AC 6C C6 D9 AC E7 20 DB 90 00 [06:23:17]wFMCommunicate OK [06:23:17]SAM_PROTO_SignData done [06:23:17]FM_MakeSignedData done [06:23:17]CreateOFDProtocolMessage [06:23:17]wFMCommunicate request_size=4 [06:23:17]MH_SAM_APDU [06:23:17]CAPDU: 80 11 00 00 [06:23:17]Write to MH i2c: E2 08 00 64 05 80 11 00 00 00 00 00 00 E3 [06:23:17]Write i2c OK [06:23:17]MH_I2C_Read... [06:23:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:23:17]Read from MH i2c: E2 [06:23:17]MH_I2C_Read... [06:23:17]Read from MH i2c: E2 17 00 [06:23:17]MH_I2C_Read... [06:23:17]Read from MH i2c: E2 17 00 64 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3E [06:23:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:23:17]wFMCommunicate OK [06:23:17]CreateOFDProtocolMessage done [06:23:17]OFDSenderStorePacket 119297 [06:23:17]StoreOFDPacket docnum=119297 [06:23:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 20 17 04 01 BD C5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 54 D8 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 01 D2 01 00 35 04 06 00 D8 13 E5 1A CF 14 AC 6C C6 D9 AC E7 20 DB [06:23:17]CheckFolder [06:23:17]dirname=/storage/ofd_packets [06:23:17]CheckFolder done [06:23:17]ProducePacketName [06:23:17]name=ofd_packets/00119297 [06:23:17]NVStorageSaveData ofd_packets/00119297 [06:23:17]File name is /storage/ofd_packets/00119297 [06:23:17]Write 298 bytes [06:23:17]NVStorageSaveData done [06:23:17]OFDSenderStorePacket done [06:23:17]KKMCreateOFDPacket done [06:23:17]NVStorageSaveData kkm_last_timestamp [06:23:17]File name is /storage/kkm_last_timestamp [06:23:17]Write 4 bytes [06:23:17]NVStorageSaveData done [06:23:17]ExternCall_PrintAddStr [06:23:17]wPrintStart [06:23:17]Write to MH i2c: 01 00 00 65 05 6A [06:23:17]Write i2c OK [06:23:17]MH_I2C_Read... [06:23:17]Read from MH i2c: 01 [06:23:17]MH_I2C_Read... [06:23:17]Read from MH i2c: 01 07 00 [06:23:17]MH_I2C_Read... [06:23:17]Read from MH i2c: 01 07 00 65 05 00 00 00 00 00 FF 0F 7F [06:23:17]RasterBufferAndPrint [06:23:17]line Счет N : (1)950223 [06:23:17]line ИНН: 02508201610067 [06:23:17]line Контрольно-Кассовый Чек [06:23:17]line ПРОДАЖА [06:23:17]line ТРК (МРК, ГНК) : 34 [06:23:17]line Товар: 2710194800 [06:23:17]line ДТ-К-5 [06:23:17]line 15.750 * 76.20 [06:23:17]line = 1200.15 [06:23:17]line НДС 12% НСП 1% [06:23:17]line > о реализуемом товаре [06:23:17]line ОКРУГЛЕНИЕ: -0.15 [06:23:17]line ИТОГО: 1200.00 [06:23:17]line Внесено: 1200.00 [06:23:17]line СДАЧА: 0.00 [06:23:17]line НСП 1% : 10.62 [06:23:17]line НДС 12% : 127.45 [06:23:17]line Наличными: 1200.00 [06:23:17]line Безнал.: 0.00 [06:23:17]line Место: АЗС № 134 "Партнер Нефть" [06:23:17]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:23:17]line СНО: Общий режим [06:23:17]line Чек 28 31.07.2024 06:23 [06:23:17]line Смена: 436 ФФД: 1.0 [06:23:17]line ЗНМ: 0300000044 [06:23:17]line РНМ: 0000000000092660 [06:23:17]line Версия ККМ: 001 [06:23:17]line ФМ: 0000000000874939 [06:23:17]line ФД: 119297 [06:23:17]line ФПД: 237579959717652 [06:23:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T062316&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119297&fm=237579959717652&tin=02508201610067®Number=0000000000092660&sum=120000 [06:23:17]OFD Sender: Processing packet 119297 [packets to send 86, broken 85] [06:23:17]ProducePacketName [06:23:17]name=ofd_packets/00119297 [06:23:17]OFD Sender: To server: pG, [06:23:17]CommunicateWithHost lk.salyk.kg:30040 [06:23:17]ConnectInit lk.salyk.kg [06:23:17]written 0, free lines is 4095 [06:23:17]Connected sock=10 [06:23: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 39 33 39 0C 01 00 00 20 17 04 01 BD C5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 54 D8 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 01 D2 01 00 35 04 06 00 D8 13 E5 1A CF 14 AC 6C C6 D9 AC E7 20 DB [06:23:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E8 51 47 00 F8 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 39 33 39 10 04 04 00 01 D2 01 00 F4 03 04 00 DE 85 A9 66 B6 04 01 00 00 FD 9B 6A A1 E0 68 09 B9 [06:23:18]CommunicateWithHost err = 0 [06:23:18]CheckOFDResponse [06:23:18]1017 (14) - 77093643461234 [06:23:18]1041 (16) - 0000000000874939 [06:23:18]1040 (4) - 119297 [06:23:18]1012 (4) - 31.07.2024 00:31 [06:23:18]1206 (1) - 0 [06:23:18]OFD Sender: Remove packet 119297 [06:23:18]ProducePacketName [06:23:18]name=ofd_packets/00119297 [06:23:18]NVStorageDeleteData [06:23:18]Write to MH i2c: 01 00 00 8F 05 94 [06:23:18]Write i2c OK [06:23:18]MH_I2C_Read... [06:23:18]Read from MH i2c: 01 [06:23:18]MH_I2C_Read... [06:23:18]Read from MH i2c: 01 07 00 [06:23:18]MH_I2C_Read... [06:23:18]Read from MH i2c: 01 07 00 8F 05 00 00 00 00 00 D9 0C 80 [06:23:18]RasterBufferAndPrint [06:23:18]line [06:23:18]line [06:23:18]line [06:23:18]line [06:23:18]line [06:23:18]written 0, free lines is 3294 [06:23:18]MH_Cut [06:23:18]Write to MH i2c: D1 01 00 96 05 01 6D [06:23:18]Write i2c OK [06:23:18]MH_I2C_Read... [06:23:18]Read from MH i2c: D1 [06:23:18]MH_I2C_Read... [06:23:18]Read from MH i2c: D1 01 00 [06:23:18]MH_I2C_Read... [06:23:18]Read from MH i2c: D1 01 00 96 05 00 6C [06:23:18]Write to MH i2c: 01 00 00 97 05 9C [06:23:18]Write i2c OK [06:23:18]MH_I2C_Read... [06:23:18]OFD Sender: No OFD packet to send [06:23:18]*** Cut start [06:23:18]*** Partial cut [06:23:18]*** CUTSNS_PIN = 1 [06:23:19]*** CUTSNS_PIN = 0 [06:23:19]*** Brake cut motor [06:23:19]Read from MH i2c: 01 [06:23:19]MH_I2C_Read... [06:23:19]*** Stop cut motor [06:23:19]*** Cut end [06:23:19]Read from MH i2c: 01 07 00 [06:23:19]MH_I2C_Read... [06:23:19]Read from MH i2c: 01 07 00 97 05 00 00 00 00 00 FF 0F B1 [06:23:19]process_action close_receipt done [06:23:19]requested_data is exist [06:23:19]produce_requested_data [06:23:19]requested_item fm.sn is exist - process it [06:23:19]wFMCommunicate request_size=4 [06:23:19]MH_SAM_APDU [06:23:19]CAPDU: 80 11 00 00 [06:23:19]Write to MH i2c: E2 08 00 98 05 80 11 00 00 00 00 00 00 17 [06:23:19]Write i2c OK [06:23:19]MH_I2C_Read... [06:23:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:23:19]Read from MH i2c: E2 [06:23:19]MH_I2C_Read... [06:23:19]Read from MH i2c: E2 17 00 [06:23:19]MH_I2C_Read... [06:23:19]Read from MH i2c: E2 17 00 98 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 72 [06:23:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:23:19]wFMCommunicate OK [06:23:19]requested_item fd.num is exist - process it [06:23:19]SAM_PROTO_GetFieldsCounters [06:23:19]wFMCommunicate request_size=4 [06:23:19]MH_SAM_APDU [06:23:19]CAPDU: 80 13 00 00 [06:23:19]Write to MH i2c: E2 08 00 99 05 80 13 00 00 00 00 00 00 1A [06:23:19]Write i2c OK [06:23:19]MH_I2C_Read... [06:23:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:23:19]Read from MH i2c: E2 [06:23:19]MH_I2C_Read... [06:23:19]Read from MH i2c: E2 62 00 [06:23:19]MH_I2C_Read... [06:23:19]Read from MH i2c: E2 62 00 99 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 01 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [06:23: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 01 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:23:19]wFMCommunicate OK [06:23:19]SAM_PROTO_GetFieldsCounters done [06:23:19]requested_item shift.num is exist - process it [06:23:19]requested_item shift.opened is exist - process it [06:23:19]req_shift_opened [06:23:19]FM_GetShiftState [06:23:19]SAM_PROTO_GetShiftState [06:23:19]wFMCommunicate request_size=4 [06:23:19]MH_SAM_APDU [06:23:19]CAPDU: 80 13 01 00 [06:23:19]Write to MH i2c: E2 08 00 9A 05 80 13 01 00 00 00 00 00 1C [06:23:19]Write i2c OK [06:23:19]MH_I2C_Read... [06:23:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:23:19]Read from MH i2c: E2 [06:23:19]MH_I2C_Read... [06:23:19]Read from MH i2c: E2 0E 00 [06:23:19]MH_I2C_Read... [06:23:19]Read from MH i2c: E2 0E 00 9A 05 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 B4 [06:23:19]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [06:23:19]wFMCommunicate OK [06:23:19]SAM_PROTO_GetShiftState done [06:23:19]FM_GetShiftState done [06:23:19]req_shift_opened done [06:23:19]requested_item shift.open_date is exist - process it [06:23:19]req_shift_open_date [06:23:19]req_shift_open_date done [06:23:19]produce_requested_data done [06:23:19]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119297,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [06:23:19]process_action_free close_receipt [06:23:19]json_value_free [06:23:19]json_value_free done [06:23:19]process_json_proto returns [06:23:19]Send response to host [06:23:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119297,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [06:23:19]free response buf [06:23:19]execute_script done [06:23:19]execute_script returns [06:23:19]free content buf [06:23:19]Sock 9.Close socket [06:23:19]Sock 9.Thread stoped [06:23:23]OFD Sender: No OFD packet to send [06:23:28]OFD Sender: No OFD packet to send [06:23:33]OFD Sender: No OFD packet to send [06:23:38]OFD Sender: No OFD packet to send [06:23:43]OFD Sender: No OFD packet to send [06:23:48]OFD Sender: No OFD packet to send [06:23:53]OFD Sender: No OFD packet to send [06:23:58]OFD Sender: No OFD packet to send [06:24:03]OFD Sender: No OFD packet to send [06:24:08]OFD Sender: No OFD packet to send [06:24:13]OFD Sender: No OFD packet to send [06:24:18]OFD Sender: No OFD packet to send [06:24:23]OFD Sender: No OFD packet to send [06:24:28]OFD Sender: No OFD packet to send [06:24:33]OFD Sender: No OFD packet to send [06:24:38]OFD Sender: No OFD packet to send [06:24:43]OFD Sender: No OFD packet to send [06:24:48]OFD Sender: No OFD packet to send [06:24:53]OFD Sender: No OFD packet to send [06:24:58]OFD Sender: No OFD packet to send [06:25:03]OFD Sender: No OFD packet to send [06:25:08]OFD Sender: No OFD packet to send [06:25:13]OFD Sender: No OFD packet to send [06:25:18]OFD Sender: No OFD packet to send [06:25:23]OFD Sender: No OFD packet to send [06:25:28]OFD Sender: No OFD packet to send [06:25:33]OFD Sender: No OFD packet to send [06:25:38]OFD Sender: No OFD packet to send [06:25:43]OFD Sender: No OFD packet to send [06:25:48]OFD Sender: No OFD packet to send [06:25:53]OFD Sender: No OFD packet to send [06:25:58]OFD Sender: No OFD packet to send [06:26:03]OFD Sender: No OFD packet to send [06:26:08]OFD Sender: No OFD packet to send [06:26:13]OFD Sender: No OFD packet to send [06:26:18]OFD Sender: No OFD packet to send [06:26:23]OFD Sender: No OFD packet to send [06:26:28]OFD Sender: No OFD packet to send [06:26:33]OFD Sender: No OFD packet to send [06:26:38]OFD Sender: No OFD packet to send [06:26:43]OFD Sender: No OFD packet to send [06:26:48]OFD Sender: No OFD packet to send [06:26:53]OFD Sender: No OFD packet to send [06:26:58]OFD Sender: No OFD packet to send [06:26:59]accept exits with 8 [06:26:59]New connection [06:26:59]New thread 3067194724 created [06:26:59]Thread 3067338084 joined [06:26:59]Waiting for new connection... [06:26:59] Sock 8.Parse request [06:26:59]Sock 8.Check first char [06:26:59]Sock 8.First char is OK [06:26:59]request: POST /json_proto HTTP/1.0 [06:26:59]Method: POST [06:26:59]URL: /json_proto [06:26:59]Method is POST - this is cgi request [06:26:59]url: /json_proto [06:26:59]query_string will be loaded in cgi processing [06:26:59]execute_cgi json_proto POST (null) [06:26:59]execute_cgi path=json_proto method=POST [06:26:59]POST find Content-Length [06:26:59]Host: 172.17.45.7:8080 [06:26:59]Content-Length: 674 [06:26:59]Content-Type: application/json [06:26:59] [06:26:59]POST finish read [06:26:59]Found Content-Length = 674 [06:26:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:26:59]execute_script... [06:26: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)950224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:26:59]POST & json_proto [06:26:59]process_json_proto [06:26:59]json parsed OK: [06:26:59]protocol is kg_v1.0 [06:26:59]action value=close_receipt [06:26:59]process_action close_receipt [06:26:59]cmd_close_receipt [06:26:59]MH_GetDate [06:26:59]Write to MH i2c: F0 00 00 9B 05 8F [06:26:59]Write i2c OK [06:26:59]MH_I2C_Read... [06:26:59]Read from MH i2c: F0 [06:26:59]MH_I2C_Read... [06:26:59]Read from MH i2c: F0 09 00 [06:26:59]MH_I2C_Read... [06:26:59]Read from MH i2c: F0 09 00 9B 05 00 34 D9 A9 66 90 0F 3E 66 F7 [06:26:59]GetLastDocTimeStamp 1722406996 [06:26:59]current date 1722407220 [06:26:59]FM_GetShiftState [06:26:59]SAM_PROTO_GetShiftState [06:26:59]wFMCommunicate request_size=4 [06:26:59]MH_SAM_APDU [06:26:59]CAPDU: 80 13 01 00 [06:26:59]Write to MH i2c: E2 08 00 9C 05 80 13 01 00 00 00 00 00 1E [06:26:59]Write i2c OK [06:26:59]MH_I2C_Read... [06:26:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:26:59]Read from MH i2c: E2 [06:26:59]MH_I2C_Read... [06:26:59]Read from MH i2c: E2 0E 00 [06:26:59]MH_I2C_Read... [06:26:59]Read from MH i2c: E2 0E 00 9C 05 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 B6 [06:26:59]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [06:26:59]wFMCommunicate OK [06:26:59]SAM_PROTO_GetShiftState done [06:26:59]FM_GetShiftState done [06:26:59]opened in 1722384637 [06:26:59]opened+sec_in_day 1722471037 [06:26:59]quantity*price = 50063 [06:26:59]sum+1 = 50064 [06:26:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 29 31.07.2024 06:27 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119298 ФПД: 194747690731493 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T062700&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119298&fm=194747690731493&tin=02508201610067®Number=0000000000092660&sum=50000 [06:27:00]StoreToDocumentArchive [06:27:00]shift 436 fd 119298 [06:27:00]save to /storage/0436/doc_00119298 [06:27:00]save last doc name /storage/0436/doc_00119298 to /storage/kkm_last_doc_name [06:27:00]save OK [06:27:00]Clear old archive folders... [06:27:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:27:00]tlvbuf is 00B043F0 [06:27:00]SAM_PROTO_ClearQueue [06:27:00]wFMCommunicate request_size=4 [06:27:00]MH_SAM_APDU [06:27:00]CAPDU: 80 09 00 00 [06:27:00]Write to MH i2c: E2 08 00 A9 05 80 09 00 00 00 00 00 00 20 [06:27:00]Write i2c OK [06:27:00]MH_I2C_Read... [06:27:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:27:00]Read from MH i2c: E2 [06:27:00]MH_I2C_Read... [06:27:00]Read from MH i2c: E2 03 00 [06:27:00]MH_I2C_Read... [06:27:00]Read from MH i2c: E2 03 00 A9 05 00 90 00 22 [06:27:00]RAPDU: 90 00 [06:27:00]wFMCommunicate OK [06:27:00]SAM_PROTO_ClearQueue done [06:27:00]KKMCreateOFDPacket [06:27:00]OFDProtocolAddRootSTLVToBuf [06:27:00]FM_MakeSignedData [06:27:00]FM_MakeSignedData [06:27:00]SAM_PROTO_SignData [06:27:00]wFMCommunicate request_size=4 [06:27:00]MH_SAM_APDU [06:27:00]CAPDU: 80 0D 01 02 [06:27:00]Write to MH i2c: E2 08 00 AA 05 80 0D 01 02 00 00 00 00 28 [06:27:00]Write i2c OK [06:27:00]MH_I2C_Read... [06:27:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:27:00]Read from MH i2c: E2 [06:27:00]MH_I2C_Read... [06:27:00]Read from MH i2c: E2 03 00 [06:27:00]MH_I2C_Read... [06:27:00]Read from MH i2c: E2 03 00 AA 05 00 90 00 23 [06:27:00]RAPDU: 90 00 [06:27:00]wFMCommunicate OK [06:27:00]wFMCommunicate request_size=255 [06:27:00]MH_SAM_APDU [06:27:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 34 D9 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 02 D2 01 00 35 04 06 00 B1 1F 3A ED [06:27:00]Write to MH i2c: E2 02 01 AB 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 34 D9 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 02 D2 01 00 35 04 06 00 B1 1F 3A ED 00 00 FA [06:27:00]Write i2c OK [06:27:00]MH_I2C_Read... [06:27:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:27:01]Read from MH i2c: E2 [06:27:01]MH_I2C_Read... [06:27:01]Read from MH i2c: E2 03 00 [06:27:01]MH_I2C_Read... [06:27:01]Read from MH i2c: E2 03 00 AB 05 00 90 00 24 [06:27:01]RAPDU: 90 00 [06:27:01]wFMCommunicate OK [06:27:01]wFMCommunicate request_size=7 [06:27:01]MH_SAM_APDU [06:27:01]CAPDU: 80 0D 02 02 02 47 E5 [06:27:01]Write to MH i2c: E2 0A 00 AC 05 80 0D 02 02 02 00 47 E5 00 00 5B [06:27:01]Write i2c OK [06:27:01]MH_I2C_Read... [06:27:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:27:01]Read from MH i2c: E2 [06:27:01]MH_I2C_Read... [06:27:01]Read from MH i2c: E2 03 00 [06:27:01]MH_I2C_Read... [06:27:01]Read from MH i2c: E2 03 00 AC 05 00 90 00 25 [06:27:01]RAPDU: 90 00 [06:27:01]wFMCommunicate OK [06:27:01]wFMCommunicate request_size=4 [06:27:01]MH_SAM_APDU [06:27:01]CAPDU: 80 0D 03 02 [06:27:01]Write to MH i2c: E2 08 00 AD 05 80 0D 03 02 00 00 00 00 2D [06:27:01]Write i2c OK [06:27:01]MH_I2C_Read... [06:27:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:27:01]Read from MH i2c: E2 [06:27:01]MH_I2C_Read... [06:27:01]Read from MH i2c: E2 0B 00 [06:27:01]MH_I2C_Read... [06:27:01]Read from MH i2c: E2 0B 00 AD 05 00 2A A1 B9 60 60 78 65 4B 90 00 9A [06:27:01]RAPDU: 2A A1 B9 60 60 78 65 4B 90 00 [06:27:01]wFMCommunicate OK [06:27:01]SAM_PROTO_SignData done [06:27:01]FM_MakeSignedData done [06:27:01]CreateOFDProtocolMessage [06:27:01]wFMCommunicate request_size=4 [06:27:01]MH_SAM_APDU [06:27:01]CAPDU: 80 11 00 00 [06:27:01]Write to MH i2c: E2 08 00 AE 05 80 11 00 00 00 00 00 00 2D [06:27:01]Write i2c OK [06:27:01]MH_I2C_Read... [06:27:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:27:01]Read from MH i2c: E2 [06:27:01]MH_I2C_Read... [06:27:01]Read from MH i2c: E2 17 00 [06:27:01]MH_I2C_Read... [06:27:01]Read from MH i2c: E2 17 00 AE 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 88 [06:27:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:27:01]wFMCommunicate OK [06:27:01]CreateOFDProtocolMessage done [06:27:01]OFDSenderStorePacket 119298 [06:27:01]StoreOFDPacket docnum=119298 [06:27:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 75 DB 04 01 F2 0B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 34 D9 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 02 D2 01 00 35 04 06 00 B1 1F 3A ED 47 E5 2A A1 B9 60 60 78 65 4B [06:27:01]CheckFolder [06:27:01]dirname=/storage/ofd_packets [06:27:01]CheckFolder done [06:27:01]ProducePacketName [06:27:01]name=ofd_packets/00119298 [06:27:01]NVStorageSaveData ofd_packets/00119298 [06:27:01]File name is /storage/ofd_packets/00119298 [06:27:01]Write 298 bytes [06:27:01]NVStorageSaveData done [06:27:01]OFDSenderStorePacket done [06:27:01]KKMCreateOFDPacket done [06:27:01]NVStorageSaveData kkm_last_timestamp [06:27:01]File name is /storage/kkm_last_timestamp [06:27:01]Write 4 bytes [06:27:01]NVStorageSaveData done [06:27:01]ExternCall_PrintAddStr [06:27:01]wPrintStart [06:27:01]Write to MH i2c: 01 00 00 AF 05 B4 [06:27:01]Write i2c OK [06:27:01]MH_I2C_Read... [06:27:01]Read from MH i2c: 01 [06:27:01]MH_I2C_Read... [06:27:01]Read from MH i2c: 01 07 00 [06:27:01]MH_I2C_Read... [06:27:01]Read from MH i2c: 01 07 00 AF 05 00 00 00 00 00 FF 0F C9 [06:27:01]RasterBufferAndPrint [06:27:01]line Счет N : (1)950224 [06:27:01]line ИНН: 02508201610067 [06:27:01]line Контрольно-Кассовый Чек [06:27:01]line ПРОДАЖА [06:27:01]line ТРК (МРК, ГНК) : 44 [06:27:01]line Товар: 2710194800 [06:27:01]line ДТ-К-5 [06:27:01]line 6.570 * 76.20 [06:27:01]line = 500.63 [06:27:01]line НДС 12% НСП 1% [06:27:01]line > о реализуемом товаре [06:27:01]line ОКРУГЛЕНИЕ: -0.63 [06:27:01]line ИТОГО: 500.00 [06:27:01]line Внесено: 500.00 [06:27:01]line СДАЧА: 0.00 [06:27:01]line НСП 1% : 4.43 [06:27:01]line НДС 12% : 53.16 [06:27:01]line Наличными: 500.00 [06:27:01]line Безнал.: 0.00 [06:27:01]line Место: АЗС № 134 "Партнер Нефть" [06:27:01]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:27:01]line СНО: Общий режим [06:27:01]line Чек 29 31.07.2024 06:27 [06:27:01]line Смена: 436 ФФД: 1.0 [06:27:01]line ЗНМ: 0300000044 [06:27:01]line РНМ: 0000000000092660 [06:27:01]line Версия ККМ: 001 [06:27:01]line ФМ: 0000000000874939 [06:27:01]line ФД: 119298 [06:27:01]line ФПД: 194747690731493 [06:27:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T062700&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119298&fm=194747690731493&tin=02508201610067®Number=0000000000092660&sum=50000 [06:27:01]OFD Sender: Processing packet 119298 [packets to send 86, broken 85] [06:27:01]ProducePacketName [06:27:01]name=ofd_packets/00119298 [06:27:01]OFD Sender: To server: pG, [06:27:01]CommunicateWithHost lk.salyk.kg:30040 [06:27:01]ConnectInit lk.salyk.kg [06:27:01]written 0, free lines is 4095 [06:27:01]Connected sock=9 [06:27:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 75 DB 04 01 F2 0B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 34 D9 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 02 D2 01 00 35 04 06 00 B1 1F 3A ED 47 E5 2A A1 B9 60 60 78 65 4B [06:27:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A6 4F 47 00 64 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 02 D2 01 00 F4 03 04 00 BE 86 A9 66 B6 04 01 00 00 C5 E9 95 2D 7E 05 18 04 [06:27:01]CommunicateWithHost err = 0 [06:27:01]CheckOFDResponse [06:27:01]1017 (14) - 77093643461234 [06:27:01]1041 (16) - 0000000000874939 [06:27:01]1040 (4) - 119298 [06:27:01]1012 (4) - 31.07.2024 00:35 [06:27:01]1206 (1) - 0 [06:27:01]OFD Sender: Remove packet 119298 [06:27:01]ProducePacketName [06:27:01]name=ofd_packets/00119298 [06:27:01]NVStorageDeleteData [06:27:02]Write to MH i2c: 01 00 00 D9 05 DE [06:27:02]Write i2c OK [06:27:02]MH_I2C_Read... [06:27:02]Read from MH i2c: 01 [06:27:02]MH_I2C_Read... [06:27:02]Read from MH i2c: 01 07 00 [06:27:02]MH_I2C_Read... [06:27:02]Read from MH i2c: 01 07 00 D9 05 00 00 00 00 00 DF 0C D0 [06:27:02]RasterBufferAndPrint [06:27:02]line [06:27:02]line [06:27:02]line [06:27:02]line [06:27:02]line [06:27:02]written 0, free lines is 3304 [06:27:02]MH_Cut [06:27:02]Write to MH i2c: D1 01 00 E0 05 01 B7 [06:27:02]Write i2c OK [06:27:02]MH_I2C_Read... [06:27:02]Read from MH i2c: D1 [06:27:02]MH_I2C_Read... [06:27:02]Read from MH i2c: D1 01 00 [06:27:02]MH_I2C_Read... [06:27:02]Read from MH i2c: D1 01 00 E0 05 00 B6 [06:27:02]Write to MH i2c: 01 00 00 E1 05 E6 [06:27:02]Write i2c OK [06:27:02]MH_I2C_Read... [06:27:02]OFD Sender: No OFD packet to send [06:27:02]*** Cut start [06:27:02]*** Partial cut [06:27:02]*** CUTSNS_PIN = 1 [06:27:02]*** CUTSNS_PIN = 0 [06:27:03]*** Brake cut motor [06:27:03]Read from MH i2c: 01 [06:27:03]MH_I2C_Read... [06:27:03]*** Stop cut motor [06:27:03]*** Cut end [06:27:03]Read from MH i2c: 01 07 00 [06:27:03]MH_I2C_Read... [06:27:03]Read from MH i2c: 01 07 00 E1 05 00 00 00 00 00 FF 0F FB [06:27:03]process_action close_receipt done [06:27:03]requested_data is exist [06:27:03]produce_requested_data [06:27:03]requested_item fm.sn is exist - process it [06:27:03]wFMCommunicate request_size=4 [06:27:03]MH_SAM_APDU [06:27:03]CAPDU: 80 11 00 00 [06:27:03]Write to MH i2c: E2 08 00 E2 05 80 11 00 00 00 00 00 00 61 [06:27:03]Write i2c OK [06:27:03]MH_I2C_Read... [06:27:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:27:03]Read from MH i2c: E2 [06:27:03]MH_I2C_Read... [06:27:03]Read from MH i2c: E2 17 00 [06:27:03]MH_I2C_Read... [06:27:03]Read from MH i2c: E2 17 00 E2 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BC [06:27:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:27:03]wFMCommunicate OK [06:27:03]requested_item fd.num is exist - process it [06:27:03]SAM_PROTO_GetFieldsCounters [06:27:03]wFMCommunicate request_size=4 [06:27:03]MH_SAM_APDU [06:27:03]CAPDU: 80 13 00 00 [06:27:03]Write to MH i2c: E2 08 00 E3 05 80 13 00 00 00 00 00 00 64 [06:27:03]Write i2c OK [06:27:03]MH_I2C_Read... [06:27:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:27:03]Read from MH i2c: E2 [06:27:03]MH_I2C_Read... [06:27:03]Read from MH i2c: E2 62 00 [06:27:03]MH_I2C_Read... [06:27:03]Read from MH i2c: E2 62 00 E3 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 02 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [06:27:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 02 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:27:03]wFMCommunicate OK [06:27:03]SAM_PROTO_GetFieldsCounters done [06:27:03]requested_item shift.num is exist - process it [06:27:03]requested_item shift.opened is exist - process it [06:27:03]req_shift_opened [06:27:03]FM_GetShiftState [06:27:03]SAM_PROTO_GetShiftState [06:27:03]wFMCommunicate request_size=4 [06:27:03]MH_SAM_APDU [06:27:03]CAPDU: 80 13 01 00 [06:27:03]Write to MH i2c: E2 08 00 E4 05 80 13 01 00 00 00 00 00 66 [06:27:03]Write i2c OK [06:27:03]MH_I2C_Read... [06:27:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:27:03]Read from MH i2c: E2 [06:27:03]MH_I2C_Read... [06:27:03]Read from MH i2c: E2 0E 00 [06:27:03]MH_I2C_Read... [06:27:03]Read from MH i2c: E2 0E 00 E4 05 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 FE [06:27:03]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [06:27:03]wFMCommunicate OK [06:27:03]SAM_PROTO_GetShiftState done [06:27:03]FM_GetShiftState done [06:27:03]req_shift_opened done [06:27:03]requested_item shift.open_date is exist - process it [06:27:03]req_shift_open_date [06:27:03]req_shift_open_date done [06:27:03]produce_requested_data done [06:27:03]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119298,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [06:27:03]process_action_free close_receipt [06:27:03]json_value_free [06:27:03]json_value_free done [06:27:03]process_json_proto returns [06:27:03]Send response to host [06:27:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119298,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [06:27:03]free response buf [06:27:03]execute_script done [06:27:03]execute_script returns [06:27:03]free content buf [06:27:03]Sock 8.Close socket [06:27:03]Sock 8.Thread stoped [06:27:07]OFD Sender: No OFD packet to send [06:27:12]OFD Sender: No OFD packet to send [06:27:16]accept exits with 10 [06:27:16]New connection [06:27:16]New thread 3067338084 created [06:27:16]Thread 3067194724 joined [06:27:16]Waiting for new connection... [06:27:16] Sock 10.Parse request [06:27:16]Sock 10.Check first char [06:27:16]Sock 10.First char is OK [06:27:16]request: POST /json_proto HTTP/1.0 [06:27:16]Method: POST [06:27:16]URL: /json_proto [06:27:16]Method is POST - this is cgi request [06:27:16]url: /json_proto [06:27:16]query_string will be loaded in cgi processing [06:27:16]execute_cgi json_proto POST (null) [06:27:16]execute_cgi path=json_proto method=POST [06:27:16]POST find Content-Length [06:27:16]Host: 172.17.45.7:8080 [06:27:16]Content-Length: 677 [06:27:16]Content-Type: application/json [06:27:16] [06:27:16]POST finish read [06:27:16]Found Content-Length = 677 [06:27:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:27:16]execute_script... [06:27:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:27:16]POST & json_proto [06:27:16]process_json_proto [06:27:16]json parsed OK: [06:27:16]protocol is kg_v1.0 [06:27:16]action value=close_receipt [06:27:16]process_action close_receipt [06:27:16]cmd_close_receipt [06:27:16]MH_GetDate [06:27:16]Write to MH i2c: F0 00 00 E5 05 D9 [06:27:16]Write i2c OK [06:27:16]MH_I2C_Read... [06:27:16]Read from MH i2c: F0 [06:27:16]MH_I2C_Read... [06:27:16]Read from MH i2c: F0 09 00 [06:27:16]MH_I2C_Read... [06:27:16]Read from MH i2c: F0 09 00 E5 05 00 45 D9 A9 66 90 0F 3E 66 52 [06:27:16]GetLastDocTimeStamp 1722407220 [06:27:16]current date 1722407237 [06:27:16]FM_GetShiftState [06:27:16]SAM_PROTO_GetShiftState [06:27:16]wFMCommunicate request_size=4 [06:27:16]MH_SAM_APDU [06:27:16]CAPDU: 80 13 01 00 [06:27:16]Write to MH i2c: E2 08 00 E6 05 80 13 01 00 00 00 00 00 68 [06:27:16]Write i2c OK [06:27:16]MH_I2C_Read... [06:27:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:27:16]Read from MH i2c: E2 [06:27:16]MH_I2C_Read... [06:27:16]Read from MH i2c: E2 0E 00 [06:27:16]MH_I2C_Read... [06:27:16]Read from MH i2c: E2 0E 00 E6 05 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 00 [06:27:16]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [06:27:16]wFMCommunicate OK [06:27:16]SAM_PROTO_GetShiftState done [06:27:16]FM_GetShiftState done [06:27:16]opened in 1722384637 [06:27:16]opened+sec_in_day 1722471037 [06:27:16]quantity*price = 50036 [06:27:16]sum+1 = 50037 [06:27:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 30 31.07.2024 06:27 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119299 ФПД: 115965158193304 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T062717&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119299&fm=115965158193304&tin=02508201610067®Number=0000000000092660&sum=50000 [06:27:17]StoreToDocumentArchive [06:27:17]shift 436 fd 119299 [06:27:17]save to /storage/0436/doc_00119299 [06:27:17]save last doc name /storage/0436/doc_00119299 to /storage/kkm_last_doc_name [06:27:17]save OK [06:27:17]Clear old archive folders... [06:27:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:27:17]tlvbuf is 00AF26D0 [06:27:17]SAM_PROTO_ClearQueue [06:27:17]wFMCommunicate request_size=4 [06:27:17]MH_SAM_APDU [06:27:17]CAPDU: 80 09 00 00 [06:27:17]Write to MH i2c: E2 08 00 F3 05 80 09 00 00 00 00 00 00 6A [06:27:17]Write i2c OK [06:27:17]MH_I2C_Read... [06:27:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:27:17]Read from MH i2c: E2 [06:27:17]MH_I2C_Read... [06:27:17]Read from MH i2c: E2 03 00 [06:27:17]MH_I2C_Read... [06:27:17]Read from MH i2c: E2 03 00 F3 05 00 90 00 6C [06:27:17]RAPDU: 90 00 [06:27:17]wFMCommunicate OK [06:27:17]SAM_PROTO_ClearQueue done [06:27:17]KKMCreateOFDPacket [06:27:17]OFDProtocolAddRootSTLVToBuf [06:27:17]FM_MakeSignedData [06:27:17]FM_MakeSignedData [06:27:17]SAM_PROTO_SignData [06:27:17]wFMCommunicate request_size=4 [06:27:17]MH_SAM_APDU [06:27:17]CAPDU: 80 0D 01 02 [06:27:17]Write to MH i2c: E2 08 00 F4 05 80 0D 01 02 00 00 00 00 72 [06:27:17]Write i2c OK [06:27:17]MH_I2C_Read... [06:27:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:27:17]Read from MH i2c: E2 [06:27:17]MH_I2C_Read... [06:27:17]Read from MH i2c: E2 03 00 [06:27:17]MH_I2C_Read... [06:27:17]Read from MH i2c: E2 03 00 F4 05 00 90 00 6D [06:27:17]RAPDU: 90 00 [06:27:17]wFMCommunicate OK [06:27:17]wFMCommunicate request_size=255 [06:27:17]MH_SAM_APDU [06:27:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 1E 00 00 00 F4 03 04 00 45 D9 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 03 D2 01 00 35 04 06 00 69 [06:27:17]Write to MH i2c: E2 02 01 F5 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 1E 00 00 00 F4 03 04 00 45 D9 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 03 D2 01 00 35 04 06 00 69 00 00 35 [06:27:17]Write i2c OK [06:27:17]MH_I2C_Read... [06:27:17]OFD Sender: No OFD packet to send [06:27:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:27:17]Read from MH i2c: E2 [06:27:17]MH_I2C_Read... [06:27:17]Read from MH i2c: E2 03 00 [06:27:17]MH_I2C_Read... [06:27:17]Read from MH i2c: E2 03 00 F5 05 00 90 00 6E [06:27:17]RAPDU: 90 00 [06:27:17]wFMCommunicate OK [06:27:17]wFMCommunicate request_size=10 [06:27:17]MH_SAM_APDU [06:27:17]CAPDU: 80 0D 02 02 05 78 3E 0F 78 98 [06:27:17]Write to MH i2c: E2 0D 00 F6 05 80 0D 02 02 05 00 78 3E 0F 78 98 00 00 54 [06:27:17]Write i2c OK [06:27:17]MH_I2C_Read... [06:27:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:27:17]Read from MH i2c: E2 [06:27:17]MH_I2C_Read... [06:27:17]Read from MH i2c: E2 03 00 [06:27:17]MH_I2C_Read... [06:27:17]Read from MH i2c: E2 03 00 F6 05 00 90 00 6F [06:27:17]RAPDU: 90 00 [06:27:17]wFMCommunicate OK [06:27:17]wFMCommunicate request_size=4 [06:27:17]MH_SAM_APDU [06:27:17]CAPDU: 80 0D 03 02 [06:27:17]Write to MH i2c: E2 08 00 F7 05 80 0D 03 02 00 00 00 00 77 [06:27:17]Write i2c OK [06:27:17]MH_I2C_Read... [06:27:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:27:17]Read from MH i2c: E2 [06:27:17]MH_I2C_Read... [06:27:17]Read from MH i2c: E2 0B 00 [06:27:17]MH_I2C_Read... [06:27:17]Read from MH i2c: E2 0B 00 F7 05 00 1B D7 23 03 0E 1C 6E 26 90 00 4E [06:27:17]RAPDU: 1B D7 23 03 0E 1C 6E 26 90 00 [06:27:17]wFMCommunicate OK [06:27:17]SAM_PROTO_SignData done [06:27:17]FM_MakeSignedData done [06:27:17]CreateOFDProtocolMessage [06:27:17]wFMCommunicate request_size=4 [06:27:17]MH_SAM_APDU [06:27:17]CAPDU: 80 11 00 00 [06:27:17]Write to MH i2c: E2 08 00 F8 05 80 11 00 00 00 00 00 00 77 [06:27:17]Write i2c OK [06:27:17]MH_I2C_Read... [06:27:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:27:17]Read from MH i2c: E2 [06:27:17]MH_I2C_Read... [06:27:17]Read from MH i2c: E2 17 00 [06:27:17]MH_I2C_Read... [06:27:17]Read from MH i2c: E2 17 00 F8 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D2 [06:27:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:27:17]wFMCommunicate OK [06:27:17]CreateOFDProtocolMessage done [06:27:17]OFDSenderStorePacket 119299 [06:27:17]StoreOFDPacket docnum=119299 [06:27:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 5C A7 07 01 E4 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 1E 00 00 00 F4 03 04 00 45 D9 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 03 D2 01 00 35 04 06 00 69 78 3E 0F 78 98 1B D7 23 03 0E 1C 6E 26 [06:27:17]CheckFolder [06:27:17]dirname=/storage/ofd_packets [06:27:17]CheckFolder done [06:27:17]ProducePacketName [06:27:17]name=ofd_packets/00119299 [06:27:17]NVStorageSaveData ofd_packets/00119299 [06:27:17]File name is /storage/ofd_packets/00119299 [06:27:17]Write 301 bytes [06:27:17]NVStorageSaveData done [06:27:17]OFDSenderStorePacket done [06:27:17]KKMCreateOFDPacket done [06:27:17]NVStorageSaveData kkm_last_timestamp [06:27:17]File name is /storage/kkm_last_timestamp [06:27:17]Write 4 bytes [06:27:17]NVStorageSaveData done [06:27:17]ExternCall_PrintAddStr [06:27:17]wPrintStart [06:27:17]Write to MH i2c: 01 00 00 F9 05 FE [06:27:17]Write i2c OK [06:27:17]MH_I2C_Read... [06:27:17]Read from MH i2c: 01 [06:27:17]MH_I2C_Read... [06:27:17]Read from MH i2c: 01 07 00 [06:27:17]MH_I2C_Read... [06:27:17]Read from MH i2c: 01 07 00 F9 05 00 00 00 00 00 FF 0F 13 [06:27:17]RasterBufferAndPrint [06:27:17]line Счет N : (1)950225 [06:27:17]line ИНН: 02508201610067 [06:27:17]line Контрольно-Кассовый Чек [06:27:17]line ПРОДАЖА [06:27:17]line ТРК (МРК, ГНК) : 31 [06:27:17]line Товар: 2710124130 [06:27:17]line Аи-92-К-4 [06:27:17]line 7.380 * 67.80 [06:27:17]line = 500.36 [06:27:17]line НДС 12% НСП 1% [06:27:17]line > о реализуемом товаре [06:27:17]line ОКРУГЛЕНИЕ: -0.36 [06:27:17]line ИТОГО: 500.00 [06:27:17]line Внесено: 500.00 [06:27:17]line СДАЧА: 0.00 [06:27:17]line НСП 1% : 4.43 [06:27:17]line НДС 12% : 53.14 [06:27:17]line Наличными: 500.00 [06:27:17]line Безнал.: 0.00 [06:27:17]line Место: АЗС № 134 "Партнер Нефть" [06:27:17]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:27:17]line СНО: Общий режим [06:27:17]line Чек 30 31.07.2024 06:27 [06:27:17]line Смена: 436 ФФД: 1.0 [06:27:17]line ЗНМ: 0300000044 [06:27:17]line РНМ: 0000000000092660 [06:27:17]line Версия ККМ: 001 [06:27:17]line ФМ: 0000000000874939 [06:27:17]line ФД: 119299 [06:27:17]line ФПД: 115965158193304 [06:27:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T062717&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119299&fm=115965158193304&tin=02508201610067®Number=0000000000092660&sum=50000 [06:27:18]OFD Sender: Processing packet 119299 [packets to send 86, broken 85] [06:27:18]ProducePacketName [06:27:18]name=ofd_packets/00119299 [06:27:18]OFD Sender: To server: pG, [06:27:18]CommunicateWithHost lk.salyk.kg:30040 [06:27:18]ConnectInit lk.salyk.kg [06:27:18]written 0, free lines is 4095 [06:27:18]Connected sock=9 [06:27: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 39 33 39 0F 01 00 00 5C A7 07 01 E4 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 1E 00 00 00 F4 03 04 00 45 D9 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 03 D2 01 00 35 04 06 00 69 78 3E 0F 78 98 1B D7 23 03 0E 1C 6E 26 [06:27:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 FA 02 47 00 AB B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 03 D2 01 00 F4 03 04 00 CE 86 A9 66 B6 04 01 00 00 45 68 44 4C 57 C8 5A 6F [06:27:18]CommunicateWithHost err = 0 [06:27:18]CheckOFDResponse [06:27:18]1017 (14) - 77093643461234 [06:27:18]1041 (16) - 0000000000874939 [06:27:18]1040 (4) - 119299 [06:27:18]1012 (4) - 31.07.2024 00:35 [06:27:18]1206 (1) - 0 [06:27:18]OFD Sender: Remove packet 119299 [06:27:18]ProducePacketName [06:27:18]name=ofd_packets/00119299 [06:27:18]NVStorageDeleteData [06:27:18]Write to MH i2c: 01 00 00 23 06 29 [06:27:18]Write i2c OK [06:27:18]MH_I2C_Read... [06:27:18]Read from MH i2c: 01 [06:27:18]MH_I2C_Read... [06:27:18]Read from MH i2c: 01 07 00 [06:27:18]MH_I2C_Read... [06:27:18]Read from MH i2c: 01 07 00 23 06 00 00 00 00 00 D2 0C 0E [06:27:18]RasterBufferAndPrint [06:27:18]line [06:27:18]line [06:27:18]line [06:27:18]line [06:27:18]line [06:27:18]written 0, free lines is 3288 [06:27:18]MH_Cut [06:27:18]Write to MH i2c: D1 01 00 2A 06 01 02 [06:27:18]Write i2c OK [06:27:18]MH_I2C_Read... [06:27:18]Read from MH i2c: D1 [06:27:18]MH_I2C_Read... [06:27:18]Read from MH i2c: D1 01 00 [06:27:18]MH_I2C_Read... [06:27:18]Read from MH i2c: D1 01 00 2A 06 00 01 [06:27:18]Write to MH i2c: 01 00 00 2B 06 31 [06:27:18]Write i2c OK [06:27:18]MH_I2C_Read... [06:27:19]OFD Sender: No OFD packet to send [06:27:19]*** Cut start [06:27:19]*** Partial cut [06:27:19]*** CUTSNS_PIN = 1 [06:27:19]*** CUTSNS_PIN = 0 [06:27:19]*** Brake cut motor [06:27:19]Read from MH i2c: 01 [06:27:20]MH_I2C_Read... [06:27:20]*** Stop cut motor [06:27:20]*** Cut end [06:27:20]Read from MH i2c: 01 07 00 [06:27:20]MH_I2C_Read... [06:27:20]Read from MH i2c: 01 07 00 2B 06 00 00 00 00 00 FF 0F 46 [06:27:20]process_action close_receipt done [06:27:20]requested_data is exist [06:27:20]produce_requested_data [06:27:20]requested_item fm.sn is exist - process it [06:27:20]wFMCommunicate request_size=4 [06:27:20]MH_SAM_APDU [06:27:20]CAPDU: 80 11 00 00 [06:27:20]Write to MH i2c: E2 08 00 2C 06 80 11 00 00 00 00 00 00 AC [06:27:20]Write i2c OK [06:27:20]MH_I2C_Read... [06:27:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:27:20]Read from MH i2c: E2 [06:27:20]MH_I2C_Read... [06:27:20]Read from MH i2c: E2 17 00 [06:27:20]MH_I2C_Read... [06:27:20]Read from MH i2c: E2 17 00 2C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 07 [06:27:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:27:20]wFMCommunicate OK [06:27:20]requested_item fd.num is exist - process it [06:27:20]SAM_PROTO_GetFieldsCounters [06:27:20]wFMCommunicate request_size=4 [06:27:20]MH_SAM_APDU [06:27:20]CAPDU: 80 13 00 00 [06:27:20]Write to MH i2c: E2 08 00 2D 06 80 13 00 00 00 00 00 00 AF [06:27:20]Write i2c OK [06:27:20]MH_I2C_Read... [06:27:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:27:20]Read from MH i2c: E2 [06:27:20]MH_I2C_Read... [06:27:20]Read from MH i2c: E2 62 00 [06:27:20]MH_I2C_Read... [06:27:20]Read from MH i2c: E2 62 00 2D 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 03 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [06:27:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 03 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:27:20]wFMCommunicate OK [06:27:20]SAM_PROTO_GetFieldsCounters done [06:27:20]requested_item shift.num is exist - process it [06:27:20]requested_item shift.opened is exist - process it [06:27:20]req_shift_opened [06:27:20]FM_GetShiftState [06:27:20]SAM_PROTO_GetShiftState [06:27:20]wFMCommunicate request_size=4 [06:27:20]MH_SAM_APDU [06:27:20]CAPDU: 80 13 01 00 [06:27:20]Write to MH i2c: E2 08 00 2E 06 80 13 01 00 00 00 00 00 B1 [06:27:20]Write i2c OK [06:27:20]MH_I2C_Read... [06:27:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:27:20]Read from MH i2c: E2 [06:27:20]MH_I2C_Read... [06:27:20]Read from MH i2c: E2 0E 00 [06:27:20]MH_I2C_Read... [06:27:20]Read from MH i2c: E2 0E 00 2E 06 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 49 [06:27:20]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [06:27:20]wFMCommunicate OK [06:27:20]SAM_PROTO_GetShiftState done [06:27:20]FM_GetShiftState done [06:27:20]req_shift_opened done [06:27:20]requested_item shift.open_date is exist - process it [06:27:20]req_shift_open_date [06:27:20]req_shift_open_date done [06:27:20]produce_requested_data done [06:27:20]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119299,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [06:27:20]process_action_free close_receipt [06:27:20]json_value_free [06:27:20]json_value_free done [06:27:20]process_json_proto returns [06:27:20]Send response to host [06:27:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119299,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [06:27:20]free response buf [06:27:20]execute_script done [06:27:20]execute_script returns [06:27:20]free content buf [06:27:20]Sock 10.Close socket [06:27:20]Sock 10.Thread stoped [06:27:24]OFD Sender: No OFD packet to send [06:27:29]OFD Sender: No OFD packet to send [06:27:34]OFD Sender: No OFD packet to send [06:27:39]OFD Sender: No OFD packet to send [06:27:44]OFD Sender: No OFD packet to send [06:27:49]OFD Sender: No OFD packet to send [06:27:54]OFD Sender: No OFD packet to send [06:27:59]OFD Sender: No OFD packet to send [06:28:04]OFD Sender: No OFD packet to send [06:28:09]OFD Sender: No OFD packet to send [06:28:14]OFD Sender: No OFD packet to send [06:28:19]OFD Sender: No OFD packet to send [06:28:24]OFD Sender: No OFD packet to send [06:28:29]OFD Sender: No OFD packet to send [06:28:34]OFD Sender: No OFD packet to send [06:28:34]accept exits with 8 [06:28:34]New connection [06:28:34]New thread 3067194724 created [06:28:34]Thread 3067338084 joined [06:28:34]Waiting for new connection... [06:28:34] Sock 8.Parse request [06:28:34]Sock 8.Check first char [06:28:34]Sock 8.First char is OK [06:28:34]request: POST /json_proto HTTP/1.0 [06:28:34]Method: POST [06:28:34]URL: /json_proto [06:28:34]Method is POST - this is cgi request [06:28:34]url: /json_proto [06:28:34]query_string will be loaded in cgi processing [06:28:34]execute_cgi json_proto POST (null) [06:28:34]execute_cgi path=json_proto method=POST [06:28:34]POST find Content-Length [06:28:34]Host: 172.17.45.7:8080 [06:28:34]Content-Length: 679 [06:28:34]Content-Type: application/json [06:28:34] [06:28:34]POST finish read [06:28:34]Found Content-Length = 679 [06:28:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:28:34]execute_script... [06:28: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)950227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:28:34]POST & json_proto [06:28:34]process_json_proto [06:28:34]json parsed OK: [06:28:34]protocol is kg_v1.0 [06:28:34]action value=close_receipt [06:28:34]process_action close_receipt [06:28:34]cmd_close_receipt [06:28:34]MH_GetDate [06:28:34]Write to MH i2c: F0 00 00 2F 06 24 [06:28:34]Write i2c OK [06:28:34]MH_I2C_Read... [06:28:34]Read from MH i2c: F0 [06:28:34]MH_I2C_Read... [06:28:34]Read from MH i2c: F0 09 00 [06:28:34]MH_I2C_Read... [06:28:34]Read from MH i2c: F0 09 00 2F 06 00 93 D9 A9 66 90 0F 3E 66 EB [06:28:34]GetLastDocTimeStamp 1722407237 [06:28:34]current date 1722407315 [06:28:34]FM_GetShiftState [06:28:34]SAM_PROTO_GetShiftState [06:28:34]wFMCommunicate request_size=4 [06:28:34]MH_SAM_APDU [06:28:34]CAPDU: 80 13 01 00 [06:28:34]Write to MH i2c: E2 08 00 30 06 80 13 01 00 00 00 00 00 B3 [06:28:34]Write i2c OK [06:28:34]MH_I2C_Read... [06:28:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:28:34]Read from MH i2c: E2 [06:28:34]MH_I2C_Read... [06:28:34]Read from MH i2c: E2 0E 00 [06:28:34]MH_I2C_Read... [06:28:34]Read from MH i2c: E2 0E 00 30 06 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 4B [06:28:34]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [06:28:34]wFMCommunicate OK [06:28:34]SAM_PROTO_GetShiftState done [06:28:34]FM_GetShiftState done [06:28:34]opened in 1722384637 [06:28:34]opened+sec_in_day 1722471037 [06:28:34]quantity*price = 100050 [06:28:34]sum+1 = 100052 [06:28:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 31 31.07.2024 06:28 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119300 ФПД: 26226169224509 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T062835&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119300&fm=26226169224509&tin=02508201610067®Number=0000000000092660&sum=100000 [06:28:35]StoreToDocumentArchive [06:28:35]shift 436 fd 119300 [06:28:35]save to /storage/0436/doc_00119300 [06:28:35]save last doc name /storage/0436/doc_00119300 to /storage/kkm_last_doc_name [06:28:35]save OK [06:28:35]Clear old archive folders... [06:28:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:28:35]tlvbuf is 00B088D0 [06:28:35]SAM_PROTO_ClearQueue [06:28:35]wFMCommunicate request_size=4 [06:28:35]MH_SAM_APDU [06:28:35]CAPDU: 80 09 00 00 [06:28:35]Write to MH i2c: E2 08 00 3D 06 80 09 00 00 00 00 00 00 B5 [06:28:35]Write i2c OK [06:28:35]MH_I2C_Read... [06:28:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:28:35]Read from MH i2c: E2 [06:28:35]MH_I2C_Read... [06:28:35]Read from MH i2c: E2 03 00 [06:28:35]MH_I2C_Read... [06:28:35]Read from MH i2c: E2 03 00 3D 06 00 90 00 B7 [06:28:35]RAPDU: 90 00 [06:28:35]wFMCommunicate OK [06:28:35]SAM_PROTO_ClearQueue done [06:28:35]KKMCreateOFDPacket [06:28:35]OFDProtocolAddRootSTLVToBuf [06:28:35]FM_MakeSignedData [06:28:35]FM_MakeSignedData [06:28:35]SAM_PROTO_SignData [06:28:35]wFMCommunicate request_size=4 [06:28:35]MH_SAM_APDU [06:28:35]CAPDU: 80 0D 01 02 [06:28:35]Write to MH i2c: E2 08 00 3E 06 80 0D 01 02 00 00 00 00 BD [06:28:35]Write i2c OK [06:28:35]MH_I2C_Read... [06:28:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:28:35]Read from MH i2c: E2 [06:28:35]MH_I2C_Read... [06:28:35]Read from MH i2c: E2 03 00 [06:28:35]MH_I2C_Read... [06:28:35]Read from MH i2c: E2 03 00 3E 06 00 90 00 B8 [06:28:35]RAPDU: 90 00 [06:28:35]wFMCommunicate OK [06:28:35]wFMCommunicate request_size=255 [06:28:35]MH_SAM_APDU [06:28:35]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 93 D9 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 04 D2 01 00 35 04 06 00 17 DA 41 80 [06:28:35]Write to MH i2c: E2 02 01 3F 06 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 93 D9 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 04 D2 01 00 35 04 06 00 17 DA 41 80 00 00 25 [06:28:35]Write i2c OK [06:28:35]MH_I2C_Read... [06:28:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:28:36]Read from MH i2c: E2 [06:28:36]MH_I2C_Read... [06:28:36]Read from MH i2c: E2 03 00 [06:28:36]MH_I2C_Read... [06:28:36]Read from MH i2c: E2 03 00 3F 06 00 90 00 B9 [06:28:36]RAPDU: 90 00 [06:28:36]wFMCommunicate OK [06:28:36]wFMCommunicate request_size=7 [06:28:36]MH_SAM_APDU [06:28:36]CAPDU: 80 0D 02 02 02 1D 3D [06:28:36]Write to MH i2c: E2 0A 00 40 06 80 0D 02 02 02 00 1D 3D 00 00 1E [06:28:36]Write i2c OK [06:28:36]MH_I2C_Read... [06:28:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:28:36]Read from MH i2c: E2 [06:28:36]MH_I2C_Read... [06:28:36]Read from MH i2c: E2 03 00 [06:28:36]MH_I2C_Read... [06:28:36]Read from MH i2c: E2 03 00 40 06 00 90 00 BA [06:28:36]RAPDU: 90 00 [06:28:36]wFMCommunicate OK [06:28:36]wFMCommunicate request_size=4 [06:28:36]MH_SAM_APDU [06:28:36]CAPDU: 80 0D 03 02 [06:28:36]Write to MH i2c: E2 08 00 41 06 80 0D 03 02 00 00 00 00 C2 [06:28:36]Write i2c OK [06:28:36]MH_I2C_Read... [06:28:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:28:36]Read from MH i2c: E2 [06:28:36]MH_I2C_Read... [06:28:36]Read from MH i2c: E2 0B 00 [06:28:36]MH_I2C_Read... [06:28:36]Read from MH i2c: E2 0B 00 41 06 00 76 9A DB 93 A4 9E AE 36 90 00 67 [06:28:36]RAPDU: 76 9A DB 93 A4 9E AE 36 90 00 [06:28:36]wFMCommunicate OK [06:28:36]SAM_PROTO_SignData done [06:28:36]FM_MakeSignedData done [06:28:36]CreateOFDProtocolMessage [06:28:36]wFMCommunicate request_size=4 [06:28:36]MH_SAM_APDU [06:28:36]CAPDU: 80 11 00 00 [06:28:36]Write to MH i2c: E2 08 00 42 06 80 11 00 00 00 00 00 00 C2 [06:28:36]Write i2c OK [06:28:36]MH_I2C_Read... [06:28:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:28:36]Read from MH i2c: E2 [06:28:36]MH_I2C_Read... [06:28:36]Read from MH i2c: E2 17 00 [06:28:36]MH_I2C_Read... [06:28:36]Read from MH i2c: E2 17 00 42 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1D [06:28:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:28:36]wFMCommunicate OK [06:28:36]CreateOFDProtocolMessage done [06:28:36]OFDSenderStorePacket 119300 [06:28:36]StoreOFDPacket docnum=119300 [06:28:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 23 E7 04 01 84 BB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 93 D9 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 04 D2 01 00 35 04 06 00 17 DA 41 80 1D 3D 76 9A DB 93 A4 9E AE 36 [06:28:36]CheckFolder [06:28:36]dirname=/storage/ofd_packets [06:28:36]CheckFolder done [06:28:36]ProducePacketName [06:28:36]name=ofd_packets/00119300 [06:28:36]NVStorageSaveData ofd_packets/00119300 [06:28:36]File name is /storage/ofd_packets/00119300 [06:28:36]Write 298 bytes [06:28:36]NVStorageSaveData done [06:28:36]OFDSenderStorePacket done [06:28:36]KKMCreateOFDPacket done [06:28:36]NVStorageSaveData kkm_last_timestamp [06:28:36]File name is /storage/kkm_last_timestamp [06:28:36]Write 4 bytes [06:28:36]NVStorageSaveData done [06:28:36]ExternCall_PrintAddStr [06:28:36]wPrintStart [06:28:36]Write to MH i2c: 01 00 00 43 06 49 [06:28:36]Write i2c OK [06:28:36]MH_I2C_Read... [06:28:36]Read from MH i2c: 01 [06:28:36]MH_I2C_Read... [06:28:36]Read from MH i2c: 01 07 00 [06:28:36]MH_I2C_Read... [06:28:36]Read from MH i2c: 01 07 00 43 06 00 00 00 00 00 FF 0F 5E [06:28:36]RasterBufferAndPrint [06:28:36]line Счет N : (1)950227 [06:28:36]line ИНН: 02508201610067 [06:28:36]line Контрольно-Кассовый Чек [06:28:36]line ПРОДАЖА [06:28:36]line ТРК (МРК, ГНК) : 64 [06:28:36]line Товар: 2710194800 [06:28:36]line ДТ-К-5 [06:28:36]line 13.130 * 76.20 [06:28:36]line = 1000.51 [06:28:36]line НДС 12% НСП 1% [06:28:36]line > о реализуемом товаре [06:28:36]line ОКРУГЛЕНИЕ: -0.51 [06:28:36]line ИТОГО: 1000.00 [06:28:36]line Внесено: 1000.00 [06:28:36]line СДАЧА: 0.00 [06:28:36]line НСП 1% : 8.85 [06:28:36]line НДС 12% : 106.25 [06:28:36]line Наличными: 1000.00 [06:28:36]line Безнал.: 0.00 [06:28:36]line Место: АЗС № 134 "Партнер Нефть" [06:28:36]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:28:36]line СНО: Общий режим [06:28:36]line Чек 31 31.07.2024 06:28 [06:28:36]line Смена: 436 ФФД: 1.0 [06:28:36]line ЗНМ: 0300000044 [06:28:36]line РНМ: 0000000000092660 [06:28:36]line Версия ККМ: 001 [06:28:36]line ФМ: 0000000000874939 [06:28:36]line ФД: 119300 [06:28:36]line ФПД: 26226169224509 [06:28:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T062835&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119300&fm=26226169224509&tin=02508201610067®Number=0000000000092660&sum=100000 [06:28:36]OFD Sender: Processing packet 119300 [packets to send 86, broken 85] [06:28:36]ProducePacketName [06:28:36]name=ofd_packets/00119300 [06:28:36]OFD Sender: To server: pG, [06:28:36]CommunicateWithHost lk.salyk.kg:30040 [06:28:36]ConnectInit lk.salyk.kg [06:28:36]written 0, free lines is 4095 [06:28:36]Connected sock=9 [06:28: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 39 33 39 0C 01 00 00 23 E7 04 01 84 BB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 93 D9 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 04 D2 01 00 35 04 06 00 17 DA 41 80 1D 3D 76 9A DB 93 A4 9E AE 36 [06:28:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 85 7B 47 00 69 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 04 D2 01 00 F4 03 04 00 1D 87 A9 66 B6 04 01 00 00 5C 4E 3D 34 81 E7 70 13 [06:28:36]CommunicateWithHost err = 0 [06:28:36]CheckOFDResponse [06:28:36]1017 (14) - 77093643461234 [06:28:36]1041 (16) - 0000000000874939 [06:28:36]1040 (4) - 119300 [06:28:36]1012 (4) - 31.07.2024 00:36 [06:28:36]1206 (1) - 0 [06:28:36]OFD Sender: Remove packet 119300 [06:28:36]ProducePacketName [06:28:36]name=ofd_packets/00119300 [06:28:36]NVStorageDeleteData [06:28:36]Write to MH i2c: 01 00 00 6D 06 73 [06:28:36]Write i2c OK [06:28:36]MH_I2C_Read... [06:28:36]Read from MH i2c: 01 [06:28:36]MH_I2C_Read... [06:28:36]Read from MH i2c: 01 07 00 [06:28:36]MH_I2C_Read... [06:28:36]Read from MH i2c: 01 07 00 6D 06 00 00 00 00 00 DC 0C 62 [06:28:36]RasterBufferAndPrint [06:28:36]line [06:28:36]line [06:28:36]line [06:28:36]line [06:28:36]line [06:28:36]written 0, free lines is 3299 [06:28:36]MH_Cut [06:28:36]Write to MH i2c: D1 01 00 74 06 01 4C [06:28:36]Write i2c OK [06:28:36]MH_I2C_Read... [06:28:36]Read from MH i2c: D1 [06:28:36]MH_I2C_Read... [06:28:36]Read from MH i2c: D1 01 00 [06:28:36]MH_I2C_Read... [06:28:36]Read from MH i2c: D1 01 00 74 06 00 4B [06:28:36]Write to MH i2c: 01 00 00 75 06 7B [06:28:36]Write i2c OK [06:28:36]MH_I2C_Read... [06:28:37]OFD Sender: No OFD packet to send [06:28:37]*** Cut start [06:28:37]*** Partial cut [06:28:37]*** CUTSNS_PIN = 1 [06:28:37]*** CUTSNS_PIN = 0 [06:28:37]*** Brake cut motor [06:28:38]Read from MH i2c: 01 [06:28:38]MH_I2C_Read... [06:28:38]*** Stop cut motor [06:28:38]*** Cut end [06:28:38]Read from MH i2c: 01 07 00 [06:28:38]MH_I2C_Read... [06:28:38]Read from MH i2c: 01 07 00 75 06 00 00 00 00 00 FF 0F 90 [06:28:38]process_action close_receipt done [06:28:38]requested_data is exist [06:28:38]produce_requested_data [06:28:38]requested_item fm.sn is exist - process it [06:28:38]wFMCommunicate request_size=4 [06:28:38]MH_SAM_APDU [06:28:38]CAPDU: 80 11 00 00 [06:28:38]Write to MH i2c: E2 08 00 76 06 80 11 00 00 00 00 00 00 F6 [06:28:38]Write i2c OK [06:28:38]MH_I2C_Read... [06:28:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:28:38]Read from MH i2c: E2 [06:28:38]MH_I2C_Read... [06:28:38]Read from MH i2c: E2 17 00 [06:28:38]MH_I2C_Read... [06:28:38]Read from MH i2c: E2 17 00 76 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 51 [06:28:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:28:38]wFMCommunicate OK [06:28:38]requested_item fd.num is exist - process it [06:28:38]SAM_PROTO_GetFieldsCounters [06:28:38]wFMCommunicate request_size=4 [06:28:38]MH_SAM_APDU [06:28:38]CAPDU: 80 13 00 00 [06:28:38]Write to MH i2c: E2 08 00 77 06 80 13 00 00 00 00 00 00 F9 [06:28:38]Write i2c OK [06:28:38]MH_I2C_Read... [06:28:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:28:38]Read from MH i2c: E2 [06:28:38]MH_I2C_Read... [06:28:38]Read from MH i2c: E2 62 00 [06:28:38]MH_I2C_Read... [06:28:38]Read from MH i2c: E2 62 00 77 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 04 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [06:28: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 04 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:28:38]wFMCommunicate OK [06:28:38]SAM_PROTO_GetFieldsCounters done [06:28:38]requested_item shift.num is exist - process it [06:28:38]requested_item shift.opened is exist - process it [06:28:38]req_shift_opened [06:28:38]FM_GetShiftState [06:28:38]SAM_PROTO_GetShiftState [06:28:38]wFMCommunicate request_size=4 [06:28:38]MH_SAM_APDU [06:28:38]CAPDU: 80 13 01 00 [06:28:38]Write to MH i2c: E2 08 00 78 06 80 13 01 00 00 00 00 00 FB [06:28:38]Write i2c OK [06:28:38]MH_I2C_Read... [06:28:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:28:38]Read from MH i2c: E2 [06:28:38]MH_I2C_Read... [06:28:38]Read from MH i2c: E2 0E 00 [06:28:38]MH_I2C_Read... [06:28:38]Read from MH i2c: E2 0E 00 78 06 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 93 [06:28:38]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [06:28:38]wFMCommunicate OK [06:28:38]SAM_PROTO_GetShiftState done [06:28:38]FM_GetShiftState done [06:28:38]req_shift_opened done [06:28:38]requested_item shift.open_date is exist - process it [06:28:38]req_shift_open_date [06:28:38]req_shift_open_date done [06:28:38]produce_requested_data done [06:28:38]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119300,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [06:28:38]process_action_free close_receipt [06:28:38]json_value_free [06:28:38]json_value_free done [06:28:38]process_json_proto returns [06:28:38]Send response to host [06:28:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119300,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [06:28:38]free response buf [06:28:38]execute_script done [06:28:38]execute_script returns [06:28:38]free content buf [06:28:38]Sock 8.Close socket [06:28:38]Sock 8.Thread stoped [06:28:42]OFD Sender: No OFD packet to send [06:28:47]OFD Sender: No OFD packet to send [06:28:52]OFD Sender: No OFD packet to send [06:28:56]accept exits with 10 [06:28:56]New connection [06:28:56]New thread 3067338084 created [06:28:56]Thread 3067194724 joined [06:28:56]Waiting for new connection... [06:28:56] Sock 10.Parse request [06:28:56]Sock 10.Check first char [06:28:56]Sock 10.First char is OK [06:28:56]request: POST /json_proto HTTP/1.0 [06:28:56]Method: POST [06:28:56]URL: /json_proto [06:28:56]Method is POST - this is cgi request [06:28:56]url: /json_proto [06:28:56]query_string will be loaded in cgi processing [06:28:56]execute_cgi json_proto POST (null) [06:28:56]execute_cgi path=json_proto method=POST [06:28:56]POST find Content-Length [06:28:56]Host: 172.17.45.7:8080 [06:28:56]Content-Length: 1186 [06:28:56]Content-Type: application/json [06:28:56] [06:28:56]POST finish read [06:28:56]Found Content-Length = 1186 [06:28:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)950226\u000A31.07.2024 06:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 37.250 x 76.20\u000A\u0418\u0422\u041E\u0413: 2838.45\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99536\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:28:56]execute_script... [06:28:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)950226\u000A31.07.2024 06:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 37.250 x 76.20\u000A\u0418\u0422\u041E\u0413: 2838.45\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99536\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:28:56]POST & json_proto [06:28:56]process_json_proto [06:28:56]json parsed OK: [06:28:56]protocol is kg_v1.0 [06:28:56]action value=print_text [06:28:56]process_action print_text [06:28:56]cmd_print_text [06:28:56]ExternCall_PrintAddStr [06:28:56]wPrintStart [06:28:56]Write to MH i2c: 01 00 00 79 06 7F [06:28:56]Write i2c OK [06:28:56]MH_I2C_Read... [06:28:56]Read from MH i2c: 01 [06:28:56]MH_I2C_Read... [06:28:56]Read from MH i2c: 01 07 00 [06:28:56]MH_I2C_Read... [06:28:56]Read from MH i2c: 01 07 00 79 06 00 00 00 00 00 FF 0F 94 [06:28:56]RasterBufferAndPrint [06:28:56]line *****ТОВАРНЫЙ ЧЕК***** [06:28:56]line АЗС-134 [06:28:56]line Партнер нефть [06:28:56]line 02508201610067 [06:28:56]line Кассир : Хошимов З. [06:28:56]line Счет N : (1)950226 [06:28:56]line 31.07.2024 06:26 [06:28:56]line ПРОДАЖА [06:28:56]line ТРК (МРК, ГНК): 21 [06:28:56]line Вид ГСМ : 2710194800 [06:28:56]line ДТ-К-5 [06:28:56]line 37.250 x 76.20 [06:28:56]line ИТОГ: 2838.45 [06:28:56]line Тип оплаты: Талоны: Топливная Карта [06:28:56]line 99536 [06:28:56]line ______________________ [06:28:56]line (подпись) [06:28:56]written 0, free lines is 4095 [06:28:57]Write to MH i2c: 01 00 00 8D 06 93 [06:28:57]Write i2c OK [06:28:57]MH_I2C_Read... [06:28:57]Read from MH i2c: 01 [06:28:57]MH_I2C_Read... [06:28:57]Read from MH i2c: 01 07 00 [06:28:57]MH_I2C_Read... [06:28:57]Read from MH i2c: 01 07 00 8D 06 00 00 00 00 00 10 0E B8 [06:28:57]RasterBufferAndPrint [06:28:57]line [06:28:57]line [06:28:57]line [06:28:57]line [06:28:57]line [06:28:57]written 0, free lines is 3602 [06:28:57]MH_Cut [06:28:57]Write to MH i2c: D1 01 00 94 06 01 6C [06:28:57]Write i2c OK [06:28:57]MH_I2C_Read... [06:28:57]Read from MH i2c: D1 [06:28:57]MH_I2C_Read... [06:28:57]Read from MH i2c: D1 01 00 [06:28:57]MH_I2C_Read... [06:28:57]Read from MH i2c: D1 01 00 94 06 00 6B [06:28:57]Write to MH i2c: 01 00 00 95 06 9B [06:28:57]Write i2c OK [06:28:57]MH_I2C_Read... [06:28:57]OFD Sender: No OFD packet to send [06:28:57]*** Cut start [06:28:57]*** Partial cut [06:28:57]*** CUTSNS_PIN = 1 [06:28:57]*** CUTSNS_PIN = 0 [06:28:57]*** Brake cut motor [06:28:58]Read from MH i2c: 01 [06:28:58]MH_I2C_Read... [06:28:58]*** Stop cut motor [06:28:58]*** Cut end [06:28:58]Read from MH i2c: 01 07 00 [06:28:58]MH_I2C_Read... [06:28:58]Read from MH i2c: 01 07 00 95 06 00 00 00 00 00 FF 0F B0 [06:28:58]process_action print_text done [06:28:58]requested_data is exist [06:28:58]produce_requested_data [06:28:58]requested_item fm.sn is exist - process it [06:28:58]wFMCommunicate request_size=4 [06:28:58]MH_SAM_APDU [06:28:58]CAPDU: 80 11 00 00 [06:28:58]Write to MH i2c: E2 08 00 96 06 80 11 00 00 00 00 00 00 16 [06:28:58]Write i2c OK [06:28:58]MH_I2C_Read... [06:28:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:28:58]Read from MH i2c: E2 [06:28:58]MH_I2C_Read... [06:28:58]Read from MH i2c: E2 17 00 [06:28:58]MH_I2C_Read... [06:28:58]Read from MH i2c: E2 17 00 96 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 71 [06:28:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:28:58]wFMCommunicate OK [06:28:58]requested_item fd.num is exist - process it [06:28:58]SAM_PROTO_GetFieldsCounters [06:28:58]wFMCommunicate request_size=4 [06:28:58]MH_SAM_APDU [06:28:58]CAPDU: 80 13 00 00 [06:28:58]Write to MH i2c: E2 08 00 97 06 80 13 00 00 00 00 00 00 19 [06:28:58]Write i2c OK [06:28:58]MH_I2C_Read... [06:28:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:28:58]Read from MH i2c: E2 [06:28:58]MH_I2C_Read... [06:28:58]Read from MH i2c: E2 62 00 [06:28:58]MH_I2C_Read... [06:28:58]Read from MH i2c: E2 62 00 97 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 04 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [06:28: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 04 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:28:58]wFMCommunicate OK [06:28:58]SAM_PROTO_GetFieldsCounters done [06:28:58]requested_item shift.num is exist - process it [06:28:58]requested_item shift.opened is exist - process it [06:28:58]req_shift_opened [06:28:58]FM_GetShiftState [06:28:58]SAM_PROTO_GetShiftState [06:28:58]wFMCommunicate request_size=4 [06:28:58]MH_SAM_APDU [06:28:58]CAPDU: 80 13 01 00 [06:28:58]Write to MH i2c: E2 08 00 98 06 80 13 01 00 00 00 00 00 1B [06:28:58]Write i2c OK [06:28:58]MH_I2C_Read... [06:28:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:28:58]Read from MH i2c: E2 [06:28:58]MH_I2C_Read... [06:28:58]Read from MH i2c: E2 0E 00 [06:28:58]MH_I2C_Read... [06:28:58]Read from MH i2c: E2 0E 00 98 06 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 B3 [06:28:58]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [06:28:58]wFMCommunicate OK [06:28:58]SAM_PROTO_GetShiftState done [06:28:58]FM_GetShiftState done [06:28:58]req_shift_opened done [06:28:58]requested_item shift.open_date is exist - process it [06:28:58]req_shift_open_date [06:28:58]req_shift_open_date done [06:28:58]produce_requested_data done [06:28:58]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119300,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [06:28:58]process_action_free print_text [06:28:58]json_value_free [06:28:58]json_value_free done [06:28:58]process_json_proto returns [06:28:58]Send response to host [06:28:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119300,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [06:28:58]free response buf [06:28:58]execute_script done [06:28:58]execute_script returns [06:28:58]free content buf [06:28:58]Sock 10.Close socket [06:28:58]Sock 10.Thread stoped [06:29:02]OFD Sender: No OFD packet to send [06:29:07]OFD Sender: No OFD packet to send [06:29:12]OFD Sender: No OFD packet to send [06:29:17]OFD Sender: No OFD packet to send [06:29:22]OFD Sender: No OFD packet to send [06:29:27]OFD Sender: No OFD packet to send [06:29:32]OFD Sender: No OFD packet to send [06:29:37]OFD Sender: No OFD packet to send [06:29:42]OFD Sender: No OFD packet to send [06:29:47]OFD Sender: No OFD packet to send [06:29:52]OFD Sender: No OFD packet to send [06:29:57]OFD Sender: No OFD packet to send [06:30:02]OFD Sender: No OFD packet to send [06:30:07]OFD Sender: No OFD packet to send [06:30:12]OFD Sender: No OFD packet to send [06:30:17]OFD Sender: No OFD packet to send [06:30:22]OFD Sender: No OFD packet to send [06:30:27]OFD Sender: No OFD packet to send [06:30:32]OFD Sender: No OFD packet to send [06:30:37]OFD Sender: No OFD packet to send [06:30:42]OFD Sender: No OFD packet to send [06:30:47]OFD Sender: No OFD packet to send [06:30:52]OFD Sender: No OFD packet to send [06:30:57]OFD Sender: No OFD packet to send [06:31:02]OFD Sender: No OFD packet to send [06:31:07]OFD Sender: No OFD packet to send [06:31:12]OFD Sender: No OFD packet to send [06:31:17]OFD Sender: No OFD packet to send [06:31:22]OFD Sender: No OFD packet to send [06:31:27]OFD Sender: No OFD packet to send [06:31:32]OFD Sender: No OFD packet to send [06:31:37]OFD Sender: No OFD packet to send [06:31:42]OFD Sender: No OFD packet to send [06:31:47]OFD Sender: No OFD packet to send [06:31:52]OFD Sender: No OFD packet to send [06:31:57]OFD Sender: No OFD packet to send [06:32:02]OFD Sender: No OFD packet to send [06:32:07]OFD Sender: No OFD packet to send [06:32:12]OFD Sender: No OFD packet to send [06:32:17]OFD Sender: No OFD packet to send [06:32:22]OFD Sender: No OFD packet to send [06:32:27]OFD Sender: No OFD packet to send [06:32:32]OFD Sender: No OFD packet to send [06:32:37]OFD Sender: No OFD packet to send [06:32:42]OFD Sender: No OFD packet to send [06:32:47]OFD Sender: No OFD packet to send [06:32:52]OFD Sender: No OFD packet to send [06:32:57]OFD Sender: No OFD packet to send [06:33:02]OFD Sender: No OFD packet to send [06:33:07]OFD Sender: No OFD packet to send [06:33:12]OFD Sender: No OFD packet to send [06:33:17]OFD Sender: No OFD packet to send [06:33:22]OFD Sender: No OFD packet to send [06:33:27]OFD Sender: No OFD packet to send [06:33:32]OFD Sender: No OFD packet to send [06:33:37]OFD Sender: No OFD packet to send [06:33:42]OFD Sender: No OFD packet to send [06:33:47]OFD Sender: No OFD packet to send [06:33:52]OFD Sender: No OFD packet to send [06:33:57]OFD Sender: No OFD packet to send [06:34:02]OFD Sender: No OFD packet to send [06:34:07]OFD Sender: No OFD packet to send [06:34:12]OFD Sender: No OFD packet to send [06:34:17]OFD Sender: No OFD packet to send [06:34:22]OFD Sender: No OFD packet to send [06:34:27]OFD Sender: No OFD packet to send [06:34:32]OFD Sender: No OFD packet to send [06:34:37]OFD Sender: No OFD packet to send [06:34:42]OFD Sender: No OFD packet to send [06:34:47]OFD Sender: No OFD packet to send [06:34:52]OFD Sender: No OFD packet to send [06:34:57]OFD Sender: No OFD packet to send [06:35:02]OFD Sender: No OFD packet to send [06:35:07]OFD Sender: No OFD packet to send [06:35:12]OFD Sender: No OFD packet to send [06:35:17]OFD Sender: No OFD packet to send [06:35:22]OFD Sender: No OFD packet to send [06:35:27]OFD Sender: No OFD packet to send [06:35:32]OFD Sender: No OFD packet to send [06:35:37]OFD Sender: No OFD packet to send [06:35:42]OFD Sender: No OFD packet to send [06:35:47]OFD Sender: No OFD packet to send [06:35:52]OFD Sender: No OFD packet to send [06:35:57]OFD Sender: No OFD packet to send [06:36:02]OFD Sender: No OFD packet to send [06:36:07]OFD Sender: No OFD packet to send [06:36:12]OFD Sender: No OFD packet to send [06:36:17]OFD Sender: No OFD packet to send [06:36:22]OFD Sender: No OFD packet to send [06:36:27]OFD Sender: No OFD packet to send [06:36:32]OFD Sender: No OFD packet to send [06:36:37]OFD Sender: No OFD packet to send [06:36:42]OFD Sender: No OFD packet to send [06:36:47]OFD Sender: No OFD packet to send [06:36:52]OFD Sender: No OFD packet to send [06:36:57]OFD Sender: No OFD packet to send [06:37:02]OFD Sender: No OFD packet to send [06:37:07]OFD Sender: No OFD packet to send [06:37:12]OFD Sender: No OFD packet to send [06:37:17]OFD Sender: No OFD packet to send [06:37:22]OFD Sender: No OFD packet to send [06:37:27]OFD Sender: No OFD packet to send [06:37:32]OFD Sender: No OFD packet to send [06:37:37]OFD Sender: No OFD packet to send [06:37:42]OFD Sender: No OFD packet to send [06:37:47]OFD Sender: No OFD packet to send [06:37:52]OFD Sender: No OFD packet to send [06:37:57]OFD Sender: No OFD packet to send [06:38:02]OFD Sender: No OFD packet to send [06:38:07]OFD Sender: No OFD packet to send [06:38:12]OFD Sender: No OFD packet to send [06:38:17]OFD Sender: No OFD packet to send [06:38:22]OFD Sender: No OFD packet to send [06:38:27]OFD Sender: No OFD packet to send [06:38:32]OFD Sender: No OFD packet to send [06:38:37]OFD Sender: No OFD packet to send [06:38:42]OFD Sender: No OFD packet to send [06:38:47]OFD Sender: No OFD packet to send [06:38:52]OFD Sender: No OFD packet to send [06:38:57]OFD Sender: No OFD packet to send [06:39:02]OFD Sender: No OFD packet to send [06:39:07]OFD Sender: No OFD packet to send [06:39:12]OFD Sender: No OFD packet to send [06:39:17]OFD Sender: No OFD packet to send [06:39:22]OFD Sender: No OFD packet to send [06:39:27]OFD Sender: No OFD packet to send [06:39:32]OFD Sender: No OFD packet to send [06:39:38]OFD Sender: No OFD packet to send [06:39:43]OFD Sender: No OFD packet to send [06:39:48]OFD Sender: No OFD packet to send [06:39:53]OFD Sender: No OFD packet to send [06:39:58]OFD Sender: No OFD packet to send [06:40:03]OFD Sender: No OFD packet to send [06:40:08]OFD Sender: No OFD packet to send [06:40:13]OFD Sender: No OFD packet to send [06:40:18]OFD Sender: No OFD packet to send [06:40:23]OFD Sender: No OFD packet to send [06:40:28]OFD Sender: No OFD packet to send [06:40:33]OFD Sender: No OFD packet to send [06:40:38]OFD Sender: No OFD packet to send [06:40:43]OFD Sender: No OFD packet to send [06:40:48]OFD Sender: No OFD packet to send [06:40:53]OFD Sender: No OFD packet to send [06:40:58]OFD Sender: No OFD packet to send [06:41:03]OFD Sender: No OFD packet to send [06:41:08]OFD Sender: No OFD packet to send [06:41:13]OFD Sender: No OFD packet to send [06:41:18]OFD Sender: No OFD packet to send [06:41:23]OFD Sender: No OFD packet to send [06:41:28]OFD Sender: No OFD packet to send [06:41:33]OFD Sender: No OFD packet to send [06:41:38]OFD Sender: No OFD packet to send [06:41:43]OFD Sender: No OFD packet to send [06:41:48]OFD Sender: No OFD packet to send [06:41:53]OFD Sender: No OFD packet to send [06:41:58]OFD Sender: No OFD packet to send [06:42:03]OFD Sender: No OFD packet to send [06:42:08]OFD Sender: No OFD packet to send [06:42:13]OFD Sender: No OFD packet to send [06:42:18]OFD Sender: No OFD packet to send [06:42:23]OFD Sender: No OFD packet to send [06:42:28]OFD Sender: No OFD packet to send [06:42:33]OFD Sender: No OFD packet to send [06:42:38]OFD Sender: No OFD packet to send [06:42:43]OFD Sender: No OFD packet to send [06:42:48]OFD Sender: No OFD packet to send [06:42:53]OFD Sender: No OFD packet to send [06:42:58]OFD Sender: No OFD packet to send [06:43:03]OFD Sender: No OFD packet to send [06:43:08]OFD Sender: No OFD packet to send [06:43:13]OFD Sender: No OFD packet to send [06:43:18]OFD Sender: No OFD packet to send [06:43:23]OFD Sender: No OFD packet to send [06:43:28]OFD Sender: No OFD packet to send [06:43:33]OFD Sender: No OFD packet to send [06:43:38]OFD Sender: No OFD packet to send [06:43:43]OFD Sender: No OFD packet to send [06:43:48]OFD Sender: No OFD packet to send [06:43:53]OFD Sender: No OFD packet to send [06:43:58]OFD Sender: No OFD packet to send [06:44:03]OFD Sender: No OFD packet to send [06:44:08]OFD Sender: No OFD packet to send [06:44:13]OFD Sender: No OFD packet to send [06:44:18]OFD Sender: No OFD packet to send [06:44:23]OFD Sender: No OFD packet to send [06:44:28]OFD Sender: No OFD packet to send [06:44:33]OFD Sender: No OFD packet to send [06:44:38]OFD Sender: No OFD packet to send [06:44:43]OFD Sender: No OFD packet to send [06:44:48]OFD Sender: No OFD packet to send [06:44:53]OFD Sender: No OFD packet to send [06:44:58]OFD Sender: No OFD packet to send [06:45:03]OFD Sender: No OFD packet to send [06:45:08]OFD Sender: No OFD packet to send [06:45:13]OFD Sender: No OFD packet to send [06:45:18]OFD Sender: No OFD packet to send [06:45:23]OFD Sender: No OFD packet to send [06:45:28]OFD Sender: No OFD packet to send [06:45:33]OFD Sender: No OFD packet to send [06:45:38]OFD Sender: No OFD packet to send [06:45:43]OFD Sender: No OFD packet to send [06:45:48]OFD Sender: No OFD packet to send [06:45:53]OFD Sender: No OFD packet to send [06:45:58]OFD Sender: No OFD packet to send [06:46:03]OFD Sender: No OFD packet to send [06:46:03]accept exits with 8 [06:46:03]New connection [06:46:03]New thread 3067194724 created [06:46:03]Thread 3067338084 joined [06:46:03]Waiting for new connection... [06:46:03] Sock 8.Parse request [06:46:03]Sock 8.Check first char [06:46:03]Sock 8.First char is OK [06:46:03]request: POST /json_proto HTTP/1.0 [06:46:03]Method: POST [06:46:03]URL: /json_proto [06:46:03]Method is POST - this is cgi request [06:46:03]url: /json_proto [06:46:03]query_string will be loaded in cgi processing [06:46:03]execute_cgi json_proto POST (null) [06:46:03]execute_cgi path=json_proto method=POST [06:46:03]POST find Content-Length [06:46:03]Host: 172.17.45.7:8080 [06:46:03]Content-Length: 682 [06:46:03]Content-Type: application/json [06:46:03] [06:46:03]POST finish read [06:46:03]Found Content-Length = 682 [06:46:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:46:03]execute_script... [06:46: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)950229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:46:03]POST & json_proto [06:46:03]process_json_proto [06:46:03]json parsed OK: [06:46:03]protocol is kg_v1.0 [06:46:03]action value=close_receipt [06:46:03]process_action close_receipt [06:46:03]cmd_close_receipt [06:46:03]MH_GetDate [06:46:03]Write to MH i2c: F0 00 00 99 06 8E [06:46:03]Write i2c OK [06:46:03]MH_I2C_Read... [06:46:03]Read from MH i2c: F0 [06:46:03]MH_I2C_Read... [06:46:03]Read from MH i2c: F0 09 00 [06:46:03]MH_I2C_Read... [06:46:03]Read from MH i2c: F0 09 00 99 06 00 AC DD A9 66 90 0F 3E 66 72 [06:46:03]GetLastDocTimeStamp 1722407315 [06:46:03]current date 1722408364 [06:46:03]FM_GetShiftState [06:46:03]SAM_PROTO_GetShiftState [06:46:03]wFMCommunicate request_size=4 [06:46:03]MH_SAM_APDU [06:46:03]CAPDU: 80 13 01 00 [06:46:03]Write to MH i2c: E2 08 00 9A 06 80 13 01 00 00 00 00 00 1D [06:46:03]Write i2c OK [06:46:03]MH_I2C_Read... [06:46:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:46:03]Read from MH i2c: E2 [06:46:03]MH_I2C_Read... [06:46:03]Read from MH i2c: E2 0E 00 [06:46:03]MH_I2C_Read... [06:46:03]Read from MH i2c: E2 0E 00 9A 06 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 B5 [06:46:03]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [06:46:03]wFMCommunicate OK [06:46:03]SAM_PROTO_GetShiftState done [06:46:03]FM_GetShiftState done [06:46:03]opened in 1722384637 [06:46:03]opened+sec_in_day 1722471037 [06:46:03]quantity*price = 200043 [06:46:03]sum+1 = 200044 [06:46:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 32 31.07.2024 06:46 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119301 ФПД: 139809460526597 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T064604&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119301&fm=139809460526597&tin=02508201610067®Number=0000000000092660&sum=200000 [06:46:04]StoreToDocumentArchive [06:46:04]shift 436 fd 119301 [06:46:04]save to /storage/0436/doc_00119301 [06:46:04]save last doc name /storage/0436/doc_00119301 to /storage/kkm_last_doc_name [06:46:04]save OK [06:46:04]Clear old archive folders... [06:46:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:46:04]tlvbuf is B6FB33D0 [06:46:04]SAM_PROTO_ClearQueue [06:46:04]wFMCommunicate request_size=4 [06:46:04]MH_SAM_APDU [06:46:04]CAPDU: 80 09 00 00 [06:46:04]Write to MH i2c: E2 08 00 A7 06 80 09 00 00 00 00 00 00 1F [06:46:04]Write i2c OK [06:46:04]MH_I2C_Read... [06:46:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:46:04]Read from MH i2c: E2 [06:46:04]MH_I2C_Read... [06:46:04]Read from MH i2c: E2 03 00 [06:46:04]MH_I2C_Read... [06:46:04]Read from MH i2c: E2 03 00 A7 06 00 90 00 21 [06:46:04]RAPDU: 90 00 [06:46:04]wFMCommunicate OK [06:46:04]SAM_PROTO_ClearQueue done [06:46:04]KKMCreateOFDPacket [06:46:04]OFDProtocolAddRootSTLVToBuf [06:46:04]FM_MakeSignedData [06:46:04]FM_MakeSignedData [06:46:04]SAM_PROTO_SignData [06:46:04]wFMCommunicate request_size=4 [06:46:04]MH_SAM_APDU [06:46:04]CAPDU: 80 0D 01 02 [06:46:04]Write to MH i2c: E2 08 00 A8 06 80 0D 01 02 00 00 00 00 27 [06:46:04]Write i2c OK [06:46:04]MH_I2C_Read... [06:46:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:46:04]Read from MH i2c: E2 [06:46:04]MH_I2C_Read... [06:46:04]Read from MH i2c: E2 03 00 [06:46:04]MH_I2C_Read... [06:46:04]Read from MH i2c: E2 03 00 A8 06 00 90 00 22 [06:46:04]RAPDU: 90 00 [06:46:04]wFMCommunicate OK [06:46:04]wFMCommunicate request_size=255 [06:46:04]MH_SAM_APDU [06:46:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 AC DD A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 05 D2 01 00 35 04 06 00 7F [06:46:04]Write to MH i2c: E2 02 01 A9 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 AC DD A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 05 D2 01 00 35 04 06 00 7F 00 00 26 [06:46:04]Write i2c OK [06:46:04]MH_I2C_Read... [06:46:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:46:05]Read from MH i2c: E2 [06:46:05]MH_I2C_Read... [06:46:05]Read from MH i2c: E2 03 00 [06:46:05]MH_I2C_Read... [06:46:05]Read from MH i2c: E2 03 00 A9 06 00 90 00 23 [06:46:05]RAPDU: 90 00 [06:46:05]wFMCommunicate OK [06:46:05]wFMCommunicate request_size=10 [06:46:05]MH_SAM_APDU [06:46:05]CAPDU: 80 0D 02 02 05 27 ED 3B 1E 05 [06:46:05]Write to MH i2c: E2 0D 00 AA 06 80 0D 02 02 05 00 27 ED 3B 1E 05 00 00 A6 [06:46:05]Write i2c OK [06:46:05]MH_I2C_Read... [06:46:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:46:05]Read from MH i2c: E2 [06:46:05]MH_I2C_Read... [06:46:05]Read from MH i2c: E2 03 00 [06:46:05]MH_I2C_Read... [06:46:05]Read from MH i2c: E2 03 00 AA 06 00 90 00 24 [06:46:05]RAPDU: 90 00 [06:46:05]wFMCommunicate OK [06:46:05]wFMCommunicate request_size=4 [06:46:05]MH_SAM_APDU [06:46:05]CAPDU: 80 0D 03 02 [06:46:05]Write to MH i2c: E2 08 00 AB 06 80 0D 03 02 00 00 00 00 2C [06:46:05]Write i2c OK [06:46:05]MH_I2C_Read... [06:46:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:46:05]Read from MH i2c: E2 [06:46:05]MH_I2C_Read... [06:46:05]Read from MH i2c: E2 0B 00 [06:46:05]MH_I2C_Read... [06:46:05]Read from MH i2c: E2 0B 00 AB 06 00 68 E6 0A 23 18 A7 0A F1 90 00 62 [06:46:05]RAPDU: 68 E6 0A 23 18 A7 0A F1 90 00 [06:46:05]wFMCommunicate OK [06:46:05]SAM_PROTO_SignData done [06:46:05]FM_MakeSignedData done [06:46:05]CreateOFDProtocolMessage [06:46:05]wFMCommunicate request_size=4 [06:46:05]MH_SAM_APDU [06:46:05]CAPDU: 80 11 00 00 [06:46:05]Write to MH i2c: E2 08 00 AC 06 80 11 00 00 00 00 00 00 2C [06:46:05]Write i2c OK [06:46:05]MH_I2C_Read... [06:46:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:46:05]Read from MH i2c: E2 [06:46:05]MH_I2C_Read... [06:46:05]Read from MH i2c: E2 17 00 [06:46:05]MH_I2C_Read... [06:46:05]Read from MH i2c: E2 17 00 AC 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 87 [06:46:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:46:05]wFMCommunicate OK [06:46:05]CreateOFDProtocolMessage done [06:46:05]OFDSenderStorePacket 119301 [06:46:05]StoreOFDPacket docnum=119301 [06:46:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 5C 86 07 01 CF BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 AC DD A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 05 D2 01 00 35 04 06 00 7F 27 ED 3B 1E 05 68 E6 0A 23 18 A7 0A F1 [06:46:05]CheckFolder [06:46:05]dirname=/storage/ofd_packets [06:46:05]CheckFolder done [06:46:05]ProducePacketName [06:46:05]name=ofd_packets/00119301 [06:46:05]NVStorageSaveData ofd_packets/00119301 [06:46:05]File name is /storage/ofd_packets/00119301 [06:46:05]Write 301 bytes [06:46:05]NVStorageSaveData done [06:46:05]OFDSenderStorePacket done [06:46:05]KKMCreateOFDPacket done [06:46:05]NVStorageSaveData kkm_last_timestamp [06:46:05]File name is /storage/kkm_last_timestamp [06:46:05]Write 4 bytes [06:46:05]NVStorageSaveData done [06:46:05]ExternCall_PrintAddStr [06:46:05]wPrintStart [06:46:05]Write to MH i2c: 01 00 00 AD 06 B3 [06:46:05]Write i2c OK [06:46:05]MH_I2C_Read... [06:46:05]Read from MH i2c: 01 [06:46:05]MH_I2C_Read... [06:46:05]Read from MH i2c: 01 07 00 [06:46:05]MH_I2C_Read... [06:46:05]Read from MH i2c: 01 07 00 AD 06 00 00 00 00 00 FF 0F C8 [06:46:05]RasterBufferAndPrint [06:46:05]line Счет N : (1)950229 [06:46:05]line ИНН: 02508201610067 [06:46:05]line Контрольно-Кассовый Чек [06:46:05]line ПРОДАЖА [06:46:05]line ТРК (МРК, ГНК) : 43 [06:46:05]line Товар: 2710124500 [06:46:05]line Аи-95-К-3 [06:46:05]line 26.960 * 74.20 [06:46:05]line = 2000.43 [06:46:05]line НДС 12% НСП 1% [06:46:05]line > о реализуемом товаре [06:46:05]line ОКРУГЛЕНИЕ: -0.43 [06:46:05]line ИТОГО: 2000.00 [06:46:05]line Внесено: 2000.00 [06:46:05]line СДАЧА: 0.00 [06:46:05]line НСП 1% : 17.70 [06:46:05]line НДС 12% : 212.43 [06:46:05]line Наличными: 2000.00 [06:46:05]line Безнал.: 0.00 [06:46:05]line Место: АЗС № 134 "Партнер Нефть" [06:46:05]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:46:05]line СНО: Общий режим [06:46:05]line Чек 32 31.07.2024 06:46 [06:46:05]line Смена: 436 ФФД: 1.0 [06:46:05]line ЗНМ: 0300000044 [06:46:05]line РНМ: 0000000000092660 [06:46:05]line Версия ККМ: 001 [06:46:05]line ФМ: 0000000000874939 [06:46:05]line ФД: 119301 [06:46:05]line ФПД: 139809460526597 [06:46:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T064604&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119301&fm=139809460526597&tin=02508201610067®Number=0000000000092660&sum=200000 [06:46:05]OFD Sender: Processing packet 119301 [packets to send 86, broken 85] [06:46:05]ProducePacketName [06:46:05]name=ofd_packets/00119301 [06:46:05]OFD Sender: To server: pG, [06:46:05]CommunicateWithHost lk.salyk.kg:30040 [06:46:05]ConnectInit lk.salyk.kg [06:46:05]written 0, free lines is 4095 [06:46:05]Connected sock=10 [06:46:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 5C 86 07 01 CF BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 AC DD A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 05 D2 01 00 35 04 06 00 7F 27 ED 3B 1E 05 68 E6 0A 23 18 A7 0A F1 [06:46:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 C3 91 47 00 3E 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 05 D2 01 00 F4 03 04 00 36 8B A9 66 B6 04 01 00 00 82 DF 61 CA 12 3C 14 04 [06:46:05]CommunicateWithHost err = 0 [06:46:05]CheckOFDResponse [06:46:05]1017 (14) - 77093643461234 [06:46:05]1041 (16) - 0000000000874939 [06:46:05]1040 (4) - 119301 [06:46:05]1012 (4) - 31.07.2024 00:54 [06:46:05]1206 (1) - 0 [06:46:05]OFD Sender: Remove packet 119301 [06:46:05]ProducePacketName [06:46:05]name=ofd_packets/00119301 [06:46:05]NVStorageDeleteData [06:46:05]Write to MH i2c: 01 00 00 D7 06 DD [06:46:05]Write i2c OK [06:46:05]MH_I2C_Read... [06:46:05]Read from MH i2c: 01 [06:46:05]MH_I2C_Read... [06:46:05]Read from MH i2c: 01 07 00 [06:46:05]MH_I2C_Read... [06:46:05]Read from MH i2c: 01 07 00 D7 06 00 00 00 00 00 E0 0C D0 [06:46:05]RasterBufferAndPrint [06:46:05]line [06:46:05]line [06:46:05]line [06:46:05]line [06:46:05]line [06:46:05]written 0, free lines is 3301 [06:46:05]MH_Cut [06:46:05]Write to MH i2c: D1 01 00 DE 06 01 B6 [06:46:05]Write i2c OK [06:46:05]MH_I2C_Read... [06:46:05]Read from MH i2c: D1 [06:46:05]MH_I2C_Read... [06:46:05]Read from MH i2c: D1 01 00 [06:46:05]MH_I2C_Read... [06:46:05]Read from MH i2c: D1 01 00 DE 06 00 B5 [06:46:05]Write to MH i2c: 01 00 00 DF 06 E5 [06:46:05]Write i2c OK [06:46:05]MH_I2C_Read... [06:46:06]OFD Sender: No OFD packet to send [06:46:06]*** Cut start [06:46:06]*** Partial cut [06:46:06]*** CUTSNS_PIN = 1 [06:46:06]*** CUTSNS_PIN = 0 [06:46:06]*** Brake cut motor [06:46:07]Read from MH i2c: 01 [06:46:07]MH_I2C_Read... [06:46:07]*** Stop cut motor [06:46:07]*** Cut end [06:46:07]Read from MH i2c: 01 07 00 [06:46:07]MH_I2C_Read... [06:46:07]Read from MH i2c: 01 07 00 DF 06 00 00 00 00 00 FF 0F FA [06:46:07]process_action close_receipt done [06:46:07]requested_data is exist [06:46:07]produce_requested_data [06:46:07]requested_item fm.sn is exist - process it [06:46:07]wFMCommunicate request_size=4 [06:46:07]MH_SAM_APDU [06:46:07]CAPDU: 80 11 00 00 [06:46:07]Write to MH i2c: E2 08 00 E0 06 80 11 00 00 00 00 00 00 60 [06:46:07]Write i2c OK [06:46:07]MH_I2C_Read... [06:46:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:46:07]Read from MH i2c: E2 [06:46:07]MH_I2C_Read... [06:46:07]Read from MH i2c: E2 17 00 [06:46:07]MH_I2C_Read... [06:46:07]Read from MH i2c: E2 17 00 E0 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BB [06:46:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:46:07]wFMCommunicate OK [06:46:07]requested_item fd.num is exist - process it [06:46:07]SAM_PROTO_GetFieldsCounters [06:46:07]wFMCommunicate request_size=4 [06:46:07]MH_SAM_APDU [06:46:07]CAPDU: 80 13 00 00 [06:46:07]Write to MH i2c: E2 08 00 E1 06 80 13 00 00 00 00 00 00 63 [06:46:07]Write i2c OK [06:46:07]MH_I2C_Read... [06:46:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:46:07]Read from MH i2c: E2 [06:46:07]MH_I2C_Read... [06:46:07]Read from MH i2c: E2 62 00 [06:46:07]MH_I2C_Read... [06:46:07]Read from MH i2c: E2 62 00 E1 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 05 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [06:46: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 05 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:46:07]wFMCommunicate OK [06:46:07]SAM_PROTO_GetFieldsCounters done [06:46:07]requested_item shift.num is exist - process it [06:46:07]requested_item shift.opened is exist - process it [06:46:07]req_shift_opened [06:46:07]FM_GetShiftState [06:46:07]SAM_PROTO_GetShiftState [06:46:07]wFMCommunicate request_size=4 [06:46:07]MH_SAM_APDU [06:46:07]CAPDU: 80 13 01 00 [06:46:07]Write to MH i2c: E2 08 00 E2 06 80 13 01 00 00 00 00 00 65 [06:46:07]Write i2c OK [06:46:07]MH_I2C_Read... [06:46:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:46:07]Read from MH i2c: E2 [06:46:07]MH_I2C_Read... [06:46:07]Read from MH i2c: E2 0E 00 [06:46:07]MH_I2C_Read... [06:46:07]Read from MH i2c: E2 0E 00 E2 06 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 FD [06:46:07]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [06:46:07]wFMCommunicate OK [06:46:07]SAM_PROTO_GetShiftState done [06:46:07]FM_GetShiftState done [06:46:07]req_shift_opened done [06:46:07]requested_item shift.open_date is exist - process it [06:46:07]req_shift_open_date [06:46:07]req_shift_open_date done [06:46:07]produce_requested_data done [06:46:07]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119301,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [06:46:07]process_action_free close_receipt [06:46:07]json_value_free [06:46:07]json_value_free done [06:46:07]process_json_proto returns [06:46:07]Send response to host [06:46:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119301,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [06:46:07]free response buf [06:46:07]execute_script done [06:46:07]execute_script returns [06:46:07]free content buf [06:46:07]Sock 8.Close socket [06:46:07]Sock 8.Thread stoped [06:46:11]OFD Sender: No OFD packet to send [06:46:16]OFD Sender: No OFD packet to send [06:46:21]OFD Sender: No OFD packet to send [06:46:26]OFD Sender: No OFD packet to send [06:46:31]OFD Sender: No OFD packet to send [06:46:34]accept exits with 9 [06:46:34]New connection [06:46:34]New thread 3067338084 created [06:46:34]Thread 3067194724 joined [06:46:34]Waiting for new connection... [06:46:34] Sock 9.Parse request [06:46:34]Sock 9.Check first char [06:46:34]Sock 9.First char is OK [06:46:34]request: POST /json_proto HTTP/1.0 [06:46:34]Method: POST [06:46:34]URL: /json_proto [06:46:34]Method is POST - this is cgi request [06:46:34]url: /json_proto [06:46:34]query_string will be loaded in cgi processing [06:46:34]execute_cgi json_proto POST (null) [06:46:34]execute_cgi path=json_proto method=POST [06:46:34]POST find Content-Length [06:46:34]Host: 172.17.45.7:8080 [06:46:34]Content-Length: 682 [06:46:34]Content-Type: application/json [06:46:34] [06:46:34]POST finish read [06:46:34]Found Content-Length = 682 [06:46:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:46:34]execute_script... [06:46: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)950230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:46:34]POST & json_proto [06:46:34]process_json_proto [06:46:34]json parsed OK: [06:46:34]protocol is kg_v1.0 [06:46:34]action value=close_receipt [06:46:34]process_action close_receipt [06:46:34]cmd_close_receipt [06:46:34]MH_GetDate [06:46:34]Write to MH i2c: F0 00 00 E3 06 D8 [06:46:34]Write i2c OK [06:46:34]MH_I2C_Read... [06:46:34]Read from MH i2c: F0 [06:46:34]MH_I2C_Read... [06:46:34]Read from MH i2c: F0 09 00 [06:46:34]MH_I2C_Read... [06:46:34]Read from MH i2c: F0 09 00 E3 06 00 CB DD A9 66 90 0F 3E 66 DB [06:46:34]GetLastDocTimeStamp 1722408364 [06:46:34]current date 1722408395 [06:46:34]FM_GetShiftState [06:46:34]SAM_PROTO_GetShiftState [06:46:34]wFMCommunicate request_size=4 [06:46:34]MH_SAM_APDU [06:46:34]CAPDU: 80 13 01 00 [06:46:34]Write to MH i2c: E2 08 00 E4 06 80 13 01 00 00 00 00 00 67 [06:46:34]Write i2c OK [06:46:34]MH_I2C_Read... [06:46:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:46:34]Read from MH i2c: E2 [06:46:34]MH_I2C_Read... [06:46:34]Read from MH i2c: E2 0E 00 [06:46:34]MH_I2C_Read... [06:46:34]Read from MH i2c: E2 0E 00 E4 06 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 FF [06:46:34]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [06:46:34]wFMCommunicate OK [06:46:34]SAM_PROTO_GetShiftState done [06:46:34]FM_GetShiftState done [06:46:34]opened in 1722384637 [06:46:34]opened+sec_in_day 1722471037 [06:46:34]quantity*price = 200043 [06:46:34]sum+1 = 200044 [06:46:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 33 31.07.2024 06:46 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119302 ФПД: 173856930290591 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T064635&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119302&fm=173856930290591&tin=02508201610067®Number=0000000000092660&sum=200000 [06:46:35]StoreToDocumentArchive [06:46:35]shift 436 fd 119302 [06:46:35]save to /storage/0436/doc_00119302 [06:46:35]save last doc name /storage/0436/doc_00119302 to /storage/kkm_last_doc_name [06:46:35]save OK [06:46:35]Clear old archive folders... [06:46:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:46:35]tlvbuf is 00ACDD40 [06:46:35]SAM_PROTO_ClearQueue [06:46:35]wFMCommunicate request_size=4 [06:46:35]MH_SAM_APDU [06:46:35]CAPDU: 80 09 00 00 [06:46:35]Write to MH i2c: E2 08 00 F1 06 80 09 00 00 00 00 00 00 69 [06:46:35]Write i2c OK [06:46:35]MH_I2C_Read... [06:46:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:46:35]Read from MH i2c: E2 [06:46:35]MH_I2C_Read... [06:46:35]Read from MH i2c: E2 03 00 [06:46:35]MH_I2C_Read... [06:46:35]Read from MH i2c: E2 03 00 F1 06 00 90 00 6B [06:46:35]RAPDU: 90 00 [06:46:35]wFMCommunicate OK [06:46:35]SAM_PROTO_ClearQueue done [06:46:35]KKMCreateOFDPacket [06:46:35]OFDProtocolAddRootSTLVToBuf [06:46:35]FM_MakeSignedData [06:46:35]FM_MakeSignedData [06:46:35]SAM_PROTO_SignData [06:46:35]wFMCommunicate request_size=4 [06:46:35]MH_SAM_APDU [06:46:35]CAPDU: 80 0D 01 02 [06:46:35]Write to MH i2c: E2 08 00 F2 06 80 0D 01 02 00 00 00 00 71 [06:46:35]Write i2c OK [06:46:35]MH_I2C_Read... [06:46:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:46:35]Read from MH i2c: E2 [06:46:35]MH_I2C_Read... [06:46:35]Read from MH i2c: E2 03 00 [06:46:35]MH_I2C_Read... [06:46:35]Read from MH i2c: E2 03 00 F2 06 00 90 00 6C [06:46:35]RAPDU: 90 00 [06:46:35]wFMCommunicate OK [06:46:35]wFMCommunicate request_size=255 [06:46:35]MH_SAM_APDU [06:46:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 CB DD A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 06 D2 01 00 35 04 06 00 9E [06:46:35]Write to MH i2c: E2 02 01 F3 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 CB DD A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 06 D2 01 00 35 04 06 00 9E 00 00 B0 [06:46:35]Write i2c OK [06:46:35]MH_I2C_Read... [06:46:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:46:36]Read from MH i2c: E2 [06:46:36]MH_I2C_Read... [06:46:36]Read from MH i2c: E2 03 00 [06:46:36]MH_I2C_Read... [06:46:36]Read from MH i2c: E2 03 00 F3 06 00 90 00 6D [06:46:36]RAPDU: 90 00 [06:46:36]wFMCommunicate OK [06:46:36]wFMCommunicate request_size=10 [06:46:36]MH_SAM_APDU [06:46:36]CAPDU: 80 0D 02 02 05 1F 38 92 5B 9F [06:46:36]Write to MH i2c: E2 0D 00 F4 06 80 0D 02 02 05 00 1F 38 92 5B 9F 00 00 61 [06:46:36]Write i2c OK [06:46:36]MH_I2C_Read... [06:46:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:46:36]Read from MH i2c: E2 [06:46:36]MH_I2C_Read... [06:46:36]Read from MH i2c: E2 03 00 [06:46:36]MH_I2C_Read... [06:46:36]Read from MH i2c: E2 03 00 F4 06 00 90 00 6E [06:46:36]RAPDU: 90 00 [06:46:36]wFMCommunicate OK [06:46:36]wFMCommunicate request_size=4 [06:46:36]MH_SAM_APDU [06:46:36]CAPDU: 80 0D 03 02 [06:46:36]Write to MH i2c: E2 08 00 F5 06 80 0D 03 02 00 00 00 00 76 [06:46:36]Write i2c OK [06:46:36]MH_I2C_Read... [06:46:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:46:36]Read from MH i2c: E2 [06:46:36]MH_I2C_Read... [06:46:36]Read from MH i2c: E2 0B 00 [06:46:36]MH_I2C_Read... [06:46:36]Read from MH i2c: E2 0B 00 F5 06 00 67 D5 93 1F 56 EF A4 9C 90 00 EA [06:46:36]RAPDU: 67 D5 93 1F 56 EF A4 9C 90 00 [06:46:36]wFMCommunicate OK [06:46:36]SAM_PROTO_SignData done [06:46:36]FM_MakeSignedData done [06:46:36]CreateOFDProtocolMessage [06:46:36]wFMCommunicate request_size=4 [06:46:36]MH_SAM_APDU [06:46:36]CAPDU: 80 11 00 00 [06:46:36]Write to MH i2c: E2 08 00 F6 06 80 11 00 00 00 00 00 00 76 [06:46:36]Write i2c OK [06:46:36]MH_I2C_Read... [06:46:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:46:36]Read from MH i2c: E2 [06:46:36]MH_I2C_Read... [06:46:36]Read from MH i2c: E2 17 00 [06:46:36]MH_I2C_Read... [06:46:36]Read from MH i2c: E2 17 00 F6 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D1 [06:46:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:46:36]wFMCommunicate OK [06:46:36]CreateOFDProtocolMessage done [06:46:36]OFDSenderStorePacket 119302 [06:46:36]StoreOFDPacket docnum=119302 [06:46:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2E 68 07 01 46 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 CB DD A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 06 D2 01 00 35 04 06 00 9E 1F 38 92 5B 9F 67 D5 93 1F 56 EF A4 9C [06:46:36]CheckFolder [06:46:36]dirname=/storage/ofd_packets [06:46:36]CheckFolder done [06:46:36]ProducePacketName [06:46:36]name=ofd_packets/00119302 [06:46:36]NVStorageSaveData ofd_packets/00119302 [06:46:36]File name is /storage/ofd_packets/00119302 [06:46:36]Write 301 bytes [06:46:36]NVStorageSaveData done [06:46:36]OFDSenderStorePacket done [06:46:36]KKMCreateOFDPacket done [06:46:36]NVStorageSaveData kkm_last_timestamp [06:46:36]File name is /storage/kkm_last_timestamp [06:46:36]Write 4 bytes [06:46:36]NVStorageSaveData done [06:46:36]ExternCall_PrintAddStr [06:46:36]wPrintStart [06:46:36]Write to MH i2c: 01 00 00 F7 06 FD [06:46:36]Write i2c OK [06:46:36]MH_I2C_Read... [06:46:36]Read from MH i2c: 01 [06:46:36]MH_I2C_Read... [06:46:36]Read from MH i2c: 01 07 00 [06:46:36]MH_I2C_Read... [06:46:36]Read from MH i2c: 01 07 00 F7 06 00 00 00 00 00 FF 0F 12 [06:46:36]RasterBufferAndPrint [06:46:36]line Счет N : (1)950230 [06:46:36]line ИНН: 02508201610067 [06:46:36]line Контрольно-Кассовый Чек [06:46:36]line ПРОДАЖА [06:46:36]line ТРК (МРК, ГНК) : 43 [06:46:36]line Товар: 2710124500 [06:46:36]line Аи-95-К-3 [06:46:36]line 26.960 * 74.20 [06:46:36]line = 2000.43 [06:46:36]line НДС 12% НСП 1% [06:46:36]line > о реализуемом товаре [06:46:36]line ОКРУГЛЕНИЕ: -0.43 [06:46:36]line ИТОГО: 2000.00 [06:46:36]line Внесено: 2000.00 [06:46:36]line СДАЧА: 0.00 [06:46:36]line НСП 1% : 17.70 [06:46:36]line НДС 12% : 212.43 [06:46:36]line Наличными: 2000.00 [06:46:36]line Безнал.: 0.00 [06:46:36]line Место: АЗС № 134 "Партнер Нефть" [06:46:36]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:46:36]line СНО: Общий режим [06:46:36]line Чек 33 31.07.2024 06:46 [06:46:36]line Смена: 436 ФФД: 1.0 [06:46:36]line ЗНМ: 0300000044 [06:46:36]line РНМ: 0000000000092660 [06:46:36]line Версия ККМ: 001 [06:46:36]line ФМ: 0000000000874939 [06:46:36]line ФД: 119302 [06:46:36]line ФПД: 173856930290591 [06:46:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T064635&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119302&fm=173856930290591&tin=02508201610067®Number=0000000000092660&sum=200000 [06:46:36]written 0, free lines is 4095 [06:46:36]OFD Sender: Processing packet 119302 [packets to send 86, broken 85] [06:46:36]ProducePacketName [06:46:36]name=ofd_packets/00119302 [06:46:36]OFD Sender: To server: pG, [06:46:36]CommunicateWithHost lk.salyk.kg:30040 [06:46:36]ConnectInit lk.salyk.kg [06:46:36]Connected sock=11 [06:46: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 39 33 39 0F 01 00 00 2E 68 07 01 46 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 CB DD A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 06 D2 01 00 35 04 06 00 9E 1F 38 92 5B 9F 67 D5 93 1F 56 EF A4 9C [06:46:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E9 5C 47 00 F0 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 39 33 39 10 04 04 00 06 D2 01 00 F4 03 04 00 54 8B A9 66 B6 04 01 00 00 C3 26 11 96 CB AB 32 7C [06:46:36]CommunicateWithHost err = 0 [06:46:36]CheckOFDResponse [06:46:36]1017 (14) - 77093643461234 [06:46:36]1041 (16) - 0000000000874939 [06:46:36]1040 (4) - 119302 [06:46:36]1012 (4) - 31.07.2024 00:54 [06:46:36]1206 (1) - 0 [06:46:36]OFD Sender: Remove packet 119302 [06:46:36]ProducePacketName [06:46:36]name=ofd_packets/00119302 [06:46:36]NVStorageDeleteData [06:46:36]Write to MH i2c: 01 00 00 21 07 28 [06:46:36]Write i2c OK [06:46:36]MH_I2C_Read... [06:46:36]Read from MH i2c: 01 [06:46:36]MH_I2C_Read... [06:46:36]Read from MH i2c: 01 07 00 [06:46:36]MH_I2C_Read... [06:46:36]Read from MH i2c: 01 07 00 21 07 00 00 00 00 00 E6 0C 21 [06:46:36]RasterBufferAndPrint [06:46:36]line [06:46:36]line [06:46:36]line [06:46:36]line [06:46:36]line [06:46:36]written 0, free lines is 3307 [06:46:36]MH_Cut [06:46:36]Write to MH i2c: D1 01 00 28 07 01 01 [06:46:36]Write i2c OK [06:46:36]MH_I2C_Read... [06:46:36]Read from MH i2c: D1 [06:46:36]MH_I2C_Read... [06:46:36]Read from MH i2c: D1 01 00 [06:46:36]MH_I2C_Read... [06:46:36]Read from MH i2c: D1 01 00 28 07 00 00 [06:46:36]Write to MH i2c: 01 00 00 29 07 30 [06:46:36]Write i2c OK [06:46:36]MH_I2C_Read... [06:46:37]OFD Sender: No OFD packet to send [06:46:37]*** Cut start [06:46:37]*** Partial cut [06:46:37]*** CUTSNS_PIN = 1 [06:46:37]*** CUTSNS_PIN = 0 [06:46:37]*** Brake cut motor [06:46:38]Read from MH i2c: 01 [06:46:38]MH_I2C_Read... [06:46:38]*** Stop cut motor [06:46:38]*** Cut end [06:46:38]Read from MH i2c: 01 07 00 [06:46:38]MH_I2C_Read... [06:46:38]Read from MH i2c: 01 07 00 29 07 00 00 00 00 00 FF 0F 45 [06:46:38]process_action close_receipt done [06:46:38]requested_data is exist [06:46:38]produce_requested_data [06:46:38]requested_item fm.sn is exist - process it [06:46:38]wFMCommunicate request_size=4 [06:46:38]MH_SAM_APDU [06:46:38]CAPDU: 80 11 00 00 [06:46:38]Write to MH i2c: E2 08 00 2A 07 80 11 00 00 00 00 00 00 AB [06:46:38]Write i2c OK [06:46:38]MH_I2C_Read... [06:46:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:46:38]Read from MH i2c: E2 [06:46:38]MH_I2C_Read... [06:46:38]Read from MH i2c: E2 17 00 [06:46:38]MH_I2C_Read... [06:46:38]Read from MH i2c: E2 17 00 2A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 06 [06:46:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:46:38]wFMCommunicate OK [06:46:38]requested_item fd.num is exist - process it [06:46:38]SAM_PROTO_GetFieldsCounters [06:46:38]wFMCommunicate request_size=4 [06:46:38]MH_SAM_APDU [06:46:38]CAPDU: 80 13 00 00 [06:46:38]Write to MH i2c: E2 08 00 2B 07 80 13 00 00 00 00 00 00 AE [06:46:38]Write i2c OK [06:46:38]MH_I2C_Read... [06:46:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:46:38]Read from MH i2c: E2 [06:46:38]MH_I2C_Read... [06:46:38]Read from MH i2c: E2 62 00 [06:46:38]MH_I2C_Read... [06:46:38]Read from MH i2c: E2 62 00 2B 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 06 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [06:46: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 06 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:46:38]wFMCommunicate OK [06:46:38]SAM_PROTO_GetFieldsCounters done [06:46:38]requested_item shift.num is exist - process it [06:46:38]requested_item shift.opened is exist - process it [06:46:38]req_shift_opened [06:46:38]FM_GetShiftState [06:46:38]SAM_PROTO_GetShiftState [06:46:38]wFMCommunicate request_size=4 [06:46:38]MH_SAM_APDU [06:46:38]CAPDU: 80 13 01 00 [06:46:38]Write to MH i2c: E2 08 00 2C 07 80 13 01 00 00 00 00 00 B0 [06:46:38]Write i2c OK [06:46:38]MH_I2C_Read... [06:46:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:46:38]Read from MH i2c: E2 [06:46:38]MH_I2C_Read... [06:46:38]Read from MH i2c: E2 0E 00 [06:46:38]MH_I2C_Read... [06:46:38]Read from MH i2c: E2 0E 00 2C 07 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 48 [06:46:38]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [06:46:38]wFMCommunicate OK [06:46:38]SAM_PROTO_GetShiftState done [06:46:38]FM_GetShiftState done [06:46:38]req_shift_opened done [06:46:38]requested_item shift.open_date is exist - process it [06:46:38]req_shift_open_date [06:46:38]req_shift_open_date done [06:46:38]produce_requested_data done [06:46:38]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119302,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [06:46:38]process_action_free close_receipt [06:46:38]json_value_free [06:46:38]json_value_free done [06:46:38]process_json_proto returns [06:46:38]Send response to host [06:46:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119302,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [06:46:38]free response buf [06:46:38]execute_script done [06:46:38]execute_script returns [06:46:38]free content buf [06:46:38]Sock 9.Close socket [06:46:38]Sock 9.Thread stoped [06:46:42]OFD Sender: No OFD packet to send [06:46:47]OFD Sender: No OFD packet to send [06:46:52]OFD Sender: No OFD packet to send [06:46:57]OFD Sender: No OFD packet to send [06:46:57]accept exits with 8 [06:46:57]New connection [06:46:57]New thread 3067194724 created [06:46:57]Thread 3067338084 joined [06:46:57]Waiting for new connection... [06:46:57] Sock 8.Parse request [06:46:57]Sock 8.Check first char [06:46:57]Sock 8.First char is OK [06:46:57]request: POST /json_proto HTTP/1.0 [06:46:57]Method: POST [06:46:57]URL: /json_proto [06:46:57]Method is POST - this is cgi request [06:46:57]url: /json_proto [06:46:57]query_string will be loaded in cgi processing [06:46:57]execute_cgi json_proto POST (null) [06:46:57]execute_cgi path=json_proto method=POST [06:46:57]POST find Content-Length [06:46:57]Host: 172.17.45.7:8080 [06:46:57]Content-Length: 819 [06:46:57]Content-Type: application/json [06:46:57] [06:46:57]POST finish read [06:46:57]Found Content-Length = 819 [06:46:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:46:57]execute_script... [06:46: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)950228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:46:57]POST & json_proto [06:46:57]process_json_proto [06:46:57]json parsed OK: [06:46:57]protocol is kg_v1.0 [06:46:57]action value=close_receipt [06:46:57]process_action close_receipt [06:46:57]cmd_close_receipt [06:46:57]MH_GetDate [06:46:57]Write to MH i2c: F0 00 00 2D 07 23 [06:46:57]Write i2c OK [06:46:57]MH_I2C_Read... [06:46:57]Read from MH i2c: F0 [06:46:57]MH_I2C_Read... [06:46:57]Read from MH i2c: F0 09 00 [06:46:57]MH_I2C_Read... [06:46:57]Read from MH i2c: F0 09 00 2D 07 00 E2 DD A9 66 90 0F 3E 66 3D [06:46:57]GetLastDocTimeStamp 1722408395 [06:46:57]current date 1722408418 [06:46:57]FM_GetShiftState [06:46:57]SAM_PROTO_GetShiftState [06:46:57]wFMCommunicate request_size=4 [06:46:57]MH_SAM_APDU [06:46:57]CAPDU: 80 13 01 00 [06:46:57]Write to MH i2c: E2 08 00 2E 07 80 13 01 00 00 00 00 00 B2 [06:46:57]Write i2c OK [06:46:57]MH_I2C_Read... [06:46:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:46:57]Read from MH i2c: E2 [06:46:57]MH_I2C_Read... [06:46:57]Read from MH i2c: E2 0E 00 [06:46:57]MH_I2C_Read... [06:46:57]Read from MH i2c: E2 0E 00 2E 07 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 4A [06:46:57]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [06:46:57]wFMCommunicate OK [06:46:57]SAM_PROTO_GetShiftState done [06:46:57]FM_GetShiftState done [06:46:57]opened in 1722384637 [06:46:57]opened+sec_in_day 1722471037 [06:46:57]quantity*price = 300075 [06:46:57]sum+1 = 300077 [06:46:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 34 31.07.2024 06:46 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119303 ФПД: 120529215434073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T064658&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119303&fm=120529215434073&tin=02508201610067®Number=0000000000092660&sum=300000 [06:46:58]StoreToDocumentArchive [06:46:58]shift 436 fd 119303 [06:46:58]save to /storage/0436/doc_00119303 [06:46:58]save last doc name /storage/0436/doc_00119303 to /storage/kkm_last_doc_name [06:46:58]save OK [06:46:58]Clear old archive folders... [06:46:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:46:58]tlvbuf is 00B09910 [06:46:58]SAM_PROTO_ClearQueue [06:46:58]wFMCommunicate request_size=4 [06:46:58]MH_SAM_APDU [06:46:58]CAPDU: 80 09 00 00 [06:46:58]Write to MH i2c: E2 08 00 3B 07 80 09 00 00 00 00 00 00 B4 [06:46:58]Write i2c OK [06:46:58]MH_I2C_Read... [06:46:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:46:58]Read from MH i2c: E2 [06:46:58]MH_I2C_Read... [06:46:58]Read from MH i2c: E2 03 00 [06:46:58]MH_I2C_Read... [06:46:58]Read from MH i2c: E2 03 00 3B 07 00 90 00 B6 [06:46:58]RAPDU: 90 00 [06:46:58]wFMCommunicate OK [06:46:58]SAM_PROTO_ClearQueue done [06:46:58]KKMCreateOFDPacket [06:46:58]OFDProtocolAddRootSTLVToBuf [06:46:58]FM_MakeSignedData [06:46:58]FM_MakeSignedData [06:46:58]SAM_PROTO_SignData [06:46:58]wFMCommunicate request_size=4 [06:46:58]MH_SAM_APDU [06:46:58]CAPDU: 80 0D 01 02 [06:46:58]Write to MH i2c: E2 08 00 3C 07 80 0D 01 02 00 00 00 00 BC [06:46:58]Write i2c OK [06:46:58]MH_I2C_Read... [06:46:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:46:58]Read from MH i2c: E2 [06:46:58]MH_I2C_Read... [06:46:58]Read from MH i2c: E2 03 00 [06:46:58]MH_I2C_Read... [06:46:58]Read from MH i2c: E2 03 00 3C 07 00 90 00 B7 [06:46:58]RAPDU: 90 00 [06:46:58]wFMCommunicate OK [06:46:58]wFMCommunicate request_size=255 [06:46:58]MH_SAM_APDU [06:46:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 E2 DD A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 07 D2 01 00 35 04 06 00 6D 9E E5 12 [06:46:58]Write to MH i2c: E2 02 01 3D 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 E2 DD A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 07 D2 01 00 35 04 06 00 6D 9E E5 12 00 00 04 [06:46:58]Write i2c OK [06:46:58]MH_I2C_Read... [06:46:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:46:58]Read from MH i2c: E2 [06:46:58]MH_I2C_Read... [06:46:58]Read from MH i2c: E2 03 00 [06:46:58]MH_I2C_Read... [06:46:58]Read from MH i2c: E2 03 00 3D 07 00 90 00 B8 [06:46:58]RAPDU: 90 00 [06:46:58]wFMCommunicate OK [06:46:58]wFMCommunicate request_size=7 [06:46:58]MH_SAM_APDU [06:46:58]CAPDU: 80 0D 02 02 02 2D 59 [06:46:58]Write to MH i2c: E2 0A 00 3E 07 80 0D 02 02 02 00 2D 59 00 00 49 [06:46:58]Write i2c OK [06:46:58]MH_I2C_Read... [06:46:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:46:58]Read from MH i2c: E2 [06:46:58]MH_I2C_Read... [06:46:58]Read from MH i2c: E2 03 00 [06:46:58]MH_I2C_Read... [06:46:58]Read from MH i2c: E2 03 00 3E 07 00 90 00 B9 [06:46:58]RAPDU: 90 00 [06:46:58]wFMCommunicate OK [06:46:58]wFMCommunicate request_size=4 [06:46:58]MH_SAM_APDU [06:46:58]CAPDU: 80 0D 03 02 [06:46:58]Write to MH i2c: E2 08 00 3F 07 80 0D 03 02 00 00 00 00 C1 [06:46:58]Write i2c OK [06:46:58]MH_I2C_Read... [06:46:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:46:58]Read from MH i2c: E2 [06:46:58]MH_I2C_Read... [06:46:58]Read from MH i2c: E2 0B 00 [06:46:58]MH_I2C_Read... [06:46:58]Read from MH i2c: E2 0B 00 3F 07 00 9F 11 33 84 63 44 C1 31 90 00 C2 [06:46:58]RAPDU: 9F 11 33 84 63 44 C1 31 90 00 [06:46:58]wFMCommunicate OK [06:46:58]SAM_PROTO_SignData done [06:46:58]FM_MakeSignedData done [06:46:58]CreateOFDProtocolMessage [06:46:58]wFMCommunicate request_size=4 [06:46:58]MH_SAM_APDU [06:46:58]CAPDU: 80 11 00 00 [06:46:58]Write to MH i2c: E2 08 00 40 07 80 11 00 00 00 00 00 00 C1 [06:46:58]Write i2c OK [06:46:58]MH_I2C_Read... [06:46:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:46:58]Read from MH i2c: E2 [06:46:58]MH_I2C_Read... [06:46:58]Read from MH i2c: E2 17 00 [06:46:58]MH_I2C_Read... [06:46:58]Read from MH i2c: E2 17 00 40 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1C [06:46:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:46:58]wFMCommunicate OK [06:46:58]CreateOFDProtocolMessage done [06:46:58]OFDSenderStorePacket 119303 [06:46:58]StoreOFDPacket docnum=119303 [06:46:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 5B F3 04 01 3B AC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 E2 DD A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 07 D2 01 00 35 04 06 00 6D 9E E5 12 2D 59 9F 11 33 84 63 44 C1 31 [06:46:58]CheckFolder [06:46:58]dirname=/storage/ofd_packets [06:46:58]CheckFolder done [06:46:58]ProducePacketName [06:46:58]name=ofd_packets/00119303 [06:46:58]NVStorageSaveData ofd_packets/00119303 [06:46:58]File name is /storage/ofd_packets/00119303 [06:46:58]Write 298 bytes [06:46:58]NVStorageSaveData done [06:46:58]OFDSenderStorePacket done [06:46:58]KKMCreateOFDPacket done [06:46:58]NVStorageSaveData kkm_last_timestamp [06:46:58]File name is /storage/kkm_last_timestamp [06:46:58]Write 4 bytes [06:46:58]NVStorageSaveData done [06:46:58]ExternCall_PrintAddStr [06:46:58]wPrintStart [06:46:58]Write to MH i2c: 01 00 00 41 07 48 [06:46:58]Write i2c OK [06:46:58]MH_I2C_Read... [06:46:58]Read from MH i2c: 01 [06:46:58]MH_I2C_Read... [06:46:58]Read from MH i2c: 01 07 00 [06:46:58]MH_I2C_Read... [06:46:58]Read from MH i2c: 01 07 00 41 07 00 00 00 00 00 FF 0F 5D [06:46:58]RasterBufferAndPrint [06:46:58]line Счет N : (1)950228 [06:46:58]line ИНН: 02508201610067 [06:46:58]line Контрольно-Кассовый Чек [06:46:58]line ПРОДАЖА [06:46:58]line ТРК (МРК, ГНК) : 21 [06:46:58]line Товар: 2710194800 [06:46:58]line ДТ-К-5 [06:46:58]line 39.380 * 76.20 [06:46:58]line = 3000.76 [06:46:58]line НДС 12% НСП 1% [06:46:58]line > о реализуемом товаре [06:46:58]line ОКРУГЛЕНИЕ: -0.76 [06:46:58]line ИТОГО: 3000.00 [06:46:58]line НСП 1% : 26.55 [06:46:58]line НДС 12% : 318.66 [06:46:58]line Наличными: 0.00 [06:46:58]line Безнал.: 3000.00 [06:46:58]line Место: АЗС № 134 "Партнер Нефть" [06:46:58]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:46:58]line СНО: Общий режим [06:46:58]line Чек 34 31.07.2024 06:46 [06:46:58]line Смена: 436 ФФД: 1.0 [06:46:58]line ЗНМ: 0300000044 [06:46:58]line РНМ: 0000000000092660 [06:46:58]line Версия ККМ: 001 [06:46:58]line Платежная система: O! деньги [06:46:58]line ФМ: 0000000000874939 [06:46:58]line ФД: 119303 [06:46:58]line ФПД: 120529215434073 [06:46:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T064658&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119303&fm=120529215434073&tin=02508201610067®Number=0000000000092660&sum=300000 [06:46:59]OFD Sender: Processing packet 119303 [packets to send 86, broken 85] [06:46:59]ProducePacketName [06:46:59]name=ofd_packets/00119303 [06:46:59]OFD Sender: To server: pG, [06:46:59]CommunicateWithHost lk.salyk.kg:30040 [06:46:59]ConnectInit lk.salyk.kg [06:46:59]written 0, free lines is 4095 [06:46:59]Connected sock=10 [06:46:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 5B F3 04 01 3B AC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 E2 DD A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 07 D2 01 00 35 04 06 00 6D 9E E5 12 2D 59 9F 11 33 84 63 44 C1 31 [06:46:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 98 21 47 00 4E 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 07 D2 01 00 F4 03 04 00 6B 8B A9 66 B6 04 01 00 00 F1 8A C0 14 CB C1 73 EC [06:46:59]CommunicateWithHost err = 0 [06:46:59]CheckOFDResponse [06:46:59]1017 (14) - 77093643461234 [06:46:59]1041 (16) - 0000000000874939 [06:46:59]1040 (4) - 119303 [06:46:59]1012 (4) - 31.07.2024 00:55 [06:46:59]1206 (1) - 0 [06:46:59]OFD Sender: Remove packet 119303 [06:46:59]ProducePacketName [06:46:59]name=ofd_packets/00119303 [06:46:59]NVStorageDeleteData [06:46:59]Write to MH i2c: 01 00 00 6B 07 72 [06:46:59]Write i2c OK [06:46:59]MH_I2C_Read... [06:46:59]Read from MH i2c: 01 [06:46:59]MH_I2C_Read... [06:46:59]Read from MH i2c: 01 07 00 [06:46:59]MH_I2C_Read... [06:46:59]Read from MH i2c: 01 07 00 6B 07 00 00 00 00 00 E9 0C 6E [06:46:59]RasterBufferAndPrint [06:46:59]line [06:46:59]line [06:46:59]line [06:46:59]line [06:46:59]line [06:46:59]written 0, free lines is 3311 [06:46:59]MH_Cut [06:46:59]Write to MH i2c: D1 01 00 72 07 01 4B [06:46:59]Write i2c OK [06:46:59]MH_I2C_Read... [06:46:59]Read from MH i2c: D1 [06:46:59]MH_I2C_Read... [06:46:59]Read from MH i2c: D1 01 00 [06:46:59]MH_I2C_Read... [06:46:59]Read from MH i2c: D1 01 00 72 07 00 4A [06:46:59]Write to MH i2c: 01 00 00 73 07 7A [06:46:59]Write i2c OK [06:46:59]MH_I2C_Read... [06:47:00]OFD Sender: No OFD packet to send [06:47:00]*** Cut start [06:47:00]*** Partial cut [06:47:00]*** CUTSNS_PIN = 1 [06:47:00]*** CUTSNS_PIN = 0 [06:47:00]*** Brake cut motor [06:47:01]Read from MH i2c: 01 [06:47:01]MH_I2C_Read... [06:47:01]*** Stop cut motor [06:47:01]*** Cut end [06:47:01]Read from MH i2c: 01 07 00 [06:47:01]MH_I2C_Read... [06:47:01]Read from MH i2c: 01 07 00 73 07 00 00 00 00 00 FF 0F 8F [06:47:01]process_action close_receipt done [06:47:01]requested_data is exist [06:47:01]produce_requested_data [06:47:01]requested_item fm.sn is exist - process it [06:47:01]wFMCommunicate request_size=4 [06:47:01]MH_SAM_APDU [06:47:01]CAPDU: 80 11 00 00 [06:47:01]Write to MH i2c: E2 08 00 74 07 80 11 00 00 00 00 00 00 F5 [06:47:01]Write i2c OK [06:47:01]MH_I2C_Read... [06:47:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:47:01]Read from MH i2c: E2 [06:47:01]MH_I2C_Read... [06:47:01]Read from MH i2c: E2 17 00 [06:47:01]MH_I2C_Read... [06:47:01]Read from MH i2c: E2 17 00 74 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 50 [06:47:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:47:01]wFMCommunicate OK [06:47:01]requested_item fd.num is exist - process it [06:47:01]SAM_PROTO_GetFieldsCounters [06:47:01]wFMCommunicate request_size=4 [06:47:01]MH_SAM_APDU [06:47:01]CAPDU: 80 13 00 00 [06:47:01]Write to MH i2c: E2 08 00 75 07 80 13 00 00 00 00 00 00 F8 [06:47:01]Write i2c OK [06:47:01]MH_I2C_Read... [06:47:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:47:01]Read from MH i2c: E2 [06:47:01]MH_I2C_Read... [06:47:01]Read from MH i2c: E2 62 00 [06:47:01]MH_I2C_Read... [06:47:01]Read from MH i2c: E2 62 00 75 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 07 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [06:47: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 07 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:47:01]wFMCommunicate OK [06:47:01]SAM_PROTO_GetFieldsCounters done [06:47:01]requested_item shift.num is exist - process it [06:47:01]requested_item shift.opened is exist - process it [06:47:01]req_shift_opened [06:47:01]FM_GetShiftState [06:47:01]SAM_PROTO_GetShiftState [06:47:01]wFMCommunicate request_size=4 [06:47:01]MH_SAM_APDU [06:47:01]CAPDU: 80 13 01 00 [06:47:01]Write to MH i2c: E2 08 00 76 07 80 13 01 00 00 00 00 00 FA [06:47:01]Write i2c OK [06:47:01]MH_I2C_Read... [06:47:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:47:01]Read from MH i2c: E2 [06:47:01]MH_I2C_Read... [06:47:01]Read from MH i2c: E2 0E 00 [06:47:01]MH_I2C_Read... [06:47:01]Read from MH i2c: E2 0E 00 76 07 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 92 [06:47:01]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [06:47:01]wFMCommunicate OK [06:47:01]SAM_PROTO_GetShiftState done [06:47:01]FM_GetShiftState done [06:47:01]req_shift_opened done [06:47:01]requested_item shift.open_date is exist - process it [06:47:01]req_shift_open_date [06:47:01]req_shift_open_date done [06:47:01]produce_requested_data done [06:47:01]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119303,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [06:47:01]process_action_free close_receipt [06:47:01]json_value_free [06:47:01]json_value_free done [06:47:01]process_json_proto returns [06:47:01]Send response to host [06:47:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119303,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [06:47:01]free response buf [06:47:01]execute_script done [06:47:01]execute_script returns [06:47:01]free content buf [06:47:01]Sock 8.Close socket [06:47:01]Sock 8.Thread stoped [06:47:05]OFD Sender: No OFD packet to send [06:47:10]OFD Sender: No OFD packet to send [06:47:15]OFD Sender: No OFD packet to send [06:47:20]OFD Sender: No OFD packet to send [06:47:25]OFD Sender: No OFD packet to send [06:47:30]OFD Sender: No OFD packet to send [06:47:35]OFD Sender: No OFD packet to send [06:47:40]OFD Sender: No OFD packet to send [06:47:45]OFD Sender: No OFD packet to send [06:47:50]OFD Sender: No OFD packet to send [06:47:55]OFD Sender: No OFD packet to send [06:48:00]OFD Sender: No OFD packet to send [06:48:05]OFD Sender: No OFD packet to send [06:48:10]OFD Sender: No OFD packet to send [06:48:15]OFD Sender: No OFD packet to send [06:48:20]OFD Sender: No OFD packet to send [06:48:25]OFD Sender: No OFD packet to send [06:48:30]OFD Sender: No OFD packet to send [06:48:35]OFD Sender: No OFD packet to send [06:48:40]OFD Sender: No OFD packet to send [06:48:45]OFD Sender: No OFD packet to send [06:48:50]OFD Sender: No OFD packet to send [06:48:55]OFD Sender: No OFD packet to send [06:49:00]OFD Sender: No OFD packet to send [06:49:05]OFD Sender: No OFD packet to send [06:49:10]OFD Sender: No OFD packet to send [06:49:15]OFD Sender: No OFD packet to send [06:49:20]OFD Sender: No OFD packet to send [06:49:25]OFD Sender: No OFD packet to send [06:49:30]OFD Sender: No OFD packet to send [06:49:35]OFD Sender: No OFD packet to send [06:49:40]OFD Sender: No OFD packet to send [06:49:45]OFD Sender: No OFD packet to send [06:49:50]OFD Sender: No OFD packet to send [06:49:55]OFD Sender: No OFD packet to send [06:50:00]OFD Sender: No OFD packet to send [06:50:05]OFD Sender: No OFD packet to send [06:50:06]accept exits with 9 [06:50:06]New connection [06:50:06]New thread 3067338084 created [06:50:06]Thread 3067194724 joined [06:50:06]Waiting for new connection... [06:50:06] Sock 9.Parse request [06:50:06]Sock 9.Check first char [06:50:06]Sock 9.First char is OK [06:50:06]request: POST /json_proto HTTP/1.0 [06:50:06]Method: POST [06:50:06]URL: /json_proto [06:50:06]Method is POST - this is cgi request [06:50:06]url: /json_proto [06:50:06]query_string will be loaded in cgi processing [06:50:06]execute_cgi json_proto POST (null) [06:50:06]execute_cgi path=json_proto method=POST [06:50:06]POST find Content-Length [06:50:06]Host: 172.17.45.7:8080 [06:50:06]Content-Length: 679 [06:50:06]Content-Type: application/json [06:50:06] [06:50:06]POST finish read [06:50:06]Found Content-Length = 679 [06:50:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 44.620, "sum" : 3400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3400.00, "total" : 3400.00, "payments": [ { "type": 0, "sum" : 3400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:50:06]execute_script... [06:50:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 44.620, "sum" : 3400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3400.00, "total" : 3400.00, "payments": [ { "type": 0, "sum" : 3400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:50:06]POST & json_proto [06:50:06]process_json_proto [06:50:06]json parsed OK: [06:50:06]protocol is kg_v1.0 [06:50:06]action value=close_receipt [06:50:06]process_action close_receipt [06:50:06]cmd_close_receipt [06:50:06]MH_GetDate [06:50:06]Write to MH i2c: F0 00 00 77 07 6D [06:50:06]Write i2c OK [06:50:06]MH_I2C_Read... [06:50:06]Read from MH i2c: F0 [06:50:06]MH_I2C_Read... [06:50:06]Read from MH i2c: F0 09 00 [06:50:06]MH_I2C_Read... [06:50:06]Read from MH i2c: F0 09 00 77 07 00 9F DE A9 66 90 0F 3E 66 45 [06:50:06]GetLastDocTimeStamp 1722408418 [06:50:06]current date 1722408607 [06:50:06]FM_GetShiftState [06:50:06]SAM_PROTO_GetShiftState [06:50:06]wFMCommunicate request_size=4 [06:50:06]MH_SAM_APDU [06:50:06]CAPDU: 80 13 01 00 [06:50:06]Write to MH i2c: E2 08 00 78 07 80 13 01 00 00 00 00 00 FC [06:50:06]Write i2c OK [06:50:06]MH_I2C_Read... [06:50:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:50:06]Read from MH i2c: E2 [06:50:06]MH_I2C_Read... [06:50:06]Read from MH i2c: E2 0E 00 [06:50:06]MH_I2C_Read... [06:50:06]Read from MH i2c: E2 0E 00 78 07 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 94 [06:50:06]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [06:50:06]wFMCommunicate OK [06:50:06]SAM_PROTO_GetShiftState done [06:50:06]FM_GetShiftState done [06:50:06]opened in 1722384637 [06:50:06]opened+sec_in_day 1722471037 [06:50:06]quantity*price = 340004 [06:50:06]sum+1 = 340005 [06:50:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 3400.00 Внесено: 3400.00 СДАЧА: 0.00 НСП 1% : 30.09 НДС 12% : 361.07 Наличными: 3400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 35 31.07.2024 06:50 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119304 ФПД: 261613104057881 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T065007&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119304&fm=261613104057881&tin=02508201610067®Number=0000000000092660&sum=340000 [06:50:07]StoreToDocumentArchive [06:50:07]shift 436 fd 119304 [06:50:07]save to /storage/0436/doc_00119304 [06:50:07]save last doc name /storage/0436/doc_00119304 to /storage/kkm_last_doc_name [06:50:07]save OK [06:50:07]Clear old archive folders... [06:50:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:50:07]tlvbuf is 00B1B010 [06:50:07]SAM_PROTO_ClearQueue [06:50:07]wFMCommunicate request_size=4 [06:50:07]MH_SAM_APDU [06:50:07]CAPDU: 80 09 00 00 [06:50:07]Write to MH i2c: E2 08 00 85 07 80 09 00 00 00 00 00 00 FE [06:50:07]Write i2c OK [06:50:07]MH_I2C_Read... [06:50:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:50:07]Read from MH i2c: E2 [06:50:07]MH_I2C_Read... [06:50:07]Read from MH i2c: E2 03 00 [06:50:07]MH_I2C_Read... [06:50:07]Read from MH i2c: E2 03 00 85 07 00 90 00 00 [06:50:07]RAPDU: 90 00 [06:50:07]wFMCommunicate OK [06:50:07]SAM_PROTO_ClearQueue done [06:50:07]KKMCreateOFDPacket [06:50:07]OFDProtocolAddRootSTLVToBuf [06:50:07]FM_MakeSignedData [06:50:07]FM_MakeSignedData [06:50:07]SAM_PROTO_SignData [06:50:07]wFMCommunicate request_size=4 [06:50:07]MH_SAM_APDU [06:50:07]CAPDU: 80 0D 01 02 [06:50:07]Write to MH i2c: E2 08 00 86 07 80 0D 01 02 00 00 00 00 06 [06:50:07]Write i2c OK [06:50:07]MH_I2C_Read... [06:50:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:50:07]Read from MH i2c: E2 [06:50:07]MH_I2C_Read... [06:50:07]Read from MH i2c: E2 03 00 [06:50:07]MH_I2C_Read... [06:50:07]Read from MH i2c: E2 03 00 86 07 00 90 00 01 [06:50:07]RAPDU: 90 00 [06:50:07]wFMCommunicate OK [06:50:07]wFMCommunicate request_size=255 [06:50:07]MH_SAM_APDU [06:50:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4C AE 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 24 30 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 30 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 8D 00 00 00 00 07 04 06 00 20 30 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 9F DE A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 08 D2 01 00 35 04 06 00 ED EF 8C 22 [06:50:07]Write to MH i2c: E2 02 01 87 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4C AE 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 24 30 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 30 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 8D 00 00 00 00 07 04 06 00 20 30 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 9F DE A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 08 D2 01 00 35 04 06 00 ED EF 8C 22 00 00 79 [06:50:07]Write i2c OK [06:50:07]MH_I2C_Read... [06:50:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:50:08]Read from MH i2c: E2 [06:50:08]MH_I2C_Read... [06:50:08]Read from MH i2c: E2 03 00 [06:50:08]MH_I2C_Read... [06:50:08]Read from MH i2c: E2 03 00 87 07 00 90 00 02 [06:50:08]RAPDU: 90 00 [06:50:08]wFMCommunicate OK [06:50:08]wFMCommunicate request_size=7 [06:50:08]MH_SAM_APDU [06:50:08]CAPDU: 80 0D 02 02 02 CE 19 [06:50:08]Write to MH i2c: E2 0A 00 88 07 80 0D 02 02 02 00 CE 19 00 00 F4 [06:50:08]Write i2c OK [06:50:08]MH_I2C_Read... [06:50:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:50:08]Read from MH i2c: E2 [06:50:08]MH_I2C_Read... [06:50:08]Read from MH i2c: E2 03 00 [06:50:08]MH_I2C_Read... [06:50:08]Read from MH i2c: E2 03 00 88 07 00 90 00 03 [06:50:08]RAPDU: 90 00 [06:50:08]wFMCommunicate OK [06:50:08]wFMCommunicate request_size=4 [06:50:08]MH_SAM_APDU [06:50:08]CAPDU: 80 0D 03 02 [06:50:08]Write to MH i2c: E2 08 00 89 07 80 0D 03 02 00 00 00 00 0B [06:50:08]Write i2c OK [06:50:08]MH_I2C_Read... [06:50:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:50:08]Read from MH i2c: E2 [06:50:08]MH_I2C_Read... [06:50:08]Read from MH i2c: E2 0B 00 [06:50:08]MH_I2C_Read... [06:50:08]Read from MH i2c: E2 0B 00 89 07 00 8B DD 5D 49 E5 C2 83 2B 90 00 6F [06:50:08]RAPDU: 8B DD 5D 49 E5 C2 83 2B 90 00 [06:50:08]wFMCommunicate OK [06:50:08]SAM_PROTO_SignData done [06:50:08]FM_MakeSignedData done [06:50:08]CreateOFDProtocolMessage [06:50:08]wFMCommunicate request_size=4 [06:50:08]MH_SAM_APDU [06:50:08]CAPDU: 80 11 00 00 [06:50:08]Write to MH i2c: E2 08 00 8A 07 80 11 00 00 00 00 00 00 0B [06:50:08]Write i2c OK [06:50:08]MH_I2C_Read... [06:50:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:50:08]Read from MH i2c: E2 [06:50:08]MH_I2C_Read... [06:50:08]Read from MH i2c: E2 17 00 [06:50:08]MH_I2C_Read... [06:50:08]Read from MH i2c: E2 17 00 8A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 66 [06:50:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:50:08]wFMCommunicate OK [06:50:08]CreateOFDProtocolMessage done [06:50:08]OFDSenderStorePacket 119304 [06:50:08]StoreOFDPacket docnum=119304 [06:50:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 9B DB 04 01 00 C0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4C AE 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 24 30 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 30 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 8D 00 00 00 00 07 04 06 00 20 30 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 9F DE A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 08 D2 01 00 35 04 06 00 ED EF 8C 22 CE 19 8B DD 5D 49 E5 C2 83 2B [06:50:08]CheckFolder [06:50:08]dirname=/storage/ofd_packets [06:50:08]CheckFolder done [06:50:08]ProducePacketName [06:50:08]name=ofd_packets/00119304 [06:50:08]NVStorageSaveData ofd_packets/00119304 [06:50:08]File name is /storage/ofd_packets/00119304 [06:50:08]Write 298 bytes [06:50:08]NVStorageSaveData done [06:50:08]OFDSenderStorePacket done [06:50:08]KKMCreateOFDPacket done [06:50:08]NVStorageSaveData kkm_last_timestamp [06:50:08]File name is /storage/kkm_last_timestamp [06:50:08]Write 4 bytes [06:50:08]NVStorageSaveData done [06:50:08]ExternCall_PrintAddStr [06:50:08]wPrintStart [06:50:08]Write to MH i2c: 01 00 00 8B 07 92 [06:50:08]Write i2c OK [06:50:08]MH_I2C_Read... [06:50:08]Read from MH i2c: 01 [06:50:08]MH_I2C_Read... [06:50:08]Read from MH i2c: 01 07 00 [06:50:08]MH_I2C_Read... [06:50:08]Read from MH i2c: 01 07 00 8B 07 00 00 00 00 00 FF 0F A7 [06:50:08]RasterBufferAndPrint [06:50:08]line Счет N : (1)950231 [06:50:08]line ИНН: 02508201610067 [06:50:08]line Контрольно-Кассовый Чек [06:50:08]line ПРОДАЖА [06:50:08]line ТРК (МРК, ГНК) : 34 [06:50:08]line Товар: 2710194800 [06:50:08]line ДТ-К-5 [06:50:08]line 44.620 * 76.20 [06:50:08]line = 3400.04 [06:50:08]line НДС 12% НСП 1% [06:50:08]line > о реализуемом товаре [06:50:08]line ОКРУГЛЕНИЕ: -0.04 [06:50:08]line ИТОГО: 3400.00 [06:50:08]line Внесено: 3400.00 [06:50:08]line СДАЧА: 0.00 [06:50:08]line НСП 1% : 30.09 [06:50:08]line НДС 12% : 361.07 [06:50:08]line Наличными: 3400.00 [06:50:08]line Безнал.: 0.00 [06:50:08]line Место: АЗС № 134 "Партнер Нефть" [06:50:08]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:50:08]line СНО: Общий режим [06:50:08]line Чек 35 31.07.2024 06:50 [06:50:08]line Смена: 436 ФФД: 1.0 [06:50:08]line ЗНМ: 0300000044 [06:50:08]line РНМ: 0000000000092660 [06:50:08]line Версия ККМ: 001 [06:50:08]line ФМ: 0000000000874939 [06:50:08]line ФД: 119304 [06:50:08]line ФПД: 261613104057881 [06:50:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T065007&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119304&fm=261613104057881&tin=02508201610067®Number=0000000000092660&sum=340000 [06:50:08]OFD Sender: Processing packet 119304 [packets to send 86, broken 85] [06:50:08]ProducePacketName [06:50:08]name=ofd_packets/00119304 [06:50:08]OFD Sender: To server: pG, [06:50:08]CommunicateWithHost lk.salyk.kg:30040 [06:50:08]ConnectInit lk.salyk.kg [06:50:08]written 0, free lines is 4095 [06:50:08]Connected sock=10 [06:50: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 39 33 39 0C 01 00 00 9B DB 04 01 00 C0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4C AE 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 24 30 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 30 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 8D 00 00 00 00 07 04 06 00 20 30 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 9F DE A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 08 D2 01 00 35 04 06 00 ED EF 8C 22 CE 19 8B DD 5D 49 E5 C2 83 2B [06:50:09]Write to MH i2c: 01 00 00 B5 07 BC [06:50:09]Write i2c OK [06:50:09]MH_I2C_Read... [06:50:09]Read from MH i2c: 01 [06:50:09]MH_I2C_Read... [06:50:09]Read from MH i2c: 01 07 00 [06:50:09]MH_I2C_Read... [06:50:09]Read from MH i2c: 01 07 00 B5 07 00 00 00 00 00 D1 0C A0 [06:50:09]RasterBufferAndPrint [06:50:09]line [06:50:09]line [06:50:09]line [06:50:09]line [06:50:09]line [06:50:09]written 0, free lines is 3288 [06:50:09]MH_Cut [06:50:09]Write to MH i2c: D1 01 00 BC 07 01 95 [06:50:09]Write i2c OK [06:50:09]MH_I2C_Read... [06:50:09]Read from MH i2c: D1 [06:50:09]MH_I2C_Read... [06:50:09]Read from MH i2c: D1 01 00 [06:50:09]MH_I2C_Read... [06:50:09]Read from MH i2c: D1 01 00 BC 07 00 94 [06:50:09]Write to MH i2c: 01 00 00 BD 07 C4 [06:50:09]Write i2c OK [06:50:09]MH_I2C_Read... [06:50:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B5 D7 47 00 21 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 39 33 39 10 04 04 00 08 D2 01 00 F4 03 04 00 29 8C A9 66 B6 04 01 00 00 A4 B9 8D 64 1B C1 D4 52 [06:50:09]CommunicateWithHost err = 0 [06:50:09]CheckOFDResponse [06:50:09]1017 (14) - 77093643461234 [06:50:09]1041 (16) - 0000000000874939 [06:50:09]1040 (4) - 119304 [06:50:09]1012 (4) - 31.07.2024 00:58 [06:50:09]1206 (1) - 0 [06:50:09]OFD Sender: Remove packet 119304 [06:50:09]ProducePacketName [06:50:09]name=ofd_packets/00119304 [06:50:09]NVStorageDeleteData [06:50:09]OFD Sender: No OFD packet to send [06:50:09]*** Cut start [06:50:09]*** Partial cut [06:50:09]*** CUTSNS_PIN = 1 [06:50:09]*** CUTSNS_PIN = 0 [06:50:10]*** Brake cut motor [06:50:10]Read from MH i2c: 01 [06:50:10]MH_I2C_Read... [06:50:10]*** Stop cut motor [06:50:10]*** Cut end [06:50:10]Read from MH i2c: 01 07 00 [06:50:10]MH_I2C_Read... [06:50:10]Read from MH i2c: 01 07 00 BD 07 00 00 00 00 00 FF 0F D9 [06:50:10]process_action close_receipt done [06:50:10]requested_data is exist [06:50:10]produce_requested_data [06:50:10]requested_item fm.sn is exist - process it [06:50:10]wFMCommunicate request_size=4 [06:50:10]MH_SAM_APDU [06:50:10]CAPDU: 80 11 00 00 [06:50:10]Write to MH i2c: E2 08 00 BE 07 80 11 00 00 00 00 00 00 3F [06:50:10]Write i2c OK [06:50:10]MH_I2C_Read... [06:50:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:50:10]Read from MH i2c: E2 [06:50:10]MH_I2C_Read... [06:50:10]Read from MH i2c: E2 17 00 [06:50:10]MH_I2C_Read... [06:50:10]Read from MH i2c: E2 17 00 BE 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9A [06:50:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:50:10]wFMCommunicate OK [06:50:10]requested_item fd.num is exist - process it [06:50:10]SAM_PROTO_GetFieldsCounters [06:50:10]wFMCommunicate request_size=4 [06:50:10]MH_SAM_APDU [06:50:10]CAPDU: 80 13 00 00 [06:50:10]Write to MH i2c: E2 08 00 BF 07 80 13 00 00 00 00 00 00 42 [06:50:10]Write i2c OK [06:50:10]MH_I2C_Read... [06:50:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:50:10]Read from MH i2c: E2 [06:50:10]MH_I2C_Read... [06:50:10]Read from MH i2c: E2 62 00 [06:50:10]MH_I2C_Read... [06:50:10]Read from MH i2c: E2 62 00 BF 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 08 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [06:50: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 08 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:50:10]wFMCommunicate OK [06:50:10]SAM_PROTO_GetFieldsCounters done [06:50:10]requested_item shift.num is exist - process it [06:50:10]requested_item shift.opened is exist - process it [06:50:10]req_shift_opened [06:50:10]FM_GetShiftState [06:50:10]SAM_PROTO_GetShiftState [06:50:10]wFMCommunicate request_size=4 [06:50:10]MH_SAM_APDU [06:50:10]CAPDU: 80 13 01 00 [06:50:10]Write to MH i2c: E2 08 00 C0 07 80 13 01 00 00 00 00 00 44 [06:50:10]Write i2c OK [06:50:10]MH_I2C_Read... [06:50:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:50:10]Read from MH i2c: E2 [06:50:10]MH_I2C_Read... [06:50:10]Read from MH i2c: E2 0E 00 [06:50:10]MH_I2C_Read... [06:50:10]Read from MH i2c: E2 0E 00 C0 07 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 DC [06:50:10]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [06:50:10]wFMCommunicate OK [06:50:10]SAM_PROTO_GetShiftState done [06:50:10]FM_GetShiftState done [06:50:10]req_shift_opened done [06:50:10]requested_item shift.open_date is exist - process it [06:50:10]req_shift_open_date [06:50:10]req_shift_open_date done [06:50:10]produce_requested_data done [06:50:10]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119304,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [06:50:10]process_action_free close_receipt [06:50:10]json_value_free [06:50:10]json_value_free done [06:50:10]process_json_proto returns [06:50:10]Send response to host [06:50:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119304,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [06:50:10]free response buf [06:50:10]execute_script done [06:50:10]execute_script returns [06:50:10]free content buf [06:50:10]Sock 9.Close socket [06:50:10]Sock 9.Thread stoped [06:50:14]OFD Sender: No OFD packet to send [06:50:19]OFD Sender: No OFD packet to send [06:50:24]OFD Sender: No OFD packet to send [06:50:29]OFD Sender: No OFD packet to send [06:50:34]OFD Sender: No OFD packet to send [06:50:39]OFD Sender: No OFD packet to send [06:50:44]OFD Sender: No OFD packet to send [06:50:49]OFD Sender: No OFD packet to send [06:50:54]OFD Sender: No OFD packet to send [06:50:59]OFD Sender: No OFD packet to send [06:51:04]OFD Sender: No OFD packet to send [06:51:09]OFD Sender: No OFD packet to send [06:51:14]OFD Sender: No OFD packet to send [06:51:19]OFD Sender: No OFD packet to send [06:51:24]OFD Sender: No OFD packet to send [06:51:29]OFD Sender: No OFD packet to send [06:51:34]OFD Sender: No OFD packet to send [06:51:39]OFD Sender: No OFD packet to send [06:51:44]OFD Sender: No OFD packet to send [06:51:49]OFD Sender: No OFD packet to send [06:51:54]OFD Sender: No OFD packet to send [06:51:59]OFD Sender: No OFD packet to send [06:52:03]accept exits with 8 [06:52:03]New connection [06:52:03]New thread 3067194724 created [06:52:03]Thread 3067338084 joined [06:52:03]Waiting for new connection... [06:52:03] Sock 8.Parse request [06:52:03]Sock 8.Check first char [06:52:03]Sock 8.First char is OK [06:52:03]request: POST /json_proto HTTP/1.0 [06:52:03]Method: POST [06:52:03]URL: /json_proto [06:52:03]Method is POST - this is cgi request [06:52:03]url: /json_proto [06:52:03]query_string will be loaded in cgi processing [06:52:03]execute_cgi json_proto POST (null) [06:52:03]execute_cgi path=json_proto method=POST [06:52:03]POST find Content-Length [06:52:03]Host: 172.17.45.7:8080 [06:52:03]Content-Length: 736 [06:52:03]Content-Type: application/json [06:52:03] [06:52:03]POST finish read [06:52:03]Found Content-Length = 736 [06:52:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 119304, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 44.620, "sum" : 3400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3400.00, "total" : 3400.00, "payments": [ { "type": 0, "sum" : 3400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:52:03]execute_script... [06:52:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 119304, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 44.620, "sum" : 3400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3400.00, "total" : 3400.00, "payments": [ { "type": 0, "sum" : 3400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:52:03]POST & json_proto [06:52:03]process_json_proto [06:52:03]json parsed OK: [06:52:03]protocol is kg_v1.0 [06:52:03]action value=close_receipt [06:52:03]process_action close_receipt [06:52:03]cmd_close_receipt [06:52:03]MH_GetDate [06:52:03]Write to MH i2c: F0 00 00 C1 07 B7 [06:52:03]Write i2c OK [06:52:03]MH_I2C_Read... [06:52:03]Read from MH i2c: F0 [06:52:03]MH_I2C_Read... [06:52:03]Read from MH i2c: F0 09 00 [06:52:03]MH_I2C_Read... [06:52:03]Read from MH i2c: F0 09 00 C1 07 00 14 DF A9 66 90 0F 3E 66 05 [06:52:03]GetLastDocTimeStamp 1722408607 [06:52:03]current date 1722408724 [06:52:03]FM_GetShiftState [06:52:03]SAM_PROTO_GetShiftState [06:52:03]wFMCommunicate request_size=4 [06:52:03]MH_SAM_APDU [06:52:03]CAPDU: 80 13 01 00 [06:52:03]Write to MH i2c: E2 08 00 C2 07 80 13 01 00 00 00 00 00 46 [06:52:03]Write i2c OK [06:52:03]MH_I2C_Read... [06:52:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:52:03]Read from MH i2c: E2 [06:52:03]MH_I2C_Read... [06:52:03]Read from MH i2c: E2 0E 00 [06:52:03]MH_I2C_Read... [06:52:03]Read from MH i2c: E2 0E 00 C2 07 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 DE [06:52:03]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [06:52:03]wFMCommunicate OK [06:52:03]SAM_PROTO_GetShiftState done [06:52:03]FM_GetShiftState done [06:52:03]opened in 1722384637 [06:52:03]opened+sec_in_day 1722471037 [06:52:03]quantity*price = 340004 [06:52:03]sum+1 = 340005 [06:52:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 3400.00 НСП 1% : 30.09 НДС 12% : 361.07 Наличными: 3400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 36 31.07.2024 06:52 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФД осн.: 119304 ФМ осн.: 0000000000874939 ФМ: 0000000000874939 ФД: 119305 ФПД: 123212906612014 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T065204&type=2&operation_type=1&fn_number=0000000000874939&fd_number=119305&fm=123212906612014&tin=02508201610067®Number=0000000000092660&sum=340000 [06:52:04]StoreToDocumentArchive [06:52:04]shift 436 fd 119305 [06:52:04]save to /storage/0436/doc_00119305 [06:52:04]save last doc name /storage/0436/doc_00119305 to /storage/kkm_last_doc_name [06:52:04]save OK [06:52:04]Clear old archive folders... [06:52:04]ProcessDocumentItem done err = 0, tmpTLVsize=276 [06:52:04]tlvbuf is 00AD0660 [06:52:04]SAM_PROTO_ClearQueue [06:52:04]wFMCommunicate request_size=4 [06:52:04]MH_SAM_APDU [06:52:04]CAPDU: 80 09 00 00 [06:52:04]Write to MH i2c: E2 08 00 D1 07 80 09 00 00 00 00 00 00 4A [06:52:04]Write i2c OK [06:52:04]MH_I2C_Read... [06:52:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:52:04]Read from MH i2c: E2 [06:52:04]MH_I2C_Read... [06:52:04]Read from MH i2c: E2 03 00 [06:52:04]MH_I2C_Read... [06:52:04]Read from MH i2c: E2 03 00 D1 07 00 90 00 4C [06:52:04]RAPDU: 90 00 [06:52:04]wFMCommunicate OK [06:52:04]SAM_PROTO_ClearQueue done [06:52:04]KKMCreateOFDPacket [06:52:04]OFDProtocolAddRootSTLVToBuf [06:52:04]FM_MakeSignedData [06:52:04]FM_MakeSignedData [06:52:04]SAM_PROTO_SignData [06:52:04]wFMCommunicate request_size=4 [06:52:04]MH_SAM_APDU [06:52:04]CAPDU: 80 0D 01 02 [06:52:04]Write to MH i2c: E2 08 00 D2 07 80 0D 01 02 00 00 00 00 52 [06:52:04]Write i2c OK [06:52:04]MH_I2C_Read... [06:52:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:52:04]Read from MH i2c: E2 [06:52:04]MH_I2C_Read... [06:52:04]Read from MH i2c: E2 03 00 [06:52:04]MH_I2C_Read... [06:52:05]Read from MH i2c: E2 03 00 D2 07 00 90 00 4D [06:52:05]RAPDU: 90 00 [06:52:05]wFMCommunicate OK [06:52:05]wFMCommunicate request_size=255 [06:52:05]MH_SAM_APDU [06:52:05]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4C AE 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 24 30 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 30 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 8D 00 00 00 00 07 04 06 00 20 30 05 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 14 DF A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 08 D2 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 [06:52:05]Write to MH i2c: E2 02 01 D3 07 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4C AE 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 24 30 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 30 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 8D 00 00 00 00 07 04 06 00 20 30 05 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 14 DF A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 08 D2 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 00 00 A4 [06:52:05]Write i2c OK [06:52:05]MH_I2C_Read... [06:52:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:52:05]Read from MH i2c: E2 [06:52:05]MH_I2C_Read... [06:52:05]Read from MH i2c: E2 03 00 [06:52:05]MH_I2C_Read... [06:52:05]Read from MH i2c: E2 03 00 D3 07 00 90 00 4E [06:52:05]RAPDU: 90 00 [06:52:05]wFMCommunicate OK [06:52:05]wFMCommunicate request_size=35 [06:52:05]MH_SAM_APDU [06:52:05]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 09 D2 01 00 35 04 06 00 70 0F BD 87 C5 2E [06:52:05]Write to MH i2c: E2 26 00 D4 07 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 09 D2 01 00 35 04 06 00 70 0F BD 87 C5 2E 00 00 E2 [06:52:05]Write i2c OK [06:52:05]MH_I2C_Read... [06:52:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:52:05]Read from MH i2c: E2 [06:52:05]MH_I2C_Read... [06:52:05]Read from MH i2c: E2 03 00 [06:52:05]MH_I2C_Read... [06:52:05]Read from MH i2c: E2 03 00 D4 07 00 90 00 4F [06:52:05]RAPDU: 90 00 [06:52:05]wFMCommunicate OK [06:52:05]wFMCommunicate request_size=4 [06:52:05]MH_SAM_APDU [06:52:05]CAPDU: 80 0D 03 02 [06:52:05]Write to MH i2c: E2 08 00 D5 07 80 0D 03 02 00 00 00 00 57 [06:52:05]Write i2c OK [06:52:05]MH_I2C_Read... [06:52:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:52:05]Read from MH i2c: E2 [06:52:05]MH_I2C_Read... [06:52:05]Read from MH i2c: E2 0B 00 [06:52:05]MH_I2C_Read... [06:52:05]Read from MH i2c: E2 0B 00 D5 07 00 EA C4 F6 F9 E5 A1 B9 FD 90 00 31 [06:52:05]RAPDU: EA C4 F6 F9 E5 A1 B9 FD 90 00 [06:52:05]wFMCommunicate OK [06:52:05]SAM_PROTO_SignData done [06:52:05]FM_MakeSignedData done [06:52:05]CreateOFDProtocolMessage [06:52:05]wFMCommunicate request_size=4 [06:52:05]MH_SAM_APDU [06:52:05]CAPDU: 80 11 00 00 [06:52:05]Write to MH i2c: E2 08 00 D6 07 80 11 00 00 00 00 00 00 57 [06:52:05]Write i2c OK [06:52:05]MH_I2C_Read... [06:52:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:52:05]Read from MH i2c: E2 [06:52:05]MH_I2C_Read... [06:52:05]Read from MH i2c: E2 17 00 [06:52:05]MH_I2C_Read... [06:52:05]Read from MH i2c: E2 17 00 D6 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B2 [06:52:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:52:05]wFMCommunicate OK [06:52:05]CreateOFDProtocolMessage done [06:52:05]OFDSenderStorePacket 119305 [06:52:05]StoreOFDPacket docnum=119305 [06:52:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 28 01 00 00 27 8C 20 01 71 88 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4C AE 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 24 30 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 30 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 8D 00 00 00 00 07 04 06 00 20 30 05 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 14 DF A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 08 D2 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 09 D2 01 00 35 04 06 00 70 0F BD 87 C5 2E EA C4 F6 F9 E5 A1 B9 FD [06:52:05]CheckFolder [06:52:05]dirname=/storage/ofd_packets [06:52:05]CheckFolder done [06:52:05]ProducePacketName [06:52:05]name=ofd_packets/00119305 [06:52:05]NVStorageSaveData ofd_packets/00119305 [06:52:05]File name is /storage/ofd_packets/00119305 [06:52:05]Write 326 bytes [06:52:05]NVStorageSaveData done [06:52:05]OFDSenderStorePacket done [06:52:05]KKMCreateOFDPacket done [06:52:05]NVStorageSaveData kkm_last_timestamp [06:52:05]File name is /storage/kkm_last_timestamp [06:52:05]Write 4 bytes [06:52:05]NVStorageSaveData done [06:52:05]ExternCall_PrintAddStr [06:52:05]wPrintStart [06:52:05]Write to MH i2c: 01 00 00 D7 07 DE [06:52:05]OFD Sender: Processing packet 119305 [packets to send 86, broken 85] [06:52:05]ProducePacketName [06:52:05]name=ofd_packets/00119305 [06:52:05]OFD Sender: To server: pG, [06:52:05]CommunicateWithHost lk.salyk.kg:30040 [06:52:05]ConnectInit lk.salyk.kg [06:52:05]Write i2c OK [06:52:05]MH_I2C_Read... [06:52:05]Read from MH i2c: 01 [06:52:05]MH_I2C_Read... [06:52:05]Read from MH i2c: 01 07 00 [06:52:05]MH_I2C_Read... [06:52:05]Read from MH i2c: 01 07 00 D7 07 00 00 00 00 00 FF 0F F3 [06:52:05]RasterBufferAndPrint [06:52:05]line Счет N : (1)950231 [06:52:05]line ИНН: 02508201610067 [06:52:05]line Контрольно-Кассовый Чек [06:52:05]line ВОЗВРАТ ПРОДАЖИ [06:52:05]line ТРК (МРК, ГНК) : 34 [06:52:05]line Товар: 2710194800 [06:52:05]line ДТ-К-5 [06:52:05]line 44.620 * 76.20 [06:52:05]line = 3400.04 [06:52:05]line НДС 12% НСП 1% [06:52:05]line > о реализуемом товаре [06:52:05]line ОКРУГЛЕНИЕ: -0.04 [06:52:05]line ИТОГО: 3400.00 [06:52:05]line НСП 1% : 30.09 [06:52:05]line НДС 12% : 361.07 [06:52:05]line Наличными: 3400.00 [06:52:05]line Безнал.: 0.00 [06:52:05]line Место: АЗС № 134 "Партнер Нефть" [06:52:05]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:52:05]line СНО: Общий режим [06:52:05]line Чек 36 31.07.2024 06:52 [06:52:05]line Смена: 436 ФФД: 1.0 [06:52:05]line ЗНМ: 0300000044 [06:52:05]line РНМ: 0000000000092660 [06:52:05]line Версия ККМ: 001 [06:52:05]line ФД осн.: 119304 [06:52:05]line ФМ осн.: 0000000000874939 [06:52:05]line ФМ: 0000000000874939 [06:52:05]line ФД: 119305 [06:52:05]line ФПД: 123212906612014 [06:52:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T065204&type=2&operation_type=1&fn_number=0000000000874939&fd_number=119305&fm=123212906612014&tin=02508201610067®Number=0000000000092660&sum=340000 [06:52:05]Connected sock=10 [06:52:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 28 01 00 00 27 8C 20 01 71 88 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4C AE 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 24 30 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 30 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 8D 00 00 00 00 07 04 06 00 20 30 05 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 14 DF A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 08 D2 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 09 D2 01 00 35 04 06 00 70 0F BD 87 C5 2E EA C4 F6 F9 E5 A1 B9 FD [06:52:05]written 0, free lines is 4095 [06:52:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F2 30 47 00 1B 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 39 33 39 10 04 04 00 09 D2 01 00 F4 03 04 00 9E 8C A9 66 B6 04 01 00 00 1A 33 56 E2 34 F8 A0 85 [06:52:06]CommunicateWithHost err = 0 [06:52:06]CheckOFDResponse [06:52:06]1017 (14) - 77093643461234 [06:52:06]1041 (16) - 0000000000874939 [06:52:06]1040 (4) - 119305 [06:52:06]1012 (4) - 31.07.2024 01:00 [06:52:06]1206 (1) - 0 [06:52:06]OFD Sender: Remove packet 119305 [06:52:06]ProducePacketName [06:52:06]name=ofd_packets/00119305 [06:52:06]NVStorageDeleteData [06:52:06]Write to MH i2c: 01 00 00 01 08 09 [06:52:06]Write i2c OK [06:52:06]MH_I2C_Read... [06:52:06]Read from MH i2c: 01 [06:52:06]MH_I2C_Read... [06:52:06]Read from MH i2c: 01 07 00 [06:52:06]MH_I2C_Read... [06:52:06]Read from MH i2c: 01 07 00 01 08 00 00 00 00 00 E5 0C 01 [06:52:06]RasterBufferAndPrint [06:52:06]line [06:52:06]line [06:52:06]line [06:52:06]line [06:52:06]line [06:52:06]written 0, free lines is 3310 [06:52:06]MH_Cut [06:52:06]Write to MH i2c: D1 01 00 08 08 01 E2 [06:52:06]Write i2c OK [06:52:06]MH_I2C_Read... [06:52:06]Read from MH i2c: D1 [06:52:06]MH_I2C_Read... [06:52:06]Read from MH i2c: D1 01 00 [06:52:06]MH_I2C_Read... [06:52:06]Read from MH i2c: D1 01 00 08 08 00 E1 [06:52:06]Write to MH i2c: 01 00 00 09 08 11 [06:52:06]Write i2c OK [06:52:06]MH_I2C_Read... [06:52:06]OFD Sender: No OFD packet to send [06:52:07]*** Cut start [06:52:07]*** Partial cut [06:52:07]*** CUTSNS_PIN = 1 [06:52:07]*** CUTSNS_PIN = 0 [06:52:07]*** Brake cut motor [06:52:07]Read from MH i2c: 01 [06:52:07]MH_I2C_Read... [06:52:07]*** Stop cut motor [06:52:07]*** Cut end [06:52:07]Read from MH i2c: 01 07 00 [06:52:07]MH_I2C_Read... [06:52:07]Read from MH i2c: 01 07 00 09 08 00 00 00 00 00 FF 0F 26 [06:52:07]process_action close_receipt done [06:52:07]requested_data is exist [06:52:07]produce_requested_data [06:52:07]requested_item fm.sn is exist - process it [06:52:07]wFMCommunicate request_size=4 [06:52:07]MH_SAM_APDU [06:52:07]CAPDU: 80 11 00 00 [06:52:07]Write to MH i2c: E2 08 00 0A 08 80 11 00 00 00 00 00 00 8C [06:52:07]Write i2c OK [06:52:07]MH_I2C_Read... [06:52:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:52:07]Read from MH i2c: E2 [06:52:07]MH_I2C_Read... [06:52:07]Read from MH i2c: E2 17 00 [06:52:07]MH_I2C_Read... [06:52:07]Read from MH i2c: E2 17 00 0A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E7 [06:52:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:52:07]wFMCommunicate OK [06:52:07]requested_item fd.num is exist - process it [06:52:07]SAM_PROTO_GetFieldsCounters [06:52:07]wFMCommunicate request_size=4 [06:52:07]MH_SAM_APDU [06:52:07]CAPDU: 80 13 00 00 [06:52:07]Write to MH i2c: E2 08 00 0B 08 80 13 00 00 00 00 00 00 8F [06:52:07]Write i2c OK [06:52:07]MH_I2C_Read... [06:52:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:52:07]Read from MH i2c: E2 [06:52:07]MH_I2C_Read... [06:52:07]Read from MH i2c: E2 62 00 [06:52:07]MH_I2C_Read... [06:52:07]Read from MH i2c: E2 62 00 0B 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 09 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [06:52: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 09 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:52:07]wFMCommunicate OK [06:52:07]SAM_PROTO_GetFieldsCounters done [06:52:07]requested_item shift.num is exist - process it [06:52:07]requested_item shift.opened is exist - process it [06:52:07]req_shift_opened [06:52:07]FM_GetShiftState [06:52:07]SAM_PROTO_GetShiftState [06:52:07]wFMCommunicate request_size=4 [06:52:07]MH_SAM_APDU [06:52:07]CAPDU: 80 13 01 00 [06:52:07]Write to MH i2c: E2 08 00 0C 08 80 13 01 00 00 00 00 00 91 [06:52:07]Write i2c OK [06:52:07]MH_I2C_Read... [06:52:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:52:07]Read from MH i2c: E2 [06:52:07]MH_I2C_Read... [06:52:07]Read from MH i2c: E2 0E 00 [06:52:07]MH_I2C_Read... [06:52:07]Read from MH i2c: E2 0E 00 0C 08 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 29 [06:52:07]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [06:52:07]wFMCommunicate OK [06:52:07]SAM_PROTO_GetShiftState done [06:52:07]FM_GetShiftState done [06:52:07]req_shift_opened done [06:52:07]requested_item shift.open_date is exist - process it [06:52:07]req_shift_open_date [06:52:07]req_shift_open_date done [06:52:07]produce_requested_data done [06:52:07]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119305,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [06:52:07]process_action_free close_receipt [06:52:07]json_value_free [06:52:07]json_value_free done [06:52:07]process_json_proto returns [06:52:07]Send response to host [06:52:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119305,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [06:52:07]free response buf [06:52:07]execute_script done [06:52:07]execute_script returns [06:52:07]free content buf [06:52:07]Sock 8.Close socket [06:52:07]Sock 8.Thread stoped [06:52:08]accept exits with 9 [06:52:08]New connection [06:52:08]New thread 3067338084 created [06:52:08]Thread 3067194724 joined [06:52:08]Waiting for new connection... [06:52:08] Sock 9.Parse request [06:52:08]Sock 9.Check first char [06:52:08]Sock 9.First char is OK [06:52:08]request: POST /json_proto HTTP/1.0 [06:52:08]Method: POST [06:52:08]URL: /json_proto [06:52:08]Method is POST - this is cgi request [06:52:08]url: /json_proto [06:52:08]query_string will be loaded in cgi processing [06:52:08]execute_cgi json_proto POST (null) [06:52:08]execute_cgi path=json_proto method=POST [06:52:08]POST find Content-Length [06:52:08]Host: 172.17.45.7:8080 [06:52:08]Content-Length: 679 [06:52:08]Content-Type: application/json [06:52:08] [06:52:08]POST finish read [06:52:08]Found Content-Length = 679 [06:52:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.520, "sum" : 3011.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3400.00, "total" : 3011.00, "payments": [ { "type": 0, "sum" : 3011.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:52:08]execute_script... [06:52: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)950231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.520, "sum" : 3011.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3400.00, "total" : 3011.00, "payments": [ { "type": 0, "sum" : 3011.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:52:08]POST & json_proto [06:52:08]process_json_proto [06:52:08]json parsed OK: [06:52:08]protocol is kg_v1.0 [06:52:08]action value=close_receipt [06:52:08]process_action close_receipt [06:52:08]cmd_close_receipt [06:52:08]MH_GetDate [06:52:08]Write to MH i2c: F0 00 00 0D 08 04 [06:52:08]Write i2c OK [06:52:08]MH_I2C_Read... [06:52:08]Read from MH i2c: F0 [06:52:08]MH_I2C_Read... [06:52:08]Read from MH i2c: F0 09 00 [06:52:08]MH_I2C_Read... [06:52:08]Read from MH i2c: F0 09 00 0D 08 00 19 DF A9 66 90 0F 3E 66 57 [06:52:08]GetLastDocTimeStamp 1722408724 [06:52:08]current date 1722408729 [06:52:08]FM_GetShiftState [06:52:08]SAM_PROTO_GetShiftState [06:52:08]wFMCommunicate request_size=4 [06:52:08]MH_SAM_APDU [06:52:08]CAPDU: 80 13 01 00 [06:52:08]Write to MH i2c: E2 08 00 0E 08 80 13 01 00 00 00 00 00 93 [06:52:08]Write i2c OK [06:52:08]MH_I2C_Read... [06:52:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:52:08]Read from MH i2c: E2 [06:52:08]MH_I2C_Read... [06:52:08]Read from MH i2c: E2 0E 00 [06:52:08]MH_I2C_Read... [06:52:08]Read from MH i2c: E2 0E 00 0E 08 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 2B [06:52:08]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [06:52:08]wFMCommunicate OK [06:52:08]SAM_PROTO_GetShiftState done [06:52:08]FM_GetShiftState done [06:52:08]opened in 1722384637 [06:52:08]opened+sec_in_day 1722471037 [06:52:08]quantity*price = 301142 [06:52:08]sum+1 = 301143 [06:52:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 3011.00 Внесено: 3400.00 СДАЧА: 389.00 НСП 1% : 26.65 НДС 12% : 319.80 Наличными: 3011.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 37 31.07.2024 06:52 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119306 ФПД: 42349396422014 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T065209&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119306&fm=42349396422014&tin=02508201610067®Number=0000000000092660&sum=301100 [06:52:09]StoreToDocumentArchive [06:52:09]shift 436 fd 119306 [06:52:09]save to /storage/0436/doc_00119306 [06:52:09]save last doc name /storage/0436/doc_00119306 to /storage/kkm_last_doc_name [06:52:09]save OK [06:52:09]Clear old archive folders... [06:52:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:52:09]tlvbuf is B6F1F690 [06:52:09]SAM_PROTO_ClearQueue [06:52:09]wFMCommunicate request_size=4 [06:52:09]MH_SAM_APDU [06:52:09]CAPDU: 80 09 00 00 [06:52:09]Write to MH i2c: E2 08 00 1B 08 80 09 00 00 00 00 00 00 95 [06:52:09]Write i2c OK [06:52:09]MH_I2C_Read... [06:52:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:52:09]Read from MH i2c: E2 [06:52:09]MH_I2C_Read... [06:52:09]Read from MH i2c: E2 03 00 [06:52:09]MH_I2C_Read... [06:52:09]Read from MH i2c: E2 03 00 1B 08 00 90 00 97 [06:52:09]RAPDU: 90 00 [06:52:09]wFMCommunicate OK [06:52:09]SAM_PROTO_ClearQueue done [06:52:09]KKMCreateOFDPacket [06:52:09]OFDProtocolAddRootSTLVToBuf [06:52:09]FM_MakeSignedData [06:52:09]FM_MakeSignedData [06:52:09]SAM_PROTO_SignData [06:52:09]wFMCommunicate request_size=4 [06:52:09]MH_SAM_APDU [06:52:09]CAPDU: 80 0D 01 02 [06:52:09]Write to MH i2c: E2 08 00 1C 08 80 0D 01 02 00 00 00 00 9D [06:52:09]Write i2c OK [06:52:09]MH_I2C_Read... [06:52:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:52:09]Read from MH i2c: E2 [06:52:09]MH_I2C_Read... [06:52:09]Read from MH i2c: E2 03 00 [06:52:09]MH_I2C_Read... [06:52:09]Read from MH i2c: E2 03 00 1C 08 00 90 00 98 [06:52:09]RAPDU: 90 00 [06:52:09]wFMCommunicate OK [06:52:09]wFMCommunicate request_size=255 [06:52:09]MH_SAM_APDU [06:52:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 9A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 56 98 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 98 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 7C 00 00 00 00 07 04 06 00 2C 98 04 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 19 DF A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0A D2 01 00 35 04 06 00 26 84 3C BA [06:52:09]Write to MH i2c: E2 02 01 1D 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 9A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 56 98 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 98 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 7C 00 00 00 00 07 04 06 00 2C 98 04 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 19 DF A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0A D2 01 00 35 04 06 00 26 84 3C BA 00 00 9B [06:52:09]Write i2c OK [06:52:09]MH_I2C_Read... [06:52:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:52:10]Read from MH i2c: E2 [06:52:10]MH_I2C_Read... [06:52:10]Read from MH i2c: E2 03 00 [06:52:10]MH_I2C_Read... [06:52:10]Read from MH i2c: E2 03 00 1D 08 00 90 00 99 [06:52:10]RAPDU: 90 00 [06:52:10]wFMCommunicate OK [06:52:10]wFMCommunicate request_size=7 [06:52:10]MH_SAM_APDU [06:52:10]CAPDU: 80 0D 02 02 02 ED 7E [06:52:10]Write to MH i2c: E2 0A 00 1E 08 80 0D 02 02 02 00 ED 7E 00 00 0F [06:52:10]Write i2c OK [06:52:10]MH_I2C_Read... [06:52:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:52:10]Read from MH i2c: E2 [06:52:10]MH_I2C_Read... [06:52:10]Read from MH i2c: E2 03 00 [06:52:10]MH_I2C_Read... [06:52:10]Read from MH i2c: E2 03 00 1E 08 00 90 00 9A [06:52:10]RAPDU: 90 00 [06:52:10]wFMCommunicate OK [06:52:10]wFMCommunicate request_size=4 [06:52:10]MH_SAM_APDU [06:52:10]CAPDU: 80 0D 03 02 [06:52:10]Write to MH i2c: E2 08 00 1F 08 80 0D 03 02 00 00 00 00 A2 [06:52:10]Write i2c OK [06:52:10]MH_I2C_Read... [06:52:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:52:10]Read from MH i2c: E2 [06:52:10]MH_I2C_Read... [06:52:10]Read from MH i2c: E2 0B 00 [06:52:10]MH_I2C_Read... [06:52:10]Read from MH i2c: E2 0B 00 1F 08 00 46 44 AD 9B EC 9C 14 8F 90 00 A0 [06:52:10]RAPDU: 46 44 AD 9B EC 9C 14 8F 90 00 [06:52:10]wFMCommunicate OK [06:52:10]SAM_PROTO_SignData done [06:52:10]FM_MakeSignedData done [06:52:10]CreateOFDProtocolMessage [06:52:10]wFMCommunicate request_size=4 [06:52:10]MH_SAM_APDU [06:52:10]CAPDU: 80 11 00 00 [06:52:10]Write to MH i2c: E2 08 00 20 08 80 11 00 00 00 00 00 00 A2 [06:52:10]Write i2c OK [06:52:10]MH_I2C_Read... [06:52:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:52:10]Read from MH i2c: E2 [06:52:10]MH_I2C_Read... [06:52:10]Read from MH i2c: E2 17 00 [06:52:10]MH_I2C_Read... [06:52:10]Read from MH i2c: E2 17 00 20 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FD [06:52:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:52:10]wFMCommunicate OK [06:52:10]CreateOFDProtocolMessage done [06:52:10]OFDSenderStorePacket 119306 [06:52:10]StoreOFDPacket docnum=119306 [06:52:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 62 99 04 01 84 63 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 9A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 56 98 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 98 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 7C 00 00 00 00 07 04 06 00 2C 98 04 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 19 DF A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0A D2 01 00 35 04 06 00 26 84 3C BA ED 7E 46 44 AD 9B EC 9C 14 8F [06:52:10]CheckFolder [06:52:10]dirname=/storage/ofd_packets [06:52:10]CheckFolder done [06:52:10]ProducePacketName [06:52:10]name=ofd_packets/00119306 [06:52:10]NVStorageSaveData ofd_packets/00119306 [06:52:10]File name is /storage/ofd_packets/00119306 [06:52:10]Write 298 bytes [06:52:10]NVStorageSaveData done [06:52:10]OFDSenderStorePacket done [06:52:10]KKMCreateOFDPacket done [06:52:10]NVStorageSaveData kkm_last_timestamp [06:52:10]File name is /storage/kkm_last_timestamp [06:52:10]Write 4 bytes [06:52:10]NVStorageSaveData done [06:52:10]ExternCall_PrintAddStr [06:52:10]wPrintStart [06:52:10]Write to MH i2c: 01 00 00 21 08 29 [06:52:10]Write i2c OK [06:52:10]MH_I2C_Read... [06:52:10]Read from MH i2c: 01 [06:52:10]MH_I2C_Read... [06:52:10]Read from MH i2c: 01 07 00 [06:52:10]MH_I2C_Read... [06:52:10]Read from MH i2c: 01 07 00 21 08 00 00 00 00 00 FF 0F 3E [06:52:10]RasterBufferAndPrint [06:52:10]line Счет N : (1)950231 [06:52:10]line ИНН: 02508201610067 [06:52:10]line Контрольно-Кассовый Чек [06:52:10]line ПРОДАЖА [06:52:10]line ТРК (МРК, ГНК) : 34 [06:52:10]line Товар: 2710194800 [06:52:10]line ДТ-К-5 [06:52:10]line 39.520 * 76.20 [06:52:10]line = 3011.42 [06:52:10]line НДС 12% НСП 1% [06:52:10]line > о реализуемом товаре [06:52:10]line ОКРУГЛЕНИЕ: -0.42 [06:52:10]line ИТОГО: 3011.00 [06:52:10]line Внесено: 3400.00 [06:52:10]line СДАЧА: 389.00 [06:52:10]line НСП 1% : 26.65 [06:52:10]line НДС 12% : 319.80 [06:52:10]line Наличными: 3011.00 [06:52:10]line Безнал.: 0.00 [06:52:10]line Место: АЗС № 134 "Партнер Нефть" [06:52:10]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:52:10]line СНО: Общий режим [06:52:10]line Чек 37 31.07.2024 06:52 [06:52:10]line Смена: 436 ФФД: 1.0 [06:52:10]line ЗНМ: 0300000044 [06:52:10]line РНМ: 0000000000092660 [06:52:10]line Версия ККМ: 001 [06:52:10]line ФМ: 0000000000874939 [06:52:10]line ФД: 119306 [06:52:10]line ФПД: 42349396422014 [06:52:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T065209&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119306&fm=42349396422014&tin=02508201610067®Number=0000000000092660&sum=301100 [06:52:10]written 0, free lines is 4095 [06:52:10]OFD Sender: Processing packet 119306 [packets to send 86, broken 85] [06:52:10]ProducePacketName [06:52:10]name=ofd_packets/00119306 [06:52:10]OFD Sender: To server: pG, [06:52:10]CommunicateWithHost lk.salyk.kg:30040 [06:52:10]ConnectInit lk.salyk.kg [06:52:10]Connected sock=10 [06:52: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 39 33 39 0C 01 00 00 62 99 04 01 84 63 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 9A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 56 98 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 98 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 7C 00 00 00 00 07 04 06 00 2C 98 04 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 19 DF A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0A D2 01 00 35 04 06 00 26 84 3C BA ED 7E 46 44 AD 9B EC 9C 14 8F [06:52:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 AC 1C 47 00 DE 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 39 33 39 10 04 04 00 0A D2 01 00 F4 03 04 00 A3 8C A9 66 B6 04 01 00 00 E9 C2 B4 62 66 11 53 27 [06:52:11]CommunicateWithHost err = 0 [06:52:11]CheckOFDResponse [06:52:11]1017 (14) - 77093643461234 [06:52:11]1041 (16) - 0000000000874939 [06:52:11]1040 (4) - 119306 [06:52:11]1012 (4) - 31.07.2024 01:00 [06:52:11]1206 (1) - 0 [06:52:11]OFD Sender: Remove packet 119306 [06:52:11]ProducePacketName [06:52:11]name=ofd_packets/00119306 [06:52:11]NVStorageDeleteData [06:52:11]Write to MH i2c: 01 00 00 4B 08 53 [06:52:11]Write i2c OK [06:52:11]MH_I2C_Read... [06:52:11]Read from MH i2c: 01 [06:52:11]MH_I2C_Read... [06:52:11]Read from MH i2c: 01 07 00 [06:52:11]MH_I2C_Read... [06:52:11]Read from MH i2c: 01 07 00 4B 08 00 00 00 00 00 E7 0C 4D [06:52:11]RasterBufferAndPrint [06:52:11]line [06:52:11]line [06:52:11]line [06:52:11]line [06:52:11]line [06:52:11]written 0, free lines is 3318 [06:52:11]MH_Cut [06:52:11]Write to MH i2c: D1 01 00 52 08 01 2C [06:52:11]Write i2c OK [06:52:11]MH_I2C_Read... [06:52:11]Read from MH i2c: D1 [06:52:11]MH_I2C_Read... [06:52:11]Read from MH i2c: D1 01 00 [06:52:11]MH_I2C_Read... [06:52:11]Read from MH i2c: D1 01 00 52 08 00 2B [06:52:11]Write to MH i2c: 01 00 00 53 08 5B [06:52:11]Write i2c OK [06:52:11]MH_I2C_Read... [06:52:11]OFD Sender: No OFD packet to send [06:52:11]*** Cut start [06:52:11]*** Partial cut [06:52:11]*** CUTSNS_PIN = 1 [06:52:11]*** CUTSNS_PIN = 0 [06:52:12]*** Brake cut motor [06:52:12]Read from MH i2c: 01 [06:52:12]MH_I2C_Read... [06:52:12]*** Stop cut motor [06:52:12]*** Cut end [06:52:12]Read from MH i2c: 01 07 00 [06:52:12]MH_I2C_Read... [06:52:12]Read from MH i2c: 01 07 00 53 08 00 00 00 00 00 FF 0F 70 [06:52:12]process_action close_receipt done [06:52:12]requested_data is exist [06:52:12]produce_requested_data [06:52:12]requested_item fm.sn is exist - process it [06:52:12]wFMCommunicate request_size=4 [06:52:12]MH_SAM_APDU [06:52:12]CAPDU: 80 11 00 00 [06:52:12]Write to MH i2c: E2 08 00 54 08 80 11 00 00 00 00 00 00 D6 [06:52:12]Write i2c OK [06:52:12]MH_I2C_Read... [06:52:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:52:12]Read from MH i2c: E2 [06:52:12]MH_I2C_Read... [06:52:12]Read from MH i2c: E2 17 00 [06:52:12]MH_I2C_Read... [06:52:12]Read from MH i2c: E2 17 00 54 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 31 [06:52:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:52:12]wFMCommunicate OK [06:52:12]requested_item fd.num is exist - process it [06:52:12]SAM_PROTO_GetFieldsCounters [06:52:12]wFMCommunicate request_size=4 [06:52:12]MH_SAM_APDU [06:52:12]CAPDU: 80 13 00 00 [06:52:12]Write to MH i2c: E2 08 00 55 08 80 13 00 00 00 00 00 00 D9 [06:52:12]Write i2c OK [06:52:12]MH_I2C_Read... [06:52:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:52:12]Read from MH i2c: E2 [06:52:12]MH_I2C_Read... [06:52:12]Read from MH i2c: E2 62 00 [06:52:12]MH_I2C_Read... [06:52:12]Read from MH i2c: E2 62 00 55 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0A D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [06:52: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0A D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:52:12]wFMCommunicate OK [06:52:12]SAM_PROTO_GetFieldsCounters done [06:52:12]requested_item shift.num is exist - process it [06:52:12]requested_item shift.opened is exist - process it [06:52:12]req_shift_opened [06:52:12]FM_GetShiftState [06:52:12]SAM_PROTO_GetShiftState [06:52:12]wFMCommunicate request_size=4 [06:52:12]MH_SAM_APDU [06:52:12]CAPDU: 80 13 01 00 [06:52:12]Write to MH i2c: E2 08 00 56 08 80 13 01 00 00 00 00 00 DB [06:52:12]Write i2c OK [06:52:12]MH_I2C_Read... [06:52:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:52:12]Read from MH i2c: E2 [06:52:12]MH_I2C_Read... [06:52:12]Read from MH i2c: E2 0E 00 [06:52:12]MH_I2C_Read... [06:52:12]Read from MH i2c: E2 0E 00 56 08 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 73 [06:52:12]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [06:52:12]wFMCommunicate OK [06:52:12]SAM_PROTO_GetShiftState done [06:52:12]FM_GetShiftState done [06:52:12]req_shift_opened done [06:52:12]requested_item shift.open_date is exist - process it [06:52:12]req_shift_open_date [06:52:12]req_shift_open_date done [06:52:12]produce_requested_data done [06:52:12]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119306,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [06:52:12]process_action_free close_receipt [06:52:12]json_value_free [06:52:12]json_value_free done [06:52:12]process_json_proto returns [06:52:12]Send response to host [06:52:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119306,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [06:52:12]free response buf [06:52:12]execute_script done [06:52:12]execute_script returns [06:52:12]free content buf [06:52:12]Sock 9.Close socket [06:52:12]Sock 9.Thread stoped [06:52:16]OFD Sender: No OFD packet to send [06:52:21]OFD Sender: No OFD packet to send [06:52:26]OFD Sender: No OFD packet to send [06:52:31]OFD Sender: No OFD packet to send [06:52:36]OFD Sender: No OFD packet to send [06:52:41]OFD Sender: No OFD packet to send [06:52:46]OFD Sender: No OFD packet to send [06:52:51]OFD Sender: No OFD packet to send [06:52:56]OFD Sender: No OFD packet to send [06:53:01]OFD Sender: No OFD packet to send [06:53:06]OFD Sender: No OFD packet to send [06:53:11]OFD Sender: No OFD packet to send [06:53:16]OFD Sender: No OFD packet to send [06:53:21]OFD Sender: No OFD packet to send [06:53:26]OFD Sender: No OFD packet to send [06:53:31]OFD Sender: No OFD packet to send [06:53:36]OFD Sender: No OFD packet to send [06:53:41]OFD Sender: No OFD packet to send [06:53:46]OFD Sender: No OFD packet to send [06:53:51]OFD Sender: No OFD packet to send [06:53:56]OFD Sender: No OFD packet to send [06:54:01]OFD Sender: No OFD packet to send [06:54:06]OFD Sender: No OFD packet to send [06:54:11]OFD Sender: No OFD packet to send [06:54:16]OFD Sender: No OFD packet to send [06:54:21]OFD Sender: No OFD packet to send [06:54:26]OFD Sender: No OFD packet to send [06:54:31]OFD Sender: No OFD packet to send [06:54:36]OFD Sender: No OFD packet to send [06:54:41]OFD Sender: No OFD packet to send [06:54:46]OFD Sender: No OFD packet to send [06:54:51]OFD Sender: No OFD packet to send [06:54:56]OFD Sender: No OFD packet to send [06:55:01]OFD Sender: No OFD packet to send [06:55:06]OFD Sender: No OFD packet to send [06:55:11]OFD Sender: No OFD packet to send [06:55:16]OFD Sender: No OFD packet to send [06:55:21]OFD Sender: No OFD packet to send [06:55:26]OFD Sender: No OFD packet to send [06:55:31]OFD Sender: No OFD packet to send [06:55:36]OFD Sender: No OFD packet to send [06:55:41]OFD Sender: No OFD packet to send [06:55:46]OFD Sender: No OFD packet to send [06:55:51]OFD Sender: No OFD packet to send [06:55:56]OFD Sender: No OFD packet to send [06:56:01]OFD Sender: No OFD packet to send [06:56:06]OFD Sender: No OFD packet to send [06:56:11]OFD Sender: No OFD packet to send [06:56:16]OFD Sender: No OFD packet to send [06:56:21]OFD Sender: No OFD packet to send [06:56:26]OFD Sender: No OFD packet to send [06:56:31]OFD Sender: No OFD packet to send [06:56:36]OFD Sender: No OFD packet to send [06:56:41]OFD Sender: No OFD packet to send [06:56:46]OFD Sender: No OFD packet to send [06:56:51]OFD Sender: No OFD packet to send [06:56:56]OFD Sender: No OFD packet to send [06:57:01]OFD Sender: No OFD packet to send [06:57:06]OFD Sender: No OFD packet to send [06:57:11]OFD Sender: No OFD packet to send [06:57:16]OFD Sender: No OFD packet to send [06:57:21]OFD Sender: No OFD packet to send [06:57:26]OFD Sender: No OFD packet to send [06:57:31]OFD Sender: No OFD packet to send [06:57:36]OFD Sender: No OFD packet to send [06:57:41]OFD Sender: No OFD packet to send [06:57:46]OFD Sender: No OFD packet to send [06:57:51]OFD Sender: No OFD packet to send [06:57:56]OFD Sender: No OFD packet to send [06:58:01]OFD Sender: No OFD packet to send [06:58:06]OFD Sender: No OFD packet to send [06:58:11]OFD Sender: No OFD packet to send [06:58:16]OFD Sender: No OFD packet to send [06:58:21]OFD Sender: No OFD packet to send [06:58:26]OFD Sender: No OFD packet to send [06:58:31]OFD Sender: No OFD packet to send [06:58:36]OFD Sender: No OFD packet to send [06:58:41]OFD Sender: No OFD packet to send [06:58:46]OFD Sender: No OFD packet to send [06:58:52]OFD Sender: No OFD packet to send [06:58:57]OFD Sender: No OFD packet to send [06:59:02]OFD Sender: No OFD packet to send [06:59:07]OFD Sender: No OFD packet to send [06:59:12]OFD Sender: No OFD packet to send [06:59:17]OFD Sender: No OFD packet to send [06:59:22]OFD Sender: No OFD packet to send [06:59:27]OFD Sender: No OFD packet to send [06:59:32]OFD Sender: No OFD packet to send [06:59:37]OFD Sender: No OFD packet to send [06:59:42]OFD Sender: No OFD packet to send [06:59:47]OFD Sender: No OFD packet to send [06:59:52]OFD Sender: No OFD packet to send [06:59:57]OFD Sender: No OFD packet to send [07:00:02]OFD Sender: No OFD packet to send [07:00:07]OFD Sender: No OFD packet to send [07:00:12]OFD Sender: No OFD packet to send [07:00:17]OFD Sender: No OFD packet to send [07:00:22]OFD Sender: No OFD packet to send [07:00:27]OFD Sender: No OFD packet to send [07:00:32]OFD Sender: No OFD packet to send [07:00:37]OFD Sender: No OFD packet to send [07:00:42]OFD Sender: No OFD packet to send [07:00:47]OFD Sender: No OFD packet to send [07:00:52]OFD Sender: No OFD packet to send [07:00:57]OFD Sender: No OFD packet to send [07:01:02]OFD Sender: No OFD packet to send [07:01:07]OFD Sender: No OFD packet to send [07:01:12]OFD Sender: No OFD packet to send [07:01:17]OFD Sender: No OFD packet to send [07:01:22]OFD Sender: No OFD packet to send [07:01:27]OFD Sender: No OFD packet to send [07:01:32]OFD Sender: No OFD packet to send [07:01:37]OFD Sender: No OFD packet to send [07:01:42]OFD Sender: No OFD packet to send [07:01:47]OFD Sender: No OFD packet to send [07:01:51]accept exits with 8 [07:01:51]New connection [07:01:51]New thread 3067194724 created [07:01:51]Thread 3067338084 joined [07:01:51]Waiting for new connection... [07:01:51] Sock 8.Parse request [07:01:51]Sock 8.Check first char [07:01:51]Sock 8.First char is OK [07:01:51]request: POST /json_proto HTTP/1.0 [07:01:51]Method: POST [07:01:51]URL: /json_proto [07:01:51]Method is POST - this is cgi request [07:01:51]url: /json_proto [07:01:51]query_string will be loaded in cgi processing [07:01:51]execute_cgi json_proto POST (null) [07:01:51]execute_cgi path=json_proto method=POST [07:01:51]POST find Content-Length [07:01:51]Host: 172.17.45.7:8080 [07:01:51]Content-Length: 682 [07:01:51]Content-Type: application/json [07:01:51] [07:01:51]POST finish read [07:01:51]Found Content-Length = 682 [07:01:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:01:51]execute_script... [07:01: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)950232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:01:51]POST & json_proto [07:01:51]process_json_proto [07:01:51]json parsed OK: [07:01:51]protocol is kg_v1.0 [07:01:51]action value=close_receipt [07:01:51]process_action close_receipt [07:01:51]cmd_close_receipt [07:01:51]MH_GetDate [07:01:51]Write to MH i2c: F0 00 00 57 08 4E [07:01:51]Write i2c OK [07:01:51]MH_I2C_Read... [07:01:51]Read from MH i2c: F0 [07:01:51]MH_I2C_Read... [07:01:51]Read from MH i2c: F0 09 00 [07:01:51]MH_I2C_Read... [07:01:51]Read from MH i2c: F0 09 00 57 08 00 60 E1 A9 66 90 0F 3E 66 EA [07:01:51]GetLastDocTimeStamp 1722408729 [07:01:51]current date 1722409312 [07:01:51]FM_GetShiftState [07:01:51]SAM_PROTO_GetShiftState [07:01:51]wFMCommunicate request_size=4 [07:01:51]MH_SAM_APDU [07:01:51]CAPDU: 80 13 01 00 [07:01:51]Write to MH i2c: E2 08 00 58 08 80 13 01 00 00 00 00 00 DD [07:01:51]Write i2c OK [07:01:51]MH_I2C_Read... [07:01:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:01:51]Read from MH i2c: E2 [07:01:51]MH_I2C_Read... [07:01:51]Read from MH i2c: E2 0E 00 [07:01:51]MH_I2C_Read... [07:01:51]Read from MH i2c: E2 0E 00 58 08 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 75 [07:01:51]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [07:01:51]wFMCommunicate OK [07:01:51]SAM_PROTO_GetShiftState done [07:01:51]FM_GetShiftState done [07:01:51]opened in 1722384637 [07:01:51]opened+sec_in_day 1722471037 [07:01:51]quantity*price = 100005 [07:01:51]sum+1 = 100006 [07:01:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 38 31.07.2024 07:01 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119307 ФПД: 143370547042049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T070152&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119307&fm=143370547042049&tin=02508201610067®Number=0000000000092660&sum=100000 [07:01:52]StoreToDocumentArchive [07:01:52]shift 436 fd 119307 [07:01:52]save to /storage/0436/doc_00119307 [07:01:52]save last doc name /storage/0436/doc_00119307 to /storage/kkm_last_doc_name [07:01:52]save OK [07:01:52]Clear old archive folders... [07:01:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:01:52]tlvbuf is 00B218C0 [07:01:52]SAM_PROTO_ClearQueue [07:01:52]wFMCommunicate request_size=4 [07:01:52]MH_SAM_APDU [07:01:52]CAPDU: 80 09 00 00 [07:01:52]Write to MH i2c: E2 08 00 65 08 80 09 00 00 00 00 00 00 DF [07:01:52]Write i2c OK [07:01:52]MH_I2C_Read... [07:01:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:01:52]Read from MH i2c: E2 [07:01:52]MH_I2C_Read... [07:01:52]Read from MH i2c: E2 03 00 [07:01:52]MH_I2C_Read... [07:01:52]Read from MH i2c: E2 03 00 65 08 00 90 00 E1 [07:01:52]RAPDU: 90 00 [07:01:52]wFMCommunicate OK [07:01:52]SAM_PROTO_ClearQueue done [07:01:52]KKMCreateOFDPacket [07:01:52]OFDProtocolAddRootSTLVToBuf [07:01:52]FM_MakeSignedData [07:01:52]FM_MakeSignedData [07:01:52]SAM_PROTO_SignData [07:01:52]wFMCommunicate request_size=4 [07:01:52]MH_SAM_APDU [07:01:52]CAPDU: 80 0D 01 02 [07:01:52]Write to MH i2c: E2 08 00 66 08 80 0D 01 02 00 00 00 00 E7 [07:01:52]Write i2c OK [07:01:52]MH_I2C_Read... [07:01:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:01:52]Read from MH i2c: E2 [07:01:52]MH_I2C_Read... [07:01:52]Read from MH i2c: E2 03 00 [07:01:52]MH_I2C_Read... [07:01:52]Read from MH i2c: E2 03 00 66 08 00 90 00 E2 [07:01:52]RAPDU: 90 00 [07:01:52]wFMCommunicate OK [07:01:52]wFMCommunicate request_size=255 [07:01:52]MH_SAM_APDU [07:01: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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 26 00 00 00 F4 03 04 00 60 E1 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0B D2 01 00 35 04 06 00 82 [07:01:52]Write to MH i2c: E2 02 01 67 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 26 00 00 00 F4 03 04 00 60 E1 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0B D2 01 00 35 04 06 00 82 00 00 85 [07:01:52]Write i2c OK [07:01:52]MH_I2C_Read... [07:01:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:01:52]Read from MH i2c: E2 [07:01:52]MH_I2C_Read... [07:01:52]Read from MH i2c: E2 03 00 [07:01:52]MH_I2C_Read... [07:01:52]Read from MH i2c: E2 03 00 67 08 00 90 00 E3 [07:01:52]RAPDU: 90 00 [07:01:52]wFMCommunicate OK [07:01:52]wFMCommunicate request_size=10 [07:01:52]MH_SAM_APDU [07:01:52]CAPDU: 80 0D 02 02 05 65 0E 87 17 01 [07:01:52]Write to MH i2c: E2 0D 00 68 08 80 0D 02 02 05 00 65 0E 87 17 01 00 00 06 [07:01:52]Write i2c OK [07:01:52]MH_I2C_Read... [07:01:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:01:52]Read from MH i2c: E2 [07:01:52]MH_I2C_Read... [07:01:52]Read from MH i2c: E2 03 00 [07:01:52]MH_I2C_Read... [07:01:52]Read from MH i2c: E2 03 00 68 08 00 90 00 E4 [07:01:52]RAPDU: 90 00 [07:01:52]wFMCommunicate OK [07:01:52]wFMCommunicate request_size=4 [07:01:52]MH_SAM_APDU [07:01:52]CAPDU: 80 0D 03 02 [07:01:52]Write to MH i2c: E2 08 00 69 08 80 0D 03 02 00 00 00 00 EC [07:01:52]Write i2c OK [07:01:52]MH_I2C_Read... [07:01:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:01:52]Read from MH i2c: E2 [07:01:52]MH_I2C_Read... [07:01:52]Read from MH i2c: E2 0B 00 [07:01:52]MH_I2C_Read... [07:01:52]Read from MH i2c: E2 0B 00 69 08 00 77 E6 E3 A7 1D 64 F2 A6 90 00 ED [07:01:52]RAPDU: 77 E6 E3 A7 1D 64 F2 A6 90 00 [07:01:52]wFMCommunicate OK [07:01:52]SAM_PROTO_SignData done [07:01:52]FM_MakeSignedData done [07:01:52]CreateOFDProtocolMessage [07:01:52]wFMCommunicate request_size=4 [07:01:52]MH_SAM_APDU [07:01:52]CAPDU: 80 11 00 00 [07:01:52]Write to MH i2c: E2 08 00 6A 08 80 11 00 00 00 00 00 00 EC [07:01:52]Write i2c OK [07:01:52]MH_I2C_Read... [07:01:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:01:52]Read from MH i2c: E2 [07:01:52]MH_I2C_Read... [07:01:52]Read from MH i2c: E2 17 00 [07:01:52]MH_I2C_Read... [07:01:52]Read from MH i2c: E2 17 00 6A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 47 [07:01:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:01:52]wFMCommunicate OK [07:01:52]CreateOFDProtocolMessage done [07:01:52]OFDSenderStorePacket 119307 [07:01:52]StoreOFDPacket docnum=119307 [07:01:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 88 8A 07 01 C5 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 26 00 00 00 F4 03 04 00 60 E1 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0B D2 01 00 35 04 06 00 82 65 0E 87 17 01 77 E6 E3 A7 1D 64 F2 A6 [07:01:52]CheckFolder [07:01:52]dirname=/storage/ofd_packets [07:01:52]CheckFolder done [07:01:52]ProducePacketName [07:01:52]name=ofd_packets/00119307 [07:01:52]NVStorageSaveData ofd_packets/00119307 [07:01:52]File name is /storage/ofd_packets/00119307 [07:01:52]Write 301 bytes [07:01:52]NVStorageSaveData done [07:01:52]OFDSenderStorePacket done [07:01:52]KKMCreateOFDPacket done [07:01:52]NVStorageSaveData kkm_last_timestamp [07:01:52]File name is /storage/kkm_last_timestamp [07:01:52]Write 4 bytes [07:01:52]NVStorageSaveData done [07:01:52]ExternCall_PrintAddStr [07:01:52]wPrintStart [07:01:52]Write to MH i2c: 01 00 00 6B 08 73 [07:01:52]Write i2c OK [07:01:52]MH_I2C_Read... [07:01:52]Read from MH i2c: 01 [07:01:52]MH_I2C_Read... [07:01:52]Read from MH i2c: 01 07 00 [07:01:52]MH_I2C_Read... [07:01:52]Read from MH i2c: 01 07 00 6B 08 00 00 00 00 00 FF 0F 88 [07:01:52]RasterBufferAndPrint [07:01:52]line Счет N : (1)950232 [07:01:52]line ИНН: 02508201610067 [07:01:52]line Контрольно-Кассовый Чек [07:01:52]line ПРОДАЖА [07:01:52]line ТРК (МРК, ГНК) : 41 [07:01:52]line Товар: 2710124130 [07:01:52]line Аи-92-К-4 [07:01:52]line 14.750 * 67.80 [07:01:52]line = 1000.05 [07:01:52]line НДС 12% НСП 1% [07:01:52]line > о реализуемом товаре [07:01:52]line ОКРУГЛЕНИЕ: -0.05 [07:01:52]line ИТОГО: 1000.00 [07:01:52]line Внесено: 1000.00 [07:01:52]line СДАЧА: 0.00 [07:01:52]line НСП 1% : 8.85 [07:01:52]line НДС 12% : 106.20 [07:01:52]line Наличными: 1000.00 [07:01:52]line Безнал.: 0.00 [07:01:52]line Место: АЗС № 134 "Партнер Нефть" [07:01:52]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:01:52]line СНО: Общий режим [07:01:52]line Чек 38 31.07.2024 07:01 [07:01:52]line Смена: 436 ФФД: 1.0 [07:01:52]line ЗНМ: 0300000044 [07:01:52]line РНМ: 0000000000092660 [07:01:52]line Версия ККМ: 001 [07:01:52]line ФМ: 0000000000874939 [07:01:52]line ФД: 119307 [07:01:52]line ФПД: 143370547042049 [07:01:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T070152&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119307&fm=143370547042049&tin=02508201610067®Number=0000000000092660&sum=100000 [07:01:53]written 0, free lines is 4095 [07:01:53]OFD Sender: Processing packet 119307 [packets to send 86, broken 85] [07:01:53]ProducePacketName [07:01:53]name=ofd_packets/00119307 [07:01:53]OFD Sender: To server: pG, [07:01:53]CommunicateWithHost lk.salyk.kg:30040 [07:01:53]ConnectInit lk.salyk.kg [07:01:53]Connected sock=10 [07:01: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 39 33 39 0F 01 00 00 88 8A 07 01 C5 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 26 00 00 00 F4 03 04 00 60 E1 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0B D2 01 00 35 04 06 00 82 65 0E 87 17 01 77 E6 E3 A7 1D 64 F2 A6 [07:01:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 20 60 47 00 A2 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0B D2 01 00 F4 03 04 00 E9 8E A9 66 B6 04 01 00 00 A1 E6 C9 06 14 A5 AE FB [07:01:53]CommunicateWithHost err = 0 [07:01:53]CheckOFDResponse [07:01:53]1017 (14) - 77093643461234 [07:01:53]1041 (16) - 0000000000874939 [07:01:53]1040 (4) - 119307 [07:01:53]1012 (4) - 31.07.2024 01:10 [07:01:53]1206 (1) - 0 [07:01:53]OFD Sender: Remove packet 119307 [07:01:53]ProducePacketName [07:01:53]name=ofd_packets/00119307 [07:01:53]NVStorageDeleteData [07:01:53]Write to MH i2c: 01 00 00 95 08 9D [07:01:53]Write i2c OK [07:01:53]MH_I2C_Read... [07:01:53]Read from MH i2c: 01 [07:01:53]MH_I2C_Read... [07:01:53]Read from MH i2c: 01 07 00 [07:01:53]MH_I2C_Read... [07:01:53]Read from MH i2c: 01 07 00 95 08 00 00 00 00 00 FA 0C AA [07:01:53]RasterBufferAndPrint [07:01:53]line [07:01:53]line [07:01:53]line [07:01:53]line [07:01:53]line [07:01:53]written 0, free lines is 3329 [07:01:53]MH_Cut [07:01:53]Write to MH i2c: D1 01 00 9C 08 01 76 [07:01:53]Write i2c OK [07:01:53]MH_I2C_Read... [07:01:53]Read from MH i2c: D1 [07:01:53]MH_I2C_Read... [07:01:53]Read from MH i2c: D1 01 00 [07:01:53]MH_I2C_Read... [07:01:53]Read from MH i2c: D1 01 00 9C 08 00 75 [07:01:53]Write to MH i2c: 01 00 00 9D 08 A5 [07:01:53]Write i2c OK [07:01:53]MH_I2C_Read... [07:01:53]OFD Sender: No OFD packet to send [07:01:54]*** Cut start [07:01:54]*** Partial cut [07:01:54]*** CUTSNS_PIN = 1 [07:01:54]*** CUTSNS_PIN = 0 [07:01:54]*** Brake cut motor [07:01:54]Read from MH i2c: 01 [07:01:54]MH_I2C_Read... [07:01:54]*** Stop cut motor [07:01:54]*** Cut end [07:01:54]Read from MH i2c: 01 07 00 [07:01:54]MH_I2C_Read... [07:01:54]Read from MH i2c: 01 07 00 9D 08 00 00 00 00 00 FF 0F BA [07:01:54]process_action close_receipt done [07:01:54]requested_data is exist [07:01:54]produce_requested_data [07:01:54]requested_item fm.sn is exist - process it [07:01:54]wFMCommunicate request_size=4 [07:01:54]MH_SAM_APDU [07:01:54]CAPDU: 80 11 00 00 [07:01:54]Write to MH i2c: E2 08 00 9E 08 80 11 00 00 00 00 00 00 20 [07:01:54]Write i2c OK [07:01:54]MH_I2C_Read... [07:01:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:01:55]Read from MH i2c: E2 [07:01:55]MH_I2C_Read... [07:01:55]Read from MH i2c: E2 17 00 [07:01:55]MH_I2C_Read... [07:01:55]Read from MH i2c: E2 17 00 9E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7B [07:01:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:01:55]wFMCommunicate OK [07:01:55]requested_item fd.num is exist - process it [07:01:55]SAM_PROTO_GetFieldsCounters [07:01:55]wFMCommunicate request_size=4 [07:01:55]MH_SAM_APDU [07:01:55]CAPDU: 80 13 00 00 [07:01:55]Write to MH i2c: E2 08 00 9F 08 80 13 00 00 00 00 00 00 23 [07:01:55]Write i2c OK [07:01:55]MH_I2C_Read... [07:01:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:01:55]Read from MH i2c: E2 [07:01:55]MH_I2C_Read... [07:01:55]Read from MH i2c: E2 62 00 [07:01:55]MH_I2C_Read... [07:01:55]Read from MH i2c: E2 62 00 9F 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0B D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [07:01: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0B D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:01:55]wFMCommunicate OK [07:01:55]SAM_PROTO_GetFieldsCounters done [07:01:55]requested_item shift.num is exist - process it [07:01:55]requested_item shift.opened is exist - process it [07:01:55]req_shift_opened [07:01:55]FM_GetShiftState [07:01:55]SAM_PROTO_GetShiftState [07:01:55]wFMCommunicate request_size=4 [07:01:55]MH_SAM_APDU [07:01:55]CAPDU: 80 13 01 00 [07:01:55]Write to MH i2c: E2 08 00 A0 08 80 13 01 00 00 00 00 00 25 [07:01:55]Write i2c OK [07:01:55]MH_I2C_Read... [07:01:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:01:55]Read from MH i2c: E2 [07:01:55]MH_I2C_Read... [07:01:55]Read from MH i2c: E2 0E 00 [07:01:55]MH_I2C_Read... [07:01:55]Read from MH i2c: E2 0E 00 A0 08 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 BD [07:01:55]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [07:01:55]wFMCommunicate OK [07:01:55]SAM_PROTO_GetShiftState done [07:01:55]FM_GetShiftState done [07:01:55]req_shift_opened done [07:01:55]requested_item shift.open_date is exist - process it [07:01:55]req_shift_open_date [07:01:55]req_shift_open_date done [07:01:55]produce_requested_data done [07:01:55]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119307,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [07:01:55]process_action_free close_receipt [07:01:55]json_value_free [07:01:55]json_value_free done [07:01:55]process_json_proto returns [07:01:55]Send response to host [07:01:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119307,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [07:01:55]free response buf [07:01:55]execute_script done [07:01:55]execute_script returns [07:01:55]free content buf [07:01:55]Sock 8.Close socket [07:01:55]Sock 8.Thread stoped [07:01:58]OFD Sender: No OFD packet to send [07:02:04]OFD Sender: No OFD packet to send [07:02:09]OFD Sender: No OFD packet to send [07:02:14]OFD Sender: No OFD packet to send [07:02:19]OFD Sender: No OFD packet to send [07:02:24]OFD Sender: No OFD packet to send [07:02:29]OFD Sender: No OFD packet to send [07:02:34]OFD Sender: No OFD packet to send [07:02:39]OFD Sender: No OFD packet to send [07:02:44]OFD Sender: No OFD packet to send [07:02:49]OFD Sender: No OFD packet to send [07:02:54]OFD Sender: No OFD packet to send [07:02:59]OFD Sender: No OFD packet to send [07:03:04]OFD Sender: No OFD packet to send [07:03:09]OFD Sender: No OFD packet to send [07:03:14]OFD Sender: No OFD packet to send [07:03:19]OFD Sender: No OFD packet to send [07:03:24]OFD Sender: No OFD packet to send [07:03:29]OFD Sender: No OFD packet to send [07:03:34]OFD Sender: No OFD packet to send [07:03:39]OFD Sender: No OFD packet to send [07:03:44]OFD Sender: No OFD packet to send [07:03:49]OFD Sender: No OFD packet to send [07:03:54]OFD Sender: No OFD packet to send [07:03:59]OFD Sender: No OFD packet to send [07:04:04]OFD Sender: No OFD packet to send [07:04:09]OFD Sender: No OFD packet to send [07:04:14]OFD Sender: No OFD packet to send [07:04:19]OFD Sender: No OFD packet to send [07:04:24]OFD Sender: No OFD packet to send [07:04:29]OFD Sender: No OFD packet to send [07:04:34]OFD Sender: No OFD packet to send [07:04:39]OFD Sender: No OFD packet to send [07:04:44]OFD Sender: No OFD packet to send [07:04:49]OFD Sender: No OFD packet to send [07:04:54]OFD Sender: No OFD packet to send [07:04:59]OFD Sender: No OFD packet to send [07:05:04]OFD Sender: No OFD packet to send [07:05:09]OFD Sender: No OFD packet to send [07:05:14]OFD Sender: No OFD packet to send [07:05:19]OFD Sender: No OFD packet to send [07:05:24]OFD Sender: No OFD packet to send [07:05:29]OFD Sender: No OFD packet to send [07:05:34]OFD Sender: No OFD packet to send [07:05:39]OFD Sender: No OFD packet to send [07:05:44]OFD Sender: No OFD packet to send [07:05:49]OFD Sender: No OFD packet to send [07:05:54]OFD Sender: No OFD packet to send [07:05:59]OFD Sender: No OFD packet to send [07:06:04]OFD Sender: No OFD packet to send [07:06:09]OFD Sender: No OFD packet to send [07:06:14]OFD Sender: No OFD packet to send [07:06:19]OFD Sender: No OFD packet to send [07:06:24]OFD Sender: No OFD packet to send [07:06:29]OFD Sender: No OFD packet to send [07:06:34]OFD Sender: No OFD packet to send [07:06:39]OFD Sender: No OFD packet to send [07:06:44]OFD Sender: No OFD packet to send [07:06:49]OFD Sender: No OFD packet to send [07:06:54]OFD Sender: No OFD packet to send [07:06:59]OFD Sender: No OFD packet to send [07:07:04]OFD Sender: No OFD packet to send [07:07:09]OFD Sender: No OFD packet to send [07:07:14]OFD Sender: No OFD packet to send [07:07:19]OFD Sender: No OFD packet to send [07:07:24]OFD Sender: No OFD packet to send [07:07:29]OFD Sender: No OFD packet to send [07:07:34]OFD Sender: No OFD packet to send [07:07:39]OFD Sender: No OFD packet to send [07:07:44]OFD Sender: No OFD packet to send [07:07:49]OFD Sender: No OFD packet to send [07:07:54]OFD Sender: No OFD packet to send [07:07:59]OFD Sender: No OFD packet to send [07:08:04]OFD Sender: No OFD packet to send [07:08:09]OFD Sender: No OFD packet to send [07:08:14]OFD Sender: No OFD packet to send [07:08:19]OFD Sender: No OFD packet to send [07:08:24]OFD Sender: No OFD packet to send [07:08:29]OFD Sender: No OFD packet to send [07:08:34]OFD Sender: No OFD packet to send [07:08:39]OFD Sender: No OFD packet to send [07:08:44]OFD Sender: No OFD packet to send [07:08:44]accept exits with 9 [07:08:44]New connection [07:08:44]New thread 3067338084 created [07:08:44]Thread 3067194724 joined [07:08:44]Waiting for new connection... [07:08:44] Sock 9.Parse request [07:08:44]Sock 9.Check first char [07:08:44]Sock 9.First char is OK [07:08:44]request: POST /json_proto HTTP/1.0 [07:08:44]Method: POST [07:08:44]URL: /json_proto [07:08:44]Method is POST - this is cgi request [07:08:44]url: /json_proto [07:08:44]query_string will be loaded in cgi processing [07:08:44]execute_cgi json_proto POST (null) [07:08:44]execute_cgi path=json_proto method=POST [07:08:44]POST find Content-Length [07:08:44]Host: 172.17.45.7:8080 [07:08:44]Content-Length: 677 [07:08:44]Content-Type: application/json [07:08:44] [07:08:44]POST finish read [07:08:44]Found Content-Length = 677 [07:08:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:08:44]execute_script... [07:08: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)950233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:08:44]POST & json_proto [07:08:44]process_json_proto [07:08:44]json parsed OK: [07:08:44]protocol is kg_v1.0 [07:08:44]action value=close_receipt [07:08:44]process_action close_receipt [07:08:44]cmd_close_receipt [07:08:44]MH_GetDate [07:08:44]Write to MH i2c: F0 00 00 A1 08 98 [07:08:44]Write i2c OK [07:08:44]MH_I2C_Read... [07:08:44]Read from MH i2c: F0 [07:08:44]MH_I2C_Read... [07:08:44]Read from MH i2c: F0 09 00 [07:08:44]MH_I2C_Read... [07:08:44]Read from MH i2c: F0 09 00 A1 08 00 FD E2 A9 66 90 0F 3E 66 D2 [07:08:44]GetLastDocTimeStamp 1722409312 [07:08:44]current date 1722409725 [07:08:44]FM_GetShiftState [07:08:44]SAM_PROTO_GetShiftState [07:08:44]wFMCommunicate request_size=4 [07:08:44]MH_SAM_APDU [07:08:44]CAPDU: 80 13 01 00 [07:08:44]Write to MH i2c: E2 08 00 A2 08 80 13 01 00 00 00 00 00 27 [07:08:44]Write i2c OK [07:08:44]MH_I2C_Read... [07:08:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:08:44]Read from MH i2c: E2 [07:08:44]MH_I2C_Read... [07:08:44]Read from MH i2c: E2 0E 00 [07:08:44]MH_I2C_Read... [07:08:44]Read from MH i2c: E2 0E 00 A2 08 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 BF [07:08:44]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [07:08:44]wFMCommunicate OK [07:08:44]SAM_PROTO_GetShiftState done [07:08:44]FM_GetShiftState done [07:08:44]opened in 1722384637 [07:08:44]opened+sec_in_day 1722471037 [07:08:44]quantity*price = 50036 [07:08:44]sum+1 = 50037 [07:08:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 39 31.07.2024 07:08 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119308 ФПД: 269949760273321 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T070845&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119308&fm=269949760273321&tin=02508201610067®Number=0000000000092660&sum=50000 [07:08:45]StoreToDocumentArchive [07:08:45]shift 436 fd 119308 [07:08:45]save to /storage/0436/doc_00119308 [07:08:45]save last doc name /storage/0436/doc_00119308 to /storage/kkm_last_doc_name [07:08:45]save OK [07:08:45]Clear old archive folders... [07:08:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:08:45]tlvbuf is 00B09C80 [07:08:45]SAM_PROTO_ClearQueue [07:08:45]wFMCommunicate request_size=4 [07:08:45]MH_SAM_APDU [07:08:45]CAPDU: 80 09 00 00 [07:08:45]Write to MH i2c: E2 08 00 AF 08 80 09 00 00 00 00 00 00 29 [07:08:45]Write i2c OK [07:08:45]MH_I2C_Read... [07:08:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:08:45]Read from MH i2c: E2 [07:08:45]MH_I2C_Read... [07:08:45]Read from MH i2c: E2 03 00 [07:08:45]MH_I2C_Read... [07:08:45]Read from MH i2c: E2 03 00 AF 08 00 90 00 2B [07:08:45]RAPDU: 90 00 [07:08:45]wFMCommunicate OK [07:08:45]SAM_PROTO_ClearQueue done [07:08:45]KKMCreateOFDPacket [07:08:45]OFDProtocolAddRootSTLVToBuf [07:08:45]FM_MakeSignedData [07:08:45]FM_MakeSignedData [07:08:45]SAM_PROTO_SignData [07:08:45]wFMCommunicate request_size=4 [07:08:45]MH_SAM_APDU [07:08:45]CAPDU: 80 0D 01 02 [07:08:45]Write to MH i2c: E2 08 00 B0 08 80 0D 01 02 00 00 00 00 31 [07:08:45]Write i2c OK [07:08:45]MH_I2C_Read... [07:08:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:08:45]Read from MH i2c: E2 [07:08:45]MH_I2C_Read... [07:08:45]Read from MH i2c: E2 03 00 [07:08:45]MH_I2C_Read... [07:08:45]Read from MH i2c: E2 03 00 B0 08 00 90 00 2C [07:08:45]RAPDU: 90 00 [07:08:45]wFMCommunicate OK [07:08:45]wFMCommunicate request_size=255 [07:08:45]MH_SAM_APDU [07:08:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 27 00 00 00 F4 03 04 00 FD E2 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0C D2 01 00 35 04 06 00 F5 [07:08:45]Write to MH i2c: E2 02 01 B1 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 27 00 00 00 F4 03 04 00 FD E2 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0C D2 01 00 35 04 06 00 F5 00 00 53 [07:08:45]Write i2c OK [07:08:45]MH_I2C_Read... [07:08:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:08:46]Read from MH i2c: E2 [07:08:46]MH_I2C_Read... [07:08:46]Read from MH i2c: E2 03 00 [07:08:46]MH_I2C_Read... [07:08:46]Read from MH i2c: E2 03 00 B1 08 00 90 00 2D [07:08:46]RAPDU: 90 00 [07:08:46]wFMCommunicate OK [07:08:46]wFMCommunicate request_size=10 [07:08:46]MH_SAM_APDU [07:08:46]CAPDU: 80 0D 02 02 05 84 93 91 7B A9 [07:08:46]Write to MH i2c: E2 0D 00 B2 08 80 0D 02 02 05 00 84 93 91 7B A9 00 00 0A [07:08:46]Write i2c OK [07:08:46]MH_I2C_Read... [07:08:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:08:46]Read from MH i2c: E2 [07:08:46]MH_I2C_Read... [07:08:46]Read from MH i2c: E2 03 00 [07:08:46]MH_I2C_Read... [07:08:46]Read from MH i2c: E2 03 00 B2 08 00 90 00 2E [07:08:46]RAPDU: 90 00 [07:08:46]wFMCommunicate OK [07:08:46]wFMCommunicate request_size=4 [07:08:46]MH_SAM_APDU [07:08:46]CAPDU: 80 0D 03 02 [07:08:46]Write to MH i2c: E2 08 00 B3 08 80 0D 03 02 00 00 00 00 36 [07:08:46]Write i2c OK [07:08:46]MH_I2C_Read... [07:08:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:08:46]Read from MH i2c: E2 [07:08:46]MH_I2C_Read... [07:08:46]Read from MH i2c: E2 0B 00 [07:08:46]MH_I2C_Read... [07:08:46]Read from MH i2c: E2 0B 00 B3 08 00 54 18 77 55 10 FA C9 EE 90 00 30 [07:08:46]RAPDU: 54 18 77 55 10 FA C9 EE 90 00 [07:08:46]wFMCommunicate OK [07:08:46]SAM_PROTO_SignData done [07:08:46]FM_MakeSignedData done [07:08:46]CreateOFDProtocolMessage [07:08:46]wFMCommunicate request_size=4 [07:08:46]MH_SAM_APDU [07:08:46]CAPDU: 80 11 00 00 [07:08:46]Write to MH i2c: E2 08 00 B4 08 80 11 00 00 00 00 00 00 36 [07:08:46]Write i2c OK [07:08:46]MH_I2C_Read... [07:08:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:08:46]Read from MH i2c: E2 [07:08:46]MH_I2C_Read... [07:08:46]Read from MH i2c: E2 17 00 [07:08:46]MH_I2C_Read... [07:08:46]Read from MH i2c: E2 17 00 B4 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 91 [07:08:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:08:46]wFMCommunicate OK [07:08:46]CreateOFDProtocolMessage done [07:08:46]OFDSenderStorePacket 119308 [07:08:46]StoreOFDPacket docnum=119308 [07:08:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 18 73 07 01 CE 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 27 00 00 00 F4 03 04 00 FD E2 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0C D2 01 00 35 04 06 00 F5 84 93 91 7B A9 54 18 77 55 10 FA C9 EE [07:08:46]CheckFolder [07:08:46]dirname=/storage/ofd_packets [07:08:46]CheckFolder done [07:08:46]ProducePacketName [07:08:46]name=ofd_packets/00119308 [07:08:46]NVStorageSaveData ofd_packets/00119308 [07:08:46]File name is /storage/ofd_packets/00119308 [07:08:46]Write 301 bytes [07:08:46]NVStorageSaveData done [07:08:46]OFDSenderStorePacket done [07:08:46]KKMCreateOFDPacket done [07:08:46]NVStorageSaveData kkm_last_timestamp [07:08:46]File name is /storage/kkm_last_timestamp [07:08:46]Write 4 bytes [07:08:46]NVStorageSaveData done [07:08:46]ExternCall_PrintAddStr [07:08:46]wPrintStart [07:08:46]Write to MH i2c: 01 00 00 B5 08 BD [07:08:46]Write i2c OK [07:08:46]MH_I2C_Read... [07:08:46]Read from MH i2c: 01 [07:08:46]MH_I2C_Read... [07:08:46]Read from MH i2c: 01 07 00 [07:08:46]MH_I2C_Read... [07:08:46]Read from MH i2c: 01 07 00 B5 08 00 00 00 00 00 FF 0F D2 [07:08:46]RasterBufferAndPrint [07:08:46]line Счет N : (1)950233 [07:08:46]line ИНН: 02508201610067 [07:08:46]line Контрольно-Кассовый Чек [07:08:46]line ПРОДАЖА [07:08:46]line ТРК (МРК, ГНК) : 41 [07:08:46]line Товар: 2710124130 [07:08:46]line Аи-92-К-4 [07:08:46]line 7.380 * 67.80 [07:08:46]line = 500.36 [07:08:46]line НДС 12% НСП 1% [07:08:46]line > о реализуемом товаре [07:08:46]line ОКРУГЛЕНИЕ: -0.36 [07:08:46]line ИТОГО: 500.00 [07:08:46]line Внесено: 500.00 [07:08:46]line СДАЧА: 0.00 [07:08:46]line НСП 1% : 4.43 [07:08:46]line НДС 12% : 53.14 [07:08:46]line Наличными: 500.00 [07:08:46]line Безнал.: 0.00 [07:08:46]line Место: АЗС № 134 "Партнер Нефть" [07:08:46]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:08:46]line СНО: Общий режим [07:08:46]line Чек 39 31.07.2024 07:08 [07:08:46]line Смена: 436 ФФД: 1.0 [07:08:46]line ЗНМ: 0300000044 [07:08:46]line РНМ: 0000000000092660 [07:08:46]line Версия ККМ: 001 [07:08:46]line ФМ: 0000000000874939 [07:08:46]line ФД: 119308 [07:08:46]line ФПД: 269949760273321 [07:08:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T070845&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119308&fm=269949760273321&tin=02508201610067®Number=0000000000092660&sum=50000 [07:08:46]OFD Sender: Processing packet 119308 [packets to send 86, broken 85] [07:08:46]ProducePacketName [07:08:46]name=ofd_packets/00119308 [07:08:46]OFD Sender: To server: pG, [07:08:46]CommunicateWithHost lk.salyk.kg:30040 [07:08:46]ConnectInit lk.salyk.kg [07:08:46]written 0, free lines is 4095 [07:08:46]Connected sock=10 [07:08:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 18 73 07 01 CE 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 27 00 00 00 F4 03 04 00 FD E2 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0C D2 01 00 35 04 06 00 F5 84 93 91 7B A9 54 18 77 55 10 FA C9 EE [07:08:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 54 D1 47 00 5B 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 39 33 39 10 04 04 00 0C D2 01 00 F4 03 04 00 87 90 A9 66 B6 04 01 00 00 3E 52 A1 35 49 47 D7 CC [07:08:46]CommunicateWithHost err = 0 [07:08:46]CheckOFDResponse [07:08:46]1017 (14) - 77093643461234 [07:08:46]1041 (16) - 0000000000874939 [07:08:46]1040 (4) - 119308 [07:08:46]1012 (4) - 31.07.2024 01:16 [07:08:46]1206 (1) - 0 [07:08:46]OFD Sender: Remove packet 119308 [07:08:46]ProducePacketName [07:08:46]name=ofd_packets/00119308 [07:08:46]NVStorageDeleteData [07:08:47]Write to MH i2c: 01 00 00 DF 08 E7 [07:08:47]Write i2c OK [07:08:47]MH_I2C_Read... [07:08:47]Read from MH i2c: 01 [07:08:47]MH_I2C_Read... [07:08:47]Read from MH i2c: 01 07 00 [07:08:47]MH_I2C_Read... [07:08:47]Read from MH i2c: 01 07 00 DF 08 00 00 00 00 00 CD 0C C7 [07:08:47]RasterBufferAndPrint [07:08:47]line [07:08:47]line [07:08:47]line [07:08:47]line [07:08:47]line [07:08:47]written 0, free lines is 3280 [07:08:47]MH_Cut [07:08:47]Write to MH i2c: D1 01 00 E6 08 01 C0 [07:08:47]Write i2c OK [07:08:47]MH_I2C_Read... [07:08:47]Read from MH i2c: D1 [07:08:47]MH_I2C_Read... [07:08:47]Read from MH i2c: D1 01 00 [07:08:47]MH_I2C_Read... [07:08:47]Read from MH i2c: D1 01 00 E6 08 00 BF [07:08:47]Write to MH i2c: 01 00 00 E7 08 EF [07:08:47]Write i2c OK [07:08:47]MH_I2C_Read... [07:08:47]OFD Sender: No OFD packet to send [07:08:47]*** Cut start [07:08:47]*** Partial cut [07:08:47]*** CUTSNS_PIN = 1 [07:08:47]*** CUTSNS_PIN = 0 [07:08:48]*** Brake cut motor [07:08:48]Read from MH i2c: 01 [07:08:48]MH_I2C_Read... [07:08:48]*** Stop cut motor [07:08:48]*** Cut end [07:08:48]Read from MH i2c: 01 07 00 [07:08:48]MH_I2C_Read... [07:08:48]Read from MH i2c: 01 07 00 E7 08 00 00 00 00 00 FF 0F 04 [07:08:48]process_action close_receipt done [07:08:48]requested_data is exist [07:08:48]produce_requested_data [07:08:48]requested_item fm.sn is exist - process it [07:08:48]wFMCommunicate request_size=4 [07:08:48]MH_SAM_APDU [07:08:48]CAPDU: 80 11 00 00 [07:08:48]Write to MH i2c: E2 08 00 E8 08 80 11 00 00 00 00 00 00 6A [07:08:48]Write i2c OK [07:08:48]MH_I2C_Read... [07:08:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:08:48]Read from MH i2c: E2 [07:08:48]MH_I2C_Read... [07:08:48]Read from MH i2c: E2 17 00 [07:08:48]MH_I2C_Read... [07:08:48]Read from MH i2c: E2 17 00 E8 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C5 [07:08:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:08:48]wFMCommunicate OK [07:08:48]requested_item fd.num is exist - process it [07:08:48]SAM_PROTO_GetFieldsCounters [07:08:48]wFMCommunicate request_size=4 [07:08:48]MH_SAM_APDU [07:08:48]CAPDU: 80 13 00 00 [07:08:48]Write to MH i2c: E2 08 00 E9 08 80 13 00 00 00 00 00 00 6D [07:08:48]Write i2c OK [07:08:48]MH_I2C_Read... [07:08:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:08:48]Read from MH i2c: E2 [07:08:48]MH_I2C_Read... [07:08:48]Read from MH i2c: E2 62 00 [07:08:48]MH_I2C_Read... [07:08:48]Read from MH i2c: E2 62 00 E9 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0C D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [07:08: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0C D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:08:48]wFMCommunicate OK [07:08:48]SAM_PROTO_GetFieldsCounters done [07:08:48]requested_item shift.num is exist - process it [07:08:48]requested_item shift.opened is exist - process it [07:08:48]req_shift_opened [07:08:48]FM_GetShiftState [07:08:48]SAM_PROTO_GetShiftState [07:08:48]wFMCommunicate request_size=4 [07:08:48]MH_SAM_APDU [07:08:48]CAPDU: 80 13 01 00 [07:08:48]Write to MH i2c: E2 08 00 EA 08 80 13 01 00 00 00 00 00 6F [07:08:48]Write i2c OK [07:08:48]MH_I2C_Read... [07:08:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:08:48]Read from MH i2c: E2 [07:08:48]MH_I2C_Read... [07:08:48]Read from MH i2c: E2 0E 00 [07:08:48]MH_I2C_Read... [07:08:48]Read from MH i2c: E2 0E 00 EA 08 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 07 [07:08:48]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [07:08:48]wFMCommunicate OK [07:08:48]SAM_PROTO_GetShiftState done [07:08:48]FM_GetShiftState done [07:08:48]req_shift_opened done [07:08:48]requested_item shift.open_date is exist - process it [07:08:48]req_shift_open_date [07:08:48]req_shift_open_date done [07:08:48]produce_requested_data done [07:08:48]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119308,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [07:08:48]process_action_free close_receipt [07:08:48]json_value_free [07:08:48]json_value_free done [07:08:48]process_json_proto returns [07:08:48]Send response to host [07:08:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119308,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [07:08:48]free response buf [07:08:48]execute_script done [07:08:48]execute_script returns [07:08:48]free content buf [07:08:48]Sock 9.Close socket [07:08:48]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [07:09:17]OFD Sender: No OFD packet to send [07:09:22]OFD Sender: No OFD packet to send [07:09:27]OFD Sender: No OFD packet to send [07:09:32]OFD Sender: No OFD packet to send [07:09:37]OFD Sender: No OFD packet to send [07:09:42]OFD Sender: No OFD packet to send [07:09:47]OFD Sender: No OFD packet to send [07:09:52]OFD Sender: No OFD packet to send [07:09:57]OFD Sender: No OFD packet to send [07:10:02]OFD Sender: No OFD packet to send [07:10:07]OFD Sender: No OFD packet to send [07:10:12]OFD Sender: No OFD packet to send [07:10:17]OFD Sender: No OFD packet to send [07:10:22]OFD Sender: No OFD packet to send [07:10:27]OFD Sender: No OFD packet to send [07:10:32]OFD Sender: No OFD packet to send [07:10:37]OFD Sender: No OFD packet to send [07:10:42]OFD Sender: No OFD packet to send [07:10:47]OFD Sender: No OFD packet to send [07:10:52]OFD Sender: No OFD packet to send [07:10:57]OFD Sender: No OFD packet to send [07:11:02]OFD Sender: No OFD packet to send [07:11:07]OFD Sender: No OFD packet to send [07:11:12]OFD Sender: No OFD packet to send [07:11:17]OFD Sender: No OFD packet to send [07:11:22]OFD Sender: No OFD packet to send [07:11:27]OFD Sender: No OFD packet to send [07:11:32]OFD Sender: No OFD packet to send [07:11:37]OFD Sender: No OFD packet to send [07:11:42]OFD Sender: No OFD packet to send [07:11:47]OFD Sender: No OFD packet to send [07:11:52]OFD Sender: No OFD packet to send [07:11:57]OFD Sender: No OFD packet to send [07:12:02]OFD Sender: No OFD packet to send [07:12:07]OFD Sender: No OFD packet to send [07:12:12]OFD Sender: No OFD packet to send [07:12:17]OFD Sender: No OFD packet to send [07:12:22]OFD Sender: No OFD packet to send [07:12:27]OFD Sender: No OFD packet to send [07:12:32]OFD Sender: No OFD packet to send [07:12:37]OFD Sender: No OFD packet to send [07:12:42]OFD Sender: No OFD packet to send [07:12:47]OFD Sender: No OFD packet to send [07:12:52]OFD Sender: No OFD packet to send [07:12:57]OFD Sender: No OFD packet to send [07:13:02]OFD Sender: No OFD packet to send [07:13:07]OFD Sender: No OFD packet to send [07:13:12]OFD Sender: No OFD packet to send [07:13:17]OFD Sender: No OFD packet to send [07:13:22]OFD Sender: No OFD packet to send [07:13:27]OFD Sender: No OFD packet to send [07:13:32]OFD Sender: No OFD packet to send [07:13:37]OFD Sender: No OFD packet to send [07:13:42]OFD Sender: No OFD packet to send [07:13:47]OFD Sender: No OFD packet to send [07:13:52]OFD Sender: No OFD packet to send [07:13:57]OFD Sender: No OFD packet to send [07:14:02]OFD Sender: No OFD packet to send [07:14:07]OFD Sender: No OFD packet to send [07:14:12]OFD Sender: No OFD packet to send [07:14:17]OFD Sender: No OFD packet to send [07:14:22]OFD Sender: No OFD packet to send [07:14:27]OFD Sender: No OFD packet to send [07:14:32]OFD Sender: No OFD packet to send [07:14:37]OFD Sender: No OFD packet to send [07:14:42]OFD Sender: No OFD packet to send [07:14:47]OFD Sender: No OFD packet to send [07:14:52]OFD Sender: No OFD packet to send [07:14:57]OFD Sender: No OFD packet to send [07:15:02]OFD Sender: No OFD packet to send [07:15:07]OFD Sender: No OFD packet to send [07:15:12]OFD Sender: No OFD packet to send [07:15:17]OFD Sender: No OFD packet to send [07:15:22]OFD Sender: No OFD packet to send [07:15:27]OFD Sender: No OFD packet to send [07:15:32]OFD Sender: No OFD packet to send [07:15:37]OFD Sender: No OFD packet to send [07:15:42]OFD Sender: No OFD packet to send [07:15:47]OFD Sender: No OFD packet to send [07:15:52]OFD Sender: No OFD packet to send [07:15:57]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:32]OFD Sender: No OFD packet to send [07:16:37]OFD Sender: No OFD packet to send [07:16:42]OFD Sender: No OFD packet to send [07:16:47]OFD Sender: No OFD packet to send [07:16:52]OFD Sender: No OFD packet to send [07:16:57]OFD Sender: No OFD packet to send [07:17:02]OFD Sender: No OFD packet to send [07:17:07]OFD Sender: No OFD packet to send [07:17:12]OFD Sender: No OFD packet to send [07:17:17]OFD Sender: No OFD packet to send [07:17:21]accept exits with 8 [07:17:21]New connection [07:17:21]New thread 3067194724 created [07:17:21]Thread 3067338084 joined [07:17:21]Waiting for new connection... [07:17:21] Sock 8.Parse request [07:17:21]Sock 8.Check first char [07:17:21]Sock 8.First char is OK [07:17:21]request: POST /json_proto HTTP/1.0 [07:17:21]Method: POST [07:17:21]URL: /json_proto [07:17:21]Method is POST - this is cgi request [07:17:21]url: /json_proto [07:17:21]query_string will be loaded in cgi processing [07:17:21]execute_cgi json_proto POST (null) [07:17:21]execute_cgi path=json_proto method=POST [07:17:21]POST find Content-Length [07:17:21]Host: 172.17.45.7:8080 [07:17:21]Content-Length: 819 [07:17:21]Content-Type: application/json [07:17:21] [07:17:21]POST finish read [07:17:21]Found Content-Length = 819 [07:17:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 50.660, "sum" : 3860.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3860.00, "payments": [ { "type": 1, "sum" : 3860.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:17:21]execute_script... [07:17:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 50.660, "sum" : 3860.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3860.00, "payments": [ { "type": 1, "sum" : 3860.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:17:21]POST & json_proto [07:17:21]process_json_proto [07:17:21]json parsed OK: [07:17:21]protocol is kg_v1.0 [07:17:21]action value=close_receipt [07:17:21]process_action close_receipt [07:17:21]cmd_close_receipt [07:17:21]MH_GetDate [07:17:21]Write to MH i2c: F0 00 00 EB 08 E2 [07:17:21]Write i2c OK [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: F0 [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: F0 09 00 [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: F0 09 00 EB 08 00 02 E5 A9 66 90 0F 3E 66 24 [07:17:21]GetLastDocTimeStamp 1722409725 [07:17:21]current date 1722410242 [07:17:21]FM_GetShiftState [07:17:21]SAM_PROTO_GetShiftState [07:17:21]wFMCommunicate request_size=4 [07:17:21]MH_SAM_APDU [07:17:21]CAPDU: 80 13 01 00 [07:17:21]Write to MH i2c: E2 08 00 EC 08 80 13 01 00 00 00 00 00 71 [07:17:21]Write i2c OK [07:17:21]MH_I2C_Read... [07:17:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:17:21]Read from MH i2c: E2 [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: E2 0E 00 [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: E2 0E 00 EC 08 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 09 [07:17:21]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [07:17:21]wFMCommunicate OK [07:17:21]SAM_PROTO_GetShiftState done [07:17:21]FM_GetShiftState done [07:17:21]opened in 1722384637 [07:17:21]opened+sec_in_day 1722471037 [07:17:21]quantity*price = 386029 [07:17:21]sum+1 = 386030 [07:17:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 3860.00 НСП 1% : 34.16 НДС 12% : 409.94 Наличными: 0.00 Безнал.: 3860.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 40 31.07.2024 07:17 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119309 ФПД: 26407150757910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T071722&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119309&fm=26407150757910&tin=02508201610067®Number=0000000000092660&sum=386000 [07:17:22]StoreToDocumentArchive [07:17:22]shift 436 fd 119309 [07:17:22]save to /storage/0436/doc_00119309 [07:17:22]save last doc name /storage/0436/doc_00119309 to /storage/kkm_last_doc_name [07:17:22]save OK [07:17:22]Clear old archive folders... [07:17:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:17:22]tlvbuf is 00AF1510 [07:17:22]SAM_PROTO_ClearQueue [07:17:22]wFMCommunicate request_size=4 [07:17:22]MH_SAM_APDU [07:17:22]CAPDU: 80 09 00 00 [07:17:22]Write to MH i2c: E2 08 00 F9 08 80 09 00 00 00 00 00 00 73 [07:17:22]Write i2c OK [07:17:22]MH_I2C_Read... [07:17:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:17:22]Read from MH i2c: E2 [07:17:22]MH_I2C_Read... [07:17:22]Read from MH i2c: E2 03 00 [07:17:22]MH_I2C_Read... [07:17:22]Read from MH i2c: E2 03 00 F9 08 00 90 00 75 [07:17:22]RAPDU: 90 00 [07:17:22]wFMCommunicate OK [07:17:22]SAM_PROTO_ClearQueue done [07:17:22]KKMCreateOFDPacket [07:17:22]OFDProtocolAddRootSTLVToBuf [07:17:22]FM_MakeSignedData [07:17:22]FM_MakeSignedData [07:17:22]SAM_PROTO_SignData [07:17:22]wFMCommunicate request_size=4 [07:17:22]MH_SAM_APDU [07:17:22]CAPDU: 80 0D 01 02 [07:17:22]Write to MH i2c: E2 08 00 FA 08 80 0D 01 02 00 00 00 00 7B [07:17:22]Write i2c OK [07:17:22]MH_I2C_Read... [07:17:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:17:22]Read from MH i2c: E2 [07:17:22]MH_I2C_Read... [07:17:22]Read from MH i2c: E2 03 00 [07:17:22]MH_I2C_Read... [07:17:22]Read from MH i2c: E2 03 00 FA 08 00 90 00 76 [07:17:22]RAPDU: 90 00 [07:17:22]wFMCommunicate OK [07:17:22]wFMCommunicate request_size=255 [07:17:22]MH_SAM_APDU [07:17:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E4 C5 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 ED E3 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 E3 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 A0 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 E3 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 02 E5 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0D D2 01 00 35 04 06 00 18 04 64 D7 [07:17:22]Write to MH i2c: E2 02 01 FB 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E4 C5 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 ED E3 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 E3 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 A0 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 E3 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 02 E5 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0D D2 01 00 35 04 06 00 18 04 64 D7 00 00 E3 [07:17:22]Write i2c OK [07:17:22]MH_I2C_Read... [07:17:22]OFD Sender: No OFD packet to send [07:17:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:17:23]Read from MH i2c: E2 [07:17:23]MH_I2C_Read... [07:17:23]Read from MH i2c: E2 03 00 [07:17:23]MH_I2C_Read... [07:17:23]Read from MH i2c: E2 03 00 FB 08 00 90 00 77 [07:17:23]RAPDU: 90 00 [07:17:23]wFMCommunicate OK [07:17:23]wFMCommunicate request_size=7 [07:17:23]MH_SAM_APDU [07:17:23]CAPDU: 80 0D 02 02 02 28 16 [07:17:23]Write to MH i2c: E2 0A 00 FC 08 80 0D 02 02 02 00 28 16 00 00 C0 [07:17:23]Write i2c OK [07:17:23]MH_I2C_Read... [07:17:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:17:23]Read from MH i2c: E2 [07:17:23]MH_I2C_Read... [07:17:23]Read from MH i2c: E2 03 00 [07:17:23]MH_I2C_Read... [07:17:23]Read from MH i2c: E2 03 00 FC 08 00 90 00 78 [07:17:23]RAPDU: 90 00 [07:17:23]wFMCommunicate OK [07:17:23]wFMCommunicate request_size=4 [07:17:23]MH_SAM_APDU [07:17:23]CAPDU: 80 0D 03 02 [07:17:23]Write to MH i2c: E2 08 00 FD 08 80 0D 03 02 00 00 00 00 80 [07:17:23]Write i2c OK [07:17:23]MH_I2C_Read... [07:17:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:17:23]Read from MH i2c: E2 [07:17:23]MH_I2C_Read... [07:17:23]Read from MH i2c: E2 0B 00 [07:17:23]MH_I2C_Read... [07:17:23]Read from MH i2c: E2 0B 00 FD 08 00 D3 1D 67 12 EB 4F A2 F0 90 00 B6 [07:17:23]RAPDU: D3 1D 67 12 EB 4F A2 F0 90 00 [07:17:23]wFMCommunicate OK [07:17:23]SAM_PROTO_SignData done [07:17:23]FM_MakeSignedData done [07:17:23]CreateOFDProtocolMessage [07:17:23]wFMCommunicate request_size=4 [07:17:23]MH_SAM_APDU [07:17:23]CAPDU: 80 11 00 00 [07:17:23]Write to MH i2c: E2 08 00 FE 08 80 11 00 00 00 00 00 00 80 [07:17:23]Write i2c OK [07:17:23]MH_I2C_Read... [07:17:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:17:23]Read from MH i2c: E2 [07:17:23]MH_I2C_Read... [07:17:23]Read from MH i2c: E2 17 00 [07:17:23]MH_I2C_Read... [07:17:23]Read from MH i2c: E2 17 00 FE 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DB [07:17:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:17:23]wFMCommunicate OK [07:17:23]CreateOFDProtocolMessage done [07:17:23]OFDSenderStorePacket 119309 [07:17:23]StoreOFDPacket docnum=119309 [07:17:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 88 29 04 01 28 3E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E4 C5 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 ED E3 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 E3 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 A0 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 E3 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 02 E5 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0D D2 01 00 35 04 06 00 18 04 64 D7 28 16 D3 1D 67 12 EB 4F A2 F0 [07:17:23]CheckFolder [07:17:23]dirname=/storage/ofd_packets [07:17:23]CheckFolder done [07:17:23]ProducePacketName [07:17:23]name=ofd_packets/00119309 [07:17:23]NVStorageSaveData ofd_packets/00119309 [07:17:23]File name is /storage/ofd_packets/00119309 [07:17:23]Write 298 bytes [07:17:23]NVStorageSaveData done [07:17:23]OFDSenderStorePacket done [07:17:23]KKMCreateOFDPacket done [07:17:23]NVStorageSaveData kkm_last_timestamp [07:17:23]File name is /storage/kkm_last_timestamp [07:17:23]Write 4 bytes [07:17:23]NVStorageSaveData done [07:17:23]ExternCall_PrintAddStr [07:17:23]wPrintStart [07:17:23]Write to MH i2c: 01 00 00 FF 08 07 [07:17:23]Write i2c OK [07:17:23]MH_I2C_Read... [07:17:23]Read from MH i2c: 01 [07:17:23]MH_I2C_Read... [07:17:23]Read from MH i2c: 01 07 00 [07:17:23]MH_I2C_Read... [07:17:23]Read from MH i2c: 01 07 00 FF 08 00 00 00 00 00 FF 0F 1C [07:17:23]RasterBufferAndPrint [07:17:23]line Счет N : (1)950234 [07:17:23]line ИНН: 02508201610067 [07:17:23]line Контрольно-Кассовый Чек [07:17:23]line ПРОДАЖА [07:17:23]line ТРК (МРК, ГНК) : 21 [07:17:23]line Товар: 2710194800 [07:17:23]line ДТ-К-5 [07:17:23]line 50.660 * 76.20 [07:17:23]line = 3860.29 [07:17:23]line НДС 12% НСП 1% [07:17:23]line > о реализуемом товаре [07:17:23]line ОКРУГЛЕНИЕ: -0.29 [07:17:23]line ИТОГО: 3860.00 [07:17:23]line НСП 1% : 34.16 [07:17:23]line НДС 12% : 409.94 [07:17:23]line Наличными: 0.00 [07:17:23]line Безнал.: 3860.00 [07:17:23]line Место: АЗС № 134 "Партнер Нефть" [07:17:23]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:17:23]line СНО: Общий режим [07:17:23]line Чек 40 31.07.2024 07:17 [07:17:23]line Смена: 436 ФФД: 1.0 [07:17:23]line ЗНМ: 0300000044 [07:17:23]line РНМ: 0000000000092660 [07:17:23]line Версия ККМ: 001 [07:17:23]line Платежная система: O! деньги [07:17:23]line ФМ: 0000000000874939 [07:17:23]line ФД: 119309 [07:17:23]line ФПД: 26407150757910 [07:17:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T071722&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119309&fm=26407150757910&tin=02508201610067®Number=0000000000092660&sum=386000 [07:17:23]OFD Sender: Processing packet 119309 [packets to send 86, broken 85] [07:17:23]ProducePacketName [07:17:23]name=ofd_packets/00119309 [07:17:23]OFD Sender: To server: pG, [07:17:23]CommunicateWithHost lk.salyk.kg:30040 [07:17:23]ConnectInit lk.salyk.kg [07:17:23]written 0, free lines is 4095 [07:17:23]Connected sock=10 [07:17: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 39 33 39 0C 01 00 00 88 29 04 01 28 3E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E4 C5 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 ED E3 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 E3 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 A0 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 E3 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 02 E5 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0D D2 01 00 35 04 06 00 18 04 64 D7 28 16 D3 1D 67 12 EB 4F A2 F0 [07:17:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 50 F1 47 00 BF 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0D D2 01 00 F4 03 04 00 8C 92 A9 66 B6 04 01 00 00 4A A8 EC 79 57 8C B5 B0 [07:17:23]CommunicateWithHost err = 0 [07:17:23]CheckOFDResponse [07:17:23]1017 (14) - 77093643461234 [07:17:23]1041 (16) - 0000000000874939 [07:17:23]1040 (4) - 119309 [07:17:23]1012 (4) - 31.07.2024 01:25 [07:17:23]1206 (1) - 0 [07:17:23]OFD Sender: Remove packet 119309 [07:17:23]ProducePacketName [07:17:23]name=ofd_packets/00119309 [07:17:23]NVStorageDeleteData [07:17:24]Write to MH i2c: 01 00 00 29 09 32 [07:17:24]Write i2c OK [07:17:24]MH_I2C_Read... [07:17:24]Read from MH i2c: 01 [07:17:24]MH_I2C_Read... [07:17:24]Read from MH i2c: 01 07 00 [07:17:24]MH_I2C_Read... [07:17:24]Read from MH i2c: 01 07 00 29 09 00 00 00 00 00 DD 0C 22 [07:17:24]RasterBufferAndPrint [07:17:24]line [07:17:24]line [07:17:24]line [07:17:24]line [07:17:24]line [07:17:24]written 0, free lines is 3299 [07:17:24]MH_Cut [07:17:24]Write to MH i2c: D1 01 00 30 09 01 0B [07:17:24]Write i2c OK [07:17:24]MH_I2C_Read... [07:17:24]Read from MH i2c: D1 [07:17:24]MH_I2C_Read... [07:17:24]Read from MH i2c: D1 01 00 [07:17:24]MH_I2C_Read... [07:17:24]Read from MH i2c: D1 01 00 30 09 00 0A [07:17:24]Write to MH i2c: 01 00 00 31 09 3A [07:17:24]Write i2c OK [07:17:24]MH_I2C_Read... [07:17:24]OFD Sender: No OFD packet to send [07:17:24]*** Cut start [07:17:24]*** Partial cut [07:17:24]*** CUTSNS_PIN = 1 [07:17:24]*** CUTSNS_PIN = 0 [07:17:25]*** Brake cut motor [07:17:25]Read from MH i2c: 01 [07:17:25]MH_I2C_Read... [07:17:25]*** Stop cut motor [07:17:25]*** Cut end [07:17:25]Read from MH i2c: 01 07 00 [07:17:25]MH_I2C_Read... [07:17:25]Read from MH i2c: 01 07 00 31 09 00 00 00 00 00 FF 0F 4F [07:17:25]process_action close_receipt done [07:17:25]requested_data is exist [07:17:25]produce_requested_data [07:17:25]requested_item fm.sn is exist - process it [07:17:25]wFMCommunicate request_size=4 [07:17:25]MH_SAM_APDU [07:17:25]CAPDU: 80 11 00 00 [07:17:25]Write to MH i2c: E2 08 00 32 09 80 11 00 00 00 00 00 00 B5 [07:17:25]Write i2c OK [07:17:25]MH_I2C_Read... [07:17:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:17:25]Read from MH i2c: E2 [07:17:25]MH_I2C_Read... [07:17:25]Read from MH i2c: E2 17 00 [07:17:25]MH_I2C_Read... [07:17:25]Read from MH i2c: E2 17 00 32 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 10 [07:17:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:17:25]wFMCommunicate OK [07:17:25]requested_item fd.num is exist - process it [07:17:25]SAM_PROTO_GetFieldsCounters [07:17:25]wFMCommunicate request_size=4 [07:17:25]MH_SAM_APDU [07:17:25]CAPDU: 80 13 00 00 [07:17:25]Write to MH i2c: E2 08 00 33 09 80 13 00 00 00 00 00 00 B8 [07:17:25]Write i2c OK [07:17:25]MH_I2C_Read... [07:17:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:17:25]Read from MH i2c: E2 [07:17:25]MH_I2C_Read... [07:17:25]Read from MH i2c: E2 62 00 [07:17:25]MH_I2C_Read... [07:17:25]Read from MH i2c: E2 62 00 33 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0D D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [07:17:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0D D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:17:25]wFMCommunicate OK [07:17:25]SAM_PROTO_GetFieldsCounters done [07:17:25]requested_item shift.num is exist - process it [07:17:25]requested_item shift.opened is exist - process it [07:17:25]req_shift_opened [07:17:25]FM_GetShiftState [07:17:25]SAM_PROTO_GetShiftState [07:17:25]wFMCommunicate request_size=4 [07:17:25]MH_SAM_APDU [07:17:25]CAPDU: 80 13 01 00 [07:17:25]Write to MH i2c: E2 08 00 34 09 80 13 01 00 00 00 00 00 BA [07:17:25]Write i2c OK [07:17:25]MH_I2C_Read... [07:17:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:17:25]Read from MH i2c: E2 [07:17:25]MH_I2C_Read... [07:17:25]Read from MH i2c: E2 0E 00 [07:17:25]MH_I2C_Read... [07:17:25]Read from MH i2c: E2 0E 00 34 09 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 52 [07:17:25]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [07:17:25]wFMCommunicate OK [07:17:25]SAM_PROTO_GetShiftState done [07:17:25]FM_GetShiftState done [07:17:25]req_shift_opened done [07:17:25]requested_item shift.open_date is exist - process it [07:17:25]req_shift_open_date [07:17:25]req_shift_open_date done [07:17:25]produce_requested_data done [07:17:25]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119309,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [07:17:25]process_action_free close_receipt [07:17:25]json_value_free [07:17:25]json_value_free done [07:17:25]process_json_proto returns [07:17:25]Send response to host [07:17:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119309,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [07:17:25]free response buf [07:17:25]execute_script done [07:17:25]execute_script returns [07:17:25]free content buf [07:17:25]Sock 8.Close socket [07:17:25]Sock 8.Thread stoped [07:17:29]OFD Sender: No OFD packet to send [07:17:34]OFD Sender: No OFD packet to send [07:17:39]OFD Sender: No OFD packet to send [07:17:44]OFD Sender: No OFD packet to send [07:17:49]OFD Sender: No OFD packet to send [07:17:54]OFD Sender: No OFD packet to send [07:17:59]OFD Sender: No OFD packet to send [07:18:04]OFD Sender: No OFD packet to send [07:18:09]OFD Sender: No OFD packet to send [07:18:14]OFD Sender: No OFD packet to send [07:18:19]OFD Sender: No OFD packet to send [07:18:24]OFD Sender: No OFD packet to send [07:18:29]OFD Sender: No OFD packet to send [07:18:34]OFD Sender: No OFD packet to send [07:18:39]OFD Sender: No OFD packet to send [07:18:44]OFD Sender: No OFD packet to send [07:18:49]OFD Sender: No OFD packet to send [07:18:54]OFD Sender: No OFD packet to send [07:18:59]OFD Sender: No OFD packet to send [07:19:04]OFD Sender: No OFD packet to send [07:19:09]OFD Sender: No OFD packet to send [07:19:14]OFD Sender: No OFD packet to send [07:19:19]OFD Sender: No OFD packet to send [07:19:24]OFD Sender: No OFD packet to send [07:19:29]OFD Sender: No OFD packet to send [07:19:34]OFD Sender: No OFD packet to send [07:19:39]OFD Sender: No OFD packet to send [07:19:44]OFD Sender: No OFD packet to send [07:19:49]OFD Sender: No OFD packet to send [07:19:54]OFD Sender: No OFD packet to send [07:19:59]OFD Sender: No OFD packet to send [07:20:04]OFD Sender: No OFD packet to send [07:20:09]OFD Sender: No OFD packet to send [07:20:14]OFD Sender: No OFD packet to send [07:20:19]OFD Sender: No OFD packet to send [07:20:24]OFD Sender: No OFD packet to send [07:20:29]OFD Sender: No OFD packet to send [07:20:34]OFD Sender: No OFD packet to send [07:20:39]OFD Sender: No OFD packet to send [07:20:44]OFD Sender: No OFD packet to send [07:20:49]OFD Sender: No OFD packet to send [07:20:54]OFD Sender: No OFD packet to send [07:20:59]OFD Sender: No OFD packet to send [07:21:04]OFD Sender: No OFD packet to send [07:21:09]OFD Sender: No OFD packet to send [07:21:14]OFD Sender: No OFD packet to send [07:21:19]OFD Sender: No OFD packet to send [07:21:24]OFD Sender: No OFD packet to send [07:21:25]accept exits with 9 [07:21:25]New connection [07:21:25]New thread 3067338084 created [07:21:25]Thread 3067194724 joined [07:21:25]Waiting for new connection... [07:21:25] Sock 9.Parse request [07:21:25]Sock 9.Check first char [07:21:25]Sock 9.First char is OK [07:21:25]request: POST /json_proto HTTP/1.0 [07:21:25]Method: POST [07:21:25]URL: /json_proto [07:21:25]Method is POST - this is cgi request [07:21:25]url: /json_proto [07:21:25]query_string will be loaded in cgi processing [07:21:25]execute_cgi json_proto POST (null) [07:21:25]execute_cgi path=json_proto method=POST [07:21:25]POST find Content-Length [07:21:25]Host: 172.17.45.7:8080 [07:21:25]Content-Length: 682 [07:21:25]Content-Type: application/json [07:21:25] [07:21:25]POST finish read [07:21:25]Found Content-Length = 682 [07:21:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:21:25]execute_script... [07:21: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)950235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:21:25]POST & json_proto [07:21:25]process_json_proto [07:21:25]json parsed OK: [07:21:25]protocol is kg_v1.0 [07:21:25]action value=close_receipt [07:21:25]process_action close_receipt [07:21:25]cmd_close_receipt [07:21:25]MH_GetDate [07:21:25]Write to MH i2c: F0 00 00 35 09 2D [07:21:25]Write i2c OK [07:21:25]MH_I2C_Read... [07:21:25]Read from MH i2c: F0 [07:21:25]MH_I2C_Read... [07:21:25]Read from MH i2c: F0 09 00 [07:21:25]MH_I2C_Read... [07:21:25]Read from MH i2c: F0 09 00 35 09 00 F6 E5 A9 66 90 0F 3E 66 63 [07:21:25]GetLastDocTimeStamp 1722410242 [07:21:25]current date 1722410486 [07:21:25]FM_GetShiftState [07:21:25]SAM_PROTO_GetShiftState [07:21:25]wFMCommunicate request_size=4 [07:21:25]MH_SAM_APDU [07:21:25]CAPDU: 80 13 01 00 [07:21:25]Write to MH i2c: E2 08 00 36 09 80 13 01 00 00 00 00 00 BC [07:21:25]Write i2c OK [07:21:25]MH_I2C_Read... [07:21:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:21:25]Read from MH i2c: E2 [07:21:25]MH_I2C_Read... [07:21:25]Read from MH i2c: E2 0E 00 [07:21:25]MH_I2C_Read... [07:21:25]Read from MH i2c: E2 0E 00 36 09 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 54 [07:21:25]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [07:21:25]wFMCommunicate OK [07:21:25]SAM_PROTO_GetShiftState done [07:21:25]FM_GetShiftState done [07:21:25]opened in 1722384637 [07:21:25]opened+sec_in_day 1722471037 [07:21:25]quantity*price = 100005 [07:21:25]sum+1 = 100006 [07:21:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 41 31.07.2024 07:21 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119310 ФПД: 197041883366801 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T072126&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119310&fm=197041883366801&tin=02508201610067®Number=0000000000092660&sum=100000 [07:21:26]StoreToDocumentArchive [07:21:26]shift 436 fd 119310 [07:21:26]save to /storage/0436/doc_00119310 [07:21:26]save last doc name /storage/0436/doc_00119310 to /storage/kkm_last_doc_name [07:21:26]save OK [07:21:26]Clear old archive folders... [07:21:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:21:26]tlvbuf is 00B2F630 [07:21:26]SAM_PROTO_ClearQueue [07:21:26]wFMCommunicate request_size=4 [07:21:26]MH_SAM_APDU [07:21:26]CAPDU: 80 09 00 00 [07:21:26]Write to MH i2c: E2 08 00 43 09 80 09 00 00 00 00 00 00 BE [07:21:26]Write i2c OK [07:21:26]MH_I2C_Read... [07:21:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:21:26]Read from MH i2c: E2 [07:21:26]MH_I2C_Read... [07:21:26]Read from MH i2c: E2 03 00 [07:21:26]MH_I2C_Read... [07:21:26]Read from MH i2c: E2 03 00 43 09 00 90 00 C0 [07:21:26]RAPDU: 90 00 [07:21:26]wFMCommunicate OK [07:21:26]SAM_PROTO_ClearQueue done [07:21:26]KKMCreateOFDPacket [07:21:26]OFDProtocolAddRootSTLVToBuf [07:21:26]FM_MakeSignedData [07:21:26]FM_MakeSignedData [07:21:26]SAM_PROTO_SignData [07:21:26]wFMCommunicate request_size=4 [07:21:26]MH_SAM_APDU [07:21:26]CAPDU: 80 0D 01 02 [07:21:26]Write to MH i2c: E2 08 00 44 09 80 0D 01 02 00 00 00 00 C6 [07:21:26]Write i2c OK [07:21:26]MH_I2C_Read... [07:21:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:21:26]Read from MH i2c: E2 [07:21:26]MH_I2C_Read... [07:21:26]Read from MH i2c: E2 03 00 [07:21:26]MH_I2C_Read... [07:21:26]Read from MH i2c: E2 03 00 44 09 00 90 00 C1 [07:21:26]RAPDU: 90 00 [07:21:26]wFMCommunicate OK [07:21:26]wFMCommunicate request_size=255 [07:21:26]MH_SAM_APDU [07:21:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 29 00 00 00 F4 03 04 00 F6 E5 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0E D2 01 00 35 04 06 00 B3 [07:21:26]Write to MH i2c: E2 02 01 45 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 29 00 00 00 F4 03 04 00 F6 E5 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0E D2 01 00 35 04 06 00 B3 00 00 35 [07:21:26]Write i2c OK [07:21:26]MH_I2C_Read... [07:21:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:21:26]Read from MH i2c: E2 [07:21:26]MH_I2C_Read... [07:21:26]Read from MH i2c: E2 03 00 [07:21:26]MH_I2C_Read... [07:21:26]Read from MH i2c: E2 03 00 45 09 00 90 00 C2 [07:21:26]RAPDU: 90 00 [07:21:26]wFMCommunicate OK [07:21:26]wFMCommunicate request_size=10 [07:21:26]MH_SAM_APDU [07:21:26]CAPDU: 80 0D 02 02 05 35 63 76 C5 91 [07:21:26]Write to MH i2c: E2 0D 00 46 09 80 0D 02 02 05 00 35 63 76 C5 91 00 00 37 [07:21:26]Write i2c OK [07:21:26]MH_I2C_Read... [07:21:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:21:26]Read from MH i2c: E2 [07:21:26]MH_I2C_Read... [07:21:26]Read from MH i2c: E2 03 00 [07:21:26]MH_I2C_Read... [07:21:26]Read from MH i2c: E2 03 00 46 09 00 90 00 C3 [07:21:26]RAPDU: 90 00 [07:21:26]wFMCommunicate OK [07:21:26]wFMCommunicate request_size=4 [07:21:26]MH_SAM_APDU [07:21:26]CAPDU: 80 0D 03 02 [07:21:26]Write to MH i2c: E2 08 00 47 09 80 0D 03 02 00 00 00 00 CB [07:21:26]Write i2c OK [07:21:26]MH_I2C_Read... [07:21:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:21:26]Read from MH i2c: E2 [07:21:26]MH_I2C_Read... [07:21:26]Read from MH i2c: E2 0B 00 [07:21:26]MH_I2C_Read... [07:21:26]Read from MH i2c: E2 0B 00 47 09 00 9C 33 D6 87 B9 21 EC 29 90 00 E7 [07:21:26]RAPDU: 9C 33 D6 87 B9 21 EC 29 90 00 [07:21:26]wFMCommunicate OK [07:21:26]SAM_PROTO_SignData done [07:21:26]FM_MakeSignedData done [07:21:26]CreateOFDProtocolMessage [07:21:26]wFMCommunicate request_size=4 [07:21:26]MH_SAM_APDU [07:21:26]CAPDU: 80 11 00 00 [07:21:26]Write to MH i2c: E2 08 00 48 09 80 11 00 00 00 00 00 00 CB [07:21:26]Write i2c OK [07:21:26]MH_I2C_Read... [07:21:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:21:26]Read from MH i2c: E2 [07:21:26]MH_I2C_Read... [07:21:26]Read from MH i2c: E2 17 00 [07:21:26]MH_I2C_Read... [07:21:26]Read from MH i2c: E2 17 00 48 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 26 [07:21:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:21:26]wFMCommunicate OK [07:21:26]CreateOFDProtocolMessage done [07:21:26]OFDSenderStorePacket 119310 [07:21:26]StoreOFDPacket docnum=119310 [07:21:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 8C 17 07 01 A0 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 29 00 00 00 F4 03 04 00 F6 E5 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0E D2 01 00 35 04 06 00 B3 35 63 76 C5 91 9C 33 D6 87 B9 21 EC 29 [07:21:26]CheckFolder [07:21:26]dirname=/storage/ofd_packets [07:21:26]CheckFolder done [07:21:26]ProducePacketName [07:21:26]name=ofd_packets/00119310 [07:21:26]NVStorageSaveData ofd_packets/00119310 [07:21:26]File name is /storage/ofd_packets/00119310 [07:21:26]Write 301 bytes [07:21:26]NVStorageSaveData done [07:21:26]OFDSenderStorePacket done [07:21:26]KKMCreateOFDPacket done [07:21:26]NVStorageSaveData kkm_last_timestamp [07:21:26]File name is /storage/kkm_last_timestamp [07:21:26]Write 4 bytes [07:21:26]NVStorageSaveData done [07:21:26]ExternCall_PrintAddStr [07:21:26]wPrintStart [07:21:26]Write to MH i2c: 01 00 00 49 09 52 [07:21:26]Write i2c OK [07:21:26]MH_I2C_Read... [07:21:26]Read from MH i2c: 01 [07:21:26]MH_I2C_Read... [07:21:26]Read from MH i2c: 01 07 00 [07:21:26]MH_I2C_Read... [07:21:26]Read from MH i2c: 01 07 00 49 09 00 00 00 00 00 FF 0F 67 [07:21:26]RasterBufferAndPrint [07:21:26]line Счет N : (1)950235 [07:21:26]line ИНН: 02508201610067 [07:21:26]line Контрольно-Кассовый Чек [07:21:26]line ПРОДАЖА [07:21:26]line ТРК (МРК, ГНК) : 41 [07:21:26]line Товар: 2710124130 [07:21:26]line Аи-92-К-4 [07:21:26]line 14.750 * 67.80 [07:21:26]line = 1000.05 [07:21:26]line НДС 12% НСП 1% [07:21:26]line > о реализуемом товаре [07:21:26]line ОКРУГЛЕНИЕ: -0.05 [07:21:26]line ИТОГО: 1000.00 [07:21:26]line Внесено: 1000.00 [07:21:26]line СДАЧА: 0.00 [07:21:26]line НСП 1% : 8.85 [07:21:26]line НДС 12% : 106.20 [07:21:26]line Наличными: 1000.00 [07:21:26]line Безнал.: 0.00 [07:21:26]line Место: АЗС № 134 "Партнер Нефть" [07:21:26]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:21:26]line СНО: Общий режим [07:21:26]line Чек 41 31.07.2024 07:21 [07:21:26]line Смена: 436 ФФД: 1.0 [07:21:26]line ЗНМ: 0300000044 [07:21:26]line РНМ: 0000000000092660 [07:21:26]line Версия ККМ: 001 [07:21:26]line ФМ: 0000000000874939 [07:21:26]line ФД: 119310 [07:21:26]line ФПД: 197041883366801 [07:21:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T072126&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119310&fm=197041883366801&tin=02508201610067®Number=0000000000092660&sum=100000 [07:21:27]OFD Sender: Processing packet 119310 [packets to send 86, broken 85] [07:21:27]ProducePacketName [07:21:27]name=ofd_packets/00119310 [07:21:27]OFD Sender: To server: pG, [07:21:27]CommunicateWithHost lk.salyk.kg:30040 [07:21:27]ConnectInit lk.salyk.kg [07:21:27]written 0, free lines is 4095 [07:21:27]Connected sock=10 [07:21: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 39 33 39 0F 01 00 00 8C 17 07 01 A0 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 29 00 00 00 F4 03 04 00 F6 E5 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0E D2 01 00 35 04 06 00 B3 35 63 76 C5 91 9C 33 D6 87 B9 21 EC 29 [07:21:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 CD A9 47 00 35 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0E D2 01 00 F4 03 04 00 7F 93 A9 66 B6 04 01 00 00 43 1C EE 77 58 1F 42 46 [07:21:27]CommunicateWithHost err = 0 [07:21:27]CheckOFDResponse [07:21:27]1017 (14) - 77093643461234 [07:21:27]1041 (16) - 0000000000874939 [07:21:27]1040 (4) - 119310 [07:21:27]1012 (4) - 31.07.2024 01:29 [07:21:27]1206 (1) - 0 [07:21:27]OFD Sender: Remove packet 119310 [07:21:27]ProducePacketName [07:21:27]name=ofd_packets/00119310 [07:21:27]NVStorageDeleteData [07:21:27]Write to MH i2c: 01 00 00 73 09 7C [07:21:27]Write i2c OK [07:21:27]MH_I2C_Read... [07:21:27]Read from MH i2c: 01 [07:21:27]MH_I2C_Read... [07:21:27]Read from MH i2c: 01 07 00 [07:21:27]MH_I2C_Read... [07:21:27]Read from MH i2c: 01 07 00 73 09 00 00 00 00 00 D6 0C 65 [07:21:27]RasterBufferAndPrint [07:21:27]line [07:21:27]line [07:21:27]line [07:21:27]line [07:21:27]line [07:21:27]written 0, free lines is 3292 [07:21:27]MH_Cut [07:21:27]Write to MH i2c: D1 01 00 7A 09 01 55 [07:21:27]Write i2c OK [07:21:27]MH_I2C_Read... [07:21:27]Read from MH i2c: D1 [07:21:27]MH_I2C_Read... [07:21:27]Read from MH i2c: D1 01 00 [07:21:27]MH_I2C_Read... [07:21:27]Read from MH i2c: D1 01 00 7A 09 00 54 [07:21:27]Write to MH i2c: 01 00 00 7B 09 84 [07:21:27]Write i2c OK [07:21:27]MH_I2C_Read... [07:21:28]OFD Sender: No OFD packet to send [07:21:28]*** Cut start [07:21:28]*** Partial cut [07:21:28]*** CUTSNS_PIN = 1 [07:21:28]*** CUTSNS_PIN = 0 [07:21:28]*** Brake cut motor [07:21:28]Read from MH i2c: 01 [07:21:28]MH_I2C_Read... [07:21:28]*** Stop cut motor [07:21:28]*** Cut end [07:21:28]Read from MH i2c: 01 07 00 [07:21:28]MH_I2C_Read... [07:21:28]Read from MH i2c: 01 07 00 7B 09 00 00 00 00 00 FF 0F 99 [07:21:28]process_action close_receipt done [07:21:28]requested_data is exist [07:21:28]produce_requested_data [07:21:28]requested_item fm.sn is exist - process it [07:21:28]wFMCommunicate request_size=4 [07:21:28]MH_SAM_APDU [07:21:28]CAPDU: 80 11 00 00 [07:21:28]Write to MH i2c: E2 08 00 7C 09 80 11 00 00 00 00 00 00 FF [07:21:28]Write i2c OK [07:21:28]MH_I2C_Read... [07:21:28]Read from MH i2c: E2 [07:21:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:21:28]MH_I2C_Read... [07:21:28]Read from MH i2c: E2 17 00 [07:21:28]MH_I2C_Read... [07:21:28]Read from MH i2c: E2 17 00 7C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5A [07:21:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:21:28]wFMCommunicate OK [07:21:28]requested_item fd.num is exist - process it [07:21:28]SAM_PROTO_GetFieldsCounters [07:21:28]wFMCommunicate request_size=4 [07:21:28]MH_SAM_APDU [07:21:28]CAPDU: 80 13 00 00 [07:21:28]Write to MH i2c: E2 08 00 7D 09 80 13 00 00 00 00 00 00 02 [07:21:28]Write i2c OK [07:21:28]MH_I2C_Read... [07:21:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:21:29]Read from MH i2c: E2 [07:21:29]MH_I2C_Read... [07:21:29]Read from MH i2c: E2 62 00 [07:21:29]MH_I2C_Read... [07:21:29]Read from MH i2c: E2 62 00 7D 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0E D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [07:21: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0E D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:21:29]wFMCommunicate OK [07:21:29]SAM_PROTO_GetFieldsCounters done [07:21:29]requested_item shift.num is exist - process it [07:21:29]requested_item shift.opened is exist - process it [07:21:29]req_shift_opened [07:21:29]FM_GetShiftState [07:21:29]SAM_PROTO_GetShiftState [07:21:29]wFMCommunicate request_size=4 [07:21:29]MH_SAM_APDU [07:21:29]CAPDU: 80 13 01 00 [07:21:29]Write to MH i2c: E2 08 00 7E 09 80 13 01 00 00 00 00 00 04 [07:21:29]Write i2c OK [07:21:29]MH_I2C_Read... [07:21:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:21:29]Read from MH i2c: E2 [07:21:29]MH_I2C_Read... [07:21:29]Read from MH i2c: E2 0E 00 [07:21:29]MH_I2C_Read... [07:21:29]Read from MH i2c: E2 0E 00 7E 09 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 9C [07:21:29]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [07:21:29]wFMCommunicate OK [07:21:29]SAM_PROTO_GetShiftState done [07:21:29]FM_GetShiftState done [07:21:29]req_shift_opened done [07:21:29]requested_item shift.open_date is exist - process it [07:21:29]req_shift_open_date [07:21:29]req_shift_open_date done [07:21:29]produce_requested_data done [07:21:29]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119310,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [07:21:29]process_action_free close_receipt [07:21:29]json_value_free [07:21:29]json_value_free done [07:21:29]process_json_proto returns [07:21:29]Send response to host [07:21:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119310,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [07:21:29]free response buf [07:21:29]execute_script done [07:21:29]execute_script returns [07:21:29]free content buf [07:21:29]Sock 9.Close socket [07:21:29]Sock 9.Thread stoped [07:21:33]OFD Sender: No OFD packet to send [07:21:38]OFD Sender: No OFD packet to send [07:21:43]OFD Sender: No OFD packet to send [07:21:48]OFD Sender: No OFD packet to send [07:21:53]OFD Sender: No OFD packet to send [07:21:58]OFD Sender: No OFD packet to send [07:22:03]OFD Sender: No OFD packet to send [07:22:08]OFD Sender: No OFD packet to send [07:22:13]OFD Sender: No OFD packet to send [07:22:18]OFD Sender: No OFD packet to send [07:22:23]OFD Sender: No OFD packet to send [07:22:28]OFD Sender: No OFD packet to send [07:22:33]OFD Sender: No OFD packet to send [07:22:38]OFD Sender: No OFD packet to send [07:22:42]accept exits with 8 [07:22:42]New connection [07:22:42]New thread 3067194724 created [07:22:42]Thread 3067338084 joined [07:22:42]Waiting for new connection... [07:22:42] Sock 8.Parse request [07:22:42]Sock 8.Check first char [07:22:42]Sock 8.First char is OK [07:22:42]request: POST /json_proto HTTP/1.0 [07:22:42]Method: POST [07:22:42]URL: /json_proto [07:22:42]Method is POST - this is cgi request [07:22:42]url: /json_proto [07:22:42]query_string will be loaded in cgi processing [07:22:42]execute_cgi json_proto POST (null) [07:22:42]execute_cgi path=json_proto method=POST [07:22:42]POST find Content-Length [07:22:42]Host: 172.17.45.7:8080 [07:22:42]Content-Length: 677 [07:22:42]Content-Type: application/json [07:22:42] [07:22:42]POST finish read [07:22:42]Found Content-Length = 677 [07:22:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:22:42]execute_script... [07:22:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:22:42]POST & json_proto [07:22:42]process_json_proto [07:22:42]json parsed OK: [07:22:42]protocol is kg_v1.0 [07:22:42]action value=close_receipt [07:22:42]process_action close_receipt [07:22:42]cmd_close_receipt [07:22:42]MH_GetDate [07:22:42]Write to MH i2c: F0 00 00 7F 09 77 [07:22:42]Write i2c OK [07:22:42]MH_I2C_Read... [07:22:42]Read from MH i2c: F0 [07:22:42]MH_I2C_Read... [07:22:42]Read from MH i2c: F0 09 00 [07:22:42]MH_I2C_Read... [07:22:42]Read from MH i2c: F0 09 00 7F 09 00 43 E6 A9 66 90 0F 3E 66 FB [07:22:42]GetLastDocTimeStamp 1722410486 [07:22:42]current date 1722410563 [07:22:42]FM_GetShiftState [07:22:42]SAM_PROTO_GetShiftState [07:22:42]wFMCommunicate request_size=4 [07:22:42]MH_SAM_APDU [07:22:42]CAPDU: 80 13 01 00 [07:22:42]Write to MH i2c: E2 08 00 80 09 80 13 01 00 00 00 00 00 06 [07:22:42]Write i2c OK [07:22:42]MH_I2C_Read... [07:22:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:22:42]Read from MH i2c: E2 [07:22:42]MH_I2C_Read... [07:22:42]Read from MH i2c: E2 0E 00 [07:22:42]MH_I2C_Read... [07:22:42]Read from MH i2c: E2 0E 00 80 09 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 9E [07:22:42]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [07:22:42]wFMCommunicate OK [07:22:42]SAM_PROTO_GetShiftState done [07:22:42]FM_GetShiftState done [07:22:42]opened in 1722384637 [07:22:42]opened+sec_in_day 1722471037 [07:22:42]quantity*price = 40002 [07:22:42]sum+1 = 40003 [07:22:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 42 31.07.2024 07:22 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119311 ФПД: 115032404690242 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T072243&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119311&fm=115032404690242&tin=02508201610067®Number=0000000000092660&sum=40000 [07:22:43]StoreToDocumentArchive [07:22:43]shift 436 fd 119311 [07:22:43]save to /storage/0436/doc_00119311 [07:22:43]save last doc name /storage/0436/doc_00119311 to /storage/kkm_last_doc_name [07:22:43]save OK [07:22:43]Clear old archive folders... [07:22:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:22:43]tlvbuf is 00AF5070 [07:22:43]SAM_PROTO_ClearQueue [07:22:43]wFMCommunicate request_size=4 [07:22:43]MH_SAM_APDU [07:22:43]CAPDU: 80 09 00 00 [07:22:43]Write to MH i2c: E2 08 00 8D 09 80 09 00 00 00 00 00 00 08 [07:22:43]Write i2c OK [07:22:43]MH_I2C_Read... [07:22:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:22:43]Read from MH i2c: E2 [07:22:43]MH_I2C_Read... [07:22:43]Read from MH i2c: E2 03 00 [07:22:43]MH_I2C_Read... [07:22:43]Read from MH i2c: E2 03 00 8D 09 00 90 00 0A [07:22:43]RAPDU: 90 00 [07:22:43]wFMCommunicate OK [07:22:43]SAM_PROTO_ClearQueue done [07:22:43]KKMCreateOFDPacket [07:22:43]OFDProtocolAddRootSTLVToBuf [07:22:43]FM_MakeSignedData [07:22:43]FM_MakeSignedData [07:22:43]SAM_PROTO_SignData [07:22:43]wFMCommunicate request_size=4 [07:22:43]MH_SAM_APDU [07:22:43]CAPDU: 80 0D 01 02 [07:22:43]Write to MH i2c: E2 08 00 8E 09 80 0D 01 02 00 00 00 00 10 [07:22:43]Write i2c OK [07:22:43]MH_I2C_Read... [07:22:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:22:43]Read from MH i2c: E2 [07:22:43]MH_I2C_Read... [07:22:43]Read from MH i2c: E2 03 00 [07:22:43]MH_I2C_Read... [07:22:43]Read from MH i2c: E2 03 00 8E 09 00 90 00 0B [07:22:43]RAPDU: 90 00 [07:22:43]wFMCommunicate OK [07:22:43]wFMCommunicate request_size=255 [07:22:43]MH_SAM_APDU [07:22:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 2A 00 00 00 F4 03 04 00 43 E6 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0F D2 01 00 35 04 06 00 68 [07:22:43]Write to MH i2c: E2 02 01 8F 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 2A 00 00 00 F4 03 04 00 43 E6 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0F D2 01 00 35 04 06 00 68 00 00 DA [07:22:43]Write i2c OK [07:22:43]MH_I2C_Read... [07:22:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:22:43]Read from MH i2c: E2 [07:22:43]MH_I2C_Read... [07:22:43]Read from MH i2c: E2 03 00 [07:22:43]MH_I2C_Read... [07:22:43]Read from MH i2c: E2 03 00 8F 09 00 90 00 0C [07:22:43]RAPDU: 90 00 [07:22:43]wFMCommunicate OK [07:22:43]wFMCommunicate request_size=10 [07:22:43]MH_SAM_APDU [07:22:43]CAPDU: 80 0D 02 02 05 9F 11 9E 85 42 [07:22:43]Write to MH i2c: E2 0D 00 90 09 80 0D 02 02 05 00 9F 11 9E 85 42 00 00 32 [07:22:43]Write i2c OK [07:22:43]MH_I2C_Read... [07:22:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:22:43]Read from MH i2c: E2 [07:22:43]MH_I2C_Read... [07:22:43]Read from MH i2c: E2 03 00 [07:22:43]MH_I2C_Read... [07:22:43]Read from MH i2c: E2 03 00 90 09 00 90 00 0D [07:22:43]RAPDU: 90 00 [07:22:43]wFMCommunicate OK [07:22:43]wFMCommunicate request_size=4 [07:22:43]MH_SAM_APDU [07:22:43]CAPDU: 80 0D 03 02 [07:22:43]Write to MH i2c: E2 08 00 91 09 80 0D 03 02 00 00 00 00 15 [07:22:43]Write i2c OK [07:22:43]MH_I2C_Read... [07:22:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:22:43]Read from MH i2c: E2 [07:22:43]MH_I2C_Read... [07:22:43]Read from MH i2c: E2 0B 00 [07:22:43]MH_I2C_Read... [07:22:43]Read from MH i2c: E2 0B 00 91 09 00 3F 74 0A BC 2B 07 8D 95 90 00 E3 [07:22:43]RAPDU: 3F 74 0A BC 2B 07 8D 95 90 00 [07:22:43]wFMCommunicate OK [07:22:43]SAM_PROTO_SignData done [07:22:43]FM_MakeSignedData done [07:22:43]CreateOFDProtocolMessage [07:22:43]wFMCommunicate request_size=4 [07:22:43]MH_SAM_APDU [07:22:43]CAPDU: 80 11 00 00 [07:22:43]Write to MH i2c: E2 08 00 92 09 80 11 00 00 00 00 00 00 15 [07:22:43]Write i2c OK [07:22:43]MH_I2C_Read... [07:22:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:22:43]Read from MH i2c: E2 [07:22:43]MH_I2C_Read... [07:22:43]Read from MH i2c: E2 17 00 [07:22:43]MH_I2C_Read... [07:22:43]Read from MH i2c: E2 17 00 92 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 70 [07:22:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:22:43]wFMCommunicate OK [07:22:43]CreateOFDProtocolMessage done [07:22:43]OFDSenderStorePacket 119311 [07:22:43]StoreOFDPacket docnum=119311 [07:22:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 51 05 07 01 44 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 2A 00 00 00 F4 03 04 00 43 E6 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0F D2 01 00 35 04 06 00 68 9F 11 9E 85 42 3F 74 0A BC 2B 07 8D 95 [07:22:43]CheckFolder [07:22:43]dirname=/storage/ofd_packets [07:22:43]CheckFolder done [07:22:43]ProducePacketName [07:22:43]name=ofd_packets/00119311 [07:22:43]NVStorageSaveData ofd_packets/00119311 [07:22:43]File name is /storage/ofd_packets/00119311 [07:22:43]Write 301 bytes [07:22:43]NVStorageSaveData done [07:22:43]OFDSenderStorePacket done [07:22:43]KKMCreateOFDPacket done [07:22:43]NVStorageSaveData kkm_last_timestamp [07:22:43]File name is /storage/kkm_last_timestamp [07:22:43]Write 4 bytes [07:22:43]NVStorageSaveData done [07:22:43]ExternCall_PrintAddStr [07:22:43]wPrintStart [07:22:43]Write to MH i2c: 01 00 00 93 09 9C [07:22:43]Write i2c OK [07:22:43]MH_I2C_Read... [07:22:43]Read from MH i2c: 01 [07:22:43]MH_I2C_Read... [07:22:43]Read from MH i2c: 01 07 00 [07:22:43]MH_I2C_Read... [07:22:43]Read from MH i2c: 01 07 00 93 09 00 00 00 00 00 FF 0F B1 [07:22:43]RasterBufferAndPrint [07:22:43]line Счет N : (1)950236 [07:22:43]line ИНН: 02508201610067 [07:22:43]line Контрольно-Кассовый Чек [07:22:43]line ПРОДАЖА [07:22:43]line ТРК (МРК, ГНК) : 31 [07:22:43]line Товар: 2710124130 [07:22:43]line Аи-92-К-4 [07:22:43]line 5.900 * 67.80 [07:22:43]line = 400.02 [07:22:43]line НДС 12% НСП 1% [07:22:43]line > о реализуемом товаре [07:22:43]line ОКРУГЛЕНИЕ: -0.02 [07:22:43]line ИТОГО: 400.00 [07:22:43]line Внесено: 400.00 [07:22:43]line СДАЧА: 0.00 [07:22:43]line НСП 1% : 3.54 [07:22:43]line НДС 12% : 42.48 [07:22:43]line Наличными: 400.00 [07:22:43]line Безнал.: 0.00 [07:22:43]line Место: АЗС № 134 "Партнер Нефть" [07:22:43]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:22:43]line СНО: Общий режим [07:22:43]line Чек 42 31.07.2024 07:22 [07:22:43]line Смена: 436 ФФД: 1.0 [07:22:43]line ЗНМ: 0300000044 [07:22:43]line РНМ: 0000000000092660 [07:22:43]line Версия ККМ: 001 [07:22:43]line ФМ: 0000000000874939 [07:22:43]line ФД: 119311 [07:22:43]line ФПД: 115032404690242 [07:22:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T072243&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119311&fm=115032404690242&tin=02508201610067®Number=0000000000092660&sum=40000 [07:22:43]written 0, free lines is 4095 [07:22:43]OFD Sender: Processing packet 119311 [packets to send 86, broken 85] [07:22:43]ProducePacketName [07:22:43]name=ofd_packets/00119311 [07:22:43]OFD Sender: To server: pG, [07:22:43]CommunicateWithHost lk.salyk.kg:30040 [07:22:43]ConnectInit lk.salyk.kg [07:22:44]Connected sock=10 [07:22: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 39 33 39 0F 01 00 00 51 05 07 01 44 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 2A 00 00 00 F4 03 04 00 43 E6 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0F D2 01 00 35 04 06 00 68 9F 11 9E 85 42 3F 74 0A BC 2B 07 8D 95 [07: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 39 33 39 4F 00 00 00 36 64 47 00 37 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0F D2 01 00 F4 03 04 00 CC 93 A9 66 B6 04 01 00 00 D9 D7 E2 19 E8 26 51 B3 [07:22:44]CommunicateWithHost err = 0 [07:22:44]CheckOFDResponse [07:22:44]1017 (14) - 77093643461234 [07:22:44]1041 (16) - 0000000000874939 [07:22:44]1040 (4) - 119311 [07:22:44]1012 (4) - 31.07.2024 01:30 [07:22:44]1206 (1) - 0 [07:22:44]OFD Sender: Remove packet 119311 [07:22:44]ProducePacketName [07:22:44]name=ofd_packets/00119311 [07:22:44]NVStorageDeleteData [07:22:44]Write to MH i2c: 01 00 00 BD 09 C6 [07:22:44]Write i2c OK [07:22:44]MH_I2C_Read... [07:22:44]Read from MH i2c: 01 [07:22:44]MH_I2C_Read... [07:22:44]Read from MH i2c: 01 07 00 [07:22:44]MH_I2C_Read... [07:22:44]Read from MH i2c: 01 07 00 BD 09 00 00 00 00 00 D1 0C AA [07:22:44]RasterBufferAndPrint [07:22:44]line [07:22:44]line [07:22:44]line [07:22:44]line [07:22:44]line [07:22:44]written 0, free lines is 3288 [07:22:44]MH_Cut [07:22:44]Write to MH i2c: D1 01 00 C4 09 01 9F [07:22:44]Write i2c OK [07:22:44]MH_I2C_Read... [07:22:44]Read from MH i2c: D1 [07:22:44]MH_I2C_Read... [07:22:44]Read from MH i2c: D1 01 00 [07:22:44]MH_I2C_Read... [07:22:44]Read from MH i2c: D1 01 00 C4 09 00 9E [07:22:44]Write to MH i2c: 01 00 00 C5 09 CE [07:22:44]Write i2c OK [07:22:44]MH_I2C_Read... [07:22:44]OFD Sender: No OFD packet to send [07:22:45]*** Cut start [07:22:45]*** Partial cut [07:22:45]*** CUTSNS_PIN = 1 [07:22:45]*** CUTSNS_PIN = 0 [07:22:45]*** Brake cut motor [07:22:45]Read from MH i2c: 01 [07:22:45]MH_I2C_Read... [07:22:45]*** Stop cut motor [07:22:45]*** Cut end [07:22:45]Read from MH i2c: 01 07 00 [07:22:45]MH_I2C_Read... [07:22:45]Read from MH i2c: 01 07 00 C5 09 00 00 00 00 00 FF 0F E3 [07:22:45]process_action close_receipt done [07:22:45]requested_data is exist [07:22:45]produce_requested_data [07:22:45]requested_item fm.sn is exist - process it [07:22:45]wFMCommunicate request_size=4 [07:22:45]MH_SAM_APDU [07:22:45]CAPDU: 80 11 00 00 [07:22:45]Write to MH i2c: E2 08 00 C6 09 80 11 00 00 00 00 00 00 49 [07:22:45]Write i2c OK [07:22:45]MH_I2C_Read... [07:22:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:22:45]Read from MH i2c: E2 [07:22:45]MH_I2C_Read... [07:22:45]Read from MH i2c: E2 17 00 [07:22:45]MH_I2C_Read... [07:22:45]Read from MH i2c: E2 17 00 C6 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A4 [07:22:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:22:45]wFMCommunicate OK [07:22:45]requested_item fd.num is exist - process it [07:22:45]SAM_PROTO_GetFieldsCounters [07:22:45]wFMCommunicate request_size=4 [07:22:45]MH_SAM_APDU [07:22:45]CAPDU: 80 13 00 00 [07:22:45]Write to MH i2c: E2 08 00 C7 09 80 13 00 00 00 00 00 00 4C [07:22:45]Write i2c OK [07:22:45]MH_I2C_Read... [07:22:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:22:45]Read from MH i2c: E2 [07:22:45]MH_I2C_Read... [07:22:45]Read from MH i2c: E2 62 00 [07:22:45]MH_I2C_Read... [07:22:45]Read from MH i2c: E2 62 00 C7 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0F D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [07:22: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0F D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:22:45]wFMCommunicate OK [07:22:45]SAM_PROTO_GetFieldsCounters done [07:22:45]requested_item shift.num is exist - process it [07:22:45]requested_item shift.opened is exist - process it [07:22:45]req_shift_opened [07:22:45]FM_GetShiftState [07:22:45]SAM_PROTO_GetShiftState [07:22:45]wFMCommunicate request_size=4 [07:22:45]MH_SAM_APDU [07:22:45]CAPDU: 80 13 01 00 [07:22:45]Write to MH i2c: E2 08 00 C8 09 80 13 01 00 00 00 00 00 4E [07:22:45]Write i2c OK [07:22:45]MH_I2C_Read... [07:22:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:22:45]Read from MH i2c: E2 [07:22:45]MH_I2C_Read... [07:22:45]Read from MH i2c: E2 0E 00 [07:22:45]MH_I2C_Read... [07:22:45]Read from MH i2c: E2 0E 00 C8 09 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 E6 [07:22:45]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [07:22:45]wFMCommunicate OK [07:22:45]SAM_PROTO_GetShiftState done [07:22:45]FM_GetShiftState done [07:22:45]req_shift_opened done [07:22:45]requested_item shift.open_date is exist - process it [07:22:45]req_shift_open_date [07:22:45]req_shift_open_date done [07:22:45]produce_requested_data done [07:22:45]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119311,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [07:22:45]process_action_free close_receipt [07:22:45]json_value_free [07:22:45]json_value_free done [07:22:45]process_json_proto returns [07:22:45]Send response to host [07:22:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119311,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [07:22:45]free response buf [07:22:45]execute_script done [07:22:45]execute_script returns [07:22:45]free content buf [07:22:45]Sock 8.Close socket [07:22:45]Sock 8.Thread stoped [07:22:49]OFD Sender: No OFD packet to send [07:22:54]OFD Sender: No OFD packet to send [07:22:59]OFD Sender: No OFD packet to send [07:23:04]OFD Sender: No OFD packet to send [07:23:09]OFD Sender: No OFD packet to send [07:23:14]OFD Sender: No OFD packet to send [07:23:19]OFD Sender: No OFD packet to send [07:23:24]OFD Sender: No OFD packet to send [07:23:29]OFD Sender: No OFD packet to send [07:23:34]OFD Sender: No OFD packet to send [07:23:39]OFD Sender: No OFD packet to send [07:23:44]OFD Sender: No OFD packet to send [07:23:49]OFD Sender: No OFD packet to send [07:23:54]OFD Sender: No OFD packet to send [07:23:59]OFD Sender: No OFD packet to send [07:24:04]OFD Sender: No OFD packet to send [07:24:09]OFD Sender: No OFD packet to send [07:24:14]OFD Sender: No OFD packet to send [07:24:19]OFD Sender: No OFD packet to send [07:24:24]OFD Sender: No OFD packet to send [07:24:29]OFD Sender: No OFD packet to send [07:24:34]OFD Sender: No OFD packet to send [07:24:39]OFD Sender: No OFD packet to send [07:24:44]OFD Sender: No OFD packet to send [07:24:49]OFD Sender: No OFD packet to send [07:24:54]OFD Sender: No OFD packet to send [07:24:59]OFD Sender: No OFD packet to send [07:25:04]OFD Sender: No OFD packet to send [07:25:09]OFD Sender: No OFD packet to send [07:25:14]OFD Sender: No OFD packet to send [07:25:19]OFD Sender: No OFD packet to send [07:25:24]OFD Sender: No OFD packet to send [07:25:29]OFD Sender: No OFD packet to send [07:25:34]OFD Sender: No OFD packet to send [07:25:39]OFD Sender: No OFD packet to send [07:25:44]OFD Sender: No OFD packet to send [07:25:49]OFD Sender: No OFD packet to send [07:25:54]OFD Sender: No OFD packet to send [07:25:59]OFD Sender: No OFD packet to send [07:26:04]OFD Sender: No OFD packet to send [07:26:09]OFD Sender: No OFD packet to send [07:26:14]OFD Sender: No OFD packet to send [07:26:19]OFD Sender: No OFD packet to send [07:26:24]OFD Sender: No OFD packet to send [07:26:29]OFD Sender: No OFD packet to send [07:26:34]OFD Sender: No OFD packet to send [07:26:39]OFD Sender: No OFD packet to send [07:26:45]OFD Sender: No OFD packet to send [07:26:50]OFD Sender: No OFD packet to send [07:26:55]OFD Sender: No OFD packet to send [07:27:00]OFD Sender: No OFD packet to send [07:27:05]OFD Sender: No OFD packet to send [07:27:10]OFD Sender: No OFD packet to send [07:27:15]OFD Sender: No OFD packet to send [07:27:20]OFD Sender: No OFD packet to send [07:27:25]OFD Sender: No OFD packet to send [07:27:30]OFD Sender: No OFD packet to send [07:27:35]OFD Sender: No OFD packet to send [07:27:40]OFD Sender: No OFD packet to send [07:27:45]OFD Sender: No OFD packet to send [07:27:50]OFD Sender: No OFD packet to send [07:27:55]OFD Sender: No OFD packet to send [07:28:00]OFD Sender: No OFD packet to send [07:28:05]OFD Sender: No OFD packet to send [07:28:10]OFD Sender: No OFD packet to send [07:28:15]OFD Sender: No OFD packet to send [07:28:20]OFD Sender: No OFD packet to send [07:28:25]OFD Sender: No OFD packet to send [07:28:30]OFD Sender: No OFD packet to send [07:28:35]OFD Sender: No OFD packet to send [07:28:40]OFD Sender: No OFD packet to send [07:28:45]OFD Sender: No OFD packet to send [07:28:50]OFD Sender: No OFD packet to send [07:28:55]OFD Sender: No OFD packet to send [07:29:00]OFD Sender: No OFD packet to send [07:29:05]OFD Sender: No OFD packet to send [07:29:10]OFD Sender: No OFD packet to send [07:29:15]OFD Sender: No OFD packet to send [07:29:20]OFD Sender: No OFD packet to send [07:29:25]OFD Sender: No OFD packet to send [07:29:30]OFD Sender: No OFD packet to send [07:29:35]OFD Sender: No OFD packet to send [07:29:40]OFD Sender: No OFD packet to send [07:29:45]OFD Sender: No OFD packet to send [07:29:50]OFD Sender: No OFD packet to send [07:29:55]OFD Sender: No OFD packet to send [07:30:00]OFD Sender: No OFD packet to send [07:30:05]OFD Sender: No OFD packet to send [07:30:10]OFD Sender: No OFD packet to send [07:30:15]OFD Sender: No OFD packet to send [07:30:20]OFD Sender: No OFD packet to send [07:30:25]OFD Sender: No OFD packet to send [07:30:30]OFD Sender: No OFD packet to send [07:30:35]OFD Sender: No OFD packet to send [07:30:40]OFD Sender: No OFD packet to send [07:30:45]OFD Sender: No OFD packet to send [07:30:50]OFD Sender: No OFD packet to send [07:30:53]accept exits with 9 [07:30:53]New connection [07:30:53]New thread 3067338084 created [07:30:53]Thread 3067194724 joined [07:30:53]Waiting for new connection... [07:30:53] Sock 9.Parse request [07:30:53]Sock 9.Check first char [07:30:53]Sock 9.First char is OK [07:30:53]request: POST /json_proto HTTP/1.0 [07:30:53]Method: POST [07:30:53]URL: /json_proto [07:30:53]Method is POST - this is cgi request [07:30:53]url: /json_proto [07:30:53]query_string will be loaded in cgi processing [07:30:53]execute_cgi json_proto POST (null) [07:30:53]execute_cgi path=json_proto method=POST [07:30:53]POST find Content-Length [07:30:53]Host: 172.17.45.7:8080 [07:30:53]Content-Length: 819 [07:30:53]Content-Type: application/json [07:30:53] [07:30:53]POST finish read [07:30:53]Found Content-Length = 819 [07:30:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 34.130, "sum" : 2600.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2600.00, "payments": [ { "type": 1, "sum" : 2600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:30:53]execute_script... [07:30:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 34.130, "sum" : 2600.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2600.00, "payments": [ { "type": 1, "sum" : 2600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:30:53]POST & json_proto [07:30:53]process_json_proto [07:30:53]json parsed OK: [07:30:53]protocol is kg_v1.0 [07:30:53]action value=close_receipt [07:30:53]process_action close_receipt [07:30:53]cmd_close_receipt [07:30:53]MH_GetDate [07:30:53]Write to MH i2c: F0 00 00 C9 09 C1 [07:30:53]Write i2c OK [07:30:53]MH_I2C_Read... [07:30:53]Read from MH i2c: F0 [07:30:53]MH_I2C_Read... [07:30:53]Read from MH i2c: F0 09 00 [07:30:53]MH_I2C_Read... [07:30:53]Read from MH i2c: F0 09 00 C9 09 00 2E E8 A9 66 90 0F 3E 66 32 [07:30:53]GetLastDocTimeStamp 1722410563 [07:30:53]current date 1722411054 [07:30:53]FM_GetShiftState [07:30:53]SAM_PROTO_GetShiftState [07:30:53]wFMCommunicate request_size=4 [07:30:53]MH_SAM_APDU [07:30:53]CAPDU: 80 13 01 00 [07:30:53]Write to MH i2c: E2 08 00 CA 09 80 13 01 00 00 00 00 00 50 [07:30:53]Write i2c OK [07:30:53]MH_I2C_Read... [07:30:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:30:53]Read from MH i2c: E2 [07:30:53]MH_I2C_Read... [07:30:53]Read from MH i2c: E2 0E 00 [07:30:53]MH_I2C_Read... [07:30:53]Read from MH i2c: E2 0E 00 CA 09 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 E8 [07:30:53]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [07:30:53]wFMCommunicate OK [07:30:53]SAM_PROTO_GetShiftState done [07:30:53]FM_GetShiftState done [07:30:53]opened in 1722384637 [07:30:53]opened+sec_in_day 1722471037 [07:30:53]quantity*price = 260070 [07:30:53]sum+1 = 260072 [07:30:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 2600.00 НСП 1% : 23.01 НДС 12% : 276.18 Наличными: 0.00 Безнал.: 2600.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 43 31.07.2024 07:30 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119312 ФПД: 260594598167343 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T073054&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119312&fm=260594598167343&tin=02508201610067®Number=0000000000092660&sum=260000 [07:30:54]StoreToDocumentArchive [07:30:54]shift 436 fd 119312 [07:30:54]save to /storage/0436/doc_00119312 [07:30:54]save last doc name /storage/0436/doc_00119312 to /storage/kkm_last_doc_name [07:30:54]save OK [07:30:54]Clear old archive folders... [07:30:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:30:54]tlvbuf is 00B22970 [07:30:54]SAM_PROTO_ClearQueue [07:30:54]wFMCommunicate request_size=4 [07:30:54]MH_SAM_APDU [07:30:54]CAPDU: 80 09 00 00 [07:30:54]Write to MH i2c: E2 08 00 D7 09 80 09 00 00 00 00 00 00 52 [07:30:54]Write i2c OK [07:30:54]MH_I2C_Read... [07:30:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:30:54]Read from MH i2c: E2 [07:30:54]MH_I2C_Read... [07:30:54]Read from MH i2c: E2 03 00 [07:30:54]MH_I2C_Read... [07:30:54]Read from MH i2c: E2 03 00 D7 09 00 90 00 54 [07:30:54]RAPDU: 90 00 [07:30:54]wFMCommunicate OK [07:30:54]SAM_PROTO_ClearQueue done [07:30:54]KKMCreateOFDPacket [07:30:54]OFDProtocolAddRootSTLVToBuf [07:30:54]FM_MakeSignedData [07:30:54]FM_MakeSignedData [07:30:54]SAM_PROTO_SignData [07:30:54]wFMCommunicate request_size=4 [07:30:54]MH_SAM_APDU [07:30:54]CAPDU: 80 0D 01 02 [07:30:54]Write to MH i2c: E2 08 00 D8 09 80 0D 01 02 00 00 00 00 5A [07:30:54]Write i2c OK [07:30:54]MH_I2C_Read... [07:30:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:30:54]Read from MH i2c: E2 [07:30:54]MH_I2C_Read... [07:30:54]Read from MH i2c: E2 03 00 [07:30:54]MH_I2C_Read... [07:30:54]Read from MH i2c: E2 03 00 D8 09 00 90 00 55 [07:30:54]RAPDU: 90 00 [07:30:54]wFMCommunicate OK [07:30:54]wFMCommunicate request_size=255 [07:30:54]MH_SAM_APDU [07:30:54]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 52 85 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E7 F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 6B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 F7 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 2E E8 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 10 D2 01 00 35 04 06 00 ED 02 68 74 [07:30:54]Write to MH i2c: E2 02 01 D9 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 52 85 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E7 F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 6B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 F7 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 2E E8 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 10 D2 01 00 35 04 06 00 ED 02 68 74 00 00 94 [07:30:54]Write i2c OK [07:30:54]MH_I2C_Read... [07:30:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:30:54]Read from MH i2c: E2 [07:30:54]MH_I2C_Read... [07:30:54]Read from MH i2c: E2 03 00 [07:30:54]MH_I2C_Read... [07:30:54]Read from MH i2c: E2 03 00 D9 09 00 90 00 56 [07:30:54]RAPDU: 90 00 [07:30:54]wFMCommunicate OK [07:30:54]wFMCommunicate request_size=7 [07:30:54]MH_SAM_APDU [07:30:54]CAPDU: 80 0D 02 02 02 43 2F [07:30:54]Write to MH i2c: E2 0A 00 DA 09 80 0D 02 02 02 00 43 2F 00 00 D3 [07:30:54]Write i2c OK [07:30:54]MH_I2C_Read... [07:30:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:30:54]Read from MH i2c: E2 [07:30:54]MH_I2C_Read... [07:30:54]Read from MH i2c: E2 03 00 [07:30:54]MH_I2C_Read... [07:30:54]Read from MH i2c: E2 03 00 DA 09 00 90 00 57 [07:30:54]RAPDU: 90 00 [07:30:54]wFMCommunicate OK [07:30:54]wFMCommunicate request_size=4 [07:30:54]MH_SAM_APDU [07:30:54]CAPDU: 80 0D 03 02 [07:30:54]Write to MH i2c: E2 08 00 DB 09 80 0D 03 02 00 00 00 00 5F [07:30:54]Write i2c OK [07:30:54]MH_I2C_Read... [07:30:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:30:54]Read from MH i2c: E2 [07:30:54]MH_I2C_Read... [07:30:54]Read from MH i2c: E2 0B 00 [07:30:54]MH_I2C_Read... [07:30:54]Read from MH i2c: E2 0B 00 DB 09 00 E9 B1 5D 19 4E BE 7F 2D 90 00 28 [07:30:54]RAPDU: E9 B1 5D 19 4E BE 7F 2D 90 00 [07:30:54]wFMCommunicate OK [07:30:54]SAM_PROTO_SignData done [07:30:54]FM_MakeSignedData done [07:30:54]CreateOFDProtocolMessage [07:30:54]wFMCommunicate request_size=4 [07:30:54]MH_SAM_APDU [07:30:54]CAPDU: 80 11 00 00 [07:30:54]Write to MH i2c: E2 08 00 DC 09 80 11 00 00 00 00 00 00 5F [07:30:54]Write i2c OK [07:30:54]MH_I2C_Read... [07:30:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:30:54]Read from MH i2c: E2 [07:30:54]MH_I2C_Read... [07:30:54]Read from MH i2c: E2 17 00 [07:30:54]MH_I2C_Read... [07:30:54]Read from MH i2c: E2 17 00 DC 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BA [07:30:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:30:54]wFMCommunicate OK [07:30:54]CreateOFDProtocolMessage done [07:30:54]OFDSenderStorePacket 119312 [07:30:54]StoreOFDPacket docnum=119312 [07:30:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 6B F9 04 01 7A 0A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 52 85 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E7 F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 6B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 F7 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 2E E8 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 10 D2 01 00 35 04 06 00 ED 02 68 74 43 2F E9 B1 5D 19 4E BE 7F 2D [07:30:54]CheckFolder [07:30:54]dirname=/storage/ofd_packets [07:30:54]CheckFolder done [07:30:54]ProducePacketName [07:30:54]name=ofd_packets/00119312 [07:30:54]NVStorageSaveData ofd_packets/00119312 [07:30:54]File name is /storage/ofd_packets/00119312 [07:30:54]Write 298 bytes [07:30:54]NVStorageSaveData done [07:30:54]OFDSenderStorePacket done [07:30:54]KKMCreateOFDPacket done [07:30:54]NVStorageSaveData kkm_last_timestamp [07:30:54]File name is /storage/kkm_last_timestamp [07:30:54]Write 4 bytes [07:30:54]NVStorageSaveData done [07:30:54]ExternCall_PrintAddStr [07:30:54]wPrintStart [07:30:54]Write to MH i2c: 01 00 00 DD 09 E6 [07:30:54]Write i2c OK [07:30:54]MH_I2C_Read... [07:30:54]Read from MH i2c: 01 [07:30:54]MH_I2C_Read... [07:30:54]Read from MH i2c: 01 07 00 [07:30:54]MH_I2C_Read... [07:30:54]Read from MH i2c: 01 07 00 DD 09 00 00 00 00 00 FF 0F FB [07:30:54]RasterBufferAndPrint [07:30:54]line Счет N : (1)950237 [07:30:54]line ИНН: 02508201610067 [07:30:54]line Контрольно-Кассовый Чек [07:30:54]line ПРОДАЖА [07:30:54]line ТРК (МРК, ГНК) : 11 [07:30:54]line Товар: 2710194800 [07:30:54]line ДТ-К-5 [07:30:54]line 34.130 * 76.20 [07:30:54]line = 2600.71 [07:30:54]line НДС 12% НСП 1% [07:30:54]line > о реализуемом товаре [07:30:54]line ОКРУГЛЕНИЕ: -0.71 [07:30:54]line ИТОГО: 2600.00 [07:30:54]line НСП 1% : 23.01 [07:30:54]line НДС 12% : 276.18 [07:30:54]line Наличными: 0.00 [07:30:54]line Безнал.: 2600.00 [07:30:54]line Место: АЗС № 134 "Партнер Нефть" [07:30:54]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:30:54]line СНО: Общий режим [07:30:54]line Чек 43 31.07.2024 07:30 [07:30:54]line Смена: 436 ФФД: 1.0 [07:30:54]line ЗНМ: 0300000044 [07:30:54]line РНМ: 0000000000092660 [07:30:54]line Версия ККМ: 001 [07:30:54]line Платежная система: O! деньги [07:30:54]line ФМ: 0000000000874939 [07:30:54]line ФД: 119312 [07:30:54]line ФПД: 260594598167343 [07:30:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T073054&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119312&fm=260594598167343&tin=02508201610067®Number=0000000000092660&sum=260000 [07:30:55]OFD Sender: Processing packet 119312 [packets to send 86, broken 85] [07:30:55]ProducePacketName [07:30:55]name=ofd_packets/00119312 [07:30:55]OFD Sender: To server: pG, [07:30:55]CommunicateWithHost lk.salyk.kg:30040 [07:30:55]ConnectInit lk.salyk.kg [07:30:55]written 0, free lines is 4095 [07:30:55]Connected sock=10 [07:30:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 6B F9 04 01 7A 0A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 52 85 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E7 F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 6B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 F7 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 2E E8 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 10 D2 01 00 35 04 06 00 ED 02 68 74 43 2F E9 B1 5D 19 4E BE 7F 2D [07:30:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 9E DE 47 00 50 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 10 D2 01 00 F4 03 04 00 B7 95 A9 66 B6 04 01 00 00 68 67 E4 65 DB 3D D0 24 [07:30:55]CommunicateWithHost err = 0 [07:30:55]CheckOFDResponse [07:30:55]1017 (14) - 77093643461234 [07:30:55]1041 (16) - 0000000000874939 [07:30:55]1040 (4) - 119312 [07:30:55]1012 (4) - 31.07.2024 01:39 [07:30:55]1206 (1) - 0 [07:30:55]OFD Sender: Remove packet 119312 [07:30:55]ProducePacketName [07:30:55]name=ofd_packets/00119312 [07:30:55]NVStorageDeleteData [07:30:55]Write to MH i2c: 01 00 00 07 0A 11 [07:30:55]Write i2c OK [07:30:55]MH_I2C_Read... [07:30:55]Read from MH i2c: 01 [07:30:55]MH_I2C_Read... [07:30:55]Read from MH i2c: 01 07 00 [07:30:55]MH_I2C_Read... [07:30:55]Read from MH i2c: 01 07 00 07 0A 00 00 00 00 00 CB 0C EF [07:30:55]RasterBufferAndPrint [07:30:55]line [07:30:55]line [07:30:55]line [07:30:55]line [07:30:55]line [07:30:55]written 0, free lines is 3282 [07:30:55]MH_Cut [07:30:55]Write to MH i2c: D1 01 00 0E 0A 01 EA [07:30:55]Write i2c OK [07:30:55]MH_I2C_Read... [07:30:55]Read from MH i2c: D1 [07:30:55]MH_I2C_Read... [07:30:55]Read from MH i2c: D1 01 00 [07:30:55]MH_I2C_Read... [07:30:55]Read from MH i2c: D1 01 00 0E 0A 00 E9 [07:30:55]Write to MH i2c: 01 00 00 0F 0A 19 [07:30:55]Write i2c OK [07:30:55]MH_I2C_Read... [07:30:55]OFD Sender: No OFD packet to send [07:30:56]*** Cut start [07:30:56]*** Partial cut [07:30:56]*** CUTSNS_PIN = 1 [07:30:56]*** CUTSNS_PIN = 0 [07:30:56]*** Brake cut motor [07:30:56]Read from MH i2c: 01 [07:30:56]MH_I2C_Read... [07:30:56]*** Stop cut motor [07:30:56]*** Cut end [07:30:56]Read from MH i2c: 01 07 00 [07:30:56]MH_I2C_Read... [07:30:56]Read from MH i2c: 01 07 00 0F 0A 00 00 00 00 00 FF 0F 2E [07:30:56]process_action close_receipt done [07:30:56]requested_data is exist [07:30:56]produce_requested_data [07:30:56]requested_item fm.sn is exist - process it [07:30:56]wFMCommunicate request_size=4 [07:30:56]MH_SAM_APDU [07:30:56]CAPDU: 80 11 00 00 [07:30:56]Write to MH i2c: E2 08 00 10 0A 80 11 00 00 00 00 00 00 94 [07:30:56]Write i2c OK [07:30:56]MH_I2C_Read... [07:30:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:30:57]Read from MH i2c: E2 [07:30:57]MH_I2C_Read... [07:30:57]Read from MH i2c: E2 17 00 [07:30:57]MH_I2C_Read... [07:30:57]Read from MH i2c: E2 17 00 10 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EF [07:30:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:30:57]wFMCommunicate OK [07:30:57]requested_item fd.num is exist - process it [07:30:57]SAM_PROTO_GetFieldsCounters [07:30:57]wFMCommunicate request_size=4 [07:30:57]MH_SAM_APDU [07:30:57]CAPDU: 80 13 00 00 [07:30:57]Write to MH i2c: E2 08 00 11 0A 80 13 00 00 00 00 00 00 97 [07:30:57]Write i2c OK [07:30:57]MH_I2C_Read... [07:30:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:30:57]Read from MH i2c: E2 [07:30:57]MH_I2C_Read... [07:30:57]Read from MH i2c: E2 62 00 [07:30:57]MH_I2C_Read... [07:30:57]Read from MH i2c: E2 62 00 11 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 10 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [07:30: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 10 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:30:57]wFMCommunicate OK [07:30:57]SAM_PROTO_GetFieldsCounters done [07:30:57]requested_item shift.num is exist - process it [07:30:57]requested_item shift.opened is exist - process it [07:30:57]req_shift_opened [07:30:57]FM_GetShiftState [07:30:57]SAM_PROTO_GetShiftState [07:30:57]wFMCommunicate request_size=4 [07:30:57]MH_SAM_APDU [07:30:57]CAPDU: 80 13 01 00 [07:30:57]Write to MH i2c: E2 08 00 12 0A 80 13 01 00 00 00 00 00 99 [07:30:57]Write i2c OK [07:30:57]MH_I2C_Read... [07:30:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:30:57]Read from MH i2c: E2 [07:30:57]MH_I2C_Read... [07:30:57]Read from MH i2c: E2 0E 00 [07:30:57]MH_I2C_Read... [07:30:57]Read from MH i2c: E2 0E 00 12 0A 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 31 [07:30:57]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [07:30:57]wFMCommunicate OK [07:30:57]SAM_PROTO_GetShiftState done [07:30:57]FM_GetShiftState done [07:30:57]req_shift_opened done [07:30:57]requested_item shift.open_date is exist - process it [07:30:57]req_shift_open_date [07:30:57]req_shift_open_date done [07:30:57]produce_requested_data done [07:30:57]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119312,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [07:30:57]process_action_free close_receipt [07:30:57]json_value_free [07:30:57]json_value_free done [07:30:57]process_json_proto returns [07:30:57]Send response to host [07:30:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119312,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [07:30:57]free response buf [07:30:57]execute_script done [07:30:57]execute_script returns [07:30:57]free content buf [07:30:57]Sock 9.Close socket [07:30:57]Sock 9.Thread stoped [07:31:00]OFD Sender: No OFD packet to send [07:31:05]OFD Sender: No OFD packet to send [07:31:10]OFD Sender: No OFD packet to send [07:31:15]OFD Sender: No OFD packet to send [07:31:20]OFD Sender: No OFD packet to send [07:31:25]OFD Sender: No OFD packet to send [07:31:30]OFD Sender: No OFD packet to send [07:31:35]OFD Sender: No OFD packet to send [07:31:40]OFD Sender: No OFD packet to send [07:31:45]OFD Sender: No OFD packet to send [07:31:50]OFD Sender: No OFD packet to send [07:31: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: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: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:06]OFD Sender: No OFD packet to send [07:34:11]OFD Sender: No OFD packet to send [07:34:16]OFD Sender: No OFD packet to send [07:34:21]OFD Sender: No OFD packet to send [07:34:26]OFD Sender: No OFD packet to send [07:34:31]OFD Sender: No OFD packet to send [07:34:36]OFD Sender: No OFD packet to send [07:34:41]OFD Sender: No OFD packet to send [07:34:46]OFD Sender: No OFD packet to send [07:34:51]OFD Sender: No OFD packet to send [07:34:56]OFD Sender: No OFD packet to send [07:35:01]OFD Sender: No OFD packet to send [07:35:06]OFD Sender: No OFD packet to send [07:35:11]OFD Sender: No OFD packet to send [07:35:16]OFD Sender: No OFD packet to send [07:35:21]OFD Sender: No OFD packet to send [07:35:26]OFD Sender: No OFD packet to send [07:35:31]OFD Sender: No OFD packet to send [07:35:36]OFD Sender: No OFD packet to send [07:35:41]OFD Sender: No OFD packet to send [07:35:46]OFD Sender: No OFD packet to send [07:35:51]OFD Sender: No OFD packet to send [07:35:56]OFD Sender: No OFD packet to send [07:36:01]OFD Sender: No OFD packet to send [07:36:06]OFD Sender: No OFD packet to send [07:36:11]OFD Sender: No OFD packet to send [07:36:16]OFD Sender: No OFD packet to send [07:36:21]OFD Sender: No OFD packet to send [07:36:26]OFD Sender: No OFD packet to send [07:36:31]OFD Sender: No OFD packet to send [07:36:36]OFD Sender: No OFD packet to send [07:36:37]accept exits with 8 [07:36:37]New connection [07:36:37]New thread 3067194724 created [07:36:37]Thread 3067338084 joined [07:36:37]Waiting for new connection... [07:36:37] Sock 8.Parse request [07:36:37]Sock 8.Check first char [07:36:37]Sock 8.First char is OK [07:36:37]request: POST /json_proto HTTP/1.0 [07:36:37]Method: POST [07:36:37]URL: /json_proto [07:36:37]Method is POST - this is cgi request [07:36:37]url: /json_proto [07:36:37]query_string will be loaded in cgi processing [07:36:37]execute_cgi json_proto POST (null) [07:36:37]execute_cgi path=json_proto method=POST [07:36:37]POST find Content-Length [07:36:37]Host: 172.17.45.7:8080 [07:36:37]Content-Length: 682 [07:36:37]Content-Type: application/json [07:36:37] [07:36:37]POST finish read [07:36:37]Found Content-Length = 682 [07:36:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:36:37]execute_script... [07:36: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)950238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:36:37]POST & json_proto [07:36:37]process_json_proto [07:36:37]json parsed OK: [07:36:37]protocol is kg_v1.0 [07:36:37]action value=close_receipt [07:36:37]process_action close_receipt [07:36:37]cmd_close_receipt [07:36:37]MH_GetDate [07:36:37]Write to MH i2c: F0 00 00 13 0A 0C [07:36:37]Write i2c OK [07:36:37]MH_I2C_Read... [07:36:37]Read from MH i2c: F0 [07:36:37]MH_I2C_Read... [07:36:37]Read from MH i2c: F0 09 00 [07:36:37]MH_I2C_Read... [07:36:37]Read from MH i2c: F0 09 00 13 0A 00 87 E9 A9 66 90 0F 3E 66 D7 [07:36:37]GetLastDocTimeStamp 1722411054 [07:36:37]current date 1722411399 [07:36:37]FM_GetShiftState [07:36:37]SAM_PROTO_GetShiftState [07:36:37]wFMCommunicate request_size=4 [07:36:37]MH_SAM_APDU [07:36:37]CAPDU: 80 13 01 00 [07:36:37]Write to MH i2c: E2 08 00 14 0A 80 13 01 00 00 00 00 00 9B [07:36:37]Write i2c OK [07:36:37]MH_I2C_Read... [07:36:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:36:37]Read from MH i2c: E2 [07:36:37]MH_I2C_Read... [07:36:37]Read from MH i2c: E2 0E 00 [07:36:37]MH_I2C_Read... [07:36:37]Read from MH i2c: E2 0E 00 14 0A 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 33 [07:36:37]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [07:36:37]wFMCommunicate OK [07:36:37]SAM_PROTO_GetShiftState done [07:36:37]FM_GetShiftState done [07:36:37]opened in 1722384637 [07:36:37]opened+sec_in_day 1722471037 [07:36:37]quantity*price = 100005 [07:36:37]sum+1 = 100006 [07:36:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 44 31.07.2024 07:36 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119313 ФПД: 169750788764739 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T073639&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119313&fm=169750788764739&tin=02508201610067®Number=0000000000092660&sum=100000 [07:36:39]StoreToDocumentArchive [07:36:39]shift 436 fd 119313 [07:36:39]save to /storage/0436/doc_00119313 [07:36:39]save last doc name /storage/0436/doc_00119313 to /storage/kkm_last_doc_name [07:36:39]save OK [07:36:39]Clear old archive folders... [07:36:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:36:39]tlvbuf is 00ACFF50 [07:36:39]SAM_PROTO_ClearQueue [07:36:39]wFMCommunicate request_size=4 [07:36:39]MH_SAM_APDU [07:36:39]CAPDU: 80 09 00 00 [07:36:39]Write to MH i2c: E2 08 00 21 0A 80 09 00 00 00 00 00 00 9D [07:36:39]Write i2c OK [07:36:39]MH_I2C_Read... [07:36:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:36:39]Read from MH i2c: E2 [07:36:39]MH_I2C_Read... [07:36:39]Read from MH i2c: E2 03 00 [07:36:39]MH_I2C_Read... [07:36:39]Read from MH i2c: E2 03 00 21 0A 00 90 00 9F [07:36:39]RAPDU: 90 00 [07:36:39]wFMCommunicate OK [07:36:39]SAM_PROTO_ClearQueue done [07:36:39]KKMCreateOFDPacket [07:36:39]OFDProtocolAddRootSTLVToBuf [07:36:39]FM_MakeSignedData [07:36:39]FM_MakeSignedData [07:36:39]SAM_PROTO_SignData [07:36:39]wFMCommunicate request_size=4 [07:36:39]MH_SAM_APDU [07:36:39]CAPDU: 80 0D 01 02 [07:36:39]Write to MH i2c: E2 08 00 22 0A 80 0D 01 02 00 00 00 00 A5 [07:36:39]Write i2c OK [07:36:39]MH_I2C_Read... [07:36:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:36:39]Read from MH i2c: E2 [07:36:39]MH_I2C_Read... [07:36:39]Read from MH i2c: E2 03 00 [07:36:39]MH_I2C_Read... [07:36:39]Read from MH i2c: E2 03 00 22 0A 00 90 00 A0 [07:36:39]RAPDU: 90 00 [07:36:39]wFMCommunicate OK [07:36:39]wFMCommunicate request_size=255 [07:36:39]MH_SAM_APDU [07:36: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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 2C 00 00 00 F4 03 04 00 87 E9 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 11 D2 01 00 35 04 06 00 9A [07:36:39]Write to MH i2c: E2 02 01 23 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 2C 00 00 00 F4 03 04 00 87 E9 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 11 D2 01 00 35 04 06 00 9A 00 00 96 [07:36:39]Write i2c OK [07:36:39]MH_I2C_Read... [07:36:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:36:39]Read from MH i2c: E2 [07:36:39]MH_I2C_Read... [07:36:39]Read from MH i2c: E2 03 00 [07:36:39]MH_I2C_Read... [07:36:39]Read from MH i2c: E2 03 00 23 0A 00 90 00 A1 [07:36:39]RAPDU: 90 00 [07:36:39]wFMCommunicate OK [07:36:39]wFMCommunicate request_size=10 [07:36:39]MH_SAM_APDU [07:36:39]CAPDU: 80 0D 02 02 05 63 2F 76 F4 43 [07:36:39]Write to MH i2c: E2 0D 00 24 0A 80 0D 02 02 05 00 63 2F 76 F4 43 00 00 F1 [07:36:39]Write i2c OK [07:36:39]MH_I2C_Read... [07:36:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:36:39]Read from MH i2c: E2 [07:36:39]MH_I2C_Read... [07:36:39]Read from MH i2c: E2 03 00 [07:36:39]MH_I2C_Read... [07:36:39]Read from MH i2c: E2 03 00 24 0A 00 90 00 A2 [07:36:39]RAPDU: 90 00 [07:36:39]wFMCommunicate OK [07:36:39]wFMCommunicate request_size=4 [07:36:39]MH_SAM_APDU [07:36:39]CAPDU: 80 0D 03 02 [07:36:39]Write to MH i2c: E2 08 00 25 0A 80 0D 03 02 00 00 00 00 AA [07:36:39]Write i2c OK [07:36:39]MH_I2C_Read... [07:36:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:36:39]Read from MH i2c: E2 [07:36:39]MH_I2C_Read... [07:36:39]Read from MH i2c: E2 0B 00 [07:36:39]MH_I2C_Read... [07:36:39]Read from MH i2c: E2 0B 00 25 0A 00 86 90 FB 44 18 AC D5 37 90 00 D0 [07:36:39]RAPDU: 86 90 FB 44 18 AC D5 37 90 00 [07:36:39]wFMCommunicate OK [07:36:39]SAM_PROTO_SignData done [07:36:39]FM_MakeSignedData done [07:36:39]CreateOFDProtocolMessage [07:36:39]wFMCommunicate request_size=4 [07:36:39]MH_SAM_APDU [07:36:39]CAPDU: 80 11 00 00 [07:36:39]Write to MH i2c: E2 08 00 26 0A 80 11 00 00 00 00 00 00 AA [07:36:39]Write i2c OK [07:36:39]MH_I2C_Read... [07:36:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:36:39]Read from MH i2c: E2 [07:36:39]MH_I2C_Read... [07:36:39]Read from MH i2c: E2 17 00 [07:36:39]MH_I2C_Read... [07:36:39]Read from MH i2c: E2 17 00 26 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 05 [07:36:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:36:39]wFMCommunicate OK [07:36:39]CreateOFDProtocolMessage done [07:36:39]OFDSenderStorePacket 119313 [07:36:39]StoreOFDPacket docnum=119313 [07:36:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 66 2F 07 01 03 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 2C 00 00 00 F4 03 04 00 87 E9 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 11 D2 01 00 35 04 06 00 9A 63 2F 76 F4 43 86 90 FB 44 18 AC D5 37 [07:36:39]CheckFolder [07:36:39]dirname=/storage/ofd_packets [07:36:39]CheckFolder done [07:36:39]ProducePacketName [07:36:39]name=ofd_packets/00119313 [07:36:39]NVStorageSaveData ofd_packets/00119313 [07:36:39]File name is /storage/ofd_packets/00119313 [07:36:39]Write 301 bytes [07:36:39]NVStorageSaveData done [07:36:39]OFDSenderStorePacket done [07:36:39]KKMCreateOFDPacket done [07:36:39]NVStorageSaveData kkm_last_timestamp [07:36:39]File name is /storage/kkm_last_timestamp [07:36:39]Write 4 bytes [07:36:39]NVStorageSaveData done [07:36:39]ExternCall_PrintAddStr [07:36:39]wPrintStart [07:36:39]Write to MH i2c: 01 00 00 27 0A 31 [07:36:39]Write i2c OK [07:36:39]MH_I2C_Read... [07:36:39]Read from MH i2c: 01 [07:36:39]MH_I2C_Read... [07:36:39]Read from MH i2c: 01 07 00 [07:36:39]MH_I2C_Read... [07:36:39]Read from MH i2c: 01 07 00 27 0A 00 00 00 00 00 FF 0F 46 [07:36:39]RasterBufferAndPrint [07:36:39]line Счет N : (1)950238 [07:36:39]line ИНН: 02508201610067 [07:36:39]line Контрольно-Кассовый Чек [07:36:39]line ПРОДАЖА [07:36:39]line ТРК (МРК, ГНК) : 41 [07:36:39]line Товар: 2710124130 [07:36:39]line Аи-92-К-4 [07:36:39]line 14.750 * 67.80 [07:36:39]line = 1000.05 [07:36:39]line НДС 12% НСП 1% [07:36:39]line > о реализуемом товаре [07:36:39]line ОКРУГЛЕНИЕ: -0.05 [07:36:39]line ИТОГО: 1000.00 [07:36:39]line Внесено: 1000.00 [07:36:39]line СДАЧА: 0.00 [07:36:39]line НСП 1% : 8.85 [07:36:39]line НДС 12% : 106.20 [07:36:39]line Наличными: 1000.00 [07:36:39]line Безнал.: 0.00 [07:36:39]line Место: АЗС № 134 "Партнер Нефть" [07:36:39]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:36:39]line СНО: Общий режим [07:36:39]line Чек 44 31.07.2024 07:36 [07:36:39]line Смена: 436 ФФД: 1.0 [07:36:39]line ЗНМ: 0300000044 [07:36:39]line РНМ: 0000000000092660 [07:36:39]line Версия ККМ: 001 [07:36:39]line ФМ: 0000000000874939 [07:36:39]line ФД: 119313 [07:36:39]line ФПД: 169750788764739 [07:36:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T073639&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119313&fm=169750788764739&tin=02508201610067®Number=0000000000092660&sum=100000 [07:36:39]written 0, free lines is 4095 [07:36:39]OFD Sender: Processing packet 119313 [packets to send 86, broken 85] [07:36:39]ProducePacketName [07:36:39]name=ofd_packets/00119313 [07:36:39]OFD Sender: To server: pG, [07:36:39]CommunicateWithHost lk.salyk.kg:30040 [07:36:39]ConnectInit lk.salyk.kg [07:36:40]Connected sock=11 [07:36:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 66 2F 07 01 03 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 2C 00 00 00 F4 03 04 00 87 E9 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 11 D2 01 00 35 04 06 00 9A 63 2F 76 F4 43 86 90 FB 44 18 AC D5 37 [07:36:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 28 F7 47 00 20 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 39 33 39 10 04 04 00 11 D2 01 00 F4 03 04 00 10 97 A9 66 B6 04 01 00 00 BE 3B 44 41 B7 07 44 84 [07:36:40]CommunicateWithHost err = 0 [07:36:40]CheckOFDResponse [07:36:40]1017 (14) - 77093643461234 [07:36:40]1041 (16) - 0000000000874939 [07:36:40]1040 (4) - 119313 [07:36:40]1012 (4) - 31.07.2024 01:44 [07:36:40]1206 (1) - 0 [07:36:40]OFD Sender: Remove packet 119313 [07:36:40]ProducePacketName [07:36:40]name=ofd_packets/00119313 [07:36:40]NVStorageDeleteData [07:36:40]Write to MH i2c: 01 00 00 51 0A 5B [07:36:40]Write i2c OK [07:36:40]MH_I2C_Read... [07:36:40]Read from MH i2c: 01 [07:36:40]MH_I2C_Read... [07:36:40]Read from MH i2c: 01 07 00 [07:36:40]MH_I2C_Read... [07:36:40]Read from MH i2c: 01 07 00 51 0A 00 00 00 00 00 C7 0C 35 [07:36:40]RasterBufferAndPrint [07:36:40]line [07:36:40]line [07:36:40]line [07:36:40]line [07:36:40]line [07:36:40]written 0, free lines is 3278 [07:36:40]MH_Cut [07:36:40]Write to MH i2c: D1 01 00 58 0A 01 34 [07:36:40]Write i2c OK [07:36:40]MH_I2C_Read... [07:36:40]Read from MH i2c: D1 [07:36:40]MH_I2C_Read... [07:36:40]Read from MH i2c: D1 01 00 [07:36:40]MH_I2C_Read... [07:36:40]Read from MH i2c: D1 01 00 58 0A 00 33 [07:36:40]Write to MH i2c: 01 00 00 59 0A 63 [07:36:40]Write i2c OK [07:36:40]MH_I2C_Read... [07:36:40]OFD Sender: No OFD packet to send [07:36:41]*** Cut start [07:36:41]*** Partial cut [07:36:41]*** CUTSNS_PIN = 1 [07:36:41]*** CUTSNS_PIN = 0 [07:36:41]*** Brake cut motor [07:36:41]Read from MH i2c: 01 [07:36:41]MH_I2C_Read... [07:36:41]*** Stop cut motor [07:36:41]*** Cut end [07:36:41]Read from MH i2c: 01 07 00 [07:36:41]MH_I2C_Read... [07:36:41]Read from MH i2c: 01 07 00 59 0A 00 00 00 00 00 FF 0F 78 [07:36:41]process_action close_receipt done [07:36:41]requested_data is exist [07:36:41]produce_requested_data [07:36:41]requested_item fm.sn is exist - process it [07:36:41]wFMCommunicate request_size=4 [07:36:41]MH_SAM_APDU [07:36:41]CAPDU: 80 11 00 00 [07:36:41]Write to MH i2c: E2 08 00 5A 0A 80 11 00 00 00 00 00 00 DE [07:36:41]Write i2c OK [07:36:41]MH_I2C_Read... [07:36:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:36:41]Read from MH i2c: E2 [07:36:41]MH_I2C_Read... [07:36:41]Read from MH i2c: E2 17 00 [07:36:41]MH_I2C_Read... [07:36:41]Read from MH i2c: E2 17 00 5A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 39 [07:36:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:36:41]wFMCommunicate OK [07:36:41]requested_item fd.num is exist - process it [07:36:41]SAM_PROTO_GetFieldsCounters [07:36:41]wFMCommunicate request_size=4 [07:36:41]MH_SAM_APDU [07:36:41]CAPDU: 80 13 00 00 [07:36:41]Write to MH i2c: E2 08 00 5B 0A 80 13 00 00 00 00 00 00 E1 [07:36:41]Write i2c OK [07:36:41]MH_I2C_Read... [07:36:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:36:41]Read from MH i2c: E2 [07:36:41]MH_I2C_Read... [07:36:41]Read from MH i2c: E2 62 00 [07:36:41]MH_I2C_Read... [07:36:41]Read from MH i2c: E2 62 00 5B 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 11 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [07:36: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 11 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:36:41]wFMCommunicate OK [07:36:41]SAM_PROTO_GetFieldsCounters done [07:36:41]requested_item shift.num is exist - process it [07:36:41]requested_item shift.opened is exist - process it [07:36:41]req_shift_opened [07:36:41]FM_GetShiftState [07:36:41]SAM_PROTO_GetShiftState [07:36:41]wFMCommunicate request_size=4 [07:36:41]MH_SAM_APDU [07:36:41]CAPDU: 80 13 01 00 [07:36:41]Write to MH i2c: E2 08 00 5C 0A 80 13 01 00 00 00 00 00 E3 [07:36:41]Write i2c OK [07:36:41]MH_I2C_Read... [07:36:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:36:41]Read from MH i2c: E2 [07:36:41]MH_I2C_Read... [07:36:41]Read from MH i2c: E2 0E 00 [07:36:41]MH_I2C_Read... [07:36:41]Read from MH i2c: E2 0E 00 5C 0A 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 7B [07:36:41]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [07:36:41]wFMCommunicate OK [07:36:41]SAM_PROTO_GetShiftState done [07:36:41]FM_GetShiftState done [07:36:41]req_shift_opened done [07:36:41]requested_item shift.open_date is exist - process it [07:36:41]req_shift_open_date [07:36:41]req_shift_open_date done [07:36:41]produce_requested_data done [07:36:41]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119313,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [07:36:41]process_action_free close_receipt [07:36:41]json_value_free [07:36:41]json_value_free done [07:36:41]process_json_proto returns [07:36:41]Send response to host [07:36:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119313,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [07:36:41]free response buf [07:36:41]execute_script done [07:36:41]execute_script returns [07:36:41]free content buf [07:36:41]Sock 8.Close socket [07:36:41]Sock 8.Thread stoped [07:36:45]OFD Sender: No OFD packet to send [07:36:50]OFD Sender: No OFD packet to send [07:36:55]OFD Sender: No OFD packet to send [07:37:00]OFD Sender: No OFD packet to send [07:37:05]OFD Sender: No OFD packet to send [07:37:10]OFD Sender: No OFD packet to send [07:37:15]OFD Sender: No OFD packet to send [07:37:20]OFD Sender: No OFD packet to send [07:37:25]OFD Sender: No OFD packet to send [07:37:30]OFD Sender: No OFD packet to send [07:37:35]OFD Sender: No OFD packet to send [07:37:40]OFD Sender: No OFD packet to send [07:37:45]OFD Sender: No OFD packet to send [07:37:50]OFD Sender: No OFD packet to send [07:37:55]OFD Sender: No OFD packet to send [07:38:00]OFD Sender: No OFD packet to send [07:38:05]OFD Sender: No OFD packet to send [07:38:10]OFD Sender: No OFD packet to send [07:38:15]OFD Sender: No OFD packet to send [07:38:20]OFD Sender: No OFD packet to send [07:38:25]OFD Sender: No OFD packet to send [07:38:30]OFD Sender: No OFD packet to send [07:38:35]OFD Sender: No OFD packet to send [07:38:40]OFD Sender: No OFD packet to send [07:38:45]OFD Sender: No OFD packet to send [07:38:50]OFD Sender: No OFD packet to send [07:38:55]OFD Sender: No OFD packet to send [07:39:00]OFD Sender: No OFD packet to send [07:39:05]OFD Sender: No OFD packet to send [07:39:10]OFD Sender: No OFD packet to send [07:39:15]OFD Sender: No OFD packet to send [07:39:20]OFD Sender: No OFD packet to send [07:39:25]OFD Sender: No OFD packet to send [07:39:30]OFD Sender: No OFD packet to send [07:39:35]OFD Sender: No OFD packet to send [07:39:40]OFD Sender: No OFD packet to send [07:39:45]OFD Sender: No OFD packet to send [07:39:50]OFD Sender: No OFD packet to send [07:39:55]OFD Sender: No OFD packet to send [07:40:00]OFD Sender: No OFD packet to send [07:40:05]OFD Sender: No OFD packet to send [07:40:10]OFD Sender: No OFD packet to send [07:40:15]OFD Sender: No OFD packet to send [07:40:20]OFD Sender: No OFD packet to send [07:40:25]OFD Sender: No OFD packet to send [07:40:30]OFD Sender: No OFD packet to send [07:40:35]OFD Sender: No OFD packet to send [07:40:40]OFD Sender: No OFD packet to send [07:40:45]OFD Sender: No OFD packet to send [07:40:50]OFD Sender: No OFD packet to send [07:40:55]OFD Sender: No OFD packet to send [07:40:56]accept exits with 9 [07:40:56]New connection [07:40:56]New thread 3067338084 created [07:40:56]Thread 3067194724 joined [07:40:56]Waiting for new connection... [07:40:56] Sock 9.Parse request [07:40:56]Sock 9.Check first char [07:40:56]Sock 9.First char is OK [07:40:56]request: POST /json_proto HTTP/1.0 [07:40:56]Method: POST [07:40:56]URL: /json_proto [07:40:56]Method is POST - this is cgi request [07:40:56]url: /json_proto [07:40:56]query_string will be loaded in cgi processing [07:40:56]execute_cgi json_proto POST (null) [07:40:56]execute_cgi path=json_proto method=POST [07:40:56]POST find Content-Length [07:40:56]Host: 172.17.45.7:8080 [07:40:56]Content-Length: 1194 [07:40:56]Content-Type: application/json [07:40:56] [07:40:56]POST finish read [07:40:56]Found Content-Length = 1194 [07:40:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)950239\u000A31.07.2024 07:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 3810.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3982084\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:40:56]execute_script... [07:40:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)950239\u000A31.07.2024 07:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 3810.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3982084\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:40:56]POST & json_proto [07:40:56]process_json_proto [07:40:56]json parsed OK: [07:40:56]protocol is kg_v1.0 [07:40:56]action value=print_text [07:40:56]process_action print_text [07:40:56]cmd_print_text [07:40:56]ExternCall_PrintAddStr [07:40:56]wPrintStart [07:40:56]Write to MH i2c: 01 00 00 5D 0A 67 [07:40:56]Write i2c OK [07:40:56]MH_I2C_Read... [07:40:56]Read from MH i2c: 01 [07:40:56]MH_I2C_Read... [07:40:56]Read from MH i2c: 01 07 00 [07:40:56]MH_I2C_Read... [07:40:56]Read from MH i2c: 01 07 00 5D 0A 00 00 00 00 00 FF 0F 7C [07:40:56]RasterBufferAndPrint [07:40:56]line *****ТОВАРНЫЙ ЧЕК***** [07:40:56]line АЗС-134 [07:40:56]line Партнер нефть [07:40:56]line 02508201610067 [07:40:56]line Кассир : Хошимов З. [07:40:56]line Счет N : (1)950239 [07:40:56]line 31.07.2024 07:38 [07:40:56]line ПРОДАЖА [07:40:56]line ТРК (МРК, ГНК): 21 [07:40:56]line Вид ГСМ : 2710194800 [07:40:56]line ДТ-К-5 [07:40:56]line 50.000 x 76.20 [07:40:56]line ИТОГ: 3810.00 [07:40:56]line Тип оплаты: Талоны: Топливные Талоны [07:40:56]line 3982084 [07:40:56]line ______________________ [07:40:56]line (подпись) [07:40:56]written 0, free lines is 4095 [07:40:57]Write to MH i2c: 01 00 00 71 0A 7B [07:40:57]Write i2c OK [07:40:57]MH_I2C_Read... [07:40:57]Read from MH i2c: 01 [07:40:57]MH_I2C_Read... [07:40:57]Read from MH i2c: 01 07 00 [07:40:57]MH_I2C_Read... [07:40:57]Read from MH i2c: 01 07 00 71 0A 00 00 00 00 00 0E 0E 9E [07:40:57]RasterBufferAndPrint [07:40:57]line [07:40:57]line [07:40:57]line [07:40:57]line [07:40:57]line [07:40:57]written 0, free lines is 3600 [07:40:57]MH_Cut [07:40:57]Write to MH i2c: D1 01 00 78 0A 01 54 [07:40:57]Write i2c OK [07:40:57]MH_I2C_Read... [07:40:57]Read from MH i2c: D1 [07:40:57]MH_I2C_Read... [07:40:57]Read from MH i2c: D1 01 00 [07:40:57]MH_I2C_Read... [07:40:57]Read from MH i2c: D1 01 00 78 0A 00 53 [07:40:57]Write to MH i2c: 01 00 00 79 0A 83 [07:40:57]Write i2c OK [07:40:57]MH_I2C_Read... [07:40:57]*** Cut start [07:40:57]*** Partial cut [07:40:57]*** CUTSNS_PIN = 1 [07:40:57]*** CUTSNS_PIN = 0 [07:40:57]*** Brake cut motor [07:40:58]Read from MH i2c: 01 [07:40:58]MH_I2C_Read... [07:40:58]Read from MH i2c: 01 07 00 [07:40:58]MH_I2C_Read... [07:40:58]*** Stop cut motor [07:40:58]*** Cut end [07:40:58]Read from MH i2c: 01 07 00 79 0A 00 00 00 00 00 FF 0F 98 [07:40:58]process_action print_text done [07:40:58]requested_data is exist [07:40:58]produce_requested_data [07:40:58]requested_item fm.sn is exist - process it [07:40:58]wFMCommunicate request_size=4 [07:40:58]MH_SAM_APDU [07:40:58]CAPDU: 80 11 00 00 [07:40:58]Write to MH i2c: E2 08 00 7A 0A 80 11 00 00 00 00 00 00 FE [07:40:58]Write i2c OK [07:40:58]MH_I2C_Read... [07:40:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:40:58]Read from MH i2c: E2 [07:40:58]MH_I2C_Read... [07:40:58]Read from MH i2c: E2 17 00 [07:40:58]MH_I2C_Read... [07:40:58]Read from MH i2c: E2 17 00 7A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 59 [07:40:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:40:58]wFMCommunicate OK [07:40:58]requested_item fd.num is exist - process it [07:40:58]SAM_PROTO_GetFieldsCounters [07:40:58]wFMCommunicate request_size=4 [07:40:58]MH_SAM_APDU [07:40:58]CAPDU: 80 13 00 00 [07:40:58]Write to MH i2c: E2 08 00 7B 0A 80 13 00 00 00 00 00 00 01 [07:40:58]Write i2c OK [07:40:58]MH_I2C_Read... [07:40:58]Read from MH i2c: E2 [07:40:58]MH_I2C_Read... [07:40:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:40:58]Read from MH i2c: E2 62 00 [07:40:58]MH_I2C_Read... [07:40:58]Read from MH i2c: E2 62 00 7B 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 11 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [07:40: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 11 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:40:58]wFMCommunicate OK [07:40:58]SAM_PROTO_GetFieldsCounters done [07:40:58]requested_item shift.num is exist - process it [07:40:58]requested_item shift.opened is exist - process it [07:40:58]req_shift_opened [07:40:58]FM_GetShiftState [07:40:58]SAM_PROTO_GetShiftState [07:40:58]wFMCommunicate request_size=4 [07:40:58]MH_SAM_APDU [07:40:58]CAPDU: 80 13 01 00 [07:40:58]Write to MH i2c: E2 08 00 7C 0A 80 13 01 00 00 00 00 00 03 [07:40:58]Write i2c OK [07:40:58]MH_I2C_Read... [07:40:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:40:58]Read from MH i2c: E2 [07:40:58]MH_I2C_Read... [07:40:58]Read from MH i2c: E2 0E 00 [07:40:58]MH_I2C_Read... [07:40:58]Read from MH i2c: E2 0E 00 7C 0A 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 9B [07:40:58]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [07:40:58]wFMCommunicate OK [07:40:58]SAM_PROTO_GetShiftState done [07:40:58]FM_GetShiftState done [07:40:58]req_shift_opened done [07:40:58]requested_item shift.open_date is exist - process it [07:40:58]req_shift_open_date [07:40:58]req_shift_open_date done [07:40:58]produce_requested_data done [07:40:58]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119313,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [07:40:58]process_action_free print_text [07:40:58]json_value_free [07:40:58]json_value_free done [07:40:58]process_json_proto returns [07:40:58]Send response to host [07:40:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119313,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [07:40:58]free response buf [07:40:58]execute_script done [07:40:58]execute_script returns [07:40:58]free content buf [07:40:58]Sock 9.Close socket [07:40:58]Sock 9.Thread stoped [07:41:00]OFD Sender: No OFD packet to send [07:41:05]OFD Sender: No OFD packet to send [07:41:10]OFD Sender: No OFD packet to send [07:41:15]OFD Sender: No OFD packet to send [07:41:20]OFD Sender: No OFD packet to send [07:41:26]OFD Sender: No OFD packet to send [07:41:31]OFD Sender: No OFD packet to send [07:41:36]OFD Sender: No OFD packet to send [07:41:41]OFD Sender: No OFD packet to send [07:41:46]OFD Sender: No OFD packet to send [07:41:51]OFD Sender: No OFD packet to send [07:41:56]OFD Sender: No OFD packet to send [07:42:01]OFD Sender: No OFD packet to send [07:42:06]OFD Sender: No OFD packet to send [07:42:11]OFD Sender: No OFD packet to send [07:42:16]OFD Sender: No OFD packet to send [07:42:21]OFD Sender: No OFD packet to send [07:42:26]OFD Sender: No OFD packet to send [07:42:31]OFD Sender: No OFD packet to send [07:42:36]OFD Sender: No OFD packet to send [07:42:41]OFD Sender: No OFD packet to send [07:42:46]OFD Sender: No OFD packet to send [07:42:51]OFD Sender: No OFD packet to send [07:42:56]OFD Sender: No OFD packet to send [07:43:01]OFD Sender: No OFD packet to send [07:43:06]OFD Sender: No OFD packet to send [07:43:11]OFD Sender: No OFD packet to send [07:43:14]accept exits with 8 [07:43:14]New connection [07:43:14]New thread 3067194724 created [07:43:14]Thread 3067338084 joined [07:43:14]Waiting for new connection... [07:43:14] Sock 8.Parse request [07:43:14]Sock 8.Check first char [07:43:14]Sock 8.First char is OK [07:43:14]request: POST /json_proto HTTP/1.0 [07:43:14]Method: POST [07:43:14]URL: /json_proto [07:43:14]Method is POST - this is cgi request [07:43:14]url: /json_proto [07:43:14]query_string will be loaded in cgi processing [07:43:14]execute_cgi json_proto POST (null) [07:43:14]execute_cgi path=json_proto method=POST [07:43:14]POST find Content-Length [07:43:14]Host: 172.17.45.7:8080 [07:43:14]Content-Length: 677 [07:43:14]Content-Type: application/json [07:43:14] [07:43:14]POST finish read [07:43:14]Found Content-Length = 677 [07:43:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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" ] } } [07:43:14]execute_script... [07:43:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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" ] } } [07:43:14]POST & json_proto [07:43:14]process_json_proto [07:43:14]json parsed OK: [07:43:14]protocol is kg_v1.0 [07:43:14]action value=close_receipt [07:43:14]process_action close_receipt [07:43:14]cmd_close_receipt [07:43:14]MH_GetDate [07:43:14]Write to MH i2c: F0 00 00 7D 0A 76 [07:43:14]Write i2c OK [07:43:14]MH_I2C_Read... [07:43:14]Read from MH i2c: F0 [07:43:14]MH_I2C_Read... [07:43:14]Read from MH i2c: F0 09 00 [07:43:14]MH_I2C_Read... [07:43:14]Read from MH i2c: F0 09 00 7D 0A 00 13 EB A9 66 90 0F 3E 66 CF [07:43:14]GetLastDocTimeStamp 1722411399 [07:43:14]current date 1722411795 [07:43:14]FM_GetShiftState [07:43:14]SAM_PROTO_GetShiftState [07:43:14]wFMCommunicate request_size=4 [07:43:14]MH_SAM_APDU [07:43:14]CAPDU: 80 13 01 00 [07:43:14]Write to MH i2c: E2 08 00 7E 0A 80 13 01 00 00 00 00 00 05 [07:43:14]Write i2c OK [07:43:14]MH_I2C_Read... [07:43:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:14]Read from MH i2c: E2 [07:43:14]MH_I2C_Read... [07:43:14]Read from MH i2c: E2 0E 00 [07:43:14]MH_I2C_Read... [07:43:14]Read from MH i2c: E2 0E 00 7E 0A 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 9D [07:43:14]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [07:43:14]wFMCommunicate OK [07:43:14]SAM_PROTO_GetShiftState done [07:43:14]FM_GetShiftState done [07:43:14]opened in 1722384637 [07:43:14]opened+sec_in_day 1722471037 [07:43:14]quantity*price = 30035 [07:43:14]sum+1 = 30036 [07:43:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 45 31.07.2024 07:43 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119314 ФПД: 71558033912937 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T074315&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119314&fm=71558033912937&tin=02508201610067®Number=0000000000092660&sum=30000 [07:43:15]StoreToDocumentArchive [07:43:15]shift 436 fd 119314 [07:43:15]save to /storage/0436/doc_00119314 [07:43:15]save last doc name /storage/0436/doc_00119314 to /storage/kkm_last_doc_name [07:43:15]save OK [07:43:15]Clear old archive folders... [07:43:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:43:15]tlvbuf is 00B2F470 [07:43:15]SAM_PROTO_ClearQueue [07:43:15]wFMCommunicate request_size=4 [07:43:15]MH_SAM_APDU [07:43:15]CAPDU: 80 09 00 00 [07:43:15]Write to MH i2c: E2 08 00 8B 0A 80 09 00 00 00 00 00 00 07 [07:43:15]Write i2c OK [07:43:15]MH_I2C_Read... [07:43:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:43:15]Read from MH i2c: E2 [07:43:15]MH_I2C_Read... [07:43:15]Read from MH i2c: E2 03 00 [07:43:15]MH_I2C_Read... [07:43:15]Read from MH i2c: E2 03 00 8B 0A 00 90 00 09 [07:43:15]RAPDU: 90 00 [07:43:15]wFMCommunicate OK [07:43:15]SAM_PROTO_ClearQueue done [07:43:15]KKMCreateOFDPacket [07:43:15]OFDProtocolAddRootSTLVToBuf [07:43:15]FM_MakeSignedData [07:43:15]FM_MakeSignedData [07:43:15]SAM_PROTO_SignData [07:43:15]wFMCommunicate request_size=4 [07:43:15]MH_SAM_APDU [07:43:15]CAPDU: 80 0D 01 02 [07:43:15]Write to MH i2c: E2 08 00 8C 0A 80 0D 01 02 00 00 00 00 0F [07:43:15]Write i2c OK [07:43:15]MH_I2C_Read... [07:43:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:43:15]Read from MH i2c: E2 [07:43:15]MH_I2C_Read... [07:43:15]Read from MH i2c: E2 03 00 [07:43:15]MH_I2C_Read... [07:43:15]Read from MH i2c: E2 03 00 8C 0A 00 90 00 0A [07:43:15]RAPDU: 90 00 [07:43:15]wFMCommunicate OK [07:43:15]wFMCommunicate request_size=255 [07:43:15]MH_SAM_APDU [07:43:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 13 EB A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 12 D2 01 00 35 04 06 00 41 [07:43:15]Write to MH i2c: E2 02 01 8D 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 13 EB A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 12 D2 01 00 35 04 06 00 41 00 00 C7 [07:43:15]Write i2c OK [07:43:15]MH_I2C_Read... [07:43:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:15]Read from MH i2c: E2 [07:43:15]MH_I2C_Read... [07:43:15]Read from MH i2c: E2 03 00 [07:43:15]MH_I2C_Read... [07:43:15]Read from MH i2c: E2 03 00 8D 0A 00 90 00 0B [07:43:15]RAPDU: 90 00 [07:43:15]wFMCommunicate OK [07:43:15]wFMCommunicate request_size=10 [07:43:15]MH_SAM_APDU [07:43:15]CAPDU: 80 0D 02 02 05 14 E7 31 34 69 [07:43:15]Write to MH i2c: E2 0D 00 8E 0A 80 0D 02 02 05 00 14 E7 31 34 69 00 00 E5 [07:43:15]Write i2c OK [07:43:15]MH_I2C_Read... [07:43:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:15]Read from MH i2c: E2 [07:43:15]MH_I2C_Read... [07:43:15]Read from MH i2c: E2 03 00 [07:43:15]MH_I2C_Read... [07:43:15]Read from MH i2c: E2 03 00 8E 0A 00 90 00 0C [07:43:15]RAPDU: 90 00 [07:43:15]wFMCommunicate OK [07:43:15]wFMCommunicate request_size=4 [07:43:15]MH_SAM_APDU [07:43:15]CAPDU: 80 0D 03 02 [07:43:15]Write to MH i2c: E2 08 00 8F 0A 80 0D 03 02 00 00 00 00 14 [07:43:15]Write i2c OK [07:43:15]MH_I2C_Read... [07:43:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:43:15]Read from MH i2c: E2 [07:43:15]MH_I2C_Read... [07:43:15]Read from MH i2c: E2 0B 00 [07:43:15]MH_I2C_Read... [07:43:15]Read from MH i2c: E2 0B 00 8F 0A 00 26 9B A6 28 97 67 B8 C3 90 00 1D [07:43:15]RAPDU: 26 9B A6 28 97 67 B8 C3 90 00 [07:43:15]wFMCommunicate OK [07:43:15]SAM_PROTO_SignData done [07:43:15]FM_MakeSignedData done [07:43:15]CreateOFDProtocolMessage [07:43:15]wFMCommunicate request_size=4 [07:43:15]MH_SAM_APDU [07:43:15]CAPDU: 80 11 00 00 [07:43:15]Write to MH i2c: E2 08 00 90 0A 80 11 00 00 00 00 00 00 14 [07:43:15]Write i2c OK [07:43:15]MH_I2C_Read... [07:43:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:15]Read from MH i2c: E2 [07:43:15]MH_I2C_Read... [07:43:15]Read from MH i2c: E2 17 00 [07:43:15]MH_I2C_Read... [07:43:15]Read from MH i2c: E2 17 00 90 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6F [07:43:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:43:15]wFMCommunicate OK [07:43:15]CreateOFDProtocolMessage done [07:43:15]OFDSenderStorePacket 119314 [07:43:15]StoreOFDPacket docnum=119314 [07:43:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 01 55 07 01 11 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 13 EB A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 12 D2 01 00 35 04 06 00 41 14 E7 31 34 69 26 9B A6 28 97 67 B8 C3 [07:43:15]CheckFolder [07:43:15]dirname=/storage/ofd_packets [07:43:15]CheckFolder done [07:43:15]ProducePacketName [07:43:15]name=ofd_packets/00119314 [07:43:15]NVStorageSaveData ofd_packets/00119314 [07:43:15]File name is /storage/ofd_packets/00119314 [07:43:15]Write 301 bytes [07:43:15]NVStorageSaveData done [07:43:15]OFDSenderStorePacket done [07:43:15]KKMCreateOFDPacket done [07:43:15]NVStorageSaveData kkm_last_timestamp [07:43:15]File name is /storage/kkm_last_timestamp [07:43:15]Write 4 bytes [07:43:15]NVStorageSaveData done [07:43:15]ExternCall_PrintAddStr [07:43:15]wPrintStart [07:43:15]Write to MH i2c: 01 00 00 91 0A 9B [07:43:15]Write i2c OK [07:43:15]MH_I2C_Read... [07:43:15]Read from MH i2c: 01 [07:43:15]MH_I2C_Read... [07:43:15]Read from MH i2c: 01 07 00 [07:43:15]MH_I2C_Read... [07:43:15]Read from MH i2c: 01 07 00 91 0A 00 00 00 00 00 FF 0F B0 [07:43:15]RasterBufferAndPrint [07:43:15]line Счет N : (1)950240 [07:43:15]line ИНН: 02508201610067 [07:43:15]line Контрольно-Кассовый Чек [07:43:15]line ПРОДАЖА [07:43:15]line ТРК (МРК, ГНК) : 41 [07:43:15]line Товар: 2710124130 [07:43:15]line Аи-92-К-4 [07:43:15]line 4.430 * 67.80 [07:43:15]line = 300.35 [07:43:15]line НДС 12% НСП 1% [07:43:15]line > о реализуемом товаре [07:43:15]line ОКРУГЛЕНИЕ: -0.35 [07:43:15]line ИТОГО: 300.00 [07:43:15]line Внесено: 300.00 [07:43:15]line СДАЧА: 0.00 [07:43:15]line НСП 1% : 2.66 [07:43:15]line НДС 12% : 31.90 [07:43:15]line Наличными: 300.00 [07:43:15]line Безнал.: 0.00 [07:43:15]line Место: АЗС № 134 "Партнер Нефть" [07:43:15]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:43:15]line СНО: Общий режим [07:43:15]line Чек 45 31.07.2024 07:43 [07:43:15]line Смена: 436 ФФД: 1.0 [07:43:15]line ЗНМ: 0300000044 [07:43:15]line РНМ: 0000000000092660 [07:43:15]line Версия ККМ: 001 [07:43:15]line ФМ: 0000000000874939 [07:43:15]line ФД: 119314 [07:43:15]line ФПД: 71558033912937 [07:43:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T074315&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119314&fm=71558033912937&tin=02508201610067®Number=0000000000092660&sum=30000 [07:43:16]OFD Sender: Processing packet 119314 [packets to send 86, broken 85] [07:43:16]ProducePacketName [07:43:16]name=ofd_packets/00119314 [07:43:16]OFD Sender: To server: pG, [07:43:16]CommunicateWithHost lk.salyk.kg:30040 [07:43:16]ConnectInit lk.salyk.kg [07:43:16]written 0, free lines is 4095 [07:43:16]Connected sock=10 [07:43:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 01 55 07 01 11 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 13 EB A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 12 D2 01 00 35 04 06 00 41 14 E7 31 34 69 26 9B A6 28 97 67 B8 C3 [07:43:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 FA 8C 47 00 14 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 39 33 39 10 04 04 00 12 D2 01 00 F4 03 04 00 9C 98 A9 66 B6 04 01 00 00 9F 80 63 D5 6A 4A 00 7D [07:43:16]CommunicateWithHost err = 0 [07:43:16]CheckOFDResponse [07:43:16]1017 (14) - 77093643461234 [07:43:16]1041 (16) - 0000000000874939 [07:43:16]1040 (4) - 119314 [07:43:16]1012 (4) - 31.07.2024 01:51 [07:43:16]1206 (1) - 0 [07:43:16]OFD Sender: Remove packet 119314 [07:43:16]ProducePacketName [07:43:16]name=ofd_packets/00119314 [07:43:16]NVStorageDeleteData [07:43:16]Write to MH i2c: 01 00 00 BB 0A C5 [07:43:16]Write i2c OK [07:43:16]MH_I2C_Read... [07:43:16]Read from MH i2c: 01 [07:43:16]MH_I2C_Read... [07:43:16]Read from MH i2c: 01 07 00 [07:43:16]MH_I2C_Read... [07:43:16]Read from MH i2c: 01 07 00 BB 0A 00 00 00 00 00 C8 0C A0 [07:43:16]RasterBufferAndPrint [07:43:16]line [07:43:16]line [07:43:16]line [07:43:16]line [07:43:16]line [07:43:16]written 0, free lines is 3278 [07:43:16]MH_Cut [07:43:16]Write to MH i2c: D1 01 00 C2 0A 01 9E [07:43:16]Write i2c OK [07:43:16]MH_I2C_Read... [07:43:16]Read from MH i2c: D1 [07:43:16]MH_I2C_Read... [07:43:16]Read from MH i2c: D1 01 00 [07:43:16]MH_I2C_Read... [07:43:16]Read from MH i2c: D1 01 00 C2 0A 00 9D [07:43:16]Write to MH i2c: 01 00 00 C3 0A CD [07:43:16]Write i2c OK [07:43:16]MH_I2C_Read... [07:43:16]OFD Sender: No OFD packet to send [07:43:17]*** Cut start [07:43:17]*** Partial cut [07:43:17]*** CUTSNS_PIN = 1 [07:43:17]*** CUTSNS_PIN = 0 [07:43:17]*** Brake cut motor [07:43:17]Read from MH i2c: 01 [07:43:17]MH_I2C_Read... [07:43:17]*** Stop cut motor [07:43:17]*** Cut end [07:43:17]Read from MH i2c: 01 07 00 [07:43:17]MH_I2C_Read... [07:43:17]Read from MH i2c: 01 07 00 C3 0A 00 00 00 00 00 FF 0F E2 [07:43:17]process_action close_receipt done [07:43:17]requested_data is exist [07:43:17]produce_requested_data [07:43:17]requested_item fm.sn is exist - process it [07:43:17]wFMCommunicate request_size=4 [07:43:17]MH_SAM_APDU [07:43:17]CAPDU: 80 11 00 00 [07:43:17]Write to MH i2c: E2 08 00 C4 0A 80 11 00 00 00 00 00 00 48 [07:43:17]Write i2c OK [07:43:17]MH_I2C_Read... [07:43:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:18]Read from MH i2c: E2 [07:43:18]MH_I2C_Read... [07:43:18]Read from MH i2c: E2 17 00 [07:43:18]MH_I2C_Read... [07:43:18]Read from MH i2c: E2 17 00 C4 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A3 [07:43:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:43:18]wFMCommunicate OK [07:43:18]requested_item fd.num is exist - process it [07:43:18]SAM_PROTO_GetFieldsCounters [07:43:18]wFMCommunicate request_size=4 [07:43:18]MH_SAM_APDU [07:43:18]CAPDU: 80 13 00 00 [07:43:18]Write to MH i2c: E2 08 00 C5 0A 80 13 00 00 00 00 00 00 4B [07:43:18]Write i2c OK [07:43:18]MH_I2C_Read... [07:43:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:43:18]Read from MH i2c: E2 [07:43:18]MH_I2C_Read... [07:43:18]Read from MH i2c: E2 62 00 [07:43:18]MH_I2C_Read... [07:43:18]Read from MH i2c: E2 62 00 C5 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 12 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [07:43:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 12 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:43:18]wFMCommunicate OK [07:43:18]SAM_PROTO_GetFieldsCounters done [07:43:18]requested_item shift.num is exist - process it [07:43:18]requested_item shift.opened is exist - process it [07:43:18]req_shift_opened [07:43:18]FM_GetShiftState [07:43:18]SAM_PROTO_GetShiftState [07:43:18]wFMCommunicate request_size=4 [07:43:18]MH_SAM_APDU [07:43:18]CAPDU: 80 13 01 00 [07:43:18]Write to MH i2c: E2 08 00 C6 0A 80 13 01 00 00 00 00 00 4D [07:43:18]Write i2c OK [07:43:18]MH_I2C_Read... [07:43:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:18]Read from MH i2c: E2 [07:43:18]MH_I2C_Read... [07:43:18]Read from MH i2c: E2 0E 00 [07:43:18]MH_I2C_Read... [07:43:18]Read from MH i2c: E2 0E 00 C6 0A 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 E5 [07:43:18]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [07:43:18]wFMCommunicate OK [07:43:18]SAM_PROTO_GetShiftState done [07:43:18]FM_GetShiftState done [07:43:18]req_shift_opened done [07:43:18]requested_item shift.open_date is exist - process it [07:43:18]req_shift_open_date [07:43:18]req_shift_open_date done [07:43:18]produce_requested_data done [07:43:18]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119314,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [07:43:18]process_action_free close_receipt [07:43:18]json_value_free [07:43:18]json_value_free done [07:43:18]process_json_proto returns [07:43:18]Send response to host [07:43:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119314,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [07:43:18]free response buf [07:43:18]execute_script done [07:43:18]execute_script returns [07:43:18]free content buf [07:43:18]Sock 8.Close socket [07:43:18]Sock 8.Thread stoped [07:43:21]accept exits with 9 [07:43:21]New connection [07:43:21]New thread 3067338084 created [07:43:21]Thread 3067194724 joined [07:43:21]Waiting for new connection... [07:43:21] Sock 9.Parse request [07:43:21]Sock 9.Check first char [07:43:21]Sock 9.First char is OK [07:43:21]request: POST /json_proto HTTP/1.0 [07:43:21]Method: POST [07:43:21]URL: /json_proto [07:43:21]Method is POST - this is cgi request [07:43:21]url: /json_proto [07:43:21]query_string will be loaded in cgi processing [07:43:21]execute_cgi json_proto POST (null) [07:43:21]execute_cgi path=json_proto method=POST [07:43:21]POST find Content-Length [07:43:21]Host: 172.17.45.7:8080 [07:43:21]Content-Length: 674 [07:43:21]Content-Type: application/json [07:43:21] [07:43:21]POST finish read [07:43:21]Found Content-Length = 674 [07:43:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:21]execute_script... [07:43: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)950241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:21]POST & json_proto [07:43:21]process_json_proto [07:43:21]json parsed OK: [07:43:21]protocol is kg_v1.0 [07:43:21]action value=close_receipt [07:43:21]process_action close_receipt [07:43:21]cmd_close_receipt [07:43:21]MH_GetDate [07:43:21]Write to MH i2c: F0 00 00 C7 0A C0 [07:43:21]Write i2c OK [07:43:21]MH_I2C_Read... [07:43:21]Read from MH i2c: F0 [07:43:21]MH_I2C_Read... [07:43:21]Read from MH i2c: F0 09 00 [07:43:21]MH_I2C_Read... [07:43:21]Read from MH i2c: F0 09 00 C7 0A 00 1A EB A9 66 90 0F 3E 66 20 [07:43:21]GetLastDocTimeStamp 1722411795 [07:43:21]current date 1722411802 [07:43:21]FM_GetShiftState [07:43:21]SAM_PROTO_GetShiftState [07:43:21]wFMCommunicate request_size=4 [07:43:21]MH_SAM_APDU [07:43:21]CAPDU: 80 13 01 00 [07:43:21]Write to MH i2c: E2 08 00 C8 0A 80 13 01 00 00 00 00 00 4F [07:43:21]Write i2c OK [07:43:21]MH_I2C_Read... [07:43:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:21]Read from MH i2c: E2 [07:43:21]MH_I2C_Read... [07:43:21]Read from MH i2c: E2 0E 00 [07:43:21]MH_I2C_Read... [07:43:21]Read from MH i2c: E2 0E 00 C8 0A 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 E7 [07:43:21]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [07:43:21]wFMCommunicate OK [07:43:21]SAM_PROTO_GetShiftState done [07:43:21]FM_GetShiftState done [07:43:21]opened in 1722384637 [07:43:21]opened+sec_in_day 1722471037 [07:43:21]quantity*price = 50063 [07:43:21]sum+1 = 50064 [07:43:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 46 31.07.2024 07:43 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119315 ФПД: 165760841564106 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T074322&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119315&fm=165760841564106&tin=02508201610067®Number=0000000000092660&sum=50000 [07:43:22]StoreToDocumentArchive [07:43:22]shift 436 fd 119315 [07:43:22]save to /storage/0436/doc_00119315 [07:43:22]save last doc name /storage/0436/doc_00119315 to /storage/kkm_last_doc_name [07:43:22]save OK [07:43:22]Clear old archive folders... [07:43:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:43:22]tlvbuf is 00AF5C90 [07:43:22]SAM_PROTO_ClearQueue [07:43:22]wFMCommunicate request_size=4 [07:43:22]MH_SAM_APDU [07:43:22]CAPDU: 80 09 00 00 [07:43:22]Write to MH i2c: E2 08 00 D5 0A 80 09 00 00 00 00 00 00 51 [07:43:22]Write i2c OK [07:43:22]MH_I2C_Read... [07:43:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:43:22]Read from MH i2c: E2 [07:43:22]MH_I2C_Read... [07:43:22]Read from MH i2c: E2 03 00 [07:43:22]MH_I2C_Read... [07:43:22]Read from MH i2c: E2 03 00 D5 0A 00 90 00 53 [07:43:22]RAPDU: 90 00 [07:43:22]wFMCommunicate OK [07:43:22]SAM_PROTO_ClearQueue done [07:43:22]KKMCreateOFDPacket [07:43:22]OFDProtocolAddRootSTLVToBuf [07:43:22]FM_MakeSignedData [07:43:22]FM_MakeSignedData [07:43:22]SAM_PROTO_SignData [07:43:22]wFMCommunicate request_size=4 [07:43:22]MH_SAM_APDU [07:43:22]CAPDU: 80 0D 01 02 [07:43:22]Write to MH i2c: E2 08 00 D6 0A 80 0D 01 02 00 00 00 00 59 [07:43:22]Write i2c OK [07:43:22]MH_I2C_Read... [07:43:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:43:22]Read from MH i2c: E2 [07:43:22]MH_I2C_Read... [07:43:22]Read from MH i2c: E2 03 00 [07:43:22]MH_I2C_Read... [07:43:22]Read from MH i2c: E2 03 00 D6 0A 00 90 00 54 [07:43:22]RAPDU: 90 00 [07:43:22]wFMCommunicate OK [07:43:22]wFMCommunicate request_size=255 [07:43:22]MH_SAM_APDU [07:43:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 1A EB A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 13 D2 01 00 35 04 06 00 96 C2 34 14 [07:43:22]Write to MH i2c: E2 02 01 D7 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 1A EB A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 13 D2 01 00 35 04 06 00 96 C2 34 14 00 00 EE [07:43:22]Write i2c OK [07:43:22]MH_I2C_Read... [07:43:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:22]Read from MH i2c: E2 [07:43:22]MH_I2C_Read... [07:43:22]Read from MH i2c: E2 03 00 [07:43:22]MH_I2C_Read... [07:43:22]Read from MH i2c: E2 03 00 D7 0A 00 90 00 55 [07:43:22]RAPDU: 90 00 [07:43:22]wFMCommunicate OK [07:43:22]wFMCommunicate request_size=7 [07:43:22]MH_SAM_APDU [07:43:22]CAPDU: 80 0D 02 02 02 3F CA [07:43:22]Write to MH i2c: E2 0A 00 D8 0A 80 0D 02 02 02 00 3F CA 00 00 69 [07:43:22]Write i2c OK [07:43:22]MH_I2C_Read... [07:43:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:22]Read from MH i2c: E2 [07:43:22]MH_I2C_Read... [07:43:22]Read from MH i2c: E2 03 00 [07:43:22]MH_I2C_Read... [07:43:22]Read from MH i2c: E2 03 00 D8 0A 00 90 00 56 [07:43:22]RAPDU: 90 00 [07:43:22]wFMCommunicate OK [07:43:22]wFMCommunicate request_size=4 [07:43:22]MH_SAM_APDU [07:43:22]CAPDU: 80 0D 03 02 [07:43:22]Write to MH i2c: E2 08 00 D9 0A 80 0D 03 02 00 00 00 00 5E [07:43:22]Write i2c OK [07:43:22]MH_I2C_Read... [07:43:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:43:22]Read from MH i2c: E2 [07:43:22]MH_I2C_Read... [07:43:22]Read from MH i2c: E2 0B 00 [07:43:22]MH_I2C_Read... [07:43:22]Read from MH i2c: E2 0B 00 D9 0A 00 F3 D1 65 39 5B 44 86 37 90 00 1D [07:43:22]RAPDU: F3 D1 65 39 5B 44 86 37 90 00 [07:43:22]wFMCommunicate OK [07:43:22]SAM_PROTO_SignData done [07:43:22]FM_MakeSignedData done [07:43:22]CreateOFDProtocolMessage [07:43:22]wFMCommunicate request_size=4 [07:43:22]MH_SAM_APDU [07:43:22]CAPDU: 80 11 00 00 [07:43:22]Write to MH i2c: E2 08 00 DA 0A 80 11 00 00 00 00 00 00 5E [07:43:22]Write i2c OK [07:43:22]MH_I2C_Read... [07:43:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:22]Read from MH i2c: E2 [07:43:22]MH_I2C_Read... [07:43:22]Read from MH i2c: E2 17 00 [07:43:22]MH_I2C_Read... [07:43:22]Read from MH i2c: E2 17 00 DA 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B9 [07:43:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:43:22]wFMCommunicate OK [07:43:22]CreateOFDProtocolMessage done [07:43:22]OFDSenderStorePacket 119315 [07:43:22]StoreOFDPacket docnum=119315 [07:43:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 DF 50 04 01 40 BE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 1A EB A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 13 D2 01 00 35 04 06 00 96 C2 34 14 3F CA F3 D1 65 39 5B 44 86 37 [07:43:22]CheckFolder [07:43:22]dirname=/storage/ofd_packets [07:43:22]CheckFolder done [07:43:22]ProducePacketName [07:43:22]name=ofd_packets/00119315 [07:43:22]NVStorageSaveData ofd_packets/00119315 [07:43:22]File name is /storage/ofd_packets/00119315 [07:43:22]Write 298 bytes [07:43:22]NVStorageSaveData done [07:43:22]OFDSenderStorePacket done [07:43:22]KKMCreateOFDPacket done [07:43:22]NVStorageSaveData kkm_last_timestamp [07:43:22]File name is /storage/kkm_last_timestamp [07:43:22]Write 4 bytes [07:43:22]NVStorageSaveData done [07:43:22]ExternCall_PrintAddStr [07:43:22]wPrintStart [07:43:22]Write to MH i2c: 01 00 00 DB 0A E5 [07:43:22]Write i2c OK [07:43:22]MH_I2C_Read... [07:43:22]Read from MH i2c: 01 [07:43:22]MH_I2C_Read... [07:43:22]Read from MH i2c: 01 07 00 [07:43:22]MH_I2C_Read... [07:43:22]Read from MH i2c: 01 07 00 DB 0A 00 00 00 00 00 FF 0F FA [07:43:22]RasterBufferAndPrint [07:43:22]line Счет N : (1)950241 [07:43:22]line ИНН: 02508201610067 [07:43:22]line Контрольно-Кассовый Чек [07:43:22]line ПРОДАЖА [07:43:22]line ТРК (МРК, ГНК) : 54 [07:43:22]line Товар: 2710194800 [07:43:22]line ДТ-К-5 [07:43:22]line 6.570 * 76.20 [07:43:22]line = 500.63 [07:43:22]line НДС 12% НСП 1% [07:43:22]line > о реализуемом товаре [07:43:22]line ОКРУГЛЕНИЕ: -0.63 [07:43:22]line ИТОГО: 500.00 [07:43:22]line Внесено: 500.00 [07:43:22]line СДАЧА: 0.00 [07:43:22]line НСП 1% : 4.43 [07:43:22]line НДС 12% : 53.16 [07:43:22]line Наличными: 500.00 [07:43:22]line Безнал.: 0.00 [07:43:22]line Место: АЗС № 134 "Партнер Нефть" [07:43:22]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:43:22]line СНО: Общий режим [07:43:22]line Чек 46 31.07.2024 07:43 [07:43:22]line Смена: 436 ФФД: 1.0 [07:43:22]line ЗНМ: 0300000044 [07:43:22]line РНМ: 0000000000092660 [07:43:22]line Версия ККМ: 001 [07:43:22]line ФМ: 0000000000874939 [07:43:22]OFD Sender: Processing packet 119315 [packets to send 86, broken 85] [07:43:22]ProducePacketName [07:43:22]name=ofd_packets/00119315 [07:43:22]OFD Sender: To server: pG, [07:43:22]CommunicateWithHost lk.salyk.kg:30040 [07:43:22]ConnectInit lk.salyk.kg [07:43:22]line ФД: 119315 [07:43:22]line ФПД: 165760841564106 [07:43:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T074322&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119315&fm=165760841564106&tin=02508201610067®Number=0000000000092660&sum=50000 [07:43:22]written 0, free lines is 4095 [07:43:23]Connected sock=10 [07:43: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 39 33 39 0C 01 00 00 DF 50 04 01 40 BE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 1A EB A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 13 D2 01 00 35 04 06 00 96 C2 34 14 3F CA F3 D1 65 39 5B 44 86 37 [07:43:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E9 F5 47 00 9F CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 13 D2 01 00 F4 03 04 00 A3 98 A9 66 B6 04 01 00 00 DB 1F 66 2E 6A F5 A5 ED [07:43:23]CommunicateWithHost err = 0 [07:43:23]CheckOFDResponse [07:43:23]1017 (14) - 77093643461234 [07:43:23]1041 (16) - 0000000000874939 [07:43:23]1040 (4) - 119315 [07:43:23]1012 (4) - 31.07.2024 01:51 [07:43:23]1206 (1) - 0 [07:43:23]OFD Sender: Remove packet 119315 [07:43:23]ProducePacketName [07:43:23]name=ofd_packets/00119315 [07:43:23]NVStorageDeleteData [07:43:23]Write to MH i2c: 01 00 00 05 0B 10 [07:43:23]Write i2c OK [07:43:23]MH_I2C_Read... [07:43:23]Read from MH i2c: 01 [07:43:23]MH_I2C_Read... [07:43:23]Read from MH i2c: 01 07 00 [07:43:23]MH_I2C_Read... [07:43:23]Read from MH i2c: 01 07 00 05 0B 00 00 00 00 00 DD 0C 00 [07:43:23]RasterBufferAndPrint [07:43:23]line [07:43:23]line [07:43:23]line [07:43:23]line [07:43:23]line [07:43:23]written 0, free lines is 3305 [07:43:23]MH_Cut [07:43:23]Write to MH i2c: D1 01 00 0C 0B 01 E9 [07:43:23]Write i2c OK [07:43:23]MH_I2C_Read... [07:43:23]Read from MH i2c: D1 [07:43:23]MH_I2C_Read... [07:43:23]Read from MH i2c: D1 01 00 [07:43:23]MH_I2C_Read... [07:43:23]Read from MH i2c: D1 01 00 0C 0B 00 E8 [07:43:23]Write to MH i2c: 01 00 00 0D 0B 18 [07:43:23]Write i2c OK [07:43:23]MH_I2C_Read... [07:43:23]OFD Sender: No OFD packet to send [07:43:24]*** Cut start [07:43:24]*** Partial cut [07:43:24]*** CUTSNS_PIN = 1 [07:43:24]*** CUTSNS_PIN = 0 [07:43:24]*** Brake cut motor [07:43:24]Read from MH i2c: 01 [07:43:24]MH_I2C_Read... [07:43:24]*** Stop cut motor [07:43:24]*** Cut end [07:43:24]Read from MH i2c: 01 07 00 [07:43:24]MH_I2C_Read... [07:43:24]Read from MH i2c: 01 07 00 0D 0B 00 00 00 00 00 FF 0F 2D [07:43:24]process_action close_receipt done [07:43:24]requested_data is exist [07:43:24]produce_requested_data [07:43:24]requested_item fm.sn is exist - process it [07:43:24]wFMCommunicate request_size=4 [07:43:24]MH_SAM_APDU [07:43:24]CAPDU: 80 11 00 00 [07:43:24]Write to MH i2c: E2 08 00 0E 0B 80 11 00 00 00 00 00 00 93 [07:43:24]Write i2c OK [07:43:24]MH_I2C_Read... [07:43:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:24]Read from MH i2c: E2 [07:43:24]MH_I2C_Read... [07:43:24]Read from MH i2c: E2 17 00 [07:43:24]MH_I2C_Read... [07:43:24]Read from MH i2c: E2 17 00 0E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EE [07:43:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:43:24]wFMCommunicate OK [07:43:24]requested_item fd.num is exist - process it [07:43:24]SAM_PROTO_GetFieldsCounters [07:43:24]wFMCommunicate request_size=4 [07:43:24]MH_SAM_APDU [07:43:24]CAPDU: 80 13 00 00 [07:43:24]Write to MH i2c: E2 08 00 0F 0B 80 13 00 00 00 00 00 00 96 [07:43:24]Write i2c OK [07:43:24]MH_I2C_Read... [07:43:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:43:24]Read from MH i2c: E2 [07:43:24]MH_I2C_Read... [07:43:24]Read from MH i2c: E2 62 00 [07:43:24]MH_I2C_Read... [07:43:24]Read from MH i2c: E2 62 00 0F 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 13 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [07:43: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 13 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:43:25]wFMCommunicate OK [07:43:25]SAM_PROTO_GetFieldsCounters done [07:43:25]requested_item shift.num is exist - process it [07:43:25]requested_item shift.opened is exist - process it [07:43:25]req_shift_opened [07:43:25]FM_GetShiftState [07:43:25]SAM_PROTO_GetShiftState [07:43:25]wFMCommunicate request_size=4 [07:43:25]MH_SAM_APDU [07:43:25]CAPDU: 80 13 01 00 [07:43:25]Write to MH i2c: E2 08 00 10 0B 80 13 01 00 00 00 00 00 98 [07:43:25]Write i2c OK [07:43:25]MH_I2C_Read... [07:43:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:25]Read from MH i2c: E2 [07:43:25]MH_I2C_Read... [07:43:25]Read from MH i2c: E2 0E 00 [07:43:25]MH_I2C_Read... [07:43:25]Read from MH i2c: E2 0E 00 10 0B 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 30 [07:43:25]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [07:43:25]wFMCommunicate OK [07:43:25]SAM_PROTO_GetShiftState done [07:43:25]FM_GetShiftState done [07:43:25]req_shift_opened done [07:43:25]requested_item shift.open_date is exist - process it [07:43:25]req_shift_open_date [07:43:25]req_shift_open_date done [07:43:25]produce_requested_data done [07:43:25]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119315,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [07:43:25]process_action_free close_receipt [07:43:25]json_value_free [07:43:25]json_value_free done [07:43:25]process_json_proto returns [07:43:25]Send response to host [07:43:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119315,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [07:43:25]free response buf [07:43:25]execute_script done [07:43:25]execute_script returns [07:43:25]free content buf [07:43:25]Sock 9.Close socket [07:43:25]Sock 9.Thread stoped [07:43:28]OFD Sender: No OFD packet to send [07:43:33]OFD Sender: No OFD packet to send [07:43:38]OFD Sender: No OFD packet to send [07:43:43]OFD Sender: No OFD packet to send [07:43:48]OFD Sender: No OFD packet to send [07:43:53]OFD Sender: No OFD packet to send [07:43: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: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:44]OFD Sender: No OFD packet to send [07:46:49]OFD Sender: No OFD packet to send [07:46:54]OFD Sender: No OFD packet to send [07:46:59]OFD Sender: No OFD packet to send [07:47:04]OFD Sender: No OFD packet to send [07:47:09]OFD Sender: No OFD packet to send [07:47:14]OFD Sender: No OFD packet to send [07:47:19]OFD Sender: No OFD packet to send [07:47:24]OFD Sender: No OFD packet to send [07:47:29]OFD Sender: No OFD packet to send [07:47:34]OFD Sender: No OFD packet to send [07:47:39]OFD Sender: No OFD packet to send [07:47:44]OFD Sender: No OFD packet to send [07:47:49]OFD Sender: No OFD packet to send [07:47:54]OFD Sender: No OFD packet to send [07:47:59]OFD Sender: No OFD packet to send [07:48:04]OFD Sender: No OFD packet to send [07:48:09]OFD Sender: No OFD packet to send [07:48:14]OFD Sender: No OFD packet to send [07:48:19]OFD Sender: No OFD packet to send [07:48:24]OFD Sender: No OFD packet to send [07:48:25]accept exits with 8 [07:48:25]New connection [07:48:25]New thread 3067194724 created [07:48:25]Thread 3067338084 joined [07:48:25]Waiting for new connection... [07:48:25] Sock 8.Parse request [07:48:25]Sock 8.Check first char [07:48:25]Sock 8.First char is OK [07:48:25]request: POST /json_proto HTTP/1.0 [07:48:25]Method: POST [07:48:25]URL: /json_proto [07:48:25]Method is POST - this is cgi request [07:48:25]url: /json_proto [07:48:25]query_string will be loaded in cgi processing [07:48:25]execute_cgi json_proto POST (null) [07:48:25]execute_cgi path=json_proto method=POST [07:48:25]POST find Content-Length [07:48:25]Host: 172.17.45.7:8080 [07:48:25]Content-Length: 819 [07:48:25]Content-Type: application/json [07:48:25] [07:48:25]POST finish read [07:48:25]Found Content-Length = 819 [07:48:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:25]execute_script... [07:48: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)950242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:25]POST & json_proto [07:48:25]process_json_proto [07:48:25]json parsed OK: [07:48:25]protocol is kg_v1.0 [07:48:25]action value=close_receipt [07:48:25]process_action close_receipt [07:48:25]cmd_close_receipt [07:48:25]MH_GetDate [07:48:25]Write to MH i2c: F0 00 00 11 0B 0B [07:48:25]Write i2c OK [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: F0 [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: F0 09 00 [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: F0 09 00 11 0B 00 4A EC A9 66 90 0F 3E 66 9C [07:48:25]GetLastDocTimeStamp 1722411802 [07:48:25]current date 1722412106 [07:48:25]FM_GetShiftState [07:48:25]SAM_PROTO_GetShiftState [07:48:25]wFMCommunicate request_size=4 [07:48:25]MH_SAM_APDU [07:48:25]CAPDU: 80 13 01 00 [07:48:25]Write to MH i2c: E2 08 00 12 0B 80 13 01 00 00 00 00 00 9A [07:48:25]Write i2c OK [07:48:25]MH_I2C_Read... [07:48:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:25]Read from MH i2c: E2 [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: E2 0E 00 [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: E2 0E 00 12 0B 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 32 [07:48:25]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [07:48:25]wFMCommunicate OK [07:48:25]SAM_PROTO_GetShiftState done [07:48:25]FM_GetShiftState done [07:48:25]opened in 1722384637 [07:48:25]opened+sec_in_day 1722471037 [07:48:25]quantity*price = 200025 [07:48:25]sum+1 = 200026 [07:48:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 47 31.07.2024 07:48 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119316 ФПД: 222260887552592 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T074826&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119316&fm=222260887552592&tin=02508201610067®Number=0000000000092660&sum=200000 [07:48:26]StoreToDocumentArchive [07:48:26]shift 436 fd 119316 [07:48:26]save to /storage/0436/doc_00119316 [07:48:26]save last doc name /storage/0436/doc_00119316 to /storage/kkm_last_doc_name [07:48:26]save OK [07:48:26]Clear old archive folders... [07:48:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:48:26]tlvbuf is 00B2FA10 [07:48:26]SAM_PROTO_ClearQueue [07:48:26]wFMCommunicate request_size=4 [07:48:26]MH_SAM_APDU [07:48:26]CAPDU: 80 09 00 00 [07:48:26]Write to MH i2c: E2 08 00 1F 0B 80 09 00 00 00 00 00 00 9C [07:48:26]Write i2c OK [07:48:26]MH_I2C_Read... [07:48:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:48:26]Read from MH i2c: E2 [07:48:26]MH_I2C_Read... [07:48:26]Read from MH i2c: E2 03 00 [07:48:26]MH_I2C_Read... [07:48:26]Read from MH i2c: E2 03 00 1F 0B 00 90 00 9E [07:48:26]RAPDU: 90 00 [07:48:26]wFMCommunicate OK [07:48:26]SAM_PROTO_ClearQueue done [07:48:26]KKMCreateOFDPacket [07:48:26]OFDProtocolAddRootSTLVToBuf [07:48:26]FM_MakeSignedData [07:48:26]FM_MakeSignedData [07:48:26]SAM_PROTO_SignData [07:48:26]wFMCommunicate request_size=4 [07:48:26]MH_SAM_APDU [07:48:26]CAPDU: 80 0D 01 02 [07:48:26]Write to MH i2c: E2 08 00 20 0B 80 0D 01 02 00 00 00 00 A4 [07:48:26]Write i2c OK [07:48:26]MH_I2C_Read... [07:48:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:48:26]Read from MH i2c: E2 [07:48:26]MH_I2C_Read... [07:48:26]Read from MH i2c: E2 03 00 [07:48:26]MH_I2C_Read... [07:48:26]Read from MH i2c: E2 03 00 20 0B 00 90 00 9F [07:48:26]RAPDU: 90 00 [07:48:26]wFMCommunicate OK [07:48:26]wFMCommunicate request_size=255 [07:48:26]MH_SAM_APDU [07:48:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 4A EC A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 14 D2 01 00 35 04 06 00 CA 25 25 40 [07:48:26]Write to MH i2c: E2 02 01 21 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 4A EC A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 14 D2 01 00 35 04 06 00 CA 25 25 40 00 00 86 [07:48:26]Write i2c OK [07:48:26]MH_I2C_Read... [07:48:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:26]Read from MH i2c: E2 [07:48:26]MH_I2C_Read... [07:48:26]Read from MH i2c: E2 03 00 [07:48:26]MH_I2C_Read... [07:48:26]Read from MH i2c: E2 03 00 21 0B 00 90 00 A0 [07:48:26]RAPDU: 90 00 [07:48:26]wFMCommunicate OK [07:48:26]wFMCommunicate request_size=7 [07:48:26]MH_SAM_APDU [07:48:26]CAPDU: 80 0D 02 02 02 02 50 [07:48:26]Write to MH i2c: E2 0A 00 22 0B 80 0D 02 02 02 00 02 50 00 00 FD [07:48:26]Write i2c OK [07:48:26]MH_I2C_Read... [07:48:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:26]Read from MH i2c: E2 [07:48:26]MH_I2C_Read... [07:48:26]Read from MH i2c: E2 03 00 [07:48:26]MH_I2C_Read... [07:48:26]Read from MH i2c: E2 03 00 22 0B 00 90 00 A1 [07:48:26]RAPDU: 90 00 [07:48:26]wFMCommunicate OK [07:48:26]wFMCommunicate request_size=4 [07:48:26]MH_SAM_APDU [07:48:26]CAPDU: 80 0D 03 02 [07:48:26]Write to MH i2c: E2 08 00 23 0B 80 0D 03 02 00 00 00 00 A9 [07:48:26]Write i2c OK [07:48:26]MH_I2C_Read... [07:48:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:48:26]Read from MH i2c: E2 [07:48:26]MH_I2C_Read... [07:48:26]Read from MH i2c: E2 0B 00 [07:48:26]MH_I2C_Read... [07:48:26]Read from MH i2c: E2 0B 00 23 0B 00 63 22 07 5F 76 D8 7E 8F 90 00 F0 [07:48:26]RAPDU: 63 22 07 5F 76 D8 7E 8F 90 00 [07:48:26]wFMCommunicate OK [07:48:26]SAM_PROTO_SignData done [07:48:26]FM_MakeSignedData done [07:48:26]CreateOFDProtocolMessage [07:48:26]wFMCommunicate request_size=4 [07:48:26]MH_SAM_APDU [07:48:26]CAPDU: 80 11 00 00 [07:48:26]Write to MH i2c: E2 08 00 24 0B 80 11 00 00 00 00 00 00 A9 [07:48:26]Write i2c OK [07:48:26]MH_I2C_Read... [07:48:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:26]Read from MH i2c: E2 [07:48:26]MH_I2C_Read... [07:48:26]Read from MH i2c: E2 17 00 [07:48:26]MH_I2C_Read... [07:48:26]Read from MH i2c: E2 17 00 24 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 04 [07:48:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:48:26]wFMCommunicate OK [07:48:26]CreateOFDProtocolMessage done [07:48:26]OFDSenderStorePacket 119316 [07:48:26]StoreOFDPacket docnum=119316 [07:48:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 39 32 04 01 46 CD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 4A EC A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 14 D2 01 00 35 04 06 00 CA 25 25 40 02 50 63 22 07 5F 76 D8 7E 8F [07:48:26]CheckFolder [07:48:26]dirname=/storage/ofd_packets [07:48:26]CheckFolder done [07:48:26]ProducePacketName [07:48:26]name=ofd_packets/00119316 [07:48:26]NVStorageSaveData ofd_packets/00119316 [07:48:26]File name is /storage/ofd_packets/00119316 [07:48:26]Write 298 bytes [07:48:26]NVStorageSaveData done [07:48:26]OFDSenderStorePacket done [07:48:26]KKMCreateOFDPacket done [07:48:26]NVStorageSaveData kkm_last_timestamp [07:48:26]File name is /storage/kkm_last_timestamp [07:48:26]Write 4 bytes [07:48:26]NVStorageSaveData done [07:48:26]ExternCall_PrintAddStr [07:48:26]wPrintStart [07:48:26]Write to MH i2c: 01 00 00 25 0B 30 [07:48:26]Write i2c OK [07:48:26]MH_I2C_Read... [07:48:26]Read from MH i2c: 01 [07:48:26]MH_I2C_Read... [07:48:26]Read from MH i2c: 01 07 00 [07:48:26]MH_I2C_Read... [07:48:26]Read from MH i2c: 01 07 00 25 0B 00 00 00 00 00 FF 0F 45 [07:48:26]RasterBufferAndPrint [07:48:26]line Счет N : (1)950242 [07:48:26]line ИНН: 02508201610067 [07:48:26]line Контрольно-Кассовый Чек [07:48:26]line ПРОДАЖА [07:48:26]line ТРК (МРК, ГНК) : 34 [07:48:26]line Товар: 2710194800 [07:48:26]line ДТ-К-5 [07:48:26]line 26.250 * 76.20 [07:48:26]line = 2000.25 [07:48:26]line НДС 12% НСП 1% [07:48:26]line > о реализуемом товаре [07:48:26]line ОКРУГЛЕНИЕ: -0.25 [07:48:26]line ИТОГО: 2000.00 [07:48:26]line НСП 1% : 17.70 [07:48:26]line НДС 12% : 212.42 [07:48:26]line Наличными: 0.00 [07:48:26]line Безнал.: 2000.00 [07:48:26]line Место: АЗС № 134 "Партнер Нефть" [07:48:26]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:48:26]line СНО: Общий режим [07:48:26]line Чек 47 31.07.2024 07:48 [07:48:26]line Смена: 436 ФФД: 1.0 [07:48:26]line ЗНМ: 0300000044 [07:48:26]line РНМ: 0000000000092660 [07:48:26]line Версия ККМ: 001 [07:48:26]line Платежная система: O! деньги [07:48:26]line ФМ: 0000000000874939 [07:48:26]line ФД: 119316 [07:48:26]line ФПД: 222260887552592 [07:48:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T074826&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119316&fm=222260887552592&tin=02508201610067®Number=0000000000092660&sum=200000 [07:48:27]OFD Sender: Processing packet 119316 [packets to send 86, broken 85] [07:48:27]ProducePacketName [07:48:27]name=ofd_packets/00119316 [07:48:27]OFD Sender: To server: pG, [07:48:27]CommunicateWithHost lk.salyk.kg:30040 [07:48:27]ConnectInit lk.salyk.kg [07:48:27]written 0, free lines is 4095 [07:48:27]Write to MH i2c: 01 00 00 4F 0B 5A [07:48:27]Write i2c OK [07:48:27]MH_I2C_Read... [07:48:27]Read from MH i2c: 01 [07:48:27]MH_I2C_Read... [07:48:27]Read from MH i2c: 01 07 00 [07:48:27]MH_I2C_Read... [07:48:27]Read from MH i2c: 01 07 00 4F 0B 00 00 00 00 00 CE 0C 3B [07:48:27]RasterBufferAndPrint [07:48:27]line [07:48:27]line [07:48:27]line [07:48:27]line [07:48:27]line [07:48:27]written 0, free lines is 3281 [07:48:27]MH_Cut [07:48:27]Write to MH i2c: D1 01 00 56 0B 01 33 [07:48:27]Write i2c OK [07:48:27]MH_I2C_Read... [07:48:27]Read from MH i2c: D1 [07:48:27]MH_I2C_Read... [07:48:27]Read from MH i2c: D1 01 00 [07:48:27]MH_I2C_Read... [07:48:27]Read from MH i2c: D1 01 00 56 0B 00 32 [07:48:27]Write to MH i2c: 01 00 00 57 0B 62 [07:48:27]Write i2c OK [07:48:27]MH_I2C_Read... [07:48:28]*** Cut start [07:48:28]*** Partial cut [07:48:28]*** CUTSNS_PIN = 1 [07:48:28]*** CUTSNS_PIN = 0 [07:48:28]*** Brake cut motor [07:48:29]Read from MH i2c: 01 [07:48:29]MH_I2C_Read... [07:48:29]*** Stop cut motor [07:48:29]*** Cut end [07:48:29]Read from MH i2c: 01 07 00 [07:48:29]MH_I2C_Read... [07:48:29]Read from MH i2c: 01 07 00 57 0B 00 00 00 00 00 FF 0F 77 [07:48:29]process_action close_receipt done [07:48:29]requested_data is exist [07:48:29]produce_requested_data [07:48:29]requested_item fm.sn is exist - process it [07:48:29]wFMCommunicate request_size=4 [07:48:29]MH_SAM_APDU [07:48:29]CAPDU: 80 11 00 00 [07:48:29]Write to MH i2c: E2 08 00 58 0B 80 11 00 00 00 00 00 00 DD [07:48:29]Write i2c OK [07:48:29]MH_I2C_Read... [07:48:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:29]Read from MH i2c: E2 [07:48:29]MH_I2C_Read... [07:48:29]Read from MH i2c: E2 17 00 [07:48:29]MH_I2C_Read... [07:48:29]Read from MH i2c: E2 17 00 58 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 38 [07:48:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:48:29]wFMCommunicate OK [07:48:29]requested_item fd.num is exist - process it [07:48:29]SAM_PROTO_GetFieldsCounters [07:48:29]wFMCommunicate request_size=4 [07:48:29]MH_SAM_APDU [07:48:29]CAPDU: 80 13 00 00 [07:48:29]Write to MH i2c: E2 08 00 59 0B 80 13 00 00 00 00 00 00 E0 [07:48:29]Write i2c OK [07:48:29]MH_I2C_Read... [07:48:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:48:29]Read from MH i2c: E2 [07:48:29]MH_I2C_Read... [07:48:29]Read from MH i2c: E2 62 00 [07:48:29]MH_I2C_Read... [07:48:29]Read from MH i2c: E2 62 00 59 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 14 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [07:48: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 14 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:48:29]wFMCommunicate OK [07:48:29]SAM_PROTO_GetFieldsCounters done [07:48:29]requested_item shift.num is exist - process it [07:48:29]requested_item shift.opened is exist - process it [07:48:29]req_shift_opened [07:48:29]FM_GetShiftState [07:48:29]SAM_PROTO_GetShiftState [07:48:29]wFMCommunicate request_size=4 [07:48:29]MH_SAM_APDU [07:48:29]CAPDU: 80 13 01 00 [07:48:29]Write to MH i2c: E2 08 00 5A 0B 80 13 01 00 00 00 00 00 E2 [07:48:29]Write i2c OK [07:48:29]MH_I2C_Read... [07:48:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:29]Read from MH i2c: E2 [07:48:29]MH_I2C_Read... [07:48:29]Read from MH i2c: E2 0E 00 [07:48:29]MH_I2C_Read... [07:48:29]Read from MH i2c: E2 0E 00 5A 0B 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 7A [07:48:29]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [07:48:29]wFMCommunicate OK [07:48:29]SAM_PROTO_GetShiftState done [07:48:29]FM_GetShiftState done [07:48:29]req_shift_opened done [07:48:29]requested_item shift.open_date is exist - process it [07:48:29]req_shift_open_date [07:48:29]req_shift_open_date done [07:48:29]produce_requested_data done [07:48:29]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119316,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [07:48:29]process_action_free close_receipt [07:48:29]json_value_free [07:48:29]json_value_free done [07:48:29]process_json_proto returns [07:48:29]Send response to host [07:48:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119316,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [07:48:29]free response buf [07:48:29]execute_script done [07:48:29]execute_script returns [07:48:29]free content buf [07:48:29]Sock 8.Close socket [07:48:29]Sock 8.Thread stoped [07:50:38]ConnectInit Can't connect to host [07:50:38]CommunicateWithHost connect error [07:50:38]CommunicateWithHost err = -1 [07:50:38]OFD Sender: Server communicate error [07:50:43]OFD Sender: Processing packet 119316 [packets to send 86, broken 85] [07:50:43]ProducePacketName [07:50:43]name=ofd_packets/00119316 [07:50:43]OFD Sender: To server: pG, [07:50:43]CommunicateWithHost lk.salyk.kg:30040 [07:50:43]ConnectInit lk.salyk.kg [07:50:43]Connected sock=8 [07:50: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 39 33 39 0C 01 00 00 39 32 04 01 46 CD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 4A EC A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 14 D2 01 00 35 04 06 00 CA 25 25 40 02 50 63 22 07 5F 76 D8 7E 8F [07:50:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 27 CE 47 00 1B 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 14 D2 01 00 F4 03 04 00 5C 9A A9 66 B6 04 01 00 00 18 91 66 69 84 E6 FD 4A [07:50:43]CommunicateWithHost err = 0 [07:50:43]CheckOFDResponse [07:50:43]1017 (14) - 77093643461234 [07:50:43]1041 (16) - 0000000000874939 [07:50:43]1040 (4) - 119316 [07:50:43]1012 (4) - 31.07.2024 01:58 [07:50:43]1206 (1) - 0 [07:50:43]OFD Sender: Remove packet 119316 [07:50:43]ProducePacketName [07:50:43]name=ofd_packets/00119316 [07:50:43]NVStorageDeleteData [07:50:44]OFD Sender: No OFD packet to send [07:50:49]OFD Sender: No OFD packet to send [07:50:54]OFD Sender: No OFD packet to send [07:50:59]OFD Sender: No OFD packet to send [07:51:04]OFD Sender: No OFD packet to send [07:51:09]OFD Sender: No OFD packet to send [07:51:14]OFD Sender: No OFD packet to send [07:51:19]OFD Sender: No OFD packet to send [07:51:24]OFD Sender: No OFD packet to send [07:51:29]OFD Sender: No OFD packet to send [07:51:34]OFD Sender: No OFD packet to send [07:51:39]OFD Sender: No OFD packet to send [07:51:40]accept exits with 9 [07:51:40]New connection [07:51:40]New thread 3067338084 created [07:51:40]Thread 3067194724 joined [07:51:40]Waiting for new connection... [07:51:40] Sock 9.Parse request [07:51:40]Sock 9.Check first char [07:51:40]Sock 9.First char is OK [07:51:40]request: POST /json_proto HTTP/1.0 [07:51:40]Method: POST [07:51:40]URL: /json_proto [07:51:40]Method is POST - this is cgi request [07:51:40]url: /json_proto [07:51:40]query_string will be loaded in cgi processing [07:51:40]execute_cgi json_proto POST (null) [07:51:40]execute_cgi path=json_proto method=POST [07:51:40]POST find Content-Length [07:51:40]Host: 172.17.45.7:8080 [07:51:40]Content-Length: 834 [07:51:40]Content-Type: application/json [07:51:40] [07:51:40]POST finish read [07:51:40]Found Content-Length = 834 [07:51:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 73.54, "quantity" : 9.520, "sum" : 700.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 700.00, "payments": [ { "type": 1, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:51:40]execute_script... [07:51: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)950243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 73.54, "quantity" : 9.520, "sum" : 700.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 700.00, "payments": [ { "type": 1, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:51:40]POST & json_proto [07:51:40]process_json_proto [07:51:40]json parsed OK: [07:51:40]protocol is kg_v1.0 [07:51:40]action value=close_receipt [07:51:40]process_action close_receipt [07:51:40]cmd_close_receipt [07:51:40]MH_GetDate [07:51:40]Write to MH i2c: F0 00 00 5B 0B 55 [07:51:40]Write i2c OK [07:51:40]MH_I2C_Read... [07:51:40]Read from MH i2c: F0 [07:51:40]MH_I2C_Read... [07:51:40]Read from MH i2c: F0 09 00 [07:51:40]MH_I2C_Read... [07:51:40]Read from MH i2c: F0 09 00 5B 0B 00 0E ED A9 66 90 0F 3E 66 AB [07:51:40]GetLastDocTimeStamp 1722412106 [07:51:40]current date 1722412302 [07:51:40]FM_GetShiftState [07:51:40]SAM_PROTO_GetShiftState [07:51:40]wFMCommunicate request_size=4 [07:51:40]MH_SAM_APDU [07:51:40]CAPDU: 80 13 01 00 [07:51:40]Write to MH i2c: E2 08 00 5C 0B 80 13 01 00 00 00 00 00 E4 [07:51:40]Write i2c OK [07:51:40]MH_I2C_Read... [07:51:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:51:40]Read from MH i2c: E2 [07:51:40]MH_I2C_Read... [07:51:40]Read from MH i2c: E2 0E 00 [07:51:40]MH_I2C_Read... [07:51:40]Read from MH i2c: E2 0E 00 5C 0B 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 7C [07:51:40]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [07:51:40]wFMCommunicate OK [07:51:40]SAM_PROTO_GetShiftState done [07:51:40]FM_GetShiftState done [07:51:40]opened in 1722384637 [07:51:40]opened+sec_in_day 1722471037 [07:51:40]quantity*price = 70010 [07:51:40]sum+1 = 70011 [07:51:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 700.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 0.00 Безнал.: 700.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 48 31.07.2024 07:51 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874939 ФД: 119317 ФПД: 254960672632679 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T075142&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119317&fm=254960672632679&tin=02508201610067®Number=0000000000092660&sum=70000 [07:51:41]StoreToDocumentArchive [07:51:41]shift 436 fd 119317 [07:51:41]save to /storage/0436/doc_00119317 [07:51:41]save last doc name /storage/0436/doc_00119317 to /storage/kkm_last_doc_name [07:51:41]save OK [07:51:41]Clear old archive folders... [07:51:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:51:41]tlvbuf is 00ADA3D0 [07:51:41]SAM_PROTO_ClearQueue [07:51:41]wFMCommunicate request_size=4 [07:51:41]MH_SAM_APDU [07:51:41]CAPDU: 80 09 00 00 [07:51:41]Write to MH i2c: E2 08 00 69 0B 80 09 00 00 00 00 00 00 E6 [07:51:41]Write i2c OK [07:51:41]MH_I2C_Read... [07:51:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:51:41]Read from MH i2c: E2 [07:51:41]MH_I2C_Read... [07:51:41]Read from MH i2c: E2 03 00 [07:51:41]MH_I2C_Read... [07:51:41]Read from MH i2c: E2 03 00 69 0B 00 90 00 E8 [07:51:41]RAPDU: 90 00 [07:51:41]wFMCommunicate OK [07:51:41]SAM_PROTO_ClearQueue done [07:51:41]KKMCreateOFDPacket [07:51:41]OFDProtocolAddRootSTLVToBuf [07:51:41]FM_MakeSignedData [07:51:41]FM_MakeSignedData [07:51:41]SAM_PROTO_SignData [07:51:41]wFMCommunicate request_size=4 [07:51:41]MH_SAM_APDU [07:51:41]CAPDU: 80 0D 01 02 [07:51:41]Write to MH i2c: E2 08 00 6A 0B 80 0D 01 02 00 00 00 00 EE [07:51:41]Write i2c OK [07:51:41]MH_I2C_Read... [07:51:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:51:41]Read from MH i2c: E2 [07:51:41]MH_I2C_Read... [07:51:41]Read from MH i2c: E2 03 00 [07:51:41]MH_I2C_Read... [07:51:41]Read from MH i2c: E2 03 00 6A 0B 00 90 00 E9 [07:51:41]RAPDU: 90 00 [07:51:41]wFMCommunicate OK [07:51:41]wFMCommunicate request_size=255 [07:51:41]MH_SAM_APDU [07:51:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 30 25 00 00 00 00 00 37 04 06 00 BA 1C 00 00 00 00 13 04 06 00 7A 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 0B 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 0E ED A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 15 D2 01 00 35 04 06 00 E7 [07:51:41]Write to MH i2c: E2 02 01 6B 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 30 25 00 00 00 00 00 37 04 06 00 BA 1C 00 00 00 00 13 04 06 00 7A 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 0B 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 0E ED A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 15 D2 01 00 35 04 06 00 E7 00 00 0F [07:51:41]Write i2c OK [07:51:41]MH_I2C_Read... [07:51:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:51:42]Read from MH i2c: E2 [07:51:42]MH_I2C_Read... [07:51:42]Read from MH i2c: E2 03 00 [07:51:42]MH_I2C_Read... [07:51:42]Read from MH i2c: E2 03 00 6B 0B 00 90 00 EA [07:51:42]RAPDU: 90 00 [07:51:42]wFMCommunicate OK [07:51:42]wFMCommunicate request_size=10 [07:51:42]MH_SAM_APDU [07:51:42]CAPDU: 80 0D 02 02 05 E2 A8 52 EF 67 [07:51:42]Write to MH i2c: E2 0D 00 6C 0B 80 0D 02 02 05 00 E2 A8 52 EF 67 00 00 2D [07:51:42]Write i2c OK [07:51:42]MH_I2C_Read... [07:51:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:51:42]Read from MH i2c: E2 [07:51:42]MH_I2C_Read... [07:51:42]Read from MH i2c: E2 03 00 [07:51:42]MH_I2C_Read... [07:51:42]Read from MH i2c: E2 03 00 6C 0B 00 90 00 EB [07:51:42]RAPDU: 90 00 [07:51:42]wFMCommunicate OK [07:51:42]wFMCommunicate request_size=4 [07:51:42]MH_SAM_APDU [07:51:42]CAPDU: 80 0D 03 02 [07:51:42]Write to MH i2c: E2 08 00 6D 0B 80 0D 03 02 00 00 00 00 F3 [07:51:42]Write i2c OK [07:51:42]MH_I2C_Read... [07:51:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:51:42]Read from MH i2c: E2 [07:51:42]MH_I2C_Read... [07:51:42]Read from MH i2c: E2 0B 00 [07:51:42]MH_I2C_Read... [07:51:42]Read from MH i2c: E2 0B 00 6D 0B 00 27 CC 41 89 68 4F 16 82 90 00 00 [07:51:42]RAPDU: 27 CC 41 89 68 4F 16 82 90 00 [07:51:42]wFMCommunicate OK [07:51:42]SAM_PROTO_SignData done [07:51:42]FM_MakeSignedData done [07:51:42]CreateOFDProtocolMessage [07:51:42]wFMCommunicate request_size=4 [07:51:42]MH_SAM_APDU [07:51:42]CAPDU: 80 11 00 00 [07:51:42]Write to MH i2c: E2 08 00 6E 0B 80 11 00 00 00 00 00 00 F3 [07:51:42]Write i2c OK [07:51:42]MH_I2C_Read... [07:51:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:51:42]Read from MH i2c: E2 [07:51:42]MH_I2C_Read... [07:51:42]Read from MH i2c: E2 17 00 [07:51:42]MH_I2C_Read... [07:51:42]Read from MH i2c: E2 17 00 6E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4E [07:51:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:51:42]wFMCommunicate OK [07:51:42]CreateOFDProtocolMessage done [07:51:42]OFDSenderStorePacket 119317 [07:51:42]StoreOFDPacket docnum=119317 [07:51:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 5D 3F 07 01 A0 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 30 25 00 00 00 00 00 37 04 06 00 BA 1C 00 00 00 00 13 04 06 00 7A 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 0B 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 0E ED A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 15 D2 01 00 35 04 06 00 E7 E2 A8 52 EF 67 27 CC 41 89 68 4F 16 82 [07:51:42]CheckFolder [07:51:42]dirname=/storage/ofd_packets [07:51:42]CheckFolder done [07:51:42]ProducePacketName [07:51:42]name=ofd_packets/00119317 [07:51:42]NVStorageSaveData ofd_packets/00119317 [07:51:42]File name is /storage/ofd_packets/00119317 [07:51:42]Write 301 bytes [07:51:42]NVStorageSaveData done [07:51:42]OFDSenderStorePacket done [07:51:42]KKMCreateOFDPacket done [07:51:42]NVStorageSaveData kkm_last_timestamp [07:51:42]File name is /storage/kkm_last_timestamp [07:51:42]Write 4 bytes [07:51:42]NVStorageSaveData done [07:51:42]ExternCall_PrintAddStr [07:51:42]wPrintStart [07:51:42]Write to MH i2c: 01 00 00 6F 0B 7A [07:51:42]Write i2c OK [07:51:42]MH_I2C_Read... [07:51:42]Read from MH i2c: 01 [07:51:42]MH_I2C_Read... [07:51:42]Read from MH i2c: 01 07 00 [07:51:42]MH_I2C_Read... [07:51:42]Read from MH i2c: 01 07 00 6F 0B 00 00 00 00 00 FF 0F 8F [07:51:42]RasterBufferAndPrint [07:51:42]line Счет N : (1)950243 [07:51:42]line ИНН: 02508201610067 [07:51:42]line Контрольно-Кассовый Чек [07:51:42]line ПРОДАЖА [07:51:42]line ТРК (МРК, ГНК) : 63 [07:51:42]line Товар: 2710124500 [07:51:42]line Аи-95-К-3 [07:51:42]line 9.520 * 73.54 [07:51:42]line = 700.10 [07:51:42]line НДС 12% НСП 1% [07:51:42]line > о реализуемом товаре [07:51:42]line ОКРУГЛЕНИЕ: -0.10 [07:51:42]line ИТОГО: 700.00 [07:51:42]line НСП 1% : 6.20 [07:51:42]line НДС 12% : 74.35 [07:51:42]line Наличными: 0.00 [07:51:42]line Безнал.: 700.00 [07:51:42]line Место: АЗС № 134 "Партнер Нефть" [07:51:42]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:51:42]line СНО: Общий режим [07:51:42]line Чек 48 31.07.2024 07:51 [07:51:42]line Смена: 436 ФФД: 1.0 [07:51:42]line ЗНМ: 0300000044 [07:51:42]line РНМ: 0000000000092660 [07:51:42]line Версия ККМ: 001 [07:51:42]line Платежная система: Бакай Банк [07:51:42]line ФМ: 0000000000874939 [07:51:42]line ФД: 119317 [07:51:42]line ФПД: 254960672632679 [07:51:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T075142&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119317&fm=254960672632679&tin=02508201610067®Number=0000000000092660&sum=70000 [07:51:42]written 0, free lines is 4095 [07:51:42]OFD Sender: Processing packet 119317 [packets to send 86, broken 85] [07:51:42]ProducePacketName [07:51:42]name=ofd_packets/00119317 [07:51:42]OFD Sender: To server: pG, [07:51:42]CommunicateWithHost lk.salyk.kg:30040 [07:51:42]ConnectInit lk.salyk.kg [07:51:42]Connected sock=10 [07:51:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 5D 3F 07 01 A0 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 30 25 00 00 00 00 00 37 04 06 00 BA 1C 00 00 00 00 13 04 06 00 7A 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 0B 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 0E ED A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 15 D2 01 00 35 04 06 00 E7 E2 A8 52 EF 67 27 CC 41 89 68 4F 16 82 [07:51:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 49 41 47 00 3F 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 15 D2 01 00 F4 03 04 00 97 9A A9 66 B6 04 01 00 00 6C ED 5A 17 80 77 66 07 [07:51:42]CommunicateWithHost err = 0 [07:51:42]CheckOFDResponse [07:51:42]1017 (14) - 77093643461234 [07:51:42]1041 (16) - 0000000000874939 [07:51:42]1040 (4) - 119317 [07:51:42]1012 (4) - 31.07.2024 01:59 [07:51:42]1206 (1) - 0 [07:51:42]OFD Sender: Remove packet 119317 [07:51:42]ProducePacketName [07:51:42]name=ofd_packets/00119317 [07:51:42]NVStorageDeleteData [07:51:43]Write to MH i2c: 01 00 00 99 0B A4 [07:51:43]Write i2c OK [07:51:43]MH_I2C_Read... [07:51:43]Read from MH i2c: 01 [07:51:43]MH_I2C_Read... [07:51:43]Read from MH i2c: 01 07 00 [07:51:43]MH_I2C_Read... [07:51:43]Read from MH i2c: 01 07 00 99 0B 00 00 00 00 00 CE 0C 85 [07:51:43]RasterBufferAndPrint [07:51:43]line [07:51:43]line [07:51:43]line [07:51:43]line [07:51:43]line [07:51:43]written 0, free lines is 3282 [07:51:43]MH_Cut [07:51:43]Write to MH i2c: D1 01 00 A0 0B 01 7D [07:51:43]Write i2c OK [07:51:43]MH_I2C_Read... [07:51:43]Read from MH i2c: D1 [07:51:43]MH_I2C_Read... [07:51:43]Read from MH i2c: D1 01 00 [07:51:43]MH_I2C_Read... [07:51:43]Read from MH i2c: D1 01 00 A0 0B 00 7C [07:51:43]Write to MH i2c: 01 00 00 A1 0B AC [07:51:43]Write i2c OK [07:51:43]MH_I2C_Read... [07:51:43]OFD Sender: No OFD packet to send [07:51:43]*** Cut start [07:51:43]*** Partial cut [07:51:43]*** CUTSNS_PIN = 1 [07:51:43]*** CUTSNS_PIN = 0 [07:51:44]*** Brake cut motor [07:51:44]Read from MH i2c: 01 [07:51:44]MH_I2C_Read... [07:51:44]*** Stop cut motor [07:51:44]*** Cut end [07:51:44]Read from MH i2c: 01 07 00 [07:51:44]MH_I2C_Read... [07:51:44]Read from MH i2c: 01 07 00 A1 0B 00 00 00 00 00 FF 0F C1 [07:51:44]process_action close_receipt done [07:51:44]requested_data is exist [07:51:44]produce_requested_data [07:51:44]requested_item fm.sn is exist - process it [07:51:44]wFMCommunicate request_size=4 [07:51:44]MH_SAM_APDU [07:51:44]CAPDU: 80 11 00 00 [07:51:44]Write to MH i2c: E2 08 00 A2 0B 80 11 00 00 00 00 00 00 27 [07:51:44]Write i2c OK [07:51:44]MH_I2C_Read... [07:51:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:51:44]Read from MH i2c: E2 [07:51:44]MH_I2C_Read... [07:51:44]Read from MH i2c: E2 17 00 [07:51:44]MH_I2C_Read... [07:51:44]Read from MH i2c: E2 17 00 A2 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 82 [07:51:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:51:44]wFMCommunicate OK [07:51:44]requested_item fd.num is exist - process it [07:51:44]SAM_PROTO_GetFieldsCounters [07:51:44]wFMCommunicate request_size=4 [07:51:44]MH_SAM_APDU [07:51:44]CAPDU: 80 13 00 00 [07:51:44]Write to MH i2c: E2 08 00 A3 0B 80 13 00 00 00 00 00 00 2A [07:51:44]Write i2c OK [07:51:44]MH_I2C_Read... [07:51:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:51:44]Read from MH i2c: E2 [07:51:44]MH_I2C_Read... [07:51:44]Read from MH i2c: E2 62 00 [07:51:44]MH_I2C_Read... [07:51:44]Read from MH i2c: E2 62 00 A3 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 15 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [07:51: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 15 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:51:44]wFMCommunicate OK [07:51:44]SAM_PROTO_GetFieldsCounters done [07:51:44]requested_item shift.num is exist - process it [07:51:44]requested_item shift.opened is exist - process it [07:51:44]req_shift_opened [07:51:44]FM_GetShiftState [07:51:44]SAM_PROTO_GetShiftState [07:51:44]wFMCommunicate request_size=4 [07:51:44]MH_SAM_APDU [07:51:44]CAPDU: 80 13 01 00 [07:51:44]Write to MH i2c: E2 08 00 A4 0B 80 13 01 00 00 00 00 00 2C [07:51:44]Write i2c OK [07:51:44]MH_I2C_Read... [07:51:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:51:44]Read from MH i2c: E2 [07:51:44]MH_I2C_Read... [07:51:44]Read from MH i2c: E2 0E 00 [07:51:44]MH_I2C_Read... [07:51:44]Read from MH i2c: E2 0E 00 A4 0B 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 C4 [07:51:44]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [07:51:44]wFMCommunicate OK [07:51:44]SAM_PROTO_GetShiftState done [07:51:44]FM_GetShiftState done [07:51:44]req_shift_opened done [07:51:44]requested_item shift.open_date is exist - process it [07:51:44]req_shift_open_date [07:51:44]req_shift_open_date done [07:51:44]produce_requested_data done [07:51:44]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119317,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [07:51:44]process_action_free close_receipt [07:51:44]json_value_free [07:51:44]json_value_free done [07:51:44]process_json_proto returns [07:51:44]Send response to host [07:51:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119317,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [07:51:44]free response buf [07:51:44]execute_script done [07:51:44]execute_script returns [07:51:44]free content buf [07:51:44]Sock 9.Close socket [07:51:44]Sock 9.Thread stoped [07:51:48]OFD Sender: No OFD packet to send [07:51:53]OFD Sender: No OFD packet to send [07:51:58]OFD Sender: No OFD packet to send [07:52:03]OFD Sender: No OFD packet to send [07:52:08]OFD Sender: No OFD packet to send [07:52:13]OFD Sender: No OFD packet to send [07:52:18]OFD Sender: No OFD packet to send [07:52:23]OFD Sender: No OFD packet to send [07:52:25]accept exits with 8 [07:52:25]New connection [07:52:25]New thread 3067194724 created [07:52:25]Thread 3067338084 joined [07:52:25]Waiting for new connection... [07:52:25] Sock 8.Parse request [07:52:25]Sock 8.Check first char [07:52:25]Sock 8.First char is OK [07:52:25]request: POST /json_proto HTTP/1.0 [07:52:25]Method: POST [07:52:25]URL: /json_proto [07:52:25]Method is POST - this is cgi request [07:52:25]url: /json_proto [07:52:25]query_string will be loaded in cgi processing [07:52:25]execute_cgi json_proto POST (null) [07:52:25]execute_cgi path=json_proto method=POST [07:52:25]POST find Content-Length [07:52:25]Host: 172.17.45.7:8080 [07:52:25]Content-Length: 739 [07:52:25]Content-Type: application/json [07:52:25] [07:52:25]POST finish read [07:52:25]Found Content-Length = 739 [07:52:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 119301, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:52:25]execute_script... [07:52:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 119301, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:52:25]POST & json_proto [07:52:25]process_json_proto [07:52:25]json parsed OK: [07:52:25]protocol is kg_v1.0 [07:52:25]action value=close_receipt [07:52:25]process_action close_receipt [07:52:25]cmd_close_receipt [07:52:25]MH_GetDate [07:52:25]Write to MH i2c: F0 00 00 A5 0B 9F [07:52:25]Write i2c OK [07:52:25]MH_I2C_Read... [07:52:25]Read from MH i2c: F0 [07:52:25]MH_I2C_Read... [07:52:25]Read from MH i2c: F0 09 00 [07:52:25]MH_I2C_Read... [07:52:25]Read from MH i2c: F0 09 00 A5 0B 00 3B ED A9 66 90 0F 3E 66 22 [07:52:25]GetLastDocTimeStamp 1722412302 [07:52:25]current date 1722412347 [07:52:25]FM_GetShiftState [07:52:25]SAM_PROTO_GetShiftState [07:52:25]wFMCommunicate request_size=4 [07:52:25]MH_SAM_APDU [07:52:25]CAPDU: 80 13 01 00 [07:52:25]Write to MH i2c: E2 08 00 A6 0B 80 13 01 00 00 00 00 00 2E [07:52:25]Write i2c OK [07:52:25]MH_I2C_Read... [07:52:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:25]Read from MH i2c: E2 [07:52:25]MH_I2C_Read... [07:52:25]Read from MH i2c: E2 0E 00 [07:52:25]MH_I2C_Read... [07:52:25]Read from MH i2c: E2 0E 00 A6 0B 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 C6 [07:52:25]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [07:52:25]wFMCommunicate OK [07:52:25]SAM_PROTO_GetShiftState done [07:52:25]FM_GetShiftState done [07:52:25]opened in 1722384637 [07:52:25]opened+sec_in_day 1722471037 [07:52:25]quantity*price = 200043 [07:52:25]sum+1 = 200044 [07:52:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 49 31.07.2024 07:52 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФД осн.: 119301 ФМ осн.: 0000000000874939 ФМ: 0000000000874939 ФД: 119318 ФПД: 151484369567082 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T075227&type=2&operation_type=1&fn_number=0000000000874939&fd_number=119318&fm=151484369567082&tin=02508201610067®Number=0000000000092660&sum=200000 [07:52:26]StoreToDocumentArchive [07:52:26]shift 436 fd 119318 [07:52:26]save to /storage/0436/doc_00119318 [07:52:26]save last doc name /storage/0436/doc_00119318 to /storage/kkm_last_doc_name [07:52:26]save OK [07:52:26]Clear old archive folders... [07:52:26]ProcessDocumentItem done err = 0, tmpTLVsize=279 [07:52:26]tlvbuf is B6F1F840 [07:52:26]SAM_PROTO_ClearQueue [07:52:26]wFMCommunicate request_size=4 [07:52:26]MH_SAM_APDU [07:52:26]CAPDU: 80 09 00 00 [07:52:26]Write to MH i2c: E2 08 00 B5 0B 80 09 00 00 00 00 00 00 32 [07:52:26]Write i2c OK [07:52:26]MH_I2C_Read... [07:52:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:52:26]Read from MH i2c: E2 [07:52:26]MH_I2C_Read... [07:52:26]Read from MH i2c: E2 03 00 [07:52:26]MH_I2C_Read... [07:52:26]Read from MH i2c: E2 03 00 B5 0B 00 90 00 34 [07:52:26]RAPDU: 90 00 [07:52:26]wFMCommunicate OK [07:52:26]SAM_PROTO_ClearQueue done [07:52:26]KKMCreateOFDPacket [07:52:26]OFDProtocolAddRootSTLVToBuf [07:52:26]FM_MakeSignedData [07:52:26]FM_MakeSignedData [07:52:26]SAM_PROTO_SignData [07:52:26]wFMCommunicate request_size=4 [07:52:26]MH_SAM_APDU [07:52:26]CAPDU: 80 0D 01 02 [07:52:26]Write to MH i2c: E2 08 00 B6 0B 80 0D 01 02 00 00 00 00 3A [07:52:26]Write i2c OK [07:52:26]MH_I2C_Read... [07:52:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:52:26]Read from MH i2c: E2 [07:52:26]MH_I2C_Read... [07:52:26]Read from MH i2c: E2 03 00 [07:52:26]MH_I2C_Read... [07:52:26]Read from MH i2c: E2 03 00 B6 0B 00 90 00 35 [07:52:26]RAPDU: 90 00 [07:52:26]wFMCommunicate OK [07:52:26]wFMCommunicate request_size=255 [07:52:26]MH_SAM_APDU [07:52:26]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 3B ED A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 05 D2 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 [07:52:26]Write to MH i2c: E2 02 01 B7 0B 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 3B ED A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 05 D2 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 00 00 CC [07:52:26]Write i2c OK [07:52:26]MH_I2C_Read... [07:52:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:27]Read from MH i2c: E2 [07:52:27]MH_I2C_Read... [07:52:27]Read from MH i2c: E2 03 00 [07:52:27]MH_I2C_Read... [07:52:27]Read from MH i2c: E2 03 00 B7 0B 00 90 00 36 [07:52:27]RAPDU: 90 00 [07:52:27]wFMCommunicate OK [07:52:27]wFMCommunicate request_size=38 [07:52:27]MH_SAM_APDU [07:52:27]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 16 D2 01 00 35 04 06 00 89 C6 34 09 7D 6A [07:52:27]Write to MH i2c: E2 29 00 B8 0B 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 16 D2 01 00 35 04 06 00 89 C6 34 09 7D 6A 00 00 2A [07:52:27]Write i2c OK [07:52:27]MH_I2C_Read... [07:52:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:27]Read from MH i2c: E2 [07:52:27]MH_I2C_Read... [07:52:27]Read from MH i2c: E2 03 00 [07:52:27]MH_I2C_Read... [07:52:27]Read from MH i2c: E2 03 00 B8 0B 00 90 00 37 [07:52:27]RAPDU: 90 00 [07:52:27]wFMCommunicate OK [07:52:27]wFMCommunicate request_size=4 [07:52:27]MH_SAM_APDU [07:52:27]CAPDU: 80 0D 03 02 [07:52:27]Write to MH i2c: E2 08 00 B9 0B 80 0D 03 02 00 00 00 00 3F [07:52:27]Write i2c OK [07:52:27]MH_I2C_Read... [07:52:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:52:27]Read from MH i2c: E2 [07:52:27]MH_I2C_Read... [07:52:27]Read from MH i2c: E2 0B 00 [07:52:27]MH_I2C_Read... [07:52:27]Read from MH i2c: E2 0B 00 B9 0B 00 84 2E 9B EE 7B 84 A1 F2 90 00 0D [07:52:27]RAPDU: 84 2E 9B EE 7B 84 A1 F2 90 00 [07:52:27]wFMCommunicate OK [07:52:27]SAM_PROTO_SignData done [07:52:27]FM_MakeSignedData done [07:52:27]CreateOFDProtocolMessage [07:52:27]wFMCommunicate request_size=4 [07:52:27]MH_SAM_APDU [07:52:27]CAPDU: 80 11 00 00 [07:52:27]Write to MH i2c: E2 08 00 BA 0B 80 11 00 00 00 00 00 00 3F [07:52:27]Write i2c OK [07:52:27]MH_I2C_Read... [07:52:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:27]Read from MH i2c: E2 [07:52:27]MH_I2C_Read... [07:52:27]Read from MH i2c: E2 17 00 [07:52:27]MH_I2C_Read... [07:52:27]Read from MH i2c: E2 17 00 BA 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9A [07:52:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:52:27]wFMCommunicate OK [07:52:27]CreateOFDProtocolMessage done [07:52:27]OFDSenderStorePacket 119318 [07:52:27]StoreOFDPacket docnum=119318 [07:52:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 2B 01 00 00 FF BA 23 01 82 11 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 3B ED A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 05 D2 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 16 D2 01 00 35 04 06 00 89 C6 34 09 7D 6A 84 2E 9B EE 7B 84 A1 F2 [07:52:27]CheckFolder [07:52:27]dirname=/storage/ofd_packets [07:52:27]CheckFolder done [07:52:27]ProducePacketName [07:52:27]name=ofd_packets/00119318 [07:52:27]NVStorageSaveData ofd_packets/00119318 [07:52:27]File name is /storage/ofd_packets/00119318 [07:52:27]Write 329 bytes [07:52:27]NVStorageSaveData done [07:52:27]OFDSenderStorePacket done [07:52:27]KKMCreateOFDPacket done [07:52:27]NVStorageSaveData kkm_last_timestamp [07:52:27]File name is /storage/kkm_last_timestamp [07:52:27]Write 4 bytes [07:52:27]NVStorageSaveData done [07:52:27]ExternCall_PrintAddStr [07:52:27]wPrintStart [07:52:27]Write to MH i2c: 01 00 00 BB 0B C6 [07:52:27]Write i2c OK [07:52:27]MH_I2C_Read... [07:52:27]Read from MH i2c: 01 [07:52:27]MH_I2C_Read... [07:52:27]Read from MH i2c: 01 07 00 [07:52:27]MH_I2C_Read... [07:52:27]Read from MH i2c: 01 07 00 BB 0B 00 00 00 00 00 FF 0F DB [07:52:27]RasterBufferAndPrint [07:52:27]line Счет N : (1)950229 [07:52:27]line ИНН: 02508201610067 [07:52:27]line Контрольно-Кассовый Чек [07:52:27]line ВОЗВРАТ ПРОДАЖИ [07:52:27]line ТРК (МРК, ГНК) : 43 [07:52:27]line Товар: 2710124500 [07:52:27]line Аи-95-К-3 [07:52:27]line 26.960 * 74.20 [07:52:27]line = 2000.43 [07:52:27]line НДС 12% НСП 1% [07:52:27]line > о реализуемом товаре [07:52:27]line ОКРУГЛЕНИЕ: -0.43 [07:52:27]line ИТОГО: 2000.00 [07:52:27]line НСП 1% : 17.70 [07:52:27]line НДС 12% : 212.43 [07:52:27]line Наличными: 2000.00 [07:52:27]line Безнал.: 0.00 [07:52:27]line Место: АЗС № 134 "Партнер Нефть" [07:52:27]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:52:27]line СНО: Общий режим [07:52:27]line Чек 49 31.07.2024 07:52 [07:52:27]line Смена: 436 ФФД: 1.0 [07:52:27]line ЗНМ: 0300000044 [07:52:27]line РНМ: 0000000000092660 [07:52:27]line Версия ККМ: 001 [07:52:27]line ФД осн.: 119301 [07:52:27]line ФМ осн.: 0000000000874939 [07:52:27]line ФМ: 0000000000874939 [07:52:27]line ФД: 119318 [07:52:27]line ФПД: 151484369567082 [07:52:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T075227&type=2&operation_type=1&fn_number=0000000000874939&fd_number=119318&fm=151484369567082&tin=02508201610067®Number=0000000000092660&sum=200000 [07:52:27]OFD Sender: Processing packet 119318 [packets to send 86, broken 85] [07:52:27]ProducePacketName [07:52:27]name=ofd_packets/00119318 [07:52:27]OFD Sender: To server: pG, [07:52:27]CommunicateWithHost lk.salyk.kg:30040 [07:52:27]ConnectInit lk.salyk.kg [07:52:27]written 0, free lines is 4095 [07:52:27]Connected sock=10 [07:52: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 39 33 39 2B 01 00 00 FF BA 23 01 82 11 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 3B ED A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 05 D2 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 16 D2 01 00 35 04 06 00 89 C6 34 09 7D 6A 84 2E 9B EE 7B 84 A1 F2 [07:52:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 29 82 47 00 A3 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 16 D2 01 00 F4 03 04 00 C4 9A A9 66 B6 04 01 00 00 DC A2 55 2E 23 00 0A 3B [07:52:28]CommunicateWithHost err = 0 [07:52:28]CheckOFDResponse [07:52:28]1017 (14) - 77093643461234 [07:52:28]1041 (16) - 0000000000874939 [07:52:28]1040 (4) - 119318 [07:52:28]1012 (4) - 31.07.2024 02:00 [07:52:28]1206 (1) - 0 [07:52:28]OFD Sender: Remove packet 119318 [07:52:28]ProducePacketName [07:52:28]name=ofd_packets/00119318 [07:52:28]NVStorageDeleteData [07:52:28]Write to MH i2c: 01 00 00 E5 0B F0 [07:52:28]Write i2c OK [07:52:28]MH_I2C_Read... [07:52:28]Read from MH i2c: 01 [07:52:28]MH_I2C_Read... [07:52:28]Read from MH i2c: 01 07 00 [07:52:28]MH_I2C_Read... [07:52:28]Read from MH i2c: 01 07 00 E5 0B 00 00 00 00 00 F0 0C F3 [07:52:28]RasterBufferAndPrint [07:52:28]line [07:52:28]line [07:52:28]line [07:52:28]line [07:52:28]line [07:52:28]written 0, free lines is 3322 [07:52:28]MH_Cut [07:52:28]Write to MH i2c: D1 01 00 EC 0B 01 C9 [07:52:28]Write i2c OK [07:52:28]MH_I2C_Read... [07:52:28]Read from MH i2c: D1 [07:52:28]MH_I2C_Read... [07:52:28]Read from MH i2c: D1 01 00 [07:52:28]MH_I2C_Read... [07:52:28]Read from MH i2c: D1 01 00 EC 0B 00 C8 [07:52:28]Write to MH i2c: 01 00 00 ED 0B F8 [07:52:28]Write i2c OK [07:52:28]MH_I2C_Read... [07:52:28]OFD Sender: No OFD packet to send [07:52:28]*** Cut start [07:52:28]*** Partial cut [07:52:28]*** CUTSNS_PIN = 1 [07:52:28]*** CUTSNS_PIN = 0 [07:52:29]*** Brake cut motor [07:52:29]Read from MH i2c: 01 [07:52:29]MH_I2C_Read... [07:52:29]*** Stop cut motor [07:52:29]*** Cut end [07:52:29]Read from MH i2c: 01 07 00 [07:52:29]MH_I2C_Read... [07:52:29]Read from MH i2c: 01 07 00 ED 0B 00 00 00 00 00 FF 0F 0D [07:52:29]process_action close_receipt done [07:52:29]requested_data is exist [07:52:29]produce_requested_data [07:52:29]requested_item fm.sn is exist - process it [07:52:29]wFMCommunicate request_size=4 [07:52:29]MH_SAM_APDU [07:52:29]CAPDU: 80 11 00 00 [07:52:29]Write to MH i2c: E2 08 00 EE 0B 80 11 00 00 00 00 00 00 73 [07:52:29]Write i2c OK [07:52:29]MH_I2C_Read... [07:52:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:29]Read from MH i2c: E2 [07:52:29]MH_I2C_Read... [07:52:29]Read from MH i2c: E2 17 00 [07:52:29]MH_I2C_Read... [07:52:29]Read from MH i2c: E2 17 00 EE 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CE [07:52:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:52:29]wFMCommunicate OK [07:52:29]requested_item fd.num is exist - process it [07:52:29]SAM_PROTO_GetFieldsCounters [07:52:29]wFMCommunicate request_size=4 [07:52:29]MH_SAM_APDU [07:52:29]CAPDU: 80 13 00 00 [07:52:29]Write to MH i2c: E2 08 00 EF 0B 80 13 00 00 00 00 00 00 76 [07:52:29]Write i2c OK [07:52:29]MH_I2C_Read... [07:52:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:52:29]Read from MH i2c: E2 [07:52:29]MH_I2C_Read... [07:52:29]Read from MH i2c: E2 62 00 [07:52:29]MH_I2C_Read... [07:52:29]Read from MH i2c: E2 62 00 EF 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 16 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [07:52: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 16 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:52:29]wFMCommunicate OK [07:52:29]SAM_PROTO_GetFieldsCounters done [07:52:29]requested_item shift.num is exist - process it [07:52:29]requested_item shift.opened is exist - process it [07:52:29]req_shift_opened [07:52:29]FM_GetShiftState [07:52:29]SAM_PROTO_GetShiftState [07:52:29]wFMCommunicate request_size=4 [07:52:29]MH_SAM_APDU [07:52:29]CAPDU: 80 13 01 00 [07:52:29]Write to MH i2c: E2 08 00 F0 0B 80 13 01 00 00 00 00 00 78 [07:52:29]Write i2c OK [07:52:29]MH_I2C_Read... [07:52:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:29]Read from MH i2c: E2 [07:52:29]MH_I2C_Read... [07:52:29]Read from MH i2c: E2 0E 00 [07:52:29]MH_I2C_Read... [07:52:29]Read from MH i2c: E2 0E 00 F0 0B 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 10 [07:52:29]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [07:52:29]wFMCommunicate OK [07:52:29]SAM_PROTO_GetShiftState done [07:52:29]FM_GetShiftState done [07:52:29]req_shift_opened done [07:52:29]requested_item shift.open_date is exist - process it [07:52:29]req_shift_open_date [07:52:29]req_shift_open_date done [07:52:29]produce_requested_data done [07:52:29]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119318,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [07:52:29]process_action_free close_receipt [07:52:29]json_value_free [07:52:29]json_value_free done [07:52:29]process_json_proto returns [07:52:29]Send response to host [07:52:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119318,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [07:52:29]free response buf [07:52:29]execute_script done [07:52:29]execute_script returns [07:52:29]free content buf [07:52:29]Sock 8.Close socket [07:52:29]Sock 8.Thread stoped [07:52:33]OFD Sender: No OFD packet to send [07:52:38]OFD Sender: No OFD packet to send [07:52:43]OFD Sender: No OFD packet to send [07:52:48]OFD Sender: No OFD packet to send [07:52:53]OFD Sender: No OFD packet to send [07:52:58]OFD Sender: No OFD packet to send [07:53:03]OFD Sender: No OFD packet to send [07:53:08]OFD Sender: No OFD packet to send [07:53:13]OFD Sender: No OFD packet to send [07:53:18]OFD Sender: No OFD packet to send [07:53:23]OFD Sender: No OFD packet to send [07:53:28]OFD Sender: No OFD packet to send [07:53:33]OFD Sender: No OFD packet to send [07:53:38]OFD Sender: No OFD packet to send [07:53:43]OFD Sender: No OFD packet to send [07:53:48]OFD Sender: No OFD packet to send [07:53:53]OFD Sender: No OFD packet to send [07:53:58]OFD Sender: No OFD packet to send [07:54:03]OFD Sender: No OFD packet to send [07:54:08]OFD Sender: No OFD packet to send [07:54:13]OFD Sender: No OFD packet to send [07:54:18]OFD Sender: No OFD packet to send [07:54:23]OFD Sender: No OFD packet to send [07:54:28]OFD Sender: No OFD packet to send [07:54:33]OFD Sender: No OFD packet to send [07:54:38]OFD Sender: No OFD packet to send [07:54:43]OFD Sender: No OFD packet to send [07:54:48]OFD Sender: No OFD packet to send [07:54:53]OFD Sender: No OFD packet to send [07:54:58]OFD Sender: No OFD packet to send [07:55:03]OFD Sender: No OFD packet to send [07:55:08]OFD Sender: No OFD packet to send [07:55:13]OFD Sender: No OFD packet to send [07:55:18]OFD Sender: No OFD packet to send [07:55:23]OFD Sender: No OFD packet to send [07:55:28]OFD Sender: No OFD packet to send [07:55:33]accept exits with 9 [07:55:33]New connection [07:55:33]New thread 3067338084 created [07:55:33]Thread 3067194724 joined [07:55:33]Waiting for new connection... [07:55:33] Sock 9.Parse request [07:55:33]Sock 9.Check first char [07:55:33]Sock 9.First char is OK [07:55:33]request: POST /json_proto HTTP/1.0 [07:55:33]Method: POST [07:55:33]URL: /json_proto [07:55:33]Method is POST - this is cgi request [07:55:33]url: /json_proto [07:55:33]query_string will be loaded in cgi processing [07:55:33]execute_cgi json_proto POST (null) [07:55:33]execute_cgi path=json_proto method=POST [07:55:33]POST find Content-Length [07:55:33]Host: 172.17.45.7:8080 [07:55:33]Content-Length: 682 [07:55:33]Content-Type: application/json [07:55:33] [07:55:33]POST finish read [07:55:33]Found Content-Length = 682 [07:55:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:55:33]execute_script... [07:55: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)950244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:55:33]POST & json_proto [07:55:33]process_json_proto [07:55:33]json parsed OK: [07:55:33]protocol is kg_v1.0 [07:55:33]action value=close_receipt [07:55:33]process_action close_receipt [07:55:33]cmd_close_receipt [07:55:33]MH_GetDate [07:55:33]Write to MH i2c: F0 00 00 F1 0B EB [07:55:33]Write i2c OK [07:55:33]MH_I2C_Read... [07:55:33]Read from MH i2c: F0 [07:55:33]MH_I2C_Read... [07:55:33]Read from MH i2c: F0 09 00 [07:55:33]MH_I2C_Read... [07:55:33]Read from MH i2c: F0 09 00 F1 0B 00 F6 ED A9 66 90 0F 3E 66 29 [07:55:33]GetLastDocTimeStamp 1722412347 [07:55:33]current date 1722412534 [07:55:33]FM_GetShiftState [07:55:33]SAM_PROTO_GetShiftState [07:55:33]wFMCommunicate request_size=4 [07:55:33]MH_SAM_APDU [07:55:33]CAPDU: 80 13 01 00 [07:55:33]Write to MH i2c: E2 08 00 F2 0B 80 13 01 00 00 00 00 00 7A [07:55:33]Write i2c OK [07:55:33]MH_I2C_Read... [07:55:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:55:33]Read from MH i2c: E2 [07:55:33]MH_I2C_Read... [07:55:33]Read from MH i2c: E2 0E 00 [07:55:33]MH_I2C_Read... [07:55:33]Read from MH i2c: E2 0E 00 F2 0B 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 12 [07:55:33]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [07:55:33]wFMCommunicate OK [07:55:33]SAM_PROTO_GetShiftState done [07:55:33]FM_GetShiftState done [07:55:33]opened in 1722384637 [07:55:33]opened+sec_in_day 1722471037 [07:55:33]quantity*price = 150041 [07:55:33]sum+1 = 150042 [07:55:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 50 31.07.2024 07:55 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119319 ФПД: 58098313822025 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T075535&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119319&fm=58098313822025&tin=02508201610067®Number=0000000000092660&sum=150000 [07:55:34]StoreToDocumentArchive [07:55:34]shift 436 fd 119319 [07:55:34]save to /storage/0436/doc_00119319 [07:55:34]save last doc name /storage/0436/doc_00119319 to /storage/kkm_last_doc_name [07:55:34]save OK [07:55:34]Clear old archive folders... [07:55:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:55:34]tlvbuf is 00B089A0 [07:55:34]SAM_PROTO_ClearQueue [07:55:34]wFMCommunicate request_size=4 [07:55:34]MH_SAM_APDU [07:55:34]CAPDU: 80 09 00 00 [07:55:34]Write to MH i2c: E2 08 00 FF 0B 80 09 00 00 00 00 00 00 7C [07:55:34]Write i2c OK [07:55:34]MH_I2C_Read... [07:55:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:55:34]Read from MH i2c: E2 [07:55:34]MH_I2C_Read... [07:55:34]Read from MH i2c: E2 03 00 [07:55:34]MH_I2C_Read... [07:55:34]Read from MH i2c: E2 03 00 FF 0B 00 90 00 7E [07:55:34]RAPDU: 90 00 [07:55:34]wFMCommunicate OK [07:55:34]SAM_PROTO_ClearQueue done [07:55:34]KKMCreateOFDPacket [07:55:34]OFDProtocolAddRootSTLVToBuf [07:55:34]FM_MakeSignedData [07:55:34]FM_MakeSignedData [07:55:34]SAM_PROTO_SignData [07:55:34]wFMCommunicate request_size=4 [07:55:34]MH_SAM_APDU [07:55:34]CAPDU: 80 0D 01 02 [07:55:34]Write to MH i2c: E2 08 00 00 0C 80 0D 01 02 00 00 00 00 85 [07:55:34]Write i2c OK [07:55:34]MH_I2C_Read... [07:55:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:55:34]Read from MH i2c: E2 [07:55:34]MH_I2C_Read... [07:55:34]Read from MH i2c: E2 03 00 [07:55:34]MH_I2C_Read... [07:55:34]Read from MH i2c: E2 03 00 00 0C 00 90 00 80 [07:55:34]RAPDU: 90 00 [07:55:34]wFMCommunicate OK [07:55:34]wFMCommunicate request_size=255 [07:55:34]MH_SAM_APDU [07:55:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 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 32 00 00 00 F4 03 04 00 F7 ED A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 17 D2 01 00 35 04 06 00 34 [07:55:34]Write to MH i2c: E2 02 01 01 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 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 32 00 00 00 F4 03 04 00 F7 ED A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 17 D2 01 00 35 04 06 00 34 00 00 76 [07:55:34]Write i2c OK [07:55:34]MH_I2C_Read... [07:55:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:55:34]Read from MH i2c: E2 [07:55:34]MH_I2C_Read... [07:55:34]Read from MH i2c: E2 03 00 [07:55:34]MH_I2C_Read... [07:55:34]Read from MH i2c: E2 03 00 01 0C 00 90 00 81 [07:55:34]RAPDU: 90 00 [07:55:34]wFMCommunicate OK [07:55:34]wFMCommunicate request_size=10 [07:55:34]MH_SAM_APDU [07:55:34]CAPDU: 80 0D 02 02 05 D7 11 5B 7F 49 [07:55:34]Write to MH i2c: E2 0D 00 02 0C 80 0D 02 02 05 00 D7 11 5B 7F 49 00 00 9D [07:55:34]Write i2c OK [07:55:34]MH_I2C_Read... [07:55:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:55:35]Read from MH i2c: E2 [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: E2 03 00 [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: E2 03 00 02 0C 00 90 00 82 [07:55:35]RAPDU: 90 00 [07:55:35]wFMCommunicate OK [07:55:35]wFMCommunicate request_size=4 [07:55:35]MH_SAM_APDU [07:55:35]CAPDU: 80 0D 03 02 [07:55:35]Write to MH i2c: E2 08 00 03 0C 80 0D 03 02 00 00 00 00 8A [07:55:35]Write i2c OK [07:55:35]MH_I2C_Read... [07:55:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:55:35]Read from MH i2c: E2 [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: E2 0B 00 [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: E2 0B 00 03 0C 00 33 C6 EF 1E E7 3D 3F 8E 90 00 82 [07:55:35]RAPDU: 33 C6 EF 1E E7 3D 3F 8E 90 00 [07:55:35]wFMCommunicate OK [07:55:35]SAM_PROTO_SignData done [07:55:35]FM_MakeSignedData done [07:55:35]CreateOFDProtocolMessage [07:55:35]wFMCommunicate request_size=4 [07:55:35]MH_SAM_APDU [07:55:35]CAPDU: 80 11 00 00 [07:55:35]Write to MH i2c: E2 08 00 04 0C 80 11 00 00 00 00 00 00 8A [07:55:35]Write i2c OK [07:55:35]MH_I2C_Read... [07:55:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:55:35]Read from MH i2c: E2 [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: E2 17 00 [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: E2 17 00 04 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E5 [07:55:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:55:35]wFMCommunicate OK [07:55:35]CreateOFDProtocolMessage done [07:55:35]OFDSenderStorePacket 119319 [07:55:35]StoreOFDPacket docnum=119319 [07:55:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7F 7E 07 01 71 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 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 32 00 00 00 F4 03 04 00 F7 ED A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 17 D2 01 00 35 04 06 00 34 D7 11 5B 7F 49 33 C6 EF 1E E7 3D 3F 8E [07:55:35]CheckFolder [07:55:35]dirname=/storage/ofd_packets [07:55:35]CheckFolder done [07:55:35]ProducePacketName [07:55:35]name=ofd_packets/00119319 [07:55:35]NVStorageSaveData ofd_packets/00119319 [07:55:35]File name is /storage/ofd_packets/00119319 [07:55:35]Write 301 bytes [07:55:35]NVStorageSaveData done [07:55:35]OFDSenderStorePacket done [07:55:35]KKMCreateOFDPacket done [07:55:35]NVStorageSaveData kkm_last_timestamp [07:55:35]File name is /storage/kkm_last_timestamp [07:55:35]Write 4 bytes [07:55:35]NVStorageSaveData done [07:55:35]ExternCall_PrintAddStr [07:55:35]wPrintStart [07:55:35]Write to MH i2c: 01 00 00 05 0C 11 [07:55:35]Write i2c OK [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: 01 [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: 01 07 00 [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: 01 07 00 05 0C 00 00 00 00 00 FF 0F 26 [07:55:35]RasterBufferAndPrint [07:55:35]line Счет N : (1)950244 [07:55:35]line ИНН: 02508201610067 [07:55:35]line Контрольно-Кассовый Чек [07:55:35]line ПРОДАЖА [07:55:35]line ТРК (МРК, ГНК) : 51 [07:55:35]line Товар: 2710124130 [07:55:35]line Аи-92-К-4 [07:55:35]line 22.130 * 67.80 [07:55:35]line = 1500.41 [07:55:35]line НДС 12% НСП 1% [07:55:35]line > о реализуемом товаре [07:55:35]line ОКРУГЛЕНИЕ: -0.41 [07:55:35]line ИТОГО: 1500.00 [07:55:35]line Внесено: 1500.00 [07:55:35]line СДАЧА: 0.00 [07:55:35]line НСП 1% : 13.28 [07:55:35]line НДС 12% : 159.34 [07:55:35]line Наличными: 1500.00 [07:55:35]line Безнал.: 0.00 [07:55:35]line Место: АЗС № 134 "Партнер Нефть" [07:55:35]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:55:35]line СНО: Общий режим [07:55:35]line Чек 50 31.07.2024 07:55 [07:55:35]line Смена: 436 ФФД: 1.0 [07:55:35]line ЗНМ: 0300000044 [07:55:35]line РНМ: 0000000000092660 [07:55:35]line Версия ККМ: 001 [07:55:35]line ФМ: 0000000000874939 [07:55:35]line ФД: 119319 [07:55:35]line ФПД: 58098313822025 [07:55:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T075535&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119319&fm=58098313822025&tin=02508201610067®Number=0000000000092660&sum=150000 [07:55:35]OFD Sender: Processing packet 119319 [packets to send 86, broken 85] [07:55:35]ProducePacketName [07:55:35]name=ofd_packets/00119319 [07:55:35]OFD Sender: To server: pG, [07:55:35]CommunicateWithHost lk.salyk.kg:30040 [07:55:35]ConnectInit lk.salyk.kg [07:55:35]written 0, free lines is 4095 [07:55:35]Connected sock=8 [07:55:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7F 7E 07 01 71 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 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 32 00 00 00 F4 03 04 00 F7 ED A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 17 D2 01 00 35 04 06 00 34 D7 11 5B 7F 49 33 C6 EF 1E E7 3D 3F 8E [07:55:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A3 CB 47 00 E7 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 17 D2 01 00 F4 03 04 00 80 9B A9 66 B6 04 01 00 00 D1 33 6E FE 6B 6F 22 45 [07:55:35]CommunicateWithHost err = 0 [07:55:35]CheckOFDResponse [07:55:35]1017 (14) - 77093643461234 [07:55:35]1041 (16) - 0000000000874939 [07:55:35]1040 (4) - 119319 [07:55:35]1012 (4) - 31.07.2024 02:03 [07:55:35]1206 (1) - 0 [07:55:35]OFD Sender: Remove packet 119319 [07:55:35]ProducePacketName [07:55:35]name=ofd_packets/00119319 [07:55:35]NVStorageDeleteData [07:55:35]Write to MH i2c: 01 00 00 2F 0C 3B [07:55:35]Write i2c OK [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: 01 [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: 01 07 00 [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: 01 07 00 2F 0C 00 00 00 00 00 DA 0C 28 [07:55:35]RasterBufferAndPrint [07:55:35]line [07:55:35]line [07:55:35]line [07:55:35]line [07:55:35]line [07:55:35]written 0, free lines is 3297 [07:55:35]MH_Cut [07:55:35]Write to MH i2c: D1 01 00 36 0C 01 14 [07:55:35]Write i2c OK [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: D1 [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: D1 01 00 [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: D1 01 00 36 0C 00 13 [07:55:35]Write to MH i2c: 01 00 00 37 0C 43 [07:55:35]Write i2c OK [07:55:35]MH_I2C_Read... [07:55:36]OFD Sender: No OFD packet to send [07:55:36]*** Cut start [07:55:36]*** Partial cut [07:55:36]*** CUTSNS_PIN = 1 [07:55:36]*** CUTSNS_PIN = 0 [07:55:36]*** Brake cut motor [07:55:37]Read from MH i2c: 01 [07:55:37]MH_I2C_Read... [07:55:37]*** Stop cut motor [07:55:37]*** Cut end [07:55:37]Read from MH i2c: 01 07 00 [07:55:37]MH_I2C_Read... [07:55:37]Read from MH i2c: 01 07 00 37 0C 00 00 00 00 00 FF 0F 58 [07:55:37]process_action close_receipt done [07:55:37]requested_data is exist [07:55:37]produce_requested_data [07:55:37]requested_item fm.sn is exist - process it [07:55:37]wFMCommunicate request_size=4 [07:55:37]MH_SAM_APDU [07:55:37]CAPDU: 80 11 00 00 [07:55:37]Write to MH i2c: E2 08 00 38 0C 80 11 00 00 00 00 00 00 BE [07:55:37]Write i2c OK [07:55:37]MH_I2C_Read... [07:55:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:55:37]Read from MH i2c: E2 [07:55:37]MH_I2C_Read... [07:55:37]Read from MH i2c: E2 17 00 [07:55:37]MH_I2C_Read... [07:55:37]Read from MH i2c: E2 17 00 38 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 19 [07:55:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:55:37]wFMCommunicate OK [07:55:37]requested_item fd.num is exist - process it [07:55:37]SAM_PROTO_GetFieldsCounters [07:55:37]wFMCommunicate request_size=4 [07:55:37]MH_SAM_APDU [07:55:37]CAPDU: 80 13 00 00 [07:55:37]Write to MH i2c: E2 08 00 39 0C 80 13 00 00 00 00 00 00 C1 [07:55:37]Write i2c OK [07:55:37]MH_I2C_Read... [07:55:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:55:37]Read from MH i2c: E2 [07:55:37]MH_I2C_Read... [07:55:37]Read from MH i2c: E2 62 00 [07:55:37]MH_I2C_Read... [07:55:37]Read from MH i2c: E2 62 00 39 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 17 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [07:55: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 17 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:55:37]wFMCommunicate OK [07:55:37]SAM_PROTO_GetFieldsCounters done [07:55:37]requested_item shift.num is exist - process it [07:55:37]requested_item shift.opened is exist - process it [07:55:37]req_shift_opened [07:55:37]FM_GetShiftState [07:55:37]SAM_PROTO_GetShiftState [07:55:37]wFMCommunicate request_size=4 [07:55:37]MH_SAM_APDU [07:55:37]CAPDU: 80 13 01 00 [07:55:37]Write to MH i2c: E2 08 00 3A 0C 80 13 01 00 00 00 00 00 C3 [07:55:37]Write i2c OK [07:55:37]MH_I2C_Read... [07:55:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:55:37]Read from MH i2c: E2 [07:55:37]MH_I2C_Read... [07:55:37]Read from MH i2c: E2 0E 00 [07:55:37]MH_I2C_Read... [07:55:37]Read from MH i2c: E2 0E 00 3A 0C 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 5B [07:55:37]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [07:55:37]wFMCommunicate OK [07:55:37]SAM_PROTO_GetShiftState done [07:55:37]FM_GetShiftState done [07:55:37]req_shift_opened done [07:55:37]requested_item shift.open_date is exist - process it [07:55:37]req_shift_open_date [07:55:37]req_shift_open_date done [07:55:37]produce_requested_data done [07:55:37]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119319,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [07:55:37]process_action_free close_receipt [07:55:37]json_value_free [07:55:37]json_value_free done [07:55:37]process_json_proto returns [07:55:37]Send response to host [07:55:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119319,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [07:55:37]free response buf [07:55:37]execute_script done [07:55:37]execute_script returns [07:55:37]free content buf [07:55:37]Sock 9.Close socket [07:55:37]Sock 9.Thread stoped [07:55:41]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: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:26]OFD Sender: No OFD packet to send [07:56:31]OFD Sender: No OFD packet to send [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: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: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: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: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: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:02]accept exits with 10 [08:00:02]New connection [08:00:02]New thread 3067194724 created [08:00:02]Thread 3067338084 joined [08:00:02]Waiting for new connection... [08:00:02] Sock 10.Parse request [08:00:02]Sock 10.Check first char [08:00:02]Sock 10.First char is OK [08:00:02]request: POST /json_proto HTTP/1.0 [08:00:02]Method: POST [08:00:02]URL: /json_proto [08:00:02]Method is POST - this is cgi request [08:00:02]url: /json_proto [08:00:02]query_string will be loaded in cgi processing [08:00:02]execute_cgi json_proto POST (null) [08:00:02]execute_cgi path=json_proto method=POST [08:00:02]POST find Content-Length [08:00:02]Host: 172.17.45.7:8080 [08:00:02]Content-Length: 678 [08:00:02]Content-Type: application/json [08:00:02] [08:00:02]POST finish read [08:00:02]Found Content-Length = 678 [08:00:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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" ] } } [08:00:02]execute_script... [08:00: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)950246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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" ] } } [08:00:02]POST & json_proto [08:00:02]process_json_proto [08:00:02]json parsed OK: [08:00:02]protocol is kg_v1.0 [08:00:02]action value=close_receipt [08:00:02]process_action close_receipt [08:00:02]cmd_close_receipt [08:00:02]MH_GetDate [08:00:02]Write to MH i2c: F0 00 00 3B 0C 36 [08:00:02]Write i2c OK [08:00:02]MH_I2C_Read... [08:00:02]Read from MH i2c: F0 [08:00:02]MH_I2C_Read... [08:00:02]Read from MH i2c: F0 09 00 [08:00:02]MH_I2C_Read... [08:00:02]Read from MH i2c: F0 09 00 3B 0C 00 04 EF A9 66 90 0F 3E 66 84 [08:00:02]GetLastDocTimeStamp 1722412535 [08:00:02]current date 1722412804 [08:00:02]FM_GetShiftState [08:00:02]SAM_PROTO_GetShiftState [08:00:02]wFMCommunicate request_size=4 [08:00:02]MH_SAM_APDU [08:00:02]CAPDU: 80 13 01 00 [08:00:02]Write to MH i2c: E2 08 00 3C 0C 80 13 01 00 00 00 00 00 C5 [08:00:02]Write i2c OK [08:00:02]MH_I2C_Read... [08:00:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:02]Read from MH i2c: E2 [08:00:02]MH_I2C_Read... [08:00:02]Read from MH i2c: E2 0E 00 [08:00:02]MH_I2C_Read... [08:00:02]Read from MH i2c: E2 0E 00 3C 0C 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 5D [08:00:02]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [08:00:02]wFMCommunicate OK [08:00:02]SAM_PROTO_GetShiftState done [08:00:02]FM_GetShiftState done [08:00:02]opened in 1722384637 [08:00:02]opened+sec_in_day 1722471037 [08:00:02]quantity*price = 70037 [08:00:02]sum+1 = 70038 [08:00:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 51 31.07.2024 08:00 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119320 ФПД: 185768026647675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T080004&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119320&fm=185768026647675&tin=02508201610067®Number=0000000000092660&sum=70000 [08:00:03]StoreToDocumentArchive [08:00:03]shift 436 fd 119320 [08:00:03]save to /storage/0436/doc_00119320 [08:00:03]save last doc name /storage/0436/doc_00119320 to /storage/kkm_last_doc_name [08:00:03]save OK [08:00:03]Clear old archive folders... [08:00:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:00:03]tlvbuf is 00AD0CA0 [08:00:03]SAM_PROTO_ClearQueue [08:00:03]wFMCommunicate request_size=4 [08:00:03]MH_SAM_APDU [08:00:03]CAPDU: 80 09 00 00 [08:00:03]Write to MH i2c: E2 08 00 49 0C 80 09 00 00 00 00 00 00 C7 [08:00:03]Write i2c OK [08:00:03]MH_I2C_Read... [08:00:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:00:03]Read from MH i2c: E2 [08:00:03]MH_I2C_Read... [08:00:03]Read from MH i2c: E2 03 00 [08:00:03]MH_I2C_Read... [08:00:03]Read from MH i2c: E2 03 00 49 0C 00 90 00 C9 [08:00:03]RAPDU: 90 00 [08:00:03]wFMCommunicate OK [08:00:03]SAM_PROTO_ClearQueue done [08:00:03]KKMCreateOFDPacket [08:00:03]OFDProtocolAddRootSTLVToBuf [08:00:03]FM_MakeSignedData [08:00:03]FM_MakeSignedData [08:00:03]SAM_PROTO_SignData [08:00:03]wFMCommunicate request_size=4 [08:00:03]MH_SAM_APDU [08:00:03]CAPDU: 80 0D 01 02 [08:00:03]Write to MH i2c: E2 08 00 4A 0C 80 0D 01 02 00 00 00 00 CF [08:00:03]Write i2c OK [08:00:03]MH_I2C_Read... [08:00:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:00:03]Read from MH i2c: E2 [08:00:03]MH_I2C_Read... [08:00:03]Read from MH i2c: E2 03 00 [08:00:03]MH_I2C_Read... [08:00:03]Read from MH i2c: E2 03 00 4A 0C 00 90 00 CA [08:00:03]RAPDU: 90 00 [08:00:03]wFMCommunicate OK [08:00:03]wFMCommunicate request_size=255 [08:00:03]MH_SAM_APDU [08:00: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 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 33 00 00 00 F4 03 04 00 04 EF A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 18 D2 01 00 35 04 06 00 A8 [08:00:03]Write to MH i2c: E2 02 01 4B 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 33 00 00 00 F4 03 04 00 04 EF A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 18 D2 01 00 35 04 06 00 A8 00 00 B7 [08:00:03]Write i2c OK [08:00:03]MH_I2C_Read... [08:00:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:04]Read from MH i2c: E2 [08:00:04]MH_I2C_Read... [08:00:04]Read from MH i2c: E2 03 00 [08:00:04]MH_I2C_Read... [08:00:04]Read from MH i2c: E2 03 00 4B 0C 00 90 00 CB [08:00:04]RAPDU: 90 00 [08:00:04]wFMCommunicate OK [08:00:04]wFMCommunicate request_size=10 [08:00:04]MH_SAM_APDU [08:00:04]CAPDU: 80 0D 02 02 05 F4 7D 3D 2C 7B [08:00:04]Write to MH i2c: E2 0D 00 4C 0C 80 0D 02 02 05 00 F4 7D 3D 2C 7B 00 00 31 [08:00:04]Write i2c OK [08:00:04]MH_I2C_Read... [08:00:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:04]Read from MH i2c: E2 [08:00:04]MH_I2C_Read... [08:00:04]Read from MH i2c: E2 03 00 [08:00:04]MH_I2C_Read... [08:00:04]Read from MH i2c: E2 03 00 4C 0C 00 90 00 CC [08:00:04]RAPDU: 90 00 [08:00:04]wFMCommunicate OK [08:00:04]wFMCommunicate request_size=4 [08:00:04]MH_SAM_APDU [08:00:04]CAPDU: 80 0D 03 02 [08:00:04]Write to MH i2c: E2 08 00 4D 0C 80 0D 03 02 00 00 00 00 D4 [08:00:04]Write i2c OK [08:00:04]MH_I2C_Read... [08:00:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:00:04]Read from MH i2c: E2 [08:00:04]MH_I2C_Read... [08:00:04]Read from MH i2c: E2 0B 00 [08:00:04]MH_I2C_Read... [08:00:04]Read from MH i2c: E2 0B 00 4D 0C 00 F0 2F 37 63 AE B7 14 7A 90 00 81 [08:00:04]RAPDU: F0 2F 37 63 AE B7 14 7A 90 00 [08:00:04]wFMCommunicate OK [08:00:04]SAM_PROTO_SignData done [08:00:04]FM_MakeSignedData done [08:00:04]CreateOFDProtocolMessage [08:00:04]wFMCommunicate request_size=4 [08:00:04]MH_SAM_APDU [08:00:04]CAPDU: 80 11 00 00 [08:00:04]Write to MH i2c: E2 08 00 4E 0C 80 11 00 00 00 00 00 00 D4 [08:00:04]Write i2c OK [08:00:04]MH_I2C_Read... [08:00:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:04]Read from MH i2c: E2 [08:00:04]MH_I2C_Read... [08:00:04]Read from MH i2c: E2 17 00 [08:00:04]MH_I2C_Read... [08:00:04]Read from MH i2c: E2 17 00 4E 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2F [08:00:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:00:04]wFMCommunicate OK [08:00:04]CreateOFDProtocolMessage done [08:00:04]OFDSenderStorePacket 119320 [08:00:04]StoreOFDPacket docnum=119320 [08:00:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C4 F5 07 01 BD AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 33 00 00 00 F4 03 04 00 04 EF A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 18 D2 01 00 35 04 06 00 A8 F4 7D 3D 2C 7B F0 2F 37 63 AE B7 14 7A [08:00:04]CheckFolder [08:00:04]dirname=/storage/ofd_packets [08:00:04]CheckFolder done [08:00:04]ProducePacketName [08:00:04]name=ofd_packets/00119320 [08:00:04]NVStorageSaveData ofd_packets/00119320 [08:00:04]File name is /storage/ofd_packets/00119320 [08:00:04]Write 301 bytes [08:00:04]NVStorageSaveData done [08:00:04]OFDSenderStorePacket done [08:00:04]KKMCreateOFDPacket done [08:00:04]NVStorageSaveData kkm_last_timestamp [08:00:04]File name is /storage/kkm_last_timestamp [08:00:04]Write 4 bytes [08:00:04]NVStorageSaveData done [08:00:04]ExternCall_PrintAddStr [08:00:04]wPrintStart [08:00:04]Write to MH i2c: 01 00 00 4F 0C 5B [08:00:04]Write i2c OK [08:00:04]MH_I2C_Read... [08:00:04]Read from MH i2c: 01 [08:00:04]MH_I2C_Read... [08:00:04]Read from MH i2c: 01 07 00 [08:00:04]MH_I2C_Read... [08:00:04]Read from MH i2c: 01 07 00 4F 0C 00 00 00 00 00 FF 0F 70 [08:00:04]RasterBufferAndPrint [08:00:04]line Счет N : (1)950246 [08:00:04]line ИНН: 02508201610067 [08:00:04]line Контрольно-Кассовый Чек [08:00:04]line ПРОДАЖА [08:00:04]line ТРК (МРК, ГНК) : 41 [08:00:04]line Товар: 2710124130 [08:00:04]line Аи-92-К-4 [08:00:04]line 10.330 * 67.80 [08:00:04]line = 700.37 [08:00:04]line НДС 12% НСП 1% [08:00:04]line > о реализуемом товаре [08:00:04]line ОКРУГЛЕНИЕ: -0.37 [08:00:04]line ИТОГО: 700.00 [08:00:04]line Внесено: 700.00 [08:00:04]line СДАЧА: 0.00 [08:00:04]line НСП 1% : 6.20 [08:00:04]line НДС 12% : 74.38 [08:00:04]line Наличными: 700.00 [08:00:04]line Безнал.: 0.00 [08:00:04]line Место: АЗС № 134 "Партнер Нефть" [08:00:04]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:00:04]line СНО: Общий режим [08:00:04]line Чек 51 31.07.2024 08:00 [08:00:04]line Смена: 436 ФФД: 1.0 [08:00:04]line ЗНМ: 0300000044 [08:00:04]line РНМ: 0000000000092660 [08:00:04]line Версия ККМ: 001 [08:00:04]line ФМ: 0000000000874939 [08:00:04]line ФД: 119320 [08:00:04]line ФПД: 185768026647675 [08:00:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T080004&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119320&fm=185768026647675&tin=02508201610067®Number=0000000000092660&sum=70000 [08:00:04]OFD Sender: Processing packet 119320 [packets to send 86, broken 85] [08:00:04]ProducePacketName [08:00:04]name=ofd_packets/00119320 [08:00:04]OFD Sender: To server: pG, [08:00:04]CommunicateWithHost lk.salyk.kg:30040 [08:00:04]ConnectInit lk.salyk.kg [08:00:04]written 0, free lines is 4095 [08:00:04]Connected sock=8 [08:00: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 39 33 39 0F 01 00 00 C4 F5 07 01 BD AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 33 00 00 00 F4 03 04 00 04 EF A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 18 D2 01 00 35 04 06 00 A8 F4 7D 3D 2C 7B F0 2F 37 63 AE B7 14 7A [08:00:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 95 C4 47 00 58 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 18 D2 01 00 F4 03 04 00 8D 9C A9 66 B6 04 01 00 00 F1 01 10 BE D2 3E AD 38 [08:00:04]CommunicateWithHost err = 0 [08:00:04]CheckOFDResponse [08:00:04]1017 (14) - 77093643461234 [08:00:04]1041 (16) - 0000000000874939 [08:00:04]1040 (4) - 119320 [08:00:04]1012 (4) - 31.07.2024 02:08 [08:00:04]1206 (1) - 0 [08:00:04]OFD Sender: Remove packet 119320 [08:00:04]ProducePacketName [08:00:04]name=ofd_packets/00119320 [08:00:04]NVStorageDeleteData [08:00:05]Write to MH i2c: 01 00 00 79 0C 85 [08:00:05]Write i2c OK [08:00:05]MH_I2C_Read... [08:00:05]Read from MH i2c: 01 [08:00:05]MH_I2C_Read... [08:00:05]Read from MH i2c: 01 07 00 [08:00:05]MH_I2C_Read... [08:00:05]Read from MH i2c: 01 07 00 79 0C 00 00 00 00 00 CD 0C 65 [08:00:05]RasterBufferAndPrint [08:00:05]line [08:00:05]line [08:00:05]line [08:00:05]line [08:00:05]line [08:00:05]written 0, free lines is 3284 [08:00:05]MH_Cut [08:00:05]Write to MH i2c: D1 01 00 80 0C 01 5E [08:00:05]Write i2c OK [08:00:05]MH_I2C_Read... [08:00:05]Read from MH i2c: D1 [08:00:05]MH_I2C_Read... [08:00:05]Read from MH i2c: D1 01 00 [08:00:05]MH_I2C_Read... [08:00:05]Read from MH i2c: D1 01 00 80 0C 00 5D [08:00:05]Write to MH i2c: 01 00 00 81 0C 8D [08:00:05]Write i2c OK [08:00:05]MH_I2C_Read... [08:00:05]OFD Sender: No OFD packet to send [08:00:05]*** Cut start [08:00:05]*** Partial cut [08:00:05]*** CUTSNS_PIN = 1 [08:00:05]*** CUTSNS_PIN = 0 [08:00:06]*** Brake cut motor [08:00:06]Read from MH i2c: 01 [08:00:06]MH_I2C_Read... [08:00:06]*** Stop cut motor [08:00:06]*** Cut end [08:00:06]Read from MH i2c: 01 07 00 [08:00:06]MH_I2C_Read... [08:00:06]Read from MH i2c: 01 07 00 81 0C 00 00 00 00 00 FF 0F A2 [08:00:06]process_action close_receipt done [08:00:06]requested_data is exist [08:00:06]produce_requested_data [08:00:06]requested_item fm.sn is exist - process it [08:00:06]wFMCommunicate request_size=4 [08:00:06]MH_SAM_APDU [08:00:06]CAPDU: 80 11 00 00 [08:00:06]Write to MH i2c: E2 08 00 82 0C 80 11 00 00 00 00 00 00 08 [08:00:06]Write i2c OK [08:00:06]MH_I2C_Read... [08:00:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:06]Read from MH i2c: E2 [08:00:06]MH_I2C_Read... [08:00:06]Read from MH i2c: E2 17 00 [08:00:06]MH_I2C_Read... [08:00:06]Read from MH i2c: E2 17 00 82 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 63 [08:00:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:00:06]wFMCommunicate OK [08:00:06]requested_item fd.num is exist - process it [08:00:06]SAM_PROTO_GetFieldsCounters [08:00:06]wFMCommunicate request_size=4 [08:00:06]MH_SAM_APDU [08:00:06]CAPDU: 80 13 00 00 [08:00:06]Write to MH i2c: E2 08 00 83 0C 80 13 00 00 00 00 00 00 0B [08:00:06]Write i2c OK [08:00:06]MH_I2C_Read... [08:00:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:00:06]Read from MH i2c: E2 [08:00:06]MH_I2C_Read... [08:00:06]Read from MH i2c: E2 62 00 [08:00:06]MH_I2C_Read... [08:00:06]Read from MH i2c: E2 62 00 83 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 18 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [08:00: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 18 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:00:06]wFMCommunicate OK [08:00:06]SAM_PROTO_GetFieldsCounters done [08:00:06]requested_item shift.num is exist - process it [08:00:06]requested_item shift.opened is exist - process it [08:00:06]req_shift_opened [08:00:06]FM_GetShiftState [08:00:06]SAM_PROTO_GetShiftState [08:00:06]wFMCommunicate request_size=4 [08:00:06]MH_SAM_APDU [08:00:06]CAPDU: 80 13 01 00 [08:00:06]Write to MH i2c: E2 08 00 84 0C 80 13 01 00 00 00 00 00 0D [08:00:06]Write i2c OK [08:00:06]MH_I2C_Read... [08:00:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:06]Read from MH i2c: E2 [08:00:06]MH_I2C_Read... [08:00:06]Read from MH i2c: E2 0E 00 [08:00:06]MH_I2C_Read... [08:00:06]Read from MH i2c: E2 0E 00 84 0C 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 A5 [08:00:06]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [08:00:06]wFMCommunicate OK [08:00:06]SAM_PROTO_GetShiftState done [08:00:06]FM_GetShiftState done [08:00:06]req_shift_opened done [08:00:06]requested_item shift.open_date is exist - process it [08:00:06]req_shift_open_date [08:00:06]req_shift_open_date done [08:00:06]produce_requested_data done [08:00:06]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119320,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [08:00:06]process_action_free close_receipt [08:00:06]json_value_free [08:00:06]json_value_free done [08:00:06]process_json_proto returns [08:00:06]Send response to host [08:00:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119320,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [08:00:06]free response buf [08:00:06]execute_script done [08:00:06]execute_script returns [08:00:06]free content buf [08:00:06]Sock 10.Close socket [08:00:06]Sock 10.Thread stoped [08:00:10]OFD Sender: No OFD packet to send [08:00:15]OFD Sender: No OFD packet to send [08:00:20]OFD Sender: No OFD packet to send [08:00:25]OFD Sender: No OFD packet to send [08:00:30]OFD Sender: No OFD packet to send [08:00:35]OFD Sender: No OFD packet to send [08:00:40]OFD Sender: No OFD packet to send [08:00:43]accept exits with 9 [08:00:43]New connection [08:00:43]New thread 3067338084 created [08:00:43]Thread 3067194724 joined [08:00:43]Waiting for new connection... [08:00:43] Sock 9.Parse request [08:00:43]Sock 9.Check first char [08:00:43]Sock 9.First char is OK [08:00:43]request: POST /json_proto HTTP/1.0 [08:00:43]Method: POST [08:00:43]URL: /json_proto [08:00:43]Method is POST - this is cgi request [08:00:43]url: /json_proto [08:00:43]query_string will be loaded in cgi processing [08:00:43]execute_cgi json_proto POST (null) [08:00:43]execute_cgi path=json_proto method=POST [08:00:43]POST find Content-Length [08:00:43]Host: 172.17.45.7:8080 [08:00:43]Content-Length: 1189 [08:00:43]Content-Type: application/json [08:00:43] [08:00:43]POST finish read [08:00:43]Found Content-Length = 1189 [08:00:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)950245\u000A31.07.2024 07:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 22.130 x 67.80\u000A\u0418\u0422\u041E\u0413: 1500.41\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74593\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:00:43]execute_script... [08:00:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)950245\u000A31.07.2024 07:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 22.130 x 67.80\u000A\u0418\u0422\u041E\u0413: 1500.41\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74593\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:00:43]POST & json_proto [08:00:43]process_json_proto [08:00:43]json parsed OK: [08:00:43]protocol is kg_v1.0 [08:00:43]action value=print_text [08:00:43]process_action print_text [08:00:43]cmd_print_text [08:00:43]ExternCall_PrintAddStr [08:00:43]wPrintStart [08:00:43]Write to MH i2c: 01 00 00 85 0C 91 [08:00:43]Write i2c OK [08:00:43]MH_I2C_Read... [08:00:43]Read from MH i2c: 01 [08:00:43]MH_I2C_Read... [08:00:43]Read from MH i2c: 01 07 00 [08:00:43]MH_I2C_Read... [08:00:43]Read from MH i2c: 01 07 00 85 0C 00 00 00 00 00 FF 0F A6 [08:00:43]RasterBufferAndPrint [08:00:43]line *****ТОВАРНЫЙ ЧЕК***** [08:00:43]line АЗС-134 [08:00:43]line Партнер нефть [08:00:43]line 02508201610067 [08:00:43]line Кассир : Хошимов З. [08:00:43]line Счет N : (1)950245 [08:00:43]line 31.07.2024 07:58 [08:00:43]line ПРОДАЖА [08:00:43]line ТРК (МРК, ГНК): 31 [08:00:43]line Вид ГСМ : 2710124130 [08:00:43]line Аи-92-К-4 [08:00:43]line 22.130 x 67.80 [08:00:43]line ИТОГ: 1500.41 [08:00:43]line Тип оплаты: Талоны: Топливная Карта [08:00:43]line 74593 [08:00:43]line ______________________ [08:00:43]line (подпись) [08:00:43]written 0, free lines is 4095 [08:00:43]Write to MH i2c: 01 00 00 99 0C A5 [08:00:43]Write i2c OK [08:00:43]MH_I2C_Read... [08:00:43]Read from MH i2c: 01 [08:00:43]MH_I2C_Read... [08:00:43]Read from MH i2c: 01 07 00 [08:00:43]MH_I2C_Read... [08:00:43]Read from MH i2c: 01 07 00 99 0C 00 00 00 00 00 0E 0E C8 [08:00:43]RasterBufferAndPrint [08:00:43]line [08:00:43]line [08:00:43]line [08:00:43]line [08:00:43]line [08:00:43]written 0, free lines is 3599 [08:00:43]MH_Cut [08:00:43]Write to MH i2c: D1 01 00 A0 0C 01 7E [08:00:43]Write i2c OK [08:00:43]MH_I2C_Read... [08:00:43]Read from MH i2c: D1 [08:00:43]MH_I2C_Read... [08:00:43]Read from MH i2c: D1 01 00 [08:00:43]MH_I2C_Read... [08:00:43]Read from MH i2c: D1 01 00 A0 0C 00 7D [08:00:43]Write to MH i2c: 01 00 00 A1 0C AD [08:00:43]Write i2c OK [08:00:43]MH_I2C_Read... [08:00:44]*** Cut start [08:00:44]*** Partial cut [08:00:44]*** CUTSNS_PIN = 1 [08:00:44]*** CUTSNS_PIN = 0 [08:00:44]*** Brake cut motor [08:00:44]Read from MH i2c: 01 [08:00:44]MH_I2C_Read... [08:00:44]*** Stop cut motor [08:00:44]*** Cut end [08:00:44]Read from MH i2c: 01 07 00 [08:00:44]MH_I2C_Read... [08:00:44]Read from MH i2c: 01 07 00 A1 0C 00 00 00 00 00 FF 0F C2 [08:00:44]process_action print_text done [08:00:44]requested_data is exist [08:00:44]produce_requested_data [08:00:44]requested_item fm.sn is exist - process it [08:00:44]wFMCommunicate request_size=4 [08:00:44]MH_SAM_APDU [08:00:44]CAPDU: 80 11 00 00 [08:00:44]Write to MH i2c: E2 08 00 A2 0C 80 11 00 00 00 00 00 00 28 [08:00:44]Write i2c OK [08:00:44]MH_I2C_Read... [08:00:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:44]Read from MH i2c: E2 [08:00:44]MH_I2C_Read... [08:00:44]Read from MH i2c: E2 17 00 [08:00:44]MH_I2C_Read... [08:00:44]Read from MH i2c: E2 17 00 A2 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 83 [08:00:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:00:44]wFMCommunicate OK [08:00:44]requested_item fd.num is exist - process it [08:00:44]SAM_PROTO_GetFieldsCounters [08:00:44]wFMCommunicate request_size=4 [08:00:44]MH_SAM_APDU [08:00:44]CAPDU: 80 13 00 00 [08:00:44]Write to MH i2c: E2 08 00 A3 0C 80 13 00 00 00 00 00 00 2B [08:00:44]Write i2c OK [08:00:44]MH_I2C_Read... [08:00:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:00:44]Read from MH i2c: E2 [08:00:44]MH_I2C_Read... [08:00:44]Read from MH i2c: E2 62 00 [08:00:44]MH_I2C_Read... [08:00:44]Read from MH i2c: E2 62 00 A3 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 18 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [08:00: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 18 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:00:44]wFMCommunicate OK [08:00:44]SAM_PROTO_GetFieldsCounters done [08:00:44]requested_item shift.num is exist - process it [08:00:44]requested_item shift.opened is exist - process it [08:00:44]req_shift_opened [08:00:44]FM_GetShiftState [08:00:44]SAM_PROTO_GetShiftState [08:00:44]wFMCommunicate request_size=4 [08:00:44]MH_SAM_APDU [08:00:44]CAPDU: 80 13 01 00 [08:00:44]Write to MH i2c: E2 08 00 A4 0C 80 13 01 00 00 00 00 00 2D [08:00:44]Write i2c OK [08:00:44]MH_I2C_Read... [08:00:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:44]Read from MH i2c: E2 [08:00:44]MH_I2C_Read... [08:00:44]Read from MH i2c: E2 0E 00 [08:00:44]MH_I2C_Read... [08:00:44]Read from MH i2c: E2 0E 00 A4 0C 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 C5 [08:00:44]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [08:00:44]wFMCommunicate OK [08:00:44]SAM_PROTO_GetShiftState done [08:00:44]FM_GetShiftState done [08:00:44]req_shift_opened done [08:00:44]requested_item shift.open_date is exist - process it [08:00:44]req_shift_open_date [08:00:44]req_shift_open_date done [08:00:44]produce_requested_data done [08:00:44]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119320,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [08:00:44]process_action_free print_text [08:00:44]json_value_free [08:00:44]json_value_free done [08:00:44]process_json_proto returns [08:00:44]Send response to host [08:00:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119320,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [08:00:44]free response buf [08:00:44]execute_script done [08:00:44]execute_script returns [08:00:44]free content buf [08:00:44]Sock 9.Close socket [08:00:44]Sock 9.Thread stoped [08:00:45]OFD Sender: No OFD packet to send [08:00:50]OFD Sender: No OFD packet to send [08:00:55]OFD Sender: No OFD packet to send [08:01:00]OFD Sender: No OFD packet to send [08:01:05]OFD Sender: No OFD packet to send [08:01:10]OFD Sender: No OFD packet to send [08:01:15]OFD Sender: No OFD packet to send [08:01:20]OFD Sender: No OFD packet to send [08:01:25]OFD Sender: No OFD packet to send [08:01:30]OFD Sender: No OFD packet to send [08:01:35]OFD Sender: No OFD packet to send [08:01:40]OFD Sender: No OFD packet to send [08:01:45]OFD Sender: No OFD packet to send [08:01:50]OFD Sender: No OFD packet to send [08:01:55]OFD Sender: No OFD packet to send [08:02:00]OFD Sender: No OFD packet to send [08:02:05]OFD Sender: No OFD packet to send [08:02:10]OFD Sender: No OFD packet to send [08:02:15]OFD Sender: No OFD packet to send [08:02:20]OFD Sender: No OFD packet to send [08:02:25]OFD Sender: No OFD packet to send [08:02:30]OFD Sender: No OFD packet to send [08:02:35]OFD Sender: No OFD packet to send [08:02:40]OFD Sender: No OFD packet to send [08:02:45]OFD Sender: No OFD packet to send [08:02:50]OFD Sender: No OFD packet to send [08:02:55]OFD Sender: No OFD packet to send [08:03:00]OFD Sender: No OFD packet to send [08:03:05]OFD Sender: No OFD packet to send [08:03:10]OFD Sender: No OFD packet to send [08:03:15]OFD Sender: No OFD packet to send [08:03:20]OFD Sender: No OFD packet to send [08:03:25]OFD Sender: No OFD packet to send [08:03:30]OFD Sender: No OFD packet to send [08:03:35]OFD Sender: No OFD packet to send [08:03:40]OFD Sender: No OFD packet to send [08:03:45]OFD Sender: No OFD packet to send [08:03:50]OFD Sender: No OFD packet to send [08:03:55]OFD Sender: No OFD packet to send [08:04:00]OFD Sender: No OFD packet to send [08:04:05]OFD Sender: No OFD packet to send [08:04:10]OFD Sender: No OFD packet to send [08:04:15]OFD Sender: No OFD packet to send [08:04:20]OFD Sender: No OFD packet to send [08:04:25]OFD Sender: No OFD packet to send [08:04:30]OFD Sender: No OFD packet to send [08:04:35]OFD Sender: No OFD packet to send [08:04:40]OFD Sender: No OFD packet to send [08:04:45]OFD Sender: No OFD packet to send [08:04:50]OFD Sender: No OFD packet to send [08:04:55]OFD Sender: No OFD packet to send [08:05:00]OFD Sender: No OFD packet to send [08:05:05]OFD Sender: No OFD packet to send [08:05:10]OFD Sender: No OFD packet to send [08:05:15]OFD Sender: No OFD packet to send [08:05:20]OFD Sender: No OFD packet to send [08:05:25]OFD Sender: No OFD packet to send [08:05:30]OFD Sender: No OFD packet to send [08:05:35]OFD Sender: No OFD packet to send [08:05:40]OFD Sender: No OFD packet to send [08:05:45]OFD Sender: No OFD packet to send [08:05:50]OFD Sender: No OFD packet to send [08:05:55]OFD Sender: No OFD packet to send [08:06:00]OFD Sender: No OFD packet to send [08:06:05]OFD Sender: No OFD packet to send [08:06:10]OFD Sender: No OFD packet to send [08:06:15]OFD Sender: No OFD packet to send [08:06:20]OFD Sender: No OFD packet to send [08:06:25]OFD Sender: No OFD packet to send [08:06:30]OFD Sender: No OFD packet to send [08:06:35]OFD Sender: No OFD packet to send [08:06:40]OFD Sender: No OFD packet to send [08:06:45]OFD Sender: No OFD packet to send [08:06:50]OFD Sender: No OFD packet to send [08:06:55]OFD Sender: No OFD packet to send [08:07:00]OFD Sender: No OFD packet to send [08:07:05]OFD Sender: No OFD packet to send [08:07:10]OFD Sender: No OFD packet to send [08:07:15]OFD Sender: No OFD packet to send [08:07:20]OFD Sender: No OFD packet to send [08:07:25]OFD Sender: No OFD packet to send [08:07:30]OFD Sender: No OFD packet to send [08:07:35]OFD Sender: No OFD packet to send [08:07:40]OFD Sender: No OFD packet to send [08:07:45]OFD Sender: No OFD packet to send [08:07:50]OFD Sender: No OFD packet to send [08:07:55]OFD Sender: No OFD packet to send [08:08:00]OFD Sender: No OFD packet to send [08:08:05]OFD Sender: No OFD packet to send [08:08:10]OFD Sender: No OFD packet to send [08:08:15]OFD Sender: No OFD packet to send [08:08:20]OFD Sender: No OFD packet to send [08:08:25]OFD Sender: No OFD packet to send [08:08:30]OFD Sender: No OFD packet to send [08:08:35]OFD Sender: No OFD packet to send [08:08:41]OFD Sender: No OFD packet to send [08:08:46]OFD Sender: No OFD packet to send [08:08:51]OFD Sender: No OFD packet to send [08:08:56]OFD Sender: No OFD packet to send [08:09:01]OFD Sender: No OFD packet to send [08:09:06]OFD Sender: No OFD packet to send [08:09:11]OFD Sender: No OFD packet to send [08:09:16]OFD Sender: No OFD packet to send [08:09:17]accept exits with 8 [08:09:17]New connection [08:09:17]New thread 3067194724 created [08:09:17]Thread 3067338084 joined [08:09:17]Waiting for new connection... [08:09:17] Sock 8.Parse request [08:09:17]Sock 8.Check first char [08:09:17]Sock 8.First char is OK [08:09:17]request: POST /json_proto HTTP/1.0 [08:09:17]Method: POST [08:09:17]URL: /json_proto [08:09:17]Method is POST - this is cgi request [08:09:17]url: /json_proto [08:09:17]query_string will be loaded in cgi processing [08:09:17]execute_cgi json_proto POST (null) [08:09:17]execute_cgi path=json_proto method=POST [08:09:17]POST find Content-Length [08:09:17]Host: 172.17.45.7:8080 [08:09:17]Content-Length: 818 [08:09:17]Content-Type: application/json [08:09:17] [08:09:17]POST finish read [08:09:17]Found Content-Length = 818 [08:09:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 8.770, "sum" : 650.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 650.00, "payments": [ { "type": 1, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:17]execute_script... [08:09:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 8.770, "sum" : 650.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 650.00, "payments": [ { "type": 1, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:17]POST & json_proto [08:09:17]process_json_proto [08:09:17]json parsed OK: [08:09:17]protocol is kg_v1.0 [08:09:17]action value=close_receipt [08:09:17]process_action close_receipt [08:09:17]cmd_close_receipt [08:09:17]MH_GetDate [08:09:17]Write to MH i2c: F0 00 00 A5 0C A0 [08:09:17]Write i2c OK [08:09:17]MH_I2C_Read... [08:09:17]Read from MH i2c: F0 [08:09:17]MH_I2C_Read... [08:09:17]Read from MH i2c: F0 09 00 [08:09:17]MH_I2C_Read... [08:09:17]Read from MH i2c: F0 09 00 A5 0C 00 2F F1 A9 66 90 0F 3E 66 1B [08:09:17]GetLastDocTimeStamp 1722412804 [08:09:17]current date 1722413359 [08:09:17]FM_GetShiftState [08:09:17]SAM_PROTO_GetShiftState [08:09:17]wFMCommunicate request_size=4 [08:09:17]MH_SAM_APDU [08:09:17]CAPDU: 80 13 01 00 [08:09:17]Write to MH i2c: E2 08 00 A6 0C 80 13 01 00 00 00 00 00 2F [08:09:17]Write i2c OK [08:09:17]MH_I2C_Read... [08:09:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:17]Read from MH i2c: E2 [08:09:17]MH_I2C_Read... [08:09:17]Read from MH i2c: E2 0E 00 [08:09:17]MH_I2C_Read... [08:09:17]Read from MH i2c: E2 0E 00 A6 0C 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 C7 [08:09:17]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [08:09:17]wFMCommunicate OK [08:09:17]SAM_PROTO_GetShiftState done [08:09:17]FM_GetShiftState done [08:09:17]opened in 1722384637 [08:09:17]opened+sec_in_day 1722471037 [08:09:17]quantity*price = 65073 [08:09:17]sum+1 = 65074 [08:09:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 650.00 НСП 1% : 5.76 НДС 12% : 69.10 Наличными: 0.00 Безнал.: 650.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 52 31.07.2024 08:09 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119321 ФПД: 249212027694794 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T080919&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119321&fm=249212027694794&tin=02508201610067®Number=0000000000092660&sum=65000 [08:09:18]StoreToDocumentArchive [08:09:18]shift 436 fd 119321 [08:09:18]save to /storage/0436/doc_00119321 [08:09:18]save last doc name /storage/0436/doc_00119321 to /storage/kkm_last_doc_name [08:09:18]save OK [08:09:18]Clear old archive folders... [08:09:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:09:18]tlvbuf is 00AD7650 [08:09:18]SAM_PROTO_ClearQueue [08:09:18]wFMCommunicate request_size=4 [08:09:18]MH_SAM_APDU [08:09:18]CAPDU: 80 09 00 00 [08:09:18]Write to MH i2c: E2 08 00 B3 0C 80 09 00 00 00 00 00 00 31 [08:09:18]Write i2c OK [08:09:18]MH_I2C_Read... [08:09:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:09:18]Read from MH i2c: E2 [08:09:18]MH_I2C_Read... [08:09:18]Read from MH i2c: E2 03 00 [08:09:18]MH_I2C_Read... [08:09:18]Read from MH i2c: E2 03 00 B3 0C 00 90 00 33 [08:09:18]RAPDU: 90 00 [08:09:18]wFMCommunicate OK [08:09:18]SAM_PROTO_ClearQueue done [08:09:18]KKMCreateOFDPacket [08:09:18]OFDProtocolAddRootSTLVToBuf [08:09:18]FM_MakeSignedData [08:09:18]FM_MakeSignedData [08:09:18]SAM_PROTO_SignData [08:09:18]wFMCommunicate request_size=4 [08:09:18]MH_SAM_APDU [08:09:18]CAPDU: 80 0D 01 02 [08:09:18]Write to MH i2c: E2 08 00 B4 0C 80 0D 01 02 00 00 00 00 39 [08:09:18]Write i2c OK [08:09:18]MH_I2C_Read... [08:09:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:09:18]Read from MH i2c: E2 [08:09:18]MH_I2C_Read... [08:09:18]Read from MH i2c: E2 03 00 [08:09:18]MH_I2C_Read... [08:09:18]Read from MH i2c: E2 03 00 B4 0C 00 90 00 34 [08:09:18]RAPDU: 90 00 [08:09:18]wFMCommunicate OK [08:09:18]wFMCommunicate request_size=255 [08:09:18]MH_SAM_APDU [08:09:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 42 22 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 31 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 FD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 2F F1 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 19 D2 01 00 35 04 06 00 E2 [08:09:18]Write to MH i2c: E2 02 01 B5 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 42 22 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 31 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 FD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 2F F1 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 19 D2 01 00 35 04 06 00 E2 00 00 00 [08:09:18]Write i2c OK [08:09:18]MH_I2C_Read... [08:09:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:19]Read from MH i2c: E2 [08:09:19]MH_I2C_Read... [08:09:19]Read from MH i2c: E2 03 00 [08:09:19]MH_I2C_Read... [08:09:19]Read from MH i2c: E2 03 00 B5 0C 00 90 00 35 [08:09:19]RAPDU: 90 00 [08:09:19]wFMCommunicate OK [08:09:19]wFMCommunicate request_size=10 [08:09:19]MH_SAM_APDU [08:09:19]CAPDU: 80 0D 02 02 05 A8 32 62 6E CA [08:09:19]Write to MH i2c: E2 0D 00 B6 0C 80 0D 02 02 05 00 A8 32 62 6E CA 00 00 BA [08:09:19]Write i2c OK [08:09:19]MH_I2C_Read... [08:09:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:19]Read from MH i2c: E2 [08:09:19]MH_I2C_Read... [08:09:19]Read from MH i2c: E2 03 00 [08:09:19]MH_I2C_Read... [08:09:19]Read from MH i2c: E2 03 00 B6 0C 00 90 00 36 [08:09:19]RAPDU: 90 00 [08:09:19]wFMCommunicate OK [08:09:19]wFMCommunicate request_size=4 [08:09:19]MH_SAM_APDU [08:09:19]CAPDU: 80 0D 03 02 [08:09:19]Write to MH i2c: E2 08 00 B7 0C 80 0D 03 02 00 00 00 00 3E [08:09:19]Write i2c OK [08:09:19]MH_I2C_Read... [08:09:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:09:19]Read from MH i2c: E2 [08:09:19]MH_I2C_Read... [08:09:19]Read from MH i2c: E2 0B 00 [08:09:19]MH_I2C_Read... [08:09:19]Read from MH i2c: E2 0B 00 B7 0C 00 08 7C C8 55 35 05 92 63 90 00 0F [08:09:19]RAPDU: 08 7C C8 55 35 05 92 63 90 00 [08:09:19]wFMCommunicate OK [08:09:19]SAM_PROTO_SignData done [08:09:19]FM_MakeSignedData done [08:09:19]CreateOFDProtocolMessage [08:09:19]wFMCommunicate request_size=4 [08:09:19]MH_SAM_APDU [08:09:19]CAPDU: 80 11 00 00 [08:09:19]Write to MH i2c: E2 08 00 B8 0C 80 11 00 00 00 00 00 00 3E [08:09:19]Write i2c OK [08:09:19]MH_I2C_Read... [08:09:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:19]Read from MH i2c: E2 [08:09:19]MH_I2C_Read... [08:09:19]Read from MH i2c: E2 17 00 [08:09:19]MH_I2C_Read... [08:09:19]Read from MH i2c: E2 17 00 B8 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 99 [08:09:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:09:19]wFMCommunicate OK [08:09:19]CreateOFDProtocolMessage done [08:09:19]OFDSenderStorePacket 119321 [08:09:19]StoreOFDPacket docnum=119321 [08:09:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D5 F9 07 01 E6 35 5A 03 01 00 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 42 22 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 31 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 FD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 2F F1 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 19 D2 01 00 35 04 06 00 E2 A8 32 62 6E CA 08 7C C8 55 35 05 92 63 [08:09:19]CheckFolder [08:09:19]dirname=/storage/ofd_packets [08:09:19]CheckFolder done [08:09:19]ProducePacketName [08:09:19]name=ofd_packets/00119321 [08:09:19]NVStorageSaveData ofd_packets/00119321 [08:09:19]File name is /storage/ofd_packets/00119321 [08:09:19]Write 301 bytes [08:09:19]NVStorageSaveData done [08:09:19]OFDSenderStorePacket done [08:09:19]KKMCreateOFDPacket done [08:09:19]NVStorageSaveData kkm_last_timestamp [08:09:19]File name is /storage/kkm_last_timestamp [08:09:19]Write 4 bytes [08:09:19]NVStorageSaveData done [08:09:19]ExternCall_PrintAddStr [08:09:19]wPrintStart [08:09:19]Write to MH i2c: 01 00 00 B9 0C C5 [08:09:19]Write i2c OK [08:09:19]MH_I2C_Read... [08:09:19]Read from MH i2c: 01 [08:09:19]MH_I2C_Read... [08:09:19]Read from MH i2c: 01 07 00 [08:09:19]MH_I2C_Read... [08:09:19]Read from MH i2c: 01 07 00 B9 0C 00 00 00 00 00 FF 0F DA [08:09:19]RasterBufferAndPrint [08:09:19]line Счет N : (1)950247 [08:09:19]line ИНН: 02508201610067 [08:09:19]line Контрольно-Кассовый Чек [08:09:19]line ПРОДАЖА [08:09:19]line ТРК (МРК, ГНК) : 53 [08:09:19]line Товар: 2710124500 [08:09:19]line Аи-95-К-3 [08:09:19]line 8.770 * 74.20 [08:09:19]line = 650.73 [08:09:19]line НДС 12% НСП 1% [08:09:19]line > о реализуемом товаре [08:09:19]line ОКРУГЛЕНИЕ: -0.73 [08:09:19]line ИТОГО: 650.00 [08:09:19]line НСП 1% : 5.76 [08:09:19]line НДС 12% : 69.10 [08:09:19]line Наличными: 0.00 [08:09:19]line Безнал.: 650.00 [08:09:19]line Место: АЗС № 134 "Партнер Нефть" [08:09:19]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:09:19]line СНО: Общий режим [08:09:19]line Чек 52 31.07.2024 08:09 [08:09:19]line Смена: 436 ФФД: 1.0 [08:09:19]line ЗНМ: 0300000044 [08:09:19]line РНМ: 0000000000092660 [08:09:19]line Версия ККМ: 001 [08:09:19]line Платежная система: O! деньги [08:09:19]line ФМ: 0000000000874939 [08:09:19]line ФД: 119321 [08:09:19]line ФПД: 249212027694794 [08:09:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T080919&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119321&fm=249212027694794&tin=02508201610067®Number=0000000000092660&sum=65000 [08:09:19]written 0, free lines is 4095 [08:09:19]OFD Sender: Processing packet 119321 [packets to send 86, broken 85] [08:09:19]ProducePacketName [08:09:19]name=ofd_packets/00119321 [08:09:19]OFD Sender: To server: pG, [08:09:19]CommunicateWithHost lk.salyk.kg:30040 [08:09:19]ConnectInit lk.salyk.kg [08:09:19]Connected sock=10 [08:09: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 39 33 39 0F 01 00 00 D5 F9 07 01 E6 35 5A 03 01 00 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 42 22 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 31 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 FD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 2F F1 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 19 D2 01 00 35 04 06 00 E2 A8 32 62 6E CA 08 7C C8 55 35 05 92 63 [08:09:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 54 C6 47 00 C4 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 39 33 39 10 04 04 00 19 D2 01 00 F4 03 04 00 B8 9E A9 66 B6 04 01 00 00 C6 B6 74 82 B5 6B AE 4D [08:09:20]CommunicateWithHost err = 0 [08:09:20]CheckOFDResponse [08:09:20]1017 (14) - 77093643461234 [08:09:20]1041 (16) - 0000000000874939 [08:09:20]1040 (4) - 119321 [08:09:20]1012 (4) - 31.07.2024 02:17 [08:09:20]1206 (1) - 0 [08:09:20]OFD Sender: Remove packet 119321 [08:09:20]ProducePacketName [08:09:20]name=ofd_packets/00119321 [08:09:20]NVStorageDeleteData [08:09:20]Write to MH i2c: 01 00 00 E3 0C EF [08:09:20]Write i2c OK [08:09:20]MH_I2C_Read... [08:09:20]Read from MH i2c: 01 [08:09:20]MH_I2C_Read... [08:09:20]Read from MH i2c: 01 07 00 [08:09:20]MH_I2C_Read... [08:09:20]Read from MH i2c: 01 07 00 E3 0C 00 00 00 00 00 D2 0C D4 [08:09:20]RasterBufferAndPrint [08:09:20]line [08:09:20]line [08:09:20]line [08:09:20]line [08:09:20]line [08:09:20]written 0, free lines is 3288 [08:09:20]MH_Cut [08:09:20]Write to MH i2c: D1 01 00 EA 0C 01 C8 [08:09:20]Write i2c OK [08:09:20]MH_I2C_Read... [08:09:20]Read from MH i2c: D1 [08:09:20]MH_I2C_Read... [08:09:20]Read from MH i2c: D1 01 00 [08:09:20]MH_I2C_Read... [08:09:20]Read from MH i2c: D1 01 00 EA 0C 00 C7 [08:09:20]Write to MH i2c: 01 00 00 EB 0C F7 [08:09:20]Write i2c OK [08:09:20]MH_I2C_Read... [08:09:20]OFD Sender: No OFD packet to send [08:09:20]*** Cut start [08:09:20]*** Partial cut [08:09:20]*** CUTSNS_PIN = 1 [08:09:20]*** CUTSNS_PIN = 0 [08:09:21]*** Brake cut motor [08:09:21]Read from MH i2c: 01 [08:09:21]MH_I2C_Read... [08:09:21]*** Stop cut motor [08:09:21]*** Cut end [08:09:21]Read from MH i2c: 01 07 00 [08:09:21]MH_I2C_Read... [08:09:21]Read from MH i2c: 01 07 00 EB 0C 00 00 00 00 00 FF 0F 0C [08:09:21]process_action close_receipt done [08:09:21]requested_data is exist [08:09:21]produce_requested_data [08:09:21]requested_item fm.sn is exist - process it [08:09:21]wFMCommunicate request_size=4 [08:09:21]MH_SAM_APDU [08:09:21]CAPDU: 80 11 00 00 [08:09:21]Write to MH i2c: E2 08 00 EC 0C 80 11 00 00 00 00 00 00 72 [08:09:21]Write i2c OK [08:09:21]MH_I2C_Read... [08:09:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:21]Read from MH i2c: E2 [08:09:21]MH_I2C_Read... [08:09:21]Read from MH i2c: E2 17 00 [08:09:21]MH_I2C_Read... [08:09:21]Read from MH i2c: E2 17 00 EC 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CD [08:09:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:09:21]wFMCommunicate OK [08:09:21]requested_item fd.num is exist - process it [08:09:21]SAM_PROTO_GetFieldsCounters [08:09:21]wFMCommunicate request_size=4 [08:09:21]MH_SAM_APDU [08:09:21]CAPDU: 80 13 00 00 [08:09:21]Write to MH i2c: E2 08 00 ED 0C 80 13 00 00 00 00 00 00 75 [08:09:21]Write i2c OK [08:09:21]MH_I2C_Read... [08:09:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:09:21]Read from MH i2c: E2 [08:09:21]MH_I2C_Read... [08:09:21]Read from MH i2c: E2 62 00 [08:09:21]MH_I2C_Read... [08:09:21]Read from MH i2c: E2 62 00 ED 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 19 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [08:09:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 19 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:09:21]wFMCommunicate OK [08:09:21]SAM_PROTO_GetFieldsCounters done [08:09:21]requested_item shift.num is exist - process it [08:09:21]requested_item shift.opened is exist - process it [08:09:21]req_shift_opened [08:09:21]FM_GetShiftState [08:09:21]SAM_PROTO_GetShiftState [08:09:21]wFMCommunicate request_size=4 [08:09:21]MH_SAM_APDU [08:09:21]CAPDU: 80 13 01 00 [08:09:21]Write to MH i2c: E2 08 00 EE 0C 80 13 01 00 00 00 00 00 77 [08:09:21]Write i2c OK [08:09:21]MH_I2C_Read... [08:09:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:21]Read from MH i2c: E2 [08:09:21]MH_I2C_Read... [08:09:21]Read from MH i2c: E2 0E 00 [08:09:21]MH_I2C_Read... [08:09:21]Read from MH i2c: E2 0E 00 EE 0C 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 0F [08:09:21]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [08:09:21]wFMCommunicate OK [08:09:21]SAM_PROTO_GetShiftState done [08:09:21]FM_GetShiftState done [08:09:21]req_shift_opened done [08:09:21]requested_item shift.open_date is exist - process it [08:09:21]req_shift_open_date [08:09:21]req_shift_open_date done [08:09:21]produce_requested_data done [08:09:21]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119321,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [08:09:21]process_action_free close_receipt [08:09:21]json_value_free [08:09:21]json_value_free done [08:09:21]process_json_proto returns [08:09:21]Send response to host [08:09:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119321,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [08:09:21]free response buf [08:09:21]execute_script done [08:09:21]execute_script returns [08:09:21]free content buf [08:09:21]Sock 8.Close socket [08:09:21]Sock 8.Thread stoped [08:09:22]accept exits with 9 [08:09:22]New connection [08:09:22]New thread 3067338084 created [08:09:22]Thread 3067194724 joined [08:09:22]Waiting for new connection... [08:09:22] Sock 9.Parse request [08:09:22]Sock 9.Check first char [08:09:22]Sock 9.First char is OK [08:09:22]request: POST /json_proto HTTP/1.0 [08:09:22]Method: POST [08:09:22]URL: /json_proto [08:09:22]Method is POST - this is cgi request [08:09:22]url: /json_proto [08:09:22]query_string will be loaded in cgi processing [08:09:22]execute_cgi json_proto POST (null) [08:09:22]execute_cgi path=json_proto method=POST [08:09:22]POST find Content-Length [08:09:22]Host: 172.17.45.7:8080 [08:09:22]Content-Length: 677 [08:09:22]Content-Type: application/json [08:09:22] [08:09:22]POST finish read [08:09:22]Found Content-Length = 677 [08:09:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:22]execute_script... [08:09: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)950248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:22]POST & json_proto [08:09:22]process_json_proto [08:09:22]json parsed OK: [08:09:22]protocol is kg_v1.0 [08:09:22]action value=close_receipt [08:09:22]process_action close_receipt [08:09:22]cmd_close_receipt [08:09:22]MH_GetDate [08:09:22]Write to MH i2c: F0 00 00 EF 0C EA [08:09:22]Write i2c OK [08:09:22]MH_I2C_Read... [08:09:22]Read from MH i2c: F0 [08:09:22]MH_I2C_Read... [08:09:22]Read from MH i2c: F0 09 00 [08:09:22]MH_I2C_Read... [08:09:22]Read from MH i2c: F0 09 00 EF 0C 00 33 F1 A9 66 90 0F 3E 66 69 [08:09:22]GetLastDocTimeStamp 1722413359 [08:09:22]current date 1722413363 [08:09:22]FM_GetShiftState [08:09:22]SAM_PROTO_GetShiftState [08:09:22]wFMCommunicate request_size=4 [08:09:22]MH_SAM_APDU [08:09:22]CAPDU: 80 13 01 00 [08:09:22]Write to MH i2c: E2 08 00 F0 0C 80 13 01 00 00 00 00 00 79 [08:09:22]Write i2c OK [08:09:22]MH_I2C_Read... [08:09:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:22]Read from MH i2c: E2 [08:09:22]MH_I2C_Read... [08:09:22]Read from MH i2c: E2 0E 00 [08:09:22]MH_I2C_Read... [08:09:22]Read from MH i2c: E2 0E 00 F0 0C 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 11 [08:09:22]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [08:09:22]wFMCommunicate OK [08:09:22]SAM_PROTO_GetShiftState done [08:09:22]FM_GetShiftState done [08:09:22]opened in 1722384637 [08:09:22]opened+sec_in_day 1722471037 [08:09:22]quantity*price = 50010 [08:09:22]sum+1 = 50012 [08:09:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 53 31.07.2024 08:09 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119322 ФПД: 4431418021446 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T080923&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119322&fm=4431418021446&tin=02508201610067®Number=0000000000092660&sum=50000 [08:09:23]StoreToDocumentArchive [08:09:23]shift 436 fd 119322 [08:09:23]save to /storage/0436/doc_00119322 [08:09:23]save last doc name /storage/0436/doc_00119322 to /storage/kkm_last_doc_name [08:09:23]save OK [08:09:23]Clear old archive folders... [08:09:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:09:23]tlvbuf is 00B17580 [08:09:23]SAM_PROTO_ClearQueue [08:09:23]wFMCommunicate request_size=4 [08:09:23]MH_SAM_APDU [08:09:23]CAPDU: 80 09 00 00 [08:09:23]Write to MH i2c: E2 08 00 FD 0C 80 09 00 00 00 00 00 00 7B [08:09:23]Write i2c OK [08:09:23]MH_I2C_Read... [08:09:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:09:23]Read from MH i2c: E2 [08:09:23]MH_I2C_Read... [08:09:23]Read from MH i2c: E2 03 00 [08:09:23]MH_I2C_Read... [08:09:23]Read from MH i2c: E2 03 00 FD 0C 00 90 00 7D [08:09:23]RAPDU: 90 00 [08:09:23]wFMCommunicate OK [08:09:23]SAM_PROTO_ClearQueue done [08:09:23]KKMCreateOFDPacket [08:09:23]OFDProtocolAddRootSTLVToBuf [08:09:23]FM_MakeSignedData [08:09:23]FM_MakeSignedData [08:09:23]SAM_PROTO_SignData [08:09:23]wFMCommunicate request_size=4 [08:09:23]MH_SAM_APDU [08:09:23]CAPDU: 80 0D 01 02 [08:09:23]Write to MH i2c: E2 08 00 FE 0C 80 0D 01 02 00 00 00 00 83 [08:09:23]Write i2c OK [08:09:23]MH_I2C_Read... [08:09:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:09:23]Read from MH i2c: E2 [08:09:23]MH_I2C_Read... [08:09:23]Read from MH i2c: E2 03 00 [08:09:23]MH_I2C_Read... [08:09:23]Read from MH i2c: E2 03 00 FE 0C 00 90 00 7E [08:09:23]RAPDU: 90 00 [08:09:23]wFMCommunicate OK [08:09:23]wFMCommunicate request_size=255 [08:09:23]MH_SAM_APDU [08:09:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 33 F1 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1A D2 01 00 35 04 06 00 04 [08:09:23]Write to MH i2c: E2 02 01 FF 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 33 F1 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1A D2 01 00 35 04 06 00 04 00 00 FC [08:09:23]Write i2c OK [08:09:23]MH_I2C_Read... [08:09:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:24]Read from MH i2c: E2 [08:09:24]MH_I2C_Read... [08:09:24]Read from MH i2c: E2 03 00 [08:09:24]MH_I2C_Read... [08:09:24]Read from MH i2c: E2 03 00 FF 0C 00 90 00 7F [08:09:24]RAPDU: 90 00 [08:09:24]wFMCommunicate OK [08:09:24]wFMCommunicate request_size=10 [08:09:24]MH_SAM_APDU [08:09:24]CAPDU: 80 0D 02 02 05 07 C5 18 D6 46 [08:09:24]Write to MH i2c: E2 0D 00 00 0D 80 0D 02 02 05 00 07 C5 18 D6 46 00 00 91 [08:09:24]Write i2c OK [08:09:24]MH_I2C_Read... [08:09:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:24]Read from MH i2c: E2 [08:09:24]MH_I2C_Read... [08:09:24]Read from MH i2c: E2 03 00 [08:09:24]MH_I2C_Read... [08:09:24]Read from MH i2c: E2 03 00 00 0D 00 90 00 81 [08:09:24]RAPDU: 90 00 [08:09:24]wFMCommunicate OK [08:09:24]wFMCommunicate request_size=4 [08:09:24]MH_SAM_APDU [08:09:24]CAPDU: 80 0D 03 02 [08:09:24]Write to MH i2c: E2 08 00 01 0D 80 0D 03 02 00 00 00 00 89 [08:09:24]Write i2c OK [08:09:24]MH_I2C_Read... [08:09:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:09:24]Read from MH i2c: E2 [08:09:24]MH_I2C_Read... [08:09:24]Read from MH i2c: E2 0B 00 [08:09:24]MH_I2C_Read... [08:09:24]Read from MH i2c: E2 0B 00 01 0D 00 42 49 A4 89 BB 52 00 4B 90 00 9A [08:09:24]RAPDU: 42 49 A4 89 BB 52 00 4B 90 00 [08:09:24]wFMCommunicate OK [08:09:24]SAM_PROTO_SignData done [08:09:24]FM_MakeSignedData done [08:09:24]CreateOFDProtocolMessage [08:09:24]wFMCommunicate request_size=4 [08:09:24]MH_SAM_APDU [08:09:24]CAPDU: 80 11 00 00 [08:09:24]Write to MH i2c: E2 08 00 02 0D 80 11 00 00 00 00 00 00 89 [08:09:24]Write i2c OK [08:09:24]MH_I2C_Read... [08:09:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:24]Read from MH i2c: E2 [08:09:24]MH_I2C_Read... [08:09:24]Read from MH i2c: E2 17 00 [08:09:24]MH_I2C_Read... [08:09:24]Read from MH i2c: E2 17 00 02 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E4 [08:09:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:09:24]wFMCommunicate OK [08:09:24]CreateOFDProtocolMessage done [08:09:24]OFDSenderStorePacket 119322 [08:09:24]StoreOFDPacket docnum=119322 [08:09:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C9 92 07 01 0A 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 33 F1 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1A D2 01 00 35 04 06 00 04 07 C5 18 D6 46 42 49 A4 89 BB 52 00 4B [08:09:24]CheckFolder [08:09:24]dirname=/storage/ofd_packets [08:09:24]CheckFolder done [08:09:24]ProducePacketName [08:09:24]name=ofd_packets/00119322 [08:09:24]NVStorageSaveData ofd_packets/00119322 [08:09:24]File name is /storage/ofd_packets/00119322 [08:09:24]Write 301 bytes [08:09:24]NVStorageSaveData done [08:09:24]OFDSenderStorePacket done [08:09:24]KKMCreateOFDPacket done [08:09:24]NVStorageSaveData kkm_last_timestamp [08:09:24]File name is /storage/kkm_last_timestamp [08:09:24]Write 4 bytes [08:09:24]NVStorageSaveData done [08:09:24]ExternCall_PrintAddStr [08:09:24]wPrintStart [08:09:24]Write to MH i2c: 01 00 00 03 0D 10 [08:09:24]Write i2c OK [08:09:24]MH_I2C_Read... [08:09:24]Read from MH i2c: 01 [08:09:24]MH_I2C_Read... [08:09:24]Read from MH i2c: 01 07 00 [08:09:24]MH_I2C_Read... [08:09:24]Read from MH i2c: 01 07 00 03 0D 00 00 00 00 00 FF 0F 25 [08:09:24]RasterBufferAndPrint [08:09:24]line Счет N : (1)950248 [08:09:24]line ИНН: 02508201610067 [08:09:24]line Контрольно-Кассовый Чек [08:09:24]line ПРОДАЖА [08:09:24]line ТРК (МРК, ГНК) : 53 [08:09:24]line Товар: 2710124500 [08:09:24]line Аи-95-К-3 [08:09:24]line 6.740 * 74.20 [08:09:24]line = 500.11 [08:09:24]line НДС 12% НСП 1% [08:09:24]line > о реализуемом товаре [08:09:24]line ОКРУГЛЕНИЕ: -0.11 [08:09:24]line ИТОГО: 500.00 [08:09:24]line Внесено: 500.00 [08:09:24]line СДАЧА: 0.00 [08:09:24]line НСП 1% : 4.43 [08:09:24]line НДС 12% : 53.11 [08:09:24]line Наличными: 500.00 [08:09:24]line Безнал.: 0.00 [08:09:24]line Место: АЗС № 134 "Партнер Нефть" [08:09:24]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:09:24]line СНО: Общий режим [08:09:24]line Чек 53 31.07.2024 08:09 [08:09:24]line Смена: 436 ФФД: 1.0 [08:09:24]line ЗНМ: 0300000044 [08:09:24]line РНМ: 0000000000092660 [08:09:24]line Версия ККМ: 001 [08:09:24]line ФМ: 0000000000874939 [08:09:24]line ФД: 119322 [08:09:24]line ФПД: 4431418021446 [08:09:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T080923&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119322&fm=4431418021446&tin=02508201610067®Number=0000000000092660&sum=50000 [08:09:24]written 0, free lines is 4095 [08:09:24]OFD Sender: Processing packet 119322 [packets to send 86, broken 85] [08:09:24]ProducePacketName [08:09:24]name=ofd_packets/00119322 [08:09:24]OFD Sender: To server: pG, [08:09:24]CommunicateWithHost lk.salyk.kg:30040 [08:09:24]ConnectInit lk.salyk.kg [08:09:24]Connected sock=10 [08:09:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C9 92 07 01 0A 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 33 F1 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1A D2 01 00 35 04 06 00 04 07 C5 18 D6 46 42 49 A4 89 BB 52 00 4B [08:09:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 48 CE 47 00 F6 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 39 33 39 10 04 04 00 1A D2 01 00 F4 03 04 00 BD 9E A9 66 B6 04 01 00 00 DE EC 34 1E 23 B8 FE 53 [08:09:24]CommunicateWithHost err = 0 [08:09:24]CheckOFDResponse [08:09:24]1017 (14) - 77093643461234 [08:09:24]1041 (16) - 0000000000874939 [08:09:24]1040 (4) - 119322 [08:09:24]1012 (4) - 31.07.2024 02:17 [08:09:24]1206 (1) - 0 [08:09:24]OFD Sender: Remove packet 119322 [08:09:24]ProducePacketName [08:09:24]name=ofd_packets/00119322 [08:09:24]NVStorageDeleteData [08:09:25]Write to MH i2c: 01 00 00 2D 0D 3A [08:09:25]Write i2c OK [08:09:25]MH_I2C_Read... [08:09:25]Read from MH i2c: 01 [08:09:25]MH_I2C_Read... [08:09:25]Read from MH i2c: 01 07 00 [08:09:25]MH_I2C_Read... [08:09:25]Read from MH i2c: 01 07 00 2D 0D 00 00 00 00 00 DF 0C 2C [08:09:25]RasterBufferAndPrint [08:09:25]line [08:09:25]line [08:09:25]line [08:09:25]line [08:09:25]line [08:09:25]written 0, free lines is 3307 [08:09:25]MH_Cut [08:09:25]Write to MH i2c: D1 01 00 34 0D 01 13 [08:09:25]Write i2c OK [08:09:25]MH_I2C_Read... [08:09:25]Read from MH i2c: D1 [08:09:25]MH_I2C_Read... [08:09:25]Read from MH i2c: D1 01 00 [08:09:25]MH_I2C_Read... [08:09:25]Read from MH i2c: D1 01 00 34 0D 00 12 [08:09:25]Write to MH i2c: 01 00 00 35 0D 42 [08:09:25]Write i2c OK [08:09:25]MH_I2C_Read... [08:09:25]OFD Sender: No OFD packet to send [08:09:25]*** Cut start [08:09:25]*** Partial cut [08:09:25]*** CUTSNS_PIN = 1 [08:09:25]*** CUTSNS_PIN = 0 [08:09:26]*** Brake cut motor [08:09:26]Read from MH i2c: 01 [08:09:26]MH_I2C_Read... [08:09:26]*** Stop cut motor [08:09:26]*** Cut end [08:09:26]Read from MH i2c: 01 07 00 [08:09:26]MH_I2C_Read... [08:09:26]Read from MH i2c: 01 07 00 35 0D 00 00 00 00 00 FF 0F 57 [08:09:26]process_action close_receipt done [08:09:26]requested_data is exist [08:09:26]produce_requested_data [08:09:26]requested_item fm.sn is exist - process it [08:09:26]wFMCommunicate request_size=4 [08:09:26]MH_SAM_APDU [08:09:26]CAPDU: 80 11 00 00 [08:09:26]Write to MH i2c: E2 08 00 36 0D 80 11 00 00 00 00 00 00 BD [08:09:26]Write i2c OK [08:09:26]MH_I2C_Read... [08:09:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:26]Read from MH i2c: E2 [08:09:26]MH_I2C_Read... [08:09:26]Read from MH i2c: E2 17 00 [08:09:26]MH_I2C_Read... [08:09:26]Read from MH i2c: E2 17 00 36 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 18 [08:09:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:09:26]wFMCommunicate OK [08:09:26]requested_item fd.num is exist - process it [08:09:26]SAM_PROTO_GetFieldsCounters [08:09:26]wFMCommunicate request_size=4 [08:09:26]MH_SAM_APDU [08:09:26]CAPDU: 80 13 00 00 [08:09:26]Write to MH i2c: E2 08 00 37 0D 80 13 00 00 00 00 00 00 C0 [08:09:26]Write i2c OK [08:09:26]MH_I2C_Read... [08:09:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:09:26]Read from MH i2c: E2 [08:09:26]MH_I2C_Read... [08:09:26]Read from MH i2c: E2 62 00 [08:09:26]MH_I2C_Read... [08:09:26]Read from MH i2c: E2 62 00 37 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1A D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [08:09:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1A D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:09:26]wFMCommunicate OK [08:09:26]SAM_PROTO_GetFieldsCounters done [08:09:26]requested_item shift.num is exist - process it [08:09:26]requested_item shift.opened is exist - process it [08:09:26]req_shift_opened [08:09:26]FM_GetShiftState [08:09:26]SAM_PROTO_GetShiftState [08:09:26]wFMCommunicate request_size=4 [08:09:26]MH_SAM_APDU [08:09:26]CAPDU: 80 13 01 00 [08:09:26]Write to MH i2c: E2 08 00 38 0D 80 13 01 00 00 00 00 00 C2 [08:09:26]Write i2c OK [08:09:26]MH_I2C_Read... [08:09:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:26]Read from MH i2c: E2 [08:09:26]MH_I2C_Read... [08:09:26]Read from MH i2c: E2 0E 00 [08:09:26]MH_I2C_Read... [08:09:26]Read from MH i2c: E2 0E 00 38 0D 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 5A [08:09:26]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [08:09:26]wFMCommunicate OK [08:09:26]SAM_PROTO_GetShiftState done [08:09:26]FM_GetShiftState done [08:09:26]req_shift_opened done [08:09:26]requested_item shift.open_date is exist - process it [08:09:26]req_shift_open_date [08:09:26]req_shift_open_date done [08:09:26]produce_requested_data done [08:09:26]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119322,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [08:09:26]process_action_free close_receipt [08:09:26]json_value_free [08:09:26]json_value_free done [08:09:26]process_json_proto returns [08:09:26]Send response to host [08:09:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119322,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [08:09:26]free response buf [08:09:26]execute_script done [08:09:26]execute_script returns [08:09:26]free content buf [08:09:26]Sock 9.Close socket [08:09:26]Sock 9.Thread stoped [08:09:30]OFD Sender: No OFD packet to send [08:09:35]OFD Sender: No OFD packet to send [08:09:40]OFD Sender: No OFD packet to send [08:09:45]OFD Sender: No OFD packet to send [08:09:50]OFD Sender: No OFD packet to send [08:09:55]OFD Sender: No OFD packet to send [08:10:00]OFD Sender: No OFD packet to send [08:10:05]OFD Sender: No OFD packet to send [08:10:10]OFD Sender: No OFD packet to send [08:10:15]OFD Sender: No OFD packet to send [08:10:20]OFD Sender: No OFD packet to send [08:10:25]OFD Sender: No OFD packet to send [08:10:30]OFD Sender: No OFD packet to send [08:10:32]accept exits with 8 [08:10:32]New connection [08:10:32]New thread 3067194724 created [08:10:32]Thread 3067338084 joined [08:10:32]Waiting for new connection... [08:10:32] Sock 8.Parse request [08:10:32]Sock 8.Check first char [08:10:32]Sock 8.First char is OK [08:10:32]request: POST /json_proto HTTP/1.0 [08:10:32]Method: POST [08:10:32]URL: /json_proto [08:10:32]Method is POST - this is cgi request [08:10:32]url: /json_proto [08:10:32]query_string will be loaded in cgi processing [08:10:32]execute_cgi json_proto POST (null) [08:10:32]execute_cgi path=json_proto method=POST [08:10:32]POST find Content-Length [08:10:32]Host: 172.17.45.7:8080 [08:10:32]Content-Length: 734 [08:10:32]Content-Type: application/json [08:10:32] [08:10:32]POST finish read [08:10:32]Found Content-Length = 734 [08:10:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 119322, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:32]execute_script... [08:10:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 119322, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:32]POST & json_proto [08:10:32]process_json_proto [08:10:32]json parsed OK: [08:10:32]protocol is kg_v1.0 [08:10:32]action value=close_receipt [08:10:32]process_action close_receipt [08:10:32]cmd_close_receipt [08:10:32]MH_GetDate [08:10:32]Write to MH i2c: F0 00 00 39 0D 35 [08:10:32]Write i2c OK [08:10:32]MH_I2C_Read... [08:10:32]Read from MH i2c: F0 [08:10:32]MH_I2C_Read... [08:10:32]Read from MH i2c: F0 09 00 [08:10:32]MH_I2C_Read... [08:10:32]Read from MH i2c: F0 09 00 39 0D 00 7A F1 A9 66 90 0F 3E 66 FB [08:10:32]GetLastDocTimeStamp 1722413363 [08:10:32]current date 1722413434 [08:10:32]FM_GetShiftState [08:10:32]SAM_PROTO_GetShiftState [08:10:32]wFMCommunicate request_size=4 [08:10:32]MH_SAM_APDU [08:10:32]CAPDU: 80 13 01 00 [08:10:32]Write to MH i2c: E2 08 00 3A 0D 80 13 01 00 00 00 00 00 C4 [08:10:32]Write i2c OK [08:10:32]MH_I2C_Read... [08:10:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:32]Read from MH i2c: E2 [08:10:32]MH_I2C_Read... [08:10:32]Read from MH i2c: E2 0E 00 [08:10:32]MH_I2C_Read... [08:10:32]Read from MH i2c: E2 0E 00 3A 0D 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 5C [08:10:32]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [08:10:32]wFMCommunicate OK [08:10:32]SAM_PROTO_GetShiftState done [08:10:32]FM_GetShiftState done [08:10:32]opened in 1722384637 [08:10:32]opened+sec_in_day 1722471037 [08:10:32]quantity*price = 50010 [08:10:32]sum+1 = 50012 [08:10:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 54 31.07.2024 08:10 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФД осн.: 119322 ФМ осн.: 0000000000874939 ФМ: 0000000000874939 ФД: 119323 ФПД: 262591341080982 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T081034&type=2&operation_type=1&fn_number=0000000000874939&fd_number=119323&fm=262591341080982&tin=02508201610067®Number=0000000000092660&sum=50000 [08:10:33]StoreToDocumentArchive [08:10:33]shift 436 fd 119323 [08:10:33]save to /storage/0436/doc_00119323 [08:10:33]save last doc name /storage/0436/doc_00119323 to /storage/kkm_last_doc_name [08:10:33]save OK [08:10:33]Clear old archive folders... [08:10:33]ProcessDocumentItem done err = 0, tmpTLVsize=279 [08:10:33]tlvbuf is 00B1D360 [08:10:33]SAM_PROTO_ClearQueue [08:10:33]wFMCommunicate request_size=4 [08:10:33]MH_SAM_APDU [08:10:33]CAPDU: 80 09 00 00 [08:10:33]Write to MH i2c: E2 08 00 49 0D 80 09 00 00 00 00 00 00 C8 [08:10:33]Write i2c OK [08:10:33]MH_I2C_Read... [08:10:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:10:33]Read from MH i2c: E2 [08:10:33]MH_I2C_Read... [08:10:33]Read from MH i2c: E2 03 00 [08:10:33]MH_I2C_Read... [08:10:33]Read from MH i2c: E2 03 00 49 0D 00 90 00 CA [08:10:33]RAPDU: 90 00 [08:10:33]wFMCommunicate OK [08:10:33]SAM_PROTO_ClearQueue done [08:10:33]KKMCreateOFDPacket [08:10:33]OFDProtocolAddRootSTLVToBuf [08:10:33]FM_MakeSignedData [08:10:33]FM_MakeSignedData [08:10:33]SAM_PROTO_SignData [08:10:33]wFMCommunicate request_size=4 [08:10:33]MH_SAM_APDU [08:10:33]CAPDU: 80 0D 01 02 [08:10:33]Write to MH i2c: E2 08 00 4A 0D 80 0D 01 02 00 00 00 00 D0 [08:10:33]Write i2c OK [08:10:33]MH_I2C_Read... [08:10:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:10:33]Read from MH i2c: E2 [08:10:33]MH_I2C_Read... [08:10:33]Read from MH i2c: E2 03 00 [08:10:33]MH_I2C_Read... [08:10:33]Read from MH i2c: E2 03 00 4A 0D 00 90 00 CB [08:10:33]RAPDU: 90 00 [08:10:33]wFMCommunicate OK [08:10:33]wFMCommunicate request_size=255 [08:10:33]MH_SAM_APDU [08:10:33]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 7A F1 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 1A D2 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 [08:10:33]Write to MH i2c: E2 02 01 4B 0D 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 7A F1 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 1A D2 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 00 00 EF [08:10:33]Write i2c OK [08:10:33]MH_I2C_Read... [08:10:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:34]Read from MH i2c: E2 [08:10:34]MH_I2C_Read... [08:10:34]Read from MH i2c: E2 03 00 [08:10:34]MH_I2C_Read... [08:10:34]Read from MH i2c: E2 03 00 4B 0D 00 90 00 CC [08:10:34]RAPDU: 90 00 [08:10:34]wFMCommunicate OK [08:10:34]wFMCommunicate request_size=38 [08:10:34]MH_SAM_APDU [08:10:34]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1B D2 01 00 35 04 06 00 EE D3 4F 9B 31 96 [08:10:34]Write to MH i2c: E2 29 00 4C 0D 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1B D2 01 00 35 04 06 00 EE D3 4F 9B 31 96 00 00 C4 [08:10:34]Write i2c OK [08:10:34]MH_I2C_Read... [08:10:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:34]Read from MH i2c: E2 [08:10:34]MH_I2C_Read... [08:10:34]Read from MH i2c: E2 03 00 [08:10:34]MH_I2C_Read... [08:10:34]Read from MH i2c: E2 03 00 4C 0D 00 90 00 CD [08:10:34]RAPDU: 90 00 [08:10:34]wFMCommunicate OK [08:10:34]wFMCommunicate request_size=4 [08:10:34]MH_SAM_APDU [08:10:34]CAPDU: 80 0D 03 02 [08:10:34]Write to MH i2c: E2 08 00 4D 0D 80 0D 03 02 00 00 00 00 D5 [08:10:34]Write i2c OK [08:10:34]MH_I2C_Read... [08:10:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:10:34]Read from MH i2c: E2 [08:10:34]MH_I2C_Read... [08:10:34]Read from MH i2c: E2 0B 00 [08:10:34]MH_I2C_Read... [08:10:34]Read from MH i2c: E2 0B 00 4D 0D 00 E9 DC C2 AF 56 FC 2A 48 90 00 D0 [08:10:34]RAPDU: E9 DC C2 AF 56 FC 2A 48 90 00 [08:10:34]wFMCommunicate OK [08:10:34]SAM_PROTO_SignData done [08:10:34]FM_MakeSignedData done [08:10:34]CreateOFDProtocolMessage [08:10:34]wFMCommunicate request_size=4 [08:10:34]MH_SAM_APDU [08:10:34]CAPDU: 80 11 00 00 [08:10:34]Write to MH i2c: E2 08 00 4E 0D 80 11 00 00 00 00 00 00 D5 [08:10:34]Write i2c OK [08:10:34]MH_I2C_Read... [08:10:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:34]Read from MH i2c: E2 [08:10:34]MH_I2C_Read... [08:10:34]Read from MH i2c: E2 17 00 [08:10:34]MH_I2C_Read... [08:10:34]Read from MH i2c: E2 17 00 4E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 30 [08:10:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:10:34]wFMCommunicate OK [08:10:34]CreateOFDProtocolMessage done [08:10:34]OFDSenderStorePacket 119323 [08:10:34]StoreOFDPacket docnum=119323 [08:10:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 2B 01 00 00 44 57 23 01 4C B8 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 7A F1 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 1A D2 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1B D2 01 00 35 04 06 00 EE D3 4F 9B 31 96 E9 DC C2 AF 56 FC 2A 48 [08:10:34]CheckFolder [08:10:34]dirname=/storage/ofd_packets [08:10:34]CheckFolder done [08:10:34]ProducePacketName [08:10:34]name=ofd_packets/00119323 [08:10:34]NVStorageSaveData ofd_packets/00119323 [08:10:34]File name is /storage/ofd_packets/00119323 [08:10:34]Write 329 bytes [08:10:34]NVStorageSaveData done [08:10:34]OFDSenderStorePacket done [08:10:34]KKMCreateOFDPacket done [08:10:34]NVStorageSaveData kkm_last_timestamp [08:10:34]File name is /storage/kkm_last_timestamp [08:10:34]Write 4 bytes [08:10:34]OFD Sender: Processing packet 119323 [packets to send 86, broken 85] [08:10:34]ProducePacketName [08:10:34]name=ofd_packets/00119323 [08:10:34]OFD Sender: To server: pG, [08:10:34]CommunicateWithHost lk.salyk.kg:30040 [08:10:34]ConnectInit lk.salyk.kg [08:10:34]NVStorageSaveData done [08:10:34]ExternCall_PrintAddStr [08:10:34]wPrintStart [08:10:34]Write to MH i2c: 01 00 00 4F 0D 5C [08:10:34]Write i2c OK [08:10:34]MH_I2C_Read... [08:10:34]Read from MH i2c: 01 [08:10:34]MH_I2C_Read... [08:10:34]Read from MH i2c: 01 07 00 [08:10:34]MH_I2C_Read... [08:10:34]Read from MH i2c: 01 07 00 4F 0D 00 00 00 00 00 FF 0F 71 [08:10:34]RasterBufferAndPrint [08:10:34]line Счет N : (1)950248 [08:10:34]line ИНН: 02508201610067 [08:10:34]line Контрольно-Кассовый Чек [08:10:34]line ВОЗВРАТ ПРОДАЖИ [08:10:34]line ТРК (МРК, ГНК) : 53 [08:10:34]line Товар: 2710124500 [08:10:34]line Аи-95-К-3 [08:10:34]line 6.740 * 74.20 [08:10:34]line = 500.11 [08:10:34]line НДС 12% НСП 1% [08:10:34]line > о реализуемом товаре [08:10:34]line ОКРУГЛЕНИЕ: -0.11 [08:10:34]line ИТОГО: 500.00 [08:10:34]line НСП 1% : 4.43 [08:10:34]line НДС 12% : 53.11 [08:10:34]line Наличными: 500.00 [08:10:34]line Безнал.: 0.00 [08:10:34]line Место: АЗС № 134 "Партнер Нефть" [08:10:34]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:10:34]line СНО: Общий режим [08:10:34]line Чек 54 31.07.2024 08:10 [08:10:34]line Смена: 436 ФФД: 1.0 [08:10:34]line ЗНМ: 0300000044 [08:10:34]line РНМ: 0000000000092660 [08:10:34]line Версия ККМ: 001 [08:10:34]line ФД осн.: 119322 [08:10:34]line ФМ осн.: 0000000000874939 [08:10:34]line ФМ: 0000000000874939 [08:10:34]line ФД: 119323 [08:10:34]line ФПД: 262591341080982 [08:10:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T081034&type=2&operation_type=1&fn_number=0000000000874939&fd_number=119323&fm=262591341080982&tin=02508201610067®Number=0000000000092660&sum=50000 [08:10:34]Connected sock=11 [08:10: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 39 33 39 2B 01 00 00 44 57 23 01 4C B8 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 7A F1 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 1A D2 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1B D2 01 00 35 04 06 00 EE D3 4F 9B 31 96 E9 DC C2 AF 56 FC 2A 48 [08:10:34]written 0, free lines is 4095 [08:10:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 BF 59 47 00 22 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1B D2 01 00 F4 03 04 00 03 9F A9 66 B6 04 01 00 00 C6 9F 6C A0 22 C5 80 9A [08:10:34]CommunicateWithHost err = 0 [08:10:34]CheckOFDResponse [08:10:34]1017 (14) - 77093643461234 [08:10:34]1041 (16) - 0000000000874939 [08:10:34]1040 (4) - 119323 [08:10:34]1012 (4) - 31.07.2024 02:18 [08:10:34]1206 (1) - 0 [08:10:34]OFD Sender: Remove packet 119323 [08:10:34]ProducePacketName [08:10:34]name=ofd_packets/00119323 [08:10:34]NVStorageDeleteData [08:10:35]Write to MH i2c: 01 00 00 79 0D 86 [08:10:35]Write i2c OK [08:10:35]MH_I2C_Read... [08:10:35]Read from MH i2c: 01 [08:10:35]MH_I2C_Read... [08:10:35]Read from MH i2c: 01 07 00 [08:10:35]MH_I2C_Read... [08:10:35]Read from MH i2c: 01 07 00 79 0D 00 00 00 00 00 DB 0C 74 [08:10:35]RasterBufferAndPrint [08:10:35]line [08:10:35]line [08:10:35]line [08:10:35]line [08:10:35]line [08:10:35]written 0, free lines is 3301 [08:10:35]MH_Cut [08:10:35]Write to MH i2c: D1 01 00 80 0D 01 5F [08:10:35]Write i2c OK [08:10:35]MH_I2C_Read... [08:10:35]Read from MH i2c: D1 [08:10:35]MH_I2C_Read... [08:10:35]Read from MH i2c: D1 01 00 [08:10:35]MH_I2C_Read... [08:10:35]Read from MH i2c: D1 01 00 80 0D 00 5E [08:10:35]Write to MH i2c: 01 00 00 81 0D 8E [08:10:35]Write i2c OK [08:10:35]MH_I2C_Read... [08:10:35]OFD Sender: No OFD packet to send [08:10:35]*** Cut start [08:10:35]*** Partial cut [08:10:35]*** CUTSNS_PIN = 1 [08:10:36]*** CUTSNS_PIN = 0 [08:10:36]*** Brake cut motor [08:10:36]Read from MH i2c: 01 [08:10:36]*** Stop cut motor [08:10:36]*** Cut end [08:10:36]MH_I2C_Read... [08:10:36]Read from MH i2c: 01 07 00 [08:10:36]MH_I2C_Read... [08:10:36]Read from MH i2c: 01 07 00 81 0D 00 00 00 00 00 FF 0F A3 [08:10:36]process_action close_receipt done [08:10:36]requested_data is exist [08:10:36]produce_requested_data [08:10:36]requested_item fm.sn is exist - process it [08:10:36]wFMCommunicate request_size=4 [08:10:36]MH_SAM_APDU [08:10:36]CAPDU: 80 11 00 00 [08:10:36]Write to MH i2c: E2 08 00 82 0D 80 11 00 00 00 00 00 00 09 [08:10:36]Write i2c OK [08:10:36]MH_I2C_Read... [08:10:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:36]Read from MH i2c: E2 [08:10:36]MH_I2C_Read... [08:10:36]Read from MH i2c: E2 17 00 [08:10:36]MH_I2C_Read... [08:10:36]Read from MH i2c: E2 17 00 82 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 64 [08:10:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:10:36]wFMCommunicate OK [08:10:36]requested_item fd.num is exist - process it [08:10:36]SAM_PROTO_GetFieldsCounters [08:10:36]wFMCommunicate request_size=4 [08:10:36]MH_SAM_APDU [08:10:36]CAPDU: 80 13 00 00 [08:10:36]Write to MH i2c: E2 08 00 83 0D 80 13 00 00 00 00 00 00 0C [08:10:36]Write i2c OK [08:10:36]MH_I2C_Read... [08:10:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:10:36]Read from MH i2c: E2 [08:10:36]MH_I2C_Read... [08:10:36]Read from MH i2c: E2 62 00 [08:10:36]MH_I2C_Read... [08:10:36]Read from MH i2c: E2 62 00 83 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1B D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [08:10: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1B D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:10:36]wFMCommunicate OK [08:10:36]SAM_PROTO_GetFieldsCounters done [08:10:36]requested_item shift.num is exist - process it [08:10:36]requested_item shift.opened is exist - process it [08:10:36]req_shift_opened [08:10:36]FM_GetShiftState [08:10:36]SAM_PROTO_GetShiftState [08:10:36]wFMCommunicate request_size=4 [08:10:36]MH_SAM_APDU [08:10:36]CAPDU: 80 13 01 00 [08:10:36]Write to MH i2c: E2 08 00 84 0D 80 13 01 00 00 00 00 00 0E [08:10:36]Write i2c OK [08:10:36]MH_I2C_Read... [08:10:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:36]Read from MH i2c: E2 [08:10:36]MH_I2C_Read... [08:10:36]Read from MH i2c: E2 0E 00 [08:10:36]MH_I2C_Read... [08:10:36]Read from MH i2c: E2 0E 00 84 0D 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 A6 [08:10:36]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [08:10:36]wFMCommunicate OK [08:10:36]SAM_PROTO_GetShiftState done [08:10:36]FM_GetShiftState done [08:10:36]req_shift_opened done [08:10:36]requested_item shift.open_date is exist - process it [08:10:36]req_shift_open_date [08:10:36]req_shift_open_date done [08:10:36]produce_requested_data done [08:10:36]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119323,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [08:10:36]process_action_free close_receipt [08:10:36]json_value_free [08:10:36]json_value_free done [08:10:36]process_json_proto returns [08:10:36]Send response to host [08:10:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119323,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [08:10:36]free response buf [08:10:36]execute_script done [08:10:36]execute_script returns [08:10:36]free content buf [08:10:36]Sock 8.Close socket [08:10:36]Sock 8.Thread stoped [08:10:40]OFD Sender: No OFD packet to send [08:10:45]OFD Sender: No OFD packet to send [08:10:50]OFD Sender: No OFD packet to send [08:10:55]OFD Sender: No OFD packet to send [08:11:00]OFD Sender: No OFD packet to send [08:11:05]OFD Sender: No OFD packet to send [08:11:10]OFD Sender: No OFD packet to send [08:11:13]accept exits with 9 [08:11:13]New connection [08:11:13]New thread 3067338084 created [08:11:13]Thread 3067194724 joined [08:11:13]Waiting for new connection... [08:11:13] Sock 9.Parse request [08:11:13]Sock 9.Check first char [08:11:13]Sock 9.First char is OK [08:11:13]request: POST /json_proto HTTP/1.0 [08:11:13]Method: POST [08:11:13]URL: /json_proto [08:11:13]Method is POST - this is cgi request [08:11:13]url: /json_proto [08:11:13]query_string will be loaded in cgi processing [08:11:13]execute_cgi json_proto POST (null) [08:11:13]execute_cgi path=json_proto method=POST [08:11:13]POST find Content-Length [08:11:13]Host: 172.17.45.7:8080 [08:11:13]Content-Length: 677 [08:11:13]Content-Type: application/json [08:11:13] [08:11:13]POST finish read [08:11:13]Found Content-Length = 677 [08:11:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:11:13]execute_script... [08:11:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:11:13]POST & json_proto [08:11:13]process_json_proto [08:11:13]json parsed OK: [08:11:13]protocol is kg_v1.0 [08:11:13]action value=close_receipt [08:11:13]process_action close_receipt [08:11:13]cmd_close_receipt [08:11:13]MH_GetDate [08:11:13]Write to MH i2c: F0 00 00 85 0D 81 [08:11:13]Write i2c OK [08:11:13]MH_I2C_Read... [08:11:13]Read from MH i2c: F0 [08:11:13]MH_I2C_Read... [08:11:13]Read from MH i2c: F0 09 00 [08:11:13]MH_I2C_Read... [08:11:13]Read from MH i2c: F0 09 00 85 0D 00 A3 F1 A9 66 90 0F 3E 66 70 [08:11:13]GetLastDocTimeStamp 1722413434 [08:11:13]current date 1722413475 [08:11:13]FM_GetShiftState [08:11:13]SAM_PROTO_GetShiftState [08:11:13]wFMCommunicate request_size=4 [08:11:13]MH_SAM_APDU [08:11:13]CAPDU: 80 13 01 00 [08:11:13]Write to MH i2c: E2 08 00 86 0D 80 13 01 00 00 00 00 00 10 [08:11:13]Write i2c OK [08:11:13]MH_I2C_Read... [08:11:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:13]Read from MH i2c: E2 [08:11:13]MH_I2C_Read... [08:11:13]Read from MH i2c: E2 0E 00 [08:11:13]MH_I2C_Read... [08:11:13]Read from MH i2c: E2 0E 00 86 0D 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 A8 [08:11:13]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [08:11:13]wFMCommunicate OK [08:11:13]SAM_PROTO_GetShiftState done [08:11:13]FM_GetShiftState done [08:11:13]opened in 1722384637 [08:11:13]opened+sec_in_day 1722471037 [08:11:13]quantity*price = 50036 [08:11:13]sum+1 = 50037 [08:11:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 55 31.07.2024 08:11 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119324 ФПД: 153153956909699 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T081115&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119324&fm=153153956909699&tin=02508201610067®Number=0000000000092660&sum=50000 [08:11:14]StoreToDocumentArchive [08:11:14]shift 436 fd 119324 [08:11:14]save to /storage/0436/doc_00119324 [08:11:14]save last doc name /storage/0436/doc_00119324 to /storage/kkm_last_doc_name [08:11:14]save OK [08:11:14]Clear old archive folders... [08:11:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:11:14]tlvbuf is 00AD0200 [08:11:14]SAM_PROTO_ClearQueue [08:11:14]wFMCommunicate request_size=4 [08:11:14]MH_SAM_APDU [08:11:14]CAPDU: 80 09 00 00 [08:11:14]Write to MH i2c: E2 08 00 93 0D 80 09 00 00 00 00 00 00 12 [08:11:14]Write i2c OK [08:11:14]MH_I2C_Read... [08:11:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:11:14]Read from MH i2c: E2 [08:11:14]MH_I2C_Read... [08:11:14]Read from MH i2c: E2 03 00 [08:11:14]MH_I2C_Read... [08:11:14]Read from MH i2c: E2 03 00 93 0D 00 90 00 14 [08:11:14]RAPDU: 90 00 [08:11:14]wFMCommunicate OK [08:11:14]SAM_PROTO_ClearQueue done [08:11:14]KKMCreateOFDPacket [08:11:14]OFDProtocolAddRootSTLVToBuf [08:11:14]FM_MakeSignedData [08:11:14]FM_MakeSignedData [08:11:14]SAM_PROTO_SignData [08:11:14]wFMCommunicate request_size=4 [08:11:14]MH_SAM_APDU [08:11:14]CAPDU: 80 0D 01 02 [08:11:14]Write to MH i2c: E2 08 00 94 0D 80 0D 01 02 00 00 00 00 1A [08:11:14]Write i2c OK [08:11:14]MH_I2C_Read... [08:11:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:11:14]Read from MH i2c: E2 [08:11:14]MH_I2C_Read... [08:11:14]Read from MH i2c: E2 03 00 [08:11:14]MH_I2C_Read... [08:11:14]Read from MH i2c: E2 03 00 94 0D 00 90 00 15 [08:11:14]RAPDU: 90 00 [08:11:14]wFMCommunicate OK [08:11:14]wFMCommunicate request_size=255 [08:11:14]MH_SAM_APDU [08:11:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 A3 F1 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1C D2 01 00 35 04 06 00 8B [08:11:14]Write to MH i2c: E2 02 01 95 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 A3 F1 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1C D2 01 00 35 04 06 00 8B 00 00 A7 [08:11:14]Write i2c OK [08:11:14]MH_I2C_Read... [08:11:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:15]Read from MH i2c: E2 [08:11:15]MH_I2C_Read... [08:11:15]Read from MH i2c: E2 03 00 [08:11:15]MH_I2C_Read... [08:11:15]Read from MH i2c: E2 03 00 95 0D 00 90 00 16 [08:11:15]RAPDU: 90 00 [08:11:15]wFMCommunicate OK [08:11:15]wFMCommunicate request_size=10 [08:11:15]MH_SAM_APDU [08:11:15]CAPDU: 80 0D 02 02 05 4A EF 32 92 83 [08:11:15]Write to MH i2c: E2 0D 00 96 0D 80 0D 02 02 05 00 4A EF 32 92 83 00 00 A7 [08:11:15]Write i2c OK [08:11:15]MH_I2C_Read... [08:11:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:15]Read from MH i2c: E2 [08:11:15]MH_I2C_Read... [08:11:15]Read from MH i2c: E2 03 00 [08:11:15]MH_I2C_Read... [08:11:15]Read from MH i2c: E2 03 00 96 0D 00 90 00 17 [08:11:15]RAPDU: 90 00 [08:11:15]wFMCommunicate OK [08:11:15]wFMCommunicate request_size=4 [08:11:15]MH_SAM_APDU [08:11:15]CAPDU: 80 0D 03 02 [08:11:15]Write to MH i2c: E2 08 00 97 0D 80 0D 03 02 00 00 00 00 1F [08:11:15]Write i2c OK [08:11:15]MH_I2C_Read... [08:11:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:11:15]Read from MH i2c: E2 [08:11:15]MH_I2C_Read... [08:11:15]Read from MH i2c: E2 0B 00 [08:11:15]MH_I2C_Read... [08:11:15]Read from MH i2c: E2 0B 00 97 0D 00 0F 98 56 9E 4B 8E A7 36 90 00 71 [08:11:15]RAPDU: 0F 98 56 9E 4B 8E A7 36 90 00 [08:11:15]wFMCommunicate OK [08:11:15]SAM_PROTO_SignData done [08:11:15]FM_MakeSignedData done [08:11:15]CreateOFDProtocolMessage [08:11:15]wFMCommunicate request_size=4 [08:11:15]MH_SAM_APDU [08:11:15]CAPDU: 80 11 00 00 [08:11:15]Write to MH i2c: E2 08 00 98 0D 80 11 00 00 00 00 00 00 1F [08:11:15]Write i2c OK [08:11:15]MH_I2C_Read... [08:11:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:15]Read from MH i2c: E2 [08:11:15]MH_I2C_Read... [08:11:15]Read from MH i2c: E2 17 00 [08:11:15]MH_I2C_Read... [08:11:15]Read from MH i2c: E2 17 00 98 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7A [08:11:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:11:15]wFMCommunicate OK [08:11:15]CreateOFDProtocolMessage done [08:11:15]OFDSenderStorePacket 119324 [08:11:15]StoreOFDPacket docnum=119324 [08:11:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 92 AC 07 01 E1 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 A3 F1 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1C D2 01 00 35 04 06 00 8B 4A EF 32 92 83 0F 98 56 9E 4B 8E A7 36 [08:11:15]CheckFolder [08:11:15]dirname=/storage/ofd_packets [08:11:15]CheckFolder done [08:11:15]ProducePacketName [08:11:15]name=ofd_packets/00119324 [08:11:15]NVStorageSaveData ofd_packets/00119324 [08:11:15]File name is /storage/ofd_packets/00119324 [08:11:15]Write 301 bytes [08:11:15]NVStorageSaveData done [08:11:15]OFDSenderStorePacket done [08:11:15]KKMCreateOFDPacket done [08:11:15]NVStorageSaveData kkm_last_timestamp [08:11:15]File name is /storage/kkm_last_timestamp [08:11:15]Write 4 bytes [08:11:15]NVStorageSaveData done [08:11:15]ExternCall_PrintAddStr [08:11:15]wPrintStart [08:11:15]Write to MH i2c: 01 00 00 99 0D A6 [08:11:15]Write i2c OK [08:11:15]MH_I2C_Read... [08:11:15]Read from MH i2c: 01 [08:11:15]MH_I2C_Read... [08:11:15]Read from MH i2c: 01 07 00 [08:11:15]MH_I2C_Read... [08:11:15]Read from MH i2c: 01 07 00 99 0D 00 00 00 00 00 FF 0F BB [08:11:15]RasterBufferAndPrint [08:11:15]line Счет N : (1)950250 [08:11:15]line ИНН: 02508201610067 [08:11:15]line Контрольно-Кассовый Чек [08:11:15]line ПРОДАЖА [08:11:15]line ТРК (МРК, ГНК) : 51 [08:11:15]line Товар: 2710124130 [08:11:15]line Аи-92-К-4 [08:11:15]line 7.380 * 67.80 [08:11:15]line = 500.36 [08:11:15]line НДС 12% НСП 1% [08:11:15]line > о реализуемом товаре [08:11:15]line ОКРУГЛЕНИЕ: -0.36 [08:11:15]line ИТОГО: 500.00 [08:11:15]line Внесено: 500.00 [08:11:15]line СДАЧА: 0.00 [08:11:15]line НСП 1% : 4.43 [08:11:15]line НДС 12% : 53.14 [08:11:15]line Наличными: 500.00 [08:11:15]line Безнал.: 0.00 [08:11:15]line Место: АЗС № 134 "Партнер Нефть" [08:11:15]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:11:15]line СНО: Общий режим [08:11:15]line Чек 55 31.07.2024 08:11 [08:11:15]line Смена: 436 ФФД: 1.0 [08:11:15]line ЗНМ: 0300000044 [08:11:15]line РНМ: 0000000000092660 [08:11:15]line Версия ККМ: 001 [08:11:15]line ФМ: 0000000000874939 [08:11:15]line ФД: 119324 [08:11:15]line ФПД: 153153956909699 [08:11:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T081115&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119324&fm=153153956909699&tin=02508201610067®Number=0000000000092660&sum=50000 [08:11:15]OFD Sender: Processing packet 119324 [packets to send 86, broken 85] [08:11:15]ProducePacketName [08:11:15]name=ofd_packets/00119324 [08:11:15]OFD Sender: To server: pG, [08:11:15]CommunicateWithHost lk.salyk.kg:30040 [08:11:15]ConnectInit lk.salyk.kg [08:11:15]written 0, free lines is 4095 [08:11:15]Connected sock=8 [08:11:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 92 AC 07 01 E1 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 A3 F1 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1C D2 01 00 35 04 06 00 8B 4A EF 32 92 83 0F 98 56 9E 4B 8E A7 36 [08:11:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 50 2F 47 00 D1 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1C D2 01 00 F4 03 04 00 2C 9F A9 66 B6 04 01 00 00 4E 0D 0F 08 9B 81 0F 9E [08:11:15]CommunicateWithHost err = 0 [08:11:15]CheckOFDResponse [08:11:15]1017 (14) - 77093643461234 [08:11:15]1041 (16) - 0000000000874939 [08:11:15]1040 (4) - 119324 [08:11:15]1012 (4) - 31.07.2024 02:19 [08:11:15]1206 (1) - 0 [08:11:15]OFD Sender: Remove packet 119324 [08:11:15]ProducePacketName [08:11:15]name=ofd_packets/00119324 [08:11:15]NVStorageDeleteData [08:11:15]Write to MH i2c: 01 00 00 C3 0D D0 [08:11:15]Write i2c OK [08:11:15]MH_I2C_Read... [08:11:15]Read from MH i2c: 01 [08:11:15]MH_I2C_Read... [08:11:15]Read from MH i2c: 01 07 00 [08:11:15]MH_I2C_Read... [08:11:15]Read from MH i2c: 01 07 00 C3 0D 00 00 00 00 00 CA 0C AD [08:11:15]RasterBufferAndPrint [08:11:15]line [08:11:15]line [08:11:15]line [08:11:15]line [08:11:15]line [08:11:15]written 0, free lines is 3282 [08:11:15]MH_Cut [08:11:15]Write to MH i2c: D1 01 00 CA 0D 01 A9 [08:11:15]Write i2c OK [08:11:15]MH_I2C_Read... [08:11:15]Read from MH i2c: D1 [08:11:15]MH_I2C_Read... [08:11:15]Read from MH i2c: D1 01 00 [08:11:15]MH_I2C_Read... [08:11:15]Read from MH i2c: D1 01 00 CA 0D 00 A8 [08:11:15]Write to MH i2c: 01 00 00 CB 0D D8 [08:11:16]Write i2c OK [08:11:16]MH_I2C_Read... [08:11:16]OFD Sender: No OFD packet to send [08:11:16]*** Cut start [08:11:16]*** Partial cut [08:11:16]*** CUTSNS_PIN = 1 [08:11:16]*** CUTSNS_PIN = 0 [08:11:16]*** Brake cut motor [08:11:17]Read from MH i2c: 01 [08:11:17]MH_I2C_Read... [08:11:17]*** Stop cut motor [08:11:17]*** Cut end [08:11:17]Read from MH i2c: 01 07 00 [08:11:17]MH_I2C_Read... [08:11:17]Read from MH i2c: 01 07 00 CB 0D 00 00 00 00 00 FF 0F ED [08:11:17]process_action close_receipt done [08:11:17]requested_data is exist [08:11:17]produce_requested_data [08:11:17]requested_item fm.sn is exist - process it [08:11:17]wFMCommunicate request_size=4 [08:11:17]MH_SAM_APDU [08:11:17]CAPDU: 80 11 00 00 [08:11:17]Write to MH i2c: E2 08 00 CC 0D 80 11 00 00 00 00 00 00 53 [08:11:17]Write i2c OK [08:11:17]MH_I2C_Read... [08:11:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:17]Read from MH i2c: E2 [08:11:17]MH_I2C_Read... [08:11:17]Read from MH i2c: E2 17 00 [08:11:17]MH_I2C_Read... [08:11:17]Read from MH i2c: E2 17 00 CC 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AE [08:11:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:11:17]wFMCommunicate OK [08:11:17]requested_item fd.num is exist - process it [08:11:17]SAM_PROTO_GetFieldsCounters [08:11:17]wFMCommunicate request_size=4 [08:11:17]MH_SAM_APDU [08:11:17]CAPDU: 80 13 00 00 [08:11:17]Write to MH i2c: E2 08 00 CD 0D 80 13 00 00 00 00 00 00 56 [08:11:17]Write i2c OK [08:11:17]MH_I2C_Read... [08:11:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:11:17]Read from MH i2c: E2 [08:11:17]MH_I2C_Read... [08:11:17]Read from MH i2c: E2 62 00 [08:11:17]MH_I2C_Read... [08:11:17]Read from MH i2c: E2 62 00 CD 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1C D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [08:11:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1C D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:11:17]wFMCommunicate OK [08:11:17]SAM_PROTO_GetFieldsCounters done [08:11:17]requested_item shift.num is exist - process it [08:11:17]requested_item shift.opened is exist - process it [08:11:17]req_shift_opened [08:11:17]FM_GetShiftState [08:11:17]SAM_PROTO_GetShiftState [08:11:17]wFMCommunicate request_size=4 [08:11:17]MH_SAM_APDU [08:11:17]CAPDU: 80 13 01 00 [08:11:17]Write to MH i2c: E2 08 00 CE 0D 80 13 01 00 00 00 00 00 58 [08:11:17]Write i2c OK [08:11:17]MH_I2C_Read... [08:11:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:17]Read from MH i2c: E2 [08:11:17]MH_I2C_Read... [08:11:17]Read from MH i2c: E2 0E 00 [08:11:17]MH_I2C_Read... [08:11:17]Read from MH i2c: E2 0E 00 CE 0D 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 F0 [08:11:17]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [08:11:17]wFMCommunicate OK [08:11:17]SAM_PROTO_GetShiftState done [08:11:17]FM_GetShiftState done [08:11:17]req_shift_opened done [08:11:17]requested_item shift.open_date is exist - process it [08:11:17]req_shift_open_date [08:11:17]req_shift_open_date done [08:11:17]produce_requested_data done [08:11:17]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119324,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [08:11:17]process_action_free close_receipt [08:11:17]json_value_free [08:11:17]json_value_free done [08:11:17]process_json_proto returns [08:11:17]Send response to host [08:11:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119324,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [08:11:17]free response buf [08:11:17]execute_script done [08:11:17]execute_script returns [08:11:17]free content buf [08:11:17]Sock 9.Close socket [08:11:17]Sock 9.Thread stoped [08:11:17]accept exits with 10 [08:11:17]New connection [08:11:17]New thread 3067194724 created [08:11:17]Thread 3067338084 joined [08:11:17]Waiting for new connection... [08:11:17] Sock 10.Parse request [08:11:17]Sock 10.Check first char [08:11:17]Sock 10.First char is OK [08:11:17]request: POST /json_proto HTTP/1.0 [08:11:17]Method: POST [08:11:17]URL: /json_proto [08:11:17]Method is POST - this is cgi request [08:11:17]url: /json_proto [08:11:17]query_string will be loaded in cgi processing [08:11:17]execute_cgi json_proto POST (null) [08:11:17]execute_cgi path=json_proto method=POST [08:11:17]POST find Content-Length [08:11:17]Host: 172.17.45.7:8080 [08:11:17]Content-Length: 819 [08:11:17]Content-Type: application/json [08:11:17] [08:11:17]POST finish read [08:11:17]Found Content-Length = 819 [08:11:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1500.00, "payments": [ { "type": 1, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:11:17]execute_script... [08:11:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1500.00, "payments": [ { "type": 1, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:11:17]POST & json_proto [08:11:17]process_json_proto [08:11:17]json parsed OK: [08:11:17]protocol is kg_v1.0 [08:11:17]action value=close_receipt [08:11:17]process_action close_receipt [08:11:17]cmd_close_receipt [08:11:17]MH_GetDate [08:11:17]Write to MH i2c: F0 00 00 CF 0D CB [08:11:17]Write i2c OK [08:11:17]MH_I2C_Read... [08:11:17]Read from MH i2c: F0 [08:11:17]MH_I2C_Read... [08:11:17]Read from MH i2c: F0 09 00 [08:11:17]MH_I2C_Read... [08:11:17]Read from MH i2c: F0 09 00 CF 0D 00 A7 F1 A9 66 90 0F 3E 66 BE [08:11:17]GetLastDocTimeStamp 1722413475 [08:11:17]current date 1722413479 [08:11:17]FM_GetShiftState [08:11:17]SAM_PROTO_GetShiftState [08:11:17]wFMCommunicate request_size=4 [08:11:17]MH_SAM_APDU [08:11:17]CAPDU: 80 13 01 00 [08:11:17]Write to MH i2c: E2 08 00 D0 0D 80 13 01 00 00 00 00 00 5A [08:11:17]Write i2c OK [08:11:17]MH_I2C_Read... [08:11:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:17]Read from MH i2c: E2 [08:11:17]MH_I2C_Read... [08:11:17]Read from MH i2c: E2 0E 00 [08:11:17]MH_I2C_Read... [08:11:17]Read from MH i2c: E2 0E 00 D0 0D 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 F2 [08:11:17]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [08:11:17]wFMCommunicate OK [08:11:17]SAM_PROTO_GetShiftState done [08:11:17]FM_GetShiftState done [08:11:17]opened in 1722384637 [08:11:17]opened+sec_in_day 1722471037 [08:11:17]quantity*price = 150037 [08:11:17]sum+1 = 150039 [08:11:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 56 31.07.2024 08:11 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119325 ФПД: 7276508757054 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T081119&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119325&fm=7276508757054&tin=02508201610067®Number=0000000000092660&sum=150000 [08:11:19]StoreToDocumentArchive [08:11:19]shift 436 fd 119325 [08:11:19]save to /storage/0436/doc_00119325 [08:11:19]save last doc name /storage/0436/doc_00119325 to /storage/kkm_last_doc_name [08:11:19]save OK [08:11:19]Clear old archive folders... [08:11:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:11:19]tlvbuf is 00AD6A40 [08:11:19]SAM_PROTO_ClearQueue [08:11:19]wFMCommunicate request_size=4 [08:11:19]MH_SAM_APDU [08:11:19]CAPDU: 80 09 00 00 [08:11:19]Write to MH i2c: E2 08 00 DD 0D 80 09 00 00 00 00 00 00 5C [08:11:19]Write i2c OK [08:11:19]MH_I2C_Read... [08:11:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:11:19]Read from MH i2c: E2 [08:11:19]MH_I2C_Read... [08:11:19]Read from MH i2c: E2 03 00 [08:11:19]MH_I2C_Read... [08:11:19]Read from MH i2c: E2 03 00 DD 0D 00 90 00 5E [08:11:19]RAPDU: 90 00 [08:11:19]wFMCommunicate OK [08:11:19]SAM_PROTO_ClearQueue done [08:11:19]KKMCreateOFDPacket [08:11:19]OFDProtocolAddRootSTLVToBuf [08:11:19]FM_MakeSignedData [08:11:19]FM_MakeSignedData [08:11:19]SAM_PROTO_SignData [08:11:19]wFMCommunicate request_size=4 [08:11:19]MH_SAM_APDU [08:11:19]CAPDU: 80 0D 01 02 [08:11:19]Write to MH i2c: E2 08 00 DE 0D 80 0D 01 02 00 00 00 00 64 [08:11:19]Write i2c OK [08:11:19]MH_I2C_Read... [08:11:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:11:19]Read from MH i2c: E2 [08:11:19]MH_I2C_Read... [08:11:19]Read from MH i2c: E2 03 00 [08:11:19]MH_I2C_Read... [08:11:19]Read from MH i2c: E2 03 00 DE 0D 00 90 00 5F [08:11:19]RAPDU: 90 00 [08:11:19]wFMCommunicate OK [08:11:19]wFMCommunicate request_size=255 [08:11:19]MH_SAM_APDU [08:11:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 A7 F1 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1D D2 01 00 35 04 06 00 06 9E 31 B8 [08:11:19]Write to MH i2c: E2 02 01 DF 0D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 A7 F1 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1D D2 01 00 35 04 06 00 06 9E 31 B8 00 00 7C [08:11:19]Write i2c OK [08:11:19]MH_I2C_Read... [08:11:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:19]Read from MH i2c: E2 [08:11:19]MH_I2C_Read... [08:11:19]Read from MH i2c: E2 03 00 [08:11:19]MH_I2C_Read... [08:11:19]Read from MH i2c: E2 03 00 DF 0D 00 90 00 60 [08:11:19]RAPDU: 90 00 [08:11:19]wFMCommunicate OK [08:11:19]wFMCommunicate request_size=7 [08:11:19]MH_SAM_APDU [08:11:19]CAPDU: 80 0D 02 02 02 3C 3E [08:11:19]Write to MH i2c: E2 0A 00 E0 0D 80 0D 02 02 02 00 3C 3E 00 00 E5 [08:11:19]Write i2c OK [08:11:19]MH_I2C_Read... [08:11:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:19]Read from MH i2c: E2 [08:11:19]MH_I2C_Read... [08:11:19]Read from MH i2c: E2 03 00 [08:11:19]MH_I2C_Read... [08:11:19]Read from MH i2c: E2 03 00 E0 0D 00 90 00 61 [08:11:19]RAPDU: 90 00 [08:11:19]wFMCommunicate OK [08:11:19]wFMCommunicate request_size=4 [08:11:19]MH_SAM_APDU [08:11:19]CAPDU: 80 0D 03 02 [08:11:19]Write to MH i2c: E2 08 00 E1 0D 80 0D 03 02 00 00 00 00 69 [08:11:19]Write i2c OK [08:11:19]MH_I2C_Read... [08:11:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:11:20]Read from MH i2c: E2 [08:11:20]MH_I2C_Read... [08:11:20]Read from MH i2c: E2 0B 00 [08:11:20]MH_I2C_Read... [08:11:20]Read from MH i2c: E2 0B 00 E1 0D 00 68 B6 1B BD 83 BC 88 E7 90 00 0E [08:11:20]RAPDU: 68 B6 1B BD 83 BC 88 E7 90 00 [08:11:20]wFMCommunicate OK [08:11:20]SAM_PROTO_SignData done [08:11:20]FM_MakeSignedData done [08:11:20]CreateOFDProtocolMessage [08:11:20]wFMCommunicate request_size=4 [08:11:20]MH_SAM_APDU [08:11:20]CAPDU: 80 11 00 00 [08:11:20]Write to MH i2c: E2 08 00 E2 0D 80 11 00 00 00 00 00 00 69 [08:11:20]Write i2c OK [08:11:20]MH_I2C_Read... [08:11:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:20]Read from MH i2c: E2 [08:11:20]MH_I2C_Read... [08:11:20]Read from MH i2c: E2 17 00 [08:11:20]MH_I2C_Read... [08:11:20]Read from MH i2c: E2 17 00 E2 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C4 [08:11:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:11:20]wFMCommunicate OK [08:11:20]CreateOFDProtocolMessage done [08:11:20]OFDSenderStorePacket 119325 [08:11:20]StoreOFDPacket docnum=119325 [08:11:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B9 9A 04 01 DE DF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 A7 F1 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1D D2 01 00 35 04 06 00 06 9E 31 B8 3C 3E 68 B6 1B BD 83 BC 88 E7 [08:11:20]CheckFolder [08:11:20]dirname=/storage/ofd_packets [08:11:20]CheckFolder done [08:11:20]ProducePacketName [08:11:20]name=ofd_packets/00119325 [08:11:20]NVStorageSaveData ofd_packets/00119325 [08:11:20]File name is /storage/ofd_packets/00119325 [08:11:20]Write 298 bytes [08:11:20]NVStorageSaveData done [08:11:20]OFDSenderStorePacket done [08:11:20]KKMCreateOFDPacket done [08:11:20]NVStorageSaveData kkm_last_timestamp [08:11:20]File name is /storage/kkm_last_timestamp [08:11:20]Write 4 bytes [08:11:20]NVStorageSaveData done [08:11:20]ExternCall_PrintAddStr [08:11:20]wPrintStart [08:11:20]Write to MH i2c: 01 00 00 E3 0D F0 [08:11:20]Write i2c OK [08:11:20]MH_I2C_Read... [08:11:20]Read from MH i2c: 01 [08:11:20]MH_I2C_Read... [08:11:20]Read from MH i2c: 01 07 00 [08:11:20]MH_I2C_Read... [08:11:20]Read from MH i2c: 01 07 00 E3 0D 00 00 00 00 00 FF 0F 05 [08:11:20]RasterBufferAndPrint [08:11:20]line Счет N : (1)950249 [08:11:20]line ИНН: 02508201610067 [08:11:20]line Контрольно-Кассовый Чек [08:11:20]line ПРОДАЖА [08:11:20]line ТРК (МРК, ГНК) : 34 [08:11:20]line Товар: 2710194800 [08:11:20]line ДТ-К-5 [08:11:20]line 19.690 * 76.20 [08:11:20]line = 1500.38 [08:11:20]line НДС 12% НСП 1% [08:11:20]line > о реализуемом товаре [08:11:20]line ОКРУГЛЕНИЕ: -0.38 [08:11:20]line ИТОГО: 1500.00 [08:11:20]line НСП 1% : 13.28 [08:11:20]line НДС 12% : 159.33 [08:11:20]line Наличными: 0.00 [08:11:20]line Безнал.: 1500.00 [08:11:20]line Место: АЗС № 134 "Партнер Нефть" [08:11:20]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:11:20]line СНО: Общий режим [08:11:20]line Чек 56 31.07.2024 08:11 [08:11:20]line Смена: 436 ФФД: 1.0 [08:11:20]line ЗНМ: 0300000044 [08:11:20]line РНМ: 0000000000092660 [08:11:20]line Версия ККМ: 001 [08:11:20]line Платежная система: O! деньги [08:11:20]line ФМ: 0000000000874939 [08:11:20]line ФД: 119325 [08:11:20]line ФПД: 7276508757054 [08:11:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T081119&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119325&fm=7276508757054&tin=02508201610067®Number=0000000000092660&sum=150000 [08:11:20]OFD Sender: Processing packet 119325 [packets to send 86, broken 85] [08:11:20]ProducePacketName [08:11:20]name=ofd_packets/00119325 [08:11:20]OFD Sender: To server: pG, [08:11:20]CommunicateWithHost lk.salyk.kg:30040 [08:11:20]ConnectInit lk.salyk.kg [08:11:20]written 0, free lines is 4095 [08:11:20]Connected sock=9 [08:11:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B9 9A 04 01 DE DF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 A7 F1 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1D D2 01 00 35 04 06 00 06 9E 31 B8 3C 3E 68 B6 1B BD 83 BC 88 E7 [08:11:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 43 EB 47 00 3B 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1D D2 01 00 F4 03 04 00 31 9F A9 66 B6 04 01 00 00 3C CC 69 11 E9 91 A9 50 [08:11:20]CommunicateWithHost err = 0 [08:11:20]CheckOFDResponse [08:11:20]1017 (14) - 77093643461234 [08:11:20]1041 (16) - 0000000000874939 [08:11:20]1040 (4) - 119325 [08:11:20]1012 (4) - 31.07.2024 02:19 [08:11:20]1206 (1) - 0 [08:11:20]OFD Sender: Remove packet 119325 [08:11:20]ProducePacketName [08:11:20]name=ofd_packets/00119325 [08:11:20]NVStorageDeleteData [08:11:20]Write to MH i2c: 01 00 00 0D 0E 1B [08:11:20]Write i2c OK [08:11:20]MH_I2C_Read... [08:11:20]Read from MH i2c: 01 [08:11:20]MH_I2C_Read... [08:11:20]Read from MH i2c: 01 07 00 [08:11:20]MH_I2C_Read... [08:11:20]Read from MH i2c: 01 07 00 0D 0E 00 00 00 00 00 E4 0C 12 [08:11:20]RasterBufferAndPrint [08:11:20]line [08:11:20]line [08:11:20]line [08:11:20]line [08:11:20]line [08:11:20]written 0, free lines is 3314 [08:11:20]MH_Cut [08:11:20]Write to MH i2c: D1 01 00 14 0E 01 F4 [08:11:20]Write i2c OK [08:11:20]MH_I2C_Read... [08:11:20]Read from MH i2c: D1 [08:11:20]MH_I2C_Read... [08:11:20]Read from MH i2c: D1 01 00 [08:11:20]MH_I2C_Read... [08:11:20]Read from MH i2c: D1 01 00 14 0E 00 F3 [08:11:20]Write to MH i2c: 01 00 00 15 0E 23 [08:11:20]Write i2c OK [08:11:20]MH_I2C_Read... [08:11:21]OFD Sender: No OFD packet to send [08:11:21]*** Cut start [08:11:21]*** Partial cut [08:11:21]*** CUTSNS_PIN = 1 [08:11:21]*** CUTSNS_PIN = 0 [08:11:21]*** Brake cut motor [08:11:22]Read from MH i2c: 01 [08:11:22]MH_I2C_Read... [08:11:22]*** Stop cut motor [08:11:22]*** Cut end [08:11:22]Read from MH i2c: 01 07 00 [08:11:22]MH_I2C_Read... [08:11:22]Read from MH i2c: 01 07 00 15 0E 00 00 00 00 00 FF 0F 38 [08:11:22]process_action close_receipt done [08:11:22]requested_data is exist [08:11:22]produce_requested_data [08:11:22]requested_item fm.sn is exist - process it [08:11:22]wFMCommunicate request_size=4 [08:11:22]MH_SAM_APDU [08:11:22]CAPDU: 80 11 00 00 [08:11:22]Write to MH i2c: E2 08 00 16 0E 80 11 00 00 00 00 00 00 9E [08:11:22]Write i2c OK [08:11:22]MH_I2C_Read... [08:11:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:22]Read from MH i2c: E2 [08:11:22]MH_I2C_Read... [08:11:22]Read from MH i2c: E2 17 00 [08:11:22]MH_I2C_Read... [08:11:22]Read from MH i2c: E2 17 00 16 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F9 [08:11:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:11:22]wFMCommunicate OK [08:11:22]requested_item fd.num is exist - process it [08:11:22]SAM_PROTO_GetFieldsCounters [08:11:22]wFMCommunicate request_size=4 [08:11:22]MH_SAM_APDU [08:11:22]CAPDU: 80 13 00 00 [08:11:22]Write to MH i2c: E2 08 00 17 0E 80 13 00 00 00 00 00 00 A1 [08:11:22]Write i2c OK [08:11:22]MH_I2C_Read... [08:11:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:11:22]Read from MH i2c: E2 [08:11:22]MH_I2C_Read... [08:11:22]Read from MH i2c: E2 62 00 [08:11:22]MH_I2C_Read... [08:11:22]Read from MH i2c: E2 62 00 17 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1D D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [08:11:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1D D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:11:22]wFMCommunicate OK [08:11:22]SAM_PROTO_GetFieldsCounters done [08:11:22]requested_item shift.num is exist - process it [08:11:22]requested_item shift.opened is exist - process it [08:11:22]req_shift_opened [08:11:22]FM_GetShiftState [08:11:22]SAM_PROTO_GetShiftState [08:11:22]wFMCommunicate request_size=4 [08:11:22]MH_SAM_APDU [08:11:22]CAPDU: 80 13 01 00 [08:11:22]Write to MH i2c: E2 08 00 18 0E 80 13 01 00 00 00 00 00 A3 [08:11:22]Write i2c OK [08:11:22]MH_I2C_Read... [08:11:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:22]Read from MH i2c: E2 [08:11:22]MH_I2C_Read... [08:11:22]Read from MH i2c: E2 0E 00 [08:11:22]MH_I2C_Read... [08:11:22]Read from MH i2c: E2 0E 00 18 0E 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 3B [08:11:22]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [08:11:22]wFMCommunicate OK [08:11:22]SAM_PROTO_GetShiftState done [08:11:22]FM_GetShiftState done [08:11:22]req_shift_opened done [08:11:22]requested_item shift.open_date is exist - process it [08:11:22]req_shift_open_date [08:11:22]req_shift_open_date done [08:11:22]produce_requested_data done [08:11:22]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119325,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [08:11:22]process_action_free close_receipt [08:11:22]json_value_free [08:11:22]json_value_free done [08:11:22]process_json_proto returns [08:11:22]Send response to host [08:11:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119325,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [08:11:22]free response buf [08:11:22]execute_script done [08:11:22]execute_script returns [08:11:22]free content buf [08:11:22]Sock 10.Close socket [08:11:22]Sock 10.Thread stoped [08:11:26]OFD Sender: No OFD packet to send [08:11:31]OFD Sender: No OFD packet to send [08:11:36]OFD Sender: No OFD packet to send [08:11:41]OFD Sender: No OFD packet to send [08:11:46]OFD Sender: No OFD packet to send [08:11:51]OFD Sender: No OFD packet to send [08:11:56]OFD Sender: No OFD packet to send [08:12:01]OFD Sender: No OFD packet to send [08:12:06]OFD Sender: No OFD packet to send [08:12:11]OFD Sender: No OFD packet to send [08:12:16]OFD Sender: No OFD packet to send [08:12:21]OFD Sender: No OFD packet to send [08:12:26]OFD Sender: No OFD packet to send [08:12:31]OFD Sender: No OFD packet to send [08:12:36]OFD Sender: No OFD packet to send [08:12:41]OFD Sender: No OFD packet to send [08:12:46]OFD Sender: No OFD packet to send [08:12:51]OFD Sender: No OFD packet to send [08:12:56]OFD Sender: No OFD packet to send [08:13:01]OFD Sender: No OFD packet to send [08:13:06]OFD Sender: No OFD packet to send [08:13:11]OFD Sender: No OFD packet to send [08:13:16]OFD Sender: No OFD packet to send [08:13:21]OFD Sender: No OFD packet to send [08:13:26]OFD Sender: No OFD packet to send [08:13:31]OFD Sender: No OFD packet to send [08:13:36]OFD Sender: No OFD packet to send [08:13:41]OFD Sender: No OFD packet to send [08:13:46]OFD Sender: No OFD packet to send [08:13:51]OFD Sender: No OFD packet to send [08:13:56]OFD Sender: No OFD packet to send [08:14:01]OFD Sender: No OFD packet to send [08:14:06]OFD Sender: No OFD packet to send [08:14:11]OFD Sender: No OFD packet to send [08:14:16]OFD Sender: No OFD packet to send [08:14:21]OFD Sender: No OFD packet to send [08:14:26]OFD Sender: No OFD packet to send [08:14:31]OFD Sender: No OFD packet to send [08:14:36]OFD Sender: No OFD packet to send [08:14:41]OFD Sender: No OFD packet to send [08:14:46]OFD Sender: No OFD packet to send [08:14:51]OFD Sender: No OFD packet to send [08:14:56]OFD Sender: No OFD packet to send [08:15:01]OFD Sender: No OFD packet to send [08:15:06]OFD Sender: No OFD packet to send [08:15:11]OFD Sender: No OFD packet to send [08:15:16]OFD Sender: No OFD packet to send [08:15:21]OFD Sender: No OFD packet to send [08:15:26]OFD Sender: No OFD packet to send [08:15:31]OFD Sender: No OFD packet to send [08:15:36]OFD Sender: No OFD packet to send [08:15:41]OFD Sender: No OFD packet to send [08:15:46]OFD Sender: No OFD packet to send [08:15:51]OFD Sender: No OFD packet to send [08:15:56]OFD Sender: No OFD packet to send [08:16:01]OFD Sender: No OFD packet to send [08:16:06]OFD Sender: No OFD packet to send [08:16:11]OFD Sender: No OFD packet to send [08:16:16]OFD Sender: No OFD packet to send [08:16:21]OFD Sender: No OFD packet to send [08:16:26]OFD Sender: No OFD packet to send [08:16:31]accept exits with 8 [08:16:31]New connection [08:16:31]New thread 3067338084 created [08:16:31]Thread 3067194724 joined [08:16:31]Waiting for new connection... [08:16:31] Sock 8.Parse request [08:16:31]Sock 8.Check first char [08:16:31]Sock 8.First char is OK [08:16:31]request: POST /json_proto HTTP/1.0 [08:16:31]Method: POST [08:16:31]URL: /json_proto [08:16:31]Method is POST - this is cgi request [08:16:31]url: /json_proto [08:16:31]query_string will be loaded in cgi processing [08:16:31]execute_cgi json_proto POST (null) [08:16:31]execute_cgi path=json_proto method=POST [08:16:31]POST find Content-Length [08:16:31]Host: 172.17.45.7:8080 [08:16:31]Content-Length: 678 [08:16:31]Content-Type: application/json [08:16:31] [08:16:31]POST finish read [08:16:31]Found Content-Length = 678 [08:16:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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" ] } } [08:16:31]execute_script... [08:16: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)950251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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" ] } } [08:16:31]POST & json_proto [08:16:31]process_json_proto [08:16:31]json parsed OK: [08:16:31]protocol is kg_v1.0 [08:16:31]action value=close_receipt [08:16:31]process_action close_receipt [08:16:31]cmd_close_receipt [08:16:31]MH_GetDate [08:16:31]Write to MH i2c: F0 00 00 19 0E 16 [08:16:31]Write i2c OK [08:16:31]MH_I2C_Read... [08:16:31]Read from MH i2c: F0 [08:16:31]MH_I2C_Read... [08:16:31]Read from MH i2c: F0 09 00 [08:16:31]MH_I2C_Read... [08:16:31]Read from MH i2c: F0 09 00 19 0E 00 E1 F2 A9 66 90 0F 3E 66 44 [08:16:31]GetLastDocTimeStamp 1722413479 [08:16:31]current date 1722413793 [08:16:31]FM_GetShiftState [08:16:31]SAM_PROTO_GetShiftState [08:16:31]wFMCommunicate request_size=4 [08:16:31]MH_SAM_APDU [08:16:31]CAPDU: 80 13 01 00 [08:16:31]Write to MH i2c: E2 08 00 1A 0E 80 13 01 00 00 00 00 00 A5 [08:16:31]Write i2c OK [08:16:31]MH_I2C_Read... [08:16:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:31]Read from MH i2c: E2 [08:16:31]MH_I2C_Read... [08:16:31]Read from MH i2c: E2 0E 00 [08:16:31]MH_I2C_Read... [08:16:31]OFD Sender: No OFD packet to send [08:16:31]Read from MH i2c: E2 0E 00 1A 0E 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 3D [08:16:31]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [08:16:31]wFMCommunicate OK [08:16:31]SAM_PROTO_GetShiftState done [08:16:31]FM_GetShiftState done [08:16:31]opened in 1722384637 [08:16:31]opened+sec_in_day 1722471037 [08:16:31]quantity*price = 70037 [08:16:31]sum+1 = 70038 [08:16:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 57 31.07.2024 08:16 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119326 ФПД: 232275236564983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T081633&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119326&fm=232275236564983&tin=02508201610067®Number=0000000000092660&sum=70000 [08:16:32]StoreToDocumentArchive [08:16:32]shift 436 fd 119326 [08:16:32]save to /storage/0436/doc_00119326 [08:16:32]save last doc name /storage/0436/doc_00119326 to /storage/kkm_last_doc_name [08:16:32]save OK [08:16:32]Clear old archive folders... [08:16:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:16:32]tlvbuf is 00ACDD30 [08:16:32]SAM_PROTO_ClearQueue [08:16:32]wFMCommunicate request_size=4 [08:16:32]MH_SAM_APDU [08:16:32]CAPDU: 80 09 00 00 [08:16:32]Write to MH i2c: E2 08 00 27 0E 80 09 00 00 00 00 00 00 A7 [08:16:32]Write i2c OK [08:16:32]MH_I2C_Read... [08:16:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:16:32]Read from MH i2c: E2 [08:16:32]MH_I2C_Read... [08:16:32]Read from MH i2c: E2 03 00 [08:16:32]MH_I2C_Read... [08:16:32]Read from MH i2c: E2 03 00 27 0E 00 90 00 A9 [08:16:32]RAPDU: 90 00 [08:16:32]wFMCommunicate OK [08:16:32]SAM_PROTO_ClearQueue done [08:16:32]KKMCreateOFDPacket [08:16:32]OFDProtocolAddRootSTLVToBuf [08:16:32]FM_MakeSignedData [08:16:32]FM_MakeSignedData [08:16:32]SAM_PROTO_SignData [08:16:32]wFMCommunicate request_size=4 [08:16:32]MH_SAM_APDU [08:16:32]CAPDU: 80 0D 01 02 [08:16:32]Write to MH i2c: E2 08 00 28 0E 80 0D 01 02 00 00 00 00 AF [08:16:32]Write i2c OK [08:16:32]MH_I2C_Read... [08:16:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:16:32]Read from MH i2c: E2 [08:16:32]MH_I2C_Read... [08:16:32]Read from MH i2c: E2 03 00 [08:16:32]MH_I2C_Read... [08:16:32]Read from MH i2c: E2 03 00 28 0E 00 90 00 AA [08:16:32]RAPDU: 90 00 [08:16:32]wFMCommunicate OK [08:16:32]wFMCommunicate request_size=255 [08:16:32]MH_SAM_APDU [08:16:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 39 00 00 00 F4 03 04 00 E1 F2 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1E D2 01 00 35 04 06 00 D3 [08:16:32]Write to MH i2c: E2 02 01 29 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 39 00 00 00 F4 03 04 00 E1 F2 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1E D2 01 00 35 04 06 00 D3 00 00 AE [08:16:32]Write i2c OK [08:16:32]MH_I2C_Read... [08:16:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:33]Read from MH i2c: E2 [08:16:33]MH_I2C_Read... [08:16:33]Read from MH i2c: E2 03 00 [08:16:33]MH_I2C_Read... [08:16:33]Read from MH i2c: E2 03 00 29 0E 00 90 00 AB [08:16:33]RAPDU: 90 00 [08:16:33]wFMCommunicate OK [08:16:33]wFMCommunicate request_size=10 [08:16:33]MH_SAM_APDU [08:16:33]CAPDU: 80 0D 02 02 05 40 CA F7 2F F7 [08:16:33]Write to MH i2c: E2 0D 00 2A 0E 80 0D 02 02 05 00 40 CA F7 2F F7 00 00 E3 [08:16:33]Write i2c OK [08:16:33]MH_I2C_Read... [08:16:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:33]Read from MH i2c: E2 [08:16:33]MH_I2C_Read... [08:16:33]Read from MH i2c: E2 03 00 [08:16:33]MH_I2C_Read... [08:16:33]Read from MH i2c: E2 03 00 2A 0E 00 90 00 AC [08:16:33]RAPDU: 90 00 [08:16:33]wFMCommunicate OK [08:16:33]wFMCommunicate request_size=4 [08:16:33]MH_SAM_APDU [08:16:33]CAPDU: 80 0D 03 02 [08:16:33]Write to MH i2c: E2 08 00 2B 0E 80 0D 03 02 00 00 00 00 B4 [08:16:33]Write i2c OK [08:16:33]MH_I2C_Read... [08:16:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:16:33]Read from MH i2c: E2 [08:16:33]MH_I2C_Read... [08:16:33]Read from MH i2c: E2 0B 00 [08:16:33]MH_I2C_Read... [08:16:33]Read from MH i2c: E2 0B 00 2B 0E 00 9A C5 C1 3D F8 1E CC 19 90 00 0D [08:16:33]RAPDU: 9A C5 C1 3D F8 1E CC 19 90 00 [08:16:33]wFMCommunicate OK [08:16:33]SAM_PROTO_SignData done [08:16:33]FM_MakeSignedData done [08:16:33]CreateOFDProtocolMessage [08:16:33]wFMCommunicate request_size=4 [08:16:33]MH_SAM_APDU [08:16:33]CAPDU: 80 11 00 00 [08:16:33]Write to MH i2c: E2 08 00 2C 0E 80 11 00 00 00 00 00 00 B4 [08:16:33]Write i2c OK [08:16:33]MH_I2C_Read... [08:16:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:33]Read from MH i2c: E2 [08:16:33]MH_I2C_Read... [08:16:33]Read from MH i2c: E2 17 00 [08:16:33]MH_I2C_Read... [08:16:33]Read from MH i2c: E2 17 00 2C 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0F [08:16:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:16:33]wFMCommunicate OK [08:16:33]CreateOFDProtocolMessage done [08:16:33]OFDSenderStorePacket 119326 [08:16:33]StoreOFDPacket docnum=119326 [08:16:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E3 12 07 01 29 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 39 00 00 00 F4 03 04 00 E1 F2 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1E D2 01 00 35 04 06 00 D3 40 CA F7 2F F7 9A C5 C1 3D F8 1E CC 19 [08:16:33]CheckFolder [08:16:33]dirname=/storage/ofd_packets [08:16:33]CheckFolder done [08:16:33]ProducePacketName [08:16:33]name=ofd_packets/00119326 [08:16:33]NVStorageSaveData ofd_packets/00119326 [08:16:33]File name is /storage/ofd_packets/00119326 [08:16:33]Write 301 bytes [08:16:33]NVStorageSaveData done [08:16:33]OFDSenderStorePacket done [08:16:33]KKMCreateOFDPacket done [08:16:33]NVStorageSaveData kkm_last_timestamp [08:16:33]File name is /storage/kkm_last_timestamp [08:16:33]Write 4 bytes [08:16:33]NVStorageSaveData done [08:16:33]OFD Sender: Processing packet 119326 [packets to send 86, broken 85] [08:16:33]ProducePacketName [08:16:33]name=ofd_packets/00119326 [08:16:33]OFD Sender: To server: pG, [08:16:33]CommunicateWithHost lk.salyk.kg:30040 [08:16:33]ConnectInit lk.salyk.kg [08:16:33]ExternCall_PrintAddStr [08:16:33]wPrintStart [08:16:33]Write to MH i2c: 01 00 00 2D 0E 3B [08:16:33]Write i2c OK [08:16:33]MH_I2C_Read... [08:16:33]Read from MH i2c: 01 [08:16:33]MH_I2C_Read... [08:16:33]Read from MH i2c: 01 07 00 [08:16:33]MH_I2C_Read... [08:16:33]Read from MH i2c: 01 07 00 2D 0E 00 00 00 00 00 FF 0F 50 [08:16:33]RasterBufferAndPrint [08:16:33]line Счет N : (1)950251 [08:16:33]line ИНН: 02508201610067 [08:16:33]line Контрольно-Кассовый Чек [08:16:33]line ПРОДАЖА [08:16:33]line ТРК (МРК, ГНК) : 41 [08:16:33]line Товар: 2710124130 [08:16:33]line Аи-92-К-4 [08:16:33]line 10.330 * 67.80 [08:16:33]line = 700.37 [08:16:33]line НДС 12% НСП 1% [08:16:33]line > о реализуемом товаре [08:16:33]line ОКРУГЛЕНИЕ: -0.37 [08:16:33]line ИТОГО: 700.00 [08:16:33]line Внесено: 700.00 [08:16:33]line СДАЧА: 0.00 [08:16:33]line НСП 1% : 6.20 [08:16:33]line НДС 12% : 74.38 [08:16:33]line Наличными: 700.00 [08:16:33]line Безнал.: 0.00 [08:16:33]line Место: АЗС № 134 "Партнер Нефть" [08:16:33]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:16:33]line СНО: Общий режим [08:16:33]line Чек 57 31.07.2024 08:16 [08:16:33]line Смена: 436 ФФД: 1.0 [08:16:33]line ЗНМ: 0300000044 [08:16:33]line РНМ: 0000000000092660 [08:16:33]line Версия ККМ: 001 [08:16:33]line ФМ: 0000000000874939 [08:16:33]line ФД: 119326 [08:16:33]line ФПД: 232275236564983 [08:16:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T081633&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119326&fm=232275236564983&tin=02508201610067®Number=0000000000092660&sum=70000 [08:16:33]Connected sock=11 [08:16:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E3 12 07 01 29 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 39 00 00 00 F4 03 04 00 E1 F2 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1E D2 01 00 35 04 06 00 D3 40 CA F7 2F F7 9A C5 C1 3D F8 1E CC 19 [08:16:33]written 0, free lines is 4095 [08:16:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 DF 03 47 00 FB 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 39 33 39 10 04 04 00 1E D2 01 00 F4 03 04 00 6A A0 A9 66 B6 04 01 00 00 50 AD EF 1A B8 51 9F 3C [08:16:33]CommunicateWithHost err = 0 [08:16:33]CheckOFDResponse [08:16:33]1017 (14) - 77093643461234 [08:16:33]1041 (16) - 0000000000874939 [08:16:33]1040 (4) - 119326 [08:16:33]1012 (4) - 31.07.2024 02:24 [08:16:33]1206 (1) - 0 [08:16:33]OFD Sender: Remove packet 119326 [08:16:33]ProducePacketName [08:16:33]name=ofd_packets/00119326 [08:16:33]NVStorageDeleteData [08:16:34]Write to MH i2c: 01 00 00 57 0E 65 [08:16:34]Write i2c OK [08:16:34]MH_I2C_Read... [08:16:34]Read from MH i2c: 01 [08:16:34]MH_I2C_Read... [08:16:34]Read from MH i2c: 01 07 00 [08:16:34]MH_I2C_Read... [08:16:34]Read from MH i2c: 01 07 00 57 0E 00 00 00 00 00 D2 0C 4A [08:16:34]RasterBufferAndPrint [08:16:34]line [08:16:34]line [08:16:34]line [08:16:34]line [08:16:34]line [08:16:34]written 0, free lines is 3288 [08:16:34]MH_Cut [08:16:34]Write to MH i2c: D1 01 00 5E 0E 01 3E [08:16:34]Write i2c OK [08:16:34]MH_I2C_Read... [08:16:34]Read from MH i2c: D1 [08:16:34]MH_I2C_Read... [08:16:34]Read from MH i2c: D1 01 00 [08:16:34]MH_I2C_Read... [08:16:34]Read from MH i2c: D1 01 00 5E 0E 00 3D [08:16:34]Write to MH i2c: 01 00 00 5F 0E 6D [08:16:34]Write i2c OK [08:16:34]MH_I2C_Read... [08:16:34]OFD Sender: No OFD packet to send [08:16:34]*** Cut start [08:16:34]*** Partial cut [08:16:34]*** CUTSNS_PIN = 1 [08:16:34]*** CUTSNS_PIN = 0 [08:16:35]*** Brake cut motor [08:16:35]Read from MH i2c: 01 [08:16:35]MH_I2C_Read... [08:16:35]*** Stop cut motor [08:16:35]*** Cut end [08:16:35]Read from MH i2c: 01 07 00 [08:16:35]MH_I2C_Read... [08:16:35]Read from MH i2c: 01 07 00 5F 0E 00 00 00 00 00 FF 0F 82 [08:16:35]process_action close_receipt done [08:16:35]requested_data is exist [08:16:35]produce_requested_data [08:16:35]requested_item fm.sn is exist - process it [08:16:35]wFMCommunicate request_size=4 [08:16:35]MH_SAM_APDU [08:16:35]CAPDU: 80 11 00 00 [08:16:35]Write to MH i2c: E2 08 00 60 0E 80 11 00 00 00 00 00 00 E8 [08:16:35]Write i2c OK [08:16:35]MH_I2C_Read... [08:16:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:35]Read from MH i2c: E2 [08:16:35]MH_I2C_Read... [08:16:35]Read from MH i2c: E2 17 00 [08:16:35]MH_I2C_Read... [08:16:35]Read from MH i2c: E2 17 00 60 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 43 [08:16:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:16:35]wFMCommunicate OK [08:16:35]requested_item fd.num is exist - process it [08:16:35]SAM_PROTO_GetFieldsCounters [08:16:35]wFMCommunicate request_size=4 [08:16:35]MH_SAM_APDU [08:16:35]CAPDU: 80 13 00 00 [08:16:35]Write to MH i2c: E2 08 00 61 0E 80 13 00 00 00 00 00 00 EB [08:16:35]Write i2c OK [08:16:35]MH_I2C_Read... [08:16:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:16:35]Read from MH i2c: E2 [08:16:35]MH_I2C_Read... [08:16:35]Read from MH i2c: E2 62 00 [08:16:35]MH_I2C_Read... [08:16:35]Read from MH i2c: E2 62 00 61 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1E D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [08:16: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1E D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:16:35]wFMCommunicate OK [08:16:35]SAM_PROTO_GetFieldsCounters done [08:16:35]requested_item shift.num is exist - process it [08:16:35]requested_item shift.opened is exist - process it [08:16:35]req_shift_opened [08:16:35]FM_GetShiftState [08:16:35]SAM_PROTO_GetShiftState [08:16:35]wFMCommunicate request_size=4 [08:16:35]MH_SAM_APDU [08:16:35]CAPDU: 80 13 01 00 [08:16:35]Write to MH i2c: E2 08 00 62 0E 80 13 01 00 00 00 00 00 ED [08:16:35]Write i2c OK [08:16:35]MH_I2C_Read... [08:16:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:35]Read from MH i2c: E2 [08:16:35]MH_I2C_Read... [08:16:35]Read from MH i2c: E2 0E 00 [08:16:35]MH_I2C_Read... [08:16:35]Read from MH i2c: E2 0E 00 62 0E 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 85 [08:16:35]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [08:16:35]wFMCommunicate OK [08:16:35]SAM_PROTO_GetShiftState done [08:16:35]FM_GetShiftState done [08:16:35]req_shift_opened done [08:16:35]requested_item shift.open_date is exist - process it [08:16:35]req_shift_open_date [08:16:35]req_shift_open_date done [08:16:35]produce_requested_data done [08:16:35]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119326,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [08:16:35]process_action_free close_receipt [08:16:35]json_value_free [08:16:35]json_value_free done [08:16:35]process_json_proto returns [08:16:35]Send response to host [08:16:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119326,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [08:16:35]free response buf [08:16:35]execute_script done [08:16:35]execute_script returns [08:16:35]free content buf [08:16:35]Sock 8.Close socket [08:16:35]Sock 8.Thread stoped [08:16:39]OFD Sender: No OFD packet to send [08:16:44]OFD Sender: No OFD packet to send [08:16:49]OFD Sender: No OFD packet to send [08:16:54]OFD Sender: No OFD packet to send [08:16:59]OFD Sender: No OFD packet to send [08:17:04]OFD Sender: No OFD packet to send [08:17:09]OFD Sender: No OFD packet to send [08:17:14]OFD Sender: No OFD packet to send [08:17:19]OFD Sender: No OFD packet to send [08:17:24]OFD Sender: No OFD packet to send [08:17:29]OFD Sender: No OFD packet to send [08:17:34]OFD Sender: No OFD packet to send [08:17:39]OFD Sender: No OFD packet to send [08:17:44]OFD Sender: No OFD packet to send [08:17:49]OFD Sender: No OFD packet to send [08:17:54]OFD Sender: No OFD packet to send [08:17:59]OFD Sender: No OFD packet to send [08:18:04]OFD Sender: No OFD packet to send [08:18:09]OFD Sender: No OFD packet to send [08:18:14]OFD Sender: No OFD packet to send [08:18:19]OFD Sender: No OFD packet to send [08:18:24]OFD Sender: No OFD packet to send [08:18:29]OFD Sender: No OFD packet to send [08:18:34]OFD Sender: No OFD packet to send [08:18:39]OFD Sender: No OFD packet to send [08:18:44]OFD Sender: No OFD packet to send [08:18:49]OFD Sender: No OFD packet to send [08:18:54]OFD Sender: No OFD packet to send [08:18:59]OFD Sender: No OFD packet to send [08:19:04]OFD Sender: No OFD packet to send [08:19:09]OFD Sender: No OFD packet to send [08:19:14]OFD Sender: No OFD packet to send [08:19:19]OFD Sender: No OFD packet to send [08:19:24]OFD Sender: No OFD packet to send [08:19:29]OFD Sender: No OFD packet to send [08:19:34]OFD Sender: No OFD packet to send [08:19:39]OFD Sender: No OFD packet to send [08:19:44]OFD Sender: No OFD packet to send [08:19:49]OFD Sender: No OFD packet to send [08:19:54]OFD Sender: No OFD packet to send [08:19:59]OFD Sender: No OFD packet to send [08:20:04]OFD Sender: No OFD packet to send [08:20:09]OFD Sender: No OFD packet to send [08:20:14]OFD Sender: No OFD packet to send [08:20:19]OFD Sender: No OFD packet to send [08:20:24]OFD Sender: No OFD packet to send [08:20:29]OFD Sender: No OFD packet to send [08:20:34]OFD Sender: No OFD packet to send [08:20:39]OFD Sender: No OFD packet to send [08:20:44]OFD Sender: No OFD packet to send [08:20:49]OFD Sender: No OFD packet to send [08:20:54]OFD Sender: No OFD packet to send [08:20:59]OFD Sender: No OFD packet to send [08:21:04]OFD Sender: No OFD packet to send [08:21:09]OFD Sender: No OFD packet to send [08:21:14]OFD Sender: No OFD packet to send [08:21:19]OFD Sender: No OFD packet to send [08:21:24]OFD Sender: No OFD packet to send [08:21:29]OFD Sender: No OFD packet to send [08:21:34]OFD Sender: No OFD packet to send [08:21:39]OFD Sender: No OFD packet to send [08:21:44]OFD Sender: No OFD packet to send [08:21:49]OFD Sender: No OFD packet to send [08:21:54]OFD Sender: No OFD packet to send [08:21:59]OFD Sender: No OFD packet to send [08:22:04]OFD Sender: No OFD packet to send [08:22:09]OFD Sender: No OFD packet to send [08:22:14]OFD Sender: No OFD packet to send [08:22:19]OFD Sender: No OFD packet to send [08:22:24]OFD Sender: No OFD packet to send [08:22:29]OFD Sender: No OFD packet to send [08:22:34]OFD Sender: No OFD packet to send [08:22:39]OFD Sender: No OFD packet to send [08:22:44]OFD Sender: No OFD packet to send [08:22:49]OFD Sender: No OFD packet to send [08:22:54]OFD Sender: No OFD packet to send [08:22:59]OFD Sender: No OFD packet to send [08:23:04]OFD Sender: No OFD packet to send [08:23:09]OFD Sender: No OFD packet to send [08:23:14]accept exits with 9 [08:23:14]New connection [08:23:14]New thread 3067194724 created [08:23:14]Thread 3067338084 joined [08:23:14]Waiting for new connection... [08:23:14] Sock 9.Parse request [08:23:14]Sock 9.Check first char [08:23:14]Sock 9.First char is OK [08:23:14]request: POST /json_proto HTTP/1.0 [08:23:14]Method: POST [08:23:14]URL: /json_proto [08:23:14]Method is POST - this is cgi request [08:23:14]url: /json_proto [08:23:14]query_string will be loaded in cgi processing [08:23:14]execute_cgi json_proto POST (null) [08:23:14]execute_cgi path=json_proto method=POST [08:23:14]POST find Content-Length [08:23:14]Host: 172.17.45.7:8080 [08:23:14]Content-Length: 679 [08:23:14]Content-Type: application/json [08:23:14] [08:23:14]POST finish read [08:23:14]Found Content-Length = 679 [08:23:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:14]execute_script... [08:23:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:14]POST & json_proto [08:23:14]process_json_proto [08:23:14]json parsed OK: [08:23:14]protocol is kg_v1.0 [08:23:14]action value=close_receipt [08:23:14]process_action close_receipt [08:23:14]cmd_close_receipt [08:23:14]MH_GetDate [08:23:14]Write to MH i2c: F0 00 00 63 0E 60 [08:23:14]Write i2c OK [08:23:14]MH_I2C_Read... [08:23:14]Read from MH i2c: F0 [08:23:14]MH_I2C_Read... [08:23:14]Read from MH i2c: F0 09 00 [08:23:14]MH_I2C_Read... [08:23:14]Read from MH i2c: F0 09 00 63 0E 00 73 F4 A9 66 90 0F 3E 66 22 [08:23:14]GetLastDocTimeStamp 1722413793 [08:23:14]current date 1722414195 [08:23:14]FM_GetShiftState [08:23:14]SAM_PROTO_GetShiftState [08:23:14]wFMCommunicate request_size=4 [08:23:14]MH_SAM_APDU [08:23:14]CAPDU: 80 13 01 00 [08:23:14]Write to MH i2c: E2 08 00 64 0E 80 13 01 00 00 00 00 00 EF [08:23:14]Write i2c OK [08:23:14]MH_I2C_Read... [08:23:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:14]Read from MH i2c: E2 [08:23:14]MH_I2C_Read... [08:23:14]Read from MH i2c: E2 0E 00 [08:23:14]MH_I2C_Read... [08:23:14]Read from MH i2c: E2 0E 00 64 0E 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 87 [08:23:14]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [08:23:14]wFMCommunicate OK [08:23:14]SAM_PROTO_GetShiftState done [08:23:14]FM_GetShiftState done [08:23:14]opened in 1722384637 [08:23:14]opened+sec_in_day 1722471037 [08:23:14]quantity*price = 100050 [08:23:14]sum+1 = 100052 [08:23:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 58 31.07.2024 08:23 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119327 ФПД: 100345159716983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T082315&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119327&fm=100345159716983&tin=02508201610067®Number=0000000000092660&sum=100000 [08:23:15]StoreToDocumentArchive [08:23:15]shift 436 fd 119327 [08:23:15]save to /storage/0436/doc_00119327 [08:23:15]save last doc name /storage/0436/doc_00119327 to /storage/kkm_last_doc_name [08:23:15]save OK [08:23:15]Clear old archive folders... [08:23:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:23:15]tlvbuf is 00B173A0 [08:23:15]SAM_PROTO_ClearQueue [08:23:15]wFMCommunicate request_size=4 [08:23:15]MH_SAM_APDU [08:23:15]CAPDU: 80 09 00 00 [08:23:15]Write to MH i2c: E2 08 00 71 0E 80 09 00 00 00 00 00 00 F1 [08:23:15]Write i2c OK [08:23:15]MH_I2C_Read... [08:23:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:23:15]Read from MH i2c: E2 [08:23:15]MH_I2C_Read... [08:23:15]Read from MH i2c: E2 03 00 [08:23:15]MH_I2C_Read... [08:23:15]Read from MH i2c: E2 03 00 71 0E 00 90 00 F3 [08:23:15]RAPDU: 90 00 [08:23:15]wFMCommunicate OK [08:23:15]SAM_PROTO_ClearQueue done [08:23:15]KKMCreateOFDPacket [08:23:15]OFDProtocolAddRootSTLVToBuf [08:23:15]FM_MakeSignedData [08:23:15]FM_MakeSignedData [08:23:15]SAM_PROTO_SignData [08:23:15]wFMCommunicate request_size=4 [08:23:15]MH_SAM_APDU [08:23:15]CAPDU: 80 0D 01 02 [08:23:15]Write to MH i2c: E2 08 00 72 0E 80 0D 01 02 00 00 00 00 F9 [08:23:15]Write i2c OK [08:23:15]MH_I2C_Read... [08:23:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:23:15]Read from MH i2c: E2 [08:23:15]MH_I2C_Read... [08:23:15]Read from MH i2c: E2 03 00 [08:23:15]MH_I2C_Read... [08:23:15]Read from MH i2c: E2 03 00 72 0E 00 90 00 F4 [08:23:15]RAPDU: 90 00 [08:23:15]wFMCommunicate OK [08:23:15]wFMCommunicate request_size=255 [08:23:15]MH_SAM_APDU [08:23:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 73 F4 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1F D2 01 00 35 04 06 00 5B 43 6D 99 [08:23:15]Write to MH i2c: E2 02 01 73 0E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 73 F4 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1F D2 01 00 35 04 06 00 5B 43 6D 99 00 00 84 [08:23:15]Write i2c OK [08:23:15]MH_I2C_Read... [08:23:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:15]Read from MH i2c: E2 [08:23:15]MH_I2C_Read... [08:23:15]Read from MH i2c: E2 03 00 [08:23:15]MH_I2C_Read... [08:23:15]Read from MH i2c: E2 03 00 73 0E 00 90 00 F5 [08:23:15]RAPDU: 90 00 [08:23:15]wFMCommunicate OK [08:23:15]wFMCommunicate request_size=7 [08:23:15]MH_SAM_APDU [08:23:15]CAPDU: 80 0D 02 02 02 90 77 [08:23:15]Write to MH i2c: E2 0A 00 74 0E 80 0D 02 02 02 00 90 77 00 00 07 [08:23:15]Write i2c OK [08:23:15]MH_I2C_Read... [08:23:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:15]Read from MH i2c: E2 [08:23:15]MH_I2C_Read... [08:23:15]Read from MH i2c: E2 03 00 [08:23:15]MH_I2C_Read... [08:23:15]Read from MH i2c: E2 03 00 74 0E 00 90 00 F6 [08:23:15]RAPDU: 90 00 [08:23:15]wFMCommunicate OK [08:23:15]wFMCommunicate request_size=4 [08:23:15]MH_SAM_APDU [08:23:15]CAPDU: 80 0D 03 02 [08:23:15]Write to MH i2c: E2 08 00 75 0E 80 0D 03 02 00 00 00 00 FE [08:23:15]Write i2c OK [08:23:15]MH_I2C_Read... [08:23:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:23:15]Read from MH i2c: E2 [08:23:15]MH_I2C_Read... [08:23:15]Read from MH i2c: E2 0B 00 [08:23:15]MH_I2C_Read... [08:23:15]Read from MH i2c: E2 0B 00 75 0E 00 8D BB 6F AC A4 16 87 49 90 00 EC [08:23:15]RAPDU: 8D BB 6F AC A4 16 87 49 90 00 [08:23:15]wFMCommunicate OK [08:23:15]SAM_PROTO_SignData done [08:23:15]FM_MakeSignedData done [08:23:15]CreateOFDProtocolMessage [08:23:15]wFMCommunicate request_size=4 [08:23:15]MH_SAM_APDU [08:23:15]CAPDU: 80 11 00 00 [08:23:15]Write to MH i2c: E2 08 00 76 0E 80 11 00 00 00 00 00 00 FE [08:23:15]Write i2c OK [08:23:15]MH_I2C_Read... [08:23:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:15]Read from MH i2c: E2 [08:23:15]MH_I2C_Read... [08:23:15]Read from MH i2c: E2 17 00 [08:23:15]MH_I2C_Read... [08:23:15]Read from MH i2c: E2 17 00 76 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 59 [08:23:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:23:15]wFMCommunicate OK [08:23:15]CreateOFDProtocolMessage done [08:23:15]OFDSenderStorePacket 119327 [08:23:15]StoreOFDPacket docnum=119327 [08:23:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 7B EF 04 01 8D 45 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 73 F4 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1F D2 01 00 35 04 06 00 5B 43 6D 99 90 77 8D BB 6F AC A4 16 87 49 [08:23:15]CheckFolder [08:23:15]dirname=/storage/ofd_packets [08:23:15]CheckFolder done [08:23:15]ProducePacketName [08:23:15]name=ofd_packets/00119327 [08:23:15]NVStorageSaveData ofd_packets/00119327 [08:23:15]File name is /storage/ofd_packets/00119327 [08:23:15]Write 298 bytes [08:23:15]NVStorageSaveData done [08:23:15]OFDSenderStorePacket done [08:23:15]KKMCreateOFDPacket done [08:23:15]NVStorageSaveData kkm_last_timestamp [08:23:15]File name is /storage/kkm_last_timestamp [08:23:15]Write 4 bytes [08:23:15]NVStorageSaveData done [08:23:15]ExternCall_PrintAddStr [08:23:15]wPrintStart [08:23:15]Write to MH i2c: 01 00 00 77 0E 85 [08:23:15]Write i2c OK [08:23:15]MH_I2C_Read... [08:23:15]Read from MH i2c: 01 [08:23:15]MH_I2C_Read... [08:23:15]Read from MH i2c: 01 07 00 [08:23:15]MH_I2C_Read... [08:23:15]Read from MH i2c: 01 07 00 77 0E 00 00 00 00 00 FF 0F 9A [08:23:15]RasterBufferAndPrint [08:23:15]line Счет N : (1)950252 [08:23:15]line ИНН: 02508201610067 [08:23:15]line Контрольно-Кассовый Чек [08:23:15]line ПРОДАЖА [08:23:15]line ТРК (МРК, ГНК) : 21 [08:23:15]line Товар: 2710194800 [08:23:15]line ДТ-К-5 [08:23:15]line 13.130 * 76.20 [08:23:15]line = 1000.51 [08:23:15]line НДС 12% НСП 1% [08:23:15]line > о реализуемом товаре [08:23:15]line ОКРУГЛЕНИЕ: -0.51 [08:23:15]line ИТОГО: 1000.00 [08:23:15]line Внесено: 1000.00 [08:23:15]line СДАЧА: 0.00 [08:23:15]line НСП 1% : 8.85 [08:23:15]line НДС 12% : 106.25 [08:23:15]line Наличными: 1000.00 [08:23:15]line Безнал.: 0.00 [08:23:15]line Место: АЗС № 134 "Партнер Нефть" [08:23:15]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:23:15]line СНО: Общий режим [08:23:15]line Чек 58 31.07.2024 08:23 [08:23:15]line Смена: 436 ФФД: 1.0 [08:23:15]line ЗНМ: 0300000044 [08:23:15]line РНМ: 0000000000092660 [08:23:15]line Версия ККМ: 001 [08:23:15]line ФМ: 0000000000874939 [08:23:15]line ФД: 119327 [08:23:15]line ФПД: 100345159716983 [08:23:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T082315&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119327&fm=100345159716983&tin=02508201610067®Number=0000000000092660&sum=100000 [08:23:16]OFD Sender: Processing packet 119327 [packets to send 86, broken 85] [08:23:16]ProducePacketName [08:23:16]name=ofd_packets/00119327 [08:23:16]OFD Sender: To server: pG, [08:23:16]CommunicateWithHost lk.salyk.kg:30040 [08:23:16]ConnectInit lk.salyk.kg [08:23:16]written 0, free lines is 4095 [08:23:16]Connected sock=10 [08:23: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 39 33 39 0C 01 00 00 7B EF 04 01 8D 45 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 73 F4 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1F D2 01 00 35 04 06 00 5B 43 6D 99 90 77 8D BB 6F AC A4 16 87 49 [08:23:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 1D DC 47 00 3C 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 39 33 39 10 04 04 00 1F D2 01 00 F4 03 04 00 FD A1 A9 66 B6 04 01 00 00 0D A7 92 C2 59 50 55 88 [08:23:16]CommunicateWithHost err = 0 [08:23:16]CheckOFDResponse [08:23:16]1017 (14) - 77093643461234 [08:23:16]1041 (16) - 0000000000874939 [08:23:16]1040 (4) - 119327 [08:23:16]1012 (4) - 31.07.2024 02:31 [08:23:16]1206 (1) - 0 [08:23:16]OFD Sender: Remove packet 119327 [08:23:16]ProducePacketName [08:23:16]name=ofd_packets/00119327 [08:23:16]NVStorageDeleteData [08:23:16]Write to MH i2c: 01 00 00 A1 0E AF [08:23:16]Write i2c OK [08:23:16]MH_I2C_Read... [08:23:16]Read from MH i2c: 01 [08:23:16]MH_I2C_Read... [08:23:16]Read from MH i2c: 01 07 00 [08:23:16]MH_I2C_Read... [08:23:16]Read from MH i2c: 01 07 00 A1 0E 00 00 00 00 00 D1 0C 93 [08:23:16]RasterBufferAndPrint [08:23:16]line [08:23:16]line [08:23:16]line [08:23:16]line [08:23:16]line [08:23:16]written 0, free lines is 3290 [08:23:16]MH_Cut [08:23:16]Write to MH i2c: D1 01 00 A8 0E 01 88 [08:23:16]Write i2c OK [08:23:16]MH_I2C_Read... [08:23:16]Read from MH i2c: D1 [08:23:16]MH_I2C_Read... [08:23:16]Read from MH i2c: D1 01 00 [08:23:16]MH_I2C_Read... [08:23:16]Read from MH i2c: D1 01 00 A8 0E 00 87 [08:23:16]Write to MH i2c: 01 00 00 A9 0E B7 [08:23:16]Write i2c OK [08:23:16]MH_I2C_Read... [08:23:16]OFD Sender: No OFD packet to send [08:23:17]*** Cut start [08:23:17]*** Partial cut [08:23:17]*** CUTSNS_PIN = 1 [08:23:17]*** CUTSNS_PIN = 0 [08:23:17]*** Brake cut motor [08:23:17]Read from MH i2c: 01 [08:23:17]MH_I2C_Read... [08:23:17]*** Stop cut motor [08:23:17]*** Cut end [08:23:17]Read from MH i2c: 01 07 00 [08:23:17]MH_I2C_Read... [08:23:17]Read from MH i2c: 01 07 00 A9 0E 00 00 00 00 00 FF 0F CC [08:23:17]process_action close_receipt done [08:23:17]requested_data is exist [08:23:17]produce_requested_data [08:23:17]requested_item fm.sn is exist - process it [08:23:17]wFMCommunicate request_size=4 [08:23:17]MH_SAM_APDU [08:23:17]CAPDU: 80 11 00 00 [08:23:17]Write to MH i2c: E2 08 00 AA 0E 80 11 00 00 00 00 00 00 32 [08:23:17]Write i2c OK [08:23:17]MH_I2C_Read... [08:23:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:18]Read from MH i2c: E2 [08:23:18]MH_I2C_Read... [08:23:18]Read from MH i2c: E2 17 00 [08:23:18]MH_I2C_Read... [08:23:18]Read from MH i2c: E2 17 00 AA 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8D [08:23:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:23:18]wFMCommunicate OK [08:23:18]requested_item fd.num is exist - process it [08:23:18]SAM_PROTO_GetFieldsCounters [08:23:18]wFMCommunicate request_size=4 [08:23:18]MH_SAM_APDU [08:23:18]CAPDU: 80 13 00 00 [08:23:18]Write to MH i2c: E2 08 00 AB 0E 80 13 00 00 00 00 00 00 35 [08:23:18]Write i2c OK [08:23:18]MH_I2C_Read... [08:23:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:23:18]Read from MH i2c: E2 [08:23:18]MH_I2C_Read... [08:23:18]Read from MH i2c: E2 62 00 [08:23:18]MH_I2C_Read... [08:23:18]Read from MH i2c: E2 62 00 AB 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1F D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [08:23:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1F D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:23:18]wFMCommunicate OK [08:23:18]SAM_PROTO_GetFieldsCounters done [08:23:18]requested_item shift.num is exist - process it [08:23:18]requested_item shift.opened is exist - process it [08:23:18]req_shift_opened [08:23:18]FM_GetShiftState [08:23:18]SAM_PROTO_GetShiftState [08:23:18]wFMCommunicate request_size=4 [08:23:18]MH_SAM_APDU [08:23:18]CAPDU: 80 13 01 00 [08:23:18]Write to MH i2c: E2 08 00 AC 0E 80 13 01 00 00 00 00 00 37 [08:23:18]Write i2c OK [08:23:18]MH_I2C_Read... [08:23:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:18]Read from MH i2c: E2 [08:23:18]MH_I2C_Read... [08:23:18]Read from MH i2c: E2 0E 00 [08:23:18]MH_I2C_Read... [08:23:18]Read from MH i2c: E2 0E 00 AC 0E 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 CF [08:23:18]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [08:23:18]wFMCommunicate OK [08:23:18]SAM_PROTO_GetShiftState done [08:23:18]FM_GetShiftState done [08:23:18]req_shift_opened done [08:23:18]requested_item shift.open_date is exist - process it [08:23:18]req_shift_open_date [08:23:18]req_shift_open_date done [08:23:18]produce_requested_data done [08:23:18]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119327,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [08:23:18]process_action_free close_receipt [08:23:18]json_value_free [08:23:18]json_value_free done [08:23:18]process_json_proto returns [08:23:18]Send response to host [08:23:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119327,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [08:23:18]free response buf [08:23:18]execute_script done [08:23:18]execute_script returns [08:23:18]free content buf [08:23:18]Sock 9.Close socket [08:23:18]Sock 9.Thread stoped [08:23:21]OFD Sender: No OFD packet to send [08:23:26]OFD Sender: No OFD packet to send [08:23:31]OFD Sender: No OFD packet to send [08:23:36]OFD Sender: No OFD packet to send [08:23:42]OFD Sender: No OFD packet to send [08:23:47]OFD Sender: No OFD packet to send [08:23:52]OFD Sender: No OFD packet to send [08:23:57]OFD Sender: No OFD packet to send [08:24:02]OFD Sender: No OFD packet to send [08:24:07]OFD Sender: No OFD packet to send [08:24:12]OFD Sender: No OFD packet to send [08:24:17]OFD Sender: No OFD packet to send [08:24:22]OFD Sender: No OFD packet to send [08:24:27]OFD Sender: No OFD packet to send [08:24:32]OFD Sender: No OFD packet to send [08:24:37]OFD Sender: No OFD packet to send [08:24:42]OFD Sender: No OFD packet to send [08:24:47]OFD Sender: No OFD packet to send [08:24:52]OFD Sender: No OFD packet to send [08:24:57]OFD Sender: No OFD packet to send [08:25:02]OFD Sender: No OFD packet to send [08:25:07]OFD Sender: No OFD packet to send [08:25:12]OFD Sender: No OFD packet to send [08:25:17]OFD Sender: No OFD packet to send [08:25:22]OFD Sender: No OFD packet to send [08:25:27]OFD Sender: No OFD packet to send [08:25:32]OFD Sender: No OFD packet to send [08:25:33]accept exits with 8 [08:25:33]New connection [08:25:33]New thread 3067338084 created [08:25:33]Thread 3067194724 joined [08:25:33]Waiting for new connection... [08:25:33] Sock 8.Parse request [08:25:33]Sock 8.Check first char [08:25:33]Sock 8.First char is OK [08:25:33]request: POST /json_proto HTTP/1.0 [08:25:33]Method: POST [08:25:33]URL: /json_proto [08:25:33]Method is POST - this is cgi request [08:25:33]url: /json_proto [08:25:33]query_string will be loaded in cgi processing [08:25:33]execute_cgi json_proto POST (null) [08:25:33]execute_cgi path=json_proto method=POST [08:25:33]POST find Content-Length [08:25:33]Host: 172.17.45.7:8080 [08:25:33]Content-Length: 677 [08:25:33]Content-Type: application/json [08:25:33] [08:25:33]POST finish read [08:25:33]Found Content-Length = 677 [08:25:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:25:33]execute_script... [08:25: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)950253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:25:33]POST & json_proto [08:25:33]process_json_proto [08:25:33]json parsed OK: [08:25:33]protocol is kg_v1.0 [08:25:33]action value=close_receipt [08:25:33]process_action close_receipt [08:25:33]cmd_close_receipt [08:25:33]MH_GetDate [08:25:33]Write to MH i2c: F0 00 00 AD 0E AA [08:25:33]Write i2c OK [08:25:33]MH_I2C_Read... [08:25:33]Read from MH i2c: F0 [08:25:33]MH_I2C_Read... [08:25:33]Read from MH i2c: F0 09 00 [08:25:33]MH_I2C_Read... [08:25:33]Read from MH i2c: F0 09 00 AD 0E 00 FF F4 A9 66 90 0F 3E 66 F8 [08:25:33]GetLastDocTimeStamp 1722414195 [08:25:33]current date 1722414335 [08:25:33]FM_GetShiftState [08:25:33]SAM_PROTO_GetShiftState [08:25:33]wFMCommunicate request_size=4 [08:25:33]MH_SAM_APDU [08:25:33]CAPDU: 80 13 01 00 [08:25:33]Write to MH i2c: E2 08 00 AE 0E 80 13 01 00 00 00 00 00 39 [08:25:33]Write i2c OK [08:25:33]MH_I2C_Read... [08:25:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:33]Read from MH i2c: E2 [08:25:33]MH_I2C_Read... [08:25:33]Read from MH i2c: E2 0E 00 [08:25:33]MH_I2C_Read... [08:25:33]Read from MH i2c: E2 0E 00 AE 0E 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 D1 [08:25:33]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [08:25:33]wFMCommunicate OK [08:25:33]SAM_PROTO_GetShiftState done [08:25:33]FM_GetShiftState done [08:25:33]opened in 1722384637 [08:25:33]opened+sec_in_day 1722471037 [08:25:33]quantity*price = 40002 [08:25:33]sum+1 = 40003 [08:25:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 59 31.07.2024 08:25 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119328 ФПД: 214141843445459 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T082535&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119328&fm=214141843445459&tin=02508201610067®Number=0000000000092660&sum=40000 [08:25:34]StoreToDocumentArchive [08:25:34]shift 436 fd 119328 [08:25:34]save to /storage/0436/doc_00119328 [08:25:34]save last doc name /storage/0436/doc_00119328 to /storage/kkm_last_doc_name [08:25:34]save OK [08:25:34]Clear old archive folders... [08:25:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:25:34]tlvbuf is B6F06A80 [08:25:34]SAM_PROTO_ClearQueue [08:25:34]wFMCommunicate request_size=4 [08:25:34]MH_SAM_APDU [08:25:34]CAPDU: 80 09 00 00 [08:25:34]Write to MH i2c: E2 08 00 BB 0E 80 09 00 00 00 00 00 00 3B [08:25:34]Write i2c OK [08:25:34]MH_I2C_Read... [08:25:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:25:35]Read from MH i2c: E2 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: E2 03 00 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: E2 03 00 BB 0E 00 90 00 3D [08:25:35]RAPDU: 90 00 [08:25:35]wFMCommunicate OK [08:25:35]SAM_PROTO_ClearQueue done [08:25:35]KKMCreateOFDPacket [08:25:35]OFDProtocolAddRootSTLVToBuf [08:25:35]FM_MakeSignedData [08:25:35]FM_MakeSignedData [08:25:35]SAM_PROTO_SignData [08:25:35]wFMCommunicate request_size=4 [08:25:35]MH_SAM_APDU [08:25:35]CAPDU: 80 0D 01 02 [08:25:35]Write to MH i2c: E2 08 00 BC 0E 80 0D 01 02 00 00 00 00 43 [08:25:35]Write i2c OK [08:25:35]MH_I2C_Read... [08:25:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:25:35]Read from MH i2c: E2 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: E2 03 00 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: E2 03 00 BC 0E 00 90 00 3E [08:25:35]RAPDU: 90 00 [08:25:35]wFMCommunicate OK [08:25:35]wFMCommunicate request_size=255 [08:25:35]MH_SAM_APDU [08:25:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 3B 00 00 00 F4 03 04 00 FF F4 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 20 D2 01 00 35 04 06 00 C2 [08:25:35]Write to MH i2c: E2 02 01 BD 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 3B 00 00 00 F4 03 04 00 FF F4 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 20 D2 01 00 35 04 06 00 C2 00 00 53 [08:25:35]Write i2c OK [08:25:35]MH_I2C_Read... [08:25:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:35]Read from MH i2c: E2 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: E2 03 00 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: E2 03 00 BD 0E 00 90 00 3F [08:25:35]RAPDU: 90 00 [08:25:35]wFMCommunicate OK [08:25:35]wFMCommunicate request_size=10 [08:25:35]MH_SAM_APDU [08:25:35]CAPDU: 80 0D 02 02 05 C2 C8 82 96 D3 [08:25:35]Write to MH i2c: E2 0D 00 BE 0E 80 0D 02 02 05 00 C2 C8 82 96 D3 00 00 C5 [08:25:35]Write i2c OK [08:25:35]MH_I2C_Read... [08:25:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:35]Read from MH i2c: E2 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: E2 03 00 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: E2 03 00 BE 0E 00 90 00 40 [08:25:35]RAPDU: 90 00 [08:25:35]wFMCommunicate OK [08:25:35]wFMCommunicate request_size=4 [08:25:35]MH_SAM_APDU [08:25:35]CAPDU: 80 0D 03 02 [08:25:35]Write to MH i2c: E2 08 00 BF 0E 80 0D 03 02 00 00 00 00 48 [08:25:35]Write i2c OK [08:25:35]MH_I2C_Read... [08:25:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:25:35]Read from MH i2c: E2 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: E2 0B 00 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: E2 0B 00 BF 0E 00 F5 31 8E 03 69 29 18 EC 90 00 96 [08:25:35]RAPDU: F5 31 8E 03 69 29 18 EC 90 00 [08:25:35]wFMCommunicate OK [08:25:35]SAM_PROTO_SignData done [08:25:35]FM_MakeSignedData done [08:25:35]CreateOFDProtocolMessage [08:25:35]wFMCommunicate request_size=4 [08:25:35]MH_SAM_APDU [08:25:35]CAPDU: 80 11 00 00 [08:25:35]Write to MH i2c: E2 08 00 C0 0E 80 11 00 00 00 00 00 00 48 [08:25:35]Write i2c OK [08:25:35]MH_I2C_Read... [08:25:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:35]Read from MH i2c: E2 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: E2 17 00 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: E2 17 00 C0 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A3 [08:25:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:25:35]wFMCommunicate OK [08:25:35]CreateOFDProtocolMessage done [08:25:35]OFDSenderStorePacket 119328 [08:25:35]StoreOFDPacket docnum=119328 [08:25:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 FF 8A 07 01 1B 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 3B 00 00 00 F4 03 04 00 FF F4 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 20 D2 01 00 35 04 06 00 C2 C2 C8 82 96 D3 F5 31 8E 03 69 29 18 EC [08:25:35]CheckFolder [08:25:35]dirname=/storage/ofd_packets [08:25:35]CheckFolder done [08:25:35]ProducePacketName [08:25:35]name=ofd_packets/00119328 [08:25:35]NVStorageSaveData ofd_packets/00119328 [08:25:35]File name is /storage/ofd_packets/00119328 [08:25:35]Write 301 bytes [08:25:35]NVStorageSaveData done [08:25:35]OFDSenderStorePacket done [08:25:35]KKMCreateOFDPacket done [08:25:35]NVStorageSaveData kkm_last_timestamp [08:25:35]File name is /storage/kkm_last_timestamp [08:25:35]Write 4 bytes [08:25:35]NVStorageSaveData done [08:25:35]ExternCall_PrintAddStr [08:25:35]wPrintStart [08:25:35]Write to MH i2c: 01 00 00 C1 0E CF [08:25:35]Write i2c OK [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: 01 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: 01 07 00 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: 01 07 00 C1 0E 00 00 00 00 00 FF 0F E4 [08:25:35]RasterBufferAndPrint [08:25:35]line Счет N : (1)950253 [08:25:35]line ИНН: 02508201610067 [08:25:35]line Контрольно-Кассовый Чек [08:25:35]line ПРОДАЖА [08:25:35]line ТРК (МРК, ГНК) : 41 [08:25:35]line Товар: 2710124130 [08:25:35]line Аи-92-К-4 [08:25:35]line 5.900 * 67.80 [08:25:35]line = 400.02 [08:25:35]line НДС 12% НСП 1% [08:25:35]line > о реализуемом товаре [08:25:35]line ОКРУГЛЕНИЕ: -0.02 [08:25:35]line ИТОГО: 400.00 [08:25:35]line Внесено: 400.00 [08:25:35]line СДАЧА: 0.00 [08:25:35]line НСП 1% : 3.54 [08:25:35]line НДС 12% : 42.48 [08:25:35]line Наличными: 400.00 [08:25:35]line Безнал.: 0.00 [08:25:35]line Место: АЗС № 134 "Партнер Нефть" [08:25:35]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:25:35]line СНО: Общий режим [08:25:35]line Чек 59 31.07.2024 08:25 [08:25:35]line Смена: 436 ФФД: 1.0 [08:25:35]line ЗНМ: 0300000044 [08:25:35]line РНМ: 0000000000092660 [08:25:35]line Версия ККМ: 001 [08:25:35]line ФМ: 0000000000874939 [08:25:35]line ФД: 119328 [08:25:35]line ФПД: 214141843445459 [08:25:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T082535&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119328&fm=214141843445459&tin=02508201610067®Number=0000000000092660&sum=40000 [08:25:35]written 0, free lines is 4095 [08:25:35]OFD Sender: Processing packet 119328 [packets to send 86, broken 85] [08:25:35]ProducePacketName [08:25:35]name=ofd_packets/00119328 [08:25:35]OFD Sender: To server: pG, [08:25:35]CommunicateWithHost lk.salyk.kg:30040 [08:25:35]ConnectInit lk.salyk.kg [08:25:35]Connected sock=10 [08:25:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 FF 8A 07 01 1B 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 3B 00 00 00 F4 03 04 00 FF F4 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 20 D2 01 00 35 04 06 00 C2 C2 C8 82 96 D3 F5 31 8E 03 69 29 18 EC [08:25:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 62 82 47 00 0D 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 20 D2 01 00 F4 03 04 00 88 A2 A9 66 B6 04 01 00 00 23 4C 26 99 73 66 A3 EE [08:25:35]CommunicateWithHost err = 0 [08:25:35]CheckOFDResponse [08:25:35]1017 (14) - 77093643461234 [08:25:35]1041 (16) - 0000000000874939 [08:25:35]1040 (4) - 119328 [08:25:35]1012 (4) - 31.07.2024 02:33 [08:25:35]1206 (1) - 0 [08:25:35]OFD Sender: Remove packet 119328 [08:25:35]ProducePacketName [08:25:35]name=ofd_packets/00119328 [08:25:35]NVStorageDeleteData [08:25:35]Write to MH i2c: 01 00 00 EB 0E F9 [08:25:35]Write i2c OK [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: 01 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: 01 07 00 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: 01 07 00 EB 0E 00 00 00 00 00 E7 0C F3 [08:25:35]RasterBufferAndPrint [08:25:35]line [08:25:35]line [08:25:35]line [08:25:35]line [08:25:35]line [08:25:35]written 0, free lines is 3309 [08:25:35]MH_Cut [08:25:35]Write to MH i2c: D1 01 00 F2 0E 01 D2 [08:25:35]Write i2c OK [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: D1 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: D1 01 00 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: D1 01 00 F2 0E 00 D1 [08:25:35]Write to MH i2c: 01 00 00 F3 0E 01 [08:25:35]Write i2c OK [08:25:35]MH_I2C_Read... [08:25:36]OFD Sender: No OFD packet to send [08:25:36]*** Cut start [08:25:36]*** Partial cut [08:25:36]*** CUTSNS_PIN = 1 [08:25:36]*** CUTSNS_PIN = 0 [08:25:36]*** Brake cut motor [08:25:37]Read from MH i2c: 01 [08:25:37]MH_I2C_Read... [08:25:37]*** Stop cut motor [08:25:37]*** Cut end [08:25:37]Read from MH i2c: 01 07 00 [08:25:37]MH_I2C_Read... [08:25:37]Read from MH i2c: 01 07 00 F3 0E 00 00 00 00 00 FF 0F 16 [08:25:37]process_action close_receipt done [08:25:37]requested_data is exist [08:25:37]produce_requested_data [08:25:37]requested_item fm.sn is exist - process it [08:25:37]wFMCommunicate request_size=4 [08:25:37]MH_SAM_APDU [08:25:37]CAPDU: 80 11 00 00 [08:25:37]Write to MH i2c: E2 08 00 F4 0E 80 11 00 00 00 00 00 00 7C [08:25:37]Write i2c OK [08:25:37]MH_I2C_Read... [08:25:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:37]Read from MH i2c: E2 [08:25:37]MH_I2C_Read... [08:25:37]Read from MH i2c: E2 17 00 [08:25:37]MH_I2C_Read... [08:25:37]Read from MH i2c: E2 17 00 F4 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D7 [08:25:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:25:37]wFMCommunicate OK [08:25:37]requested_item fd.num is exist - process it [08:25:37]SAM_PROTO_GetFieldsCounters [08:25:37]wFMCommunicate request_size=4 [08:25:37]MH_SAM_APDU [08:25:37]CAPDU: 80 13 00 00 [08:25:37]Write to MH i2c: E2 08 00 F5 0E 80 13 00 00 00 00 00 00 7F [08:25:37]Write i2c OK [08:25:37]MH_I2C_Read... [08:25:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:25:37]Read from MH i2c: E2 [08:25:37]MH_I2C_Read... [08:25:37]Read from MH i2c: E2 62 00 [08:25:37]MH_I2C_Read... [08:25:37]Read from MH i2c: E2 62 00 F5 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 20 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [08:25: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 20 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:25:37]wFMCommunicate OK [08:25:37]SAM_PROTO_GetFieldsCounters done [08:25:37]requested_item shift.num is exist - process it [08:25:37]requested_item shift.opened is exist - process it [08:25:37]req_shift_opened [08:25:37]FM_GetShiftState [08:25:37]SAM_PROTO_GetShiftState [08:25:37]wFMCommunicate request_size=4 [08:25:37]MH_SAM_APDU [08:25:37]CAPDU: 80 13 01 00 [08:25:37]Write to MH i2c: E2 08 00 F6 0E 80 13 01 00 00 00 00 00 81 [08:25:37]Write i2c OK [08:25:37]MH_I2C_Read... [08:25:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:37]Read from MH i2c: E2 [08:25:37]MH_I2C_Read... [08:25:37]Read from MH i2c: E2 0E 00 [08:25:37]MH_I2C_Read... [08:25:37]Read from MH i2c: E2 0E 00 F6 0E 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 19 [08:25:37]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [08:25:37]wFMCommunicate OK [08:25:37]SAM_PROTO_GetShiftState done [08:25:37]FM_GetShiftState done [08:25:37]req_shift_opened done [08:25:37]requested_item shift.open_date is exist - process it [08:25:37]req_shift_open_date [08:25:37]req_shift_open_date done [08:25:37]produce_requested_data done [08:25:37]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119328,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [08:25:37]process_action_free close_receipt [08:25:37]json_value_free [08:25:37]json_value_free done [08:25:37]process_json_proto returns [08:25:37]Send response to host [08:25:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119328,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [08:25:37]free response buf [08:25:37]execute_script done [08:25:37]execute_script returns [08:25:37]free content buf [08:25:37]Sock 8.Close socket [08:25:37]Sock 8.Thread stoped [08:25:41]OFD Sender: No OFD packet to send [08:25:46]OFD Sender: No OFD packet to send [08:25:51]OFD Sender: No OFD packet to send [08:25:56]OFD Sender: No OFD packet to send [08:26:01]OFD Sender: No OFD packet to send [08:26:06]OFD Sender: No OFD packet to send [08:26:11]OFD Sender: No OFD packet to send [08:26:16]OFD Sender: No OFD packet to send [08:26:21]OFD Sender: No OFD packet to send [08:26:26]OFD Sender: No OFD packet to send [08:26:31]OFD Sender: No OFD packet to send [08:26:36]OFD Sender: No OFD packet to send [08:26:41]OFD Sender: No OFD packet to send [08:26:46]OFD Sender: No OFD packet to send [08:26:51]OFD Sender: No OFD packet to send [08:26:56]OFD Sender: No OFD packet to send [08:27:01]OFD Sender: No OFD packet to send [08:27:06]OFD Sender: No OFD packet to send [08:27:11]OFD Sender: No OFD packet to send [08:27:16]OFD Sender: No OFD packet to send [08:27:21]OFD Sender: No OFD packet to send [08:27:26]OFD Sender: No OFD packet to send [08:27:31]OFD Sender: No OFD packet to send [08:27:36]OFD Sender: No OFD packet to send [08:27:41]OFD Sender: No OFD packet to send [08:27:46]OFD Sender: No OFD packet to send [08:27:51]OFD Sender: No OFD packet to send [08:27:56]OFD Sender: No OFD packet to send [08:28:01]OFD Sender: No OFD packet to send [08:28:06]OFD Sender: No OFD packet to send [08:28:11]OFD Sender: No OFD packet to send [08:28:16]OFD Sender: No OFD packet to send [08:28:21]OFD Sender: No OFD packet to send [08:28:26]OFD Sender: No OFD packet to send [08:28:31]OFD Sender: No OFD packet to send [08:28:36]OFD Sender: No OFD packet to send [08:28:41]OFD Sender: No OFD packet to send [08:28:46]OFD Sender: No OFD packet to send [08:28:51]OFD Sender: No OFD packet to send [08:28:56]OFD Sender: No OFD packet to send [08:29:01]accept exits with 9 [08:29:01]New connection [08:29:01]New thread 3067194724 created [08:29:01]Thread 3067338084 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.45.7:8080 [08:29:01]Content-Length: 677 [08:29:01]Content-Type: application/json [08:29:01] [08:29:01]POST finish read [08:29:01]Found Content-Length = 677 [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)950255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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: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)950255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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: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 F7 0E F4 [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 F7 0E 00 CE F5 A9 66 90 0F 3E 66 12 [08:29:01]GetLastDocTimeStamp 1722414335 [08:29:01]current date 1722414542 [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 F8 0E 80 13 01 00 00 00 00 00 83 [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 F8 0E 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 1B [08:29:01]RAPDU: 09 00 01 FD 80 A9 66 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 1722384637 [08:29:01]opened+sec_in_day 1722471037 [08:29:01]quantity*price = 40002 [08:29:01]sum+1 = 40003 [08:29:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 60 31.07.2024 08:29 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119329 ФПД: 219590669818752 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T082902&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119329&fm=219590669818752&tin=02508201610067®Number=0000000000092660&sum=40000 [08:29:02]StoreToDocumentArchive [08:29:02]shift 436 fd 119329 [08:29:02]save to /storage/0436/doc_00119329 [08:29:02]save last doc name /storage/0436/doc_00119329 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=251 [08:29:02]tlvbuf is 00AAB880 [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 05 0F 80 09 00 00 00 00 00 00 86 [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 05 0F 00 90 00 88 [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 06 0F 80 0D 01 02 00 00 00 00 8E [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 06 0F 00 90 00 89 [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 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 3C 00 00 00 F4 03 04 00 CE F5 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 21 D2 01 00 35 04 06 00 C7 [08:29:02]Write to MH i2c: E2 02 01 07 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 3C 00 00 00 F4 03 04 00 CE F5 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 21 D2 01 00 35 04 06 00 C7 00 00 75 [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 07 0F 00 90 00 8A [08:29:02]RAPDU: 90 00 [08:29:02]wFMCommunicate OK [08:29:02]wFMCommunicate request_size=10 [08:29:02]MH_SAM_APDU [08:29:02]CAPDU: 80 0D 02 02 05 B7 6F DE DB 80 [08:29:02]Write to MH i2c: E2 0D 00 08 0F 80 0D 02 02 05 00 B7 6F DE DB 80 00 00 FA [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 08 0F 00 90 00 8B [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 09 0F 80 0D 03 02 00 00 00 00 93 [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 09 0F 00 39 94 D3 05 27 A4 BE ED 90 00 AF [08:29:02]RAPDU: 39 94 D3 05 27 A4 BE ED 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 0A 0F 80 11 00 00 00 00 00 00 93 [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 0A 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EE [08:29:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:29:02]wFMCommunicate OK [08:29:02]CreateOFDProtocolMessage done [08:29:02]OFDSenderStorePacket 119329 [08:29:02]StoreOFDPacket docnum=119329 [08:29:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 68 5A 07 01 08 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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 3C 00 00 00 F4 03 04 00 CE F5 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 21 D2 01 00 35 04 06 00 C7 B7 6F DE DB 80 39 94 D3 05 27 A4 BE ED [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/00119329 [08:29:02]NVStorageSaveData ofd_packets/00119329 [08:29:02]File name is /storage/ofd_packets/00119329 [08:29:02]Write 301 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 0B 0F 1A [08:29:02]OFD Sender: Processing packet 119329 [packets to send 86, broken 85] [08:29:02]ProducePacketName [08:29:02]name=ofd_packets/00119329 [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: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 0B 0F 00 00 00 00 00 FF 0F 2F [08:29:02]RasterBufferAndPrint [08:29:02]line Счет N : (1)950255 [08:29:02]line ИНН: 02508201610067 [08:29:02]line Контрольно-Кассовый Чек [08:29:02]line ПРОДАЖА [08:29:02]line ТРК (МРК, ГНК) : 41 [08:29:02]line Товар: 2710124130 [08:29:02]line Аи-92-К-4 [08:29:02]line 5.900 * 67.80 [08:29:02]line = 400.02 [08:29:02]line НДС 12% НСП 1% [08:29:02]line > о реализуемом товаре [08:29:02]line ОКРУГЛЕНИЕ: -0.02 [08:29:02]line ИТОГО: 400.00 [08:29:02]line Внесено: 400.00 [08:29:02]line СДАЧА: 0.00 [08:29:02]line НСП 1% : 3.54 [08:29:02]line НДС 12% : 42.48 [08:29:02]line Наличными: 400.00 [08:29:02]line Безнал.: 0.00 [08:29:02]line Место: АЗС № 134 "Партнер Нефть" [08:29:02]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:29:02]line СНО: Общий режим [08:29:02]line Чек 60 31.07.2024 08:29 [08:29:02]line Смена: 436 ФФД: 1.0 [08:29:02]line ЗНМ: 0300000044 [08:29:02]line РНМ: 0000000000092660 [08:29:02]line Версия ККМ: 001 [08:29:02]line ФМ: 0000000000874939 [08:29:02]line ФД: 119329 [08:29:02]line ФПД: 219590669818752 [08:29:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T082902&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119329&fm=219590669818752&tin=02508201610067®Number=0000000000092660&sum=40000 [08:29:02]written 0, free lines is 4095 [08:29:03]Connected sock=10 [08:29:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 68 5A 07 01 08 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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 3C 00 00 00 F4 03 04 00 CE F5 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 21 D2 01 00 35 04 06 00 C7 B7 6F DE DB 80 39 94 D3 05 27 A4 BE ED [08:29:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E9 78 47 00 D4 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 39 33 39 10 04 04 00 21 D2 01 00 F4 03 04 00 57 A3 A9 66 B6 04 01 00 00 9C 0E 88 E0 EC 97 AB 67 [08:29:03]CommunicateWithHost err = 0 [08:29:03]CheckOFDResponse [08:29:03]1017 (14) - 77093643461234 [08:29:03]1041 (16) - 0000000000874939 [08:29:03]1040 (4) - 119329 [08:29:03]1012 (4) - 31.07.2024 02:37 [08:29:03]1206 (1) - 0 [08:29:03]OFD Sender: Remove packet 119329 [08:29:03]ProducePacketName [08:29:03]name=ofd_packets/00119329 [08:29:03]NVStorageDeleteData [08:29:03]Write to MH i2c: 01 00 00 35 0F 44 [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 35 0F 00 00 00 00 00 DD 0C 34 [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 3302 [08:29:03]MH_Cut [08:29:03]Write to MH i2c: D1 01 00 3C 0F 01 1D [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 3C 0F 00 1C [08:29:03]Write to MH i2c: 01 00 00 3D 0F 4C [08:29:03]Write i2c OK [08:29:03]MH_I2C_Read... [08:29:03]OFD Sender: No OFD packet to send [08:29:04]*** Cut start [08:29:04]*** Partial cut [08:29:04]*** 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 3D 0F 00 00 00 00 00 FF 0F 61 [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 3E 0F 80 11 00 00 00 00 00 00 C7 [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 3E 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 22 [08:29:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 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 3F 0F 80 13 00 00 00 00 00 00 CA [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 3F 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 21 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 21 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:29:05]wFMCommunicate OK [08:29:05]SAM_PROTO_GetFieldsCounters done [08:29:05]requested_item shift.num is exist - process it [08:29:05]requested_item shift.opened is exist - process it [08:29:05]req_shift_opened [08:29:05]FM_GetShiftState [08:29:05]SAM_PROTO_GetShiftState [08:29:05]wFMCommunicate request_size=4 [08:29:05]MH_SAM_APDU [08:29:05]CAPDU: 80 13 01 00 [08:29:05]Write to MH i2c: E2 08 00 40 0F 80 13 01 00 00 00 00 00 CC [08:29:05]Write i2c OK [08:29:05]MH_I2C_Read... [08:29:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:05]Read from MH i2c: E2 [08:29:05]MH_I2C_Read... [08:29:05]Read from MH i2c: E2 0E 00 [08:29:05]MH_I2C_Read... [08:29:05]Read from MH i2c: E2 0E 00 40 0F 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 64 [08:29:05]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [08:29:05]wFMCommunicate OK [08:29:05]SAM_PROTO_GetShiftState done [08:29:05]FM_GetShiftState done [08:29:05]req_shift_opened done [08:29:05]requested_item shift.open_date is exist - process it [08:29:05]req_shift_open_date [08:29:05]req_shift_open_date done [08:29:05]produce_requested_data done [08:29:05]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119329,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [08:29:05]process_action_free close_receipt [08:29:05]json_value_free [08:29:05]json_value_free done [08:29:05]process_json_proto returns [08:29:05]Send response to host [08:29:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119329,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [08:29:05]free response buf [08:29:05]execute_script done [08:29:05]execute_script returns [08:29:05]free content buf [08:29:05]Sock 9.Close socket [08:29:05]Sock 9.Thread stoped [08:29:08]OFD Sender: No OFD packet to send [08:29:13]OFD Sender: No OFD packet to send [08:29:18]OFD Sender: No OFD packet to send [08:29:23]OFD Sender: No OFD packet to send [08:29:28]OFD Sender: No OFD packet to send [08:29:33]OFD Sender: No OFD packet to send [08:29:38]OFD Sender: No OFD packet to send [08:29:43]OFD Sender: No OFD packet to send [08:29:48]OFD Sender: No OFD packet to send [08:29:53]OFD Sender: No OFD packet to send [08:29:58]OFD Sender: No OFD packet to send [08:30:03]OFD Sender: No OFD packet to send [08:30:08]OFD Sender: No OFD packet to send [08:30:13]OFD Sender: No OFD packet to send [08:30:18]OFD Sender: No OFD packet to send [08:30:23]OFD Sender: No OFD packet to send [08:30:28]OFD Sender: No OFD packet to send [08:30:33]OFD Sender: No OFD packet to send [08:30:38]OFD Sender: No OFD packet to send [08:30:43]OFD Sender: No OFD packet to send [08:30:48]OFD Sender: No OFD packet to send [08:30:53]OFD Sender: No OFD packet to send [08:30:58]OFD Sender: No OFD packet to send [08:31:03]OFD Sender: No OFD packet to send [08:31:08]OFD Sender: No OFD packet to send [08:31:13]OFD Sender: No OFD packet to send [08:31:18]OFD Sender: No OFD packet to send [08:31:23]OFD Sender: No OFD packet to send [08:31:28]OFD Sender: No OFD packet to send [08:31:33]OFD Sender: No OFD packet to send [08:31:38]OFD Sender: No OFD packet to send [08:31:43]OFD Sender: No OFD packet to send [08:31:48]OFD Sender: No OFD packet to send [08:31:53]OFD Sender: No OFD packet to send [08:31:58]OFD Sender: No OFD packet to send [08:32:03]OFD Sender: No OFD packet to send [08:32:08]OFD Sender: No OFD packet to send [08:32:14]OFD Sender: No OFD packet to send [08:32:14]accept exits with 8 [08:32:14]New connection [08:32:14]New thread 3067338084 created [08:32:14]Thread 3067194724 joined [08:32:14]Waiting for new connection... [08:32:14] Sock 8.Parse request [08:32:14]Sock 8.Check first char [08:32:14]Sock 8.First char is OK [08:32:14]request: POST /json_proto HTTP/1.0 [08:32:14]Method: POST [08:32:14]URL: /json_proto [08:32:14]Method is POST - this is cgi request [08:32:14]url: /json_proto [08:32:14]query_string will be loaded in cgi processing [08:32:14]execute_cgi json_proto POST (null) [08:32:14]execute_cgi path=json_proto method=POST [08:32:14]POST find Content-Length [08:32:14]Host: 172.17.45.7:8080 [08:32:14]Content-Length: 1195 [08:32:14]Content-Type: application/json [08:32:14] [08:32:14]POST finish read [08:32:14]Found Content-Length = 1195 [08:32:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)950254\u000A31.07.2024 08:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3990977\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:14]execute_script... [08:32:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)950254\u000A31.07.2024 08:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3990977\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:14]POST & json_proto [08:32:14]process_json_proto [08:32:14]json parsed OK: [08:32:14]protocol is kg_v1.0 [08:32:14]action value=print_text [08:32:14]process_action print_text [08:32:14]cmd_print_text [08:32:14]ExternCall_PrintAddStr [08:32:14]wPrintStart [08:32:14]Write to MH i2c: 01 00 00 41 0F 50 [08:32:14]Write i2c OK [08:32:14]MH_I2C_Read... [08:32:14]Read from MH i2c: 01 [08:32:14]MH_I2C_Read... [08:32:14]Read from MH i2c: 01 07 00 [08:32:14]MH_I2C_Read... [08:32:14]Read from MH i2c: 01 07 00 41 0F 00 00 00 00 00 FF 0F 65 [08:32:14]RasterBufferAndPrint [08:32:14]line *****ТОВАРНЫЙ ЧЕК***** [08:32:14]line АЗС-134 [08:32:14]line Партнер нефть [08:32:14]line 02508201610067 [08:32:14]line Кассир : Хошимов З. [08:32:14]line Счет N : (1)950254 [08:32:14]line 31.07.2024 08:29 [08:32:14]line ПРОДАЖА [08:32:14]line ТРК (МРК, ГНК): 11 [08:32:14]line Вид ГСМ : 2710194800 [08:32:14]line ДТ-К-5 [08:32:14]line 100.000 x 76.20 [08:32:14]line ИТОГ: 7620.00 [08:32:14]line Тип оплаты: Талоны: Топливные Талоны [08:32:14]line 3990977 [08:32:14]line ______________________ [08:32:14]line (подпись) [08:32:14]written 0, free lines is 4095 [08:32:14]Write to MH i2c: 01 00 00 55 0F 64 [08:32:14]Write i2c OK [08:32:14]MH_I2C_Read... [08:32:14]Read from MH i2c: 01 [08:32:14]MH_I2C_Read... [08:32:14]Read from MH i2c: 01 07 00 [08:32:14]MH_I2C_Read... [08:32:14]Read from MH i2c: 01 07 00 55 0F 00 00 00 00 00 10 0E 89 [08:32:14]RasterBufferAndPrint [08:32:14]line [08:32:14]line [08:32:14]line [08:32:14]line [08:32:14]line [08:32:14]written 0, free lines is 3601 [08:32:14]MH_Cut [08:32:14]Write to MH i2c: D1 01 00 5C 0F 01 3D [08:32:14]Write i2c OK [08:32:14]MH_I2C_Read... [08:32:14]Read from MH i2c: D1 [08:32:14]MH_I2C_Read... [08:32:14]Read from MH i2c: D1 01 00 [08:32:14]MH_I2C_Read... [08:32:14]Read from MH i2c: D1 01 00 5C 0F 00 3C [08:32:14]Write to MH i2c: 01 00 00 5D 0F 6C [08:32:14]Write i2c OK [08:32:14]MH_I2C_Read... [08:32:14]*** Cut start [08:32:14]*** Partial cut [08:32:14]*** CUTSNS_PIN = 1 [08:32:14]*** CUTSNS_PIN = 0 [08:32:15]*** Brake cut motor [08:32:15]Read from MH i2c: 01 [08:32:15]MH_I2C_Read... [08:32:15]*** Stop cut motor [08:32:15]*** Cut end [08:32:15]Read from MH i2c: 01 07 00 [08:32:15]MH_I2C_Read... [08:32:15]Read from MH i2c: 01 07 00 5D 0F 00 00 00 00 00 FF 0F 81 [08:32:15]process_action print_text done [08:32:15]requested_data is exist [08:32:15]produce_requested_data [08:32:15]requested_item fm.sn is exist - process it [08:32:15]wFMCommunicate request_size=4 [08:32:15]MH_SAM_APDU [08:32:15]CAPDU: 80 11 00 00 [08:32:15]Write to MH i2c: E2 08 00 5E 0F 80 11 00 00 00 00 00 00 E7 [08:32:15]Write i2c OK [08:32:15]MH_I2C_Read... [08:32:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:15]Read from MH i2c: E2 [08:32:15]MH_I2C_Read... [08:32:15]Read from MH i2c: E2 17 00 [08:32:15]MH_I2C_Read... [08:32:15]Read from MH i2c: E2 17 00 5E 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 42 [08:32:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:32:15]wFMCommunicate OK [08:32:15]requested_item fd.num is exist - process it [08:32:15]SAM_PROTO_GetFieldsCounters [08:32:15]wFMCommunicate request_size=4 [08:32:15]MH_SAM_APDU [08:32:15]CAPDU: 80 13 00 00 [08:32:15]Write to MH i2c: E2 08 00 5F 0F 80 13 00 00 00 00 00 00 EA [08:32:15]Write i2c OK [08:32:15]MH_I2C_Read... [08:32:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:32:15]Read from MH i2c: E2 [08:32:15]MH_I2C_Read... [08:32:15]Read from MH i2c: E2 62 00 [08:32:15]MH_I2C_Read... [08:32:15]Read from MH i2c: E2 62 00 5F 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 21 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [08:32:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 21 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:32:15]wFMCommunicate OK [08:32:15]SAM_PROTO_GetFieldsCounters done [08:32:15]requested_item shift.num is exist - process it [08:32:15]requested_item shift.opened is exist - process it [08:32:15]req_shift_opened [08:32:15]FM_GetShiftState [08:32:15]SAM_PROTO_GetShiftState [08:32:15]wFMCommunicate request_size=4 [08:32:15]MH_SAM_APDU [08:32:15]CAPDU: 80 13 01 00 [08:32:15]Write to MH i2c: E2 08 00 60 0F 80 13 01 00 00 00 00 00 EC [08:32:15]Write i2c OK [08:32:15]MH_I2C_Read... [08:32:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:15]Read from MH i2c: E2 [08:32:15]MH_I2C_Read... [08:32:15]Read from MH i2c: E2 0E 00 [08:32:15]MH_I2C_Read... [08:32:15]Read from MH i2c: E2 0E 00 60 0F 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 84 [08:32:15]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [08:32:15]wFMCommunicate OK [08:32:15]SAM_PROTO_GetShiftState done [08:32:15]FM_GetShiftState done [08:32:15]req_shift_opened done [08:32:15]requested_item shift.open_date is exist - process it [08:32:15]req_shift_open_date [08:32:15]req_shift_open_date done [08:32:15]produce_requested_data done [08:32:15]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119329,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [08:32:15]process_action_free print_text [08:32:15]json_value_free [08:32:15]json_value_free done [08:32:15]process_json_proto returns [08:32:15]Send response to host [08:32:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119329,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [08:32:15]free response buf [08:32:15]execute_script done [08:32:15]execute_script returns [08:32:15]free content buf [08:32:15]Sock 8.Close socket [08:32:15]Sock 8.Thread stoped [08:32:19]OFD Sender: No OFD packet to send [08:32:24]OFD Sender: No OFD packet to send [08:32:29]OFD Sender: No OFD packet to send [08:32:34]OFD Sender: No OFD packet to send [08:32:39]OFD Sender: No OFD packet to send [08:32:44]OFD Sender: No OFD packet to send [08:32:49]OFD Sender: No OFD packet to send [08:32:54]OFD Sender: No OFD packet to send [08:32:59]OFD Sender: No OFD packet to send [08:33:04]OFD Sender: No OFD packet to send [08:33:09]OFD Sender: No OFD packet to send [08:33:14]OFD Sender: No OFD packet to send [08:33:19]OFD Sender: No OFD packet to send [08:33:24]OFD Sender: No OFD packet to send [08:33:29]OFD Sender: No OFD packet to send [08:33:34]OFD Sender: No OFD packet to send [08:33:39]OFD Sender: No OFD packet to send [08:33:44]OFD Sender: No OFD packet to send [08:33:49]OFD Sender: No OFD packet to send [08:33:54]OFD Sender: No OFD packet to send [08:33:59]OFD Sender: No OFD packet to send [08:34:04]OFD Sender: No OFD packet to send [08:34:09]OFD Sender: No OFD packet to send [08:34:14]OFD Sender: No OFD packet to send [08:34:19]OFD Sender: No OFD packet to send [08:34:24]OFD Sender: No OFD packet to send [08:34:29]OFD Sender: No OFD packet to send [08:34:34]OFD Sender: No OFD packet to send [08:34:39]OFD Sender: No OFD packet to send [08:34:44]OFD Sender: No OFD packet to send [08:34:49]OFD Sender: No OFD packet to send [08:34:54]OFD Sender: No OFD packet to send [08:34:59]OFD Sender: No OFD packet to send [08:34:59]accept exits with 9 [08:34:59]New connection [08:34:59]New thread 3067194724 created [08:34:59]Thread 3067338084 joined [08:34:59]Waiting for new connection... [08:34:59] Sock 9.Parse request [08:34:59]Sock 9.Check first char [08:34:59]Sock 9.First char is OK [08:34:59]request: POST /json_proto HTTP/1.0 [08:34:59]Method: POST [08:34:59]URL: /json_proto [08:34:59]Method is POST - this is cgi request [08:34:59]url: /json_proto [08:34:59]query_string will be loaded in cgi processing [08:34:59]execute_cgi json_proto POST (null) [08:34:59]execute_cgi path=json_proto method=POST [08:34:59]POST find Content-Length [08:34:59]Host: 172.17.45.7:8080 [08:34:59]Content-Length: 674 [08:34:59]Content-Type: application/json [08:34:59] [08:34:59]POST finish read [08:34:59]Found Content-Length = 674 [08:34:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:59]execute_script... [08:34:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:59]POST & json_proto [08:34:59]process_json_proto [08:34:59]json parsed OK: [08:34:59]protocol is kg_v1.0 [08:34:59]action value=close_receipt [08:34:59]process_action close_receipt [08:34:59]cmd_close_receipt [08:34:59]MH_GetDate [08:34:59]Write to MH i2c: F0 00 00 61 0F 5F [08:34:59]Write i2c OK [08:34:59]MH_I2C_Read... [08:34:59]Read from MH i2c: F0 [08:34:59]MH_I2C_Read... [08:34:59]Read from MH i2c: F0 09 00 [08:34:59]MH_I2C_Read... [08:34:59]Read from MH i2c: F0 09 00 61 0F 00 35 F7 A9 66 90 0F 3E 66 E6 [08:34:59]GetLastDocTimeStamp 1722414542 [08:34:59]current date 1722414901 [08:34:59]FM_GetShiftState [08:34:59]SAM_PROTO_GetShiftState [08:34:59]wFMCommunicate request_size=4 [08:34:59]MH_SAM_APDU [08:34:59]CAPDU: 80 13 01 00 [08:34:59]Write to MH i2c: E2 08 00 62 0F 80 13 01 00 00 00 00 00 EE [08:34:59]Write i2c OK [08:34:59]MH_I2C_Read... [08:34:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:59]Read from MH i2c: E2 [08:34:59]MH_I2C_Read... [08:34:59]Read from MH i2c: E2 0E 00 [08:34:59]MH_I2C_Read... [08:34:59]Read from MH i2c: E2 0E 00 62 0F 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 86 [08:34:59]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [08:34:59]wFMCommunicate OK [08:34:59]SAM_PROTO_GetShiftState done [08:34:59]FM_GetShiftState done [08:34:59]opened in 1722384637 [08:34:59]opened+sec_in_day 1722471037 [08:34:59]quantity*price = 50063 [08:34:59]sum+1 = 50064 [08:34:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 61 31.07.2024 08:35 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119330 ФПД: 199809146962569 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T083501&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119330&fm=199809146962569&tin=02508201610067®Number=0000000000092660&sum=50000 [08:35:00]StoreToDocumentArchive [08:35:00]shift 436 fd 119330 [08:35:00]save to /storage/0436/doc_00119330 [08:35:00]save last doc name /storage/0436/doc_00119330 to /storage/kkm_last_doc_name [08:35:00]save OK [08:35:00]Clear old archive folders... [08:35:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:35:00]tlvbuf is 00B2F2A0 [08:35:00]SAM_PROTO_ClearQueue [08:35:00]wFMCommunicate request_size=4 [08:35:00]MH_SAM_APDU [08:35:00]CAPDU: 80 09 00 00 [08:35:00]Write to MH i2c: E2 08 00 6F 0F 80 09 00 00 00 00 00 00 F0 [08:35:00]Write i2c OK [08:35:00]MH_I2C_Read... [08:35:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:35:00]Read from MH i2c: E2 [08:35:00]MH_I2C_Read... [08:35:00]Read from MH i2c: E2 03 00 [08:35:00]MH_I2C_Read... [08:35:00]Read from MH i2c: E2 03 00 6F 0F 00 90 00 F2 [08:35:00]RAPDU: 90 00 [08:35:00]wFMCommunicate OK [08:35:00]SAM_PROTO_ClearQueue done [08:35:00]KKMCreateOFDPacket [08:35:00]OFDProtocolAddRootSTLVToBuf [08:35:00]FM_MakeSignedData [08:35:00]FM_MakeSignedData [08:35:00]SAM_PROTO_SignData [08:35:00]wFMCommunicate request_size=4 [08:35:00]MH_SAM_APDU [08:35:00]CAPDU: 80 0D 01 02 [08:35:00]Write to MH i2c: E2 08 00 70 0F 80 0D 01 02 00 00 00 00 F8 [08:35:00]Write i2c OK [08:35:00]MH_I2C_Read... [08:35:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:35:00]Read from MH i2c: E2 [08:35:00]MH_I2C_Read... [08:35:00]Read from MH i2c: E2 03 00 [08:35:00]MH_I2C_Read... [08:35:00]Read from MH i2c: E2 03 00 70 0F 00 90 00 F3 [08:35:00]RAPDU: 90 00 [08:35:00]wFMCommunicate OK [08:35:00]wFMCommunicate request_size=255 [08:35:00]MH_SAM_APDU [08:35:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 35 F7 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 22 D2 01 00 35 04 06 00 B5 B9 B1 3A [08:35:00]Write to MH i2c: E2 02 01 71 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 35 F7 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 22 D2 01 00 35 04 06 00 B5 B9 B1 3A 00 00 8B [08:35:00]Write i2c OK [08:35:00]MH_I2C_Read... [08:35:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:01]Read from MH i2c: E2 [08:35:01]MH_I2C_Read... [08:35:01]Read from MH i2c: E2 03 00 [08:35:01]MH_I2C_Read... [08:35:01]Read from MH i2c: E2 03 00 71 0F 00 90 00 F4 [08:35:01]RAPDU: 90 00 [08:35:01]wFMCommunicate OK [08:35:01]wFMCommunicate request_size=7 [08:35:01]MH_SAM_APDU [08:35:01]CAPDU: 80 0D 02 02 02 42 89 [08:35:01]Write to MH i2c: E2 0A 00 72 0F 80 0D 02 02 02 00 42 89 00 00 CA [08:35:01]Write i2c OK [08:35:01]MH_I2C_Read... [08:35:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:01]Read from MH i2c: E2 [08:35:01]MH_I2C_Read... [08:35:01]Read from MH i2c: E2 03 00 [08:35:01]MH_I2C_Read... [08:35:01]Read from MH i2c: E2 03 00 72 0F 00 90 00 F5 [08:35:01]RAPDU: 90 00 [08:35:01]wFMCommunicate OK [08:35:01]wFMCommunicate request_size=4 [08:35:01]MH_SAM_APDU [08:35:01]CAPDU: 80 0D 03 02 [08:35:01]Write to MH i2c: E2 08 00 73 0F 80 0D 03 02 00 00 00 00 FD [08:35:01]Write i2c OK [08:35:01]MH_I2C_Read... [08:35:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:35:01]Read from MH i2c: E2 [08:35:01]MH_I2C_Read... [08:35:01]Read from MH i2c: E2 0B 00 [08:35:01]MH_I2C_Read... [08:35:01]Read from MH i2c: E2 0B 00 73 0F 00 95 B3 25 A1 BE 8C 76 20 90 00 EC [08:35:01]RAPDU: 95 B3 25 A1 BE 8C 76 20 90 00 [08:35:01]wFMCommunicate OK [08:35:01]SAM_PROTO_SignData done [08:35:01]FM_MakeSignedData done [08:35:01]CreateOFDProtocolMessage [08:35:01]wFMCommunicate request_size=4 [08:35:01]MH_SAM_APDU [08:35:01]CAPDU: 80 11 00 00 [08:35:01]Write to MH i2c: E2 08 00 74 0F 80 11 00 00 00 00 00 00 FD [08:35:01]Write i2c OK [08:35:01]MH_I2C_Read... [08:35:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:01]Read from MH i2c: E2 [08:35:01]MH_I2C_Read... [08:35:01]Read from MH i2c: E2 17 00 [08:35:01]MH_I2C_Read... [08:35:01]Read from MH i2c: E2 17 00 74 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 58 [08:35:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:35:01]wFMCommunicate OK [08:35:01]CreateOFDProtocolMessage done [08:35:01]OFDSenderStorePacket 119330 [08:35:01]StoreOFDPacket docnum=119330 [08:35:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 A9 F2 04 01 5C 89 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 35 F7 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 22 D2 01 00 35 04 06 00 B5 B9 B1 3A 42 89 95 B3 25 A1 BE 8C 76 20 [08:35:01]CheckFolder [08:35:01]dirname=/storage/ofd_packets [08:35:01]CheckFolder done [08:35:01]ProducePacketName [08:35:01]name=ofd_packets/00119330 [08:35:01]NVStorageSaveData ofd_packets/00119330 [08:35:01]File name is /storage/ofd_packets/00119330 [08:35:01]Write 298 bytes [08:35:01]NVStorageSaveData done [08:35:01]OFDSenderStorePacket done [08:35:01]KKMCreateOFDPacket done [08:35:01]NVStorageSaveData kkm_last_timestamp [08:35:01]File name is /storage/kkm_last_timestamp [08:35:01]Write 4 bytes [08:35:01]NVStorageSaveData done [08:35:01]ExternCall_PrintAddStr [08:35:01]wPrintStart [08:35:01]Write to MH i2c: 01 00 00 75 0F 84 [08:35:01]Write i2c OK [08:35:01]MH_I2C_Read... [08:35:01]Read from MH i2c: 01 [08:35:01]MH_I2C_Read... [08:35:01]Read from MH i2c: 01 07 00 [08:35:01]MH_I2C_Read... [08:35:01]Read from MH i2c: 01 07 00 75 0F 00 00 00 00 00 FF 0F 99 [08:35:01]RasterBufferAndPrint [08:35:01]line Счет N : (1)950256 [08:35:01]line ИНН: 02508201610067 [08:35:01]line Контрольно-Кассовый Чек [08:35:01]line ПРОДАЖА [08:35:01]line ТРК (МРК, ГНК) : 34 [08:35:01]line Товар: 2710194800 [08:35:01]line ДТ-К-5 [08:35:01]line 6.570 * 76.20 [08:35:01]line = 500.63 [08:35:01]line НДС 12% НСП 1% [08:35:01]line > о реализуемом товаре [08:35:01]line ОКРУГЛЕНИЕ: -0.63 [08:35:01]line ИТОГО: 500.00 [08:35:01]line Внесено: 500.00 [08:35:01]line СДАЧА: 0.00 [08:35:01]line НСП 1% : 4.43 [08:35:01]line НДС 12% : 53.16 [08:35:01]line Наличными: 500.00 [08:35:01]line Безнал.: 0.00 [08:35:01]line Место: АЗС № 134 "Партнер Нефть" [08:35:01]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:35:01]line СНО: Общий режим [08:35:01]line Чек 61 31.07.2024 08:35 [08:35:01]line Смена: 436 ФФД: 1.0 [08:35:01]line ЗНМ: 0300000044 [08:35:01]line РНМ: 0000000000092660 [08:35:01]line Версия ККМ: 001 [08:35:01]line ФМ: 0000000000874939 [08:35:01]line ФД: 119330 [08:35:01]line ФПД: 199809146962569 [08:35:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T083501&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119330&fm=199809146962569&tin=02508201610067®Number=0000000000092660&sum=50000 [08:35:01]OFD Sender: Processing packet 119330 [packets to send 86, broken 85] [08:35:01]ProducePacketName [08:35:01]name=ofd_packets/00119330 [08:35:01]OFD Sender: To server: pG, [08:35:01]CommunicateWithHost lk.salyk.kg:30040 [08:35:01]ConnectInit lk.salyk.kg [08:35:01]written 0, free lines is 4095 [08:35:01]Connected sock=10 [08:35:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 A9 F2 04 01 5C 89 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 35 F7 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 22 D2 01 00 35 04 06 00 B5 B9 B1 3A 42 89 95 B3 25 A1 BE 8C 76 20 [08:35:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 86 8E 47 00 4B 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 22 D2 01 00 F4 03 04 00 BE A4 A9 66 B6 04 01 00 00 23 1F 2B 76 3D 51 E3 60 [08:35:01]CommunicateWithHost err = 0 [08:35:01]CheckOFDResponse [08:35:01]1017 (14) - 77093643461234 [08:35:01]1041 (16) - 0000000000874939 [08:35:01]1040 (4) - 119330 [08:35:01]1012 (4) - 31.07.2024 02:43 [08:35:01]1206 (1) - 0 [08:35:01]OFD Sender: Remove packet 119330 [08:35:01]ProducePacketName [08:35:01]name=ofd_packets/00119330 [08:35:01]NVStorageDeleteData [08:35:02]Write to MH i2c: 01 00 00 9F 0F AE [08:35:02]Write i2c OK [08:35:02]MH_I2C_Read... [08:35:02]Read from MH i2c: 01 [08:35:02]MH_I2C_Read... [08:35:02]Read from MH i2c: 01 07 00 [08:35:02]MH_I2C_Read... [08:35:02]Read from MH i2c: 01 07 00 9F 0F 00 00 00 00 00 DD 0C 9E [08:35:02]RasterBufferAndPrint [08:35:02]line [08:35:02]line [08:35:02]line [08:35:02]line [08:35:02]line [08:35:02]written 0, free lines is 3299 [08:35:02]MH_Cut [08:35:02]Write to MH i2c: D1 01 00 A6 0F 01 87 [08:35:02]Write i2c OK [08:35:02]MH_I2C_Read... [08:35:02]Read from MH i2c: D1 [08:35:02]MH_I2C_Read... [08:35:02]Read from MH i2c: D1 01 00 [08:35:02]MH_I2C_Read... [08:35:02]Read from MH i2c: D1 01 00 A6 0F 00 86 [08:35:02]Write to MH i2c: 01 00 00 A7 0F B6 [08:35:02]Write i2c OK [08:35:02]MH_I2C_Read... [08:35:02]OFD Sender: No OFD packet to send [08:35:02]*** Cut start [08:35:02]*** Partial cut [08:35:02]*** CUTSNS_PIN = 1 [08:35:02]*** CUTSNS_PIN = 0 [08:35:03]*** Brake cut motor [08:35:03]Read from MH i2c: 01 [08:35:03]MH_I2C_Read... [08:35:03]*** Stop cut motor [08:35:03]*** Cut end [08:35:03]Read from MH i2c: 01 07 00 [08:35:03]MH_I2C_Read... [08:35:03]Read from MH i2c: 01 07 00 A7 0F 00 00 00 00 00 FF 0F CB [08:35:03]process_action close_receipt done [08:35:03]requested_data is exist [08:35:03]produce_requested_data [08:35:03]requested_item fm.sn is exist - process it [08:35:03]wFMCommunicate request_size=4 [08:35:03]MH_SAM_APDU [08:35:03]CAPDU: 80 11 00 00 [08:35:03]Write to MH i2c: E2 08 00 A8 0F 80 11 00 00 00 00 00 00 31 [08:35:03]Write i2c OK [08:35:03]MH_I2C_Read... [08:35:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:03]Read from MH i2c: E2 [08:35:03]MH_I2C_Read... [08:35:03]Read from MH i2c: E2 17 00 [08:35:03]MH_I2C_Read... [08:35:03]Read from MH i2c: E2 17 00 A8 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8C [08:35:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:35:03]wFMCommunicate OK [08:35:03]requested_item fd.num is exist - process it [08:35:03]SAM_PROTO_GetFieldsCounters [08:35:03]wFMCommunicate request_size=4 [08:35:03]MH_SAM_APDU [08:35:03]CAPDU: 80 13 00 00 [08:35:03]Write to MH i2c: E2 08 00 A9 0F 80 13 00 00 00 00 00 00 34 [08:35:03]Write i2c OK [08:35:03]MH_I2C_Read... [08:35:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:35:03]Read from MH i2c: E2 [08:35:03]MH_I2C_Read... [08:35:03]Read from MH i2c: E2 62 00 [08:35:03]MH_I2C_Read... [08:35:03]Read from MH i2c: E2 62 00 A9 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 22 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [08:35:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 22 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:35:03]wFMCommunicate OK [08:35:03]SAM_PROTO_GetFieldsCounters done [08:35:03]requested_item shift.num is exist - process it [08:35:03]requested_item shift.opened is exist - process it [08:35:03]req_shift_opened [08:35:03]FM_GetShiftState [08:35:03]SAM_PROTO_GetShiftState [08:35:03]wFMCommunicate request_size=4 [08:35:03]MH_SAM_APDU [08:35:03]CAPDU: 80 13 01 00 [08:35:03]Write to MH i2c: E2 08 00 AA 0F 80 13 01 00 00 00 00 00 36 [08:35:03]Write i2c OK [08:35:03]MH_I2C_Read... [08:35:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:03]Read from MH i2c: E2 [08:35:03]MH_I2C_Read... [08:35:03]Read from MH i2c: E2 0E 00 [08:35:03]MH_I2C_Read... [08:35:03]Read from MH i2c: E2 0E 00 AA 0F 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 CE [08:35:03]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [08:35:03]wFMCommunicate OK [08:35:03]SAM_PROTO_GetShiftState done [08:35:03]FM_GetShiftState done [08:35:03]req_shift_opened done [08:35:03]requested_item shift.open_date is exist - process it [08:35:03]req_shift_open_date [08:35:03]req_shift_open_date done [08:35:03]produce_requested_data done [08:35:03]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119330,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [08:35:03]process_action_free close_receipt [08:35:03]json_value_free [08:35:03]json_value_free done [08:35:03]process_json_proto returns [08:35:03]Send response to host [08:35:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119330,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [08:35:03]free response buf [08:35:03]execute_script done [08:35:03]execute_script returns [08:35:03]free content buf [08:35:03]Sock 9.Close socket [08:35:03]Sock 9.Thread stoped [08:35:07]OFD Sender: No OFD packet to send [08:35:12]OFD Sender: No OFD packet to send [08:35:17]OFD Sender: No OFD packet to send [08:35:22]OFD Sender: No OFD packet to send [08:35:27]OFD Sender: No OFD packet to send [08:35:32]OFD Sender: No OFD packet to send [08:35:37]OFD Sender: No OFD packet to send [08:35:42]OFD Sender: No OFD packet to send [08:35:47]OFD Sender: No OFD packet to send [08:35:52]OFD Sender: No OFD packet to send [08:35:57]OFD Sender: No OFD packet to send [08:36:02]OFD Sender: No OFD packet to send [08:36:07]OFD Sender: No OFD packet to send [08:36:12]OFD Sender: No OFD packet to send [08:36:17]OFD Sender: No OFD packet to send [08:36:22]OFD Sender: No OFD packet to send [08:36:27]OFD Sender: No OFD packet to send [08:36:32]OFD Sender: No OFD packet to send [08:36:37]OFD Sender: No OFD packet to send [08:36:42]OFD Sender: No OFD packet to send [08:36:47]OFD Sender: No OFD packet to send [08:36:52]OFD Sender: No OFD packet to send [08:36:57]OFD Sender: No OFD packet to send [08:37:02]OFD Sender: No OFD packet to send [08:37:07]OFD Sender: No OFD packet to send [08:37:12]OFD Sender: No OFD packet to send [08:37:17]OFD Sender: No OFD packet to send [08:37:22]OFD Sender: No OFD packet to send [08:37:27]OFD Sender: No OFD packet to send [08:37:32]OFD Sender: No OFD packet to send [08:37:37]OFD Sender: No OFD packet to send [08:37:42]OFD Sender: No OFD packet to send [08:37:47]OFD Sender: No OFD packet to send [08:37:52]OFD Sender: No OFD packet to send [08:37:57]OFD Sender: No OFD packet to send [08:38:02]OFD Sender: No OFD packet to send [08:38:07]OFD Sender: No OFD packet to send [08:38:11]accept exits with 8 [08:38:11]New connection [08:38:11]New thread 3067338084 created [08:38:11]Thread 3067194724 joined [08:38:11]Waiting for new connection... [08:38:11] Sock 8.Parse request [08:38:11]Sock 8.Check first char [08:38:11]Sock 8.First char is OK [08:38:11]request: POST /json_proto HTTP/1.0 [08:38:11]Method: POST [08:38:11]URL: /json_proto [08:38:11]Method is POST - this is cgi request [08:38:11]url: /json_proto [08:38:11]query_string will be loaded in cgi processing [08:38:11]execute_cgi json_proto POST (null) [08:38:11]execute_cgi path=json_proto method=POST [08:38:11]POST find Content-Length [08:38:11]Host: 172.17.45.7:8080 [08:38:11]Content-Length: 678 [08:38:11]Content-Type: application/json [08:38:11] [08:38:11]POST finish read [08:38:11]Found Content-Length = 678 [08:38:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 13.280, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:11]execute_script... [08:38: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)950257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 13.280, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:11]POST & json_proto [08:38:11]process_json_proto [08:38:11]json parsed OK: [08:38:11]protocol is kg_v1.0 [08:38:11]action value=close_receipt [08:38:11]process_action close_receipt [08:38:11]cmd_close_receipt [08:38:11]MH_GetDate [08:38:11]Write to MH i2c: F0 00 00 AB 0F A9 [08:38:11]Write i2c OK [08:38:11]MH_I2C_Read... [08:38:11]Read from MH i2c: F0 [08:38:11]MH_I2C_Read... [08:38:11]Read from MH i2c: F0 09 00 [08:38:11]MH_I2C_Read... [08:38:11]Read from MH i2c: F0 09 00 AB 0F 00 F4 F7 A9 66 90 0F 3E 66 EF [08:38:11]GetLastDocTimeStamp 1722414901 [08:38:11]current date 1722415092 [08:38:11]FM_GetShiftState [08:38:11]SAM_PROTO_GetShiftState [08:38:11]wFMCommunicate request_size=4 [08:38:11]MH_SAM_APDU [08:38:11]CAPDU: 80 13 01 00 [08:38:11]Write to MH i2c: E2 08 00 AC 0F 80 13 01 00 00 00 00 00 38 [08:38:11]Write i2c OK [08:38:11]MH_I2C_Read... [08:38:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:11]Read from MH i2c: E2 [08:38:11]MH_I2C_Read... [08:38:11]Read from MH i2c: E2 0E 00 [08:38:11]MH_I2C_Read... [08:38:11]Read from MH i2c: E2 0E 00 AC 0F 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 D0 [08:38:11]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [08:38:11]wFMCommunicate OK [08:38:11]SAM_PROTO_GetShiftState done [08:38:11]FM_GetShiftState done [08:38:11]opened in 1722384637 [08:38:11]opened+sec_in_day 1722471037 [08:38:11]quantity*price = 90038 [08:38:11]sum+1 = 90039 [08:38:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 62 31.07.2024 08:38 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119331 ФПД: 137232608631796 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T083812&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119331&fm=137232608631796&tin=02508201610067®Number=0000000000092660&sum=90000 [08:38:12]StoreToDocumentArchive [08:38:12]shift 436 fd 119331 [08:38:12]save to /storage/0436/doc_00119331 [08:38:12]save last doc name /storage/0436/doc_00119331 to /storage/kkm_last_doc_name [08:38:12]save OK [08:38:12]Clear old archive folders... [08:38:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:38:12]tlvbuf is B6F064C0 [08:38:12]SAM_PROTO_ClearQueue [08:38:12]wFMCommunicate request_size=4 [08:38:12]MH_SAM_APDU [08:38:12]CAPDU: 80 09 00 00 [08:38:12]Write to MH i2c: E2 08 00 B9 0F 80 09 00 00 00 00 00 00 3A [08:38:12]Write i2c OK [08:38:12]MH_I2C_Read... [08:38:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:38:12]Read from MH i2c: E2 [08:38:12]MH_I2C_Read... [08:38:12]Read from MH i2c: E2 03 00 [08:38:12]MH_I2C_Read... [08:38:12]Read from MH i2c: E2 03 00 B9 0F 00 90 00 3C [08:38:12]RAPDU: 90 00 [08:38:12]wFMCommunicate OK [08:38:12]SAM_PROTO_ClearQueue done [08:38:12]KKMCreateOFDPacket [08:38:12]OFDProtocolAddRootSTLVToBuf [08:38:12]FM_MakeSignedData [08:38:12]FM_MakeSignedData [08:38:12]SAM_PROTO_SignData [08:38:12]wFMCommunicate request_size=4 [08:38:12]MH_SAM_APDU [08:38:12]CAPDU: 80 0D 01 02 [08:38:12]Write to MH i2c: E2 08 00 BA 0F 80 0D 01 02 00 00 00 00 42 [08:38:12]Write i2c OK [08:38:12]MH_I2C_Read... [08:38:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:38:12]Read from MH i2c: E2 [08:38:12]MH_I2C_Read... [08:38:12]Read from MH i2c: E2 03 00 [08:38:12]MH_I2C_Read... [08:38:12]Read from MH i2c: E2 03 00 BA 0F 00 90 00 3D [08:38:12]RAPDU: 90 00 [08:38:12]wFMCommunicate OK [08:38:12]wFMCommunicate request_size=255 [08:38:12]MH_SAM_APDU [08:38:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 F4 F7 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 23 D2 01 00 35 04 06 00 7C [08:38:12]Write to MH i2c: E2 02 01 BB 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 F4 F7 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 23 D2 01 00 35 04 06 00 7C 00 00 EE [08:38:12]Write i2c OK [08:38:12]MH_I2C_Read... [08:38:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:12]Read from MH i2c: E2 [08:38:12]MH_I2C_Read... [08:38:12]Read from MH i2c: E2 03 00 [08:38:12]MH_I2C_Read... [08:38:12]Read from MH i2c: E2 03 00 BB 0F 00 90 00 3E [08:38:12]RAPDU: 90 00 [08:38:12]wFMCommunicate OK [08:38:12]wFMCommunicate request_size=10 [08:38:12]MH_SAM_APDU [08:38:12]CAPDU: 80 0D 02 02 05 CF F4 E3 9B F4 [08:38:12]Write to MH i2c: E2 0D 00 BC 0F 80 0D 02 02 05 00 CF F4 E3 9B F4 00 00 84 [08:38:12]Write i2c OK [08:38:12]MH_I2C_Read... [08:38:12]OFD Sender: No OFD packet to send [08:38:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:12]Read from MH i2c: E2 [08:38:12]MH_I2C_Read... [08:38:12]Read from MH i2c: E2 03 00 [08:38:12]MH_I2C_Read... [08:38:12]Read from MH i2c: E2 03 00 BC 0F 00 90 00 3F [08:38:12]RAPDU: 90 00 [08:38:12]wFMCommunicate OK [08:38:12]wFMCommunicate request_size=4 [08:38:12]MH_SAM_APDU [08:38:12]CAPDU: 80 0D 03 02 [08:38:12]Write to MH i2c: E2 08 00 BD 0F 80 0D 03 02 00 00 00 00 47 [08:38:12]Write i2c OK [08:38:12]MH_I2C_Read... [08:38:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:38:12]Read from MH i2c: E2 [08:38:12]MH_I2C_Read... [08:38:12]Read from MH i2c: E2 0B 00 [08:38:12]MH_I2C_Read... [08:38:12]Read from MH i2c: E2 0B 00 BD 0F 00 5A B9 76 79 4C 5C D9 89 90 00 54 [08:38:12]RAPDU: 5A B9 76 79 4C 5C D9 89 90 00 [08:38:12]wFMCommunicate OK [08:38:12]SAM_PROTO_SignData done [08:38:12]FM_MakeSignedData done [08:38:12]CreateOFDProtocolMessage [08:38:12]wFMCommunicate request_size=4 [08:38:12]MH_SAM_APDU [08:38:12]CAPDU: 80 11 00 00 [08:38:12]Write to MH i2c: E2 08 00 BE 0F 80 11 00 00 00 00 00 00 47 [08:38:12]Write i2c OK [08:38:12]MH_I2C_Read... [08:38:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:12]Read from MH i2c: E2 [08:38:12]MH_I2C_Read... [08:38:12]Read from MH i2c: E2 17 00 [08:38:12]MH_I2C_Read... [08:38:12]Read from MH i2c: E2 17 00 BE 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A2 [08:38:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:38:12]wFMCommunicate OK [08:38:12]CreateOFDProtocolMessage done [08:38:12]OFDSenderStorePacket 119331 [08:38:12]StoreOFDPacket docnum=119331 [08:38:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 26 74 07 01 8C 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 F4 F7 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 23 D2 01 00 35 04 06 00 7C CF F4 E3 9B F4 5A B9 76 79 4C 5C D9 89 [08:38:12]CheckFolder [08:38:12]dirname=/storage/ofd_packets [08:38:12]CheckFolder done [08:38:12]ProducePacketName [08:38:12]name=ofd_packets/00119331 [08:38:12]NVStorageSaveData ofd_packets/00119331 [08:38:12]File name is /storage/ofd_packets/00119331 [08:38:12]Write 301 bytes [08:38:12]NVStorageSaveData done [08:38:12]OFDSenderStorePacket done [08:38:12]KKMCreateOFDPacket done [08:38:12]NVStorageSaveData kkm_last_timestamp [08:38:12]File name is /storage/kkm_last_timestamp [08:38:12]Write 4 bytes [08:38:12]NVStorageSaveData done [08:38:12]ExternCall_PrintAddStr [08:38:12]wPrintStart [08:38:12]Write to MH i2c: 01 00 00 BF 0F CE [08:38:12]Write i2c OK [08:38:12]MH_I2C_Read... [08:38:12]Read from MH i2c: 01 [08:38:12]MH_I2C_Read... [08:38:12]Read from MH i2c: 01 07 00 [08:38:12]MH_I2C_Read... [08:38:12]Read from MH i2c: 01 07 00 BF 0F 00 00 00 00 00 FF 0F E3 [08:38:12]RasterBufferAndPrint [08:38:12]line Счет N : (1)950257 [08:38:12]line ИНН: 02508201610067 [08:38:12]line Контрольно-Кассовый Чек [08:38:12]line ПРОДАЖА [08:38:12]line ТРК (МРК, ГНК) : 51 [08:38:12]line Товар: 2710124130 [08:38:12]line Аи-92-К-4 [08:38:12]line 13.280 * 67.80 [08:38:12]line = 900.38 [08:38:12]line НДС 12% НСП 1% [08:38:12]line > о реализуемом товаре [08:38:12]line ОКРУГЛЕНИЕ: -0.38 [08:38:12]line ИТОГО: 900.00 [08:38:12]line Внесено: 900.00 [08:38:12]line СДАЧА: 0.00 [08:38:12]line НСП 1% : 7.97 [08:38:12]line НДС 12% : 95.62 [08:38:12]line Наличными: 900.00 [08:38:12]line Безнал.: 0.00 [08:38:12]line Место: АЗС № 134 "Партнер Нефть" [08:38:12]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:38:12]line СНО: Общий режим [08:38:12]line Чек 62 31.07.2024 08:38 [08:38:12]line Смена: 436 ФФД: 1.0 [08:38:12]line ЗНМ: 0300000044 [08:38:12]line РНМ: 0000000000092660 [08:38:12]line Версия ККМ: 001 [08:38:12]line ФМ: 0000000000874939 [08:38:12]line ФД: 119331 [08:38:12]line ФПД: 137232608631796 [08:38:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T083812&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119331&fm=137232608631796&tin=02508201610067®Number=0000000000092660&sum=90000 [08:38:13]OFD Sender: Processing packet 119331 [packets to send 86, broken 85] [08:38:13]ProducePacketName [08:38:13]name=ofd_packets/00119331 [08:38:13]OFD Sender: To server: pG, [08:38:13]CommunicateWithHost lk.salyk.kg:30040 [08:38:13]ConnectInit lk.salyk.kg [08:38:13]written 0, free lines is 4095 [08:38:13]Connected sock=10 [08:38:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 26 74 07 01 8C 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 F4 F7 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 23 D2 01 00 35 04 06 00 7C CF F4 E3 9B F4 5A B9 76 79 4C 5C D9 89 [08:38:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 91 22 47 00 C7 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 23 D2 01 00 F4 03 04 00 7E A5 A9 66 B6 04 01 00 00 D3 FD F2 D9 78 E0 58 32 [08:38:13]CommunicateWithHost err = 0 [08:38:13]CheckOFDResponse [08:38:13]1017 (14) - 77093643461234 [08:38:13]1041 (16) - 0000000000874939 [08:38:13]1040 (4) - 119331 [08:38:13]1012 (4) - 31.07.2024 02:46 [08:38:13]1206 (1) - 0 [08:38:13]OFD Sender: Remove packet 119331 [08:38:13]ProducePacketName [08:38:13]name=ofd_packets/00119331 [08:38:13]NVStorageDeleteData [08:38:13]Write to MH i2c: 01 00 00 E9 0F F8 [08:38:13]Write i2c OK [08:38:13]MH_I2C_Read... [08:38:13]Read from MH i2c: 01 [08:38:13]MH_I2C_Read... [08:38:13]Read from MH i2c: 01 07 00 [08:38:13]MH_I2C_Read... [08:38:13]Read from MH i2c: 01 07 00 E9 0F 00 00 00 00 00 E4 0C EF [08:38:13]RasterBufferAndPrint [08:38:13]line [08:38:13]line [08:38:13]line [08:38:13]line [08:38:13]line [08:38:13]written 0, free lines is 3306 [08:38:13]MH_Cut [08:38:13]Write to MH i2c: D1 01 00 F0 0F 01 D1 [08:38:13]Write i2c OK [08:38:13]MH_I2C_Read... [08:38:13]Read from MH i2c: D1 [08:38:13]MH_I2C_Read... [08:38:13]Read from MH i2c: D1 01 00 [08:38:13]MH_I2C_Read... [08:38:13]Read from MH i2c: D1 01 00 F0 0F 00 D0 [08:38:13]Write to MH i2c: 01 00 00 F1 0F 00 [08:38:13]Write i2c OK [08:38:13]MH_I2C_Read... [08:38:13]OFD Sender: No OFD packet to send [08:38:14]*** Cut start [08:38:14]*** Partial cut [08:38:14]*** CUTSNS_PIN = 1 [08:38:14]*** CUTSNS_PIN = 0 [08:38:14]*** Brake cut motor [08:38:14]Read from MH i2c: 01 [08:38:14]MH_I2C_Read... [08:38:14]*** Stop cut motor [08:38:14]*** Cut end [08:38:14]Read from MH i2c: 01 07 00 [08:38:14]MH_I2C_Read... [08:38:14]Read from MH i2c: 01 07 00 F1 0F 00 00 00 00 00 FF 0F 15 [08:38:14]process_action close_receipt done [08:38:14]requested_data is exist [08:38:14]produce_requested_data [08:38:14]requested_item fm.sn is exist - process it [08:38:14]wFMCommunicate request_size=4 [08:38:14]MH_SAM_APDU [08:38:14]CAPDU: 80 11 00 00 [08:38:14]Write to MH i2c: E2 08 00 F2 0F 80 11 00 00 00 00 00 00 7B [08:38:14]Write i2c OK [08:38:14]MH_I2C_Read... [08:38:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:15]Read from MH i2c: E2 [08:38:15]MH_I2C_Read... [08:38:15]Read from MH i2c: E2 17 00 [08:38:15]MH_I2C_Read... [08:38:15]Read from MH i2c: E2 17 00 F2 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D6 [08:38:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:38:15]wFMCommunicate OK [08:38:15]requested_item fd.num is exist - process it [08:38:15]SAM_PROTO_GetFieldsCounters [08:38:15]wFMCommunicate request_size=4 [08:38:15]MH_SAM_APDU [08:38:15]CAPDU: 80 13 00 00 [08:38:15]Write to MH i2c: E2 08 00 F3 0F 80 13 00 00 00 00 00 00 7E [08:38:15]Write i2c OK [08:38:15]MH_I2C_Read... [08:38:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:38:15]Read from MH i2c: E2 [08:38:15]MH_I2C_Read... [08:38:15]Read from MH i2c: E2 62 00 [08:38:15]MH_I2C_Read... [08:38:15]Read from MH i2c: E2 62 00 F3 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 23 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [08:38: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 23 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:38:15]wFMCommunicate OK [08:38:15]SAM_PROTO_GetFieldsCounters done [08:38:15]requested_item shift.num is exist - process it [08:38:15]requested_item shift.opened is exist - process it [08:38:15]req_shift_opened [08:38:15]FM_GetShiftState [08:38:15]SAM_PROTO_GetShiftState [08:38:15]wFMCommunicate request_size=4 [08:38:15]MH_SAM_APDU [08:38:15]CAPDU: 80 13 01 00 [08:38:15]Write to MH i2c: E2 08 00 F4 0F 80 13 01 00 00 00 00 00 80 [08:38:15]Write i2c OK [08:38:15]MH_I2C_Read... [08:38:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:15]Read from MH i2c: E2 [08:38:15]MH_I2C_Read... [08:38:15]Read from MH i2c: E2 0E 00 [08:38:15]MH_I2C_Read... [08:38:15]Read from MH i2c: E2 0E 00 F4 0F 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 18 [08:38:15]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [08:38:15]wFMCommunicate OK [08:38:15]SAM_PROTO_GetShiftState done [08:38:15]FM_GetShiftState done [08:38:15]req_shift_opened done [08:38:15]requested_item shift.open_date is exist - process it [08:38:15]req_shift_open_date [08:38:15]req_shift_open_date done [08:38:15]produce_requested_data done [08:38:15]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119331,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [08:38:15]process_action_free close_receipt [08:38:15]json_value_free [08:38:15]json_value_free done [08:38:15]process_json_proto returns [08:38:15]Send response to host [08:38:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119331,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [08:38:15]free response buf [08:38:15]execute_script done [08:38:15]execute_script returns [08:38:15]free content buf [08:38:15]Sock 8.Close socket [08:38:15]Sock 8.Thread stoped [08:38:16]accept exits with 9 [08:38:16]New connection [08:38:16]New thread 3067194724 created [08:38:16]Thread 3067338084 joined [08:38:16]Waiting for new connection... [08:38:16] Sock 9.Parse request [08:38:16]Sock 9.Check first char [08:38:16]Sock 9.First char is OK [08:38:16]request: POST /json_proto HTTP/1.0 [08:38:16]Method: POST [08:38:16]URL: /json_proto [08:38:16]Method is POST - this is cgi request [08:38:16]url: /json_proto [08:38:16]query_string will be loaded in cgi processing [08:38:16]execute_cgi json_proto POST (null) [08:38:16]execute_cgi path=json_proto method=POST [08:38:16]POST find Content-Length [08:38:16]Host: 172.17.45.7:8080 [08:38:16]Content-Length: 682 [08:38:16]Content-Type: application/json [08:38:16] [08:38:16]POST finish read [08:38:16]Found Content-Length = 682 [08:38:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:16]execute_script... [08:38:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:16]POST & json_proto [08:38:16]process_json_proto [08:38:16]json parsed OK: [08:38:16]protocol is kg_v1.0 [08:38:16]action value=close_receipt [08:38:16]process_action close_receipt [08:38:16]cmd_close_receipt [08:38:16]MH_GetDate [08:38:16]Write to MH i2c: F0 00 00 F5 0F F3 [08:38:16]Write i2c OK [08:38:16]MH_I2C_Read... [08:38:16]Read from MH i2c: F0 [08:38:16]MH_I2C_Read... [08:38:16]Read from MH i2c: F0 09 00 [08:38:16]MH_I2C_Read... [08:38:16]Read from MH i2c: F0 09 00 F5 0F 00 FA F7 A9 66 90 0F 3E 66 3F [08:38:16]GetLastDocTimeStamp 1722415092 [08:38:16]current date 1722415098 [08:38:16]FM_GetShiftState [08:38:16]SAM_PROTO_GetShiftState [08:38:16]wFMCommunicate request_size=4 [08:38:16]MH_SAM_APDU [08:38:16]CAPDU: 80 13 01 00 [08:38:16]Write to MH i2c: E2 08 00 F6 0F 80 13 01 00 00 00 00 00 82 [08:38:16]Write i2c OK [08:38:16]MH_I2C_Read... [08:38:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:16]Read from MH i2c: E2 [08:38:16]MH_I2C_Read... [08:38:16]Read from MH i2c: E2 0E 00 [08:38:16]MH_I2C_Read... [08:38:16]Read from MH i2c: E2 0E 00 F6 0F 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 1A [08:38:16]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [08:38:16]wFMCommunicate OK [08:38:16]SAM_PROTO_GetShiftState done [08:38:16]FM_GetShiftState done [08:38:16]opened in 1722384637 [08:38:16]opened+sec_in_day 1722471037 [08:38:16]quantity*price = 100005 [08:38:16]sum+1 = 100006 [08:38:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 63 31.07.2024 08:38 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119332 ФПД: 75257937322818 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T083818&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119332&fm=75257937322818&tin=02508201610067®Number=0000000000092660&sum=100000 [08:38:17]StoreToDocumentArchive [08:38:17]shift 436 fd 119332 [08:38:17]save to /storage/0436/doc_00119332 [08:38:17]save last doc name /storage/0436/doc_00119332 to /storage/kkm_last_doc_name [08:38:17]save OK [08:38:17]Clear old archive folders... [08:38:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:38:17]tlvbuf is 00B4B0D0 [08:38:17]SAM_PROTO_ClearQueue [08:38:17]wFMCommunicate request_size=4 [08:38:17]MH_SAM_APDU [08:38:17]CAPDU: 80 09 00 00 [08:38:17]Write to MH i2c: E2 08 00 03 10 80 09 00 00 00 00 00 00 85 [08:38:17]Write i2c OK [08:38:17]MH_I2C_Read... [08:38:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:38:17]Read from MH i2c: E2 [08:38:17]MH_I2C_Read... [08:38:17]Read from MH i2c: E2 03 00 [08:38:17]MH_I2C_Read... [08:38:17]Read from MH i2c: E2 03 00 03 10 00 90 00 87 [08:38:17]RAPDU: 90 00 [08:38:17]wFMCommunicate OK [08:38:17]SAM_PROTO_ClearQueue done [08:38:17]KKMCreateOFDPacket [08:38:17]OFDProtocolAddRootSTLVToBuf [08:38:17]FM_MakeSignedData [08:38:17]FM_MakeSignedData [08:38:17]SAM_PROTO_SignData [08:38:17]wFMCommunicate request_size=4 [08:38:17]MH_SAM_APDU [08:38:17]CAPDU: 80 0D 01 02 [08:38:17]Write to MH i2c: E2 08 00 04 10 80 0D 01 02 00 00 00 00 8D [08:38:17]Write i2c OK [08:38:17]MH_I2C_Read... [08:38:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:38:17]Read from MH i2c: E2 [08:38:17]MH_I2C_Read... [08:38:17]Read from MH i2c: E2 03 00 [08:38:17]MH_I2C_Read... [08:38:17]Read from MH i2c: E2 03 00 04 10 00 90 00 88 [08:38:17]RAPDU: 90 00 [08:38:17]wFMCommunicate OK [08:38:17]wFMCommunicate request_size=255 [08:38:17]MH_SAM_APDU [08:38:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 3F 00 00 00 F4 03 04 00 FA F7 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 24 D2 01 00 35 04 06 00 44 [08:38:17]Write to MH i2c: E2 02 01 05 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 3F 00 00 00 F4 03 04 00 FA F7 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 24 D2 01 00 35 04 06 00 44 00 00 CF [08:38:17]Write i2c OK [08:38:17]MH_I2C_Read... [08:38:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:18]Read from MH i2c: E2 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 03 00 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 03 00 05 10 00 90 00 89 [08:38:18]RAPDU: 90 00 [08:38:18]wFMCommunicate OK [08:38:18]wFMCommunicate request_size=10 [08:38:18]MH_SAM_APDU [08:38:18]CAPDU: 80 0D 02 02 05 72 5A 9E E3 42 [08:38:18]Write to MH i2c: E2 0D 00 06 10 80 0D 02 02 05 00 72 5A 9E E3 42 00 00 29 [08:38:18]Write i2c OK [08:38:18]MH_I2C_Read... [08:38:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:18]Read from MH i2c: E2 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 03 00 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 03 00 06 10 00 90 00 8A [08:38:18]RAPDU: 90 00 [08:38:18]wFMCommunicate OK [08:38:18]wFMCommunicate request_size=4 [08:38:18]MH_SAM_APDU [08:38:18]CAPDU: 80 0D 03 02 [08:38:18]Write to MH i2c: E2 08 00 07 10 80 0D 03 02 00 00 00 00 92 [08:38:18]Write i2c OK [08:38:18]MH_I2C_Read... [08:38:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:38:18]Read from MH i2c: E2 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 0B 00 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 0B 00 07 10 00 C9 64 46 67 75 5A 30 DC 90 00 48 [08:38:18]RAPDU: C9 64 46 67 75 5A 30 DC 90 00 [08:38:18]wFMCommunicate OK [08:38:18]SAM_PROTO_SignData done [08:38:18]FM_MakeSignedData done [08:38:18]CreateOFDProtocolMessage [08:38:18]wFMCommunicate request_size=4 [08:38:18]MH_SAM_APDU [08:38:18]CAPDU: 80 11 00 00 [08:38:18]Write to MH i2c: E2 08 00 08 10 80 11 00 00 00 00 00 00 92 [08:38:18]Write i2c OK [08:38:18]MH_I2C_Read... [08:38:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:18]Read from MH i2c: E2 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 17 00 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 17 00 08 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 ED [08:38:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:38:18]wFMCommunicate OK [08:38:18]CreateOFDProtocolMessage done [08:38:18]OFDSenderStorePacket 119332 [08:38:18]StoreOFDPacket docnum=119332 [08:38:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B6 8B 07 01 BB F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 3F 00 00 00 F4 03 04 00 FA F7 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 24 D2 01 00 35 04 06 00 44 72 5A 9E E3 42 C9 64 46 67 75 5A 30 DC [08:38:18]CheckFolder [08:38:18]dirname=/storage/ofd_packets [08:38:18]CheckFolder done [08:38:18]ProducePacketName [08:38:18]name=ofd_packets/00119332 [08:38:18]NVStorageSaveData ofd_packets/00119332 [08:38:18]File name is /storage/ofd_packets/00119332 [08:38:18]Write 301 bytes [08:38:18]NVStorageSaveData done [08:38:18]OFDSenderStorePacket done [08:38:18]KKMCreateOFDPacket done [08:38:18]NVStorageSaveData kkm_last_timestamp [08:38:18]File name is /storage/kkm_last_timestamp [08:38:18]Write 4 bytes [08:38:18]NVStorageSaveData done [08:38:18]ExternCall_PrintAddStr [08:38:18]wPrintStart [08:38:18]Write to MH i2c: 01 00 00 09 10 19 [08:38:18]OFD Sender: Processing packet 119332 [packets to send 86, broken 85] [08:38:18]ProducePacketName [08:38:18]name=ofd_packets/00119332 [08:38:18]OFD Sender: To server: pG, [08:38:18]CommunicateWithHost lk.salyk.kg:30040 [08:38:18]ConnectInit lk.salyk.kg [08:38:18]Write i2c OK [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: 01 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: 01 07 00 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: 01 07 00 09 10 00 00 00 00 00 FF 0F 2E [08:38:18]RasterBufferAndPrint [08:38:18]line Счет N : (1)950258 [08:38:18]line ИНН: 02508201610067 [08:38:18]line Контрольно-Кассовый Чек [08:38:18]line ПРОДАЖА [08:38:18]line ТРК (МРК, ГНК) : 41 [08:38:18]line Товар: 2710124130 [08:38:18]line Аи-92-К-4 [08:38:18]line 14.750 * 67.80 [08:38:18]line = 1000.05 [08:38:18]line НДС 12% НСП 1% [08:38:18]line > о реализуемом товаре [08:38:18]line ОКРУГЛЕНИЕ: -0.05 [08:38:18]line ИТОГО: 1000.00 [08:38:18]line Внесено: 1000.00 [08:38:18]line СДАЧА: 0.00 [08:38:18]line НСП 1% : 8.85 [08:38:18]line НДС 12% : 106.20 [08:38:18]line Наличными: 1000.00 [08:38:18]line Безнал.: 0.00 [08:38:18]line Место: АЗС № 134 "Партнер Нефть" [08:38:18]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:38:18]line СНО: Общий режим [08:38:18]line Чек 63 31.07.2024 08:38 [08:38:18]line Смена: 436 ФФД: 1.0 [08:38:18]line ЗНМ: 0300000044 [08:38:18]line РНМ: 0000000000092660 [08:38:18]line Версия ККМ: 001 [08:38:18]line ФМ: 0000000000874939 [08:38:18]line ФД: 119332 [08:38:18]line ФПД: 75257937322818 [08:38:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T083818&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119332&fm=75257937322818&tin=02508201610067®Number=0000000000092660&sum=100000 [08:38:18]written 0, free lines is 4095 [08:38:18]Connected sock=8 [08:38: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 39 33 39 0F 01 00 00 B6 8B 07 01 BB F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 3F 00 00 00 F4 03 04 00 FA F7 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 24 D2 01 00 35 04 06 00 44 72 5A 9E E3 42 C9 64 46 67 75 5A 30 DC [08:38:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 6B 63 47 00 F8 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 39 33 39 10 04 04 00 24 D2 01 00 F4 03 04 00 83 A5 A9 66 B6 04 01 00 00 59 36 32 9B DF CA 21 16 [08:38:18]CommunicateWithHost err = 0 [08:38:18]CheckOFDResponse [08:38:18]1017 (14) - 77093643461234 [08:38:18]1041 (16) - 0000000000874939 [08:38:18]1040 (4) - 119332 [08:38:18]1012 (4) - 31.07.2024 02:46 [08:38:18]1206 (1) - 0 [08:38:18]OFD Sender: Remove packet 119332 [08:38:18]ProducePacketName [08:38:18]name=ofd_packets/00119332 [08:38:18]NVStorageDeleteData [08:38:18]Write to MH i2c: 01 00 00 33 10 43 [08:38:18]Write i2c OK [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: 01 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: 01 07 00 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: 01 07 00 33 10 00 00 00 00 00 E0 0C 36 [08:38:18]RasterBufferAndPrint [08:38:18]line [08:38:18]line [08:38:18]line [08:38:18]line [08:38:18]line [08:38:18]written 0, free lines is 3307 [08:38:18]MH_Cut [08:38:18]Write to MH i2c: D1 01 00 3A 10 01 1C [08:38:18]Write i2c OK [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: D1 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: D1 01 00 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: D1 01 00 3A 10 00 1B [08:38:18]Write to MH i2c: 01 00 00 3B 10 4B [08:38:18]Write i2c OK [08:38:18]MH_I2C_Read... [08:38:19]OFD Sender: No OFD packet to send [08:38:19]*** Cut start [08:38:19]*** Partial cut [08:38:19]*** CUTSNS_PIN = 1 [08:38:19]*** CUTSNS_PIN = 0 [08:38:19]*** Brake cut motor [08:38:20]Read from MH i2c: 01 [08:38:20]MH_I2C_Read... [08:38:20]*** Stop cut motor [08:38:20]*** Cut end [08:38:20]Read from MH i2c: 01 07 00 [08:38:20]MH_I2C_Read... [08:38:20]Read from MH i2c: 01 07 00 3B 10 00 00 00 00 00 FF 0F 60 [08:38:20]process_action close_receipt done [08:38:20]requested_data is exist [08:38:20]produce_requested_data [08:38:20]requested_item fm.sn is exist - process it [08:38:20]wFMCommunicate request_size=4 [08:38:20]MH_SAM_APDU [08:38:20]CAPDU: 80 11 00 00 [08:38:20]Write to MH i2c: E2 08 00 3C 10 80 11 00 00 00 00 00 00 C6 [08:38:20]Write i2c OK [08:38:20]MH_I2C_Read... [08:38:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:20]Read from MH i2c: E2 [08:38:20]MH_I2C_Read... [08:38:20]Read from MH i2c: E2 17 00 [08:38:20]MH_I2C_Read... [08:38:20]Read from MH i2c: E2 17 00 3C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 21 [08:38:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:38:20]wFMCommunicate OK [08:38:20]requested_item fd.num is exist - process it [08:38:20]SAM_PROTO_GetFieldsCounters [08:38:20]wFMCommunicate request_size=4 [08:38:20]MH_SAM_APDU [08:38:20]CAPDU: 80 13 00 00 [08:38:20]Write to MH i2c: E2 08 00 3D 10 80 13 00 00 00 00 00 00 C9 [08:38:20]Write i2c OK [08:38:20]MH_I2C_Read... [08:38:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:38:20]Read from MH i2c: E2 [08:38:20]MH_I2C_Read... [08:38:20]Read from MH i2c: E2 62 00 [08:38:20]MH_I2C_Read... [08:38:20]Read from MH i2c: E2 62 00 3D 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 24 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [08:38:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 24 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:38:20]wFMCommunicate OK [08:38:20]SAM_PROTO_GetFieldsCounters done [08:38:20]requested_item shift.num is exist - process it [08:38:20]requested_item shift.opened is exist - process it [08:38:20]req_shift_opened [08:38:20]FM_GetShiftState [08:38:20]SAM_PROTO_GetShiftState [08:38:20]wFMCommunicate request_size=4 [08:38:20]MH_SAM_APDU [08:38:20]CAPDU: 80 13 01 00 [08:38:20]Write to MH i2c: E2 08 00 3E 10 80 13 01 00 00 00 00 00 CB [08:38:20]Write i2c OK [08:38:20]MH_I2C_Read... [08:38:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:20]Read from MH i2c: E2 [08:38:20]MH_I2C_Read... [08:38:20]Read from MH i2c: E2 0E 00 [08:38:20]MH_I2C_Read... [08:38:20]Read from MH i2c: E2 0E 00 3E 10 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 63 [08:38:20]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [08:38:20]wFMCommunicate OK [08:38:20]SAM_PROTO_GetShiftState done [08:38:20]FM_GetShiftState done [08:38:20]req_shift_opened done [08:38:20]requested_item shift.open_date is exist - process it [08:38:20]req_shift_open_date [08:38:20]req_shift_open_date done [08:38:20]produce_requested_data done [08:38:20]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119332,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [08:38:20]process_action_free close_receipt [08:38:20]json_value_free [08:38:20]json_value_free done [08:38:20]process_json_proto returns [08:38:20]Send response to host [08:38:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119332,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [08:38:20]free response buf [08:38:20]execute_script done [08:38:20]execute_script returns [08:38:20]free content buf [08:38:20]Sock 9.Close socket [08:38:20]Sock 9.Thread stoped [08:38:24]OFD Sender: No OFD packet to send [08:38:29]OFD Sender: No OFD packet to send [08:38:34]OFD Sender: No OFD packet to send [08:38:39]OFD Sender: No OFD packet to send [08:38:44]OFD Sender: No OFD packet to send [08:38:49]OFD Sender: No OFD packet to send [08:38:54]OFD Sender: No OFD packet to send [08:38:59]OFD Sender: No OFD packet to send [08:39:04]OFD Sender: No OFD packet to send [08:39:05]accept exits with 10 [08:39:05]New connection [08:39:05]New thread 3067338084 created [08:39:05]Thread 3067194724 joined [08:39:05]Waiting for new connection... [08:39:05] Sock 10.Parse request [08:39:05]Sock 10.Check first char [08:39:05]Sock 10.First char is OK [08:39:05]request: POST /json_proto HTTP/1.0 [08:39:05]Method: POST [08:39:05]URL: /json_proto [08:39:05]Method is POST - this is cgi request [08:39:05]url: /json_proto [08:39:05]query_string will be loaded in cgi processing [08:39:05]execute_cgi json_proto POST (null) [08:39:05]execute_cgi path=json_proto method=POST [08:39:05]POST find Content-Length [08:39:05]Host: 172.17.45.7:8080 [08:39:05]Content-Length: 682 [08:39:05]Content-Type: application/json [08:39:05] [08:39:05]POST finish read [08:39:05]Found Content-Length = 682 [08:39:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:39:05]execute_script... [08:39: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)950259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:39:05]POST & json_proto [08:39:05]process_json_proto [08:39:05]json parsed OK: [08:39:05]protocol is kg_v1.0 [08:39:05]action value=close_receipt [08:39:05]process_action close_receipt [08:39:05]cmd_close_receipt [08:39:05]MH_GetDate [08:39:05]Write to MH i2c: F0 00 00 3F 10 3E [08:39:05]Write i2c OK [08:39:05]MH_I2C_Read... [08:39:05]Read from MH i2c: F0 [08:39:05]MH_I2C_Read... [08:39:05]Read from MH i2c: F0 09 00 [08:39:05]MH_I2C_Read... [08:39:05]Read from MH i2c: F0 09 00 3F 10 00 2A F8 A9 66 90 0F 3E 66 BB [08:39:05]GetLastDocTimeStamp 1722415098 [08:39:05]current date 1722415146 [08:39:05]FM_GetShiftState [08:39:05]SAM_PROTO_GetShiftState [08:39:05]wFMCommunicate request_size=4 [08:39:05]MH_SAM_APDU [08:39:05]CAPDU: 80 13 01 00 [08:39:05]Write to MH i2c: E2 08 00 40 10 80 13 01 00 00 00 00 00 CD [08:39:05]Write i2c OK [08:39:05]MH_I2C_Read... [08:39:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:05]Read from MH i2c: E2 [08:39:05]MH_I2C_Read... [08:39:05]Read from MH i2c: E2 0E 00 [08:39:05]MH_I2C_Read... [08:39:05]Read from MH i2c: E2 0E 00 40 10 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 65 [08:39:05]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [08:39:05]wFMCommunicate OK [08:39:05]SAM_PROTO_GetShiftState done [08:39:05]FM_GetShiftState done [08:39:05]opened in 1722384637 [08:39:05]opened+sec_in_day 1722471037 [08:39:05]quantity*price = 100021 [08:39:05]sum+1 = 100023 [08:39:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 64 31.07.2024 08:39 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119333 ФПД: 230554794914732 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T083906&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119333&fm=230554794914732&tin=02508201610067®Number=0000000000092660&sum=100000 [08:39:06]StoreToDocumentArchive [08:39:06]shift 436 fd 119333 [08:39:06]save to /storage/0436/doc_00119333 [08:39:06]save last doc name /storage/0436/doc_00119333 to /storage/kkm_last_doc_name [08:39:06]save OK [08:39:06]Clear old archive folders... [08:39:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:39:06]tlvbuf is 00AD7470 [08:39:06]SAM_PROTO_ClearQueue [08:39:06]wFMCommunicate request_size=4 [08:39:06]MH_SAM_APDU [08:39:06]CAPDU: 80 09 00 00 [08:39:06]Write to MH i2c: E2 08 00 4D 10 80 09 00 00 00 00 00 00 CF [08:39:06]Write i2c OK [08:39:06]MH_I2C_Read... [08:39:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:39:06]Read from MH i2c: E2 [08:39:06]MH_I2C_Read... [08:39:06]Read from MH i2c: E2 03 00 [08:39:06]MH_I2C_Read... [08:39:06]Read from MH i2c: E2 03 00 4D 10 00 90 00 D1 [08:39:06]RAPDU: 90 00 [08:39:06]wFMCommunicate OK [08:39:06]SAM_PROTO_ClearQueue done [08:39:06]KKMCreateOFDPacket [08:39:06]OFDProtocolAddRootSTLVToBuf [08:39:06]FM_MakeSignedData [08:39:06]FM_MakeSignedData [08:39:06]SAM_PROTO_SignData [08:39:06]wFMCommunicate request_size=4 [08:39:06]MH_SAM_APDU [08:39:06]CAPDU: 80 0D 01 02 [08:39:06]Write to MH i2c: E2 08 00 4E 10 80 0D 01 02 00 00 00 00 D7 [08:39:06]Write i2c OK [08:39:06]MH_I2C_Read... [08:39:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:39:06]Read from MH i2c: E2 [08:39:06]MH_I2C_Read... [08:39:06]Read from MH i2c: E2 03 00 [08:39:06]MH_I2C_Read... [08:39:06]Read from MH i2c: E2 03 00 4E 10 00 90 00 D2 [08:39:06]RAPDU: 90 00 [08:39:06]wFMCommunicate OK [08:39:06]wFMCommunicate request_size=255 [08:39:06]MH_SAM_APDU [08:39: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 2A F8 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 25 D2 01 00 35 04 06 00 D1 [08:39:06]Write to MH i2c: E2 02 01 4F 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 2A F8 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 25 D2 01 00 35 04 06 00 D1 00 00 76 [08:39:06]Write i2c OK [08:39:06]MH_I2C_Read... [08:39:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:39:06]Read from MH i2c: E2 [08:39:06]MH_I2C_Read... [08:39:06]Read from MH i2c: E2 03 00 [08:39:06]MH_I2C_Read... [08:39:06]Read from MH i2c: E2 03 00 4F 10 00 90 00 D3 [08:39:06]RAPDU: 90 00 [08:39:06]wFMCommunicate OK [08:39:06]wFMCommunicate request_size=10 [08:39:06]MH_SAM_APDU [08:39:06]CAPDU: 80 0D 02 02 05 B0 38 A6 F3 AC [08:39:06]Write to MH i2c: E2 0D 00 50 10 80 0D 02 02 05 00 B0 38 A6 F3 AC 00 00 11 [08:39:06]Write i2c OK [08:39:06]MH_I2C_Read... [08:39:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:39:06]Read from MH i2c: E2 [08:39:06]MH_I2C_Read... [08:39:06]Read from MH i2c: E2 03 00 [08:39:06]MH_I2C_Read... [08:39:06]Read from MH i2c: E2 03 00 50 10 00 90 00 D4 [08:39:06]RAPDU: 90 00 [08:39:06]wFMCommunicate OK [08:39:06]wFMCommunicate request_size=4 [08:39:06]MH_SAM_APDU [08:39:06]CAPDU: 80 0D 03 02 [08:39:06]Write to MH i2c: E2 08 00 51 10 80 0D 03 02 00 00 00 00 DC [08:39:06]Write i2c OK [08:39:06]MH_I2C_Read... [08:39:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:39:06]Read from MH i2c: E2 [08:39:06]MH_I2C_Read... [08:39:06]Read from MH i2c: E2 0B 00 [08:39:06]MH_I2C_Read... [08:39:06]Read from MH i2c: E2 0B 00 51 10 00 D0 57 26 F9 9C 9C 88 03 90 00 E6 [08:39:06]RAPDU: D0 57 26 F9 9C 9C 88 03 90 00 [08:39:06]wFMCommunicate OK [08:39:06]SAM_PROTO_SignData done [08:39:06]FM_MakeSignedData done [08:39:06]CreateOFDProtocolMessage [08:39:06]wFMCommunicate request_size=4 [08:39:06]MH_SAM_APDU [08:39:06]CAPDU: 80 11 00 00 [08:39:06]Write to MH i2c: E2 08 00 52 10 80 11 00 00 00 00 00 00 DC [08:39:06]Write i2c OK [08:39:06]MH_I2C_Read... [08:39:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:06]Read from MH i2c: E2 [08:39:06]MH_I2C_Read... [08:39:06]Read from MH i2c: E2 17 00 [08:39:06]MH_I2C_Read... [08:39:06]Read from MH i2c: E2 17 00 52 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 37 [08:39:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:39:06]wFMCommunicate OK [08:39:06]CreateOFDProtocolMessage done [08:39:06]OFDSenderStorePacket 119333 [08:39:06]StoreOFDPacket docnum=119333 [08:39:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 8F 69 07 01 07 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 2A F8 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 25 D2 01 00 35 04 06 00 D1 B0 38 A6 F3 AC D0 57 26 F9 9C 9C 88 03 [08:39:06]CheckFolder [08:39:06]dirname=/storage/ofd_packets [08:39:06]CheckFolder done [08:39:06]ProducePacketName [08:39:06]name=ofd_packets/00119333 [08:39:06]NVStorageSaveData ofd_packets/00119333 [08:39:06]File name is /storage/ofd_packets/00119333 [08:39:06]Write 301 bytes [08:39:06]NVStorageSaveData done [08:39:06]OFDSenderStorePacket done [08:39:06]KKMCreateOFDPacket done [08:39:06]NVStorageSaveData kkm_last_timestamp [08:39:06]File name is /storage/kkm_last_timestamp [08:39:06]Write 4 bytes [08:39:06]NVStorageSaveData done [08:39:06]ExternCall_PrintAddStr [08:39:06]wPrintStart [08:39:06]Write to MH i2c: 01 00 00 53 10 63 [08:39:06]Write i2c OK [08:39:06]MH_I2C_Read... [08:39:06]Read from MH i2c: 01 [08:39:06]MH_I2C_Read... [08:39:06]Read from MH i2c: 01 07 00 [08:39:06]MH_I2C_Read... [08:39:06]Read from MH i2c: 01 07 00 53 10 00 00 00 00 00 FF 0F 78 [08:39:06]RasterBufferAndPrint [08:39:06]line Счет N : (1)950259 [08:39:06]line ИНН: 02508201610067 [08:39:06]line Контрольно-Кассовый Чек [08:39:06]line ПРОДАЖА [08:39:06]line ТРК (МРК, ГНК) : 33 [08:39:06]line Товар: 2710124500 [08:39:06]line Аи-95-К-3 [08:39:06]line 13.480 * 74.20 [08:39:06]line = 1000.22 [08:39:06]line НДС 12% НСП 1% [08:39:06]line > о реализуемом товаре [08:39:06]line ОКРУГЛЕНИЕ: -0.22 [08:39:06]line ИТОГО: 1000.00 [08:39:06]line Внесено: 1000.00 [08:39:06]line СДАЧА: 0.00 [08:39:06]line НСП 1% : 8.85 [08:39:06]line НДС 12% : 106.22 [08:39:06]line Наличными: 1000.00 [08:39:06]line Безнал.: 0.00 [08:39:06]line Место: АЗС № 134 "Партнер Нефть" [08:39:06]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:39:06]line СНО: Общий режим [08:39:06]line Чек 64 31.07.2024 08:39 [08:39:06]line Смена: 436 ФФД: 1.0 [08:39:06]line ЗНМ: 0300000044 [08:39:06]line РНМ: 0000000000092660 [08:39:06]line Версия ККМ: 001 [08:39:06]line ФМ: 0000000000874939 [08:39:06]line ФД: 119333 [08:39:06]line ФПД: 230554794914732 [08:39:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T083906&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119333&fm=230554794914732&tin=02508201610067®Number=0000000000092660&sum=100000 [08:39:07]OFD Sender: Processing packet 119333 [packets to send 86, broken 85] [08:39:07]ProducePacketName [08:39:07]name=ofd_packets/00119333 [08:39:07]OFD Sender: To server: pG, [08:39:07]CommunicateWithHost lk.salyk.kg:30040 [08:39:07]ConnectInit lk.salyk.kg [08:39:07]written 0, free lines is 4095 [08:39:07]Connected sock=9 [08:39: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 39 33 39 0F 01 00 00 8F 69 07 01 07 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 2A F8 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 25 D2 01 00 35 04 06 00 D1 B0 38 A6 F3 AC D0 57 26 F9 9C 9C 88 03 [08:39:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 0A E5 47 00 CD 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 25 D2 01 00 F4 03 04 00 B4 A5 A9 66 B6 04 01 00 00 FC 8A E1 DB D5 DD 36 74 [08:39:07]CommunicateWithHost err = 0 [08:39:07]CheckOFDResponse [08:39:07]1017 (14) - 77093643461234 [08:39:07]1041 (16) - 0000000000874939 [08:39:07]1040 (4) - 119333 [08:39:07]1012 (4) - 31.07.2024 02:47 [08:39:07]1206 (1) - 0 [08:39:07]OFD Sender: Remove packet 119333 [08:39:07]ProducePacketName [08:39:07]name=ofd_packets/00119333 [08:39:07]NVStorageDeleteData [08:39:07]Write to MH i2c: 01 00 00 7D 10 8D [08:39:07]Write i2c OK [08:39:07]MH_I2C_Read... [08:39:07]Read from MH i2c: 01 [08:39:07]MH_I2C_Read... [08:39:07]Read from MH i2c: 01 07 00 [08:39:07]MH_I2C_Read... [08:39:07]Read from MH i2c: 01 07 00 7D 10 00 00 00 00 00 E4 0C 84 [08:39:07]RasterBufferAndPrint [08:39:07]line [08:39:07]line [08:39:07]line [08:39:07]line [08:39:07]line [08:39:07]written 0, free lines is 3307 [08:39:07]MH_Cut [08:39:07]Write to MH i2c: D1 01 00 84 10 01 66 [08:39:07]Write i2c OK [08:39:07]MH_I2C_Read... [08:39:07]Read from MH i2c: D1 [08:39:07]MH_I2C_Read... [08:39:07]Read from MH i2c: D1 01 00 [08:39:07]MH_I2C_Read... [08:39:07]Read from MH i2c: D1 01 00 84 10 00 65 [08:39:07]Write to MH i2c: 01 00 00 85 10 95 [08:39:07]Write i2c OK [08:39:07]MH_I2C_Read... [08:39:07]OFD Sender: No OFD packet to send [08:39:08]*** Cut start [08:39:08]*** Partial cut [08:39:08]*** CUTSNS_PIN = 1 [08:39:08]*** CUTSNS_PIN = 0 [08:39:08]*** Brake cut motor [08:39:08]Read from MH i2c: 01 [08:39:08]MH_I2C_Read... [08:39:08]*** Stop cut motor [08:39:08]*** Cut end [08:39:08]Read from MH i2c: 01 07 00 [08:39:08]MH_I2C_Read... [08:39:08]Read from MH i2c: 01 07 00 85 10 00 00 00 00 00 FF 0F AA [08:39:08]process_action close_receipt done [08:39:08]requested_data is exist [08:39:08]produce_requested_data [08:39:08]requested_item fm.sn is exist - process it [08:39:08]wFMCommunicate request_size=4 [08:39:08]MH_SAM_APDU [08:39:08]CAPDU: 80 11 00 00 [08:39:08]Write to MH i2c: E2 08 00 86 10 80 11 00 00 00 00 00 00 10 [08:39:08]Write i2c OK [08:39:08]MH_I2C_Read... [08:39:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:09]Read from MH i2c: E2 [08:39:09]MH_I2C_Read... [08:39:09]Read from MH i2c: E2 17 00 [08:39:09]MH_I2C_Read... [08:39:09]Read from MH i2c: E2 17 00 86 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6B [08:39:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:39:09]wFMCommunicate OK [08:39:09]requested_item fd.num is exist - process it [08:39:09]SAM_PROTO_GetFieldsCounters [08:39:09]wFMCommunicate request_size=4 [08:39:09]MH_SAM_APDU [08:39:09]CAPDU: 80 13 00 00 [08:39:09]Write to MH i2c: E2 08 00 87 10 80 13 00 00 00 00 00 00 13 [08:39:09]Write i2c OK [08:39:09]MH_I2C_Read... [08:39:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:39:09]Read from MH i2c: E2 [08:39:09]MH_I2C_Read... [08:39:09]Read from MH i2c: E2 62 00 [08:39:09]MH_I2C_Read... [08:39:09]Read from MH i2c: E2 62 00 87 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 25 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [08:39: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 25 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:39:09]wFMCommunicate OK [08:39:09]SAM_PROTO_GetFieldsCounters done [08:39:09]requested_item shift.num is exist - process it [08:39:09]requested_item shift.opened is exist - process it [08:39:09]req_shift_opened [08:39:09]FM_GetShiftState [08:39:09]SAM_PROTO_GetShiftState [08:39:09]wFMCommunicate request_size=4 [08:39:09]MH_SAM_APDU [08:39:09]CAPDU: 80 13 01 00 [08:39:09]Write to MH i2c: E2 08 00 88 10 80 13 01 00 00 00 00 00 15 [08:39:09]Write i2c OK [08:39:09]MH_I2C_Read... [08:39:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:09]Read from MH i2c: E2 [08:39:09]MH_I2C_Read... [08:39:09]Read from MH i2c: E2 0E 00 [08:39:09]MH_I2C_Read... [08:39:09]Read from MH i2c: E2 0E 00 88 10 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 AD [08:39:09]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [08:39:09]wFMCommunicate OK [08:39:09]SAM_PROTO_GetShiftState done [08:39:09]FM_GetShiftState done [08:39:09]req_shift_opened done [08:39:09]requested_item shift.open_date is exist - process it [08:39:09]req_shift_open_date [08:39:09]req_shift_open_date done [08:39:09]produce_requested_data done [08:39:09]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119333,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [08:39:09]process_action_free close_receipt [08:39:09]json_value_free [08:39:09]json_value_free done [08:39:09]process_json_proto returns [08:39:09]Send response to host [08:39:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119333,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [08:39:09]free response buf [08:39:09]execute_script done [08:39:09]execute_script returns [08:39:09]free content buf [08:39:09]Sock 10.Close socket [08:39:09]Sock 10.Thread stoped [08:39:12]OFD Sender: No OFD packet to send [08:39:17]OFD Sender: No OFD packet to send [08:39:22]OFD Sender: No OFD packet to send [08:39:27]OFD Sender: No OFD packet to send [08:39:33]OFD Sender: No OFD packet to send [08:39:38]OFD Sender: No OFD packet to send [08:39:43]OFD Sender: No OFD packet to send [08:39:48]OFD Sender: No OFD packet to send [08:39:53]OFD Sender: No OFD packet to send [08:39:58]OFD Sender: No OFD packet to send [08:40:03]OFD Sender: No OFD packet to send [08:40:08]OFD Sender: No OFD packet to send [08:40:13]OFD Sender: No OFD packet to send [08:40:18]OFD Sender: No OFD packet to send [08:40:23]OFD Sender: No OFD packet to send [08:40:28]OFD Sender: No OFD packet to send [08:40:33]OFD Sender: No OFD packet to send [08:40:38]OFD Sender: No OFD packet to send [08:40:43]OFD Sender: No OFD packet to send [08:40:48]OFD Sender: No OFD packet to send [08:40:53]OFD Sender: No OFD packet to send [08:40:58]OFD Sender: No OFD packet to send [08:41:03]OFD Sender: No OFD packet to send [08:41:08]OFD Sender: No OFD packet to send [08:41:13]OFD Sender: No OFD packet to send [08:41:18]OFD Sender: No OFD packet to send [08:41:23]OFD Sender: No OFD packet to send [08:41:28]OFD Sender: No OFD packet to send [08:41:33]OFD Sender: No OFD packet to send [08:41:38]OFD Sender: No OFD packet to send [08:41:43]OFD Sender: No OFD packet to send [08:41:48]OFD Sender: No OFD packet to send [08:41:53]OFD Sender: No OFD packet to send [08:41:58]OFD Sender: No OFD packet to send [08:42:03]OFD Sender: No OFD packet to send [08:42:08]OFD Sender: No OFD packet to send [08:42:13]OFD Sender: No OFD packet to send [08:42:18]OFD Sender: No OFD packet to send [08:42:23]OFD Sender: No OFD packet to send [08:42:28]OFD Sender: No OFD packet to send [08:42:33]OFD Sender: No OFD packet to send [08:42:38]OFD Sender: No OFD packet to send [08:42:43]OFD Sender: No OFD packet to send [08:42:48]OFD Sender: No OFD packet to send [08:42:53]OFD Sender: No OFD packet to send [08:42:58]OFD Sender: No OFD packet to send [08:43:03]OFD Sender: No OFD packet to send [08:43:08]OFD Sender: No OFD packet to send [08:43:13]OFD Sender: No OFD packet to send [08:43:18]OFD Sender: No OFD packet to send [08:43:23]OFD Sender: No OFD packet to send [08:43:28]OFD Sender: No OFD packet to send [08:43:33]OFD Sender: No OFD packet to send [08:43:38]OFD Sender: No OFD packet to send [08:43:43]OFD Sender: No OFD packet to send [08:43:48]OFD Sender: No OFD packet to send [08:43:53]OFD Sender: No OFD packet to send [08:43:58]OFD Sender: No OFD packet to send [08:44:03]OFD Sender: No OFD packet to send [08:44:08]OFD Sender: No OFD packet to send [08:44:13]OFD Sender: No OFD packet to send [08:44:18]OFD Sender: No OFD packet to send [08:44:23]OFD Sender: No OFD packet to send [08:44:25]accept exits with 8 [08:44:25]New connection [08:44:25]New thread 3067194724 created [08:44:25]Thread 3067338084 joined [08:44:25]Waiting for new connection... [08:44:25] Sock 8.Parse request [08:44:25]Sock 8.Check first char [08:44:25]Sock 8.First char is OK [08:44:25]request: POST /json_proto HTTP/1.0 [08:44:25]Method: POST [08:44:25]URL: /json_proto [08:44:25]Method is POST - this is cgi request [08:44:25]url: /json_proto [08:44:25]query_string will be loaded in cgi processing [08:44:25]execute_cgi json_proto POST (null) [08:44:25]execute_cgi path=json_proto method=POST [08:44:25]POST find Content-Length [08:44:25]Host: 172.17.45.7:8080 [08:44:25]Content-Length: 677 [08:44:25]Content-Type: application/json [08:44:25] [08:44:25]POST finish read [08:44:25]Found Content-Length = 677 [08:44:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:44:25]execute_script... [08:44: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)950260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:44:25]POST & json_proto [08:44:25]process_json_proto [08:44:25]json parsed OK: [08:44:25]protocol is kg_v1.0 [08:44:25]action value=close_receipt [08:44:25]process_action close_receipt [08:44:25]cmd_close_receipt [08:44:25]MH_GetDate [08:44:25]Write to MH i2c: F0 00 00 89 10 88 [08:44:25]Write i2c OK [08:44:25]MH_I2C_Read... [08:44:25]Read from MH i2c: F0 [08:44:25]MH_I2C_Read... [08:44:25]Read from MH i2c: F0 09 00 [08:44:25]MH_I2C_Read... [08:44:25]Read from MH i2c: F0 09 00 89 10 00 6B F9 A9 66 90 0F 3E 66 47 [08:44:25]GetLastDocTimeStamp 1722415146 [08:44:25]current date 1722415467 [08:44:25]FM_GetShiftState [08:44:25]SAM_PROTO_GetShiftState [08:44:25]wFMCommunicate request_size=4 [08:44:25]MH_SAM_APDU [08:44:25]CAPDU: 80 13 01 00 [08:44:25]Write to MH i2c: E2 08 00 8A 10 80 13 01 00 00 00 00 00 17 [08:44:25]Write i2c OK [08:44:25]MH_I2C_Read... [08:44:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:25]Read from MH i2c: E2 [08:44:25]MH_I2C_Read... [08:44:25]Read from MH i2c: E2 0E 00 [08:44:25]MH_I2C_Read... [08:44:25]Read from MH i2c: E2 0E 00 8A 10 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 AF [08:44:25]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [08:44:25]wFMCommunicate OK [08:44:25]SAM_PROTO_GetShiftState done [08:44:25]FM_GetShiftState done [08:44:25]opened in 1722384637 [08:44:25]opened+sec_in_day 1722471037 [08:44:25]quantity*price = 40002 [08:44:25]sum+1 = 40003 [08:44:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 65 31.07.2024 08:44 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119334 ФПД: 160538021637907 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T084427&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119334&fm=160538021637907&tin=02508201610067®Number=0000000000092660&sum=40000 [08:44:26]StoreToDocumentArchive [08:44:26]shift 436 fd 119334 [08:44:26]save to /storage/0436/doc_00119334 [08:44:26]save last doc name /storage/0436/doc_00119334 to /storage/kkm_last_doc_name [08:44:26]save OK [08:44:26]Clear old archive folders... [08:44:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:44:26]tlvbuf is 00B38D60 [08:44:26]SAM_PROTO_ClearQueue [08:44:26]wFMCommunicate request_size=4 [08:44:26]MH_SAM_APDU [08:44:26]CAPDU: 80 09 00 00 [08:44:26]Write to MH i2c: E2 08 00 97 10 80 09 00 00 00 00 00 00 19 [08:44:26]Write i2c OK [08:44:26]MH_I2C_Read... [08:44:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:44:26]Read from MH i2c: E2 [08:44:26]MH_I2C_Read... [08:44:26]Read from MH i2c: E2 03 00 [08:44:26]MH_I2C_Read... [08:44:26]Read from MH i2c: E2 03 00 97 10 00 90 00 1B [08:44:26]RAPDU: 90 00 [08:44:26]wFMCommunicate OK [08:44:26]SAM_PROTO_ClearQueue done [08:44:26]KKMCreateOFDPacket [08:44:26]OFDProtocolAddRootSTLVToBuf [08:44:26]FM_MakeSignedData [08:44:26]FM_MakeSignedData [08:44:26]SAM_PROTO_SignData [08:44:26]wFMCommunicate request_size=4 [08:44:26]MH_SAM_APDU [08:44:26]CAPDU: 80 0D 01 02 [08:44:26]Write to MH i2c: E2 08 00 98 10 80 0D 01 02 00 00 00 00 21 [08:44:26]Write i2c OK [08:44:26]MH_I2C_Read... [08:44:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:44:26]Read from MH i2c: E2 [08:44:26]MH_I2C_Read... [08:44:26]Read from MH i2c: E2 03 00 [08:44:26]MH_I2C_Read... [08:44:26]Read from MH i2c: E2 03 00 98 10 00 90 00 1C [08:44:26]RAPDU: 90 00 [08:44:26]wFMCommunicate OK [08:44:26]wFMCommunicate request_size=255 [08:44:26]MH_SAM_APDU [08:44:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 41 00 00 00 F4 03 04 00 6B F9 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 26 D2 01 00 35 04 06 00 92 [08:44:26]Write to MH i2c: E2 02 01 99 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 41 00 00 00 F4 03 04 00 6B F9 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 26 D2 01 00 35 04 06 00 92 00 00 7E [08:44:26]Write i2c OK [08:44:26]MH_I2C_Read... [08:44:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:26]Read from MH i2c: E2 [08:44:26]MH_I2C_Read... [08:44:26]Read from MH i2c: E2 03 00 [08:44:26]MH_I2C_Read... [08:44:26]Read from MH i2c: E2 03 00 99 10 00 90 00 1D [08:44:26]RAPDU: 90 00 [08:44:26]wFMCommunicate OK [08:44:26]wFMCommunicate request_size=10 [08:44:26]MH_SAM_APDU [08:44:26]CAPDU: 80 0D 02 02 05 02 2B C0 AF 13 [08:44:26]Write to MH i2c: E2 0D 00 9A 10 80 0D 02 02 05 00 02 2B C0 AF 13 00 00 DD [08:44:26]Write i2c OK [08:44:26]MH_I2C_Read... [08:44:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:26]Read from MH i2c: E2 [08:44:26]MH_I2C_Read... [08:44:26]Read from MH i2c: E2 03 00 [08:44:26]MH_I2C_Read... [08:44:26]Read from MH i2c: E2 03 00 9A 10 00 90 00 1E [08:44:26]RAPDU: 90 00 [08:44:26]wFMCommunicate OK [08:44:26]wFMCommunicate request_size=4 [08:44:26]MH_SAM_APDU [08:44:26]CAPDU: 80 0D 03 02 [08:44:26]Write to MH i2c: E2 08 00 9B 10 80 0D 03 02 00 00 00 00 26 [08:44:26]Write i2c OK [08:44:26]MH_I2C_Read... [08:44:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:44:26]Read from MH i2c: E2 [08:44:26]MH_I2C_Read... [08:44:26]Read from MH i2c: E2 0B 00 [08:44:26]MH_I2C_Read... [08:44:26]Read from MH i2c: E2 0B 00 9B 10 00 E8 0C A2 1E 0D C3 A8 D1 90 00 24 [08:44:26]RAPDU: E8 0C A2 1E 0D C3 A8 D1 90 00 [08:44:26]wFMCommunicate OK [08:44:26]SAM_PROTO_SignData done [08:44:26]FM_MakeSignedData done [08:44:26]CreateOFDProtocolMessage [08:44:26]wFMCommunicate request_size=4 [08:44:26]MH_SAM_APDU [08:44:26]CAPDU: 80 11 00 00 [08:44:26]Write to MH i2c: E2 08 00 9C 10 80 11 00 00 00 00 00 00 26 [08:44:26]Write i2c OK [08:44:26]MH_I2C_Read... [08:44:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:26]Read from MH i2c: E2 [08:44:26]MH_I2C_Read... [08:44:26]Read from MH i2c: E2 17 00 [08:44:26]MH_I2C_Read... [08:44:26]Read from MH i2c: E2 17 00 9C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 81 [08:44:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:44:26]wFMCommunicate OK [08:44:26]CreateOFDProtocolMessage done [08:44:26]OFDSenderStorePacket 119334 [08:44:26]StoreOFDPacket docnum=119334 [08:44:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 82 D5 07 01 33 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 41 00 00 00 F4 03 04 00 6B F9 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 26 D2 01 00 35 04 06 00 92 02 2B C0 AF 13 E8 0C A2 1E 0D C3 A8 D1 [08:44:26]CheckFolder [08:44:26]dirname=/storage/ofd_packets [08:44:26]CheckFolder done [08:44:26]ProducePacketName [08:44:26]name=ofd_packets/00119334 [08:44:26]NVStorageSaveData ofd_packets/00119334 [08:44:26]File name is /storage/ofd_packets/00119334 [08:44:26]Write 301 bytes [08:44:26]NVStorageSaveData done [08:44:26]OFDSenderStorePacket done [08:44:26]KKMCreateOFDPacket done [08:44:26]NVStorageSaveData kkm_last_timestamp [08:44:26]File name is /storage/kkm_last_timestamp [08:44:26]Write 4 bytes [08:44:26]NVStorageSaveData done [08:44:26]ExternCall_PrintAddStr [08:44:26]wPrintStart [08:44:26]Write to MH i2c: 01 00 00 9D 10 AD [08:44:26]Write i2c OK [08:44:26]MH_I2C_Read... [08:44:26]Read from MH i2c: 01 [08:44:26]MH_I2C_Read... [08:44:26]Read from MH i2c: 01 07 00 [08:44:26]MH_I2C_Read... [08:44:26]Read from MH i2c: 01 07 00 9D 10 00 00 00 00 00 FF 0F C2 [08:44:26]RasterBufferAndPrint [08:44:26]line Счет N : (1)950260 [08:44:26]line ИНН: 02508201610067 [08:44:26]line Контрольно-Кассовый Чек [08:44:26]line ПРОДАЖА [08:44:26]line ТРК (МРК, ГНК) : 31 [08:44:26]line Товар: 2710124130 [08:44:26]line Аи-92-К-4 [08:44:26]line 5.900 * 67.80 [08:44:26]line = 400.02 [08:44:26]line НДС 12% НСП 1% [08:44:26]line > о реализуемом товаре [08:44:26]line ОКРУГЛЕНИЕ: -0.02 [08:44:26]line ИТОГО: 400.00 [08:44:26]line Внесено: 400.00 [08:44:26]line СДАЧА: 0.00 [08:44:26]line НСП 1% : 3.54 [08:44:26]line НДС 12% : 42.48 [08:44:26]line Наличными: 400.00 [08:44:26]line Безнал.: 0.00 [08:44:26]line Место: АЗС № 134 "Партнер Нефть" [08:44:26]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:44:26]line СНО: Общий режим [08:44:26]line Чек 65 31.07.2024 08:44 [08:44:26]line Смена: 436 ФФД: 1.0 [08:44:26]line ЗНМ: 0300000044 [08:44:26]line РНМ: 0000000000092660 [08:44:26]line Версия ККМ: 001 [08:44:26]line ФМ: 0000000000874939 [08:44:26]line ФД: 119334 [08:44:26]line ФПД: 160538021637907 [08:44:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T084427&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119334&fm=160538021637907&tin=02508201610067®Number=0000000000092660&sum=40000 [08:44:27]OFD Sender: Processing packet 119334 [packets to send 86, broken 85] [08:44:27]ProducePacketName [08:44:27]name=ofd_packets/00119334 [08:44:27]OFD Sender: To server: pG, [08:44:27]CommunicateWithHost lk.salyk.kg:30040 [08:44:27]ConnectInit lk.salyk.kg [08:44:27]written 0, free lines is 4095 [08:44:27]Connected sock=10 [08:44: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 39 33 39 0F 01 00 00 82 D5 07 01 33 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 41 00 00 00 F4 03 04 00 6B F9 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 26 D2 01 00 35 04 06 00 92 02 2B C0 AF 13 E8 0C A2 1E 0D C3 A8 D1 [08:44:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 0F 25 47 00 91 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 26 D2 01 00 F4 03 04 00 F4 A6 A9 66 B6 04 01 00 00 FD EE 20 CA 23 BE 64 F3 [08:44:27]CommunicateWithHost err = 0 [08:44:27]CheckOFDResponse [08:44:27]1017 (14) - 77093643461234 [08:44:27]1041 (16) - 0000000000874939 [08:44:27]1040 (4) - 119334 [08:44:27]1012 (4) - 31.07.2024 02:52 [08:44:27]1206 (1) - 0 [08:44:27]OFD Sender: Remove packet 119334 [08:44:27]ProducePacketName [08:44:27]name=ofd_packets/00119334 [08:44:27]NVStorageDeleteData [08:44:27]Write to MH i2c: 01 00 00 C7 10 D7 [08:44:27]Write i2c OK [08:44:27]MH_I2C_Read... [08:44:27]Read from MH i2c: 01 [08:44:27]MH_I2C_Read... [08:44:27]Read from MH i2c: 01 07 00 [08:44:27]MH_I2C_Read... [08:44:27]Read from MH i2c: 01 07 00 C7 10 00 00 00 00 00 CE 0C B8 [08:44:27]RasterBufferAndPrint [08:44:27]line [08:44:27]line [08:44:27]line [08:44:27]line [08:44:27]line [08:44:27]written 0, free lines is 3284 [08:44:27]MH_Cut [08:44:27]Write to MH i2c: D1 01 00 CE 10 01 B0 [08:44:27]Write i2c OK [08:44:27]MH_I2C_Read... [08:44:27]Read from MH i2c: D1 [08:44:27]MH_I2C_Read... [08:44:27]Read from MH i2c: D1 01 00 [08:44:27]MH_I2C_Read... [08:44:27]Read from MH i2c: D1 01 00 CE 10 00 AF [08:44:27]Write to MH i2c: 01 00 00 CF 10 DF [08:44:27]Write i2c OK [08:44:27]MH_I2C_Read... [08:44:28]OFD Sender: No OFD packet to send [08:44:28]*** Cut start [08:44:28]*** Partial cut [08:44:28]*** CUTSNS_PIN = 1 [08:44:28]*** CUTSNS_PIN = 0 [08:44:28]*** Brake cut motor [08:44:29]Read from MH i2c: 01 [08:44:29]MH_I2C_Read... [08:44:29]*** Stop cut motor [08:44:29]*** Cut end [08:44:29]Read from MH i2c: 01 07 00 [08:44:29]MH_I2C_Read... [08:44:29]Read from MH i2c: 01 07 00 CF 10 00 00 00 00 00 FF 0F F4 [08:44:29]process_action close_receipt done [08:44:29]requested_data is exist [08:44:29]produce_requested_data [08:44:29]requested_item fm.sn is exist - process it [08:44:29]wFMCommunicate request_size=4 [08:44:29]MH_SAM_APDU [08:44:29]CAPDU: 80 11 00 00 [08:44:29]Write to MH i2c: E2 08 00 D0 10 80 11 00 00 00 00 00 00 5A [08:44:29]Write i2c OK [08:44:29]MH_I2C_Read... [08:44:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:29]Read from MH i2c: E2 [08:44:29]MH_I2C_Read... [08:44:29]Read from MH i2c: E2 17 00 [08:44:29]MH_I2C_Read... [08:44:29]Read from MH i2c: E2 17 00 D0 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B5 [08:44:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:44:29]wFMCommunicate OK [08:44:29]requested_item fd.num is exist - process it [08:44:29]SAM_PROTO_GetFieldsCounters [08:44:29]wFMCommunicate request_size=4 [08:44:29]MH_SAM_APDU [08:44:29]CAPDU: 80 13 00 00 [08:44:29]Write to MH i2c: E2 08 00 D1 10 80 13 00 00 00 00 00 00 5D [08:44:29]Write i2c OK [08:44:29]MH_I2C_Read... [08:44:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:29]Read from MH i2c: E2 [08:44:29]MH_I2C_Read... [08:44:29]Read from MH i2c: E2 62 00 [08:44:29]MH_I2C_Read... [08:44:29]Read from MH i2c: E2 62 00 D1 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 26 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [08:44: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 26 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:44:29]wFMCommunicate OK [08:44:29]SAM_PROTO_GetFieldsCounters done [08:44:29]requested_item shift.num is exist - process it [08:44:29]requested_item shift.opened is exist - process it [08:44:29]req_shift_opened [08:44:29]FM_GetShiftState [08:44:29]SAM_PROTO_GetShiftState [08:44:29]wFMCommunicate request_size=4 [08:44:29]MH_SAM_APDU [08:44:29]CAPDU: 80 13 01 00 [08:44:29]Write to MH i2c: E2 08 00 D2 10 80 13 01 00 00 00 00 00 5F [08:44:29]Write i2c OK [08:44:29]MH_I2C_Read... [08:44:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:29]Read from MH i2c: E2 [08:44:29]MH_I2C_Read... [08:44:29]Read from MH i2c: E2 0E 00 [08:44:29]MH_I2C_Read... [08:44:29]Read from MH i2c: E2 0E 00 D2 10 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 F7 [08:44:29]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [08:44:29]wFMCommunicate OK [08:44:29]SAM_PROTO_GetShiftState done [08:44:29]FM_GetShiftState done [08:44:29]req_shift_opened done [08:44:29]requested_item shift.open_date is exist - process it [08:44:29]req_shift_open_date [08:44:29]req_shift_open_date done [08:44:29]produce_requested_data done [08:44:29]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119334,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [08:44:29]process_action_free close_receipt [08:44:29]json_value_free [08:44:29]json_value_free done [08:44:29]process_json_proto returns [08:44:29]Send response to host [08:44:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119334,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [08:44:29]free response buf [08:44:29]execute_script done [08:44:29]execute_script returns [08:44:29]free content buf [08:44:29]Sock 8.Close socket [08:44:29]Sock 8.Thread stoped [08:44:33]OFD Sender: No OFD packet to send [08:44:38]OFD Sender: No OFD packet to send [08:44:43]OFD Sender: No OFD packet to send [08:44:48]OFD Sender: No OFD packet to send [08:44:53]OFD Sender: No OFD packet to send [08:44:58]OFD Sender: No OFD packet to send [08:45:03]OFD Sender: No OFD packet to send [08:45:08]OFD Sender: No OFD packet to send [08:45:13]OFD Sender: No OFD packet to send [08:45:18]OFD Sender: No OFD packet to send [08:45:23]OFD Sender: No OFD packet to send [08:45:28]OFD Sender: No OFD packet to send [08:45:33]OFD Sender: No OFD packet to send [08:45:38]OFD Sender: No OFD packet to send [08:45:43]OFD Sender: No OFD packet to send [08:45:48]OFD Sender: No OFD packet to send [08:45:53]OFD Sender: No OFD packet to send [08:45:58]OFD Sender: No OFD packet to send [08:46:03]OFD Sender: No OFD packet to send [08:46:08]OFD Sender: No OFD packet to send [08:46:13]OFD Sender: No OFD packet to send [08:46:18]OFD Sender: No OFD packet to send [08:46:23]OFD Sender: No OFD packet to send [08:46:28]OFD Sender: No OFD packet to send [08:46:33]OFD Sender: No OFD packet to send [08:46:38]OFD Sender: No OFD packet to send [08:46:43]OFD Sender: No OFD packet to send [08:46:48]OFD Sender: No OFD packet to send [08:46:53]OFD Sender: No OFD packet to send [08:46:58]OFD Sender: No OFD packet to send [08:47:03]OFD Sender: No OFD packet to send [08:47:08]OFD Sender: No OFD packet to send [08:47:13]OFD Sender: No OFD packet to send [08:47:18]OFD Sender: No OFD packet to send [08:47:23]OFD Sender: No OFD packet to send [08:47:28]OFD Sender: No OFD packet to send [08:47:33]OFD Sender: No OFD packet to send [08:47:38]OFD Sender: No OFD packet to send [08:47:43]OFD Sender: No OFD packet to send [08:47:48]OFD Sender: No OFD packet to send [08:47:53]OFD Sender: No OFD packet to send [08:47:58]OFD Sender: No OFD packet to send [08:48:03]OFD Sender: No OFD packet to send [08:48:08]OFD Sender: No OFD packet to send [08:48:13]OFD Sender: No OFD packet to send [08:48:18]OFD Sender: No OFD packet to send [08:48:23]OFD Sender: No OFD packet to send [08:48:28]OFD Sender: No OFD packet to send [08:48:33]OFD Sender: No OFD packet to send [08:48:38]OFD Sender: No OFD packet to send [08:48:43]OFD Sender: No OFD packet to send [08:48:48]OFD Sender: No OFD packet to send [08:48:53]OFD Sender: No OFD packet to send [08:48:58]OFD Sender: No OFD packet to send [08:49:03]OFD Sender: No OFD packet to send [08:49:08]OFD Sender: No OFD packet to send [08:49:13]OFD Sender: No OFD packet to send [08:49:18]OFD Sender: No OFD packet to send [08:49:23]OFD Sender: No OFD packet to send [08:49:28]OFD Sender: No OFD packet to send [08:49:33]OFD Sender: No OFD packet to send [08:49:38]OFD Sender: No OFD packet to send [08:49:43]OFD Sender: No OFD packet to send [08:49:48]OFD Sender: No OFD packet to send [08:49:53]OFD Sender: No OFD packet to send [08:49:58]OFD Sender: No OFD packet to send [08:50:03]OFD Sender: No OFD packet to send [08:50:08]OFD Sender: No OFD packet to send [08:50:13]OFD Sender: No OFD packet to send [08:50:18]OFD Sender: No OFD packet to send [08:50:23]OFD Sender: No OFD packet to send [08:50:28]OFD Sender: No OFD packet to send [08:50:33]OFD Sender: No OFD packet to send [08:50:38]OFD Sender: No OFD packet to send [08:50:43]OFD Sender: No OFD packet to send [08:50:48]OFD Sender: No OFD packet to send [08:50:53]OFD Sender: No OFD packet to send [08:50:58]OFD Sender: No OFD packet to send [08:51:03]OFD Sender: No OFD packet to send [08:51:08]OFD Sender: No OFD packet to send [08:51:13]OFD Sender: No OFD packet to send [08:51:18]OFD Sender: No OFD packet to send [08:51:23]OFD Sender: No OFD packet to send [08:51:28]OFD Sender: No OFD packet to send [08:51:33]OFD Sender: No OFD packet to send [08:51:38]OFD Sender: No OFD packet to send [08:51:43]OFD Sender: No OFD packet to send [08:51:48]OFD Sender: No OFD packet to send [08:51:53]OFD Sender: No OFD packet to send [08:51:58]OFD Sender: No OFD packet to send [08:52:03]OFD Sender: No OFD packet to send [08:52:08]OFD Sender: No OFD packet to send [08:52:13]OFD Sender: No OFD packet to send [08:52:18]OFD Sender: No OFD packet to send [08:52:23]OFD Sender: No OFD packet to send [08:52:28]OFD Sender: No OFD packet to send [08:52:33]OFD Sender: No OFD packet to send [08:52:38]OFD Sender: No OFD packet to send [08:52:43]OFD Sender: No OFD packet to send [08:52:48]OFD Sender: No OFD packet to send [08:52:53]OFD Sender: No OFD packet to send [08:52:58]OFD Sender: No OFD packet to send [08:53:03]OFD Sender: No OFD packet to send [08:53:08]OFD Sender: No OFD packet to send [08:53:13]OFD Sender: No OFD packet to send [08:53:18]OFD Sender: No OFD packet to send [08:53:23]OFD Sender: No OFD packet to send [08:53:28]OFD Sender: No OFD packet to send [08:53:33]OFD Sender: No OFD packet to send [08:53:38]OFD Sender: No OFD packet to send [08:53:43]OFD Sender: No OFD packet to send [08:53:48]OFD Sender: No OFD packet to send [08:53:53]OFD Sender: No OFD packet to send [08:53:58]OFD Sender: No OFD packet to send [08:54:03]OFD Sender: No OFD packet to send [08:54:06]accept exits with 9 [08:54:06]New connection [08:54:06]New thread 3067338084 created [08:54:06]Thread 3067194724 joined [08:54:06]Waiting for new connection... [08:54:06] Sock 9.Parse request [08:54:06]Sock 9.Check first char [08:54:06]Sock 9.First char is OK [08:54:06]request: POST /json_proto HTTP/1.0 [08:54:06]Method: POST [08:54:06]URL: /json_proto [08:54:06]Method is POST - this is cgi request [08:54:06]url: /json_proto [08:54:06]query_string will be loaded in cgi processing [08:54:06]execute_cgi json_proto POST (null) [08:54:06]execute_cgi path=json_proto method=POST [08:54:06]POST find Content-Length [08:54:06]Host: 172.17.45.7:8080 [08:54:06]Content-Length: 677 [08:54:06]Content-Type: application/json [08:54:06] [08:54:06]POST finish read [08:54:06]Found Content-Length = 677 [08:54:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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" ] } } [08:54:06]execute_script... [08:54:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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" ] } } [08:54:06]POST & json_proto [08:54:06]process_json_proto [08:54:06]json parsed OK: [08:54:06]protocol is kg_v1.0 [08:54:06]action value=close_receipt [08:54:06]process_action close_receipt [08:54:06]cmd_close_receipt [08:54:06]MH_GetDate [08:54:06]Write to MH i2c: F0 00 00 D3 10 D2 [08:54:06]Write i2c OK [08:54:06]MH_I2C_Read... [08:54:06]Read from MH i2c: F0 [08:54:06]MH_I2C_Read... [08:54:06]Read from MH i2c: F0 09 00 [08:54:06]MH_I2C_Read... [08:54:06]Read from MH i2c: F0 09 00 D3 10 00 AF FB A9 66 90 0F 3E 66 D7 [08:54:06]GetLastDocTimeStamp 1722415467 [08:54:06]current date 1722416047 [08:54:06]FM_GetShiftState [08:54:06]SAM_PROTO_GetShiftState [08:54:06]wFMCommunicate request_size=4 [08:54:06]MH_SAM_APDU [08:54:06]CAPDU: 80 13 01 00 [08:54:06]Write to MH i2c: E2 08 00 D4 10 80 13 01 00 00 00 00 00 61 [08:54:06]Write i2c OK [08:54:06]MH_I2C_Read... [08:54:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:06]Read from MH i2c: E2 [08:54:06]MH_I2C_Read... [08:54:06]Read from MH i2c: E2 0E 00 [08:54:06]MH_I2C_Read... [08:54:06]Read from MH i2c: E2 0E 00 D4 10 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 F9 [08:54:06]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [08:54:06]wFMCommunicate OK [08:54:06]SAM_PROTO_GetShiftState done [08:54:06]FM_GetShiftState done [08:54:06]opened in 1722384637 [08:54:06]opened+sec_in_day 1722471037 [08:54:06]quantity*price = 30035 [08:54:06]sum+1 = 30036 [08:54:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 66 31.07.2024 08:54 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119335 ФПД: 189888377332157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T085407&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119335&fm=189888377332157&tin=02508201610067®Number=0000000000092660&sum=30000 [08:54:07]StoreToDocumentArchive [08:54:07]shift 436 fd 119335 [08:54:07]save to /storage/0436/doc_00119335 [08:54:07]save last doc name /storage/0436/doc_00119335 to /storage/kkm_last_doc_name [08:54:07]save OK [08:54:07]Clear old archive folders... [08:54:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:54:07]tlvbuf is B6F06AB0 [08:54:07]SAM_PROTO_ClearQueue [08:54:07]wFMCommunicate request_size=4 [08:54:07]MH_SAM_APDU [08:54:07]CAPDU: 80 09 00 00 [08:54:07]Write to MH i2c: E2 08 00 E1 10 80 09 00 00 00 00 00 00 63 [08:54:07]Write i2c OK [08:54:07]MH_I2C_Read... [08:54:07]Read from MH i2c: E2 [08:54:07]MH_I2C_Read... [08:54:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:54:07]Read from MH i2c: E2 03 00 [08:54:07]MH_I2C_Read... [08:54:07]Read from MH i2c: E2 03 00 E1 10 00 90 00 65 [08:54:07]RAPDU: 90 00 [08:54:07]wFMCommunicate OK [08:54:07]SAM_PROTO_ClearQueue done [08:54:07]KKMCreateOFDPacket [08:54:07]OFDProtocolAddRootSTLVToBuf [08:54:07]FM_MakeSignedData [08:54:07]FM_MakeSignedData [08:54:07]SAM_PROTO_SignData [08:54:07]wFMCommunicate request_size=4 [08:54:07]MH_SAM_APDU [08:54:07]CAPDU: 80 0D 01 02 [08:54:07]Write to MH i2c: E2 08 00 E2 10 80 0D 01 02 00 00 00 00 6B [08:54:07]Write i2c OK [08:54:07]MH_I2C_Read... [08:54:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:54:07]Read from MH i2c: E2 [08:54:07]MH_I2C_Read... [08:54:07]Read from MH i2c: E2 03 00 [08:54:07]MH_I2C_Read... [08:54:07]Read from MH i2c: E2 03 00 E2 10 00 90 00 66 [08:54:07]RAPDU: 90 00 [08:54:07]wFMCommunicate OK [08:54:07]wFMCommunicate request_size=255 [08:54:07]MH_SAM_APDU [08:54:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 AF FB A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 27 D2 01 00 35 04 06 00 AC [08:54:07]Write to MH i2c: E2 02 01 E3 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 AF FB A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 27 D2 01 00 35 04 06 00 AC 00 00 64 [08:54:07]Write i2c OK [08:54:07]MH_I2C_Read... [08:54:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:07]Read from MH i2c: E2 [08:54:07]MH_I2C_Read... [08:54:07]Read from MH i2c: E2 03 00 [08:54:07]MH_I2C_Read... [08:54:07]Read from MH i2c: E2 03 00 E3 10 00 90 00 67 [08:54:07]RAPDU: 90 00 [08:54:07]wFMCommunicate OK [08:54:07]wFMCommunicate request_size=10 [08:54:07]MH_SAM_APDU [08:54:07]CAPDU: 80 0D 02 02 05 B3 D5 47 21 BD [08:54:07]Write to MH i2c: E2 0D 00 E4 10 80 0D 02 02 05 00 B3 D5 47 21 BD 00 00 25 [08:54:07]Write i2c OK [08:54:07]MH_I2C_Read... [08:54:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:07]Read from MH i2c: E2 [08:54:07]MH_I2C_Read... [08:54:07]Read from MH i2c: E2 03 00 [08:54:07]MH_I2C_Read... [08:54:07]Read from MH i2c: E2 03 00 E4 10 00 90 00 68 [08:54:07]RAPDU: 90 00 [08:54:07]wFMCommunicate OK [08:54:07]wFMCommunicate request_size=4 [08:54:07]MH_SAM_APDU [08:54:07]CAPDU: 80 0D 03 02 [08:54:07]Write to MH i2c: E2 08 00 E5 10 80 0D 03 02 00 00 00 00 70 [08:54:07]Write i2c OK [08:54:07]MH_I2C_Read... [08:54:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:54:07]Read from MH i2c: E2 [08:54:07]MH_I2C_Read... [08:54:07]Read from MH i2c: E2 0B 00 [08:54:07]MH_I2C_Read... [08:54:07]Read from MH i2c: E2 0B 00 E5 10 00 F0 7D E2 15 36 6B 1B 29 90 00 BA [08:54:07]RAPDU: F0 7D E2 15 36 6B 1B 29 90 00 [08:54:07]wFMCommunicate OK [08:54:07]SAM_PROTO_SignData done [08:54:07]FM_MakeSignedData done [08:54:07]CreateOFDProtocolMessage [08:54:07]wFMCommunicate request_size=4 [08:54:07]MH_SAM_APDU [08:54:07]CAPDU: 80 11 00 00 [08:54:07]Write to MH i2c: E2 08 00 E6 10 80 11 00 00 00 00 00 00 70 [08:54:07]Write i2c OK [08:54:07]MH_I2C_Read... [08:54:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:07]Read from MH i2c: E2 [08:54:07]MH_I2C_Read... [08:54:07]Read from MH i2c: E2 17 00 [08:54:07]MH_I2C_Read... [08:54:07]Read from MH i2c: E2 17 00 E6 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CB [08:54:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:54:07]wFMCommunicate OK [08:54:07]CreateOFDProtocolMessage done [08:54:07]OFDSenderStorePacket 119335 [08:54:07]StoreOFDPacket docnum=119335 [08:54:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B4 45 07 01 82 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 AF FB A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 27 D2 01 00 35 04 06 00 AC B3 D5 47 21 BD F0 7D E2 15 36 6B 1B 29 [08:54:07]CheckFolder [08:54:07]dirname=/storage/ofd_packets [08:54:07]CheckFolder done [08:54:07]ProducePacketName [08:54:07]name=ofd_packets/00119335 [08:54:07]NVStorageSaveData ofd_packets/00119335 [08:54:07]File name is /storage/ofd_packets/00119335 [08:54:07]Write 301 bytes [08:54:07]NVStorageSaveData done [08:54:07]OFDSenderStorePacket done [08:54:07]KKMCreateOFDPacket done [08:54:07]NVStorageSaveData kkm_last_timestamp [08:54:07]File name is /storage/kkm_last_timestamp [08:54:07]Write 4 bytes [08:54:07]NVStorageSaveData done [08:54:07]ExternCall_PrintAddStr [08:54:07]wPrintStart [08:54:07]Write to MH i2c: 01 00 00 E7 10 F7 [08:54:07]Write i2c OK [08:54:07]MH_I2C_Read... [08:54:07]Read from MH i2c: 01 [08:54:07]MH_I2C_Read... [08:54:07]Read from MH i2c: 01 07 00 [08:54:07]MH_I2C_Read... [08:54:07]Read from MH i2c: 01 07 00 E7 10 00 00 00 00 00 FF 0F 0C [08:54:07]RasterBufferAndPrint [08:54:07]line Счет N : (1)950261 [08:54:07]line ИНН: 02508201610067 [08:54:07]line Контрольно-Кассовый Чек [08:54:07]line ПРОДАЖА [08:54:07]line ТРК (МРК, ГНК) : 31 [08:54:07]line Товар: 2710124130 [08:54:07]line Аи-92-К-4 [08:54:07]line 4.430 * 67.80 [08:54:07]line = 300.35 [08:54:07]line НДС 12% НСП 1% [08:54:07]line > о реализуемом товаре [08:54:07]line ОКРУГЛЕНИЕ: -0.35 [08:54:07]line ИТОГО: 300.00 [08:54:07]line Внесено: 300.00 [08:54:07]line СДАЧА: 0.00 [08:54:07]line НСП 1% : 2.66 [08:54:07]line НДС 12% : 31.90 [08:54:07]line Наличными: 300.00 [08:54:07]line Безнал.: 0.00 [08:54:07]line Место: АЗС № 134 "Партнер Нефть" [08:54:07]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:54:07]line СНО: Общий режим [08:54:07]line Чек 66 31.07.2024 08:54 [08:54:07]line Смена: 436 ФФД: 1.0 [08:54:07]line ЗНМ: 0300000044 [08:54:07]line РНМ: 0000000000092660 [08:54:07]line Версия ККМ: 001 [08:54:07]line ФМ: 0000000000874939 [08:54:07]line ФД: 119335 [08:54:07]line ФПД: 189888377332157 [08:54:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T085407&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119335&fm=189888377332157&tin=02508201610067®Number=0000000000092660&sum=30000 [08:54:08]OFD Sender: Processing packet 119335 [packets to send 86, broken 85] [08:54:08]ProducePacketName [08:54:08]name=ofd_packets/00119335 [08:54:08]OFD Sender: To server: pG, [08:54:08]CommunicateWithHost lk.salyk.kg:30040 [08:54:08]ConnectInit lk.salyk.kg [08:54:08]written 0, free lines is 4095 [08:54:08]Connected sock=10 [08:54: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 39 33 39 0F 01 00 00 B4 45 07 01 82 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 AF FB A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 27 D2 01 00 35 04 06 00 AC B3 D5 47 21 BD F0 7D E2 15 36 6B 1B 29 [08:54:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 37 93 47 00 56 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 39 33 39 10 04 04 00 27 D2 01 00 F4 03 04 00 39 A9 A9 66 B6 04 01 00 00 C9 9C EE 74 F0 56 21 47 [08:54:08]CommunicateWithHost err = 0 [08:54:08]CheckOFDResponse [08:54:08]1017 (14) - 77093643461234 [08:54:08]1041 (16) - 0000000000874939 [08:54:08]1040 (4) - 119335 [08:54:08]1012 (4) - 31.07.2024 03:02 [08:54:08]1206 (1) - 0 [08:54:08]OFD Sender: Remove packet 119335 [08:54:08]ProducePacketName [08:54:08]name=ofd_packets/00119335 [08:54:08]NVStorageDeleteData [08:54:08]Write to MH i2c: 01 00 00 11 11 22 [08:54:08]Write i2c OK [08:54:08]MH_I2C_Read... [08:54:08]Read from MH i2c: 01 [08:54:08]MH_I2C_Read... [08:54:08]Read from MH i2c: 01 07 00 [08:54:08]MH_I2C_Read... [08:54:08]Read from MH i2c: 01 07 00 11 11 00 00 00 00 00 D9 0C 0E [08:54:08]RasterBufferAndPrint [08:54:08]line [08:54:08]line [08:54:08]line [08:54:08]line [08:54:08]line [08:54:08]written 0, free lines is 3297 [08:54:08]MH_Cut [08:54:08]Write to MH i2c: D1 01 00 18 11 01 FB [08:54:08]Write i2c OK [08:54:08]MH_I2C_Read... [08:54:08]Read from MH i2c: D1 [08:54:08]MH_I2C_Read... [08:54:08]Read from MH i2c: D1 01 00 [08:54:08]MH_I2C_Read... [08:54:08]Read from MH i2c: D1 01 00 18 11 00 FA [08:54:08]Write to MH i2c: 01 00 00 19 11 2A [08:54:08]Write i2c OK [08:54:08]MH_I2C_Read... [08:54:08]OFD Sender: No OFD packet to send [08:54:09]*** Cut start [08:54:09]*** Partial cut [08:54:09]*** CUTSNS_PIN = 1 [08:54:09]*** CUTSNS_PIN = 0 [08:54:09]*** Brake cut motor [08:54:09]Read from MH i2c: 01 [08:54:09]MH_I2C_Read... [08:54:09]*** Stop cut motor [08:54:09]*** Cut end [08:54:09]Read from MH i2c: 01 07 00 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: 01 07 00 19 11 00 00 00 00 00 FF 0F 3F [08:54:09]process_action close_receipt done [08:54:09]requested_data is exist [08:54:09]produce_requested_data [08:54:09]requested_item fm.sn is exist - process it [08:54:09]wFMCommunicate request_size=4 [08:54:09]MH_SAM_APDU [08:54:09]CAPDU: 80 11 00 00 [08:54:09]Write to MH i2c: E2 08 00 1A 11 80 11 00 00 00 00 00 00 A5 [08:54:09]Write i2c OK [08:54:09]MH_I2C_Read... [08:54:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:09]Read from MH i2c: E2 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: E2 17 00 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: E2 17 00 1A 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 00 [08:54:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:54:09]wFMCommunicate OK [08:54:09]requested_item fd.num is exist - process it [08:54:09]SAM_PROTO_GetFieldsCounters [08:54:09]wFMCommunicate request_size=4 [08:54:09]MH_SAM_APDU [08:54:09]CAPDU: 80 13 00 00 [08:54:09]Write to MH i2c: E2 08 00 1B 11 80 13 00 00 00 00 00 00 A8 [08:54:09]Write i2c OK [08:54:09]MH_I2C_Read... [08:54:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:54:10]Read from MH i2c: E2 [08:54:10]MH_I2C_Read... [08:54:10]Read from MH i2c: E2 62 00 [08:54:10]MH_I2C_Read... [08:54:10]Read from MH i2c: E2 62 00 1B 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 27 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [08:54: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 27 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:54:10]wFMCommunicate OK [08:54:10]SAM_PROTO_GetFieldsCounters done [08:54:10]requested_item shift.num is exist - process it [08:54:10]requested_item shift.opened is exist - process it [08:54:10]req_shift_opened [08:54:10]FM_GetShiftState [08:54:10]SAM_PROTO_GetShiftState [08:54:10]wFMCommunicate request_size=4 [08:54:10]MH_SAM_APDU [08:54:10]CAPDU: 80 13 01 00 [08:54:10]Write to MH i2c: E2 08 00 1C 11 80 13 01 00 00 00 00 00 AA [08:54:10]Write i2c OK [08:54:10]MH_I2C_Read... [08:54:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:10]Read from MH i2c: E2 [08:54:10]MH_I2C_Read... [08:54:10]Read from MH i2c: E2 0E 00 [08:54:10]MH_I2C_Read... [08:54:10]Read from MH i2c: E2 0E 00 1C 11 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 42 [08:54:10]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [08:54:10]wFMCommunicate OK [08:54:10]SAM_PROTO_GetShiftState done [08:54:10]FM_GetShiftState done [08:54:10]req_shift_opened done [08:54:10]requested_item shift.open_date is exist - process it [08:54:10]req_shift_open_date [08:54:10]req_shift_open_date done [08:54:10]produce_requested_data done [08:54:10]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119335,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [08:54:10]process_action_free close_receipt [08:54:10]json_value_free [08:54:10]json_value_free done [08:54:10]process_json_proto returns [08:54:10]Send response to host [08:54:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119335,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [08:54:10]free response buf [08:54:10]execute_script done [08:54:10]execute_script returns [08:54:10]free content buf [08:54:10]Sock 9.Close socket [08:54:10]Sock 9.Thread stoped [08:54:13]OFD Sender: No OFD packet to send [08:54:18]OFD Sender: No OFD packet to send [08:54:23]OFD Sender: No OFD packet to send [08:54:28]OFD Sender: No OFD packet to send [08:54:33]OFD Sender: No OFD packet to send [08:54:38]OFD Sender: No OFD packet to send [08:54:43]OFD Sender: No OFD packet to send [08:54:48]OFD Sender: No OFD packet to send [08:54:54]OFD Sender: No OFD packet to send [08:54:59]OFD Sender: No OFD packet to send [08:55:04]OFD Sender: No OFD packet to send [08:55:09]OFD Sender: No OFD packet to send [08:55:14]OFD Sender: No OFD packet to send [08:55:19]OFD Sender: No OFD packet to send [08:55:24]OFD Sender: No OFD packet to send [08:55:29]OFD Sender: No OFD packet to send [08:55:34]OFD Sender: No OFD packet to send [08:55:39]OFD Sender: No OFD packet to send [08:55:44]OFD Sender: No OFD packet to send [08:55:45]accept exits with 8 [08:55:45]New connection [08:55:45]New thread 3067194724 created [08:55:45]Thread 3067338084 joined [08:55:45]Waiting for new connection... [08:55:45] Sock 8.Parse request [08:55:45]Sock 8.Check first char [08:55:45]Sock 8.First char is OK [08:55:45]request: POST /json_proto HTTP/1.0 [08:55:45]Method: POST [08:55:45]URL: /json_proto [08:55:45]Method is POST - this is cgi request [08:55:45]url: /json_proto [08:55:45]query_string will be loaded in cgi processing [08:55:45]execute_cgi json_proto POST (null) [08:55:45]execute_cgi path=json_proto method=POST [08:55:45]POST find Content-Length [08:55:45]Host: 172.17.45.7:8080 [08:55:45]Content-Length: 835 [08:55:45]Content-Type: application/json [08:55:45] [08:55:45]POST finish read [08:55:45]Found Content-Length = 835 [08:55:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.20, "quantity" : 10.500, "sum" : 705.60, "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 \u0411\u0430\u043D\u043A", "total" : 705.00, "payments": [ { "type": 1, "sum" : 705.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:45]execute_script... [08:55:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.20, "quantity" : 10.500, "sum" : 705.60, "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 \u0411\u0430\u043D\u043A", "total" : 705.00, "payments": [ { "type": 1, "sum" : 705.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:45]POST & json_proto [08:55:45]process_json_proto [08:55:45]json parsed OK: [08:55:45]protocol is kg_v1.0 [08:55:45]action value=close_receipt [08:55:45]process_action close_receipt [08:55:45]cmd_close_receipt [08:55:45]MH_GetDate [08:55:45]Write to MH i2c: F0 00 00 1D 11 1D [08:55:45]Write i2c OK [08:55:45]MH_I2C_Read... [08:55:45]Read from MH i2c: F0 [08:55:45]MH_I2C_Read... [08:55:45]Read from MH i2c: F0 09 00 [08:55:45]MH_I2C_Read... [08:55:45]Read from MH i2c: F0 09 00 1D 11 00 13 FC A9 66 90 0F 3E 66 87 [08:55:45]GetLastDocTimeStamp 1722416047 [08:55:45]current date 1722416147 [08:55:45]FM_GetShiftState [08:55:45]SAM_PROTO_GetShiftState [08:55:45]wFMCommunicate request_size=4 [08:55:45]MH_SAM_APDU [08:55:45]CAPDU: 80 13 01 00 [08:55:45]Write to MH i2c: E2 08 00 1E 11 80 13 01 00 00 00 00 00 AC [08:55:45]Write i2c OK [08:55:45]MH_I2C_Read... [08:55:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:45]Read from MH i2c: E2 [08:55:45]MH_I2C_Read... [08:55:45]Read from MH i2c: E2 0E 00 [08:55:45]MH_I2C_Read... [08:55:45]Read from MH i2c: E2 0E 00 1E 11 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 44 [08:55:45]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [08:55:45]wFMCommunicate OK [08:55:45]SAM_PROTO_GetShiftState done [08:55:45]FM_GetShiftState done [08:55:45]opened in 1722384637 [08:55:45]opened+sec_in_day 1722471037 [08:55:45]quantity*price = 70560 [08:55:45]sum+1 = 70561 [08:55:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 705.00 НСП 1% : 6.24 НДС 12% : 74.93 Наличными: 0.00 Безнал.: 705.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 67 31.07.2024 08:55 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874939 ФД: 119336 ФПД: 252650272795159 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T085547&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119336&fm=252650272795159&tin=02508201610067®Number=0000000000092660&sum=70500 [08:55:47]StoreToDocumentArchive [08:55:47]shift 436 fd 119336 [08:55:47]save to /storage/0436/doc_00119336 [08:55:47]save last doc name /storage/0436/doc_00119336 to /storage/kkm_last_doc_name [08:55:47]save OK [08:55:47]Clear old archive folders... [08:55:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:55:47]tlvbuf is 00AD7170 [08:55:47]SAM_PROTO_ClearQueue [08:55:47]wFMCommunicate request_size=4 [08:55:47]MH_SAM_APDU [08:55:47]CAPDU: 80 09 00 00 [08:55:47]Write to MH i2c: E2 08 00 2B 11 80 09 00 00 00 00 00 00 AE [08:55:47]Write i2c OK [08:55:47]MH_I2C_Read... [08:55:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:55:47]Read from MH i2c: E2 [08:55:47]MH_I2C_Read... [08:55:47]Read from MH i2c: E2 03 00 [08:55:47]MH_I2C_Read... [08:55:47]Read from MH i2c: E2 03 00 2B 11 00 90 00 B0 [08:55:47]RAPDU: 90 00 [08:55:47]wFMCommunicate OK [08:55:47]SAM_PROTO_ClearQueue done [08:55:47]KKMCreateOFDPacket [08:55:47]OFDProtocolAddRootSTLVToBuf [08:55:47]FM_MakeSignedData [08:55:47]FM_MakeSignedData [08:55:47]SAM_PROTO_SignData [08:55:47]wFMCommunicate request_size=4 [08:55:47]MH_SAM_APDU [08:55:47]CAPDU: 80 0D 01 02 [08:55:47]Write to MH i2c: E2 08 00 2C 11 80 0D 01 02 00 00 00 00 B6 [08:55:47]Write i2c OK [08:55:47]MH_I2C_Read... [08:55:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:55:47]Read from MH i2c: E2 [08:55:47]MH_I2C_Read... [08:55:47]Read from MH i2c: E2 03 00 [08:55:47]MH_I2C_Read... [08:55:47]Read from MH i2c: E2 03 00 2C 11 00 90 00 B1 [08:55:47]RAPDU: 90 00 [08:55:47]wFMCommunicate OK [08:55:47]wFMCommunicate request_size=255 [08:55:47]MH_SAM_APDU [08:55: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 34 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 40 1A 00 00 00 00 13 04 06 00 A0 13 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 13 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 13 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 13 FC A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 28 D2 01 00 35 04 06 00 E5 [08:55:47]Write to MH i2c: E2 02 01 2D 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 40 1A 00 00 00 00 13 04 06 00 A0 13 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 13 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 13 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 13 FC A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 28 D2 01 00 35 04 06 00 E5 00 00 BA [08:55:47]Write i2c OK [08:55:47]MH_I2C_Read... [08:55:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:47]Read from MH i2c: E2 [08:55:47]MH_I2C_Read... [08:55:47]Read from MH i2c: E2 03 00 [08:55:47]MH_I2C_Read... [08:55:47]Read from MH i2c: E2 03 00 2D 11 00 90 00 B2 [08:55:47]RAPDU: 90 00 [08:55:47]wFMCommunicate OK [08:55:47]wFMCommunicate request_size=10 [08:55:47]MH_SAM_APDU [08:55:47]CAPDU: 80 0D 02 02 05 C8 B9 C3 2A 17 [08:55:47]Write to MH i2c: E2 0D 00 2E 11 80 0D 02 02 05 00 C8 B9 C3 2A 17 00 00 48 [08:55:47]Write i2c OK [08:55:47]MH_I2C_Read... [08:55:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:47]Read from MH i2c: E2 [08:55:47]MH_I2C_Read... [08:55:47]Read from MH i2c: E2 03 00 [08:55:47]MH_I2C_Read... [08:55:47]Read from MH i2c: E2 03 00 2E 11 00 90 00 B3 [08:55:47]RAPDU: 90 00 [08:55:47]wFMCommunicate OK [08:55:47]wFMCommunicate request_size=4 [08:55:47]MH_SAM_APDU [08:55:47]CAPDU: 80 0D 03 02 [08:55:47]Write to MH i2c: E2 08 00 2F 11 80 0D 03 02 00 00 00 00 BB [08:55:47]Write i2c OK [08:55:47]MH_I2C_Read... [08:55:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:55:47]Read from MH i2c: E2 [08:55:47]MH_I2C_Read... [08:55:47]Read from MH i2c: E2 0B 00 [08:55:47]MH_I2C_Read... [08:55:47]Read from MH i2c: E2 0B 00 2F 11 00 C3 7F 9D 9A 71 A3 8D E8 90 00 BE [08:55:47]RAPDU: C3 7F 9D 9A 71 A3 8D E8 90 00 [08:55:47]wFMCommunicate OK [08:55:47]SAM_PROTO_SignData done [08:55:47]FM_MakeSignedData done [08:55:47]CreateOFDProtocolMessage [08:55:47]wFMCommunicate request_size=4 [08:55:47]MH_SAM_APDU [08:55:47]CAPDU: 80 11 00 00 [08:55:47]Write to MH i2c: E2 08 00 30 11 80 11 00 00 00 00 00 00 BB [08:55:47]Write i2c OK [08:55:47]MH_I2C_Read... [08:55:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:47]Read from MH i2c: E2 [08:55:47]MH_I2C_Read... [08:55:47]Read from MH i2c: E2 17 00 [08:55:47]MH_I2C_Read... [08:55:47]Read from MH i2c: E2 17 00 30 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 16 [08:55:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:55:47]wFMCommunicate OK [08:55:47]CreateOFDProtocolMessage done [08:55:47]OFDSenderStorePacket 119336 [08:55:47]StoreOFDPacket docnum=119336 [08:55:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 52 39 07 01 99 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 40 1A 00 00 00 00 13 04 06 00 A0 13 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 13 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 13 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 13 FC A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 28 D2 01 00 35 04 06 00 E5 C8 B9 C3 2A 17 C3 7F 9D 9A 71 A3 8D E8 [08:55:47]CheckFolder [08:55:47]dirname=/storage/ofd_packets [08:55:47]CheckFolder done [08:55:47]ProducePacketName [08:55:47]name=ofd_packets/00119336 [08:55:47]NVStorageSaveData ofd_packets/00119336 [08:55:47]File name is /storage/ofd_packets/00119336 [08:55:47]Write 301 bytes [08:55:47]NVStorageSaveData done [08:55:47]OFDSenderStorePacket done [08:55:47]KKMCreateOFDPacket done [08:55:47]NVStorageSaveData kkm_last_timestamp [08:55:47]File name is /storage/kkm_last_timestamp [08:55:47]Write 4 bytes [08:55:47]NVStorageSaveData done [08:55:47]ExternCall_PrintAddStr [08:55:47]wPrintStart [08:55:47]Write to MH i2c: 01 00 00 31 11 42 [08:55:47]Write i2c OK [08:55:47]MH_I2C_Read... [08:55:47]Read from MH i2c: 01 [08:55:47]MH_I2C_Read... [08:55:47]Read from MH i2c: 01 07 00 [08:55:47]MH_I2C_Read... [08:55:47]Read from MH i2c: 01 07 00 31 11 00 00 00 00 00 FF 0F 57 [08:55:47]RasterBufferAndPrint [08:55:47]line Счет N : (1)950262 [08:55:47]line ИНН: 02508201610067 [08:55:47]line Контрольно-Кассовый Чек [08:55:47]line ПРОДАЖА [08:55:47]line ТРК (МРК, ГНК) : 51 [08:55:47]line Товар: 2710124130 [08:55:47]line Аи-92-К-4 [08:55:47]line 10.500 * 67.20 [08:55:47]line = 705.60 [08:55:47]line НДС 12% НСП 1% [08:55:47]line > о реализуемом товаре [08:55:47]line ОКРУГЛЕНИЕ: -0.60 [08:55:47]line ИТОГО: 705.00 [08:55:47]line НСП 1% : 6.24 [08:55:47]line НДС 12% : 74.93 [08:55:47]line Наличными: 0.00 [08:55:47]line Безнал.: 705.00 [08:55:47]line Место: АЗС № 134 "Партнер Нефть" [08:55:47]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:55:47]line СНО: Общий режим [08:55:47]line Чек 67 31.07.2024 08:55 [08:55:47]line Смена: 436 ФФД: 1.0 [08:55:47]line ЗНМ: 0300000044 [08:55:47]line РНМ: 0000000000092660 [08:55:47]line Версия ККМ: 001 [08:55:47]line Платежная система: Бакай Банк [08:55:47]line ФМ: 0000000000874939 [08:55:47]line ФД: 119336 [08:55:47]line ФПД: 252650272795159 [08:55:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T085547&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119336&fm=252650272795159&tin=02508201610067®Number=0000000000092660&sum=70500 [08:55:47]written 0, free lines is 4095 [08:55:47]OFD Sender: Processing packet 119336 [packets to send 86, broken 85] [08:55:47]ProducePacketName [08:55:47]name=ofd_packets/00119336 [08:55:47]OFD Sender: To server: pG, [08:55:47]CommunicateWithHost lk.salyk.kg:30040 [08:55:47]ConnectInit lk.salyk.kg [08:55:48]Connected sock=11 [08:55:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 52 39 07 01 99 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 40 1A 00 00 00 00 13 04 06 00 A0 13 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 13 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 13 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 13 FC A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 28 D2 01 00 35 04 06 00 E5 C8 B9 C3 2A 17 C3 7F 9D 9A 71 A3 8D E8 [08:55:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 03 54 47 00 CA C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 39 33 39 10 04 04 00 28 D2 01 00 F4 03 04 00 9C A9 A9 66 B6 04 01 00 00 8D FE BD EB BA 8D 74 29 [08:55:48]CommunicateWithHost err = 0 [08:55:48]CheckOFDResponse [08:55:48]1017 (14) - 77093643461234 [08:55:48]1041 (16) - 0000000000874939 [08:55:48]1040 (4) - 119336 [08:55:48]1012 (4) - 31.07.2024 03:03 [08:55:48]1206 (1) - 0 [08:55:48]OFD Sender: Remove packet 119336 [08:55:48]ProducePacketName [08:55:48]name=ofd_packets/00119336 [08:55:48]NVStorageDeleteData [08:55:48]Write to MH i2c: 01 00 00 5B 11 6C [08:55:48]Write i2c OK [08:55:48]MH_I2C_Read... [08:55:48]Read from MH i2c: 01 [08:55:48]MH_I2C_Read... [08:55:48]Read from MH i2c: 01 07 00 [08:55:48]MH_I2C_Read... [08:55:48]Read from MH i2c: 01 07 00 5B 11 00 00 00 00 00 DC 0C 5B [08:55:48]RasterBufferAndPrint [08:55:48]line [08:55:48]line [08:55:48]line [08:55:48]line [08:55:48]line [08:55:48]written 0, free lines is 3298 [08:55:48]MH_Cut [08:55:48]Write to MH i2c: D1 01 00 62 11 01 45 [08:55:48]Write i2c OK [08:55:48]MH_I2C_Read... [08:55:48]Read from MH i2c: D1 [08:55:48]MH_I2C_Read... [08:55:48]Read from MH i2c: D1 01 00 [08:55:48]MH_I2C_Read... [08:55:48]Read from MH i2c: D1 01 00 62 11 00 44 [08:55:48]Write to MH i2c: 01 00 00 63 11 74 [08:55:48]Write i2c OK [08:55:48]MH_I2C_Read... [08:55:48]OFD Sender: No OFD packet to send [08:55:49]*** Cut start [08:55:49]*** Partial cut [08:55:49]*** CUTSNS_PIN = 1 [08:55:49]*** CUTSNS_PIN = 0 [08:55:49]*** Brake cut motor [08:55:49]Read from MH i2c: 01 [08:55:49]MH_I2C_Read... [08:55:49]*** Stop cut motor [08:55:49]*** Cut end [08:55:49]Read from MH i2c: 01 07 00 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: 01 07 00 63 11 00 00 00 00 00 FF 0F 89 [08:55:49]process_action close_receipt done [08:55:49]requested_data is exist [08:55:49]produce_requested_data [08:55:49]requested_item fm.sn is exist - process it [08:55:49]wFMCommunicate request_size=4 [08:55:49]MH_SAM_APDU [08:55:49]CAPDU: 80 11 00 00 [08:55:49]Write to MH i2c: E2 08 00 64 11 80 11 00 00 00 00 00 00 EF [08:55:49]Write i2c OK [08:55:49]MH_I2C_Read... [08:55:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:49]Read from MH i2c: E2 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: E2 17 00 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: E2 17 00 64 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4A [08:55:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:55:49]wFMCommunicate OK [08:55:49]requested_item fd.num is exist - process it [08:55:49]SAM_PROTO_GetFieldsCounters [08:55:49]wFMCommunicate request_size=4 [08:55:49]MH_SAM_APDU [08:55:49]CAPDU: 80 13 00 00 [08:55:49]Write to MH i2c: E2 08 00 65 11 80 13 00 00 00 00 00 00 F2 [08:55:49]Write i2c OK [08:55:49]MH_I2C_Read... [08:55:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:49]Read from MH i2c: E2 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: E2 62 00 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: E2 62 00 65 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 28 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [08:55: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 28 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:55:49]wFMCommunicate OK [08:55:49]SAM_PROTO_GetFieldsCounters done [08:55:49]requested_item shift.num is exist - process it [08:55:49]requested_item shift.opened is exist - process it [08:55:49]req_shift_opened [08:55:49]FM_GetShiftState [08:55:49]SAM_PROTO_GetShiftState [08:55:49]wFMCommunicate request_size=4 [08:55:49]MH_SAM_APDU [08:55:49]CAPDU: 80 13 01 00 [08:55:49]Write to MH i2c: E2 08 00 66 11 80 13 01 00 00 00 00 00 F4 [08:55:49]Write i2c OK [08:55:49]MH_I2C_Read... [08:55:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:49]Read from MH i2c: E2 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: E2 0E 00 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: E2 0E 00 66 11 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 8C [08:55:49]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [08:55:49]wFMCommunicate OK [08:55:49]SAM_PROTO_GetShiftState done [08:55:49]FM_GetShiftState done [08:55:49]req_shift_opened done [08:55:49]requested_item shift.open_date is exist - process it [08:55:49]req_shift_open_date [08:55:49]req_shift_open_date done [08:55:49]produce_requested_data done [08:55:49]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119336,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [08:55:49]process_action_free close_receipt [08:55:49]json_value_free [08:55:49]json_value_free done [08:55:49]process_json_proto returns [08:55:49]Send response to host [08:55:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119336,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [08:55:49]free response buf [08:55:49]execute_script done [08:55:49]execute_script returns [08:55:49]free content buf [08:55:49]Sock 8.Close socket [08:55:49]Sock 8.Thread stoped [08:55:53]OFD Sender: No OFD packet to send [08:55:58]OFD Sender: No OFD packet to send [08:56:03]OFD Sender: No OFD packet to send [08:56:08]OFD Sender: No OFD packet to send [08:56:13]OFD Sender: No OFD packet to send [08:56:18]OFD Sender: No OFD packet to send [08:56:23]OFD Sender: No OFD packet to send [08:56:28]OFD Sender: No OFD packet to send [08:56:29]accept exits with 9 [08:56:29]New connection [08:56:29]New thread 3067338084 created [08:56:29]Thread 3067194724 joined [08:56:29]Waiting for new connection... [08:56:29] Sock 9.Parse request [08:56:29]Sock 9.Check first char [08:56:29]Sock 9.First char is OK [08:56:29]request: POST /json_proto HTTP/1.0 [08:56:29]Method: POST [08:56:29]URL: /json_proto [08:56:29]Method is POST - this is cgi request [08:56:29]url: /json_proto [08:56:29]query_string will be loaded in cgi processing [08:56:29]execute_cgi json_proto POST (null) [08:56:29]execute_cgi path=json_proto method=POST [08:56:29]POST find Content-Length [08:56:29]Host: 172.17.45.7:8080 [08:56:29]Content-Length: 679 [08:56:29]Content-Type: application/json [08:56:29] [08:56:29]POST finish read [08:56:29]Found Content-Length = 679 [08:56:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:29]execute_script... [08:56: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)950263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:29]POST & json_proto [08:56:29]process_json_proto [08:56:29]json parsed OK: [08:56:29]protocol is kg_v1.0 [08:56:29]action value=close_receipt [08:56:29]process_action close_receipt [08:56:29]cmd_close_receipt [08:56:29]MH_GetDate [08:56:29]Write to MH i2c: F0 00 00 67 11 67 [08:56:29]Write i2c OK [08:56:29]MH_I2C_Read... [08:56:29]Read from MH i2c: F0 [08:56:29]MH_I2C_Read... [08:56:29]Read from MH i2c: F0 09 00 [08:56:29]MH_I2C_Read... [08:56:29]Read from MH i2c: F0 09 00 67 11 00 3E FC A9 66 90 0F 3E 66 FC [08:56:29]GetLastDocTimeStamp 1722416147 [08:56:29]current date 1722416190 [08:56:29]FM_GetShiftState [08:56:29]SAM_PROTO_GetShiftState [08:56:29]wFMCommunicate request_size=4 [08:56:29]MH_SAM_APDU [08:56:29]CAPDU: 80 13 01 00 [08:56:29]Write to MH i2c: E2 08 00 68 11 80 13 01 00 00 00 00 00 F6 [08:56:29]Write i2c OK [08:56:29]MH_I2C_Read... [08:56:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:29]Read from MH i2c: E2 [08:56:29]MH_I2C_Read... [08:56:29]Read from MH i2c: E2 0E 00 [08:56:29]MH_I2C_Read... [08:56:29]Read from MH i2c: E2 0E 00 68 11 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 8E [08:56:29]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [08:56:29]wFMCommunicate OK [08:56:29]SAM_PROTO_GetShiftState done [08:56:29]FM_GetShiftState done [08:56:29]opened in 1722384637 [08:56:29]opened+sec_in_day 1722471037 [08:56:29]quantity*price = 100050 [08:56:29]sum+1 = 100052 [08:56:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 68 31.07.2024 08:56 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119337 ФПД: 119697443730721 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T085630&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119337&fm=119697443730721&tin=02508201610067®Number=0000000000092660&sum=100000 [08:56:30]StoreToDocumentArchive [08:56:30]shift 436 fd 119337 [08:56:30]save to /storage/0436/doc_00119337 [08:56:30]save last doc name /storage/0436/doc_00119337 to /storage/kkm_last_doc_name [08:56:30]save OK [08:56:30]Clear old archive folders... [08:56:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:56:30]tlvbuf is 00AF2910 [08:56:30]SAM_PROTO_ClearQueue [08:56:30]wFMCommunicate request_size=4 [08:56:30]MH_SAM_APDU [08:56:30]CAPDU: 80 09 00 00 [08:56:30]Write to MH i2c: E2 08 00 75 11 80 09 00 00 00 00 00 00 F8 [08:56:30]Write i2c OK [08:56:30]MH_I2C_Read... [08:56:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:56:30]Read from MH i2c: E2 [08:56:30]MH_I2C_Read... [08:56:30]Read from MH i2c: E2 03 00 [08:56:30]MH_I2C_Read... [08:56:30]Read from MH i2c: E2 03 00 75 11 00 90 00 FA [08:56:30]RAPDU: 90 00 [08:56:30]wFMCommunicate OK [08:56:30]SAM_PROTO_ClearQueue done [08:56:30]KKMCreateOFDPacket [08:56:30]OFDProtocolAddRootSTLVToBuf [08:56:30]FM_MakeSignedData [08:56:30]FM_MakeSignedData [08:56:30]SAM_PROTO_SignData [08:56:30]wFMCommunicate request_size=4 [08:56:30]MH_SAM_APDU [08:56:30]CAPDU: 80 0D 01 02 [08:56:30]Write to MH i2c: E2 08 00 76 11 80 0D 01 02 00 00 00 00 00 [08:56:30]Write i2c OK [08:56:30]MH_I2C_Read... [08:56:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:56:30]Read from MH i2c: E2 [08:56:30]MH_I2C_Read... [08:56:30]Read from MH i2c: E2 03 00 [08:56:30]MH_I2C_Read... [08:56:30]Read from MH i2c: E2 03 00 76 11 00 90 00 FB [08:56:30]RAPDU: 90 00 [08:56:30]wFMCommunicate OK [08:56:30]wFMCommunicate request_size=255 [08:56:30]MH_SAM_APDU [08:56:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 3E FC A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 29 D2 01 00 35 04 06 00 6C DD 3B 9D [08:56:30]Write to MH i2c: E2 02 01 77 11 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 3E FC A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 29 D2 01 00 35 04 06 00 6C DD 3B 9D 00 00 EF [08:56:30]Write i2c OK [08:56:30]MH_I2C_Read... [08:56:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:30]Read from MH i2c: E2 [08:56:30]MH_I2C_Read... [08:56:30]Read from MH i2c: E2 03 00 [08:56:30]MH_I2C_Read... [08:56:30]Read from MH i2c: E2 03 00 77 11 00 90 00 FC [08:56:30]RAPDU: 90 00 [08:56:30]wFMCommunicate OK [08:56:30]wFMCommunicate request_size=7 [08:56:30]MH_SAM_APDU [08:56:30]CAPDU: 80 0D 02 02 02 35 21 [08:56:30]Write to MH i2c: E2 0A 00 78 11 80 0D 02 02 02 00 35 21 00 00 5D [08:56:30]Write i2c OK [08:56:30]MH_I2C_Read... [08:56:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:30]Read from MH i2c: E2 [08:56:30]MH_I2C_Read... [08:56:30]Read from MH i2c: E2 03 00 [08:56:30]MH_I2C_Read... [08:56:30]Read from MH i2c: E2 03 00 78 11 00 90 00 FD [08:56:30]RAPDU: 90 00 [08:56:30]wFMCommunicate OK [08:56:30]wFMCommunicate request_size=4 [08:56:30]MH_SAM_APDU [08:56:30]CAPDU: 80 0D 03 02 [08:56:30]Write to MH i2c: E2 08 00 79 11 80 0D 03 02 00 00 00 00 05 [08:56:30]Write i2c OK [08:56:30]MH_I2C_Read... [08:56:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:56:30]Read from MH i2c: E2 [08:56:30]MH_I2C_Read... [08:56:30]Read from MH i2c: E2 0B 00 [08:56:30]MH_I2C_Read... [08:56:30]Read from MH i2c: E2 0B 00 79 11 00 70 5A 71 39 EC 06 B6 14 90 00 36 [08:56:30]RAPDU: 70 5A 71 39 EC 06 B6 14 90 00 [08:56:30]wFMCommunicate OK [08:56:30]SAM_PROTO_SignData done [08:56:30]FM_MakeSignedData done [08:56:30]CreateOFDProtocolMessage [08:56:30]wFMCommunicate request_size=4 [08:56:30]MH_SAM_APDU [08:56:30]CAPDU: 80 11 00 00 [08:56:30]Write to MH i2c: E2 08 00 7A 11 80 11 00 00 00 00 00 00 05 [08:56:30]Write i2c OK [08:56:30]MH_I2C_Read... [08:56:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:30]Read from MH i2c: E2 [08:56:30]MH_I2C_Read... [08:56:30]Read from MH i2c: E2 17 00 [08:56:30]MH_I2C_Read... [08:56:30]Read from MH i2c: E2 17 00 7A 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 60 [08:56:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:56:30]wFMCommunicate OK [08:56:30]CreateOFDProtocolMessage done [08:56:30]OFDSenderStorePacket 119337 [08:56:30]StoreOFDPacket docnum=119337 [08:56:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 77 04 04 01 05 D6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 3E FC A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 29 D2 01 00 35 04 06 00 6C DD 3B 9D 35 21 70 5A 71 39 EC 06 B6 14 [08:56:30]CheckFolder [08:56:30]dirname=/storage/ofd_packets [08:56:30]CheckFolder done [08:56:30]ProducePacketName [08:56:30]name=ofd_packets/00119337 [08:56:30]NVStorageSaveData ofd_packets/00119337 [08:56:30]File name is /storage/ofd_packets/00119337 [08:56:30]Write 298 bytes [08:56:30]NVStorageSaveData done [08:56:30]OFDSenderStorePacket done [08:56:30]KKMCreateOFDPacket done [08:56:30]NVStorageSaveData kkm_last_timestamp [08:56:30]File name is /storage/kkm_last_timestamp [08:56:30]Write 4 bytes [08:56:30]NVStorageSaveData done [08:56:30]ExternCall_PrintAddStr [08:56:30]wPrintStart [08:56:30]Write to MH i2c: 01 00 00 7B 11 8C [08:56:30]Write i2c OK [08:56:30]MH_I2C_Read... [08:56:30]Read from MH i2c: 01 [08:56:30]MH_I2C_Read... [08:56:30]Read from MH i2c: 01 07 00 [08:56:30]MH_I2C_Read... [08:56:30]Read from MH i2c: 01 07 00 7B 11 00 00 00 00 00 FF 0F A1 [08:56:30]RasterBufferAndPrint [08:56:30]line Счет N : (1)950263 [08:56:30]line ИНН: 02508201610067 [08:56:30]line Контрольно-Кассовый Чек [08:56:30]line ПРОДАЖА [08:56:30]line ТРК (МРК, ГНК) : 34 [08:56:30]line Товар: 2710194800 [08:56:30]line ДТ-К-5 [08:56:30]line 13.130 * 76.20 [08:56:30]line = 1000.51 [08:56:30]line НДС 12% НСП 1% [08:56:30]line > о реализуемом товаре [08:56:30]line ОКРУГЛЕНИЕ: -0.51 [08:56:30]line ИТОГО: 1000.00 [08:56:30]line Внесено: 1000.00 [08:56:30]line СДАЧА: 0.00 [08:56:30]line НСП 1% : 8.85 [08:56:30]line НДС 12% : 106.25 [08:56:30]line Наличными: 1000.00 [08:56:30]line Безнал.: 0.00 [08:56:30]line Место: АЗС № 134 "Партнер Нефть" [08:56:30]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:56:30]line СНО: Общий режим [08:56:30]line Чек 68 31.07.2024 08:56 [08:56:30]line Смена: 436 ФФД: 1.0 [08:56:30]line ЗНМ: 0300000044 [08:56:30]line РНМ: 0000000000092660 [08:56:30]line Версия ККМ: 001 [08:56:30]line ФМ: 0000000000874939 [08:56:30]line ФД: 119337 [08:56:30]line ФПД: 119697443730721 [08:56:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T085630&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119337&fm=119697443730721&tin=02508201610067®Number=0000000000092660&sum=100000 [08:56:31]OFD Sender: Processing packet 119337 [packets to send 86, broken 85] [08:56:31]ProducePacketName [08:56:31]name=ofd_packets/00119337 [08:56:31]OFD Sender: To server: pG, [08:56:31]CommunicateWithHost lk.salyk.kg:30040 [08:56:31]ConnectInit lk.salyk.kg [08:56:31]written 0, free lines is 4095 [08:56:31]Connected sock=10 [08:56: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 39 33 39 0C 01 00 00 77 04 04 01 05 D6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 3E FC A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 29 D2 01 00 35 04 06 00 6C DD 3B 9D 35 21 70 5A 71 39 EC 06 B6 14 [08:56:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 0E 30 47 00 AF D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 39 33 39 10 04 04 00 29 D2 01 00 F4 03 04 00 C8 A9 A9 66 B6 04 01 00 00 B1 25 50 60 B9 2E 87 83 [08:56:31]CommunicateWithHost err = 0 [08:56:31]CheckOFDResponse [08:56:31]1017 (14) - 77093643461234 [08:56:31]1041 (16) - 0000000000874939 [08:56:31]1040 (4) - 119337 [08:56:31]1012 (4) - 31.07.2024 03:04 [08:56:31]1206 (1) - 0 [08:56:31]OFD Sender: Remove packet 119337 [08:56:31]ProducePacketName [08:56:31]name=ofd_packets/00119337 [08:56:31]NVStorageDeleteData [08:56:31]Write to MH i2c: 01 00 00 A5 11 B6 [08:56:31]Write i2c OK [08:56:31]MH_I2C_Read... [08:56:31]Read from MH i2c: 01 [08:56:31]MH_I2C_Read... [08:56:31]Read from MH i2c: 01 07 00 [08:56:31]MH_I2C_Read... [08:56:31]Read from MH i2c: 01 07 00 A5 11 00 00 00 00 00 D1 0C 9A [08:56:31]RasterBufferAndPrint [08:56:31]line [08:56:31]line [08:56:31]line [08:56:31]line [08:56:31]line [08:56:31]written 0, free lines is 3285 [08:56:31]MH_Cut [08:56:31]Write to MH i2c: D1 01 00 AC 11 01 8F [08:56:31]Write i2c OK [08:56:31]MH_I2C_Read... [08:56:31]Read from MH i2c: D1 [08:56:31]MH_I2C_Read... [08:56:31]Read from MH i2c: D1 01 00 [08:56:31]MH_I2C_Read... [08:56:31]Read from MH i2c: D1 01 00 AC 11 00 8E [08:56:31]Write to MH i2c: 01 00 00 AD 11 BE [08:56:31]Write i2c OK [08:56:31]MH_I2C_Read... [08:56:32]OFD Sender: No OFD packet to send [08:56:32]*** Cut start [08:56:32]*** Partial cut [08:56:32]*** CUTSNS_PIN = 1 [08:56:32]*** CUTSNS_PIN = 0 [08:56:32]*** Brake cut motor [08:56:32]Read from MH i2c: 01 [08:56:32]MH_I2C_Read... [08:56:32]*** Stop cut motor [08:56:32]*** Cut end [08:56:32]Read from MH i2c: 01 07 00 [08:56:32]MH_I2C_Read... [08:56:32]Read from MH i2c: 01 07 00 AD 11 00 00 00 00 00 FF 0F D3 [08:56:32]process_action close_receipt done [08:56:32]requested_data is exist [08:56:32]produce_requested_data [08:56:32]requested_item fm.sn is exist - process it [08:56:32]wFMCommunicate request_size=4 [08:56:32]MH_SAM_APDU [08:56:32]CAPDU: 80 11 00 00 [08:56:32]Write to MH i2c: E2 08 00 AE 11 80 11 00 00 00 00 00 00 39 [08:56:32]Write i2c OK [08:56:32]MH_I2C_Read... [08:56:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:33]Read from MH i2c: E2 [08:56:33]MH_I2C_Read... [08:56:33]Read from MH i2c: E2 17 00 [08:56:33]MH_I2C_Read... [08:56:33]Read from MH i2c: E2 17 00 AE 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 94 [08:56:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:56:33]wFMCommunicate OK [08:56:33]requested_item fd.num is exist - process it [08:56:33]SAM_PROTO_GetFieldsCounters [08:56:33]wFMCommunicate request_size=4 [08:56:33]MH_SAM_APDU [08:56:33]CAPDU: 80 13 00 00 [08:56:33]Write to MH i2c: E2 08 00 AF 11 80 13 00 00 00 00 00 00 3C [08:56:33]Write i2c OK [08:56:33]MH_I2C_Read... [08:56:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:56:33]Read from MH i2c: E2 [08:56:33]MH_I2C_Read... [08:56:33]Read from MH i2c: E2 62 00 [08:56:33]MH_I2C_Read... [08:56:33]Read from MH i2c: E2 62 00 AF 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 29 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [08:56: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 29 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:56:33]wFMCommunicate OK [08:56:33]SAM_PROTO_GetFieldsCounters done [08:56:33]requested_item shift.num is exist - process it [08:56:33]requested_item shift.opened is exist - process it [08:56:33]req_shift_opened [08:56:33]FM_GetShiftState [08:56:33]SAM_PROTO_GetShiftState [08:56:33]wFMCommunicate request_size=4 [08:56:33]MH_SAM_APDU [08:56:33]CAPDU: 80 13 01 00 [08:56:33]Write to MH i2c: E2 08 00 B0 11 80 13 01 00 00 00 00 00 3E [08:56:33]Write i2c OK [08:56:33]MH_I2C_Read... [08:56:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:33]Read from MH i2c: E2 [08:56:33]MH_I2C_Read... [08:56:33]Read from MH i2c: E2 0E 00 [08:56:33]MH_I2C_Read... [08:56:33]Read from MH i2c: E2 0E 00 B0 11 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 D6 [08:56:33]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [08:56:33]wFMCommunicate OK [08:56:33]SAM_PROTO_GetShiftState done [08:56:33]FM_GetShiftState done [08:56:33]req_shift_opened done [08:56:33]requested_item shift.open_date is exist - process it [08:56:33]req_shift_open_date [08:56:33]req_shift_open_date done [08:56:33]produce_requested_data done [08:56:33]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119337,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [08:56:33]process_action_free close_receipt [08:56:33]json_value_free [08:56:33]json_value_free done [08:56:33]process_json_proto returns [08:56:33]Send response to host [08:56:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119337,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [08:56:33]free response buf [08:56:33]execute_script done [08:56:33]execute_script returns [08:56:33]free content buf [08:56:33]Sock 9.Close socket [08:56:33]Sock 9.Thread stoped [08:56:37]OFD Sender: No OFD packet to send [08:56:42]OFD Sender: No OFD packet to send [08:56:47]OFD Sender: No OFD packet to send [08:56:52]OFD Sender: No OFD packet to send [08:56:57]OFD Sender: No OFD packet to send [08:57:02]OFD Sender: No OFD packet to send [08:57:07]OFD Sender: No OFD packet to send [08:57:12]OFD Sender: No OFD packet to send [08:57:16]accept exits with 8 [08:57:16]New connection [08:57:16]New thread 3067194724 created [08:57:16]Thread 3067338084 joined [08:57:16]Waiting for new connection... [08:57:16] Sock 8.Parse request [08:57:16]Sock 8.Check first char [08:57:16]Sock 8.First char is OK [08:57:16]request: POST /json_proto HTTP/1.0 [08:57:16]Method: POST [08:57:16]URL: /json_proto [08:57:16]Method is POST - this is cgi request [08:57:16]url: /json_proto [08:57:16]query_string will be loaded in cgi processing [08:57:16]execute_cgi json_proto POST (null) [08:57:16]execute_cgi path=json_proto method=POST [08:57:16]POST find Content-Length [08:57:16]Host: 172.17.45.7:8080 [08:57:16]Content-Length: 677 [08:57:16]Content-Type: application/json [08:57:16] [08:57:16]POST finish read [08:57:16]Found Content-Length = 677 [08:57:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:16]execute_script... [08:57:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:16]POST & json_proto [08:57:16]process_json_proto [08:57:16]json parsed OK: [08:57:16]protocol is kg_v1.0 [08:57:16]action value=close_receipt [08:57:16]process_action close_receipt [08:57:16]cmd_close_receipt [08:57:16]MH_GetDate [08:57:16]Write to MH i2c: F0 00 00 B1 11 B1 [08:57:16]Write i2c OK [08:57:16]MH_I2C_Read... [08:57:16]Read from MH i2c: F0 [08:57:16]MH_I2C_Read... [08:57:16]Read from MH i2c: F0 09 00 [08:57:16]MH_I2C_Read... [08:57:16]Read from MH i2c: F0 09 00 B1 11 00 6D FC A9 66 90 0F 3E 66 75 [08:57:16]GetLastDocTimeStamp 1722416190 [08:57:16]current date 1722416237 [08:57:16]FM_GetShiftState [08:57:16]SAM_PROTO_GetShiftState [08:57:16]wFMCommunicate request_size=4 [08:57:16]MH_SAM_APDU [08:57:16]CAPDU: 80 13 01 00 [08:57:16]Write to MH i2c: E2 08 00 B2 11 80 13 01 00 00 00 00 00 40 [08:57:16]Write i2c OK [08:57:16]MH_I2C_Read... [08:57:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:16]Read from MH i2c: E2 [08:57:16]MH_I2C_Read... [08:57:16]Read from MH i2c: E2 0E 00 [08:57:16]MH_I2C_Read... [08:57:16]Read from MH i2c: E2 0E 00 B2 11 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 D8 [08:57:16]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [08:57:16]wFMCommunicate OK [08:57:16]SAM_PROTO_GetShiftState done [08:57:16]FM_GetShiftState done [08:57:16]opened in 1722384637 [08:57:16]opened+sec_in_day 1722471037 [08:57:16]quantity*price = 60003 [08:57:16]sum+1 = 60004 [08:57:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 69 31.07.2024 08:57 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119338 ФПД: 213526092930069 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T085717&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119338&fm=213526092930069&tin=02508201610067®Number=0000000000092660&sum=60000 [08:57:17]StoreToDocumentArchive [08:57:17]shift 436 fd 119338 [08:57:17]save to /storage/0436/doc_00119338 [08:57:17]save last doc name /storage/0436/doc_00119338 to /storage/kkm_last_doc_name [08:57:17]save OK [08:57:17]Clear old archive folders... [08:57:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:57:17]tlvbuf is 00AFFE70 [08:57:17]SAM_PROTO_ClearQueue [08:57:17]wFMCommunicate request_size=4 [08:57:17]MH_SAM_APDU [08:57:17]CAPDU: 80 09 00 00 [08:57:17]Write to MH i2c: E2 08 00 BF 11 80 09 00 00 00 00 00 00 42 [08:57:17]Write i2c OK [08:57:17]MH_I2C_Read... [08:57:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:57:17]Read from MH i2c: E2 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: E2 03 00 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: E2 03 00 BF 11 00 90 00 44 [08:57:17]RAPDU: 90 00 [08:57:17]wFMCommunicate OK [08:57:17]SAM_PROTO_ClearQueue done [08:57:17]KKMCreateOFDPacket [08:57:17]OFDProtocolAddRootSTLVToBuf [08:57:17]FM_MakeSignedData [08:57:17]FM_MakeSignedData [08:57:17]SAM_PROTO_SignData [08:57:17]wFMCommunicate request_size=4 [08:57:17]MH_SAM_APDU [08:57:17]CAPDU: 80 0D 01 02 [08:57:17]Write to MH i2c: E2 08 00 C0 11 80 0D 01 02 00 00 00 00 4A [08:57:17]Write i2c OK [08:57:17]MH_I2C_Read... [08:57:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:57:17]Read from MH i2c: E2 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: E2 03 00 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: E2 03 00 C0 11 00 90 00 45 [08:57:17]RAPDU: 90 00 [08:57:17]wFMCommunicate OK [08:57:17]wFMCommunicate request_size=255 [08:57:17]MH_SAM_APDU [08:57:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 45 00 00 00 F4 03 04 00 6D FC A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2A D2 01 00 35 04 06 00 C2 [08:57:17]Write to MH i2c: E2 02 01 C1 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 45 00 00 00 F4 03 04 00 6D FC A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2A D2 01 00 35 04 06 00 C2 00 00 C6 [08:57:17]Write i2c OK [08:57:17]MH_I2C_Read... [08:57:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:17]Read from MH i2c: E2 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: E2 03 00 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: E2 03 00 C1 11 00 90 00 46 [08:57:17]RAPDU: 90 00 [08:57:17]wFMCommunicate OK [08:57:17]wFMCommunicate request_size=10 [08:57:17]MH_SAM_APDU [08:57:17]CAPDU: 80 0D 02 02 05 33 6A EB 5C 15 [08:57:17]Write to MH i2c: E2 0D 00 C2 11 80 0D 02 02 05 00 33 6A EB 5C 15 00 00 50 [08:57:17]Write i2c OK [08:57:17]MH_I2C_Read... [08:57:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:17]Read from MH i2c: E2 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: E2 03 00 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: E2 03 00 C2 11 00 90 00 47 [08:57:17]RAPDU: 90 00 [08:57:17]wFMCommunicate OK [08:57:17]wFMCommunicate request_size=4 [08:57:17]MH_SAM_APDU [08:57:17]CAPDU: 80 0D 03 02 [08:57:17]Write to MH i2c: E2 08 00 C3 11 80 0D 03 02 00 00 00 00 4F [08:57:17]Write i2c OK [08:57:17]MH_I2C_Read... [08:57:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:57:17]Read from MH i2c: E2 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: E2 0B 00 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: E2 0B 00 C3 11 00 B9 7C 3D 53 9A 38 28 7C 90 00 8B [08:57:17]RAPDU: B9 7C 3D 53 9A 38 28 7C 90 00 [08:57:17]wFMCommunicate OK [08:57:17]SAM_PROTO_SignData done [08:57:17]FM_MakeSignedData done [08:57:17]CreateOFDProtocolMessage [08:57:17]wFMCommunicate request_size=4 [08:57:17]MH_SAM_APDU [08:57:17]CAPDU: 80 11 00 00 [08:57:17]Write to MH i2c: E2 08 00 C4 11 80 11 00 00 00 00 00 00 4F [08:57:17]Write i2c OK [08:57:17]MH_I2C_Read... [08:57:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:17]Read from MH i2c: E2 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: E2 17 00 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: E2 17 00 C4 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AA [08:57:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:57:17]wFMCommunicate OK [08:57:17]CreateOFDProtocolMessage done [08:57:17]OFDSenderStorePacket 119338 [08:57:17]StoreOFDPacket docnum=119338 [08:57:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 72 0E 07 01 24 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 45 00 00 00 F4 03 04 00 6D FC A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2A D2 01 00 35 04 06 00 C2 33 6A EB 5C 15 B9 7C 3D 53 9A 38 28 7C [08:57:17]CheckFolder [08:57:17]dirname=/storage/ofd_packets [08:57:17]CheckFolder done [08:57:17]ProducePacketName [08:57:17]name=ofd_packets/00119338 [08:57:17]NVStorageSaveData ofd_packets/00119338 [08:57:17]File name is /storage/ofd_packets/00119338 [08:57:17]Write 301 bytes [08:57:17]NVStorageSaveData done [08:57:17]OFDSenderStorePacket done [08:57:17]KKMCreateOFDPacket done [08:57:17]NVStorageSaveData kkm_last_timestamp [08:57:17]File name is /storage/kkm_last_timestamp [08:57:17]Write 4 bytes [08:57:17]NVStorageSaveData done [08:57:17]ExternCall_PrintAddStr [08:57:17]wPrintStart [08:57:17]Write to MH i2c: 01 00 00 C5 11 D6 [08:57:17]Write i2c OK [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: 01 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: 01 07 00 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: 01 07 00 C5 11 00 00 00 00 00 FF 0F EB [08:57:17]RasterBufferAndPrint [08:57:17]line Счет N : (1)950264 [08:57:17]line ИНН: 02508201610067 [08:57:17]line Контрольно-Кассовый Чек [08:57:17]line ПРОДАЖА [08:57:17]line ТРК (МРК, ГНК) : 51 [08:57:17]line Товар: 2710124130 [08:57:17]line Аи-92-К-4 [08:57:17]line 8.850 * 67.80 [08:57:17]line = 600.03 [08:57:17]line НДС 12% НСП 1% [08:57:17]line > о реализуемом товаре [08:57:17]line ОКРУГЛЕНИЕ: -0.03 [08:57:17]line ИТОГО: 600.00 [08:57:17]line Внесено: 600.00 [08:57:17]line СДАЧА: 0.00 [08:57:17]line НСП 1% : 5.31 [08:57:17]line НДС 12% : 63.72 [08:57:17]line Наличными: 600.00 [08:57:17]line Безнал.: 0.00 [08:57:17]line Место: АЗС № 134 "Партнер Нефть" [08:57:17]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:57:17]line СНО: Общий режим [08:57:17]line Чек 69 31.07.2024 08:57 [08:57:17]line Смена: 436 ФФД: 1.0 [08:57:17]line ЗНМ: 0300000044 [08:57:17]line РНМ: 0000000000092660 [08:57:17]line Версия ККМ: 001 [08:57:17]line ФМ: 0000000000874939 [08:57:17]line ФД: 119338 [08:57:17]line ФПД: 213526092930069 [08:57:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T085717&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119338&fm=213526092930069&tin=02508201610067®Number=0000000000092660&sum=60000 [08:57:17]written 0, free lines is 4095 [08:57:17]OFD Sender: Processing packet 119338 [packets to send 86, broken 85] [08:57:17]ProducePacketName [08:57:17]name=ofd_packets/00119338 [08:57:17]OFD Sender: To server: pG, [08:57:17]CommunicateWithHost lk.salyk.kg:30040 [08:57:17]ConnectInit lk.salyk.kg [08:57:18]Connected sock=11 [08:57: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 39 33 39 0F 01 00 00 72 0E 07 01 24 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 45 00 00 00 F4 03 04 00 6D FC A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2A D2 01 00 35 04 06 00 C2 33 6A EB 5C 15 B9 7C 3D 53 9A 38 28 7C [08:57:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 64 56 47 00 9E 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2A D2 01 00 F4 03 04 00 F6 A9 A9 66 B6 04 01 00 00 AF 7A 57 FC 54 40 41 53 [08:57:18]CommunicateWithHost err = 0 [08:57:18]CheckOFDResponse [08:57:18]1017 (14) - 77093643461234 [08:57:18]1041 (16) - 0000000000874939 [08:57:18]1040 (4) - 119338 [08:57:18]1012 (4) - 31.07.2024 03:05 [08:57:18]1206 (1) - 0 [08:57:18]OFD Sender: Remove packet 119338 [08:57:18]ProducePacketName [08:57:18]name=ofd_packets/00119338 [08:57:18]NVStorageDeleteData [08:57:18]Write to MH i2c: 01 00 00 EF 11 00 [08:57:18]Write i2c OK [08:57:18]MH_I2C_Read... [08:57:18]Read from MH i2c: 01 [08:57:18]MH_I2C_Read... [08:57:18]Read from MH i2c: 01 07 00 [08:57:18]MH_I2C_Read... [08:57:18]Read from MH i2c: 01 07 00 EF 11 00 00 00 00 00 D1 0C E4 [08:57:18]RasterBufferAndPrint [08:57:18]line [08:57:18]line [08:57:18]line [08:57:18]line [08:57:18]line [08:57:18]written 0, free lines is 3285 [08:57:18]MH_Cut [08:57:18]Write to MH i2c: D1 01 00 F6 11 01 D9 [08:57:18]Write i2c OK [08:57:18]MH_I2C_Read... [08:57:18]Read from MH i2c: D1 [08:57:18]MH_I2C_Read... [08:57:18]Read from MH i2c: D1 01 00 [08:57:18]MH_I2C_Read... [08:57:18]Read from MH i2c: D1 01 00 F6 11 00 D8 [08:57:18]Write to MH i2c: 01 00 00 F7 11 08 [08:57:18]Write i2c OK [08:57:18]MH_I2C_Read... [08:57:18]OFD Sender: No OFD packet to send [08:57:19]*** Cut start [08:57:19]*** Partial cut [08:57:19]*** CUTSNS_PIN = 1 [08:57:19]*** CUTSNS_PIN = 0 [08:57:19]*** Brake cut motor [08:57:19]Read from MH i2c: 01 [08:57:19]MH_I2C_Read... [08:57:19]*** Stop cut motor [08:57:19]*** Cut end [08:57:19]Read from MH i2c: 01 07 00 [08:57:19]MH_I2C_Read... [08:57:19]Read from MH i2c: 01 07 00 F7 11 00 00 00 00 00 FF 0F 1D [08:57:19]process_action close_receipt done [08:57:19]requested_data is exist [08:57:19]produce_requested_data [08:57:19]requested_item fm.sn is exist - process it [08:57:19]wFMCommunicate request_size=4 [08:57:19]MH_SAM_APDU [08:57:19]CAPDU: 80 11 00 00 [08:57:19]Write to MH i2c: E2 08 00 F8 11 80 11 00 00 00 00 00 00 83 [08:57:19]Write i2c OK [08:57:19]MH_I2C_Read... [08:57:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:19]Read from MH i2c: E2 [08:57:19]MH_I2C_Read... [08:57:19]Read from MH i2c: E2 17 00 [08:57:19]MH_I2C_Read... [08:57:19]Read from MH i2c: E2 17 00 F8 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DE [08:57:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:57:19]wFMCommunicate OK [08:57:19]requested_item fd.num is exist - process it [08:57:19]SAM_PROTO_GetFieldsCounters [08:57:19]wFMCommunicate request_size=4 [08:57:19]MH_SAM_APDU [08:57:19]CAPDU: 80 13 00 00 [08:57:19]Write to MH i2c: E2 08 00 F9 11 80 13 00 00 00 00 00 00 86 [08:57:19]Write i2c OK [08:57:19]MH_I2C_Read... [08:57:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:57:19]Read from MH i2c: E2 [08:57:19]MH_I2C_Read... [08:57:19]Read from MH i2c: E2 62 00 [08:57:19]MH_I2C_Read... [08:57:19]Read from MH i2c: E2 62 00 F9 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2A D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [08:57: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2A D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:57:19]wFMCommunicate OK [08:57:19]SAM_PROTO_GetFieldsCounters done [08:57:19]requested_item shift.num is exist - process it [08:57:19]requested_item shift.opened is exist - process it [08:57:19]req_shift_opened [08:57:19]FM_GetShiftState [08:57:19]SAM_PROTO_GetShiftState [08:57:19]wFMCommunicate request_size=4 [08:57:19]MH_SAM_APDU [08:57:19]CAPDU: 80 13 01 00 [08:57:19]Write to MH i2c: E2 08 00 FA 11 80 13 01 00 00 00 00 00 88 [08:57:19]Write i2c OK [08:57:19]MH_I2C_Read... [08:57:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:19]Read from MH i2c: E2 [08:57:19]MH_I2C_Read... [08:57:19]Read from MH i2c: E2 0E 00 [08:57:19]MH_I2C_Read... [08:57:19]Read from MH i2c: E2 0E 00 FA 11 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 20 [08:57:19]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [08:57:19]wFMCommunicate OK [08:57:19]SAM_PROTO_GetShiftState done [08:57:19]FM_GetShiftState done [08:57:19]req_shift_opened done [08:57:19]requested_item shift.open_date is exist - process it [08:57:19]req_shift_open_date [08:57:19]req_shift_open_date done [08:57:19]produce_requested_data done [08:57:19]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119338,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [08:57:19]process_action_free close_receipt [08:57:19]json_value_free [08:57:19]json_value_free done [08:57:19]process_json_proto returns [08:57:19]Send response to host [08:57:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119338,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [08:57:19]free response buf [08:57:19]execute_script done [08:57:19]execute_script returns [08:57:19]free content buf [08:57:19]Sock 8.Close socket [08:57:19]Sock 8.Thread stoped [08:57:23]OFD Sender: No OFD packet to send [08:57:28]OFD Sender: No OFD packet to send [08:57:33]OFD Sender: No OFD packet to send [08:57:38]OFD Sender: No OFD packet to send [08:57:43]OFD Sender: No OFD packet to send [08:57:48]OFD Sender: No OFD packet to send [08:57:53]OFD Sender: No OFD packet to send [08:57:58]OFD Sender: No OFD packet to send [08:58:03]OFD Sender: No OFD packet to send [08:58:08]OFD Sender: No OFD packet to send [08:58:13]OFD Sender: No OFD packet to send [08:58:18]OFD Sender: No OFD packet to send [08:58:23]OFD Sender: No OFD packet to send [08:58:28]OFD Sender: No OFD packet to send [08:58:33]OFD Sender: No OFD packet to send [08:58:38]OFD Sender: No OFD packet to send [08:58:43]OFD Sender: No OFD packet to send [08:58:48]OFD Sender: No OFD packet to send [08:58:53]OFD Sender: No OFD packet to send [08:58:58]OFD Sender: No OFD packet to send [08:59:03]OFD Sender: No OFD packet to send [08:59:08]OFD Sender: No OFD packet to send [08:59:13]OFD Sender: No OFD packet to send [08:59:18]OFD Sender: No OFD packet to send [08:59:23]OFD Sender: No OFD packet to send [08:59:28]OFD Sender: No OFD packet to send [08:59:33]OFD Sender: No OFD packet to send [08:59:38]OFD Sender: No OFD packet to send [08:59:43]OFD Sender: No OFD packet to send [08:59:48]OFD Sender: No OFD packet to send [08:59:53]OFD Sender: No OFD packet to send [08:59:58]OFD Sender: No OFD packet to send [09:00:03]OFD Sender: No OFD packet to send [09:00:08]OFD Sender: No OFD packet to send [09:00:13]OFD Sender: No OFD packet to send [09:00:18]OFD Sender: No OFD packet to send [09:00:24]OFD Sender: No OFD packet to send [09:00:29]OFD Sender: No OFD packet to send [09:00:34]OFD Sender: No OFD packet to send [09:00:39]OFD Sender: No OFD packet to send [09:00:44]OFD Sender: No OFD packet to send [09:00:49]OFD Sender: No OFD packet to send [09:00:54]OFD Sender: No OFD packet to send [09:00:59]OFD Sender: No OFD packet to send [09:01:04]OFD Sender: No OFD packet to send [09:01:09]OFD Sender: No OFD packet to send [09:01:14]OFD Sender: No OFD packet to send [09:01:19]OFD Sender: No OFD packet to send [09:01:24]OFD Sender: No OFD packet to send [09:01:29]OFD Sender: No OFD packet to send [09:01:34]OFD Sender: No OFD packet to send [09:01:39]OFD Sender: No OFD packet to send [09:01:44]OFD Sender: No OFD packet to send [09:01:49]OFD Sender: No OFD packet to send [09:01:54]OFD Sender: No OFD packet to send [09:01:59]OFD Sender: No OFD packet to send [09:02:04]OFD Sender: No OFD packet to send [09:02:09]OFD Sender: No OFD packet to send [09:02:14]OFD Sender: No OFD packet to send [09:02:19]OFD Sender: No OFD packet to send [09:02:24]OFD Sender: No OFD packet to send [09:02:29]OFD Sender: No OFD packet to send [09:02:34]OFD Sender: No OFD packet to send [09:02:39]OFD Sender: No OFD packet to send [09:02:44]OFD Sender: No OFD packet to send [09:02:49]OFD Sender: No OFD packet to send [09:02:54]OFD Sender: No OFD packet to send [09:02:59]OFD Sender: No OFD packet to send [09:03:04]OFD Sender: No OFD packet to send [09:03:09]OFD Sender: No OFD packet to send [09:03:14]OFD Sender: No OFD packet to send [09:03:19]OFD Sender: No OFD packet to send [09:03:24]OFD Sender: No OFD packet to send [09:03:29]OFD Sender: No OFD packet to send [09:03:34]OFD Sender: No OFD packet to send [09:03:39]OFD Sender: No OFD packet to send [09:03:44]OFD Sender: No OFD packet to send [09:03:49]OFD Sender: No OFD packet to send [09:03:54]OFD Sender: No OFD packet to send [09:03:59]OFD Sender: No OFD packet to send [09:04:04]OFD Sender: No OFD packet to send [09:04:09]OFD Sender: No OFD packet to send [09:04:14]OFD Sender: No OFD packet to send [09:04:19]OFD Sender: No OFD packet to send [09:04:24]OFD Sender: No OFD packet to send [09:04:29]OFD Sender: No OFD packet to send [09:04:34]OFD Sender: No OFD packet to send [09:04:39]OFD Sender: No OFD packet to send [09:04:44]OFD Sender: No OFD packet to send [09:04:49]OFD Sender: No OFD packet to send [09:04:54]OFD Sender: No OFD packet to send [09:04:59]OFD Sender: No OFD packet to send [09:05:04]OFD Sender: No OFD packet to send [09:05:09]OFD Sender: No OFD packet to send [09:05:14]OFD Sender: No OFD packet to send [09:05:19]OFD Sender: No OFD packet to send [09:05:24]OFD Sender: No OFD packet to send [09:05:29]OFD Sender: No OFD packet to send [09:05:34]OFD Sender: No OFD packet to send [09:05:39]OFD Sender: No OFD packet to send [09:05:44]OFD Sender: No OFD packet to send [09:05:49]OFD Sender: No OFD packet to send [09:05:54]OFD Sender: No OFD packet to send [09:05:59]OFD Sender: No OFD packet to send [09:06:04]OFD Sender: No OFD packet to send [09:06:09]OFD Sender: No OFD packet to send [09:06:14]OFD Sender: No OFD packet to send [09:06:19]OFD Sender: No OFD packet to send [09:06:24]OFD Sender: No OFD packet to send [09:06:29]OFD Sender: No OFD packet to send [09:06:34]OFD Sender: No OFD packet to send [09:06:39]OFD Sender: No OFD packet to send [09:06:44]OFD Sender: No OFD packet to send [09:06:47]accept exits with 9 [09:06:47]New connection [09:06:47]New thread 3067338084 created [09:06:47]Thread 3067194724 joined [09:06:47]Waiting for new connection... [09:06:47] Sock 9.Parse request [09:06:47]Sock 9.Check first char [09:06:47]Sock 9.First char is OK [09:06:47]request: POST /json_proto HTTP/1.0 [09:06:47]Method: POST [09:06:47]URL: /json_proto [09:06:47]Method is POST - this is cgi request [09:06:47]url: /json_proto [09:06:47]query_string will be loaded in cgi processing [09:06:47]execute_cgi json_proto POST (null) [09:06:47]execute_cgi path=json_proto method=POST [09:06:47]POST find Content-Length [09:06:47]Host: 172.17.45.7:8080 [09:06:47]Content-Length: 682 [09:06:47]Content-Type: application/json [09:06:47] [09:06:47]POST finish read [09:06:47]Found Content-Length = 682 [09:06:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:47]execute_script... [09:06: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)950265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:47]POST & json_proto [09:06:47]process_json_proto [09:06:47]json parsed OK: [09:06:47]protocol is kg_v1.0 [09:06:47]action value=close_receipt [09:06:47]process_action close_receipt [09:06:47]cmd_close_receipt [09:06:47]MH_GetDate [09:06:47]Write to MH i2c: F0 00 00 FB 11 FB [09:06:47]Write i2c OK [09:06:47]MH_I2C_Read... [09:06:47]Read from MH i2c: F0 [09:06:47]MH_I2C_Read... [09:06:47]Read from MH i2c: F0 09 00 [09:06:47]MH_I2C_Read... [09:06:47]Read from MH i2c: F0 09 00 FB 11 00 A9 FE A9 66 90 0F 3E 66 FD [09:06:47]GetLastDocTimeStamp 1722416237 [09:06:47]current date 1722416809 [09:06:47]FM_GetShiftState [09:06:47]SAM_PROTO_GetShiftState [09:06:47]wFMCommunicate request_size=4 [09:06:47]MH_SAM_APDU [09:06:47]CAPDU: 80 13 01 00 [09:06:47]Write to MH i2c: E2 08 00 FC 11 80 13 01 00 00 00 00 00 8A [09:06:47]Write i2c OK [09:06:47]MH_I2C_Read... [09:06:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:47]Read from MH i2c: E2 [09:06:47]MH_I2C_Read... [09:06:47]Read from MH i2c: E2 0E 00 [09:06:47]MH_I2C_Read... [09:06:47]Read from MH i2c: E2 0E 00 FC 11 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 22 [09:06:47]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:06:47]wFMCommunicate OK [09:06:47]SAM_PROTO_GetShiftState done [09:06:47]FM_GetShiftState done [09:06:47]opened in 1722384637 [09:06:47]opened+sec_in_day 1722471037 [09:06:47]quantity*price = 100005 [09:06:47]sum+1 = 100006 [09:06:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 70 31.07.2024 09:06 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119339 ФПД: 144402836282328 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T090649&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119339&fm=144402836282328&tin=02508201610067®Number=0000000000092660&sum=100000 [09:06:49]StoreToDocumentArchive [09:06:49]shift 436 fd 119339 [09:06:49]save to /storage/0436/doc_00119339 [09:06:49]save last doc name /storage/0436/doc_00119339 to /storage/kkm_last_doc_name [09:06:49]save OK [09:06:49]Clear old archive folders... [09:06:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:06:49]tlvbuf is B6F06720 [09:06:49]SAM_PROTO_ClearQueue [09:06:49]wFMCommunicate request_size=4 [09:06:49]MH_SAM_APDU [09:06:49]CAPDU: 80 09 00 00 [09:06:49]Write to MH i2c: E2 08 00 09 12 80 09 00 00 00 00 00 00 8D [09:06:49]Write i2c OK [09:06:49]MH_I2C_Read... [09:06:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:06:49]Read from MH i2c: E2 [09:06:49]MH_I2C_Read... [09:06:49]Read from MH i2c: E2 03 00 [09:06:49]MH_I2C_Read... [09:06:49]Read from MH i2c: E2 03 00 09 12 00 90 00 8F [09:06:49]RAPDU: 90 00 [09:06:49]wFMCommunicate OK [09:06:49]SAM_PROTO_ClearQueue done [09:06:49]KKMCreateOFDPacket [09:06:49]OFDProtocolAddRootSTLVToBuf [09:06:49]FM_MakeSignedData [09:06:49]FM_MakeSignedData [09:06:49]SAM_PROTO_SignData [09:06:49]wFMCommunicate request_size=4 [09:06:49]MH_SAM_APDU [09:06:49]CAPDU: 80 0D 01 02 [09:06:49]Write to MH i2c: E2 08 00 0A 12 80 0D 01 02 00 00 00 00 95 [09:06:49]Write i2c OK [09:06:49]MH_I2C_Read... [09:06:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:06:49]Read from MH i2c: E2 [09:06:49]MH_I2C_Read... [09:06:49]Read from MH i2c: E2 03 00 [09:06:49]MH_I2C_Read... [09:06:49]Read from MH i2c: E2 03 00 0A 12 00 90 00 90 [09:06:49]RAPDU: 90 00 [09:06:49]wFMCommunicate OK [09:06:49]wFMCommunicate request_size=255 [09:06:49]MH_SAM_APDU [09:06:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 46 00 00 00 F4 03 04 00 A9 FE A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2B D2 01 00 35 04 06 00 83 [09:06:49]Write to MH i2c: E2 02 01 0B 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 46 00 00 00 F4 03 04 00 A9 FE A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2B D2 01 00 35 04 06 00 83 00 00 DA [09:06:49]Write i2c OK [09:06:49]MH_I2C_Read... [09:06:49]OFD Sender: No OFD packet to send [09:06:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:49]Read from MH i2c: E2 [09:06:49]MH_I2C_Read... [09:06:49]Read from MH i2c: E2 03 00 [09:06:49]MH_I2C_Read... [09:06:49]Read from MH i2c: E2 03 00 0B 12 00 90 00 91 [09:06:49]RAPDU: 90 00 [09:06:49]wFMCommunicate OK [09:06:49]wFMCommunicate request_size=10 [09:06:49]MH_SAM_APDU [09:06:49]CAPDU: 80 0D 02 02 05 55 67 C2 DB D8 [09:06:49]Write to MH i2c: E2 0D 00 0C 12 80 0D 02 02 05 00 55 67 C2 DB D8 00 00 D3 [09:06:49]Write i2c OK [09:06:49]MH_I2C_Read... [09:06:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:49]Read from MH i2c: E2 [09:06:49]MH_I2C_Read... [09:06:49]Read from MH i2c: E2 03 00 [09:06:49]MH_I2C_Read... [09:06:49]Read from MH i2c: E2 03 00 0C 12 00 90 00 92 [09:06:49]RAPDU: 90 00 [09:06:49]wFMCommunicate OK [09:06:49]wFMCommunicate request_size=4 [09:06:49]MH_SAM_APDU [09:06:49]CAPDU: 80 0D 03 02 [09:06:49]Write to MH i2c: E2 08 00 0D 12 80 0D 03 02 00 00 00 00 9A [09:06:49]Write i2c OK [09:06:49]MH_I2C_Read... [09:06:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:49]Read from MH i2c: E2 [09:06:49]MH_I2C_Read... [09:06:49]Read from MH i2c: E2 0B 00 [09:06:49]MH_I2C_Read... [09:06:49]Read from MH i2c: E2 0B 00 0D 12 00 92 57 6D 7B 94 6A EF F5 90 00 4E [09:06:49]RAPDU: 92 57 6D 7B 94 6A EF F5 90 00 [09:06:49]wFMCommunicate OK [09:06:49]SAM_PROTO_SignData done [09:06:49]FM_MakeSignedData done [09:06:49]CreateOFDProtocolMessage [09:06:49]wFMCommunicate request_size=4 [09:06:49]MH_SAM_APDU [09:06:49]CAPDU: 80 11 00 00 [09:06:49]Write to MH i2c: E2 08 00 0E 12 80 11 00 00 00 00 00 00 9A [09:06:49]Write i2c OK [09:06:49]MH_I2C_Read... [09:06:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:49]Read from MH i2c: E2 [09:06:49]MH_I2C_Read... [09:06:49]Read from MH i2c: E2 17 00 [09:06:49]MH_I2C_Read... [09:06:49]Read from MH i2c: E2 17 00 0E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F5 [09:06:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:06:49]wFMCommunicate OK [09:06:49]CreateOFDProtocolMessage done [09:06:49]OFDSenderStorePacket 119339 [09:06:49]StoreOFDPacket docnum=119339 [09:06:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4C 30 07 01 E5 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 46 00 00 00 F4 03 04 00 A9 FE A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2B D2 01 00 35 04 06 00 83 55 67 C2 DB D8 92 57 6D 7B 94 6A EF F5 [09:06:49]CheckFolder [09:06:49]dirname=/storage/ofd_packets [09:06:49]CheckFolder done [09:06:49]ProducePacketName [09:06:49]name=ofd_packets/00119339 [09:06:49]NVStorageSaveData ofd_packets/00119339 [09:06:49]File name is /storage/ofd_packets/00119339 [09:06:49]Write 301 bytes [09:06:49]NVStorageSaveData done [09:06:49]OFDSenderStorePacket done [09:06:49]KKMCreateOFDPacket done [09:06:49]NVStorageSaveData kkm_last_timestamp [09:06:49]File name is /storage/kkm_last_timestamp [09:06:49]Write 4 bytes [09:06:49]NVStorageSaveData done [09:06:49]ExternCall_PrintAddStr [09:06:49]wPrintStart [09:06:49]Write to MH i2c: 01 00 00 0F 12 21 [09:06:49]Write i2c OK [09:06:49]MH_I2C_Read... [09:06:49]Read from MH i2c: 01 [09:06:49]MH_I2C_Read... [09:06:49]Read from MH i2c: 01 07 00 [09:06:49]MH_I2C_Read... [09:06:49]Read from MH i2c: 01 07 00 0F 12 00 00 00 00 00 FF 0F 36 [09:06:49]RasterBufferAndPrint [09:06:49]line Счет N : (1)950265 [09:06:49]line ИНН: 02508201610067 [09:06:49]line Контрольно-Кассовый Чек [09:06:49]line ПРОДАЖА [09:06:49]line ТРК (МРК, ГНК) : 31 [09:06:49]line Товар: 2710124130 [09:06:49]line Аи-92-К-4 [09:06:49]line 14.750 * 67.80 [09:06:49]line = 1000.05 [09:06:49]line НДС 12% НСП 1% [09:06:49]line > о реализуемом товаре [09:06:49]line ОКРУГЛЕНИЕ: -0.05 [09:06:49]line ИТОГО: 1000.00 [09:06:49]line Внесено: 1000.00 [09:06:49]line СДАЧА: 0.00 [09:06:49]line НСП 1% : 8.85 [09:06:49]line НДС 12% : 106.20 [09:06:49]line Наличными: 1000.00 [09:06:49]line Безнал.: 0.00 [09:06:49]line Место: АЗС № 134 "Партнер Нефть" [09:06:49]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:06:49]line СНО: Общий режим [09:06:49]line Чек 70 31.07.2024 09:06 [09:06:49]line Смена: 436 ФФД: 1.0 [09:06:49]line ЗНМ: 0300000044 [09:06:49]line РНМ: 0000000000092660 [09:06:49]line Версия ККМ: 001 [09:06:49]line ФМ: 0000000000874939 [09:06:49]line ФД: 119339 [09:06:49]line ФПД: 144402836282328 [09:06:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T090649&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119339&fm=144402836282328&tin=02508201610067®Number=0000000000092660&sum=100000 [09:06:49]OFD Sender: Processing packet 119339 [packets to send 86, broken 85] [09:06:49]ProducePacketName [09:06:49]name=ofd_packets/00119339 [09:06:49]OFD Sender: To server: pG, [09:06:49]CommunicateWithHost lk.salyk.kg:30040 [09:06:49]ConnectInit lk.salyk.kg [09:06:49]written 0, free lines is 4095 [09:06:50]Connected sock=10 [09:06:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4C 30 07 01 E5 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 46 00 00 00 F4 03 04 00 A9 FE A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2B D2 01 00 35 04 06 00 83 55 67 C2 DB D8 92 57 6D 7B 94 6A EF F5 [09:06:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 29 27 47 00 91 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2B D2 01 00 F4 03 04 00 32 AC A9 66 B6 04 01 00 00 A5 05 2A FC 58 34 C0 CB [09:06:50]CommunicateWithHost err = 0 [09:06:50]CheckOFDResponse [09:06:50]1017 (14) - 77093643461234 [09:06:50]1041 (16) - 0000000000874939 [09:06:50]1040 (4) - 119339 [09:06:50]1012 (4) - 31.07.2024 03:14 [09:06:50]1206 (1) - 0 [09:06:50]OFD Sender: Remove packet 119339 [09:06:50]ProducePacketName [09:06:50]name=ofd_packets/00119339 [09:06:50]NVStorageDeleteData [09:06:50]Write to MH i2c: 01 00 00 39 12 4B [09:06:50]Write i2c OK [09:06:50]MH_I2C_Read... [09:06:50]Read from MH i2c: 01 [09:06:50]MH_I2C_Read... [09:06:50]Read from MH i2c: 01 07 00 [09:06:50]MH_I2C_Read... [09:06:50]Read from MH i2c: 01 07 00 39 12 00 00 00 00 00 DC 0C 3A [09:06:50]RasterBufferAndPrint [09:06:50]line [09:06:50]line [09:06:50]line [09:06:50]line [09:06:50]line [09:06:50]written 0, free lines is 3298 [09:06:50]MH_Cut [09:06:50]Write to MH i2c: D1 01 00 40 12 01 24 [09:06:50]Write i2c OK [09:06:50]MH_I2C_Read... [09:06:50]Read from MH i2c: D1 [09:06:50]MH_I2C_Read... [09:06:50]Read from MH i2c: D1 01 00 [09:06:50]MH_I2C_Read... [09:06:50]Read from MH i2c: D1 01 00 40 12 00 23 [09:06:50]Write to MH i2c: 01 00 00 41 12 53 [09:06:50]Write i2c OK [09:06:50]MH_I2C_Read... [09:06:50]OFD Sender: No OFD packet to send [09:06:51]*** Cut start [09:06:51]*** Partial cut [09:06:51]*** CUTSNS_PIN = 1 [09:06:51]*** CUTSNS_PIN = 0 [09:06:51]*** Brake cut motor [09:06:51]Read from MH i2c: 01 [09:06:51]MH_I2C_Read... [09:06:51]*** Stop cut motor [09:06:51]*** Cut end [09:06:51]Read from MH i2c: 01 07 00 [09:06:51]MH_I2C_Read... [09:06:51]Read from MH i2c: 01 07 00 41 12 00 00 00 00 00 FF 0F 68 [09:06:51]process_action close_receipt done [09:06:51]requested_data is exist [09:06:51]produce_requested_data [09:06:51]requested_item fm.sn is exist - process it [09:06:51]wFMCommunicate request_size=4 [09:06:51]MH_SAM_APDU [09:06:51]CAPDU: 80 11 00 00 [09:06:51]Write to MH i2c: E2 08 00 42 12 80 11 00 00 00 00 00 00 CE [09:06:51]Write i2c OK [09:06:51]MH_I2C_Read... [09:06:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:51]Read from MH i2c: E2 [09:06:51]MH_I2C_Read... [09:06:51]Read from MH i2c: E2 17 00 [09:06:51]MH_I2C_Read... [09:06:51]Read from MH i2c: E2 17 00 42 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 29 [09:06:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:06:51]wFMCommunicate OK [09:06:51]requested_item fd.num is exist - process it [09:06:51]SAM_PROTO_GetFieldsCounters [09:06:51]wFMCommunicate request_size=4 [09:06:51]MH_SAM_APDU [09:06:51]CAPDU: 80 13 00 00 [09:06:51]Write to MH i2c: E2 08 00 43 12 80 13 00 00 00 00 00 00 D1 [09:06:51]Write i2c OK [09:06:51]MH_I2C_Read... [09:06:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:51]Read from MH i2c: E2 [09:06:51]MH_I2C_Read... [09:06:51]Read from MH i2c: E2 62 00 [09:06:51]MH_I2C_Read... [09:06:51]Read from MH i2c: E2 62 00 43 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2B D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [09:06: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2B D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:06:51]wFMCommunicate OK [09:06:51]SAM_PROTO_GetFieldsCounters done [09:06:51]requested_item shift.num is exist - process it [09:06:51]requested_item shift.opened is exist - process it [09:06:51]req_shift_opened [09:06:51]FM_GetShiftState [09:06:51]SAM_PROTO_GetShiftState [09:06:51]wFMCommunicate request_size=4 [09:06:51]MH_SAM_APDU [09:06:51]CAPDU: 80 13 01 00 [09:06:51]Write to MH i2c: E2 08 00 44 12 80 13 01 00 00 00 00 00 D3 [09:06:51]Write i2c OK [09:06:51]MH_I2C_Read... [09:06:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:51]Read from MH i2c: E2 [09:06:51]MH_I2C_Read... [09:06:51]Read from MH i2c: E2 0E 00 [09:06:51]MH_I2C_Read... [09:06:51]Read from MH i2c: E2 0E 00 44 12 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 6B [09:06:51]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:06:51]wFMCommunicate OK [09:06:51]SAM_PROTO_GetShiftState done [09:06:51]FM_GetShiftState done [09:06:51]req_shift_opened done [09:06:51]requested_item shift.open_date is exist - process it [09:06:51]req_shift_open_date [09:06:51]req_shift_open_date done [09:06:51]produce_requested_data done [09:06:51]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119339,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [09:06:51]process_action_free close_receipt [09:06:51]json_value_free [09:06:51]json_value_free done [09:06:51]process_json_proto returns [09:06:51]Send response to host [09:06:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119339,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [09:06:52]free response buf [09:06:52]execute_script done [09:06:52]execute_script returns [09:06:52]free content buf [09:06:52]Sock 9.Close socket [09:06:52]Sock 9.Thread stoped [09:06:55]OFD Sender: No OFD packet to send [09:07:00]OFD Sender: No OFD packet to send [09:07:05]OFD Sender: No OFD packet to send [09:07:10]OFD Sender: No OFD packet to send [09:07:15]OFD Sender: No OFD packet to send [09:07:20]OFD Sender: No OFD packet to send [09:07:25]OFD Sender: No OFD packet to send [09:07:30]OFD Sender: No OFD packet to send [09:07:35]OFD Sender: No OFD packet to send [09:07:40]OFD Sender: No OFD packet to send [09:07:45]OFD Sender: No OFD packet to send [09:07:50]OFD Sender: No OFD packet to send [09:07:55]OFD Sender: No OFD packet to send [09:07:57]accept exits with 8 [09:07:57]New connection [09:07:57]New thread 3067194724 created [09:07:57]Thread 3067338084 joined [09:07:57]Waiting for new connection... [09:07:57] Sock 8.Parse request [09:07:57]Sock 8.Check first char [09:07:57]Sock 8.First char is OK [09:07:57]request: POST /json_proto HTTP/1.0 [09:07:57]Method: POST [09:07:57]URL: /json_proto [09:07:57]Method is POST - this is cgi request [09:07:57]url: /json_proto [09:07:57]query_string will be loaded in cgi processing [09:07:57]execute_cgi json_proto POST (null) [09:07:57]execute_cgi path=json_proto method=POST [09:07:57]POST find Content-Length [09:07:57]Host: 172.17.45.7:8080 [09:07:57]Content-Length: 682 [09:07:57]Content-Type: application/json [09:07:57] [09:07:57]POST finish read [09:07:57]Found Content-Length = 682 [09:07:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:57]execute_script... [09:07: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)950266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:57]POST & json_proto [09:07:57]process_json_proto [09:07:57]json parsed OK: [09:07:57]protocol is kg_v1.0 [09:07:57]action value=close_receipt [09:07:57]process_action close_receipt [09:07:57]cmd_close_receipt [09:07:57]MH_GetDate [09:07:57]Write to MH i2c: F0 00 00 45 12 46 [09:07:57]Write i2c OK [09:07:57]MH_I2C_Read... [09:07:57]Read from MH i2c: F0 [09:07:57]MH_I2C_Read... [09:07:57]Read from MH i2c: F0 09 00 [09:07:57]MH_I2C_Read... [09:07:57]Read from MH i2c: F0 09 00 45 12 00 EE FE A9 66 90 0F 3E 66 8D [09:07:57]GetLastDocTimeStamp 1722416809 [09:07:57]current date 1722416878 [09:07:57]FM_GetShiftState [09:07:57]SAM_PROTO_GetShiftState [09:07:57]wFMCommunicate request_size=4 [09:07:57]MH_SAM_APDU [09:07:57]CAPDU: 80 13 01 00 [09:07:57]Write to MH i2c: E2 08 00 46 12 80 13 01 00 00 00 00 00 D5 [09:07:57]Write i2c OK [09:07:57]MH_I2C_Read... [09:07:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:57]Read from MH i2c: E2 [09:07:57]MH_I2C_Read... [09:07:57]Read from MH i2c: E2 0E 00 [09:07:57]MH_I2C_Read... [09:07:57]Read from MH i2c: E2 0E 00 46 12 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 6D [09:07:57]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:07:57]wFMCommunicate OK [09:07:57]SAM_PROTO_GetShiftState done [09:07:57]FM_GetShiftState done [09:07:57]opened in 1722384637 [09:07:57]opened+sec_in_day 1722471037 [09:07:57]quantity*price = 100005 [09:07:57]sum+1 = 100006 [09:07:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 71 31.07.2024 09:07 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119340 ФПД: 77964996567880 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T090758&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119340&fm=77964996567880&tin=02508201610067®Number=0000000000092660&sum=100000 [09:07:58]StoreToDocumentArchive [09:07:58]shift 436 fd 119340 [09:07:58]save to /storage/0436/doc_00119340 [09:07:58]save last doc name /storage/0436/doc_00119340 to /storage/kkm_last_doc_name [09:07:58]save OK [09:07:58]Clear old archive folders... [09:07:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:07:58]tlvbuf is 00ACB920 [09:07:58]SAM_PROTO_ClearQueue [09:07:58]wFMCommunicate request_size=4 [09:07:58]MH_SAM_APDU [09:07:58]CAPDU: 80 09 00 00 [09:07:58]Write to MH i2c: E2 08 00 53 12 80 09 00 00 00 00 00 00 D7 [09:07:58]Write i2c OK [09:07:58]MH_I2C_Read... [09:07:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:07:58]Read from MH i2c: E2 [09:07:58]MH_I2C_Read... [09:07:58]Read from MH i2c: E2 03 00 [09:07:58]MH_I2C_Read... [09:07:58]Read from MH i2c: E2 03 00 53 12 00 90 00 D9 [09:07:58]RAPDU: 90 00 [09:07:58]wFMCommunicate OK [09:07:58]SAM_PROTO_ClearQueue done [09:07:58]KKMCreateOFDPacket [09:07:58]OFDProtocolAddRootSTLVToBuf [09:07:58]FM_MakeSignedData [09:07:58]FM_MakeSignedData [09:07:58]SAM_PROTO_SignData [09:07:58]wFMCommunicate request_size=4 [09:07:58]MH_SAM_APDU [09:07:58]CAPDU: 80 0D 01 02 [09:07:58]Write to MH i2c: E2 08 00 54 12 80 0D 01 02 00 00 00 00 DF [09:07:58]Write i2c OK [09:07:58]MH_I2C_Read... [09:07:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:07:58]Read from MH i2c: E2 [09:07:58]MH_I2C_Read... [09:07:58]Read from MH i2c: E2 03 00 [09:07:58]MH_I2C_Read... [09:07:58]Read from MH i2c: E2 03 00 54 12 00 90 00 DA [09:07:58]RAPDU: 90 00 [09:07:58]wFMCommunicate OK [09:07:58]wFMCommunicate request_size=255 [09:07:58]MH_SAM_APDU [09:07:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 47 00 00 00 F4 03 04 00 EE FE A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2C D2 01 00 35 04 06 00 46 [09:07:58]Write to MH i2c: E2 02 01 55 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 47 00 00 00 F4 03 04 00 EE FE A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2C D2 01 00 35 04 06 00 46 00 00 2E [09:07:58]Write i2c OK [09:07:58]MH_I2C_Read... [09:07:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:58]Read from MH i2c: E2 [09:07:58]MH_I2C_Read... [09:07:58]Read from MH i2c: E2 03 00 [09:07:58]MH_I2C_Read... [09:07:58]Read from MH i2c: E2 03 00 55 12 00 90 00 DB [09:07:58]RAPDU: 90 00 [09:07:58]wFMCommunicate OK [09:07:58]wFMCommunicate request_size=10 [09:07:58]MH_SAM_APDU [09:07:58]CAPDU: 80 0D 02 02 05 E8 A3 EC E3 48 [09:07:58]Write to MH i2c: E2 0D 00 56 12 80 0D 02 02 05 00 E8 A3 EC E3 48 00 00 8E [09:07:58]Write i2c OK [09:07:58]MH_I2C_Read... [09:07:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:58]Read from MH i2c: E2 [09:07:58]MH_I2C_Read... [09:07:58]Read from MH i2c: E2 03 00 [09:07:58]MH_I2C_Read... [09:07:58]Read from MH i2c: E2 03 00 56 12 00 90 00 DC [09:07:58]RAPDU: 90 00 [09:07:58]wFMCommunicate OK [09:07:58]wFMCommunicate request_size=4 [09:07:58]MH_SAM_APDU [09:07:58]CAPDU: 80 0D 03 02 [09:07:58]Write to MH i2c: E2 08 00 57 12 80 0D 03 02 00 00 00 00 E4 [09:07:58]Write i2c OK [09:07:58]MH_I2C_Read... [09:07:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:07:58]Read from MH i2c: E2 [09:07:58]MH_I2C_Read... [09:07:58]Read from MH i2c: E2 0B 00 [09:07:58]MH_I2C_Read... [09:07:58]Read from MH i2c: E2 0B 00 57 12 00 6F 04 59 1C 54 92 10 E5 90 00 A8 [09:07:58]RAPDU: 6F 04 59 1C 54 92 10 E5 90 00 [09:07:58]wFMCommunicate OK [09:07:58]SAM_PROTO_SignData done [09:07:58]FM_MakeSignedData done [09:07:58]CreateOFDProtocolMessage [09:07:58]wFMCommunicate request_size=4 [09:07:58]MH_SAM_APDU [09:07:58]CAPDU: 80 11 00 00 [09:07:58]Write to MH i2c: E2 08 00 58 12 80 11 00 00 00 00 00 00 E4 [09:07:58]Write i2c OK [09:07:58]MH_I2C_Read... [09:07:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:58]Read from MH i2c: E2 [09:07:58]MH_I2C_Read... [09:07:58]Read from MH i2c: E2 17 00 [09:07:58]MH_I2C_Read... [09:07:58]Read from MH i2c: E2 17 00 58 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3F [09:07:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:07:58]wFMCommunicate OK [09:07:58]CreateOFDProtocolMessage done [09:07:58]OFDSenderStorePacket 119340 [09:07:58]StoreOFDPacket docnum=119340 [09:07:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 ED 64 07 01 BB C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 47 00 00 00 F4 03 04 00 EE FE A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2C D2 01 00 35 04 06 00 46 E8 A3 EC E3 48 6F 04 59 1C 54 92 10 E5 [09:07:58]CheckFolder [09:07:58]dirname=/storage/ofd_packets [09:07:58]CheckFolder done [09:07:58]ProducePacketName [09:07:58]name=ofd_packets/00119340 [09:07:58]NVStorageSaveData ofd_packets/00119340 [09:07:58]File name is /storage/ofd_packets/00119340 [09:07:58]Write 301 bytes [09:07:58]NVStorageSaveData done [09:07:58]OFDSenderStorePacket done [09:07:58]KKMCreateOFDPacket done [09:07:58]NVStorageSaveData kkm_last_timestamp [09:07:58]File name is /storage/kkm_last_timestamp [09:07:58]Write 4 bytes [09:07:58]NVStorageSaveData done [09:07:58]ExternCall_PrintAddStr [09:07:58]wPrintStart [09:07:58]Write to MH i2c: 01 00 00 59 12 6B [09:07:58]Write i2c OK [09:07:58]MH_I2C_Read... [09:07:58]Read from MH i2c: 01 [09:07:58]MH_I2C_Read... [09:07:58]Read from MH i2c: 01 07 00 [09:07:58]MH_I2C_Read... [09:07:58]Read from MH i2c: 01 07 00 59 12 00 00 00 00 00 FF 0F 80 [09:07:58]RasterBufferAndPrint [09:07:58]line Счет N : (1)950266 [09:07:58]line ИНН: 02508201610067 [09:07:58]line Контрольно-Кассовый Чек [09:07:58]line ПРОДАЖА [09:07:58]line ТРК (МРК, ГНК) : 41 [09:07:58]line Товар: 2710124130 [09:07:58]line Аи-92-К-4 [09:07:58]line 14.750 * 67.80 [09:07:58]line = 1000.05 [09:07:58]line НДС 12% НСП 1% [09:07:58]line > о реализуемом товаре [09:07:58]line ОКРУГЛЕНИЕ: -0.05 [09:07:58]line ИТОГО: 1000.00 [09:07:58]line Внесено: 1000.00 [09:07:58]line СДАЧА: 0.00 [09:07:58]line НСП 1% : 8.85 [09:07:58]line НДС 12% : 106.20 [09:07:58]line Наличными: 1000.00 [09:07:58]line Безнал.: 0.00 [09:07:58]line Место: АЗС № 134 "Партнер Нефть" [09:07:58]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:07:58]line СНО: Общий режим [09:07:58]line Чек 71 31.07.2024 09:07 [09:07:58]line Смена: 436 ФФД: 1.0 [09:07:58]line ЗНМ: 0300000044 [09:07:58]line РНМ: 0000000000092660 [09:07:58]line Версия ККМ: 001 [09:07:58]line ФМ: 0000000000874939 [09:07:58]line ФД: 119340 [09:07:58]line ФПД: 77964996567880 [09:07:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T090758&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119340&fm=77964996567880&tin=02508201610067®Number=0000000000092660&sum=100000 [09:07:58]OFD Sender: Processing packet 119340 [packets to send 86, broken 85] [09:07:58]ProducePacketName [09:07:58]name=ofd_packets/00119340 [09:07:58]OFD Sender: To server: pG, [09:07:58]CommunicateWithHost lk.salyk.kg:30040 [09:07:58]ConnectInit lk.salyk.kg [09:07:58]written 0, free lines is 4095 [09:07:59]Connected sock=10 [09:07:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 ED 64 07 01 BB C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 47 00 00 00 F4 03 04 00 EE FE A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2C D2 01 00 35 04 06 00 46 E8 A3 EC E3 48 6F 04 59 1C 54 92 10 E5 [09:07:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 29 24 47 00 65 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 39 33 39 10 04 04 00 2C D2 01 00 F4 03 04 00 77 AC A9 66 B6 04 01 00 00 C2 6E EA 7F 68 E8 64 BA [09:07:59]CommunicateWithHost err = 0 [09:07:59]CheckOFDResponse [09:07:59]1017 (14) - 77093643461234 [09:07:59]1041 (16) - 0000000000874939 [09:07:59]1040 (4) - 119340 [09:07:59]1012 (4) - 31.07.2024 03:16 [09:07:59]1206 (1) - 0 [09:07:59]OFD Sender: Remove packet 119340 [09:07:59]ProducePacketName [09:07:59]name=ofd_packets/00119340 [09:07:59]NVStorageDeleteData [09:07:59]Write to MH i2c: 01 00 00 83 12 95 [09:07:59]Write i2c OK [09:07:59]MH_I2C_Read... [09:07:59]Read from MH i2c: 01 [09:07:59]MH_I2C_Read... [09:07:59]Read from MH i2c: 01 07 00 [09:07:59]MH_I2C_Read... [09:07:59]Read from MH i2c: 01 07 00 83 12 00 00 00 00 00 E4 0C 8C [09:07:59]RasterBufferAndPrint [09:07:59]line [09:07:59]line [09:07:59]line [09:07:59]line [09:07:59]line [09:07:59]written 0, free lines is 3304 [09:07:59]MH_Cut [09:07:59]Write to MH i2c: D1 01 00 8A 12 01 6E [09:07:59]Write i2c OK [09:07:59]MH_I2C_Read... [09:07:59]Read from MH i2c: D1 [09:07:59]MH_I2C_Read... [09:07:59]Read from MH i2c: D1 01 00 [09:07:59]MH_I2C_Read... [09:07:59]Read from MH i2c: D1 01 00 8A 12 00 6D [09:07:59]Write to MH i2c: 01 00 00 8B 12 9D [09:07:59]Write i2c OK [09:07:59]MH_I2C_Read... [09:07:59]OFD Sender: No OFD packet to send [09:07:59]*** Cut start [09:07:59]*** Partial cut [09:07:59]*** CUTSNS_PIN = 1 [09:08:00]*** CUTSNS_PIN = 0 [09:08:00]*** Brake cut motor [09:08:00]Read from MH i2c: 01 [09:08:00]MH_I2C_Read... [09:08:00]*** Stop cut motor [09:08:00]*** Cut end [09:08:00]Read from MH i2c: 01 07 00 [09:08:00]MH_I2C_Read... [09:08:00]Read from MH i2c: 01 07 00 8B 12 00 00 00 00 00 FF 0F B2 [09:08:00]process_action close_receipt done [09:08:00]requested_data is exist [09:08:00]produce_requested_data [09:08:00]requested_item fm.sn is exist - process it [09:08:00]wFMCommunicate request_size=4 [09:08:00]MH_SAM_APDU [09:08:00]CAPDU: 80 11 00 00 [09:08:00]Write to MH i2c: E2 08 00 8C 12 80 11 00 00 00 00 00 00 18 [09:08:00]Write i2c OK [09:08:00]MH_I2C_Read... [09:08:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:00]Read from MH i2c: E2 [09:08:00]MH_I2C_Read... [09:08:00]Read from MH i2c: E2 17 00 [09:08:00]MH_I2C_Read... [09:08:00]Read from MH i2c: E2 17 00 8C 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 73 [09:08:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:08:00]wFMCommunicate OK [09:08:00]requested_item fd.num is exist - process it [09:08:00]SAM_PROTO_GetFieldsCounters [09:08:00]wFMCommunicate request_size=4 [09:08:00]MH_SAM_APDU [09:08:00]CAPDU: 80 13 00 00 [09:08:00]Write to MH i2c: E2 08 00 8D 12 80 13 00 00 00 00 00 00 1B [09:08:00]Write i2c OK [09:08:00]MH_I2C_Read... [09:08:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:00]Read from MH i2c: E2 [09:08:00]MH_I2C_Read... [09:08:00]Read from MH i2c: E2 62 00 [09:08:00]MH_I2C_Read... [09:08:00]Read from MH i2c: E2 62 00 8D 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2C D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [09:08:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2C D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:08:00]wFMCommunicate OK [09:08:00]SAM_PROTO_GetFieldsCounters done [09:08:00]requested_item shift.num is exist - process it [09:08:00]requested_item shift.opened is exist - process it [09:08:00]req_shift_opened [09:08:00]FM_GetShiftState [09:08:00]SAM_PROTO_GetShiftState [09:08:00]wFMCommunicate request_size=4 [09:08:00]MH_SAM_APDU [09:08:00]CAPDU: 80 13 01 00 [09:08:00]Write to MH i2c: E2 08 00 8E 12 80 13 01 00 00 00 00 00 1D [09:08:00]Write i2c OK [09:08:00]MH_I2C_Read... [09:08:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:00]Read from MH i2c: E2 [09:08:00]MH_I2C_Read... [09:08:00]Read from MH i2c: E2 0E 00 [09:08:00]MH_I2C_Read... [09:08:00]Read from MH i2c: E2 0E 00 8E 12 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 B5 [09:08:00]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:08:00]wFMCommunicate OK [09:08:00]SAM_PROTO_GetShiftState done [09:08:00]FM_GetShiftState done [09:08:00]req_shift_opened done [09:08:00]requested_item shift.open_date is exist - process it [09:08:00]req_shift_open_date [09:08:00]req_shift_open_date done [09:08:00]produce_requested_data done [09:08:00]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119340,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [09:08:00]process_action_free close_receipt [09:08:00]json_value_free [09:08:00]json_value_free done [09:08:00]process_json_proto returns [09:08:00]Send response to host [09:08:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119340,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [09:08:00]free response buf [09:08:00]execute_script done [09:08:00]execute_script returns [09:08:00]free content buf [09:08:00]Sock 8.Close socket [09:08:00]Sock 8.Thread stoped [09:08:04]OFD Sender: No OFD packet to send [09:08:09]OFD Sender: No OFD packet to send [09:08:14]OFD Sender: No OFD packet to send [09:08:19]OFD Sender: No OFD packet to send [09:08:24]OFD Sender: No OFD packet to send [09:08:29]OFD Sender: No OFD packet to send [09:08:34]OFD Sender: No OFD packet to send [09:08:39]OFD Sender: No OFD packet to send [09:08:44]OFD Sender: No OFD packet to send [09:08:49]OFD Sender: No OFD packet to send [09:08:54]OFD Sender: No OFD packet to send [09:08:59]OFD Sender: No OFD packet to send [09:09:04]OFD Sender: No OFD packet to send [09:09:09]OFD Sender: No OFD packet to send [09:09:14]OFD Sender: No OFD packet to send [09:09:19]OFD Sender: No OFD packet to send [09:09:24]OFD Sender: No OFD packet to send [09:09:29]OFD Sender: No OFD packet to send [09:09:34]OFD Sender: No OFD packet to send [09:09:39]OFD Sender: No OFD packet to send [09:09:44]OFD Sender: No OFD packet to send [09:09:49]OFD Sender: No OFD packet to send [09:09:54]OFD Sender: No OFD packet to send [09:09:59]OFD Sender: No OFD packet to send [09:10:04]OFD Sender: No OFD packet to send [09:10:09]OFD Sender: No OFD packet to send [09:10:14]OFD Sender: No OFD packet to send [09:10:19]OFD Sender: No OFD packet to send [09:10:24]OFD Sender: No OFD packet to send [09:10:29]OFD Sender: No OFD packet to send [09:10:34]OFD Sender: No OFD packet to send [09:10:39]OFD Sender: No OFD packet to send [09:10:44]OFD Sender: No OFD packet to send [09:10:49]OFD Sender: No OFD packet to send [09:10:54]OFD Sender: No OFD packet to send [09:10:59]OFD Sender: No OFD packet to send [09:11:04]OFD Sender: No OFD packet to send [09:11:09]OFD Sender: No OFD packet to send [09:11:14]OFD Sender: No OFD packet to send [09:11:19]OFD Sender: No OFD packet to send [09:11:24]OFD Sender: No OFD packet to send [09:11:29]OFD Sender: No OFD packet to send [09:11:34]OFD Sender: No OFD packet to send [09:11:39]OFD Sender: No OFD packet to send [09:11:44]OFD Sender: No OFD packet to send [09:11:49]OFD Sender: No OFD packet to send [09:11:54]OFD Sender: No OFD packet to send [09:11:59]OFD Sender: No OFD packet to send [09:12:04]OFD Sender: No OFD packet to send [09:12:10]OFD Sender: No OFD packet to send [09:12:15]OFD Sender: No OFD packet to send [09:12:20]OFD Sender: No OFD packet to send [09:12:25]OFD Sender: No OFD packet to send [09:12:30]OFD Sender: No OFD packet to send [09:12:35]OFD Sender: No OFD packet to send [09:12:40]OFD Sender: No OFD packet to send [09:12:45]OFD Sender: No OFD packet to send [09:12:49]accept exits with 9 [09:12:49]New connection [09:12:49]New thread 3067338084 created [09:12:49]Thread 3067194724 joined [09:12:49]Waiting for new connection... [09:12:49] Sock 9.Parse request [09:12:49]Sock 9.Check first char [09:12:49]Sock 9.First char is OK [09:12:49]request: POST /json_proto HTTP/1.0 [09:12:49]Method: POST [09:12:49]URL: /json_proto [09:12:49]Method is POST - this is cgi request [09:12:49]url: /json_proto [09:12:49]query_string will be loaded in cgi processing [09:12:49]execute_cgi json_proto POST (null) [09:12:49]execute_cgi path=json_proto method=POST [09:12:49]POST find Content-Length [09:12:49]Host: 172.17.45.7:8080 [09:12:49]Content-Length: 682 [09:12:49]Content-Type: application/json [09:12:49] [09:12:49]POST finish read [09:12:49]Found Content-Length = 682 [09:12:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:49]execute_script... [09:12:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:49]POST & json_proto [09:12:49]process_json_proto [09:12:49]json parsed OK: [09:12:49]protocol is kg_v1.0 [09:12:49]action value=close_receipt [09:12:49]process_action close_receipt [09:12:49]cmd_close_receipt [09:12:49]MH_GetDate [09:12:49]Write to MH i2c: F0 00 00 8F 12 90 [09:12:49]Write i2c OK [09:12:49]MH_I2C_Read... [09:12:49]Read from MH i2c: F0 [09:12:49]MH_I2C_Read... [09:12:49]Read from MH i2c: F0 09 00 [09:12:49]MH_I2C_Read... [09:12:49]Read from MH i2c: F0 09 00 8F 12 00 12 00 AA 66 90 0F 3E 66 FE [09:12:49]GetLastDocTimeStamp 1722416878 [09:12:49]current date 1722417170 [09:12:49]FM_GetShiftState [09:12:49]SAM_PROTO_GetShiftState [09:12:49]wFMCommunicate request_size=4 [09:12:49]MH_SAM_APDU [09:12:49]CAPDU: 80 13 01 00 [09:12:49]Write to MH i2c: E2 08 00 90 12 80 13 01 00 00 00 00 00 1F [09:12:49]Write i2c OK [09:12:49]MH_I2C_Read... [09:12:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:49]Read from MH i2c: E2 [09:12:49]MH_I2C_Read... [09:12:49]Read from MH i2c: E2 0E 00 [09:12:49]MH_I2C_Read... [09:12:49]Read from MH i2c: E2 0E 00 90 12 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 B7 [09:12:49]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:12:49]wFMCommunicate OK [09:12:49]SAM_PROTO_GetShiftState done [09:12:49]FM_GetShiftState done [09:12:49]opened in 1722384637 [09:12:49]opened+sec_in_day 1722471037 [09:12:49]quantity*price = 100005 [09:12:49]sum+1 = 100006 [09:12:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 72 31.07.2024 09:12 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119341 ФПД: 255002210527056 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T091250&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119341&fm=255002210527056&tin=02508201610067®Number=0000000000092660&sum=100000 [09:12:50]StoreToDocumentArchive [09:12:50]shift 436 fd 119341 [09:12:50]save to /storage/0436/doc_00119341 [09:12:50]save last doc name /storage/0436/doc_00119341 to /storage/kkm_last_doc_name [09:12:50]save OK [09:12:50]Clear old archive folders... [09:12:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:12:50]tlvbuf is 00B42020 [09:12:50]SAM_PROTO_ClearQueue [09:12:50]wFMCommunicate request_size=4 [09:12:50]MH_SAM_APDU [09:12:50]CAPDU: 80 09 00 00 [09:12:50]Write to MH i2c: E2 08 00 9D 12 80 09 00 00 00 00 00 00 21 [09:12:50]Write i2c OK [09:12:50]MH_I2C_Read... [09:12:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:12:50]Read from MH i2c: E2 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: E2 03 00 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: E2 03 00 9D 12 00 90 00 23 [09:12:50]RAPDU: 90 00 [09:12:50]wFMCommunicate OK [09:12:50]SAM_PROTO_ClearQueue done [09:12:50]KKMCreateOFDPacket [09:12:50]OFDProtocolAddRootSTLVToBuf [09:12:50]FM_MakeSignedData [09:12:50]FM_MakeSignedData [09:12:50]SAM_PROTO_SignData [09:12:50]wFMCommunicate request_size=4 [09:12:50]MH_SAM_APDU [09:12:50]CAPDU: 80 0D 01 02 [09:12:50]Write to MH i2c: E2 08 00 9E 12 80 0D 01 02 00 00 00 00 29 [09:12:50]Write i2c OK [09:12:50]MH_I2C_Read... [09:12:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:12:50]Read from MH i2c: E2 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: E2 03 00 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: E2 03 00 9E 12 00 90 00 24 [09:12:50]RAPDU: 90 00 [09:12:50]wFMCommunicate OK [09:12:50]wFMCommunicate request_size=255 [09:12:50]MH_SAM_APDU [09:12:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 48 00 00 00 F4 03 04 00 12 00 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2D D2 01 00 35 04 06 00 E7 [09:12:50]Write to MH i2c: E2 02 01 9F 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 48 00 00 00 F4 03 04 00 12 00 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2D D2 01 00 35 04 06 00 E7 00 00 42 [09:12:50]Write i2c OK [09:12:50]MH_I2C_Read... [09:12:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:50]Read from MH i2c: E2 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: E2 03 00 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: E2 03 00 9F 12 00 90 00 25 [09:12:50]RAPDU: 90 00 [09:12:50]wFMCommunicate OK [09:12:50]wFMCommunicate request_size=10 [09:12:50]MH_SAM_APDU [09:12:50]CAPDU: 80 0D 02 02 05 EC 54 2C E7 50 [09:12:50]Write to MH i2c: E2 0D 00 A0 12 80 0D 02 02 05 00 EC 54 2C E7 50 00 00 D9 [09:12:50]Write i2c OK [09:12:50]MH_I2C_Read... [09:12:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:50]Read from MH i2c: E2 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: E2 03 00 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: E2 03 00 A0 12 00 90 00 26 [09:12:50]RAPDU: 90 00 [09:12:50]wFMCommunicate OK [09:12:50]wFMCommunicate request_size=4 [09:12:50]MH_SAM_APDU [09:12:50]CAPDU: 80 0D 03 02 [09:12:50]Write to MH i2c: E2 08 00 A1 12 80 0D 03 02 00 00 00 00 2E [09:12:50]Write i2c OK [09:12:50]MH_I2C_Read... [09:12:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:12:50]Read from MH i2c: E2 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: E2 0B 00 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: E2 0B 00 A1 12 00 8B B7 38 E3 88 5F 21 15 90 00 A9 [09:12:50]RAPDU: 8B B7 38 E3 88 5F 21 15 90 00 [09:12:50]wFMCommunicate OK [09:12:50]SAM_PROTO_SignData done [09:12:50]FM_MakeSignedData done [09:12:50]CreateOFDProtocolMessage [09:12:50]wFMCommunicate request_size=4 [09:12:50]MH_SAM_APDU [09:12:50]CAPDU: 80 11 00 00 [09:12:50]Write to MH i2c: E2 08 00 A2 12 80 11 00 00 00 00 00 00 2E [09:12:50]Write i2c OK [09:12:50]MH_I2C_Read... [09:12:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:50]Read from MH i2c: E2 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: E2 17 00 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: E2 17 00 A2 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 89 [09:12:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:12:50]wFMCommunicate OK [09:12:50]CreateOFDProtocolMessage done [09:12:50]OFDSenderStorePacket 119341 [09:12:50]StoreOFDPacket docnum=119341 [09:12:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 ED DC 07 01 EE 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 48 00 00 00 F4 03 04 00 12 00 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2D D2 01 00 35 04 06 00 E7 EC 54 2C E7 50 8B B7 38 E3 88 5F 21 15 [09:12:50]CheckFolder [09:12:50]dirname=/storage/ofd_packets [09:12:50]CheckFolder done [09:12:50]ProducePacketName [09:12:50]name=ofd_packets/00119341 [09:12:50]NVStorageSaveData ofd_packets/00119341 [09:12:50]File name is /storage/ofd_packets/00119341 [09:12:50]Write 301 bytes [09:12:50]NVStorageSaveData done [09:12:50]OFDSenderStorePacket done [09:12:50]KKMCreateOFDPacket done [09:12:50]NVStorageSaveData kkm_last_timestamp [09:12:50]File name is /storage/kkm_last_timestamp [09:12:50]Write 4 bytes [09:12:50]NVStorageSaveData done [09:12:50]OFD Sender: Processing packet 119341 [packets to send 86, broken 85] [09:12:50]ProducePacketName [09:12:50]name=ofd_packets/00119341 [09:12:50]OFD Sender: To server: pG, [09:12:50]CommunicateWithHost lk.salyk.kg:30040 [09:12:50]ConnectInit lk.salyk.kg [09:12:50]ExternCall_PrintAddStr [09:12:50]wPrintStart [09:12:50]Write to MH i2c: 01 00 00 A3 12 B5 [09:12:50]Write i2c OK [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: 01 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: 01 07 00 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: 01 07 00 A3 12 00 00 00 00 00 FF 0F CA [09:12:50]RasterBufferAndPrint [09:12:50]line Счет N : (1)950267 [09:12:50]line ИНН: 02508201610067 [09:12:50]line Контрольно-Кассовый Чек [09:12:50]line ПРОДАЖА [09:12:50]line ТРК (МРК, ГНК) : 41 [09:12:50]line Товар: 2710124130 [09:12:50]line Аи-92-К-4 [09:12:50]line 14.750 * 67.80 [09:12:50]line = 1000.05 [09:12:50]line НДС 12% НСП 1% [09:12:50]line > о реализуемом товаре [09:12:50]line ОКРУГЛЕНИЕ: -0.05 [09:12:50]line ИТОГО: 1000.00 [09:12:50]line Внесено: 1000.00 [09:12:50]line СДАЧА: 0.00 [09:12:50]line НСП 1% : 8.85 [09:12:50]line НДС 12% : 106.20 [09:12:50]line Наличными: 1000.00 [09:12:50]line Безнал.: 0.00 [09:12:50]line Место: АЗС № 134 "Партнер Нефть" [09:12:50]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:12:50]line СНО: Общий режим [09:12:50]line Чек 72 31.07.2024 09:12 [09:12:50]line Смена: 436 ФФД: 1.0 [09:12:50]line ЗНМ: 0300000044 [09:12:50]line РНМ: 0000000000092660 [09:12:50]line Версия ККМ: 001 [09:12:50]line ФМ: 0000000000874939 [09:12:50]line ФД: 119341 [09:12:50]line ФПД: 255002210527056 [09:12:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T091250&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119341&fm=255002210527056&tin=02508201610067®Number=0000000000092660&sum=100000 [09:12:51]Connected sock=11 [09:12: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 39 33 39 0F 01 00 00 ED DC 07 01 EE 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 48 00 00 00 F4 03 04 00 12 00 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2D D2 01 00 35 04 06 00 E7 EC 54 2C E7 50 8B B7 38 E3 88 5F 21 15 [09:12:51]written 0, free lines is 4095 [09:12:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E6 42 47 00 1B 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 39 33 39 10 04 04 00 2D D2 01 00 F4 03 04 00 9B AD A9 66 B6 04 01 00 00 86 C8 09 1E 13 A6 C6 DC [09:12:51]CommunicateWithHost err = 0 [09:12:51]CheckOFDResponse [09:12:51]1017 (14) - 77093643461234 [09:12:51]1041 (16) - 0000000000874939 [09:12:51]1040 (4) - 119341 [09:12:51]1012 (4) - 31.07.2024 03:20 [09:12:51]1206 (1) - 0 [09:12:51]OFD Sender: Remove packet 119341 [09:12:51]ProducePacketName [09:12:51]name=ofd_packets/00119341 [09:12:51]NVStorageDeleteData [09:12:51]Write to MH i2c: 01 00 00 CD 12 DF [09:12:51]Write i2c OK [09:12:51]MH_I2C_Read... [09:12:51]Read from MH i2c: 01 [09:12:51]MH_I2C_Read... [09:12:51]Read from MH i2c: 01 07 00 [09:12:51]MH_I2C_Read... [09:12:51]Read from MH i2c: 01 07 00 CD 12 00 00 00 00 00 D7 0C C9 [09:12:51]RasterBufferAndPrint [09:12:51]line [09:12:51]line [09:12:51]line [09:12:51]line [09:12:51]line [09:12:51]written 0, free lines is 3294 [09:12:51]MH_Cut [09:12:51]Write to MH i2c: D1 01 00 D4 12 01 B8 [09:12:51]Write i2c OK [09:12:51]MH_I2C_Read... [09:12:51]Read from MH i2c: D1 [09:12:51]MH_I2C_Read... [09:12:51]Read from MH i2c: D1 01 00 [09:12:51]MH_I2C_Read... [09:12:51]Read from MH i2c: D1 01 00 D4 12 00 B7 [09:12:51]Write to MH i2c: 01 00 00 D5 12 E7 [09:12:51]Write i2c OK [09:12:51]MH_I2C_Read... [09:12:51]OFD Sender: No OFD packet to send [09:12:52]*** Cut start [09:12:52]*** Partial cut [09:12:52]*** CUTSNS_PIN = 1 [09:12:52]*** CUTSNS_PIN = 0 [09:12:52]*** Brake cut motor [09:12:52]Read from MH i2c: 01 [09:12:52]MH_I2C_Read... [09:12:52]*** Stop cut motor [09:12:52]*** Cut end [09:12:52]Read from MH i2c: 01 07 00 [09:12:52]MH_I2C_Read... [09:12:52]Read from MH i2c: 01 07 00 D5 12 00 00 00 00 00 FF 0F FC [09:12:52]process_action close_receipt done [09:12:52]requested_data is exist [09:12:52]produce_requested_data [09:12:52]requested_item fm.sn is exist - process it [09:12:52]wFMCommunicate request_size=4 [09:12:52]MH_SAM_APDU [09:12:52]CAPDU: 80 11 00 00 [09:12:52]Write to MH i2c: E2 08 00 D6 12 80 11 00 00 00 00 00 00 62 [09:12:52]Write i2c OK [09:12:52]MH_I2C_Read... [09:12:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:52]Read from MH i2c: E2 [09:12:52]MH_I2C_Read... [09:12:52]Read from MH i2c: E2 17 00 [09:12:52]MH_I2C_Read... [09:12:52]Read from MH i2c: E2 17 00 D6 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BD [09:12:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:12:52]wFMCommunicate OK [09:12:52]requested_item fd.num is exist - process it [09:12:52]SAM_PROTO_GetFieldsCounters [09:12:52]wFMCommunicate request_size=4 [09:12:52]MH_SAM_APDU [09:12:52]CAPDU: 80 13 00 00 [09:12:52]Write to MH i2c: E2 08 00 D7 12 80 13 00 00 00 00 00 00 65 [09:12:52]Write i2c OK [09:12:52]MH_I2C_Read... [09:12:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:12:53]Read from MH i2c: E2 [09:12:53]MH_I2C_Read... [09:12:53]Read from MH i2c: E2 62 00 [09:12:53]MH_I2C_Read... [09:12:53]Read from MH i2c: E2 62 00 D7 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2D D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [09:12: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2D D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:12:53]wFMCommunicate OK [09:12:53]SAM_PROTO_GetFieldsCounters done [09:12:53]requested_item shift.num is exist - process it [09:12:53]requested_item shift.opened is exist - process it [09:12:53]req_shift_opened [09:12:53]FM_GetShiftState [09:12:53]SAM_PROTO_GetShiftState [09:12:53]wFMCommunicate request_size=4 [09:12:53]MH_SAM_APDU [09:12:53]CAPDU: 80 13 01 00 [09:12:53]Write to MH i2c: E2 08 00 D8 12 80 13 01 00 00 00 00 00 67 [09:12:53]Write i2c OK [09:12:53]MH_I2C_Read... [09:12:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:53]Read from MH i2c: E2 [09:12:53]MH_I2C_Read... [09:12:53]Read from MH i2c: E2 0E 00 [09:12:53]MH_I2C_Read... [09:12:53]Read from MH i2c: E2 0E 00 D8 12 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 FF [09:12:53]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:12:53]wFMCommunicate OK [09:12:53]SAM_PROTO_GetShiftState done [09:12:53]FM_GetShiftState done [09:12:53]req_shift_opened done [09:12:53]requested_item shift.open_date is exist - process it [09:12:53]req_shift_open_date [09:12:53]req_shift_open_date done [09:12:53]produce_requested_data done [09:12:53]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119341,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [09:12:53]process_action_free close_receipt [09:12:53]json_value_free [09:12:53]json_value_free done [09:12:53]process_json_proto returns [09:12:53]Send response to host [09:12:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119341,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [09:12:53]free response buf [09:12:53]execute_script done [09:12:53]execute_script returns [09:12:53]free content buf [09:12:53]Sock 9.Close socket [09:12:53]Sock 9.Thread stoped [09:12:56]OFD Sender: No OFD packet to send [09:13:01]OFD Sender: No OFD packet to send [09:13:06]OFD Sender: No OFD packet to send [09:13:11]OFD Sender: No OFD packet to send [09:13:16]OFD Sender: No OFD packet to send [09:13:21]OFD Sender: No OFD packet to send [09:13:22]accept exits with 8 [09:13:22]New connection [09:13:22]New thread 3067194724 created [09:13:22]Thread 3067338084 joined [09:13:22]Waiting for new connection... [09:13:22] Sock 8.Parse request [09:13:22]Sock 8.Check first char [09:13:22]Sock 8.First char is OK [09:13:22]request: POST /json_proto HTTP/1.0 [09:13:22]Method: POST [09:13:22]URL: /json_proto [09:13:22]Method is POST - this is cgi request [09:13:22]url: /json_proto [09:13:22]query_string will be loaded in cgi processing [09:13:22]execute_cgi json_proto POST (null) [09:13:22]execute_cgi path=json_proto method=POST [09:13:22]POST find Content-Length [09:13:22]Host: 172.17.45.7:8080 [09:13:22]Content-Length: 677 [09:13:22]Content-Type: application/json [09:13:22] [09:13:22]POST finish read [09:13:22]Found Content-Length = 677 [09:13:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:13:22]execute_script... [09:13: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)950268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:13:22]POST & json_proto [09:13:22]process_json_proto [09:13:22]json parsed OK: [09:13:22]protocol is kg_v1.0 [09:13:22]action value=close_receipt [09:13:22]process_action close_receipt [09:13:22]cmd_close_receipt [09:13:22]MH_GetDate [09:13:22]Write to MH i2c: F0 00 00 D9 12 DA [09:13:22]Write i2c OK [09:13:22]MH_I2C_Read... [09:13:22]Read from MH i2c: F0 [09:13:22]MH_I2C_Read... [09:13:22]Read from MH i2c: F0 09 00 [09:13:22]MH_I2C_Read... [09:13:22]Read from MH i2c: F0 09 00 D9 12 00 34 00 AA 66 90 0F 3E 66 6A [09:13:22]GetLastDocTimeStamp 1722417170 [09:13:22]current date 1722417204 [09:13:22]FM_GetShiftState [09:13:22]SAM_PROTO_GetShiftState [09:13:22]wFMCommunicate request_size=4 [09:13:22]MH_SAM_APDU [09:13:22]CAPDU: 80 13 01 00 [09:13:22]Write to MH i2c: E2 08 00 DA 12 80 13 01 00 00 00 00 00 69 [09:13:22]Write i2c OK [09:13:22]MH_I2C_Read... [09:13:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:22]Read from MH i2c: E2 [09:13:22]MH_I2C_Read... [09:13:22]Read from MH i2c: E2 0E 00 [09:13:22]MH_I2C_Read... [09:13:22]Read from MH i2c: E2 0E 00 DA 12 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 01 [09:13:22]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:13:22]wFMCommunicate OK [09:13:22]SAM_PROTO_GetShiftState done [09:13:22]FM_GetShiftState done [09:13:22]opened in 1722384637 [09:13:22]opened+sec_in_day 1722471037 [09:13:22]quantity*price = 50036 [09:13:22]sum+1 = 50037 [09:13:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 73 31.07.2024 09:13 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119342 ФПД: 249236276069167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T091324&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119342&fm=249236276069167&tin=02508201610067®Number=0000000000092660&sum=50000 [09:13:23]StoreToDocumentArchive [09:13:23]shift 436 fd 119342 [09:13:23]save to /storage/0436/doc_00119342 [09:13:23]save last doc name /storage/0436/doc_00119342 to /storage/kkm_last_doc_name [09:13:23]save OK [09:13:23]Clear old archive folders... [09:13:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:13:23]tlvbuf is 00B51970 [09:13:23]SAM_PROTO_ClearQueue [09:13:23]wFMCommunicate request_size=4 [09:13:23]MH_SAM_APDU [09:13:23]CAPDU: 80 09 00 00 [09:13:23]Write to MH i2c: E2 08 00 E7 12 80 09 00 00 00 00 00 00 6B [09:13:23]Write i2c OK [09:13:23]MH_I2C_Read... [09:13:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:13:23]Read from MH i2c: E2 [09:13:23]MH_I2C_Read... [09:13:23]Read from MH i2c: E2 03 00 [09:13:23]MH_I2C_Read... [09:13:23]Read from MH i2c: E2 03 00 E7 12 00 90 00 6D [09:13:23]RAPDU: 90 00 [09:13:23]wFMCommunicate OK [09:13:23]SAM_PROTO_ClearQueue done [09:13:23]KKMCreateOFDPacket [09:13:23]OFDProtocolAddRootSTLVToBuf [09:13:23]FM_MakeSignedData [09:13:23]FM_MakeSignedData [09:13:23]SAM_PROTO_SignData [09:13:23]wFMCommunicate request_size=4 [09:13:23]MH_SAM_APDU [09:13:23]CAPDU: 80 0D 01 02 [09:13:23]Write to MH i2c: E2 08 00 E8 12 80 0D 01 02 00 00 00 00 73 [09:13:23]Write i2c OK [09:13:23]MH_I2C_Read... [09:13:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:13:23]Read from MH i2c: E2 [09:13:23]MH_I2C_Read... [09:13:23]Read from MH i2c: E2 03 00 [09:13:23]MH_I2C_Read... [09:13:23]Read from MH i2c: E2 03 00 E8 12 00 90 00 6E [09:13:23]RAPDU: 90 00 [09:13:23]wFMCommunicate OK [09:13:23]wFMCommunicate request_size=255 [09:13:23]MH_SAM_APDU [09:13:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 49 00 00 00 F4 03 04 00 34 00 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2E D2 01 00 35 04 06 00 E2 [09:13:23]Write to MH i2c: E2 02 01 E9 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 49 00 00 00 F4 03 04 00 34 00 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2E D2 01 00 35 04 06 00 E2 00 00 1C [09:13:23]Write i2c OK [09:13:23]MH_I2C_Read... [09:13:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:24]Read from MH i2c: E2 [09:13:24]MH_I2C_Read... [09:13:24]Read from MH i2c: E2 03 00 [09:13:24]MH_I2C_Read... [09:13:24]Read from MH i2c: E2 03 00 E9 12 00 90 00 6F [09:13:24]RAPDU: 90 00 [09:13:24]wFMCommunicate OK [09:13:24]wFMCommunicate request_size=10 [09:13:24]MH_SAM_APDU [09:13:24]CAPDU: 80 0D 02 02 05 AD D7 B3 43 2F [09:13:24]Write to MH i2c: E2 0D 00 EA 12 80 0D 02 02 05 00 AD D7 B3 43 2F 00 00 29 [09:13:24]Write i2c OK [09:13:24]MH_I2C_Read... [09:13:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:24]Read from MH i2c: E2 [09:13:24]MH_I2C_Read... [09:13:24]Read from MH i2c: E2 03 00 [09:13:24]MH_I2C_Read... [09:13:24]Read from MH i2c: E2 03 00 EA 12 00 90 00 70 [09:13:24]RAPDU: 90 00 [09:13:24]wFMCommunicate OK [09:13:24]wFMCommunicate request_size=4 [09:13:24]MH_SAM_APDU [09:13:24]CAPDU: 80 0D 03 02 [09:13:24]Write to MH i2c: E2 08 00 EB 12 80 0D 03 02 00 00 00 00 78 [09:13:24]Write i2c OK [09:13:24]MH_I2C_Read... [09:13:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:13:24]Read from MH i2c: E2 [09:13:24]MH_I2C_Read... [09:13:24]Read from MH i2c: E2 0B 00 [09:13:24]MH_I2C_Read... [09:13:24]Read from MH i2c: E2 0B 00 EB 12 00 DD EF 26 AA 5C 32 79 A1 90 00 BD [09:13:24]RAPDU: DD EF 26 AA 5C 32 79 A1 90 00 [09:13:24]wFMCommunicate OK [09:13:24]SAM_PROTO_SignData done [09:13:24]FM_MakeSignedData done [09:13:24]CreateOFDProtocolMessage [09:13:24]wFMCommunicate request_size=4 [09:13:24]MH_SAM_APDU [09:13:24]CAPDU: 80 11 00 00 [09:13:24]Write to MH i2c: E2 08 00 EC 12 80 11 00 00 00 00 00 00 78 [09:13:24]Write i2c OK [09:13:24]MH_I2C_Read... [09:13:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:24]Read from MH i2c: E2 [09:13:24]MH_I2C_Read... [09:13:24]Read from MH i2c: E2 17 00 [09:13:24]MH_I2C_Read... [09:13:24]Read from MH i2c: E2 17 00 EC 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D3 [09:13:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:13:24]wFMCommunicate OK [09:13:24]CreateOFDProtocolMessage done [09:13:24]OFDSenderStorePacket 119342 [09:13:24]StoreOFDPacket docnum=119342 [09:13:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D4 BC 07 01 9A 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 49 00 00 00 F4 03 04 00 34 00 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2E D2 01 00 35 04 06 00 E2 AD D7 B3 43 2F DD EF 26 AA 5C 32 79 A1 [09:13:24]CheckFolder [09:13:24]dirname=/storage/ofd_packets [09:13:24]CheckFolder done [09:13:24]ProducePacketName [09:13:24]name=ofd_packets/00119342 [09:13:24]NVStorageSaveData ofd_packets/00119342 [09:13:24]File name is /storage/ofd_packets/00119342 [09:13:24]Write 301 bytes [09:13:24]NVStorageSaveData done [09:13:24]OFDSenderStorePacket done [09:13:24]KKMCreateOFDPacket done [09:13:24]NVStorageSaveData kkm_last_timestamp [09:13:24]File name is /storage/kkm_last_timestamp [09:13:24]Write 4 bytes [09:13:24]NVStorageSaveData done [09:13:24]ExternCall_PrintAddStr [09:13:24]wPrintStart [09:13:24]Write to MH i2c: 01 00 00 ED 12 FF [09:13:24]Write i2c OK [09:13:24]MH_I2C_Read... [09:13:24]Read from MH i2c: 01 [09:13:24]MH_I2C_Read... [09:13:24]Read from MH i2c: 01 07 00 [09:13:24]MH_I2C_Read... [09:13:24]Read from MH i2c: 01 07 00 ED 12 00 00 00 00 00 FF 0F 14 [09:13:24]RasterBufferAndPrint [09:13:24]line Счет N : (1)950268 [09:13:24]line ИНН: 02508201610067 [09:13:24]line Контрольно-Кассовый Чек [09:13:24]line ПРОДАЖА [09:13:24]line ТРК (МРК, ГНК) : 31 [09:13:24]line Товар: 2710124130 [09:13:24]line Аи-92-К-4 [09:13:24]line 7.380 * 67.80 [09:13:24]line = 500.36 [09:13:24]line НДС 12% НСП 1% [09:13:24]line > о реализуемом товаре [09:13:24]line ОКРУГЛЕНИЕ: -0.36 [09:13:24]line ИТОГО: 500.00 [09:13:24]line Внесено: 500.00 [09:13:24]line СДАЧА: 0.00 [09:13:24]line НСП 1% : 4.43 [09:13:24]line НДС 12% : 53.14 [09:13:24]line Наличными: 500.00 [09:13:24]line Безнал.: 0.00 [09:13:24]line Место: АЗС № 134 "Партнер Нефть" [09:13:24]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:13:24]line СНО: Общий режим [09:13:24]line Чек 73 31.07.2024 09:13 [09:13:24]line Смена: 436 ФФД: 1.0 [09:13:24]line ЗНМ: 0300000044 [09:13:24]line РНМ: 0000000000092660 [09:13:24]line Версия ККМ: 001 [09:13:24]line ФМ: 0000000000874939 [09:13:24]line ФД: 119342 [09:13:24]line ФПД: 249236276069167 [09:13:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T091324&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119342&fm=249236276069167&tin=02508201610067®Number=0000000000092660&sum=50000 [09:13:24]OFD Sender: Processing packet 119342 [packets to send 86, broken 85] [09:13:24]ProducePacketName [09:13:24]name=ofd_packets/00119342 [09:13:24]OFD Sender: To server: pG, [09:13:24]CommunicateWithHost lk.salyk.kg:30040 [09:13:24]ConnectInit lk.salyk.kg [09:13:24]written 0, free lines is 4095 [09:13:24]Connected sock=10 [09:13:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D4 BC 07 01 9A 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 49 00 00 00 F4 03 04 00 34 00 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2E D2 01 00 35 04 06 00 E2 AD D7 B3 43 2F DD EF 26 AA 5C 32 79 A1 [09:13:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 31 C5 47 00 04 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2E D2 01 00 F4 03 04 00 BD AD A9 66 B6 04 01 00 00 65 FE 9C 7F 81 56 5D 8C [09:13:24]CommunicateWithHost err = 0 [09:13:24]CheckOFDResponse [09:13:24]1017 (14) - 77093643461234 [09:13:24]1041 (16) - 0000000000874939 [09:13:24]1040 (4) - 119342 [09:13:24]1012 (4) - 31.07.2024 03:21 [09:13:24]1206 (1) - 0 [09:13:24]OFD Sender: Remove packet 119342 [09:13:24]ProducePacketName [09:13:24]name=ofd_packets/00119342 [09:13:24]NVStorageDeleteData [09:13:24]Write to MH i2c: 01 00 00 17 13 2A [09:13:24]Write i2c OK [09:13:24]MH_I2C_Read... [09:13:24]Read from MH i2c: 01 [09:13:24]MH_I2C_Read... [09:13:24]Read from MH i2c: 01 07 00 [09:13:24]MH_I2C_Read... [09:13:24]Read from MH i2c: 01 07 00 17 13 00 00 00 00 00 D8 0C 15 [09:13:24]RasterBufferAndPrint [09:13:24]line [09:13:24]line [09:13:24]line [09:13:24]line [09:13:24]line [09:13:24]written 0, free lines is 3296 [09:13:24]MH_Cut [09:13:24]Write to MH i2c: D1 01 00 1E 13 01 03 [09:13:24]Write i2c OK [09:13:24]MH_I2C_Read... [09:13:24]Read from MH i2c: D1 [09:13:24]MH_I2C_Read... [09:13:24]Read from MH i2c: D1 01 00 [09:13:24]MH_I2C_Read... [09:13:24]Read from MH i2c: D1 01 00 1E 13 00 02 [09:13:24]Write to MH i2c: 01 00 00 1F 13 32 [09:13:24]Write i2c OK [09:13:24]MH_I2C_Read... [09:13:25]OFD Sender: No OFD packet to send [09:13:25]*** Cut start [09:13:25]*** Partial cut [09:13:25]*** CUTSNS_PIN = 1 [09:13:25]*** CUTSNS_PIN = 0 [09:13:25]*** Brake cut motor [09:13:26]Read from MH i2c: 01 [09:13:26]MH_I2C_Read... [09:13:26]*** Stop cut motor [09:13:26]*** Cut end [09:13:26]Read from MH i2c: 01 07 00 [09:13:26]MH_I2C_Read... [09:13:26]Read from MH i2c: 01 07 00 1F 13 00 00 00 00 00 FF 0F 47 [09:13:26]process_action close_receipt done [09:13:26]requested_data is exist [09:13:26]produce_requested_data [09:13:26]requested_item fm.sn is exist - process it [09:13:26]wFMCommunicate request_size=4 [09:13:26]MH_SAM_APDU [09:13:26]CAPDU: 80 11 00 00 [09:13:26]Write to MH i2c: E2 08 00 20 13 80 11 00 00 00 00 00 00 AD [09:13:26]Write i2c OK [09:13:26]MH_I2C_Read... [09:13:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:26]Read from MH i2c: E2 [09:13:26]MH_I2C_Read... [09:13:26]Read from MH i2c: E2 17 00 [09:13:26]MH_I2C_Read... [09:13:26]Read from MH i2c: E2 17 00 20 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 08 [09:13:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:13:26]wFMCommunicate OK [09:13:26]requested_item fd.num is exist - process it [09:13:26]SAM_PROTO_GetFieldsCounters [09:13:26]wFMCommunicate request_size=4 [09:13:26]MH_SAM_APDU [09:13:26]CAPDU: 80 13 00 00 [09:13:26]Write to MH i2c: E2 08 00 21 13 80 13 00 00 00 00 00 00 B0 [09:13:26]Write i2c OK [09:13:26]MH_I2C_Read... [09:13:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:13:26]Read from MH i2c: E2 [09:13:26]MH_I2C_Read... [09:13:26]Read from MH i2c: E2 62 00 [09:13:26]MH_I2C_Read... [09:13:26]Read from MH i2c: E2 62 00 21 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2E D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [09:13:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2E D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:13:26]wFMCommunicate OK [09:13:26]SAM_PROTO_GetFieldsCounters done [09:13:26]requested_item shift.num is exist - process it [09:13:26]requested_item shift.opened is exist - process it [09:13:26]req_shift_opened [09:13:26]FM_GetShiftState [09:13:26]SAM_PROTO_GetShiftState [09:13:26]wFMCommunicate request_size=4 [09:13:26]MH_SAM_APDU [09:13:26]CAPDU: 80 13 01 00 [09:13:26]Write to MH i2c: E2 08 00 22 13 80 13 01 00 00 00 00 00 B2 [09:13:26]Write i2c OK [09:13:26]MH_I2C_Read... [09:13:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:26]Read from MH i2c: E2 [09:13:26]MH_I2C_Read... [09:13:26]Read from MH i2c: E2 0E 00 [09:13:26]MH_I2C_Read... [09:13:26]Read from MH i2c: E2 0E 00 22 13 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 4A [09:13:26]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:13:26]wFMCommunicate OK [09:13:26]SAM_PROTO_GetShiftState done [09:13:26]FM_GetShiftState done [09:13:26]req_shift_opened done [09:13:26]requested_item shift.open_date is exist - process it [09:13:26]req_shift_open_date [09:13:26]req_shift_open_date done [09:13:26]produce_requested_data done [09:13:26]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119342,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [09:13:26]process_action_free close_receipt [09:13:26]json_value_free [09:13:26]json_value_free done [09:13:26]process_json_proto returns [09:13:26]Send response to host [09:13:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119342,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [09:13:26]free response buf [09:13:26]execute_script done [09:13:26]execute_script returns [09:13:26]free content buf [09:13:26]Sock 8.Close socket [09:13:26]Sock 8.Thread stoped [09:13:30]OFD Sender: No OFD packet to send [09:13:35]OFD Sender: No OFD packet to send [09:13:40]OFD Sender: No OFD packet to send [09:13:45]OFD Sender: No OFD packet to send [09:13:50]OFD Sender: No OFD packet to send [09:13:55]OFD Sender: No OFD packet to send [09:14:00]OFD Sender: No OFD packet to send [09:14:05]OFD Sender: No OFD packet to send [09:14:10]OFD Sender: No OFD packet to send [09:14:15]OFD Sender: No OFD packet to send [09:14:20]OFD Sender: No OFD packet to send [09:14:25]OFD Sender: No OFD packet to send [09:14:30]OFD Sender: No OFD packet to send [09:14:35]OFD Sender: No OFD packet to send [09:14:40]OFD Sender: No OFD packet to send [09:14:45]OFD Sender: No OFD packet to send [09:14:50]OFD Sender: No OFD packet to send [09:14:55]OFD Sender: No OFD packet to send [09:15:00]OFD Sender: No OFD packet to send [09:15:05]OFD Sender: No OFD packet to send [09:15:10]OFD Sender: No OFD packet to send [09:15:15]OFD Sender: No OFD packet to send [09:15:20]OFD Sender: No OFD packet to send [09:15:25]OFD Sender: No OFD packet to send [09:15:30]OFD Sender: No OFD packet to send [09:15:35]OFD Sender: No OFD packet to send [09:15:40]OFD Sender: No OFD packet to send [09:15:45]OFD Sender: No OFD packet to send [09:15:50]OFD Sender: No OFD packet to send [09:15:55]OFD Sender: No OFD packet to send [09:16:00]OFD Sender: No OFD packet to send [09:16:05]OFD Sender: No OFD packet to send [09:16:10]OFD Sender: No OFD packet to send [09:16:15]OFD Sender: No OFD packet to send [09:16:20]OFD Sender: No OFD packet to send [09:16:25]OFD Sender: No OFD packet to send [09:16:30]OFD Sender: No OFD packet to send [09:16:35]OFD Sender: No OFD packet to send [09:16:40]OFD Sender: No OFD packet to send [09:16:44]accept exits with 9 [09:16:44]New connection [09:16:44]New thread 3067338084 created [09:16:44] Sock 9.Parse request [09:16:44]Thread 3067194724 joined [09:16:44]Sock 9.Check first char [09:16:44]Waiting for new connection... [09:16:44]Sock 9.First char is OK [09:16:44]request: POST /json_proto HTTP/1.0 [09:16:44]Method: POST [09:16:44]URL: /json_proto [09:16:44]Method is POST - this is cgi request [09:16:44]url: /json_proto [09:16:44]query_string will be loaded in cgi processing [09:16:44]execute_cgi json_proto POST (null) [09:16:44]execute_cgi path=json_proto method=POST [09:16:44]POST find Content-Length [09:16:44]Host: 172.17.45.7:8080 [09:16:44]Content-Length: 674 [09:16:44]Content-Type: application/json [09:16:44] [09:16:44]POST finish read [09:16:44]Found Content-Length = 674 [09:16:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:44]execute_script... [09:16: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)950269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:44]POST & json_proto [09:16:44]process_json_proto [09:16:44]json parsed OK: [09:16:44]protocol is kg_v1.0 [09:16:44]action value=close_receipt [09:16:44]process_action close_receipt [09:16:44]cmd_close_receipt [09:16:44]MH_GetDate [09:16:44]Write to MH i2c: F0 00 00 23 13 25 [09:16:44]Write i2c OK [09:16:44]MH_I2C_Read... [09:16:44]Read from MH i2c: F0 [09:16:44]MH_I2C_Read... [09:16:44]Read from MH i2c: F0 09 00 [09:16:44]MH_I2C_Read... [09:16:44]Read from MH i2c: F0 09 00 23 13 00 FE 00 AA 66 90 0F 3E 66 7F [09:16:44]GetLastDocTimeStamp 1722417204 [09:16:44]current date 1722417406 [09:16:44]FM_GetShiftState [09:16:44]SAM_PROTO_GetShiftState [09:16:44]wFMCommunicate request_size=4 [09:16:44]MH_SAM_APDU [09:16:44]CAPDU: 80 13 01 00 [09:16:44]Write to MH i2c: E2 08 00 24 13 80 13 01 00 00 00 00 00 B4 [09:16:44]Write i2c OK [09:16:44]MH_I2C_Read... [09:16:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:44]Read from MH i2c: E2 [09:16:44]MH_I2C_Read... [09:16:44]Read from MH i2c: E2 0E 00 [09:16:44]MH_I2C_Read... [09:16:44]Read from MH i2c: E2 0E 00 24 13 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 4C [09:16:44]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:16:44]wFMCommunicate OK [09:16:44]SAM_PROTO_GetShiftState done [09:16:44]FM_GetShiftState done [09:16:44]opened in 1722384637 [09:16:44]opened+sec_in_day 1722471037 [09:16:44]quantity*price = 40005 [09:16:44]sum+1 = 40006 [09:16:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 74 31.07.2024 09:16 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119343 ФПД: 237493896154625 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T091646&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119343&fm=237493896154625&tin=02508201610067®Number=0000000000092660&sum=40000 [09:16:45]StoreToDocumentArchive [09:16:45]shift 436 fd 119343 [09:16:45]save to /storage/0436/doc_00119343 [09:16:45]save last doc name /storage/0436/doc_00119343 to /storage/kkm_last_doc_name [09:16:45]save OK [09:16:45]Clear old archive folders... [09:16:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:16:45]tlvbuf is 00AFFB30 [09:16:45]SAM_PROTO_ClearQueue [09:16:45]wFMCommunicate request_size=4 [09:16:45]MH_SAM_APDU [09:16:45]CAPDU: 80 09 00 00 [09:16:45]Write to MH i2c: E2 08 00 31 13 80 09 00 00 00 00 00 00 B6 [09:16:45]Write i2c OK [09:16:45]MH_I2C_Read... [09:16:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:16:45]Read from MH i2c: E2 [09:16:45]MH_I2C_Read... [09:16:45]Read from MH i2c: E2 03 00 [09:16:45]MH_I2C_Read... [09:16:45]Read from MH i2c: E2 03 00 31 13 00 90 00 B8 [09:16:45]RAPDU: 90 00 [09:16:45]wFMCommunicate OK [09:16:45]SAM_PROTO_ClearQueue done [09:16:45]KKMCreateOFDPacket [09:16:45]OFDProtocolAddRootSTLVToBuf [09:16:45]FM_MakeSignedData [09:16:45]FM_MakeSignedData [09:16:45]SAM_PROTO_SignData [09:16:45]wFMCommunicate request_size=4 [09:16:45]MH_SAM_APDU [09:16:45]CAPDU: 80 0D 01 02 [09:16:45]Write to MH i2c: E2 08 00 32 13 80 0D 01 02 00 00 00 00 BE [09:16:45]Write i2c OK [09:16:45]MH_I2C_Read... [09:16:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:16:45]Read from MH i2c: E2 [09:16:45]MH_I2C_Read... [09:16:45]Read from MH i2c: E2 03 00 [09:16:45]MH_I2C_Read... [09:16:45]Read from MH i2c: E2 03 00 32 13 00 90 00 B9 [09:16:45]RAPDU: 90 00 [09:16:45]wFMCommunicate OK [09:16:45]wFMCommunicate request_size=255 [09:16:45]MH_SAM_APDU [09:16:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 FE 00 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2F D2 01 00 35 04 06 00 D7 FF DB 51 [09:16:45]Write to MH i2c: E2 02 01 33 13 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 FE 00 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2F D2 01 00 35 04 06 00 D7 FF DB 51 00 00 52 [09:16:45]Write i2c OK [09:16:45]MH_I2C_Read... [09:16:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:46]Read from MH i2c: E2 [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: E2 03 00 [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: E2 03 00 33 13 00 90 00 BA [09:16:46]RAPDU: 90 00 [09:16:46]wFMCommunicate OK [09:16:46]wFMCommunicate request_size=7 [09:16:46]MH_SAM_APDU [09:16:46]CAPDU: 80 0D 02 02 02 0E 01 [09:16:46]Write to MH i2c: E2 0A 00 34 13 80 0D 02 02 02 00 0E 01 00 00 D4 [09:16:46]Write i2c OK [09:16:46]MH_I2C_Read... [09:16:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:46]Read from MH i2c: E2 [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: E2 03 00 [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: E2 03 00 34 13 00 90 00 BB [09:16:46]RAPDU: 90 00 [09:16:46]wFMCommunicate OK [09:16:46]wFMCommunicate request_size=4 [09:16:46]MH_SAM_APDU [09:16:46]CAPDU: 80 0D 03 02 [09:16:46]Write to MH i2c: E2 08 00 35 13 80 0D 03 02 00 00 00 00 C3 [09:16:46]Write i2c OK [09:16:46]MH_I2C_Read... [09:16:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:16:46]Read from MH i2c: E2 [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: E2 0B 00 [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: E2 0B 00 35 13 00 D5 27 23 D7 FC B6 69 66 90 00 3B [09:16:46]RAPDU: D5 27 23 D7 FC B6 69 66 90 00 [09:16:46]wFMCommunicate OK [09:16:46]SAM_PROTO_SignData done [09:16:46]FM_MakeSignedData done [09:16:46]CreateOFDProtocolMessage [09:16:46]wFMCommunicate request_size=4 [09:16:46]MH_SAM_APDU [09:16:46]CAPDU: 80 11 00 00 [09:16:46]Write to MH i2c: E2 08 00 36 13 80 11 00 00 00 00 00 00 C3 [09:16:46]Write i2c OK [09:16:46]MH_I2C_Read... [09:16:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:46]Read from MH i2c: E2 [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: E2 17 00 [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: E2 17 00 36 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1E [09:16:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:16:46]wFMCommunicate OK [09:16:46]CreateOFDProtocolMessage done [09:16:46]OFDSenderStorePacket 119343 [09:16:46]StoreOFDPacket docnum=119343 [09:16:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E2 E0 04 01 F7 FE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 FE 00 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2F D2 01 00 35 04 06 00 D7 FF DB 51 0E 01 D5 27 23 D7 FC B6 69 66 [09:16:46]CheckFolder [09:16:46]dirname=/storage/ofd_packets [09:16:46]CheckFolder done [09:16:46]ProducePacketName [09:16:46]name=ofd_packets/00119343 [09:16:46]NVStorageSaveData ofd_packets/00119343 [09:16:46]File name is /storage/ofd_packets/00119343 [09:16:46]Write 298 bytes [09:16:46]NVStorageSaveData done [09:16:46]OFDSenderStorePacket done [09:16:46]KKMCreateOFDPacket done [09:16:46]NVStorageSaveData kkm_last_timestamp [09:16:46]File name is /storage/kkm_last_timestamp [09:16:46]Write 4 bytes [09:16:46]NVStorageSaveData done [09:16:46]ExternCall_PrintAddStr [09:16:46]wPrintStart [09:16:46]Write to MH i2c: 01 00 00 37 13 4A [09:16:46]Write i2c OK [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: 01 [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: 01 07 00 [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: 01 07 00 37 13 00 00 00 00 00 FF 0F 5F [09:16:46]RasterBufferAndPrint [09:16:46]line Счет N : (1)950269 [09:16:46]line ИНН: 02508201610067 [09:16:46]line Контрольно-Кассовый Чек [09:16:46]line ПРОДАЖА [09:16:46]line ТРК (МРК, ГНК) : 34 [09:16:46]line Товар: 2710194800 [09:16:46]line ДТ-К-5 [09:16:46]line 5.250 * 76.20 [09:16:46]line = 400.05 [09:16:46]line НДС 12% НСП 1% [09:16:46]line > о реализуемом товаре [09:16:46]line ОКРУГЛЕНИЕ: -0.05 [09:16:46]line ИТОГО: 400.00 [09:16:46]line Внесено: 400.00 [09:16:46]line СДАЧА: 0.00 [09:16:46]line НСП 1% : 3.54 [09:16:46]line НДС 12% : 42.48 [09:16:46]line Наличными: 400.00 [09:16:46]line Безнал.: 0.00 [09:16:46]line Место: АЗС № 134 "Партнер Нефть" [09:16:46]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:16:46]line СНО: Общий режим [09:16:46]line Чек 74 31.07.2024 09:16 [09:16:46]line Смена: 436 ФФД: 1.0 [09:16:46]line ЗНМ: 0300000044 [09:16:46]line РНМ: 0000000000092660 [09:16:46]line Версия ККМ: 001 [09:16:46]line ФМ: 0000000000874939 [09:16:46]line ФД: 119343 [09:16:46]line ФПД: 237493896154625 [09:16:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T091646&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119343&fm=237493896154625&tin=02508201610067®Number=0000000000092660&sum=40000 [09:16:46]OFD Sender: Processing packet 119343 [packets to send 86, broken 85] [09:16:46]ProducePacketName [09:16:46]name=ofd_packets/00119343 [09:16:46]OFD Sender: To server: pG, [09:16:46]CommunicateWithHost lk.salyk.kg:30040 [09:16:46]ConnectInit lk.salyk.kg [09:16:46]written 0, free lines is 4095 [09:16:46]Connected sock=10 [09:16:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E2 E0 04 01 F7 FE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 FE 00 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2F D2 01 00 35 04 06 00 D7 FF DB 51 0E 01 D5 27 23 D7 FC B6 69 66 [09:16:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 5A 92 47 00 4A 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2F D2 01 00 F4 03 04 00 87 AE A9 66 B6 04 01 00 00 8E B7 1E 0E 24 A1 7D 31 [09:16:46]CommunicateWithHost err = 0 [09:16:46]CheckOFDResponse [09:16:46]1017 (14) - 77093643461234 [09:16:46]1041 (16) - 0000000000874939 [09:16:46]1040 (4) - 119343 [09:16:46]1012 (4) - 31.07.2024 03:24 [09:16:46]1206 (1) - 0 [09:16:46]OFD Sender: Remove packet 119343 [09:16:46]ProducePacketName [09:16:46]name=ofd_packets/00119343 [09:16:46]NVStorageDeleteData [09:16:46]Write to MH i2c: 01 00 00 61 13 74 [09:16:46]Write i2c OK [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: 01 [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: 01 07 00 [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: 01 07 00 61 13 00 00 00 00 00 E2 0C 69 [09:16:46]RasterBufferAndPrint [09:16:46]line [09:16:46]line [09:16:46]line [09:16:46]line [09:16:46]line [09:16:46]written 0, free lines is 3304 [09:16:46]MH_Cut [09:16:46]Write to MH i2c: D1 01 00 68 13 01 4D [09:16:46]Write i2c OK [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: D1 [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: D1 01 00 [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: D1 01 00 68 13 00 4C [09:16:46]Write to MH i2c: 01 00 00 69 13 7C [09:16:46]Write i2c OK [09:16:46]MH_I2C_Read... [09:16:47]OFD Sender: No OFD packet to send [09:16:47]*** Cut start [09:16:47]*** Partial cut [09:16:47]*** CUTSNS_PIN = 1 [09:16:47]*** CUTSNS_PIN = 0 [09:16:47]*** Brake cut motor [09:16:48]Read from MH i2c: 01 [09:16:48]MH_I2C_Read... [09:16:48]*** Stop cut motor [09:16:48]*** Cut end [09:16:48]Read from MH i2c: 01 07 00 [09:16:48]MH_I2C_Read... [09:16:48]Read from MH i2c: 01 07 00 69 13 00 00 00 00 00 FF 0F 91 [09:16:48]process_action close_receipt done [09:16:48]requested_data is exist [09:16:48]produce_requested_data [09:16:48]requested_item fm.sn is exist - process it [09:16:48]wFMCommunicate request_size=4 [09:16:48]MH_SAM_APDU [09:16:48]CAPDU: 80 11 00 00 [09:16:48]Write to MH i2c: E2 08 00 6A 13 80 11 00 00 00 00 00 00 F7 [09:16:48]Write i2c OK [09:16:48]MH_I2C_Read... [09:16:48]Read from MH i2c: E2 [09:16:48]MH_I2C_Read... [09:16:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:48]Read from MH i2c: E2 17 00 [09:16:48]MH_I2C_Read... [09:16:48]Read from MH i2c: E2 17 00 6A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 52 [09:16:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:16:48]wFMCommunicate OK [09:16:48]requested_item fd.num is exist - process it [09:16:48]SAM_PROTO_GetFieldsCounters [09:16:48]wFMCommunicate request_size=4 [09:16:48]MH_SAM_APDU [09:16:48]CAPDU: 80 13 00 00 [09:16:48]Write to MH i2c: E2 08 00 6B 13 80 13 00 00 00 00 00 00 FA [09:16:48]Write i2c OK [09:16:48]MH_I2C_Read... [09:16:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:48]Read from MH i2c: E2 [09:16:48]MH_I2C_Read... [09:16:48]Read from MH i2c: E2 62 00 [09:16:48]MH_I2C_Read... [09:16:48]Read from MH i2c: E2 62 00 6B 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2F D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [09:16: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2F D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:16:48]wFMCommunicate OK [09:16:48]SAM_PROTO_GetFieldsCounters done [09:16:48]requested_item shift.num is exist - process it [09:16:48]requested_item shift.opened is exist - process it [09:16:48]req_shift_opened [09:16:48]FM_GetShiftState [09:16:48]SAM_PROTO_GetShiftState [09:16:48]wFMCommunicate request_size=4 [09:16:48]MH_SAM_APDU [09:16:48]CAPDU: 80 13 01 00 [09:16:48]Write to MH i2c: E2 08 00 6C 13 80 13 01 00 00 00 00 00 FC [09:16:48]Write i2c OK [09:16:48]MH_I2C_Read... [09:16:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:48]Read from MH i2c: E2 [09:16:48]MH_I2C_Read... [09:16:48]Read from MH i2c: E2 0E 00 [09:16:48]MH_I2C_Read... [09:16:48]Read from MH i2c: E2 0E 00 6C 13 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 94 [09:16:48]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:16:48]wFMCommunicate OK [09:16:48]SAM_PROTO_GetShiftState done [09:16:48]FM_GetShiftState done [09:16:48]req_shift_opened done [09:16:48]requested_item shift.open_date is exist - process it [09:16:48]req_shift_open_date [09:16:48]req_shift_open_date done [09:16:48]produce_requested_data done [09:16:48]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119343,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [09:16:48]process_action_free close_receipt [09:16:48]json_value_free [09:16:48]json_value_free done [09:16:48]process_json_proto returns [09:16:48]Send response to host [09:16:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119343,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [09:16:48]free response buf [09:16:48]execute_script done [09:16:48]execute_script returns [09:16:48]free content buf [09:16:48]Sock 9.Close socket [09:16:48]Sock 9.Thread stoped [09:16:52]OFD Sender: No OFD packet to send [09:16:57]OFD Sender: No OFD packet to send [09:17:02]OFD Sender: No OFD packet to send [09:17:07]OFD Sender: No OFD packet to send [09:17:12]OFD Sender: No OFD packet to send [09:17:17]OFD Sender: No OFD packet to send [09:17:22]OFD Sender: No OFD packet to send [09:17:27]OFD Sender: No OFD packet to send [09:17:30]recv_with_timeout no data received [09:17:32]OFD Sender: No OFD packet to send [09:17:37]OFD Sender: No OFD packet to send [09:17:42]OFD Sender: No OFD packet to send [09:17:47]OFD Sender: No OFD packet to send [09:17:52]OFD Sender: No OFD packet to send [09:17:57]OFD Sender: No OFD packet to send [09:18:02]OFD Sender: No OFD packet to send [09:18:07]OFD Sender: No OFD packet to send [09:18:12]OFD Sender: No OFD packet to send [09:18:17]OFD Sender: No OFD packet to send [09:18:22]OFD Sender: No OFD packet to send [09:18:27]OFD Sender: No OFD packet to send [09:18:32]OFD Sender: No OFD packet to send [09:18:37]OFD Sender: No OFD packet to send [09:18:42]OFD Sender: No OFD packet to send [09:18:47]OFD Sender: No OFD packet to send [09:18:52]OFD Sender: No OFD packet to send [09:18:57]OFD Sender: No OFD packet to send [09:19:02]OFD Sender: No OFD packet to send [09:19:07]OFD Sender: No OFD packet to send [09:19:12]OFD Sender: No OFD packet to send [09:19:17]OFD Sender: No OFD packet to send [09:19:22]OFD Sender: No OFD packet to send [09:19:27]OFD Sender: No OFD packet to send [09:19:32]OFD Sender: No OFD packet to send [09:19:37]OFD Sender: No OFD packet to send [09:19:42]OFD Sender: No OFD packet to send [09:19:47]OFD Sender: No OFD packet to send [09:19:52]OFD Sender: No OFD packet to send [09:19:57]OFD Sender: No OFD packet to send [09:20:02]OFD Sender: No OFD packet to send [09:20:07]OFD Sender: No OFD packet to send [09:20:12]OFD Sender: No OFD packet to send [09:20:17]OFD Sender: No OFD packet to send [09:20:22]OFD Sender: No OFD packet to send [09:20:27]OFD Sender: No OFD packet to send [09:20:32]OFD Sender: No OFD packet to send [09:20:37]OFD Sender: No OFD packet to send [09:20:42]OFD Sender: No OFD packet to send [09:20:47]OFD Sender: No OFD packet to send [09:20:52]OFD Sender: No OFD packet to send [09:20:57]OFD Sender: No OFD packet to send [09:21:02]OFD Sender: No OFD packet to send [09:21:07]OFD Sender: No OFD packet to send [09:21:12]OFD Sender: No OFD packet to send [09:21:17]OFD Sender: No OFD packet to send [09:21:22]OFD Sender: No OFD packet to send [09:21:27]OFD Sender: No OFD packet to send [09:21:32]OFD Sender: No OFD packet to send [09:21:37]OFD Sender: No OFD packet to send [09:21:42]OFD Sender: No OFD packet to send [09:21:47]OFD Sender: No OFD packet to send [09:21:52]OFD Sender: No OFD packet to send [09:21:57]OFD Sender: No OFD packet to send [09:22:02]OFD Sender: No OFD packet to send [09:22:07]OFD Sender: No OFD packet to send [09:22:12]OFD Sender: No OFD packet to send [09:22:15]accept exits with 8 [09:22:15]New connection [09:22:15]New thread 3067194724 created [09:22:15]Thread 3067338084 joined [09:22:15]Waiting for new connection... [09:22:15] Sock 8.Parse request [09:22:15]Sock 8.Check first char [09:22:15]Sock 8.First char is OK [09:22:15]request: POST /json_proto HTTP/1.0 [09:22:15]Method: POST [09:22:15]URL: /json_proto [09:22:15]Method is POST - this is cgi request [09:22:15]url: /json_proto [09:22:15]query_string will be loaded in cgi processing [09:22:15]execute_cgi json_proto POST (null) [09:22:15]execute_cgi path=json_proto method=POST [09:22:15]POST find Content-Length [09:22:15]Host: 172.17.45.7:8080 [09:22:15]Content-Length: 678 [09:22:15]Content-Type: application/json [09:22:15] [09:22:15]POST finish read [09:22:15]Found Content-Length = 678 [09:22:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 10.100, "sum" : 749.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 749.00, "total" : 749.00, "payments": [ { "type": 0, "sum" : 749.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:15]execute_script... [09:22: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)950270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 10.100, "sum" : 749.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 749.00, "total" : 749.00, "payments": [ { "type": 0, "sum" : 749.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:15]POST & json_proto [09:22:15]process_json_proto [09:22:15]json parsed OK: [09:22:15]protocol is kg_v1.0 [09:22:15]action value=close_receipt [09:22:15]process_action close_receipt [09:22:15]cmd_close_receipt [09:22:15]MH_GetDate [09:22:15]Write to MH i2c: F0 00 00 6D 13 6F [09:22:15]Write i2c OK [09:22:15]MH_I2C_Read... [09:22:15]Read from MH i2c: F0 [09:22:15]MH_I2C_Read... [09:22:15]Read from MH i2c: F0 09 00 [09:22:15]MH_I2C_Read... [09:22:15]Read from MH i2c: F0 09 00 6D 13 00 49 02 AA 66 90 0F 3E 66 16 [09:22:15]GetLastDocTimeStamp 1722417406 [09:22:15]current date 1722417737 [09:22:15]FM_GetShiftState [09:22:15]SAM_PROTO_GetShiftState [09:22:15]wFMCommunicate request_size=4 [09:22:15]MH_SAM_APDU [09:22:15]CAPDU: 80 13 01 00 [09:22:15]Write to MH i2c: E2 08 00 6E 13 80 13 01 00 00 00 00 00 FE [09:22:15]Write i2c OK [09:22:15]MH_I2C_Read... [09:22:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:15]Read from MH i2c: E2 [09:22:15]MH_I2C_Read... [09:22:15]Read from MH i2c: E2 0E 00 [09:22:15]MH_I2C_Read... [09:22:15]Read from MH i2c: E2 0E 00 6E 13 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 96 [09:22:15]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:22:15]wFMCommunicate OK [09:22:15]SAM_PROTO_GetShiftState done [09:22:15]FM_GetShiftState done [09:22:15]opened in 1722384637 [09:22:15]opened+sec_in_day 1722471037 [09:22:15]quantity*price = 74942 [09:22:15]sum+1 = 74943 [09:22:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 749.00 Внесено: 749.00 СДАЧА: 0.00 НСП 1% : 6.63 НДС 12% : 79.58 Наличными: 749.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 75 31.07.2024 09:22 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119344 ФПД: 181785817450719 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T092217&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119344&fm=181785817450719&tin=02508201610067®Number=0000000000092660&sum=74900 [09:22:16]StoreToDocumentArchive [09:22:16]shift 436 fd 119344 [09:22:16]save to /storage/0436/doc_00119344 [09:22:16]save last doc name /storage/0436/doc_00119344 to /storage/kkm_last_doc_name [09:22:16]save OK [09:22:16]Clear old archive folders... [09:22:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:22:16]tlvbuf is B6F1F9F0 [09:22:16]SAM_PROTO_ClearQueue [09:22:16]wFMCommunicate request_size=4 [09:22:16]MH_SAM_APDU [09:22:16]CAPDU: 80 09 00 00 [09:22:16]Write to MH i2c: E2 08 00 7B 13 80 09 00 00 00 00 00 00 00 [09:22:16]Write i2c OK [09:22:16]MH_I2C_Read... [09:22:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:16]Read from MH i2c: E2 [09:22:16]MH_I2C_Read... [09:22:16]Read from MH i2c: E2 03 00 [09:22:16]MH_I2C_Read... [09:22:16]Read from MH i2c: E2 03 00 7B 13 00 90 00 02 [09:22:16]RAPDU: 90 00 [09:22:16]wFMCommunicate OK [09:22:16]SAM_PROTO_ClearQueue done [09:22:16]KKMCreateOFDPacket [09:22:16]OFDProtocolAddRootSTLVToBuf [09:22:16]FM_MakeSignedData [09:22:16]FM_MakeSignedData [09:22:16]SAM_PROTO_SignData [09:22:16]wFMCommunicate request_size=4 [09:22:16]MH_SAM_APDU [09:22:16]CAPDU: 80 0D 01 02 [09:22:16]Write to MH i2c: E2 08 00 7C 13 80 0D 01 02 00 00 00 00 08 [09:22:16]Write i2c OK [09:22:16]MH_I2C_Read... [09:22:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:16]Read from MH i2c: E2 [09:22:16]MH_I2C_Read... [09:22:16]Read from MH i2c: E2 03 00 [09:22:16]MH_I2C_Read... [09:22:16]Read from MH i2c: E2 03 00 7C 13 00 90 00 03 [09:22:16]RAPDU: 90 00 [09:22:16]wFMCommunicate OK [09:22:16]wFMCommunicate request_size=255 [09:22:16]MH_SAM_APDU [09:22:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 24 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 1F 00 00 00 00 07 04 06 00 94 24 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 49 02 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 30 D2 01 00 35 04 06 00 A5 [09:22:16]Write to MH i2c: E2 02 01 7D 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 24 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 1F 00 00 00 00 07 04 06 00 94 24 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 49 02 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 30 D2 01 00 35 04 06 00 A5 00 00 F3 [09:22:16]Write i2c OK [09:22:16]MH_I2C_Read... [09:22:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:16]Read from MH i2c: E2 [09:22:16]MH_I2C_Read... [09:22:16]Read from MH i2c: E2 03 00 [09:22:16]MH_I2C_Read... [09:22:16]Read from MH i2c: E2 03 00 7D 13 00 90 00 04 [09:22:16]RAPDU: 90 00 [09:22:16]wFMCommunicate OK [09:22:16]wFMCommunicate request_size=10 [09:22:16]MH_SAM_APDU [09:22:16]CAPDU: 80 0D 02 02 05 55 4F 13 08 DF [09:22:16]Write to MH i2c: E2 0D 00 7E 13 80 0D 02 02 05 00 55 4F 13 08 DF 00 00 B3 [09:22:16]Write i2c OK [09:22:16]MH_I2C_Read... [09:22:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:16]Read from MH i2c: E2 [09:22:16]MH_I2C_Read... [09:22:16]Read from MH i2c: E2 03 00 [09:22:16]MH_I2C_Read... [09:22:16]Read from MH i2c: E2 03 00 7E 13 00 90 00 05 [09:22:16]RAPDU: 90 00 [09:22:16]wFMCommunicate OK [09:22:16]wFMCommunicate request_size=4 [09:22:16]MH_SAM_APDU [09:22:16]CAPDU: 80 0D 03 02 [09:22:16]Write to MH i2c: E2 08 00 7F 13 80 0D 03 02 00 00 00 00 0D [09:22:16]Write i2c OK [09:22:16]MH_I2C_Read... [09:22:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:17]Read from MH i2c: E2 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: E2 0B 00 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: E2 0B 00 7F 13 00 65 F4 AF E1 7D A1 A2 F4 90 00 AB [09:22:17]RAPDU: 65 F4 AF E1 7D A1 A2 F4 90 00 [09:22:17]wFMCommunicate OK [09:22:17]SAM_PROTO_SignData done [09:22:17]FM_MakeSignedData done [09:22:17]CreateOFDProtocolMessage [09:22:17]wFMCommunicate request_size=4 [09:22:17]MH_SAM_APDU [09:22:17]CAPDU: 80 11 00 00 [09:22:17]Write to MH i2c: E2 08 00 80 13 80 11 00 00 00 00 00 00 0D [09:22:17]Write i2c OK [09:22:17]MH_I2C_Read... [09:22:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:17]Read from MH i2c: E2 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: E2 17 00 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: E2 17 00 80 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 68 [09:22:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:22:17]wFMCommunicate OK [09:22:17]CreateOFDProtocolMessage done [09:22:17]OFDSenderStorePacket 119344 [09:22:17]StoreOFDPacket docnum=119344 [09:22:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 38 0F 07 01 F8 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 24 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 1F 00 00 00 00 07 04 06 00 94 24 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 49 02 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 30 D2 01 00 35 04 06 00 A5 55 4F 13 08 DF 65 F4 AF E1 7D A1 A2 F4 [09:22:17]CheckFolder [09:22:17]dirname=/storage/ofd_packets [09:22:17]CheckFolder done [09:22:17]ProducePacketName [09:22:17]name=ofd_packets/00119344 [09:22:17]NVStorageSaveData ofd_packets/00119344 [09:22:17]File name is /storage/ofd_packets/00119344 [09:22:17]Write 301 bytes [09:22:17]NVStorageSaveData done [09:22:17]OFDSenderStorePacket done [09:22:17]KKMCreateOFDPacket done [09:22:17]NVStorageSaveData kkm_last_timestamp [09:22:17]File name is /storage/kkm_last_timestamp [09:22:17]Write 4 bytes [09:22:17]NVStorageSaveData done [09:22:17]OFD Sender: Processing packet 119344 [packets to send 86, broken 85] [09:22:17]ProducePacketName [09:22:17]name=ofd_packets/00119344 [09:22:17]OFD Sender: To server: pG, [09:22:17]CommunicateWithHost lk.salyk.kg:30040 [09:22:17]ConnectInit lk.salyk.kg [09:22:17]ExternCall_PrintAddStr [09:22:17]wPrintStart [09:22:17]Write to MH i2c: 01 00 00 81 13 94 [09:22:17]Write i2c OK [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: 01 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: 01 07 00 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: 01 07 00 81 13 00 00 00 00 00 FF 0F A9 [09:22:17]RasterBufferAndPrint [09:22:17]line Счет N : (1)950270 [09:22:17]line ИНН: 02508201610067 [09:22:17]line Контрольно-Кассовый Чек [09:22:17]line ПРОДАЖА [09:22:17]line ТРК (МРК, ГНК) : 53 [09:22:17]line Товар: 2710124500 [09:22:17]line Аи-95-К-3 [09:22:17]line 10.100 * 74.20 [09:22:17]line = 749.42 [09:22:17]line НДС 12% НСП 1% [09:22:17]line > о реализуемом товаре [09:22:17]line ОКРУГЛЕНИЕ: -0.42 [09:22:17]line ИТОГО: 749.00 [09:22:17]line Внесено: 749.00 [09:22:17]line СДАЧА: 0.00 [09:22:17]line НСП 1% : 6.63 [09:22:17]line НДС 12% : 79.58 [09:22:17]line Наличными: 749.00 [09:22:17]line Безнал.: 0.00 [09:22:17]line Место: АЗС № 134 "Партнер Нефть" [09:22:17]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:22:17]line СНО: Общий режим [09:22:17]line Чек 75 31.07.2024 09:22 [09:22:17]line Смена: 436 ФФД: 1.0 [09:22:17]line ЗНМ: 0300000044 [09:22:17]line РНМ: 0000000000092660 [09:22:17]line Версия ККМ: 001 [09:22:17]line ФМ: 0000000000874939 [09:22:17]line ФД: 119344 [09:22:17]line ФПД: 181785817450719 [09:22:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T092217&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119344&fm=181785817450719&tin=02508201610067®Number=0000000000092660&sum=74900 [09:22:17]Connected sock=11 [09:22: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 39 33 39 0F 01 00 00 38 0F 07 01 F8 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 24 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 1F 00 00 00 00 07 04 06 00 94 24 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 49 02 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 30 D2 01 00 35 04 06 00 A5 55 4F 13 08 DF 65 F4 AF E1 7D A1 A2 F4 [09:22:17]written 0, free lines is 4095 [09:22:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 26 C3 47 00 76 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 30 D2 01 00 F4 03 04 00 D2 AF A9 66 B6 04 01 00 00 5D 52 A8 40 7B 20 4A A0 [09:22:17]CommunicateWithHost err = 0 [09:22:17]CheckOFDResponse [09:22:17]1017 (14) - 77093643461234 [09:22:17]1041 (16) - 0000000000874939 [09:22:17]1040 (4) - 119344 [09:22:17]1012 (4) - 31.07.2024 03:30 [09:22:17]1206 (1) - 0 [09:22:17]OFD Sender: Remove packet 119344 [09:22:17]ProducePacketName [09:22:17]name=ofd_packets/00119344 [09:22:17]NVStorageDeleteData [09:22:17]Write to MH i2c: 01 00 00 AB 13 BE [09:22:17]Write i2c OK [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: 01 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: 01 07 00 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: 01 07 00 AB 13 00 00 00 00 00 DF 0C B0 [09:22:17]RasterBufferAndPrint [09:22:17]line [09:22:17]line [09:22:17]line [09:22:17]line [09:22:17]line [09:22:17]written 0, free lines is 3301 [09:22:17]MH_Cut [09:22:17]Write to MH i2c: D1 01 00 B2 13 01 97 [09:22:17]Write i2c OK [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: D1 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: D1 01 00 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: D1 01 00 B2 13 00 96 [09:22:17]Write to MH i2c: 01 00 00 B3 13 C6 [09:22:17]Write i2c OK [09:22:17]MH_I2C_Read... [09:22:18]OFD Sender: No OFD packet to send [09:22:18]*** Cut start [09:22:18]*** Partial cut [09:22:18]*** CUTSNS_PIN = 1 [09:22:18]*** CUTSNS_PIN = 0 [09:22:18]*** Brake cut motor [09:22:19]Read from MH i2c: 01 [09:22:19]MH_I2C_Read... [09:22:19]*** Stop cut motor [09:22:19]*** Cut end [09:22:19]Read from MH i2c: 01 07 00 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: 01 07 00 B3 13 00 00 00 00 00 FF 0F DB [09:22:19]process_action close_receipt done [09:22:19]requested_data is exist [09:22:19]produce_requested_data [09:22:19]requested_item fm.sn is exist - process it [09:22:19]wFMCommunicate request_size=4 [09:22:19]MH_SAM_APDU [09:22:19]CAPDU: 80 11 00 00 [09:22:19]Write to MH i2c: E2 08 00 B4 13 80 11 00 00 00 00 00 00 41 [09:22:19]Write i2c OK [09:22:19]MH_I2C_Read... [09:22:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:19]Read from MH i2c: E2 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: E2 17 00 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: E2 17 00 B4 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9C [09:22:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:22:19]wFMCommunicate OK [09:22:19]requested_item fd.num is exist - process it [09:22:19]SAM_PROTO_GetFieldsCounters [09:22:19]wFMCommunicate request_size=4 [09:22:19]MH_SAM_APDU [09:22:19]CAPDU: 80 13 00 00 [09:22:19]Write to MH i2c: E2 08 00 B5 13 80 13 00 00 00 00 00 00 44 [09:22:19]Write i2c OK [09:22:19]MH_I2C_Read... [09:22:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:19]Read from MH i2c: E2 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: E2 62 00 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: E2 62 00 B5 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 30 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [09:22: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 30 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:22:19]wFMCommunicate OK [09:22:19]SAM_PROTO_GetFieldsCounters done [09:22:19]requested_item shift.num is exist - process it [09:22:19]requested_item shift.opened is exist - process it [09:22:19]req_shift_opened [09:22:19]FM_GetShiftState [09:22:19]SAM_PROTO_GetShiftState [09:22:19]wFMCommunicate request_size=4 [09:22:19]MH_SAM_APDU [09:22:19]CAPDU: 80 13 01 00 [09:22:19]Write to MH i2c: E2 08 00 B6 13 80 13 01 00 00 00 00 00 46 [09:22:19]Write i2c OK [09:22:19]MH_I2C_Read... [09:22:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:19]Read from MH i2c: E2 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: E2 0E 00 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: E2 0E 00 B6 13 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 DE [09:22:19]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:22:19]wFMCommunicate OK [09:22:19]SAM_PROTO_GetShiftState done [09:22:19]FM_GetShiftState done [09:22:19]req_shift_opened done [09:22:19]requested_item shift.open_date is exist - process it [09:22:19]req_shift_open_date [09:22:19]req_shift_open_date done [09:22:19]produce_requested_data done [09:22:19]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119344,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [09:22:19]process_action_free close_receipt [09:22:19]json_value_free [09:22:19]json_value_free done [09:22:19]process_json_proto returns [09:22:19]Send response to host [09:22:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119344,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [09:22:19]free response buf [09:22:19]execute_script done [09:22:19]execute_script returns [09:22:19]free content buf [09:22:19]Sock 8.Close socket [09:22:19]Sock 8.Thread stoped [09:22:23]OFD Sender: No OFD packet to send [09:22:28]OFD Sender: No OFD packet to send [09:22:33]OFD Sender: No OFD packet to send [09:22:38]OFD Sender: No OFD packet to send [09:22:43]OFD Sender: No OFD packet to send [09:22:48]OFD Sender: No OFD packet to send [09:22:53]OFD Sender: No OFD packet to send [09:22:58]OFD Sender: No OFD packet to send [09:23:03]OFD Sender: No OFD packet to send [09:23:08]OFD Sender: No OFD packet to send [09:23:13]OFD Sender: No OFD packet to send [09:23:18]OFD Sender: No OFD packet to send [09:23:23]OFD Sender: No OFD packet to send [09:23:28]OFD Sender: No OFD packet to send [09:23:33]OFD Sender: No OFD packet to send [09:23:38]OFD Sender: No OFD packet to send [09:23:43]OFD Sender: No OFD packet to send [09:23:48]OFD Sender: No OFD packet to send [09:23:53]OFD Sender: No OFD packet to send [09:23:58]OFD Sender: No OFD packet to send [09:24:03]OFD Sender: No OFD packet to send [09:24:08]OFD Sender: No OFD packet to send [09:24:13]OFD Sender: No OFD packet to send [09:24:18]OFD Sender: No OFD packet to send [09:24:23]OFD Sender: No OFD packet to send [09:24:27]accept exits with 9 [09:24:27]New connection [09:24:27]New thread 3067338084 created [09:24:27]Thread 3067194724 joined [09:24:27]Waiting for new connection... [09:24:27] Sock 9.Parse request [09:24:27]Sock 9.Check first char [09:24:27]Sock 9.First char is OK [09:24:27]request: POST /json_proto HTTP/1.0 [09:24:27]Method: POST [09:24:27]URL: /json_proto [09:24:27]Method is POST - this is cgi request [09:24:27]url: /json_proto [09:24:27]query_string will be loaded in cgi processing [09:24:27]execute_cgi json_proto POST (null) [09:24:27]execute_cgi path=json_proto method=POST [09:24:27]POST find Content-Length [09:24:27]Host: 172.17.45.7:8080 [09:24:27]Content-Length: 677 [09:24:27]Content-Type: application/json [09:24:27] [09:24:27]POST finish read [09:24:27]Found Content-Length = 677 [09:24:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "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:24:27]execute_script... [09:24: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)950271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "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:24:27]POST & json_proto [09:24:27]process_json_proto [09:24:27]json parsed OK: [09:24:27]protocol is kg_v1.0 [09:24:27]action value=close_receipt [09:24:27]process_action close_receipt [09:24:27]cmd_close_receipt [09:24:27]MH_GetDate [09:24:27]Write to MH i2c: F0 00 00 B7 13 B9 [09:24:27]Write i2c OK [09:24:27]MH_I2C_Read... [09:24:27]Read from MH i2c: F0 [09:24:27]MH_I2C_Read... [09:24:27]Read from MH i2c: F0 09 00 [09:24:27]MH_I2C_Read... [09:24:27]Read from MH i2c: F0 09 00 B7 13 00 CD 02 AA 66 90 0F 3E 66 E4 [09:24:27]GetLastDocTimeStamp 1722417737 [09:24:27]current date 1722417869 [09:24:27]FM_GetShiftState [09:24:27]SAM_PROTO_GetShiftState [09:24:27]wFMCommunicate request_size=4 [09:24:27]MH_SAM_APDU [09:24:27]CAPDU: 80 13 01 00 [09:24:27]Write to MH i2c: E2 08 00 B8 13 80 13 01 00 00 00 00 00 48 [09:24:27]Write i2c OK [09:24:27]MH_I2C_Read... [09:24:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:27]Read from MH i2c: E2 [09:24:27]MH_I2C_Read... [09:24:27]Read from MH i2c: E2 0E 00 [09:24:27]MH_I2C_Read... [09:24:27]Read from MH i2c: E2 0E 00 B8 13 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 E0 [09:24:27]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:24:27]wFMCommunicate OK [09:24:27]SAM_PROTO_GetShiftState done [09:24:27]FM_GetShiftState done [09:24:27]opened in 1722384637 [09:24:27]opened+sec_in_day 1722471037 [09:24:27]quantity*price = 60027 [09:24:27]sum+1 = 60029 [09:24:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 76 31.07.2024 09:24 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119345 ФПД: 49710161362532 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T092429&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119345&fm=49710161362532&tin=02508201610067®Number=0000000000092660&sum=60000 [09:24:28]StoreToDocumentArchive [09:24:28]shift 436 fd 119345 [09:24:28]save to /storage/0436/doc_00119345 [09:24:28]save last doc name /storage/0436/doc_00119345 to /storage/kkm_last_doc_name [09:24:28]save OK [09:24:28]Clear old archive folders... [09:24:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:24:28]tlvbuf is 00B68070 [09:24:28]SAM_PROTO_ClearQueue [09:24:28]wFMCommunicate request_size=4 [09:24:28]MH_SAM_APDU [09:24:28]CAPDU: 80 09 00 00 [09:24:28]Write to MH i2c: E2 08 00 C5 13 80 09 00 00 00 00 00 00 4A [09:24:28]Write i2c OK [09:24:28]MH_I2C_Read... [09:24:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:24:28]Read from MH i2c: E2 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: E2 03 00 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: E2 03 00 C5 13 00 90 00 4C [09:24:28]RAPDU: 90 00 [09:24:28]wFMCommunicate OK [09:24:28]SAM_PROTO_ClearQueue done [09:24:28]KKMCreateOFDPacket [09:24:28]OFDProtocolAddRootSTLVToBuf [09:24:28]FM_MakeSignedData [09:24:28]FM_MakeSignedData [09:24:28]SAM_PROTO_SignData [09:24:28]wFMCommunicate request_size=4 [09:24:28]MH_SAM_APDU [09:24:28]CAPDU: 80 0D 01 02 [09:24:28]Write to MH i2c: E2 08 00 C6 13 80 0D 01 02 00 00 00 00 52 [09:24:28]Write i2c OK [09:24:28]MH_I2C_Read... [09:24:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:24:28]Read from MH i2c: E2 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: E2 03 00 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: E2 03 00 C6 13 00 90 00 4D [09:24:28]RAPDU: 90 00 [09:24:28]wFMCommunicate OK [09:24:28]wFMCommunicate request_size=255 [09:24:28]MH_SAM_APDU [09:24:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 4C 00 00 00 F4 03 04 00 CD 02 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 31 D2 01 00 35 04 06 00 2D [09:24:28]Write to MH i2c: E2 02 01 C7 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 4C 00 00 00 F4 03 04 00 CD 02 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 31 D2 01 00 35 04 06 00 2D 00 00 54 [09:24:28]Write i2c OK [09:24:28]MH_I2C_Read... [09:24:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:28]Read from MH i2c: E2 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: E2 03 00 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: E2 03 00 C7 13 00 90 00 4E [09:24:28]RAPDU: 90 00 [09:24:28]wFMCommunicate OK [09:24:28]wFMCommunicate request_size=10 [09:24:28]MH_SAM_APDU [09:24:28]CAPDU: 80 0D 02 02 05 36 0C 82 7E 64 [09:24:28]Write to MH i2c: E2 0D 00 C8 13 80 0D 02 02 05 00 36 0C 82 7E 64 00 00 05 [09:24:28]Write i2c OK [09:24:28]MH_I2C_Read... [09:24:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:28]Read from MH i2c: E2 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: E2 03 00 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: E2 03 00 C8 13 00 90 00 4F [09:24:28]RAPDU: 90 00 [09:24:28]wFMCommunicate OK [09:24:28]wFMCommunicate request_size=4 [09:24:28]MH_SAM_APDU [09:24:28]CAPDU: 80 0D 03 02 [09:24:28]Write to MH i2c: E2 08 00 C9 13 80 0D 03 02 00 00 00 00 57 [09:24:28]Write i2c OK [09:24:28]MH_I2C_Read... [09:24:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:24:28]Read from MH i2c: E2 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: E2 0B 00 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: E2 0B 00 C9 13 00 90 CA F1 3F 92 30 FC DA 90 00 7A [09:24:28]RAPDU: 90 CA F1 3F 92 30 FC DA 90 00 [09:24:28]wFMCommunicate OK [09:24:28]SAM_PROTO_SignData done [09:24:28]FM_MakeSignedData done [09:24:28]CreateOFDProtocolMessage [09:24:28]wFMCommunicate request_size=4 [09:24:28]MH_SAM_APDU [09:24:28]CAPDU: 80 11 00 00 [09:24:28]Write to MH i2c: E2 08 00 CA 13 80 11 00 00 00 00 00 00 57 [09:24:28]Write i2c OK [09:24:28]MH_I2C_Read... [09:24:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:28]Read from MH i2c: E2 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: E2 17 00 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: E2 17 00 CA 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B2 [09:24:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:24:28]wFMCommunicate OK [09:24:28]CreateOFDProtocolMessage done [09:24:28]OFDSenderStorePacket 119345 [09:24:28]StoreOFDPacket docnum=119345 [09:24:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 9C A7 07 01 31 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 4C 00 00 00 F4 03 04 00 CD 02 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 31 D2 01 00 35 04 06 00 2D 36 0C 82 7E 64 90 CA F1 3F 92 30 FC DA [09:24:28]CheckFolder [09:24:28]dirname=/storage/ofd_packets [09:24:28]CheckFolder done [09:24:28]ProducePacketName [09:24:28]name=ofd_packets/00119345 [09:24:28]NVStorageSaveData ofd_packets/00119345 [09:24:28]File name is /storage/ofd_packets/00119345 [09:24:28]Write 301 bytes [09:24:28]NVStorageSaveData done [09:24:28]OFDSenderStorePacket done [09:24:28]KKMCreateOFDPacket done [09:24:28]NVStorageSaveData kkm_last_timestamp [09:24:28]File name is /storage/kkm_last_timestamp [09:24:28]Write 4 bytes [09:24:28]NVStorageSaveData done [09:24:28]ExternCall_PrintAddStr [09:24:28]wPrintStart [09:24:28]Write to MH i2c: 01 00 00 CB 13 DE [09:24:28]Write i2c OK [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: 01 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: 01 07 00 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: 01 07 00 CB 13 00 00 00 00 00 FF 0F F3 [09:24:28]RasterBufferAndPrint [09:24:28]line Счет N : (1)950271 [09:24:28]line ИНН: 02508201610067 [09:24:28]line Контрольно-Кассовый Чек [09:24:28]line ПРОДАЖА [09:24:28]line ТРК (МРК, ГНК) : 33 [09:24:28]line Товар: 2710124500 [09:24:28]line Аи-95-К-3 [09:24:28]line 8.090 * 74.20 [09:24:28]line = 600.28 [09:24:28]line НДС 12% НСП 1% [09:24:28]line > о реализуемом товаре [09:24:28]line ОКРУГЛЕНИЕ: -0.28 [09:24:28]line ИТОГО: 600.00 [09:24:28]line Внесено: 600.00 [09:24:28]line СДАЧА: 0.00 [09:24:28]line НСП 1% : 5.31 [09:24:28]line НДС 12% : 63.75 [09:24:28]line Наличными: 600.00 [09:24:28]line Безнал.: 0.00 [09:24:28]line Место: АЗС № 134 "Партнер Нефть" [09:24:28]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:24:28]line СНО: Общий режим [09:24:28]line Чек 76 31.07.2024 09:24 [09:24:28]line Смена: 436 ФФД: 1.0 [09:24:28]line ЗНМ: 0300000044 [09:24:28]line РНМ: 0000000000092660 [09:24:28]line Версия ККМ: 001 [09:24:28]line ФМ: 0000000000874939 [09:24:28]line ФД: 119345 [09:24:28]line ФПД: 49710161362532 [09:24:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T092429&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119345&fm=49710161362532&tin=02508201610067®Number=0000000000092660&sum=60000 [09:24:29]OFD Sender: Processing packet 119345 [packets to send 86, broken 85] [09:24:29]ProducePacketName [09:24:29]name=ofd_packets/00119345 [09:24:29]OFD Sender: To server: pG, [09:24:29]CommunicateWithHost lk.salyk.kg:30040 [09:24:29]ConnectInit lk.salyk.kg [09:24:29]written 0, free lines is 4095 [09:24:29]Connected sock=10 [09:24:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 9C A7 07 01 31 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 4C 00 00 00 F4 03 04 00 CD 02 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 31 D2 01 00 35 04 06 00 2D 36 0C 82 7E 64 90 CA F1 3F 92 30 FC DA [09:24:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 6B E1 47 00 1A E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 31 D2 01 00 F4 03 04 00 56 B0 A9 66 B6 04 01 00 00 8A 00 FA C4 9A 32 12 20 [09:24:29]CommunicateWithHost err = 0 [09:24:29]CheckOFDResponse [09:24:29]1017 (14) - 77093643461234 [09:24:29]1041 (16) - 0000000000874939 [09:24:29]1040 (4) - 119345 [09:24:29]1012 (4) - 31.07.2024 03:32 [09:24:29]1206 (1) - 0 [09:24:29]OFD Sender: Remove packet 119345 [09:24:29]ProducePacketName [09:24:29]name=ofd_packets/00119345 [09:24:29]NVStorageDeleteData [09:24:29]Write to MH i2c: 01 00 00 F5 13 08 [09:24:29]Write i2c OK [09:24:29]MH_I2C_Read... [09:24:29]Read from MH i2c: 01 [09:24:29]MH_I2C_Read... [09:24:29]Read from MH i2c: 01 07 00 [09:24:29]MH_I2C_Read... [09:24:29]Read from MH i2c: 01 07 00 F5 13 00 00 00 00 00 ED 0C 08 [09:24:29]RasterBufferAndPrint [09:24:29]line [09:24:29]line [09:24:29]line [09:24:29]line [09:24:29]line [09:24:29]written 0, free lines is 3316 [09:24:29]MH_Cut [09:24:29]Write to MH i2c: D1 01 00 FC 13 01 E1 [09:24:29]Write i2c OK [09:24:29]MH_I2C_Read... [09:24:29]Read from MH i2c: D1 [09:24:29]MH_I2C_Read... [09:24:29]Read from MH i2c: D1 01 00 [09:24:29]MH_I2C_Read... [09:24:29]Read from MH i2c: D1 01 00 FC 13 00 E0 [09:24:29]Write to MH i2c: 01 00 00 FD 13 10 [09:24:29]Write i2c OK [09:24:29]MH_I2C_Read... [09:24:30]OFD Sender: No OFD packet to send [09:24:30]*** Cut start [09:24:30]*** Partial cut [09:24:30]*** CUTSNS_PIN = 1 [09:24:30]*** CUTSNS_PIN = 0 [09:24:30]*** Brake cut motor [09:24:31]Read from MH i2c: 01 [09:24:31]MH_I2C_Read... [09:24:31]*** Stop cut motor [09:24:31]*** Cut end [09:24:31]Read from MH i2c: 01 07 00 [09:24:31]MH_I2C_Read... [09:24:31]Read from MH i2c: 01 07 00 FD 13 00 00 00 00 00 FF 0F 25 [09:24:31]process_action close_receipt done [09:24:31]requested_data is exist [09:24:31]produce_requested_data [09:24:31]requested_item fm.sn is exist - process it [09:24:31]wFMCommunicate request_size=4 [09:24:31]MH_SAM_APDU [09:24:31]CAPDU: 80 11 00 00 [09:24:31]Write to MH i2c: E2 08 00 FE 13 80 11 00 00 00 00 00 00 8B [09:24:31]Write i2c OK [09:24:31]MH_I2C_Read... [09:24:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:31]Read from MH i2c: E2 [09:24:31]MH_I2C_Read... [09:24:31]Read from MH i2c: E2 17 00 [09:24:31]MH_I2C_Read... [09:24:31]Read from MH i2c: E2 17 00 FE 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E6 [09:24:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:24:31]wFMCommunicate OK [09:24:31]requested_item fd.num is exist - process it [09:24:31]SAM_PROTO_GetFieldsCounters [09:24:31]wFMCommunicate request_size=4 [09:24:31]MH_SAM_APDU [09:24:31]CAPDU: 80 13 00 00 [09:24:31]Write to MH i2c: E2 08 00 FF 13 80 13 00 00 00 00 00 00 8E [09:24:31]Write i2c OK [09:24:31]MH_I2C_Read... [09:24:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:24:31]Read from MH i2c: E2 [09:24:31]MH_I2C_Read... [09:24:31]Read from MH i2c: E2 62 00 [09:24:31]MH_I2C_Read... [09:24:31]Read from MH i2c: E2 62 00 FF 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 31 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [09:24: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 31 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:24:31]wFMCommunicate OK [09:24:31]SAM_PROTO_GetFieldsCounters done [09:24:31]requested_item shift.num is exist - process it [09:24:31]requested_item shift.opened is exist - process it [09:24:31]req_shift_opened [09:24:31]FM_GetShiftState [09:24:31]SAM_PROTO_GetShiftState [09:24:31]wFMCommunicate request_size=4 [09:24:31]MH_SAM_APDU [09:24:31]CAPDU: 80 13 01 00 [09:24:31]Write to MH i2c: E2 08 00 00 14 80 13 01 00 00 00 00 00 91 [09:24:31]Write i2c OK [09:24:31]MH_I2C_Read... [09:24:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:31]Read from MH i2c: E2 [09:24:31]MH_I2C_Read... [09:24:31]Read from MH i2c: E2 0E 00 [09:24:31]MH_I2C_Read... [09:24:31]Read from MH i2c: E2 0E 00 00 14 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 29 [09:24:31]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:24:31]wFMCommunicate OK [09:24:31]SAM_PROTO_GetShiftState done [09:24:31]FM_GetShiftState done [09:24:31]req_shift_opened done [09:24:31]requested_item shift.open_date is exist - process it [09:24:31]req_shift_open_date [09:24:31]req_shift_open_date done [09:24:31]produce_requested_data done [09:24:31]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119345,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [09:24:31]process_action_free close_receipt [09:24:31]json_value_free [09:24:31]json_value_free done [09:24:31]process_json_proto returns [09:24:31]Send response to host [09:24:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119345,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [09:24:31]free response buf [09:24:31]execute_script done [09:24:31]execute_script returns [09:24:31]free content buf [09:24:31]Sock 9.Close socket [09:24:31]Sock 9.Thread stoped [09:24:35]OFD Sender: No OFD packet to send [09:24:40]OFD Sender: No OFD packet to send [09:24:45]OFD Sender: No OFD packet to send [09:24:50]OFD Sender: No OFD packet to send [09:24:55]OFD Sender: No OFD packet to send [09:25:00]OFD Sender: No OFD packet to send [09:25:05]OFD Sender: No OFD packet to send [09:25:10]OFD Sender: No OFD packet to send [09:25:15]OFD Sender: No OFD packet to send [09:25:20]OFD Sender: No OFD packet to send [09:25:25]OFD Sender: No OFD packet to send [09:25:30]OFD Sender: No OFD packet to send [09:25:35]OFD Sender: No OFD packet to send [09:25:40]OFD Sender: No OFD packet to send [09:25:45]OFD Sender: No OFD packet to send [09:25:50]OFD Sender: No OFD packet to send [09:25:55]OFD Sender: No OFD packet to send [09:25:59]accept exits with 8 [09:25:59]New connection [09:25:59]New thread 3067194724 created [09:25:59]Thread 3067338084 joined [09:25:59]Waiting for new connection... [09:25:59] Sock 8.Parse request [09:25:59]Sock 8.Check first char [09:25:59]Sock 8.First char is OK [09:25:59]request: POST /json_proto HTTP/1.0 [09:25:59]Method: POST [09:25:59]URL: /json_proto [09:25:59]Method is POST - this is cgi request [09:25:59]url: /json_proto [09:25:59]query_string will be loaded in cgi processing [09:25:59]execute_cgi json_proto POST (null) [09:25:59]execute_cgi path=json_proto method=POST [09:25:59]POST find Content-Length [09:25:59]Host: 172.17.45.7:8080 [09:25:59]Content-Length: 819 [09:25:59]Content-Type: application/json [09:25:59] [09:25:59]POST finish read [09:25:59]Found Content-Length = 819 [09:25:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:59]execute_script... [09:25: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)950272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:59]POST & json_proto [09:25:59]process_json_proto [09:25:59]json parsed OK: [09:25:59]protocol is kg_v1.0 [09:25:59]action value=close_receipt [09:25:59]process_action close_receipt [09:25:59]cmd_close_receipt [09:25:59]MH_GetDate [09:25:59]Write to MH i2c: F0 00 00 01 14 04 [09:25:59]Write i2c OK [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: F0 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: F0 09 00 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: F0 09 00 01 14 00 28 03 AA 66 90 0F 3E 66 8B [09:25:59]GetLastDocTimeStamp 1722417869 [09:25:59]current date 1722417960 [09:25:59]FM_GetShiftState [09:25:59]SAM_PROTO_GetShiftState [09:25:59]wFMCommunicate request_size=4 [09:25:59]MH_SAM_APDU [09:25:59]CAPDU: 80 13 01 00 [09:25:59]Write to MH i2c: E2 08 00 02 14 80 13 01 00 00 00 00 00 93 [09:25:59]Write i2c OK [09:25:59]MH_I2C_Read... [09:25:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:59]Read from MH i2c: E2 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: E2 0E 00 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: E2 0E 00 02 14 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 2B [09:25:59]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:25:59]wFMCommunicate OK [09:25:59]SAM_PROTO_GetShiftState done [09:25:59]FM_GetShiftState done [09:25:59]opened in 1722384637 [09:25:59]opened+sec_in_day 1722471037 [09:25:59]quantity*price = 200025 [09:25:59]sum+1 = 200026 [09:25:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 77 31.07.2024 09:26 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119346 ФПД: 259098818036735 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T092600&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119346&fm=259098818036735&tin=02508201610067®Number=0000000000092660&sum=200000 [09:26:00]StoreToDocumentArchive [09:26:00]shift 436 fd 119346 [09:26:00]save to /storage/0436/doc_00119346 [09:26:00]save last doc name /storage/0436/doc_00119346 to /storage/kkm_last_doc_name [09:26:00]save OK [09:26:00]Clear old archive folders... [09:26:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:26:00]tlvbuf is 00B39270 [09:26:00]SAM_PROTO_ClearQueue [09:26:00]wFMCommunicate request_size=4 [09:26:00]MH_SAM_APDU [09:26:00]CAPDU: 80 09 00 00 [09:26:00]Write to MH i2c: E2 08 00 0F 14 80 09 00 00 00 00 00 00 95 [09:26:00]Write i2c OK [09:26:00]MH_I2C_Read... [09:26:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:00]Read from MH i2c: E2 [09:26:00]MH_I2C_Read... [09:26:00]Read from MH i2c: E2 03 00 [09:26:00]MH_I2C_Read... [09:26:00]Read from MH i2c: E2 03 00 0F 14 00 90 00 97 [09:26:00]RAPDU: 90 00 [09:26:00]wFMCommunicate OK [09:26:00]SAM_PROTO_ClearQueue done [09:26:00]KKMCreateOFDPacket [09:26:00]OFDProtocolAddRootSTLVToBuf [09:26:00]FM_MakeSignedData [09:26:00]FM_MakeSignedData [09:26:00]SAM_PROTO_SignData [09:26:00]wFMCommunicate request_size=4 [09:26:00]MH_SAM_APDU [09:26:00]CAPDU: 80 0D 01 02 [09:26:00]Write to MH i2c: E2 08 00 10 14 80 0D 01 02 00 00 00 00 9D [09:26:00]Write i2c OK [09:26:00]MH_I2C_Read... [09:26:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:00]Read from MH i2c: E2 [09:26:00]MH_I2C_Read... [09:26:00]Read from MH i2c: E2 03 00 [09:26:00]MH_I2C_Read... [09:26:00]Read from MH i2c: E2 03 00 10 14 00 90 00 98 [09:26:00]RAPDU: 90 00 [09:26:00]wFMCommunicate OK [09:26:00]wFMCommunicate request_size=255 [09:26:00]MH_SAM_APDU [09:26:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 28 03 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 32 D2 01 00 35 04 06 00 EB A6 25 02 [09:26:00]Write to MH i2c: E2 02 01 11 14 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 28 03 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 32 D2 01 00 35 04 06 00 EB A6 25 02 00 00 15 [09:26:00]Write i2c OK [09:26:00]MH_I2C_Read... [09:26:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:00]Read from MH i2c: E2 [09:26:00]MH_I2C_Read... [09:26:00]Read from MH i2c: E2 03 00 [09:26:00]MH_I2C_Read... [09:26:00]Read from MH i2c: E2 03 00 11 14 00 90 00 99 [09:26:00]RAPDU: 90 00 [09:26:00]wFMCommunicate OK [09:26:00]wFMCommunicate request_size=7 [09:26:00]MH_SAM_APDU [09:26:00]CAPDU: 80 0D 02 02 02 C3 FF [09:26:00]Write to MH i2c: E2 0A 00 12 14 80 0D 02 02 02 00 C3 FF 00 00 66 [09:26:00]Write i2c OK [09:26:00]MH_I2C_Read... [09:26:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:00]Read from MH i2c: E2 [09:26:00]MH_I2C_Read... [09:26:00]Read from MH i2c: E2 03 00 [09:26:00]MH_I2C_Read... [09:26:00]Read from MH i2c: E2 03 00 12 14 00 90 00 9A [09:26:00]RAPDU: 90 00 [09:26:00]wFMCommunicate OK [09:26:00]wFMCommunicate request_size=4 [09:26:00]MH_SAM_APDU [09:26:00]CAPDU: 80 0D 03 02 [09:26:00]Write to MH i2c: E2 08 00 13 14 80 0D 03 02 00 00 00 00 A2 [09:26:00]Write i2c OK [09:26:00]MH_I2C_Read... [09:26:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:00]Read from MH i2c: E2 [09:26:00]MH_I2C_Read... [09:26:00]Read from MH i2c: E2 0B 00 [09:26:00]MH_I2C_Read... [09:26:00]Read from MH i2c: E2 0B 00 13 14 00 05 6A 4A 8B E4 73 C5 C6 90 00 C9 [09:26:00]RAPDU: 05 6A 4A 8B E4 73 C5 C6 90 00 [09:26:00]wFMCommunicate OK [09:26:00]SAM_PROTO_SignData done [09:26:00]FM_MakeSignedData done [09:26:00]CreateOFDProtocolMessage [09:26:00]wFMCommunicate request_size=4 [09:26:00]MH_SAM_APDU [09:26:00]CAPDU: 80 11 00 00 [09:26:00]Write to MH i2c: E2 08 00 14 14 80 11 00 00 00 00 00 00 A2 [09:26:00]Write i2c OK [09:26:00]MH_I2C_Read... [09:26:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:00]Read from MH i2c: E2 [09:26:00]MH_I2C_Read... [09:26:00]Read from MH i2c: E2 17 00 [09:26:00]MH_I2C_Read... [09:26:00]Read from MH i2c: E2 17 00 14 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FD [09:26:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:26:00]wFMCommunicate OK [09:26:00]CreateOFDProtocolMessage done [09:26:00]OFDSenderStorePacket 119346 [09:26:00]StoreOFDPacket docnum=119346 [09:26:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 4C 72 04 01 3A 52 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 28 03 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 32 D2 01 00 35 04 06 00 EB A6 25 02 C3 FF 05 6A 4A 8B E4 73 C5 C6 [09:26:00]CheckFolder [09:26:00]dirname=/storage/ofd_packets [09:26:00]CheckFolder done [09:26:00]ProducePacketName [09:26:00]name=ofd_packets/00119346 [09:26:00]NVStorageSaveData ofd_packets/00119346 [09:26:00]File name is /storage/ofd_packets/00119346 [09:26:00]Write 298 bytes [09:26:00]NVStorageSaveData done [09:26:00]OFDSenderStorePacket done [09:26:00]KKMCreateOFDPacket done [09:26:00]NVStorageSaveData kkm_last_timestamp [09:26:00]File name is /storage/kkm_last_timestamp [09:26:00]Write 4 bytes [09:26:00]NVStorageSaveData done [09:26:00]ExternCall_PrintAddStr [09:26:00]wPrintStart [09:26:00]Write to MH i2c: 01 00 00 15 14 29 [09:26:00]Write i2c OK [09:26:00]MH_I2C_Read... [09:26:00]Read from MH i2c: 01 [09:26:00]MH_I2C_Read... [09:26:00]Read from MH i2c: 01 07 00 [09:26:00]MH_I2C_Read... [09:26:00]Read from MH i2c: 01 07 00 15 14 00 00 00 00 00 FF 0F 3E [09:26:00]RasterBufferAndPrint [09:26:00]line Счет N : (1)950272 [09:26:00]line ИНН: 02508201610067 [09:26:00]line Контрольно-Кассовый Чек [09:26:00]line ПРОДАЖА [09:26:00]line ТРК (МРК, ГНК) : 11 [09:26:00]line Товар: 2710194800 [09:26:00]line ДТ-К-5 [09:26:00]line 26.250 * 76.20 [09:26:00]line = 2000.25 [09:26:00]line НДС 12% НСП 1% [09:26:00]line > о реализуемом товаре [09:26:00]line ОКРУГЛЕНИЕ: -0.25 [09:26:00]line ИТОГО: 2000.00 [09:26:00]line НСП 1% : 17.70 [09:26:00]line НДС 12% : 212.42 [09:26:00]line Наличными: 0.00 [09:26:00]line Безнал.: 2000.00 [09:26:00]line Место: АЗС № 134 "Партнер Нефть" [09:26:00]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:26:00]line СНО: Общий режим [09:26:00]line Чек 77 31.07.2024 09:26 [09:26:00]line Смена: 436 ФФД: 1.0 [09:26:00]line ЗНМ: 0300000044 [09:26:00]line РНМ: 0000000000092660 [09:26:00]line Версия ККМ: 001 [09:26:00]line Платежная система: O! деньги [09:26:00]line ФМ: 0000000000874939 [09:26:00]line ФД: 119346 [09:26:00]line ФПД: 259098818036735 [09:26:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T092600&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119346&fm=259098818036735&tin=02508201610067®Number=0000000000092660&sum=200000 [09:26:01]OFD Sender: Processing packet 119346 [packets to send 86, broken 85] [09:26:01]ProducePacketName [09:26:01]name=ofd_packets/00119346 [09:26:01]OFD Sender: To server: pG, [09:26:01]CommunicateWithHost lk.salyk.kg:30040 [09:26:01]ConnectInit lk.salyk.kg [09:26:01]written 0, free lines is 4095 [09:26:01]Connected sock=10 [09:26:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 4C 72 04 01 3A 52 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 28 03 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 32 D2 01 00 35 04 06 00 EB A6 25 02 C3 FF 05 6A 4A 8B E4 73 C5 C6 [09:26:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 C8 3A 47 00 0A AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 32 D2 01 00 F4 03 04 00 B2 B0 A9 66 B6 04 01 00 00 07 DC 00 59 9B 43 90 FF [09:26:01]CommunicateWithHost err = 0 [09:26:01]CheckOFDResponse [09:26:01]1017 (14) - 77093643461234 [09:26:01]1041 (16) - 0000000000874939 [09:26:01]1040 (4) - 119346 [09:26:01]1012 (4) - 31.07.2024 03:34 [09:26:01]1206 (1) - 0 [09:26:01]OFD Sender: Remove packet 119346 [09:26:01]ProducePacketName [09:26:01]name=ofd_packets/00119346 [09:26:01]NVStorageDeleteData [09:26:01]Write to MH i2c: 01 00 00 3F 14 53 [09:26:01]Write i2c OK [09:26:01]MH_I2C_Read... [09:26:01]Read from MH i2c: 01 [09:26:01]MH_I2C_Read... [09:26:01]Read from MH i2c: 01 07 00 [09:26:01]MH_I2C_Read... [09:26:01]Read from MH i2c: 01 07 00 3F 14 00 00 00 00 00 FB 0C 61 [09:26:01]RasterBufferAndPrint [09:26:01]line [09:26:01]line [09:26:01]line [09:26:01]line [09:26:01]line [09:26:01]written 0, free lines is 3329 [09:26:01]MH_Cut [09:26:01]Write to MH i2c: D1 01 00 46 14 01 2C [09:26:01]Write i2c OK [09:26:01]MH_I2C_Read... [09:26:01]Read from MH i2c: D1 [09:26:01]MH_I2C_Read... [09:26:01]Read from MH i2c: D1 01 00 [09:26:01]MH_I2C_Read... [09:26:01]Read from MH i2c: D1 01 00 46 14 00 2B [09:26:01]Write to MH i2c: 01 00 00 47 14 5B [09:26:01]Write i2c OK [09:26:01]MH_I2C_Read... [09:26:01]OFD Sender: No OFD packet to send [09:26:02]*** Cut start [09:26:02]*** Partial cut [09:26:02]*** CUTSNS_PIN = 1 [09:26:02]*** CUTSNS_PIN = 0 [09:26:02]*** Brake cut motor [09:26:02]Read from MH i2c: 01 [09:26:02]MH_I2C_Read... [09:26:02]*** Stop cut motor [09:26:02]*** Cut end [09:26:02]Read from MH i2c: 01 07 00 [09:26:02]MH_I2C_Read... [09:26:02]Read from MH i2c: 01 07 00 47 14 00 00 00 00 00 FF 0F 70 [09:26:02]process_action close_receipt done [09:26:02]requested_data is exist [09:26:02]produce_requested_data [09:26:02]requested_item fm.sn is exist - process it [09:26:02]wFMCommunicate request_size=4 [09:26:02]MH_SAM_APDU [09:26:02]CAPDU: 80 11 00 00 [09:26:02]Write to MH i2c: E2 08 00 48 14 80 11 00 00 00 00 00 00 D6 [09:26:02]Write i2c OK [09:26:02]MH_I2C_Read... [09:26:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:02]Read from MH i2c: E2 [09:26:02]MH_I2C_Read... [09:26:02]Read from MH i2c: E2 17 00 [09:26:02]MH_I2C_Read... [09:26:02]Read from MH i2c: E2 17 00 48 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 31 [09:26:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:26:02]wFMCommunicate OK [09:26:02]requested_item fd.num is exist - process it [09:26:02]SAM_PROTO_GetFieldsCounters [09:26:02]wFMCommunicate request_size=4 [09:26:02]MH_SAM_APDU [09:26:02]CAPDU: 80 13 00 00 [09:26:02]Write to MH i2c: E2 08 00 49 14 80 13 00 00 00 00 00 00 D9 [09:26:02]Write i2c OK [09:26:02]MH_I2C_Read... [09:26:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:03]Read from MH i2c: E2 [09:26:03]MH_I2C_Read... [09:26:03]Read from MH i2c: E2 62 00 [09:26:03]MH_I2C_Read... [09:26:03]Read from MH i2c: E2 62 00 49 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 32 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [09:26:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 32 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:26:03]wFMCommunicate OK [09:26:03]SAM_PROTO_GetFieldsCounters done [09:26:03]requested_item shift.num is exist - process it [09:26:03]requested_item shift.opened is exist - process it [09:26:03]req_shift_opened [09:26:03]FM_GetShiftState [09:26:03]SAM_PROTO_GetShiftState [09:26:03]wFMCommunicate request_size=4 [09:26:03]MH_SAM_APDU [09:26:03]CAPDU: 80 13 01 00 [09:26:03]Write to MH i2c: E2 08 00 4A 14 80 13 01 00 00 00 00 00 DB [09:26:03]Write i2c OK [09:26:03]MH_I2C_Read... [09:26:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:03]Read from MH i2c: E2 [09:26:03]MH_I2C_Read... [09:26:03]Read from MH i2c: E2 0E 00 [09:26:03]MH_I2C_Read... [09:26:03]Read from MH i2c: E2 0E 00 4A 14 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 73 [09:26:03]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:26:03]wFMCommunicate OK [09:26:03]SAM_PROTO_GetShiftState done [09:26:03]FM_GetShiftState done [09:26:03]req_shift_opened done [09:26:03]requested_item shift.open_date is exist - process it [09:26:03]req_shift_open_date [09:26:03]req_shift_open_date done [09:26:03]produce_requested_data done [09:26:03]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119346,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [09:26:03]process_action_free close_receipt [09:26:03]json_value_free [09:26:03]json_value_free done [09:26:03]process_json_proto returns [09:26:03]Send response to host [09:26:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119346,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [09:26:03]free response buf [09:26:03]execute_script done [09:26:03]execute_script returns [09:26:03]free content buf [09:26:03]Sock 8.Close socket [09:26:03]Sock 8.Thread stoped [09:26:06]OFD Sender: No OFD packet to send [09:26:11]OFD Sender: No OFD packet to send [09:26:16]OFD Sender: No OFD packet to send [09:26:21]OFD Sender: No OFD packet to send [09:26:26]OFD Sender: No OFD packet to send [09:26:31]OFD Sender: No OFD packet to send [09:26:36]OFD Sender: No OFD packet to send [09:26:41]OFD Sender: No OFD packet to send [09:26:45]accept exits with 9 [09:26:45]New connection [09:26:45]New thread 3067338084 created [09:26:45]Thread 3067194724 joined [09:26:45]Waiting for new connection... [09:26:45] Sock 9.Parse request [09:26:45]Sock 9.Check first char [09:26:45]Sock 9.First char is OK [09:26:45]request: POST /json_proto HTTP/1.0 [09:26:45]Method: POST [09:26:45]URL: /json_proto [09:26:45]Method is POST - this is cgi request [09:26:45]url: /json_proto [09:26:45]query_string will be loaded in cgi processing [09:26:45]execute_cgi json_proto POST (null) [09:26:45]execute_cgi path=json_proto method=POST [09:26:45]POST find Content-Length [09:26:45]Host: 172.17.45.7:8080 [09:26:45]Content-Length: 679 [09:26:45]Content-Type: application/json [09:26:45] [09:26:45]POST finish read [09:26:45]Found Content-Length = 679 [09:26:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:45]execute_script... [09:26:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:45]POST & json_proto [09:26:45]process_json_proto [09:26:45]json parsed OK: [09:26:45]protocol is kg_v1.0 [09:26:45]action value=close_receipt [09:26:45]process_action close_receipt [09:26:45]cmd_close_receipt [09:26:45]MH_GetDate [09:26:45]Write to MH i2c: F0 00 00 4B 14 4E [09:26:45]Write i2c OK [09:26:45]MH_I2C_Read... [09:26:45]Read from MH i2c: F0 [09:26:45]MH_I2C_Read... [09:26:45]Read from MH i2c: F0 09 00 [09:26:45]MH_I2C_Read... [09:26:45]Read from MH i2c: F0 09 00 4B 14 00 57 03 AA 66 90 0F 3E 66 04 [09:26:45]GetLastDocTimeStamp 1722417960 [09:26:45]current date 1722418007 [09:26:45]FM_GetShiftState [09:26:45]SAM_PROTO_GetShiftState [09:26:45]wFMCommunicate request_size=4 [09:26:45]MH_SAM_APDU [09:26:45]CAPDU: 80 13 01 00 [09:26:45]Write to MH i2c: E2 08 00 4C 14 80 13 01 00 00 00 00 00 DD [09:26:45]Write i2c OK [09:26:45]MH_I2C_Read... [09:26:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:45]Read from MH i2c: E2 [09:26:45]MH_I2C_Read... [09:26:45]Read from MH i2c: E2 0E 00 [09:26:45]MH_I2C_Read... [09:26:45]Read from MH i2c: E2 0E 00 4C 14 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 75 [09:26:45]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:26:45]wFMCommunicate OK [09:26:45]SAM_PROTO_GetShiftState done [09:26:45]FM_GetShiftState done [09:26:45]opened in 1722384637 [09:26:45]opened+sec_in_day 1722471037 [09:26:45]quantity*price = 100050 [09:26:45]sum+1 = 100052 [09:26:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 78 31.07.2024 09:26 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119347 ФПД: 239539851946637 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T092647&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119347&fm=239539851946637&tin=02508201610067®Number=0000000000092660&sum=100000 [09:26:46]StoreToDocumentArchive [09:26:46]shift 436 fd 119347 [09:26:46]save to /storage/0436/doc_00119347 [09:26:46]save last doc name /storage/0436/doc_00119347 to /storage/kkm_last_doc_name [09:26:46]save OK [09:26:46]Clear old archive folders... [09:26:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:26:46]tlvbuf is 00B22E40 [09:26:46]SAM_PROTO_ClearQueue [09:26:46]wFMCommunicate request_size=4 [09:26:46]MH_SAM_APDU [09:26:46]CAPDU: 80 09 00 00 [09:26:46]Write to MH i2c: E2 08 00 59 14 80 09 00 00 00 00 00 00 DF [09:26:46]Write i2c OK [09:26:46]MH_I2C_Read... [09:26:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:46]Read from MH i2c: E2 [09:26:46]MH_I2C_Read... [09:26:46]Read from MH i2c: E2 03 00 [09:26:46]MH_I2C_Read... [09:26:46]Read from MH i2c: E2 03 00 59 14 00 90 00 E1 [09:26:46]RAPDU: 90 00 [09:26:46]wFMCommunicate OK [09:26:46]SAM_PROTO_ClearQueue done [09:26:46]KKMCreateOFDPacket [09:26:46]OFDProtocolAddRootSTLVToBuf [09:26:46]FM_MakeSignedData [09:26:46]FM_MakeSignedData [09:26:46]SAM_PROTO_SignData [09:26:46]wFMCommunicate request_size=4 [09:26:46]MH_SAM_APDU [09:26:46]CAPDU: 80 0D 01 02 [09:26:46]Write to MH i2c: E2 08 00 5A 14 80 0D 01 02 00 00 00 00 E7 [09:26:46]Write i2c OK [09:26:46]MH_I2C_Read... [09:26:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:46]Read from MH i2c: E2 [09:26:46]MH_I2C_Read... [09:26:46]Read from MH i2c: E2 03 00 [09:26:46]MH_I2C_Read... [09:26:46]Read from MH i2c: E2 03 00 5A 14 00 90 00 E2 [09:26:46]RAPDU: 90 00 [09:26:46]wFMCommunicate OK [09:26:46]wFMCommunicate request_size=255 [09:26:46]MH_SAM_APDU [09:26:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 57 03 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 33 D2 01 00 35 04 06 00 D9 DC 37 C8 [09:26:46]Write to MH i2c: E2 02 01 5B 14 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 57 03 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 33 D2 01 00 35 04 06 00 D9 DC 37 C8 00 00 9E [09:26:46]Write i2c OK [09:26:46]MH_I2C_Read... [09:26:46]OFD Sender: No OFD packet to send [09:26:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:46]Read from MH i2c: E2 [09:26:46]MH_I2C_Read... [09:26:46]Read from MH i2c: E2 03 00 [09:26:46]MH_I2C_Read... [09:26:46]Read from MH i2c: E2 03 00 5B 14 00 90 00 E3 [09:26:46]RAPDU: 90 00 [09:26:46]wFMCommunicate OK [09:26:46]wFMCommunicate request_size=7 [09:26:46]MH_SAM_APDU [09:26:46]CAPDU: 80 0D 02 02 02 EA 8D [09:26:46]Write to MH i2c: E2 0A 00 5C 14 80 0D 02 02 02 00 EA 8D 00 00 65 [09:26:47]Write i2c OK [09:26:47]MH_I2C_Read... [09:26:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:47]Read from MH i2c: E2 [09:26:47]MH_I2C_Read... [09:26:47]Read from MH i2c: E2 03 00 [09:26:47]MH_I2C_Read... [09:26:47]Read from MH i2c: E2 03 00 5C 14 00 90 00 E4 [09:26:47]RAPDU: 90 00 [09:26:47]wFMCommunicate OK [09:26:47]wFMCommunicate request_size=4 [09:26:47]MH_SAM_APDU [09:26:47]CAPDU: 80 0D 03 02 [09:26:47]Write to MH i2c: E2 08 00 5D 14 80 0D 03 02 00 00 00 00 EC [09:26:47]Write i2c OK [09:26:47]MH_I2C_Read... [09:26:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:47]Read from MH i2c: E2 [09:26:47]MH_I2C_Read... [09:26:47]Read from MH i2c: E2 0B 00 [09:26:47]MH_I2C_Read... [09:26:47]Read from MH i2c: E2 0B 00 5D 14 00 8B 37 0A 7E BD 44 18 2D 90 00 7D [09:26:47]RAPDU: 8B 37 0A 7E BD 44 18 2D 90 00 [09:26:47]wFMCommunicate OK [09:26:47]SAM_PROTO_SignData done [09:26:47]FM_MakeSignedData done [09:26:47]CreateOFDProtocolMessage [09:26:47]wFMCommunicate request_size=4 [09:26:47]MH_SAM_APDU [09:26:47]CAPDU: 80 11 00 00 [09:26:47]Write to MH i2c: E2 08 00 5E 14 80 11 00 00 00 00 00 00 EC [09:26:47]Write i2c OK [09:26:47]MH_I2C_Read... [09:26:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:47]Read from MH i2c: E2 [09:26:47]MH_I2C_Read... [09:26:47]Read from MH i2c: E2 17 00 [09:26:47]MH_I2C_Read... [09:26:47]Read from MH i2c: E2 17 00 5E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 47 [09:26:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:26:47]wFMCommunicate OK [09:26:47]CreateOFDProtocolMessage done [09:26:47]OFDSenderStorePacket 119347 [09:26:47]StoreOFDPacket docnum=119347 [09:26:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 DA B2 04 01 1E 73 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 57 03 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 33 D2 01 00 35 04 06 00 D9 DC 37 C8 EA 8D 8B 37 0A 7E BD 44 18 2D [09:26:47]CheckFolder [09:26:47]dirname=/storage/ofd_packets [09:26:47]CheckFolder done [09:26:47]ProducePacketName [09:26:47]name=ofd_packets/00119347 [09:26:47]NVStorageSaveData ofd_packets/00119347 [09:26:47]File name is /storage/ofd_packets/00119347 [09:26:47]Write 298 bytes [09:26:47]NVStorageSaveData done [09:26:47]OFDSenderStorePacket done [09:26:47]KKMCreateOFDPacket done [09:26:47]NVStorageSaveData kkm_last_timestamp [09:26:47]File name is /storage/kkm_last_timestamp [09:26:47]Write 4 bytes [09:26:47]NVStorageSaveData done [09:26:47]ExternCall_PrintAddStr [09:26:47]wPrintStart [09:26:47]Write to MH i2c: 01 00 00 5F 14 73 [09:26:47]Write i2c OK [09:26:47]MH_I2C_Read... [09:26:47]Read from MH i2c: 01 [09:26:47]MH_I2C_Read... [09:26:47]Read from MH i2c: 01 07 00 [09:26:47]MH_I2C_Read... [09:26:47]Read from MH i2c: 01 07 00 5F 14 00 00 00 00 00 FF 0F 88 [09:26:47]RasterBufferAndPrint [09:26:47]line Счет N : (1)950273 [09:26:47]line ИНН: 02508201610067 [09:26:47]line Контрольно-Кассовый Чек [09:26:47]line ПРОДАЖА [09:26:47]line ТРК (МРК, ГНК) : 54 [09:26:47]line Товар: 2710194800 [09:26:47]line ДТ-К-5 [09:26:47]line 13.130 * 76.20 [09:26:47]line = 1000.51 [09:26:47]line НДС 12% НСП 1% [09:26:47]line > о реализуемом товаре [09:26:47]line ОКРУГЛЕНИЕ: -0.51 [09:26:47]line ИТОГО: 1000.00 [09:26:47]line Внесено: 1000.00 [09:26:47]line СДАЧА: 0.00 [09:26:47]line НСП 1% : 8.85 [09:26:47]line НДС 12% : 106.25 [09:26:47]line Наличными: 1000.00 [09:26:47]line Безнал.: 0.00 [09:26:47]line Место: АЗС № 134 "Партнер Нефть" [09:26:47]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:26:47]line СНО: Общий режим [09:26:47]line Чек 78 31.07.2024 09:26 [09:26:47]line Смена: 436 ФФД: 1.0 [09:26:47]line ЗНМ: 0300000044 [09:26:47]line РНМ: 0000000000092660 [09:26:47]line Версия ККМ: 001 [09:26:47]line ФМ: 0000000000874939 [09:26:47]line ФД: 119347 [09:26:47]line ФПД: 239539851946637 [09:26:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T092647&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119347&fm=239539851946637&tin=02508201610067®Number=0000000000092660&sum=100000 [09:26:47]written 0, free lines is 4095 [09:26:47]OFD Sender: Processing packet 119347 [packets to send 86, broken 85] [09:26:47]ProducePacketName [09:26:47]name=ofd_packets/00119347 [09:26:47]OFD Sender: To server: pG, [09:26:47]CommunicateWithHost lk.salyk.kg:30040 [09:26:47]ConnectInit lk.salyk.kg [09:26:47]Connected sock=8 [09:26: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 39 33 39 0C 01 00 00 DA B2 04 01 1E 73 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 57 03 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 33 D2 01 00 35 04 06 00 D9 DC 37 C8 EA 8D 8B 37 0A 7E BD 44 18 2D [09:26:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 BA 9A 47 00 8A 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 39 33 39 10 04 04 00 33 D2 01 00 F4 03 04 00 E0 B0 A9 66 B6 04 01 00 00 9F 9F 3E 00 BC 62 EA A8 [09:26:47]CommunicateWithHost err = 0 [09:26:47]CheckOFDResponse [09:26:47]1017 (14) - 77093643461234 [09:26:47]1041 (16) - 0000000000874939 [09:26:47]1040 (4) - 119347 [09:26:47]1012 (4) - 31.07.2024 03:34 [09:26:47]1206 (1) - 0 [09:26:47]OFD Sender: Remove packet 119347 [09:26:47]ProducePacketName [09:26:47]name=ofd_packets/00119347 [09:26:47]NVStorageDeleteData [09:26:47]Write to MH i2c: 01 00 00 89 14 9D [09:26:47]Write i2c OK [09:26:47]MH_I2C_Read... [09:26:47]Read from MH i2c: 01 [09:26:47]MH_I2C_Read... [09:26:47]Read from MH i2c: 01 07 00 [09:26:47]MH_I2C_Read... [09:26:47]Read from MH i2c: 01 07 00 89 14 00 00 00 00 00 F4 0C A4 [09:26:47]RasterBufferAndPrint [09:26:47]line [09:26:47]line [09:26:47]line [09:26:47]line [09:26:47]line [09:26:47]written 0, free lines is 3323 [09:26:47]MH_Cut [09:26:47]Write to MH i2c: D1 01 00 90 14 01 76 [09:26:47]Write i2c OK [09:26:47]MH_I2C_Read... [09:26:47]Read from MH i2c: D1 [09:26:47]MH_I2C_Read... [09:26:47]Read from MH i2c: D1 01 00 [09:26:47]MH_I2C_Read... [09:26:47]Read from MH i2c: D1 01 00 90 14 00 75 [09:26:47]Write to MH i2c: 01 00 00 91 14 A5 [09:26:47]Write i2c OK [09:26:47]MH_I2C_Read... [09:26:47]OFD Sender: No OFD packet to send [09:26:48]*** Cut start [09:26:48]*** Partial cut [09:26:48]*** CUTSNS_PIN = 1 [09:26:48]*** CUTSNS_PIN = 0 [09:26:48]*** Brake cut motor [09:26:48]Read from MH i2c: 01 [09:26:48]MH_I2C_Read... [09:26:48]*** Stop cut motor [09:26:48]*** Cut end [09:26:48]Read from MH i2c: 01 07 00 [09:26:48]MH_I2C_Read... [09:26:48]Read from MH i2c: 01 07 00 91 14 00 00 00 00 00 FF 0F BA [09:26:48]process_action close_receipt done [09:26:48]requested_data is exist [09:26:48]produce_requested_data [09:26:48]requested_item fm.sn is exist - process it [09:26:48]wFMCommunicate request_size=4 [09:26:48]MH_SAM_APDU [09:26:48]CAPDU: 80 11 00 00 [09:26:48]Write to MH i2c: E2 08 00 92 14 80 11 00 00 00 00 00 00 20 [09:26:48]Write i2c OK [09:26:48]MH_I2C_Read... [09:26:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:48]Read from MH i2c: E2 [09:26:48]MH_I2C_Read... [09:26:48]Read from MH i2c: E2 17 00 [09:26:48]MH_I2C_Read... [09:26:48]Read from MH i2c: E2 17 00 92 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7B [09:26:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:26:48]wFMCommunicate OK [09:26:48]requested_item fd.num is exist - process it [09:26:48]SAM_PROTO_GetFieldsCounters [09:26:48]wFMCommunicate request_size=4 [09:26:48]MH_SAM_APDU [09:26:48]CAPDU: 80 13 00 00 [09:26:48]Write to MH i2c: E2 08 00 93 14 80 13 00 00 00 00 00 00 23 [09:26:48]Write i2c OK [09:26:48]MH_I2C_Read... [09:26:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:49]Read from MH i2c: E2 [09:26:49]MH_I2C_Read... [09:26:49]Read from MH i2c: E2 62 00 [09:26:49]MH_I2C_Read... [09:26:49]Read from MH i2c: E2 62 00 93 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 33 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [09:26: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 33 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:26:49]wFMCommunicate OK [09:26:49]SAM_PROTO_GetFieldsCounters done [09:26:49]requested_item shift.num is exist - process it [09:26:49]requested_item shift.opened is exist - process it [09:26:49]req_shift_opened [09:26:49]FM_GetShiftState [09:26:49]SAM_PROTO_GetShiftState [09:26:49]wFMCommunicate request_size=4 [09:26:49]MH_SAM_APDU [09:26:49]CAPDU: 80 13 01 00 [09:26:49]Write to MH i2c: E2 08 00 94 14 80 13 01 00 00 00 00 00 25 [09:26:49]Write i2c OK [09:26:49]MH_I2C_Read... [09:26:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:49]Read from MH i2c: E2 [09:26:49]MH_I2C_Read... [09:26:49]Read from MH i2c: E2 0E 00 [09:26:49]MH_I2C_Read... [09:26:49]Read from MH i2c: E2 0E 00 94 14 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 BD [09:26:49]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:26:49]wFMCommunicate OK [09:26:49]SAM_PROTO_GetShiftState done [09:26:49]FM_GetShiftState done [09:26:49]req_shift_opened done [09:26:49]requested_item shift.open_date is exist - process it [09:26:49]req_shift_open_date [09:26:49]req_shift_open_date done [09:26:49]produce_requested_data done [09:26:49]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119347,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [09:26:49]process_action_free close_receipt [09:26:49]json_value_free [09:26:49]json_value_free done [09:26:49]process_json_proto returns [09:26:49]Send response to host [09:26:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119347,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [09:26:49]free response buf [09:26:49]execute_script done [09:26:49]execute_script returns [09:26:49]free content buf [09:26:49]Sock 9.Close socket [09:26:49]Sock 9.Thread stoped [09:26:52]OFD Sender: No OFD packet to send [09:26:56]accept exits with 10 [09:26:56]New connection [09:26:56]New thread 3067194724 created [09:26:56]Thread 3067338084 joined [09:26:56]Waiting for new connection... [09:26:56] Sock 10.Parse request [09:26:56]Sock 10.Check first char [09:26:56]Sock 10.First char is OK [09:26:56]request: POST /json_proto HTTP/1.0 [09:26:56]Method: POST [09:26:56]URL: /json_proto [09:26:56]Method is POST - this is cgi request [09:26:56]url: /json_proto [09:26:56]query_string will be loaded in cgi processing [09:26:56]execute_cgi json_proto POST (null) [09:26:56]execute_cgi path=json_proto method=POST [09:26:56]POST find Content-Length [09:26:56]Host: 172.17.45.7:8080 [09:26:56]Content-Length: 679 [09:26:56]Content-Type: application/json [09:26:56] [09:26:56]POST finish read [09:26:56]Found Content-Length = 679 [09:26:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:56]execute_script... [09:26:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:56]POST & json_proto [09:26:56]process_json_proto [09:26:56]json parsed OK: [09:26:56]protocol is kg_v1.0 [09:26:56]action value=close_receipt [09:26:56]process_action close_receipt [09:26:56]cmd_close_receipt [09:26:56]MH_GetDate [09:26:56]Write to MH i2c: F0 00 00 95 14 98 [09:26:56]Write i2c OK [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: F0 [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: F0 09 00 [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: F0 09 00 95 14 00 62 03 AA 66 90 0F 3E 66 59 [09:26:56]GetLastDocTimeStamp 1722418007 [09:26:56]current date 1722418018 [09:26:56]FM_GetShiftState [09:26:56]SAM_PROTO_GetShiftState [09:26:56]wFMCommunicate request_size=4 [09:26:56]MH_SAM_APDU [09:26:56]CAPDU: 80 13 01 00 [09:26:56]Write to MH i2c: E2 08 00 96 14 80 13 01 00 00 00 00 00 27 [09:26:56]Write i2c OK [09:26:56]MH_I2C_Read... [09:26:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:56]Read from MH i2c: E2 [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: E2 0E 00 [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: E2 0E 00 96 14 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 BF [09:26:56]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:26:56]wFMCommunicate OK [09:26:56]SAM_PROTO_GetShiftState done [09:26:56]FM_GetShiftState done [09:26:56]opened in 1722384637 [09:26:56]opened+sec_in_day 1722471037 [09:26:56]quantity*price = 100050 [09:26:56]sum+1 = 100052 [09:26:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 79 31.07.2024 09:26 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119348 ФПД: 94420239778132 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T092658&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119348&fm=94420239778132&tin=02508201610067®Number=0000000000092660&sum=100000 [09:26:57]StoreToDocumentArchive [09:26:57]shift 436 fd 119348 [09:26:57]save to /storage/0436/doc_00119348 [09:26:57]save last doc name /storage/0436/doc_00119348 to /storage/kkm_last_doc_name [09:26:57]save OK [09:26:57]Clear old archive folders... [09:26:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:26:57]tlvbuf is 00B16D70 [09:26:57]SAM_PROTO_ClearQueue [09:26:57]wFMCommunicate request_size=4 [09:26:57]MH_SAM_APDU [09:26:57]CAPDU: 80 09 00 00 [09:26:57]Write to MH i2c: E2 08 00 A3 14 80 09 00 00 00 00 00 00 29 [09:26:57]Write i2c OK [09:26:57]MH_I2C_Read... [09:26:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:57]Read from MH i2c: E2 [09:26:57]MH_I2C_Read... [09:26:57]Read from MH i2c: E2 03 00 [09:26:57]MH_I2C_Read... [09:26:57]Read from MH i2c: E2 03 00 A3 14 00 90 00 2B [09:26:57]RAPDU: 90 00 [09:26:57]wFMCommunicate OK [09:26:57]SAM_PROTO_ClearQueue done [09:26:57]KKMCreateOFDPacket [09:26:57]OFDProtocolAddRootSTLVToBuf [09:26:57]FM_MakeSignedData [09:26:57]FM_MakeSignedData [09:26:57]SAM_PROTO_SignData [09:26:57]wFMCommunicate request_size=4 [09:26:57]MH_SAM_APDU [09:26:57]CAPDU: 80 0D 01 02 [09:26:57]Write to MH i2c: E2 08 00 A4 14 80 0D 01 02 00 00 00 00 31 [09:26:57]Write i2c OK [09:26:57]MH_I2C_Read... [09:26:58]OFD Sender: No OFD packet to send [09:26:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:58]Read from MH i2c: E2 [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: E2 03 00 [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: E2 03 00 A4 14 00 90 00 2C [09:26:58]RAPDU: 90 00 [09:26:58]wFMCommunicate OK [09:26:58]wFMCommunicate request_size=255 [09:26:58]MH_SAM_APDU [09:26:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 62 03 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 34 D2 01 00 35 04 06 00 55 DF EC DA [09:26:58]Write to MH i2c: E2 02 01 A5 14 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 62 03 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 34 D2 01 00 35 04 06 00 55 DF EC DA 00 00 3B [09:26:58]Write i2c OK [09:26:58]MH_I2C_Read... [09:26:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:58]Read from MH i2c: E2 [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: E2 03 00 [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: E2 03 00 A5 14 00 90 00 2D [09:26:58]RAPDU: 90 00 [09:26:58]wFMCommunicate OK [09:26:58]wFMCommunicate request_size=7 [09:26:58]MH_SAM_APDU [09:26:58]CAPDU: 80 0D 02 02 02 01 54 [09:26:58]Write to MH i2c: E2 0A 00 A6 14 80 0D 02 02 02 00 01 54 00 00 8D [09:26:58]Write i2c OK [09:26:58]MH_I2C_Read... [09:26:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:58]Read from MH i2c: E2 [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: E2 03 00 [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: E2 03 00 A6 14 00 90 00 2E [09:26:58]RAPDU: 90 00 [09:26:58]wFMCommunicate OK [09:26:58]wFMCommunicate request_size=4 [09:26:58]MH_SAM_APDU [09:26:58]CAPDU: 80 0D 03 02 [09:26:58]Write to MH i2c: E2 08 00 A7 14 80 0D 03 02 00 00 00 00 36 [09:26:58]Write i2c OK [09:26:58]MH_I2C_Read... [09:26:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:58]Read from MH i2c: E2 [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: E2 0B 00 [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: E2 0B 00 A7 14 00 2E F3 87 F0 3B 03 CA EE 90 00 C5 [09:26:58]RAPDU: 2E F3 87 F0 3B 03 CA EE 90 00 [09:26:58]wFMCommunicate OK [09:26:58]SAM_PROTO_SignData done [09:26:58]FM_MakeSignedData done [09:26:58]CreateOFDProtocolMessage [09:26:58]wFMCommunicate request_size=4 [09:26:58]MH_SAM_APDU [09:26:58]CAPDU: 80 11 00 00 [09:26:58]Write to MH i2c: E2 08 00 A8 14 80 11 00 00 00 00 00 00 36 [09:26:58]Write i2c OK [09:26:58]MH_I2C_Read... [09:26:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:58]Read from MH i2c: E2 [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: E2 17 00 [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: E2 17 00 A8 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 91 [09:26:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:26:58]wFMCommunicate OK [09:26:58]CreateOFDProtocolMessage done [09:26:58]OFDSenderStorePacket 119348 [09:26:58]StoreOFDPacket docnum=119348 [09:26:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B3 22 04 01 5F C8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 62 03 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 34 D2 01 00 35 04 06 00 55 DF EC DA 01 54 2E F3 87 F0 3B 03 CA EE [09:26:58]CheckFolder [09:26:58]dirname=/storage/ofd_packets [09:26:58]CheckFolder done [09:26:58]ProducePacketName [09:26:58]name=ofd_packets/00119348 [09:26:58]NVStorageSaveData ofd_packets/00119348 [09:26:58]File name is /storage/ofd_packets/00119348 [09:26:58]Write 298 bytes [09:26:58]NVStorageSaveData done [09:26:58]OFDSenderStorePacket done [09:26:58]KKMCreateOFDPacket done [09:26:58]NVStorageSaveData kkm_last_timestamp [09:26:58]File name is /storage/kkm_last_timestamp [09:26:58]Write 4 bytes [09:26:58]NVStorageSaveData done [09:26:58]ExternCall_PrintAddStr [09:26:58]wPrintStart [09:26:58]Write to MH i2c: 01 00 00 A9 14 BD [09:26:58]Write i2c OK [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: 01 [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: 01 07 00 [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: 01 07 00 A9 14 00 00 00 00 00 FF 0F D2 [09:26:58]RasterBufferAndPrint [09:26:58]line Счет N : (1)950274 [09:26:58]line ИНН: 02508201610067 [09:26:58]line Контрольно-Кассовый Чек [09:26:58]line ПРОДАЖА [09:26:58]line ТРК (МРК, ГНК) : 44 [09:26:58]line Товар: 2710194800 [09:26:58]line ДТ-К-5 [09:26:58]line 13.130 * 76.20 [09:26:58]line = 1000.51 [09:26:58]line НДС 12% НСП 1% [09:26:58]line > о реализуемом товаре [09:26:58]line ОКРУГЛЕНИЕ: -0.51 [09:26:58]line ИТОГО: 1000.00 [09:26:58]line Внесено: 1000.00 [09:26:58]line СДАЧА: 0.00 [09:26:58]line НСП 1% : 8.85 [09:26:58]line НДС 12% : 106.25 [09:26:58]line Наличными: 1000.00 [09:26:58]line Безнал.: 0.00 [09:26:58]line Место: АЗС № 134 "Партнер Нефть" [09:26:58]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:26:58]line СНО: Общий режим [09:26:58]line Чек 79 31.07.2024 09:26 [09:26:58]line Смена: 436 ФФД: 1.0 [09:26:58]line ЗНМ: 0300000044 [09:26:58]line РНМ: 0000000000092660 [09:26:58]line Версия ККМ: 001 [09:26:58]line ФМ: 0000000000874939 [09:26:58]line ФД: 119348 [09:26:58]line ФПД: 94420239778132 [09:26:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T092658&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119348&fm=94420239778132&tin=02508201610067®Number=0000000000092660&sum=100000 [09:26:58]OFD Sender: Processing packet 119348 [packets to send 86, broken 85] [09:26:58]ProducePacketName [09:26:58]name=ofd_packets/00119348 [09:26:58]OFD Sender: To server: pG, [09:26:58]CommunicateWithHost lk.salyk.kg:30040 [09:26:58]ConnectInit lk.salyk.kg [09:26:58]written 0, free lines is 4095 [09:26:58]Connected sock=9 [09:26: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 39 33 39 0C 01 00 00 B3 22 04 01 5F C8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 62 03 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 34 D2 01 00 35 04 06 00 55 DF EC DA 01 54 2E F3 87 F0 3B 03 CA EE [09:26:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 6B 60 47 00 0C 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 34 D2 01 00 F4 03 04 00 EB B0 A9 66 B6 04 01 00 00 30 47 C5 D3 64 D3 76 33 [09:26:58]CommunicateWithHost err = 0 [09:26:58]CheckOFDResponse [09:26:58]1017 (14) - 77093643461234 [09:26:58]1041 (16) - 0000000000874939 [09:26:58]1040 (4) - 119348 [09:26:58]1012 (4) - 31.07.2024 03:35 [09:26:58]1206 (1) - 0 [09:26:58]OFD Sender: Remove packet 119348 [09:26:58]ProducePacketName [09:26:58]name=ofd_packets/00119348 [09:26:58]NVStorageDeleteData [09:26:58]Write to MH i2c: 01 00 00 D3 14 E7 [09:26:58]Write i2c OK [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: 01 [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: 01 07 00 [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: 01 07 00 D3 14 00 00 00 00 00 F2 0C EC [09:26:58]RasterBufferAndPrint [09:26:58]line [09:26:58]line [09:26:58]line [09:26:58]line [09:26:58]line [09:26:58]written 0, free lines is 3325 [09:26:58]MH_Cut [09:26:58]Write to MH i2c: D1 01 00 DA 14 01 C0 [09:26:58]Write i2c OK [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: D1 [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: D1 01 00 [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: D1 01 00 DA 14 00 BF [09:26:58]Write to MH i2c: 01 00 00 DB 14 EF [09:26:58]Write i2c OK [09:26:58]MH_I2C_Read... [09:26:59]OFD Sender: No OFD packet to send [09:26:59]*** Cut start [09:26:59]*** Partial cut [09:26:59]*** CUTSNS_PIN = 1 [09:26:59]*** CUTSNS_PIN = 0 [09:26:59]*** Brake cut motor [09:27:00]Read from MH i2c: 01 [09:27:00]MH_I2C_Read... [09:27:00]*** Stop cut motor [09:27:00]*** Cut end [09:27:00]Read from MH i2c: 01 07 00 [09:27:00]MH_I2C_Read... [09:27:00]Read from MH i2c: 01 07 00 DB 14 00 00 00 00 00 FF 0F 04 [09:27:00]process_action close_receipt done [09:27:00]requested_data is exist [09:27:00]produce_requested_data [09:27:00]requested_item fm.sn is exist - process it [09:27:00]wFMCommunicate request_size=4 [09:27:00]MH_SAM_APDU [09:27:00]CAPDU: 80 11 00 00 [09:27:00]Write to MH i2c: E2 08 00 DC 14 80 11 00 00 00 00 00 00 6A [09:27:00]Write i2c OK [09:27:00]MH_I2C_Read... [09:27:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:00]Read from MH i2c: E2 [09:27:00]MH_I2C_Read... [09:27:00]Read from MH i2c: E2 17 00 [09:27:00]MH_I2C_Read... [09:27:00]Read from MH i2c: E2 17 00 DC 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C5 [09:27:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:27:00]wFMCommunicate OK [09:27:00]requested_item fd.num is exist - process it [09:27:00]SAM_PROTO_GetFieldsCounters [09:27:00]wFMCommunicate request_size=4 [09:27:00]MH_SAM_APDU [09:27:00]CAPDU: 80 13 00 00 [09:27:00]Write to MH i2c: E2 08 00 DD 14 80 13 00 00 00 00 00 00 6D [09:27:00]Write i2c OK [09:27:00]MH_I2C_Read... [09:27:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:27:00]Read from MH i2c: E2 [09:27:00]MH_I2C_Read... [09:27:00]Read from MH i2c: E2 62 00 [09:27:00]MH_I2C_Read... [09:27:00]Read from MH i2c: E2 62 00 DD 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 34 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [09:27:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 34 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:27:00]wFMCommunicate OK [09:27:00]SAM_PROTO_GetFieldsCounters done [09:27:00]requested_item shift.num is exist - process it [09:27:00]requested_item shift.opened is exist - process it [09:27:00]req_shift_opened [09:27:00]FM_GetShiftState [09:27:00]SAM_PROTO_GetShiftState [09:27:00]wFMCommunicate request_size=4 [09:27:00]MH_SAM_APDU [09:27:00]CAPDU: 80 13 01 00 [09:27:00]Write to MH i2c: E2 08 00 DE 14 80 13 01 00 00 00 00 00 6F [09:27:00]Write i2c OK [09:27:00]MH_I2C_Read... [09:27:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:00]Read from MH i2c: E2 [09:27:00]MH_I2C_Read... [09:27:00]Read from MH i2c: E2 0E 00 [09:27:00]MH_I2C_Read... [09:27:00]Read from MH i2c: E2 0E 00 DE 14 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 07 [09:27:00]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:27:00]wFMCommunicate OK [09:27:00]SAM_PROTO_GetShiftState done [09:27:00]FM_GetShiftState done [09:27:00]req_shift_opened done [09:27:00]requested_item shift.open_date is exist - process it [09:27:00]req_shift_open_date [09:27:00]req_shift_open_date done [09:27:00]produce_requested_data done [09:27:00]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119348,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [09:27:00]process_action_free close_receipt [09:27:00]json_value_free [09:27:00]json_value_free done [09:27:00]process_json_proto returns [09:27:00]Send response to host [09:27:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119348,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [09:27:00]free response buf [09:27:00]execute_script done [09:27:00]execute_script returns [09:27:00]free content buf [09:27:00]Sock 10.Close socket [09:27:00]Sock 10.Thread stoped [09:27:04]OFD Sender: No OFD packet to send [09:27:09]OFD Sender: No OFD packet to send [09:27:13]accept exits with 8 [09:27:13]New connection [09:27:13]New thread 3067338084 created [09:27:13]Thread 3067194724 joined [09:27:13]Waiting for new connection... [09:27:13] Sock 8.Parse request [09:27:13]Sock 8.Check first char [09:27:13]Sock 8.First char is OK [09:27:13]request: POST /json_proto HTTP/1.0 [09:27:13]Method: POST [09:27:13]URL: /json_proto [09:27:13]Method is POST - this is cgi request [09:27:13]url: /json_proto [09:27:13]query_string will be loaded in cgi processing [09:27:13]execute_cgi json_proto POST (null) [09:27:13]execute_cgi path=json_proto method=POST [09:27:13]POST find Content-Length [09:27:13]Host: 172.17.45.7:8080 [09:27:13]Content-Length: 679 [09:27:13]Content-Type: application/json [09:27:13] [09:27:13]POST finish read [09:27:13]Found Content-Length = 679 [09:27:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:13]execute_script... [09:27:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:13]POST & json_proto [09:27:13]process_json_proto [09:27:13]json parsed OK: [09:27:13]protocol is kg_v1.0 [09:27:13]action value=close_receipt [09:27:13]process_action close_receipt [09:27:13]cmd_close_receipt [09:27:13]MH_GetDate [09:27:13]Write to MH i2c: F0 00 00 DF 14 E2 [09:27:13]Write i2c OK [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: F0 [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: F0 09 00 [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: F0 09 00 DF 14 00 73 03 AA 66 90 0F 3E 66 B4 [09:27:13]GetLastDocTimeStamp 1722418018 [09:27:13]current date 1722418035 [09:27:13]FM_GetShiftState [09:27:13]SAM_PROTO_GetShiftState [09:27:13]wFMCommunicate request_size=4 [09:27:13]MH_SAM_APDU [09:27:13]CAPDU: 80 13 01 00 [09:27:13]Write to MH i2c: E2 08 00 E0 14 80 13 01 00 00 00 00 00 71 [09:27:13]Write i2c OK [09:27:13]MH_I2C_Read... [09:27:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:13]Read from MH i2c: E2 [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: E2 0E 00 [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: E2 0E 00 E0 14 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 09 [09:27:13]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:27:13]wFMCommunicate OK [09:27:13]SAM_PROTO_GetShiftState done [09:27:13]FM_GetShiftState done [09:27:13]opened in 1722384637 [09:27:13]opened+sec_in_day 1722471037 [09:27:13]quantity*price = 100050 [09:27:13]sum+1 = 100052 [09:27:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 80 31.07.2024 09:27 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119349 ФПД: 22459015812025 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T092715&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119349&fm=22459015812025&tin=02508201610067®Number=0000000000092660&sum=100000 [09:27:14]StoreToDocumentArchive [09:27:14]shift 436 fd 119349 [09:27:14]save to /storage/0436/doc_00119349 [09:27:14]save last doc name /storage/0436/doc_00119349 to /storage/kkm_last_doc_name [09:27:14]save OK [09:27:14]Clear old archive folders... [09:27:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:27:14]tlvbuf is B6FB65A0 [09:27:14]SAM_PROTO_ClearQueue [09:27:14]wFMCommunicate request_size=4 [09:27:14]MH_SAM_APDU [09:27:14]CAPDU: 80 09 00 00 [09:27:14]Write to MH i2c: E2 08 00 ED 14 80 09 00 00 00 00 00 00 73 [09:27:14]Write i2c OK [09:27:14]MH_I2C_Read... [09:27:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:27:14]Read from MH i2c: E2 [09:27:14]MH_I2C_Read... [09:27:14]Read from MH i2c: E2 03 00 [09:27:14]MH_I2C_Read... [09:27:14]Read from MH i2c: E2 03 00 ED 14 00 90 00 75 [09:27:14]RAPDU: 90 00 [09:27:14]wFMCommunicate OK [09:27:14]SAM_PROTO_ClearQueue done [09:27:14]KKMCreateOFDPacket [09:27:14]OFDProtocolAddRootSTLVToBuf [09:27:15]FM_MakeSignedData [09:27:15]FM_MakeSignedData [09:27:15]SAM_PROTO_SignData [09:27:15]wFMCommunicate request_size=4 [09:27:15]MH_SAM_APDU [09:27:15]CAPDU: 80 0D 01 02 [09:27:15]Write to MH i2c: E2 08 00 EE 14 80 0D 01 02 00 00 00 00 7B [09:27:15]Write i2c OK [09:27:15]MH_I2C_Read... [09:27:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:27:15]Read from MH i2c: E2 [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: E2 03 00 [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: E2 03 00 EE 14 00 90 00 76 [09:27:15]RAPDU: 90 00 [09:27:15]wFMCommunicate OK [09:27:15]wFMCommunicate request_size=255 [09:27:15]MH_SAM_APDU [09:27:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 73 03 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 35 D2 01 00 35 04 06 00 14 6D 25 A8 [09:27:15]Write to MH i2c: E2 02 01 EF 14 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 73 03 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 35 D2 01 00 35 04 06 00 14 6D 25 A8 00 00 EC [09:27:15]Write i2c OK [09:27:15]MH_I2C_Read... [09:27:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:15]Read from MH i2c: E2 [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: E2 03 00 [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: E2 03 00 EF 14 00 90 00 77 [09:27:15]RAPDU: 90 00 [09:27:15]wFMCommunicate OK [09:27:15]wFMCommunicate request_size=7 [09:27:15]MH_SAM_APDU [09:27:15]CAPDU: 80 0D 02 02 02 D3 B9 [09:27:15]Write to MH i2c: E2 0A 00 F0 14 80 0D 02 02 02 00 D3 B9 00 00 0E [09:27:15]Write i2c OK [09:27:15]MH_I2C_Read... [09:27:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:15]Read from MH i2c: E2 [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: E2 03 00 [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: E2 03 00 F0 14 00 90 00 78 [09:27:15]RAPDU: 90 00 [09:27:15]wFMCommunicate OK [09:27:15]wFMCommunicate request_size=4 [09:27:15]MH_SAM_APDU [09:27:15]CAPDU: 80 0D 03 02 [09:27:15]Write to MH i2c: E2 08 00 F1 14 80 0D 03 02 00 00 00 00 80 [09:27:15]Write i2c OK [09:27:15]MH_I2C_Read... [09:27:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:27:15]Read from MH i2c: E2 [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: E2 0B 00 [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: E2 0B 00 F1 14 00 AE 2B D3 1C CF 13 59 3B 90 00 BF [09:27:15]RAPDU: AE 2B D3 1C CF 13 59 3B 90 00 [09:27:15]wFMCommunicate OK [09:27:15]SAM_PROTO_SignData done [09:27:15]FM_MakeSignedData done [09:27:15]CreateOFDProtocolMessage [09:27:15]wFMCommunicate request_size=4 [09:27:15]MH_SAM_APDU [09:27:15]CAPDU: 80 11 00 00 [09:27:15]Write to MH i2c: E2 08 00 F2 14 80 11 00 00 00 00 00 00 80 [09:27:15]Write i2c OK [09:27:15]MH_I2C_Read... [09:27:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:15]Read from MH i2c: E2 [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: E2 17 00 [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: E2 17 00 F2 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DB [09:27:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:27:15]wFMCommunicate OK [09:27:15]CreateOFDProtocolMessage done [09:27:15]OFDSenderStorePacket 119349 [09:27:15]StoreOFDPacket docnum=119349 [09:27:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 82 92 04 01 51 8D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 73 03 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 35 D2 01 00 35 04 06 00 14 6D 25 A8 D3 B9 AE 2B D3 1C CF 13 59 3B [09:27:15]CheckFolder [09:27:15]dirname=/storage/ofd_packets [09:27:15]CheckFolder done [09:27:15]ProducePacketName [09:27:15]name=ofd_packets/00119349 [09:27:15]NVStorageSaveData ofd_packets/00119349 [09:27:15]File name is /storage/ofd_packets/00119349 [09:27:15]Write 298 bytes [09:27:15]NVStorageSaveData done [09:27:15]OFDSenderStorePacket done [09:27:15]KKMCreateOFDPacket done [09:27:15]NVStorageSaveData kkm_last_timestamp [09:27:15]File name is /storage/kkm_last_timestamp [09:27:15]Write 4 bytes [09:27:15]NVStorageSaveData done [09:27:15]ExternCall_PrintAddStr [09:27:15]wPrintStart [09:27:15]Write to MH i2c: 01 00 00 F3 14 07 [09:27:15]Write i2c OK [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: 01 [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: 01 07 00 [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: 01 07 00 F3 14 00 00 00 00 00 FF 0F 1C [09:27:15]RasterBufferAndPrint [09:27:15]line Счет N : (1)950275 [09:27:15]line ИНН: 02508201610067 [09:27:15]line Контрольно-Кассовый Чек [09:27:15]line ПРОДАЖА [09:27:15]line ТРК (МРК, ГНК) : 34 [09:27:15]line Товар: 2710194800 [09:27:15]line ДТ-К-5 [09:27:15]line 13.130 * 76.20 [09:27:15]line = 1000.51 [09:27:15]line НДС 12% НСП 1% [09:27:15]line > о реализуемом товаре [09:27:15]line ОКРУГЛЕНИЕ: -0.51 [09:27:15]line ИТОГО: 1000.00 [09:27:15]line Внесено: 1000.00 [09:27:15]line СДАЧА: 0.00 [09:27:15]line НСП 1% : 8.85 [09:27:15]line НДС 12% : 106.25 [09:27:15]line Наличными: 1000.00 [09:27:15]line Безнал.: 0.00 [09:27:15]line Место: АЗС № 134 "Партнер Нефть" [09:27:15]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:27:15]line СНО: Общий режим [09:27:15]line Чек 80 31.07.2024 09:27 [09:27:15]line Смена: 436 ФФД: 1.0 [09:27:15]line ЗНМ: 0300000044 [09:27:15]line РНМ: 0000000000092660 [09:27:15]line Версия ККМ: 001 [09:27:15]line ФМ: 0000000000874939 [09:27:15]line ФД: 119349 [09:27:15]line ФПД: 22459015812025 [09:27:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T092715&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119349&fm=22459015812025&tin=02508201610067®Number=0000000000092660&sum=100000 [09:27:15]OFD Sender: Processing packet 119349 [packets to send 86, broken 85] [09:27:15]ProducePacketName [09:27:15]name=ofd_packets/00119349 [09:27:15]OFD Sender: To server: pG, [09:27:15]CommunicateWithHost lk.salyk.kg:30040 [09:27:15]ConnectInit lk.salyk.kg [09:27:15]written 0, free lines is 4095 [09:27:15]Connected sock=10 [09:27:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 82 92 04 01 51 8D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 73 03 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 35 D2 01 00 35 04 06 00 14 6D 25 A8 D3 B9 AE 2B D3 1C CF 13 59 3B [09:27:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 11 57 47 00 48 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 35 D2 01 00 F4 03 04 00 FC B0 A9 66 B6 04 01 00 00 DE 07 F4 2E 1D FB E8 6C [09:27:15]CommunicateWithHost err = 0 [09:27:15]CheckOFDResponse [09:27:15]1017 (14) - 77093643461234 [09:27:15]1041 (16) - 0000000000874939 [09:27:15]1040 (4) - 119349 [09:27:15]1012 (4) - 31.07.2024 03:35 [09:27:15]1206 (1) - 0 [09:27:15]OFD Sender: Remove packet 119349 [09:27:15]ProducePacketName [09:27:15]name=ofd_packets/00119349 [09:27:15]NVStorageDeleteData [09:27:15]Write to MH i2c: 01 00 00 1D 15 32 [09:27:15]Write i2c OK [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: 01 [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: 01 07 00 [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: 01 07 00 1D 15 00 00 00 00 00 FE 0C 43 [09:27:15]RasterBufferAndPrint [09:27:15]line [09:27:15]line [09:27:15]line [09:27:15]line [09:27:15]line [09:27:15]written 0, free lines is 3335 [09:27:15]MH_Cut [09:27:15]Write to MH i2c: D1 01 00 24 15 01 0B [09:27:16]Write i2c OK [09:27:16]MH_I2C_Read... [09:27:16]Read from MH i2c: D1 [09:27:16]MH_I2C_Read... [09:27:16]Read from MH i2c: D1 01 00 [09:27:16]MH_I2C_Read... [09:27:16]Read from MH i2c: D1 01 00 24 15 00 0A [09:27:16]Write to MH i2c: 01 00 00 25 15 3A [09:27:16]Write i2c OK [09:27:16]MH_I2C_Read... [09:27:16]OFD Sender: No OFD packet to send [09:27:16]*** Cut start [09:27:16]*** Partial cut [09:27:16]*** CUTSNS_PIN = 1 [09:27:16]*** CUTSNS_PIN = 0 [09:27:16]*** Brake cut motor [09:27:17]Read from MH i2c: 01 [09:27:17]MH_I2C_Read... [09:27:17]*** Stop cut motor [09:27:17]*** Cut end [09:27:17]Read from MH i2c: 01 07 00 [09:27:17]MH_I2C_Read... [09:27:17]Read from MH i2c: 01 07 00 25 15 00 00 00 00 00 FF 0F 4F [09:27:17]process_action close_receipt done [09:27:17]requested_data is exist [09:27:17]produce_requested_data [09:27:17]requested_item fm.sn is exist - process it [09:27:17]wFMCommunicate request_size=4 [09:27:17]MH_SAM_APDU [09:27:17]CAPDU: 80 11 00 00 [09:27:17]Write to MH i2c: E2 08 00 26 15 80 11 00 00 00 00 00 00 B5 [09:27:17]Write i2c OK [09:27:17]MH_I2C_Read... [09:27:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:17]Read from MH i2c: E2 [09:27:17]MH_I2C_Read... [09:27:17]Read from MH i2c: E2 17 00 [09:27:17]MH_I2C_Read... [09:27:17]Read from MH i2c: E2 17 00 26 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 10 [09:27:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:27:17]wFMCommunicate OK [09:27:17]requested_item fd.num is exist - process it [09:27:17]SAM_PROTO_GetFieldsCounters [09:27:17]wFMCommunicate request_size=4 [09:27:17]MH_SAM_APDU [09:27:17]CAPDU: 80 13 00 00 [09:27:17]Write to MH i2c: E2 08 00 27 15 80 13 00 00 00 00 00 00 B8 [09:27:17]Write i2c OK [09:27:17]MH_I2C_Read... [09:27:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:27:17]Read from MH i2c: E2 [09:27:17]MH_I2C_Read... [09:27:17]Read from MH i2c: E2 62 00 [09:27:17]MH_I2C_Read... [09:27:17]Read from MH i2c: E2 62 00 27 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 35 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [09:27:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 35 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:27:17]wFMCommunicate OK [09:27:17]SAM_PROTO_GetFieldsCounters done [09:27:17]requested_item shift.num is exist - process it [09:27:17]requested_item shift.opened is exist - process it [09:27:17]req_shift_opened [09:27:17]FM_GetShiftState [09:27:17]SAM_PROTO_GetShiftState [09:27:17]wFMCommunicate request_size=4 [09:27:17]MH_SAM_APDU [09:27:17]CAPDU: 80 13 01 00 [09:27:17]Write to MH i2c: E2 08 00 28 15 80 13 01 00 00 00 00 00 BA [09:27:17]Write i2c OK [09:27:17]MH_I2C_Read... [09:27:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:17]Read from MH i2c: E2 [09:27:17]MH_I2C_Read... [09:27:17]Read from MH i2c: E2 0E 00 [09:27:17]MH_I2C_Read... [09:27:17]Read from MH i2c: E2 0E 00 28 15 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 52 [09:27:17]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:27:17]wFMCommunicate OK [09:27:17]SAM_PROTO_GetShiftState done [09:27:17]FM_GetShiftState done [09:27:17]req_shift_opened done [09:27:17]requested_item shift.open_date is exist - process it [09:27:17]req_shift_open_date [09:27:17]req_shift_open_date done [09:27:17]produce_requested_data done [09:27:17]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119349,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [09:27:17]process_action_free close_receipt [09:27:17]json_value_free [09:27:17]json_value_free done [09:27:17]process_json_proto returns [09:27:17]Send response to host [09:27:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119349,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [09:27:17]free response buf [09:27:17]execute_script done [09:27:17]execute_script returns [09:27:17]free content buf [09:27:17]Sock 8.Close socket [09:27:17]Sock 8.Thread stoped [09:27:21]OFD Sender: No OFD packet to send [09:27:26]OFD Sender: No OFD packet to send [09:27:31]OFD Sender: No OFD packet to send [09:27:36]OFD Sender: No OFD packet to send [09:27:41]OFD Sender: No OFD packet to send [09:27:46]OFD Sender: No OFD packet to send [09:27:51]OFD Sender: No OFD packet to send [09:27:56]OFD Sender: No OFD packet to send [09:28:01]OFD Sender: No OFD packet to send [09:28:06]OFD Sender: No OFD packet to send [09:28:11]OFD Sender: No OFD packet to send [09:28:16]OFD Sender: No OFD packet to send [09:28:21]OFD Sender: No OFD packet to send [09:28:26]OFD Sender: No OFD packet to send [09:28:31]OFD Sender: No OFD packet to send [09:28:36]OFD Sender: No OFD packet to send [09:28:41]OFD Sender: No OFD packet to send [09:28:46]OFD Sender: No OFD packet to send [09:28:51]OFD Sender: No OFD packet to send [09:28:55]accept exits with 9 [09:28:55]New connection [09:28:55]New thread 3067194724 created [09:28:55]Thread 3067338084 joined [09:28:55]Waiting for new connection... [09:28:55] Sock 9.Parse request [09:28:55]Sock 9.Check first char [09:28:55]Sock 9.First char is OK [09:28:55]request: POST /json_proto HTTP/1.0 [09:28:55]Method: POST [09:28:55]URL: /json_proto [09:28:55]Method is POST - this is cgi request [09:28:55]url: /json_proto [09:28:55]query_string will be loaded in cgi processing [09:28:55]execute_cgi json_proto POST (null) [09:28:55]execute_cgi path=json_proto method=POST [09:28:55]POST find Content-Length [09:28:55]Host: 172.17.45.7:8080 [09:28:55]Content-Length: 677 [09:28:55]Content-Type: application/json [09:28:55] [09:28:55]POST finish read [09:28:55]Found Content-Length = 677 [09:28:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:55]execute_script... [09:28: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)950277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:55]POST & json_proto [09:28:55]process_json_proto [09:28:55]json parsed OK: [09:28:55]protocol is kg_v1.0 [09:28:55]action value=close_receipt [09:28:55]process_action close_receipt [09:28:55]cmd_close_receipt [09:28:55]MH_GetDate [09:28:55]Write to MH i2c: F0 00 00 29 15 2D [09:28:55]Write i2c OK [09:28:55]MH_I2C_Read... [09:28:55]Read from MH i2c: F0 [09:28:55]MH_I2C_Read... [09:28:55]Read from MH i2c: F0 09 00 [09:28:55]MH_I2C_Read... [09:28:55]Read from MH i2c: F0 09 00 29 15 00 D9 03 AA 66 90 0F 3E 66 65 [09:28:55]GetLastDocTimeStamp 1722418035 [09:28:55]current date 1722418137 [09:28:55]FM_GetShiftState [09:28:55]SAM_PROTO_GetShiftState [09:28:55]wFMCommunicate request_size=4 [09:28:55]MH_SAM_APDU [09:28:55]CAPDU: 80 13 01 00 [09:28:55]Write to MH i2c: E2 08 00 2A 15 80 13 01 00 00 00 00 00 BC [09:28:55]Write i2c OK [09:28:55]MH_I2C_Read... [09:28:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:55]Read from MH i2c: E2 [09:28:55]MH_I2C_Read... [09:28:55]Read from MH i2c: E2 0E 00 [09:28:55]MH_I2C_Read... [09:28:55]Read from MH i2c: E2 0E 00 2A 15 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 54 [09:28:55]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:28:55]wFMCommunicate OK [09:28:55]SAM_PROTO_GetShiftState done [09:28:55]FM_GetShiftState done [09:28:55]opened in 1722384637 [09:28:55]opened+sec_in_day 1722471037 [09:28:55]quantity*price = 30035 [09:28:55]sum+1 = 30036 [09:28:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 81 31.07.2024 09:28 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119350 ФПД: 250672670385226 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T092857&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119350&fm=250672670385226&tin=02508201610067®Number=0000000000092660&sum=30000 [09:28:56]StoreToDocumentArchive [09:28:56]shift 436 fd 119350 [09:28:56]save to /storage/0436/doc_00119350 [09:28:56]save last doc name /storage/0436/doc_00119350 to /storage/kkm_last_doc_name [09:28:56]save OK [09:28:56]Clear old archive folders... [09:28:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:28:56]tlvbuf is 00AAC2E0 [09:28:56]SAM_PROTO_ClearQueue [09:28:56]wFMCommunicate request_size=4 [09:28:56]MH_SAM_APDU [09:28:56]CAPDU: 80 09 00 00 [09:28:56]Write to MH i2c: E2 08 00 37 15 80 09 00 00 00 00 00 00 BE [09:28:56]Write i2c OK [09:28:56]MH_I2C_Read... [09:28:56]*** iso7816_exchange 80 09 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 37 15 00 90 00 C0 [09:28:56]RAPDU: 90 00 [09:28:56]wFMCommunicate OK [09:28:56]SAM_PROTO_ClearQueue done [09:28:56]KKMCreateOFDPacket [09:28:56]OFDProtocolAddRootSTLVToBuf [09:28:56]FM_MakeSignedData [09:28:56]FM_MakeSignedData [09:28:56]SAM_PROTO_SignData [09:28:56]wFMCommunicate request_size=4 [09:28:56]MH_SAM_APDU [09:28:56]CAPDU: 80 0D 01 02 [09:28:56]Write to MH i2c: E2 08 00 38 15 80 0D 01 02 00 00 00 00 C6 [09:28:56]Write i2c OK [09:28:56]MH_I2C_Read... [09:28:56]*** iso7816_exchange 80 0D 01 02... 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 38 15 00 90 00 C1 [09:28:56]RAPDU: 90 00 [09:28:56]wFMCommunicate OK [09:28:56]wFMCommunicate request_size=255 [09:28:56]MH_SAM_APDU [09:28:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 D9 03 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 36 D2 01 00 35 04 06 00 E3 [09:28:56]Write to MH i2c: E2 02 01 39 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 D9 03 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 36 D2 01 00 35 04 06 00 E3 00 00 47 [09:28:56]Write i2c OK [09:28:56]MH_I2C_Read... [09:28:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:57]Read from MH i2c: E2 [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: E2 03 00 [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: E2 03 00 39 15 00 90 00 C2 [09:28:57]RAPDU: 90 00 [09:28:57]wFMCommunicate OK [09:28:57]wFMCommunicate request_size=10 [09:28:57]MH_SAM_APDU [09:28:57]CAPDU: 80 0D 02 02 05 FC 47 79 24 4A [09:28:57]Write to MH i2c: E2 0D 00 3A 15 80 0D 02 02 05 00 FC 47 79 24 4A 00 00 FD [09:28:57]Write i2c OK [09:28:57]MH_I2C_Read... [09:28:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:57]Read from MH i2c: E2 [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: E2 03 00 [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: E2 03 00 3A 15 00 90 00 C3 [09:28:57]RAPDU: 90 00 [09:28:57]wFMCommunicate OK [09:28:57]wFMCommunicate request_size=4 [09:28:57]MH_SAM_APDU [09:28:57]CAPDU: 80 0D 03 02 [09:28:57]Write to MH i2c: E2 08 00 3B 15 80 0D 03 02 00 00 00 00 CB [09:28:57]Write i2c OK [09:28:57]MH_I2C_Read... [09:28:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:57]Read from MH i2c: E2 [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: E2 0B 00 [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: E2 0B 00 3B 15 00 8B A4 29 8C 24 4A 7B 49 90 00 E2 [09:28:57]RAPDU: 8B A4 29 8C 24 4A 7B 49 90 00 [09:28:57]wFMCommunicate OK [09:28:57]SAM_PROTO_SignData done [09:28:57]FM_MakeSignedData done [09:28:57]CreateOFDProtocolMessage [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 3C 15 80 11 00 00 00 00 00 00 CB [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 3C 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 26 [09:28:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:28:57]wFMCommunicate OK [09:28:57]CreateOFDProtocolMessage done [09:28:57]OFDSenderStorePacket 119350 [09:28:57]StoreOFDPacket docnum=119350 [09:28:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 0F B5 07 01 30 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 D9 03 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 36 D2 01 00 35 04 06 00 E3 FC 47 79 24 4A 8B A4 29 8C 24 4A 7B 49 [09:28:57]CheckFolder [09:28:57]dirname=/storage/ofd_packets [09:28:57]CheckFolder done [09:28:57]ProducePacketName [09:28:57]name=ofd_packets/00119350 [09:28:57]NVStorageSaveData ofd_packets/00119350 [09:28:57]File name is /storage/ofd_packets/00119350 [09:28:57]Write 301 bytes [09:28:57]NVStorageSaveData done [09:28:57]OFDSenderStorePacket done [09:28:57]KKMCreateOFDPacket done [09:28:57]NVStorageSaveData kkm_last_timestamp [09:28:57]File name is /storage/kkm_last_timestamp [09:28:57]Write 4 bytes [09:28:57]NVStorageSaveData done [09:28:57]ExternCall_PrintAddStr [09:28:57]wPrintStart [09:28:57]Write to MH i2c: 01 00 00 3D 15 52 [09:28:57]Write i2c OK [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: 01 [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: 01 07 00 [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: 01 07 00 3D 15 00 00 00 00 00 FF 0F 67 [09:28:57]RasterBufferAndPrint [09:28:57]line Счет N : (1)950277 [09:28:57]line ИНН: 02508201610067 [09:28:57]line Контрольно-Кассовый Чек [09:28:57]line ПРОДАЖА [09:28:57]line ТРК (МРК, ГНК) : 51 [09:28:57]line Товар: 2710124130 [09:28:57]line Аи-92-К-4 [09:28:57]line 4.430 * 67.80 [09:28:57]line = 300.35 [09:28:57]line НДС 12% НСП 1% [09:28:57]line > о реализуемом товаре [09:28:57]line ОКРУГЛЕНИЕ: -0.35 [09:28:57]line ИТОГО: 300.00 [09:28:57]line Внесено: 300.00 [09:28:57]line СДАЧА: 0.00 [09:28:57]line НСП 1% : 2.66 [09:28:57]line НДС 12% : 31.90 [09:28:57]line Наличными: 300.00 [09:28:57]line Безнал.: 0.00 [09:28:57]line Место: АЗС № 134 "Партнер Нефть" [09:28:57]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:28:57]line СНО: Общий режим [09:28:57]line Чек 81 31.07.2024 09:28 [09:28:57]line Смена: 436 ФФД: 1.0 [09:28:57]line ЗНМ: 0300000044 [09:28:57]line РНМ: 0000000000092660 [09:28:57]line Версия ККМ: 001 [09:28:57]line ФМ: 0000000000874939 [09:28:57]line ФД: 119350 [09:28:57]line ФПД: 250672670385226 [09:28:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T092857&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119350&fm=250672670385226&tin=02508201610067®Number=0000000000092660&sum=30000 [09:28:57]written 0, free lines is 4095 [09:28:57]OFD Sender: Processing packet 119350 [packets to send 86, broken 85] [09:28:57]ProducePacketName [09:28:57]name=ofd_packets/00119350 [09:28:57]OFD Sender: To server: pG, [09:28:57]CommunicateWithHost lk.salyk.kg:30040 [09:28:57]ConnectInit lk.salyk.kg [09:28:57]Connected sock=11 [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 39 33 39 0F 01 00 00 0F B5 07 01 30 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 D9 03 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 36 D2 01 00 35 04 06 00 E3 FC 47 79 24 4A 8B A4 29 8C 24 4A 7B 49 [09:28:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 7A 0F 47 00 8C 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 36 D2 01 00 F4 03 04 00 62 B1 A9 66 B6 04 01 00 00 17 18 B5 98 61 25 1B 8A [09:28:57]CommunicateWithHost err = 0 [09:28:57]CheckOFDResponse [09:28:57]1017 (14) - 77093643461234 [09:28:57]1041 (16) - 0000000000874939 [09:28:57]1040 (4) - 119350 [09:28:57]1012 (4) - 31.07.2024 03:37 [09:28:57]1206 (1) - 0 [09:28:57]OFD Sender: Remove packet 119350 [09:28:57]ProducePacketName [09:28:57]name=ofd_packets/00119350 [09:28:57]NVStorageDeleteData [09:28:57]Write to MH i2c: 01 00 00 67 15 7C [09:28:57]Write i2c OK [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: 01 [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: 01 07 00 [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: 01 07 00 67 15 00 00 00 00 00 F4 0C 83 [09:28:57]RasterBufferAndPrint [09:28:57]line [09:28:57]line [09:28:57]line [09:28:57]line [09:28:57]line [09:28:57]written 0, free lines is 3320 [09:28:57]MH_Cut [09:28:57]Write to MH i2c: D1 01 00 6E 15 01 55 [09:28:57]Write i2c OK [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: D1 [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: D1 01 00 [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: D1 01 00 6E 15 00 54 [09:28:57]Write to MH i2c: 01 00 00 6F 15 84 [09:28:57]Write i2c OK [09:28:57]MH_I2C_Read... [09:28:58]OFD Sender: No OFD packet to send [09:28:58]*** Cut start [09:28:58]*** Partial cut [09:28:58]*** CUTSNS_PIN = 1 [09:28:58]*** CUTSNS_PIN = 0 [09:28:58]*** Brake cut motor [09:28:59]Read from MH i2c: 01 [09:28:59]MH_I2C_Read... [09:28:59]*** Stop cut motor [09:28:59]*** Cut end [09:28:59]Read from MH i2c: 01 07 00 [09:28:59]MH_I2C_Read... [09:28:59]Read from MH i2c: 01 07 00 6F 15 00 00 00 00 00 FF 0F 99 [09:28:59]process_action close_receipt done [09:28:59]requested_data is exist [09:28:59]produce_requested_data [09:28:59]requested_item fm.sn is exist - process it [09:28:59]wFMCommunicate request_size=4 [09:28:59]MH_SAM_APDU [09:28:59]CAPDU: 80 11 00 00 [09:28:59]Write to MH i2c: E2 08 00 70 15 80 11 00 00 00 00 00 00 FF [09:28:59]Write i2c OK [09:28:59]MH_I2C_Read... [09:28:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:59]Read from MH i2c: E2 [09:28:59]MH_I2C_Read... [09:28:59]Read from MH i2c: E2 17 00 [09:28:59]MH_I2C_Read... [09:28:59]Read from MH i2c: E2 17 00 70 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5A [09:28:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:28:59]wFMCommunicate OK [09:28:59]requested_item fd.num is exist - process it [09:28:59]SAM_PROTO_GetFieldsCounters [09:28:59]wFMCommunicate request_size=4 [09:28:59]MH_SAM_APDU [09:28:59]CAPDU: 80 13 00 00 [09:28:59]Write to MH i2c: E2 08 00 71 15 80 13 00 00 00 00 00 00 02 [09:28:59]Write i2c OK [09:28:59]MH_I2C_Read... [09:28:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:59]Read from MH i2c: E2 [09:28:59]MH_I2C_Read... [09:28:59]Read from MH i2c: E2 62 00 [09:28:59]MH_I2C_Read... [09:28:59]Read from MH i2c: E2 62 00 71 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 36 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [09:28: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 36 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:28:59]wFMCommunicate OK [09:28:59]SAM_PROTO_GetFieldsCounters done [09:28:59]requested_item shift.num is exist - process it [09:28:59]requested_item shift.opened is exist - process it [09:28:59]req_shift_opened [09:28:59]FM_GetShiftState [09:28:59]SAM_PROTO_GetShiftState [09:28:59]wFMCommunicate request_size=4 [09:28:59]MH_SAM_APDU [09:28:59]CAPDU: 80 13 01 00 [09:28:59]Write to MH i2c: E2 08 00 72 15 80 13 01 00 00 00 00 00 04 [09:28:59]Write i2c OK [09:28:59]MH_I2C_Read... [09:28:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:59]Read from MH i2c: E2 [09:28:59]MH_I2C_Read... [09:28:59]Read from MH i2c: E2 0E 00 [09:28:59]MH_I2C_Read... [09:28:59]Read from MH i2c: E2 0E 00 72 15 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 9C [09:28:59]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:28:59]wFMCommunicate OK [09:28:59]SAM_PROTO_GetShiftState done [09:28:59]FM_GetShiftState done [09:28:59]req_shift_opened done [09:28:59]requested_item shift.open_date is exist - process it [09:28:59]req_shift_open_date [09:28:59]req_shift_open_date done [09:28:59]produce_requested_data done [09:28:59]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119350,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [09:28:59]process_action_free close_receipt [09:28:59]json_value_free [09:28:59]json_value_free done [09:28:59]process_json_proto returns [09:28:59]Send response to host [09:28:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119350,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [09:28:59]free response buf [09:28:59]execute_script done [09:28:59]execute_script returns [09:28:59]free content buf [09:28:59]Sock 9.Close socket [09:28:59]Sock 9.Thread stoped [09:29:03]OFD Sender: No OFD packet to send [09:29:08]OFD Sender: No OFD packet to send [09:29:13]OFD Sender: No OFD packet to send [09:29:18]OFD Sender: No OFD packet to send [09:29:19]accept exits with 8 [09:29:19]New connection [09:29:19]New thread 3067338084 created [09:29:19]Thread 3067194724 joined [09:29:19]Waiting for new connection... [09:29:19] Sock 8.Parse request [09:29:19]Sock 8.Check first char [09:29:19]Sock 8.First char is OK [09:29:19]request: POST /json_proto HTTP/1.0 [09:29:19]Method: POST [09:29:19]URL: /json_proto [09:29:19]Method is POST - this is cgi request [09:29:19]url: /json_proto [09:29:19]query_string will be loaded in cgi processing [09:29:19]execute_cgi json_proto POST (null) [09:29:19]execute_cgi path=json_proto method=POST [09:29:19]POST find Content-Length [09:29:19]Host: 172.17.45.7:8080 [09:29:19]Content-Length: 677 [09:29:19]Content-Type: application/json [09:29:19] [09:29:19]POST finish read [09:29:19]Found Content-Length = 677 [09:29:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:29:19]execute_script... [09:29: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)950278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:29:19]POST & json_proto [09:29:19]process_json_proto [09:29:19]json parsed OK: [09:29:19]protocol is kg_v1.0 [09:29:19]action value=close_receipt [09:29:19]process_action close_receipt [09:29:19]cmd_close_receipt [09:29:19]MH_GetDate [09:29:19]Write to MH i2c: F0 00 00 73 15 77 [09:29:19]Write i2c OK [09:29:19]MH_I2C_Read... [09:29:19]Read from MH i2c: F0 [09:29:19]MH_I2C_Read... [09:29:19]Read from MH i2c: F0 09 00 [09:29:19]MH_I2C_Read... [09:29:19]Read from MH i2c: F0 09 00 73 15 00 F1 03 AA 66 90 0F 3E 66 C7 [09:29:19]GetLastDocTimeStamp 1722418137 [09:29:19]current date 1722418161 [09:29:19]FM_GetShiftState [09:29:19]SAM_PROTO_GetShiftState [09:29:19]wFMCommunicate request_size=4 [09:29:19]MH_SAM_APDU [09:29:19]CAPDU: 80 13 01 00 [09:29:19]Write to MH i2c: E2 08 00 74 15 80 13 01 00 00 00 00 00 06 [09:29:19]Write i2c OK [09:29:19]MH_I2C_Read... [09:29:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:20]Read from MH i2c: E2 [09:29:20]MH_I2C_Read... [09:29:20]Read from MH i2c: E2 0E 00 [09:29:20]MH_I2C_Read... [09:29:20]Read from MH i2c: E2 0E 00 74 15 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 9E [09:29:20]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:29:20]wFMCommunicate OK [09:29:20]SAM_PROTO_GetShiftState done [09:29:20]FM_GetShiftState done [09:29:20]opened in 1722384637 [09:29:20]opened+sec_in_day 1722471037 [09:29:20]quantity*price = 50036 [09:29:20]sum+1 = 50037 [09:29:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 82 31.07.2024 09:29 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119351 ФПД: 159706904854539 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T092921&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119351&fm=159706904854539&tin=02508201610067®Number=0000000000092660&sum=50000 [09:29:21]StoreToDocumentArchive [09:29:21]shift 436 fd 119351 [09:29:21]save to /storage/0436/doc_00119351 [09:29:21]save last doc name /storage/0436/doc_00119351 to /storage/kkm_last_doc_name [09:29:21]save OK [09:29:21]Clear old archive folders... [09:29:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:29:21]tlvbuf is B6E06190 [09:29:21]SAM_PROTO_ClearQueue [09:29:21]wFMCommunicate request_size=4 [09:29:21]MH_SAM_APDU [09:29:21]CAPDU: 80 09 00 00 [09:29:21]Write to MH i2c: E2 08 00 81 15 80 09 00 00 00 00 00 00 08 [09:29:21]Write i2c OK [09:29:21]MH_I2C_Read... [09:29:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:29:21]Read from MH i2c: E2 [09:29:21]MH_I2C_Read... [09:29:21]Read from MH i2c: E2 03 00 [09:29:21]MH_I2C_Read... [09:29:21]Read from MH i2c: E2 03 00 81 15 00 90 00 0A [09:29:21]RAPDU: 90 00 [09:29:21]wFMCommunicate OK [09:29:21]SAM_PROTO_ClearQueue done [09:29:21]KKMCreateOFDPacket [09:29:21]OFDProtocolAddRootSTLVToBuf [09:29:21]FM_MakeSignedData [09:29:21]FM_MakeSignedData [09:29:21]SAM_PROTO_SignData [09:29:21]wFMCommunicate request_size=4 [09:29:21]MH_SAM_APDU [09:29:21]CAPDU: 80 0D 01 02 [09:29:21]Write to MH i2c: E2 08 00 82 15 80 0D 01 02 00 00 00 00 10 [09:29:21]Write i2c OK [09:29:21]MH_I2C_Read... [09:29:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:29:21]Read from MH i2c: E2 [09:29:21]MH_I2C_Read... [09:29:21]Read from MH i2c: E2 03 00 [09:29:21]MH_I2C_Read... [09:29:21]Read from MH i2c: E2 03 00 82 15 00 90 00 0B [09:29:21]RAPDU: 90 00 [09:29:21]wFMCommunicate OK [09:29:21]wFMCommunicate request_size=255 [09:29:21]MH_SAM_APDU [09:29: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 52 00 00 00 F4 03 04 00 F1 03 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 37 D2 01 00 35 04 06 00 91 [09:29:21]Write to MH i2c: E2 02 01 83 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 52 00 00 00 F4 03 04 00 F1 03 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 37 D2 01 00 35 04 06 00 91 00 00 3A [09:29:21]Write i2c OK [09:29:21]MH_I2C_Read... [09:29:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:21]Read from MH i2c: E2 [09:29:21]MH_I2C_Read... [09:29:21]Read from MH i2c: E2 03 00 [09:29:21]MH_I2C_Read... [09:29:21]Read from MH i2c: E2 03 00 83 15 00 90 00 0C [09:29:21]RAPDU: 90 00 [09:29:21]wFMCommunicate OK [09:29:21]wFMCommunicate request_size=10 [09:29:21]MH_SAM_APDU [09:29:21]CAPDU: 80 0D 02 02 05 40 A9 55 00 0B [09:29:21]Write to MH i2c: E2 0D 00 84 15 80 0D 02 02 05 00 40 A9 55 00 0B 00 00 66 [09:29:21]Write i2c OK [09:29:21]MH_I2C_Read... [09:29:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:21]Read from MH i2c: E2 [09:29:21]MH_I2C_Read... [09:29:21]Read from MH i2c: E2 03 00 [09:29:21]MH_I2C_Read... [09:29:21]Read from MH i2c: E2 03 00 84 15 00 90 00 0D [09:29:21]RAPDU: 90 00 [09:29:21]wFMCommunicate OK [09:29:21]wFMCommunicate request_size=4 [09:29:21]MH_SAM_APDU [09:29:21]CAPDU: 80 0D 03 02 [09:29:21]Write to MH i2c: E2 08 00 85 15 80 0D 03 02 00 00 00 00 15 [09:29:21]Write i2c OK [09:29:21]MH_I2C_Read... [09:29:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:29:21]Read from MH i2c: E2 [09:29:21]MH_I2C_Read... [09:29:21]Read from MH i2c: E2 0B 00 [09:29:21]MH_I2C_Read... [09:29:21]Read from MH i2c: E2 0B 00 85 15 00 13 83 EC C1 F6 C9 62 6B 90 00 E5 [09:29:21]RAPDU: 13 83 EC C1 F6 C9 62 6B 90 00 [09:29:21]wFMCommunicate OK [09:29:21]SAM_PROTO_SignData done [09:29:21]FM_MakeSignedData done [09:29:21]CreateOFDProtocolMessage [09:29:21]wFMCommunicate request_size=4 [09:29:21]MH_SAM_APDU [09:29:21]CAPDU: 80 11 00 00 [09:29:21]Write to MH i2c: E2 08 00 86 15 80 11 00 00 00 00 00 00 15 [09:29:21]Write i2c OK [09:29:21]MH_I2C_Read... [09:29:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:21]Read from MH i2c: E2 [09:29:21]MH_I2C_Read... [09:29:21]Read from MH i2c: E2 17 00 [09:29:21]MH_I2C_Read... [09:29:21]Read from MH i2c: E2 17 00 86 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 70 [09:29:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:29:21]wFMCommunicate OK [09:29:21]CreateOFDProtocolMessage done [09:29:21]OFDSenderStorePacket 119351 [09:29:21]StoreOFDPacket docnum=119351 [09:29:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 30 29 07 01 AF 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 52 00 00 00 F4 03 04 00 F1 03 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 37 D2 01 00 35 04 06 00 91 40 A9 55 00 0B 13 83 EC C1 F6 C9 62 6B [09:29:21]CheckFolder [09:29:21]dirname=/storage/ofd_packets [09:29:21]CheckFolder done [09:29:21]ProducePacketName [09:29:21]name=ofd_packets/00119351 [09:29:21]NVStorageSaveData ofd_packets/00119351 [09:29:21]File name is /storage/ofd_packets/00119351 [09:29:21]Write 301 bytes [09:29:21]NVStorageSaveData done [09:29:21]OFDSenderStorePacket done [09:29:21]KKMCreateOFDPacket done [09:29:21]NVStorageSaveData kkm_last_timestamp [09:29:21]File name is /storage/kkm_last_timestamp [09:29:21]Write 4 bytes [09:29:21]NVStorageSaveData done [09:29:21]ExternCall_PrintAddStr [09:29:21]wPrintStart [09:29:21]Write to MH i2c: 01 00 00 87 15 9C [09:29:21]Write i2c OK [09:29:21]MH_I2C_Read... [09:29:21]Read from MH i2c: 01 [09:29:21]MH_I2C_Read... [09:29:21]Read from MH i2c: 01 07 00 [09:29:21]MH_I2C_Read... [09:29:21]Read from MH i2c: 01 07 00 87 15 00 00 00 00 00 FF 0F B1 [09:29:21]RasterBufferAndPrint [09:29:21]line Счет N : (1)950278 [09:29:21]line ИНН: 02508201610067 [09:29:21]line Контрольно-Кассовый Чек [09:29:21]line ПРОДАЖА [09:29:21]line ТРК (МРК, ГНК) : 41 [09:29:21]line Товар: 2710124130 [09:29:21]line Аи-92-К-4 [09:29:21]line 7.380 * 67.80 [09:29:21]line = 500.36 [09:29:21]line НДС 12% НСП 1% [09:29:21]line > о реализуемом товаре [09:29:21]line ОКРУГЛЕНИЕ: -0.36 [09:29:21]line ИТОГО: 500.00 [09:29:21]line Внесено: 500.00 [09:29:21]line СДАЧА: 0.00 [09:29:21]line НСП 1% : 4.43 [09:29:21]line НДС 12% : 53.14 [09:29:21]line Наличными: 500.00 [09:29:21]line Безнал.: 0.00 [09:29:21]line Место: АЗС № 134 "Партнер Нефть" [09:29:21]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:29:21]line СНО: Общий режим [09:29:21]line Чек 82 31.07.2024 09:29 [09:29:21]line Смена: 436 ФФД: 1.0 [09:29:21]line ЗНМ: 0300000044 [09:29:21]line РНМ: 0000000000092660 [09:29:21]line Версия ККМ: 001 [09:29:21]line ФМ: 0000000000874939 [09:29:21]line ФД: 119351 [09:29:21]line ФПД: 159706904854539 [09:29:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T092921&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119351&fm=159706904854539&tin=02508201610067®Number=0000000000092660&sum=50000 [09:29:21]written 0, free lines is 4095 [09:29:21]OFD Sender: Processing packet 119351 [packets to send 86, broken 85] [09:29:21]ProducePacketName [09:29:21]name=ofd_packets/00119351 [09:29:22]OFD Sender: To server: pG, [09:29:22]CommunicateWithHost lk.salyk.kg:30040 [09:29:22]ConnectInit lk.salyk.kg [09:29:22]Connected sock=10 [09:29: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 39 33 39 0F 01 00 00 30 29 07 01 AF 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 52 00 00 00 F4 03 04 00 F1 03 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 37 D2 01 00 35 04 06 00 91 40 A9 55 00 0B 13 83 EC C1 F6 C9 62 6B [09:29:22]Write to MH i2c: 01 00 00 B1 15 C6 [09:29:22]Write i2c OK [09:29:22]MH_I2C_Read... [09:29:22]Read from MH i2c: 01 [09:29:22]MH_I2C_Read... [09:29:22]Read from MH i2c: 01 07 00 [09:29:22]MH_I2C_Read... [09:29:22]Read from MH i2c: 01 07 00 B1 15 00 00 00 00 00 F2 0C CB [09:29:22]RasterBufferAndPrint [09:29:22]line [09:29:22]line [09:29:22]line [09:29:22]line [09:29:22]line [09:29:22]written 0, free lines is 3322 [09:29:22]MH_Cut [09:29:22]Write to MH i2c: D1 01 00 B8 15 01 9F [09:29:22]Write i2c OK [09:29:22]MH_I2C_Read... [09:29:22]Read from MH i2c: D1 [09:29:22]MH_I2C_Read... [09:29:22]Read from MH i2c: D1 01 00 [09:29:22]MH_I2C_Read... [09:29:22]Read from MH i2c: D1 01 00 B8 15 00 9E [09:29:22]Write to MH i2c: 01 00 00 B9 15 CE [09:29:22]Write i2c OK [09:29:22]MH_I2C_Read... [09:29:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 2A BE 47 00 15 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 37 D2 01 00 F4 03 04 00 7A B1 A9 66 B6 04 01 00 00 A2 A4 B2 B9 D1 FE 9F 86 [09:29:22]CommunicateWithHost err = 0 [09:29:22]CheckOFDResponse [09:29:22]1017 (14) - 77093643461234 [09:29:22]1041 (16) - 0000000000874939 [09:29:22]1040 (4) - 119351 [09:29:22]1012 (4) - 31.07.2024 03:37 [09:29:22]1206 (1) - 0 [09:29:22]OFD Sender: Remove packet 119351 [09:29:22]ProducePacketName [09:29:22]name=ofd_packets/00119351 [09:29:22]NVStorageDeleteData [09:29:22]*** Cut start [09:29:22]*** Partial cut [09:29:22]*** CUTSNS_PIN = 1 [09:29:22]OFD Sender: No OFD packet to send [09:29:22]*** CUTSNS_PIN = 0 [09:29:23]*** Brake cut motor [09:29:23]Read from MH i2c: 01 [09:29:23]MH_I2C_Read... [09:29:23]*** Stop cut motor [09:29:23]*** Cut end [09:29:23]Read from MH i2c: 01 07 00 [09:29:23]MH_I2C_Read... [09:29:23]Read from MH i2c: 01 07 00 B9 15 00 00 00 00 00 FF 0F E3 [09:29:23]process_action close_receipt done [09:29:23]requested_data is exist [09:29:23]produce_requested_data [09:29:23]requested_item fm.sn is exist - process it [09:29:23]wFMCommunicate request_size=4 [09:29:23]MH_SAM_APDU [09:29:23]CAPDU: 80 11 00 00 [09:29:23]Write to MH i2c: E2 08 00 BA 15 80 11 00 00 00 00 00 00 49 [09:29:23]Write i2c OK [09:29:23]MH_I2C_Read... [09:29:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:23]Read from MH i2c: E2 [09:29:23]MH_I2C_Read... [09:29:23]Read from MH i2c: E2 17 00 [09:29:23]MH_I2C_Read... [09:29:23]Read from MH i2c: E2 17 00 BA 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A4 [09:29:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:29:23]wFMCommunicate OK [09:29:23]requested_item fd.num is exist - process it [09:29:23]SAM_PROTO_GetFieldsCounters [09:29:23]wFMCommunicate request_size=4 [09:29:23]MH_SAM_APDU [09:29:23]CAPDU: 80 13 00 00 [09:29:23]Write to MH i2c: E2 08 00 BB 15 80 13 00 00 00 00 00 00 4C [09:29:23]Write i2c OK [09:29:23]MH_I2C_Read... [09:29:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:29:23]Read from MH i2c: E2 [09:29:23]MH_I2C_Read... [09:29:23]Read from MH i2c: E2 62 00 [09:29:23]MH_I2C_Read... [09:29:23]Read from MH i2c: E2 62 00 BB 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 37 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [09:29:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 37 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:29:23]wFMCommunicate OK [09:29:23]SAM_PROTO_GetFieldsCounters done [09:29:23]requested_item shift.num is exist - process it [09:29:23]requested_item shift.opened is exist - process it [09:29:23]req_shift_opened [09:29:23]FM_GetShiftState [09:29:23]SAM_PROTO_GetShiftState [09:29:23]wFMCommunicate request_size=4 [09:29:23]MH_SAM_APDU [09:29:23]CAPDU: 80 13 01 00 [09:29:23]Write to MH i2c: E2 08 00 BC 15 80 13 01 00 00 00 00 00 4E [09:29:23]Write i2c OK [09:29:23]MH_I2C_Read... [09:29:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:23]Read from MH i2c: E2 [09:29:23]MH_I2C_Read... [09:29:23]Read from MH i2c: E2 0E 00 [09:29:23]MH_I2C_Read... [09:29:23]Read from MH i2c: E2 0E 00 BC 15 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 E6 [09:29:23]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:29:23]wFMCommunicate OK [09:29:23]SAM_PROTO_GetShiftState done [09:29:23]FM_GetShiftState done [09:29:23]req_shift_opened done [09:29:23]requested_item shift.open_date is exist - process it [09:29:23]req_shift_open_date [09:29:23]req_shift_open_date done [09:29:23]produce_requested_data done [09:29:23]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119351,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [09:29:23]process_action_free close_receipt [09:29:23]json_value_free [09:29:23]json_value_free done [09:29:23]process_json_proto returns [09:29:23]Send response to host [09:29:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119351,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [09:29:23]free response buf [09:29:23]execute_script done [09:29:23]execute_script returns [09:29:23]free content buf [09:29:23]Sock 8.Close socket [09:29:23]Sock 8.Thread stoped [09:29:27]OFD Sender: No OFD packet to send [09:29:32]OFD Sender: No OFD packet to send [09:29:37]OFD Sender: No OFD packet to send [09:29:42]OFD Sender: No OFD packet to send [09:29:43]accept exits with 9 [09:29:43]New connection [09:29:43]New thread 3067194724 created [09:29:43]Thread 3067338084 joined [09:29:43]Waiting for new connection... [09:29:43] Sock 9.Parse request [09:29:43]Sock 9.Check first char [09:29:43]Sock 9.First char is OK [09:29:43]request: POST /json_proto HTTP/1.0 [09:29:43]Method: POST [09:29:43]URL: /json_proto [09:29:43]Method is POST - this is cgi request [09:29:43]url: /json_proto [09:29:43]query_string will be loaded in cgi processing [09:29:43]execute_cgi json_proto POST (null) [09:29:43]execute_cgi path=json_proto method=POST [09:29:43]POST find Content-Length [09:29:43]Host: 172.17.45.7:8080 [09:29:43]Content-Length: 819 [09:29:43]Content-Type: application/json [09:29:43] [09:29:43]POST finish read [09:29:43]Found Content-Length = 819 [09:29:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:43]execute_script... [09:29: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)950276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:43]POST & json_proto [09:29:43]process_json_proto [09:29:43]json parsed OK: [09:29:43]protocol is kg_v1.0 [09:29:43]action value=close_receipt [09:29:43]process_action close_receipt [09:29:43]cmd_close_receipt [09:29:43]MH_GetDate [09:29:43]Write to MH i2c: F0 00 00 BD 15 C1 [09:29:43]Write i2c OK [09:29:43]MH_I2C_Read... [09:29:43]Read from MH i2c: F0 [09:29:43]MH_I2C_Read... [09:29:43]Read from MH i2c: F0 09 00 [09:29:43]MH_I2C_Read... [09:29:43]Read from MH i2c: F0 09 00 BD 15 00 09 04 AA 66 90 0F 3E 66 2A [09:29:43]GetLastDocTimeStamp 1722418161 [09:29:43]current date 1722418185 [09:29:43]FM_GetShiftState [09:29:43]SAM_PROTO_GetShiftState [09:29:43]wFMCommunicate request_size=4 [09:29:43]MH_SAM_APDU [09:29:43]CAPDU: 80 13 01 00 [09:29:43]Write to MH i2c: E2 08 00 BE 15 80 13 01 00 00 00 00 00 50 [09:29:43]Write i2c OK [09:29:43]MH_I2C_Read... [09:29:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:43]Read from MH i2c: E2 [09:29:43]MH_I2C_Read... [09:29:43]Read from MH i2c: E2 0E 00 [09:29:43]MH_I2C_Read... [09:29:43]Read from MH i2c: E2 0E 00 BE 15 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 E8 [09:29:43]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:29:43]wFMCommunicate OK [09:29:43]SAM_PROTO_GetShiftState done [09:29:43]FM_GetShiftState done [09:29:43]opened in 1722384637 [09:29:43]opened+sec_in_day 1722471037 [09:29:43]quantity*price = 300075 [09:29:43]sum+1 = 300077 [09:29:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 83 31.07.2024 09:29 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119352 ФПД: 116222113626235 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T092945&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119352&fm=116222113626235&tin=02508201610067®Number=0000000000092660&sum=300000 [09:29:44]StoreToDocumentArchive [09:29:44]shift 436 fd 119352 [09:29:44]save to /storage/0436/doc_00119352 [09:29:44]save last doc name /storage/0436/doc_00119352 to /storage/kkm_last_doc_name [09:29:44]save OK [09:29:44]Clear old archive folders... [09:29:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:29:44]tlvbuf is B6FB33F0 [09:29:44]SAM_PROTO_ClearQueue [09:29:44]wFMCommunicate request_size=4 [09:29:44]MH_SAM_APDU [09:29:44]CAPDU: 80 09 00 00 [09:29:44]Write to MH i2c: E2 08 00 CB 15 80 09 00 00 00 00 00 00 52 [09:29:44]Write i2c OK [09:29:44]MH_I2C_Read... [09:29:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:29:44]Read from MH i2c: E2 [09:29:44]MH_I2C_Read... [09:29:44]Read from MH i2c: E2 03 00 [09:29:44]MH_I2C_Read... [09:29:44]Read from MH i2c: E2 03 00 CB 15 00 90 00 54 [09:29:44]RAPDU: 90 00 [09:29:44]wFMCommunicate OK [09:29:44]SAM_PROTO_ClearQueue done [09:29:44]KKMCreateOFDPacket [09:29:44]OFDProtocolAddRootSTLVToBuf [09:29:44]FM_MakeSignedData [09:29:44]FM_MakeSignedData [09:29:44]SAM_PROTO_SignData [09:29:44]wFMCommunicate request_size=4 [09:29:44]MH_SAM_APDU [09:29:44]CAPDU: 80 0D 01 02 [09:29:44]Write to MH i2c: E2 08 00 CC 15 80 0D 01 02 00 00 00 00 5A [09:29:44]Write i2c OK [09:29:44]MH_I2C_Read... [09:29:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:29:44]Read from MH i2c: E2 [09:29:44]MH_I2C_Read... [09:29:44]Read from MH i2c: E2 03 00 [09:29:44]MH_I2C_Read... [09:29:44]Read from MH i2c: E2 03 00 CC 15 00 90 00 55 [09:29:44]RAPDU: 90 00 [09:29:44]wFMCommunicate OK [09:29:44]wFMCommunicate request_size=255 [09:29:44]MH_SAM_APDU [09:29:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 09 04 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 38 D2 01 00 35 04 06 00 69 B4 11 CC [09:29:44]Write to MH i2c: E2 02 01 CD 15 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 09 04 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 38 D2 01 00 35 04 06 00 69 B4 11 CC 00 00 4B [09:29:44]Write i2c OK [09:29:44]MH_I2C_Read... [09:29:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:45]Read from MH i2c: E2 [09:29:45]MH_I2C_Read... [09:29:45]Read from MH i2c: E2 03 00 [09:29:45]MH_I2C_Read... [09:29:45]Read from MH i2c: E2 03 00 CD 15 00 90 00 56 [09:29:45]RAPDU: 90 00 [09:29:45]wFMCommunicate OK [09:29:45]wFMCommunicate request_size=7 [09:29:45]MH_SAM_APDU [09:29:45]CAPDU: 80 0D 02 02 02 38 7B [09:29:45]Write to MH i2c: E2 0A 00 CE 15 80 0D 02 02 02 00 38 7B 00 00 14 [09:29:45]Write i2c OK [09:29:45]MH_I2C_Read... [09:29:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:45]Read from MH i2c: E2 [09:29:45]MH_I2C_Read... [09:29:45]Read from MH i2c: E2 03 00 [09:29:45]MH_I2C_Read... [09:29:45]Read from MH i2c: E2 03 00 CE 15 00 90 00 57 [09:29:45]RAPDU: 90 00 [09:29:45]wFMCommunicate OK [09:29:45]wFMCommunicate request_size=4 [09:29:45]MH_SAM_APDU [09:29:45]CAPDU: 80 0D 03 02 [09:29:45]Write to MH i2c: E2 08 00 CF 15 80 0D 03 02 00 00 00 00 5F [09:29:45]Write i2c OK [09:29:45]MH_I2C_Read... [09:29:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:29:45]Read from MH i2c: E2 [09:29:45]MH_I2C_Read... [09:29:45]Read from MH i2c: E2 0B 00 [09:29:45]MH_I2C_Read... [09:29:45]Read from MH i2c: E2 0B 00 CF 15 00 BC 5C DB 77 77 41 65 13 90 00 FA [09:29:45]RAPDU: BC 5C DB 77 77 41 65 13 90 00 [09:29:45]wFMCommunicate OK [09:29:45]SAM_PROTO_SignData done [09:29:45]FM_MakeSignedData done [09:29:45]CreateOFDProtocolMessage [09:29:45]wFMCommunicate request_size=4 [09:29:45]MH_SAM_APDU [09:29:45]CAPDU: 80 11 00 00 [09:29:45]Write to MH i2c: E2 08 00 D0 15 80 11 00 00 00 00 00 00 5F [09:29:45]Write i2c OK [09:29:45]MH_I2C_Read... [09:29:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:45]Read from MH i2c: E2 [09:29:45]MH_I2C_Read... [09:29:45]Read from MH i2c: E2 17 00 [09:29:45]MH_I2C_Read... [09:29:45]Read from MH i2c: E2 17 00 D0 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BA [09:29:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:29:45]wFMCommunicate OK [09:29:45]CreateOFDProtocolMessage done [09:29:45]OFDSenderStorePacket 119352 [09:29:45]StoreOFDPacket docnum=119352 [09:29:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 3D 14 04 01 A4 70 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 09 04 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 38 D2 01 00 35 04 06 00 69 B4 11 CC 38 7B BC 5C DB 77 77 41 65 13 [09:29:45]CheckFolder [09:29:45]dirname=/storage/ofd_packets [09:29:45]CheckFolder done [09:29:45]ProducePacketName [09:29:45]name=ofd_packets/00119352 [09:29:45]NVStorageSaveData ofd_packets/00119352 [09:29:45]File name is /storage/ofd_packets/00119352 [09:29:45]Write 298 bytes [09:29:45]NVStorageSaveData done [09:29:45]OFDSenderStorePacket done [09:29:45]KKMCreateOFDPacket done [09:29:45]NVStorageSaveData kkm_last_timestamp [09:29:45]File name is /storage/kkm_last_timestamp [09:29:45]Write 4 bytes [09:29:45]NVStorageSaveData done [09:29:45]ExternCall_PrintAddStr [09:29:45]wPrintStart [09:29:45]Write to MH i2c: 01 00 00 D1 15 E6 [09:29:45]Write i2c OK [09:29:45]MH_I2C_Read... [09:29:45]Read from MH i2c: 01 [09:29:45]MH_I2C_Read... [09:29:45]Read from MH i2c: 01 07 00 [09:29:45]MH_I2C_Read... [09:29:45]Read from MH i2c: 01 07 00 D1 15 00 00 00 00 00 FF 0F FB [09:29:45]RasterBufferAndPrint [09:29:45]line Счет N : (1)950276 [09:29:45]line ИНН: 02508201610067 [09:29:45]line Контрольно-Кассовый Чек [09:29:45]line ПРОДАЖА [09:29:45]line ТРК (МРК, ГНК) : 21 [09:29:45]line Товар: 2710194800 [09:29:45]line ДТ-К-5 [09:29:45]line 39.380 * 76.20 [09:29:45]line = 3000.76 [09:29:45]line НДС 12% НСП 1% [09:29:45]line > о реализуемом товаре [09:29:45]line ОКРУГЛЕНИЕ: -0.76 [09:29:45]line ИТОГО: 3000.00 [09:29:45]line НСП 1% : 26.55 [09:29:45]line НДС 12% : 318.66 [09:29:45]line Наличными: 0.00 [09:29:45]line Безнал.: 3000.00 [09:29:45]line Место: АЗС № 134 "Партнер Нефть" [09:29:45]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:29:45]line СНО: Общий режим [09:29:45]line Чек 83 31.07.2024 09:29 [09:29:45]line Смена: 436 ФФД: 1.0 [09:29:45]line ЗНМ: 0300000044 [09:29:45]line РНМ: 0000000000092660 [09:29:45]line Версия ККМ: 001 [09:29:45]line Платежная система: O! деньги [09:29:45]line ФМ: 0000000000874939 [09:29:45]line ФД: 119352 [09:29:45]line ФПД: 116222113626235 [09:29:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T092945&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119352&fm=116222113626235&tin=02508201610067®Number=0000000000092660&sum=300000 [09:29:45]written 0, free lines is 4095 [09:29:45]OFD Sender: Processing packet 119352 [packets to send 86, broken 85] [09:29:45]ProducePacketName [09:29:45]name=ofd_packets/00119352 [09:29:45]OFD Sender: To server: pG, [09:29:45]CommunicateWithHost lk.salyk.kg:30040 [09:29:45]ConnectInit lk.salyk.kg [09:29:45]Connected sock=10 [09:29: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 39 33 39 0C 01 00 00 3D 14 04 01 A4 70 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 09 04 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 38 D2 01 00 35 04 06 00 69 B4 11 CC 38 7B BC 5C DB 77 77 41 65 13 [09:29:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 38 ED 47 00 23 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 38 D2 01 00 F4 03 04 00 92 B1 A9 66 B6 04 01 00 00 8D 9D 7A B1 4D 73 AB A0 [09:29:45]CommunicateWithHost err = 0 [09:29:45]CheckOFDResponse [09:29:45]1017 (14) - 77093643461234 [09:29:45]1041 (16) - 0000000000874939 [09:29:45]1040 (4) - 119352 [09:29:45]1012 (4) - 31.07.2024 03:37 [09:29:45]1206 (1) - 0 [09:29:45]OFD Sender: Remove packet 119352 [09:29:45]ProducePacketName [09:29:45]name=ofd_packets/00119352 [09:29:45]NVStorageDeleteData [09:29:45]Write to MH i2c: 01 00 00 FB 15 10 [09:29:45]Write i2c OK [09:29:45]MH_I2C_Read... [09:29:45]Read from MH i2c: 01 [09:29:45]MH_I2C_Read... [09:29:45]Read from MH i2c: 01 07 00 [09:29:45]MH_I2C_Read... [09:29:45]Read from MH i2c: 01 07 00 FB 15 00 00 00 00 00 F4 0C 17 [09:29:45]RasterBufferAndPrint [09:29:45]line [09:29:45]line [09:29:45]line [09:29:45]line [09:29:45]line [09:29:45]written 0, free lines is 3323 [09:29:45]MH_Cut [09:29:45]Write to MH i2c: D1 01 00 02 16 01 EA [09:29:45]Write i2c OK [09:29:45]MH_I2C_Read... [09:29:45]Read from MH i2c: D1 [09:29:45]MH_I2C_Read... [09:29:45]Read from MH i2c: D1 01 00 [09:29:45]MH_I2C_Read... [09:29:45]Read from MH i2c: D1 01 00 02 16 00 E9 [09:29:45]Write to MH i2c: 01 00 00 03 16 19 [09:29:45]Write i2c OK [09:29:45]MH_I2C_Read... [09:29:46]OFD Sender: No OFD packet to send [09:29:46]*** Cut start [09:29:46]*** Partial cut [09:29:46]*** CUTSNS_PIN = 1 [09:29:46]*** CUTSNS_PIN = 0 [09:29:46]*** Brake cut motor [09:29:46]Read from MH i2c: 01 [09:29:46]MH_I2C_Read... [09:29:46]*** Stop cut motor [09:29:46]*** Cut end [09:29:46]Read from MH i2c: 01 07 00 [09:29:46]MH_I2C_Read... [09:29:46]Read from MH i2c: 01 07 00 03 16 00 00 00 00 00 FF 0F 2E [09:29:46]process_action close_receipt done [09:29:46]requested_data is exist [09:29:46]produce_requested_data [09:29:46]requested_item fm.sn is exist - process it [09:29:46]wFMCommunicate request_size=4 [09:29:46]MH_SAM_APDU [09:29:46]CAPDU: 80 11 00 00 [09:29:46]Write to MH i2c: E2 08 00 04 16 80 11 00 00 00 00 00 00 94 [09:29:46]Write i2c OK [09:29:46]MH_I2C_Read... [09:29:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:47]Read from MH i2c: E2 [09:29:47]MH_I2C_Read... [09:29:47]Read from MH i2c: E2 17 00 [09:29:47]MH_I2C_Read... [09:29:47]Read from MH i2c: E2 17 00 04 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EF [09:29:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:29:47]wFMCommunicate OK [09:29:47]requested_item fd.num is exist - process it [09:29:47]SAM_PROTO_GetFieldsCounters [09:29:47]wFMCommunicate request_size=4 [09:29:47]MH_SAM_APDU [09:29:47]CAPDU: 80 13 00 00 [09:29:47]Write to MH i2c: E2 08 00 05 16 80 13 00 00 00 00 00 00 97 [09:29:47]Write i2c OK [09:29:47]MH_I2C_Read... [09:29:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:29:47]Read from MH i2c: E2 [09:29:47]MH_I2C_Read... [09:29:47]Read from MH i2c: E2 62 00 [09:29:47]MH_I2C_Read... [09:29:47]Read from MH i2c: E2 62 00 05 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 38 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [09:29: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 38 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:29:47]wFMCommunicate OK [09:29:47]SAM_PROTO_GetFieldsCounters done [09:29:47]requested_item shift.num is exist - process it [09:29:47]requested_item shift.opened is exist - process it [09:29:47]req_shift_opened [09:29:47]FM_GetShiftState [09:29:47]SAM_PROTO_GetShiftState [09:29:47]wFMCommunicate request_size=4 [09:29:47]MH_SAM_APDU [09:29:47]CAPDU: 80 13 01 00 [09:29:47]Write to MH i2c: E2 08 00 06 16 80 13 01 00 00 00 00 00 99 [09:29:47]Write i2c OK [09:29:47]MH_I2C_Read... [09:29:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:47]Read from MH i2c: E2 [09:29:47]MH_I2C_Read... [09:29:47]Read from MH i2c: E2 0E 00 [09:29:47]MH_I2C_Read... [09:29:47]Read from MH i2c: E2 0E 00 06 16 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 31 [09:29:47]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:29:47]wFMCommunicate OK [09:29:47]SAM_PROTO_GetShiftState done [09:29:47]FM_GetShiftState done [09:29:47]req_shift_opened done [09:29:47]requested_item shift.open_date is exist - process it [09:29:47]req_shift_open_date [09:29:47]req_shift_open_date done [09:29:47]produce_requested_data done [09:29:47]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119352,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [09:29:47]process_action_free close_receipt [09:29:47]json_value_free [09:29:47]json_value_free done [09:29:47]process_json_proto returns [09:29:47]Send response to host [09:29:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119352,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [09:29:47]free response buf [09:29:47]execute_script done [09:29:47]execute_script returns [09:29:47]free content buf [09:29:47]Sock 9.Close socket [09:29:47]Sock 9.Thread stoped [09:29:51]OFD Sender: No OFD packet to send [09:29:55]accept exits with 8 [09:29:55]New connection [09:29:55]New thread 3067338084 created [09:29:55]Thread 3067194724 joined [09:29:55]Waiting for new connection... [09:29:55] Sock 8.Parse request [09:29:55]Sock 8.Check first char [09:29:55]Sock 8.First char is OK [09:29:55]request: POST /json_proto HTTP/1.0 [09:29:55]Method: POST [09:29:55]URL: /json_proto [09:29:55]Method is POST - this is cgi request [09:29:55]url: /json_proto [09:29:55]query_string will be loaded in cgi processing [09:29:55]execute_cgi json_proto POST (null) [09:29:55]execute_cgi path=json_proto method=POST [09:29:55]POST find Content-Length [09:29:55]Host: 172.17.45.7:8080 [09:29:55]Content-Length: 677 [09:29:55]Content-Type: application/json [09:29:55] [09:29:55]POST finish read [09:29:55]Found Content-Length = 677 [09:29:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:55]execute_script... [09:29: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)950279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:55]POST & json_proto [09:29:55]process_json_proto [09:29:55]json parsed OK: [09:29:55]protocol is kg_v1.0 [09:29:55]action value=close_receipt [09:29:55]process_action close_receipt [09:29:55]cmd_close_receipt [09:29:55]MH_GetDate [09:29:55]Write to MH i2c: F0 00 00 07 16 0C [09:29:55]Write i2c OK [09:29:55]MH_I2C_Read... [09:29:55]Read from MH i2c: F0 [09:29:55]MH_I2C_Read... [09:29:55]Read from MH i2c: F0 09 00 [09:29:55]MH_I2C_Read... [09:29:55]Read from MH i2c: F0 09 00 07 16 00 15 04 AA 66 90 0F 3E 66 81 [09:29:55]GetLastDocTimeStamp 1722418185 [09:29:55]current date 1722418197 [09:29:55]FM_GetShiftState [09:29:55]SAM_PROTO_GetShiftState [09:29:55]wFMCommunicate request_size=4 [09:29:55]MH_SAM_APDU [09:29:55]CAPDU: 80 13 01 00 [09:29:55]Write to MH i2c: E2 08 00 08 16 80 13 01 00 00 00 00 00 9B [09:29:55]Write i2c OK [09:29:55]MH_I2C_Read... [09:29:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:55]Read from MH i2c: E2 [09:29:55]MH_I2C_Read... [09:29:55]Read from MH i2c: E2 0E 00 [09:29:55]MH_I2C_Read... [09:29:55]Read from MH i2c: E2 0E 00 08 16 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 33 [09:29:55]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:29:55]wFMCommunicate OK [09:29:55]SAM_PROTO_GetShiftState done [09:29:55]FM_GetShiftState done [09:29:55]opened in 1722384637 [09:29:55]opened+sec_in_day 1722471037 [09:29:55]quantity*price = 40002 [09:29:55]sum+1 = 40003 [09:29:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 84 31.07.2024 09:29 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119353 ФПД: 6817530506319 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T092957&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119353&fm=6817530506319&tin=02508201610067®Number=0000000000092660&sum=40000 [09:29:57]StoreToDocumentArchive [09:29:57]shift 436 fd 119353 [09:29:57]save to /storage/0436/doc_00119353 [09:29:57]save last doc name /storage/0436/doc_00119353 to /storage/kkm_last_doc_name [09:29:57]save OK [09:29:57]Clear old archive folders... [09:29:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:29:57]tlvbuf is B6F1F510 [09:29:57]SAM_PROTO_ClearQueue [09:29:57]wFMCommunicate request_size=4 [09:29:57]MH_SAM_APDU [09:29:57]CAPDU: 80 09 00 00 [09:29:57]Write to MH i2c: E2 08 00 15 16 80 09 00 00 00 00 00 00 9D [09:29:57]Write i2c OK [09:29:57]MH_I2C_Read... [09:29:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:29:57]Read from MH i2c: E2 [09:29:57]MH_I2C_Read... [09:29:57]Read from MH i2c: E2 03 00 [09:29:57]MH_I2C_Read... [09:29:57]Read from MH i2c: E2 03 00 15 16 00 90 00 9F [09:29:57]RAPDU: 90 00 [09:29:57]wFMCommunicate OK [09:29:57]SAM_PROTO_ClearQueue done [09:29:57]KKMCreateOFDPacket [09:29:57]OFDProtocolAddRootSTLVToBuf [09:29:57]FM_MakeSignedData [09:29:57]FM_MakeSignedData [09:29:57]SAM_PROTO_SignData [09:29:57]wFMCommunicate request_size=4 [09:29:57]MH_SAM_APDU [09:29:57]CAPDU: 80 0D 01 02 [09:29:57]Write to MH i2c: E2 08 00 16 16 80 0D 01 02 00 00 00 00 A5 [09:29:57]Write i2c OK [09:29:57]MH_I2C_Read... [09:29:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:29:57]Read from MH i2c: E2 [09:29:57]MH_I2C_Read... [09:29:57]Read from MH i2c: E2 03 00 [09:29:57]MH_I2C_Read... [09:29:57]Read from MH i2c: E2 03 00 16 16 00 90 00 A0 [09:29:57]RAPDU: 90 00 [09:29:57]wFMCommunicate OK [09:29:57]wFMCommunicate request_size=255 [09:29:57]MH_SAM_APDU [09:29:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 54 00 00 00 F4 03 04 00 15 04 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 39 D2 01 00 35 04 06 00 06 [09:29:57]Write to MH i2c: E2 02 01 17 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 54 00 00 00 F4 03 04 00 15 04 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 39 D2 01 00 35 04 06 00 06 00 00 52 [09:29:57]Write i2c OK [09:29:57]MH_I2C_Read... [09:29:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:57]Read from MH i2c: E2 [09:29:57]MH_I2C_Read... [09:29:57]Read from MH i2c: E2 03 00 [09:29:57]MH_I2C_Read... [09:29:57]Read from MH i2c: E2 03 00 17 16 00 90 00 A1 [09:29:57]RAPDU: 90 00 [09:29:57]wFMCommunicate OK [09:29:57]wFMCommunicate request_size=10 [09:29:57]MH_SAM_APDU [09:29:57]CAPDU: 80 0D 02 02 05 33 54 7B EC 4F [09:29:57]Write to MH i2c: E2 0D 00 18 16 80 0D 02 02 05 00 33 54 7B EC 4F 00 00 EF [09:29:57]Write i2c OK [09:29:57]MH_I2C_Read... [09:29:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:57]Read from MH i2c: E2 [09:29:57]MH_I2C_Read... [09:29:57]Read from MH i2c: E2 03 00 [09:29:57]MH_I2C_Read... [09:29:57]Read from MH i2c: E2 03 00 18 16 00 90 00 A2 [09:29:57]RAPDU: 90 00 [09:29:57]wFMCommunicate OK [09:29:57]wFMCommunicate request_size=4 [09:29:57]MH_SAM_APDU [09:29:57]CAPDU: 80 0D 03 02 [09:29:57]Write to MH i2c: E2 08 00 19 16 80 0D 03 02 00 00 00 00 AA [09:29:57]Write i2c OK [09:29:57]MH_I2C_Read... [09:29:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:29:57]Read from MH i2c: E2 [09:29:57]MH_I2C_Read... [09:29:57]Read from MH i2c: E2 0B 00 [09:29:57]MH_I2C_Read... [09:29:57]Read from MH i2c: E2 0B 00 19 16 00 7D A9 64 84 11 70 E2 1A 90 00 36 [09:29:57]RAPDU: 7D A9 64 84 11 70 E2 1A 90 00 [09:29:57]wFMCommunicate OK [09:29:57]SAM_PROTO_SignData done [09:29:57]FM_MakeSignedData done [09:29:57]CreateOFDProtocolMessage [09:29:57]wFMCommunicate request_size=4 [09:29:57]MH_SAM_APDU [09:29:57]CAPDU: 80 11 00 00 [09:29:57]Write to MH i2c: E2 08 00 1A 16 80 11 00 00 00 00 00 00 AA [09:29:57]Write i2c OK [09:29:57]MH_I2C_Read... [09:29:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:57]Read from MH i2c: E2 [09:29:57]MH_I2C_Read... [09:29:57]Read from MH i2c: E2 17 00 [09:29:57]MH_I2C_Read... [09:29:57]Read from MH i2c: E2 17 00 1A 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 05 [09:29:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:29:57]wFMCommunicate OK [09:29:57]CreateOFDProtocolMessage done [09:29:57]OFDSenderStorePacket 119353 [09:29:57]StoreOFDPacket docnum=119353 [09:29:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 33 64 07 01 E3 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 54 00 00 00 F4 03 04 00 15 04 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 39 D2 01 00 35 04 06 00 06 33 54 7B EC 4F 7D A9 64 84 11 70 E2 1A [09:29:57]CheckFolder [09:29:57]dirname=/storage/ofd_packets [09:29:57]CheckFolder done [09:29:57]ProducePacketName [09:29:57]name=ofd_packets/00119353 [09:29:57]NVStorageSaveData ofd_packets/00119353 [09:29:57]File name is /storage/ofd_packets/00119353 [09:29:57]Write 301 bytes [09:29:57]NVStorageSaveData done [09:29:57]OFDSenderStorePacket done [09:29:57]KKMCreateOFDPacket done [09:29:57]NVStorageSaveData kkm_last_timestamp [09:29:57]File name is /storage/kkm_last_timestamp [09:29:57]Write 4 bytes [09:29:57]NVStorageSaveData done [09:29:57]ExternCall_PrintAddStr [09:29:57]wPrintStart [09:29:57]Write to MH i2c: 01 00 00 1B 16 31 [09:29:57]Write i2c OK [09:29:57]MH_I2C_Read... [09:29:57]Read from MH i2c: 01 [09:29:57]MH_I2C_Read... [09:29:57]Read from MH i2c: 01 07 00 [09:29:57]MH_I2C_Read... [09:29:57]Read from MH i2c: 01 07 00 1B 16 00 00 00 00 00 FF 0F 46 [09:29:57]RasterBufferAndPrint [09:29:57]line Счет N : (1)950279 [09:29:57]line ИНН: 02508201610067 [09:29:57]line Контрольно-Кассовый Чек [09:29:57]line ПРОДАЖА [09:29:57]line ТРК (МРК, ГНК) : 61 [09:29:57]line Товар: 2710124130 [09:29:57]line Аи-92-К-4 [09:29:57]line 5.900 * 67.80 [09:29:57]line = 400.02 [09:29:57]line НДС 12% НСП 1% [09:29:57]line > о реализуемом товаре [09:29:57]line ОКРУГЛЕНИЕ: -0.02 [09:29:57]line ИТОГО: 400.00 [09:29:57]line Внесено: 400.00 [09:29:57]line СДАЧА: 0.00 [09:29:57]line НСП 1% : 3.54 [09:29:57]line НДС 12% : 42.48 [09:29:57]line Наличными: 400.00 [09:29:57]line Безнал.: 0.00 [09:29:57]line Место: АЗС № 134 "Партнер Нефть" [09:29:57]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:29:57]line СНО: Общий режим [09:29:57]line Чек 84 31.07.2024 09:29 [09:29:57]line Смена: 436 ФФД: 1.0 [09:29:57]line ЗНМ: 0300000044 [09:29:57]line РНМ: 0000000000092660 [09:29:57]line Версия ККМ: 001 [09:29:57]line ФМ: 0000000000874939 [09:29:57]line ФД: 119353 [09:29:57]line ФПД: 6817530506319 [09:29:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T092957&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119353&fm=6817530506319&tin=02508201610067®Number=0000000000092660&sum=40000 [09:29:57]written 0, free lines is 4095 [09:29:57]OFD Sender: Processing packet 119353 [packets to send 86, broken 85] [09:29:57]ProducePacketName [09:29:57]name=ofd_packets/00119353 [09:29:57]OFD Sender: To server: pG, [09:29:57]CommunicateWithHost lk.salyk.kg:30040 [09:29:57]ConnectInit lk.salyk.kg [09:29:58]Connected sock=10 [09:29:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 33 64 07 01 E3 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 54 00 00 00 F4 03 04 00 15 04 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 39 D2 01 00 35 04 06 00 06 33 54 7B EC 4F 7D A9 64 84 11 70 E2 1A [09:29:58]Write to MH i2c: 01 00 00 45 16 5B [09:29:58]Write i2c OK [09:29:58]MH_I2C_Read... [09:29:58]Read from MH i2c: 01 [09:29:58]MH_I2C_Read... [09:29:58]Read from MH i2c: 01 07 00 [09:29:58]MH_I2C_Read... [09:29:58]Read from MH i2c: 01 07 00 45 16 00 00 00 00 00 F3 0C 61 [09:29:58]RasterBufferAndPrint [09:29:58]line [09:29:58]line [09:29:58]line [09:29:58]line [09:29:58]line [09:29:58]written 0, free lines is 3323 [09:29:58]MH_Cut [09:29:58]Write to MH i2c: D1 01 00 4C 16 01 34 [09:29:58]Write i2c OK [09:29:58]MH_I2C_Read... [09:29:58]Read from MH i2c: D1 [09:29:58]MH_I2C_Read... [09:29:58]Read from MH i2c: D1 01 00 [09:29:58]MH_I2C_Read... [09:29:58]Read from MH i2c: D1 01 00 4C 16 00 33 [09:29:58]Write to MH i2c: 01 00 00 4D 16 63 [09:29:58]Write i2c OK [09:29:58]MH_I2C_Read... [09:29:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A2 48 47 00 16 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 39 33 39 10 04 04 00 39 D2 01 00 F4 03 04 00 9E B1 A9 66 B6 04 01 00 00 48 29 89 AA 22 08 CD D3 [09:29:58]CommunicateWithHost err = 0 [09:29:58]CheckOFDResponse [09:29:58]1017 (14) - 77093643461234 [09:29:58]1041 (16) - 0000000000874939 [09:29:58]1040 (4) - 119353 [09:29:58]1012 (4) - 31.07.2024 03:38 [09:29:58]1206 (1) - 0 [09:29:58]OFD Sender: Remove packet 119353 [09:29:58]ProducePacketName [09:29:58]name=ofd_packets/00119353 [09:29:58]NVStorageDeleteData [09:29:58]*** Cut start [09:29:58]*** Partial cut [09:29:58]*** CUTSNS_PIN = 1 [09:29:58]OFD Sender: No OFD packet to send [09:29:58]*** CUTSNS_PIN = 0 [09:29:58]*** Brake cut motor [09:29:59]Read from MH i2c: 01 *** Stop cut motor [09:29:59]*** Cut end [09:29:59] [09:29:59]MH_I2C_Read... [09:29:59]Read from MH i2c: 01 07 00 [09:29:59]MH_I2C_Read... [09:29:59]Read from MH i2c: 01 07 00 4D 16 00 00 00 00 00 FF 0F 78 [09:29:59]process_action close_receipt done [09:29:59]requested_data is exist [09:29:59]produce_requested_data [09:29:59]requested_item fm.sn is exist - process it [09:29:59]wFMCommunicate request_size=4 [09:29:59]MH_SAM_APDU [09:29:59]CAPDU: 80 11 00 00 [09:29:59]Write to MH i2c: E2 08 00 4E 16 80 11 00 00 00 00 00 00 DE [09:29:59]Write i2c OK [09:29:59]MH_I2C_Read... [09:29:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:59]Read from MH i2c: E2 [09:29:59]MH_I2C_Read... [09:29:59]Read from MH i2c: E2 17 00 [09:29:59]MH_I2C_Read... [09:29:59]Read from MH i2c: E2 17 00 4E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 39 [09:29:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:29:59]wFMCommunicate OK [09:29:59]requested_item fd.num is exist - process it [09:29:59]SAM_PROTO_GetFieldsCounters [09:29:59]wFMCommunicate request_size=4 [09:29:59]MH_SAM_APDU [09:29:59]CAPDU: 80 13 00 00 [09:29:59]Write to MH i2c: E2 08 00 4F 16 80 13 00 00 00 00 00 00 E1 [09:29:59]Write i2c OK [09:29:59]MH_I2C_Read... [09:29:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:29:59]Read from MH i2c: E2 [09:29:59]MH_I2C_Read... [09:29:59]Read from MH i2c: E2 62 00 [09:29:59]MH_I2C_Read... [09:29:59]Read from MH i2c: E2 62 00 4F 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 39 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [09:29: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 39 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:29:59]wFMCommunicate OK [09:29:59]SAM_PROTO_GetFieldsCounters done [09:29:59]requested_item shift.num is exist - process it [09:29:59]requested_item shift.opened is exist - process it [09:29:59]req_shift_opened [09:29:59]FM_GetShiftState [09:29:59]SAM_PROTO_GetShiftState [09:29:59]wFMCommunicate request_size=4 [09:29:59]MH_SAM_APDU [09:29:59]CAPDU: 80 13 01 00 [09:29:59]Write to MH i2c: E2 08 00 50 16 80 13 01 00 00 00 00 00 E3 [09:29:59]Write i2c OK [09:29:59]MH_I2C_Read... [09:29:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:59]Read from MH i2c: E2 [09:29:59]MH_I2C_Read... [09:29:59]Read from MH i2c: E2 0E 00 [09:29:59]MH_I2C_Read... [09:29:59]Read from MH i2c: E2 0E 00 50 16 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 7B [09:29:59]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:29:59]wFMCommunicate OK [09:29:59]SAM_PROTO_GetShiftState done [09:29:59]FM_GetShiftState done [09:29:59]req_shift_opened done [09:29:59]requested_item shift.open_date is exist - process it [09:29:59]req_shift_open_date [09:29:59]req_shift_open_date done [09:29:59]produce_requested_data done [09:29:59]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119353,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [09:29:59]process_action_free close_receipt [09:29:59]json_value_free [09:29:59]json_value_free done [09:29:59]process_json_proto returns [09:29:59]Send response to host [09:29:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119353,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [09:29:59]free response buf [09:29:59]execute_script done [09:29:59]execute_script returns [09:29:59]free content buf [09:29:59]Sock 8.Close socket [09:29:59]Sock 8.Thread stoped [09:30:03]OFD Sender: No OFD packet to send [09:30:08]OFD Sender: No OFD packet to send [09:30:13]OFD Sender: No OFD packet to send [09:30:18]OFD Sender: No OFD packet to send [09:30:23]OFD Sender: No OFD packet to send [09:30:28]OFD Sender: No OFD packet to send [09:30:33]OFD Sender: No OFD packet to send [09:30:38]OFD Sender: No OFD packet to send [09:30:43]OFD Sender: No OFD packet to send [09:30:48]OFD Sender: No OFD packet to send [09:30:53]OFD Sender: No OFD packet to send [09:30:58]OFD Sender: No OFD packet to send [09:31:03]OFD Sender: No OFD packet to send [09:31:08]OFD Sender: No OFD packet to send [09:31:13]OFD Sender: No OFD packet to send [09:31:18]OFD Sender: No OFD packet to send [09:31:23]OFD Sender: No OFD packet to send [09:31:28]OFD Sender: No OFD packet to send [09:31:33]OFD Sender: No OFD packet to send [09:31:38]OFD Sender: No OFD packet to send [09:31:43]OFD Sender: No OFD packet to send [09:31:48]OFD Sender: No OFD packet to send [09:31:53]OFD Sender: No OFD packet to send [09:31:56]accept exits with 9 [09:31:56]New connection [09:31:56]New thread 3067194724 created [09:31:56]Thread 3067338084 joined [09:31:56]Waiting for new connection... [09:31:56] Sock 9.Parse request [09:31:56]Sock 9.Check first char [09:31:56]Sock 9.First char is OK [09:31:56]request: POST /json_proto HTTP/1.0 [09:31:56]Method: POST [09:31:56]URL: /json_proto [09:31:56]Method is POST - this is cgi request [09:31:56]url: /json_proto [09:31:56]query_string will be loaded in cgi processing [09:31:56]execute_cgi json_proto POST (null) [09:31:56]execute_cgi path=json_proto method=POST [09:31:56]POST find Content-Length [09:31:56]Host: 172.17.45.7:8080 [09:31:56]Content-Length: 682 [09:31:56]Content-Type: application/json [09:31:56] [09:31:56]POST finish read [09:31:56]Found Content-Length = 682 [09:31:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:56]execute_script... [09:31:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:56]POST & json_proto [09:31:56]process_json_proto [09:31:56]json parsed OK: [09:31:56]protocol is kg_v1.0 [09:31:56]action value=close_receipt [09:31:56]process_action close_receipt [09:31:56]cmd_close_receipt [09:31:56]MH_GetDate [09:31:56]Write to MH i2c: F0 00 00 51 16 56 [09:31:56]Write i2c OK [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: F0 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: F0 09 00 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: F0 09 00 51 16 00 8E 04 AA 66 90 0F 3E 66 44 [09:31:56]GetLastDocTimeStamp 1722418197 [09:31:56]current date 1722418318 [09:31:56]FM_GetShiftState [09:31:56]SAM_PROTO_GetShiftState [09:31:56]wFMCommunicate request_size=4 [09:31:56]MH_SAM_APDU [09:31:56]CAPDU: 80 13 01 00 [09:31:56]Write to MH i2c: E2 08 00 52 16 80 13 01 00 00 00 00 00 E5 [09:31:56]Write i2c OK [09:31:56]MH_I2C_Read... [09:31:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:56]Read from MH i2c: E2 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: E2 0E 00 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: E2 0E 00 52 16 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 7D [09:31:56]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:31:56]wFMCommunicate OK [09:31:56]SAM_PROTO_GetShiftState done [09:31:56]FM_GetShiftState done [09:31:56]opened in 1722384637 [09:31:56]opened+sec_in_day 1722471037 [09:31:56]quantity*price = 100021 [09:31:56]sum+1 = 100023 [09:31:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 85 31.07.2024 09:31 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119354 ФПД: 8608248387030 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T093158&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119354&fm=8608248387030&tin=02508201610067®Number=0000000000092660&sum=100000 [09:31:57]StoreToDocumentArchive [09:31:57]shift 436 fd 119354 [09:31:57]save to /storage/0436/doc_00119354 [09:31:57]save last doc name /storage/0436/doc_00119354 to /storage/kkm_last_doc_name [09:31:57]save OK [09:31:57]Clear old archive folders... [09:31:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:31:57]tlvbuf is 00AC5080 [09:31:57]SAM_PROTO_ClearQueue [09:31:57]wFMCommunicate request_size=4 [09:31:57]MH_SAM_APDU [09:31:57]CAPDU: 80 09 00 00 [09:31:57]Write to MH i2c: E2 08 00 5F 16 80 09 00 00 00 00 00 00 E7 [09:31:57]Write i2c OK [09:31:57]MH_I2C_Read... [09:31:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:31:57]Read from MH i2c: E2 [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: E2 03 00 [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: E2 03 00 5F 16 00 90 00 E9 [09:31:57]RAPDU: 90 00 [09:31:57]wFMCommunicate OK [09:31:57]SAM_PROTO_ClearQueue done [09:31:57]KKMCreateOFDPacket [09:31:57]OFDProtocolAddRootSTLVToBuf [09:31:57]FM_MakeSignedData [09:31:57]FM_MakeSignedData [09:31:57]SAM_PROTO_SignData [09:31:57]wFMCommunicate request_size=4 [09:31:57]MH_SAM_APDU [09:31:57]CAPDU: 80 0D 01 02 [09:31:57]Write to MH i2c: E2 08 00 60 16 80 0D 01 02 00 00 00 00 EF [09:31:57]Write i2c OK [09:31:57]MH_I2C_Read... [09:31:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:31:57]Read from MH i2c: E2 [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: E2 03 00 [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: E2 03 00 60 16 00 90 00 EA [09:31:57]RAPDU: 90 00 [09:31:57]wFMCommunicate OK [09:31:57]wFMCommunicate request_size=255 [09:31:57]MH_SAM_APDU [09:31:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 8E 04 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3A D2 01 00 35 04 06 00 07 [09:31:57]Write to MH i2c: E2 02 01 61 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 8E 04 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3A D2 01 00 35 04 06 00 07 00 00 5F [09:31:57]Write i2c OK [09:31:57]MH_I2C_Read... [09:31:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:58]Read from MH i2c: E2 [09:31:58]MH_I2C_Read... [09:31:58]Read from MH i2c: E2 03 00 [09:31:58]MH_I2C_Read... [09:31:58]Read from MH i2c: E2 03 00 61 16 00 90 00 EB [09:31:58]RAPDU: 90 00 [09:31:58]wFMCommunicate OK [09:31:58]wFMCommunicate request_size=10 [09:31:58]MH_SAM_APDU [09:31:58]CAPDU: 80 0D 02 02 05 D4 43 96 55 D6 [09:31:58]Write to MH i2c: E2 0D 00 62 16 80 0D 02 02 05 00 D4 43 96 55 D6 00 00 D4 [09:31:58]Write i2c OK [09:31:58]MH_I2C_Read... [09:31:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:58]Read from MH i2c: E2 [09:31:58]MH_I2C_Read... [09:31:58]Read from MH i2c: E2 03 00 [09:31:58]MH_I2C_Read... [09:31:58]Read from MH i2c: E2 03 00 62 16 00 90 00 EC [09:31:58]RAPDU: 90 00 [09:31:58]wFMCommunicate OK [09:31:58]wFMCommunicate request_size=4 [09:31:58]MH_SAM_APDU [09:31:58]CAPDU: 80 0D 03 02 [09:31:58]Write to MH i2c: E2 08 00 63 16 80 0D 03 02 00 00 00 00 F4 [09:31:58]Write i2c OK [09:31:58]MH_I2C_Read... [09:31:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:31:58]Read from MH i2c: E2 [09:31:58]MH_I2C_Read... [09:31:58]Read from MH i2c: E2 0B 00 [09:31:58]MH_I2C_Read... [09:31:58]Read from MH i2c: E2 0B 00 63 16 00 1D B9 92 2E 67 C1 8C 9E 90 00 DD [09:31:58]RAPDU: 1D B9 92 2E 67 C1 8C 9E 90 00 [09:31:58]wFMCommunicate OK [09:31:58]SAM_PROTO_SignData done [09:31:58]FM_MakeSignedData done [09:31:58]CreateOFDProtocolMessage [09:31:58]wFMCommunicate request_size=4 [09:31:58]MH_SAM_APDU [09:31:58]CAPDU: 80 11 00 00 [09:31:58]Write to MH i2c: E2 08 00 64 16 80 11 00 00 00 00 00 00 F4 [09:31:58]Write i2c OK [09:31:58]MH_I2C_Read... [09:31:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:58]Read from MH i2c: E2 [09:31:58]MH_I2C_Read... [09:31:58]Read from MH i2c: E2 17 00 [09:31:58]MH_I2C_Read... [09:31:58]Read from MH i2c: E2 17 00 64 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4F [09:31:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:31:58]wFMCommunicate OK [09:31:58]CreateOFDProtocolMessage done [09:31:58]OFDSenderStorePacket 119354 [09:31:58]StoreOFDPacket docnum=119354 [09:31:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 67 1B 07 01 EE 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 8E 04 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3A D2 01 00 35 04 06 00 07 D4 43 96 55 D6 1D B9 92 2E 67 C1 8C 9E [09:31:58]CheckFolder [09:31:58]dirname=/storage/ofd_packets [09:31:58]CheckFolder done [09:31:58]ProducePacketName [09:31:58]name=ofd_packets/00119354 [09:31:58]NVStorageSaveData ofd_packets/00119354 [09:31:58]File name is /storage/ofd_packets/00119354 [09:31:58]Write 301 bytes [09:31:58]NVStorageSaveData done [09:31:58]OFDSenderStorePacket done [09:31:58]KKMCreateOFDPacket done [09:31:58]NVStorageSaveData kkm_last_timestamp [09:31:58]File name is /storage/kkm_last_timestamp [09:31:58]Write 4 bytes [09:31:58]NVStorageSaveData done [09:31:58]OFD Sender: Processing packet 119354 [packets to send 86, broken 85] [09:31:58]ProducePacketName [09:31:58]name=ofd_packets/00119354 [09:31:58]OFD Sender: To server: pG, [09:31:58]CommunicateWithHost lk.salyk.kg:30040 [09:31:58]ConnectInit lk.salyk.kg [09:31:58]ExternCall_PrintAddStr [09:31:58]wPrintStart [09:31:58]Write to MH i2c: 01 00 00 65 16 7B [09:31:58]Write i2c OK [09:31:58]MH_I2C_Read... [09:31:58]Read from MH i2c: 01 [09:31:58]MH_I2C_Read... [09:31:58]Read from MH i2c: 01 07 00 [09:31:58]MH_I2C_Read... [09:31:58]Read from MH i2c: 01 07 00 65 16 00 00 00 00 00 FF 0F 90 [09:31:58]RasterBufferAndPrint [09:31:58]line Счет N : (1)950280 [09:31:58]line ИНН: 02508201610067 [09:31:58]line Контрольно-Кассовый Чек [09:31:58]line ПРОДАЖА [09:31:58]line ТРК (МРК, ГНК) : 33 [09:31:58]line Товар: 2710124500 [09:31:58]line Аи-95-К-3 [09:31:58]line 13.480 * 74.20 [09:31:58]line = 1000.22 [09:31:58]line НДС 12% НСП 1% [09:31:58]line > о реализуемом товаре [09:31:58]line ОКРУГЛЕНИЕ: -0.22 [09:31:58]line ИТОГО: 1000.00 [09:31:58]line Внесено: 1000.00 [09:31:58]line СДАЧА: 0.00 [09:31:58]line НСП 1% : 8.85 [09:31:58]line НДС 12% : 106.22 [09:31:58]line Наличными: 1000.00 [09:31:58]line Безнал.: 0.00 [09:31:58]line Место: АЗС № 134 "Партнер Нефть" [09:31:58]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:31:58]line СНО: Общий режим [09:31:58]line Чек 85 31.07.2024 09:31 [09:31:58]line Смена: 436 ФФД: 1.0 [09:31:58]line ЗНМ: 0300000044 [09:31:58]line РНМ: 0000000000092660 [09:31:58]line Версия ККМ: 001 [09:31:58]line ФМ: 0000000000874939 [09:31:58]line ФД: 119354 [09:31:58]line ФПД: 8608248387030 [09:31:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T093158&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119354&fm=8608248387030&tin=02508201610067®Number=0000000000092660&sum=100000 [09:31:58]Connected sock=11 [09:31: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 39 33 39 0F 01 00 00 67 1B 07 01 EE 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 8E 04 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3A D2 01 00 35 04 06 00 07 D4 43 96 55 D6 1D B9 92 2E 67 C1 8C 9E [09:31:58]written 0, free lines is 4095 [09:31:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 C4 3C 47 00 16 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3A D2 01 00 F4 03 04 00 17 B2 A9 66 B6 04 01 00 00 E7 53 5B C3 13 D2 37 CB [09:31:58]CommunicateWithHost err = 0 [09:31:58]CheckOFDResponse [09:31:58]1017 (14) - 77093643461234 [09:31:58]1041 (16) - 0000000000874939 [09:31:58]1040 (4) - 119354 [09:31:58]1012 (4) - 31.07.2024 03:40 [09:31:58]1206 (1) - 0 [09:31:58]OFD Sender: Remove packet 119354 [09:31:58]ProducePacketName [09:31:58]name=ofd_packets/00119354 [09:31:58]NVStorageDeleteData [09:31:59]Write to MH i2c: 01 00 00 8F 16 A5 [09:31:59]Write i2c OK [09:31:59]MH_I2C_Read... [09:31:59]Read from MH i2c: 01 [09:31:59]MH_I2C_Read... [09:31:59]Read from MH i2c: 01 07 00 [09:31:59]MH_I2C_Read... [09:31:59]Read from MH i2c: 01 07 00 8F 16 00 00 00 00 00 EB 0C A3 [09:31:59]RasterBufferAndPrint [09:31:59]line [09:31:59]line [09:31:59]line [09:31:59]line [09:31:59]line [09:31:59]written 0, free lines is 3313 [09:31:59]MH_Cut [09:31:59]Write to MH i2c: D1 01 00 96 16 01 7E [09:31:59]Write i2c OK [09:31:59]MH_I2C_Read... [09:31:59]Read from MH i2c: D1 [09:31:59]MH_I2C_Read... [09:31:59]Read from MH i2c: D1 01 00 [09:31:59]MH_I2C_Read... [09:31:59]Read from MH i2c: D1 01 00 96 16 00 7D [09:31:59]Write to MH i2c: 01 00 00 97 16 AD [09:31:59]Write i2c OK [09:31:59]MH_I2C_Read... [09:31:59]OFD Sender: No OFD packet to send [09:31:59]*** Cut start [09:31:59]*** Partial cut [09:31:59]*** CUTSNS_PIN = 1 [09:31:59]*** CUTSNS_PIN = 0 [09:32:00]*** Brake cut motor [09:32:00]Read from MH i2c: 01 [09:32:00]MH_I2C_Read... [09:32:00]*** Stop cut motor [09:32:00]*** Cut end [09:32:00]Read from MH i2c: 01 07 00 [09:32:00]MH_I2C_Read... [09:32:00]Read from MH i2c: 01 07 00 97 16 00 00 00 00 00 FF 0F C2 [09:32:00]process_action close_receipt done [09:32:00]requested_data is exist [09:32:00]produce_requested_data [09:32:00]requested_item fm.sn is exist - process it [09:32:00]wFMCommunicate request_size=4 [09:32:00]MH_SAM_APDU [09:32:00]CAPDU: 80 11 00 00 [09:32:00]Write to MH i2c: E2 08 00 98 16 80 11 00 00 00 00 00 00 28 [09:32:00]Write i2c OK [09:32:00]MH_I2C_Read... [09:32:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:00]Read from MH i2c: E2 [09:32:00]MH_I2C_Read... [09:32:00]Read from MH i2c: E2 17 00 [09:32:00]MH_I2C_Read... [09:32:00]Read from MH i2c: E2 17 00 98 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 83 [09:32:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:32:00]wFMCommunicate OK [09:32:00]requested_item fd.num is exist - process it [09:32:00]SAM_PROTO_GetFieldsCounters [09:32:00]wFMCommunicate request_size=4 [09:32:00]MH_SAM_APDU [09:32:00]CAPDU: 80 13 00 00 [09:32:00]Write to MH i2c: E2 08 00 99 16 80 13 00 00 00 00 00 00 2B [09:32:00]Write i2c OK [09:32:00]MH_I2C_Read... [09:32:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:00]Read from MH i2c: E2 [09:32:00]MH_I2C_Read... [09:32:00]Read from MH i2c: E2 62 00 [09:32:00]MH_I2C_Read... [09:32:00]Read from MH i2c: E2 62 00 99 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3A D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [09:32:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3A D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:32:00]wFMCommunicate OK [09:32:00]SAM_PROTO_GetFieldsCounters done [09:32:00]requested_item shift.num is exist - process it [09:32:00]requested_item shift.opened is exist - process it [09:32:00]req_shift_opened [09:32:00]FM_GetShiftState [09:32:00]SAM_PROTO_GetShiftState [09:32:00]wFMCommunicate request_size=4 [09:32:00]MH_SAM_APDU [09:32:00]CAPDU: 80 13 01 00 [09:32:00]Write to MH i2c: E2 08 00 9A 16 80 13 01 00 00 00 00 00 2D [09:32:00]Write i2c OK [09:32:00]MH_I2C_Read... [09:32:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:00]Read from MH i2c: E2 [09:32:00]MH_I2C_Read... [09:32:00]Read from MH i2c: E2 0E 00 [09:32:00]MH_I2C_Read... [09:32:00]Read from MH i2c: E2 0E 00 9A 16 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 C5 [09:32:00]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:32:00]wFMCommunicate OK [09:32:00]SAM_PROTO_GetShiftState done [09:32:00]FM_GetShiftState done [09:32:00]req_shift_opened done [09:32:00]requested_item shift.open_date is exist - process it [09:32:00]req_shift_open_date [09:32:00]req_shift_open_date done [09:32:00]produce_requested_data done [09:32:00]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119354,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [09:32:00]process_action_free close_receipt [09:32:00]json_value_free [09:32:00]json_value_free done [09:32:00]process_json_proto returns [09:32:00]Send response to host [09:32:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119354,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [09:32:00]free response buf [09:32:00]execute_script done [09:32:00]execute_script returns [09:32:00]free content buf [09:32:00]Sock 9.Close socket [09:32:00]Sock 9.Thread stoped [09:32:04]OFD Sender: No OFD packet to send [09:32:09]OFD Sender: No OFD packet to send [09:32:14]OFD Sender: No OFD packet to send [09:32:19]OFD Sender: No OFD packet to send [09:32:24]OFD Sender: No OFD packet to send [09:32:29]OFD Sender: No OFD packet to send [09:32:34]OFD Sender: No OFD packet to send [09:32:39]OFD Sender: No OFD packet to send [09:32:44]OFD Sender: No OFD packet to send [09:32:49]OFD Sender: No OFD packet to send [09:32:54]OFD Sender: No OFD packet to send [09:32:59]OFD Sender: No OFD packet to send [09:33:04]OFD Sender: No OFD packet to send [09:33:09]OFD Sender: No OFD packet to send [09:33:14]OFD Sender: No OFD packet to send [09:33:19]OFD Sender: No OFD packet to send [09:33:24]OFD Sender: No OFD packet to send [09:33:29]OFD Sender: No OFD packet to send [09:33:34]OFD Sender: No OFD packet to send [09:33:39]OFD Sender: No OFD packet to send [09:33:44]OFD Sender: No OFD packet to send [09:33:49]OFD Sender: No OFD packet to send [09:33:54]OFD Sender: No OFD packet to send [09:33:59]OFD Sender: No OFD packet to send [09:34:04]OFD Sender: No OFD packet to send [09:34:09]OFD Sender: No OFD packet to send [09:34:14]OFD Sender: No OFD packet to send [09:34:18]accept exits with 8 [09:34:18]New connection [09:34:18]New thread 3067338084 created [09:34:18]Thread 3067194724 joined [09:34:18]Waiting for new connection... [09:34:18] Sock 8.Parse request [09:34:18]Sock 8.Check first char [09:34:18]Sock 8.First char is OK [09:34:18]request: POST /json_proto HTTP/1.0 [09:34:18]Method: POST [09:34:18]URL: /json_proto [09:34:18]Method is POST - this is cgi request [09:34:18]url: /json_proto [09:34:18]query_string will be loaded in cgi processing [09:34:18]execute_cgi json_proto POST (null) [09:34:18]execute_cgi path=json_proto method=POST [09:34:18]POST find Content-Length [09:34:18]Host: 172.17.45.7:8080 [09:34:18]Content-Length: 677 [09:34:18]Content-Type: application/json [09:34:18] [09:34:18]POST finish read [09:34:18]Found Content-Length = 677 [09:34:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:18]execute_script... [09:34:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:18]POST & json_proto [09:34:18]process_json_proto [09:34:18]json parsed OK: [09:34:18]protocol is kg_v1.0 [09:34:18]action value=close_receipt [09:34:18]process_action close_receipt [09:34:18]cmd_close_receipt [09:34:18]MH_GetDate [09:34:18]Write to MH i2c: F0 00 00 9B 16 A0 [09:34:18]Write i2c OK [09:34:18]MH_I2C_Read... [09:34:18]Read from MH i2c: F0 [09:34:18]MH_I2C_Read... [09:34:18]Read from MH i2c: F0 09 00 [09:34:18]MH_I2C_Read... [09:34:18]Read from MH i2c: F0 09 00 9B 16 00 1C 05 AA 66 90 0F 3E 66 1D [09:34:18]GetLastDocTimeStamp 1722418318 [09:34:18]current date 1722418460 [09:34:18]FM_GetShiftState [09:34:18]SAM_PROTO_GetShiftState [09:34:18]wFMCommunicate request_size=4 [09:34:18]MH_SAM_APDU [09:34:18]CAPDU: 80 13 01 00 [09:34:18]Write to MH i2c: E2 08 00 9C 16 80 13 01 00 00 00 00 00 2F [09:34:18]Write i2c OK [09:34:18]MH_I2C_Read... [09:34:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:19]Read from MH i2c: E2 [09:34:19]MH_I2C_Read... [09:34:19]Read from MH i2c: E2 0E 00 [09:34:19]MH_I2C_Read... [09:34:19]Read from MH i2c: E2 0E 00 9C 16 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 C7 [09:34:19]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:34:19]wFMCommunicate OK [09:34:19]SAM_PROTO_GetShiftState done [09:34:19]FM_GetShiftState done [09:34:19]opened in 1722384637 [09:34:19]opened+sec_in_day 1722471037 [09:34:19]quantity*price = 40002 [09:34:19]sum+1 = 40003 [09:34:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 86 31.07.2024 09:34 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119355 ФПД: 141949544554605 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T093420&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119355&fm=141949544554605&tin=02508201610067®Number=0000000000092660&sum=40000 [09:34:20]StoreToDocumentArchive [09:34:20]shift 436 fd 119355 [09:34:20]save to /storage/0436/doc_00119355 [09:34:20]save last doc name /storage/0436/doc_00119355 to /storage/kkm_last_doc_name [09:34:20]save OK [09:34:20]Clear old archive folders... [09:34:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:34:20]tlvbuf is 00B2CDA0 [09:34:20]SAM_PROTO_ClearQueue [09:34:20]wFMCommunicate request_size=4 [09:34:20]MH_SAM_APDU [09:34:20]CAPDU: 80 09 00 00 [09:34:20]Write to MH i2c: E2 08 00 A9 16 80 09 00 00 00 00 00 00 31 [09:34:20]Write i2c OK [09:34:20]MH_I2C_Read... [09:34:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:34:20]Read from MH i2c: E2 [09:34:20]MH_I2C_Read... [09:34:20]Read from MH i2c: E2 03 00 [09:34:20]MH_I2C_Read... [09:34:20]Read from MH i2c: E2 03 00 A9 16 00 90 00 33 [09:34:20]RAPDU: 90 00 [09:34:20]wFMCommunicate OK [09:34:20]SAM_PROTO_ClearQueue done [09:34:20]KKMCreateOFDPacket [09:34:20]OFDProtocolAddRootSTLVToBuf [09:34:20]FM_MakeSignedData [09:34:20]FM_MakeSignedData [09:34:20]SAM_PROTO_SignData [09:34:20]wFMCommunicate request_size=4 [09:34:20]MH_SAM_APDU [09:34:20]CAPDU: 80 0D 01 02 [09:34:20]Write to MH i2c: E2 08 00 AA 16 80 0D 01 02 00 00 00 00 39 [09:34:20]Write i2c OK [09:34:20]MH_I2C_Read... [09:34:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:34:20]Read from MH i2c: E2 [09:34:20]MH_I2C_Read... [09:34:20]Read from MH i2c: E2 03 00 [09:34:20]MH_I2C_Read... [09:34:20]Read from MH i2c: E2 03 00 AA 16 00 90 00 34 [09:34:20]RAPDU: 90 00 [09:34:20]wFMCommunicate OK [09:34:20]wFMCommunicate request_size=255 [09:34:20]MH_SAM_APDU [09:34: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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 56 00 00 00 F4 03 04 00 1C 05 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3B D2 01 00 35 04 06 00 81 [09:34:20]Write to MH i2c: E2 02 01 AB 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 56 00 00 00 F4 03 04 00 1C 05 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3B D2 01 00 35 04 06 00 81 00 00 6D [09:34:20]Write i2c OK [09:34:20]MH_I2C_Read... [09:34:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:20]Read from MH i2c: E2 [09:34:20]MH_I2C_Read... [09:34:20]Read from MH i2c: E2 03 00 [09:34:20]MH_I2C_Read... [09:34:20]Read from MH i2c: E2 03 00 AB 16 00 90 00 35 [09:34:20]RAPDU: 90 00 [09:34:20]wFMCommunicate OK [09:34:20]wFMCommunicate request_size=10 [09:34:20]MH_SAM_APDU [09:34:20]CAPDU: 80 0D 02 02 05 1A 34 2D E0 6D [09:34:20]Write to MH i2c: E2 0D 00 AC 16 80 0D 02 02 05 00 1A 34 2D E0 6D 00 00 0E [09:34:20]Write i2c OK [09:34:20]MH_I2C_Read... [09:34:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:20]Read from MH i2c: E2 [09:34:20]MH_I2C_Read... [09:34:20]Read from MH i2c: E2 03 00 [09:34:20]MH_I2C_Read... [09:34:20]Read from MH i2c: E2 03 00 AC 16 00 90 00 36 [09:34:20]RAPDU: 90 00 [09:34:20]wFMCommunicate OK [09:34:20]wFMCommunicate request_size=4 [09:34:20]MH_SAM_APDU [09:34:20]CAPDU: 80 0D 03 02 [09:34:20]Write to MH i2c: E2 08 00 AD 16 80 0D 03 02 00 00 00 00 3E [09:34:20]Write i2c OK [09:34:20]MH_I2C_Read... [09:34:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:34:20]Read from MH i2c: E2 [09:34:20]MH_I2C_Read... [09:34:20]Read from MH i2c: E2 0B 00 [09:34:20]MH_I2C_Read... [09:34:20]Read from MH i2c: E2 0B 00 AD 16 00 5E 62 13 43 F6 95 AE 0A 90 00 98 [09:34:20]RAPDU: 5E 62 13 43 F6 95 AE 0A 90 00 [09:34:20]wFMCommunicate OK [09:34:20]SAM_PROTO_SignData done [09:34:20]FM_MakeSignedData done [09:34:20]CreateOFDProtocolMessage [09:34:20]wFMCommunicate request_size=4 [09:34:20]MH_SAM_APDU [09:34:20]CAPDU: 80 11 00 00 [09:34:20]Write to MH i2c: E2 08 00 AE 16 80 11 00 00 00 00 00 00 3E [09:34:20]Write i2c OK [09:34:20]MH_I2C_Read... [09:34:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:20]Read from MH i2c: E2 [09:34:20]MH_I2C_Read... [09:34:20]Read from MH i2c: E2 17 00 [09:34:20]MH_I2C_Read... [09:34:20]Read from MH i2c: E2 17 00 AE 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 99 [09:34:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:34:20]wFMCommunicate OK [09:34:20]CreateOFDProtocolMessage done [09:34:20]OFDSenderStorePacket 119355 [09:34:20]StoreOFDPacket docnum=119355 [09:34:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 45 50 07 01 D0 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 56 00 00 00 F4 03 04 00 1C 05 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3B D2 01 00 35 04 06 00 81 1A 34 2D E0 6D 5E 62 13 43 F6 95 AE 0A [09:34:20]CheckFolder [09:34:20]dirname=/storage/ofd_packets [09:34:20]CheckFolder done [09:34:20]ProducePacketName [09:34:20]name=ofd_packets/00119355 [09:34:20]NVStorageSaveData ofd_packets/00119355 [09:34:20]File name is /storage/ofd_packets/00119355 [09:34:20]Write 301 bytes [09:34:20]NVStorageSaveData done [09:34:20]OFDSenderStorePacket done [09:34:20]KKMCreateOFDPacket done [09:34:20]NVStorageSaveData kkm_last_timestamp [09:34:20]File name is /storage/kkm_last_timestamp [09:34:20]Write 4 bytes [09:34:20]NVStorageSaveData done [09:34:20]ExternCall_PrintAddStr [09:34:20]wPrintStart [09:34:20]Write to MH i2c: 01 00 00 AF 16 C5 [09:34:20]Write i2c OK [09:34:20]MH_I2C_Read... [09:34:20]Read from MH i2c: 01 [09:34:20]MH_I2C_Read... [09:34:20]Read from MH i2c: 01 07 00 [09:34:20]MH_I2C_Read... [09:34:20]Read from MH i2c: 01 07 00 AF 16 00 00 00 00 00 FF 0F DA [09:34:20]RasterBufferAndPrint [09:34:20]line Счет N : (1)950281 [09:34:20]line ИНН: 02508201610067 [09:34:20]line Контрольно-Кассовый Чек [09:34:20]line ПРОДАЖА [09:34:20]line ТРК (МРК, ГНК) : 51 [09:34:20]line Товар: 2710124130 [09:34:20]line Аи-92-К-4 [09:34:20]line 5.900 * 67.80 [09:34:20]line = 400.02 [09:34:20]line НДС 12% НСП 1% [09:34:20]line > о реализуемом товаре [09:34:20]line ОКРУГЛЕНИЕ: -0.02 [09:34:20]line ИТОГО: 400.00 [09:34:20]line Внесено: 400.00 [09:34:20]line СДАЧА: 0.00 [09:34:20]line НСП 1% : 3.54 [09:34:20]line НДС 12% : 42.48 [09:34:20]line Наличными: 400.00 [09:34:20]line Безнал.: 0.00 [09:34:20]line Место: АЗС № 134 "Партнер Нефть" [09:34:20]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:34:20]line СНО: Общий режим [09:34:20]line Чек 86 31.07.2024 09:34 [09:34:20]line Смена: 436 ФФД: 1.0 [09:34:20]line ЗНМ: 0300000044 [09:34:20]line РНМ: 0000000000092660 [09:34:20]line Версия ККМ: 001 [09:34:20]line ФМ: 0000000000874939 [09:34:20]line ФД: 119355 [09:34:20]line ФПД: 141949544554605 [09:34:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T093420&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119355&fm=141949544554605&tin=02508201610067®Number=0000000000092660&sum=40000 [09:34:20]OFD Sender: Processing packet 119355 [packets to send 86, broken 85] [09:34:20]ProducePacketName [09:34:20]name=ofd_packets/00119355 [09:34:20]OFD Sender: To server: pG, [09:34:20]CommunicateWithHost lk.salyk.kg:30040 [09:34:20]ConnectInit lk.salyk.kg [09:34:20]written 0, free lines is 4095 [09:34:21]Connected sock=10 [09:34: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 39 33 39 0F 01 00 00 45 50 07 01 D0 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 56 00 00 00 F4 03 04 00 1C 05 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3B D2 01 00 35 04 06 00 81 1A 34 2D E0 6D 5E 62 13 43 F6 95 AE 0A [09:34:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 65 F2 47 00 F9 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 39 33 39 10 04 04 00 3B D2 01 00 F4 03 04 00 A5 B2 A9 66 B6 04 01 00 00 2C 78 C8 56 67 CC FE CB [09:34:21]CommunicateWithHost err = 0 [09:34:21]CheckOFDResponse [09:34:21]1017 (14) - 77093643461234 [09:34:21]1041 (16) - 0000000000874939 [09:34:21]1040 (4) - 119355 [09:34:21]1012 (4) - 31.07.2024 03:42 [09:34:21]1206 (1) - 0 [09:34:21]OFD Sender: Remove packet 119355 [09:34:21]ProducePacketName [09:34:21]name=ofd_packets/00119355 [09:34:21]NVStorageDeleteData [09:34:21]Write to MH i2c: 01 00 00 D9 16 EF [09:34:21]Write i2c OK [09:34:21]MH_I2C_Read... [09:34:21]Read from MH i2c: 01 [09:34:21]MH_I2C_Read... [09:34:21]Read from MH i2c: 01 07 00 [09:34:21]MH_I2C_Read... [09:34:21]Read from MH i2c: 01 07 00 D9 16 00 00 00 00 00 DE 0C E0 [09:34:21]RasterBufferAndPrint [09:34:21]line [09:34:21]line [09:34:21]line [09:34:21]line [09:34:21]line [09:34:21]written 0, free lines is 3300 [09:34:21]MH_Cut [09:34:21]Write to MH i2c: D1 01 00 E0 16 01 C8 [09:34:21]Write i2c OK [09:34:21]MH_I2C_Read... [09:34:21]Read from MH i2c: D1 [09:34:21]MH_I2C_Read... [09:34:21]Read from MH i2c: D1 01 00 [09:34:21]MH_I2C_Read... [09:34:21]Read from MH i2c: D1 01 00 E0 16 00 C7 [09:34:21]Write to MH i2c: 01 00 00 E1 16 F7 [09:34:21]Write i2c OK [09:34:21]MH_I2C_Read... [09:34:21]OFD Sender: No OFD packet to send [09:34:22]*** Cut start [09:34:22]*** Partial cut [09:34:22]*** CUTSNS_PIN = 1 [09:34:22]*** CUTSNS_PIN = 0 [09:34:22]*** Brake cut motor [09:34:22]Read from MH i2c: 01 [09:34:22]MH_I2C_Read... [09:34:22]*** Stop cut motor [09:34:22]*** Cut end [09:34:22]Read from MH i2c: 01 07 00 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: 01 07 00 E1 16 00 00 00 00 00 FF 0F 0C [09:34:22]process_action close_receipt done [09:34:22]requested_data is exist [09:34:22]produce_requested_data [09:34:22]requested_item fm.sn is exist - process it [09:34:22]wFMCommunicate request_size=4 [09:34:22]MH_SAM_APDU [09:34:22]CAPDU: 80 11 00 00 [09:34:22]Write to MH i2c: E2 08 00 E2 16 80 11 00 00 00 00 00 00 72 [09:34:22]Write i2c OK [09:34:22]MH_I2C_Read... [09:34:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:22]Read from MH i2c: E2 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: E2 17 00 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: E2 17 00 E2 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CD [09:34:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:34:22]wFMCommunicate OK [09:34:22]requested_item fd.num is exist - process it [09:34:22]SAM_PROTO_GetFieldsCounters [09:34:22]wFMCommunicate request_size=4 [09:34:22]MH_SAM_APDU [09:34:22]CAPDU: 80 13 00 00 [09:34:22]Write to MH i2c: E2 08 00 E3 16 80 13 00 00 00 00 00 00 75 [09:34:22]Write i2c OK [09:34:22]MH_I2C_Read... [09:34:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:34:22]Read from MH i2c: E2 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: E2 62 00 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: E2 62 00 E3 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3B D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [09: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3B D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:34:22]wFMCommunicate OK [09:34:22]SAM_PROTO_GetFieldsCounters done [09:34:22]requested_item shift.num is exist - process it [09:34:22]requested_item shift.opened is exist - process it [09:34:22]req_shift_opened [09:34:22]FM_GetShiftState [09:34:22]SAM_PROTO_GetShiftState [09:34:22]wFMCommunicate request_size=4 [09:34:22]MH_SAM_APDU [09:34:22]CAPDU: 80 13 01 00 [09:34:22]Write to MH i2c: E2 08 00 E4 16 80 13 01 00 00 00 00 00 77 [09:34:22]Write i2c OK [09:34:22]MH_I2C_Read... [09:34:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:22]Read from MH i2c: E2 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: E2 0E 00 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: E2 0E 00 E4 16 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 0F [09:34:22]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:34:23]wFMCommunicate OK [09:34:23]SAM_PROTO_GetShiftState done [09:34:23]FM_GetShiftState done [09:34:23]req_shift_opened done [09:34:23]requested_item shift.open_date is exist - process it [09:34:23]req_shift_open_date [09:34:23]req_shift_open_date done [09:34:23]produce_requested_data done [09:34:23]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119355,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [09:34:23]process_action_free close_receipt [09:34:23]json_value_free [09:34:23]json_value_free done [09:34:23]process_json_proto returns [09:34:23]Send response to host [09:34:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119355,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [09:34:23]free response buf [09:34:23]execute_script done [09:34:23]execute_script returns [09:34:23]free content buf [09:34:23]Sock 8.Close socket [09:34:23]Sock 8.Thread stoped [09:34:26]OFD Sender: No OFD packet to send [09:34:31]OFD Sender: No OFD packet to send [09:34:36]OFD Sender: No OFD packet to send [09:34:41]OFD Sender: No OFD packet to send [09:34:46]OFD Sender: No OFD packet to send [09:34:51]OFD Sender: No OFD packet to send [09:34:56]OFD Sender: No OFD packet to send [09:35:01]OFD Sender: No OFD packet to send [09:35:06]OFD Sender: No OFD packet to send [09:35:11]OFD Sender: No OFD packet to send [09:35:16]OFD Sender: No OFD packet to send [09:35:21]OFD Sender: No OFD packet to send [09:35:26]OFD Sender: No OFD packet to send [09:35:31]OFD Sender: No OFD packet to send [09:35:36]OFD Sender: No OFD packet to send [09:35:41]OFD Sender: No OFD packet to send [09:35:46]OFD Sender: No OFD packet to send [09:35:51]OFD Sender: No OFD packet to send [09:35:56]OFD Sender: No OFD packet to send [09:36:01]OFD Sender: No OFD packet to send [09:36:06]OFD Sender: No OFD packet to send [09:36:11]OFD Sender: No OFD packet to send [09:36: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:36]OFD Sender: No OFD packet to send [09:36:41]OFD Sender: No OFD packet to send [09:36:46]OFD Sender: No OFD packet to send [09:36:51]OFD Sender: No OFD packet to send [09:36:56]OFD Sender: No OFD packet to send [09:37:01]OFD Sender: No OFD packet to send [09:37:06]OFD Sender: No OFD packet to send [09:37:11]OFD Sender: No OFD packet to send [09:37:16]OFD Sender: No OFD packet to send [09:37:21]OFD Sender: No OFD packet to send [09:37:26]accept exits with 9 [09:37:26]New connection [09:37:26]New thread 3067194724 created [09:37:26]Thread 3067338084 joined [09:37:26]Waiting for new connection... [09:37:26] Sock 9.Parse request [09:37:26]Sock 9.Check first char [09:37:26]Sock 9.First char is OK [09:37:26]request: POST /json_proto HTTP/1.0 [09:37:26]Method: POST [09:37:26]URL: /json_proto [09:37:26]Method is POST - this is cgi request [09:37:26]url: /json_proto [09:37:26]query_string will be loaded in cgi processing [09:37:26]execute_cgi json_proto POST (null) [09:37:26]execute_cgi path=json_proto method=POST [09:37:26]POST find Content-Length [09:37:26]Host: 172.17.45.7:8080 [09:37:26]Content-Length: 822 [09:37:26]Content-Type: application/json [09:37:26] [09:37:26]POST finish read [09:37:26]Found Content-Length = 822 [09:37:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:26]execute_script... [09:37:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:26]POST & json_proto [09:37:26]process_json_proto [09:37:26]json parsed OK: [09:37:26]protocol is kg_v1.0 [09:37:26]action value=close_receipt [09:37:26]process_action close_receipt [09:37:26]cmd_close_receipt [09:37:26]MH_GetDate [09:37:26]Write to MH i2c: F0 00 00 E5 16 EA [09:37:26]Write i2c OK [09:37:26]MH_I2C_Read... [09:37:26]Read from MH i2c: F0 [09:37:26]MH_I2C_Read... [09:37:26]Read from MH i2c: F0 09 00 [09:37:26]MH_I2C_Read... [09:37:26]Read from MH i2c: F0 09 00 E5 16 00 D8 05 AA 66 90 0F 3E 66 23 [09:37:26]GetLastDocTimeStamp 1722418460 [09:37:26]current date 1722418648 [09:37:26]FM_GetShiftState [09:37:26]SAM_PROTO_GetShiftState [09:37:26]wFMCommunicate request_size=4 [09:37:26]MH_SAM_APDU [09:37:26]CAPDU: 80 13 01 00 [09:37:26]Write to MH i2c: E2 08 00 E6 16 80 13 01 00 00 00 00 00 79 [09:37:26]Write i2c OK [09:37:26]MH_I2C_Read... [09:37:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:26]Read from MH i2c: E2 [09:37:26]MH_I2C_Read... [09:37:26]Read from MH i2c: E2 0E 00 [09:37:26]MH_I2C_Read... [09:37:26]Read from MH i2c: E2 0E 00 E6 16 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 11 [09:37:26]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:37:26]wFMCommunicate OK [09:37:26]SAM_PROTO_GetShiftState done [09:37:26]FM_GetShiftState done [09:37:26]opened in 1722384637 [09:37:26]opened+sec_in_day 1722471037 [09:37:26]quantity*price = 100021 [09:37:26]sum+1 = 100023 [09:37:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 87 31.07.2024 09:37 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119356 ФПД: 133204035499413 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T093728&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119356&fm=133204035499413&tin=02508201610067®Number=0000000000092660&sum=100000 [09:37:28]StoreToDocumentArchive [09:37:28]shift 436 fd 119356 [09:37:28]save to /storage/0436/doc_00119356 [09:37:28]save last doc name /storage/0436/doc_00119356 to /storage/kkm_last_doc_name [09:37:28]save OK [09:37:28]Clear old archive folders... [09:37:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:37:28]tlvbuf is 00B5F600 [09:37:28]SAM_PROTO_ClearQueue [09:37:28]wFMCommunicate request_size=4 [09:37:28]MH_SAM_APDU [09:37:28]CAPDU: 80 09 00 00 [09:37:28]Write to MH i2c: E2 08 00 F3 16 80 09 00 00 00 00 00 00 7B [09:37:28]Write i2c OK [09:37:28]MH_I2C_Read... [09:37:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:37:28]Read from MH i2c: E2 [09:37:28]MH_I2C_Read... [09:37:28]Read from MH i2c: E2 03 00 [09:37:28]MH_I2C_Read... [09:37:28]Read from MH i2c: E2 03 00 F3 16 00 90 00 7D [09:37:28]RAPDU: 90 00 [09:37:28]wFMCommunicate OK [09:37:28]SAM_PROTO_ClearQueue done [09:37:28]KKMCreateOFDPacket [09:37:28]OFDProtocolAddRootSTLVToBuf [09:37:28]FM_MakeSignedData [09:37:28]FM_MakeSignedData [09:37:28]SAM_PROTO_SignData [09:37:28]wFMCommunicate request_size=4 [09:37:28]MH_SAM_APDU [09:37:28]CAPDU: 80 0D 01 02 [09:37:28]Write to MH i2c: E2 08 00 F4 16 80 0D 01 02 00 00 00 00 83 [09:37:28]Write i2c OK [09:37:28]MH_I2C_Read... [09:37:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:37:28]Read from MH i2c: E2 [09:37:28]MH_I2C_Read... [09:37:28]Read from MH i2c: E2 03 00 [09:37:28]MH_I2C_Read... [09:37:28]Read from MH i2c: E2 03 00 F4 16 00 90 00 7E [09:37:28]RAPDU: 90 00 [09:37:28]wFMCommunicate OK [09:37:28]wFMCommunicate request_size=255 [09:37:28]MH_SAM_APDU [09:37:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 D8 05 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3C D2 01 00 35 04 06 00 79 [09:37:28]Write to MH i2c: E2 02 01 F5 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 D8 05 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3C D2 01 00 35 04 06 00 79 00 00 B4 [09:37:28]Write i2c OK [09:37:28]MH_I2C_Read... [09:37:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:28]Read from MH i2c: E2 [09:37:28]MH_I2C_Read... [09:37:28]Read from MH i2c: E2 03 00 [09:37:28]MH_I2C_Read... [09:37:28]Read from MH i2c: E2 03 00 F5 16 00 90 00 7F [09:37:28]RAPDU: 90 00 [09:37:28]wFMCommunicate OK [09:37:28]wFMCommunicate request_size=10 [09:37:28]MH_SAM_APDU [09:37:28]CAPDU: 80 0D 02 02 05 25 FB 37 F5 95 [09:37:28]Write to MH i2c: E2 0D 00 F6 16 80 0D 02 02 05 00 25 FB 37 F5 95 00 00 71 [09:37:28]Write i2c OK [09:37:28]MH_I2C_Read... [09:37:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:28]Read from MH i2c: E2 [09:37:28]MH_I2C_Read... [09:37:28]Read from MH i2c: E2 03 00 [09:37:28]MH_I2C_Read... [09:37:28]Read from MH i2c: E2 03 00 F6 16 00 90 00 80 [09:37:28]RAPDU: 90 00 [09:37:28]wFMCommunicate OK [09:37:28]wFMCommunicate request_size=4 [09:37:28]MH_SAM_APDU [09:37:28]CAPDU: 80 0D 03 02 [09:37:28]Write to MH i2c: E2 08 00 F7 16 80 0D 03 02 00 00 00 00 88 [09:37:28]Write i2c OK [09:37:28]MH_I2C_Read... [09:37:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:37:28]Read from MH i2c: E2 [09:37:28]MH_I2C_Read... [09:37:28]Read from MH i2c: E2 0B 00 [09:37:28]MH_I2C_Read... [09:37:28]Read from MH i2c: E2 0B 00 F7 16 00 4B A7 71 AA A8 C9 B0 9F 90 00 56 [09:37:28]RAPDU: 4B A7 71 AA A8 C9 B0 9F 90 00 [09:37:28]wFMCommunicate OK [09:37:28]SAM_PROTO_SignData done [09:37:28]FM_MakeSignedData done [09:37:28]CreateOFDProtocolMessage [09:37:28]wFMCommunicate request_size=4 [09:37:28]MH_SAM_APDU [09:37:28]CAPDU: 80 11 00 00 [09:37:28]Write to MH i2c: E2 08 00 F8 16 80 11 00 00 00 00 00 00 88 [09:37:28]Write i2c OK [09:37:28]MH_I2C_Read... [09:37:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:28]Read from MH i2c: E2 [09:37:28]MH_I2C_Read... [09:37:28]Read from MH i2c: E2 17 00 [09:37:28]MH_I2C_Read... [09:37:28]Read from MH i2c: E2 17 00 F8 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E3 [09:37:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:37:28]wFMCommunicate OK [09:37:28]CreateOFDProtocolMessage done [09:37:28]OFDSenderStorePacket 119356 [09:37:28]StoreOFDPacket docnum=119356 [09:37:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 DA 3C 07 01 73 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 D8 05 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3C D2 01 00 35 04 06 00 79 25 FB 37 F5 95 4B A7 71 AA A8 C9 B0 9F [09:37:28]CheckFolder [09:37:28]dirname=/storage/ofd_packets [09:37:28]CheckFolder done [09:37:28]ProducePacketName [09:37:28]name=ofd_packets/00119356 [09:37:28]NVStorageSaveData ofd_packets/00119356 [09:37:28]File name is /storage/ofd_packets/00119356 [09:37:28]Write 301 bytes [09:37:28]NVStorageSaveData done [09:37:28]OFDSenderStorePacket done [09:37:28]KKMCreateOFDPacket done [09:37:28]NVStorageSaveData kkm_last_timestamp [09:37:28]File name is /storage/kkm_last_timestamp [09:37:28]Write 4 bytes [09:37:28]NVStorageSaveData done [09:37:28]ExternCall_PrintAddStr [09:37:28]wPrintStart [09:37:28]Write to MH i2c: 01 00 00 F9 16 0F [09:37:28]Write i2c OK [09:37:28]MH_I2C_Read... [09:37:28]Read from MH i2c: 01 [09:37:28]MH_I2C_Read... [09:37:28]Read from MH i2c: 01 07 00 [09:37:28]MH_I2C_Read... [09:37:28]Read from MH i2c: 01 07 00 F9 16 00 00 00 00 00 FF 0F 24 [09:37:28]RasterBufferAndPrint [09:37:28]line Счет N : (1)950282 [09:37:28]line ИНН: 02508201610067 [09:37:28]line Контрольно-Кассовый Чек [09:37:28]line ПРОДАЖА [09:37:28]line ТРК (МРК, ГНК) : 43 [09:37:28]line Товар: 2710124500 [09:37:28]line Аи-95-К-3 [09:37:28]line 13.480 * 74.20 [09:37:28]line = 1000.22 [09:37:28]line НДС 12% НСП 1% [09:37:28]line > о реализуемом товаре [09:37:28]line ОКРУГЛЕНИЕ: -0.22 [09:37:28]line ИТОГО: 1000.00 [09:37:28]line НСП 1% : 8.85 [09:37:28]line НДС 12% : 106.22 [09:37:28]line Наличными: 0.00 [09:37:28]line Безнал.: 1000.00 [09:37:28]line Место: АЗС № 134 "Партнер Нефть" [09:37:28]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:37:28]line СНО: Общий режим [09:37:28]line Чек 87 31.07.2024 09:37 [09:37:28]line Смена: 436 ФФД: 1.0 [09:37:28]line ЗНМ: 0300000044 [09:37:28]line РНМ: 0000000000092660 [09:37:28]line Версия ККМ: 001 [09:37:28]line Платежная система: O! деньги [09:37:28]line ФМ: 0000000000874939 [09:37:28]line ФД: 119356 [09:37:28]line ФПД: 133204035499413 [09:37:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T093728&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119356&fm=133204035499413&tin=02508201610067®Number=0000000000092660&sum=100000 [09:37:28]written 0, free lines is 4095 [09:37:28]OFD Sender: Processing packet 119356 [packets to send 86, broken 85] [09:37:28]ProducePacketName [09:37:28]name=ofd_packets/00119356 [09:37:28]OFD Sender: To server: pG, [09:37:28]CommunicateWithHost lk.salyk.kg:30040 [09:37:28]ConnectInit lk.salyk.kg [09:37:29]Connected sock=10 [09:37: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 39 33 39 0F 01 00 00 DA 3C 07 01 73 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 D8 05 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3C D2 01 00 35 04 06 00 79 25 FB 37 F5 95 4B A7 71 AA A8 C9 B0 9F [09:37:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F7 B8 47 00 E6 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3C D2 01 00 F4 03 04 00 62 B3 A9 66 B6 04 01 00 00 49 E2 9D 99 55 9A F7 B1 [09:37:29]CommunicateWithHost err = 0 [09:37:29]CheckOFDResponse [09:37:29]1017 (14) - 77093643461234 [09:37:29]1041 (16) - 0000000000874939 [09:37:29]1040 (4) - 119356 [09:37:29]1012 (4) - 31.07.2024 03:45 [09:37:29]1206 (1) - 0 [09:37:29]OFD Sender: Remove packet 119356 [09:37:29]ProducePacketName [09:37:29]name=ofd_packets/00119356 [09:37:29]NVStorageDeleteData [09:37:29]Write to MH i2c: 01 00 00 23 17 3A [09:37:29]Write i2c OK [09:37:29]MH_I2C_Read... [09:37:29]Read from MH i2c: 01 [09:37:29]MH_I2C_Read... [09:37:29]Read from MH i2c: 01 07 00 [09:37:29]MH_I2C_Read... [09:37:29]Read from MH i2c: 01 07 00 23 17 00 00 00 00 00 EC 0C 39 [09:37:29]RasterBufferAndPrint [09:37:29]line [09:37:29]line [09:37:29]line [09:37:29]line [09:37:29]line [09:37:29]written 0, free lines is 3315 [09:37:29]MH_Cut [09:37:29]Write to MH i2c: D1 01 00 2A 17 01 13 [09:37:29]Write i2c OK [09:37:29]MH_I2C_Read... [09:37:29]Read from MH i2c: D1 [09:37:29]MH_I2C_Read... [09:37:29]Read from MH i2c: D1 01 00 [09:37:29]MH_I2C_Read... [09:37:29]Read from MH i2c: D1 01 00 2A 17 00 12 [09:37:29]Write to MH i2c: 01 00 00 2B 17 42 [09:37:29]Write i2c OK [09:37:29]MH_I2C_Read... [09:37:29]OFD Sender: No OFD packet to send [09:37:30]*** Cut start [09:37:30]*** Partial cut [09:37:30]*** CUTSNS_PIN = 1 [09:37:30]*** CUTSNS_PIN = 0 [09:37:30]*** Brake cut motor [09:37:30]Read from MH i2c: 01 [09:37:30]MH_I2C_Read... [09:37:30]*** Stop cut motor [09:37:30]*** Cut end [09:37:30]Read from MH i2c: 01 07 00 [09:37:30]MH_I2C_Read... [09:37:30]Read from MH i2c: 01 07 00 2B 17 00 00 00 00 00 FF 0F 57 [09:37:30]process_action close_receipt done [09:37:30]requested_data is exist [09:37:30]produce_requested_data [09:37:30]requested_item fm.sn is exist - process it [09:37:30]wFMCommunicate request_size=4 [09:37:30]MH_SAM_APDU [09:37:30]CAPDU: 80 11 00 00 [09:37:30]Write to MH i2c: E2 08 00 2C 17 80 11 00 00 00 00 00 00 BD [09:37:30]Write i2c OK [09:37:30]MH_I2C_Read... [09:37:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:30]Read from MH i2c: E2 [09:37:30]MH_I2C_Read... [09:37:30]Read from MH i2c: E2 17 00 [09:37:30]MH_I2C_Read... [09:37:30]Read from MH i2c: E2 17 00 2C 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 18 [09:37:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:37:30]wFMCommunicate OK [09:37:30]requested_item fd.num is exist - process it [09:37:30]SAM_PROTO_GetFieldsCounters [09:37:30]wFMCommunicate request_size=4 [09:37:30]MH_SAM_APDU [09:37:30]CAPDU: 80 13 00 00 [09:37:30]Write to MH i2c: E2 08 00 2D 17 80 13 00 00 00 00 00 00 C0 [09:37:30]Write i2c OK [09:37:30]MH_I2C_Read... [09:37:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:30]Read from MH i2c: E2 [09:37:30]MH_I2C_Read... [09:37:30]Read from MH i2c: E2 62 00 [09:37:30]MH_I2C_Read... [09:37:30]Read from MH i2c: E2 62 00 2D 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3C D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [09:37:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3C D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:37:30]wFMCommunicate OK [09:37:30]SAM_PROTO_GetFieldsCounters done [09:37:30]requested_item shift.num is exist - process it [09:37:30]requested_item shift.opened is exist - process it [09:37:30]req_shift_opened [09:37:30]FM_GetShiftState [09:37:30]SAM_PROTO_GetShiftState [09:37:30]wFMCommunicate request_size=4 [09:37:30]MH_SAM_APDU [09:37:30]CAPDU: 80 13 01 00 [09:37:30]Write to MH i2c: E2 08 00 2E 17 80 13 01 00 00 00 00 00 C2 [09:37:30]Write i2c OK [09:37:30]MH_I2C_Read... [09:37:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:30]Read from MH i2c: E2 [09:37:30]MH_I2C_Read... [09:37:30]Read from MH i2c: E2 0E 00 [09:37:30]MH_I2C_Read... [09:37:30]Read from MH i2c: E2 0E 00 2E 17 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 5A [09:37:30]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:37:30]wFMCommunicate OK [09:37:30]SAM_PROTO_GetShiftState done [09:37:30]FM_GetShiftState done [09:37:30]req_shift_opened done [09:37:30]requested_item shift.open_date is exist - process it [09:37:30]req_shift_open_date [09:37:30]req_shift_open_date done [09:37:30]produce_requested_data done [09:37:30]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119356,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [09:37:30]process_action_free close_receipt [09:37:30]json_value_free [09:37:30]json_value_free done [09:37:30]process_json_proto returns [09:37:30]Send response to host [09:37:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119356,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [09:37:30]free response buf [09:37:30]execute_script done [09:37:30]execute_script returns [09:37:30]free content buf [09:37:30]Sock 9.Close socket [09:37:30]Sock 9.Thread stoped [09:37:34]OFD Sender: No OFD packet to send [09:37:34]accept exits with 8 [09:37:34]New connection [09:37:34]New thread 3067338084 created [09:37:34]Thread 3067194724 joined [09:37:34]Waiting for new connection... [09:37:34] Sock 8.Parse request [09:37:34]Sock 8.Check first char [09:37:34]Sock 8.First char is OK [09:37:34]request: POST /json_proto HTTP/1.0 [09:37:34]Method: POST [09:37:34]URL: /json_proto [09:37:34]Method is POST - this is cgi request [09:37:34]url: /json_proto [09:37:34]query_string will be loaded in cgi processing [09:37:34]execute_cgi json_proto POST (null) [09:37:34]execute_cgi path=json_proto method=POST [09:37:34]POST find Content-Length [09:37:34]Host: 172.17.45.7:8080 [09:37:34]Content-Length: 677 [09:37:34]Content-Type: application/json [09:37:34] [09:37:34]POST finish read [09:37:34]Found Content-Length = 677 [09:37:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:37:34]execute_script... [09:37: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)950283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:37:34]POST & json_proto [09:37:34]process_json_proto [09:37:34]json parsed OK: [09:37:34]protocol is kg_v1.0 [09:37:34]action value=close_receipt [09:37:34]process_action close_receipt [09:37:34]cmd_close_receipt [09:37:34]MH_GetDate [09:37:34]Write to MH i2c: F0 00 00 2F 17 35 [09:37:34]Write i2c OK [09:37:34]MH_I2C_Read... [09:37:34]Read from MH i2c: F0 [09:37:34]MH_I2C_Read... [09:37:34]Read from MH i2c: F0 09 00 [09:37:34]MH_I2C_Read... [09:37:34]Read from MH i2c: F0 09 00 2F 17 00 E0 05 AA 66 90 0F 3E 66 76 [09:37:34]GetLastDocTimeStamp 1722418648 [09:37:34]current date 1722418656 [09:37:34]FM_GetShiftState [09:37:34]SAM_PROTO_GetShiftState [09:37:34]wFMCommunicate request_size=4 [09:37:34]MH_SAM_APDU [09:37:34]CAPDU: 80 13 01 00 [09:37:34]Write to MH i2c: E2 08 00 30 17 80 13 01 00 00 00 00 00 C4 [09:37:34]Write i2c OK [09:37:34]MH_I2C_Read... [09:37:34]Read from MH i2c: E2 [09:37:34]MH_I2C_Read... [09:37:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:34]Read from MH i2c: E2 0E 00 [09:37:34]MH_I2C_Read... [09:37:34]Read from MH i2c: E2 0E 00 30 17 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 5C [09:37:34]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:37:34]wFMCommunicate OK [09:37:34]SAM_PROTO_GetShiftState done [09:37:34]FM_GetShiftState done [09:37:34]opened in 1722384637 [09:37:34]opened+sec_in_day 1722471037 [09:37:34]quantity*price = 50036 [09:37:34]sum+1 = 50037 [09:37:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 88 31.07.2024 09:37 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119357 ФПД: 118423767280107 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T093736&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119357&fm=118423767280107&tin=02508201610067®Number=0000000000092660&sum=50000 [09:37:36]StoreToDocumentArchive [09:37:36]shift 436 fd 119357 [09:37:36]save to /storage/0436/doc_00119357 [09:37:36]save last doc name /storage/0436/doc_00119357 to /storage/kkm_last_doc_name [09:37:36]save OK [09:37:36]Clear old archive folders... [09:37:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:37:36]tlvbuf is 00AFA080 [09:37:36]SAM_PROTO_ClearQueue [09:37:36]wFMCommunicate request_size=4 [09:37:36]MH_SAM_APDU [09:37:36]CAPDU: 80 09 00 00 [09:37:36]Write to MH i2c: E2 08 00 3D 17 80 09 00 00 00 00 00 00 C6 [09:37:36]Write i2c OK [09:37:36]MH_I2C_Read... [09:37:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:37:36]Read from MH i2c: E2 [09:37:36]MH_I2C_Read... [09:37:36]Read from MH i2c: E2 03 00 [09:37:36]MH_I2C_Read... [09:37:36]Read from MH i2c: E2 03 00 3D 17 00 90 00 C8 [09:37:36]RAPDU: 90 00 [09:37:36]wFMCommunicate OK [09:37:36]SAM_PROTO_ClearQueue done [09:37:36]KKMCreateOFDPacket [09:37:36]OFDProtocolAddRootSTLVToBuf [09:37:36]FM_MakeSignedData [09:37:36]FM_MakeSignedData [09:37:36]SAM_PROTO_SignData [09:37:36]wFMCommunicate request_size=4 [09:37:36]MH_SAM_APDU [09:37:36]CAPDU: 80 0D 01 02 [09:37:36]Write to MH i2c: E2 08 00 3E 17 80 0D 01 02 00 00 00 00 CE [09:37:36]Write i2c OK [09:37:36]MH_I2C_Read... [09:37:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:37:36]Read from MH i2c: E2 [09:37:36]MH_I2C_Read... [09:37:36]Read from MH i2c: E2 03 00 [09:37:36]MH_I2C_Read... [09:37:36]Read from MH i2c: E2 03 00 3E 17 00 90 00 C9 [09:37:36]RAPDU: 90 00 [09:37:36]wFMCommunicate OK [09:37:36]wFMCommunicate request_size=255 [09:37:36]MH_SAM_APDU [09:37:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 58 00 00 00 F4 03 04 00 E0 05 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3D D2 01 00 35 04 06 00 6B [09:37:36]Write to MH i2c: E2 02 01 3F 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 58 00 00 00 F4 03 04 00 E0 05 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3D D2 01 00 35 04 06 00 6B 00 00 CF [09:37:36]Write i2c OK [09:37:36]MH_I2C_Read... [09:37:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:36]Read from MH i2c: E2 [09:37:36]MH_I2C_Read... [09:37:36]Read from MH i2c: E2 03 00 [09:37:36]MH_I2C_Read... [09:37:36]Read from MH i2c: E2 03 00 3F 17 00 90 00 CA [09:37:36]RAPDU: 90 00 [09:37:36]wFMCommunicate OK [09:37:36]wFMCommunicate request_size=10 [09:37:36]MH_SAM_APDU [09:37:36]CAPDU: 80 0D 02 02 05 B4 AE 94 E9 EB [09:37:36]Write to MH i2c: E2 0D 00 40 17 80 0D 02 02 05 00 B4 AE 94 E9 EB 00 00 A5 [09:37:36]Write i2c OK [09:37:36]MH_I2C_Read... [09:37:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:36]Read from MH i2c: E2 [09:37:36]MH_I2C_Read... [09:37:36]Read from MH i2c: E2 03 00 [09:37:36]MH_I2C_Read... [09:37:36]Read from MH i2c: E2 03 00 40 17 00 90 00 CB [09:37:36]RAPDU: 90 00 [09:37:36]wFMCommunicate OK [09:37:36]wFMCommunicate request_size=4 [09:37:36]MH_SAM_APDU [09:37:36]CAPDU: 80 0D 03 02 [09:37:36]Write to MH i2c: E2 08 00 41 17 80 0D 03 02 00 00 00 00 D3 [09:37:36]Write i2c OK [09:37:36]MH_I2C_Read... [09:37:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:37:36]Read from MH i2c: E2 [09:37:36]MH_I2C_Read... [09:37:36]Read from MH i2c: E2 0B 00 [09:37:36]MH_I2C_Read... [09:37:36]Read from MH i2c: E2 0B 00 41 17 00 06 5A F9 4A E9 0A 32 8A 90 00 26 [09:37:36]RAPDU: 06 5A F9 4A E9 0A 32 8A 90 00 [09:37:36]wFMCommunicate OK [09:37:36]SAM_PROTO_SignData done [09:37:36]FM_MakeSignedData done [09:37:36]CreateOFDProtocolMessage [09:37:36]wFMCommunicate request_size=4 [09:37:36]MH_SAM_APDU [09:37:36]CAPDU: 80 11 00 00 [09:37:36]Write to MH i2c: E2 08 00 42 17 80 11 00 00 00 00 00 00 D3 [09:37:36]Write i2c OK [09:37:36]MH_I2C_Read... [09:37:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:36]Read from MH i2c: E2 [09:37:36]MH_I2C_Read... [09:37:36]Read from MH i2c: E2 17 00 [09:37:36]MH_I2C_Read... [09:37:36]Read from MH i2c: E2 17 00 42 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2E [09:37:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:37:36]wFMCommunicate OK [09:37:36]CreateOFDProtocolMessage done [09:37:36]OFDSenderStorePacket 119357 [09:37:36]StoreOFDPacket docnum=119357 [09:37:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 71 D9 07 01 8F C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 58 00 00 00 F4 03 04 00 E0 05 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3D D2 01 00 35 04 06 00 6B B4 AE 94 E9 EB 06 5A F9 4A E9 0A 32 8A [09:37:36]CheckFolder [09:37:36]dirname=/storage/ofd_packets [09:37:36]CheckFolder done [09:37:36]ProducePacketName [09:37:36]name=ofd_packets/00119357 [09:37:36]NVStorageSaveData ofd_packets/00119357 [09:37:36]File name is /storage/ofd_packets/00119357 [09:37:36]Write 301 bytes [09:37:36]NVStorageSaveData done [09:37:36]OFDSenderStorePacket done [09:37:36]KKMCreateOFDPacket done [09:37:36]NVStorageSaveData kkm_last_timestamp [09:37:36]File name is /storage/kkm_last_timestamp [09:37:36]Write 4 bytes [09:37:36]NVStorageSaveData done [09:37:36]ExternCall_PrintAddStr [09:37:36]wPrintStart [09:37:36]Write to MH i2c: 01 00 00 43 17 5A [09:37:36]Write i2c OK [09:37:36]MH_I2C_Read... [09:37:36]Read from MH i2c: 01 [09:37:36]MH_I2C_Read... [09:37:36]Read from MH i2c: 01 07 00 [09:37:36]MH_I2C_Read... [09:37:36]Read from MH i2c: 01 07 00 43 17 00 00 00 00 00 FF 0F 6F [09:37:36]RasterBufferAndPrint [09:37:36]line Счет N : (1)950283 [09:37:36]line ИНН: 02508201610067 [09:37:36]line Контрольно-Кассовый Чек [09:37:36]line ПРОДАЖА [09:37:36]line ТРК (МРК, ГНК) : 31 [09:37:36]line Товар: 2710124130 [09:37:36]line Аи-92-К-4 [09:37:36]line 7.380 * 67.80 [09:37:36]line = 500.36 [09:37:36]line НДС 12% НСП 1% [09:37:36]line > о реализуемом товаре [09:37:36]line ОКРУГЛЕНИЕ: -0.36 [09:37:36]line ИТОГО: 500.00 [09:37:36]line Внесено: 500.00 [09:37:36]line СДАЧА: 0.00 [09:37:36]line НСП 1% : 4.43 [09:37:36]line НДС 12% : 53.14 [09:37:36]line Наличными: 500.00 [09:37:36]line Безнал.: 0.00 [09:37:36]line Место: АЗС № 134 "Партнер Нефть" [09:37:36]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:37:36]line СНО: Общий режим [09:37:36]line Чек 88 31.07.2024 09:37 [09:37:36]line Смена: 436 ФФД: 1.0 [09:37:36]line ЗНМ: 0300000044 [09:37:36]line РНМ: 0000000000092660 [09:37:36]line Версия ККМ: 001 [09:37:36]line ФМ: 0000000000874939 [09:37:36]line ФД: 119357 [09:37:36]line ФПД: 118423767280107 [09:37:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T093736&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119357&fm=118423767280107&tin=02508201610067®Number=0000000000092660&sum=50000 [09:37:36]written 0, free lines is 4095 [09:37:36]OFD Sender: Processing packet 119357 [packets to send 86, broken 85] [09:37:36]ProducePacketName [09:37:36]name=ofd_packets/00119357 [09:37:36]OFD Sender: To server: pG, [09:37:36]CommunicateWithHost lk.salyk.kg:30040 [09:37:36]ConnectInit lk.salyk.kg [09:37:36]Connected sock=10 [09:37: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 39 33 39 0F 01 00 00 71 D9 07 01 8F C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 58 00 00 00 F4 03 04 00 E0 05 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3D D2 01 00 35 04 06 00 6B B4 AE 94 E9 EB 06 5A F9 4A E9 0A 32 8A [09:37:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 5F F4 47 00 D0 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 39 33 39 10 04 04 00 3D D2 01 00 F4 03 04 00 69 B3 A9 66 B6 04 01 00 00 A0 F1 09 A2 B5 C8 C3 42 [09:37:37]CommunicateWithHost err = 0 [09:37:37]CheckOFDResponse [09:37:37]1017 (14) - 77093643461234 [09:37:37]1041 (16) - 0000000000874939 [09:37:37]1040 (4) - 119357 [09:37:37]1012 (4) - 31.07.2024 03:45 [09:37:37]1206 (1) - 0 [09:37:37]OFD Sender: Remove packet 119357 [09:37:37]ProducePacketName [09:37:37]name=ofd_packets/00119357 [09:37:37]NVStorageDeleteData [09:37:37]Write to MH i2c: 01 00 00 6D 17 84 [09:37:37]Write i2c OK [09:37:37]MH_I2C_Read... [09:37:37]Read from MH i2c: 01 [09:37:37]MH_I2C_Read... [09:37:37]Read from MH i2c: 01 07 00 [09:37:37]MH_I2C_Read... [09:37:37]Read from MH i2c: 01 07 00 6D 17 00 00 00 00 00 17 0D AF [09:37:37]RasterBufferAndPrint [09:37:37]line [09:37:37]line [09:37:37]line [09:37:37]line [09:37:37]line [09:37:37]written 0, free lines is 3360 [09:37:37]MH_Cut [09:37:37]Write to MH i2c: D1 01 00 74 17 01 5D [09:37:37]Write i2c OK [09:37:37]MH_I2C_Read... [09:37:37]Read from MH i2c: D1 [09:37:37]MH_I2C_Read... [09:37:37]Read from MH i2c: D1 01 00 [09:37:37]MH_I2C_Read... [09:37:37]Read from MH i2c: D1 01 00 74 17 00 5C [09:37:37]Write to MH i2c: 01 00 00 75 17 8C [09:37:37]Write i2c OK [09:37:37]MH_I2C_Read... [09:37:37]OFD Sender: No OFD packet to send [09:37:37]*** Cut start [09:37:37]*** Partial cut [09:37:37]*** CUTSNS_PIN = 1 [09:37:37]*** CUTSNS_PIN = 0 [09:37:38]*** Brake cut motor [09:37:38]Read from MH i2c: 01 [09:37:38]MH_I2C_Read... [09:37:38]*** Stop cut motor [09:37:38]*** Cut end [09:37:38]Read from MH i2c: 01 07 00 [09:37:38]MH_I2C_Read... [09:37:38]Read from MH i2c: 01 07 00 75 17 00 00 00 00 00 FF 0F A1 [09:37:38]process_action close_receipt done [09:37:38]requested_data is exist [09:37:38]produce_requested_data [09:37:38]requested_item fm.sn is exist - process it [09:37:38]wFMCommunicate request_size=4 [09:37:38]MH_SAM_APDU [09:37:38]CAPDU: 80 11 00 00 [09:37:38]Write to MH i2c: E2 08 00 76 17 80 11 00 00 00 00 00 00 07 [09:37:38]Write i2c OK [09:37:38]MH_I2C_Read... [09:37:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:38]Read from MH i2c: E2 [09:37:38]MH_I2C_Read... [09:37:38]Read from MH i2c: E2 17 00 [09:37:38]MH_I2C_Read... [09:37:38]Read from MH i2c: E2 17 00 76 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 62 [09:37:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:37:38]wFMCommunicate OK [09:37:38]requested_item fd.num is exist - process it [09:37:38]SAM_PROTO_GetFieldsCounters [09:37:38]wFMCommunicate request_size=4 [09:37:38]MH_SAM_APDU [09:37:38]CAPDU: 80 13 00 00 [09:37:38]Write to MH i2c: E2 08 00 77 17 80 13 00 00 00 00 00 00 0A [09:37:38]Write i2c OK [09:37:38]MH_I2C_Read... [09:37:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:38]Read from MH i2c: E2 [09:37:38]MH_I2C_Read... [09:37:38]Read from MH i2c: E2 62 00 [09:37:38]MH_I2C_Read... [09:37:38]Read from MH i2c: E2 62 00 77 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3D D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [09:37: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3D D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:37:38]wFMCommunicate OK [09:37:38]SAM_PROTO_GetFieldsCounters done [09:37:38]requested_item shift.num is exist - process it [09:37:38]requested_item shift.opened is exist - process it [09:37:38]req_shift_opened [09:37:38]FM_GetShiftState [09:37:38]SAM_PROTO_GetShiftState [09:37:38]wFMCommunicate request_size=4 [09:37:38]MH_SAM_APDU [09:37:38]CAPDU: 80 13 01 00 [09:37:38]Write to MH i2c: E2 08 00 78 17 80 13 01 00 00 00 00 00 0C [09:37:38]Write i2c OK [09:37:38]MH_I2C_Read... [09:37:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:38]Read from MH i2c: E2 [09:37:38]MH_I2C_Read... [09:37:38]Read from MH i2c: E2 0E 00 [09:37:38]MH_I2C_Read... [09:37:38]Read from MH i2c: E2 0E 00 78 17 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 A4 [09:37:38]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:37:38]wFMCommunicate OK [09:37:38]SAM_PROTO_GetShiftState done [09:37:38]FM_GetShiftState done [09:37:38]req_shift_opened done [09:37:38]requested_item shift.open_date is exist - process it [09:37:38]req_shift_open_date [09:37:38]req_shift_open_date done [09:37:38]produce_requested_data done [09:37:38]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119357,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [09:37:38]process_action_free close_receipt [09:37:38]json_value_free [09:37:38]json_value_free done [09:37:38]process_json_proto returns [09:37:38]Send response to host [09:37:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119357,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [09:37:38]free response buf [09:37:38]execute_script done [09:37:38]execute_script returns [09:37:38]free content buf [09:37:38]Sock 8.Close socket [09:37:38]Sock 8.Thread stoped [09:37:42]OFD Sender: No OFD packet to send [09:37:47]OFD Sender: No OFD packet to send [09:37:52]OFD Sender: No OFD packet to send [09:37:57]OFD Sender: No OFD packet to send [09:38:02]OFD Sender: No OFD packet to send [09:38:07]OFD Sender: No OFD packet to send [09:38:12]OFD Sender: No OFD packet to send [09:38:17]OFD Sender: No OFD packet to send [09:38:22]OFD Sender: No OFD packet to send [09:38:22]accept exits with 9 [09:38:22]New connection [09:38:22]New thread 3067194724 created [09:38:22]Thread 3067338084 joined [09:38:22]Waiting for new connection... [09:38:22] Sock 9.Parse request [09:38:22]Sock 9.Check first char [09:38:22]Sock 9.First char is OK [09:38:22]request: POST /json_proto HTTP/1.0 [09:38:22]Method: POST [09:38:22]URL: /json_proto [09:38:22]Method is POST - this is cgi request [09:38:22]url: /json_proto [09:38:22]query_string will be loaded in cgi processing [09:38:22]execute_cgi json_proto POST (null) [09:38:22]execute_cgi path=json_proto method=POST [09:38:22]POST find Content-Length [09:38:22]Host: 172.17.45.7:8080 [09:38:22]Content-Length: 677 [09:38:22]Content-Type: application/json [09:38:22] [09:38:22]POST finish read [09:38:22]Found Content-Length = 677 [09:38:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:22]execute_script... [09:38: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)950285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:22]POST & json_proto [09:38:22]process_json_proto [09:38:22]json parsed OK: [09:38:22]protocol is kg_v1.0 [09:38:22]action value=close_receipt [09:38:22]process_action close_receipt [09:38:22]cmd_close_receipt [09:38:22]MH_GetDate [09:38:22]Write to MH i2c: F0 00 00 79 17 7F [09:38:22]Write i2c OK [09:38:22]MH_I2C_Read... [09:38:22]Read from MH i2c: F0 [09:38:22]MH_I2C_Read... [09:38:22]Read from MH i2c: F0 09 00 [09:38:22]MH_I2C_Read... [09:38:22]Read from MH i2c: F0 09 00 79 17 00 10 06 AA 66 90 0F 3E 66 F1 [09:38:22]GetLastDocTimeStamp 1722418656 [09:38:22]current date 1722418704 [09:38:22]FM_GetShiftState [09:38:22]SAM_PROTO_GetShiftState [09:38:22]wFMCommunicate request_size=4 [09:38:22]MH_SAM_APDU [09:38:22]CAPDU: 80 13 01 00 [09:38:22]Write to MH i2c: E2 08 00 7A 17 80 13 01 00 00 00 00 00 0E [09:38:22]Write i2c OK [09:38:22]MH_I2C_Read... [09:38:22]*** 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 7A 17 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 A6 [09:38:23]RAPDU: 09 00 01 FD 80 A9 66 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 1722384637 [09:38:23]opened+sec_in_day 1722471037 [09:38:23]quantity*price = 40002 [09:38:23]sum+1 = 40003 [09:38:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 89 31.07.2024 09:38 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119358 ФПД: 77797677591182 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T093824&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119358&fm=77797677591182&tin=02508201610067®Number=0000000000092660&sum=40000 [09:38:24]StoreToDocumentArchive [09:38:24]shift 436 fd 119358 [09:38:24]save to /storage/0436/doc_00119358 [09:38:24]save last doc name /storage/0436/doc_00119358 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 00ACD9F0 [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 87 17 80 09 00 00 00 00 00 00 10 [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 87 17 00 90 00 12 [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 88 17 80 0D 01 02 00 00 00 00 18 [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 88 17 00 90 00 13 [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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 59 00 00 00 F4 03 04 00 10 06 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3E D2 01 00 35 04 06 00 46 [09:38:24]Write to MH i2c: E2 02 01 89 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 59 00 00 00 F4 03 04 00 10 06 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3E D2 01 00 35 04 06 00 46 00 00 0C [09:38:24]Write i2c OK [09:38:24]MH_I2C_Read... [09:38:24]*** iso7816_exchange 80 0D 02 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 89 17 00 90 00 14 [09:38:24]RAPDU: 90 00 [09:38:24]wFMCommunicate OK [09:38:24]wFMCommunicate request_size=10 [09:38:24]MH_SAM_APDU [09:38:24]CAPDU: 80 0D 02 02 05 C1 AE EF EA 8E [09:38:24]Write to MH i2c: E2 0D 00 8A 17 80 0D 02 02 05 00 C1 AE EF EA 8E 00 00 FB [09:38:24]Write i2c OK [09:38:24]MH_I2C_Read... [09:38:24]*** iso7816_exchange 80 0D 02 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 8A 17 00 90 00 15 [09:38:24]RAPDU: 90 00 [09:38:24]wFMCommunicate OK [09:38:24]wFMCommunicate request_size=4 [09:38:24]MH_SAM_APDU [09:38:24]CAPDU: 80 0D 03 02 [09:38:24]Write to MH i2c: E2 08 00 8B 17 80 0D 03 02 00 00 00 00 1D [09:38:24]Write i2c OK [09:38:24]MH_I2C_Read... [09:38:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:38:24]Read from MH i2c: E2 [09:38:24]MH_I2C_Read... [09:38:24]Read from MH i2c: E2 0B 00 [09:38:24]MH_I2C_Read... [09:38:24]Read from MH i2c: E2 0B 00 8B 17 00 D2 46 A6 33 6C 43 89 F7 90 00 3E [09:38:24]RAPDU: D2 46 A6 33 6C 43 89 F7 90 00 [09:38:24]wFMCommunicate OK [09:38:24]SAM_PROTO_SignData done [09:38:24]FM_MakeSignedData done [09:38:24]CreateOFDProtocolMessage [09:38:24]wFMCommunicate request_size=4 [09:38:24]MH_SAM_APDU [09:38:24]CAPDU: 80 11 00 00 [09:38:24]Write to MH i2c: E2 08 00 8C 17 80 11 00 00 00 00 00 00 1D [09:38:24]Write i2c OK [09:38:24]MH_I2C_Read... [09:38:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:24]Read from MH i2c: E2 [09:38:24]MH_I2C_Read... [09:38:24]Read from MH i2c: E2 17 00 [09:38:24]MH_I2C_Read... [09:38:24]Read from MH i2c: E2 17 00 8C 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 78 [09:38:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:38:24]wFMCommunicate OK [09:38:24]CreateOFDProtocolMessage done [09:38:24]OFDSenderStorePacket 119358 [09:38:24]StoreOFDPacket docnum=119358 [09:38:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F9 15 07 01 26 A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 59 00 00 00 F4 03 04 00 10 06 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3E D2 01 00 35 04 06 00 46 C1 AE EF EA 8E D2 46 A6 33 6C 43 89 F7 [09:38:24]CheckFolder [09:38:24]dirname=/storage/ofd_packets [09:38:24]CheckFolder done [09:38:24]ProducePacketName [09:38:24]name=ofd_packets/00119358 [09:38:24]NVStorageSaveData ofd_packets/00119358 [09:38:24]File name is /storage/ofd_packets/00119358 [09:38:24]Write 301 bytes [09:38:24]NVStorageSaveData done [09:38:24]OFDSenderStorePacket done [09:38:24]KKMCreateOFDPacket done [09:38:24]NVStorageSaveData kkm_last_timestamp [09:38:24]File name is /storage/kkm_last_timestamp [09:38:24]Write 4 bytes [09:38:24]NVStorageSaveData done [09:38:24]ExternCall_PrintAddStr [09:38:24]wPrintStart [09:38:24]Write to MH i2c: 01 00 00 8D 17 A4 [09:38:24]Write i2c OK [09:38:24]MH_I2C_Read... [09:38:24]Read from MH i2c: 01 [09:38:24]MH_I2C_Read... [09:38:24]Read from MH i2c: 01 07 00 [09:38:24]MH_I2C_Read... [09:38:24]Read from MH i2c: 01 07 00 8D 17 00 00 00 00 00 FF 0F B9 [09:38:24]RasterBufferAndPrint [09:38:24]line Счет N : (1)950285 [09:38:24]line ИНН: 02508201610067 [09:38:24]line Контрольно-Кассовый Чек [09:38:24]line ПРОДАЖА [09:38:24]line ТРК (МРК, ГНК) : 61 [09:38:24]line Товар: 2710124130 [09:38:24]line Аи-92-К-4 [09:38:24]line 5.900 * 67.80 [09:38:24]line = 400.02 [09:38:24]line НДС 12% НСП 1% [09:38:24]line > о реализуемом товаре [09:38:24]line ОКРУГЛЕНИЕ: -0.02 [09:38:24]line ИТОГО: 400.00 [09:38:24]line Внесено: 400.00 [09:38:24]line СДАЧА: 0.00 [09:38:24]line НСП 1% : 3.54 [09:38:24]line НДС 12% : 42.48 [09:38:24]line Наличными: 400.00 [09:38:24]line Безнал.: 0.00 [09:38:24]line Место: АЗС № 134 "Партнер Нефть" [09:38:24]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:38:24]line СНО: Общий режим [09:38:24]line Чек 89 31.07.2024 09:38 [09:38:24]line Смена: 436 ФФД: 1.0 [09:38:24]line ЗНМ: 0300000044 [09:38:24]line РНМ: 0000000000092660 [09:38:24]line Версия ККМ: 001 [09:38:24]line ФМ: 0000000000874939 [09:38:24]line ФД: 119358 [09:38:24]line ФПД: 77797677591182 [09:38:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T093824&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119358&fm=77797677591182&tin=02508201610067®Number=0000000000092660&sum=40000 [09:38:24]OFD Sender: Processing packet 119358 [packets to send 86, broken 85] [09:38:24]ProducePacketName [09:38:24]name=ofd_packets/00119358 [09:38:24]OFD Sender: To server: pG, [09:38:24]CommunicateWithHost lk.salyk.kg:30040 [09:38:24]ConnectInit lk.salyk.kg [09:38:24]written 0, free lines is 4095 [09:38:25]Connected sock=10 [09:38:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F9 15 07 01 26 A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 59 00 00 00 F4 03 04 00 10 06 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3E D2 01 00 35 04 06 00 46 C1 AE EF EA 8E D2 46 A6 33 6C 43 89 F7 [09:38:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B2 D3 47 00 20 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3E D2 01 00 F4 03 04 00 99 B3 A9 66 B6 04 01 00 00 7F 54 40 E3 03 6D BE CC [09:38:25]CommunicateWithHost err = 0 [09:38:25]CheckOFDResponse [09:38:25]1017 (14) - 77093643461234 [09:38:25]1041 (16) - 0000000000874939 [09:38:25]1040 (4) - 119358 [09:38:25]1012 (4) - 31.07.2024 03:46 [09:38:25]1206 (1) - 0 [09:38:25]OFD Sender: Remove packet 119358 [09:38:25]ProducePacketName [09:38:25]name=ofd_packets/00119358 [09:38:25]NVStorageDeleteData [09:38:25]Write to MH i2c: 01 00 00 B7 17 CE [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 B7 17 00 00 00 00 00 E4 0C C5 [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 3306 [09:38:25]MH_Cut [09:38:25]Write to MH i2c: D1 01 00 BE 17 01 A7 [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 BE 17 00 A6 [09:38:25]Write to MH i2c: 01 00 00 BF 17 D6 [09:38:25]Write i2c OK [09:38:25]MH_I2C_Read... [09:38:25]OFD Sender: No OFD packet to send [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:26]Read from MH i2c: 01 [09:38:26]MH_I2C_Read... [09:38:26]*** Stop cut motor [09:38:26]*** Cut end [09:38:26]Read from MH i2c: 01 07 00 [09:38:26]MH_I2C_Read... [09:38:26]Read from MH i2c: 01 07 00 BF 17 00 00 00 00 00 FF 0F EB [09:38:26]process_action close_receipt done [09:38:26]requested_data is exist [09:38:26]produce_requested_data [09:38:26]requested_item fm.sn is exist - process it [09:38:26]wFMCommunicate request_size=4 [09:38:26]MH_SAM_APDU [09:38:26]CAPDU: 80 11 00 00 [09:38:26]Write to MH i2c: E2 08 00 C0 17 80 11 00 00 00 00 00 00 51 [09:38:26]Write i2c OK [09:38:26]MH_I2C_Read... [09:38:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:26]Read from MH i2c: E2 [09:38:26]MH_I2C_Read... [09:38:26]Read from MH i2c: E2 17 00 [09:38:26]MH_I2C_Read... [09:38:26]Read from MH i2c: E2 17 00 C0 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AC [09:38:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:38:26]wFMCommunicate OK [09:38:26]requested_item fd.num is exist - process it [09:38:26]SAM_PROTO_GetFieldsCounters [09:38:26]wFMCommunicate request_size=4 [09:38:26]MH_SAM_APDU [09:38:26]CAPDU: 80 13 00 00 [09:38:26]Write to MH i2c: E2 08 00 C1 17 80 13 00 00 00 00 00 00 54 [09:38:26]Write i2c OK [09:38:26]MH_I2C_Read... [09:38:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:38:26]Read from MH i2c: E2 [09:38:26]MH_I2C_Read... [09:38:26]Read from MH i2c: E2 62 00 [09:38:26]MH_I2C_Read... [09:38:26]Read from MH i2c: E2 62 00 C1 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3E D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [09:38:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3E D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:38:26]wFMCommunicate OK [09:38:26]SAM_PROTO_GetFieldsCounters done [09:38:26]requested_item shift.num is exist - process it [09:38:26]requested_item shift.opened is exist - process it [09:38:26]req_shift_opened [09:38:26]FM_GetShiftState [09:38:26]SAM_PROTO_GetShiftState [09:38:26]wFMCommunicate request_size=4 [09:38:26]MH_SAM_APDU [09:38:26]CAPDU: 80 13 01 00 [09:38:26]Write to MH i2c: E2 08 00 C2 17 80 13 01 00 00 00 00 00 56 [09:38:26]Write i2c OK [09:38:26]MH_I2C_Read... [09:38:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:26]Read from MH i2c: E2 [09:38:26]MH_I2C_Read... [09:38:26]Read from MH i2c: E2 0E 00 [09:38:26]MH_I2C_Read... [09:38:26]Read from MH i2c: E2 0E 00 C2 17 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 EE [09:38:26]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:38:26]wFMCommunicate OK [09:38:26]SAM_PROTO_GetShiftState done [09:38:26]FM_GetShiftState done [09:38:26]req_shift_opened done [09:38:26]requested_item shift.open_date is exist - process it [09:38:26]req_shift_open_date [09:38:26]req_shift_open_date done [09:38:26]produce_requested_data done [09:38:26]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119358,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [09:38:26]process_action_free close_receipt [09:38:26]json_value_free [09:38:26]json_value_free done [09:38:26]process_json_proto returns [09:38:26]Send response to host [09:38:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119358,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [09:38:26]free response buf [09:38:26]execute_script done [09:38:26]execute_script returns [09:38:26]free content buf [09:38:26]Sock 9.Close socket [09:38:26]Sock 9.Thread stoped [09:38:30]OFD Sender: No OFD packet to send [09:38:35]OFD Sender: No OFD packet to send [09:38:40]OFD Sender: No OFD packet to send [09:38:45]OFD Sender: No OFD packet to send [09:38:50]OFD Sender: No OFD packet to send [09:38:55]OFD Sender: No OFD packet to send [09:39:00]OFD Sender: No OFD packet to send [09:39:05]OFD Sender: No OFD packet to send [09:39:10]OFD Sender: No OFD packet to send [09:39:15]OFD Sender: No OFD packet to send [09:39:20]OFD Sender: No OFD packet to send [09:39:23]accept exits with 8 [09:39:23]New connection [09:39:23]New thread 3067338084 created [09:39:23]Thread 3067194724 joined [09:39:23]Waiting for new connection... [09:39:23] Sock 8.Parse request [09:39:23]Sock 8.Check first char [09:39:23]Sock 8.First char is OK [09:39:23]request: POST /json_proto HTTP/1.0 [09:39:23]Method: POST [09:39:23]URL: /json_proto [09:39:23]Method is POST - this is cgi request [09:39:23]url: /json_proto [09:39:23]query_string will be loaded in cgi processing [09:39:23]execute_cgi json_proto POST (null) [09:39:23]execute_cgi path=json_proto method=POST [09:39:23]POST find Content-Length [09:39:23]Host: 172.17.45.7:8080 [09:39:23]Content-Length: 677 [09:39:23]Content-Type: application/json [09:39:23] [09:39:23]POST finish read [09:39:23]Found Content-Length = 677 [09:39:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:23]execute_script... [09:39: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)950286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:23]POST & json_proto [09:39:23]process_json_proto [09:39:23]json parsed OK: [09:39:23]protocol is kg_v1.0 [09:39:23]action value=close_receipt [09:39:23]process_action close_receipt [09:39:23]cmd_close_receipt [09:39:23]MH_GetDate [09:39:23]Write to MH i2c: F0 00 00 C3 17 C9 [09:39:23]Write i2c OK [09:39:23]MH_I2C_Read... [09:39:23]Read from MH i2c: F0 [09:39:23]MH_I2C_Read... [09:39:23]Read from MH i2c: F0 09 00 [09:39:23]MH_I2C_Read... [09:39:23]Read from MH i2c: F0 09 00 C3 17 00 4D 06 AA 66 90 0F 3E 66 78 [09:39:23]GetLastDocTimeStamp 1722418704 [09:39:23]current date 1722418765 [09:39:23]FM_GetShiftState [09:39:23]SAM_PROTO_GetShiftState [09:39:23]wFMCommunicate request_size=4 [09:39:23]MH_SAM_APDU [09:39:23]CAPDU: 80 13 01 00 [09:39:23]Write to MH i2c: E2 08 00 C4 17 80 13 01 00 00 00 00 00 58 [09:39:23]Write i2c OK [09:39:23]MH_I2C_Read... [09:39:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:23]Read from MH i2c: E2 [09:39:23]MH_I2C_Read... [09:39:23]Read from MH i2c: E2 0E 00 [09:39:23]MH_I2C_Read... [09:39:23]Read from MH i2c: E2 0E 00 C4 17 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 F0 [09:39:23]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:39:23]wFMCommunicate OK [09:39:23]SAM_PROTO_GetShiftState done [09:39:23]FM_GetShiftState done [09:39:23]opened in 1722384637 [09:39:23]opened+sec_in_day 1722471037 [09:39:23]quantity*price = 40002 [09:39:23]sum+1 = 40003 [09:39:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 90 31.07.2024 09:39 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119359 ФПД: 72198242031438 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T093925&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119359&fm=72198242031438&tin=02508201610067®Number=0000000000092660&sum=40000 [09:39:25]StoreToDocumentArchive [09:39:25]shift 436 fd 119359 [09:39:25]save to /storage/0436/doc_00119359 [09:39:25]save last doc name /storage/0436/doc_00119359 to /storage/kkm_last_doc_name [09:39:25]save OK [09:39:25]Clear old archive folders... [09:39:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:39:25]tlvbuf is 00AC5010 [09:39:25]SAM_PROTO_ClearQueue [09:39:25]wFMCommunicate request_size=4 [09:39:25]MH_SAM_APDU [09:39:25]CAPDU: 80 09 00 00 [09:39:25]Write to MH i2c: E2 08 00 D1 17 80 09 00 00 00 00 00 00 5A [09:39:25]Write i2c OK [09:39:25]MH_I2C_Read... [09:39:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:25]Read from MH i2c: E2 [09:39:25]MH_I2C_Read... [09:39:25]Read from MH i2c: E2 03 00 [09:39:25]MH_I2C_Read... [09:39:25]Read from MH i2c: E2 03 00 D1 17 00 90 00 5C [09:39:25]RAPDU: 90 00 [09:39:25]wFMCommunicate OK [09:39:25]SAM_PROTO_ClearQueue done [09:39:25]KKMCreateOFDPacket [09:39:25]OFDProtocolAddRootSTLVToBuf [09:39:25]FM_MakeSignedData [09:39:25]FM_MakeSignedData [09:39:25]SAM_PROTO_SignData [09:39:25]wFMCommunicate request_size=4 [09:39:25]MH_SAM_APDU [09:39:25]CAPDU: 80 0D 01 02 [09:39:25]Write to MH i2c: E2 08 00 D2 17 80 0D 01 02 00 00 00 00 62 [09:39:25]Write i2c OK [09:39:25]MH_I2C_Read... [09:39:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:25]Read from MH i2c: E2 [09:39:25]MH_I2C_Read... [09:39:25]Read from MH i2c: E2 03 00 [09:39:25]MH_I2C_Read... [09:39:25]Read from MH i2c: E2 03 00 D2 17 00 90 00 5D [09:39:25]RAPDU: 90 00 [09:39:25]wFMCommunicate OK [09:39:25]wFMCommunicate request_size=255 [09:39:25]MH_SAM_APDU [09:39: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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 5A 00 00 00 F4 03 04 00 4D 06 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3F D2 01 00 35 04 06 00 41 [09:39:25]Write to MH i2c: E2 02 01 D3 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 5A 00 00 00 F4 03 04 00 4D 06 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3F D2 01 00 35 04 06 00 41 00 00 90 [09:39:25]Write i2c OK [09:39:25]MH_I2C_Read... [09:39:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:25]Read from MH i2c: E2 [09:39:25]MH_I2C_Read... [09:39:25]Read from MH i2c: E2 03 00 [09:39:25]MH_I2C_Read... [09:39:25]Read from MH i2c: E2 03 00 D3 17 00 90 00 5E [09:39:25]RAPDU: 90 00 [09:39:25]wFMCommunicate OK [09:39:25]wFMCommunicate request_size=10 [09:39:25]MH_SAM_APDU [09:39:25]CAPDU: 80 0D 02 02 05 A9 F6 91 D7 4E [09:39:25]Write to MH i2c: E2 0D 00 D4 17 80 0D 02 02 05 00 A9 F6 91 D7 4E 00 00 C4 [09:39:25]Write i2c OK [09:39:25]MH_I2C_Read... [09:39:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:25]Read from MH i2c: E2 [09:39:25]MH_I2C_Read... [09:39:25]Read from MH i2c: E2 03 00 [09:39:25]MH_I2C_Read... [09:39:25]Read from MH i2c: E2 03 00 D4 17 00 90 00 5F [09:39:25]RAPDU: 90 00 [09:39:25]wFMCommunicate OK [09:39:25]wFMCommunicate request_size=4 [09:39:25]MH_SAM_APDU [09:39:25]CAPDU: 80 0D 03 02 [09:39:25]Write to MH i2c: E2 08 00 D5 17 80 0D 03 02 00 00 00 00 67 [09:39:25]Write i2c OK [09:39:25]MH_I2C_Read... [09:39:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:25]Read from MH i2c: E2 [09:39:25]MH_I2C_Read... [09:39:25]Read from MH i2c: E2 0B 00 [09:39:25]MH_I2C_Read... [09:39:25]Read from MH i2c: E2 0B 00 D5 17 00 27 5E 54 80 B5 A8 09 D6 90 00 FD [09:39:25]RAPDU: 27 5E 54 80 B5 A8 09 D6 90 00 [09:39:25]wFMCommunicate OK [09:39:25]SAM_PROTO_SignData done [09:39:25]FM_MakeSignedData done [09:39:25]CreateOFDProtocolMessage [09:39:25]wFMCommunicate request_size=4 [09:39:25]MH_SAM_APDU [09:39:25]CAPDU: 80 11 00 00 [09:39:25]Write to MH i2c: E2 08 00 D6 17 80 11 00 00 00 00 00 00 67 [09:39:25]Write i2c OK [09:39:25]MH_I2C_Read... [09:39:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:25]Read from MH i2c: E2 [09:39:25]MH_I2C_Read... [09:39:25]Read from MH i2c: E2 17 00 [09:39:25]MH_I2C_Read... [09:39:25]Read from MH i2c: E2 17 00 D6 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C2 [09:39:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:39:25]wFMCommunicate OK [09:39:25]CreateOFDProtocolMessage done [09:39:25]OFDSenderStorePacket 119359 [09:39:25]StoreOFDPacket docnum=119359 [09:39:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 5D 36 07 01 D6 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 5A 00 00 00 F4 03 04 00 4D 06 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3F D2 01 00 35 04 06 00 41 A9 F6 91 D7 4E 27 5E 54 80 B5 A8 09 D6 [09:39:25]CheckFolder [09:39:25]dirname=/storage/ofd_packets [09:39:25]CheckFolder done [09:39:25]ProducePacketName [09:39:25]name=ofd_packets/00119359 [09:39:25]NVStorageSaveData ofd_packets/00119359 [09:39:25]File name is /storage/ofd_packets/00119359 [09:39:25]Write 301 bytes [09:39:25]NVStorageSaveData done [09:39:25]OFDSenderStorePacket done [09:39:25]KKMCreateOFDPacket done [09:39:25]NVStorageSaveData kkm_last_timestamp [09:39:25]File name is /storage/kkm_last_timestamp [09:39:25]Write 4 bytes [09:39:25]NVStorageSaveData done [09:39:25]ExternCall_PrintAddStr [09:39:25]wPrintStart [09:39:25]Write to MH i2c: 01 00 00 D7 17 EE [09:39:25]Write i2c OK [09:39:25]MH_I2C_Read... [09:39:25]Read from MH i2c: 01 [09:39:25]MH_I2C_Read... [09:39:25]Read from MH i2c: 01 07 00 [09:39:25]MH_I2C_Read... [09:39:25]Read from MH i2c: 01 07 00 D7 17 00 00 00 00 00 FF 0F 03 [09:39:25]RasterBufferAndPrint [09:39:25]line Счет N : (1)950286 [09:39:25]line ИНН: 02508201610067 [09:39:25]line Контрольно-Кассовый Чек [09:39:25]line ПРОДАЖА [09:39:25]line ТРК (МРК, ГНК) : 41 [09:39:25]line Товар: 2710124130 [09:39:25]line Аи-92-К-4 [09:39:25]line 5.900 * 67.80 [09:39:25]line = 400.02 [09:39:25]line НДС 12% НСП 1% [09:39:25]line > о реализуемом товаре [09:39:25]line ОКРУГЛЕНИЕ: -0.02 [09:39:25]line ИТОГО: 400.00 [09:39:25]line Внесено: 400.00 [09:39:25]line СДАЧА: 0.00 [09:39:25]line НСП 1% : 3.54 [09:39:25]line НДС 12% : 42.48 [09:39:25]line Наличными: 400.00 [09:39:25]line Безнал.: 0.00 [09:39:25]line Место: АЗС № 134 "Партнер Нефть" [09:39:25]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:39:25]line СНО: Общий режим [09:39:25]line Чек 90 31.07.2024 09:39 [09:39:25]line Смена: 436 ФФД: 1.0 [09:39:25]line ЗНМ: 0300000044 [09:39:25]line РНМ: 0000000000092660 [09:39:25]line Версия ККМ: 001 [09:39:25]line ФМ: 0000000000874939 [09:39:25]line ФД: 119359 [09:39:25]line ФПД: 72198242031438 [09:39:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T093925&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119359&fm=72198242031438&tin=02508201610067®Number=0000000000092660&sum=40000 [09:39:25]written 0, free lines is 4095 [09:39:25]OFD Sender: Processing packet 119359 [packets to send 86, broken 85] [09:39:25]ProducePacketName [09:39:25]name=ofd_packets/00119359 [09:39:25]OFD Sender: To server: pG, [09:39:25]CommunicateWithHost lk.salyk.kg:30040 [09:39:25]ConnectInit lk.salyk.kg [09:39:25]Connected sock=10 [09:39:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 5D 36 07 01 D6 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 5A 00 00 00 F4 03 04 00 4D 06 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3F D2 01 00 35 04 06 00 41 A9 F6 91 D7 4E 27 5E 54 80 B5 A8 09 D6 [09:39:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 86 B1 47 00 8E 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3F D2 01 00 F4 03 04 00 D6 B3 A9 66 B6 04 01 00 00 12 77 61 EA D3 E9 FC 4F [09:39:25]CommunicateWithHost err = 0 [09:39:25]CheckOFDResponse [09:39:25]1017 (14) - 77093643461234 [09:39:25]1041 (16) - 0000000000874939 [09:39:25]1040 (4) - 119359 [09:39:25]1012 (4) - 31.07.2024 03:47 [09:39:25]1206 (1) - 0 [09:39:25]OFD Sender: Remove packet 119359 [09:39:25]ProducePacketName [09:39:25]name=ofd_packets/00119359 [09:39:25]NVStorageDeleteData [09:39:26]Write to MH i2c: 01 00 00 01 18 19 [09:39:26]Write i2c OK [09:39:26]MH_I2C_Read... [09:39:26]Read from MH i2c: 01 [09:39:26]MH_I2C_Read... [09:39:26]Read from MH i2c: 01 07 00 [09:39:26]MH_I2C_Read... [09:39:26]Read from MH i2c: 01 07 00 01 18 00 00 00 00 00 FB 0C 27 [09:39:26]RasterBufferAndPrint [09:39:26]line [09:39:26]line [09:39:26]line [09:39:26]line [09:39:26]line [09:39:26]written 0, free lines is 3329 [09:39:26]MH_Cut [09:39:26]Write to MH i2c: D1 01 00 08 18 01 F2 [09:39:26]Write i2c OK [09:39:26]MH_I2C_Read... [09:39:26]Read from MH i2c: D1 [09:39:26]MH_I2C_Read... [09:39:26]Read from MH i2c: D1 01 00 [09:39:26]MH_I2C_Read... [09:39:26]Read from MH i2c: D1 01 00 08 18 00 F1 [09:39:26]Write to MH i2c: 01 00 00 09 18 21 [09:39:26]Write i2c OK [09:39:26]MH_I2C_Read... [09:39:26]OFD Sender: No OFD packet to send [09:39:26]*** Cut start [09:39:26]*** Partial cut [09:39:26]*** CUTSNS_PIN = 1 [09:39:26]*** CUTSNS_PIN = 0 [09:39:26]*** Brake cut motor [09:39:27]Read from MH i2c: 01 [09:39:27]MH_I2C_Read... [09:39:27]*** Stop cut motor [09:39:27]*** Cut end [09:39:27]Read from MH i2c: 01 07 00 [09:39:27]MH_I2C_Read... [09:39:27]Read from MH i2c: 01 07 00 09 18 00 00 00 00 00 FF 0F 36 [09:39:27]process_action close_receipt done [09:39:27]requested_data is exist [09:39:27]produce_requested_data [09:39:27]requested_item fm.sn is exist - process it [09:39:27]wFMCommunicate request_size=4 [09:39:27]MH_SAM_APDU [09:39:27]CAPDU: 80 11 00 00 [09:39:27]Write to MH i2c: E2 08 00 0A 18 80 11 00 00 00 00 00 00 9C [09:39:27]Write i2c OK [09:39:27]MH_I2C_Read... [09:39:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:27]Read from MH i2c: E2 [09:39:27]MH_I2C_Read... [09:39:27]Read from MH i2c: E2 17 00 [09:39:27]MH_I2C_Read... [09:39:27]Read from MH i2c: E2 17 00 0A 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F7 [09:39:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:39:27]wFMCommunicate OK [09:39:27]requested_item fd.num is exist - process it [09:39:27]SAM_PROTO_GetFieldsCounters [09:39:27]wFMCommunicate request_size=4 [09:39:27]MH_SAM_APDU [09:39:27]CAPDU: 80 13 00 00 [09:39:27]Write to MH i2c: E2 08 00 0B 18 80 13 00 00 00 00 00 00 9F [09:39:27]Write i2c OK [09:39:27]MH_I2C_Read... [09:39:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:27]Read from MH i2c: E2 [09:39:27]MH_I2C_Read... [09:39:27]Read from MH i2c: E2 62 00 [09:39:27]MH_I2C_Read... [09:39:27]Read from MH i2c: E2 62 00 0B 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3F D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [09:39:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3F D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:39:27]wFMCommunicate OK [09:39:27]SAM_PROTO_GetFieldsCounters done [09:39:27]requested_item shift.num is exist - process it [09:39:27]requested_item shift.opened is exist - process it [09:39:27]req_shift_opened [09:39:27]FM_GetShiftState [09:39:27]SAM_PROTO_GetShiftState [09:39:27]wFMCommunicate request_size=4 [09:39:27]MH_SAM_APDU [09:39:27]CAPDU: 80 13 01 00 [09:39:27]Write to MH i2c: E2 08 00 0C 18 80 13 01 00 00 00 00 00 A1 [09:39:27]Write i2c OK [09:39:27]MH_I2C_Read... [09:39:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:27]Read from MH i2c: E2 [09:39:27]MH_I2C_Read... [09:39:27]Read from MH i2c: E2 0E 00 [09:39:27]MH_I2C_Read... [09:39:27]Read from MH i2c: E2 0E 00 0C 18 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 39 [09:39:27]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:39:27]wFMCommunicate OK [09:39:27]SAM_PROTO_GetShiftState done [09:39:27]FM_GetShiftState done [09:39:27]req_shift_opened done [09:39:27]requested_item shift.open_date is exist - process it [09:39:27]req_shift_open_date [09:39:27]req_shift_open_date done [09:39:27]produce_requested_data done [09:39:27]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119359,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [09:39:27]process_action_free close_receipt [09:39:27]json_value_free [09:39:27]json_value_free done [09:39:27]process_json_proto returns [09:39:27]Send response to host [09:39:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119359,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [09:39:27]free response buf [09:39:27]execute_script done [09:39:27]execute_script returns [09:39:27]free content buf [09:39:27]Sock 8.Close socket [09:39:27]Sock 8.Thread stoped [09:39:28]accept exits with 9 [09:39:28]New connection [09:39:28]New thread 3067194724 created [09:39:28]Thread 3067338084 joined [09:39:28]Waiting for new connection... [09:39:28] Sock 9.Parse request [09:39:28]Sock 9.Check first char [09:39:28]Sock 9.First char is OK [09:39:28]request: POST /json_proto HTTP/1.0 [09:39:28]Method: POST [09:39:28]URL: /json_proto [09:39:28]Method is POST - this is cgi request [09:39:28]url: /json_proto [09:39:28]query_string will be loaded in cgi processing [09:39:28]execute_cgi json_proto POST (null) [09:39:28]execute_cgi path=json_proto method=POST [09:39:28]POST find Content-Length [09:39:28]Host: 172.17.45.7:8080 [09:39:28]Content-Length: 835 [09:39:28]Content-Type: application/json [09:39:28] [09:39:28]POST finish read [09:39:28]Found Content-Length = 835 [09:39:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.53, "quantity" : 26.480, "sum" : 2000.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:28]execute_script... [09:39:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.53, "quantity" : 26.480, "sum" : 2000.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:28]POST & json_proto [09:39:28]process_json_proto [09:39:28]json parsed OK: [09:39:28]protocol is kg_v1.0 [09:39:28]action value=close_receipt [09:39:28]process_action close_receipt [09:39:28]cmd_close_receipt [09:39:28]MH_GetDate [09:39:28]Write to MH i2c: F0 00 00 0D 18 14 [09:39:28]Write i2c OK [09:39:28]MH_I2C_Read... [09:39:28]Read from MH i2c: F0 [09:39:28]MH_I2C_Read... [09:39:28]Read from MH i2c: F0 09 00 [09:39:28]MH_I2C_Read... [09:39:28]Read from MH i2c: F0 09 00 0D 18 00 52 06 AA 66 90 0F 3E 66 C8 [09:39:28]GetLastDocTimeStamp 1722418765 [09:39:28]current date 1722418770 [09:39:28]FM_GetShiftState [09:39:28]SAM_PROTO_GetShiftState [09:39:28]wFMCommunicate request_size=4 [09:39:28]MH_SAM_APDU [09:39:28]CAPDU: 80 13 01 00 [09:39:28]Write to MH i2c: E2 08 00 0E 18 80 13 01 00 00 00 00 00 A3 [09:39:28]Write i2c OK [09:39:28]MH_I2C_Read... [09:39:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:28]Read from MH i2c: E2 [09:39:28]MH_I2C_Read... [09:39:28]Read from MH i2c: E2 0E 00 [09:39:28]MH_I2C_Read... [09:39:28]Read from MH i2c: E2 0E 00 0E 18 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 3B [09:39:28]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:39:28]wFMCommunicate OK [09:39:28]SAM_PROTO_GetShiftState done [09:39:28]FM_GetShiftState done [09:39:28]opened in 1722384637 [09:39:28]opened+sec_in_day 1722471037 [09:39:28]quantity*price = 200003 [09:39:28]sum+1 = 200004 [09:39:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.39 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 91 31.07.2024 09:39 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874939 ФД: 119360 ФПД: 208909876175338 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T093930&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119360&fm=208909876175338&tin=02508201610067®Number=0000000000092660&sum=200000 [09:39:30]StoreToDocumentArchive [09:39:30]shift 436 fd 119360 [09:39:30]save to /storage/0436/doc_00119360 [09:39:30]save last doc name /storage/0436/doc_00119360 to /storage/kkm_last_doc_name [09:39:30]save OK [09:39:30]Clear old archive folders... [09:39:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:39:30]tlvbuf is 00AE3ED0 [09:39:30]SAM_PROTO_ClearQueue [09:39:30]wFMCommunicate request_size=4 [09:39:30]MH_SAM_APDU [09:39:30]CAPDU: 80 09 00 00 [09:39:30]Write to MH i2c: E2 08 00 1B 18 80 09 00 00 00 00 00 00 A5 [09:39:30]Write i2c OK [09:39:30]MH_I2C_Read... [09:39:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:30]Read from MH i2c: E2 [09:39:30]MH_I2C_Read... [09:39:30]Read from MH i2c: E2 03 00 [09:39:30]MH_I2C_Read... [09:39:30]Read from MH i2c: E2 03 00 1B 18 00 90 00 A7 [09:39:30]RAPDU: 90 00 [09:39:30]wFMCommunicate OK [09:39:30]SAM_PROTO_ClearQueue done [09:39:30]KKMCreateOFDPacket [09:39:30]OFDProtocolAddRootSTLVToBuf [09:39:30]FM_MakeSignedData [09:39:30]FM_MakeSignedData [09:39:30]SAM_PROTO_SignData [09:39:30]wFMCommunicate request_size=4 [09:39:30]MH_SAM_APDU [09:39:30]CAPDU: 80 0D 01 02 [09:39:30]Write to MH i2c: E2 08 00 1C 18 80 0D 01 02 00 00 00 00 AD [09:39:30]Write i2c OK [09:39:30]MH_I2C_Read... [09:39:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:30]Read from MH i2c: E2 [09:39:30]MH_I2C_Read... [09:39:30]Read from MH i2c: E2 03 00 [09:39:30]MH_I2C_Read... [09:39:30]Read from MH i2c: E2 03 00 1C 18 00 90 00 A8 [09:39:30]RAPDU: 90 00 [09:39:30]wFMCommunicate OK [09:39:30]wFMCommunicate request_size=255 [09:39:30]MH_SAM_APDU [09:39:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 67 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 43 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 52 06 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 40 D2 01 00 35 04 06 00 BE 00 9E F5 [09:39:30]Write to MH i2c: E2 02 01 1D 18 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 67 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 43 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 52 06 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 40 D2 01 00 35 04 06 00 BE 00 9E F5 00 00 92 [09:39:30]Write i2c OK [09:39:30]MH_I2C_Read... [09:39:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:30]Read from MH i2c: E2 [09:39:30]MH_I2C_Read... [09:39:30]Read from MH i2c: E2 03 00 [09:39:30]MH_I2C_Read... [09:39:30]Read from MH i2c: E2 03 00 1D 18 00 90 00 A9 [09:39:30]RAPDU: 90 00 [09:39:30]wFMCommunicate OK [09:39:30]wFMCommunicate request_size=7 [09:39:30]MH_SAM_APDU [09:39:30]CAPDU: 80 0D 02 02 02 A1 EA [09:39:30]Write to MH i2c: E2 0A 00 1E 18 80 0D 02 02 02 00 A1 EA 00 00 3F [09:39:30]Write i2c OK [09:39:30]MH_I2C_Read... [09:39:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:30]Read from MH i2c: E2 [09:39:30]MH_I2C_Read... [09:39:30]Read from MH i2c: E2 03 00 [09:39:30]MH_I2C_Read... [09:39:30]Read from MH i2c: E2 03 00 1E 18 00 90 00 AA [09:39:30]RAPDU: 90 00 [09:39:30]wFMCommunicate OK [09:39:30]wFMCommunicate request_size=4 [09:39:30]MH_SAM_APDU [09:39:30]CAPDU: 80 0D 03 02 [09:39:30]Write to MH i2c: E2 08 00 1F 18 80 0D 03 02 00 00 00 00 B2 [09:39:30]Write i2c OK [09:39:30]MH_I2C_Read... [09:39:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:30]Read from MH i2c: E2 [09:39:30]MH_I2C_Read... [09:39:30]Read from MH i2c: E2 0B 00 [09:39:30]MH_I2C_Read... [09:39:30]Read from MH i2c: E2 0B 00 1F 18 00 66 9B 0E 39 B5 83 39 8E 90 00 FA [09:39:30]RAPDU: 66 9B 0E 39 B5 83 39 8E 90 00 [09:39:30]wFMCommunicate OK [09:39:30]SAM_PROTO_SignData done [09:39:30]FM_MakeSignedData done [09:39:30]CreateOFDProtocolMessage [09:39:30]wFMCommunicate request_size=4 [09:39:30]MH_SAM_APDU [09:39:30]CAPDU: 80 11 00 00 [09:39:30]Write to MH i2c: E2 08 00 20 18 80 11 00 00 00 00 00 00 B2 [09:39:30]Write i2c OK [09:39:30]MH_I2C_Read... [09:39:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:30]Read from MH i2c: E2 [09:39:30]MH_I2C_Read... [09:39:30]Read from MH i2c: E2 17 00 [09:39:30]MH_I2C_Read... [09:39:30]Read from MH i2c: E2 17 00 20 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0D [09:39:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:39:30]wFMCommunicate OK [09:39:30]CreateOFDProtocolMessage done [09:39:30]OFDSenderStorePacket 119360 [09:39:30]StoreOFDPacket docnum=119360 [09:39:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 3B 84 04 01 99 27 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 67 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 43 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 52 06 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 40 D2 01 00 35 04 06 00 BE 00 9E F5 A1 EA 66 9B 0E 39 B5 83 39 8E [09:39:30]CheckFolder [09:39:30]dirname=/storage/ofd_packets [09:39:30]CheckFolder done [09:39:30]ProducePacketName [09:39:30]name=ofd_packets/00119360 [09:39:30]NVStorageSaveData ofd_packets/00119360 [09:39:30]File name is /storage/ofd_packets/00119360 [09:39:30]Write 298 bytes [09:39:30]NVStorageSaveData done [09:39:30]OFDSenderStorePacket done [09:39:30]KKMCreateOFDPacket done [09:39:30]NVStorageSaveData kkm_last_timestamp [09:39:30]File name is /storage/kkm_last_timestamp [09:39:30]Write 4 bytes [09:39:30]NVStorageSaveData done [09:39:30]ExternCall_PrintAddStr [09:39:30]wPrintStart [09:39:30]Write to MH i2c: 01 00 00 21 18 39 [09:39:31]Write i2c OK [09:39:31]MH_I2C_Read... [09:39:31]Read from MH i2c: 01 [09:39:31]MH_I2C_Read... [09:39:31]Read from MH i2c: 01 07 00 [09:39:31]MH_I2C_Read... [09:39:31]Read from MH i2c: 01 07 00 21 18 00 00 00 00 00 FF 0F 4E [09:39:31]RasterBufferAndPrint [09:39:31]line Счет N : (1)950284 [09:39:31]line ИНН: 02508201610067 [09:39:31]line Контрольно-Кассовый Чек [09:39:31]line ПРОДАЖА [09:39:31]line ТРК (МРК, ГНК) : 54 [09:39:31]line Товар: 2710194800 [09:39:31]line ДТ-К-5 [09:39:31]line 26.480 * 75.53 [09:39:31]line = 2000.03 [09:39:31]line НДС 12% НСП 1% [09:39:31]line > о реализуемом товаре [09:39:31]line ОКРУГЛЕНИЕ: -0.03 [09:39:31]line ИТОГО: 2000.00 [09:39:31]line НСП 1% : 17.70 [09:39:31]line НДС 12% : 212.39 [09:39:31]line Наличными: 0.00 [09:39:31]line Безнал.: 2000.00 [09:39:31]line Место: АЗС № 134 "Партнер Нефть" [09:39:31]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:39:31]line СНО: Общий режим [09:39:31]line Чек 91 31.07.2024 09:39 [09:39:31]line Смена: 436 ФФД: 1.0 [09:39:31]line ЗНМ: 0300000044 [09:39:31]line РНМ: 0000000000092660 [09:39:31]line Версия ККМ: 001 [09:39:31]line Платежная система: Бакай Банк [09:39:31]line ФМ: 0000000000874939 [09:39:31]line ФД: 119360 [09:39:31]line ФПД: 208909876175338 [09:39:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T093930&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119360&fm=208909876175338&tin=02508201610067®Number=0000000000092660&sum=200000 [09:39:31]written 0, free lines is 4095 [09:39:31]OFD Sender: Processing packet 119360 [packets to send 86, broken 85] [09:39:31]ProducePacketName [09:39:31]name=ofd_packets/00119360 [09:39:31]OFD Sender: To server: pG, [09:39:31]CommunicateWithHost lk.salyk.kg:30040 [09:39:31]ConnectInit lk.salyk.kg [09:39:31]Connected sock=10 [09:39: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 39 33 39 0C 01 00 00 3B 84 04 01 99 27 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 67 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 43 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 52 06 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 40 D2 01 00 35 04 06 00 BE 00 9E F5 A1 EA 66 9B 0E 39 B5 83 39 8E [09:39:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 EE B6 47 00 96 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 40 D2 01 00 F4 03 04 00 DC B3 A9 66 B6 04 01 00 00 73 5F C4 2D 3B D7 27 76 [09:39:31]CommunicateWithHost err = 0 [09:39:31]CheckOFDResponse [09:39:31]1017 (14) - 77093643461234 [09:39:31]1041 (16) - 0000000000874939 [09:39:31]1040 (4) - 119360 [09:39:31]1012 (4) - 31.07.2024 03:47 [09:39:31]1206 (1) - 0 [09:39:31]OFD Sender: Remove packet 119360 [09:39:31]ProducePacketName [09:39:31]name=ofd_packets/00119360 [09:39:31]NVStorageDeleteData [09:39:31]Write to MH i2c: 01 00 00 4B 18 63 [09:39:31]Write i2c OK [09:39:31]MH_I2C_Read... [09:39:31]Read from MH i2c: 01 [09:39:31]MH_I2C_Read... [09:39:31]Read from MH i2c: 01 07 00 [09:39:31]MH_I2C_Read... [09:39:31]Read from MH i2c: 01 07 00 4B 18 00 00 00 00 00 05 0D 7C [09:39:31]RasterBufferAndPrint [09:39:31]line [09:39:31]line [09:39:31]line [09:39:31]line [09:39:31]line [09:39:31]written 0, free lines is 3347 [09:39:31]MH_Cut [09:39:31]Write to MH i2c: D1 01 00 52 18 01 3C [09:39:31]Write i2c OK [09:39:31]MH_I2C_Read... [09:39:31]Read from MH i2c: D1 [09:39:31]MH_I2C_Read... [09:39:31]Read from MH i2c: D1 01 00 [09:39:31]MH_I2C_Read... [09:39:31]Read from MH i2c: D1 01 00 52 18 00 3B [09:39:31]Write to MH i2c: 01 00 00 53 18 6B [09:39:31]Write i2c OK [09:39:31]MH_I2C_Read... [09:39:31]OFD Sender: No OFD packet to send [09:39:32]*** Cut start [09:39:32]*** Partial cut [09:39:32]*** CUTSNS_PIN = 1 [09:39:32]*** CUTSNS_PIN = 0 [09:39:32]*** Brake cut motor [09:39:32]Read from MH i2c: 01 [09:39:32]MH_I2C_Read... [09:39:32]*** Stop cut motor [09:39:32]*** Cut end [09:39:32]Read from MH i2c: 01 07 00 [09:39:32]MH_I2C_Read... [09:39:32]Read from MH i2c: 01 07 00 53 18 00 00 00 00 00 FF 0F 80 [09:39:32]process_action close_receipt done [09:39:32]requested_data is exist [09:39:32]produce_requested_data [09:39:32]requested_item fm.sn is exist - process it [09:39:32]wFMCommunicate request_size=4 [09:39:32]MH_SAM_APDU [09:39:32]CAPDU: 80 11 00 00 [09:39:32]Write to MH i2c: E2 08 00 54 18 80 11 00 00 00 00 00 00 E6 [09:39:32]Write i2c OK [09:39:32]MH_I2C_Read... [09:39:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:32]Read from MH i2c: E2 [09:39:32]MH_I2C_Read... [09:39:32]Read from MH i2c: E2 17 00 [09:39:32]MH_I2C_Read... [09:39:32]Read from MH i2c: E2 17 00 54 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 41 [09:39:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:39:32]wFMCommunicate OK [09:39:32]requested_item fd.num is exist - process it [09:39:32]SAM_PROTO_GetFieldsCounters [09:39:32]wFMCommunicate request_size=4 [09:39:32]MH_SAM_APDU [09:39:32]CAPDU: 80 13 00 00 [09:39:32]Write to MH i2c: E2 08 00 55 18 80 13 00 00 00 00 00 00 E9 [09:39:32]Write i2c OK [09:39:32]MH_I2C_Read... [09:39:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:32]Read from MH i2c: E2 [09:39:32]MH_I2C_Read... [09:39:32]Read from MH i2c: E2 62 00 [09:39:32]MH_I2C_Read... [09:39:32]Read from MH i2c: E2 62 00 55 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 40 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [09:39:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 40 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:39:32]wFMCommunicate OK [09:39:32]SAM_PROTO_GetFieldsCounters done [09:39:32]requested_item shift.num is exist - process it [09:39:32]requested_item shift.opened is exist - process it [09:39:32]req_shift_opened [09:39:33]FM_GetShiftState [09:39:33]SAM_PROTO_GetShiftState [09:39:33]wFMCommunicate request_size=4 [09:39:33]MH_SAM_APDU [09:39:33]CAPDU: 80 13 01 00 [09:39:33]Write to MH i2c: E2 08 00 56 18 80 13 01 00 00 00 00 00 EB [09:39:33]Write i2c OK [09:39:33]MH_I2C_Read... [09:39:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:33]Read from MH i2c: E2 [09:39:33]MH_I2C_Read... [09:39:33]Read from MH i2c: E2 0E 00 [09:39:33]MH_I2C_Read... [09:39:33]Read from MH i2c: E2 0E 00 56 18 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 83 [09:39:33]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:39:33]wFMCommunicate OK [09:39:33]SAM_PROTO_GetShiftState done [09:39:33]FM_GetShiftState done [09:39:33]req_shift_opened done [09:39:33]requested_item shift.open_date is exist - process it [09:39:33]req_shift_open_date [09:39:33]req_shift_open_date done [09:39:33]produce_requested_data done [09:39:33]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119360,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [09:39:33]process_action_free close_receipt [09:39:33]json_value_free [09:39:33]json_value_free done [09:39:33]process_json_proto returns [09:39:33]Send response to host [09:39:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119360,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [09:39:33]free response buf [09:39:33]execute_script done [09:39:33]execute_script returns [09:39:33]free content buf [09:39:33]Sock 9.Close socket [09:39:33]Sock 9.Thread stoped [09:39:36]OFD Sender: No OFD packet to send [09:39:41]OFD Sender: No OFD packet to send [09:39:46]OFD Sender: No OFD packet to send [09:39:51]OFD Sender: No OFD packet to send [09:39:56]OFD Sender: No OFD packet to send [09:40:01]OFD Sender: No OFD packet to send [09:40:06]OFD Sender: No OFD packet to send [09:40:11]OFD Sender: No OFD packet to send [09:40:16]OFD Sender: No OFD packet to send [09:40:21]OFD Sender: No OFD packet to send [09:40:26]OFD Sender: No OFD packet to send [09:40:31]OFD Sender: No OFD packet to send [09:40:36]OFD Sender: No OFD packet to send [09:40:41]OFD Sender: No OFD packet to send [09:40:46]OFD Sender: No OFD packet to send [09:40:52]OFD Sender: No OFD packet to send [09:40:57]OFD Sender: No OFD packet to send [09:41:02]OFD Sender: No OFD packet to send [09:41:07]OFD Sender: No OFD packet to send [09:41:12]OFD Sender: No OFD packet to send [09:41:17]OFD Sender: No OFD packet to send [09:41:22]OFD Sender: No OFD packet to send [09:41:27]OFD Sender: No OFD packet to send [09:41:32]OFD Sender: No OFD packet to send [09:41:37]OFD Sender: No OFD packet to send [09:41:42]OFD Sender: No OFD packet to send [09:41:47]OFD Sender: No OFD packet to send [09:41:52]OFD Sender: No OFD packet to send [09:41:57]OFD Sender: No OFD packet to send [09:42:02]OFD Sender: No OFD packet to send [09:42:07]OFD Sender: No OFD packet to send [09:42:12]OFD Sender: No OFD packet to send [09:42:17]OFD Sender: No OFD packet to send [09:42:22]OFD Sender: No OFD packet to send [09:42:27]OFD Sender: No OFD packet to send [09:42:32]OFD Sender: No OFD packet to send [09:42:37]OFD Sender: No OFD packet to send [09:42:42]OFD Sender: No OFD packet to send [09:42:47]OFD Sender: No OFD packet to send [09:42:52]OFD Sender: No OFD packet to send [09:42:57]OFD Sender: No OFD packet to send [09:43:02]OFD Sender: No OFD packet to send [09:43:07]OFD Sender: No OFD packet to send [09:43:12]OFD Sender: No OFD packet to send [09:43:17]OFD Sender: No OFD packet to send [09:43:22]OFD Sender: No OFD packet to send [09:43:27]OFD Sender: No OFD packet to send [09:43:32]OFD Sender: No OFD packet to send [09:43:37]OFD Sender: No OFD packet to send [09:43:42]OFD Sender: No OFD packet to send [09:43:47]OFD Sender: No OFD packet to send [09:43:52]OFD Sender: No OFD packet to send [09:43:57]OFD Sender: No OFD packet to send [09:44:02]OFD Sender: No OFD packet to send [09:44:07]OFD Sender: No OFD packet to send [09:44:12]OFD Sender: No OFD packet to send [09:44:17]OFD Sender: No OFD packet to send [09:44:22]OFD Sender: No OFD packet to send [09:44:27]OFD Sender: No OFD packet to send [09:44:32]OFD Sender: No OFD packet to send [09:44:37]OFD Sender: No OFD packet to send [09:44:42]OFD Sender: No OFD packet to send [09:44:47]OFD Sender: No OFD packet to send [09:44:52]OFD Sender: No OFD packet to send [09:44:57]OFD Sender: No OFD packet to send [09:45:02]OFD Sender: No OFD packet to send [09:45:07]OFD Sender: No OFD packet to send [09:45:12]OFD Sender: No OFD packet to send [09:45:17]OFD Sender: No OFD packet to send [09:45:22]OFD Sender: No OFD packet to send [09:45:27]OFD Sender: No OFD packet to send [09:45:32]OFD Sender: No OFD packet to send [09:45:37]OFD Sender: No OFD packet to send [09:45:42]OFD Sender: No OFD packet to send [09:45:47]OFD Sender: No OFD packet to send [09:45:52]OFD Sender: No OFD packet to send [09:45:57]OFD Sender: No OFD packet to send [09:46:02]OFD Sender: No OFD packet to send [09:46:07]OFD Sender: No OFD packet to send [09:46:12]OFD Sender: No OFD packet to send [09:46:17]OFD Sender: No OFD packet to send [09:46:22]OFD Sender: No OFD packet to send [09:46:27]OFD Sender: No OFD packet to send [09:46:32]OFD Sender: No OFD packet to send [09:46:37]OFD Sender: No OFD packet to send [09:46:42]OFD Sender: No OFD packet to send [09:46:47]OFD Sender: No OFD packet to send [09:46:52]OFD Sender: No OFD packet to send [09:46:57]OFD Sender: No OFD packet to send [09:47:02]OFD Sender: No OFD packet to send [09:47:07]OFD Sender: No OFD packet to send [09:47:12]OFD Sender: No OFD packet to send [09:47:17]OFD Sender: No OFD packet to send [09:47:22]OFD Sender: No OFD packet to send [09:47:27]OFD Sender: No OFD packet to send [09:47:32]OFD Sender: No OFD packet to send [09:47:37]OFD Sender: No OFD packet to send [09:47:42]OFD Sender: No OFD packet to send [09:47:47]OFD Sender: No OFD packet to send [09:47:52]OFD Sender: No OFD packet to send [09:47:57]OFD Sender: No OFD packet to send [09:48:02]OFD Sender: No OFD packet to send [09:48:07]OFD Sender: No OFD packet to send [09:48:12]OFD Sender: No OFD packet to send [09:48:17]OFD Sender: No OFD packet to send [09:48:22]OFD Sender: No OFD packet to send [09:48:27]OFD Sender: No OFD packet to send [09:48:32]OFD Sender: No OFD packet to send [09:48:37]OFD Sender: No OFD packet to send [09:48:42]OFD Sender: No OFD packet to send [09:48:47]OFD Sender: No OFD packet to send [09:48:52]OFD Sender: No OFD packet to send [09:48:57]OFD Sender: No OFD packet to send [09:49:02]OFD Sender: No OFD packet to send [09:49:07]OFD Sender: No OFD packet to send [09:49:12]OFD Sender: No OFD packet to send [09:49:17]OFD Sender: No OFD packet to send [09:49:22]OFD Sender: No OFD packet to send [09:49:27]OFD Sender: No OFD packet to send [09:49:32]OFD Sender: No OFD packet to send [09:49:37]OFD Sender: No OFD packet to send [09:49:42]OFD Sender: No OFD packet to send [09:49:47]OFD Sender: No OFD packet to send [09:49:52]OFD Sender: No OFD packet to send [09:49:57]OFD Sender: No OFD packet to send [09:50:02]OFD Sender: No OFD packet to send [09:50:07]OFD Sender: No OFD packet to send [09:50:12]OFD Sender: No OFD packet to send [09:50:17]OFD Sender: No OFD packet to send [09:50:22]OFD Sender: No OFD packet to send [09:50:27]OFD Sender: No OFD packet to send [09:50:32]OFD Sender: No OFD packet to send [09:50:37]OFD Sender: No OFD packet to send [09:50:42]OFD Sender: No OFD packet to send [09:50:47]OFD Sender: No OFD packet to send [09:50:52]OFD Sender: No OFD packet to send [09:50:57]OFD Sender: No OFD packet to send [09:51:02]OFD Sender: No OFD packet to send [09:51:07]OFD Sender: No OFD packet to send [09:51:12]OFD Sender: No OFD packet to send [09:51:17]OFD Sender: No OFD packet to send [09:51:22]OFD Sender: No OFD packet to send [09:51:27]OFD Sender: No OFD packet to send [09:51:32]OFD Sender: No OFD packet to send [09:51:37]OFD Sender: No OFD packet to send [09:51:42]OFD Sender: No OFD packet to send [09:51:47]OFD Sender: No OFD packet to send [09:51:52]OFD Sender: No OFD packet to send [09:51:57]OFD Sender: No OFD packet to send [09:52:02]OFD Sender: No OFD packet to send [09:52:07]OFD Sender: No OFD packet to send [09:52:12]OFD Sender: No OFD packet to send [09:52:17]OFD Sender: No OFD packet to send [09:52:22]OFD Sender: No OFD packet to send [09:52:27]OFD Sender: No OFD packet to send [09:52:32]OFD Sender: No OFD packet to send [09:52:37]OFD Sender: No OFD packet to send [09:52:42]OFD Sender: No OFD packet to send [09:52:45]accept exits with 8 [09:52:45]New connection [09:52:45]New thread 3067338084 created [09:52:45]Thread 3067194724 joined [09:52:45]Waiting for new connection... [09:52:45] Sock 8.Parse request [09:52:45]Sock 8.Check first char [09:52:45]Sock 8.First char is OK [09:52:45]request: POST /json_proto HTTP/1.0 [09:52:45]Method: POST [09:52:45]URL: /json_proto [09:52:45]Method is POST - this is cgi request [09:52:45]url: /json_proto [09:52:45]query_string will be loaded in cgi processing [09:52:45]execute_cgi json_proto POST (null) [09:52:45]execute_cgi path=json_proto method=POST [09:52:45]POST find Content-Length [09:52:45]Host: 172.17.45.7:8080 [09:52:45]Content-Length: 682 [09:52:45]Content-Type: application/json [09:52:45] [09:52:45]POST finish read [09:52:45]Found Content-Length = 682 [09:52:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:45]execute_script... [09:52:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:45]POST & json_proto [09:52:45]process_json_proto [09:52:45]json parsed OK: [09:52:45]protocol is kg_v1.0 [09:52:45]action value=close_receipt [09:52:45]process_action close_receipt [09:52:45]cmd_close_receipt [09:52:45]MH_GetDate [09:52:45]Write to MH i2c: F0 00 00 57 18 5E [09:52:45]Write i2c OK [09:52:45]MH_I2C_Read... [09:52:45]Read from MH i2c: F0 [09:52:45]MH_I2C_Read... [09:52:45]Read from MH i2c: F0 09 00 [09:52:45]MH_I2C_Read... [09:52:45]Read from MH i2c: F0 09 00 57 18 00 6F 09 AA 66 90 0F 3E 66 32 [09:52:45]GetLastDocTimeStamp 1722418770 [09:52:45]current date 1722419567 [09:52:45]FM_GetShiftState [09:52:45]SAM_PROTO_GetShiftState [09:52:45]wFMCommunicate request_size=4 [09:52:45]MH_SAM_APDU [09:52:45]CAPDU: 80 13 01 00 [09:52:45]Write to MH i2c: E2 08 00 58 18 80 13 01 00 00 00 00 00 ED [09:52:45]Write i2c OK [09:52:45]MH_I2C_Read... [09:52:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:45]Read from MH i2c: E2 [09:52:45]MH_I2C_Read... [09:52:45]Read from MH i2c: E2 0E 00 [09:52:45]MH_I2C_Read... [09:52:45]Read from MH i2c: E2 0E 00 58 18 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 85 [09:52:45]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:52:45]wFMCommunicate OK [09:52:45]SAM_PROTO_GetShiftState done [09:52:45]FM_GetShiftState done [09:52:45]opened in 1722384637 [09:52:45]opened+sec_in_day 1722471037 [09:52:45]quantity*price = 100005 [09:52:45]sum+1 = 100006 [09:52:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 92 31.07.2024 09:52 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119361 ФПД: 183655409428046 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T095247&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119361&fm=183655409428046&tin=02508201610067®Number=0000000000092660&sum=100000 [09:52:46]StoreToDocumentArchive [09:52:46]shift 436 fd 119361 [09:52:46]save to /storage/0436/doc_00119361 [09:52:46]save last doc name /storage/0436/doc_00119361 to /storage/kkm_last_doc_name [09:52:46]save OK [09:52:46]Clear old archive folders... [09:52:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:52:46]tlvbuf is 00B1D4D0 [09:52:46]SAM_PROTO_ClearQueue [09:52:46]wFMCommunicate request_size=4 [09:52:46]MH_SAM_APDU [09:52:46]CAPDU: 80 09 00 00 [09:52:46]Write to MH i2c: E2 08 00 65 18 80 09 00 00 00 00 00 00 EF [09:52:46]Write i2c OK [09:52:46]MH_I2C_Read... [09:52:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:46]Read from MH i2c: E2 [09:52:46]MH_I2C_Read... [09:52:46]Read from MH i2c: E2 03 00 [09:52:46]MH_I2C_Read... [09:52:46]Read from MH i2c: E2 03 00 65 18 00 90 00 F1 [09:52:46]RAPDU: 90 00 [09:52:46]wFMCommunicate OK [09:52:46]SAM_PROTO_ClearQueue done [09:52:46]KKMCreateOFDPacket [09:52:46]OFDProtocolAddRootSTLVToBuf [09:52:46]FM_MakeSignedData [09:52:46]FM_MakeSignedData [09:52:46]SAM_PROTO_SignData [09:52:46]wFMCommunicate request_size=4 [09:52:46]MH_SAM_APDU [09:52:46]CAPDU: 80 0D 01 02 [09:52:46]Write to MH i2c: E2 08 00 66 18 80 0D 01 02 00 00 00 00 F7 [09:52:46]Write i2c OK [09:52:46]MH_I2C_Read... [09:52:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:46]Read from MH i2c: E2 [09:52:46]MH_I2C_Read... [09:52:46]Read from MH i2c: E2 03 00 [09:52:46]MH_I2C_Read... [09:52:46]Read from MH i2c: E2 03 00 66 18 00 90 00 F2 [09:52:46]RAPDU: 90 00 [09:52:46]wFMCommunicate OK [09:52:46]wFMCommunicate request_size=255 [09:52:46]MH_SAM_APDU [09:52:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 6F 09 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 41 D2 01 00 35 04 06 00 A7 [09:52:46]Write to MH i2c: E2 02 01 67 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 6F 09 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 41 D2 01 00 35 04 06 00 A7 00 00 5E [09:52:46]Write i2c OK [09:52:46]MH_I2C_Read... [09:52:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:46]Read from MH i2c: E2 [09:52:46]MH_I2C_Read... [09:52:46]Read from MH i2c: E2 03 00 [09:52:46]MH_I2C_Read... [09:52:46]Read from MH i2c: E2 03 00 67 18 00 90 00 F3 [09:52:46]RAPDU: 90 00 [09:52:46]wFMCommunicate OK [09:52:46]wFMCommunicate request_size=10 [09:52:46]MH_SAM_APDU [09:52:46]CAPDU: 80 0D 02 02 05 08 9B 70 A6 4E [09:52:46]Write to MH i2c: E2 0D 00 68 18 80 0D 02 02 05 00 08 9B 70 A6 4E 00 00 0B [09:52:46]Write i2c OK [09:52:46]MH_I2C_Read... [09:52:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:46]Read from MH i2c: E2 [09:52:46]MH_I2C_Read... [09:52:46]Read from MH i2c: E2 03 00 [09:52:46]MH_I2C_Read... [09:52:46]Read from MH i2c: E2 03 00 68 18 00 90 00 F4 [09:52:46]RAPDU: 90 00 [09:52:46]wFMCommunicate OK [09:52:46]wFMCommunicate request_size=4 [09:52:46]MH_SAM_APDU [09:52:46]CAPDU: 80 0D 03 02 [09:52:46]Write to MH i2c: E2 08 00 69 18 80 0D 03 02 00 00 00 00 FC [09:52:46]Write i2c OK [09:52:46]MH_I2C_Read... [09:52:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:46]Read from MH i2c: E2 [09:52:46]MH_I2C_Read... [09:52:46]Read from MH i2c: E2 0B 00 [09:52:46]MH_I2C_Read... [09:52:46]Read from MH i2c: E2 0B 00 69 18 00 63 10 FA 6A A7 4C D5 20 90 00 BC [09:52:46]RAPDU: 63 10 FA 6A A7 4C D5 20 90 00 [09:52:46]wFMCommunicate OK [09:52:46]SAM_PROTO_SignData done [09:52:46]FM_MakeSignedData done [09:52:46]CreateOFDProtocolMessage [09:52:46]wFMCommunicate request_size=4 [09:52:46]MH_SAM_APDU [09:52:46]CAPDU: 80 11 00 00 [09:52:46]Write to MH i2c: E2 08 00 6A 18 80 11 00 00 00 00 00 00 FC [09:52:46]Write i2c OK [09:52:46]MH_I2C_Read... [09:52:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:47]Read from MH i2c: E2 [09:52:47]MH_I2C_Read... [09:52:47]Read from MH i2c: E2 17 00 [09:52:47]MH_I2C_Read... [09:52:47]Read from MH i2c: E2 17 00 6A 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 57 [09:52:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:52:47]wFMCommunicate OK [09:52:47]CreateOFDProtocolMessage done [09:52:47]OFDSenderStorePacket 119361 [09:52:47]StoreOFDPacket docnum=119361 [09:52:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4C 87 07 01 FA C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 6F 09 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 41 D2 01 00 35 04 06 00 A7 08 9B 70 A6 4E 63 10 FA 6A A7 4C D5 20 [09:52:47]CheckFolder [09:52:47]dirname=/storage/ofd_packets [09:52:47]CheckFolder done [09:52:47]ProducePacketName [09:52:47]name=ofd_packets/00119361 [09:52:47]NVStorageSaveData ofd_packets/00119361 [09:52:47]File name is /storage/ofd_packets/00119361 [09:52:47]Write 301 bytes [09:52:47]NVStorageSaveData done [09:52:47]OFDSenderStorePacket done [09:52:47]KKMCreateOFDPacket done [09:52:47]NVStorageSaveData kkm_last_timestamp [09:52:47]File name is /storage/kkm_last_timestamp [09:52:47]Write 4 bytes [09:52:47]NVStorageSaveData done [09:52:47]ExternCall_PrintAddStr [09:52:47]wPrintStart [09:52:47]Write to MH i2c: 01 00 00 6B 18 83 [09:52:47]Write i2c OK [09:52:47]MH_I2C_Read... [09:52:47]Read from MH i2c: 01 [09:52:47]MH_I2C_Read... [09:52:47]Read from MH i2c: 01 07 00 [09:52:47]MH_I2C_Read... [09:52:47]Read from MH i2c: 01 07 00 6B 18 00 00 00 00 00 FF 0F 98 [09:52:47]RasterBufferAndPrint [09:52:47]line Счет N : (1)950287 [09:52:47]line ИНН: 02508201610067 [09:52:47]line Контрольно-Кассовый Чек [09:52:47]line ПРОДАЖА [09:52:47]line ТРК (МРК, ГНК) : 51 [09:52:47]line Товар: 2710124130 [09:52:47]line Аи-92-К-4 [09:52:47]line 14.750 * 67.80 [09:52:47]line = 1000.05 [09:52:47]line НДС 12% НСП 1% [09:52:47]line > о реализуемом товаре [09:52:47]line ОКРУГЛЕНИЕ: -0.05 [09:52:47]line ИТОГО: 1000.00 [09:52:47]line Внесено: 1000.00 [09:52:47]line СДАЧА: 0.00 [09:52:47]line НСП 1% : 8.85 [09:52:47]line НДС 12% : 106.20 [09:52:47]line Наличными: 1000.00 [09:52:47]line Безнал.: 0.00 [09:52:47]line Место: АЗС № 134 "Партнер Нефть" [09:52:47]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:52:47]line СНО: Общий режим [09:52:47]line Чек 92 31.07.2024 09:52 [09:52:47]line Смена: 436 ФФД: 1.0 [09:52:47]line ЗНМ: 0300000044 [09:52:47]line РНМ: 0000000000092660 [09:52:47]line Версия ККМ: 001 [09:52:47]line ФМ: 0000000000874939 [09:52:47]line ФД: 119361 [09:52:47]line ФПД: 183655409428046 [09:52:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T095247&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119361&fm=183655409428046&tin=02508201610067®Number=0000000000092660&sum=100000 [09:52:47]written 0, free lines is 4095 [09:52:47]OFD Sender: Processing packet 119361 [packets to send 86, broken 85] [09:52:47]ProducePacketName [09:52:47]name=ofd_packets/00119361 [09:52:47]OFD Sender: To server: pG, [09:52:47]CommunicateWithHost lk.salyk.kg:30040 [09:52:47]ConnectInit lk.salyk.kg [09:52:47]Connected sock=10 [09:52: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 39 33 39 0F 01 00 00 4C 87 07 01 FA C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 6F 09 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 41 D2 01 00 35 04 06 00 A7 08 9B 70 A6 4E 63 10 FA 6A A7 4C D5 20 [09:52:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 74 73 47 00 3D 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 41 D2 01 00 F4 03 04 00 F8 B6 A9 66 B6 04 01 00 00 51 02 3D 35 BB 55 58 85 [09:52:47]CommunicateWithHost err = 0 [09:52:47]CheckOFDResponse [09:52:47]1017 (14) - 77093643461234 [09:52:47]1041 (16) - 0000000000874939 [09:52:47]1040 (4) - 119361 [09:52:47]1012 (4) - 31.07.2024 04:00 [09:52:47]1206 (1) - 0 [09:52:47]OFD Sender: Remove packet 119361 [09:52:47]ProducePacketName [09:52:47]name=ofd_packets/00119361 [09:52:47]NVStorageDeleteData [09:52:47]Write to MH i2c: 01 00 00 95 18 AD [09:52:47]Write i2c OK [09:52:47]MH_I2C_Read... [09:52:47]Read from MH i2c: 01 [09:52:47]MH_I2C_Read... [09:52:47]Read from MH i2c: 01 07 00 [09:52:47]MH_I2C_Read... [09:52:47]Read from MH i2c: 01 07 00 95 18 00 00 00 00 00 DA 0C 9A [09:52:47]RasterBufferAndPrint [09:52:47]line [09:52:47]line [09:52:47]line [09:52:47]line [09:52:47]line [09:52:47]written 0, free lines is 3297 [09:52:47]MH_Cut [09:52:47]Write to MH i2c: D1 01 00 9C 18 01 86 [09:52:47]Write i2c OK [09:52:47]MH_I2C_Read... [09:52:47]Read from MH i2c: D1 [09:52:47]MH_I2C_Read... [09:52:47]Read from MH i2c: D1 01 00 [09:52:47]MH_I2C_Read... [09:52:47]Read from MH i2c: D1 01 00 9C 18 00 85 [09:52:47]Write to MH i2c: 01 00 00 9D 18 B5 [09:52:47]Write i2c OK [09:52:47]MH_I2C_Read... [09:52:48]OFD Sender: No OFD packet to send [09:52:48]*** Cut start [09:52:48]*** Partial cut [09:52:48]*** CUTSNS_PIN = 1 [09:52:48]*** CUTSNS_PIN = 0 [09:52:48]*** Brake cut motor [09:52:49]Read from MH i2c: 01 [09:52:49]MH_I2C_Read... [09:52:49]*** Stop cut motor [09:52:49]*** Cut end [09:52:49]Read from MH i2c: 01 07 00 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: 01 07 00 9D 18 00 00 00 00 00 FF 0F CA [09:52:49]process_action close_receipt done [09:52:49]requested_data is exist [09:52:49]produce_requested_data [09:52:49]requested_item fm.sn is exist - process it [09:52:49]wFMCommunicate request_size=4 [09:52:49]MH_SAM_APDU [09:52:49]CAPDU: 80 11 00 00 [09:52:49]Write to MH i2c: E2 08 00 9E 18 80 11 00 00 00 00 00 00 30 [09:52:49]Write i2c OK [09:52:49]MH_I2C_Read... [09:52:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:49]Read from MH i2c: E2 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: E2 17 00 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: E2 17 00 9E 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8B [09:52:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:52:49]wFMCommunicate OK [09:52:49]requested_item fd.num is exist - process it [09:52:49]SAM_PROTO_GetFieldsCounters [09:52:49]wFMCommunicate request_size=4 [09:52:49]MH_SAM_APDU [09:52:49]CAPDU: 80 13 00 00 [09:52:49]Write to MH i2c: E2 08 00 9F 18 80 13 00 00 00 00 00 00 33 [09:52:49]Write i2c OK [09:52:49]MH_I2C_Read... [09:52:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:49]Read from MH i2c: E2 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: E2 62 00 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: E2 62 00 9F 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 41 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [09:52: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 41 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:52:49]wFMCommunicate OK [09:52:49]SAM_PROTO_GetFieldsCounters done [09:52:49]requested_item shift.num is exist - process it [09:52:49]requested_item shift.opened is exist - process it [09:52:49]req_shift_opened [09:52:49]FM_GetShiftState [09:52:49]SAM_PROTO_GetShiftState [09:52:49]wFMCommunicate request_size=4 [09:52:49]MH_SAM_APDU [09:52:49]CAPDU: 80 13 01 00 [09:52:49]Write to MH i2c: E2 08 00 A0 18 80 13 01 00 00 00 00 00 35 [09:52:49]Write i2c OK [09:52:49]MH_I2C_Read... [09:52:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:49]Read from MH i2c: E2 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: E2 0E 00 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: E2 0E 00 A0 18 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 CD [09:52:49]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:52:49]wFMCommunicate OK [09:52:49]SAM_PROTO_GetShiftState done [09:52:49]FM_GetShiftState done [09:52:49]req_shift_opened done [09:52:49]requested_item shift.open_date is exist - process it [09:52:49]req_shift_open_date [09:52:49]req_shift_open_date done [09:52:49]produce_requested_data done [09:52:49]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119361,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [09:52:49]process_action_free close_receipt [09:52:49]json_value_free [09:52:49]json_value_free done [09:52:49]process_json_proto returns [09:52:49]Send response to host [09:52:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119361,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [09:52:49]free response buf [09:52:49]execute_script done [09:52:49]execute_script returns [09:52:49]free content buf [09:52:49]Sock 8.Close socket [09:52:49]Sock 8.Thread stoped [09:52:53]OFD Sender: No OFD packet to send [09:52:58]OFD Sender: No OFD packet to send [09:53:03]OFD Sender: No OFD packet to send [09:53:08]OFD Sender: No OFD packet to send [09:53:13]OFD Sender: No OFD packet to send [09:53:18]OFD Sender: No OFD packet to send [09:53:23]OFD Sender: No OFD packet to send [09:53:28]OFD Sender: No OFD packet to send [09:53:33]OFD Sender: No OFD packet to send [09:53:38]OFD Sender: No OFD packet to send [09:53:43]OFD Sender: No OFD packet to send [09:53:48]OFD Sender: No OFD packet to send [09:53:53]OFD Sender: No OFD packet to send [09:53:58]OFD Sender: No OFD packet to send [09:54:03]OFD Sender: No OFD packet to send [09:54:08]OFD Sender: No OFD packet to send [09:54:13]OFD Sender: No OFD packet to send [09:54:18]OFD Sender: No OFD packet to send [09:54:23]OFD Sender: No OFD packet to send [09:54:28]OFD Sender: No OFD packet to send [09:54:33]OFD Sender: No OFD packet to send [09:54:38]OFD Sender: No OFD packet to send [09:54:38]accept exits with 9 [09:54:38]New connection [09:54:38]New thread 3067194724 created [09:54:38]Thread 3067338084 joined [09:54:38]Waiting for new connection... [09:54:38] Sock 9.Parse request [09:54:38]Sock 9.Check first char [09:54:38]Sock 9.First char is OK [09:54:38]request: POST /json_proto HTTP/1.0 [09:54:38]Method: POST [09:54:38]URL: /json_proto [09:54:38]Method is POST - this is cgi request [09:54:38]url: /json_proto [09:54:38]query_string will be loaded in cgi processing [09:54:38]execute_cgi json_proto POST (null) [09:54:38]execute_cgi path=json_proto method=POST [09:54:38]POST find Content-Length [09:54:38]Host: 172.17.45.7:8080 [09:54:38]Content-Length: 822 [09:54:38]Content-Type: application/json [09:54:38] [09:54:38]POST finish read [09:54:38]Found Content-Length = 822 [09:54:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1500.00, "payments": [ { "type": 1, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:38]execute_script... [09:54:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1500.00, "payments": [ { "type": 1, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:38]POST & json_proto [09:54:38]process_json_proto [09:54:38]json parsed OK: [09:54:38]protocol is kg_v1.0 [09:54:38]action value=close_receipt [09:54:38]process_action close_receipt [09:54:38]cmd_close_receipt [09:54:38]MH_GetDate [09:54:38]Write to MH i2c: F0 00 00 A1 18 A8 [09:54:38]Write i2c OK [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: F0 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: F0 09 00 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: F0 09 00 A1 18 00 E0 09 AA 66 90 0F 3E 66 ED [09:54:38]GetLastDocTimeStamp 1722419567 [09:54:38]current date 1722419680 [09:54:38]FM_GetShiftState [09:54:38]SAM_PROTO_GetShiftState [09:54:38]wFMCommunicate request_size=4 [09:54:38]MH_SAM_APDU [09:54:38]CAPDU: 80 13 01 00 [09:54:38]Write to MH i2c: E2 08 00 A2 18 80 13 01 00 00 00 00 00 37 [09:54:38]Write i2c OK [09:54:38]MH_I2C_Read... [09:54:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:38]Read from MH i2c: E2 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: E2 0E 00 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: E2 0E 00 A2 18 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 CF [09:54:38]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:54:38]wFMCommunicate OK [09:54:38]SAM_PROTO_GetShiftState done [09:54:38]FM_GetShiftState done [09:54:38]opened in 1722384637 [09:54:38]opened+sec_in_day 1722471037 [09:54:38]quantity*price = 150041 [09:54:38]sum+1 = 150042 [09:54:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1500.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 0.00 Безнал.: 1500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 93 31.07.2024 09:54 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119362 ФПД: 79965183939141 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T095440&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119362&fm=79965183939141&tin=02508201610067®Number=0000000000092660&sum=150000 [09:54:40]StoreToDocumentArchive [09:54:40]shift 436 fd 119362 [09:54:40]save to /storage/0436/doc_00119362 [09:54:40]save last doc name /storage/0436/doc_00119362 to /storage/kkm_last_doc_name [09:54:40]save OK [09:54:40]Clear old archive folders... [09:54:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:54:40]tlvbuf is 00B1CEB0 [09:54:40]SAM_PROTO_ClearQueue [09:54:40]wFMCommunicate request_size=4 [09:54:40]MH_SAM_APDU [09:54:40]CAPDU: 80 09 00 00 [09:54:40]Write to MH i2c: E2 08 00 AF 18 80 09 00 00 00 00 00 00 39 [09:54:40]Write i2c OK [09:54:40]MH_I2C_Read... [09:54:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:54:40]Read from MH i2c: E2 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 03 00 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 03 00 AF 18 00 90 00 3B [09:54:40]RAPDU: 90 00 [09:54:40]wFMCommunicate OK [09:54:40]SAM_PROTO_ClearQueue done [09:54:40]KKMCreateOFDPacket [09:54:40]OFDProtocolAddRootSTLVToBuf [09:54:40]FM_MakeSignedData [09:54:40]FM_MakeSignedData [09:54:40]SAM_PROTO_SignData [09:54:40]wFMCommunicate request_size=4 [09:54:40]MH_SAM_APDU [09:54:40]CAPDU: 80 0D 01 02 [09:54:40]Write to MH i2c: E2 08 00 B0 18 80 0D 01 02 00 00 00 00 41 [09:54:40]Write i2c OK [09:54:40]MH_I2C_Read... [09:54:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:54:40]Read from MH i2c: E2 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 03 00 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 03 00 B0 18 00 90 00 3C [09:54:40]RAPDU: 90 00 [09:54:40]wFMCommunicate OK [09:54:40]wFMCommunicate request_size=255 [09:54:40]MH_SAM_APDU [09:54:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 E0 09 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 42 D2 01 00 35 04 06 00 48 [09:54:40]Write to MH i2c: E2 02 01 B1 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 E0 09 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 42 D2 01 00 35 04 06 00 48 00 00 A2 [09:54:40]Write i2c OK [09:54:40]MH_I2C_Read... [09:54:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:40]Read from MH i2c: E2 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 03 00 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 03 00 B1 18 00 90 00 3D [09:54:40]RAPDU: 90 00 [09:54:40]wFMCommunicate OK [09:54:40]wFMCommunicate request_size=10 [09:54:40]MH_SAM_APDU [09:54:40]CAPDU: 80 0D 02 02 05 BA 58 62 12 45 [09:54:40]Write to MH i2c: E2 0D 00 B2 18 80 0D 02 02 05 00 BA 58 62 12 45 00 00 19 [09:54:40]Write i2c OK [09:54:40]MH_I2C_Read... [09:54:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:40]Read from MH i2c: E2 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 03 00 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 03 00 B2 18 00 90 00 3E [09:54:40]RAPDU: 90 00 [09:54:40]wFMCommunicate OK [09:54:40]wFMCommunicate request_size=4 [09:54:40]MH_SAM_APDU [09:54:40]CAPDU: 80 0D 03 02 [09:54:40]Write to MH i2c: E2 08 00 B3 18 80 0D 03 02 00 00 00 00 46 [09:54:40]Write i2c OK [09:54:40]MH_I2C_Read... [09:54:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:54:40]Read from MH i2c: E2 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 0B 00 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 0B 00 B3 18 00 0C D1 85 87 F4 0F A5 51 90 00 29 [09:54:40]RAPDU: 0C D1 85 87 F4 0F A5 51 90 00 [09:54:40]wFMCommunicate OK [09:54:40]SAM_PROTO_SignData done [09:54:40]FM_MakeSignedData done [09:54:40]CreateOFDProtocolMessage [09:54:40]wFMCommunicate request_size=4 [09:54:40]MH_SAM_APDU [09:54:40]CAPDU: 80 11 00 00 [09:54:40]Write to MH i2c: E2 08 00 B4 18 80 11 00 00 00 00 00 00 46 [09:54:40]Write i2c OK [09:54:40]MH_I2C_Read... [09:54:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:40]Read from MH i2c: E2 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 17 00 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 17 00 B4 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A1 [09:54:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:54:40]wFMCommunicate OK [09:54:40]CreateOFDProtocolMessage done [09:54:40]OFDSenderStorePacket 119362 [09:54:40]StoreOFDPacket docnum=119362 [09:54:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 0D 11 07 01 A9 DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 E0 09 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 42 D2 01 00 35 04 06 00 48 BA 58 62 12 45 0C D1 85 87 F4 0F A5 51 [09:54:40]CheckFolder [09:54:40]dirname=/storage/ofd_packets [09:54:40]CheckFolder done [09:54:40]ProducePacketName [09:54:40]name=ofd_packets/00119362 [09:54:40]NVStorageSaveData ofd_packets/00119362 [09:54:40]File name is /storage/ofd_packets/00119362 [09:54:40]Write 301 bytes [09:54:40]NVStorageSaveData done [09:54:40]OFDSenderStorePacket done [09:54:40]KKMCreateOFDPacket done [09:54:40]NVStorageSaveData kkm_last_timestamp [09:54:40]File name is /storage/kkm_last_timestamp [09:54:40]Write 4 bytes [09:54:40]NVStorageSaveData done [09:54:40]ExternCall_PrintAddStr [09:54:40]wPrintStart [09:54:40]Write to MH i2c: 01 00 00 B5 18 CD [09:54:40]Write i2c OK [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: 01 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: 01 07 00 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: 01 07 00 B5 18 00 00 00 00 00 FF 0F E2 [09:54:40]RasterBufferAndPrint [09:54:40]line Счет N : (1)950288 [09:54:40]line ИНН: 02508201610067 [09:54:40]line Контрольно-Кассовый Чек [09:54:40]line ПРОДАЖА [09:54:40]line ТРК (МРК, ГНК) : 31 [09:54:40]line Товар: 2710124130 [09:54:40]line Аи-92-К-4 [09:54:40]line 22.130 * 67.80 [09:54:40]line = 1500.41 [09:54:40]line НДС 12% НСП 1% [09:54:40]line > о реализуемом товаре [09:54:40]line ОКРУГЛЕНИЕ: -0.41 [09:54:40]line ИТОГО: 1500.00 [09:54:40]line НСП 1% : 13.28 [09:54:40]line НДС 12% : 159.34 [09:54:40]line Наличными: 0.00 [09:54:40]line Безнал.: 1500.00 [09:54:40]line Место: АЗС № 134 "Партнер Нефть" [09:54:40]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:54:40]line СНО: Общий режим [09:54:40]line Чек 93 31.07.2024 09:54 [09:54:40]line Смена: 436 ФФД: 1.0 [09:54:40]line ЗНМ: 0300000044 [09:54:40]line РНМ: 0000000000092660 [09:54:40]line Версия ККМ: 001 [09:54:40]line Платежная система: O! деньги [09:54:40]line ФМ: 0000000000874939 [09:54:40]line ФД: 119362 [09:54:40]line ФПД: 79965183939141 [09:54:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T095440&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119362&fm=79965183939141&tin=02508201610067®Number=0000000000092660&sum=150000 [09:54:40]OFD Sender: Processing packet 119362 [packets to send 86, broken 85] [09:54:40]ProducePacketName [09:54:40]name=ofd_packets/00119362 [09:54:40]OFD Sender: To server: pG, [09:54:40]CommunicateWithHost lk.salyk.kg:30040 [09:54:40]ConnectInit lk.salyk.kg [09:54:40]written 0, free lines is 4095 [09:54:41]Connected sock=10 [09:54: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 39 33 39 0F 01 00 00 0D 11 07 01 A9 DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 E0 09 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 42 D2 01 00 35 04 06 00 48 BA 58 62 12 45 0C D1 85 87 F4 0F A5 51 [09:54:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A7 B7 47 00 AC C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 39 33 39 10 04 04 00 42 D2 01 00 F4 03 04 00 6A B7 A9 66 B6 04 01 00 00 10 0A AE AD CC E9 DF A7 [09:54:41]CommunicateWithHost err = 0 [09:54:41]CheckOFDResponse [09:54:41]1017 (14) - 77093643461234 [09:54:41]1041 (16) - 0000000000874939 [09:54:41]1040 (4) - 119362 [09:54:41]1012 (4) - 31.07.2024 04:02 [09:54:41]1206 (1) - 0 [09:54:41]OFD Sender: Remove packet 119362 [09:54:41]ProducePacketName [09:54:41]name=ofd_packets/00119362 [09:54:41]NVStorageDeleteData [09:54:41]Write to MH i2c: 01 00 00 DF 18 F7 [09:54:41]Write i2c OK [09:54:41]MH_I2C_Read... [09:54:41]Read from MH i2c: 01 [09:54:41]MH_I2C_Read... [09:54:41]Read from MH i2c: 01 07 00 [09:54:41]MH_I2C_Read... [09:54:41]Read from MH i2c: 01 07 00 DF 18 00 00 00 00 00 E5 0C EF [09:54:41]RasterBufferAndPrint [09:54:41]line [09:54:41]line [09:54:41]line [09:54:41]line [09:54:41]line [09:54:41]written 0, free lines is 3307 [09:54:41]MH_Cut [09:54:41]Write to MH i2c: D1 01 00 E6 18 01 D0 [09:54:41]Write i2c OK [09:54:41]MH_I2C_Read... [09:54:41]Read from MH i2c: D1 [09:54:41]MH_I2C_Read... [09:54:41]Read from MH i2c: D1 01 00 [09:54:41]MH_I2C_Read... [09:54:41]Read from MH i2c: D1 01 00 E6 18 00 CF [09:54:41]Write to MH i2c: 01 00 00 E7 18 FF [09:54:41]Write i2c OK [09:54:41]MH_I2C_Read... [09:54:41]OFD Sender: No OFD packet to send [09:54:42]*** Cut start [09:54:42]*** Partial cut [09:54:42]*** CUTSNS_PIN = 1 [09:54:42]*** CUTSNS_PIN = 0 [09:54:42]*** Brake cut motor [09:54:42]Read from MH i2c: 01 [09:54:42]MH_I2C_Read... [09:54:42]*** Stop cut motor [09:54:42]*** Cut end [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 E7 18 00 00 00 00 00 FF 0F 14 [09:54:42]process_action close_receipt done [09:54:42]requested_data is exist [09:54:42]produce_requested_data [09:54:42]requested_item fm.sn is exist - process it [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 E8 18 80 11 00 00 00 00 00 00 7A [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 E8 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D5 [09:54:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:54:42]wFMCommunicate OK [09:54:42]requested_item fd.num is exist - process it [09:54:42]SAM_PROTO_GetFieldsCounters [09:54:42]wFMCommunicate request_size=4 [09:54:42]MH_SAM_APDU [09:54:42]CAPDU: 80 13 00 00 [09:54:42]Write to MH i2c: E2 08 00 E9 18 80 13 00 00 00 00 00 00 7D [09:54:42]Write i2c OK [09:54:42]MH_I2C_Read... [09:54:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:54:42]Read from MH i2c: E2 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 62 00 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 62 00 E9 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 42 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [09:54:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 42 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:54:42]wFMCommunicate OK [09:54:42]SAM_PROTO_GetFieldsCounters done [09:54:42]requested_item shift.num is exist - process it [09:54:42]requested_item shift.opened is exist - process it [09:54:42]req_shift_opened [09:54:42]FM_GetShiftState [09:54:42]SAM_PROTO_GetShiftState [09:54:42]wFMCommunicate request_size=4 [09:54:42]MH_SAM_APDU [09:54:42]CAPDU: 80 13 01 00 [09:54:42]Write to MH i2c: E2 08 00 EA 18 80 13 01 00 00 00 00 00 7F [09:54:42]Write i2c OK [09:54:42]MH_I2C_Read... [09:54:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:42]Read from MH i2c: E2 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 0E 00 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 0E 00 EA 18 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 17 [09:54:42]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [09:54:42]wFMCommunicate OK [09:54:42]SAM_PROTO_GetShiftState done [09:54:42]FM_GetShiftState done [09:54:42]req_shift_opened done [09:54:42]requested_item shift.open_date is exist - process it [09:54:42]req_shift_open_date [09:54:42]req_shift_open_date done [09:54:42]produce_requested_data done [09:54:42]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119362,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [09:54:42]process_action_free close_receipt [09:54:42]json_value_free [09:54:42]json_value_free done [09:54:42]process_json_proto returns [09:54:43]Send response to host [09:54:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119362,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [09:54:43]free response buf [09:54:43]execute_script done [09:54:43]execute_script returns [09:54:43]free content buf [09:54:43]Sock 9.Close socket [09:54:43]Sock 9.Thread stoped [09:54:46]OFD Sender: No OFD packet to send [09:54:51]OFD Sender: No OFD packet to send [09:54:56]OFD Sender: No OFD packet to send [09:55:01]OFD Sender: No OFD packet to send [09:55:06]OFD Sender: No OFD packet to send [09:55:11]OFD Sender: No OFD packet to send [09:55:16]OFD Sender: No OFD packet to send [09:55:21]OFD Sender: No OFD packet to send [09:55:26]OFD Sender: No OFD packet to send [09:55:31]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:42]OFD Sender: No OFD packet to send [09:56:47]OFD Sender: No OFD packet to send [09:56:52]OFD Sender: No OFD packet to send [09:56:57]OFD Sender: No OFD packet to send [09:57:02]OFD Sender: No OFD packet to send [09:57:07]OFD Sender: No OFD packet to send [09:57:12]OFD Sender: No OFD packet to send [09:57:17]OFD Sender: No OFD packet to send [09:57:22]OFD Sender: No OFD packet to send [09:57:27]OFD Sender: No OFD packet to send [09:57:32]OFD Sender: No OFD packet to send [09:57:37]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: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: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:23]accept exits with 8 [10:00:23]New connection [10:00:23]New thread 3067338084 created [10:00:23]Thread 3067194724 joined [10:00:23]Waiting for new connection... [10:00:23] Sock 8.Parse request [10:00:23]Sock 8.Check first char [10:00:23]Sock 8.First char is OK [10:00:23]request: POST /json_proto HTTP/1.0 [10:00:23]Method: POST [10:00:23]URL: /json_proto [10:00:23]Method is POST - this is cgi request [10:00:23]url: /json_proto [10:00:23]query_string will be loaded in cgi processing [10:00:23]execute_cgi json_proto POST (null) [10:00:23]execute_cgi path=json_proto method=POST [10:00:23]POST find Content-Length [10:00:23]Host: 172.17.45.7:8080 [10:00:23]Content-Length: 819 [10:00:23]Content-Type: application/json [10:00:23] [10:00:23]POST finish read [10:00:23]Found Content-Length = 819 [10:00:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.770, "sum" : 1201.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1201.00, "payments": [ { "type": 1, "sum" : 1201.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:23]execute_script... [10:00: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)950289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.770, "sum" : 1201.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1201.00, "payments": [ { "type": 1, "sum" : 1201.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:23]POST & json_proto [10:00:23]process_json_proto [10:00:23]json parsed OK: [10:00:23]protocol is kg_v1.0 [10:00:23]action value=close_receipt [10:00:23]process_action close_receipt [10:00:23]cmd_close_receipt [10:00:23]MH_GetDate [10:00:23]Write to MH i2c: F0 00 00 EB 18 F2 [10:00:23]Write i2c OK [10:00:23]MH_I2C_Read... [10:00:23]Read from MH i2c: F0 [10:00:23]MH_I2C_Read... [10:00:23]Read from MH i2c: F0 09 00 [10:00:23]MH_I2C_Read... [10:00:23]Read from MH i2c: F0 09 00 EB 18 00 39 0B AA 66 90 0F 3E 66 92 [10:00:23]GetLastDocTimeStamp 1722419680 [10:00:23]current date 1722420025 [10:00:23]FM_GetShiftState [10:00:23]SAM_PROTO_GetShiftState [10:00:23]wFMCommunicate request_size=4 [10:00:23]MH_SAM_APDU [10:00:23]CAPDU: 80 13 01 00 [10:00:23]Write to MH i2c: E2 08 00 EC 18 80 13 01 00 00 00 00 00 81 [10:00:23]Write i2c OK [10:00:23]MH_I2C_Read... [10:00:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:23]Read from MH i2c: E2 [10:00:23]MH_I2C_Read... [10:00:23]Read from MH i2c: E2 0E 00 [10:00:23]MH_I2C_Read... [10:00:23]Read from MH i2c: E2 0E 00 EC 18 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 19 [10:00:23]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:00:23]wFMCommunicate OK [10:00:23]SAM_PROTO_GetShiftState done [10:00:23]FM_GetShiftState done [10:00:23]opened in 1722384637 [10:00:23]opened+sec_in_day 1722471037 [10:00:23]quantity*price = 120167 [10:00:23]sum+1 = 120168 [10:00:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 1201.00 НСП 1% : 10.63 НДС 12% : 127.61 Наличными: 0.00 Безнал.: 1201.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 94 31.07.2024 10:00 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119363 ФПД: 47848430540594 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T100025&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119363&fm=47848430540594&tin=02508201610067®Number=0000000000092660&sum=120100 [10:00:24]StoreToDocumentArchive [10:00:24]shift 436 fd 119363 [10:00:24]save to /storage/0436/doc_00119363 [10:00:24]save last doc name /storage/0436/doc_00119363 to /storage/kkm_last_doc_name [10:00:24]save OK [10:00:24]Clear old archive folders... [10:00:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:00:24]tlvbuf is B6F1F6D0 [10:00:24]SAM_PROTO_ClearQueue [10:00:24]wFMCommunicate request_size=4 [10:00:24]MH_SAM_APDU [10:00:24]CAPDU: 80 09 00 00 [10:00:24]Write to MH i2c: E2 08 00 F9 18 80 09 00 00 00 00 00 00 83 [10:00:24]Write i2c OK [10:00:24]MH_I2C_Read... [10:00:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:24]Read from MH i2c: E2 [10:00:24]MH_I2C_Read... [10:00:24]Read from MH i2c: E2 03 00 [10:00:24]MH_I2C_Read... [10:00:24]Read from MH i2c: E2 03 00 F9 18 00 90 00 85 [10:00:24]RAPDU: 90 00 [10:00:24]wFMCommunicate OK [10:00:24]SAM_PROTO_ClearQueue done [10:00:24]KKMCreateOFDPacket [10:00:24]OFDProtocolAddRootSTLVToBuf [10:00:24]FM_MakeSignedData [10:00:24]FM_MakeSignedData [10:00:24]SAM_PROTO_SignData [10:00:24]wFMCommunicate request_size=4 [10:00:24]MH_SAM_APDU [10:00:24]CAPDU: 80 0D 01 02 [10:00:24]Write to MH i2c: E2 08 00 FA 18 80 0D 01 02 00 00 00 00 8B [10:00:24]Write i2c OK [10:00:24]MH_I2C_Read... [10:00:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:24]Read from MH i2c: E2 [10:00:24]MH_I2C_Read... [10:00:24]Read from MH i2c: E2 03 00 [10:00:24]MH_I2C_Read... [10:00:24]Read from MH i2c: E2 03 00 FA 18 00 90 00 86 [10:00:24]RAPDU: 90 00 [10:00:24]wFMCommunicate OK [10:00:24]wFMCommunicate request_size=255 [10:00:24]MH_SAM_APDU [10:00:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9A 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 67 D5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 D5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 D5 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 39 0B AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 43 D2 01 00 35 04 06 00 2B 84 94 B4 [10:00:24]Write to MH i2c: E2 02 01 FB 18 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9A 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 67 D5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 D5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 D5 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 39 0B AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 43 D2 01 00 35 04 06 00 2B 84 94 B4 00 00 85 [10:00:24]Write i2c OK [10:00:24]MH_I2C_Read... [10:00:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:25]Read from MH i2c: E2 [10:00:25]MH_I2C_Read... [10:00:25]Read from MH i2c: E2 03 00 [10:00:25]MH_I2C_Read... [10:00:25]Read from MH i2c: E2 03 00 FB 18 00 90 00 87 [10:00:25]RAPDU: 90 00 [10:00:25]wFMCommunicate OK [10:00:25]wFMCommunicate request_size=7 [10:00:25]MH_SAM_APDU [10:00:25]CAPDU: 80 0D 02 02 02 97 32 [10:00:25]Write to MH i2c: E2 0A 00 FC 18 80 0D 02 02 02 00 97 32 00 00 5B [10:00:25]Write i2c OK [10:00:25]MH_I2C_Read... [10:00:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:25]Read from MH i2c: E2 [10:00:25]MH_I2C_Read... [10:00:25]Read from MH i2c: E2 03 00 [10:00:25]MH_I2C_Read... [10:00:25]Read from MH i2c: E2 03 00 FC 18 00 90 00 88 [10:00:25]RAPDU: 90 00 [10:00:25]wFMCommunicate OK [10:00:25]wFMCommunicate request_size=4 [10:00:25]MH_SAM_APDU [10:00:25]CAPDU: 80 0D 03 02 [10:00:25]Write to MH i2c: E2 08 00 FD 18 80 0D 03 02 00 00 00 00 90 [10:00:25]Write i2c OK [10:00:25]MH_I2C_Read... [10:00:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:25]Read from MH i2c: E2 [10:00:25]MH_I2C_Read... [10:00:25]Read from MH i2c: E2 0B 00 [10:00:25]MH_I2C_Read... [10:00:25]Read from MH i2c: E2 0B 00 FD 18 00 3C 6C 6F 36 5A C5 52 A2 90 00 F1 [10:00:25]RAPDU: 3C 6C 6F 36 5A C5 52 A2 90 00 [10:00:25]wFMCommunicate OK [10:00:25]SAM_PROTO_SignData done [10:00:25]FM_MakeSignedData done [10:00:25]CreateOFDProtocolMessage [10:00:25]wFMCommunicate request_size=4 [10:00:25]MH_SAM_APDU [10:00:25]CAPDU: 80 11 00 00 [10:00:25]Write to MH i2c: E2 08 00 FE 18 80 11 00 00 00 00 00 00 90 [10:00:25]Write i2c OK [10:00:25]MH_I2C_Read... [10:00:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:25]Read from MH i2c: E2 [10:00:25]MH_I2C_Read... [10:00:25]Read from MH i2c: E2 17 00 [10:00:25]MH_I2C_Read... [10:00:25]Read from MH i2c: E2 17 00 FE 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EB [10:00:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:00:25]wFMCommunicate OK [10:00:25]CreateOFDProtocolMessage done [10:00:25]OFDSenderStorePacket 119363 [10:00:25]StoreOFDPacket docnum=119363 [10:00:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 96 A4 04 01 3E A9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9A 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 67 D5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 D5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 D5 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 39 0B AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 43 D2 01 00 35 04 06 00 2B 84 94 B4 97 32 3C 6C 6F 36 5A C5 52 A2 [10:00:25]CheckFolder [10:00:25]dirname=/storage/ofd_packets [10:00:25]CheckFolder done [10:00:25]ProducePacketName [10:00:25]name=ofd_packets/00119363 [10:00:25]NVStorageSaveData ofd_packets/00119363 [10:00:25]File name is /storage/ofd_packets/00119363 [10:00:25]Write 298 bytes [10:00:25]NVStorageSaveData done [10:00:25]OFDSenderStorePacket done [10:00:25]KKMCreateOFDPacket done [10:00:25]NVStorageSaveData kkm_last_timestamp [10:00:25]File name is /storage/kkm_last_timestamp [10:00:25]Write 4 bytes [10:00:25]NVStorageSaveData done [10:00:25]ExternCall_PrintAddStr [10:00:25]wPrintStart [10:00:25]Write to MH i2c: 01 00 00 FF 18 17 [10:00:25]Write i2c OK [10:00:25]MH_I2C_Read... [10:00:25]Read from MH i2c: 01 [10:00:25]MH_I2C_Read... [10:00:25]Read from MH i2c: 01 07 00 [10:00:25]MH_I2C_Read... [10:00:25]Read from MH i2c: 01 07 00 FF 18 00 00 00 00 00 FF 0F 2C [10:00:25]RasterBufferAndPrint [10:00:25]line Счет N : (1)950289 [10:00:25]line ИНН: 02508201610067 [10:00:25]line Контрольно-Кассовый Чек [10:00:25]line ПРОДАЖА [10:00:25]line ТРК (МРК, ГНК) : 44 [10:00:25]line Товар: 2710194800 [10:00:25]line ДТ-К-5 [10:00:25]line 15.770 * 76.20 [10:00:25]line = 1201.67 [10:00:25]line НДС 12% НСП 1% [10:00:25]line > о реализуемом товаре [10:00:25]line ОКРУГЛЕНИЕ: -0.67 [10:00:25]line ИТОГО: 1201.00 [10:00:25]line НСП 1% : 10.63 [10:00:25]line НДС 12% : 127.61 [10:00:25]line Наличными: 0.00 [10:00:25]line Безнал.: 1201.00 [10:00:25]line Место: АЗС № 134 "Партнер Нефть" [10:00:25]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:00:25]line СНО: Общий режим [10:00:25]line Чек 94 31.07.2024 10:00 [10:00:25]line Смена: 436 ФФД: 1.0 [10:00:25]line ЗНМ: 0300000044 [10:00:25]line РНМ: 0000000000092660 [10:00:25]line Версия ККМ: 001 [10:00:25]line Платежная система: O! деньги [10:00:25]line ФМ: 0000000000874939 [10:00:25]line ФД: 119363 [10:00:25]line ФПД: 47848430540594 [10:00:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T100025&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119363&fm=47848430540594&tin=02508201610067®Number=0000000000092660&sum=120100 [10:00:25]OFD Sender: Processing packet 119363 [packets to send 86, broken 85] [10:00:25]ProducePacketName [10:00:25]name=ofd_packets/00119363 [10:00:25]OFD Sender: To server: pG, [10:00:25]CommunicateWithHost lk.salyk.kg:30040 [10:00:25]ConnectInit lk.salyk.kg [10:00:25]written 0, free lines is 4095 [10:00:25]Connected sock=9 [10:00:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 96 A4 04 01 3E A9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9A 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 67 D5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 D5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 D5 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 39 0B AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 43 D2 01 00 35 04 06 00 2B 84 94 B4 97 32 3C 6C 6F 36 5A C5 52 A2 [10:00:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 5E F9 47 00 BD 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 39 33 39 10 04 04 00 43 D2 01 00 F4 03 04 00 C2 B8 A9 66 B6 04 01 00 00 2A 40 70 7B 85 B1 75 83 [10:00:25]CommunicateWithHost err = 0 [10:00:25]CheckOFDResponse [10:00:25]1017 (14) - 77093643461234 [10:00:25]1041 (16) - 0000000000874939 [10:00:25]1040 (4) - 119363 [10:00:25]1012 (4) - 31.07.2024 04:08 [10:00:25]1206 (1) - 0 [10:00:25]OFD Sender: Remove packet 119363 [10:00:25]ProducePacketName [10:00:25]name=ofd_packets/00119363 [10:00:25]NVStorageDeleteData [10:00:25]Write to MH i2c: 01 00 00 29 19 42 [10:00:25]Write i2c OK [10:00:25]MH_I2C_Read... [10:00:25]Read from MH i2c: 01 [10:00:25]MH_I2C_Read... [10:00:25]Read from MH i2c: 01 07 00 [10:00:25]MH_I2C_Read... [10:00:25]Read from MH i2c: 01 07 00 29 19 00 00 00 00 00 DC 0C 31 [10:00:25]RasterBufferAndPrint [10:00:25]line [10:00:25]line [10:00:25]line [10:00:25]line [10:00:25]line [10:00:25]written 0, free lines is 3298 [10:00:25]MH_Cut [10:00:25]Write to MH i2c: D1 01 00 30 19 01 1B [10:00:25]Write i2c OK [10:00:25]MH_I2C_Read... [10:00:25]Read from MH i2c: D1 [10:00:25]MH_I2C_Read... [10:00:25]Read from MH i2c: D1 01 00 [10:00:25]MH_I2C_Read... [10:00:25]Read from MH i2c: D1 01 00 30 19 00 1A [10:00:25]Write to MH i2c: 01 00 00 31 19 4A [10:00:25]Write i2c OK [10:00:25]MH_I2C_Read... [10:00:26]OFD Sender: No OFD packet to send [10:00:26]*** Cut start [10:00:26]*** Partial cut [10:00:26]*** CUTSNS_PIN = 1 [10:00:26]*** CUTSNS_PIN = 0 [10:00:26]*** Brake cut motor [10:00:27]Read from MH i2c: 01 [10:00:27]MH_I2C_Read... [10:00:27]*** Stop cut motor [10:00:27]*** Cut end [10:00:27]Read from MH i2c: 01 07 00 [10:00:27]MH_I2C_Read... [10:00:27]Read from MH i2c: 01 07 00 31 19 00 00 00 00 00 FF 0F 5F [10:00:27]process_action close_receipt done [10:00:27]requested_data is exist [10:00:27]produce_requested_data [10:00:27]requested_item fm.sn is exist - process it [10:00:27]wFMCommunicate request_size=4 [10:00:27]MH_SAM_APDU [10:00:27]CAPDU: 80 11 00 00 [10:00:27]Write to MH i2c: E2 08 00 32 19 80 11 00 00 00 00 00 00 C5 [10:00:27]Write i2c OK [10:00:27]MH_I2C_Read... [10:00:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:27]Read from MH i2c: E2 [10:00:27]MH_I2C_Read... [10:00:27]Read from MH i2c: E2 17 00 [10:00:27]MH_I2C_Read... [10:00:27]Read from MH i2c: E2 17 00 32 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 20 [10:00:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:00:27]wFMCommunicate OK [10:00:27]requested_item fd.num is exist - process it [10:00:27]SAM_PROTO_GetFieldsCounters [10:00:27]wFMCommunicate request_size=4 [10:00:27]MH_SAM_APDU [10:00:27]CAPDU: 80 13 00 00 [10:00:27]Write to MH i2c: E2 08 00 33 19 80 13 00 00 00 00 00 00 C8 [10:00:27]Write i2c OK [10:00:27]MH_I2C_Read... [10:00:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:27]Read from MH i2c: E2 [10:00:27]MH_I2C_Read... [10:00:27]Read from MH i2c: E2 62 00 [10:00:27]MH_I2C_Read... [10:00:27]Read from MH i2c: E2 62 00 33 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 43 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [10:00: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 43 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:00:27]wFMCommunicate OK [10:00:27]SAM_PROTO_GetFieldsCounters done [10:00:27]requested_item shift.num is exist - process it [10:00:27]requested_item shift.opened is exist - process it [10:00:27]req_shift_opened [10:00:27]FM_GetShiftState [10:00:27]SAM_PROTO_GetShiftState [10:00:27]wFMCommunicate request_size=4 [10:00:27]MH_SAM_APDU [10:00:27]CAPDU: 80 13 01 00 [10:00:27]Write to MH i2c: E2 08 00 34 19 80 13 01 00 00 00 00 00 CA [10:00:27]Write i2c OK [10:00:27]MH_I2C_Read... [10:00:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:27]Read from MH i2c: E2 [10:00:27]MH_I2C_Read... [10:00:27]Read from MH i2c: E2 0E 00 [10:00:27]MH_I2C_Read... [10:00:27]Read from MH i2c: E2 0E 00 34 19 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 62 [10:00:27]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:00:27]wFMCommunicate OK [10:00:27]SAM_PROTO_GetShiftState done [10:00:27]FM_GetShiftState done [10:00:27]req_shift_opened done [10:00:27]requested_item shift.open_date is exist - process it [10:00:27]req_shift_open_date [10:00:27]req_shift_open_date done [10:00:27]produce_requested_data done [10:00:27]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119363,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [10:00:27]process_action_free close_receipt [10:00:27]json_value_free [10:00:27]json_value_free done [10:00:27]process_json_proto returns [10:00:27]Send response to host [10:00:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119363,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [10:00:27]free response buf [10:00:27]execute_script done [10:00:27]execute_script returns [10:00:27]free content buf [10:00:27]Sock 8.Close socket [10:00:27]Sock 8.Thread stoped [10:00:31]OFD Sender: No OFD packet to send [10:00:36]OFD Sender: No OFD packet to send [10:00:39]accept exits with 10 [10:00:39]New connection [10:00:39]New thread 3067194724 created [10:00:39]Thread 3067338084 joined [10:00:39]Waiting for new connection... [10:00:39] Sock 10.Parse request [10:00:39]Sock 10.Check first char [10:00:39]Sock 10.First char is OK [10:00:39]request: POST /json_proto HTTP/1.0 [10:00:39]Method: POST [10:00:39]URL: /json_proto [10:00:39]Method is POST - this is cgi request [10:00:39]url: /json_proto [10:00:39]query_string will be loaded in cgi processing [10:00:39]execute_cgi json_proto POST (null) [10:00:39]execute_cgi path=json_proto method=POST [10:00:39]POST find Content-Length [10:00:39]Host: 172.17.45.7:8080 [10:00:39]Content-Length: 677 [10:00:39]Content-Type: application/json [10:00:39] [10:00:39]POST finish read [10:00:39]Found Content-Length = 677 [10:00:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:39]execute_script... [10:00:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:39]POST & json_proto [10:00:39]process_json_proto [10:00:39]json parsed OK: [10:00:39]protocol is kg_v1.0 [10:00:39]action value=close_receipt [10:00:39]process_action close_receipt [10:00:39]cmd_close_receipt [10:00:39]MH_GetDate [10:00:39]Write to MH i2c: F0 00 00 35 19 3D [10:00:39]Write i2c OK [10:00:39]MH_I2C_Read... [10:00:39]Read from MH i2c: F0 [10:00:39]MH_I2C_Read... [10:00:39]Read from MH i2c: F0 09 00 [10:00:39]MH_I2C_Read... [10:00:39]Read from MH i2c: F0 09 00 35 19 00 49 0B AA 66 90 0F 3E 66 ED [10:00:39]GetLastDocTimeStamp 1722420025 [10:00:39]current date 1722420041 [10:00:39]FM_GetShiftState [10:00:39]SAM_PROTO_GetShiftState [10:00:39]wFMCommunicate request_size=4 [10:00:39]MH_SAM_APDU [10:00:39]CAPDU: 80 13 01 00 [10:00:39]Write to MH i2c: E2 08 00 36 19 80 13 01 00 00 00 00 00 CC [10:00:39]Write i2c OK [10:00:39]MH_I2C_Read... [10:00:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:39]Read from MH i2c: E2 [10:00:39]MH_I2C_Read... [10:00:39]Read from MH i2c: E2 0E 00 [10:00:39]MH_I2C_Read... [10:00:39]Read from MH i2c: E2 0E 00 36 19 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 64 [10:00:39]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:00:39]wFMCommunicate OK [10:00:39]SAM_PROTO_GetShiftState done [10:00:39]FM_GetShiftState done [10:00:39]opened in 1722384637 [10:00:39]opened+sec_in_day 1722471037 [10:00:39]quantity*price = 40002 [10:00:39]sum+1 = 40003 [10:00:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 95 31.07.2024 10:00 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119364 ФПД: 195909186871453 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T100041&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119364&fm=195909186871453&tin=02508201610067®Number=0000000000092660&sum=40000 [10:00:41]StoreToDocumentArchive [10:00:41]shift 436 fd 119364 [10:00:41]save to /storage/0436/doc_00119364 [10:00:41]save last doc name /storage/0436/doc_00119364 to /storage/kkm_last_doc_name [10:00:41]save OK [10:00:41]Clear old archive folders... [10:00:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:00:41]tlvbuf is 00B5B9F0 [10:00:41]SAM_PROTO_ClearQueue [10:00:41]wFMCommunicate request_size=4 [10:00:41]MH_SAM_APDU [10:00:41]CAPDU: 80 09 00 00 [10:00:41]Write to MH i2c: E2 08 00 43 19 80 09 00 00 00 00 00 00 CE [10:00:41]Write i2c OK [10:00:41]MH_I2C_Read... [10:00:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:41]Read from MH i2c: E2 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 03 00 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 03 00 43 19 00 90 00 D0 [10:00:41]RAPDU: 90 00 [10:00:41]wFMCommunicate OK [10:00:41]SAM_PROTO_ClearQueue done [10:00:41]KKMCreateOFDPacket [10:00:41]OFDProtocolAddRootSTLVToBuf [10:00:41]FM_MakeSignedData [10:00:41]FM_MakeSignedData [10:00:41]SAM_PROTO_SignData [10:00:41]wFMCommunicate request_size=4 [10:00:41]MH_SAM_APDU [10:00:41]CAPDU: 80 0D 01 02 [10:00:41]Write to MH i2c: E2 08 00 44 19 80 0D 01 02 00 00 00 00 D6 [10:00:41]Write i2c OK [10:00:41]MH_I2C_Read... [10:00:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:41]Read from MH i2c: E2 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 03 00 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 03 00 44 19 00 90 00 D1 [10:00:41]RAPDU: 90 00 [10:00:41]wFMCommunicate OK [10:00:41]wFMCommunicate request_size=255 [10:00:41]MH_SAM_APDU [10:00:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 5F 00 00 00 F4 03 04 00 49 0B AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 44 D2 01 00 35 04 06 00 B2 [10:00:41]Write to MH i2c: E2 02 01 45 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 5F 00 00 00 F4 03 04 00 49 0B AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 44 D2 01 00 35 04 06 00 B2 00 00 80 [10:00:41]Write i2c OK [10:00:41]MH_I2C_Read... [10:00:41]OFD Sender: No OFD packet to send [10:00:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:41]Read from MH i2c: E2 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 03 00 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 03 00 45 19 00 90 00 D2 [10:00:41]RAPDU: 90 00 [10:00:41]wFMCommunicate OK [10:00:41]wFMCommunicate request_size=10 [10:00:41]MH_SAM_APDU [10:00:41]CAPDU: 80 0D 02 02 05 2D A9 7D E0 9D [10:00:41]Write to MH i2c: E2 0D 00 46 19 80 0D 02 02 05 00 2D A9 7D E0 9D 00 00 B3 [10:00:41]Write i2c OK [10:00:41]MH_I2C_Read... [10:00:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:41]Read from MH i2c: E2 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 03 00 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 03 00 46 19 00 90 00 D3 [10:00:41]RAPDU: 90 00 [10:00:41]wFMCommunicate OK [10:00:41]wFMCommunicate request_size=4 [10:00:41]MH_SAM_APDU [10:00:41]CAPDU: 80 0D 03 02 [10:00:41]Write to MH i2c: E2 08 00 47 19 80 0D 03 02 00 00 00 00 DB [10:00:41]Write i2c OK [10:00:41]MH_I2C_Read... [10:00:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:41]Read from MH i2c: E2 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 0B 00 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 0B 00 47 19 00 9F 48 F3 A2 BD 49 18 19 90 00 8F [10:00:41]RAPDU: 9F 48 F3 A2 BD 49 18 19 90 00 [10:00:41]wFMCommunicate OK [10:00:41]SAM_PROTO_SignData done [10:00:41]FM_MakeSignedData done [10:00:41]CreateOFDProtocolMessage [10:00:41]wFMCommunicate request_size=4 [10:00:41]MH_SAM_APDU [10:00:41]CAPDU: 80 11 00 00 [10:00:41]Write to MH i2c: E2 08 00 48 19 80 11 00 00 00 00 00 00 DB [10:00:41]Write i2c OK [10:00:41]MH_I2C_Read... [10:00:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:41]Read from MH i2c: E2 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 17 00 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 17 00 48 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 36 [10:00:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:00:41]wFMCommunicate OK [10:00:41]CreateOFDProtocolMessage done [10:00:41]OFDSenderStorePacket 119364 [10:00:41]StoreOFDPacket docnum=119364 [10:00:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 51 F3 07 01 3F 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 5F 00 00 00 F4 03 04 00 49 0B AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 44 D2 01 00 35 04 06 00 B2 2D A9 7D E0 9D 9F 48 F3 A2 BD 49 18 19 [10:00:41]CheckFolder [10:00:41]dirname=/storage/ofd_packets [10:00:41]CheckFolder done [10:00:41]ProducePacketName [10:00:41]name=ofd_packets/00119364 [10:00:41]NVStorageSaveData ofd_packets/00119364 [10:00:41]File name is /storage/ofd_packets/00119364 [10:00:41]Write 301 bytes [10:00:41]NVStorageSaveData done [10:00:41]OFDSenderStorePacket done [10:00:41]KKMCreateOFDPacket done [10:00:41]NVStorageSaveData kkm_last_timestamp [10:00:41]File name is /storage/kkm_last_timestamp [10:00:41]Write 4 bytes [10:00:41]NVStorageSaveData done [10:00:41]ExternCall_PrintAddStr [10:00:41]wPrintStart [10:00:41]Write to MH i2c: 01 00 00 49 19 62 [10:00:41]Write i2c OK [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: 01 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: 01 07 00 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: 01 07 00 49 19 00 00 00 00 00 FF 0F 77 [10:00:41]RasterBufferAndPrint [10:00:41]line Счет N : (1)950290 [10:00:41]line ИНН: 02508201610067 [10:00:41]line Контрольно-Кассовый Чек [10:00:41]line ПРОДАЖА [10:00:41]line ТРК (МРК, ГНК) : 51 [10:00:41]line Товар: 2710124130 [10:00:41]line Аи-92-К-4 [10:00:41]line 5.900 * 67.80 [10:00:41]line = 400.02 [10:00:41]line НДС 12% НСП 1% [10:00:41]line > о реализуемом товаре [10:00:41]line ОКРУГЛЕНИЕ: -0.02 [10:00:41]line ИТОГО: 400.00 [10:00:41]line Внесено: 400.00 [10:00:41]line СДАЧА: 0.00 [10:00:41]line НСП 1% : 3.54 [10:00:41]line НДС 12% : 42.48 [10:00:41]line Наличными: 400.00 [10:00:41]line Безнал.: 0.00 [10:00:41]line Место: АЗС № 134 "Партнер Нефть" [10:00:41]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:00:41]line СНО: Общий режим [10:00:41]line Чек 95 31.07.2024 10:00 [10:00:41]line Смена: 436 ФФД: 1.0 [10:00:41]line ЗНМ: 0300000044 [10:00:41]line РНМ: 0000000000092660 [10:00:41]line Версия ККМ: 001 [10:00:41]line ФМ: 0000000000874939 [10:00:41]line ФД: 119364 [10:00:41]line ФПД: 195909186871453 [10:00:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T100041&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119364&fm=195909186871453&tin=02508201610067®Number=0000000000092660&sum=40000 [10:00:41]written 0, free lines is 4095 [10:00:41]OFD Sender: Processing packet 119364 [packets to send 86, broken 85] [10:00:41]ProducePacketName [10:00:41]name=ofd_packets/00119364 [10:00:41]OFD Sender: To server: pG, [10:00:41]CommunicateWithHost lk.salyk.kg:30040 [10:00:41]ConnectInit lk.salyk.kg [10:00:41]Connected sock=9 [10:00: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 39 33 39 0F 01 00 00 51 F3 07 01 3F 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 5F 00 00 00 F4 03 04 00 49 0B AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 44 D2 01 00 35 04 06 00 B2 2D A9 7D E0 9D 9F 48 F3 A2 BD 49 18 19 [10:00:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 68 3C 47 00 24 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 39 33 39 10 04 04 00 44 D2 01 00 F4 03 04 00 D2 B8 A9 66 B6 04 01 00 00 F5 52 1A 14 47 FC 29 B7 [10:00:41]CommunicateWithHost err = 0 [10:00:41]CheckOFDResponse [10:00:41]1017 (14) - 77093643461234 [10:00:41]1041 (16) - 0000000000874939 [10:00:41]1040 (4) - 119364 [10:00:41]1012 (4) - 31.07.2024 04:08 [10:00:41]1206 (1) - 0 [10:00:41]OFD Sender: Remove packet 119364 [10:00:41]ProducePacketName [10:00:41]name=ofd_packets/00119364 [10:00:41]NVStorageDeleteData [10:00:42]Write to MH i2c: 01 00 00 73 19 8C [10:00:42]Write i2c OK [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: 01 [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: 01 07 00 [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: 01 07 00 73 19 00 00 00 00 00 E4 0C 83 [10:00:42]RasterBufferAndPrint [10:00:42]line [10:00:42]line [10:00:42]line [10:00:42]line [10:00:42]line [10:00:42]written 0, free lines is 3306 [10:00:42]MH_Cut [10:00:42]Write to MH i2c: D1 01 00 7A 19 01 65 [10:00:42]Write i2c OK [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: D1 [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: D1 01 00 [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: D1 01 00 7A 19 00 64 [10:00:42]Write to MH i2c: 01 00 00 7B 19 94 [10:00:42]Write i2c OK [10:00:42]MH_I2C_Read... [10:00:42]OFD Sender: No OFD packet to send [10:00:42]*** Cut start [10:00:42]*** Partial cut [10:00:42]*** CUTSNS_PIN = 1 [10:00:42]*** CUTSNS_PIN = 0 [10:00:43]*** Brake cut motor [10:00:43]Read from MH i2c: 01 [10:00:43]MH_I2C_Read... [10:00:43]*** Stop cut motor [10:00:43]*** Cut end [10:00:43]Read from MH i2c: 01 07 00 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: 01 07 00 7B 19 00 00 00 00 00 FF 0F A9 [10:00:43]process_action close_receipt done [10:00:43]requested_data is exist [10:00:43]produce_requested_data [10:00:43]requested_item fm.sn is exist - process it [10:00:43]wFMCommunicate request_size=4 [10:00:43]MH_SAM_APDU [10:00:43]CAPDU: 80 11 00 00 [10:00:43]Write to MH i2c: E2 08 00 7C 19 80 11 00 00 00 00 00 00 0F [10:00:43]Write i2c OK [10:00:43]MH_I2C_Read... [10:00:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:43]Read from MH i2c: E2 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: E2 17 00 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: E2 17 00 7C 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6A [10:00:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:00:43]wFMCommunicate OK [10:00:43]requested_item fd.num is exist - process it [10:00:43]SAM_PROTO_GetFieldsCounters [10:00:43]wFMCommunicate request_size=4 [10:00:43]MH_SAM_APDU [10:00:43]CAPDU: 80 13 00 00 [10:00:43]Write to MH i2c: E2 08 00 7D 19 80 13 00 00 00 00 00 00 12 [10:00:43]Write i2c OK [10:00:43]MH_I2C_Read... [10:00:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:43]Read from MH i2c: E2 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: E2 62 00 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: E2 62 00 7D 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 44 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [10:00:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 44 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:00:43]wFMCommunicate OK [10:00:43]SAM_PROTO_GetFieldsCounters done [10:00:43]requested_item shift.num is exist - process it [10:00:43]requested_item shift.opened is exist - process it [10:00:43]req_shift_opened [10:00:43]FM_GetShiftState [10:00:43]SAM_PROTO_GetShiftState [10:00:43]wFMCommunicate request_size=4 [10:00:43]MH_SAM_APDU [10:00:43]CAPDU: 80 13 01 00 [10:00:43]Write to MH i2c: E2 08 00 7E 19 80 13 01 00 00 00 00 00 14 [10:00:43]Write i2c OK [10:00:43]MH_I2C_Read... [10:00:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:43]Read from MH i2c: E2 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: E2 0E 00 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: E2 0E 00 7E 19 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 AC [10:00:43]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:00:43]wFMCommunicate OK [10:00:43]SAM_PROTO_GetShiftState done [10:00:43]FM_GetShiftState done [10:00:43]req_shift_opened done [10:00:43]requested_item shift.open_date is exist - process it [10:00:43]req_shift_open_date [10:00:43]req_shift_open_date done [10:00:43]produce_requested_data done [10:00:43]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119364,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [10:00:43]process_action_free close_receipt [10:00:43]json_value_free [10:00:43]json_value_free done [10:00:43]process_json_proto returns [10:00:43]Send response to host [10:00:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119364,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [10:00:43]free response buf [10:00:43]execute_script done [10:00:43]execute_script returns [10:00:43]free content buf [10:00:43]Sock 10.Close socket [10:00:43]Sock 10.Thread stoped [10:00:47]OFD Sender: No OFD packet to send [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: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:56]accept exits with 8 [10:03:56]New connection [10:03:56]New thread 3067338084 created [10:03:56]Thread 3067194724 joined [10:03:56]Waiting for new connection... [10:03:56] Sock 8.Parse request [10:03:56]Sock 8.Check first char [10:03:56]Sock 8.First char is OK [10:03:56]request: POST /json_proto HTTP/1.0 [10:03:56]Method: POST [10:03:56]URL: /json_proto [10:03:56]Method is POST - this is cgi request [10:03:56]url: /json_proto [10:03:56]query_string will be loaded in cgi processing [10:03:56]execute_cgi json_proto POST (null) [10:03:56]execute_cgi path=json_proto method=POST [10:03:56]POST find Content-Length [10:03:56]Host: 172.17.45.7:8080 [10:03:56]Content-Length: 677 [10:03:56]Content-Type: application/json [10:03:56] [10:03:56]POST finish read [10:03:56]Found Content-Length = 677 [10:03:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:56]execute_script... [10:03:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:56]POST & json_proto [10:03:56]process_json_proto [10:03:56]json parsed OK: [10:03:56]protocol is kg_v1.0 [10:03:56]action value=close_receipt [10:03:56]process_action close_receipt [10:03:56]cmd_close_receipt [10:03:56]MH_GetDate [10:03:56]Write to MH i2c: F0 00 00 7F 19 87 [10:03:56]Write i2c OK [10:03:56]MH_I2C_Read... [10:03:56]Read from MH i2c: F0 [10:03:56]MH_I2C_Read... [10:03:56]Read from MH i2c: F0 09 00 [10:03:56]MH_I2C_Read... [10:03:56]Read from MH i2c: F0 09 00 7F 19 00 0E 0C AA 66 90 0F 3E 66 FD [10:03:56]GetLastDocTimeStamp 1722420041 [10:03:56]current date 1722420238 [10:03:56]FM_GetShiftState [10:03:56]SAM_PROTO_GetShiftState [10:03:56]wFMCommunicate request_size=4 [10:03:56]MH_SAM_APDU [10:03:56]CAPDU: 80 13 01 00 [10:03:56]Write to MH i2c: E2 08 00 80 19 80 13 01 00 00 00 00 00 16 [10:03:56]Write i2c OK [10:03:56]MH_I2C_Read... [10:03:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:56]Read from MH i2c: E2 [10:03:56]MH_I2C_Read... [10:03:56]Read from MH i2c: E2 0E 00 [10:03:56]MH_I2C_Read... [10:03:56]Read from MH i2c: E2 0E 00 80 19 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 AE [10:03:56]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:03:56]wFMCommunicate OK [10:03:56]SAM_PROTO_GetShiftState done [10:03:56]FM_GetShiftState done [10:03:56]opened in 1722384637 [10:03:56]opened+sec_in_day 1722471037 [10:03:56]quantity*price = 40002 [10:03:56]sum+1 = 40003 [10:03:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 96 31.07.2024 10:03 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119365 ФПД: 268110786898202 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T100358&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119365&fm=268110786898202&tin=02508201610067®Number=0000000000092660&sum=40000 [10:03:57]StoreToDocumentArchive [10:03:57]shift 436 fd 119365 [10:03:57]save to /storage/0436/doc_00119365 [10:03:57]save last doc name /storage/0436/doc_00119365 to /storage/kkm_last_doc_name [10:03:57]save OK [10:03:57]Clear old archive folders... [10:03:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:03:57]tlvbuf is B6F06250 [10:03:57]SAM_PROTO_ClearQueue [10:03:57]wFMCommunicate request_size=4 [10:03:57]MH_SAM_APDU [10:03:57]CAPDU: 80 09 00 00 [10:03:57]Write to MH i2c: E2 08 00 8D 19 80 09 00 00 00 00 00 00 18 [10:03:57]Write i2c OK [10:03:57]MH_I2C_Read... [10:03:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:03:57]Read from MH i2c: E2 [10:03:57]MH_I2C_Read... [10:03:57]Read from MH i2c: E2 03 00 [10:03:57]MH_I2C_Read... [10:03:57]Read from MH i2c: E2 03 00 8D 19 00 90 00 1A [10:03:57]RAPDU: 90 00 [10:03:57]wFMCommunicate OK [10:03:57]SAM_PROTO_ClearQueue done [10:03:57]KKMCreateOFDPacket [10:03:57]OFDProtocolAddRootSTLVToBuf [10:03:57]FM_MakeSignedData [10:03:57]FM_MakeSignedData [10:03:57]SAM_PROTO_SignData [10:03:57]wFMCommunicate request_size=4 [10:03:57]MH_SAM_APDU [10:03:57]CAPDU: 80 0D 01 02 [10:03:57]Write to MH i2c: E2 08 00 8E 19 80 0D 01 02 00 00 00 00 20 [10:03:57]Write i2c OK [10:03:57]MH_I2C_Read... [10:03:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:03:57]Read from MH i2c: E2 [10:03:57]MH_I2C_Read... [10:03:57]Read from MH i2c: E2 03 00 [10:03:57]MH_I2C_Read... [10:03:57]Read from MH i2c: E2 03 00 8E 19 00 90 00 1B [10:03:57]RAPDU: 90 00 [10:03:57]wFMCommunicate OK [10:03:57]wFMCommunicate request_size=255 [10:03:57]MH_SAM_APDU [10:03:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 60 00 00 00 F4 03 04 00 0E 0C AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 45 D2 01 00 35 04 06 00 F3 [10:03:57]Write to MH i2c: E2 02 01 8F 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 60 00 00 00 F4 03 04 00 0E 0C AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 45 D2 01 00 35 04 06 00 F3 00 00 D3 [10:03:57]Write i2c OK [10:03:57]MH_I2C_Read... [10:03:57]OFD Sender: No OFD packet to send [10:03:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:57]Read from MH i2c: E2 [10:03:57]MH_I2C_Read... [10:03:57]Read from MH i2c: E2 03 00 [10:03:57]MH_I2C_Read... [10:03:57]Read from MH i2c: E2 03 00 8F 19 00 90 00 1C [10:03:57]RAPDU: 90 00 [10:03:57]wFMCommunicate OK [10:03:57]wFMCommunicate request_size=10 [10:03:57]MH_SAM_APDU [10:03:57]CAPDU: 80 0D 02 02 05 D8 68 36 A9 1A [10:03:57]Write to MH i2c: E2 0D 00 90 19 80 0D 02 02 05 00 D8 68 36 A9 1A 00 00 66 [10:03:57]Write i2c OK [10:03:57]MH_I2C_Read... [10:03:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:57]Read from MH i2c: E2 [10:03:57]MH_I2C_Read... [10:03:57]Read from MH i2c: E2 03 00 [10:03:57]MH_I2C_Read... [10:03:57]Read from MH i2c: E2 03 00 90 19 00 90 00 1D [10:03:57]RAPDU: 90 00 [10:03:57]wFMCommunicate OK [10:03:57]wFMCommunicate request_size=4 [10:03:57]MH_SAM_APDU [10:03:57]CAPDU: 80 0D 03 02 [10:03:57]Write to MH i2c: E2 08 00 91 19 80 0D 03 02 00 00 00 00 25 [10:03:57]Write i2c OK [10:03:57]MH_I2C_Read... [10:03:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:03:57]Read from MH i2c: E2 [10:03:57]MH_I2C_Read... [10:03:57]Read from MH i2c: E2 0B 00 [10:03:57]MH_I2C_Read... [10:03:57]Read from MH i2c: E2 0B 00 91 19 00 1A D4 FA A7 42 21 EA 31 90 00 33 [10:03:57]RAPDU: 1A D4 FA A7 42 21 EA 31 90 00 [10:03:57]wFMCommunicate OK [10:03:57]SAM_PROTO_SignData done [10:03:57]FM_MakeSignedData done [10:03:57]CreateOFDProtocolMessage [10:03:57]wFMCommunicate request_size=4 [10:03:57]MH_SAM_APDU [10:03:57]CAPDU: 80 11 00 00 [10:03:57]Write to MH i2c: E2 08 00 92 19 80 11 00 00 00 00 00 00 25 [10:03:57]Write i2c OK [10:03:57]MH_I2C_Read... [10:03:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:57]Read from MH i2c: E2 [10:03:57]MH_I2C_Read... [10:03:57]Read from MH i2c: E2 17 00 [10:03:57]MH_I2C_Read... [10:03:57]Read from MH i2c: E2 17 00 92 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 80 [10:03:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:03:57]wFMCommunicate OK [10:03:57]CreateOFDProtocolMessage done [10:03:57]OFDSenderStorePacket 119365 [10:03:57]StoreOFDPacket docnum=119365 [10:03:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 5F 0E 07 01 13 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 60 00 00 00 F4 03 04 00 0E 0C AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 45 D2 01 00 35 04 06 00 F3 D8 68 36 A9 1A 1A D4 FA A7 42 21 EA 31 [10:03:57]CheckFolder [10:03:57]dirname=/storage/ofd_packets [10:03:57]CheckFolder done [10:03:57]ProducePacketName [10:03:57]name=ofd_packets/00119365 [10:03:57]NVStorageSaveData ofd_packets/00119365 [10:03:57]File name is /storage/ofd_packets/00119365 [10:03:57]Write 301 bytes [10:03:57]NVStorageSaveData done [10:03:57]OFDSenderStorePacket done [10:03:57]KKMCreateOFDPacket done [10:03:57]NVStorageSaveData kkm_last_timestamp [10:03:57]File name is /storage/kkm_last_timestamp [10:03:57]Write 4 bytes [10:03:57]NVStorageSaveData done [10:03:57]ExternCall_PrintAddStr [10:03:57]wPrintStart [10:03:57]Write to MH i2c: 01 00 00 93 19 AC [10:03:57]Write i2c OK [10:03:57]MH_I2C_Read... [10:03:57]Read from MH i2c: 01 [10:03:57]MH_I2C_Read... [10:03:57]Read from MH i2c: 01 07 00 [10:03:57]MH_I2C_Read... [10:03:57]Read from MH i2c: 01 07 00 93 19 00 00 00 00 00 FF 0F C1 [10:03:57]RasterBufferAndPrint [10:03:57]line Счет N : (1)950294 [10:03:57]line ИНН: 02508201610067 [10:03:57]line Контрольно-Кассовый Чек [10:03:57]line ПРОДАЖА [10:03:57]line ТРК (МРК, ГНК) : 51 [10:03:57]line Товар: 2710124130 [10:03:57]line Аи-92-К-4 [10:03:57]line 5.900 * 67.80 [10:03:57]line = 400.02 [10:03:57]line НДС 12% НСП 1% [10:03:57]line > о реализуемом товаре [10:03:57]line ОКРУГЛЕНИЕ: -0.02 [10:03:57]line ИТОГО: 400.00 [10:03:57]line Внесено: 400.00 [10:03:57]line СДАЧА: 0.00 [10:03:57]line НСП 1% : 3.54 [10:03:57]line НДС 12% : 42.48 [10:03:57]line Наличными: 400.00 [10:03:57]line Безнал.: 0.00 [10:03:57]line Место: АЗС № 134 "Партнер Нефть" [10:03:57]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:03:57]line СНО: Общий режим [10:03:57]line Чек 96 31.07.2024 10:03 [10:03:57]line Смена: 436 ФФД: 1.0 [10:03:57]line ЗНМ: 0300000044 [10:03:57]line РНМ: 0000000000092660 [10:03:57]line Версия ККМ: 001 [10:03:57]line ФМ: 0000000000874939 [10:03:57]line ФД: 119365 [10:03:57]line ФПД: 268110786898202 [10:03:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T100358&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119365&fm=268110786898202&tin=02508201610067®Number=0000000000092660&sum=40000 [10:03:58]OFD Sender: Processing packet 119365 [packets to send 86, broken 85] [10:03:58]ProducePacketName [10:03:58]name=ofd_packets/00119365 [10:03:58]OFD Sender: To server: pG, [10:03:58]CommunicateWithHost lk.salyk.kg:30040 [10:03:58]ConnectInit lk.salyk.kg [10:03:58]written 0, free lines is 4095 [10:03:58]Connected sock=10 [10:03: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 39 33 39 0F 01 00 00 5F 0E 07 01 13 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 60 00 00 00 F4 03 04 00 0E 0C AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 45 D2 01 00 35 04 06 00 F3 D8 68 36 A9 1A 1A D4 FA A7 42 21 EA 31 [10:03:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 7A 60 47 00 98 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 45 D2 01 00 F4 03 04 00 97 B9 A9 66 B6 04 01 00 00 E8 F0 62 60 1E CC 0C 24 [10:03:58]CommunicateWithHost err = 0 [10:03:58]CheckOFDResponse [10:03:58]1017 (14) - 77093643461234 [10:03:58]1041 (16) - 0000000000874939 [10:03:58]1040 (4) - 119365 [10:03:58]1012 (4) - 31.07.2024 04:12 [10:03:58]1206 (1) - 0 [10:03:58]OFD Sender: Remove packet 119365 [10:03:58]ProducePacketName [10:03:58]name=ofd_packets/00119365 [10:03:58]NVStorageDeleteData [10:03:58]Write to MH i2c: 01 00 00 BD 19 D6 [10:03:58]Write i2c OK [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: 01 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: 01 07 00 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: 01 07 00 BD 19 00 00 00 00 00 E6 0C CF [10:03:58]RasterBufferAndPrint [10:03:58]line [10:03:58]line [10:03:58]line [10:03:58]line [10:03:58]line [10:03:58]written 0, free lines is 3308 [10:03:58]MH_Cut [10:03:58]Write to MH i2c: D1 01 00 C4 19 01 AF [10:03:58]Write i2c OK [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: D1 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: D1 01 00 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: D1 01 00 C4 19 00 AE [10:03:58]Write to MH i2c: 01 00 00 C5 19 DE [10:03:58]Write i2c OK [10:03:58]MH_I2C_Read... [10:03:59]OFD Sender: No OFD packet to send [10:03:59]*** Cut start [10:03:59]*** Partial cut [10:03:59]*** CUTSNS_PIN = 1 [10:03:59]*** CUTSNS_PIN = 0 [10:03:59]*** Brake cut motor [10:03:59]Read from MH i2c: 01 [10:03:59]MH_I2C_Read... [10:03:59]*** Stop cut motor [10:03:59]*** Cut end [10:03:59]Read from MH i2c: 01 07 00 [10:03:59]MH_I2C_Read... [10:03:59]Read from MH i2c: 01 07 00 C5 19 00 00 00 00 00 FF 0F F3 [10:03:59]process_action close_receipt done [10:03:59]requested_data is exist [10:03:59]produce_requested_data [10:03:59]requested_item fm.sn is exist - process it [10:03:59]wFMCommunicate request_size=4 [10:03:59]MH_SAM_APDU [10:03:59]CAPDU: 80 11 00 00 [10:03:59]Write to MH i2c: E2 08 00 C6 19 80 11 00 00 00 00 00 00 59 [10:03:59]Write i2c OK [10:03:59]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 C6 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B4 [10:04:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:04:00]wFMCommunicate OK [10:04:00]requested_item fd.num is exist - process it [10:04:00]SAM_PROTO_GetFieldsCounters [10:04:00]wFMCommunicate request_size=4 [10:04:00]MH_SAM_APDU [10:04:00]CAPDU: 80 13 00 00 [10:04:00]Write to MH i2c: E2 08 00 C7 19 80 13 00 00 00 00 00 00 5C [10:04:00]Write i2c OK [10:04:00]MH_I2C_Read... [10:04:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:00]Read from MH i2c: E2 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: E2 62 00 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: E2 62 00 C7 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 45 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [10:04:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 45 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:04:00]wFMCommunicate OK [10:04:00]SAM_PROTO_GetFieldsCounters done [10:04:00]requested_item shift.num is exist - process it [10:04:00]requested_item shift.opened is exist - process it [10:04:00]req_shift_opened [10:04:00]FM_GetShiftState [10:04:00]SAM_PROTO_GetShiftState [10:04:00]wFMCommunicate request_size=4 [10:04:00]MH_SAM_APDU [10:04:00]CAPDU: 80 13 01 00 [10:04:00]Write to MH i2c: E2 08 00 C8 19 80 13 01 00 00 00 00 00 5E [10:04:00]Write i2c OK [10:04:00]MH_I2C_Read... [10:04:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:00]Read from MH i2c: E2 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: E2 0E 00 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: E2 0E 00 C8 19 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 F6 [10:04:00]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:04:00]wFMCommunicate OK [10:04:00]SAM_PROTO_GetShiftState done [10:04:00]FM_GetShiftState done [10:04:00]req_shift_opened done [10:04:00]requested_item shift.open_date is exist - process it [10:04:00]req_shift_open_date [10:04:00]req_shift_open_date done [10:04:00]produce_requested_data done [10:04:00]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119365,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [10:04:00]process_action_free close_receipt [10:04:00]json_value_free [10:04:00]json_value_free done [10:04:00]process_json_proto returns [10:04:00]Send response to host [10:04:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119365,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [10:04:00]free response buf [10:04:00]execute_script done [10:04:00]execute_script returns [10:04:00]free content buf [10:04:00]Sock 8.Close socket [10:04:00]Sock 8.Thread stoped [10:04:04]OFD Sender: No OFD packet to send [10:04:09]OFD Sender: No OFD packet to send [10:04:14]OFD Sender: No OFD packet to send [10:04:19]OFD Sender: No OFD packet to send [10:04:21]accept exits with 9 [10:04:21]New connection [10:04:21]New thread 3067194724 created [10:04:21]Thread 3067338084 joined [10:04:21]Waiting for new connection... [10:04:21] Sock 9.Parse request [10:04:21]Sock 9.Check first char [10:04:21]Sock 9.First char is OK [10:04:21]request: POST /json_proto HTTP/1.0 [10:04:21]Method: POST [10:04:21]URL: /json_proto [10:04:21]Method is POST - this is cgi request [10:04:21]url: /json_proto [10:04:21]query_string will be loaded in cgi processing [10:04:21]execute_cgi json_proto POST (null) [10:04:21]execute_cgi path=json_proto method=POST [10:04:21]POST find Content-Length [10:04:21]Host: 172.17.45.7:8080 [10:04:21]Content-Length: 819 [10:04:21]Content-Type: application/json [10:04:21] [10:04:21]POST finish read [10:04:21]Found Content-Length = 819 [10:04:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:21]execute_script... [10:04: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)950292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:21]POST & json_proto [10:04:21]process_json_proto [10:04:21]json parsed OK: [10:04:21]protocol is kg_v1.0 [10:04:21]action value=close_receipt [10:04:21]process_action close_receipt [10:04:21]cmd_close_receipt [10:04:21]MH_GetDate [10:04:21]Write to MH i2c: F0 00 00 C9 19 D1 [10:04:21]Write i2c OK [10:04:21]MH_I2C_Read... [10:04:21]Read from MH i2c: F0 [10:04:21]MH_I2C_Read... [10:04:21]Read from MH i2c: F0 09 00 [10:04:21]MH_I2C_Read... [10:04:21]Read from MH i2c: F0 09 00 C9 19 00 27 0C AA 66 90 0F 3E 66 60 [10:04:21]GetLastDocTimeStamp 1722420238 [10:04:21]current date 1722420263 [10:04:21]FM_GetShiftState [10:04:21]SAM_PROTO_GetShiftState [10:04:21]wFMCommunicate request_size=4 [10:04:21]MH_SAM_APDU [10:04:21]CAPDU: 80 13 01 00 [10:04:21]Write to MH i2c: E2 08 00 CA 19 80 13 01 00 00 00 00 00 60 [10:04:21]Write i2c OK [10:04:21]MH_I2C_Read... [10:04:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:21]Read from MH i2c: E2 [10:04:21]MH_I2C_Read... [10:04:21]Read from MH i2c: E2 0E 00 [10:04:21]MH_I2C_Read... [10:04:21]Read from MH i2c: E2 0E 00 CA 19 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 F8 [10:04:21]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:04:21]wFMCommunicate OK [10:04:21]SAM_PROTO_GetShiftState done [10:04:21]FM_GetShiftState done [10:04:21]opened in 1722384637 [10:04:21]opened+sec_in_day 1722471037 [10:04:21]quantity*price = 200025 [10:04:21]sum+1 = 200026 [10:04:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 97 31.07.2024 10:04 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119366 ФПД: 38914733055092 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T100423&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119366&fm=38914733055092&tin=02508201610067®Number=0000000000092660&sum=200000 [10:04:22]StoreToDocumentArchive [10:04:22]shift 436 fd 119366 [10:04:22]save to /storage/0436/doc_00119366 [10:04:22]save last doc name /storage/0436/doc_00119366 to /storage/kkm_last_doc_name [10:04:22]save OK [10:04:22]Clear old archive folders... [10:04:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:04:22]tlvbuf is 00B5B7B0 [10:04:22]SAM_PROTO_ClearQueue [10:04:22]wFMCommunicate request_size=4 [10:04:22]MH_SAM_APDU [10:04:22]CAPDU: 80 09 00 00 [10:04:22]Write to MH i2c: E2 08 00 D7 19 80 09 00 00 00 00 00 00 62 [10:04:22]Write i2c OK [10:04:22]MH_I2C_Read... [10:04:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:23]Read from MH i2c: E2 [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: E2 03 00 [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: E2 03 00 D7 19 00 90 00 64 [10:04:23]RAPDU: 90 00 [10:04:23]wFMCommunicate OK [10:04:23]SAM_PROTO_ClearQueue done [10:04:23]KKMCreateOFDPacket [10:04:23]OFDProtocolAddRootSTLVToBuf [10:04:23]FM_MakeSignedData [10:04:23]FM_MakeSignedData [10:04:23]SAM_PROTO_SignData [10:04:23]wFMCommunicate request_size=4 [10:04:23]MH_SAM_APDU [10:04:23]CAPDU: 80 0D 01 02 [10:04:23]Write to MH i2c: E2 08 00 D8 19 80 0D 01 02 00 00 00 00 6A [10:04:23]Write i2c OK [10:04:23]MH_I2C_Read... [10:04:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:23]Read from MH i2c: E2 [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: E2 03 00 [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: E2 03 00 D8 19 00 90 00 65 [10:04:23]RAPDU: 90 00 [10:04:23]wFMCommunicate OK [10:04:23]wFMCommunicate request_size=255 [10:04:23]MH_SAM_APDU [10:04:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 27 0C AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 46 D2 01 00 35 04 06 00 23 64 8A D7 [10:04:23]Write to MH i2c: E2 02 01 D9 19 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 27 0C AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 46 D2 01 00 35 04 06 00 23 64 8A D7 00 00 42 [10:04:23]Write i2c OK [10:04:23]MH_I2C_Read... [10:04:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:23]Read from MH i2c: E2 [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: E2 03 00 [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: E2 03 00 D9 19 00 90 00 66 [10:04:23]RAPDU: 90 00 [10:04:23]wFMCommunicate OK [10:04:23]wFMCommunicate request_size=7 [10:04:23]MH_SAM_APDU [10:04:23]CAPDU: 80 0D 02 02 02 1C 74 [10:04:23]Write to MH i2c: E2 0A 00 DA 19 80 0D 02 02 02 00 1C 74 00 00 01 [10:04:23]Write i2c OK [10:04:23]MH_I2C_Read... [10:04:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:23]Read from MH i2c: E2 [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: E2 03 00 [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: E2 03 00 DA 19 00 90 00 67 [10:04:23]RAPDU: 90 00 [10:04:23]wFMCommunicate OK [10:04:23]wFMCommunicate request_size=4 [10:04:23]MH_SAM_APDU [10:04:23]CAPDU: 80 0D 03 02 [10:04:23]Write to MH i2c: E2 08 00 DB 19 80 0D 03 02 00 00 00 00 6F [10:04:23]Write i2c OK [10:04:23]MH_I2C_Read... [10:04:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:23]Read from MH i2c: E2 [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: E2 0B 00 [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: E2 0B 00 DB 19 00 F6 7A 7B 66 A3 7E F9 15 90 00 F0 [10:04:23]RAPDU: F6 7A 7B 66 A3 7E F9 15 90 00 [10:04:23]wFMCommunicate OK [10:04:23]SAM_PROTO_SignData done [10:04:23]FM_MakeSignedData done [10:04:23]CreateOFDProtocolMessage [10:04:23]wFMCommunicate request_size=4 [10:04:23]MH_SAM_APDU [10:04:23]CAPDU: 80 11 00 00 [10:04:23]Write to MH i2c: E2 08 00 DC 19 80 11 00 00 00 00 00 00 6F [10:04:23]Write i2c OK [10:04:23]MH_I2C_Read... [10:04:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:23]Read from MH i2c: E2 [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: E2 17 00 [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: E2 17 00 DC 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CA [10:04:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:04:23]wFMCommunicate OK [10:04:23]CreateOFDProtocolMessage done [10:04:23]OFDSenderStorePacket 119366 [10:04:23]StoreOFDPacket docnum=119366 [10:04:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 5B 5C 04 01 A5 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 27 0C AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 46 D2 01 00 35 04 06 00 23 64 8A D7 1C 74 F6 7A 7B 66 A3 7E F9 15 [10:04:23]CheckFolder [10:04:23]dirname=/storage/ofd_packets [10:04:23]CheckFolder done [10:04:23]ProducePacketName [10:04:23]name=ofd_packets/00119366 [10:04:23]NVStorageSaveData ofd_packets/00119366 [10:04:23]File name is /storage/ofd_packets/00119366 [10:04:23]Write 298 bytes [10:04:23]NVStorageSaveData done [10:04:23]OFDSenderStorePacket done [10:04:23]KKMCreateOFDPacket done [10:04:23]NVStorageSaveData kkm_last_timestamp [10:04:23]File name is /storage/kkm_last_timestamp [10:04:23]Write 4 bytes [10:04:23]NVStorageSaveData done [10:04:23]ExternCall_PrintAddStr [10:04:23]wPrintStart [10:04:23]Write to MH i2c: 01 00 00 DD 19 F6 [10:04:23]Write i2c OK [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: 01 [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: 01 07 00 [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: 01 07 00 DD 19 00 00 00 00 00 FF 0F 0B [10:04:23]RasterBufferAndPrint [10:04:23]line Счет N : (1)950292 [10:04:23]line ИНН: 02508201610067 [10:04:23]line Контрольно-Кассовый Чек [10:04:23]line ПРОДАЖА [10:04:23]line ТРК (МРК, ГНК) : 64 [10:04:23]line Товар: 2710194800 [10:04:23]line ДТ-К-5 [10:04:23]line 26.250 * 76.20 [10:04:23]line = 2000.25 [10:04:23]line НДС 12% НСП 1% [10:04:23]line > о реализуемом товаре [10:04:23]line ОКРУГЛЕНИЕ: -0.25 [10:04:23]line ИТОГО: 2000.00 [10:04:23]line НСП 1% : 17.70 [10:04:23]line НДС 12% : 212.42 [10:04:23]line Наличными: 0.00 [10:04:23]line Безнал.: 2000.00 [10:04:23]line Место: АЗС № 134 "Партнер Нефть" [10:04:23]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:04:23]line СНО: Общий режим [10:04:23]line Чек 97 31.07.2024 10:04 [10:04:23]line Смена: 436 ФФД: 1.0 [10:04:23]line ЗНМ: 0300000044 [10:04:23]line РНМ: 0000000000092660 [10:04:23]line Версия ККМ: 001 [10:04:23]line Платежная система: O! деньги [10:04:23]line ФМ: 0000000000874939 [10:04:23]line ФД: 119366 [10:04:23]line ФПД: 38914733055092 [10:04:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T100423&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119366&fm=38914733055092&tin=02508201610067®Number=0000000000092660&sum=200000 [10:04:23]OFD Sender: Processing packet 119366 [packets to send 86, broken 85] [10:04:23]ProducePacketName [10:04:23]name=ofd_packets/00119366 [10:04:23]OFD Sender: To server: pG, [10:04:23]CommunicateWithHost lk.salyk.kg:30040 [10:04:23]ConnectInit lk.salyk.kg [10:04:23]written 0, free lines is 4095 [10:04:23]Connected sock=10 [10:04: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 39 33 39 0C 01 00 00 5B 5C 04 01 A5 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 27 0C AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 46 D2 01 00 35 04 06 00 23 64 8A D7 1C 74 F6 7A 7B 66 A3 7E F9 15 [10:04:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 6B 00 47 00 D4 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 46 D2 01 00 F4 03 04 00 B0 B9 A9 66 B6 04 01 00 00 8E CA 57 2B EB 41 D0 18 [10:04:24]CommunicateWithHost err = 0 [10:04:24]CheckOFDResponse [10:04:24]1017 (14) - 77093643461234 [10:04:24]1041 (16) - 0000000000874939 [10:04:24]1040 (4) - 119366 [10:04:24]1012 (4) - 31.07.2024 04:12 [10:04:24]1206 (1) - 0 [10:04:24]OFD Sender: Remove packet 119366 [10:04:24]ProducePacketName [10:04:24]name=ofd_packets/00119366 [10:04:24]NVStorageDeleteData [10:04:24]Write to MH i2c: 01 00 00 07 1A 21 [10:04:24]Write i2c OK [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: 01 [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: 01 07 00 [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: 01 07 00 07 1A 00 00 00 00 00 DC 0C 10 [10:04:24]RasterBufferAndPrint [10:04:24]line [10:04:24]line [10:04:24]line [10:04:24]line [10:04:24]line [10:04:24]written 0, free lines is 3298 [10:04:24]MH_Cut [10:04:24]Write to MH i2c: D1 01 00 0E 1A 01 FA [10:04:24]Write i2c OK [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: D1 [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: D1 01 00 [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: D1 01 00 0E 1A 00 F9 [10:04:24]Write to MH i2c: 01 00 00 0F 1A 29 [10:04:24]Write i2c OK [10:04:24]MH_I2C_Read... [10:04:24]OFD Sender: No OFD packet to send [10:04:25]*** Cut start [10:04:25]*** Partial cut [10:04:25]*** CUTSNS_PIN = 1 [10:04:25]*** CUTSNS_PIN = 0 [10:04:25]*** Brake cut motor [10:04:25]Read from MH i2c: 01 [10:04:25]MH_I2C_Read... [10:04:25]*** Stop cut motor [10:04:25]*** Cut end [10:04:25]Read from MH i2c: 01 07 00 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: 01 07 00 0F 1A 00 00 00 00 00 FF 0F 3E [10:04:25]process_action close_receipt done [10:04:25]requested_data is exist [10:04:25]produce_requested_data [10:04:25]requested_item fm.sn is exist - process it [10:04:25]wFMCommunicate request_size=4 [10:04:25]MH_SAM_APDU [10:04:25]CAPDU: 80 11 00 00 [10:04:25]Write to MH i2c: E2 08 00 10 1A 80 11 00 00 00 00 00 00 A4 [10:04:25]Write i2c OK [10:04:25]MH_I2C_Read... [10:04:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:25]Read from MH i2c: E2 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: E2 17 00 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: E2 17 00 10 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FF [10:04:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:04:25]wFMCommunicate OK [10:04:25]requested_item fd.num is exist - process it [10:04:25]SAM_PROTO_GetFieldsCounters [10:04:25]wFMCommunicate request_size=4 [10:04:25]MH_SAM_APDU [10:04:25]CAPDU: 80 13 00 00 [10:04:25]Write to MH i2c: E2 08 00 11 1A 80 13 00 00 00 00 00 00 A7 [10:04:25]Write i2c OK [10:04:25]MH_I2C_Read... [10:04:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:25]Read from MH i2c: E2 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: E2 62 00 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: E2 62 00 11 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 46 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [10:04: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 46 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:04:25]wFMCommunicate OK [10:04:25]SAM_PROTO_GetFieldsCounters done [10:04:25]requested_item shift.num is exist - process it [10:04:25]requested_item shift.opened is exist - process it [10:04:25]req_shift_opened [10:04:25]FM_GetShiftState [10:04:25]SAM_PROTO_GetShiftState [10:04:25]wFMCommunicate request_size=4 [10:04:25]MH_SAM_APDU [10:04:25]CAPDU: 80 13 01 00 [10:04:25]Write to MH i2c: E2 08 00 12 1A 80 13 01 00 00 00 00 00 A9 [10:04:25]Write i2c OK [10:04:25]MH_I2C_Read... [10:04:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:25]Read from MH i2c: E2 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: E2 0E 00 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: E2 0E 00 12 1A 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 41 [10:04:25]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:04:25]wFMCommunicate OK [10:04:25]SAM_PROTO_GetShiftState done [10:04:25]FM_GetShiftState done [10:04:25]req_shift_opened done [10:04:25]requested_item shift.open_date is exist - process it [10:04:25]req_shift_open_date [10:04:25]req_shift_open_date done [10:04:25]produce_requested_data done [10:04:25]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119366,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [10:04:25]process_action_free close_receipt [10:04:25]json_value_free [10:04:25]json_value_free done [10:04:25]process_json_proto returns [10:04:25]Send response to host [10:04:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119366,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [10:04:25]free response buf [10:04:25]execute_script done [10:04:25]execute_script returns [10:04:25]free content buf [10:04:25]Sock 9.Close socket [10:04:25]Sock 9.Thread stoped [10:04:27]accept exits with 8 [10:04:27]New connection [10:04:27]New thread 3067338084 created [10:04:27]Thread 3067194724 joined [10:04:27]Waiting for new connection... [10:04:27] Sock 8.Parse request [10:04:27]Sock 8.Check first char [10:04:27]Sock 8.First char is OK [10:04:27]request: POST /json_proto HTTP/1.0 [10:04:27]Method: POST [10:04:27]URL: /json_proto [10:04:27]Method is POST - this is cgi request [10:04:27]url: /json_proto [10:04:27]query_string will be loaded in cgi processing [10:04:27]execute_cgi json_proto POST (null) [10:04:27]execute_cgi path=json_proto method=POST [10:04:27]POST find Content-Length [10:04:27]Host: 172.17.45.7:8080 [10:04:27]Content-Length: 677 [10:04:27]Content-Type: application/json [10:04:27] [10:04:27]POST finish read [10:04:27]Found Content-Length = 677 [10:04:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:04:27]execute_script... [10:04: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)950295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:04:27]POST & json_proto [10:04:27]process_json_proto [10:04:27]json parsed OK: [10:04:27]protocol is kg_v1.0 [10:04:27]action value=close_receipt [10:04:27]process_action close_receipt [10:04:27]cmd_close_receipt [10:04:27]MH_GetDate [10:04:27]Write to MH i2c: F0 00 00 13 1A 1C [10:04:27]Write i2c OK [10:04:27]MH_I2C_Read... [10:04:27]Read from MH i2c: F0 [10:04:27]MH_I2C_Read... [10:04:27]Read from MH i2c: F0 09 00 [10:04:27]MH_I2C_Read... [10:04:27]Read from MH i2c: F0 09 00 13 1A 00 2D 0C AA 66 90 0F 3E 66 B1 [10:04:27]GetLastDocTimeStamp 1722420263 [10:04:27]current date 1722420269 [10:04:27]FM_GetShiftState [10:04:27]SAM_PROTO_GetShiftState [10:04:27]wFMCommunicate request_size=4 [10:04:27]MH_SAM_APDU [10:04:27]CAPDU: 80 13 01 00 [10:04:27]Write to MH i2c: E2 08 00 14 1A 80 13 01 00 00 00 00 00 AB [10:04:27]Write i2c OK [10:04:27]MH_I2C_Read... [10:04:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:27]Read from MH i2c: E2 [10:04:27]MH_I2C_Read... [10:04:27]Read from MH i2c: E2 0E 00 [10:04:27]MH_I2C_Read... [10:04:27]Read from MH i2c: E2 0E 00 14 1A 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 43 [10:04:27]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:04:27]wFMCommunicate OK [10:04:27]SAM_PROTO_GetShiftState done [10:04:27]FM_GetShiftState done [10:04:27]opened in 1722384637 [10:04:27]opened+sec_in_day 1722471037 [10:04:27]quantity*price = 50036 [10:04:27]sum+1 = 50037 [10:04:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 98 31.07.2024 10:04 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119367 ФПД: 19947102007945 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T100429&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119367&fm=19947102007945&tin=02508201610067®Number=0000000000092660&sum=50000 [10:04:29]StoreToDocumentArchive [10:04:29]shift 436 fd 119367 [10:04:29]save to /storage/0436/doc_00119367 [10:04:29]save last doc name /storage/0436/doc_00119367 to /storage/kkm_last_doc_name [10:04:29]save OK [10:04:29]Clear old archive folders... [10:04:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:04:29]tlvbuf is 00B0C280 [10:04:29]SAM_PROTO_ClearQueue [10:04:29]wFMCommunicate request_size=4 [10:04:29]MH_SAM_APDU [10:04:29]CAPDU: 80 09 00 00 [10:04:29]Write to MH i2c: E2 08 00 21 1A 80 09 00 00 00 00 00 00 AD [10:04:29]Write i2c OK [10:04:29]MH_I2C_Read... [10:04:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:29]Read from MH i2c: E2 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: E2 03 00 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: E2 03 00 21 1A 00 90 00 AF [10:04:29]RAPDU: 90 00 [10:04:29]wFMCommunicate OK [10:04:29]SAM_PROTO_ClearQueue done [10:04:29]KKMCreateOFDPacket [10:04:29]OFDProtocolAddRootSTLVToBuf [10:04:29]FM_MakeSignedData [10:04:29]FM_MakeSignedData [10:04:29]SAM_PROTO_SignData [10:04:29]wFMCommunicate request_size=4 [10:04:29]MH_SAM_APDU [10:04:29]CAPDU: 80 0D 01 02 [10:04:29]Write to MH i2c: E2 08 00 22 1A 80 0D 01 02 00 00 00 00 B5 [10:04:29]Write i2c OK [10:04:29]MH_I2C_Read... [10:04:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:29]Read from MH i2c: E2 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: E2 03 00 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: E2 03 00 22 1A 00 90 00 B0 [10:04:29]RAPDU: 90 00 [10:04:29]wFMCommunicate OK [10:04:29]wFMCommunicate request_size=255 [10:04:29]MH_SAM_APDU [10:04:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 62 00 00 00 F4 03 04 00 2D 0C AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 47 D2 01 00 35 04 06 00 12 [10:04:29]Write to MH i2c: E2 02 01 23 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 62 00 00 00 F4 03 04 00 2D 0C AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 47 D2 01 00 35 04 06 00 12 00 00 C5 [10:04:29]Write i2c OK [10:04:29]MH_I2C_Read... [10:04:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:29]Read from MH i2c: E2 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: E2 03 00 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: E2 03 00 23 1A 00 90 00 B1 [10:04:29]RAPDU: 90 00 [10:04:29]wFMCommunicate OK [10:04:29]wFMCommunicate request_size=10 [10:04:29]MH_SAM_APDU [10:04:29]CAPDU: 80 0D 02 02 05 24 4B ED F2 89 [10:04:29]Write to MH i2c: E2 0D 00 24 1A 80 0D 02 02 05 00 24 4B ED F2 89 00 00 99 [10:04:29]Write i2c OK [10:04:29]MH_I2C_Read... [10:04:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:29]Read from MH i2c: E2 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: E2 03 00 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: E2 03 00 24 1A 00 90 00 B2 [10:04:29]RAPDU: 90 00 [10:04:29]wFMCommunicate OK [10:04:29]wFMCommunicate request_size=4 [10:04:29]MH_SAM_APDU [10:04:29]CAPDU: 80 0D 03 02 [10:04:29]Write to MH i2c: E2 08 00 25 1A 80 0D 03 02 00 00 00 00 BA [10:04:29]Write i2c OK [10:04:29]MH_I2C_Read... [10:04:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:29]Read from MH i2c: E2 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: E2 0B 00 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: E2 0B 00 25 1A 00 08 7C 37 68 69 80 12 DC 90 00 B5 [10:04:29]RAPDU: 08 7C 37 68 69 80 12 DC 90 00 [10:04:29]wFMCommunicate OK [10:04:29]SAM_PROTO_SignData done [10:04:29]FM_MakeSignedData done [10:04:29]CreateOFDProtocolMessage [10:04:29]wFMCommunicate request_size=4 [10:04:29]MH_SAM_APDU [10:04:29]CAPDU: 80 11 00 00 [10:04:29]Write to MH i2c: E2 08 00 26 1A 80 11 00 00 00 00 00 00 BA [10:04:29]Write i2c OK [10:04:29]MH_I2C_Read... [10:04:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:29]Read from MH i2c: E2 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: E2 17 00 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: E2 17 00 26 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 15 [10:04:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:04:29]wFMCommunicate OK [10:04:29]CreateOFDProtocolMessage done [10:04:29]OFDSenderStorePacket 119367 [10:04:29]StoreOFDPacket docnum=119367 [10:04:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4D 9D 07 01 F1 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 62 00 00 00 F4 03 04 00 2D 0C AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 47 D2 01 00 35 04 06 00 12 24 4B ED F2 89 08 7C 37 68 69 80 12 DC [10:04:29]CheckFolder [10:04:29]dirname=/storage/ofd_packets [10:04:29]CheckFolder done [10:04:29]ProducePacketName [10:04:29]name=ofd_packets/00119367 [10:04:29]NVStorageSaveData ofd_packets/00119367 [10:04:29]File name is /storage/ofd_packets/00119367 [10:04:29]Write 301 bytes [10:04:29]NVStorageSaveData done [10:04:29]OFDSenderStorePacket done [10:04:29]KKMCreateOFDPacket done [10:04:29]NVStorageSaveData kkm_last_timestamp [10:04:29]File name is /storage/kkm_last_timestamp [10:04:29]Write 4 bytes [10:04:29]NVStorageSaveData done [10:04:29]ExternCall_PrintAddStr [10:04:29]wPrintStart [10:04:29]Write to MH i2c: 01 00 00 27 1A 41 [10:04:29]Write i2c OK [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: 01 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: 01 07 00 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: 01 07 00 27 1A 00 00 00 00 00 FF 0F 56 [10:04:29]RasterBufferAndPrint [10:04:29]line Счет N : (1)950295 [10:04:29]line ИНН: 02508201610067 [10:04:29]line Контрольно-Кассовый Чек [10:04:29]line ПРОДАЖА [10:04:29]line ТРК (МРК, ГНК) : 41 [10:04:29]line Товар: 2710124130 [10:04:29]line Аи-92-К-4 [10:04:29]line 7.380 * 67.80 [10:04:29]line = 500.36 [10:04:29]line НДС 12% НСП 1% [10:04:29]line > о реализуемом товаре [10:04:29]line ОКРУГЛЕНИЕ: -0.36 [10:04:29]line ИТОГО: 500.00 [10:04:29]line Внесено: 500.00 [10:04:29]line СДАЧА: 0.00 [10:04:29]line НСП 1% : 4.43 [10:04:29]line НДС 12% : 53.14 [10:04:29]line Наличными: 500.00 [10:04:29]line Безнал.: 0.00 [10:04:29]line Место: АЗС № 134 "Партнер Нефть" [10:04:29]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:04:29]line СНО: Общий режим [10:04:29]line Чек 98 31.07.2024 10:04 [10:04:29]line Смена: 436 ФФД: 1.0 [10:04:29]line ЗНМ: 0300000044 [10:04:29]line РНМ: 0000000000092660 [10:04:29]line Версия ККМ: 001 [10:04:29]line ФМ: 0000000000874939 [10:04:29]line ФД: 119367 [10:04:29]line ФПД: 19947102007945 [10:04:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T100429&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119367&fm=19947102007945&tin=02508201610067®Number=0000000000092660&sum=50000 [10:04:29]written 0, free lines is 4095 [10:04:29]OFD Sender: Processing packet 119367 [packets to send 86, broken 85] [10:04:29]ProducePacketName [10:04:29]name=ofd_packets/00119367 [10:04:29]OFD Sender: To server: pG, [10:04:29]CommunicateWithHost lk.salyk.kg:30040 [10:04:29]ConnectInit lk.salyk.kg [10:04:29]Connected sock=10 [10:04: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 39 33 39 0F 01 00 00 4D 9D 07 01 F1 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 62 00 00 00 F4 03 04 00 2D 0C AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 47 D2 01 00 35 04 06 00 12 24 4B ED F2 89 08 7C 37 68 69 80 12 DC [10:04:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 C6 3D 47 00 C4 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 47 D2 01 00 F4 03 04 00 B6 B9 A9 66 B6 04 01 00 00 6F 5E E8 6D 7F 40 BE 8E [10:04:30]CommunicateWithHost err = 0 [10:04:30]CheckOFDResponse [10:04:30]1017 (14) - 77093643461234 [10:04:30]1041 (16) - 0000000000874939 [10:04:30]1040 (4) - 119367 [10:04:30]1012 (4) - 31.07.2024 04:12 [10:04:30]1206 (1) - 0 [10:04:30]OFD Sender: Remove packet 119367 [10:04:30]ProducePacketName [10:04:30]name=ofd_packets/00119367 [10:04:30]NVStorageDeleteData [10:04:30]Write to MH i2c: 01 00 00 51 1A 6B [10:04:30]Write i2c OK [10:04:30]MH_I2C_Read... [10:04:30]Read from MH i2c: 01 [10:04:30]MH_I2C_Read... [10:04:30]Read from MH i2c: 01 07 00 [10:04:30]MH_I2C_Read... [10:04:30]Read from MH i2c: 01 07 00 51 1A 00 00 00 00 00 EB 0C 69 [10:04:30]RasterBufferAndPrint [10:04:30]line [10:04:30]line [10:04:30]line [10:04:30]line [10:04:30]line [10:04:30]written 0, free lines is 3319 [10:04:30]MH_Cut [10:04:30]Write to MH i2c: D1 01 00 58 1A 01 44 [10:04:30]Write i2c OK [10:04:30]MH_I2C_Read... [10:04:30]Read from MH i2c: D1 [10:04:30]MH_I2C_Read... [10:04:30]Read from MH i2c: D1 01 00 [10:04:30]MH_I2C_Read... [10:04:30]Read from MH i2c: D1 01 00 58 1A 00 43 [10:04:30]Write to MH i2c: 01 00 00 59 1A 73 [10:04:30]Write i2c OK [10:04:30]MH_I2C_Read... [10:04:30]OFD Sender: No OFD packet to send [10:04:30]*** Cut start [10:04:30]*** Partial cut [10:04:30]*** CUTSNS_PIN = 1 [10:04:30]*** CUTSNS_PIN = 0 [10:04:31]*** Brake cut motor [10:04:31]Read from MH i2c: 01 [10:04:31]MH_I2C_Read... [10:04:31]*** Stop cut motor [10:04:31]*** Cut end [10:04:31]Read from MH i2c: 01 07 00 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: 01 07 00 59 1A 00 00 00 00 00 FF 0F 88 [10:04:31]process_action close_receipt done [10:04:31]requested_data is exist [10:04:31]produce_requested_data [10:04:31]requested_item fm.sn is exist - process it [10:04:31]wFMCommunicate request_size=4 [10:04:31]MH_SAM_APDU [10:04:31]CAPDU: 80 11 00 00 [10:04:31]Write to MH i2c: E2 08 00 5A 1A 80 11 00 00 00 00 00 00 EE [10:04:31]Write i2c OK [10:04:31]MH_I2C_Read... [10:04:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:31]Read from MH i2c: E2 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: E2 17 00 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: E2 17 00 5A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 49 [10:04:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:04:31]wFMCommunicate OK [10:04:31]requested_item fd.num is exist - process it [10:04:31]SAM_PROTO_GetFieldsCounters [10:04:31]wFMCommunicate request_size=4 [10:04:31]MH_SAM_APDU [10:04:31]CAPDU: 80 13 00 00 [10:04:31]Write to MH i2c: E2 08 00 5B 1A 80 13 00 00 00 00 00 00 F1 [10:04:31]Write i2c OK [10:04:31]MH_I2C_Read... [10:04:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:31]Read from MH i2c: E2 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: E2 62 00 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: E2 62 00 5B 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 47 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [10:04: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 47 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:04:31]wFMCommunicate OK [10:04:31]SAM_PROTO_GetFieldsCounters done [10:04:31]requested_item shift.num is exist - process it [10:04:31]requested_item shift.opened is exist - process it [10:04:31]req_shift_opened [10:04:31]FM_GetShiftState [10:04:31]SAM_PROTO_GetShiftState [10:04:31]wFMCommunicate request_size=4 [10:04:31]MH_SAM_APDU [10:04:31]CAPDU: 80 13 01 00 [10:04:31]Write to MH i2c: E2 08 00 5C 1A 80 13 01 00 00 00 00 00 F3 [10:04:31]Write i2c OK [10:04:31]MH_I2C_Read... [10:04:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:31]Read from MH i2c: E2 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: E2 0E 00 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: E2 0E 00 5C 1A 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 8B [10:04:31]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:04:31]wFMCommunicate OK [10:04:31]SAM_PROTO_GetShiftState done [10:04:31]FM_GetShiftState done [10:04:31]req_shift_opened done [10:04:31]requested_item shift.open_date is exist - process it [10:04:31]req_shift_open_date [10:04:31]req_shift_open_date done [10:04:31]produce_requested_data done [10:04:31]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119367,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [10:04:31]process_action_free close_receipt [10:04:31]json_value_free [10:04:31]json_value_free done [10:04:31]process_json_proto returns [10:04:31]Send response to host [10:04:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119367,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [10:04:31]free response buf [10:04:31]execute_script done [10:04:31]execute_script returns [10:04:31]free content buf [10:04:31]Sock 8.Close socket [10:04:31]Sock 8.Thread stoped [10:04:35]OFD Sender: No OFD packet to send [10:04:40]OFD Sender: No OFD packet to send [10:04:45]OFD Sender: No OFD packet to send [10:04:50]OFD Sender: No OFD packet to send [10:04:55]accept exits with 9 [10:04:55]New connection [10:04:55]New thread 3067194724 created [10:04:55]Thread 3067338084 joined [10:04:55]Waiting for new connection... [10:04:55] Sock 9.Parse request [10:04:55]Sock 9.Check first char [10:04:55]Sock 9.First char is OK [10:04:55]request: POST /json_proto HTTP/1.0 [10:04:55]Method: POST [10:04:55]URL: /json_proto [10:04:55]Method is POST - this is cgi request [10:04:55]url: /json_proto [10:04:55]query_string will be loaded in cgi processing [10:04:55]execute_cgi json_proto POST (null) [10:04:55]execute_cgi path=json_proto method=POST [10:04:55]POST find Content-Length [10:04:55]Host: 172.17.45.7:8080 [10:04:55]Content-Length: 838 [10:04:55]Content-Type: application/json [10:04:55] [10:04:55]POST finish read [10:04:55]Found Content-Length = 838 [10:04:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 73.54, "quantity" : 13.600, "sum" : 1000.14, "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 \u0411\u0430\u043D\u043A", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:55]execute_script... [10:04: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)950293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 73.54, "quantity" : 13.600, "sum" : 1000.14, "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 \u0411\u0430\u043D\u043A", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:55]POST & json_proto [10:04:55]process_json_proto [10:04:55]json parsed OK: [10:04:55]protocol is kg_v1.0 [10:04:55]action value=close_receipt [10:04:55]process_action close_receipt [10:04:55]cmd_close_receipt [10:04:55]MH_GetDate [10:04:55]Write to MH i2c: F0 00 00 5D 1A 66 [10:04:55]Write i2c OK [10:04:55]MH_I2C_Read... [10:04:55]Read from MH i2c: F0 [10:04:55]MH_I2C_Read... [10:04:55]Read from MH i2c: F0 09 00 [10:04:55]MH_I2C_Read... [10:04:55]Read from MH i2c: F0 09 00 5D 1A 00 49 0C AA 66 90 0F 3E 66 17 [10:04:55]GetLastDocTimeStamp 1722420269 [10:04:55]current date 1722420297 [10:04:55]FM_GetShiftState [10:04:55]SAM_PROTO_GetShiftState [10:04:55]wFMCommunicate request_size=4 [10:04:55]MH_SAM_APDU [10:04:55]CAPDU: 80 13 01 00 [10:04:55]Write to MH i2c: E2 08 00 5E 1A 80 13 01 00 00 00 00 00 F5 [10:04:55]Write i2c OK [10:04:55]MH_I2C_Read... [10:04:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:55]Read from MH i2c: E2 [10:04:55]MH_I2C_Read... [10:04:55]Read from MH i2c: E2 0E 00 [10:04:55]MH_I2C_Read... [10:04:55]Read from MH i2c: E2 0E 00 5E 1A 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 8D [10:04:55]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:04:55]wFMCommunicate OK [10:04:55]SAM_PROTO_GetShiftState done [10:04:55]FM_GetShiftState done [10:04:55]opened in 1722384637 [10:04:55]opened+sec_in_day 1722471037 [10:04:55]quantity*price = 100014 [10:04:55]sum+1 = 100015 [10:04:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 99 31.07.2024 10:04 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874939 ФД: 119368 ФПД: 75337909730772 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T100457&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119368&fm=75337909730772&tin=02508201610067®Number=0000000000092660&sum=100000 [10:04:56]StoreToDocumentArchive [10:04:56]shift 436 fd 119368 [10:04:56]save to /storage/0436/doc_00119368 [10:04:56]save last doc name /storage/0436/doc_00119368 to /storage/kkm_last_doc_name [10:04:56]save OK [10:04:56]Clear old archive folders... [10:04:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:04:56]tlvbuf is 00AC4AC0 [10:04:56]SAM_PROTO_ClearQueue [10:04:56]wFMCommunicate request_size=4 [10:04:56]MH_SAM_APDU [10:04:56]CAPDU: 80 09 00 00 [10:04:56]Write to MH i2c: E2 08 00 6B 1A 80 09 00 00 00 00 00 00 F7 [10:04:56]Write i2c OK [10:04:56]MH_I2C_Read... [10:04:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:56]Read from MH i2c: E2 [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: E2 03 00 [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: E2 03 00 6B 1A 00 90 00 F9 [10:04:56]RAPDU: 90 00 [10:04:56]wFMCommunicate OK [10:04:56]SAM_PROTO_ClearQueue done [10:04:56]KKMCreateOFDPacket [10:04:56]OFDProtocolAddRootSTLVToBuf [10:04:56]FM_MakeSignedData [10:04:56]FM_MakeSignedData [10:04:56]SAM_PROTO_SignData [10:04:56]wFMCommunicate request_size=4 [10:04:56]MH_SAM_APDU [10:04:56]CAPDU: 80 0D 01 02 [10:04:56]Write to MH i2c: E2 08 00 6C 1A 80 0D 01 02 00 00 00 00 FF [10:04:56]Write i2c OK [10:04:56]MH_I2C_Read... [10:04:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:56]Read from MH i2c: E2 [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: E2 03 00 [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: E2 03 00 6C 1A 00 90 00 FA [10:04:56]RAPDU: 90 00 [10:04:56]wFMCommunicate OK [10:04:56]wFMCommunicate request_size=255 [10:04:56]MH_SAM_APDU [10:04:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 35 00 00 00 00 00 37 04 06 00 BA 1C 00 00 00 00 13 04 06 00 AE 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 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 49 0C AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 48 D2 01 00 35 04 06 00 44 [10:04:56]Write to MH i2c: E2 02 01 6D 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 35 00 00 00 00 00 37 04 06 00 BA 1C 00 00 00 00 13 04 06 00 AE 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 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 49 0C AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 48 D2 01 00 35 04 06 00 44 00 00 B9 [10:04:56]Write i2c OK [10:04:56]MH_I2C_Read... [10:04:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:56]Read from MH i2c: E2 [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: E2 03 00 [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: E2 03 00 6D 1A 00 90 00 FB [10:04:56]RAPDU: 90 00 [10:04:56]wFMCommunicate OK [10:04:56]wFMCommunicate request_size=10 [10:04:56]MH_SAM_APDU [10:04:56]CAPDU: 80 0D 02 02 05 84 F9 58 FD D4 [10:04:56]Write to MH i2c: E2 0D 00 6E 1A 80 0D 02 02 05 00 84 F9 58 FD D4 00 00 B2 [10:04:56]Write i2c OK [10:04:56]MH_I2C_Read... [10:04:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:57]Read from MH i2c: E2 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: E2 03 00 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: E2 03 00 6E 1A 00 90 00 FC [10:04:57]RAPDU: 90 00 [10:04:57]wFMCommunicate OK [10:04:57]wFMCommunicate request_size=4 [10:04:57]MH_SAM_APDU [10:04:57]CAPDU: 80 0D 03 02 [10:04:57]Write to MH i2c: E2 08 00 6F 1A 80 0D 03 02 00 00 00 00 04 [10:04:57]Write i2c OK [10:04:57]MH_I2C_Read... [10:04:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:57]Read from MH i2c: E2 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: E2 0B 00 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: E2 0B 00 6F 1A 00 00 D5 5C 16 72 2A 55 96 90 00 D3 [10:04:57]RAPDU: 00 D5 5C 16 72 2A 55 96 90 00 [10:04:57]wFMCommunicate OK [10:04:57]SAM_PROTO_SignData done [10:04:57]FM_MakeSignedData done [10:04:57]CreateOFDProtocolMessage [10:04:57]wFMCommunicate request_size=4 [10:04:57]MH_SAM_APDU [10:04:57]CAPDU: 80 11 00 00 [10:04:57]Write to MH i2c: E2 08 00 70 1A 80 11 00 00 00 00 00 00 04 [10:04:57]Write i2c OK [10:04:57]MH_I2C_Read... [10:04:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:57]Read from MH i2c: E2 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: E2 17 00 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: E2 17 00 70 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5F [10:04:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:04:57]wFMCommunicate OK [10:04:57]CreateOFDProtocolMessage done [10:04:57]OFDSenderStorePacket 119368 [10:04:57]StoreOFDPacket docnum=119368 [10:04:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 53 43 07 01 DD E2 5A 03 01 00 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 20 35 00 00 00 00 00 37 04 06 00 BA 1C 00 00 00 00 13 04 06 00 AE 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 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 49 0C AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 48 D2 01 00 35 04 06 00 44 84 F9 58 FD D4 00 D5 5C 16 72 2A 55 96 [10:04:57]CheckFolder [10:04:57]dirname=/storage/ofd_packets [10:04:57]CheckFolder done [10:04:57]ProducePacketName [10:04:57]name=ofd_packets/00119368 [10:04:57]NVStorageSaveData ofd_packets/00119368 [10:04:57]File name is /storage/ofd_packets/00119368 [10:04:57]Write 301 bytes [10:04:57]NVStorageSaveData done [10:04:57]OFDSenderStorePacket done [10:04:57]KKMCreateOFDPacket done [10:04:57]NVStorageSaveData kkm_last_timestamp [10:04:57]File name is /storage/kkm_last_timestamp [10:04:57]Write 4 bytes [10:04:57]NVStorageSaveData done [10:04:57]ExternCall_PrintAddStr [10:04:57]wPrintStart [10:04:57]Write to MH i2c: 01 00 00 71 1A 8B [10:04:57]Write i2c OK [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: 01 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: 01 07 00 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: 01 07 00 71 1A 00 00 00 00 00 FF 0F A0 [10:04:57]RasterBufferAndPrint [10:04:57]line Счет N : (1)950293 [10:04:57]line ИНН: 02508201610067 [10:04:57]line Контрольно-Кассовый Чек [10:04:57]line ПРОДАЖА [10:04:57]line ТРК (МРК, ГНК) : 33 [10:04:57]line Товар: 2710124500 [10:04:57]line Аи-95-К-3 [10:04:57]line 13.600 * 73.54 [10:04:57]line = 1000.14 [10:04:57]line НДС 12% НСП 1% [10:04:57]line > о реализуемом товаре [10:04:57]line ОКРУГЛЕНИЕ: -0.14 [10:04:57]line ИТОГО: 1000.00 [10:04:57]line НСП 1% : 8.85 [10:04:57]line НДС 12% : 106.21 [10:04:57]line Наличными: 0.00 [10:04:57]line Безнал.: 1000.00 [10:04:57]line Место: АЗС № 134 "Партнер Нефть" [10:04:57]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:04:57]line СНО: Общий режим [10:04:57]line Чек 99 31.07.2024 10:04 [10:04:57]line Смена: 436 ФФД: 1.0 [10:04:57]line ЗНМ: 0300000044 [10:04:57]line РНМ: 0000000000092660 [10:04:57]line Версия ККМ: 001 [10:04:57]line Платежная система: Бакай Банк [10:04:57]line ФМ: 0000000000874939 [10:04:57]line ФД: 119368 [10:04:57]line ФПД: 75337909730772 [10:04:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T100457&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119368&fm=75337909730772&tin=02508201610067®Number=0000000000092660&sum=100000 [10:04:57]written 0, free lines is 4095 [10:04:57]OFD Sender: Processing packet 119368 [packets to send 86, broken 85] [10:04:57]ProducePacketName [10:04:57]name=ofd_packets/00119368 [10:04:57]OFD Sender: To server: pG, [10:04:57]CommunicateWithHost lk.salyk.kg:30040 [10:04:57]ConnectInit lk.salyk.kg [10:04:57]Connected sock=10 [10:04:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 53 43 07 01 DD E2 5A 03 01 00 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 20 35 00 00 00 00 00 37 04 06 00 BA 1C 00 00 00 00 13 04 06 00 AE 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 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 49 0C AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 48 D2 01 00 35 04 06 00 44 84 F9 58 FD D4 00 D5 5C 16 72 2A 55 96 [10:04:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E6 B8 47 00 17 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 48 D2 01 00 F4 03 04 00 D2 B9 A9 66 B6 04 01 00 00 4A 83 4E D4 B3 67 63 9F [10:04:57]CommunicateWithHost err = 0 [10:04:57]CheckOFDResponse [10:04:57]1017 (14) - 77093643461234 [10:04:57]1041 (16) - 0000000000874939 [10:04:57]1040 (4) - 119368 [10:04:57]1012 (4) - 31.07.2024 04:13 [10:04:57]1206 (1) - 0 [10:04:57]OFD Sender: Remove packet 119368 [10:04:57]ProducePacketName [10:04:57]name=ofd_packets/00119368 [10:04:57]NVStorageDeleteData [10:04:57]Write to MH i2c: 01 00 00 9B 1A B5 [10:04:57]Write i2c OK [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: 01 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: 01 07 00 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: 01 07 00 9B 1A 00 00 00 00 00 E3 0C AB [10:04:57]RasterBufferAndPrint [10:04:57]line [10:04:57]line [10:04:57]line [10:04:57]line [10:04:57]line [10:04:57]written 0, free lines is 3306 [10:04:57]MH_Cut [10:04:57]Write to MH i2c: D1 01 00 A2 1A 01 8E [10:04:57]Write i2c OK [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: D1 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: D1 01 00 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: D1 01 00 A2 1A 00 8D [10:04:57]Write to MH i2c: 01 00 00 A3 1A BD [10:04:57]Write i2c OK [10:04:57]MH_I2C_Read... [10:04:58]OFD Sender: No OFD packet to send [10:04:58]*** Cut start [10:04:58]*** Partial cut [10:04:58]*** CUTSNS_PIN = 1 [10:04:58]*** CUTSNS_PIN = 0 [10:04:58]*** Brake cut motor [10:04:59]Read from MH i2c: 01 [10:04:59]MH_I2C_Read... [10:04:59]*** Stop cut motor [10:04:59]*** Cut end [10:04:59]Read from MH i2c: 01 07 00 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: 01 07 00 A3 1A 00 00 00 00 00 FF 0F D2 [10:04:59]process_action close_receipt done [10:04:59]requested_data is exist [10:04:59]produce_requested_data [10:04:59]requested_item fm.sn is exist - process it [10:04:59]wFMCommunicate request_size=4 [10:04:59]MH_SAM_APDU [10:04:59]CAPDU: 80 11 00 00 [10:04:59]Write to MH i2c: E2 08 00 A4 1A 80 11 00 00 00 00 00 00 38 [10:04:59]Write i2c OK [10:04:59]MH_I2C_Read... [10:04:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:59]Read from MH i2c: E2 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: E2 17 00 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: E2 17 00 A4 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 93 [10:04:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:04:59]wFMCommunicate OK [10:04:59]requested_item fd.num is exist - process it [10:04:59]SAM_PROTO_GetFieldsCounters [10:04:59]wFMCommunicate request_size=4 [10:04:59]MH_SAM_APDU [10:04:59]CAPDU: 80 13 00 00 [10:04:59]Write to MH i2c: E2 08 00 A5 1A 80 13 00 00 00 00 00 00 3B [10:04:59]Write i2c OK [10:04:59]MH_I2C_Read... [10:04:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:59]Read from MH i2c: E2 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: E2 62 00 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: E2 62 00 A5 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 48 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [10:04:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 48 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:04:59]wFMCommunicate OK [10:04:59]SAM_PROTO_GetFieldsCounters done [10:04:59]requested_item shift.num is exist - process it [10:04:59]requested_item shift.opened is exist - process it [10:04:59]req_shift_opened [10:04:59]FM_GetShiftState [10:04:59]SAM_PROTO_GetShiftState [10:04:59]wFMCommunicate request_size=4 [10:04:59]MH_SAM_APDU [10:04:59]CAPDU: 80 13 01 00 [10:04:59]Write to MH i2c: E2 08 00 A6 1A 80 13 01 00 00 00 00 00 3D [10:04:59]Write i2c OK [10:04:59]MH_I2C_Read... [10:04:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:59]Read from MH i2c: E2 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: E2 0E 00 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: E2 0E 00 A6 1A 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 D5 [10:04:59]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:04:59]wFMCommunicate OK [10:04:59]SAM_PROTO_GetShiftState done [10:04:59]FM_GetShiftState done [10:04:59]req_shift_opened done [10:04:59]requested_item shift.open_date is exist - process it [10:04:59]req_shift_open_date [10:04:59]req_shift_open_date done [10:04:59]produce_requested_data done [10:04:59]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119368,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [10:04:59]process_action_free close_receipt [10:04:59]json_value_free [10:04:59]json_value_free done [10:04:59]process_json_proto returns [10:04:59]Send response to host [10:04:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119368,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [10:04:59]free response buf [10:04:59]execute_script done [10:04:59]execute_script returns [10:04:59]free content buf [10:04:59]Sock 9.Close socket [10:04:59]Sock 9.Thread stoped [10:04:59]accept exits with 8 [10:04:59]New connection [10:04:59]New thread 3067338084 created [10:04:59]Thread 3067194724 joined [10:04:59]Waiting for new connection... [10:04:59] Sock 8.Parse request [10:04:59]Sock 8.Check first char [10:04:59]Sock 8.First char is OK [10:04:59]request: POST /json_proto HTTP/1.0 [10:04:59]Method: POST [10:04:59]URL: /json_proto [10:04:59]Method is POST - this is cgi request [10:04:59]url: /json_proto [10:04:59]query_string will be loaded in cgi processing [10:04:59]execute_cgi json_proto POST (null) [10:04:59]execute_cgi path=json_proto method=POST [10:04:59]POST find Content-Length [10:04:59]Host: 172.17.45.7:8080 [10:04:59]Content-Length: 819 [10:04:59]Content-Type: application/json [10:04:59] [10:04:59]POST finish read [10:04:59]Found Content-Length = 819 [10:04:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 23.630, "sum" : 1800.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1800.00, "payments": [ { "type": 1, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:59]execute_script... [10:04: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)950291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 23.630, "sum" : 1800.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1800.00, "payments": [ { "type": 1, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:59]POST & json_proto [10:04:59]process_json_proto [10:04:59]json parsed OK: [10:04:59]protocol is kg_v1.0 [10:04:59]action value=close_receipt [10:04:59]process_action close_receipt [10:04:59]cmd_close_receipt [10:04:59]MH_GetDate [10:04:59]Write to MH i2c: F0 00 00 A7 1A B0 [10:04:59]Write i2c OK [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: F0 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: F0 09 00 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: F0 09 00 A7 1A 00 4D 0C AA 66 90 0F 3E 66 65 [10:04:59]GetLastDocTimeStamp 1722420297 [10:04:59]current date 1722420301 [10:04:59]FM_GetShiftState [10:04:59]SAM_PROTO_GetShiftState [10:04:59]wFMCommunicate request_size=4 [10:04:59]MH_SAM_APDU [10:04:59]CAPDU: 80 13 01 00 [10:04:59]Write to MH i2c: E2 08 00 A8 1A 80 13 01 00 00 00 00 00 3F [10:04:59]Write i2c OK [10:04:59]MH_I2C_Read... [10:04:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:59]Read from MH i2c: E2 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: E2 0E 00 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: E2 0E 00 A8 1A 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 D7 [10:04:59]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:04:59]wFMCommunicate OK [10:04:59]SAM_PROTO_GetShiftState done [10:04:59]FM_GetShiftState done [10:04:59]opened in 1722384637 [10:04:59]opened+sec_in_day 1722471037 [10:04:59]quantity*price = 180060 [10:04:59]sum+1 = 180062 [10:04:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1800.00 НСП 1% : 15.93 НДС 12% : 191.21 Наличными: 0.00 Безнал.: 1800.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 100 31.07.2024 10:05 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119369 ФПД: 118387964497062 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T100501&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119369&fm=118387964497062&tin=02508201610067®Number=0000000000092660&sum=180000 [10:05:01]StoreToDocumentArchive [10:05:01]shift 436 fd 119369 [10:05:01]save to /storage/0436/doc_00119369 [10:05:01]save last doc name /storage/0436/doc_00119369 to /storage/kkm_last_doc_name [10:05:01]save OK [10:05:01]Clear old archive folders... [10:05:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:05:01]tlvbuf is 00B5B8F0 [10:05:01]SAM_PROTO_ClearQueue [10:05:01]wFMCommunicate request_size=4 [10:05:01]MH_SAM_APDU [10:05:01]CAPDU: 80 09 00 00 [10:05:01]Write to MH i2c: E2 08 00 B5 1A 80 09 00 00 00 00 00 00 41 [10:05:01]Write i2c OK [10:05:01]MH_I2C_Read... [10:05:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:01]Read from MH i2c: E2 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 03 00 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 03 00 B5 1A 00 90 00 43 [10:05:01]RAPDU: 90 00 [10:05:01]wFMCommunicate OK [10:05:01]SAM_PROTO_ClearQueue done [10:05:01]KKMCreateOFDPacket [10:05:01]OFDProtocolAddRootSTLVToBuf [10:05:01]FM_MakeSignedData [10:05:01]FM_MakeSignedData [10:05:01]SAM_PROTO_SignData [10:05:01]wFMCommunicate request_size=4 [10:05:01]MH_SAM_APDU [10:05:01]CAPDU: 80 0D 01 02 [10:05:01]Write to MH i2c: E2 08 00 B6 1A 80 0D 01 02 00 00 00 00 49 [10:05:01]Write i2c OK [10:05:01]MH_I2C_Read... [10:05:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:01]Read from MH i2c: E2 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 03 00 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 03 00 B6 1A 00 90 00 44 [10:05:01]RAPDU: 90 00 [10:05:01]wFMCommunicate OK [10:05:01]wFMCommunicate request_size=255 [10:05:01]MH_SAM_APDU [10:05:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 4D 0C AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 49 D2 01 00 35 04 06 00 6B AC 58 91 [10:05:01]Write to MH i2c: E2 02 01 B7 1A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 4D 0C AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 49 D2 01 00 35 04 06 00 6B AC 58 91 00 00 F4 [10:05:01]Write i2c OK [10:05:01]MH_I2C_Read... [10:05:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:01]Read from MH i2c: E2 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 03 00 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 03 00 B7 1A 00 90 00 45 [10:05:01]RAPDU: 90 00 [10:05:01]wFMCommunicate OK [10:05:01]wFMCommunicate request_size=7 [10:05:01]MH_SAM_APDU [10:05:01]CAPDU: 80 0D 02 02 02 CC A6 [10:05:01]Write to MH i2c: E2 0A 00 B8 1A 80 0D 02 02 02 00 CC A6 00 00 C2 [10:05:01]Write i2c OK [10:05:01]MH_I2C_Read... [10:05:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:01]Read from MH i2c: E2 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 03 00 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 03 00 B8 1A 00 90 00 46 [10:05:01]RAPDU: 90 00 [10:05:01]wFMCommunicate OK [10:05:01]wFMCommunicate request_size=4 [10:05:01]MH_SAM_APDU [10:05:01]CAPDU: 80 0D 03 02 [10:05:01]Write to MH i2c: E2 08 00 B9 1A 80 0D 03 02 00 00 00 00 4E [10:05:01]Write i2c OK [10:05:01]MH_I2C_Read... [10:05:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:01]Read from MH i2c: E2 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 0B 00 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 0B 00 B9 1A 00 6D F4 F6 5D FE 7D 6D 7E 90 00 69 [10:05:01]RAPDU: 6D F4 F6 5D FE 7D 6D 7E 90 00 [10:05:01]wFMCommunicate OK [10:05:01]SAM_PROTO_SignData done [10:05:01]FM_MakeSignedData done [10:05:01]CreateOFDProtocolMessage [10:05:01]wFMCommunicate request_size=4 [10:05:01]MH_SAM_APDU [10:05:01]CAPDU: 80 11 00 00 [10:05:01]Write to MH i2c: E2 08 00 BA 1A 80 11 00 00 00 00 00 00 4E [10:05:01]Write i2c OK [10:05:01]MH_I2C_Read... [10:05:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:01]Read from MH i2c: E2 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 17 00 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 17 00 BA 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A9 [10:05:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:05:01]wFMCommunicate OK [10:05:01]CreateOFDProtocolMessage done [10:05:01]OFDSenderStorePacket 119369 [10:05:01]StoreOFDPacket docnum=119369 [10:05:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 FA BF 04 01 8F 62 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 4D 0C AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 49 D2 01 00 35 04 06 00 6B AC 58 91 CC A6 6D F4 F6 5D FE 7D 6D 7E [10:05:01]CheckFolder [10:05:01]dirname=/storage/ofd_packets [10:05:01]CheckFolder done [10:05:01]ProducePacketName [10:05:01]name=ofd_packets/00119369 [10:05:01]NVStorageSaveData ofd_packets/00119369 [10:05:01]File name is /storage/ofd_packets/00119369 [10:05:01]Write 298 bytes [10:05:01]NVStorageSaveData done [10:05:01]OFDSenderStorePacket done [10:05:01]KKMCreateOFDPacket done [10:05:01]NVStorageSaveData kkm_last_timestamp [10:05:01]File name is /storage/kkm_last_timestamp [10:05:01]Write 4 bytes [10:05:01]NVStorageSaveData done [10:05:01]ExternCall_PrintAddStr [10:05:01]wPrintStart [10:05:01]Write to MH i2c: 01 00 00 BB 1A D5 [10:05:01]Write i2c OK [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: 01 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: 01 07 00 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: 01 07 00 BB 1A 00 00 00 00 00 FF 0F EA [10:05:01]RasterBufferAndPrint [10:05:01]line Счет N : (1)950291 [10:05:01]line ИНН: 02508201610067 [10:05:01]line Контрольно-Кассовый Чек [10:05:01]line ПРОДАЖА [10:05:01]line ТРК (МРК, ГНК) : 11 [10:05:01]line Товар: 2710194800 [10:05:01]line ДТ-К-5 [10:05:01]line 23.630 * 76.20 [10:05:01]line = 1800.61 [10:05:01]line НДС 12% НСП 1% [10:05:01]line > о реализуемом товаре [10:05:01]line ОКРУГЛЕНИЕ: -0.61 [10:05:01]line ИТОГО: 1800.00 [10:05:01]line НСП 1% : 15.93 [10:05:01]line НДС 12% : 191.21 [10:05:01]line Наличными: 0.00 [10:05:01]line Безнал.: 1800.00 [10:05:01]line Место: АЗС № 134 "Партнер Нефть" [10:05:02]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:05:02]line СНО: Общий режим [10:05:02]line Чек 100 31.07.2024 10:05 [10:05:02]line Смена: 436 ФФД: 1.0 [10:05:02]line ЗНМ: 0300000044 [10:05:02]line РНМ: 0000000000092660 [10:05:02]line Версия ККМ: 001 [10:05:02]line Платежная система: O! деньги [10:05:02]line ФМ: 0000000000874939 [10:05:02]line ФД: 119369 [10:05:02]line ФПД: 118387964497062 [10:05:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T100501&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119369&fm=118387964497062&tin=02508201610067®Number=0000000000092660&sum=180000 [10:05:02]OFD Sender: Processing packet 119369 [packets to send 86, broken 85] [10:05:02]ProducePacketName [10:05:02]name=ofd_packets/00119369 [10:05:02]OFD Sender: To server: pG, [10:05:02]CommunicateWithHost lk.salyk.kg:30040 [10:05:02]ConnectInit lk.salyk.kg [10:05:02]written 0, free lines is 4095 [10:05:02]Connected sock=10 [10:05: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 39 33 39 0C 01 00 00 FA BF 04 01 8F 62 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 4D 0C AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 49 D2 01 00 35 04 06 00 6B AC 58 91 CC A6 6D F4 F6 5D FE 7D 6D 7E [10:05:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 C4 33 47 00 DA D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 49 D2 01 00 F4 03 04 00 D7 B9 A9 66 B6 04 01 00 00 87 7B 8A 7B D5 CA 6E FC [10:05:02]CommunicateWithHost err = 0 [10:05:02]CheckOFDResponse [10:05:02]1017 (14) - 77093643461234 [10:05:02]1041 (16) - 0000000000874939 [10:05:02]1040 (4) - 119369 [10:05:02]1012 (4) - 31.07.2024 04:13 [10:05:02]1206 (1) - 0 [10:05:02]OFD Sender: Remove packet 119369 [10:05:02]ProducePacketName [10:05:02]name=ofd_packets/00119369 [10:05:02]NVStorageDeleteData [10:05:02]Write to MH i2c: 01 00 00 E5 1A FF [10:05:02]Write i2c OK [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: 01 [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: 01 07 00 [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: 01 07 00 E5 1A 00 00 00 00 00 E8 0C FA [10:05:02]RasterBufferAndPrint [10:05:02]line [10:05:02]line [10:05:02]line [10:05:02]line [10:05:02]line [10:05:02]written 0, free lines is 3317 [10:05:02]MH_Cut [10:05:02]Write to MH i2c: D1 01 00 EC 1A 01 D8 [10:05:02]Write i2c OK [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: D1 [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: D1 01 00 [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: D1 01 00 EC 1A 00 D7 [10:05:02]Write to MH i2c: 01 00 00 ED 1A 07 [10:05:02]Write i2c OK [10:05:02]MH_I2C_Read... [10:05:03]OFD Sender: No OFD packet to send [10:05:03]*** Cut start [10:05:03]*** Partial cut [10:05:03]*** CUTSNS_PIN = 1 [10:05:03]*** CUTSNS_PIN = 0 [10:05:03]*** Brake cut motor [10:05:03]Read from MH i2c: 01 [10:05:03]MH_I2C_Read... [10:05:03]*** Stop cut motor [10:05:03]*** Cut end [10:05:03]Read from MH i2c: 01 07 00 [10:05:03]MH_I2C_Read... [10:05:03]Read from MH i2c: 01 07 00 ED 1A 00 00 00 00 00 FF 0F 1C [10:05:03]process_action close_receipt done [10:05:03]requested_data is exist [10:05:03]produce_requested_data [10:05:03]requested_item fm.sn is exist - process it [10:05:03]wFMCommunicate request_size=4 [10:05:03]MH_SAM_APDU [10:05:03]CAPDU: 80 11 00 00 [10:05:03]Write to MH i2c: E2 08 00 EE 1A 80 11 00 00 00 00 00 00 82 [10:05:03]Write i2c OK [10:05:03]MH_I2C_Read... [10:05:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:04]Read from MH i2c: E2 [10:05:04]MH_I2C_Read... [10:05:04]Read from MH i2c: E2 17 00 [10:05:04]MH_I2C_Read... [10:05:04]Read from MH i2c: E2 17 00 EE 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DD [10:05:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:05:04]wFMCommunicate OK [10:05:04]requested_item fd.num is exist - process it [10:05:04]SAM_PROTO_GetFieldsCounters [10:05:04]wFMCommunicate request_size=4 [10:05:04]MH_SAM_APDU [10:05:04]CAPDU: 80 13 00 00 [10:05:04]Write to MH i2c: E2 08 00 EF 1A 80 13 00 00 00 00 00 00 85 [10:05:04]Write i2c OK [10:05:04]MH_I2C_Read... [10:05:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:04]Read from MH i2c: E2 [10:05:04]MH_I2C_Read... [10:05:04]Read from MH i2c: E2 62 00 [10:05:04]MH_I2C_Read... [10:05:04]Read from MH i2c: E2 62 00 EF 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 49 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [10:05: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 49 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:05:04]wFMCommunicate OK [10:05:04]SAM_PROTO_GetFieldsCounters done [10:05:04]requested_item shift.num is exist - process it [10:05:04]requested_item shift.opened is exist - process it [10:05:04]req_shift_opened [10:05:04]FM_GetShiftState [10:05:04]SAM_PROTO_GetShiftState [10:05:04]wFMCommunicate request_size=4 [10:05:04]MH_SAM_APDU [10:05:04]CAPDU: 80 13 01 00 [10:05:04]Write to MH i2c: E2 08 00 F0 1A 80 13 01 00 00 00 00 00 87 [10:05:04]Write i2c OK [10:05:04]MH_I2C_Read... [10:05:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:04]Read from MH i2c: E2 [10:05:04]MH_I2C_Read... [10:05:04]Read from MH i2c: E2 0E 00 [10:05:04]MH_I2C_Read... [10:05:04]Read from MH i2c: E2 0E 00 F0 1A 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 1F [10:05:04]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:05:04]wFMCommunicate OK [10:05:04]SAM_PROTO_GetShiftState done [10:05:04]FM_GetShiftState done [10:05:04]req_shift_opened done [10:05:04]requested_item shift.open_date is exist - process it [10:05:04]req_shift_open_date [10:05:04]req_shift_open_date done [10:05:04]produce_requested_data done [10:05:04]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119369,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [10:05:04]process_action_free close_receipt [10:05:04]json_value_free [10:05:04]json_value_free done [10:05:04]process_json_proto returns [10:05:04]Send response to host [10:05:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119369,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [10:05:04]free response buf [10:05:04]execute_script done [10:05:04]execute_script returns [10:05:04]free content buf [10:05:04]Sock 8.Close socket [10:05:04]Sock 8.Thread stoped [10:05:08]OFD Sender: No OFD packet to send [10:05:13]OFD Sender: No OFD packet to send [10:05:18]OFD Sender: No OFD packet to send [10:05:23]OFD Sender: No OFD packet to send [10:05:28]OFD Sender: No OFD packet to send [10:05:33]OFD Sender: No OFD packet to send [10:05:38]OFD Sender: No OFD packet to send [10:05:43]OFD Sender: No OFD packet to send [10:05:48]OFD Sender: No OFD packet to send [10:05:53]OFD Sender: No OFD packet to send [10:05:58]OFD Sender: No OFD packet to send [10:06:03]OFD Sender: No OFD packet to send [10:06:08]OFD Sender: No OFD packet to send [10:06:13]OFD Sender: No OFD packet to send [10:06:18]OFD Sender: No OFD packet to send [10:06:23]OFD Sender: No OFD packet to send [10:06:28]OFD Sender: No OFD packet to send [10:06:33]OFD Sender: No OFD packet to send [10:06:37]accept exits with 9 [10:06:37]New connection [10:06:37]New thread 3067194724 created [10:06:37]Thread 3067338084 joined [10:06:37]Waiting for new connection... [10:06:37] Sock 9.Parse request [10:06:37]Sock 9.Check first char [10:06:37]Sock 9.First char is OK [10:06:37]request: POST /json_proto HTTP/1.0 [10:06:37]Method: POST [10:06:37]URL: /json_proto [10:06:37]Method is POST - this is cgi request [10:06:37]url: /json_proto [10:06:37]query_string will be loaded in cgi processing [10:06:37]execute_cgi json_proto POST (null) [10:06:37]execute_cgi path=json_proto method=POST [10:06:37]POST find Content-Length [10:06:37]Host: 172.17.45.7:8080 [10:06:37]Content-Length: 819 [10:06:37]Content-Type: application/json [10:06:37] [10:06:37]POST finish read [10:06:37]Found Content-Length = 819 [10:06:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 42.000, "sum" : 3200.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3200.00, "payments": [ { "type": 1, "sum" : 3200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:37]execute_script... [10:06: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)950296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 42.000, "sum" : 3200.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3200.00, "payments": [ { "type": 1, "sum" : 3200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:37]POST & json_proto [10:06:37]process_json_proto [10:06:37]json parsed OK: [10:06:37]protocol is kg_v1.0 [10:06:37]action value=close_receipt [10:06:37]process_action close_receipt [10:06:37]cmd_close_receipt [10:06:37]MH_GetDate [10:06:37]Write to MH i2c: F0 00 00 F1 1A FA [10:06:37]Write i2c OK [10:06:37]MH_I2C_Read... [10:06:37]Read from MH i2c: F0 [10:06:37]MH_I2C_Read... [10:06:37]Read from MH i2c: F0 09 00 [10:06:37]MH_I2C_Read... [10:06:37]Read from MH i2c: F0 09 00 F1 1A 00 AF 0C AA 66 90 0F 3E 66 11 [10:06:37]GetLastDocTimeStamp 1722420301 [10:06:37]current date 1722420399 [10:06:37]FM_GetShiftState [10:06:37]SAM_PROTO_GetShiftState [10:06:37]wFMCommunicate request_size=4 [10:06:37]MH_SAM_APDU [10:06:37]CAPDU: 80 13 01 00 [10:06:37]Write to MH i2c: E2 08 00 F2 1A 80 13 01 00 00 00 00 00 89 [10:06:37]Write i2c OK [10:06:37]MH_I2C_Read... [10:06:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:37]Read from MH i2c: E2 [10:06:37]MH_I2C_Read... [10:06:37]Read from MH i2c: E2 0E 00 [10:06:37]MH_I2C_Read... [10:06:37]Read from MH i2c: E2 0E 00 F2 1A 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 21 [10:06:37]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:06:37]wFMCommunicate OK [10:06:37]SAM_PROTO_GetShiftState done [10:06:37]FM_GetShiftState done [10:06:37]opened in 1722384637 [10:06:37]opened+sec_in_day 1722471037 [10:06:37]quantity*price = 320040 [10:06:37]sum+1 = 320041 [10:06:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 3200.00 НСП 1% : 28.32 НДС 12% : 339.86 Наличными: 0.00 Безнал.: 3200.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 101 31.07.2024 10:06 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119370 ФПД: 83944503656822 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T100639&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119370&fm=83944503656822&tin=02508201610067®Number=0000000000092660&sum=320000 [10:06:38]StoreToDocumentArchive [10:06:38]shift 436 fd 119370 [10:06:38]save to /storage/0436/doc_00119370 [10:06:38]save last doc name /storage/0436/doc_00119370 to /storage/kkm_last_doc_name [10:06:38]save OK [10:06:38]Clear old archive folders... [10:06:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:06:38]tlvbuf is 00B3F2E0 [10:06:38]SAM_PROTO_ClearQueue [10:06:38]wFMCommunicate request_size=4 [10:06:38]MH_SAM_APDU [10:06:38]CAPDU: 80 09 00 00 [10:06:38]Write to MH i2c: E2 08 00 FF 1A 80 09 00 00 00 00 00 00 8B [10:06:38]Write i2c OK [10:06:38]MH_I2C_Read... [10:06:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:06:38]Read from MH i2c: E2 [10:06:38]MH_I2C_Read... [10:06:38]Read from MH i2c: E2 03 00 [10:06:38]MH_I2C_Read... [10:06:38]Read from MH i2c: E2 03 00 FF 1A 00 90 00 8D [10:06:38]RAPDU: 90 00 [10:06:38]wFMCommunicate OK [10:06:38]SAM_PROTO_ClearQueue done [10:06:38]KKMCreateOFDPacket [10:06:38]OFDProtocolAddRootSTLVToBuf [10:06:38]FM_MakeSignedData [10:06:38]FM_MakeSignedData [10:06:38]SAM_PROTO_SignData [10:06:38]wFMCommunicate request_size=4 [10:06:38]MH_SAM_APDU [10:06:38]CAPDU: 80 0D 01 02 [10:06:38]Write to MH i2c: E2 08 00 00 1B 80 0D 01 02 00 00 00 00 94 [10:06:38]Write i2c OK [10:06:38]MH_I2C_Read... [10:06:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:06:38]Read from MH i2c: E2 [10:06:38]MH_I2C_Read... [10:06:38]Read from MH i2c: E2 03 00 [10:06:38]MH_I2C_Read... [10:06:38]Read from MH i2c: E2 03 00 00 1B 00 90 00 8F [10:06:38]RAPDU: 90 00 [10:06:38]wFMCommunicate OK [10:06:38]wFMCommunicate request_size=255 [10:06:38]MH_SAM_APDU [10:06:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 A4 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 28 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 84 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 E2 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 AF 0C AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4A D2 01 00 35 04 06 00 4C 58 DA 52 [10:06:38]Write to MH i2c: E2 02 01 01 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 A4 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 28 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 84 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 E2 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 AF 0C AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4A D2 01 00 35 04 06 00 4C 58 DA 52 00 00 9E [10:06:38]Write i2c OK [10:06:38]MH_I2C_Read... [10:06:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:38]Read from MH i2c: E2 [10:06:38]MH_I2C_Read... [10:06:38]Read from MH i2c: E2 03 00 [10:06:38]MH_I2C_Read... [10:06:38]Read from MH i2c: E2 03 00 01 1B 00 90 00 90 [10:06:38]RAPDU: 90 00 [10:06:38]wFMCommunicate OK [10:06:38]wFMCommunicate request_size=7 [10:06:38]MH_SAM_APDU [10:06:38]CAPDU: 80 0D 02 02 02 41 76 [10:06:38]Write to MH i2c: E2 0A 00 02 1B 80 0D 02 02 02 00 41 76 00 00 52 [10:06:38]Write i2c OK [10:06:38]MH_I2C_Read... [10:06:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:38]Read from MH i2c: E2 [10:06:38]MH_I2C_Read... [10:06:38]Read from MH i2c: E2 03 00 [10:06:38]MH_I2C_Read... [10:06:38]Read from MH i2c: E2 03 00 02 1B 00 90 00 91 [10:06:38]RAPDU: 90 00 [10:06:38]wFMCommunicate OK [10:06:38]wFMCommunicate request_size=4 [10:06:38]MH_SAM_APDU [10:06:38]CAPDU: 80 0D 03 02 [10:06:38]Write to MH i2c: E2 08 00 03 1B 80 0D 03 02 00 00 00 00 99 [10:06:38]Write i2c OK [10:06:38]MH_I2C_Read... [10:06:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:06:38]Read from MH i2c: E2 [10:06:38]MH_I2C_Read... [10:06:38]Read from MH i2c: E2 0B 00 [10:06:38]MH_I2C_Read... [10:06:38]Read from MH i2c: E2 0B 00 03 1B 00 15 9D 54 78 AB 6A 12 7C 90 00 BB [10:06:38]RAPDU: 15 9D 54 78 AB 6A 12 7C 90 00 [10:06:38]wFMCommunicate OK [10:06:38]SAM_PROTO_SignData done [10:06:38]FM_MakeSignedData done [10:06:38]CreateOFDProtocolMessage [10:06:38]wFMCommunicate request_size=4 [10:06:38]MH_SAM_APDU [10:06:38]CAPDU: 80 11 00 00 [10:06:38]Write to MH i2c: E2 08 00 04 1B 80 11 00 00 00 00 00 00 99 [10:06:38]Write i2c OK [10:06:38]MH_I2C_Read... [10:06:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:38]Read from MH i2c: E2 [10:06:38]MH_I2C_Read... [10:06:38]Read from MH i2c: E2 17 00 [10:06:38]MH_I2C_Read... [10:06:38]Read from MH i2c: E2 17 00 04 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F4 [10:06:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:06:38]wFMCommunicate OK [10:06:38]CreateOFDProtocolMessage done [10:06:38]OFDSenderStorePacket 119370 [10:06:38]StoreOFDPacket docnum=119370 [10:06:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 5D 22 04 01 AD 03 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 A4 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 28 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 84 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 E2 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 AF 0C AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4A D2 01 00 35 04 06 00 4C 58 DA 52 41 76 15 9D 54 78 AB 6A 12 7C [10:06:38]CheckFolder [10:06:38]dirname=/storage/ofd_packets [10:06:38]CheckFolder done [10:06:38]ProducePacketName [10:06:38]name=ofd_packets/00119370 [10:06:38]NVStorageSaveData ofd_packets/00119370 [10:06:38]File name is /storage/ofd_packets/00119370 [10:06:38]Write 298 bytes [10:06:38]NVStorageSaveData done [10:06:38]OFDSenderStorePacket done [10:06:38]KKMCreateOFDPacket done [10:06:38]NVStorageSaveData kkm_last_timestamp [10:06:38]File name is /storage/kkm_last_timestamp [10:06:38]Write 4 bytes [10:06:38]NVStorageSaveData done [10:06:38]ExternCall_PrintAddStr [10:06:38]wPrintStart [10:06:38]Write to MH i2c: 01 00 00 05 1B 20 [10:06:38]Write i2c OK [10:06:38]MH_I2C_Read... [10:06:38]Read from MH i2c: 01 [10:06:38]MH_I2C_Read... [10:06:38]Read from MH i2c: 01 07 00 [10:06:38]MH_I2C_Read... [10:06:38]Read from MH i2c: 01 07 00 05 1B 00 00 00 00 00 FF 0F 35 [10:06:38]RasterBufferAndPrint [10:06:38]line Счет N : (1)950296 [10:06:38]line ИНН: 02508201610067 [10:06:38]line Контрольно-Кассовый Чек [10:06:38]line ПРОДАЖА [10:06:38]line ТРК (МРК, ГНК) : 11 [10:06:38]line Товар: 2710194800 [10:06:38]line ДТ-К-5 [10:06:38]line 42.000 * 76.20 [10:06:38]line = 3200.40 [10:06:38]line НДС 12% НСП 1% [10:06:38]line > о реализуемом товаре [10:06:38]line ОКРУГЛЕНИЕ: -0.40 [10:06:38]line ИТОГО: 3200.00 [10:06:38]line НСП 1% : 28.32 [10:06:38]line НДС 12% : 339.86 [10:06:38]line Наличными: 0.00 [10:06:38]line Безнал.: 3200.00 [10:06:38]line Место: АЗС № 134 "Партнер Нефть" [10:06:38]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:06:38]line СНО: Общий режим [10:06:38]line Чек 101 31.07.2024 10:06 [10:06:38]line Смена: 436 ФФД: 1.0 [10:06:38]line ЗНМ: 0300000044 [10:06:38]line РНМ: 0000000000092660 [10:06:38]line Версия ККМ: 001 [10:06:38]line Платежная система: O! деньги [10:06:38]line ФМ: 0000000000874939 [10:06:38]line ФД: 119370 [10:06:38]line ФПД: 83944503656822 [10:06:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T100639&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119370&fm=83944503656822&tin=02508201610067®Number=0000000000092660&sum=320000 [10:06:39]OFD Sender: Processing packet 119370 [packets to send 86, broken 85] [10:06:39]ProducePacketName [10:06:39]name=ofd_packets/00119370 [10:06:39]OFD Sender: To server: pG, [10:06:39]CommunicateWithHost lk.salyk.kg:30040 [10:06:39]ConnectInit lk.salyk.kg [10:06:39]written 0, free lines is 4095 [10:06:39]Connected sock=11 [10:06: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 39 33 39 0C 01 00 00 5D 22 04 01 AD 03 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 A4 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 28 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 84 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 E2 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 AF 0C AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4A D2 01 00 35 04 06 00 4C 58 DA 52 41 76 15 9D 54 78 AB 6A 12 7C [10:06:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 7C EB 47 00 16 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 39 33 39 10 04 04 00 4A D2 01 00 F4 03 04 00 38 BA A9 66 B6 04 01 00 00 7D 48 83 7B 9C 87 7C EA [10:06:39]CommunicateWithHost err = 0 [10:06:39]CheckOFDResponse [10:06:39]1017 (14) - 77093643461234 [10:06:39]1041 (16) - 0000000000874939 [10:06:39]1040 (4) - 119370 [10:06:39]1012 (4) - 31.07.2024 04:14 [10:06:39]1206 (1) - 0 [10:06:39]OFD Sender: Remove packet 119370 [10:06:39]ProducePacketName [10:06:39]name=ofd_packets/00119370 [10:06:39]NVStorageDeleteData [10:06:39]Write to MH i2c: 01 00 00 2F 1B 4A [10:06:39]Write i2c OK [10:06:39]MH_I2C_Read... [10:06:39]Read from MH i2c: 01 [10:06:39]MH_I2C_Read... [10:06:39]Read from MH i2c: 01 07 00 [10:06:39]MH_I2C_Read... [10:06:39]Read from MH i2c: 01 07 00 2F 1B 00 00 00 00 00 E5 0C 42 [10:06:39]RasterBufferAndPrint [10:06:39]line [10:06:39]line [10:06:39]line [10:06:39]line [10:06:39]line [10:06:39]written 0, free lines is 3307 [10:06:39]MH_Cut [10:06:39]Write to MH i2c: D1 01 00 36 1B 01 23 [10:06:39]Write i2c OK [10:06:39]MH_I2C_Read... [10:06:39]Read from MH i2c: D1 [10:06:39]MH_I2C_Read... [10:06:39]Read from MH i2c: D1 01 00 [10:06:39]MH_I2C_Read... [10:06:39]Read from MH i2c: D1 01 00 36 1B 00 22 [10:06:39]Write to MH i2c: 01 00 00 37 1B 52 [10:06:39]Write i2c OK [10:06:39]MH_I2C_Read... [10:06:40]OFD Sender: No OFD packet to send [10:06:40]*** Cut start [10:06:40]*** Partial cut [10:06:40]*** CUTSNS_PIN = 1 [10:06:40]*** CUTSNS_PIN = 0 [10:06:40]*** Brake cut motor [10:06:41]Read from MH i2c: 01 [10:06:41]MH_I2C_Read... [10:06:41]*** Stop cut motor [10:06:41]*** Cut end [10:06:41]Read from MH i2c: 01 07 00 [10:06:41]MH_I2C_Read... [10:06:41]Read from MH i2c: 01 07 00 37 1B 00 00 00 00 00 FF 0F 67 [10:06:41]process_action close_receipt done [10:06:41]requested_data is exist [10:06:41]produce_requested_data [10:06:41]requested_item fm.sn is exist - process it [10:06:41]wFMCommunicate request_size=4 [10:06:41]MH_SAM_APDU [10:06:41]CAPDU: 80 11 00 00 [10:06:41]Write to MH i2c: E2 08 00 38 1B 80 11 00 00 00 00 00 00 CD [10:06:41]Write i2c OK [10:06:41]MH_I2C_Read... [10:06:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:41]Read from MH i2c: E2 [10:06:41]MH_I2C_Read... [10:06:41]Read from MH i2c: E2 17 00 [10:06:41]MH_I2C_Read... [10:06:41]Read from MH i2c: E2 17 00 38 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 28 [10:06:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:06:41]wFMCommunicate OK [10:06:41]requested_item fd.num is exist - process it [10:06:41]SAM_PROTO_GetFieldsCounters [10:06:41]wFMCommunicate request_size=4 [10:06:41]MH_SAM_APDU [10:06:41]CAPDU: 80 13 00 00 [10:06:41]Write to MH i2c: E2 08 00 39 1B 80 13 00 00 00 00 00 00 D0 [10:06:41]Write i2c OK [10:06:41]MH_I2C_Read... [10:06:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:06:41]Read from MH i2c: E2 [10:06:41]MH_I2C_Read... [10:06:41]Read from MH i2c: E2 62 00 [10:06:41]MH_I2C_Read... [10:06:41]Read from MH i2c: E2 62 00 39 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4A D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [10:06:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4A D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:06:41]wFMCommunicate OK [10:06:41]SAM_PROTO_GetFieldsCounters done [10:06:41]requested_item shift.num is exist - process it [10:06:41]requested_item shift.opened is exist - process it [10:06:41]req_shift_opened [10:06:41]FM_GetShiftState [10:06:41]SAM_PROTO_GetShiftState [10:06:41]wFMCommunicate request_size=4 [10:06:41]MH_SAM_APDU [10:06:41]CAPDU: 80 13 01 00 [10:06:41]Write to MH i2c: E2 08 00 3A 1B 80 13 01 00 00 00 00 00 D2 [10:06:41]Write i2c OK [10:06:41]MH_I2C_Read... [10:06:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:41]Read from MH i2c: E2 [10:06:41]MH_I2C_Read... [10:06:41]Read from MH i2c: E2 0E 00 [10:06:41]MH_I2C_Read... [10:06:41]Read from MH i2c: E2 0E 00 3A 1B 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 6A [10:06:41]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:06:41]wFMCommunicate OK [10:06:41]SAM_PROTO_GetShiftState done [10:06:41]FM_GetShiftState done [10:06:41]req_shift_opened done [10:06:41]requested_item shift.open_date is exist - process it [10:06:41]req_shift_open_date [10:06:41]req_shift_open_date done [10:06:41]produce_requested_data done [10:06:41]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119370,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [10:06:41]process_action_free close_receipt [10:06:41]json_value_free [10:06:41]json_value_free done [10:06:41]process_json_proto returns [10:06:41]Send response to host [10:06:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119370,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [10:06:41]free response buf [10:06:41]execute_script done [10:06:41]execute_script returns [10:06:41]free content buf [10:06:41]Sock 9.Close socket [10:06:41]Sock 9.Thread stoped [10:06:45]OFD Sender: No OFD packet to send [10:06:50]OFD Sender: No OFD packet to send [10:06:55]OFD Sender: No OFD packet to send [10:07:00]OFD Sender: No OFD packet to send [10:07:05]OFD Sender: No OFD packet to send [10:07:10]OFD Sender: No OFD packet to send [10:07:15]OFD Sender: No OFD packet to send [10:07:20]OFD Sender: No OFD packet to send [10:07:25]OFD Sender: No OFD packet to send [10:07:30]OFD Sender: No OFD packet to send [10:07:35]OFD Sender: No OFD packet to send [10:07:40]OFD Sender: No OFD packet to send [10:07:45]OFD Sender: No OFD packet to send [10:07:50]OFD Sender: No OFD packet to send [10:07:55]OFD Sender: No OFD packet to send [10:08:00]OFD Sender: No OFD packet to send [10:08:05]OFD Sender: No OFD packet to send [10:08:10]OFD Sender: No OFD packet to send [10:08:15]OFD Sender: No OFD packet to send [10:08:20]OFD Sender: No OFD packet to send [10:08:25]OFD Sender: No OFD packet to send [10:08:30]OFD Sender: No OFD packet to send [10:08:34]accept exits with 8 [10:08:34]New connection [10:08:34]New thread 3067338084 created [10:08:34]Thread 3067194724 joined [10:08:34]Waiting for new connection... [10:08:34] Sock 8.Parse request [10:08:34]Sock 8.Check first char [10:08:34]Sock 8.First char is OK [10:08:34]request: POST /json_proto HTTP/1.0 [10:08:34]Method: POST [10:08:34]URL: /json_proto [10:08:34]Method is POST - this is cgi request [10:08:34]url: /json_proto [10:08:34]query_string will be loaded in cgi processing [10:08:34]execute_cgi json_proto POST (null) [10:08:34]execute_cgi path=json_proto method=POST [10:08:34]POST find Content-Length [10:08:34]Host: 172.17.45.7:8080 [10:08:34]Content-Length: 822 [10:08:34]Content-Type: application/json [10:08:34] [10:08:34]POST finish read [10:08:34]Found Content-Length = 822 [10:08:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 35.220, "sum" : 2387.92, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2387.00, "payments": [ { "type": 1, "sum" : 2387.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:34]execute_script... [10:08: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)950297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 35.220, "sum" : 2387.92, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2387.00, "payments": [ { "type": 1, "sum" : 2387.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:34]POST & json_proto [10:08:34]process_json_proto [10:08:34]json parsed OK: [10:08:34]protocol is kg_v1.0 [10:08:34]action value=close_receipt [10:08:34]process_action close_receipt [10:08:34]cmd_close_receipt [10:08:34]MH_GetDate [10:08:34]Write to MH i2c: F0 00 00 3B 1B 45 [10:08:34]Write i2c OK [10:08:34]MH_I2C_Read... [10:08:34]Read from MH i2c: F0 [10:08:34]MH_I2C_Read... [10:08:34]Read from MH i2c: F0 09 00 [10:08:34]MH_I2C_Read... [10:08:34]Read from MH i2c: F0 09 00 3B 1B 00 24 0D AA 66 90 0F 3E 66 D2 [10:08:34]GetLastDocTimeStamp 1722420399 [10:08:34]current date 1722420516 [10:08:34]FM_GetShiftState [10:08:34]SAM_PROTO_GetShiftState [10:08:34]wFMCommunicate request_size=4 [10:08:34]MH_SAM_APDU [10:08:34]CAPDU: 80 13 01 00 [10:08:34]Write to MH i2c: E2 08 00 3C 1B 80 13 01 00 00 00 00 00 D4 [10:08:34]Write i2c OK [10:08:34]MH_I2C_Read... [10:08:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:34]Read from MH i2c: E2 [10:08:34]MH_I2C_Read... [10:08:34]Read from MH i2c: E2 0E 00 [10:08:34]MH_I2C_Read... [10:08:34]Read from MH i2c: E2 0E 00 3C 1B 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 6C [10:08:34]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:08:34]wFMCommunicate OK [10:08:34]SAM_PROTO_GetShiftState done [10:08:34]FM_GetShiftState done [10:08:34]opened in 1722384637 [10:08:34]opened+sec_in_day 1722471037 [10:08:34]quantity*price = 238791 [10:08:34]sum+1 = 238793 [10:08:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.92 ИТОГО: 2387.00 НСП 1% : 21.13 НДС 12% : 253.58 Наличными: 0.00 Безнал.: 2387.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 102 31.07.2024 10:08 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119371 ФПД: 201539404770809 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T100836&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119371&fm=201539404770809&tin=02508201610067®Number=0000000000092660&sum=238700 [10:08:36]StoreToDocumentArchive [10:08:36]shift 436 fd 119371 [10:08:36]save to /storage/0436/doc_00119371 [10:08:36]save last doc name /storage/0436/doc_00119371 to /storage/kkm_last_doc_name [10:08:36]save OK [10:08:36]Clear old archive folders... [10:08:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:08:36]tlvbuf is B6FB6230 [10:08:36]SAM_PROTO_ClearQueue [10:08:36]wFMCommunicate request_size=4 [10:08:36]MH_SAM_APDU [10:08:36]CAPDU: 80 09 00 00 [10:08:36]Write to MH i2c: E2 08 00 49 1B 80 09 00 00 00 00 00 00 D6 [10:08:36]Write i2c OK [10:08:36]MH_I2C_Read... [10:08:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:36]Read from MH i2c: E2 [10:08:36]MH_I2C_Read... [10:08:36]Read from MH i2c: E2 03 00 [10:08:36]MH_I2C_Read... [10:08:36]Read from MH i2c: E2 03 00 49 1B 00 90 00 D8 [10:08:36]RAPDU: 90 00 [10:08:36]wFMCommunicate OK [10:08:36]SAM_PROTO_ClearQueue done [10:08:36]KKMCreateOFDPacket [10:08:36]OFDProtocolAddRootSTLVToBuf [10:08:36]FM_MakeSignedData [10:08:36]FM_MakeSignedData [10:08:36]SAM_PROTO_SignData [10:08:36]wFMCommunicate request_size=4 [10:08:36]MH_SAM_APDU [10:08:36]CAPDU: 80 0D 01 02 [10:08:36]Write to MH i2c: E2 08 00 4A 1B 80 0D 01 02 00 00 00 00 DE [10:08:36]Write i2c OK [10:08:36]MH_I2C_Read... [10:08:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:36]Read from MH i2c: E2 [10:08:36]MH_I2C_Read... [10:08:36]Read from MH i2c: E2 03 00 [10:08:36]MH_I2C_Read... [10:08:36]Read from MH i2c: E2 03 00 4A 1B 00 90 00 D9 [10:08:36]RAPDU: 90 00 [10:08:36]wFMCommunicate OK [10:08:36]wFMCommunicate request_size=255 [10:08:36]MH_SAM_APDU [10:08:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 94 89 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C8 A4 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C A4 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 63 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C A4 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 24 0D AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4B D2 01 00 35 04 06 00 B7 [10:08:36]Write to MH i2c: E2 02 01 4B 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 94 89 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C8 A4 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C A4 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 63 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C A4 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 24 0D AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4B D2 01 00 35 04 06 00 B7 00 00 20 [10:08:36]Write i2c OK [10:08:36]MH_I2C_Read... [10:08:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:36]Read from MH i2c: E2 [10:08:36]MH_I2C_Read... [10:08:36]Read from MH i2c: E2 03 00 [10:08:36]MH_I2C_Read... [10:08:36]Read from MH i2c: E2 03 00 4B 1B 00 90 00 DA [10:08:36]RAPDU: 90 00 [10:08:36]wFMCommunicate OK [10:08:36]wFMCommunicate request_size=10 [10:08:36]MH_SAM_APDU [10:08:36]CAPDU: 80 0D 02 02 05 4C 8C A1 2D F9 [10:08:36]Write to MH i2c: E2 0D 00 4C 1B 80 0D 02 02 05 00 4C 8C A1 2D F9 00 00 8A [10:08:36]Write i2c OK [10:08:36]MH_I2C_Read... [10:08:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:36]Read from MH i2c: E2 [10:08:36]MH_I2C_Read... [10:08:36]Read from MH i2c: E2 03 00 [10:08:36]MH_I2C_Read... [10:08:36]Read from MH i2c: E2 03 00 4C 1B 00 90 00 DB [10:08:36]RAPDU: 90 00 [10:08:36]wFMCommunicate OK [10:08:36]wFMCommunicate request_size=4 [10:08:36]MH_SAM_APDU [10:08:36]CAPDU: 80 0D 03 02 [10:08:36]Write to MH i2c: E2 08 00 4D 1B 80 0D 03 02 00 00 00 00 E3 [10:08:36]Write i2c OK [10:08:36]MH_I2C_Read... [10:08:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:36]Read from MH i2c: E2 [10:08:36]MH_I2C_Read... [10:08:36]Read from MH i2c: E2 0B 00 [10:08:36]MH_I2C_Read... [10:08:36]Read from MH i2c: E2 0B 00 4D 1B 00 59 83 2D 35 19 70 C0 BF 90 00 2A [10:08:36]RAPDU: 59 83 2D 35 19 70 C0 BF 90 00 [10:08:36]wFMCommunicate OK [10:08:36]SAM_PROTO_SignData done [10:08:36]FM_MakeSignedData done [10:08:36]CreateOFDProtocolMessage [10:08:36]wFMCommunicate request_size=4 [10:08:36]MH_SAM_APDU [10:08:36]CAPDU: 80 11 00 00 [10:08:36]Write to MH i2c: E2 08 00 4E 1B 80 11 00 00 00 00 00 00 E3 [10:08:36]Write i2c OK [10:08:36]MH_I2C_Read... [10:08:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:36]Read from MH i2c: E2 [10:08:36]MH_I2C_Read... [10:08:36]Read from MH i2c: E2 17 00 [10:08:36]MH_I2C_Read... [10:08:36]Read from MH i2c: E2 17 00 4E 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3E [10:08:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:08:36]wFMCommunicate OK [10:08:36]CreateOFDProtocolMessage done [10:08:36]OFDSenderStorePacket 119371 [10:08:36]StoreOFDPacket docnum=119371 [10:08:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 0E FA 07 01 A3 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 94 89 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C8 A4 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C A4 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 63 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C A4 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 24 0D AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4B D2 01 00 35 04 06 00 B7 4C 8C A1 2D F9 59 83 2D 35 19 70 C0 BF [10:08:36]CheckFolder [10:08:36]dirname=/storage/ofd_packets [10:08:36]CheckFolder done [10:08:36]ProducePacketName [10:08:36]name=ofd_packets/00119371 [10:08:36]NVStorageSaveData ofd_packets/00119371 [10:08:36]File name is /storage/ofd_packets/00119371 [10:08:36]Write 301 bytes [10:08:36]NVStorageSaveData done [10:08:36]OFDSenderStorePacket done [10:08:36]KKMCreateOFDPacket done [10:08:36]NVStorageSaveData kkm_last_timestamp [10:08:36]File name is /storage/kkm_last_timestamp [10:08:36]Write 4 bytes [10:08:36]NVStorageSaveData done [10:08:36]OFD Sender: Processing packet 119371 [packets to send 86, broken 85] [10:08:36]ProducePacketName [10:08:36]name=ofd_packets/00119371 [10:08:36]OFD Sender: To server: pG, [10:08:36]CommunicateWithHost lk.salyk.kg:30040 [10:08:36]ConnectInit lk.salyk.kg [10:08:36]ExternCall_PrintAddStr [10:08:36]wPrintStart [10:08:36]Write to MH i2c: 01 00 00 4F 1B 6A [10:08:36]Write i2c OK [10:08:36]MH_I2C_Read... [10:08:36]Read from MH i2c: 01 [10:08:36]MH_I2C_Read... [10:08:36]Read from MH i2c: 01 07 00 [10:08:36]MH_I2C_Read... [10:08:36]Read from MH i2c: 01 07 00 4F 1B 00 00 00 00 00 FF 0F 7F [10:08:36]RasterBufferAndPrint [10:08:36]line Счет N : (1)950297 [10:08:36]line ИНН: 02508201610067 [10:08:36]line Контрольно-Кассовый Чек [10:08:36]line ПРОДАЖА [10:08:36]line ТРК (МРК, ГНК) : 61 [10:08:36]line Товар: 2710124130 [10:08:36]line Аи-92-К-4 [10:08:36]line 35.220 * 67.80 [10:08:36]line = 2387.92 [10:08:36]line НДС 12% НСП 1% [10:08:36]line > о реализуемом товаре [10:08:36]line ОКРУГЛЕНИЕ: -0.92 [10:08:36]line ИТОГО: 2387.00 [10:08:36]line НСП 1% : 21.13 [10:08:36]line НДС 12% : 253.58 [10:08:36]line Наличными: 0.00 [10:08:36]line Безнал.: 2387.00 [10:08:36]line Место: АЗС № 134 "Партнер Нефть" [10:08:36]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:08:36]line СНО: Общий режим [10:08:36]line Чек 102 31.07.2024 10:08 [10:08:36]line Смена: 436 ФФД: 1.0 [10:08:36]line ЗНМ: 0300000044 [10:08:36]line РНМ: 0000000000092660 [10:08:36]line Версия ККМ: 001 [10:08:36]line Платежная система: O! деньги [10:08:36]line ФМ: 0000000000874939 [10:08:36]line ФД: 119371 [10:08:36]line ФПД: 201539404770809 [10:08:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T100836&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119371&fm=201539404770809&tin=02508201610067®Number=0000000000092660&sum=238700 [10:08:36]Connected sock=11 [10:08:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 0E FA 07 01 A3 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 94 89 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C8 A4 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C A4 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 63 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C A4 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 24 0D AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4B D2 01 00 35 04 06 00 B7 4C 8C A1 2D F9 59 83 2D 35 19 70 C0 BF [10:08:36]written 0, free lines is 4095 [10:08:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 81 7C 47 00 5D 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4B D2 01 00 F4 03 04 00 AD BA A9 66 B6 04 01 00 00 7F 81 3B 9B 43 70 30 83 [10:08:37]CommunicateWithHost err = 0 [10:08:37]CheckOFDResponse [10:08:37]1017 (14) - 77093643461234 [10:08:37]1041 (16) - 0000000000874939 [10:08:37]1040 (4) - 119371 [10:08:37]1012 (4) - 31.07.2024 04:16 [10:08:37]1206 (1) - 0 [10:08:37]OFD Sender: Remove packet 119371 [10:08:37]ProducePacketName [10:08:37]name=ofd_packets/00119371 [10:08:37]NVStorageDeleteData [10:08:37]Write to MH i2c: 01 00 00 79 1B 94 [10:08:37]Write i2c OK [10:08:37]MH_I2C_Read... [10:08:37]Read from MH i2c: 01 [10:08:37]MH_I2C_Read... [10:08:37]Read from MH i2c: 01 07 00 [10:08:37]MH_I2C_Read... [10:08:37]Read from MH i2c: 01 07 00 79 1B 00 00 00 00 00 E2 0C 89 [10:08:37]RasterBufferAndPrint [10:08:37]line [10:08:37]line [10:08:37]line [10:08:37]line [10:08:37]line [10:08:37]written 0, free lines is 3304 [10:08:37]MH_Cut [10:08:37]Write to MH i2c: D1 01 00 80 1B 01 6D [10:08:37]Write i2c OK [10:08:37]MH_I2C_Read... [10:08:37]Read from MH i2c: D1 [10:08:37]MH_I2C_Read... [10:08:37]Read from MH i2c: D1 01 00 [10:08:37]MH_I2C_Read... [10:08:37]Read from MH i2c: D1 01 00 80 1B 00 6C [10:08:37]Write to MH i2c: 01 00 00 81 1B 9C [10:08:37]Write i2c OK [10:08:37]MH_I2C_Read... [10:08:37]OFD Sender: No OFD packet to send [10:08:38]*** Cut start [10:08:38]*** Partial cut [10:08:38]*** CUTSNS_PIN = 1 [10:08:38]*** CUTSNS_PIN = 0 [10:08:38]*** Brake cut motor [10:08:38]Read from MH i2c: 01 [10:08:38]MH_I2C_Read... [10:08:38]*** Stop cut motor [10:08:38]*** Cut end [10:08:38]Read from MH i2c: 01 07 00 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: 01 07 00 81 1B 00 00 00 00 00 FF 0F B1 [10:08:38]process_action close_receipt done [10:08:38]requested_data is exist [10:08:38]produce_requested_data [10:08:38]requested_item fm.sn is exist - process it [10:08:38]wFMCommunicate request_size=4 [10:08:38]MH_SAM_APDU [10:08:38]CAPDU: 80 11 00 00 [10:08:38]Write to MH i2c: E2 08 00 82 1B 80 11 00 00 00 00 00 00 17 [10:08:38]Write i2c OK [10:08:38]MH_I2C_Read... [10:08:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:38]Read from MH i2c: E2 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: E2 17 00 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: E2 17 00 82 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 72 [10:08:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:08:38]wFMCommunicate OK [10:08:38]requested_item fd.num is exist - process it [10:08:38]SAM_PROTO_GetFieldsCounters [10:08:38]wFMCommunicate request_size=4 [10:08:38]MH_SAM_APDU [10:08:38]CAPDU: 80 13 00 00 [10:08:38]Write to MH i2c: E2 08 00 83 1B 80 13 00 00 00 00 00 00 1A [10:08:38]Write i2c OK [10:08:38]MH_I2C_Read... [10:08:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:38]Read from MH i2c: E2 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: E2 62 00 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: E2 62 00 83 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4B D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [10:08: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4B D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:08:38]wFMCommunicate OK [10:08:38]SAM_PROTO_GetFieldsCounters done [10:08:38]requested_item shift.num is exist - process it [10:08:38]requested_item shift.opened is exist - process it [10:08:38]req_shift_opened [10:08:38]FM_GetShiftState [10:08:38]SAM_PROTO_GetShiftState [10:08:38]wFMCommunicate request_size=4 [10:08:38]MH_SAM_APDU [10:08:38]CAPDU: 80 13 01 00 [10:08:38]Write to MH i2c: E2 08 00 84 1B 80 13 01 00 00 00 00 00 1C [10:08:38]Write i2c OK [10:08:38]MH_I2C_Read... [10:08:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:38]Read from MH i2c: E2 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: E2 0E 00 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: E2 0E 00 84 1B 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 B4 [10:08:38]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:08:38]wFMCommunicate OK [10:08:38]SAM_PROTO_GetShiftState done [10:08:38]FM_GetShiftState done [10:08:38]req_shift_opened done [10:08:38]requested_item shift.open_date is exist - process it [10:08:38]req_shift_open_date [10:08:38]req_shift_open_date done [10:08:38]produce_requested_data done [10:08:38]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119371,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [10:08:38]process_action_free close_receipt [10:08:38]json_value_free [10:08:38]json_value_free done [10:08:38]process_json_proto returns [10:08:38]Send response to host [10:08:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119371,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [10:08:38]free response buf [10:08:38]execute_script done [10:08:38]execute_script returns [10:08:38]free content buf [10:08:38]Sock 8.Close socket [10:08:38]Sock 8.Thread stoped [10:08:42]OFD Sender: No OFD packet to send [10:08:47]OFD Sender: No OFD packet to send [10:08:52]OFD Sender: No OFD packet to send [10:08:57]OFD Sender: No OFD packet to send [10:09:02]OFD Sender: No OFD packet to send [10:09:07]OFD Sender: No OFD packet to send [10:09:12]OFD Sender: No OFD packet to send [10:09:17]OFD Sender: No OFD packet to send [10:09:22]OFD Sender: No OFD packet to send [10:09:27]OFD Sender: No OFD packet to send [10:09:32]OFD Sender: No OFD packet to send [10:09:37]OFD Sender: No OFD packet to send [10:09:42]OFD Sender: No OFD packet to send [10:09:47]OFD Sender: No OFD packet to send [10:09:52]OFD Sender: No OFD packet to send [10:09:55]accept exits with 9 [10:09:55]New connection [10:09:55]New thread 3067194724 created [10:09:55]Thread 3067338084 joined [10:09:55]Waiting for new connection... [10:09:55] Sock 9.Parse request [10:09:55]Sock 9.Check first char [10:09:55]Sock 9.First char is OK [10:09:55]request: POST /json_proto HTTP/1.0 [10:09:55]Method: POST [10:09:55]URL: /json_proto [10:09:55]Method is POST - this is cgi request [10:09:55]url: /json_proto [10:09:55]query_string will be loaded in cgi processing [10:09:55]execute_cgi json_proto POST (null) [10:09:55]execute_cgi path=json_proto method=POST [10:09:55]POST find Content-Length [10:09:55]Host: 172.17.45.7:8080 [10:09:55]Content-Length: 677 [10:09:55]Content-Type: application/json [10:09:55] [10:09:55]POST finish read [10:09:55]Found Content-Length = 677 [10:09:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:09:55]execute_script... [10:09: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)950298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:09:55]POST & json_proto [10:09:55]process_json_proto [10:09:55]json parsed OK: [10:09:55]protocol is kg_v1.0 [10:09:55]action value=close_receipt [10:09:55]process_action close_receipt [10:09:55]cmd_close_receipt [10:09:55]MH_GetDate [10:09:55]Write to MH i2c: F0 00 00 85 1B 8F [10:09:55]Write i2c OK [10:09:55]MH_I2C_Read... [10:09:55]Read from MH i2c: F0 [10:09:55]MH_I2C_Read... [10:09:55]Read from MH i2c: F0 09 00 [10:09:55]MH_I2C_Read... [10:09:55]Read from MH i2c: F0 09 00 85 1B 00 75 0D AA 66 90 0F 3E 66 6D [10:09:55]GetLastDocTimeStamp 1722420516 [10:09:55]current date 1722420597 [10:09:55]FM_GetShiftState [10:09:55]SAM_PROTO_GetShiftState [10:09:55]wFMCommunicate request_size=4 [10:09:55]MH_SAM_APDU [10:09:55]CAPDU: 80 13 01 00 [10:09:55]Write to MH i2c: E2 08 00 86 1B 80 13 01 00 00 00 00 00 1E [10:09:55]Write i2c OK [10:09:55]MH_I2C_Read... [10:09:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:55]Read from MH i2c: E2 [10:09:55]MH_I2C_Read... [10:09:55]Read from MH i2c: E2 0E 00 [10:09:55]MH_I2C_Read... [10:09:55]Read from MH i2c: E2 0E 00 86 1B 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 B6 [10:09:55]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:09:55]wFMCommunicate OK [10:09:55]SAM_PROTO_GetShiftState done [10:09:55]FM_GetShiftState done [10:09:55]opened in 1722384637 [10:09:55]opened+sec_in_day 1722471037 [10:09:55]quantity*price = 50036 [10:09:55]sum+1 = 50037 [10:09:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 103 31.07.2024 10:09 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119372 ФПД: 68449953495621 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T100957&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119372&fm=68449953495621&tin=02508201610067®Number=0000000000092660&sum=50000 [10:09:56]StoreToDocumentArchive [10:09:56]shift 436 fd 119372 [10:09:56]save to /storage/0436/doc_00119372 [10:09:56]save last doc name /storage/0436/doc_00119372 to /storage/kkm_last_doc_name [10:09:56]save OK [10:09:56]Clear old archive folders... [10:09:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:09:56]tlvbuf is 00ACDA10 [10:09:56]SAM_PROTO_ClearQueue [10:09:56]wFMCommunicate request_size=4 [10:09:56]MH_SAM_APDU [10:09:56]CAPDU: 80 09 00 00 [10:09:56]Write to MH i2c: E2 08 00 93 1B 80 09 00 00 00 00 00 00 20 [10:09:56]Write i2c OK [10:09:56]MH_I2C_Read... [10:09:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:56]Read from MH i2c: E2 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 03 00 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 03 00 93 1B 00 90 00 22 [10:09:56]RAPDU: 90 00 [10:09:56]wFMCommunicate OK [10:09:56]SAM_PROTO_ClearQueue done [10:09:56]KKMCreateOFDPacket [10:09:56]OFDProtocolAddRootSTLVToBuf [10:09:56]FM_MakeSignedData [10:09:56]FM_MakeSignedData [10:09:56]SAM_PROTO_SignData [10:09:56]wFMCommunicate request_size=4 [10:09:56]MH_SAM_APDU [10:09:56]CAPDU: 80 0D 01 02 [10:09:56]Write to MH i2c: E2 08 00 94 1B 80 0D 01 02 00 00 00 00 28 [10:09:56]Write i2c OK [10:09:56]MH_I2C_Read... [10:09:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:56]Read from MH i2c: E2 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 03 00 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 03 00 94 1B 00 90 00 23 [10:09:56]RAPDU: 90 00 [10:09:56]wFMCommunicate OK [10:09:56]wFMCommunicate request_size=255 [10:09:56]MH_SAM_APDU [10:09:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 67 00 00 00 F4 03 04 00 75 0D AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4C D2 01 00 35 04 06 00 3E [10:09:56]Write to MH i2c: E2 02 01 95 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 67 00 00 00 F4 03 04 00 75 0D AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4C D2 01 00 35 04 06 00 3E 00 00 B7 [10:09:56]Write i2c OK [10:09:56]MH_I2C_Read... [10:09:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:56]Read from MH i2c: E2 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 03 00 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 03 00 95 1B 00 90 00 24 [10:09:56]RAPDU: 90 00 [10:09:56]wFMCommunicate OK [10:09:56]wFMCommunicate request_size=10 [10:09:56]MH_SAM_APDU [10:09:56]CAPDU: 80 0D 02 02 05 41 3F 29 BA 45 [10:09:56]Write to MH i2c: E2 0D 00 96 1B 80 0D 02 02 05 00 41 3F 29 BA 45 00 00 DD [10:09:56]Write i2c OK [10:09:56]MH_I2C_Read... [10:09:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:56]Read from MH i2c: E2 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 03 00 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 03 00 96 1B 00 90 00 25 [10:09:56]RAPDU: 90 00 [10:09:56]wFMCommunicate OK [10:09:56]wFMCommunicate request_size=4 [10:09:56]MH_SAM_APDU [10:09:56]CAPDU: 80 0D 03 02 [10:09:56]Write to MH i2c: E2 08 00 97 1B 80 0D 03 02 00 00 00 00 2D [10:09:56]Write i2c OK [10:09:56]MH_I2C_Read... [10:09:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:56]Read from MH i2c: E2 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 0B 00 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 0B 00 97 1B 00 26 AA BE 2E 1E 2B CB D6 90 00 D4 [10:09:56]RAPDU: 26 AA BE 2E 1E 2B CB D6 90 00 [10:09:56]wFMCommunicate OK [10:09:56]SAM_PROTO_SignData done [10:09:56]FM_MakeSignedData done [10:09:56]CreateOFDProtocolMessage [10:09:56]wFMCommunicate request_size=4 [10:09:56]MH_SAM_APDU [10:09:56]CAPDU: 80 11 00 00 [10:09:56]Write to MH i2c: E2 08 00 98 1B 80 11 00 00 00 00 00 00 2D [10:09:56]Write i2c OK [10:09:56]MH_I2C_Read... [10:09:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:56]Read from MH i2c: E2 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 17 00 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 17 00 98 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 88 [10:09:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:09:56]wFMCommunicate OK [10:09:56]CreateOFDProtocolMessage done [10:09:56]OFDSenderStorePacket 119372 [10:09:56]StoreOFDPacket docnum=119372 [10:09:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 9D 05 07 01 E8 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 67 00 00 00 F4 03 04 00 75 0D AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4C D2 01 00 35 04 06 00 3E 41 3F 29 BA 45 26 AA BE 2E 1E 2B CB D6 [10:09:56]CheckFolder [10:09:56]dirname=/storage/ofd_packets [10:09:56]CheckFolder done [10:09:56]ProducePacketName [10:09:56]name=ofd_packets/00119372 [10:09:56]NVStorageSaveData ofd_packets/00119372 [10:09:56]File name is /storage/ofd_packets/00119372 [10:09:56]Write 301 bytes [10:09:56]NVStorageSaveData done [10:09:56]OFDSenderStorePacket done [10:09:56]KKMCreateOFDPacket done [10:09:56]NVStorageSaveData kkm_last_timestamp [10:09:56]File name is /storage/kkm_last_timestamp [10:09:56]Write 4 bytes [10:09:56]NVStorageSaveData done [10:09:56]ExternCall_PrintAddStr [10:09:56]wPrintStart [10:09:56]Write to MH i2c: 01 00 00 99 1B B4 [10:09:56]Write i2c OK [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: 01 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: 01 07 00 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: 01 07 00 99 1B 00 00 00 00 00 FF 0F C9 [10:09:56]RasterBufferAndPrint [10:09:56]line Счет N : (1)950298 [10:09:56]line ИНН: 02508201610067 [10:09:56]line Контрольно-Кассовый Чек [10:09:56]line ПРОДАЖА [10:09:56]line ТРК (МРК, ГНК) : 41 [10:09:56]line Товар: 2710124130 [10:09:56]line Аи-92-К-4 [10:09:56]line 7.380 * 67.80 [10:09:56]line = 500.36 [10:09:56]line НДС 12% НСП 1% [10:09:56]line > о реализуемом товаре [10:09:56]line ОКРУГЛЕНИЕ: -0.36 [10:09:56]line ИТОГО: 500.00 [10:09:56]line Внесено: 500.00 [10:09:56]line СДАЧА: 0.00 [10:09:56]line НСП 1% : 4.43 [10:09:56]line НДС 12% : 53.14 [10:09:56]line Наличными: 500.00 [10:09:56]line Безнал.: 0.00 [10:09:56]line Место: АЗС № 134 "Партнер Нефть" [10:09:56]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:09:56]line СНО: Общий режим [10:09:56]line Чек 103 31.07.2024 10:09 [10:09:56]line Смена: 436 ФФД: 1.0 [10:09:56]line ЗНМ: 0300000044 [10:09:56]line РНМ: 0000000000092660 [10:09:56]line Версия ККМ: 001 [10:09:56]line ФМ: 0000000000874939 [10:09:56]line ФД: 119372 [10:09:56]line ФПД: 68449953495621 [10:09:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T100957&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119372&fm=68449953495621&tin=02508201610067®Number=0000000000092660&sum=50000 [10:09:57]OFD Sender: Processing packet 119372 [packets to send 86, broken 85] [10:09:57]ProducePacketName [10:09:57]name=ofd_packets/00119372 [10:09:57]OFD Sender: To server: pG, [10:09:57]CommunicateWithHost lk.salyk.kg:30040 [10:09:57]ConnectInit lk.salyk.kg [10:09:57]written 0, free lines is 4095 [10:09:57]Connected sock=10 [10:09: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 39 33 39 0F 01 00 00 9D 05 07 01 E8 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 67 00 00 00 F4 03 04 00 75 0D AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4C D2 01 00 35 04 06 00 3E 41 3F 29 BA 45 26 AA BE 2E 1E 2B CB D6 [10:09:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E6 09 47 00 2B AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4C D2 01 00 F4 03 04 00 FE BA A9 66 B6 04 01 00 00 0C CE 0B 54 A1 03 3C 36 [10:09:57]CommunicateWithHost err = 0 [10:09:57]CheckOFDResponse [10:09:57]1017 (14) - 77093643461234 [10:09:57]1041 (16) - 0000000000874939 [10:09:57]1040 (4) - 119372 [10:09:57]1012 (4) - 31.07.2024 04:18 [10:09:57]1206 (1) - 0 [10:09:57]OFD Sender: Remove packet 119372 [10:09:57]ProducePacketName [10:09:57]name=ofd_packets/00119372 [10:09:57]NVStorageDeleteData [10:09:57]Write to MH i2c: 01 00 00 C3 1B DE [10:09:57]Write i2c OK [10:09:57]MH_I2C_Read... [10:09:57]Read from MH i2c: 01 [10:09:57]MH_I2C_Read... [10:09:57]Read from MH i2c: 01 07 00 [10:09:57]MH_I2C_Read... [10:09:57]Read from MH i2c: 01 07 00 C3 1B 00 00 00 00 00 D0 0C C1 [10:09:57]RasterBufferAndPrint [10:09:57]line [10:09:57]line [10:09:57]line [10:09:57]line [10:09:57]line [10:09:57]written 0, free lines is 3287 [10:09:57]MH_Cut [10:09:57]Write to MH i2c: D1 01 00 CA 1B 01 B7 [10:09:57]Write i2c OK [10:09:57]MH_I2C_Read... [10:09:57]Read from MH i2c: D1 [10:09:57]MH_I2C_Read... [10:09:57]Read from MH i2c: D1 01 00 [10:09:57]MH_I2C_Read... [10:09:57]Read from MH i2c: D1 01 00 CA 1B 00 B6 [10:09:57]Write to MH i2c: 01 00 00 CB 1B E6 [10:09:57]Write i2c OK [10:09:57]MH_I2C_Read... [10:09:57]OFD Sender: No OFD packet to send [10:09:58]*** Cut start [10:09:58]*** Partial cut [10:09:58]*** CUTSNS_PIN = 1 [10:09:58]*** CUTSNS_PIN = 0 [10:09:58]*** Brake cut motor [10:09:58]Read from MH i2c: 01 [10:09:58]MH_I2C_Read... [10:09:58]*** Stop cut motor [10:09:58]*** Cut end [10:09:58]Read from MH i2c: 01 07 00 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: 01 07 00 CB 1B 00 00 00 00 00 FF 0F FB [10:09:58]process_action close_receipt done [10:09:58]requested_data is exist [10:09:58]produce_requested_data [10:09:58]requested_item fm.sn is exist - process it [10:09:58]wFMCommunicate request_size=4 [10:09:58]MH_SAM_APDU [10:09:58]CAPDU: 80 11 00 00 [10:09:58]Write to MH i2c: E2 08 00 CC 1B 80 11 00 00 00 00 00 00 61 [10:09:58]Write i2c OK [10:09:58]MH_I2C_Read... [10:09:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:58]Read from MH i2c: E2 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: E2 17 00 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: E2 17 00 CC 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BC [10:09:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:09:58]wFMCommunicate OK [10:09:58]requested_item fd.num is exist - process it [10:09:58]SAM_PROTO_GetFieldsCounters [10:09:58]wFMCommunicate request_size=4 [10:09:58]MH_SAM_APDU [10:09:58]CAPDU: 80 13 00 00 [10:09:58]Write to MH i2c: E2 08 00 CD 1B 80 13 00 00 00 00 00 00 64 [10:09:58]Write i2c OK [10:09:58]MH_I2C_Read... [10:09:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:59]Read from MH i2c: E2 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: E2 62 00 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: E2 62 00 CD 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4C D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [10:09: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4C D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:09:59]wFMCommunicate OK [10:09:59]SAM_PROTO_GetFieldsCounters done [10:09:59]requested_item shift.num is exist - process it [10:09:59]requested_item shift.opened is exist - process it [10:09:59]req_shift_opened [10:09:59]FM_GetShiftState [10:09:59]SAM_PROTO_GetShiftState [10:09:59]wFMCommunicate request_size=4 [10:09:59]MH_SAM_APDU [10:09:59]CAPDU: 80 13 01 00 [10:09:59]Write to MH i2c: E2 08 00 CE 1B 80 13 01 00 00 00 00 00 66 [10:09:59]Write i2c OK [10:09:59]MH_I2C_Read... [10:09:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:59]Read from MH i2c: E2 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: E2 0E 00 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: E2 0E 00 CE 1B 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 FE [10:09:59]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:09:59]wFMCommunicate OK [10:09:59]SAM_PROTO_GetShiftState done [10:09:59]FM_GetShiftState done [10:09:59]req_shift_opened done [10:09:59]requested_item shift.open_date is exist - process it [10:09:59]req_shift_open_date [10:09:59]req_shift_open_date done [10:09:59]produce_requested_data done [10:09:59]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119372,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [10:09:59]process_action_free close_receipt [10:09:59]json_value_free [10:09:59]json_value_free done [10:09:59]process_json_proto returns [10:09:59]Send response to host [10:09:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119372,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [10:09:59]free response buf [10:09:59]execute_script done [10:09:59]execute_script returns [10:09:59]free content buf [10:09:59]Sock 9.Close socket [10:09:59]Sock 9.Thread stoped [10:10:02]OFD Sender: No OFD packet to send [10:10:07]OFD Sender: No OFD packet to send [10:10:12]OFD Sender: No OFD packet to send [10:10:17]OFD Sender: No OFD packet to send [10:10:22]OFD Sender: No OFD packet to send [10:10:27]OFD Sender: No OFD packet to send [10:10:32]OFD Sender: No OFD packet to send [10:10:37]OFD Sender: No OFD packet to send [10:10:42]OFD Sender: No OFD packet to send [10:10:47]OFD Sender: No OFD packet to send [10:10:52]OFD Sender: No OFD packet to send [10:10:57]OFD Sender: No OFD packet to send [10:11:02]OFD Sender: No OFD packet to send [10:11:07]OFD Sender: No OFD packet to send [10:11:12]OFD Sender: No OFD packet to send [10:11:17]OFD Sender: No OFD packet to send [10:11:22]OFD Sender: No OFD packet to send [10:11:27]OFD Sender: No OFD packet to send [10:11:32]OFD Sender: No OFD packet to send [10:11:37]OFD Sender: No OFD packet to send [10:11:42]OFD Sender: No OFD packet to send [10:11:48]OFD Sender: No OFD packet to send [10:11:53]OFD Sender: No OFD packet to send [10:11:58]OFD Sender: No OFD packet to send [10:12:03]OFD Sender: No OFD packet to send [10:12:08]OFD Sender: No OFD packet to send [10:12:13]OFD Sender: No OFD packet to send [10:12:18]OFD Sender: No OFD packet to send [10:12:23]OFD Sender: No OFD packet to send [10:12:28]OFD Sender: No OFD packet to send [10:12:33]OFD Sender: No OFD packet to send [10:12:38]OFD Sender: No OFD packet to send [10:12:43]OFD Sender: No OFD packet to send [10:12:48]OFD Sender: No OFD packet to send [10:12:53]OFD Sender: No OFD packet to send [10:12:58]OFD Sender: No OFD packet to send [10:13:03]OFD Sender: No OFD packet to send [10:13:08]OFD Sender: No OFD packet to send [10:13:13]OFD Sender: No OFD packet to send [10:13:18]OFD Sender: No OFD packet to send [10:13:23]OFD Sender: No OFD packet to send [10:13:28]OFD Sender: No OFD packet to send [10:13:33]OFD Sender: No OFD packet to send [10:13:38]OFD Sender: No OFD packet to send [10:13:43]OFD Sender: No OFD packet to send [10:13:48]OFD Sender: No OFD packet to send [10:13:53]OFD Sender: No OFD packet to send [10:13:58]OFD Sender: No OFD packet to send [10:14:03]OFD Sender: No OFD packet to send [10:14:08]OFD Sender: No OFD packet to send [10:14:13]OFD Sender: No OFD packet to send [10:14:18]OFD Sender: No OFD packet to send [10:14:23]OFD Sender: No OFD packet to send [10:14: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: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: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]OFD Sender: No OFD packet to send [10:15:43]OFD Sender: No OFD packet to send [10:15:48]OFD Sender: No OFD packet to send [10:15:53]OFD Sender: No OFD packet to send [10:15:58]OFD Sender: No OFD packet to send [10:16:03]OFD Sender: No OFD packet to send [10:16:08]OFD Sender: No OFD packet to send [10:16:13]OFD Sender: No OFD packet to send [10:16:18]OFD Sender: No OFD packet to send [10:16:23]OFD Sender: No OFD packet to send [10:16:28]OFD Sender: No OFD packet to send [10:16:33]OFD Sender: No OFD packet to send [10:16:38]OFD Sender: No OFD packet to send [10:16:43]OFD Sender: No OFD packet to send [10:16:48]OFD Sender: No OFD packet to send [10:16:53]OFD Sender: No OFD packet to send [10:16:58]OFD Sender: No OFD packet to send [10:17:03]OFD Sender: No OFD packet to send [10:17:08]OFD Sender: No OFD packet to send [10:17:13]OFD Sender: No OFD packet to send [10:17:18]OFD Sender: No OFD packet to send [10:17:23]OFD Sender: No OFD packet to send [10:17:28]OFD Sender: No OFD packet to send [10:17:33]OFD Sender: No OFD packet to send [10:17:38]OFD Sender: No OFD packet to send [10:17:43]OFD Sender: No OFD packet to send [10:17:48]OFD Sender: No OFD packet to send [10:17:53]OFD Sender: No OFD packet to send [10:17:58]OFD Sender: No OFD packet to send [10:18:03]OFD Sender: No OFD packet to send [10:18:08]OFD Sender: No OFD packet to send [10:18:13]OFD Sender: No OFD packet to send [10:18:18]OFD Sender: No OFD packet to send [10:18:23]OFD Sender: No OFD packet to send [10:18:28]OFD Sender: No OFD packet to send [10:18:33]OFD Sender: No OFD packet to send [10:18:38]OFD Sender: No OFD packet to send [10:18:43]OFD Sender: No OFD packet to send [10:18:48]OFD Sender: No OFD packet to send [10:18:53]OFD Sender: No OFD packet to send [10:18:58]OFD Sender: No OFD packet to send [10:19:03]OFD Sender: No OFD packet to send [10:19:08]OFD Sender: No OFD packet to send [10:19:13]OFD Sender: No OFD packet to send [10:19:18]OFD Sender: No OFD packet to send [10:19:23]OFD Sender: No OFD packet to send [10:19:23]accept exits with 8 [10:19:23]New connection [10:19:23]New thread 3067338084 created [10:19:23]Thread 3067194724 joined [10:19:23]Waiting for new connection... [10:19:23] Sock 8.Parse request [10:19:23]Sock 8.Check first char [10:19:23]Sock 8.First char is OK [10:19:23]request: POST /json_proto HTTP/1.0 [10:19:23]Method: POST [10:19:23]URL: /json_proto [10:19:23]Method is POST - this is cgi request [10:19:23]url: /json_proto [10:19:23]query_string will be loaded in cgi processing [10:19:23]execute_cgi json_proto POST (null) [10:19:23]execute_cgi path=json_proto method=POST [10:19:23]POST find Content-Length [10:19:23]Host: 172.17.45.7:8080 [10:19:23]Content-Length: 819 [10:19:23]Content-Type: application/json [10:19:23] [10:19:23]POST finish read [10:19:23]Found Content-Length = 819 [10:19:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 31.500, "sum" : 2400.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2400.00, "payments": [ { "type": 1, "sum" : 2400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:23]execute_script... [10:19: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)950299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 31.500, "sum" : 2400.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2400.00, "payments": [ { "type": 1, "sum" : 2400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:23]POST & json_proto [10:19:23]process_json_proto [10:19:23]json parsed OK: [10:19:23]protocol is kg_v1.0 [10:19:23]action value=close_receipt [10:19:23]process_action close_receipt [10:19:23]cmd_close_receipt [10:19:23]MH_GetDate [10:19:23]Write to MH i2c: F0 00 00 CF 1B D9 [10:19:23]Write i2c OK [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: F0 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: F0 09 00 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: F0 09 00 CF 1B 00 AD 0F AA 66 90 0F 3E 66 F1 [10:19:23]GetLastDocTimeStamp 1722420597 [10:19:23]current date 1722421165 [10:19:23]FM_GetShiftState [10:19:23]SAM_PROTO_GetShiftState [10:19:23]wFMCommunicate request_size=4 [10:19:23]MH_SAM_APDU [10:19:23]CAPDU: 80 13 01 00 [10:19:23]Write to MH i2c: E2 08 00 D0 1B 80 13 01 00 00 00 00 00 68 [10:19:23]Write i2c OK [10:19:23]MH_I2C_Read... [10:19:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:23]Read from MH i2c: E2 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: E2 0E 00 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: E2 0E 00 D0 1B 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 00 [10:19:23]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:19:23]wFMCommunicate OK [10:19:23]SAM_PROTO_GetShiftState done [10:19:23]FM_GetShiftState done [10:19:23]opened in 1722384637 [10:19:23]opened+sec_in_day 1722471037 [10:19:23]quantity*price = 240030 [10:19:23]sum+1 = 240031 [10:19:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 2400.00 НСП 1% : 21.24 НДС 12% : 254.90 Наличными: 0.00 Безнал.: 2400.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 104 31.07.2024 10:19 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119373 ФПД: 58363765879161 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T101925&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119373&fm=58363765879161&tin=02508201610067®Number=0000000000092660&sum=240000 [10:19:24]StoreToDocumentArchive [10:19:24]shift 436 fd 119373 [10:19:24]save to /storage/0436/doc_00119373 [10:19:24]save last doc name /storage/0436/doc_00119373 to /storage/kkm_last_doc_name [10:19:24]save OK [10:19:24]Clear old archive folders... [10:19:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:19:24]tlvbuf is 00B0BFE0 [10:19:24]SAM_PROTO_ClearQueue [10:19:24]wFMCommunicate request_size=4 [10:19:24]MH_SAM_APDU [10:19:24]CAPDU: 80 09 00 00 [10:19:24]Write to MH i2c: E2 08 00 DD 1B 80 09 00 00 00 00 00 00 6A [10:19:24]Write i2c OK [10:19:24]MH_I2C_Read... [10:19:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:24]Read from MH i2c: E2 [10:19:24]MH_I2C_Read... [10:19:24]Read from MH i2c: E2 03 00 [10:19:24]MH_I2C_Read... [10:19:24]Read from MH i2c: E2 03 00 DD 1B 00 90 00 6C [10:19:24]RAPDU: 90 00 [10:19:24]wFMCommunicate OK [10:19:24]SAM_PROTO_ClearQueue done [10:19:24]KKMCreateOFDPacket [10:19:24]OFDProtocolAddRootSTLVToBuf [10:19:24]FM_MakeSignedData [10:19:24]FM_MakeSignedData [10:19:24]SAM_PROTO_SignData [10:19:24]wFMCommunicate request_size=4 [10:19:24]MH_SAM_APDU [10:19:24]CAPDU: 80 0D 01 02 [10:19:24]Write to MH i2c: E2 08 00 DE 1B 80 0D 01 02 00 00 00 00 72 [10:19:24]Write i2c OK [10:19:24]MH_I2C_Read... [10:19:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:24]Read from MH i2c: E2 [10:19:24]MH_I2C_Read... [10:19:24]Read from MH i2c: E2 03 00 [10:19:24]MH_I2C_Read... [10:19:24]Read from MH i2c: E2 03 00 DE 1B 00 90 00 6D [10:19:24]RAPDU: 90 00 [10:19:24]wFMCommunicate OK [10:19:24]wFMCommunicate request_size=255 [10:19:24]MH_SAM_APDU [10:19:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 7B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9E A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 63 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 A9 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 AD 0F AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4D D2 01 00 35 04 06 00 35 14 DF 88 [10:19:24]Write to MH i2c: E2 02 01 DF 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 7B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9E A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 63 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 A9 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 AD 0F AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4D D2 01 00 35 04 06 00 35 14 DF 88 00 00 E6 [10:19:24]Write i2c OK [10:19:24]MH_I2C_Read... [10:19:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:25]Read from MH i2c: E2 [10:19:25]MH_I2C_Read... [10:19:25]Read from MH i2c: E2 03 00 [10:19:25]MH_I2C_Read... [10:19:25]Read from MH i2c: E2 03 00 DF 1B 00 90 00 6E [10:19:25]RAPDU: 90 00 [10:19:25]wFMCommunicate OK [10:19:25]wFMCommunicate request_size=7 [10:19:25]MH_SAM_APDU [10:19:25]CAPDU: 80 0D 02 02 02 71 79 [10:19:25]Write to MH i2c: E2 0A 00 E0 1B 80 0D 02 02 02 00 71 79 00 00 63 [10:19:25]Write i2c OK [10:19:25]MH_I2C_Read... [10:19:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:25]Read from MH i2c: E2 [10:19:25]MH_I2C_Read... [10:19:25]Read from MH i2c: E2 03 00 [10:19:25]MH_I2C_Read... [10:19:25]Read from MH i2c: E2 03 00 E0 1B 00 90 00 6F [10:19:25]RAPDU: 90 00 [10:19:25]wFMCommunicate OK [10:19:25]wFMCommunicate request_size=4 [10:19:25]MH_SAM_APDU [10:19:25]CAPDU: 80 0D 03 02 [10:19:25]Write to MH i2c: E2 08 00 E1 1B 80 0D 03 02 00 00 00 00 77 [10:19:25]Write i2c OK [10:19:25]MH_I2C_Read... [10:19:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:25]Read from MH i2c: E2 [10:19:25]MH_I2C_Read... [10:19:25]Read from MH i2c: E2 0B 00 [10:19:25]MH_I2C_Read... [10:19:25]Read from MH i2c: E2 0B 00 E1 1B 00 10 59 0E A1 D3 B9 8D AA 90 00 53 [10:19:25]RAPDU: 10 59 0E A1 D3 B9 8D AA 90 00 [10:19:25]wFMCommunicate OK [10:19:25]SAM_PROTO_SignData done [10:19:25]FM_MakeSignedData done [10:19:25]CreateOFDProtocolMessage [10:19:25]wFMCommunicate request_size=4 [10:19:25]MH_SAM_APDU [10:19:25]CAPDU: 80 11 00 00 [10:19:25]Write to MH i2c: E2 08 00 E2 1B 80 11 00 00 00 00 00 00 77 [10:19:25]Write i2c OK [10:19:25]MH_I2C_Read... [10:19:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:25]Read from MH i2c: E2 [10:19:25]MH_I2C_Read... [10:19:25]Read from MH i2c: E2 17 00 [10:19:25]MH_I2C_Read... [10:19:25]Read from MH i2c: E2 17 00 E2 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D2 [10:19:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:19:25]wFMCommunicate OK [10:19:25]CreateOFDProtocolMessage done [10:19:25]OFDSenderStorePacket 119373 [10:19:25]StoreOFDPacket docnum=119373 [10:19:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 4C 0C 04 01 C9 C1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 7B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9E A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 63 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 A9 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 AD 0F AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4D D2 01 00 35 04 06 00 35 14 DF 88 71 79 10 59 0E A1 D3 B9 8D AA [10:19:25]CheckFolder [10:19:25]dirname=/storage/ofd_packets [10:19:25]CheckFolder done [10:19:25]ProducePacketName [10:19:25]name=ofd_packets/00119373 [10:19:25]NVStorageSaveData ofd_packets/00119373 [10:19:25]File name is /storage/ofd_packets/00119373 [10:19:25]Write 298 bytes [10:19:25]NVStorageSaveData done [10:19:25]OFDSenderStorePacket done [10:19:25]KKMCreateOFDPacket done [10:19:25]NVStorageSaveData kkm_last_timestamp [10:19:25]File name is /storage/kkm_last_timestamp [10:19:25]Write 4 bytes [10:19:25]NVStorageSaveData done [10:19:25]ExternCall_PrintAddStr [10:19:25]wPrintStart [10:19:25]Write to MH i2c: 01 00 00 E3 1B FE [10:19:25]Write i2c OK [10:19:25]MH_I2C_Read... [10:19:25]Read from MH i2c: 01 [10:19:25]MH_I2C_Read... [10:19:25]Read from MH i2c: 01 07 00 [10:19:25]MH_I2C_Read... [10:19:25]Read from MH i2c: 01 07 00 E3 1B 00 00 00 00 00 FF 0F 13 [10:19:25]RasterBufferAndPrint [10:19:25]line Счет N : (1)950299 [10:19:25]line ИНН: 02508201610067 [10:19:25]line Контрольно-Кассовый Чек [10:19:25]line ПРОДАЖА [10:19:25]line ТРК (МРК, ГНК) : 44 [10:19:25]line Товар: 2710194800 [10:19:25]line ДТ-К-5 [10:19:25]line 31.500 * 76.20 [10:19:25]line = 2400.30 [10:19:25]line НДС 12% НСП 1% [10:19:25]line > о реализуемом товаре [10:19:25]line ОКРУГЛЕНИЕ: -0.30 [10:19:25]line ИТОГО: 2400.00 [10:19:25]line НСП 1% : 21.24 [10:19:25]line НДС 12% : 254.90 [10:19:25]line Наличными: 0.00 [10:19:25]line Безнал.: 2400.00 [10:19:25]line Место: АЗС № 134 "Партнер Нефть" [10:19:25]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:19:25]line СНО: Общий режим [10:19:25]line Чек 104 31.07.2024 10:19 [10:19:25]line Смена: 436 ФФД: 1.0 [10:19:25]line ЗНМ: 0300000044 [10:19:25]line РНМ: 0000000000092660 [10:19:25]line Версия ККМ: 001 [10:19:25]line Платежная система: O! деньги [10:19:25]line ФМ: 0000000000874939 [10:19:25]line ФД: 119373 [10:19:25]line ФПД: 58363765879161 [10:19:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T101925&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119373&fm=58363765879161&tin=02508201610067®Number=0000000000092660&sum=240000 [10:19:25]written 0, free lines is 4095 [10:19:25]OFD Sender: Processing packet 119373 [packets to send 86, broken 85] [10:19:25]ProducePacketName [10:19:25]name=ofd_packets/00119373 [10:19:25]OFD Sender: To server: pG, [10:19:25]CommunicateWithHost lk.salyk.kg:30040 [10:19:25]ConnectInit lk.salyk.kg [10:19:25]Connected sock=11 [10:19:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 4C 0C 04 01 C9 C1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 7B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9E A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 63 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 A9 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 AD 0F AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4D D2 01 00 35 04 06 00 35 14 DF 88 71 79 10 59 0E A1 D3 B9 8D AA [10:19:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 55 BF 47 00 5C 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 39 33 39 10 04 04 00 4D D2 01 00 F4 03 04 00 36 BD A9 66 B6 04 01 00 00 2C 0C 26 AE 17 DB 70 AE [10:19:25]CommunicateWithHost err = 0 [10:19:25]CheckOFDResponse [10:19:25]1017 (14) - 77093643461234 [10:19:25]1041 (16) - 0000000000874939 [10:19:25]1040 (4) - 119373 [10:19:25]1012 (4) - 31.07.2024 04:27 [10:19:25]1206 (1) - 0 [10:19:25]OFD Sender: Remove packet 119373 [10:19:25]ProducePacketName [10:19:25]name=ofd_packets/00119373 [10:19:25]NVStorageDeleteData [10:19:25]Write to MH i2c: 01 00 00 0D 1C 29 [10:19:25]Write i2c OK [10:19:25]MH_I2C_Read... [10:19:25]Read from MH i2c: 01 [10:19:25]MH_I2C_Read... [10:19:25]Read from MH i2c: 01 07 00 [10:19:25]MH_I2C_Read... [10:19:25]Read from MH i2c: 01 07 00 0D 1C 00 00 00 00 00 E1 0C 1D [10:19:25]RasterBufferAndPrint [10:19:25]line [10:19:25]line [10:19:25]line [10:19:25]line [10:19:25]line [10:19:25]written 0, free lines is 3303 [10:19:25]MH_Cut [10:19:25]Write to MH i2c: D1 01 00 14 1C 01 02 [10:19:25]Write i2c OK [10:19:25]MH_I2C_Read... [10:19:25]Read from MH i2c: D1 [10:19:25]MH_I2C_Read... [10:19:25]Read from MH i2c: D1 01 00 [10:19:25]MH_I2C_Read... [10:19:25]Read from MH i2c: D1 01 00 14 1C 00 01 [10:19:25]Write to MH i2c: 01 00 00 15 1C 31 [10:19:25]Write i2c OK [10:19:25]MH_I2C_Read... [10:19:26]OFD Sender: No OFD packet to send [10:19:26]*** Cut start [10:19:26]*** Partial cut [10:19:26]*** CUTSNS_PIN = 1 [10:19:26]*** CUTSNS_PIN = 0 [10:19:26]*** Brake cut motor [10:19:27]Read from MH i2c: 01 [10:19:27]MH_I2C_Read... [10:19:27]*** Stop cut motor [10:19:27]*** Cut end [10:19:27]Read from MH i2c: 01 07 00 [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: 01 07 00 15 1C 00 00 00 00 00 FF 0F 46 [10:19:27]process_action close_receipt done [10:19:27]requested_data is exist [10:19:27]produce_requested_data [10:19:27]requested_item fm.sn is exist - process it [10:19:27]wFMCommunicate request_size=4 [10:19:27]MH_SAM_APDU [10:19:27]CAPDU: 80 11 00 00 [10:19:27]Write to MH i2c: E2 08 00 16 1C 80 11 00 00 00 00 00 00 AC [10:19:27]Write i2c OK [10:19:27]MH_I2C_Read... [10:19:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:27]Read from MH i2c: E2 [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: E2 17 00 [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: E2 17 00 16 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 07 [10:19:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:19:27]wFMCommunicate OK [10:19:27]requested_item fd.num is exist - process it [10:19:27]SAM_PROTO_GetFieldsCounters [10:19:27]wFMCommunicate request_size=4 [10:19:27]MH_SAM_APDU [10:19:27]CAPDU: 80 13 00 00 [10:19:27]Write to MH i2c: E2 08 00 17 1C 80 13 00 00 00 00 00 00 AF [10:19:27]Write i2c OK [10:19:27]MH_I2C_Read... [10:19:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:27]Read from MH i2c: E2 [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: E2 62 00 [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: E2 62 00 17 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4D D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [10:19: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4D D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:19:27]wFMCommunicate OK [10:19:27]SAM_PROTO_GetFieldsCounters done [10:19:27]requested_item shift.num is exist - process it [10:19:27]requested_item shift.opened is exist - process it [10:19:27]req_shift_opened [10:19:27]FM_GetShiftState [10:19:27]SAM_PROTO_GetShiftState [10:19:27]wFMCommunicate request_size=4 [10:19:27]MH_SAM_APDU [10:19:27]CAPDU: 80 13 01 00 [10:19:27]Write to MH i2c: E2 08 00 18 1C 80 13 01 00 00 00 00 00 B1 [10:19:27]Write i2c OK [10:19:27]MH_I2C_Read... [10:19:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:27]Read from MH i2c: E2 [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: E2 0E 00 [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: E2 0E 00 18 1C 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 49 [10:19:27]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:19:27]wFMCommunicate OK [10:19:27]SAM_PROTO_GetShiftState done [10:19:27]FM_GetShiftState done [10:19:27]req_shift_opened done [10:19:27]requested_item shift.open_date is exist - process it [10:19:27]req_shift_open_date [10:19:27]req_shift_open_date done [10:19:27]produce_requested_data done [10:19:27]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119373,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [10:19:27]process_action_free close_receipt [10:19:27]json_value_free [10:19:27]json_value_free done [10:19:27]process_json_proto returns [10:19:27]Send response to host [10:19:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119373,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [10:19:27]free response buf [10:19:27]execute_script done [10:19:27]execute_script returns [10:19:27]free content buf [10:19:27]Sock 8.Close socket [10:19:27]Sock 8.Thread stoped [10:19:31]OFD Sender: No OFD packet to send [10:19:36]OFD Sender: No OFD packet to send [10:19:41]OFD Sender: No OFD packet to send [10:19:46]OFD Sender: No OFD packet to send [10:19:51]OFD Sender: No OFD packet to send [10:19:56]OFD Sender: No OFD packet to send [10:20:01]OFD Sender: No OFD packet to send [10:20:06]OFD Sender: No OFD packet to send [10:20:11]OFD Sender: No OFD packet to send [10:20:16]OFD Sender: No OFD packet to send [10:20:21]OFD Sender: No OFD packet to send [10:20:26]OFD Sender: No OFD packet to send [10:20:31]OFD Sender: No OFD packet to send [10:20:36]OFD Sender: No OFD packet to send [10:20:41]OFD Sender: No OFD packet to send [10:20:46]OFD Sender: No OFD packet to send [10:20:51]OFD Sender: No OFD packet to send [10:20:56]OFD Sender: No OFD packet to send [10:21:01]OFD Sender: No OFD packet to send [10:21:06]OFD Sender: No OFD packet to send [10:21:11]OFD Sender: No OFD packet to send [10:21:16]OFD Sender: No OFD packet to send [10:21:21]OFD Sender: No OFD packet to send [10:21:26]OFD Sender: No OFD packet to send [10:21:31]OFD Sender: No OFD packet to send [10:21:36]OFD Sender: No OFD packet to send [10:21:41]OFD Sender: No OFD packet to send [10:21:46]OFD Sender: No OFD packet to send [10:21:51]OFD Sender: No OFD packet to send [10:21:56]OFD Sender: No OFD packet to send [10:22:01]OFD Sender: No OFD packet to send [10:22:06]OFD Sender: No OFD packet to send [10:22:11]OFD Sender: No OFD packet to send [10:22:16]OFD Sender: No OFD packet to send [10:22:21]OFD Sender: No OFD packet to send [10:22:26]OFD Sender: No OFD packet to send [10:22:31]OFD Sender: No OFD packet to send [10:22:36]OFD Sender: No OFD packet to send [10:22:41]OFD Sender: No OFD packet to send [10:22:46]OFD Sender: No OFD packet to send [10:22:49]accept exits with 9 [10:22:49]New connection [10:22:49]New thread 3067194724 created [10:22:49]Thread 3067338084 joined [10:22:49]Waiting for new connection... [10:22:49] Sock 9.Parse request [10:22:49]Sock 9.Check first char [10:22:49]Sock 9.First char is OK [10:22:49]request: POST /json_proto HTTP/1.0 [10:22:49]Method: POST [10:22:49]URL: /json_proto [10:22:49]Method is POST - this is cgi request [10:22:49]url: /json_proto [10:22:49]query_string will be loaded in cgi processing [10:22:49]execute_cgi json_proto POST (null) [10:22:49]execute_cgi path=json_proto method=POST [10:22:49]POST find Content-Length [10:22:49]Host: 172.17.45.7:8080 [10:22:49]Content-Length: 677 [10:22:49]Content-Type: application/json [10:22:49] [10:22:49]POST finish read [10:22:49]Found Content-Length = 677 [10:22:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:49]execute_script... [10:22:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:49]POST & json_proto [10:22:49]process_json_proto [10:22:49]json parsed OK: [10:22:49]protocol is kg_v1.0 [10:22:49]action value=close_receipt [10:22:49]process_action close_receipt [10:22:49]cmd_close_receipt [10:22:49]MH_GetDate [10:22:49]Write to MH i2c: F0 00 00 19 1C 24 [10:22:49]Write i2c OK [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: F0 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: F0 09 00 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: F0 09 00 19 1C 00 7B 10 AA 66 90 0F 3E 66 0B [10:22:49]GetLastDocTimeStamp 1722421165 [10:22:49]current date 1722421371 [10:22:49]FM_GetShiftState [10:22:49]SAM_PROTO_GetShiftState [10:22:49]wFMCommunicate request_size=4 [10:22:49]MH_SAM_APDU [10:22:49]CAPDU: 80 13 01 00 [10:22:49]Write to MH i2c: E2 08 00 1A 1C 80 13 01 00 00 00 00 00 B3 [10:22:49]Write i2c OK [10:22:49]MH_I2C_Read... [10:22:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:49]Read from MH i2c: E2 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: E2 0E 00 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: E2 0E 00 1A 1C 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 4B [10:22:49]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:22:49]wFMCommunicate OK [10:22:49]SAM_PROTO_GetShiftState done [10:22:49]FM_GetShiftState done [10:22:49]opened in 1722384637 [10:22:49]opened+sec_in_day 1722471037 [10:22:49]quantity*price = 50010 [10:22:49]sum+1 = 50012 [10:22:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 105 31.07.2024 10:22 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119374 ФПД: 54415215060387 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T102251&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119374&fm=54415215060387&tin=02508201610067®Number=0000000000092660&sum=50000 [10:22:50]StoreToDocumentArchive [10:22:50]shift 436 fd 119374 [10:22:50]save to /storage/0436/doc_00119374 [10:22:50]save last doc name /storage/0436/doc_00119374 to /storage/kkm_last_doc_name [10:22:50]save OK [10:22:50]Clear old archive folders... [10:22:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:22:50]tlvbuf is 00AC94A0 [10:22:50]SAM_PROTO_ClearQueue [10:22:50]wFMCommunicate request_size=4 [10:22:50]MH_SAM_APDU [10:22:50]CAPDU: 80 09 00 00 [10:22:50]Write to MH i2c: E2 08 00 27 1C 80 09 00 00 00 00 00 00 B5 [10:22:50]Write i2c OK [10:22:50]MH_I2C_Read... [10:22:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:50]Read from MH i2c: E2 [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: E2 03 00 [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: E2 03 00 27 1C 00 90 00 B7 [10:22:50]RAPDU: 90 00 [10:22:50]wFMCommunicate OK [10:22:50]SAM_PROTO_ClearQueue done [10:22:50]KKMCreateOFDPacket [10:22:50]OFDProtocolAddRootSTLVToBuf [10:22:50]FM_MakeSignedData [10:22:50]FM_MakeSignedData [10:22:50]SAM_PROTO_SignData [10:22:50]wFMCommunicate request_size=4 [10:22:50]MH_SAM_APDU [10:22:50]CAPDU: 80 0D 01 02 [10:22:50]Write to MH i2c: E2 08 00 28 1C 80 0D 01 02 00 00 00 00 BD [10:22:50]Write i2c OK [10:22:50]MH_I2C_Read... [10:22:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:50]Read from MH i2c: E2 [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: E2 03 00 [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: E2 03 00 28 1C 00 90 00 B8 [10:22:50]RAPDU: 90 00 [10:22:50]wFMCommunicate OK [10:22:50]wFMCommunicate request_size=255 [10:22:50]MH_SAM_APDU [10:22:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 7B 10 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4E D2 01 00 35 04 06 00 31 [10:22:50]Write to MH i2c: E2 02 01 29 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 7B 10 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4E D2 01 00 35 04 06 00 31 00 00 33 [10:22:50]Write i2c OK [10:22:50]MH_I2C_Read... [10:22:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:50]Read from MH i2c: E2 [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: E2 03 00 [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: E2 03 00 29 1C 00 90 00 B9 [10:22:50]RAPDU: 90 00 [10:22:50]wFMCommunicate OK [10:22:50]wFMCommunicate request_size=10 [10:22:50]MH_SAM_APDU [10:22:50]CAPDU: 80 0D 02 02 05 7D 87 90 65 A3 [10:22:50]Write to MH i2c: E2 0D 00 2A 1C 80 0D 02 02 05 00 7D 87 90 65 A3 00 00 66 [10:22:50]Write i2c OK [10:22:50]MH_I2C_Read... [10:22:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:50]Read from MH i2c: E2 [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: E2 03 00 [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: E2 03 00 2A 1C 00 90 00 BA [10:22:50]RAPDU: 90 00 [10:22:50]wFMCommunicate OK [10:22:50]wFMCommunicate request_size=4 [10:22:50]MH_SAM_APDU [10:22:50]CAPDU: 80 0D 03 02 [10:22:50]Write to MH i2c: E2 08 00 2B 1C 80 0D 03 02 00 00 00 00 C2 [10:22:50]Write i2c OK [10:22:50]MH_I2C_Read... [10:22:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:50]Read from MH i2c: E2 [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: E2 0B 00 [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: E2 0B 00 2B 1C 00 A9 BF 94 26 A8 34 A1 64 90 00 C6 [10:22:50]RAPDU: A9 BF 94 26 A8 34 A1 64 90 00 [10:22:50]wFMCommunicate OK [10:22:50]SAM_PROTO_SignData done [10:22:50]FM_MakeSignedData done [10:22:50]CreateOFDProtocolMessage [10:22:50]wFMCommunicate request_size=4 [10:22:50]MH_SAM_APDU [10:22:50]CAPDU: 80 11 00 00 [10:22:50]Write to MH i2c: E2 08 00 2C 1C 80 11 00 00 00 00 00 00 C2 [10:22:50]Write i2c OK [10:22:50]MH_I2C_Read... [10:22:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:50]Read from MH i2c: E2 [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: E2 17 00 [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: E2 17 00 2C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1D [10:22:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:22:50]wFMCommunicate OK [10:22:50]CreateOFDProtocolMessage done [10:22:50]OFDSenderStorePacket 119374 [10:22:50]StoreOFDPacket docnum=119374 [10:22:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 54 ED 07 01 A8 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 7B 10 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4E D2 01 00 35 04 06 00 31 7D 87 90 65 A3 A9 BF 94 26 A8 34 A1 64 [10:22:50]CheckFolder [10:22:50]dirname=/storage/ofd_packets [10:22:50]CheckFolder done [10:22:50]ProducePacketName [10:22:50]name=ofd_packets/00119374 [10:22:50]NVStorageSaveData ofd_packets/00119374 [10:22:50]File name is /storage/ofd_packets/00119374 [10:22:50]Write 301 bytes [10:22:50]NVStorageSaveData done [10:22:50]OFDSenderStorePacket done [10:22:50]KKMCreateOFDPacket done [10:22:50]NVStorageSaveData kkm_last_timestamp [10:22:50]File name is /storage/kkm_last_timestamp [10:22:50]Write 4 bytes [10:22:50]NVStorageSaveData done [10:22:50]ExternCall_PrintAddStr [10:22:50]wPrintStart [10:22:50]Write to MH i2c: 01 00 00 2D 1C 49 [10:22:50]Write i2c OK [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: 01 [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: 01 07 00 [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: 01 07 00 2D 1C 00 00 00 00 00 FF 0F 5E [10:22:50]RasterBufferAndPrint [10:22:50]line Счет N : (1)950300 [10:22:50]line ИНН: 02508201610067 [10:22:50]line Контрольно-Кассовый Чек [10:22:50]line ПРОДАЖА [10:22:50]line ТРК (МРК, ГНК) : 53 [10:22:50]line Товар: 2710124500 [10:22:50]line Аи-95-К-3 [10:22:50]line 6.740 * 74.20 [10:22:50]line = 500.11 [10:22:50]line НДС 12% НСП 1% [10:22:50]line > о реализуемом товаре [10:22:50]line ОКРУГЛЕНИЕ: -0.11 [10:22:50]line ИТОГО: 500.00 [10:22:50]line Внесено: 500.00 [10:22:50]line СДАЧА: 0.00 [10:22:50]line НСП 1% : 4.43 [10:22:50]line НДС 12% : 53.11 [10:22:50]line Наличными: 500.00 [10:22:50]line Безнал.: 0.00 [10:22:50]line Место: АЗС № 134 "Партнер Нефть" [10:22:50]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:22:50]line СНО: Общий режим [10:22:50]line Чек 105 31.07.2024 10:22 [10:22:50]line Смена: 436 ФФД: 1.0 [10:22:50]line ЗНМ: 0300000044 [10:22:50]line РНМ: 0000000000092660 [10:22:50]line Версия ККМ: 001 [10:22:50]line ФМ: 0000000000874939 [10:22:50]line ФД: 119374 [10:22:50]line ФПД: 54415215060387 [10:22:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T102251&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119374&fm=54415215060387&tin=02508201610067®Number=0000000000092660&sum=50000 [10:22:51]OFD Sender: Processing packet 119374 [packets to send 86, broken 85] [10:22:51]ProducePacketName [10:22:51]name=ofd_packets/00119374 [10:22:51]OFD Sender: To server: pG, [10:22:51]CommunicateWithHost lk.salyk.kg:30040 [10:22:51]ConnectInit lk.salyk.kg [10:22:51]written 0, free lines is 4095 [10:22:51]Write to MH i2c: 01 00 00 57 1C 73 [10:22:51]Write i2c OK [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: 01 [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: 01 07 00 [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: 01 07 00 57 1C 00 00 00 00 00 CF 0C 55 [10:22:51]RasterBufferAndPrint [10:22:51]line [10:22:51]line [10:22:51]line [10:22:51]line [10:22:51]line [10:22:51]written 0, free lines is 3283 [10:22:51]MH_Cut [10:22:51]Write to MH i2c: D1 01 00 5E 1C 01 4C [10:22:51]Write i2c OK [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: D1 [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: D1 01 00 [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: D1 01 00 5E 1C 00 4B [10:22:51]Write to MH i2c: 01 00 00 5F 1C 7B [10:22:51]Write i2c OK [10:22:51]MH_I2C_Read... [10:22:52]*** Cut start [10:22:52]*** Partial cut [10:22:52]*** CUTSNS_PIN = 1 [10:22:52]*** CUTSNS_PIN = 0 [10:22:52]*** Brake cut motor [10:22:53]Read from MH i2c: 01 [10:22:53]MH_I2C_Read... [10:22:53]*** Stop cut motor [10:22:53]Read from MH i2c: 01 07 00 [10:22:53]MH_I2C_Read... [10:22:53]*** Cut end [10:22:53]Read from MH i2c: 01 07 00 5F 1C 00 00 00 00 00 FF 0F 90 [10:22:53]process_action close_receipt done [10:22:53]requested_data is exist [10:22:53]produce_requested_data [10:22:53]requested_item fm.sn is exist - process it [10:22:53]wFMCommunicate request_size=4 [10:22:53]MH_SAM_APDU [10:22:53]CAPDU: 80 11 00 00 [10:22:53]Write to MH i2c: E2 08 00 60 1C 80 11 00 00 00 00 00 00 F6 [10:22:53]Write i2c OK [10:22:53]MH_I2C_Read... [10:22:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:53]Read from MH i2c: E2 [10:22:53]MH_I2C_Read... [10:22:53]Read from MH i2c: E2 17 00 [10:22:53]MH_I2C_Read... [10:22:53]Read from MH i2c: E2 17 00 60 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 51 [10:22:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:22:53]wFMCommunicate OK [10:22:53]requested_item fd.num is exist - process it [10:22:53]SAM_PROTO_GetFieldsCounters [10:22:53]wFMCommunicate request_size=4 [10:22:53]MH_SAM_APDU [10:22:53]CAPDU: 80 13 00 00 [10:22:53]Write to MH i2c: E2 08 00 61 1C 80 13 00 00 00 00 00 00 F9 [10:22:53]Write i2c OK [10:22:53]MH_I2C_Read... [10:22:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:53]Read from MH i2c: E2 [10:22:53]MH_I2C_Read... [10:22:53]Read from MH i2c: E2 62 00 [10:22:53]MH_I2C_Read... [10:22:53]Read from MH i2c: E2 62 00 61 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4E D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [10:22: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4E D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:22:53]wFMCommunicate OK [10:22:53]SAM_PROTO_GetFieldsCounters done [10:22:53]requested_item shift.num is exist - process it [10:22:53]requested_item shift.opened is exist - process it [10:22:53]req_shift_opened [10:22:53]FM_GetShiftState [10:22:53]SAM_PROTO_GetShiftState [10:22:53]wFMCommunicate request_size=4 [10:22:53]MH_SAM_APDU [10:22:53]CAPDU: 80 13 01 00 [10:22:53]Write to MH i2c: E2 08 00 62 1C 80 13 01 00 00 00 00 00 FB [10:22:53]Write i2c OK [10:22:53]MH_I2C_Read... [10:22:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:53]Read from MH i2c: E2 [10:22:53]MH_I2C_Read... [10:22:53]Read from MH i2c: E2 0E 00 [10:22:53]MH_I2C_Read... [10:22:53]Read from MH i2c: E2 0E 00 62 1C 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 93 [10:22:53]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:22:53]wFMCommunicate OK [10:22:53]SAM_PROTO_GetShiftState done [10:22:53]FM_GetShiftState done [10:22:53]req_shift_opened done [10:22:53]requested_item shift.open_date is exist - process it [10:22:53]req_shift_open_date [10:22:53]req_shift_open_date done [10:22:53]produce_requested_data done [10:22:53]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119374,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [10:22:53]process_action_free close_receipt [10:22:53]json_value_free [10:22:53]json_value_free done [10:22:53]process_json_proto returns [10:22:53]Send response to host [10:22:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119374,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [10:22:53]free response buf [10:22:53]execute_script done [10:22:53]execute_script returns [10:22:53]free content buf [10:22:53]Sock 9.Close socket [10:22:53]Sock 9.Thread stoped [10:23:15]accept exits with 8 [10:23:15]New connection [10:23:15]New thread 3067338084 created [10:23:15]Thread 3067194724 joined [10:23:15]Waiting for new connection... [10:23:15] Sock 8.Parse request [10:23:15]Sock 8.Check first char [10:23:15]Sock 8.First char is OK [10:23:15]request: POST /json_proto HTTP/1.0 [10:23:15]Method: POST [10:23:15]URL: /json_proto [10:23:15]Method is POST - this is cgi request [10:23:15]url: /json_proto [10:23:15]query_string will be loaded in cgi processing [10:23:15]execute_cgi json_proto POST (null) [10:23:15]execute_cgi path=json_proto method=POST [10:23:15]POST find Content-Length [10:23:15]Host: 172.17.45.7:8080 [10:23:15]Content-Length: 682 [10:23:15]Content-Type: application/json [10:23:15] [10:23:15]POST finish read [10:23:15]Found Content-Length = 682 [10:23:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:15]execute_script... [10:23: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)950301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:15]POST & json_proto [10:23:15]process_json_proto [10:23:15]json parsed OK: [10:23:15]protocol is kg_v1.0 [10:23:15]action value=close_receipt [10:23:15]process_action close_receipt [10:23:15]cmd_close_receipt [10:23:15]MH_GetDate [10:23:15]Write to MH i2c: F0 00 00 63 1C 6E [10:23:15]Write i2c OK [10:23:15]MH_I2C_Read... [10:23:15]Read from MH i2c: F0 [10:23:15]MH_I2C_Read... [10:23:15]Read from MH i2c: F0 09 00 [10:23:15]MH_I2C_Read... [10:23:15]Read from MH i2c: F0 09 00 63 1C 00 95 10 AA 66 90 0F 3E 66 6F [10:23:15]GetLastDocTimeStamp 1722421371 [10:23:15]current date 1722421397 [10:23:15]FM_GetShiftState [10:23:15]SAM_PROTO_GetShiftState [10:23:15]wFMCommunicate request_size=4 [10:23:15]MH_SAM_APDU [10:23:15]CAPDU: 80 13 01 00 [10:23:15]Write to MH i2c: E2 08 00 64 1C 80 13 01 00 00 00 00 00 FD [10:23:15]Write i2c OK [10:23:15]MH_I2C_Read... [10:23:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:15]Read from MH i2c: E2 [10:23:15]MH_I2C_Read... [10:23:15]Read from MH i2c: E2 0E 00 [10:23:15]MH_I2C_Read... [10:23:15]Read from MH i2c: E2 0E 00 64 1C 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 95 [10:23:15]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:23:15]wFMCommunicate OK [10:23:15]SAM_PROTO_GetShiftState done [10:23:15]FM_GetShiftState done [10:23:15]opened in 1722384637 [10:23:15]opened+sec_in_day 1722471037 [10:23:15]quantity*price = 100021 [10:23:15]sum+1 = 100023 [10:23:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 106 31.07.2024 10:23 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119375 ФПД: 235125026464284 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T102317&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119375&fm=235125026464284&tin=02508201610067®Number=0000000000092660&sum=100000 [10:23:17]StoreToDocumentArchive [10:23:17]shift 436 fd 119375 [10:23:17]save to /storage/0436/doc_00119375 [10:23:17]save last doc name /storage/0436/doc_00119375 to /storage/kkm_last_doc_name [10:23:17]save OK [10:23:17]Clear old archive folders... [10:23:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:23:17]tlvbuf is 00B254E0 [10:23:17]SAM_PROTO_ClearQueue [10:23:17]wFMCommunicate request_size=4 [10:23:17]MH_SAM_APDU [10:23:17]CAPDU: 80 09 00 00 [10:23:17]Write to MH i2c: E2 08 00 71 1C 80 09 00 00 00 00 00 00 FF [10:23:17]Write i2c OK [10:23:17]MH_I2C_Read... [10:23:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:17]Read from MH i2c: E2 [10:23:17]MH_I2C_Read... [10:23:17]Read from MH i2c: E2 03 00 [10:23:17]MH_I2C_Read... [10:23:17]Read from MH i2c: E2 03 00 71 1C 00 90 00 01 [10:23:17]RAPDU: 90 00 [10:23:17]wFMCommunicate OK [10:23:17]SAM_PROTO_ClearQueue done [10:23:17]KKMCreateOFDPacket [10:23:17]OFDProtocolAddRootSTLVToBuf [10:23:17]FM_MakeSignedData [10:23:17]FM_MakeSignedData [10:23:17]SAM_PROTO_SignData [10:23:17]wFMCommunicate request_size=4 [10:23:17]MH_SAM_APDU [10:23:17]CAPDU: 80 0D 01 02 [10:23:17]Write to MH i2c: E2 08 00 72 1C 80 0D 01 02 00 00 00 00 07 [10:23:17]Write i2c OK [10:23:17]MH_I2C_Read... [10:23:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:17]Read from MH i2c: E2 [10:23:17]MH_I2C_Read... [10:23:17]Read from MH i2c: E2 03 00 [10:23:17]MH_I2C_Read... [10:23:17]Read from MH i2c: E2 03 00 72 1C 00 90 00 02 [10:23:17]RAPDU: 90 00 [10:23:17]wFMCommunicate OK [10:23:17]wFMCommunicate request_size=255 [10:23:17]MH_SAM_APDU [10:23:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 95 10 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4F D2 01 00 35 04 06 00 D5 [10:23:17]Write to MH i2c: E2 02 01 73 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 95 10 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4F D2 01 00 35 04 06 00 D5 00 00 82 [10:23:17]Write i2c OK [10:23:17]MH_I2C_Read... [10:23:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:17]Read from MH i2c: E2 [10:23:17]MH_I2C_Read... [10:23:17]Read from MH i2c: E2 03 00 [10:23:17]MH_I2C_Read... [10:23:17]Read from MH i2c: E2 03 00 73 1C 00 90 00 03 [10:23:17]RAPDU: 90 00 [10:23:17]wFMCommunicate OK [10:23:17]wFMCommunicate request_size=10 [10:23:17]MH_SAM_APDU [10:23:17]CAPDU: 80 0D 02 02 05 D8 4F AE 22 1C [10:23:17]Write to MH i2c: E2 0D 00 74 1C 80 0D 02 02 05 00 D8 4F AE 22 1C 00 00 27 [10:23:17]Write i2c OK [10:23:17]MH_I2C_Read... [10:23:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:17]Read from MH i2c: E2 [10:23:17]MH_I2C_Read... [10:23:17]Read from MH i2c: E2 03 00 [10:23:17]MH_I2C_Read... [10:23:17]Read from MH i2c: E2 03 00 74 1C 00 90 00 04 [10:23:17]RAPDU: 90 00 [10:23:17]wFMCommunicate OK [10:23:17]wFMCommunicate request_size=4 [10:23:17]MH_SAM_APDU [10:23:17]CAPDU: 80 0D 03 02 [10:23:17]Write to MH i2c: E2 08 00 75 1C 80 0D 03 02 00 00 00 00 0C [10:23:17]Write i2c OK [10:23:17]MH_I2C_Read... [10:23:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:17]Read from MH i2c: E2 [10:23:17]MH_I2C_Read... [10:23:17]Read from MH i2c: E2 0B 00 [10:23:17]MH_I2C_Read... [10:23:17]Read from MH i2c: E2 0B 00 75 1C 00 EA 85 D0 5C 6B 85 68 A9 90 00 A9 [10:23:17]RAPDU: EA 85 D0 5C 6B 85 68 A9 90 00 [10:23:17]wFMCommunicate OK [10:23:17]SAM_PROTO_SignData done [10:23:17]FM_MakeSignedData done [10:23:17]CreateOFDProtocolMessage [10:23:17]wFMCommunicate request_size=4 [10:23:17]MH_SAM_APDU [10:23:17]CAPDU: 80 11 00 00 [10:23:17]Write to MH i2c: E2 08 00 76 1C 80 11 00 00 00 00 00 00 0C [10:23:17]Write i2c OK [10:23:17]MH_I2C_Read... [10:23:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:17]Read from MH i2c: E2 [10:23:17]MH_I2C_Read... [10:23:17]Read from MH i2c: E2 17 00 [10:23:17]MH_I2C_Read... [10:23:17]Read from MH i2c: E2 17 00 76 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 67 [10:23:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:23:17]wFMCommunicate OK [10:23:17]CreateOFDProtocolMessage done [10:23:17]OFDSenderStorePacket 119375 [10:23:17]StoreOFDPacket docnum=119375 [10:23:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 12 40 07 01 A4 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 95 10 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4F D2 01 00 35 04 06 00 D5 D8 4F AE 22 1C EA 85 D0 5C 6B 85 68 A9 [10:23:17]CheckFolder [10:23:17]dirname=/storage/ofd_packets [10:23:17]CheckFolder done [10:23:17]ProducePacketName [10:23:17]name=ofd_packets/00119375 [10:23:17]NVStorageSaveData ofd_packets/00119375 [10:23:17]File name is /storage/ofd_packets/00119375 [10:23:17]Write 301 bytes [10:23:17]NVStorageSaveData done [10:23:17]OFDSenderStorePacket done [10:23:17]KKMCreateOFDPacket done [10:23:17]NVStorageSaveData kkm_last_timestamp [10:23:17]File name is /storage/kkm_last_timestamp [10:23:17]Write 4 bytes [10:23:17]NVStorageSaveData done [10:23:17]ExternCall_PrintAddStr [10:23:17]wPrintStart [10:23:17]Write to MH i2c: 01 00 00 77 1C 93 [10:23:17]Write i2c OK [10:23:17]MH_I2C_Read... [10:23:17]Read from MH i2c: 01 [10:23:17]MH_I2C_Read... [10:23:17]Read from MH i2c: 01 07 00 [10:23:17]MH_I2C_Read... [10:23:17]Read from MH i2c: 01 07 00 77 1C 00 00 00 00 00 FF 0F A8 [10:23:17]RasterBufferAndPrint [10:23:17]line Счет N : (1)950301 [10:23:17]line ИНН: 02508201610067 [10:23:17]line Контрольно-Кассовый Чек [10:23:17]line ПРОДАЖА [10:23:17]line ТРК (МРК, ГНК) : 33 [10:23:17]line Товар: 2710124500 [10:23:17]line Аи-95-К-3 [10:23:17]line 13.480 * 74.20 [10:23:17]line = 1000.22 [10:23:17]line НДС 12% НСП 1% [10:23:17]line > о реализуемом товаре [10:23:17]line ОКРУГЛЕНИЕ: -0.22 [10:23:17]line ИТОГО: 1000.00 [10:23:17]line Внесено: 1000.00 [10:23:17]line СДАЧА: 0.00 [10:23:17]line НСП 1% : 8.85 [10:23:17]line НДС 12% : 106.22 [10:23:17]line Наличными: 1000.00 [10:23:17]line Безнал.: 0.00 [10:23:17]line Место: АЗС № 134 "Партнер Нефть" [10:23:17]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:23:17]line СНО: Общий режим [10:23:17]line Чек 106 31.07.2024 10:23 [10:23:17]line Смена: 436 ФФД: 1.0 [10:23:17]line ЗНМ: 0300000044 [10:23:17]line РНМ: 0000000000092660 [10:23:17]line Версия ККМ: 001 [10:23:17]line ФМ: 0000000000874939 [10:23:17]line ФД: 119375 [10:23:17]line ФПД: 235125026464284 [10:23:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T102317&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119375&fm=235125026464284&tin=02508201610067®Number=0000000000092660&sum=100000 [10:23:17]written 0, free lines is 4095 [10:23:18]Write to MH i2c: 01 00 00 A1 1C BD [10:23:18]Write i2c OK [10:23:18]MH_I2C_Read... [10:23:18]Read from MH i2c: 01 [10:23:18]MH_I2C_Read... [10:23:18]Read from MH i2c: 01 07 00 [10:23:18]MH_I2C_Read... [10:23:18]Read from MH i2c: 01 07 00 A1 1C 00 00 00 00 00 D8 0C A8 [10:23:18]RasterBufferAndPrint [10:23:18]line [10:23:18]line [10:23:18]line [10:23:18]line [10:23:18]line [10:23:18]written 0, free lines is 3293 [10:23:18]MH_Cut [10:23:18]Write to MH i2c: D1 01 00 A8 1C 01 96 [10:23:18]Write i2c OK [10:23:18]MH_I2C_Read... [10:23:18]Read from MH i2c: D1 [10:23:18]MH_I2C_Read... [10:23:18]Read from MH i2c: D1 01 00 [10:23:18]MH_I2C_Read... [10:23:18]Read from MH i2c: D1 01 00 A8 1C 00 95 [10:23:18]Write to MH i2c: 01 00 00 A9 1C C5 [10:23:18]Write i2c OK [10:23:18]MH_I2C_Read... [10:23:18]*** Cut start [10:23:18]*** Partial cut [10:23:18]*** CUTSNS_PIN = 1 [10:23:18]*** CUTSNS_PIN = 0 [10:23:19]*** Brake cut motor [10:23:19]Read from MH i2c: 01 [10:23:19]MH_I2C_Read... [10:23:19]*** Stop cut motor [10:23:19]*** Cut end [10:23:19]Read from MH i2c: 01 07 00 [10:23:19]MH_I2C_Read... [10:23:19]Read from MH i2c: 01 07 00 A9 1C 00 00 00 00 00 FF 0F DA [10:23:19]process_action close_receipt done [10:23:19]requested_data is exist [10:23:19]produce_requested_data [10:23:19]requested_item fm.sn is exist - process it [10:23:19]wFMCommunicate request_size=4 [10:23:19]MH_SAM_APDU [10:23:19]CAPDU: 80 11 00 00 [10:23:19]Write to MH i2c: E2 08 00 AA 1C 80 11 00 00 00 00 00 00 40 [10:23:19]Write i2c OK [10:23:19]MH_I2C_Read... [10:23:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:19]Read from MH i2c: E2 [10:23:19]MH_I2C_Read... [10:23:19]Read from MH i2c: E2 17 00 [10:23:19]MH_I2C_Read... [10:23:19]Read from MH i2c: E2 17 00 AA 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9B [10:23:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:23:19]wFMCommunicate OK [10:23:19]requested_item fd.num is exist - process it [10:23:19]SAM_PROTO_GetFieldsCounters [10:23:19]wFMCommunicate request_size=4 [10:23:19]MH_SAM_APDU [10:23:19]CAPDU: 80 13 00 00 [10:23:19]Write to MH i2c: E2 08 00 AB 1C 80 13 00 00 00 00 00 00 43 [10:23:19]Write i2c OK [10:23:19]MH_I2C_Read... [10:23:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:19]Read from MH i2c: E2 [10:23:19]MH_I2C_Read... [10:23:19]Read from MH i2c: E2 62 00 [10:23:19]MH_I2C_Read... [10:23:19]Read from MH i2c: E2 62 00 AB 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4F D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [10:23: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4F D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:23:19]wFMCommunicate OK [10:23:19]SAM_PROTO_GetFieldsCounters done [10:23:19]requested_item shift.num is exist - process it [10:23:19]requested_item shift.opened is exist - process it [10:23:19]req_shift_opened [10:23:19]FM_GetShiftState [10:23:19]SAM_PROTO_GetShiftState [10:23:19]wFMCommunicate request_size=4 [10:23:19]MH_SAM_APDU [10:23:19]CAPDU: 80 13 01 00 [10:23:19]Write to MH i2c: E2 08 00 AC 1C 80 13 01 00 00 00 00 00 45 [10:23:19]Write i2c OK [10:23:19]MH_I2C_Read... [10:23:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:19]Read from MH i2c: E2 [10:23:19]MH_I2C_Read... [10:23:19]Read from MH i2c: E2 0E 00 [10:23:19]MH_I2C_Read... [10:23:19]Read from MH i2c: E2 0E 00 AC 1C 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 DD [10:23:19]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:23:19]wFMCommunicate OK [10:23:19]SAM_PROTO_GetShiftState done [10:23:19]FM_GetShiftState done [10:23:19]req_shift_opened done [10:23:19]requested_item shift.open_date is exist - process it [10:23:19]req_shift_open_date [10:23:19]req_shift_open_date done [10:23:19]produce_requested_data done [10:23:19]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119375,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [10:23:19]process_action_free close_receipt [10:23:19]json_value_free [10:23:19]json_value_free done [10:23:19]process_json_proto returns [10:23:19]Send response to host [10:23:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119375,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [10:23:19]free response buf [10:23:19]execute_script done [10:23:19]execute_script returns [10:23:19]free content buf [10:23:19]Sock 8.Close socket [10:23:19]Sock 8.Thread stoped [10:24:04]accept exits with 9 [10:24:04]New connection [10:24:04]New thread 3067194724 created [10:24:04]Thread 3067338084 joined [10:24:04]Waiting for new connection... [10:24:04] Sock 9.Parse request [10:24:04]Sock 9.Check first char [10:24:04]Sock 9.First char is OK [10:24:04]request: POST /json_proto HTTP/1.0 [10:24:04]Method: POST [10:24:04]URL: /json_proto [10:24:04]Method is POST - this is cgi request [10:24:04]url: /json_proto [10:24:04]query_string will be loaded in cgi processing [10:24:04]execute_cgi json_proto POST (null) [10:24:04]execute_cgi path=json_proto method=POST [10:24:04]POST find Content-Length [10:24:04]Host: 172.17.45.7:8080 [10:24:04]Content-Length: 677 [10:24:04]Content-Type: application/json [10:24:04] [10:24:04]POST finish read [10:24:04]Found Content-Length = 677 [10:24:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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" ] } } [10:24:04]execute_script... [10:24: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)950302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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" ] } } [10:24:04]POST & json_proto [10:24:04]process_json_proto [10:24:04]json parsed OK: [10:24:04]protocol is kg_v1.0 [10:24:04]action value=close_receipt [10:24:04]process_action close_receipt [10:24:04]cmd_close_receipt [10:24:04]MH_GetDate [10:24:04]Write to MH i2c: F0 00 00 AD 1C B8 [10:24:04]Write i2c OK [10:24:04]MH_I2C_Read... [10:24:04]Read from MH i2c: F0 [10:24:04]MH_I2C_Read... [10:24:04]Read from MH i2c: F0 09 00 [10:24:04]MH_I2C_Read... [10:24:04]Read from MH i2c: F0 09 00 AD 1C 00 C6 10 AA 66 90 0F 3E 66 EA [10:24:04]GetLastDocTimeStamp 1722421397 [10:24:04]current date 1722421446 [10:24:04]FM_GetShiftState [10:24:04]SAM_PROTO_GetShiftState [10:24:04]wFMCommunicate request_size=4 [10:24:04]MH_SAM_APDU [10:24:04]CAPDU: 80 13 01 00 [10:24:04]Write to MH i2c: E2 08 00 AE 1C 80 13 01 00 00 00 00 00 47 [10:24:04]Write i2c OK [10:24:04]MH_I2C_Read... [10:24:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:04]Read from MH i2c: E2 [10:24:04]MH_I2C_Read... [10:24:04]Read from MH i2c: E2 0E 00 [10:24:04]MH_I2C_Read... [10:24:04]Read from MH i2c: E2 0E 00 AE 1C 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 DF [10:24:04]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:24:04]wFMCommunicate OK [10:24:04]SAM_PROTO_GetShiftState done [10:24:04]FM_GetShiftState done [10:24:04]opened in 1722384637 [10:24:04]opened+sec_in_day 1722471037 [10:24:04]quantity*price = 60003 [10:24:04]sum+1 = 60004 [10:24:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 107 31.07.2024 10:24 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119376 ФПД: 251628749766869 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T102406&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119376&fm=251628749766869&tin=02508201610067®Number=0000000000092660&sum=60000 [10:24:05]StoreToDocumentArchive [10:24:05]shift 436 fd 119376 [10:24:05]save to /storage/0436/doc_00119376 [10:24:05]save last doc name /storage/0436/doc_00119376 to /storage/kkm_last_doc_name [10:24:05]save OK [10:24:05]Clear old archive folders... [10:24:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:24:05]tlvbuf is B6FB64A0 [10:24:05]SAM_PROTO_ClearQueue [10:24:05]wFMCommunicate request_size=4 [10:24:05]MH_SAM_APDU [10:24:05]CAPDU: 80 09 00 00 [10:24:05]Write to MH i2c: E2 08 00 BB 1C 80 09 00 00 00 00 00 00 49 [10:24:05]Write i2c OK [10:24:05]MH_I2C_Read... [10:24:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:05]Read from MH i2c: E2 [10:24:05]MH_I2C_Read... [10:24:05]Read from MH i2c: E2 03 00 [10:24:05]MH_I2C_Read... [10:24:05]Read from MH i2c: E2 03 00 BB 1C 00 90 00 4B [10:24:05]RAPDU: 90 00 [10:24:05]wFMCommunicate OK [10:24:05]SAM_PROTO_ClearQueue done [10:24:05]KKMCreateOFDPacket [10:24:05]OFDProtocolAddRootSTLVToBuf [10:24:05]FM_MakeSignedData [10:24:05]FM_MakeSignedData [10:24:05]SAM_PROTO_SignData [10:24:05]wFMCommunicate request_size=4 [10:24:05]MH_SAM_APDU [10:24:05]CAPDU: 80 0D 01 02 [10:24:05]Write to MH i2c: E2 08 00 BC 1C 80 0D 01 02 00 00 00 00 51 [10:24:05]Write i2c OK [10:24:05]MH_I2C_Read... [10:24:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:05]Read from MH i2c: E2 [10:24:05]MH_I2C_Read... [10:24:05]Read from MH i2c: E2 03 00 [10:24:05]MH_I2C_Read... [10:24:05]Read from MH i2c: E2 03 00 BC 1C 00 90 00 4C [10:24:05]RAPDU: 90 00 [10:24:05]wFMCommunicate OK [10:24:05]wFMCommunicate request_size=255 [10:24:05]MH_SAM_APDU [10:24:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 6B 00 00 00 F4 03 04 00 C6 10 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 50 D2 01 00 35 04 06 00 E4 [10:24:05]Write to MH i2c: E2 02 01 BD 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 6B 00 00 00 F4 03 04 00 C6 10 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 50 D2 01 00 35 04 06 00 E4 00 00 A9 [10:24:05]Write i2c OK [10:24:05]MH_I2C_Read... [10:24:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:06]Read from MH i2c: E2 [10:24:06]MH_I2C_Read... [10:24:06]Read from MH i2c: E2 03 00 [10:24:06]MH_I2C_Read... [10:24:06]Read from MH i2c: E2 03 00 BD 1C 00 90 00 4D [10:24:06]RAPDU: 90 00 [10:24:06]wFMCommunicate OK [10:24:06]wFMCommunicate request_size=10 [10:24:06]MH_SAM_APDU [10:24:06]CAPDU: 80 0D 02 02 05 DA E2 3E C0 D5 [10:24:06]Write to MH i2c: E2 0D 00 BE 1C 80 0D 02 02 05 00 DA E2 3E C0 D5 00 00 ED [10:24:06]Write i2c OK [10:24:06]MH_I2C_Read... [10:24:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:06]Read from MH i2c: E2 [10:24:06]MH_I2C_Read... [10:24:06]Read from MH i2c: E2 03 00 [10:24:06]MH_I2C_Read... [10:24:06]Read from MH i2c: E2 03 00 BE 1C 00 90 00 4E [10:24:06]RAPDU: 90 00 [10:24:06]wFMCommunicate OK [10:24:06]wFMCommunicate request_size=4 [10:24:06]MH_SAM_APDU [10:24:06]CAPDU: 80 0D 03 02 [10:24:06]Write to MH i2c: E2 08 00 BF 1C 80 0D 03 02 00 00 00 00 56 [10:24:06]Write i2c OK [10:24:06]MH_I2C_Read... [10:24:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:06]Read from MH i2c: E2 [10:24:06]MH_I2C_Read... [10:24:06]Read from MH i2c: E2 0B 00 [10:24:06]MH_I2C_Read... [10:24:06]Read from MH i2c: E2 0B 00 BF 1C 00 42 35 03 D8 19 F9 CE D7 90 00 60 [10:24:06]RAPDU: 42 35 03 D8 19 F9 CE D7 90 00 [10:24:06]wFMCommunicate OK [10:24:06]SAM_PROTO_SignData done [10:24:06]FM_MakeSignedData done [10:24:06]CreateOFDProtocolMessage [10:24:06]wFMCommunicate request_size=4 [10:24:06]MH_SAM_APDU [10:24:06]CAPDU: 80 11 00 00 [10:24:06]Write to MH i2c: E2 08 00 C0 1C 80 11 00 00 00 00 00 00 56 [10:24:06]Write i2c OK [10:24:06]MH_I2C_Read... [10:24:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:06]Read from MH i2c: E2 [10:24:06]MH_I2C_Read... [10:24:06]Read from MH i2c: E2 17 00 [10:24:06]MH_I2C_Read... [10:24:06]Read from MH i2c: E2 17 00 C0 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B1 [10:24:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:24:06]wFMCommunicate OK [10:24:06]CreateOFDProtocolMessage done [10:24:06]OFDSenderStorePacket 119376 [10:24:06]StoreOFDPacket docnum=119376 [10:24:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 97 87 07 01 26 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 6B 00 00 00 F4 03 04 00 C6 10 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 50 D2 01 00 35 04 06 00 E4 DA E2 3E C0 D5 42 35 03 D8 19 F9 CE D7 [10:24:06]CheckFolder [10:24:06]dirname=/storage/ofd_packets [10:24:06]CheckFolder done [10:24:06]ProducePacketName [10:24:06]name=ofd_packets/00119376 [10:24:06]NVStorageSaveData ofd_packets/00119376 [10:24:06]File name is /storage/ofd_packets/00119376 [10:24:06]Write 301 bytes [10:24:06]NVStorageSaveData done [10:24:06]OFDSenderStorePacket done [10:24:06]KKMCreateOFDPacket done [10:24:06]NVStorageSaveData kkm_last_timestamp [10:24:06]File name is /storage/kkm_last_timestamp [10:24:06]Write 4 bytes [10:24:06]NVStorageSaveData done [10:24:06]ExternCall_PrintAddStr [10:24:06]wPrintStart [10:24:06]Write to MH i2c: 01 00 00 C1 1C DD [10:24:06]Write i2c OK [10:24:06]MH_I2C_Read... [10:24:06]Read from MH i2c: 01 [10:24:06]MH_I2C_Read... [10:24:06]Read from MH i2c: 01 07 00 [10:24:06]MH_I2C_Read... [10:24:06]Read from MH i2c: 01 07 00 C1 1C 00 00 00 00 00 FF 0F F2 [10:24:06]RasterBufferAndPrint [10:24:06]line Счет N : (1)950302 [10:24:06]line ИНН: 02508201610067 [10:24:06]line Контрольно-Кассовый Чек [10:24:06]line ПРОДАЖА [10:24:06]line ТРК (МРК, ГНК) : 41 [10:24:06]line Товар: 2710124130 [10:24:06]line Аи-92-К-4 [10:24:06]line 8.850 * 67.80 [10:24:06]line = 600.03 [10:24:06]line НДС 12% НСП 1% [10:24:06]line > о реализуемом товаре [10:24:06]line ОКРУГЛЕНИЕ: -0.03 [10:24:06]line ИТОГО: 600.00 [10:24:06]line Внесено: 600.00 [10:24:06]line СДАЧА: 0.00 [10:24:06]line НСП 1% : 5.31 [10:24:06]line НДС 12% : 63.72 [10:24:06]line Наличными: 600.00 [10:24:06]line Безнал.: 0.00 [10:24:06]line Место: АЗС № 134 "Партнер Нефть" [10:24:06]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:24:06]line СНО: Общий режим [10:24:06]line Чек 107 31.07.2024 10:24 [10:24:06]line Смена: 436 ФФД: 1.0 [10:24:06]line ЗНМ: 0300000044 [10:24:06]line РНМ: 0000000000092660 [10:24:06]line Версия ККМ: 001 [10:24:06]line ФМ: 0000000000874939 [10:24:06]line ФД: 119376 [10:24:06]line ФПД: 251628749766869 [10:24:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T102406&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119376&fm=251628749766869&tin=02508201610067®Number=0000000000092660&sum=60000 [10:24:06]written 0, free lines is 4095 [10:24:07]Write to MH i2c: 01 00 00 EB 1C 07 [10:24:07]Write i2c OK [10:24:07]MH_I2C_Read... [10:24:07]Read from MH i2c: 01 [10:24:07]MH_I2C_Read... [10:24:07]Read from MH i2c: 01 07 00 [10:24:07]MH_I2C_Read... [10:24:07]Read from MH i2c: 01 07 00 EB 1C 00 00 00 00 00 DD 0C F7 [10:24:07]RasterBufferAndPrint [10:24:07]line [10:24:07]line [10:24:07]line [10:24:07]line [10:24:07]line [10:24:07]written 0, free lines is 3299 [10:24:07]MH_Cut [10:24:07]Write to MH i2c: D1 01 00 F2 1C 01 E0 [10:24:07]Write i2c OK [10:24:07]MH_I2C_Read... [10:24:07]Read from MH i2c: D1 [10:24:07]MH_I2C_Read... [10:24:07]Read from MH i2c: D1 01 00 [10:24:07]MH_I2C_Read... [10:24:07]Read from MH i2c: D1 01 00 F2 1C 00 DF [10:24:07]Write to MH i2c: 01 00 00 F3 1C 0F [10:24:07]Write i2c OK [10:24:07]MH_I2C_Read... [10:24:07]*** Cut start [10:24:07]*** Partial cut [10:24:07]*** CUTSNS_PIN = 1 [10:24:07]*** CUTSNS_PIN = 0 [10:24:08]*** Brake cut motor [10:24:08]Read from MH i2c: 01 [10:24:08]MH_I2C_Read... [10:24:08]*** Stop cut motor [10:24:08]*** Cut end [10:24:08]Read from MH i2c: 01 07 00 [10:24:08]MH_I2C_Read... [10:24:08]Read from MH i2c: 01 07 00 F3 1C 00 00 00 00 00 FF 0F 24 [10:24:08]process_action close_receipt done [10:24:08]requested_data is exist [10:24:08]produce_requested_data [10:24:08]requested_item fm.sn is exist - process it [10:24:08]wFMCommunicate request_size=4 [10:24:08]MH_SAM_APDU [10:24:08]CAPDU: 80 11 00 00 [10:24:08]Write to MH i2c: E2 08 00 F4 1C 80 11 00 00 00 00 00 00 8A [10:24:08]Write i2c OK [10:24:08]MH_I2C_Read... [10:24:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:08]Read from MH i2c: E2 [10:24:08]MH_I2C_Read... [10:24:08]Read from MH i2c: E2 17 00 [10:24:08]MH_I2C_Read... [10:24:08]Read from MH i2c: E2 17 00 F4 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E5 [10:24:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:24:08]wFMCommunicate OK [10:24:08]requested_item fd.num is exist - process it [10:24:08]SAM_PROTO_GetFieldsCounters [10:24:08]wFMCommunicate request_size=4 [10:24:08]MH_SAM_APDU [10:24:08]CAPDU: 80 13 00 00 [10:24:08]Write to MH i2c: E2 08 00 F5 1C 80 13 00 00 00 00 00 00 8D [10:24:08]Write i2c OK [10:24:08]MH_I2C_Read... [10:24:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:08]Read from MH i2c: E2 [10:24:08]MH_I2C_Read... [10:24:08]Read from MH i2c: E2 62 00 [10:24:08]MH_I2C_Read... [10:24:08]Read from MH i2c: E2 62 00 F5 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 50 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [10:24: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 50 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:24:08]wFMCommunicate OK [10:24:08]SAM_PROTO_GetFieldsCounters done [10:24:08]requested_item shift.num is exist - process it [10:24:08]requested_item shift.opened is exist - process it [10:24:08]req_shift_opened [10:24:08]FM_GetShiftState [10:24:08]SAM_PROTO_GetShiftState [10:24:08]wFMCommunicate request_size=4 [10:24:08]MH_SAM_APDU [10:24:08]CAPDU: 80 13 01 00 [10:24:08]Write to MH i2c: E2 08 00 F6 1C 80 13 01 00 00 00 00 00 8F [10:24:08]Write i2c OK [10:24:08]MH_I2C_Read... [10:24:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:08]Read from MH i2c: E2 [10:24:08]MH_I2C_Read... [10:24:08]Read from MH i2c: E2 0E 00 [10:24:08]MH_I2C_Read... [10:24:08]Read from MH i2c: E2 0E 00 F6 1C 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 27 [10:24:08]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:24:08]wFMCommunicate OK [10:24:08]SAM_PROTO_GetShiftState done [10:24:08]FM_GetShiftState done [10:24:08]req_shift_opened done [10:24:08]requested_item shift.open_date is exist - process it [10:24:08]req_shift_open_date [10:24:08]req_shift_open_date done [10:24:08]produce_requested_data done [10:24:08]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119376,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [10:24:08]process_action_free close_receipt [10:24:08]json_value_free [10:24:08]json_value_free done [10:24:08]process_json_proto returns [10:24:08]Send response to host [10:24:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119376,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [10:24:08]free response buf [10:24:08]execute_script done [10:24:08]execute_script returns [10:24:08]free content buf [10:24:08]Sock 9.Close socket [10:24:08]Sock 9.Thread stoped [10:25:00]ConnectInit Can't connect to host [10:25:00]CommunicateWithHost connect error [10:25:00]CommunicateWithHost err = -1 [10:25:00]OFD Sender: Server communicate error [10:25:00]OFD Sender: Processing packet 119374 [packets to send 88, broken 85] [10:25:00]ProducePacketName [10:25:00]name=ofd_packets/00119374 [10:25:00]OFD Sender: To server: pG, [10:25:00]CommunicateWithHost lk.salyk.kg:30040 [10:25:00]ConnectInit lk.salyk.kg [10:25:00]Connected sock=9 [10:25: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 39 33 39 0F 01 00 00 54 ED 07 01 A8 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 7B 10 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4E D2 01 00 35 04 06 00 31 7D 87 90 65 A3 A9 BF 94 26 A8 34 A1 64 [10:25:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F3 EC 47 00 B1 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4E D2 01 00 F4 03 04 00 85 BE A9 66 B6 04 01 00 00 59 5E 0C 4A 53 1B 5C EC [10:25:01]CommunicateWithHost err = 0 [10:25:01]CheckOFDResponse [10:25:01]1017 (14) - 77093643461234 [10:25:01]1041 (16) - 0000000000874939 [10:25:01]1040 (4) - 119374 [10:25:01]1012 (4) - 31.07.2024 04:33 [10:25:01]1206 (1) - 0 [10:25:01]OFD Sender: Remove packet 119374 [10:25:01]ProducePacketName [10:25:01]name=ofd_packets/00119374 [10:25:01]NVStorageDeleteData [10:25:01]OFD Sender: Processing packet 119375 [packets to send 87, broken 85] [10:25:01]ProducePacketName [10:25:01]name=ofd_packets/00119375 [10:25:01]OFD Sender: To server: pG, [10:25:01]CommunicateWithHost lk.salyk.kg:30040 [10:25:01]ConnectInit lk.salyk.kg [10:25:01]Connected sock=9 [10:25:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 12 40 07 01 A4 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 95 10 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4F D2 01 00 35 04 06 00 D5 D8 4F AE 22 1C EA 85 D0 5C 6B 85 68 A9 [10:25:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 C6 31 47 00 99 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 39 33 39 10 04 04 00 4F D2 01 00 F4 03 04 00 86 BE A9 66 B6 04 01 00 00 3D E6 2A 03 51 4A 05 5D [10:25:01]CommunicateWithHost err = 0 [10:25:01]CheckOFDResponse [10:25:01]1017 (14) - 77093643461234 [10:25:01]1041 (16) - 0000000000874939 [10:25:01]1040 (4) - 119375 [10:25:01]1012 (4) - 31.07.2024 04:33 [10:25:01]1206 (1) - 0 [10:25:01]OFD Sender: Remove packet 119375 [10:25:01]ProducePacketName [10:25:01]name=ofd_packets/00119375 [10:25:01]NVStorageDeleteData [10:25:02]OFD Sender: Processing packet 119376 [packets to send 86, broken 85] [10:25:02]ProducePacketName [10:25:02]name=ofd_packets/00119376 [10:25:02]OFD Sender: To server: pG, [10:25:02]CommunicateWithHost lk.salyk.kg:30040 [10:25:02]ConnectInit lk.salyk.kg [10:25:02]Connected sock=9 [10:25: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 39 33 39 0F 01 00 00 97 87 07 01 26 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 6B 00 00 00 F4 03 04 00 C6 10 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 50 D2 01 00 35 04 06 00 E4 DA E2 3E C0 D5 42 35 03 D8 19 F9 CE D7 [10:25:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 5C CB 47 00 D4 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 50 D2 01 00 F4 03 04 00 87 BE A9 66 B6 04 01 00 00 4C 1F 97 84 31 08 62 F1 [10:25:02]CommunicateWithHost err = 0 [10:25:02]CheckOFDResponse [10:25:02]1017 (14) - 77093643461234 [10:25:02]1041 (16) - 0000000000874939 [10:25:02]1040 (4) - 119376 [10:25:02]1012 (4) - 31.07.2024 04:33 [10:25:02]1206 (1) - 0 [10:25:02]OFD Sender: Remove packet 119376 [10:25:02]ProducePacketName [10:25:02]name=ofd_packets/00119376 [10:25:02]NVStorageDeleteData [10:25:03]OFD Sender: No OFD packet to send [10:25:08]OFD Sender: No OFD packet to send [10:25:13]OFD Sender: No OFD packet to send [10:25:18]OFD Sender: No OFD packet to send [10:25:23]OFD Sender: No OFD packet to send [10:25:28]OFD Sender: No OFD packet to send [10:25:33]OFD Sender: No OFD packet to send [10:25:38]OFD Sender: No OFD packet to send [10:25:43]OFD Sender: No OFD packet to send [10:25:48]OFD Sender: No OFD packet to send [10:25:53]OFD Sender: No OFD packet to send [10:25:58]OFD Sender: No OFD packet to send [10:26:02]accept exits with 8 [10:26:02]New connection [10:26:02]New thread 3067338084 created [10:26:02]Thread 3067194724 joined [10:26:02]Waiting for new connection... [10:26:02] Sock 8.Parse request [10:26:02]Sock 8.Check first char [10:26:02]Sock 8.First char is OK [10:26:02]request: POST /json_proto HTTP/1.0 [10:26:02]Method: POST [10:26:02]URL: /json_proto [10:26:02]Method is POST - this is cgi request [10:26:02]url: /json_proto [10:26:02]query_string will be loaded in cgi processing [10:26:02]execute_cgi json_proto POST (null) [10:26:02]execute_cgi path=json_proto method=POST [10:26:02]POST find Content-Length [10:26:02]Host: 172.17.45.7:8080 [10:26:02]Content-Length: 677 [10:26:02]Content-Type: application/json [10:26:02] [10:26:02]POST finish read [10:26:02]Found Content-Length = 677 [10:26:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:02]execute_script... [10:26:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:02]POST & json_proto [10:26:02]process_json_proto [10:26:02]json parsed OK: [10:26:02]protocol is kg_v1.0 [10:26:02]action value=close_receipt [10:26:02]process_action close_receipt [10:26:02]cmd_close_receipt [10:26:02]MH_GetDate [10:26:02]Write to MH i2c: F0 00 00 F7 1C 02 [10:26:02]Write i2c OK [10:26:02]MH_I2C_Read... [10:26:02]Read from MH i2c: F0 [10:26:02]MH_I2C_Read... [10:26:02]Read from MH i2c: F0 09 00 [10:26:02]MH_I2C_Read... [10:26:02]Read from MH i2c: F0 09 00 F7 1C 00 3C 11 AA 66 90 0F 3E 66 AB [10:26:02]GetLastDocTimeStamp 1722421446 [10:26:02]current date 1722421564 [10:26:02]FM_GetShiftState [10:26:02]SAM_PROTO_GetShiftState [10:26:02]wFMCommunicate request_size=4 [10:26:02]MH_SAM_APDU [10:26:02]CAPDU: 80 13 01 00 [10:26:02]Write to MH i2c: E2 08 00 F8 1C 80 13 01 00 00 00 00 00 91 [10:26:02]Write i2c OK [10:26:02]MH_I2C_Read... [10:26:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:02]Read from MH i2c: E2 [10:26:02]MH_I2C_Read... [10:26:02]Read from MH i2c: E2 0E 00 [10:26:02]MH_I2C_Read... [10:26:02]Read from MH i2c: E2 0E 00 F8 1C 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 29 [10:26:02]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:26:02]wFMCommunicate OK [10:26:02]SAM_PROTO_GetShiftState done [10:26:02]FM_GetShiftState done [10:26:02]opened in 1722384637 [10:26:02]opened+sec_in_day 1722471037 [10:26:02]quantity*price = 40002 [10:26:02]sum+1 = 40003 [10:26:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 108 31.07.2024 10:26 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119377 ФПД: 221098383837912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T102604&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119377&fm=221098383837912&tin=02508201610067®Number=0000000000092660&sum=40000 [10:26:03]StoreToDocumentArchive [10:26:03]shift 436 fd 119377 [10:26:03]save to /storage/0436/doc_00119377 [10:26:03]save last doc name /storage/0436/doc_00119377 to /storage/kkm_last_doc_name [10:26:03]save OK [10:26:03]Clear old archive folders... [10:26:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:26:03]tlvbuf is 00B6BB40 [10:26:03]SAM_PROTO_ClearQueue [10:26:03]wFMCommunicate request_size=4 [10:26:03]MH_SAM_APDU [10:26:03]CAPDU: 80 09 00 00 [10:26:03]Write to MH i2c: E2 08 00 05 1D 80 09 00 00 00 00 00 00 94 [10:26:03]Write i2c OK [10:26:03]MH_I2C_Read... [10:26:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:03]Read from MH i2c: E2 [10:26:03]MH_I2C_Read... [10:26:03]Read from MH i2c: E2 03 00 [10:26:03]MH_I2C_Read... [10:26:03]Read from MH i2c: E2 03 00 05 1D 00 90 00 96 [10:26:03]RAPDU: 90 00 [10:26:03]wFMCommunicate OK [10:26:03]SAM_PROTO_ClearQueue done [10:26:03]KKMCreateOFDPacket [10:26:03]OFDProtocolAddRootSTLVToBuf [10:26:03]FM_MakeSignedData [10:26:03]FM_MakeSignedData [10:26:03]SAM_PROTO_SignData [10:26:03]wFMCommunicate request_size=4 [10:26:03]MH_SAM_APDU [10:26:03]CAPDU: 80 0D 01 02 [10:26:03]Write to MH i2c: E2 08 00 06 1D 80 0D 01 02 00 00 00 00 9C [10:26:03]Write i2c OK [10:26:03]MH_I2C_Read... [10:26:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:03]Read from MH i2c: E2 [10:26:03]MH_I2C_Read... [10:26:03]Read from MH i2c: E2 03 00 [10:26:03]MH_I2C_Read... [10:26:03]Read from MH i2c: E2 03 00 06 1D 00 90 00 97 [10:26:03]RAPDU: 90 00 [10:26:03]wFMCommunicate OK [10:26:03]wFMCommunicate request_size=255 [10:26:03]MH_SAM_APDU [10:26:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 6C 00 00 00 F4 03 04 00 3C 11 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 51 D2 01 00 35 04 06 00 C9 [10:26:03]Write to MH i2c: E2 02 01 07 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 6C 00 00 00 F4 03 04 00 3C 11 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 51 D2 01 00 35 04 06 00 C9 00 00 70 [10:26:03]Write i2c OK [10:26:03]MH_I2C_Read... [10:26:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:04]Read from MH i2c: E2 [10:26:04]MH_I2C_Read... [10:26:04]Read from MH i2c: E2 03 00 [10:26:04]MH_I2C_Read... [10:26:04]Read from MH i2c: E2 03 00 07 1D 00 90 00 98 [10:26:04]RAPDU: 90 00 [10:26:04]wFMCommunicate OK [10:26:04]wFMCommunicate request_size=10 [10:26:04]MH_SAM_APDU [10:26:04]CAPDU: 80 0D 02 02 05 16 7A A1 0A D8 [10:26:04]Write to MH i2c: E2 0D 00 08 1D 80 0D 02 02 05 00 16 7A A1 0A D8 00 00 BC [10:26:04]Write i2c OK [10:26:04]MH_I2C_Read... [10:26:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:04]Read from MH i2c: E2 [10:26:04]MH_I2C_Read... [10:26:04]Read from MH i2c: E2 03 00 [10:26:04]MH_I2C_Read... [10:26:04]Read from MH i2c: E2 03 00 08 1D 00 90 00 99 [10:26:04]RAPDU: 90 00 [10:26:04]wFMCommunicate OK [10:26:04]wFMCommunicate request_size=4 [10:26:04]MH_SAM_APDU [10:26:04]CAPDU: 80 0D 03 02 [10:26:04]Write to MH i2c: E2 08 00 09 1D 80 0D 03 02 00 00 00 00 A1 [10:26:04]Write i2c OK [10:26:04]MH_I2C_Read... [10:26:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:04]Read from MH i2c: E2 [10:26:04]MH_I2C_Read... [10:26:04]Read from MH i2c: E2 0B 00 [10:26:04]MH_I2C_Read... [10:26:04]Read from MH i2c: E2 0B 00 09 1D 00 AB 6A A1 A7 A6 69 DC 0F 90 00 F9 [10:26:04]RAPDU: AB 6A A1 A7 A6 69 DC 0F 90 00 [10:26:04]wFMCommunicate OK [10:26:04]SAM_PROTO_SignData done [10:26:04]FM_MakeSignedData done [10:26:04]CreateOFDProtocolMessage [10:26:04]wFMCommunicate request_size=4 [10:26:04]MH_SAM_APDU [10:26:04]CAPDU: 80 11 00 00 [10:26:04]Write to MH i2c: E2 08 00 0A 1D 80 11 00 00 00 00 00 00 A1 [10:26:04]Write i2c OK [10:26:04]MH_I2C_Read... [10:26:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:04]Read from MH i2c: E2 [10:26:04]MH_I2C_Read... [10:26:04]Read from MH i2c: E2 17 00 [10:26:04]MH_I2C_Read... [10:26:04]Read from MH i2c: E2 17 00 0A 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FC [10:26:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:26:04]wFMCommunicate OK [10:26:04]CreateOFDProtocolMessage done [10:26:04]OFDSenderStorePacket 119377 [10:26:04]StoreOFDPacket docnum=119377 [10:26:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C1 4D 07 01 6C 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 6C 00 00 00 F4 03 04 00 3C 11 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 51 D2 01 00 35 04 06 00 C9 16 7A A1 0A D8 AB 6A A1 A7 A6 69 DC 0F [10:26:04]CheckFolder [10:26:04]dirname=/storage/ofd_packets [10:26:04]CheckFolder done [10:26:04]ProducePacketName [10:26:04]name=ofd_packets/00119377 [10:26:04]NVStorageSaveData ofd_packets/00119377 [10:26:04]File name is /storage/ofd_packets/00119377 [10:26:04]Write 301 bytes [10:26:04]NVStorageSaveData done [10:26:04]OFDSenderStorePacket done [10:26:04]KKMCreateOFDPacket done [10:26:04]NVStorageSaveData kkm_last_timestamp [10:26:04]File name is /storage/kkm_last_timestamp [10:26:04]Write 4 bytes [10:26:04]NVStorageSaveData done [10:26:04]ExternCall_PrintAddStr [10:26:04]wPrintStart [10:26:04]Write to MH i2c: 01 00 00 0B 1D 28 [10:26:04]Write i2c OK [10:26:04]MH_I2C_Read... [10:26:04]Read from MH i2c: 01 [10:26:04]MH_I2C_Read... [10:26:04]Read from MH i2c: 01 07 00 [10:26:04]MH_I2C_Read... [10:26:04]Read from MH i2c: 01 07 00 0B 1D 00 00 00 00 00 FF 0F 3D [10:26:04]RasterBufferAndPrint [10:26:04]line Счет N : (1)950303 [10:26:04]line ИНН: 02508201610067 [10:26:04]line Контрольно-Кассовый Чек [10:26:04]line ПРОДАЖА [10:26:04]line ТРК (МРК, ГНК) : 31 [10:26:04]line Товар: 2710124130 [10:26:04]line Аи-92-К-4 [10:26:04]line 5.900 * 67.80 [10:26:04]line = 400.02 [10:26:04]line НДС 12% НСП 1% [10:26:04]line > о реализуемом товаре [10:26:04]line ОКРУГЛЕНИЕ: -0.02 [10:26:04]line ИТОГО: 400.00 [10:26:04]line Внесено: 400.00 [10:26:04]line СДАЧА: 0.00 [10:26:04]line НСП 1% : 3.54 [10:26:04]line НДС 12% : 42.48 [10:26:04]line Наличными: 400.00 [10:26:04]line Безнал.: 0.00 [10:26:04]line Место: АЗС № 134 "Партнер Нефть" [10:26:04]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:26:04]line СНО: Общий режим [10:26:04]line Чек 108 31.07.2024 10:26 [10:26:04]line Смена: 436 ФФД: 1.0 [10:26:04]line ЗНМ: 0300000044 [10:26:04]line РНМ: 0000000000092660 [10:26:04]line Версия ККМ: 001 [10:26:04]line ФМ: 0000000000874939 [10:26:04]line ФД: 119377 [10:26:04]line ФПД: 221098383837912 [10:26:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T102604&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119377&fm=221098383837912&tin=02508201610067®Number=0000000000092660&sum=40000 [10:26:04]OFD Sender: Processing packet 119377 [packets to send 86, broken 85] [10:26:04]ProducePacketName [10:26:04]name=ofd_packets/00119377 [10:26:04]OFD Sender: To server: pG, [10:26:04]CommunicateWithHost lk.salyk.kg:30040 [10:26:04]ConnectInit lk.salyk.kg [10:26:04]written 0, free lines is 4095 [10:26:04]Connected sock=10 [10:26: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 39 33 39 0F 01 00 00 C1 4D 07 01 6C 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 6C 00 00 00 F4 03 04 00 3C 11 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 51 D2 01 00 35 04 06 00 C9 16 7A A1 0A D8 AB 6A A1 A7 A6 69 DC 0F [10:26:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 FA 31 47 00 75 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 51 D2 01 00 F4 03 04 00 C5 BE A9 66 B6 04 01 00 00 21 BA 39 9F E1 F7 DF 88 [10:26:04]CommunicateWithHost err = 0 [10:26:04]CheckOFDResponse [10:26:04]1017 (14) - 77093643461234 [10:26:04]1041 (16) - 0000000000874939 [10:26:04]1040 (4) - 119377 [10:26:04]1012 (4) - 31.07.2024 04:34 [10:26:04]1206 (1) - 0 [10:26:04]OFD Sender: Remove packet 119377 [10:26:04]ProducePacketName [10:26:04]name=ofd_packets/00119377 [10:26:04]NVStorageDeleteData [10:26:05]Write to MH i2c: 01 00 00 35 1D 52 [10:26:05]Write i2c OK [10:26:05]MH_I2C_Read... [10:26:05]Read from MH i2c: 01 [10:26:05]MH_I2C_Read... [10:26:05]Read from MH i2c: 01 07 00 [10:26:05]MH_I2C_Read... [10:26:05]Read from MH i2c: 01 07 00 35 1D 00 00 00 00 00 D3 0C 38 [10:26:05]RasterBufferAndPrint [10:26:05]line [10:26:05]line [10:26:05]line [10:26:05]line [10:26:05]line [10:26:05]written 0, free lines is 3290 [10:26:05]MH_Cut [10:26:05]Write to MH i2c: D1 01 00 3C 1D 01 2B [10:26:05]Write i2c OK [10:26:05]MH_I2C_Read... [10:26:05]Read from MH i2c: D1 [10:26:05]MH_I2C_Read... [10:26:05]Read from MH i2c: D1 01 00 [10:26:05]MH_I2C_Read... [10:26:05]Read from MH i2c: D1 01 00 3C 1D 00 2A [10:26:05]Write to MH i2c: 01 00 00 3D 1D 5A [10:26:05]Write i2c OK [10:26:05]MH_I2C_Read... [10:26:05]OFD Sender: No OFD packet to send [10:26:05]*** Cut start [10:26:05]*** Partial cut [10:26:05]*** CUTSNS_PIN = 1 [10:26:05]*** CUTSNS_PIN = 0 [10:26:06]*** Brake cut motor [10:26:06]Read from MH i2c: 01 [10:26:06]MH_I2C_Read... [10:26:06]*** Stop cut motor [10:26:06]*** Cut end [10:26:06]Read from MH i2c: 01 07 00 [10:26:06]MH_I2C_Read... [10:26:06]Read from MH i2c: 01 07 00 3D 1D 00 00 00 00 00 FF 0F 6F [10:26:06]process_action close_receipt done [10:26:06]requested_data is exist [10:26:06]produce_requested_data [10:26:06]requested_item fm.sn is exist - process it [10:26:06]wFMCommunicate request_size=4 [10:26:06]MH_SAM_APDU [10:26:06]CAPDU: 80 11 00 00 [10:26:06]Write to MH i2c: E2 08 00 3E 1D 80 11 00 00 00 00 00 00 D5 [10:26:06]Write i2c OK [10:26:06]MH_I2C_Read... [10:26:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:06]Read from MH i2c: E2 [10:26:06]MH_I2C_Read... [10:26:06]Read from MH i2c: E2 17 00 [10:26:06]MH_I2C_Read... [10:26:06]Read from MH i2c: E2 17 00 3E 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 30 [10:26:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:26:06]wFMCommunicate OK [10:26:06]requested_item fd.num is exist - process it [10:26:06]SAM_PROTO_GetFieldsCounters [10:26:06]wFMCommunicate request_size=4 [10:26:06]MH_SAM_APDU [10:26:06]CAPDU: 80 13 00 00 [10:26:06]Write to MH i2c: E2 08 00 3F 1D 80 13 00 00 00 00 00 00 D8 [10:26:06]Write i2c OK [10:26:06]MH_I2C_Read... [10:26:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:06]Read from MH i2c: E2 [10:26:06]MH_I2C_Read... [10:26:06]Read from MH i2c: E2 62 00 [10:26:06]MH_I2C_Read... [10:26:06]Read from MH i2c: E2 62 00 3F 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 51 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [10:26: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 51 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:26:06]wFMCommunicate OK [10:26:06]SAM_PROTO_GetFieldsCounters done [10:26:06]requested_item shift.num is exist - process it [10:26:06]requested_item shift.opened is exist - process it [10:26:06]req_shift_opened [10:26:06]FM_GetShiftState [10:26:06]SAM_PROTO_GetShiftState [10:26:06]wFMCommunicate request_size=4 [10:26:06]MH_SAM_APDU [10:26:06]CAPDU: 80 13 01 00 [10:26:06]Write to MH i2c: E2 08 00 40 1D 80 13 01 00 00 00 00 00 DA [10:26:06]Write i2c OK [10:26:06]MH_I2C_Read... [10:26:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:06]Read from MH i2c: E2 [10:26:06]MH_I2C_Read... [10:26:06]Read from MH i2c: E2 0E 00 [10:26:06]MH_I2C_Read... [10:26:06]Read from MH i2c: E2 0E 00 40 1D 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 72 [10:26:06]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:26:06]wFMCommunicate OK [10:26:06]SAM_PROTO_GetShiftState done [10:26:06]FM_GetShiftState done [10:26:06]req_shift_opened done [10:26:06]requested_item shift.open_date is exist - process it [10:26:06]req_shift_open_date [10:26:06]req_shift_open_date done [10:26:06]produce_requested_data done [10:26:06]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119377,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [10:26:06]process_action_free close_receipt [10:26:06]json_value_free [10:26:06]json_value_free done [10:26:06]process_json_proto returns [10:26:06]Send response to host [10:26:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119377,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [10:26:06]free response buf [10:26:06]execute_script done [10:26:06]execute_script returns [10:26:06]free content buf [10:26:06]Sock 8.Close socket [10:26:06]Sock 8.Thread stoped [10:26:10]OFD Sender: No OFD packet to send [10:26:15]OFD Sender: No OFD packet to send [10:26:20]OFD Sender: No OFD packet to send [10:26:25]OFD Sender: No OFD packet to send [10:26:30]OFD Sender: No OFD packet to send [10:26:35]OFD Sender: No OFD packet to send [10:26:40]OFD Sender: No OFD packet to send [10:26:45]OFD Sender: No OFD packet to send [10:26:50]OFD Sender: No OFD packet to send [10:26:55]OFD Sender: No OFD packet to send [10:27:00]OFD Sender: No OFD packet to send [10:27:05]OFD Sender: No OFD packet to send [10:27:10]OFD Sender: No OFD packet to send [10:27:15]OFD Sender: No OFD packet to send [10:27:20]OFD Sender: No OFD packet to send [10:27:25]OFD Sender: No OFD packet to send [10:27:30]OFD Sender: No OFD packet to send [10:27:35]OFD Sender: No OFD packet to send [10:27:40]OFD Sender: No OFD packet to send [10:27:45]OFD Sender: No OFD packet to send [10:27:50]OFD Sender: No OFD packet to send [10:27:55]OFD Sender: No OFD packet to send [10:28:00]OFD Sender: No OFD packet to send [10:28:05]OFD Sender: No OFD packet to send [10:28:10]OFD Sender: No OFD packet to send [10:28:15]OFD Sender: No OFD packet to send [10:28:20]OFD Sender: No OFD packet to send [10:28:25]OFD Sender: No OFD packet to send [10:28:30]OFD Sender: No OFD packet to send [10:28:35]OFD Sender: No OFD packet to send [10:28:40]OFD Sender: No OFD packet to send [10:28:45]OFD Sender: No OFD packet to send [10:28:50]OFD Sender: No OFD packet to send [10:28:55]OFD Sender: No OFD packet to send [10:29:00]OFD Sender: No OFD packet to send [10:29:05]OFD Sender: No OFD packet to send [10:29:10]OFD Sender: No OFD packet to send [10:29:15]OFD Sender: No OFD packet to send [10:29:20]OFD Sender: No OFD packet to send [10:29:23]accept exits with 9 [10:29:23]New connection [10:29:23]New thread 3067194724 created [10:29:23]Thread 3067338084 joined [10:29:23]Waiting for new connection... [10:29:23] Sock 9.Parse request [10:29:23]Sock 9.Check first char [10:29:23]Sock 9.First char is OK [10:29:23]request: POST /json_proto HTTP/1.0 [10:29:23]Method: POST [10:29:23]URL: /json_proto [10:29:23]Method is POST - this is cgi request [10:29:23]url: /json_proto [10:29:23]query_string will be loaded in cgi processing [10:29:23]execute_cgi json_proto POST (null) [10:29:23]execute_cgi path=json_proto method=POST [10:29:23]POST find Content-Length [10:29:23]Host: 172.17.45.7:8080 [10:29:23]Content-Length: 677 [10:29:23]Content-Type: application/json [10:29:23] [10:29:23]POST finish read [10:29:23]Found Content-Length = 677 [10:29:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:23]execute_script... [10:29: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)950304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:23]POST & json_proto [10:29:23]process_json_proto [10:29:23]json parsed OK: [10:29:23]protocol is kg_v1.0 [10:29:23]action value=close_receipt [10:29:23]process_action close_receipt [10:29:23]cmd_close_receipt [10:29:23]MH_GetDate [10:29:23]Write to MH i2c: F0 00 00 41 1D 4D [10:29:23]Write i2c OK [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: F0 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: F0 09 00 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: F0 09 00 41 1D 00 05 12 AA 66 90 0F 3E 66 C0 [10:29:23]GetLastDocTimeStamp 1722421564 [10:29:23]current date 1722421765 [10:29:23]FM_GetShiftState [10:29:23]SAM_PROTO_GetShiftState [10:29:23]wFMCommunicate request_size=4 [10:29:23]MH_SAM_APDU [10:29:23]CAPDU: 80 13 01 00 [10:29:23]Write to MH i2c: E2 08 00 42 1D 80 13 01 00 00 00 00 00 DC [10:29:23]Write i2c OK [10:29:23]MH_I2C_Read... [10:29:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:23]Read from MH i2c: E2 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: E2 0E 00 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: E2 0E 00 42 1D 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 74 [10:29:23]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:29:23]wFMCommunicate OK [10:29:23]SAM_PROTO_GetShiftState done [10:29:23]FM_GetShiftState done [10:29:23]opened in 1722384637 [10:29:23]opened+sec_in_day 1722471037 [10:29:23]quantity*price = 30035 [10:29:23]sum+1 = 30036 [10:29:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 109 31.07.2024 10:29 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119378 ФПД: 181541583172275 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T102925&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119378&fm=181541583172275&tin=02508201610067®Number=0000000000092660&sum=30000 [10:29:24]StoreToDocumentArchive [10:29:24]shift 436 fd 119378 [10:29:24]save to /storage/0436/doc_00119378 [10:29:24]save last doc name /storage/0436/doc_00119378 to /storage/kkm_last_doc_name [10:29:24]save OK [10:29:24]Clear old archive folders... [10:29:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:29:24]tlvbuf is 00B5FBD0 [10:29:24]SAM_PROTO_ClearQueue [10:29:24]wFMCommunicate request_size=4 [10:29:24]MH_SAM_APDU [10:29:24]CAPDU: 80 09 00 00 [10:29:24]Write to MH i2c: E2 08 00 4F 1D 80 09 00 00 00 00 00 00 DE [10:29:24]Write i2c OK [10:29:24]MH_I2C_Read... [10:29:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:24]Read from MH i2c: E2 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: E2 03 00 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: E2 03 00 4F 1D 00 90 00 E0 [10:29:24]RAPDU: 90 00 [10:29:24]wFMCommunicate OK [10:29:24]SAM_PROTO_ClearQueue done [10:29:24]KKMCreateOFDPacket [10:29:24]OFDProtocolAddRootSTLVToBuf [10:29:24]FM_MakeSignedData [10:29:24]FM_MakeSignedData [10:29:24]SAM_PROTO_SignData [10:29:24]wFMCommunicate request_size=4 [10:29:24]MH_SAM_APDU [10:29:24]CAPDU: 80 0D 01 02 [10:29:24]Write to MH i2c: E2 08 00 50 1D 80 0D 01 02 00 00 00 00 E6 [10:29:24]Write i2c OK [10:29:24]MH_I2C_Read... [10:29:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:24]Read from MH i2c: E2 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: E2 03 00 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: E2 03 00 50 1D 00 90 00 E1 [10:29:24]RAPDU: 90 00 [10:29:24]wFMCommunicate OK [10:29:24]wFMCommunicate request_size=255 [10:29:24]MH_SAM_APDU [10:29: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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 05 12 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 52 D2 01 00 35 04 06 00 A5 [10:29:24]Write to MH i2c: E2 02 01 51 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 05 12 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 52 D2 01 00 35 04 06 00 A5 00 00 9C [10:29:24]Write i2c OK [10:29:24]MH_I2C_Read... [10:29:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:25]Read from MH i2c: E2 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 03 00 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 03 00 51 1D 00 90 00 E2 [10:29:25]RAPDU: 90 00 [10:29:25]wFMCommunicate OK [10:29:25]wFMCommunicate request_size=10 [10:29:25]MH_SAM_APDU [10:29:25]CAPDU: 80 0D 02 02 05 1C 71 93 B2 B3 [10:29:25]Write to MH i2c: E2 0D 00 52 1D 80 0D 02 02 05 00 1C 71 93 B2 B3 00 00 78 [10:29:25]Write i2c OK [10:29:25]MH_I2C_Read... [10:29:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:25]Read from MH i2c: E2 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 03 00 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 03 00 52 1D 00 90 00 E3 [10:29:25]RAPDU: 90 00 [10:29:25]wFMCommunicate OK [10:29:25]wFMCommunicate request_size=4 [10:29:25]MH_SAM_APDU [10:29:25]CAPDU: 80 0D 03 02 [10:29:25]Write to MH i2c: E2 08 00 53 1D 80 0D 03 02 00 00 00 00 EB [10:29:25]Write i2c OK [10:29:25]MH_I2C_Read... [10:29:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:25]Read from MH i2c: E2 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 0B 00 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 0B 00 53 1D 00 55 71 53 92 6B F2 AE CD 90 00 6F [10:29:25]RAPDU: 55 71 53 92 6B F2 AE CD 90 00 [10:29:25]wFMCommunicate OK [10:29:25]SAM_PROTO_SignData done [10:29:25]FM_MakeSignedData done [10:29:25]CreateOFDProtocolMessage [10:29:25]wFMCommunicate request_size=4 [10:29:25]MH_SAM_APDU [10:29:25]CAPDU: 80 11 00 00 [10:29:25]Write to MH i2c: E2 08 00 54 1D 80 11 00 00 00 00 00 00 EB [10:29:25]Write i2c OK [10:29:25]MH_I2C_Read... [10:29:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:25]Read from MH i2c: E2 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 17 00 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 17 00 54 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 46 [10:29:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:29:25]wFMCommunicate OK [10:29:25]CreateOFDProtocolMessage done [10:29:25]OFDSenderStorePacket 119378 [10:29:25]StoreOFDPacket docnum=119378 [10:29:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 AC 29 07 01 6B F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 05 12 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 52 D2 01 00 35 04 06 00 A5 1C 71 93 B2 B3 55 71 53 92 6B F2 AE CD [10:29:25]CheckFolder [10:29:25]dirname=/storage/ofd_packets [10:29:25]CheckFolder done [10:29:25]ProducePacketName [10:29:25]name=ofd_packets/00119378 [10:29:25]NVStorageSaveData ofd_packets/00119378 [10:29:25]File name is /storage/ofd_packets/00119378 [10:29:25]Write 301 bytes [10:29:25]NVStorageSaveData done [10:29:25]OFDSenderStorePacket done [10:29:25]KKMCreateOFDPacket done [10:29:25]NVStorageSaveData kkm_last_timestamp [10:29:25]File name is /storage/kkm_last_timestamp [10:29:25]Write 4 bytes [10:29:25]NVStorageSaveData done [10:29:25]ExternCall_PrintAddStr [10:29:25]wPrintStart [10:29:25]Write to MH i2c: 01 00 00 55 1D 72 [10:29:25]Write i2c OK [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: 01 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: 01 07 00 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: 01 07 00 55 1D 00 00 00 00 00 FF 0F 87 [10:29:25]RasterBufferAndPrint [10:29:25]line Счет N : (1)950304 [10:29:25]line ИНН: 02508201610067 [10:29:25]line Контрольно-Кассовый Чек [10:29:25]line ПРОДАЖА [10:29:25]line ТРК (МРК, ГНК) : 41 [10:29:25]line Товар: 2710124130 [10:29:25]line Аи-92-К-4 [10:29:25]line 4.430 * 67.80 [10:29:25]line = 300.35 [10:29:25]line НДС 12% НСП 1% [10:29:25]line > о реализуемом товаре [10:29:25]line ОКРУГЛЕНИЕ: -0.35 [10:29:25]line ИТОГО: 300.00 [10:29:25]line Внесено: 300.00 [10:29:25]line СДАЧА: 0.00 [10:29:25]line НСП 1% : 2.66 [10:29:25]line НДС 12% : 31.90 [10:29:25]line Наличными: 300.00 [10:29:25]line Безнал.: 0.00 [10:29:25]line Место: АЗС № 134 "Партнер Нефть" [10:29:25]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:29:25]line СНО: Общий режим [10:29:25]line Чек 109 31.07.2024 10:29 [10:29:25]line Смена: 436 ФФД: 1.0 [10:29:25]line ЗНМ: 0300000044 [10:29:25]line РНМ: 0000000000092660 [10:29:25]line Версия ККМ: 001 [10:29:25]line ФМ: 0000000000874939 [10:29:25]line ФД: 119378 [10:29:25]line ФПД: 181541583172275 [10:29:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T102925&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119378&fm=181541583172275&tin=02508201610067®Number=0000000000092660&sum=30000 [10:29:25]OFD Sender: Processing packet 119378 [packets to send 86, broken 85] [10:29:25]ProducePacketName [10:29:25]name=ofd_packets/00119378 [10:29:25]OFD Sender: To server: pG, [10:29:25]CommunicateWithHost lk.salyk.kg:30040 [10:29:25]ConnectInit lk.salyk.kg [10:29:25]written 0, free lines is 4095 [10:29:25]Connected sock=10 [10:29:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 AC 29 07 01 6B F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 05 12 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 52 D2 01 00 35 04 06 00 A5 1C 71 93 B2 B3 55 71 53 92 6B F2 AE CD [10:29:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 7C 69 47 00 91 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 39 33 39 10 04 04 00 52 D2 01 00 F4 03 04 00 8E BF A9 66 B6 04 01 00 00 D7 C6 7A 4E 2D CB 16 D2 [10:29:25]CommunicateWithHost err = 0 [10:29:25]CheckOFDResponse [10:29:25]1017 (14) - 77093643461234 [10:29:25]1041 (16) - 0000000000874939 [10:29:25]1040 (4) - 119378 [10:29:25]1012 (4) - 31.07.2024 04:37 [10:29:25]1206 (1) - 0 [10:29:25]OFD Sender: Remove packet 119378 [10:29:25]ProducePacketName [10:29:25]name=ofd_packets/00119378 [10:29:25]NVStorageDeleteData [10:29:26]Write to MH i2c: 01 00 00 7F 1D 9C [10:29:26]Write i2c OK [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: 01 [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: 01 07 00 [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: 01 07 00 7F 1D 00 00 00 00 00 EB 0C 9A [10:29:26]RasterBufferAndPrint [10:29:26]line [10:29:26]line [10:29:26]line [10:29:26]line [10:29:26]line [10:29:26]written 0, free lines is 3313 [10:29:26]MH_Cut [10:29:26]Write to MH i2c: D1 01 00 86 1D 01 75 [10:29:26]Write i2c OK [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: D1 [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: D1 01 00 [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: D1 01 00 86 1D 00 74 [10:29:26]Write to MH i2c: 01 00 00 87 1D A4 [10:29:26]Write i2c OK [10:29:26]MH_I2C_Read... [10:29:26]OFD Sender: No OFD packet to send [10:29:26]*** Cut start [10:29:26]*** Partial cut [10:29:26]*** CUTSNS_PIN = 1 [10:29:26]*** CUTSNS_PIN = 0 [10:29:27]*** Brake cut motor [10:29:27]Read from MH i2c: 01 [10:29:27]MH_I2C_Read... [10:29:27]*** Stop cut motor [10:29:27]*** Cut end [10:29:27]Read from MH i2c: 01 07 00 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: 01 07 00 87 1D 00 00 00 00 00 FF 0F B9 [10:29:27]process_action close_receipt done [10:29:27]requested_data is exist [10:29:27]produce_requested_data [10:29:27]requested_item fm.sn is exist - process it [10:29:27]wFMCommunicate request_size=4 [10:29:27]MH_SAM_APDU [10:29:27]CAPDU: 80 11 00 00 [10:29:27]Write to MH i2c: E2 08 00 88 1D 80 11 00 00 00 00 00 00 1F [10:29:27]Write i2c OK [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: E2 [10:29:27]MH_I2C_Read... [10:29:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:27]Read from MH i2c: E2 17 00 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: E2 17 00 88 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7A [10:29:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:29:27]wFMCommunicate OK [10:29:27]requested_item fd.num is exist - process it [10:29:27]SAM_PROTO_GetFieldsCounters [10:29:27]wFMCommunicate request_size=4 [10:29:27]MH_SAM_APDU [10:29:27]CAPDU: 80 13 00 00 [10:29:27]Write to MH i2c: E2 08 00 89 1D 80 13 00 00 00 00 00 00 22 [10:29:27]Write i2c OK [10:29:27]MH_I2C_Read... [10:29:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:27]Read from MH i2c: E2 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: E2 62 00 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: E2 62 00 89 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 52 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [10:29: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 52 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:29:27]wFMCommunicate OK [10:29:27]SAM_PROTO_GetFieldsCounters done [10:29:27]requested_item shift.num is exist - process it [10:29:27]requested_item shift.opened is exist - process it [10:29:27]req_shift_opened [10:29:27]FM_GetShiftState [10:29:27]SAM_PROTO_GetShiftState [10:29:27]wFMCommunicate request_size=4 [10:29:27]MH_SAM_APDU [10:29:27]CAPDU: 80 13 01 00 [10:29:27]Write to MH i2c: E2 08 00 8A 1D 80 13 01 00 00 00 00 00 24 [10:29:27]Write i2c OK [10:29:27]MH_I2C_Read... [10:29:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:27]Read from MH i2c: E2 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: E2 0E 00 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: E2 0E 00 8A 1D 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 BC [10:29:27]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:29:27]wFMCommunicate OK [10:29:27]SAM_PROTO_GetShiftState done [10:29:27]FM_GetShiftState done [10:29:27]req_shift_opened done [10:29:27]requested_item shift.open_date is exist - process it [10:29:27]req_shift_open_date [10:29:27]req_shift_open_date done [10:29:27]produce_requested_data done [10:29:27]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119378,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [10:29:27]process_action_free close_receipt [10:29:27]json_value_free [10:29:27]json_value_free done [10:29:27]process_json_proto returns [10:29:27]Send response to host [10:29:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119378,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [10:29:27]free response buf [10:29:27]execute_script done [10:29:27]execute_script returns [10:29:27]free content buf [10:29:27]Sock 9.Close socket [10:29:27]Sock 9.Thread stoped [10:29:31]OFD Sender: No OFD packet to send [10:29:36]OFD Sender: No OFD packet to send [10:29:41]OFD Sender: No OFD packet to send [10:29:46]OFD Sender: No OFD packet to send [10:29:51]OFD Sender: No OFD packet to send [10:29:56]OFD Sender: No OFD packet to send [10:30:01]OFD Sender: No OFD packet to send [10:30:06]OFD Sender: No OFD packet to send [10:30:11]OFD Sender: No OFD packet to send [10:30:16]OFD Sender: No OFD packet to send [10:30:21]OFD Sender: No OFD packet to send [10:30:26]OFD Sender: No OFD packet to send [10:30:31]OFD Sender: No OFD packet to send [10:30:36]OFD Sender: No OFD packet to send [10:30:41]OFD Sender: No OFD packet to send [10:30:46]OFD Sender: No OFD packet to send [10:30:51]OFD Sender: No OFD packet to send [10:30:56]OFD Sender: No OFD packet to send [10:31:01]OFD Sender: No OFD packet to send [10:31:06]OFD Sender: No OFD packet to send [10:31:11]OFD Sender: No OFD packet to send [10:31:16]OFD Sender: No OFD packet to send [10:31:21]OFD Sender: No OFD packet to send [10:31:26]OFD Sender: No OFD packet to send [10:31:31]OFD Sender: No OFD packet to send [10:31:36]OFD Sender: No OFD packet to send [10:31:41]OFD Sender: No OFD packet to send [10:31:46]OFD Sender: No OFD packet to send [10:31:51]OFD Sender: No OFD packet to send [10:31:56]OFD Sender: No OFD packet to send [10:32:01]OFD Sender: No OFD packet to send [10:32:06]OFD Sender: No OFD packet to send [10:32:11]OFD Sender: No OFD packet to send [10:32:16]OFD Sender: No OFD packet to send [10:32:21]OFD Sender: No OFD packet to send [10:32:26]OFD Sender: No OFD packet to send [10:32:31]OFD Sender: No OFD packet to send [10:32:36]OFD Sender: No OFD packet to send [10:32:41]OFD Sender: No OFD packet to send [10:32:46]OFD Sender: No OFD packet to send [10:32:51]OFD Sender: No OFD packet to send [10:32:56]OFD Sender: No OFD packet to send [10:33:01]OFD Sender: No OFD packet to send [10:33:06]OFD Sender: No OFD packet to send [10:33:11]OFD Sender: No OFD packet to send [10:33:16]OFD Sender: No OFD packet to send [10:33:21]OFD Sender: No OFD packet to send [10:33:26]OFD Sender: No OFD packet to send [10:33:31]OFD Sender: No OFD packet to send [10:33:36]OFD Sender: No OFD packet to send [10:33:41]OFD Sender: No OFD packet to send [10:33:46]OFD Sender: No OFD packet to send [10:33:51]OFD Sender: No OFD packet to send [10:33:56]OFD Sender: No OFD packet to send [10:34:01]OFD Sender: No OFD packet to send [10:34:06]OFD Sender: No OFD packet to send [10:34:11]OFD Sender: No OFD packet to send [10:34:16]OFD Sender: No OFD packet to send [10:34:21]OFD Sender: No OFD packet to send [10:34:26]OFD Sender: No OFD packet to send [10:34:31]OFD Sender: No OFD packet to send [10:34:36]OFD Sender: No OFD packet to send [10:34:41]OFD Sender: No OFD packet to send [10:34:46]OFD Sender: No OFD packet to send [10:34:51]OFD Sender: No OFD packet to send [10:34:56]OFD Sender: No OFD packet to send [10:35:01]OFD Sender: No OFD packet to send [10:35:06]OFD Sender: No OFD packet to send [10:35:11]OFD Sender: No OFD packet to send [10:35:16]OFD Sender: No OFD packet to send [10:35:21]OFD Sender: No OFD packet to send [10:35:26]OFD Sender: No OFD packet to send [10:35:31]OFD Sender: No OFD packet to send [10:35:36]OFD Sender: No OFD packet to send [10:35:41]OFD Sender: No OFD packet to send [10:35:46]OFD Sender: No OFD packet to send [10:35:51]OFD Sender: No OFD packet to send [10:35:56]OFD Sender: No OFD packet to send [10:36:01]OFD Sender: No OFD packet to send [10:36:06]OFD Sender: No OFD packet to send [10:36:11]OFD Sender: No OFD packet to send [10:36:16]OFD Sender: No OFD packet to send [10:36:21]OFD Sender: No OFD packet to send [10:36:26]OFD Sender: No OFD packet to send [10:36:31]OFD Sender: No OFD packet to send [10:36:36]OFD Sender: No OFD packet to send [10:36:41]OFD Sender: No OFD packet to send [10:36:46]OFD Sender: No OFD packet to send [10:36:51]OFD Sender: No OFD packet to send [10:36:56]OFD Sender: No OFD packet to send [10:37:01]OFD Sender: No OFD packet to send [10:37:06]OFD Sender: No OFD packet to send [10:37:11]OFD Sender: No OFD packet to send [10:37:16]OFD Sender: No OFD packet to send [10:37:21]OFD Sender: No OFD packet to send [10:37:26]OFD Sender: No OFD packet to send [10:37:31]OFD Sender: No OFD packet to send [10:37:36]OFD Sender: No OFD packet to send [10:37:41]OFD Sender: No OFD packet to send [10:37:46]OFD Sender: No OFD packet to send [10:37:51]OFD Sender: No OFD packet to send [10:37:56]OFD Sender: No OFD packet to send [10:38:01]OFD Sender: No OFD packet to send [10:38:06]OFD Sender: No OFD packet to send [10:38:11]OFD Sender: No OFD packet to send [10:38:16]OFD Sender: No OFD packet to send [10:38:21]OFD Sender: No OFD packet to send [10:38:26]OFD Sender: No OFD packet to send [10:38:31]OFD Sender: No OFD packet to send [10:38:36]OFD Sender: No OFD packet to send [10:38:41]accept exits with 8 [10:38:41]New connection [10:38:41]New thread 3067338084 created [10:38:41]Thread 3067194724 joined [10:38:41]Waiting for new connection... [10:38:41] Sock 8.Parse request [10:38:41]Sock 8.Check first char [10:38:41]Sock 8.First char is OK [10:38:41]request: POST /json_proto HTTP/1.0 [10:38:41]Method: POST [10:38:41]URL: /json_proto [10:38:41]Method is POST - this is cgi request [10:38:41]url: /json_proto [10:38:41]query_string will be loaded in cgi processing [10:38:41]execute_cgi json_proto POST (null) [10:38:41]execute_cgi path=json_proto method=POST [10:38:41]POST find Content-Length [10:38:41]Host: 172.17.45.7:8080 [10:38:41]Content-Length: 674 [10:38:41]Content-Type: application/json [10:38:41] [10:38:41]POST finish read [10:38:41]Found Content-Length = 674 [10:38:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\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" ] } } [10:38:41]execute_script... [10:38: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)950306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\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" ] } } [10:38:41]POST & json_proto [10:38:41]process_json_proto [10:38:41]json parsed OK: [10:38:41]protocol is kg_v1.0 [10:38:41]action value=close_receipt [10:38:41]process_action close_receipt [10:38:41]cmd_close_receipt [10:38:41]MH_GetDate [10:38:41]Write to MH i2c: F0 00 00 8B 1D 97 [10:38:41]Write i2c OK [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: F0 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: F0 09 00 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: F0 09 00 8B 1D 00 33 14 AA 66 90 0F 3E 66 3A [10:38:41]GetLastDocTimeStamp 1722421765 [10:38:41]current date 1722422323 [10:38:41]FM_GetShiftState [10:38:41]SAM_PROTO_GetShiftState [10:38:41]wFMCommunicate request_size=4 [10:38:41]MH_SAM_APDU [10:38:41]CAPDU: 80 13 01 00 [10:38:41]Write to MH i2c: E2 08 00 8C 1D 80 13 01 00 00 00 00 00 26 [10:38:41]Write i2c OK [10:38:41]MH_I2C_Read... [10:38:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:41]Read from MH i2c: E2 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: E2 0E 00 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: E2 0E 00 8C 1D 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 BE [10:38:41]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:38:41]wFMCommunicate OK [10:38:41]SAM_PROTO_GetShiftState done [10:38:41]FM_GetShiftState done [10:38:41]opened in 1722384637 [10:38:41]opened+sec_in_day 1722471037 [10:38:41]quantity*price = 30022 [10:38:41]sum+1 = 30024 [10:38:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 110 31.07.2024 10:38 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119379 ФПД: 162590934909122 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T103843&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119379&fm=162590934909122&tin=02508201610067®Number=0000000000092660&sum=30000 [10:38:42]StoreToDocumentArchive [10:38:42]shift 436 fd 119379 [10:38:42]save to /storage/0436/doc_00119379 [10:38:42]save last doc name /storage/0436/doc_00119379 to /storage/kkm_last_doc_name [10:38:42]save OK [10:38:42]Clear old archive folders... [10:38:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:38:42]tlvbuf is B6FB31A0 [10:38:42]SAM_PROTO_ClearQueue [10:38:42]wFMCommunicate request_size=4 [10:38:42]MH_SAM_APDU [10:38:42]CAPDU: 80 09 00 00 [10:38:42]Write to MH i2c: E2 08 00 99 1D 80 09 00 00 00 00 00 00 28 [10:38:42]Write i2c OK [10:38:42]MH_I2C_Read... [10:38:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:42]Read from MH i2c: E2 [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: E2 03 00 [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: E2 03 00 99 1D 00 90 00 2A [10:38:42]RAPDU: 90 00 [10:38:42]wFMCommunicate OK [10:38:42]SAM_PROTO_ClearQueue done [10:38:42]KKMCreateOFDPacket [10:38:42]OFDProtocolAddRootSTLVToBuf [10:38:42]FM_MakeSignedData [10:38:42]FM_MakeSignedData [10:38:42]SAM_PROTO_SignData [10:38:42]wFMCommunicate request_size=4 [10:38:42]MH_SAM_APDU [10:38:42]CAPDU: 80 0D 01 02 [10:38:42]Write to MH i2c: E2 08 00 9A 1D 80 0D 01 02 00 00 00 00 30 [10:38:42]Write i2c OK [10:38:42]MH_I2C_Read... [10:38:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:42]Read from MH i2c: E2 [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: E2 03 00 [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: E2 03 00 9A 1D 00 90 00 2B [10:38:42]RAPDU: 90 00 [10:38:42]wFMCommunicate OK [10:38:42]wFMCommunicate request_size=255 [10:38:42]MH_SAM_APDU [10:38:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 6E 00 00 00 F4 03 04 00 33 14 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 53 D2 01 00 35 04 06 00 93 E0 26 EB [10:38:42]Write to MH i2c: E2 02 01 9B 1D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 6E 00 00 00 F4 03 04 00 33 14 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 53 D2 01 00 35 04 06 00 93 E0 26 EB 00 00 A1 [10:38:42]Write i2c OK [10:38:42]MH_I2C_Read... [10:38:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:42]Read from MH i2c: E2 [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: E2 03 00 [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: E2 03 00 9B 1D 00 90 00 2C [10:38:42]RAPDU: 90 00 [10:38:42]wFMCommunicate OK [10:38:42]wFMCommunicate request_size=7 [10:38:42]MH_SAM_APDU [10:38:42]CAPDU: 80 0D 02 02 02 40 C2 [10:38:42]Write to MH i2c: E2 0A 00 9C 1D 80 0D 02 02 02 00 40 C2 00 00 39 [10:38:42]Write i2c OK [10:38:42]MH_I2C_Read... [10:38:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:42]Read from MH i2c: E2 [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: E2 03 00 [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: E2 03 00 9C 1D 00 90 00 2D [10:38:42]RAPDU: 90 00 [10:38:42]wFMCommunicate OK [10:38:42]wFMCommunicate request_size=4 [10:38:42]MH_SAM_APDU [10:38:42]CAPDU: 80 0D 03 02 [10:38:42]Write to MH i2c: E2 08 00 9D 1D 80 0D 03 02 00 00 00 00 35 [10:38:42]Write i2c OK [10:38:42]MH_I2C_Read... [10:38:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:42]Read from MH i2c: E2 [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: E2 0B 00 [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: E2 0B 00 9D 1D 00 A7 ED E2 A7 FD 5C 48 93 90 00 87 [10:38:42]RAPDU: A7 ED E2 A7 FD 5C 48 93 90 00 [10:38:42]wFMCommunicate OK [10:38:42]SAM_PROTO_SignData done [10:38:42]FM_MakeSignedData done [10:38:42]CreateOFDProtocolMessage [10:38:42]wFMCommunicate request_size=4 [10:38:42]MH_SAM_APDU [10:38:42]CAPDU: 80 11 00 00 [10:38:42]Write to MH i2c: E2 08 00 9E 1D 80 11 00 00 00 00 00 00 35 [10:38:42]Write i2c OK [10:38:42]MH_I2C_Read... [10:38:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:42]Read from MH i2c: E2 [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: E2 17 00 [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: E2 17 00 9E 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 90 [10:38:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:38:42]wFMCommunicate OK [10:38:42]CreateOFDProtocolMessage done [10:38:42]OFDSenderStorePacket 119379 [10:38:42]StoreOFDPacket docnum=119379 [10:38:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 A1 42 04 01 F8 5F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 6E 00 00 00 F4 03 04 00 33 14 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 53 D2 01 00 35 04 06 00 93 E0 26 EB 40 C2 A7 ED E2 A7 FD 5C 48 93 [10:38:42]CheckFolder [10:38:42]dirname=/storage/ofd_packets [10:38:42]CheckFolder done [10:38:42]ProducePacketName [10:38:42]name=ofd_packets/00119379 [10:38:42]NVStorageSaveData ofd_packets/00119379 [10:38:42]File name is /storage/ofd_packets/00119379 [10:38:42]Write 298 bytes [10:38:42]NVStorageSaveData done [10:38:42]OFDSenderStorePacket done [10:38:42]KKMCreateOFDPacket done [10:38:42]NVStorageSaveData kkm_last_timestamp [10:38:42]File name is /storage/kkm_last_timestamp [10:38:42]Write 4 bytes [10:38:42]NVStorageSaveData done [10:38:42]ExternCall_PrintAddStr [10:38:42]wPrintStart [10:38:42]Write to MH i2c: 01 00 00 9F 1D BC [10:38:42]Write i2c OK [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: 01 [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: 01 07 00 [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: 01 07 00 9F 1D 00 00 00 00 00 FF 0F D1 [10:38:42]RasterBufferAndPrint [10:38:42]line Счет N : (1)950306 [10:38:42]line ИНН: 02508201610067 [10:38:42]line Контрольно-Кассовый Чек [10:38:42]line ПРОДАЖА [10:38:42]line ТРК (МРК, ГНК) : 54 [10:38:42]line Товар: 2710194800 [10:38:42]line ДТ-К-5 [10:38:42]line 3.940 * 76.20 [10:38:42]line = 300.23 [10:38:42]line НДС 12% НСП 1% [10:38:42]line > о реализуемом товаре [10:38:42]line ОКРУГЛЕНИЕ: -0.23 [10:38:42]line ИТОГО: 300.00 [10:38:42]line Внесено: 300.00 [10:38:42]line СДАЧА: 0.00 [10:38:42]line НСП 1% : 2.66 [10:38:42]line НДС 12% : 31.88 [10:38:42]line Наличными: 300.00 [10:38:42]line Безнал.: 0.00 [10:38:42]line Место: АЗС № 134 "Партнер Нефть" [10:38:42]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:38:42]line СНО: Общий режим [10:38:42]line Чек 110 31.07.2024 10:38 [10:38:42]line Смена: 436 ФФД: 1.0 [10:38:42]line ЗНМ: 0300000044 [10:38:42]line РНМ: 0000000000092660 [10:38:42]line Версия ККМ: 001 [10:38:42]line ФМ: 0000000000874939 [10:38:42]line ФД: 119379 [10:38:42]line ФПД: 162590934909122 [10:38:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T103843&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119379&fm=162590934909122&tin=02508201610067®Number=0000000000092660&sum=30000 [10:38:43]OFD Sender: Processing packet 119379 [packets to send 86, broken 85] [10:38:43]ProducePacketName [10:38:43]name=ofd_packets/00119379 [10:38:43]OFD Sender: To server: pG, [10:38:43]CommunicateWithHost lk.salyk.kg:30040 [10:38:43]ConnectInit lk.salyk.kg [10:38:43]written 0, free lines is 4095 [10:38:43]Connected sock=10 [10:38: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 39 33 39 0C 01 00 00 A1 42 04 01 F8 5F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 6E 00 00 00 F4 03 04 00 33 14 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 53 D2 01 00 35 04 06 00 93 E0 26 EB 40 C2 A7 ED E2 A7 FD 5C 48 93 [10:38:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 C6 AB 47 00 4D 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 53 D2 01 00 F4 03 04 00 BC C1 A9 66 B6 04 01 00 00 54 AB 96 28 10 5D 0B CB [10:38:43]CommunicateWithHost err = 0 [10:38:43]CheckOFDResponse [10:38:43]1017 (14) - 77093643461234 [10:38:43]1041 (16) - 0000000000874939 [10:38:43]1040 (4) - 119379 [10:38:43]1012 (4) - 31.07.2024 04:46 [10:38:43]1206 (1) - 0 [10:38:43]OFD Sender: Remove packet 119379 [10:38:43]ProducePacketName [10:38:43]name=ofd_packets/00119379 [10:38:43]NVStorageDeleteData [10:38:43]Write to MH i2c: 01 00 00 C9 1D E6 [10:38:43]Write i2c OK [10:38:43]MH_I2C_Read... [10:38:43]Read from MH i2c: 01 [10:38:43]MH_I2C_Read... [10:38:43]Read from MH i2c: 01 07 00 [10:38:43]MH_I2C_Read... [10:38:43]Read from MH i2c: 01 07 00 C9 1D 00 00 00 00 00 DC 0C D5 [10:38:43]RasterBufferAndPrint [10:38:43]line [10:38:43]line [10:38:43]line [10:38:43]line [10:38:43]line [10:38:43]written 0, free lines is 3298 [10:38:43]MH_Cut [10:38:43]Write to MH i2c: D1 01 00 D0 1D 01 BF [10:38:43]Write i2c OK [10:38:43]MH_I2C_Read... [10:38:43]Read from MH i2c: D1 [10:38:43]MH_I2C_Read... [10:38:43]Read from MH i2c: D1 01 00 [10:38:43]MH_I2C_Read... [10:38:43]Read from MH i2c: D1 01 00 D0 1D 00 BE [10:38:43]Write to MH i2c: 01 00 00 D1 1D EE [10:38:43]Write i2c OK [10:38:43]MH_I2C_Read... [10:38:43]OFD Sender: No OFD packet to send [10:38:44]*** Cut start [10:38:44]*** Partial cut [10:38:44]*** CUTSNS_PIN = 1 [10:38:44]*** CUTSNS_PIN = 0 [10:38:44]*** Brake cut motor [10:38:44]Read from MH i2c: 01 [10:38:44]MH_I2C_Read... [10:38:44]*** Stop cut motor [10:38:44]*** Cut end [10:38:44]Read from MH i2c: 01 07 00 [10:38:44]MH_I2C_Read... [10:38:44]Read from MH i2c: 01 07 00 D1 1D 00 00 00 00 00 FF 0F 03 [10:38:44]process_action close_receipt done [10:38:44]requested_data is exist [10:38:44]produce_requested_data [10:38:44]requested_item fm.sn is exist - process it [10:38:44]wFMCommunicate request_size=4 [10:38:44]MH_SAM_APDU [10:38:44]CAPDU: 80 11 00 00 [10:38:44]Write to MH i2c: E2 08 00 D2 1D 80 11 00 00 00 00 00 00 69 [10:38:44]Write i2c OK [10:38:44]MH_I2C_Read... [10:38:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:44]Read from MH i2c: E2 [10:38:44]MH_I2C_Read... [10:38:44]Read from MH i2c: E2 17 00 [10:38:44]MH_I2C_Read... [10:38:44]Read from MH i2c: E2 17 00 D2 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C4 [10:38:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:38:44]wFMCommunicate OK [10:38:44]requested_item fd.num is exist - process it [10:38:44]SAM_PROTO_GetFieldsCounters [10:38:44]wFMCommunicate request_size=4 [10:38:44]MH_SAM_APDU [10:38:44]CAPDU: 80 13 00 00 [10:38:44]Write to MH i2c: E2 08 00 D3 1D 80 13 00 00 00 00 00 00 6C [10:38:44]Write i2c OK [10:38:44]MH_I2C_Read... [10:38:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:45]Read from MH i2c: E2 [10:38:45]MH_I2C_Read... [10:38:45]Read from MH i2c: E2 62 00 [10:38:45]MH_I2C_Read... [10:38:45]Read from MH i2c: E2 62 00 D3 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 53 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [10:38: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 53 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:38:45]wFMCommunicate OK [10:38:45]SAM_PROTO_GetFieldsCounters done [10:38:45]requested_item shift.num is exist - process it [10:38:45]requested_item shift.opened is exist - process it [10:38:45]req_shift_opened [10:38:45]FM_GetShiftState [10:38:45]SAM_PROTO_GetShiftState [10:38:45]wFMCommunicate request_size=4 [10:38:45]MH_SAM_APDU [10:38:45]CAPDU: 80 13 01 00 [10:38:45]Write to MH i2c: E2 08 00 D4 1D 80 13 01 00 00 00 00 00 6E [10:38:45]Write i2c OK [10:38:45]MH_I2C_Read... [10:38:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:45]Read from MH i2c: E2 [10:38:45]MH_I2C_Read... [10:38:45]Read from MH i2c: E2 0E 00 [10:38:45]MH_I2C_Read... [10:38:45]Read from MH i2c: E2 0E 00 D4 1D 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 06 [10:38:45]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:38:45]wFMCommunicate OK [10:38:45]SAM_PROTO_GetShiftState done [10:38:45]FM_GetShiftState done [10:38:45]req_shift_opened done [10:38:45]requested_item shift.open_date is exist - process it [10:38:45]req_shift_open_date [10:38:45]req_shift_open_date done [10:38:45]produce_requested_data done [10:38:45]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119379,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [10:38:45]process_action_free close_receipt [10:38:45]json_value_free [10:38:45]json_value_free done [10:38:45]process_json_proto returns [10:38:45]Send response to host [10:38:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119379,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [10:38:45]free response buf [10:38:45]execute_script done [10:38:45]execute_script returns [10:38:45]free content buf [10:38:45]Sock 8.Close socket [10:38:45]Sock 8.Thread stoped [10:38:48]OFD Sender: No OFD packet to send [10:38:53]OFD Sender: No OFD packet to send [10:38:58]OFD Sender: No OFD packet to send [10:39:03]accept exits with 9 [10:39:03]New connection [10:39:03]New thread 3067194724 created [10:39:03]Thread 3067338084 joined [10:39:03]Waiting for new connection... [10:39:03] Sock 9.Parse request [10:39:03]Sock 9.Check first char [10:39:03]Sock 9.First char is OK [10:39:03]request: POST /json_proto HTTP/1.0 [10:39:03]Method: POST [10:39:03]URL: /json_proto [10:39:03]Method is POST - this is cgi request [10:39:03]url: /json_proto [10:39:03]query_string will be loaded in cgi processing [10:39:03]execute_cgi json_proto POST (null) [10:39:03]execute_cgi path=json_proto method=POST [10:39:03]POST find Content-Length [10:39:03]Host: 172.17.45.7:8080 [10:39:03]Content-Length: 819 [10:39:03]Content-Type: application/json [10:39:03] [10:39:03]POST finish read [10:39:03]Found Content-Length = 819 [10:39:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1500.00, "payments": [ { "type": 1, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:03]execute_script... [10:39: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)950305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1500.00, "payments": [ { "type": 1, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:03]POST & json_proto [10:39:03]process_json_proto [10:39:03]json parsed OK: [10:39:03]protocol is kg_v1.0 [10:39:03]action value=close_receipt [10:39:03]process_action close_receipt [10:39:03]cmd_close_receipt [10:39:03]MH_GetDate [10:39:03]Write to MH i2c: F0 00 00 D5 1D E1 [10:39:03]Write i2c OK [10:39:03]MH_I2C_Read... [10:39:03]Read from MH i2c: F0 [10:39:03]MH_I2C_Read... [10:39:03]Read from MH i2c: F0 09 00 [10:39:03]MH_I2C_Read... [10:39:03]Read from MH i2c: F0 09 00 D5 1D 00 49 14 AA 66 90 0F 3E 66 9A [10:39:03]GetLastDocTimeStamp 1722422323 [10:39:03]current date 1722422345 [10:39:03]FM_GetShiftState [10:39:03]SAM_PROTO_GetShiftState [10:39:03]wFMCommunicate request_size=4 [10:39:03]MH_SAM_APDU [10:39:03]CAPDU: 80 13 01 00 [10:39:03]Write to MH i2c: E2 08 00 D6 1D 80 13 01 00 00 00 00 00 70 [10:39:03]Write i2c OK [10:39:03]MH_I2C_Read... [10:39:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:03]Read from MH i2c: E2 [10:39:03]MH_I2C_Read... [10:39:03]Read from MH i2c: E2 0E 00 [10:39:03]MH_I2C_Read... [10:39:03]Read from MH i2c: E2 0E 00 D6 1D 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 08 [10:39:03]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:39:03]wFMCommunicate OK [10:39:03]SAM_PROTO_GetShiftState done [10:39:03]FM_GetShiftState done [10:39:03]opened in 1722384637 [10:39:03]opened+sec_in_day 1722471037 [10:39:03]quantity*price = 150037 [10:39:03]sum+1 = 150039 [10:39:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 111 31.07.2024 10:39 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119380 ФПД: 181271252274641 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T103905&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119380&fm=181271252274641&tin=02508201610067®Number=0000000000092660&sum=150000 [10:39:04]StoreToDocumentArchive [10:39:04]shift 436 fd 119380 [10:39:04]save to /storage/0436/doc_00119380 [10:39:04]save last doc name /storage/0436/doc_00119380 to /storage/kkm_last_doc_name [10:39:04]save OK [10:39:04]Clear old archive folders... [10:39:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:39:04]tlvbuf is 00AE4480 [10:39:04]SAM_PROTO_ClearQueue [10:39:04]wFMCommunicate request_size=4 [10:39:04]MH_SAM_APDU [10:39:04]CAPDU: 80 09 00 00 [10:39:04]Write to MH i2c: E2 08 00 E3 1D 80 09 00 00 00 00 00 00 72 [10:39:04]Write i2c OK [10:39:04]MH_I2C_Read... [10:39:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:04]Read from MH i2c: E2 [10:39:04]MH_I2C_Read... [10:39:04]Read from MH i2c: E2 03 00 [10:39:04]MH_I2C_Read... [10:39:04]Read from MH i2c: E2 03 00 E3 1D 00 90 00 74 [10:39:04]RAPDU: 90 00 [10:39:04]wFMCommunicate OK [10:39:04]SAM_PROTO_ClearQueue done [10:39:04]KKMCreateOFDPacket [10:39:04]OFDProtocolAddRootSTLVToBuf [10:39:04]FM_MakeSignedData [10:39:04]FM_MakeSignedData [10:39:04]SAM_PROTO_SignData [10:39:04]wFMCommunicate request_size=4 [10:39:04]MH_SAM_APDU [10:39:04]CAPDU: 80 0D 01 02 [10:39:04]Write to MH i2c: E2 08 00 E4 1D 80 0D 01 02 00 00 00 00 7A [10:39:04]Write i2c OK [10:39:04]MH_I2C_Read... [10:39:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:04]Read from MH i2c: E2 [10:39:04]MH_I2C_Read... [10:39:04]Read from MH i2c: E2 03 00 [10:39:04]MH_I2C_Read... [10:39:04]Read from MH i2c: E2 03 00 E4 1D 00 90 00 75 [10:39:04]RAPDU: 90 00 [10:39:04]wFMCommunicate OK [10:39:04]wFMCommunicate request_size=255 [10:39:04]MH_SAM_APDU [10:39:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 49 14 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 54 D2 01 00 35 04 06 00 A4 DD 80 99 [10:39:04]Write to MH i2c: E2 02 01 E5 1D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 49 14 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 54 D2 01 00 35 04 06 00 A4 DD 80 99 00 00 D3 [10:39:04]Write i2c OK [10:39:04]MH_I2C_Read... [10:39:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:05]Read from MH i2c: E2 [10:39:05]MH_I2C_Read... [10:39:05]Read from MH i2c: E2 03 00 [10:39:05]MH_I2C_Read... [10:39:05]Read from MH i2c: E2 03 00 E5 1D 00 90 00 76 [10:39:05]RAPDU: 90 00 [10:39:05]wFMCommunicate OK [10:39:05]wFMCommunicate request_size=7 [10:39:05]MH_SAM_APDU [10:39:05]CAPDU: 80 0D 02 02 02 8D D1 [10:39:05]Write to MH i2c: E2 0A 00 E6 1D 80 0D 02 02 02 00 8D D1 00 00 DF [10:39:05]Write i2c OK [10:39:05]MH_I2C_Read... [10:39:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:05]Read from MH i2c: E2 [10:39:05]MH_I2C_Read... [10:39:05]Read from MH i2c: E2 03 00 [10:39:05]MH_I2C_Read... [10:39:05]Read from MH i2c: E2 03 00 E6 1D 00 90 00 77 [10:39:05]RAPDU: 90 00 [10:39:05]wFMCommunicate OK [10:39:05]wFMCommunicate request_size=4 [10:39:05]MH_SAM_APDU [10:39:05]CAPDU: 80 0D 03 02 [10:39:05]Write to MH i2c: E2 08 00 E7 1D 80 0D 03 02 00 00 00 00 7F [10:39:05]Write i2c OK [10:39:05]MH_I2C_Read... [10:39:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:39:05]Read from MH i2c: E2 [10:39:05]MH_I2C_Read... [10:39:05]Read from MH i2c: E2 0B 00 [10:39:05]MH_I2C_Read... [10:39:05]Read from MH i2c: E2 0B 00 E7 1D 00 6A A4 3D E3 AD 2B 69 E8 90 00 D7 [10:39:05]RAPDU: 6A A4 3D E3 AD 2B 69 E8 90 00 [10:39:05]wFMCommunicate OK [10:39:05]SAM_PROTO_SignData done [10:39:05]FM_MakeSignedData done [10:39:05]CreateOFDProtocolMessage [10:39:05]wFMCommunicate request_size=4 [10:39:05]MH_SAM_APDU [10:39:05]CAPDU: 80 11 00 00 [10:39:05]Write to MH i2c: E2 08 00 E8 1D 80 11 00 00 00 00 00 00 7F [10:39:05]Write i2c OK [10:39:05]MH_I2C_Read... [10:39:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:05]Read from MH i2c: E2 [10:39:05]MH_I2C_Read... [10:39:05]Read from MH i2c: E2 17 00 [10:39:05]MH_I2C_Read... [10:39:05]Read from MH i2c: E2 17 00 E8 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DA [10:39:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:39:05]wFMCommunicate OK [10:39:05]CreateOFDProtocolMessage done [10:39:05]OFDSenderStorePacket 119380 [10:39:05]StoreOFDPacket docnum=119380 [10:39:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 9B F5 04 01 7F 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 49 14 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 54 D2 01 00 35 04 06 00 A4 DD 80 99 8D D1 6A A4 3D E3 AD 2B 69 E8 [10:39:05]CheckFolder [10:39:05]dirname=/storage/ofd_packets [10:39:05]CheckFolder done [10:39:05]ProducePacketName [10:39:05]name=ofd_packets/00119380 [10:39:05]NVStorageSaveData ofd_packets/00119380 [10:39:05]File name is /storage/ofd_packets/00119380 [10:39:05]Write 298 bytes [10:39:05]NVStorageSaveData done [10:39:05]OFDSenderStorePacket done [10:39:05]KKMCreateOFDPacket done [10:39:05]NVStorageSaveData kkm_last_timestamp [10:39:05]File name is /storage/kkm_last_timestamp [10:39:05]Write 4 bytes [10:39:05]NVStorageSaveData done [10:39:05]ExternCall_PrintAddStr [10:39:05]wPrintStart [10:39:05]Write to MH i2c: 01 00 00 E9 1D 06 [10:39:05]Write i2c OK [10:39:05]MH_I2C_Read... [10:39:05]Read from MH i2c: 01 [10:39:05]MH_I2C_Read... [10:39:05]Read from MH i2c: 01 07 00 [10:39:05]MH_I2C_Read... [10:39:05]Read from MH i2c: 01 07 00 E9 1D 00 00 00 00 00 FF 0F 1B [10:39:05]RasterBufferAndPrint [10:39:05]line Счет N : (1)950305 [10:39:05]line ИНН: 02508201610067 [10:39:05]line Контрольно-Кассовый Чек [10:39:05]line ПРОДАЖА [10:39:05]line ТРК (МРК, ГНК) : 34 [10:39:05]line Товар: 2710194800 [10:39:05]line ДТ-К-5 [10:39:05]line 19.690 * 76.20 [10:39:05]line = 1500.38 [10:39:05]line НДС 12% НСП 1% [10:39:05]line > о реализуемом товаре [10:39:05]line ОКРУГЛЕНИЕ: -0.38 [10:39:05]line ИТОГО: 1500.00 [10:39:05]line НСП 1% : 13.28 [10:39:05]line НДС 12% : 159.33 [10:39:05]line Наличными: 0.00 [10:39:05]line Безнал.: 1500.00 [10:39:05]line Место: АЗС № 134 "Партнер Нефть" [10:39:05]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:39:05]line СНО: Общий режим [10:39:05]line Чек 111 31.07.2024 10:39 [10:39:05]line Смена: 436 ФФД: 1.0 [10:39:05]line ЗНМ: 0300000044 [10:39:05]line РНМ: 0000000000092660 [10:39:05]line Версия ККМ: 001 [10:39:05]line Платежная система: O! деньги [10:39:05]line ФМ: 0000000000874939 [10:39:05]line ФД: 119380 [10:39:05]line ФПД: 181271252274641 [10:39:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T103905&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119380&fm=181271252274641&tin=02508201610067®Number=0000000000092660&sum=150000 [10:39:05]OFD Sender: Processing packet 119380 [packets to send 86, broken 85] [10:39:05]ProducePacketName [10:39:05]name=ofd_packets/00119380 [10:39:05]OFD Sender: To server: pG, [10:39:05]CommunicateWithHost lk.salyk.kg:30040 [10:39:05]ConnectInit lk.salyk.kg [10:39:05]written 0, free lines is 4095 [10:39:05]Connected sock=10 [10:39:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 9B F5 04 01 7F 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 49 14 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 54 D2 01 00 35 04 06 00 A4 DD 80 99 8D D1 6A A4 3D E3 AD 2B 69 E8 [10:39:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B4 B9 47 00 60 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 54 D2 01 00 F4 03 04 00 D2 C1 A9 66 B6 04 01 00 00 9C C8 89 11 39 04 2F D2 [10:39:05]CommunicateWithHost err = 0 [10:39:05]CheckOFDResponse [10:39:05]1017 (14) - 77093643461234 [10:39:05]1041 (16) - 0000000000874939 [10:39:05]1040 (4) - 119380 [10:39:05]1012 (4) - 31.07.2024 04:47 [10:39:05]1206 (1) - 0 [10:39:05]OFD Sender: Remove packet 119380 [10:39:05]ProducePacketName [10:39:05]name=ofd_packets/00119380 [10:39:05]NVStorageDeleteData [10:39:05]Write to MH i2c: 01 00 00 13 1E 31 [10:39:05]Write i2c OK [10:39:05]MH_I2C_Read... [10:39:05]Read from MH i2c: 01 [10:39:05]MH_I2C_Read... [10:39:05]Read from MH i2c: 01 07 00 [10:39:05]MH_I2C_Read... [10:39:05]Read from MH i2c: 01 07 00 13 1E 00 00 00 00 00 DD 0C 21 [10:39:05]RasterBufferAndPrint [10:39:05]line [10:39:05]line [10:39:05]line [10:39:05]line [10:39:05]line [10:39:05]written 0, free lines is 3300 [10:39:05]MH_Cut [10:39:05]Write to MH i2c: D1 01 00 1A 1E 01 0A [10:39:05]Write i2c OK [10:39:05]MH_I2C_Read... [10:39:05]Read from MH i2c: D1 [10:39:05]MH_I2C_Read... [10:39:05]Read from MH i2c: D1 01 00 [10:39:05]MH_I2C_Read... [10:39:05]Read from MH i2c: D1 01 00 1A 1E 00 09 [10:39:05]Write to MH i2c: 01 00 00 1B 1E 39 [10:39:05]Write i2c OK [10:39:05]MH_I2C_Read... [10:39:06]OFD Sender: No OFD packet to send [10:39:06]*** Cut start [10:39:06]*** Partial cut [10:39:06]*** CUTSNS_PIN = 1 [10:39:06]*** CUTSNS_PIN = 0 [10:39:06]*** Brake cut motor [10:39:07]Read from MH i2c: 01 [10:39:07]MH_I2C_Read... [10:39:07]*** Stop cut motor [10:39:07]*** Cut end [10:39:07]Read from MH i2c: 01 07 00 [10:39:07]MH_I2C_Read... [10:39:07]Read from MH i2c: 01 07 00 1B 1E 00 00 00 00 00 FF 0F 4E [10:39:07]process_action close_receipt done [10:39:07]requested_data is exist [10:39:07]produce_requested_data [10:39:07]requested_item fm.sn is exist - process it [10:39:07]wFMCommunicate request_size=4 [10:39:07]MH_SAM_APDU [10:39:07]CAPDU: 80 11 00 00 [10:39:07]Write to MH i2c: E2 08 00 1C 1E 80 11 00 00 00 00 00 00 B4 [10:39:07]Write i2c OK [10:39:07]MH_I2C_Read... [10:39:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:07]Read from MH i2c: E2 [10:39:07]MH_I2C_Read... [10:39:07]Read from MH i2c: E2 17 00 [10:39:07]MH_I2C_Read... [10:39:07]Read from MH i2c: E2 17 00 1C 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0F [10:39:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:39:07]wFMCommunicate OK [10:39:07]requested_item fd.num is exist - process it [10:39:07]SAM_PROTO_GetFieldsCounters [10:39:07]wFMCommunicate request_size=4 [10:39:07]MH_SAM_APDU [10:39:07]CAPDU: 80 13 00 00 [10:39:07]Write to MH i2c: E2 08 00 1D 1E 80 13 00 00 00 00 00 00 B7 [10:39:07]Write i2c OK [10:39:07]MH_I2C_Read... [10:39:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:07]Read from MH i2c: E2 [10:39:07]MH_I2C_Read... [10:39:07]Read from MH i2c: E2 62 00 [10:39:07]MH_I2C_Read... [10:39:07]Read from MH i2c: E2 62 00 1D 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 54 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [10:39: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 54 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:39:07]wFMCommunicate OK [10:39:07]SAM_PROTO_GetFieldsCounters done [10:39:07]requested_item shift.num is exist - process it [10:39:07]requested_item shift.opened is exist - process it [10:39:07]req_shift_opened [10:39:07]FM_GetShiftState [10:39:07]SAM_PROTO_GetShiftState [10:39:07]wFMCommunicate request_size=4 [10:39:07]MH_SAM_APDU [10:39:07]CAPDU: 80 13 01 00 [10:39:07]Write to MH i2c: E2 08 00 1E 1E 80 13 01 00 00 00 00 00 B9 [10:39:07]Write i2c OK [10:39:07]MH_I2C_Read... [10:39:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:07]Read from MH i2c: E2 [10:39:07]MH_I2C_Read... [10:39:07]Read from MH i2c: E2 0E 00 [10:39:07]MH_I2C_Read... [10:39:07]Read from MH i2c: E2 0E 00 1E 1E 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 51 [10:39:07]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:39:07]wFMCommunicate OK [10:39:07]SAM_PROTO_GetShiftState done [10:39:07]FM_GetShiftState done [10:39:07]req_shift_opened done [10:39:07]requested_item shift.open_date is exist - process it [10:39:07]req_shift_open_date [10:39:07]req_shift_open_date done [10:39:07]produce_requested_data done [10:39:07]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119380,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [10:39:07]process_action_free close_receipt [10:39:07]json_value_free [10:39:07]json_value_free done [10:39:07]process_json_proto returns [10:39:07]Send response to host [10:39:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119380,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [10:39:07]free response buf [10:39:07]execute_script done [10:39:07]execute_script returns [10:39:07]free content buf [10:39:07]Sock 9.Close socket [10:39:07]Sock 9.Thread stoped [10:39:11]OFD Sender: No OFD packet to send [10:39:16]OFD Sender: No OFD packet to send [10:39:21]OFD Sender: No OFD packet to send [10:39:26]OFD Sender: No OFD packet to send [10:39:31]OFD Sender: No OFD packet to send [10:39:36]OFD Sender: No OFD packet to send [10:39:41]OFD Sender: No OFD packet to send [10:39:46]OFD Sender: No OFD packet to send [10:39:51]OFD Sender: No OFD packet to send [10:39:56]OFD Sender: No OFD packet to send [10:40:01]OFD Sender: No OFD packet to send [10:40:06]OFD Sender: No OFD packet to send [10:40:11]OFD Sender: No OFD packet to send [10:40:16]OFD Sender: No OFD packet to send [10:40:21]OFD Sender: No OFD packet to send [10:40:26]OFD Sender: No OFD packet to send [10:40:31]OFD Sender: No OFD packet to send [10:40:36]OFD Sender: No OFD packet to send [10:40:41]OFD Sender: No OFD packet to send [10:40:46]OFD Sender: No OFD packet to send [10:40:51]OFD Sender: No OFD packet to send [10:40:56]OFD Sender: No OFD packet to send [10:41:01]OFD Sender: No OFD packet to send [10:41:06]OFD Sender: No OFD packet to send [10:41:11]OFD Sender: No OFD packet to send [10:41:16]OFD Sender: No OFD packet to send [10:41:21]OFD Sender: No OFD packet to send [10:41:26]OFD Sender: No OFD packet to send [10:41:31]OFD Sender: No OFD packet to send [10:41:36]OFD Sender: No OFD packet to send [10:41:41]OFD Sender: No OFD packet to send [10:41:46]OFD Sender: No OFD packet to send [10:41:51]OFD Sender: No OFD packet to send [10:41:56]OFD Sender: No OFD packet to send [10:42:01]OFD Sender: No OFD packet to send [10:42:06]OFD Sender: No OFD packet to send [10:42:11]OFD Sender: No OFD packet to send [10:42:16]OFD Sender: No OFD packet to send [10:42:21]OFD Sender: No OFD packet to send [10:42:26]OFD Sender: No OFD packet to send [10:42:31]OFD Sender: No OFD packet to send [10:42:36]OFD Sender: No OFD packet to send [10:42:41]OFD Sender: No OFD packet to send [10:42:46]OFD Sender: No OFD packet to send [10:42:51]OFD Sender: No OFD packet to send [10:42:56]OFD Sender: No OFD packet to send [10:43:01]OFD Sender: No OFD packet to send [10:43:06]OFD Sender: No OFD packet to send [10:43:11]OFD Sender: No OFD packet to send [10:43:16]OFD Sender: No OFD packet to send [10:43:21]OFD Sender: No OFD packet to send [10:43:26]OFD Sender: No OFD packet to send [10:43:31]OFD Sender: No OFD packet to send [10:43:36]OFD Sender: No OFD packet to send [10:43:41]OFD Sender: No OFD packet to send [10:43:46]OFD Sender: No OFD packet to send [10:43:51]OFD Sender: No OFD packet to send [10:43:56]OFD Sender: No OFD packet to send [10:44:01]OFD Sender: No OFD packet to send [10:44:06]OFD Sender: No OFD packet to send [10:44:11]OFD Sender: No OFD packet to send [10:44:16]OFD Sender: No OFD packet to send [10:44:21]OFD Sender: No OFD packet to send [10:44:26]OFD Sender: No OFD packet to send [10:44:31]OFD Sender: No OFD packet to send [10:44:36]OFD Sender: No OFD packet to send [10:44:36]accept exits with 8 [10:44:36]New connection [10:44:36]New thread 3067338084 created [10:44:36]Thread 3067194724 joined [10:44:36]Waiting for new connection... [10:44:36] Sock 8.Parse request [10:44:36]Sock 8.Check first char [10:44:36]Sock 8.First char is OK [10:44:36]request: POST /json_proto HTTP/1.0 [10:44:36]Method: POST [10:44:36]URL: /json_proto [10:44:36]Method is POST - this is cgi request [10:44:36]url: /json_proto [10:44:36]query_string will be loaded in cgi processing [10:44:36]execute_cgi json_proto POST (null) [10:44:36]execute_cgi path=json_proto method=POST [10:44:36]POST find Content-Length [10:44:36]Host: 172.17.45.7:8080 [10:44:36]Content-Length: 677 [10:44:36]Content-Type: application/json [10:44:36] [10:44:36]POST finish read [10:44:36]Found Content-Length = 677 [10:44:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:44:36]execute_script... [10:44:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:44:36]POST & json_proto [10:44:36]process_json_proto [10:44:36]json parsed OK: [10:44:36]protocol is kg_v1.0 [10:44:36]action value=close_receipt [10:44:36]process_action close_receipt [10:44:36]cmd_close_receipt [10:44:36]MH_GetDate [10:44:36]Write to MH i2c: F0 00 00 1F 1E 2C [10:44:36]Write i2c OK [10:44:36]MH_I2C_Read... [10:44:36]Read from MH i2c: F0 [10:44:36]MH_I2C_Read... [10:44:36]Read from MH i2c: F0 09 00 [10:44:36]MH_I2C_Read... [10:44:36]Read from MH i2c: F0 09 00 1F 1E 00 97 15 AA 66 90 0F 3E 66 34 [10:44:36]GetLastDocTimeStamp 1722422345 [10:44:36]current date 1722422679 [10:44:36]FM_GetShiftState [10:44:36]SAM_PROTO_GetShiftState [10:44:36]wFMCommunicate request_size=4 [10:44:36]MH_SAM_APDU [10:44:36]CAPDU: 80 13 01 00 [10:44:36]Write to MH i2c: E2 08 00 20 1E 80 13 01 00 00 00 00 00 BB [10:44:36]Write i2c OK [10:44:36]MH_I2C_Read... [10:44:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:36]Read from MH i2c: E2 [10:44:36]MH_I2C_Read... [10:44:36]Read from MH i2c: E2 0E 00 [10:44:36]MH_I2C_Read... [10:44:36]Read from MH i2c: E2 0E 00 20 1E 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 53 [10:44:36]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:44:36]wFMCommunicate OK [10:44:36]SAM_PROTO_GetShiftState done [10:44:36]FM_GetShiftState done [10:44:36]opened in 1722384637 [10:44:36]opened+sec_in_day 1722471037 [10:44:36]quantity*price = 50036 [10:44:36]sum+1 = 50037 [10:44:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 112 31.07.2024 10:44 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119381 ФПД: 116227025490172 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T104439&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119381&fm=116227025490172&tin=02508201610067®Number=0000000000092660&sum=50000 [10:44:38]StoreToDocumentArchive [10:44:38]shift 436 fd 119381 [10:44:38]save to /storage/0436/doc_00119381 [10:44:38]save last doc name /storage/0436/doc_00119381 to /storage/kkm_last_doc_name [10:44:38]save OK [10:44:38]Clear old archive folders... [10:44:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:44:38]tlvbuf is B6FB6230 [10:44:38]SAM_PROTO_ClearQueue [10:44:38]wFMCommunicate request_size=4 [10:44:38]MH_SAM_APDU [10:44:38]CAPDU: 80 09 00 00 [10:44:38]Write to MH i2c: E2 08 00 2D 1E 80 09 00 00 00 00 00 00 BD [10:44:38]Write i2c OK [10:44:38]MH_I2C_Read... [10:44:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:44:38]Read from MH i2c: E2 [10:44:38]MH_I2C_Read... [10:44:38]Read from MH i2c: E2 03 00 [10:44:38]MH_I2C_Read... [10:44:38]Read from MH i2c: E2 03 00 2D 1E 00 90 00 BF [10:44:38]RAPDU: 90 00 [10:44:38]wFMCommunicate OK [10:44:38]SAM_PROTO_ClearQueue done [10:44:38]KKMCreateOFDPacket [10:44:38]OFDProtocolAddRootSTLVToBuf [10:44:38]FM_MakeSignedData [10:44:38]FM_MakeSignedData [10:44:38]SAM_PROTO_SignData [10:44:38]wFMCommunicate request_size=4 [10:44:38]MH_SAM_APDU [10:44:38]CAPDU: 80 0D 01 02 [10:44:38]Write to MH i2c: E2 08 00 2E 1E 80 0D 01 02 00 00 00 00 C5 [10:44:38]Write i2c OK [10:44:38]MH_I2C_Read... [10:44:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:44:38]Read from MH i2c: E2 [10:44:38]MH_I2C_Read... [10:44:38]Read from MH i2c: E2 03 00 [10:44:38]MH_I2C_Read... [10:44:38]Read from MH i2c: E2 03 00 2E 1E 00 90 00 C0 [10:44:38]RAPDU: 90 00 [10:44:38]wFMCommunicate OK [10:44:38]wFMCommunicate request_size=255 [10:44:38]MH_SAM_APDU [10:44: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 70 00 00 00 F4 03 04 00 97 15 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 55 D2 01 00 35 04 06 00 69 [10:44:38]Write to MH i2c: E2 02 01 2F 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 70 00 00 00 F4 03 04 00 97 15 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 55 D2 01 00 35 04 06 00 69 00 00 BB [10:44:38]Write i2c OK [10:44:38]MH_I2C_Read... [10:44:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:38]Read from MH i2c: E2 [10:44:38]MH_I2C_Read... [10:44:38]Read from MH i2c: E2 03 00 [10:44:38]MH_I2C_Read... [10:44:38]Read from MH i2c: E2 03 00 2F 1E 00 90 00 C1 [10:44:38]RAPDU: 90 00 [10:44:38]wFMCommunicate OK [10:44:38]wFMCommunicate request_size=10 [10:44:38]MH_SAM_APDU [10:44:38]CAPDU: 80 0D 02 02 05 B5 36 91 50 FC [10:44:38]Write to MH i2c: E2 0D 00 30 1E 80 0D 02 02 05 00 B5 36 91 50 FC 00 00 9A [10:44:38]Write i2c OK [10:44:38]MH_I2C_Read... [10:44:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:38]Read from MH i2c: E2 [10:44:38]MH_I2C_Read... [10:44:38]Read from MH i2c: E2 03 00 [10:44:38]MH_I2C_Read... [10:44:38]Read from MH i2c: E2 03 00 30 1E 00 90 00 C2 [10:44:38]RAPDU: 90 00 [10:44:38]wFMCommunicate OK [10:44:38]wFMCommunicate request_size=4 [10:44:38]MH_SAM_APDU [10:44:38]CAPDU: 80 0D 03 02 [10:44:38]Write to MH i2c: E2 08 00 31 1E 80 0D 03 02 00 00 00 00 CA [10:44:38]Write i2c OK [10:44:38]MH_I2C_Read... [10:44:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:44:38]Read from MH i2c: E2 [10:44:38]MH_I2C_Read... [10:44:38]Read from MH i2c: E2 0B 00 [10:44:38]MH_I2C_Read... [10:44:38]Read from MH i2c: E2 0B 00 31 1E 00 B6 DE 72 D4 3A 2B FE DD 90 00 E5 [10:44:38]RAPDU: B6 DE 72 D4 3A 2B FE DD 90 00 [10:44:38]wFMCommunicate OK [10:44:38]SAM_PROTO_SignData done [10:44:38]FM_MakeSignedData done [10:44:38]CreateOFDProtocolMessage [10:44:38]wFMCommunicate request_size=4 [10:44:38]MH_SAM_APDU [10:44:38]CAPDU: 80 11 00 00 [10:44:38]Write to MH i2c: E2 08 00 32 1E 80 11 00 00 00 00 00 00 CA [10:44:38]Write i2c OK [10:44:38]MH_I2C_Read... [10:44:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:38]Read from MH i2c: E2 [10:44:38]MH_I2C_Read... [10:44:38]Read from MH i2c: E2 17 00 [10:44:38]MH_I2C_Read... [10:44:38]Read from MH i2c: E2 17 00 32 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 25 [10:44:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:44:38]wFMCommunicate OK [10:44:38]CreateOFDProtocolMessage done [10:44:38]OFDSenderStorePacket 119381 [10:44:38]StoreOFDPacket docnum=119381 [10:44:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 FD BD 07 01 13 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 70 00 00 00 F4 03 04 00 97 15 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 55 D2 01 00 35 04 06 00 69 B5 36 91 50 FC B6 DE 72 D4 3A 2B FE DD [10:44:38]CheckFolder [10:44:38]dirname=/storage/ofd_packets [10:44:38]CheckFolder done [10:44:38]ProducePacketName [10:44:38]name=ofd_packets/00119381 [10:44:38]NVStorageSaveData ofd_packets/00119381 [10:44:38]File name is /storage/ofd_packets/00119381 [10:44:38]Write 301 bytes [10:44:38]NVStorageSaveData done [10:44:38]OFDSenderStorePacket done [10:44:38]KKMCreateOFDPacket done [10:44:38]NVStorageSaveData kkm_last_timestamp [10:44:38]File name is /storage/kkm_last_timestamp [10:44:38]Write 4 bytes [10:44:38]NVStorageSaveData done [10:44:38]ExternCall_PrintAddStr [10:44:38]wPrintStart [10:44:38]Write to MH i2c: 01 00 00 33 1E 51 [10:44:38]Write i2c OK [10:44:38]MH_I2C_Read... [10:44:38]Read from MH i2c: 01 [10:44:38]MH_I2C_Read... [10:44:38]Read from MH i2c: 01 07 00 [10:44:38]MH_I2C_Read... [10:44:38]Read from MH i2c: 01 07 00 33 1E 00 00 00 00 00 FF 0F 66 [10:44:38]RasterBufferAndPrint [10:44:38]line Счет N : (1)950307 [10:44:38]line ИНН: 02508201610067 [10:44:38]line Контрольно-Кассовый Чек [10:44:38]line ПРОДАЖА [10:44:38]line ТРК (МРК, ГНК) : 51 [10:44:38]line Товар: 2710124130 [10:44:38]line Аи-92-К-4 [10:44:38]line 7.380 * 67.80 [10:44:38]line = 500.36 [10:44:38]line НДС 12% НСП 1% [10:44:38]line > о реализуемом товаре [10:44:38]line ОКРУГЛЕНИЕ: -0.36 [10:44:38]line ИТОГО: 500.00 [10:44:38]line Внесено: 500.00 [10:44:38]line СДАЧА: 0.00 [10:44:38]line НСП 1% : 4.43 [10:44:38]line НДС 12% : 53.14 [10:44:38]line Наличными: 500.00 [10:44:38]line Безнал.: 0.00 [10:44:38]line Место: АЗС № 134 "Партнер Нефть" [10:44:38]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:44:38]line СНО: Общий режим [10:44:38]line Чек 112 31.07.2024 10:44 [10:44:38]line Смена: 436 ФФД: 1.0 [10:44:38]line ЗНМ: 0300000044 [10:44:38]line РНМ: 0000000000092660 [10:44:38]line Версия ККМ: 001 [10:44:38]line ФМ: 0000000000874939 [10:44:38]line ФД: 119381 [10:44:38]line ФПД: 116227025490172 [10:44:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T104439&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119381&fm=116227025490172&tin=02508201610067®Number=0000000000092660&sum=50000 [10:44:38]OFD Sender: Processing packet 119381 [packets to send 86, broken 85] [10:44:38]ProducePacketName [10:44:38]name=ofd_packets/00119381 [10:44:38]OFD Sender: To server: pG, [10:44:38]CommunicateWithHost lk.salyk.kg:30040 [10:44:38]ConnectInit lk.salyk.kg [10:44:38]written 0, free lines is 4095 [10:44:39]Connected sock=11 [10:44: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 39 33 39 0F 01 00 00 FD BD 07 01 13 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 70 00 00 00 F4 03 04 00 97 15 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 55 D2 01 00 35 04 06 00 69 B5 36 91 50 FC B6 DE 72 D4 3A 2B FE DD [10: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 39 33 39 4F 00 00 00 09 B5 47 00 9B D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 55 D2 01 00 F4 03 04 00 20 C3 A9 66 B6 04 01 00 00 1A B3 7C 48 1F 5A 65 7D [10:44:39]CommunicateWithHost err = 0 [10:44:39]CheckOFDResponse [10:44:39]1017 (14) - 77093643461234 [10:44:39]1041 (16) - 0000000000874939 [10:44:39]1040 (4) - 119381 [10:44:39]1012 (4) - 31.07.2024 04:52 [10:44:39]1206 (1) - 0 [10:44:39]OFD Sender: Remove packet 119381 [10:44:39]ProducePacketName [10:44:39]name=ofd_packets/00119381 [10:44:39]NVStorageDeleteData [10:44:39]Write to MH i2c: 01 00 00 5D 1E 7B [10:44:39]Write i2c OK [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: 01 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: 01 07 00 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: 01 07 00 5D 1E 00 00 00 00 00 CF 0C 5D [10:44:39]RasterBufferAndPrint [10:44:39]line [10:44:39]line [10:44:39]line [10:44:39]line [10:44:39]line [10:44:39]written 0, free lines is 3286 [10:44:39]MH_Cut [10:44:39]Write to MH i2c: D1 01 00 64 1E 01 54 [10:44:39]Write i2c OK [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: D1 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: D1 01 00 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: D1 01 00 64 1E 00 53 [10:44:39]Write to MH i2c: 01 00 00 65 1E 83 [10:44:39]Write i2c OK [10:44:39]MH_I2C_Read... [10:44:39]OFD Sender: No OFD packet to send [10:44:40]*** Cut start [10:44:40]*** Partial cut [10:44:40]*** CUTSNS_PIN = 1 [10:44:40]*** CUTSNS_PIN = 0 [10:44:40]*** Brake cut motor [10:44:40]Read from MH i2c: 01 [10:44:40]MH_I2C_Read... [10:44:40]*** Stop cut motor [10:44:40]*** Cut end [10:44:40]Read from MH i2c: 01 07 00 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: 01 07 00 65 1E 00 00 00 00 00 FF 0F 98 [10:44:40]process_action close_receipt done [10:44:40]requested_data is exist [10:44:40]produce_requested_data [10:44:40]requested_item fm.sn is exist - process it [10:44:40]wFMCommunicate request_size=4 [10:44:40]MH_SAM_APDU [10:44:40]CAPDU: 80 11 00 00 [10:44:40]Write to MH i2c: E2 08 00 66 1E 80 11 00 00 00 00 00 00 FE [10:44:40]Write i2c OK [10:44:40]MH_I2C_Read... [10:44:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:40]Read from MH i2c: E2 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: E2 17 00 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: E2 17 00 66 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 59 [10:44:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:44:40]wFMCommunicate OK [10:44:40]requested_item fd.num is exist - process it [10:44:40]SAM_PROTO_GetFieldsCounters [10:44:40]wFMCommunicate request_size=4 [10:44:40]MH_SAM_APDU [10:44:40]CAPDU: 80 13 00 00 [10:44:40]Write to MH i2c: E2 08 00 67 1E 80 13 00 00 00 00 00 00 01 [10:44:40]Write i2c OK [10:44:40]MH_I2C_Read... [10:44:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:40]Read from MH i2c: E2 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: E2 62 00 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: E2 62 00 67 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 55 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [10:44: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 55 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:44:40]wFMCommunicate OK [10:44:40]SAM_PROTO_GetFieldsCounters done [10:44:40]requested_item shift.num is exist - process it [10:44:40]requested_item shift.opened is exist - process it [10:44:40]req_shift_opened [10:44:40]FM_GetShiftState [10:44:40]SAM_PROTO_GetShiftState [10:44:40]wFMCommunicate request_size=4 [10:44:40]MH_SAM_APDU [10:44:40]CAPDU: 80 13 01 00 [10:44:40]Write to MH i2c: E2 08 00 68 1E 80 13 01 00 00 00 00 00 03 [10:44:40]Write i2c OK [10:44:40]MH_I2C_Read... [10:44:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:41]Read from MH i2c: E2 [10:44:41]MH_I2C_Read... [10:44:41]Read from MH i2c: E2 0E 00 [10:44:41]MH_I2C_Read... [10:44:41]Read from MH i2c: E2 0E 00 68 1E 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 9B [10:44:41]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:44:41]wFMCommunicate OK [10:44:41]SAM_PROTO_GetShiftState done [10:44:41]FM_GetShiftState done [10:44:41]req_shift_opened done [10:44:41]requested_item shift.open_date is exist - process it [10:44:41]req_shift_open_date [10:44:41]req_shift_open_date done [10:44:41]produce_requested_data done [10:44:41]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119381,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [10:44:41]process_action_free close_receipt [10:44:41]json_value_free [10:44:41]json_value_free done [10:44:41]process_json_proto returns [10:44:41]Send response to host [10:44:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119381,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [10:44:41]free response buf [10:44:41]execute_script done [10:44:41]execute_script returns [10:44:41]free content buf [10:44:41]Sock 8.Close socket [10:44:41]Sock 8.Thread stoped [10:44:44]OFD Sender: No OFD packet to send [10:44:49]OFD Sender: No OFD packet to send [10:44:54]OFD Sender: No OFD packet to send [10:44:59]OFD Sender: No OFD packet to send [10:45:04]OFD Sender: No OFD packet to send [10:45:09]OFD Sender: No OFD packet to send [10:45:14]OFD Sender: No OFD packet to send [10:45:19]OFD Sender: No OFD packet to send [10:45:24]OFD Sender: No OFD packet to send [10:45:29]OFD Sender: No OFD packet to send [10:45:34]OFD Sender: No OFD packet to send [10:45:39]OFD Sender: No OFD packet to send [10:45:44]OFD Sender: No OFD packet to send [10:45:49]OFD Sender: No OFD packet to send [10:45:54]OFD Sender: No OFD packet to send [10:45:59]OFD Sender: No OFD packet to send [10:46:04]OFD Sender: No OFD packet to send [10:46:09]OFD Sender: No OFD packet to send [10:46:14]OFD Sender: No OFD packet to send [10:46:19]OFD Sender: No OFD packet to send [10:46:24]OFD Sender: No OFD packet to send [10:46:29]OFD Sender: No OFD packet to send [10:46:34]OFD Sender: No OFD packet to send [10:46:39]OFD Sender: No OFD packet to send [10:46:44]OFD Sender: No OFD packet to send [10:46:49]OFD Sender: No OFD packet to send [10:46:54]OFD Sender: No OFD packet to send [10:46:59]OFD Sender: No OFD packet to send [10:47:05]OFD Sender: No OFD packet to send [10:47:10]OFD Sender: No OFD packet to send [10:47:15]OFD Sender: No OFD packet to send [10:47:15]accept exits with 9 [10:47:15]New connection [10:47:15]New thread 3067194724 created [10:47:15]Thread 3067338084 joined [10:47:15]Waiting for new connection... [10:47:15] Sock 9.Parse request [10:47:15]Sock 9.Check first char [10:47:15]Sock 9.First char is OK [10:47:15]request: POST /json_proto HTTP/1.0 [10:47:15]Method: POST [10:47:15]URL: /json_proto [10:47:15]Method is POST - this is cgi request [10:47:15]url: /json_proto [10:47:15]query_string will be loaded in cgi processing [10:47:15]execute_cgi json_proto POST (null) [10:47:15]execute_cgi path=json_proto method=POST [10:47:15]POST find Content-Length [10:47:15]Host: 172.17.45.7:8080 [10:47:15]Content-Length: 682 [10:47:15]Content-Type: application/json [10:47:15] [10:47:15]POST finish read [10:47:15]Found Content-Length = 682 [10:47:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:15]execute_script... [10:47: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)950308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:15]POST & json_proto [10:47:15]process_json_proto [10:47:15]json parsed OK: [10:47:15]protocol is kg_v1.0 [10:47:15]action value=close_receipt [10:47:15]process_action close_receipt [10:47:15]cmd_close_receipt [10:47:15]MH_GetDate [10:47:15]Write to MH i2c: F0 00 00 69 1E 76 [10:47:15]Write i2c OK [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: F0 [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: F0 09 00 [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: F0 09 00 69 1E 00 35 16 AA 66 90 0F 3E 66 1D [10:47:15]GetLastDocTimeStamp 1722422679 [10:47:15]current date 1722422837 [10:47:15]FM_GetShiftState [10:47:15]SAM_PROTO_GetShiftState [10:47:15]wFMCommunicate request_size=4 [10:47:15]MH_SAM_APDU [10:47:15]CAPDU: 80 13 01 00 [10:47:15]Write to MH i2c: E2 08 00 6A 1E 80 13 01 00 00 00 00 00 05 [10:47:15]Write i2c OK [10:47:15]MH_I2C_Read... [10:47:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:15]Read from MH i2c: E2 [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: E2 0E 00 [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: E2 0E 00 6A 1E 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 9D [10:47:15]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:47:15]wFMCommunicate OK [10:47:15]SAM_PROTO_GetShiftState done [10:47:15]FM_GetShiftState done [10:47:15]opened in 1722384637 [10:47:15]opened+sec_in_day 1722471037 [10:47:15]quantity*price = 100005 [10:47:15]sum+1 = 100006 [10:47:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 113 31.07.2024 10:47 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119382 ФПД: 2352442276510 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T104717&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119382&fm=2352442276510&tin=02508201610067®Number=0000000000092660&sum=100000 [10:47:16]StoreToDocumentArchive [10:47:16]shift 436 fd 119382 [10:47:16]save to /storage/0436/doc_00119382 [10:47:16]save last doc name /storage/0436/doc_00119382 to /storage/kkm_last_doc_name [10:47:16]save OK [10:47:16]Clear old archive folders... [10:47:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:47:16]tlvbuf is 00AC93F0 [10:47:16]SAM_PROTO_ClearQueue [10:47:16]wFMCommunicate request_size=4 [10:47:16]MH_SAM_APDU [10:47:16]CAPDU: 80 09 00 00 [10:47:16]Write to MH i2c: E2 08 00 77 1E 80 09 00 00 00 00 00 00 07 [10:47:16]Write i2c OK [10:47:16]MH_I2C_Read... [10:47:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:47:16]Read from MH i2c: E2 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: E2 03 00 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: E2 03 00 77 1E 00 90 00 09 [10:47:16]RAPDU: 90 00 [10:47:16]wFMCommunicate OK [10:47:16]SAM_PROTO_ClearQueue done [10:47:16]KKMCreateOFDPacket [10:47:16]OFDProtocolAddRootSTLVToBuf [10:47:16]FM_MakeSignedData [10:47:16]FM_MakeSignedData [10:47:16]SAM_PROTO_SignData [10:47:16]wFMCommunicate request_size=4 [10:47:16]MH_SAM_APDU [10:47:16]CAPDU: 80 0D 01 02 [10:47:16]Write to MH i2c: E2 08 00 78 1E 80 0D 01 02 00 00 00 00 0F [10:47:16]Write i2c OK [10:47:16]MH_I2C_Read... [10:47:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:47:16]Read from MH i2c: E2 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: E2 03 00 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: E2 03 00 78 1E 00 90 00 0A [10:47:16]RAPDU: 90 00 [10:47:16]wFMCommunicate OK [10:47:16]wFMCommunicate request_size=255 [10:47:16]MH_SAM_APDU [10:47:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 71 00 00 00 F4 03 04 00 35 16 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 56 D2 01 00 35 04 06 00 02 [10:47:16]Write to MH i2c: E2 02 01 79 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 71 00 00 00 F4 03 04 00 35 16 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 56 D2 01 00 35 04 06 00 02 00 00 CE [10:47:16]Write i2c OK [10:47:16]MH_I2C_Read... [10:47:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:16]Read from MH i2c: E2 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: E2 03 00 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: E2 03 00 79 1E 00 90 00 0B [10:47:16]RAPDU: 90 00 [10:47:16]wFMCommunicate OK [10:47:16]wFMCommunicate request_size=10 [10:47:16]MH_SAM_APDU [10:47:16]CAPDU: 80 0D 02 02 05 23 B8 7C 7A 9E [10:47:16]Write to MH i2c: E2 0D 00 7A 1E 80 0D 02 02 05 00 23 B8 7C 7A 9E 00 00 8B [10:47:16]Write i2c OK [10:47:16]MH_I2C_Read... [10:47:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:16]Read from MH i2c: E2 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: E2 03 00 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: E2 03 00 7A 1E 00 90 00 0C [10:47:16]RAPDU: 90 00 [10:47:16]wFMCommunicate OK [10:47:16]wFMCommunicate request_size=4 [10:47:16]MH_SAM_APDU [10:47:16]CAPDU: 80 0D 03 02 [10:47:16]Write to MH i2c: E2 08 00 7B 1E 80 0D 03 02 00 00 00 00 14 [10:47:16]Write i2c OK [10:47:16]MH_I2C_Read... [10:47:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:47:16]Read from MH i2c: E2 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: E2 0B 00 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: E2 0B 00 7B 1E 00 26 2E 84 49 55 77 37 A0 90 00 D9 [10:47:16]RAPDU: 26 2E 84 49 55 77 37 A0 90 00 [10:47:16]wFMCommunicate OK [10:47:16]SAM_PROTO_SignData done [10:47:16]FM_MakeSignedData done [10:47:16]CreateOFDProtocolMessage [10:47:16]wFMCommunicate request_size=4 [10:47:16]MH_SAM_APDU [10:47:16]CAPDU: 80 11 00 00 [10:47:16]Write to MH i2c: E2 08 00 7C 1E 80 11 00 00 00 00 00 00 14 [10:47:16]Write i2c OK [10:47:16]MH_I2C_Read... [10:47:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:16]Read from MH i2c: E2 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: E2 17 00 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: E2 17 00 7C 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6F [10:47:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:47:16]wFMCommunicate OK [10:47:16]CreateOFDProtocolMessage done [10:47:16]OFDSenderStorePacket 119382 [10:47:16]StoreOFDPacket docnum=119382 [10:47:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 76 47 07 01 88 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 71 00 00 00 F4 03 04 00 35 16 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 56 D2 01 00 35 04 06 00 02 23 B8 7C 7A 9E 26 2E 84 49 55 77 37 A0 [10:47:16]CheckFolder [10:47:16]dirname=/storage/ofd_packets [10:47:16]CheckFolder done [10:47:16]ProducePacketName [10:47:16]name=ofd_packets/00119382 [10:47:16]NVStorageSaveData ofd_packets/00119382 [10:47:16]File name is /storage/ofd_packets/00119382 [10:47:16]Write 301 bytes [10:47:16]NVStorageSaveData done [10:47:16]OFDSenderStorePacket done [10:47:16]KKMCreateOFDPacket done [10:47:16]NVStorageSaveData kkm_last_timestamp [10:47:16]File name is /storage/kkm_last_timestamp [10:47:16]Write 4 bytes [10:47:16]NVStorageSaveData done [10:47:16]OFD Sender: Processing packet 119382 [packets to send 86, broken 85] [10:47:16]ProducePacketName [10:47:16]name=ofd_packets/00119382 [10:47:16]OFD Sender: To server: pG, [10:47:16]CommunicateWithHost lk.salyk.kg:30040 [10:47:16]ConnectInit lk.salyk.kg [10:47:16]ExternCall_PrintAddStr [10:47:16]wPrintStart [10:47:16]Write to MH i2c: 01 00 00 7D 1E 9B [10:47:16]Write i2c OK [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: 01 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: 01 07 00 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: 01 07 00 7D 1E 00 00 00 00 00 FF 0F B0 [10:47:16]RasterBufferAndPrint [10:47:16]line Счет N : (1)950308 [10:47:16]line ИНН: 02508201610067 [10:47:16]line Контрольно-Кассовый Чек [10:47:16]line ПРОДАЖА [10:47:16]line ТРК (МРК, ГНК) : 61 [10:47:16]line Товар: 2710124130 [10:47:16]line Аи-92-К-4 [10:47:16]line 14.750 * 67.80 [10:47:16]line = 1000.05 [10:47:16]line НДС 12% НСП 1% [10:47:16]line > о реализуемом товаре [10:47:16]line ОКРУГЛЕНИЕ: -0.05 [10:47:16]line ИТОГО: 1000.00 [10:47:16]line Внесено: 1000.00 [10:47:16]line СДАЧА: 0.00 [10:47:16]line НСП 1% : 8.85 [10:47:16]line НДС 12% : 106.20 [10:47:16]line Наличными: 1000.00 [10:47:16]line Безнал.: 0.00 [10:47:16]line Место: АЗС № 134 "Партнер Нефть" [10:47:16]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:47:16]line СНО: Общий режим [10:47:16]line Чек 113 31.07.2024 10:47 [10:47:16]line Смена: 436 ФФД: 1.0 [10:47:16]line ЗНМ: 0300000044 [10:47:16]line РНМ: 0000000000092660 [10:47:16]line Версия ККМ: 001 [10:47:16]line ФМ: 0000000000874939 [10:47:16]line ФД: 119382 [10:47:16]line ФПД: 2352442276510 [10:47:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T104717&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119382&fm=2352442276510&tin=02508201610067®Number=0000000000092660&sum=100000 [10:47:17]Connected sock=11 [10:47: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 39 33 39 0F 01 00 00 76 47 07 01 88 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 71 00 00 00 F4 03 04 00 35 16 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 56 D2 01 00 35 04 06 00 02 23 B8 7C 7A 9E 26 2E 84 49 55 77 37 A0 [10:47:17]written 0, free lines is 4095 [10:47:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 6F D6 47 00 42 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 56 D2 01 00 F4 03 04 00 BE C3 A9 66 B6 04 01 00 00 FC 5A A0 F7 DA FE 0B 5A [10:47:17]CommunicateWithHost err = 0 [10:47:17]CheckOFDResponse [10:47:17]1017 (14) - 77093643461234 [10:47:17]1041 (16) - 0000000000874939 [10:47:17]1040 (4) - 119382 [10:47:17]1012 (4) - 31.07.2024 04:55 [10:47:17]1206 (1) - 0 [10:47:17]OFD Sender: Remove packet 119382 [10:47:17]ProducePacketName [10:47:17]name=ofd_packets/00119382 [10:47:17]NVStorageDeleteData [10:47:17]Write to MH i2c: 01 00 00 A7 1E C5 [10:47:17]Write i2c OK [10:47:17]MH_I2C_Read... [10:47:17]Read from MH i2c: 01 [10:47:17]MH_I2C_Read... [10:47:17]Read from MH i2c: 01 07 00 [10:47:17]MH_I2C_Read... [10:47:17]Read from MH i2c: 01 07 00 A7 1E 00 00 00 00 00 DA 0C B2 [10:47:17]RasterBufferAndPrint [10:47:17]line [10:47:17]line [10:47:17]line [10:47:17]line [10:47:17]line [10:47:17]written 0, free lines is 3297 [10:47:17]MH_Cut [10:47:17]Write to MH i2c: D1 01 00 AE 1E 01 9E [10:47:17]Write i2c OK [10:47:17]MH_I2C_Read... [10:47:17]Read from MH i2c: D1 [10:47:17]MH_I2C_Read... [10:47:17]Read from MH i2c: D1 01 00 [10:47:17]MH_I2C_Read... [10:47:17]Read from MH i2c: D1 01 00 AE 1E 00 9D [10:47:17]Write to MH i2c: 01 00 00 AF 1E CD [10:47:17]Write i2c OK [10:47:17]MH_I2C_Read... [10:47:17]OFD Sender: No OFD packet to send [10:47:18]*** Cut start [10:47:18]*** Partial cut [10:47:18]*** CUTSNS_PIN = 1 [10:47:18]*** CUTSNS_PIN = 0 [10:47:18]*** Brake cut motor [10:47:18]Read from MH i2c: 01 [10:47:18]MH_I2C_Read... [10:47:18]*** Stop cut motor [10:47:18]*** Cut end [10:47:18]Read from MH i2c: 01 07 00 [10:47:18]MH_I2C_Read... [10:47:18]Read from MH i2c: 01 07 00 AF 1E 00 00 00 00 00 FF 0F E2 [10:47:18]process_action close_receipt done [10:47:18]requested_data is exist [10:47:18]produce_requested_data [10:47:18]requested_item fm.sn is exist - process it [10:47:18]wFMCommunicate request_size=4 [10:47:18]MH_SAM_APDU [10:47:18]CAPDU: 80 11 00 00 [10:47:18]Write to MH i2c: E2 08 00 B0 1E 80 11 00 00 00 00 00 00 48 [10:47:18]Write i2c OK [10:47:18]MH_I2C_Read... [10:47:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:18]Read from MH i2c: E2 [10:47:18]MH_I2C_Read... [10:47:18]Read from MH i2c: E2 17 00 [10:47:18]MH_I2C_Read... [10:47:18]Read from MH i2c: E2 17 00 B0 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A3 [10:47:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:47:18]wFMCommunicate OK [10:47:18]requested_item fd.num is exist - process it [10:47:18]SAM_PROTO_GetFieldsCounters [10:47:18]wFMCommunicate request_size=4 [10:47:18]MH_SAM_APDU [10:47:18]CAPDU: 80 13 00 00 [10:47:18]Write to MH i2c: E2 08 00 B1 1E 80 13 00 00 00 00 00 00 4B [10:47:18]Write i2c OK [10:47:18]MH_I2C_Read... [10:47:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:19]Read from MH i2c: E2 [10:47:19]MH_I2C_Read... [10:47:19]Read from MH i2c: E2 62 00 [10:47:19]MH_I2C_Read... [10:47:19]Read from MH i2c: E2 62 00 B1 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 56 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [10:47: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 56 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:47:19]wFMCommunicate OK [10:47:19]SAM_PROTO_GetFieldsCounters done [10:47:19]requested_item shift.num is exist - process it [10:47:19]requested_item shift.opened is exist - process it [10:47:19]req_shift_opened [10:47:19]FM_GetShiftState [10:47:19]SAM_PROTO_GetShiftState [10:47:19]wFMCommunicate request_size=4 [10:47:19]MH_SAM_APDU [10:47:19]CAPDU: 80 13 01 00 [10:47:19]Write to MH i2c: E2 08 00 B2 1E 80 13 01 00 00 00 00 00 4D [10:47:19]Write i2c OK [10:47:19]MH_I2C_Read... [10:47:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:19]Read from MH i2c: E2 [10:47:19]MH_I2C_Read... [10:47:19]Read from MH i2c: E2 0E 00 [10:47:19]MH_I2C_Read... [10:47:19]Read from MH i2c: E2 0E 00 B2 1E 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 E5 [10:47:19]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:47:19]wFMCommunicate OK [10:47:19]SAM_PROTO_GetShiftState done [10:47:19]FM_GetShiftState done [10:47:19]req_shift_opened done [10:47:19]requested_item shift.open_date is exist - process it [10:47:19]req_shift_open_date [10:47:19]req_shift_open_date done [10:47:19]produce_requested_data done [10:47:19]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119382,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [10:47:19]process_action_free close_receipt [10:47:19]json_value_free [10:47:19]json_value_free done [10:47:19]process_json_proto returns [10:47:19]Send response to host [10:47:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119382,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [10:47:19]free response buf [10:47:19]execute_script done [10:47:19]execute_script returns [10:47:19]free content buf [10:47:19]Sock 9.Close socket [10:47:19]Sock 9.Thread stoped [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:48]accept exits with 8 [10:47:48]New connection [10:47:48]New thread 3067338084 created [10:47:48]Thread 3067194724 joined [10:47:48]Waiting for new connection... [10:47:48] Sock 8.Parse request [10:47:48]Sock 8.Check first char [10:47:48]Sock 8.First char is OK [10:47:48]request: POST /json_proto HTTP/1.0 [10:47:48]Method: POST [10:47:48]URL: /json_proto [10:47:48]Method is POST - this is cgi request [10:47:48]url: /json_proto [10:47:48]query_string will be loaded in cgi processing [10:47:48]execute_cgi json_proto POST (null) [10:47:48]execute_cgi path=json_proto method=POST [10:47:48]POST find Content-Length [10:47:48]Host: 172.17.45.7:8080 [10:47:48]Content-Length: 677 [10:47:48]Content-Type: application/json [10:47:48] [10:47:48]POST finish read [10:47:48]Found Content-Length = 677 [10:47:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950309", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:48]execute_script... [10:47: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)950309", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:48]POST & json_proto [10:47:48]process_json_proto [10:47:48]json parsed OK: [10:47:48]protocol is kg_v1.0 [10:47:48]action value=close_receipt [10:47:48]process_action close_receipt [10:47:48]cmd_close_receipt [10:47:48]MH_GetDate [10:47:48]Write to MH i2c: F0 00 00 B3 1E C0 [10:47:48]Write i2c OK [10:47:48]MH_I2C_Read... [10:47:48]Read from MH i2c: F0 [10:47:48]MH_I2C_Read... [10:47:48]Read from MH i2c: F0 09 00 [10:47:48]MH_I2C_Read... [10:47:48]Read from MH i2c: F0 09 00 B3 1E 00 56 16 AA 66 90 0F 3E 66 88 [10:47:48]GetLastDocTimeStamp 1722422837 [10:47:48]current date 1722422870 [10:47:48]FM_GetShiftState [10:47:48]SAM_PROTO_GetShiftState [10:47:48]wFMCommunicate request_size=4 [10:47:48]MH_SAM_APDU [10:47:48]CAPDU: 80 13 01 00 [10:47:48]Write to MH i2c: E2 08 00 B4 1E 80 13 01 00 00 00 00 00 4F [10:47:48]Write i2c OK [10:47:48]MH_I2C_Read... [10:47:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:48]Read from MH i2c: E2 [10:47:48]MH_I2C_Read... [10:47:48]Read from MH i2c: E2 0E 00 [10:47:48]MH_I2C_Read... [10:47:48]Read from MH i2c: E2 0E 00 B4 1E 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 E7 [10:47:48]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:47:48]wFMCommunicate OK [10:47:48]SAM_PROTO_GetShiftState done [10:47:48]FM_GetShiftState done [10:47:48]opened in 1722384637 [10:47:48]opened+sec_in_day 1722471037 [10:47:48]quantity*price = 40002 [10:47:48]sum+1 = 40003 [10:47:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 114 31.07.2024 10:47 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119383 ФПД: 176844952721991 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T104750&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119383&fm=176844952721991&tin=02508201610067®Number=0000000000092660&sum=40000 [10:47:49]StoreToDocumentArchive [10:47:49]shift 436 fd 119383 [10:47:49]save to /storage/0436/doc_00119383 [10:47:49]save last doc name /storage/0436/doc_00119383 to /storage/kkm_last_doc_name [10:47:49]save OK [10:47:49]Clear old archive folders... [10:47:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:47:49]tlvbuf is 00B1D580 [10:47:49]SAM_PROTO_ClearQueue [10:47:49]wFMCommunicate request_size=4 [10:47:49]MH_SAM_APDU [10:47:49]CAPDU: 80 09 00 00 [10:47:49]Write to MH i2c: E2 08 00 C1 1E 80 09 00 00 00 00 00 00 51 [10:47:49]Write i2c OK [10:47:49]MH_I2C_Read... [10:47:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:47:49]Read from MH i2c: E2 [10:47:49]MH_I2C_Read... [10:47:49]Read from MH i2c: E2 03 00 [10:47:49]MH_I2C_Read... [10:47:49]Read from MH i2c: E2 03 00 C1 1E 00 90 00 53 [10:47:49]RAPDU: 90 00 [10:47:49]wFMCommunicate OK [10:47:49]SAM_PROTO_ClearQueue done [10:47:49]KKMCreateOFDPacket [10:47:49]OFDProtocolAddRootSTLVToBuf [10:47:49]FM_MakeSignedData [10:47:49]FM_MakeSignedData [10:47:49]SAM_PROTO_SignData [10:47:49]wFMCommunicate request_size=4 [10:47:49]MH_SAM_APDU [10:47:49]CAPDU: 80 0D 01 02 [10:47:49]Write to MH i2c: E2 08 00 C2 1E 80 0D 01 02 00 00 00 00 59 [10:47:49]Write i2c OK [10:47:49]MH_I2C_Read... [10:47:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:47:49]Read from MH i2c: E2 [10:47:49]MH_I2C_Read... [10:47:49]Read from MH i2c: E2 03 00 [10:47:49]MH_I2C_Read... [10:47:49]Read from MH i2c: E2 03 00 C2 1E 00 90 00 54 [10:47:49]RAPDU: 90 00 [10:47:49]wFMCommunicate OK [10:47:49]wFMCommunicate request_size=255 [10:47:49]MH_SAM_APDU [10:47:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 72 00 00 00 F4 03 04 00 56 16 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 57 D2 01 00 35 04 06 00 A0 [10:47:49]Write to MH i2c: E2 02 01 C3 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 72 00 00 00 F4 03 04 00 56 16 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 57 D2 01 00 35 04 06 00 A0 00 00 2F [10:47:49]Write i2c OK [10:47:49]MH_I2C_Read... [10:47:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:49]Read from MH i2c: E2 [10:47:49]MH_I2C_Read... [10:47:49]Read from MH i2c: E2 03 00 [10:47:49]MH_I2C_Read... [10:47:49]Read from MH i2c: E2 03 00 C3 1E 00 90 00 55 [10:47:49]RAPDU: 90 00 [10:47:49]wFMCommunicate OK [10:47:49]wFMCommunicate request_size=10 [10:47:49]MH_SAM_APDU [10:47:49]CAPDU: 80 0D 02 02 05 D6 EC 96 5A 47 [10:47:49]Write to MH i2c: E2 0D 00 C4 1E 80 0D 02 02 05 00 D6 EC 96 5A 47 00 00 5F [10:47:49]Write i2c OK [10:47:49]MH_I2C_Read... [10:47:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:49]Read from MH i2c: E2 [10:47:49]MH_I2C_Read... [10:47:49]Read from MH i2c: E2 03 00 [10:47:49]MH_I2C_Read... [10:47:49]Read from MH i2c: E2 03 00 C4 1E 00 90 00 56 [10:47:49]RAPDU: 90 00 [10:47:49]wFMCommunicate OK [10:47:49]wFMCommunicate request_size=4 [10:47:49]MH_SAM_APDU [10:47:49]CAPDU: 80 0D 03 02 [10:47:49]Write to MH i2c: E2 08 00 C5 1E 80 0D 03 02 00 00 00 00 5E [10:47:49]Write i2c OK [10:47:49]MH_I2C_Read... [10:47:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:47:49]Read from MH i2c: E2 [10:47:49]MH_I2C_Read... [10:47:49]Read from MH i2c: E2 0B 00 [10:47:49]MH_I2C_Read... [10:47:49]Read from MH i2c: E2 0B 00 C5 1E 00 6A A1 D0 11 89 22 7B 89 90 00 FA [10:47:49]RAPDU: 6A A1 D0 11 89 22 7B 89 90 00 [10:47:49]wFMCommunicate OK [10:47:49]SAM_PROTO_SignData done [10:47:49]FM_MakeSignedData done [10:47:49]CreateOFDProtocolMessage [10:47:49]wFMCommunicate request_size=4 [10:47:49]MH_SAM_APDU [10:47:49]CAPDU: 80 11 00 00 [10:47:49]Write to MH i2c: E2 08 00 C6 1E 80 11 00 00 00 00 00 00 5E [10:47:49]Write i2c OK [10:47:49]MH_I2C_Read... [10:47:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:49]Read from MH i2c: E2 [10:47:49]MH_I2C_Read... [10:47:49]Read from MH i2c: E2 17 00 [10:47:49]MH_I2C_Read... [10:47:49]Read from MH i2c: E2 17 00 C6 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B9 [10:47:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:47:49]wFMCommunicate OK [10:47:49]CreateOFDProtocolMessage done [10:47:49]OFDSenderStorePacket 119383 [10:47:49]StoreOFDPacket docnum=119383 [10:47:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F4 7B 07 01 E7 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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 72 00 00 00 F4 03 04 00 56 16 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 57 D2 01 00 35 04 06 00 A0 D6 EC 96 5A 47 6A A1 D0 11 89 22 7B 89 [10:47:49]CheckFolder [10:47:49]dirname=/storage/ofd_packets [10:47:49]CheckFolder done [10:47:49]ProducePacketName [10:47:49]name=ofd_packets/00119383 [10:47:49]NVStorageSaveData ofd_packets/00119383 [10:47:49]File name is /storage/ofd_packets/00119383 [10:47:49]Write 301 bytes [10:47:49]NVStorageSaveData done [10:47:49]OFDSenderStorePacket done [10:47:49]KKMCreateOFDPacket done [10:47:49]NVStorageSaveData kkm_last_timestamp [10:47:49]File name is /storage/kkm_last_timestamp [10:47:49]Write 4 bytes [10:47:49]NVStorageSaveData done [10:47:49]ExternCall_PrintAddStr [10:47:49]wPrintStart [10:47:49]Write to MH i2c: 01 00 00 C7 1E E5 [10:47:49]Write i2c OK [10:47:49]MH_I2C_Read... [10:47:49]Read from MH i2c: 01 [10:47:49]MH_I2C_Read... [10:47:49]Read from MH i2c: 01 07 00 [10:47:49]MH_I2C_Read... [10:47:49]Read from MH i2c: 01 07 00 C7 1E 00 00 00 00 00 FF 0F FA [10:47:49]RasterBufferAndPrint [10:47:49]line Счет N : (1)950309 [10:47:49]line ИНН: 02508201610067 [10:47:49]line Контрольно-Кассовый Чек [10:47:49]line ПРОДАЖА [10:47:49]line ТРК (МРК, ГНК) : 31 [10:47:49]line Товар: 2710124130 [10:47:49]line Аи-92-К-4 [10:47:49]line 5.900 * 67.80 [10:47:49]line = 400.02 [10:47:49]line НДС 12% НСП 1% [10:47:49]line > о реализуемом товаре [10:47:49]line ОКРУГЛЕНИЕ: -0.02 [10:47:49]line ИТОГО: 400.00 [10:47:49]line Внесено: 400.00 [10:47:49]line СДАЧА: 0.00 [10:47:49]line НСП 1% : 3.54 [10:47:49]line НДС 12% : 42.48 [10:47:49]line Наличными: 400.00 [10:47:49]line Безнал.: 0.00 [10:47:49]line Место: АЗС № 134 "Партнер Нефть" [10:47:49]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:47:49]line СНО: Общий режим [10:47:49]line Чек 114 31.07.2024 10:47 [10:47:49]line Смена: 436 ФФД: 1.0 [10:47:49]line ЗНМ: 0300000044 [10:47:49]line РНМ: 0000000000092660 [10:47:49]line Версия ККМ: 001 [10:47:49]line ФМ: 0000000000874939 [10:47:49]line ФД: 119383 [10:47:49]line ФПД: 176844952721991 [10:47:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T104750&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119383&fm=176844952721991&tin=02508201610067®Number=0000000000092660&sum=40000 [10:47:50]OFD Sender: Processing packet 119383 [packets to send 86, broken 85] [10:47:50]ProducePacketName [10:47:50]name=ofd_packets/00119383 [10:47:50]OFD Sender: To server: pG, [10:47:50]CommunicateWithHost lk.salyk.kg:30040 [10:47:50]ConnectInit lk.salyk.kg [10:47:50]written 0, free lines is 4095 [10:47:50]Connected sock=10 [10:47:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F4 7B 07 01 E7 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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 72 00 00 00 F4 03 04 00 56 16 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 57 D2 01 00 35 04 06 00 A0 D6 EC 96 5A 47 6A A1 D0 11 89 22 7B 89 [10:47:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 24 F1 47 00 1F 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 39 33 39 10 04 04 00 57 D2 01 00 F4 03 04 00 DF C3 A9 66 B6 04 01 00 00 D7 BF 86 10 C9 5C F6 5F [10:47:50]CommunicateWithHost err = 0 [10:47:50]CheckOFDResponse [10:47:50]1017 (14) - 77093643461234 [10:47:50]1041 (16) - 0000000000874939 [10:47:50]1040 (4) - 119383 [10:47:50]1012 (4) - 31.07.2024 04:55 [10:47:50]1206 (1) - 0 [10:47:50]OFD Sender: Remove packet 119383 [10:47:50]ProducePacketName [10:47:50]name=ofd_packets/00119383 [10:47:50]NVStorageDeleteData [10:47:50]Write to MH i2c: 01 00 00 F1 1E 0F [10:47:50]Write i2c OK [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: 01 [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: 01 07 00 [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: 01 07 00 F1 1E 00 00 00 00 00 D4 0C F6 [10:47:50]RasterBufferAndPrint [10:47:50]line [10:47:50]line [10:47:50]line [10:47:50]line [10:47:50]line [10:47:50]written 0, free lines is 3292 [10:47:50]MH_Cut [10:47:50]Write to MH i2c: D1 01 00 F8 1E 01 E8 [10:47:50]Write i2c OK [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: D1 [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: D1 01 00 [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: D1 01 00 F8 1E 00 E7 [10:47:50]Write to MH i2c: 01 00 00 F9 1E 17 [10:47:50]Write i2c OK [10:47:50]MH_I2C_Read... [10:47:51]OFD Sender: No OFD packet to send [10:47:51]*** Cut start [10:47:51]*** Partial cut [10:47:51]*** CUTSNS_PIN = 1 [10:47:51]*** CUTSNS_PIN = 0 [10:47:51]*** Brake cut motor [10:47:52]Read from MH i2c: 01 [10:47:52]MH_I2C_Read... [10:47:52]*** Stop cut motor [10:47:52]*** Cut end [10:47:52]Read from MH i2c: 01 07 00 [10:47:52]MH_I2C_Read... [10:47:52]Read from MH i2c: 01 07 00 F9 1E 00 00 00 00 00 FF 0F 2C [10:47:52]process_action close_receipt done [10:47:52]requested_data is exist [10:47:52]produce_requested_data [10:47:52]requested_item fm.sn is exist - process it [10:47:52]wFMCommunicate request_size=4 [10:47:52]MH_SAM_APDU [10:47:52]CAPDU: 80 11 00 00 [10:47:52]Write to MH i2c: E2 08 00 FA 1E 80 11 00 00 00 00 00 00 92 [10:47:52]Write i2c OK [10:47:52]MH_I2C_Read... [10:47:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:52]Read from MH i2c: E2 [10:47:52]MH_I2C_Read... [10:47:52]Read from MH i2c: E2 17 00 [10:47:52]MH_I2C_Read... [10:47:52]Read from MH i2c: E2 17 00 FA 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 ED [10:47:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:47:52]wFMCommunicate OK [10:47:52]requested_item fd.num is exist - process it [10:47:52]SAM_PROTO_GetFieldsCounters [10:47:52]wFMCommunicate request_size=4 [10:47:52]MH_SAM_APDU [10:47:52]CAPDU: 80 13 00 00 [10:47:52]Write to MH i2c: E2 08 00 FB 1E 80 13 00 00 00 00 00 00 95 [10:47:52]Write i2c OK [10:47:52]MH_I2C_Read... [10:47:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:52]Read from MH i2c: E2 [10:47:52]MH_I2C_Read... [10:47:52]Read from MH i2c: E2 62 00 [10:47:52]MH_I2C_Read... [10:47:52]Read from MH i2c: E2 62 00 FB 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 57 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [10:47: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 57 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:47:52]wFMCommunicate OK [10:47:52]SAM_PROTO_GetFieldsCounters done [10:47:52]requested_item shift.num is exist - process it [10:47:52]requested_item shift.opened is exist - process it [10:47:52]req_shift_opened [10:47:52]FM_GetShiftState [10:47:52]SAM_PROTO_GetShiftState [10:47:52]wFMCommunicate request_size=4 [10:47:52]MH_SAM_APDU [10:47:52]CAPDU: 80 13 01 00 [10:47:52]Write to MH i2c: E2 08 00 FC 1E 80 13 01 00 00 00 00 00 97 [10:47:52]Write i2c OK [10:47:52]MH_I2C_Read... [10:47:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:52]Read from MH i2c: E2 [10:47:52]MH_I2C_Read... [10:47:52]Read from MH i2c: E2 0E 00 [10:47:52]MH_I2C_Read... [10:47:52]Read from MH i2c: E2 0E 00 FC 1E 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 2F [10:47:52]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:47:52]wFMCommunicate OK [10:47:52]SAM_PROTO_GetShiftState done [10:47:52]FM_GetShiftState done [10:47:52]req_shift_opened done [10:47:52]requested_item shift.open_date is exist - process it [10:47:52]req_shift_open_date [10:47:52]req_shift_open_date done [10:47:52]produce_requested_data done [10:47:52]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119383,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [10:47:52]process_action_free close_receipt [10:47:52]json_value_free [10:47:52]json_value_free done [10:47:52]process_json_proto returns [10:47:52]Send response to host [10:47:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119383,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [10:47:52]free response buf [10:47:52]execute_script done [10:47:52]execute_script returns [10:47:52]free content buf [10:47:52]Sock 8.Close socket [10:47:52]Sock 8.Thread stoped [10:47:56]OFD Sender: No OFD packet to send [10:48:01]OFD Sender: No OFD packet to send [10:48:06]OFD Sender: No OFD packet to send [10:48:11]OFD Sender: No OFD packet to send [10:48:16]OFD Sender: No OFD packet to send [10:48:21]OFD Sender: No OFD packet to send [10:48:26]OFD Sender: No OFD packet to send [10:48:31]OFD Sender: No OFD packet to send [10:48:36]OFD Sender: No OFD packet to send [10:48:41]OFD Sender: No OFD packet to send [10:48:44]accept exits with 9 [10:48:44]New connection [10:48:44]New thread 3067194724 created [10:48:44]Thread 3067338084 joined [10:48:44]Waiting for new connection... [10:48:44] Sock 9.Parse request [10:48:44]Sock 9.Check first char [10:48:44]Sock 9.First char is OK [10:48:44]request: POST /json_proto HTTP/1.0 [10:48:44]Method: POST [10:48:44]URL: /json_proto [10:48:44]Method is POST - this is cgi request [10:48:44]url: /json_proto [10:48:44]query_string will be loaded in cgi processing [10:48:44]execute_cgi json_proto POST (null) [10:48:44]execute_cgi path=json_proto method=POST [10:48:44]POST find Content-Length [10:48:44]Host: 172.17.45.7:8080 [10:48:44]Content-Length: 677 [10:48:44]Content-Type: application/json [10:48:44] [10:48:44]POST finish read [10:48:44]Found Content-Length = 677 [10:48:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:44]execute_script... [10:48: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)950310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:44]POST & json_proto [10:48:44]process_json_proto [10:48:44]json parsed OK: [10:48:44]protocol is kg_v1.0 [10:48:44]action value=close_receipt [10:48:44]process_action close_receipt [10:48:44]cmd_close_receipt [10:48:44]MH_GetDate [10:48:44]Write to MH i2c: F0 00 00 FD 1E 0A [10:48:44]Write i2c OK [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: F0 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: F0 09 00 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: F0 09 00 FD 1E 00 8E 16 AA 66 90 0F 3E 66 0A [10:48:44]GetLastDocTimeStamp 1722422870 [10:48:44]current date 1722422926 [10:48:44]FM_GetShiftState [10:48:44]SAM_PROTO_GetShiftState [10:48:44]wFMCommunicate request_size=4 [10:48:44]MH_SAM_APDU [10:48:44]CAPDU: 80 13 01 00 [10:48:44]Write to MH i2c: E2 08 00 FE 1E 80 13 01 00 00 00 00 00 99 [10:48:44]Write i2c OK [10:48:44]MH_I2C_Read... [10:48:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:44]Read from MH i2c: E2 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: E2 0E 00 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: E2 0E 00 FE 1E 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 31 [10:48:44]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:48:44]wFMCommunicate OK [10:48:44]SAM_PROTO_GetShiftState done [10:48:44]FM_GetShiftState done [10:48:44]opened in 1722384637 [10:48:44]opened+sec_in_day 1722471037 [10:48:44]quantity*price = 30035 [10:48:44]sum+1 = 30036 [10:48:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 115 31.07.2024 10:48 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119384 ФПД: 113236595062260 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T104846&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119384&fm=113236595062260&tin=02508201610067®Number=0000000000092660&sum=30000 [10:48:45]StoreToDocumentArchive [10:48:45]shift 436 fd 119384 [10:48:45]save to /storage/0436/doc_00119384 [10:48:45]save last doc name /storage/0436/doc_00119384 to /storage/kkm_last_doc_name [10:48:45]save OK [10:48:45]Clear old archive folders... [10:48:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:48:45]tlvbuf is B6F38990 [10:48:45]SAM_PROTO_ClearQueue [10:48:45]wFMCommunicate request_size=4 [10:48:45]MH_SAM_APDU [10:48:45]CAPDU: 80 09 00 00 [10:48:45]Write to MH i2c: E2 08 00 0B 1F 80 09 00 00 00 00 00 00 9C [10:48:45]Write i2c OK [10:48:45]MH_I2C_Read... [10:48:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:48:45]Read from MH i2c: E2 [10:48:45]MH_I2C_Read... [10:48:45]Read from MH i2c: E2 03 00 [10:48:45]MH_I2C_Read... [10:48:45]Read from MH i2c: E2 03 00 0B 1F 00 90 00 9E [10:48:45]RAPDU: 90 00 [10:48:45]wFMCommunicate OK [10:48:45]SAM_PROTO_ClearQueue done [10:48:45]KKMCreateOFDPacket [10:48:45]OFDProtocolAddRootSTLVToBuf [10:48:45]FM_MakeSignedData [10:48:45]FM_MakeSignedData [10:48:45]SAM_PROTO_SignData [10:48:45]wFMCommunicate request_size=4 [10:48:45]MH_SAM_APDU [10:48:45]CAPDU: 80 0D 01 02 [10:48:45]Write to MH i2c: E2 08 00 0C 1F 80 0D 01 02 00 00 00 00 A4 [10:48:45]Write i2c OK [10:48:45]MH_I2C_Read... [10:48:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:48:45]Read from MH i2c: E2 [10:48:45]MH_I2C_Read... [10:48:45]Read from MH i2c: E2 03 00 [10:48:45]MH_I2C_Read... [10:48:45]Read from MH i2c: E2 03 00 0C 1F 00 90 00 9F [10:48:45]RAPDU: 90 00 [10:48:45]wFMCommunicate OK [10:48:45]wFMCommunicate request_size=255 [10:48:45]MH_SAM_APDU [10:48:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 8E 16 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 58 D2 01 00 35 04 06 00 66 [10:48:45]Write to MH i2c: E2 02 01 0D 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 8E 16 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 58 D2 01 00 35 04 06 00 66 00 00 B4 [10:48:45]Write i2c OK [10:48:45]MH_I2C_Read... [10:48:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:45]Read from MH i2c: E2 [10:48:45]MH_I2C_Read... [10:48:45]Read from MH i2c: E2 03 00 [10:48:45]MH_I2C_Read... [10:48:45]Read from MH i2c: E2 03 00 0D 1F 00 90 00 A0 [10:48:45]RAPDU: 90 00 [10:48:45]wFMCommunicate OK [10:48:45]wFMCommunicate request_size=10 [10:48:45]MH_SAM_APDU [10:48:45]CAPDU: 80 0D 02 02 05 FC F3 06 35 F4 [10:48:45]Write to MH i2c: E2 0D 00 0E 1F 80 0D 02 02 05 00 FC F3 06 35 F4 00 00 CF [10:48:45]Write i2c OK [10:48:45]MH_I2C_Read... [10:48:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:45]Read from MH i2c: E2 [10:48:45]MH_I2C_Read... [10:48:45]Read from MH i2c: E2 03 00 [10:48:45]MH_I2C_Read... [10:48:45]Read from MH i2c: E2 03 00 0E 1F 00 90 00 A1 [10:48:45]RAPDU: 90 00 [10:48:45]wFMCommunicate OK [10:48:45]wFMCommunicate request_size=4 [10:48:45]MH_SAM_APDU [10:48:45]CAPDU: 80 0D 03 02 [10:48:45]Write to MH i2c: E2 08 00 0F 1F 80 0D 03 02 00 00 00 00 A9 [10:48:45]Write i2c OK [10:48:45]MH_I2C_Read... [10:48:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:48:45]Read from MH i2c: E2 [10:48:45]MH_I2C_Read... [10:48:45]Read from MH i2c: E2 0B 00 [10:48:45]MH_I2C_Read... [10:48:45]Read from MH i2c: E2 0B 00 0F 1F 00 04 68 E6 47 A9 76 61 27 90 00 EA [10:48:45]RAPDU: 04 68 E6 47 A9 76 61 27 90 00 [10:48:45]wFMCommunicate OK [10:48:45]SAM_PROTO_SignData done [10:48:45]FM_MakeSignedData done [10:48:45]CreateOFDProtocolMessage [10:48:45]wFMCommunicate request_size=4 [10:48:45]MH_SAM_APDU [10:48:45]CAPDU: 80 11 00 00 [10:48:45]Write to MH i2c: E2 08 00 10 1F 80 11 00 00 00 00 00 00 A9 [10:48:45]Write i2c OK [10:48:45]MH_I2C_Read... [10:48:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:45]Read from MH i2c: E2 [10:48:45]MH_I2C_Read... [10:48:45]Read from MH i2c: E2 17 00 [10:48:45]MH_I2C_Read... [10:48:45]Read from MH i2c: E2 17 00 10 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 04 [10:48:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:48:45]wFMCommunicate OK [10:48:45]CreateOFDProtocolMessage done [10:48:45]OFDSenderStorePacket 119384 [10:48:45]StoreOFDPacket docnum=119384 [10:48:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 91 E4 07 01 8F 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 8E 16 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 58 D2 01 00 35 04 06 00 66 FC F3 06 35 F4 04 68 E6 47 A9 76 61 27 [10:48:45]CheckFolder [10:48:45]dirname=/storage/ofd_packets [10:48:45]CheckFolder done [10:48:45]ProducePacketName [10:48:45]name=ofd_packets/00119384 [10:48:45]NVStorageSaveData ofd_packets/00119384 [10:48:45]File name is /storage/ofd_packets/00119384 [10:48:45]Write 301 bytes [10:48:45]NVStorageSaveData done [10:48:45]OFDSenderStorePacket done [10:48:45]KKMCreateOFDPacket done [10:48:45]NVStorageSaveData kkm_last_timestamp [10:48:45]File name is /storage/kkm_last_timestamp [10:48:45]Write 4 bytes [10:48:45]NVStorageSaveData done [10:48:45]OFD Sender: Processing packet 119384 [packets to send 86, broken 85] [10:48:45]ProducePacketName [10:48:45]name=ofd_packets/00119384 [10:48:45]OFD Sender: To server: pG, [10:48:45]CommunicateWithHost lk.salyk.kg:30040 [10:48:45]ConnectInit lk.salyk.kg [10:48:45]ExternCall_PrintAddStr [10:48:45]wPrintStart [10:48:45]Write to MH i2c: 01 00 00 11 1F 30 [10:48:45]Write i2c OK [10:48:45]MH_I2C_Read... [10:48:45]Read from MH i2c: 01 [10:48:45]MH_I2C_Read... [10:48:45]Read from MH i2c: 01 07 00 [10:48:45]MH_I2C_Read... [10:48:45]Read from MH i2c: 01 07 00 11 1F 00 00 00 00 00 FF 0F 45 [10:48:45]RasterBufferAndPrint [10:48:45]line Счет N : (1)950310 [10:48:45]line ИНН: 02508201610067 [10:48:45]line Контрольно-Кассовый Чек [10:48:45]line ПРОДАЖА [10:48:45]line ТРК (МРК, ГНК) : 41 [10:48:45]line Товар: 2710124130 [10:48:45]line Аи-92-К-4 [10:48:45]line 4.430 * 67.80 [10:48:45]line = 300.35 [10:48:45]line НДС 12% НСП 1% [10:48:45]line > о реализуемом товаре [10:48:45]line ОКРУГЛЕНИЕ: -0.35 [10:48:45]line ИТОГО: 300.00 [10:48:45]line Внесено: 300.00 [10:48:45]line СДАЧА: 0.00 [10:48:45]line НСП 1% : 2.66 [10:48:45]line НДС 12% : 31.90 [10:48:45]line Наличными: 300.00 [10:48:45]line Безнал.: 0.00 [10:48:45]line Место: АЗС № 134 "Партнер Нефть" [10:48:45]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:48:45]line СНО: Общий режим [10:48:45]line Чек 115 31.07.2024 10:48 [10:48:45]line Смена: 436 ФФД: 1.0 [10:48:45]line ЗНМ: 0300000044 [10:48:45]line РНМ: 0000000000092660 [10:48:45]line Версия ККМ: 001 [10:48:45]line ФМ: 0000000000874939 [10:48:45]line ФД: 119384 [10:48:45]line ФПД: 113236595062260 [10:48:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T104846&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119384&fm=113236595062260&tin=02508201610067®Number=0000000000092660&sum=30000 [10:48:46]Connected sock=11 [10:48:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 91 E4 07 01 8F 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 8E 16 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 58 D2 01 00 35 04 06 00 66 FC F3 06 35 F4 04 68 E6 47 A9 76 61 27 [10:48:46]written 0, free lines is 4095 [10:48:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 79 60 47 00 59 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 39 33 39 10 04 04 00 58 D2 01 00 F4 03 04 00 17 C4 A9 66 B6 04 01 00 00 25 F5 0E A6 50 2C 3D C2 [10:48:46]CommunicateWithHost err = 0 [10:48:46]CheckOFDResponse [10:48:46]1017 (14) - 77093643461234 [10:48:46]1041 (16) - 0000000000874939 [10:48:46]1040 (4) - 119384 [10:48:46]1012 (4) - 31.07.2024 04:56 [10:48:46]1206 (1) - 0 [10:48:46]OFD Sender: Remove packet 119384 [10:48:46]ProducePacketName [10:48:46]name=ofd_packets/00119384 [10:48:46]NVStorageDeleteData [10:48:46]Write to MH i2c: 01 00 00 3B 1F 5A [10:48:46]Write i2c OK [10:48:46]MH_I2C_Read... [10:48:46]Read from MH i2c: 01 [10:48:46]MH_I2C_Read... [10:48:46]Read from MH i2c: 01 07 00 [10:48:46]MH_I2C_Read... [10:48:46]Read from MH i2c: 01 07 00 3B 1F 00 00 00 00 00 DC 0C 49 [10:48:46]RasterBufferAndPrint [10:48:46]line [10:48:46]line [10:48:46]line [10:48:46]line [10:48:46]line [10:48:46]written 0, free lines is 3298 [10:48:46]MH_Cut [10:48:46]Write to MH i2c: D1 01 00 42 1F 01 33 [10:48:46]Write i2c OK [10:48:46]MH_I2C_Read... [10:48:46]Read from MH i2c: D1 [10:48:46]MH_I2C_Read... [10:48:46]Read from MH i2c: D1 01 00 [10:48:46]MH_I2C_Read... [10:48:46]Read from MH i2c: D1 01 00 42 1F 00 32 [10:48:46]Write to MH i2c: 01 00 00 43 1F 62 [10:48:46]Write i2c OK [10:48:46]MH_I2C_Read... [10:48:47]OFD Sender: No OFD packet to send [10:48:47]*** Cut start [10:48:47]*** Partial cut [10:48:47]*** CUTSNS_PIN = 1 [10:48:47]*** CUTSNS_PIN = 0 [10:48:47]*** Brake cut motor [10:48:48]Read from MH i2c: 01 [10:48:48]MH_I2C_Read... [10:48:48]*** Stop cut motor [10:48:48]*** Cut end [10:48:48]Read from MH i2c: 01 07 00 [10:48:48]MH_I2C_Read... [10:48:48]Read from MH i2c: 01 07 00 43 1F 00 00 00 00 00 FF 0F 77 [10:48:48]process_action close_receipt done [10:48:48]requested_data is exist [10:48:48]produce_requested_data [10:48:48]requested_item fm.sn is exist - process it [10:48:48]wFMCommunicate request_size=4 [10:48:48]MH_SAM_APDU [10:48:48]CAPDU: 80 11 00 00 [10:48:48]Write to MH i2c: E2 08 00 44 1F 80 11 00 00 00 00 00 00 DD [10:48:48]Write i2c OK [10:48:48]MH_I2C_Read... [10:48:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:48]Read from MH i2c: E2 [10:48:48]MH_I2C_Read... [10:48:48]Read from MH i2c: E2 17 00 [10:48:48]MH_I2C_Read... [10:48:48]Read from MH i2c: E2 17 00 44 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 38 [10:48:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:48:48]wFMCommunicate OK [10:48:48]requested_item fd.num is exist - process it [10:48:48]SAM_PROTO_GetFieldsCounters [10:48:48]wFMCommunicate request_size=4 [10:48:48]MH_SAM_APDU [10:48:48]CAPDU: 80 13 00 00 [10:48:48]Write to MH i2c: E2 08 00 45 1F 80 13 00 00 00 00 00 00 E0 [10:48:48]Write i2c OK [10:48:48]MH_I2C_Read... [10:48:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:48]Read from MH i2c: E2 [10:48:48]MH_I2C_Read... [10:48:48]Read from MH i2c: E2 62 00 [10:48:48]MH_I2C_Read... [10:48:48]Read from MH i2c: E2 62 00 45 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 58 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [10:48: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 58 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:48:48]wFMCommunicate OK [10:48:48]SAM_PROTO_GetFieldsCounters done [10:48:48]requested_item shift.num is exist - process it [10:48:48]requested_item shift.opened is exist - process it [10:48:48]req_shift_opened [10:48:48]FM_GetShiftState [10:48:48]SAM_PROTO_GetShiftState [10:48:48]wFMCommunicate request_size=4 [10:48:48]MH_SAM_APDU [10:48:48]CAPDU: 80 13 01 00 [10:48:48]Write to MH i2c: E2 08 00 46 1F 80 13 01 00 00 00 00 00 E2 [10:48:48]Write i2c OK [10:48:48]MH_I2C_Read... [10:48:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:48]Read from MH i2c: E2 [10:48:48]MH_I2C_Read... [10:48:48]Read from MH i2c: E2 0E 00 [10:48:48]MH_I2C_Read... [10:48:48]Read from MH i2c: E2 0E 00 46 1F 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 7A [10:48:48]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:48:48]wFMCommunicate OK [10:48:48]SAM_PROTO_GetShiftState done [10:48:48]FM_GetShiftState done [10:48:48]req_shift_opened done [10:48:48]requested_item shift.open_date is exist - process it [10:48:48]req_shift_open_date [10:48:48]req_shift_open_date done [10:48:48]produce_requested_data done [10:48:48]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119384,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [10:48:48]process_action_free close_receipt [10:48:48]json_value_free [10:48:48]json_value_free done [10:48:48]process_json_proto returns [10:48:48]Send response to host [10:48:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119384,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [10:48:48]free response buf [10:48:48]execute_script done [10:48:48]execute_script returns [10:48:48]free content buf [10:48:48]Sock 9.Close socket [10:48:48]Sock 9.Thread stoped [10:48:52]OFD Sender: No OFD packet to send [10:48:55]accept exits with 8 [10:48:55]New connection [10:48:55]New thread 3067338084 created [10:48:55]Thread 3067194724 joined [10:48:55]Waiting for new connection... [10:48:55] Sock 8.Parse request [10:48:55]Sock 8.Check first char [10:48:55]Sock 8.First char is OK [10:48:55]request: POST /json_proto HTTP/1.0 [10:48:55]Method: POST [10:48:55]URL: /json_proto [10:48:55]Method is POST - this is cgi request [10:48:55]url: /json_proto [10:48:55]query_string will be loaded in cgi processing [10:48:55]execute_cgi json_proto POST (null) [10:48:55]execute_cgi path=json_proto method=POST [10:48:55]POST find Content-Length [10:48:55]Host: 172.17.45.7:8080 [10:48:55]Content-Length: 677 [10:48:55]Content-Type: application/json [10:48:55] [10:48:55]POST finish read [10:48:55]Found Content-Length = 677 [10:48:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:55]execute_script... [10:48: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)950311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:55]POST & json_proto [10:48:55]process_json_proto [10:48:55]json parsed OK: [10:48:55]protocol is kg_v1.0 [10:48:55]action value=close_receipt [10:48:55]process_action close_receipt [10:48:55]cmd_close_receipt [10:48:55]MH_GetDate [10:48:55]Write to MH i2c: F0 00 00 47 1F 55 [10:48:55]Write i2c OK [10:48:55]MH_I2C_Read... [10:48:55]Read from MH i2c: F0 [10:48:55]MH_I2C_Read... [10:48:55]Read from MH i2c: F0 09 00 [10:48:55]MH_I2C_Read... [10:48:55]Read from MH i2c: F0 09 00 47 1F 00 99 16 AA 66 90 0F 3E 66 60 [10:48:55]GetLastDocTimeStamp 1722422926 [10:48:55]current date 1722422937 [10:48:55]FM_GetShiftState [10:48:55]SAM_PROTO_GetShiftState [10:48:55]wFMCommunicate request_size=4 [10:48:55]MH_SAM_APDU [10:48:55]CAPDU: 80 13 01 00 [10:48:55]Write to MH i2c: E2 08 00 48 1F 80 13 01 00 00 00 00 00 E4 [10:48:55]Write i2c OK [10:48:55]MH_I2C_Read... [10:48:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:55]Read from MH i2c: E2 [10:48:55]MH_I2C_Read... [10:48:55]Read from MH i2c: E2 0E 00 [10:48:55]MH_I2C_Read... [10:48:55]Read from MH i2c: E2 0E 00 48 1F 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 7C [10:48:55]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:48:55]wFMCommunicate OK [10:48:55]SAM_PROTO_GetShiftState done [10:48:55]FM_GetShiftState done [10:48:55]opened in 1722384637 [10:48:55]opened+sec_in_day 1722471037 [10:48:55]quantity*price = 40002 [10:48:55]sum+1 = 40003 [10:48:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 116 31.07.2024 10:48 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119385 ФПД: 1403082204862 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T104858&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119385&fm=1403082204862&tin=02508201610067®Number=0000000000092660&sum=40000 [10:48:57]StoreToDocumentArchive [10:48:57]shift 436 fd 119385 [10:48:57]save to /storage/0436/doc_00119385 [10:48:57]save last doc name /storage/0436/doc_00119385 to /storage/kkm_last_doc_name [10:48:57]save OK [10:48:57]Clear old archive folders... [10:48:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:48:57]tlvbuf is 00B00330 [10:48:57]SAM_PROTO_ClearQueue [10:48:57]wFMCommunicate request_size=4 [10:48:57]MH_SAM_APDU [10:48:57]CAPDU: 80 09 00 00 [10:48:57]Write to MH i2c: E2 08 00 55 1F 80 09 00 00 00 00 00 00 E6 [10:48:57]Write i2c OK [10:48:57]MH_I2C_Read... [10:48:57]OFD Sender: No OFD packet to send [10:48:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:48:57]Read from MH i2c: E2 [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: E2 03 00 [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: E2 03 00 55 1F 00 90 00 E8 [10:48:57]RAPDU: 90 00 [10:48:57]wFMCommunicate OK [10:48:57]SAM_PROTO_ClearQueue done [10:48:57]KKMCreateOFDPacket [10:48:57]OFDProtocolAddRootSTLVToBuf [10:48:57]FM_MakeSignedData [10:48:57]FM_MakeSignedData [10:48:57]SAM_PROTO_SignData [10:48:57]wFMCommunicate request_size=4 [10:48:57]MH_SAM_APDU [10:48:57]CAPDU: 80 0D 01 02 [10:48:57]Write to MH i2c: E2 08 00 56 1F 80 0D 01 02 00 00 00 00 EE [10:48:57]Write i2c OK [10:48:57]MH_I2C_Read... [10:48:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:48:57]Read from MH i2c: E2 [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: E2 03 00 [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: E2 03 00 56 1F 00 90 00 E9 [10:48:57]RAPDU: 90 00 [10:48:57]wFMCommunicate OK [10:48:57]wFMCommunicate request_size=255 [10:48:57]MH_SAM_APDU [10:48:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 74 00 00 00 F4 03 04 00 9A 16 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 59 D2 01 00 35 04 06 00 01 [10:48:57]Write to MH i2c: E2 02 01 57 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 74 00 00 00 F4 03 04 00 9A 16 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 59 D2 01 00 35 04 06 00 01 00 00 6D [10:48:57]Write i2c OK [10:48:57]MH_I2C_Read... [10:48:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:57]Read from MH i2c: E2 [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: E2 03 00 [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: E2 03 00 57 1F 00 90 00 EA [10:48:57]RAPDU: 90 00 [10:48:57]wFMCommunicate OK [10:48:57]wFMCommunicate request_size=10 [10:48:57]MH_SAM_APDU [10:48:57]CAPDU: 80 0D 02 02 05 46 AE 37 66 BE [10:48:57]Write to MH i2c: E2 0D 00 58 1F 80 0D 02 02 05 00 46 AE 37 66 BE 00 00 4A [10:48:57]Write i2c OK [10:48:57]MH_I2C_Read... [10:48:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:57]Read from MH i2c: E2 [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: E2 03 00 [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: E2 03 00 58 1F 00 90 00 EB [10:48:57]RAPDU: 90 00 [10:48:57]wFMCommunicate OK [10:48:57]wFMCommunicate request_size=4 [10:48:57]MH_SAM_APDU [10:48:57]CAPDU: 80 0D 03 02 [10:48:57]Write to MH i2c: E2 08 00 59 1F 80 0D 03 02 00 00 00 00 F3 [10:48:57]Write i2c OK [10:48:57]MH_I2C_Read... [10:48:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:48:57]Read from MH i2c: E2 [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: E2 0B 00 [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: E2 0B 00 59 1F 00 BD F3 20 D1 44 A0 67 AD 90 00 8D [10:48:57]RAPDU: BD F3 20 D1 44 A0 67 AD 90 00 [10:48:57]wFMCommunicate OK [10:48:57]SAM_PROTO_SignData done [10:48:57]FM_MakeSignedData done [10:48:57]CreateOFDProtocolMessage [10:48:57]wFMCommunicate request_size=4 [10:48:57]MH_SAM_APDU [10:48:57]CAPDU: 80 11 00 00 [10:48:57]Write to MH i2c: E2 08 00 5A 1F 80 11 00 00 00 00 00 00 F3 [10:48:57]Write i2c OK [10:48:57]MH_I2C_Read... [10:48:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:57]Read from MH i2c: E2 [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: E2 17 00 [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: E2 17 00 5A 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4E [10:48:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:48:57]wFMCommunicate OK [10:48:57]CreateOFDProtocolMessage done [10:48:57]OFDSenderStorePacket 119385 [10:48:57]StoreOFDPacket docnum=119385 [10:48:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 DF 05 07 01 F3 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 74 00 00 00 F4 03 04 00 9A 16 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 59 D2 01 00 35 04 06 00 01 46 AE 37 66 BE BD F3 20 D1 44 A0 67 AD [10:48:57]CheckFolder [10:48:57]dirname=/storage/ofd_packets [10:48:57]CheckFolder done [10:48:57]ProducePacketName [10:48:57]name=ofd_packets/00119385 [10:48:57]NVStorageSaveData ofd_packets/00119385 [10:48:57]File name is /storage/ofd_packets/00119385 [10:48:57]Write 301 bytes [10:48:57]NVStorageSaveData done [10:48:57]OFDSenderStorePacket done [10:48:57]KKMCreateOFDPacket done [10:48:57]NVStorageSaveData kkm_last_timestamp [10:48:57]File name is /storage/kkm_last_timestamp [10:48:57]Write 4 bytes [10:48:57]NVStorageSaveData done [10:48:57]ExternCall_PrintAddStr [10:48:57]wPrintStart [10:48:57]Write to MH i2c: 01 00 00 5B 1F 7A [10:48:57]Write i2c OK [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: 01 [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: 01 07 00 [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: 01 07 00 5B 1F 00 00 00 00 00 FF 0F 8F [10:48:57]RasterBufferAndPrint [10:48:57]line Счет N : (1)950311 [10:48:57]line ИНН: 02508201610067 [10:48:57]line Контрольно-Кассовый Чек [10:48:57]line ПРОДАЖА [10:48:57]line ТРК (МРК, ГНК) : 51 [10:48:57]line Товар: 2710124130 [10:48:57]line Аи-92-К-4 [10:48:57]line 5.900 * 67.80 [10:48:57]line = 400.02 [10:48:57]line НДС 12% НСП 1% [10:48:57]line > о реализуемом товаре [10:48:57]line ОКРУГЛЕНИЕ: -0.02 [10:48:57]line ИТОГО: 400.00 [10:48:57]line Внесено: 400.00 [10:48:57]line СДАЧА: 0.00 [10:48:57]line НСП 1% : 3.54 [10:48:57]line НДС 12% : 42.48 [10:48:57]line Наличными: 400.00 [10:48:57]line Безнал.: 0.00 [10:48:57]line Место: АЗС № 134 "Партнер Нефть" [10:48:57]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:48:57]line СНО: Общий режим [10:48:57]line Чек 116 31.07.2024 10:48 [10:48:57]line Смена: 436 ФФД: 1.0 [10:48:57]line ЗНМ: 0300000044 [10:48:57]line РНМ: 0000000000092660 [10:48:57]line Версия ККМ: 001 [10:48:57]line ФМ: 0000000000874939 [10:48:57]line ФД: 119385 [10:48:57]line ФПД: 1403082204862 [10:48:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T104858&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119385&fm=1403082204862&tin=02508201610067®Number=0000000000092660&sum=40000 [10:48:57]written 0, free lines is 4095 [10:48:57]OFD Sender: Processing packet 119385 [packets to send 86, broken 85] [10:48:57]ProducePacketName [10:48:57]name=ofd_packets/00119385 [10:48:57]OFD Sender: To server: pG, [10:48:57]CommunicateWithHost lk.salyk.kg:30040 [10:48:57]ConnectInit lk.salyk.kg [10:48:57]Connected sock=10 [10:48: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 39 33 39 0F 01 00 00 DF 05 07 01 F3 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 74 00 00 00 F4 03 04 00 9A 16 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 59 D2 01 00 35 04 06 00 01 46 AE 37 66 BE BD F3 20 D1 44 A0 67 AD [10:48:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 CD 81 47 00 6F 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 59 D2 01 00 F4 03 04 00 22 C4 A9 66 B6 04 01 00 00 63 8A 1E 2B 3A DF 04 E0 [10:48:57]CommunicateWithHost err = 0 [10:48:57]CheckOFDResponse [10:48:57]1017 (14) - 77093643461234 [10:48:57]1041 (16) - 0000000000874939 [10:48:57]1040 (4) - 119385 [10:48:57]1012 (4) - 31.07.2024 04:57 [10:48:57]1206 (1) - 0 [10:48:57]OFD Sender: Remove packet 119385 [10:48:57]ProducePacketName [10:48:57]name=ofd_packets/00119385 [10:48:57]NVStorageDeleteData [10:48:58]Write to MH i2c: 01 00 00 85 1F A4 [10:48:58]Write i2c OK [10:48:58]MH_I2C_Read... [10:48:58]Read from MH i2c: 01 [10:48:58]MH_I2C_Read... [10:48:58]Read from MH i2c: 01 07 00 [10:48:58]MH_I2C_Read... [10:48:58]Read from MH i2c: 01 07 00 85 1F 00 00 00 00 00 E2 0C 99 [10:48:58]RasterBufferAndPrint [10:48:58]line [10:48:58]line [10:48:58]line [10:48:58]line [10:48:58]line [10:48:58]written 0, free lines is 3304 [10:48:58]MH_Cut [10:48:58]Write to MH i2c: D1 01 00 8C 1F 01 7D [10:48:58]Write i2c OK [10:48:58]MH_I2C_Read... [10:48:58]Read from MH i2c: D1 [10:48:58]MH_I2C_Read... [10:48:58]Read from MH i2c: D1 01 00 [10:48:58]MH_I2C_Read... [10:48:58]Read from MH i2c: D1 01 00 8C 1F 00 7C [10:48:58]Write to MH i2c: 01 00 00 8D 1F AC [10:48:58]Write i2c OK [10:48:58]MH_I2C_Read... [10:48:58]OFD Sender: No OFD packet to send [10:48:58]*** Cut start [10:48:58]*** Partial cut [10:48:58]*** CUTSNS_PIN = 1 [10:48:58]*** CUTSNS_PIN = 0 [10:48:58]*** Brake cut motor [10:48:59]Read from MH i2c: 01 [10:48:59]MH_I2C_Read... [10:48:59]*** Stop cut motor [10:48:59]*** Cut end [10:48:59]Read from MH i2c: 01 07 00 [10:48:59]MH_I2C_Read... [10:48:59]Read from MH i2c: 01 07 00 8D 1F 00 00 00 00 00 FF 0F C1 [10:48:59]process_action close_receipt done [10:48:59]requested_data is exist [10:48:59]produce_requested_data [10:48:59]requested_item fm.sn is exist - process it [10:48:59]wFMCommunicate request_size=4 [10:48:59]MH_SAM_APDU [10:48:59]CAPDU: 80 11 00 00 [10:48:59]Write to MH i2c: E2 08 00 8E 1F 80 11 00 00 00 00 00 00 27 [10:48:59]Write i2c OK [10:48:59]MH_I2C_Read... [10:48:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:59]Read from MH i2c: E2 [10:48:59]MH_I2C_Read... [10:48:59]Read from MH i2c: E2 17 00 [10:48:59]MH_I2C_Read... [10:48:59]Read from MH i2c: E2 17 00 8E 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 82 [10:48:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:48:59]wFMCommunicate OK [10:48:59]requested_item fd.num is exist - process it [10:48:59]SAM_PROTO_GetFieldsCounters [10:48:59]wFMCommunicate request_size=4 [10:48:59]MH_SAM_APDU [10:48:59]CAPDU: 80 13 00 00 [10:48:59]Write to MH i2c: E2 08 00 8F 1F 80 13 00 00 00 00 00 00 2A [10:48:59]Write i2c OK [10:48:59]MH_I2C_Read... [10:48:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:59]Read from MH i2c: E2 [10:48:59]MH_I2C_Read... [10:48:59]Read from MH i2c: E2 62 00 [10:48:59]MH_I2C_Read... [10:48:59]Read from MH i2c: E2 62 00 8F 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 59 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [10:48: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 59 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:48:59]wFMCommunicate OK [10:48:59]SAM_PROTO_GetFieldsCounters done [10:48:59]requested_item shift.num is exist - process it [10:48:59]requested_item shift.opened is exist - process it [10:48:59]req_shift_opened [10:48:59]FM_GetShiftState [10:48:59]SAM_PROTO_GetShiftState [10:48:59]wFMCommunicate request_size=4 [10:48:59]MH_SAM_APDU [10:48:59]CAPDU: 80 13 01 00 [10:48:59]Write to MH i2c: E2 08 00 90 1F 80 13 01 00 00 00 00 00 2C [10:48:59]Write i2c OK [10:48:59]MH_I2C_Read... [10:48:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:59]Read from MH i2c: E2 [10:48:59]MH_I2C_Read... [10:48:59]Read from MH i2c: E2 0E 00 [10:48:59]MH_I2C_Read... [10:48:59]Read from MH i2c: E2 0E 00 90 1F 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 C4 [10:48:59]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:48:59]wFMCommunicate OK [10:48:59]SAM_PROTO_GetShiftState done [10:48:59]FM_GetShiftState done [10:48:59]req_shift_opened done [10:48:59]requested_item shift.open_date is exist - process it [10:48:59]req_shift_open_date [10:48:59]req_shift_open_date done [10:48:59]produce_requested_data done [10:48:59]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119385,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [10:48:59]process_action_free close_receipt [10:48:59]json_value_free [10:48:59]json_value_free done [10:48:59]process_json_proto returns [10:48:59]Send response to host [10:48:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119385,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [10:48:59]free response buf [10:48:59]execute_script done [10:48:59]execute_script returns [10:48:59]free content buf [10:48:59]Sock 8.Close socket [10:48:59]Sock 8.Thread stoped [10:49:03]OFD Sender: No OFD packet to send [10:49:08]OFD Sender: No OFD packet to send [10:49:13]OFD Sender: No OFD packet to send [10:49:18]OFD Sender: No OFD packet to send [10:49:23]OFD Sender: No OFD packet to send [10:49:28]OFD Sender: No OFD packet to send [10:49:33]OFD Sender: No OFD packet to send [10:49:38]OFD Sender: No OFD packet to send [10:49:43]OFD Sender: No OFD packet to send [10:49:48]OFD Sender: No OFD packet to send [10:49:53]OFD Sender: No OFD packet to send [10:49:58]OFD Sender: No OFD packet to send [10:50:03]OFD Sender: No OFD packet to send [10:50:08]OFD Sender: No OFD packet to send [10:50:13]OFD Sender: No OFD packet to send [10:50:18]OFD Sender: No OFD packet to send [10:50:23]OFD Sender: No OFD packet to send [10:50:28]OFD Sender: No OFD packet to send [10:50:33]OFD Sender: No OFD packet to send [10:50:38]OFD Sender: No OFD packet to send [10:50:43]OFD Sender: No OFD packet to send [10:50:48]OFD Sender: No OFD packet to send [10:50:53]OFD Sender: No OFD packet to send [10:50:58]OFD Sender: No OFD packet to send [10:51:03]OFD Sender: No OFD packet to send [10:51:08]OFD Sender: No OFD packet to send [10:51:13]OFD Sender: No OFD packet to send [10:51:18]OFD Sender: No OFD packet to send [10:51:23]OFD Sender: No OFD packet to send [10:51:28]OFD Sender: No OFD packet to send [10:51:33]OFD Sender: No OFD packet to send [10:51:38]OFD Sender: No OFD packet to send [10:51:43]OFD Sender: No OFD packet to send [10:51:48]OFD Sender: No OFD packet to send [10:51:53]OFD Sender: No OFD packet to send [10:51:58]OFD Sender: No OFD packet to send [10:52:03]OFD Sender: No OFD packet to send [10:52:08]OFD Sender: No OFD packet to send [10:52:13]OFD Sender: No OFD packet to send [10:52:18]OFD Sender: No OFD packet to send [10:52:23]OFD Sender: No OFD packet to send [10:52:28]OFD Sender: No OFD packet to send [10:52:33]OFD Sender: No OFD packet to send [10:52:38]OFD Sender: No OFD packet to send [10:52:43]OFD Sender: No OFD packet to send [10:52:48]OFD Sender: No OFD packet to send [10:52:53]OFD Sender: No OFD packet to send [10:52:58]OFD Sender: No OFD packet to send [10:53:03]OFD Sender: No OFD packet to send [10:53:08]OFD Sender: No OFD packet to send [10:53:13]OFD Sender: No OFD packet to send [10:53:18]OFD Sender: No OFD packet to send [10:53: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:55:03]OFD Sender: No OFD packet to send [10:55:08]OFD Sender: No OFD packet to send [10:55:12]accept exits with 9 [10:55:12]New connection [10:55:12]New thread 3067194724 created [10:55:12]Thread 3067338084 joined [10:55:12]Waiting for new connection... [10:55:12] Sock 9.Parse request [10:55:12]Sock 9.Check first char [10:55:12]Sock 9.First char is OK [10:55:12]request: POST /json_proto HTTP/1.0 [10:55:12]Method: POST [10:55:12]URL: /json_proto [10:55:12]Method is POST - this is cgi request [10:55:12]url: /json_proto [10:55:12]query_string will be loaded in cgi processing [10:55:12]execute_cgi json_proto POST (null) [10:55:12]execute_cgi path=json_proto method=POST [10:55:12]POST find Content-Length [10:55:12]Host: 172.17.45.7:8080 [10:55:12]Content-Length: 682 [10:55:12]Content-Type: application/json [10:55:12] [10:55:12]POST finish read [10:55:12]Found Content-Length = 682 [10:55:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:12]execute_script... [10:55: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)950312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:12]POST & json_proto [10:55:12]process_json_proto [10:55:12]json parsed OK: [10:55:12]protocol is kg_v1.0 [10:55:12]action value=close_receipt [10:55:12]process_action close_receipt [10:55:12]cmd_close_receipt [10:55:12]MH_GetDate [10:55:12]Write to MH i2c: F0 00 00 91 1F 9F [10:55:12]Write i2c OK [10:55:12]MH_I2C_Read... [10:55:12]Read from MH i2c: F0 [10:55:12]MH_I2C_Read... [10:55:12]Read from MH i2c: F0 09 00 [10:55:12]MH_I2C_Read... [10:55:12]Read from MH i2c: F0 09 00 91 1F 00 12 18 AA 66 90 0F 3E 66 25 [10:55:12]GetLastDocTimeStamp 1722422938 [10:55:12]current date 1722423314 [10:55:12]FM_GetShiftState [10:55:12]SAM_PROTO_GetShiftState [10:55:12]wFMCommunicate request_size=4 [10:55:12]MH_SAM_APDU [10:55:12]CAPDU: 80 13 01 00 [10:55:12]Write to MH i2c: E2 08 00 92 1F 80 13 01 00 00 00 00 00 2E [10:55:12]Write i2c OK [10:55:12]MH_I2C_Read... [10:55:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:12]Read from MH i2c: E2 [10:55:12]MH_I2C_Read... [10:55:12]Read from MH i2c: E2 0E 00 [10:55:12]MH_I2C_Read... [10:55:12]Read from MH i2c: E2 0E 00 92 1F 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 C6 [10:55:12]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:55:12]wFMCommunicate OK [10:55:12]SAM_PROTO_GetShiftState done [10:55:12]FM_GetShiftState done [10:55:12]opened in 1722384637 [10:55:12]opened+sec_in_day 1722471037 [10:55:12]quantity*price = 100005 [10:55:12]sum+1 = 100006 [10:55:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 117 31.07.2024 10:55 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119386 ФПД: 7924981575633 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T105514&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119386&fm=7924981575633&tin=02508201610067®Number=0000000000092660&sum=100000 [10:55:13]StoreToDocumentArchive [10:55:13]shift 436 fd 119386 [10:55:13]save to /storage/0436/doc_00119386 [10:55:13]save last doc name /storage/0436/doc_00119386 to /storage/kkm_last_doc_name [10:55:13]save OK [10:55:13]Clear old archive folders... [10:55:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:55:13]tlvbuf is 00B0BEB0 [10:55:13]SAM_PROTO_ClearQueue [10:55:13]wFMCommunicate request_size=4 [10:55:13]MH_SAM_APDU [10:55:13]CAPDU: 80 09 00 00 [10:55:13]Write to MH i2c: E2 08 00 9F 1F 80 09 00 00 00 00 00 00 30 [10:55:13]Write i2c OK [10:55:13]MH_I2C_Read... [10:55:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:55:13]Read from MH i2c: E2 [10:55:13]MH_I2C_Read... [10:55:13]Read from MH i2c: E2 03 00 [10:55:13]MH_I2C_Read... [10:55:13]Read from MH i2c: E2 03 00 9F 1F 00 90 00 32 [10:55:13]RAPDU: 90 00 [10:55:13]wFMCommunicate OK [10:55:13]SAM_PROTO_ClearQueue done [10:55:13]KKMCreateOFDPacket [10:55:13]OFDProtocolAddRootSTLVToBuf [10:55:13]FM_MakeSignedData [10:55:13]FM_MakeSignedData [10:55:13]SAM_PROTO_SignData [10:55:13]wFMCommunicate request_size=4 [10:55:13]MH_SAM_APDU [10:55:13]CAPDU: 80 0D 01 02 [10:55:13]Write to MH i2c: E2 08 00 A0 1F 80 0D 01 02 00 00 00 00 38 [10:55:13]Write i2c OK [10:55:13]MH_I2C_Read... [10:55:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:55:13]Read from MH i2c: E2 [10:55:13]MH_I2C_Read... [10:55:13]Read from MH i2c: E2 03 00 [10:55:13]MH_I2C_Read... [10:55:13]Read from MH i2c: E2 03 00 A0 1F 00 90 00 33 [10:55:13]RAPDU: 90 00 [10:55:13]wFMCommunicate OK [10:55:13]wFMCommunicate request_size=255 [10:55:13]MH_SAM_APDU [10:55: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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 75 00 00 00 F4 03 04 00 12 18 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5A D2 01 00 35 04 06 00 07 [10:55:13]Write to MH i2c: E2 02 01 A1 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 75 00 00 00 F4 03 04 00 12 18 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5A D2 01 00 35 04 06 00 07 00 00 E3 [10:55:13]Write i2c OK [10:55:13]MH_I2C_Read... [10:55:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:13]Read from MH i2c: E2 [10:55:13]MH_I2C_Read... [10:55:13]Read from MH i2c: E2 03 00 [10:55:13]MH_I2C_Read... [10:55:13]Read from MH i2c: E2 03 00 A1 1F 00 90 00 34 [10:55:13]RAPDU: 90 00 [10:55:13]wFMCommunicate OK [10:55:13]wFMCommunicate request_size=10 [10:55:13]MH_SAM_APDU [10:55:13]CAPDU: 80 0D 02 02 05 35 2D B6 2F D1 [10:55:13]Write to MH i2c: E2 0D 00 A2 1F 80 0D 02 02 05 00 35 2D B6 2F D1 00 00 5D [10:55:13]Write i2c OK [10:55:13]MH_I2C_Read... [10:55:13]OFD Sender: No OFD packet to send [10:55:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:13]Read from MH i2c: E2 [10:55:13]MH_I2C_Read... [10:55:13]Read from MH i2c: E2 03 00 [10:55:13]MH_I2C_Read... [10:55:13]Read from MH i2c: E2 03 00 A2 1F 00 90 00 35 [10:55:13]RAPDU: 90 00 [10:55:13]wFMCommunicate OK [10:55:13]wFMCommunicate request_size=4 [10:55:13]MH_SAM_APDU [10:55:13]CAPDU: 80 0D 03 02 [10:55:13]Write to MH i2c: E2 08 00 A3 1F 80 0D 03 02 00 00 00 00 3D [10:55:13]Write i2c OK [10:55:13]MH_I2C_Read... [10:55:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:55:13]Read from MH i2c: E2 [10:55:13]MH_I2C_Read... [10:55:13]Read from MH i2c: E2 0B 00 [10:55:13]MH_I2C_Read... [10:55:13]Read from MH i2c: E2 0B 00 A3 1F 00 DC 4A 47 AF E7 19 05 02 90 00 61 [10:55:13]RAPDU: DC 4A 47 AF E7 19 05 02 90 00 [10:55:13]wFMCommunicate OK [10:55:13]SAM_PROTO_SignData done [10:55:13]FM_MakeSignedData done [10:55:13]CreateOFDProtocolMessage [10:55:13]wFMCommunicate request_size=4 [10:55:13]MH_SAM_APDU [10:55:13]CAPDU: 80 11 00 00 [10:55:13]Write to MH i2c: E2 08 00 A4 1F 80 11 00 00 00 00 00 00 3D [10:55:13]Write i2c OK [10:55:13]MH_I2C_Read... [10:55:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:14]Read from MH i2c: E2 [10:55:14]MH_I2C_Read... [10:55:14]Read from MH i2c: E2 17 00 [10:55:14]MH_I2C_Read... [10:55:14]Read from MH i2c: E2 17 00 A4 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 98 [10:55:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:55:14]wFMCommunicate OK [10:55:14]CreateOFDProtocolMessage done [10:55:14]OFDSenderStorePacket 119386 [10:55:14]StoreOFDPacket docnum=119386 [10:55:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 6F 16 07 01 FA CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 75 00 00 00 F4 03 04 00 12 18 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5A D2 01 00 35 04 06 00 07 35 2D B6 2F D1 DC 4A 47 AF E7 19 05 02 [10:55:14]CheckFolder [10:55:14]dirname=/storage/ofd_packets [10:55:14]CheckFolder done [10:55:14]ProducePacketName [10:55:14]name=ofd_packets/00119386 [10:55:14]NVStorageSaveData ofd_packets/00119386 [10:55:14]File name is /storage/ofd_packets/00119386 [10:55:14]Write 301 bytes [10:55:14]NVStorageSaveData done [10:55:14]OFDSenderStorePacket done [10:55:14]KKMCreateOFDPacket done [10:55:14]NVStorageSaveData kkm_last_timestamp [10:55:14]File name is /storage/kkm_last_timestamp [10:55:14]Write 4 bytes [10:55:14]NVStorageSaveData done [10:55:14]ExternCall_PrintAddStr [10:55:14]wPrintStart [10:55:14]Write to MH i2c: 01 00 00 A5 1F C4 [10:55:14]Write i2c OK [10:55:14]MH_I2C_Read... [10:55:14]Read from MH i2c: 01 [10:55:14]MH_I2C_Read... [10:55:14]Read from MH i2c: 01 07 00 [10:55:14]MH_I2C_Read... [10:55:14]Read from MH i2c: 01 07 00 A5 1F 00 00 00 00 00 FF 0F D9 [10:55:14]RasterBufferAndPrint [10:55:14]line Счет N : (1)950312 [10:55:14]line ИНН: 02508201610067 [10:55:14]line Контрольно-Кассовый Чек [10:55:14]line ПРОДАЖА [10:55:14]line ТРК (МРК, ГНК) : 31 [10:55:14]line Товар: 2710124130 [10:55:14]line Аи-92-К-4 [10:55:14]line 14.750 * 67.80 [10:55:14]line = 1000.05 [10:55:14]line НДС 12% НСП 1% [10:55:14]line > о реализуемом товаре [10:55:14]line ОКРУГЛЕНИЕ: -0.05 [10:55:14]line ИТОГО: 1000.00 [10:55:14]line Внесено: 1000.00 [10:55:14]line СДАЧА: 0.00 [10:55:14]line НСП 1% : 8.85 [10:55:14]line НДС 12% : 106.20 [10:55:14]line Наличными: 1000.00 [10:55:14]line Безнал.: 0.00 [10:55:14]line Место: АЗС № 134 "Партнер Нефть" [10:55:14]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:55:14]line СНО: Общий режим [10:55:14]line Чек 117 31.07.2024 10:55 [10:55:14]line Смена: 436 ФФД: 1.0 [10:55:14]line ЗНМ: 0300000044 [10:55:14]line РНМ: 0000000000092660 [10:55:14]line Версия ККМ: 001 [10:55:14]line ФМ: 0000000000874939 [10:55:14]line ФД: 119386 [10:55:14]line ФПД: 7924981575633 [10:55:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T105514&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119386&fm=7924981575633&tin=02508201610067®Number=0000000000092660&sum=100000 [10:55:14]OFD Sender: Processing packet 119386 [packets to send 86, broken 85] [10:55:14]ProducePacketName [10:55:14]name=ofd_packets/00119386 [10:55:14]OFD Sender: To server: pG, [10:55:14]CommunicateWithHost lk.salyk.kg:30040 [10:55:14]ConnectInit lk.salyk.kg [10:55:14]written 0, free lines is 4095 [10:55:14]Connected sock=10 [10:55:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 6F 16 07 01 FA CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 75 00 00 00 F4 03 04 00 12 18 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5A D2 01 00 35 04 06 00 07 35 2D B6 2F D1 DC 4A 47 AF E7 19 05 02 [10:55:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 5A 7F 47 00 D9 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5A D2 01 00 F4 03 04 00 9B C5 A9 66 B6 04 01 00 00 BA 97 57 55 4E C1 BC D7 [10:55:14]CommunicateWithHost err = 0 [10:55:14]CheckOFDResponse [10:55:14]1017 (14) - 77093643461234 [10:55:14]1041 (16) - 0000000000874939 [10:55:14]1040 (4) - 119386 [10:55:14]1012 (4) - 31.07.2024 05:03 [10:55:14]1206 (1) - 0 [10:55:14]OFD Sender: Remove packet 119386 [10:55:14]ProducePacketName [10:55:14]name=ofd_packets/00119386 [10:55:14]NVStorageDeleteData [10:55:14]Write to MH i2c: 01 00 00 CF 1F EE [10:55:14]Write i2c OK [10:55:14]MH_I2C_Read... [10:55:14]Read from MH i2c: 01 [10:55:14]MH_I2C_Read... [10:55:14]Read from MH i2c: 01 07 00 [10:55:14]MH_I2C_Read... [10:55:14]Read from MH i2c: 01 07 00 CF 1F 00 00 00 00 00 E1 0C E2 [10:55:14]RasterBufferAndPrint [10:55:14]line [10:55:14]line [10:55:14]line [10:55:14]line [10:55:14]line [10:55:14]written 0, free lines is 3304 [10:55:14]MH_Cut [10:55:14]Write to MH i2c: D1 01 00 D6 1F 01 C7 [10:55:14]Write i2c OK [10:55:14]MH_I2C_Read... [10:55:14]Read from MH i2c: D1 [10:55:14]MH_I2C_Read... [10:55:14]Read from MH i2c: D1 01 00 [10:55:14]MH_I2C_Read... [10:55:14]Read from MH i2c: D1 01 00 D6 1F 00 C6 [10:55:14]Write to MH i2c: 01 00 00 D7 1F F6 [10:55:14]Write i2c OK [10:55:14]MH_I2C_Read... [10:55:15]OFD Sender: No OFD packet to send [10:55:15]*** Cut start [10:55:15]*** Partial cut [10:55:15]*** CUTSNS_PIN = 1 [10:55:15]*** CUTSNS_PIN = 0 [10:55:15]*** Brake cut motor [10:55:16]Read from MH i2c: 01 [10:55:16]MH_I2C_Read... [10:55:16]*** Stop cut motor [10:55:16]*** Cut end [10:55:16]Read from MH i2c: 01 07 00 [10:55:16]MH_I2C_Read... [10:55:16]Read from MH i2c: 01 07 00 D7 1F 00 00 00 00 00 FF 0F 0B [10:55:16]process_action close_receipt done [10:55:16]requested_data is exist [10:55:16]produce_requested_data [10:55:16]requested_item fm.sn is exist - process it [10:55:16]wFMCommunicate request_size=4 [10:55:16]MH_SAM_APDU [10:55:16]CAPDU: 80 11 00 00 [10:55:16]Write to MH i2c: E2 08 00 D8 1F 80 11 00 00 00 00 00 00 71 [10:55:16]Write i2c OK [10:55:16]MH_I2C_Read... [10:55:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:16]Read from MH i2c: E2 [10:55:16]MH_I2C_Read... [10:55:16]Read from MH i2c: E2 17 00 [10:55:16]MH_I2C_Read... [10:55:16]Read from MH i2c: E2 17 00 D8 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CC [10:55:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:55:16]wFMCommunicate OK [10:55:16]requested_item fd.num is exist - process it [10:55:16]SAM_PROTO_GetFieldsCounters [10:55:16]wFMCommunicate request_size=4 [10:55:16]MH_SAM_APDU [10:55:16]CAPDU: 80 13 00 00 [10:55:16]Write to MH i2c: E2 08 00 D9 1F 80 13 00 00 00 00 00 00 74 [10:55:16]Write i2c OK [10:55:16]MH_I2C_Read... [10:55:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:16]Read from MH i2c: E2 [10:55:16]MH_I2C_Read... [10:55:16]Read from MH i2c: E2 62 00 [10:55:16]MH_I2C_Read... [10:55:16]Read from MH i2c: E2 62 00 D9 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5A D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [10:55: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5A D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:55:16]wFMCommunicate OK [10:55:16]SAM_PROTO_GetFieldsCounters done [10:55:16]requested_item shift.num is exist - process it [10:55:16]requested_item shift.opened is exist - process it [10:55:16]req_shift_opened [10:55:16]FM_GetShiftState [10:55:16]SAM_PROTO_GetShiftState [10:55:16]wFMCommunicate request_size=4 [10:55:16]MH_SAM_APDU [10:55:16]CAPDU: 80 13 01 00 [10:55:16]Write to MH i2c: E2 08 00 DA 1F 80 13 01 00 00 00 00 00 76 [10:55:16]Write i2c OK [10:55:16]MH_I2C_Read... [10:55:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:16]Read from MH i2c: E2 [10:55:16]MH_I2C_Read... [10:55:16]Read from MH i2c: E2 0E 00 [10:55:16]MH_I2C_Read... [10:55:16]Read from MH i2c: E2 0E 00 DA 1F 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 0E [10:55:16]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [10:55:16]wFMCommunicate OK [10:55:16]SAM_PROTO_GetShiftState done [10:55:16]FM_GetShiftState done [10:55:16]req_shift_opened done [10:55:16]requested_item shift.open_date is exist - process it [10:55:16]req_shift_open_date [10:55:16]req_shift_open_date done [10:55:16]produce_requested_data done [10:55:16]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119386,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [10:55:16]process_action_free close_receipt [10:55:16]json_value_free [10:55:16]json_value_free done [10:55:16]process_json_proto returns [10:55:16]Send response to host [10:55:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119386,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [10:55:16]free response buf [10:55:16]execute_script done [10:55:16]execute_script returns [10:55:16]free content buf [10:55:16]Sock 9.Close socket [10:55:16]Sock 9.Thread stoped [10:55:20]OFD Sender: No OFD packet to send [10:55:25]OFD Sender: No OFD packet to send [10:55:30]OFD Sender: No OFD packet to send [10:55:35]OFD Sender: No OFD packet to send [10:55:40]OFD Sender: No OFD packet to send [10:55:45]OFD Sender: No OFD packet to send [10:55:50]OFD Sender: No OFD packet to send [10:55:55]OFD Sender: No OFD packet to send [10:56:00]OFD Sender: No OFD packet to send [10:56:05]OFD Sender: No OFD packet to send [10:56:10]OFD Sender: No OFD packet to send [10:56:15]OFD Sender: No OFD packet to send [10:56:20]OFD Sender: No OFD packet to send [10:56:25]OFD Sender: No OFD packet to send [10:56:30]OFD Sender: No OFD packet to send [10:56:35]OFD Sender: No OFD packet to send [10:56:40]OFD Sender: No OFD packet to send [10:56:45]OFD Sender: No OFD packet to send [10:56:50]OFD Sender: No OFD packet to send [10:56:55]OFD Sender: No OFD packet to send [10:57:00]OFD Sender: No OFD packet to send [10:57:05]OFD Sender: No OFD packet to send [10:57:10]OFD Sender: No OFD packet to send [10:57:15]OFD Sender: No OFD packet to send [10:57:20]OFD Sender: No OFD packet to send [10:57:25]OFD Sender: No OFD packet to send [10:57:30]OFD Sender: No OFD packet to send [10:57:35]OFD Sender: No OFD packet to send [10:57:40]OFD Sender: No OFD packet to send [10:57:45]OFD Sender: No OFD packet to send [10:57:50]OFD Sender: No OFD packet to send [10:57:55]OFD Sender: No OFD packet to send [10:58:00]OFD Sender: No OFD packet to send [10:58:05]OFD Sender: No OFD packet to send [10:58:10]OFD Sender: No OFD packet to send [10:58:15]OFD Sender: No OFD packet to send [10:58:20]OFD Sender: No OFD packet to send [10:58:25]OFD Sender: No OFD packet to send [10:58:30]OFD Sender: No OFD packet to send [10:58:35]OFD Sender: No OFD packet to send [10:58:40]OFD Sender: No OFD packet to send [10:58:45]OFD Sender: No OFD packet to send [10:58:50]OFD Sender: No OFD packet to send [10:58:55]OFD Sender: No OFD packet to send [10:59:00]OFD Sender: No OFD packet to send [10:59:05]OFD Sender: No OFD packet to send [10:59:10]OFD Sender: No OFD packet to send [10:59:15]OFD Sender: No OFD packet to send [10:59:20]OFD Sender: No OFD packet to send [10:59:25]OFD Sender: No OFD packet to send [10:59:30]OFD Sender: No OFD packet to send [10:59:35]OFD Sender: No OFD packet to send [10:59:40]OFD Sender: No OFD packet to send [10:59:45]OFD Sender: No OFD packet to send [10:59:50]OFD Sender: No OFD packet to send [10:59:55]OFD Sender: No OFD packet to send [11:00:00]OFD Sender: No OFD packet to send [11:00:05]OFD Sender: No OFD packet to send [11:00:10]OFD Sender: No OFD packet to send [11:00:15]OFD Sender: No OFD packet to send [11:00:20]OFD Sender: No OFD packet to send [11:00:25]OFD Sender: No OFD packet to send [11:00:30]OFD Sender: No OFD packet to send [11:00:35]OFD Sender: No OFD packet to send [11:00:40]OFD Sender: No OFD packet to send [11:00:45]OFD Sender: No OFD packet to send [11:00:50]OFD Sender: No OFD packet to send [11:00:55]OFD Sender: No OFD packet to send [11:01:00]OFD Sender: No OFD packet to send [11:01:05]OFD Sender: No OFD packet to send [11:01:10]OFD Sender: No OFD packet to send [11:01:15]OFD Sender: No OFD packet to send [11:01:20]OFD Sender: No OFD packet to send [11:01:25]OFD Sender: No OFD packet to send [11:01:30]OFD Sender: No OFD packet to send [11:01:35]OFD Sender: No OFD packet to send [11:01:40]OFD Sender: No OFD packet to send [11:01:45]OFD Sender: No OFD packet to send [11:01:50]OFD Sender: No OFD packet to send [11:01:55]OFD Sender: No OFD packet to send [11:02:00]OFD Sender: No OFD packet to send [11:02:05]OFD Sender: No OFD packet to send [11:02:10]OFD Sender: No OFD packet to send [11:02:15]OFD Sender: No OFD packet to send [11:02:20]OFD Sender: No OFD packet to send [11:02:25]OFD Sender: No OFD packet to send [11:02:30]OFD Sender: No OFD packet to send [11:02:35]OFD Sender: No OFD packet to send [11:02:40]OFD Sender: No OFD packet to send [11:02:45]OFD Sender: No OFD packet to send [11:02:50]OFD Sender: No OFD packet to send [11:02:55]OFD Sender: No OFD packet to send [11:03:00]OFD Sender: No OFD packet to send [11:03:05]OFD Sender: No OFD packet to send [11:03:10]OFD Sender: No OFD packet to send [11:03:15]OFD Sender: No OFD packet to send [11:03:20]OFD Sender: No OFD packet to send [11:03:25]OFD Sender: No OFD packet to send [11:03:30]OFD Sender: No OFD packet to send [11:03:35]OFD Sender: No OFD packet to send [11:03:40]OFD Sender: No OFD packet to send [11:03:45]OFD Sender: No OFD packet to send [11:03:50]OFD Sender: No OFD packet to send [11:03:55]OFD Sender: No OFD packet to send [11:04:00]OFD Sender: No OFD packet to send [11:04:05]OFD Sender: No OFD packet to send [11:04:10]OFD Sender: No OFD packet to send [11:04:15]OFD Sender: No OFD packet to send [11:04:20]OFD Sender: No OFD packet to send [11:04:25]OFD Sender: No OFD packet to send [11:04:30]OFD Sender: No OFD packet to send [11:04:35]OFD Sender: No OFD packet to send [11:04:37]accept exits with 8 [11:04:37]New connection [11:04:37]New thread 3067338084 created [11:04:37]Thread 3067194724 joined [11:04:37]Waiting for new connection... [11:04:37] Sock 8.Parse request [11:04:37]Sock 8.Check first char [11:04:37]Sock 8.First char is OK [11:04:37]request: POST /json_proto HTTP/1.0 [11:04:37]Method: POST [11:04:37]URL: /json_proto [11:04:37]Method is POST - this is cgi request [11:04:37]url: /json_proto [11:04:37]query_string will be loaded in cgi processing [11:04:37]execute_cgi json_proto POST (null) [11:04:37]execute_cgi path=json_proto method=POST [11:04:37]POST find Content-Length [11:04:37]Host: 172.17.45.7:8080 [11:04:37]Content-Length: 679 [11:04:37]Content-Type: application/json [11:04:37] [11:04:37]POST finish read [11:04:37]Found Content-Length = 679 [11:04:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:37]execute_script... [11:04: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)950313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:37]POST & json_proto [11:04:37]process_json_proto [11:04:37]json parsed OK: [11:04:37]protocol is kg_v1.0 [11:04:37]action value=close_receipt [11:04:37]process_action close_receipt [11:04:37]cmd_close_receipt [11:04:37]MH_GetDate [11:04:37]Write to MH i2c: F0 00 00 DB 1F E9 [11:04:37]Write i2c OK [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: F0 [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: F0 09 00 [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: F0 09 00 DB 1F 00 47 1A AA 66 90 0F 3E 66 A6 [11:04:37]GetLastDocTimeStamp 1722423314 [11:04:37]current date 1722423879 [11:04:37]FM_GetShiftState [11:04:37]SAM_PROTO_GetShiftState [11:04:37]wFMCommunicate request_size=4 [11:04:37]MH_SAM_APDU [11:04:37]CAPDU: 80 13 01 00 [11:04:37]Write to MH i2c: E2 08 00 DC 1F 80 13 01 00 00 00 00 00 78 [11:04:37]Write i2c OK [11:04:37]MH_I2C_Read... [11:04:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:37]Read from MH i2c: E2 [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: E2 0E 00 [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: E2 0E 00 DC 1F 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 10 [11:04:37]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [11:04:37]wFMCommunicate OK [11:04:37]SAM_PROTO_GetShiftState done [11:04:37]FM_GetShiftState done [11:04:37]opened in 1722384637 [11:04:37]opened+sec_in_day 1722471037 [11:04:37]quantity*price = 100050 [11:04:37]sum+1 = 100052 [11:04:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 118 31.07.2024 11:04 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119387 ФПД: 273435824342862 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T110439&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119387&fm=273435824342862&tin=02508201610067®Number=0000000000092660&sum=100000 [11:04:38]StoreToDocumentArchive [11:04:38]shift 436 fd 119387 [11:04:38]save to /storage/0436/doc_00119387 [11:04:38]save last doc name /storage/0436/doc_00119387 to /storage/kkm_last_doc_name [11:04:38]save OK [11:04:38]Clear old archive folders... [11:04:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:04:38]tlvbuf is 00B6B8B0 [11:04:38]SAM_PROTO_ClearQueue [11:04:38]wFMCommunicate request_size=4 [11:04:38]MH_SAM_APDU [11:04:38]CAPDU: 80 09 00 00 [11:04:38]Write to MH i2c: E2 08 00 E9 1F 80 09 00 00 00 00 00 00 7A [11:04:38]Write i2c OK [11:04:38]MH_I2C_Read... [11:04:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:04:38]Read from MH i2c: E2 [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: E2 03 00 [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: E2 03 00 E9 1F 00 90 00 7C [11:04:38]RAPDU: 90 00 [11:04:38]wFMCommunicate OK [11:04:38]SAM_PROTO_ClearQueue done [11:04:38]KKMCreateOFDPacket [11:04:38]OFDProtocolAddRootSTLVToBuf [11:04:38]FM_MakeSignedData [11:04:38]FM_MakeSignedData [11:04:38]SAM_PROTO_SignData [11:04:38]wFMCommunicate request_size=4 [11:04:38]MH_SAM_APDU [11:04:38]CAPDU: 80 0D 01 02 [11:04:38]Write to MH i2c: E2 08 00 EA 1F 80 0D 01 02 00 00 00 00 82 [11:04:38]Write i2c OK [11:04:38]MH_I2C_Read... [11:04:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:04:38]Read from MH i2c: E2 [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: E2 03 00 [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: E2 03 00 EA 1F 00 90 00 7D [11:04:38]RAPDU: 90 00 [11:04:38]wFMCommunicate OK [11:04:38]wFMCommunicate request_size=255 [11:04:38]MH_SAM_APDU [11:04:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 47 1A AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5B D2 01 00 35 04 06 00 F8 B0 3D 2D [11:04:38]Write to MH i2c: E2 02 01 EB 1F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 47 1A AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5B D2 01 00 35 04 06 00 F8 B0 3D 2D 00 00 EE [11:04:38]Write i2c OK [11:04:38]MH_I2C_Read... [11:04:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:38]Read from MH i2c: E2 [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: E2 03 00 [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: E2 03 00 EB 1F 00 90 00 7E [11:04:38]RAPDU: 90 00 [11:04:38]wFMCommunicate OK [11:04:38]wFMCommunicate request_size=7 [11:04:38]MH_SAM_APDU [11:04:38]CAPDU: 80 0D 02 02 02 C7 4E [11:04:38]Write to MH i2c: E2 0A 00 EC 1F 80 0D 02 02 02 00 C7 4E 00 00 9E [11:04:38]Write i2c OK [11:04:38]MH_I2C_Read... [11:04:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:38]Read from MH i2c: E2 [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: E2 03 00 [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: E2 03 00 EC 1F 00 90 00 7F [11:04:38]RAPDU: 90 00 [11:04:38]wFMCommunicate OK [11:04:38]wFMCommunicate request_size=4 [11:04:38]MH_SAM_APDU [11:04:38]CAPDU: 80 0D 03 02 [11:04:38]Write to MH i2c: E2 08 00 ED 1F 80 0D 03 02 00 00 00 00 87 [11:04:38]Write i2c OK [11:04:38]MH_I2C_Read... [11:04:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:04:38]Read from MH i2c: E2 [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: E2 0B 00 [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: E2 0B 00 ED 1F 00 CB F8 70 2D 9E 85 DE 6D 90 00 56 [11:04:38]RAPDU: CB F8 70 2D 9E 85 DE 6D 90 00 [11:04:38]wFMCommunicate OK [11:04:38]SAM_PROTO_SignData done [11:04:38]FM_MakeSignedData done [11:04:38]CreateOFDProtocolMessage [11:04:38]wFMCommunicate request_size=4 [11:04:38]MH_SAM_APDU [11:04:38]CAPDU: 80 11 00 00 [11:04:38]Write to MH i2c: E2 08 00 EE 1F 80 11 00 00 00 00 00 00 87 [11:04:38]Write i2c OK [11:04:38]MH_I2C_Read... [11:04:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:38]Read from MH i2c: E2 [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: E2 17 00 [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: E2 17 00 EE 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E2 [11:04:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:04:38]wFMCommunicate OK [11:04:38]CreateOFDProtocolMessage done [11:04:38]OFDSenderStorePacket 119387 [11:04:38]StoreOFDPacket docnum=119387 [11:04:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B3 65 04 01 08 6C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 47 1A AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5B D2 01 00 35 04 06 00 F8 B0 3D 2D C7 4E CB F8 70 2D 9E 85 DE 6D [11:04:38]CheckFolder [11:04:38]dirname=/storage/ofd_packets [11:04:38]CheckFolder done [11:04:38]ProducePacketName [11:04:38]name=ofd_packets/00119387 [11:04:38]NVStorageSaveData ofd_packets/00119387 [11:04:38]File name is /storage/ofd_packets/00119387 [11:04:38]Write 298 bytes [11:04:38]NVStorageSaveData done [11:04:38]OFDSenderStorePacket done [11:04:38]KKMCreateOFDPacket done [11:04:38]NVStorageSaveData kkm_last_timestamp [11:04:38]File name is /storage/kkm_last_timestamp [11:04:38]Write 4 bytes [11:04:38]NVStorageSaveData done [11:04:38]ExternCall_PrintAddStr [11:04:38]wPrintStart [11:04:38]Write to MH i2c: 01 00 00 EF 1F 0E [11:04:38]Write i2c OK [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: 01 [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: 01 07 00 [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: 01 07 00 EF 1F 00 00 00 00 00 FF 0F 23 [11:04:38]RasterBufferAndPrint [11:04:38]line Счет N : (1)950313 [11:04:38]line ИНН: 02508201610067 [11:04:38]line Контрольно-Кассовый Чек [11:04:38]line ПРОДАЖА [11:04:38]line ТРК (МРК, ГНК) : 44 [11:04:38]line Товар: 2710194800 [11:04:38]line ДТ-К-5 [11:04:38]line 13.130 * 76.20 [11:04:38]line = 1000.51 [11:04:38]line НДС 12% НСП 1% [11:04:38]line > о реализуемом товаре [11:04:38]line ОКРУГЛЕНИЕ: -0.51 [11:04:38]line ИТОГО: 1000.00 [11:04:38]line Внесено: 1000.00 [11:04:38]line СДАЧА: 0.00 [11:04:38]line НСП 1% : 8.85 [11:04:38]line НДС 12% : 106.25 [11:04:38]line Наличными: 1000.00 [11:04:38]line Безнал.: 0.00 [11:04:38]line Место: АЗС № 134 "Партнер Нефть" [11:04:38]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:04:38]line СНО: Общий режим [11:04:38]line Чек 118 31.07.2024 11:04 [11:04:38]line Смена: 436 ФФД: 1.0 [11:04:38]line ЗНМ: 0300000044 [11:04:38]line РНМ: 0000000000092660 [11:04:38]line Версия ККМ: 001 [11:04:38]line ФМ: 0000000000874939 [11:04:38]line ФД: 119387 [11:04:38]line ФПД: 273435824342862 [11:04:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T110439&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119387&fm=273435824342862&tin=02508201610067®Number=0000000000092660&sum=100000 [11:04:38]written 0, free lines is 4095 [11:04:38]OFD Sender: Processing packet 119387 [packets to send 86, broken 85] [11:04:38]ProducePacketName [11:04:38]name=ofd_packets/00119387 [11:04:38]OFD Sender: To server: pG, [11:04:38]CommunicateWithHost lk.salyk.kg:30040 [11:04:38]ConnectInit lk.salyk.kg [11:04:39]Connected sock=10 [11:04: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 39 33 39 0C 01 00 00 B3 65 04 01 08 6C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 47 1A AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5B D2 01 00 35 04 06 00 F8 B0 3D 2D C7 4E CB F8 70 2D 9E 85 DE 6D [11:04:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 4F B2 47 00 19 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 39 33 39 10 04 04 00 5B D2 01 00 F4 03 04 00 D0 C7 A9 66 B6 04 01 00 00 E7 39 2A CA 1F 04 B8 9B [11:04:39]CommunicateWithHost err = 0 [11:04:39]CheckOFDResponse [11:04:39]1017 (14) - 77093643461234 [11:04:39]1041 (16) - 0000000000874939 [11:04:39]1040 (4) - 119387 [11:04:39]1012 (4) - 31.07.2024 05:12 [11:04:39]1206 (1) - 0 [11:04:39]OFD Sender: Remove packet 119387 [11:04:39]ProducePacketName [11:04:39]name=ofd_packets/00119387 [11:04:39]NVStorageDeleteData [11:04:39]Write to MH i2c: 01 00 00 19 20 39 [11:04:39]Write i2c OK [11:04:39]MH_I2C_Read... [11:04:39]Read from MH i2c: 01 [11:04:39]MH_I2C_Read... [11:04:39]Read from MH i2c: 01 07 00 [11:04:39]MH_I2C_Read... [11:04:39]Read from MH i2c: 01 07 00 19 20 00 00 00 00 00 EC 0C 38 [11:04:39]RasterBufferAndPrint [11:04:39]line [11:04:39]line [11:04:39]line [11:04:39]line [11:04:39]line [11:04:39]written 0, free lines is 3313 [11:04:39]MH_Cut [11:04:39]Write to MH i2c: D1 01 00 20 20 01 12 [11:04:39]Write i2c OK [11:04:39]MH_I2C_Read... [11:04:39]Read from MH i2c: D1 [11:04:39]MH_I2C_Read... [11:04:39]Read from MH i2c: D1 01 00 [11:04:39]MH_I2C_Read... [11:04:39]Read from MH i2c: D1 01 00 20 20 00 11 [11:04:39]Write to MH i2c: 01 00 00 21 20 41 [11:04:39]Write i2c OK [11:04:39]MH_I2C_Read... [11:04:39]OFD Sender: No OFD packet to send [11:04:40]*** Cut start [11:04:40]*** Partial cut [11:04:40]*** CUTSNS_PIN = 1 [11:04:40]*** CUTSNS_PIN = 0 [11:04:40]*** Brake cut motor [11:04:40]Read from MH i2c: 01 [11:04:40]MH_I2C_Read... [11:04:40]*** Stop cut motor [11:04:40]*** Cut end [11:04:40]Read from MH i2c: 01 07 00 [11:04:40]MH_I2C_Read... [11:04:40]Read from MH i2c: 01 07 00 21 20 00 00 00 00 00 FF 0F 56 [11:04:40]process_action close_receipt done [11:04:40]requested_data is exist [11:04:40]produce_requested_data [11:04:40]requested_item fm.sn is exist - process it [11:04:40]wFMCommunicate request_size=4 [11:04:40]MH_SAM_APDU [11:04:40]CAPDU: 80 11 00 00 [11:04:40]Write to MH i2c: E2 08 00 22 20 80 11 00 00 00 00 00 00 BC [11:04:40]Write i2c OK [11:04:40]MH_I2C_Read... [11:04:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:40]Read from MH i2c: E2 [11:04:40]MH_I2C_Read... [11:04:40]Read from MH i2c: E2 17 00 [11:04:40]MH_I2C_Read... [11:04:40]Read from MH i2c: E2 17 00 22 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 17 [11:04:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:04:40]wFMCommunicate OK [11:04:40]requested_item fd.num is exist - process it [11:04:40]SAM_PROTO_GetFieldsCounters [11:04:40]wFMCommunicate request_size=4 [11:04:40]MH_SAM_APDU [11:04:40]CAPDU: 80 13 00 00 [11:04:40]Write to MH i2c: E2 08 00 23 20 80 13 00 00 00 00 00 00 BF [11:04:40]Write i2c OK [11:04:40]MH_I2C_Read... [11:04:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:04:40]Read from MH i2c: E2 [11:04:40]MH_I2C_Read... [11:04:40]Read from MH i2c: E2 62 00 [11:04:40]MH_I2C_Read... [11:04:40]Read from MH i2c: E2 62 00 23 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5B D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [11:04: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5B D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:04:40]wFMCommunicate OK [11:04:40]SAM_PROTO_GetFieldsCounters done [11:04:40]requested_item shift.num is exist - process it [11:04:40]requested_item shift.opened is exist - process it [11:04:40]req_shift_opened [11:04:40]FM_GetShiftState [11:04:40]SAM_PROTO_GetShiftState [11:04:40]wFMCommunicate request_size=4 [11:04:40]MH_SAM_APDU [11:04:40]CAPDU: 80 13 01 00 [11:04:40]Write to MH i2c: E2 08 00 24 20 80 13 01 00 00 00 00 00 C1 [11:04:40]Write i2c OK [11:04:40]MH_I2C_Read... [11:04:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:40]Read from MH i2c: E2 [11:04:40]MH_I2C_Read... [11:04:40]Read from MH i2c: E2 0E 00 [11:04:40]MH_I2C_Read... [11:04:40]Read from MH i2c: E2 0E 00 24 20 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 59 [11:04:40]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [11:04:40]wFMCommunicate OK [11:04:40]SAM_PROTO_GetShiftState done [11:04:40]FM_GetShiftState done [11:04:40]req_shift_opened done [11:04:40]requested_item shift.open_date is exist - process it [11:04:40]req_shift_open_date [11:04:40]req_shift_open_date done [11:04:40]produce_requested_data done [11:04:40]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119387,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [11:04:40]process_action_free close_receipt [11:04:40]json_value_free [11:04:40]json_value_free done [11:04:40]process_json_proto returns [11:04:40]Send response to host [11:04:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119387,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [11:04:40]free response buf [11:04:40]execute_script done [11:04:40]execute_script returns [11:04:40]free content buf [11:04:40]Sock 8.Close socket [11:04:40]Sock 8.Thread stoped [11:04:44]OFD Sender: No OFD packet to send [11:04:49]OFD Sender: No OFD packet to send [11:04:52]accept exits with 9 [11:04:52]New connection [11:04:52]New thread 3067194724 created [11:04:52]Thread 3067338084 joined [11:04:52]Waiting for new connection... [11:04:52] Sock 9.Parse request [11:04:52]Sock 9.Check first char [11:04:52]Sock 9.First char is OK [11:04:52]request: POST /json_proto HTTP/1.0 [11:04:52]Method: POST [11:04:52]URL: /json_proto [11:04:52]Method is POST - this is cgi request [11:04:52]url: /json_proto [11:04:52]query_string will be loaded in cgi processing [11:04:52]execute_cgi json_proto POST (null) [11:04:52]execute_cgi path=json_proto method=POST [11:04:52]POST find Content-Length [11:04:52]Host: 172.17.45.7:8080 [11:04:52]Content-Length: 677 [11:04:52]Content-Type: application/json [11:04:52] [11:04:52]POST finish read [11:04:52]Found Content-Length = 677 [11:04:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:52]execute_script... [11:04: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)950314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:52]POST & json_proto [11:04:52]process_json_proto [11:04:52]json parsed OK: [11:04:52]protocol is kg_v1.0 [11:04:52]action value=close_receipt [11:04:52]process_action close_receipt [11:04:52]cmd_close_receipt [11:04:52]MH_GetDate [11:04:52]Write to MH i2c: F0 00 00 25 20 34 [11:04:52]Write i2c OK [11:04:52]MH_I2C_Read... [11:04:52]Read from MH i2c: F0 [11:04:52]MH_I2C_Read... [11:04:52]Read from MH i2c: F0 09 00 [11:04:52]MH_I2C_Read... [11:04:52]Read from MH i2c: F0 09 00 25 20 00 56 1A AA 66 90 0F 3E 66 00 [11:04:52]GetLastDocTimeStamp 1722423879 [11:04:52]current date 1722423894 [11:04:52]FM_GetShiftState [11:04:52]SAM_PROTO_GetShiftState [11:04:52]wFMCommunicate request_size=4 [11:04:52]MH_SAM_APDU [11:04:52]CAPDU: 80 13 01 00 [11:04:52]Write to MH i2c: E2 08 00 26 20 80 13 01 00 00 00 00 00 C3 [11:04:52]Write i2c OK [11:04:52]MH_I2C_Read... [11:04:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:52]Read from MH i2c: E2 [11:04:52]MH_I2C_Read... [11:04:52]Read from MH i2c: E2 0E 00 [11:04:52]MH_I2C_Read... [11:04:52]Read from MH i2c: E2 0E 00 26 20 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 5B [11:04:52]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [11:04:52]wFMCommunicate OK [11:04:52]SAM_PROTO_GetShiftState done [11:04:52]FM_GetShiftState done [11:04:52]opened in 1722384637 [11:04:52]opened+sec_in_day 1722471037 [11:04:52]quantity*price = 50036 [11:04:52]sum+1 = 50037 [11:04:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 119 31.07.2024 11:04 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119388 ФПД: 216594548370620 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T110454&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119388&fm=216594548370620&tin=02508201610067®Number=0000000000092660&sum=50000 [11:04:53]StoreToDocumentArchive [11:04:53]shift 436 fd 119388 [11:04:53]save to /storage/0436/doc_00119388 [11:04:53]save last doc name /storage/0436/doc_00119388 to /storage/kkm_last_doc_name [11:04:53]save OK [11:04:53]Clear old archive folders... [11:04:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:04:53]tlvbuf is 00B45E10 [11:04:53]SAM_PROTO_ClearQueue [11:04:53]wFMCommunicate request_size=4 [11:04:53]MH_SAM_APDU [11:04:53]CAPDU: 80 09 00 00 [11:04:53]Write to MH i2c: E2 08 00 33 20 80 09 00 00 00 00 00 00 C5 [11:04:53]Write i2c OK [11:04:53]MH_I2C_Read... [11:04:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:04:53]Read from MH i2c: E2 [11:04:53]MH_I2C_Read... [11:04:53]Read from MH i2c: E2 03 00 [11:04:53]MH_I2C_Read... [11:04:53]Read from MH i2c: E2 03 00 33 20 00 90 00 C7 [11:04:53]RAPDU: 90 00 [11:04:53]wFMCommunicate OK [11:04:53]SAM_PROTO_ClearQueue done [11:04:53]KKMCreateOFDPacket [11:04:53]OFDProtocolAddRootSTLVToBuf [11:04:53]FM_MakeSignedData [11:04:53]FM_MakeSignedData [11:04:53]SAM_PROTO_SignData [11:04:53]wFMCommunicate request_size=4 [11:04:53]MH_SAM_APDU [11:04:53]CAPDU: 80 0D 01 02 [11:04:53]Write to MH i2c: E2 08 00 34 20 80 0D 01 02 00 00 00 00 CD [11:04:53]Write i2c OK [11:04:53]MH_I2C_Read... [11:04:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:04:53]Read from MH i2c: E2 [11:04:53]MH_I2C_Read... [11:04:53]Read from MH i2c: E2 03 00 [11:04:53]MH_I2C_Read... [11:04:53]Read from MH i2c: E2 03 00 34 20 00 90 00 C8 [11:04:53]RAPDU: 90 00 [11:04:53]wFMCommunicate OK [11:04:53]wFMCommunicate request_size=255 [11:04:53]MH_SAM_APDU [11:04:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 77 00 00 00 F4 03 04 00 56 1A AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5C D2 01 00 35 04 06 00 C4 [11:04:53]Write to MH i2c: E2 02 01 35 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 77 00 00 00 F4 03 04 00 56 1A AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5C D2 01 00 35 04 06 00 C4 00 00 F0 [11:04:53]Write i2c OK [11:04:53]MH_I2C_Read... [11:04:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:53]Read from MH i2c: E2 [11:04:53]MH_I2C_Read... [11:04:53]Read from MH i2c: E2 03 00 [11:04:53]MH_I2C_Read... [11:04:53]Read from MH i2c: E2 03 00 35 20 00 90 00 C9 [11:04:53]RAPDU: 90 00 [11:04:53]wFMCommunicate OK [11:04:53]wFMCommunicate request_size=10 [11:04:53]MH_SAM_APDU [11:04:53]CAPDU: 80 0D 02 02 05 FD D9 1D AC BC [11:04:53]Write to MH i2c: E2 0D 00 36 20 80 0D 02 02 05 00 FD D9 1D AC BC 00 00 35 [11:04:53]Write i2c OK [11:04:53]MH_I2C_Read... [11:04:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:53]Read from MH i2c: E2 [11:04:53]MH_I2C_Read... [11:04:53]Read from MH i2c: E2 03 00 [11:04:53]MH_I2C_Read... [11:04:53]Read from MH i2c: E2 03 00 36 20 00 90 00 CA [11:04:53]RAPDU: 90 00 [11:04:53]wFMCommunicate OK [11:04:53]wFMCommunicate request_size=4 [11:04:53]MH_SAM_APDU [11:04:53]CAPDU: 80 0D 03 02 [11:04:53]Write to MH i2c: E2 08 00 37 20 80 0D 03 02 00 00 00 00 D2 [11:04:53]Write i2c OK [11:04:53]MH_I2C_Read... [11:04:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:04:53]Read from MH i2c: E2 [11:04:53]MH_I2C_Read... [11:04:53]Read from MH i2c: E2 0B 00 [11:04:53]MH_I2C_Read... [11:04:53]Read from MH i2c: E2 0B 00 37 20 00 6F 72 1A 08 2D 84 8D C5 90 00 D9 [11:04:53]RAPDU: 6F 72 1A 08 2D 84 8D C5 90 00 [11:04:53]wFMCommunicate OK [11:04:53]SAM_PROTO_SignData done [11:04:53]FM_MakeSignedData done [11:04:53]CreateOFDProtocolMessage [11:04:53]wFMCommunicate request_size=4 [11:04:53]MH_SAM_APDU [11:04:53]CAPDU: 80 11 00 00 [11:04:53]Write to MH i2c: E2 08 00 38 20 80 11 00 00 00 00 00 00 D2 [11:04:53]Write i2c OK [11:04:53]MH_I2C_Read... [11:04:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:53]Read from MH i2c: E2 [11:04:53]MH_I2C_Read... [11:04:53]Read from MH i2c: E2 17 00 [11:04:53]MH_I2C_Read... [11:04:53]Read from MH i2c: E2 17 00 38 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2D [11:04:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:04:53]wFMCommunicate OK [11:04:53]CreateOFDProtocolMessage done [11:04:53]OFDSenderStorePacket 119388 [11:04:53]StoreOFDPacket docnum=119388 [11:04:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 17 BC 07 01 33 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 77 00 00 00 F4 03 04 00 56 1A AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5C D2 01 00 35 04 06 00 C4 FD D9 1D AC BC 6F 72 1A 08 2D 84 8D C5 [11:04:53]CheckFolder [11:04:53]dirname=/storage/ofd_packets [11:04:53]CheckFolder done [11:04:53]ProducePacketName [11:04:53]name=ofd_packets/00119388 [11:04:53]NVStorageSaveData ofd_packets/00119388 [11:04:53]File name is /storage/ofd_packets/00119388 [11:04:53]Write 301 bytes [11:04:53]NVStorageSaveData done [11:04:53]OFDSenderStorePacket done [11:04:53]KKMCreateOFDPacket done [11:04:53]NVStorageSaveData kkm_last_timestamp [11:04:53]File name is /storage/kkm_last_timestamp [11:04:53]Write 4 bytes [11:04:53]NVStorageSaveData done [11:04:53]ExternCall_PrintAddStr [11:04:53]wPrintStart [11:04:53]Write to MH i2c: 01 00 00 39 20 59 [11:04:53]Write i2c OK [11:04:53]MH_I2C_Read... [11:04:53]Read from MH i2c: 01 [11:04:53]MH_I2C_Read... [11:04:53]Read from MH i2c: 01 07 00 [11:04:53]MH_I2C_Read... [11:04:53]Read from MH i2c: 01 07 00 39 20 00 00 00 00 00 FF 0F 6E [11:04:53]RasterBufferAndPrint [11:04:53]line Счет N : (1)950314 [11:04:53]line ИНН: 02508201610067 [11:04:53]line Контрольно-Кассовый Чек [11:04:53]line ПРОДАЖА [11:04:53]line ТРК (МРК, ГНК) : 61 [11:04:53]line Товар: 2710124130 [11:04:53]line Аи-92-К-4 [11:04:53]line 7.380 * 67.80 [11:04:53]line = 500.36 [11:04:53]line НДС 12% НСП 1% [11:04:53]line > о реализуемом товаре [11:04:53]line ОКРУГЛЕНИЕ: -0.36 [11:04:53]line ИТОГО: 500.00 [11:04:53]line Внесено: 500.00 [11:04:53]line СДАЧА: 0.00 [11:04:53]line НСП 1% : 4.43 [11:04:53]line НДС 12% : 53.14 [11:04:53]line Наличными: 500.00 [11:04:53]line Безнал.: 0.00 [11:04:53]line Место: АЗС № 134 "Партнер Нефть" [11:04:53]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:04:53]line СНО: Общий режим [11:04:53]line Чек 119 31.07.2024 11:04 [11:04:53]line Смена: 436 ФФД: 1.0 [11:04:53]line ЗНМ: 0300000044 [11:04:53]line РНМ: 0000000000092660 [11:04:53]line Версия ККМ: 001 [11:04:53]line ФМ: 0000000000874939 [11:04:53]line ФД: 119388 [11:04:53]line ФПД: 216594548370620 [11:04:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T110454&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119388&fm=216594548370620&tin=02508201610067®Number=0000000000092660&sum=50000 [11:04:54]written 0, free lines is 4095 [11:04:54]OFD Sender: Processing packet 119388 [packets to send 86, broken 85] [11:04:54]ProducePacketName [11:04:54]name=ofd_packets/00119388 [11:04:54]OFD Sender: To server: pG, [11:04:54]CommunicateWithHost lk.salyk.kg:30040 [11:04:54]ConnectInit lk.salyk.kg [11:04:54]Connected sock=11 [11:04: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 39 33 39 0F 01 00 00 17 BC 07 01 33 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 77 00 00 00 F4 03 04 00 56 1A AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5C D2 01 00 35 04 06 00 C4 FD D9 1D AC BC 6F 72 1A 08 2D 84 8D C5 [11:04:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 4A E4 47 00 CC D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5C D2 01 00 F4 03 04 00 DF C7 A9 66 B6 04 01 00 00 5E 33 9A 44 6A B6 8D 36 [11:04:54]CommunicateWithHost err = 0 [11:04:54]CheckOFDResponse [11:04:54]1017 (14) - 77093643461234 [11:04:54]1041 (16) - 0000000000874939 [11:04:54]1040 (4) - 119388 [11:04:54]1012 (4) - 31.07.2024 05:13 [11:04:54]1206 (1) - 0 [11:04:54]OFD Sender: Remove packet 119388 [11:04:54]ProducePacketName [11:04:54]name=ofd_packets/00119388 [11:04:54]NVStorageDeleteData [11:04:54]Write to MH i2c: 01 00 00 63 20 83 [11:04:54]Write i2c OK [11:04:54]MH_I2C_Read... [11:04:54]Read from MH i2c: 01 [11:04:54]MH_I2C_Read... [11:04:54]Read from MH i2c: 01 07 00 [11:04:54]MH_I2C_Read... [11:04:54]Read from MH i2c: 01 07 00 63 20 00 00 00 00 00 D4 0C 6A [11:04:54]RasterBufferAndPrint [11:04:54]line [11:04:54]line [11:04:54]line [11:04:54]line [11:04:54]line [11:04:54]written 0, free lines is 3290 [11:04:54]MH_Cut [11:04:54]Write to MH i2c: D1 01 00 6A 20 01 5C [11:04:54]Write i2c OK [11:04:54]MH_I2C_Read... [11:04:54]Read from MH i2c: D1 [11:04:54]MH_I2C_Read... [11:04:54]Read from MH i2c: D1 01 00 [11:04:54]MH_I2C_Read... [11:04:54]Read from MH i2c: D1 01 00 6A 20 00 5B [11:04:54]Write to MH i2c: 01 00 00 6B 20 8B [11:04:54]Write i2c OK [11:04:54]MH_I2C_Read... [11:04:55]OFD Sender: No OFD packet to send [11:04:55]*** Cut start [11:04:55]*** Partial cut [11:04:55]*** CUTSNS_PIN = 1 [11:04:55]*** CUTSNS_PIN = 0 [11:04:55]*** Brake cut motor [11:04:56]Read from MH i2c: 01 [11:04:56]MH_I2C_Read... [11:04:56]*** Stop cut motor [11:04:56]*** Cut end [11:04:56]Read from MH i2c: 01 07 00 [11:04:56]MH_I2C_Read... [11:04:56]Read from MH i2c: 01 07 00 6B 20 00 00 00 00 00 FF 0F A0 [11:04:56]process_action close_receipt done [11:04:56]requested_data is exist [11:04:56]produce_requested_data [11:04:56]requested_item fm.sn is exist - process it [11:04:56]wFMCommunicate request_size=4 [11:04:56]MH_SAM_APDU [11:04:56]CAPDU: 80 11 00 00 [11:04:56]Write to MH i2c: E2 08 00 6C 20 80 11 00 00 00 00 00 00 06 [11:04:56]Write i2c OK [11:04:56]MH_I2C_Read... [11:04:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:56]Read from MH i2c: E2 [11:04:56]MH_I2C_Read... [11:04:56]Read from MH i2c: E2 17 00 [11:04:56]MH_I2C_Read... [11:04:56]Read from MH i2c: E2 17 00 6C 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 61 [11:04:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:04:56]wFMCommunicate OK [11:04:56]requested_item fd.num is exist - process it [11:04:56]SAM_PROTO_GetFieldsCounters [11:04:56]wFMCommunicate request_size=4 [11:04:56]MH_SAM_APDU [11:04:56]CAPDU: 80 13 00 00 [11:04:56]Write to MH i2c: E2 08 00 6D 20 80 13 00 00 00 00 00 00 09 [11:04:56]Write i2c OK [11:04:56]MH_I2C_Read... [11:04:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:04:56]Read from MH i2c: E2 [11:04:56]MH_I2C_Read... [11:04:56]Read from MH i2c: E2 62 00 [11:04:56]MH_I2C_Read... [11:04:56]Read from MH i2c: E2 62 00 6D 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5C D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [11:04:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5C D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:04:56]wFMCommunicate OK [11:04:56]SAM_PROTO_GetFieldsCounters done [11:04:56]requested_item shift.num is exist - process it [11:04:56]requested_item shift.opened is exist - process it [11:04:56]req_shift_opened [11:04:56]FM_GetShiftState [11:04:56]SAM_PROTO_GetShiftState [11:04:56]wFMCommunicate request_size=4 [11:04:56]MH_SAM_APDU [11:04:56]CAPDU: 80 13 01 00 [11:04:56]Write to MH i2c: E2 08 00 6E 20 80 13 01 00 00 00 00 00 0B [11:04:56]Write i2c OK [11:04:56]MH_I2C_Read... [11:04:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:56]Read from MH i2c: E2 [11:04:56]MH_I2C_Read... [11:04:56]Read from MH i2c: E2 0E 00 [11:04:56]MH_I2C_Read... [11:04:56]Read from MH i2c: E2 0E 00 6E 20 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 A3 [11:04:56]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [11:04:56]wFMCommunicate OK [11:04:56]SAM_PROTO_GetShiftState done [11:04:56]FM_GetShiftState done [11:04:56]req_shift_opened done [11:04:56]requested_item shift.open_date is exist - process it [11:04:56]req_shift_open_date [11:04:56]req_shift_open_date done [11:04:56]produce_requested_data done [11:04:56]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119388,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [11:04:56]process_action_free close_receipt [11:04:56]json_value_free [11:04:56]json_value_free done [11:04:56]process_json_proto returns [11:04:56]Send response to host [11:04:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119388,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [11:04:56]free response buf [11:04:56]execute_script done [11:04:56]execute_script returns [11:04:56]free content buf [11:04:56]Sock 9.Close socket [11:04:56]Sock 9.Thread stoped [11:05:00]OFD Sender: No OFD packet to send [11:05:05]OFD Sender: No OFD packet to send [11:05:10]OFD Sender: No OFD packet to send [11:05:15]OFD Sender: No OFD packet to send [11:05:20]OFD Sender: No OFD packet to send [11:05:25]OFD Sender: No OFD packet to send [11:05:30]OFD Sender: No OFD packet to send [11:05:35]OFD Sender: No OFD packet to send [11:05:40]OFD Sender: No OFD packet to send [11:05:45]OFD Sender: No OFD packet to send [11:05:50]OFD Sender: No OFD packet to send [11:05:55]OFD Sender: No OFD packet to send [11:06:00]OFD Sender: No OFD packet to send [11:06:05]OFD Sender: No OFD packet to send [11:06:10]OFD Sender: No OFD packet to send [11:06:15]OFD Sender: No OFD packet to send [11:06:20]OFD Sender: No OFD packet to send [11:06:25]OFD Sender: No OFD packet to send [11:06:30]OFD Sender: No OFD packet to send [11:06:35]OFD Sender: No OFD packet to send [11:06:40]OFD Sender: No OFD packet to send [11:06:40]accept exits with 8 [11:06:40]New connection [11:06:40]New thread 3067338084 created [11:06:40]Thread 3067194724 joined [11:06:40]Waiting for new connection... [11:06:40] Sock 8.Parse request [11:06:40]Sock 8.Check first char [11:06:40]Sock 8.First char is OK [11:06:40]request: POST /json_proto HTTP/1.0 [11:06:40]Method: POST [11:06:40]URL: /json_proto [11:06:40]Method is POST - this is cgi request [11:06:40]url: /json_proto [11:06:40]query_string will be loaded in cgi processing [11:06:40]execute_cgi json_proto POST (null) [11:06:40]execute_cgi path=json_proto method=POST [11:06:40]POST find Content-Length [11:06:40]Host: 172.17.45.7:8080 [11:06:40]Content-Length: 682 [11:06:40]Content-Type: application/json [11:06:40] [11:06:40]POST finish read [11:06:40]Found Content-Length = 682 [11:06:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:40]execute_script... [11:06: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)950315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:40]POST & json_proto [11:06:40]process_json_proto [11:06:40]json parsed OK: [11:06:40]protocol is kg_v1.0 [11:06:40]action value=close_receipt [11:06:40]process_action close_receipt [11:06:40]cmd_close_receipt [11:06:40]MH_GetDate [11:06:40]Write to MH i2c: F0 00 00 6F 20 7E [11:06:40]Write i2c OK [11:06:40]MH_I2C_Read... [11:06:40]Read from MH i2c: F0 [11:06:40]MH_I2C_Read... [11:06:40]Read from MH i2c: F0 09 00 [11:06:40]MH_I2C_Read... [11:06:40]Read from MH i2c: F0 09 00 6F 20 00 C2 1A AA 66 90 0F 3E 66 B6 [11:06:40]GetLastDocTimeStamp 1722423894 [11:06:40]current date 1722424002 [11:06:40]FM_GetShiftState [11:06:40]SAM_PROTO_GetShiftState [11:06:40]wFMCommunicate request_size=4 [11:06:40]MH_SAM_APDU [11:06:40]CAPDU: 80 13 01 00 [11:06:40]Write to MH i2c: E2 08 00 70 20 80 13 01 00 00 00 00 00 0D [11:06:40]Write i2c OK [11:06:40]MH_I2C_Read... [11:06:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:40]Read from MH i2c: E2 [11:06:40]MH_I2C_Read... [11:06:40]Read from MH i2c: E2 0E 00 [11:06:40]MH_I2C_Read... [11:06:40]Read from MH i2c: E2 0E 00 70 20 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 A5 [11:06:40]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [11:06:40]wFMCommunicate OK [11:06:40]SAM_PROTO_GetShiftState done [11:06:40]FM_GetShiftState done [11:06:40]opened in 1722384637 [11:06:40]opened+sec_in_day 1722471037 [11:06:40]quantity*price = 100005 [11:06:40]sum+1 = 100006 [11:06:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 120 31.07.2024 11:06 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119389 ФПД: 130541231001813 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T110642&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119389&fm=130541231001813&tin=02508201610067®Number=0000000000092660&sum=100000 [11:06:41]StoreToDocumentArchive [11:06:41]shift 436 fd 119389 [11:06:41]save to /storage/0436/doc_00119389 [11:06:41]save last doc name /storage/0436/doc_00119389 to /storage/kkm_last_doc_name [11:06:41]save OK [11:06:41]Clear old archive folders... [11:06:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:06:41]tlvbuf is 00B45F40 [11:06:41]SAM_PROTO_ClearQueue [11:06:41]wFMCommunicate request_size=4 [11:06:41]MH_SAM_APDU [11:06:41]CAPDU: 80 09 00 00 [11:06:41]Write to MH i2c: E2 08 00 7D 20 80 09 00 00 00 00 00 00 0F [11:06:41]Write i2c OK [11:06:41]MH_I2C_Read... [11:06:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:06:41]Read from MH i2c: E2 [11:06:41]MH_I2C_Read... [11:06:41]Read from MH i2c: E2 03 00 [11:06:41]MH_I2C_Read... [11:06:41]Read from MH i2c: E2 03 00 7D 20 00 90 00 11 [11:06:41]RAPDU: 90 00 [11:06:41]wFMCommunicate OK [11:06:41]SAM_PROTO_ClearQueue done [11:06:41]KKMCreateOFDPacket [11:06:41]OFDProtocolAddRootSTLVToBuf [11:06:41]FM_MakeSignedData [11:06:41]FM_MakeSignedData [11:06:41]SAM_PROTO_SignData [11:06:41]wFMCommunicate request_size=4 [11:06:41]MH_SAM_APDU [11:06:41]CAPDU: 80 0D 01 02 [11:06:41]Write to MH i2c: E2 08 00 7E 20 80 0D 01 02 00 00 00 00 17 [11:06:41]Write i2c OK [11:06:41]MH_I2C_Read... [11:06:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:06:41]Read from MH i2c: E2 [11:06:41]MH_I2C_Read... [11:06:41]Read from MH i2c: E2 03 00 [11:06:41]MH_I2C_Read... [11:06:41]Read from MH i2c: E2 03 00 7E 20 00 90 00 12 [11:06:41]RAPDU: 90 00 [11:06:41]wFMCommunicate OK [11:06:41]wFMCommunicate request_size=255 [11:06:41]MH_SAM_APDU [11:06:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 78 00 00 00 F4 03 04 00 C2 1A AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5D D2 01 00 35 04 06 00 76 [11:06:41]Write to MH i2c: E2 02 01 7F 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 78 00 00 00 F4 03 04 00 C2 1A AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5D D2 01 00 35 04 06 00 76 00 00 E9 [11:06:41]Write i2c OK [11:06:41]MH_I2C_Read... [11:06:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:42]Read from MH i2c: E2 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: E2 03 00 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: E2 03 00 7F 20 00 90 00 13 [11:06:42]RAPDU: 90 00 [11:06:42]wFMCommunicate OK [11:06:42]wFMCommunicate request_size=10 [11:06:42]MH_SAM_APDU [11:06:42]CAPDU: 80 0D 02 02 05 B9 FF B3 D0 D5 [11:06:42]Write to MH i2c: E2 0D 00 80 20 80 0D 02 02 05 00 B9 FF B3 D0 D5 00 00 34 [11:06:42]Write i2c OK [11:06:42]MH_I2C_Read... [11:06:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:42]Read from MH i2c: E2 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: E2 03 00 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: E2 03 00 80 20 00 90 00 14 [11:06:42]RAPDU: 90 00 [11:06:42]wFMCommunicate OK [11:06:42]wFMCommunicate request_size=4 [11:06:42]MH_SAM_APDU [11:06:42]CAPDU: 80 0D 03 02 [11:06:42]Write to MH i2c: E2 08 00 81 20 80 0D 03 02 00 00 00 00 1C [11:06:42]Write i2c OK [11:06:42]MH_I2C_Read... [11:06:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:06:42]Read from MH i2c: E2 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: E2 0B 00 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: E2 0B 00 81 20 00 8D C2 1A 59 CC BE EE B7 90 00 0E [11:06:42]RAPDU: 8D C2 1A 59 CC BE EE B7 90 00 [11:06:42]wFMCommunicate OK [11:06:42]SAM_PROTO_SignData done [11:06:42]FM_MakeSignedData done [11:06:42]CreateOFDProtocolMessage [11:06:42]wFMCommunicate request_size=4 [11:06:42]MH_SAM_APDU [11:06:42]CAPDU: 80 11 00 00 [11:06:42]Write to MH i2c: E2 08 00 82 20 80 11 00 00 00 00 00 00 1C [11:06:42]Write i2c OK [11:06:42]MH_I2C_Read... [11:06:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:42]Read from MH i2c: E2 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: E2 17 00 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: E2 17 00 82 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 77 [11:06:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:06:42]wFMCommunicate OK [11:06:42]CreateOFDProtocolMessage done [11:06:42]OFDSenderStorePacket 119389 [11:06:42]StoreOFDPacket docnum=119389 [11:06:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 96 98 07 01 0F 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 78 00 00 00 F4 03 04 00 C2 1A AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5D D2 01 00 35 04 06 00 76 B9 FF B3 D0 D5 8D C2 1A 59 CC BE EE B7 [11:06:42]CheckFolder [11:06:42]dirname=/storage/ofd_packets [11:06:42]CheckFolder done [11:06:42]ProducePacketName [11:06:42]name=ofd_packets/00119389 [11:06:42]NVStorageSaveData ofd_packets/00119389 [11:06:42]File name is /storage/ofd_packets/00119389 [11:06:42]Write 301 bytes [11:06:42]NVStorageSaveData done [11:06:42]OFDSenderStorePacket done [11:06:42]KKMCreateOFDPacket done [11:06:42]NVStorageSaveData kkm_last_timestamp [11:06:42]File name is /storage/kkm_last_timestamp [11:06:42]Write 4 bytes [11:06:42]NVStorageSaveData done [11:06:42]ExternCall_PrintAddStr [11:06:42]wPrintStart [11:06:42]Write to MH i2c: 01 00 00 83 20 A3 [11:06:42]Write i2c OK [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: 01 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: 01 07 00 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: 01 07 00 83 20 00 00 00 00 00 FF 0F B8 [11:06:42]RasterBufferAndPrint [11:06:42]line Счет N : (1)950315 [11:06:42]line ИНН: 02508201610067 [11:06:42]line Контрольно-Кассовый Чек [11:06:42]line ПРОДАЖА [11:06:42]line ТРК (МРК, ГНК) : 51 [11:06:42]line Товар: 2710124130 [11:06:42]line Аи-92-К-4 [11:06:42]line 14.750 * 67.80 [11:06:42]line = 1000.05 [11:06:42]line НДС 12% НСП 1% [11:06:42]line > о реализуемом товаре [11:06:42]line ОКРУГЛЕНИЕ: -0.05 [11:06:42]line ИТОГО: 1000.00 [11:06:42]line Внесено: 1000.00 [11:06:42]line СДАЧА: 0.00 [11:06:42]line НСП 1% : 8.85 [11:06:42]line НДС 12% : 106.20 [11:06:42]line Наличными: 1000.00 [11:06:42]line Безнал.: 0.00 [11:06:42]line Место: АЗС № 134 "Партнер Нефть" [11:06:42]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:06:42]line СНО: Общий режим [11:06:42]line Чек 120 31.07.2024 11:06 [11:06:42]line Смена: 436 ФФД: 1.0 [11:06:42]line ЗНМ: 0300000044 [11:06:42]line РНМ: 0000000000092660 [11:06:42]line Версия ККМ: 001 [11:06:42]line ФМ: 0000000000874939 [11:06:42]line ФД: 119389 [11:06:42]line ФПД: 130541231001813 [11:06:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T110642&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119389&fm=130541231001813&tin=02508201610067®Number=0000000000092660&sum=100000 [11:06:42]OFD Sender: Processing packet 119389 [packets to send 86, broken 85] [11:06:42]ProducePacketName [11:06:42]name=ofd_packets/00119389 [11:06:42]OFD Sender: To server: pG, [11:06:42]CommunicateWithHost lk.salyk.kg:30040 [11:06:42]ConnectInit lk.salyk.kg [11:06:42]written 0, free lines is 4095 [11:06:42]Connected sock=10 [11:06:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 96 98 07 01 0F 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 78 00 00 00 F4 03 04 00 C2 1A AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5D D2 01 00 35 04 06 00 76 B9 FF B3 D0 D5 8D C2 1A 59 CC BE EE B7 [11:06:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 AA 26 47 00 2A 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5D D2 01 00 F4 03 04 00 4B C8 A9 66 B6 04 01 00 00 AE 15 FA 34 0E 45 2B C9 [11:06:42]CommunicateWithHost err = 0 [11:06:42]CheckOFDResponse [11:06:42]1017 (14) - 77093643461234 [11:06:42]1041 (16) - 0000000000874939 [11:06:42]1040 (4) - 119389 [11:06:42]1012 (4) - 31.07.2024 05:14 [11:06:42]1206 (1) - 0 [11:06:42]OFD Sender: Remove packet 119389 [11:06:42]ProducePacketName [11:06:42]name=ofd_packets/00119389 [11:06:42]NVStorageDeleteData [11:06:43]Write to MH i2c: 01 00 00 AD 20 CD [11:06:43]Write i2c OK [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: 01 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: 01 07 00 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: 01 07 00 AD 20 00 00 00 00 00 D1 0C B1 [11:06:43]RasterBufferAndPrint [11:06:43]line [11:06:43]line [11:06:43]line [11:06:43]line [11:06:43]line [11:06:43]written 0, free lines is 3288 [11:06:43]MH_Cut [11:06:43]Write to MH i2c: D1 01 00 B4 20 01 A6 [11:06:43]Write i2c OK [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: D1 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: D1 01 00 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: D1 01 00 B4 20 00 A5 [11:06:43]Write to MH i2c: 01 00 00 B5 20 D5 [11:06:43]Write i2c OK [11:06:43]MH_I2C_Read... [11:06:43]OFD Sender: No OFD packet to send [11:06:43]*** Cut start [11:06:43]*** Partial cut [11:06:43]*** CUTSNS_PIN = 1 [11:06:43]*** CUTSNS_PIN = 0 [11:06:44]*** Brake cut motor [11:06:44]Read from MH i2c: 01 [11:06:44]MH_I2C_Read... [11:06:44]*** Stop cut motor [11:06:44]*** Cut end [11:06:44]Read from MH i2c: 01 07 00 [11:06:44]MH_I2C_Read... [11:06:44]Read from MH i2c: 01 07 00 B5 20 00 00 00 00 00 FF 0F EA [11:06:44]process_action close_receipt done [11:06:44]requested_data is exist [11:06:44]produce_requested_data [11:06:44]requested_item fm.sn is exist - process it [11:06:44]wFMCommunicate request_size=4 [11:06:44]MH_SAM_APDU [11:06:44]CAPDU: 80 11 00 00 [11:06:44]Write to MH i2c: E2 08 00 B6 20 80 11 00 00 00 00 00 00 50 [11:06:44]Write i2c OK [11:06:44]MH_I2C_Read... [11:06:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:44]Read from MH i2c: E2 [11:06:44]MH_I2C_Read... [11:06:44]Read from MH i2c: E2 17 00 [11:06:44]MH_I2C_Read... [11:06:44]Read from MH i2c: E2 17 00 B6 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AB [11:06:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:06:44]wFMCommunicate OK [11:06:44]requested_item fd.num is exist - process it [11:06:44]SAM_PROTO_GetFieldsCounters [11:06:44]wFMCommunicate request_size=4 [11:06:44]MH_SAM_APDU [11:06:44]CAPDU: 80 13 00 00 [11:06:44]Write to MH i2c: E2 08 00 B7 20 80 13 00 00 00 00 00 00 53 [11:06:44]Write i2c OK [11:06:44]MH_I2C_Read... [11:06:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:44]Read from MH i2c: E2 [11:06:44]MH_I2C_Read... [11:06:44]Read from MH i2c: E2 62 00 [11:06:44]MH_I2C_Read... [11:06:44]Read from MH i2c: E2 62 00 B7 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5D D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [11:06: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5D D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:06:44]wFMCommunicate OK [11:06:44]SAM_PROTO_GetFieldsCounters done [11:06:44]requested_item shift.num is exist - process it [11:06:44]requested_item shift.opened is exist - process it [11:06:44]req_shift_opened [11:06:44]FM_GetShiftState [11:06:44]SAM_PROTO_GetShiftState [11:06:44]wFMCommunicate request_size=4 [11:06:44]MH_SAM_APDU [11:06:44]CAPDU: 80 13 01 00 [11:06:44]Write to MH i2c: E2 08 00 B8 20 80 13 01 00 00 00 00 00 55 [11:06:44]Write i2c OK [11:06:44]MH_I2C_Read... [11:06:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:44]Read from MH i2c: E2 [11:06:44]MH_I2C_Read... [11:06:44]Read from MH i2c: E2 0E 00 [11:06:44]MH_I2C_Read... [11:06:44]Read from MH i2c: E2 0E 00 B8 20 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 ED [11:06:44]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [11:06:44]wFMCommunicate OK [11:06:44]SAM_PROTO_GetShiftState done [11:06:44]FM_GetShiftState done [11:06:44]req_shift_opened done [11:06:44]requested_item shift.open_date is exist - process it [11:06:44]req_shift_open_date [11:06:44]req_shift_open_date done [11:06:44]produce_requested_data done [11:06:44]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119389,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [11:06:44]process_action_free close_receipt [11:06:44]json_value_free [11:06:44]json_value_free done [11:06:44]process_json_proto returns [11:06:44]Send response to host [11:06:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119389,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [11:06:44]free response buf [11:06:44]execute_script done [11:06:44]execute_script returns [11:06:44]free content buf [11:06:44]Sock 8.Close socket [11:06:44]Sock 8.Thread stoped [11:06:48]OFD Sender: No OFD packet to send [11:06:53]OFD Sender: No OFD packet to send [11:06:58]OFD Sender: No OFD packet to send [11:07:03]OFD Sender: No OFD packet to send [11:07:08]OFD Sender: No OFD packet to send [11:07:13]OFD Sender: No OFD packet to send [11:07:18]OFD Sender: No OFD packet to send [11:07:23]OFD Sender: No OFD packet to send [11:07:28]OFD Sender: No OFD packet to send [11:07:33]OFD Sender: No OFD packet to send [11:07:38]OFD Sender: No OFD packet to send [11:07:43]OFD Sender: No OFD packet to send [11:07:48]OFD Sender: No OFD packet to send [11:07:53]OFD Sender: No OFD packet to send [11:07:58]OFD Sender: No OFD packet to send [11:08:03]OFD Sender: No OFD packet to send [11:08:08]OFD Sender: No OFD packet to send [11:08:13]OFD Sender: No OFD packet to send [11:08:18]OFD Sender: No OFD packet to send [11:08:23]OFD Sender: No OFD packet to send [11:08:28]OFD Sender: No OFD packet to send [11:08:33]OFD Sender: No OFD packet to send [11:08:38]OFD Sender: No OFD packet to send [11:08:43]OFD Sender: No OFD packet to send [11:08:48]OFD Sender: No OFD packet to send [11:08:53]OFD Sender: No OFD packet to send [11:08:58]OFD Sender: No OFD packet to send [11:09:03]OFD Sender: No OFD packet to send [11:09:08]OFD Sender: No OFD packet to send [11:09:13]OFD Sender: No OFD packet to send [11:09:18]OFD Sender: No OFD packet to send [11:09:23]OFD Sender: No OFD packet to send [11:09:28]OFD Sender: No OFD packet to send [11:09:33]OFD Sender: No OFD packet to send [11:09:38]OFD Sender: No OFD packet to send [11:09:43]OFD Sender: No OFD packet to send [11:09:48]OFD Sender: No OFD packet to send [11:09:53]OFD Sender: No OFD packet to send [11:09:58]OFD Sender: No OFD packet to send [11:10:03]OFD Sender: No OFD packet to send [11:10:08]OFD Sender: No OFD packet to send [11:10:13]OFD Sender: No OFD packet to send [11:10:18]OFD Sender: No OFD packet to send [11:10:23]OFD Sender: No OFD packet to send [11:10:28]OFD Sender: No OFD packet to send [11:10:33]OFD Sender: No OFD packet to send [11:10:38]OFD Sender: No OFD packet to send [11:10:43]OFD Sender: No OFD packet to send [11:10:48]OFD Sender: No OFD packet to send [11:10:53]OFD Sender: No OFD packet to send [11:10:58]OFD Sender: No OFD packet to send [11:11:03]OFD Sender: No OFD packet to send [11:11:08]OFD Sender: No OFD packet to send [11:11:13]OFD Sender: No OFD packet to send [11:11:18]OFD Sender: No OFD packet to send [11:11:23]OFD Sender: No OFD packet to send [11:11:24]accept exits with 9 [11:11:24]New connection [11:11:24]New thread 3067194724 created [11:11:24]Thread 3067338084 joined [11:11:24]Waiting for new connection... [11:11:24] Sock 9.Parse request [11:11:24]Sock 9.Check first char [11:11:24]Sock 9.First char is OK [11:11:24]request: POST /json_proto HTTP/1.0 [11:11:24]Method: POST [11:11:24]URL: /json_proto [11:11:24]Method is POST - this is cgi request [11:11:24]url: /json_proto [11:11:24]query_string will be loaded in cgi processing [11:11:24]execute_cgi json_proto POST (null) [11:11:24]execute_cgi path=json_proto method=POST [11:11:24]POST find Content-Length [11:11:24]Host: 172.17.45.7:8080 [11:11:24]Content-Length: 1197 [11:11:24]Content-Type: application/json [11:11:24] [11:11:24]POST finish read [11:11:24]Found Content-Length = 1197 [11:11:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)950316\u000A31.07.2024 11:09\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 20.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 1356.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3921362\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:24]execute_script... [11:11:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)950316\u000A31.07.2024 11:09\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 20.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 1356.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3921362\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:24]POST & json_proto [11:11:24]process_json_proto [11:11:24]json parsed OK: [11:11:24]protocol is kg_v1.0 [11:11:24]action value=print_text [11:11:24]process_action print_text [11:11:24]cmd_print_text [11:11:24]ExternCall_PrintAddStr [11:11:24]wPrintStart [11:11:24]Write to MH i2c: 01 00 00 B9 20 D9 [11:11:24]Write i2c OK [11:11:24]MH_I2C_Read... [11:11:24]Read from MH i2c: 01 [11:11:24]MH_I2C_Read... [11:11:24]Read from MH i2c: 01 07 00 [11:11:24]MH_I2C_Read... [11:11:24]Read from MH i2c: 01 07 00 B9 20 00 00 00 00 00 FF 0F EE [11:11:24]RasterBufferAndPrint [11:11:24]line *****ТОВАРНЫЙ ЧЕК***** [11:11:24]line АЗС-134 [11:11:24]line Партнер нефть [11:11:24]line 02508201610067 [11:11:24]line Кассир : Хошимов З. [11:11:24]line Счет N : (1)950316 [11:11:24]line 31.07.2024 11:09 [11:11:24]line ПРОДАЖА [11:11:24]line ТРК (МРК, ГНК): 61 [11:11:24]line Вид ГСМ : 2710124130 [11:11:24]line Аи-92-К-4 [11:11:24]line 20.000 x 67.80 [11:11:24]line ИТОГ: 1356.00 [11:11:24]line Тип оплаты: Талоны: Топливные Талоны [11:11:24]line 3921362 [11:11:24]line ______________________ [11:11:24]line (подпись) [11:11:24]written 0, free lines is 4095 [11:11:24]Write to MH i2c: 01 00 00 CD 20 ED [11:11:24]Write i2c OK [11:11:24]MH_I2C_Read... [11:11:24]Read from MH i2c: 01 [11:11:24]MH_I2C_Read... [11:11:24]Read from MH i2c: 01 07 00 [11:11:24]MH_I2C_Read... [11:11:24]Read from MH i2c: 01 07 00 CD 20 00 00 00 00 00 0E 0E 10 [11:11:24]RasterBufferAndPrint [11:11:24]line [11:11:24]line [11:11:24]line [11:11:24]line [11:11:24]line [11:11:24]written 0, free lines is 3600 [11:11:24]MH_Cut [11:11:24]Write to MH i2c: D1 01 00 D4 20 01 C6 [11:11:24]Write i2c OK [11:11:24]MH_I2C_Read... [11:11:24]Read from MH i2c: D1 [11:11:24]MH_I2C_Read... [11:11:24]Read from MH i2c: D1 01 00 [11:11:24]MH_I2C_Read... [11:11:24]Read from MH i2c: D1 01 00 D4 20 00 C5 [11:11:24]Write to MH i2c: 01 00 00 D5 20 F5 [11:11:24]Write i2c OK [11:11:24]MH_I2C_Read... [11:11:25]*** Cut start [11:11:25]*** Partial cut [11:11:25]*** CUTSNS_PIN = 1 [11:11:25]*** CUTSNS_PIN = 0 [11:11:25]*** Brake cut motor [11:11:25]Read from MH i2c: 01 [11:11:25]MH_I2C_Read... [11:11:25]*** Stop cut motor [11:11:25]*** Cut end [11:11:25]Read from MH i2c: 01 07 00 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: 01 07 00 D5 20 00 00 00 00 00 FF 0F 0A [11:11:25]process_action print_text done [11:11:25]requested_data is exist [11:11:25]produce_requested_data [11:11:25]requested_item fm.sn is exist - process it [11:11:25]wFMCommunicate request_size=4 [11:11:25]MH_SAM_APDU [11:11:25]CAPDU: 80 11 00 00 [11:11:25]Write to MH i2c: E2 08 00 D6 20 80 11 00 00 00 00 00 00 70 [11:11:25]Write i2c OK [11:11:25]MH_I2C_Read... [11:11:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:25]Read from MH i2c: E2 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: E2 17 00 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: E2 17 00 D6 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CB [11:11:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:11:25]wFMCommunicate OK [11:11:25]requested_item fd.num is exist - process it [11:11:25]SAM_PROTO_GetFieldsCounters [11:11:25]wFMCommunicate request_size=4 [11:11:25]MH_SAM_APDU [11:11:25]CAPDU: 80 13 00 00 [11:11:25]Write to MH i2c: E2 08 00 D7 20 80 13 00 00 00 00 00 00 73 [11:11:25]Write i2c OK [11:11:25]MH_I2C_Read... [11:11:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:25]Read from MH i2c: E2 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: E2 62 00 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: E2 62 00 D7 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5D D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [11:11: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5D D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:11:25]wFMCommunicate OK [11:11:25]SAM_PROTO_GetFieldsCounters done [11:11:25]requested_item shift.num is exist - process it [11:11:25]requested_item shift.opened is exist - process it [11:11:25]req_shift_opened [11:11:25]FM_GetShiftState [11:11:25]SAM_PROTO_GetShiftState [11:11:25]wFMCommunicate request_size=4 [11:11:25]MH_SAM_APDU [11:11:25]CAPDU: 80 13 01 00 [11:11:25]Write to MH i2c: E2 08 00 D8 20 80 13 01 00 00 00 00 00 75 [11:11:25]Write i2c OK [11:11:25]MH_I2C_Read... [11:11:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:25]Read from MH i2c: E2 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: E2 0E 00 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: E2 0E 00 D8 20 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 0D [11:11:25]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [11:11:25]wFMCommunicate OK [11:11:25]SAM_PROTO_GetShiftState done [11:11:25]FM_GetShiftState done [11:11:25]req_shift_opened done [11:11:25]requested_item shift.open_date is exist - process it [11:11:25]req_shift_open_date [11:11:25]req_shift_open_date done [11:11:25]produce_requested_data done [11:11:25]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119389,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [11:11:25]process_action_free print_text [11:11:25]json_value_free [11:11:25]json_value_free done [11:11:25]process_json_proto returns [11:11:25]Send response to host [11:11:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119389,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [11:11:25]free response buf [11:11:25]execute_script done [11:11:25]execute_script returns [11:11:25]free content buf [11:11:25]Sock 9.Close socket [11:11:25]Sock 9.Thread stoped [11:11:28]OFD Sender: No OFD packet to send [11:11:33]OFD Sender: No OFD packet to send [11:11:38]OFD Sender: No OFD packet to send [11:11:43]OFD Sender: No OFD packet to send [11:11:48]OFD Sender: No OFD packet to send [11:11:53]OFD Sender: No OFD packet to send [11:11:58]OFD Sender: No OFD packet to send [11:12:03]OFD Sender: No OFD packet to send [11:12:08]OFD Sender: No OFD packet to send [11:12:13]OFD Sender: No OFD packet to send [11:12:18]OFD Sender: No OFD packet to send [11:12:23]OFD Sender: No OFD packet to send [11:12:28]OFD Sender: No OFD packet to send [11:12:33]OFD Sender: No OFD packet to send [11:12:38]OFD Sender: No OFD packet to send [11:12:43]OFD Sender: No OFD packet to send [11:12:48]OFD Sender: No OFD packet to send [11:12:53]OFD Sender: No OFD packet to send [11:12:58]OFD Sender: No OFD packet to send [11:13:03]OFD Sender: No OFD packet to send [11:13:08]OFD Sender: No OFD packet to send [11:13:13]OFD Sender: No OFD packet to send [11:13:18]OFD Sender: No OFD packet to send [11:13:23]OFD Sender: No OFD packet to send [11:13:28]OFD Sender: No OFD packet to send [11:13:33]OFD Sender: No OFD packet to send [11:13:38]OFD Sender: No OFD packet to send [11:13:43]OFD Sender: No OFD packet to send [11:13:48]OFD Sender: No OFD packet to send [11:13:53]OFD Sender: No OFD packet to send [11:13:58]OFD Sender: No OFD packet to send [11:14:03]OFD Sender: No OFD packet to send [11:14:04]accept exits with 8 [11:14:04]New connection [11:14:04]New thread 3067338084 created [11:14:04]Thread 3067194724 joined [11:14:04]Waiting for new connection... [11:14:04] Sock 8.Parse request [11:14:04]Sock 8.Check first char [11:14:04]Sock 8.First char is OK [11:14:04]request: POST /json_proto HTTP/1.0 [11:14:04]Method: POST [11:14:04]URL: /json_proto [11:14:04]Method is POST - this is cgi request [11:14:04]url: /json_proto [11:14:04]query_string will be loaded in cgi processing [11:14:04]execute_cgi json_proto POST (null) [11:14:04]execute_cgi path=json_proto method=POST [11:14:04]POST find Content-Length [11:14:04]Host: 172.17.45.7:8080 [11:14:04]Content-Length: 679 [11:14:04]Content-Type: application/json [11:14:04] [11:14:04]POST finish read [11:14:04]Found Content-Length = 679 [11:14:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:04]execute_script... [11:14:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:04]POST & json_proto [11:14:04]process_json_proto [11:14:04]json parsed OK: [11:14:04]protocol is kg_v1.0 [11:14:04]action value=close_receipt [11:14:04]process_action close_receipt [11:14:04]cmd_close_receipt [11:14:04]MH_GetDate [11:14:04]Write to MH i2c: F0 00 00 D9 20 E8 [11:14:04]Write i2c OK [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: F0 [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: F0 09 00 [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: F0 09 00 D9 20 00 7E 1C AA 66 90 0F 3E 66 DE [11:14:04]GetLastDocTimeStamp 1722424002 [11:14:04]current date 1722424446 [11:14:04]FM_GetShiftState [11:14:04]SAM_PROTO_GetShiftState [11:14:04]wFMCommunicate request_size=4 [11:14:04]MH_SAM_APDU [11:14:04]CAPDU: 80 13 01 00 [11:14:04]Write to MH i2c: E2 08 00 DA 20 80 13 01 00 00 00 00 00 77 [11:14:04]Write i2c OK [11:14:04]MH_I2C_Read... [11:14:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:04]Read from MH i2c: E2 [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: E2 0E 00 [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: E2 0E 00 DA 20 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 0F [11:14:04]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [11:14:04]wFMCommunicate OK [11:14:04]SAM_PROTO_GetShiftState done [11:14:04]FM_GetShiftState done [11:14:04]opened in 1722384637 [11:14:04]opened+sec_in_day 1722471037 [11:14:04]quantity*price = 100050 [11:14:04]sum+1 = 100052 [11:14:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 121 31.07.2024 11:14 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119390 ФПД: 81849202514565 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T111406&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119390&fm=81849202514565&tin=02508201610067®Number=0000000000092660&sum=100000 [11:14:05]StoreToDocumentArchive [11:14:05]shift 436 fd 119390 [11:14:05]save to /storage/0436/doc_00119390 [11:14:05]save last doc name /storage/0436/doc_00119390 to /storage/kkm_last_doc_name [11:14:05]save OK [11:14:05]Clear old archive folders... [11:14:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:14:05]tlvbuf is 00B1D9A0 [11:14:05]SAM_PROTO_ClearQueue [11:14:05]wFMCommunicate request_size=4 [11:14:05]MH_SAM_APDU [11:14:05]CAPDU: 80 09 00 00 [11:14:05]Write to MH i2c: E2 08 00 E7 20 80 09 00 00 00 00 00 00 79 [11:14:05]Write i2c OK [11:14:05]MH_I2C_Read... [11:14:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:05]Read from MH i2c: E2 [11:14:05]MH_I2C_Read... [11:14:05]Read from MH i2c: E2 03 00 [11:14:05]MH_I2C_Read... [11:14:05]Read from MH i2c: E2 03 00 E7 20 00 90 00 7B [11:14:05]RAPDU: 90 00 [11:14:05]wFMCommunicate OK [11:14:05]SAM_PROTO_ClearQueue done [11:14:05]KKMCreateOFDPacket [11:14:05]OFDProtocolAddRootSTLVToBuf [11:14:05]FM_MakeSignedData [11:14:05]FM_MakeSignedData [11:14:05]SAM_PROTO_SignData [11:14:05]wFMCommunicate request_size=4 [11:14:05]MH_SAM_APDU [11:14:05]CAPDU: 80 0D 01 02 [11:14:05]Write to MH i2c: E2 08 00 E8 20 80 0D 01 02 00 00 00 00 81 [11:14:05]Write i2c OK [11:14:05]MH_I2C_Read... [11:14:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:05]Read from MH i2c: E2 [11:14:05]MH_I2C_Read... [11:14:05]Read from MH i2c: E2 03 00 [11:14:05]MH_I2C_Read... [11:14:05]Read from MH i2c: E2 03 00 E8 20 00 90 00 7C [11:14:05]RAPDU: 90 00 [11:14:05]wFMCommunicate OK [11:14:05]wFMCommunicate request_size=255 [11:14:05]MH_SAM_APDU [11:14:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 7E 1C AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5E D2 01 00 35 04 06 00 4A 71 00 A4 [11:14:05]Write to MH i2c: E2 02 01 E9 20 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 7E 1C AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5E D2 01 00 35 04 06 00 4A 71 00 A4 00 00 79 [11:14:05]Write i2c OK [11:14:05]MH_I2C_Read... [11:14:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:06]Read from MH i2c: E2 [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: E2 03 00 [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: E2 03 00 E9 20 00 90 00 7D [11:14:06]RAPDU: 90 00 [11:14:06]wFMCommunicate OK [11:14:06]wFMCommunicate request_size=7 [11:14:06]MH_SAM_APDU [11:14:06]CAPDU: 80 0D 02 02 02 1A 85 [11:14:06]Write to MH i2c: E2 0A 00 EA 20 80 0D 02 02 02 00 1A 85 00 00 27 [11:14:06]Write i2c OK [11:14:06]MH_I2C_Read... [11:14:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:06]Read from MH i2c: E2 [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: E2 03 00 [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: E2 03 00 EA 20 00 90 00 7E [11:14:06]RAPDU: 90 00 [11:14:06]wFMCommunicate OK [11:14:06]wFMCommunicate request_size=4 [11:14:06]MH_SAM_APDU [11:14:06]CAPDU: 80 0D 03 02 [11:14:06]Write to MH i2c: E2 08 00 EB 20 80 0D 03 02 00 00 00 00 86 [11:14:06]Write i2c OK [11:14:06]MH_I2C_Read... [11:14:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:06]Read from MH i2c: E2 [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: E2 0B 00 [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: E2 0B 00 EB 20 00 C5 2C 92 CF 88 83 8B 32 90 00 A1 [11:14:06]RAPDU: C5 2C 92 CF 88 83 8B 32 90 00 [11:14:06]wFMCommunicate OK [11:14:06]SAM_PROTO_SignData done [11:14:06]FM_MakeSignedData done [11:14:06]CreateOFDProtocolMessage [11:14:06]wFMCommunicate request_size=4 [11:14:06]MH_SAM_APDU [11:14:06]CAPDU: 80 11 00 00 [11:14:06]Write to MH i2c: E2 08 00 EC 20 80 11 00 00 00 00 00 00 86 [11:14:06]Write i2c OK [11:14:06]MH_I2C_Read... [11:14:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:06]Read from MH i2c: E2 [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: E2 17 00 [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: E2 17 00 EC 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E1 [11:14:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:14:06]wFMCommunicate OK [11:14:06]CreateOFDProtocolMessage done [11:14:06]OFDSenderStorePacket 119390 [11:14:06]StoreOFDPacket docnum=119390 [11:14:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 95 6B 04 01 D9 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 7E 1C AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5E D2 01 00 35 04 06 00 4A 71 00 A4 1A 85 C5 2C 92 CF 88 83 8B 32 [11:14:06]CheckFolder [11:14:06]dirname=/storage/ofd_packets [11:14:06]CheckFolder done [11:14:06]ProducePacketName [11:14:06]name=ofd_packets/00119390 [11:14:06]NVStorageSaveData ofd_packets/00119390 [11:14:06]File name is /storage/ofd_packets/00119390 [11:14:06]Write 298 bytes [11:14:06]NVStorageSaveData done [11:14:06]OFDSenderStorePacket done [11:14:06]KKMCreateOFDPacket done [11:14:06]NVStorageSaveData kkm_last_timestamp [11:14:06]File name is /storage/kkm_last_timestamp [11:14:06]Write 4 bytes [11:14:06]NVStorageSaveData done [11:14:06]ExternCall_PrintAddStr [11:14:06]wPrintStart [11:14:06]Write to MH i2c: 01 00 00 ED 20 0D [11:14:06]Write i2c OK [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: 01 [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: 01 07 00 [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: 01 07 00 ED 20 00 00 00 00 00 FF 0F 22 [11:14:06]RasterBufferAndPrint [11:14:06]line Счет N : (1)950317 [11:14:06]line ИНН: 02508201610067 [11:14:06]line Контрольно-Кассовый Чек [11:14:06]line ПРОДАЖА [11:14:06]line ТРК (МРК, ГНК) : 34 [11:14:06]line Товар: 2710194800 [11:14:06]line ДТ-К-5 [11:14:06]line 13.130 * 76.20 [11:14:06]line = 1000.51 [11:14:06]line НДС 12% НСП 1% [11:14:06]line > о реализуемом товаре [11:14:06]line ОКРУГЛЕНИЕ: -0.51 [11:14:06]line ИТОГО: 1000.00 [11:14:06]line Внесено: 1000.00 [11:14:06]line СДАЧА: 0.00 [11:14:06]line НСП 1% : 8.85 [11:14:06]line НДС 12% : 106.25 [11:14:06]line Наличными: 1000.00 [11:14:06]line Безнал.: 0.00 [11:14:06]line Место: АЗС № 134 "Партнер Нефть" [11:14:06]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:14:06]line СНО: Общий режим [11:14:06]line Чек 121 31.07.2024 11:14 [11:14:06]line Смена: 436 ФФД: 1.0 [11:14:06]line ЗНМ: 0300000044 [11:14:06]line РНМ: 0000000000092660 [11:14:06]line Версия ККМ: 001 [11:14:06]line ФМ: 0000000000874939 [11:14:06]line ФД: 119390 [11:14:06]line ФПД: 81849202514565 [11:14:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T111406&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119390&fm=81849202514565&tin=02508201610067®Number=0000000000092660&sum=100000 [11:14:06]OFD Sender: Processing packet 119390 [packets to send 86, broken 85] [11:14:06]ProducePacketName [11:14:06]name=ofd_packets/00119390 [11:14:06]OFD Sender: To server: pG, [11:14:06]CommunicateWithHost lk.salyk.kg:30040 [11:14:06]ConnectInit lk.salyk.kg [11:14:06]written 0, free lines is 4095 [11:14:06]Connected sock=10 [11:14:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 95 6B 04 01 D9 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 7E 1C AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5E D2 01 00 35 04 06 00 4A 71 00 A4 1A 85 C5 2C 92 CF 88 83 8B 32 [11:14:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 C2 BB 47 00 E6 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5E D2 01 00 F4 03 04 00 07 CA A9 66 B6 04 01 00 00 50 1E D3 75 69 A3 03 EF [11:14:06]CommunicateWithHost err = 0 [11:14:06]CheckOFDResponse [11:14:06]1017 (14) - 77093643461234 [11:14:06]1041 (16) - 0000000000874939 [11:14:06]1040 (4) - 119390 [11:14:06]1012 (4) - 31.07.2024 05:22 [11:14:06]1206 (1) - 0 [11:14:06]OFD Sender: Remove packet 119390 [11:14:06]ProducePacketName [11:14:06]name=ofd_packets/00119390 [11:14:06]NVStorageDeleteData [11:14:06]Write to MH i2c: 01 00 00 17 21 38 [11:14:06]Write i2c OK [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: 01 [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: 01 07 00 [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: 01 07 00 17 21 00 00 00 00 00 E0 0C 2B [11:14:06]RasterBufferAndPrint [11:14:06]line [11:14:06]line [11:14:06]line [11:14:06]line [11:14:06]line [11:14:06]written 0, free lines is 3302 [11:14:06]MH_Cut [11:14:06]Write to MH i2c: D1 01 00 1E 21 01 11 [11:14:06]Write i2c OK [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: D1 [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: D1 01 00 [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: D1 01 00 1E 21 00 10 [11:14:06]Write to MH i2c: 01 00 00 1F 21 40 [11:14:06]Write i2c OK [11:14:06]MH_I2C_Read... [11:14:07]OFD Sender: No OFD packet to send [11:14:07]*** Cut start [11:14:07]*** Partial cut [11:14:07]*** CUTSNS_PIN = 1 [11:14:07]*** CUTSNS_PIN = 0 [11:14:07]*** Brake cut motor [11:14:08]Read from MH i2c: 01 [11:14:08]MH_I2C_Read... [11:14:08]*** Stop cut motor [11:14:08]*** Cut end [11:14:08]Read from MH i2c: 01 07 00 [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: 01 07 00 1F 21 00 00 00 00 00 FF 0F 55 [11:14:08]process_action close_receipt done [11:14:08]requested_data is exist [11:14:08]produce_requested_data [11:14:08]requested_item fm.sn is exist - process it [11:14:08]wFMCommunicate request_size=4 [11:14:08]MH_SAM_APDU [11:14:08]CAPDU: 80 11 00 00 [11:14:08]Write to MH i2c: E2 08 00 20 21 80 11 00 00 00 00 00 00 BB [11:14:08]Write i2c OK [11:14:08]MH_I2C_Read... [11:14:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:08]Read from MH i2c: E2 [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: E2 17 00 [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: E2 17 00 20 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 16 [11:14:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:14:08]wFMCommunicate OK [11:14:08]requested_item fd.num is exist - process it [11:14:08]SAM_PROTO_GetFieldsCounters [11:14:08]wFMCommunicate request_size=4 [11:14:08]MH_SAM_APDU [11:14:08]CAPDU: 80 13 00 00 [11:14:08]Write to MH i2c: E2 08 00 21 21 80 13 00 00 00 00 00 00 BE [11:14:08]Write i2c OK [11:14:08]MH_I2C_Read... [11:14:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:08]Read from MH i2c: E2 [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: E2 62 00 [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: E2 62 00 21 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5E D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [11:14:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5E D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:14:08]wFMCommunicate OK [11:14:08]SAM_PROTO_GetFieldsCounters done [11:14:08]requested_item shift.num is exist - process it [11:14:08]requested_item shift.opened is exist - process it [11:14:08]req_shift_opened [11:14:08]FM_GetShiftState [11:14:08]SAM_PROTO_GetShiftState [11:14:08]wFMCommunicate request_size=4 [11:14:08]MH_SAM_APDU [11:14:08]CAPDU: 80 13 01 00 [11:14:08]Write to MH i2c: E2 08 00 22 21 80 13 01 00 00 00 00 00 C0 [11:14:08]Write i2c OK [11:14:08]MH_I2C_Read... [11:14:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:08]Read from MH i2c: E2 [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: E2 0E 00 [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: E2 0E 00 22 21 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 58 [11:14:08]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [11:14:08]wFMCommunicate OK [11:14:08]SAM_PROTO_GetShiftState done [11:14:08]FM_GetShiftState done [11:14:08]req_shift_opened done [11:14:08]requested_item shift.open_date is exist - process it [11:14:08]req_shift_open_date [11:14:08]req_shift_open_date done [11:14:08]produce_requested_data done [11:14:08]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119390,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [11:14:08]process_action_free close_receipt [11:14:08]json_value_free [11:14:08]json_value_free done [11:14:08]process_json_proto returns [11:14:08]Send response to host [11:14:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119390,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [11:14:08]free response buf [11:14:08]execute_script done [11:14:08]execute_script returns [11:14:08]free content buf [11:14:08]Sock 8.Close socket [11:14:08]Sock 8.Thread stoped [11:14:12]OFD Sender: No OFD packet to send [11:14:17]OFD Sender: No OFD packet to send [11:14:22]OFD Sender: No OFD packet to send [11:14:27]OFD Sender: No OFD packet to send [11:14:32]accept exits with 9 [11:14:32]New connection [11:14:32]New thread 3067194724 created [11:14:32]Thread 3067338084 joined [11:14:32]Waiting for new connection... [11:14:32] Sock 9.Parse request [11:14:32]Sock 9.Check first char [11:14:32]Sock 9.First char is OK [11:14:32]request: POST /json_proto HTTP/1.0 [11:14:32]Method: POST [11:14:32]URL: /json_proto [11:14:32]Method is POST - this is cgi request [11:14:32]url: /json_proto [11:14:32]query_string will be loaded in cgi processing [11:14:32]execute_cgi json_proto POST (null) [11:14:32]execute_cgi path=json_proto method=POST [11:14:32]POST find Content-Length [11:14:32]Host: 172.17.45.7:8080 [11:14:32]Content-Length: 677 [11:14:32]Content-Type: application/json [11:14:32] [11:14:32]POST finish read [11:14:32]Found Content-Length = 677 [11:14:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:32]execute_script... [11:14: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)950318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:32]POST & json_proto [11:14:32]process_json_proto [11:14:32]json parsed OK: [11:14:32]protocol is kg_v1.0 [11:14:32]action value=close_receipt [11:14:32]process_action close_receipt [11:14:32]cmd_close_receipt [11:14:32]MH_GetDate [11:14:32]Write to MH i2c: F0 00 00 23 21 33 [11:14:32]Write i2c OK [11:14:32]MH_I2C_Read... [11:14:32]Read from MH i2c: F0 [11:14:32]MH_I2C_Read... [11:14:32]Read from MH i2c: F0 09 00 [11:14:32]MH_I2C_Read... [11:14:32]Read from MH i2c: F0 09 00 23 21 00 9A 1C AA 66 90 0F 3E 66 45 [11:14:32]GetLastDocTimeStamp 1722424446 [11:14:32]current date 1722424474 [11:14:32]FM_GetShiftState [11:14:32]SAM_PROTO_GetShiftState [11:14:32]wFMCommunicate request_size=4 [11:14:32]MH_SAM_APDU [11:14:32]CAPDU: 80 13 01 00 [11:14:32]Write to MH i2c: E2 08 00 24 21 80 13 01 00 00 00 00 00 C2 [11:14:32]Write i2c OK [11:14:32]MH_I2C_Read... [11:14:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:32]Read from MH i2c: E2 [11:14:32]MH_I2C_Read... [11:14:32]Read from MH i2c: E2 0E 00 [11:14:32]MH_I2C_Read... [11:14:32]Read from MH i2c: E2 0E 00 24 21 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 5A [11:14:32]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [11:14:32]wFMCommunicate OK [11:14:32]SAM_PROTO_GetShiftState done [11:14:32]FM_GetShiftState done [11:14:32]opened in 1722384637 [11:14:32]opened+sec_in_day 1722471037 [11:14:32]quantity*price = 50036 [11:14:32]sum+1 = 50037 [11:14:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 122 31.07.2024 11:14 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119391 ФПД: 154775450223509 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T111434&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119391&fm=154775450223509&tin=02508201610067®Number=0000000000092660&sum=50000 [11:14:33]StoreToDocumentArchive [11:14:33]shift 436 fd 119391 [11:14:33]save to /storage/0436/doc_00119391 [11:14:33]save last doc name /storage/0436/doc_00119391 to /storage/kkm_last_doc_name [11:14:33]save OK [11:14:33]Clear old archive folders... [11:14:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:14:33]tlvbuf is 00ACDC40 [11:14:33]SAM_PROTO_ClearQueue [11:14:33]wFMCommunicate request_size=4 [11:14:33]MH_SAM_APDU [11:14:33]CAPDU: 80 09 00 00 [11:14:33]Write to MH i2c: E2 08 00 31 21 80 09 00 00 00 00 00 00 C4 [11:14:33]Write i2c OK [11:14:33]MH_I2C_Read... [11:14:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:33]Read from MH i2c: E2 [11:14:33]MH_I2C_Read... [11:14:33]Read from MH i2c: E2 03 00 [11:14:33]MH_I2C_Read... [11:14:33]Read from MH i2c: E2 03 00 31 21 00 90 00 C6 [11:14:33]RAPDU: 90 00 [11:14:33]wFMCommunicate OK [11:14:33]SAM_PROTO_ClearQueue done [11:14:33]KKMCreateOFDPacket [11:14:33]OFDProtocolAddRootSTLVToBuf [11:14:33]FM_MakeSignedData [11:14:33]FM_MakeSignedData [11:14:33]SAM_PROTO_SignData [11:14:33]wFMCommunicate request_size=4 [11:14:33]MH_SAM_APDU [11:14:33]CAPDU: 80 0D 01 02 [11:14:33]Write to MH i2c: E2 08 00 32 21 80 0D 01 02 00 00 00 00 CC [11:14:33]Write i2c OK [11:14:33]MH_I2C_Read... [11:14:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:33]Read from MH i2c: E2 [11:14:33]MH_I2C_Read... [11:14:33]Read from MH i2c: E2 03 00 [11:14:33]MH_I2C_Read... [11:14:33]Read from MH i2c: E2 03 00 32 21 00 90 00 C7 [11:14:33]RAPDU: 90 00 [11:14:33]wFMCommunicate OK [11:14:33]wFMCommunicate request_size=255 [11:14:33]MH_SAM_APDU [11:14: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 7A 00 00 00 F4 03 04 00 9A 1C AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5F D2 01 00 35 04 06 00 8C [11:14:33]Write to MH i2c: E2 02 01 33 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 7A 00 00 00 F4 03 04 00 9A 1C AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5F D2 01 00 35 04 06 00 8C 00 00 03 [11:14:33]Write i2c OK [11:14:33]MH_I2C_Read... [11:14:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:33]Read from MH i2c: E2 [11:14:33]MH_I2C_Read... [11:14:33]Read from MH i2c: E2 03 00 [11:14:33]MH_I2C_Read... [11:14:33]Read from MH i2c: E2 03 00 33 21 00 90 00 C8 [11:14:33]RAPDU: 90 00 [11:14:33]wFMCommunicate OK [11:14:33]wFMCommunicate request_size=10 [11:14:33]MH_SAM_APDU [11:14:33]CAPDU: 80 0D 02 02 05 C4 77 BB 03 95 [11:14:33]Write to MH i2c: E2 0D 00 34 21 80 0D 02 02 05 00 C4 77 BB 03 95 00 00 67 [11:14:33]Write i2c OK [11:14:33]MH_I2C_Read... [11:14:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:33]Read from MH i2c: E2 [11:14:33]MH_I2C_Read... [11:14:33]Read from MH i2c: E2 03 00 [11:14:33]MH_I2C_Read... [11:14:33]Read from MH i2c: E2 03 00 34 21 00 90 00 C9 [11:14:33]RAPDU: 90 00 [11:14:33]wFMCommunicate OK [11:14:33]wFMCommunicate request_size=4 [11:14:33]MH_SAM_APDU [11:14:33]CAPDU: 80 0D 03 02 [11:14:33]Write to MH i2c: E2 08 00 35 21 80 0D 03 02 00 00 00 00 D1 [11:14:33]Write i2c OK [11:14:33]MH_I2C_Read... [11:14:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:33]Read from MH i2c: E2 [11:14:33]MH_I2C_Read... [11:14:33]Read from MH i2c: E2 0B 00 [11:14:33]MH_I2C_Read... [11:14:33]Read from MH i2c: E2 0B 00 35 21 00 78 92 96 95 20 31 EB 3A 90 00 7D [11:14:33]RAPDU: 78 92 96 95 20 31 EB 3A 90 00 [11:14:33]wFMCommunicate OK [11:14:33]SAM_PROTO_SignData done [11:14:33]FM_MakeSignedData done [11:14:33]CreateOFDProtocolMessage [11:14:33]wFMCommunicate request_size=4 [11:14:33]MH_SAM_APDU [11:14:33]CAPDU: 80 11 00 00 [11:14:33]Write to MH i2c: E2 08 00 36 21 80 11 00 00 00 00 00 00 D1 [11:14:33]Write i2c OK [11:14:33]MH_I2C_Read... [11:14:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:33]Read from MH i2c: E2 [11:14:33]MH_I2C_Read... [11:14:33]Read from MH i2c: E2 17 00 [11:14:33]MH_I2C_Read... [11:14:33]Read from MH i2c: E2 17 00 36 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2C [11:14:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:14:33]wFMCommunicate OK [11:14:33]CreateOFDProtocolMessage done [11:14:33]OFDSenderStorePacket 119391 [11:14:33]StoreOFDPacket docnum=119391 [11:14:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 07 E7 07 01 D4 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 7A 00 00 00 F4 03 04 00 9A 1C AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5F D2 01 00 35 04 06 00 8C C4 77 BB 03 95 78 92 96 95 20 31 EB 3A [11:14:33]CheckFolder [11:14:33]dirname=/storage/ofd_packets [11:14:33]CheckFolder done [11:14:33]ProducePacketName [11:14:33]name=ofd_packets/00119391 [11:14:33]NVStorageSaveData ofd_packets/00119391 [11:14:33]File name is /storage/ofd_packets/00119391 [11:14:33]Write 301 bytes [11:14:33]NVStorageSaveData done [11:14:33]OFDSenderStorePacket done [11:14:33]KKMCreateOFDPacket done [11:14:33]NVStorageSaveData kkm_last_timestamp [11:14:33]File name is /storage/kkm_last_timestamp [11:14:33]Write 4 bytes [11:14:33]NVStorageSaveData done [11:14:33]ExternCall_PrintAddStr [11:14:33]wPrintStart [11:14:33]Write to MH i2c: 01 00 00 37 21 58 [11:14:33]Write i2c OK [11:14:33]MH_I2C_Read... [11:14:33]Read from MH i2c: 01 [11:14:33]MH_I2C_Read... [11:14:33]Read from MH i2c: 01 07 00 [11:14:33]MH_I2C_Read... [11:14:33]Read from MH i2c: 01 07 00 37 21 00 00 00 00 00 FF 0F 6D [11:14:33]RasterBufferAndPrint [11:14:33]line Счет N : (1)950318 [11:14:33]line ИНН: 02508201610067 [11:14:33]line Контрольно-Кассовый Чек [11:14:33]line ПРОДАЖА [11:14:33]line ТРК (МРК, ГНК) : 51 [11:14:33]line Товар: 2710124130 [11:14:33]line Аи-92-К-4 [11:14:33]line 7.380 * 67.80 [11:14:33]line = 500.36 [11:14:33]line НДС 12% НСП 1% [11:14:33]line > о реализуемом товаре [11:14:33]line ОКРУГЛЕНИЕ: -0.36 [11:14:33]line ИТОГО: 500.00 [11:14:33]line Внесено: 500.00 [11:14:33]line СДАЧА: 0.00 [11:14:33]line НСП 1% : 4.43 [11:14:33]line НДС 12% : 53.14 [11:14:33]line Наличными: 500.00 [11:14:33]line Безнал.: 0.00 [11:14:33]line Место: АЗС № 134 "Партнер Нефть" [11:14:33]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:14:33]line СНО: Общий режим [11:14:33]line Чек 122 31.07.2024 11:14 [11:14:33]line Смена: 436 ФФД: 1.0 [11:14:33]line ЗНМ: 0300000044 [11:14:33]line РНМ: 0000000000092660 [11:14:33]line Версия ККМ: 001 [11:14:33]line ФМ: 0000000000874939 [11:14:33]line ФД: 119391 [11:14:33]line ФПД: 154775450223509 [11:14:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T111434&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119391&fm=154775450223509&tin=02508201610067®Number=0000000000092660&sum=50000 [11:14:34]written 0, free lines is 4095 [11:14:34]OFD Sender: Processing packet 119391 [packets to send 86, broken 85] [11:14:34]ProducePacketName [11:14:34]name=ofd_packets/00119391 [11:14:34]OFD Sender: To server: pG, [11:14:34]CommunicateWithHost lk.salyk.kg:30040 [11:14:34]ConnectInit lk.salyk.kg [11:14:34]Connected sock=10 [11:14: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 39 33 39 0F 01 00 00 07 E7 07 01 D4 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 7A 00 00 00 F4 03 04 00 9A 1C AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5F D2 01 00 35 04 06 00 8C C4 77 BB 03 95 78 92 96 95 20 31 EB 3A [11:14:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 35 B9 47 00 6C D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5F D2 01 00 F4 03 04 00 23 CA A9 66 B6 04 01 00 00 EF 56 67 D7 17 7E E6 6A [11:14:34]CommunicateWithHost err = 0 [11:14:34]CheckOFDResponse [11:14:34]1017 (14) - 77093643461234 [11:14:34]1041 (16) - 0000000000874939 [11:14:34]1040 (4) - 119391 [11:14:34]1012 (4) - 31.07.2024 05:22 [11:14:34]1206 (1) - 0 [11:14:34]OFD Sender: Remove packet 119391 [11:14:34]ProducePacketName [11:14:34]name=ofd_packets/00119391 [11:14:34]NVStorageDeleteData [11:14:34]Write to MH i2c: 01 00 00 61 21 82 [11:14:34]Write i2c OK [11:14:34]MH_I2C_Read... [11:14:34]Read from MH i2c: 01 [11:14:34]MH_I2C_Read... [11:14:34]Read from MH i2c: 01 07 00 [11:14:34]MH_I2C_Read... [11:14:34]Read from MH i2c: 01 07 00 61 21 00 00 00 00 00 D0 0C 65 [11:14:34]RasterBufferAndPrint [11:14:34]line [11:14:34]line [11:14:34]line [11:14:34]line [11:14:34]line [11:14:34]written 0, free lines is 3287 [11:14:34]MH_Cut [11:14:34]Write to MH i2c: D1 01 00 68 21 01 5B [11:14:34]Write i2c OK [11:14:34]MH_I2C_Read... [11:14:34]Read from MH i2c: D1 [11:14:34]MH_I2C_Read... [11:14:34]Read from MH i2c: D1 01 00 [11:14:34]MH_I2C_Read... [11:14:34]Read from MH i2c: D1 01 00 68 21 00 5A [11:14:34]Write to MH i2c: 01 00 00 69 21 8A [11:14:34]Write i2c OK [11:14:34]MH_I2C_Read... [11:14:34]OFD Sender: No OFD packet to send [11:14:35]*** Cut start [11:14:35]*** Partial cut [11:14:35]*** CUTSNS_PIN = 1 [11:14:35]*** CUTSNS_PIN = 0 [11:14:35]*** Brake cut motor [11:14:35]Read from MH i2c: 01 [11:14:35]MH_I2C_Read... [11:14:35]*** Stop cut motor [11:14:35]*** Cut end [11:14:35]Read from MH i2c: 01 07 00 [11:14:35]MH_I2C_Read... [11:14:35]Read from MH i2c: 01 07 00 69 21 00 00 00 00 00 FF 0F 9F [11:14:35]process_action close_receipt done [11:14:35]requested_data is exist [11:14:35]produce_requested_data [11:14:35]requested_item fm.sn is exist - process it [11:14:35]wFMCommunicate request_size=4 [11:14:35]MH_SAM_APDU [11:14:35]CAPDU: 80 11 00 00 [11:14:35]Write to MH i2c: E2 08 00 6A 21 80 11 00 00 00 00 00 00 05 [11:14:35]Write i2c OK [11:14:35]MH_I2C_Read... [11:14:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:35]Read from MH i2c: E2 [11:14:35]MH_I2C_Read... [11:14:35]Read from MH i2c: E2 17 00 [11:14:35]MH_I2C_Read... [11:14:35]Read from MH i2c: E2 17 00 6A 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 60 [11:14:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:14:35]wFMCommunicate OK [11:14:35]requested_item fd.num is exist - process it [11:14:35]SAM_PROTO_GetFieldsCounters [11:14:35]wFMCommunicate request_size=4 [11:14:35]MH_SAM_APDU [11:14:35]CAPDU: 80 13 00 00 [11:14:35]Write to MH i2c: E2 08 00 6B 21 80 13 00 00 00 00 00 00 08 [11:14:35]Write i2c OK [11:14:35]MH_I2C_Read... [11:14:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:36]Read from MH i2c: E2 [11:14:36]MH_I2C_Read... [11:14:36]Read from MH i2c: E2 62 00 [11:14:36]MH_I2C_Read... [11:14:36]Read from MH i2c: E2 62 00 6B 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5F D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [11:14: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5F D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:14:36]wFMCommunicate OK [11:14:36]SAM_PROTO_GetFieldsCounters done [11:14:36]requested_item shift.num is exist - process it [11:14:36]requested_item shift.opened is exist - process it [11:14:36]req_shift_opened [11:14:36]FM_GetShiftState [11:14:36]SAM_PROTO_GetShiftState [11:14:36]wFMCommunicate request_size=4 [11:14:36]MH_SAM_APDU [11:14:36]CAPDU: 80 13 01 00 [11:14:36]Write to MH i2c: E2 08 00 6C 21 80 13 01 00 00 00 00 00 0A [11:14:36]Write i2c OK [11:14:36]MH_I2C_Read... [11:14:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:36]Read from MH i2c: E2 [11:14:36]MH_I2C_Read... [11:14:36]Read from MH i2c: E2 0E 00 [11:14:36]MH_I2C_Read... [11:14:36]Read from MH i2c: E2 0E 00 6C 21 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 A2 [11:14:36]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [11:14:36]wFMCommunicate OK [11:14:36]SAM_PROTO_GetShiftState done [11:14:36]FM_GetShiftState done [11:14:36]req_shift_opened done [11:14:36]requested_item shift.open_date is exist - process it [11:14:36]req_shift_open_date [11:14:36]req_shift_open_date done [11:14:36]produce_requested_data done [11:14:36]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119391,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [11:14:36]process_action_free close_receipt [11:14:36]json_value_free [11:14:36]json_value_free done [11:14:36]process_json_proto returns [11:14:36]Send response to host [11:14:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119391,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [11:14:36]free response buf [11:14:36]execute_script done [11:14:36]execute_script returns [11:14:36]free content buf [11:14:36]Sock 9.Close socket [11:14:36]Sock 9.Thread stoped [11:14:39]OFD Sender: No OFD packet to send [11:14:44]OFD Sender: No OFD packet to send [11:14:49]OFD Sender: No OFD packet to send [11:14:54]OFD Sender: No OFD packet to send [11:14:59]OFD Sender: No OFD packet to send [11:15:04]OFD Sender: No OFD packet to send [11:15:09]OFD Sender: No OFD packet to send [11:15:14]OFD Sender: No OFD packet to send [11:15:19]OFD Sender: No OFD packet to send [11:15:24]OFD Sender: No OFD packet to send [11:15:29]OFD Sender: No OFD packet to send [11:15:34]OFD Sender: No OFD packet to send [11:15:39]OFD Sender: No OFD packet to send [11:15:44]OFD Sender: No OFD packet to send [11:15:49]OFD Sender: No OFD packet to send [11:15:54]OFD Sender: No OFD packet to send [11:15:59]OFD Sender: No OFD packet to send [11:16:05]OFD Sender: No OFD packet to send [11:16:10]OFD Sender: No OFD packet to send [11:16:15]OFD Sender: No OFD packet to send [11:16:20]OFD Sender: No OFD packet to send [11:16:25]OFD Sender: No OFD packet to send [11:16:30]OFD Sender: No OFD packet to send [11:16:35]OFD Sender: No OFD packet to send [11:16:40]OFD Sender: No OFD packet to send [11:16:45]OFD Sender: No OFD packet to send [11:16:50]OFD Sender: No OFD packet to send [11:16:52]accept exits with 8 [11:16:52]New connection [11:16:52]New thread 3067338084 created [11:16:52]Thread 3067194724 joined [11:16:52]Waiting for new connection... [11:16:52] Sock 8.Parse request [11:16:52]Sock 8.Check first char [11:16:52]Sock 8.First char is OK [11:16:52]request: POST /json_proto HTTP/1.0 [11:16:52]Method: POST [11:16:52]URL: /json_proto [11:16:52]Method is POST - this is cgi request [11:16:52]url: /json_proto [11:16:52]query_string will be loaded in cgi processing [11:16:52]execute_cgi json_proto POST (null) [11:16:52]execute_cgi path=json_proto method=POST [11:16:52]POST find Content-Length [11:16:52]Host: 172.17.45.7:8080 [11:16:52]Content-Length: 679 [11:16:52]Content-Type: application/json [11:16:52] [11:16:52]POST finish read [11:16:52]Found Content-Length = 679 [11:16:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:52]execute_script... [11:16: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)950319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:52]POST & json_proto [11:16:52]process_json_proto [11:16:52]json parsed OK: [11:16:52]protocol is kg_v1.0 [11:16:52]action value=close_receipt [11:16:52]process_action close_receipt [11:16:52]cmd_close_receipt [11:16:52]MH_GetDate [11:16:52]Write to MH i2c: F0 00 00 6D 21 7D [11:16:52]Write i2c OK [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: F0 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: F0 09 00 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: F0 09 00 6D 21 00 26 1D AA 66 90 0F 3E 66 1C [11:16:52]GetLastDocTimeStamp 1722424474 [11:16:52]current date 1722424614 [11:16:52]FM_GetShiftState [11:16:52]SAM_PROTO_GetShiftState [11:16:52]wFMCommunicate request_size=4 [11:16:52]MH_SAM_APDU [11:16:52]CAPDU: 80 13 01 00 [11:16:52]Write to MH i2c: E2 08 00 6E 21 80 13 01 00 00 00 00 00 0C [11:16:52]Write i2c OK [11:16:52]MH_I2C_Read... [11:16:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:52]Read from MH i2c: E2 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: E2 0E 00 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: E2 0E 00 6E 21 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 A4 [11:16:52]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [11:16:52]wFMCommunicate OK [11:16:52]SAM_PROTO_GetShiftState done [11:16:52]FM_GetShiftState done [11:16:52]opened in 1722384637 [11:16:52]opened+sec_in_day 1722471037 [11:16:52]quantity*price = 200025 [11:16:52]sum+1 = 200026 [11:16:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 123 31.07.2024 11:16 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119392 ФПД: 168723791331632 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T111654&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119392&fm=168723791331632&tin=02508201610067®Number=0000000000092660&sum=200000 [11:16:53]StoreToDocumentArchive [11:16:53]shift 436 fd 119392 [11:16:53]save to /storage/0436/doc_00119392 [11:16:53]save last doc name /storage/0436/doc_00119392 to /storage/kkm_last_doc_name [11:16:53]save OK [11:16:53]Clear old archive folders... [11:16:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:16:53]tlvbuf is 00AC4880 [11:16:53]SAM_PROTO_ClearQueue [11:16:53]wFMCommunicate request_size=4 [11:16:53]MH_SAM_APDU [11:16:53]CAPDU: 80 09 00 00 [11:16:53]Write to MH i2c: E2 08 00 7B 21 80 09 00 00 00 00 00 00 0E [11:16:53]Write i2c OK [11:16:53]MH_I2C_Read... [11:16:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:53]Read from MH i2c: E2 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: E2 03 00 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: E2 03 00 7B 21 00 90 00 10 [11:16:53]RAPDU: 90 00 [11:16:53]wFMCommunicate OK [11:16:53]SAM_PROTO_ClearQueue done [11:16:53]KKMCreateOFDPacket [11:16:53]OFDProtocolAddRootSTLVToBuf [11:16:53]FM_MakeSignedData [11:16:53]FM_MakeSignedData [11:16:53]SAM_PROTO_SignData [11:16:53]wFMCommunicate request_size=4 [11:16:53]MH_SAM_APDU [11:16:53]CAPDU: 80 0D 01 02 [11:16:53]Write to MH i2c: E2 08 00 7C 21 80 0D 01 02 00 00 00 00 16 [11:16:53]Write i2c OK [11:16:53]MH_I2C_Read... [11:16:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:53]Read from MH i2c: E2 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: E2 03 00 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: E2 03 00 7C 21 00 90 00 11 [11:16:53]RAPDU: 90 00 [11:16:53]wFMCommunicate OK [11:16:53]wFMCommunicate request_size=255 [11:16:53]MH_SAM_APDU [11:16:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 26 1D AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 60 D2 01 00 35 04 06 00 99 74 11 A5 [11:16:53]Write to MH i2c: E2 02 01 7D 21 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 26 1D AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 60 D2 01 00 35 04 06 00 99 74 11 A5 00 00 0D [11:16:53]Write i2c OK [11:16:53]MH_I2C_Read... [11:16:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:54]Read from MH i2c: E2 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 03 00 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 03 00 7D 21 00 90 00 12 [11:16:54]RAPDU: 90 00 [11:16:54]wFMCommunicate OK [11:16:54]wFMCommunicate request_size=7 [11:16:54]MH_SAM_APDU [11:16:54]CAPDU: 80 0D 02 02 02 C1 30 [11:16:54]Write to MH i2c: E2 0A 00 7E 21 80 0D 02 02 02 00 C1 30 00 00 0E [11:16:54]Write i2c OK [11:16:54]MH_I2C_Read... [11:16:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:54]Read from MH i2c: E2 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 03 00 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 03 00 7E 21 00 90 00 13 [11:16:54]RAPDU: 90 00 [11:16:54]wFMCommunicate OK [11:16:54]wFMCommunicate request_size=4 [11:16:54]MH_SAM_APDU [11:16:54]CAPDU: 80 0D 03 02 [11:16:54]Write to MH i2c: E2 08 00 7F 21 80 0D 03 02 00 00 00 00 1B [11:16:54]Write i2c OK [11:16:54]MH_I2C_Read... [11:16:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:54]Read from MH i2c: E2 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 0B 00 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 0B 00 7F 21 00 6C 10 D7 45 CA D0 7E FB 90 00 C7 [11:16:54]RAPDU: 6C 10 D7 45 CA D0 7E FB 90 00 [11:16:54]wFMCommunicate OK [11:16:54]SAM_PROTO_SignData done [11:16:54]FM_MakeSignedData done [11:16:54]CreateOFDProtocolMessage [11:16:54]wFMCommunicate request_size=4 [11:16:54]MH_SAM_APDU [11:16:54]CAPDU: 80 11 00 00 [11:16:54]Write to MH i2c: E2 08 00 80 21 80 11 00 00 00 00 00 00 1B [11:16:54]Write i2c OK [11:16:54]MH_I2C_Read... [11:16:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:54]Read from MH i2c: E2 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 17 00 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 17 00 80 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 76 [11:16:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:16:54]wFMCommunicate OK [11:16:54]CreateOFDProtocolMessage done [11:16:54]OFDSenderStorePacket 119392 [11:16:54]StoreOFDPacket docnum=119392 [11:16:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 CE AF 04 01 49 79 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 26 1D AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 60 D2 01 00 35 04 06 00 99 74 11 A5 C1 30 6C 10 D7 45 CA D0 7E FB [11:16:54]CheckFolder [11:16:54]dirname=/storage/ofd_packets [11:16:54]CheckFolder done [11:16:54]ProducePacketName [11:16:54]name=ofd_packets/00119392 [11:16:54]NVStorageSaveData ofd_packets/00119392 [11:16:54]File name is /storage/ofd_packets/00119392 [11:16:54]Write 298 bytes [11:16:54]NVStorageSaveData done [11:16:54]OFDSenderStorePacket done [11:16:54]KKMCreateOFDPacket done [11:16:54]NVStorageSaveData kkm_last_timestamp [11:16:54]File name is /storage/kkm_last_timestamp [11:16:54]Write 4 bytes [11:16:54]NVStorageSaveData done [11:16:54]ExternCall_PrintAddStr [11:16:54]wPrintStart [11:16:54]Write to MH i2c: 01 00 00 81 21 A2 [11:16:54]Write i2c OK [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: 01 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: 01 07 00 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: 01 07 00 81 21 00 00 00 00 00 FF 0F B7 [11:16:54]RasterBufferAndPrint [11:16:54]line Счет N : (1)950319 [11:16:54]line ИНН: 02508201610067 [11:16:54]line Контрольно-Кассовый Чек [11:16:54]line ПРОДАЖА [11:16:54]line ТРК (МРК, ГНК) : 64 [11:16:54]line Товар: 2710194800 [11:16:54]line ДТ-К-5 [11:16:54]line 26.250 * 76.20 [11:16:54]line = 2000.25 [11:16:54]line НДС 12% НСП 1% [11:16:54]line > о реализуемом товаре [11:16:54]line ОКРУГЛЕНИЕ: -0.25 [11:16:54]line ИТОГО: 2000.00 [11:16:54]line Внесено: 2000.00 [11:16:54]line СДАЧА: 0.00 [11:16:54]line НСП 1% : 17.70 [11:16:54]line НДС 12% : 212.42 [11:16:54]line Наличными: 2000.00 [11:16:54]line Безнал.: 0.00 [11:16:54]line Место: АЗС № 134 "Партнер Нефть" [11:16:54]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:16:54]line СНО: Общий режим [11:16:54]line Чек 123 31.07.2024 11:16 [11:16:54]line Смена: 436 ФФД: 1.0 [11:16:54]line ЗНМ: 0300000044 [11:16:54]line РНМ: 0000000000092660 [11:16:54]line Версия ККМ: 001 [11:16:54]line ФМ: 0000000000874939 [11:16:54]line ФД: 119392 [11:16:54]line ФПД: 168723791331632 [11:16:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T111654&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119392&fm=168723791331632&tin=02508201610067®Number=0000000000092660&sum=200000 [11:16:54]OFD Sender: Processing packet 119392 [packets to send 86, broken 85] [11:16:54]ProducePacketName [11:16:54]name=ofd_packets/00119392 [11:16:54]OFD Sender: To server: pG, [11:16:54]CommunicateWithHost lk.salyk.kg:30040 [11:16:54]ConnectInit lk.salyk.kg [11:16:54]written 0, free lines is 4095 [11:16:54]Connected sock=10 [11:16:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 CE AF 04 01 49 79 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 26 1D AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 60 D2 01 00 35 04 06 00 99 74 11 A5 C1 30 6C 10 D7 45 CA D0 7E FB [11:16:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 4E 29 47 00 FD FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 60 D2 01 00 F4 03 04 00 AF CA A9 66 B6 04 01 00 00 43 C8 80 7F B2 8A C8 02 [11:16:54]CommunicateWithHost err = 0 [11:16:54]CheckOFDResponse [11:16:54]1017 (14) - 77093643461234 [11:16:54]1041 (16) - 0000000000874939 [11:16:54]1040 (4) - 119392 [11:16:54]1012 (4) - 31.07.2024 05:25 [11:16:54]1206 (1) - 0 [11:16:54]OFD Sender: Remove packet 119392 [11:16:54]ProducePacketName [11:16:54]name=ofd_packets/00119392 [11:16:54]NVStorageDeleteData [11:16:54]Write to MH i2c: 01 00 00 AB 21 CC [11:16:54]Write i2c OK [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: 01 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: 01 07 00 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: 01 07 00 AB 21 00 00 00 00 00 E6 0C C5 [11:16:54]RasterBufferAndPrint [11:16:54]line [11:16:54]line [11:16:54]line [11:16:54]line [11:16:54]line [11:16:54]written 0, free lines is 3308 [11:16:54]MH_Cut [11:16:54]Write to MH i2c: D1 01 00 B2 21 01 A5 [11:16:54]Write i2c OK [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: D1 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: D1 01 00 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: D1 01 00 B2 21 00 A4 [11:16:54]Write to MH i2c: 01 00 00 B3 21 D4 [11:16:54]Write i2c OK [11:16:54]MH_I2C_Read... [11:16:55]OFD Sender: No OFD packet to send [11:16:55]*** Cut start [11:16:55]*** Partial cut [11:16:55]*** CUTSNS_PIN = 1 [11:16:55]*** CUTSNS_PIN = 0 [11:16:55]*** Brake cut motor [11:16:56]Read from MH i2c: 01 [11:16:56]MH_I2C_Read... [11:16:56]*** Stop cut motor [11:16:56]*** Cut end [11:16:56]Read from MH i2c: 01 07 00 [11:16:56]MH_I2C_Read... [11:16:56]Read from MH i2c: 01 07 00 B3 21 00 00 00 00 00 FF 0F E9 [11:16:56]process_action close_receipt done [11:16:56]requested_data is exist [11:16:56]produce_requested_data [11:16:56]requested_item fm.sn is exist - process it [11:16:56]wFMCommunicate request_size=4 [11:16:56]MH_SAM_APDU [11:16:56]CAPDU: 80 11 00 00 [11:16:56]Write to MH i2c: E2 08 00 B4 21 80 11 00 00 00 00 00 00 4F [11:16:56]Write i2c OK [11:16:56]MH_I2C_Read... [11:16:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:56]Read from MH i2c: E2 [11:16:56]MH_I2C_Read... [11:16:56]Read from MH i2c: E2 17 00 [11:16:56]MH_I2C_Read... [11:16:56]Read from MH i2c: E2 17 00 B4 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AA [11:16:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:16:56]wFMCommunicate OK [11:16:56]requested_item fd.num is exist - process it [11:16:56]SAM_PROTO_GetFieldsCounters [11:16:56]wFMCommunicate request_size=4 [11:16:56]MH_SAM_APDU [11:16:56]CAPDU: 80 13 00 00 [11:16:56]Write to MH i2c: E2 08 00 B5 21 80 13 00 00 00 00 00 00 52 [11:16:56]Write i2c OK [11:16:56]MH_I2C_Read... [11:16:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:56]Read from MH i2c: E2 [11:16:56]MH_I2C_Read... [11:16:56]Read from MH i2c: E2 62 00 [11:16:56]MH_I2C_Read... [11:16:56]Read from MH i2c: E2 62 00 B5 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 60 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [11:16:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 60 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:16:56]wFMCommunicate OK [11:16:56]SAM_PROTO_GetFieldsCounters done [11:16:56]requested_item shift.num is exist - process it [11:16:56]requested_item shift.opened is exist - process it [11:16:56]req_shift_opened [11:16:56]FM_GetShiftState [11:16:56]SAM_PROTO_GetShiftState [11:16:56]wFMCommunicate request_size=4 [11:16:56]MH_SAM_APDU [11:16:56]CAPDU: 80 13 01 00 [11:16:56]Write to MH i2c: E2 08 00 B6 21 80 13 01 00 00 00 00 00 54 [11:16:56]Write i2c OK [11:16:56]MH_I2C_Read... [11:16:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:56]Read from MH i2c: E2 [11:16:56]MH_I2C_Read... [11:16:56]Read from MH i2c: E2 0E 00 [11:16:56]MH_I2C_Read... [11:16:56]Read from MH i2c: E2 0E 00 B6 21 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 EC [11:16:56]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [11:16:56]wFMCommunicate OK [11:16:56]SAM_PROTO_GetShiftState done [11:16:56]FM_GetShiftState done [11:16:56]req_shift_opened done [11:16:56]requested_item shift.open_date is exist - process it [11:16:56]req_shift_open_date [11:16:56]req_shift_open_date done [11:16:56]produce_requested_data done [11:16:56]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119392,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [11:16:56]process_action_free close_receipt [11:16:56]json_value_free [11:16:56]json_value_free done [11:16:56]process_json_proto returns [11:16:56]Send response to host [11:16:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119392,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [11:16:56]free response buf [11:16:56]execute_script done [11:16:56]execute_script returns [11:16:56]free content buf [11:16:56]Sock 8.Close socket [11:16:56]Sock 8.Thread stoped [11:17:00]OFD Sender: No OFD packet to send [11:17:01]accept exits with 9 [11:17:01]New connection [11:17:01]New thread 3067194724 created [11:17:01]Thread 3067338084 joined [11:17:01]Waiting for new connection... [11:17:01] Sock 9.Parse request [11:17:01]Sock 9.Check first char [11:17:01]Sock 9.First char is OK [11:17:01]request: POST /json_proto HTTP/1.0 [11:17:01]Method: POST [11:17:01]URL: /json_proto [11:17:01]Method is POST - this is cgi request [11:17:01]url: /json_proto [11:17:01]query_string will be loaded in cgi processing [11:17:01]execute_cgi json_proto POST (null) [11:17:01]execute_cgi path=json_proto method=POST [11:17:01]POST find Content-Length [11:17:01]Host: 172.17.45.7:8080 [11:17:01]Content-Length: 736 [11:17:01]Content-Type: application/json [11:17:01] [11:17:01]POST finish read [11:17:01]Found Content-Length = 736 [11:17:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 119392, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:01]execute_script... [11:17:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 119392, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:01]POST & json_proto [11:17:01]process_json_proto [11:17:01]json parsed OK: [11:17:01]protocol is kg_v1.0 [11:17:01]action value=close_receipt [11:17:01]process_action close_receipt [11:17:01]cmd_close_receipt [11:17:01]MH_GetDate [11:17:01]Write to MH i2c: F0 00 00 B7 21 C7 [11:17:01]Write i2c OK [11:17:01]MH_I2C_Read... [11:17:01]Read from MH i2c: F0 [11:17:01]MH_I2C_Read... [11:17:01]Read from MH i2c: F0 09 00 [11:17:01]MH_I2C_Read... [11:17:01]Read from MH i2c: F0 09 00 B7 21 00 2F 1D AA 66 90 0F 3E 66 6F [11:17:01]GetLastDocTimeStamp 1722424614 [11:17:01]current date 1722424623 [11:17:01]FM_GetShiftState [11:17:01]SAM_PROTO_GetShiftState [11:17:01]wFMCommunicate request_size=4 [11:17:01]MH_SAM_APDU [11:17:01]CAPDU: 80 13 01 00 [11:17:01]Write to MH i2c: E2 08 00 B8 21 80 13 01 00 00 00 00 00 56 [11:17:01]Write i2c OK [11:17:01]MH_I2C_Read... [11:17:01]Read from MH i2c: *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:01]E2 [11:17:01]MH_I2C_Read... [11:17:01]Read from MH i2c: E2 0E 00 [11:17:01]MH_I2C_Read... [11:17:01]Read from MH i2c: E2 0E 00 B8 21 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 EE [11:17:01]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [11:17:01]wFMCommunicate OK [11:17:01]SAM_PROTO_GetShiftState done [11:17:01]FM_GetShiftState done [11:17:01]opened in 1722384637 [11:17:01]opened+sec_in_day 1722471037 [11:17:01]quantity*price = 200025 [11:17:01]sum+1 = 200026 [11:17:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 124 31.07.2024 11:17 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФД осн.: 119392 ФМ осн.: 0000000000874939 ФМ: 0000000000874939 ФД: 119393 ФПД: 183734475065712 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T111703&type=2&operation_type=1&fn_number=0000000000874939&fd_number=119393&fm=183734475065712&tin=02508201610067®Number=0000000000092660&sum=200000 [11:17:02]StoreToDocumentArchive [11:17:02]shift 436 fd 119393 [11:17:02]save to /storage/0436/doc_00119393 [11:17:02]save last doc name /storage/0436/doc_00119393 to /storage/kkm_last_doc_name [11:17:02]save OK [11:17:02]Clear old archive folders... [11:17:02]ProcessDocumentItem done err = 0, tmpTLVsize=276 [11:17:02]tlvbuf is 00B65360 [11:17:02]SAM_PROTO_ClearQueue [11:17:02]wFMCommunicate request_size=4 [11:17:02]MH_SAM_APDU [11:17:02]CAPDU: 80 09 00 00 [11:17:02]Write to MH i2c: E2 08 00 C7 21 80 09 00 00 00 00 00 00 5A [11:17:02]Write i2c OK [11:17:02]MH_I2C_Read... [11:17:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:02]Read from MH i2c: E2 [11:17:02]MH_I2C_Read... [11:17:02]Read from MH i2c: E2 03 00 [11:17:02]MH_I2C_Read... [11:17:02]Read from MH i2c: E2 03 00 C7 21 00 90 00 5C [11:17:02]RAPDU: 90 00 [11:17:02]wFMCommunicate OK [11:17:02]SAM_PROTO_ClearQueue done [11:17:02]KKMCreateOFDPacket [11:17:02]OFDProtocolAddRootSTLVToBuf [11:17:02]FM_MakeSignedData [11:17:02]FM_MakeSignedData [11:17:02]SAM_PROTO_SignData [11:17:02]wFMCommunicate request_size=4 [11:17:02]MH_SAM_APDU [11:17:02]CAPDU: 80 0D 01 02 [11:17:02]Write to MH i2c: E2 08 00 C8 21 80 0D 01 02 00 00 00 00 62 [11:17:02]Write i2c OK [11:17:02]MH_I2C_Read... [11:17:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:02]Read from MH i2c: E2 [11:17:02]MH_I2C_Read... [11:17:02]Read from MH i2c: E2 03 00 [11:17:02]MH_I2C_Read... [11:17:02]Read from MH i2c: E2 03 00 C8 21 00 90 00 5D [11:17:02]RAPDU: 90 00 [11:17:02]wFMCommunicate OK [11:17:02]wFMCommunicate request_size=255 [11:17:02]MH_SAM_APDU [11:17:02]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 2F 1D AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 60 D2 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 [11:17:02]Write to MH i2c: E2 02 01 C9 21 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 2F 1D AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 60 D2 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 00 00 92 [11:17:02]Write i2c OK [11:17:02]MH_I2C_Read... [11:17:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:03]Read from MH i2c: E2 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: E2 03 00 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: E2 03 00 C9 21 00 90 00 5E [11:17:03]RAPDU: 90 00 [11:17:03]wFMCommunicate OK [11:17:03]wFMCommunicate request_size=35 [11:17:03]MH_SAM_APDU [11:17:03]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 61 D2 01 00 35 04 06 00 A7 1B 04 1E 89 70 [11:17:03]Write to MH i2c: E2 26 00 CA 21 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 61 D2 01 00 35 04 06 00 A7 1B 04 1E 89 70 00 00 71 [11:17:03]Write i2c OK [11:17:03]MH_I2C_Read... [11:17:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:03]Read from MH i2c: E2 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: E2 03 00 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: E2 03 00 CA 21 00 90 00 5F [11:17:03]RAPDU: 90 00 [11:17:03]wFMCommunicate OK [11:17:03]wFMCommunicate request_size=4 [11:17:03]MH_SAM_APDU [11:17:03]CAPDU: 80 0D 03 02 [11:17:03]Write to MH i2c: E2 08 00 CB 21 80 0D 03 02 00 00 00 00 67 [11:17:03]Write i2c OK [11:17:03]MH_I2C_Read... [11:17:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:03]Read from MH i2c: E2 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: E2 0B 00 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: E2 0B 00 CB 21 00 05 2F 3E 7E 80 E2 D8 93 90 00 25 [11:17:03]RAPDU: 05 2F 3E 7E 80 E2 D8 93 90 00 [11:17:03]wFMCommunicate OK [11:17:03]SAM_PROTO_SignData done [11:17:03]FM_MakeSignedData done [11:17:03]CreateOFDProtocolMessage [11:17:03]wFMCommunicate request_size=4 [11:17:03]MH_SAM_APDU [11:17:03]CAPDU: 80 11 00 00 [11:17:03]Write to MH i2c: E2 08 00 CC 21 80 11 00 00 00 00 00 00 67 [11:17:03]Write i2c OK [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: E2 [11:17:03]MH_I2C_Read... [11:17:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:03]Read from MH i2c: E2 17 00 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: E2 17 00 CC 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C2 [11:17:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:17:03]wFMCommunicate OK [11:17:03]CreateOFDProtocolMessage done [11:17:03]OFDSenderStorePacket 119393 [11:17:03]StoreOFDPacket docnum=119393 [11:17:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 28 01 00 00 D3 7E 20 01 33 3C 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 2F 1D AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 60 D2 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 61 D2 01 00 35 04 06 00 A7 1B 04 1E 89 70 05 2F 3E 7E 80 E2 D8 93 [11:17:03]CheckFolder [11:17:03]dirname=/storage/ofd_packets [11:17:03]CheckFolder done [11:17:03]ProducePacketName [11:17:03]name=ofd_packets/00119393 [11:17:03]NVStorageSaveData ofd_packets/00119393 [11:17:03]File name is /storage/ofd_packets/00119393 [11:17:03]Write 326 bytes [11:17:03]NVStorageSaveData done [11:17:03]OFDSenderStorePacket done [11:17:03]KKMCreateOFDPacket done [11:17:03]NVStorageSaveData kkm_last_timestamp [11:17:03]File name is /storage/kkm_last_timestamp [11:17:03]Write 4 bytes [11:17:03]NVStorageSaveData done [11:17:03]ExternCall_PrintAddStr [11:17:03]wPrintStart [11:17:03]Write to MH i2c: 01 00 00 CD 21 EE [11:17:03]Write i2c OK [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: 01 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: 01 07 00 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: 01 07 00 CD 21 00 00 00 00 00 FF 0F 03 [11:17:03]RasterBufferAndPrint [11:17:03]line Счет N : (1)950319 [11:17:03]line ИНН: 02508201610067 [11:17:03]line Контрольно-Кассовый Чек [11:17:03]line ВОЗВРАТ ПРОДАЖИ [11:17:03]line ТРК (МРК, ГНК) : 64 [11:17:03]line Товар: 2710194800 [11:17:03]line ДТ-К-5 [11:17:03]line 26.250 * 76.20 [11:17:03]line = 2000.25 [11:17:03]line НДС 12% НСП 1% [11:17:03]line > о реализуемом товаре [11:17:03]line ОКРУГЛЕНИЕ: -0.25 [11:17:03]line ИТОГО: 2000.00 [11:17:03]line НСП 1% : 17.70 [11:17:03]line НДС 12% : 212.42 [11:17:03]line Наличными: 2000.00 [11:17:03]line Безнал.: 0.00 [11:17:03]line Место: АЗС № 134 "Партнер Нефть" [11:17:03]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:17:03]line СНО: Общий режим [11:17:03]line Чек 124 31.07.2024 11:17 [11:17:03]line Смена: 436 ФФД: 1.0 [11:17:03]line ЗНМ: 0300000044 [11:17:03]line РНМ: 0000000000092660 [11:17:03]line Версия ККМ: 001 [11:17:03]line ФД осн.: 119392 [11:17:03]line ФМ осн.: 0000000000874939 [11:17:03]line ФМ: 0000000000874939 [11:17:03]line ФД: 119393 [11:17:03]line ФПД: 183734475065712 [11:17:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T111703&type=2&operation_type=1&fn_number=0000000000874939&fd_number=119393&fm=183734475065712&tin=02508201610067®Number=0000000000092660&sum=200000 [11:17:03]written 0, free lines is 4095 [11:17:03]OFD Sender: Processing packet 119393 [packets to send 86, broken 85] [11:17:03]ProducePacketName [11:17:03]name=ofd_packets/00119393 [11:17:03]OFD Sender: To server: pG, [11:17:03]CommunicateWithHost lk.salyk.kg:30040 [11:17:03]ConnectInit lk.salyk.kg [11:17:03]Connected sock=10 [11:17:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 28 01 00 00 D3 7E 20 01 33 3C 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 2F 1D AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 60 D2 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 61 D2 01 00 35 04 06 00 A7 1B 04 1E 89 70 05 2F 3E 7E 80 E2 D8 93 [11:17:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 ED 23 47 00 6C 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 39 33 39 10 04 04 00 61 D2 01 00 F4 03 04 00 B8 CA A9 66 B6 04 01 00 00 6C C0 4C 07 E5 AF B5 DF [11:17:03]CommunicateWithHost err = 0 [11:17:03]CheckOFDResponse [11:17:03]1017 (14) - 77093643461234 [11:17:03]1041 (16) - 0000000000874939 [11:17:03]1040 (4) - 119393 [11:17:03]1012 (4) - 31.07.2024 05:25 [11:17:03]1206 (1) - 0 [11:17:03]OFD Sender: Remove packet 119393 [11:17:03]ProducePacketName [11:17:03]name=ofd_packets/00119393 [11:17:03]NVStorageDeleteData [11:17:03]Write to MH i2c: 01 00 00 F7 21 18 [11:17:03]Write i2c OK [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: 01 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: 01 07 00 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: 01 07 00 F7 21 00 00 00 00 00 EE 0C 19 [11:17:03]RasterBufferAndPrint [11:17:03]line [11:17:03]line [11:17:03]line [11:17:03]line [11:17:03]line [11:17:03]written 0, free lines is 3323 [11:17:03]MH_Cut [11:17:03]Write to MH i2c: D1 01 00 FE 21 01 F1 [11:17:03]Write i2c OK [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: D1 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: D1 01 00 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: D1 01 00 FE 21 00 F0 [11:17:03]Write to MH i2c: 01 00 00 FF 21 20 [11:17:03]Write i2c OK [11:17:03]MH_I2C_Read... [11:17:04]OFD Sender: No OFD packet to send [11:17:04]*** Cut start [11:17:04]*** Partial cut [11:17:04]*** CUTSNS_PIN = 1 [11:17:04]*** CUTSNS_PIN = 0 [11:17:04]*** Brake cut motor [11:17:04]Read from MH i2c: 01 [11:17:04]MH_I2C_Read... [11:17:04]*** Stop cut motor [11:17:05]*** Cut end [11:17:05]Read from MH i2c: 01 07 00 [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: 01 07 00 FF 21 00 00 00 00 00 FF 0F 35 [11:17:05]process_action close_receipt done [11:17:05]requested_data is exist [11:17:05]produce_requested_data [11:17:05]requested_item fm.sn is exist - process it [11:17:05]wFMCommunicate request_size=4 [11:17:05]MH_SAM_APDU [11:17:05]CAPDU: 80 11 00 00 [11:17:05]Write to MH i2c: E2 08 00 00 22 80 11 00 00 00 00 00 00 9C [11:17:05]Write i2c OK [11:17:05]MH_I2C_Read... [11:17:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:05]Read from MH i2c: E2 [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: E2 17 00 [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: E2 17 00 00 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F7 [11:17:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:17:05]wFMCommunicate OK [11:17:05]requested_item fd.num is exist - process it [11:17:05]SAM_PROTO_GetFieldsCounters [11:17:05]wFMCommunicate request_size=4 [11:17:05]MH_SAM_APDU [11:17:05]CAPDU: 80 13 00 00 [11:17:05]Write to MH i2c: E2 08 00 01 22 80 13 00 00 00 00 00 00 9F [11:17:05]Write i2c OK [11:17:05]MH_I2C_Read... [11:17:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:05]Read from MH i2c: E2 [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: E2 62 00 [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: E2 62 00 01 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 61 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [11:17:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 61 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:05]wFMCommunicate OK [11:17:05]SAM_PROTO_GetFieldsCounters done [11:17:05]requested_item shift.num is exist - process it [11:17:05]requested_item shift.opened is exist - process it [11:17:05]req_shift_opened [11:17:05]FM_GetShiftState [11:17:05]SAM_PROTO_GetShiftState [11:17:05]wFMCommunicate request_size=4 [11:17:05]MH_SAM_APDU [11:17:05]CAPDU: 80 13 01 00 [11:17:05]Write to MH i2c: E2 08 00 02 22 80 13 01 00 00 00 00 00 A1 [11:17:05]Write i2c OK [11:17:05]MH_I2C_Read... [11:17:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:05]Read from MH i2c: E2 [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: E2 0E 00 [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: E2 0E 00 02 22 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 39 [11:17:05]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [11:17:05]wFMCommunicate OK [11:17:05]SAM_PROTO_GetShiftState done [11:17:05]FM_GetShiftState done [11:17:05]req_shift_opened done [11:17:05]requested_item shift.open_date is exist - process it [11:17:05]req_shift_open_date [11:17:05]req_shift_open_date done [11:17:05]produce_requested_data done [11:17:05]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119393,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [11:17:05]process_action_free close_receipt [11:17:05]json_value_free [11:17:05]json_value_free done [11:17:05]process_json_proto returns [11:17:05]Send response to host [11:17:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119393,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [11:17:05]free response buf [11:17:05]execute_script done [11:17:05]execute_script returns [11:17:05]free content buf [11:17:05]Sock 9.Close socket [11:17:05]Sock 9.Thread stoped [11:17:09]OFD Sender: No OFD packet to send [11:17:12]accept exits with 8 [11:17:12]New connection [11:17:12]New thread 3067338084 created [11:17:12]Thread 3067194724 joined [11:17:12]Waiting for new connection... [11:17:12] Sock 8.Parse request [11:17:12]Sock 8.Check first char [11:17:12]Sock 8.First char is OK [11:17:12]request: POST /json_proto HTTP/1.0 [11:17:12]Method: POST [11:17:12]URL: /json_proto [11:17:12]Method is POST - this is cgi request [11:17:12]url: /json_proto [11:17:12]query_string will be loaded in cgi processing [11:17:12]execute_cgi json_proto POST (null) [11:17:12]execute_cgi path=json_proto method=POST [11:17:12]POST find Content-Length [11:17:12]Host: 172.17.45.7:8080 [11:17:12]Content-Length: 674 [11:17:12]Content-Type: application/json [11:17:12] [11:17:12]POST finish read [11:17:12]Found Content-Length = 674 [11:17:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:12]execute_script... [11:17:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:12]POST & json_proto [11:17:12]process_json_proto [11:17:12]json parsed OK: [11:17:12]protocol is kg_v1.0 [11:17:12]action value=close_receipt [11:17:12]process_action close_receipt [11:17:12]cmd_close_receipt [11:17:12]MH_GetDate [11:17:12]Write to MH i2c: F0 00 00 03 22 14 [11:17:12]Write i2c OK [11:17:12]MH_I2C_Read... [11:17:12]Read from MH i2c: F0 [11:17:12]MH_I2C_Read... [11:17:12]Read from MH i2c: F0 09 00 [11:17:12]MH_I2C_Read... [11:17:12]Read from MH i2c: F0 09 00 03 22 00 3A 1D AA 66 90 0F 3E 66 C7 [11:17:12]GetLastDocTimeStamp 1722424623 [11:17:12]current date 1722424634 [11:17:12]FM_GetShiftState [11:17:12]SAM_PROTO_GetShiftState [11:17:12]wFMCommunicate request_size=4 [11:17:12]MH_SAM_APDU [11:17:12]CAPDU: 80 13 01 00 [11:17:12]Write to MH i2c: E2 08 00 04 22 80 13 01 00 00 00 00 00 A3 [11:17:12]Write i2c OK [11:17:12]MH_I2C_Read... [11:17:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:12]Read from MH i2c: E2 [11:17:12]MH_I2C_Read... [11:17:12]Read from MH i2c: E2 0E 00 [11:17:12]MH_I2C_Read... [11:17:12]Read from MH i2c: E2 0E 00 04 22 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 3B [11:17:12]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [11:17:12]wFMCommunicate OK [11:17:12]SAM_PROTO_GetShiftState done [11:17:12]FM_GetShiftState done [11:17:12]opened in 1722384637 [11:17:12]opened+sec_in_day 1722471037 [11:17:12]quantity*price = 50063 [11:17:12]sum+1 = 50064 [11:17:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 125 31.07.2024 11:17 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119394 ФПД: 102994065729475 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T111714&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119394&fm=102994065729475&tin=02508201610067®Number=0000000000092660&sum=50000 [11:17:13]StoreToDocumentArchive [11:17:13]shift 436 fd 119394 [11:17:13]save to /storage/0436/doc_00119394 [11:17:13]save last doc name /storage/0436/doc_00119394 to /storage/kkm_last_doc_name [11:17:13]save OK [11:17:13]Clear old archive folders... [11:17:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:17:13]tlvbuf is 00B74830 [11:17:13]SAM_PROTO_ClearQueue [11:17:13]wFMCommunicate request_size=4 [11:17:13]MH_SAM_APDU [11:17:13]CAPDU: 80 09 00 00 [11:17:13]Write to MH i2c: E2 08 00 11 22 80 09 00 00 00 00 00 00 A5 [11:17:13]Write i2c OK [11:17:13]MH_I2C_Read... [11:17:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:13]Read from MH i2c: E2 [11:17:13]MH_I2C_Read... [11:17:13]Read from MH i2c: E2 03 00 [11:17:13]MH_I2C_Read... [11:17:13]Read from MH i2c: E2 03 00 11 22 00 90 00 A7 [11:17:13]RAPDU: 90 00 [11:17:13]wFMCommunicate OK [11:17:13]SAM_PROTO_ClearQueue done [11:17:13]KKMCreateOFDPacket [11:17:13]OFDProtocolAddRootSTLVToBuf [11:17:13]FM_MakeSignedData [11:17:13]FM_MakeSignedData [11:17:13]SAM_PROTO_SignData [11:17:13]wFMCommunicate request_size=4 [11:17:13]MH_SAM_APDU [11:17:13]CAPDU: 80 0D 01 02 [11:17:13]Write to MH i2c: E2 08 00 12 22 80 0D 01 02 00 00 00 00 AD [11:17:13]Write i2c OK [11:17:13]MH_I2C_Read... [11:17:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:13]Read from MH i2c: E2 [11:17:13]MH_I2C_Read... [11:17:13]Read from MH i2c: E2 03 00 [11:17:13]MH_I2C_Read... [11:17:13]Read from MH i2c: E2 03 00 12 22 00 90 00 A8 [11:17:13]RAPDU: 90 00 [11:17:13]wFMCommunicate OK [11:17:13]wFMCommunicate request_size=255 [11:17:13]MH_SAM_APDU [11:17:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 3A 1D AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 62 D2 01 00 35 04 06 00 5D AC 2C B3 [11:17:13]Write to MH i2c: E2 02 01 13 22 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 3A 1D AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 62 D2 01 00 35 04 06 00 5D AC 2C B3 00 00 7B [11:17:13]Write i2c OK [11:17:13]MH_I2C_Read... [11:17:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:13]Read from MH i2c: E2 [11:17:13]MH_I2C_Read... [11:17:13]Read from MH i2c: E2 03 00 [11:17:13]MH_I2C_Read... [11:17:13]Read from MH i2c: E2 03 00 13 22 00 90 00 A9 [11:17:13]RAPDU: 90 00 [11:17:13]wFMCommunicate OK [11:17:13]wFMCommunicate request_size=7 [11:17:13]MH_SAM_APDU [11:17:13]CAPDU: 80 0D 02 02 02 A7 C3 [11:17:13]Write to MH i2c: E2 0A 00 14 22 80 0D 02 02 02 00 A7 C3 00 00 1E [11:17:13]Write i2c OK [11:17:13]MH_I2C_Read... [11:17:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:13]Read from MH i2c: E2 [11:17:13]MH_I2C_Read... [11:17:13]Read from MH i2c: E2 03 00 [11:17:13]MH_I2C_Read... [11:17:13]Read from MH i2c: E2 03 00 14 22 00 90 00 AA [11:17:13]RAPDU: 90 00 [11:17:13]wFMCommunicate OK [11:17:13]wFMCommunicate request_size=4 [11:17:13]MH_SAM_APDU [11:17:13]CAPDU: 80 0D 03 02 [11:17:13]Write to MH i2c: E2 08 00 15 22 80 0D 03 02 00 00 00 00 B2 [11:17:13]Write i2c OK [11:17:13]MH_I2C_Read... [11:17:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:13]Read from MH i2c: E2 [11:17:13]MH_I2C_Read... [11:17:13]Read from MH i2c: E2 0B 00 [11:17:13]MH_I2C_Read... [11:17:13]Read from MH i2c: E2 0B 00 15 22 00 08 21 19 C4 60 BC 32 E8 90 00 EF [11:17:13]RAPDU: 08 21 19 C4 60 BC 32 E8 90 00 [11:17:13]wFMCommunicate OK [11:17:13]SAM_PROTO_SignData done [11:17:13]FM_MakeSignedData done [11:17:13]CreateOFDProtocolMessage [11:17:13]wFMCommunicate request_size=4 [11:17:13]MH_SAM_APDU [11:17:13]CAPDU: 80 11 00 00 [11:17:13]Write to MH i2c: E2 08 00 16 22 80 11 00 00 00 00 00 00 B2 [11:17:13]Write i2c OK [11:17:13]MH_I2C_Read... [11:17:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:13]Read from MH i2c: E2 [11:17:13]MH_I2C_Read... [11:17:13]Read from MH i2c: E2 17 00 [11:17:13]MH_I2C_Read... [11:17:13]Read from MH i2c: E2 17 00 16 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0D [11:17:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:17:13]wFMCommunicate OK [11:17:13]CreateOFDProtocolMessage done [11:17:13]OFDSenderStorePacket 119394 [11:17:13]StoreOFDPacket docnum=119394 [11:17:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 0F EC 04 01 13 B6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 3A 1D AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 62 D2 01 00 35 04 06 00 5D AC 2C B3 A7 C3 08 21 19 C4 60 BC 32 E8 [11:17:13]CheckFolder [11:17:13]dirname=/storage/ofd_packets [11:17:13]CheckFolder done [11:17:13]ProducePacketName [11:17:13]name=ofd_packets/00119394 [11:17:13]NVStorageSaveData ofd_packets/00119394 [11:17:13]File name is /storage/ofd_packets/00119394 [11:17:13]Write 298 bytes [11:17:13]NVStorageSaveData done [11:17:13]OFDSenderStorePacket done [11:17:13]KKMCreateOFDPacket done [11:17:13]NVStorageSaveData kkm_last_timestamp [11:17:13]File name is /storage/kkm_last_timestamp [11:17:13]Write 4 bytes [11:17:13]NVStorageSaveData done [11:17:13]ExternCall_PrintAddStr [11:17:13]wPrintStart [11:17:13]Write to MH i2c: 01 00 00 17 22 39 [11:17:13]Write i2c OK [11:17:13]MH_I2C_Read... [11:17:13]Read from MH i2c: 01 [11:17:13]MH_I2C_Read... [11:17:13]Read from MH i2c: 01 07 00 [11:17:13]MH_I2C_Read... [11:17:13]Read from MH i2c: 01 07 00 17 22 00 00 00 00 00 FF 0F 4E [11:17:13]RasterBufferAndPrint [11:17:13]line Счет N : (1)950321 [11:17:13]line ИНН: 02508201610067 [11:17:13]line Контрольно-Кассовый Чек [11:17:13]line ПРОДАЖА [11:17:13]line ТРК (МРК, ГНК) : 11 [11:17:13]line Товар: 2710194800 [11:17:13]line ДТ-К-5 [11:17:14]line 6.570 * 76.20 [11:17:14]line = 500.63 [11:17:14]line НДС 12% НСП 1% [11:17:14]line > о реализуемом товаре [11:17:14]line ОКРУГЛЕНИЕ: -0.63 [11:17:14]line ИТОГО: 500.00 [11:17:14]line Внесено: 500.00 [11:17:14]line СДАЧА: 0.00 [11:17:14]line НСП 1% : 4.43 [11:17:14]line НДС 12% : 53.16 [11:17:14]line Наличными: 500.00 [11:17:14]line Безнал.: 0.00 [11:17:14]line Место: АЗС № 134 "Партнер Нефть" [11:17:14]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:17:14]line СНО: Общий режим [11:17:14]line Чек 125 31.07.2024 11:17 [11:17:14]line Смена: 436 ФФД: 1.0 [11:17:14]line ЗНМ: 0300000044 [11:17:14]line РНМ: 0000000000092660 [11:17:14]line Версия ККМ: 001 [11:17:14]line ФМ: 0000000000874939 [11:17:14]line ФД: 119394 [11:17:14]line ФПД: 102994065729475 [11:17:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T111714&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119394&fm=102994065729475&tin=02508201610067®Number=0000000000092660&sum=50000 [11:17:14]OFD Sender: Processing packet 119394 [packets to send 86, broken 85] [11:17:14]ProducePacketName [11:17:14]name=ofd_packets/00119394 [11:17:14]OFD Sender: To server: pG, [11:17:14]CommunicateWithHost lk.salyk.kg:30040 [11:17:14]ConnectInit lk.salyk.kg [11:17:14]written 0, free lines is 4095 [11:17:14]Connected sock=10 [11:17:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 0F EC 04 01 13 B6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 3A 1D AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 62 D2 01 00 35 04 06 00 5D AC 2C B3 A7 C3 08 21 19 C4 60 BC 32 E8 [11:17:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 AD 84 47 00 88 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 39 33 39 10 04 04 00 62 D2 01 00 F4 03 04 00 C3 CA A9 66 B6 04 01 00 00 82 16 90 22 43 EC 30 56 [11:17:14]CommunicateWithHost err = 0 [11:17:14]CheckOFDResponse [11:17:14]1017 (14) - 77093643461234 [11:17:14]1041 (16) - 0000000000874939 [11:17:14]1040 (4) - 119394 [11:17:14]1012 (4) - 31.07.2024 05:25 [11:17:14]1206 (1) - 0 [11:17:14]OFD Sender: Remove packet 119394 [11:17:14]ProducePacketName [11:17:14]name=ofd_packets/00119394 [11:17:14]NVStorageDeleteData [11:17:14]Write to MH i2c: 01 00 00 41 22 63 [11:17:14]Write i2c OK [11:17:14]MH_I2C_Read... [11:17:14]Read from MH i2c: 01 [11:17:14]MH_I2C_Read... [11:17:14]Read from MH i2c: 01 07 00 [11:17:14]MH_I2C_Read... [11:17:14]Read from MH i2c: 01 07 00 41 22 00 00 00 00 00 DC 0C 52 [11:17:14]RasterBufferAndPrint [11:17:14]line [11:17:14]line [11:17:14]line [11:17:14]line [11:17:14]line [11:17:14]written 0, free lines is 3311 [11:17:14]MH_Cut [11:17:14]Write to MH i2c: D1 01 00 48 22 01 3C [11:17:14]Write i2c OK [11:17:14]MH_I2C_Read... [11:17:14]Read from MH i2c: D1 [11:17:14]MH_I2C_Read... [11:17:14]Read from MH i2c: D1 01 00 [11:17:14]MH_I2C_Read... [11:17:14]Read from MH i2c: D1 01 00 48 22 00 3B [11:17:14]Write to MH i2c: 01 00 00 49 22 6B [11:17:14]Write i2c OK [11:17:14]MH_I2C_Read... [11:17:14]OFD Sender: No OFD packet to send [11:17:15]*** Cut start [11:17:15]*** Partial cut [11:17:15]*** CUTSNS_PIN = 1 [11:17:15]*** CUTSNS_PIN = 0 [11:17:15]*** Brake cut motor [11:17:15]Read from MH i2c: 01 [11:17:15]MH_I2C_Read... [11:17:15]*** Stop cut motor [11:17:15]*** Cut end [11:17:15]Read from MH i2c: 01 07 00 [11:17:15]MH_I2C_Read... [11:17:15]Read from MH i2c: 01 07 00 49 22 00 00 00 00 00 FF 0F 80 [11:17:15]process_action close_receipt done [11:17:15]requested_data is exist [11:17:15]produce_requested_data [11:17:15]requested_item fm.sn is exist - process it [11:17:15]wFMCommunicate request_size=4 [11:17:15]MH_SAM_APDU [11:17:15]CAPDU: 80 11 00 00 [11:17:15]Write to MH i2c: E2 08 00 4A 22 80 11 00 00 00 00 00 00 E6 [11:17:15]Write i2c OK [11:17:15]MH_I2C_Read... [11:17:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:15]Read from MH i2c: E2 [11:17:15]MH_I2C_Read... [11:17:15]Read from MH i2c: E2 17 00 [11:17:15]MH_I2C_Read... [11:17:15]Read from MH i2c: E2 17 00 4A 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 41 [11:17:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:17:15]wFMCommunicate OK [11:17:15]requested_item fd.num is exist - process it [11:17:15]SAM_PROTO_GetFieldsCounters [11:17:15]wFMCommunicate request_size=4 [11:17:15]MH_SAM_APDU [11:17:15]CAPDU: 80 13 00 00 [11:17:15]Write to MH i2c: E2 08 00 4B 22 80 13 00 00 00 00 00 00 E9 [11:17:15]Write i2c OK [11:17:15]MH_I2C_Read... [11:17:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:16]Read from MH i2c: E2 [11:17:16]MH_I2C_Read... [11:17:16]Read from MH i2c: E2 62 00 [11:17:16]MH_I2C_Read... [11:17:16]Read from MH i2c: E2 62 00 4B 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 62 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [11:17:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 62 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:16]wFMCommunicate OK [11:17:16]SAM_PROTO_GetFieldsCounters done [11:17:16]requested_item shift.num is exist - process it [11:17:16]requested_item shift.opened is exist - process it [11:17:16]req_shift_opened [11:17:16]FM_GetShiftState [11:17:16]SAM_PROTO_GetShiftState [11:17:16]wFMCommunicate request_size=4 [11:17:16]MH_SAM_APDU [11:17:16]CAPDU: 80 13 01 00 [11:17:16]Write to MH i2c: E2 08 00 4C 22 80 13 01 00 00 00 00 00 EB [11:17:16]Write i2c OK [11:17:16]MH_I2C_Read... [11:17:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:16]Read from MH i2c: E2 [11:17:16]MH_I2C_Read... [11:17:16]Read from MH i2c: E2 0E 00 [11:17:16]MH_I2C_Read... [11:17:16]Read from MH i2c: E2 0E 00 4C 22 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 83 [11:17:16]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [11:17:16]wFMCommunicate OK [11:17:16]SAM_PROTO_GetShiftState done [11:17:16]FM_GetShiftState done [11:17:16]req_shift_opened done [11:17:16]requested_item shift.open_date is exist - process it [11:17:16]req_shift_open_date [11:17:16]req_shift_open_date done [11:17:16]produce_requested_data done [11:17:16]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119394,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [11:17:16]process_action_free close_receipt [11:17:16]json_value_free [11:17:16]json_value_free done [11:17:16]process_json_proto returns [11:17:16]Send response to host [11:17:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119394,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [11:17:16]free response buf [11:17:16]execute_script done [11:17:16]execute_script returns [11:17:16]free content buf [11:17:16]Sock 8.Close socket [11:17:16]Sock 8.Thread stoped [11:17:19]OFD Sender: No OFD packet to send [11:17:24]OFD Sender: No OFD packet to send [11:17:29]OFD Sender: No OFD packet to send [11:17:34]OFD Sender: No OFD packet to send [11:17:39]OFD Sender: No OFD packet to send [11:17:45]OFD Sender: No OFD packet to send [11:17:50]OFD Sender: No OFD packet to send [11:17:55]OFD Sender: No OFD packet to send [11:18:00]OFD Sender: No OFD packet to send [11:18:05]OFD Sender: No OFD packet to send [11:18:10]OFD Sender: No OFD packet to send [11:18:15]OFD Sender: No OFD packet to send [11:18:16]accept exits with 9 [11:18:16]New connection [11:18:16]New thread 3067194724 created [11:18:16]Thread 3067338084 joined [11:18:16]Waiting for new connection... [11:18:16] Sock 9.Parse request [11:18:16]Sock 9.Check first char [11:18:16]Sock 9.First char is OK [11:18:16]request: POST /json_proto HTTP/1.0 [11:18:16]Method: POST [11:18:16]URL: /json_proto [11:18:16]Method is POST - this is cgi request [11:18:16]url: /json_proto [11:18:16]query_string will be loaded in cgi processing [11:18:16]execute_cgi json_proto POST (null) [11:18:16]execute_cgi path=json_proto method=POST [11:18:16]POST find Content-Length [11:18:16]Host: 172.17.45.7:8080 [11:18:16]Content-Length: 819 [11:18:16]Content-Type: application/json [11:18:16] [11:18:16]POST finish read [11:18:16]Found Content-Length = 819 [11:18:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:16]execute_script... [11:18:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:16]POST & json_proto [11:18:16]process_json_proto [11:18:16]json parsed OK: [11:18:16]protocol is kg_v1.0 [11:18:16]action value=close_receipt [11:18:16]process_action close_receipt [11:18:16]cmd_close_receipt [11:18:16]MH_GetDate [11:18:16]Write to MH i2c: F0 00 00 4D 22 5E [11:18:16]Write i2c OK [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: F0 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: F0 09 00 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: F0 09 00 4D 22 00 7A 1D AA 66 90 0F 3E 66 51 [11:18:16]GetLastDocTimeStamp 1722424634 [11:18:16]current date 1722424698 [11:18:16]FM_GetShiftState [11:18:16]SAM_PROTO_GetShiftState [11:18:16]wFMCommunicate request_size=4 [11:18:16]MH_SAM_APDU [11:18:16]CAPDU: 80 13 01 00 [11:18:16]Write to MH i2c: E2 08 00 4E 22 80 13 01 00 00 00 00 00 ED [11:18:16]Write i2c OK [11:18:16]MH_I2C_Read... [11:18:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:16]Read from MH i2c: E2 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: E2 0E 00 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: E2 0E 00 4E 22 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 85 [11:18:16]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [11:18:16]wFMCommunicate OK [11:18:16]SAM_PROTO_GetShiftState done [11:18:16]FM_GetShiftState done [11:18:16]opened in 1722384637 [11:18:16]opened+sec_in_day 1722471037 [11:18:16]quantity*price = 200025 [11:18:16]sum+1 = 200026 [11:18:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 126 31.07.2024 11:18 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119395 ФПД: 227451199777103 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T111818&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119395&fm=227451199777103&tin=02508201610067®Number=0000000000092660&sum=200000 [11:18:17]StoreToDocumentArchive [11:18:17]shift 436 fd 119395 [11:18:17]save to /storage/0436/doc_00119395 [11:18:17]save last doc name /storage/0436/doc_00119395 to /storage/kkm_last_doc_name [11:18:17]save OK [11:18:17]Clear old archive folders... [11:18:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:18:17]tlvbuf is 00B09F50 [11:18:17]SAM_PROTO_ClearQueue [11:18:17]wFMCommunicate request_size=4 [11:18:17]MH_SAM_APDU [11:18:17]CAPDU: 80 09 00 00 [11:18:17]Write to MH i2c: E2 08 00 5B 22 80 09 00 00 00 00 00 00 EF [11:18:17]Write i2c OK [11:18:17]MH_I2C_Read... [11:18:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:17]Read from MH i2c: E2 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: E2 03 00 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: E2 03 00 5B 22 00 90 00 F1 [11:18:17]RAPDU: 90 00 [11:18:17]wFMCommunicate OK [11:18:17]SAM_PROTO_ClearQueue done [11:18:17]KKMCreateOFDPacket [11:18:17]OFDProtocolAddRootSTLVToBuf [11:18:17]FM_MakeSignedData [11:18:17]FM_MakeSignedData [11:18:17]SAM_PROTO_SignData [11:18:17]wFMCommunicate request_size=4 [11:18:17]MH_SAM_APDU [11:18:17]CAPDU: 80 0D 01 02 [11:18:17]Write to MH i2c: E2 08 00 5C 22 80 0D 01 02 00 00 00 00 F7 [11:18:17]Write i2c OK [11:18:17]MH_I2C_Read... [11:18:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:17]Read from MH i2c: E2 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: E2 03 00 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: E2 03 00 5C 22 00 90 00 F2 [11:18:17]RAPDU: 90 00 [11:18:17]wFMCommunicate OK [11:18:17]wFMCommunicate request_size=255 [11:18:17]MH_SAM_APDU [11:18:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 7A 1D AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 63 D2 01 00 35 04 06 00 CE DD 9B F7 [11:18:17]Write to MH i2c: E2 02 01 5D 22 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 7A 1D AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 63 D2 01 00 35 04 06 00 CE DD 9B F7 00 00 C2 [11:18:17]Write i2c OK [11:18:17]MH_I2C_Read... [11:18:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:18]Read from MH i2c: E2 [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: E2 03 00 [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: E2 03 00 5D 22 00 90 00 F3 [11:18:18]RAPDU: 90 00 [11:18:18]wFMCommunicate OK [11:18:18]wFMCommunicate request_size=7 [11:18:18]MH_SAM_APDU [11:18:18]CAPDU: 80 0D 02 02 02 69 4F [11:18:18]Write to MH i2c: E2 0A 00 5E 22 80 0D 02 02 02 00 69 4F 00 00 B6 [11:18:18]Write i2c OK [11:18:18]MH_I2C_Read... [11:18:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:18]Read from MH i2c: E2 [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: E2 03 00 [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: E2 03 00 5E 22 00 90 00 F4 [11:18:18]RAPDU: 90 00 [11:18:18]wFMCommunicate OK [11:18:18]wFMCommunicate request_size=4 [11:18:18]MH_SAM_APDU [11:18:18]CAPDU: 80 0D 03 02 [11:18:18]Write to MH i2c: E2 08 00 5F 22 80 0D 03 02 00 00 00 00 FC [11:18:18]Write i2c OK [11:18:18]MH_I2C_Read... [11:18:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:18]Read from MH i2c: E2 [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: E2 0B 00 [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: E2 0B 00 5F 22 00 3D 38 FB 26 C8 D0 F9 DE 90 00 02 [11:18:18]RAPDU: 3D 38 FB 26 C8 D0 F9 DE 90 00 [11:18:18]wFMCommunicate OK [11:18:18]SAM_PROTO_SignData done [11:18:18]FM_MakeSignedData done [11:18:18]CreateOFDProtocolMessage [11:18:18]wFMCommunicate request_size=4 [11:18:18]MH_SAM_APDU [11:18:18]CAPDU: 80 11 00 00 [11:18:18]Write to MH i2c: E2 08 00 60 22 80 11 00 00 00 00 00 00 FC [11:18:18]Write i2c OK [11:18:18]MH_I2C_Read... [11:18:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:18]Read from MH i2c: E2 [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: E2 17 00 [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: E2 17 00 60 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 57 [11:18:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:18:18]wFMCommunicate OK [11:18:18]CreateOFDProtocolMessage done [11:18:18]OFDSenderStorePacket 119395 [11:18:18]StoreOFDPacket docnum=119395 [11:18:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 CE 7D 04 01 5A 52 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 7A 1D AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 63 D2 01 00 35 04 06 00 CE DD 9B F7 69 4F 3D 38 FB 26 C8 D0 F9 DE [11:18:18]CheckFolder [11:18:18]dirname=/storage/ofd_packets [11:18:18]CheckFolder done [11:18:18]ProducePacketName [11:18:18]name=ofd_packets/00119395 [11:18:18]NVStorageSaveData ofd_packets/00119395 [11:18:18]File name is /storage/ofd_packets/00119395 [11:18:18]Write 298 bytes [11:18:18]NVStorageSaveData done [11:18:18]OFDSenderStorePacket done [11:18:18]KKMCreateOFDPacket done [11:18:18]NVStorageSaveData kkm_last_timestamp [11:18:18]File name is /storage/kkm_last_timestamp [11:18:18]Write 4 bytes [11:18:18]NVStorageSaveData done [11:18:18]ExternCall_PrintAddStr [11:18:18]wPrintStart [11:18:18]Write to MH i2c: 01 00 00 61 22 83 [11:18:18]Write i2c OK [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: 01 [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: 01 07 00 [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: 01 07 00 61 22 00 00 00 00 00 FF 0F 98 [11:18:18]RasterBufferAndPrint [11:18:18]line Счет N : (1)950320 [11:18:18]line ИНН: 02508201610067 [11:18:18]line Контрольно-Кассовый Чек [11:18:18]line ПРОДАЖА [11:18:18]line ТРК (МРК, ГНК) : 44 [11:18:18]line Товар: 2710194800 [11:18:18]line ДТ-К-5 [11:18:18]line 26.250 * 76.20 [11:18:18]line = 2000.25 [11:18:18]line НДС 12% НСП 1% [11:18:18]line > о реализуемом товаре [11:18:18]line ОКРУГЛЕНИЕ: -0.25 [11:18:18]line ИТОГО: 2000.00 [11:18:18]line НСП 1% : 17.70 [11:18:18]line НДС 12% : 212.42 [11:18:18]line Наличными: 0.00 [11:18:18]line Безнал.: 2000.00 [11:18:18]line Место: АЗС № 134 "Партнер Нефть" [11:18:18]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:18:18]line СНО: Общий режим [11:18:18]line Чек 126 31.07.2024 11:18 [11:18:18]line Смена: 436 ФФД: 1.0 [11:18:18]line ЗНМ: 0300000044 [11:18:18]line РНМ: 0000000000092660 [11:18:18]line Версия ККМ: 001 [11:18:18]line Платежная система: O! деньги [11:18:18]line ФМ: 0000000000874939 [11:18:18]line ФД: 119395 [11:18:18]line ФПД: 227451199777103 [11:18:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T111818&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119395&fm=227451199777103&tin=02508201610067®Number=0000000000092660&sum=200000 [11:18:18]OFD Sender: Processing packet 119395 [packets to send 86, broken 85] [11:18:18]ProducePacketName [11:18:18]name=ofd_packets/00119395 [11:18:18]OFD Sender: To server: pG, [11:18:18]CommunicateWithHost lk.salyk.kg:30040 [11:18:18]ConnectInit lk.salyk.kg [11:18:18]written 0, free lines is 4095 [11:18:18]Connected sock=10 [11:18: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 39 33 39 0C 01 00 00 CE 7D 04 01 5A 52 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 7A 1D AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 63 D2 01 00 35 04 06 00 CE DD 9B F7 69 4F 3D 38 FB 26 C8 D0 F9 DE [11:18:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 78 F4 47 00 52 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 63 D2 01 00 F4 03 04 00 03 CB A9 66 B6 04 01 00 00 D0 C9 E0 7C BA 1F 79 1B [11:18:18]CommunicateWithHost err = 0 [11:18:18]CheckOFDResponse [11:18:18]1017 (14) - 77093643461234 [11:18:18]1041 (16) - 0000000000874939 [11:18:18]1040 (4) - 119395 [11:18:18]1012 (4) - 31.07.2024 05:26 [11:18:18]1206 (1) - 0 [11:18:18]OFD Sender: Remove packet 119395 [11:18:18]ProducePacketName [11:18:18]name=ofd_packets/00119395 [11:18:18]NVStorageDeleteData [11:18:18]Write to MH i2c: 01 00 00 8B 22 AD [11:18:18]Write i2c OK [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: 01 [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: 01 07 00 [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: 01 07 00 8B 22 00 00 00 00 00 D9 0C 99 [11:18:18]RasterBufferAndPrint [11:18:18]line [11:18:18]line [11:18:18]line [11:18:18]line [11:18:18]line [11:18:18]written 0, free lines is 3298 [11:18:18]MH_Cut [11:18:18]Write to MH i2c: D1 01 00 92 22 01 86 [11:18:18]Write i2c OK [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: D1 [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: D1 01 00 [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: D1 01 00 92 22 00 85 [11:18:18]Write to MH i2c: 01 00 00 93 22 B5 [11:18:18]Write i2c OK [11:18:18]MH_I2C_Read... [11:18:19]OFD Sender: No OFD packet to send [11:18:19]*** Cut start [11:18:19]*** Partial cut [11:18:19]*** CUTSNS_PIN = 1 [11:18:19]*** CUTSNS_PIN = 0 [11:18:19]*** Brake cut motor [11:18:20]Read from MH i2c: 01 [11:18:20]MH_I2C_Read... [11:18:20]*** Stop cut motor [11:18:20]*** Cut end [11:18:20]Read from MH i2c: 01 07 00 [11:18:20]MH_I2C_Read... [11:18:20]Read from MH i2c: 01 07 00 93 22 00 00 00 00 00 FF 0F CA [11:18:20]process_action close_receipt done [11:18:20]requested_data is exist [11:18:20]produce_requested_data [11:18:20]requested_item fm.sn is exist - process it [11:18:20]wFMCommunicate request_size=4 [11:18:20]MH_SAM_APDU [11:18:20]CAPDU: 80 11 00 00 [11:18:20]Write to MH i2c: E2 08 00 94 22 80 11 00 00 00 00 00 00 30 [11:18:20]Write i2c OK [11:18:20]MH_I2C_Read... [11:18:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:20]Read from MH i2c: E2 [11:18:20]MH_I2C_Read... [11:18:20]Read from MH i2c: E2 17 00 [11:18:20]MH_I2C_Read... [11:18:20]Read from MH i2c: E2 17 00 94 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8B [11:18:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:18:20]wFMCommunicate OK [11:18:20]requested_item fd.num is exist - process it [11:18:20]SAM_PROTO_GetFieldsCounters [11:18:20]wFMCommunicate request_size=4 [11:18:20]MH_SAM_APDU [11:18:20]CAPDU: 80 13 00 00 [11:18:20]Write to MH i2c: E2 08 00 95 22 80 13 00 00 00 00 00 00 33 [11:18:20]Write i2c OK [11:18:20]MH_I2C_Read... [11:18:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:20]Read from MH i2c: E2 [11:18:20]MH_I2C_Read... [11:18:20]Read from MH i2c: E2 62 00 [11:18:20]MH_I2C_Read... [11:18:20]Read from MH i2c: E2 62 00 95 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 63 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [11:18:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 63 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:18:20]wFMCommunicate OK [11:18:20]SAM_PROTO_GetFieldsCounters done [11:18:20]requested_item shift.num is exist - process it [11:18:20]requested_item shift.opened is exist - process it [11:18:20]req_shift_opened [11:18:20]FM_GetShiftState [11:18:20]SAM_PROTO_GetShiftState [11:18:20]wFMCommunicate request_size=4 [11:18:20]MH_SAM_APDU [11:18:20]CAPDU: 80 13 01 00 [11:18:20]Write to MH i2c: E2 08 00 96 22 80 13 01 00 00 00 00 00 35 [11:18:20]Write i2c OK [11:18:20]MH_I2C_Read... [11:18:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:20]Read from MH i2c: E2 [11:18:20]MH_I2C_Read... [11:18:20]Read from MH i2c: E2 0E 00 [11:18:20]MH_I2C_Read... [11:18:20]Read from MH i2c: E2 0E 00 96 22 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 CD [11:18:20]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [11:18:20]wFMCommunicate OK [11:18:20]SAM_PROTO_GetShiftState done [11:18:20]FM_GetShiftState done [11:18:20]req_shift_opened done [11:18:20]requested_item shift.open_date is exist - process it [11:18:20]req_shift_open_date [11:18:20]req_shift_open_date done [11:18:20]produce_requested_data done [11:18:20]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119395,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [11:18:20]process_action_free close_receipt [11:18:20]json_value_free [11:18:20]json_value_free done [11:18:20]process_json_proto returns [11:18:20]Send response to host [11:18:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119395,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [11:18:20]free response buf [11:18:20]execute_script done [11:18:20]execute_script returns [11:18:20]free content buf [11:18:20]Sock 9.Close socket [11:18:20]Sock 9.Thread stoped [11:18:24]OFD Sender: No OFD packet to send [11:18:29]OFD Sender: No OFD packet to send [11:18:34]OFD Sender: No OFD packet to send [11:18:39]OFD Sender: No OFD packet to send [11:18:44]OFD Sender: No OFD packet to send [11:18:49]OFD Sender: No OFD packet to send [11:18:54]OFD Sender: No OFD packet to send [11:18:59]OFD Sender: No OFD packet to send [11:19:04]OFD Sender: No OFD packet to send [11:19:09]OFD Sender: No OFD packet to send [11:19:14]OFD Sender: No OFD packet to send [11:19:19]OFD Sender: No OFD packet to send [11:19:24]OFD Sender: No OFD packet to send [11:19:29]OFD Sender: No OFD packet to send [11:19:34]OFD Sender: No OFD packet to send [11:19:39]OFD Sender: No OFD packet to send [11:19:44]OFD Sender: No OFD packet to send [11:19:49]OFD Sender: No OFD packet to send [11:19:54]OFD Sender: No OFD packet to send [11:19:59]OFD Sender: No OFD packet to send [11:20:04]OFD Sender: No OFD packet to send [11:20:09]OFD Sender: No OFD packet to send [11:20:14]OFD Sender: No OFD packet to send [11:20:19]OFD Sender: No OFD packet to send [11:20:24]OFD Sender: No OFD packet to send [11:20:29]OFD Sender: No OFD packet to send [11:20:34]OFD Sender: No OFD packet to send [11:20:39]OFD Sender: No OFD packet to send [11:20:44]OFD Sender: No OFD packet to send [11:20:49]OFD Sender: No OFD packet to send [11:20:54]OFD Sender: No OFD packet to send [11:20:59]OFD Sender: No OFD packet to send [11:21:04]OFD Sender: No OFD packet to send [11:21:09]OFD Sender: No OFD packet to send [11:21:14]OFD Sender: No OFD packet to send [11:21:19]OFD Sender: No OFD packet to send [11:21:24]OFD Sender: No OFD packet to send [11:21:29]OFD Sender: No OFD packet to send [11:21:34]OFD Sender: No OFD packet to send [11:21:39]OFD Sender: No OFD packet to send [11:21:44]OFD Sender: No OFD packet to send [11:21:49]OFD Sender: No OFD packet to send [11:21:54]OFD Sender: No OFD packet to send [11:21:59]OFD Sender: No OFD packet to send [11:22:04]OFD Sender: No OFD packet to send [11:22:09]OFD Sender: No OFD packet to send [11:22:14]OFD Sender: No OFD packet to send [11:22:19]OFD Sender: No OFD packet to send [11:22:24]OFD Sender: No OFD packet to send [11:22:29]OFD Sender: No OFD packet to send [11:22:34]OFD Sender: No OFD packet to send [11:22:39]OFD Sender: No OFD packet to send [11:22:44]OFD Sender: No OFD packet to send [11:22:49]OFD Sender: No OFD packet to send [11:22:54]OFD Sender: No OFD packet to send [11:22:59]OFD Sender: No OFD packet to send [11:23:04]OFD Sender: No OFD packet to send [11:23:09]OFD Sender: No OFD packet to send [11:23:14]OFD Sender: No OFD packet to send [11:23:19]OFD Sender: No OFD packet to send [11:23:24]OFD Sender: No OFD packet to send [11:23:29]OFD Sender: No OFD packet to send [11:23:34]OFD Sender: No OFD packet to send [11:23:39]OFD Sender: No OFD packet to send [11:23:44]OFD Sender: No OFD packet to send [11:23:49]OFD Sender: No OFD packet to send [11:23:54]OFD Sender: No OFD packet to send [11:23:59]OFD Sender: No OFD packet to send [11:24:04]OFD Sender: No OFD packet to send [11:24:09]OFD Sender: No OFD packet to send [11:24:14]OFD Sender: No OFD packet to send [11:24:19]OFD Sender: No OFD packet to send [11:24:24]OFD Sender: No OFD packet to send [11:24:29]OFD Sender: No OFD packet to send [11:24:34]OFD Sender: No OFD packet to send [11:24:39]OFD Sender: No OFD packet to send [11:24:44]OFD Sender: No OFD packet to send [11:24:49]OFD Sender: No OFD packet to send [11:24:54]OFD Sender: No OFD packet to send [11:24:59]OFD Sender: No OFD packet to send [11:25:04]OFD Sender: No OFD packet to send [11:25:07]accept exits with 8 [11:25:07]New connection [11:25:07]New thread 3067338084 created [11:25:07]Thread 3067194724 joined [11:25:07]Waiting for new connection... [11:25:07] Sock 8.Parse request [11:25:07]Sock 8.Check first char [11:25:07]Sock 8.First char is OK [11:25:07]request: POST /json_proto HTTP/1.0 [11:25:07]Method: POST [11:25:07]URL: /json_proto [11:25:07]Method is POST - this is cgi request [11:25:07]url: /json_proto [11:25:07]query_string will be loaded in cgi processing [11:25:07]execute_cgi json_proto POST (null) [11:25:07]execute_cgi path=json_proto method=POST [11:25:07]POST find Content-Length [11:25:07]Host: 172.17.45.7:8080 [11:25:07]Content-Length: 677 [11:25:07]Content-Type: application/json [11:25:07] [11:25:07]POST finish read [11:25:07]Found Content-Length = 677 [11:25:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 6.640, "sum" : 450.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:07]execute_script... [11:25:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 6.640, "sum" : 450.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:07]POST & json_proto [11:25:07]process_json_proto [11:25:07]json parsed OK: [11:25:07]protocol is kg_v1.0 [11:25:07]action value=close_receipt [11:25:07]process_action close_receipt [11:25:07]cmd_close_receipt [11:25:07]MH_GetDate [11:25:07]Write to MH i2c: F0 00 00 97 22 A8 [11:25:07]Write i2c OK [11:25:07]MH_I2C_Read... [11:25:07]Read from MH i2c: F0 [11:25:07]MH_I2C_Read... [11:25:07]Read from MH i2c: F0 09 00 [11:25:07]MH_I2C_Read... [11:25:07]Read from MH i2c: F0 09 00 97 22 00 15 1F AA 66 90 0F 3E 66 38 [11:25:07]GetLastDocTimeStamp 1722424698 [11:25:07]current date 1722425109 [11:25:07]FM_GetShiftState [11:25:07]SAM_PROTO_GetShiftState [11:25:07]wFMCommunicate request_size=4 [11:25:07]MH_SAM_APDU [11:25:07]CAPDU: 80 13 01 00 [11:25:07]Write to MH i2c: E2 08 00 98 22 80 13 01 00 00 00 00 00 37 [11:25:07]Write i2c OK [11:25:07]MH_I2C_Read... [11:25:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:07]Read from MH i2c: E2 [11:25:07]MH_I2C_Read... [11:25:07]Read from MH i2c: E2 0E 00 [11:25:07]MH_I2C_Read... [11:25:07]Read from MH i2c: E2 0E 00 98 22 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 CF [11:25:07]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [11:25:07]wFMCommunicate OK [11:25:07]SAM_PROTO_GetShiftState done [11:25:07]FM_GetShiftState done [11:25:07]opened in 1722384637 [11:25:07]opened+sec_in_day 1722471037 [11:25:07]quantity*price = 45019 [11:25:07]sum+1 = 45020 [11:25:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.81 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 127 31.07.2024 11:25 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119396 ФПД: 21875173142904 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T112509&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119396&fm=21875173142904&tin=02508201610067®Number=0000000000092660&sum=45000 [11:25:08]StoreToDocumentArchive [11:25:08]shift 436 fd 119396 [11:25:08]save to /storage/0436/doc_00119396 [11:25:08]save last doc name /storage/0436/doc_00119396 to /storage/kkm_last_doc_name [11:25:08]save OK [11:25:08]Clear old archive folders... [11:25:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:25:08]tlvbuf is 00ACBA90 [11:25:08]SAM_PROTO_ClearQueue [11:25:08]wFMCommunicate request_size=4 [11:25:08]MH_SAM_APDU [11:25:08]CAPDU: 80 09 00 00 [11:25:08]Write to MH i2c: E2 08 00 A5 22 80 09 00 00 00 00 00 00 39 [11:25:08]Write i2c OK [11:25:08]MH_I2C_Read... [11:25:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:08]Read from MH i2c: E2 [11:25:08]MH_I2C_Read... [11:25:08]Read from MH i2c: E2 03 00 [11:25:08]MH_I2C_Read... [11:25:08]Read from MH i2c: E2 03 00 A5 22 00 90 00 3B [11:25:08]RAPDU: 90 00 [11:25:08]wFMCommunicate OK [11:25:08]SAM_PROTO_ClearQueue done [11:25:08]KKMCreateOFDPacket [11:25:08]OFDProtocolAddRootSTLVToBuf [11:25:08]FM_MakeSignedData [11:25:08]FM_MakeSignedData [11:25:08]SAM_PROTO_SignData [11:25:08]wFMCommunicate request_size=4 [11:25:08]MH_SAM_APDU [11:25:08]CAPDU: 80 0D 01 02 [11:25:08]Write to MH i2c: E2 08 00 A6 22 80 0D 01 02 00 00 00 00 41 [11:25:08]Write i2c OK [11:25:08]MH_I2C_Read... [11:25:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:08]Read from MH i2c: E2 [11:25:08]MH_I2C_Read... [11:25:08]Read from MH i2c: E2 03 00 [11:25:08]MH_I2C_Read... [11:25:08]Read from MH i2c: E2 03 00 A6 22 00 90 00 3C [11:25:08]RAPDU: 90 00 [11:25:08]wFMCommunicate OK [11:25:08]wFMCommunicate request_size=255 [11:25:08]MH_SAM_APDU [11:25:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 DB AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 15 1F AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 64 D2 01 00 35 04 06 00 13 [11:25:08]Write to MH i2c: E2 02 01 A7 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 DB AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 15 1F AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 64 D2 01 00 35 04 06 00 13 00 00 77 [11:25:08]Write i2c OK [11:25:08]MH_I2C_Read... [11:25:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:09]Read from MH i2c: E2 [11:25:09]MH_I2C_Read... [11:25:09]Read from MH i2c: E2 03 00 [11:25:09]MH_I2C_Read... [11:25:09]Read from MH i2c: E2 03 00 A7 22 00 90 00 3D [11:25:09]RAPDU: 90 00 [11:25:09]wFMCommunicate OK [11:25:09]wFMCommunicate request_size=10 [11:25:09]MH_SAM_APDU [11:25:09]CAPDU: 80 0D 02 02 05 E5 35 EC B1 78 [11:25:09]Write to MH i2c: E2 0D 00 A8 22 80 0D 02 02 05 00 E5 35 EC B1 78 00 00 7D [11:25:09]Write i2c OK [11:25:09]MH_I2C_Read... [11:25:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:09]Read from MH i2c: E2 [11:25:09]MH_I2C_Read... [11:25:09]Read from MH i2c: E2 03 00 [11:25:09]MH_I2C_Read... [11:25:09]Read from MH i2c: E2 03 00 A8 22 00 90 00 3E [11:25:09]RAPDU: 90 00 [11:25:09]wFMCommunicate OK [11:25:09]wFMCommunicate request_size=4 [11:25:09]MH_SAM_APDU [11:25:09]CAPDU: 80 0D 03 02 [11:25:09]Write to MH i2c: E2 08 00 A9 22 80 0D 03 02 00 00 00 00 46 [11:25:09]Write i2c OK [11:25:09]MH_I2C_Read... [11:25:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:09]Read from MH i2c: E2 [11:25:09]MH_I2C_Read... [11:25:09]Read from MH i2c: E2 0B 00 [11:25:09]MH_I2C_Read... [11:25:09]Read from MH i2c: E2 0B 00 A9 22 00 D6 7B A8 BF C2 28 ED 25 90 00 FB [11:25:09]RAPDU: D6 7B A8 BF C2 28 ED 25 90 00 [11:25:09]wFMCommunicate OK [11:25:09]SAM_PROTO_SignData done [11:25:09]FM_MakeSignedData done [11:25:09]CreateOFDProtocolMessage [11:25:09]wFMCommunicate request_size=4 [11:25:09]MH_SAM_APDU [11:25:09]CAPDU: 80 11 00 00 [11:25:09]Write to MH i2c: E2 08 00 AA 22 80 11 00 00 00 00 00 00 46 [11:25:09]Write i2c OK [11:25:09]MH_I2C_Read... [11:25:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:09]Read from MH i2c: E2 [11:25:09]MH_I2C_Read... [11:25:09]Read from MH i2c: E2 17 00 [11:25:09]MH_I2C_Read... [11:25:09]Read from MH i2c: E2 17 00 AA 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A1 [11:25:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:25:09]wFMCommunicate OK [11:25:09]CreateOFDProtocolMessage done [11:25:09]OFDSenderStorePacket 119396 [11:25:09]StoreOFDPacket docnum=119396 [11:25:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C7 14 07 01 DF D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 DB AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 15 1F AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 64 D2 01 00 35 04 06 00 13 E5 35 EC B1 78 D6 7B A8 BF C2 28 ED 25 [11:25:09]CheckFolder [11:25:09]dirname=/storage/ofd_packets [11:25:09]CheckFolder done [11:25:09]ProducePacketName [11:25:09]name=ofd_packets/00119396 [11:25:09]NVStorageSaveData ofd_packets/00119396 [11:25:09]File name is /storage/ofd_packets/00119396 [11:25:09]Write 301 bytes [11:25:09]NVStorageSaveData done [11:25:09]OFDSenderStorePacket done [11:25:09]KKMCreateOFDPacket done [11:25:09]NVStorageSaveData kkm_last_timestamp [11:25:09]File name is /storage/kkm_last_timestamp [11:25:09]Write 4 bytes [11:25:09]NVStorageSaveData done [11:25:09]ExternCall_PrintAddStr [11:25:09]wPrintStart [11:25:09]Write to MH i2c: 01 00 00 AB 22 CD [11:25:09]Write i2c OK [11:25:09]MH_I2C_Read... [11:25:09]Read from MH i2c: 01 [11:25:09]MH_I2C_Read... [11:25:09]Read from MH i2c: 01 07 00 [11:25:09]MH_I2C_Read... [11:25:09]Read from MH i2c: 01 07 00 AB 22 00 00 00 00 00 FF 0F E2 [11:25:09]RasterBufferAndPrint [11:25:09]line Счет N : (1)950322 [11:25:09]line ИНН: 02508201610067 [11:25:09]line Контрольно-Кассовый Чек [11:25:09]line ПРОДАЖА [11:25:09]line ТРК (МРК, ГНК) : 41 [11:25:09]line Товар: 2710124130 [11:25:09]line Аи-92-К-4 [11:25:09]line 6.640 * 67.80 [11:25:09]line = 450.19 [11:25:09]line НДС 12% НСП 1% [11:25:09]line > о реализуемом товаре [11:25:09]line ОКРУГЛЕНИЕ: -0.19 [11:25:09]line ИТОГО: 450.00 [11:25:09]line Внесено: 450.00 [11:25:09]line СДАЧА: 0.00 [11:25:09]line НСП 1% : 3.98 [11:25:09]line НДС 12% : 47.81 [11:25:09]line Наличными: 450.00 [11:25:09]line Безнал.: 0.00 [11:25:09]line Место: АЗС № 134 "Партнер Нефть" [11:25:09]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:25:09]line СНО: Общий режим [11:25:09]line Чек 127 31.07.2024 11:25 [11:25:09]line Смена: 436 ФФД: 1.0 [11:25:09]line ЗНМ: 0300000044 [11:25:09]line РНМ: 0000000000092660 [11:25:09]line Версия ККМ: 001 [11:25:09]line ФМ: 0000000000874939 [11:25:09]line ФД: 119396 [11:25:09]line ФПД: 21875173142904 [11:25:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T112509&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119396&fm=21875173142904&tin=02508201610067®Number=0000000000092660&sum=45000 [11:25:09]OFD Sender: Processing packet 119396 [packets to send 86, broken 85] [11:25:09]ProducePacketName [11:25:09]name=ofd_packets/00119396 [11:25:09]OFD Sender: To server: pG, [11:25:09]CommunicateWithHost lk.salyk.kg:30040 [11:25:09]ConnectInit lk.salyk.kg [11:25:09]written 0, free lines is 4095 [11:25:09]Connected sock=10 [11:25:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C7 14 07 01 DF D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 DB AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 15 1F AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 64 D2 01 00 35 04 06 00 13 E5 35 EC B1 78 D6 7B A8 BF C2 28 ED 25 [11:25:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 3C 5B 47 00 4E 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 39 33 39 10 04 04 00 64 D2 01 00 F4 03 04 00 9E CC A9 66 B6 04 01 00 00 BA 32 A3 E1 2A ED 8C C1 [11:25:09]CommunicateWithHost err = 0 [11:25:09]CheckOFDResponse [11:25:09]1017 (14) - 77093643461234 [11:25:09]1041 (16) - 0000000000874939 [11:25:09]1040 (4) - 119396 [11:25:09]1012 (4) - 31.07.2024 05:33 [11:25:09]1206 (1) - 0 [11:25:09]OFD Sender: Remove packet 119396 [11:25:09]ProducePacketName [11:25:09]name=ofd_packets/00119396 [11:25:09]NVStorageDeleteData [11:25:10]Write to MH i2c: 01 00 00 D5 22 F7 [11:25:10]Write i2c OK [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: 01 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: 01 07 00 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: 01 07 00 D5 22 00 00 00 00 00 CF 0C D9 [11:25:10]RasterBufferAndPrint [11:25:10]line [11:25:10]line [11:25:10]line [11:25:10]line [11:25:10]line [11:25:10]written 0, free lines is 3286 [11:25:10]MH_Cut [11:25:10]Write to MH i2c: D1 01 00 DC 22 01 D0 [11:25:10]Write i2c OK [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: D1 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: D1 01 00 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: D1 01 00 DC 22 00 CF [11:25:10]Write to MH i2c: 01 00 00 DD 22 FF [11:25:10]Write i2c OK [11:25:10]MH_I2C_Read... [11:25:10]OFD Sender: No OFD packet to send [11:25:10]*** Cut start [11:25:10]*** Partial cut [11:25:10]*** CUTSNS_PIN = 1 [11:25:10]*** CUTSNS_PIN = 0 [11:25:11]*** Brake cut motor [11:25:11]Read from MH i2c: 01 [11:25:11]MH_I2C_Read... [11:25:11]*** Stop cut motor [11:25:11]*** Cut end [11:25:11]Read from MH i2c: 01 07 00 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: 01 07 00 DD 22 00 00 00 00 00 FF 0F 14 [11:25:11]process_action close_receipt done [11:25:11]requested_data is exist [11:25:11]produce_requested_data [11:25:11]requested_item fm.sn is exist - process it [11:25:11]wFMCommunicate request_size=4 [11:25:11]MH_SAM_APDU [11:25:11]CAPDU: 80 11 00 00 [11:25:11]Write to MH i2c: E2 08 00 DE 22 80 11 00 00 00 00 00 00 7A [11:25:11]Write i2c OK [11:25:11]MH_I2C_Read... [11:25:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:11]Read from MH i2c: E2 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: E2 17 00 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: E2 17 00 DE 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D5 [11:25:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:25:11]wFMCommunicate OK [11:25:11]requested_item fd.num is exist - process it [11:25:11]SAM_PROTO_GetFieldsCounters [11:25:11]wFMCommunicate request_size=4 [11:25:11]MH_SAM_APDU [11:25:11]CAPDU: 80 13 00 00 [11:25:11]Write to MH i2c: E2 08 00 DF 22 80 13 00 00 00 00 00 00 7D [11:25:11]Write i2c OK [11:25:11]MH_I2C_Read... [11:25:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:11]Read from MH i2c: E2 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: E2 62 00 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: E2 62 00 DF 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 64 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [11:25:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 64 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:25:11]wFMCommunicate OK [11:25:11]SAM_PROTO_GetFieldsCounters done [11:25:11]requested_item shift.num is exist - process it [11:25:11]requested_item shift.opened is exist - process it [11:25:11]req_shift_opened [11:25:11]FM_GetShiftState [11:25:11]SAM_PROTO_GetShiftState [11:25:11]wFMCommunicate request_size=4 [11:25:11]MH_SAM_APDU [11:25:11]CAPDU: 80 13 01 00 [11:25:11]Write to MH i2c: E2 08 00 E0 22 80 13 01 00 00 00 00 00 7F [11:25:11]Write i2c OK [11:25:11]MH_I2C_Read... [11:25:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:11]Read from MH i2c: E2 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: E2 0E 00 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: E2 0E 00 E0 22 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 17 [11:25:11]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [11:25:11]wFMCommunicate OK [11:25:11]SAM_PROTO_GetShiftState done [11:25:11]FM_GetShiftState done [11:25:11]req_shift_opened done [11:25:11]requested_item shift.open_date is exist - process it [11:25:11]req_shift_open_date [11:25:11]req_shift_open_date done [11:25:11]produce_requested_data done [11:25:11]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119396,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [11:25:11]process_action_free close_receipt [11:25:11]json_value_free [11:25:11]json_value_free done [11:25:11]process_json_proto returns [11:25:11]Send response to host [11:25:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119396,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [11:25:11]free response buf [11:25:11]execute_script done [11:25:11]execute_script returns [11:25:11]free content buf [11:25:11]Sock 8.Close socket [11:25:11]Sock 8.Thread stoped [11:25:15]OFD Sender: No OFD packet to send [11:25:20]OFD Sender: No OFD packet to send [11:25:25]OFD Sender: No OFD packet to send [11:25:30]OFD Sender: No OFD packet to send [11:25:35]OFD Sender: No OFD packet to send [11:25:40]OFD Sender: No OFD packet to send [11:25:45]OFD Sender: No OFD packet to send [11:25:50]OFD Sender: No OFD packet to send [11:25:55]OFD Sender: No OFD packet to send [11:26:00]OFD Sender: No OFD packet to send [11:26:05]OFD Sender: No OFD packet to send [11:26:10]OFD Sender: No OFD packet to send [11:26:15]OFD Sender: No OFD packet to send [11:26:20]OFD Sender: No OFD packet to send [11:26:21]accept exits with 9 [11:26:21]New connection [11:26:21]New thread 3067194724 created [11:26:21]Thread 3067338084 joined [11:26:21]Waiting for new connection... [11:26:21] Sock 9.Parse request [11:26:21]Sock 9.Check first char [11:26:21]Sock 9.First char is OK [11:26:21]request: POST /json_proto HTTP/1.0 [11:26:21]Method: POST [11:26:21]URL: /json_proto [11:26:21]Method is POST - this is cgi request [11:26:21]url: /json_proto [11:26:21]query_string will be loaded in cgi processing [11:26:21]execute_cgi json_proto POST (null) [11:26:21]execute_cgi path=json_proto method=POST [11:26:21]POST find Content-Length [11:26:21]Host: 172.17.45.7:8080 [11:26:21]Content-Length: 677 [11:26:21]Content-Type: application/json [11:26:21] [11:26:21]POST finish read [11:26:21]Found Content-Length = 677 [11:26:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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" ] } } [11:26:21]execute_script... [11:26: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)950323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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" ] } } [11:26:21]POST & json_proto [11:26:21]process_json_proto [11:26:21]json parsed OK: [11:26:21]protocol is kg_v1.0 [11:26:21]action value=close_receipt [11:26:21]process_action close_receipt [11:26:21]cmd_close_receipt [11:26:21]MH_GetDate [11:26:21]Write to MH i2c: F0 00 00 E1 22 F2 [11:26:21]Write i2c OK [11:26:21]MH_I2C_Read... [11:26:21]Read from MH i2c: F0 [11:26:21]MH_I2C_Read... [11:26:21]Read from MH i2c: F0 09 00 [11:26:21]MH_I2C_Read... [11:26:21]Read from MH i2c: F0 09 00 E1 22 00 5F 1F AA 66 90 0F 3E 66 CC [11:26:21]GetLastDocTimeStamp 1722425109 [11:26:21]current date 1722425183 [11:26:21]FM_GetShiftState [11:26:21]SAM_PROTO_GetShiftState [11:26:21]wFMCommunicate request_size=4 [11:26:21]MH_SAM_APDU [11:26:21]CAPDU: 80 13 01 00 [11:26:21]Write to MH i2c: E2 08 00 E2 22 80 13 01 00 00 00 00 00 81 [11:26:21]Write i2c OK [11:26:21]MH_I2C_Read... [11:26:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:21]Read from MH i2c: E2 [11:26:21]MH_I2C_Read... [11:26:21]Read from MH i2c: E2 0E 00 [11:26:21]MH_I2C_Read... [11:26:21]Read from MH i2c: E2 0E 00 E2 22 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 19 [11:26:21]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [11:26:21]wFMCommunicate OK [11:26:21]SAM_PROTO_GetShiftState done [11:26:21]FM_GetShiftState done [11:26:21]opened in 1722384637 [11:26:21]opened+sec_in_day 1722471037 [11:26:21]quantity*price = 60003 [11:26:21]sum+1 = 60004 [11:26:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 128 31.07.2024 11:26 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119397 ФПД: 60883266662569 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T112623&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119397&fm=60883266662569&tin=02508201610067®Number=0000000000092660&sum=60000 [11:26:22]StoreToDocumentArchive [11:26:22]shift 436 fd 119397 [11:26:22]save to /storage/0436/doc_00119397 [11:26:22]save last doc name /storage/0436/doc_00119397 to /storage/kkm_last_doc_name [11:26:22]save OK [11:26:22]Clear old archive folders... [11:26:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:26:22]tlvbuf is 00AE4920 [11:26:22]SAM_PROTO_ClearQueue [11:26:22]wFMCommunicate request_size=4 [11:26:22]MH_SAM_APDU [11:26:22]CAPDU: 80 09 00 00 [11:26:22]Write to MH i2c: E2 08 00 EF 22 80 09 00 00 00 00 00 00 83 [11:26:22]Write i2c OK [11:26:22]MH_I2C_Read... [11:26:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:22]Read from MH i2c: E2 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: E2 03 00 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: E2 03 00 EF 22 00 90 00 85 [11:26:22]RAPDU: 90 00 [11:26:22]wFMCommunicate OK [11:26:22]SAM_PROTO_ClearQueue done [11:26:22]KKMCreateOFDPacket [11:26:22]OFDProtocolAddRootSTLVToBuf [11:26:22]FM_MakeSignedData [11:26:22]FM_MakeSignedData [11:26:22]SAM_PROTO_SignData [11:26:22]wFMCommunicate request_size=4 [11:26:22]MH_SAM_APDU [11:26:22]CAPDU: 80 0D 01 02 [11:26:22]Write to MH i2c: E2 08 00 F0 22 80 0D 01 02 00 00 00 00 8B [11:26:22]Write i2c OK [11:26:22]MH_I2C_Read... [11:26:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:22]Read from MH i2c: E2 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: E2 03 00 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: E2 03 00 F0 22 00 90 00 86 [11:26:22]RAPDU: 90 00 [11:26:22]wFMCommunicate OK [11:26:22]wFMCommunicate request_size=255 [11:26:22]MH_SAM_APDU [11:26: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 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 80 00 00 00 F4 03 04 00 5F 1F AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 65 D2 01 00 35 04 06 00 37 [11:26:22]Write to MH i2c: E2 02 01 F1 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 80 00 00 00 F4 03 04 00 5F 1F AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 65 D2 01 00 35 04 06 00 37 00 00 08 [11:26:22]Write i2c OK [11:26:22]MH_I2C_Read... [11:26:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:22]Read from MH i2c: E2 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: E2 03 00 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: E2 03 00 F1 22 00 90 00 87 [11:26:22]RAPDU: 90 00 [11:26:22]wFMCommunicate OK [11:26:22]wFMCommunicate request_size=10 [11:26:22]MH_SAM_APDU [11:26:22]CAPDU: 80 0D 02 02 05 5F 7D 7B 70 A9 [11:26:22]Write to MH i2c: E2 0D 00 F2 22 80 0D 02 02 05 00 5F 7D 7B 70 A9 00 00 08 [11:26:22]Write i2c OK [11:26:22]MH_I2C_Read... [11:26:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:22]Read from MH i2c: E2 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: E2 03 00 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: E2 03 00 F2 22 00 90 00 88 [11:26:22]RAPDU: 90 00 [11:26:22]wFMCommunicate OK [11:26:22]wFMCommunicate request_size=4 [11:26:22]MH_SAM_APDU [11:26:22]CAPDU: 80 0D 03 02 [11:26:22]Write to MH i2c: E2 08 00 F3 22 80 0D 03 02 00 00 00 00 90 [11:26:22]Write i2c OK [11:26:22]MH_I2C_Read... [11:26:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:22]Read from MH i2c: E2 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: E2 0B 00 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: E2 0B 00 F3 22 00 C2 60 0E 06 D5 7B 4D F0 90 00 54 [11:26:22]RAPDU: C2 60 0E 06 D5 7B 4D F0 90 00 [11:26:22]wFMCommunicate OK [11:26:22]SAM_PROTO_SignData done [11:26:22]FM_MakeSignedData done [11:26:22]CreateOFDProtocolMessage [11:26:22]wFMCommunicate request_size=4 [11:26:22]MH_SAM_APDU [11:26:22]CAPDU: 80 11 00 00 [11:26:22]Write to MH i2c: E2 08 00 F4 22 80 11 00 00 00 00 00 00 90 [11:26:22]Write i2c OK [11:26:22]MH_I2C_Read... [11:26:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:23]Read from MH i2c: E2 [11:26:23]MH_I2C_Read... [11:26:23]Read from MH i2c: E2 17 00 [11:26:23]MH_I2C_Read... [11:26:23]Read from MH i2c: E2 17 00 F4 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EB [11:26:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:26:23]wFMCommunicate OK [11:26:23]CreateOFDProtocolMessage done [11:26:23]OFDSenderStorePacket 119397 [11:26:23]StoreOFDPacket docnum=119397 [11:26:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 84 6E 07 01 80 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 80 00 00 00 F4 03 04 00 5F 1F AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 65 D2 01 00 35 04 06 00 37 5F 7D 7B 70 A9 C2 60 0E 06 D5 7B 4D F0 [11:26:23]CheckFolder [11:26:23]dirname=/storage/ofd_packets [11:26:23]CheckFolder done [11:26:23]ProducePacketName [11:26:23]name=ofd_packets/00119397 [11:26:23]NVStorageSaveData ofd_packets/00119397 [11:26:23]File name is /storage/ofd_packets/00119397 [11:26:23]Write 301 bytes [11:26:23]NVStorageSaveData done [11:26:23]OFDSenderStorePacket done [11:26:23]KKMCreateOFDPacket done [11:26:23]NVStorageSaveData kkm_last_timestamp [11:26:23]File name is /storage/kkm_last_timestamp [11:26:23]Write 4 bytes [11:26:23]NVStorageSaveData done [11:26:23]ExternCall_PrintAddStr [11:26:23]wPrintStart [11:26:23]Write to MH i2c: 01 00 00 F5 22 17 [11:26:23]Write i2c OK [11:26:23]MH_I2C_Read... [11:26:23]Read from MH i2c: 01 [11:26:23]MH_I2C_Read... [11:26:23]Read from MH i2c: 01 07 00 [11:26:23]MH_I2C_Read... [11:26:23]Read from MH i2c: 01 07 00 F5 22 00 00 00 00 00 FF 0F 2C [11:26:23]RasterBufferAndPrint [11:26:23]line Счет N : (1)950323 [11:26:23]line ИНН: 02508201610067 [11:26:23]line Контрольно-Кассовый Чек [11:26:23]line ПРОДАЖА [11:26:23]line ТРК (МРК, ГНК) : 51 [11:26:23]line Товар: 2710124130 [11:26:23]line Аи-92-К-4 [11:26:23]line 8.850 * 67.80 [11:26:23]line = 600.03 [11:26:23]line НДС 12% НСП 1% [11:26:23]line > о реализуемом товаре [11:26:23]line ОКРУГЛЕНИЕ: -0.03 [11:26:23]line ИТОГО: 600.00 [11:26:23]line Внесено: 600.00 [11:26:23]line СДАЧА: 0.00 [11:26:23]line НСП 1% : 5.31 [11:26:23]line НДС 12% : 63.72 [11:26:23]line Наличными: 600.00 [11:26:23]line Безнал.: 0.00 [11:26:23]line Место: АЗС № 134 "Партнер Нефть" [11:26:23]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:26:23]line СНО: Общий режим [11:26:23]line Чек 128 31.07.2024 11:26 [11:26:23]line Смена: 436 ФФД: 1.0 [11:26:23]line ЗНМ: 0300000044 [11:26:23]line РНМ: 0000000000092660 [11:26:23]line Версия ККМ: 001 [11:26:23]line ФМ: 0000000000874939 [11:26:23]line ФД: 119397 [11:26:23]line ФПД: 60883266662569 [11:26:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T112623&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119397&fm=60883266662569&tin=02508201610067®Number=0000000000092660&sum=60000 [11:26:23]written 0, free lines is 4095 [11:26:23]OFD Sender: Processing packet 119397 [packets to send 86, broken 85] [11:26:23]ProducePacketName [11:26:23]name=ofd_packets/00119397 [11:26:23]OFD Sender: To server: pG, [11:26:23]CommunicateWithHost lk.salyk.kg:30040 [11:26:23]ConnectInit lk.salyk.kg [11:26:23]Write to MH i2c: 01 00 00 1F 23 42 [11:26:23]Write i2c OK [11:26:23]MH_I2C_Read... [11:26:23]Read from MH i2c: 01 [11:26:23]MH_I2C_Read... [11:26:23]Read from MH i2c: 01 07 00 [11:26:23]MH_I2C_Read... [11:26:23]Read from MH i2c: 01 07 00 1F 23 00 00 00 00 00 D5 0C 2A [11:26:23]RasterBufferAndPrint [11:26:23]line [11:26:23]line [11:26:23]line [11:26:23]line [11:26:23]line [11:26:23]written 0, free lines is 3289 [11:26:23]MH_Cut [11:26:23]Write to MH i2c: D1 01 00 26 23 01 1B [11:26:23]Write i2c OK [11:26:23]MH_I2C_Read... [11:26:23]Read from MH i2c: D1 [11:26:23]MH_I2C_Read... [11:26:23]Read from MH i2c: D1 01 00 [11:26:23]MH_I2C_Read... [11:26:23]Read from MH i2c: D1 01 00 26 23 00 1A [11:26:23]Write to MH i2c: 01 00 00 27 23 4A [11:26:23]Write i2c OK [11:26:23]MH_I2C_Read... [11:26:23]Connected sock=10 [11:26: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 39 33 39 0F 01 00 00 84 6E 07 01 80 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 80 00 00 00 F4 03 04 00 5F 1F AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 65 D2 01 00 35 04 06 00 37 5F 7D 7B 70 A9 C2 60 0E 06 D5 7B 4D F0 [11:26:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 36 58 47 00 06 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 39 33 39 10 04 04 00 65 D2 01 00 F4 03 04 00 E8 CC A9 66 B6 04 01 00 00 42 FD CC 29 28 46 88 F1 [11:26:23]CommunicateWithHost err = 0 [11:26:23]CheckOFDResponse [11:26:23]1017 (14) - 77093643461234 [11:26:23]1041 (16) - 0000000000874939 [11:26:23]1040 (4) - 119397 [11:26:23]1012 (4) - 31.07.2024 05:34 [11:26:23]1206 (1) - 0 [11:26:23]OFD Sender: Remove packet 119397 [11:26:23]ProducePacketName [11:26:23]name=ofd_packets/00119397 [11:26:23]NVStorageDeleteData [11:26:24]OFD Sender: No OFD packet to send [11:26:24]*** Cut start [11:26:24]*** Partial cut [11:26:24]*** CUTSNS_PIN = 1 [11:26:24]*** CUTSNS_PIN = 0 [11:26:24]*** Brake cut motor [11:26:24]Read from MH i2c: 01 [11:26:24]MH_I2C_Read... [11:26:24]*** Stop cut motor [11:26:24]*** Cut end [11:26:24]Read from MH i2c: 01 07 00 [11:26:24]MH_I2C_Read... [11:26:24]Read from MH i2c: 01 07 00 27 23 00 00 00 00 00 FF 0F 5F [11:26:24]process_action close_receipt done [11:26:24]requested_data is exist [11:26:24]produce_requested_data [11:26:24]requested_item fm.sn is exist - process it [11:26:24]wFMCommunicate request_size=4 [11:26:24]MH_SAM_APDU [11:26:24]CAPDU: 80 11 00 00 [11:26:24]Write to MH i2c: E2 08 00 28 23 80 11 00 00 00 00 00 00 C5 [11:26:24]Write i2c OK [11:26:24]MH_I2C_Read... [11:26:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:24]Read from MH i2c: E2 [11:26:24]MH_I2C_Read... [11:26:24]Read from MH i2c: E2 17 00 [11:26:24]MH_I2C_Read... [11:26:24]Read from MH i2c: E2 17 00 28 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 20 [11:26:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:26:24]wFMCommunicate OK [11:26:24]requested_item fd.num is exist - process it [11:26:24]SAM_PROTO_GetFieldsCounters [11:26:24]wFMCommunicate request_size=4 [11:26:24]MH_SAM_APDU [11:26:24]CAPDU: 80 13 00 00 [11:26:24]Write to MH i2c: E2 08 00 29 23 80 13 00 00 00 00 00 00 C8 [11:26:24]Write i2c OK [11:26:24]MH_I2C_Read... [11:26:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:24]Read from MH i2c: E2 [11:26:24]MH_I2C_Read... [11:26:24]Read from MH i2c: E2 62 00 [11:26:24]MH_I2C_Read... [11:26:24]Read from MH i2c: E2 62 00 29 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 65 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [11:26: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 65 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:26:24]wFMCommunicate OK [11:26:24]SAM_PROTO_GetFieldsCounters done [11:26:24]requested_item shift.num is exist - process it [11:26:24]requested_item shift.opened is exist - process it [11:26:24]req_shift_opened [11:26:24]FM_GetShiftState [11:26:24]SAM_PROTO_GetShiftState [11:26:24]wFMCommunicate request_size=4 [11:26:24]MH_SAM_APDU [11:26:24]CAPDU: 80 13 01 00 [11:26:24]Write to MH i2c: E2 08 00 2A 23 80 13 01 00 00 00 00 00 CA [11:26:24]Write i2c OK [11:26:24]MH_I2C_Read... [11:26:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:25]Read from MH i2c: E2 [11:26:25]MH_I2C_Read... [11:26:25]Read from MH i2c: E2 0E 00 [11:26:25]MH_I2C_Read... [11:26:25]Read from MH i2c: E2 0E 00 2A 23 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 62 [11:26:25]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [11:26:25]wFMCommunicate OK [11:26:25]SAM_PROTO_GetShiftState done [11:26:25]FM_GetShiftState done [11:26:25]req_shift_opened done [11:26:25]requested_item shift.open_date is exist - process it [11:26:25]req_shift_open_date [11:26:25]req_shift_open_date done [11:26:25]produce_requested_data done [11:26:25]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119397,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [11:26:25]process_action_free close_receipt [11:26:25]json_value_free [11:26:25]json_value_free done [11:26:25]process_json_proto returns [11:26:25]Send response to host [11:26:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119397,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [11:26:25]free response buf [11:26:25]execute_script done [11:26:25]execute_script returns [11:26:25]free content buf [11:26:25]Sock 9.Close socket [11:26:25]Sock 9.Thread stoped [11:26:29]OFD Sender: No OFD packet to send [11:26:34]OFD Sender: No OFD packet to send [11:26:39]OFD Sender: No OFD packet to send [11:26:44]OFD Sender: No OFD packet to send [11:26:49]OFD Sender: No OFD packet to send [11:26:54]OFD Sender: No OFD packet to send [11:26:59]OFD Sender: No OFD packet to send [11:27:04]OFD Sender: No OFD packet to send [11:27:09]OFD Sender: No OFD packet to send [11:27:14]OFD Sender: No OFD packet to send [11:27:19]OFD Sender: No OFD packet to send [11:27:24]OFD Sender: No OFD packet to send [11:27:29]OFD Sender: No OFD packet to send [11:27:34]OFD Sender: No OFD packet to send [11:27:39]OFD Sender: No OFD packet to send [11:27:44]OFD Sender: No OFD packet to send [11:27:49]OFD Sender: No OFD packet to send [11:27:54]OFD Sender: No OFD packet to send [11:27:59]OFD Sender: No OFD packet to send [11:28:04]OFD Sender: No OFD packet to send [11:28:09]OFD Sender: No OFD packet to send [11:28:14]OFD Sender: No OFD packet to send [11:28:19]OFD Sender: No OFD packet to send [11:28:24]OFD Sender: No OFD packet to send [11:28:29]OFD Sender: No OFD packet to send [11:28:34]OFD Sender: No OFD packet to send [11:28:39]OFD Sender: No OFD packet to send [11:28:44]OFD Sender: No OFD packet to send [11:28:49]OFD Sender: No OFD packet to send [11:28:54]OFD Sender: No OFD packet to send [11:28:59]OFD Sender: No OFD packet to send [11:29:04]OFD Sender: No OFD packet to send [11:29:09]OFD Sender: No OFD packet to send [11:29:14]OFD Sender: No OFD packet to send [11:29:19]OFD Sender: No OFD packet to send [11:29:24]OFD Sender: No OFD packet to send [11:29:29]OFD Sender: No OFD packet to send [11:29:30]accept exits with 8 [11:29:30]New connection [11:29:30]New thread 3067338084 created [11:29:30]Thread 3067194724 joined [11:29:30]Waiting for new connection... [11:29:30] Sock 8.Parse request [11:29:30]Sock 8.Check first char [11:29:30]Sock 8.First char is OK [11:29:30]request: POST /json_proto HTTP/1.0 [11:29:30]Method: POST [11:29:30]URL: /json_proto [11:29:30]Method is POST - this is cgi request [11:29:30]url: /json_proto [11:29:30]query_string will be loaded in cgi processing [11:29:30]execute_cgi json_proto POST (null) [11:29:30]execute_cgi path=json_proto method=POST [11:29:30]POST find Content-Length [11:29:30]Host: 172.17.45.7:8080 [11:29:30]Content-Length: 682 [11:29:30]Content-Type: application/json [11:29:30] [11:29:30]POST finish read [11:29:30]Found Content-Length = 682 [11:29:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:30]execute_script... [11:29: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)950324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:30]POST & json_proto [11:29:30]process_json_proto [11:29:30]json parsed OK: [11:29:30]protocol is kg_v1.0 [11:29:30]action value=close_receipt [11:29:30]process_action close_receipt [11:29:30]cmd_close_receipt [11:29:30]MH_GetDate [11:29:30]Write to MH i2c: F0 00 00 2B 23 3D [11:29:30]Write i2c OK [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: F0 [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: F0 09 00 [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: F0 09 00 2B 23 00 1C 20 AA 66 90 0F 3E 66 D5 [11:29:30]GetLastDocTimeStamp 1722425183 [11:29:30]current date 1722425372 [11:29:30]FM_GetShiftState [11:29:30]SAM_PROTO_GetShiftState [11:29:30]wFMCommunicate request_size=4 [11:29:30]MH_SAM_APDU [11:29:30]CAPDU: 80 13 01 00 [11:29:30]Write to MH i2c: E2 08 00 2C 23 80 13 01 00 00 00 00 00 CC [11:29:30]Write i2c OK [11:29:30]MH_I2C_Read... [11:29:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:30]Read from MH i2c: E2 [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: E2 0E 00 [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: E2 0E 00 2C 23 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 64 [11:29:30]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [11:29:30]wFMCommunicate OK [11:29:30]SAM_PROTO_GetShiftState done [11:29:30]FM_GetShiftState done [11:29:30]opened in 1722384637 [11:29:30]opened+sec_in_day 1722471037 [11:29:30]quantity*price = 100005 [11:29:30]sum+1 = 100006 [11:29:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 129 31.07.2024 11:29 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119398 ФПД: 15822033731731 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T112933&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119398&fm=15822033731731&tin=02508201610067®Number=0000000000092660&sum=100000 [11:29:31]StoreToDocumentArchive [11:29:31]shift 436 fd 119398 [11:29:31]save to /storage/0436/doc_00119398 [11:29:31]save last doc name /storage/0436/doc_00119398 to /storage/kkm_last_doc_name [11:29:31]save OK [11:29:31]Clear old archive folders... [11:29:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:29:31]tlvbuf is B6FB6880 [11:29:31]SAM_PROTO_ClearQueue [11:29:31]wFMCommunicate request_size=4 [11:29:31]MH_SAM_APDU [11:29:31]CAPDU: 80 09 00 00 [11:29:31]Write to MH i2c: E2 08 00 39 23 80 09 00 00 00 00 00 00 CE [11:29:31]Write i2c OK [11:29:31]MH_I2C_Read... [11:29:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:31]Read from MH i2c: E2 [11:29:31]MH_I2C_Read... [11:29:31]Read from MH i2c: E2 03 00 [11:29:31]MH_I2C_Read... [11:29:31]Read from MH i2c: E2 03 00 39 23 00 90 00 D0 [11:29:31]RAPDU: 90 00 [11:29:31]wFMCommunicate OK [11:29:31]SAM_PROTO_ClearQueue done [11:29:31]KKMCreateOFDPacket [11:29:31]OFDProtocolAddRootSTLVToBuf [11:29:31]FM_MakeSignedData [11:29:31]FM_MakeSignedData [11:29:31]SAM_PROTO_SignData [11:29:31]wFMCommunicate request_size=4 [11:29:31]MH_SAM_APDU [11:29:31]CAPDU: 80 0D 01 02 [11:29:31]Write to MH i2c: E2 08 00 3A 23 80 0D 01 02 00 00 00 00 D6 [11:29:31]Write i2c OK [11:29:31]MH_I2C_Read... [11:29:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:31]Read from MH i2c: E2 [11:29:31]MH_I2C_Read... [11:29:31]Read from MH i2c: E2 03 00 [11:29:31]MH_I2C_Read... [11:29:31]Read from MH i2c: E2 03 00 3A 23 00 90 00 D1 [11:29:31]RAPDU: 90 00 [11:29:31]wFMCommunicate OK [11:29:31]wFMCommunicate request_size=255 [11:29:31]MH_SAM_APDU [11:29: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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 81 00 00 00 F4 03 04 00 1D 20 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 66 D2 01 00 35 04 06 00 0E [11:29:31]Write to MH i2c: E2 02 01 3B 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 81 00 00 00 F4 03 04 00 1D 20 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 66 D2 01 00 35 04 06 00 0E 00 00 B3 [11:29:32]Write i2c OK [11:29:32]MH_I2C_Read... [11:29:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:32]Read from MH i2c: E2 [11:29:32]MH_I2C_Read... [11:29:32]Read from MH i2c: E2 03 00 [11:29:32]MH_I2C_Read... [11:29:32]Read from MH i2c: E2 03 00 3B 23 00 90 00 D2 [11:29:32]RAPDU: 90 00 [11:29:32]wFMCommunicate OK [11:29:32]wFMCommunicate request_size=10 [11:29:32]MH_SAM_APDU [11:29:32]CAPDU: 80 0D 02 02 05 63 DA B3 40 93 [11:29:32]Write to MH i2c: E2 0D 00 3C 23 80 0D 02 02 05 00 63 DA B3 40 93 00 00 A6 [11:29:32]Write i2c OK [11:29:32]MH_I2C_Read... [11:29:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:32]Read from MH i2c: E2 [11:29:32]MH_I2C_Read... [11:29:32]Read from MH i2c: E2 03 00 [11:29:32]MH_I2C_Read... [11:29:32]Read from MH i2c: E2 03 00 3C 23 00 90 00 D3 [11:29:32]RAPDU: 90 00 [11:29:32]wFMCommunicate OK [11:29:32]wFMCommunicate request_size=4 [11:29:32]MH_SAM_APDU [11:29:32]CAPDU: 80 0D 03 02 [11:29:32]Write to MH i2c: E2 08 00 3D 23 80 0D 03 02 00 00 00 00 DB [11:29:32]Write i2c OK [11:29:32]MH_I2C_Read... [11:29:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:32]Read from MH i2c: E2 [11:29:32]MH_I2C_Read... [11:29:32]Read from MH i2c: E2 0B 00 [11:29:32]MH_I2C_Read... [11:29:32]Read from MH i2c: E2 0B 00 3D 23 00 72 90 3B 83 E7 4F AA 53 90 00 CF [11:29:32]RAPDU: 72 90 3B 83 E7 4F AA 53 90 00 [11:29:32]wFMCommunicate OK [11:29:32]SAM_PROTO_SignData done [11:29:32]FM_MakeSignedData done [11:29:32]CreateOFDProtocolMessage [11:29:32]wFMCommunicate request_size=4 [11:29:32]MH_SAM_APDU [11:29:32]CAPDU: 80 11 00 00 [11:29:32]Write to MH i2c: E2 08 00 3E 23 80 11 00 00 00 00 00 00 DB [11:29:32]Write i2c OK [11:29:32]MH_I2C_Read... [11:29:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:32]Read from MH i2c: E2 [11:29:32]MH_I2C_Read... [11:29:32]Read from MH i2c: E2 17 00 [11:29:32]MH_I2C_Read... [11:29:32]Read from MH i2c: E2 17 00 3E 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 36 [11:29:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:29:32]wFMCommunicate OK [11:29:32]CreateOFDProtocolMessage done [11:29:32]OFDSenderStorePacket 119398 [11:29:32]StoreOFDPacket docnum=119398 [11:29:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 70 A9 07 01 A3 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 81 00 00 00 F4 03 04 00 1D 20 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 66 D2 01 00 35 04 06 00 0E 63 DA B3 40 93 72 90 3B 83 E7 4F AA 53 [11:29:32]CheckFolder [11:29:32]dirname=/storage/ofd_packets [11:29:32]CheckFolder done [11:29:32]ProducePacketName [11:29:32]name=ofd_packets/00119398 [11:29:32]NVStorageSaveData ofd_packets/00119398 [11:29:32]File name is /storage/ofd_packets/00119398 [11:29:32]Write 301 bytes [11:29:32]NVStorageSaveData done [11:29:32]OFDSenderStorePacket done [11:29:32]KKMCreateOFDPacket done [11:29:32]NVStorageSaveData kkm_last_timestamp [11:29:32]File name is /storage/kkm_last_timestamp [11:29:32]Write 4 bytes [11:29:32]NVStorageSaveData done [11:29:32]ExternCall_PrintAddStr [11:29:32]wPrintStart [11:29:32]Write to MH i2c: 01 00 00 3F 23 62 [11:29:32]Write i2c OK [11:29:32]MH_I2C_Read... [11:29:32]Read from MH i2c: 01 [11:29:32]MH_I2C_Read... [11:29:32]Read from MH i2c: 01 07 00 [11:29:32]MH_I2C_Read... [11:29:32]Read from MH i2c: 01 07 00 3F 23 00 00 00 00 00 FF 0F 77 [11:29:32]RasterBufferAndPrint [11:29:32]line Счет N : (1)950324 [11:29:32]line ИНН: 02508201610067 [11:29:32]line Контрольно-Кассовый Чек [11:29:32]line ПРОДАЖА [11:29:32]line ТРК (МРК, ГНК) : 51 [11:29:32]line Товар: 2710124130 [11:29:32]line Аи-92-К-4 [11:29:32]line 14.750 * 67.80 [11:29:32]line = 1000.05 [11:29:32]line НДС 12% НСП 1% [11:29:32]line > о реализуемом товаре [11:29:32]line ОКРУГЛЕНИЕ: -0.05 [11:29:32]line ИТОГО: 1000.00 [11:29:32]line Внесено: 1000.00 [11:29:32]line СДАЧА: 0.00 [11:29:32]line НСП 1% : 8.85 [11:29:32]line НДС 12% : 106.20 [11:29:32]line Наличными: 1000.00 [11:29:32]line Безнал.: 0.00 [11:29:32]line Место: АЗС № 134 "Партнер Нефть" [11:29:32]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:29:32]line СНО: Общий режим [11:29:32]line Чек 129 31.07.2024 11:29 [11:29:32]line Смена: 436 ФФД: 1.0 [11:29:32]line ЗНМ: 0300000044 [11:29:32]line РНМ: 0000000000092660 [11:29:32]line Версия ККМ: 001 [11:29:32]line ФМ: 0000000000874939 [11:29:32]line ФД: 119398 [11:29:32]line ФПД: 15822033731731 [11:29:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T112933&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119398&fm=15822033731731&tin=02508201610067®Number=0000000000092660&sum=100000 [11:29:32]written 0, free lines is 4095 [11:29:32]OFD Sender: Processing packet 119398 [packets to send 86, broken 85] [11:29:32]ProducePacketName [11:29:32]name=ofd_packets/00119398 [11:29:32]OFD Sender: To server: pG, [11:29:32]CommunicateWithHost lk.salyk.kg:30040 [11:29:32]ConnectInit lk.salyk.kg [11:29:32]Connected sock=10 [11:29: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 39 33 39 0F 01 00 00 70 A9 07 01 A3 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 81 00 00 00 F4 03 04 00 1D 20 AA 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 66 D2 01 00 35 04 06 00 0E 63 DA B3 40 93 72 90 3B 83 E7 4F AA 53 [11:29:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 64 B4 47 00 E2 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 66 D2 01 00 F4 03 04 00 A5 CD A9 66 B6 04 01 00 00 BF 0B A8 D2 F0 86 AD B7 [11:29:32]CommunicateWithHost err = 0 [11:29:32]CheckOFDResponse [11:29:32]1017 (14) - 77093643461234 [11:29:32]1041 (16) - 0000000000874939 [11:29:32]1040 (4) - 119398 [11:29:32]1012 (4) - 31.07.2024 05:37 [11:29:32]1206 (1) - 0 [11:29:32]OFD Sender: Remove packet 119398 [11:29:32]ProducePacketName [11:29:32]name=ofd_packets/00119398 [11:29:32]NVStorageDeleteData [11:29:32]Write to MH i2c: 01 00 00 69 23 8C [11:29:32]Write i2c OK [11:29:32]MH_I2C_Read... [11:29:32]Read from MH i2c: 01 [11:29:32]MH_I2C_Read... [11:29:32]Read from MH i2c: 01 07 00 [11:29:32]MH_I2C_Read... [11:29:32]Read from MH i2c: 01 07 00 69 23 00 00 00 00 00 DC 0C 7B [11:29:32]RasterBufferAndPrint [11:29:32]line [11:29:32]line [11:29:32]line [11:29:32]line [11:29:32]line [11:29:32]written 0, free lines is 3298 [11:29:32]MH_Cut [11:29:32]Write to MH i2c: D1 01 00 70 23 01 65 [11:29:32]Write i2c OK [11:29:32]MH_I2C_Read... [11:29:32]Read from MH i2c: D1 [11:29:32]MH_I2C_Read... [11:29:32]Read from MH i2c: D1 01 00 [11:29:32]MH_I2C_Read... [11:29:32]Read from MH i2c: D1 01 00 70 23 00 64 [11:29:32]Write to MH i2c: 01 00 00 71 23 94 [11:29:32]Write i2c OK [11:29:32]MH_I2C_Read... [11:29:33]OFD Sender: No OFD packet to send [11:29:33]*** Cut start [11:29:33]*** Partial cut [11:29:33]*** CUTSNS_PIN = 1 [11:29:33]*** CUTSNS_PIN = 0 [11:29:33]*** Brake cut motor [11:29:34]Read from MH i2c: 01 [11:29:34]MH_I2C_Read... [11:29:34]*** Stop cut motor [11:29:34]*** Cut end [11:29:34]Read from MH i2c: 01 07 00 [11:29:34]MH_I2C_Read... [11:29:34]Read from MH i2c: 01 07 00 71 23 00 00 00 00 00 FF 0F A9 [11:29:34]process_action close_receipt done [11:29:34]requested_data is exist [11:29:34]produce_requested_data [11:29:34]requested_item fm.sn is exist - process it [11:29:34]wFMCommunicate request_size=4 [11:29:34]MH_SAM_APDU [11:29:34]CAPDU: 80 11 00 00 [11:29:34]Write to MH i2c: E2 08 00 72 23 80 11 00 00 00 00 00 00 0F [11:29:34]Write i2c OK [11:29:34]MH_I2C_Read... [11:29:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:34]Read from MH i2c: E2 [11:29:34]MH_I2C_Read... [11:29:34]Read from MH i2c: E2 17 00 [11:29:34]MH_I2C_Read... [11:29:34]Read from MH i2c: E2 17 00 72 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6A [11:29:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:29:34]wFMCommunicate OK [11:29:34]requested_item fd.num is exist - process it [11:29:34]SAM_PROTO_GetFieldsCounters [11:29:34]wFMCommunicate request_size=4 [11:29:34]MH_SAM_APDU [11:29:34]CAPDU: 80 13 00 00 [11:29:34]Write to MH i2c: E2 08 00 73 23 80 13 00 00 00 00 00 00 12 [11:29:34]Write i2c OK [11:29:34]MH_I2C_Read... [11:29:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:34]Read from MH i2c: E2 [11:29:34]MH_I2C_Read... [11:29:34]Read from MH i2c: E2 62 00 [11:29:34]MH_I2C_Read... [11:29:34]Read from MH i2c: E2 62 00 73 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 66 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [11:29:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 66 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:29:34]wFMCommunicate OK [11:29:34]SAM_PROTO_GetFieldsCounters done [11:29:34]requested_item shift.num is exist - process it [11:29:34]requested_item shift.opened is exist - process it [11:29:34]req_shift_opened [11:29:34]FM_GetShiftState [11:29:34]SAM_PROTO_GetShiftState [11:29:34]wFMCommunicate request_size=4 [11:29:34]MH_SAM_APDU [11:29:34]CAPDU: 80 13 01 00 [11:29:34]Write to MH i2c: E2 08 00 74 23 80 13 01 00 00 00 00 00 14 [11:29:34]Write i2c OK [11:29:34]MH_I2C_Read... [11:29:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:34]Read from MH i2c: E2 [11:29:34]MH_I2C_Read... [11:29:34]Read from MH i2c: E2 0E 00 [11:29:34]MH_I2C_Read... [11:29:34]Read from MH i2c: E2 0E 00 74 23 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 AC [11:29:34]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [11:29:34]wFMCommunicate OK [11:29:34]SAM_PROTO_GetShiftState done [11:29:34]FM_GetShiftState done [11:29:34]req_shift_opened done [11:29:34]requested_item shift.open_date is exist - process it [11:29:34]req_shift_open_date [11:29:34]req_shift_open_date done [11:29:34]produce_requested_data done [11:29:34]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119398,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [11:29:34]process_action_free close_receipt [11:29:34]json_value_free [11:29:34]json_value_free done [11:29:34]process_json_proto returns [11:29:34]Send response to host [11:29:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119398,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [11:29:34]free response buf [11:29:34]execute_script done [11:29:34]execute_script returns [11:29:34]free content buf [11:29:34]Sock 8.Close socket [11:29:34]Sock 8.Thread stoped [11:29:38]OFD Sender: No OFD packet to send [11:29:43]OFD Sender: No OFD packet to send [11:29:48]OFD Sender: No OFD packet to send [11:29:53]OFD Sender: No OFD packet to send [11:29:58]OFD Sender: No OFD packet to send [11:30:03]OFD Sender: No OFD packet to send [11:30:08]OFD Sender: No OFD packet to send [11:30:13]OFD Sender: No OFD packet to send [11:30:18]OFD Sender: No OFD packet to send [11:30:23]OFD Sender: No OFD packet to send [11:30:28]OFD Sender: No OFD packet to send [11:30:33]OFD Sender: No OFD packet to send [11:30:38]OFD Sender: No OFD packet to send [11:30:43]OFD Sender: No OFD packet to send [11:30:48]OFD Sender: No OFD packet to send [11:30:53]OFD Sender: No OFD packet to send [11:30:58]OFD Sender: No OFD packet to send [11:31:03]OFD Sender: No OFD packet to send [11:31:08]OFD Sender: No OFD packet to send [11:31:13]OFD Sender: No OFD packet to send [11:31:18]OFD Sender: No OFD packet to send [11:31:23]OFD Sender: No OFD packet to send [11:31:28]OFD Sender: No OFD packet to send [11:31:33]OFD Sender: No OFD packet to send [11:31:38]OFD Sender: No OFD packet to send [11:31:43]OFD Sender: No OFD packet to send [11:31:48]OFD Sender: No OFD packet to send [11:31:49]accept exits with 9 [11:31:49]New connection [11:31:49]New thread 3067194724 created [11:31:49]Thread 3067338084 joined [11:31:49]Waiting for new connection... [11:31:49] Sock 9.Parse request [11:31:49]Sock 9.Check first char [11:31:49]Sock 9.First char is OK [11:31:49]request: POST /json_proto HTTP/1.0 [11:31:49]Method: POST [11:31:49]URL: /json_proto [11:31:49]Method is POST - this is cgi request [11:31:49]url: /json_proto [11:31:49]query_string will be loaded in cgi processing [11:31:49]execute_cgi json_proto POST (null) [11:31:49]execute_cgi path=json_proto method=POST [11:31:49]POST find Content-Length [11:31:49]Host: 172.17.45.7:8080 [11:31:49]Content-Length: 215 [11:31:49]Content-Type: application/json [11:31:49] [11:31:49]POST finish read [11:31:49]Found Content-Length = 215 [11:31:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:49]execute_script... [11:31:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:49]POST & json_proto [11:31:49]process_json_proto [11:31:49]json parsed OK: [11:31:49]protocol is kg_v1.0 [11:31:49]action value=get_value [11:31:49]process_action get_value [11:31:49]cmd_get_value [11:31:49]process_action get_value done [11:31:49]requested_data is exist [11:31:49]produce_requested_data [11:31:49]requested_item kkm.sn is exist - process it [11:31:49]requested_item kkm.ver is exist - process it [11:31:49]requested_item fm.sn is exist - process it [11:31:49]wFMCommunicate request_size=4 [11:31:49]MH_SAM_APDU [11:31:49]CAPDU: 80 11 00 00 [11:31:49]Write to MH i2c: E2 08 00 75 23 80 11 00 00 00 00 00 00 12 [11:31:49]Write i2c OK [11:31:49]MH_I2C_Read... [11:31:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:49]Read from MH i2c: E2 [11:31:49]MH_I2C_Read... [11:31:49]Read from MH i2c: E2 17 00 [11:31:49]MH_I2C_Read... [11:31:49]Read from MH i2c: E2 17 00 75 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6D [11:31:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:31:49]wFMCommunicate OK [11:31:49]requested_item fd.num is exist - process it [11:31:49]SAM_PROTO_GetFieldsCounters [11:31:49]wFMCommunicate request_size=4 [11:31:49]MH_SAM_APDU [11:31:49]CAPDU: 80 13 00 00 [11:31:49]Write to MH i2c: E2 08 00 76 23 80 13 00 00 00 00 00 00 15 [11:31:49]Write i2c OK [11:31:49]MH_I2C_Read... [11:31:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:31:50]Read from MH i2c: E2 [11:31:50]MH_I2C_Read... [11:31:50]Read from MH i2c: E2 62 00 [11:31:50]MH_I2C_Read... [11:31:50]Read from MH i2c: E2 62 00 76 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 66 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [11:31:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 66 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:31:50]wFMCommunicate OK [11:31:50]SAM_PROTO_GetFieldsCounters done [11:31:50]requested_item shift.num is exist - process it [11:31:50]requested_item shift.opened is exist - process it [11:31:50]req_shift_opened [11:31:50]FM_GetShiftState [11:31:50]SAM_PROTO_GetShiftState [11:31:50]wFMCommunicate request_size=4 [11:31:50]MH_SAM_APDU [11:31:50]CAPDU: 80 13 01 00 [11:31:50]Write to MH i2c: E2 08 00 77 23 80 13 01 00 00 00 00 00 17 [11:31:50]Write i2c OK [11:31:50]MH_I2C_Read... [11:31:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:50]Read from MH i2c: E2 [11:31:50]MH_I2C_Read... [11:31:50]Read from MH i2c: E2 0E 00 [11:31:50]MH_I2C_Read... [11:31:50]Read from MH i2c: E2 0E 00 77 23 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 AF [11:31:50]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [11:31:50]wFMCommunicate OK [11:31:50]SAM_PROTO_GetShiftState done [11:31:50]FM_GetShiftState done [11:31:50]req_shift_opened done [11:31:50]requested_item shift.open_date is exist - process it [11:31:50]req_shift_open_date [11:31:50]req_shift_open_date done [11:31:50]produce_requested_data done [11:31:50]produce_requested_data return {"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":119398,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [11:31:50]process_action_free get_value [11:31:50]json_value_free [11:31:50]json_value_free done [11:31:50]process_json_proto returns [11:31:50]Send response to host [11:31:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":119398,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [11:31:50]free response buf [11:31:50]execute_script done [11:31:50]execute_script returns [11:31:50]free content buf [11:31:50]Sock 9.Close socket [11:31:50]Sock 9.Thread stoped [11:31:50]accept exits with 8 [11:31:50]New connection [11:31:50]New thread 3067338084 created [11:31:50]Thread 3067194724 joined [11:31:50]Waiting for new connection... [11:31:50] Sock 8.Parse request [11:31:50]Sock 8.Check first char [11:31:50]Sock 8.First char is OK [11:31:50]request: POST /json_proto HTTP/1.0 [11:31:50]Method: POST [11:31:50]URL: /json_proto [11:31:50]Method is POST - this is cgi request [11:31:50]url: /json_proto [11:31:50]query_string will be loaded in cgi processing [11:31:50]execute_cgi json_proto POST (null) [11:31:50]execute_cgi path=json_proto method=POST [11:31:50]POST find Content-Length [11:31:50]Host: 172.17.45.7:8080 [11:31:50]Content-Length: 331 [11:31:50]Content-Type: application/json [11:31:50] [11:31:50]POST finish read [11:31:50]Found Content-Length = 331 [11:31:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:31:50]execute_script... [11:31:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:31:50]POST & json_proto [11:31:50]process_json_proto [11:31:50]json parsed OK: [11:31:50]protocol is kg_v1.0 [11:31:50]action value=get_value [11:31:50]process_action get_value [11:31:50]cmd_get_value [11:31:50]process_action get_value done [11:31:50]requested_data is exist [11:31:50]produce_requested_data [11:31:50]requested_item fm.sale.total is exist - process it [11:31:50]SAM_PROTO_GetFMData [11:31:50]wFMCommunicate request_size=4 [11:31:50]MH_SAM_APDU [11:31:50]CAPDU: 80 13 03 00 [11:31:50]Write to MH i2c: E2 08 00 78 23 80 13 03 00 00 00 00 00 1A [11:31:50]Write i2c OK [11:31:50]MH_I2C_Read... [11:31:50]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:31:50]Read from MH i2c: E2 [11:31:50]MH_I2C_Read... [11:31:50]Read from MH i2c: E2 FD 00 [11:31:50]MH_I2C_Read... [11:31:50]Read from MH i2c: E2 FD 00 78 23 00 C5 04 85 04 C1 04 6E 04 04 00 FE CE 01 00 69 04 A3 00 6F 04 04 00 5D C1 01 00 B1 04 05 00 94 47 40 7C 03 70 04 05 00 C4 36 EE AA 02 72 04 04 00 D0 10 52 D1 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 25 E0 C6 5E 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 98 C6 E5 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 A1 0D 00 00 B1 04 04 00 E8 48 61 3B 70 04 04 00 E8 48 61 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 71 7C 4E 06 EF 03 09 90 00 55 [11:31:50]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 FE CE 01 00 69 04 A3 00 6F 04 04 00 5D C1 01 00 B1 04 05 00 94 47 40 7C 03 70 04 05 00 C4 36 EE AA 02 72 04 04 00 D0 10 52 D1 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 25 E0 C6 5E 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 98 C6 E5 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 A1 0D 00 00 B1 04 04 00 E8 48 61 3B 70 04 04 00 E8 48 61 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 71 7C 4E 06 EF 03 09 90 00 [11:31:50]wFMCommunicate OK [11:31:50]wFMCommunicate request_size=4 [11:31:50]MH_SAM_APDU [11:31:50]CAPDU: 80 17 00 00 [11:31:50]Write to MH i2c: E2 08 00 79 23 80 17 00 00 00 00 00 00 1C [11:31:50]Write i2c OK [11:31:50]MH_I2C_Read... [11:31:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:31:51]Read from MH i2c: E2 [11:31:51]MH_I2C_Read... [11:31:51]Read from MH i2c: E2 FD 00 [11:31:51]MH_I2C_Read... [11:31:51]Read from MH i2c: E2 FD 00 79 23 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7C 89 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 5D [11:31:51]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7C 89 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [11:31:51]wFMCommunicate OK [11:31:51]wFMCommunicate request_size=4 [11:31:51]MH_SAM_APDU [11:31:51]CAPDU: 80 17 00 00 [11:31:51]Write to MH i2c: E2 08 00 7A 23 80 17 00 00 00 00 00 00 1D [11:31:51]Write i2c OK [11:31:51]MH_I2C_Read... [11:31:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:31:51]Read from MH i2c: E2 [11:31:51]MH_I2C_Read... [11:31:51]Read from MH i2c: E2 FD 00 [11:31:51]MH_I2C_Read... [11:31:51]Read from MH i2c: E2 FD 00 7A 23 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 2F [11:31:51]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [11:31:51]wFMCommunicate OK [11:31:51]wFMCommunicate request_size=4 [11:31:51]MH_SAM_APDU [11:31:51]CAPDU: 80 17 00 00 [11:31:51]Write to MH i2c: E2 08 00 7B 23 80 17 00 00 00 00 00 00 1E [11:31:51]Write i2c OK [11:31:51]MH_I2C_Read... [11:31:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:31:51]Read from MH i2c: E2 [11:31:51]MH_I2C_Read... [11:31:51]Read from MH i2c: E2 FD 00 [11:31:51]MH_I2C_Read... [11:31:51]Read from MH i2c: E2 FD 00 7B 23 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 AA [11:31:51]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [11:31:51]wFMCommunicate OK [11:31:51]wFMCommunicate request_size=4 [11:31:51]MH_SAM_APDU [11:31:51]CAPDU: 80 17 00 00 [11:31:51]Write to MH i2c: E2 08 00 7C 23 80 17 00 00 00 00 00 00 1F [11:31:51]Write i2c OK [11:31:51]MH_I2C_Read... [11:31:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [11:31:51]Read from MH i2c: E2 [11:31:51]MH_I2C_Read... [11:31:51]Read from MH i2c: E2 E2 00 [11:31:51]MH_I2C_Read... [11:31:51]Read from MH i2c: E2 E2 00 7C 23 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 FD [11:31:51]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:31:51]wFMCommunicate OK [11:31:51]SAM_PROTO_GetFMData done [11:31:51]requested_item fm.sale_refund.total is exist - process it [11:31:51]requested_item fm.buy.total is exist - process it [11:31:51]requested_item shift.sale.total is exist - process it [11:31:51]SAM_PROTO_GetShiftData [11:31:51]wFMCommunicate request_size=4 [11:31:51]MH_SAM_APDU [11:31:51]CAPDU: 80 13 02 00 [11:31:51]Write to MH i2c: E2 08 00 7D 23 80 13 02 00 00 00 00 00 1E [11:31:51]Write i2c OK [11:31:51]MH_I2C_Read... [11:31:52]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:31:52]Read from MH i2c: E2 [11:31:52]MH_I2C_Read... [11:31:52]Read from MH i2c: E2 FD 00 [11:31:52]MH_I2C_Read... [11:31:52]Read from MH i2c: E2 FD 00 7D 23 00 BA 04 AA 04 B6 04 6E 04 04 00 81 00 00 00 69 04 9C 00 6F 04 04 00 7D 00 00 00 B1 04 03 00 C8 26 CA 70 04 03 00 58 51 74 72 04 03 00 70 D5 55 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 3E 79 15 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 16 CA 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 F0 0D 0C 70 04 03 00 F0 0D 0C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BF 47 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 61 [11:31:52]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 81 00 00 00 69 04 9C 00 6F 04 04 00 7D 00 00 00 B1 04 03 00 C8 26 CA 70 04 03 00 58 51 74 72 04 03 00 70 D5 55 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 3E 79 15 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 16 CA 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 F0 0D 0C 70 04 03 00 F0 0D 0C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BF 47 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [11:31:52]wFMCommunicate OK [11:31:52]wFMCommunicate request_size=4 [11:31:52]MH_SAM_APDU [11:31:52]CAPDU: 80 17 00 00 [11:31:52]Write to MH i2c: E2 08 00 7E 23 80 17 00 00 00 00 00 00 21 [11:31:52]Write i2c OK [11:31:52]MH_I2C_Read... [11:31:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:31:52]Read from MH i2c: E2 [11:31:52]MH_I2C_Read... [11:31:52]Read from MH i2c: E2 FD 00 [11:31:52]MH_I2C_Read... [11:31:52]Read from MH i2c: E2 FD 00 7E 23 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 50 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 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 90 00 36 [11:31:52]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 50 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 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 90 00 [11:31:52]wFMCommunicate OK [11:31:52]wFMCommunicate request_size=4 [11:31:52]MH_SAM_APDU [11:31:52]CAPDU: 80 17 00 00 [11:31:52]Write to MH i2c: E2 08 00 7F 23 80 17 00 00 00 00 00 00 22 [11:31:52]Write i2c OK [11:31:52]MH_I2C_Read... [11:31:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:31:52]Read from MH i2c: E2 [11:31:52]MH_I2C_Read... [11:31:52]Read from MH i2c: E2 FD 00 [11:31:52]MH_I2C_Read... [11:31:52]Read from MH i2c: E2 FD 00 7F 23 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 4E [11:31:52]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [11:31:52]wFMCommunicate OK [11:31:52]wFMCommunicate request_size=4 [11:31:52]MH_SAM_APDU [11:31:52]CAPDU: 80 17 00 00 [11:31:52]Write to MH i2c: E2 08 00 80 23 80 17 00 00 00 00 00 00 23 [11:31:52]Write i2c OK [11:31:52]MH_I2C_Read... [11:31:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:31:53]Read from MH i2c: E2 [11:31:53]MH_I2C_Read... [11:31:53]Read from MH i2c: E2 FD 00 [11:31:53]MH_I2C_Read... [11:31:53]Read from MH i2c: E2 FD 00 80 23 00 00 EF 03 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 90 00 9B [11:31:53]RAPDU: 00 EF 03 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 90 00 [11:31:53]wFMCommunicate OK [11:31:53]wFMCommunicate request_size=4 [11:31:53]MH_SAM_APDU [11:31:53]CAPDU: 80 17 00 00 [11:31:53]Write to MH i2c: E2 08 00 81 23 80 17 00 00 00 00 00 00 24 [11:31:53]Write i2c OK [11:31:53]MH_I2C_Read... [11:31:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [11:31:53]Read from MH i2c: E2 [11:31:53]MH_I2C_Read... [11:31:53]Read from MH i2c: E2 D7 00 [11:31:53]MH_I2C_Read... [11:31:53]Read from MH i2c: E2 D7 00 81 23 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 07 [11:31:53]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:31:53]wFMCommunicate OK [11:31:53]SAM_PROTO_GetShiftData done [11:31:53]OFD Sender: No OFD packet to send [11:31:53]requested_item shift.sale.total_cash is exist - process it [11:31:53]requested_item shift.sale_refund.total is exist - process it [11:31:53]requested_item shift.sale_refund.total_cash is exist - process it [11:31:53]requested_item shift.buy.total is exist - process it [11:31:53]requested_item shift.buy.total_cash is exist - process it [11:31:53]produce_requested_data done [11:31:53]produce_requested_data return {"fm.sale.total":149694893.00,"fm.sale_refund.total":9962314.00,"fm.buy.total":0.00,"shift.sale.total":132482.00,"shift.sale.total_cash":76230.00,"shift.sale_refund.total":7900.00,"shift.sale_refund.total_cash":7900.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [11:31:53]process_action_free get_value [11:31:53]json_value_free [11:31:53]json_value_free done [11:31:53]process_json_proto returns [11:31:53]Send response to host [11:31:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":149694893.00,"fm.sale_refund.total":9962314.00,"fm.buy.total":0.00,"shift.sale.total":132482.00,"shift.sale.total_cash":76230.00,"shift.sale_refund.total":7900.00,"shift.sale_refund.total_cash":7900.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [11:31:53]free response buf [11:31:53]execute_script done [11:31:53]execute_script returns [11:31:53]free content buf [11:31:53]Sock 8.Close socket [11:31:53]Sock 8.Thread stoped [11:31:58]OFD Sender: No OFD packet to send [11:32:03]OFD Sender: No OFD packet to send [11:32:08]OFD Sender: No OFD packet to send [11:32:13]OFD Sender: No OFD packet to send [11:32:18]OFD Sender: No OFD packet to send [11:32:18]accept exits with 9 [11:32:18]New connection [11:32:18]New thread 3067194724 created [11:32:18]Thread 3067338084 joined [11:32:18]Waiting for new connection... [11:32:18] Sock 9.Parse request [11:32:18]Sock 9.Check first char [11:32:18]Sock 9.First char is OK [11:32:18]request: POST /json_proto HTTP/1.0 [11:32:18]Method: POST [11:32:18]URL: /json_proto [11:32:18]Method is POST - this is cgi request [11:32:18]url: /json_proto [11:32:18]query_string will be loaded in cgi processing [11:32:18]execute_cgi json_proto POST (null) [11:32:18]execute_cgi path=json_proto method=POST [11:32:18]POST find Content-Length [11:32:18]Host: 172.17.45.7:8080 [11:32:18]Content-Length: 215 [11:32:18]Content-Type: application/json [11:32:18] [11:32:18]POST finish read [11:32:18]Found Content-Length = 215 [11:32:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:18]execute_script... [11:32:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:18]POST & json_proto [11:32:18]process_json_proto [11:32:18]json parsed OK: [11:32:18]protocol is kg_v1.0 [11:32:18]action value=get_value [11:32:18]process_action get_value [11:32:18]cmd_get_value [11:32:18]process_action get_value done [11:32:18]requested_data is exist [11:32:18]produce_requested_data [11:32:18]requested_item kkm.sn is exist - process it [11:32:18]requested_item kkm.ver is exist - process it [11:32:18]requested_item fm.sn is exist - process it [11:32:18]wFMCommunicate request_size=4 [11:32:18]MH_SAM_APDU [11:32:18]CAPDU: 80 11 00 00 [11:32:18]Write to MH i2c: E2 08 00 82 23 80 11 00 00 00 00 00 00 1F [11:32:18]Write i2c OK [11:32:18]MH_I2C_Read... [11:32:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:18]Read from MH i2c: E2 [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: E2 17 00 [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: E2 17 00 82 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7A [11:32:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:32:18]wFMCommunicate OK [11:32:18]requested_item fd.num is exist - process it [11:32:18]SAM_PROTO_GetFieldsCounters [11:32:18]wFMCommunicate request_size=4 [11:32:18]MH_SAM_APDU [11:32:18]CAPDU: 80 13 00 00 [11:32:18]Write to MH i2c: E2 08 00 83 23 80 13 00 00 00 00 00 00 22 [11:32:18]Write i2c OK [11:32:18]MH_I2C_Read... [11:32:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:32:18]Read from MH i2c: E2 [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: E2 62 00 [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: E2 62 00 83 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 66 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [11:32:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 66 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:32:18]wFMCommunicate OK [11:32:18]SAM_PROTO_GetFieldsCounters done [11:32:18]requested_item shift.num is exist - process it [11:32:18]requested_item shift.opened is exist - process it [11:32:18]req_shift_opened [11:32:18]FM_GetShiftState [11:32:18]SAM_PROTO_GetShiftState [11:32:18]wFMCommunicate request_size=4 [11:32:18]MH_SAM_APDU [11:32:18]CAPDU: 80 13 01 00 [11:32:18]Write to MH i2c: E2 08 00 84 23 80 13 01 00 00 00 00 00 24 [11:32:18]Write i2c OK [11:32:18]MH_I2C_Read... [11:32:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:18]Read from MH i2c: E2 [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: E2 0E 00 [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: E2 0E 00 84 23 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 BC [11:32:18]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [11:32:18]wFMCommunicate OK [11:32:18]SAM_PROTO_GetShiftState done [11:32:18]FM_GetShiftState done [11:32:18]req_shift_opened done [11:32:18]requested_item shift.open_date is exist - process it [11:32:18]req_shift_open_date [11:32:18]req_shift_open_date done [11:32:18]produce_requested_data done [11:32:18]produce_requested_data return {"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":119398,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [11:32:18]process_action_free get_value [11:32:18]json_value_free [11:32:18]json_value_free done [11:32:18]process_json_proto returns [11:32:18]Send response to host [11:32:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":119398,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [11:32:18]free response buf [11:32:18]execute_script done [11:32:18]execute_script returns [11:32:18]free content buf [11:32:18]Sock 9.Close socket [11:32:18]Sock 9.Thread stoped [11:32:18]accept exits with 8 [11:32:18]New connection [11:32:18]New thread 3067338084 created [11:32:18]Thread 3067194724 joined [11:32:18]Waiting for new connection... [11:32:18] Sock 8.Parse request [11:32:18]Sock 8.Check first char [11:32:18]Sock 8.First char is OK [11:32:18]request: POST /json_proto HTTP/1.0 [11:32:18]Method: POST [11:32:18]URL: /json_proto [11:32:18]Method is POST - this is cgi request [11:32:18]url: /json_proto [11:32:18]query_string will be loaded in cgi processing [11:32:18]execute_cgi json_proto POST (null) [11:32:18]execute_cgi path=json_proto method=POST [11:32:18]POST find Content-Length [11:32:18]Host: 172.17.45.7:8080 [11:32:18]Content-Length: 331 [11:32:18]Content-Type: application/json [11:32:18] [11:32:18]POST finish read [11:32:18]Found Content-Length = 331 [11:32:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:32:18]execute_script... [11:32:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:32:19]POST & json_proto [11:32:19]process_json_proto [11:32:19]json parsed OK: [11:32:19]protocol is kg_v1.0 [11:32:19]action value=get_value [11:32:19]process_action get_value [11:32:19]cmd_get_value [11:32:19]process_action get_value done [11:32:19]requested_data is exist [11:32:19]produce_requested_data [11:32:19]requested_item fm.sale.total is exist - process it [11:32:19]SAM_PROTO_GetFMData [11:32:19]wFMCommunicate request_size=4 [11:32:19]MH_SAM_APDU [11:32:19]CAPDU: 80 13 03 00 [11:32:19]Write to MH i2c: E2 08 00 85 23 80 13 03 00 00 00 00 00 27 [11:32:19]Write i2c OK [11:32:19]MH_I2C_Read... [11:32:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:32:19]Read from MH i2c: E2 [11:32:19]MH_I2C_Read... [11:32:19]Read from MH i2c: E2 FD 00 [11:32:19]MH_I2C_Read... [11:32:19]Read from MH i2c: E2 FD 00 85 23 00 C5 04 85 04 C1 04 6E 04 04 00 FE CE 01 00 69 04 A3 00 6F 04 04 00 5D C1 01 00 B1 04 05 00 94 47 40 7C 03 70 04 05 00 C4 36 EE AA 02 72 04 04 00 D0 10 52 D1 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 25 E0 C6 5E 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 98 C6 E5 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 A1 0D 00 00 B1 04 04 00 E8 48 61 3B 70 04 04 00 E8 48 61 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 71 7C 4E 06 EF 03 09 90 00 62 [11:32:19]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 FE CE 01 00 69 04 A3 00 6F 04 04 00 5D C1 01 00 B1 04 05 00 94 47 40 7C 03 70 04 05 00 C4 36 EE AA 02 72 04 04 00 D0 10 52 D1 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 25 E0 C6 5E 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 98 C6 E5 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 A1 0D 00 00 B1 04 04 00 E8 48 61 3B 70 04 04 00 E8 48 61 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 71 7C 4E 06 EF 03 09 90 00 [11:32:19]wFMCommunicate OK [11:32:19]wFMCommunicate request_size=4 [11:32:19]MH_SAM_APDU [11:32:19]CAPDU: 80 17 00 00 [11:32:19]Write to MH i2c: E2 08 00 86 23 80 17 00 00 00 00 00 00 29 [11:32:19]Write i2c OK [11:32:19]MH_I2C_Read... [11:32:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:32:19]Read from MH i2c: E2 [11:32:19]MH_I2C_Read... [11:32:19]Read from MH i2c: E2 FD 00 [11:32:19]MH_I2C_Read... [11:32:19]Read from MH i2c: E2 FD 00 86 23 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7C 89 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 6A [11:32:19]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7C 89 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [11:32:19]wFMCommunicate OK [11:32:19]wFMCommunicate request_size=4 [11:32:19]MH_SAM_APDU [11:32:19]CAPDU: 80 17 00 00 [11:32:19]Write to MH i2c: E2 08 00 87 23 80 17 00 00 00 00 00 00 2A [11:32:19]Write i2c OK [11:32:19]MH_I2C_Read... [11:32:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:32:20]Read from MH i2c: E2 [11:32:20]MH_I2C_Read... [11:32:20]Read from MH i2c: E2 FD 00 [11:32:20]MH_I2C_Read... [11:32:20]Read from MH i2c: E2 FD 00 87 23 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 3C [11:32:20]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [11:32:20]wFMCommunicate OK [11:32:20]wFMCommunicate request_size=4 [11:32:20]MH_SAM_APDU [11:32:20]CAPDU: 80 17 00 00 [11:32:20]Write to MH i2c: E2 08 00 88 23 80 17 00 00 00 00 00 00 2B [11:32:20]Write i2c OK [11:32:20]MH_I2C_Read... [11:32:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:32:20]Read from MH i2c: E2 [11:32:20]MH_I2C_Read... [11:32:20]Read from MH i2c: E2 FD 00 [11:32:20]MH_I2C_Read... [11:32:20]Read from MH i2c: E2 FD 00 88 23 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 B7 [11:32:20]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [11:32:20]wFMCommunicate OK [11:32:20]wFMCommunicate request_size=4 [11:32:20]MH_SAM_APDU [11:32:20]CAPDU: 80 17 00 00 [11:32:20]Write to MH i2c: E2 08 00 89 23 80 17 00 00 00 00 00 00 2C [11:32:20]Write i2c OK [11:32:20]MH_I2C_Read... [11:32:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [11:32:20]Read from MH i2c: E2 [11:32:20]MH_I2C_Read... [11:32:20]Read from MH i2c: E2 E2 00 [11:32:20]MH_I2C_Read... [11:32:20]Read from MH i2c: E2 E2 00 89 23 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 0A [11:32:20]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:32:20]wFMCommunicate OK [11:32:20]SAM_PROTO_GetFMData done [11:32:20]requested_item fm.sale_refund.total is exist - process it [11:32:20]requested_item fm.buy.total is exist - process it [11:32:20]requested_item shift.sale.total is exist - process it [11:32:20]SAM_PROTO_GetShiftData [11:32:20]wFMCommunicate request_size=4 [11:32:20]MH_SAM_APDU [11:32:20]CAPDU: 80 13 02 00 [11:32:20]Write to MH i2c: E2 08 00 8A 23 80 13 02 00 00 00 00 00 2B [11:32:20]Write i2c OK [11:32:20]MH_I2C_Read... [11:32:21]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:32:21]Read from MH i2c: E2 [11:32:21]MH_I2C_Read... [11:32:21]Read from MH i2c: E2 FD 00 [11:32:21]MH_I2C_Read... [11:32:21]Read from MH i2c: E2 FD 00 8A 23 00 BA 04 AA 04 B6 04 6E 04 04 00 81 00 00 00 69 04 9C 00 6F 04 04 00 7D 00 00 00 B1 04 03 00 C8 26 CA 70 04 03 00 58 51 74 72 04 03 00 70 D5 55 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 3E 79 15 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 16 CA 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 F0 0D 0C 70 04 03 00 F0 0D 0C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BF 47 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 6E [11:32:21]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 81 00 00 00 69 04 9C 00 6F 04 04 00 7D 00 00 00 B1 04 03 00 C8 26 CA 70 04 03 00 58 51 74 72 04 03 00 70 D5 55 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 3E 79 15 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 16 CA 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 F0 0D 0C 70 04 03 00 F0 0D 0C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BF 47 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [11:32:21]wFMCommunicate OK [11:32:21]wFMCommunicate request_size=4 [11:32:21]MH_SAM_APDU [11:32:21]CAPDU: 80 17 00 00 [11:32:21]Write to MH i2c: E2 08 00 8B 23 80 17 00 00 00 00 00 00 2E [11:32:21]Write i2c OK [11:32:21]MH_I2C_Read... [11:32:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:32:21]Read from MH i2c: E2 [11:32:21]MH_I2C_Read... [11:32:21]Read from MH i2c: E2 FD 00 [11:32:21]MH_I2C_Read... [11:32:21]Read from MH i2c: E2 FD 00 8B 23 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 50 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 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 90 00 43 [11:32:21]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 50 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 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 90 00 [11:32:21]wFMCommunicate OK [11:32:21]wFMCommunicate request_size=4 [11:32:21]MH_SAM_APDU [11:32:21]CAPDU: 80 17 00 00 [11:32:21]Write to MH i2c: E2 08 00 8C 23 80 17 00 00 00 00 00 00 2F [11:32:21]Write i2c OK [11:32:21]MH_I2C_Read... [11:32:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:32:21]Read from MH i2c: E2 [11:32:21]MH_I2C_Read... [11:32:21]Read from MH i2c: E2 FD 00 [11:32:21]MH_I2C_Read... [11:32:21]Read from MH i2c: E2 FD 00 8C 23 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 5B [11:32:21]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [11:32:21]wFMCommunicate OK [11:32:21]wFMCommunicate request_size=4 [11:32:21]MH_SAM_APDU [11:32:21]CAPDU: 80 17 00 00 [11:32:21]Write to MH i2c: E2 08 00 8D 23 80 17 00 00 00 00 00 00 30 [11:32:21]Write i2c OK [11:32:21]MH_I2C_Read... [11:32:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:32:22]Read from MH i2c: E2 [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: E2 FD 00 [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: E2 FD 00 8D 23 00 00 EF 03 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 90 00 A8 [11:32:22]RAPDU: 00 EF 03 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 90 00 [11:32:22]wFMCommunicate OK [11:32:22]wFMCommunicate request_size=4 [11:32:22]MH_SAM_APDU [11:32:22]CAPDU: 80 17 00 00 [11:32:22]Write to MH i2c: E2 08 00 8E 23 80 17 00 00 00 00 00 00 31 [11:32:22]Write i2c OK [11:32:22]MH_I2C_Read... [11:32:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [11:32:22]Read from MH i2c: E2 [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: E2 D7 00 [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: E2 D7 00 8E 23 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 14 [11:32:22]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:32:22]wFMCommunicate OK [11:32:22]SAM_PROTO_GetShiftData done [11:32:22]requested_item shift.sale.total_cash is exist - process it [11:32:22]requested_item shift.sale_refund.total is exist - process it [11:32:22]requested_item shift.sale_refund.total_cash is exist - process it [11:32:22]requested_item shift.buy.total is exist - process it [11:32:22]requested_item shift.buy.total_cash is exist - process it [11:32:22]produce_requested_data done [11:32:22]produce_requested_data return {"fm.sale.total":149694893.00,"fm.sale_refund.total":9962314.00,"fm.buy.total":0.00,"shift.sale.total":132482.00,"shift.sale.total_cash":76230.00,"shift.sale_refund.total":7900.00,"shift.sale_refund.total_cash":7900.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [11:32:22]process_action_free get_value [11:32:22]json_value_free [11:32:22]json_value_free done [11:32:22]process_json_proto returns [11:32:22]Send response to host [11:32:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":149694893.00,"fm.sale_refund.total":9962314.00,"fm.buy.total":0.00,"shift.sale.total":132482.00,"shift.sale.total_cash":76230.00,"shift.sale_refund.total":7900.00,"shift.sale_refund.total_cash":7900.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [11:32:22]free response buf [11:32:22]execute_script done [11:32:22]execute_script returns [11:32:22]free content buf [11:32:22]Sock 8.Close socket [11:32:22]Sock 8.Thread stoped [11:32:22]accept exits with 9 [11:32:22]New connection [11:32:22]New thread 3067194724 created [11:32:22]Thread 3067338084 joined [11:32:22]Waiting for new connection... [11:32:22] Sock 9.Parse request [11:32:22]Sock 9.Check first char [11:32:22]Sock 9.First char is OK [11:32:22]request: POST /json_proto HTTP/1.0 [11:32:22]Method: POST [11:32:22]URL: /json_proto [11:32:22]Method is POST - this is cgi request [11:32:22]url: /json_proto [11:32:22]query_string will be loaded in cgi processing [11:32:22]execute_cgi json_proto POST (null) [11:32:22]execute_cgi path=json_proto method=POST [11:32:22]POST find Content-Length [11:32:22]Host: 172.17.45.7:8080 [11:32:22]Content-Length: 331 [11:32:22]Content-Type: application/json [11:32:22] [11:32:22]POST finish read [11:32:22]Found Content-Length = 331 [11:32:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:32:22]execute_script... [11:32:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:32:22]POST & json_proto [11:32:22]process_json_proto [11:32:22]json parsed OK: [11:32:22]protocol is kg_v1.0 [11:32:22]action value=get_value [11:32:22]process_action get_value [11:32:22]cmd_get_value [11:32:22]process_action get_value done [11:32:22]requested_data is exist [11:32:22]produce_requested_data [11:32:22]requested_item fm.sale.total is exist - process it [11:32:22]SAM_PROTO_GetFMData [11:32:22]wFMCommunicate request_size=4 [11:32:22]MH_SAM_APDU [11:32:22]CAPDU: 80 13 03 00 [11:32:22]Write to MH i2c: E2 08 00 8F 23 80 13 03 00 00 00 00 00 31 [11:32:22]Write i2c OK [11:32:22]MH_I2C_Read... [11:32:22]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:32:22]Read from MH i2c: E2 [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: E2 FD 00 [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: E2 FD 00 8F 23 00 C5 04 85 04 C1 04 6E 04 04 00 FE CE 01 00 69 04 A3 00 6F 04 04 00 5D C1 01 00 B1 04 05 00 94 47 40 7C 03 70 04 05 00 C4 36 EE AA 02 72 04 04 00 D0 10 52 D1 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 25 E0 C6 5E 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 98 C6 E5 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 A1 0D 00 00 B1 04 04 00 E8 48 61 3B 70 04 04 00 E8 48 61 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 71 7C 4E 06 EF 03 09 90 00 6C [11:32:22]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 FE CE 01 00 69 04 A3 00 6F 04 04 00 5D C1 01 00 B1 04 05 00 94 47 40 7C 03 70 04 05 00 C4 36 EE AA 02 72 04 04 00 D0 10 52 D1 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 25 E0 C6 5E 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 98 C6 E5 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 A1 0D 00 00 B1 04 04 00 E8 48 61 3B 70 04 04 00 E8 48 61 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 71 7C 4E 06 EF 03 09 90 00 [11:32:23]wFMCommunicate OK [11:32:23]wFMCommunicate request_size=4 [11:32:23]MH_SAM_APDU [11:32:23]CAPDU: 80 17 00 00 [11:32:23]Write to MH i2c: E2 08 00 90 23 80 17 00 00 00 00 00 00 33 [11:32:23]Write i2c OK [11:32:23]MH_I2C_Read... [11:32:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:32:23]Read from MH i2c: E2 [11:32:23]MH_I2C_Read... [11:32:23]Read from MH i2c: E2 FD 00 [11:32:23]MH_I2C_Read... [11:32:23]Read from MH i2c: E2 FD 00 90 23 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7C 89 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 74 [11:32:23]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7C 89 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [11:32:23]wFMCommunicate OK [11:32:23]wFMCommunicate request_size=4 [11:32:23]MH_SAM_APDU [11:32:23]CAPDU: 80 17 00 00 [11:32:23]Write to MH i2c: E2 08 00 91 23 80 17 00 00 00 00 00 00 34 [11:32:23]Write i2c OK [11:32:23]MH_I2C_Read... [11:32:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:32:23]Read from MH i2c: E2 [11:32:23]MH_I2C_Read... [11:32:23]Read from MH i2c: E2 FD 00 [11:32:23]MH_I2C_Read... [11:32:23]Read from MH i2c: E2 FD 00 91 23 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 46 [11:32:23]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [11:32:23]wFMCommunicate OK [11:32:23]wFMCommunicate request_size=4 [11:32:23]MH_SAM_APDU [11:32:23]CAPDU: 80 17 00 00 [11:32:23]Write to MH i2c: E2 08 00 92 23 80 17 00 00 00 00 00 00 35 [11:32:23]OFD Sender: No OFD packet to send [11:32:23]Write i2c OK [11:32:23]MH_I2C_Read... [11:32:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:32:24]Read from MH i2c: E2 [11:32:24]MH_I2C_Read... [11:32:24]Read from MH i2c: E2 FD 00 [11:32:24]MH_I2C_Read... [11:32:24]Read from MH i2c: E2 FD 00 92 23 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 C1 [11:32:24]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [11:32:24]wFMCommunicate OK [11:32:24]wFMCommunicate request_size=4 [11:32:24]MH_SAM_APDU [11:32:24]CAPDU: 80 17 00 00 [11:32:24]Write to MH i2c: E2 08 00 93 23 80 17 00 00 00 00 00 00 36 [11:32:24]Write i2c OK [11:32:24]MH_I2C_Read... [11:32:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [11:32:24]Read from MH i2c: E2 [11:32:24]MH_I2C_Read... [11:32:24]Read from MH i2c: E2 E2 00 [11:32:24]MH_I2C_Read... [11:32:24]Read from MH i2c: E2 E2 00 93 23 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 14 [11:32:24]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:32:24]wFMCommunicate OK [11:32:24]SAM_PROTO_GetFMData done [11:32:24]requested_item fm.sale_refund.total is exist - process it [11:32:24]requested_item fm.buy.total is exist - process it [11:32:24]requested_item shift.sale.total is exist - process it [11:32:24]SAM_PROTO_GetShiftData [11:32:24]wFMCommunicate request_size=4 [11:32:24]MH_SAM_APDU [11:32:24]CAPDU: 80 13 02 00 [11:32:24]Write to MH i2c: E2 08 00 94 23 80 13 02 00 00 00 00 00 35 [11:32:24]Write i2c OK [11:32:24]MH_I2C_Read... [11:32:24]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:32:24]Read from MH i2c: E2 [11:32:24]MH_I2C_Read... [11:32:24]Read from MH i2c: E2 FD 00 [11:32:24]MH_I2C_Read... [11:32:24]Read from MH i2c: E2 FD 00 94 23 00 BA 04 AA 04 B6 04 6E 04 04 00 81 00 00 00 69 04 9C 00 6F 04 04 00 7D 00 00 00 B1 04 03 00 C8 26 CA 70 04 03 00 58 51 74 72 04 03 00 70 D5 55 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 3E 79 15 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 16 CA 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 F0 0D 0C 70 04 03 00 F0 0D 0C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BF 47 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 78 [11:32:25]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 81 00 00 00 69 04 9C 00 6F 04 04 00 7D 00 00 00 B1 04 03 00 C8 26 CA 70 04 03 00 58 51 74 72 04 03 00 70 D5 55 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 3E 79 15 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 16 CA 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 F0 0D 0C 70 04 03 00 F0 0D 0C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BF 47 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [11:32:25]wFMCommunicate OK [11:32:25]wFMCommunicate request_size=4 [11:32:25]MH_SAM_APDU [11:32:25]CAPDU: 80 17 00 00 [11:32:25]Write to MH i2c: E2 08 00 95 23 80 17 00 00 00 00 00 00 38 [11:32:25]Write i2c OK [11:32:25]MH_I2C_Read... [11:32:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:32:25]Read from MH i2c: E2 [11:32:25]MH_I2C_Read... [11:32:25]Read from MH i2c: E2 FD 00 [11:32:25]MH_I2C_Read... [11:32:25]Read from MH i2c: E2 FD 00 95 23 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 50 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 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 90 00 4D [11:32:25]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 50 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 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 90 00 [11:32:25]wFMCommunicate OK [11:32:25]wFMCommunicate request_size=4 [11:32:25]MH_SAM_APDU [11:32:25]CAPDU: 80 17 00 00 [11:32:25]Write to MH i2c: E2 08 00 96 23 80 17 00 00 00 00 00 00 39 [11:32:25]Write i2c OK [11:32:25]MH_I2C_Read... [11:32:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:32:25]Read from MH i2c: E2 [11:32:25]MH_I2C_Read... [11:32:25]Read from MH i2c: E2 FD 00 [11:32:25]MH_I2C_Read... [11:32:25]Read from MH i2c: E2 FD 00 96 23 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 65 [11:32:25]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [11:32:25]wFMCommunicate OK [11:32:25]wFMCommunicate request_size=4 [11:32:25]MH_SAM_APDU [11:32:25]CAPDU: 80 17 00 00 [11:32:25]Write to MH i2c: E2 08 00 97 23 80 17 00 00 00 00 00 00 3A [11:32:26]Write i2c OK [11:32:26]MH_I2C_Read... [11:32:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:32:26]Read from MH i2c: E2 [11:32:26]MH_I2C_Read... [11:32:26]Read from MH i2c: E2 FD 00 [11:32:26]MH_I2C_Read... [11:32:26]Read from MH i2c: E2 FD 00 97 23 00 00 EF 03 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 90 00 B2 [11:32:26]RAPDU: 00 EF 03 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 90 00 [11:32:26]wFMCommunicate OK [11:32:26]wFMCommunicate request_size=4 [11:32:26]MH_SAM_APDU [11:32:26]CAPDU: 80 17 00 00 [11:32:26]Write to MH i2c: E2 08 00 98 23 80 17 00 00 00 00 00 00 3B [11:32:26]Write i2c OK [11:32:26]MH_I2C_Read... [11:32:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [11:32:26]Read from MH i2c: E2 [11:32:26]MH_I2C_Read... [11:32:26]Read from MH i2c: E2 D7 00 [11:32:26]MH_I2C_Read... [11:32:26]Read from MH i2c: E2 D7 00 98 23 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 1E [11:32:26]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:32:26]wFMCommunicate OK [11:32:26]SAM_PROTO_GetShiftData done [11:32:26]requested_item shift.sale.total_cash is exist - process it [11:32:26]requested_item shift.sale_refund.total is exist - process it [11:32:26]requested_item shift.sale_refund.total_cash is exist - process it [11:32:26]requested_item shift.buy.total is exist - process it [11:32:26]requested_item shift.buy.total_cash is exist - process it [11:32:26]produce_requested_data done [11:32:26]produce_requested_data return {"fm.sale.total":149694893.00,"fm.sale_refund.total":9962314.00,"fm.buy.total":0.00,"shift.sale.total":132482.00,"shift.sale.total_cash":76230.00,"shift.sale_refund.total":7900.00,"shift.sale_refund.total_cash":7900.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [11:32:26]process_action_free get_value [11:32:26]json_value_free [11:32:26]json_value_free done [11:32:26]process_json_proto returns [11:32:26]Send response to host [11:32:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":149694893.00,"fm.sale_refund.total":9962314.00,"fm.buy.total":0.00,"shift.sale.total":132482.00,"shift.sale.total_cash":76230.00,"shift.sale_refund.total":7900.00,"shift.sale_refund.total_cash":7900.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [11:32:26]free response buf [11:32:26]execute_script done [11:32:26]execute_script returns [11:32:26]free content buf [11:32:26]Sock 9.Close socket [11:32:26]Sock 9.Thread stoped [11:32:26]accept exits with 8 [11:32:26]New connection [11:32:26]New thread 3067338084 created [11:32:26]Thread 3067194724 joined [11:32:26]Waiting for new connection... [11:32:26] Sock 8.Parse request [11:32:26]Sock 8.Check first char [11:32:26]Sock 8.First char is OK [11:32:26]request: POST /json_proto HTTP/1.0 [11:32:26]Method: POST [11:32:26]URL: /json_proto [11:32:26]Method is POST - this is cgi request [11:32:26]url: /json_proto [11:32:26]query_string will be loaded in cgi processing [11:32:26]execute_cgi json_proto POST (null) [11:32:26]execute_cgi path=json_proto method=POST [11:32:26]POST find Content-Length [11:32:26]Host: 172.17.45.7:8080 [11:32:26]Content-Length: 251 [11:32:26]Content-Type: application/json [11:32:26] [11:32:26]POST finish read [11:32:26]Found Content-Length = 251 [11:32:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:26]execute_script... [11:32:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:26]POST & json_proto [11:32:26]process_json_proto [11:32:26]json parsed OK: [11:32:26]protocol is kg_v1.0 [11:32:26]action value=x_report [11:32:26]process_action x_report [11:32:26]cmd_x_report [11:32:26]MH_GetDate [11:32:26]Write to MH i2c: F0 00 00 99 23 AB [11:32:26]Write i2c OK [11:32:26]MH_I2C_Read... [11:32:26]Read from MH i2c: F0 [11:32:26]MH_I2C_Read... [11:32:26]Read from MH i2c: F0 09 00 [11:32:26]MH_I2C_Read... [11:32:26]Read from MH i2c: F0 09 00 99 23 00 CD 20 AA 66 90 0F 3E 66 F4 [11:32:26]GetLastDocTimeStamp 1722425373 [11:32:26]current date 1722425549 [11:32:26]FM_GetShiftState [11:32:26]SAM_PROTO_GetShiftState [11:32:26]wFMCommunicate request_size=4 [11:32:26]MH_SAM_APDU [11:32:26]CAPDU: 80 13 01 00 [11:32:26]Write to MH i2c: E2 08 00 9A 23 80 13 01 00 00 00 00 00 3A [11:32:26]Write i2c OK [11:32:26]MH_I2C_Read... [11:32:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:26]Read from MH i2c: E2 [11:32:26]MH_I2C_Read... [11:32:26]Read from MH i2c: E2 0E 00 [11:32:26]MH_I2C_Read... [11:32:26]Read from MH i2c: E2 0E 00 9A 23 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 D2 [11:32:26]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [11:32:26]wFMCommunicate OK [11:32:26]SAM_PROTO_GetShiftState done [11:32:26]FM_GetShiftState done [11:32:26]KKMCreateXReportDocument [11:32:26]Load OK [11:32:26]Malloc new data [11:32:26]MH_GetDate [11:32:26]Write to MH i2c: F0 00 00 9B 23 AD [11:32:26]Write i2c OK [11:32:26]MH_I2C_Read... [11:32:26]Read from MH i2c: F0 [11:32:26]MH_I2C_Read... [11:32:26]Read from MH i2c: F0 09 00 [11:32:26]MH_I2C_Read... [11:32:26]Read from MH i2c: F0 09 00 9B 23 00 CD 20 AA 66 90 0F 3E 66 F6 [11:32:26]Malloc new data [11:32:26]Malloc new data [11:32:26]wFMCommunicate request_size=4 [11:32:26]MH_SAM_APDU [11:32:26]CAPDU: 80 11 00 00 [11:32:26]Write to MH i2c: E2 08 00 9C 23 80 11 00 00 00 00 00 00 39 [11:32:27]Write i2c OK [11:32:27]MH_I2C_Read... [11:32:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:27]Read from MH i2c: E2 [11:32:27]MH_I2C_Read... [11:32:27]Read from MH i2c: E2 17 00 [11:32:27]MH_I2C_Read... [11:32:27]Read from MH i2c: E2 17 00 9C 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 94 [11:32:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:32:27]wFMCommunicate OK [11:32:27]SAM_PROTO_GetFieldsCounters [11:32:27]wFMCommunicate request_size=4 [11:32:27]MH_SAM_APDU [11:32:27]CAPDU: 80 13 00 00 [11:32:27]Write to MH i2c: E2 08 00 9D 23 80 13 00 00 00 00 00 00 3C [11:32:27]Write i2c OK [11:32:27]MH_I2C_Read... [11:32:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:32:27]Read from MH i2c: E2 [11:32:27]MH_I2C_Read... [11:32:27]Read from MH i2c: E2 62 00 [11:32:27]MH_I2C_Read... [11:32:27]Read from MH i2c: E2 62 00 9D 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 66 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [11:32: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 66 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:32:27]wFMCommunicate OK [11:32:27]SAM_PROTO_GetFieldsCounters done [11:32:27]Malloc new data [11:32:27]Malloc new data [11:32:27]Malloc new data [11:32:27]KKMCreateXReportDocument OK [11:32:27]KKMSetXReportData OK [11:32:27]KKMPrepareXReportFMData [11:32:27]SAM_PROTO_GetShiftData [11:32:27]wFMCommunicate request_size=4 [11:32:27]MH_SAM_APDU [11:32:27]CAPDU: 80 13 02 00 [11:32:27]Write to MH i2c: E2 08 00 9E 23 80 13 02 00 00 00 00 00 3F [11:32:27]Write i2c OK [11:32:27]MH_I2C_Read... [11:32:27]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:32:27]Read from MH i2c: E2 [11:32:27]MH_I2C_Read... [11:32:27]Read from MH i2c: E2 FD 00 [11:32:27]MH_I2C_Read... [11:32:27]Read from MH i2c: E2 FD 00 9E 23 00 BA 04 AA 04 B6 04 6E 04 04 00 81 00 00 00 69 04 9C 00 6F 04 04 00 7D 00 00 00 B1 04 03 00 C8 26 CA 70 04 03 00 58 51 74 72 04 03 00 70 D5 55 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 3E 79 15 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 16 CA 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 F0 0D 0C 70 04 03 00 F0 0D 0C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BF 47 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 82 [11:32:27]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 81 00 00 00 69 04 9C 00 6F 04 04 00 7D 00 00 00 B1 04 03 00 C8 26 CA 70 04 03 00 58 51 74 72 04 03 00 70 D5 55 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 3E 79 15 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 16 CA 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 F0 0D 0C 70 04 03 00 F0 0D 0C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BF 47 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [11:32:28]wFMCommunicate OK [11:32:28]wFMCommunicate request_size=4 [11:32:28]MH_SAM_APDU [11:32:28]CAPDU: 80 17 00 00 [11:32:28]Write to MH i2c: E2 08 00 9F 23 80 17 00 00 00 00 00 00 42 [11:32:28]Write i2c OK [11:32:28]MH_I2C_Read... [11:32:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:32:28]Read from MH i2c: E2 [11:32:28]MH_I2C_Read... [11:32:28]Read from MH i2c: E2 FD 00 [11:32:28]MH_I2C_Read... [11:32:28]Read from MH i2c: E2 FD 00 9F 23 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 50 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 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 90 00 57 [11:32:28]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 50 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 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 90 00 [11:32:28]wFMCommunicate OK [11:32:28]wFMCommunicate request_size=4 [11:32:28]MH_SAM_APDU [11:32:28]CAPDU: 80 17 00 00 [11:32:28]Write to MH i2c: E2 08 00 A0 23 80 17 00 00 00 00 00 00 43 [11:32:28]Write i2c OK [11:32:28]MH_I2C_Read... [11:32:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:32:28]Read from MH i2c: E2 [11:32:28]MH_I2C_Read... [11:32:28]Read from MH i2c: E2 FD 00 [11:32:28]MH_I2C_Read... [11:32:28]Read from MH i2c: E2 FD 00 A0 23 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 6F [11:32:28]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 OFD Sender: No OFD packet to send [11:32:28]F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [11:32:28]wFMCommunicate OK [11:32:28]wFMCommunicate request_size=4 [11:32:28]MH_SAM_APDU [11:32:29]CAPDU: 80 17 00 00 [11:32:29]Write to MH i2c: E2 08 00 A1 23 80 17 00 00 00 00 00 00 44 [11:32:29]Write i2c OK [11:32:29]MH_I2C_Read... [11:32:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:32:29]Read from MH i2c: E2 [11:32:29]MH_I2C_Read... [11:32:29]Read from MH i2c: E2 FD 00 [11:32:29]MH_I2C_Read... [11:32:29]Read from MH i2c: E2 FD 00 A1 23 00 00 EF 03 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 90 00 BC [11:32:29]RAPDU: 00 EF 03 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 90 00 [11:32:29]wFMCommunicate OK [11:32:29]wFMCommunicate request_size=4 [11:32:29]MH_SAM_APDU [11:32:29]CAPDU: 80 17 00 00 [11:32:29]Write to MH i2c: E2 08 00 A2 23 80 17 00 00 00 00 00 00 45 [11:32:29]Write i2c OK [11:32:29]MH_I2C_Read... [11:32:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [11:32:29]Read from MH i2c: E2 [11:32:29]MH_I2C_Read... [11:32:29]Read from MH i2c: E2 D7 00 [11:32:29]MH_I2C_Read... [11:32:29]Read from MH i2c: E2 D7 00 A2 23 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 28 [11:32:29]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:32:29]wFMCommunicate OK [11:32:29]SAM_PROTO_GetShiftData done [11:32:29]1194 (1206) - счетчики итогов смены [11:32:29] 1134 (4) - 129 - количество чеков со всеми признаками расчетов [11:32:29] 1129 (156) - счетчики операций «приход» [11:32:29] 1135 (4) - 125 - количество чеков по признаку расчетов [11:32:29] 1201 (3) - 132482.00 - общая итоговая сумма в чеках [11:32:29] 1136 (3) - 76230.00 - итоговая сумма в чеках наличными [11:32:29] 1138 (3) - 56252.00 - итоговая сумма в чеках безналичными [11:32:29] 1024 (123) - суммы налогов [11:32:29] 1006 (9) - суммы НДС [11:32:29] 1010 (1) - 0% - код ставки НДС [11:32:29] 1011 (0) - 0.00 - сумма НДС по ставке [11:32:29] 1006 (12) - суммы НДС [11:32:29] 1010 (1) - 12% - код ставки НДС [11:32:29] 1011 (3) - 14072.94 - сумма НДС по ставке [11:32:29] 1007 (9) - суммы НСП [11:32:29] 1014 (1) - 0% - код ставки НСП [11:32:29] 1015 (0) - 0.00 - сумма НСП по ставке [11:32:29] 1007 (12) - суммы НСП [11:32:29] 1014 (1) - 1% - код ставки НСП [11:32:29] 1015 (3) - 1172.70 - сумма НСП по ставке [11:32:29] 1007 (9) - суммы НСП [11:32:29] 1014 (1) - 2% - код ставки НСП [11:32:29] 1015 (0) - 0.00 - сумма НСП по ставке [11:32:29] 1007 (9) - суммы НСП [11:32:29] 1014 (1) - 3% - код ставки НСП [11:32:29] 1015 (0) - 0.00 - сумма НСП по ставке [11:32:29] 1007 (9) - суммы НСП [11:32:29] 1014 (1) - 5% - код ставки НСП [11:32:29] 1015 (0) - 0.00 - сумма НСП по ставке [11:32:29] 1007 (9) - суммы НСП [11:32:29] 1014 (1) - 0,50% - код ставки НСП [11:32:29] 1015 (0) - 0.00 - сумма НСП по ставке [11:32:29] 1007 (9) - суммы НСП [11:32:29] 1014 (1) - 1,50% - код ставки НСП [11:32:29] 1015 (0) - 0.00 - сумма НСП по ставке [11:32:29] 1130 (152) - счетчики операций «возврат прихода» [11:32:29] 1135 (4) - 4 - количество чеков по признаку расчетов [11:32:29] 1201 (3) - 7900.00 - общая итоговая сумма в чеках [11:32:29] 1136 (3) - 7900.00 - итоговая сумма в чеках наличными [11:32:29] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [11:32:29] 1024 (122) - суммы налогов [11:32:29] 1006 (9) - суммы НДС [11:32:29] 1010 (1) - 0% - код ставки НДС [11:32:29] 1011 (0) - 0.00 - сумма НДС по ставке [11:32:29] 1006 (12) - суммы НДС [11:32:29] 1010 (1) - 12% - код ставки НДС [11:32:29] 1011 (3) - 839.03 - сумма НДС по ставке [11:32:29] 1007 (9) - суммы НСП [11:32:29] 1014 (1) - 0% - код ставки НСП [11:32:29] 1015 (0) - 0.00 - сумма НСП по ставке [11:32:29] 1007 (11) - суммы НСП [11:32:29] 1014 (1) - 1% - код ставки НСП [11:32:29] 1015 (2) - 69.92 - сумма НСП по ставке [11:32:29] 1007 (9) - суммы НСП [11:32:29] 1014 (1) - 2% - код ставки НСП [11:32:29] 1015 (0) - 0.00 - сумма НСП по ставке [11:32:30] 1007 (9) - суммы НСП [11:32:30] 1014 (1) - 3% - код ставки НСП [11:32:30] 1015 (0) - 0.00 - сумма НСП по ставке [11:32:30] 1007 (9) - суммы НСП [11:32:30] 1014 (1) - 5% - код ставки НСП [11:32:30] 1015 (0) - 0.00 - сумма НСП по ставке [11:32:30] 1007 (9) - суммы НСП [11:32:30] 1014 (1) - 0,50% - код ставки НСП [11:32:30] 1015 (0) - 0.00 - сумма НСП по ставке [11:32:30] 1007 (9) - суммы НСП [11:32:30] 1014 (1) - 1,50% - код ставки НСП [11:32:30] 1015 (0) - 0.00 - сумма НСП по ставке [11:32:30] 1131 (141) - счетчики операций «расход» [11:32:30] 1135 (4) - 0 - количество чеков по признаку расчетов [11:32:30] 1201 (0) - 0.00 - общая итоговая сумма в чеках [11:32:30] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [11:32:30] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [11:32:30] 1024 (117) - суммы налогов [11:32:30] 1006 (9) - суммы НДС [11:32:30] 1010 (1) - 0% - код ставки НДС [11:32:30] 1011 (0) - 0.00 - сумма НДС по ставке [11:32:30] 1006 (9) - суммы НДС [11:32:30] 1010 (1) - 12% - код ставки НДС [11:32:30] 1011 (0) - 0.00 - сумма НДС по ставке [11:32:30] 1007 (9) - суммы НСП [11:32:30] 1014 (1) - 0% - код ставки НСП [11:32:30] 1015 (0) - 0.00 - сумма НСП по ставке [11:32:30] 1007 (9) - суммы НСП [11:32:30] 1014 (1) - 1% - код ставки НСП [11:32:30] 1015 (0) - 0.00 - сумма НСП по ставке [11:32:30] 1007 (9) - суммы НСП [11:32:30] 1014 (1) - 2% - код ставки НСП [11:32:30] 1015 (0) - 0.00 - сумма НСП по ставке [11:32:30] 1007 (9) - суммы НСП [11:32:30] 1014 (1) - 3% - код ставки НСП [11:32:30] 1015 (0) - 0.00 - сумма НСП по ставке [11:32:30] 1007 (9) - суммы НСП [11:32:30] 1014 (1) - 5% - код ставки НСП [11:32:30] 1015 (0) - 0.00 - сумма НСП по ставке [11:32:30] 1007 (9) - суммы НСП [11:32:30] 1014 (1) - 0,50% - код ставки НСП [11:32:30] 1015 (0) - 0.00 - сумма НСП по ставке [11:32:30] 1007 (9) - суммы НСП [11:32:30] 1014 (1) - 1,50% - код ставки НСП [11:32:30] 1015 (0) - 0.00 - сумма НСП по ставке [11:32:30] 1132 (141) - счетчики операций «возврат расхода» [11:32:30] 1135 (4) - 0 - количество чеков по признаку расчетов [11:32:30] 1201 (0) - 0.00 - общая итоговая сумма в чеках [11:32:30] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [11:32:30] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [11:32:30] 1024 (117) - суммы налогов [11:32:30] 1006 (9) - суммы НДС [11:32:30] 1010 (1) - 0% - код ставки НДС [11:32:30] 1011 (0) - 0.00 - сумма НДС по ставке [11:32:30] 1006 (9) - суммы НДС [11:32:30] 1010 (1) - 12% - код ставки НДС [11:32:30] 1011 (0) - 0.00 - сумма НДС по ставке [11:32:30] 1007 (9) - суммы НСП [11:32:30] 1014 (1) - 0% - код ставки НСП [11:32:30] 1015 (0) - 0.00 - сумма НСП по ставке [11:32:30] 1007 (9) - суммы НСП [11:32:30] 1014 (1) - 1% - код ставки НСП [11:32:30] 1015 (0) - 0.00 - сумма НСП по ставке [11:32:30] 1007 (9) - суммы НСП [11:32:30] 1014 (1) - 2% - код ставки НСП [11:32:30] 1015 (0) - 0.00 - сумма НСП по ставке [11:32:30] 1007 (9) - суммы НСП [11:32:30] 1014 (1) - 3% - код ставки НСП [11:32:30] 1015 (0) - 0.00 - сумма НСП по ставке [11:32:30] 1007 (9) - суммы НСП [11:32:30] 1014 (1) - 5% - код ставки НСП [11:32:30] 1015 (0) - 0.00 - сумма НСП по ставке [11:32:30] 1007 (9) - суммы НСП [11:32:30] 1014 (1) - 0,50% - код ставки НСП [11:32:30] 1015 (0) - 0.00 - сумма НСП по ставке [11:32:30] 1007 (9) - суммы НСП [11:32:30] 1014 (1) - 1,50% - код ставки НСП [11:32:30] 1015 (0) - 0.00 - сумма НСП по ставке [11:32:30] 1133 (588) - - счетчики коррекции - не используются [11:32:30]SetTLVBufToDocument [11:32:30]Processing tag 1194 (04AA) [11:32:30]Load OK [11:32:30]SetTLVBufToDocument [11:32:30]Processing tag 1134 (046E) [11:32:30]Malloc new data [11:32:30]Processing tag 1129 (0469) [11:32:30]Load OK [11:32:30]SetTLVBufToDocument [11:32:30]Processing tag 1135 (046F) [11:32:30]Malloc new data [11:32:30]Processing tag 1201 (04B1) [11:32:30]Malloc new data [11:32:30]Processing tag 1136 (0470) [11:32:30]Malloc new data [11:32:30]Processing tag 1138 (0472) [11:32:30]Malloc new data [11:32:30]Processing tag 1024 (0400) [11:32:30]Load OK [11:32:30]SetTLVBufToDocument [11:32:30]Processing tag 1006 (03EE) [11:32:30]Load OK [11:32:30]SetTLVBufToDocument [11:32:30]Processing tag 1010 (03F2) [11:32:30]Malloc new data [11:32:30]Processing tag 1011 (03F3) [11:32:30]Malloc new data [11:32:30]SetTLVBufToDocument err=0 [11:32:30]Processing tag 1006 (03EE) [11:32:30]Load OK [11:32:30]SetTLVBufToDocument [11:32:30]Processing tag 1010 (03F2) [11:32:30]Malloc new data [11:32:30]Processing tag 1011 (03F3) [11:32:30]Malloc new data [11:32:30]SetTLVBufToDocument err=0 [11:32:30]Processing tag 1007 (03EF) [11:32:30]Load OK [11:32:30]SetTLVBufToDocument [11:32:30]Processing tag 1014 (03F6) [11:32:30]Malloc new data [11:32:30]Processing tag 1015 (03F7) [11:32:30]Malloc new data [11:32:30]SetTLVBufToDocument err=0 [11:32:30]Processing tag 1007 (03EF) [11:32:30]Load OK [11:32:30]SetTLVBufToDocument [11:32:30]Processing tag 1014 (03F6) [11:32:30]Malloc new data [11:32:30]Processing tag 1015 (03F7) [11:32:30]Malloc new data [11:32:30]SetTLVBufToDocument err=0 [11:32:30]Processing tag 1007 (03EF) [11:32:30]Load OK [11:32:30]SetTLVBufToDocument [11:32:30]Processing tag 1014 (03F6) [11:32:30]Malloc new data [11:32:30]Processing tag 1015 (03F7) [11:32:30]Malloc new data [11:32:30]SetTLVBufToDocument err=0 [11:32:30]Processing tag 1007 (03EF) [11:32:30]Load OK [11:32:30]SetTLVBufToDocument [11:32:30]Processing tag 1014 (03F6) [11:32:30]Malloc new data [11:32:30]Processing tag 1015 (03F7) [11:32:30]Malloc new data [11:32:30]SetTLVBufToDocument err=0 [11:32:30]Processing tag 1007 (03EF) [11:32:30]Load OK [11:32:30]SetTLVBufToDocument [11:32:30]Processing tag 1014 (03F6) [11:32:30]Malloc new data [11:32:30]Processing tag 1015 (03F7) [11:32:30]Malloc new data [11:32:30]SetTLVBufToDocument err=0 [11:32:30]Processing tag 1007 (03EF) [11:32:30]Load OK [11:32:30]SetTLVBufToDocument [11:32:30]Processing tag 1014 (03F6) [11:32:30]Malloc new data [11:32:30]Processing tag 1015 (03F7) [11:32:30]Malloc new data [11:32:30]SetTLVBufToDocument err=0 [11:32:30]Processing tag 1007 (03EF) [11:32:30]Load OK [11:32:30]SetTLVBufToDocument [11:32:30]Processing tag 1014 (03F6) [11:32:30]Malloc new data [11:32:30]Processing tag 1015 (03F7) [11:32:30]Malloc new data [11:32:30]SetTLVBufToDocument err=0 [11:32:30]SetTLVBufToDocument err=0 [11:32:30]SetTLVBufToDocument err=0 [11:32:30]Processing tag 1130 (046A) [11:32:30]Load OK [11:32:30]SetTLVBufToDocument [11:32:30]Processing tag 1135 (046F) [11:32:30]Malloc new data [11:32:30]Processing tag 1201 (04B1) [11:32:30]Malloc new data [11:32:30]Processing tag 1136 (0470) [11:32:30]Malloc new data [11:32:30]Processing tag 1138 (0472) [11:32:30]Malloc new data [11:32:30]Processing tag 1024 (0400) [11:32:30]Load OK [11:32:30]SetTLVBufToDocument [11:32:30]Processing tag 1006 (03EE) [11:32:30]Load OK [11:32:30]SetTLVBufToDocument [11:32:30]Processing tag 1010 (03F2) [11:32:30]Malloc new data [11:32:30]Processing tag 1011 (03F3) [11:32:30]Malloc new data [11:32:30]SetTLVBufToDocument err=0 [11:32:30]Processing tag 1006 (03EE) [11:32:30]Load OK [11:32:30]SetTLVBufToDocument [11:32:30]Processing tag 1010 (03F2) [11:32:30]Malloc new data [11:32:30]Processing tag 1011 (03F3) [11:32:30]Malloc new data [11:32:30]SetTLVBufToDocument err=0 [11:32:30]Processing tag 1007 (03EF) [11:32:30]Load OK [11:32:30]SetTLVBufToDocument [11:32:30]Processing tag 1014 (03F6) [11:32:30]Malloc new data [11:32:30]Processing tag 1015 (03F7) [11:32:30]Malloc new data [11:32:30]SetTLVBufToDocument err=0 [11:32:30]Processing tag 1007 (03EF) [11:32:30]Load OK [11:32:30]SetTLVBufToDocument [11:32:30]Processing tag 1014 (03F6) [11:32:30]Malloc new data [11:32:30]Processing tag 1015 (03F7) [11:32:30]Malloc new data [11:32:30]SetTLVBufToDocument err=0 [11:32:30]Processing tag 1007 (03EF) [11:32:30]Load OK [11:32:30]SetTLVBufToDocument [11:32:30]Processing tag 1014 (03F6) [11:32:30]Malloc new data [11:32:30]Processing tag 1015 (03F7) [11:32:30]Malloc new data [11:32:30]SetTLVBufToDocument err=0 [11:32:30]Processing tag 1007 (03EF) [11:32:30]Load OK [11:32:30]SetTLVBufToDocument [11:32:30]Processing tag 1014 (03F6) [11:32:30]Malloc new data [11:32:30]Processing tag 1015 (03F7) [11:32:30]Malloc new data [11:32:30]SetTLVBufToDocument err=0 [11:32:30]Processing tag 1007 (03EF) [11:32:30]Load OK [11:32:30]SetTLVBufToDocument [11:32:30]Processing tag 1014 (03F6) [11:32:30]Malloc new data [11:32:30]Processing tag 1015 (03F7) [11:32:30]Malloc new data [11:32:30]SetTLVBufToDocument err=0 [11:32:30]Processing tag 1007 (03EF) [11:32:30]Load OK [11:32:30]SetTLVBufToDocument [11:32:30]Processing tag 1014 (03F6) [11:32:30]Malloc new data [11:32:30]Processing tag 1015 (03F7) [11:32:30]Malloc new data [11:32:30]SetTLVBufToDocument err=0 [11:32:30]Processing tag 1007 (03EF) [11:32:30]Load OK [11:32:30]SetTLVBufToDocument [11:32:30]Processing tag 1014 (03F6) [11:32:30]Malloc new data [11:32:30]Processing tag 1015 (03F7) [11:32:30]Malloc new data [11:32:30]SetTLVBufToDocument err=0 [11:32:30]SetTLVBufToDocument err=0 [11:32:30]SetTLVBufToDocument err=0 [11:32:30]Processing tag 1131 (046B) [11:32:30]Load OK [11:32:30]SetTLVBufToDocument [11:32:30]Processing tag 1135 (046F) [11:32:30]Malloc new data [11:32:30]Processing tag 1201 (04B1) [11:32:30]Malloc new data [11:32:30]Processing tag 1136 (0470) [11:32:30]Malloc new data [11:32:30]Processing tag 1138 (0472) [11:32:30]Malloc new data [11:32:30]Processing tag 1024 (0400) [11:32:30]Load OK [11:32:30]SetTLVBufToDocument [11:32:30]Processing tag 1006 (03EE) [11:32:30]Load OK [11:32:30]SetTLVBufToDocument [11:32:30]Processing tag 1010 (03F2) [11:32:30]Malloc new data [11:32:30]Processing tag 1011 (03F3) [11:32:30]Malloc new data [11:32:30]SetTLVBufToDocument err=0 [11:32:30]Processing tag 1006 (03EE) [11:32:30]Load OK [11:32:30]SetTLVBufToDocument [11:32:30]Processing tag 1010 (03F2) [11:32:30]Malloc new data [11:32:30]Processing tag 1011 (03F3) [11:32:30]Malloc new data [11:32:30]SetTLVBufToDocument err=0 [11:32:30]Processing tag 1007 (03EF) [11:32:30]Load OK [11:32:30]SetTLVBufToDocument [11:32:30]Processing tag 1014 (03F6) [11:32:30]Malloc new data [11:32:30]Processing tag 1015 (03F7) [11:32:30]Malloc new data [11:32:30]SetTLVBufToDocument err=0 [11:32:30]Processing tag 1007 (03EF) [11:32:30]Load OK [11:32:30]SetTLVBufToDocument [11:32:30]Processing tag 1014 (03F6) [11:32:30]Malloc new data [11:32:30]Processing tag 1015 (03F7) [11:32:30]Malloc new data [11:32:30]SetTLVBufToDocument err=0 [11:32:30]Processing tag 1007 (03EF) [11:32:30]Load OK [11:32:30]SetTLVBufToDocument [11:32:30]Processing tag 1014 (03F6) [11:32:30]Malloc new data [11:32:30]Processing tag 1015 (03F7) [11:32:30]Malloc new data [11:32:30]SetTLVBufToDocument err=0 [11:32:30]Processing tag 1007 (03EF) [11:32:30]Load OK [11:32:30]SetTLVBufToDocument [11:32:30]Processing tag 1014 (03F6) [11:32:30]Malloc new data [11:32:30]Processing tag 1015 (03F7) [11:32:30]Malloc new data [11:32:30]SetTLVBufToDocument err=0 [11:32:30]Processing tag 1007 (03EF) [11:32:30]Load OK [11:32:30]SetTLVBufToDocument [11:32:30]Processing tag 1014 (03F6) [11:32:30]Malloc new data [11:32:30]Processing tag 1015 (03F7) [11:32:30]Malloc new data [11:32:30]SetTLVBufToDocument err=0 [11:32:30]Processing tag 1007 (03EF) [11:32:30]Load OK [11:32:30]SetTLVBufToDocument [11:32:30]Processing tag 1014 (03F6) [11:32:30]Malloc new data [11:32:30]Processing tag 1015 (03F7) [11:32:30]Malloc new data [11:32:30]SetTLVBufToDocument err=0 [11:32:30]Processing tag 1007 (03EF) [11:32:30]Load OK [11:32:30]SetTLVBufToDocument [11:32:30]Processing tag 1014 (03F6) [11:32:30]Malloc new data [11:32:30]Processing tag 1015 (03F7) [11:32:30]Malloc new data [11:32:30]SetTLVBufToDocument err=0 [11:32:30]SetTLVBufToDocument err=0 [11:32:30]SetTLVBufToDocument err=0 [11:32:30]Processing tag 1132 (046C) [11:32:30]Load OK [11:32:30]SetTLVBufToDocument [11:32:30]Processing tag 1135 (046F) [11:32:30]Malloc new data [11:32:30]Processing tag 1201 (04B1) [11:32:30]Malloc new data [11:32:30]Processing tag 1136 (0470) [11:32:30]Malloc new data [11:32:30]Processing tag 1138 (0472) [11:32:30]Malloc new data [11:32:30]Processing tag 1024 (0400) [11:32:30]Load OK [11:32:30]SetTLVBufToDocument [11:32:30]Processing tag 1006 (03EE) [11:32:30]Load OK [11:32:30]SetTLVBufToDocument [11:32:30]Processing tag 1010 (03F2) [11:32:30]Malloc new data [11:32:30]Processing tag 1011 (03F3) [11:32:31]Malloc new data [11:32:31]SetTLVBufToDocument err=0 [11:32:31]Processing tag 1006 (03EE) [11:32:31]Load OK [11:32:31]SetTLVBufToDocument [11:32:31]Processing tag 1010 (03F2) [11:32:31]Malloc new data [11:32:31]Processing tag 1011 (03F3) [11:32:31]Malloc new data [11:32:31]SetTLVBufToDocument err=0 [11:32:31]Processing tag 1007 (03EF) [11:32:31]Load OK [11:32:31]SetTLVBufToDocument [11:32:31]Processing tag 1014 (03F6) [11:32:31]Malloc new data [11:32:31]Processing tag 1015 (03F7) [11:32:31]Malloc new data [11:32:31]SetTLVBufToDocument err=0 [11:32:31]Processing tag 1007 (03EF) [11:32:31]Load OK [11:32:31]SetTLVBufToDocument [11:32:31]Processing tag 1014 (03F6) [11:32:31]Malloc new data [11:32:31]Processing tag 1015 (03F7) [11:32:31]Malloc new data [11:32:31]SetTLVBufToDocument err=0 [11:32:31]Processing tag 1007 (03EF) [11:32:31]Load OK [11:32:31]SetTLVBufToDocument [11:32:31]Processing tag 1014 (03F6) [11:32:31]Malloc new data [11:32:31]Processing tag 1015 (03F7) [11:32:31]Malloc new data [11:32:31]SetTLVBufToDocument err=0 [11:32:31]Processing tag 1007 (03EF) [11:32:31]Load OK [11:32:31]SetTLVBufToDocument [11:32:31]Processing tag 1014 (03F6) [11:32:31]Malloc new data [11:32:31]Processing tag 1015 (03F7) [11:32:31]Malloc new data [11:32:31]SetTLVBufToDocument err=0 [11:32:31]Processing tag 1007 (03EF) [11:32:31]Load OK [11:32:31]SetTLVBufToDocument [11:32:31]Processing tag 1014 (03F6) [11:32:31]Malloc new data [11:32:31]Processing tag 1015 (03F7) [11:32:31]Malloc new data [11:32:31]SetTLVBufToDocument err=0 [11:32:31]Processing tag 1007 (03EF) [11:32:31]Load OK [11:32:31]SetTLVBufToDocument [11:32:31]Processing tag 1014 (03F6) [11:32:31]Malloc new data [11:32:31]Processing tag 1015 (03F7) [11:32:31]Malloc new data [11:32:31]SetTLVBufToDocument err=0 [11:32:31]Processing tag 1007 (03EF) [11:32:31]Load OK [11:32:31]SetTLVBufToDocument [11:32:31]Processing tag 1014 (03F6) [11:32:31]Malloc new data [11:32:31]Processing tag 1015 (03F7) [11:32:31]Malloc new data [11:32:31]SetTLVBufToDocument err=0 [11:32:31]SetTLVBufToDocument err=0 [11:32:31]SetTLVBufToDocument err=0 [11:32:31]Processing tag 1133 (046D) [11:32:31]Malloc new data [11:32:31]SetTLVBufToDocument err=0 [11:32:31]SetTLVBufToDocument err=0 [11:32:31]Malloc new data [11:32:31]SAM_PROTO_GetFMData [11:32:31]wFMCommunicate request_size=4 [11:32:31]MH_SAM_APDU [11:32:31]CAPDU: 80 13 03 00 [11:32:31]Write to MH i2c: E2 08 00 A3 23 80 13 03 00 00 00 00 00 45 [11:32:31]Write i2c OK [11:32:31]MH_I2C_Read... [11:32:31]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:32:31]Read from MH i2c: E2 [11:32:31]MH_I2C_Read... [11:32:31]Read from MH i2c: E2 FD 00 [11:32:31]MH_I2C_Read... [11:32:31]Read from MH i2c: E2 FD 00 A3 23 00 C5 04 85 04 C1 04 6E 04 04 00 FE CE 01 00 69 04 A3 00 6F 04 04 00 5D C1 01 00 B1 04 05 00 94 47 40 7C 03 70 04 05 00 C4 36 EE AA 02 72 04 04 00 D0 10 52 D1 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 25 E0 C6 5E 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 98 C6 E5 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 A1 0D 00 00 B1 04 04 00 E8 48 61 3B 70 04 04 00 E8 48 61 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 71 7C 4E 06 EF 03 09 90 00 80 [11:32:31]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 FE CE 01 00 69 04 A3 00 6F 04 04 00 5D C1 01 00 B1 04 05 00 94 47 40 7C 03 70 04 05 00 C4 36 EE AA 02 72 04 04 00 D0 10 52 D1 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 25 E0 C6 5E 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 98 C6 E5 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 A1 0D 00 00 B1 04 04 00 E8 48 61 3B 70 04 04 00 E8 48 61 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 71 7C 4E 06 EF 03 09 90 00 [11:32:31]wFMCommunicate OK [11:32:31]wFMCommunicate request_size=4 [11:32:31]MH_SAM_APDU [11:32:31]CAPDU: 80 17 00 00 [11:32:31]Write to MH i2c: E2 08 00 A4 23 80 17 00 00 00 00 00 00 47 [11:32:31]Write i2c OK [11:32:31]MH_I2C_Read... [11:32:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:32:32]Read from MH i2c: E2 [11:32:32]MH_I2C_Read... [11:32:32]Read from MH i2c: E2 FD 00 [11:32:32]MH_I2C_Read... [11:32:32]Read from MH i2c: E2 FD 00 A4 23 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7C 89 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 88 [11:32:32]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7C 89 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [11:32:32]wFMCommunicate OK [11:32:32]wFMCommunicate request_size=4 [11:32:32]MH_SAM_APDU [11:32:32]CAPDU: 80 17 00 00 [11:32:32]Write to MH i2c: E2 08 00 A5 23 80 17 00 00 00 00 00 00 48 [11:32:32]Write i2c OK [11:32:32]MH_I2C_Read... [11:32:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:32:32]Read from MH i2c: E2 [11:32:32]MH_I2C_Read... [11:32:32]Read from MH i2c: E2 FD 00 [11:32:32]MH_I2C_Read... [11:32:32]Read from MH i2c: E2 FD 00 A5 23 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 5A [11:32:32]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [11:32:32]wFMCommunicate OK [11:32:32]wFMCommunicate request_size=4 [11:32:32]MH_SAM_APDU [11:32:32]CAPDU: 80 17 00 00 [11:32:32]Write to MH i2c: E2 08 00 A6 23 80 17 00 00 00 00 00 00 49 [11:32:32]Write i2c OK [11:32:32]MH_I2C_Read... [11:32:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:32:33]Read from MH i2c: E2 [11:32:33]MH_I2C_Read... [11:32:33]Read from MH i2c: E2 FD 00 [11:32:33]MH_I2C_Read... [11:32:33]Read from MH i2c: E2 FD 00 A6 23 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 D5 [11:32:33]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [11:32:33]wFMCommunicate OK [11:32:33]wFMCommunicate request_size=4 [11:32:33]MH_SAM_APDU [11:32:33]CAPDU: 80 17 00 00 [11:32:33]Write to MH i2c: E2 08 00 A7 23 80 17 00 00 00 00 00 00 4A [11:32:33]Write i2c OK [11:32:33]MH_I2C_Read... [11:32:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [11:32:33]Read from MH i2c: E2 [11:32:33]MH_I2C_Read... [11:32:33]Read from MH i2c: E2 E2 00 [11:32:33]MH_I2C_Read... [11:32:33]Read from MH i2c: E2 E2 00 A7 23 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 28 [11:32:33]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:32:33]wFMCommunicate OK [11:32:33]SAM_PROTO_GetFMData done [11:32:33]FM_GetFMData:85 04 C1 04 6E 04 04 00 FE CE 01 00 69 04 A3 00 6F 04 04 00 5D C1 01 00 B1 04 05 00 94 47 40 7C 03 70 04 05 00 C4 36 EE AA 02 72 04 04 00 D0 10 52 D1 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 25 E0 C6 5E 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 98 C6 E5 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 A1 0D 00 OFD Sender: No OFD packet to send [11:32:34]00 B1 04 04 00 E8 48 61 3B 70 04 04 00 E8 48 61 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 71 7C 4E 06 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 7C 89 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 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 [11:32:34]oper:6F 04 04 00 5D C1 01 00 B1 04 05 00 94 47 40 7C 03 70 04 05 00 C4 36 EE AA 02 72 04 04 00 D0 10 52 D1 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 25 E0 C6 5E 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 98 C6 E5 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [11:32:34]total:94 47 40 7C 03 [11:32:34]Malloc new data [11:32:34]oper:6F 04 04 00 A1 0D 00 00 B1 04 04 00 E8 48 61 3B 70 04 04 00 E8 48 61 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 71 7C 4E 06 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 7C 89 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [11:32:34]total:E8 48 61 3B [11:32:34]Malloc new data [11:32:34]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [11:32:34]total: [11:32:34]Malloc new data [11:32:34]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [11:32:35]total: [11:32:35]Malloc new data [11:32:35]KKMPrepareXReportFMData err=0 [11:32:35]Х отчет ИНН: 02508201610067 Кассир: Хошимов З. 31.07.2024 11:32 Смена: 266 РНМ: 0000000000092660 ЗНМ: 0300000044 СНО: Общий режим Всего чеков: 129 ИТОГИ ПРИХОД Чеков: 125 Общий итог: 132482.00 Итого наличными: 76230.00 Итого безнал.: 56252.00 НДС 0% : 0.00 НДС 12% : 14072.94 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1172.70 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 4 Общий итог: 7900.00 Итого наличными: 7900.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 839.03 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 69.92 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 68330.00 НС Приход: 149694893.00 НС Возвр.Прихода: 9962314.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874939 [11:32:35]StoreToDocumentArchive [11:32:35]MH_GetDate [11:32:35]Write to MH i2c: F0 00 00 A8 23 BA [11:32:35]Write i2c OK [11:32:35]MH_I2C_Read... [11:32:35]Read from MH i2c: F0 [11:32:35]MH_I2C_Read... [11:32:35]Read from MH i2c: F0 09 00 [11:32:35]MH_I2C_Read... [11:32:35]Read from MH i2c: F0 09 00 A8 23 00 D5 20 AA 66 90 0F 3E 66 0B [11:32:35]shift 266 fd 1722425557 [11:32:35]Create dir for shift 0266 [11:32:35]save to /storage/0266/doc_1722425557 [11:32:35]save last doc name /storage/0266/doc_1722425557 to /storage/kkm_last_doc_name [11:32:35]save OK [11:32:35]Clear old archive folders... [11:32:35]NVStorageSaveData kkm_last_timestamp [11:32:35]File name is /storage/kkm_last_timestamp [11:32:35]Write 4 bytes [11:32:35]NVStorageSaveData done [11:32:35]ExternCall_PrintAddStr [11:32:35]wPrintStart [11:32:35]Write to MH i2c: 01 00 00 A9 23 CC [11:32:35]Write i2c OK [11:32:35]MH_I2C_Read... [11:32:35]Read from MH i2c: 01 [11:32:35]MH_I2C_Read... [11:32:35]Read from MH i2c: 01 07 00 [11:32:35]MH_I2C_Read... [11:32:35]Read from MH i2c: 01 07 00 A9 23 00 00 00 00 00 FF 0F E1 [11:32:35]RasterBufferAndPrint [11:32:35]line Х отчет [11:32:35]line ИНН: 02508201610067 [11:32:35]line Кассир: Хошимов З. [11:32:35]line 31.07.2024 11:32 [11:32:35]line Смена: 266 [11:32:35]line РНМ: 0000000000092660 [11:32:35]line ЗНМ: 0300000044 [11:32:35]line СНО: Общий режим [11:32:35]line Всего чеков: 129 [11:32:35]line ИТОГИ ПРИХОД [11:32:35]line Чеков: 125 [11:32:35]line Общий итог: 132482.00 [11:32:35]line Итого наличными: 76230.00 [11:32:35]line Итого безнал.: 56252.00 [11:32:35]line НДС 0% : 0.00 [11:32:35]line НДС 12% : 14072.94 [11:32:35]line НСП 0% : 0.00 [11:32:35]line НСП 1,50% : 0.00 [11:32:35]line НСП 0,50% : 0.00 [11:32:35]line НСП 5% : 0.00 [11:32:35]line НСП 3% : 0.00 [11:32:35]line НСП 2% : 0.00 [11:32:35]line НСП 1% : 1172.70 [11:32:35]line ИТОГИ ВОЗВРАТ ПРИХОДА [11:32:35]line Чеков: 4 [11:32:35]line Общий итог: 7900.00 [11:32:35]line Итого наличными: 7900.00 [11:32:35]line Итого безнал.: 0.00 [11:32:35]line НДС 0% : 0.00 [11:32:35]line НДС 12% : 839.03 [11:32:35]line НСП 0% : 0.00 [11:32:35]line НСП 1,50% : 0.00 [11:32:35]line НСП 0,50% : 0.00 [11:32:35]line НСП 5% : 0.00 [11:32:35]line НСП 3% : 0.00 [11:32:35]line НСП 2% : 0.00 [11:32:35]line НСП 1% : 69.92 [11:32:35]line ИТОГИ РАСХОД [11:32:35]line Чеков: 0 [11:32:35]line Общий итог: 0.00 [11:32:35]line Итого наличными: 0.00 [11:32:35]line Итого безнал.: 0.00 [11:32:35]line НДС 0% : 0.00 [11:32:35]line НДС 12% : 0.00 [11:32:35]line НСП 0% : 0.00 [11:32:35]line НСП 1,50% : 0.00 [11:32:35]line НСП 0,50% : 0.00 [11:32:35]line НСП 5% : 0.00 [11:32:35]line НСП 3% : 0.00 [11:32:35]line НСП 2% : 0.00 [11:32:35]line НСП 1% : 0.00 [11:32:35]line ИТОГИ ВОЗВРАТ РАСХОДА [11:32:35]line Чеков: 0 [11:32:35]line Общий итог: 0.00 [11:32:35]line Итого наличными: 0.00 [11:32:35]line Итого безнал.: 0.00 [11:32:35]line НДС 0% : 0.00 [11:32:35]line НДС 12% : 0.00 [11:32:35]line НСП 0% : 0.00 [11:32:35]line НСП 1,50% : 0.00 [11:32:35]line НСП 0,50% : 0.00 [11:32:35]line НСП 5% : 0.00 [11:32:35]line НСП 3% : 0.00 [11:32:35]line НСП 2% : 0.00 [11:32:35]line НСП 1% : 0.00 [11:32:35]line Сумма внесений: 0.00 [11:32:35]line Сумма выплат: 0.00 [11:32:35]line Нал. в кассе: 68330.00 [11:32:35]line НС Приход: 149694893.00 [11:32:35]line НС Возвр.Прихода: 9962314.00 [11:32:35]line НС Расход: 0.00 [11:32:35]line НС Возвр.Расхода: 0.00 [11:32:35]line ФМ: 0000000000874939 [11:32:35]written 0, free lines is 4095 [11:32:35]Write to MH i2c: 01 00 00 F4 23 17 [11:32:35]Write i2c OK [11:32:35]MH_I2C_Read... [11:32:35]Read from MH i2c: 01 [11:32:35]MH_I2C_Read... [11:32:35]Read from MH i2c: 01 07 00 [11:32:35]MH_I2C_Read... [11:32:35]Read from MH i2c: 01 07 00 F4 23 00 00 00 00 00 E2 0A 0A [11:32:35]RasterBufferAndPrint [11:32:35]line [11:32:35]line [11:32:35]line [11:32:35]line [11:32:35]line [11:32:35]written 0, free lines is 2822 [11:32:35]MH_Cut [11:32:35]Write to MH i2c: D1 01 00 FB 23 01 F0 [11:32:35]Write i2c OK [11:32:35]MH_I2C_Read... [11:32:35]Read from MH i2c: D1 [11:32:35]MH_I2C_Read... [11:32:35]Read from MH i2c: D1 01 00 [11:32:35]MH_I2C_Read... [11:32:35]Read from MH i2c: D1 01 00 FB 23 00 EF [11:32:35]Write to MH i2c: 01 00 00 FC 23 1F [11:32:35]Write i2c OK [11:32:35]MH_I2C_Read... [11:32:36]*** Cut start [11:32:36]*** Partial cut [11:32:36]*** CUTSNS_PIN = 1 [11:32:36]*** CUTSNS_PIN = 0 [11:32:37]*** Brake cut motor [11:32:37]Read from MH i2c: 01 [11:32:37]MH_I2C_Read... [11:32:37]*** Stop cut motor [11:32:37]*** Cut end [11:32:37]Read from MH i2c: 01 07 00 [11:32:37]MH_I2C_Read... [11:32:37]Read from MH i2c: 01 07 00 FC 23 00 00 00 00 00 FF 0F 34 [11:32:37]process_action x_report done [11:32:37]requested_data is exist [11:32:37]produce_requested_data [11:32:37]requested_item fd.num is exist - process it [11:32:37]SAM_PROTO_GetFieldsCounters [11:32:37]wFMCommunicate request_size=4 [11:32:37]MH_SAM_APDU [11:32:37]CAPDU: 80 13 00 00 [11:32:37]Write to MH i2c: E2 08 00 FD 23 80 13 00 00 00 00 00 00 9C [11:32:37]Write i2c OK [11:32:37]MH_I2C_Read... [11:32:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:32:37]Read from MH i2c: E2 [11:32:37]MH_I2C_Read... [11:32:37]Read from MH i2c: E2 62 00 [11:32:37]MH_I2C_Read... [11:32:37]Read from MH i2c: E2 62 00 FD 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 66 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [11:32: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 66 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:32:37]wFMCommunicate OK [11:32:37]SAM_PROTO_GetFieldsCounters done [11:32:37]requested_item shift.num is exist - process it [11:32:37]requested_item shift.opened is exist - process it [11:32:37]req_shift_opened [11:32:37]FM_GetShiftState [11:32:37]SAM_PROTO_GetShiftState [11:32:37]wFMCommunicate request_size=4 [11:32:37]MH_SAM_APDU [11:32:37]CAPDU: 80 13 01 00 [11:32:37]Write to MH i2c: E2 08 00 FE 23 80 13 01 00 00 00 00 00 9E [11:32:37]Write i2c OK [11:32:37]MH_I2C_Read... [11:32:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:37]Read from MH i2c: E2 [11:32:37]MH_I2C_Read... [11:32:37]Read from MH i2c: E2 0E 00 [11:32:37]MH_I2C_Read... [11:32:37]Read from MH i2c: E2 0E 00 FE 23 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 36 [11:32:37]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [11:32:37]wFMCommunicate OK [11:32:37]SAM_PROTO_GetShiftState done [11:32:37]FM_GetShiftState done [11:32:37]req_shift_opened done [11:32:37]requested_item shift.open_date is exist - process it [11:32:37]req_shift_open_date [11:32:37]req_shift_open_date done [11:32:37]produce_requested_data done [11:32:37]produce_requested_data return {"fd.num":119398,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [11:32:37]process_action_free x_report [11:32:37]json_value_free [11:32:37]json_value_free done [11:32:37]process_json_proto returns [11:32:37]Send response to host [11:32:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":119398,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [11:32:37]free response buf [11:32:37]execute_script done [11:32:37]execute_script returns [11:32:37]free content buf [11:32:37]Sock 8.Close socket [11:32:37]Sock 8.Thread stoped [11:32:39]OFD Sender: No OFD packet to send [11:32:44]OFD Sender: No OFD packet to send [11:32:49]OFD Sender: No OFD packet to send [11:32:54]OFD Sender: No OFD packet to send [11:32:59]OFD Sender: No OFD packet to send [11:33:00]accept exits with 9 [11:33:00]New connection [11:33:00]New thread 3067194724 created [11:33:00]Thread 3067338084 joined [11:33:00]Waiting for new connection... [11:33:00] Sock 9.Parse request [11:33:00]Sock 9.Check first char [11:33:00]Sock 9.First char is OK [11:33:00]request: POST /json_proto HTTP/1.0 [11:33:00]Method: POST [11:33:00]URL: /json_proto [11:33:00]Method is POST - this is cgi request [11:33:00]url: /json_proto [11:33:00]query_string will be loaded in cgi processing [11:33:00]execute_cgi json_proto POST (null) [11:33:00]execute_cgi path=json_proto method=POST [11:33:00]POST find Content-Length [11:33:00]Host: 172.17.45.7:8080 [11:33:00]Content-Length: 215 [11:33:00]Content-Type: application/json [11:33:00] [11:33:00]POST finish read [11:33:00]Found Content-Length = 215 [11:33:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:00]execute_script... [11:33:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:00]POST & json_proto [11:33:00]process_json_proto [11:33:00]json parsed OK: [11:33:00]protocol is kg_v1.0 [11:33:00]action value=get_value [11:33:00]process_action get_value [11:33:00]cmd_get_value [11:33:00]process_action get_value done [11:33:00]requested_data is exist [11:33:00]produce_requested_data [11:33:00]requested_item kkm.sn is exist - process it [11:33:00]requested_item kkm.ver is exist - process it [11:33:00]requested_item fm.sn is exist - process it [11:33:00]wFMCommunicate request_size=4 [11:33:00]MH_SAM_APDU [11:33:00]CAPDU: 80 11 00 00 [11:33:00]Write to MH i2c: E2 08 00 FF 23 80 11 00 00 00 00 00 00 9C [11:33:00]Write i2c OK [11:33:00]MH_I2C_Read... [11:33:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:00]Read from MH i2c: E2 [11:33:00]MH_I2C_Read... [11:33:00]Read from MH i2c: E2 17 00 [11:33:00]MH_I2C_Read... [11:33:00]Read from MH i2c: E2 17 00 FF 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F7 [11:33:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:33:00]wFMCommunicate OK [11:33:00]requested_item fd.num is exist - process it [11:33:00]SAM_PROTO_GetFieldsCounters [11:33:00]wFMCommunicate request_size=4 [11:33:00]MH_SAM_APDU [11:33:00]CAPDU: 80 13 00 00 [11:33:00]Write to MH i2c: E2 08 00 00 24 80 13 00 00 00 00 00 00 A0 [11:33:00]Write i2c OK [11:33:00]MH_I2C_Read... [11:33:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:00]Read from MH i2c: E2 [11:33:00]MH_I2C_Read... [11:33:00]Read from MH i2c: E2 62 00 [11:33:00]MH_I2C_Read... [11:33:00]Read from MH i2c: E2 62 00 00 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 66 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [11:33:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 66 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:33:00]wFMCommunicate OK [11:33:00]SAM_PROTO_GetFieldsCounters done [11:33:00]requested_item shift.num is exist - process it [11:33:00]requested_item shift.opened is exist - process it [11:33:00]req_shift_opened [11:33:00]FM_GetShiftState [11:33:00]SAM_PROTO_GetShiftState [11:33:00]wFMCommunicate request_size=4 [11:33:00]MH_SAM_APDU [11:33:00]CAPDU: 80 13 01 00 [11:33:00]Write to MH i2c: E2 08 00 01 24 80 13 01 00 00 00 00 00 A2 [11:33:00]Write i2c OK [11:33:00]MH_I2C_Read... [11:33:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:00]Read from MH i2c: E2 [11:33:00]MH_I2C_Read... [11:33:00]Read from MH i2c: E2 0E 00 [11:33:00]MH_I2C_Read... [11:33:00]Read from MH i2c: E2 0E 00 01 24 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 3A [11:33:00]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [11:33:00]wFMCommunicate OK [11:33:00]SAM_PROTO_GetShiftState done [11:33:00]FM_GetShiftState done [11:33:00]req_shift_opened done [11:33:00]requested_item shift.open_date is exist - process it [11:33:00]req_shift_open_date [11:33:00]req_shift_open_date done [11:33:00]produce_requested_data done [11:33:00]produce_requested_data return {"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":119398,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [11:33:00]process_action_free get_value [11:33:00]json_value_free [11:33:00]json_value_free done [11:33:00]process_json_proto returns [11:33:00]Send response to host [11:33:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":119398,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [11:33:00]free response buf [11:33:00]execute_script done [11:33:00]execute_script returns [11:33:00]free content buf [11:33:00]Sock 9.Close socket [11:33:00]Sock 9.Thread stoped [11:33:00]accept exits with 8 [11:33:00]New connection [11:33:00]New thread 3067338084 created [11:33:00]Thread 3067194724 joined [11:33:00]Waiting for new connection... [11:33:00] Sock 8.Parse request [11:33:00]Sock 8.Check first char [11:33:00]Sock 8.First char is OK [11:33:00]request: POST /json_proto HTTP/1.0 [11:33:00]Method: POST [11:33:00]URL: /json_proto [11:33:00]Method is POST - this is cgi request [11:33:00]url: /json_proto [11:33:00]query_string will be loaded in cgi processing [11:33:00]execute_cgi json_proto POST (null) [11:33:00]execute_cgi path=json_proto method=POST [11:33:00]POST find Content-Length [11:33:00]Host: 172.17.45.7:8080 [11:33:00]Content-Length: 331 [11:33:00]Content-Type: application/json [11:33:00] [11:33:00]POST finish read [11:33:00]Found Content-Length = 331 [11:33:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:33:00]execute_script... [11:33:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:33:00]POST & json_proto [11:33:00]process_json_proto [11:33:00]json parsed OK: [11:33:00]protocol is kg_v1.0 [11:33:00]action value=get_value [11:33:00]process_action get_value [11:33:00]cmd_get_value [11:33:00]process_action get_value done [11:33:00]requested_data is exist [11:33:00]produce_requested_data [11:33:00]requested_item fm.sale.total is exist - process it [11:33:00]SAM_PROTO_GetFMData [11:33:00]wFMCommunicate request_size=4 [11:33:00]MH_SAM_APDU [11:33:00]CAPDU: 80 13 03 00 [11:33:00]Write to MH i2c: E2 08 00 02 24 80 13 03 00 00 00 00 00 A5 [11:33:00]Write i2c OK [11:33:00]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 [11:33:01]MH_I2C_Read... [11:33:01]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:33:01]Read from MH i2c: E2 FD 00 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 FD 00 02 24 00 C5 04 85 04 C1 04 6E 04 04 00 FE CE 01 00 69 04 A3 00 6F 04 04 00 5D C1 01 00 B1 04 05 00 94 47 40 7C 03 70 04 05 00 C4 36 EE AA 02 72 04 04 00 D0 10 52 D1 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 25 E0 C6 5E 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 98 C6 E5 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 A1 0D 00 00 B1 04 04 00 E8 48 61 3B 70 04 04 00 E8 48 61 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 71 7C 4E 06 EF 03 09 90 00 E0 [11:33:01]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 FE CE 01 00 69 04 A3 00 6F 04 04 00 5D C1 01 00 B1 04 05 00 94 47 40 7C 03 70 04 05 00 C4 36 EE AA 02 72 04 04 00 D0 10 52 D1 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 25 E0 C6 5E 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 98 C6 E5 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 A1 0D 00 00 B1 04 04 00 E8 48 61 3B 70 04 04 00 E8 48 61 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 71 7C 4E 06 EF 03 09 90 00 [11:33:01]wFMCommunicate OK [11:33:01]wFMCommunicate request_size=4 [11:33:01]MH_SAM_APDU [11:33:01]CAPDU: 80 17 00 00 [11:33:01]Write to MH i2c: E2 08 00 03 24 80 17 00 00 00 00 00 00 A7 [11:33:01]Write i2c OK [11:33:01]MH_I2C_Read... [11:33:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:01]Read from MH i2c: E2 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 FD 00 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 FD 00 03 24 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7C 89 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 E8 [11:33:01]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7C 89 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [11:33:01]wFMCommunicate OK [11:33:01]wFMCommunicate request_size=4 [11:33:01]MH_SAM_APDU [11:33:01]CAPDU: 80 17 00 00 [11:33:01]Write to MH i2c: E2 08 00 04 24 80 17 00 00 00 00 00 00 A8 [11:33:01]Write i2c OK [11:33:01]MH_I2C_Read... [11:33:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:02]Read from MH i2c: E2 [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: E2 FD 00 [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: E2 FD 00 04 24 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 BA [11:33:02]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [11:33:02]wFMCommunicate OK [11:33:02]wFMCommunicate request_size=4 [11:33:02]MH_SAM_APDU [11:33:02]CAPDU: 80 17 00 00 [11:33:02]Write to MH i2c: E2 08 00 05 24 80 17 00 00 00 00 00 00 A9 [11:33:02]Write i2c OK [11:33:02]MH_I2C_Read... [11:33:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:02]Read from MH i2c: E2 [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: E2 FD 00 [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: E2 FD 00 05 24 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 35 [11:33:02]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [11:33:02]wFMCommunicate OK [11:33:02]wFMCommunicate request_size=4 [11:33:02]MH_SAM_APDU [11:33:02]CAPDU: 80 17 00 00 [11:33:02]Write to MH i2c: E2 08 00 06 24 80 17 00 00 00 00 00 00 AA [11:33:02]Write i2c OK [11:33:02]MH_I2C_Read... [11:33:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [11:33:02]Read from MH i2c: E2 [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: E2 E2 00 [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: E2 E2 00 06 24 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 88 [11:33:02]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:33:03]wFMCommunicate OK [11:33:03]SAM_PROTO_GetFMData done [11:33:03]requested_item fm.sale_refund.total is exist - process it [11:33:03]requested_item fm.buy.total is exist - process it [11:33:03]requested_item shift.sale.total is exist - process it [11:33:03]SAM_PROTO_GetShiftData [11:33:03]wFMCommunicate request_size=4 [11:33:03]MH_SAM_APDU [11:33:03]CAPDU: 80 13 02 00 [11:33:03]Write to MH i2c: E2 08 00 07 24 80 13 02 00 00 00 00 00 A9 [11:33:03]Write i2c OK [11:33:03]MH_I2C_Read... [11:33:03]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:33:03]Read from MH i2c: E2 [11:33:03]MH_I2C_Read... [11:33:03]Read from MH i2c: E2 FD 00 [11:33:03]MH_I2C_Read... [11:33:03]Read from MH i2c: E2 FD 00 07 24 00 BA 04 AA 04 B6 04 6E 04 04 00 81 00 00 00 69 04 9C 00 6F 04 04 00 7D 00 00 00 B1 04 03 00 C8 26 CA 70 04 03 00 58 51 74 72 04 03 00 70 D5 55 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 3E 79 15 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 16 CA 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 F0 0D 0C 70 04 03 00 F0 0D 0C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BF 47 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 EC [11:33:03]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 81 00 00 00 69 04 9C 00 6F 04 04 00 7D 00 00 00 B1 04 03 00 C8 26 CA 70 04 03 00 58 51 74 72 04 03 00 70 D5 55 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 3E 79 15 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 16 CA 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 F0 0D 0C 70 04 03 00 F0 0D 0C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BF 47 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [11:33:03]wFMCommunicate OK [11:33:03]wFMCommunicate request_size=4 [11:33:03]MH_SAM_APDU [11:33:03]CAPDU: 80 17 00 00 [11:33:03]Write to MH i2c: E2 08 00 08 24 80 17 00 00 00 00 00 00 AC [11:33:03]Write i2c OK [11:33:03]MH_I2C_Read... [11:33:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:03]Read from MH i2c: E2 [11:33:03]MH_I2C_Read... [11:33:03]Read from MH i2c: E2 FD 00 [11:33:03]MH_I2C_Read... [11:33:03]Read from MH i2c: E2 FD 00 08 24 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 50 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 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 90 00 C1 [11:33:04]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 50 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 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 90 00 [11:33:04]wFMCommunicate OK [11:33:04]wFMCommunicate request_size=4 [11:33:04]MH_SAM_APDU [11:33:04]CAPDU: 80 17 00 00 [11:33:04]Write to MH i2c: E2 08 00 09 24 80 17 00 00 00 00 00 00 AD [11:33:04]Write i2c OK [11:33:04]MH_I2C_Read... [11:33:04]OFD Sender: No OFD packet to send [11:33:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:04]Read from MH i2c: E2 [11:33:04]MH_I2C_Read... [11:33:04]Read from MH i2c: E2 FD 00 [11:33:04]MH_I2C_Read... [11:33:04]Read from MH i2c: E2 FD 00 09 24 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 D9 [11:33:04]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [11:33:04]wFMCommunicate OK [11:33:04]wFMCommunicate request_size=4 [11:33:04]MH_SAM_APDU [11:33:04]CAPDU: 80 17 00 00 [11:33:04]Write to MH i2c: E2 08 00 0A 24 80 17 00 00 00 00 00 00 AE [11:33:04]Write i2c OK [11:33:04]MH_I2C_Read... [11:33:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:05]Read from MH i2c: E2 [11:33:05]MH_I2C_Read... [11:33:05]Read from MH i2c: E2 FD 00 [11:33:05]MH_I2C_Read... [11:33:05]Read from MH i2c: E2 FD 00 0A 24 00 00 EF 03 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 90 00 26 [11:33:05]RAPDU: 00 EF 03 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 90 00 [11:33:05]wFMCommunicate OK [11:33:05]wFMCommunicate request_size=4 [11:33:05]MH_SAM_APDU [11:33:05]CAPDU: 80 17 00 00 [11:33:05]Write to MH i2c: E2 08 00 0B 24 80 17 00 00 00 00 00 00 AF [11:33:05]Write i2c OK [11:33:05]MH_I2C_Read... [11:33:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [11:33:05]Read from MH i2c: E2 [11:33:05]MH_I2C_Read... [11:33:05]Read from MH i2c: E2 D7 00 [11:33:05]MH_I2C_Read... [11:33:05]Read from MH i2c: E2 D7 00 0B 24 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 92 [11:33:05]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:33:05]wFMCommunicate OK [11:33:05]SAM_PROTO_GetShiftData done [11:33:05]requested_item shift.sale.total_cash is exist - process it [11:33:05]requested_item shift.sale_refund.total is exist - process it [11:33:05]requested_item shift.sale_refund.total_cash is exist - process it [11:33:05]requested_item shift.buy.total is exist - process it [11:33:05]requested_item shift.buy.total_cash is exist - process it [11:33:05]produce_requested_data done [11:33:05]produce_requested_data return {"fm.sale.total":149694893.00,"fm.sale_refund.total":9962314.00,"fm.buy.total":0.00,"shift.sale.total":132482.00,"shift.sale.total_cash":76230.00,"shift.sale_refund.total":7900.00,"shift.sale_refund.total_cash":7900.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [11:33:05]process_action_free get_value [11:33:05]json_value_free [11:33:05]json_value_free done [11:33:05]process_json_proto returns [11:33:05]Send response to host [11:33:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":149694893.00,"fm.sale_refund.total":9962314.00,"fm.buy.total":0.00,"shift.sale.total":132482.00,"shift.sale.total_cash":76230.00,"shift.sale_refund.total":7900.00,"shift.sale_refund.total_cash":7900.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [11:33:05]free response buf [11:33:05]execute_script done [11:33:05]execute_script returns [11:33:05]free content buf [11:33:05]Sock 8.Close socket [11:33:05]Sock 8.Thread stoped [11:33:05]accept exits with 9 [11:33:05]New connection [11:33:05]New thread 3067194724 created [11:33:05]Thread 3067338084 joined [11:33:05]Waiting for new connection... [11:33:05] Sock 9.Parse request [11:33:05]Sock 9.Check first char [11:33:05]Sock 9.First char is OK [11:33:05]request: POST /json_proto HTTP/1.0 [11:33:05]Method: POST [11:33:05]URL: /json_proto [11:33:05]Method is POST - this is cgi request [11:33:05]url: /json_proto [11:33:05]query_string will be loaded in cgi processing [11:33:05]execute_cgi json_proto POST (null) [11:33:05]execute_cgi path=json_proto method=POST [11:33:05]POST find Content-Length [11:33:05]Host: 172.17.45.7:8080 [11:33:05]Content-Length: 331 [11:33:05]Content-Type: application/json [11:33:05] [11:33:05]POST finish read [11:33:05]Found Content-Length = 331 [11:33:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:33:05]execute_script... [11:33:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:33:05]POST & json_proto [11:33:05]process_json_proto [11:33:05]json parsed OK: [11:33:05]protocol is kg_v1.0 [11:33:05]action value=get_value [11:33:05]process_action get_value [11:33:05]cmd_get_value [11:33:05]process_action get_value done [11:33:05]requested_data is exist [11:33:05]produce_requested_data [11:33:05]requested_item fm.sale.total is exist - process it [11:33:05]SAM_PROTO_GetFMData [11:33:05]wFMCommunicate request_size=4 [11:33:05]MH_SAM_APDU [11:33:05]CAPDU: 80 13 03 00 [11:33:05]Write to MH i2c: E2 08 00 0C 24 80 13 03 00 00 00 00 00 AF [11:33:05]Write i2c OK [11:33:05]MH_I2C_Read... [11:33:06]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:33:06]Read from MH i2c: E2 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: E2 FD 00 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: E2 FD 00 0C 24 00 C5 04 85 04 C1 04 6E 04 04 00 FE CE 01 00 69 04 A3 00 6F 04 04 00 5D C1 01 00 B1 04 05 00 94 47 40 7C 03 70 04 05 00 C4 36 EE AA 02 72 04 04 00 D0 10 52 D1 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 25 E0 C6 5E 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 98 C6 E5 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 A1 0D 00 00 B1 04 04 00 E8 48 61 3B 70 04 04 00 E8 48 61 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 71 7C 4E 06 EF 03 09 90 00 EA [11:33:06]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 FE CE 01 00 69 04 A3 00 6F 04 04 00 5D C1 01 00 B1 04 05 00 94 47 40 7C 03 70 04 05 00 C4 36 EE AA 02 72 04 04 00 D0 10 52 D1 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 25 E0 C6 5E 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 98 C6 E5 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 A1 0D 00 00 B1 04 04 00 E8 48 61 3B 70 04 04 00 E8 48 61 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 71 7C 4E 06 EF 03 09 90 00 [11:33:06]wFMCommunicate OK [11:33:06]wFMCommunicate request_size=4 [11:33:06]MH_SAM_APDU [11:33:06]CAPDU: 80 17 00 00 [11:33:06]Write to MH i2c: E2 08 00 0D 24 80 17 00 00 00 00 00 00 B1 [11:33:06]Write i2c OK [11:33:06]MH_I2C_Read... [11:33:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:06]Read from MH i2c: E2 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: E2 FD 00 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: E2 FD 00 0D 24 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7C 89 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 F2 [11:33:06]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7C 89 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [11:33:06]wFMCommunicate OK [11:33:06]wFMCommunicate request_size=4 [11:33:06]MH_SAM_APDU [11:33:06]CAPDU: 80 17 00 00 [11:33:06]Write to MH i2c: E2 08 00 0E 24 80 17 00 00 00 00 00 00 B2 [11:33:07]Write i2c OK [11:33:07]MH_I2C_Read... [11:33:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:07]Read from MH i2c: E2 [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: E2 FD 00 [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: E2 FD 00 0E 24 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 C4 [11:33:07]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [11:33:07]wFMCommunicate OK [11:33:07]wFMCommunicate request_size=4 [11:33:07]MH_SAM_APDU [11:33:07]CAPDU: 80 17 00 00 [11:33:07]Write to MH i2c: E2 08 00 0F 24 80 17 00 00 00 00 00 00 B3 [11:33:07]Write i2c OK [11:33:07]MH_I2C_Read... [11:33:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:07]Read from MH i2c: E2 [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: E2 FD 00 [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: E2 FD 00 0F 24 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 3F [11:33:07]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [11:33:08]wFMCommunicate OK [11:33:08]wFMCommunicate request_size=4 [11:33:08]MH_SAM_APDU [11:33:08]CAPDU: 80 17 00 00 [11:33:08]Write to MH i2c: E2 08 00 10 24 80 17 00 00 00 00 00 00 B4 [11:33:08]Write i2c OK [11:33:08]MH_I2C_Read... [11:33:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [11:33:08]Read from MH i2c: E2 [11:33:08]MH_I2C_Read... [11:33:08]Read from MH i2c: E2 E2 00 [11:33:08]MH_I2C_Read... [11:33:08]Read from MH i2c: E2 E2 00 10 24 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 92 [11:33:08]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:33:08]wFMCommunicate OK [11:33:08]SAM_PROTO_GetFMData done [11:33:08]requested_item fm.sale_refund.total is exist - process it [11:33:08]requested_item fm.buy.total is exist - process it [11:33:08]requested_item shift.sale.total is exist - process it [11:33:08]SAM_PROTO_GetShiftData [11:33:08]wFMCommunicate request_size=4 [11:33:08]MH_SAM_APDU [11:33:08]CAPDU: 80 13 02 00 [11:33:08]Write to MH i2c: E2 08 00 11 24 80 13 02 00 00 00 00 00 B3 [11:33:08]Write i2c OK [11:33:08]MH_I2C_Read... [11:33:09]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:33:09]Read from MH i2c: E2 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: E2 FD 00 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: E2 FD 00 11 24 00 BA 04 AA 04 B6 04 6E 04 04 00 81 00 00 00 69 04 9C 00 6F 04 04 00 7D 00 00 00 B1 04 03 00 C8 26 CA 70 04 03 00 58 51 74 72 04 03 00 70 D5 55 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 3E 79 15 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 16 CA 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 F0 0D 0C 70 04 03 00 F0 0D 0C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BF 47 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 F6 [11:33:09]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 81 00 00 00 69 04 9C 00 6F 04 04 00 7D 00 00 00 B1 04 03 00 C8 26 CA 70 04 03 00 58 51 74 72 04 03 00 70 D5 55 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 3E 79 15 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 16 CA 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 F0 0D 0C 70 04 03 00 F0 0D 0C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BF 47 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [11:33:09]wFMCommunicate OK [11:33:09]wFMCommunicate request_size=4 [11:33:09]MH_SAM_APDU [11:33:09]CAPDU: 80 17 00 00 [11:33:09]Write to MH i2c: E2 08 00 12 24 80 17 OFD Sender: No OFD packet to send [11:33:09]00 00 00 00 00 00 B6 [11:33:09]Write i2c OK [11:33:09]MH_I2C_Read... [11:33:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:09]Read from MH i2c: E2 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: E2 FD 00 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: E2 FD 00 12 24 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 50 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 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 90 00 CB [11:33:09]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 50 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 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 90 00 [11:33:09]wFMCommunicate OK [11:33:09]wFMCommunicate request_size=4 [11:33:09]MH_SAM_APDU [11:33:09]CAPDU: 80 17 00 00 [11:33:09]Write to MH i2c: E2 08 00 13 24 80 17 00 00 00 00 00 00 B7 [11:33:09]Write i2c OK [11:33:09]MH_I2C_Read... [11:33:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:10]Read from MH i2c: E2 [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: E2 FD 00 [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: E2 FD 00 13 24 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 E3 [11:33:10]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [11:33:10]wFMCommunicate OK [11:33:10]wFMCommunicate request_size=4 [11:33:10]MH_SAM_APDU [11:33:10]CAPDU: 80 17 00 00 [11:33:10]Write to MH i2c: E2 08 00 14 24 80 17 00 00 00 00 00 00 B8 [11:33:10]Write i2c OK [11:33:10]MH_I2C_Read... [11:33:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:10]Read from MH i2c: E2 [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: E2 FD 00 [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: E2 FD 00 14 24 00 00 EF 03 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 90 00 30 [11:33:10]RAPDU: 00 EF 03 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 90 00 [11:33:11]wFMCommunicate OK [11:33:11]wFMCommunicate request_size=4 [11:33:11]MH_SAM_APDU [11:33:11]CAPDU: 80 17 00 00 [11:33:11]Write to MH i2c: E2 08 00 15 24 80 17 00 00 00 00 00 00 B9 [11:33:11]Write i2c OK [11:33:11]MH_I2C_Read... [11:33:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [11:33:11]Read from MH i2c: E2 [11:33:11]MH_I2C_Read... [11:33:11]Read from MH i2c: E2 D7 00 [11:33:11]MH_I2C_Read... [11:33:11]Read from MH i2c: E2 D7 00 15 24 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 9C [11:33:11]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:33:11]wFMCommunicate OK [11:33:11]SAM_PROTO_GetShiftData done [11:33:11]requested_item shift.sale.total_cash is exist - process it [11:33:11]requested_item shift.sale_refund.total is exist - process it [11:33:11]requested_item shift.sale_refund.total_cash is exist - process it [11:33:11]requested_item shift.buy.total is exist - process it [11:33:11]requested_item shift.buy.total_cash is exist - process it [11:33:11]produce_requested_data done [11:33:11]produce_requested_data return {"fm.sale.total":149694893.00,"fm.sale_refund.total":9962314.00,"fm.buy.total":0.00,"shift.sale.total":132482.00,"shift.sale.total_cash":76230.00,"shift.sale_refund.total":7900.00,"shift.sale_refund.total_cash":7900.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [11:33:11]process_action_free get_value [11:33:11]json_value_free [11:33:11]json_value_free done [11:33:11]process_json_proto returns [11:33:11]Send response to host [11:33:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":149694893.00,"fm.sale_refund.total":9962314.00,"fm.buy.total":0.00,"shift.sale.total":132482.00,"shift.sale.total_cash":76230.00,"shift.sale_refund.total":7900.00,"shift.sale_refund.total_cash":7900.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [11:33:11]free response buf [11:33:11]execute_script done [11:33:11]execute_script returns [11:33:11]free content buf [11:33:11]Sock 9.Close socket [11:33:11]Sock 9.Thread stoped [11:33:11]accept exits with 8 [11:33:11]New connection [11:33:11]New thread 3067338084 created [11:33:11]Thread 3067194724 joined [11:33:11]Waiting for new connection... [11:33:11] Sock 8.Parse request [11:33:11]Sock 8.Check first char [11:33:11]Sock 8.First char is OK [11:33:11]request: POST /json_proto HTTP/1.0 [11:33:11]Method: POST [11:33:11]URL: /json_proto [11:33:11]Method is POST - this is cgi request [11:33:11]url: /json_proto [11:33:11]query_string will be loaded in cgi processing [11:33:11]execute_cgi json_proto POST (null) [11:33:11]execute_cgi path=json_proto method=POST [11:33:11]POST find Content-Length [11:33:11]Host: 172.17.45.7:8080 [11:33:11]Content-Length: 254 [11:33:11]Content-Type: application/json [11:33:11] [11:33:11]POST finish read [11:33:11]Found Content-Length = 254 [11:33:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:11]execute_script... [11:33:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:11]POST & json_proto [11:33:11]process_json_proto [11:33:11]json parsed OK: [11:33:11]protocol is kg_v1.0 [11:33:11]action value=close_shift [11:33:11]process_action close_shift [11:33:11]cmd_close_shift [11:33:11]MH_GetDate [11:33:11]Write to MH i2c: F0 00 00 16 24 29 [11:33:11]Write i2c OK [11:33:11]MH_I2C_Read... [11:33:11]Read from MH i2c: F0 [11:33:11]MH_I2C_Read... [11:33:11]Read from MH i2c: F0 09 00 [11:33:11]MH_I2C_Read... [11:33:11]Read from MH i2c: F0 09 00 16 24 00 F9 20 AA 66 90 0F 3E 66 9E [11:33:11]GetLastDocTimeStamp 1722425549 [11:33:11]current date 1722425593 [11:33:11]FM_GetShiftState [11:33:11]SAM_PROTO_GetShiftState [11:33:11]wFMCommunicate request_size=4 [11:33:11]MH_SAM_APDU [11:33:11]CAPDU: 80 13 01 00 [11:33:11]Write to MH i2c: E2 08 00 17 24 80 13 01 00 00 00 00 00 B8 [11:33:11]Write i2c OK [11:33:11]MH_I2C_Read... [11:33:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:11]Read from MH i2c: E2 [11:33:11]MH_I2C_Read... [11:33:11]Read from MH i2c: E2 0E 00 [11:33:11]MH_I2C_Read... [11:33:11]Read from MH i2c: E2 0E 00 17 24 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 50 [11:33:11]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [11:33:11]wFMCommunicate OK [11:33:11]SAM_PROTO_GetShiftState done [11:33:11]FM_GetShiftState done [11:33:11]KKMCreateCloseShiftDocument [11:33:11]Load OK [11:33:11]Malloc new data [11:33:11]MH_GetDate [11:33:11]Write to MH i2c: F0 00 00 18 24 2B [11:33:11]Write i2c OK [11:33:11]MH_I2C_Read... [11:33:11]Read from MH i2c: F0 [11:33:11]MH_I2C_Read... [11:33:11]Read from MH i2c: F0 09 00 [11:33:11]MH_I2C_Read... [11:33:11]Read from MH i2c: F0 09 00 18 24 00 F9 20 AA 66 90 0F 3E 66 A0 [11:33:11]Malloc new data [11:33:11]Malloc new data [11:33:11]Malloc new data [11:33:11]Malloc new data [11:33:11]KKMCreateCloseShiftDocument OK [11:33:11]KKMSetCloseShiftData OK [11:33:11]ProcessDocumentItem done err = 0, tmpTLVsize=69 [11:33:11]tlvbuf is 00BAAF90 [11:33:11]KKMLoadAndSignCloseShiftData [11:33:11]SAM_PROTO_ProcessDocument [11:33:11]wFMCommunicate request_size=9 [11:33:11]MH_SAM_APDU [11:33:11]CAPDU: 80 15 01 00 04 05 00 45 00 [11:33:11]Write to MH i2c: E2 0C 00 19 24 80 15 01 00 04 00 05 00 45 00 00 00 0E [11:33:11]Write i2c OK [11:33:11]MH_I2C_Read... [11:33:11]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [11:33:11]Read from MH i2c: E2 [11:33:11]MH_I2C_Read... [11:33:11]Read from MH i2c: E2 03 00 [11:33:11]MH_I2C_Read... [11:33:11]Read from MH i2c: E2 03 00 19 24 00 90 00 B1 [11:33:11]RAPDU: 90 00 [11:33:11]wFMCommunicate OK [11:33:11]wFMCommunicate request_size=23 [11:33:11]MH_SAM_APDU [11:33:11]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [11:33:11]Write to MH i2c: E2 1A 00 1A 24 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 B3 [11:33:11]Write i2c OK [11:33:11]MH_I2C_Read... [11:33:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [11:33:11]Read from MH i2c: E2 [11:33:11]MH_I2C_Read... [11:33:11]Read from MH i2c: E2 03 00 [11:33:11]MH_I2C_Read... [11:33:11]Read from MH i2c: E2 03 00 1A 24 00 90 00 B2 [11:33:11]RAPDU: 90 00 [11:33:11]wFMCommunicate OK [11:33:11]wFMCommunicate request_size=28 [11:33:11]MH_SAM_APDU [11:33:11]CAPDU: 80 15 02 00 17 FD 03 13 00 D0 A5 D0 BE D1 88 D0 B8 D0 BC D0 BE D0 B2 20 D0 97 2E 20 [11:33:11]Write to MH i2c: E2 1F 00 1B 24 80 15 02 00 17 00 FD 03 13 00 D0 A5 D0 BE D1 88 D0 B8 D0 BC D0 BE D0 B2 20 D0 97 2E 20 00 00 55 [11:33:11]Write i2c OK [11:33:11]MH_I2C_Read... [11:33:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [11:33:12]Read from MH i2c: E2 [11:33:12]MH_I2C_Read... [11:33:12]Read from MH i2c: E2 03 00 [11:33:12]MH_I2C_Read... [11:33:12]Read from MH i2c: E2 03 00 1B 24 00 90 00 B3 [11:33:12]RAPDU: 90 00 [11:33:12]wFMCommunicate OK [11:33:12]wFMCommunicate request_size=13 [11:33:12]MH_SAM_APDU [11:33:12]CAPDU: 80 15 02 00 08 F4 03 04 00 F9 20 AA 66 [11:33:12]Write to MH i2c: E2 10 00 1C 24 80 15 02 00 08 00 F4 03 04 00 F9 20 AA 66 00 00 F4 [11:33:12]Write i2c OK [11:33:12]MH_I2C_Read... [11:33:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [11:33:12]Read from MH i2c: E2 [11:33:12]MH_I2C_Read... [11:33:12]Read from MH i2c: E2 03 00 [11:33:12]MH_I2C_Read... [11:33:12]Read from MH i2c: E2 03 00 1C 24 00 90 00 B4 [11:33:12]RAPDU: 90 00 [11:33:12]wFMCommunicate OK [11:33:12]wFMCommunicate request_size=25 [11:33:12]MH_SAM_APDU [11:33:12]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 [11:33:12]Write to MH i2c: E2 1C 00 1D 24 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 00 00 21 [11:33:12]Write i2c OK [11:33:12]MH_I2C_Read... [11:33:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [11:33:12]Read from MH i2c: E2 [11:33:12]MH_I2C_Read... [11:33:12]Read from MH i2c: E2 03 00 [11:33:12]MH_I2C_Read... [11:33:12]Read from MH i2c: E2 03 00 1D 24 00 90 00 B5 [11:33:12]RAPDU: 90 00 [11:33:12]wFMCommunicate OK [11:33:12]wFMCommunicate request_size=4 [11:33:12]MH_SAM_APDU [11:33:12]CAPDU: 80 15 03 00 [11:33:12]Write to MH i2c: E2 08 00 1E 24 80 15 03 00 00 00 00 00 C3 [11:33:12]Write i2c OK [11:33:12]MH_I2C_Read... [11:33:12]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [11:33:12]Read from MH i2c: E2 [11:33:12]MH_I2C_Read... [11:33:12]Read from MH i2c: E2 FD 00 [11:33:12]MH_I2C_Read... [11:33:12]Read from MH i2c: E2 FD 00 1E 24 00 FD 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 67 D2 01 00 0E 04 04 00 B4 01 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 83 00 00 00 AA 04 B6 04 6E 04 04 00 81 00 00 00 69 04 9C 00 6F 04 04 00 7D 00 00 00 B1 04 03 00 C8 26 CA 70 04 03 00 58 51 74 72 04 03 00 70 D5 55 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 3E 79 15 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 16 CA 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 F0 0D 0C 90 00 FB [11:33:12]RAPDU: FD 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 67 D2 01 00 0E 04 04 00 B4 01 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 83 00 00 00 AA 04 B6 04 6E 04 04 00 81 00 00 00 69 04 9C 00 6F 04 04 00 7D 00 00 00 B1 04 03 00 C8 26 CA 70 04 03 00 58 51 74 72 04 03 00 70 D5 55 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 3E 79 15 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 16 CA 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 F0 0D 0C 90 00 [11:33:13]wFMCommunicate OK [11:33:13]SAM_PROTO_ProcessDocument answer len = 1277 [11:33:13]SAM_PROTO_ProcessDocument remain to read = 1029 [11:33:13]wFMCommunicate request_size=4 [11:33:13]MH_SAM_APDU [11:33:13]CAPDU: 80 17 00 00 [11:33:13]Write to MH i2c: E2 08 00 1F 24 80 17 00 00 00 00 00 00 C3 [11:33:13]Write i2c OK [11:33:13]MH_I2C_Read... [11:33:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:13]Read from MH i2c: E2 [11:33:13]MH_I2C_Read... [11:33:13]Read from MH i2c: E2 FD 00 [11:33:13]MH_I2C_Read... [11:33:13]Read from MH i2c: E2 FD 00 1F 24 00 70 04 03 00 F0 0D 0C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BF 47 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 50 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 1B [11:33:13]RAPDU: 70 04 03 00 F0 0D 0C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BF 47 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 50 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [11:33:13]wFMCommunicate OK [11:33:13]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [11:33:13]SAM_PROTO_ProcessDocument remain to read = 779 [11:33:13]wFMCommunicate request_size=4 [11:33:13]MH_SAM_APDU [11:33:13]CAPDU: 80 17 00 00 [11:33:13]Write to MH i2c: E2 08 00 20 24 80 17 00 00 00 00 00 00 C4 [11:33:13]Write i2c OK [11:33:13]MH_I2C_Read... [11:33:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:13]Read from MH i2c: E2 [11:33:13]MH_I2C_Read... [11:33:13]Read from MH i2c: E2 FD 00 [11:33:13]MH_I2C_Read... [11:33:13]Read from MH i2c: E2 FD 00 20 24 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 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 90 00 2A [11:33:14]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 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 90 00 [11:33:14]wFMCommunicate OK [11:33:14]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [11:33:14]SAM_PROTO_ProcessDocument remain to read = 529 [11:33:14]wFMCommunicate request_size=4 [11:33:14]MH_SAM_APDU [11:33:14]CAPDU: 80 17 00 00 [11:33:14]Write to MH i2c: E2 08 00 21 24 80 17 00 00 00 00 00 00 C5 [11:33:14]Write i2c OK [11:33:14]MH_I2C_Read... [11:33:14]Read from MH i2c: E2 [11:33:14]MH_I2C_Read... [11:33:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:14]Read from MH i2c: E2 FD 00 [11:33:14]MH_I2C_Read... [11:33:14]OFD Sender: No OFD packet to send [11:33:14]Read from MH i2c: E2 FD 00 21 24 00 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D4 [11:33:14]RAPDU: 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:33:14]wFMCommunicate OK [11:33:14]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [11:33:14]SAM_PROTO_ProcessDocument remain to read = 279 [11:33:14]wFMCommunicate request_size=4 [11:33:14]MH_SAM_APDU [11:33:14]CAPDU: 80 17 00 00 [11:33:14]Write to MH i2c: E2 08 00 22 24 80 17 00 00 00 00 00 00 C6 [11:33:14]Write i2c OK [11:33:14]MH_I2C_Read... [11:33:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:15]Read from MH i2c: E2 [11:33:15]MH_I2C_Read... [11:33:15]Read from MH i2c: E2 FD 00 [11:33:15]MH_I2C_Read... [11:33:15]Read from MH i2c: E2 FD 00 22 24 00 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 04 [11:33:15]RAPDU: 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [11:33:15]wFMCommunicate OK [11:33:15]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [11:33:15]SAM_PROTO_ProcessDocument remain to read = 29 [11:33:15]wFMCommunicate request_size=4 [11:33:15]MH_SAM_APDU [11:33:15]CAPDU: 80 17 00 00 [11:33:15]Write to MH i2c: E2 08 00 23 24 80 17 00 00 00 00 00 00 C7 [11:33:15]Write i2c OK [11:33:15]MH_I2C_Read... [11:33:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 29! [11:33:15]Read from MH i2c: E2 [11:33:15]MH_I2C_Read... [11:33:15]Read from MH i2c: E2 20 00 [11:33:15]MH_I2C_Read... [11:33:15]Read from MH i2c: E2 20 00 23 24 00 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 49 22 8A 98 8B F4 90 00 17 [11:33:15]RAPDU: 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 49 22 8A 98 8B F4 90 00 [11:33:15]wFMCommunicate OK [11:33:15]SAM_PROTO_ProcessDocument received (without SW) 29 bytes [11:33:15]SAM_PROTO_ProcessDocument done [11:33:15]1209 (1) - 1.0 - номер версии ФФД [11:33:15]1041 (16) - 0000000000874939 - номер ФМ [11:33:15]1040 (4) - 119399 - номер ФД [11:33:15]1038 (4) - 436 - номер смены [11:33:15]1118 (4) - 129 - количество кассовых чеков за смену [11:33:15]1111 (4) - 131 - общее количество ФД за смену [11:33:15]1194 (1206) - счетчики итогов смены [11:33:15] 1134 (4) - 129 - количество чеков со всеми признаками расчетов [11:33:15] 1129 (156) - счетчики операций «приход» [11:33:15] 1135 (4) - 125 - количество чеков по признаку расчетов [11:33:15] 1201 (3) - 132482.00 - общая итоговая сумма в чеках [11:33:15] 1136 (3) - 76230.00 - итоговая сумма в чеках наличными [11:33:15] 1138 (3) - 56252.00 - итоговая сумма в чеках безналичными [11:33:15] 1024 (123) - суммы налогов [11:33:15] 1006 (9) - суммы НДС [11:33:15] 1010 (1) - 0% - код ставки НДС [11:33:15] 1011 (0) - 0.00 - сумма НДС по ставке [11:33:15] 1006 (12) - суммы НДС [11:33:15] 1010 (1) - 12% - код ставки НДС [11:33:15] 1011 (3) - 14072.94 - сумма НДС по ставке [11:33:15] 1007 (9) - суммы НСП [11:33:15] 1014 (1) - 0% - код ставки НСП [11:33:15] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:15] 1007 (12) - суммы НСП [11:33:15] 1014 (1) - 1% - код ставки НСП [11:33:15] 1015 (3) - 1172.70 - сумма НСП по ставке [11:33:15] 1007 (9) - суммы НСП [11:33:15] 1014 (1) - 2% - код ставки НСП [11:33:15] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:15] 1007 (9) - суммы НСП [11:33:15] 1014 (1) - 3% - код ставки НСП [11:33:15] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:15] 1007 (9) - суммы НСП [11:33:15] 1014 (1) - 5% - код ставки НСП [11:33:15] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:15] 1007 (9) - суммы НСП [11:33:15] 1014 (1) - 0,50% - код ставки НСП [11:33:15] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:15] 1007 (9) - суммы НСП [11:33:15] 1014 (1) - 1,50% - код ставки НСП [11:33:15] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:15] 1130 (152) - счетчики операций «возврат прихода» [11:33:15] 1135 (4) - 4 - количество чеков по признаку расчетов [11:33:15] 1201 (3) - 7900.00 - общая итоговая сумма в чеках [11:33:15] 1136 (3) - 7900.00 - итоговая сумма в чеках наличными [11:33:15] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [11:33:15] 1024 (122) - суммы налогов [11:33:15] 1006 (9) - суммы НДС [11:33:15] 1010 (1) - 0% - код ставки НДС [11:33:15] 1011 (0) - 0.00 - сумма НДС по ставке [11:33:15] 1006 (12) - суммы НДС [11:33:15] 1010 (1) - 12% - код ставки НДС [11:33:15] 1011 (3) - 839.03 - сумма НДС по ставке [11:33:15] 1007 (9) - суммы НСП [11:33:15] 1014 (1) - 0% - код ставки НСП [11:33:15] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:15] 1007 (11) - суммы НСП [11:33:15] 1014 (1) - 1% - код ставки НСП [11:33:15] 1015 (2) - 69.92 - сумма НСП по ставке [11:33:15] 1007 (9) - суммы НСП [11:33:15] 1014 (1) - 2% - код ставки НСП [11:33:15] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:15] 1007 (9) - суммы НСП [11:33:15] 1014 (1) - 3% - код ставки НСП [11:33:15] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:15] 1007 (9) - суммы НСП [11:33:15] 1014 (1) - 5% - код ставки НСП [11:33:15] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:15] 1007 (9) - суммы НСП [11:33:15] 1014 (1) - 0,50% - код ставки НСП [11:33:15] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:15] 1007 (9) - суммы НСП [11:33:15] 1014 (1) - 1,50% - код ставки НСП [11:33:15] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:15] 1131 (141) - счетчики операций «расход» [11:33:15] 1135 (4) - 0 - количество чеков по признаку расчетов [11:33:15] 1201 (0) - 0.00 - общая итоговая сумма в чеках [11:33:15] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [11:33:15] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [11:33:15] 1024 (117) - суммы налогов [11:33:15] 1006 (9) - суммы НДС [11:33:15] 1010 (1) - 0% - код ставки НДС [11:33:15] 1011 (0) - 0.00 - сумма НДС по ставке [11:33:15] 1006 (9) - суммы НДС [11:33:15] 1010 (1) - 12% - код ставки НДС [11:33:15] 1011 (0) - 0.00 - сумма НДС по ставке [11:33:15] 1007 (9) - суммы НСП [11:33:15] 1014 (1) - 0% - код ставки НСП [11:33:15] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:15] 1007 (9) - суммы НСП [11:33:15] 1014 (1) - 1% - код ставки НСП [11:33:15] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:15] 1007 (9) - суммы НСП [11:33:16] 1014 (1) - 2% - код ставки НСП [11:33:16] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:16] 1007 (9) - суммы НСП [11:33:16] 1014 (1) - 3% - код ставки НСП [11:33:16] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:16] 1007 (9) - суммы НСП [11:33:16] 1014 (1) - 5% - код ставки НСП [11:33:16] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:16] 1007 (9) - суммы НСП [11:33:16] 1014 (1) - 0,50% - код ставки НСП [11:33:16] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:16] 1007 (9) - суммы НСП [11:33:16] 1014 (1) - 1,50% - код ставки НСП [11:33:16] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:16] 1132 (141) - счетчики операций «возврат расхода» [11:33:16] 1135 (4) - 0 - количество чеков по признаку расчетов [11:33:16] 1201 (0) - 0.00 - общая итоговая сумма в чеках [11:33:16] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [11:33:16] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [11:33:16] 1024 (117) - суммы налогов [11:33:16] 1006 (9) - суммы НДС [11:33:16] 1010 (1) - 0% - код ставки НДС [11:33:16] 1011 (0) - 0.00 - сумма НДС по ставке [11:33:16] 1006 (9) - суммы НДС [11:33:16] 1010 (1) - 12% - код ставки НДС [11:33:16] 1011 (0) - 0.00 - сумма НДС по ставке [11:33:16] 1007 (9) - суммы НСП [11:33:16] 1014 (1) - 0% - код ставки НСП [11:33:16] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:16] 1007 (9) - суммы НСП [11:33:16] 1014 (1) - 1% - код ставки НСП [11:33:16] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:16] 1007 (9) - суммы НСП [11:33:16] 1014 (1) - 2% - код ставки НСП [11:33:16] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:16] 1007 (9) - суммы НСП [11:33:16] 1014 (1) - 3% - код ставки НСП [11:33:16] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:16] 1007 (9) - суммы НСП [11:33:16] 1014 (1) - 5% - код ставки НСП [11:33:16] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:16] 1007 (9) - суммы НСП [11:33:16] 1014 (1) - 0,50% - код ставки НСП [11:33:16] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:16] 1007 (9) - суммы НСП [11:33:16] 1014 (1) - 1,50% - код ставки НСП [11:33:16] 1015 (0) - 0.00 - сумма НСП по ставке [11:33:16] 1133 (588) - - счетчики коррекции - не используются [11:33:16]1077 (6) - 80412702968820 - ФПД [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1209 (04B9) [11:33:16]Malloc new data [11:33:16]Processing tag 1041 (0411) [11:33:16]Processing tag 1040 (0410) [11:33:16]Malloc new data [11:33:16]Processing tag 1038 (040E) [11:33:16]Malloc new data [11:33:16]Processing tag 1118 (045E) [11:33:16]Malloc new data [11:33:16]Processing tag 1111 (0457) [11:33:16]Malloc new data [11:33:16]Processing tag 1194 (04AA) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1134 (046E) [11:33:16]Malloc new data [11:33:16]Processing tag 1129 (0469) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1135 (046F) [11:33:16]Malloc new data [11:33:16]Processing tag 1201 (04B1) [11:33:16]Malloc new data [11:33:16]Processing tag 1136 (0470) [11:33:16]Malloc new data [11:33:16]Processing tag 1138 (0472) [11:33:16]Malloc new data [11:33:16]Processing tag 1024 (0400) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1006 (03EE) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1010 (03F2) [11:33:16]Malloc new data [11:33:16]Processing tag 1011 (03F3) [11:33:16]Malloc new data [11:33:16]SetTLVBufToDocument err=0 [11:33:16]Processing tag 1006 (03EE) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1010 (03F2) [11:33:16]Malloc new data [11:33:16]Processing tag 1011 (03F3) [11:33:16]Malloc new data [11:33:16]SetTLVBufToDocument err=0 [11:33:16]Processing tag 1007 (03EF) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1014 (03F6) [11:33:16]Malloc new data [11:33:16]Processing tag 1015 (03F7) [11:33:16]Malloc new data [11:33:16]SetTLVBufToDocument err=0 [11:33:16]Processing tag 1007 (03EF) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1014 (03F6) [11:33:16]Malloc new data [11:33:16]Processing tag 1015 (03F7) [11:33:16]Malloc new data [11:33:16]SetTLVBufToDocument err=0 [11:33:16]Processing tag 1007 (03EF) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1014 (03F6) [11:33:16]Malloc new data [11:33:16]Processing tag 1015 (03F7) [11:33:16]Malloc new data [11:33:16]SetTLVBufToDocument err=0 [11:33:16]Processing tag 1007 (03EF) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1014 (03F6) [11:33:16]Malloc new data [11:33:16]Processing tag 1015 (03F7) [11:33:16]Malloc new data [11:33:16]SetTLVBufToDocument err=0 [11:33:16]Processing tag 1007 (03EF) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1014 (03F6) [11:33:16]Malloc new data [11:33:16]Processing tag 1015 (03F7) [11:33:16]Malloc new data [11:33:16]SetTLVBufToDocument err=0 [11:33:16]Processing tag 1007 (03EF) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1014 (03F6) [11:33:16]Malloc new data [11:33:16]Processing tag 1015 (03F7) [11:33:16]Malloc new data [11:33:16]SetTLVBufToDocument err=0 [11:33:16]Processing tag 1007 (03EF) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1014 (03F6) [11:33:16]Malloc new data [11:33:16]Processing tag 1015 (03F7) [11:33:16]Malloc new data [11:33:16]SetTLVBufToDocument err=0 [11:33:16]SetTLVBufToDocument err=0 [11:33:16]SetTLVBufToDocument err=0 [11:33:16]Processing tag 1130 (046A) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1135 (046F) [11:33:16]Malloc new data [11:33:16]Processing tag 1201 (04B1) [11:33:16]Malloc new data [11:33:16]Processing tag 1136 (0470) [11:33:16]Malloc new data [11:33:16]Processing tag 1138 (0472) [11:33:16]Malloc new data [11:33:16]Processing tag 1024 (0400) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1006 (03EE) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1010 (03F2) [11:33:16]Malloc new data [11:33:16]Processing tag 1011 (03F3) [11:33:16]Malloc new data [11:33:16]SetTLVBufToDocument err=0 [11:33:16]Processing tag 1006 (03EE) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1010 (03F2) [11:33:16]Malloc new data [11:33:16]Processing tag 1011 (03F3) [11:33:16]Malloc new data [11:33:16]SetTLVBufToDocument err=0 [11:33:16]Processing tag 1007 (03EF) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1014 (03F6) [11:33:16]Malloc new data [11:33:16]Processing tag 1015 (03F7) [11:33:16]Malloc new data [11:33:16]SetTLVBufToDocument err=0 [11:33:16]Processing tag 1007 (03EF) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1014 (03F6) [11:33:16]Malloc new data [11:33:16]Processing tag 1015 (03F7) [11:33:16]Malloc new data [11:33:16]SetTLVBufToDocument err=0 [11:33:16]Processing tag 1007 (03EF) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1014 (03F6) [11:33:16]Malloc new data [11:33:16]Processing tag 1015 (03F7) [11:33:16]Malloc new data [11:33:16]SetTLVBufToDocument err=0 [11:33:16]Processing tag 1007 (03EF) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1014 (03F6) [11:33:16]Malloc new data [11:33:16]Processing tag 1015 (03F7) [11:33:16]Malloc new data [11:33:16]SetTLVBufToDocument err=0 [11:33:16]Processing tag 1007 (03EF) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1014 (03F6) [11:33:16]Malloc new data [11:33:16]Processing tag 1015 (03F7) [11:33:16]Malloc new data [11:33:16]SetTLVBufToDocument err=0 [11:33:16]Processing tag 1007 (03EF) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1014 (03F6) [11:33:16]Malloc new data [11:33:16]Processing tag 1015 (03F7) [11:33:16]Malloc new data [11:33:16]SetTLVBufToDocument err=0 [11:33:16]Processing tag 1007 (03EF) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1014 (03F6) [11:33:16]Malloc new data [11:33:16]Processing tag 1015 (03F7) [11:33:16]Malloc new data [11:33:16]SetTLVBufToDocument err=0 [11:33:16]SetTLVBufToDocument err=0 [11:33:16]SetTLVBufToDocument err=0 [11:33:16]Processing tag 1131 (046B) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1135 (046F) [11:33:16]Malloc new data [11:33:16]Processing tag 1201 (04B1) [11:33:16]Malloc new data [11:33:16]Processing tag 1136 (0470) [11:33:16]Malloc new data [11:33:16]Processing tag 1138 (0472) [11:33:16]Malloc new data [11:33:16]Processing tag 1024 (0400) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1006 (03EE) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1010 (03F2) [11:33:16]Malloc new data [11:33:16]Processing tag 1011 (03F3) [11:33:16]Malloc new data [11:33:16]SetTLVBufToDocument err=0 [11:33:16]Processing tag 1006 (03EE) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1010 (03F2) [11:33:16]Malloc new data [11:33:16]Processing tag 1011 (03F3) [11:33:16]Malloc new data [11:33:16]SetTLVBufToDocument err=0 [11:33:16]Processing tag 1007 (03EF) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1014 (03F6) [11:33:16]Malloc new data [11:33:16]Processing tag 1015 (03F7) [11:33:16]Malloc new data [11:33:16]SetTLVBufToDocument err=0 [11:33:16]Processing tag 1007 (03EF) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1014 (03F6) [11:33:16]Malloc new data [11:33:16]Processing tag 1015 (03F7) [11:33:16]Malloc new data [11:33:16]SetTLVBufToDocument err=0 [11:33:16]Processing tag 1007 (03EF) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1014 (03F6) [11:33:16]Malloc new data [11:33:16]Processing tag 1015 (03F7) [11:33:16]Malloc new data [11:33:16]SetTLVBufToDocument err=0 [11:33:16]Processing tag 1007 (03EF) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1014 (03F6) [11:33:16]Malloc new data [11:33:16]Processing tag 1015 (03F7) [11:33:16]Malloc new data [11:33:16]SetTLVBufToDocument err=0 [11:33:16]Processing tag 1007 (03EF) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1014 (03F6) [11:33:16]Malloc new data [11:33:16]Processing tag 1015 (03F7) [11:33:16]Malloc new data [11:33:16]SetTLVBufToDocument err=0 [11:33:16]Processing tag 1007 (03EF) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1014 (03F6) [11:33:16]Malloc new data [11:33:16]Processing tag 1015 (03F7) [11:33:16]Malloc new data [11:33:16]SetTLVBufToDocument err=0 [11:33:16]Processing tag 1007 (03EF) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1014 (03F6) [11:33:16]Malloc new data [11:33:16]Processing tag 1015 (03F7) [11:33:16]Malloc new data [11:33:16]SetTLVBufToDocument err=0 [11:33:16]SetTLVBufToDocument err=0 [11:33:16]SetTLVBufToDocument err=0 [11:33:16]Processing tag 1132 (046C) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1135 (046F) [11:33:16]Malloc new data [11:33:16]Processing tag 1201 (04B1) [11:33:16]Malloc new data [11:33:16]Processing tag 1136 (0470) [11:33:16]Malloc new data [11:33:16]Processing tag 1138 (0472) [11:33:16]Malloc new data [11:33:16]Processing tag 1024 (0400) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1006 (03EE) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1010 (03F2) [11:33:16]Malloc new data [11:33:16]Processing tag 1011 (03F3) [11:33:16]Malloc new data [11:33:16]SetTLVBufToDocument err=0 [11:33:16]Processing tag 1006 (03EE) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1010 (03F2) [11:33:16]Malloc new data [11:33:16]Processing tag 1011 (03F3) [11:33:16]Malloc new data [11:33:16]SetTLVBufToDocument err=0 [11:33:16]Processing tag 1007 (03EF) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1014 (03F6) [11:33:16]Malloc new data [11:33:16]Processing tag 1015 (03F7) [11:33:16]Malloc new data [11:33:16]SetTLVBufToDocument err=0 [11:33:16]Processing tag 1007 (03EF) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1014 (03F6) [11:33:16]Malloc new data [11:33:16]Processing tag 1015 (03F7) [11:33:16]Malloc new data [11:33:16]SetTLVBufToDocument err=0 [11:33:16]Processing tag 1007 (03EF) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1014 (03F6) [11:33:16]Malloc new data [11:33:16]Processing tag 1015 (03F7) [11:33:16]Malloc new data [11:33:16]SetTLVBufToDocument err=0 [11:33:16]Processing tag 1007 (03EF) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1014 (03F6) [11:33:16]Malloc new data [11:33:16]Processing tag 1015 (03F7) [11:33:16]Malloc new data [11:33:16]SetTLVBufToDocument err=0 [11:33:16]Processing tag 1007 (03EF) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1014 (03F6) [11:33:16]Malloc new data [11:33:16]Processing tag 1015 (03F7) [11:33:16]Malloc new data [11:33:16]SetTLVBufToDocument err=0 [11:33:16]Processing tag 1007 (03EF) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1014 (03F6) [11:33:16]Malloc new data [11:33:16]Processing tag 1015 (03F7) [11:33:16]Malloc new data [11:33:16]SetTLVBufToDocument err=0 [11:33:16]Processing tag 1007 (03EF) [11:33:16]Load OK [11:33:16]SetTLVBufToDocument [11:33:16]Processing tag 1014 (03F6) [11:33:16]Malloc new data [11:33:16]Processing tag 1015 (03F7) [11:33:16]Malloc new data [11:33:16]SetTLVBufToDocument err=0 [11:33:16]SetTLVBufToDocument err=0 [11:33:16]SetTLVBufToDocument err=0 [11:33:16]Processing tag 1133 (046D) [11:33:16]Malloc new data [11:33:16]SetTLVBufToDocument err=0 [11:33:16]Processing tag 1077 (0435) [11:33:16]Malloc new data [11:33:16]SetTLVBufToDocument err=0 [11:33:16]Malloc new data [11:33:16]SAM_PROTO_GetFMData [11:33:16]wFMCommunicate request_size=4 [11:33:16]MH_SAM_APDU [11:33:16]CAPDU: 80 13 03 00 [11:33:16]Write to MH i2c: E2 08 00 24 24 80 13 03 00 00 00 00 00 C7 [11:33:16]Write i2c OK [11:33:16]MH_I2C_Read... [11:33:17]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:33:17]Read from MH i2c: E2 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 FD 00 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 FD 00 24 24 00 C5 04 85 04 C1 04 6E 04 04 00 FE CE 01 00 69 04 A3 00 6F 04 04 00 5D C1 01 00 B1 04 05 00 94 47 40 7C 03 70 04 05 00 C4 36 EE AA 02 72 04 04 00 D0 10 52 D1 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 25 E0 C6 5E 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 98 C6 E5 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 A1 0D 00 00 B1 04 04 00 E8 48 61 3B 70 04 04 00 E8 48 61 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 71 7C 4E 06 EF 03 09 90 00 02 [11:33:17]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 FE CE 01 00 69 04 A3 00 6F 04 04 00 5D C1 01 00 B1 04 05 00 94 47 40 7C 03 70 04 05 00 C4 36 EE AA 02 72 04 04 00 D0 10 52 D1 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 25 E0 C6 5E 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 98 C6 E5 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 A1 0D 00 00 B1 04 04 00 E8 48 61 3B 70 04 04 00 E8 48 61 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 71 7C 4E 06 EF 03 09 90 00 [11:33:17]wFMCommunicate OK [11:33:17]wFMCommunicate request_size=4 [11:33:17]MH_SAM_APDU [11:33:17]CAPDU: 80 17 00 00 [11:33:17]Write to MH i2c: E2 08 00 25 24 80 17 00 00 00 00 00 00 C9 [11:33:17]Write i2c OK [11:33:17]MH_I2C_Read... [11:33:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:17]Read from MH i2c: E2 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 FD 00 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 FD 00 25 24 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7C 89 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 0A [11:33:18]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7C 89 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [11:33:18]wFMCommunicate OK [11:33:18]wFMCommunicate request_size=4 [11:33:18]MH_SAM_APDU [11:33:18]CAPDU: 80 17 00 00 [11:33:18]Write to MH i2c: E2 08 00 26 24 80 17 00 00 00 00 00 00 CA [11:33:18]Write i2c OK [11:33:18]MH_I2C_Read... [11:33:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:18]Read from MH i2c: E2 [11:33:18]MH_I2C_Read... [11:33:18]Read from MH i2c: E2 FD 00 [11:33:18]MH_I2C_Read... [11:33:18]Read from MH i2c: E2 FD 00 26 24 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 DC [11:33:18]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [11:33:18]wFMCommunicate OK [11:33:18]wFMCommunicate request_size=4 [11:33:18]MH_SAM_APDU [11:33:18]CAPDU: 80 17 00 00 [11:33:18]Write to MH i2c: E2 08 00 27 24 80 17 00 00 00 00 00 00 CB [11:33:18]Write i2c OK [11:33:18]MH_I2C_Read... [11:33:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:33:19]Read from MH i2c: E2 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: E2 FD 00 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: E2 FD 00 27 24 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 57 [11:33:19]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 OFD Sender: No OFD packet to send [11:33:19]01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [11:33:19]wFMCommunicate OK [11:33:19]wFMCommunicate request_size=4 [11:33:19]MH_SAM_APDU [11:33:19]CAPDU: 80 17 00 00 [11:33:19]Write to MH i2c: E2 08 00 28 24 80 17 00 00 00 00 00 00 CC [11:33:19]Write i2c OK [11:33:19]MH_I2C_Read... [11:33:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [11:33:19]Read from MH i2c: E2 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: E2 E2 00 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: E2 E2 00 28 24 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 AA [11:33:20]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:33:20]wFMCommunicate OK [11:33:20]SAM_PROTO_GetFMData done [11:33:20]Malloc new data [11:33:20]Malloc new data [11:33:20]Malloc new data [11:33:20]Malloc new data [11:33:20]KKMLoadAndSignCloseShiftData err=0 [11:33:20]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Хошимов З. 31.07.2024 11:33 Смена: 436 РНМ: 0000000000092660 ЗНМ: 0300000044 СНО: Общий режим Чеков за смену: 129 ФД за смену: 131 Всего чеков: 129 ИТОГИ ПРИХОД Чеков: 125 Общий итог: 132482.00 Итого наличными: 76230.00 Итого безнал.: 56252.00 НДС 0% : 0.00 НДС 12% : 14072.94 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1172.70 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 4 Общий итог: 7900.00 Итого наличными: 7900.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 839.03 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 69.92 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 68330.00 НС Приход: 149694893.00 НС Возвр.Прихода: 9962314.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 119399 ФМ: 0000000000874939 ФПД: 80412702968820 [11:33:20]StoreToDocumentArchive [11:33:20]shift 436 fd 119399 [11:33:20]save to /storage/0436/doc_00119399 [11:33:20]save last doc name /storage/0436/doc_00119399 to /storage/kkm_last_doc_name [11:33:20]save OK [11:33:20]Clear old archive folders... [11:33:20]Remove dir /storage/0266 [11:33:20]opendir ok [11:33:20]file . [11:33:20]file .. [11:33:20]file doc_1722425557 [11:33:20]remove file /storage/0266/doc_1722425557 [11:33:20]remove dir /storage/0266 [11:33:20]NVStorageSaveData kkm_registers [11:33:20]File name is /storage/kkm_registers [11:33:20]Write 24 bytes [11:33:20]NVStorageSaveData done [11:33:20]NVStorageSaveData kkm_registers [11:33:20]File name is /storage/kkm_registers [11:33:20]Write 24 bytes [11:33:20]NVStorageSaveData done [11:33:20]ProcessDocumentItem done err = 0, tmpTLVsize=1385 [11:33:20]tlvbuf is 00CA44F0 [11:33:20]SAM_PROTO_ClearQueue [11:33:20]wFMCommunicate request_size=4 [11:33:20]MH_SAM_APDU [11:33:20]CAPDU: 80 09 00 00 [11:33:20]Write to MH i2c: E2 08 00 29 24 80 09 00 00 00 00 00 00 BF [11:33:20]Write i2c OK [11:33:20]MH_I2C_Read... [11:33:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:20]Read from MH i2c: E2 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: E2 03 00 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: E2 03 00 29 24 00 90 00 C1 [11:33:20]RAPDU: 90 00 [11:33:20]wFMCommunicate OK [11:33:20]SAM_PROTO_ClearQueue done [11:33:20]KKMCreateOFDPacket [11:33:20]OFDProtocolAddRootSTLVToBuf [11:33:20]FM_MakeSignedData [11:33:20]FM_MakeSignedData [11:33:20]SAM_PROTO_SignData [11:33:20]wFMCommunicate request_size=4 [11:33:20]MH_SAM_APDU [11:33:20]CAPDU: 80 0D 01 02 [11:33:20]Write to MH i2c: E2 08 00 2A 24 80 0D 01 02 00 00 00 00 C7 [11:33:20]Write i2c OK [11:33:20]MH_I2C_Read... [11:33:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:20]Read from MH i2c: E2 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: E2 03 00 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: E2 03 00 2A 24 00 90 00 C2 [11:33:20]RAPDU: 90 00 [11:33:20]wFMCommunicate OK [11:33:20]wFMCommunicate request_size=255 [11:33:20]MH_SAM_APDU [11:33:20]CAPDU: 80 0D 02 02 FA 05 00 69 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 A5 D0 BE D1 88 D0 B8 D0 BC D0 BE D0 B2 20 D0 97 2E 20 F4 03 04 00 F9 20 AA 66 0E 04 04 00 B4 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 5E 04 04 00 81 00 00 00 57 04 04 00 83 00 00 00 AA 04 DD 04 6E 04 04 00 81 00 00 00 69 04 A3 00 6F 04 04 00 7D 00 00 00 B1 04 03 00 C8 26 CA 70 04 03 00 58 51 74 72 04 03 00 70 D5 55 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 3E 79 15 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 [11:33:20]Write to MH i2c: E2 02 01 2B 24 80 0D 02 02 FA 00 05 00 69 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 A5 D0 BE D1 88 D0 B8 D0 BC D0 BE D0 B2 20 D0 97 2E 20 F4 03 04 00 F9 20 AA 66 0E 04 04 00 B4 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 5E 04 04 00 81 00 00 00 57 04 04 00 83 00 00 00 AA 04 DD 04 6E 04 04 00 81 00 00 00 69 04 A3 00 6F 04 04 00 7D 00 00 00 B1 04 03 00 C8 26 CA 70 04 03 00 58 51 74 72 04 03 00 70 D5 55 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 3E 79 15 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 00 A8 [11:33:20]Write i2c OK [11:33:20]MH_I2C_Read... [11:33:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:21]Read from MH i2c: E2 [11:33:21]MH_I2C_Read... [11:33:21]Read from MH i2c: E2 03 00 [11:33:21]MH_I2C_Read... [11:33:21]Read from MH i2c: E2 03 00 2B 24 00 90 00 C3 [11:33:21]RAPDU: 90 00 [11:33:21]wFMCommunicate OK [11:33:21]wFMCommunicate request_size=255 [11:33:21]MH_SAM_APDU [11:33:21]CAPDU: 80 0D 02 02 FA 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 16 CA 01 6A 04 A0 00 6F 04 04 00 04 00 00 00 B1 04 03 00 F0 0D 0C 70 04 03 00 F0 0D 0C 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BF 47 01 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 50 1B 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 [11:33:21]Write to MH i2c: E2 02 01 2C 24 80 0D 02 02 FA 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 16 CA 01 6A 04 A0 00 6F 04 04 00 04 00 00 00 B1 04 03 00 F0 0D 0C 70 04 03 00 F0 0D 0C 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BF 47 01 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 50 1B 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 00 00 B4 [11:33:21]Write i2c OK [11:33:21]MH_I2C_Read... [11:33:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:21]Read from MH i2c: E2 [11:33:21]MH_I2C_Read... [11:33:21]Read from MH i2c: E2 03 00 [11:33:21]MH_I2C_Read... [11:33:21]Read from MH i2c: E2 03 00 2C 24 00 90 00 C4 [11:33:21]RAPDU: 90 00 [11:33:21]wFMCommunicate OK [11:33:21]wFMCommunicate request_size=255 [11:33:21]MH_SAM_APDU [11:33:21]CAPDU: 80 0D 02 02 FA 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 [11:33:22]Write to MH i2c: E2 02 01 2D 24 80 0D 02 02 FA 00 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 00 00 91 [11:33:22]Write i2c OK [11:33:22]MH_I2C_Read... [11:33:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:22]Read from MH i2c: E2 [11:33:22]MH_I2C_Read... [11:33:22]Read from MH i2c: E2 03 00 [11:33:22]MH_I2C_Read... [11:33:22]Read from MH i2c: E2 03 00 2D 24 00 90 00 C5 [11:33:22]RAPDU: 90 00 [11:33:22]wFMCommunicate OK [11:33:22]wFMCommunicate request_size=255 [11:33:22]MH_SAM_APDU [11:33:22]CAPDU: 80 0D 02 02 FA 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 [11:33:22]Write to MH i2c: E2 02 01 2E 24 80 0D 02 02 FA 00 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 00 00 9B [11:33:23]Write i2c OK [11:33:23]MH_I2C_Read... [11:33:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:23]Read from MH i2c: E2 [11:33:23]MH_I2C_Read... [11:33:23]Read from MH i2c: E2 03 00 [11:33:23]MH_I2C_Read... [11:33:23]Read from MH i2c: E2 03 00 2E 24 00 90 00 C6 [11:33:23]RAPDU: 90 00 [11:33:23]wFMCommunicate OK [11:33:23]wFMCommunicate request_size=255 [11:33:23]MH_SAM_APDU [11:33:23]CAPDU: 80 0D 02 02 FA F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 [11:33:23]Write to MH i2c: E2 02 01 2F 24 80 0D 02 02 FA 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 00 5C [11:33:23]Write i2c OK [11:33:23]MH_I2C_Read... [11:33:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:24]Read from MH i2c: E2 [11:33:24]MH_I2C_Read... [11:33:24]Read from MH i2c: E2 03 00 [11:33:24]MH_I2C_Read... [11:33:24]Read from MH i2c: E2 03 00 2F 24 00 90 00 C7 [11:33:24]RAPDU: 90 00 [11:33:24]wFMCommunicate OK [11:33:24]wFMCommunicate request_size=144 [11:33:24]MH_SAM_APDU [11:33:24]CAPDU: 80 0D 02 02 8B 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 67 D2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 35 04 06 00 49 22 8A 98 8B F4 [11:33:24]Write to MH i2c: E2 93 00 30 24 80 0D 02 02 8B 00 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 67 D2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 35 04 06 00 49 22 8A 98 8B F4 00 00 59 [11:33:24]Write i2c OK [11:33:24]MH_I2C_Read... [11:33:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:24]Read from MH i2c: E2 [11:33:24]MH_I2C_Read... [11:33:24]Read from MH i2c: E2 03 00 [11:33:24]MH_I2C_Read... [11:33:24]Read from MH i2c: E2 03 00 30 24 00 90 00 C8 [11:33:24]RAPDU: 90 00 [11:33:24]wFMCommunicate OK [11:33:24]wFMCommunicate request_size=4 [11:33:24]MH_SAM_APDU [11:33:24]CAPDU: 80 0D 03 02 [11:33:24]Write to MH i2c: E2 08 00 31 24 80 0D 03 02 00 00 00 00 D0 [11:33:24]OFD Sender: No OFD packet to send [11:33:24]Write i2c OK [11:33:24]MH_I2C_Read... [11:33:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:24]Read from MH i2c: E2 [11:33:24]MH_I2C_Read... [11:33:24]Read from MH i2c: E2 0B 00 [11:33:24]MH_I2C_Read... [11:33:24]Read from MH i2c: E2 0B 00 31 24 00 26 FD B5 0F E5 9F 86 27 90 00 E9 [11:33:24]RAPDU: 26 FD B5 0F E5 9F 86 27 90 00 [11:33:24]wFMCommunicate OK [11:33:24]SAM_PROTO_SignData done [11:33:24]FM_MakeSignedData done [11:33:24]CreateOFDProtocolMessage [11:33:24]wFMCommunicate request_size=4 [11:33:24]MH_SAM_APDU [11:33:24]CAPDU: 80 11 00 00 [11:33:24]Write to MH i2c: E2 08 00 32 24 80 11 00 00 00 00 00 00 D0 [11:33:24]Write i2c OK [11:33:24]MH_I2C_Read... [11:33:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:24]Read from MH i2c: E2 [11:33:24]MH_I2C_Read... [11:33:24]Read from MH i2c: E2 17 00 [11:33:24]MH_I2C_Read... [11:33:24]Read from MH i2c: E2 17 00 32 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2B [11:33:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:33:24]wFMCommunicate OK [11:33:24]CreateOFDProtocolMessage done [11:33:24]OFDSenderStorePacket 119399 [11:33:24]StoreOFDPacket docnum=119399 [11:33:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 7D 05 00 00 B4 6C 75 05 20 97 5A 05 01 00 05 00 69 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 A5 D0 BE D1 88 D0 B8 D0 BC D0 BE D0 B2 20 D0 97 2E 20 F4 03 04 00 F9 20 AA 66 0E 04 04 00 B4 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 5E 04 04 00 81 00 00 00 57 04 04 00 83 00 00 00 AA 04 DD 04 6E 04 04 00 81 00 00 00 69 04 A3 00 6F 04 04 00 7D 00 00 00 B1 04 03 00 C8 26 CA 70 04 03 00 58 51 74 72 04 03 00 70 D5 55 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 3E 79 15 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 16 CA 01 6A 04 A0 00 6F 04 04 00 04 00 00 00 B1 04 03 00 F0 0D 0C 70 04 03 00 F0 0D 0C 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BF 47 01 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 50 1B 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 67 D2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 35 04 06 00 49 22 8A 98 8B F4 26 FD B5 0F E5 9F 86 27 [11:33:25]CheckFolder [11:33:25]dirname=/storage/ofd_packets [11:33:25]CheckFolder done [11:33:25]ProducePacketName [11:33:25]name=ofd_packets/00119399 [11:33:25]NVStorageSaveData ofd_packets/00119399 [11:33:25]File name is /storage/ofd_packets/00119399 [11:33:25]Write 1435 bytes [11:33:25]NVStorageSaveData done [11:33:25]OFDSenderStorePacket done [11:33:25]KKMCreateOFDPacket done [11:33:25]NVStorageSaveData kkm_last_timestamp [11:33:25]File name is /storage/kkm_last_timestamp [11:33:25]Write 4 bytes [11:33:25]NVStorageSaveData done [11:33:25]ExternCall_PrintAddStr [11:33:25]wPrintStart [11:33:25]Write to MH i2c: 01 00 00 33 24 57 [11:33:25]Write i2c OK [11:33:25]MH_I2C_Read... [11:33:25]Read from MH i2c: 01 [11:33:25]MH_I2C_Read... [11:33:25]OFD Sender: Processing packet 119399 [packets to send 86, broken 85] [11:33:25]ProducePacketName [11:33:25]name=ofd_packets/00119399 [11:33:25]OFD Sender: To server: pG, [11:33:25]CommunicateWithHost lk.salyk.kg:30040 [11:33:25]ConnectInit lk.salyk.kg [11:33:25]Read from MH i2c: 01 07 00 [11:33:25]MH_I2C_Read... [11:33:25]Read from MH i2c: 01 07 00 33 24 00 00 00 00 00 FF 0F 6C [11:33:25]RasterBufferAndPrint [11:33:25]line Отчет о закрытии смены [11:33:25]line ФФД: 1.0 [11:33:25]line ИНН: 02508201610067 [11:33:25]line Кассир: Хошимов З. [11:33:25]line 31.07.2024 11:33 [11:33:25]line Смена: 436 [11:33:25]line РНМ: 0000000000092660 [11:33:25]line ЗНМ: 0300000044 [11:33:25]line СНО: Общий режим [11:33:25]line Чеков за смену: 129 [11:33:25]line ФД за смену: 131 [11:33:25]line Всего чеков: 129 [11:33:25]line ИТОГИ ПРИХОД [11:33:25]line Чеков: 125 [11:33:25]line Общий итог: 132482.00 [11:33:25]line Итого наличными: 76230.00 [11:33:25]line Итого безнал.: 56252.00 [11:33:25]line НДС 0% : 0.00 [11:33:25]line НДС 12% : 14072.94 [11:33:25]line НСП 0% : 0.00 [11:33:25]line НСП 1,50% : 0.00 [11:33:25]line НСП 0,50% : 0.00 [11:33:25]line НСП 5% : 0.00 [11:33:25]line НСП 3% : 0.00 [11:33:25]line НСП 2% : 0.00 [11:33:25]line НСП 1% : 1172.70 [11:33:25]line ИТОГИ ВОЗВРАТ ПРИХОДА [11:33:25]line Чеков: 4 [11:33:25]line Общий итог: 7900.00 [11:33:25]line Итого наличными: 7900.00 [11:33:25]line Итого безнал.: 0.00 [11:33:25]line НДС 0% : 0.00 [11:33:25]line НДС 12% : 839.03 [11:33:25]line НСП 0% : 0.00 [11:33:25]line НСП 1,50% : 0.00 [11:33:25]line НСП 0,50% : 0.00 [11:33:25]line НСП 5% : 0.00 [11:33:25]line НСП 3% : 0.00 [11:33:25]line НСП 2% : 0.00 [11:33:25]line НСП 1% : 69.92 [11:33:25]line ИТОГИ РАСХОД [11:33:25]line Чеков: 0 [11:33:25]line Общий итог: 0.00 [11:33:25]line Итого наличными: 0.00 [11:33:25]line Итого безнал.: 0.00 [11:33:25]line НДС 0% : 0.00 [11:33:25]line НДС 12% : 0.00 [11:33:25]line НСП 0% : 0.00 [11:33:25]line НСП 1,50% : 0.00 [11:33:25]line НСП 0,50% : 0.00 [11:33:25]line НСП 5% : 0.00 [11:33:25]line НСП 3% : 0.00 [11:33:25]line НСП 2% : 0.00 [11:33:25]line НСП 1% : 0.00 [11:33:25]line ИТОГИ ВОЗВРАТ РАСХОДА [11:33:25]line Чеков: 0 [11:33:25]line Общий итог: 0.00 [11:33:25]line Итого наличными: 0.00 [11:33:25]line Итого безнал.: 0.00 [11:33:25]line НДС 0% : 0.00 [11:33:25]line НДС 12% : 0.00 [11:33:25]line НСП 0% : 0.00 [11:33:25]line НСП 1,50% : 0.00 [11:33:25]line НСП 0,50% : 0.00 [11:33:25]line НСП 5% : 0.00 [11:33:25]line НСП 3% : 0.00 [11:33:25]line НСП 2% : 0.00 [11:33:25]line НСП 1% : 0.00 [11:33:25]line Сумма внесений: 0.00 [11:33:25]line Сумма выплат: 0.00 [11:33:25]line Нал. в кассе: 68330.00 [11:33:25]line НС Приход: 149694893.00 [11:33:25]line НС Возвр.Прихода: 9962314.00 [11:33:25]line НС Расход: 0.00 [11:33:25]line НС Возвр.Расхода: 0.00 [11:33:25]line ФД: 119399 [11:33:25]line ФМ: 0000000000874939 [11:33:25]line ФПД: 80412702968820 [11:33:25]Connected sock=10 [11:33:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 written 0, free lines is 4095 [11:33:25]30 30 30 30 30 30 38 37 34 39 33 39 7D 05 00 00 B4 6C 75 05 20 97 5A 05 01 00 05 00 69 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 A5 D0 BE D1 88 D0 B8 D0 BC D0 BE D0 B2 20 D0 97 2E 20 F4 03 04 00 F9 20 AA 66 0E 04 04 00 B4 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 5E 04 04 00 81 00 00 00 57 04 04 00 83 00 00 00 AA 04 DD 04 6E 04 04 00 81 00 00 00 69 04 A3 00 6F 04 04 00 7D 00 00 00 B1 04 03 00 C8 26 CA 70 04 03 00 58 51 74 72 04 03 00 70 D5 55 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 3E 79 15 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 16 CA 01 6A 04 A0 00 6F 04 04 00 04 00 00 00 B1 04 03 00 F0 0D 0C 70 04 03 00 F0 0D 0C 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BF 47 01 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 50 1B 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 Write to MH i2c: F7 01 00 00 83 24 A7 [11:33:26]03 Write i2c OK [11:33:26]00 MH_I2C_Read... [11:33:26]00 Read from MH i2c: EF 01 03 [11:33:26]09 MH_I2C_Read... [11:33:26]00 F6 03 01 00 01 F7 03 00 00 EF Read from MH i2c: 03 01 09 07 00 00 F6 [11:33:26]03 MH_I2C_Read... [11:33:26]01 Read from MH i2c: 00 01 02 07 F7 00 03 83 00 24 00 00 EF 00 03 00 09 00 00 00 F6 B4 03 0A 01 6C 00 [11:33:26]03 RasterBufferAndPrint [11:33:26]F7 line [11:33:26]03 00 00 EF 03 09 00 F6 03 01 00 04 F7 line [11:33:26]03 line [11:33:26]00 line [11:33:26]00 line [11:33:26]EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 written 0, free lines is 2934 [11:33:26]F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 MH_Cut [11:33:26]04 Write to MH i2c: 00 D1 00 01 00 00 00 8A 00 24 01 80 [11:33:26]B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 Write i2c OK [11:33:26]F2 MH_I2C_Read... [11:33:26]03 Read from MH i2c: 01 D1 00 [11:33:26]01 MH_I2C_Read... [11:33:26]F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 Read from MH i2c: EF D1 03 01 09 00 00 [11:33:26]F6 MH_I2C_Read... [11:33:26]03 01 00 01 F7 03 00 00 EF 03 09 00 Read from MH i2c: F6 D1 03 01 01 00 00 8A 02 24 F7 03 00 00 EF 03 09 00 F6 03 01 00 00 03 7F F7 [11:33:26]03 Write to MH i2c: 00 01 00 00 EF 00 03 8B 09 24 00 AF F6 [11:33:26]03 01 00 Write i2c OK [11:33:26]04 MH_I2C_Read... [11:33:26]F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 67 D2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 35 04 06 00 49 22 8A 98 8B F4 26 FD B5 0F E5 9F 86 27 [11:33:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 39 2A 47 00 0D C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 67 D2 01 00 F4 03 04 00 8F CE A9 66 B6 04 01 00 00 95 CB 3A 61 5E 86 75 BC [11:33:27]CommunicateWithHost err = 0 [11:33:27]CheckOFDResponse [11:33:27]1017 (14) - 77093643461234 [11:33:27]1041 (16) - 0000000000874939 [11:33:27]1040 (4) - 119399 [11:33:27]1012 (4) - 31.07.2024 05:41 [11:33:27]1206 (1) - 0 [11:33:27]OFD Sender: Remove packet 119399 [11:33:27]ProducePacketName [11:33:27]name=ofd_packets/00119399 [11:33:27]NVStorageDeleteData [11:33:27]*** Cut start [11:33:27]*** Partial cut [11:33:27]*** CUTSNS_PIN = 1 [11:33:27]*** CUTSNS_PIN = 0 [11:33:27]*** Brake cut motor [11:33:27]OFD Sender: No OFD packet to send [11:33:27]Read from MH i2c: 01 [11:33:27]MH_I2C_Read... [11:33:27]*** Stop cut motor [11:33:27]*** Cut end [11:33:27]Read from MH i2c: 01 07 00 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: 01 07 00 8B 24 00 00 00 00 00 FF 0F C4 [11:33:27]process_action close_shift done [11:33:27]requested_data is exist [11:33:27]produce_requested_data [11:33:27]requested_item fd.num is exist - process it [11:33:27]SAM_PROTO_GetFieldsCounters [11:33:27]wFMCommunicate request_size=4 [11:33:27]MH_SAM_APDU [11:33:27]CAPDU: 80 13 00 00 [11:33:27]Write to MH i2c: E2 08 00 8C 24 80 13 00 00 00 00 00 00 2C [11:33:27]Write i2c OK [11:33:27]MH_I2C_Read... [11:33:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:28]Read from MH i2c: E2 [11:33:28]MH_I2C_Read... [11:33:28]Read from MH i2c: E2 62 00 [11:33:28]MH_I2C_Read... [11:33:28]Read from MH i2c: E2 62 00 8C 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 67 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [11:33:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 67 D2 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:33:28]wFMCommunicate OK [11:33:28]SAM_PROTO_GetFieldsCounters done [11:33:28]requested_item shift.num is exist - process it [11:33:28]requested_item shift.opened is exist - process it [11:33:28]req_shift_opened [11:33:28]FM_GetShiftState [11:33:28]SAM_PROTO_GetShiftState [11:33:28]wFMCommunicate request_size=4 [11:33:28]MH_SAM_APDU [11:33:28]CAPDU: 80 13 01 00 [11:33:28]Write to MH i2c: E2 08 00 8D 24 80 13 01 00 00 00 00 00 2E [11:33:28]Write i2c OK [11:33:28]MH_I2C_Read... [11:33:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:28]Read from MH i2c: E2 [11:33:28]MH_I2C_Read... [11:33:28]Read from MH i2c: E2 0E 00 [11:33:28]MH_I2C_Read... [11:33:28]Read from MH i2c: E2 0E 00 8D 24 00 09 00 00 00 00 00 00 00 00 00 00 90 00 39 [11:33:28]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [11:33:28]wFMCommunicate OK [11:33:28]SAM_PROTO_GetShiftState done [11:33:28]FM_GetShiftState done [11:33:28]req_shift_opened done [11:33:28]requested_item shift.open_date is exist - process it [11:33:28]req_shift_open_date [11:33:28]FM_GetShiftState [11:33:28]SAM_PROTO_GetShiftState [11:33:28]wFMCommunicate request_size=4 [11:33:28]MH_SAM_APDU [11:33:28]CAPDU: 80 13 01 00 [11:33:28]Write to MH i2c: E2 08 00 8E 24 80 13 01 00 00 00 00 00 2F [11:33:28]Write i2c OK [11:33:28]MH_I2C_Read... [11:33:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:28]Read from MH i2c: E2 [11:33:28]MH_I2C_Read... [11:33:28]Read from MH i2c: E2 0E 00 [11:33:28]MH_I2C_Read... [11:33:28]Read from MH i2c: E2 0E 00 8E 24 00 09 00 00 00 00 00 00 00 00 00 00 90 00 3A [11:33:28]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [11:33:28]wFMCommunicate OK [11:33:28]SAM_PROTO_GetShiftState done [11:33:28]FM_GetShiftState done [11:33:28]req_shift_open_date done [11:33:28]produce_requested_data done [11:33:28]produce_requested_data return {"fd.num":119399,"shift.num":436,"shift.opened":0,"shift.open_date":0} [11:33:28]process_action_free close_shift [11:33:28]json_value_free [11:33:28]json_value_free done [11:33:28]process_json_proto returns [11:33:28]Send response to host [11:33:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":119399,"shift.num":436,"shift.opened":0,"shift.open_date":0}}} [11:33:28]free response buf [11:33:28]execute_script done [11:33:28]execute_script returns [11:33:28]free content buf [11:33:28]Sock 8.Close socket [11:33:28]Sock 8.Thread stoped [11:33:32]OFD Sender: No OFD packet to send [11:33:37]OFD Sender: No OFD packet to send [11:33:42]OFD Sender: No OFD packet to send [11:33:47]OFD Sender: No OFD packet to send [11:33:52]OFD Sender: No OFD packet to send [11:33:57]OFD Sender: No OFD packet to send [11:34:02]OFD Sender: No OFD packet to send [11:34:07]OFD Sender: No OFD packet to send [11:34:12]OFD Sender: No OFD packet to send [11:34:17]OFD Sender: No OFD packet to send [11:34:22]OFD Sender: No OFD packet to send [11:34:27]OFD Sender: No OFD packet to send [11:34:32]OFD Sender: No OFD packet to send [11:34:37]OFD Sender: No OFD packet to send [11:34:42]OFD Sender: No OFD packet to send [11:34:47]OFD Sender: No OFD packet to send [11:34:52]OFD Sender: No OFD packet to send [11:34:57]OFD Sender: No OFD packet to send [11:35:02]OFD Sender: No OFD packet to send [11:35:07]OFD Sender: No OFD packet to send [11:35:12]OFD Sender: No OFD packet to send [11:35:17]OFD Sender: No OFD packet to send [11:35:22]OFD Sender: No OFD packet to send [11:35:27]OFD Sender: No OFD packet to send [11:35:32]OFD Sender: No OFD packet to send [11:35:37]OFD Sender: No OFD packet to send [11:35:42]OFD Sender: No OFD packet to send [11:35:47]OFD Sender: No OFD packet to send [11:35:52]OFD Sender: No OFD packet to send [11:35:57]OFD Sender: No OFD packet to send [11:36:02]OFD Sender: No OFD packet to send [11:36:07]OFD Sender: No OFD packet to send [11:36:12]OFD Sender: No OFD packet to send [11:36:17]OFD Sender: No OFD packet to send [11:36:22]OFD Sender: No OFD packet to send [11:36:27]OFD Sender: No OFD packet to send [11:36:32]OFD Sender: No OFD packet to send [11:36:37]OFD Sender: No OFD packet to send [11:36:42]OFD Sender: No OFD packet to send [11:36:47]OFD Sender: No OFD packet to send [11:36:52]OFD Sender: No OFD packet to send [11:36:57]OFD Sender: No OFD packet to send [11:37:02]OFD Sender: No OFD packet to send [11:37:07]OFD Sender: No OFD packet to send [11:37:12]OFD Sender: No OFD packet to send [11:37:17]OFD Sender: No OFD packet to send [11:37:22]OFD Sender: No OFD packet to send [11:37:27]OFD Sender: No OFD packet to send [11:37:32]OFD Sender: No OFD packet to send [11:37:37]OFD Sender: No OFD packet to send [11:37:42]OFD Sender: No OFD packet to send [11:37:48]OFD Sender: No OFD packet to send [11:37:53]OFD Sender: No OFD packet to send [11:37:58]OFD Sender: No OFD packet to send [11:38:03]OFD Sender: No OFD packet to send [11:38:08]OFD Sender: No OFD packet to send [11:38:13]OFD Sender: No OFD packet to send [11:38:18]OFD Sender: No OFD packet to send [11:38:23]OFD Sender: No OFD packet to send [11:38:28]OFD Sender: No OFD packet to send [11:38:33]OFD Sender: No OFD packet to send [11:38:38]OFD Sender: No OFD packet to send [11:38:43]OFD Sender: No OFD packet to send [11:38:48]OFD Sender: No OFD packet to send [11:38:53]OFD Sender: No OFD packet to send [11:38:58]OFD Sender: No OFD packet to send [11:39:03]OFD Sender: No OFD packet to send [11:39:08]OFD Sender: No OFD packet to send [11:39:13]OFD Sender: No OFD packet to send [11:39:18]OFD Sender: No OFD packet to send [11:39:23]OFD Sender: No OFD packet to send [11:39:28]OFD Sender: No OFD packet to send [11:39:33]OFD Sender: No OFD packet to send [11:39:38]OFD Sender: No OFD packet to send [11:39:43]OFD Sender: No OFD packet to send [11:39:48]OFD Sender: No OFD packet to send [11:39:53]OFD Sender: No OFD packet to send [11:39:58]OFD Sender: No OFD packet to send [11:40:03]OFD Sender: No OFD packet to send [11:40:08]OFD Sender: No OFD packet to send [11:40:13]OFD Sender: No OFD packet to send [11:40:18]OFD Sender: No OFD packet to send [11:40:23]OFD Sender: No OFD packet to send [11:40:28]OFD Sender: No OFD packet to send [11:40:33]OFD Sender: No OFD packet to send [11:40:38]OFD Sender: No OFD packet to send [11:40:43]OFD Sender: No OFD packet to send [11:40:48]OFD Sender: No OFD packet to send [11:40:53]OFD Sender: No OFD packet to send [11:40:58]OFD Sender: No OFD packet to send [11:41:03]OFD Sender: No OFD packet to send [11:41:08]OFD Sender: No OFD packet to send [11:41:13]OFD Sender: No OFD packet to send [11:41:18]OFD Sender: No OFD packet to send [11:41:23]OFD Sender: No OFD packet to send [11:41:28]OFD Sender: No OFD packet to send [11:41:33]OFD Sender: No OFD packet to send [11:41:38]OFD Sender: No OFD packet to send [11:41:43]OFD Sender: No OFD packet to send [11:41:48]OFD Sender: No OFD packet to send [11:41:53]OFD Sender: No OFD packet to send [11:41:58]OFD Sender: No OFD packet to send [11:42:03]OFD Sender: No OFD packet to send [11:42:08]OFD Sender: No OFD packet to send [11:42:13]OFD Sender: No OFD packet to send [11:42:18]OFD Sender: No OFD packet to send [11:42:23]OFD Sender: No OFD packet to send [11:42:28]OFD Sender: No OFD packet to send [11:42:33]OFD Sender: No OFD packet to send [11:42:38]OFD Sender: No OFD packet to send [11:42:43]OFD Sender: No OFD packet to send [11:42:48]OFD Sender: No OFD packet to send [11:42:53]OFD Sender: No OFD packet to send [11:42:58]OFD Sender: No OFD packet to send [11:43:03]OFD Sender: No OFD packet to send [11:43:08]OFD Sender: No OFD packet to send [11:43:13]OFD Sender: No OFD packet to send [11:43:18]OFD Sender: No OFD packet to send [11:43:23]OFD Sender: No OFD packet to send [11:43:28]OFD Sender: No OFD packet to send [11:43:33]OFD Sender: No OFD packet to send [11:43:38]OFD Sender: No OFD packet to send [11:43:43]OFD Sender: No OFD packet to send [11:43:48]OFD Sender: No OFD packet to send [11:43:53]OFD Sender: No OFD packet to send [11:43:58]OFD Sender: No OFD packet to send [11:44:03]OFD Sender: No OFD packet to send [11:44:08]OFD Sender: No OFD packet to send [11:44:13]OFD Sender: No OFD packet to send [11:44:18]OFD Sender: No OFD packet to send [11:44:23]OFD Sender: No OFD packet to send [11:44:28]OFD Sender: No OFD packet to send [11:44:33]OFD Sender: No OFD packet to send [11:44:38]OFD Sender: No OFD packet to send [11:44:43]OFD Sender: No OFD packet to send [11:44:48]OFD Sender: No OFD packet to send [11:44:53]OFD Sender: No OFD packet to send [11:44:58]OFD Sender: No OFD packet to send [11:45:03]OFD Sender: No OFD packet to send [11:45:08]OFD Sender: No OFD packet to send [11:45:13]OFD Sender: No OFD packet to send [11:45:18]OFD Sender: No OFD packet to send [11:45:23]OFD Sender: No OFD packet to send [11:45:28]OFD Sender: No OFD packet to send [11:45:33]OFD Sender: No OFD packet to send [11:45:38]OFD Sender: No OFD packet to send [11:45:43]OFD Sender: No OFD packet to send [11:45:48]OFD Sender: No OFD packet to send [11:45:53]OFD Sender: No OFD packet to send [11:45:58]OFD Sender: No OFD packet to send [11:46:03]OFD Sender: No OFD packet to send [11:46:08]OFD Sender: No OFD packet to send [11:46:13]OFD Sender: No OFD packet to send [11:46:18]OFD Sender: No OFD packet to send [11:46:23]OFD Sender: No OFD packet to send [11:46:28]OFD Sender: No OFD packet to send [11:46:33]OFD Sender: No OFD packet to send [11:46:38]OFD Sender: No OFD packet to send [11:46:43]OFD Sender: No OFD packet to send [11:46:48]OFD Sender: No OFD packet to send [11:46:53]OFD Sender: No OFD packet to send [11:46:58]OFD Sender: No OFD packet to send [11:47:03]OFD Sender: No OFD packet to send [11:47:08]OFD Sender: No OFD packet to send [11:47:13]OFD Sender: No OFD packet to send [11:47:18]OFD Sender: No OFD packet to send [11:47:23]OFD Sender: No OFD packet to send [11:47:28]OFD Sender: No OFD packet to send [11:47:33]OFD Sender: No OFD packet to send [11:47:38]OFD Sender: No OFD packet to send [11:47:43]OFD Sender: No OFD packet to send [11:47:48]OFD Sender: No OFD packet to send [11:47:53]OFD Sender: No OFD packet to send [11:47:58]OFD Sender: No OFD packet to send [11:48:03]OFD Sender: No OFD packet to send [11:48:08]OFD Sender: No OFD packet to send [11:48:13]OFD Sender: No OFD packet to send [11:48:18]OFD Sender: No OFD packet to send [11:48:23]OFD Sender: No OFD packet to send [11:48:28]OFD Sender: No OFD packet to send [11:48:33]OFD Sender: No OFD packet to send [11:48:38]OFD Sender: No OFD packet to send [11:48:43]OFD Sender: No OFD packet to send [11:48:48]OFD Sender: No OFD packet to send [11:48:53]OFD Sender: No OFD packet to send [11:48:58]OFD Sender: No OFD packet to send [11:49:03]OFD Sender: No OFD packet to send [11:49:08]OFD Sender: No OFD packet to send [11:49:13]OFD Sender: No OFD packet to send [11:49:18]OFD Sender: No OFD packet to send [11:49:23]OFD Sender: No OFD packet to send [11:49:28]OFD Sender: No OFD packet to send [11:49:33]OFD Sender: No OFD packet to send [11:49:38]OFD Sender: No OFD packet to send [11:49:43]OFD Sender: No OFD packet to send [11:49:48]OFD Sender: No OFD packet to send [11:49:53]OFD Sender: No OFD packet to send [11:49:58]OFD Sender: No OFD packet to send [11:50:03]OFD Sender: No OFD packet to send [11:50:08]OFD Sender: No OFD packet to send [11:50:13]OFD Sender: No OFD packet to send [11:50:18]OFD Sender: No OFD packet to send [11:50:23]OFD Sender: No OFD packet to send [11:50:28]OFD Sender: No OFD packet to send [11:50:33]OFD Sender: No OFD packet to send [11:50:38]OFD Sender: No OFD packet to send [11:50:43]OFD Sender: No OFD packet to send [11:50:48]OFD Sender: No OFD packet to send [11:50:53]OFD Sender: No OFD packet to send [11:50:58]OFD Sender: No OFD packet to send [11:51:03]OFD Sender: No OFD packet to send [11:51:08]OFD Sender: No OFD packet to send [11:51:13]OFD Sender: No OFD packet to send [11:51:18]OFD Sender: No OFD packet to send [11:51:23]OFD Sender: No OFD packet to send [11:51:28]OFD Sender: No OFD packet to send [11:51:33]OFD Sender: No OFD packet to send [11:51:38]OFD Sender: No OFD packet to send [11:51:43]OFD Sender: No OFD packet to send [11:51:48]OFD Sender: No OFD packet to send [11:51:53]OFD Sender: No OFD packet to send [11:51:58]OFD Sender: No OFD packet to send [11:52:03]OFD Sender: No OFD packet to send [11:52:08]OFD Sender: No OFD packet to send [11:52:13]OFD Sender: No OFD packet to send [11:52:18]OFD Sender: No OFD packet to send [11:52:23]OFD Sender: No OFD packet to send [11:52:28]OFD Sender: No OFD packet to send [11:52:33]OFD Sender: No OFD packet to send [11:52:43]ConnectInit Can't connect to host [11:52:43]OFD Sender: No OFD packet to send [11:52:48]OFD Sender: No OFD packet to send